1 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3 * basic-block.h (last_basic_block_for_function): Rename to...
4 (last_basic_block_for_fn): ...this.
6 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
7 last_basic_block_for_function to last_basic_block_for_fn.
8 * lto-streamer-in.c (input_cfg): Likewise.
9 * lto-streamer-out.c (output_cfg): Likewise.
10 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
11 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
14 2013-12-09 David Malcolm <dmalcolm@redhat.com>
16 * basic-block.h (basic_block_info_for_function): Rename to...
17 (basic_block_info_for_fn): ...this.
18 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
19 (BASIC_BLOCK_FOR_FN): ...this.
20 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
21 (SET_BASIC_BLOCK_FOR_FN): ...this.
23 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
24 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
25 * ipa-utils.c (ipa_merge_profiles): Likewise.
26 * lto-streamer-in.c (make_new_block): Update for renaming of
27 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
28 (input_cfg): Update for renamings.
29 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
30 (dump_function_to_file): Update for renaming of
31 basic_block_info_for_function to basic_block_info_for_fn.
33 2013-12-09 Richard Biener <rguenther@suse.de>
36 * tree-ssa-structalias.c (set_union_with_increment): Remove
38 (do_complex_constraint): Call set_union_with_increment with
39 the solution delta, not the full solution.
40 (make_transitive_closure_constraints): Merge the two
43 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
45 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
46 more address validation checks.
48 2013-12-09 Marek Polacek <polacek@redhat.com>
51 * vtable-verify.c (verify_bb_vtables): Check the return value
52 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
54 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
56 * config/arm/arm.md (generic_sched): Add cortexa12.
57 (generic_vfp): Likewise.
58 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
59 (arm_cortex_a12_tune): New tuning struct.
60 * config/arm/arm-cores.def: Add cortex-a12.
61 * config/arm/arm-tables.opt: Regenerate.
62 * config/arm/arm-tune.md: Likewise.
63 * config/arm/bpabi.h: Add cortex-a12.
64 * doc/invoke.texi: Document -mcpu=cortex-a12.
66 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
68 * doc/install.texi (Prerequisites): Explicitly mention C library
69 and its headers for multilib builds.
71 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
75 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
77 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
79 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
80 and TARGET_CMPEQDI_T variables.
81 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
83 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
85 * config/linux.h: Fix typo in a comment.
87 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
89 * config.gcc (*linux*): Split libc selection from Android support.
90 Add libc selection to all *linux* targets. Add Android support to
91 architectures that support it.
92 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
93 (mips*-*-linux*): Add Android support.
95 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
96 Maxim Kuvyrkov <maxim@kugelworks.com>
98 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
99 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
100 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
102 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
104 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
105 Define appropriately for Linux and uClinux targets.
107 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
109 * config/linux.c (linux_has_ifunc_p): Use correct test.
111 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
113 * config/linux.c (linux_android_has_ifunc_p): Rename to
115 (linux_android_libc_has_function): Rename to linux_libc_has_function.
116 * config/linux-protos.h (linux_android_has_ifunc_p,)
117 (linux_android_libc_has_function): Update declarations.
118 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
119 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
121 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
123 * linux-android.c: Rename to linux.c.
124 * t-linux-android: Rename to t-linux. Update references
126 * config.gcc: Update references to t-linux-android and linux-android.o.
128 2013-12-07 Alan Modra <amodra@gmail.com>
130 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
133 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
135 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
137 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
139 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
142 2013-12-06 Caroline Tice <cmtice@google.com>
144 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
145 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
146 vtable pointer with the results of the verification call, rather than
147 only the uses in the next statement.
149 2013-12-06 Andrew Pinski <apinski@cavium.com>
152 * config/aarch64/aarch64.md (trap): New pattern.
154 2013-12-06 Jakub Jelinek <jakub@redhat.com>
156 PR tree-optimization/59388
157 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
158 gimplify tem after stmt rather than before it.
160 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
161 (get_references_in_stmt): Don't record operand addresses, but
163 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
164 Adjust for the pos -> ref change.
166 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
168 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
170 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
171 (processor_alias_table): Likewise.
172 (ix86_option_override_internal): Likewise.
173 * config/i386/i386.h (target_cpu_default): Replace
174 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
176 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
178 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
181 * config/i386/i386.c (type_natural_mode): Properly handle
182 size 8 for !TARGET_64BIT.
184 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
186 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
189 2013-12-06 Ian Bolton <ian.bolton@arm.com>
190 Mark Mitchell <mark@codesourcery.com>
193 * config/arm/arm.md (trap): New pattern.
194 * config/arm/types.md: Added a type for trap.
196 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
198 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
200 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
203 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
204 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
205 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
206 (TARGET_BUILTIN_DECL): Define.
207 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
208 (sparc32_initialize_trampoline): Adjust call to gen_flush.
209 (enum sparc_builtins): New enumeral type.
210 (sparc_builtins): New static array.
211 (sparc_builtins_icode): Likewise.
212 (def_builtin): Accept a separate icode and save the result.
213 (def_builtin_const): Likewise.
214 (sparc_fpu_init_builtins): New function.
215 (sparc_vis_init_builtins): Pass the builtin code.
216 (sparc_init_builtins): Call it if TARGET_FPU.
217 (sparc_builtin_decl): New function.
218 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
219 (sparc_handle_vis_mul8x16): Use the builtin code.
220 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
221 and SPARC_BUILTIN_PDISTN.
222 (compound_expr): New helper function.
223 (sparc_atomic_assign_expand_fenv): New function.
224 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
226 (flush, flushdi): Merge into single pattern.
227 (ldfsr): New instruction.
230 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
232 * asan.c: Remove struct tags when referring to class varpool_node.
233 * cgraph.h: Likewise.
234 * cgraphbuild.c: Likewise.
235 * cgraphunit.c: Likewise.
236 * dbxout.c: Likewise.
237 * dwarf2out.c: Likewise.
238 * gimple-fold.c: Likewise.
239 * ipa-devirt.c: Likewise.
240 * ipa-ref-inline.h: Likewise.
241 * ipa-ref.h: Likewise.
242 * ipa-reference.c: Likewise.
243 * ipa-utils.c: Likewise.
245 * lto-cgraph.c: Likewise.
246 * lto-streamer-out.c: Likewise.
247 * lto-streamer.h: Likewise.
248 * passes.c: Likewise.
249 * toplev.c: Likewise.
250 * tree-eh.c: Likewise.
251 * tree-emutls.c: Likewise.
252 * tree-pass.h: Likewise.
253 * tree-ssa-structalias.c: Likewise.
254 * tree-vectorizer.c: Likewise.
256 * varasm.c: Likewise.
257 * varpool.c: Likewise.
259 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
261 * cgraphunit.c: Remove struct tags when referring to class
262 ipa_opt_pass_d or class opt_pass.
263 * function.h: Likewise.
264 * lto-cgraph.c: Likewise.
265 * pass_manager.h: Likewise.
266 * passes.c: Likewise.
267 * tree-pass.h: Likewise.
269 2013-12-06 Richard Biener <rguenther@suse.de>
271 PR tree-optimization/59058
272 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
273 (LOOP_VINFO_NITERSM1): New macro.
274 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
275 the vector loop entry test in terms of scalar latch executions.
276 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
277 * tree-vect-loop.c (vect_get_loop_niters): Also return the
278 number of latch executions.
279 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
280 (vect_analyze_loop_form): Likewise.
281 (vect_generate_tmps_on_preheader): Compute the number of
282 vectorized iterations differently.
284 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
286 * config/score/score.c (score_force_temporary): Delete function.
287 (score_split_symbol): Ditto.
288 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
289 parentheses to silence ambiguity warning and reindent.
291 2013-12-05 Marek Polacek <polacek@redhat.com>
293 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
295 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
297 * config.gcc: Support --with-cpu=ia.
299 * config/i386/i386.c (cpu_names): Add "ia".
300 (processor_alias_table): Likewise.
301 (ix86_option_override_internal): Disallow -march=ia.
302 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
304 * doc/invoke.texi: Document -mtune=ia.
306 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
308 PR rtl-optimization/59317
309 * lra-constraints.c (in_class_p): Don't ignore insn with constant
312 2013-12-05 Martin Jambor <mjambor@suse.cz>
315 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
316 non-BLKmode in their naturally aligned type.
318 2013-12-05 Marek Polacek <polacek@redhat.com>
322 * ubsan.c: Include rtl.h and expr.h.
323 (ubsan_encode_value): Add new parameter. If expanding, assign
324 a stack slot for DECL_RTL of the temporary and call expand_assignment.
325 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
326 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
327 * ubsan.h (ubsan_encode_value): Adjust declaration.
328 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
329 ubsan_build_overflow_builtin above expand_normal call. Surround
330 this call with push_temp_slots and pop_temp_slots.
331 (ubsan_expand_si_overflow_neg_check): Likewise.
332 (ubsan_expand_si_overflow_mul_check): Likewise.
334 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
336 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
337 the get_alternative_base call with flag_expensive_optimizations.
338 (alloc_cand_and_find_basis): Likewise.
340 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
342 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
343 vec_select for overlapping register lanes.
345 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
347 * config/i386/i386.c (ix86_expand_builtin): Generate
348 reg for readflags built-in when optimizing.
349 * config/i386/i386.md (*pushfl<mode>): Rename to ...
350 (pushfl<mode>2): This. Fix iterator.
351 (*popfl<mode>): Rename to ...
352 (*popfl<mode>1): This. Fix iterator.
354 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
356 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
357 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
358 (ix86_init_mmx_sse_builtins): Define
359 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
360 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
361 (ix86_expand_builtin): Expand them.
362 * config/i386/ia32intrin.h (__readeflags): New.
363 (__writeeflags): Ditto.
364 * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
365 (*popfl<mode>1): Ditto.
367 2013-12-05 Richard Biener <rguenther@suse.de>
369 PR tree-optimization/59374
370 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
371 Commonize known and unknown dependence case fixing the allowed
372 read-write dependence case and dropping code that should not matter.
374 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
376 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
377 generation of predicated version.
378 (epilogue_deallocate_stack): Ditto.
379 (prologue_allocate_stack_pr): Add explicit predicated version.
380 (epilogue_deallocate_stack_pr): Ditto.
381 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
383 2013-12-05 Alan Modra <amodra@gmail.com>
385 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
387 <recursive call for build != host>: Clear GMPINC. Don't bother
390 2013-12-04 Jakub Jelinek <jakub@redhat.com>
391 Marek Polacek <polacek@redhat.com>
393 * opts.c (common_handle_option): Handle
394 -fsanitize=signed-integer-overflow.
395 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
396 negv<mode>3, negv<mode>3_1): Define expands.
397 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
398 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
399 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
400 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
401 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
402 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
403 PROB_ALWAYS): Define.
404 (ubsan_build_overflow_builtin): Declare.
405 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
407 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
408 (ubsan_build_overflow_builtin): New function.
409 (instrument_si_overflow): Likewise.
410 (ubsan_pass): Add signed integer overflow checking.
411 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
412 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
413 * internal-fn.c: Include ubsan.h and target.h.
414 (ubsan_expand_si_overflow_addsub_check): New function.
415 (ubsan_expand_si_overflow_neg_check): Likewise.
416 (ubsan_expand_si_overflow_mul_check): Likewise.
417 (expand_UBSAN_CHECK_ADD): Likewise.
418 (expand_UBSAN_CHECK_SUB): Likewise.
419 (expand_UBSAN_CHECK_MUL): Likewise.
420 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
421 (-A) + B -> B - A when doing the signed integer overflow checking.
422 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
424 * tree-vrp.c (extract_range_basic): Handle internal calls.
425 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
427 * asan.c: Include predict.h.
428 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
429 * predict.c: Move the PROB_* macros...
430 * predict.h (enum br_predictor): ...here.
431 (PROB_LIKELY, PROB_UNLIKELY): Define.
432 * trans-mem.c: Include predict.h.
433 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
434 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
436 2013-12-04 Jeff Law <law@redhat.com>
438 * common.opt: Split up -fisolate-erroneous-paths into
439 -fisolate-erroneous-paths-dereference and
440 -fisolate-erroneous-paths-attribute.
441 * invoke.texi: Corresponding changes.
442 * gimple.c (infer_nonnull_range): Add and use new arguments to control
443 what kind of statements can be used to infer a non-null range.
444 * gimple.h (infer_nonnull_range): Update prototype.
445 * tree-vrp.c (infer_value_range): Corresponding changes.
446 * opts.c (default_options_table): Update due to option split.
447 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
448 (find_implicit_erroneous_behaviour): Pass additional arguments
449 to infer_nonnull_range.
450 (find_explicit_erroneous_behaviour): Similarly.
451 (gate_isolate_erroneous_paths): Check both of the new options.
453 2013-12-04 Jeff Law <law@redhat.com>
455 * expr.c (expand_assignment): Update comments.
457 2013-12-04 Tobias Burnus <burnus@net-b.de>
460 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
461 * tree.def (NAMELIST_DECL): Add.
462 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
463 * tree.c (initialize_tree_contains_struct): Add asserts for it.
464 * dwarf2out.c (gen_namelist_decl): New function.
465 (gen_decl_die, dwarf2out_decl): Call it.
466 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
467 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
468 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
470 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
472 2013-12-03 Xinliang David Li <davidxl@google.com>
474 * tree-ssa-structalias.c (constraint_set_union): Change return type
476 (merge_node_constraints): Ditto.
477 (unify_nodes): Update changed set when constraints set changes.
479 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
481 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
483 * configure: Regenerated.
485 * gdbasan.in: New file.
487 2013-12-04 Jakub Jelinek <jakub@redhat.com>
489 PR rtl-optimization/58726
490 * combine.c (force_to_mode): Fix comment typo. Don't destructively
491 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
493 2013-12-04 Jakub Jelinek <jakub@redhat.com>
494 Uros Bizjak <ubizjak@gmail.com>
497 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
498 !TARGET_AVX there is misaligned MEM operand with vector mode
499 and get_attr_ssememalign is 0, return false.
500 (ix86_expand_special_args_builtin): Add get_pointer_alignment
501 computed alignment and for non-temporal loads/stores also
502 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
504 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
505 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
506 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
507 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
508 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
509 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
510 *vec_interleave_highv2df, *vec_interleave_lowv2df,
511 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
512 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
513 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
514 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
515 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
516 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
517 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
518 * config/i386/i386.md (ssememalign): New define_attr.
520 2013-12-04 Jakub Jelinek <jakub@redhat.com>
522 PR tree-optimization/59355
523 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
524 * opts.c (common_handle_option): Fix comment spelling.
526 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
528 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
529 (name_expansions): New static variable.
530 (alt_base_map): Ditto.
531 (get_alternative_base): New function.
532 (find_basis_for_candidate): For CAND_REF, optionally call
533 find_basis_for_base_expr with the returned value from
534 get_alternative_base.
535 (record_potential_basis): Add new parameter 'base' of type 'tree';
536 add an assertion of non-NULL base; use base to set node->base_expr.
537 (alloc_cand_and_find_basis): Update; call record_potential_basis
538 for CAND_REF with the returned value from get_alternative_base.
539 (replace_refs): Dump details on the replacing.
540 (execute_strength_reduction): Call pointer_map_create for
541 alt_base_map; call free_affine_expand_cache with &name_expansions.
543 2013-12-03 Wei Mi <wmi@google.com>
545 PR rtl-optimization/59020
546 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
547 (sched_analyze_insn): Call try_group_insn.
548 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
549 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
550 (group_insns_for_macro_fusion): Removed.
551 (sched_init): Remove calling group_insns_for_macro_fusion.
553 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
555 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
557 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
559 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
561 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
563 (aarch64_can_eliminate): Don't check elimination source when
564 frame_pointer_required is false.
566 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
568 * config/avr/avr.c (avr_option_override): Warn if asked to generate
569 position independent code.
570 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
572 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
575 * config/i386/i386.c (emit_memset): Adjust destination address
577 (expand_setmem_epilogue): Likewise.
579 2013-12-03 Marek Polacek <polacek@redhat.com>
582 * calls.c (expand_call): Disallow passing huge arguments by value.
584 2013-12-03 Jakub Jelinek <jakub@redhat.com>
586 PR tree-optimization/59362
587 * tree-object-size.c (object_sizes): Change into array of
588 vec<unsigned HOST_WIDE_INT>.
589 (compute_builtin_object_size): Check computed bitmap for
590 non-NULL instead of object_sizes. Call safe_grow on object_sizes
591 vector if new SSA_NAMEs appeared.
592 (init_object_sizes): Check computed bitmap for non-NULL.
593 Call safe_grow on object_sizes elements instead of initializing
595 (fini_object_sizes): Call release on object_sizes elements, don't
599 * gimplify.c (nonlocal_vla_vars): New variable.
600 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
601 nonlocal_vla_vars chain.
602 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
603 if outer_bind has DECL_INITIAL (current_function_decl) block.
606 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
608 * expr.h (struct saved_pending_stack_adjust): New type.
609 (save_pending_stack_adjust, restore_pending_stack_adjust): New
611 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
612 and get_last_insn before do_pending_stack_adjust, call
613 restore_pending_stack_adjust after delete_insns_since.
614 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
615 before calling emit_conditional_move.
616 * expmed.c (expand_sdiv_pow2): Likewise.
617 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
619 2013-12-02 Jeff Law <law@redhat.com>
621 PR tree-optimization/59322
622 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
623 Remove code which copied jump threading paths.
625 2013-12-02 Sriraman Tallam <tmsriram@google.com>
628 * config/i386/i386.opt (ix86_arch_string): Mark this variable
629 for saving in cl_target_option.
630 (ix86_tune_string): Ditto.
631 (ix86_cmodel): Ditto.
633 (ix86_asm_dialect): Ditto.
634 (ix86_branch_cost): Ditto.
635 (ix86_dump_tunes): Ditto.
636 (ix86_force_align_arg_pointer): Ditto.
637 (ix86_force_drap): Ditto.
638 (ix86_incoming_stack_boundary_arg): Ditto.
640 (ix86_preferred_stack_boundary_arg): Ditto.
641 (ix86_recip_name): Ditto.
642 (ix86_regparm): Ditto.
643 (ix86_section_threshold): Ditto.
644 (ix86_sse2avx): Ditto.
645 (ix86_stack_protector_guard): Ditto.
646 (ix86_stringop_alg): Ditto.
647 (ix86_tls_dialect): Ditto.
648 (ix86_tune_ctrl_string): Ditto.
649 (ix86_tune_memcpy_strategy): Ditto.
650 (ix86_tune_memset_strategy): Ditto.
651 (ix86_tune_no_default): Ditto.
652 (ix86_veclibabi_type): Ditto.
653 * config/i386/i386.c (function_specific_save): Save the above
654 variables in gcc_options to cl_target_option.
655 (function_specific_restore): Do the reverse done in
656 function_specific_save.
657 (ix86_valid_target_attribute_tree): Change ix86_arch_string
658 and ix86_tune_string to use the opts structure.
659 (ix86_option_override_internal):Change
660 ix86_incoming_stack_boundary_arg to
661 opts->x_ix86_incoming_stack_boundary_arg
663 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
665 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
666 in #ifndef IN_LIBGCC2 / #endif.
668 2013-12-02 Jakub Jelinek <jakub@redhat.com>
670 PR tree-optimization/59358
671 * tree-vrp.c (union_ranges): To check for the partially overlapping
672 ranges or adjacent ranges, also compare *vr0max with vr1max.
674 2013-12-02 Sterling Augustine <saugustine@google.com>
676 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
677 when there isn't a skeleton die.
679 2013-12-02 Marek Polacek <polacek@redhat.com>
682 * doc/invoke.texi: Document -fsanitize=return.
684 2013-12-02 Tobias Burnus <burnus@net-b.de>
685 Manuel López-Ibáñez <manu@gcc.gnu.org>
688 * doc/invoke.texi: Add missing @opindex.
689 (-fsanitize=): Use @gcctabopt instead of @itemize.
691 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
693 Fix C++0x memory model for unaligned fields in packed, aligned(4)
694 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
695 targets like arm-none-eabi.
696 * expr.c (expand_assignment): Handle normal fields like bit regions.
698 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
701 * function.c (invoke_set_current_function_hook): Call
702 targetm.set_current_function after setting this_fn_optabs.
704 2013-12-02 Richard Biener <rguenther@suse.de>
706 PR tree-optimization/59139
707 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
709 (get_val_for): Use gcc_checking_asserts.
711 2013-12-02 Richard Biener <rguenther@suse.de>
714 * tree-ssa-operands.c (opf_implicit): Remove.
715 (opf_address_taken): New flag.
716 (get_expr_operands): Remove early out, pass down opf_address_taken for
717 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
718 (get_indirect_ref_operands): Rename to ...
719 (get_mem_ref_operands): ... this.
720 (get_asm_expr_operands): Rename to ...
721 (get_asm_stmt_operands): ... this.
723 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
725 * ipa-inline.c (check_callers): Add missed pointer de-reference.
727 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
729 PR tree-optimization/59356
730 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
731 offset computation using the precision of the index type.
733 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
736 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
737 when rclass is GENERAL_REGS.
739 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
741 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
742 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
744 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
746 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
749 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
751 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
753 2013-11-30 Paulo Matos <pmatos@broadcom.com>
754 Eric Botcazou <ebotcazou@adacore.com>
756 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
757 as applied to nonzero_sign_valid when last_set_mode has less precision
760 2013-11-30 Tobias Burnus <burnus@net-b.de>
763 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
764 environment variable and link to a list with flags.
765 (-fsanitize=thread): Ditto and update link.
767 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
769 PR rtl-optimization/59340
770 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
773 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
775 * lra.c (lra): Set lra_in_progress before check_rtl call.
776 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
777 adding clobber regs when LRA is running.
779 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
782 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
784 2013-11-29 Richard Biener <rguenther@suse.de>
787 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
788 free_stmt_operands, update_stmt_operands): Add struct function
790 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
791 function argument from fini_ssa_operands, verify_ssa_operands,
792 free_stmt_operands and update_stmt_operands everywhere.
793 * tree-ssanames.h (release_ssa_name_fn): New.
794 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
795 * tree-ssanames.c (release_ssa_name): Rename to ...
796 (release_ssa_name_fn): ... this and add struct function argument.
797 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
798 (update_stmt_fn): New function.
799 * tree-cfg.c (move_block_to_fn): Adjust.
800 * tree-if-conv.c (free_bb_predicate): Likewise.
801 * tree-ssa.c (verify_ssa): Likewise.
802 (delete_tree_ssa): Likewise.
803 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
804 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
805 update_stmt_fn instead of update_stmt.
807 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
809 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
812 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
814 * config/arm/arm.md (store_minmaxsi): Use only when
815 optimize_function_for_size_p.
817 2013-11-29 Jakub Jelinek <jakub@redhat.com>
818 Yury Gribov <y.gribov@samsung.com>
821 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
822 * gcc.c: Using libsanitizer spec instead of explicit libs.
824 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
827 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
828 * cgraph.h (varpool_node): Add need_bounds_init field.
829 * lto-cgraph.c (lto_output_varpool_node): Output
830 need_bounds_init value.
831 (input_varpool_node): Read need_bounds_init value.
832 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
835 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
836 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
837 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
838 (gen_type_die_with_usage): Skip pointer bounds.
839 (dwarf2out_global_decl): Likewise.
842 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
843 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
844 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
845 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
846 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
847 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
848 (gimple_call_with_bounds_p): New.
849 (gimple_call_set_with_bounds): New.
850 (gimple_call_num_nobnd_args): Remove.
851 (gimple_call_nobnd_arg): Remove.
852 * tree.h (CALL_WITH_BOUNDS_P): New.
853 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
856 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
857 * common.opt (fcheck-pointer-bounds): Move to ...
858 * c-family/c.opt: ... here.
859 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
860 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
861 * langhooks.h (lang_hooks): Remove chkp_supported field.
862 * toplev.c (process_options): Remove chkp_supported check.
865 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
866 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
867 * tree.h (POINTER_BOUNDS_P): New.
868 (BOUNDED_TYPE_P): New.
870 (pointer_bounds_type_node): New.
871 * tree.c (build_common_tree_nodes): Initialize
872 pointer_bounds_type_node.
873 * gimple.h (gimple_call_get_nobnd_arg_index): New.
874 (gimple_call_num_nobnd_args): New.
875 (gimple_call_nobnd_arg): New.
876 (gimple_return_retbnd): New.
877 (gimple_return_set_retbnd): New
878 * gimple.c (gimple_build_return): Increase number of ops
879 for return statement.
880 (gimple_call_get_nobnd_arg_index): New.
881 * gimple-pretty-print.c (dump_gimple_return): Print second op.
884 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
885 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
886 with "chkp ctor" and "bnd_legacy" attributes.
887 * gimplify.c (gimplify_init_constructor): Avoid infinite
888 loop during gimplification of bounds initializer.
891 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
892 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
893 (handle_bnd_legacy): New.
894 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
895 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
899 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
900 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
901 (BT_FN_PTR_CONST_PTR): New.
902 (BT_FN_CONST_PTR_CONST_PTR): New.
903 (BT_FN_PTR_CONST_PTR_SIZE): New.
904 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
905 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
906 (BT_FN_VOID_CONST_PTR_SIZE): New.
907 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
908 * chkp-builtins.def: New.
909 * builtins.def: include chkp-builtins.def.
910 (DEF_CHKP_BUILTIN): New.
911 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
912 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
913 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
914 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
915 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
916 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
917 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
918 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
919 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
920 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
921 * common.opt (fcheck-pointer-bounds): New.
922 * toplev.c (process_options): Check Pointer Bounds Checker is
924 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
927 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
928 * target.def (builtin_chkp_function): New.
929 (chkp_bound_type): New.
930 (chkp_bound_mode): New.
931 (fn_abi_va_list_bounds_size): New.
932 (load_bounds_for_arg): New.
933 (store_bounds_for_arg): New.
934 * targhooks.h (default_load_bounds_for_arg): New.
935 (default_store_bounds_for_arg): New.
936 (default_fn_abi_va_list_bounds_size): New.
937 (default_chkp_bound_type): New.
938 (default_chkp_bound_mode): New.
939 (default_builtin_chkp_function): New.
940 * targhooks.c (default_load_bounds_for_arg): New.
941 (default_store_bounds_for_arg): New.
942 (default_fn_abi_va_list_bounds_size): New.
943 (default_chkp_bound_type): New.
944 (default_chkp_bound_mode); New.
945 (default_builtin_chkp_function): New.
946 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
947 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
948 (TARGET_STORE_BOUNDS_FOR_ARG): New.
949 (TARGET_BUILTIN_CHKP_FUNCTION): New.
950 (TARGET_CHKP_BOUND_TYPE): New.
951 (TARGET_CHKP_BOUND_MODE): New.
952 * doc/tm.texi: Regenerated.
953 * langhooks.h (lang_hooks): Add chkp_supported field.
954 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
955 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
958 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
959 * config/i386/constraints.md (B): New.
962 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
963 * config/i386/i386-modes.def (BND32): New.
965 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
966 * config/i386/i386.c (isa_opts): Add mmpx.
967 (regclass_map): Add bound registers.
968 (dbx_register_map): Likewise.
969 (dbx64_register_map): Likewise.
970 (svr4_dbx_register_map): Likewise.
972 (ix86_option_override_internal): Support MPX ISA.
973 (ix86_conditional_register_usage): Support bound registers.
974 (print_reg): Likewise.
975 (ix86_code_end): Add MPX bnd prefix.
976 (output_set_got): Likewise.
977 (ix86_output_call_insn): Likewise.
978 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
979 (ix86_print_operand_punct_valid_p): Likewise.
980 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
982 (ix86_class_likely_spilled_p): Add bound regs support.
983 (ix86_hard_regno_mode_ok): Likewise.
984 (x86_order_regs_for_local_alloc): Likewise.
985 (ix86_bnd_prefixed_insn_p): New.
986 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
987 (FIXED_REGISTERS): Add bound registers.
988 (CALL_USED_REGISTERS): Likewise.
989 (REG_ALLOC_ORDER): Likewise.
990 (HARD_REGNO_NREGS): Likewise.
992 (VALID_BND_REG_MODE): New.
993 (FIRST_BND_REG): New.
995 (reg_class): Add BND_REGS.
996 (REG_CLASS_NAMES): Likewise.
997 (REG_CLASS_CONTENTS): Likewise.
999 (ANY_BND_REG_P): New.
1001 (HI_REGISTER_NAMES): Add bound registers.
1002 * config/i386/i386.md (UNSPEC_BNDMK): New.
1003 (UNSPEC_BNDMK_ADDR): New.
1004 (UNSPEC_BNDSTX): New.
1005 (UNSPEC_BNDLDX): New.
1006 (UNSPEC_BNDLDX_ADDR): New.
1007 (UNSPEC_BNDCL): New.
1008 (UNSPEC_BNDCU): New.
1009 (UNSPEC_BNDCN): New.
1010 (UNSPEC_MPX_FENCE): New.
1013 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
1014 (length_immediate): Likewise.
1015 (prefix_0f): Likewise.
1017 (prefix_rep): Check for bnd prefix.
1018 (length_nobnd): New.
1019 (length): Use length_nobnd if specified.
1024 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
1027 (simple_return_internal): Likewise.
1028 (simple_return_pop_internal): Likewise.
1029 (*indirect_jump): Add MPX bnd prefix.
1030 (*tablejump_1): Likewise.
1031 (simple_return_internal_long): Likewise.
1032 (simple_return_indirect_internal): Likewise.
1036 (*mov<mode>_internal_mpx): New.
1037 (<mode>_<bndcheck>): New.
1038 (*<mode>_<bndcheck>): New.
1043 * config/i386/predicates.md (lea_address_operand): Rename to...
1044 (address_no_seg_operand): ... this.
1045 (address_mpx_no_base_operand): New.
1046 (address_mpx_no_index_operand): New.
1047 (bnd_mem_operator): New.
1048 * config/i386/i386.opt (mmpx): New.
1049 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
1050 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
1053 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
1054 * mode-classes.def (MODE_POINTER_BOUNDS): New.
1055 * tree.def (POINTER_BOUNDS_TYPE): New.
1056 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
1057 (POINTER_BOUNDS_MODE): New.
1058 (make_pointer_bounds_mode): New.
1059 * machmode.h (POINTER_BOUNDS_MODE_P): New.
1060 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
1061 (layout_type): Support POINTER_BOUNDS_TYPE.
1062 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
1063 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
1064 (type_contains_placeholder_1): Likewise.
1065 * tree.h (POINTER_BOUNDS_TYPE_P): New.
1066 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
1067 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
1069 2013-11-29 Richard Biener <rguenther@suse.de>
1072 * tree-cfg.c (verify_expr): Restrict bounds verification of
1073 BIT_FIELD_REF arguments to non-aggregate typed base objects.
1075 2013-11-29 Richard Biener <rguenther@suse.de>
1077 PR tree-optimization/59334
1078 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
1081 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1082 Richard Biener <rguenther@suse.de>
1085 * omp-low.c (simd_clone_create): Return NULL if for definition
1086 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
1087 before calling cgraph_function_versioning.
1088 (expand_simd_clones): Look for "omp declare simd" attribute first.
1089 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
1090 Punt if node->global.inlined_to.
1091 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
1092 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
1093 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
1095 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1098 * tree-core.h (enum omp_clause_schedule_kind): Add
1099 OMP_CLAUSE_SCHEDULE_LAST.
1100 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
1101 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
1102 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
1103 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
1104 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
1105 (DFS_write_tree_body): Handle OMP_CLAUSE.
1106 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
1107 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
1108 (write_ts_omp_clause_tree_pointers): New function.
1109 (streamer_write_tree_body): Call it for OMP_CLAUSE.
1110 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
1111 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
1112 (unpack_value_fields): Call it for OMP_CLAUSE.
1113 (streamer_alloc_tree): Handle OMP_CLAUSE.
1114 (lto_input_ts_omp_clause_tree_pointers): New function.
1115 (streamer_read_tree_body): Call it for OMP_CLAUSE.
1117 2013-11-29 Joseph Myers <joseph@codesourcery.com>
1119 * doc/implement-c.texi: Document C11 implementation-defined
1120 behavior. Refer to -ffp-contract=fast for contraction behavior.
1121 * doc/invoke.texi (-std=c99, std=c11): Update description of
1123 (-std=gnu99): Don't mention as future default.
1124 (-std=gnu11): Mention as intended future default.
1125 * doc/standards.texi: Update descriptions of C99 and C11 support.
1126 Limit statement about C99 facilities for freestanding
1127 implementations to some platforms only.
1129 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1132 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
1134 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
1137 * ira.h (ira_setup_eliminable_regset): Remove parameter.
1138 * ira.c (ira_setup_eliminable_regset): Ditto. Add
1139 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
1140 Don't call lra_init_elimination.
1141 (ira): Call ira_setup_eliminable_regset without arguments.
1142 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
1143 from ira_setup_eliminable_regset call.
1144 * gcse.c (calculate_bb_reg_pressure): Ditto.
1145 * haifa-sched.c (sched_init): Ditto.
1146 * lra.h (lra_init_elimination): Remove the prototype.
1147 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
1148 used_insn_alternative upper.
1149 (lra_eliminate_regs_1): Add one more parameter.
1150 (lra-eliminate): Ditto.
1151 * lra.c (lra_invalidate_insn_data): Set sp_offset.
1152 (setup_sp_offset): New.
1153 (lra_process_new_insns): Call setup_sp_offset.
1154 (lra): Add argument to lra_eliminate calls.
1155 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
1156 (get_equiv_with_elimination): New.
1157 (process_addr_reg): Call get_equiv_with_elimination instead of
1158 get_equiv_substitution.
1159 (equiv_address_substitution): Ditto.
1160 (loc_equivalence_change_p): Ditto.
1161 (loc_equivalence_callback, lra_constraints): Ditto.
1162 (curr_insn_transform): Ditto. Print the sp offset
1163 (process_alt_operands): Prevent stack pointer reloads.
1164 (lra_constraints): Remove one argument from lra_eliminate call.
1165 Move it up. Mark used hard regs bfore it. Use
1166 get_equiv_with_elimination instead of get_equiv_substitution.
1167 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
1168 assert for param values combination. Use sp offset. Add argument
1169 to lra_eliminate_regs_1 calls.
1170 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
1171 (curr_sp_change): New static var.
1172 (mark_not_eliminable): Add parameter. Update curr_sp_change.
1173 Don't prevent elimination to sp if we can calculate its change.
1174 Pass the argument to mark_not_eliminable calls.
1175 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
1176 argument to lra_eliminate_regs_1 call.
1177 (update_reg_eliminate): Move calculation of hard regs for spill
1178 lower. Switch off lra_in_progress temporarily to generate regs
1179 involved into elimination.
1180 (lra_init_elimination): Rename to init_elimination. Make it
1181 static. Set up insn sp offset, check the offsets at the end of BBs.
1182 (process_insn_for_elimination): Add parameter. Pass its value to
1183 eliminate_regs_in_insn.
1184 (lra_eliminate): : Add parameter. Pass its value to
1185 process_insn_for_elimination. Add assert for param values
1186 combination. Call init_elimination. Don't update offsets in
1187 equivalence substitutions.
1188 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
1189 for created stack slot.
1190 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
1193 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1195 * config/arm/iterators.md (vrint_conds): New int attribute.
1196 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
1197 (smax<mode>3): Likewise.
1198 (smin<mode>3): Likewise.
1200 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
1202 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
1203 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
1204 * tree-ssanames.h (set_range_info): Add range_type argument.
1205 (duplicate_ssa_name_range_info): Likewise.
1206 * tree-ssanames.c (set_range_info): Take the range type as argument
1207 and store it in SSA_NAME_ANTI_RANGE_P.
1208 (duplicate_ssa_name_range_info): Likewise.
1209 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
1210 (set_nonzero_bits): Update call to set_range_info.
1211 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
1212 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1213 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
1214 (vrp_finalize): Likewise, passing anti-ranges directly.
1216 2013-11-28 Richard Biener <rguenther@suse.de>
1218 PR tree-optimization/59330
1219 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
1220 and fix delayed marking of free calls not necessary.
1222 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
1224 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
1226 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1228 2013-11-28 Terry Guo <terry.guo@arm.com>
1230 * config/arm/arm.c (v7m_extra_costs): New table.
1231 (arm_v7m_tune): Use it.
1233 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1235 * config/sol2.h (TIME_LIBRARY): Define.
1237 2013-11-28 Richard Biener <rguenther@suse.de>
1240 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
1241 CONST_DECLs in function context are not indexable.
1243 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
1245 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
1246 not optimized for size.
1248 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1250 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
1252 (expand_stack_vars): For -fsanitize=address, use (and set initially)
1253 data->asan_base as base for vars and update asan_alignb.
1254 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
1255 Pass them to asan_emit_stack_protection.
1256 * asan.c (asan_detect_stack_use_after_return): New variable.
1257 (asan_emit_stack_protection): Add pbase and alignb arguments.
1258 Implement use after return sanitization.
1259 * asan.h (asan_emit_stack_protection): Adjust prototype.
1260 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
1262 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1264 * common.opt: Introduced a new option -fsimd-cost-model.
1265 * doc/invoke.texi: Introduced a new openmp-simd warning and
1266 a new -fsimd-cost-model option.
1267 * tree-vectorizer.h (unlimited_cost_model): Interface updated
1268 to rely on the particular loop info.
1269 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
1270 (vect_peeling_hash_choose_best_peeling): Ditto.
1271 (vect_enhance_data_refs_alignment): Ditto.
1272 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
1273 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
1274 plus added openmp-simd warining.
1276 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
1278 PR rtl-optimization/59311
1279 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
1280 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
1282 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1284 * var-tracking.c (track_expr_p): Do not track declarations for parts
1285 of tracked parameters.
1286 (add_stores): Do not track values for tracked parameters passed in
1288 (vt_get_decl_and_offset): Handle PARALLEL.
1289 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
1291 2013-11-27 Jeff Law <law@redhat.com>
1293 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1294 clobber the loop structure thread_block was unsuccessful. If
1295 thread_block was unsuccessful, cleanup appropriately.
1297 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
1299 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
1300 (score_char_to_class): Likewise.
1302 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
1304 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
1305 the overflow bit set.
1307 2013-11-27 Richard Biener <rguenther@suse.de>
1310 * cgraphbuild.c (build_cgraph_edges): Do not build edges
1312 (rebuild_cgraph_edges): Likewise.
1313 * ipa-inline-analysis.c (estimate_function_body_sizes):
1314 Skip internal calls.
1315 * tree-inline.c (estimate_num_insns): Estimate size of internal
1317 (gimple_expand_calls_inline): Do not try inline-expanding
1319 * lto-streamer-in.c (input_cfg): Stream loop safelen,
1320 force_vect and simduid.
1321 (input_struct_function_base): Stream has_force_vect_loops
1322 and has_simduid_loops.
1323 (input_function): Adjust.
1324 * lto-streamer-out.c (output_cfg): Stream loop safelen,
1325 force_vect and simduid.
1326 (output_struct_function_base): Stream has_force_vect_loops
1327 and has_simduid_loops.
1329 2013-11-27 Kai Tietz <ktietz@redhat.com>
1331 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
1334 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
1336 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
1337 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
1339 2013-11-27 Marek Polacek <polacek@redhat.com>
1342 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
1343 instead of walk_gimple_op.
1344 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
1346 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
1347 Jakub Jelinek <jakub@redhat.com>
1349 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
1350 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
1351 (struct cgraph_node): Add simdclone and simd_clones fields.
1352 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
1353 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
1354 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1355 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
1356 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1357 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
1358 * doc/tm.texi: Regenerated.
1359 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
1360 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
1361 attribute is present.
1362 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
1363 (simd_clone_vector_of_formal_parm_types): New function.
1364 (simd_clone_struct_alloc, simd_clone_struct_copy,
1365 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
1366 simd_clone_compute_base_data_type, simd_clone_mangle,
1367 simd_clone_create, simd_clone_adjust_return_type,
1368 create_tmp_simd_array, simd_clone_adjust_argument_types,
1369 simd_clone_init_simd_arrays): New functions.
1370 (struct modify_stmt_info): New type.
1371 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1372 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1374 (pass_data_omp_simd_clone): New variable.
1375 (pass_omp_simd_clone): New class.
1376 (make_pass_omp_simd_clone): New function.
1377 * passes.def (pass_omp_simd_clone): New.
1378 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1379 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1380 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1381 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1382 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1383 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1384 * tree-vect-data-refs.c: Include cgraph.h.
1385 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1386 and find_data_references_in_bb, if find_data_references_in_stmt
1387 fails, still allow calls to #pragma omp declare simd functions
1388 in #pragma omp simd loops unless they contain data references among
1389 the call arguments or in lhs.
1390 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1392 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1394 * tree-vectorizer.h (enum stmt_vec_info_type): Add
1395 call_simd_clone_vec_info_type.
1396 (struct _stmt_vec_info): Add simd_clone_fndecl field.
1397 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1398 * tree-vect-stmts.c: Include tree-ssa-loop.h,
1399 tree-scalar-evolution.h and cgraph.h.
1400 (vectorizable_call): Handle calls without lhs. Assert
1401 !stmt_can_throw_internal instead of failing for it. Don't update
1403 (struct simd_call_arg_info): New.
1404 (vectorizable_simd_clone_call): New function.
1405 (vect_transform_stmt): Call it.
1406 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
1408 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1409 if cgraph_function_with_gimple_body_p is true.
1411 2013-11-27 Tom de Vries <tom@codesourcery.com>
1412 Marc Glisse <marc.glisse@inria.fr>
1415 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1417 * gimple-fold.c (gimple_fold_indirect_ref): Same.
1418 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1421 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1424 * expr.c (emit_group_store): Don't write past the end of the structure.
1425 (store_bit_field): Fix formatting.
1427 2013-11-27 Richard Biener <rguenther@suse.de>
1429 PR tree-optimization/59288
1430 * tree-vect-loop.c (get_initial_def_for_induction): Do not
1431 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1433 2013-11-27 Marek Polacek <polacek@redhat.com>
1435 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1436 for a decl, recreate that decl. Save into the hash table VAR_DECLs
1437 rather than ADDR_EXPRs.
1439 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1441 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1443 2013-11-26 David Malcolm <dmalcolm@redhat.com>
1445 * gengtype.c (struct seen_tag): New.
1446 (already_seen_tag): New.
1447 (mark_tag_as_seen): New.
1448 (walk_subclasses): Support having multiple subclasses using the
1449 same tag by tracking which tags have already been seen, and using
1450 this to avoid adding duplicate cases to the "switch" statement.
1451 The call to already_seen_tag introduces an O(N^2) when running
1452 gengtype on N, the number of tags, due to the repeated linear
1453 search, but currently max(N) is relatively small (the number of
1454 GSS codes, which is 26).
1455 (walk_type): Pass in a seen_tag for use by the walk_subclasses
1458 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1459 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1460 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1461 GIMPLE_OMP_RETURN happens to share the data layout of
1462 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1463 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1464 underlying GSS value from GSS_OMP_PARALLEL to
1465 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1466 not directly related; they merely share in-memory layout.
1467 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1468 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1470 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1472 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1474 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1475 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1476 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1477 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1480 * gimple.h (gimple_statement_resx): New subclass of
1481 gimple_statement_eh_ctrl, with the invariant that
1482 stmt->code == GIMPLE_RESX.
1483 (gimple_statement_eh_dispatch): New subclass of
1484 gimple_statement_eh_ctrl, with the invariant that
1485 stmt->code == GIMPLE_EH_DISPATH.
1487 (gimple_statement_omp_parallel): The existing class expressed
1488 a layout (GSS_OMP_PARALLEL), but the codes with that layout
1489 are not all related, so it makes more sense for this class to
1490 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
1491 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1492 rename the existing gimple_statement_omp_parallel class to...
1493 (gimple_statement_omp_parallel_layout): ...this, expressing
1494 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1495 (gimple_statement_omp_taskreg): New subclass of
1496 gimple_statement_omp_parallel_layout, expressing the invariant
1497 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1498 as used by the various gimple_omp_taskreg_ accessors.
1499 (gimple_statement_omp_parallel): Reintroduce this class, this time
1500 as a subclass of gimple_statement_omp_taskreg to express the
1501 invariant stmt->code == GIMPLE_OMP_PARALLEL.
1502 (gimple_statement_omp_target) New class, subclassing
1503 gimple_statement_omp_parallel_layout, to express the invariant
1504 stmt->code == GIMPLE_OMP_TARGET.
1505 (gimple_statement_omp_task): Update to inherit from
1506 gimple_statement_omp_taskreg rather than
1507 gimple_statement_omp_parallel.
1509 (gimple_statement_omp_single): Rename to...
1510 (gimple_statement_omp_single_layout): ...this, expressing the
1511 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1512 (gimple_statement_omp_single): ...and reintroduce this name as
1513 a subclass of gimple_statement_omp_single_layout, expressing
1514 the invariant that code == GIMPLE_OMP_SINGLE.
1515 (gimple_statement_omp_teams): New class, subclassing
1516 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1518 (gimple_statement_omp_atomic_store): Rename to...
1519 (gimple_statement_omp_atomic_store_layout): ...this, expressing
1520 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1521 (gimple_statement_omp_atomic_store): ...and reintroduce this
1522 name as a subclass of gimple_statement_omp_atomic_store_layout
1523 with code == GIMPLE_OMP_ATOMIC_STORE.
1524 (gimple_statement_omp_return): New class, subclassing
1525 gimple_statement_omp_atomic_store_layout for the code
1528 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1529 (is_a_helper <gimple_statement_resx>::test): New.
1530 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1531 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1532 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1533 (is_a_helper <gimple_statement_omp_return>::test): New.
1534 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1535 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1536 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1538 (is_a_helper <gimple_statement_omp_target>::test): New.
1539 (is_a_helper <gimple_statement_omp_single>::test): Only check
1540 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1541 (is_a_helper <gimple_statement_omp_teams>::test): New.
1543 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1544 (is_a_helper <const gimple_statement_resx>::test): New.
1545 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1546 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1547 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1548 (is_a_helper <const gimple_statement_omp_return>::test): New.
1549 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1550 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1551 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1553 (is_a_helper <const gimple_statement_omp_target>::test): New.
1554 (is_a_helper <const gimple_statement_omp_single>::test): Only
1555 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1556 (is_a_helper <const gimple_statement_omp_teams>::test): New.
1558 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1559 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1560 gimple_statement_omp_atomic_store with downcasts to
1561 gimple_statement_omp_return, thus requiring that the code be
1563 (gimple_resx_region, gimple_resx_set_region): Replace bogus
1564 downcasts to gimple_statement_eh_ctrl with downcasts to
1565 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1566 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1567 Replace bogus downcasts to const gimple_statement_eh_ctrl with
1568 downcasts to gimple_statement_eh_dispatch, thus requiring that
1569 the code be GIMPLE_EH_DISPATCH.
1570 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1571 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1572 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1573 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1574 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1575 gimple_statement_omp_parallel with downcasts to
1576 gimple_statement_omp_taskreg, thus requiring that the code be
1577 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1578 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1579 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1580 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1581 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1582 gimple_omp_target_set_data_arg): Replace bogus downcasts to
1583 gimple_statement_omp_parallel with downcasts to
1584 gimple_statement_omp_target, thus requiring that the code be
1586 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1587 gimple_omp_teams_set_clauses): Replace bogus downcasts to
1588 gimple_statement_omp_single with downcasts to
1589 gimple_statement_omp_teams, thus requiring that the code be
1592 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1593 gimple_statement_resx.
1594 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1595 gimple_statement_eh_dispatch.
1597 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1599 PR tree-optimization/59014
1600 * tree-vrp.c (register_edge_assert_for_1): Don't look
1601 through conversions from non-integral types or through
1602 narrowing conversions.
1605 * config/i386/i386.c (device_alg): Fix up formatting.
1606 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1607 similarly to count && count < epilogue_size_needed. Fix up
1609 * builtins.c (determine_block_size): Fix comment typo.
1612 * ubsan.c (ubsan_source_location): Don't add any location
1613 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1614 (ubsan_create_data): Strip block info from LOC.
1617 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1618 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1620 PR rtl-optimization/59166
1621 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1622 DF_REF_LOC in validate_change call.
1623 (split_live_ranges_for_shrink_wrap): Likewise.
1626 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1627 of references to constant size types in simd loops, defer emitting
1628 initializer for the new_var, emit it later on only if not using
1632 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1633 for the inner loop if collapse_bb is non-NULL.
1634 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1636 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1638 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1639 a constant immediate before force_reg.
1641 2013-11-26 Richard Biener <rguenther@suse.de>
1643 PR tree-optimization/59245
1644 * tree-vrp.c (set_value_range): Assert that we don't have
1645 overflowed constants (but our infinities).
1646 (set_value_range_to_value): Drop all overflow flags.
1647 (vrp_visit_phi_node): Likewise.
1648 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1649 to set a constant range.
1651 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1654 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1655 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1656 for zero_extend case.
1658 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1661 * configure.ac (install_gold_as_default): New. Set to yes for
1662 --disable-ld or --enable-gold=default.
1663 (gcc_cv_ld_gold_srcdir): New.
1664 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1665 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1666 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1667 * configure: Regenerated.
1669 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1670 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1671 (original) [collect-ld && -fuse-ld=bfd]: Set to
1672 $ORIGINAL_LD_BFD_FOR_TARGET.
1673 (original) [collect-ld && -fuse-ld=gold]: Set to
1674 $ORIGINAL_LD_GOLD_FOR_TARGET.
1675 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1676 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1678 2013-11-26 Terry Guo <terry.guo@arm.com>
1680 * config/arm/arm.c (require_pic_register): Handle high pic base
1681 register for thumb-1.
1682 (arm_load_pic_register): Also initialize high pic base register.
1683 * doc/invoke.texi: Update documentation for option -mpic-register.
1685 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1689 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1690 Prefix function names with 'sh_'. Make them non-static.
1691 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1692 sh_max_mov_insn_displacement): Add declarations.
1693 * config/sh/constraints.md (Q): Reject QImode.
1694 (Sdd): Use match_code "mem".
1695 (Snd): Fix erroneous matching of non-memory operands.
1696 * config/sh/predicates.md (short_displacement_mem_operand): New
1698 (general_movsrc_operand): Disallow PC relative QImode loads.
1699 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1700 (*movqi, *movhi): Merge both insns into...
1701 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1702 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1703 on the operand types.
1705 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1707 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1708 Remove unused variable save_config.
1709 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1712 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1714 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1715 using other intrinsics.
1716 (vtbx3_<psu>8): Likewise.
1718 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1720 * config/aarch64/aarch64-builtins.c
1721 (aarch64_types_bsl_p_qualifiers): New.
1722 (aarch64_types_bsl_s_qualifiers): Likewise.
1723 (aarch64_types_bsl_u_qualifiers): Likewise.
1724 (TYPES_BSL_P): Likewise.
1725 (TYPES_BSL_S): Likewise.
1726 (TYPES_BSL_U): Likewise.
1727 (BUILTIN_VALLDIF): Likewise.
1728 (BUILTIN_VDQQH): Likewise.
1729 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1730 * config/aarch64/aarch64-simd.md
1731 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1732 (aarch64_simd_bsl<mode>): Likewise.
1733 * config/aarch64/arm_neon.h
1734 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1735 * config/aarch64/iterators.md (VALLDIF): New.
1736 (Vbtype): Handle more modes.
1738 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1740 * config/aarch64/aarch64-builtins.c
1741 (aarch64_type_qualifiers): Add qualifier_poly.
1742 (aarch64_build_scalar_type): Also build Poly types.
1743 (aarch64_build_vector_type): Likewise.
1744 (aarch64_build_type): Likewise.
1745 (aarch64_build_signed_type): New.
1746 (aarch64_build_unsigned_type): Likewise.
1747 (aarch64_build_poly_type): Likewise.
1748 (aarch64_init_simd_builtins): Also handle Poly types.
1750 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1752 * config/aarch64/aarch64-builtins.c
1753 (VAR1): Use new naming scheme for aarch64_builtins.
1754 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1756 2013-11-26 Richard Biener <rguenther@suse.de>
1758 PR tree-optimization/59287
1759 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1760 Remove no longer necessary special-casing of union accesses.
1762 2013-11-26 Richard Biener <rguenther@suse.de>
1764 * pretty-print.c (output_buffer::~output_buffer): Really
1767 2013-11-25 Jeff Law <law@redhat.com>
1769 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1770 invalidate loop information.
1772 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1774 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1776 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1780 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1782 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1783 previously visited basic blocks before recursing instead of only one
1786 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1788 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1789 * config/aarch64/aarch64-cores.def (cortex-a53):
1790 Use cortexa53 tuning struct.
1792 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1795 * fold-const.c: Include hash-table.h.
1797 2013-11-25 Marek Polacek <polacek@redhat.com>
1800 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1802 2013-11-25 Richard Biener <rguenther@suse.de>
1804 * tree-dfa.c: Remove unused convert.h include.
1806 2013-11-25 Terry Guo <terry.guo@arm.com>
1808 * doc/invoke.texi (-mslow-flash-data): Document new option.
1809 * config/arm/arm.opt (mslow-flash-data): New option.
1810 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1812 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1814 (arm_disable_literal_pool): Declare it.
1815 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1816 (arm_option_override): Handle new option.
1817 (thumb2_legitimate_address_p): Don't allow symbol references when
1818 literal pools are disabled.
1819 (arm_max_const_double_inline_cost): New function.
1820 * config/arm/arm.md (types.md): Include it before ...
1821 (use_literal_pool): New attribute.
1822 (enabled): Use new attribute.
1823 (split pattern): Replace symbol+offset with MOVW/MOVT.
1825 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1828 Revert previous commit.
1830 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1832 * jump.c (reset_insn_reg_label_operand_notes): New function,
1834 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1835 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1837 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1838 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1839 expensive CFG cleanup is called for.
1840 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1841 (cfg_layout_finalize): Delete dead jump tables before re-building
1843 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1844 basic blocks, not before.
1845 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1847 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1848 insns chain of a scheduling extended basic block, they cannot appear
1849 there in cfglayout mode.
1851 2013-11-24 Tobias Burnus <burnus@net-b.de>
1853 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1855 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1857 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1860 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1862 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1864 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1866 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1868 2013-11-23 David Edelson <dje.gcc@gmail.com>
1869 Andrew Dixie <andrewd@gentrack.com>
1872 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1873 (COLLECT_SHARED_FINI_FUNC): Define.
1875 * collect2.c (aix_shared_initname): Declare.
1876 (aix_shared_fininame): Declare.
1877 (symkind): Add SYM_AIXI and SYM_AIXD.
1878 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1879 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1880 (aixlazy_flag): Parse.
1881 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1882 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1884 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
1886 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1887 (rs6000_xcoff_select_section): Place decls with stricter alignment
1888 into named sections.
1889 (rs6000_xcoff_unique_section): Allow unique sections for
1890 uninitialized data with strict alignment.
1892 2013-11-23 Jakub Jelinek <jakub@redhat.com>
1894 PR tree-optimization/59154
1895 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1896 rhs1 of a cast and new_op is invariant, fold_convert it.
1897 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1898 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1900 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
1903 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1904 Declare as MULTI_ARG_1_SF instruction.
1905 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1906 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1907 from *xop_vmfrcz_<mode>.
1908 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1909 to merge scalar result with __A.
1910 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1913 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1915 * gimplify.h (recalculate_side_effects): Delete.
1916 * gimplify.c (recalculate_side_effects): Make static and add comment.
1918 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1920 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1921 for the destination of a define_peephole2. Likewise register_operand
1922 rather than arith_reg_operand. Remove constraints from
1925 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1927 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1929 (mn10300_store_multiple_operation_p): Declare.
1930 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1932 (mn10300_store_multiple_operation_p): ...this and remove mode
1934 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1937 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1939 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1940 (pop_multiple_operation): Delete.
1941 (analyze_push_multiple_operation): Declare.
1942 (analyze_pop_multiple_operation): Declare.
1943 * config/bfin/bfin.c (push_multiple_operation): Rename to...
1944 (analyze_push_multiple_operation): ...this and remove mode argument.
1945 (pop_multiple_operation): Rename to...
1946 (analyze_pop_multiple_operation): ...this and remove mode argument.
1947 * config/bfin/predicates.md (push_multiple_operation): Define.
1948 (pop_multiple_operation): Likewise.
1950 2013-11-23 Alan Modra <amodra@gmail.com>
1952 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1954 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1957 * common.opt (static-liblsan): Add.
1958 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1960 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
1961 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1963 * opts.c (common_handle_option): Handle -fsanitize=leak.
1964 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1965 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1966 (LIBUBSAN_EARLY_SPEC): Remove.
1967 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1968 (SANITIZER_SPEC): Add -fsanitize=leak handling.
1969 (sanitize_spec_function): Handle %sanitize(leak).
1970 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1972 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
1973 Jakub Jelinek <jakub@redhat.com>
1975 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1976 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1977 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
1978 (ipa_modify_formal_parameters): Adjust caller. Remove
1979 synth_parm_prefix argument. Use operator enum instead of bit fields.
1980 Add assert for properly handling vector of references. Handle
1981 creating brand new parameters.
1982 (ipa_modify_call_arguments): Use operator enum instead of bit
1984 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
1986 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1988 (ipa_dump_param_adjustments): Rename reduction to new_decl.
1989 Use operator enum instead of bit fields.
1990 * ipa-prop.h (enum ipa_parm_op): New.
1991 (struct ipa_parm_adjustment): New field op. Rename reduction
1992 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1994 (ipa_modify_formal_parameters): Remove last argument.
1995 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1996 ipa_get_adjustment_candidate): New prototypes.
1997 * tree-sra.c (turn_representatives_into_adjustments): Use operator
1998 enum. Set arg_prefix.
1999 (get_adjustment_for_base): Use operator enum.
2000 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
2002 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
2003 (ipa_sra_modify_function_body): Same. No longer static.
2004 (sra_ipa_reset_debug_stmts): Use operator enum.
2005 (modify_function): Do not pass prefix argument.
2007 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2009 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
2010 (ubsan_pass): Ignore clobber stmts.
2012 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
2013 * opts.c (common_handle_option): Add -fsanitize=return.
2014 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
2015 or it into SANITIZE_UNDEFINED.
2017 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
2018 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
2019 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
2020 Don't instrument accesses to VAR_DECLs which are known to fit
2021 into their bounds and the vars are known to have shadow bytes
2022 indicating allowed access.
2023 (asan_dynamic_init_call): New function.
2024 (asan_add_global): If vnode->dynamically_initialized,
2025 set __has_dynamic_init to 1 instead of 0.
2026 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
2027 * asan.h (asan_dynamic_init_call): New prototype.
2028 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
2030 2013-11-22 Martin Jambor <mjambor@suse.cz>
2032 PR rtl-optimization/10474
2033 * ira.c (interesting_dest_for_shprep_1): New function.
2034 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
2035 also check parallels.
2037 2013-11-22 Jeff Law <law@redhat.com>
2039 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
2040 NULL for RHS, which we used to invalidate equivalences.
2041 (record_temporary_equivalences_from_phis): New bitmap arguments
2042 and a boolean indicating if we have passed a backedge. If we
2043 have passed a backedge, then set the appropriate bit in the
2044 bitmaps for the SRC & DEST of PHIs creating equivalences.
2045 (invalidate_equivalences, dummy_simplify): New functions.
2046 (cond_arg_set_in_b): Remove.
2047 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
2048 arguments and a boolean indicating if we have passed a backedge.
2049 If we have passed a backedge, then perform invalidations as needed.
2050 (thread_around_empty_blocks): If we have seen a backedge, then
2051 use the dummy simplify routine.
2052 (thread_through_normal_block): Likewise. Pass bitmaps and
2053 backedge status to children. Do not pessimize so much when
2054 traversing backedges in the CFG.
2055 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
2056 If we have seen a backedge, then use the dummy simplify routine.
2057 Do not pessimize so much when traversing backedges.
2059 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
2061 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
2062 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
2064 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
2066 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
2067 PTA_PCLMUL and PTA_RDRND for Silvermont.
2068 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
2071 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
2073 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2075 * hooks.h (hook_uint_mode_0): Add Prototype.
2076 * hooks.c (hook_uint_mode_0): New default function.
2077 * target.def (atomic_align_for_mode): New target hook.
2078 * tree.c (build_atomic_base): Add alignment override parameter.
2079 (build_common_tree_nodes): Use atomic alignment override.
2080 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
2081 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
2083 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2085 * gimple.h: Remove all includes.
2086 (recalculate_side_effects): Move prototype to gimplify.h.
2087 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
2088 * gengtype.c (open_base_files): Add gimple.h include list.
2089 * gimplify.h (recalculate_side_effects): Relocate prototype here.
2090 * gimple.c: Adjust include list.
2091 (recalculate_side_effects): Move to gimplify.c.
2092 * gimplify.c: Adjust include list.
2093 (recalculate_side_effects): Relocate from gimple.c.
2094 * alias.c: Add required include files removed from gimple.h.
2096 * builtins.c: Likewise.
2097 * calls.c: Likewise.
2098 * cfgexpand.c: Likewise.
2099 * cfgloop.c: Likewise.
2100 * cfgloopmanip.c: Likewise.
2101 * cgraphbuild.c: Likewise.
2102 * cgraph.c: Likewise.
2103 * cgraphclones.c: Likewise.
2104 * cgraphunit.c: Likewise.
2105 * cilk-common.c: Likewise.
2106 * data-streamer.c: Likewise.
2107 * data-streamer-in.c: Likewise.
2108 * data-streamer-out.c: Likewise.
2110 * dwarf2out.c: Likewise.
2111 * emit-rtl.c: Likewise.
2112 * except.c: Likewise.
2114 * fold-const.c: Likewise.
2115 * function.c: Likewise.
2116 * gimple-builder.c: Likewise.
2117 * gimple-expr.c: Likewise.
2118 * gimple-fold.c: Likewise.
2119 * gimple-iterator.c: Likewise.
2120 * gimple-low.c: Likewise.
2121 * gimple-pretty-print.c: Likewise.
2122 * gimple-ssa-isolate-paths.c: Likewise.
2123 * gimple-ssa-strength-reduction.c: Likewise.
2124 * gimple-streamer-in.c: Likewise.
2125 * gimple-streamer-out.c: Likewise.
2126 * gimple-walk.c: Likewise.
2127 * gimplify-me.c: Likewise.
2128 * graphite-blocking.c: Likewise.
2129 * graphite.c: Likewise.
2130 * graphite-clast-to-gimple.c: Likewise.
2131 * graphite-dependences.c: Likewise.
2132 * graphite-interchange.c: Likewise.
2133 * graphite-optimize-isl.c: Likewise.
2134 * graphite-poly.c: Likewise.
2135 * graphite-scop-detection.c: Likewise.
2136 * graphite-sese-to-poly.c: Likewise.
2137 * internal-fn.c: Likewise.
2139 * ipa-cp.c: Likewise.
2140 * ipa-devirt.c: Likewise.
2141 * ipa-inline-analysis.c: Likewise.
2142 * ipa-inline.c: Likewise.
2143 * ipa-profile.c: Likewise.
2144 * ipa-prop.c: Likewise.
2145 * ipa-pure-const.c: Likewise.
2146 * ipa-reference.c: Likewise.
2147 * ipa-split.c: Likewise.
2148 * ipa-utils.c: Likewise.
2149 * langhooks.c: Likewise.
2150 * lto-cgraph.c: Likewise.
2151 * lto-compress.c: Likewise.
2152 * lto-opts.c: Likewise.
2153 * lto-section-in.c: Likewise.
2154 * lto-section-out.c: Likewise.
2155 * lto-streamer.c: Likewise.
2156 * lto-streamer-in.c: Likewise.
2157 * lto-streamer-out.c: Likewise.
2158 * omp-low.c: Likewise.
2159 * opts-global.c: Likewise.
2160 * passes.c: Likewise.
2161 * predict.c: Likewise.
2162 * profile.c: Likewise.
2165 * stor-layout.c: Likewise.
2166 * symtab.c: Likewise.
2167 * targhooks.c: Likewise.
2168 * toplev.c: Likewise.
2169 * tracer.c: Likewise.
2170 * trans-mem.c: Likewise.
2171 * tree-affine.c: Likewise.
2173 * tree-call-cdce.c: Likewise.
2174 * tree-cfg.c: Likewise.
2175 * tree-cfgcleanup.c: Likewise.
2176 * tree-chrec.c: Likewise.
2177 * tree-complex.c: Likewise.
2178 * tree-data-ref.c: Likewise.
2179 * tree-dfa.c: Likewise.
2180 * tree-eh.c: Likewise.
2181 * tree-emutls.c: Likewise.
2182 * tree-if-conv.c: Likewise.
2183 * tree-inline.c: Likewise.
2184 * tree-into-ssa.c: Likewise.
2185 * tree-loop-distribution.c: Likewise.
2186 * tree-nested.c: Likewise.
2187 * tree-nrv.c: Likewise.
2188 * tree-object-size.c: Likewise.
2189 * tree-outof-ssa.c: Likewise.
2190 * tree-parloops.c: Likewise.
2191 * tree-phinodes.c: Likewise.
2192 * tree-predcom.c: Likewise.
2193 * tree-pretty-print.c: Likewise.
2194 * tree-profile.c: Likewise.
2195 * tree-scalar-evolution.c: Likewise.
2196 * tree-sra.c: Likewise.
2197 * tree-ssa-address.c: Likewise.
2198 * tree-ssa-alias.c: Likewise.
2199 * tree-ssa.c: Likewise.
2200 * tree-ssa-ccp.c: Likewise.
2201 * tree-ssa-coalesce.c: Likewise.
2202 * tree-ssa-copy.c: Likewise.
2203 * tree-ssa-copyrename.c: Likewise.
2204 * tree-ssa-dce.c: Likewise.
2205 * tree-ssa-dom.c: Likewise.
2206 * tree-ssa-dse.c: Likewise.
2207 * tree-ssa-forwprop.c: Likewise.
2208 * tree-ssa-ifcombine.c: Likewise.
2209 * tree-ssa-live.c: Likewise.
2210 * tree-ssa-loop.c: Likewise.
2211 * tree-ssa-loop-ch.c: Likewise.
2212 * tree-ssa-loop-im.c: Likewise.
2213 * tree-ssa-loop-ivcanon.c: Likewise.
2214 * tree-ssa-loop-ivopts.c: Likewise.
2215 * tree-ssa-loop-manip.c: Likewise.
2216 * tree-ssa-loop-niter.c: Likewise.
2217 * tree-ssa-loop-prefetch.c: Likewise.
2218 * tree-ssa-loop-unswitch.c: Likewise.
2219 * tree-ssa-math-opts.c: Likewise.
2220 * tree-ssanames.c: Likewise.
2221 * tree-ssa-operands.c: Likewise.
2222 * tree-ssa-phiopt.c: Likewise.
2223 * tree-ssa-phiprop.c: Likewise.
2224 * tree-ssa-pre.c: Likewise.
2225 * tree-ssa-propagate.c: Likewise.
2226 * tree-ssa-reassoc.c: Likewise.
2227 * tree-ssa-sccvn.c: Likewise.
2228 * tree-ssa-sink.c: Likewise.
2229 * tree-ssa-strlen.c: Likewise.
2230 * tree-ssa-structalias.c: Likewise.
2231 * tree-ssa-tail-merge.c: Likewise.
2232 * tree-ssa-ter.c: Likewise.
2233 * tree-ssa-threadedge.c: Likewise.
2234 * tree-ssa-threadupdate.c: Likewise.
2235 * tree-ssa-uncprop.c: Likewise.
2236 * tree-ssa-uninit.c: Likewise.
2237 * tree-stdarg.c: Likewise.
2238 * tree-streamer.c: Likewise.
2239 * tree-streamer-in.c: Likewise.
2240 * tree-streamer-out.c: Likewise.
2241 * tree-switch-conversion.c: Likewise.
2242 * tree-tailcall.c: Likewise.
2243 * tree-vect-data-refs.c: Likewise.
2244 * tree-vect-generic.c: Likewise.
2245 * tree-vect-loop.c: Likewise.
2246 * tree-vect-loop-manip.c: Likewise.
2247 * tree-vectorizer.c: Likewise.
2248 * tree-vect-patterns.c: Likewise.
2249 * tree-vect-slp.c: Likewise.
2250 * tree-vect-stmts.c: Likewise.
2251 * tree-vrp.c: Likewise.
2253 * ubsan.c: Likewise.
2254 * value-prof.c: Likewise.
2255 * varpool.c: Likewise.
2256 * var-tracking.c: Likewise.
2257 * vtable-verify.c: Likewise.
2258 * config/darwin.c: Likewise.
2259 * config/aarch64/aarch64-builtins.c: Likewise.
2260 * config/aarch64/aarch64.c: Likewise.
2261 * config/alpha/alpha.c: Likewise.
2262 * config/i386/i386.c: Likewise.
2263 * config/i386/winnt.c: Likewise.
2264 * config/ia64/ia64.c: Likewise.
2265 * config/m32c/m32c.c: Likewise.
2266 * config/mep/mep.c: Likewise.
2267 * config/mips/mips.c: Likewise.
2268 * config/rs6000/rs6000.c: Likewise.
2269 * config/s390/s390.c: Likewise.
2270 * config/sh/sh.c: Likewise.
2271 * config/sparc/sparc.c: Likewise.
2272 * config/spu/spu.c: Likewise.
2273 * config/stormy16/stormy16.c: Likewise.
2274 * config/tilegx/tilegx.c: Likewise.
2275 * config/tilepro/tilepro.c: Likewise.
2276 * config/xtensa/xtensa.c: Likewise.
2278 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
2281 * arm.md (negdi_extendsidi): Fix invalid split.
2283 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
2285 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
2286 (vmov_n_f64): Likewise.
2287 (vmov_n_p8): Likewise.
2288 (vmov_n_p16): Likewise.
2289 (vmov_n_s8): Likewise.
2290 (vmov_n_s16): Likewise.
2291 (vmov_n_s32): Likewise.
2292 (vmov_n_s64): Likewise.
2293 (vmov_n_u8): Likewise.
2294 (vmov_n_u16): Likewise.
2295 (vmov_n_u32): Likewise.
2296 (vmov_n_u64): Likewise.
2297 (vmovq_n_f32): Likewise.
2298 (vmovq_n_f64): Likewise.
2299 (vmovq_n_p8): Likewise.
2300 (vmovq_n_p16): Likewise.
2301 (vmovq_n_s8): Likewise.
2302 (vmovq_n_s16): Likewise.
2303 (vmovq_n_s32): Likewise.
2304 (vmovq_n_s64): Likewise.
2305 (vmovq_n_u8): Likewise.
2306 (vmovq_n_u16): Likewise.
2307 (vmovq_n_u32): Likewise.
2308 (vmovq_n_u64): Likewise.
2310 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2312 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2313 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
2314 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
2315 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
2316 and also change to float UNSPEC.
2317 (reduc_maxmin_uns>_<mode>): Remove V2DI.
2318 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
2319 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
2320 result access for big-endian.
2321 (__LANE0): New macro used to fix up lane access of 'across-lanes'
2322 intrinsics for big-endian.
2323 * config/aarch64/iterators.md (VDQV): Add V2DI.
2325 (vp): New mode attribute.
2327 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2329 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2330 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
2333 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2335 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
2336 for big-endian element order.
2337 (aarch64_simd_vec_setv2di): Likewise.
2338 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
2339 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
2340 (vec_extract): Expand using aarch64_get_lane.
2341 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
2343 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2345 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
2346 and stores to be ABI compliant.
2348 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2350 * input.h (input_line): Remove.
2351 (input_filename): Likewise.
2352 (in_system_header): Likewise.
2353 * tree.h (EXPR_LOC_OR_HERE): Remove.
2354 * config/bfin/bfin.c (output_file_start): Remove use of
2355 input_filename macro.
2356 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
2357 * gimplify.c (internal_get_tmp_var): Likewise.
2358 EXPR_LOC_OR_HERE macro.
2359 (shortcut_cond_expr): Likewise.
2360 * tree-diagnostic.c (diagnostic_report_current_function): Remove
2361 use of input_filename macro.
2362 * tree.c (get_file_function_name): Likewise.
2364 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2366 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
2368 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2370 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2371 (same sized) elements even if the type of the CONSTRUCTOR has
2372 vector mode and target is a REG.
2374 2013-11-22 Richard Biener <rguenther@suse.de>
2377 2013-11-21 Richard Biener <rguenther@suse.de>
2379 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2380 nb_iterations_upper_bound by one.
2382 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
2384 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2387 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2388 core-avx-i, core-avx2 and slm.
2390 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
2392 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2394 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
2396 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2397 (stzx_24_<mode>): Likewise mra_operand.
2399 2013-11-22 Jeff Law <law@redhat.com>
2401 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2402 (thread_block_1): Do not cancel jump threads which go from
2403 inside a loop, through the header, then back inside the loop.
2404 (bb_ends_with_multiway_branch): New function.
2405 (thread_through_all_blocks): Handle threading cases which start
2406 in a loop through the loop header to a point in the loop.
2408 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2409 jump thread path properly.
2411 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
2413 * vec.h (auto_vec): New class.
2414 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2415 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2416 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2417 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2418 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2419 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2420 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2421 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2422 appropriate instead of vec for local variables.
2424 2013-11-21 Teresa Johnson <tejohnson@google.com>
2427 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2428 not understood by old_insns_match_p.
2430 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
2432 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2433 little endian change.
2434 (vec_pack_sfix_trunc_v2df): Likewise.
2435 (vec_pack_ufix_trunc_v2df): Likewise.
2436 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2437 double checking of endianness.
2439 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2441 * tree-vect-generic.c (optimize_vector_constructor): New function.
2442 (expand_vector_operations_1): Call it.
2444 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
2446 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2447 ix86_zero_extend_to_Pmode where appropriate.
2448 (ix86_expand_builtin): Ditto.
2450 2013-11-21 Cary Coutant <ccoutant@google.com>
2452 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2453 (add_linkage_name): Don't add linkage name for -g1.
2454 (decls_for_scope): Process subblocks for -g1.
2455 (dwarf2out_source_line): Output line tables for -g1.
2456 (dwarf2out_finish): Likewise.
2457 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2458 unused scopes for -g1.
2459 * opts.c (common_handle_option): Handle -g same as -g2.
2460 * doc/invoke.texi: Update description for -g1.
2462 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
2464 * doc/extend.texi: Document htm builtins.
2466 2013-11-21 Jeff Law <law@redhat.com>
2468 PR tree-optimization/59221
2469 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2470 temporary equivalences when threading through joiner blocks.
2472 2013-11-21 Joseph Myers <joseph@codesourcery.com>
2474 PR rtl-optimization/55950
2475 * real.c (real_sqrt): Remove function.
2476 * real.h (real_sqrt): Remove prototype.
2477 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2478 SQRT using real_sqrt.
2480 2013-11-21 Richard Biener <rguenther@suse.de>
2482 PR tree-optimization/59058
2483 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2484 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2485 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2486 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2487 (NITERS_KNOWN_P): Fold into ...
2488 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2489 (LOOP_VINFO_PEELING_FOR_NITER): Add.
2490 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2491 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2492 (vect_do_peeling_for_alignment): Re-use precomputed niter
2493 instead of re-emitting it.
2494 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2495 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2496 * tree-vect-loop.c (vect_get_loop_niters): Use
2497 number_of_latch_executions.
2498 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2499 (vect_analyze_loop_form): Simplify.
2500 (vect_analyze_loop_operations): Move epilogue peeling code ...
2501 (vect_analyze_loop_2): ... here and adjust it to compute
2502 LOOP_VINFO_PEELING_FOR_NITER.
2503 (vect_estimate_min_profitable_iters): Use
2504 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2505 (vect_build_loop_niters): Emit on the preheader.
2506 (vect_generate_tmps_on_preheader): Likewise.
2507 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2508 of recomputing it. Adjust.
2510 2013-11-21 Richard Biener <rguenther@suse.de>
2512 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2513 LOC_LINE): Remove wrappers and fix all users.
2514 (struct _loop_vec_info): Remove loop_line_number member.
2515 (LOOP_VINFO_LOC): Remove.
2516 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2517 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2520 2013-11-21 Richard Biener <rguenther@suse.de>
2522 * tree-ssa-forwprop.c (simplify_vce): New function.
2523 (ssa_forward_propagate_and_combine): Call it.
2525 2013-11-21 Richard Biener <rguenther@suse.de>
2527 * tree-vect-loop-manip.c (vect_build_loop_niters,
2528 vect_generate_tmps_on_preheader): Move ...
2529 * tree-vect-loop.c (vect_build_loop_niters,
2530 vect_generate_tmps_on_preheader): ... here and simplify.
2531 (vect_transform_loop): Call them here and pass down results
2533 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2534 Get niter variables from caller.
2535 (vect_do_peeling_for_alignment): Likewise.
2536 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2537 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2540 2013-11-21 Richard Biener <rguenther@suse.de>
2542 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2543 nb_iterations_upper_bound by one.
2545 2013-11-21 Richard Biener <rguenther@suse.de>
2547 PR tree-optimization/59058
2548 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2549 (build_size_arg_loc): Apply niter adjustment here.
2550 (generate_memset_builtin): Adjust.
2551 (generate_memcpy_builtin): Likewise.
2552 (classify_partition): Do not use number_of_exit_cond_executions
2553 but record whether niter needs to be adjusted.
2555 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
2557 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2560 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
2563 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2564 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2565 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2566 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2567 sh_optimize_sett_clrt pass.o to extra_objs.
2569 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2571 * cfg.c (dump_edge_info): Remove redundant comment.
2572 * cfgcleanup.c (outgoing_edges_match): Reword reference to
2573 EXIT_BLOCK_PTR in comment.
2574 (try_optimize_cfg): Likewise.
2575 * cfgrtl.c (last_bb_in_partition): Likewise.
2576 * cgraph.c (cgraph_node_cannot_return): Likewise.
2577 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2578 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2579 * ipa-split.c (consider_split): Likewise.
2580 * profile.c (find_spanning_tree): Likewise.
2581 * sched-int.h (common_sched_info_def.add_block): Likewise.
2582 * dominance.c (calc_dfs_tree_nonrec): Reword references in
2583 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2584 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2585 in comments to now removed ENTRY_BLOCK_PTR macro.
2586 (tree_forwarder_block_p): Reword reference in comment to
2588 * tree-inline.c (copy_cfg_body): Reword references in comments to
2589 now removed ENTRY_BLOCK_PTR macro.
2590 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2591 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
2592 a comma to the comment to clarify the meaning.
2594 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
2596 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2598 (free_gimplify_stack): Add prototype.
2599 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2600 (struct gimplify_ctx): Relocate here.
2601 (gimplify_ctxp): Make static.
2602 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
2603 list of struct gimplify_ctx.
2604 (push_gimplify_context): Add default parameters and allocate a struct
2606 (pop_gimplify_context): Free a struct back to the pool.
2607 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2608 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2609 use a local 'struct gimplify_ctx'.
2610 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2611 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2613 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2614 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2615 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2616 lower_omp_teams, execute_lower_omp): Likewise.
2617 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2618 * tree-inline.c (optimize_inline_calls): Likewise.
2620 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2622 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2623 (vsx_extract_<mode>): Likewise.
2624 (*vsx_extract_<mode>_one_le): New LE variant on
2625 *vsx_extract_<mode>_zero.
2626 (vsx_extract_v4sf): Adjust for little endian.
2628 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2630 PR rtl-optimization/59133
2631 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2633 (lra_create_new_reg_with_unique_value): Pass new argument value.
2634 (lra_emit_add, lra_emit_move): Ditto.
2635 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2636 (change_class): Rename to lra_change_class. Move to lra-int.h.
2637 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2639 (process_addr_reg, process_addr): Ditto.
2640 (curr_insn_transform): Ditto. Add check on old pseudo for
2642 * lra-int.h (lra_get_regno_hard_regno): Move below.
2643 (lra_change_class): Renamed change_class from lra.c.
2645 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2647 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2648 the children of a NULL pointer.
2650 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2652 * lra.c (lra): Set lra_in_progress before check_rtl call.
2653 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2654 adding clobber regs when LRA is running.
2656 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2658 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2659 restriction for ISA_MIPS32R2.
2660 (ISA_HAS_LXC1_SXC1): New macro.
2661 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2662 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2663 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2664 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2665 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2666 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2667 (*<ANYF:storex>_<P:mode>): Likewise.
2669 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2671 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2672 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2673 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2674 * config/mips/mips.md (recip_condition): Remove mode attribute.
2675 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2677 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2679 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2682 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2683 Make sure neg2_ovf is set before being used.
2685 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2687 * plugin.def: Add comment about register_callback and
2688 invoke_plugin_callbacks_full.
2690 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2691 Handle PLUGIN_INCLUDE_FILE event.
2693 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2695 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2696 allow subregs of TDmode in FPRs of smaller size in little-endian.
2697 (rs6000_split_multireg_move): When splitting an access to TDmode
2698 in FPRs, do not use simplify_gen_subreg.
2700 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2703 * real.c: Remove comment about decimal string conversion and
2705 (real_from_string): Use MPFR to convert nonzero decimal constant
2708 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2710 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2711 endianness of the D registers for the legacy encodings.
2713 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2715 PR rtl-optimization/54300
2716 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2717 outputs in a single-set are killed from the value chains.
2719 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2721 * cgraph.h (varpool_node): Add need_bounds_init field.
2722 * lto-cgraph.c (lto_output_varpool_node): Output
2723 need_bounds_init value.
2724 (input_varpool_node): Read need_bounds_init value.
2725 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2727 2013-11-20 Jan Hubicka <jh@suse.cz>
2729 * opts.c (finish_options): Imply -ffat-lto-objects with
2730 -fno-use-linker-plugin.
2731 * common.opt (fuse-linker-plugin): Add var.
2733 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2735 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2736 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2737 (gen_type_die_with_usage): Skip pointer bounds.
2738 (dwarf2out_global_decl): Likewise.
2740 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2742 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2745 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
2748 * config/i386/i386.c (ix86_option_override_internal): Add missed
2749 argument prefix for 'ix86_fpmath'.
2750 * config/i386/ssemath.h: Add missed definition of
2751 TARGET_FPMATH_DEFAULT_P macros.
2753 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2754 Mike Stump <mikestump@comcast.net>
2755 Richard Sandiford <rdsandiford@googlemail.com>
2757 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2758 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2759 tree_fits_shwi_p or tree_fits_uhwi_p.
2760 * builtins.c (fold_builtin_powi): Likewise.
2761 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2763 * dbxout.c (dbxout_symbol): Likewise.
2764 * expr.c (expand_expr_real_1): Likewise.
2765 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2766 (fold_binary_loc): Likewise.
2767 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2768 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2769 * omp-low.c (lower_omp_for_lastprivate): Likewise.
2770 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2771 * stor-layout.c (compute_record_mode): Likewise.
2772 * tree-cfg.c (verify_expr): Likewise.
2773 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2774 * tree-pretty-print.c (dump_array_domain): Likewise.
2775 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2776 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2777 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2778 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2779 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2780 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2781 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2782 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2783 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2784 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2785 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2786 (create_variable_info_for_1): Likewise.
2787 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2788 (vect_verify_datarefs_alignment): Likewise.
2789 (vect_analyze_data_ref_accesses): Likewise.
2790 (vect_prune_runtime_alias_test_list): Likewise.
2791 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2793 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2795 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2796 overflow. Use tree_to_shwi.
2798 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2800 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2801 HOST_WIDE_INTs when folding (x >> c) << c.
2803 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2804 Dominik Vogt <vogt@linux.vnet.ibm.com>
2806 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2807 int comparisons with an out of range condition code.
2808 (s390_optimize_nonescaping_tx): Skip empty BBs.
2809 Generate the new tbegin RTX when removing the FPR clobbers (with
2811 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2812 result before doing the retry calculations.
2813 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2815 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2816 the TDB setting part of an tbegin.
2817 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2818 ("tx_assist"): Set unused argument to an immediate zero instead of
2819 loading zero into a GPR and pass it as argument.
2820 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2821 Remove inline and related attributes.
2822 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2823 (__TM_is_illegal, __TM_is_footprint_exceeded)
2824 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2826 2013-11-20 Richard Biener <rguenther@suse.de>
2829 * lto-opts.c (lto_write_options): Write defaults only if
2830 they were not explicitely specified. Also write
2831 -ffp-contract default.
2832 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2834 (run_gcc): Pass through -ffp-contract.
2836 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2838 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2840 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2842 * gcc/config/aarch64/aarch64-builtins.c
2843 (aarch64_simd_itype): Remove.
2844 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2845 (VAR1): Use qualifiers.
2846 (aarch64_build_scalar_type): New.
2847 (aarch64_build_vector_type): Likewise.
2848 (aarch64_build_type): Likewise.
2849 (aarch64_init_simd_builtins): Refactor, remove special cases,
2850 consolidate main loop.
2851 (aarch64_simd_expand_args): Likewise.
2853 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2856 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2858 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2860 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2862 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2864 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2865 to "vec<>" instances.
2866 (build_pretty_printer): Register the vec<>* prettyprinter.
2868 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2870 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2871 (GdbSubprinter.handles_type): New.
2872 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2873 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2874 (GdbPrettyPrinters.add_printer): Remove in favor of...
2875 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2876 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2877 (GdbPrettyPrinters.__call__): Update search for subprinter
2878 to use handles_type method.
2879 (build_pretty_printer): Update registration of subprinters to
2880 use the new API above, supporting multiple spelling of each type,
2881 and allowing for future regex-based subprinters.
2883 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2885 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2886 V16QI vector splat case for little endian.
2888 2013-11-19 Jeff Law <law@redhat.com>
2890 * tree-ssa-threadedge.c (thread_across_edge): After threading
2891 through a joiner, allow threading a normal block requiring duplication.
2893 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2894 jump threading requests that would muck up the loop structures.
2896 * tree-ssa-threadupdate.c: Fix trailing whitespace.
2897 * tree-ssa-threadupdate.h: Likewise.
2899 2013-11-19 Mike Stump <mikestump@comcast.net>
2901 * gdbinit.in: Add pmz to print out mpz values.
2903 2013-11-20 Jan Hubicka <jh@suse.cz>
2905 * common.opt (ffat-lto-objects): Disable by default.
2906 * doc/invoke.texi (fat-lto-objects): Update documentation.
2907 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2909 2013-11-19 Martin Jambor <mjambor@suse.cz>
2911 PR rtl-optimization/59099
2912 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2914 (ira): Move init_reg_equiv and call to
2915 split_live_ranges_for_shrink_wrap up, remove analyses around call
2916 to find_moveable_pseudos.
2918 2013-11-20 Alan Modra <amodra@gmail.com>
2920 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2921 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2922 to strict alignment on older processors when little-endian.
2923 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2926 2013-11-19 Teresa Johnson <tejohnson@google.com>
2928 * common/config/i386/i386-common.c: Enable
2929 -freorder-blocks-and-partition at -O2 and up for x86.
2930 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2931 * opts.c (finish_options): Only warn if
2932 -freorder-blocks-and-partition was set on command line.
2934 2013-11-19 Sriraman Tallam <tmsriram@google.com>
2936 * final.c (final_scan_insn): Emit a label for the split
2937 cold function part. Label name is formed by suffixing
2938 the original function name with "cold".
2940 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2942 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2943 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2944 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2945 (EXIT_BLOCK_PTR_FOR_FN): ...this.
2946 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2948 (EXIT_BLOCK_PTR): Likewise.
2949 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2950 (FOR_ALL_BB_FN): Update for renaming of
2951 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2953 * cfg.c (init_flow): Likewise.
2954 (check_bb_profile): Likewise.
2955 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2956 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2957 * cfghooks.c (account_profile_record): Likewise.
2958 * cfgloop.c (init_loops_structure): Likewise.
2959 * cgraphbuild.c (record_eh_tables): Likewise.
2960 (compute_call_stmt_bb_frequency): Likewise.
2961 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2962 * lto-streamer-in.c (input_cfg): Likewise.
2963 * predict.c (maybe_hot_frequency_p): Likewise.
2964 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2965 * tree-inline.c (initialize_cfun): Likewise.
2966 (copy_cfg_body): Likewise.
2967 (copy_body): Likewise.
2968 (tree_function_versioning): Likewise.
2970 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2971 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2972 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2973 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2974 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2975 (connect_traces): Likewise.
2976 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2977 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2978 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2980 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2982 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2983 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2984 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2985 (rotate_loop): Likewise.
2986 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2987 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2989 (alloc_aux_for_edges): Likewise.
2990 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2991 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2993 (compact_blocks): Likewise.
2994 (clear_edges): Likewise.
2995 * cfganal.c (single_pred_before_succ_order): Remove usage of
2996 ENTRY_BLOCK_PTR macro.
2997 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2998 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2999 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
3000 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
3001 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
3003 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
3004 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
3006 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
3007 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3008 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3009 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3010 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3011 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
3013 (print_edge_list): Likewise.
3014 (create_edge_list): Likewise.
3015 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3016 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3018 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
3020 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
3021 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3022 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
3023 (try_optimize_cfg): Likewise.
3024 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
3025 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
3026 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
3027 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
3028 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
3029 (try_forward_edges): Likewise.
3030 (try_simplify_condjump): Likewise.
3031 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
3032 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3033 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
3034 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
3036 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
3037 (expand_gimple_tailcall): Likewise.
3038 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
3039 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3040 (tidy_fallthru_edges): Likewise.
3041 (verify_flow_info): Likewise.
3042 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
3043 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
3044 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
3045 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3046 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
3047 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
3048 (get_loop_body_in_dom_order): Likewise.
3049 (get_loop_body): Likewise.
3050 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
3051 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3052 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
3054 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
3055 (fix_bb_placement): Likewise.
3056 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
3057 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3058 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
3059 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
3061 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3062 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
3063 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3064 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3066 (fixup_fallthru_exit_predecessor): Remove uses of macros:
3067 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3068 (fixup_reorder_chain): Likewise.
3069 (relink_block_chain): Likewise.
3070 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
3071 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3072 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3073 (force_one_exit_fallthru): Likewise.
3074 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
3076 (rtl_verify_edges): Likewise.
3077 (commit_edge_insertions): Likewise.
3078 (commit_one_edge_insertion): Likewise.
3079 (rtl_split_edge): Likewise.
3080 (force_nonfallthru_and_redirect): Likewise.
3081 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
3082 (skip_insns_after_block): Likewise.
3083 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
3085 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
3086 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
3088 (contains_no_active_insn_p): Likewise.
3089 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3090 (entry_of_function): Likewise.
3091 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
3092 (fixup_new_cold_bb): Likewise.
3093 (patch_jump_insn): Likewise.
3094 (try_redirect_by_replacing_jump): Likewise.
3095 (block_label): Likewise.
3096 (could_fall_through): Likewise.
3097 (can_fallthru): Likewise.
3098 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
3099 ENTRY_BLOCK_PTR macro.
3100 (rebuild_cgraph_edges): Likewise.
3101 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
3102 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3103 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
3104 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
3105 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
3106 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
3107 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
3108 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
3110 (reg_nonzero_bits_for_combine): Likewise.
3111 (set_nonzero_bits_and_sign_copies): Likewise.
3112 (combine_instructions): Likewise.
3113 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
3115 (bypass_conditional_jumps): Likewise.
3116 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
3117 (find_implicit_sets): Likewise.
3118 (cprop_jump): Likewise.
3119 * cse.c (cse_cc_succs): Likewise.
3120 (cse_find_path): Likewise.
3121 * df-problems.c (df_lr_confluence_0): Likewise.
3122 * df-scan.c (df_entry_block_defs_collect): Remove usage of
3123 ENTRY_BLOCK_PTR macro.
3124 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
3125 * dominance.c (iterate_fix_dominators): Remove usage of
3126 ENTRY_BLOCK_PTR macro.
3127 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3128 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
3129 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
3131 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
3133 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
3135 * domwalk.c (cmp_bb_postorder): Likewise.
3136 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
3137 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
3139 (sjlj_emit_function_enter): Likewise.
3140 * final.c (compute_alignments): Likewise.
3141 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
3142 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3143 (reposition_prologue_and_epilogue_notes): Remove usage of
3144 EXIT_BLOCK_PTR macro.
3145 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
3147 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
3148 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
3149 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
3150 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
3151 (compute_code_hoist_vbeinout): Likewise.
3152 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3153 (pre_expr_reaches_here_p_work): Likewise.
3154 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
3155 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
3157 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
3158 ENTRY_BLOCK_PTR macro.
3159 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
3161 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
3162 ENTRY_BLOCK_PTR macro.
3163 * graphite-scop-detection.c (build_scops): Likewise.
3164 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
3165 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
3166 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
3168 (unlink_bb_notes): Likewise.
3169 (create_check_block_twin): Likewise.
3170 (init_before_recovery): Likewise.
3171 (sched_extend_bb): Likewise.
3172 (priority): Likewise.
3173 * hw-doloop.c (reorder_loops): Likewise.
3174 (discover_loop): Likewise.
3175 * ifcvt.c (dead_or_predicable): Remove uses of macros:
3176 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3177 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
3178 (block_has_only_trap): Likewise.
3179 (cond_exec_find_if_block): Likewise.
3180 (merge_if_block): Likewise.
3181 * ipa-inline-analysis.c (param_change_prob): Remove usage of
3182 ENTRY_BLOCK_PTR macro.
3183 (record_modified): Likewise.
3184 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
3185 EXIT_BLOCK_PTR macro.
3186 (local_pure_const): Likewise.
3187 * ipa-split.c (split_function): Remove uses of macros:
3188 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3189 (find_split_points): Likewise.
3190 (consider_split): Likewise.
3191 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
3192 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3193 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
3194 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
3195 * ira-emit.c (entered_from_non_parent_p): Remove usage of
3196 ENTRY_BLOCK_PTR macro.
3197 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
3198 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
3199 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
3200 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3201 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
3203 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
3205 (compute_farthest): Likewise.
3206 (compute_available): Likewise.
3207 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
3208 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
3210 (compute_earliest): Likewise.
3211 (compute_antinout_edge): Likewise.
3212 * loop-iv.c (simplify_using_initial_values): Remove usage of
3213 ENTRY_BLOCK_PTR macro.
3214 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
3216 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
3218 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
3220 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
3221 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3222 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
3224 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
3226 * lto-streamer-out.c (output_cfg): Likewise.
3227 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
3229 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
3230 * mode-switching.c (optimize_mode_switching): Likewise.
3231 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
3232 * modulo-sched.c (rest_of_handle_sms): Likewise.
3233 (canon_loop): Likewise.
3234 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
3235 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
3236 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3237 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
3239 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
3240 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
3241 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
3242 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
3243 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
3244 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
3245 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
3246 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3247 (gimple_predict_edge): Likewise.
3248 (probably_never_executed): Likewise.
3249 * profile.c (find_spanning_tree): Remove uses of macros:
3250 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3251 (branch_prob): Likewise.
3252 (compute_branch_probabilities): Likewise.
3253 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
3254 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
3255 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
3256 (set_bb_counts): Likewise.
3257 (correct_negative_edge_counts): Likewise.
3258 (get_exec_counts): Likewise.
3259 (instrument_values): Likewise.
3260 (instrument_edges): Likewise.
3261 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
3263 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3264 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
3265 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3266 (reg_to_stack): Likewise.
3267 * regs.h (REG_N_SETS): Likewise.
3268 * reload.c (find_dummy_reload): Likewise.
3269 (combine_reloads): Likewise.
3270 (push_reload): Likewise.
3271 * reload1.c (has_nonexceptional_receiver): Remove usage of
3272 EXIT_BLOCK_PTR macro.
3273 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
3275 (find_basic_block): Likewise.
3276 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3277 (schedule_ebbs): Likewise.
3278 * sched-int.h (sel_sched_p): Likewise.
3279 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
3281 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3282 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
3284 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
3285 (extend_rgns): Likewise.
3286 (find_single_block_region): Likewise.
3287 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
3288 ENTRY_BLOCK_PTR macro.
3289 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
3290 (sel_create_recovery_block): Likewise.
3291 (bb_ends_ebb_p): Likewise.
3292 (sel_bb_end): Likewise.
3293 (sel_bb_head): Likewise.
3294 (free_lv_sets): Likewise.
3295 (init_lv_sets): Likewise.
3296 (tidy_control_flow): Likewise.
3297 (maybe_tidy_empty_bb): Likewise.
3298 * sel-sched-ir.h (_succ_iter_cond): Likewise.
3299 (_succ_iter_start): Likewise.
3300 (sel_bb_empty_or_nop_p): Likewise.
3301 (get_loop_exit_edges_unique_dests): Likewise.
3302 (inner_loop_header_p): Likewise.
3303 * sel-sched.c (create_block_for_bookkeeping): Likewise.
3304 (find_block_for_bookkeeping): Likewise.
3305 * store-motion.c (remove_reachable_equiv_notes): Likewise.
3306 (insert_store): Likewise.
3307 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
3308 ENTRY_BLOCK_PTR macro.
3309 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
3310 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
3311 (gate_tm_init): Likewise.
3312 (tm_region_init): Likewise.
3313 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
3314 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3315 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
3316 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3318 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3319 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
3321 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3323 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
3325 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
3327 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3328 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3329 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3330 (build_gimple_cfg): Likewise.
3331 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3332 (gimple_can_merge_blocks_p): Likewise.
3333 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
3334 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3335 * tree-complex.c (update_parameter_components): Remove usage of
3336 ENTRY_BLOCK_PTR macro.
3337 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
3338 EXIT_BLOCK_PTR macro.
3339 * tree-inline.c (tree_function_versioning): Remove uses of macros:
3340 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3341 (delete_unreachable_blocks_update_callgraph): Likewise.
3342 (initialize_cfun): Likewise.
3343 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
3344 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
3345 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
3346 * tree-into-ssa.c (update_ssa): Likewise.
3347 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
3348 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
3349 (rewrite_into_ssa): Likewise.
3350 (rewrite_debug_stmt_uses): Likewise.
3351 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
3352 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3353 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
3354 ENTRY_BLOCK_PTR macro.
3355 * tree-scalar-evolution.h (block_before_loop): Likewise.
3356 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3357 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
3359 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
3361 (propagate_dereference_distances): Remove uses of macros:
3362 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3363 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
3365 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
3366 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
3367 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3368 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
3369 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3370 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3371 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3372 (mark_control_dependent_edges_necessary): Remove uses of macros:
3373 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3374 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3375 ENTRY_BLOCK_PTR macro.
3376 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3377 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3378 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3379 (calculate_live_on_exit): Likewise.
3380 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3381 (loe_visit_block): Likewise.
3382 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3383 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3384 (live_on_entry): Likewise.
3385 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3386 EXIT_BLOCK_PTR macro.
3387 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3388 ENTRY_BLOCK_PTR macro.
3389 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3390 (bound_difference): Likewise.
3391 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3392 of EXIT_BLOCK_PTR macro.
3393 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3394 of ENTRY_BLOCK_PTR macro.
3395 * tree-ssa-math-opts.c (register_division_in): Likewise.
3396 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3397 * tree-ssa-pre.c (compute_avail): Likewise.
3398 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3399 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3400 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3401 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3402 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3404 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3405 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3406 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3407 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3408 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3409 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3410 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3411 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3412 (find_pdom): Likewise.
3413 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3414 * tree-stdarg.c (reachable_at_most_once): Likewise.
3415 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3416 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3417 (eliminate_tail_call): Likewise.
3418 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3420 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3421 * var-tracking.c (vt_initialize): Remove uses of macros:
3422 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3423 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3424 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3425 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3427 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3429 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3430 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3431 of EXIT_BLOCK_PTR macro.
3432 * config/arm/arm.c (require_pic_register): Remove usage of
3433 ENTRY_BLOCK_PTR macro.
3434 (arm_r3_live_at_start_p): Likewise.
3435 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3436 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3437 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3438 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3439 ENTRY_BLOCK_PTR macro.
3440 * config/i386/i386.c (ix86_count_insn): Likewise.
3441 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3442 (ix86_pad_short_function): Likewise.
3443 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3444 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3445 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3446 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3447 (ix86_expand_epilogue): Likewise.
3448 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3449 (ia64_expand_prologue): Likewise.
3451 2013-11-19 Catherine Moore <clm@codesourcery.com>
3453 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3454 * config/mips/mips.opt (mfix-rm7000): New option.
3455 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3456 * config/mips/mips.c (mips_reorg_process_insns): Disable
3457 noreorder for TARGET_FIX_RM7000.
3459 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
3461 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3463 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3465 * config/arm/arm.c (arm_new_rtx_costs):
3466 Handle narrow mode add-shifts properly.
3467 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3468 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3471 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3473 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3475 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3477 * config/rs6000/vector.md ("mov<mode>"): Do not call
3478 rs6000_emit_le_vsx_move to move into or out of GPRs.
3479 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3480 source and destination are not GPR hard regs.
3482 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3484 * basic-block.h (n_edges_for_function): Rename macro to...
3485 (n_edges_for_fn): ...this.
3486 (n_edges): Eliminate macro as work towards making uses of
3489 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3490 to "n_edges_for_fn".
3492 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3493 (clear_edges): Likewise.
3494 (free_edge): Likewise.
3495 * cfghooks.c (dump_flow_info): Likewise.
3496 * cprop.c (is_too_expensive): Likewise.
3497 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3498 * gcse.c (is_too_expensive): Likewise.
3499 (prune_insertions_deletions): Likewise.
3500 * mcf.c (create_fixup_graph): Likewise.
3501 * sched-rgn.c (haifa_find_rgns): Likewise.
3502 * tree-cfg.c (gimple_dump_cfg): Likewise.
3503 * var-tracking.c (variable_tracking_main_1): Likewise.
3505 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3507 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3510 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3512 * config/aarch64/aarch64.md
3513 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3515 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3517 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3519 2013-11-19 Joseph Myers <joseph@codesourcery.com>
3521 * varasm.c (align_variable): Give error instead of warning for
3522 unsupported alignment.
3523 (assemble_noswitch_variable): Likewise.
3525 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3527 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3530 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
3532 * loop-doloop.c (doloop_optimize_loops): Remove unused
3533 loop iterator argument from FOR_EACH_LOOP.
3535 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3537 Convert gimple types from a union to C++ inheritance.
3538 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3539 * coretypes.h (union gimple_statement_d): Remove declaration.
3540 (gimple): Convert from being a "union gimple_statement_d *"
3541 to a "struct gimple_statement_base *".
3542 (const_gimple): Likewise (with "const").
3543 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3544 (ggc_alloc_cleared_gimple_statement_stat): ...this.
3545 * gimple-pretty-print.c (debug): Change parameter from a
3546 "gimple_statement_d &" to a "gimple_statement_base &".
3547 (debug): Change parameter from a "gimple_statement_d *" to
3548 a "gimple_statement_base *".
3549 * gimple-pretty-print.h (debug): Update declarations as above.
3550 * gimple.c (gimple_alloc_stat): Update for renaming of
3551 ggc_alloc_cleared_gimple_statement_d_stat to
3552 ggc_alloc_cleared_gimple_statement_stat.
3553 * gimple.h: Include "is-a.h" for use by is_a_helper
3554 specializations in followup autogenerated patch.
3555 (struct gimple statement_base): Make this type usable as a base
3556 class by adding "desc", "tag" and "variable_size" to GTY, thus
3557 using opting-in to gengtype's support for simple inheritance.
3558 (gimple_statement_with_ops_base): Convert to a subclass of
3559 gimple_statement_base, dropping initial "gsbase" field. Note that
3560 this type is abstract, with no GSS_ value, and thus no GTY tag value.
3561 (gimple_statement_with_ops): Convert to a subclass of
3562 gimple_statement_with_ops_base, dropping initial "opbase" field.
3563 Add tag value to GTY marking. Update marking of op field to
3564 reflect how num_ops field is accessed via inheritance.
3565 (gimple_statement_with_memory_ops_base): Convert to a subclass of
3566 gimple_statement_with_ops_base, dropping initial "opbase" field.
3567 Add tag value to GTY marking.
3568 (gimple_statement_with_memory_ops): Convert to a subclass of
3569 public gimple_statement_with_memory_ops_base, dropping initial
3570 "membase" field. Add tag value to GTY marking. Update marking
3571 of op field to reflect how num_ops field is accessed via inheritance.
3572 (gimple_statement_call): Analogous changes that also update the
3573 marking of the "u" union.
3574 (gimple_statement_omp): Convert to a subclass of
3575 gimple_statement_base, dropping initial "gsbase" field, adding
3576 tag value to GTY marking.
3577 (gimple_statement_bind): Likewise.
3578 (gimple_statement_catch): Likewise.
3579 (gimple_statement_eh_filter): Likewise.
3580 (gimple_statement_eh_else): Likewise.
3581 (gimple_statement_eh_mnt): Likewise.
3582 (gimple_statement_phi): Likewise.
3583 (gimple_statement_eh_ctrl): Likewise.
3584 (gimple_statement_try): Likewise.
3585 (gimple_statement_wce): Likewise.
3586 (gimple_statement_asm): Convert to a subclass of
3587 gimple_statement_with_memory_ops_base, dropping initial
3588 "membase" field, adding tag value to GTY marking, and updating
3589 marking of op field.
3590 (gimple_statement_omp_critical): Convert to a subclass of
3591 gimple_statement_omp, dropping initial "omp" field, adding tag
3592 value to GTY marking.
3593 (gimple_statement_omp_for): Likewise.
3594 (gimple_statement_omp_parallel): Likewise.
3595 (gimple_statement_omp_task): Convert to a subclass of
3596 gimple_statement_omp_parallel, dropping initial "par" field,
3597 adding tag value to GTY marking.
3598 (gimple_statement_omp_sections): Convert to a subclass of
3599 gimple_statement_omp, dropping initial "omp" field, adding
3600 tag value to GTY marking.
3601 (gimple_statement_omp_continue): Convert to a subclass of
3602 gimple_statement_base, dropping initial "gsbase" field, adding
3603 tag value to GTY marking.
3604 (gimple_statement_omp_single): Convert to a subclass of
3605 gimple_statement_omp, dropping initial "omp" field, adding
3606 tag value to GTY marking.
3607 (gimple_statement_omp_atomic_load): Convert to a subclass of
3608 gimple_statement_base, dropping initial "gsbase" field, adding
3609 tag value to GTY marking.
3610 (gimple_statement_omp_atomic_store): Convert to a subclass of
3611 gimple_statement_base, dropping initial "gsbase" field, adding
3612 tag value to GTY marking.
3613 (gimple_statement_transaction): Convert to a subclass of
3614 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3615 field, adding tag value to GTY marking.
3616 (union gimple_statement_d): Remove.
3617 * system.h (CONST_CAST_GIMPLE): Update to use
3618 "struct gimple_statement_base *" rather than
3619 "union gimple_statement_d *".
3620 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3621 gimple_statement_d to gimple_statement_base.
3623 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3624 (gimple_set_use_ops): Port from union to usage of as_a.
3625 (gimple_set_vuse): Likewise.
3626 (gimple_set_vdef): Likewise.
3627 (gimple_call_internal_fn): Port from union to a static_cast,
3628 given that the type has already been asserted.
3629 (gimple_omp_body_ptr): Port from unchecked union usage to
3631 (gimple_omp_set_body): Likewise.
3633 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3634 gimple types to a true class hierarchy.
3635 (update_call_edge_frequencies): Likewise.
3636 (gsi_insert_seq_nodes_before): Likewise.
3637 (gsi_insert_seq_nodes_after): Likewise.
3638 (gsi_split_seq_after): Likewise.
3639 (gsi_set_stmt): Likewise.
3640 (gsi_split_seq_before): Likewise.
3641 (gsi_remove): Likewise.
3642 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3643 (gsi_next): Likewise.
3644 (gsi_prev): Likewise.
3645 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3646 * gimple-ssa.h (gimple_vuse_op): Likewise.
3647 (gimple_vdef_op): Likewise.
3648 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3649 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3650 * gimple.c (gimple_set_code): Likewise.
3651 (gimple_alloc_stat): Likewise.
3652 (gimple_set_subcode): Likewise.
3653 (gimple_build_call_internal_1): Likewise.
3654 (gimple_check_failed): Likewise.
3655 (gimple_call_flags): Likewise.
3656 (gimple_set_bb): Likewise.
3657 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3658 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3659 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3660 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3661 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3662 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3663 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3664 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3665 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3666 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3667 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3668 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3669 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3670 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3671 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3672 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3673 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3674 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3675 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3676 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3677 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3678 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3679 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3680 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3681 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3682 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3684 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3686 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3688 (is_a_helper <const gimple_statement_omp_atomic_store>
3689 (const_gimple)): Likewise.
3690 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3692 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3694 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3696 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3698 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3700 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3702 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3704 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3705 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3707 (gimple_seq_last): Update for conversion of gimple types to a true
3709 (gimple_seq_set_last): Likewise.
3710 (gimple_code): Likewise.
3711 (gimple_bb): Likewise.
3712 (gimple_block): Likewise.
3713 (gimple_set_block): Likewise.
3714 (gimple_location): Likewise.
3715 (gimple_location_ptr): Likewise.
3716 (gimple_set_location): Likewise.
3717 (gimple_no_warning_p): Likewise.
3718 (gimple_set_no_warning): Likewise.
3719 (gimple_set_visited): Likewise.
3720 (gimple_visited_p): Likewise.
3721 (gimple_set_plf): Likewise.
3722 (gimple_plf): Likewise.
3723 (gimple_set_uid): Likewise.
3724 (gimple_uid): Likewise.
3725 (gimple_init_singleton): Likewise.
3726 (gimple_modified_p): Likewise.
3727 (gimple_set_modified): Likewise.
3728 (gimple_expr_code): Likewise.
3729 (gimple_has_volatile_ops): Likewise.
3730 (gimple_set_has_volatile_ops): Likewise.
3731 (gimple_omp_subcode): Likewise.
3732 (gimple_omp_set_subcode): Likewise.
3733 (gimple_omp_return_set_nowait): Likewise.
3734 (gimple_omp_section_set_last): Likewise.
3735 (gimple_omp_parallel_set_combined_p): Likewise.
3736 (gimple_omp_atomic_set_need_value): Likewise.
3737 (gimple_omp_atomic_set_seq_cst): Likewise.
3738 (gimple_num_ops): Likewise.
3739 (gimple_set_num_ops): Likewise.
3740 (gimple_assign_nontemporal_move_p): Likewise.
3741 (gimple_assign_set_nontemporal_move): Likewise.
3742 (gimple_assign_rhs_code): Likewise.
3743 (gimple_assign_set_rhs_code): Likewise.
3744 (gimple_call_internal_p): Likewise.
3745 (gimple_call_with_bounds_p): Likewise.
3746 (gimple_call_set_with_bounds): Likewise.
3747 (gimple_call_set_tail): Likewise.
3748 (gimple_call_tail_p): Likewise.
3749 (gimple_call_set_return_slot_opt): Likewise.
3750 (gimple_call_return_slot_opt_p): Likewise.
3751 (gimple_call_set_from_thunk): Likewise.
3752 (gimple_call_from_thunk_p): Likewise.
3753 (gimple_call_set_va_arg_pack): Likewise.
3754 (gimple_call_va_arg_pack_p): Likewise.
3755 (gimple_call_set_nothrow): Likewise.
3756 (gimple_call_set_alloca_for_var): Likewise.
3757 (gimple_call_alloca_for_var_p): Likewise.
3758 (gimple_call_copy_flags): Likewise.
3759 (gimple_cond_code): Likewise.
3760 (gimple_cond_set_code): Likewise.
3761 (gimple_cond_make_false): Likewise.
3762 (gimple_cond_make_true): Likewise.
3763 (gimple_asm_volatile_p): Likewise.
3764 (gimple_asm_set_volatile): Likewise.
3765 (gimple_asm_set_input): Likewise.
3766 (gimple_asm_input_p): Likewise.
3767 (gimple_try_kind): Likewise.
3768 (gimple_try_set_kind): Likewise.
3769 (gimple_try_catch_is_cleanup): Likewise.
3770 (gimple_try_set_catch_is_cleanup): Likewise.
3771 (gimple_wce_cleanup_eh_only): Likewise.
3772 (gimple_wce_set_cleanup_eh_only): Likewise.
3773 (gimple_debug_bind_p): Likewise.
3774 (gimple_debug_source_bind_p): Likewise.
3775 (gimple_omp_for_set_kind): Likewise.
3776 (gimple_omp_for_set_combined_p): Likewise.
3777 (gimple_omp_for_set_combined_into_p): Likewise.
3778 (gimple_omp_target_set_kind): Likewise.
3779 (gimple_transaction_subcode): Likewise.
3780 (gimple_transaction_set_subcode): Likewise.
3781 (gimple_predict_predictor): Likewise.
3782 (gimple_predict_set_predictor): Likewise.
3783 (gimple_predict_outcome): Likewise.
3784 (gimple_predict_set_outcome): Likewise.
3785 (gimple_transaction_set_label): Likewise.
3786 (gimple_transaction_set_body): Likewise.
3787 (gimple_transaction_label_ptr): Likewise.
3788 (gimple_transaction_label): Likewise.
3789 (gimple_transaction_body_ptr): Likewise.
3790 (gimple_omp_continue_set_control_use): Likewise.
3791 (gimple_omp_continue_control_use_ptr): Likewise.
3792 (gimple_omp_continue_control_use): Likewise.
3793 (gimple_omp_continue_set_control_def): Likewise.
3794 (gimple_omp_continue_control_def_ptr): Likewise.
3795 (gimple_omp_continue_control_def): Likewise.
3796 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3797 (gimple_omp_atomic_load_rhs): Likewise.
3798 (gimple_omp_atomic_load_set_rhs): Likewise.
3799 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3800 (gimple_omp_atomic_load_lhs): Likewise.
3801 (gimple_omp_atomic_load_set_lhs): Likewise.
3802 (gimple_omp_atomic_store_val_ptr): Likewise.
3803 (gimple_omp_atomic_store_val): Likewise.
3804 (gimple_omp_atomic_store_set_val): Likewise.
3805 (gimple_omp_for_cond): Likewise.
3806 (gimple_omp_for_set_cond): Likewise.
3807 (gimple_omp_sections_set_control): Likewise.
3808 (gimple_omp_sections_control_ptr): Likewise.
3809 (gimple_omp_sections_control): Likewise.
3810 (gimple_omp_sections_set_clauses): Likewise.
3811 (gimple_omp_sections_clauses_ptr): Likewise.
3812 (gimple_omp_sections_clauses): Likewise.
3813 (gimple_omp_teams_set_clauses): Likewise.
3814 (gimple_omp_teams_clauses_ptr): Likewise.
3815 (gimple_omp_teams_clauses): Likewise.
3816 (gimple_omp_target_set_data_arg): Likewise.
3817 (gimple_omp_target_data_arg_ptr): Likewise.
3818 (gimple_omp_target_data_arg): Likewise.
3819 (gimple_omp_target_set_child_fn): Likewise.
3820 (gimple_omp_target_child_fn_ptr): Likewise.
3821 (gimple_omp_target_child_fn): Likewise.
3822 (gimple_omp_target_set_clauses): Likewise.
3823 (gimple_omp_target_clauses_ptr): Likewise.
3824 (gimple_omp_target_clauses): Likewise.
3825 (gimple_omp_single_set_clauses): Likewise.
3826 (gimple_omp_single_clauses_ptr): Likewise.
3827 (gimple_omp_single_clauses): Likewise.
3828 (gimple_omp_task_set_arg_align): Likewise.
3829 (gimple_omp_task_arg_align_ptr): Likewise.
3830 (gimple_omp_task_arg_align): Likewise.
3831 (gimple_omp_task_set_arg_size): Likewise.
3832 (gimple_omp_task_arg_size_ptr): Likewise.
3833 (gimple_omp_task_arg_size): Likewise.
3834 (gimple_omp_task_set_copy_fn): Likewise.
3835 (gimple_omp_task_copy_fn_ptr): Likewise.
3836 (gimple_omp_task_copy_fn): Likewise.
3837 (gimple_omp_task_set_data_arg): Likewise.
3838 (gimple_omp_task_data_arg_ptr): Likewise.
3839 (gimple_omp_task_data_arg): Likewise.
3840 (gimple_omp_task_set_child_fn): Likewise.
3841 (gimple_omp_task_child_fn_ptr): Likewise.
3842 (gimple_omp_task_child_fn): Likewise.
3843 (gimple_omp_task_set_clauses): Likewise.
3844 (gimple_omp_task_clauses_ptr): Likewise.
3845 (gimple_omp_task_clauses): Likewise.
3846 (gimple_omp_parallel_set_data_arg): Likewise.
3847 (gimple_omp_parallel_data_arg_ptr): Likewise.
3848 (gimple_omp_parallel_data_arg): Likewise.
3849 (gimple_omp_parallel_set_child_fn): Likewise.
3850 (gimple_omp_parallel_child_fn_ptr): Likewise.
3851 (gimple_omp_parallel_child_fn): Likewise.
3852 (gimple_omp_parallel_set_clauses): Likewise.
3853 (gimple_omp_parallel_clauses_ptr): Likewise.
3854 (gimple_omp_parallel_clauses): Likewise.
3855 (gimple_omp_for_set_pre_body): Likewise.
3856 (gimple_omp_for_pre_body_ptr): Likewise.
3857 (gimple_omp_for_set_incr): Likewise.
3858 (gimple_omp_for_incr_ptr): Likewise.
3859 (gimple_omp_for_incr): Likewise.
3860 (gimple_omp_for_set_final): Likewise.
3861 (gimple_omp_for_final_ptr): Likewise.
3862 (gimple_omp_for_final): Likewise.
3863 (gimple_omp_for_set_initial): Likewise.
3864 (gimple_omp_for_initial_ptr): Likewise.
3865 (gimple_omp_for_initial): Likewise.
3866 (gimple_omp_for_set_index): Likewise.
3867 (gimple_omp_for_index_ptr): Likewise.
3868 (gimple_omp_for_index): Likewise.
3869 (gimple_omp_for_collapse): Likewise.
3870 (gimple_omp_for_set_clauses): Likewise.
3871 (gimple_omp_for_clauses_ptr): Likewise.
3872 (gimple_omp_for_clauses): Likewise.
3873 (gimple_omp_critical_set_name): Likewise.
3874 (gimple_omp_critical_name_ptr): Likewise.
3875 (gimple_omp_critical_name): Likewise.
3876 (gimple_eh_dispatch_set_region): Likewise.
3877 (gimple_eh_dispatch_region): Likewise.
3878 (gimple_resx_set_region): Likewise.
3879 (gimple_resx_region): Likewise.
3880 (gimple_phi_set_arg): Likewise.
3881 (gimple_phi_arg): Likewise.
3882 (gimple_phi_set_result): Likewise.
3883 (gimple_phi_result_ptr): Likewise.
3884 (gimple_phi_result): Likewise.
3885 (gimple_phi_num_args): Likewise.
3886 (gimple_phi_capacity): Likewise.
3887 (gimple_wce_set_cleanup): Likewise.
3888 (gimple_wce_cleanup_ptr): Likewise.
3889 (gimple_try_set_cleanup): Likewise.
3890 (gimple_try_set_eval): Likewise.
3891 (gimple_try_cleanup_ptr): Likewise.
3892 (gimple_try_eval_ptr): Likewise.
3893 (gimple_eh_else_set_e_body): Likewise.
3894 (gimple_eh_else_set_n_body): Likewise.
3895 (gimple_eh_else_e_body_ptr): Likewise.
3896 (gimple_eh_else_n_body_ptr): Likewise.
3897 (gimple_eh_must_not_throw_set_fndecl): Likewise.
3898 (gimple_eh_must_not_throw_fndecl): Likewise.
3899 (gimple_eh_filter_set_failure): Likewise.
3900 (gimple_eh_filter_set_types): Likewise.
3901 (gimple_eh_filter_failure_ptr): Likewise.
3902 (gimple_eh_filter_types_ptr): Likewise.
3903 (gimple_eh_filter_types): Likewise.
3904 (gimple_catch_set_handler): Likewise.
3905 (gimple_catch_set_types): Likewise.
3906 (gimple_catch_handler_ptr): Likewise.
3907 (gimple_catch_types_ptr): Likewise.
3908 (gimple_catch_types): Likewise.
3909 (gimple_asm_string): Likewise.
3910 (gimple_asm_set_label_op): Likewise.
3911 (gimple_asm_label_op): Likewise.
3912 (gimple_asm_set_clobber_op): Likewise.
3913 (gimple_asm_clobber_op): Likewise.
3914 (gimple_asm_set_output_op): Likewise.
3915 (gimple_asm_output_op_ptr): Likewise.
3916 (gimple_asm_output_op): Likewise.
3917 (gimple_asm_set_input_op): Likewise.
3918 (gimple_asm_input_op_ptr): Likewise.
3919 (gimple_asm_input_op): Likewise.
3920 (gimple_asm_nlabels): Likewise.
3921 (gimple_asm_nclobbers): Likewise.
3922 (gimple_asm_noutputs): Likewise.
3923 (gimple_asm_ninputs): Likewise.
3924 (gimple_bind_set_block): Likewise.
3925 (gimple_bind_block): Likewise.
3926 (gimple_bind_add_seq): Likewise.
3927 (gimple_bind_add_stmt): Likewise.
3928 (gimple_bind_set_body): Likewise.
3929 (gimple_bind_body_ptr): Likewise.
3930 (gimple_bind_append_vars): Likewise.
3931 (gimple_bind_set_vars): Likewise.
3932 (gimple_bind_vars): Likewise.
3933 (gimple_call_clobber_set): Likewise.
3934 (gimple_call_use_set): Likewise.
3935 (gimple_call_set_internal_fn): Likewise.
3936 (gimple_call_set_fntype): Likewise.
3937 (gimple_call_fntype): Likewise.
3938 (gimple_omp_return_lhs_ptr): Likewise.
3939 (gimple_omp_return_lhs): Likewise.
3940 (gimple_omp_return_set_lhs): Likewise.
3941 (gimple_omp_taskreg_set_data_arg): Likewise.
3942 (gimple_omp_taskreg_data_arg_ptr): Likewise.
3943 (gimple_omp_taskreg_data_arg): Likewise.
3944 (gimple_omp_taskreg_set_child_fn): Likewise.
3945 (gimple_omp_taskreg_child_fn_ptr): Likewise.
3946 (gimple_omp_taskreg_child_fn): Likewise.
3947 (gimple_omp_taskreg_set_clauses): Likewise.
3948 (gimple_omp_taskreg_clauses_ptr): Likewise.
3949 (gimple_omp_taskreg_clauses): Likewise.
3950 (gimple_vuse): Likewise.
3951 (gimple_vdef): Likewise.
3952 (gimple_vuse_ptr): Likewise.
3953 (gimple_vdef_ptr): Likewise.
3954 * tree-inline.c (copy_debug_stmt): Likewise.
3955 * tree-phinodes.c (make_phi_node): Likewise.
3957 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3958 (is_a_helper <gimple_statement_with_ops>::test): New.
3959 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3960 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3962 * gimple-streamer-in.c (input_gimple_stmt): Port from union
3963 access to use of as_a.
3964 * gimple.c (gimple_build_asm_1): Likewise.
3965 (gimple_build_try): Likewise. Also, return a specific subclass
3966 rather than just gimple.
3967 (gimple_build_resx): Port from union access to use of as_a.
3968 (gimple_build_eh_dispatch): Likewise.
3969 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
3970 now that gengtype no longer provides a typed allocator function.
3971 (gimple_copy): Likewise.
3972 * gimple.h (gimple_build_try): Return a specific subclass rather
3974 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3975 with subclass access by making use of new return type of
3977 * tree-phinodes.c: (allocate_phi_node): Return a
3978 "gimple_statement_phi *" rather than just a gimple.
3979 (resize_phi_node): Likewise.
3980 (make_phi_node): Replace union access with subclass access by
3981 making use of new return type of allocate_phi_node.
3982 (reserve_phi_args_for_new_edge): Replace union access with as_a.
3983 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3985 (remove_phi_args): Update for change to remove_phi_arg_num.
3987 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3988 code field to reflect inheritance, rather than embedding of
3989 the base gimple type.
3991 2013-11-19 Richard Biener <rguenther@suse.de>
3993 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3994 and destructor and make fel_next a member function.
3995 (fel_next): Transform into ...
3996 (loop_iterator::next): ... this.
3997 (fel_init): Transform into ...
3998 (loop_iterator::loop_iterator): ... this.
3999 (loop_iterator::~loop_iterator): New.
4000 (FOR_EACH_LOOP): Remove loop-iterator argument.
4001 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
4002 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
4003 graphite-clast-to-gimple.c, graphite-scop-detection.c,
4004 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
4005 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
4006 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
4007 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
4008 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
4009 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
4010 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
4011 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
4012 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
4013 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
4014 FOR_EACH_LOOP_BREAK with break.
4016 2013-11-19 Richard Biener <rguenther@suse.de>
4018 PR tree-optimization/59164
4019 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4021 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
4022 whether we can create an epilogue loop to reflect thecases where
4025 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
4027 * graphite-sese-to-poly.c: Include expr.h.
4029 2013-11-19 Richard Biener <rguenther@suse.de>
4032 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
4033 loads into stmts that may clobber it.
4035 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
4037 * cgraphunit.c (symtab_terminator): New variable.
4038 (queued_nodes): Renamed from first. Use symtab_terminator as
4040 (analyze_functions): Adjust accordingly.
4041 (cgraph_process_new_functions): Return void.
4042 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
4044 2013-11-19 Marek Polacek <polacek@redhat.com>
4046 * opts.c (common_handle_option): Add -fsanitize=null option.
4047 Turn off -fdelete-null-pointer-checks option when doing the
4048 NULL pointer checking.
4049 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
4050 * tree-pass.h (make_pass_ubsan): Declare.
4051 (make_pass_sanopt): Declare.
4052 * timevar.def (TV_TREE_UBSAN): New timevar.
4053 * passes.def: Add pass_sanopt and pass_ubsan.
4054 * ubsan.h (ubsan_null_ckind): New enum.
4055 (ubsan_mismatch_data): New struct.
4056 (ubsan_expand_null_ifn): Declare.
4057 (ubsan_create_data): Adjust declaration.
4058 (ubsan_type_descriptor): Likewise.
4059 * asan.c: Include "ubsan.h".
4060 (pass_data_sanopt): New pass.
4061 (execute_sanopt): New function.
4062 (gate_sanopt): Likewise.
4063 (make_pass_sanopt): Likewise.
4064 (class pass_sanopt): New class.
4065 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
4066 gimple-iterator.h and cfgloop.h.
4067 (PROB_VERY_UNLIKELY): Define.
4068 (tree_type_map_hash): New function.
4069 (ubsan_type_descriptor): Add new parameter.
4070 Improve type name generation.
4071 (ubsan_create_data): Add new parameter. Add pointer data into
4073 (ubsan_expand_null_ifn): New function.
4074 (instrument_member_call): Likewise.
4075 (instrument_mem_ref): Likewise.
4076 (instrument_null): Likewise.
4077 (ubsan_pass): Likewise.
4078 (gate_ubsan): Likewise.
4079 (make_pass_ubsan): Likewise.
4080 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
4081 (class pass_ubsan): New class.
4082 (pass_data_ubsan): New pass.
4083 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
4084 * internal-fn.c (expand_UBSAN_NULL): New function.
4085 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
4086 even when !flag_toplevel_reorder.
4087 * internal-fn.def (UBSAN_NULL): New.
4089 2013-11-19 Jan Hubicka <jh@suse.cz>
4091 * cgraph.c (cgraph_create_indirect_edge): Use
4092 get_polymorphic_call_info.
4093 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
4094 maybe_in_construction and maybe_derived_type.
4095 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
4096 (ipa_dummy_polymorphic_call_context): New global var.
4097 (possible_polymorphic_call_targets): Add context paramter.
4098 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
4099 (possible_polymorphic_call_target_p): Likewise.
4100 (get_polymorphic_call_info): New function.
4101 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
4102 (add_type_duplicate): Remove forgotten debug output.
4103 (method_class_type): Add sanity check.
4104 (maybe_record_node): Add FINALP parameter.
4105 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
4106 by info by get_binfo_at_offset.
4107 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
4108 parameters; pass them to record-binfo.
4109 (polymorphic_call_target_d): Add context and FINAL.
4110 (polymorphic_call_target_hasher::hash): Hash context.
4111 (polymorphic_call_target_hasher::equal): Compare context.
4112 (free_polymorphic_call_targets_hash):
4113 (get_class_context): New function.
4114 (contains_type_p): New function.
4115 (get_polymorphic_call_info): New function.
4116 (walk_bases): New function.
4117 (possible_polymorphic_call_targets): Add context parameter; honnor it.
4118 (dump_possible_polymorphic_call_targets): Dump context.
4119 (possible_polymorphic_call_target_p): Add context.
4120 (update_type_inheritance_graph): Update comment.s
4121 (ipa_set_jf_known_type): Assert that compoentn type is known.
4122 (ipa_note_param_call): Do not tamper with offsets.
4123 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
4125 (update_indirect_edges_after_inlining): Likewise.
4126 (ipa_write_indirect_edge_info): Stream new fields.
4127 (ipa_read_indirect_edge_info): Stream in new fields.
4129 2013-11-19 Jan Hubicka <jh@suse.cz>
4131 * tree-pretty-print.c (dump_generic_node): Print class type of
4134 2013-11-19 Joey Ye <joey.ye@arm.com>
4136 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
4137 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
4139 * config/arm/arm.c (arm_option_override): By default disable
4140 -marm-pic-data-is-text-relative.
4141 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
4142 (arm_assemble_integer): Likewise.
4143 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
4144 New macro to initialize -marm-pic-data-is-text-relative.
4146 2013-11-19 Bin Cheng <bin.cheng@arm.com>
4148 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
4149 (address_cost_data): New field.
4150 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
4151 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
4153 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4155 * config/aarch64/aarch64.md: Remove v8type from all insns.
4157 2013-11-19 Richard Biener <rguenther@suse.de>
4159 PR tree-optimization/57517
4160 * tree-predcom.c (combinable_refs_p): Verify the combination
4161 is always executed when the refs are.
4163 2013-11-19 Jeff Law <law@redhat.com>
4165 * tree-ssa-threadupdate.c: Include ssa-iterators.h
4166 (copy_phi_arg_into_existing_phi): New function.
4167 (any_remaining_duplicated_blocks): Likewise.
4168 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
4169 blocks on a jump threading path.
4171 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
4172 thread through a joiner which has the latch edge.
4174 2013-11-19 Jan Hubicka <jh@suse.cz>
4176 * md.texi (setmem): Document new parameter.
4177 * optabs.c (maybe_gen_insn): Support 9 operands.
4178 * builtins.c (determine_block_size): Add probable_max_size;
4179 support anti-ranges.
4180 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
4182 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
4183 emit_block_move, clear_storage_hints, set_storage_via_setmem):
4185 * expr.h (emit_block_move_hints, clear_storage_hints,
4186 set_storage_via_setmem): Update prototype.
4187 * i386.md (setmem, movmem patterns): Add 9th operand.
4188 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
4189 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
4190 argument; pass it to decide_alg.
4192 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4194 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
4195 (n_basic_blocks_for_fn): ...this.
4197 (n_basic_blocks): Eliminate macro as work towards making uses of
4200 * cfgloop.c (init_loops_structure): Update for renaming of
4201 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
4202 * graph.c (draw_cfg_nodes_no_loops): Likewise.
4203 * ipa-utils.c (ipa_merge_profiles): Likewise.
4204 * lto-streamer-in.c (make_new_block): Likewise.
4205 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4206 (dump_function_to_file): Likewise.
4208 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
4209 macro with "n_basic_blocks_for_fn (cfun)".
4210 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
4211 (duplicate_computed_gotos): Likewise.
4212 (reorder_basic_blocks): Likewise.
4213 * bt-load.c (augment_live_range): Likewise.
4214 * cfg.c (expunge_block): Likewise.
4215 (compact_blocks): Likewise.
4216 * cfganal.c (single_pred_before_succ_order): Likewise.
4217 (compute_idf): Likewise.
4218 (flow_dfs_compute_reverse_init): Likewise.
4219 (pre_and_rev_post_order_compute): Likewise.
4220 (pre_and_rev_post_order_compute_fn): Likewise.
4221 (inverted_post_order_compute): Likewise.
4222 (post_order_compute): Likewise.
4223 (print_edge_list): Likewise.
4224 (find_unreachable_blocks): Likewise.
4225 (mark_dfs_back_edges): Likewise.
4226 * cfgcleanup.c (try_optimize_cfg): Likewise.
4227 (try_forward_edges): Likewise.
4228 * cfghooks.c (dump_flow_info): Likewise.
4229 * cfgloop.c (verify_loop_structure): Likewise.
4230 (get_loop_body): Likewise.
4231 (flow_loops_find): Likewise.
4232 * cfgloopmanip.c (add_loop): Likewise.
4233 (remove_path): Likewise.
4234 (find_path): Likewise.
4235 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4236 (rtl_verify_bb_layout): Likewise.
4237 (entry_of_function): Likewise.
4238 (rtl_create_basic_block): Likewise.
4239 * coverage.c (coverage_compute_cfg_checksum): Likewise.
4240 * cprop.c (one_cprop_pass): Likewise.
4241 (is_too_expensive): Likewise.
4242 * df-core.c (df_compute_cfg_image): Likewise.
4243 (df_compact_blocks): Likewise.
4244 (df_worklist_dataflow_doublequeue): Likewise.
4245 * dominance.c (calculate_dominance_info): Likewise.
4246 (calc_dfs_tree): Likewise.
4247 (calc_dfs_tree_nonrec): Likewise.
4248 (init_dom_info): Likewise.
4249 * domwalk.c (cmp_bb_postorder): Likewise.
4250 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4251 (generate_setjmp_warnings): Likewise.
4252 * fwprop.c (build_single_def_use_links): Likewise.
4253 * gcse.c (is_too_expensive): Likewise.
4254 (one_code_hoisting_pass): Likewise.
4255 (one_pre_gcse_pass): Likewise.
4256 * graphite.c (graphite_initialize): Likewise.
4257 * haifa-sched.c (haifa_sched_init): Likewise.
4258 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
4259 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
4260 * ira-build.c (ira_build): Likewise.
4261 * lcm.c (compute_nearerout): Likewise.
4262 (compute_available): Likewise.
4263 (compute_laterin): Likewise.
4264 (compute_antinout_edge): Likewise.
4265 * lra-lives.c (lra_create_live_ranges): Likewise.
4266 * lra.c (has_nonexceptional_receiver): Likewise.
4267 * mcf.c (create_fixup_graph): Likewise.
4268 * profile.c (branch_prob): Likewise.
4269 * reg-stack.c (convert_regs_2): Likewise.
4270 * regrename.c (regrename_analyze): Likewise.
4271 * reload1.c (has_nonexceptional_receiver): Likewise.
4272 * reorg.c (dbr_schedule): Likewise.
4273 * sched-deps.c (sched_deps_init): Likewise.
4274 * sched-ebb.c (schedule_ebbs): Likewise.
4275 * sched-rgn.c (extend_regions): Likewise.
4276 (schedule_insns): Likewise.
4277 (sched_rgn_init): Likewise.
4278 (extend_rgns): Likewise.
4279 (haifa_find_rgns): Likewise.
4280 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
4281 (sel_recompute_toporder): Likewise.
4282 * sel-sched.c (run_selective_scheduling): Likewise.
4283 * store-motion.c (one_store_motion_pass): Likewise.
4284 (remove_reachable_equiv_notes): Likewise.
4285 * tracer.c (tracer): Likewise.
4286 (tail_duplicate): Likewise.
4287 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
4288 (dump_cfg_stats): Likewise.
4289 (gimple_dump_cfg): Likewise.
4290 (create_bb): Likewise.
4291 (build_gimple_cfg): Likewise.
4292 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
4293 * tree-inline.c (optimize_inline_calls): Likewise.
4294 (fold_marked_statements): Likewise.
4295 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
4296 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4297 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4298 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
4299 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4300 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4301 * tree-ssa-pre.c (do_pre): Likewise.
4302 (init_pre): Likewise.
4303 (compute_avail): Likewise.
4304 * tree-ssa-reassoc.c (init_reassoc): Likewise.
4305 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4306 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
4307 (init_worklist): Likewise.
4308 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4309 * var-tracking.c (variable_tracking_main_1): Likewise.
4310 (vt_find_locations): Likewise.
4311 (vt_stack_adjustments): Likewise.
4312 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
4313 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
4315 2013-11-18 Jan Hubicka <jh@suse.cz>
4317 * profile.c (compute_branch_probabilities): Do not sanity check
4320 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
4322 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
4324 * fold-const.c (fold_single_bit_test_into_sign_test)
4325 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
4327 2013-11-18 Teresa Johnson <tejohnson@google.com>
4329 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
4330 cfglayout after bb reordering.
4331 * passes.def: Move compgotos before bb reordering since it goes into
4334 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
4336 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
4337 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
4339 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
4340 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
4341 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
4342 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
4343 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
4344 Remove all_lto_gen_passes.
4345 * passes.c (pass_manager::dump_passes): Remove its use.
4346 (pass_manager::register_pass): Likewise.
4347 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
4348 (pass_manager::pass_manager): Don't initialize or use it.
4349 (write_lto): New static function.
4350 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
4351 instead of using all_lto_gen_passes.
4352 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
4353 pass_ipa_lto_finish_out): Delete.
4354 * tree-pass.h (make_pass_ipa_lto_gimple_out,
4355 make_pass_ipa_lto_finish_out): Don't declare.
4357 2013-11-18 Jeff Law <law@redhat.com>
4359 * tree-ssa-threadupdate.c (redirection_data): Record two
4360 duplicated blocks instead of just one.
4361 (local_info): Explain why we don't create a template for the
4362 second duplicated block in a thread path.
4363 (create_block_for_threading): Accept argument indicating array
4364 index into redirection_data to store its result.
4365 (lookup_redirection_data): Initialize both duplicate blocks.
4366 (ssa_create_duplicates): If a jump threading path needs multiple
4367 blocks duplicated, then duplicate them.
4368 (ssa_fix_duplicate_block_edges): Corresponding changes.
4369 (ssa_fixup_template_block, thread_single_edge): Likewise.
4371 2013-11-18 Marek Polacek <polacek@redhat.com>
4373 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4375 2013-11-18 Andrew Pinski <apinski@cavium.com>
4376 Steve Ellcey <sellcey@mips.com>
4379 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4380 type restriction from equality_operator on conditonal move.
4381 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4382 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4384 2013-11-18 Jeff Law <law@redhat.com>
4386 * tree-ssa-threadupdate.c: Fix file block comment.
4387 Fix minor indention issue.
4389 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
4391 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4392 ix86_address_subreg_operand. Move subreg checks to
4393 ix86_validate_address_register. Move address override check to
4394 ix86_legitimate_address_p.
4395 (ix86_validate_address_register): New function.
4396 (ix86_legitimate_address_p): Call ix86_validate_address_register
4397 to validate base and index registers. Add address override check
4398 from ix86_decompose_address.
4399 (ix86_decompose_address): Remove.
4401 2013-11-18 Richard Biener <rguenther@suse.de>
4403 PR tree-optimization/59125
4404 PR tree-optimization/54570
4405 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4406 is not complete do not treat component-references with offset zero
4407 but different fields as equal.
4408 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4409 (compute_object_sizes): Apply TLC. Propagate the constant
4410 results into all uses and fold their stmts.
4411 * passes.def (pass_all_optimizations): Move pass_object_sizes
4412 after the first pass_forwprop and before pass_fre.
4414 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4416 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4417 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4418 (tree_ctz): Remove cast to unsigned type.
4419 * builtins.c (fold_builtin_memory_op): Likewise.
4420 * dwarf2out.c (descr_info_loc): Likewise.
4421 * godump.c (go_output_typedef): Likewise.
4422 * omp-low.c (expand_omp_simd): Likewise.
4423 * stor-layout.c (excess_unit_span): Likewise.
4424 * tree-object-size.c (addr_object_size): Likewise.
4425 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4426 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4427 (simplify_rotate): Likewise.
4428 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4429 (handle_pointer_plus): Likewise.
4430 * tree-switch-conversion.c (check_range): Likewise.
4431 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4432 * tsan.c (instrument_builtin_call): Likewise.
4433 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4434 * trans-mem.c (tm_log_add): Likewise.
4435 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4436 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4437 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4438 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4440 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4442 * tree.h (host_integerp, tree_low_cst): Delete.
4443 * tree.c (host_integerp, tree_low_cst): Delete.
4445 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4447 * expr.h: Update comments to refer to tree_to_[su]hwi rather
4449 * fold-const.c (fold_binary_loc): Likewise.
4450 * expr.c (store_constructor): Use tree_to_uhwi rather than
4452 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4453 * stmt.c (emit_case_dispatch_table): Likewise.
4454 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4456 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4458 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4459 config/aarch64/aarch64.c, config/alpha/predicates.md,
4460 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4461 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4462 config/mep/mep-pragma.c, config/mips/mips.c,
4463 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4464 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4465 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4466 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4467 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4468 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4469 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4470 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4471 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4472 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4474 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4476 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4477 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4478 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4479 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4480 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4481 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4482 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4483 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4484 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4485 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4486 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4488 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4490 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4491 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4493 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4495 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4498 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4500 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4501 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4502 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4503 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4504 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4505 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4506 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4507 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4508 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4509 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4510 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4511 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4512 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4513 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4514 tree_fits_uhwi_p throughout.
4516 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4518 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4519 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4520 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4521 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4522 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4523 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4524 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4525 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4526 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4527 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4528 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4529 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4530 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4533 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4535 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4536 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4538 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
4540 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4541 flag if it kills its address, not its post-increment.
4543 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4545 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4546 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4547 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4548 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4549 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4550 (gimple_call_with_bounds_p): New.
4551 (gimple_call_set_with_bounds): New.
4552 (gimple_call_num_nobnd_args): Remove.
4553 (gimple_call_nobnd_arg): Remove.
4554 * tree.h (CALL_WITH_BOUNDS_P): New.
4555 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4557 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
4559 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4560 (symtab_node_name): Rename to symtab_node::name.
4561 (cgraph_node_asm_name): Remove.
4562 (varpool_node_asm_name): Remove.
4563 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4564 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4565 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4566 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4567 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4569 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4571 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4572 * config/arm/arm.c (arm_cortex_a53_tune): New.
4573 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4575 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4577 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4578 (case ${target}): Add bdver4.
4579 * config/i386/bdver3.md: Add bdver4.
4580 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4581 -march=native recognize bdver4 processors.
4582 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4583 bdver4 def_and_undef
4584 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4585 (m_BDVER4): New definition.
4586 (m_AMD_MULTIPLE): Includes m_BDVER4.
4587 (processor_target_table): Add bdver4 entry.
4588 (static const char *const cpu_names): Add bdver4 entry.
4589 (software_prefetching_beneficial_p): Add bdver3.
4590 (ix86_option_override_internal): Add bdver4 instruction sets.
4591 (ix86_issue_rate): Add bdver4.
4592 (ix86_adjust_cost): Add bdver4.
4593 (ia32_multipass_dfa_lookahead): Add bdver4.
4594 (enum processor_model): Add M_AMDFAM15H_BDVER4.
4595 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4596 (has_dispatch): Add bdver4.
4597 * config/i386/i386.h (TARGET_BDVER4): New definition.
4598 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4599 (enum processor_type): Add PROCESSOR_BDVER4.
4600 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4601 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4602 * doc/extend.texi: Add details about bdver4.
4603 * doc/invoke.texi: Add details about bdver4. Add
4604 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4606 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4608 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4609 sdmode_stack_slot also in little-endian mode.
4611 2013-11-17 Jan Hubicka <jh@suse.cz>
4613 * doc/md.texi (setmem, movstr): Update documentation.
4614 * builtins.c (determine_block_size): New function.
4615 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4616 (expand_builtin_memset_args): Use it and pass it to
4617 set_storage_via_setmem.
4618 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4619 parameters; update call to expander.
4620 (emit_block_move_hints): Add min_size/max_size parameters.
4621 (clear_storage_hints): Likewise.
4622 (set_storage_via_setmem): Likewise.
4623 (clear_storage): Update.
4624 * expr.h (emit_block_move_hints, clear_storage_hints,
4625 set_storage_via_setmem): Update prototypes.
4626 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4627 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4628 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4629 * i386.md (movmem, setmem): Pass parameters.
4631 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4634 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4635 reject non-integer subregs.
4636 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4637 Move check for invalid x32 constant addresses ...
4638 (ix86_legitimate_address_p): ... here.
4640 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4642 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4643 parameter and use it in REG_FRAME_RELATED_EXPR note.
4644 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4646 (rs6000_emit_prologue): Likewise, but for little endian VSX
4647 stores, pass the source register of the store instead.
4649 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4651 * gimple.h: Reorder prototypes to match .c declaration order, and
4652 remove protyotypes for functions not in gimple.c.
4653 (LABEL): Move to tree-into-ssa.c.
4654 * gimple.c: Remove unused prototypes.
4655 (get_base_address): Move to tree.c.
4656 * tree.c (get_base_address): Relocate from gimple.c.
4657 * builtins.h (validate_gimple_arglist): Add prototype.
4658 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4659 * cfgexpand.h: New File.
4660 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4661 * tree.h (build_addr): Move to tree-nested.h.
4662 * tree-nested.h: New File.
4663 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4665 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4666 * ipa-inline-analysis.c: Include cfgexpand.h.
4667 * cgraphunit.c: Include tree-nested.h.
4668 * omp-low.c: Likewise.
4669 * tree-parloops.c: Likewise.
4670 * gimple-low.h: Likewise.
4671 * tree-profile.h: Likewise.
4672 * expr.c: Include cfgexpand.h.
4673 * tree-affine.c: Likewise.
4674 * tree-ssa.c: Likewise.
4675 * tree-ssa-loop-im.c: Include trans-mem.h.
4676 * tree-ssa-tail-merge.c: Likewise.
4677 * value-prof.c: Include builtins.h and tree-nested.h.
4678 * tree-into-ssa.c (LABEL): Define here.
4680 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4682 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4683 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4684 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4685 (make_pass_arc_predicate_delay_insns): New function.
4686 (arc_init): Register pass_arc_predicate_delay_insns if
4687 flag_delayed_branch is active.
4689 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4691 * config/arc/constraints.md (Rcq): Simplify register number test.
4693 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4695 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4697 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4699 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4702 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4704 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4705 * gimple-pretty-print.c (dump_omp_for): Add case for
4706 GF_OMP_FOR_KIND_CILKSIMD.
4707 * gimple.h (enum gf_mask): Restructure entries to add
4708 GF_OMP_FOR_KIND_CILKSIMD.
4709 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4710 (gimplify_omp_for): Handle CILK_SIMD.
4711 (gimplify_expr): Add ccase for CILK_SIMD.
4712 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4713 (build_outer_var_ref): Same.
4714 (check_omp_nesting_restrictions): Same.
4715 (lower_rec_input_clauses): Same.
4716 (lower_lastprivate_clauses): Same.
4717 (expand_omp_for): Same.
4718 (execute_expand_omp): Check flag_enable_cilkplus.
4719 (execute_lower_omp): Same.
4720 (diagnose_sb_0): Handle CILK_SIMD.
4721 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4722 (setjmp_or_longjmp_p): New.
4723 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4724 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4725 * tree.def: Add tree code for CILK_SIMD.
4727 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4729 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4731 (altivec_vperm_<mode>): Revert earlier little endian change.
4732 (*altivec_vperm_<mode>_internal): Remove.
4733 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4734 (*altivec_vperm_<mode>_uns_internal): Remove.
4735 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4737 2013-11-15 Jeff Law <law@redhat.com>
4739 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4740 has_abnormal_or_outgoing_edge. Check for EH edges as well.
4741 * gimple-ssa-isolate-paths.c
4742 (find_implicit_erroneous_behaviour): Corresponding changes.
4743 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4744 (find_explicit_erroneous_behaviour): Likewise.
4746 2013-11-15 Jeff Law <law@redhat.com>
4748 * ifcvt.c (find_cond_trap): Properly handle case where
4751 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
4753 * configure: Regenerate.
4755 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
4757 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4758 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4759 where it is incorrect or missing.
4761 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4763 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4765 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4766 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4768 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4769 pair with a TREE_CODE test and TREE_INT_CST_LOW.
4770 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4772 2013-11-15 Richard Biener <rguenther@suse.de>
4774 PR tree-optimization/50262
4775 * tree-ssa-alias.h (struct pt_solution): Split
4776 vars_contains_global into vars_contains_nonlocal,
4777 vars_contains_escaped and vars_contains_escaped_heap.
4778 * tree-ssa-structalias.c (label_visit): Expand comment.
4779 (handle_lhs_call): Adjust comment.
4780 (set_uids_in_ptset): Set the new flags appropriately.
4781 (pt_solution_set): Adjust.
4782 (pt_solution_set_var): Likewise.
4783 (pt_solution_ior_into): Likewise.
4784 (pt_solution_includes_global): Likewise.
4785 (pt_solutions_intersect_1): Optimize escaped handling.
4786 (compute_points_to_sets): Remove heap variable globalization.
4787 (ipa_escaped_pt): Adjust initializer.
4788 (pass_data_ipa_pta): Do not run TODO_update_ssa.
4789 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4790 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4792 2013-11-15 Richard Biener <rguenther@suse.de>
4794 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4795 to distribute all stores.
4797 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4799 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4801 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4803 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4804 * configure.ac: Determine target_header_dir earlier.
4805 (--with-glibc-version): New configure option.
4806 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4807 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4808 * configure: Regenerate.
4809 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4810 native toolchains for default.
4811 (--with-glibc-version): Document.
4813 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4815 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4817 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4819 * lto-streamer-in.c (input function): Call cgraph_create_node if
4820 cgraph_get_node failed.
4822 2013-11-14 Olivier Hainque <hainque@adacore.com>
4824 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4825 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4826 small. Factorize size threshold computation from the existing one.
4827 (expand_used_vars): Refine comment.
4829 2013-11-14 Cong Hou <congh@google.com>
4831 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4832 address field as it can be obtained from dr. Rename the struct.
4833 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4834 steps of data references during sort.
4835 (vect_prune_runtime_alias_test_list): Adjust with the change to
4836 struct dr_with_seg_len.
4837 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4838 Adjust with the change to struct dr_with_seg_len.
4840 2013-11-14 Jeff Law <law@redhat.com>
4843 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4844 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4845 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4846 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4847 edges, then ignore it. If the statement exhibiting erroneous
4848 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4849 then we can not optimize.
4850 (find_explicit_erroneous_behaviour): Likewise.
4852 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4854 * gimplify-me.h: New file. Add prototypes.
4855 * gimplify.h: Don't include gimple.h.
4856 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4857 Relocate from gimple.h.
4858 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4859 is_gimple_sizepos): Move to gimplify.h.
4860 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4861 (enum gsi_iterator_update): Move to gimple-iterator.h.
4862 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4863 * gimplify-me.c: New File.
4864 (force_gimple_operand_1, force_gimple_operand,
4865 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4866 gimple_regimplify_operands): Relocate from gimplify.c.
4867 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4868 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4869 gimple_regimplify_operands): Move to gimplify-me.c.
4870 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4872 * Makefile.in (OBJS): Add gimplify-me.o
4873 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4875 * cfgloopmanip.c: Likewise.
4876 * cgraphunit.c: Likewise.
4877 * cilk-common.c: Likewise.
4878 * fold-const.c: Likewise.
4879 * function.c: Likewise.
4880 * gimple-expr.c: Likewise.
4881 * gimple-fold.c: Likewise.
4882 * gimple-ssa-strength-reduction.c: Likewise.
4883 * gimple.c: Likewise.
4884 * graphite-clast-to-gimple.c: Likewise.
4885 * graphite-sese-to-poly.c: Likewise.
4886 * ipa-prop.c: Likewise.
4887 * ipa-split.c: Likewise.
4889 * langhooks.c: Likewise.
4890 * omp-low.c: Likewise.
4892 * stor-layout.c: Likewise.
4893 * targhooks.c: Likewise.
4894 * trans-mem.c: Likewise.
4895 * tree-affine.c: Likewise.
4896 * tree-cfg.c: Likewise.
4897 * tree-cfgcleanup.c: Likewise.
4898 * tree-complex.c: Likewise.
4899 * tree-if-conv.c: Likewise.
4900 * tree-inline.c: Likewise.
4901 * tree-loop-distribution.c: Likewise.
4902 * tree-nested.c: Likewise.
4903 * tree-parloops.c: Likewise.
4904 * tree-predcom.c: Likewise.
4905 * tree-profile.c: Likewise.
4906 * tree-scalar-evolution.c: Likewise.
4907 * tree-sra.c: Likewise.
4908 * tree-ssa-address.c: Likewise.
4909 * tree-ssa-ccp.c: Likewise.
4910 * tree-ssa-dce.c: Likewise.
4911 * tree-ssa-forwprop.c: Likewise.
4912 * tree-ssa-ifcombine.c: Likewise.
4913 * tree-ssa-loop-im.c: Likewise.
4914 * tree-ssa-loop-ivopts.c: Likewise.
4915 * tree-ssa-loop-manip.c: Likewise.
4916 * tree-ssa-loop-niter.c: Likewise.
4917 * tree-ssa-loop-prefetch.c: Likewise.
4918 * tree-ssa-loop-unswitch.c: Likewise.
4919 * tree-ssa-math-opts.c: Likewise.
4920 * tree-ssa-phiopt.c: Likewise.
4921 * tree-ssa-phiprop.c: Likewise.
4922 * tree-ssa-pre.c: Likewise.
4923 * tree-ssa-propagate.c: Likewise.
4924 * tree-ssa-reassoc.c: Likewise.
4925 * tree-ssa-sccvn.c: Likewise.
4926 * tree-ssa-strlen.c: Likewise.
4927 * tree-ssa.c: Likewise.
4928 * tree-switch-conversion.c: Likewise.
4929 * tree-tailcall.c: Likewise.
4930 * tree-vect-data-refs.c: Likewise.
4931 * tree-vect-generic.c: Likewise.
4932 * tree-vect-loop-manip.c: Likewise.
4933 * tree-vect-loop.c: Likewise.
4934 * tree-vect-patterns.c: Likewise.
4935 * tree-vect-stmts.c: Likewise.
4938 * value-prof.c: Likewise.
4939 * config/aarch64/aarch64.c: Likewise.
4940 * config/alpha/alpha.c: Likewise.
4941 * config/darwin.c: Likewise.
4942 * config/i386/i386.c: Likewise.
4943 * config/ia64/ia64.c: Likewise.
4944 * config/mep/mep.c: Likewise.
4945 * config/mips/mips.c: Likewise.
4946 * config/rs6000/rs6000.c: Likewise.
4947 * config/s390/s390.c: Likewise.
4948 * config/sh/sh.c: Likewise.
4949 * config/sparc/sparc.c: Likewise.
4950 * config/spu/spu.c: Likewise.
4951 * config/stormy16/stormy16.c: Likewise.
4952 * config/tilegx/tilegx.c: Likewise.
4953 * config/tilepro/tilepro.c: Likewise.
4954 * config/xtensa/xtensa.c: Likewise.
4956 2013-11-14 Diego Novillo <dnovillo@google.com>
4958 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4960 2013-11-14 Diego Novillo <dnovillo@google.com>
4962 * tree.h: Include fold-const.h.
4963 (aggregate_value_p): Moved to function.h.
4964 (alloca_call_p): Moved to calls.h.
4965 (allocate_struct_function): Moved to function.h.
4966 (apply_tm_attr): Moved to attribs.h.
4967 (array_at_struct_end_p): Moved to expr.h.
4968 (array_ref_element_size): Moved to tree-dfa.h.
4969 (array_ref_low_bound): Moved to tree-dfa.h.
4970 (array_ref_up_bound): Moved to tree.h.
4971 (assemble_alias): Moved to cgraph.h.
4972 (bit_from_pos): Moved to stor-layout.h.
4973 (build_addr): Moved to tree-nested.h.
4974 (build_duplicate_type): Moved to tree-inline.h.
4975 (build_fold_addr_expr): Moved to fold-const.h.
4976 (build_fold_addr_expr_with_type): Moved to fold-const.h.
4977 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4978 (build_fold_indirect_ref): Moved to fold-const.h.
4979 (build_fold_indirect_ref_loc): Moved to fold-const.h.
4980 (build_personality_function): Moved to tree.h.
4981 (build_range_check): Moved to fold-const.h.
4982 (build_simple_mem_ref): Moved to fold-const.h.
4983 (build_simple_mem_ref_loc): Moved to fold-const.h.
4984 (build_tm_abort_call): Moved to trans-mem.h.
4985 (byte_from_pos): Moved to stor-layout.h.
4986 (call_expr_flags): Moved to calls.h.
4987 (can_move_by_pieces): Moved to expr.h.
4988 (categorize_ctor_elements): Moved to expr.h.
4989 (change_decl_assembler_name): Moved to gcc-symtab.h.
4990 (combine_comparisons): Moved to fold-const.h.
4991 (complete_ctor_at_level_p): Moved to tree.h.
4992 (component_ref_field_offset): Moved to tree-dfa.h.
4993 (compute_builtin_object_size): Moved to tree-object-size.h.
4994 (compute_record_mode): Moved to stor-layout.h.
4995 (constant_boolean_node): Moved to fold-const.h.
4996 (constructor_static_from_elts_p): Moved to varasm.h.
4997 (cxx11_attribute_p): Moved to attribs.h.
4998 (debug_body): Moved to print-tree.h.
4999 (debug_find_tree): Moved to tree-inline.h.
5000 (debug_fold_checksum): Moved to fold-const.h.
5001 (debug_head): Moved to print-tree.h.
5002 (debug_head): Moved to print-tree.h.
5003 (debug_raw): Moved to print-tree.h.
5004 (debug_tree): Moved to print-tree.h.
5005 (debug_vec_tree): Moved to print-tree.h.
5006 (debug_verbose): Moved to print-tree.h.
5007 (debug_verbose): Moved to print-tree.h.
5008 (decl_attributes): Moved to attribs.h.
5009 (decl_binds_to_current_def_p): Moved to varasm.h.
5010 (decl_default_tls_model): Moved to varasm.h.
5011 (decl_replaceable_p): Moved to varasm.h.
5012 (div_if_zero_remainder): Moved to fold-const.h.
5013 (double_int mem_ref_offset): Moved to fold-const.h.
5014 (dump_addr): Moved to print-tree.h.
5015 (element_precision): Moved to machmode.h.
5016 (expand_dummy_function_end): Moved to function.h.
5017 (expand_function_end): Moved to function.h.
5018 (expand_function_start): Moved to function.h.
5019 (expand_label): Moved to stmt.h.
5020 (expr_first): Moved to tree-iterator.h.
5021 (expr_last): Moved to tree-iterator.h.
5022 (finalize_size_functions): Moved to stor-layout.h.
5023 (finish_builtin_struct): Moved to stor-layout.h.
5024 (finish_record_layout): Moved to stor-layout.h.
5025 (fixup_signed_type): Moved to stor-layout.h.
5026 (fixup_unsigned_type): Moved to stor-layout.h.
5027 (flags_from_decl_or_type): Moved to calls.h.
5028 (fold): Moved to fold-const.h.
5029 (fold_abs_const): Moved to fold-const.h.
5030 (fold_binary): Moved to fold-const.h.
5031 (fold_binary_loc): Moved to fold-const.h.
5032 (fold_binary_to_constant): Moved to fold-const.h.
5033 (fold_build1): Moved to fold-const.h.
5034 (fold_build1_initializer_loc): Moved to fold-const.h.
5035 (fold_build1_loc): Moved to fold-const.h.
5036 (fold_build1_stat_loc): Moved to fold-const.h.
5037 (fold_build2): Moved to fold-const.h.
5038 (fold_build2_initializer_loc): Moved to fold-const.h.
5039 (fold_build2_loc): Moved to fold-const.h.
5040 (fold_build2_stat_loc): Moved to fold-const.h.
5041 (fold_build3): Moved to fold-const.h.
5042 (fold_build3_loc): Moved to fold-const.h.
5043 (fold_build3_stat_loc): Moved to fold-const.h.
5044 (fold_build_call_array): Moved to fold-const.h.
5045 (fold_build_call_array_initializer): Moved to fold-const.h.
5046 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
5047 (fold_build_call_array_loc): Moved to fold-const.h.
5048 (fold_build_cleanup_point_expr): Moved to fold-const.h.
5049 (fold_convert): Moved to fold-const.h.
5050 (fold_convert_loc): Moved to fold-const.h.
5051 (fold_convertible_p): Moved to fold-const.h.
5052 (fold_defer_overflow_warnings): Moved to fold-const.h.
5053 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
5054 (fold_fma): Moved to fold-const.h.
5055 (fold_ignored_result): Moved to fold-const.h.
5056 (fold_indirect_ref): Moved to fold-const.h.
5057 (fold_indirect_ref_1): Moved to fold-const.h.
5058 (fold_indirect_ref_loc): Moved to fold-const.h.
5059 (fold_read_from_constant_string): Moved to fold-const.h.
5060 (fold_real_zero_addition_p): Moved to fold-const.h.
5061 (fold_single_bit_test): Moved to fold-const.h.
5062 (fold_strip_sign_ops): Moved to fold-const.h.
5063 (fold_ternary): Moved to fold-const.h.
5064 (fold_ternary_loc): Moved to fold-const.h.
5065 (fold_unary): Moved to tree-data-ref.h.
5066 (fold_unary_ignore_overflow): Moved to fold-const.h.
5067 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
5068 (fold_unary_loc): Moved to fold-const.h.
5069 (fold_unary_to_constant): Moved to fold-const.h.
5070 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
5071 (fold_undefer_overflow_warnings): Moved to fold-const.h.
5072 (folding_initializer): Moved to fold-const.h.
5073 (free_temp_slots): Moved to function.h.
5074 (generate_setjmp_warnings): Moved to function.h.
5075 (get_attribute_name): Moved to attribs.h.
5076 (get_identifier): Moved to stringpool.h.
5077 (get_identifier_with_length): Moved to stringpool.h.
5078 (get_inner_reference): Moved to tree.h.
5079 (gimple_alloca_call_p): Moved to calls.h.
5080 (gimplify_parameters): Moved to function.h.
5081 (highest_pow2_factor): Moved to expr.h.
5082 (indent_to): Moved to print-tree.h.
5083 (init_attributes): Moved to attribs.h.
5084 (init_dummy_function_start): Moved to function.h.
5085 (init_function_start): Moved to function.h.
5086 (init_inline_once): Moved to tree-inline.h.
5087 (init_object_sizes): Moved to tree-object-size.h.
5088 (init_temp_slots): Moved to function.h.
5089 (init_tree_optimization_optabs): Moved to optabs.h.
5090 (initialize_sizetypes): Moved to stor-layout.h.
5091 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
5092 (initializer_constant_valid_p): Moved to varasm.h.
5093 (int_const_binop): Moved to fold-const.h.
5094 (internal_reference_types): Moved to stor-layout.h.
5095 (invert_tree_comparison): Moved to fold-const.h.
5096 (invert_truthvalue): Moved to fold-const.h.
5097 (invert_truthvalue_loc): Moved to fold-const.h.
5098 (is_tm_ending_fndecl): Moved to trans-mem.h.
5099 (is_tm_may_cancel_outer): Moved to trans-mem.h.
5100 (is_tm_pure): Moved to trans-mem.h.
5101 (is_tm_safe): Moved to trans-mem.h.
5102 (layout_decl): Moved to stor-layout.h.
5103 (layout_type): Moved to stor-layout.h.
5104 (lookup_attribute_spec): Moved to attribs.h.
5105 (make_accum_type): Moved to stor-layout.h.
5106 (make_decl_one_only): Moved to varasm.h.
5107 (make_decl_rtl): Moved to tree.h.
5108 (make_decl_rtl_for_debug): Moved to varasm.h.
5109 (make_fract_type): Moved to stor-layout.h.
5110 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
5111 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
5112 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
5113 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
5114 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
5115 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
5116 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
5117 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
5118 (make_range): Moved to fold-const.h.
5119 (make_range_step): Moved to fold-const.h.
5120 (make_sat_signed_accum_type): Moved to stor-layout.h.
5121 (make_sat_signed_fract_type): Moved to stor-layout.h.
5122 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
5123 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
5124 (make_signed_accum_type): Moved to stor-layout.h.
5125 (make_signed_fract_type): Moved to stor-layout.h.
5126 (make_signed_type): Moved to stor-layout.h.
5127 (make_unsigned_accum_type): Moved to stor-layout.h.
5128 (make_unsigned_fract_type): Moved to stor-layout.h.
5129 (make_unsigned_type): Moved to stor-layout.h.
5130 (mark_decl_referenced): Moved to varasm.h.
5131 (mark_referenced): Moved to varasm.h.
5132 (may_negate_without_overflow_p): Moved to fold-const.h.
5133 (maybe_get_identifier): Moved to stringpool.h.
5134 (merge_ranges): Moved to fold-const.h.
5135 (merge_weak): Moved to varasm.h.
5136 (mode_for_size_tree): Moved to stor-layout.h.
5137 (multiple_of_p): Moved to fold-const.h.
5138 (must_pass_in_stack_var_size): Moved to calls.h.
5139 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
5140 (native_encode_expr): Moved to fold-const.h.
5141 (native_interpret_expr): Moved to fold-const.h.
5142 (non_lvalue): Moved to fold-const.h.
5143 (non_lvalue_loc): Moved to fold-const.h.
5144 (normalize_offset): Moved to stor-layout.h.
5145 (normalize_rli): Moved to stor-layout.h.
5146 (notice_global_symbol): Moved to varasm.h.
5147 (omit_one_operand): Moved to fold-const.h.
5148 (omit_one_operand_loc): Moved to fold-const.h.
5149 (omit_two_operands): Moved to fold-const.h.
5150 (omit_two_operands_loc): Moved to fold-const.h.
5151 (operand_equal_p): Moved to tree-data-ref.h.
5152 (parse_input_constraint): Moved to stmt.h.
5153 (parse_output_constraint): Moved to stmt.h.
5154 (place_field): Moved to stor-layout.h.
5155 (pop_function_context): Moved to function.h.
5156 (pop_temp_slots): Moved to function.h.
5157 (pos_from_bit): Moved to stor-layout.h.
5158 (preserve_temp_slots): Moved to function.h.
5159 (print_node): Moved to print-tree.h.
5160 (print_node_brief): Moved to print-tree.h.
5161 (print_rtl): Moved to rtl.h.
5162 (process_pending_assemble_externals): Moved to varasm.h.
5163 (ptr_difference_const): Moved to fold-const.h.
5164 (push_function_context): Moved to function.h.
5165 (push_struct_function): Moved to function.h.
5166 (push_temp_slots): Moved to function.h.
5167 (record_tm_replacement): Moved to trans-mem.h.
5168 (relayout_decl): Moved to stor-layout.h.
5169 (resolve_asm_operand_names): Moved to stmt.h.
5170 (resolve_unique_section): Moved to varasm.h.
5171 (rli_size_so_far): Moved to stor-layout.h.
5172 (rli_size_unit_so_far): Moved to stor-layout.h.
5173 (round_down): Moved to fold-const.h.
5174 (round_down_loc): Moved to fold-const.h.
5175 (round_up): Moved to fold-const.h.
5176 (round_up_loc): Moved to fold-const.h.
5177 (set_decl_incoming_rtl): Moved to emit-rtl.h.
5178 (set_decl_rtl): Moved to tree.h.
5179 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
5180 (set_user_assembler_name): Moved to varasm.h.
5181 (setjmp_call_p): Moved to calls.h.
5182 (size_binop): Moved to fold-const.h.
5183 (size_binop_loc): Moved to fold-const.h.
5184 (size_diffop): Moved to fold-const.h.
5185 (size_diffop_loc): Moved to fold-const.h.
5186 (size_int_kind): Moved to fold-const.h.
5187 (stack_protect_epilogue): Moved to function.h.
5188 (start_record_layout): Moved to stor-layout.h.
5189 (supports_one_only): Moved to varasm.h.
5190 (swap_tree_comparison): Moved to fold-const.h.
5191 (tm_malloc_replacement): Moved to trans-mem.h.
5192 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
5193 (tree build_invariant_address): Moved to fold-const.h.
5194 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
5195 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
5196 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
5197 (tree_expr_nonnegative_p): Moved to fold-const.h.
5198 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
5199 (tree_output_constant_def): Moved to varasm.h.
5200 (tree_overlaps_hard_reg_set): Moved to stmt.h.
5201 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
5202 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
5203 (tree_swap_operands_p): Moved to fold-const.h.
5204 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
5205 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
5206 (update_alignment_for_field): Moved to stor-layout.h.
5207 (use_register_for_decl): Moved to function.h.
5208 (variable_size): Moved to rtl.h.
5209 (vector_type_mode): Moved to stor-layout.h.
5210 * cgraph.h: Corresponding changes.
5211 * emit-rtl.h: Corresponding changes.
5212 * expr.h: Corresponding changes.
5213 * function.h: Corresponding changes.
5214 * optabs.h: Corresponding changes.
5215 * trans-mem.h: Corresponding changes.
5216 Protect against multiple inclusion.
5217 * tree-inline.h: Corresponding changes.
5218 * tree-iterator.h: Corresponding changes.
5219 * tree-dfa.h: Include expr.h.
5220 * tree-ssanames.h: Include stringpool.h.
5221 * attribs.h: New file.
5222 * calls.h: New file.
5223 * fold-const.h: New file.
5224 * gcc-symtab.h: New file.
5225 * print-rtl.h: New file.
5226 * print-tree.h: New file.
5228 * stor-layout.h: New file.
5229 * strinpool.h: New file.
5230 * tree-nested.h: New file
5231 * tree-object-size.h: New file.
5232 * varasm.h: New file.
5234 2013-11-14 Diego Novillo <dnovillo@google.com>
5236 * alias.c: Include varasm.h.
5238 * asan.c: Include calls.h.
5239 Include stor-layout.h.
5241 * attribs.c: Include stringpool.h.
5243 Include stor-layout.h.
5244 * builtins.c: Include stringpool.h.
5245 Include stor-layout.h.
5248 Include tree-object-size.h.
5249 * calls.c: Include stor-layout.h.
5251 Include stringpool.h.
5253 * cfgexpand.c: Include stringpool.h.
5255 Include stor-layout.h.
5257 Include print-tree.h.
5258 * cgraph.c: Include varasm.h.
5260 Include print-tree.h.
5261 * cgraphclones.c: Include stringpool.h.
5264 Move inclusion of rtl.h earlier in the file.
5265 * cgraphunit.c: Include varasm.h.
5266 Include stor-layout.h.
5267 Include stringpool.h.
5268 * cilk-common.c: Include stringpool.h.
5269 Include stor-layout.h.
5270 * combine.c: Include stor-layout.h.
5271 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
5272 Include stringpool.h.
5274 * config/aarch64/aarch64.c: Include stringpool.h.
5275 Include stor-layout.h.
5278 * config/alpha/alpha.c: Include stor-layout.h.
5281 * config/arc/arc.c: Include varasm.h.
5282 Include stor-layout.h.
5283 Include stringpool.h.
5285 * config/arm/arm.c: Include stringpool.h.
5286 Include stor-layout.h.
5289 * config/avr/avr-c.c: Include stor-layout.h.
5290 * config/avr/avr-log.c: Include print-tree.h.
5291 * config/avr/avr.c: Include print-tree.h.
5293 Include stor-layout.h.
5294 Include stringpool.h.
5295 * config/bfin/bfin.c: Include varasm.h.
5297 * config/c6x/c6x.c: Include stor-layout.h.
5300 Include stringpool.h.
5301 * config/cr16/cr16.c: Include stor-layout.h.
5303 * config/cris/cris.c: Include varasm.h.
5304 Include stor-layout.h.
5307 * config/darwin.c: Include stringpool.h.
5309 Include stor-layout.h.
5310 * config/epiphany/epiphany.c: Include stor-layout.h.
5313 Include stringpool.h.
5314 * config/fr30/fr30.c: Include stor-layout.h.
5316 * config/frv/frv.c: Include varasm.h.
5317 Include stor-layout.h.
5318 Include stringpool.h.
5319 * config/h8300/h8300.c: Include stor-layout.h.
5322 Include stringpool.h.
5323 * config/i386/i386.c: Include stringpool.h.
5326 Include stor-layout.h.
5328 * config/i386/winnt-cxx.c: Include stringpool.h.
5330 * config/i386/winnt.c: Include stringpool.h.
5332 * config/ia64/ia64-c.c: Include stringpool.h.
5333 * config/ia64/ia64.c: Include stringpool.h.
5334 Include stor-layout.h.
5337 * config/iq2000/iq2000.c: Include stor-layout.h.
5340 * config/lm32/lm32.c: Include calls.h.
5341 * config/m32c/m32c.c: Include stor-layout.h.
5344 * config/m32r/m32r.c: Include stor-layout.h.
5346 Include stringpool.h.
5348 * config/m68k/m68k.c: Include calls.h.
5349 Include stor-layout.h.
5351 * config/mcore/mcore.c: Include stor-layout.h.
5353 Include stringpool.h.
5355 * config/mep/mep.c: Include varasm.h.
5357 Include stringpool.h.
5358 Include stor-layout.h.
5359 * config/microblaze/microblaze.c: Include varasm.h.
5360 Include stor-layout.h.
5362 * config/mips/mips.c: Include varasm.h.
5363 Include stringpool.h.
5364 Include stor-layout.h.
5366 * config/mmix/mmix.c: Include varasm.h.
5367 Include stor-layout.h.
5369 * config/mn10300/mn10300.c: Include stor-layout.h.
5372 * config/moxie/moxie.c: Include stor-layout.h.
5375 * config/msp430/msp430.c: Include stor-layout.h.
5377 * config/nds32/nds32.c: Include stor-layout.h.
5380 * config/pa/pa.c: Include stor-layout.h.
5381 Include stringpool.h.
5384 * config/pdp11/pdp11.c: Include stor-layout.h.
5387 * config/picochip/picochip.c: Include calls.h.
5388 Include stor-layout.h.
5389 Include stringpool.h.
5391 * config/rl78/rl78.c: Include varasm.h.
5392 Include stor-layout.h.
5394 * config/rs6000/rs6000-c.c: Include stor-layout.h.
5395 Include stringpool.h.
5396 * config/rs6000/rs6000.c: Include stringpool.h.
5397 Include stor-layout.h.
5399 Include print-tree.h.
5401 * config/rx/rx.c: Include varasm.h.
5402 Include stor-layout.h.
5404 * config/s390/s390.c: Include print-tree.h.
5405 Include stringpool.h.
5406 Include stor-layout.h.
5409 * config/score/score.c: Include stringpool.h.
5412 Include stor-layout.h.
5413 * config/sh/sh-c.c: Include stringpool.h.
5414 Include attribs.h.h.
5415 * config/sh/sh.c: Include stringpool.h.
5416 Include stor-layout.h.
5419 * config/sol2-c.c: Include stringpool.h.
5421 * config/sol2-cxx.c: Include stringpool.h.
5422 * config/sol2.c: Include stringpool.h.
5424 * config/sparc/sparc.c: Include stringpool.h.
5425 Include stor-layout.h.
5428 * config/spu/spu-c.c: Include stringpool.h.
5429 * config/spu/spu.c: Include stringpool.h.
5430 Include stor-layout.h.
5433 * config/stormy16/stormy16.c: Include stringpool.h.
5434 Include stor-layout.h.
5437 * config/tilegx/tilegx.c: Include stringpool.h.
5438 Include stor-layout.h.
5441 * config/tilepro/tilepro.c: Include stringpool.h.
5442 Include stor-layout.h.
5445 * config/v850/v850-c.c: Include stringpool.h.
5447 * config/v850/v850.c: Include stringpool.h.
5448 Include stor-layout.h.
5451 * config/vax/vax.c: Include calls.h.
5453 * config/vms/vms.c: Include stringpool.h.
5454 * config/vxworks.c: Include stringpool.h.
5455 * config/xtensa/xtensa.c: Include stringpool.h.
5456 Include stor-layout.h.
5459 * convert.c: Include stor-layout.h.
5460 * coverage.c: Include stringpool.h.
5461 Include stor-layout.h.
5462 * dbxout.c: Include varasm.h.
5463 Include stor-layout.h.
5464 * dojump.c: Include stor-layout.h.
5465 * dse.c: Include stor-layout.h.
5466 * dwarf2asm.c: Include stringpool.h.
5468 * dwarf2cfi.c: Include stor-layout.h.
5469 * dwarf2out.c: Include rtl.h.
5470 Include stringpool.h.
5471 Include stor-layout.h.
5475 Move inclusion of rtl.h earlier in the file.
5476 * emit-rtl.c: Include varasm.h.
5477 * except.c: Include stringpool.h.
5478 Include stor-layout.h.
5479 * explow.c: Include stor-layout.h.
5480 * expmed.c: Include stor-layout.h.
5481 * expr.c: Include stringpool.h.
5482 Include stor-layout.h.
5485 * final.c: Include varasm.h.
5486 * fold-const.c: Include stor-layout.h.
5488 Include tree-iterator.h.
5489 * function.c: Include stor-layout.h.
5491 Include stringpool.h.
5492 * genattrtab.c (write_header): Emit includes for varasm.h,
5493 stor-layout.h and calls.h.
5494 * genautomata.c (main): Likewise.
5495 * genemit.c: Likewise.
5496 * genopinit.c: Likewise.
5497 * genoutput.c (output_prologue): Likewise.
5498 * genpeep.c: Likewise.
5499 * genpreds.c (write_insn_preds_c): Likewise.
5500 * gengtype.c (open_base_files): Add stringpool.h.
5501 * gimple-expr.c: Include stringpool.h.
5502 Include stor-layout.h.
5503 * gimple-fold.c: Include stringpool.h.
5506 Include stor-layout.h.
5507 * gimple-low.c: Include tree-nested.h.
5509 * gimple-pretty-print.c: Include stringpool.h.
5510 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5512 * gimple-walk.c: Include stmt.h.
5513 * gimple.c: Include calls.h.
5515 Include stor-layout.h.
5516 * gimplify.c: Include stringpool.h.
5519 Include stor-layout.h.
5521 Include print-tree.h.
5523 * gimplify-me.c: Include stmt.h
5524 Include stor-layout.h
5525 * internal-fn.c: Include stor-layout.h.
5526 * ipa-devirt.c: Include print-tree.h.
5528 * ipa-inline-analysis.c: Include stor-layout.h.
5529 Include stringpool.h.
5530 Include print-tree.h.
5531 * ipa-inline.c: Include trans-mem.h.
5533 * ipa-prop.c: Include expr.h.
5534 Include stor-layout.h.
5535 Include print-tree.h.
5536 * ipa-pure-const.c: Include print-tree.h.
5538 * ipa-reference.c: Include calls.h.
5539 * ipa-split.c: Include stringpool.h.
5542 * ipa.c: Include calls.h.
5543 Include stringpool.h.
5544 * langhooks.c: Include stringpool.h.
5546 * lto-cgraph.c: Include stringpool.h.
5547 * lto-streamer-in.c: Include stringpool.h.
5548 * lto-streamer-out.c: Include stor-layout.h.
5549 Include stringpool.h.
5550 * omp-low.c: Include stringpool.h.
5551 Include stor-layout.h.
5553 * optabs.c: Include stor-layout.h.
5554 Include stringpool.h.
5556 * passes.c: Include varasm.h.
5557 * predict.c: Include calls.h.
5558 * print-rtl.c: Include print-tree.h.
5559 * print-tree.c: Include varasm.h.
5560 Include print-rtl.h.
5561 Include stor-layout.h.
5562 * realmpfr.c: Include stor-layout.h.
5563 * reg-stack.c: Include varasm.h.
5564 * sdbout.c: Include varasm.h.
5565 Include stor-layout.h.
5566 * simplify-rtx.c: Include varasm.h.
5567 * stmt.c: Include varasm.h.
5568 Include stor-layout.h.
5569 * stor-layout.c: Include stor-layout.h.
5570 Include stringpool.h.
5572 Include print-tree.h.
5573 * symtab.c: Include rtl.h.
5574 Include print-tree.h.
5578 * targhooks.c: Include stor-layout.h.
5580 * toplev.c: Include varasm.h.
5581 Include tree-inline.h.
5582 * trans-mem.c: Include calls.h.
5586 * tree-affine.c: Include expr.h.
5587 * tree-browser.c: Include print-tree.h.
5588 * tree-call-cdce.c: Include stor-layout.h.
5589 * tree-cfg.c: Include trans-mem.h.
5590 Include stor-layout.h.
5591 Include print-tree.h.
5592 * tree-complex.c: Include stor-layout.h.
5593 * tree-data-ref.c: Include expr.h.
5594 * tree-dfa.c: Include stor-layout.h.
5595 * tree-eh.c: Include expr.h.
5597 * tree-emutls.c: Include stor-layout.h.
5599 * tree-if-conv.c: Include stor-layout.h.
5600 * tree-inline.c: Include stor-layout.h.
5602 * tree-loop-distribution.c: Include stor-layout.h.
5603 * tree-nested.c: Include stringpool.h.
5604 Include stor-layout.h.
5605 * tree-object-size.c: Include tree-object-size.h.
5606 * tree-outof-ssa.c: Include stor-layout.h.
5607 * tree-parloops.c: Include stor-layout.h.
5608 Include tree-nested.h.
5609 * tree-pretty-print.c: Include stor-layout.h.
5611 * tree-profile.c: Include varasm.h.
5612 Include tree-nested.h.
5613 * tree-scalar-evolution.c: Include expr.h.
5614 * tree-sra.c: Include stor-layout.h.
5615 * tree-ssa-address.c: Include stor-layout.h.
5616 * tree-ssa-ccp.c: Include stor-layout.h.
5617 * tree-ssa-dce.c: Include calls.h.
5618 * tree-ssa-dom.c: Include stor-layout.h.
5619 * tree-ssa-forwprop.c: Include stor-layout.h.
5620 * tree-ssa-ifcombine.c: Include stor-layout.h.
5621 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5622 * tree-ssa-loop-niter.c: Include calls.h.
5624 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5625 * tree-ssa-math-opts.c: Include stor-layout.h.
5626 * tree-ssa-operands.c: Include stmt.h.
5627 Include print-tree.h.
5628 * tree-ssa-phiopt.c: Include stor-layout.h.
5629 * tree-ssa-reassoc.c: Include stor-layout.h.
5630 * tree-ssa-sccvn.c: Include stor-layout.h.
5631 * tree-ssa-sink.c: Include stor-layout.h.
5632 * tree-ssa-strlen.c: Include stor-layout.h.
5633 * tree-ssa-structalias.c: Include stor-layout.h.
5635 * tree-ssa-tail-merge.c: Include stor-layout.h.
5636 Include trans-mem.h.
5637 * tree-ssa-uncprop.c: Include stor-layout.h.
5638 * tree-ssa.c: Include stor-layout.h.
5639 * tree-ssanames.c: Include stor-layout.h.
5640 * tree-streamer-in.c: Include stringpool.h.
5641 * tree-streamer-out.c: Include stor-layout.h.
5642 * tree-switch-conversion.c: Include varasm.h.
5643 Include stor-layout.h.
5644 * tree-tailcall.c: Include stor-layout.h.
5645 * tree-vect-data-refs.c: Include stor-layout.h.
5646 * tree-vect-generic.c: Include stor-layout.h.
5647 * tree-vect-loop.c: Include stor-layout.h.
5648 * tree-vect-patterns.c: Include stor-layout.h.
5649 * tree-vect-slp.c: Include stor-layout.h.
5650 * tree-vect-stmts.c: Include stor-layout.h.
5651 * tree-vectorizer.c: Include stor-layout.h.
5652 * tree-vrp.c: Include stor-layout.h.
5654 * tree.c: Include stor-layout.h.
5658 * tsan.c: Include expr.h.
5659 * ubsan.c: Include stor-layout.h.
5660 Include stringpool.h.
5661 * value-prof.c: Include tree-nested.h.
5663 * var-tracking.c: Include varasm.h.
5664 Include stor-layout.h.
5665 * varasm.c: Include stor-layout.h.
5666 Include stringpool.h.
5667 Include gcc-symtab.h.
5669 * varpool.c: Include varasm.h.
5670 * vmsdbgout.c: Include varasm.h.
5671 * xcoffout.c: Include varasm.h.
5673 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5675 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5678 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5680 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5682 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5683 Alan Modra <amodra@gmail.com>
5685 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5686 (RS6000_SAVE_TOC): Remove.
5687 (RS6000_TOC_SAVE_SLOT): New macro.
5688 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5689 (rs6000_parm_start): Use it.
5690 (rs6000_function_arg_advance_1): Likewise.
5691 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5692 (rs6000_emit_epilogue): Likewise.
5693 (rs6000_call_aix): Likewise.
5694 (rs6000_output_function_prologue): Do not save/restore r11
5695 around calling _mcount for ABI_ELFv2.
5697 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5698 Alan Modra <amodra@gmail.com>
5700 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5702 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5703 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5704 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5705 (rs6000_function_parms_need_stack): Likewise.
5706 (rs6000_reg_parm_stack_space): Likewise.
5707 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5708 returning a register argument.
5710 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5711 Michael Gschwind <mkg@us.ibm.com>
5713 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5714 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5715 (FUNCTION_VALUE_REGNO_P): Use them.
5716 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5717 (rs6000_return_in_msb): New function.
5718 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5719 Handle aggregates of up to 16 bytes for ELFv2.
5720 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5722 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5723 Michael Gschwind <mkg@us.ibm.com>
5725 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5726 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5727 (rs6000_discover_homogeneous_aggregate): Likewise.
5728 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5729 (rs6000_function_arg_advance_1): Likewise.
5730 (rs6000_function_arg): Likewise.
5731 (rs6000_arg_partial_bytes): Likewise.
5732 (rs6000_psave_function_arg): Handle BLKmode arguments.
5734 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5735 Michael Gschwind <mkg@us.ibm.com>
5737 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5738 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5739 (rs6000_discover_homogeneous_aggregate): Likewise.
5740 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5741 (rs6000_function_arg_advance_1): Likewise.
5742 (rs6000_function_arg): Likewise.
5743 (rs6000_arg_partial_bytes): Likewise.
5744 (rs6000_psave_function_arg): Handle BLKmode arguments.
5746 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5748 * config/rs6000/rs6000.c (machine_function): New member
5750 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5751 (rs6000_output_mi_thunk): Set r2_setup_needed.
5752 (rs6000_output_function_prologue): Output global entry point
5753 prologue and local entry point marker if needed for ABI_ELFv2.
5754 Output -mprofile-kernel code here.
5755 (output_function_profiler): Do not output -mprofile-kernel
5756 code here; moved to rs6000_output_function_prologue.
5757 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5759 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5760 (rs6000_output_function_entry): Likewise.
5761 (rs6000_assemble_integer): Likewise.
5762 (rs6000_elf_encode_section_info): Likewise.
5763 (rs6000_elf_declare_function_name): Do not create dot symbols
5764 or .opd section for ABI_ELFv2.
5766 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5767 (rs6000_trampoline_init): Likewise.
5768 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5770 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
5771 for function descriptors in ABI_ELFv2.
5773 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5774 on ABI_AIX only, not ABI_ELFv2.
5775 ("*call_value_indirect_aix<mode>"): Likewise.
5776 ("*call_indirect_elfv2<mode>"): New pattern.
5777 ("*call_value_indirect_elfv2<mode>"): Likewise.
5779 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5780 check for function descriptors in ABI_ELFv2.
5781 ("current_file_function_operand"): Likewise.
5783 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5785 (FUNC_NAME): Define ELFv2 variant.
5786 (JUMP_TARGET): Likewise.
5787 (FUNC_START): Likewise.
5788 (HIDDEN_FUNC): Likewise.
5789 (FUNC_END): Likeiwse.
5791 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5793 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5794 and --with-abi=elfv2.
5795 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5796 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5797 (mabi=elfv2): Likewise.
5798 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5799 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5801 (ELFv2_ABI_CHECK): New macro.
5802 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5803 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5804 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5805 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5806 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5808 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5809 (debug_stack_info): Likewise.
5810 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5811 (rs6000_legitimize_tls_address): Likewise.
5812 (rs6000_conditional_register_usage): Likewise.
5813 (rs6000_emit_move): Likewise.
5814 (init_cumulative_args): Likewise.
5815 (rs6000_function_arg_advance_1): Likewise.
5816 (rs6000_function_arg): Likewise.
5817 (rs6000_arg_partial_bytes): Likewise.
5818 (rs6000_output_function_entry): Likewise.
5819 (rs6000_assemble_integer): Likewise.
5820 (rs6000_savres_strategy): Likewise.
5821 (rs6000_stack_info): Likewise.
5822 (rs6000_function_ok_for_sibcall): Likewise.
5823 (rs6000_emit_load_toc_table): Likewise.
5824 (rs6000_savres_routine_name): Likewise.
5825 (ptr_regno_for_savres): Likewise.
5826 (rs6000_emit_prologue): Likewise.
5827 (rs6000_emit_epilogue): Likewise.
5828 (rs6000_output_function_epilogue): Likewise.
5829 (output_profile_hook): Likewise.
5830 (output_function_profiler): Likewise.
5831 (rs6000_trampoline_size): Likewise.
5832 (rs6000_trampoline_init): Likewise.
5833 (rs6000_elf_output_toc_section_asm_op): Likewise.
5834 (rs6000_elf_encode_section_info): Likewise.
5835 (rs6000_elf_reloc_rw_mask): Likewise.
5836 (rs6000_elf_declare_function_name): Likewise.
5837 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5838 except that rs6000_compat_align_parm is always assumed false.
5839 (rs6000_gimplify_va_arg): Likewise.
5840 (rs6000_call_aix): Update comment.
5841 (rs6000_sibcall_aix): Likewise.
5842 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5843 Treat ABI_ELFv2 the same as ABI_AIX.
5844 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5845 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5846 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5847 ("load_toc_aix_si"): Likewise.
5848 ("load_toc_aix_di"): Likewise.
5850 ("call_value"): Likewise.
5851 ("*call_local_aix<mode>"): Likewise.
5852 ("*call_value_local_aix<mode>"): Likewise.
5853 ("*call_nonlocal_aix<mode>"): Likewise.
5854 ("*call_value_nonlocal_aix<mode>"): Likewise.
5855 ("*call_indirect_aix<mode>"): Likewise.
5856 ("*call_value_indirect_aix<mode>"): Likewise.
5857 ("sibcall"): Likewise.
5858 ("sibcall_value"): Likewise.
5859 ("*sibcall_aix<mode>"): Likewise.
5860 ("*sibcall_value_aix<mode>"): Likewise.
5861 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5862 ("current_file_function_operand"): Likewise.
5864 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5866 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5867 by making use of the fact that for vector / floating point arguments
5868 passed both in VRs/FPRs and in the fixed parameter area, the partial
5869 bytes mechanism is in fact not used.
5871 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5873 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5874 (rs6000_finish_function_arg): Likewise.
5875 (rs6000_function_arg): Use rs6000_psave_function_arg and
5876 rs6000_finish_function_arg to handle both vector and floating
5877 point arguments that are also passed in GPRs / the stack.
5879 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5881 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5882 (USE_ALTIVEC_FOR_ARG_P): Likewise.
5883 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5884 (rs6000_function_arg_advance_1):Likewise.
5885 (rs6000_darwin64_record_arg_recurse): Likewise.
5886 (rs6000_function_arg): Likewise.
5887 (rs6000_arg_partial_bytes): Likewise.
5889 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5891 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5892 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5893 (rs6000_savres_strategy): Likewise.
5894 (rs6000_return_addr): Likewise.
5895 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5896 testing for ABI_V4 (since ABI_DARWIN is impossible here).
5897 (rs6000_emit_prologue): Likewise.
5898 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5899 (rs6000_elf_declare_function_name): Remove duplicated test.
5900 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5901 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5902 ("load_toc_v4_PIC_1_normal"): Likewise.
5903 ("load_toc_v4_PIC_1_476"): Likewise.
5904 ("load_toc_v4_PIC_1b"): Likewise.
5905 ("load_toc_v4_PIC_1b_normal"): Likewise.
5906 ("load_toc_v4_PIC_1b_476"): Likewise.
5907 ("load_toc_v4_PIC_2"): Likewise.
5908 ("load_toc_v4_PIC_3b"): Likewise.
5909 ("load_toc_v4_PIC_3c"): Likewise.
5910 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5911 (RS6000_SAVE_AREA): Likewise.
5912 (FP_ARG_MAX_REG): Likewise.
5913 (RETURN_ADDRESS_OFFSET): Likewise.
5914 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5916 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5917 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5919 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5921 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5922 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
5923 Create call insn directly instead of via various gen_... routines.
5924 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5925 (rs6000_sibcall_aix): New function.
5926 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5927 (TOC_SAVE_OFFSET_64BIT): Likewise.
5928 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5929 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5930 (AIX_FUNC_DESC_SC_32BIT): Likewise.
5931 (AIX_FUNC_DESC_SC_64BIT): Likewise.
5932 ("call" expander): Call rs6000_call_aix.
5933 ("call_value" expander): Likewise.
5934 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5935 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5936 ("*call_indirect_aix<mode>"): ... by this insn pattern.
5937 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5938 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5939 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5940 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5941 ("*call_nonlocal_aix<mode>"): ... this pattern.
5942 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5943 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5944 ("*call_local_aix<mode>"): New insn pattern.
5945 ("*call_value_local_aix<mode>"): Likewise.
5946 ("sibcall" expander): Call rs6000_sibcall_aix.
5947 ("sibcall_value" expander): Likewise. Move earlier in file.
5948 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5949 ("*sibcall_aix<mode>"): ... this pattern.
5950 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5951 ("*sibcall_value_aix<mode>"): ... this pattern.
5952 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5953 (rs6000_call_aix): Add prototype.
5954 (rs6000_sibcall_aix): Likewise.
5956 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5959 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5960 isn't confused by the artificial decl.
5962 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5964 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5965 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5966 Instead, add USEs of all modified call-saved CR fields to the
5967 insn storing the result to the stack slot, and provide an
5968 appropriate REG_FRAME_RELATED_EXPR for that insn.
5969 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5970 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5972 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5973 Alan Modra <amodra@gmail.com>
5975 * function.c (assign_parms): Use all.reg_parm_stack_space instead
5976 of re-evaluating REG_PARM_STACK_SPACE target macro.
5977 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
5978 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5979 (assign_parm_find_entry_rtl): Update call.
5980 * calls.c (initialize_argument_information): Update call.
5981 (emit_library_call_value_1): Likewise.
5982 * expr.h (locate_and_pad_parm): Update prototype.
5984 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5986 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5989 2013-11-14 DJ Delorie <dj@redhat.com>
5991 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5994 2013-11-14 Jeff Law <law@redhat.com>
5996 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5997 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5999 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6001 * doc/invoke.texi: Update documentation for AArch64's -mcpu
6004 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6006 * config/aarch64/aarch64-cores.def (example-1): Remove.
6007 (example-2): Likewise.
6008 * config/aarch64/aarch64-tune.md: Regenerate.
6009 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
6010 (generic_sched): Remove "large", "small".
6011 * config/aarch64/large.md: Delete.
6012 * config/aarch64/small.md: Delete.
6014 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6016 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
6017 * config/aarch64/aarch64-tune.md: Regenerate.
6018 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
6019 (generic_sched): "no" if we are tuning for cortexa15.
6020 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
6023 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6025 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
6026 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
6027 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
6028 (all_cores): Use cortexa53 when tuning for "generic".
6029 (aarch64_override_options): Fix comment.
6030 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
6031 * config/aarch64/aarch64-generic.md: Delete.
6033 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6035 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
6037 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6039 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
6040 (generic_rtx_cost_table): Remove.
6041 (aarch64_rtx_costs): Use fields from cpu_cost_table.
6042 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
6044 (cpu_rtx_cost_table): Remove.
6046 2013-11-14 Julian Brown <julian@codesourcery.com>
6047 Joey Ye <joey.ye@arm.com>
6049 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
6050 (arm_v7m_tune): New.
6051 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
6052 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
6053 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
6054 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
6056 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
6059 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
6062 2013-11-14 Jakub Jelinek <jakub@redhat.com>
6063 Uros Bizjak <ubizjak@gmail.com>
6066 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
6067 operands[2] satisfies_constraint_Z that might have bit 31 set.
6069 2013-11-13 Jeff Law <law@redhat.com>
6071 PR tree-optimization/59102
6072 * gimple-ssa-isolate-paths.c
6073 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
6074 gimple assignment before looking at gimple_assign_lhs.
6076 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6078 * ira.c: Add comment about threads at the top of file.
6080 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6082 * ira-color.c (coalesce_allocnos): Don't allocate and free
6085 2013-11-14 Tom de Vries <tom@codesourcery.com>
6087 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
6088 equality for GIMPLE_ASSIGN.
6090 2013-11-14 Tom de Vries <tom@codesourcery.com>
6092 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
6094 (gimple_equal_p): ... here.
6096 2013-11-14 Tom de Vries <tom@codesourcery.com>
6098 * trans-mem.c (is_tm_ending): New function.
6099 * gimple.h (is_tm_ending): Declare.
6100 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
6102 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
6104 2013-11-14 Tom de Vries <tom@codesourcery.com>
6106 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
6108 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
6110 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
6111 (struct walk_stmt_info): Relocate here from gimple.h.
6112 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
6113 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
6114 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
6115 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
6116 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
6117 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
6118 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
6119 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
6120 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
6121 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
6122 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
6123 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
6124 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
6125 (struct walk_stmt_info): Move to gimple-walk.h.
6126 (gimple_seq_set_location): Move to gimple.c
6127 * gimple-walk.c: New File.
6128 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
6129 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
6130 walk_stmt_load_store_ops): Relocate here from gimple.c.
6131 * gimple-iterator.c: Include gimple-iterator.h.
6132 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
6133 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
6134 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
6136 (gimple_seq_set_location): Relocate from gimple.h.
6137 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
6138 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
6139 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
6140 * Makefile.in (OBJS): Add gimple-walk.o
6141 * asan.c: Update Include list as required for gimple-iterator.h and
6143 * cfgexpand.c: Likewise.
6144 * cfgloop.c: Likewise.
6145 * cfgloopmanip.c: Likewise.
6146 * cgraph.c: Likewise.
6147 * cgraphbuild.c: Likewise.
6148 * cgraphunit.c: Likewise.
6149 * gimple-fold.c: Likewise.
6150 * gimple-low.c: Likewise.
6151 * gimple-pretty-print.c: Likewise.
6152 * gimple-ssa-isolate-paths.c: Likewise.
6153 * gimple-ssa-strength-reduction.c: Likewise.
6154 * gimple-streamer-in.c: Likewise.
6155 * gimple-streamer-out.c: Likewise.
6156 * gimplify.c: Likewise.
6157 * graphite-blocking.c: Likewise.
6158 * graphite-clast-to-gimple.c: Likewise.
6159 * graphite-dependences.c: Likewise.
6160 * graphite-interchange.c: Likewise.
6161 * graphite-optimize-isl.c: Likewise.
6162 * graphite-poly.c: Likewise.
6163 * graphite-scop-detection.c: Likewise.
6164 * graphite-sese-to-poly.c: Likewise.
6165 * graphite.c: Likewise.
6166 * ipa-inline-analysis.c: Likewise.
6167 * ipa-profile.c: Likewise.
6168 * ipa-prop.c: Likewise.
6169 * ipa-pure-const.c: Likewise.
6170 * ipa-split.c: Likewise.
6171 * lto-streamer-in.c: Likewise.
6172 * lto-streamer-out.c: Likewise.
6173 * omp-low.c: Likewise.
6174 * predict.c: Likewise.
6175 * profile.c: Likewise.
6177 * tracer.c: Likewise.
6178 * trans-mem.c: Likewise.
6179 * tree-call-cdce.c: Likewise.
6180 * tree-cfg.c: Likewise.
6181 * tree-cfgcleanup.c: Likewise.
6182 * tree-complex.c: Likewise.
6183 * tree-data-ref.c: Likewise.
6184 * tree-dfa.c: Likewise.
6185 * tree-eh.c: Likewise.
6186 * tree-emutls.c: Likewise.
6187 * tree-if-conv.c: Likewise.
6188 * tree-inline.c: Likewise.
6189 * tree-into-ssa.c: Likewise.
6190 * tree-loop-distribution.c: Likewise.
6191 * tree-nested.c: Likewise.
6192 * tree-nrv.c: Likewise.
6193 * tree-object-size.c: Likewise.
6194 * tree-outof-ssa.c: Likewise.
6195 * tree-parloops.c: Likewise.
6196 * tree-predcom.c: Likewise.
6197 * tree-profile.c: Likewise.
6198 * tree-scalar-evolution.c: Likewise.
6199 * tree-sra.c: Likewise.
6200 * tree-ssa-ccp.c: Likewise.
6201 * tree-ssa-coalesce.c: Likewise.
6202 * tree-ssa-copy.c: Likewise.
6203 * tree-ssa-copyrename.c: Likewise.
6204 * tree-ssa-dce.c: Likewise.
6205 * tree-ssa-dom.c: Likewise.
6206 * tree-ssa-dse.c: Likewise.
6207 * tree-ssa-forwprop.c: Likewise.
6208 * tree-ssa-ifcombine.c: Likewise.
6209 * tree-ssa-live.c: Likewise.
6210 * tree-ssa-loop-ch.c: Likewise.
6211 * tree-ssa-loop-im.c: Likewise.
6212 * tree-ssa-loop-ivcanon.c: Likewise.
6213 * tree-ssa-loop-ivopts.c: Likewise.
6214 * tree-ssa-loop-manip.c: Likewise.
6215 * tree-ssa-loop-niter.c: Likewise.
6216 * tree-ssa-loop-prefetch.c: Likewise.
6217 * tree-ssa-loop.c: Likewise.
6218 * tree-ssa-math-opts.c: Likewise.
6219 * tree-ssa-phiopt.c: Likewise.
6220 * tree-ssa-phiprop.c: Likewise.
6221 * tree-ssa-pre.c: Likewise.
6222 * tree-ssa-propagate.c: Likewise.
6223 * tree-ssa-reassoc.c: Likewise.
6224 * tree-ssa-sink.c: Likewise.
6225 * tree-ssa-strlen.c: Likewise.
6226 * tree-ssa-structalias.c: Likewise.
6227 * tree-ssa-tail-merge.c: Likewise.
6228 * tree-ssa-ter.c: Likewise.
6229 * tree-ssa-threadedge.c: Likewise.
6230 * tree-ssa-threadupdate.c: Likewise.
6231 * tree-ssa-uncprop.c: Likewise.
6232 * tree-ssa-uninit.c: Likewise.
6233 * tree-ssa.c: Likewise.
6234 * tree-stdarg.c: Likewise.
6235 * tree-switch-conversion.c: Likewise.
6236 * tree-tailcall.c: Likewise.
6237 * tree-vect-data-refs.c: Likewise.
6238 * tree-vect-generic.c: Likewise.
6239 * tree-vect-loop-manip.c: Likewise.
6240 * tree-vect-loop.c: Likewise.
6241 * tree-vect-patterns.c: Likewise.
6242 * tree-vect-slp.c: Likewise.
6243 * tree-vect-stmts.c: Likewise.
6244 * tree-vectorizer.c: Likewise.
6245 * tree-vrp.c: Likewise.
6248 * value-prof.c: Likewise.
6249 * vtable-verify.c: Likewise.
6251 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
6253 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
6256 2013-11-13 Jeff Law <law@redhat.com>
6258 * PR middle-end/59119
6259 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
6260 function, extracted from gimple_ssa_isolate_erroneous_paths.
6261 (find_explicit_erroneous_behaviour): Similarly.
6262 (insert_trap_and_remove_trailing_statements): Remove statements
6265 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
6267 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
6268 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
6269 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
6270 looking at INSN_CODE.
6271 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
6272 active_insn_p object, respect basic block boundaries.
6273 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
6274 follows immediately after the jump table data label.
6275 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
6276 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
6277 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
6279 2013-11-13 Teresa Johnson <tejohnson@google.com>
6282 * predict.c (drop_profile): Error is currently too strict.
6283 (handle_missing_profiles): Pass call_count to drop_profile.
6285 2013-11-13 Teresa Johnson <tejohnson@google.com>
6288 * ipa-inline.c (edge_badness): Fix overflow.
6290 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6292 PR rtl-optimization/59036
6293 * ira-color.c (struct allocno_color_data): Add new members
6294 first_thread_allocno, next_thread_allocno, thread_freq.
6295 (sorted_copies): New static var.
6296 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
6297 (allocno_thread_conflict_p, merge_threads)
6298 (form_threads_from_copies, form_threads_from_bucket)
6299 (form_threads_from_colorable_allocno, init_allocno_threads): New
6301 (bucket_allocno_compare_func): Add comparison by thread frequency
6303 (add_allocno_to_ordered_bucket): Rename to
6304 add_allocno_to_ordered_colorable_bucket. Remove parameter.
6305 (push_only_colorable): Call form_threads_from_bucket.
6306 (color_pass): Call init_allocno_threads. Use
6307 consideration_allocno_bitmap instead of coloring_allocno_bitmap
6308 for nuillify allocno color data.
6309 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
6310 (coalesce_allocnos): Use static sorted copies.
6312 2013-11-13 Jakub Jelinek <jakub@redhat.com>
6314 * passes.c (execute_todo): Don't call do_per_function if
6316 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
6317 execute_function_dump if dump_file is NULL.
6319 2013-11-13 Martin Jambor <mjambor@suse.cz>
6321 * cgraph.c (cgraph_get_create_node): Do what
6322 cgraph_get_create_real_symbol_node used to do.
6323 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
6324 call cgraph_get_create_node.
6325 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
6326 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
6327 cgraph_get_create_node. Assert we get a node.
6329 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6331 * config/aarch64/aarch64-simd.md (vec_extract): New.
6333 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6335 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
6338 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6340 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
6341 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
6342 or if optimization is enabled.
6343 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
6344 require that all the names based on a PARM_DECL or a RESULT_DECL that
6345 isn't ignored for debug info be coalesced.
6347 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6349 * config/c6x/c6x.c: Include "gimple-expr.h".
6351 2013-11-13 Richard Biener <rguenther@suse.de>
6353 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
6354 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
6355 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
6356 dealing with type mismatches inside component reference chains.
6358 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
6360 PR tree-optimization/59077
6361 * ipa-pure-const.c (better_state): Update *state.
6363 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
6365 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
6366 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
6367 Update offset calculations.
6369 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6372 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6373 for fields. Do not add the attribute if the size is negative.
6375 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6377 * config/arm/arm.c: Include aarch-cost-tables.h.
6378 (generic_extra_costs): Move from here...
6379 * config/arm/aarch-cost-tables.h: ... To here. New file.
6381 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
6382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6383 Sergey Lega <sergey.s.lega@intel.com>
6384 Anna Tikhonova <anna.tikhonova@intel.com>
6385 Ilya Tocar <ilya.tocar@intel.com>
6386 Andrey Turetskiy <andrey.turetskiy@intel.com>
6387 Ilya Verbin <ilya.verbin@intel.com>
6388 Kirill Yukhin <kirill.yukhin@intel.com>
6389 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6391 * config/i386/i386.c (ix86_print_operand): Support z-masking.
6392 * config/i386/predicate.md (const_0_to_4_operand): New.
6393 (const_0_to_5_operand): Ditto.
6394 * config/i386/sse.md (UNSPEC_COMPRESS): New.
6395 (UNSPEC_COMPRESS_STORE): Ditto.
6396 (UNSPEC_EXPAND): Ditto.
6397 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6398 (define_mode_attr ssescalarsize): Ditto.
6399 (avx512f_load<mode>_mask): Ditto.
6400 (avx512f_store<mode>_mask): Ditto.
6401 (avx512f_storedqu<mode>_mask): Ditto.
6402 (avx512f_vmcmp<mode>3_mask): Ditto.
6403 (avx512f_fmadd_<mode>_mask): Ditto.
6404 (avx512f_fmadd_<mode>_mask3): Ditto.
6405 (avx512f_fmsub_<mode>_mask): Ditto.
6406 (avx512f_fmsub_<mode>_mask3): Ditto.
6407 (avx512f_fnmadd_<mode>_mask): Ditto.
6408 (avx512f_fnmadd_<mode>_mask3): Ditto.
6409 (avx512f_fnmsub_<mode>_mask): Ditto.
6410 (avx512f_fnmsub_<mode>_mask3): Ditto.
6411 (avx512f_fmaddsub_<mode>_mask): Ditto.
6412 (avx512f_fmaddsub_<mode>_mask3): Ditto.
6413 (avx512f_fmsubadd_<mode>_mask): Ditto.
6414 (avx512f_fmsubadd_<mode>_mask3): Ditto.
6415 (vec_unpacku_float_lo_v16si): Ditto.
6416 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6417 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6418 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6419 (vec_extract_lo_<mode>_maskm): Ditto.
6420 (vec_extract_hi_<mode>_maskm): Ditto.
6421 (avx512f_vternlog<mode>_mask): Ditto.
6422 (avx512f_shufps512_mask): Ditto.
6423 (avx512f_fixupimm<mode>_mask): Ditto.
6424 (avx512f_shufpd512_mask): Ditto.
6425 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6426 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6427 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6428 (ashr<mode>3<mask_name>): Ditto.
6429 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6430 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6431 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6432 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6433 (avx512f_pshufdv3_mask): Ditto.
6434 (avx512f_perm<mode>_mask): Ditto.
6435 (avx512f_vpermi2var<mode>3_mask): Ditto.
6436 (avx512f_vpermt2var<mode>3_mask): Ditto.
6437 (avx512f_compress<mode>_mask): Ditto.
6438 (avx512f_compressstore<mode>_mask): Ditto.
6439 (avx512f_expand<mode>_mask): Ditto.
6440 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6442 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6443 (<plusminus_insn><mode>3<mask_name>): Ditto.
6444 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6445 (mul<mode>3<mask_name>): Ditto.
6446 (*mul<mode>3<mask_name>): Ditto.
6447 (<sse>_div<mode>3<mask_name>): Ditto.
6448 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6449 (<sse>_sqrt<mode>2<mask_name>): Ditto.
6450 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6451 (<code><mode>3<mask_name>/smaxmin): Ditto.
6452 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6453 (*<code><mode>3<mask_name>/smaxmin): Ditto.
6454 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6455 (ufloatv16siv16sf2<mask_name>): Ditto.
6456 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6457 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6458 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6459 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6460 (ufloatv8siv8df<mask_name>): Ditto.
6461 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6462 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6463 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6464 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6465 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6466 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6467 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6468 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6469 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6470 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6471 (vec_extract_lo_<mode><mask_name>): Ditto.
6472 (vec_extract_hi_<mode><mask_name>): Ditto.
6473 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6474 (avx512f_movddup512<mask_name>): Ditto.
6475 (avx512f_unpcklpd512<mask_name>): Ditto.
6476 (*avx512f_unpcklpd512<mask_name>): Ditto.
6477 (*avx512f_vmscalef<mode>): Ditto.
6478 (avx512f_scalef<mode><mask_name>): Ditto.
6479 (avx512f_getexp<mode><mask_name>): Ditto.
6480 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6481 (avx512f_rndscale<mode><mask_name>): Ditto.
6482 (avx512f_shufps512_1<mask_name>): Ditto.
6483 (avx512f_shufpd512_1<mask_name>): Ditto.
6484 (<plusminus_insn><mode>3<mask_name>): Ditto.
6485 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6486 (vec_widen_umult_even_v16si<mask_name>): Ditto.
6487 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6488 (vec_widen_smult_even_v16si<mask_name>): Ditto.
6489 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6490 (mul<mode>3<mask_name>): Ditto.
6491 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6492 (<shift_insn><mode>3<mask_name>): Ditto.
6493 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6494 (avx512f_<rotate><mode><mask_name>): Ditto.
6495 (<code><mode>3<mask_name>/maxmin): Ditto.
6496 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6497 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6498 (*andnot<mode>3<mask_name>): Ditto.
6499 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6500 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6501 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6502 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6503 (vec_set_lo_<mode><mask_name>): Ditto.
6504 (vec_set_hi_<mode><mask_name>): Ditto.
6505 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6506 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6507 (avx512f_pshufd_1<mask_name>): Ditto.
6508 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6509 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6510 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6511 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6512 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6513 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6514 (avx512er_exp2<mode><mask_name>): Ditto.
6515 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6516 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6517 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6518 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6519 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6520 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6521 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6522 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6523 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6524 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6525 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6526 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6527 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6528 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6529 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6530 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6531 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6532 (avx512f_getmant<mode><mask_name>): Ditto.
6533 (clz<mode>2<mask_name>): Ditto.
6534 (<mask_codefor>conflict<mode><mask_name>): Ditto.
6535 (*srcp14<mode>): Remove visibility.
6536 (*rsqrt14<mode>): Ditto.
6537 (*fma_fmsub_<mode>): Ditto.
6538 (*fma_fnmadd_<mode>): Ditto.
6539 (*avx512f_rndscale<mode>): Ditto.
6540 * config/i386/subst.md: New file.
6542 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6544 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6545 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6546 (atomic_load_explicit, atomic_exchange_explicit)
6547 (atomic_compare_exchange_strong_explicit)
6548 (atomic_compare_exchange_weak_explicit): Use __auto_type to
6549 declare variable initialized with PTR argument.
6551 2013-11-12 Jeff Law <law@redhat.com>
6553 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6554 backedge_seen_p. Set, use and pass it to children appropriately.
6555 (thread_through_normal_block): Similarly.
6556 (thread_across_edge): Similarly.
6558 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6559 memory references as volatile.
6560 (insert_trap_and_remove_trailing_statements): Fix comment.
6562 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
6565 * ira-costs.c (record_operand_costs): Check operands number for
6568 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6571 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6572 constraints that would allow DImode into the traditional Altivec
6573 registers, but cause undesirable code generation when loading 0 as
6575 (movdi_internal64): Likewise.
6576 (cmp<mode>_fpr): Do not use %x for CR register output.
6577 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6578 -mallow-upper-sf debug switches are used.
6580 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6582 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6583 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6584 Relocate prototypes from gimple.h.
6585 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
6586 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6588 * gimple.h: Move some prototypes to gimplify.h.
6589 (gimple_predicate, enum fallback, enum gimplify_status): Move to
6591 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6592 Relocate from gimpify.c.
6593 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6594 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6595 is_gimple_reg_rhs) Relocate from gimplify.c.
6596 * gimplify.c (mark_addressable): Move to gimple-expr.c.
6597 (gimple_seq_add_stmt_without_update): Move to gimple.c.
6598 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6599 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6600 is_gimple_reg_rhs): Move to gimple-expr.c.
6601 (should_carry_location_p): Move to gimple.c.
6602 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6604 (annotate_one_with_location, annotate_all_with_location_after,
6605 annotate_all_with_location): Move to gimple.c.
6606 (compare_case_labels, sort_case_labels,
6607 preprocess_case_label_vec_for_gimple): Move to gimple.c.
6608 (rhs_predicate_for): Make static.
6609 (gimplify_assign): Relocate from gimple.c.
6610 * gimple.c (gimplify_assign): Move to gimplify.c.
6611 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6612 annotate_one_with_location, annotate_all_with_location_after,
6613 annotate_all_with_location, compare_case_labels, sort_case_labels,
6614 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6615 * tree.h (unshare_expr, unshare_expr_without_location,
6616 mark_addressable): Move prototypes to gimplify.h.
6617 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6619 * asan.c: Include gimplify.h rather than gimple.h.
6620 * cfgloopmanip.c: Likewise.
6621 * cgraphunit.c: Likewise.
6622 * cilk-common.c: Likewise.
6623 * dwarf2out.c: Dont include gimple.h.
6624 * fold-const.c: Include gimplify.h rather than gimple.h.
6625 * function.c: Likewise.
6626 * gimple-fold.c: Likewise.
6627 * gimple-ssa-strength-reduction.c: Likewise.
6628 * graphite-clast-to-gimple.c: Likewise.
6629 * graphite-sese-to-poly.c: Likewise.
6630 * ipa-prop.c: Likewise.
6631 * ipa-split.c: Likewise.
6633 * langhooks.c: Dont include gimple.h.
6634 * loop-init.c: Include gimplify.h rather than gimple.h.
6635 * omp-low.c: Likewise.
6637 * stor-layout.c: Likewise.
6638 * targhooks.c: Likewise.
6639 * trans-mem.c: Likewise.
6640 * tree-affine.c: Likewise.
6641 * tree-cfg.c: Likewise.
6642 * tree-cfgcleanup.c: Likewise.
6643 * tree-complex.c: Likewise.
6644 * tree-if-conv.c: Likewise.
6645 * tree-inline.c: Likewise.
6646 * tree-iterator.c: Likewise.
6647 * tree-loop-distribution.c: Likewise.
6648 * tree-nested.c: Likewise.
6649 * tree-parloops.c: Likewise.
6650 * tree-predcom.c: Likewise.
6651 * tree-profile.c: Likewise.
6652 * tree-scalar-evolution.c: Likewise.
6653 * tree-sra.c: Likewise.
6654 * tree-ssa-address.c: Likewise.
6655 * tree-ssa-ccp.c: Likewise.
6656 * tree-ssa-dce.c: Likewise.
6657 * tree-ssa-forwprop.c: Likewise.
6658 * tree-ssa-ifcombine.c: Likewise.
6659 * tree-ssa-loop-im.c: Likewise.
6660 * tree-ssa-loop-ivopts.c: Likewise.
6661 * tree-ssa-loop-manip.c: Likewise.
6662 * tree-ssa-loop-niter.c: Likewise.
6663 * tree-ssa-loop-prefetch.c: Likewise.
6664 * tree-ssa-loop-unswitch.c: Likewise.
6665 * tree-ssa-math-opts.c: Likewise.
6666 * tree-ssa-phiopt.c: Likewise.
6667 * tree-ssa-phiprop.c: Likewise.
6668 * tree-ssa-pre.c: Likewise.
6669 * tree-ssa-propagate.c: Likewise.
6670 * tree-ssa-reassoc.c: Likewise.
6671 * tree-ssa-sccvn.c: Likewise.
6672 * tree-ssa-strlen.c: Likewise.
6673 * tree-ssa.c: Likewise.
6674 * tree-switch-conversio: Likewise.n.c
6675 * tree-tailcall.c: Likewise.
6676 * tree-vect-data-refs.c: Likewise.
6677 * tree-vect-generic.c: Likewise.
6678 * tree-vect-loop-manip.c: Likewise.
6679 * tree-vect-loop.c: Likewise.
6680 * tree-vect-patterns.c: Likewise.
6681 * tree-vect-stmts.c: Likewise.
6683 * value-prof.c: Likewise.
6684 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6685 * config/alpha/alpha.c: Likewise.
6686 * config/darwin.c: Likewise.
6687 * config/i386/i386.c: Likewise.
6688 * config/ia64/ia64.c: Likewise.
6689 * config/mep/mep.c: Likewise.
6690 * config/mips/mips.c: Likewise.
6691 * config/rs6000/rs6000.c: Likewise.
6692 * config/s390/s390.c: Likewise.
6693 * config/sh/sh.c: Likewise.
6694 * config/sparc/sparc.c: Likewise.
6695 * config/spu/spu.c: Likewise.
6696 * config/stormy16/stormy16.c: Likewise.
6697 * config/tilegx/tilegx.c: Likewise.
6698 * config/tilepro/tilepro.c: Likewise.
6699 * config/xtensa/xtensa.c: Likewise.
6701 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6703 * tree.c (grow_tree_vec_stat): New function ...
6704 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6705 and macro front-end.
6707 2013-11-12 Marek Polacek <polacek@redhat.com>
6709 * final.c (update_alignments): Initialize label to NULL_RTX.
6711 2013-11-12 Jeff Law <law@redhat.com>
6713 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6714 (insert_trap_and_remove_trailing_statements): New argument OP which
6715 is the NULL pointer. Emit the trap after the load/store through
6716 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6717 when trivial to do so.
6718 (isolate_path): Corresponding changes.
6719 (gimple_ssa_isolate_erroneous_path): Likewise.
6721 2013-11-12 Teresa Johnson <tejohnson@google.com>
6722 Jan Hubicka <jh@suse.cz>
6724 * predict.c (drop_profile): New function.
6725 (handle_missing_profiles): Ditto.
6726 (counts_to_freqs): Don't overwrite estimated frequencies
6727 when function has no profile counts.
6728 * predict.h (handle_missing_profiles): Declare.
6729 * tree-inline.c (freqs_to_counts): New function.
6730 (copy_cfg_body): Invoke freqs_to_counts as needed.
6731 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6733 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6736 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6738 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6740 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6743 * config/i386/i386.c (ix86_option_override_internal): Check
6744 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6745 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6746 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6747 MASK_AVX256_SPLIT_UNALIGNED_STORE.
6749 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6750 Clear m_COREI7_AVX and update comments.
6751 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6753 2013-11-12 Martin Jambor <mjambor@suse.cz>
6755 PR rtl-optimization/10474
6756 * ira.c (interesting_dest_for_shprep): New function.
6757 (split_live_ranges_for_shrink_wrap): Likewise.
6758 (find_moveable_pseudos): Move calculation of dominance info,
6759 df_analysios and the final anlyses to...
6760 (ira): ...here, call split_live_ranges_for_shrink_wrap.
6762 2013-11-12 Bin Cheng <bin.cheng@arm.com>
6764 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6765 Handle type conversion.
6767 2013-11-11 Martin Liska <marxin.liska@gmail.com>
6768 Jan Hubicka <jh@suse.cz>
6770 * cgraph.c (dump_cgraph_node): Profile dump added.
6771 * cgraph.h (struct cgraph_node): New time profile variable added.
6772 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6773 * gcov-io.h (gcov_type): New profiler type introduced.
6774 * ipa-profile.c (lto_output_node): Streaming for time profile added.
6775 (input_node): Time profiler is read from LTO stream.
6776 * predict.c (maybe_hot_count_p): Hot prediction changed.
6777 * profile.c (instrument_values): New case for time profiler added.
6778 (compute_value_histograms): Read of time profile.
6779 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6780 * tree-profile.c (init_ic_make_global_vars): Time profiler
6782 (gimple_init_edge_profiler): TP function instrumentation.
6783 (gimple_gen_time_profiler): New.
6784 * value-prof.c (gimple_add_histogram_value): Support for time profiler
6786 (dump_histogram_value): TP type added to dumps.
6787 (visit_hist): More sensitive check that takes TP into account.
6788 (gimple_find_values_to_profile): TP instrumentation.
6789 * value-prof.h (hist_type): New histogram type added.
6790 (struct histogram_value_t): Pointer to struct function added.
6791 * libgcc/Makefile.in: New GCOV merge function for TP added.
6792 * libgcov.c: function_counter variable introduced.
6793 (_gcov_merge_time_profile): New.
6794 (_gcov_time_profiler): New.
6796 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6797 Jeff Law <law@redhat.com>
6799 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6800 ao_ref_init_from_ptr_and_size for builtins.
6802 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6803 H.J. Lu <hongjiu.lu@intel.com>
6806 * config/i386/x86-tune.def
6807 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6808 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6809 * config/i386/i386.h
6810 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6811 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6812 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6813 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6814 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6815 misaligned_prologue_used. Check that
6816 desired_aling <= epilogue_size_needed.
6818 2013-11-11 Cong Hou <congh@google.com>
6820 PR tree-optimization/59050
6821 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6823 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6826 * expmed.c (emit_store_flag): Fail for const-const comparison.
6828 2013-11-11 Tristan Gingold <gingold@adacore.com>
6829 Eric Botcazou <ebotcazou@adacore.com>
6831 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6832 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6833 * tree.def (CONSTRUCTOR): Likewise.
6834 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6835 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6836 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6838 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6840 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6843 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6845 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6848 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6850 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6852 2013-11-08 Jeff Law <law@redhat.com>
6854 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6855 threading paths first, then perform PHI node checks if applicable.
6857 2013-11-10 Karlson2k <k2k@narod.ru>
6858 Kai Tietz <ktietz@redhat.com>
6861 * configure.ac: Adding for exported symbols check
6862 and for rdynamic-check executable-extension.
6863 * configure: Regenerated.
6865 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6867 * mode-switching.c (optimize_mode_switching): Mark block as
6868 nontransparent, if last_mode at block exit is different from no_mode.
6870 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6872 * function.c (NAME__MAIN): Move to...
6873 * cfgexpand.c (NAME__MAIN): ...here.
6875 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6877 * target.def (can_use_doloop_p): New hook.
6878 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6879 * doc/tm.texi: Regenerate.
6880 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6881 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6882 * hooks.c (hook_bool_dint_dint_uint_true): New function.
6883 * targhooks.h (can_use_doloop_if_innermost): Declare.
6884 * targhooks.c (can_use_doloop_if_innermost): New function.
6885 * target.h: Include double-int.h.
6886 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6887 Remove iteration count, maximum iteration count, loop depth and
6888 enter-at-top inputs from doloop_begin and doloop_end.
6889 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6891 * config/arc/arc.c (arc_can_use_doloop_p): New function.
6892 (TARGET_CAN_USE_DOLOOP_P): Define.
6893 * config/arm/thumb2.md (doloop_end): Update for new interface.
6894 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6895 * config/bfin/bfin.md (doloop_end): Update for new interface.
6896 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6897 (TARGET_CAN_USE_DOLOOP_P): Define.
6898 * config/c6x/c6x.md (doloop_end): Update for new interface.
6899 * config/ia64/ia64.md (doloop_end): Update for new interface.
6900 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6901 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6903 * config/mep/mep.c (mep_emit_doloop): Likewise.
6904 (TARGET_CAN_USE_DOLOOP_P): Define.
6905 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6906 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6907 * config/s390/s390.md (doloop_end): Update for new interface.
6908 * config/sh/sh.md (doloop_end): Likewise.
6909 * config/spu/spu.md (doloop_end): Likewise.
6910 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6911 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6912 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6913 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6914 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6915 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6917 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6919 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
6922 * doc/extend.texi: Move Cilk Plus Builtins node before Other
6925 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
6926 Joseph Myers <joseph@codesourcery.com>
6928 * ginclude/stdatomic.h: New file.
6929 * Makefile.in (USER_H): Add stdatomic.h.
6931 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6933 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6936 2013-11-08 Jeff Law <law@redhat.com>
6938 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6939 * tree-ssa-threadupdate.c (delete_thread_path): New function.
6940 (ssa_redirect_edges, thread_block_1): Use it.
6941 (thread_through_loop_header, mark_threaded_blocks): Likewise.
6942 (thread_through_all_blocks, register_jump_thread): Likewise.
6943 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6945 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6947 * config/arm/aarch-common.c
6948 (search_term): New typedef.
6949 (shift_rtx_costs): New array.
6950 (arm_rtx_shift_left_p): New.
6951 (arm_find_sub_rtx_with_search_term): Likewise.
6952 (arm_find_sub_rtx_with_code): Likewise.
6953 (arm_early_load_addr_dep): Add sanity checking.
6954 (arm_no_early_alu_shift_dep): Likewise.
6955 (arm_no_early_alu_shift_value_dep): Likewise.
6956 (arm_no_early_mul_dep): Likewise.
6957 (arm_no_early_store_addr_dep): Likewise.
6959 2013-11-08 Richard Biener <rguenther@suse.de>
6961 PR tree-optimization/59047
6962 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6964 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
6966 * common.opt (fcheck-pointer-bounds): Move to ...
6967 * c-family/c.opt: ... here.
6968 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6969 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6970 * langhooks.h (lang_hooks): Remove chkp_supported field.
6971 * toplev.c (process_options): Remove chkp_supported check.
6973 2013-11-08 Richard Biener <rguenther@suse.de>
6975 PR tree-optimization/59038
6976 PR tree-optimization/58955
6977 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6978 previous change. Handle known dependences correctly.
6980 2013-11-08 Tom de Vries <tom@codesourcery.com>
6982 * config/rs6000/t-xilinx: Remove duplicate contents.
6984 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6985 Joseph Myers <joseph@codesourcery.com>
6987 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6988 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6989 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6990 (struct tree_base): Add atomic_flag field.
6991 * tree.h (TYPE_ATOMIC): New accessor macro.
6992 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6993 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6994 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6995 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6996 * tree.c (set_type_quals): Set TYPE_ATOMIC.
6997 (find_atomic_core_type): New function.
6998 (build_qualified_type): Adjust alignment for qualified types.
6999 (build_atomic_base): New function
7000 (build_common_tree_nodes): Build atomicQI_type_node,
7001 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
7003 * print-tree.c (print_node): Print atomic qualifier.
7004 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
7005 * target.def (atomic_assign_expand_fenv): New hook.
7006 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
7007 * doc/tm.texi: Regenerate.
7008 * targhooks.c (default_atomic_assign_expand_fenv): New function.
7009 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
7010 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
7011 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
7013 * config/i386/i386.c (enum ix86_builtins): Add
7014 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
7015 IX86_BUILTIN_FNCLEX.
7016 (bdesc_special_args): Add __builtin_ia32_fnstenv,
7017 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
7018 (ix86_expand_builtin): Handle the new built-in functions.
7019 (ix86_atomic_assign_expand_fenv): New function.
7020 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
7021 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
7022 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
7023 (fnstenv, fldenv, fnstsw, fnclex): New insns.
7025 2013-11-07 Steve Ellcey <sellcey@mips.com>
7027 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
7028 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
7029 (MULTILIB_DIRNAMES): Add fp64 directory.
7030 (MULTILIB_EXCEPTIONS): Add new exclusions.
7032 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
7034 * gimplify.c (gimple_regimplify_operands): Do not set
7036 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
7037 (rewrite_close_phi_out_of_ssa): Same.
7038 (rewrite_phi_out_of_ssa): Same.
7039 (rewrite_degenerate_phi): Same.
7040 (handle_scalar_deps_crossing_scop_limits): Same.
7041 * tree-if-conv.c (predicate_scalar_phi): Same.
7042 * tree-parloops.c (create_loads_for_reductions): Same.
7043 (create_final_loads_for_reduction): Same.
7044 (create_loads_and_stores_for_name): Same.
7045 (transform_to_exit_first_loop): Same.
7046 (create_parallel_loop): Same.
7047 * tree-ssa-loop-im.c
7048 (move_computations_dom_walker::before_dom_children): Same.
7049 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
7050 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
7051 * tree-ssa-propagate.c (substitute_and_fold): Same.
7052 * tree-vect-loop.c (vect_finalize_reduction): Same.
7053 * tree-vect-stmts.c (vectorizable_call): Same.
7055 2013-11-07 Mike Stump <mikestump@comcast.net>
7057 * config/pdp11/pdp11.c: Include dbxout.h.
7058 * config/picochip/picochip.c: Likewise.
7060 2013-11-07 Cong Hou <congh@google.com>
7062 PR tree-optimization/56764
7063 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7064 Combine alias checks if it is possible to amortize the runtime
7065 overhead. Return the number of alias checks after merging.
7066 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7067 Use the function vect_create_cond_for_alias_checks () to check
7068 the number of alias checks.
7070 2013-11-07 Jeff Law <law@redhat.com>
7072 * varpool.c (ctor_for_folding): Fix typo in comment.
7074 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
7076 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
7077 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
7079 2013-11-07 Jeff Law <law@redhat.com>
7081 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
7083 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
7084 No longer check if we have __builtin_trap, assume it's available.
7086 2013-11-07 Diego Novillo <dnovillo@google.com>
7088 * attribs.c (lookup_scoped_attribute_spec): Make static.
7089 (get_attribute_namespace): Likewise.
7090 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
7091 (validate_arglist): Move earlier in the file. Make static.
7092 (expand_stack_restore): Move from stmt.c
7093 (expand_stack_save): Move from stmt.c
7094 (rewrite_call_expr_array): Move earlier in the file.
7095 (rewrite_call_expr_valist): Likewise.
7096 * cfgexpand.c: Include hard-reg-set.h before tree.h
7099 (expand_asm_loc): Move from stmt.c.
7100 (n_occurrences): Move from stmt.c.
7101 (check_operand_nalternatives): Move from stmt.c.
7102 (tree_conflicts_with_clobbers_p): Move from stmt.c.
7103 (expand_asm_operands): Move from stmt.c
7104 (expand_asm_stmt): Move from stmt.c
7105 (expand_computed_goto): Move from stmt.c
7106 (expand_goto): Move from stmt.c
7107 (expand_null_return_1): Move from stmt.c
7108 (expand_null_return): Move from stmt.c
7109 (expand_value_return): Move from stmt.c
7110 (expand_return): Move from stmt.c
7111 (expand_main_function): Move from function.c
7112 (stack_protect_prologue): Move from function.c
7113 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
7114 (build_function_decl_skip_args): Move from tree.c.
7115 * explow.c (tree_expr_size): Move from tree.c.
7116 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
7117 (fields_length): Move from tree.c.
7118 * fold-const.c (size_low_cst): Move from tree.c.
7119 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
7120 (tree_expr_nonzero_p): Make static. Move earlier in the file.
7121 (fold_build3_initializer_loc): Remove.
7122 (tree_invalid_nonnegative_warnv_p): Make static.
7123 * function.c (expand_main_function): Move to cfgexpand.c.
7124 (stack_protect_prologue): Move to cfgexpand.c.
7125 (set_insn_locations): Move earlier in the file.
7126 * gimple-fold.c: Include langhooks.h.
7127 (truth_type_for): Move from tree.c.
7128 * print-tree.c (print_vec_tree): Remove.
7129 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
7130 (expand_goto): Move to cfgexpand.c.
7131 (n_occurrences): Move to cfgexpand.c.
7132 (expand_asm_loc): Move to cfgexpand.c
7133 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
7134 (expand_asm_operands): Move to cfgexpand.c.
7135 (expand_asm_stmt): Move to cfgexpand.c.
7136 (check_operand_nalternatives): Move to cfgexpand.c
7137 (expand_null_return): Move to cfgexpand.c.
7138 (expand_value_return): Move to cfgexpand.c.
7139 (expand_null_return_1): Move to cfgexpand.c.
7140 (expand_return): Move to cfgexpand.c.
7141 (expand_stack_save): Move to builtins.c.
7142 (expand_stack_restore): Move to builtins.c
7143 * symtab.c: Include output.h.
7144 (decl_assembler_name_hash): Move from tree.c.
7145 (decl_assembler_name_equal): Move from tree.c.
7146 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
7147 * tree-eh.c (in_array_bounds_p): Move from tree.c.
7148 (range_in_array_bounds_p): Move from tree.c.
7149 * tree-object-size.c (fini_object_sizes): Make static.
7150 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
7151 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
7152 * tree.c (decl_assembler_name_equal): Move to symtab.c.
7153 (tree_expr_size): Move to explow.c.
7154 (decl_assembler_name_hash): Move to symtab.c.
7155 (real_twop): Remove.
7156 (tree_expr_size): Move to explow.c.
7157 (stabilize_reference_1): Move earlier in the file. Make static.
7158 (omp_remove_redundant_declare_simd_attrs): Remove.
7159 (simple_cst_list_equal): Move earlier in the file. Make static.
7160 (size_low_cst): Move to fold-const.c.
7161 (build_type_no_quals): Remove.
7162 (build_function_type_skip_args): Move to cgraphclones.c.
7163 (build_function_decl_skip_args): Move to cgraphclones.c.
7164 (in_array_bounds_p): Move to tree-eh.c.
7165 (range_in_array_bounds_p): Move to tree-eh.c.
7166 (truth_type_for): Move to gimple-fold.c.
7167 (list_equal_p): Remove.
7168 * tree.h (decl_assembler_name_equal): Remove.
7169 (decl_assembler_name_hash): Remove.
7170 (truth_type_for): Remove.
7171 (build_type_no_quals): Remove.
7172 (build_function_decl_skip_args): Remove.
7173 (in_array_bounds_p): Remove.
7174 (range_in_array_bounds_p): Remove.
7175 (size_low_cst): Remove.
7176 (omp_remove_redundant_declare_simd_attrs): Remove.
7177 (tree_expr_size): Remove.
7178 (fields_length): Remove.
7179 (stabilize_reference_1): Remove.
7180 (expand_goto): Remove.
7181 (expand_stack_save): Remove.
7182 (expand_stack_restore): Remove.
7183 (expand_return): Remove.
7184 (fold_build3_initializer_loc): Remove.
7185 (tree_expr_nonzero_p): Remove.
7186 (tree_invalid_nonnegative_warnv_p): Remove.
7187 (tree_expr_nonzero_warnv_p): Remove.
7188 (fold_builtin_snprintf_chk): Remove.
7189 (validate_arglist): Remove.
7190 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
7191 (simple_cst_list_equal): Remove.
7192 (real_twop): Remove.
7193 (expand_main_function): Remove.
7194 (stack_protect_prologue): Remove.
7195 (print_vec_tree): Remove.
7196 (lookup_scoped_attribute_spec): Remove.
7197 (get_attribute_namespace): Remove.
7198 (expand_computed_goto): Remove.
7199 (expand_asm_stmt): Remove.
7200 (list_equal_p): Remove.
7201 (ssa_name_nonnegative_p): Remove.
7202 (fini_object_sizes): Remove.
7203 (addr_expr_of_non_mem_decl_p): Remove.
7204 (is_tm_safe_or_pure): Move to trans-mem.c.
7205 (more_const_call_expr_args_p): Remove.
7206 (save_vtable_map_decl): Remove.
7208 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7210 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
7211 linker plugins, too.
7213 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
7214 link to libgomp and its dependencies.
7215 * config/ia64/hpux.h (LIB_SPEC): Likewise.
7216 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7217 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7218 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
7220 2013-11-07 Jakub Jelinek <jakub@redhat.com>
7222 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
7223 (determine_value_range): Add loop argument. Use get_range_info to
7225 (bound_difference): Adjust caller.
7227 2013-11-07 Richard Biener <rguenther@suse.de>
7228 Jakub Jelinek <jakub@redhat.com>
7230 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
7231 latches from header PHI arguments from the latch edge.
7233 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
7236 * varasm.c (output_constant): Handle NULLPTR_TYPE.
7238 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
7240 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
7241 misaligned_prologue_used when it has been set.
7243 2013-11-07 Yury Gribov <y.gribov@samsung.com>
7244 Jakub Jelinek <jakub@redhat.com>
7247 * asan.c (get_mem_refs_of_builtin_call): Allow
7248 integer literals as addresses in instrumented builtins.
7250 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7252 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7253 Explain why plus_constant is not used.
7255 2013-11-07 Richard Biener <rguenther@suse.de>
7257 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
7258 (canonicalize_value): ... this. Also handle stripping of
7260 (get_value, set_lattice_value, get_value_for_expr): Adjust.
7261 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
7262 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
7264 2013-11-07 Richard Biener <rguenther@suse.de>
7266 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
7268 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
7271 * config/i386/i386.md (push peepholer/splitter): Use Pmode
7272 with stack_pointer_rtx.
7274 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7276 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
7277 using operand_equal_p.
7279 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7281 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
7282 * tree-affine.c (get_inner_reference_aff): Return base.
7283 * tree-affine.h (get_inner_reference_aff): Change prototype.
7285 2013-11-06 Tobias Burnus <burnus@net-b.de>
7287 * doc/invoke.texi (Wdate-time): Fix typo.
7289 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7291 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
7292 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
7293 fp_arith_reg_operand instead of arith_reg_operand.
7295 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7297 * config/sh/sh.md (adddi3): Remove empty constraints.
7298 Remove can_create_pseudo_p and arith_reg_operand check.
7299 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
7300 Split before reload.
7302 2013-11-06 Jeff Law <law@redhat.com>
7303 Tom Tromey <tromey@redhat.com>
7305 * gdbinit.in: Disable strict type checking.
7307 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
7309 * tree-pass.h (make_pass_live_range_shrinkage): New external.
7310 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
7311 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
7312 (rest_of_handle_live_range_shrinkage): Ditto
7313 (class pass_live_range_shrinkage): Ditto.
7314 (pass_data_live_range_shrinkage): Ditto.
7315 (make_pass_live_range_shrinkage): Ditto.
7316 * sched-int.h (initialize_live_range_shrinkage): New prototype.
7317 (finish_live_range_shrinkage): Ditto.
7318 * sched-deps.c (create_insn_reg_set): Make void return value.
7319 * passes.def: Add pass_live_range_shrinkage.
7320 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
7321 * haifa-sched.c (live_range_shrinkage_p): New.
7322 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
7324 (rank_for_schedule): Add code for pressure relief through live
7326 (schedule_insn): Print more debug info.
7327 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
7328 through live range shrinkage.
7329 * doc/invoke.texi (-flive-range-shrinkage): New.
7330 * common.opt (flive-range-shrinkage): New.
7332 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
7335 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
7336 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
7337 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
7338 RTXes that return in AVX256 register.
7340 2013-11-06 Richard Biener <rguenther@suse.de>
7342 PR tree-optimization/58653
7343 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
7344 (prepare_initializers_chain): Adjust.
7346 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
7348 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
7349 (gimple_in_transaction): Use bb_in_transaction.
7350 * basic-block.h (bb_in_transaction): Relocate here and rename.
7351 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
7353 2013-11-06 Richard Biener <rguenther@suse.de>
7355 * tree.c (drop_tree_overflow): New function.
7356 * tree.h (drop_tree_overflow): Declare.
7357 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
7358 * tree-vrp.c (range_int_cst_singleton_p): Use
7359 is_overflow_infinity instead of testing TREE_OVERFLOW.
7360 (extract_range_from_assert): Likewise.
7361 (zero_nonzero_bits_from_vr): Likewise.
7362 (extract_range_basic): Likewise.
7363 (register_new_assert_for): Use drop_tree_overflow.
7364 (vrp_visit_phi_node): Likewise.
7366 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
7368 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
7369 checking for leaf functions without dynamic stack allocation.
7370 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7371 (ia64_expand_prologue): Likewise.
7372 * config/mips/mips.c (mips_expand_prologue): Likewise.
7373 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7374 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7375 (sparc_flat_expand_prologue): Likewise.
7377 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
7379 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7380 (__ST3_LANE_FUNC): Likewise.
7381 (__ST4_LANE_FUNC): Likewise.
7383 2013-11-06 Nick Clifton <nickc@redhat.com>
7385 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7386 name returned by msp430_mcu_name.
7387 (LIB_SPEC): If a -T option has not been specified then set a
7388 default, mcu-specific, linker script.
7389 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7390 * config/msp430/msp430.c (msp430x_names): Likewise.
7391 Alpha sort the names for ease of comparison.
7392 (msp430_mcu_name): New function: Returns a string suitable for
7393 use as a C preprocessor symbol based upon the name of the MCU
7395 (msp430_option_override): Accept msp430x and msp430xv2 as generic
7397 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7399 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7400 unless it is the last part of a spec substring.
7401 * doc/invoke.texi (Spec Files): Document space insertion
7404 2013-11-06 Christian Bruel <christian.bruel@st.com>
7406 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7407 Factorize probabilities, Use adjust_address instead of
7408 adjust_automodify_address when possible. Enable for optimize.
7409 (sh_expand_strlen): New function.
7410 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7411 * config/sh/sh.md (strlensi): New pattern.
7412 (UNSPEC_BUILTIN_STRLEN): Define.
7414 2013-11-06 Jakub Jelinek <jakub@redhat.com>
7417 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7418 (expand_assignment): If *bitpos is negative, set *offset
7419 and adjust *bitpos, so that it is not negative.
7421 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7423 * config/i386/bdver3.md : Added two additional decoder units
7424 to support issue rate of 4 and remodeled vector unit.
7425 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7426 architectures is set to 4.
7427 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7428 lookahead is set to 4 for BD architectures.
7430 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7432 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7433 Remove restriction against use of VSX instructions when generating
7434 code for little endian mode.
7436 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7438 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7439 for both big and little endian.
7440 (mulv8hi3): Swap input operands for merge high and merge low
7441 instructions for little endian.
7443 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7445 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7446 define_insn to define_expand that uses even patterns for big
7447 endian and odd patterns for little endian.
7448 (vec_widen_smult_even_v16qi): Likewise.
7449 (vec_widen_umult_even_v8hi): Likewise.
7450 (vec_widen_smult_even_v8hi): Likewise.
7451 (vec_widen_umult_odd_v16qi): Likewise.
7452 (vec_widen_smult_odd_v16qi): Likewise.
7453 (vec_widen_umult_odd_v8hi): Likewise.
7454 (vec_widen_smult_odd_v8hi): Likewise.
7455 (altivec_vmuleub): New define_insn.
7456 (altivec_vmuloub): Likewise.
7457 (altivec_vmulesb): Likewise.
7458 (altivec_vmulosb): Likewise.
7459 (altivec_vmuleuh): Likewise.
7460 (altivec_vmulouh): Likewise.
7461 (altivec_vmulesh): Likewise.
7462 (altivec_vmulosh): Likewise.
7464 2013-11-05 Mike Stump <mikestump@comcast.net>
7466 * Makefile.in (mostlyclean): Remove c-family objects.
7468 2013-11-05 Ian Lance Taylor <iant@google.com>
7470 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7471 If possible, add .cfi directives to record change to bx.
7472 * config/i386/i386.c (ix86_emit_cfi): New function.
7473 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7475 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
7477 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7478 immediately after a label for a tablejump pattern.
7480 * config/arm/arm.c (is_jump_table): Remove.
7481 (create_fix_barrier): Use tablejump_p instead.
7482 (arm_reorg): Likewise.
7483 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7484 (thumb2_output_casesi): Likewise.
7485 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7486 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7487 casesi_shift_media, casesi_load_media): Likewise.
7488 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7489 * config/microblaze/microblaze.md: Likewise.
7491 2013-11-05 Tobias Burnus <burnus@net-b.de>
7493 * doc/invoke.texi (-Wdate-time): Document.
7495 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
7497 * double-int.c (lshift_double, rshift_double): Remove
7498 SHIFT_COUNT_TRUNCATED handling.
7500 2013-11-05 Jeff Law <law@redhat.com>
7502 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7503 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7504 * gimple-ssa-isolate-paths.c: New file.
7505 * gimple.c (check_loadstore): New function.
7506 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7507 Verify OP is in the argument list and the argument corresponding
7508 to OP is a pointer type. Use operand_equal_p rather than
7509 pointer equality when testing if OP is on the nonnull list.
7510 Use check_loadstore rather than count_ptr_derefs. Handle
7511 GIMPLE_RETURN statements.
7512 * tree-vrp.c (infer_nonnull_range): Remove.
7513 * gimple.h (infer_nonnull_range): Declare.
7514 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7515 * passes.def: Add pass_isolate_erroneous_paths.
7516 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7517 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7518 * tree-ssa.c (struct count_ptr_d): Remove.
7519 (count_ptr_derefs, count_uses_and_derefs): Remove.
7520 * tree-ssa.h (count_uses_and_derefs): Remove.
7522 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7524 PR rtl-optimization/58997
7525 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7526 get_iv_value to be in iv->mode rather than iv->extend_mode.
7527 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
7528 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7529 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7532 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7534 * gimple.h: Move some prototypes to gimple-expr.h and add to include
7536 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7537 Move to gimple-expr.h.
7538 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
7539 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7540 is_gimple_id, virtual_operand_p, is_gimple_addressable,
7541 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7543 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7544 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7545 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7546 is_gimple_address, is_gimple_invariant_address,
7547 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7548 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7549 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7550 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7551 gimple_decl_printable_name, useless_type_conversion_p,
7552 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7554 * gimple-expr.c: New File.
7555 (useless_type_conversion_p, gimple_set_body, gimple_body,
7556 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7557 gimple_can_coalesce_p, extract_ops_from_tree_1,
7558 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7559 is_gimple_address, is_gimple_invariant_address,
7560 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7561 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7562 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7563 is_gimple_mem_ref_addr): Relocate here.
7564 * Makefile.in (OBJS): Add gimple-expr.o.
7566 2013-11-05 David Malcolm <dmalcolm@redhat.com>
7568 * gengtype-parse.c (struct_field_seq): Support empty structs.
7570 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7572 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7574 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7576 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7578 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7580 (LONG_DOUBLE_TYPE_SIZE): New define.
7581 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7583 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
7586 * doc/extend.texi [visibility ("visibility_type")]: Add example
7587 about visibility attribute on namespace declaration.
7589 2013-11-05 Richard Biener <rguenther@suse.de>
7592 * passes.def (all_passes): Start with pass_fixup_cfg again.
7594 2013-11-05 Richard Biener <rguenther@suse.de>
7596 PR tree-optimization/58955
7597 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7600 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7602 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7604 (vec_pack_ufix_trunc_v2df): Likewise.
7606 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7609 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7610 pattern, instead of word_mode.
7612 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7614 (set_storage_via_setmem): Likewise.
7616 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7618 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7619 gimple.h and the rest of the condition in eliminate_build.
7620 (eliminate_build): Call new routine.
7621 * gimple.h (phi_ssa_name_p): Delete.
7623 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7625 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7626 case of no prefix and reserving zero slots, because when that's the
7627 case we'll never get here.
7628 * vec.h (va_heap::reserve): Don't try and handle
7629 vec_prefix::calculate_allocation returning zero because that should
7632 2013-11-05 Richard Biener <rguenther@suse.de>
7635 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7636 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7637 process trailing array detection before diving into the
7638 view-converted object (and possibly apply some extra offset).
7640 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7642 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7644 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7646 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7648 PR tree-optimization/58958
7649 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7650 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7652 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7654 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7655 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7657 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7659 PR tree-optimization/58984
7660 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7661 set *SIZE_P if non-NULL on success.
7662 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7664 (ipcp_transform_function): Likewise. Punt if size of access
7665 is different from TYPE_SIZE on v->value's type.
7667 2013-11-05 Tobias Burnus <burnus@net-b.de>
7669 * doc/invoke.texi (-fopenmp-simd): Document new option.
7670 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7671 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7672 * tree.c (attribute_value_equal): Ditto.
7674 2013-11-04 Wei Mi <wmi@google.com>
7676 * sched-rgn.c (add_branch_dependences): Keep insns in
7677 a SCHED_GROUP at the end of BB to remain their location.
7679 2013-11-04 Wei Mi <wmi@google.com>
7681 * config/i386/i386.c (memory_address_length): Extract a part
7682 of code to rip_relative_addr_p.
7683 (rip_relative_addr_p): New Function.
7684 (ix86_macro_fusion_p): Ditto.
7685 (ix86_macro_fusion_pair_p): Ditto.
7686 * config/i386/i386.h: Add new tune features about macro-fusion.
7687 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7688 * doc/tm.texi: Generated.
7689 * doc/tm.texi.in: Ditto.
7690 * haifa-sched.c (try_group_insn): New Function.
7691 (group_insns_for_macro_fusion): Ditto.
7692 (sched_init): Call group_insns_for_macro_fusion.
7693 * target.def: Add two hooks: macro_fusion_p and
7694 macro_fusion_pair_p.
7696 2013-11-04 Kostya Serebryany <kcc@google.com>
7698 Update to match the changed asan API.
7699 * asan.c (asan_function_start): New function.
7700 (asan_emit_stack_protection): Update the string stored in the
7701 stack red zone to match new API. Store the PC of the current
7702 function in the red zone.
7703 (asan_global_struct): Update the __asan_global definition to match
7705 (asan_add_global): Ditto.
7706 * asan.h (asan_function_start): New prototype.
7707 * final.c (final_start_function): Call asan_function_start.
7708 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7711 2013-11-04 Wei Mi <wmi@google.com>
7713 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7714 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7715 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7716 (ix86_issue_rate): Ditto.
7717 (ix86_adjust_cost): Ditto.
7718 (ia32_multipass_dfa_lookahead): Ditto.
7719 (ix86_sched_init_global): Ditto.
7720 (get_builtin_code_for_version): Ditto.
7721 * config/i386/i386.h (enum target_cpu_default): Ditto.
7722 (enum processor_type): Ditto.
7723 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7725 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7727 PR rtl-optimization/58967
7728 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7729 !lra_in_progress for mode sizes bigger word.
7731 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7733 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7734 arguments to merge instruction for little endian.
7735 (vec_widen_umult_lo_v16qi): Likewise.
7736 (vec_widen_smult_hi_v16qi): Likewise.
7737 (vec_widen_smult_lo_v16qi): Likewise.
7738 (vec_widen_umult_hi_v8hi): Likewise.
7739 (vec_widen_umult_lo_v8hi): Likewise.
7740 (vec_widen_smult_hi_v8hi): Likewise.
7741 (vec_widen_smult_lo_v8hi): Likewise.
7743 2013-11-04 Ian Lance Taylor <iant@google.com>
7745 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7746 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7747 builtins that take pointers.
7748 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7749 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7750 (run_gcc): Pass -fnon-call-exceptions.
7752 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7754 * optabs.c (expand_vec_perm): Revert one incorrect line from
7757 PR tree-optimization/58978
7758 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7759 use_stmt by single_imm_use directly. Only call single_imm_use
7762 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7764 PR rtl-optimization/58968
7765 * lra-spills.c (return_regno_p): New function.
7766 (lra_final_code_change): Use it.
7768 2013-11-04 Joseph Myers <joseph@codesourcery.com>
7770 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7771 * target.def (float_exceptions_rounding_supported_p): New hook.
7772 * targhooks.c (default_float_exceptions_rounding_supported_p): New
7774 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7775 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7777 * doc/tm.texi: Regenerate.
7778 * config.gcc (powerpc*-*-linux*): Set extra_objs.
7779 * config/rs6000/rs6000-linux.c: New file.
7780 * config/rs6000/rs6000-protos.h
7781 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7782 * config/rs6000/linux.h
7783 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7784 * config/rs6000/linux64.h
7785 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7786 * config/rs6000/t-linux (rs6000-linux.o): New rule.
7787 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7789 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7791 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7792 Replace the define_insn_and_split with a define_insn and two
7793 define_splits, with the split after reload re-permuting the source
7794 register to its original value.
7795 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7796 (*vsx_le_perm_store_v8hi): Likewise.
7797 (*vsx_le_perm_store_v16qi): Likewise.
7799 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7801 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7804 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7806 PR tree-optimization/58946
7807 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7808 bbs with bbinfo[idx].op != NULL before all blocks with
7809 bbinfo[idx].op == NULL.
7811 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7813 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7814 (avr_dump_double_int_hex): Likewise.
7815 (avr_log_vadump): Remove %D and %X handling.
7816 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7817 (avr_map_op_t): Change map from double_int to unsigned int.
7818 (avr_map_op): Update accordingly.
7819 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7820 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7821 unsigned ints rather than double_ints.
7823 2013-11-03 Marek Polacek <polacek@redhat.com>
7825 Implement -fsanitize=vla-bound.
7826 * opts.c (common_handle_option): Handle vla-bound.
7827 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7828 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7829 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7831 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7833 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7836 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7838 * config/i386/constraints.md (Ts, Tv): New address constrains.
7839 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7840 constraint for address_no_seg_operand.
7841 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7842 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7843 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7844 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7845 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7846 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7847 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7848 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7849 constraint for vsib_address_operand.
7851 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7853 * gcse.c (pre_delete): Remove references to regmove from comments.
7854 * recog.c: (validate_replace_rtx_1): Likewise.
7855 * config/rl78/rl78.c: Likewise.
7856 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7857 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7858 * common/config/mmix/mmix-common.c: Likewise.
7860 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7862 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7863 * gimplify.c (gimplify_compound_lval): Likewise.
7864 * graphite-clast-to-gimple.c (gloog): Likewise.
7865 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7866 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7867 (limit_scop); Likewise.
7868 (build_scops): Likewise.
7869 (dot_scop): Likewise.
7870 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7871 (build_scop_drs): Likewise.
7872 (insert_stmts): Likewise.
7873 (insert_out_of_ssa_copy): Likewise.
7874 (remove_phi): Likewise.
7875 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7876 * hw-doloop.c (discover_loop): Likewise.
7877 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7878 * tree-dfa.c (dump_enumerated_decls): Likewise.
7879 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7880 * tree-inline.c (tree_function_versioning): Likewise.
7881 * tree-loop-distribution.c (build_rdg): Likewise.
7882 (rdg_flag_vertex_and_dependent): Likewise.
7883 (distribute_loop): Likewise.
7884 * tree-parloops.c (loop_parallel_p): Likewise.
7885 (eliminate_local_variables): Likewise.
7886 (separate_decls_in_region): Likewise.
7887 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7888 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7889 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7890 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7891 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7892 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7893 (vectorizable_condition): Likewise.
7895 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
7897 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7898 * configure: Regenerate.
7899 * config/i386/i386.md (*movdi_internal): Change
7900 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7901 (*movdf_internal): Ditto.
7902 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7903 * config/i386/sse.md (vec_concatv2di): Output interunit movq
7904 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7906 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
7908 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7911 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7913 Automated part of renaming of symtab_node_base to symtab_node.
7915 Patch autogenerated by rename_symtab.py from
7916 https://github.com/davidmalcolm/gcc-refactoring-scripts
7917 revision 58bb219cc090b2f4516a9297d868c245495ee622
7918 with ChangeLog entry fixed up by hand.
7920 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7922 (cgraph_node_for_asm): Likewise.
7923 * cgraph.h (symtab_node_base): Likewise.
7924 (cgraph_node): Likewise.
7925 (varpool_node): Likewise.
7926 (is_a_helper <cgraph_node>::test): Likewise.
7927 (is_a_helper <varpool_node>::test): Likewise.
7928 (symtab_nodes): Likewise.
7929 (symtab_register_node): Likewise.
7930 (symtab_unregister_node): Likewise.
7931 (symtab_remove_node): Likewise.
7932 (symtab_get_node): Likewise.
7933 (symtab_node_for_asm): Likewise.
7934 (symtab_node_asm_name): Likewise.
7935 (symtab_node_name): Likewise.
7936 (symtab_insert_node_to_hashtable): Likewise.
7937 (symtab_add_to_same_comdat_group): Likewise.
7938 (symtab_dissolve_same_comdat_group_list): Likewise.
7939 (dump_symtab_node): Likewise.
7940 (debug_symtab_node): Likewise.
7941 (dump_symtab_base): Likewise.
7942 (verify_symtab_node): Likewise.
7943 (verify_symtab_base): Likewise.
7944 (symtab_used_from_object_file_p): Likewise.
7945 (symtab_alias_ultimate_target): Likewise.
7946 (symtab_resolve_alias): Likewise.
7947 (fixup_same_cpp_alias_visibility): Likewise.
7948 (symtab_for_node_and_aliases): Likewise.
7949 (symtab_nonoverwritable_alias): Likewise.
7950 (availability symtab_node_availability): Likewise.
7951 (symtab_semantically_equivalent_p): Likewise.
7952 (fixup_same_cpp_alias_visibility): Likewise.
7953 (symtab_prevail_in_asm_name_hash): Likewise.
7955 (varpool): Likewise.
7956 (varpool_first_variable): Likewise.
7957 (varpool_next_variable): Likewise.
7958 (varpool_first_static_initializer): Likewise.
7959 (varpool_next_static_initializer): Likewise.
7960 (varpool_first_defined_variable): Likewise.
7961 (varpool_next_defined_variable): Likewise.
7962 (cgraph_first_defined_function): Likewise.
7963 (cgraph_next_defined_function): Likewise.
7964 (cgraph_first_function): Likewise.
7965 (cgraph_next_function): Likewise.
7966 (cgraph_first_function_with_gimple_body): Likewise.
7967 (cgraph_next_function_with_gimple_body): Likewise.
7968 (symtab_alias_target): Likewise.
7969 (symtab_real_symbol_p): Likewise.
7970 (symtab_can_be_discarded): Likewise.
7971 * cgraphbuild.c (mark_address): Likewise.
7972 (mark_load): Likewise.
7973 (mark_store): Likewise.
7974 * cgraphunit.c (decide_is_symbol_needed): Likewise.
7976 (enqueue_node): Likewise.
7977 (referred_to_p): Likewise.
7978 (cgraph_process_same_body_aliases): Likewise.
7979 (analyze_functions): Likewise.
7980 (handle_alias_pairs): Likewise.
7981 (output_weakrefs): Likewise.
7982 (compile): Likewise.
7983 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7984 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7985 * ipa-prop.c (remove_described_reference): Likewise.
7986 (try_decrement_rdesc_refcount): Likewise.
7987 (ipa_edge_duplication_hook): Likewise.
7988 * ipa-ref.c (ipa_record_reference): Likewise.
7989 (ipa_maybe_record_reference): Likewise.
7990 (ipa_clone_ref): Likewise.
7991 (ipa_clone_references): Likewise.
7992 (ipa_clone_referring): Likewise.
7993 (ipa_find_reference): Likewise.
7994 (ipa_remove_stmt_references): Likewise.
7995 (ipa_clear_stmts_in_references): Likewise.
7996 * ipa-ref.h (symtab_node_base): Likewise.
7997 (ipa_ref): Likewise.
7998 (ipa_record_reference): Likewise.
7999 (ipa_maybe_record_reference): Likewise.
8000 (ipa_clone_references): Likewise.
8001 (ipa_clone_referring): Likewise.
8002 (ipa_clone_ref): Likewise.
8003 (ipa_find_reference): Likewise.
8004 (ipa_remove_stmt_references): Likewise.
8005 (ipa_clear_stmts_in_references): Likewise.
8006 * ipa-reference.c (ipa_reference_write_optimization_summary):
8008 * ipa.c (enqueue_node): Likewise.
8009 (process_references): Likewise.
8010 (walk_polymorphic_call_targets): Likewise.
8011 (symtab_remove_unreachable_nodes): Likewise.
8012 (address_taken_from_non_vtable_p): Likewise.
8013 (comdat_can_be_unshared_p_1): Likewise.
8014 (comdat_can_be_unshared_p): Likewise.
8015 (can_replace_by_local_alias): Likewise.
8016 (function_and_variable_visibility): Likewise.
8017 * is-a.h: Likewise (within example in comment).
8018 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
8019 (lto_symtab_encoder_encode): Likewise.
8020 (lto_symtab_encoder_delete_node): Likewise.
8021 (lto_symtab_encoder_in_partition_p): Likewise.
8022 (lto_set_symtab_encoder_in_partition): Likewise.
8023 (output_refs): Likewise.
8024 (compute_ltrans_boundary): Likewise.
8025 (output_symtab): Likewise.
8026 (input_node): Likewise.
8027 (input_ref): Likewise.
8028 (input_edge): Likewise.
8029 (input_cgraph_1): Likewise.
8030 (input_refs): Likewise.
8031 (output_cgraph_opt_summary): Likewise.
8032 (input_node_opt_summary): Likewise.
8033 (input_cgraph_opt_section): Likewise.
8034 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8036 * lto-streamer-out.c (lto_output): Likewise.
8037 (output_symbol_p): Likewise.
8038 (produce_symtab): Likewise.
8039 * lto-streamer.h (lto_encoder_entry): Likewise.
8040 (lto_free_function_in_decl_state_for_node): Likewise.
8041 (lto_symtab_encoder_encode): Likewise.
8042 (lto_symtab_encoder_delete_node): Likewise.
8043 (lto_symtab_encoder_in_partition_p): Likewise.
8044 (lto_set_symtab_encoder_in_partition): Likewise.
8045 (lto_symtab_encoder_lookup): Likewise.
8046 (lsei_node): Likewise.
8047 (lto_symtab_encoder_deref): Likewise.
8048 * symtab.c (symtab_hash): Likewise.
8049 (assembler_name_hash): Likewise.
8050 (symtab_nodes): Likewise.
8051 (hash_node): Likewise.
8052 (eq_node): Likewise.
8053 (hash_node_by_assembler_name): Likewise.
8054 (eq_assembler_name): Likewise.
8055 (insert_to_assembler_name_hash): Likewise.
8056 (unlink_from_assembler_name_hash): Likewise.
8057 (symtab_prevail_in_asm_name_hash): Likewise.
8058 (symtab_register_node): Likewise.
8059 (symtab_insert_node_to_hashtable): Likewise.
8060 (symtab_unregister_node): Likewise.
8061 (symtab_get_node): Likewise.
8062 (symtab_remove_node): Likewise.
8063 (symtab_initialize_asm_name_hash): Likewise.
8064 (symtab_node_for_asm): Likewise.
8065 (symtab_add_to_same_comdat_group): Likewise.
8066 (symtab_dissolve_same_comdat_group_list): Likewise.
8067 (symtab_node_asm_name): Likewise.
8068 (symtab_node_name): Likewise.
8069 (dump_symtab_base): Likewise.
8070 (dump_symtab_node): Likewise.
8071 (dump_symtab): Likewise.
8072 (debug_symtab_node): Likewise.
8073 (verify_symtab_base): Likewise.
8074 (verify_symtab_node): Likewise.
8075 (verify_symtab): Likewise.
8076 (symtab_used_from_object_file_p): Likewise.
8077 (symtab_node_availability): Likewise.
8078 (symtab_alias_ultimate_target): Likewise.
8079 (fixup_same_cpp_alias_visibility): Likewise.
8080 (symtab_resolve_alias): Likewise.
8081 (symtab_for_node_and_aliases): Likewise.
8082 (symtab_for_node_and_aliases): Likewise.
8083 (symtab_nonoverwritable_alias_1): Likewise.
8084 (symtab_nonoverwritable_alias): Likewise.
8085 (symtab_semantically_equivalent_p): Likewise.
8086 * value-prof.c (init_node_map): Likewise.
8087 * varasm.c (find_decl): Likewise.
8088 * varpool.c (varpool_node_for_asm): Likewise.
8089 (varpool_remove_unreferenced_decls): Likewise.
8091 2013-10-31 David Malcolm <dmalcolm@redhat.com>
8093 Manual part of renaming of symtab_node_base to symtab_node.
8095 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
8096 clashes with the preferred name for the base class.
8097 (const_symtab_node): Remove redundant typedef.
8099 2013-10-31 Jakub Jelinek <jakub@redhat.com>
8101 * optabs.c (expand_vec_perm): Avoid vector mode punning
8102 SUBREGs in SET_DEST.
8103 * expmed.c (store_bit_field_1): Likewise.
8104 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
8105 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
8106 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
8107 * config/i386/i386.c (ix86_expand_vector_move_misalign,
8108 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
8109 ix86_expand_sse_unpack, ix86_expand_args_builtin,
8110 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
8111 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
8112 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
8113 expand_vec_perm_vpshufb2_vpermq,
8114 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
8115 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
8116 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
8117 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
8120 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
8122 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
8123 Use gcc_unreachable for unhandled modes. Do not check results of
8124 expand_simple_binop. If not expanded to target, move the result.
8126 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
8127 Shiva Chen <shiva0217@gmail.com>
8129 * config.gcc (nds32*-*-*): Add nds32 target.
8130 * config/nds32/nds32.c: New file.
8131 * config/nds32/nds32.h: New file.
8132 * config/nds32/nds32.md: New file.
8133 * config/nds32/constants.md: New file.
8134 * config/nds32/constraints.md: New file.
8135 * config/nds32/iterators.md: New file.
8136 * config/nds32/nds32-doubleword.md: New file.
8137 * config/nds32/nds32-intrinsic.md: New file.
8138 * config/nds32/nds32_intrinsic.h: New file.
8139 * config/nds32/nds32-modes.def: New file.
8140 * config/nds32/nds32-multiple.md: New file.
8141 * config/nds32/nds32.opt: New file.
8142 * config/nds32/nds32-opts.h: New file.
8143 * config/nds32/nds32-protos.h: New file.
8144 * config/nds32/nds32-peephole2.md: New file.
8145 * config/nds32/pipelines.md: New file.
8146 * config/nds32/predicates.md: New file.
8147 * config/nds32/t-mlibs: New file.
8148 * common/config/nds32: New directory and files.
8150 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
8151 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
8152 * doc/install.texi (Cross-Compiler-Specific Options): Document
8153 --with-nds32-lib for nds32 target.
8154 * doc/extend.texi (Function Attributes, Target Builtins): Document
8155 nds32 specific attributes.
8157 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
8159 * lra-constraints (process_alt_operands): Use the result
8160 elimination register for operand when matching constraints.
8162 2013-10-31 Jakub Jelinek <jakub@redhat.com>
8164 * tree-vrp.c (maybe_set_nonzero_bits): New function.
8165 (remove_range_assertions): Call it.
8167 * tree.c (tree_ctz): New function.
8168 * tree.h (tree_ctz): New prototype.
8169 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
8170 first argument from tree to const_tree.
8171 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
8172 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
8173 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
8175 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
8176 * tree-vect-loop.c (vect_analyze_loop_operations,
8177 vect_transform_loop): Don't force scalar loop for bound just because
8178 number of iterations is unknown, only do it if it is not known to be
8179 a multiple of vectorization_factor.
8180 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
8182 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
8183 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
8184 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
8185 (set_nonzero_bits, get_nonzero_bits): New prototypes.
8186 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
8187 a default def isn't partially constant.
8188 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
8189 is known to be partially zero.
8190 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
8191 to see if a default def isn't partially constant.
8192 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
8193 creation of a range, if VR_RANGE, try to improve nonzero_bits from
8195 (set_nonzero_bits, get_nonzero_bits): New functions.
8197 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
8198 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
8199 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
8200 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
8201 uses but in the condition and ASSERT_EXPR and the other successor of
8202 the predecessor bb is __builtin_unreachable (), set_range_info of the
8203 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
8205 2013-10-31 Martin Jambor <mjambor@suse.cz>
8207 PR rtl-optimization/58934
8209 2013-10-30 Martin Jambor <mjambor@suse.cz>
8210 PR rtl-optimization/10474
8211 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8213 (interesting_dest_for_shprep): New function.
8214 (split_live_ranges_for_shrink_wrap): Likewise.
8215 (ira): Calculate dominance info and df analysis. Call
8216 split_live_ranges_for_shrink_wrap.
8218 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
8219 Yury Gribov <y.gribov@samsung.com>
8222 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
8223 shadow pointer to avoid clobbering the main one.
8225 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8227 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
8229 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8232 * ira-color.c (update_costs_from_copies): Add new parameter. Use
8233 it for calling update_costs_from_allocno.
8234 (assign_hard_reg): Call restore_costs_from_copies only for
8235 !retry_p. Pass new argument to update_costs_from_copies.
8236 (color_pass): Pass new argument to update_costs_from_copies.
8237 (ira_mark_allocation_change): Ditto.
8239 2013-10-30 Sharad Singhai <singhai@google.com>
8242 * opts.c (common_handle_option): Remove deprecated option
8243 -ftree-vectorizer-verbose.
8244 * doc/invoke.texi (Debugging Options): Ditto.
8245 * opts-global.c (handle_common_deferred_options): Ditto.
8246 (dump_remap_tree_vectorizer_verbose): Delete.
8247 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
8249 2013-10-30 DJ Delorie <dj@redhat.com>
8251 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
8252 that take no arguments.
8254 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
8257 * reload1.c (update_eliminables_and_spill): New function, broken
8259 (reload): Use it. Check for frame size change after frame size
8260 alignment, and call update_eliminables_and_spill first if continue-ing.
8262 2013-10-30 Cong Hou <congh@google.com>
8265 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
8266 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
8267 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
8269 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
8271 PR rtl-optimization/58369
8272 * reload1.c (compute_reload_subreg_offset): New function.
8273 (choose_reload_regs): Use it to pass endian-correct
8274 offset to subreg_regno_offset.
8276 2013-10-30 Tobias Burnus <burnus@net-b.de>
8279 * tree-cfg.c (replace_loop_annotate): Replace warning by
8282 2013-10-30 Jason Merrill <jason@redhat.com>
8284 * configure.ac (loose_warn): Add -Wno-format if
8285 --disable-build-format-warnings.
8287 2013-10-30 David Malcolm <dmalcolm@redhat.com>
8289 * cgraphunit.c (analyze_functions): Split symtab_node declarations
8290 onto multiple lines to make things easier for rename_symtab.py.
8292 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
8293 (symtab_semantically_equivalent_p): Likewise.
8295 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8298 * lra.c (check_rtl): Remove address check before LRA work.
8300 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
8302 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
8303 POINTER_PLUS_EXPR in the defining statement.
8305 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8307 * regmove.c: Remove.
8308 * tree-pass.h (make_pass_regmove): Remove.
8309 * timevar.def (TV_REGMOVE): Remove.
8310 * passes.def (pass_regmove): Remove.
8311 * opts.c (default_options_table): Remove entry for regmove.
8312 * doc/passes.texi: Remove regmove pass description.
8313 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
8315 (-fdump-rtl-regmove): Ditto.
8316 * common.opt (foptimize-register-move, fregmove): Ignore.
8317 * Makefile.in (OBJS): Remove regmove.o.
8318 * regmove.c: Remove.
8319 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
8321 (struct ira_allocno) New member allocno_prefs.
8322 (ALLOCNO_PREFS): New macro.
8323 (ira_prefs, ira_prefs_num): New external vars.
8324 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
8325 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
8326 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
8328 (ira_add_allocno_copy_to_list): Remove prototype.
8329 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
8330 (ira_pref_iterator): New type.
8331 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
8332 (FOR_EACH_PREF): New macro.
8333 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
8334 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
8336 (ira_setup_alts): New function.
8337 (decrease_live_ranges_number): New function.
8338 (ira): Call the above function.
8339 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
8340 (ira_create_allocno): Initialize allocno prefs.
8341 (pref_pool, pref_vec): New static vars.
8342 (initiate_prefs, find_allocno_pref, ira_create_pref): New
8344 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
8345 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
8346 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
8347 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
8348 (ira_add_allocno_copy_to_list): Make static. Rename to
8349 add_allocno_copy_to_list.
8350 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
8351 swap_allocno_copy_ends_if_necessary.
8352 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
8353 ira_remove_allocno_prefs.
8354 (ira_flattening): Ditto.
8355 (ira_build): Call initiate_prefs, print_prefs.
8356 (ira_destroy): Call finish_prefs.
8357 * ira-color.c (struct update_cost_record): New.
8358 (struct allocno_color_data): Add new member update_cost_records.
8359 (update_cost_record_pool): New static var.
8360 (init_update_cost_records, get_update_cost_record): New functions.
8361 (free_update_cost_record_list, finish_update_cost_records): Ditto.
8362 (struct update_cost_queue_elem): Add member from.
8363 (initiate_cost_update): Call init_update_cost_records.
8364 (finish_cost_update): Call finish_update_cost_records.
8365 (queue_update_cost, get_next_update_cost): Add new param from.
8366 (Update_allocno_cost, update_costs_from_allocno): New functions.
8367 (update_costs_from_prefs): Ditto.
8368 (update_copy_costs): Rename to update_costs_from_copies.
8369 (restore_costs_from_copies): New function.
8370 (update_conflict_hard_regno_costs): Don't go back.
8371 (assign_hard_reg): Call restore_costs_from_copies. Add printing
8373 (pop_allocnos): Add priniting more debug info.
8374 (color_allocnos): Remove prefs for conflicting hard regs.
8375 Call update_costs_from_prefs.
8376 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8377 (get_dup_num): Rename, modify, and move to ira.c
8378 (process_regs_for_copy): Add prefs.
8379 (add_insn_allocno_copies): Put src as first arg of
8380 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
8381 * ira-costs.c (record_reg_classes): Modify and move code into
8382 record_operands_costs.
8383 (find_costs_and_classes): Create prefs for the hard reg of small
8385 (process_bb_node_for_hard_reg_moves): Add prefs.
8387 2013-10-30 Richard Biener <rguenther@suse.de>
8390 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8391 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8393 (pre_and_rev_post_order_compute): ... which now wraps it.
8394 * graph.c (draw_cfg_nodes_no_loops): Use
8395 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8398 2013-10-30 Christian Bruel <christian.bruel@st.com>
8400 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8401 (sh_expand_cmpstr): Handle known align and schedule improvements.
8402 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8403 * config/sh/sh.md (cmpstrnsi): New pattern.
8405 2013-10-30 Martin Jambor <mjambor@suse.cz>
8407 PR rtl-optimization/10474
8408 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8410 (interesting_dest_for_shprep): New function.
8411 (split_live_ranges_for_shrink_wrap): Likewise.
8412 (ira): Calculate dominance info and df analysis. Call
8413 split_live_ranges_for_shrink_wrap.
8415 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8418 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8420 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8422 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8423 * tree.h (POINTER_BOUNDS_P): New.
8424 (BOUNDED_TYPE_P): New.
8426 (pointer_bounds_type_node): New.
8427 * tree.c (build_common_tree_nodes): Initialize
8428 pointer_bounds_type_node.
8429 * gimple.h (gimple_call_get_nobnd_arg_index): New.
8430 (gimple_call_num_nobnd_args): New.
8431 (gimple_call_nobnd_arg): New.
8432 (gimple_return_retbnd): New.
8433 (gimple_return_set_retbnd): New
8434 * gimple.c (gimple_build_return): Increase number of ops
8435 for return statement.
8436 (gimple_call_get_nobnd_arg_index): New.
8437 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8439 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8441 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8442 with "chkp ctor" and "bnd_legacy" attributes.
8443 * gimplify.c (gimplify_init_constructor): Avoid infinite
8444 loop during gimplification of bounds initializer.
8446 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8448 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8449 (handle_bnd_legacy): New.
8450 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8451 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8454 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
8456 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8457 (BT_FN_PTR_CONST_PTR): New.
8458 (BT_FN_CONST_PTR_CONST_PTR): New.
8459 (BT_FN_PTR_CONST_PTR_SIZE): New.
8460 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8461 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8462 (BT_FN_VOID_CONST_PTR_SIZE): New.
8463 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8464 * chkp-builtins.def: New.
8465 * builtins.def: include chkp-builtins.def.
8466 (DEF_CHKP_BUILTIN): New.
8467 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8468 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8469 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8470 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8471 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8472 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8473 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8474 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8475 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8476 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8477 * common.opt (fcheck-pointer-bounds): New.
8478 * toplev.c (process_options): Check Pointer Bounds Checker is
8480 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8482 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8484 * target.def (builtin_chkp_function): New.
8485 (chkp_bound_type): New.
8486 (chkp_bound_mode): New.
8487 (fn_abi_va_list_bounds_size): New.
8488 (load_bounds_for_arg): New.
8489 (store_bounds_for_arg): New.
8490 * targhooks.h (default_load_bounds_for_arg): New.
8491 (default_store_bounds_for_arg): New.
8492 (default_fn_abi_va_list_bounds_size): New.
8493 (default_chkp_bound_type): New.
8494 (default_chkp_bound_mode): New.
8495 (default_builtin_chkp_function): New.
8496 * targhooks.c (default_load_bounds_for_arg): New.
8497 (default_store_bounds_for_arg): New.
8498 (default_fn_abi_va_list_bounds_size): New.
8499 (default_chkp_bound_type): New.
8500 (default_chkp_bound_mode); New.
8501 (default_builtin_chkp_function): New.
8502 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8503 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8504 (TARGET_STORE_BOUNDS_FOR_ARG): New.
8505 (TARGET_BUILTIN_CHKP_FUNCTION): New.
8506 (TARGET_CHKP_BOUND_TYPE): New.
8507 (TARGET_CHKP_BOUND_MODE): New.
8508 * doc/tm.texi: Regenerated.
8509 * langhooks.h (lang_hooks): Add chkp_supported field.
8510 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8511 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8513 2013-10-29 Andrew Pinski <apinski@cavium.com>
8515 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8516 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8517 fails, combining the branches anyways.
8518 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8519 increases the number of combinings.
8520 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8522 2013-10-29 Mike Stump <mikestump@comcast.net>
8524 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8525 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8526 (make_vector_mode): Increase namebuf to 16.
8527 (emit_insn_modes_h): When processing BImode, don't
8528 also match partial int modes.
8529 (emit_class_narrowest_mode): Likewise.
8531 * config/bfin/bfin-modes.def: Add precision to PDI.
8532 * config/m32c/m32c-modes.def: Add precision to PSI.
8533 * config/msp430/msp430-modes.def: Add precision to PSI.
8534 * config/rs6000/rs6000-modes.def: Add precision to PTI.
8535 * config/sh/sh-modes.def: Add precision to PSI and PDI.
8537 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
8540 * config/sh/sh.md (*addc): Rename existing variations to ...
8541 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8542 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8543 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8544 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8546 2013-10-29 Teresa Johnson <tejohnson@google.com>
8549 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8550 insanities when updating probabilities.
8552 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8554 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8555 prettyprinter for cgraph_node to reflect the conversion of the
8556 symtable types to a C++ class hierarchy: it now *is* a
8557 symtab_node_base, rather than having one (named "symbol").
8559 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8561 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8562 __cilkrts_pop_frame. If matched, then return true for built-in
8564 (expand_builtin): Added BUILT_IN_CILK_DETACH and
8565 BUILT_IN_CILK_POP_FRAME case.
8566 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8567 (lhs_cilk_detect_spawn): Likewise.
8568 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8569 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8570 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8571 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8572 (LANG_HOOKS_CILKPLUS): Likewise.
8573 * tree.h (CILK_SPAWN_FN): Likewise.
8574 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8575 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8576 (OBJS): Added cilk-common.o.
8577 (BUILTINS_DEF): Added cilk-builtins.def.
8578 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8579 (lhd_cilk_detect_spawn): Likewise.
8580 * langhooks.h (lang_hooks_for_cilkplus): New struct.
8581 (struct lang_hooks): Added new field called "cilkplus."
8582 * cilk-common.c: New file.
8584 * cilk-builtins.def: Likewise.
8585 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8586 "__cilk" macro and set it to 200.
8587 * function.h (struct function::cilk_frame_decl): New field.
8588 (struct function::is_cilk_function): Likewise.
8589 (struct function::calls_cilk_spawn): Likewise.
8590 * gimplify.c (gimplify_call_expr): Added a check if the function call
8591 being gimplified is a spawn detach point. If so, then add pop_frame
8592 and detach function calls.
8593 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8594 for gimplifying _Cilk_spawn and _Cilk_sync statements.
8595 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8596 function. If so, added a _Cilk_sync and gimplified it.
8597 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8598 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
8599 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8601 (can_inline_edge_p): Prevent inling of spawnee function.
8602 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8603 for functions that use Cilk keywords.
8604 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8605 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8606 CILK_SYNC_STMT cases.
8607 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8609 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8610 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8611 * passes.texi (Cilk Keywords): New section that describes the compiler
8612 code changes for handling Cilk Keywords.
8614 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8616 Patch autogenerated by refactor_symtab.py from
8617 https://github.com/davidmalcolm/gcc-refactoring-scripts
8618 revision 58bb219cc090b2f4516a9297d868c245495ee622
8620 * asan.c (asan_finish_file): Update for conversion of symtab types to
8621 a true class hierarchy.
8622 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8623 * cgraph.c (cgraph_get_body): Likewise.
8624 (cgraph_get_create_real_symbol_node): Likewise.
8625 (verify_cgraph_node): Likewise.
8626 (verify_edge_corresponds_to_fndecl): Likewise.
8627 (verify_edge_count_and_frequency): Likewise.
8628 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8629 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8630 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8631 (cgraph_node_cannot_return): Likewise.
8632 (cgraph_set_pure_flag_1): Likewise.
8633 (cgraph_set_const_flag_1): Likewise.
8634 (cgraph_set_nothrow_flag_1): Likewise.
8635 (cgraph_make_node_local_1): Likewise.
8636 (cgraph_for_node_and_aliases): Likewise.
8637 (cgraph_for_node_thunks_and_aliases): Likewise.
8638 (cgraph_node_can_be_local_p): Likewise.
8639 (cgraph_node_cannot_be_local_p_1): Likewise.
8640 (cgraph_function_body_availability): Likewise.
8641 (dump_cgraph_node): Likewise.
8642 (cgraph_rtl_info): Likewise.
8643 (cgraph_mark_address_taken_node): Likewise.
8644 (cgraph_remove_node): Likewise.
8645 (cgraph_release_function_body): Likewise.
8646 (cgraph_update_edges_for_call_stmt_node): Likewise.
8647 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8648 (cgraph_make_edge_direct): Likewise.
8649 (cgraph_resolve_speculation): Likewise.
8650 (cgraph_speculative_call_info): Likewise.
8651 (cgraph_turn_edge_to_speculative): Likewise.
8652 (cgraph_create_edge_1): Likewise.
8653 (cgraph_set_call_stmt): Likewise.
8654 (cgraph_node_for_asm): Likewise.
8655 (cgraph_add_thunk): Likewise.
8656 (cgraph_same_body_alias): Likewise.
8657 (cgraph_create_function_alias): Likewise.
8658 (cgraph_create_node): Likewise.
8659 (cgraph_create_empty_node): Likewise.
8660 (record_function_versions): Likewise.
8661 (used_from_object_file_p): Likewise.
8662 * cgraph.h (symtab_can_be_discarded): Likewise.
8663 (symtab_real_symbol_p): Likewise.
8664 (cgraph_mark_force_output_node): Likewise.
8665 (cgraph_edge_recursive_p): Likewise.
8666 (symtab_alias_target): Likewise.
8667 (varpool_all_refs_explicit_p): Likewise.
8668 (varpool_can_remove_if_no_refs): Likewise.
8669 (cgraph_only_called_directly_or_aliased_p): Likewise.
8670 (cgraph_next_function_with_gimple_body): Likewise.
8671 (cgraph_first_function_with_gimple_body): Likewise.
8672 (cgraph_function_with_gimple_body_p): Likewise.
8673 (cgraph_next_function): Likewise.
8674 (cgraph_first_function): Likewise.
8675 (cgraph_next_defined_function): Likewise.
8676 (cgraph_first_defined_function): Likewise.
8677 (varpool_next_defined_variable): Likewise.
8678 (varpool_first_defined_variable): Likewise.
8679 (varpool_next_static_initializer): Likewise.
8680 (varpool_first_static_initializer): Likewise.
8681 (varpool_next_variable): Likewise.
8682 (varpool_first_variable): Likewise.
8683 (varpool_node_name): Likewise.
8684 (varpool): Likewise.
8686 (is_a_helper <varpool_node>::test): Likewise.
8687 (is_a_helper <cgraph_node>::test): Likewise.
8688 (varpool_variable_node): Likewise.
8689 (cgraph_function_or_thunk_node): Likewise.
8690 (varpool_alias_target): Likewise.
8691 (cgraph_alias_target): Likewise.
8692 (cgraph_node_name): Likewise.
8693 (varpool_node_asm_name): Likewise.
8694 (cgraph_node_asm_name): Likewise.
8695 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8696 (cgraph_rebuild_references): Likewise.
8697 (rebuild_cgraph_edges): Likewise.
8698 (record_eh_tables): Likewise.
8699 (build_cgraph_edges): Likewise.
8700 (mark_store): Likewise.
8701 (mark_load): Likewise.
8702 (mark_address): Likewise.
8703 (record_type_list): Likewise.
8704 (record_reference): Likewise.
8705 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8706 (cgraph_materialize_clone): Likewise.
8707 (cgraph_function_versioning): Likewise.
8708 (cgraph_copy_node_for_versioning): Likewise.
8709 (update_call_expr): Likewise.
8710 (cgraph_find_replacement_node): Likewise.
8711 (cgraph_create_virtual_clone): Likewise.
8712 (cgraph_clone_node): Likewise.
8713 * cgraphunit.c (compile): Likewise.
8714 (output_weakrefs): Likewise.
8715 (output_in_order): Likewise.
8716 (expand_function): Likewise.
8717 (assemble_thunks_and_aliases): Likewise.
8718 (expand_thunk): Likewise.
8719 (mark_functions_to_output): Likewise.
8720 (handle_alias_pairs): Likewise.
8721 (analyze_functions): Likewise.
8722 (walk_polymorphic_call_targets): Likewise.
8723 (varpool_finalize_decl): Likewise.
8724 (process_function_and_variable_attributes): Likewise.
8725 (cgraph_process_same_body_aliases): Likewise.
8726 (analyze_function): Likewise.
8727 (cgraph_add_new_function): Likewise.
8728 (cgraph_finalize_function): Likewise.
8729 (referred_to_p): Likewise.
8730 (cgraph_reset_node): Likewise.
8731 (cgraph_process_new_functions): Likewise.
8732 (enqueue_node): Likewise.
8733 (decide_is_symbol_needed): Likewise.
8734 * coverage.c (coverage_compute_profile_id): Likewise.
8735 * dbxout.c (dbxout_expand_expr): Likewise.
8736 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8737 (reference_to_unused): Likewise.
8738 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8739 * gimplify.c (unvisit_body): Likewise.
8740 (unshare_body): Likewise.
8741 * ipa-cp.c (ipcp_generate_summary): Likewise.
8742 (ipcp_decision_stage): Likewise.
8743 (identify_dead_nodes): Likewise.
8744 (decide_whether_version_node): Likewise.
8745 (decide_about_value): Likewise.
8746 (perhaps_add_new_callers): Likewise.
8747 (create_specialized_node): Likewise.
8748 (update_profiling_info): Likewise.
8749 (ipcp_propagate_stage): Likewise.
8750 (estimate_local_effects): Likewise.
8751 (good_cloning_opportunity_p): Likewise.
8752 (devirtualization_time_bonus): Likewise.
8753 (propagate_constants_accross_call): Likewise.
8754 (initialize_node_lattices): Likewise.
8755 (ipcp_cloning_candidate_p): Likewise.
8756 (determine_versionability): Likewise.
8757 (print_all_lattices): Likewise.
8758 (print_lattice): Likewise.
8759 (ipcp_discover_new_direct_edges): Likewise.
8760 * ipa-devirt.c (ipa_devirt): Likewise.
8761 (likely_target_p): Likewise.
8762 (update_type_inheritance_graph): Likewise.
8763 (possible_polymorphic_call_target_p): Likewise.
8764 (dump_possible_polymorphic_call_targets): Likewise.
8765 (devirt_variable_node_removal_hook): Likewise.
8766 (record_binfo): Likewise.
8767 (maybe_record_node): Likewise.
8768 (build_type_inheritance_graph): Likewise.
8769 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8770 (inline_generate_summary): Likewise.
8771 (inline_analyze_function): Likewise.
8772 (do_estimate_growth): Likewise.
8773 (simple_edge_hints): Likewise.
8774 (estimate_node_size_and_time): Likewise.
8775 (estimate_edge_devirt_benefit): Likewise.
8776 (compute_inline_parameters): Likewise.
8777 (estimate_function_body_sizes): Likewise.
8778 (compute_bb_predicates): Likewise.
8779 (initialize_inline_failed): Likewise.
8780 (dump_inline_summary): Likewise.
8781 (dump_inline_edge_summary): Likewise.
8782 * ipa-inline-transform.c (inline_transform): Likewise.
8783 (preserve_function_body_p): Likewise.
8784 (save_inline_function_body): Likewise.
8785 (inline_call): Likewise.
8786 (clone_inlined_nodes): Likewise.
8787 (can_remove_node_now_p): Likewise.
8788 (can_remove_node_now_p_1): Likewise.
8789 * ipa-inline.c (early_inliner): Likewise.
8790 (early_inline_small_functions): Likewise.
8791 (inline_always_inline_functions): Likewise.
8792 (ipa_inline): Likewise.
8793 (flatten_function): Likewise.
8794 (inline_small_functions): Likewise.
8795 (speculation_useful_p): Likewise.
8796 (recursive_inlining): Likewise.
8797 (update_caller_keys): Likewise.
8798 (reset_edge_caches): Likewise.
8799 (update_edge_key): Likewise.
8800 (edge_badness): Likewise.
8801 (relative_time_benefit): Likewise.
8802 (want_inline_self_recursive_call_p): Likewise.
8803 (want_inline_small_function_p): Likewise.
8804 (want_early_inline_function_p): Likewise.
8805 (num_calls): Likewise.
8806 (can_early_inline_edge_p): Likewise.
8807 (can_inline_edge_p): Likewise.
8808 (report_inline_failed_reason): Likewise.
8809 * ipa-profile.c (ipa_profile): Likewise.
8810 (ipa_propagate_frequency): Likewise.
8811 (ipa_propagate_frequency_1): Likewise.
8812 (ipa_profile_generate_summary): Likewise.
8813 * ipa-prop.c (ipcp_transform_function): Likewise.
8814 (read_replacements_section): Likewise.
8815 (ipa_prop_read_section): Likewise.
8816 (ipa_modify_call_arguments): Likewise.
8817 (ipa_print_node_params): Likewise.
8818 (propagate_controlled_uses): Likewise.
8819 (update_indirect_edges_after_inlining): Likewise.
8820 (remove_described_reference): Likewise.
8821 (ipa_make_edge_direct_to_target): Likewise.
8822 (ipa_analyze_node): Likewise.
8823 (ipa_analyze_params_uses): Likewise.
8824 (ipa_compute_jump_functions): Likewise.
8825 (ipa_get_callee_param_type): Likewise.
8826 (ipa_print_node_jump_functions): Likewise.
8827 (ipa_initialize_node_params): Likewise.
8828 (ipa_populate_param_decls): Likewise.
8829 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8830 (write_agg_replacement_chain): Likewise.
8831 (ipa_write_node_info): Likewise.
8832 (ipa_edge_duplication_hook): Likewise.
8833 (try_decrement_rdesc_refcount): Likewise.
8834 * ipa-pure-const.c (propagate_nothrow): Likewise.
8835 (propagate_pure_const): Likewise.
8836 (pure_const_read_summary): Likewise.
8837 (pure_const_write_summary): Likewise.
8838 (analyze_function): Likewise.
8839 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8840 (ipa_ref_referring_ref_list): Likewise.
8841 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8842 (ipa_remove_stmt_references): Likewise.
8843 (ipa_find_reference): Likewise.
8844 (ipa_dump_referring): Likewise.
8845 (ipa_dump_references): Likewise.
8846 (ipa_record_reference): Likewise.
8847 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8848 (ipa_reference_write_optimization_summary): Likewise.
8849 (write_node_summary_p): Likewise.
8850 (propagate): Likewise.
8851 (read_write_all_from_decl): Likewise.
8852 (generate_summary): Likewise.
8853 (analyze_function): Likewise.
8854 (propagate_bits): Likewise.
8855 (ipa_reference_get_not_written_global): Likewise.
8856 (ipa_reference_get_not_read_global): Likewise.
8857 * ipa-split.c (execute_split_functions): Likewise.
8858 (split_function): Likewise.
8859 * ipa-utils.c (ipa_merge_profiles): Likewise.
8860 (dump_cgraph_node_set): Likewise.
8861 (ipa_reverse_postorder): Likewise.
8862 (ipa_edge_within_scc): Likewise.
8863 (ipa_get_nodes_in_cycle): Likewise.
8864 (ipa_free_postorder_info): Likewise.
8865 (ipa_reduced_postorder): Likewise.
8866 (searchc): Likewise.
8867 (recursive_call_p): Likewise.
8868 * ipa.c (ipa_cdtor_merge): Likewise.
8869 (record_cdtor_fn): Likewise.
8870 (function_and_variable_visibility): Likewise.
8871 (varpool_externally_visible_p): Likewise.
8872 (cgraph_externally_visible_p): Likewise.
8873 (comdat_can_be_unshared_p): Likewise.
8874 (comdat_can_be_unshared_p_1): Likewise.
8875 (address_taken_from_non_vtable_p): Likewise.
8876 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8877 (symtab_remove_unreachable_nodes): Likewise.
8878 (walk_polymorphic_call_targets): Likewise.
8879 (process_references): Likewise.
8880 (enqueue_node): Likewise.
8881 (has_addr_references_p): Likewise.
8882 (cgraph_non_local_node_p_1): Likewise.
8883 * is-a.h (varpool_analyze_node): Likewise.
8884 * lto-cgraph.c (input_symtab): Likewise.
8885 (merge_profile_summaries): Likewise.
8886 (input_cgraph_1): Likewise.
8887 (input_edge): Likewise.
8888 (input_varpool_node): Likewise.
8889 (input_node): Likewise.
8890 (input_overwrite_node): Likewise.
8891 (compute_ltrans_boundary): Likewise.
8892 (output_refs): Likewise.
8893 (lto_output_varpool_node): Likewise.
8894 (lto_output_node): Likewise.
8895 (reachable_from_other_partition_p): Likewise.
8896 (referenced_from_other_partition_p): Likewise.
8897 (lto_output_edge): Likewise.
8898 (output_node_opt_summary): Likewise.
8899 (add_node_to): Likewise.
8900 (reachable_from_this_partition_p): Likewise.
8901 (lto_set_symtab_encoder_in_partition): Likewise.
8902 (lto_symtab_encoder_in_partition_p): Likewise.
8903 (lto_set_symtab_encoder_encode_initializer): Likewise.
8904 (lto_symtab_encoder_encode_initializer_p): Likewise.
8905 (lto_set_symtab_encoder_encode_body): Likewise.
8906 (lto_symtab_encoder_encode_body_p): Likewise.
8907 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8909 * lto-streamer-in.c (lto_read_body): Likewise.
8910 (fixup_call_stmt_edges): Likewise.
8911 (fixup_call_stmt_edges_1): Likewise.
8912 * lto-streamer-out.c (produce_symtab): Likewise.
8913 (output_symbol_p): Likewise.
8914 (write_symbol): Likewise.
8915 (lto_output): Likewise.
8916 (copy_function): Likewise.
8917 (output_function): Likewise.
8918 * passes.c (function_called_by_processed_nodes_p): Likewise.
8919 (ipa_write_optimization_summaries): Likewise.
8920 (ipa_write_summaries): Likewise.
8921 (do_per_function_toporder): Likewise.
8922 (do_per_function): Likewise.
8923 (dump_passes): Likewise.
8924 * symtab.c (symtab_semantically_equivalent_p): Likewise.
8925 (symtab_nonoverwritable_alias): Likewise.
8926 (symtab_nonoverwritable_alias_1): Likewise.
8927 (symtab_for_node_and_aliases): Likewise.
8928 (symtab_resolve_alias): Likewise.
8929 (fixup_same_cpp_alias_visibility): Likewise.
8930 (symtab_alias_ultimate_target): Likewise.
8931 (symtab_used_from_object_file_p): Likewise.
8932 (verify_symtab_base): Likewise.
8933 (dump_symtab_base): Likewise.
8934 (symtab_node_name): Likewise.
8935 (symtab_node_asm_name): Likewise.
8936 (symtab_dissolve_same_comdat_group_list): Likewise.
8937 (symtab_add_to_same_comdat_group): Likewise.
8938 (symtab_unregister_node): Likewise.
8939 (symtab_insert_node_to_hashtable): Likewise.
8940 (symtab_register_node): Likewise.
8941 (unlink_from_assembler_name_hash): Likewise.
8942 (insert_to_assembler_name_hash): Likewise.
8943 (eq_assembler_name): Likewise.
8944 (hash_node_by_assembler_name): Likewise.
8945 (eq_node): Likewise.
8946 (hash_node): Likewise.
8947 * toplev.c (wrapup_global_declaration_2): Likewise.
8948 * trans-mem.c (ipa_tm_execute): Likewise.
8949 (ipa_tm_transform_clone): Likewise.
8950 (ipa_tm_transform_transaction): Likewise.
8951 (ipa_tm_transform_calls_redirect): Likewise.
8952 (ipa_tm_insert_gettmclone_call): Likewise.
8953 (ipa_tm_insert_irr_call): Likewise.
8954 (ipa_tm_create_version): Likewise.
8955 (ipa_tm_create_version_alias): Likewise.
8956 (ipa_tm_mark_forced_by_abi_node): Likewise.
8957 (ipa_tm_mark_force_output_node): Likewise.
8958 (ipa_tm_diagnose_tm_safe): Likewise.
8959 (ipa_tm_mayenterirr_function): Likewise.
8960 (ipa_tm_scan_irr_function): Likewise.
8961 (ipa_tm_note_irrevocable): Likewise.
8962 (ipa_tm_scan_calls_clone): Likewise.
8963 (get_cg_data): Likewise.
8964 * tree-eh.c (tree_could_trap_p): Likewise.
8965 * tree-emutls.c (ipa_lower_emutls): Likewise.
8966 (create_emultls_var): Likewise.
8967 (lower_emutls_function_body): Likewise.
8968 (gen_emutls_addr): Likewise.
8969 (emutls_decl): Likewise.
8970 (new_emutls_decl): Likewise.
8971 * tree-inline.c (tree_function_versioning): Likewise.
8972 (optimize_inline_calls): Likewise.
8973 (expand_call_inline): Likewise.
8974 (estimate_num_insns): Likewise.
8975 (copy_bb): Likewise.
8976 (delete_unreachable_blocks_update_callgraph): Likewise.
8977 * tree-nested.c (gimplify_all_functions): Likewise.
8978 (create_nesting_tree): Likewise.
8979 (check_for_nested_with_variably_modified): Likewise.
8980 * tree-pretty-print.c (dump_function_header): Likewise.
8981 * tree-profile.c (tree_profiling): Likewise.
8982 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8983 (modify_function): Likewise.
8984 (convert_callers): Likewise.
8985 (convert_callers_for_node): Likewise.
8986 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8987 (associate_varinfo_to_alias): Likewise.
8988 (create_variable_info_for): Likewise.
8989 (get_constraint_for_ssa_var): Likewise.
8990 * tree-vectorizer.c (increase_alignment): Likewise.
8991 * tree.c (find_decls_types_in_var): Likewise.
8992 (find_decls_types_in_node): Likewise.
8993 (free_lang_data_in_decl): Likewise.
8994 * value-prof.c (gimple_ic_transform): Likewise.
8995 (gimple_ic): Likewise.
8996 (check_ic_target): Likewise.
8997 (init_node_map): Likewise.
8998 * varasm.c (decl_binds_to_current_def_p): Likewise.
8999 (default_binds_local_p_1): Likewise.
9000 (dump_tm_clone_pairs): Likewise.
9001 (assemble_alias): Likewise.
9002 (find_decl): Likewise.
9003 (mark_decl_referenced): Likewise.
9004 * varpool.c (varpool_for_node_and_aliases): Likewise.
9005 (varpool_extra_name_alias): Likewise.
9006 (varpool_create_variable_alias): Likewise.
9007 (add_new_static_var): Likewise.
9008 (varpool_finalize_named_section_flags): Likewise.
9009 (varpool_remove_unreferenced_decls): Likewise.
9010 (enqueue_node): Likewise.
9011 (varpool_assemble_decl): Likewise.
9012 (assemble_aliases): Likewise.
9013 (varpool_analyze_node): Likewise.
9014 (cgraph_variable_initializer_availability): Likewise.
9015 (varpool_add_new_variable): Likewise.
9016 (ctor_for_folding): Likewise.
9017 (dump_varpool_node): Likewise.
9018 (varpool_remove_initializer): Likewise.
9019 (varpool_remove_node): Likewise.
9020 (varpool_node_for_decl): Likewise.
9021 (varpool_create_empty_node): Likewise.
9022 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
9023 (ix86_get_function_versions_dispatcher): Likewise.
9025 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9027 * cgraph.h (symtab_node_base): Convert to a class;
9028 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
9029 chain_next/prev from symtab_node_def.
9030 (cgraph_node): Inherit from symtab_node; add GTY option
9031 tag ("SYMTAB_FUNCTION").
9032 (varpool_node): Inherit from symtab_node; add GTY option
9033 tag ("SYMTAB_VARIABLE").
9034 (symtab_node_def): Remove.
9035 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
9036 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
9037 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
9038 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
9040 * ipa-ref.h (symtab_node_def): Drop.
9041 (symtab_node): Change underlying type from symtab_node_def to
9043 (const_symtab_node): Likwise.
9045 * is-a.h: Update examples in comment.
9047 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
9048 (assembler_name_hash): Likewise.
9050 2013-10-29 Martin Liska <marxin.liska@gmail.com>
9052 * doc/tree-ssa.texi (gimple_phi_result): Document.
9053 (gimple_phi_num_args, gimple_phi_arg): Likewise.
9054 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
9055 (PHI_RESULT, PHI_NUM_ARGS): Remove.
9056 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
9058 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9060 * expr.h: Revert change and include tree-core.h.
9061 * rtl.h: Revert change and don't include tree-core.h.
9063 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9065 * config/darwin.c: Include gimple.h.
9066 * config/i386/winnt.c: Likewise.
9068 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
9070 PR tree-optimization/19831
9071 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
9073 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9075 * tree-outof-ssa.h: Remove include files.
9076 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
9078 * tree-ssa-coalesce.c: Likewise.
9079 * cfgexpand.c: Likewise.
9080 * tree-ssa-ter.c: Likewise.
9081 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
9082 * lto-streamer.h: Likewise.
9083 * cgraphbuild.c: Add gimple.h to include list.
9084 * data-streamer-in.c: Likewise.
9085 * ipa-cp.c: Likewise.
9086 * tree-streamer.c: Likewise.
9087 * lto-compress.c: Likewise.
9088 * ipa-reference.c: Likewise.
9089 * data-streamer-out.c: Likewise.
9090 * lto-cgraph.c: Likewise.
9091 * cgraphclones.c: Likewise.
9092 * ipa-utils.c: Likewise.
9093 * data-streamer.c: Likewise.
9094 * ipa-split.c: Likewise.
9095 * lto-section-in.c: Likewise.
9096 * tree-streamer-out.c: Likewise.
9097 * ipa-prop.c: Likewise.
9098 * tree-streamer-in.c: Likewise.
9099 * symtab.c: Likewise.
9100 * opts-global.c: Likewise.
9101 * lto-opts.c: Likewise.
9102 * lto-section-out.c: Likewise.
9103 * lto-streamer.c: Likewise.
9104 * rtl.h: Add tree-core.h to include list.
9105 * expr.h: Remove tree-core.h from include list.
9106 * gimple.h: Likewise.
9107 * ipa-utils.h: Likewise.
9108 * streamer-hooks.h: Likewise.
9109 * streamer-hooks.c: Include input.h.
9111 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9113 * config/arm/arm.c (cortexa7_extra_costs): New table.
9114 (arm_cortex_a7_tune): New.
9115 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
9117 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
9119 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
9121 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9123 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
9124 to use autogenerated markers for a class-hierarchy, every class
9125 must have a GTY marker.
9126 * gengtype.h (struct type): Add linked list of subclasses to
9127 the "s" member of the union.
9128 (add_subclass): New decl.
9129 * gengtype-state.c (read_state_struct_type): Set up subclass
9131 * gengtype.c (get_ultimate_base_class): New.
9132 (add_subclass): New.
9133 (new_structure): Set up subclass linked list.
9134 (set_gc_used_type): Propagate usage information to subclasses.
9135 (output_mangled_typename): Use get_ultimate_base_class.
9136 (walk_subclasses): Use the subclass linked list, avoiding an
9137 O(N^2) when writing out all types.
9138 (walk_type): Issue an error if the base class is missing a tag,
9139 rather than generating bogus C code. Add a gcc_unreachable
9140 default case, in case people omit tags from concrete subclasses,
9141 or get the values wrong.
9142 (write_func_for_structure): Issue an error for subclasses for
9143 which the base doesn't have a "desc", since otherwise the
9144 autogenerated routines for the base would silently fail to visit
9145 any subclass fields.
9146 (write_root): Use get_ultimate_base_class, tweaking constness of
9147 tp to match that function's signature.
9149 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9151 * doc/gty.texi (GTY Options): Add note about inheritance to
9152 description of desc and tag.
9153 (Inheritance and GTY): New.
9155 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9157 * gengtype-parse.c (opts_have): Drop "static" so that
9158 we can use this from gengtype.c.
9159 * gengtype.c (set_gc_used_type): Mark any base class as used;
9160 update field traversal to visit inherited fields.
9161 (output_mangled_typename): Convert references to classes within
9162 an inheritance hierarchy to reference the ultimate base class,
9163 since only it will have gt_ functions.
9164 (get_string_option): New.
9165 (walk_subclasses): New.
9166 (walk_type): Treat GTY structs that have a "desc" as being the
9167 root of an inheritance hierarchy. Generate a switch on it
9168 within the marking function which walks all subclasses, adding
9169 cases for them via walk_subclasses. For subclasses, visit all
9170 fields of the type (including inherited ones).
9171 (write_func_for_structure): Don't write fns for subclasses, only
9172 for the ultimate base class within an inheritance hierarchy.
9173 Subclasses-marking will be handled by the base class marking functions.
9174 (write_types): Likewise.
9175 (write_local_func_for_structure): Likewise.
9176 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
9177 a "tag" option (and are thus concrete subclasses).
9178 (write_root): Use the marker function for the ultimate base class.
9179 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
9180 (opts_have): Add declaration.
9182 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
9184 * lra-spills.c (lra_final_code_change): Remove useless move insns
9185 originated from moves of pseudos.
9187 2013-10-28 Jeff Law <law@redhat.com>
9189 * lower-subreg.c (resolve_simple_move): Fix comment typo.
9191 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
9193 * df-scan.c (df_collection_rec): Adjust.
9194 (copy_defs): New constant.
9195 (copy_uses): Likewise.
9196 (copy_eq_uses): Likewise.
9197 (copy_mw): Likewise.
9198 (copy_all): Likewise.
9199 (df_insn_rescan): Adjust.
9200 (df_notes_rescan): Likewise.
9201 (df_swap_refs): Likewise.
9202 (df_sort_and_compress_refs): Likewise.
9203 (df_sort_and_compress_mws): Likewise.
9204 (df_install_refs): Likewise.
9205 (df_install_mws): Likewise.
9206 (df_refs_add_to_chains): Add flags parameter controlling which vectors
9208 (df_bb_refs_record): Adjust.
9209 (df_record_entry_block_defs): Likewise.
9210 (df_record_exit_block_defs): Likewise.
9211 (df_refs_verify): Likewise.
9212 (df_mws_verify): Likewise.
9213 (df_insn_refs_verify): Likewise.
9214 (df_bb_verify): Likewise.
9215 * ipa-pure-const.c (finish_state): Remove.
9216 (propagate): Adjust.
9217 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
9218 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
9219 var-tracking.c: Adjust.
9220 * vec.c (stack_vecs): Remove.
9221 (register_stack_vec): Likewise.
9222 (stack_vec_register_index): Likewise.
9223 (unregister_stack_vec): Likewise.
9224 * vec.h (struct va_stack): Remove.
9225 (struct vec<T, A, vl_ptr>): Specialize as
9226 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
9227 allocation strategy compatable with the vl_ptr layout.
9228 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
9229 specialization anyway.
9230 (class stack_vec): New class.
9231 (vec_stack_alloc): Remove.
9232 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
9234 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9235 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9236 Sergey Lega <sergey.s.lega@intel.com>
9237 Anna Tikhonova <anna.tikhonova@intel.com>
9238 Ilya Tocar <ilya.tocar@intel.com>
9239 Andrey Turetskiy <andrey.turetskiy@intel.com>
9240 Ilya Verbin <ilya.verbin@intel.com>
9241 Kirill Yukhin <kirill.yukhin@intel.com>
9242 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9244 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
9245 (*prefetch_avx512pf_<mode>): New.
9246 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
9247 (avx512f_maskcmp<mode>3): Ditto.
9248 (vashrv16si3): Ditto.
9250 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9251 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9252 Sergey Lega <sergey.s.lega@intel.com>
9253 Anna Tikhonova <anna.tikhonova@intel.com>
9254 Ilya Tocar <ilya.tocar@intel.com>
9255 Andrey Turetskiy <andrey.turetskiy@intel.com>
9256 Ilya Verbin <ilya.verbin@intel.com>
9257 Kirill Yukhin <kirill.yukhin@intel.com>
9258 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9260 * config/i386/i386.md (any_truncate): New.
9261 (trunsuffix): Ditto.
9262 * config/i386/predicates.md (const_8_to_9_operand): New.
9263 (const_10_to_11_operand): Ditto.
9264 (const_12_to_13_operand): Ditto.
9265 (const_14_to_15_operand): Ditto.
9266 (const_16_to_19_operand): Ditto.
9267 (const_20_to_23_operand): Ditto.
9268 (const_24_to_27_operand): Ditto.
9269 (const_28_to_31_operand): Ditto.
9270 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
9271 (cvtusi2<ssescalarmodesuffix>32): New.
9272 (cvtusi2<ssescalarmodesuffix>64): Ditto.
9273 (ufloatv16siv16sf2): Ditto.
9274 (avx512f_fix_notruncv16sfv16si): Ditto.
9275 (avx512f_ufix_notruncv16sfv16si): Ditto.
9276 (avx512f_vcvtss2usi): Ditto.
9277 (avx512f_vcvtss2usiq): Ditto.
9278 (avx512f_vcvttss2usi): Ditto.
9279 (avx512f_vcvttss2usiq): Ditto.
9280 (avx512f_vcvtsd2usi): Ditto.
9281 (avx512f_vcvtsd2usiq): Ditto.
9282 (avx512f_vcvttsd2usi): Ditto.
9283 (avx512f_vcvttsd2usiq): Ditto.
9284 (ufloatv8siv8df): Ditto.
9285 (avx512f_cvtdq2pd512_2): Ditto.
9286 (avx512f_cvtpd2dq512): Ditto.
9287 (avx512f_ufix_notruncv8dfv8si): Ditto.
9288 (avx512f_cvtpd2ps512): Ditto.
9289 (vec_unpacks_lo_v16sf): Ditto.
9290 (vec_unpacks_hi_v16sf): Ditto.
9291 (vec_unpacks_float_hi_v16si): Ditto.
9292 (vec_unpacks_float_lo_v16si): Ditto.
9293 (avx512f_unpckhps512): Ditto.
9294 (avx512f_unpcklps512): Ditto.
9295 (avx512f_movshdup512): Ditto.
9296 (avx512f_movsldup512): Ditto.
9297 (vec_extract_lo_v32hi): Ditto.
9298 (vec_extract_hi_v32hi): Ditto.
9299 (vec_extract_lo_v64qi): Ditto.
9300 (vec_extract_hi_v64qi): Ditto.
9301 (avx512f_unpckhpd512): Ditto.
9302 (avx512f_movddup512): Ditto.
9303 (avx512f_unpcklpd512): Ditto.
9304 (*avx512f_unpcklpd512): Ditto.
9305 (avx512f_shufps512_1): Ditto.
9306 (avx512f_shufpd512_1): Ditto.
9307 (avx512f_interleave_highv8di): Ditto.
9308 (avx512f_interleave_lowv8di): Ditto.
9309 (PMOV_DST_MODE): Ditto.
9310 (pmov_src_mode): Ditto.
9311 (pmov_src_lower): Ditto.
9313 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
9314 (*avx512f_<code>v8div16qi2): Ditto.
9315 (*avx512f_<code>v8div16qi2_store): Ditto.
9316 (vec_widen_umult_even_v16si): Ditto.
9317 (*vec_widen_umult_even_v16si): Ditto.
9318 (vec_widen_smult_even_v16si): Ditto.
9319 (*vec_widen_smult_even_v16si): Ditto.
9320 (avx512f_interleave_highv16si): Ditto.
9321 (avx512f_interleave_lowv16si): Ditto.
9322 (avx512f_<code>v16qiv16si2): Ditto.
9323 (avx512f_<code>v16hiv16si2): Ditto.
9324 (avx512f_<code>v8qiv8di2): Ditto.
9325 (avx512f_<code>v8hiv8di2): Ditto.
9326 (avx512f_<code>v8siv8di2): Ditto.
9327 (avx512cd_maskb_vec_dupv8di): Ditto.
9328 (avx512cd_maskw_vec_dupv16si): Ditto.
9329 (avx512f_vcvtph2ps512): Ditto.
9330 (avx512f_vcvtps2ph512): Ditto.
9331 (VEC_EXTRACT_MODE): Extened with wider modes.
9332 (VEC_PERM_AVX2): Ditto.
9333 (VEC_PERM_CONST): Ditto.
9335 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
9337 * config/arc/arc.c (arc_ccfsm_post_advance):
9338 Add comment about TYPE_RETURN.
9340 2013-10-28 Bin Cheng <bin.cheng@arm.com>
9342 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
9343 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
9344 (strip_offset): Convert offset to unsigned number.
9346 2013-10-27 Tom de Vries <tom@codesourcery.com>
9348 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
9349 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
9351 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
9353 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
9354 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
9355 (TARGET_BIG_ENDIAN): New macro.
9356 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
9357 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
9358 * config/sh/sh.c: Likewise.
9359 * config/sh/sh.h: Likewise.
9361 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
9363 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
9364 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
9366 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9368 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9370 (cmpstr_t, cmpstrsi): Fix formatting.
9372 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9375 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9376 addressing, do not use general_operand for memory operands.
9378 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9381 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9382 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9384 2013-10-26 Jeff Law <law@redhat.com>
9386 * predict.c (PRED_MUDFLAP): Remove.
9387 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9389 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9390 (OBJS): Remove tree-nomudflap.o
9391 (GTFILES): Remove tree-mudflap.c
9392 * builtins.c (expand_builtin_alloc): Remove mudflap support.
9393 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9394 (mfwrap_spec, mflib_spec): Likewise.
9395 (cpp_unique_options, cc1_options, static_specs): Likewise.
9396 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9397 * passes.def: Likewise.
9398 * toplev.c (compile_file, process_options): Likewise.
9399 * tree-inline.c (copy_tree_r): Likewise.
9400 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9401 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9402 (build_constant_desc, output_constant_def_contents): Likewise.
9403 (categorize_decl_for_section): Likewise.
9404 * tree-mudflap.c: Removed.
9405 * tree-mudflap.h: Removed.
9406 * tree-nomudflap.c: Removed.
9407 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9408 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9409 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9410 * config/sol2.h (MFLIB_SPEC): Likewise.
9411 * doc/install.texi: Remove mudflap references.
9412 * doc/passes.texi: Similarly.
9413 * doc/sourcebuild.texi: Similarly.
9414 * doc/invoke.texi: Remove mudlfap related options.
9416 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9418 PR rtl-optimization/58759
9419 * lra-constraints.c (lra_constraints): Remove wrong condition to
9420 remove insn setting up an equivalent pseudo.
9422 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9424 * config/rs6000/rs6000-protos.h
9425 (rs6000_secondary_memory_needed_mode): New prototype.
9426 * config/rs6000/rs6000.c: Include ira.h.
9427 (TARGET_LRA_P): Redefine.
9428 (rs6000_legitimate_offset_address_p): Call
9429 legitimate_constant_pool_address_p in strict mode for LRA.
9430 (rs6000_legitimate_address_p): Ditto.
9431 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
9432 (rs6000_emit_move): Add LRA version of code to generate load/store
9434 (rs6000_secondary_memory_needed_mode): New.
9435 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9436 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9437 constants, memory, and FP registers.
9438 (rs6000_lra_p): New.
9439 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9440 * config/rs6000/rs6000.opt (mlra): New option.
9441 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9443 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
9445 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9446 has_single_use () and not do the conversion if has_single_use ()
9447 returns false for the multiplication result.
9449 2013-10-25 David Malcolm <dmalcolm@redhat.com>
9451 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9452 to "NODE", since this works on a "tree", not an
9454 (CONSTANT_CLASS_P): Likewise.
9457 (INDIRECT_REF_P): Likewise.
9458 (REFERENCE_CLASS_P): Likewise.
9459 (COMPARISON_CLASS_P): Likewise.
9460 (UNARY_CLASS_P): Likewise.
9461 (BINARY_CLASS_P): Likewise.
9462 (STATEMENT_CLASS_P): Likewise.
9463 (VL_EXP_CLASS_P): Likewise.
9464 (EXPRESSION_CLASS_P): Likewise.
9465 (IS_TYPE_OR_DECL_P): Likewise.
9467 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
9469 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9470 ADDR_EXPR in the defining statement.
9472 2013-10-25 Richard Biener <rguenther@suse.de>
9474 PR tree-optimization/58626
9475 * tree-loop-distribution.c (enum rdg_dep_type): Remove
9476 anti_dd, output_dd and input_dd.
9477 (struct rdg_edge): Remove level and relation members.
9478 (RDGE_LEVEL, RDGE_RELATION): Remove.
9479 (dot_rdg_1): Adjust.
9480 (create_rdg_edge_for_ddr): Remove.
9481 (create_rdg_edges_for_scalar): Adjust.
9482 (create_edge_for_control_dependence): Likewise.
9483 (create_rdg_edges): Split into ...
9484 (create_rdg_flow_edges): ... this
9485 (create_rdg_cd_edges): ... and this.
9487 (build_rdg): Likewise, do not compute data dependences or
9489 (pg_add_dependence_edges): New function.
9491 (distribute_loop): First apply all non-dependence based
9492 partition mergings. Then compute dependences between partitions
9493 and merge and order partitions according to them.
9495 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9497 PR rtl-optimization/58831
9498 * alias.c (init_alias_analysis): At the beginning of each iteration,
9499 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9501 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9503 * recog.c (search_ofs): New static variable moved from...
9504 (peep2_find_free_register): ...here.
9505 (peephole2_optimize): Initialize it.
9507 2013-10-25 Tobias Burnus <burnus@net-b.de>
9509 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9511 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
9513 * config/i386/i386.h (TARGET_MPX): New define.
9514 (TARGET_MPX_P): Ditto.
9516 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9518 * config/i386/constraints.md (B): New.
9521 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9522 * config/i386/i386-modes.def (BND32): New.
9524 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9525 * config/i386/i386.c (isa_opts): Add mmpx.
9526 (regclass_map): Add bound registers.
9527 (dbx_register_map): Likewise.
9528 (dbx64_register_map): Likewise.
9529 (svr4_dbx_register_map): Likewise.
9531 (ix86_option_override_internal): Support MPX ISA.
9532 (ix86_conditional_register_usage): Support bound registers.
9533 (print_reg): Likewise.
9534 (ix86_code_end): Add MPX bnd prefix.
9535 (output_set_got): Likewise.
9536 (ix86_output_call_insn): Likewise.
9537 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9538 (ix86_print_operand_punct_valid_p): Likewise.
9539 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9541 (ix86_class_likely_spilled_p): Add bound regs support.
9542 (ix86_hard_regno_mode_ok): Likewise.
9543 (x86_order_regs_for_local_alloc): Likewise.
9544 (ix86_bnd_prefixed_insn_p): New.
9545 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9546 (FIXED_REGISTERS): Add bound registers.
9547 (CALL_USED_REGISTERS): Likewise.
9548 (REG_ALLOC_ORDER): Likewise.
9549 (HARD_REGNO_NREGS): Likewise.
9551 (VALID_BND_REG_MODE): New.
9552 (FIRST_BND_REG): New.
9553 (LAST_BND_REG): New.
9554 (reg_class): Add BND_REGS.
9555 (REG_CLASS_NAMES): Likewise.
9556 (REG_CLASS_CONTENTS): Likewise.
9558 (ANY_BND_REG_P): New.
9560 (HI_REGISTER_NAMES): Add bound registers.
9561 * config/i386/i386.md (UNSPEC_BNDMK): New.
9562 (UNSPEC_BNDMK_ADDR): New.
9563 (UNSPEC_BNDSTX): New.
9564 (UNSPEC_BNDLDX): New.
9565 (UNSPEC_BNDLDX_ADDR): New.
9566 (UNSPEC_BNDCL): New.
9567 (UNSPEC_BNDCU): New.
9568 (UNSPEC_BNDCN): New.
9569 (UNSPEC_MPX_FENCE): New.
9572 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9573 (length_immediate): Likewise.
9574 (prefix_0f): Likewise.
9576 (prefix_rep): Check for bnd prefix.
9577 (length_nobnd): New.
9578 (length): Use length_nobnd if specified.
9583 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9586 (simple_return_internal): Likewise.
9587 (simple_return_pop_internal): Likewise.
9588 (*indirect_jump): Add MPX bnd prefix.
9589 (*tablejump_1): Likewise.
9590 (simple_return_internal_long): Likewise.
9591 (simple_return_indirect_internal): Likewise.
9595 (*mov<mode>_internal_mpx): New.
9596 (<mode>_<bndcheck>): New.
9597 (*<mode>_<bndcheck>): New.
9602 * config/i386/predicates.md (lea_address_operand): Rename to...
9603 (address_no_seg_operand): ... this.
9604 (address_mpx_no_base_operand): New.
9605 (address_mpx_no_index_operand): New.
9606 (bnd_mem_operator): New.
9607 * config/i386/i386.opt (mmpx): New.
9608 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9609 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9611 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9613 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9614 * tree.def (POINTER_BOUNDS_TYPE): New.
9615 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9616 (POINTER_BOUNDS_MODE): New.
9617 (make_pointer_bounds_mode): New.
9618 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9619 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9620 (layout_type): Support POINTER_BOUNDS_TYPE.
9621 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9622 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9623 (type_contains_placeholder_1): Likewise.
9624 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9625 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9626 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9628 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9630 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9631 mode of address computation when calling memory_address_addr_space.
9633 2013-08-24 Richard Henderson <rth@twiddle.net>
9636 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9637 instead of create_convert_operand_to.
9638 (maybe_emit_sync_lock_test_and_set): Likewise.
9639 (expand_atomic_compare_and_swap): Likewise.
9640 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9642 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9644 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9645 Change param_is to use the struct and not the pointer to the struct.
9647 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9649 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9650 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9651 Move to targhooks.c.
9652 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9653 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9654 Relocate from gimplify.c.
9655 * targhooks.h: Add 2 prototypes.
9656 * tree.h: Delete 2 prototypes.
9658 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9660 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9661 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9663 2013-10-24 Cong Hou <congh@google.com>
9665 * convert.c (convert_to_real): Guard those unsafe math function
9666 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9669 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9672 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9674 (cgraph_create_edge): Use the new argument.
9675 (cgraph_create_indirect_edge): Likewise.
9677 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9679 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9681 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9682 changes statep->state.
9684 2013-10-24 Tobias Burnus <burnus@net-b.de>
9687 * tree-cfg.c (replace_loop_annotate): New function.
9688 (execute_build_cfg): Call it.
9689 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9690 * internal-fn.c (expand_ANNOTATE): New function.
9691 * internal-fn.def (ANNOTATE): Define as new internal function.
9692 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9693 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9694 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9695 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9696 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9698 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9699 Marcus Shawcroft <marcus.shawcroft@arm.com>
9701 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9702 Special case reload SP+C into none GENERAL_REGS.
9704 2013-10-24 Michael Matz <matz@suse.de>
9706 * gengtype.c (is_file_equal): Check that files will be same length.
9708 2013-10-25 Christian Bruel <christian.bruel@st.com>
9710 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9711 * config/sh/t-sh (sh-mem.o): New rule.
9712 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9713 (sh_expand_cmpstr): New function.
9714 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9715 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9716 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9717 (rotlhi3_8): Rename.
9719 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9721 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9722 * Makefile.in (CXXDEPMODE): Assign and change users.
9723 (CCDEPMODE): Delete.
9724 * configure: Regenerate.
9726 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9728 * gengtype-parse.c (require_without_advance): New.
9729 (type): For GTY-marked types that are not GTY((user)), parse any
9730 base classes, requiring them to be single-inheritance, and not
9731 be templates. For non-GTY-marked types and GTY((user)),
9732 continue to skip over any C++ inheritance specification.
9733 * gengtype-state.c (state_writer::write_state_struct_type):
9734 Write base class of type (if any).
9735 (read_state_struct_type): Read base class of type (if any).
9736 * gengtype.c (new_structure): Add a "base_class" parameter.
9737 (create_optional_field_): Update for new parameter to new_structure.
9738 (adjust_field_rtx_def): Likewise.
9739 (adjust_field_tree_exp): Likewise.
9740 * gengtype.h (struct type): Add "base_class" field to the s
9742 (new_structure): Add "base" parameter.
9744 2013-10-23 Sriraman Tallam <tmsriram@google.com>
9747 * config/i386/i386.c (ix86_option_override_internal):
9748 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9749 (ix86_valid_target_attribute_tree):
9750 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9751 Change TARGET_SSE to TARGET_SSE_P (opts->...)
9753 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9755 * tree-ssa-loop.h: Remove include files.
9756 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9757 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9758 * graphite-clast-to-gimple.c: Likewise.
9759 * graphite-scop-detection.c: Likewise.
9760 * graphite-sese-to-poly.c: Likewise.
9761 * ipa-inline-analysis.c: Likewise.
9762 * ipa-pure-const.c: Likewise.
9763 * loop-init.c: Likewise.
9764 * passes.c: Likewise.
9765 * predict.c: Likewise.
9766 * tree-cfg.c: Likewise.
9767 * tree-cfgcleanup.c: Likewise.
9768 * tree-chrec.c: Likewise.
9769 * tree-data-ref.c: Likewise.
9770 * tree-loop-distribution.c: Likewise.
9771 * tree-parloops.c: Likewise.
9772 * tree-predcom.c: Likewise.
9773 * tree-scalar-evolution.c: Likewise.
9774 * tree-ssa-address.c: Likewise.
9775 * tree-ssa.c: Likewise.
9776 * tree-ssa-dce.c: Likewise.
9777 * tree-ssa-loop.c: Likewise.
9778 * tree-ssa-loop-im.c: Likewise.
9779 * tree-ssa-loop-ivcanon.c: Likewise.
9780 * tree-ssa-loop-ivopts.c: Likewise.
9781 * tree-ssa-loop-manip.c: Likewise.
9782 * tree-ssa-loop-niter.c: Likewise.
9783 * tree-ssa-loop-prefetch.c: Likewise.
9784 * tree-ssa-loop-unswitch.c: Likewise.
9785 * tree-ssa-reassoc.c: Likewise.
9786 * tree-vect-data-refs.c: Likewise.
9787 * tree-vect-loop.c: Likewise.
9788 * tree-vect-loop-manip.c: Likewise.
9789 * tree-vectorizer.c: Likewise.
9790 * tree-vect-stmts.c: Likewise.
9791 * tree-vrp.c: Likewise.
9793 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9795 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9797 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9799 PR tree-optimization/58775
9800 PR tree-optimization/58791
9801 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9802 (insert_stmt_after): Rewritten, don't move the stmt, but really
9804 (get_stmt_uid_with_default): Remove.
9805 (build_and_add_sum): Use insert_stmt_after and
9806 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9807 (update_range_test): Set uid on stmts added by
9808 force_gimple_operand_gsi. Don't immediately modify statements
9809 in inter-bb optimization, just update oe->op values.
9810 (optimize_range_tests): Return bool whether any changed have been made.
9811 (update_ops): New function.
9812 (struct inter_bb_range_test_entry): New type.
9813 (maybe_optimize_range_tests): Perform statement changes here.
9814 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9815 ensure_ops_are_available): Remove.
9816 (find_insert_point): Rewritten.
9817 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9818 return LHS of the (new resp. old) stmt. Don't call
9819 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9820 instead of last, move new stmt at the right place.
9821 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9822 (negate_value): Likewise. Set uids.
9823 (break_up_subtract_bb): Initialize uids.
9824 (reassociate_bb): Adjust rewrite_expr_tree caller.
9825 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9827 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9830 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9831 TARGET_32BIT final condition.
9832 (mulsi3_internal2 and splitter): Same.
9834 2013-10-23 Jeff Law <law@redhat.com>
9836 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9837 through joiner blocks with abnormal outgoing edges.
9839 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9840 Add parameter JOINERS, to allow/disallow threading through joiner
9842 (thread_block): New. Call thread_block_1.
9843 (mark_threaded_blocks): Remove code to filter out certain cases
9844 of threading through joiner blocks.
9845 (thread_through_all_blocks): Document how we can have a dangling
9846 edge AUX field and clear it.
9848 2013-10-23 Ian Lance Taylor <iant@google.com>
9850 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9851 (C++ Dialect Options): Likewise.
9852 (Optimize Options): Likewise.
9854 2013-10-23 Tom de Vries <tom@codesourcery.com>
9856 PR tree-optimization/58805
9857 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9859 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9861 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9862 sequence based on get_range_info returned range.
9864 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9866 * tree-ssa.h: Remove all #include's
9867 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9868 * alias.c: Move required includes from tree-ssa.h.
9870 * builtins.c: Likewise.
9871 * calls.c: Likewise.
9872 * cfgexpand.c: Likewise.
9873 * cfghooks.c: Likewise.
9874 * cfgloop.c: Likewise.
9875 * cfgloopmanip.c: Likewise.
9876 * cgraph.c: Likewise.
9877 * cgraphbuild.c: Likewise.
9878 * cgraphclones.c: Likewise.
9879 * cgraphunit.c: Likewise.
9881 * except.c: Likewise.
9883 * final.c: Likewise.
9884 * fold-const.c: Likewise.
9885 * ggc-page.c: Likewise.
9886 * gimple-builder.c: Likewise.
9887 * gimple-fold.c: Likewise.
9888 * gimple-iterator.c: Likewise.
9889 * gimple-low.c: Likewise.
9890 * gimple-pretty-print.c: Likewise.
9891 * gimple-ssa-strength-reduction.c: Likewise.
9892 * gimple-streamer-in.c: Likewise.
9893 * gimple-streamer-out.c: Likewise.
9894 * gimplify.c: Likewise.
9895 * graphite-blocking.c: Likewise.
9896 * graphite-clast-to-gimple.c: Likewise.
9897 * graphite-dependences.c: Likewise.
9898 * graphite-interchange.c: Likewise.
9899 * graphite-optimize-isl.c: Likewise.
9900 * graphite-poly.c: Likewise.
9901 * graphite-scop-detection.c: Likewise.
9902 * graphite-sese-to-poly.c: Likewise.
9903 * graphite.c: Likewise.
9904 * ipa-cp.c: Likewise.
9905 * ipa-inline-analysis.c: Likewise.
9906 * ipa-inline-transform.c: Likewise.
9907 * ipa-inline.c: Likewise.
9908 * ipa-prop.c: Likewise.
9909 * ipa-pure-const.c: Likewise.
9910 * ipa-reference.c: Likewise.
9911 * ipa-split.c: Likewise.
9912 * ipa-utils.c: Likewise.
9913 * loop-init.c: Likewise.
9914 * lto-cgraph.c: Likewise.
9915 * lto-section-in.c: Likewise.
9916 * lto-section-out.c: Likewise.
9917 * lto-streamer-in.c: Likewise.
9918 * lto-streamer-out.c: Likewise.
9919 * lto-streamer.c: Likewise.
9920 * omp-low.c: Likewise.
9921 * passes.c: Likewise.
9922 * predict.c: Likewise.
9923 * print-tree.c: Likewise.
9924 * profile.c: Likewise.
9926 * targhooks.c: Likewise.
9927 * tracer.c: Likewise.
9928 * trans-mem.c: Likewise.
9929 * tree-call-cdce.c: Likewise.
9930 * tree-cfg.c: Likewise.
9931 * tree-cfgcleanup.c: Likewise.
9932 * tree-chrec.c: Likewise.
9933 * tree-complex.c: Likewise.
9934 * tree-data-ref.c: Likewise.
9935 * tree-dfa.c: Likewise.
9936 * tree-eh.c: Likewise.
9937 * tree-emutls.c: Likewise.
9938 * tree-if-conv.c: Likewise.
9939 * tree-inline.c: Likewise.
9940 * tree-into-ssa.c: Likewise.
9941 * tree-loop-distribution.c: Likewise.
9942 * tree-mudflap.c: Likewise.
9943 * tree-nested.c: Likewise.
9944 * tree-nrv.c: Likewise.
9945 * tree-object-size.c: Likewise.
9946 * tree-outof-ssa.c: Likewise.
9947 * tree-parloops.c: Likewise.
9948 * tree-phinodes.c: Likewise.
9949 * tree-predcom.c: Likewise.
9950 * tree-pretty-print.c: Likewise.
9951 * tree-profile.c: Likewise.
9952 * tree-scalar-evolution.c: Likewise.
9953 * tree-sra.c: Likewise.
9954 * tree-ssa-address.c: Likewise.
9955 * tree-ssa-alias.c: Likewise.
9956 * tree-ssa-ccp.c: Likewise.
9957 * tree-ssa-coalesce.c: Likewise.
9958 * tree-ssa-copy.c: Likewise.
9959 * tree-ssa-copyrename.c: Likewise.
9960 * tree-ssa-dce.c: Likewise.
9961 * tree-ssa-dom.c: Likewise.
9962 * tree-ssa-dse.c: Likewise.
9963 * tree-ssa-forwprop.c: Likewise.
9964 * tree-ssa-ifcombine.c: Likewise.
9965 * tree-ssa-live.c: Likewise.
9966 * tree-ssa-loop-ch.c: Likewise.
9967 * tree-ssa-loop-im.c: Likewise.
9968 * tree-ssa-loop-ivcanon.c: Likewise.
9969 * tree-ssa-loop-ivopts.c: Likewise.
9970 * tree-ssa-loop-manip.c: Likewise.
9971 * tree-ssa-loop-niter.c: Likewise.
9972 * tree-ssa-loop-prefetch.c: Likewise.
9973 * tree-ssa-loop-unswitch.c: Likewise.
9974 * tree-ssa-loop.c: Likewise.
9975 * tree-ssa-math-opts.c: Likewise.
9976 * tree-ssa-operands.c: Likewise.
9977 * tree-ssa-phiopt.c: Likewise.
9978 * tree-ssa-phiprop.c: Likewise.
9979 * tree-ssa-pre.c: Likewise.
9980 * tree-ssa-propagate.c: Likewise.
9981 * tree-ssa-reassoc.c: Likewise.
9982 * tree-ssa-sccvn.c: Likewise.
9983 * tree-ssa-sink.c: Likewise.
9984 * tree-ssa-strlen.c: Likewise.
9985 * tree-ssa-structalias.c: Likewise.
9986 * tree-ssa-tail-merge.c: Likewise.
9987 * tree-ssa-ter.c: Likewise.
9988 * tree-ssa-threadedge.c: Likewise.
9989 * tree-ssa-threadupdate.c: Likewise.
9990 * tree-ssa-uncprop.c: Likewise.
9991 * tree-ssa-uninit.c: Likewise.
9992 * tree-ssa.c: Likewise.
9993 * tree-ssanames.c: Likewise.
9994 * tree-stdarg.c: Likewise.
9995 * tree-streamer-in.c: Likewise.
9996 * tree-switch-conversion.c: Likewise.
9997 * tree-tailcall.c: Likewise.
9998 * tree-vect-data-refs.c: Likewise.
9999 * tree-vect-generic.c: Likewise.
10000 * tree-vect-loop-manip.c: Likewise.
10001 * tree-vect-loop.c: Likewise.
10002 * tree-vect-patterns.c: Likewise.
10003 * tree-vect-slp.c: Likewise.
10004 * tree-vect-stmts.c: Likewise.
10005 * tree-vectorizer.c: Likewise.
10006 * tree-vrp.c: Likewise.
10007 * tree.c: Likewise.
10008 * tsan.c: Likewise.
10009 * value-prof.c: Likewise.
10010 * var-tracking.c: Likewise.
10011 * varpool.c: Likewise.
10012 * vtable-verify.c: Likewise.
10014 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10016 * config/tilegx/tilegx.c: Include "tree.h".
10018 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10020 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
10021 the info, not after it.
10022 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
10023 dump_ssaname_info call.
10024 (pp_gimple_stmt_1): Adjust caller.
10025 (dump_phi_nodes): Likewise. Don't print "# " here.
10027 2013-10-22 Jan Hubicka <jh@suse.cz>
10029 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
10031 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
10032 * i386.c (expand_small_movmem_or_setmem): New function.
10033 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
10035 (alg_usable_p): Add support for value ranges; cleanup.
10036 (ix86_expand_set_or_movmem): Add support for misaligned moves.
10038 2013-10-22 Sterling Augustine <saugustine@google.com>
10040 * doc/invoke.texi: Document -ggnu-pubnames.
10041 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
10043 * dwarf2out.c: Include gdb/gdb-index.h.
10044 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
10045 debug_generate_pub_sections.
10046 (is_java, output_pubtables, output_pubname): New functions.
10047 (include_pubname_in_output): Handle debug_generate_pub_sections at
10049 (size_of_pubnames): Use new local space_for_flags based on
10050 debug_generate_pub_sections.
10051 (output_pubnames): Unify pubnames and pubtypes output logic.
10052 Genericize comments. Call output_pubname.
10053 (dwarf2out_finish): Move logic to output_pubnames and call it.
10055 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
10058 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
10059 Remove CCCmode handling.
10060 <case LTU>: Return 'c' suffix for CCCmode.
10061 <case GEU>: Return 'nc' suffix for CCCmode.
10062 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
10063 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
10064 (*sub<mode>3_cc_overflow): Ditto.
10065 (*subsi3_zext_cc_overflow): Ditto.
10067 2013-10-22 Steve Ellcey <sellcey@mips.com>
10069 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
10070 (AND (NOT OP1) (NOT OP2)).
10072 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
10074 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
10075 meaning of merge-high and merge-low masks for little endian; avoid
10076 use of vector-pack masks for little endian for mismatched modes.
10078 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10080 * config/tilepro/tilepro.c: Include "tree.h".
10082 2013-10-22 Andreas Schwab <schwab@suse.de>
10084 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
10087 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
10089 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
10090 [Ed Smith-Rowland]): New entries.
10091 ([Stephen M. Webb]): Update.
10093 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
10095 * tree-ssa-ter.h: Remove duplicate copy of file contents.
10097 2013-10-21 Marek Polacek <polacek@redhat.com>
10099 PR middle-end/58809
10100 * fold-const.c (fold_range_test): Return 0 if the type is not
10103 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
10105 * system.h: Move hwint.h include further down.
10106 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
10107 gcc_checking_asserts.
10108 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
10110 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10112 Fix volatile issues in optimize_bit_field_compare.
10113 * fold-const.c (optimize_bit_field_compare): Bail out if
10114 lvolatilep or rvolatilep.
10116 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10118 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
10119 and get_inner_reference returning different pmode for non-volatile
10120 bit-field members dependent on flag_strict_volatile_bitfields.
10121 * stor-layout.c (layout_decl): Remove special handling of
10122 flag_strict_volatile_bitfields.
10123 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
10124 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
10126 2013-10-21 Paulo Matos <pmatos@broadcom.com>
10128 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
10131 2013-10-21 Jeff Law <law@redhat.com>
10133 * tree-ssa-threadedge.c (thread_through_normal_block): New
10134 argument VISITED. Remove VISISTED as a local variable. When we
10135 have a threadable jump, verify the destination of the jump has not
10137 (thread_across_edge): Allocate VISITED bitmap once at function
10138 scope and use it throughout. Make sure to set appropriate bits in
10139 VISITED for E (start of jump thread path).
10140 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
10141 through a joiner if any edge on the path has a recorded jump thread.
10143 2013-10-21 Ian Lance Taylor <iant@google.com>
10145 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
10146 don't imply that attributes can solve all problems.
10147 (Directory Options): Fix typo.
10149 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10151 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
10152 extend and extend_add.
10154 2013-10-21 Richard Biener <rguenther@suse.de>
10156 PR tree-optimization/58794
10157 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
10158 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
10160 2013-10-21 Richard Biener <rguenther@suse.de>
10162 PR middle-end/58742
10163 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
10164 to (T) X for sign-changing conversions (or no conversion).
10166 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
10168 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
10170 2013-10-20 Jan Hubicka <jh@suse.cz>
10172 * config/i386/i386-tune.def: Add comment; organize into categories
10174 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
10176 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
10177 argument. Update function comment.
10178 (expand_set_or_movmem_via_rep): New function combining
10179 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
10180 (expand_movmem_via_rep_mov): Remove.
10181 expand_setmem_via_rep_stos): Remove.
10182 (expand_movmem_epilogue): Update calls correspondingly.
10183 (expand_setmem_epilogue_via_loop): Likewise.
10184 (emit_memset): New.
10185 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
10186 (expand_set_or_movmem_prologue): New function combining
10187 expand_movmem_prologue and expand_setmem_prologue.
10188 (expand_movmem_prologue): Remove.
10189 (expand_setmem_prologue): Remove.
10190 (expand_set_or_movmem_constant_prologue): New function combining
10191 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
10192 (expand_constant_movmem_prologue): Remove.
10193 (expand_constant_setmem_prologue): Remove.
10194 (promote_duplicated_reg): Allow vector-const0 value.
10195 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
10196 and ix86_expand_setmem.
10197 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
10198 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
10200 2013-10-21 Diego Novillo <dnovillo@google.com>
10202 * asan.c: Include tree.h
10203 * bb-reorder.c: Likewise.
10204 * cfgcleanup.c: Likewise.
10205 * cfgloopmanip.c: Likewise.
10206 * data-streamer-in.c: Likewise.
10207 * data-streamer-out.c: Likewise.
10208 * data-streamer.c: Likewise.
10209 * dwarf2cfi.c: Likewise.
10210 * graphite-blocking.c: Likewise.
10211 * graphite-clast-to-gimple.c: Likewise.
10212 * graphite-dependences.c: Likewise.
10213 * graphite-interchange.c: Likewise.
10214 * graphite-optimize-isl.c: Likewise.
10215 * graphite-poly.c: Likewise.
10216 * graphite-scop-detection.c: Likewise.
10217 * graphite-sese-to-poly.c: Likewise.
10218 * graphite.c: Likewise.
10219 * ipa-devirt.c: Likewise.
10220 * ipa-profile.c: Likewise.
10223 * loop-init.c: Likewise.
10224 * loop-unroll.c: Likewise.
10225 * lower-subreg.c: Likewise.
10226 * lto/lto-object.c: Likewise.
10227 * recog.c: Likewise.
10228 * reginfo.c: Likewise.
10229 * tree-loop-distribution.c: Likewise.
10230 * tree-parloops.c: Likewise.
10231 * tree-ssa-strlen.c: Likewise.
10232 * tree-streamer.c: Likewise.
10233 * value-prof.c: Likewise.
10234 * target-globals.c: Likewise.
10235 * expr.h: Include tree-core.h instead of tree.h.
10236 * gimple.h: Likewise.
10237 * ipa-prop.h: Likewise.
10238 * ipa-utils.h: Likewise.
10239 * lto-streamer.h: Likewise.
10240 * streamer-hooks.h: Likewise.
10241 * ipa-reference.h: Include cgraph.h instead of tree.h.
10242 * cgraph.h: Include basic-block.h instead of tree.h.
10243 * tree-streamer.h: Do not include tree.h.
10244 * genattrtab.c (write_header): Generate inclusion of tree.h.
10245 * genautomata.c (main): Likewise.
10246 * genemit.c: Likewise.
10247 * genopinit.c: Likewise.
10248 * genoutput.c (output_prologue): Likewise.
10249 * genpeep.c: Likewise.
10251 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10253 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
10255 (vec_unpacku_hi_v8hi): Likewise.
10256 (vec_unpacku_lo_v16qi): Likewise.
10257 (vec_unpacku_lo_v8hi): Likewise.
10259 2013-10-20 Jan Hubicka <jh@suse.cz>
10261 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
10262 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
10263 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
10265 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
10267 * config/mips/mips.h (ISA_HAS_WSBH): Define.
10268 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
10270 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
10272 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
10275 * system.h: Undef m_slot.
10277 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10279 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
10280 all elements for both endian flavors.
10282 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10285 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
10286 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
10287 and SI_REG for 64bit SYSV ABI targets.
10289 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10291 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
10292 to multi_reg_return. Clarify that we are skipping USEs of multiple
10293 return registers. Use bool type where appropriate.
10295 2013-10-18 Jan Hubicka <jh@suse.cz>
10297 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
10298 for cold functions.
10299 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
10300 (X86_TUNE_PUSH_MEMORY): Likewise.
10301 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
10302 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
10303 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
10305 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10306 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
10308 (ix86_option_override_internal): Update to use tune features instead
10311 2013-10-18 Cong Hou <congh@google.com>
10313 PR tree-optimization/58508
10314 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
10315 statement that contains data refs with zero-step.
10317 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10319 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
10320 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
10321 * gimple-low.c (gimple_check_call_arg,
10322 gimple_check_call_matching_types): Move to cgraph.c.
10323 * gimple-low.h: Remove prototype.
10324 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
10325 Relocate from gimple-low.c.
10326 * cgraph.h: Add prototype. Don't include basic-block.h.
10327 * gimplify.c: Add gimple-low to include list.
10328 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
10329 * tree-eh.c: Add gimple-low to include list.
10330 * tree-nested.c: Likewise.
10331 * cfgexpand.c: Add tree-ssa-address.h to include list.
10332 * expr.c: Likewise.
10333 * gimple-fold.c: Likewise.
10334 * gimple-ssa-strength-reduction.c: Likewise.
10335 * trans-mem.c: Likewise.
10336 * tree-mudflap.c: Likewise.
10337 * tree-ssa-loop-ivopts.c: Likewise.
10338 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
10339 (degenerate_phi_result): Move to tree-phinodes.c.
10340 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
10341 * tree-ssa-threadedge.c: Likewise.
10342 * tree-vrp.c: Likewise.
10343 * tree-phinodes.c (degenerate_phi_result): Relocate here.
10344 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
10345 * tree-phinodes.h (degenerate_phi_result): Add prototype.
10346 * tree-ssa-copy.c: Include tree-ssa-dom.h.
10347 * tree-ssa-forwprop.c: Likewise.
10348 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
10349 pass_data_cleanup_cfg_post_optimizing,
10350 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
10351 * tree-optimize.c: Delete File.
10352 * graphite.c: Include tree-cfgcleanup.h.
10353 * passes.c: Likewise.
10354 * tree-cfg.c: Likewise.
10355 * tree-profile.c: Likewise.
10356 * tree-ssa-dse.c: Likewise.
10357 * tree-ssa-loop-ivcanon.c: Likewise.
10358 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
10359 * tree-outof-ssa.c: Include sbitmap.h.
10360 * tree-ssa-live.c: Likewise.
10361 * tree-ssa-propagate.c: Likewise.
10362 * tree-ssa-structalias.c: Likewise.
10363 * tree-stdarg.c: Likewise.
10364 * Makefile.in (OBJS): Delete tree-optimize.o.
10365 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
10366 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
10367 * varasm.c: Include basic-block.h.
10368 * cfgloop.h: Include function.h instead of basic-block.h
10369 (bb_loop_depth): Move to cfgloop.c.
10370 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10372 2013-10-18 Teresa Johnson <tejohnson@google.com>
10374 * predict.c (probably_never_executed): Compare frequency-based
10375 count to number of training runs.
10376 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10378 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10380 * config/arm/arm.c (cortexa9_extra_costs): New table.
10381 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10383 2013-10-18 Jeff Law <law@redhat.com>
10385 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10387 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10388 (register_jump_thread): Add "registered_jump_thread" debug
10390 * dbgcnt.def (registered_jump_thread): New debug counter.
10392 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10394 * config/rs6000/rs6000.c: Include cgraph.h.
10396 2013-10-18 Teresa Johnson <tejohnson@google.com>
10398 * tree-ssa-tail-merge.c (replace_block_by): Update edge
10399 weights during merging.
10401 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10403 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
10404 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10405 * tree-ssa-operands.h: Remove prototype.
10406 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10407 * gimple.c (virtual_operand_p): Relocate from gimple.c.
10408 * gimple.h: Add prototype.
10409 * gimple-ssa.h: Include tree-ssa-operands.h.
10410 * tree-dump.c: Add tree-cfg.h to include list.
10411 * tree-ssa-alias.c: Add ipa-reference.h to include list.
10412 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10413 * config/i386/i386.c: Don't include tree-flow.h.
10414 * config/rs6000/rs6000.c: Likewise.
10416 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10418 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10420 2013-10-18 Richard Biener <rguenther@suse.de>
10422 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10423 or TYPE_UNSIGNED of integral types.
10424 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10425 NULL_TREE for zero-precision integral types.
10427 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
10429 * config/aarch64/arm_neon.h
10430 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10432 2013-10-17 Sriraman Tallam <tmsriram@google.com>
10435 * opth-gen.awk: Define target_flags_explicit.
10437 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10439 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10440 fields to the reg_addr array that describes the valid addressing
10441 mode for any register, general purpose registers, floating point
10442 registers, and Altivec registers.
10443 (FIRST_RELOAD_REG_CLASS): Likewise.
10444 (LAST_RELOAD_REG_CLASS): Likewise.
10445 (struct reload_reg_map_type): Likewise.
10446 (reload_reg_map_type): Likewise.
10447 (RELOAD_REG_VALID): Likewise.
10448 (RELOAD_REG_MULTIPLE): Likewise.
10449 (RELOAD_REG_INDEXED): Likewise.
10450 (RELOAD_REG_OFFSET): Likewise.
10451 (RELOAD_REG_PRE_INCDEC): Likewise.
10452 (RELOAD_REG_PRE_MODIFY): Likewise.
10453 (reg_addr): Likewise.
10454 (mode_supports_pre_incdec_p): New helper functions to say whether
10455 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10456 (mode_supports_pre_modify_p): Likewise.
10457 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10458 print the valid address mode bits for each mode.
10459 (rs6000_debug_print_mode): Likewise.
10460 (rs6000_debug_reg_global): Likewise.
10461 (rs6000_setup_reg_addr_masks): New function to set up the address
10462 mask bits for each type.
10463 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10464 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10465 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10466 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10467 PRE_MODIFY are supported.
10468 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10469 registers, instead of {src,dest}_av_p.
10470 (rs6000_print_options_internal): Tweak the debug output slightly.
10472 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10474 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10477 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
10479 * tree-flow.h (struct omp_region): Move to omp-low.c.
10480 Remove omp_ prototypes and variables.
10481 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10482 (copy_var_decl): Relocate prototype from tree-flow.h.
10483 * gimple.c (copy_var_decl): Relocate from omp-low.c.
10484 * tree.h: Move prototype to omp-low.h.
10485 * omp-low.h: New File. Relocate prototypes here.
10486 * omp-low.c (struct omp_region): Make local here.
10487 (root_omp_region): Make static.
10488 (copy_var_decl) Move to gimple.c.
10489 (new_omp_region): Make static.
10490 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
10491 * tree-cfg.c: Include omp-low.h.
10492 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10493 * gimplify.c: Include omp-low.h.
10494 * tree-parloops.c: Likewise.
10496 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10498 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10499 operands are in memory, prefer to force non-matched operand 1 to
10502 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10505 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10506 restrict TImode addresses to single indirect registers if both
10507 -mquad-memory and -mvsx-timode are used.
10508 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10509 we should emit load/store quad. Remove using %y for quad memory
10512 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10513 constraints to allow load/store quad on machines where TImode is
10514 not allowed in VSX registers. Use 'n' instead of 'F' constraint
10515 for TImode to load integer constants.
10517 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10519 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10521 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
10523 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10524 handling of STACK_REG.
10526 2013-10-17 Richard Biener <rguenther@suse.de>
10528 PR tree-optimization/58143
10529 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10531 (rewrite_to_defined_overflow): Likewise.
10532 (move_computations_dom_walker::before_dom): Rewrite stmts
10533 with undefined signed overflow that are not always executed
10534 into unsigned arithmetic.
10536 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10539 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10540 explicit isa flag to be an options variable, instead of using
10541 global_options_set. Remove define from rs6000.h.
10542 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10544 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10545 Initialize rs6000_isa_flags_explicit.
10546 (rs6000_function_specific_save): Add gcc_options* parameter, so
10547 that the powerpc builds after the 2013-10-15 changes.
10548 (rs6000_function_specific_restore): Likewise.
10550 2013-10-16 DJ Delorie <dj@redhat.com>
10552 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10553 op is a REG before checking REGNO.
10554 (rl78_alloc_physical_registers): Verify pattern is a SET before
10557 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10559 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10561 (vec_unpacks_lo_v4sf): Likewise.
10562 (vec_unpacks_float_hi_v4si): Likewise.
10563 (vec_unpacks_float_lo_v4si): Likewise.
10564 (vec_unpacku_float_hi_v4si): Likewise.
10565 (vec_unpacku_float_lo_v4si): Likewise.
10567 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10569 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10570 (vsx_concat_v2sf): Likewise.
10572 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
10574 * config/aarch64/aarch64.md
10575 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10577 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
10579 PR tree-optimization/58697
10580 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10581 estimated_loop_iterations_int.
10582 (max_stmt_executions_int): Call get_max_loop_iterations_int.
10583 (get_max_loop_iterations_int): New. HWINT version of
10584 get_max_loop_iterations.
10585 * cfgloop.h: Add prototypes.
10586 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10587 * loop-unroll.c (decide_peel_once_rolling): Call
10588 get_estimated_loop_iterations_int.
10589 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10590 * tree-ssa-loop-niter.h: Tweak prototypes.
10592 2013-10-16 David Malcolm <dmalcolm@redhat.com>
10594 * gengtype-parse.c (struct_field_seq): Ignore access-control
10595 keywords ("public:" etc).
10597 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
10599 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10600 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10602 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
10604 * config/arm/arm.opt (mlra): New option.
10605 * config/arm/arm.c (arm_lra_p): New function.
10606 (TARGET_LRA_P): Define.
10608 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10610 * tree-core.h (tree_code_name): Remove.
10611 * tree.h (get_tree_code_name): New prototype.
10612 * tree.c (tree_code_name): Make static.
10613 (get_tree_code_name): New function.
10614 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10615 tree_class_check_failed, tree_range_check_failed,
10616 tree_not_class_check_failed, omp_clause_check_failed,
10617 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10618 wrapper get_tree_code_name instead of calling tree_code_name directly.
10619 * tree-vrp.c (dump_asserts_for): Likewise.
10620 * tree-dump.c (dequeue_and_dump): Likewise.
10621 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10622 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10623 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10624 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10625 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10626 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10627 dump_gimple_omp_for): Likewise.
10628 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10629 * tree-ssa-pre.c (print_pre_expr): Likewise.
10630 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10631 * print-tree.c (print_node_brief, print_node): Likewise.
10632 * gimple.c (gimple_check_failed): Likewise.
10633 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10634 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10635 * config/mep/mep.c (mep_validate_vliw): Likewise.
10636 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10637 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10639 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10641 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10644 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10646 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10647 (MULTILIB_MATCHES): Add multilib for -march=v8.
10649 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10652 * optc-save-gen.awk: Add extra parameter to the save and restore
10654 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10655 * tree.c (build_optimization_node): New parameter. Add extra parameter
10656 to call to cl_optimization_save.
10657 (build_target_option_node): New parameter. Add extra parameter
10658 to call to cl_target_option_save.
10659 * tree.h (build_optimization_node): New parameter.
10660 (build_target_option_node): New parameter.
10661 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10662 build_optimization_node and build_target_option_node.
10663 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10664 (handle_pragma_push_options): Ditto.
10665 * toplev.c (process_options): Ditto.
10666 * opts.c (init_options_struct): Check for opts_set non-null.
10667 * target.def (target_option.save): New parameter.
10668 (target_option.restore): New parameter.
10669 * tm.texi: Generate.
10670 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10671 (ix86_pragma_target_parse): Ditto.
10672 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10674 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10675 to build_optimization_node and build_target_option_node.
10676 (rs6000_valid_attribute_p): Ditto.
10677 (rs6000_pragma_target_parse): Ditto.
10678 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10680 * config/i386/i386.h:
10681 TARGET_64BIT_P: New Macro
10682 TARGET_MMX_P: New Macro.
10683 TARGET_3DNOW_P: New Macro.
10684 TARGET_3DNOW_A_P: New Macro.
10685 TARGET_SSE_P: New Macro.
10686 TARGET_SSE2_P: New Macro.
10687 TARGET_SSE3_P: New Macro.
10688 TARGET_SSSE3_P: New Macro.
10689 TARGET_SSE4_1_P: New Macro.
10690 TARGET_SSE4_2_P: New Macro.
10691 TARGET_AVX_P: New Macro.
10692 TARGET_AVX2_P: New Macro.
10693 TARGET_AVX512F_P: New Macro.
10694 TARGET_AVX512PF_P: New Macro.
10695 TARGET_AVX512ER_P: New Macro.
10696 TARGET_AVX512CD_P: New Macro.
10697 TARGET_FMA_P: New Macro.
10698 TARGET_SSE4A_P: New Macro.
10699 TARGET_FMA4_P: New Macro.
10700 TARGET_XOP_P: New Macro.
10701 TARGET_LWP_P: New Macro.
10702 TARGET_ABM_P: New Macro.
10703 TARGET_BMI_P: New Macro.
10704 TARGET_BMI2_P: New Macro.
10705 TARGET_LZCNT_P: New Macro.
10706 TARGET_TBM_P: New Macro.
10707 TARGET_POPCNT_P: New Macro.
10708 TARGET_SAHF_P: New Macro.
10709 TARGET_MOVBE_P: New Macro.
10710 TARGET_CRC32_P: New Macro.
10711 TARGET_AES_P: New Macro.
10712 TARGET_PCLMUL_P: New Macro.
10713 TARGET_CMPXCHG16B_P: New Macro.
10714 TARGET_FSGSBASE_P: New Macro.
10715 TARGET_RDRND_P: New Macro.
10716 TARGET_F16C_P: New Macro.
10717 TARGET_RTM_P: New Macro.
10718 TARGET_HLE_P: New Macro.
10719 TARGET_RDSEED_P: New Macro.
10720 TARGET_PRFCHW_P: New Macro.
10721 TARGET_ADX_P: New Macro.
10722 TARGET_FXSR_P: New Macro.
10723 TARGET_XSAVE_P: New Macro.
10724 TARGET_XSAVEOPT_P: New Macro.
10725 TARGET_LP64_P: New Macro.
10726 TARGET_X32_P: New Macro.
10727 TARGET_FPMATH_DEFAULT_P: New Macro.
10728 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10729 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10731 Change ix86_tune_string to access opts->x_ix86_tune_string.
10732 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10733 Change ix86_arch_string to access opts->x_ix86_arch_string.
10734 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10735 Change ix86_pmode to access opts->x_ix86_pmode.
10736 Change ix86_abi to access opts->x_ix86_abi.
10737 Change ix86_cmodel to access opts->x_ix86_cmodel.
10738 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10739 Change ix86_isa_flags_explicit to access
10740 opts->x_ix86_isa_flags_explicit.
10741 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10742 Change ix86_regparm to access opts->x_ix86_regparm.
10743 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10744 Change ix86_preferred_stack_boundary_arg to access
10745 opts->x_ix86_preferred_stack_boundary_arg.
10746 Change ix86_force_align_arg_pointer to access
10747 opts->x_ix86_force_align_arg_pointer.
10748 Change ix86_incoming_stack_boundar_arg to access
10749 opts->x_ix86_incoming_stack_boundar_arg.
10750 Change ix86_fpmath to access opts->x_ix86_fpmath.
10751 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10752 Change ix86_recip_name to access opts->x_ix86_recip_name.
10753 Change ix86_stack_protector_guard to access
10754 opts->x_ix86_stack_protector_guard.
10755 Change ix86_tune_memcpy_strategy to access
10756 opts->x_ix86_tune_memcpy_strategy.
10757 Change ix86_tune_memset_strategy to access
10758 opts->x_ix86_tune_memset_strategy.
10759 Change global_options to access opts.
10760 Change global_options_set to access opts_set.
10761 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10762 Change TARGET_MMX to TARGET_MMX_P (opts->...).
10763 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10764 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10765 Change TARGET_SSE to TARGET_SSE_P (opts->...).
10766 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10767 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10768 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10769 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10770 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10771 Change TARGET_AVX to TARGET_AVX_P (opts->...).
10772 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10773 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10774 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10775 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10776 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10777 Change TARGET_FMA to TARGET_FMA_P (opts->...).
10778 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10779 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10780 Change TARGET_XOP to TARGET_XOP_P (opts->...).
10781 Change TARGET_LWP to TARGET_LWP_P (opts->...).
10782 Change TARGET_ABM to TARGET_ABM_P (opts->...).
10783 Change TARGET_BMI to TARGET_BMI_P (opts->...).
10784 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10785 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10786 Change TARGET_TBM to TARGET_TBM_P (opts->...).
10787 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10788 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10789 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10790 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10791 Change TARGET_AES to TARGET_AES_P (opts->...).
10792 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10793 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10794 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10795 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10796 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10797 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10798 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10799 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10800 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10801 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10802 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10803 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10804 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10805 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10806 Change TARGET_X32 to TARGET_X32_P (opts->...).
10807 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10808 Change TARGET_FLOAT_RETURNS_IN_80387 to
10809 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10810 (ix86_function_specific_save): New parameter. Use opts-> fields
10811 to replace global fields.
10812 (ix86_function_specific_restore): Ditto.
10813 (ix86_valid_target_attribute_inner_p): New parameters.
10814 Fix recursive call.
10815 Fix call to ix86_handle_option and set_option.
10816 (ix86_valid_target_attribute_tree): New parameters.
10817 Change global_options to access opts.
10818 Change global_options_set to access opts_set.
10819 Fix call to ix86_valid_target_attribute_inner_p.
10820 Change ix86_tune_string to access opts->x_ix86_tune_string.
10821 Change ix86_arch_string to access opts->x_ix86_arch_string.
10822 Change ix86_fpmath to access opts->x_ix86_fpmath
10823 Fix call to ix86_option_override_internal.
10824 Fix call to ix86_add_new_builtins.
10825 Fix calls to build_optimization_node and build_target_option_node.
10826 (ix86_valid_target_attribute_p): Remove access to global_options.
10827 Use new gcc_options structure func_options.
10828 Fix call to ix86_valid_target_attribute_tree.
10829 Fix call to build_optimization_node.
10830 (get_builtin_code_for_version): Fix call to
10831 ix86_valid_target_attribute_tree.
10833 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10835 * Makefile.in (PICFLAG): New.
10836 (enable_host_shared): New.
10837 (INTERNAL_CFLAGS): Use PICFLAG.
10838 (LIBIBERTY): Use pic build of libiberty.a if configured with
10839 --enable-host-shared.
10840 * configure.ac: Add --enable-host-shared, setting up new
10842 * configure: Regenerate.
10843 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10844 (--enable-host-shared): New option.
10846 2013-10-15 Richard Biener <rguenther@suse.de>
10848 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10849 for built-in functions.
10851 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10853 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10854 (optimize_range_tests_1): New function,
10855 extracted from optimize_range_tests.
10856 (optimize_range_tests_xor): Similarly.
10857 (optimize_range_tests_diff): New function.
10858 (optimize_range_tests): Use optimize_range_tests_1.
10860 2013-10-15 Cong Hou <congh@google.com>
10862 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10863 requirement of the reduction pattern so that one operand of the
10864 reduction operation can come from outside of the loop.
10866 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10868 * config/arm/neon-schedgen.ml: Remove.
10869 * config/arm/cortex-a9-neon.md: Remove comment regarding
10872 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10874 * config/arm/types: Remove old neon types.
10876 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10878 * config/arm/cortex-a7.md
10879 (cortex_a7_neon_type): New.
10880 (cortex_a7_neon_mul): Update for new types.
10881 (cortex_a7_neon_mla): Likewise.
10882 (cortex_a7_neon): Likewise.
10884 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10886 * config/arm/cortex-a15-neon.md
10887 (cortex_a15_neon_type): New,
10889 (cortex_a15_neon_int_1): Remove.
10890 (cortex_a15_neon_int_2): Likewise.
10891 (cortex_a15_neon_int_3): Likewise.
10892 (cortex_a15_neon_int_4): Likewise.
10893 (cortex_a15_neon_int_5): Likewise.
10894 (cortex_a15_neon_vqneg_vqabs): Likewise.
10895 (cortex_a15_neon_vmov): Likewise.
10896 (cortex_a15_neon_vaba): Likewise.
10897 (cortex_a15_neon_vaba_qqq): Likewise.
10898 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10899 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10900 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10902 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10903 (cortex_a15_neon_mla_qqq_8_16): Likewise.
10904 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10905 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10906 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10907 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10908 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10909 (cortex_a15_neon_shift_1): Likewise.
10910 (cortex_a15_neon_shift_2): Likewise.
10911 (cortex_a15_neon_shift_3): Likewise.
10912 (cortex_a15_neon_vshl_ddd): Likewise.
10913 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10914 (cortex_a15_neon_vsra_vrsra): Likewise.
10915 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10916 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10917 (cortex_a15_neon_bp_3cycle): Likewise.
10918 (cortex_a15_neon_ldm_2): Likewise.
10919 (cortex_a15_neon_stm_2): Likewise.
10920 (cortex_a15_neon_mcr): Likewise.
10921 (cortex_a15_neon_mrc): Likewise.
10922 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10923 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10924 (cortex_a15_neon_fp_vmul_ddd): Likewise.
10925 (cortex_a15_neon_fp_vmul_qqd): Likewise.
10926 (cortex_a15_neon_fp_vmla_ddd): Likewise.
10927 (cortex_a15_neon_fp_vmla_qqq): Likewise.
10928 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10929 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10930 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10931 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10932 (cortex_a15_neon_bp_simple): Likewise.
10933 (cortex_a15_neon_bp_2cycle): Likewise.
10934 (cortex_a15_neon_bp_3cycle): Likewise.
10935 (cortex_a15_neon_vld1_1_2_regs): Likewise.
10936 (cortex_a15_neon_vld1_3_4_regs): Likewise.
10937 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10938 (cortex_a15_neon_vld2_4_regs): Likewise.
10939 (cortex_a15_neon_vld3_vld4): Likewise.
10940 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10941 (cortex_a15_neon_vst1_3_4_regs): Likewise.
10942 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10943 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10944 (cortex_a15_neon_vst3_vst4): Rename to...
10945 (cortex_a15_neon_vst4): This, update for new attributes.
10946 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10947 (cortex_a15_neon_vld3_vld4_lane): Likewise.
10948 (cortex_a15_neon_vst1_vst2_lane): Likewise.
10949 (cortex_a15_neon_vst3_vst4_lane): Likewise.
10950 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10951 (cortex_a15_neon_ldm_2): Likewise.
10952 (cortex_a15_neon_stm_2): Likewise.
10953 (cortex_a15_neon_mcr): Likewise.
10954 (cortex_a15_neon_mcr_2_mcrr): Likewise.
10955 (cortex_a15_neon_mrc): Likewise.
10956 (cortex_a15_neon_mrrc): Likewise.
10958 (cortex_a15_neon_abd): New.
10959 (cortex_a15_neon_abd_q): Likewise.
10960 (cortex_a15_neon_aba): Likewise.
10961 (cortex_a15_neon_aba_q): Likewise.
10962 (cortex_a15_neon_acc): Likewise.
10963 (cortex_a15_neon_acc_q): Likewise.
10964 (cortex_a15_neon_arith_basic): Likewise.
10965 (cortex_a15_neon_arith_complex): Likewise.
10966 (cortex_a15_neon_multiply): Likewise.
10967 (cortex_a15_neon_multiply_q): Likewise.
10968 (cortex_a15_neon_mla): Likewise.
10969 (cortex_a15_neon_mla_q): Likewise.
10970 (cortex_a15_neon_sat_mla_long): Likewise.
10971 (cortex_a15_neon_shift_acc): Likewise.
10972 (cortex_a15_neon_shift_imm_basic): Likewise.
10973 (cortex_a15_neon_shift_imm_complex): Likewise.
10974 (cortex_a15_neon_shift_reg_basic): Likewise.
10975 (cortex_a15_neon_shift_reg_basic_q): Likewise.
10976 (cortex_a15_neon_shift_reg_complex): Likewise.
10977 (cortex_a15_neon_shift_reg_complex_q): Likewise.
10978 (cortex_a15_neon_fp_negabs): Likewise
10979 (cortex_a15_neon_fp_arith): Likewise
10980 (cortex_a15_neon_fp_arith_q): Likewise
10981 (cortex_a15_neon_fp_cvt_int): Likewise
10982 (cortex_a15_neon_fp_cvt_int_q): Likewise
10983 (cortex_a15_neon_fp_cvt_16): Likewise
10984 (cortex_a15_neon_fp_mul): Likewise
10985 (cortex_a15_neon_fp_mul_q): Likewise
10986 (cortex_a15_neon_fp_mla): Likewise
10987 (cortex_a15_neon_fp_mla_q): Likewise
10988 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10989 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10990 (cortex_a15_neon_bitops): Likewise.
10991 (cortex_a15_neon_bitops_q): Likewise.
10992 (cortex_a15_neon_from_gp): Likewise.
10993 (cortex_a15_neon_from_gp_q): Likewise.
10994 (cortex_a15_neon_tbl3_tbl4): Likewise.
10995 (cortex_a15_neon_zip_q): Likewise.
10996 (cortex_a15_neon_to_gp): Likewise.
10997 (cortex_a15_neon_load_a): Likewise.
10998 (cortex_a15_neon_load_b): Likewise.
10999 (cortex_a15_neon_load_c): Likewise.
11000 (cortex_a15_neon_load_d): Likewise.
11001 (cortex_a15_neon_load_e): Likewise.
11002 (cortex_a15_neon_load_f): Likewise.
11003 (cortex_a15_neon_store_a): Likewise.
11004 (cortex_a15_neon_store_b): Likewise.
11005 (cortex_a15_neon_store_c): Likewise.
11006 (cortex_a15_neon_store_d): Likewise.
11007 (cortex_a15_neon_store_e): Likewise.
11008 (cortex_a15_neon_store_f): Likewise.
11009 (cortex_a15_neon_store_g): Likewise.
11010 (cortex_a15_neon_store_h): Likewise.
11011 (cortex_a15_vfp_to_from_gp): Likewise.
11013 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11015 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
11017 (cortex_a9_neon_vshl_ddd): Remove.
11018 (cortex_a9_neon_vst3_vst4): Likewise.
11019 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
11021 (cortex_a9_neon_bit_ops_q): New.
11023 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
11024 (cortex_a9_neon_int_2): Likewise.
11025 (cortex_a9_neon_int_3): Likewise.
11026 (cortex_a9_neon_int_4): Likewise.
11027 (cortex_a9_neon_int_5): Likewise.
11028 (cortex_a9_neon_vqneg_vqabs): Likewise.
11029 (cortex_a9_neon_vmov): Likewise.
11030 (cortex_a9_neon_vaba): Likewise.
11031 (cortex_a9_neon_vaba_qqq): Likewise.
11032 (cortex_a9_neon_shift_1): Likewise.
11033 (cortex_a9_neon_shift_2): Likewise.
11034 (cortex_a9_neon_shift_3): Likewise.
11035 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11036 (cortex_a9_neon_vsra_vrsra): Likewise.
11037 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11038 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11039 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11041 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11042 (cortex_a9_neon_mla_qqq_8_16): Likewise.
11043 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
11045 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11046 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11047 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
11048 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11049 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
11050 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
11051 (cortex_a9_neon_fp_vsum): Likewise.
11052 (cortex_a9_neon_fp_vmul_ddd): Likewise.
11053 (cortex_a9_neon_fp_vmul_qqd): Likewise.
11054 (cortex_a9_neon_fp_vmla_ddd): Likewise.
11055 (cortex_a9_neon_fp_vmla_qqq): Likewise.
11056 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
11057 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
11058 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11059 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11060 (cortex_a9_neon_bp_simple): Likewise.
11061 (cortex_a9_neon_bp_2cycle): Likewise.
11062 (cortex_a9_neon_bp_3cycle): Likewise.
11063 (cortex_a9_neon_ldr): Likewise.
11064 (cortex_a9_neon_str): Likewise.
11065 (cortex_a9_neon_vld1_1_2_regs): Likewise.
11066 (cortex_a9_neon_vld1_3_4_regs): Likewise.
11067 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11068 (cortex_a9_neon_vld2_4_regs): Likewise.
11069 (cortex_a9_neon_vld3_vld4): Likewise.
11070 (cortex_a9_neon_vld1_vld2_lane): Likewise.
11071 (cortex_a9_neon_vld3_vld4_lane): Likewise.
11072 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
11073 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11074 (cortex_a9_neon_vst1_3_4_regs): Likewise.
11075 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
11076 (cortex_a9_neon_vst1_vst2_lane): Likewise.
11077 (cortex_a9_neon_vst3_vst4_lane): Likewise.
11078 (cortex_a9_neon_mcr): Likewise.
11079 (cortex_a9_neon_mcr_2_mcrr): Likewise.
11080 (cortex_a9_neon_mrc): Likewise.
11081 (cortex_a9_neon_mrrc): Likewise.
11083 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11085 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
11087 (cortex_a8_neon_vshl_ddd): Remove.
11088 (cortex_a8_neon_vst3_vst4): Likewise.
11089 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
11091 (cortex_a8_neon_bit_ops_q): New.
11093 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
11094 (cortex_a8_neon_int_2): Likewise..
11095 (cortex_a8_neon_int_3): Likewise.
11096 (cortex_a8_neon_int_5): Likewise.
11097 (cortex_a8_neon_vqneg_vqabs): Likewise.
11098 (cortex_a8_neon_int_4): Likewise.
11099 (cortex_a8_neon_vaba): Likewise.
11100 (cortex_a8_neon_vaba_qqq): Likewise.
11101 (cortex_a8_neon_shift_1): Likewise.
11102 (cortex_a8_neon_shift_2): Likewise.
11103 (cortex_a8_neon_shift_3): Likewise.
11104 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11105 (cortex_a8_neon_vsra_vrsra): Likewise.
11106 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11107 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11108 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11110 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11111 (cortex_a8_neon_mla_qqq_8_16): Likewise.
11112 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
11114 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11115 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11116 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
11117 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11118 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
11119 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
11120 (cortex_a8_neon_fp_vsum): Likewise.
11121 (cortex_a8_neon_fp_vmul_ddd): Likewise.
11122 (cortex_a8_neon_fp_vmul_qqd): Likewise.
11123 (cortex_a8_neon_fp_vmla_ddd): Likewise.
11124 (cortex_a8_neon_fp_vmla_qqq): Likewise.
11125 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
11126 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
11127 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11128 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11129 (cortex_a8_neon_bp_simple): Likewise.
11130 (cortex_a8_neon_bp_2cycle): Likewise.
11131 (cortex_a8_neon_bp_3cycle): Likewise.
11132 (cortex_a8_neon_ldr): Likewise.
11133 (cortex_a8_neon_str): Likewise.
11134 (cortex_a8_neon_vld1_1_2_regs): Likewise.
11135 (cortex_a8_neon_vld1_3_4_regs): Likewise.
11136 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11137 (cortex_a8_neon_vld2_4_regs): Likewise.
11138 (cortex_a8_neon_vld3_vld4): Likewise.
11139 (cortex_a8_neon_vld1_vld2_lane): Likewise.
11140 (cortex_a8_neon_vld3_vld4_lane): Likewise.
11141 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11142 (cortex_a8_neon_vst1_3_4_regs): Likewise.
11143 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
11144 (cortex_a8_neon_vst1_vst2_lane): Likewise.
11145 (cortex_a8_neon_vst3_vst4_lane): Likewise.
11146 (cortex_a8_neon_mcr): Likewise.
11147 (cortex_a8_neon_mcr_2_mcrr): Likewise.
11148 (cortex_a8_neon_mrc): Likewise.
11149 (cortex_a8_neon_mrrc): Likewise.
11151 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11153 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
11155 * config/aarch64/aarch64-simd.md (neon_type): Remove.
11156 (aarch64_simd_dup<mode>): Add "type" attribute.
11157 (aarch64_dup_lane<mode>): Likewise.
11158 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
11159 (*aarch64_simd_mov<mode>): Likewise.
11160 (aarch64_simd_mov_from_<mode>low): Likewise.
11161 (aarch64_simd_mov_from_<mode>high): Likewise.
11162 (orn<mode>3): Likewise.
11163 (bic<mode>3): Likewise.
11164 (add<mode>3): Likewise.
11165 (sub<mode>3): Likewise.
11166 (mul<mode>3): Likewise.
11167 (*aarch64_mul3_elt<mode>): Likewise.
11168 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
11169 (*aarch64_mul3_elt_to_128df): Likewise.
11170 (*aarch64_mul3_elt_to_64v2df): Likewise.
11171 (neg<mode>2): Likewise.
11172 (abs<mode>2): Likewise.
11173 (abd<mode>_3): Likewise.
11174 (aba<mode>_3): Likewise.
11175 (fabd<mode>_3): Likewise.
11176 (*fabd_scalar<mode>3): Likewise.
11177 (and<mode>3): Likewise.
11178 (ior<mode>3): Likewise.
11179 (xor<mode>3): Likewise.
11180 (one_cmpl<mode>2): Likewise.
11181 (aarch64_simd_vec_set<mode>): Likewise.
11182 (aarch64_simd_lshr<mode>): Likewise.
11183 (aarch64_simd_ashr<mode>): Likewise.
11184 (aarch64_simd_imm_shl<mode>): Likewise.
11185 (aarch64_simd_reg_sshl<mode): Likewise.
11186 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
11187 (aarch64_simd_reg_shl<mode>_signed): Likewise.
11188 (aarch64_simd_vec_setv2di): Likewise.
11189 (aarch64_simd_vec_set<mode>): Likewise.
11190 (aarch64_mla<mode>): Likewise.
11191 (*aarch64_mla_elt<mode>): Likewise.
11192 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
11193 (aarch64_mls<mode>): Likewise.
11194 (*aarch64_mls_elt<mode>): Likewise.
11195 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
11196 (<su><maxmin><mode>3): Likewise.
11197 (move_lo_quad_<mode>): Likewise.
11198 (aarch64_simd_move_hi_quad_<mode>): Likewise.
11199 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
11200 (vec_pack_trunc_<mode>): Likewise.
11201 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
11202 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
11203 (*aarch64_<su>mlal_lo<mode>): Likewise.
11204 (*aarch64_<su>mlal_hi<mode>): Likewise.
11205 (*aarch64_<su>mlsl_lo<mode>): Likewise.
11206 (*aarch64_<su>mlsl_hi<mode>): Likewise.
11207 (*aarch64_<su>mlal<mode>): Likewise.
11208 (*aarch64_<su>mlsl<mode>): Likewise.
11209 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
11210 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
11211 (add<mode>3): Likewise.
11212 (sub<mode>3): Likewise.
11213 (mul<mode>3): Likewise.
11214 (div<mode>3): Likewise.
11215 (neg<mode>2): Likewise.
11216 (abs<mode>2): Likewise.
11217 (fma<mode>4): Likewise.
11218 (*aarch64_fma4_elt<mode>): Likewise.
11219 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
11220 (*aarch64_fma4_elt_to_128df): Likewise.
11221 (*aarch64_fma4_elt_to_64v2df): Likewise.
11222 (fnma<mode>4): Likewise.
11223 (*aarch64_fnma4_elt<mode>): Likewise.
11224 (*aarch64_fnma4_elt_<vswap_width_name><mode>
11225 (*aarch64_fnma4_elt_to_128df): Likewise.
11226 (*aarch64_fnma4_elt_to_64v2df): Likewise.
11227 (<frint_pattern><mode>2): Likewise.
11228 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
11229 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
11230 (vec_unpacks_lo_v4sf): Likewise.
11231 (aarch64_float_extend_lo_v2df): Likewise.
11232 (vec_unpacks_hi_v4sf): Likewise.
11233 (aarch64_float_truncate_lo_v2sf): Likewise.
11234 (aarch64_float_truncate_hi_v4sf): Likewise.
11235 (aarch64_vmls<mode>): Likewise.
11236 (<su><maxmin><mode>3): Likewise.
11237 (<maxmin_uns><mode>3): Likewise.
11238 (reduc_<sur>plus_<mode>): Likewise.
11239 (reduc_<sur>plus_v2di): Likewise.
11240 (reduc_<sur>plus_v2si): Likewise.
11241 (reduc_<sur>plus_<mode>): Likewise.
11242 (aarch64_addpv4sf): Likewise.
11243 (clz<mode>2): Likewise.
11244 (reduc_<maxmin_uns>_<mode>): Likewise.
11245 (reduc_<maxmin_uns>_v2di): Likewise.
11246 (reduc_<maxmin_uns>_v2si): Likewise.
11247 (reduc_<maxmin_uns>_<mode>): Likewise.
11248 (reduc_<maxmin_uns>_v4sf): Likewise.
11249 (aarch64_simd_bsl<mode>_internal): Likewise.
11250 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11251 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
11252 (aarch64_get_lane<mode>): Likewise.
11253 (*aarch64_combinez<mode>): Likewise.
11254 (aarch64_combine<mode>): Likewise.
11255 (aarch64_simd_combine<mode>): Likewise.
11256 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
11257 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
11258 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
11259 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
11260 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
11261 (aarch64_<sur>h<addsub><mode>): Likewise.
11262 (aarch64_<sur><addsub>hn<mode>): Likewise.
11263 (aarch64_<sur><addsub>hn2<mode>): Likewise.
11264 (aarch64_pmul<mode>): Likewise.
11265 (aarch64_<su_optab><optab><mode>): Likewise.
11266 (aarch64_<sur>qadd<mode>): Likewise.
11267 (aarch64_sqmovun<mode>): Likewise.
11268 (aarch64_<sur>qmovn<mode>): Likewise.
11269 (aarch64_s<optab><mode>): Likewise.
11270 (aarch64_sq<r>dmulh<mode>): Likewise.
11271 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11272 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
11273 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11274 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
11275 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11276 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11277 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
11278 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
11279 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11280 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11281 (aarch64_sqdmull<mode>): Likewise.
11282 (aarch64_sqdmull_lane<mode>_internal): Likewise.
11283 (aarch64_sqdmull_n<mode>): Likewise.
11284 (aarch64_sqdmull2<mode>_internal): Likewise.
11285 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11286 (aarch64_sqdmull2_n<mode>_internal): Likewise.
11287 (aarch64_<sur>shl<mode>): Likewise.
11288 (aarch64_<sur>q<r>shl<mode>
11289 (aarch64_<sur>shll_n<mode>): Likewise.
11290 (aarch64_<sur>shll2_n<mode>): Likewise.
11291 (aarch64_<sur>shr_n<mode>): Likewise.
11292 (aarch64_<sur>sra_n<mode>): Likewise.
11293 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
11294 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
11295 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
11296 (aarch64_cm<optab><mode>): Likewise.
11297 (aarch64_cm<optab>di): Likewise.
11298 (aarch64_cm<optab><mode>): Likewise.
11299 (aarch64_cm<optab>di): Likewise.
11300 (aarch64_cmtst<mode>): Likewise.
11301 (aarch64_cmtstdi): Likewise.
11302 (aarch64_cm<optab><mode>): Likewise.
11303 (*aarch64_fac<optab><mode>): Likewise.
11304 (aarch64_addp<mode>): Likewise.
11305 (aarch64_addpdi): Likewise.
11306 (sqrt<mode>2): Likewise.
11307 (vec_load_lanesoi<mode>): Likewise.
11308 (vec_store_lanesoi<mode>): Likewise.
11309 (vec_load_lanesci<mode>): Likewise.
11310 (vec_store_lanesci<mode>): Likewise.
11311 (vec_load_lanesxi<mode>): Likewise.
11312 (vec_store_lanesxi<mode>): Likewise.
11313 (*aarch64_mov<mode>): Likewise.
11314 (aarch64_ld2<mode>_dreg): Likewise.
11315 (aarch64_ld2<mode>_dreg): Likewise.
11316 (aarch64_ld3<mode>_dreg): Likewise.
11317 (aarch64_ld3<mode>_dreg): Likewise.
11318 (aarch64_ld4<mode>_dreg): Likewise.
11319 (aarch64_ld4<mode>_dreg): Likewise.
11320 (aarch64_tbl1<mode>): Likewise.
11321 (aarch64_tbl2v16qi): Likewise.
11322 (aarch64_combinev16qi): Likewise.
11323 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
11324 (aarch64_st2<mode>_dreg): Likewise.
11325 (aarch64_st2<mode>_dreg): Likewise.
11326 (aarch64_st3<mode>_dreg): Likewise.
11327 (aarch64_st3<mode>_dreg): Likewise.
11328 (aarch64_st4<mode>_dreg): Likewise.
11329 (aarch64_st4<mode>_dreg): Likewise.
11330 (*aarch64_simd_ld1r<mode>): Likewise.
11331 (aarch64_frecpe<mode>): Likewise.
11332 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
11333 (aarch64_frecps<mode>): Likewise.
11335 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11337 * config/arm/iterators.md (V_elem_ch): New.
11339 (VQH_type): Likewise.
11340 * config/arm/arm.md (is_neon_type): New.
11341 (conds): Use is_neon_type.
11342 (anddi3_insn): Update type attribute.
11343 (xordi3_insn): Likewise.
11344 (one_cmpldi2): Likewise.
11345 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
11346 * config/arm/neon.md (neon_mov): Update type attribute.
11347 (*movmisalign<mode>_neon_store): Likewise.
11348 (*movmisalign<mode>_neon_load): Likewise.
11349 (vec_set<mode>_internal): Likewise.
11350 (vec_set<mode>_internal): Likewise.
11351 (vec_setv2di_internal): Likewise.
11352 (vec_extract<mode>): Likewise.
11353 (vec_extract<mode>): Likewise.
11354 (vec_extractv2di): Likewise.
11355 (*add<mode>3_neon): Likewise.
11356 (adddi3_neon): Likewise.
11357 (*sub<mode>3_neon): Likewise.
11358 (subdi3_neon): Likewise.
11359 (fma<VCVTF:mode>4): Likewise.
11360 (fma<VCVTF:mode>4_intrinsic): Likewise.
11361 (*fmsub<VCVTF:mode>4): Likewise.
11362 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11363 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11364 (ior<mode>3): Likewise.
11365 (and<mode>3): Likewise.
11366 (orn<mode>3_neon): Likewise.
11367 (orndi3_neon): Likewise.
11368 (bic<mode>3_neon): Likewise.
11369 (bicdi3_neon): Likewise.
11370 (xor<mode>3): Likewise.
11371 (one_cmpl<mode>2): Likewise.
11372 (abs<mode>2): Likewise.
11373 (neg<mode>2): Likewise.
11374 (negdi2_neon): Likewise.
11375 (*umin<mode>3_neon): Likewise.
11376 (*umax<mode>3_neon): Likewise.
11377 (*smin<mode>3_neon): Likewise.
11378 (*smax<mode>3_neon): Likewise.
11379 (vashl<mode>3): Likewise.
11380 (vashr<mode>3_imm): Likewise.
11381 (vlshr<mode>3_imm): Likewise.
11382 (ashl<mode>3_signed): Likewise.
11383 (ashl<mode>3_unsigned): Likewise.
11384 (neon_load_count): Likewise.
11385 (ashldi3_neon_noclobber): Likewise.
11386 (ashldi3_neon): Likewise.
11387 (signed_shift_di3_neon): Likewise.
11388 (unsigned_shift_di3_neon): Likewise.
11389 (ashrdi3_neon_imm_noclobber): Likewise.
11390 (lshrdi3_neon_imm_noclobber): Likewise.
11391 (<shift>di3_neon): Likewise.
11392 (widen_ssum<mode>3): Likewise.
11393 (widen_usum<mode>3): Likewise.
11394 (quad_halves_<code>v4si): Likewise.
11395 (quad_halves_<code>v4sf): Likewise.
11396 (quad_halves_<code>v8hi): Likewise.
11397 (quad_halves_<code>v16qi): Likewise.
11398 (reduc_splus_v2di): Likewise.
11399 (neon_vpadd_internal<mode>): Likewise.
11400 (neon_vpsmin<mode>): Likewise.
11401 (neon_vpsmax<mode>): Likewise.
11402 (neon_vpumin<mode>): Likewise.
11403 (neon_vpumax<mode>): Likewise.
11404 (*ss_add<mode>_neon): Likewise.
11405 (*us_add<mode>_neon): Likewise.
11406 (*ss_sub<mode>_neon): Likewise.
11407 (*us_sub<mode>_neon): Likewise.
11408 (neon_vadd<mode>_unspec): Likewise.
11409 (neon_vaddl<mode>): Likewise.
11410 (neon_vaddw<mode>): Likewise.
11411 (neon_vhadd<mode>): Likewise.
11412 (neon_vqadd<mode>): Likewise.
11413 (neon_vaddhn<mode>): Likewise.
11414 (neon_vmul<mode>): Likewise.
11415 (neon_vfms<VCVTF:mode>): Likewise.
11416 (neon_vmlal<mode>): Likewise.
11417 (neon_vmls<mode>): Likewise.
11418 (neon_vmlsl<mode>): Likewise.
11419 (neon_vqdmulh<mode>): Likewise.
11420 (neon_vqdmlal<mode>): Likewise.
11421 (neon_vqdmlsl<mode>): Likewise.
11422 (neon_vmull<mode>): Likewise.
11423 (neon_vqdmull<mode>): Likewise.
11424 (neon_vsub<mode>_unspec): Likewise.
11425 (neon_vsubl<mode>): Likewise.
11426 (neon_vsubw<mode>): Likewise.
11427 (neon_vqsub<mode>): Likewise.
11428 (neon_vhsub<mode>): Likewise.
11429 (neon_vsubhn<mode>): Likewise.
11430 (neon_vceq<mode>): Likewise.
11431 (neon_vcge<mode>): Likewise.
11432 (neon_vcgeu<mode>): Likewise.
11433 (neon_vcgt<mode>): Likewise.
11434 (neon_vcgtu<mode>): Likewise.
11435 (neon_vcle<mode>): Likewise.
11436 (neon_vclt<mode>): Likewise.
11437 (neon_vcage<mode>): Likewise.
11438 (neon_vcagt<mode>): Likewise.
11439 (neon_vtst<mode>): Likewise.
11440 (neon_vabd<mode>): Likewise.
11441 (neon_vabdl<mode>): Likewise.
11442 (neon_vaba<mode>): Likewise.
11443 (neon_vabal<mode>): Likewise.
11444 (neon_vmax<mode>): Likewise.
11445 (neon_vmin<mode>): Likewise.
11446 (neon_vpaddl<mode>): Likewise.
11447 (neon_vpadal<mode>): Likewise.
11448 (neon_vpmax<mode>): Likewise.
11449 (neon_vpmin<mode>): Likewise.
11450 (neon_vrecps<mode>): Likewise.
11451 (neon_vrsqrts<mode>): Likewise.
11452 (neon_vqabs<mode>): Likewise.
11453 (neon_vqneg<mode>): Likewise.
11454 (neon_vcls<mode>): Likewise.
11455 (clz<mode>2): Likewise.
11456 (popcount<mode>2): Likewise.
11457 (neon_vrecpe<mode>): Likewise.
11458 (neon_vrsqrte<mode>): Likewise.
11459 (neon_vget_lane<mode>_sext_internal): Likewise.
11460 (neon_vget_lane<mode>_zext_internal): Likewise.
11461 (neon_vdup_n<mode>): Likewise.
11462 (neon_vdup_n<mode>): Likewise.
11463 (neon_vdup_nv2di): Likewise.
11464 (neon_vdup_lane<mode>_interal): Likewise.
11465 (*neon_vswp<mode>): Likewise.
11466 (neon_vcombine<mode>): Likewise.
11467 (float<mode><V_cvtto>2): Likewise.
11468 (floatuns<mode><V_cvtto>2): Likewise.
11469 (fix_trunc<mode><V_cvtto>2): Likewise.
11470 (fixuns_trunc<mode><V_cvtto>2
11471 (neon_vcvt<mode>): Likewise.
11472 (neon_vcvt<mode>): Likewise.
11473 (neon_vcvtv4sfv4hf): Likewise.
11474 (neon_vcvtv4hfv4sf): Likewise.
11475 (neon_vcvt_n<mode>): Likewise.
11476 (neon_vcvt_n<mode>): Likewise.
11477 (neon_vmovn<mode>): Likewise.
11478 (neon_vqmovn<mode>): Likewise.
11479 (neon_vqmovun<mode>): Likewise.
11480 (neon_vmovl<mode>): Likewise.
11481 (neon_vmul_lane<mode>): Likewise.
11482 (neon_vmul_lane<mode>): Likewise.
11483 (neon_vmull_lane<mode>): Likewise.
11484 (neon_vqdmull_lane<mode>): Likewise.
11485 (neon_vqdmulh_lane<mode>): Likewise.
11486 (neon_vqdmulh_lane<mode>): Likewise.
11487 (neon_vmla_lane<mode>): Likewise.
11488 (neon_vmla_lane<mode>): Likewise.
11489 (neon_vmlal_lane<mode>): Likewise.
11490 (neon_vqdmlal_lane<mode>): Likewise.
11491 (neon_vmls_lane<mode>): Likewise.
11492 (neon_vmls_lane<mode>): Likewise.
11493 (neon_vmlsl_lane<mode>): Likewise.
11494 (neon_vqdmlsl_lane<mode>): Likewise.
11495 (neon_vext<mode>): Likewise.
11496 (neon_vrev64<mode>): Likewise.
11497 (neon_vrev32<mode>): Likewise.
11498 (neon_vrev16<mode>): Likewise.
11499 (neon_vbsl<mode>_internal): Likewise.
11500 (neon_vshl<mode>): Likewise.
11501 (neon_vqshl<mode>): Likewise.
11502 (neon_vshr_n<mode>): Likewise.
11503 (neon_vshrn_n<mode>): Likewise.
11504 (neon_vqshrn_n<mode>): Likewise.
11505 (neon_vqshrun_n<mode>): Likewise.
11506 (neon_vshl_n<mode>): Likewise.
11507 (neon_vqshl_n<mode>): Likewise.
11508 (neon_vqshlu_n<mode>): Likewise.
11509 (neon_vshll_n<mode>): Likewise.
11510 (neon_vsra_n<mode>): Likewise.
11511 (neon_vsri_n<mode>): Likewise.
11512 (neon_vsli_n<mode>): Likewise.
11513 (neon_vtbl1v8qi): Likewise.
11514 (neon_vtbl2v8qi): Likewise.
11515 (neon_vtbl3v8qi): Likewise.
11516 (neon_vtbl4v8qi): Likewise.
11517 (neon_vtbl1v16qi): Likewise.
11518 (neon_vtbl2v16qi): Likewise.
11519 (neon_vcombinev16qi): Likewise.
11520 (neon_vtbx1v8qi): Likewise.
11521 (neon_vtbx2v8qi): Likewise.
11522 (neon_vtbx3v8qi): Likewise.
11523 (neon_vtbx4v8qi): Likewise.
11524 (*neon_vtrn<mode>_insn): Likewise.
11525 (*neon_vzip<mode>_insn): Likewise.
11526 (*neon_vuzp<mode>_insn): Likewise.
11527 (neon_vld1<mode>): Likewise.
11528 (neon_vld1_lane<mode>): Likewise.
11529 (neon_vld1_lane<mode>): Likewise.
11530 (neon_vld1_dup<mode>): Likewise.
11531 (neon_vld1_dup<mode>): Likewise.
11532 (neon_vld1_dupv2di): Likewise.
11533 (neon_vst1<mode>): Likewise.
11534 (neon_vst1_lane<mode>): Likewise.
11535 (neon_vst1_lane<mode>): Likewise.
11536 (neon_vld2<mode>): Likewise.
11537 (neon_vld2<mode>): Likewise.
11538 (neon_vld2_lane<mode>): Likewise.
11539 (neon_vld2_lane<mode>): Likewise.
11540 (neon_vld2_dup<mode>): Likewise.
11541 (neon_vst2<mode>): Likewise.
11542 (neon_vst2<mode>): Likewise.
11543 (neon_vst2_lane<mode>): Likewise.
11544 (neon_vst2_lane<mode>): Likewise.
11545 (neon_vld3<mode>): Likewise.
11546 (neon_vld3qa<mode>): Likewise.
11547 (neon_vld3qb<mode>): Likewise.
11548 (neon_vld3_lane<mode>): Likewise.
11549 (neon_vld3_lane<mode>): Likewise.
11550 (neon_vld3_dup<mode>): Likewise.
11551 (neon_vst3<mode>): Likewise.
11552 (neon_vst3qa<mode>): Likewise.
11553 (neon_vst3qb<mode>): Likewise.
11554 (neon_vst3_lane<mode>): Likewise.
11555 (neon_vst3_lane<mode>): Likewise.
11556 (neon_vld4<mode>): Likewise.
11557 (neon_vld4qa<mode>): Likewise.
11558 (neon_vld4qb<mode>): Likewise.
11559 (neon_vld4_lane<mode>): Likewise.
11560 (neon_vld4_lane<mode>): Likewise.
11561 (neon_vld4_dup<mode>): Likewise.
11562 (neon_vst4<mode>): Likewise.
11563 (neon_vst4qa<mode>): Likewise.
11564 (neon_vst4qb<mode>): Likewise.
11565 (neon_vst4_lane<mode>): Likewise.
11566 (neon_vst4_lane<mode>): Likewise.
11567 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11568 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11569 (neon_vec_<US>mult_lo_<mode>): Likewise.
11570 (neon_vec_<US>mult_hi_<mode>): Likewise.
11571 (neon_vec_<US>shiftl_<mode>): Likewise.
11572 (neon_unpack<US>_<mode>): Likewise.
11573 (neon_vec_<US>mult_<mode>): Likewise.
11574 (vec_pack_trunc_<mode>): Likewise.
11575 (neon_vec_pack_trunc_<mode>): Likewise.
11576 (neon_vabd<mode>_2): Likewise.
11577 (neon_vabd<mode>_3): Likewise.
11579 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11581 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11582 (load_pair): Update type attribute.
11583 (store_pair): Update type attribute.
11584 * config/aarch64/iterators.md (q): New.
11586 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11588 * config/arm/types.md: Add new types for Neon insns.
11590 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11591 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11592 Sergey Lega <sergey.s.lega@intel.com>
11593 Anna Tikhonova <anna.tikhonova@intel.com>
11594 Ilya Tocar <ilya.tocar@intel.com>
11595 Andrey Turetskiy <andrey.turetskiy@intel.com>
11596 Ilya Verbin <ilya.verbin@intel.com>
11597 Kirill Yukhin <kirill.yukhin@intel.com>
11598 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11600 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11601 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11602 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11603 (rcp14<mode>): New.
11604 (srcp14<mode>): Ditto.
11605 (rsqrt14<mode>): Ditto.
11606 (rsqrt14<mode>): Ditto.
11607 (avx512f_vmscalef<mode>): Ditto.
11608 (avx512f_scalef<mode>): Ditto.
11609 (avx512f_getexp<mode>): Ditto.
11610 (avx512f_sgetexp<mode>): Ditto.
11611 (avx512f_fixupimm<mode>): Ditto.
11612 (avx512f_sfixupimm<mode>): Ditto.
11613 (avx512f_rndscale<mode>): Ditto.
11614 (*avx512er_exp2<mode>): Ditto.
11615 (*avx512er_rcp28<mode>): Ditto.
11616 (avx512er_rsqrt28<mode>): Ditto.
11617 (avx512f_getmant<mode>): Ditto.
11618 (avx512f_getmant<mode>): Ditto.
11619 (avx512f_rndscale<mode>): Fix formatting.
11621 2013-10-15 Martin Jambor <mjambor@suse.cz>
11623 * ipa-utils.h (ipa_edge_within_scc): Declare.
11624 * ipa-cp.c (edge_within_scc): Moved...
11625 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11627 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11628 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11629 Sergey Lega <sergey.s.lega@intel.com>
11630 Anna Tikhonova <anna.tikhonova@intel.com>
11631 Ilya Tocar <ilya.tocar@intel.com>
11632 Andrey Turetskiy <andrey.turetskiy@intel.com>
11633 Ilya Verbin <ilya.verbin@intel.com>
11634 Kirill Yukhin <kirill.yukhin@intel.com>
11635 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11637 * config/i386/predicates.md (const_8_to_15_operand): New.
11638 (const_16_to_31_operand): Ditto.
11639 * config/i386/sse.md (V8FI): New.
11641 (reduc_splus_v8df): Ditto.
11642 (reduc_splus_v16sf): Ditto.
11643 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11644 (vec_extract_hi_<mode>): Ditto.
11645 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11646 (vec_set_lo_<mode>): Ditto.
11647 (vec_set_hi_<mode>): Ditto.
11648 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11649 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11650 (avx512f_pshufd_1): Ditto.
11651 (avx512f_broadcast<mode>): Ditto.
11652 (avx512f_broadcast<mode>): Ditto.
11653 (define_split): Split vec_extract_lo into move.
11654 (ssequartermode): Ditto.
11655 (ssedoublemode): Extened with wider modes.
11656 (vec_extract_lo_<mode>): Ditto.
11658 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11660 Sergey Lega <sergey.s.lega@intel.com>
11661 Anna Tikhonova <anna.tikhonova@intel.com>
11662 Ilya Tocar <ilya.tocar@intel.com>
11663 Andrey Turetskiy <andrey.turetskiy@intel.com>
11664 Ilya Verbin <ilya.verbin@intel.com>
11665 Kirill Yukhin <kirill.yukhin@intel.com>
11666 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11668 * config/i386/predicates.md (register_or_constm1_operand): New.
11669 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11670 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11671 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11672 UNSPEC_SCATTER_PREFETCH
11674 (avx512f_ucmp<mode>3): Ditto.
11675 (avx512f_vternlog<mode>): Ditto.
11676 (avx512f_align<mode>): Ditto.
11677 (<shift_insn><mode>3): Ditto.
11678 (avx512f_<rotate>v<mode>): Ditto.
11679 (avx512f_<rotate><mode>): Ditto.
11680 (avx512f_eq<mode>3): Ditto.
11681 (avx512f_eq<mode>3_1): Ditto.
11682 (avx512f_gt<mode>3): Ditto.
11683 (avx512f_testm<mode>3): Ditto.
11684 (avx512f_testnm<mode>3): Ditto.
11685 (avx512pf_gatherpf<mode>): Ditto.
11686 (*avx512pf_gatherpf<mode>_mask): Ditto.
11687 (*avx512pf_gatherpf<mode>): Ditto.
11688 (avx512pf_scatterpf<mode>): Ditto.
11689 (*avx512pf_scatterpf<mode>_mask): Ditto.
11690 (*avx512pf_scatterpf<mode>): Ditto.
11691 (avx512f_vec_dup_gpr<mode>): Ditto.
11692 (clz<mode>2): Ditto.
11693 (conflict<mode>): Ditto.
11694 (REDUC_SMINMAX_MODE): Extened with wider modes.
11695 (reduc_<code>_<mode>): Ditto.
11696 (vlshr<mode>3): Ditto.
11697 (vashl<mode>3): Ditto.
11699 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11700 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11701 Sergey Lega <sergey.s.lega@intel.com>
11702 Anna Tikhonova <anna.tikhonova@intel.com>
11703 Ilya Tocar <ilya.tocar@intel.com>
11704 Andrey Turetskiy <andrey.turetskiy@intel.com>
11705 Ilya Verbin <ilya.verbin@intel.com>
11706 Kirill Yukhin <kirill.yukhin@intel.com>
11707 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11709 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11712 (avx512fmaskmode): Ditto.
11713 (bcstscalarsuff): Ditto.
11714 (avx512f_blendm<mode>): Ditto.
11715 (cmp_imm_predicate): Ditto.
11716 (avx512f_cmp<mode>3): Ditto.
11717 (avx512f_vec_dup<mode>): Ditto.
11718 (avx512f_vec_dup_mem<mode>): Ditto.
11719 (avx512f_vpermi2var<mode>3): Ditto.
11720 (avx512f_vpermt2var<mode>3): Ditto.
11721 (vec_init<mode>): Ditto.
11722 (avx512f_gathersi<mode>): Ditto.
11723 (*avx512f_gathersi<mode>): Ditto.
11724 (*avx512f_gathersi<mode>_2): Ditto.
11725 (avx512f_gatherdi<mode>): Ditto.
11726 (*avx512f_gatherdi<mode>): Ditto.
11727 (*avx512f_gatherdi<mode>_2): Ditto.
11728 (avx512f_scattersi<mode>): Ditto.
11729 (*avx512f_scattersi<mode>): Ditto.
11730 (avx512f_scatterdi<mode>): Ditto.
11731 (*avx512f_scatterdi<mode>): Ditto.
11732 (sseintprefix): Extened with wider modes.
11733 (VEC_GATHER_IDXSI): Ditto.
11734 (VEC_GATHER_IDXDI): Ditto.
11735 (VEC_GATHER_SRCDI): Ditto.
11737 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11738 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11740 * config/arm/t-aprofile: New file.
11741 * config.gcc: Handle --with-multilib-list option.
11743 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
11745 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11748 2013-10-15 Richard Biener <rguenther@suse.de>
11750 * tree-loop-distribution.c (build_empty_rdg): Inline into
11752 (rdg_flag_vertex): Inline into single user.
11753 (rdg_flag_vertex_and_dependent): Likewise.
11754 (build_rdg_partition_for_vertex): Remove processed bitmap.
11755 (rdg_build_partitions): Simplify.
11757 2013-10-15 Richard Biener <rguenther@suse.de>
11759 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11760 Restructure forwarding through conversions and copies to
11761 avoid performing copy-propagation the wrong way. Adjust
11762 recursion invocations.
11763 (forward_propagate_addr_expr): Add argument stating if we
11764 are recursing from a single-use.
11765 (ssa_forward_propagate_and_combine): Adjust.
11767 2013-10-14 David Malcolm <dmalcolm@redhat.com>
11769 * dumpfile.h (gcc::dump_manager): New class, to hold state
11770 relating to dumpfile management.
11771 (get_dump_file_name): Remove in favor of method of dump_manager.
11772 (dump_initialized_p): Likewise.
11773 (dump_start): Likewise.
11774 (dump_finish): Likewise.
11775 (dump_switch_p): Likewise.
11776 (dump_register): Likewise.
11777 (get_dump_file_info): Likewise.
11778 * context.c (gcc::context::context): Construct the dump_manager
11780 * context.h (gcc::context::get_dumps): New.
11781 (gcc::context::m_dumps): New.
11782 * coverage.c (coverage_init): Port to dump_manager API.
11783 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11784 (extra_dump_files_in_use): Likewise.
11785 (extra_dump_files_alloced): Likewise.
11786 (gcc::dump_manager::dump_manager): New.
11787 (dump_register): Convert to...
11788 (gcc::dump_manager::dump_register): ...method, replacing
11789 function-static next_dump with m_next_dump field.
11790 (get_dump_file_info): Convert to...
11791 (gcc::dump_manager::get_dump_file_info): ...method.
11792 (get_dump_file_name): Convert to...
11793 (gcc::dump_manager::get_dump_file_name): ...method.
11794 (dump_start): Convert to...
11795 (gcc::dump_manager::dump_start): ...method.
11796 (dump_finish): Convert to...
11797 (gcc::dump_manager::dump_finish): ...method.
11798 (dump_begin): Replace body with...
11799 (gcc::dump_manager::dump_begin): ...new method.
11800 (dump_phase_enabled_p): Convert to...
11801 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11802 (dump_phase_enabled_p): Convert to...
11803 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11804 (dump_initialized_p): Convert to...
11805 (gcc::dump_manager::dump_initialized_p): ...method.
11806 (dump_flag_name): Replace body with...
11807 (gcc::dump_manager::dump_flag_name): ...new method.
11808 (dump_enable_all): Convert to...
11809 (gcc::dump_manager::dump_enable_all): ...new method.
11810 (opt_info_enable_passes): Convert to...
11811 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11812 (dump_switch_p_1): Convert to...
11813 (gcc::dump_manager::dump_switch_p_1): ...new method.
11814 (dump_switch_p): Convert to...
11815 (gcc::dump_manager::dump_switch_p): ...new method.
11816 (opt_info_switch_p): Port to dump_manager API.
11817 (enable_rtl_dump_file): Likewise.
11818 * opts-global.c (handle_common_deferred_options): Port to new
11820 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11821 (pass_manager::register_one_dump_file): Likewise.
11822 (pass_manager::register_pass): Likewise.
11823 (pass_init_dump_file): Likewise.
11824 (pass_fini_dump_file): Likewise.
11825 * statistics.c (statistics_early_init): Likewise.
11827 2013-10-14 Richard Biener <rguenther@suse.de>
11829 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11830 iterative_hash_canonical_type, gimple_canonical_type_hash,
11831 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11832 gimple_register_canonical_type, print_gimple_types_stats,
11833 free_gimple_type_tables): Move to lto/lto.c
11834 (gt-gimple.h): Do not include.
11835 * gimple.h (gimple_register_canonical_type,
11836 print_gimple_types_stats, free_gimple_type_tables): Remove.
11837 * Makefile.in (GTFILES): Remove gimple.c.
11839 2013-10-14 Travis Snoozy <quandary@remstate.com>
11842 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11843 scanning for msp430x targets.
11845 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11848 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11849 (registers_ok_for_ldd_peep): Move around.
11850 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11851 * config/sparc/sparc.md (widening peepholes): Use it.
11853 2013-10-14 Richard Biener <rguenther@suse.de>
11855 PR middle-end/58712
11856 PR middle-end/55358
11857 * gimple.c (iterative_hash_canonical_type): Make sure to
11858 record the hash into the correct hashtable slot.
11860 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11862 PR rtl-optimization/58662
11863 * combine.c (try_combine): Take into account death nodes on I2 when
11864 splitting a PARALLEL of two independent SETs. Fix dump message.
11866 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11869 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11870 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11872 * config/sh/t-sh (sh_treg_combine.o): New entry.
11873 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11874 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11875 (register_sh_passes): New function. Register sh_treg_combine pass.
11876 (sh_option_override): Invoke it.
11877 (sh_canonicalize_comparison): Handle op0_preserve_value.
11878 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11879 opportunities. Canonicalize branch condition.
11880 (nott): Allow only if pseudos can be created for non-SH2A.
11882 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
11885 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11886 (ix86_expand_movmem): Replace copy_addr_to_reg with
11887 ix86_copy_addr_to_reg.
11888 (ix86_expand_setmem): Likewise.
11890 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
11892 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11893 provided by ix86_fp_compare_mode instead of CCFPUmode.
11895 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
11897 * config/aarch64/arm_neon.h
11898 (vtbx<1,3>_<psu>8): Fix register constriants.
11900 2013-10-11 Jeff Law <law@redhat.com>
11902 PR tree-optimization/58640
11903 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11904 threading paths that cross over two loop entry points.
11906 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11908 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11909 handle vector float as well.
11910 (*vsx_le_perm_load_v4si): Likewise.
11911 (*vsx_le_perm_store_v2di): Likewise.
11912 (*vsx_le_perm_store_v4si): Likewise.
11914 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11916 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11917 directly to circumvent subtract from splat{31} workaround.
11918 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11920 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11921 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11922 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11923 (altivec_vperm_<mode>): Convert to define_insn_and_split to
11924 separate big and little endian logic.
11925 (*altivec_vperm_<mode>_internal): New define_insn.
11926 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11927 separate big and little endian logic.
11928 (*altivec_vperm_<mode>_uns_internal): New define_insn.
11929 (vec_permv16qi): Add little endian logic.
11931 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
11933 * doc/extend.texi (returns_nonnull): Remove arguments.
11935 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11936 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11937 Sergey Lega <sergey.s.lega@intel.com>
11938 Anna Tikhonova <anna.tikhonova@intel.com>
11939 Ilya Tocar <ilya.tocar@intel.com>
11940 Andrey Turetskiy <andrey.turetskiy@intel.com>
11941 Ilya Verbin <ilya.verbin@intel.com>
11942 Kirill Yukhin <kirill.yukhin@intel.com>
11943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11945 * config/i386/sse.md (VI48F_256_512): New.
11946 (avx2_permvar<mode>): Change to ...
11947 (<avx2_avx512f>_permvar<mode>): This.
11949 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11951 Sergey Lega <sergey.s.lega@intel.com>
11952 Anna Tikhonova <anna.tikhonova@intel.com>
11953 Ilya Tocar <ilya.tocar@intel.com>
11954 Andrey Turetskiy <andrey.turetskiy@intel.com>
11955 Ilya Verbin <ilya.verbin@intel.com>
11956 Kirill Yukhin <kirill.yukhin@intel.com>
11957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11959 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11960 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11961 * config/i386/sse.md (VI4_AVX): New.
11962 (sf2simodelower): Ditto.
11963 (sse2_cvtps2dq): Change to ...
11964 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11966 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11967 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11968 Sergey Lega <sergey.s.lega@intel.com>
11969 Anna Tikhonova <anna.tikhonova@intel.com>
11970 Ilya Tocar <ilya.tocar@intel.com>
11971 Andrey Turetskiy <andrey.turetskiy@intel.com>
11972 Ilya Verbin <ilya.verbin@intel.com>
11973 Kirill Yukhin <kirill.yukhin@intel.com>
11974 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11976 * config/i386/sse.md (V_512): New.
11978 (vcond<V_512:mode><VF_512:mode>): Ditto.
11979 (vcond<V_512:mode><VI_512:mode>): Ditto.
11980 (vcondu<V_512:mode><VI_512:mode>): Ditto.
11982 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11983 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11984 Sergey Lega <sergey.s.lega@intel.com>
11985 Anna Tikhonova <anna.tikhonova@intel.com>
11986 Ilya Tocar <ilya.tocar@intel.com>
11987 Andrey Turetskiy <andrey.turetskiy@intel.com>
11988 Ilya Verbin <ilya.verbin@intel.com>
11989 Kirill Yukhin <kirill.yukhin@intel.com>
11990 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11992 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11993 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11995 (fma<mode>4): Removed condition.
11996 (fms<mode>4): Ditto.
11997 (fnma<mode>4): Ditto.
11998 (fnms<mode>4): Ditto.
11999 (fma4i_fmadd_<mode>): Ditto.
12000 (*fma_fmadd_<mode>): Ditto.
12001 (*fma_fmsub_<mode>): Ditto.
12002 (*fma_fnmadd_<mode>): Ditto.
12003 (*fma_fnmsub_<mode>): Ditto.
12004 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
12005 (*fma_fmaddsub_<mode>): Ditto.
12006 (*fma_fmsubadd_<mode>): Ditto.
12007 (*fmai_fmadd_<mode>): Ditto.
12008 (*fmai_fmsub_<mode>): Ditto.
12009 (*fmai_fnmadd_<mode>): Ditto.
12010 (*fmai_fnmsub_<mode>): Ditto.
12012 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12013 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12014 Sergey Lega <sergey.s.lega@intel.com>
12015 Anna Tikhonova <anna.tikhonova@intel.com>
12016 Ilya Tocar <ilya.tocar@intel.com>
12017 Andrey Turetskiy <andrey.turetskiy@intel.com>
12018 Ilya Verbin <ilya.verbin@intel.com>
12019 Kirill Yukhin <kirill.yukhin@intel.com>
12020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12022 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
12023 (VI124_256): Changed to ...
12024 (VI124_256_48_512): This.
12025 (ssepackmode): Extended with wider modes.
12026 (<code><mode>3): Changed iterator.
12027 (*avx2_<code><mode>3): Ditto.
12028 (vec_pack_trunc_<mode>): Ditto.
12030 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12031 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12032 Sergey Lega <sergey.s.lega@intel.com>
12033 Anna Tikhonova <anna.tikhonova@intel.com>
12034 Ilya Tocar <ilya.tocar@intel.com>
12035 Andrey Turetskiy <andrey.turetskiy@intel.com>
12036 Ilya Verbin <ilya.verbin@intel.com>
12037 Kirill Yukhin <kirill.yukhin@intel.com>
12038 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12040 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
12041 (VI8F_256_512): Ditto.
12042 (abs<mode>2): Changed iterator.
12043 (avx2_perm<mode>): Changed to ...
12044 (<avx2_avx512f>_perm<mode>): This.
12045 (avx2_perm<mode>_1): Changed to ...
12046 (<avx2_avx512f>_perm<mode>_1): This.
12048 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12049 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12050 Sergey Lega <sergey.s.lega@intel.com>
12051 Anna Tikhonova <anna.tikhonova@intel.com>
12052 Ilya Tocar <ilya.tocar@intel.com>
12053 Andrey Turetskiy <andrey.turetskiy@intel.com>
12054 Ilya Verbin <ilya.verbin@intel.com>
12055 Kirill Yukhin <kirill.yukhin@intel.com>
12056 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12058 * config/i386/sse.md (VI48_AVX512F): New.
12059 (VI48_AVX2): Changed to ...
12060 (VI48_AVX2_48_AVX512F): This.
12061 (avx2_ashrv<mode>): Changed to ...
12062 (<avx2_avx512f>_ashrv<mode>): This.
12063 (avx2_<shift_insn>v<mode>): Changed to ...
12064 (<avx2_avx512f>_<shift_insn>v<mode>): This.
12066 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12067 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12068 Sergey Lega <sergey.s.lega@intel.com>
12069 Anna Tikhonova <anna.tikhonova@intel.com>
12070 Ilya Tocar <ilya.tocar@intel.com>
12071 Andrey Turetskiy <andrey.turetskiy@intel.com>
12072 Ilya Verbin <ilya.verbin@intel.com>
12073 Kirill Yukhin <kirill.yukhin@intel.com>
12074 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12076 * config/i386/sse.md (VI4_AVX512F): New.
12077 (VI8_AVX2_AVX512F): Ditto.
12078 (mul<mode>3): Extended with wider modes.
12079 (*<sse4_1_avx2>_mul<mode>3): Ditto.
12080 (mul<mode>3): Ditto.
12081 (vec_widen_<s>mult_odd_<mode>): Ditto.
12083 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12084 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12085 Sergey Lega <sergey.s.lega@intel.com>
12086 Anna Tikhonova <anna.tikhonova@intel.com>
12087 Ilya Tocar <ilya.tocar@intel.com>
12088 Andrey Turetskiy <andrey.turetskiy@intel.com>
12089 Ilya Verbin <ilya.verbin@intel.com>
12090 Kirill Yukhin <kirill.yukhin@intel.com>
12091 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12093 * config/i386/sse.md (VI2_AVX512F): New.
12094 (VI124_AVX512F): Ditto.
12095 (sseunpackmode): Extended with wider modes.
12096 (sseunpackfltmode): Ditto.
12097 (vec_unpacks_float_hi_<mode>): Ditto.
12098 (vec_unpacks_float_lo_<mode>): Ditto.
12099 (vec_unpacku_float_hi_<mode>): Ditto.
12100 (vec_unpacku_float_lo_<mode>): Ditto.
12101 (vec_unpacks_lo_<mode>): Ditto.
12102 (vec_unpacks_hi_<mode>): Ditto.
12103 (vec_unpacku_lo_<mode>): Ditto.
12104 (vec_unpacku_hi_<mode>): Ditto.
12106 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12107 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12108 Sergey Lega <sergey.s.lega@intel.com>
12109 Anna Tikhonova <anna.tikhonova@intel.com>
12110 Ilya Tocar <ilya.tocar@intel.com>
12111 Andrey Turetskiy <andrey.turetskiy@intel.com>
12112 Ilya Verbin <ilya.verbin@intel.com>
12113 Kirill Yukhin <kirill.yukhin@intel.com>
12114 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12116 * config/i386/i386.md (multdiv): New.
12117 (multdiv_mnemonic): Ditto.
12118 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
12119 (<sse>_vm<multdiv_mnemonic><mode>3): This.
12120 (<sse>_vmdiv<mode>3): Removed.
12122 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12123 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12124 Sergey Lega <sergey.s.lega@intel.com>
12125 Anna Tikhonova <anna.tikhonova@intel.com>
12126 Ilya Tocar <ilya.tocar@intel.com>
12127 Andrey Turetskiy <andrey.turetskiy@intel.com>
12128 Ilya Verbin <ilya.verbin@intel.com>
12129 Kirill Yukhin <kirill.yukhin@intel.com>
12130 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12132 * config/i386/sse.md (V): Extended with wider modes.
12134 (ssehalfvecmode): Ditto.
12136 (ssepackfltmode): Ditto.
12137 (avx_vec_concat<mode>): Ditto.
12138 (V_256_512): New iterator.
12139 (VF2_512_256): Ditto.
12140 (si2dfmode): New attribute.
12141 (si2dfmodelower): Ditto.
12142 (sf2dfmode): Ditto.
12143 (concat_tg_mode): Ditto.
12144 (floatv4siv4df2): Changed to ...
12145 (float<si2dfmodelower><mode>2): This.
12146 (avx_cvtps2pd256): Changed to ...
12147 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
12148 (vec_pack_trunc_v4df): Changed to ...
12149 (vec_pack_trunc_<mode>): This.
12150 (avx_vpermil<mode>): Changed to ...
12151 (<sse2_avx_avx512f>_vpermil<mode>): This.
12152 (<fixsuffix>fix_truncv8dfv8si2): New.
12153 (vec_pack_sfix_trunc_v8df): Ditto.
12154 (avx512f_rndscale<mode>): Ditto.
12155 (avx512f_roundpd512): Ditto.
12156 (vec_pack_ufix_trunc_<mode>): Updated iterator.
12158 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12159 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12160 Sergey Lega <sergey.s.lega@intel.com>
12161 Anna Tikhonova <anna.tikhonova@intel.com>
12162 Ilya Tocar <ilya.tocar@intel.com>
12163 Andrey Turetskiy <andrey.turetskiy@intel.com>
12164 Ilya Verbin <ilya.verbin@intel.com>
12165 Kirill Yukhin <kirill.yukhin@intel.com>
12166 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12168 * config/i386/i386.md (any_fix): New iterator.
12169 (fixsuffix): New attribute.
12170 * config/i386/sse.md (VF1): Extened with wider modes.
12174 (sseintvecmodelower): Ditto.
12175 (ssescalarmode): Ditto.
12176 (ssescalarnum): Ditto.
12177 (VF1_128_256): New.
12178 (ssexmmmode): Ditto.
12179 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
12180 (<sse>_rcp<mode>2): Change iterator.
12181 (rsqrt<mode>2): Ditto.
12182 (<sse>_rsqrt<mode>2): Ditto.
12183 (avx2_vec_dup<mode>): Ditto.
12184 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
12185 (round<mode>2_sfix): Ditto.
12186 (avx2_pbroadcast<mode>): Ditto.
12187 (*andnot<mode>3): Handle XI mode.
12188 (*<code><mode>3): Ditto.
12189 (AVXTOSSEMODE): Removed.
12190 (avx_vpermil<mode>): Changed to ...
12191 (<sse2_avx_avx512f>_vpermil<mode>): This.
12193 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12194 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12195 Sergey Lega <sergey.s.lega@intel.com>
12196 Anna Tikhonova <anna.tikhonova@intel.com>
12197 Ilya Tocar <ilya.tocar@intel.com>
12198 Andrey Turetskiy <andrey.turetskiy@intel.com>
12199 Ilya Verbin <ilya.verbin@intel.com>
12200 Kirill Yukhin <kirill.yukhin@intel.com>
12201 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12203 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
12204 (<sse>_comi): Ditto.
12205 (<sse>_ucomi): Ditto.
12206 (sse_cvtss2siq_2): Ditto.
12207 (sse2_cvtsd2si): Ditto.
12208 (sse2_cvtsd2siq): Ditto.
12209 (sse2_cvttsd2si): Ditto.
12210 (sse2_cvttsd2siq): Ditto.
12211 (<shift_insn><mode>3): Ditto.
12212 (sse2_cvtsi2sdq): Update constraint and prefix.
12213 (sse_cvtsi2ss): Update prefix.
12214 (sse_cvtsi2ssq): Ditto.
12216 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12218 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
12219 ignore internal calls.
12221 2013-10-11 Richard Biener <rguenther@suse.de>
12223 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
12224 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
12225 TREE_OVERFLOW is set.
12227 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12229 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
12231 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
12232 * gimple.h: Likewise.
12234 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
12236 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
12239 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
12241 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
12242 * configure: Regenerate.
12244 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12246 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
12247 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
12248 formatting fixes, use pp_colon instead of pp_character (..., ':'),
12249 similarly pp_right_paren.
12250 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
12251 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
12252 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
12253 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
12255 (omp_declare_simd_clauses_equal,
12256 omp_remove_redundant_declare_simd_attrs): New functions.
12257 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
12258 (walk_tree_1): Handle new OpenMP 4.0 clauses.
12259 * tree.h (OMP_LOOP_CHECK): Define.
12260 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
12261 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
12262 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
12263 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
12264 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
12265 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
12266 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
12267 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
12268 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
12269 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
12270 OMP_CLAUSE_SIMDLEN_EXPR): Define.
12271 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
12272 (omp_remove_redundant_declare_simd_attrs): New prototype.
12273 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
12274 GIMPLE_OMP_TEAMS): New codes.
12275 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
12276 * omp-low.c (struct omp_context): Add cancel_label and cancellable
12278 (target_nesting_level): New variable.
12279 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
12280 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
12281 for collapse > 1 static schedule unless ordered.
12282 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
12283 (determine_parallel_type): Adjust get_ws_args_for caller.
12284 (install_var_field): Handle mask & 4 for double indirection.
12285 (scan_sharing_clauses): Ignore shared clause on teams construct.
12286 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
12287 (create_omp_child_function): If inside target or declare target
12288 constructs, set "omp declare target" attribute on the child function.
12289 (find_combined_for): New function.
12290 (scan_omp_parallel): Handle combined loops.
12291 (scan_omp_target, scan_omp_teams): New functions.
12292 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
12293 restrictions and set ctx->cancellable for cancellable constructs.
12294 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
12295 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
12296 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
12297 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
12298 (omp_clause_aligned_alignment): New function.
12299 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
12300 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
12301 on teams constructs. Handle user defined reductions and new
12302 OpenMP 4.0 clauses.
12303 (lower_reduction_clauses): Don't set placeholder to address of ref
12304 if it has already the right type.
12305 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
12306 (expand_parallel_call): Use the new non-_start suffixed builtins,
12307 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
12308 and GOMP_parallel_end after the call.
12309 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
12310 (expand_omp_for_init_counts): Handle combined loops.
12311 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
12313 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
12314 end of cancellable loops.
12315 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12316 Likewise. Handle collapse > 1 loops.
12317 (expand_omp_simd): Handle combined loops.
12318 (expand_omp_for): Add inner_stmt argument, adjust callers of
12319 expand_omp_for* functions, use expand_omp_for_static*chunk even
12320 for collapse > 1 unless ordered.
12321 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
12322 of cancellable sections.
12323 (expand_omp_single): Remove need_barrier variable, just rely on
12324 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
12325 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
12326 (expand_omp_atomic_load, expand_omp_atomic_store,
12327 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
12328 (expand_omp_target): New function.
12329 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
12330 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
12331 (build_omp_regions_1): Immediately close region for
12332 GF_OMP_TARGET_KIND_UPDATE.
12333 (maybe_add_implicit_barrier_cancel): New function.
12334 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
12336 (lower_omp_single): Likewise. Add clobber after the barrier.
12337 (lower_omp_taskgroup): New function.
12338 (lower_omp_for): Handle combined loops. Adjust
12339 lower_rec_input_clauses caller. Handle cancellation.
12340 (lower_depend_clauses): New function.
12341 (lower_omp_taskreg): Lower depend clauses. Adjust
12342 lower_rec_input_clauses caller. Add clobber after the call. Handle
12344 (lower_omp_target, lower_omp_teams): New functions.
12345 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
12346 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
12347 and GOMP_cancellation_point calls.
12348 (lower_omp): Fold stmts inside of target region.
12349 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
12350 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12351 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
12352 (BT_FN_VOID_OMPFN_PTR_UINT,
12353 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
12354 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
12355 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
12356 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
12357 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
12358 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
12359 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
12360 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12361 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12362 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
12363 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12364 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
12365 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
12366 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
12367 BUILT_IN_GOMP_PARALLEL_END.
12368 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
12369 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12370 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12371 GF_OMP_FOR_KIND_DISTRIBUTE.
12372 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12373 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12374 (dump_gimple_omp_return): Print lhs if it has any.
12375 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12376 gimple_omp_atomic_seq_cst_p.
12377 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12378 and GIMPLE_OMP_TEAMS.
12379 * langhooks.c (lhd_omp_mappable_type): New function.
12380 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12381 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12383 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12384 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12385 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12386 (struct gimplify_omp_ctx): Add combined_loop field.
12387 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12388 on stmts inside of target region.
12389 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12390 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12391 ORT_TARGET and ORT_TARGET_DATA.
12392 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12394 (omp_notice_threadprivate_variable): Complain about threadprivate
12395 variables in target region.
12396 (omp_notice_variable): Complain about vars with non-mappable type
12397 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12398 (omp_check_private): Ignore ORT_TARGET* regions.
12399 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12400 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12401 (find_combined_omp_for): New function.
12402 (gimplify_omp_for): Handle gimplification of combined loops.
12403 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12405 (gimplify_omp_target_update): New function.
12406 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12407 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12408 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12409 (gimplify_body): If fndecl has "omp declare target" attribute, add
12410 implicit ORT_TARGET context around it.
12411 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12412 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12413 * tree-nested.c (convert_nonlocal_reference_stmt,
12414 convert_local_reference_stmt, convert_gimple_call): Handle
12415 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12416 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12417 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12418 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12419 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12420 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12421 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12422 BUILT_IN_GOMP_LOOP_END_CANCEL,
12423 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12424 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12425 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12426 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12427 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12428 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12429 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12430 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12431 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12432 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12433 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12434 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12435 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12436 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12437 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12438 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12439 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12440 gimple_build_omp_teams): New functions.
12441 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12442 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
12443 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12444 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12445 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12446 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12447 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12448 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12449 GF_OMP_ATOMIC_SEQ_CST): New.
12450 (gimple_build_omp_taskgroup, gimple_build_omp_target,
12451 gimple_build_omp_teams): New prototypes.
12452 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12453 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12454 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12455 GIMPLE_OMP_SINGLE as end of range.
12456 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12457 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12458 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12459 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12460 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12461 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12462 gimple_omp_target_kind, gimple_omp_target_set_kind,
12463 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12464 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12465 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12466 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12467 gimple_omp_teams_set_clauses): New inlines.
12468 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12469 and GIMPLE_OMP_TASKGROUP.
12470 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12471 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12472 enum omp_clause_proc_bind_kind): New.
12473 (union omp_clause_subcode): Add depend_kind, map_kind and
12474 proc_bind_kind fields.
12475 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12476 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12477 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12478 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12479 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12481 2013-10-10 Teresa Johnson <tejohnson@google.com>
12483 * predict.c (tree_estimate_probability): Add new parameter
12484 for estimate_bb_frequencies.
12485 (estimate_bb_frequencies): Add new parameter to force estimation.
12486 (rebuild_frequencies): When max frequency in function is small,
12487 recompute counts from frequencies.
12488 * predict.h (estimate_bb_frequencies): New parameter.
12490 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12492 * ipa-inline.c (ipa_inline): Fix leak of "order" when
12493 optimizations are disabled.
12495 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12497 * coverage.c (coverage_finish): Fix leak of da_file_name.
12499 2013-10-10 Jan Hubicka <jh@suse.cz>
12501 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12502 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12503 Bobcat and generic.
12505 2013-10-10 Jakub Jelinek <jakub@redhat.com>
12507 PR middle-end/58670
12508 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12509 if any labels are in FALLTHRU_BB, use a special label emitted
12510 immediately after the asm goto insn rather than label_rtx
12512 (expand_asm_stmt): Adjust caller.
12513 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12514 edge if the last insn in predecessor is a jump with single successor,
12515 but it isn't simplejump_p.
12517 2013-10-10 Richard Biener <rguenther@suse.de>
12519 PR tree-optimization/58656
12520 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12522 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12524 * gimplify.c: Include expr.h and tm_p.h for targets with special
12525 va-arg padding requirements.
12527 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12529 * tree-flow.h: Move some prototypes to gimple.h.
12530 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12531 * gimple.h: Relocate some prototypes from tree-flow.h
12532 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12533 Move to gimplify.c.
12534 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12535 (build_va_arg_indirect_ref): Relocate and make static.
12536 (std_gimplify_va_arg_expr): Relocate here.
12537 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12538 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12540 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12542 * doc/md.texi: Document the mnemonic attribute.
12544 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12547 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12548 (set_attr_alternative x ...) when searching for user defined
12549 mnemonic attribute.
12551 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12553 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12555 2013-10-09 Easwaran Raman <eraman@google.com>
12557 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12558 * cfgexpand.c (defer_stack_allocation): ...use here
12559 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12561 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12563 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12564 (operand_equal_for_value_replacement): New function, extracted from
12565 value_replacement and enhanced to catch more cases.
12566 (value_replacement): Use operand_equal_for_value_replacement.
12568 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12570 * loop-doloop.c (doloop_modify, doloop_optimize): Use
12571 get_max_loop_iterations.
12573 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12575 * config/arm/aarch-common.c (arm_early_load_addr_dep):
12576 Place comment above function.
12578 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12580 * tree-flow.h: Remove all remaining prototypes, enums and structs that
12581 are not related to tree-cfg.c.
12582 * tree-ssa-address.h: New file. Relocate prototypes.
12583 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12584 (addr_for_mem_ref): New. Combine call to get_address_description and
12585 return addr_for_mem_ref.
12586 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12587 * tree-ssa-live.h: Adjust prototypes.
12588 * passes.c: Include tree-ssa-live.h.
12589 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12590 * graphite.c (graphite_transform_loops): Make static.
12591 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12592 make_pass_graphite, pass_data_graphite_transforms,
12593 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12594 * ipa-pure-const.c (warn_function_noreturn): Make static.
12595 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12596 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12597 Relocate from tree-cfg.c
12598 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12600 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12601 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12602 Move to ipa-pure-const.c.
12603 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12604 Relocate from tree-optimize.c.
12605 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12606 make_pass_fixup_cfg): Move to tree-cfg.c.
12607 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12608 Relocate some prototypes.
12609 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12610 * tree-dump.c (dump_function_to_file): Remove prototype.
12611 Add tree-flow.h to the include file.
12612 * tree-dump.h: Remove prototype.
12613 * tree-parloops.h: New File. Add prototypes.
12614 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12615 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12616 from tree-ssa-loop.c.
12617 * tree-predcom.c (run_tree_predictive_commoning,
12618 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12619 Relocate here from tree-ssa-loop.c.
12620 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12621 ssa_name_values.release ().
12622 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12623 (ssa_name_values): Relocate from tree-flow.h.
12624 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12625 * tree-ssa-loop.c (run_tree_predictive_commoning,
12626 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12627 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12628 make_pass_graphite, pass_data_graphite_transforms,
12629 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12630 tree_parallelize_loops, pass_data_parallelize_loops,
12631 make_pass_parallelize_loops): Move to other files.
12632 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12634 * tree.h: Remove prototypes from tree-address.c.
12636 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12638 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12639 (struct int_tree_map): Move to tree-hasher.h
12640 (SCALE, LABEL, PERCENT): Move to gimple.h
12641 * tree-flow-inline.h: Delete. Move functions to other files.
12642 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12643 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12644 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12645 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12646 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12647 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12648 * tree-hasher.h: Don't include tree-flow.h.
12649 (struct int_tree_map): Relocate from tree-flow.h.
12650 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12651 tree-flow-inline.h and make static.
12652 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12653 tree-flow-inline.h.
12654 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12655 tree-flow-inline.h and make static.
12656 * tree.h (is_global_var, may_be_aliased): Relocate from
12657 tree-flow-inline.h.
12658 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12659 * value-prof.c: No longer include tree-flow-inline.h.
12660 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12662 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12664 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12665 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12666 (enum move_pos): Move to tree-ssa-loop-im.h
12667 * cfgloop.h: Move some prototypes.
12668 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12669 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12670 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12671 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12672 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12673 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12674 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12675 (enum move_pos): Relocate here.
12676 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12678 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12679 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12680 make_pass_lim): Relocate here from tree-ssa-loop.c.
12681 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12683 (loop_edge_to_cancel, unloop_loops): Make static.
12684 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12685 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12686 (tree_complete_unroll, gate_tree_complete_unroll,
12687 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12688 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12689 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12690 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12691 (stmt_invariant_in_loop_p): Remove unused function.
12692 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12693 * tree-ssa-loop-manip.h: New file. Add prototypes.
12694 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12695 (gcov_type_to_double_int): Move to cfgloop.h.
12696 (double_int_cmp, bound_index,
12697 estimate_numbers_of_iterations_loop): Make static.
12698 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12699 (max_loop_iterations): Factor out get_max_loop_iterations.
12700 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12702 * tree-ssa-loop-niter.h: New file. Add prototypes.
12703 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12704 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12705 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12706 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12707 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12708 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12709 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12710 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12711 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12712 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12713 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12714 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12715 pass_data_complete_unroll, make_pass_complete_unroll,
12716 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12717 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12718 tree-ssa-loop-ivcanon.c.
12719 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12720 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12721 tree-ssa-loop-prefetch.c.
12722 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12723 tree-ssa-loop-im.c.
12724 (get_lsm_tmp_name): Relocate and add suffix parameter.
12725 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12726 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12727 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12728 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12729 (get_estimated_loop_iterations): Factor out accessor from
12730 estimated_loop_iterations in tree-ssa-loop-niter.c.
12731 (get_max_loop_iterations): Factor out accessor from
12732 _max_loop_iterations in tree-ssa-niter.c.
12733 * loop-unroll.c (decide_unroll_constant_iterations,
12734 decide_unroll_runtime_iterations, decide_peel_simple,
12735 decide_unroll_stupid): Use new get_* accessors.
12737 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
12739 PR tree-optimization/20318
12740 * doc/extend.texi (returns_nonnull): New function attribute.
12741 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12743 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12744 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12746 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
12748 PR middle-end/58570
12749 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12750 false if both components are bitfields.
12752 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12754 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12755 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12756 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12757 * config/aarch64/aarch64.h
12758 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12759 * config/aarch64/aarch64-simd-builtins.def
12760 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12762 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12764 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12766 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12768 * config/aarch64/arm_neon.h (vdiv_f64): Added.
12770 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12772 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12773 (vneg_f64): New intrinsic.
12774 (vneg_s8): Asm replaced with C.
12775 (vneg_s16): Likewise.
12776 (vneg_s32): Likewise.
12777 (vneg_s64): New intrinsic.
12778 (vnegq_f32): Asm replaced with C.
12779 (vnegq_f64): Likewise.
12780 (vnegq_s8): Likewise.
12781 (vnegq_s16): Likewise.
12782 (vnegq_s32): Likewise.
12783 (vnegq_s64): Likewise.
12785 2013-10-09 Renlin Li <Renlin.Li@arm.com>
12787 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12789 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12791 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12792 packed stack special handling.
12793 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12794 back to fixed stack slots for FPRs saved due to stdarg.
12796 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12798 * config/s390/s390.c (s390_frame_info): Restructure function.
12800 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12802 * config/s390/s390.c (struct s390_frame_layout): New field
12804 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12805 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12806 regs_ever_clobbered to char*.
12807 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12808 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12809 (s390_register_info): Enable FPR save slots. Move/Copy some
12810 functionality into ...
12811 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12812 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12814 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12815 not imply a stack frame.
12816 (s390_init_frame_layout): Remove variable clobbered_regs.
12817 (s390_update_register_info): Remove function.
12818 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12819 cannot be used for register renaming.
12820 (s390_hard_regno_scratch_ok): New function.
12821 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12822 (s390_initial_elimination_offset): Change offset calculation of
12823 the return address pointer.
12824 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12825 (restore_gprs): Set frame related flag.
12826 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12827 (s390_emit_prologue): Call s390_register_info instead of
12828 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12829 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12830 (s390_optimize_prologue): Call s390_optimize_register_info.
12831 Try to remove also FPR slot save/restore INSNs. Remove frame
12832 related flags from restore INSNs.
12834 2013-10-08 DJ Delorie <dj@redhat.com>
12836 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12839 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12840 avoid conflict with the MI use of %c.
12841 * config/rl78/rl78-real.md: change %c to %C throughout.
12842 * config/rl78/rl78-virt.md: Likewise.
12844 2013-10-08 Jan Hubicka <jh@suse.cz>
12846 * config/i386/i386.c (ix86_option_override_internal): Switch
12847 to SSE math for -ffast-math when target ISA supports SSE2.
12849 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12851 * tree-flow.h: Remove some prototypes.
12852 * tree.h: Remove some protypes, add a couple.
12853 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12854 using_eh_for_cleanups_p): Add interface routines for front ends.
12855 * tree-eh.h: New file. Add protoptyes.
12856 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12857 (add_stmt_to_eh_lp_fn): Make static.
12858 (lower_try_finally): Use new using_eh_for_cleanups_p.
12859 * emit-rtl.c: Include tree-eh.h.
12860 * gimple.h: Include tree-eh.h.
12862 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12864 PR tree-optimization/58480
12865 * tree-vrp.c (infer_nonnull_range): New function.
12866 (infer_value_range): Call infer_nonnull_range.
12868 2013-10-08 Dehao Chen <dehao@google.com>
12870 PR tree-optimization/58619
12871 * tree-inline.c (copy_phis_for_bb): Combine location data
12874 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12877 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12878 RTX_FRAME_RELATED_P on INSN.
12880 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12882 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12883 (altivec_expand_vec_perm_const): Call it.
12885 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12887 * config/rs6000/vector.md (mov<mode>): Emit permuted move
12888 sequences for LE VSX loads and stores at expand time.
12889 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12891 * config/rs6000/rs6000.c (rs6000_const_vec): New.
12892 (rs6000_gen_le_vsx_permute): New.
12893 (rs6000_gen_le_vsx_load): New.
12894 (rs6000_gen_le_vsx_store): New.
12895 (rs6000_gen_le_vsx_move): New.
12896 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12897 (*vsx_le_perm_load_v4si): New.
12898 (*vsx_le_perm_load_v8hi): New.
12899 (*vsx_le_perm_load_v16qi): New.
12900 (*vsx_le_perm_store_v2di): New.
12901 (*vsx_le_perm_store_v4si): New.
12902 (*vsx_le_perm_store_v8hi): New.
12903 (*vsx_le_perm_store_v16qi): New.
12904 (*vsx_xxpermdi2_le_<mode>): New.
12905 (*vsx_xxpermdi4_le_<mode>): New.
12906 (*vsx_xxpermdi8_le_V8HI): New.
12907 (*vsx_xxpermdi16_le_V16QI): New.
12908 (*vsx_lxvd2x2_le_<mode>): New.
12909 (*vsx_lxvd2x4_le_<mode>): New.
12910 (*vsx_lxvd2x8_le_V8HI): New.
12911 (*vsx_lxvd2x16_le_V16QI): New.
12912 (*vsx_stxvd2x2_le_<mode>): New.
12913 (*vsx_stxvd2x4_le_<mode>): New.
12914 (*vsx_stxvd2x8_le_V8HI): New.
12915 (*vsx_stxvd2x16_le_V16QI): New.
12917 2013-10-07 Renlin Li <Renlin.Li@arm.com>
12919 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12921 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12923 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12924 loop to work also for 31bit ABI.
12925 Save the stack pointer for frame_size > 0.
12927 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12929 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12930 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12931 constraint letters from expanders.
12932 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12933 retry count to general_operand.
12934 ("tabort"): Give operand 0 a mode.
12935 ("tabort_1"): Add mode and constraint letter for operand 0.
12936 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12938 2013-10-04 Jeff Law <law@redhat.com>
12940 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12942 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12944 (thread_across_edge): Here. Call it.
12946 2013-10-04 Cary Coutant <ccoutant@google.com>
12948 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12949 discarding a location list expression (or a piece of one).
12951 2013-10-03 Jan Hubicka <jh@suse.cz>
12953 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12954 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
12955 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12957 2013-10-03 Jan Hubicka <jh@suse.cz>
12959 * config/i386/i386.c (ix86_option_override_internal): Do not enable
12960 accumulate-outgoing-args when producing unwind info.
12962 2013-10-03 Wei Mi <wmi@google.com>
12964 * lra-constraints.c (insert_move_for_subreg): New function
12965 extracted from simplify_operand_subreg.
12966 (simplify_operand_subreg): Add reload for paradoxical subreg.
12968 2013-10-03 Rong Xu <xur@google.com>
12970 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12971 the candidate of builtin_expect such that we should fix the
12972 size/time estimation.
12973 (estimate_function_body_sizes): Do the acutally size/time fix-up
12974 for builtin_expect.
12976 2013-10-03 Rong Xu <xur@google.com>
12978 * predict.c (tree_predict_by_opcode): Get the probability
12979 for builtin_expect from param builtin_expect_probability.
12980 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12981 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12982 * doc/invoke.texi: Add documentation for builtin-expect-probability.
12984 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
12987 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12988 * calls.c (alloca_call_p): Use get_callee_fndecl.
12989 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12990 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12992 (vrp_visit_stmt): Remove duplicated code.
12994 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12996 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12997 ceildf2, btruncdf2, instead of vsx_* name.
12999 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
13000 iterators to only do V2DF and V4SF here. Move the DF code to
13001 rs6000.md where it is combined with SF mode. Replace <VSv> with
13002 just 'v' since only vector operations are handled with these insns
13003 after moving the DF support to rs6000.md.
13004 (vsx_sub<mode>3): Likewise.
13005 (vsx_mul<mode>3): Likewise.
13006 (vsx_div<mode>3): Likewise.
13007 (vsx_fre<mode>2): Likewise.
13008 (vsx_neg<mode>2): Likewise.
13009 (vsx_abs<mode>2): Likewise.
13010 (vsx_nabs<mode>2): Likewise.
13011 (vsx_smax<mode>3): Likewise.
13012 (vsx_smin<mode>3): Likewise.
13013 (vsx_sqrt<mode>2): Likewise.
13014 (vsx_rsqrte<mode>2): Likewise.
13015 (vsx_fms<mode>4): Likewise.
13016 (vsx_nfma<mode>4): Likewise.
13017 (vsx_copysign<mode>3): Likewise.
13018 (vsx_btrunc<mode>2): Likewise.
13019 (vsx_floor<mode>2): Likewise.
13020 (vsx_ceil<mode>2): Likewise.
13021 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
13022 (vsx_sminsf3): Likewise.
13023 (vsx_fmadf4): Likewise.
13024 (vsx_fmsdf4): Likewise.
13025 (vsx_nfmadf4): Likewise.
13026 (vsx_nfmsdf4): Likewise.
13027 (vsx_cmpdf_internal1): Likewise.
13029 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
13030 simpler to select whether a target has SPE or traditional floating
13031 point support in iterators.
13032 (TARGET_DF_SPE): Likewise.
13033 (TARGET_SF_FPR): Likewise.
13034 (TARGET_DF_FPR): Likewise.
13035 (TARGET_SF_INSN): Macros to say whether floating point support
13036 exists for a given operation for expanders.
13037 (TARGET_DF_INSN): Likewise.
13039 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
13040 combining of SF/DF mode operations, using both traditional and VSX
13048 (abs<mode>2): Combine SF/DF modes using traditional floating point
13049 instructions. Add support for using the upper DF registers with
13050 VSX support, and SF registers with power8-vector support. Update
13051 expanders for operations supported by both the SPE and traditional
13052 floating point units.
13053 (abs<mode>2_fpr): Likewise.
13054 (nabs<mode>2): Likewise.
13055 (nabs<mode>2_fpr): Likewise.
13056 (neg<mode>2): Likewise.
13057 (neg<mode>2_fpr): Likewise.
13058 (add<mode>3): Likewise.
13059 (add<mode>3_fpr): Likewise.
13060 (sub<mode>3): Likewise.
13061 (sub<mode>3_fpr): Likewise.
13062 (mul<mode>3): Likewise.
13063 (mul<mode>3_fpr): Likewise.
13064 (div<mode>3): Likewise.
13065 (div<mode>3_fpr): Likewise.
13066 (sqrt<mode>3): Likewise.
13067 (sqrt<mode>3_fpr): Likewise.
13068 (fre<Fs>): Likewise.
13069 (rsqrt<mode>2): Likewise.
13070 (cmp<mode>_fpr): Likewise.
13071 (smax<mode>3): Likewise.
13072 (smin<mode>3): Likewise.
13073 (smax<mode>3_vsx): Likewise.
13074 (smin<mode>3_vsx): Likewise.
13075 (negsf2): Delete SF operations that are merged with DF.
13076 (abssf2): Likewise.
13077 (addsf3): Likewise.
13078 (subsf3): Likewise.
13079 (mulsf3): Likewise.
13080 (divsf3): Likewise.
13082 (fmasf4_fpr): Likewise.
13083 (fmssf4_fpr): Likewise.
13084 (nfmasf4_fpr): Likewise.
13085 (nfmssf4_fpr): Likewise.
13086 (sqrtsf2): Likewise.
13087 (rsqrtsf_internal1): Likewise.
13088 (smaxsf3): Likewise.
13089 (sminsf3): Likewise.
13090 (cmpsf_internal1): Likewise.
13091 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
13092 (negdf2): Delete DF operations that are merged with SF.
13093 (absdf2): Likewise.
13094 (nabsdf2): Likewise.
13095 (adddf3): Likewise.
13096 (subdf3): Likewise.
13097 (muldf3): Likewise.
13098 (divdf3): Likewise.
13100 (rsqrtdf_internal1): Likewise.
13101 (fmadf4_fpr): Likewise.
13102 (fmsdf4_fpr): Likewise.
13103 (nfmadf4_fpr): Likewise.
13104 (nfmsdf4_fpr): Likewise.
13105 (sqrtdf2): Likewise.
13106 (smaxdf3): Likewise.
13107 (smindf3): Likewise.
13108 (cmpdf_internal1): Likewise.
13109 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
13110 (btrunc<mode>2): Delete separate expander, and combine with the
13111 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
13112 (btrunc<mode>2_fpr): Likewise.
13113 (ceil<mode>2): Likewise.
13114 (ceil<mode>2_fpr): Likewise.
13115 (floor<mode>2): Likewise.
13116 (floor<mode>2_fpr): Likewise.
13117 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
13118 Add support for using the upper registers with VSX and
13119 power8-vector. Move insns to be closer to the define_expands. On
13120 VSX systems, prefer the traditional form of FMA over the VSX
13121 version, since the traditional form allows the target not to
13122 overlap with the inputs.
13123 (fms<mode>4_fpr): Likewise.
13124 (nfma<mode>4_fpr): Likewise.
13125 (nfms<mode>4_fpr): Likewise.
13127 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13128 Richard Earnshaw <richard.earnshaw@arm.com>
13130 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
13131 (struct mult_cost_table): Likewise.
13132 (struct mem_cost_table): Likewise.
13133 (struct fp_cost_table): Likewise.
13134 (struct vector_cost_table): Likewise.
13135 (cpu_cost_table): Likewise.
13136 * config/arm/arm.opt (mold-rts-costs): New option.
13137 (mnew-generic-costs): Likewise.
13138 * config/arm/arm.c (generic_extra_costs): New table.
13139 (cortexa15_extra_costs): Likewise.
13140 (arm_slowmul_tune): Use NULL as new costs.
13141 (arm_fastmul_tune): Likewise.
13142 (arm_strongarm_tune): Likewise.
13143 (arm_xscale_tune): Likewise.
13144 (arm_9e_tune): Likewise.
13145 (arm_v6t2_tune): Likewise.
13146 (arm_cortex_a5_tune): Likewise.
13147 (arm_cortex_a9_tune): Likewise.
13148 (arm_v6m_tune): Likewise.
13149 (arm_fa726te_tune): Likewise.
13150 (arm_cortex_a15_tune): Use cortex15_extra_costs.
13151 (arm_cortex_tune): Use generict_extra_costs.
13152 (shifter_op_p): New function.
13153 (arm_unspec_cost): Likewise.
13154 (LIBCALL_COST): Define.
13155 (arm_new_rtx_costs): New function.
13156 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
13157 table is available. Use old costs otherwise unless mnew-generic-costs
13159 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
13160 (cpu_cost_table): Declare.
13162 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
13165 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
13166 (*subs_mul_imm_<mode>)
13167 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
13168 (*sub_<shift>_<mode>)
13169 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
13170 Remove k constraint.
13172 2013-10-03 Ian Bolton <ian.bolton@arm.com>
13174 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
13176 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
13178 2013-10-02 Teresa Johnson <tejohnson@google.com>
13180 * predict.c (probably_never_executed): New function.
13181 (probably_never_executed_bb_p): Invoke probably_never_executed.
13182 (probably_never_executed_edge_p): Ditto.
13183 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13184 Treat profile insanities conservatively.
13186 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
13188 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
13190 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
13192 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
13193 use it. Use smaller increase for scratch. Don't increase reject
13194 for early clobber scratch.
13195 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
13196 setting eliminated regs except setting fp from hfp.
13197 (lra_eliminate): Check lra_insn_recog_data on NULL.
13199 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13202 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
13203 setting -mvsx-timode by default until the underlying problem is fixed.
13204 (RS6000_CPU, power7 defaults): Likewise.
13206 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13208 * config/x-linux (host-linux.o): Remove header dependencies.
13209 Use $(COMPILE) and $(POSTCOMPILE).
13210 * config/t-linux-android (linux-android.o): Ditto.
13212 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13214 * Makefile.in (expmed.o-warn): Remove.
13216 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13218 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
13219 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
13221 2013-10-02 Teresa Johnson <tejohnson@google.com>
13223 * dojump.c (do_jump_1): Divide probability between
13224 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
13226 2013-10-02 Tom Tromey <tromey@redhat.com>
13228 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
13230 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13232 * tree-flow.h: Remove some prototypes.
13233 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
13234 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
13235 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
13236 mark_virtual_phi_result_for_renaming): Relocate here.
13237 * tree-into-ssa.h: Add prototypes.
13238 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
13239 single_pred_before_succ_order.
13240 (blocks_in_phiopt_order): Rename and move to cfganal.c.
13241 (nonfreeing_call_p) Move to gimple.c.
13242 * cfganal.c (single_pred_before_succ_order): Move and renamed from
13244 * basic-block.h (single_pred_before_succ_order): Add prototype.
13245 * gimple.c (nonfreeing_call_p): Relocate here.
13246 * gimple.h: Add prototype.
13247 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
13248 * tree-ssa-dom.h: New file. Relocate prototypes here.
13249 * tree-ssa.h: Include tree-ssa-dom.h.
13251 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13253 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
13254 Use $(COMPILE) and $(POSTCOMPILE).
13256 * config/alpha/x-alpha (driver-alpha.o): Ditto.
13258 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13260 * tree-flow.h: Remove some prototypes.
13261 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
13262 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13263 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
13264 propagate_tree_value*): Move from here to...
13265 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
13266 propagate_tree_value*): Relocate here.
13267 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13268 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
13269 * gimple-fold.c: Remove gimple-fold.h from include list.
13270 * tree-vrp.c: Remove gimple-fold.h from include list.
13271 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
13272 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
13273 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
13274 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
13275 * sese.c: Add tree-ssa-propagate.h to include list.
13277 2013-10-02 Richard Biener <rguenther@suse.de>
13279 * tree-loop-distribution.c: Include tree-vectorizer.h for
13280 find_loop_location.
13281 (enum partition_kind): Remove PKIND_REDUCTION.
13282 (struct partition_s): Remove has_writes member, add reduction_p member.
13283 (partition_alloc): Adjust.
13284 (partition_builtin_p): Likewise.
13285 (partition_has_writes): Remove.
13286 (partition_reduction_p): New function.
13287 (partition_merge_into): Likewise.
13288 (generate_code_for_partition): Commonize builtin partition
13290 (rdg_cannot_recompute_vertex_p): Remove.
13291 (already_processed_vertex_p): Likewise.
13292 (rdg_flag_vertex): Do not set has_writes.
13293 (classify_partition): Adjust.
13294 (rdg_build_partitions): Do not set has_writes, treat all
13295 partitions as useful.
13296 (distribute_loop): Record number of library calls generated. Adjust.
13297 (tree_loop_distribution): Report number of loops and library
13298 calls generated as opt-info.
13300 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13302 * tree-flow.h: Include new .h files. Move prototypes.
13303 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
13304 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
13305 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
13306 * tree-pretty-print.h: Add prototypes from tree-flow.h.
13307 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
13308 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
13309 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
13310 * tree.h (get_ref_base_and_extent): Move prototype out.
13311 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
13313 * gimple-low.h: New File. Add prototypes from tree-flow.h.
13314 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
13315 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
13316 * tree-scalar-evolution.c: Include tree.h.
13317 * sese.c: Include tree.h.
13318 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
13319 * dwarf2out.c: Include tree-dfa.h.
13320 * tree-chrec.c: Include tree.h.
13321 * tree-data-ref.c: Include tree.h.
13323 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
13325 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
13328 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13330 * config/t-sol2 (sol2-c.o): Remove header dependencies.
13331 Use $(COMPILE) and $(POSTCOMPILE).
13332 (sol2-cxx.o): Likewise.
13333 (sol2-stubs.o): Likewise.
13334 (sol2.o): Likewise.
13335 * config/x-solaris (host-solaris.o): Likewise.
13337 * config/sparc/t-sparc (sparc.o): Remove.
13338 (sparc-c.o): Remove header dependencies.
13339 Use $(COMPILE) and $(POSTCOMPILE).
13340 * config/sparc/x-sparc: Likewise.
13342 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
13344 * config/arc/arc-opts.h: Add 2013 to Copyright years.
13345 * config/arc/arc700.md: Likewise.
13346 * config/arc/arc-modes.def: Likewise.
13347 * config/arc/arc-simd.h: Likewise.
13348 * config/arc/t-arc-uClibc: Likewise.
13349 * config/arc/t-arc-newlib: Likewise.
13351 2013-10-02 Renlin Li <renlin.li@arm.com>
13353 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13355 (aarch64_expand_epilogue): Likewise.
13357 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13358 Yufeng Zhang <yufeng.zhang@arm.com>
13360 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
13362 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
13363 'base_in' represent a conversion and legal_cast_p_1 holds; set
13364 'base_in' with the returned value from get_unwidened.
13366 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13368 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
13369 plus_constant is not used.
13371 2013-10-01 Wei Mi <wmi@google.com>
13373 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13374 * config/i386/i386.md: Add define_peephole2 to
13375 break partial reg stall for cvtss2sd/cvtsd2ss.
13377 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13379 * config/arc/arc.c (pass_arc_ifcvt::clone):
13380 Update for ctxt_ -> m_ctxt change.
13382 2013-10-01 Jeff Law <law@redhat.com>
13384 * tree-ssa-threadupdate.c (struct redirection_data): Delete
13385 outgoing_edge and intermediate_edge fields. Instead store the path.
13386 (redirection_data::hash): Hash on the last edge's destination index.
13387 (redirection_data::equal): Check the entire thread path.
13388 (lookup_redirectio_data): Corresponding changes.
13389 (create_edge_and_update_destination_phis): Likewise.
13390 (thread_single_edge): Likewise.
13392 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13393 Diego Novillo <dnovillo@google.com>
13395 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13396 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13397 (vld32wh_insn, vld32wl_insn): Delete commented-out old
13398 versions of these patterns.
13400 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13401 (__builtin_arc_aligned): Likewise.
13403 * config/arc/arc.md: Expand adc_0 comment stating the intended
13404 purpose and why it isn't ready.
13405 Replace commented out call_value_via_label_mixed with a
13406 plain comment about bl_s.
13408 * config/arc/arc.c (stdio.h): Don't include directly.
13409 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13410 Remove if (1) condition.
13411 (arc_encode_section_info): Fix comment.
13413 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13415 * config/arc/arc.c (arc_conditional_register_usage):
13416 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13417 Also set reg_alloc_order for DMA config regs.
13419 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13420 Jeremy Bennett <jeremy.bennett@embecosm.com>
13422 * doc/install.texi (--with-cpu): Mention ARC.
13423 (arc-*-elf32): New paragraph.
13424 (arc-linux-uclibc): Likewise.
13425 * doc/md.texi (Machine Constraints): Add ARC part.
13426 * doc/invoke.texi: (menu): Add ARC Options.
13427 (Machine Dependent Options) <ARC Options>: Add synopsis.
13428 (node ARC Options): Add.
13429 * doc/extend.texi (long_call / short_call attribute): Add ARC.
13430 (ARC Built-in Functions): New section defining
13431 generic ARC built-in functions.
13432 (ARC SIMD Built-in Functions): New section defining SIMD specific
13433 built-in functions.
13434 (Declaring Attributes of Functions): Extended
13435 description of short_call and long_call attributes for ARC and
13436 added index entries.
13438 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
13439 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
13440 Joern Rennecke <joern.rennecke@embecosm.com>
13441 Muhammad Khurram Riaz <khurram.riaz@arc.com>
13442 Brendan Kehoe <brendan@zen.org>
13443 Michael Eager <eager@eagercon.com>
13444 Simon Cook <simon.cook@embecosm.com>
13445 Jeremy Bennett <jeremy.bennett@embecosm.com>
13447 * config/arc, common/config/arc: New directories.
13449 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13450 Brendan Kehoe <brendan@zen.org>
13451 Simon Cook <simon.cook@embecosm.com>
13453 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13455 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13457 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13458 * tree-ssa-coalesce.h: New. Move prototype to here.
13459 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13460 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13461 (gimple_can_coalesce_p): Move to...
13462 * gimple.c (gimple_can_coalesce_p): Here.
13464 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13466 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13467 (dump_decl_set): Move to gimple.c.
13468 * gimple.h: Don't include tree-ssa-operands.h.
13469 (dump_decl_set): Add prototype.
13470 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13471 Move to gimple-ssa.h.
13472 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13473 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13474 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13475 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13476 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13478 (dump_decl_set): Relocate here.
13479 * gimple-ssa.h: New file.
13480 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13481 Relocate from gimple.h.
13482 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13483 * tree-ssa-operands.c (swap_ssa_operands): Rename from
13484 swap_tree_operands and remove non-ssa path.
13485 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13486 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13488 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13489 vect_is_simple_reduction_1): Use swap_ssa_operands.
13490 * tree-flow.h: Move various prototypes to tree-phinodes.h.
13491 (enum need_phi_state): Move to tree-into-ssa.c.
13492 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13493 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13494 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13495 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13496 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13497 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13498 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13499 num_imm_uses): Move to ssa-iterators.h.
13500 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13501 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13503 (op_iter_done, op_iter_next_def, op_iter_next_tree,
13504 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13505 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13506 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13507 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13508 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13509 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13510 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13511 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13512 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13513 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13514 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13515 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13516 (set_phi_nodes): Move to tree-phinodes.h.
13517 * tree-ssa-operands.h (enum ssa_op_iter_type,
13518 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13519 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13520 (dump_decl_set): Remove prototype.
13521 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13522 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
13523 (set_phi_nodes): Relocate from tree-flow-inline.h.
13524 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13526 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13527 include list. Temporarily add gimple.h to include list.
13528 * ssa-iterators.h: New file.
13529 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13530 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13531 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13532 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13533 Relocate from tree-ssa-operands.h.
13534 (delink_imm_use, link_imm_use_to_list, link_imm_use,
13535 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13536 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13537 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13538 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13539 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13540 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13541 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13542 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13543 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13544 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13545 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13546 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13547 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13548 Relocate from tree-flow-inline.h.
13549 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13551 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
13554 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13555 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13556 Insert '\t' to output template.
13557 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13558 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13559 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13560 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13562 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
13564 * doc/install.texi (Host/target specific installation notes for GCC):
13565 Put @anchor before @heading.
13566 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13567 Use @email for email addresses.
13569 2013-10-01 Jeff Law <law@redhat.com>
13571 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13572 a vec. Only delete the path if we create one without successfully
13573 registering a jump thread.
13574 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13576 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
13577 (paths): New vector of jump threading paths.
13578 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13579 (THREAD_PATH): New accessor macro for the entire thread path.
13580 (lookup_redirection_data): Get intermediate and final outgoing edge
13581 from the thread path.
13582 (create_edge_and_update_destination_phis): Copy the threading path.
13583 (ssa_fix_duplicate_block_edges): Get edges and block types from the
13584 jump threading path.
13585 (ssa_redirect_edges): Get edges and block types from the jump threading
13586 path. Free the path vector.
13587 (thread_block): Get edges from the jump threading path. Look at the
13588 entire path to see if we thread to a loop exit. If we cancel a jump
13589 thread request, then free the path vector.
13590 (thread_single_edge): Get edges and block types from the jump threading
13591 path. Free the path vector.
13592 (thread_through_loop_header): Get edges and block types from the jump
13593 threading path. Free the path vector.
13594 (mark_threaded_blocks): Iterate over the vector of paths and store
13595 the path on the appropriate edge. Get edges and block types from the
13596 jump threading path.
13597 (mark_threaded_blocks): Get edges and block types from the jump
13598 threading path. Free the path vector.
13599 (thread_through_all_blocks): Use the vector of paths rather than
13600 a vector of 3-edge sets.
13601 (register_jump_thread): Accept pointer to a path vector rather
13602 than the path vector itself. Store the path vector for later use.
13605 2013-10-01 Jakub Jelinek <jakub@redhat.com>
13606 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13609 * config/s390/s390.c (s390_split_branches): Modify check for table
13611 (s390_chunkify_start): Rearrange table jump insn check in order to
13612 deal with compare and branch insns correctly.
13614 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13618 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13619 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13620 define_insn_and_split.
13621 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13622 (shiftsi3_compare): New pattern.
13623 (rrx): New pattern.
13624 * config/arm/unspecs.md (UNSPEC_RRX): New.
13626 2013-10-01 Alan Modra <amodra@gmail.com>
13628 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13629 casing inout operands.
13631 2013-10-01 Richard Biener <rguenther@suse.de>
13633 PR tree-optimization/58553
13634 * tree-loop-distribution.c (struct partition_s): Add niter member.
13635 (classify_partition): Populate niter member for the partition
13636 and properly identify whether the relevant store happens before
13637 or after the loop exit.
13638 (generate_memset_builtin): Use niter member from the partition.
13639 (generate_memcpy_builtin): Likewise.
13641 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13643 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13644 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13646 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13648 * basic-block.h (edge_list): Prefix member names with "m_".
13649 * context.h (context): Likewise.
13650 * domwalk.h (dom_walker): Likewise.
13651 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13652 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13653 * hash-table.h (hash_table): Likewise.
13654 * machmode.h (bit_field_mode_iterator): Likewise.
13655 * pass_manager.h (pass_list): Likewise.
13656 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13657 * tree-pass.h (pass_data): Likewise.
13658 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13659 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13660 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13661 * asan.c (pass_data_asan): Update accordingly.
13662 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13663 (control_dependences::control_dependences): Likewise.
13664 (control_dependences::~control_dependences): Likewise.
13665 (control_dependences::~control_dependences): Likewise.
13666 (control_dependences::get_edges_dependent_on): Likewise.
13667 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13668 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13669 * context.c (gcc::context::context): Likewise.
13670 * cprop.c (pass_rtl_cprop::clone): Likewise.
13671 * domwalk.c (dom_walker::walk): Likewise.
13672 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13673 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13674 * mode-switching.c (pass_mode_switching::clone): Likewise.
13675 * passes.c (opt_pass::opt_pass): Likewise.
13676 (pass_manager::pass_manager): Likewise.
13677 * predict.c (pass_strip_predict_hints::clone): Likewise.
13678 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13679 (pass_split_all_insns::clone): Likewise.
13680 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13682 (bit_field_mode_iterator::next_mode): Likewise.
13683 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13684 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13685 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13686 * tree-complex.c (pass_lower_complex::clone): Likewise.
13687 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13688 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13689 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13690 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13691 (pass_fold_builtins::clone): Likewise.
13692 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13693 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13694 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13695 (pass_cd_dce::clone): Likewise.
13696 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13697 (pass_phi_only_cprop::clone): Likewise.
13698 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13699 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13700 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13701 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13702 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13703 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13704 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13705 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13706 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13707 * tree-vrp.c (pass_vrp::clone): Likewise.
13708 * tsan.c (pass_tsan::clone): Likewise.
13710 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13712 PR middle-end/58564
13713 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13714 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13716 PR middle-end/58564
13717 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13718 optimization, punt if sign_bit_p looked through any zero extension.
13720 2013-09-30 Teresa Johnson <tejohnson@google.com>
13722 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13723 Update redirected out edge count in joiner case.
13724 (ssa_redirect_edges): Common the joiner and non-joiner cases
13725 so that joiner case gets profile updates.
13727 2013-09-30 Richard Biener <rguenther@suse.de>
13729 PR tree-optimization/58554
13730 * tree-loop-distribution.c (classify_partition): Require
13731 unconditionally executed stores for memcpy and memset recognition.
13732 (tree_loop_distribution): Calculate dominance info.
13734 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
13736 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13737 (NO_PROFILE_COUNTERS): Likewise.
13738 (PROFILE_HOOK): Likewise.
13739 (FUNCTION_PROFILER): Likewise.
13740 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13742 2013-09-30 Iain Sandoe <iain@codesourcery.com>
13744 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13745 calls and defines in TARGET_MACHO conditional.
13746 (load_macho_picbase_di): Likewise.
13747 (reload_macho_picbase): Likewise.
13748 (reload_macho_picbase_si): Likewise.
13749 (reload_macho_picbase_di): Likewise.
13750 (nonlocal_goto_receiver): Likewise.
13752 2013-09-30 Nick Clifton <nickc@redhat.com>
13754 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
13755 that use the MSP430X ISA.
13756 (msp430_option_override): Scan -mmcu command line option for any
13757 MCU name that supports the MSP430X ISA.
13758 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13759 -mmcu options which enable the MSP430X ISA.
13761 2013-09-30 Richard Biener <rguenther@suse.de>
13763 PR middle-end/58532
13764 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13765 before looking for setjmp-like calls.
13767 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13770 * config/darwin-protos.h (machopic_get_function_picbase): New.
13771 * config/darwin.c (machopic_get_function_picbase): New.
13772 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13773 label for a new func. (load_macho_picbase_di): Likewise.
13774 (reload_macho_picbase): New expand.
13775 (reload_macho_picbase_si): New insn.
13776 (reload_macho_picbase_di): New insn.
13777 (nonlocal_goto_receiver): New define and split.
13778 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13779 (unspecv enum): Add UNSPECV_NLGR.
13781 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13783 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13784 that altivec registers are correctly sized on Darwin.
13786 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13788 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13789 darwin-driver.o): Use COMPILE and POSTCOMPILE.
13790 * config/x-darwin (host-darwin.o): Likewise.
13791 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13792 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13793 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13795 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13797 * doc/invoke.texi: Fix usage of @tie{} command.
13799 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13801 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13803 2013-09-28 Jan Hubicka <jh@suse.cz>
13805 * config/i386/x86-tune.def: Add documentation for each of the options;
13808 2013-09-28 Jan Hubicka <jh@suse.cz>
13810 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13812 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13813 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13814 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13815 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13816 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13818 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13820 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13821 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13822 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13823 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13824 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13825 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13826 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13827 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13828 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13829 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13830 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13831 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13832 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13833 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13834 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13835 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13836 gimple.h, godump.c, graphite-clast-to-gimple.c,
13837 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13838 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13839 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13840 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13841 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13842 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13843 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13844 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13845 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13846 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13847 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13848 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13849 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13850 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13851 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13852 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13853 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13854 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13855 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13856 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13857 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13858 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13859 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13860 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13861 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13862 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13863 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13864 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13865 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13866 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13867 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13868 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13869 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13870 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13871 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13872 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13873 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13874 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13875 whitespace before "(".
13877 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13879 * expr.h (extract_bit_field): Remove packedp parameter.
13880 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13881 from forward declaration.
13882 (store_split_bit_field): Remove packedp arg from calls to
13883 extract_fixed_bit_field.
13884 (extract_bit_field_1): Remove packedp parameter and packedp
13885 argument from recursive calls and calls to extract_fixed_bit_field.
13886 (extract_bit_field): Remove packedp parameter and corresponding
13887 arg to extract_bit_field_1.
13888 (extract_fixed_bit_field): Remove packedp parameter. Remove code
13890 (extract_split_bit_field): Remove packedp arg from call to
13891 extract_fixed_bit_field.
13892 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13893 (copy_blkmode_from_reg): Likewise.
13894 (copy_blkmode_to_reg): Likewise.
13895 (read_complex_part): Likewise.
13896 (store_field): Likewise.
13897 (expand_expr_real_1): Likewise.
13898 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13899 to extract_bit_field.
13900 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13901 call to extract_bit_field.
13902 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13903 call to extract_bit_field.
13904 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13905 and special packedp behavior from -fstrict-volatile-bitfields
13908 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13910 * lra-eliminations.c (init_elim_table): Guard value_p.
13912 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13914 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13915 DFmode, DImode, and SFmode in the upper VSX registers based on the
13916 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
13917 if -mpower8-vector. Combine -mvsx-timode handling with the rest
13918 of the VSX register handling.
13920 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13921 (f32_sv): Likewise.
13922 (zero_extendsidi2_lfiwzx): Add support for loading into the
13923 Altivec registers with -mpower8-vector. Use wu/wv constraints to
13924 only do VSX memory options on Altivec registers.
13925 (extendsidi2_lfiwax): Likewise.
13926 (extendsfdf2_fpr): Likewise.
13927 (mov<mode>_hardfloat, SF/SD modes): Likewise.
13928 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13929 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13930 (movdi_internal64): Likewise.
13932 2013-09-27 Xinliang David Li <davidxl@google.com>
13934 * opts.c (finish_options): Adjust parameters
13935 according to vect cost model.
13936 (common_handle_option): Set dynamic vect cost
13938 targhooks.c (default_add_stmt_cost): Compute stmt cost
13940 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13941 Use helper function.
13942 * tree-vectorizer.h (unlimited_cost_model): New function.
13943 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13944 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13946 (vect_enhance_data_refs_alignment): Ditto.
13947 * flag-types.h: New enum.
13948 * common/config/i386/i386-common.c (ix86_option_init_struct):
13949 No need to initialize vect_cost_model flag.
13950 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13953 2013-09-27 Diego Novillo <dnovillo@google.com>
13955 * gimple.h (enum ssa_mode): Remove.
13957 2013-09-27 Paulo Matos <pmatos@broadcom.com>
13959 * cfgloop.h (number_of_loops): Fix typo in check for null.
13961 2013-09-27 Jakub Jelinek <jakub@redhat.com>
13963 PR middle-end/58551
13964 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13965 are children of outermost saved_cfun's loop, and set it up to
13966 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
13967 if loop != loop0 and SESE region contains bbs that belong to loop0.
13969 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13971 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13972 (binary_scale_code_p, get_base_term, get_index_term): New functions.
13973 (set_address_segment, set_address_base, set_address_index)
13974 (set_address_disp): Accept the argument unconditionally.
13975 (baseness): Remove must_be_base_p and must_be_index_p checks.
13976 (decompose_normal_address): Classify as much as possible in the
13979 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13981 * cse.c (count_reg_usage): Handle INT_LIST.
13982 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13983 * reginfo.c (reg_scan_mark_refs): Likewise.
13984 * reload1.c (eliminate_regs_1): Likewise.
13986 2013-09-27 Iain Sandoe <iain@codesourcery.com>
13988 PR middle-end/58547
13989 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13992 2013-09-27 Richard Biener <rguenther@suse.de>
13994 PR tree-optimization/58459
13995 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13996 restriction not propagating into loops.
13998 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
14000 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
14001 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
14002 * doc/tree-ssa.texi (Walking use-def chains): Delete.
14004 2013-09-26 Richard Biener <rguenther@suse.de>
14006 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
14008 2013-09-26 Richard Biener <rguenther@suse.de>
14010 * alias.h (component_uses_parent_alias_set): Rename to ...
14011 (component_uses_parent_alias_set_from): ... this.
14012 * alias.c (component_uses_parent_alias_set): Rename to ...
14013 (component_uses_parent_alias_set_from): ... this and return
14014 the desired parent.
14015 (reference_alias_ptr_type_1): Use the result from
14016 component_uses_parent_alias_set_from instead of stripping
14017 components one at a time.
14018 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
14020 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
14022 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
14023 Move prototypes to...
14024 * tree-ssa-ter.h: New File. Move prototypes here.
14025 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
14026 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
14027 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
14028 from is_replaceable_p.
14029 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
14030 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
14031 (process_replaceable): Use ter_is_replaceable_p.
14032 (find_replaceable_in_bb): Use ter_is_replaceable_p.
14033 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
14034 newly refactored ssa_is_replaceable_p.
14035 * cfgexpand.c: Include tree-outof-ssa.h.
14036 * ssaexpand.h: Delete.
14038 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
14040 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
14041 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
14043 (create_gimple_tmp): Delete.
14044 (get_expr_type, build_assign, build_type_cast): Move to...
14045 * gimple-builder.c: New File.
14046 (get_expr_type): Relocate from gimple.c.
14047 (build_assign, build_type_cast): Change to only create ssanames.
14048 * gimple.h: Move prototypes to...
14049 * gimple-builder.h: New File. Here.
14050 * tree-ssa.h: And here.
14051 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
14052 count_uses_and_derefs): Relocate from gimple.c.
14053 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
14054 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
14055 * tree-ssa-math-opts (execute_cse_reciprocals): Use
14056 gimple_replace_ssa_lhs.
14057 * asan.c: Include gimple-builder.h.
14058 * Makefile.in: Add gimple-builder.o.
14060 2013-09-26 Richard Biener <rguenther@suse.de>
14062 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
14063 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
14064 (loe_visit_block): Use gcc_checking_assert.
14065 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
14066 gimple_assign_ssa_name_copy_p.
14067 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
14070 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
14072 * config/rs6000/t-rs6000 (rs6000.o): Remove.
14073 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
14075 2013-09-26 Richard Biener <rguenther@suse.de>
14077 PR tree-optimization/58539
14078 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
14079 the fact that debug statements are not taking part in loop-closed
14082 2013-09-26 Nick Clifton <nickc@redhat.com>
14084 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
14085 time warning message.
14086 (msp430_print_operand_raw): Delete unused letter parameter.
14087 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14088 (msp430_print_operand_address): New function.
14089 (msp430_print_operand): Move address printing code from here to
14091 * config/msp430/msp430.md (movsipsi2): Add comment in generated
14093 (zero_extendpsisi2): Likewise.
14094 (extendpsisi2): New pattern.
14095 (andneghi3): New pattern.
14097 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
14099 * config/aarch64/aarch64.opt (mlra): New option.
14100 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
14101 (TARGET_LRA_P): Define.
14103 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
14105 * expr.c (expand_assignment): Remove obsolete comment.
14107 2013-09-25 Jeff Law <law@redhat.com>
14109 * tree-flow.h (thread_through_all_blocks): Prototype moved into
14110 tree-ssa-threadupdate.h.
14111 (register_jump_thread): Similarly.
14112 * tree-ssa-threadupdate.h: New header file.
14113 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
14114 * tree-vrp.c: Likewise.
14115 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
14116 (thread_around_empty_blocks): Change type of path vector argument to
14117 an edge,type pair from just an edge. Initialize both elements when
14118 appending to a jump threading path. Tweak references to elements
14120 (thread_across_edge): Similarly. Release memory for the elements
14122 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
14123 (dump_jump_thread_path): New function broken out from
14124 register_jump_thread.
14125 (register_jump_thread): Use dump_jump_thread_path. Change type of
14126 path vector entries. Search the path for NULL edges and dump
14127 the path if one is found. Tweak the conversion of path to 3-edge
14128 form to use the block copy type information embedded in the path.
14130 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
14132 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
14134 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
14135 Vladimir Makarov <vmakarov@redhat.com>
14137 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
14138 from the least significant bit.
14139 (strip_address_mutations): Add bitfield operations handling.
14140 (must_be_index_p): Add shifting and rotate operations handling.
14141 (set_address_base): Use must_be_base_p predicate.
14142 (set_address_index): Use must_be_index_p predicate.
14144 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
14145 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14146 Sergey Lega <sergey.s.lega@intel.com>
14147 Anna Tikhonova <anna.tikhonova@intel.com>
14148 Ilya Tocar <ilya.tocar@intel.com>
14149 Andrey Turetskiy <andrey.turetskiy@intel.com>
14150 Ilya Verbin <ilya.verbin@intel.com>
14151 Kirill Yukhin <kirill.yukhin@intel.com>
14152 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14154 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14156 (ix86_expand_vector_move_misalign): Support new unaligned load and
14157 stores and use new names.
14158 (CODE_FOR_sse2_storedqu): Rename to ...
14159 (CODE_FOR_sse2_storedquv16qi): ... this.
14160 (CODE_FOR_sse2_loaddqu): Rename to ...
14161 (CODE_FOR_sse2_loaddquv16qi): ... this.
14162 (CODE_FOR_avx_loaddqu256): Rename to ...
14163 (CODE_FOR_avx_loaddquv32qi): ... this.
14164 (CODE_FOR_avx_storedqu256): Rename to ...
14165 (CODE_FOR_avx_storedquv32qi): ... this.
14166 * config/i386/i386.md (fpint_logic): New.
14167 * config/i386/sse.md (VMOVE): Extend for AVX512.
14171 (VI_UNALIGNED_LOADSTORE): Ditto.
14172 (sse2_avx_avx512f): Ditto.
14173 (sse2_avx2): Extend for AVX512.
14174 (sse4_1_avx2): Ditto.
14175 (avx2_avx512f): New.
14176 (sse): Extend for AVX512.
14179 (avxsizesuffix): Ditto.
14180 (sseintvecmode): Ditto.
14181 (ssePSmode): Ditto.
14182 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
14183 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
14184 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
14185 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
14186 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
14187 (<sse2_avx_avx512f>_storedqu<mode): ... this.
14188 (<sse>_movnt<mode>): Replace constraint "x" with "v".
14189 (STORENT_MODE): Extend for AVX512.
14190 (*absneg<mode>2): Replace constraint "x" with "v".
14191 (*mul<mode>3): Ditto.
14192 (*ieee_smin<mode>3): Ditto.
14193 (*ieee_smax<mode>3): Ditto.
14194 (avx_cmp<mode>3): Replace VF with VF_128_256.
14195 (*<sse>_maskcmp<mode>3_comm): Ditto.
14196 (<sse>_maskcmp<mode>3): Ditto.
14197 (<sse>_andnot<mode>3): Extend for AVX512.
14198 (<code><mode>3, anylogic): Replace VF with VF_128_256.
14199 (<code><mode>3, fpint_logic): New.
14200 (*<code><mode>3): Extend for AVX512.
14201 (avx512flogicsuff): New.
14202 (avx512f_<logic><mode>): Ditto.
14203 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
14205 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
14206 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
14207 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
14208 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
14209 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
14210 (xop_vpermil2<mode>3): Ditto.
14211 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
14212 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
14213 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
14214 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
14216 2013-09-25 Tom Tromey <tromey@redhat.com>
14218 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
14219 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
14220 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
14221 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
14222 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
14223 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
14224 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
14225 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
14226 (GRAPHITE_HTAB_H): Remove.
14228 2013-09-25 Tom Tromey <tromey@redhat.com>
14230 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
14232 2013-09-25 Tom Tromey <tromey@redhat.com>
14234 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
14236 2013-09-25 Tom Tromey <tromey@redhat.com>
14238 * config/i386/t-i386 (i386.o): Remove.
14239 (i386-c.o): Use COMPILE and POSTCOMPILE.
14241 2013-09-25 Tom Tromey <tromey@redhat.com>
14243 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
14245 2013-09-25 Tom Tromey <tromey@redhat.com>
14247 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
14248 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
14249 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
14250 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
14251 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
14252 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
14253 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
14254 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
14255 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
14256 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
14257 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
14258 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
14259 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
14260 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
14261 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
14262 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
14263 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
14264 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
14265 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
14266 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
14267 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
14268 (tree-ssa-pre.o, tree-ssa-sccvn.o)
14269 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
14270 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
14271 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
14272 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
14273 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
14274 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
14275 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
14276 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
14277 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
14278 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
14279 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
14280 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
14281 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
14282 (graphite-clast-to-gimple.o, graphite-dependences.o)
14283 (graphite-interchange.o, graphite-poly.o)
14284 (graphite-scop-detection.o, graphite-sese-to-poly.o)
14285 (graphite-optimize-isl.o, tree-vect-loop.o)
14286 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
14287 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
14288 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
14289 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
14290 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
14291 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
14292 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
14293 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
14294 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
14295 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
14296 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
14297 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
14298 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
14299 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
14300 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
14301 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
14302 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
14303 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
14304 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
14305 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
14306 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
14307 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
14308 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
14309 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
14310 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
14311 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
14312 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
14313 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
14314 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
14315 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
14316 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
14317 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
14318 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
14319 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
14320 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
14321 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
14322 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
14323 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
14324 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
14325 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
14326 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
14327 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
14328 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
14329 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
14330 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
14331 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
14332 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
14333 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
14334 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
14335 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
14336 (gcov-dump.o): Remove.
14337 (default-c.o): Use COMPILE and POSTCOMPILE.
14338 (CFLAGS-gcc.o): New variable.
14339 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
14341 2013-09-25 Tom Tromey <tromey@redhat.com>
14343 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
14344 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
14345 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
14346 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
14347 (c-family/c-pragma.o, c-family/c-pretty-print.o)
14348 (c-family/c-semantics.o, c-family/c-ada-spec.o)
14349 (c-family/array-notation-common.o, c-family/stub-objc.o)
14350 (c-family/c-ubsan.o): Remove.
14352 2013-09-25 Tom Tromey <tromey@redhat.com>
14354 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
14356 2013-09-25 Tom Tromey <tromey@redhat.com>
14358 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
14359 to add -DENABLE_SHARED_LIBGCC.
14360 (gcc.o): Don't use subshell.
14362 2013-09-25 Tom Tromey <tromey@redhat.com>
14364 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
14365 * configure.ac: Don't invoke AM_PROG_CC_C_O.
14366 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
14367 * configure, config.in: Rebuild.
14369 2013-09-25 Tom Tromey <tromey@redhat.com>
14371 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14372 (COMPILE, POSTCOMPILE): New variables.
14373 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14374 (DEPFILES): New variable.
14375 Include ".Po" files.
14376 * configure.ac: Add checks for dependency checking.
14377 * configure, aclocal.m4: Regenerate.
14379 2013-09-25 Tom Tromey <tromey@redhat.com>
14381 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14382 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14384 2013-09-25 Tom Tromey <tromey@redhat.com>
14386 * Makefile.in (generated_files): Add options.h,
14387 target-hooks-def.h, insn-opinit.h,
14388 common/common-target-hooks-def.h, pass-instances.def,
14389 c-family/c-target-hooks-def.h.
14391 2013-09-25 Jeff Law <law@redhat.com>
14393 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14394 than foo[foo.length () - 1] to access last member in a vec.
14395 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14397 2013-09-25 Richard Biener <rguenther@suse.de>
14399 PR middle-end/58521
14400 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14402 2013-09-25 Jan Hubicka <jh@suse.cz>
14404 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14407 2013-09-25 Marek Polacek <polacek@redhat.com>
14410 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14411 when determining the type name.
14413 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
14415 * config/sh/sh.md: Fix formatting.
14417 2013-09-24 Xinliang David Li <davidxl@google.com>
14419 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14420 max peel iterations parameter.
14421 * param.def: New parameter.
14422 * doc/invoke.texi: Document New parameter.
14424 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
14426 * gimple-pretty-print.c: Various whitespace tweaks.
14427 * tree-core.h: Likewise.
14428 * tree-pretty-print.c: Likewise.
14429 * tree-ssa-alias.c: Likewise.
14430 * tree-ssa-copy.c: Likewise.
14431 * tree-ssanames.c: Likewise.
14432 * tree-ssanames.h: Likewise.
14433 * tree-vrp.c: Likewise.
14435 2013-09-24 Alan Modra <amodra@gmail.com>
14437 PR middle-end/57134
14438 PR middle-end/57586
14439 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14440 for output operands that disallow regs. Don't use EXPAND_WRITE on
14443 2013-09-24 Richard Biener <rguenther@suse.de>
14445 PR middle-end/58513
14446 * tree.c (reference_alias_ptr_type): Move ...
14447 * alias.c (reference_alias_ptr_type): ... here and implement
14448 in terms of the new reference_alias_ptr_type_1.
14449 (ref_all_alias_ptr_type_p): New helper.
14450 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14451 use ref_all_alias_ptr_type_p.
14452 (get_deref_alias_set): Add flag_strict_aliasing check here.
14453 (reference_alias_ptr_type_1): New function, split out from ...
14454 (get_alias_set): ... here.
14455 (alias_ptr_types_compatible_p): New function.
14456 * alias.h (reference_alias_ptr_type): Declare.
14457 (alias_ptr_types_compatible_p): Likewise.
14458 * tree.h (reference_alias_ptr_type): Remove.
14459 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14460 to compare MEM_REF alias types.
14462 2013-09-24 Richard Biener <rguenther@suse.de>
14464 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14466 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14468 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14469 reload helper function arrays into a single array reg_addr.
14470 (reload_fpr_gpr): Likewise.
14471 (reload_gpr_vsx): Likewise.
14472 (reload_vsx_gpr): Likewise.
14473 (struct rs6000_reg_addr): Likewise.
14474 (reg_addr): Likewise.
14475 (rs6000_debug_reg_global): Change rs6000_vector_reload,
14476 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14477 (rs6000_init_hard_regno_mode_ok): Likewise.
14478 (rs6000_secondary_reload_direct_move): Likewise.
14479 (rs6000_secondary_reload): Likewise.
14481 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14482 constraints: wu, ww, and wy. Repurpose wv constraint added during
14483 power8 changes. Put wg constraint in alphabetical order.
14485 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14486 for future work to add ISA 2.07 VSX single precision support.
14487 (-mvsx-scalar-double): Change default from -1 to 1, update
14488 documentation comment.
14489 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14490 (-mupper-regs-df): New debug switch to control whether DF values
14491 can go in the traditional Altivec registers.
14492 (-mupper-regs-sf): New debug switch to control whether SF values
14493 can go in the traditional Altivec registers.
14495 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14496 and wy constraints.
14497 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14498 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
14499 Add new constraints, wu/ww/wy. Repurpose wv constraint.
14500 (rs6000_debug_legitimate_address_p): Print if we are running
14501 before, during, or after reload.
14502 (rs6000_secondary_reload): Add a comment.
14503 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14505 * config/rs6000/constraints.md (wa constraint): Sort w<x>
14506 constraints. Update documentation string.
14507 (wd constraint): Likewise.
14508 (wf constraint): Likewise.
14509 (wg constraint): Likewise.
14510 (wn constraint): Likewise.
14511 (ws constraint): Likewise.
14512 (wt constraint): Likewise.
14513 (wx constraint): Likewise.
14514 (wz constraint): Likewise.
14515 (wu constraint): New constraint for ISA 2.07 SFmode scalar
14517 (ww constraint): Likewise.
14518 (wy constraint): Likewise.
14519 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14520 in the previous submissions.
14521 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14523 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
14525 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14526 (REG_BR_PROB): Say that the probability is stored in an int_list.
14527 * reg-notes.def: Update commentary to mention INT_LIST.
14528 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14529 (INT_LIST): New rtx.
14530 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14531 * rtlanal.c (int_reg_note_p): New function.
14532 (alloc_reg_note): Assert that the note does not have an int argument.
14533 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14534 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14535 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14536 rather than an INSN_LIST. Handle INT_LIST.
14537 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14538 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14539 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14540 Manipulate them as ints rather than rtxes.
14541 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14542 * regmove.c (copy_src_to_dest): Likewise.
14543 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14545 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14546 into the cases that need it.
14547 * config/arm/arm.c (arm_unwind_emit): Likewise.
14549 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14550 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14551 * loop-doloop.c (add_test, doloop_modify): Likewise.
14552 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14553 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14554 * predict.c (combine_predictions_for_insn): Likewise.
14555 * print-rtl.c (print_rtx): Handle INT_LIST.
14556 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14557 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14558 * config/arm/arm.c (emit_unlikely_jump): Likewise.
14559 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14560 (ix86_split_fp_branch, predict_jump): Likewise.
14561 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14562 * config/sh/sh.c (expand_cbranchsi4): Likewise.
14563 * config/spu/spu.c (ea_load_store_inline): Likewise.
14565 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14566 value of a REG_BR_PROB note.
14567 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14568 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14569 * emit-rtl.c (try_split): Likewise.
14570 * predict.c (br_prob_note_reliable_p): Likewise.
14571 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14572 * reorg.c (mostly_true_jump): Likewise.
14573 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14574 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14575 * config/i386/i386.c (ix86_print_operand): Likewise.
14576 * config/ia64/ia64.c (ia64_print_operand): Likewise.
14577 * config/mmix/mmix.c (mmix_print_operand): Likewise.
14578 * config/rs6000/rs6000.c (output_cbranch): Likewise.
14579 * config/s390/s390.c (s390_expand_tbegin): Likewise.
14580 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14581 * config/sparc/sparc.c (output_cbranch): Likewise.
14582 * config/spu/spu.c (get_branch_target): Likewise.
14583 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14584 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14586 2013-09-23 Jan Hubicka <jh@suse.cz>
14588 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14590 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14591 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14593 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14594 (gimple_fold_call): Dump inconsistent devirtualizations; add
14595 sanity check for type based devirtualizations.
14596 * ipa-prop.c: Include ipa-utils.h
14597 (ipa_intraprocedural_devirtualization): Add sanity check.
14598 (try_make_edge_direct_virtual_call): Likewise.
14600 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
14602 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14603 assignment statements.
14605 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14607 * gimple-pretty-print.c (dump_ssaname_info): New function.
14608 (dump_gimple_phi): Call it.
14609 (pp_gimple_stmt_1): Likewise.
14610 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14611 (range_info_def): Declare.
14612 * tree-pretty-print.c (pp_double_int): New function.
14613 (dump_generic_node): Call it.
14614 * tree-pretty-print.h (pp_double_int): Declare.
14615 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14616 * tree-ssanames.h (range_info_def): New structure.
14617 (value_range_type): Move definition here.
14618 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14620 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14622 (set_range_info): New function.
14623 (get_range_info): Likewise.
14624 (duplicate_ssa_name_range_info): Likewise.
14625 (duplicate_ssa_name_fn): Check pointer type and call
14626 duplicate_ssa_name_range_info.
14627 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14628 * tree-vrp.c (value_range_type): Remove definition, now in
14630 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14631 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14632 (SSA_NAME_RANGE_INFO): New macro.
14634 2013-09-23 Richard Biener <rguenther@suse.de>
14636 PR tree-optimization/58464
14637 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14638 (phi_trans_add): Change to add conditionally on being not present.
14639 (phi_translate_1): Remove recursion detection here.
14640 (phi_translate): Pre-seed the cache with NULL to catch
14641 recursion here in a more generic way.
14642 (bitmap_find_leader): Adjust comment.
14643 (get_representative_for): Dump value-numbers.
14644 (create_expression_by_pieces): Likewise.
14645 (insert_into_preds_of_block): Likewise.
14647 2013-09-23 Christian Bruel <christian.bruel@st.com>
14650 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14651 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14653 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14656 2013-09-20 Renlin Li <renlin.li@arm.com>
14658 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14660 (aarch64_expand_epilogue): Likewise.
14661 (aarch64_legitimize_reload_address): Likewise.
14663 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14665 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14666 NULL_TREE before pushing them onto the vector. Likewise for labels.
14668 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14670 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14671 comparison operators when -fno-trapping-math is in effect.
14672 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14673 comparison operators in TFmode and assert that unsupported operators
14675 (ia64_print_operand): Likewise.
14677 2013-09-21 Jan Hubicka <jh@suse.cz>
14679 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14680 (sse_typeless_stores): Enable for core
14681 (sse_load0_by_pxor): Likewise.
14682 (four_jump_limit): Disable for core.
14683 (pad_returns): Likewise.
14684 (avoid_vector_decode): Likewise.
14685 (fuse_cmp_and_branch): Enable for cores.
14686 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14688 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14690 PR middle-end/56791
14691 * config/pa/pa.c (pa_option_override): Disable auto increment and
14692 decrement instructions until reload is completed.
14694 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14695 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14696 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14698 2013-09-20 DJ Delorie <dj@redhat.com>
14699 Nick Clifton <nickc@redhat.com>
14701 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14702 (need_to_save): Save bank 0 on interrupts.
14703 (characterize_address): Strip far address wrappers.
14704 (rl78_as_legitimate_address): Likewise.
14705 (transcode_memory_rtx): Likewise.
14706 (rl78_peep_movhi_p): Disable this peephole after devirt.
14707 (rl78_propogate_register_origins): Forget all origins when a
14709 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14710 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14712 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14713 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14714 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14716 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14718 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14720 * config/pa/pa.md: In "scc" insn patterns, change output template to
14721 handle const0_rtx in reg_or_0_operand operands.
14723 2013-09-20 Martin Husemann <martin@NetBSD.org>
14726 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14727 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14729 2013-09-20 Richard Biener <rguenther@suse.de>
14731 PR middle-end/58484
14732 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14733 remembering SSA name version and block index.
14734 (new_scev_info_str): Adjust.
14735 (hash_scev_info): Likewise. Also hash the block index.
14736 (eq_scev_info): Adjust.
14737 (find_var_scev_info): Likewise.
14738 (struct instantiate_cache_entry): Remove.
14739 (struct instantiate_cache_type): Use a htab to map name, block
14741 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14742 (get_instantiated_value_entry): Likewise.
14743 (hash_idx_scev_info, eq_idx_scev_info): New functions.
14744 (instantiate_scev_name): Adjust.
14746 2013-09-20 Jeff Law <law@redhat.com>
14748 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14750 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
14752 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14753 Call aarch64_simd_expand_args to update op[argc].
14755 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14757 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14760 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14762 * gengtype.c (file_rules): Added rule for *.cc files.
14763 (get_output_file_with_visibility): Give fatal message when no
14766 2013-09-20 Renlin Li <renlin.li@arm.com>
14768 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14769 (aarch64_expand_epilogue): Likewise.
14770 (aarch64_legitimize_reload_address): Likewise.
14772 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14774 PR middle-end/57748
14775 * expr.c (expand_assignment): Remove misalignp code path.
14777 2013-09-20 Marek Polacek <polacek@redhat.com>
14780 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14781 TYPE_PRECISION. Add asserts.
14783 2013-09-20 Richard Biener <rguenther@suse.de>
14785 PR tree-optimization/58453
14786 * tree-loop-distribution.c (distribute_loop): Apply the cost
14787 model for -ftree-loop-distribute-patterns, too.
14789 2013-09-20 Richard Biener <rguenther@suse.de>
14791 PR middle-end/58473
14792 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14793 make type comparison less strict.
14795 2013-09-20 Alan Modra <amodra@gmail.com>
14797 * configure: Regenerate.
14798 * aclocal.m4: Regenerate.
14800 2013-09-20 Marek Polacek <polacek@redhat.com>
14803 * doc/extend.texi: Document that attribute used is meant to be used
14804 on variables with static storage duration.
14806 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14808 PR tree-optimization/58472
14809 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14810 simd_lane_access set inv_p = false.
14811 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14812 the simduid magic VAR_DECL.
14814 2013-09-19 Jan Hubicka <jh@suse.cz>
14816 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14818 2013-09-17 Jeff Law <law@redhat.com>
14820 * tree-ssa-dom.c (record_temporary_equivalences): New function
14821 split out of dom_opt_dom_walker::after_dom_children.
14822 (dom_opt_dom_walker::thread_across_edge): Move common code
14823 in here from dom_opt_dom_walker::after_dom_children.
14824 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14826 2013-09-19 Jan Hubicka <jh@suse.cz>
14828 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14829 (TARGET_GENERIC): Use PROCESOR_GENERIC
14830 (enum processor_type): Unify generic32 and 64.
14831 * i386.md (cpu): Likewise.
14832 * x86-tune.def (use_leave): Enable for generic32.
14833 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14834 * athlon.md: Change generic64 to generic in all occurences.
14835 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14836 (ix86_target_macros_internal): Likewise.
14837 * driver-i386.c (host_detect_local_cpu): Likewise.
14838 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14840 (generic_memcpy, generic_memset, generic_cost): This one.
14841 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14842 (m_GENERIC32, m_GENERIC64): Remove.
14843 (m_GENERIC): Turn into one flag.
14844 (processor_target): Unify generic tunnings.
14845 (ix86_option_override_internal): Replace generic32/64 by generic.
14846 (ix86_issue_rate): Likewise.
14847 (ix86_adjust_cost): Likewise.
14849 2013-09-19 Jan Hubicka <jh@suse.cz>
14851 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14852 of speculative flag.
14854 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14856 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14857 GOMP_sections_start, even if !exit_reachable.
14859 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14861 * lra-constraints.c (need_for_all_save_p): Use macro
14862 HARD_REGNO_CALL_PART_CLOBBERED.
14863 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14864 set up pseudo conflict hard regs.
14866 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14869 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14872 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14874 PR rtl-optimization/58438
14875 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14876 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14877 from previous subpasses.
14879 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14881 * arm.c (arm_get_frame_offsets): Validate architecture supports
14882 LDRD/STRD before accepting the tuning preference.
14883 (arm_expand_prologue): Likewise.
14884 (arm_expand_epilogue): Likewise.
14886 2013-09-18 Richard Biener <rguenther@suse.de>
14888 PR tree-optimization/58417
14889 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14890 have chrecs with symbols defined in the loop as operands.
14891 (chrec_fold_multiply): Likewise.
14892 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14893 parameters before folding binary operations.
14894 (struct instantiate_cache_entry_hasher): Remove.
14895 (struct instantiate_cache_type): Use a pointer-map.
14896 (instantiate_cache_type::instantiate_cache_type): New function.
14897 (instantiate_cache_type::get): Likewise.
14898 (instantiate_cache_type::set): Likewise.
14899 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14900 (get_instantiated_value_entry): Likewise.
14901 (global_cache): New global.
14902 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14903 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14904 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14905 (instantiate_scev_name): Adjust.
14906 (instantiate_scev): Construct global instead of local cache.
14907 (resolve_mixers): Likewise.
14909 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
14910 Paolo Carlini <paolo.carlini@oracle.com>
14913 * doc/implement-cxx.texi: Fix references to the C++ standards.
14915 2013-09-18 Jakub Jelinek <jakub@redhat.com>
14917 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14918 * tree-vect-data-refs.c (vect_analyze_data_refs): For
14919 simd_lane_access drs, update also DR_ALIGNED_TO.
14921 2013-09-18 Marek Polacek <polacek@redhat.com>
14924 * doc/extend.texi: Document no_sanitize_undefined attribute.
14925 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14926 no_sanitize_undefined attribute.
14928 2013-09-18 Nick Clifton <nickc@redhat.com>
14930 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14931 (ASM_DECLARE_FUNCTION_NAME): Define.
14933 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
14935 * compare-elim.c (find_comparison_dom_walker): New class
14936 (find_comparisons_in_bb): Rename to
14937 find_comparison_dom_walker::before_dom_children
14938 (find_comparisons): Adjust
14939 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14941 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14942 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14943 (init_walk_dominator_tree): Remove declaration.
14944 (fini_walk_dominator_tree): Remove declaration.
14945 * fwprop.c (single_def_use_dom_walker): New class
14946 (single_def_use_enter_block): Convert to
14947 single_def_use_dom_walker::before_dom_children.
14948 (single_def_use_leave_block): Convert to
14949 single_def_use_dom_walker::after_dom_children.
14950 (build_single_def_use_links): Adjust.
14951 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14953 (find_candidates_in_block): Convert to
14954 find_candidates_dom_walker::before_dom_children.
14955 (execute_strength_reduction): Adjust.
14956 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14957 (sese_dom_walker): New class.
14958 (sese_dom_walker::sese_dom_walker): New constructor.
14959 (sese_dom_walker::~sese_dom_walker): New destructor.
14960 (build_sese_conditions_before): Convert to
14961 sese_dom_walker::before_dom_children.
14962 (build_sese_conditions_after): Convert to
14963 sese_dom_walker::after_dom_children.
14964 (build_poly_scop): Adjust
14965 * tree-into-ssa.c (rewrite_dom_walker): New class
14966 (rewrite_enter_block): Convert to
14967 rewrite_dom_walker::before_dom_children.
14968 (rewrite_leave_block): Convert to
14969 rewrite_dom_walker::after_dom_children.
14970 (rewrite_update_dom_walker): New class.
14971 (rewrite_update_enter_block): Convert to
14972 rewrite_update_dom_walker::before_dom_children.
14973 (rewrite_update_leave_block): Convert to
14974 rewrite_update_dom_walker::after_dom_children.
14975 (rewrite_blocks, rewrite_into_ssa): Adjust.
14976 (mark_def_dom_walker): New class.
14977 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14978 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14979 (mark_def_sites_blocks): Convert to
14980 mark_def_dom_walker::before_dom_children.
14981 (mark_def_site_blocks): Remove.
14982 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14983 (tree_ssa_dominator_optimize): Adjust.
14984 (dom_thread_across_edge): Convert to method
14985 dom_opt_dom_walker::thread_across_edge.
14986 (dom_opt_enter_block): Convert to member function
14987 dom_opt_dom_walker::before_dom_children.
14988 (dom_opt_leave_block): Convert to member function
14989 dom_opt_dom_walker::after_dom_children.
14990 * tree-ssa-dse.c (dse_dom_walker): New class.
14991 (dse_enter_block): Convert to member function
14992 dse_dom_walker::before_dom_children.
14993 (tree_ssa_dse): Adjust.
14994 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14995 (determine_invariantness_stmt): Convert to method
14996 invariantness_dom_walker::before_dom_children.
14997 (determine_invariantness): Remove
14998 (move_computations_dom_walker): New class.
14999 (move_computations_stmt): Convert to method
15000 move_computations_dom_walker::before_dom_children.
15001 (move_computations, tree_ssa_lim): Adjust.
15002 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
15003 (nt_init_block): Convert to method
15004 notrappping_dom_walker::before_dom_children.
15005 (nt_fini_block): Convert to method
15006 method nontrapping_dom_walker::after_dom_children.
15007 (get_non_trapping): Adjust.
15008 * tree-ssa-pre.c (eliminate_dom_walker): New class.
15009 (eliminate_bb): Convert to method
15010 eliminate_dom_walker::before_dom_children.
15011 (eliminate_leave_block): Convert to method
15012 eliminate_dom_walker::after_dom_children.
15013 (eliminate): Adjust.
15014 * tree-ssa-strlen.c (strlen_dom_walker): New class.
15015 (strlen_enter_block): Convert to method
15016 strlen_dom_walker::before_dom_children.
15017 (strlen_leave_block): Convert to method
15018 method strlen_dom_walker::after_dom_children.
15019 (tree_ssa_strlen): Adjust.
15020 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
15021 (tree_ssa_uncprop): Adjust.
15022 (uncprop_leave_block): Convert to method
15023 uncprop_dom_walker::after_dom_children.
15024 (uncprop_leave_block): Convert to method
15025 uncprop_dom_walker::before_dom_children.
15027 2013-09-18 Bin Cheng <bin.cheng@arm.com>
15029 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
15030 branch in same basic block. Check both src and dest of the move insn.
15032 2013-09-17 Nick Clifton <nickc@redhat.com>
15034 * config/rl78/rl78-real.md (bf): New pattern.
15036 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
15037 (rl78_print_operand): Do not put a # before a %B.
15038 * config/rl78/rl78.opt: Tweak doc strings.
15040 2013-09-17 DJ Delorie <dj@redhat.com>
15042 * config/rl78/constraints.md (Wcv): Allow up to $r31.
15043 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
15044 (rl78_option_override): Likewise, if -mallregs.
15045 (is_virtual_register): Likewise.
15046 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
15047 (REGNO_OK_FOR_BASE_P): Likewise.
15048 * config/rl78/rl78.opt (-mallregs): New.
15050 2013-09-17 Nick Clifton <nickc@redhat.com>
15052 * config/rl78/rl78.c (need_to_save): Change return type to bool.
15053 For interrupt functions: save all call clobbered registers if the
15054 interrupt handler is not a leaf function.
15055 (rl78_expand_prologue): Always recompute the frame information.
15056 For interrupt functions: only select bank 0 if one of the bank 0
15057 registers is going to be psuhed.
15059 2013-09-17 DJ Delorie <dj@redhat.com>
15061 * config/rl78/constraints.md: For each W* constraint, rename to C*
15062 and create a W* constraint that checks for an optional ES: prefix
15064 * config/rl78/rl78.md (UNS_ES_ADDR): New.
15065 (es_addr): New. Used to wrap far addresses.
15066 * config/rl78/rl78-protos.h (rl78_es_addr): New.
15067 (rl78_es_base): New.
15068 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
15069 wrapped far addresses.
15070 (rl78_print_operand_1): Unwrap far addresses before processing.
15071 (rl78_lo16): Wrap far addresses in unspecs.
15072 (rl78_es_addr): New.
15073 (rl78_es_base): New.
15074 (insn_ok_now): Check for not-yet-wrapped far addresses.
15075 (transcode_memory_rtx): Properly re-wrap far addresses.
15077 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
15079 * config/sparc/t-rtems: Add leon3 multilibs.
15081 2013-09-17 Cong Hou <congh@google.com>
15083 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
15084 when checking the dot production pattern. The type of rhs operand
15085 of multiply is now checked correctly.
15087 2013-09-17 Jeff Law <law@redhat.com>
15089 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15090 edge implied equivalences into successor phis.
15091 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
15092 here from tree-ssa-threadedge.c.
15093 (mark_threaded_blocks): When threading through a joiner, if both
15094 successors of the joiner's clone reach the same block, verify the
15095 PHI arguments are equal. If not, cancel the jump threading request.
15096 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
15097 tree-ssa-threadupdate.c
15098 (thread_across_edge): Don't check PHI argument equality when
15099 threading through joiner block here.
15101 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
15103 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
15104 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
15105 (warn_uninit, warn_uninitialized_vars,
15106 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
15107 Move to tree-ssa-uninit.c.
15108 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
15109 (has_undefined_value_p): New. Pass dependant parts of
15110 ssa_undefined_value_p.
15111 (uninit_undefined_value_p): Use has_undefined_value_p.
15112 (warn_uninit, warn_uninitialized_vars,
15113 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
15114 Move from tree-ssa.c.
15115 * tree-ssa.h: Adjust prototypes.
15117 2013-09-17 Jan Hubicka <jh@suse.cz>
15119 PR middle-end/58332
15120 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
15121 * ipa-inline.c (can_inline_edge_p): Do not downgrade
15122 FUNCTION_NOT_OPTIMIZED.
15123 * ipa-inline-analysis.c (compute_inline_parameters): Function
15124 not optimized is not inlinable unless it is alwaysinline.
15125 (inline_analyze_function): Force calls in not optimized
15126 function not inlinable.
15128 2013-09-17 Jan Hubicka <jh@suse.cz>
15130 PR middle-end/58329
15131 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
15133 * ipa.c (function_and_variable_visibility): Likewise.
15134 * ipa-profile.c (ipa_profile): Likewise.
15136 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
15139 * cgraph.c (cgraph_function_body_availability): Check for ifunc
15140 attribute, and don't inline the resolver in this case.
15142 2013-09-17 Teresa Johnson <tejohnson@google.com>
15144 * coverage.c (get_coverage_counts): Add missing newline.
15146 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15148 PR tree-optimization/58088
15149 * fold-const.c (mask_with_trailing_zeros): New function.
15150 (fold_binary_loc): Make sure we don't recurse infinitely
15151 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
15152 Use mask_with_trailing_zeros where appropriate.
15154 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
15156 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
15157 of 'prev' var to get better distance estimation.
15159 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
15161 * tree-inline.h (struct copy_body_data): Add transform_parameter.
15162 * tree-inline.c (is_parameter_of): New predicate.
15163 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
15164 a parameter has been remapped.
15165 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
15166 (optimize_inline_calls): Initialize transform_parameter.
15167 (copy_gimple_seq_and_replace_locals): Likewise.
15168 (tree_function_versioning): Likewise.
15169 (maybe_inline_call_in_expr): Likewise.
15171 2013-09-17 Nick Clifton <nickc@redhat.com>
15173 * config/msp430/msp430-protos.h: Add prototypes for new functions.
15174 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
15175 interrupt handlers.
15176 (is_attr_func): New function.
15177 (msp430_is_interrupt_func): New function.
15178 (is_naked_func): New function.
15179 (is_reentrant_func): New function.
15180 (is_critical_func): New function.
15181 (msp430_start_function): Add annotations for function attributes.
15182 (msp430_attr): New function.
15183 (msp430_attribute_table): New.
15184 (msp430_function_section): New function.
15185 (TARGET_ASM_FUNCTION_SECTION): Define.
15186 (msp430_builtin): New enum.
15187 (msp430_init_builtins): New function.
15188 (msp430_builtin_devl): New function.
15189 (msp430_expand_builtin): New function.
15190 (TARGET_INIT_BUILTINS): Define.
15191 (TARGET_EXPAND_BUILTINS): Define.
15192 (TARGET_BUILTIN_DECL): Define.
15193 (msp430_expand_prologue): Add support for naked, interrupt,
15194 critical and reentrant functions.
15195 (msp430_expand_epilogue): Likewise.
15196 (msp430_print_operand): Handle 'O' character.
15197 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
15199 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
15200 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
15201 (pushm): Use a 'n' rather than an 'i' constraint.
15202 (msp_return): Add generation of the interrupt return instruction.
15203 (disable_interrupts): New pattern.
15204 (enable_interrupts): New pattern.
15205 (push_intr_state): New pattern.
15206 (pop_intr_state): New pattern.
15207 (bic_SR): New pattern.
15208 (bis_SR): New pattern.
15209 * doc/extend.texi: Document MSP430 function attributes and builtin
15212 2013-09-17 Richard Biener <rguenther@suse.de>
15214 PR tree-optimization/58432
15215 * tree-loop-distribution.c (tree_loop_distribution): Also
15216 scan PHIs for outside loop uses and seed a partition from them.
15218 2013-09-17 Bin Cheng <bin.cheng@arm.com>
15220 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
15221 (restructure_reference): Call backtrace_base_for_ref.
15223 2013-09-17 Alan Modra <amodra@gmail.com>
15226 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
15229 2013-09-16 DJ Delorie <dj@redhat.com>
15231 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
15232 vregs location for RL78/G10.
15233 (rl78_expand_prologue): Avoid SEL on G10.
15234 (rl78_expand_epilogue): Likewise.
15235 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
15236 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15237 __RL78_G10__ when appropriate.
15238 (ASM_SPEC): Pass -mg10 along to the assembler.
15239 * config/rl78/rl78.md (sel_rb): Disable for G10.
15240 * config/rl78/rl78.opt: Add -mg10 option.
15241 * config/rl78/t-rl78: Add -mg10 multilib.
15243 2013-09-16 Xinliang David Li <davidxl@google.com>
15245 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
15246 * omp-low.c (omp_max_vf): Ditto.
15247 (expand_omp_simd): Ditto.
15248 * tree-vectorizer.c (vectorize_loops): Ditto.
15249 (gate_vect_slp): Ditto.
15250 (gate_increase_alignment): Ditto.
15251 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
15252 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
15253 (gate_tree_vectorize): Name change.
15254 (tree_vectorize): Ditto.
15255 (pass_vectorize::gate): Call new function.
15256 (pass_vectorize::execute): Ditto.
15257 * opts.c: O3 default setting change.
15258 (finish_options): Check new flag.
15259 * doc/invoke.texi: Document new flags.
15260 * common.opt: New flags.
15262 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
15264 * doc/tm.texi.in (Cond Exec Macros): Remove node.
15265 (Condition Code): Don't reference it.
15266 * doc/tm.texi: Regenerate.
15268 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
15270 PR middle-end/58418
15271 * lra-constraints.c (undo_optional_reloads): Consider all optional
15272 reload even if it did not get a hard reg.
15274 2013-09-16 Teresa Johnson <tejohnson@google.com>
15276 * dumpfile.c (dump_loc): Remove newline emission.
15277 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
15278 emission to dump_printf_loc calls where missing.
15279 (vect_mark_for_runtime_alias_test): Ditto.
15280 (vect_analyze_data_ref_dependence): Ditto.
15281 (vect_analyze_data_ref_dependences): Ditto.
15282 (vect_slp_analyze_data_ref_dependence): Ditto.
15283 (vect_slp_analyze_data_ref_dependences): Ditto.
15284 (vect_compute_data_ref_alignment): Ditto.
15285 (vect_update_misalignment_for_peel): Ditto.
15286 (vect_verify_datarefs_alignment): Ditto.
15287 (vector_alignment_reachable_p): Ditto.
15288 (vect_get_data_access_cost): Ditto.
15289 (vect_enhance_data_refs_alignment): Ditto.
15290 (vect_find_same_alignment_drs): Ditto.
15291 (vect_analyze_data_refs_alignment): Ditto.
15292 (vect_analyze_group_access): Ditto.
15293 (vect_analyze_data_ref_access): Ditto.
15294 (vect_analyze_data_ref_accesses): Ditto.
15295 (vect_prune_runtime_alias_test_list): Ditto.
15296 (vect_analyze_data_refs): Ditto.
15297 (vect_create_addr_base_for_vector_ref): Ditto.
15298 (vect_create_data_ref_ptr): Ditto.
15299 (vect_grouped_store_supported): Ditto.
15300 (vect_grouped_load_supported): Ditto.
15301 * value-prof.c (check_counter): Ditto.
15302 (check_ic_target): Ditto.
15303 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
15304 (vect_recog_widen_mult_pattern): Ditto.
15305 (vect_recog_widen_sum_pattern): Ditto.
15306 (vect_recog_over_widening_pattern): Ditto.
15307 (vect_recog_widen_shift_pattern): Ditto.
15308 (vect_recog_rotate_pattern): Ditto.
15309 (vect_recog_vector_vector_shift_pattern): Ditto.
15310 (vect_recog_divmod_pattern): Ditto.
15311 (vect_recog_mixed_size_cond_pattern): Ditto.
15312 (vect_recog_bool_pattern): Ditto.
15313 (vect_pattern_recog_1): Ditto.
15314 (vect_pattern_recog): Ditto.
15315 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
15316 (vect_is_simple_iv_evolution): Ditto.
15317 (vect_analyze_scalar_cycles_1): Ditto.
15318 (vect_get_loop_niters): Ditto.
15319 (vect_analyze_loop_1): Ditto.
15320 (vect_analyze_loop_form): Ditto.
15321 (vect_analyze_loop_operations): Ditto.
15322 (vect_analyze_loop_2): Ditto.
15323 (vect_analyze_loop): Ditto.
15324 (report_vect_op): Ditto.
15325 (vect_is_slp_reduction): Ditto.
15326 (vect_is_simple_reduction_1): Ditto.
15327 (vect_get_known_peeling_cost): Ditto.
15328 (vect_estimate_min_profitable_iters): Ditto.
15329 (vect_model_reduction_cost): Ditto.
15330 (vect_model_induction_cost): Ditto.
15331 (get_initial_def_for_induction): Ditto.
15332 (vect_create_epilog_for_reduction): Ditto.
15333 (vectorizable_reduction): Ditto.
15334 (vectorizable_induction): Ditto.
15335 (vectorizable_live_operation): Ditto.
15336 (vect_loop_kill_debug_uses): Ditto.
15337 (vect_transform_loop): Ditto.
15338 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
15339 (vect_stmt_relevant_p): Ditto.
15340 (process_use): Ditto.
15341 (vect_mark_stmts_to_be_vectorized): Ditto.
15342 (vect_model_simple_cost): Ditto.
15343 (vect_model_promotion_demotion_cost): Ditto.
15344 (vect_model_store_cost): Ditto.
15345 (vect_get_store_cost): Ditto.
15346 (vect_model_load_cost): Ditto.
15347 (vect_get_load_cost): Ditto.
15348 (vect_init_vector_1): Ditto.
15349 (vect_get_vec_def_for_operand): Ditto.
15350 (vect_finish_stmt_generation): Ditto.
15351 (vectorizable_call): Ditto.
15352 (vectorizable_conversion): Ditto.
15353 (vectorizable_assignment): Ditto.
15354 (vectorizable_shift): Ditto.
15355 (vectorizable_operation): Ditto.
15356 (vectorizable_store): Ditto.
15357 (vectorizable_load): Ditto.
15358 (vectorizable_condition): Ditto.
15359 (vect_analyze_stmt): Ditto.
15360 (vect_transform_stmt): Ditto.
15361 (vect_is_simple_use): Ditto.
15362 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
15363 (vect_can_advance_ivs_p): Ditto.
15364 (vect_update_ivs_after_vectorizer): Ditto.
15365 (vect_do_peeling_for_loop_bound): Ditto.
15366 (vect_gen_niters_for_prolog_loop): Ditto.
15367 (vect_update_inits_of_drs): Ditto.
15368 (vect_create_cond_for_alias_checks): Ditto.
15369 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15370 (vect_build_slp_tree_1): Ditto.
15371 (vect_supported_load_permutation_p): Ditto.
15372 (vect_analyze_slp_instance): Ditto.
15373 (vect_analyze_slp): Ditto.
15374 (vect_make_slp_decision): Ditto.
15375 (vect_detect_hybrid_slp): Ditto.
15376 (vect_bb_vectorization_profitable_p): Ditto.
15377 (vect_slp_analyze_bb_1): Ditto.
15378 (vect_update_slp_costs_according_to_vf): Ditto.
15379 (vect_get_mask_element): Ditto.
15380 (vect_transform_slp_perm_load): Ditto.
15381 (vect_schedule_slp_instance): Ditto.
15382 (vect_schedule_slp): Ditto.
15383 (vect_slp_transform_bb): Ditto.
15384 * profile.c (read_profile_edge_counts): Ditto.
15385 (compute_branch_probabilities): Ditto.
15386 * coverage.c (get_coverage_counts): Ditto.
15388 2013-09-16 Diego Novillo <dnovillo@google.com>
15390 * tree-core.h: Add missing comment lines from refactoring of tree.h.
15392 2013-09-16 Jan Hubicka <jh@suse.cz>
15394 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15395 abstract functions; for static functions check the presence of body.
15397 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15399 * config/aarch64/aarch64-simd-builtins.def (fma): New.
15400 * config/aarch64/aarch64-simd.md
15401 (aarch64_mla_elt<mode>): New.
15402 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15403 (aarch64_mls_elt<mode>): Likewise.
15404 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15405 (aarch64_fma4_elt<mode>): Likewise.
15406 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15407 (aarch64_fma4_elt_to_128v2df): Likewise.
15408 (aarch64_fma4_elt_to_64df): Likewise.
15409 (fnma<mode>4): Likewise.
15410 (aarch64_fnma4_elt<mode>): Likewise.
15411 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15412 (aarch64_fnma4_elt_to_128v2df): Likewise.
15413 (aarch64_fnma4_elt_to_64df): Likewise.
15414 * config/aarch64/iterators.md (VDQSF): New.
15415 * config/aarch64/arm_neon.h
15416 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15417 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15419 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15421 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15422 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15423 (aarch64_mul3_elt_to_128df): Likewise.
15424 (aarch64_mul3_elt_to_64v2df): Likewise.
15425 * config/aarch64/iterators.md (VEL): Also handle DFmode.
15427 (VMUL_CHANGE_NLANES) Likewise.
15430 * config/aarch64/arm_neon.h
15431 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15433 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15435 * config/aarch64/arm_neon.h
15436 (vcvtx_high_f32_f64): Fix parameters.
15438 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15439 Uros Bizjak <ubizjak@gmail.com>
15441 * config/alpha.c: Include tree-ssanames.h.
15443 2013-09-16 Richard Biener <rguenther@suse.de>
15445 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15446 (dot_rdg_1): Handle control_dd.
15447 (create_edge_for_control_dependence): New function.
15448 (create_rdg_edges): Add control dependences if asked for.
15449 (build_rdg): Likewise.
15450 (generate_loops_for_partition): If there are not necessary
15451 control stmts remove all their dependencies.
15452 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15453 (distribute_loop): Pass on control dependences.
15454 (tree_loop_distribution): Compute control dependences and remove
15455 restriction on number of loop nodes.
15457 2013-09-16 Jakub Jelinek <jakub@redhat.com>
15459 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15460 for internal calls.
15462 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
15464 * cse.c (try_const_anchors): Punt on CC modes.
15466 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15468 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15470 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
15473 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15474 calls to word_mode.
15476 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15479 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15481 (darwin_objc1_section): Likewise.
15482 (darwin_file_end): Emit Image Info section when required.
15484 2013-09-14 Jan Hubicka <jh@suse.cz>
15486 * tree-into-ssa.c (gate_into_ssa): New.
15487 (pass_data_build_ssa): Use it.
15488 * cgraph.h (expand_thunk): Update prototype.
15489 * cgraphunit.c (analyze_function): Expand thunks early.
15490 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15491 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15492 set lowered flag; do not add new function.
15493 (assemble_thunks_and_aliases): Update.
15494 * tree-ssa.c (gate_init_datastructures): New gate.
15495 (pass_data_init_datastructures): Use it.
15497 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15500 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15501 xmm register set described in the psABI.
15503 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
15505 * dwarf2out.c (should_emit_struct_debug): Add check
15506 for type_decl variable is not NULL.
15508 2013-09-13 Jacek Caban <jacek@codeweavers.com>
15510 * config.gcc: Use new winnt-c.c target hooks
15511 * config/t-winnt: New file
15512 * config/winnt-c.c: New file
15513 * doc/tm.texi.in: Document new hook
15514 * doc/tm.texi: Regenerated
15516 2013-09-13 Jan Hubicka <jh@suse.cz>
15518 PR middle-end/58094
15519 * ipa-inline.c (check_callers): New function.
15520 (check_caller_edge): Remove.
15521 (want_inline_function_to_all_callers_p): Also permit alises that are
15523 (inline_to_all_callers): Terminate the walk when devirtualization
15524 introduce new calls.
15526 2013-09-13 Jan Hubicka <jh@suse.cz>
15528 * ipa-inline-analysis.c (struct growth_data): Add node.
15529 (do_estimate_growth_1): Fix detection of recursion.
15531 2013-09-13 Jakub Jelinek <jakub@redhat.com>
15533 PR tree-optimization/58392
15534 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15535 to avoid shadowing of outer loop variable. If
15536 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15537 replace_by_duplicate_decl simduid of loops that have it set and
15538 set dest_cfun->has_simduid_loops and/or
15539 dest_cfun->has_force_vect_loops.
15540 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15541 instead of maybe_lookup_decl.
15542 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15543 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
15544 call. Copy over force_vect and copy and remap simduid. Set
15545 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15546 (copy_cfg_body): Remove blocks_to_copy argument. Use
15547 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
15548 caller. Don't set cfun->has_simduid_loops and/or
15549 cfun->has_force_vect_loops here.
15550 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
15552 (expand_call_inline, tree_function_versioning): Adjust copy_body
15555 2013-09-13 Martin Jambor <mjambor@suse.cz>
15558 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15559 the assert if the edge was a speculative one.
15561 2013-09-13 Richard Biener <rguenther@suse.de>
15563 * tree-data-ref.h (known_dependences_p): Move here ...
15564 * tree-loop-distribution.c (known_dependences_p): ... from here.
15565 (dump_rdg_component, debug_rdg_component): Remove.
15566 (dump_rdg): Adjust.
15567 (generate_loops_for_partition): Use gimple_uid instead of
15568 relying on matching stmt visit order.
15569 (rdg_build_partitions): Take starting stmt vector.
15570 (ldist_gen): Merge into ...
15571 (distribute_loop): ... this function. Do not compute starting
15573 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15575 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15577 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15578 Set type attribute correctly. Set predicable_short_it attribute.
15579 (cmpsi_shiftsi): Remove %? from output template.
15581 2013-09-13 Richard Biener <rguenther@suse.de>
15583 * tree-loop-distribution.c (struct rdg_component,
15584 rdg_defs_used_in_other_loops_p, free_rdg_components,
15585 rdg_build_components): Remove.
15586 (stmts_from_loop): Do not record virtual PHIs.
15587 (generate_loops_for_partition): Skip virtual PHIs.
15588 (build_rdg_partition_for_component): Rename to ...
15589 (build_rdg_partition_for_vertex): ... this and adjust.
15590 (rdg_build_partitions): Take a vector of starting vertices
15591 instead of components. Remove unnecessary leftover handling.
15592 (ldist_gen): Do not build components or record other stores.
15593 (distribute_loop): Do not distribute loops containing stmts
15596 2013-09-13 Christian Bruel <christian.bruel@st.com>
15599 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15601 2013-09-13 Kai Tietz <ktietz@redhat.com>
15603 * config.gcc: Separate cases for mingw and cygwin targets,
15604 and add 64-bit cygwin target case.
15606 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15607 dll-export inline-functions.
15608 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15610 2013-09-13 Jeff Law <law@redhat.com>
15612 PR middle-end/58387
15614 2013-09-06 Jeff Law <law@redhat.com>
15616 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15617 edge implied equivalences into successor phis.
15619 2013-09-12 DJ Delorie <dj@redhat.com>
15621 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15624 2013-09-12 Brooks Moses <bmoses@google.com>
15627 * Makefile.in: Do not install driver binaries in $(target)/bin.
15629 2013-09-12 DJ Delorie <dj@redhat.com>
15631 * config/rl78/rl78.opt (mrelax): New.
15632 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15633 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15635 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15637 (rl78_expand_epilogue): Likewise.
15639 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15641 PR middle-end/58335
15642 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15643 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15644 pointer elimination with using remove_reg_equal_offset_note.
15646 2013-09-12 DJ Delorie <dj@redhat.com>
15648 * config/msp430/: New port.
15649 * config.gcc (msp430): Added.
15650 * doc/invoke.texi: Document MSP430 options.
15651 * doc/install.texi: Document msp430-elf
15652 * doc/md.texi: Document msp430-elf
15653 * doc/contrib.texi: Document msp430-elf
15655 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15658 2013-09-12 Martin Jambor <mjambor@suse.cz>
15661 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15662 reference descriptor is NULL.
15663 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15666 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15668 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15669 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15670 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15671 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15672 make_temp_ssa_name): move to tree-ssanames.h
15673 * tree-ssa-alias.h: Move prototype.
15674 * tree-ssa.h: Include tree-ssanames.h.
15675 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15676 * tree-ssanames.h: New. Move items from tree-flow*.h
15677 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15679 2013-09-12 Richard Biener <rguenther@suse.de>
15681 PR tree-optimization/58404
15682 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15683 propagate non-invariant addresses into dereferences wrapped
15684 in component references.
15686 2013-09-12 Richard Biener <rguenther@suse.de>
15688 PR tree-optimization/58402
15689 * passes.def: Move pass_late_warn_uninitialized later.
15691 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15693 * tree-ssa.h: New. Move content from tree-flow.h and
15694 tree-flow-inline.h.
15695 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15696 Move prototypes belonging to tree-ssa.c.
15697 * tree-flow-inline.h (redirect_edge_var_map_def,
15698 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15700 * gimple.h: Adjust prototypes.
15701 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15703 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15704 * tree.h: Move prototype to tree-ssa.h.
15705 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15706 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15707 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15708 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15709 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15710 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15711 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15712 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15713 graphite-blocking.c, graphite-clast-to-gimple.c,
15714 graphite-dependences.c, graphite-interchange.c,
15715 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15716 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15717 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15718 ipa-reference.c, ipa-split.c, ipa-utils.c,
15719 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15720 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15721 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15722 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15723 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15724 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15725 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15726 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15727 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15728 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15729 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15730 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15731 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15732 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15733 value-prof.c, var-tracking.c,
15734 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15736 2013-09-12 Richard Biener <rguenther@suse.de>
15738 PR tree-optimization/58396
15739 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15740 (build_rdg): Take a loop-nest parameter, fix memleaks.
15741 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15743 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15745 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15748 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
15750 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15751 The FMA instruction names should have a 'v' prefix.
15753 2013-09-12 Richard Biener <rguenther@suse.de>
15755 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15756 (dot_rdg): Use popen instead of system in optional code.
15757 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15758 (already_processed_vertex_p): Adjust.
15759 (has_anti_or_output_dependence, predecessor_has_mem_write,
15760 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15761 rdg_flag_uses): Remove.
15762 (rdg_flag_vertex): Simplify.
15763 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15765 (build_rdg_partition_for_component): Process the first vertex
15766 of a component only.
15767 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15769 2013-09-12 Alan Modra <amodra@gmail.com>
15771 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15773 2013-09-11 DJ Delorie <dj@redhat.com>
15774 Nick Clifton <nickc@redhat.com>
15776 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15777 (rl78_stack_based_mem): New.
15778 * config/rl78/constraints.md (Iv08): New.
15787 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15789 (movsi): Change from expand to insn-and-split.
15790 (ashrsi3): Clobber AX.
15794 * config/rl78/rl78.md (CC_REG): Fix.
15795 (addsi3): Allow memory and immediate operands.
15796 (addsi3_internal): Split into...
15797 (addsi3_internal_virt): ...new, and ...
15798 (addsi3_internal_real): ...new.
15800 (subsi3_internal_virt): New.
15801 (subsi3_internal_real): New.
15802 (mulsi3): Add memory operand.
15803 (mulsi3_rl78): Likewise.
15804 (mulsi3_g13): Likewise.
15805 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15806 (cbranchqi4_real): Add more constraint options.
15807 (cbranchhi4_real): Expand pattern.
15808 (cbranchhi4_real_signed): New.
15809 (cbranchhi4_real_inverted): New.
15810 (cbranchsi4_real_lt): New.
15811 (cbranchsi4_real_ge): New.
15812 (cbranchsi4_real_signed): New.
15813 (cbranchsi4_real): New.
15815 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15817 (lshrsi3_virt): Likewise.
15818 (ashlsi3_virt): Likewise.
15819 (cbranchqi4_virt_signed): New.
15820 (cbranchhi4_virt_signed): New.
15821 (cbranchsi4_virt): New.
15822 * config/rl78/rl78.c: Whitespace fixes throughout.
15823 (move_elim_pass): New.
15824 (pass_data_rl78_move_elim): New.
15825 (pass_rl78_move_elim): New.
15826 (make_pass_rl78_move_elim): New.
15827 (rl78_devirt_info): Run devirt earlier.
15828 (rl78_move_elim_info): New.
15829 (rl78_asm_file_start): Register it.
15830 (rl78_split_movsi): New.
15831 (rl78_as_legitimate_address): Allow virtual base registers when
15833 (rl78_addr_space_convert): Remove spurious debug stuff.
15834 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15835 (rl78_print_operand): More cases for not printing '#'.
15836 (rl78_expand_compare): Remove most of the logic.
15837 (content_memory): New.
15838 (clear_content_memory): New.
15839 (get_content_index): New.
15840 (get_content_name): New.
15841 (display_content_memory): New.
15842 (update_content): New.
15843 (record_content): New.
15844 (already_contains): New.
15845 (insn_ok_now): Re-recog insns with virtual registers.
15846 (add_postponed_content_update): New.
15847 (process_postponed_content_update): New.
15848 (gen_and_emit_move): New.
15849 (transcode_memory_rtx): Record new location content.
15850 Use gen_and_emit_move.
15851 (force_into_acc): New.
15852 (move_to_acc): Use gen_and_emit_move.
15853 (move_from_acc): Likewise.
15854 (move_acc_to_reg): Likewise.
15855 (move_to_x): Likewise.
15856 (move_to_hl): Likewise.
15857 (move_to_de): Likewise.
15858 (rl78_alloc_physical_registers_op1): Record location content.
15859 (has_constraint): New.
15860 (rl78_alloc_physical_registers_op2): Record location content.
15861 Optimize use of HL.
15862 (rl78_alloc_physical_registers_ro1): Likewise.
15863 (rl78_alloc_physical_registers_cmp): Likewise.
15864 (rl78_alloc_physical_registers_umul): Likewise.
15865 (rl78_alloc_address_registers_macax): New.
15866 (rl78_alloc_physical_registers): Initialize and set location
15867 content memory as needed.
15868 (rl78_reorg): Make sure split2 is called.
15869 (rl78_rtx_costs): New.
15871 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15873 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15874 for (not (neg ...)) and (neg (not ...)) cases.
15876 2013-09-11 Richard Biener <rguenther@suse.de>
15878 PR middle-end/58377
15879 * passes.def: Split critical edges before late uninit warning passes.
15880 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15882 2013-09-11 Jakub Jelinek <jakub@redhat.com>
15884 PR tree-optimization/58385
15885 * fold-const.c (build_range_check): If both low and high are NULL,
15886 use omit_one_operand_loc to preserve exp side-effects.
15888 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15890 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15892 2013-09-11 Richard Biener <rguenther@suse.de>
15894 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15895 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15896 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15897 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15898 stmts_from_loop, known_dependences_p, build_empty_rdg,
15899 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15900 * tree-loop-distribution.c: ... here.
15901 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15902 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15903 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15904 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15905 * tree-loop-distribution.c: ... here.
15906 * tree-loop-distribution.c: Include gimple-pretty-print.h.
15907 (struct partition_s): Add loops member.
15908 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15909 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15910 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15912 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15913 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15914 Sergey Lega <sergey.s.lega@intel.com>
15915 Anna Tikhonova <anna.tikhonova@intel.com>
15916 Ilya Tocar <ilya.tocar@intel.com>
15917 Andrey Turetskiy <andrey.turetskiy@intel.com>
15918 Ilya Verbin <ilya.verbin@intel.com>
15919 Kirill Yukhin <kirill.yukhin@intel.com>
15920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15922 * config/i386/constraints.md (k): New.
15924 * config/i386/i386.c (const regclass_map): Add new mask registers.
15925 (dbx_register_map): Ditto.
15926 (dbx64_register_map): Ditto.
15927 (svr4_dbx_register_map): Ditto.
15928 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15930 (ix86_preferred_reload_class): Disable constants for mask registers.
15931 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15932 (ix86_hard_regno_mode_ok): Support new mask registers.
15933 (x86_order_regs_for_local_alloc): Ditto.
15934 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15935 (FIXED_REGISTERS): Add new mask registers.
15936 (CALL_USED_REGISTERS): Ditto.
15937 (REG_ALLOC_ORDER): Ditto.
15938 (VALID_MASK_REG_MODE): New.
15939 (FIRST_MASK_REG): Ditto.
15940 (LAST_MASK_REG): Ditto.
15941 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15942 (MAYBE_MASK_CLASS_P): New.
15943 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15944 (REG_CLASS_CONTENTS): Ditto.
15945 (MASK_REGNO_P): New.
15946 (ANY_MASK_REG_P): Ditto.
15947 (HI_REGISTER_NAMES): Add new mask registers.
15948 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15949 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15951 (attribute "type"): Add mskmov, msklog.
15952 (attribute "length_immediate"): Support them.
15953 (attribute "memory"): Ditto.
15954 (attribute "prefix_0f"): Ditto.
15955 (*movhi_internal): Support new mask registers.
15956 (*movqi_internal): Ditto.
15957 (define_split): Split out clobber pattern is a logic
15958 insn on mask registers.
15959 (*k<logic><mode>): New.
15960 (*andhi_1): Extend to support mask regs.
15961 (*andqi_1): Extend to support mask regs.
15962 (kandn<mode>): New.
15963 (define_split): Split and-not to and and not if operands
15965 (*<code><mode>_1): Separate HI mode to new pattern...
15966 (*<code>hi_1): This.
15967 (*<code>qi_1): Extend to support mask regs.
15968 (kxnor<mode>): New.
15969 (kortestzhi): Ditto.
15970 (kortestchi): Ditto.
15972 (*one_cmpl<mode>2_1): Remove HImode and handle it...
15973 (*one_cmplhi2_1): ...Here, now with mask registers support.
15974 (*one_cmplqi2_1): Support new mask registers.
15975 (HI/QImode arithmetics splitter): Don't split if mask registers
15977 (HI/QImode not splitter): Ditto.
15978 * config/i386/predicated.md (mask_reg_operand): New.
15979 (general_reg_operand): Ditto.
15981 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15983 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15984 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15986 2013-09-10 Jeff Law <law@redhat.com>
15988 PR tree-optimization/58380
15989 * tree-ssa-threadupdate.c (thread_block): Recognize another case
15990 of threading through a buried loop header.
15992 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15993 return value for single successor case.
15995 2013-09-10 Jan Hubicka <jh@suse.cz>
15997 * ipa-devirt.c (ipa_devirt): Enable with LTO.
15999 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
16002 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
16003 support conditional execution.
16004 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
16006 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
16008 * lra.c (lra): Clear lra_optional_reload_pseudos before every
16010 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
16011 Check destination too to check move insn.
16012 (undo_optional_reloads): Add check that the original peudo did not
16013 changed its allocation and the optional reload was inherited on last
16014 inheritance pass. Break loop after deciding to keep optional reload.
16015 (lra_undo_inheritance): Add check that inherited pseudo still in
16018 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
16020 * config/aarch64/aarch64.md (generic_sched): New.
16021 * config/aarch64/aarch64-generic.md (load): Make conditional
16022 on generic_sched attribute.
16023 (nonload): Likewise.
16025 2013-09-10 Jan Hubicka <jh@suse.cz>
16027 * lto-cgraph.c: Include ipa-utils.h.
16028 (compute_ltrans_boundary): Also add possible targets into the boundary.
16030 2013-09-10 Jan Hubicka <jh@suse.cz>
16032 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
16033 VAR_DECL of vtable rather than full expression.
16035 2013-09-10 Jan Hubicka <jh@suse.cz>
16036 Paolo Carlini <paolo.carlini@oracle.com>
16038 * cgraphunit.c (analyze_functions): Save input_location, set it
16039 to UNKNOWN_LOCATION and restore it at the end.
16041 2013-09-10 Martin Jambor <mjambor@suse.cz>
16043 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
16044 represented by a thunk.
16046 2013-09-10 Jeff Law <law@redhat.com>
16048 PR tree-optimization/58343
16049 * tree-ssa-threadupdate.c (thread_block): Identify and disable
16050 jump threading requests through loop headers buried in the middle
16051 of a jump threading path.
16053 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
16054 in return value/type.
16056 2013-09-10 Jakub Jelinek <jakub@redhat.com>
16058 PR rtl-optimization/58365
16059 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
16060 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
16063 2013-09-10 Richard Biener <rguenther@suse.de>
16065 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
16066 * tree-data-ref.c (create_rdg_vertices): Collect all data
16067 references, signal failure to the caller, use data-ref API.
16068 (build_rdg): Compute data references only once. Maintain lifetime
16069 of data references and data dependences from within RDG.
16070 (free_rdg): Free dependence relations.
16071 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
16072 inventing extra dependences.
16073 (distribute_loop): Update for RDG API changes.
16075 2013-09-10 Kai Tietz <ktietz@redhat.com>
16077 * doc/invoke.texi (fms-extensions): Document changed
16078 behavior for ms-abi targets.
16079 * config/i386/i386.c (ix86_option_override_internal):
16080 Set default value of option -fms-extension for ms-abi targets.
16082 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
16084 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
16086 2013-09-10 Alan Modra <amodra@gmail.com>
16089 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
16091 2013-09-10 Alan Modra <amodra@gmail.com>
16093 * config/rs6000/predicates.md (add_cint_operand): New.
16094 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
16095 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
16096 using add_cint_operand.
16097 (largetoc_high_plus_aix): Likewise.
16099 2013-09-09 Jakub Jelinek <jakub@redhat.com>
16101 PR tree-optimization/58364
16102 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
16103 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
16104 the current range can't be an unconditional true or false.
16106 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
16108 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
16110 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
16112 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
16114 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
16117 * doc/invoke.texi (-Wdelete-incomplete): Document it.
16119 2013-09-09 Ian Bolton <ian.bolton@arm.com>
16121 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
16122 NO_REGS for immediate that can't be moved directly into FP_REGS.
16124 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16126 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
16127 comparison with negated operand.
16128 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
16131 2013-09-09 Richard Biener <rguenther@suse.de>
16133 PR middle-end/58326
16134 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
16135 of a subloop record all its block as affecting loop-closed SSA form.
16137 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16139 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
16140 of an rtx/bitpos pair.
16141 (store_fixed_bit_field): Update accordingly.
16143 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16145 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
16147 * builtins.c (expand_errno_check): Likewise.
16148 * dwarf2cfi.c (init_return_column_size): Likewise.
16149 * except.c (sjlj_mark_call_sites): Likewise.
16150 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
16151 * lra-constraints.c (emit_inc): Likewise.
16152 * ree.c (combine_set_extension): Likewise.
16153 * regmove.c (fixup_match_2): Likewise.
16154 * reload1.c (inc_for_reload): Likewise.
16156 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16158 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
16159 (force_to_mode, simplify_shift_const_1, simplify_comparison):
16160 Use gen_int_mode with the mode of the associated simplify_* call.
16161 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
16162 * expmed.c (expand_shift_1): Likewise.
16163 * function.c (instantiate_virtual_regs_in_insn): Likewise.
16164 * loop-iv.c (iv_number_of_iterations): Likewise.
16165 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
16166 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16168 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16170 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
16171 of the associated expand_* call.
16172 (asan_emit_stack_protection): Likewise.
16173 * builtins.c (round_trampoline_addr): Likewise.
16174 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
16175 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
16176 (emit_store_flag): Likewise.
16177 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
16178 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
16180 * function.c (instantiate_virtual_regs_in_insn): Likewise.
16181 * ifcvt.c (noce_try_store_flag_constants): Likewise.
16182 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
16183 * modulo-sched.c (generate_prolog_epilog): Likewise.
16184 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
16185 (expand_ctz, expand_ffs, expand_unop): Likewise.
16187 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16189 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
16190 of the associated gen_rtx_* call.
16191 * caller-save.c (init_caller_save): Likewise.
16192 * combine.c (find_split_point, make_extraction): Likewise.
16193 (make_compound_operation): Likewise.
16194 * dwarf2out.c (mem_loc_descriptor): Likewise.
16195 * explow.c (plus_constant, probe_stack_range): Likewise.
16196 * expmed.c (expand_mult_const): Likewise.
16197 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
16198 * reload1.c (init_reload): Likewise.
16199 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16200 * var-tracking.c (adjust_mems): Likewise.
16201 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
16202 rather than gen_rtx_fmt_ee.
16204 2013-09-09 Jan Hubicka <jh@suse.cz>
16206 PR middle-end/58294
16207 * value-prof.c (gimple_ic): Copy also abnormal edges.
16209 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16211 * asan.c (asan_shadow_cst): Use gen_int_mode.
16213 2013-09-08 Jan Hubicka <jh@suse.cz>
16215 * ipa-profile.c: Add toplevel comment.
16216 (ipa_propagate_frequency_1): Be more conservative when profile is read.
16217 (contains_hot_call_p): New function.
16218 (ipa_propagate_frequency): Set frequencies based on counts when
16220 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
16221 profile; do not tamper with profile after inlining if it is read.
16223 2013-09-08 Jan Hubicka <jh@suse.cz>
16225 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
16228 2013-09-08 Jan Hubicka <jh@suse.cz>
16230 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
16231 summary generation.
16233 2013-09-08 Jeff Law <law@redhat.com>
16236 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
16239 2013-09-08 Andi Kleen <ak@linux.intel.com>
16241 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
16243 2013-09-08 Jan Hubicka <jh@suse.cz>
16245 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
16247 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
16249 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
16250 for non-debug insns.
16251 * lra.c (new_insn_reg): Take the containing insn as a parameter.
16252 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
16253 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
16256 2013-09-08 Jan Hubicka <jh@suse.cz>
16258 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
16259 targets and devirtualize to BUILT_IN_UNREACHABLE.
16260 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
16261 * ipa.c (walk_polymorphic_call_targets): New function.
16262 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
16263 functions; use the new timevar.
16264 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
16265 was removed from the program.
16266 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
16267 not consider it in the walk when its vtable is dead.
16268 (possible_polymorphic_call_targets_1): Pass anonymous flag to
16270 (devirt_variable_node_removal_hook): New function.
16271 (possible_polymorphic_call_targets): Also register
16272 devirt_variable_node_removal_hook.
16273 (ipa_devirt): Do not do non-speculative devirtualization.
16274 (gate_ipa_devirt): One execute if devirtualizing speculatively.
16276 2013-09-08 Jan Hubicka <jh@suse.cz>
16278 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
16279 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
16280 varpool_remove_variable_insertion_hook): Declare.
16281 * varpool.c (varpool_node_hook_list): New structure.
16282 (first_varpool_node_removal_hook,
16283 first_varpool_variable_insertion_hook): New variables.
16284 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
16285 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
16286 varpool_remove_variable_insertion_hook,
16287 varpool_call_variable_insertion_hooks): New functions.
16288 (varpool_remove_node): Use it.
16290 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
16293 * diagnostic.c (diagnostic_build_prefix): When s.file is
16294 "<built-in>" don't output line and column numbers.
16296 2013-09-06 Jan Hubicka <jh@suse.cz>
16298 * cgraphunit.c (expand_thunk): Get body before touching arguments.
16299 * lto-streamer-out.c: Stream thunks, too.
16300 * lto-streamer-in.c (input_function): Pop cfun here
16301 (lto_read_body): Instead of here.
16303 2013-09-06 Caroline Tice <cmtice@google.com>
16305 * doc/install.texi: Add documentation for the --enable-vtable-verify
16306 and the --disable-libvtv configure options.
16308 2013-09-06 Jeff Law <law@redhat.com>
16310 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16311 edge implied equivalences into successor phis.
16313 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
16315 * resource.c (mark_referenced_resources): Handle COND_EXEC.
16317 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
16319 * resource.c (mark_target_live_regs): Compute resources taking
16320 into account if a call is predicated or not.
16322 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16324 * toplev.c (output_stack_usage): Be prepared for suffixes created by
16325 the compiler in the function names.
16327 2013-09-06 Jan Hubicka <jh@suse.cz>
16329 PR middle-end/58094
16330 * ipa-inline.c (has_caller_p): New function.
16331 (want_inline_function_to_all_callers_p): Use it.
16332 (sum_callers, inline_to_all_callers): Break out from ...
16333 (ipa_inline): ... here.
16335 2013-09-06 Jan Hubicka <jh@suse.cz>
16337 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
16338 only when AVX is enabled.
16340 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16342 * config/aarch64/aarch64.md
16343 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
16344 is fpsimd_<load/store>2.
16345 (load_pair<mode>): Likewise.
16346 (store_pair<mode>): Likewise.
16348 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16350 * config/arm/types.md (type): Add "mrs" type.
16351 * config/aarch64/aarch64.md
16352 (aarch64_load_tp_hard): Make type "mrs".
16353 * config/arm/arm.md
16354 (load_tp_hard): Make type "mrs".
16355 * config/arm/cortex-a15.md: Update with new attributes.
16356 * config/arm/cortex-a5.md: Update with new attributes.
16357 * config/arm/cortex-a53.md: Update with new attributes.
16358 * config/arm/cortex-a7.md: Update with new attributes.
16359 * config/arm/cortex-a8.md: Update with new attributes.
16360 * config/arm/cortex-a9.md: Update with new attributes.
16361 * config/arm/cortex-m4.md: Update with new attributes.
16362 * config/arm/cortex-r4.md: Update with new attributes.
16363 * config/arm/fa526.md: Update with new attributes.
16364 * config/arm/fa606te.md: Update with new attributes.
16365 * config/arm/fa626te.md: Update with new attributes.
16366 * config/arm/fa726te.md: Update with new attributes.
16368 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16370 * config/aarch64/aarch64.md
16371 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16372 (*movtf_aarch64): Likewise.
16373 * config/arm/arm.md
16374 (thumb1_movdi_insn): Use "multiple" for type where more than one
16375 instruction is used for a move.
16376 (*arm32_movhf): Likewise.
16377 (*thumb_movdf_insn): Likewise.
16379 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16381 * config/arm/types.md (type): Rename fcpys to fmov.
16382 * config/arm/vfp.md
16383 (*arm_movsi_vfp): Rename type fcpys as fmov.
16384 (*thumb2_movsi_vfp): Likewise
16385 (*movhf_vfp_neon): Likewise
16386 (*movhf_vfp): Likewise
16387 (*movsf_vfp): Likewise
16388 (*thumb2_movsf_vfp): Likewise
16389 (*movsfcc_vfp): Likewise
16390 (*thumb2_movsfcc_vfp): Likewise
16391 * config/aarch64/aarch64-simd.md
16392 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16393 * config/aarch64/aarch64.md
16394 (*movsi_aarch64): Replace type mov_reg with fmovs.
16395 (*movdi_aarch64): Likewise
16396 (*movsf_aarch64): Likewise
16397 (*movdf_aarch64): Likewise
16399 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16400 * config/arm/iwmmxt.md
16401 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16402 * config/arm/arm1020e.md: Update with new attributes.
16403 * config/arm/cortex-a15-neon.md: Update with new attributes.
16404 * config/arm/cortex-a5.md: Update with new attributes.
16405 * config/arm/cortex-a53.md: Update with new attributes.
16406 * config/arm/cortex-a7.md: Update with new attributes.
16407 * config/arm/cortex-a8-neon.md: Update with new attributes.
16408 * config/arm/cortex-a9.md: Update with new attributes.
16409 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16410 * config/arm/cortex-r4f.md: Update with new attributes.
16411 * config/arm/marvell-pj4.md: Update with new attributes.
16412 * config/arm/vfp11.md: Update with new attributes.
16414 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16416 * config/aarch64/aarch64.md
16417 (*madd<mode>): Fix type attribute.
16418 (*maddsi_uxtw): Likewise.
16419 (*msub<mode>): Likewise.
16420 (*msubsi_uxtw): Likewise.
16421 (<su_optab>maddsidi4): Likewise.
16422 (<su_optab>msubsidi4): Likewise.
16424 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16426 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16427 * config/arm/arm.md (core_cycles): Remove fdiv.
16428 * config/arm/vfp.md:
16429 (*sqrtsf2_vfp): Update for attribute changes.
16430 (*sqrtdf2_vfp): Likewise.
16431 * config/aarch64/aarch64.md:
16432 (sqrt<mode>2): Update for attribute changes.
16433 * config/arm/arm1020e.md: Update with new attributes.
16434 * config/arm/cortex-a15-neon.md: Update with new attributes.
16435 * config/arm/cortex-a5.md: Update with new attributes.
16436 * config/arm/cortex-a53.md: Update with new attributes.
16437 * config/arm/cortex-a7.md: Update with new attributes.
16438 * config/arm/cortex-a8-neon.md: Update with new attributes.
16439 * config/arm/cortex-a9.md: Update with new attributes.
16440 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16441 * config/arm/cortex-r4f.md: Update with new attributes.
16442 * config/arm/marvell-pj4.md: Update with new attributes.
16443 * config/arm/vfp11.md: Update with new attributes.
16445 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16447 * config/arm/types.md
16448 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16449 * config/aarch64/aarch64.md
16450 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16452 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16453 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16454 (float<GPI:mode><GPF:mode>2): Likewise.
16455 * config/arm/vfp.md
16456 (*truncsisf2_vfp): Update with new attributes.
16457 (*truncsidf2_vfp): Likewise.
16458 (fixuns_truncsfsi2): Likewise.
16459 (fixuns_truncdfsi2): Likewise.
16460 (*floatsisf2_vfp): Likewise.
16461 (*floatsidf2_vfp): Likewise.
16462 (floatunssisf2): Likewise.
16463 (floatunssidf2): Likewise.
16464 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16465 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16466 * config/arm/arm1020e.md: Update with new attributes.
16467 * config/arm/cortex-a15-neon.md: Update with new attributes.
16468 * config/arm/cortex-a5.md: Update with new attributes.
16469 * config/arm/cortex-a53.md: Update with new attributes.
16470 * config/arm/cortex-a7.md: Update with new attributes.
16471 * config/arm/cortex-a8-neon.md: Update with new attributes.
16472 * config/arm/cortex-a9.md: Update with new attributes.
16473 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16474 * config/arm/cortex-r4f.md: Update with new attributes.
16475 * config/arm/marvell-pj4.md: Update with new attributes.
16476 * config/arm/vfp11.md: Update with new attributes.
16478 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16480 * config/aarch64/arm_neon.h
16481 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16482 (vqtbx<1,2,3,4><q>_s8): Likewise.
16484 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16486 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16487 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16488 (add<mode>3): Add type attribute.
16489 (add<mode>3): Likewise.
16490 (usadd<mode>3): Likewise.
16491 (ssadd<mode>3): Likewise.
16492 (sub<mode>3): Likewise.
16493 (sub<mode>3): Likewise.
16494 (ussub<mode>3): Likewise.
16495 (sssub<mode>3): Likewise.
16496 (ssmulsa3): Likewise.
16497 (usmulusa3): Likewise.
16498 (arm_usatsihi): Likewise.
16499 * config/arm/vfp.md
16500 (*movdi_vfp): Add types for all instructions.
16501 (*movdi_vfp_cortexa8): Likewise.
16502 (*movhf_vfp_neon): Likewise.
16503 (*movhf_vfp): Likewise.
16504 (*movdf_vfp): Likewise.
16505 (*thumb2_movdf_vfp): Likewise.
16506 (*thumb2_movdfcc_vfp): Likewise.
16507 * config/arm/arm.md: Add type attribute to all insn patterns.
16508 (*thumb1_adddi3): Add type attribute.
16509 (*arm_adddi3): Likewise.
16510 (*adddi_sesidi_di): Likewise.
16511 (*adddi_zesidi_di): Likewise.
16512 (*thumb1_addsi3): Likewise.
16513 (addsi3_compare0): Likewise.
16514 (*addsi3_compare0_scratch): Likewise.
16515 (*compare_negsi_si): Likewise.
16516 (cmpsi2_addneg): Likewise.
16517 (*addsi3_carryin_<optab>): Likewise.
16518 (*addsi3_carryin_alt2_<optab>): Likewise.
16519 (*addsi3_carryin_clobercc_<optab>): Likewise.
16520 (*subsi3_carryin): Likewise.
16521 (*subsi3_carryin_const): Likewise.
16522 (*subsi3_carryin_compare): Likewise.
16523 (*subsi3_carryin_compare_const): Likewise.
16524 (*arm_subdi3): Likewise.
16525 (*thumb_subdi3): Likewise.
16526 (*subdi_di_zesidi): Likewise.
16527 (*subdi_di_sesidi): Likewise.
16528 (*subdi_zesidi_di): Likewise.
16529 (*subdi_sesidi_di): Likewise.
16530 (*subdi_zesidi_ze): Likewise.
16531 (thumb1_subsi3_insn): Likewise.
16532 (*arm_subsi3_insn): Likewise.
16533 (*anddi3_insn): Likewise.
16534 (*anddi_zesidi_di): Likewise.
16535 (*anddi_sesdi_di): Likewise.
16536 (*ne_zeroextracts): Likewise.
16537 (*ne_zeroextracts): Likewise.
16538 (*ite_ne_zeroextr): Likewise.
16539 (*ite_ne_zeroextr): Likewise.
16540 (*anddi_notdi_di): Likewise.
16541 (*anddi_notzesidi): Likewise.
16542 (*anddi_notsesidi): Likewise.
16543 (andsi_notsi_si): Likewise.
16544 (thumb1_bicsi3): Likewise.
16545 (*iordi3_insn): Likewise.
16546 (*iordi_zesidi_di): Likewise.
16547 (*iordi_sesidi_di): Likewise.
16548 (*thumb1_iorsi3_insn): Likewise.
16549 (*xordi3_insn): Likewise.
16550 (*xordi_zesidi_di): Likewise.
16551 (*xordi_sesidi_di): Likewise.
16552 (*arm_xorsi3): Likewise.
16553 (*andsi_iorsi3_no): Likewise.
16554 (*smax_0): Likewise.
16555 (*smax_m1): Likewise.
16556 (*arm_smax_insn): Likewise.
16557 (*smin_0): Likewise.
16558 (*arm_smin_insn): Likewise.
16559 (*arm_umaxsi3): Likewise.
16560 (*arm_uminsi3): Likewise.
16561 (*minmax_arithsi): Likewise.
16562 (*minmax_arithsi_): Likewise.
16563 (*satsi_<SAT:code>): Likewise.
16564 (arm_ashldi3_1bit): Likewise.
16565 (arm_ashrdi3_1bit): Likewise.
16566 (arm_lshrdi3_1bit): Likewise.
16567 (*arm_negdi2): Likewise.
16568 (*thumb1_negdi2): Likewise.
16569 (*arm_negsi2): Likewise.
16570 (*thumb1_negsi2): Likewise.
16571 (*negdi_extendsid): Likewise.
16572 (*negdi_zero_extend): Likewise.
16573 (*arm_abssi2): Likewise.
16574 (*thumb1_abssi2): Likewise.
16575 (*arm_neg_abssi2): Likewise.
16576 (*thumb1_neg_abss): Likewise.
16577 (one_cmpldi2): Likewise.
16578 (extend<mode>di2): Likewise.
16579 (*compareqi_eq0): Likewise.
16580 (*arm_extendhisi2addsi): Likewise.
16581 (*arm_movdi): Likewise.
16582 (*thumb1_movdi_insn): Likewise.
16583 (*arm_movt): Likewise.
16584 (*thumb1_movsi_insn): Likewise.
16585 (pic_add_dot_plus_four): Likewise.
16586 (pic_add_dot_plus_eight): Likewise.
16587 (tls_load_dot_plus_eight): Likewise.
16588 (*thumb1_movhi_insn): Likewise.
16589 (*thumb1_movsf_insn): Likewise.
16590 (*movdf_soft_insn): Likewise.
16591 (*thumb_movdf_insn): Likewise.
16592 (cbranchsi4_insn): Likewise.
16593 (cbranchsi4_scratch): Likewise.
16594 (*negated_cbranchsi4): Likewise.
16595 (*tbit_cbranch): Likewise.
16596 (*tlobits_cbranch): Likewise.
16597 (*tstsi3_cbranch): Likewise.
16598 (*cbranchne_decr1): Likewise.
16599 (*addsi3_cbranch): Likewise.
16600 (*addsi3_cbranch_scratch): Likewise.
16601 (*arm_cmpdi_insn): Likewise.
16602 (*arm_cmpdi_unsig): Likewise.
16603 (*arm_cmpdi_zero): Likewise.
16604 (*thumb_cmpdi_zero): Likewise.
16605 (*deleted_compare): Likewise.
16606 (*mov_scc): Likewise.
16607 (*mov_negscc): Likewise.
16608 (*mov_notscc): Likewise.
16609 (*cstoresi_eq0_thumb1_insn): Likewise.
16610 (cstoresi_nltu_thumb1): Likewise.
16611 (cstoresi_ltu_thu): Likewise.
16612 (thumb1_addsi3_addgeu): Likewise.
16613 (*arm_jump): Likewise.
16614 (*thumb_jump): Likewise.
16615 (*check_arch2): Likewise.
16616 (arm_casesi_internal): Likewise.
16617 (thumb1_casesi_dispatch): Likewise.
16618 (*arm_indirect_jump): Likewise.
16619 (*thumb1_indirect_jump): Likewise.
16621 (*and_scc): Likewise.
16622 (*ior_scc): Likewise.
16623 (*compare_scc): Likewise.
16624 (*cond_move): Likewise.
16625 (*cond_arith): Likewise.
16626 (*cond_sub): Likewise.
16627 (*cmp_ite0): Likewise.
16628 (*cmp_ite1): Likewise.
16629 (*cmp_and): Likewise.
16630 (*cmp_ior): Likewise.
16631 (*ior_scc_scc): Likewise.
16632 (*ior_scc_scc_cmp): Likewise.
16633 (*and_scc_scc): Likewise.
16634 (*and_scc_scc_cmp): Likewise.
16635 (*and_scc_scc_nod): Likewise.
16636 (*negscc): Likewise.
16637 (movcond_addsi): Likewise.
16638 (movcond): Likewise.
16639 (*ifcompare_plus_move): Likewise.
16640 (*if_plus_move): Likewise.
16641 (*ifcompare_move_plus): Likewise.
16642 (*if_move_plus): Likewise.
16643 (*ifcompare_arith_arith): Likewise.
16644 (*if_arith_arith): Likewise.
16645 (*ifcompare_arith_move): Likewise.
16646 (*if_arith_move): Likewise.
16647 (*ifcompare_move_arith): Likewise.
16648 (*if_move_arith): Likewise.
16649 (*ifcompare_move_not): Likewise.
16650 (*if_move_not): Likewise.
16651 (*ifcompare_not_move): Likewise.
16652 (*if_not_move): Likewise.
16653 (*ifcompare_shift_move): Likewise.
16654 (*if_shift_move): Likewise.
16655 (*ifcompare_move_shift): Likewise.
16656 (*if_move_shift): Likewise.
16657 (*ifcompare_shift_shift): Likewise.
16658 (*ifcompare_not_arith): Likewise.
16659 (*ifcompare_arith_not): Likewise.
16660 (*if_arith_not): Likewise.
16661 (*ifcompare_neg_move): Likewise.
16662 (*if_neg_move): Likewise.
16663 (*ifcompare_move_neg): Likewise.
16664 (*if_move_neg): Likewise.
16665 (prologue_thumb1_interwork): Likewise.
16666 (*cond_move_not): Likewise.
16667 (*sign_extract_onebit): Likewise.
16668 (*not_signextract_onebit): Likewise.
16669 (stack_tie): Likewise.
16670 (align_4): Likewise.
16671 (align_8): Likewise.
16672 (consttable_end): Likewise.
16673 (consttable_1): Likewise.
16674 (consttable_2): Likewise.
16675 (consttable_4): Likewise.
16676 (consttable_8): Likewise.
16677 (consttable_16): Likewise.
16678 (*thumb1_tablejump): Likewise.
16679 (prefetch): Likewise.
16680 (force_register_use): Likewise.
16681 (thumb_eh_return): Likewise.
16682 (load_tp_hard): Likewise.
16683 (load_tp_soft): Likewise.
16684 (tlscall): Likewise.
16685 (*arm_movtas_ze): Likewise.
16686 (*arm_rev): Likewise.
16687 (*arm_revsh): Likewise.
16688 (*arm_rev16): Likewise.
16689 * config/arm/thumb2.md
16690 (*thumb2_smaxsi3): Likewise.
16691 (*thumb2_sminsi3): Likewise.
16692 (*thumb32_umaxsi3): Likewise.
16693 (*thumb2_uminsi3): Likewise.
16694 (*thumb2_negdi2): Likewise.
16695 (*thumb2_abssi2): Likewise.
16696 (*thumb2_neg_abss): Likewise.
16697 (*thumb2_movsi_insn): Likewise.
16698 (tls_load_dot_plus_four): Likewise.
16699 (*thumb2_movhi_insn): Likewise.
16700 (*thumb2_mov_scc): Likewise.
16701 (*thumb2_mov_negs): Likewise.
16702 (*thumb2_mov_negs): Likewise.
16703 (*thumb2_mov_nots): Likewise.
16704 (*thumb2_mov_nots): Likewise.
16705 (*thumb2_movsicc_): Likewise.
16706 (*thumb2_movsfcc_soft_insn): Likewise.
16707 (*thumb2_indirect_jump): Likewise.
16708 (*thumb2_and_scc): Likewise.
16709 (*thumb2_ior_scc): Likewise.
16710 (*thumb2_ior_scc_strict_it): Likewise.
16711 (*thumb2_cond_move): Likewise.
16712 (*thumb2_cond_arith): Likewise.
16713 (*thumb2_cond_ari): Likewise.
16714 (*thumb2_cond_sub): Likewise.
16715 (*thumb2_negscc): Likewise.
16716 (*thumb2_movcond): Likewise.
16717 (thumb2_casesi_internal): Likewise.
16718 (thumb2_casesi_internal_pic): Likewise.
16719 (*thumb2_alusi3_short): Likewise.
16720 (*thumb2_mov<mode>_shortim): Likewise.
16721 (*thumb2_addsi_short): Likewise.
16722 (*thumb2_subsi_short): Likewise.
16723 (thumb2_addsi3_compare0): Likewise.
16724 (*thumb2_cbz): Likewise.
16725 (*thumb2_cbnz): Likewise.
16726 (*thumb2_one_cmplsi2_short): Likewise.
16727 (*thumb2_negsi2_short): Likewise.
16728 (*orsi_notsi_si): Likewise.
16729 * config/arm/arm1020e.md: Update with new attributes.
16730 * config/arm/arm1026ejs.md: Update with new attributes.
16731 * config/arm/arm1136jfs.md: Update with new attributes.
16732 * config/arm/arm926ejs.md: Update with new attributes.
16733 * config/arm/cortex-a15.md: Update with new attributes.
16734 * config/arm/cortex-a5.md: Update with new attributes.
16735 * config/arm/cortex-a53.md: Update with new attributes.
16736 * config/arm/cortex-a7.md: Update with new attributes.
16737 * config/arm/cortex-a8.md: Update with new attributes.
16738 * config/arm/cortex-a9.md: Update with new attributes.
16739 * config/arm/cortex-m4.md: Update with new attributes.
16740 * config/arm/cortex-r4.md: Update with new attributes.
16741 * config/arm/fa526.md: Update with new attributes.
16742 * config/arm/fa606te.md: Update with new attributes.
16743 * config/arm/fa626te.md: Update with new attributes.
16744 * config/arm/fa726te.md: Update with new attributes.
16746 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16748 * config/aarch64/aarch64-simd.md
16749 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16750 <vwx> iterator to ensure correct register choice.
16751 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16752 (aarch64_sqdmull_n<mode>): Likewise.
16753 (aarch64_sqdmull2_n<mode>_internal): Likewise.
16754 * config/aarch64/arm_neon.h
16755 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16756 (vml<as><q>_n_<su>16): Likewise.
16757 (vml<as>l_high_lane<q>_<su>16): Likewise.
16758 (vml<as>l_high_n_<su>16): Likewise.
16759 (vml<as>l_lane<q>_<su>16): Likewise.
16760 (vml<as>l_n_<su>16): Likewise.
16761 (vmul<q>_lane<q>_<su>16): Likewise.
16762 (vmul<q>_n_<su>16): Likewise.
16763 (vmull_lane<q>_<su>16): Likewise.
16764 (vmull_n_<su>16): Likewise.
16765 (vmull_high_lane<q>_<su>16): Likewise.
16766 (vmull_high_n_<su>16): Likewise.
16767 (vqrdmulh<q>_n_s16): Likewise.
16769 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
16771 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16772 have the correct lane parameter.
16774 2013-09-06 Richard Biener <rguenther@suse.de>
16776 * cfganal.c (control_dependences::~control_dependences):
16777 Properly free all of the vector.
16779 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
16782 * config/i386/i386.c (ix86_conditional_register_usage):
16783 Proper initialize extended SSE registers.
16785 2013-09-06 Jan Hubicka <jh@suse.cz>
16787 PR tree-optimization/58311
16788 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16790 2013-09-06 Jan Hubicka <jh@suse.cz>
16792 * Makefile.in (tree-sra.o): Update dependencies.
16793 * tree-sra.c: Include ipa-utils.h
16794 (scan_function): Use recursive_call_p.
16795 (has_caller_p): New function.
16796 (cgraph_for_node_and_aliases): Count also callers of aliases.
16798 2013-09-06 Jan Hubicka <jh@suse.cz>
16800 PR middle-end/58094
16801 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16802 * tree-tailcall.c: Include ipa-utils.h.
16803 (find_tail_calls): Use it.
16804 * ipa-pure-const.c (check_call): Likewise.
16805 * ipa-utils.c (recursive_call_p): New function.
16806 * ipa-utils.h (recursive_call_p): Dclare.
16807 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16808 (symtab_semantically_equivalent_p): New function.
16809 * Makefile.in (tree-tailcall.o): Update dependencies.
16811 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16813 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16814 non-inlinable part.
16816 2013-09-06 Richard Biener <rguenther@suse.de>
16818 * lto-streamer.h (lto_global_var_decls): Remove.
16819 * Makefile.in (OBJS): Remove lto-symtab.o.
16820 (lto-symtab.o): Remove.
16821 (GTFILES): Remove lto-symtab.c
16822 * lto-symtab.c: Move to lto/
16824 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16826 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16827 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16828 (UNSPEC_FPINT_RINT): New constant definitions.
16829 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16830 definition with 2 attributes.
16831 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16832 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16835 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16837 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16838 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16839 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16840 attribute to "z196_alone".
16841 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16844 2013-09-06 Richard Biener <rguenther@suse.de>
16846 * basic-block.h (class control_dependences): New.
16847 * tree-ssa-dce.c (control_dependence_map): Remove.
16849 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16850 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16851 find_pdom, find_control_dependence, find_all_control_dependences):
16853 (mark_control_dependent_edges_necessary,
16854 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16855 tree_dce_done, perform_tree_ssa_dce): Adjust.
16856 * cfganal.c (set_control_dependence_map_bit,
16857 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16858 find_all_control_dependences): Move from tree-ssa-dce.c and
16859 implement as methods of control_dependences class.
16860 (control_dependences::control_dependences): New.
16861 (control_dependences::~control_dependences): Likewise.
16862 (control_dependences::get_edges_dependent_on): Likewise.
16863 (control_dependences::get_edge): Likewise.
16865 2013-09-04 Jan Hubicka <jh@suse.cz>
16867 * tree.c (types_same_for_odr): Drop overactive check.
16868 * ipa-devirt.c (hash_type_name): Likewise.
16870 2013-09-04 Jan Hubicka <jh@suse.cz>
16872 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16873 (analyze_functions): ... here.
16875 2013-09-04 Jan Hubicka <jh@suse.cz>
16877 PR middle-end/58201
16878 * cgraphunit.c (analyze_functions): Clear AUX fields
16879 after processing; initialize assembler name has.
16881 2013-09-05 Jeff Law <law@redhat.com>
16883 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16884 from thread_around_empty_block. Record threading path into PATH.
16885 Recurse if threading through the initial block is successful.
16886 (thread_across_edge): Corresponding changes to slightly simplify.
16888 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16890 * config/aarch64/aarch64.md
16891 (type): Remove frecpe, frecps, frecpx.
16892 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16893 fix to be a TARGET_SIMD instruction.
16894 (aarch64_frecps): Remove.
16895 * config/aarch64/aarch64-simd.md
16896 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16897 (aarch64_frecps<mode>): Handle all float/vector of float modes.
16899 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16900 Sofiane Naci <sofiane.naci@arm.com>
16902 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16903 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16904 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16905 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16906 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
16907 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16908 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
16909 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
16910 into "clz, "rbit". Rename "shift" to "shift_imm".
16911 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16912 changes. Update for attribute changes all occurrences of arlo_* and
16914 * config/arm/arm-fixed.md: Update for attribute changes
16915 all occurrences of arlo_* types.
16916 * config/arm/thumb2.md: Update for attribute changes all occurrences
16918 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
16919 (cortexa7_older_only): Likewise.
16920 (cortexa7_younger): Likewise.
16921 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16922 (1020alu_shift_op): Likewise.
16923 (1020alu_shift_reg_op): Likewise.
16924 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16925 (alu_shift_op): Likewise.
16926 (alu_shift_reg_op): Likewise.
16927 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16928 (11_alu_shift_op): Likewise.
16929 (11_alu_shift_reg_op): Likewise.
16930 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16931 (9_alu_shift_reg_op): Likewise.
16932 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16934 (cortex_a15_alu_shift): Likewise.
16935 (cortex_a15_alu_shift_reg): Likewise.
16936 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16938 (cortex_a5_alu_shift): Likewise.
16939 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16941 (cortex_a53_alu_shift): Likewise.
16942 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16944 (cortex_a7_alu_reg): Likewise.
16945 (cortex_a7_alu_shift): Likewise.
16946 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16948 (cortex_a8_alu_shift): Likewise.
16949 (cortex_a8_alu_shift_reg): Likewise.
16950 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16951 (cortex_a9_dp_shift): Likewise.
16952 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16954 * config/arm/cortex-r4.md
16955 (cortex_r4_alu): Update for attribute changes.
16956 (cortex_r4_mov): Likewise.
16957 (cortex_r4_alu_shift_reg): Likewise.
16958 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16959 (526_alu_shift_op): Likewise.
16960 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16961 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16962 (626te_alu_shift_op): Likewise.
16963 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16964 (726te_alu_shift_op): Likewise.
16965 (726te_alu_shift_reg_op): Likewise.
16966 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16967 (mp626_alu_shift_op): Likewise.
16968 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16969 (pj4_alu_conds): Likewise.
16970 (pj4_shift): Likewise.
16971 (pj4_shift_conds): Likewise.
16972 (pj4_alu_shift): Likewise.
16973 (pj4_alu_shift_conds): Likewise.
16974 * config/aarch64/aarch64.md: Update for attribute change
16975 all occurrences of arlo_* and shift* types.
16977 2013-09-05 Mike Stump <mikestump@comcast.net>
16979 * tree.h: Move documentation for tree_function_decl to tree-core.h
16980 with the declaration.
16982 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
16985 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16986 looking for widest mode.
16988 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
16990 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16992 2013-09-05 Richard Biener <rguenther@suse.de>
16994 PR tree-optimization/58137
16995 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16996 Do not create vectors of pointers.
16997 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16998 types for the components of the vector initializer.
16999 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
17000 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
17002 2013-09-05 Martin Jambor <mjambor@suse.cz>
17004 * ipa-prop.c (remove_described_reference): Accept missing references,
17005 return false if that hppens, otherwise return true.
17006 (cgraph_node_for_jfunc): New function.
17007 (try_decrement_rdesc_refcount): Likewise.
17008 (try_make_edge_direct_simple_call): Use them.
17009 (ipa_edge_removal_hook): Remove references from rdescs.
17010 (ipa_edge_duplication_hook): Clone rdescs and their references
17011 when the new edge has the same caller as the old one.
17012 * cgraph.c (cgraph_resolve_speculation): Remove speculative
17013 reference before removing any edges.
17015 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
17017 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
17019 * thumb2.md (thumb2_storewb_parisi): New pattern.
17021 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
17023 * config/aarch64/aarch64-option-extensions.def: Add
17024 AARCH64_OPT_EXTENSION of 'crc'.
17025 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
17026 (AARCH64_ISA_CRC): Ditto.
17027 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
17028 description of the CRC extension.
17030 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
17032 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
17033 * config/rs6000/linux.h: Ditto.
17034 * alpha/linux.h: Ditto.
17035 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
17036 no_c99_libc_has_function.
17037 * config/c6x/uclinux-elf.h: Ditto.
17038 * config/lm32/uclinux-elf.h: Ditto.
17039 * config/m68k/uclinux.h: Ditto.
17040 * config/moxie/uclinux.h: Ditto.
17041 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
17042 (crisv32-*-linux*, cris-*-linux*): Ditto.
17043 * config/bfin/bfin.c: Include "tm_p.h".
17045 2013-09-05 Richard Biener <rguenther@suse.de>
17047 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
17048 check for a definition without a basic-block.
17050 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17051 Sofiane Naci <sofiane.naci@arm.com>
17053 * config/aarch64/aarch64.md
17054 (*movti_aarch64): Rename r_2_f and f_2_r.
17055 (*movsf_aarch64): Likewise.
17056 (*movdf_aarch64): Likewise.
17057 (*movtf_aarch64): Likewise.
17058 (aarch64_movdi_<mode>low): Likewise.
17059 (aarch64_movdi_<mode>high): Likewise.
17060 (aarch64_mov<mode>high_di): Likewise.
17061 (aarch64_mov<mode>low_di): Likewise.
17062 (aarch64_movtilow_tilow): Likewise.
17063 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
17064 values to config/arm/types.md
17065 (attribute "conds"): Update for attribute change.
17066 (anddi3_insn): Likewise.
17067 (iordi3_insn): Likewise.
17068 (xordi3_insn): Likewise.
17069 (one_cmpldi2): Likewise.
17070 * config/arm/types.md (type): Add Neon types.
17071 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
17072 use "type" attribute.
17073 (movmisalign<mode>_neon_store): Likewise.
17074 (movmisalign<mode>_neon_load): Likewise.
17075 (vec_set<mode>_internal): Likewise.
17076 (vec_setv2di_internal): Likewise.
17077 (vec_extract<mode>): Likewise.
17078 (vec_extractv2di): Likewise.
17079 (add<mode>3_neon): Likewise.
17080 (adddi3_neon): Likewise.
17081 (sub<mode>3_neon): Likewise.
17082 (subdi3_neon): Likewise.
17083 (mul<mode>3_neon): Likewise.
17084 (mul<mode>3add<mode>_neon): Likewise.
17085 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
17086 (fma<VCVTF:mode>4)): Likewise.
17087 (fma<VCVTF:mode>4_intrinsic): Likewise.
17088 (fmsub<VCVTF:mode>4)): Likewise.
17089 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
17090 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
17091 (ior<mode>3): Likewise.
17092 (and<mode>3): Likewise.
17093 (anddi3_neon): Likewise.
17094 (orn<mode>3_neon): Likewise.
17095 (orndi3_neon): Likewise.
17096 (bic<mode>3_neon): Likewise.
17097 (bicdi3_neon): Likewise.
17098 (xor<mode>3): Likewise.
17099 (one_cmpl<mode>2): Likewise.
17100 (abs<mode>2): Likewise.
17101 (neg<mode>2): Likewise.
17102 (umin<mode>3_neon): Likewise.
17103 (umax<mode>3_neon): Likewise.
17104 (smin<mode>3_neon): Likewise.
17105 (smax<mode>3_neon): Likewise.
17106 (vashl<mode>3): Likewise.
17107 (vashr<mode>3_imm): Likewise.
17108 (vlshr<mode>3_imm): Likewise.
17109 (ashl<mode>3_signed): Likewise.
17110 (ashl<mode>3_unsigned): Likewise.
17111 (neon_load_count): Likewise.
17112 (ashldi3_neon_noclobber): Likewise.
17113 (signed_shift_di3_neon): Likewise.
17114 (unsigned_shift_di3_neon): Likewise.
17115 (ashrdi3_neon_imm_noclobber): Likewise.
17116 (lshrdi3_neon_imm_noclobber): Likewise.
17117 (widen_ssum<mode>3): Likewise.
17118 (widen_usum<mode>3): Likewise.
17119 (quad_halves_<code>v4si): Likewise.
17120 (quad_halves_<code>v4sf): Likewise.
17121 (quad_halves_<code>v8hi): Likewise.
17122 (quad_halves_<code>v16qi): Likewise.
17123 (reduc_splus_v2di): Likewise.
17124 (neon_vpadd_internal<mode>): Likewise.
17125 (neon_vpsmin<mode>): Likewise.
17126 (neon_vpsmax<mode>): Likewise.
17127 (neon_vpumin<mode>): Likewise.
17128 (neon_vpumax<mode>): Likewise.
17129 (ss_add<mode>_neon): Likewise.
17130 (us_add<mode>_neon): Likewise.
17131 (ss_sub<mode>_neon): Likewise.
17132 (us_sub<mode>_neon): Likewise.
17133 (neon_vadd<mode>_unspec): Likewise.
17134 (neon_vaddl<mode>): Likewise.
17135 (neon_vaddw<mode>): Likewise.
17136 (neon_vhadd<mode>): Likewise.
17137 (neon_vqadd<mode>): Likewise.
17138 (neon_vaddhn<mode>): Likewise.
17139 (neon_vmul<mode>): Likewise.
17140 (neon_vmla<mode>): Likewise.
17141 (neon_vmlal<mode>): Likewise.
17142 (neon_vmls<mode>): Likewise.
17143 (neon_vmlsl<mode>): Likewise.
17144 (neon_vqdmulh<mode>): Likewise.
17145 (neon_vqdmlal<mode>): Likewise.
17146 (neon_vqdmlsl<mode>): Likewise.
17147 (neon_vmull<mode>): Likewise.
17148 (neon_vqdmull<mode>): Likewise.
17149 (neon_vsub<mode>_unspec): Likewise.
17150 (neon_vsubl<mode>): Likewise.
17151 (neon_vsubw<mode>): Likewise.
17152 (neon_vqsub<mode>): Likewise.
17153 (neon_vhsub<mode>): Likewise.
17154 (neon_vsubhn<mode>): Likewise.
17155 (neon_vceq<mode>): Likewise.
17156 (neon_vcge<mode>): Likewise.
17157 (neon_vcgeu<mode>): Likewise.
17158 (neon_vcgt<mode>): Likewise.
17159 (neon_vcgtu<mode>): Likewise.
17160 (neon_vcle<mode>): Likewise.
17161 (neon_vclt<mode>): Likewise.
17162 (neon_vcage<mode>): Likewise.
17163 (neon_vcagt<mode>): Likewise.
17164 (neon_vtst<mode>): Likewise.
17165 (neon_vabd<mode>): Likewise.
17166 (neon_vabdl<mode>): Likewise.
17167 (neon_vaba<mode>): Likewise.
17168 (neon_vabal<mode>): Likewise.
17169 (neon_vmax<mode>): Likewise.
17170 (neon_vmin<mode>): Likewise.
17171 (neon_vpaddl<mode>): Likewise.
17172 (neon_vpadal<mode>): Likewise.
17173 (neon_vpmax<mode>): Likewise.
17174 (neon_vpmin<mode>): Likewise.
17175 (neon_vrecps<mode>): Likewise.
17176 (neon_vrsqrts<mode>): Likewise.
17177 (neon_vqabs<mode>): Likewise.
17178 (neon_vqneg<mode>): Likewise.
17179 (neon_vcls<mode>): Likewise.
17180 (clz<mode>2): Likewise.
17181 (popcount<mode>2): Likewise.
17182 (neon_vrecpe): Likewise.
17183 (neon_vrsqrte): Likewise.
17184 (neon_vget_lane<mode>_sext_internal): Likewise.
17185 (neon_vget_lane<mode>_zext_internal): Likewise.
17186 (neon_vdup_n<mode>): Likewise.
17187 (neon_vdup_nv2di): Likewise.
17188 (neon_vdpu_lane<mode>_internal): Likewise.
17189 (neon_vswp<mode>): Likewise.
17190 (float<mode><V_cvtto>2): Likewise.
17191 (floatuns<mode><V_cvtto>2): Likewise.
17192 (fix_trunc<mode><V_cvtto>)2): Likewise
17193 (fixuns_trunc<mode><V_cvtto)2): Likewise.
17194 (neon_vcvt<mode>): Likewise.
17195 (neon_vcvtv4sfv4hf): Likewise.
17196 (neon_vcvtv4hfv4sf): Likewise.
17197 (neon_vcvt_n<mode>): Likewise.
17198 (neon_vmovn<mode>): Likewise.
17199 (neon_vqmovn<mode>): Likewise.
17200 (neon_vqmovun<mode>): Likewise.
17201 (neon_vmovl<mode>): Likewise.
17202 (neon_vmul_lane<mode>): Likewise.
17203 (neon_vmull_lane<mode>): Likewise.
17204 (neon_vqdmull_lane<mode>): Likewise.
17205 (neon_vqdmulh_lane<mode>): Likewise.
17206 (neon_vmla_lane<mode>): Likewise.
17207 (neon_vmlal_lane<mode>): Likewise.
17208 (neon_vqdmlal_lane<mode>): Likewise.
17209 (neon_vmls_lane<mode>): Likewise.
17210 (neon_vmlsl_lane<mode>): Likewise.
17211 (neon_vqdmlsl_lane<mode>): Likewise.
17212 (neon_vext<mode>): Likewise.
17213 (neon_vrev64<mode>): Likewise.
17214 (neon_vrev32<mode>): Likewise.
17215 (neon_vrev16<mode>): Likewise.
17216 (neon_vbsl<mode>_internal): Likewise.
17217 (neon_vshl<mode>): Likewise.
17218 (neon_vqshl<mode>): Likewise.
17219 (neon_vshr_n<mode>): Likewise.
17220 (neon_vshrn_n<mode>): Likewise.
17221 (neon_vqshrn_n<mode>): Likewise.
17222 (neon_vqshrun_n<mode>): Likewise.
17223 (neon_vshl_n<mode>): Likewise.
17224 (neon_vqshl_n<mode>): Likewise.
17225 (neon_vqshlu_n<mode>): Likewise.
17226 (neon_vshll_n<mode>): Likewise.
17227 (neon_vsra_n<mode>): Likewise.
17228 (neon_vsri_n<mode>): Likewise.
17229 (neon_vsli_n<mode>): Likewise.
17230 (neon_vtbl1v8qi): Likewise.
17231 (neon_vtbl2v8qi): Likewise.
17232 (neon_vtbl3v8qi): Likewise.
17233 (neon_vtbl4v8qi): Likewise.
17234 (neon_vtbx1v8qi): Likewise.
17235 (neon_vtbx2v8qi): Likewise.
17236 (neon_vtbx3v8qi): Likewise.
17237 (neon_vtbx4v8qi): Likewise.
17238 (neon_vtrn<mode>_internal): Likewise.
17239 (neon_vzip<mode>_internal): Likewise.
17240 (neon_vuzp<mode>_internal): Likewise.
17241 (neon_vld1<mode>): Likewise.
17242 (neon_vld1_lane<mode>): Likewise.
17243 (neon_vld1_dup<mode>): Likewise.
17244 (neon_vld1_dupv2di): Likewise.
17245 (neon_vst1<mode>): Likewise.
17246 (neon_vst1_lane<mode>): Likewise.
17247 (neon_vld2<mode>): Likewise.
17248 (neon_vld2_lane<mode>): Likewise.
17249 (neon_vld2_dup<mode>): Likewise.
17250 (neon_vst2<mode>): Likewise.
17251 (neon_vst2_lane<mode>): Likewise.
17252 (neon_vld3<mode>): Likewise.
17253 (neon_vld3qa<mode>): Likewise.
17254 (neon_vld3qb<mode>): Likewise.
17255 (neon_vld3_lane<mode>): Likewise.
17256 (neon_vld3_dup<mode>): Likewise.
17257 (neon_vst3<mode>): Likewise.
17258 (neon_vst3qa<mode>): Likewise.
17259 (neon_vst3qb<mode>): Likewise.
17260 (neon_vst3_lane<mode>): Likewise.
17261 (neon_vld4<mode>): Likewise.
17262 (neon_vld4qa<mode>): Likewise.
17263 (neon_vld4qb<mode>): Likewise.
17264 (neon_vld4_lane<mode>): Likewise.
17265 (neon_vld4_dup<mode>): Likewise.
17266 (neon_vst4<mode>): Likewise.
17267 (neon_vst4qa<mode>): Likewise.
17268 (neon_vst4qb<mode>): Likewise.
17269 (neon_vst4_lane<mode>): Likewise.
17270 (neon_vec_unpack<US>_lo_<mode>): Likewise.
17271 (neon_vec_unpack<US>_hi_<mode>): Likewise.
17272 (neon_vec_<US>mult_lo_<mode>): Likewise.
17273 (neon_vec_<US>mult_hi_<mode>): Likewise.
17274 (neon_vec_<US>shiftl_<mode>): Likewise.
17275 (neon_unpack<US>_<mode>): Likewise.
17276 (neon_vec_<US>mult_<mode>): Likewise.
17277 (vec_pack_trunc_<mode>): Likewise.
17278 (neon_vec_pack_trunk_<mode>): Likewise.
17279 (neon_vabd<mode>_2): Likewise.
17280 (neon_vabd<mode>_3): Likewise.
17281 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17282 (thumb2_movsi_vfp): Likewise.
17283 (movdi_vfp): Likewise.
17284 (movdi_vfp_cortexa8): Likewise.
17285 (movhf_vfp_neon): Likewise.
17286 (movhf_vfp): Likewiwse.
17287 (movsf_vfp): Likewiwse.
17288 (thumb2_movsf_vfp): Likewiwse.
17289 (movdf_vfp): Likewise.
17290 (thumb2_movdf_vfp): Likewise.
17291 (movsfcc_vfp): Likewise.
17292 (thumb2_movsfcc_vfp): Likewise.
17293 (movdfcc_vfp): Likewise.
17294 (thumb2_movdfcc_vfp): Likewise.
17295 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
17296 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
17297 (v10_v2c): Likewise.
17298 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
17300 (cortex_a15_neon_int_2): Likewise.
17301 (cortex_a15_neon_int_3): Likewise.
17302 (cortex_a15_neon_int_4): Likewise.
17303 (cortex_a15_neon_int_5): Likewise.
17304 (cortex_a15_neon_vqneg_vqabs): Likewise.
17305 (cortex_a15_neon_vmov): Likewise.
17306 (cortex_a15_neon_vaba): Likewise.
17307 (cortex_a15_neon_vaba_qqq): Likewise.
17308 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17309 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17310 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
17311 scalar_64_32_long_scalar): Likewise.
17312 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17313 (cortex_a15_neon_mla_qqq_8_16): Likewise.
17314 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17315 lotype_qdd_64_32_long): Likewise.
17316 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17317 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17318 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
17319 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17320 (cortex_a15_neon_shift_1): Likewise.
17321 (cortex_a15_neon_shift_2): Likewise.
17322 (cortex_a15_neon_shift_3): Likewise.
17323 (cortex_a15_neon_vshl_ddd): Likewise.
17324 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17325 (cortex_a15_neon_vsra_vrsra): Likewise.
17326 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
17327 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
17328 (cortex_a15_neon_fp_vmul_ddd): Likewise.
17329 (cortex_a15_neon_fp_vmul_qqd): Likewise.
17330 (cortex_a15_neon_fp_vmla_ddd): Likewise.
17331 (cortex_a15_neon_fp_vmla_qqq): Likewise.
17332 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
17333 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
17334 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17335 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17336 (cortex_a15_neon_bp_simple): Likewise.
17337 (cortex_a15_neon_bp_2cycle): Likewise.
17338 (cortex_a15_neon_bp_3cycle): Likewise.
17339 (cortex_a15_neon_vld1_1_2_regs): Likewise.
17340 (cortex_a15_neon_vld1_3_4_regs): Likewise.
17341 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17342 (cortex_a15_neon_vld2_4_regs): Likewise.
17343 (cortex_a15_neon_vld3_vld4): Likewise.
17344 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17345 (cortex_a15_neon_vst1_3_4_regs): Likewise.
17346 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
17347 (cortex_a15_neon_vst3_vst4): Likewise.
17348 (cortex_a15_neon_vld1_vld2_lane): Likewise.
17349 (cortex_a15_neon_vld3_vld4_lane" 10
17350 (cortex_a15_neon_vst1_vst2_lane): Likewise.
17351 (cortex_a15_neon_vst3_vst4_lane): Likewise.
17352 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
17353 (cortex_a15_neon_ldm_2): Likewise.0
17354 (cortex_a15_neon_stm_2): Likewise.
17355 (cortex_a15_neon_mcr): Likewise.
17356 (cortex_a15_neon_mcr_2_mcrr): Likewise.
17357 (cortex_a15_neon_mrc): Likewise.
17358 (cortex_a15_neon_mrrc): Likewise.
17359 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17361 (cortex_a15_alu_shift): Likewise.
17362 (cortex_a15_alu_shift_reg): Likewise.
17363 (cortex_a15_mult32): Likewise.
17364 (cortex_a15_mult64): Likewise.
17365 (cortex_a15_block): Likewise.
17366 (cortex_a15_branch): Likewise.
17367 (cortex_a15_load1): Likewise.
17368 (cortex_a15_load3): Likewise.
17369 (cortex_a15_store1): Likewise.
17370 (cortex_a15_store3): Likewise.
17371 (cortex_a15_call): Likewise.
17372 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17373 (cortex_a5_f2r): Likewise.
17374 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17376 (cortex_a53_f2r): Likewise.
17377 * config/arm/cortex-a7.md
17378 (cortex_a7_branch): Update for attribute change.
17379 (cortex_a7_call): Likewise.
17380 (cortex_a7_alu_imm): Likewise.
17381 (cortex_a7_alu_reg): Likewise.
17382 (cortex_a7_alu_shift): Likewise.
17383 (cortex_a7_mul): Likewise.
17384 (cortex_a7_load1): Likewise.
17385 (cortex_a7_store1): Likewise.
17386 (cortex_a7_load2): Likewise.
17387 (cortex_a7_store2): Likewise.
17388 (cortex_a7_load3): Likewise.
17389 (cortex_a7_store3): Likewise.
17390 (cortex_a7_load4): Likewise.
17391 (cortex_a7_store4): Likewise.
17392 (cortex_a7_fpalu): Likewise.
17393 (cortex_a7_fconst): Likewise.
17394 (cortex_a7_fpmuls): Likewise.
17395 (cortex_a7_neon_mul): Likewise.
17396 (cortex_a7_fpmacs): Likewise.
17397 (cortex_a7_neon_mla: Likewise.
17398 (cortex_a7_fpmuld: Likewise.
17399 (cortex_a7_fpmacd: Likewise.
17400 (cortex_a7_fpfmad: Likewise.
17401 (cortex_a7_fdivs: Likewise.
17402 (cortex_a7_fdivd: Likewise.
17403 (cortex_a7_r2f: Likewise.
17404 (cortex_a7_f2r: Likewise.
17405 (cortex_a7_f_flags: Likewise.
17406 (cortex_a7_f_loads: Likewise.
17407 (cortex_a7_f_loadd: Likewise.
17408 (cortex_a7_f_stores: Likewise.
17409 (cortex_a7_f_stored: Likewise.
17410 (cortex_a7_neon): Likewise.
17411 * config/arm/cortex-a8-neon.md
17412 (cortex_a8_neon_mrc): Update for attribute change.
17413 (cortex_a8_neon_mrrc): Likewise.
17414 (cortex_a8_neon_int_1): Likewise.
17415 (cortex_a8_neon_int_2): Likewise.
17416 (cortex_a8_neon_int_3): Likewise.
17417 (cortex_a8_neon_int_4): Likewise.
17418 (cortex_a8_neon_int_5): Likewise.
17419 (cortex_a8_neon_vqneg_vqabs): Likewise.
17420 (cortex_a8_neon_vmov): Likewise.
17421 (cortex_a8_neon_vaba): Likewise.
17422 (cortex_a8_neon_vaba_qqq): Likewise.
17423 (cortex_a8_neon_vsma): Likewise.
17424 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17425 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17426 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17427 long_scalar): Likewise.
17428 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17429 (cortex_a8_neon_mla_qqq_8_16): Likewise.
17430 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17431 long_scalar_qdd_64_32_long): Likewise.
17432 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17433 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17434 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17435 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17436 (cortex_a8_neon_shift_1): Likewise.
17437 (cortex_a8_neon_shift_2): Likewise.
17438 (cortex_a8_neon_shift_3): Likewise.
17439 (cortex_a8_neon_vshl_ddd): Likewise.
17440 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17441 (cortex_a8_neon_vsra_vrsra): Likewise.
17442 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17443 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17444 (cortex_a8_neon_fp_vsum): Likewise.
17445 (cortex_a8_neon_fp_vmul_ddd): Likewise.
17446 (cortex_a8_neon_fp_vmul_qqd): Likewise.
17447 (cortex_a8_neon_fp_vmla_ddd): Likewise.
17448 (cortex_a8_neon_fp_vmla_qqq): Likewise.
17449 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17450 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17451 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17452 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17453 (cortex_a8_neon_bp_simple): Likewise.
17454 (cortex_a8_neon_bp_2cycle): Likewise.
17455 (cortex_a8_neon_bp_3cycle): Likewise.
17456 (cortex_a8_neon_ldr): Likewise.
17457 (cortex_a8_neon_str): Likewise.
17458 (cortex_a8_neon_vld1_1_2_regs): Likewise.
17459 (cortex_a8_neon_vld1_3_4_regs): Likewise.
17460 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17461 (cortex_a8_neon_vld2_4_regs): Likewise.
17462 (cortex_a8_neon_vld3_vld4): Likewise.
17463 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17464 (cortex_a8_neon_vst1_3_4_regs): Likewise.
17465 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17466 (cortex_a8_neon_vst3_vst4): Likewise.
17467 (cortex_a8_neon_vld1_vld2_lane): Likewise.
17468 (cortex_a8_neon_vld3_vld4_lane): Likewise.
17469 (cortex_a8_neon_vst1_vst2_lane): Likewise.
17470 (cortex_a8_neon_vst3_vst4_lane): Likewise.
17471 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17472 (cortex_a8_neon_mcr): Likewise.
17473 (cortex_a8_neon_mcr_2_mcrr): Likewise.
17474 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17475 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17477 (ca9_neon_mrrc): Likewise.
17478 (cortex_a9_neon_int_1): Likewise.
17479 (cortex_a9_neon_int_2): Likewise.
17480 (cortex_a9_neon_int_3): Likewise.
17481 (cortex_a9_neon_int_4): Likewise.
17482 (cortex_a9_neon_int_5): Likewise.
17483 (cortex_a9_neon_vqneg_vqabs): Likewise.
17484 (cortex_a9_neon_vmov): Likewise.
17485 (cortex_a9_neon_vaba): Likewise.
17486 (cortex_a9_neon_vaba_qqq): Likewise.
17487 (cortex_a9_neon_vsma): Likewise.
17488 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17489 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17490 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17491 long_scalar): Likewise.
17492 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17493 (cortex_a9_neon_mla_qqq_8_16): Likewise.
17494 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17495 long_scalar_qdd_64_32_long): Likewise.
17496 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17497 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17498 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17499 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17500 (cortex_a9_neon_shift_1): Likewise.
17501 (cortex_a9_neon_shift_2): Likewise.
17502 (cortex_a9_neon_shift_3): Likewise.
17503 (cortex_a9_neon_vshl_ddd): Likewise.
17504 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17505 (cortex_a9_neon_vsra_vrsra): Likewise.
17506 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17507 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17508 (cortex_a9_neon_fp_vsum): Likewise.
17509 (cortex_a9_neon_fp_vmul_ddd): Likewise.
17510 (cortex_a9_neon_fp_vmul_qqd): Likewise.
17511 (cortex_a9_neon_fp_vmla_ddd): Likewise.
17512 (cortex_a9_neon_fp_vmla_qqq): Likewise.
17513 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17514 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17515 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17516 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17517 (cortex_a9_neon_bp_simple): Likewise.
17518 (cortex_a9_neon_bp_2cycle): Likewise.
17519 (cortex_a9_neon_bp_3cycle): Likewise.
17520 (cortex_a9_neon_ldr): Likewise.
17521 (cortex_a9_neon_str): Likewise.
17522 (cortex_a9_neon_vld1_1_2_regs): Likewise.
17523 (cortex_a9_neon_vld1_3_4_regs): Likewise.
17524 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17525 (cortex_a9_neon_vld2_4_regs): Likewise.
17526 (cortex_a9_neon_vld3_vld4): Likewise.
17527 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17528 (cortex_a9_neon_vst1_3_4_regs): Likewise.
17529 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17530 (cortex_a9_neon_vst3_vst4): Likewise.
17531 (cortex_a9_neon_vld1_vld2_lane): Likewise.
17532 (cortex_a9_neon_vld3_vld4_lane): Likewise.
17533 (cortex_a9_neon_vst1_vst2_lane): Likewise.
17534 (cortex_a9_neon_vst3_vst4_lane): Likewise.
17535 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17536 (cortex_a9_neon_mcr): Likewise.
17537 (cortex_a9_neon_mcr_2_mcrr): Likewise.
17538 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17539 (cortex_a9_fps): Likewise.
17540 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17542 (cortex_m4_fmuls): Likewise.
17543 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17545 (cortex_r4_mrc): Likewise.
17546 * config/arm/iterators.md: Update comment referring to neon_type.
17547 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17548 (iwmmxt_movsi_insn): Likewise.
17549 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17551 (pj4_core_to_vfp): Likewise.
17552 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17554 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17555 (vfp_fstore): Likewise.
17556 * doc/md.texi: Change references to neon_type to refer to type.
17558 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17560 * tree.h (DECL_BUILT_IN): Fix typo in comment.
17562 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
17564 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17565 lglobl if not weak.
17567 2013-09-04 Easwaran Raman <eraman@google.com>
17569 PR middle-end/57370
17570 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17571 (build_and_add_sum): Use it.
17572 (appears_later_in_bb): Simplify code.
17574 2013-09-04 Teresa Johnson <tejohnson@google.com>
17576 * dumpfile.c (dump_finish): Don't close stderr/stdout.
17578 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
17580 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17582 2013-09-04 Jan Hubicka <jh@suse.cz>
17584 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17585 * ipa-devirt.c: Include diganostic.h
17586 (odr_type_d): Add types and types_set.
17587 (hash_type_name): Work for types with vtables during LTO.
17588 (odr_hasher::remove): Fix comment; destroy types_set.
17589 (add_type_duplicate): New function,
17590 (get_odr_type): Use it.
17591 (dump_type_inheritance_graph): Dump type duplicates.
17592 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17594 * tree.c (types_same_for_odr): Give exact answers on types with
17597 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17599 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17600 explaining their differences.
17602 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17604 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17606 2013-09-03 Jeff Law <law@redhat.com>
17608 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17609 when not threading through a joiner block. Pass joiner/no joiner
17610 state to register_jump_thread.
17611 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17612 state from argument rather than implying on path length.
17613 Dump the entire jump thread path into debugging dump.
17614 * tree-flow.h (register_jump_thread): Update prototype.
17616 2013-08-29 Xinliang David Li <davidxl@google.com>
17618 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17619 Remove a trivial gcc_assert.
17621 2013-08-29 Xinliang David Li <davidxl@google.com>
17623 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17624 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17625 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17626 Delay base decl alignment adjustment.
17627 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17628 * tree-vectorizer.h: New data structure.
17629 (set_dr_misalignment): New function.
17630 (dr_misalignment): Ditto.
17631 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17632 (vectorizable_load): Ditto.
17633 (ensure_base_align): New function.
17634 (vectorize_loops): Add dbg_cnt support.
17635 (execute_vect_slp): Ditto.
17636 * dbgcnt.def: New debug counter.
17637 * Makefile: New dependency.
17639 2013-09-03 Meador Inge <meadori@codesourcery.com>
17643 2013-08-30 Meador Inge <meadori@codesourcery.com>
17645 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17647 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17649 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17650 function descriptor.
17652 2013-09-03 Richard Biener <rguenther@suse.de>
17654 * tree-affine.c (add_elt_to_tree): Fix association issue,
17655 avoid useless converts and make sure to always return a
17656 properly typed result.
17658 2013-09-03 Richard Biener <rguenther@suse.de>
17660 PR middle-end/57656
17661 * fold-const.c (negate_expr_p): Fix division case.
17662 (negate_expr): Likewise.
17664 2013-09-03 Richard Biener <rguenther@suse.de>
17667 * tree-streamer-out.c: Include tm.h.
17668 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17670 2013-09-03 Jan Hubicka <jh@suse.cz>
17672 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17674 2013-09-03 Alan Modra <amodra@gmail.com>
17676 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17677 multilibs to big-endian target and vice versa.
17678 * config/rs6000/t-linux64: Use := assignment on all vars.
17679 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17680 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17681 * config/rs6000/t-linux64le: New file.
17682 * config/rs6000/t-linux64bele: New file.
17683 * config/rs6000/t-linux64lebe: New file.
17685 2013-09-02 Jan Hubicka <jh@suse.cz>
17687 * ipa-inline-transform.c (inline_transform): Do not
17688 optimize_inline_calls when not optimizing.
17690 2013-09-02 Jan Hubicka <jh@suse.cz>
17692 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17693 duplicated nodes for assembler names.
17694 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17695 hard registers from assembler name hash.
17697 2013-09-02 Jan Hubicka <jh@suse.cz>
17699 * ipa-split.c (execute_split_functions): Split externally visible
17700 functions called once.
17702 2013-09-02 Martin Jambor <mjambor@suse.cz>
17705 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17706 linked list. When finding the correct duplicate, also consider also
17707 the caller in additon to its inlined_to node.
17709 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17711 * config/aarch64/aarch64-simd-builtins.def
17712 (dup_lane_scalar): Remove.
17713 * config/aarch64/aarch64-simd.md
17714 (aarch64_simd_dup): Add 'w->w' alternative.
17715 (aarch64_dup_lane<mode>): Allow for VALL.
17716 (aarch64_dup_lane_scalar<mode>): Remove.
17717 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17718 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17719 (aarch64_get_lane_unsigned<mode>): Likewise.
17720 (aarch64_get_lane<mode>): Likewise.
17721 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17722 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17723 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17724 (VCON): Change container of V2SF.
17725 (vswap_width_name): Likewise.
17726 * config/aarch64/arm_neon.h
17727 (__aarch64_vdup_lane_any): New.
17728 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17729 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17730 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17732 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17734 PR middle-end/56382
17735 * expr.c (emit_move_complex): Do not move complex FP values as parts if
17736 the source or the destination is a single hard register.
17738 2013-09-02 Richard Biener <rguenther@suse.de>
17740 PR middle-end/57511
17741 * tree-scalar-evolution.c (instantiate_scev_name): Allow
17744 2013-09-02 Richard Biener <rguenther@suse.de>
17746 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17747 arithmetic to sizetype.
17749 2013-09-02 Bin Cheng <bin.cheng@arm.com>
17751 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17752 Find auto-increment use both before and after candidate.
17754 2013-09-02 Marek Polacek <polacek@redhat.com>
17756 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17758 2013-09-01 Jan Hubicka <jh@suse.cz>
17760 * Makefile.in: Add ipa-profile.o
17761 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17762 * cgraph.c (struct cgraph_propagate_frequency_data,
17763 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17764 ipa-profile.c; replace cgraph_ by ipa_ prefix.
17765 * cgraph.h (cgraph_propagate_frequency): Remove.
17766 * ipa-inline-analysis.c: Include ipa-utils.h;
17767 drop duplicated cfgloop.h.
17768 (inline_update_callee_summaries): Update.
17769 * ipa-profile.c: New file.
17770 * ipa-utils.h (ipa_propagate_frequency): Declare.
17771 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17772 data-streamer.h, value-prof.h.
17773 (symtab_remove_unreachable_nodes): Update profile.
17774 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17775 account_time_size, cmp_counts, dump_histogram,
17776 ipa_profile_generate_summary, ipa_profile_write_summary,
17777 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17778 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17779 Move to ipa-profile.c.
17781 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
17783 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17785 2013-09-01 Jan Hubicka <jh@suse.cz>
17787 * common.opt (fdevirtualize-speculatively): New function.
17788 * invoke.texi (fdevirtualize-speculatively): Document.
17789 * ipa-devirt.c: Include ipa-inline.h
17790 (likely_target_p): New function.
17791 (ipa_devirt): New function.
17792 (gate_ipa_devirt): New function.
17793 (pass_data_ipa_devirt): New static var.
17794 (pass_ipa_devirt): Likewise.
17795 (make_pass_ipa_devirt): New function.
17796 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17797 (common_handle_option): Disable devirtualization when
17798 value range profiling is available.
17799 * passes.def (pass_ipa_devirt): Add.
17800 * timever.def (TV_IPA_DEVIRT): New timevar.
17801 * tree-pass.h (make_pass_ipa_devirt):
17803 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17805 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17806 include sanitize(undefined).
17808 2013-08-31 Diego Novillo <dnovillo@google.com>
17810 * Makefile.in (TREE_CORE_H): Define.
17812 (GTFILES): Add tree-core.h.
17813 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17815 * tree-core.h: New file.
17816 Move all data structures, enum, typedefs, global
17817 declarations and constants from ...
17818 * tree.h: ... here.
17820 2013-08-31 Jan Hubicka <jh@suse.cz>
17822 * bulitins.c (expand_builtin): Do not early exit for gcov
17823 instrumented functions.
17825 2013-08-31 Marek Polacek <polacek@redhat.com>
17827 * ubsan.c: Include tm_p.h.
17829 2013-08-31 Jan Hubicka <jh@suse.cz>
17831 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17834 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17835 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17836 * tree-cfg.c (verify_gimple_label): ... here.
17837 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17838 (ipa_merge_profiles): New function.
17839 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17840 (lto_input_function_body): Likewise.
17841 * ipa-utils.h (ipa_merge_profiles): Declare.
17842 * lto-streamer.h (lto_input_function_body): Update prototype.
17843 (emit_label_in_global_context_p): Remove.
17844 * lto-symtab.c: Include ipa-utils.h
17845 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17847 2013-08-31 Jan Hubicka <jh@suse.cz>
17849 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17851 2013-08-31 Jan Hubicka <jh@suse.cz>
17853 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17855 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17857 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17858 "cmp" RTX before signed_comparison_operator check to account
17859 for "code" changes.
17861 2013-08-30 Jan Hubicka <jh@suse.cz>
17863 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17864 (detect_type_change_1): Rename to ...
17865 (detect_type_change): ... this one; early return on non-polymorphic
17867 (detect_type_change_ssa): Add comp_type parameter; update
17868 use of detect_type_change.
17869 (compute_complex_assign_jump_func): Add param_type parameter;
17870 update use of detect_type_change_ssa.
17871 (compute_complex_ancestor_jump_func): Likewise.
17872 (ipa_get_callee_param_type): New function.
17873 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17874 update calls to the jump function computation functions.
17876 2013-08-30 Teresa Johnson <tejohnson@google.com>
17877 Steven Bosscher <steven@gcc.gnu.org>
17879 * cfgrtl.c (fixup_new_cold_bb): New routine.
17880 (commit_edge_insertions): Invoke fixup_partitions.
17881 (find_partition_fixes): New routine.
17882 (fixup_partitions): Ditto.
17883 (verify_hot_cold_block_grouping): Update comments.
17884 (rtl_verify_edges): Invoke find_partition_fixes.
17885 (rtl_verify_bb_pointers): Update comments.
17886 (rtl_verify_bb_layout): Ditto.
17887 * basic-block.h (probably_never_executed_edge_p): Declare.
17888 (fixup_partitions): Ditto.
17889 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17890 * bb-reorder.c (sanitize_hot_paths): New function.
17891 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17892 sanitize_hot_paths.
17893 * predict.c (probably_never_executed_edge_p): New routine.
17894 * cfg.c (check_bb_profile): Add partition insanity warnings.
17896 2013-08-30 Meador Inge <meadori@codesourcery.com>
17898 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17900 2013-08-30 Marek Polacek <polacek@redhat.com>
17902 * Makefile.in (ubsan.o): Add.
17903 (c-family/c-ubsan.o): Add.
17904 (builtins.o): Add ubsan.h dependency.
17905 * ubsan.h: New file.
17906 * ubsan.c: New file.
17907 * common.opt: Add -fsanitize=undefined option.
17908 (flag_sanitize): Add variable.
17909 (fsanitize=): Add option. Add Driver.
17910 (fsanitize=thread): Remove option.
17911 (fsanitize=address): Likewise.
17912 (static-libubsan): New option.
17913 * doc/invoke.texi: Document the new flag and -static-libubsan.
17914 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17915 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17916 * builtin-attrs.def (ATTR_COLD): Define.
17917 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17918 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17919 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17920 * flag-types.h (sanitize_code): New enum.
17921 * opts.c (common_handle_option): Parse command line arguments
17922 of -fsanitize=. Add -fsanitize=unreachable option.
17923 * varasm.c (get_variable_section): Adjust.
17924 (assemble_noswitch_variable): Likewise.
17925 (assemble_variable): Likewise.
17926 (output_constant_def_contents): Likewise.
17927 (categorize_decl_for_section): Likewise.
17928 (place_block_symbol): Likewise.
17929 (output_object_block): Likewise.
17930 * builtins.def: Likewise.
17931 * toplev.c (compile_file): Likewise.
17932 (process_options): Likewise.
17933 * cppbuiltin.c: Likewise.
17934 * tsan.c (tsan_pass): Likewise.
17935 (tsan_gate): Likewise.
17936 (tsan_gate_O0): Likewise.
17937 * cfgexpand.c (partition_stack_vars): Likewise.
17938 (expand_stack_vars): Likewise.
17939 (defer_stack_allocation): Likewise.
17940 (expand_used_vars): Likewise.
17941 * cfgcleanup.c (old_insns_match_p): Likewise.
17942 * asan.c (asan_finish_file): Likewise.
17943 (asan_instrument): Likewise.
17944 (gate_asan): Likewise.
17945 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17946 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17947 (asan_global_struct): Use pointer_sized_int_node instead
17948 calling build_nonstandard_integer_type.
17949 (initialize_sanitizer_builtins): Likewise.
17950 (asan_finish_file): Likewise.
17951 * gcc.c: Document %{%:function(args):X}.
17952 (static_spec_functions): Add sanitize.
17953 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17954 store funcval != NULL there.
17955 (do_spec_1): Adjust handle_spec_function caller.
17956 (handle_braces): Allow %:function(args) as condition.
17957 (sanitize_spec_function): New function.
17958 (ADD_STATIC_LIBUBSAN_LIBS): Define.
17959 (LIBUBSAN_SPEC): Likewise.
17960 (LIBUBSAN_EARLY_SPEC): Likewise.
17961 (SANITIZER_SPEC): Handle libubsan.
17962 (SANITIZER_EARLY_SPEC): Likewise.
17963 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17964 instead of fsanitize=address.
17965 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17966 instead of fsanitize=address*.
17967 * builtins.c: Include ubsan.h.
17968 (fold_builtin_0): Instrument __builtin_unreachable.
17969 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17970 instead of flag_asan.
17971 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17972 (pointer_sized_int_node): Define.
17973 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17975 2013-08-30 Mike Stump <mikestump@comcast.net>
17977 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17980 2013-08-29 Jan Hubicka <jh@suse.cz>
17982 * cgraph.c (cgraph_function_body_availability): Handle weakref
17984 * passes.def: Remove pass_fixup_cfg.
17985 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17986 track when we need to remove functions.
17987 (gate_ipa_inline): Execute inlining always; add comment why.
17988 (pass_data_ipa_inline): Remove TODO_remove_functions.
17989 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17990 do not produce summaries.
17991 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17992 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17993 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17994 constant pool and vtable.
17996 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
17998 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17999 New arm_neon.h's internal macros to specify 64-bit constants.
18000 Avoid using stdint.h's macros.
18002 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
18004 * recog.c (verify_changes): Verify that changes[i].old is non-zero
18005 before applying REG_P.
18007 2013-08-30 Jakub Jelinek <jakub@redhat.com>
18009 PR tree-optimization/58277
18010 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
18011 after seeing too many stmts with vdef in between dombb and current
18012 bb, invalidate everything.
18014 2013-08-30 Richard Biener <rguenther@suse.de>
18016 * fold-const.c (fold_single_bit_test): Fix overflow test.
18018 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
18020 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
18021 and which can live in a register, always retrieve the value on entry.
18022 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
18023 passed by invisible reference specially.
18024 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
18025 (vt_add_function_parameter): Correctly deal with a parameter passed by
18026 invisible reference.
18028 2013-08-30 Jan Hubicka <jh@suse.cz>
18030 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
18032 2013-08-30 Richard Biener <rguenther@suse.de>
18034 PR tree-optimization/58228
18035 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
18036 allow invariant loads in nested loop vectorization.
18038 2013-08-30 Richard Biener <rguenther@suse.de>
18040 PR tree-optimization/58223
18041 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
18042 (has_anti_or_output_dependence): ... this and adjust to also
18043 look for output dependences.
18044 (mark_nodes_having_upstream_mem_writes): Adjust.
18045 (rdg_flag_uses): Likewise.
18047 2013-08-30 Richard Biener <rguenther@suse.de>
18049 PR tree-optimization/58010
18050 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18051 assert that we have a loop-closed PHI.
18053 2013-08-29 Jan Hubicka <jh@suse.cz>
18055 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
18056 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
18057 * lto-section-in.c (lto_free_function_in_decl_state): New function.
18058 (lto_free_function_in_decl_state_for_node): New function.
18060 2013-08-29 Xinliang David Li <davidxl@google.com>
18062 * loop-unroll.c (report_unroll_peel): Minor message change.
18063 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
18064 Emit alignment peeling message with default -fopt-info.
18065 (vect_loop_versioning): Emit loop version info message.
18066 * tree-vectorizer.c (vectorize_loops): Minor message change.
18067 (execute_vect_slp): Ditto.
18069 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
18071 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
18072 of the clone from the DECL_NAME of the original function.
18074 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
18076 * passes.c (register_pass): Add overload.
18077 * tree-pass.h (register_pass): Forward declare it. Add comment.
18079 2013-08-29 Jan Hubicka <jh@suse.cz>
18081 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
18082 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
18083 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
18084 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
18085 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
18086 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
18087 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
18088 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
18090 2013-08-29 Teresa Johnson <tejohnson@google.com>
18092 * dumpfile.c (dump_loc): Output column number.
18093 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
18094 * doc/invoke.texi: Document optall -fopt-info flag.
18095 * profile.c (read_profile_edge_counts): Use new dump framework.
18096 (compute_branch_probabilities): Ditto.
18097 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
18098 when pass not in any opt group.
18099 * pass_manager.h (pass_manager::get_pass_profile): New method.
18100 * value-prof.c (check_counter): Use new dump framework.
18101 (check_ic_target): Ditto.
18102 * coverage.c (get_coverage_counts): Ditto.
18103 (coverage_init): Setup new dump framework.
18105 2013-08-29 Richard Biener <rguenther@suse.de>
18107 PR tree-optimization/58246
18108 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
18109 handle the dominance check inside a basic-block.
18111 2013-08-29 Richard Biener <rguenther@suse.de>
18113 PR middle-end/57287
18114 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
18115 of default defs that appear in abnormal PHI nodes.
18117 2013-08-29 Richard Biener <rguenther@suse.de>
18119 PR tree-optimization/57685
18120 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
18121 single-use operands to avoid exponential complexity.
18123 2013-08-28 Dehao Chen <dehao@google.com>
18125 * ipa-inline.c (edge_badness): Fix integer underflow.
18127 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
18129 * gtm-builtins.def (_ITM_free): Declare leaf.
18131 2013-08-28 Jakub Jelinek <jakub@redhat.com>
18134 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
18135 (*tls_local_dynamic_base_64_largepic): Likewise.
18136 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
18137 Remove predicate from call operand.
18138 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
18139 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
18141 2013-08-28 Jeff Law <law@redhat.com>
18143 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
18144 checks for the number of predecessors and successors allowed.
18145 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
18146 which require copying a joiner block if there is a request which
18147 is a subpath that requires no joiner block copying.
18149 2013-08-28 Jan Hubicka <jh@suse.cz>
18151 * lto-streamer-out.c (DFS_write_tree_body): Drop
18152 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
18153 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
18154 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
18155 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
18156 Do not read DECL_ERROR_ISSUED.
18157 (unpack_ts_decl_with_vis_value_fields): Do not read
18159 (lto_input_ts_binfo_tree_pointers): Do not read
18160 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
18161 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
18162 write DECL_ERROR_ISSUED..
18163 (pack_ts_decl_with_vis_value_fields): Do not write
18165 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
18166 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
18167 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
18168 * tree.h (tree_decl_common): Update comment.
18169 (DECL_ERROR_ISSUED): Remove.
18171 2013-08-28 Jakub Jelinek <jakub@redhat.com>
18173 PR middle-end/58257
18174 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
18176 2013-08-28 Jan Hubicka <jh@suse.cz>
18178 * builtins.def (free): Declare leaf.
18180 2013-08-27 David Malcolm <dmalcolm@redhat.com>
18182 * gdbhooks.py: New.
18183 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
18184 * configure: Regenerate.
18186 2013-08-27 Martin Jambor <mjambor@suse.cz>
18188 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
18189 (ipa_ancestor_jf_data): Likewise.
18190 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
18191 (ipa_get_jf_pass_through_type_preserved): New function.
18192 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
18193 (ipa_get_jf_ancestor_type_preserved): New function.
18194 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
18195 (ipa_get_jf_ancestor_result): Likewise.
18196 (propagate_vals_accross_pass_through): Use
18197 ipa_get_jf_pass_through_result to do all the value mappings.
18198 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
18199 type_preserved flag.
18200 (ipa_set_jf_cst_copy): New function.
18201 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
18202 (ipa_set_jf_arith_pass_through): Likewise.
18203 (ipa_set_ancestor_jf): Likewise.
18204 (compute_complex_assign_jump_func): Set type_preserved instead of
18206 (ipa_compute_jump_functions_for_edge): Likewise.
18207 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
18208 (update_jump_functions_after_inlining): Update type_preserved.
18209 Explicitely create jump functions when combining one with pass_through.
18210 (ipa_write_jump_function): Stream the type_preserved flags.
18211 (ipa_read_jump_function): Likewise.
18213 2013-08-27 Jakub Jelinek <jakub@redhat.com>
18214 Aldy Hernandez <aldyh@redhat.com>
18216 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
18217 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
18218 * function.h (struct function): Add has_force_vect_loops and
18220 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
18221 * gimple.c (gimple_build_omp_critical): Add KIND argument and
18223 * gimple.def: Update CLAUSES comments.
18224 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
18225 (gimple_build_omp_for): Add argument to prototype.
18226 (gimple_omp_for_kind): New.
18227 (gimple_omp_for_set_kind): New.
18228 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
18229 GOVD_DATA_SHARE_CLASS.
18230 (enum omp_region_type): Add ORT_SIMD.
18231 (gimple_add_tmp_var): Handle ORT_SIMD.
18232 (gimplify_var_or_parm_decl): Same.
18233 (is_gimple_stmt): Same.
18234 (omp_firstprivatize_variable): Same.
18235 (omp_add_variable): Only use splay_tree_insert if lookup failed.
18236 (omp_notice_variable): Handle ORT_SIMD.
18237 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
18238 (omp_check_private): Handle ORT_SIMD.
18239 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18240 OMP_CLAUSE_SAFELEN.
18241 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
18242 Handle OMP_CLAUSE_LASTPRIVATE.
18243 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18244 OMP_CLAUSE_SAFELEN.
18245 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
18246 (gimplify_expr): Handle OMP_SIMD.
18247 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
18248 (expand_GOMP_SIMD_VF): New.
18249 (expand_GOMP_SIMD_LAST_LANE): New.
18250 * internal-fn.def (GOMP_SIMD_LANE): New.
18251 (GOMP_SIMD_VF): New.
18252 (GOMP_SIMD_LAST_LANE): New.
18253 * omp-low.c: Include target.h.
18254 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
18255 OMP_CLAUSE_SAFELEN.
18256 (check_omp_nesting_restrictions): Same.
18258 (lower_rec_simd_input_clauses): New.
18259 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
18261 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
18262 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
18263 (expand_omp_build_assign): New.
18264 (expand_omp_for_init_counts): New.
18265 (expand_omp_for_init_vars): New.
18266 (extract_omp_for_update_vars): New.
18267 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
18268 and rewrite accordingly.
18269 (expand_omp_simd): New.
18270 (expand_omp_for): Use expand_omp_simd.
18271 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
18272 (lower_omp_for): Do not lower the body.
18273 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
18274 in their own loops.
18275 * tree-flow.h (find_omp_clause): Remove prototype.
18276 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
18277 forcing vectorization of the loop, or if flag_tree_vectorize.
18278 (gate_tree_if_conversion): Similarly.
18279 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
18280 gimple_build_omp_for.
18281 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
18282 * tree-parloops (create_parallel_loop): Pass kind argument to
18283 gimple_build_omp_for.
18284 * tree-pretty-print.c (dump_omp_clause): Add cases for
18285 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
18286 OMP_CLAUSE__SIMDUID_.
18287 (dump_generic_node): Handle OMP_SIMD.
18288 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
18289 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
18290 unroll OMP_SIMD loops here.
18291 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
18292 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
18294 (vect_analyze_data_refs): Handle simd loops.
18295 * tree-vect-loop.c (vectorizable_live_operation): Handle
18297 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
18298 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
18299 (vectorizable_load): Same.
18300 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
18301 (struct simduid_to_vf): New.
18302 (simduid_to_vf::hash): New.
18303 (simduid_to-vf::equal): New.
18304 (struct simd_array_to_simduid): New.
18305 (simd_array_to_simduid::hash): New.
18306 (simd_array_to_simduid::equal): New.
18307 (adjust_simduid_builtins): New.
18308 (struct note_simd_array_uses_struct): New.
18309 (note_simd_array_uses_cb): New.
18310 (note_simd_array_uses): New.
18311 (vectorize_loops): Handle simd hints and adjust simd builtins
18313 * tree-vectorizer.h (struct _stmt_vec_info): Add
18314 simd_lane_access_p field.
18315 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
18316 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
18317 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
18318 (omp_clause_code_name): Same.
18319 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
18320 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
18321 * tree.def (OMP_SIMD): New entry.
18322 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
18323 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
18324 (OMP_CLAUSE_DECL): Adjust range for new clauses.
18325 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
18326 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
18327 (OMP_CLAUSE_LINEAR_STEP): New.
18328 (OMP_CLAUSE_SAFELEN_EXPR): New.
18329 (OMP_CLAUSE__SIMDUID__DECL): New.
18330 (find_omp_clause): New prototype.
18332 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
18334 * config/i386/driver-i386.c (host_detect_local_cpu): Update
18335 Haswell processor detection.
18337 2013-08-27 Christian Widmer <shadow@umbrox.de>
18340 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
18341 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
18342 AVX2 capable processors.
18344 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
18346 * config/aarch64/arm_neon.h: Replace all inline asm implementations
18347 of vget_low_* with implementations in terms of other intrinsics.
18349 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
18351 PR middle-end/57219
18352 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
18353 values to -1, 0 and 1.
18355 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
18357 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
18358 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
18359 (<optab><mode>3_insn): Remove.
18360 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
18361 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18362 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18363 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
18364 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
18365 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
18366 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
18367 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
18368 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
18369 (ror<mode>3_insn): Likewise.
18370 * config/aarch64/predicates.md (aarch64_simd_register): New.
18372 2013-08-27 Richard Biener <rguenther@suse.de>
18374 PR tree-optimization/57521
18375 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18376 one edge is non-critical.
18377 (find_phi_replacement_condition): Make sure to use a non-critical
18378 edge. Cleanup and remove old bug workarounds.
18379 (bb_postdominates_preds): Remove.
18380 (if_convertible_loop_p_1): Do not compute post-dominators.
18381 (combine_blocks): Do not free post-dominators.
18382 (main_tree_if_conversion): Likewise.
18383 (pass_data_if_conversion): Add TODO_verify_ssa.
18385 2013-08-27 DJ Delorie <dj@redhat.com>
18387 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18389 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
18391 * function.c (assign_parm_find_data_types): Set passed_mode and
18392 nominal_mode to the TYPE_MODE of nominal_type for the built
18393 pointer type in case of the struct-pass-by-reference.
18395 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18397 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18398 (UINT16_TYPE): Change default to "unsigned int".
18400 * config/avr/avr.opt (mfract-convert-truncate): New option.
18401 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18402 is set, round negative fractional integers according to n1169
18403 when converting to integer types.
18405 2013-08-26 Jan Hubicka <jh@suse.cz>
18407 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18408 methods can not be called indirectly when their address is not taken.
18410 2013-08-26 Jan Hubicka <jh@suse.cz>
18412 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18415 2013-08-26 Jan Hubicka <jh@suse.cz>
18417 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18420 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18422 * reload.c (find_valid_class): Allow classes that do not include
18423 FIRST_PSEUDO_REGISTER - 1.
18425 2013-08-26 Jan Hubicka <jh@suse.cz>
18427 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18428 fix edge count/frequency when speculation failed; fix type check
18429 for the direct call.
18431 2013-08-26 Jan Hubicka <jh@suse.cz>
18433 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18435 2013-08-26 Jan Hubicka <jh@suse.cz>
18437 * ipa-inline-transform.c (inline_transform): Be ready for basic block
18438 to be changed by edge redirection.
18440 2013-08-26 Jan Hubicka <jh@suse.cz>
18442 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18443 formating; add sanity check.
18444 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18445 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18446 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18447 (resolve_noninline_speculation): Update callee keys, too.
18449 2013-08-26 Jan Hubicka <jh@suse.cz>
18451 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18452 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18454 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18456 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18459 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
18461 * config/i386/i386.c (ix86_debug_options): Remove prototype.
18462 (x86_64_elf_select_section): Ditto.
18463 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18465 (ix86_pass_by_reference): Ditto.
18466 (output_set_got): Ditto.
18467 (ix86_unary_operator_ok): Ditto.
18468 (ix86_expand_builtin): Ditto.
18470 2013-08-23 Jan Hubicka <jh@suse.cz>
18472 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18474 2013-08-23 Jan Hubicka <jh@suse.cz>
18476 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18477 (tree_decl_with_vis): Add FINAL field.
18479 2013-08-23 Jeff Law <law@redhat.com>
18481 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18482 the debugging dump when the expression is fully redundant.
18484 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18486 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18487 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18488 * pretty-print.c (pp_formatted_text_data): Likewise.
18489 (pp_write_text_to_stream): Likewise.
18490 (pp_write_text_as_dot_label_to_stream): Likewise.
18491 (pp_append_r): Likewise.
18492 (pp_format): Likewise.
18493 (pp_flush): Likewise.
18494 (pp_clear_output_area): Likewise.
18495 (pp_append_text): Likewise.
18496 (pp_formatted_text): Likewise.
18497 (pp_remaining_character_count_for_line): Likewise.
18498 (pp_newline): Likewise.
18499 (pp_character): Likewise.
18500 (output_buffer::~output_buffer): Define.
18501 (pretty_printer::~pretty_printer): Destruct output buffer.
18502 * pretty-print.h (output_buffer::~output_buffer): Declare.
18503 (pretty_printer::~pretty_printer): Declare virtual.
18505 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
18508 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18509 HOST_WIDE_INT_M1U): New macros.
18510 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18511 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18512 unsigned -1 for lshift.
18513 * cse.c (cse_insn): Likewise.
18514 * double-int.c (rshift_double, lshift_double): Likewise.
18515 * builtins.c (fold_builtin_bitop): Likewise.
18516 * combine.c (force_to_mode): Likewise.
18517 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18518 * simplify-rtx.c (simplify_const_unary_operation,
18519 simplify_const_binary_operation): Likewise.
18520 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18521 check_va_list_escapes): Likewise.
18522 * rtlanal.c (nonzero_bits1): Likewise.
18523 * expmed.c (expand_smod_pow2): Likewise.
18524 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18526 2013-08-23 Jan Hubicka <jh@suse.cz>
18528 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18529 as having address taken.
18531 2013-08-23 Jan Hubicka <jh@suse.cz>
18533 * ipa-utils.h (method_class_type): Declare.
18534 * ipa-devirt.c (method_class_type): Export.
18536 * cgraphunit.c (analyze_functions): Do basic devirtualization;
18537 do not walk base classes of anonymous types.
18539 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
18541 PR rtl-optimization/58220
18542 PR regression/58221
18543 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18544 handle SEQUENCE insns properly.
18546 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18548 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
18550 (pp_newline_and_indent): Likewise.
18551 (pp_separate_with): Likewise.
18552 * pretty-print.c (pp_newline_and_flush): Define.
18553 (pp_newline_and_indent): Likewise.
18554 (pp_separate_with): Likewise.
18556 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18559 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18560 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18562 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
18564 * config/i386/predicates.md (ext_sse_reg_operand): New.
18565 * config/i386/i386.md (*movti_internal): Use
18566 predicate to determine if EVEX is needed.
18567 (*movsi_internal): Ditto.
18568 (*movdf_internal): Ditto.
18569 (*movsf_internal): Ditto.
18570 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18572 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18574 PR tree-optimization/58209
18575 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18576 (find_tail_calls): Give up for pointer result types if m is non-NULL.
18577 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18578 emit POINTER_PLUS_EXPR.
18579 (create_tailcall_accumulator): For pointer result type accumulate in
18582 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
18584 * configure.ac: Add backslashes missing from the last change.
18585 * configure: Regenerate.
18587 2013-08-22 Jan Hubicka <jh@susue.cz>
18589 * ipa.c (function_and_variable_visibility): First remember function
18590 was global and then make it local.
18592 2013-08-22 Julian Brown <julian@codesourcery.com>
18594 * configure.ac: Add aarch64 to list of arches which use "nop" in
18596 * configure: Regenerate.
18598 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18600 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18601 gnu_libc_has_function.
18602 * config/s390/tpf.h: Likewise.
18604 2013-08-22 Jan Hubicka <jh@susue.cz>
18606 * timevar.c (validate_phases): Add cast.
18608 2013-08-22 Jan Hubicka <jh@susue.cz>
18610 * timevar.c (validate_phases): Use size_t for memory.
18611 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18613 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18615 * pretty-print.h (output_buffer::output_buffer): Declare.
18616 (pretty_printer::pretty_printer): Likewise.
18617 (pp_construct): Remove.
18618 * pretty-print.c (output_buffer::output_buffer): Define.
18619 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18620 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18621 (print_gimple_expr): Likewise.
18622 (print_gimple_seq): Likewise.
18623 (gimple_dump_bb): Likewise.
18624 * sched-vis.c (dump_value_slim): Likewise.
18625 (dump_insn_slim): Likewise.
18626 (dump_rtl_slim): Likewise.
18627 (str_pattern_slim): Likewise.
18628 * tree-mudflap.c (mf_varname_tree): Likewise.
18629 * graph.c (print_graph_cfg): Likewise.
18630 (start_graph_dump): Likewise.
18631 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18633 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18634 pretty printer initialization.
18635 * coretypes.h (diagnostic_context): Remove superflous type alias
18637 (pretty_printer): Likewise. Declare directly as a class.
18638 (pretty_print_info): Remove declaration as class.
18639 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18640 and pp_clear_output_area.
18641 (asan_add_global): Likewise.
18643 2013-08-22 Jan Hubicka <jh@suse.cz>
18645 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18646 * ipa-utils.h (update_type_inheritance_graph): Declare.
18647 (possible_polymorphic_call_target_p): Declare.
18648 (possible_polymorphic_call_target_p): New.
18649 * ipa-devirt.c: Update toplevel comments.
18650 (cached_polymorphic_call_targets): Move up.
18651 (odr_type_d): Move ID down.
18652 (polymorphic_type_binfo_p): Update comment.
18653 (odr_hasher::remove): Likewise;
18654 (get_odr_type): Set anonymous_namespace.
18655 (dump_odr_type): Dump it.
18656 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18657 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18658 (record_binfo): Add comment.
18659 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18661 (devirt_node_removal_hook): Do not iCE when cache is freed.
18662 (possible_polymorphic_call_target_p): New predicate.
18663 (update_type_inheritance_graph): New function.
18665 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18666 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18667 Sergey Lega <sergey.s.lega@intel.com>
18668 Anna Tikhonova <anna.tikhonova@intel.com>
18669 Ilya Tocar <ilya.tocar@intel.com>
18670 Andrey Turetskiy <andrey.turetskiy@intel.com>
18671 Ilya Verbin <ilya.verbin@intel.com>
18672 Kirill Yukhin <kirill.yukhin@intel.com>
18673 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18675 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18676 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18677 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18678 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18679 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18680 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18681 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18682 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18683 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18684 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18685 OPT_mavx512pf, OPT_mavx512er cases.
18686 * config/i386/constraints.md (v): New constraint.
18687 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18688 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18689 (bit_AVX512CD): New.
18690 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18691 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18692 * config/i386/i386-c.c (ix86_target_macros_internal):
18693 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18695 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18696 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18697 * config/i386/i386.c (regclass_map, dbx_register_map)
18698 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18699 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18700 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18701 -mavx512pf options.
18702 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18703 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18704 -mavx512pf options. Fix formatting.
18705 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18706 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18707 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18708 -mavx512cd, -mavx512pf options.
18709 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18710 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18711 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18713 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18714 (ix86_set_reg_reg_cost): Ditto.
18715 (x86_order_regs_for_local_alloc): Ditto.
18716 (MAX_VECT_LEN): Extend to 64-byte.
18717 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18718 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18719 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18720 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18721 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18722 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18723 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18724 (SSE_REG_MODE_P): Support new modes.
18725 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18726 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18727 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18728 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18729 (REG_CLASS_CONTENTS): Add new registers.
18730 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18731 (EXT_REX_SSE_REGNO_P): New.
18732 (HI_REGISTER_NAMES): Add new registers.
18733 * config/i386/i386.md: Define constants for new registers.
18734 (mode): Add new 512-bit modes.
18735 (prefix): Support evex prefix.
18736 (isa): Support avx512f, noavx512f, fma_avx512f.
18737 (ssemodesuffix): Add new 512-bit modes.
18739 (*movxi_internal_avx512f): Ditto.
18740 (*movdi_internal): Replace constraint "x" with the new constraint "v".
18742 (*movsi_internal): Likewise.
18743 (*movdf_internal): Likewise.
18744 (*movsf_internal): Likewise.
18745 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18746 (<code><mode>3): Likewise.
18747 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18749 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18750 with the new constraint "v".
18751 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18753 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18754 with the new constraint "v".
18755 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18756 (<sse2>_storedqu<avxsizesuffix>): Likewise.
18757 (*<plusminus_insn><mode>3): Likewise.
18758 (<sse>_vm<plusminus_insn><mode>3): Likewise.
18759 (*mul<mode>3): Likewise.
18760 (<sse>_vmmul<mode>3): Likewise.
18761 (<sse>_div<mode>3): Likewise.
18762 (<sse>_vmdiv<mode>3): Likewise.
18763 (<sse>_sqrt<mode>2): Likewise.
18764 (<sse>_vmsqrt<mode>2): Likewise.
18765 (*<code><mode>3_finite): Likewise.
18766 (*<code><mode>3) <smaxmin>: Likewise.
18767 (<sse>_vm<code><mode>3): Likewise.
18768 (*<code><mode>3) <any_logic>: Likewise.
18769 (*fma_fmadd_<mode>): Likewise.
18770 (*fma_fmsub_<mode>): Likewise.
18771 (*fma_fnmadd_<mode>): Likewise.
18772 (*fma_fnmsub_<mode>): Likewise.
18773 (*fma_fmaddsub_<mode>): Likewise.
18774 (*fma_fmsubadd_<mode>): Likewise.
18775 (*fmai_fmadd_<mode>): Likewise.
18776 (*fmai_fmsub_<mode>): Likewise.
18777 (*fmai_fnmadd_<mode>): Likewise.
18778 (*fmai_fnmsub_<mode>): Likewise.
18779 (sse_cvtsi2ss): Likewise.
18780 (sse_cvtsi2ssq): Likewise.
18781 (sse_cvtss2si): Likewise.
18782 (sse_cvtss2si_2): Likewise.
18783 (sse_cvtss2siq): Likewise.
18784 (sse_cvtss2siq_2): Likewise.
18785 (sse_cvttss2si): Likewise.
18786 (sse_cvtss2siq_2): Likewise.
18787 (float<sseintvecmodelower><mode>2): Likewise.
18788 (sse2_cvtsd2si_2): Likewise.
18789 (sse2_cvtsd2siq_2): Likewise.
18790 (*<plusminus_insn><mode>3): Likewise.
18791 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18792 (*<sse4_1_avx2>_mul<mode>3): Likewise.
18793 (ashr<mode>3): Likewise.
18794 (<shift_insn><mode>3): Likewise.
18795 (avx2_<code><mode>3): Likewise.
18796 (*avx2_<code><mode>3): Likewise.
18797 (*andnot<mode>3): Likewise.
18798 (*<code><mode>3) <any_logic>: Likewise.
18799 (abs<mode>2): Likewise.
18800 (avx2_permvar<mode>): Likewise.
18801 (avx2_perm<mode>_1): Likewise.
18802 (*avx_vpermilp<mode>): Likewise.
18803 (avx_vpermilvar<mode>3): Likewise.
18804 (avx2_ashrv<mode>): Likewise.
18805 (avx2_<shift_insn>v<mode>): Likewise.
18806 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18808 * doc/rtl.texi: Document XImode.
18810 2013-08-21 Jeff Law <law@redhat.com>
18812 * tree-flow.h (register_jump_thread): Pass vector of edges
18813 instead of each important edge.
18814 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18815 thread path into a vector and pass that to register_jump_thread.
18816 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18817 passed in edge vector to the current 3-edge form.
18820 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18822 * dce.c (fini_dce): Call df_analyze again just in case
18823 delete_unmarked_insns removed anything.
18825 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18827 * reload.h (struct reg_equivs): Rename to ..
18828 (struct reg_equivs_s): .. this.
18830 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18832 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18834 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18836 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18838 2013-08-21 Jeff Law <law@redhat.com>
18840 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18841 simplify assignments too. If the RHS collapses to a singleton
18842 range, then return the value for the range.
18844 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18846 * config/i386/sse.md (V16): Rename to...
18848 (mov<mode>): Update iterator name.
18849 (*mov<mode>_internal): Ditto.
18850 (push<mode>1): Ditto.
18851 (movmisalign<mode>): Ditto.
18853 2013-08-20 Jan Hubicka <jh@suse.cz>
18856 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18857 entry for direct edges.
18858 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18860 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18862 Revert my last two changes, r201865 and r201864:
18865 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18867 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18868 instances can own GC refs.
18870 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18871 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18872 (gcc::context::gt_pch_nx): Likewise.
18873 (gcc::context::gt_pch_nx): Likewise.
18874 * ggc.h (gt_ggc_mx <T>): New.
18875 (gt_pch_nx_with_op <T>): New.
18876 (gt_pch_nx <T>): New.
18877 * passes.c (opt_pass::gt_ggc_mx): New.
18878 (opt_pass::gt_pch_nx): New.
18879 (opt_pass::gt_pch_nx_with_op): New.
18880 (pass_manager::gt_ggc_mx): New.
18881 (pass_manager::gt_pch_nx): New.
18882 (pass_manager::gt_pch_nx_with_op): New.
18883 (pass_manager::operator new): Use
18884 ggc_internal_cleared_alloc_stat rather than xcalloc.
18885 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18886 (pass_manager::gt_ggc_mx): New.
18887 (pass_manager::gt_pch_nx): New.
18888 (pass_manager::gt_pch_nx_with_op): New.
18889 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18890 (opt_pass::operator new): New.
18891 (opt_pass::gt_ggc_mx): New.
18892 (opt_pass::gt_pch_nx): New.
18893 (opt_pass::gt_pch_nx_with_op): New.
18896 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18898 * Makefile.in (GTFILES): Add context.h.
18899 * context.c (gcc::context::operator new): New.
18900 (gcc::context::gt_ggc_mx): New.
18901 (gcc::context::gt_pch_nx): New.
18902 (gcc::context::gt_pch_nx): New.
18903 * context.h (gcc::context): Add GTY((user)) marking.
18904 (gcc::context::operator new): New.
18905 (gcc::context::gt_ggc_mx): New.
18906 (gcc::context::gt_pch_nx): New.
18907 (gcc::context::gt_pch_nx): New.
18908 (g): Add GTY marking.
18909 (gt_ggc_mx (gcc::context *)): New.
18910 (gt_pch_nx (gcc::context *)): New.
18911 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18912 void *cookie)): New.
18913 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18915 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18917 * dce.c (fini_dce): Call df_analyze again just in case
18918 delete_unmarked_insns removed anything.
18920 2013-08-20 Teresa Johnson <tejohnson@google.com>
18922 PR rtl-optimizations/57451
18923 * final.c (reemit_insn_block_notes): Prevent lexical blocks
18924 from crossing split section boundaries.
18926 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
18928 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18929 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18930 with MULTLIB_DEFAULTS.
18932 2013-08-20 Nick Clifton <nickc@redhat.com>
18934 * target.def (narrow_volatile_bitfield): Note that the default
18935 value is false, not !TARGET_STRICT_ALIGN.
18936 * doc/tm.texi: Regenerate.
18938 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
18940 Fix LIB_SPEC for systems without libpthread.
18942 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18943 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18945 * config/i386/linux-common.h: Likewise.
18946 * config/mips/linux-common.h: Likewise.
18948 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18950 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18953 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18955 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18956 instances can own GC refs.
18958 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18959 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18960 (gcc::context::gt_pch_nx): Likewise.
18961 (gcc::context::gt_pch_nx): Likewise.
18962 * ggc.h (gt_ggc_mx <T>): New.
18963 (gt_pch_nx_with_op <T>): New.
18964 (gt_pch_nx <T>): New.
18965 * passes.c (opt_pass::gt_ggc_mx): New.
18966 (opt_pass::gt_pch_nx): New.
18967 (opt_pass::gt_pch_nx_with_op): New.
18968 (pass_manager::gt_ggc_mx): New.
18969 (pass_manager::gt_pch_nx): New.
18970 (pass_manager::gt_pch_nx_with_op): New.
18971 (pass_manager::operator new): Use
18972 ggc_internal_cleared_alloc_stat rather than xcalloc.
18973 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18974 (pass_manager::gt_ggc_mx): New.
18975 (pass_manager::gt_pch_nx): New.
18976 (pass_manager::gt_pch_nx_with_op): New.
18977 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18978 (opt_pass::operator new): New.
18979 (opt_pass::gt_ggc_mx): New.
18980 (opt_pass::gt_pch_nx): New.
18981 (opt_pass::gt_pch_nx_with_op): New.
18983 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18985 * Makefile.in (GTFILES): Add context.h.
18986 * context.c (gcc::context::operator new): New.
18987 (gcc::context::gt_ggc_mx): New.
18988 (gcc::context::gt_pch_nx): New.
18989 (gcc::context::gt_pch_nx): New.
18990 * context.h (gcc::context): Add GTY((user)) marking.
18991 (gcc::context::operator new): New.
18992 (gcc::context::gt_ggc_mx): New.
18993 (gcc::context::gt_pch_nx): New.
18994 (gcc::context::gt_pch_nx): New.
18995 (g): Add GTY marking.
18996 (gt_ggc_mx (gcc::context *)): New.
18997 (gt_pch_nx (gcc::context *)): New.
18998 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18999 void *cookie)): New.
19000 * gengtype.c (open_base_files) <ifiles>: Add context.h.
19002 2013-08-20 Alan Modra <amodra@gmail.com>
19005 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
19006 (rs6000_emit_epilogue): Likewise.
19008 2013-08-19 Dehao Chen <dehao@google.com>
19010 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
19012 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
19013 Jakub Jelinek <jakub@redhat.com>
19015 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
19016 (BUILT_IN_FABSD64): Likewise.
19017 (BUILT_IN_FABSD128): Likewise.
19018 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
19019 (fold_builtin_1): Likewise.
19020 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
19021 destination and source operands.
19022 (*abstd2_fpr): Likewise.
19023 (*nabstd2_fpr): Likewise.
19025 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
19027 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
19030 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
19032 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
19035 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
19037 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
19038 * builtins.c (default_libc_has_function): New.
19039 (gnu_libc_has_function): Ditto.
19040 (no_c99_libc_has_function): Ditto.
19041 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
19042 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
19043 (fold_builtin_sincos): Likewise.
19044 (fold_builtin_cexp): Likewise.
19045 * builtins.def (DEF_C94_BUILTIN): Likewise.
19046 (DEF_C99_BUILTIN): Likewise.
19047 (DEF_C99_C90RES_BUILTIN): Likewise.
19048 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
19049 definitions to using this define.
19050 * config/darwin-protos.h (darwin_libc_has_function): New.
19051 * config/darwin.c (darwin_libc_has_function): Ditto.
19052 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
19053 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
19054 * config/darwin.h: Ditto.
19055 * config/elfos.h: Ditto.
19056 * config/freebsd.h: Ditto.
19057 * config/i386/cygming.h: Ditto.
19058 * config/i386/djgpp.h: Ditto.
19059 * config/i386/i386-interix.h: Ditto.
19060 * config/microblaze/microblaze.h: Ditto.
19061 * config/mmix/mmix.h: Ditto.
19062 * config/gnu-user.h: Ditto.
19063 * config/ia64/hpux.h: Ditto.
19064 * config/pa/pa-hpux.h: Ditto.
19065 * config/pdp11/pdp11.h: Ditto.
19066 * config/picochip/picochip.h: Ditto.
19067 * config/linux.h: Ditto.
19068 * config/netbsd.h: Ditto.
19069 * config/openbsd.h: Ditto.
19070 * config/rs6000/aix43.h: Ditto.
19071 * config/rs6000/aix51.h: Ditto.
19072 * config/rs6000/aix52.h: Ditto.
19073 * config/rs6000/aix53.h: Ditto.
19074 * config/rs6000/aix61.h: Ditto.
19075 * config/rs6000/darwin.h: Ditto.
19076 * config/rs6000/linux.h: Ditto.
19077 * config/rs6000/linux64.h: Ditto.
19078 * config/s390/tpf.h: Ditto.
19079 * config/sol2-10.h: Ditto.
19080 * config/sol2.h: Ditto.
19081 * config/vms/vms.h: Ditto.
19082 * config/vxworks.h: Ditto.
19083 * config/linux-android.c (linux_android_libc_has_function):
19084 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
19085 * config/linux-protos.h (linux_android_libc_has_function):
19087 * config/i386/i386.c (ix86_libc_has_function): New.
19088 * config/i386/i386-protos.h
19089 (ix86_libc_has_function): New declaration.
19090 * config/i386/i386.md
19091 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
19092 ("isinf<mode>2): Likewise.
19093 * convert.c (convert_to_integer): Using new target hook
19094 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
19095 TARGET_C99_FUNCTIONS.
19096 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
19097 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
19098 * coretypes.h (function_class): New enum for different
19099 classes of functions.
19100 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
19101 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
19102 (TARGET_HAS_SINCOS): Likewise.
19103 (TARGET_LIBC_HAS_FUNCTION): New.
19104 * doc/tm.texi: Regenerated.
19105 * targhooks.h (default_libc_has_function): New declaration.
19106 (no_c99_libc_has_function): Ditto.
19107 (gnu_libc_has_function): Ditto.
19108 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
19109 and TARGET_HAS_SINCOS.
19111 2013-08-18 Jan Hubicka <jh@suse.cz>
19113 * Makeifle-in (ipa-devirt.o): New.
19114 (GTFILES): Add ipa-utils.h and ipa-devirt.c
19115 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
19116 (analyze_functions): Look into possible targets of polymorphic call.
19117 * dumpfile.c (dump_files): Add type-inheritance dump.
19118 * dumpfile.h (TDI_inheritance): New.
19119 * ipa-devirt.c: New file.
19120 * ipa-utils.h (odr_type_d): Forward declare.
19121 (odr_type): New type.
19122 (build_type_inheritance_graph): Declare.
19123 (possible_polymorphic_call_targets): Declare and introduce inline
19124 variant when only edge is pased.
19125 (dump_possible_polymorphic_call_targets): Likewise.
19126 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
19127 * tree.c (type_in_anonymous_namespace_p): Break out from ...
19128 (types_same_for_odr): ... here.
19129 * tree.h (type_in_anonymous_namespace_p): Declare.
19131 2013-08-18 Jakub Jelinek <jakub@redhat.com>
19133 PR tree-optimization/58006
19134 * tree-parloops.c (take_address_of): Don't ICE if get_name
19136 (eliminate_local_variables_stmt): Remove clobber stmts.
19138 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
19140 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
19141 error message is issued for an alias to undefined symbol.
19143 2013-08-18 Jan Hubicka <jh@suse.cz>
19145 * cgraph.c (cgraph_create_indirect_edge): Discover
19146 polymorphic calls and record basic info into indirect_info.
19147 * gimple-fold.c (gimple_fold_call): When doing BINFO based
19148 devirtualization, ignore objc function calls.
19149 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
19150 call with no parm index info.
19151 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
19152 * tree.c (virtual_method_call_p): New function.
19153 * tree.h (virtual_method_call_p): Declare.
19155 2013-08-16 Jan Hubicka <jh@suse.cz>
19157 PR middle-end/58179
19158 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
19160 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
19162 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
19165 2013-08-16 David Malcolm <dmalcolm@redhat.com>
19167 * gengtype.c (type_for_name): Add special-case support for
19168 locating types within the "gcc::" namespace.
19169 (open_base_files): Emit a "using namespace gcc" directive.
19171 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
19174 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
19175 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
19177 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
19178 array instead of each individual operand as a separate argument.
19179 (emit_fusion_gpr_load): Likewise.
19180 (expand_fusion_gpr_load): Add new function declaration.
19182 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
19183 signature to have the operands passed as an array, instead of as
19184 separate arguments. Allow ZERO_EXTEND to be in the memory
19185 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
19186 depend on the register live/dead flags when peepholes are run.
19187 (expand_fusion_gpr_load): New function to be called from the
19188 peephole2 pass, to change the register that addis sets to be the
19190 (emit_fusion_gpr_load): Change the calling signature to have the
19191 operands passed as an array, instead of as separate arguments.
19192 Allow ZERO_EXTEND to be in the memory address, and also
19193 SIGN_EXTEND if -mpower8-fusion-sign.
19195 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
19196 unspec enumeration.
19197 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
19198 adjust the register addis loads up in the peephole2 pass. Do not
19199 depend on the register live/dead state when the peephole pass is done.
19201 2013-08-16 David Malcolm <dmalcolm@redhat.com>
19203 * gengtype.c (create_user_defined_type): Ensure that the kind
19204 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
19205 declaration is seen before the GTY((user)) marking.
19207 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
19210 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
19212 2013-08-16 Jan Hubicka <jh@suse.cz>
19214 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
19215 arugment expected_type.
19216 (gimple_fold_call): Use it.
19217 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
19218 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
19219 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
19220 (try_make_edge_direct_virtual_call): Likewise.
19221 * tree.c (obj_type_ref_class): New.
19222 * tree.h (obj_type_ref_class): Use it.
19224 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
19226 * sched-vis.c (rtl_slim_pp_initialized): Remove.
19227 (rtl_slim_pp): Likewise.
19228 (init_rtl_slim_pretty_print): Likewise.
19229 (dump_value_slim): Don't call it. Use local pretty printer.
19230 (dump_insn_slim): Likewise.
19231 (dump_rtl_slim): Likewise.
19232 (str_pattern_slim): Likewise.
19233 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
19236 2013-08-16 Jakub Jelinek <jakub@redhat.com>
19238 PR tree-optimization/58164
19239 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
19240 walk gimple_goto_dest of GIMPLE_GOTO.
19242 PR tree-optimization/58165
19243 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
19244 bi_call must be the last stmt in a bb, don't split_block, instead
19245 use fallthru edge from it and give up if there is none.
19246 Release conds vector when returning early.
19248 2013-08-14 Xinliang David Li <davidxl@google.com>
19250 * config/i386/i386.c (ix86_option_override_internal):
19251 Remove unused variable and field.
19253 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19256 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
19257 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
19258 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
19259 and Linux, correct BLKmode alignment when 128-bit alignment is
19260 required and compatibility flag is not set.
19261 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
19262 for zero-size arguments when compatibility flag is not set.
19264 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19266 PR tree-optimization/58145
19267 * tree-sra.c (build_ref_for_offset): If prev_base has
19268 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
19270 2013-08-14 Xinliang David Li <davidxl@google.com>
19272 * config/i386/i386.c (ix86_option_override_internal):
19273 Fix uninitialized variable error.
19275 2013-08-14 Xinliang David Li <davidxl@google.com>
19277 * config/i386/i386.opt: Define two new options.
19278 * config/i386/x86-tune.def: Add arch selector field in macros.
19279 * config/i386/i386.h: Adjust macro definition.
19280 * config/i386/i386.c (ix86_option_override_internal):
19282 (parse_mtune_ctrl_str): New function.
19283 (set_ix86_tune_features): New function.
19284 (ix86_function_specific_restore): Call the new helper function.
19286 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
19288 PR rtl-optimization/57662
19289 * sel-sched.c (code_motion_process_successors): When the current insn
19290 is removed after the recursive traversal, break from the loop.
19291 Add comments and debug printouts.
19293 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19294 Alexandre Oliva <aoliva@redhat.com>
19297 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
19298 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
19299 there also UNSPEC_PLTOFF.
19301 2013-08-14 Marek Polacek <polacek@redhat.com>
19303 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
19304 NUM_CONDITIONS bit positions.
19306 2013-08-13 Cary Coutant <ccoutant@google.com>
19308 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
19309 (attr_checksum): Hash vector contents instead of pointer.
19310 (attr_checksum_ordered): Likewise.
19312 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
19314 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
19315 when Pmode != word_mode. Add length_address attribute.
19316 (sse3_monitor_<mode>): Merge from sse3_monitor and
19317 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
19318 Pmode != word_mode. Update insn length attribute.
19319 * config/i386/i386.c (ix86_option_override_internal): Update
19320 ix86_gen_monitor selection for merged sse3_monitor insn.
19322 2013-08-13 Julian Brown <julian@codesourcery.com>
19324 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19325 perform invalid legitimization on greater-than-word-size modes for
19326 TARGET_E500_DOUBLE.
19328 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
19330 * ira.c (setup_class_translate_array): Use aclass instead of cl
19331 for classes not fully covered by allocno classes.
19333 2013-08-13 Jakub Jelinek <jakub@redhat.com>
19335 PR tree-optimization/57661
19336 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
19337 * tree-inline.c (tree_function_versioning): Initialize it.
19338 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
19339 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
19340 that is not being copied.
19343 * asan.c (instrument_strlen_call): Fix typo in comment.
19344 Use char * type even for the lhs of POINTER_PLUS_EXPR.
19346 2013-08-13 Steve Ellcey <sellcey@mips.com>
19348 * config/mips/mips.md (prefetch): Use lw instead of ld on
19349 loongson in 32bit mode.
19351 2013-08-13 Nick Clifton <nickc@redhat.com>
19353 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
19355 2013-08-13 Jan Hubicka <jh@suse.cz>
19357 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
19358 introduced edge; fix typo in sanity check.
19359 (cgraph_resolve_speculation): Export; improve diagnostic.
19360 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
19361 speculation at type mismatch.
19362 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
19363 (cgraph_resolve_speculation): Declare.
19364 (symtab_can_be_discarded): New function.
19365 * value-prof.c (gimple_ic_transform): Remove actual transform code.
19366 * ipa-inline-transform.c (speculation_removed): New global var.
19367 (clone_inlined_nodes): See if speculation can be removed.
19368 (inline_call): If speculations was removed, we growths may not match.
19369 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19370 (speculation_useful_p): New function.
19371 (resolve_noninline_speculation): New function.
19372 (inline_small_functions): Resolve useless speculations.
19373 * ipa-inline.h (speculation_useful_p): Declare
19374 * ipa.c (can_replace_by_local_alias): Simplify.
19375 (ipa_profile): Produce speculative calls in non-lto, too;
19376 add simple cost model; produce local aliases.
19378 2013-08-13 David Malcolm <dmalcolm@redhat.com>
19380 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19383 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
19385 * config/i386/i386.c (ix86_function_versions): Use error + inform.
19387 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
19389 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19390 iterator instead of X87MODEF.
19392 2013-08-12 Perez Read <netfirewall@gmail.com>
19395 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
19396 operand 0 for intel asm alternative.
19397 (*movabs<mode>_2): Ditto for operand 1.
19399 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
19401 * config/aarch64/arm_none.h
19402 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19404 2013-08-12 Nick Clifton <nickc@redhat.com>
19406 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19408 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
19410 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19411 expand for QI/HImode operand to produce more effictive code for
19412 unsigned char(short) --> float(double) conversion.
19414 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
19416 * doc/invoke.texi: Mention that -ftls-model does not force the final
19419 2013-08-12 Marek Polacek <polacek@redhat.com>
19420 Marc Glisse <marc.glisse@inria.fr>
19422 PR tree-optimization/57980
19423 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19424 when creating -1 constant.
19426 2013-08-10 Jan Hubicka <jh@suse.cz>
19428 Workaround binutils PR14342.
19429 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19430 (gimple_init_edge_profiler): Likewise.
19431 (gimple_gen_ic_func_profiler): Likewise.
19433 2013-08-09 Jan Hubicka <jh@suse.cz>
19435 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19437 2013-08-09 Xinliang David Li <davidxl@google.com>
19439 * config/i386/stringop.def: New file.
19440 * config/i386/stringop.opt: New file.
19441 * config/i386/i386-opts.h: Include stringopt.def.
19442 * config/i386/i386.opt: Include stringopt.opt.
19443 * config/i386/i386.c (ix86_option_override_internal):
19444 Override default size based stringop inline strategies with options.
19445 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19448 2013-08-09 Jan Hubicka <jh@suse.cz>
19450 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19452 2013-08-09 Jan Hubicka <jh@suse.cz>
19454 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19456 (dump_cgraph_node): Dump profile-id.
19457 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19458 and common_target_probability.
19459 * lto-cgraph.c (lto_output_edge): Stream common targets.
19460 (lto_output_node): Stream profile ids.
19461 (input_node): Stream profile ids.
19462 (input_edge): Stream common targets.
19463 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19464 * ipa.c: Include value-prof.h
19465 (ipa_profile_generate_summary): Turn indirect call statement histograms
19466 into common targets.
19467 (ipa_profile): Turn common targets into speculative edges.
19469 2013-08-09 Jan Hubicka <jh@suse.cz>
19471 * cgraph.h (cgraph_node): Add profile_id.
19472 * value-prof.c (cgraph_node_map): Turn into pointer_map.
19473 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19474 (del_node_map): Update.
19475 (find_func_by_funcdef_no): Replace by ...
19476 (find_func_by_profile_id): ... this one.
19477 (gimple_ic_transform): Do not remove useful histograms when
19478 speculation is not done; dump info when indirect call removal
19480 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19481 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19482 (__gcov_indirect_call_profiler_v2): .. this one.
19483 * profile.h (init_node_map): Update.
19484 * coverage.c (coverage_compute_profile_id): New function.
19485 * coverage.h (coverage_compute_profile_id): Declare.
19486 * tree-profile.c (init_ic_make_global_vars): Make
19487 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
19488 (gimple_init_edge_profiler): Update prototype of
19489 __gcov_indirect_call_profiler.
19490 (gimple_gen_ic_func_profiler): Simplify.
19491 (tree_profiling): Use init_node_map
19493 2013-08-09 Jan Hubicka <jh@suse.cz>
19495 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19496 non-speculative refs.
19497 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19498 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19499 (cgraph_set_call_stmt): Likewise.
19500 (cgraph_create_edge_1): Fix release checking compilatoin;
19501 clear lto_stmt_uid.
19502 (cgraph_free_edge): Free indirect info.
19503 (cgraph_turn_edge_to_speculative): New function.
19504 (cgraph_speculative_call_info): New function.
19505 (cgraph_make_edge_direct): Return direct edge; handle speculation.
19506 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19507 (dump_cgraph_node): Dump speculation.
19508 (verify_edge_count_and_frequency): Accept speculative edges.
19509 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19510 (verify_cgraph_node): Handle speculation.
19511 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19512 (cgraph_set_call_stmt): Update prototype.
19513 (cgraph_make_edge_direct): Update prototype.
19514 (cgraph_speculative_call_info): Declare.
19515 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19516 to change; update call of ipa_find_references.
19517 * ipa-ref.c (ipa_record_reference): Fix return value; clear
19518 lto_stmt_uid and speculative flags.
19519 (ipa_dump_references): Dump speculation.
19520 (ipa_clone_references): Clone speculative flag.
19521 (ipa_clone_referring): Likewise.
19522 (ipa_clone_ref): New function.
19523 (ipa_find_reference): Look into lto_stmt_uids
19524 (ipa_clear_stmts_in_references): Do not clear speculative calls.
19525 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19526 (ipa_find_reference): Update declaration.
19527 (ipa_clone_ref): Declare.
19528 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19529 stream speculative flag.
19530 (lto_output_ref): Stream statements uids and speculation.
19531 (input_ref): Likewise.
19532 (input_edge): Stream speuclation.
19533 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19534 (cgraph_set_call_stmt_including_clones): Handle speculation.
19535 * ipa-inline.c (heap_edge_removal_hook): New function.
19536 (inline_small_functions): Register it.
19537 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19538 also initialize refs.
19539 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19541 (try_make_edge_direct_simple_call): Likewise.
19542 (try_make_edge_direct_simple_call): Likewise.
19543 (update_indirect_edges_after_inlining): Likewise.
19544 (remove_described_reference): Look proper lto_stmt_uid.
19545 (propagate_controlled_uses): Likewise.
19546 (propagate_controlled_uses): Liekwise.
19547 * tree-inline.c (copy_bb): Copy speculative edges.
19548 (redirect_all_calls): New function.
19549 (copy_cfg_body): Do redirection after loop info is updated.
19550 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19552 2013-08-09 Jan Hubicka <jh@suse.cz>
19554 * lto-streamer-out.c (output_function): Renumber PHIs.
19555 * lto-streamer-in.c (input_function): Likewise.
19557 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
19559 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19560 (get_lane_unsigned): Likewise.
19561 (dup_lane_scalar): Likewise.
19562 (get_lane): enable for VALL.
19563 * config/aarch64/aarch64-simd.md
19564 (aarch64_dup_lane_scalar<mode>): Remove.
19565 (aarch64_get_lane_signed<mode>): Likewise.
19566 (aarch64_get_lane_unsigned<mode>): Likewise.
19567 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19568 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19569 (aarch64_get_lane<mode>): Enable for all vector modes.
19570 (aarch64_get_lanedi): Remove misleading constraints.
19571 * config/aarch64/arm_neon.h
19572 (__aarch64_vget_lane_any): Define.
19573 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19574 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19575 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19576 * config/aarch64/iterators.md (VDQQH): New.
19577 (VDQQHS): Likewise.
19578 (vwcore): Likewise.
19580 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
19582 * configure.ac: Add GAS check for LEON instructions on SPARC.
19583 * configure: Regenerate.
19584 * config.in: Likewise.
19585 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19587 * config/sparc/sparc.opt (LEON, LEON3): New masks.
19588 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19590 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19591 (AS_LEON_FLAG): New macro.
19592 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19593 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19594 Deal with LEON and LEON3 for the memory model.
19595 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19596 (atomic_compare_and_swap<mode>_1): Likewise.
19597 (*atomic_compare_and_swap<mode>_1): Likewise.
19599 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19601 * config/arm/neon.md (vcond): Fix floating-point vector
19602 comparisons against 0.
19604 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
19606 * lra-constraints.c (emit_spill_move): Remove assert.
19607 (process_alt_operands): Add more debugging
19608 output. Increase reject for spilling into memory. Decrease
19609 reject for reloading scratch.
19610 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19612 2013-08-08 Steve Ellcey <sellcey@mips.com>
19614 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19615 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19616 micromips incompatible. Add nan2008.
19617 (MULTILIB_DIRNAMES): Add nan2008.
19618 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19619 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19620 and micromips incompatible. Add nan2008.
19621 (MULTILIB_DIRNAMES): Add nan2008.
19622 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19624 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19626 PR rtl-optimization/58079
19627 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19628 simplify_comparison has widened a comparison with an integer.
19630 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19632 * config/arm/neon.md (movmisalign<mode>): Disable when we
19633 don't allow unaligned accesses.
19634 (*movmisalign<mode>_neon_store): Likewise.
19635 (*movmisalign<mode>_neon_load): Likewise.
19636 (*movmisalign<mode>_neon_store): Likewise.
19637 (*movmisalign<mode>_neon_load): Likewise.
19639 2013-08-08 Jan Hubicka <jh@suse.cz>
19641 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19642 (make_pass_rebuild_cgraph_edges): Also clear references.
19643 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19644 * ipa-inline-transform.c (inline_transform): Remove all references
19646 * cgraphunit.c (expand_function): Remove all references after
19648 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19649 (ipa_find_reference): Rewrite to iterator.
19650 (remove_stmt_references): Likewise.
19651 (ipa_clear_stmts_in_references): New function.
19652 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19653 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19655 * ipa-split.c (split_function): Remove references in split function.
19657 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19660 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19661 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19663 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19666 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19667 suggested mode for the assignment isn't compatible with the
19668 registers required.
19670 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19673 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19675 2013-08-07 Xinliang David Li <davidxl@google.com>
19677 * config/i386/i386.opt: New option -mtune-ctrl=.
19678 * config/i386/x86-tune.def: New file.
19679 * config/i386/i386.h: include x86-tune.def.
19680 * config/i386/i386.c (ix86_option_override_internal):
19681 Parsing -mtune-ctrl= option and set tune features.
19683 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19686 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19687 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19690 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19692 * rtl.h (update_alignments): Declare.
19693 * final.c (grow_label_align): New function extracted from...
19694 (shorten_branches): ...here. Call it.
19695 (update_alignments): New function.
19696 * reorg.c (sibling_labels): New variable.
19697 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19698 the new label along with it onto the sibling_labels vector.
19699 (fill_simple_delay_slots): Adjust call to get_label_before.
19700 (fill_slots_from_thread): Likewise.
19701 (relax_delay_slots): Likewise.
19702 (make_return_insns): Likewise.
19703 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19705 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19707 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19708 document its semantics.
19709 (diagnostic_report_diagnostic): Adjust accordingly.
19711 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19713 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19714 (sparc_option_override): ...and port to new C++ pass API.
19715 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19717 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19719 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19721 2013-08-06 Caroline Tice <cmtice@google.com>
19723 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19724 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19725 * tree-pass.h: Add pass_vtable_verify.
19726 * varasm.c (assemble_variable): Add code to properly set the comdat
19727 section and name for the .vtable_map_vars section.
19728 (assemble_vtyv_preinit_initializer): New function.
19729 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19731 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19732 * vtable-verify.c: New file.
19733 * vtable-verify.h: New file.
19734 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19735 initialiation levels.
19736 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19737 * passes.def: Insert pass_vtable_verify.
19738 * aclocal.m4: Reorder includes.
19739 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
19740 -fvtv-counts options.
19741 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19742 as appropriate, if -fvtable-verify=... is used.
19743 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19744 -fvtable-verify=... is used.
19745 * Makefile.in (OBJS): Add vtable-verify.o to list.
19746 (vtable-verify.o): Add new build rule.
19747 (GTFILES): Add vtable-verify.c to list.
19748 * common.opt (fvtable-verify=): New flag.
19749 (vtv_priority): Values for fvtable-verify= flag.
19750 (fvtv-counts): New flag.
19751 (fvtv-debug): New flag.
19752 * tree.h (save_vtable_map_decl): New extern function decl.
19754 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19756 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19757 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19758 (pass_data_rl78_devirt): ...new pass_data instance and...
19759 (make_pass_rl78_devirt): ...new function.
19760 (rl78_asm_file_start): Port pass registration to new C++ API.
19762 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19764 * coretypes.h (rtl_opt_pass): Add.
19765 (gcc::context): Add.
19766 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19767 (epiphany_init): Port to new C++ pass API.
19768 (epiphany_optimize_mode_switching): Likewise.
19769 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19770 (pass_manager::get_pass_mode_switching): New.
19771 (pass_manager::get_pass_peephole2): New.
19772 * mode-switching.c (pass_mode_switching): Add clone method.
19773 * recog.c (pass_peephole2): Add clone method.
19774 (pass_split_all_insns): Add clone method.
19776 2013-08-06 David Malcolm <dmalcolm@redhat.com>
19778 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19779 (mips_option_override): ...here, porting to new C++ API for passes.
19781 2013-08-06 Jan Hubicka <jh@suse.cz>
19783 * cgraph.c (cgraph_get_body): New function based on lto.c
19785 * cgraph.h (cgraph_get_body): Declare.
19786 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19788 * cgraphunit.c (expand_function): Get body prior expanding.
19789 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19790 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19792 * passes.c (do_per_function_toporder): Get body.
19793 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19794 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19796 2013-08-06 Martin Jambor <mjambor@suse.cz>
19799 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19800 is not re-finalized. Rename second parameter to no_collect.
19802 2013-08-06 Martin Jambor <mjambor@suse.cz>
19804 PR middle-end/58041
19805 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19806 MEM_REF has proper alignment information.
19808 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19811 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19813 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19814 rtx (*) (rtx, ...) with insn_gen_fn.
19815 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19816 insn_gen_fn::stored_funcptr. Add initializer braces.
19818 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19820 Rewrite how instances of passes are cloned to remove assumptions
19821 about their sizes (thus allowing pass subclasses to have
19822 additional data fields, albeit non-GC-managed ones at this point).
19824 * passes.c (make_pass_instance): Now that passes have clone
19825 methods, rewrite this function to eliminate XNEW and memcpy
19826 calls that used hardcoded sizes. Since this function no longer
19827 creates pass instances, rename it to...
19828 (add_pass_instance): ...this. Document the old way that passes were
19829 numbered and flagged, and rework this function to continue using it.
19830 (next_pass_1): Add an initial_pass argument for use by
19832 (position_pass): When adding multiple instances of a pass, use
19833 the pass's clone method, rather than relying on the XNEW/memcpy
19834 within the former make_pass_instance (now add_pass_instance).
19835 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19836 the initial instance of the current pass within the pass manager.
19838 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19840 This is the automated part of the conversion of passes from C
19841 structs to C++ classes.
19843 Patch autogenerated by refactor_passes.py from
19844 https://github.com/davidmalcolm/gcc-refactoring-scripts
19845 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19847 * asan.c (pass_asan): Convert from a global struct to a subclass of
19848 gimple_opt_pass along with...
19849 (pass_data_asan): ...new pass_data instance and...
19850 (make_pass_asan): ...new function.
19851 (pass_asan_O0): Convert from a global struct to a subclass of
19852 gimple_opt_pass along with...
19853 (pass_data_asan_O0): ...new pass_data instance and...
19854 (make_pass_asan_O0): ...new function.
19855 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19856 subclass of rtl_opt_pass along with...
19857 (pass_data_inc_dec): ...new pass_data instance and...
19858 (make_pass_inc_dec): ...new function.
19859 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19860 a subclass of rtl_opt_pass along with...
19861 (pass_data_reorder_blocks): ...new pass_data instance and...
19862 (make_pass_reorder_blocks): ...new function.
19863 (pass_duplicate_computed_gotos): Convert from a global struct to a
19864 subclass of rtl_opt_pass along with...
19865 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19866 (make_pass_duplicate_computed_gotos): ...new function.
19867 (pass_partition_blocks): Convert from a global struct to a subclass of
19868 rtl_opt_pass along with...
19869 (pass_data_partition_blocks): ...new pass_data instance and...
19870 (make_pass_partition_blocks): ...new function.
19871 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19872 struct to a subclass of rtl_opt_pass along with...
19873 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19875 (make_pass_branch_target_load_optimize1): ...new function.
19876 (pass_branch_target_load_optimize2): Convert from a global struct to a
19877 subclass of rtl_opt_pass along with...
19878 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19880 (make_pass_branch_target_load_optimize2): ...new function.
19881 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19882 of rtl_opt_pass along with...
19883 (pass_data_jump): ...new pass_data instance and...
19884 (make_pass_jump): ...new function.
19885 (pass_jump2): Convert from a global struct to a subclass of
19886 rtl_opt_pass along with...
19887 (pass_data_jump2): ...new pass_data instance and...
19888 (make_pass_jump2): ...new function.
19889 * cfgexpand.c (pass_expand): Convert from a global struct to a
19890 subclass of rtl_opt_pass along with...
19891 (pass_data_expand): ...new pass_data instance and...
19892 (make_pass_expand): ...new function.
19893 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19894 of rtl_opt_pass along with...
19895 (pass_data_free_cfg): ...new pass_data instance and...
19896 (make_pass_free_cfg): ...new function.
19897 (pass_into_cfg_layout_mode): Convert from a global struct to a
19898 subclass of rtl_opt_pass along with...
19899 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19900 (make_pass_into_cfg_layout_mode): ...new function.
19901 (pass_outof_cfg_layout_mode): Convert from a global struct to a
19902 subclass of rtl_opt_pass along with...
19903 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19904 (make_pass_outof_cfg_layout_mode): ...new function.
19905 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19906 struct to a subclass of gimple_opt_pass along with...
19907 (pass_data_build_cgraph_edges): ...new pass_data instance and...
19908 (make_pass_build_cgraph_edges): ...new function.
19909 (pass_rebuild_cgraph_edges): Convert from a global struct to a
19910 subclass of gimple_opt_pass along with...
19911 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19912 (make_pass_rebuild_cgraph_edges): ...new function.
19913 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19914 subclass of gimple_opt_pass along with...
19915 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19917 (make_pass_remove_cgraph_callee_edges): ...new function.
19918 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19919 struct to a subclass of rtl_opt_pass along with...
19920 (pass_data_stack_adjustments): ...new pass_data instance and...
19921 (make_pass_stack_adjustments): ...new function.
19922 * combine.c (pass_combine): Convert from a global struct to a subclass
19923 of rtl_opt_pass along with...
19924 (pass_data_combine): ...new pass_data instance and...
19925 (make_pass_combine): ...new function.
19926 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19927 global struct to a subclass of rtl_opt_pass along with...
19928 (pass_data_compare_elim_after_reload): ...new pass_data instance
19930 (make_pass_compare_elim_after_reload): ...new function.
19931 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19932 of rtl_opt_pass along with...
19933 (pass_data_rtl_cprop): ...new pass_data instance and...
19934 (make_pass_rtl_cprop): ...new function.
19935 * cse.c (pass_cse): Convert from a global struct to a subclass of
19936 rtl_opt_pass along with...
19937 (pass_data_cse): ...new pass_data instance and...
19938 (make_pass_cse): ...new function.
19939 (pass_cse2): Convert from a global struct to a subclass of
19940 rtl_opt_pass along with...
19941 (pass_data_cse2): ...new pass_data instance and...
19942 (make_pass_cse2): ...new function.
19943 (pass_cse_after_global_opts): Convert from a global struct to a
19944 subclass of rtl_opt_pass along with...
19945 (pass_data_cse_after_global_opts): ...new pass_data instance and...
19946 (make_pass_cse_after_global_opts): ...new function.
19947 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19948 of rtl_opt_pass along with...
19949 (pass_data_ud_rtl_dce): ...new pass_data instance and...
19950 (make_pass_ud_rtl_dce): ...new function.
19951 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19952 rtl_opt_pass along with...
19953 (pass_data_fast_rtl_dce): ...new pass_data instance and...
19954 (make_pass_fast_rtl_dce): ...new function.
19955 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19956 a subclass of rtl_opt_pass along with...
19957 (pass_data_df_initialize_opt): ...new pass_data instance and...
19958 (make_pass_df_initialize_opt): ...new function.
19959 (pass_df_initialize_no_opt): Convert from a global struct to a
19960 subclass of rtl_opt_pass along with...
19961 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19962 (make_pass_df_initialize_no_opt): ...new function.
19963 (pass_df_finish): Convert from a global struct to a subclass of
19964 rtl_opt_pass along with...
19965 (pass_data_df_finish): ...new pass_data instance and...
19966 (make_pass_df_finish): ...new function.
19967 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19968 rtl_opt_pass along with...
19969 (pass_data_rtl_dse1): ...new pass_data instance and...
19970 (make_pass_rtl_dse1): ...new function.
19971 (pass_rtl_dse2): Convert from a global struct to a subclass of
19972 rtl_opt_pass along with...
19973 (pass_data_rtl_dse2): ...new pass_data instance and...
19974 (make_pass_rtl_dse2): ...new function.
19975 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19976 subclass of rtl_opt_pass along with...
19977 (pass_data_dwarf2_frame): ...new pass_data instance and...
19978 (make_pass_dwarf2_frame): ...new function.
19979 * except.c (pass_set_nothrow_function_flags): Convert from a global
19980 struct to a subclass of rtl_opt_pass along with...
19981 (pass_data_set_nothrow_function_flags): ...new pass_data instance
19983 (make_pass_set_nothrow_function_flags): ...new function.
19984 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19985 subclass of rtl_opt_pass along with...
19986 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19988 (make_pass_convert_to_eh_region_ranges): ...new function.
19989 * final.c (pass_compute_alignments): Convert from a global struct to a
19990 subclass of rtl_opt_pass along with...
19991 (pass_data_compute_alignments): ...new pass_data instance and...
19992 (make_pass_compute_alignments): ...new function.
19993 (pass_final): Convert from a global struct to a subclass of
19994 rtl_opt_pass along with...
19995 (pass_data_final): ...new pass_data instance and...
19996 (make_pass_final): ...new function.
19997 (pass_shorten_branches): Convert from a global struct to a subclass of
19998 rtl_opt_pass along with...
19999 (pass_data_shorten_branches): ...new pass_data instance and...
20000 (make_pass_shorten_branches): ...new function.
20001 (pass_clean_state): Convert from a global struct to a subclass of
20002 rtl_opt_pass along with...
20003 (pass_data_clean_state): ...new pass_data instance and...
20004 (make_pass_clean_state): ...new function.
20005 * function.c (pass_instantiate_virtual_regs): Convert from a global
20006 struct to a subclass of rtl_opt_pass along with...
20007 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
20008 (make_pass_instantiate_virtual_regs): ...new function.
20009 (pass_leaf_regs): Convert from a global struct to a subclass of
20010 rtl_opt_pass along with...
20011 (pass_data_leaf_regs): ...new pass_data instance and...
20012 (make_pass_leaf_regs): ...new function.
20013 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
20014 subclass of rtl_opt_pass along with...
20015 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
20017 (make_pass_thread_prologue_and_epilogue): ...new function.
20018 (pass_match_asm_constraints): Convert from a global struct to a
20019 subclass of rtl_opt_pass along with...
20020 (pass_data_match_asm_constraints): ...new pass_data instance and...
20021 (make_pass_match_asm_constraints): ...new function.
20022 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
20023 subclass of rtl_opt_pass along with...
20024 (pass_data_rtl_fwprop): ...new pass_data instance and...
20025 (make_pass_rtl_fwprop): ...new function.
20026 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
20027 rtl_opt_pass along with...
20028 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
20029 (make_pass_rtl_fwprop_addr): ...new function.
20030 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
20031 rtl_opt_pass along with...
20032 (pass_data_rtl_pre): ...new pass_data instance and...
20033 (make_pass_rtl_pre): ...new function.
20034 (pass_rtl_hoist): Convert from a global struct to a subclass of
20035 rtl_opt_pass along with...
20036 (pass_data_rtl_hoist): ...new pass_data instance and...
20037 (make_pass_rtl_hoist): ...new function.
20038 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
20039 subclass of gimple_opt_pass along with...
20040 (pass_data_lower_cf): ...new pass_data instance and...
20041 (make_pass_lower_cf): ...new function.
20042 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
20043 from a global struct to a subclass of gimple_opt_pass along with...
20044 (pass_data_strength_reduction): ...new pass_data instance and...
20045 (make_pass_strength_reduction): ...new function.
20046 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
20047 of rtl_opt_pass along with...
20048 (pass_data_rtl_ifcvt): ...new pass_data instance and...
20049 (make_pass_rtl_ifcvt): ...new function.
20050 (pass_if_after_combine): Convert from a global struct to a subclass of
20051 rtl_opt_pass along with...
20052 (pass_data_if_after_combine): ...new pass_data instance and...
20053 (make_pass_if_after_combine): ...new function.
20054 (pass_if_after_reload): Convert from a global struct to a subclass of
20055 rtl_opt_pass along with...
20056 (pass_data_if_after_reload): ...new pass_data instance and...
20057 (make_pass_if_after_reload): ...new function.
20058 * init-regs.c (pass_initialize_regs): Convert from a global struct to
20059 a subclass of rtl_opt_pass along with...
20060 (pass_data_initialize_regs): ...new pass_data instance and...
20061 (make_pass_initialize_regs): ...new function.
20062 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
20063 of ipa_opt_pass_d along with...
20064 (pass_data_ipa_cp): ...new pass_data instance and...
20065 (make_pass_ipa_cp): ...new function.
20066 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
20067 global struct to a subclass of gimple_opt_pass along with...
20068 (pass_data_inline_parameters): ...new pass_data instance and...
20069 (make_pass_inline_parameters): ...new function.
20070 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
20071 subclass of gimple_opt_pass along with...
20072 (pass_data_early_inline): ...new pass_data instance and...
20073 (make_pass_early_inline): ...new function.
20074 (pass_ipa_inline): Convert from a global struct to a subclass of
20075 ipa_opt_pass_d along with...
20076 (pass_data_ipa_inline): ...new pass_data instance and...
20077 (make_pass_ipa_inline): ...new function.
20078 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
20079 struct to a subclass of gimple_opt_pass along with...
20080 (pass_data_local_pure_const): ...new pass_data instance and...
20081 (make_pass_local_pure_const): ...new function.
20082 (pass_ipa_pure_const): Convert from a global struct to a subclass of
20083 ipa_opt_pass_d along with...
20084 (pass_data_ipa_pure_const): ...new pass_data instance and...
20085 (make_pass_ipa_pure_const): ...new function.
20086 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
20087 to a subclass of ipa_opt_pass_d along with...
20088 (pass_data_ipa_reference): ...new pass_data instance and...
20089 (make_pass_ipa_reference): ...new function.
20090 * ipa-split.c (pass_split_functions): Convert from a global struct to
20091 a subclass of gimple_opt_pass along with...
20092 (pass_data_split_functions): ...new pass_data instance and...
20093 (make_pass_split_functions): ...new function.
20094 (pass_feedback_split_functions): Convert from a global struct to a
20095 subclass of gimple_opt_pass along with...
20096 (pass_data_feedback_split_functions): ...new pass_data instance and...
20097 (make_pass_feedback_split_functions): ...new function.
20098 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
20099 global struct to a subclass of simple_ipa_opt_pass along with...
20100 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
20102 (make_pass_ipa_function_and_variable_visibility): ...new function.
20103 (pass_ipa_free_inline_summary): Convert from a global struct to a
20104 subclass of simple_ipa_opt_pass along with...
20105 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
20106 (make_pass_ipa_free_inline_summary): ...new function.
20107 (pass_ipa_whole_program_visibility): Convert from a global struct to a
20108 subclass of ipa_opt_pass_d along with...
20109 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
20111 (make_pass_ipa_whole_program_visibility): ...new function.
20112 (pass_ipa_profile): Convert from a global struct to a subclass of
20113 ipa_opt_pass_d along with...
20114 (pass_data_ipa_profile): ...new pass_data instance and...
20115 (make_pass_ipa_profile): ...new function.
20116 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
20117 ipa_opt_pass_d along with...
20118 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
20119 (make_pass_ipa_cdtor_merge): ...new function.
20120 * ira.c (pass_ira): Convert from a global struct to a subclass of
20121 rtl_opt_pass along with...
20122 (pass_data_ira): ...new pass_data instance and...
20123 (make_pass_ira): ...new function.
20124 (pass_reload): Convert from a global struct to a subclass of
20125 rtl_opt_pass along with...
20126 (pass_data_reload): ...new pass_data instance and...
20127 (make_pass_reload): ...new function.
20128 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
20129 subclass of rtl_opt_pass along with...
20130 (pass_data_cleanup_barriers): ...new pass_data instance and...
20131 (make_pass_cleanup_barriers): ...new function.
20132 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
20133 of rtl_opt_pass along with...
20134 (pass_data_loop2): ...new pass_data instance and...
20135 (make_pass_loop2): ...new function.
20136 (pass_rtl_loop_init): Convert from a global struct to a subclass of
20137 rtl_opt_pass along with...
20138 (pass_data_rtl_loop_init): ...new pass_data instance and...
20139 (make_pass_rtl_loop_init): ...new function.
20140 (pass_rtl_loop_done): Convert from a global struct to a subclass of
20141 rtl_opt_pass along with...
20142 (pass_data_rtl_loop_done): ...new pass_data instance and...
20143 (make_pass_rtl_loop_done): ...new function.
20144 (pass_rtl_move_loop_invariants): Convert from a global struct to a
20145 subclass of rtl_opt_pass along with...
20146 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
20147 (make_pass_rtl_move_loop_invariants): ...new function.
20148 (pass_rtl_unswitch): Convert from a global struct to a subclass of
20149 rtl_opt_pass along with...
20150 (pass_data_rtl_unswitch): ...new pass_data instance and...
20151 (make_pass_rtl_unswitch): ...new function.
20152 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
20153 subclass of rtl_opt_pass along with...
20154 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
20156 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20157 (pass_rtl_doloop): Convert from a global struct to a subclass of
20158 rtl_opt_pass along with...
20159 (pass_data_rtl_doloop): ...new pass_data instance and...
20160 (make_pass_rtl_doloop): ...new function.
20161 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
20162 a subclass of rtl_opt_pass along with...
20163 (pass_data_lower_subreg): ...new pass_data instance and...
20164 (make_pass_lower_subreg): ...new function.
20165 (pass_lower_subreg2): Convert from a global struct to a subclass of
20166 rtl_opt_pass along with...
20167 (pass_data_lower_subreg2): ...new pass_data instance and...
20168 (make_pass_lower_subreg2): ...new function.
20169 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
20170 struct to a subclass of ipa_opt_pass_d along with...
20171 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
20172 (make_pass_ipa_lto_gimple_out): ...new function.
20173 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
20174 of ipa_opt_pass_d along with...
20175 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
20176 (make_pass_ipa_lto_finish_out): ...new function.
20177 * mode-switching.c (pass_mode_switching): Convert from a global struct
20178 to a subclass of rtl_opt_pass along with...
20179 (pass_data_mode_switching): ...new pass_data instance and...
20180 (make_pass_mode_switching): ...new function.
20181 * modulo-sched.c (pass_sms): Convert from a global struct to a
20182 subclass of rtl_opt_pass along with...
20183 (pass_data_sms): ...new pass_data instance and...
20184 (make_pass_sms): ...new function.
20185 * omp-low.c (pass_expand_omp): Convert from a global struct to a
20186 subclass of gimple_opt_pass along with...
20187 (pass_data_expand_omp): ...new pass_data instance and...
20188 (make_pass_expand_omp): ...new function.
20189 (pass_lower_omp): Convert from a global struct to a subclass of
20190 gimple_opt_pass along with...
20191 (pass_data_lower_omp): ...new pass_data instance and...
20192 (make_pass_lower_omp): ...new function.
20193 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
20194 of gimple_opt_pass along with...
20195 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
20196 (make_pass_diagnose_omp_blocks): ...new function.
20197 * passes.c (pass_early_local_passes): Convert from a global struct to
20198 a subclass of simple_ipa_opt_pass along with...
20199 (pass_data_early_local_passes): ...new pass_data instance and...
20200 (make_pass_early_local_passes): ...new function.
20201 (pass_all_early_optimizations): Convert from a global struct to a
20202 subclass of gimple_opt_pass along with...
20203 (pass_data_all_early_optimizations): ...new pass_data instance and...
20204 (make_pass_all_early_optimizations): ...new function.
20205 (pass_all_optimizations): Convert from a global struct to a subclass
20206 of gimple_opt_pass along with...
20207 (pass_data_all_optimizations): ...new pass_data instance and...
20208 (make_pass_all_optimizations): ...new function.
20209 (pass_all_optimizations_g): Convert from a global struct to a subclass
20210 of gimple_opt_pass along with...
20211 (pass_data_all_optimizations_g): ...new pass_data instance and...
20212 (make_pass_all_optimizations_g): ...new function.
20213 (pass_rest_of_compilation): Convert from a global struct to a subclass
20214 of rtl_opt_pass along with...
20215 (pass_data_rest_of_compilation): ...new pass_data instance and...
20216 (make_pass_rest_of_compilation): ...new function.
20217 (pass_postreload): Convert from a global struct to a subclass of
20218 rtl_opt_pass along with...
20219 (pass_data_postreload): ...new pass_data instance and...
20220 (make_pass_postreload): ...new function.
20221 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
20222 subclass of rtl_opt_pass along with...
20223 (pass_data_gcse2): ...new pass_data instance and...
20224 (make_pass_gcse2): ...new function.
20225 * postreload.c (pass_postreload_cse): Convert from a global struct to
20226 a subclass of rtl_opt_pass along with...
20227 (pass_data_postreload_cse): ...new pass_data instance and...
20228 (make_pass_postreload_cse): ...new function.
20229 * predict.c (pass_profile): Convert from a global struct to a subclass
20230 of gimple_opt_pass along with...
20231 (pass_data_profile): ...new pass_data instance and...
20232 (make_pass_profile): ...new function.
20233 (pass_strip_predict_hints): Convert from a global struct to a subclass
20234 of gimple_opt_pass along with...
20235 (pass_data_strip_predict_hints): ...new pass_data instance and...
20236 (make_pass_strip_predict_hints): ...new function.
20237 * recog.c (pass_peephole2): Convert from a global struct to a subclass
20238 of rtl_opt_pass along with...
20239 (pass_data_peephole2): ...new pass_data instance and...
20240 (make_pass_peephole2): ...new function.
20241 (pass_split_all_insns): Convert from a global struct to a subclass of
20242 rtl_opt_pass along with...
20243 (pass_data_split_all_insns): ...new pass_data instance and...
20244 (make_pass_split_all_insns): ...new function.
20245 (pass_split_after_reload): Convert from a global struct to a subclass
20246 of rtl_opt_pass along with...
20247 (pass_data_split_after_reload): ...new pass_data instance and...
20248 (make_pass_split_after_reload): ...new function.
20249 (pass_split_before_regstack): Convert from a global struct to a
20250 subclass of rtl_opt_pass along with...
20251 (pass_data_split_before_regstack): ...new pass_data instance and...
20252 (make_pass_split_before_regstack): ...new function.
20253 (pass_split_before_sched2): Convert from a global struct to a subclass
20254 of rtl_opt_pass along with...
20255 (pass_data_split_before_sched2): ...new pass_data instance and...
20256 (make_pass_split_before_sched2): ...new function.
20257 (pass_split_for_shorten_branches): Convert from a global struct to a
20258 subclass of rtl_opt_pass along with...
20259 (pass_data_split_for_shorten_branches): ...new pass_data instance
20261 (make_pass_split_for_shorten_branches): ...new function.
20262 * ree.c (pass_ree): Convert from a global struct to a subclass of
20263 rtl_opt_pass along with...
20264 (pass_data_ree): ...new pass_data instance and...
20265 (make_pass_ree): ...new function.
20266 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
20267 subclass of rtl_opt_pass along with...
20268 (pass_data_stack_regs): ...new pass_data instance and...
20269 (make_pass_stack_regs): ...new function.
20270 (pass_stack_regs_run): Convert from a global struct to a subclass of
20271 rtl_opt_pass along with...
20272 (pass_data_stack_regs_run): ...new pass_data instance and...
20273 (make_pass_stack_regs_run): ...new function.
20274 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
20275 subclass of rtl_opt_pass along with...
20276 (pass_data_cprop_hardreg): ...new pass_data instance and...
20277 (make_pass_cprop_hardreg): ...new function.
20278 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
20279 subclass of rtl_opt_pass along with...
20280 (pass_data_reginfo_init): ...new pass_data instance and...
20281 (make_pass_reginfo_init): ...new function.
20282 * regmove.c (pass_regmove): Convert from a global struct to a subclass
20283 of rtl_opt_pass along with...
20284 (pass_data_regmove): ...new pass_data instance and...
20285 (make_pass_regmove): ...new function.
20286 * regrename.c (pass_regrename): Convert from a global struct to a
20287 subclass of rtl_opt_pass along with...
20288 (pass_data_regrename): ...new pass_data instance and...
20289 (make_pass_regrename): ...new function.
20290 * reorg.c (pass_delay_slots): Convert from a global struct to a
20291 subclass of rtl_opt_pass along with...
20292 (pass_data_delay_slots): ...new pass_data instance and...
20293 (make_pass_delay_slots): ...new function.
20294 (pass_machine_reorg): Convert from a global struct to a subclass of
20295 rtl_opt_pass along with...
20296 (pass_data_machine_reorg): ...new pass_data instance and...
20297 (make_pass_machine_reorg): ...new function.
20298 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
20299 of rtl_opt_pass along with...
20300 (pass_data_sched): ...new pass_data instance and...
20301 (make_pass_sched): ...new function.
20302 (pass_sched2): Convert from a global struct to a subclass of
20303 rtl_opt_pass along with...
20304 (pass_data_sched2): ...new pass_data instance and...
20305 (make_pass_sched2): ...new function.
20306 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
20307 to a subclass of rtl_opt_pass along with...
20308 (pass_data_stack_ptr_mod): ...new pass_data instance and...
20309 (make_pass_stack_ptr_mod): ...new function.
20310 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
20311 to a subclass of rtl_opt_pass along with...
20312 (pass_data_rtl_store_motion): ...new pass_data instance and...
20313 (make_pass_rtl_store_motion): ...new function.
20314 * tracer.c (pass_tracer): Convert from a global struct to a subclass
20315 of gimple_opt_pass along with...
20316 (pass_data_tracer): ...new pass_data instance and...
20317 (make_pass_tracer): ...new function.
20318 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
20319 to a subclass of gimple_opt_pass along with...
20320 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
20321 (make_pass_diagnose_tm_blocks): ...new function.
20322 (pass_lower_tm): Convert from a global struct to a subclass of
20323 gimple_opt_pass along with...
20324 (pass_data_lower_tm): ...new pass_data instance and...
20325 (make_pass_lower_tm): ...new function.
20326 (pass_tm_init): Convert from a global struct to a subclass of
20327 gimple_opt_pass along with...
20328 (pass_data_tm_init): ...new pass_data instance and...
20329 (make_pass_tm_init): ...new function.
20330 (pass_tm_mark): Convert from a global struct to a subclass of
20331 gimple_opt_pass along with...
20332 (pass_data_tm_mark): ...new pass_data instance and...
20333 (make_pass_tm_mark): ...new function.
20334 (pass_tm_edges): Convert from a global struct to a subclass of
20335 gimple_opt_pass along with...
20336 (pass_data_tm_edges): ...new pass_data instance and...
20337 (make_pass_tm_edges): ...new function.
20338 (pass_tm_memopt): Convert from a global struct to a subclass of
20339 gimple_opt_pass along with...
20340 (pass_data_tm_memopt): ...new pass_data instance and...
20341 (make_pass_tm_memopt): ...new function.
20342 (pass_ipa_tm): Convert from a global struct to a subclass of
20343 simple_ipa_opt_pass along with...
20344 (pass_data_ipa_tm): ...new pass_data instance and...
20345 (make_pass_ipa_tm): ...new function.
20346 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
20347 subclass of gimple_opt_pass along with...
20348 (pass_data_call_cdce): ...new pass_data instance and...
20349 (make_pass_call_cdce): ...new function.
20350 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
20351 subclass of gimple_opt_pass along with...
20352 (pass_data_build_cfg): ...new pass_data instance and...
20353 (make_pass_build_cfg): ...new function.
20354 (pass_split_crit_edges): Convert from a global struct to a subclass of
20355 gimple_opt_pass along with...
20356 (pass_data_split_crit_edges): ...new pass_data instance and...
20357 (make_pass_split_crit_edges): ...new function.
20358 (pass_warn_function_return): Convert from a global struct to a
20359 subclass of gimple_opt_pass along with...
20360 (pass_data_warn_function_return): ...new pass_data instance and...
20361 (make_pass_warn_function_return): ...new function.
20362 (pass_warn_function_noreturn): Convert from a global struct to a
20363 subclass of gimple_opt_pass along with...
20364 (pass_data_warn_function_noreturn): ...new pass_data instance and...
20365 (make_pass_warn_function_noreturn): ...new function.
20366 (pass_warn_unused_result): Convert from a global struct to a subclass
20367 of gimple_opt_pass along with...
20368 (pass_data_warn_unused_result): ...new pass_data instance and...
20369 (make_pass_warn_unused_result): ...new function.
20370 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20371 a subclass of gimple_opt_pass along with...
20372 (pass_data_merge_phi): ...new pass_data instance and...
20373 (make_pass_merge_phi): ...new function.
20374 * tree-complex.c (pass_lower_complex): Convert from a global struct to
20375 a subclass of gimple_opt_pass along with...
20376 (pass_data_lower_complex): ...new pass_data instance and...
20377 (make_pass_lower_complex): ...new function.
20378 (pass_lower_complex_O0): Convert from a global struct to a subclass of
20379 gimple_opt_pass along with...
20380 (pass_data_lower_complex_O0): ...new pass_data instance and...
20381 (make_pass_lower_complex_O0): ...new function.
20382 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20383 subclass of gimple_opt_pass along with...
20384 (pass_data_lower_eh): ...new pass_data instance and...
20385 (make_pass_lower_eh): ...new function.
20386 (pass_refactor_eh): Convert from a global struct to a subclass of
20387 gimple_opt_pass along with...
20388 (pass_data_refactor_eh): ...new pass_data instance and...
20389 (make_pass_refactor_eh): ...new function.
20390 (pass_lower_resx): Convert from a global struct to a subclass of
20391 gimple_opt_pass along with...
20392 (pass_data_lower_resx): ...new pass_data instance and...
20393 (make_pass_lower_resx): ...new function.
20394 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20395 of gimple_opt_pass along with...
20396 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20397 (make_pass_lower_eh_dispatch): ...new function.
20398 (pass_cleanup_eh): Convert from a global struct to a subclass of
20399 gimple_opt_pass along with...
20400 (pass_data_cleanup_eh): ...new pass_data instance and...
20401 (make_pass_cleanup_eh): ...new function.
20402 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20403 to a subclass of simple_ipa_opt_pass along with...
20404 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20405 (make_pass_ipa_lower_emutls): ...new function.
20406 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20407 a subclass of gimple_opt_pass along with...
20408 (pass_data_if_conversion): ...new pass_data instance and...
20409 (make_pass_if_conversion): ...new function.
20410 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20411 subclass of gimple_opt_pass along with...
20412 (pass_data_build_ssa): ...new pass_data instance and...
20413 (make_pass_build_ssa): ...new function.
20414 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20415 global struct to a subclass of gimple_opt_pass along with...
20416 (pass_data_loop_distribution): ...new pass_data instance and...
20417 (make_pass_loop_distribution): ...new function.
20418 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20419 subclass of gimple_opt_pass along with...
20420 (pass_data_mudflap_1): ...new pass_data instance and...
20421 (make_pass_mudflap_1): ...new function.
20422 (pass_mudflap_2): Convert from a global struct to a subclass of
20423 gimple_opt_pass along with...
20424 (pass_data_mudflap_2): ...new pass_data instance and...
20425 (make_pass_mudflap_2): ...new function.
20426 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20427 subclass of gimple_opt_pass along with...
20428 (pass_data_mudflap_1): ...new pass_data instance and...
20429 (make_pass_mudflap_1): ...new function.
20430 (pass_mudflap_2): Convert from a global struct to a subclass of
20431 gimple_opt_pass along with...
20432 (pass_data_mudflap_2): ...new pass_data instance and...
20433 (make_pass_mudflap_2): ...new function.
20434 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20435 gimple_opt_pass along with...
20436 (pass_data_nrv): ...new pass_data instance and...
20437 (make_pass_nrv): ...new function.
20438 (pass_return_slot): Convert from a global struct to a subclass of
20439 gimple_opt_pass along with...
20440 (pass_data_return_slot): ...new pass_data instance and...
20441 (make_pass_return_slot): ...new function.
20442 * tree-object-size.c (pass_object_sizes): Convert from a global struct
20443 to a subclass of gimple_opt_pass along with...
20444 (pass_data_object_sizes): ...new pass_data instance and...
20445 (make_pass_object_sizes): ...new function.
20446 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20447 global struct to a subclass of gimple_opt_pass along with...
20448 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20450 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20451 (pass_fixup_cfg): Convert from a global struct to a subclass of
20452 gimple_opt_pass along with...
20453 (pass_data_fixup_cfg): ...new pass_data instance and...
20454 (make_pass_fixup_cfg): ...new function.
20455 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20456 (make_pass_mudflap_1): ...new function.
20457 (pass_mudflap_2): Replace declaration with that of...
20458 (make_pass_mudflap_2): ...new function.
20459 (pass_asan): Replace declaration with that of...
20460 (make_pass_asan): ...new function.
20461 (pass_asan_O0): Replace declaration with that of...
20462 (make_pass_asan_O0): ...new function.
20463 (pass_tsan): Replace declaration with that of...
20464 (make_pass_tsan): ...new function.
20465 (pass_tsan_O0): Replace declaration with that of...
20466 (make_pass_tsan_O0): ...new function.
20467 (pass_lower_cf): Replace declaration with that of...
20468 (make_pass_lower_cf): ...new function.
20469 (pass_refactor_eh): Replace declaration with that of...
20470 (make_pass_refactor_eh): ...new function.
20471 (pass_lower_eh): Replace declaration with that of...
20472 (make_pass_lower_eh): ...new function.
20473 (pass_lower_eh_dispatch): Replace declaration with that of...
20474 (make_pass_lower_eh_dispatch): ...new function.
20475 (pass_lower_resx): Replace declaration with that of...
20476 (make_pass_lower_resx): ...new function.
20477 (pass_build_cfg): Replace declaration with that of...
20478 (make_pass_build_cfg): ...new function.
20479 (pass_early_tree_profile): Replace declaration with that of...
20480 (make_pass_early_tree_profile): ...new function.
20481 (pass_cleanup_eh): Replace declaration with that of...
20482 (make_pass_cleanup_eh): ...new function.
20483 (pass_sra): Replace declaration with that of...
20484 (make_pass_sra): ...new function.
20485 (pass_sra_early): Replace declaration with that of...
20486 (make_pass_sra_early): ...new function.
20487 (pass_early_ipa_sra): Replace declaration with that of...
20488 (make_pass_early_ipa_sra): ...new function.
20489 (pass_tail_recursion): Replace declaration with that of...
20490 (make_pass_tail_recursion): ...new function.
20491 (pass_tail_calls): Replace declaration with that of...
20492 (make_pass_tail_calls): ...new function.
20493 (pass_tree_loop): Replace declaration with that of...
20494 (make_pass_tree_loop): ...new function.
20495 (pass_tree_loop_init): Replace declaration with that of...
20496 (make_pass_tree_loop_init): ...new function.
20497 (pass_lim): Replace declaration with that of...
20498 (make_pass_lim): ...new function.
20499 (pass_tree_unswitch): Replace declaration with that of...
20500 (make_pass_tree_unswitch): ...new function.
20501 (pass_predcom): Replace declaration with that of...
20502 (make_pass_predcom): ...new function.
20503 (pass_iv_canon): Replace declaration with that of...
20504 (make_pass_iv_canon): ...new function.
20505 (pass_scev_cprop): Replace declaration with that of...
20506 (make_pass_scev_cprop): ...new function.
20507 (pass_empty_loop): Replace declaration with that of...
20508 (make_pass_empty_loop): ...new function.
20509 (pass_record_bounds): Replace declaration with that of...
20510 (make_pass_record_bounds): ...new function.
20511 (pass_graphite): Replace declaration with that of...
20512 (make_pass_graphite): ...new function.
20513 (pass_graphite_transforms): Replace declaration with that of...
20514 (make_pass_graphite_transforms): ...new function.
20515 (pass_if_conversion): Replace declaration with that of...
20516 (make_pass_if_conversion): ...new function.
20517 (pass_loop_distribution): Replace declaration with that of...
20518 (make_pass_loop_distribution): ...new function.
20519 (pass_vectorize): Replace declaration with that of...
20520 (make_pass_vectorize): ...new function.
20521 (pass_slp_vectorize): Replace declaration with that of...
20522 (make_pass_slp_vectorize): ...new function.
20523 (pass_complete_unroll): Replace declaration with that of...
20524 (make_pass_complete_unroll): ...new function.
20525 (pass_complete_unrolli): Replace declaration with that of...
20526 (make_pass_complete_unrolli): ...new function.
20527 (pass_parallelize_loops): Replace declaration with that of...
20528 (make_pass_parallelize_loops): ...new function.
20529 (pass_loop_prefetch): Replace declaration with that of...
20530 (make_pass_loop_prefetch): ...new function.
20531 (pass_iv_optimize): Replace declaration with that of...
20532 (make_pass_iv_optimize): ...new function.
20533 (pass_tree_loop_done): Replace declaration with that of...
20534 (make_pass_tree_loop_done): ...new function.
20535 (pass_ch): Replace declaration with that of...
20536 (make_pass_ch): ...new function.
20537 (pass_ccp): Replace declaration with that of...
20538 (make_pass_ccp): ...new function.
20539 (pass_phi_only_cprop): Replace declaration with that of...
20540 (make_pass_phi_only_cprop): ...new function.
20541 (pass_build_ssa): Replace declaration with that of...
20542 (make_pass_build_ssa): ...new function.
20543 (pass_build_alias): Replace declaration with that of...
20544 (make_pass_build_alias): ...new function.
20545 (pass_build_ealias): Replace declaration with that of...
20546 (make_pass_build_ealias): ...new function.
20547 (pass_dominator): Replace declaration with that of...
20548 (make_pass_dominator): ...new function.
20549 (pass_dce): Replace declaration with that of...
20550 (make_pass_dce): ...new function.
20551 (pass_dce_loop): Replace declaration with that of...
20552 (make_pass_dce_loop): ...new function.
20553 (pass_cd_dce): Replace declaration with that of...
20554 (make_pass_cd_dce): ...new function.
20555 (pass_call_cdce): Replace declaration with that of...
20556 (make_pass_call_cdce): ...new function.
20557 (pass_merge_phi): Replace declaration with that of...
20558 (make_pass_merge_phi): ...new function.
20559 (pass_split_crit_edges): Replace declaration with that of...
20560 (make_pass_split_crit_edges): ...new function.
20561 (pass_pre): Replace declaration with that of...
20562 (make_pass_pre): ...new function.
20563 (pass_profile): Replace declaration with that of...
20564 (make_pass_profile): ...new function.
20565 (pass_strip_predict_hints): Replace declaration with that of...
20566 (make_pass_strip_predict_hints): ...new function.
20567 (pass_lower_complex_O0): Replace declaration with that of...
20568 (make_pass_lower_complex_O0): ...new function.
20569 (pass_lower_complex): Replace declaration with that of...
20570 (make_pass_lower_complex): ...new function.
20571 (pass_lower_vector): Replace declaration with that of...
20572 (make_pass_lower_vector): ...new function.
20573 (pass_lower_vector_ssa): Replace declaration with that of...
20574 (make_pass_lower_vector_ssa): ...new function.
20575 (pass_lower_omp): Replace declaration with that of...
20576 (make_pass_lower_omp): ...new function.
20577 (pass_diagnose_omp_blocks): Replace declaration with that of...
20578 (make_pass_diagnose_omp_blocks): ...new function.
20579 (pass_expand_omp): Replace declaration with that of...
20580 (make_pass_expand_omp): ...new function.
20581 (pass_expand_omp_ssa): Replace declaration with that of...
20582 (make_pass_expand_omp_ssa): ...new function.
20583 (pass_object_sizes): Replace declaration with that of...
20584 (make_pass_object_sizes): ...new function.
20585 (pass_strlen): Replace declaration with that of...
20586 (make_pass_strlen): ...new function.
20587 (pass_fold_builtins): Replace declaration with that of...
20588 (make_pass_fold_builtins): ...new function.
20589 (pass_stdarg): Replace declaration with that of...
20590 (make_pass_stdarg): ...new function.
20591 (pass_early_warn_uninitialized): Replace declaration with that of...
20592 (make_pass_early_warn_uninitialized): ...new function.
20593 (pass_late_warn_uninitialized): Replace declaration with that of...
20594 (make_pass_late_warn_uninitialized): ...new function.
20595 (pass_cse_reciprocals): Replace declaration with that of...
20596 (make_pass_cse_reciprocals): ...new function.
20597 (pass_cse_sincos): Replace declaration with that of...
20598 (make_pass_cse_sincos): ...new function.
20599 (pass_optimize_bswap): Replace declaration with that of...
20600 (make_pass_optimize_bswap): ...new function.
20601 (pass_optimize_widening_mul): Replace declaration with that of...
20602 (make_pass_optimize_widening_mul): ...new function.
20603 (pass_warn_function_return): Replace declaration with that of...
20604 (make_pass_warn_function_return): ...new function.
20605 (pass_warn_function_noreturn): Replace declaration with that of...
20606 (make_pass_warn_function_noreturn): ...new function.
20607 (pass_cselim): Replace declaration with that of...
20608 (make_pass_cselim): ...new function.
20609 (pass_phiopt): Replace declaration with that of...
20610 (make_pass_phiopt): ...new function.
20611 (pass_forwprop): Replace declaration with that of...
20612 (make_pass_forwprop): ...new function.
20613 (pass_phiprop): Replace declaration with that of...
20614 (make_pass_phiprop): ...new function.
20615 (pass_tree_ifcombine): Replace declaration with that of...
20616 (make_pass_tree_ifcombine): ...new function.
20617 (pass_dse): Replace declaration with that of...
20618 (make_pass_dse): ...new function.
20619 (pass_nrv): Replace declaration with that of...
20620 (make_pass_nrv): ...new function.
20621 (pass_rename_ssa_copies): Replace declaration with that of...
20622 (make_pass_rename_ssa_copies): ...new function.
20623 (pass_sink_code): Replace declaration with that of...
20624 (make_pass_sink_code): ...new function.
20625 (pass_fre): Replace declaration with that of...
20626 (make_pass_fre): ...new function.
20627 (pass_check_data_deps): Replace declaration with that of...
20628 (make_pass_check_data_deps): ...new function.
20629 (pass_copy_prop): Replace declaration with that of...
20630 (make_pass_copy_prop): ...new function.
20631 (pass_vrp): Replace declaration with that of...
20632 (make_pass_vrp): ...new function.
20633 (pass_uncprop): Replace declaration with that of...
20634 (make_pass_uncprop): ...new function.
20635 (pass_return_slot): Replace declaration with that of...
20636 (make_pass_return_slot): ...new function.
20637 (pass_reassoc): Replace declaration with that of...
20638 (make_pass_reassoc): ...new function.
20639 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20640 (make_pass_rebuild_cgraph_edges): ...new function.
20641 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20642 (make_pass_remove_cgraph_callee_edges): ...new function.
20643 (pass_build_cgraph_edges): Replace declaration with that of...
20644 (make_pass_build_cgraph_edges): ...new function.
20645 (pass_local_pure_const): Replace declaration with that of...
20646 (make_pass_local_pure_const): ...new function.
20647 (pass_tracer): Replace declaration with that of...
20648 (make_pass_tracer): ...new function.
20649 (pass_warn_unused_result): Replace declaration with that of...
20650 (make_pass_warn_unused_result): ...new function.
20651 (pass_diagnose_tm_blocks): Replace declaration with that of...
20652 (make_pass_diagnose_tm_blocks): ...new function.
20653 (pass_lower_tm): Replace declaration with that of...
20654 (make_pass_lower_tm): ...new function.
20655 (pass_tm_init): Replace declaration with that of...
20656 (make_pass_tm_init): ...new function.
20657 (pass_tm_mark): Replace declaration with that of...
20658 (make_pass_tm_mark): ...new function.
20659 (pass_tm_memopt): Replace declaration with that of...
20660 (make_pass_tm_memopt): ...new function.
20661 (pass_tm_edges): Replace declaration with that of...
20662 (make_pass_tm_edges): ...new function.
20663 (pass_split_functions): Replace declaration with that of...
20664 (make_pass_split_functions): ...new function.
20665 (pass_feedback_split_functions): Replace declaration with that of...
20666 (make_pass_feedback_split_functions): ...new function.
20667 (pass_strength_reduction): Replace declaration with that of...
20668 (make_pass_strength_reduction): ...new function.
20669 (pass_ipa_lower_emutls): Replace declaration with that of...
20670 (make_pass_ipa_lower_emutls): ...new function.
20671 (pass_ipa_function_and_variable_visibility): Replace declaration with
20673 (make_pass_ipa_function_and_variable_visibility): ...new function.
20674 (pass_ipa_tree_profile): Replace declaration with that of...
20675 (make_pass_ipa_tree_profile): ...new function.
20676 (pass_early_local_passes): Replace declaration with that of...
20677 (make_pass_early_local_passes): ...new function.
20678 (pass_ipa_whole_program_visibility): Replace declaration with that
20680 (make_pass_ipa_whole_program_visibility): ...new function.
20681 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20682 (make_pass_ipa_lto_gimple_out): ...new function.
20683 (pass_ipa_increase_alignment): Replace declaration with that of...
20684 (make_pass_ipa_increase_alignment): ...new function.
20685 (pass_ipa_inline): Replace declaration with that of...
20686 (make_pass_ipa_inline): ...new function.
20687 (pass_ipa_free_lang_data): Replace declaration with that of...
20688 (make_pass_ipa_free_lang_data): ...new function.
20689 (pass_ipa_free_inline_summary): Replace declaration with that of...
20690 (make_pass_ipa_free_inline_summary): ...new function.
20691 (pass_ipa_cp): Replace declaration with that of...
20692 (make_pass_ipa_cp): ...new function.
20693 (pass_ipa_reference): Replace declaration with that of...
20694 (make_pass_ipa_reference): ...new function.
20695 (pass_ipa_pure_const): Replace declaration with that of...
20696 (make_pass_ipa_pure_const): ...new function.
20697 (pass_ipa_pta): Replace declaration with that of...
20698 (make_pass_ipa_pta): ...new function.
20699 (pass_ipa_lto_finish_out): Replace declaration with that of...
20700 (make_pass_ipa_lto_finish_out): ...new function.
20701 (pass_ipa_tm): Replace declaration with that of...
20702 (make_pass_ipa_tm): ...new function.
20703 (pass_ipa_profile): Replace declaration with that of...
20704 (make_pass_ipa_profile): ...new function.
20705 (pass_ipa_cdtor_merge): Replace declaration with that of...
20706 (make_pass_ipa_cdtor_merge): ...new function.
20707 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20709 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20710 (pass_init_datastructures): Replace declaration with that of...
20711 (make_pass_init_datastructures): ...new function.
20712 (pass_fixup_cfg): Replace declaration with that of...
20713 (make_pass_fixup_cfg): ...new function.
20714 (pass_expand): Replace declaration with that of...
20715 (make_pass_expand): ...new function.
20716 (pass_instantiate_virtual_regs): Replace declaration with that of...
20717 (make_pass_instantiate_virtual_regs): ...new function.
20718 (pass_rtl_fwprop): Replace declaration with that of...
20719 (make_pass_rtl_fwprop): ...new function.
20720 (pass_rtl_fwprop_addr): Replace declaration with that of...
20721 (make_pass_rtl_fwprop_addr): ...new function.
20722 (pass_jump): Replace declaration with that of...
20723 (make_pass_jump): ...new function.
20724 (pass_jump2): Replace declaration with that of...
20725 (make_pass_jump2): ...new function.
20726 (pass_lower_subreg): Replace declaration with that of...
20727 (make_pass_lower_subreg): ...new function.
20728 (pass_cse): Replace declaration with that of...
20729 (make_pass_cse): ...new function.
20730 (pass_fast_rtl_dce): Replace declaration with that of...
20731 (make_pass_fast_rtl_dce): ...new function.
20732 (pass_ud_rtl_dce): Replace declaration with that of...
20733 (make_pass_ud_rtl_dce): ...new function.
20734 (pass_rtl_dce): Replace declaration with that of...
20735 (make_pass_rtl_dce): ...new function.
20736 (pass_rtl_dse1): Replace declaration with that of...
20737 (make_pass_rtl_dse1): ...new function.
20738 (pass_rtl_dse2): Replace declaration with that of...
20739 (make_pass_rtl_dse2): ...new function.
20740 (pass_rtl_dse3): Replace declaration with that of...
20741 (make_pass_rtl_dse3): ...new function.
20742 (pass_rtl_cprop): Replace declaration with that of...
20743 (make_pass_rtl_cprop): ...new function.
20744 (pass_rtl_pre): Replace declaration with that of...
20745 (make_pass_rtl_pre): ...new function.
20746 (pass_rtl_hoist): Replace declaration with that of...
20747 (make_pass_rtl_hoist): ...new function.
20748 (pass_rtl_store_motion): Replace declaration with that of...
20749 (make_pass_rtl_store_motion): ...new function.
20750 (pass_cse_after_global_opts): Replace declaration with that of...
20751 (make_pass_cse_after_global_opts): ...new function.
20752 (pass_rtl_ifcvt): Replace declaration with that of...
20753 (make_pass_rtl_ifcvt): ...new function.
20754 (pass_into_cfg_layout_mode): Replace declaration with that of...
20755 (make_pass_into_cfg_layout_mode): ...new function.
20756 (pass_outof_cfg_layout_mode): Replace declaration with that of...
20757 (make_pass_outof_cfg_layout_mode): ...new function.
20758 (pass_loop2): Replace declaration with that of...
20759 (make_pass_loop2): ...new function.
20760 (pass_rtl_loop_init): Replace declaration with that of...
20761 (make_pass_rtl_loop_init): ...new function.
20762 (pass_rtl_move_loop_invariants): Replace declaration with that of...
20763 (make_pass_rtl_move_loop_invariants): ...new function.
20764 (pass_rtl_unswitch): Replace declaration with that of...
20765 (make_pass_rtl_unswitch): ...new function.
20766 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20767 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20768 (pass_rtl_doloop): Replace declaration with that of...
20769 (make_pass_rtl_doloop): ...new function.
20770 (pass_rtl_loop_done): Replace declaration with that of...
20771 (make_pass_rtl_loop_done): ...new function.
20772 (pass_web): Replace declaration with that of...
20773 (make_pass_web): ...new function.
20774 (pass_cse2): Replace declaration with that of...
20775 (make_pass_cse2): ...new function.
20776 (pass_df_initialize_opt): Replace declaration with that of...
20777 (make_pass_df_initialize_opt): ...new function.
20778 (pass_df_initialize_no_opt): Replace declaration with that of...
20779 (make_pass_df_initialize_no_opt): ...new function.
20780 (pass_reginfo_init): Replace declaration with that of...
20781 (make_pass_reginfo_init): ...new function.
20782 (pass_inc_dec): Replace declaration with that of...
20783 (make_pass_inc_dec): ...new function.
20784 (pass_stack_ptr_mod): Replace declaration with that of...
20785 (make_pass_stack_ptr_mod): ...new function.
20786 (pass_initialize_regs): Replace declaration with that of...
20787 (make_pass_initialize_regs): ...new function.
20788 (pass_combine): Replace declaration with that of...
20789 (make_pass_combine): ...new function.
20790 (pass_if_after_combine): Replace declaration with that of...
20791 (make_pass_if_after_combine): ...new function.
20792 (pass_ree): Replace declaration with that of...
20793 (make_pass_ree): ...new function.
20794 (pass_partition_blocks): Replace declaration with that of...
20795 (make_pass_partition_blocks): ...new function.
20796 (pass_match_asm_constraints): Replace declaration with that of...
20797 (make_pass_match_asm_constraints): ...new function.
20798 (pass_regmove): Replace declaration with that of...
20799 (make_pass_regmove): ...new function.
20800 (pass_split_all_insns): Replace declaration with that of...
20801 (make_pass_split_all_insns): ...new function.
20802 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20803 (make_pass_fast_rtl_byte_dce): ...new function.
20804 (pass_lower_subreg2): Replace declaration with that of...
20805 (make_pass_lower_subreg2): ...new function.
20806 (pass_mode_switching): Replace declaration with that of...
20807 (make_pass_mode_switching): ...new function.
20808 (pass_sms): Replace declaration with that of...
20809 (make_pass_sms): ...new function.
20810 (pass_sched): Replace declaration with that of...
20811 (make_pass_sched): ...new function.
20812 (pass_ira): Replace declaration with that of...
20813 (make_pass_ira): ...new function.
20814 (pass_reload): Replace declaration with that of...
20815 (make_pass_reload): ...new function.
20816 (pass_clean_state): Replace declaration with that of...
20817 (make_pass_clean_state): ...new function.
20818 (pass_branch_prob): Replace declaration with that of...
20819 (make_pass_branch_prob): ...new function.
20820 (pass_value_profile_transformations): Replace declaration with that
20822 (make_pass_value_profile_transformations): ...new function.
20823 (pass_postreload_cse): Replace declaration with that of...
20824 (make_pass_postreload_cse): ...new function.
20825 (pass_gcse2): Replace declaration with that of...
20826 (make_pass_gcse2): ...new function.
20827 (pass_split_after_reload): Replace declaration with that of...
20828 (make_pass_split_after_reload): ...new function.
20829 (pass_branch_target_load_optimize1): Replace declaration with that
20831 (make_pass_branch_target_load_optimize1): ...new function.
20832 (pass_thread_prologue_and_epilogue): Replace declaration with that
20834 (make_pass_thread_prologue_and_epilogue): ...new function.
20835 (pass_stack_adjustments): Replace declaration with that of...
20836 (make_pass_stack_adjustments): ...new function.
20837 (pass_peephole2): Replace declaration with that of...
20838 (make_pass_peephole2): ...new function.
20839 (pass_if_after_reload): Replace declaration with that of...
20840 (make_pass_if_after_reload): ...new function.
20841 (pass_regrename): Replace declaration with that of...
20842 (make_pass_regrename): ...new function.
20843 (pass_cprop_hardreg): Replace declaration with that of...
20844 (make_pass_cprop_hardreg): ...new function.
20845 (pass_reorder_blocks): Replace declaration with that of...
20846 (make_pass_reorder_blocks): ...new function.
20847 (pass_branch_target_load_optimize2): Replace declaration with that
20849 (make_pass_branch_target_load_optimize2): ...new function.
20850 (pass_leaf_regs): Replace declaration with that of...
20851 (make_pass_leaf_regs): ...new function.
20852 (pass_split_before_sched2): Replace declaration with that of...
20853 (make_pass_split_before_sched2): ...new function.
20854 (pass_compare_elim_after_reload): Replace declaration with that of...
20855 (make_pass_compare_elim_after_reload): ...new function.
20856 (pass_sched2): Replace declaration with that of...
20857 (make_pass_sched2): ...new function.
20858 (pass_stack_regs): Replace declaration with that of...
20859 (make_pass_stack_regs): ...new function.
20860 (pass_stack_regs_run): Replace declaration with that of...
20861 (make_pass_stack_regs_run): ...new function.
20862 (pass_df_finish): Replace declaration with that of...
20863 (make_pass_df_finish): ...new function.
20864 (pass_compute_alignments): Replace declaration with that of...
20865 (make_pass_compute_alignments): ...new function.
20866 (pass_duplicate_computed_gotos): Replace declaration with that of...
20867 (make_pass_duplicate_computed_gotos): ...new function.
20868 (pass_variable_tracking): Replace declaration with that of...
20869 (make_pass_variable_tracking): ...new function.
20870 (pass_free_cfg): Replace declaration with that of...
20871 (make_pass_free_cfg): ...new function.
20872 (pass_machine_reorg): Replace declaration with that of...
20873 (make_pass_machine_reorg): ...new function.
20874 (pass_cleanup_barriers): Replace declaration with that of...
20875 (make_pass_cleanup_barriers): ...new function.
20876 (pass_delay_slots): Replace declaration with that of...
20877 (make_pass_delay_slots): ...new function.
20878 (pass_split_for_shorten_branches): Replace declaration with that of...
20879 (make_pass_split_for_shorten_branches): ...new function.
20880 (pass_split_before_regstack): Replace declaration with that of...
20881 (make_pass_split_before_regstack): ...new function.
20882 (pass_convert_to_eh_region_ranges): Replace declaration with that
20884 (make_pass_convert_to_eh_region_ranges): ...new function.
20885 (pass_shorten_branches): Replace declaration with that of...
20886 (make_pass_shorten_branches): ...new function.
20887 (pass_set_nothrow_function_flags): Replace declaration with that of...
20888 (make_pass_set_nothrow_function_flags): ...new function.
20889 (pass_dwarf2_frame): Replace declaration with that of...
20890 (make_pass_dwarf2_frame): ...new function.
20891 (pass_final): Replace declaration with that of...
20892 (make_pass_final): ...new function.
20893 (pass_rtl_seqabstr): Replace declaration with that of...
20894 (make_pass_rtl_seqabstr): ...new function.
20895 (pass_release_ssa_names): Replace declaration with that of...
20896 (make_pass_release_ssa_names): ...new function.
20897 (pass_early_inline): Replace declaration with that of...
20898 (make_pass_early_inline): ...new function.
20899 (pass_inline_parameters): Replace declaration with that of...
20900 (make_pass_inline_parameters): ...new function.
20901 (pass_update_address_taken): Replace declaration with that of...
20902 (make_pass_update_address_taken): ...new function.
20903 (pass_convert_switch): Replace declaration with that of...
20904 (make_pass_convert_switch): ...new function.
20905 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20906 to a subclass of simple_ipa_opt_pass along with...
20907 (pass_data_ipa_tree_profile): ...new pass_data instance and...
20908 (make_pass_ipa_tree_profile): ...new function.
20909 * tree-sra.c (pass_sra_early): Convert from a global struct to a
20910 subclass of gimple_opt_pass along with...
20911 (pass_data_sra_early): ...new pass_data instance and...
20912 (make_pass_sra_early): ...new function.
20913 (pass_sra): Convert from a global struct to a subclass of
20914 gimple_opt_pass along with...
20915 (pass_data_sra): ...new pass_data instance and...
20916 (make_pass_sra): ...new function.
20917 (pass_early_ipa_sra): Convert from a global struct to a subclass of
20918 gimple_opt_pass along with...
20919 (pass_data_early_ipa_sra): ...new pass_data instance and...
20920 (make_pass_early_ipa_sra): ...new function.
20921 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20922 subclass of gimple_opt_pass along with...
20923 (pass_data_ccp): ...new pass_data instance and...
20924 (make_pass_ccp): ...new function.
20925 (pass_fold_builtins): Convert from a global struct to a subclass of
20926 gimple_opt_pass along with...
20927 (pass_data_fold_builtins): ...new pass_data instance and...
20928 (make_pass_fold_builtins): ...new function.
20929 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20930 subclass of gimple_opt_pass along with...
20931 (pass_data_copy_prop): ...new pass_data instance and...
20932 (make_pass_copy_prop): ...new function.
20933 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20934 global struct to a subclass of gimple_opt_pass along with...
20935 (pass_data_rename_ssa_copies): ...new pass_data instance and...
20936 (make_pass_rename_ssa_copies): ...new function.
20937 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20938 subclass of gimple_opt_pass along with...
20939 (pass_data_dce): ...new pass_data instance and...
20940 (make_pass_dce): ...new function.
20941 (pass_dce_loop): Convert from a global struct to a subclass of
20942 gimple_opt_pass along with...
20943 (pass_data_dce_loop): ...new pass_data instance and...
20944 (make_pass_dce_loop): ...new function.
20945 (pass_cd_dce): Convert from a global struct to a subclass of
20946 gimple_opt_pass along with...
20947 (pass_data_cd_dce): ...new pass_data instance and...
20948 (make_pass_cd_dce): ...new function.
20949 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20950 subclass of gimple_opt_pass along with...
20951 (pass_data_dominator): ...new pass_data instance and...
20952 (make_pass_dominator): ...new function.
20953 (pass_phi_only_cprop): Convert from a global struct to a subclass of
20954 gimple_opt_pass along with...
20955 (pass_data_phi_only_cprop): ...new pass_data instance and...
20956 (make_pass_phi_only_cprop): ...new function.
20957 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20958 subclass of gimple_opt_pass along with...
20959 (pass_data_dse): ...new pass_data instance and...
20960 (make_pass_dse): ...new function.
20961 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20962 a subclass of gimple_opt_pass along with...
20963 (pass_data_forwprop): ...new pass_data instance and...
20964 (make_pass_forwprop): ...new function.
20965 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20966 struct to a subclass of gimple_opt_pass along with...
20967 (pass_data_tree_ifcombine): ...new pass_data instance and...
20968 (make_pass_tree_ifcombine): ...new function.
20969 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20970 subclass of gimple_opt_pass along with...
20971 (pass_data_ch): ...new pass_data instance and...
20972 (make_pass_ch): ...new function.
20973 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20974 subclass of gimple_opt_pass along with...
20975 (pass_data_tree_loop): ...new pass_data instance and...
20976 (make_pass_tree_loop): ...new function.
20977 (pass_tree_loop_init): Convert from a global struct to a subclass of
20978 gimple_opt_pass along with...
20979 (pass_data_tree_loop_init): ...new pass_data instance and...
20980 (make_pass_tree_loop_init): ...new function.
20981 (pass_lim): Convert from a global struct to a subclass of
20982 gimple_opt_pass along with...
20983 (pass_data_lim): ...new pass_data instance and...
20984 (make_pass_lim): ...new function.
20985 (pass_tree_unswitch): Convert from a global struct to a subclass of
20986 gimple_opt_pass along with...
20987 (pass_data_tree_unswitch): ...new pass_data instance and...
20988 (make_pass_tree_unswitch): ...new function.
20989 (pass_predcom): Convert from a global struct to a subclass of
20990 gimple_opt_pass along with...
20991 (pass_data_predcom): ...new pass_data instance and...
20992 (make_pass_predcom): ...new function.
20993 (pass_vectorize): Convert from a global struct to a subclass of
20994 gimple_opt_pass along with...
20995 (pass_data_vectorize): ...new pass_data instance and...
20996 (make_pass_vectorize): ...new function.
20997 (pass_graphite): Convert from a global struct to a subclass of
20998 gimple_opt_pass along with...
20999 (pass_data_graphite): ...new pass_data instance and...
21000 (make_pass_graphite): ...new function.
21001 (pass_graphite_transforms): Convert from a global struct to a subclass
21002 of gimple_opt_pass along with...
21003 (pass_data_graphite_transforms): ...new pass_data instance and...
21004 (make_pass_graphite_transforms): ...new function.
21005 (pass_check_data_deps): Convert from a global struct to a subclass of
21006 gimple_opt_pass along with...
21007 (pass_data_check_data_deps): ...new pass_data instance and...
21008 (make_pass_check_data_deps): ...new function.
21009 (pass_iv_canon): Convert from a global struct to a subclass of
21010 gimple_opt_pass along with...
21011 (pass_data_iv_canon): ...new pass_data instance and...
21012 (make_pass_iv_canon): ...new function.
21013 (pass_scev_cprop): Convert from a global struct to a subclass of
21014 gimple_opt_pass along with...
21015 (pass_data_scev_cprop): ...new pass_data instance and...
21016 (make_pass_scev_cprop): ...new function.
21017 (pass_record_bounds): Convert from a global struct to a subclass of
21018 gimple_opt_pass along with...
21019 (pass_data_record_bounds): ...new pass_data instance and...
21020 (make_pass_record_bounds): ...new function.
21021 (pass_complete_unroll): Convert from a global struct to a subclass of
21022 gimple_opt_pass along with...
21023 (pass_data_complete_unroll): ...new pass_data instance and...
21024 (make_pass_complete_unroll): ...new function.
21025 (pass_complete_unrolli): Convert from a global struct to a subclass of
21026 gimple_opt_pass along with...
21027 (pass_data_complete_unrolli): ...new pass_data instance and...
21028 (make_pass_complete_unrolli): ...new function.
21029 (pass_parallelize_loops): Convert from a global struct to a subclass
21030 of gimple_opt_pass along with...
21031 (pass_data_parallelize_loops): ...new pass_data instance and...
21032 (make_pass_parallelize_loops): ...new function.
21033 (pass_loop_prefetch): Convert from a global struct to a subclass of
21034 gimple_opt_pass along with...
21035 (pass_data_loop_prefetch): ...new pass_data instance and...
21036 (make_pass_loop_prefetch): ...new function.
21037 (pass_iv_optimize): Convert from a global struct to a subclass of
21038 gimple_opt_pass along with...
21039 (pass_data_iv_optimize): ...new pass_data instance and...
21040 (make_pass_iv_optimize): ...new function.
21041 (pass_tree_loop_done): Convert from a global struct to a subclass of
21042 gimple_opt_pass along with...
21043 (pass_data_tree_loop_done): ...new pass_data instance and...
21044 (make_pass_tree_loop_done): ...new function.
21045 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
21046 struct to a subclass of gimple_opt_pass along with...
21047 (pass_data_cse_reciprocals): ...new pass_data instance and...
21048 (make_pass_cse_reciprocals): ...new function.
21049 (pass_cse_sincos): Convert from a global struct to a subclass of
21050 gimple_opt_pass along with...
21051 (pass_data_cse_sincos): ...new pass_data instance and...
21052 (make_pass_cse_sincos): ...new function.
21053 (pass_optimize_bswap): Convert from a global struct to a subclass of
21054 gimple_opt_pass along with...
21055 (pass_data_optimize_bswap): ...new pass_data instance and...
21056 (make_pass_optimize_bswap): ...new function.
21057 (pass_optimize_widening_mul): Convert from a global struct to a
21058 subclass of gimple_opt_pass along with...
21059 (pass_data_optimize_widening_mul): ...new pass_data instance and...
21060 (make_pass_optimize_widening_mul): ...new function.
21061 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
21062 subclass of gimple_opt_pass along with...
21063 (pass_data_phiopt): ...new pass_data instance and...
21064 (make_pass_phiopt): ...new function.
21065 (pass_cselim): Convert from a global struct to a subclass of
21066 gimple_opt_pass along with...
21067 (pass_data_cselim): ...new pass_data instance and...
21068 (make_pass_cselim): ...new function.
21069 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
21070 subclass of gimple_opt_pass along with...
21071 (pass_data_phiprop): ...new pass_data instance and...
21072 (make_pass_phiprop): ...new function.
21073 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
21074 subclass of gimple_opt_pass along with...
21075 (pass_data_pre): ...new pass_data instance and...
21076 (make_pass_pre): ...new function.
21077 (pass_fre): Convert from a global struct to a subclass of
21078 gimple_opt_pass along with...
21079 (pass_data_fre): ...new pass_data instance and...
21080 (make_pass_fre): ...new function.
21081 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
21082 subclass of gimple_opt_pass along with...
21083 (pass_data_reassoc): ...new pass_data instance and...
21084 (make_pass_reassoc): ...new function.
21085 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
21086 subclass of gimple_opt_pass along with...
21087 (pass_data_sink_code): ...new pass_data instance and...
21088 (make_pass_sink_code): ...new function.
21089 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
21090 subclass of gimple_opt_pass along with...
21091 (pass_data_strlen): ...new pass_data instance and...
21092 (make_pass_strlen): ...new function.
21093 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
21094 struct to a subclass of gimple_opt_pass along with...
21095 (pass_data_build_alias): ...new pass_data instance and...
21096 (make_pass_build_alias): ...new function.
21097 (pass_build_ealias): Convert from a global struct to a subclass of
21098 gimple_opt_pass along with...
21099 (pass_data_build_ealias): ...new pass_data instance and...
21100 (make_pass_build_ealias): ...new function.
21101 (pass_ipa_pta): Convert from a global struct to a subclass of
21102 simple_ipa_opt_pass along with...
21103 (pass_data_ipa_pta): ...new pass_data instance and...
21104 (make_pass_ipa_pta): ...new function.
21105 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
21106 subclass of gimple_opt_pass along with...
21107 (pass_data_uncprop): ...new pass_data instance and...
21108 (make_pass_uncprop): ...new function.
21109 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
21110 global struct to a subclass of gimple_opt_pass along with...
21111 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
21112 (make_pass_late_warn_uninitialized): ...new function.
21113 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
21114 to a subclass of gimple_opt_pass along with...
21115 (pass_data_init_datastructures): ...new pass_data instance and...
21116 (make_pass_init_datastructures): ...new function.
21117 (pass_early_warn_uninitialized): Convert from a global struct to a
21118 subclass of gimple_opt_pass along with...
21119 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
21120 (make_pass_early_warn_uninitialized): ...new function.
21121 (pass_update_address_taken): Convert from a global struct to a
21122 subclass of gimple_opt_pass along with...
21123 (pass_data_update_address_taken): ...new pass_data instance and...
21124 (make_pass_update_address_taken): ...new function.
21125 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
21126 struct to a subclass of gimple_opt_pass along with...
21127 (pass_data_release_ssa_names): ...new pass_data instance and...
21128 (make_pass_release_ssa_names): ...new function.
21129 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
21130 subclass of gimple_opt_pass along with...
21131 (pass_data_stdarg): ...new pass_data instance and...
21132 (make_pass_stdarg): ...new function.
21133 * tree-switch-conversion.c (pass_convert_switch): Convert from a
21134 global struct to a subclass of gimple_opt_pass along with...
21135 (pass_data_convert_switch): ...new pass_data instance and...
21136 (make_pass_convert_switch): ...new function.
21137 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
21138 to a subclass of gimple_opt_pass along with...
21139 (pass_data_tail_recursion): ...new pass_data instance and...
21140 (make_pass_tail_recursion): ...new function.
21141 (pass_tail_calls): Convert from a global struct to a subclass of
21142 gimple_opt_pass along with...
21143 (pass_data_tail_calls): ...new pass_data instance and...
21144 (make_pass_tail_calls): ...new function.
21145 * tree-vect-generic.c (pass_lower_vector): Convert from a global
21146 struct to a subclass of gimple_opt_pass along with...
21147 (pass_data_lower_vector): ...new pass_data instance and...
21148 (make_pass_lower_vector): ...new function.
21149 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
21150 gimple_opt_pass along with...
21151 (pass_data_lower_vector_ssa): ...new pass_data instance and...
21152 (make_pass_lower_vector_ssa): ...new function.
21153 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
21154 to a subclass of gimple_opt_pass along with...
21155 (pass_data_slp_vectorize): ...new pass_data instance and...
21156 (make_pass_slp_vectorize): ...new function.
21157 (pass_ipa_increase_alignment): Convert from a global struct to a
21158 subclass of simple_ipa_opt_pass along with...
21159 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
21160 (make_pass_ipa_increase_alignment): ...new function.
21161 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
21162 gimple_opt_pass along with...
21163 (pass_data_vrp): ...new pass_data instance and...
21164 (make_pass_vrp): ...new function.
21165 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
21166 subclass of simple_ipa_opt_pass along with...
21167 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
21168 (make_pass_ipa_free_lang_data): ...new function.
21169 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
21170 gimple_opt_pass along with...
21171 (pass_data_tsan): ...new pass_data instance and...
21172 (make_pass_tsan): ...new function.
21173 (pass_tsan_O0): Convert from a global struct to a subclass of
21174 gimple_opt_pass along with...
21175 (pass_data_tsan_O0): ...new pass_data instance and...
21176 (make_pass_tsan_O0): ...new function.
21177 * var-tracking.c (pass_variable_tracking): Convert from a global
21178 struct to a subclass of rtl_opt_pass along with...
21179 (pass_data_variable_tracking): ...new pass_data instance and...
21180 (make_pass_variable_tracking): ...new function.
21181 * web.c (pass_web): Convert from a global struct to a subclass of
21182 rtl_opt_pass along with...
21183 (pass_data_web): ...new pass_data instance and...
21184 (make_pass_web): ...new function.
21185 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
21186 declaration with that of...
21187 (make_pass_mode_switch_use): ...new function.
21188 (pass_resolve_sw_modes): Replace declaration with that of...
21189 (make_pass_resolve_sw_modes): ...new function.
21190 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
21191 from a global struct to a subclass of rtl_opt_pass along with...
21192 (pass_data_mode_switch_use): ...new pass_data instance and...
21193 (make_pass_mode_switch_use): ...new function.
21194 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
21195 from a global struct to a subclass of rtl_opt_pass along with...
21196 (pass_data_resolve_sw_modes): ...new pass_data instance and...
21197 (make_pass_resolve_sw_modes): ...new function.
21198 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
21199 struct to a subclass of rtl_opt_pass along with...
21200 (pass_data_insert_vzeroupper): ...new pass_data instance and...
21201 (make_pass_insert_vzeroupper): ...new function.
21202 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
21203 global struct to a subclass of rtl_opt_pass along with...
21204 (pass_data_work_around_errata): ...new pass_data instance and...
21205 (make_pass_work_around_errata): ...new function.
21206 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
21207 struct to a subclass of rtl_opt_pass along with...
21208 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
21209 (make_pass_mips_machine_reorg2): ...new function.
21211 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21213 * passes.c (pass_manager::operator new): New.
21215 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21217 Handwritten part of conversion of passes to C++ classes.
21219 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
21220 (toplev.o): Add dep on PASS_MANAGER_H.
21221 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
21222 of early local pases to reflect this moving from a global to a
21223 member of gcc::pass_manager.
21224 (cgraph_add_new_function): Likewise.
21225 * lto-cgraph.c (lto_output_node): Update for conversion of
21226 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
21227 * passes.c (opt_pass::clone): New.
21228 (opt_pass::gate): New.
21229 (opt_pass::execute): New.
21230 (opt_pass::opt_pass): New.
21231 (pass_manager::execute_early_local_passes): New.
21232 (pass_manager::execute_pass_mode_switching): new.
21233 (finish_optimization_passes): Convert to...
21234 (pass_manager::finish_optimization_passes): ...this.
21235 (finish_optimization_passes): Update for conversion of passes to
21237 (register_dump_files_1): Use has_gate since we cannot portably
21238 check a vtable entry against NULL.
21239 (dump_one_pass): Likewise.
21240 (ipa_write_summaries_2): Likewise.
21241 (ipa_write_optimization_summaries_1): Likewise.
21242 (ipa_read_summaries_1): Likewise.
21243 (ipa_read_optimization_summaries_1): Likewise.
21244 (execute_ipa_stmt_fixups): Likewise.
21245 (pass_manager::pass_manager): Rewrite pass-creation, invoking
21246 pass-creation functions rather than wiring up globals, and
21247 storing the results in fields of pass_manager generated using
21248 pass-instances.def.
21249 (pass_manager::dump_profile_report): Update for conversion of
21250 passes to C++ classes.
21251 (pass_manager::execute_ipa_summary_passes): Likewise.
21252 (execute_one_ipa_transform_pass): Likewise.
21253 (execute_one_pass): Use has_gate and has_execute since we cannot
21254 portably check a vtable entry against NULL.
21255 * pass_manager.h (pass_manager::finish_optimization_passes): New.
21256 (pass_manager): Use pass-instances.def to add fields for the
21257 various pass instances.
21258 * toplev.c (finalize): Update for move of
21259 finish_optimization_passes to a method of gcc::pass_manager.
21260 * toplev.h (finish_optimization_passes): Move to method of class
21262 * tree-pass.h (struct pass_data): New.
21263 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
21264 (opt_pass::gate): Convert to virtual function.
21265 (opt_pass::~opt_pass): New.
21266 (opt_pass::clone): New.
21267 (opt_pass::execute): Convert to virtual function.
21268 (opt_pass::opt_pass): New.
21269 (opt_pass::ctxt_): new.
21270 (gimple_opt_pass): Convert to subclass of opt_pass.
21271 (gimple_opt_pass::gimple_opt_pass): New.
21272 (rtl_opt_pass): Convert to subclass of opt_pass.
21273 (rtl_opt_pass::rtl_opt_pass): New.
21274 (ipa_opt_pass_d): Convert to subclass of opt_pass.
21275 (ipa_opt_pass_d::ipa_opt_pass_d): New.
21276 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
21277 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
21278 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
21279 invocation of pass_mode_switching to reflect this moving from a
21280 global to a member of gcc::pass_manager.
21281 (ix86_option_override): Rework how pass_insert_vzeroupper is
21282 added to the pass_manager to reflect autogenerated changes.
21283 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
21285 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
21287 PR rtl-optimization/57708
21288 * recog.c (peep2_find_free_register): Validate all regs in a
21291 2013-08-05 Jan Hubicka <jh@suse.cz>
21294 * cgraph.c (verify_cgraph_node): Accept local flags from other
21296 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
21297 (function_and_variable_visibility): Likewise.
21298 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
21300 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21302 * graph.c (init_graph_slim_pretty_print): Remove.
21303 (print_graph_cfg): Do not call it. Use local pretty printer.
21304 (start_graph_dump): Likewise.
21306 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21308 * gimple-pretty-print.c (buffer): Remove.
21309 (initialized): Likewise.
21310 (maybe_init_pretty_print): Likewise.
21311 (print_gimple_stmt): Do not call it. Use non-static local
21312 pretty_printer variable.
21313 (print_gimple_expr): Likewise.
21314 (print_gimple_seq): Likewise.
21315 (gimple_dump_bb): Likewise.
21317 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21319 * asan.c (asan_pp): Remove.
21320 (asan_pp_initialized): Likewise.
21321 (asan_pp_initialize): Likewise.
21322 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
21323 (asan_emit_stack_protection): Tidy. Use local pretty printer.
21324 (asan_add_global): Likewise.
21326 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
21328 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
21329 * diagnostic.h (diagnostic_flush_buffer): Adjust.
21330 * pretty-print.c (pp_formatted_text_data): Likewise.
21331 (pp_indent): Rename from pp_base_indent.
21332 (pp_format): Rename from pp_base_format.
21333 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
21334 (pp_format_verbatim): Rename from pp_base_format_verbatim.
21335 (pp_flush): Rename from pp_base_flush.
21336 (pp_set_line_maximum_length): Rename from
21337 pp_base_set_line_maximum_length.
21338 (pp_clear_output_area): Rename from pp_base_clear_output_area.
21339 (pp_set_prefix): Rename from pp_base_set_prefix.
21340 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
21341 (pp_emit_prefix): Rename from pp_base_emit_prefix.
21342 (pp_append_text): Rename from pp_base_append_text.
21343 (pp_formatted_text): Rename from pp_base_formatted_text.
21344 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
21345 (pp_remaining_character_count_for_line): Rename from
21346 pp_base_remaining_character_count_for_line.
21347 (pp_newline): Rename from pp_base_newline.
21348 (pp_character): Rename from pp_base_character.
21349 (pp_string): Rename from pp_base_string.
21350 (pp_maybe_space): Rename from pp_base_maybe_space.
21351 * asan.c (asan_pp_string): Adjust.
21352 (asan_emit_stack_protection): Likewise.
21353 (asan_add_global): Likewise.
21354 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
21355 * tree-mudflap.c (mf_varname_tree): Likewise.
21356 * tree-pretty-print.c (pp_tree_identifier): Rename from
21357 pp_base_tree_identifier.
21358 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
21359 Declare as function.
21361 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21363 * pretty-print.h (pp_bar_bar): New.
21364 (pp_ampersand_ampersand): Likewise.
21365 (pp_less_equal): Likewise.
21366 (pp_greater_equal): Likewise.
21367 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
21368 printer functions instead of pp_string or operators and punctuators.
21369 (dump_gimple_call): Likewise.
21370 (dump_gimple_omp_for): Likewise.
21371 (dump_gimple_transaction): Likewise.
21372 (dump_gimple_phi): Likewise.
21373 (pp_gimple_stmt_1): Likewise.
21374 * sched-vis.c (print_insn): Likewise.
21375 * tree-mudflap.c (mf_varname_tree): Likewise.
21376 * tree-pretty-print.c (dump_block_node): Likewise.
21377 (dump_generic_node): Likewise.
21379 2013-08-02 Jan Hubicka <jh@suse.cz>
21381 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21383 * lto-streamer-out.c (tree_is_indexable): Results decls and
21384 parm decls are not indexable.
21385 (DFS_write_tree_body): Do not follow args and results.
21386 (hash_tree): Likewise.
21387 (output_functions): Rearrange so struct function is needed
21388 only when real body is output; be able to also ouptut abstract
21389 functions; output DECL_ARGUMENTS and DECL_RESULT.
21390 (lto_output): When not in WPA, ale store abstract functions.
21391 (write_symbol): Do not care about RESULT_DECL.
21392 (output_symbol_p): Handle correctly sbtract decls.
21393 * lto-streamer-in.c (input_function): Rearrange so struct
21394 function can be NULL at entry; allow streaming of
21395 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21396 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21397 sanity check during LTO.
21398 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21399 RESULT_DECl and DECL_ARGUMENTS.
21400 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21403 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21405 * pretty-print.h (pp_underscore): New.
21407 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21408 printer functions instead of pp_character.
21409 (dump_binary_rhs): Likewise.
21410 (dump_ternary_rhs): Likewise.
21411 (dump_gimple_call_args): Likewise.
21412 (pp_points_to_solution): Likewise.
21413 (dump_gimple_call): Likewise.
21414 (dump_gimple_switch): Likewise.
21415 (dump_gimple_cond): Likewise.
21416 (dump_gimple_bind): Likewise.
21417 (dump_gimple_try): Likewise.
21418 (dump_gimple_omp_for): Likewise.
21419 (dump_gimple_omp_continue): Likewise.
21420 (dump_gimple_omp_single): Likewise.
21421 (dump_gimple_omp_sections): Likewise.
21422 (dump_gimple_omp_block): Likewise.
21423 (dump_gimple_omp_critical): Likewise.
21424 (dump_gimple_transaction): Likewise.
21425 (dump_gimple_asm): Likewise.
21426 (dump_gimple_phi): Likewise.
21427 (dump_gimple_omp_parallel): Likewise.
21428 (dump_gimple_omp_task): Likewise.
21429 (dump_gimple_omp_atomic_load): Likewise.
21430 (dump_gimple_omp_atomic_store): Likewise.
21431 (dump_gimple_mem_ops): Likewise.
21432 (pp_gimple_stmt_1): Likewise.
21433 (pp_cfg_jump): Likewise.
21434 (dump_implicit_edges): Likewise.
21435 (gimple_dump_bb_for_graph): Likewise.
21436 * graph.c (draw_cfg_node): Likewise.
21437 * langhooks.c (lhd_print_error_function): Likewise.
21438 * sched-vis.c (print_exp): Likewise.
21439 (print_value): Likewise.
21440 (print_pattern): Likewise.
21441 (print_insn): Likewise.
21442 (rtl_dump_bb_for_graph): Likewise.
21443 * tree-pretty-print.c (dump_function_declaration): Likewise.
21444 (dump_array_domain): Likewise.
21445 (dump_omp_clause): Likewise.
21446 (dump_location): Likewise.
21447 (dump_generic_node): Likewise.
21448 (print_struct_decl): Likewise.
21449 * diagnostic.c (diagnostic_show_locus): Use pp_space.
21451 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21453 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21454 candidate table when replacing a candidate statement.
21455 (replace_rhs_if_not_dup): Likewise.
21456 (replace_one_candidate): Likewise.
21458 2013-08-02 Jan Hubicka <jh@suse.cz>
21459 Martin Liska <marxin.liska@gmail.com>
21461 * cgraphunit.c (add_new_function): Fix logic when adding from
21463 (assemble_thunk): Rename to ...
21464 (expand_thunk); .. this one; export; get it working with
21465 general functions; make produced gimple valid.
21466 * cgraph.h (expand_thunk): Declare.
21468 2013-08-02 Jan Hubicka <jh@suse.cz>
21470 * ipa-cp.c (gather_context_independent_values): Use
21471 ipa_get_param_move_cost.
21472 (get_replacement_map): Remove PARAM; move parameter folding
21474 (create_specialized_node): Update.
21475 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21476 assert that we have gimple body; update move_cost.
21477 (count_formal_params): Assert that we have gimple body.
21478 (ipa_dump_param): New function.
21479 (ipa_alloc_node_params): Break out from ...
21480 (ipa_initialize_node_params): ... here.
21481 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21482 (ipa_write_node_info): Stream move costs.
21483 (ipa_read_node_info): Read move costs.
21484 (ipa_update_after_lto_read): Do not recompute node params.
21485 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21486 (ipa_get_param): Check we are not in WPA.
21487 (ipa_get_param_move_cost): New.
21488 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21489 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21490 parm numbers to be present.
21492 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21494 PR rtl-optimization/58048
21495 * lra-constraints.c (process_alt_operands): Don't check asm
21496 operand on register.
21498 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
21500 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21501 the implied StoreLoad barrier for atomic operations if before.
21503 2013-08-02 Jan Hubicka <jh@suse.cz>
21504 Martin Liska <marxin.liska@gmail.com>
21506 * cgraph.c (cgraph_function_body_availability): Do not check
21508 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21509 symtab_node_availability): Declare.
21510 * ipa.c (can_replace_by_local_alias): New.
21511 (function_and_variable_visibility): Use it.
21512 * symtab.c (symtab_for_node_and_aliases,
21513 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21515 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21517 PR rtl-optimization/57963
21518 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21519 (lra_constraints): Use them.
21521 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
21523 * config/arm/types.md (define_attr "type"): Add "load_acq"
21525 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21527 (cortex_a53_store1): Likewise.
21529 2013-08-01 Jan Hubicka <jh@suse.cz>
21531 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21532 partitions are not needed.
21534 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
21536 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21537 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21538 MAYBE_NON_Q_CLASS_P where appropriate.
21540 2013-08-01 Jan Hubicka <jh@suse.cz>
21542 * cgraph.h (release_function_body): Declare.
21543 * tree.c (free_lang_data_in_decl): Free, parameters and return values
21544 of unused delcarations.
21546 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21548 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21549 RTL form when subtracting a constant.
21551 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21553 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21554 Generate canonical plus rtx with negated immediate instead of minus
21556 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21558 2013-08-01 Jan Hubicka <jh@suse.cz>
21560 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21561 (cgraph_release_function_body): Likewise.
21562 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21563 * cgraph.h (cgrpah_node): Rename abstract_and_needed
21564 to used_as_abstract_origin.
21565 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21566 symbols used as abstract origins.
21567 * cgraphunit.c (analyze_functions): Update.
21568 * ipa.c (symtab_remove_unreachable_nodes): Recompute
21569 used_as_abstract_origin.
21570 * tree-inline.c (tree_function_versioning): Update
21571 used_as_abstract_origin; be ready for DECL_RESULT and
21572 DECL_ARGUMENTS to be NULL.
21574 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21575 for abstract functions.
21576 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21579 2013-08-01 Jan Hubicka <jh@suse.cz>
21581 * profile.c (compute_value_histograms): Fix thinko.
21583 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21585 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
21586 aarch-common-protos.h to extra_headers.
21587 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21588 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21589 * config/aarch64/t-aarch64 (aarch-common.o): Define.
21591 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21593 * config/aarch64/aarch64.md (define_attr "type"): Delete.
21594 Include "../arm/types.md". Define "type" attribute for all patterns.
21595 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21598 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21600 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21601 to support power8 load fusion.
21602 (fusion_gpr_mem_load): Likewise.
21604 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21606 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21607 declarations for power8 load fusion.
21608 (emit_fusion_gpr_load): Likewise.
21610 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21611 tuning for power8, turn on fusion mode by default. Turn on sign
21612 extending fusion mode if normal fusion mode is on, and we are at
21614 (fusion_gpr_load_p): New function, return true if we can fuse an
21615 addis instruction with a dependent load to a GPR.
21616 (emit_fusion_gpr_load): Emit the instructions for power8 load
21619 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21620 (VSX load fusion peepholes): New peepholes to fuse together an
21621 addi instruction with a VSX load instruction.
21623 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21624 peepholes to fuse an addis instruction with a load to a GPR base
21625 register. If we are supporting sign extending fusions, convert
21626 sign extending loads to zero extending loads and add an explicit
21629 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21631 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21632 aarch-common-protos.h to extra_headers.
21633 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21634 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21635 (arm_early_store_addr_dep): Likewise.
21636 (arm_no_early_alu_shift_dep): Likewise.
21637 (arm_no_early_alu_shift_value_dep): Likewise.
21638 (arm_no_early_mul_dep): Likewise.
21639 (arm_no_early_store_addr_dep): Likewise.
21640 (arm_mac_accumulator_is_mul_result): Likewise.
21641 (arm_mac_accumulator_is_result): Likewise.
21642 * config/arm/aarch-common.c: ... here. New file.
21643 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21645 (arm_early_store_addr_dep): Likewise.
21646 (arm_no_early_alu_shift_dep): Likewise.
21647 (arm_no_early_alu_shift_value_dep): Likewise.
21648 (arm_no_early_mul_dep): Likewise.
21649 (arm_no_early_store_addr_dep): Likewise.
21650 (arm_mac_accumulator_is_mul_result): Likewise.
21651 (arm_mac_accumulator_is_result): Likewise.
21652 * config/arm/aarch-common-protos.h: ... here. New file.
21653 * config/arm/t-arm (aarch-common.o): Define.
21655 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21657 * config/arm/arm.md: Include new file "types.md".
21658 (define_attr "type"): Move from here to ...
21659 (define_attr "mul32"): Likewise.
21660 (define_attr "mul64"): Likewise.
21661 * config/arm/types.md: ... here. New file.
21663 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21665 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21666 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21668 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21670 * gen-pass-instances.awk: Fix offset of substr().
21672 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21674 * Makefile.in (pass-instances.def): New.
21675 (passes.o): Replace dependency on passes.def with one on
21678 * gen-pass-instances.awk: New.
21680 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21681 rather than passes.def, updating local definition of NEXT_PASS
21682 macro to add an extra NUM parameter (currently unused).
21684 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21686 * Makefile.in (PASS_MANAGER_H): New.
21687 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21688 (passes.o): Likewise.
21689 (statistics.o): Likewise.
21690 (cgraphunit.o): Likewise.
21691 (context.o): Depend on PASS_MANAGER_H.
21693 * pass_manager.h: New.
21695 * cgraphunit.c (cgraph_add_new_function): Update for moves
21696 of globals to fields of pass_manager.
21697 (analyze_function): Likewise.
21698 (expand_function): Likewise.
21699 (ipa_passes): Likewise.
21700 (compile): Likewise.
21702 * context.c (context::context): New.
21703 * context.h (context::context): New.
21704 (context::get_passes): New.
21705 (context::passes_): New.
21707 * lto-cgraph.c (input_node): Update for moves of globals to
21708 fields of pass_manager.
21710 * passes.c (all_passes): Remove, in favor of a field of the
21711 same name within the new class pass_manager.
21712 (all_small_ipa_passes): Likewise.
21713 (all_lowering_passes): Likewise.
21714 (all_regular_ipa_passes): Likewise.
21715 (all_late_ipa_passes): Likewise.
21716 (all_lto_gen_passes): Likewise.
21717 (passes_by_id): Likewise.
21718 (passes_by_id_size): Likewise.
21719 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21720 the new class pass_manager.
21721 (set_pass_for_id): Convert to...
21722 (pass_manager::set_pass_for_id): ...method.
21723 (get_pass_for_id): Convert to...
21724 (pass_manager::get_pass_for_id): ...method.
21725 (register_one_dump_file): Move body of implementation into...
21726 (pass_manager::register_one_dump_file): ...here.
21727 (register_dump_files_1): Convert to...
21728 (pass_manager::register_dump_files_1): ...method.
21729 (register_dump_files): Convert to...
21730 (pass_manager::register_dump_files): ...method.
21731 (create_pass_tab): Update for moves of globals to fields of
21733 (dump_passes): Move body of implementation into...
21734 (pass_manager::dump_passes): ...here.
21735 (register_pass): Move body of implementation into...
21736 (pass_manager::register_pass): ...here.
21737 (init_optimization_passes): Convert into...
21738 (pass_manager::pass_manager): ...constructor for new
21739 pass_manager class, and initialize the pass_lists array.
21740 (check_profile_consistency): Update for moves of globals to
21741 fields of pass_manager.
21742 (dump_profile_report): Move body of implementation into...
21743 (pass_manager::dump_profile_report): ...here.
21744 (ipa_write_summaries_1): Update for moves of pass lists from
21745 being globals to fields of pass_manager.
21746 (ipa_write_optimization_summaries): Likewise.
21747 (ipa_read_summaries): Likewise.
21748 (ipa_read_optimization_summaries): Likewise.
21749 (execute_all_ipa_stmt_fixups): Likewise.
21751 * statistics.c (statistics_fini): Update for moves of globals to
21752 fields of pass_manager.
21754 * toplev.c (general_init): Replace call to
21755 init_optimization_passes with construction of the pass_manager
21758 * tree-pass.h (all_passes): Remove, in favor of a field of the
21759 same name within the new class pass_manager.
21760 (all_small_ipa_passes): Likewise.
21761 (all_lowering_passes): Likewise.
21762 (all_regular_ipa_passes): Likewise.
21763 (all_lto_gen_passes): Likewise.
21764 (all_late_ipa_passes): Likewise.
21765 (passes_by_id): Likewise.
21766 (passes_by_id_size): Likewise.
21767 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21768 the new class pass_manager.
21769 (get_pass_for_id): Remove.
21771 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21773 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21776 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21778 * arm.md (mulhi3): New expand pattern.
21780 2013-07-30 Jan Hubicka <jh@suse.cz>
21781 Martin Liska <marxin.liska@gmail.com>
21783 * profile.c (compute_value_histograms): Do not ICE when
21784 there is mismatch only on some counters.
21786 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21788 PR rtl-optimization/57637
21789 * function.c (move_insn_for_shrink_wrap): Also check the
21790 GEN set of the LIVE problem for the liveness analysis
21791 if it exists, otherwise give up.
21793 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21795 PR tree-optimization/57993
21796 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21797 replaced statement in the candidate table.
21798 (phi_add_costs): Return infinite cost when the hidden basis does
21799 not dominate all phis on which the candidate is dependent.
21800 (replace_one_candidate): Record replaced statement in the
21803 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21805 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21806 (ashlv2si3): New expander.
21807 (*ashlv2si3_i): New define_insn_and_split.
21808 * predicates.md (float_operation): Allow patterns with three
21809 basic sub-patterns.
21811 PR rtl-optimization/58021
21812 * mode-switching.c (create_pre_exit): Always split off preceding
21813 insns if we are not at the basic block head.
21815 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21817 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21818 (UCLIBC_DYNAMIC_LINKER): New macro.
21819 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21821 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21822 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21824 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21825 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21826 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21827 for SF and DF modes. Use ieee_quad_format for TF mode.
21828 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21829 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21830 (mips_option_override): Handle `-mnan=legacy'.
21831 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21832 `-mabs=2008' and `-mnan=2008'.
21833 (OPTION_DEFAULT_SPECS): Add "nan" default.
21834 (ASM_SPEC): Handle `-mnan='.
21835 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21836 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21837 comment accordingly.
21838 (neg<mode>2): Likewise.
21839 * config/mips/mips.opt (mabs, mnan): New options.
21840 * doc/install.texi (Configuration): Document `--with-nan=' option.
21841 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21843 (MIPS Options): Document them.
21844 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21845 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21846 * configure: Regenerate.
21847 * config.in: Regenerate.
21849 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21851 * config/i386/i386.md (float post-reload splitters): Do not check
21852 for subregs of SSE registers.
21854 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21855 H.J. Lu <hongjiu.lu@intel.com>
21859 * config/i386/i386.md (post-reload splitter
21860 to avoid partial SSE reg dependency stalls): New pattern.
21862 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21864 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21866 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21868 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21869 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21871 2013-07-26 Cary Coutant <ccoutant@google.com>
21873 * dwarf2out.c (die_checksum_ordered): Don't include template
21874 instantiations in signature.
21875 (is_template_parameter): New function.
21876 (is_template_instantiation): New function.
21877 (generate_skeleton_bottom_up): Don't include template instantiations
21879 (generate_skeleton): Likewise.
21880 (break_out_comdat_types): Move recursive call to break out nested
21882 (prune_unused_types_mark_generic_parms_dies): Call
21883 is_template_parameter.
21885 2013-07-26 Ian Bolton <ian.bolton@arm.com>
21887 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21888 uses vector registers.
21889 * config/aarch64/iterators.md: Add attributes rtn and vas.
21891 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21892 Richard Earnshaw <richard.earnshaw@arm.com>
21894 * combine.c (simplify_comparison): Re-canonicalize operands
21896 * config/arm/arm.md (movcond_addsi): New splitter.
21898 2013-07-25 Sterling Augustine <saugustine@google.com>
21900 * dwarf2out.c (size_of_pubnames): Move code to...
21901 (include_pubname_in_output): ...here. New.
21902 (want_pubnames): Rearrange.
21903 (output_pubnames): Call include_pubname_in_output. Move assertion.
21905 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21907 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21909 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21912 * doc/extend.texi: Remove obsolete builtins. Fix
21913 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21915 2013-07-25 Jan Hubicka <jh@suse.cz>
21917 * cgraph.c (release_function_body): Break out from ...
21918 (cgraph_release_function_body): ... this one; also release DECL_RESULT
21919 and DECL_ARGUMENTS.
21920 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21921 old_tree in the map.
21922 (create_specialized_node): Update.
21923 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21925 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21926 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21927 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21928 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21931 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21933 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21934 addsi3_carryin_alt2_<optab>): Correct output template.
21936 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21938 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21939 Adjust for arm_restrict_it.
21940 Remove trailing whitespace.
21942 2013-07-25 Mark Kettenis <kettenis@openbsd.org>
21944 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21945 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21947 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21949 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
21951 PR rtl-optimization/57960
21952 * lra-constraints.c (process_alt_operands): Use the right mode
21953 when checking strict_low.
21955 2013-07-25 Jan Hubicka <jh@suse.cz>
21957 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21958 * cgraph.c (cgraph_remove_node): Do not release function body
21959 when in cgraph streaming.
21960 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21961 in other partitions are not considered reachable; fix handling of
21964 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21966 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21968 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21973 * config/arm/arm.md ("*sibcall_insn): Replace use of
21974 Ss with US. Adjust output for v5 and v4t.
21975 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21977 * config/arm/constraints.md ("Ss"): Rename to US.
21979 2013-07-25 Terry Guo <terry.guo@arm.com>
21981 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21982 shift_add/shift_sub0/shift_sub1 RTXs.
21984 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
21985 Anton Blanchard <anton@au1.ibm.com>
21987 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21988 (altivec_vpks<VI_char>ss): Likewise.
21989 (altivec_vpks<VI_char>us): Likewise.
21990 (altivec_vpku<VI_char>us): Likewise.
21991 (altivec_vpku<VI_char>um): Likewise.
21993 2013-07-24 David Malcolm <dmalcolm@redhat.com>
21995 Introduce context class.
21997 * Makefile.in (CONTEXT_H): New.
21998 (OBJS): Add context.o.
21999 (toplev.o): Add CONTEXT_H to dependencies.
22002 * toplev.c (general_init): Create the singleton gcc::context instance.
22008 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
22010 PR rtl-optimization/57968
22011 * mode-switching.c (create_pre_exit): Allow instructions that
22012 don't set a return register to need a non-exit mode.
22014 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22015 Anton Blanchard <anton@au1.ibm.com>
22017 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
22018 operands to vperm for little endian.
22019 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
22020 of lvsl to create the control mask for a vperm for little endian.
22022 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22023 Anton Blanchard <anton@au1.ibm.com>
22025 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
22026 two operands for little-endian.
22028 2013-07-23 Steve Ellcey <sellcey@mips.com>
22030 * config/mips/mips.c (mips_case_values_threshold): New.
22031 (TARGET_CASE_VALUES_THRESHOLD): Define.
22033 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22034 Anton Blanchard <anton@au1.ibm.com>
22036 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
22037 selection of field for vector splat in little endian mode.
22039 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22041 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
22042 expanders to rs6000.md.
22043 (ior<mode>3): Likewise.
22044 (and<mode>3): Likewise.
22045 (one_cmpl<mode>2): Likewise.
22046 (nor<mode>3): Likewise.
22047 (andc<mode>3): Likewise.
22048 (eqv<mode>3): Likewise.
22049 (nand<mode>3): Likewise.
22050 (orc<mode>3): Likewise.
22052 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
22055 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
22056 to split multi-word logical operations.
22057 (rs6000_split_logical_di): Likewise.
22058 (rs6000_split_logical): Likewise.
22060 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
22061 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
22062 and allow TImode operations in 32-bit.
22063 (vsx_and<mode>3_64bit): Likewise.
22064 (vsx_ior<mode>3_32bit): Likewise.
22065 (vsx_ior<mode>3_64bit): Likewise.
22066 (vsx_xor<mode>3_32bit): Likewise.
22067 (vsx_xor<mode>3_64bit): Likewise.
22068 (vsx_one_cmpl<mode>2_32bit): Likewise.
22069 (vsx_one_cmpl<mode>2_64bit): Likewise.
22070 (vsx_nor<mode>3_32bit): Likewise.
22071 (vsx_nor<mode>3_64bit): Likewise.
22072 (vsx_andc<mode>3_32bit): Likewise.
22073 (vsx_andc<mode>3_64bit): Likewise.
22074 (vsx_eqv<mode>3_32bit): Likewise.
22075 (vsx_eqv<mode>3_64bit): Likewise.
22076 (vsx_nand<mode>3_32bit): Likewise.
22077 (vsx_nand<mode>3_64bit): Likewise.
22078 (vsx_orc<mode>3_32bit): Likewise.
22079 (vsx_orc<mode>3_64bit): Likewise.
22081 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
22082 logical types in GPRs.
22084 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
22085 logical insns to rs6000.md, and allow TImode operations in
22087 (altivec_ior<mode>3): Likewise.
22088 (altivec_xor<mode>3): Likewise.
22089 (altivec_one_cmpl<mode>2): Likewise.
22090 (altivec_nor<mode>3): Likewise.
22091 (altivec_andc<mode>3): Likewise.
22093 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
22094 attributes for moving the 128-bit logical operations into
22096 (BOOL_REGS_OUTPUT): Likewise.
22097 (BOOL_REGS_OP1): Likewise.
22098 (BOOL_REGS_OP2): Likewise.
22099 (BOOL_REGS_UNARY): Likewise.
22100 (BOOL_REGS_AND_CR0): Likewise.
22101 (one_cmpl<mode>2): Add support for DI logical operations on
22102 32-bit, splitting the operations to 32-bit.
22103 (anddi3): Likewise.
22104 (iordi3): Likewise.
22105 (xordi3): Likewise.
22106 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
22107 changes to combine the 32/64-bit code, allow logical operations on
22108 TI mode in 32-bit, and to use similar match_operator patterns like
22109 scalar mode uses. Combine the Altivec and VSX code for logical
22110 operations, and move it here.
22111 (ior<mode>3, 128-bit types): Likewise.
22112 (xor<mode>3, 128-bit types): Likewise.
22113 (one_cmpl<mode>3, 128-bit types): Likewise.
22114 (nor<mode>3, 128-bit types): Likewise.
22115 (andc<mode>3, 128-bit types): Likewise.
22116 (eqv<mode>3, 128-bit types): Likewise.
22117 (nand<mode>3, 128-bit types): Likewise.
22118 (orc<mode>3, 128-bit types): Likewise.
22119 (and<mode>3_internal): Likewise.
22120 (bool<mode>3_internal): Likewise.
22121 (boolc<mode>3_internal1): Likewise.
22122 (boolc<mode>3_internal2): Likewise.
22123 (boolcc<mode>3_internal1): Likewise.
22124 (boolcc<mode>3_internal2): Likewise.
22125 (eqv<mode>3_internal1): Likewise.
22126 (eqv<mode>3_internal2): Likewise.
22127 (one_cmpl1<mode>3_internal): Likewise.
22129 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
22131 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22132 Rename flag_stack_usage to flag_stack_usage_info.
22134 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
22136 * config/microblaze/sync.md: New file.
22137 * config/microblaze/microblaze.md: Include sync.md
22138 * config/microblaze/microblaze.c: Add print_operand 'y'.
22139 * config/microblaze/constraints.md: Add memory_contraint
22140 'Q' which is a single register.
22142 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
22144 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
22146 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
22148 * reload.c (find_reloads): Exit loop once we find this operand
22149 cannot be reloaded somehow for this alternative.
22151 * reload.c (find_reloads): Exit loop once we find a hard register.
22153 * rtlanal.c (computed_jump_p): Exit loop once we find label
22156 * i386.c (ix86_pad_returns): Exit loop after setting replace.
22158 * cfgloopmanip.c (remove_path): Exit loop after setting
22161 * gensupport.c (subst_dup): Avoid loop if code is not
22162 MATCH_DUP nor MATCH_OP_DUP.
22164 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
22166 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
22168 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22170 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
22171 true for SP_REGNUM if mode == ptr_mode.
22172 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
22173 with value R0_REGNUM + 31.
22175 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22177 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
22178 pad pointer-typed argument downward.
22180 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22182 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
22183 and __ILP32__ when the ILP32 model is in use.
22185 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22187 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
22188 (aarch64_load_symref_appropriately): In the case of
22189 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
22190 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
22191 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
22192 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
22193 if 'mode' doesn't equal to 'ptr_mode'.
22194 (aarch64_output_mi_thunk): Add an assertion on the alignment of
22195 'vcall_offset'; change to call aarch64_emit_move differently depending
22196 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
22197 to calculate the upper bound of 'vcall_offset'.
22198 (aarch64_cannot_force_const_mem): Change to also return true if
22200 (aarch64_legitimize_reload_address): In the case of large
22201 displacements, add new local variable 'xmode' and an assertion
22202 based on it; change to use 'xmode' to generate the new rtx and
22204 (aarch64_asm_trampoline_template): Change to generate the template
22205 differently depending on TARGET_ILP32 or not; change to use
22206 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
22207 (aarch64_trampoline_size): Removed.
22208 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
22209 and replace immediate literals with it. Change to use 'ptr_mode'
22210 instead of 'DImode' and call convert_memory_address if the mode
22211 of 'fnaddr' doesn't equal to 'ptr_mode'.
22212 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
22214 (aarch64_elf_asm_destructor): Likewise.
22215 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
22216 on TARGET_ILP32 instead of aarch64_trampoline_size.
22217 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
22218 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
22219 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
22220 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
22221 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
22222 (storewb_pair<GPI:mode>_<P:mode>): ... this.
22223 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
22224 depending on the value of 'mode'.
22225 (add_losym_<mode>): New.
22226 (ldr_got_small_<mode>): New, based on ldr_got_small.
22227 (ldr_got_small): Remove.
22228 (ldr_got_small_sidi): New.
22229 * config/aarch64/iterators.md (P): New.
22230 (PTR): Change to 'ptr_mode' in the condition.
22232 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22234 * config.gcc (aarch64*-*-*): Support --with-abi.
22235 (aarch64*-*-elf): Support --with-multilib-list.
22236 (aarch64*-*-linux*): Likewise.
22237 (supported_defaults): Add abi to aarch64*-*-*.
22238 * configure.ac: Mention AArch64 for --with-multilib-list.
22239 * configure: Re-generated.
22240 * config/aarch64/biarchilp32.h: New file.
22241 * config/aarch64/biarchlp64.h: New file.
22242 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
22244 (MULTILIB_DEFAULTS): Ditto.
22245 (DRIVER_SELF_SPECS): Ditto.
22246 (ASM_SPEC): Update to also substitute -mabi.
22247 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
22248 file whose name depends on -mabi= and -mbig-endian.
22249 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
22251 (POINTER_SIZE): New define.
22252 (POINTERS_EXTEND_UNSIGNED): Ditto.
22253 (enum aarch64_abi_type): New enumeration tag.
22254 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
22255 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
22256 (TARGET_ILP32): New define.
22257 * config/aarch64/aarch64.opt (mabi): New.
22258 (aarch64_abi): New.
22259 (ilp32, lp64): New values for -mabi.
22260 * config/aarch64/t-aarch64 (comma): New define.
22261 (MULTILIB_OPTIONS): Ditto.
22262 (MULTILIB_DIRNAMES): Ditto.
22263 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
22264 * doc/invoke.texi: Document -mabi for AArch64.
22266 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
22268 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
22270 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22271 Anton Blanchard <anton@au1.ibm.com>
22273 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
22274 endianness when selecting field to splat.
22276 2013-07-22 Eric Christopher <echristo@gmail.com>
22278 * dwarf2out.c (die_odr_checksum): New function to use
22279 CHECKSUM_ macros and ULEB128 for DIE tag.
22280 (generate_type_signature): Use.
22282 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
22284 * config.gcc (sparc*-*-*): Accept leon3 processor.
22285 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
22286 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
22287 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
22288 * config/sparc/sparc.opt (enum processor_type): Add leon3.
22289 (mfix-ut699): Adjust comment.
22290 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
22291 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
22292 (CPP_CPU_SPEC): Likewise.
22293 (ASM_CPU_SPEC): Likewise.
22294 * config/sparc/sparc.c (leon3_cost): New constant.
22295 (sparc_option_override): Add leon3 support.
22296 (mem_ref): New function.
22297 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
22298 (sparc_do_work_around_errata): Look into the instruction in the delay
22299 slot and adjust accordingly. Add fix for the data cache nullify issues
22300 of the UT699. Change insertion position for the NOP.
22301 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
22302 (leon3_load): New reservation.
22303 (leon_store): Bump latency to 2.
22304 (grfpu): New automaton.
22305 (grfpu_alu): New unit.
22306 (grfpu_ds): Likewise.
22307 (leon_fp_alu): Adjust.
22308 (leon_fp_mult): Delete.
22309 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
22310 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
22311 * config/sparc/sparc.md (cpu): Add leon3.
22312 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
22313 (swapsi): Likewise.
22314 (atomic_test_and_set): Likewise.
22315 (ldstub): Likewise.
22317 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
22319 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
22320 default for R5900 targets.
22321 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
22322 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
22323 * config/mips/mips.c (mips_option_override): Report an error for
22324 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
22325 for -march=r5900 -mhard-float.
22327 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
22329 * df-problems.c (can_move_insns_across): Exit loop once we
22330 find a non-fixed, non-global register.
22332 * ipa-pure-const.c (propagate_nothrow): Exit loop after
22335 * omega.c (omega_eliminate_red): Break after setting red_found.
22336 (omega_problem_has_red_equations): Similarly after setting found.
22337 (omega_query_variable): Similarly after setting coupled.
22339 2013-07-22 Marek Polacek <polacek@redhat.com>
22341 * gimplify.c: Don't include gimple.h twice.
22343 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22345 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
22346 instead of TARGET_THUMB1.
22347 (Pz): New constraint.
22348 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
22350 (compare_negsi_si): Likewise.
22351 (compare_addsi2_op0): Likewise.
22352 (compare_addsi2_op1): Likewise.
22353 (addsi3_carryin_<optab>): Likewise.
22354 (addsi3_carryin_alt2_<optab>): Likewise.
22355 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
22356 for arm_restrict_it.
22357 (subsi3_carryin): Likewise.
22358 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
22359 (minmax_arithsi): Disable for arm_restrict_it.
22360 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
22361 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
22362 (satsi_<SAT:code>_shift): Likewise.
22363 (arm_shiftsi3): Add alternative for 16-bit encoding.
22364 (arm32_movhf): Disable for arm_restrict_it.
22365 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
22366 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
22368 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
22370 * config/arm/arm.md (attribute "insn"): Delete.
22371 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22372 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22373 (not_shiftsi): Update for attribute change.
22374 (not_shiftsi_compare0): Likewise.
22375 (not_shiftsi_compare0_scratch): Likewise.
22376 (arm_one_cmplsi2): Likewise.
22377 (thumb1_one_cmplsi2): Likewise.
22378 (notsi_compare0): Likewise.
22379 (notsi_compare0_scratch): Likewise.
22380 (thumb1_movdi_insn): Likewise.
22381 (arm_movsi_insn): Likewise.
22382 (movhi_insn_arch4): Likewise.
22383 (movhi_bytes): Likewise.
22384 (arm_movqi_insn): Likewise.
22385 (thumb1_movqi_insn): Likewise.
22386 (arm32_movhf): Likewise.
22387 (thumb1_movhf): Likewise.
22388 (arm_movsf_soft_insn): Likewise.
22389 (thumb1_movsf_insn): Likewise.
22390 (thumb_movdf_insn): Likewise.
22391 (movsicc_insn): Likewise.
22392 (movsfcc_soft_insn): Likewise.
22393 (and_scc): Likewise.
22394 (cond_move): Likewise.
22395 (if_move_not): Likewise.
22396 (if_not_move): Likewise.
22397 (if_shift_move): Likewise.
22398 (if_move_shift): Likewise.
22399 (if_shift_shift): Likewise.
22400 (if_not_arith): Likewise.
22401 (if_arith_not): Likewise.
22402 (cond_move_not): Likewise.
22403 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22404 (neon_mov<mode>): Likewise.
22405 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22406 (thumb2_movsi_vfp): Likewise.
22407 (movsf_vfp): Likewise.
22408 (thumb2_movsf_vfp): Likewise.
22409 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22411 (cortexa7_older_only): Likewise.
22412 (cortexa7_younger): Likewise.
22413 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22414 (1020alu_shift_op): Likewise.
22415 (1020alu_shift_reg_op): Likewise.
22416 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22417 (alu_shift_op): Likewise.
22418 (alu_shift_reg_op): Likewise.
22419 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22420 (11_alu_shift_op): Likewise.
22421 (11_alu_shift_reg_op): Likewise.
22422 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22423 (9_alu_shift_reg_op): Likewise.
22424 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22426 (cortex_a15_alu_shift): Likewise.
22427 (cortex_a15_alu_shift_reg): Likewise.
22428 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22429 (cortex_a5_alu_shift): Likewise.
22430 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22432 (cortex_a53_alu_shift): Likewise.
22433 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22435 (cortex_a7_alu_reg): Likewise.
22436 (cortex_a7_alu_shift): Likewise.
22437 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22438 (cortex_a8_alu_shift): Likewise.
22439 (cortex_a8_alu_shift_reg): Likewise.
22440 (cortex_a8_mov): Likewise.
22441 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22442 (cortex_a9_dp_shift): Likewise.
22443 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22444 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22445 (cortex_r4_mov): Likewise.
22446 (cortex_r4_alu_shift): Likewise.
22447 (cortex_r4_alu_shift_reg): Likewise.
22448 * config/arm/fa526.md (526_alu_op): Update for attribute change.
22449 (526_alu_shift_op): Likewise.
22450 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22451 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22452 (626te_alu_shift_op): Likewise.
22453 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22454 (726te_alu_op): Likewise.
22455 (726te_alu_shift_op): Likewise.
22456 (726te_alu_shift_reg_op): Likewise.
22457 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22458 (mp626_alu_shift_op): Likewise.
22459 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22460 (pj4_alu_e1_conds): Likewise.
22461 (pj4_alu): Likewise.
22462 (pj4_alu_conds): Likewise.
22463 (pj4_shift): Likewise.
22464 (pj4_shift_conds): Likewise.
22465 (pj4_alu_shift): Likewise.
22466 (pj4_alu_shift_conds): Likewise.
22468 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22470 * config/arm/predicates.md (shiftable_operator_strict_it):
22472 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22473 Disable cond_exec version for arm_restrict_it.
22474 (thumb2_smaxsi3): Convert to generate cond_exec.
22475 (thumb2_sminsi3): Likewise.
22476 (thumb32_umaxsi3): Likewise.
22477 (thumb2_uminsi3): Likewise.
22478 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22479 (thumb2_neg_abssi2): Likewise.
22480 (thumb2_mov_scc): Add alternative for 16-bit encoding.
22481 (thumb2_movsicc_insn): Adjust alternatives.
22482 (thumb2_mov_negscc): Disable for arm_restrict_it.
22483 (thumb2_mov_negscc_strict_it): New pattern.
22484 (thumb2_mov_notscc_strict_it): New pattern.
22485 (thumb2_mov_notscc): Disable for arm_restrict_it.
22486 (thumb2_ior_scc): Likewise.
22487 (thumb2_ior_scc_strict_it): New pattern.
22488 (thumb2_cond_move): Adjust for arm_restrict_it.
22489 (thumb2_cond_arith): Disable for arm_restrict_it.
22490 (thumb2_cond_arith_strict_it): New pattern.
22491 (thumb2_cond_sub): Adjust for arm_restrict_it.
22492 (thumb2_movcond): Likewise.
22493 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22494 (thumb2_zero_extendhisi2_v6): Likewise.
22495 (thumb2_zero_extendqisi2_v6): Likewise.
22496 (orsi_notsi_si): Likewise.
22497 (orsi_not_shiftsi_si): Likewise.
22499 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
22501 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22502 instruction sequence is 1 byte shorter.
22504 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
22506 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22507 it is not needed after split.
22509 2013-07-20 Iain Sandoe <iain@codesourcery.com>
22512 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22513 second label for nonlocal goto receivers. Don't output pic base labels
22514 unless we're producing PIC; mark that action unreachable().
22515 (ix86_save_reg): If the function contains a nonlocal label, save the
22517 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22518 * config/darwin.c (emitted_pic_label_num): New GTY.
22519 (update_pic_label_number_if_needed): New.
22520 (machopic_output_function_base_name): Adjust for nonlocal receiver
22522 (machopic_should_output_picbase_label): New.
22523 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22524 (nonlocal_goto_receiver): New insn and split.
22526 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
22528 * config/aarch64/aarch64-builtins.c
22529 (aarch64_fold_builtin): Fold abs in all modes.
22530 * config/aarch64/aarch64-simd-builtins.def
22531 (abs): Enable for all modes.
22532 * config/aarch64/arm_neon.h
22533 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22534 (vabs_f64): Add missing intrinsic.
22536 2013-07-19 Ian Bolton <ian.bolton@arm.com>
22538 * config/aarch64/arm_neon.h (vabs_s64): New function
22540 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
22543 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22544 * config/avr/avr.md (adjust_len): Add `round'.
22545 * config/avr/avr-protos.h (avr_out_round): New prototype.
22546 (avr_out_plus): Add `out_label' argument.
22547 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22548 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22549 Handle the case where `insn' is just a pattern.
22550 (avr_out_bitop): Handle the case where `insn' is just a pattern.
22551 (avr_out_round): New function.
22552 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22554 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
22556 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22557 Add check for flag_stack_usage to handle -fstack-usage support
22559 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
22561 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22562 interaction for new Power8 flags and VSX.
22564 2013-07-18 Sriraman Tallam <tmsriram@google.com>
22566 PR middle-end/57698
22567 * tree-inline.c (expand_call_inline): Emit errors during
22568 early_inlining only if optimization is not turned on.
22570 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22574 * passes.c (init_optimization_passes): Move the construction of
22575 the pass hierarchy into a new passes.def file.
22577 * Makefile.in (passes.o): Add dependency on passes.def.
22579 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22581 * passes.c (init_optimization_passes): Introduce macros for
22582 constructing the tree of passes (INSERT_PASSES_AFTER,
22583 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22584 TERMINATE_PASS_LIST).
22586 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
22587 Wei Mi <wmi@google.com>
22589 PR rtl-optimization/57878
22590 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22592 (reload_pseudo_compare_func): Check nregs first for reload
22595 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22597 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22599 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
22601 * read-rtl.c (validate_const_int): Once an invalid character is
22602 seen, quit the loop.
22604 * gengtype.c (write_roots): Similarly once we find the "deletable"
22605 or "if_marked" option.
22607 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22609 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22610 "xtab" and "sat". Move value "clz" from here to ...
22611 (attriubte "type"): ... here.
22612 (satsi_<SAT:code>): Delete "insn" attribute.
22613 (satsi_<SAT:code>_shift): Likewise.
22614 (arm_zero_extendqisi2addsi): Likewise.
22615 (arm_extendqisi2addsi): Likewise.
22616 (clzsi2): Update for attribute changes.
22617 (rbitsi2): Likewise.
22618 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22620 (arm_usatsihi): Likewise.
22621 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22623 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22625 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22626 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22627 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22628 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22629 in alphabetical order.
22630 (attribute "core_cycles"): Update for attribute changes.
22631 (arm_addsi3): Likewise.
22632 (addsi3_compare0): Likewise.
22633 (addsi3_compare0_scratch): Likewise.
22634 (addsi3_compare_op1): Likewise.
22635 (addsi3_compare_op2): Likewise.
22636 (compare_addsi2_op0): Likewise.
22637 (compare_addsi2_op1): Likewise.
22638 (addsi3_carryin_shift_<optab>): Likewise.
22639 (subsi3_carryin_shift): Likewise.
22640 (rsbsi3_carryin_shift): Likewise.
22641 (arm_subsi3_insn): Likewise.
22642 (subsi3_compare0): Likewise.
22643 (subsi3_compare): Likewise.
22644 (arm_andsi3_insn): Likewise.
22645 (thumb1_andsi3_insn): Likewise.
22646 (andsi3_compare0): Likewise.
22647 (andsi3_compare0_scratch): Likewise.
22648 (zeroextractsi_compare0_scratch
22649 (andsi_not_shiftsi_si): Likewise.
22650 (iorsi3_insn): Likewise.
22651 (iorsi3_compare0): Likewise.
22652 (iorsi3_compare0_scratch): Likewise.
22653 (arm_xorsi3): Likewise.
22654 (thumb1_xorsi3_insn): Likewise.
22655 (xorsi3_compare0): Likewise.
22656 (xorsi3_compare0_scratch): Likewise.
22657 (satsi_<SAT:code>_shift): Likewise.
22659 (arm_shiftsi3): Likewise.
22660 (shiftsi3_compare0): Likewise.
22661 (not_shiftsi): Likewise.
22662 (not_shiftsi_compare0): Likewise.
22663 (not_shiftsi_compare0_scratch): Likewise.
22664 (arm_one_cmplsi2): Likewise.
22665 (thumb_one_complsi2): Likewise.
22666 (notsi_compare0): Likewise.
22667 (notsi_compare0_scratch): Likewise.
22668 (thumb1_zero_extendhisi2): Likewise.
22669 (arm_zero_extendhisi2): Likewise.
22670 (arm_zero_extendhisi2_v6): Likewise.
22671 (arm_zero_extendhisi2addsi): Likewise.
22672 (thumb1_zero_extendqisi2): Likewise.
22673 (thumb1_zero_extendqisi2_v6): Likewise.
22674 (arm_zero_extendqisi2): Likewise.
22675 (arm_zero_extendqisi2_v6): Likewise.
22676 (arm_zero_extendqisi2addsi): Likewise.
22677 (thumb1_extendhisi2): Likewise.
22678 (arm_extendhisi2): Likewise.
22679 (arm_extendhisi2_v6): Likewise.
22680 (arm_extendqisi): Likewise.
22681 (arm_extendqisi_v6): Likewise.
22682 (arm_extendqisi2addsi): Likewise.
22683 (thumb1_extendqisi2): Likewise.
22684 (thumb1_movdi_insn): Likewise.
22685 (arm_movsi_insn): Likewise.
22686 (movsi_compare0): Likewise.
22687 (movhi_insn_arch4): Likewise.
22688 (movhi_bytes): Likewise.
22689 (arm_movqi_insn): Likewise.
22690 (thumb1_movqi_insn): Likewise.
22691 (arm32_movhf): Likewise.
22692 (thumb1_movhf): Likewise.
22693 (arm_movsf_soft_insn): Likewise.
22694 (thumb1_movsf_insn): Likewise.
22695 (movdf_soft_insn): Likewise.
22696 (thumb_movdf_insn): Likewise.
22697 (arm_cmpsi_insn): Likewise.
22698 (cmpsi_shiftsi): Likewise.
22699 (cmpsi_shiftsi_swp): Likewise.
22700 (arm_cmpsi_negshiftsi_si): Likewise.
22701 (movsicc_insn): Likewise.
22702 (movsfcc_soft_insn): Likewise.
22703 (arith_shiftsi): Likewise.
22704 (arith_shiftsi_compare0
22705 (arith_shiftsi_compare0_scratch
22706 (sub_shiftsi): Likewise.
22707 (sub_shiftsi_compare0
22708 (sub_shiftsi_compare0_scratch
22709 (and_scc): Likewise.
22710 (cond_move): Likewise.
22711 (if_plus_move): Likewise.
22712 (if_move_plus): Likewise.
22713 (if_move_not): Likewise.
22714 (if_not_move): Likewise.
22715 (if_shift_move): Likewise.
22716 (if_move_shift): Likewise.
22717 (if_shift_shift): Likewise.
22718 (if_not_arith): Likewise.
22719 (if_arith_not): Likewise.
22720 (cond_move_not): Likewise.
22721 (thumb1_ashlsi3): Set type attribute.
22722 (thumb1_ashrsi3): Likewise.
22723 (thumb1_lshrsi3): Likewise.
22724 (thumb1_rotrsi3): Likewise.
22725 (shiftsi3_compare0_scratch): Likewise.
22726 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22727 (neon_mov<mode>): Likewise.
22728 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22730 (thumb2_movsi_insn): Likewise.
22731 (thumb2_cmpsi_neg_shiftsi): Likewise.
22732 (thumb2_extendqisi_v6): Likewise.
22733 (thumb2_zero_extendhisi2_v6): Likewise.
22734 (thumb2_zero_extendqisi2_v6): Likewise.
22735 (thumb2_shiftsi3_short): Likewise.
22736 (thumb2_addsi3_compare0_scratch): Likewise.
22737 (orsi_not_shiftsi_si): Likewise.
22738 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22739 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22741 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22742 (1020alu_shift_op): Likewise.
22743 (1020alu_shift_reg_op): Likewise.
22744 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22745 (alu_shift_op): Likewise.
22746 (alu_shift_reg_op): Likewise.
22747 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22748 (11_alu_shift_op): Likewise.
22749 (11_alu_shift_reg_op): Likewise.
22750 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22751 (9_alu_shift_reg_op): Likewise.
22752 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22754 (cortex_a15_alu_shift): Likewise.
22755 (cortex_a15_alu_shift_reg): Likewise.
22756 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22758 (cortex_a5_alu_shift): Likewise.
22759 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22761 (cortex_a53_alu_shift): Likewise.
22762 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22764 (cortex_a7_alu_reg): Likewise.
22765 (cortex_a7_alu_shift): Likewise.
22766 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22768 (cortex_a8_alu_shift): Likewise.
22769 (cortex_a8_alu_shift_reg): Likewise.
22770 (cortex_a8_mov): Likewise.
22771 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22772 (cortex_a9_dp_shift): Likewise.
22773 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22775 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22777 (cortex_r4_mov): Likewise.
22778 (cortex_r4_alu_shift): Likewise.
22779 (cortex_r4_alu_shift_reg): Likewise.
22780 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22781 (526_alu_shift_op): Likewise.
22782 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22783 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22784 (626te_alu_shift_op): Likewise.
22785 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22786 (726te_alu_op): Likewise.
22787 (726te_alu_shift_op): Likewise.
22788 (726te_alu_shift_reg_op): Likewise.
22789 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22790 (mp626_alu_shift_op): Likewise.
22791 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22792 (pj4_alu_e1_conds): Likewise.
22793 (pj4_alu): Likewise.
22794 (pj4_alu_conds): Likewise.
22795 (pj4_shift): Likewise.
22796 (pj4_shift_conds): Likewise.
22797 (pj4_alu_shift): Likewise.
22798 (pj4_alu_shift_conds): Likewise.
22799 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22801 (cortexa7_older_only): Likewise.
22802 (cortexa7_younger): Likewise.
22804 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22806 * ipa-pure-const.c (generate_summary): Rename to...
22807 (pure_const_generate_summary): ... this.
22809 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22811 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22813 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22816 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22819 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22821 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22822 enabled without -march=zEC12.
22823 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22826 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22828 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22829 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22830 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22831 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22832 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22833 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22834 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22836 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22837 and ISA_HAS_NMADD3_NMSUB3.
22838 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22839 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22840 (nmsub4<mode>, nmsub3<mode>): Likewise.
22841 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22843 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22845 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22846 TARGET_MIPS5400 checking.
22848 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22849 Peter Bergner <bergner@vnet.ibm.com>
22851 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22852 registers in the comment.
22853 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22854 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22855 rather than FIRST_PSEUDO_REGISTERS.
22857 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22859 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22860 enable extra ISA flags with TARGET_HTM.
22862 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22864 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22867 2013-07-15 Cong Hou <congh@google.com>
22869 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22870 in compare function for sorting.
22872 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22874 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22875 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22876 * config/rs6000/rs6000.opt: Add -mhtm option.
22877 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22878 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22879 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22880 __HTM__ if the HTM instructions are available.
22881 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22882 htm_spr_reg_operand): New define_predicates.
22883 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22884 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22886 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22887 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22888 HTM builtin functions.
22889 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22890 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22891 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22892 (rs6000_builtin_mask_calculate): Likewise.
22893 (rs6000_option_override_internal): Likewise.
22894 (bdesc_htm): Add new HTM builtin support.
22895 (htm_spr_num): New function.
22896 (htm_spr_regno): Likewise.
22897 (rs6000_htm_spr_icode): Likewise.
22898 (htm_expand_builtin): Likewise.
22899 (htm_init_builtins): Likewise.
22900 (rs6000_expand_builtin): Add support for HTM builtin functions.
22901 (rs6000_init_builtins): Likewise.
22902 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22904 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22905 (TARGET_HTM, MASK_HTM): Define macros.
22906 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22907 (FIXED_REGISTERS): Likewise.
22908 (CALL_USED_REGISTERS): Likewise.
22909 (CALL_REALLY_USED_REGISTERS): Likewise.
22910 (REG_ALLOC_ORDER): Likewise.
22911 (enum reg_class): Likewise.
22912 (REG_CLASS_NAMES): Likewise.
22913 (REG_CLASS_CONTENTS): Likewise.
22914 (REGISTER_NAMES): Likewise.
22915 (ADDITIONAL_REGISTER_NAMES): Likewise.
22916 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22917 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22918 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22919 * config/rs6000/htm.md: New file.
22920 * config/rs6000/htmintrin.h: New file.
22921 * config/rs6000/htmxlintrin.h: New file.
22923 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
22925 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22926 Define SYMBOL_TINY_GOT, update comment.
22927 * config/aarch64/aarch64.c
22928 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22929 (aarch64_expand_mov_immediate): Likewise.
22930 (aarch64_print_operand): Likewise.
22931 (aarch64_classify_symbol): Likewise.
22932 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22933 (ldr_got_tiny): Define.
22935 2013-07-13 Tobias Grosser <tobias@grosser.es>
22937 PR tree-optimization/54094
22938 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22939 scheduling dimension for the parallelism check from the polyhedral
22940 information in the AST.
22941 * graphite-dependences.c (carries_deps): Do not assume the schedule is
22944 2013-07-13 Jason Merrill <jason@redhat.com>
22946 * print-tree.c (debug_vec_tree): Use debug_raw.
22947 (debug_raw (vec<tree, va_gc> &)): New.
22948 (debug_raw (vec<tree, va_gc> *)): New.
22949 * tree.h: Declare them.
22951 2013-07-13 Bin Cheng <bin.cheng@arm.com>
22953 * ifcvt.c (ifcvt_after_combine): New static variable.
22954 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22956 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
22957 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22958 rest_of_handle_if_after_reload): Pass new argument for if_convert.
22960 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
22962 * config/mips/mips.c (mips_expand_call): Remove empty statement.
22964 2013-07-12 Michael Matz <matz@suse.de>
22966 PR middle-end/55771
22967 * convert.c (convert_to_real): Reject non-float inner types.
22969 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
22971 * config/aarch64/aarch64-protos.h
22972 (aarch64_simd_immediate_valid_for_move): Remove.
22973 * config/aarch64/aarch64.c (simd_immediate_info): New member.
22974 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22976 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22978 2013-07-11 Steve Ellcey <sellcey@mips.com>
22980 * config/mips/mips.c (mips_conditional_register_usage): Do not
22981 use t[0-7] registers in MIPS16 mode when optimizing for size.
22983 2013-07-11 Sriraman Tallam <tmsriram@google.com>
22985 * config/i386/i386.c (dispatch_function_versions): Fix array
22986 indexing of function_version_info to match actual_versions.
22988 2013-07-11 Teresa Johnson <tejohnson@google.com>
22990 * vec.h (struct va_gc): Move release out-of-line.
22991 (va_gc::release): Call ggc_free on released vec.
22993 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22995 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22996 Require GOT register as additional operand in UNSPEC.
22997 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22998 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22999 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
23000 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
23001 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
23002 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
23003 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
23005 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
23008 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
23009 name seen by assembler/linker rather if available.
23011 2013-07-11 Andreas Schwab <schwab@suse.de>
23013 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
23015 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
23017 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
23019 2013-07-10 Joseph Myers <joseph@codesourcery.com>
23021 * doc/tm.texi.in: Move hook documentation to ....
23022 * target.def: ... here.
23024 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
23025 text on @hook line.
23026 * doc/tm.texi: Regenerate.
23028 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
23031 * doc/invoke.texi: Document -Wconditionally-supported.
23033 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23036 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
23039 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23042 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
23043 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
23044 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
23045 Remove duplicate devices.
23046 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
23047 * config/avr/t-multilib: Regenerate.
23048 * config/avr/avr-tables.opt: Regenerate.
23049 * doc/avr-mmcu.texi: Regenerate.
23051 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23054 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
23056 2013-07-10 Graham Stott <graham.stott@btinternet.com>
23058 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
23059 the cost of MULT when optimizing for size.
23061 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23063 * config/cr16/cr16-protos.h: Don't include target.h.
23065 2013-07-09 Joseph Myers <joseph@codesourcery.com>
23067 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
23068 adjust register size for TDmode and TFmode for VSX registers.
23070 2013-07-08 Kai Tietz <ktietz@redhat.com>
23073 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
23074 hook_bool_const_tree_true.
23076 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23078 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
23079 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
23080 * config/s390/s390.md: Define FPR*_REGNUM constants.
23081 Fix FPR2_REGNUM constant (18 -> 17).
23082 ("*trunc<BFP:mode><DFP_ALL:mode>2")
23083 ("*trunc<DFP_ALL:mode><BFP:mode>2")
23084 ("trunc<BFP:mode><DFP_ALL:mode>2")
23085 ("trunc<DFP_ALL:mode><BFP:mode>2")
23086 ("*extend<BFP:mode><DFP_ALL:mode>2")
23087 ("*extend<DFP_ALL:mode><BFP:mode>2")
23088 ("extend<BFP:mode><DFP_ALL:mode>2")
23089 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
23092 2013-07-08 Graham Stott <graham.stott@btinternet.com>
23094 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
23096 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23098 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
23099 and cfun_fpr_bit_p to cfun_fpr_save_p.
23100 (s390_frame_area, s390_register_info, s390_frame_info)
23101 (s390_emit_prologue, s390_emit_epilogue)
23102 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
23104 * config/s390/s390.h: Define *_REGNUM macros for floating point
23107 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
23109 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
23111 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
23113 PR rtl-optimization/57786
23114 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
23115 and break out of the loop when it is set to false.
23117 2013-07-08 Jakub Jelinek <jakub@redhat.com>
23120 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
23121 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
23122 (const_int 63)) 0)).
23123 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
23124 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
23125 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
23127 PR rtl-optimization/57829
23128 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
23129 mask bits outside of mode are just sign-extension from mode to HWI.
23131 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
23133 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
23134 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
23135 adjust_address instead of change_address to keep info about alignment.
23136 (emit_strmov): Remove.
23137 (emit_memmov): New function.
23138 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
23139 (expand_movmem_epilogue): Likewise and return updated rtx for
23141 (expand_constant_movmem_prologue): Likewise and return updated rtx for
23142 destination and source.
23143 (decide_alignment): Refactor, handle vector_loop.
23144 (ix86_expand_movmem): Likewise.
23145 (ix86_expand_setmem): Likewise.
23146 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
23148 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
23150 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
23151 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
23153 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
23155 * config/i386/sse.md (sse_movlhps): Change alternative 3
23156 of operand 2 to "m".
23158 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
23161 * config/i386/sse.md (iptr): New mode attribute.
23162 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
23163 (<sse>_vm<plusminus_insn><mode>3): Ditto.
23164 (<sse>_vmmul<mode>3): Ditto.
23165 (<sse>_vmdiv<mode>3): Ditto.
23166 (sse_vmrcpv4sf2): Ditto.
23167 (<sse>_vmsqrt<mode>2): Ditto.
23168 (sse_vmrsqrtv4sf2): Ditto.
23169 (<sse>_vm<code><mode>3): Ditto.
23170 (avx_vmcmp<mode>3): Ditto.
23171 (<sse>_vmmaskcmp<mode>3): Ditto.
23172 (<sse>_comi): Ditto.
23173 (<sse>_ucomi): Ditto.
23174 (*xop_vmfrcz_<mode>): Ditto.
23175 (*fmai_fmadd_<mode>): Ditto.
23176 (*fmai_fmsub_<mode>): Ditto.
23177 (*fmai_fnmadd_<mode>): Ditto.
23178 (*fmai_fnmsub_<mode>): Ditto.
23179 (*fma4i_vmfmadd_<mode>): Ditto.
23180 (*fma4i_vmfmsub_<mode>): Ditto.
23181 (*fma4i_vmfnmadd_<mode>): Ditto.
23182 (*fma4i_vmfnmsub_<mode>): Ditto.
23183 (*xop_vmfrcz_<mode>): Ditto.
23184 (sse_cvtps2pi): Ditto.
23185 (sse_cvttps2pi): Ditto.
23186 (sse_cvtss2si): Ditto.
23187 (sse_cvtss2si_2): Ditto.
23188 (sse_cvtss2siq_2): Ditto.
23189 (sse_cvttss2si): Ditto.
23190 (sse_cvttss2siq): Ditto.
23191 (sse_cvtsd2si): Ditto.
23192 (sse_cvtsd2si_2): Ditto.
23193 (sse_cvtsd2siq_2): Ditto.
23194 (sse_cvttsd2si): Ditto.
23195 (sse_cvttsd2siq): Ditto.
23196 (sse_cvtsd2ss): Ditto.
23197 (sse_cvtss2sd): Ditto.
23198 (avx2_pbroadcast<mode>): Ditto.
23199 (avx2_pbroadcast<mode>_1): Ditto.
23200 (*avx_vperm_broadcast_v4sf): Ditto.
23202 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
23203 (sse_movlhps): Ditto.
23204 (sse_storehps): Ditto.
23205 (sse_loadhps): Ditto.
23206 (sse_storelps): Ditto.
23207 (sse_loadlps): Ditto.
23208 (*vec_concatv4sf): Ditto.
23209 (*vec_interleave_highv2df): Ditto.
23210 (*vec_interleave_lowv2df): Ditto.
23211 (*vec_extractv2df_1_sse): Ditto.
23212 (*vec_extractv2df_0_sse): Ditto.
23213 (sse2_storelpd): Ditto.
23214 (sse2_loadlpd): Ditto.
23215 (sse2_movsd): Ditto.
23216 (*vec_concatv4si): Ditto.
23217 (vec_concatv2di): Ditto.
23219 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
23220 for Intel asm dialect.
23221 (mmx_punpcklwd): Ditto.
23222 (mmx_punpckldq): Ditto.
23224 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
23225 for intel assembler dialect.
23227 2013-07-06 Jakub Jelinek <jakub@redhat.com>
23230 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
23231 for BUILT_IN_C{LZ,LRSB}*.
23232 * tree.h (CASE_INT_FN): Add FN##IMAX case.
23233 * tree-vrp.c (extract_range_basic): Handle
23234 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
23235 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
23236 fall thru to code calling set_value*.
23237 * builtins.c (expand_builtin): Remove *IMAX cases.
23238 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
23239 if width is bigger than 2*HWI.
23241 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
23243 PR rtl-optimization/55342
23244 * lra-int.h (lra_subreg_reload_pseudos): New.
23245 * lra.c: Add undoing optional reloads to the block diagram.
23246 (lra_subreg_reload_pseudos): New.
23247 (lra_optional_reload_pseudos): Change comments.
23248 (lra): Init and clear lra_subreg_reload_pseudos. Clear
23249 lra_optional_reload_pseudos after undo transformations.
23250 * lra-assigns.c (pseudo_prefix_title): New.
23251 (lra_setup_reg_renumber): Use it.
23252 (spill_for): Ditto. Check subreg reload pseudos too.
23253 (assign_by_spills): Consider subreg reload pseudos too.
23254 * lra-constraints.c (simplify_operand_subreg): Use
23255 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
23256 (curr_insn_transform): Recognize and do optional reloads.
23257 (undo_optional_reloads): New.
23258 (lra_undo_inheritance): Call undo_optional_reloads.
23260 2013-07-05 Thomas Quinot <quinot@adacore.com>
23262 * tree-complex.c (expand_complex_operations_1): Fix typo.
23264 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
23266 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
23267 (tune_params): New member 'const vec_costs'.
23268 * config/aarch64/aarch64.c (generic_vector_cost): New.
23269 (generic_tunings): New member 'generic_vector_cost'.
23270 (aarch64_builtin_vectorization_cost): New.
23271 (aarch64_add_stmt_cost): New.
23272 (TARGET_VECTORIZE_ADD_STMT_COST): New.
23273 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
23275 2013-07-03 Jakub Jelinek <jakub@redhat.com>
23278 * config/i386/predicates.md (vsib_address_operand): Disallow
23279 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
23281 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
23283 PR middle-end/55030
23284 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
23285 expand_builtin_setjmp_receiver.
23286 (expand_label): Adjust, call expand_builtin_setjmp_receiver
23287 with NULL for the label parameter.
23288 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
23289 the frame-pointer. Adjust comments.
23290 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
23291 only if LABEL is non-NULL.
23293 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
23295 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
23296 (ARM_ABI_AAPCS64): Ditto.
23298 (ARM_DEFAULT_ABI): Ditto.
23300 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23302 * config/aarch64/aarch64-builtins.c
23303 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
23304 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
23306 * config/aarch64/aarch64-simd.md
23307 (aarch64_ld1<VALL:mode>): New.
23308 (aarch64_st1<VALL:mode>): Likewise.
23309 * config/aarch64/arm_neon.h
23310 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
23312 2013-07-02 Sriraman Tallam <tmsriram@google.com>
23314 * config/i386/i386.c (gate_insert_vzeroupper): Check if
23316 (ix86_option_override_internal):Turn on all -mavx target flags by
23317 default as they are dependent on AVX anyway.
23319 2013-07-02 Cary Coutant <ccoutant@google.com>
23321 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
23322 deterministic hash.
23323 (loc_checksum_ordered): Likewise.
23324 (hash_loc_operands): Remove inline keyword.
23326 2013-07-02 Jakub Jelinek <jakub@redhat.com>
23328 PR tree-optimization/57741
23329 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
23330 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
23331 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
23332 Allow REAL_CST step_exprs if flag_associative_math.
23333 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
23335 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23337 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
23339 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23341 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
23343 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23345 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
23347 (iorsi3_insn): Likewise.
23348 (arm_xorsi3): Likewise.
23350 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
23352 * arm.md (attribute "wtype"): Delete. Move attribute values from here
23354 (attribute "type"): ... here, and prefix with "wmmx_".
23355 (attribute "core_cycles"): Update for attribute changes.
23356 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
23357 (tbcstv4hi): Likewise.
23358 (tbcstv2si): Likewise.
23359 (iwmmxt_iordi3): Likewise.
23360 (iwmmxt_xordi3): Likewise.
23361 (iwmmxt_anddi3): Likewise.
23362 (iwmmxt_nanddi3): Likewise.
23363 (iwmmxt_arm_movdi): Likewise.
23364 (iwmmxt_movsi_insn): Likewise.
23365 (mov<mode>_internal): Likewise.
23366 (and<mode>3_iwmmxt): Likewise.
23367 (ior<mode>3_iwmmxt): Likewise.
23368 (xor<mode>3_iwmmxt): Likewise.
23369 (add<mode>3_iwmmxt): Likewise.
23370 (ssaddv8qi3): Likewise.
23371 (ssaddv4hi3): Likewise.
23372 (ssaddv2si3): Likewise.
23373 (usaddv8qi3): Likewise.
23374 (usaddv4hi3): Likewise.
23375 (usaddv2si3): Likewise.
23376 (sub<mode>3_iwmmxt): Likewise.
23377 (sssubv8qi3): Likewise.
23378 (sssubv4hi3): Likewise.
23379 (sssubv2si3): Likewise.
23380 (ussubv8qi3): Likewise.
23381 (ussubv4hi3): Likewise.
23382 (ussubv2si3): Likewise.
23383 (mulv4hi3_iwmmxt): Likewise.
23384 (smulv4hi3_highpart): Likewise.
23385 (umulv4hi3_highpart): Likewise.
23386 (iwmmxt_wmacs): Likewise.
23387 (iwmmxt_wmacsz): Likewise.
23388 (iwmmxt_wmacu): Likewise.
23389 (iwmmxt_wmacuz): Likewise.
23390 (iwmmxt_clrdi): Likewise.
23391 (iwmmxt_clrv8qi): Likewise.
23392 (iwmmxt_clr4hi): Likewise.
23393 (iwmmxt_clr2si): Likewise.
23394 (iwmmxt_uavgrndv8qi3): Likewise.
23395 (iwmmxt_uavgrndv4hi3): Likewise.
23396 (iwmmxt_uavgv8qi3): Likewise.
23397 (iwmmxt_uavgv4hi3): Likewise.
23398 (iwmmxt_tinsrb): Likewise.
23399 (iwmmxt_tinsrh): Likewise.
23400 (iwmmxt_tinsrw): Likewise.
23401 (iwmmxt_textrmub): Likewise.
23402 (iwmmxt_textrmsb): Likewise.
23403 (iwmmxt_textrmuh): Likewise.
23404 (iwmmxt_textrmsh): Likewise.
23405 (iwmmxt_textrmw): Likewise.
23406 (iwmxxt_wshufh): Likewise.
23407 (eqv8qi3): Likewise.
23408 (eqv4hi3): Likewise.
23409 (eqv2si3): Likewise.
23410 (gtuv8qi3): Likewise.
23411 (gtuv4hi3): Likewise.
23412 (gtuv2si3): Likewise.
23413 (gtv8qi3): Likewise.
23414 (gtv4hi3): Likewise.
23415 (gtv2si3): Likewise.
23416 (smax<mode>3_iwmmxt): Likewise.
23417 (umax<mode>3_iwmmxt): Likewise.
23418 (smin<mode>3_iwmmxt): Likewise.
23419 (umin<mode>3_iwmmxt): Likewise.
23420 (iwmmxt_wpackhss): Likewise.
23421 (iwmmxt_wpackwss): Likewise.
23422 (iwmmxt_wpackdss): Likewise.
23423 (iwmmxt_wpackhus): Likewise.
23424 (iwmmxt_wpackwus): Likewise.
23425 (iwmmxt_wpackdus): Likewise.
23426 (iwmmxt_wunpckihb): Likewise.
23427 (iwmmxt_wunpckihh): Likewise.
23428 (iwmmxt_wunpckihw): Likewise.
23429 (iwmmxt_wunpckilb): Likewise.
23430 (iwmmxt_wunpckilh): Likewise.
23431 (iwmmxt_wunpckilw): Likewise.
23432 (iwmmxt_wunpckehub): Likewise.
23433 (iwmmxt_wunpckehuh): Likewise.
23434 (iwmmxt_wunpckehuw): Likewise.
23435 (iwmmxt_wunpckehsb): Likewise.
23436 (iwmmxt_wunpckehsh): Likewise.
23437 (iwmmxt_wunpckehsw): Likewise.
23438 (iwmmxt_wunpckelub): Likewise.
23439 (iwmmxt_wunpckeluh): Likewise.
23440 (iwmmxt_wunpckeluw): Likewise.
23441 (iwmmxt_wunpckelsb): Likewise.
23442 (iwmmxt_wunpckelsh): Likewise.
23443 (iwmmxt_wunpckelsw): Likewise.
23444 (ror<mode>3): Likewise.
23445 (ashr<mode>3_iwmmxt): Likewise.
23446 (lshr<mode>3_iwmmxt): Likewise.
23447 (ashl<mode>3_iwmmxt): Likewise.
23448 (ror<mode>3_di): Likewise.
23449 (ashr<mode>3_di): Likewise.
23450 (lshr<mode>3_di): Likewise.
23451 (ashl<mode>3_di): Likewise.
23452 (iwmmxt_wmadds): Likewise.
23453 (iwmmxt_wmaddu): Likewise.
23454 (iwmmxt_tmia): Likewise.
23455 (iwmmxt_tmiaph): Likewise.
23456 (iwmmxt_tmiabb): Likewise.
23457 (iwmmxt_tmiatb): Likewise.
23458 (iwmmxt_tmiabt): Likewise.
23459 (iwmmxt_tmiatt): Likewise.
23460 (iwmmxt_tmovmskb): Likewise.
23461 (iwmmxt_tmovmskh): Likewise.
23462 (iwmmxt_tmovmskw): Likewise.
23463 (iwmmxt_waccb): Likewise.
23464 (iwmmxt_wacch): Likewise.
23465 (iwmmxt_waccw): Likewise.
23466 (iwmmxt_waligni): Likewise.
23467 (iwmmxt_walignr): Likewise.
23468 (iwmmxt_walignr0): Likewise.
23469 (iwmmxt_walignr1): Likewise.
23470 (iwmmxt_walignr2): Likewise.
23471 (iwmmxt_walignr3): Likewise.
23472 (iwmmxt_wsadb): Likewise.
23473 (iwmmxt_wsadh): Likewise.
23474 (iwmmxt_wsadbz): Likewise.
23475 (iwmmxt_wsadhz): Likewise.
23476 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23477 (iwmmxt_wabsdiffb): Likewise.
23478 (iwmmxt_wabsdiffh): Likewise.
23479 (iwmmxt_wabsdiffw): Likewise.
23480 (iwmmxt_waddsubhx): Likewise
23481 (iwmmxt_wsubaddhx): Likewise.
23482 (addc<mode>3): Likewise.
23483 (iwmmxt_avg4): Likewise.
23484 (iwmmxt_avg4r): Likewise.
23485 (iwmmxt_wmaddsx): Likewise.
23486 (iwmmxt_wmaddux): Likewise.
23487 (iwmmxt_wmaddsn): Likewise.
23488 (iwmmxt_wmaddun): Likewise.
23489 (iwmmxt_wmulwsm): Likewise.
23490 (iwmmxt_wmulwum): Likewise.
23491 (iwmmxt_wmulsmr): Likewise.
23492 (iwmmxt_wmulumr): Likewise.
23493 (iwmmxt_wmulwsmr): Likewise.
23494 (iwmmxt_wmulwumr): Likewise.
23495 (iwmmxt_wmulwl): Likewise.
23496 (iwmmxt_wqmulm): Likewise.
23497 (iwmmxt_wqmulwm): Likewise.
23498 (iwmmxt_wqmulmr): Likewise.
23499 (iwmmxt_wqmulwmr): Likewise.
23500 (iwmmxt_waddbhusm): Likewise.
23501 (iwmmxt_waddbhusl): Likewise.
23502 (iwmmxt_wqmiabb): Likewise.
23503 (iwmmxt_wqmiabt): Likewise.
23504 (iwmmxt_wqmiatb): Likewise.
23505 (iwmmxt_wqmiatt): Likewise.
23506 (iwmmxt_wqmiabbn): Likewise.
23507 (iwmmxt_wqmiabtn): Likewise.
23508 (iwmmxt_wqmiatbn): Likewise.
23509 (iwmmxt_wqmiattn): Likewise.
23510 (iwmmxt_wmiabb): Likewise.
23511 (iwmmxt_wmiabt): Likewise.
23512 (iwmmxt_wmiatb): Likewise.
23513 (iwmmxt_wmiatt): Likewise.
23514 (iwmmxt_wmiabbn): Likewise.
23515 (iwmmxt_wmiabtn): Likewise.
23516 (iwmmxt_wmiatbn): Likewise.
23517 (iwmmxt_wmiattn): Likewise.
23518 (iwmmxt_wmiawbb): Likewise.
23519 (iwmmxt_wmiawbt): Likewise.
23520 (iwmmxt_wmiawtb): Likewise.
23521 (iwmmxt_wmiawtt): Likewise.
23522 (iwmmxt_wmiawbbn): Likewise.
23523 (iwmmxt_wmiawbtn): Likewise.
23524 (iwmmxt_wmiawtbn): Likewise.
23525 (iwmmxt_wmiawttn): Likewise.
23526 (iwmmxt_wmerge): Likewise.
23527 (iwmmxt_tandc<mode>3): Likewise.
23528 (iwmmxt_torc<mode>3): Likewise.
23529 (iwmmxt_torvsc<mode>3): Likewise.
23530 (iwmmxt_textrc<mode>3): Likewise.
23531 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23532 (wmmxt_pack): Likewise.
23533 (wmmxt_mult_c1): Likewise.
23534 (wmmxt_mult_c2): Likewise.
23535 (wmmxt_alu_c1): Likewise.
23536 (wmmxt_alu_c2): Likewise.
23537 (wmmxt_alu_c3): Likewise.
23538 (wmmxt_transfer_c1): Likewise.
23539 (wmmxt_transfer_c2): Likewise.
23540 (wmmxt_transfer_c3): Likewise.
23541 (marvell_f_iwmmxt_wstr): Likewise.
23542 (marvell_f_iwmmxt_wldr): Likewise.
23544 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
23546 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23548 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23551 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23552 * lra-constraints.c (need_for_split_p): Check call used hard regs
23553 living through calls.
23555 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23556 call used regs for call insn.
23558 2013-06-28 Jakub Jelinek <jakub@redhat.com>
23561 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23562 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23564 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23566 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23568 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23570 * lra-constraints.c (need_for_split_p): Check call used hard regs
23571 living through calls.
23573 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23576 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23577 to tie with any other modes. Eliminate Altivec vector mode tests,
23578 since these are a subset of ALTIVEC or VSX vector modes. Simplify
23579 code, to return 0 if testing MODE2 for a condition, if we've
23580 already tested MODE1 for the same condition.
23582 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23584 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23587 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23589 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23590 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23592 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23594 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23596 (aarch64_symbolic_constant_p): Remove.
23597 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23598 static. Fix line length and white space.
23599 (aarch64_symbolic_constant_p): Remove.
23600 * config/aarch64/predicates.md (aarch64_valid_symref):
23601 Use aarch64_classify_symbol_expression.
23603 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23605 * config/arm/constraints.md (Ts): New constraint.
23606 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23608 (compare_scc): Use "Ts" constraint for operand 0.
23609 (ior_scc_scc): Likewise.
23610 (and_scc_scc): Likewise.
23611 (and_scc_scc_nodom): Likewise.
23612 (ior_scc_scc_cmp): Likewise for operand 7.
23613 (and_scc_scc_cmp): Likewise.
23614 * config/arm/thumb2.md (thumb2_movsi_insn):
23615 Add alternatives for 16-bit encodings.
23616 (thumb2_movhi_insn): Likewise.
23617 (thumb2_movsicc_insn): Likewise.
23618 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23619 (thumb2_negscc): Use "Ts" constraint.
23620 Move mvn instruction outside cond_exec block.
23621 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23622 for 16-bit encodings.
23624 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23626 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23628 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23629 (mulsi3subsi): Likewise.
23630 (mulsidi3adddi): Likewise.
23631 (mulsidi3_v6): Likewise.
23632 (umulsidi3_v6): Likewise.
23633 (umulsidi3adddi_v6): Likewise.
23634 (smulsi3_highpart_v6): Likewise.
23635 (umulsi3_highpart_v6): Likewise.
23636 (mulhisi3tb): Likewise.
23637 (mulhisi3bt): Likewise.
23638 (mulhisi3tt): Likewise.
23639 (maddhisi4): Likewise.
23640 (maddhisi4tb): Likewise.
23641 (maddhisi4tt): Likewise.
23642 (maddhidi4): Likewise.
23643 (maddhidi4tb): Likewise.
23644 (maddhidi4tt): Likewise.
23645 (zeroextractsi_compare0_scratch): Likewise.
23646 (insv_zero): Likewise.
23647 (insv_t2): Likewise.
23648 (anddi_notzesidi_di): Likewise.
23649 (anddi_notsesidi_di): Likewise.
23650 (andsi_notsi_si): Likewise.
23651 (iordi_zesidi_di): Likewise.
23652 (xordi_zesidi_di): Likewise.
23653 (andsi_iorsi3_notsi): Likewise.
23654 (smax_0): Likewise.
23655 (smax_m1): Likewise.
23656 (smin_0): Likewise.
23657 (not_shiftsi): Likewise.
23658 (unaligned_loadsi): Likewise.
23659 (unaligned_loadhis): Likewise.
23660 (unaligned_loadhiu): Likewise.
23661 (unaligned_storesi): Likewise.
23662 (unaligned_storehi): Likewise.
23663 (extv_reg): Likewise.
23664 (extzv_t2): Likewise.
23665 (divsi3): Likewise.
23666 (udivsi3): Likewise.
23667 (arm_zero_extendhisi2addsi): Likewise.
23668 (arm_zero_extendqisi2addsi): Likewise.
23669 (compareqi_eq0): Likewise.
23670 (arm_extendhisi2_v6): Likewise.
23671 (arm_extendqisi2addsi): Likewise.
23672 (arm_movt): Likewise.
23673 (thumb2_ldrd): Likewise.
23674 (thumb2_ldrd_base): Likewise.
23675 (thumb2_ldrd_base_neg): Likewise.
23676 (thumb2_strd): Likewise.
23677 (thumb2_strd_base): Likewise.
23678 (thumb2_strd_base_neg): Likewise.
23679 (arm_negsi2): Add alternative for 16-bit encoding.
23680 (arm_one_cmplsi2): Likewise.
23682 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23684 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23685 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23686 (movdfcc): Likewise.
23687 * config/arm/vfp.md (*thumb2_movsf_vfp):
23688 Disable predication for arm_restrict_it.
23689 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23690 (*thumb2_movdfcc_vfp): Likewise.
23691 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23692 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23693 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23694 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23695 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23696 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23697 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23698 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23699 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23700 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23701 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23702 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23703 Disable predication for arm_restrict_it.
23705 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23707 * config/i386/bmiintrin.h (_bextr_u32): New.
23708 (_bextr_u64): Ditto.
23710 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23712 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23713 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23714 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23715 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23716 * config/mips/n32-elf.h: ...this new file.
23718 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23721 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23722 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23724 2013-06-27 Catherine Moore <clm@codesourcery.com>
23726 * config/mips/mips-tables.opt: Regenerate.
23727 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23728 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23729 * doc/invoke.texi: Add -m14kc.
23731 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23734 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23735 constraints of operand 1 and 2.
23738 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23739 to match RTL canonicalization. Swap predicates and
23740 constraints of operand 1 and 2.
23742 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
23744 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23745 Process OP_INOUT regs for splitting too.
23747 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23749 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23750 decl before the loop, initialize to NULL.
23751 (vectorizable_load): Initialize ptr_incr to NULL.
23753 2013-06-27 Martin Jambor <mjambor@suse.cz>
23756 * ipa-ref.h (ipa_maybe_record_reference): Declare.
23757 * ipa-ref.c (ipa_maybe_record_reference): New function.
23758 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23759 * ipa-cp.c (create_specialized_node): Record potential references from
23761 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23763 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23765 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23766 parameter 'mode' of type 'enum machine_mode mode'; change to pass
23767 'mode' to force_reg.
23768 (aarch64_add_offset): Update calls to aarch64_force_temporary.
23769 (aarch64_expand_mov_immediate): Likewise.
23771 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23773 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23774 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23776 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23778 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23779 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23780 (struct machine_function): Add tbegin_p.
23781 (s390_canonicalize_comparison): Fold CC mode compares to
23782 conditional jump if possible.
23783 (s390_emit_jump): Return the emitted jump.
23784 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23785 Handle CCRAWmode compares.
23786 (s390_option_override): Default to -mhtm if available.
23787 (s390_reg_clobbered_rtx): Handle floating point regs as well.
23788 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23789 FPRs instead of df_regs_ever_live_p.
23790 (s390_optimize_nonescaping_tx): New function.
23791 (s390_init_frame_layout): Extend clobbered_regs array to cover
23793 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23794 (s390_expand_tbegin): New function.
23795 (enum s390_builtin): New enum definition.
23796 (code_for_builtin): New array definition.
23797 (s390_init_builtins): New function.
23798 (s390_expand_builtin): New function.
23799 (TARGET_INIT_BUILTINS): Define.
23800 (TARGET_EXPAND_BUILTIN): Define.
23801 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23802 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23803 (s390_alc_comparison): Likewise.
23804 * config/s390/s390-modes.def: Add CCRAWmode.
23805 * config/s390/s390.h (processor_flags): Add PF_TX.
23806 (TARGET_CPU_HTM): Define macro.
23807 (TARGET_HTM): Define macro.
23808 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23809 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23810 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23811 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23812 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23813 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23814 ("*cc_to_int"): Move up.
23815 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23816 constants other than 0.
23817 ("*ccraw_to_int"): New insn and splitter definition.
23818 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23819 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23820 ("tx_assist"): New expander.
23821 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23822 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23823 * config/s390/s390.opt: Add -mhtm option.
23824 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23825 * config/s390/htmxlintrin.h: New file.
23826 * config/s390/htmintrin.h: New file.
23827 * config/s390/s390intrin.h: New file.
23828 * doc/extend.texi: Document htm builtins.
23829 * config.gcc: Add the new header files to extra_headers.
23831 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23833 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23834 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23836 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23837 Pat Haugen <pthaugen@us.ibm.com>
23838 Peter Bergner <bergner@vnet.ibm.com>
23840 * config/rs6000/power8.md: New.
23841 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23842 setting for power8 entry.
23843 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23844 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23845 test for Power4/Power5 only.
23846 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23848 (force_new_group): Adjust comment.
23849 * config/rs6000/rs6000.md: Include power8.md.
23851 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23853 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23854 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23856 (tune_params): Update comment.
23857 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23858 (arm_max_conditional_execute): New function.
23859 (thumb2_final_prescan_insn): Use max_insn_skipped and
23860 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23862 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23864 PR tree-optimization/57705
23865 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23866 SSA_NAME step, provided that it is not defined inside the loop.
23867 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23868 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23870 2013-06-25 Martin Jambor <mjambor@suse.cz>
23872 PR middle-end/57670
23873 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23874 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23876 (ipa_note_param_call): Initialize member_ptr flag.
23877 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23878 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23879 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23880 (ipa_read_indirect_edge_info): Likewise.
23882 2013-06-25 Richard Biener <rguenther@suse.de>
23884 PR middle-end/56977
23885 * passes.c (init_optimization_passes): Move pass_fold_builtins
23886 and pass_dce earlier with -Og.
23888 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
23890 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23891 <BIT_FIELD_REF>: Remove trailing TAB.
23892 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23895 2013-06-24 Martin Jambor <mjambor@suse.cz>
23897 PR tree-optimization/57358
23898 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23899 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23900 (ipa_analyze_params_uses): Generate pessimistic info when true.
23902 2013-06-24 Martin Jambor <mjambor@suse.cz>
23904 PR tree-optimization/57539
23905 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23906 global.inlined_to of the new node to it. All callers changed.
23907 * ipa-inline-transform.c (clone_inlined_nodes): New variable
23908 inlining_into, pass it to cgraph_clone_node.
23909 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23910 ipa_free_edge_args_substructures.
23911 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23912 rdesc linked list. Do not assert rdesc edges have inlined caller.
23913 Assert we have found an rdesc in the rdesc list.
23915 2013-06-24 Richard Biener <rguenther@suse.de>
23917 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23918 (pointer_set_lookup): Declare.
23919 (class pointer_map): New template class implementing a
23920 generic pointer to T map.
23921 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23922 pointer_map<T>::contains, pointer_map<T>::insert,
23923 pointer_map<T>::traverse): New functions.
23924 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23925 (pointer_set_lookup): New function.
23926 (pointer_set_contains): Use pointer_set_lookup.
23927 (pointer_set_insert): Likewise.
23928 (insert_aux): Remove.
23929 (struct pointer_map_t): Embed a pointer_set_t.
23930 (pointer_map_create): Adjust.
23931 (pointer_map_destroy): Likewise.
23932 (pointer_map_contains): Likewise.
23933 (pointer_map_insert): Likewise.
23934 (pointer_map_traverse): Likewise.
23935 * tree-streamer.h (struct streamer_tree_cache_d): Use a
23936 pointer_map<unsigned> instead of a pointer_map_t.
23937 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23938 (streamer_tree_cache_lookup): Likewise.
23939 (streamer_tree_cache_create): Likewise.
23940 (streamer_tree_cache_delete): Likewise.
23941 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23942 pointer_map<unsigned> instead of a pointer_map_t.
23943 (lto_init_tree_ref_encoder): Adjust.
23944 (lto_destroy_tree_ref_encoder): Likewise.
23945 * lto-section-out.c (lto_output_decl_index): Likewise.
23946 (lto_record_function_out_decl_state): Likewise.
23947 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23949 2013-06-24 Richard Biener <rguenther@suse.de>
23951 PR tree-optimization/57488
23952 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23954 2013-06-24 Alan Modra <amodra@gmail.com>
23956 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23957 (gen_easy_altivec_constant): Likewise.
23958 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23959 easy_vector_constant_msb): Likewise.
23961 2013-06-23 Jakub Jelinek <jakub@redhat.com>
23964 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23965 add missing return true.
23967 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
23970 * config/sh/predicates.md (general_extend_operand): Invoke
23971 general_movsrc_operand for memory operands.
23972 (general_movsrc_operand): Allow reg+reg addressing, do not use
23973 general_operand for memory operands.
23975 2013-06-23 Sriraman Tallam <tmsriram@google.com>
23977 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
23978 when current target options does not apply.
23979 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23980 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23981 * config/i386/bmiintrin.h: Pass appropriate target
23982 attributes to header.
23983 * config/i386/mmintrin.h: Ditto.
23984 * config/i386/nmmintrin.h: Ditto.
23985 * config/i386/avx2intrin.h: Ditto.
23986 * config/i386/fxsrintrin.h: Ditto.
23987 * config/i386/tbmintrin.h: Ditto.
23988 * config/i386/xsaveintrin.h: Ditto.
23989 * config/i386/f16cintrin.h: Ditto.
23990 * config/i386/xtestintrin.h: Ditto.
23991 * config/i386/xsaveoptintrin.h: Ditto.
23992 * config/i386/bmi2intrin.h: Ditto.
23993 * config/i386/lzcntintrin.h: Ditto.
23994 * config/i386/smmintrin.h: Ditto.
23995 * config/i386/wmmintrin.h: Ditto.
23996 * config/i386/x86intrin.h: Remove all header include guards.
23997 * config/i386/prfchwintrin.h: Ditto.
23998 * config/i386/pmmintrin.h: Ditto.
23999 * config/i386/tmmintrin.h: Ditto.
24000 * config/i386/xmmintrin.h: Ditto.
24001 * config/i386/popcntintrin.h: Ditto.
24002 * config/i386/rdseedintrin.h: Ditto.
24003 * config/i386/ammintrin.h: Ditto.
24004 * config/i386/emmintrin.h: Ditto.
24005 * config/i386/immintrin.h: Remove all header include guards.
24006 * config/i386/fma4intrin.h: Ditto.
24007 * config/i386/lwpintrin.h: Ditto.
24008 * config/i386/xopintrin.h: Ditto.
24009 * config/i386/ia32intrin.h: Ditto.
24010 * config/i386/avxintrin.h: Ditto.
24011 * config/i386/rtmintrin.h: Ditto.
24012 * config/i386/fmaintrin.h: Ditto.
24013 * config/i386/mm3dnow.h: Ditto.
24015 2013-06-22 Sriraman Tallam <tmsriram@google.com>
24017 * common/config/i386/i386-common.c: Handle LZCNT.
24019 2013-06-22 Andi Kleen <ak@linux.intel.com>
24021 * doc/extend.texi: Use __atomic_store_n instead of
24022 __atomic_store in HLE example.
24024 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
24026 * config/sh/sh.c: Remove <cstdlib> workaround.
24028 2013-06-21 Andi Kleen <ak@linux.intel.com>
24030 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
24032 2013-06-21 Andi Kleen <ak@linux.intel.com>
24034 * doc/extend.texi: Document that __atomic_clear and
24035 __atomic_test_and_set should only be used with bool.
24037 2013-06-20 Jan Hubicka <jh@suse.cz>
24039 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
24040 types_same_for_odr.
24041 * tree.c (decls_same_for_odr): New function.
24042 (same_for_edr): New function.
24043 (types_same_for_odr): New function.
24044 (get_binfo_at_offset): Use it.
24045 * tree.h (types_same_for_odr): Declare.
24047 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
24048 Jason Merrill <jason@redhat.com>
24050 * system.h: Include <cstdlib> as well as <stdlib.h>.
24052 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
24055 * config/i386/i386.c (construct_container): Report error if
24056 long double is used with disabled x87 float returns.
24058 2013-06-20 Jan Hubicka <jh@suse.cz>
24060 * lto-cgraph.c (input_symtab): Do not set cgraph state.
24062 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
24064 PR rtl-optimization/57425
24065 PR rtl-optimization/57569
24066 * alias.c (write_dependence_p): Remove parameters mem_mode and
24067 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
24068 Changed all callers.
24069 (canon_anti_dependence): Get comments and semantics in sync.
24070 Add parameter mem_canonicalized. Changed all callers.
24071 * rtl.h (canon_anti_dependence): Update prototype.
24073 2013-06-20 Richard Biener <rguenther@suse.de>
24075 * data-streamer-in.c (streamer_read_uhwi): Optimize single
24076 byte case, inline streamer_read_uchar and defer section
24079 2013-06-20 Richard Biener <rguenther@suse.de>
24081 PR tree-optimization/57584
24082 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
24083 SSA names into the expanded expression that take part in
24084 abnormal coalescing.
24086 2013-06-19 Sharad Singhai <singhai@google.com>
24088 * gcov.c (print_usage): Handle new option.
24089 (process_args): Ditto.
24090 (get_gcov_intermediate_filename): New function.
24091 (output_intermediate_file): New function.
24092 (output_gcov_file): New function
24093 (generate_results): Handle new option.
24094 (release_function): Relase demangled name.
24095 (read_graph_file): Handle demangled name.
24096 (output_lines): Ditto.
24097 * doc/gcov.texi: Document gcov intermediate format.
24099 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
24102 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
24103 (lra_emit_add): Use the functions. Add comment about Y as an
24106 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
24109 * collect2.c (collect_atexit): New.
24110 (collect_exit): Delete.
24111 (main): Register collect_atexit with atexit.
24112 (collect_wait): Change collect_exit to exit.
24114 * collect2.h (collect_exit): Delete.
24115 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
24117 2013-06-19 Wei Mi <wmi@google.com>
24119 PR rtl-optimization/57518
24120 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
24121 if regno is used in paradoxical subreg.
24122 (update_equiv_regs): Check pdx_subregs[regno] before
24123 set a reg to be equivalent with a mem.
24125 2013-06-19 Matthias Klose <doko@ubuntu.com>
24128 * file-find.h (find_a_file): Add a mode parameter.
24129 * file-find.c (find_a_file): Likewise.
24130 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
24131 with X_OK for the executables.
24132 * collect2.c (main): Call find_a_file with X_OK.
24134 2013-06-19 Steve Ellcey <sellcey@mips.com>
24137 * config/mips/mips.md (casesi_internal_mips16_<mode>):
24138 Use NEXT_INSN instead of next_real_insn.
24140 2013-06-19 Jan Hubicka <jh@suse.cz>
24142 * cgraph.h (const_value_known_p): Replace by ...
24143 (ctor_for_folding): .. this one.
24144 * cgraphunit.c (process_function_and_variable_attributes): Use it.
24145 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
24146 * expr.c (expand_expr_real_1): Likewise.
24147 (string_constant): Likewise.
24148 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
24149 * ipa.c (process_references): Likewise.
24150 (symtab_remove_unreachable_nodes): Likewise.
24151 * ipa-inline-analysis.c (param_change_prob): Likewise.
24152 * gimple-fold.c (canonicalize_constructor_val): Likewise.
24153 (get_base_constructor): Likwise.
24154 * varpool.c (varpool_remove_node): Likewise.
24155 (varpool_remove_initializer): LIkewise.
24156 (dump_varpool_node): LIkwise.
24157 (const_value_known_p): Rewrite to ...
24158 (ctor_for_folding): ... this one.
24160 2013-06-19 Jakub Jelinek <jakub@redhat.com>
24163 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
24164 PERSONALITY in $PATH derived prefixes.
24166 2013-06-19 Jeff Law <law@redhat.com>
24168 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
24171 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
24172 (simplify_bitwise_binary): Use it to simpify certain binary ops on
24175 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
24177 * config/arm/vfp.md: Move VFP instruction classification documentation
24179 * config/arm/arm.md: ... here. Update instruction classification
24182 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
24184 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
24185 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
24186 pattern. Use more efficient sequences on ARMv5 and Thumb2.
24188 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
24191 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24192 with NEXT_INSN. Use tablejump_p to check for jump table data
24195 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
24198 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
24199 that now in C++ the value is correct per the C++ standards.
24201 2013-06-19 Richard Biener <rguenther@suse.de>
24203 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
24204 for global context.
24206 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24209 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24212 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24213 with next_active_insn.
24215 2013-06-18 Sriraman Tallam <tmsriram@google.com>
24217 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
24218 functions are inlined during failures to flag an error.
24219 * tree-inline.c (expand_call_inline): Allow the error to be flagged
24220 in early inline pass.
24222 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
24224 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
24227 2013-06-18 Julian Brown <julian@codesourcery.com>
24229 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
24230 Permit virtual register pre-reload if !strict.
24231 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
24233 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
24235 * config/arm/neon.md (movmisalign<mode>): Use
24236 neon_perm_struct_or_reg_operand instead of
24237 neon_struct_or_register_operand.
24238 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
24239 neon_permissive_struct_operand instead of neon_struct_operand.
24240 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
24241 neon_vector_mem_operand.
24242 * config/arm/predicates.md (neon_struct_operand): Adjust call to
24243 neon_vector_mem_operand.
24244 (neon_permissive_struct_operand): New.
24245 (neon_struct_or_register_operand): Rename to...
24246 (neon_perm_struct_or_reg_operand): This. Adjust call to
24247 neon_vector_mem_operand.
24249 2013-06-18 Richard Biener <rguenther@suse.de>
24251 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
24252 * lto-streamer.h: Include pointer-set.h.
24253 (struct lto_decl_slot): Remove.
24254 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
24255 Remove next_index entry.
24256 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24257 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24258 (lto_init_tree_ref_encoder): Adjust.
24259 (lto_destroy_tree_ref_encoder): Likewise.
24260 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24261 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24262 (lto_output_decl_index): Adjust.
24263 (lto_new_out_decl_state): Likewise.
24264 (lto_record_function_out_decl_state): Likewise.
24265 * lto-streamer-out.c (copy_function): Likewise.
24267 2013-06-18 Richard Biener <rguenther@suse.de>
24269 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
24270 * cgraphunit.c: Include cfgloop.h.
24271 (init_lowered_empty_function): Initialize the loop tree.
24272 (assemble_thunk): Insert new BBs into loops.
24274 2013-06-18 Richard Biener <rguenther@suse.de>
24276 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
24277 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
24278 the map from cache entry to cache index optional.
24279 (streamer_tree_cache_replace_tree): Adjust accordingly.
24280 (streamer_tree_cache_append): Likewise.
24281 (streamer_tree_cache_delete): Likewise.
24282 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
24283 streamer cache map from cache entry to cache index.
24284 * lto-streamer-out.c (create_output_block): Adjust.
24286 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
24288 * config/arm/arm.md (attribute "insn"): Move multiplication and
24289 division attributes to...
24290 (attribute "type"): ... here. Remove mult.
24291 (attribute "mul32"): New attribute.
24292 (attribute "mul64"): Add umaal.
24293 (*arm_mulsi3): Update attributes.
24294 (*arm_mulsi3_v6): Likewise.
24295 (*thumb_mulsi3): Likewise.
24296 (*thumb_mulsi3_v6): Likewise.
24297 (*mulsi3_compare0): Likewise.
24298 (*mulsi3_compare0_v6): Likewise.
24299 (*mulsi_compare0_scratch): Likewise.
24300 (*mulsi_compare0_scratch_v6): Likewise.
24301 (*mulsi3addsi): Likewise.
24302 (*mulsi3addsi_v6): Likewise.
24303 (*mulsi3addsi_compare0): Likewise.
24304 (*mulsi3addsi_compare0_v6): Likewise.
24305 (*mulsi3addsi_compare0_scratch): Likewise.
24306 (*mulsi3addsi_compare0_scratch_v6): Likewise.
24307 (*mulsi3subsi): Likewise.
24308 (*mulsidi3adddi): Likewise.
24309 (*mulsi3addsi_v6): Likewise.
24310 (*mulsidi3adddi_v6): Likewise.
24311 (*mulsidi3_nov6): Likewise.
24312 (*mulsidi3_v6): Likewise.
24313 (*umulsidi3_nov6): Likewise.
24314 (*umulsidi3_v6): Likewise.
24315 (*umulsidi3adddi): Likewise.
24316 (*umulsidi3adddi_v6): Likewise.
24317 (*smulsi3_highpart_nov6): Likewise.
24318 (*smulsi3_highpart_v6): Likewise.
24319 (*umulsi3_highpart_nov6): Likewise.
24320 (*umulsi3_highpart_v6): Likewise.
24321 (mulhisi3): Likewise.
24322 (*mulhisi3tb): Likewise.
24323 (*mulhisi3bt): Likewise.
24324 (*mulhisi3tt): Likewise.
24325 (maddhisi4): Likewise.
24326 (*maddhisi4tb): Likewise.
24327 (*maddhisi4tt): Likewise.
24328 (maddhidi4): Likewise.
24329 (*maddhidi4tb): Likewise.
24330 (*maddhidi4tt): Likewise.
24331 (divsi3): Likewise.
24332 (udivsi3): Likewise.
24333 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
24334 (thumb2_mulsi_short_compare0): Likewise.
24335 (thumb2_mulsi_short_compare0_scratch): Likewise.
24336 * config/arm/arm1020e.md (1020mult1): Update attribute change.
24337 (1020mult2): Likewise.
24338 (1020mult3): Likewise.
24339 (1020mult4): Likewise.
24340 (1020mult5): Likewise.
24341 (1020mult6): Likewise.
24342 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
24344 (cortex_a15_mult64): Likewise.
24345 (cortex_a15_sdiv): Likewise.
24346 (cortex_a15_udiv): Likewise.
24347 * config/arm/arm1026ejs.md (mult1): Update attribute change.
24353 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
24354 (pj4_ir_div): Likewise.
24355 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
24356 (11_mult2): Likewise.
24357 (11_mult3): Likewise.
24358 (11_mult4): Likewise.
24359 (11_mult5): Likewise.
24360 (11_mult6): Likewise.
24361 (11_mult7): Likewise.
24362 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
24363 (cortex_a8_mla): Likewise.
24364 (cortex_a8_mull): Likewise.
24365 (cortex_a8_smulwy): Likewise.
24366 (cortex_a8_smlald): Likewise.
24367 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
24368 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
24369 (cortex_r4_mul_3): Likewise.
24370 (cortex_r4_mla_4): Likewise.
24371 (cortex_r4_mla_3): Likewise.
24372 (cortex_r4_smlald): Likewise.
24373 (cortex_r4_mull): Likewise.
24374 (cortex_r4_sdiv): Likewise.
24375 (cortex_r4_udiv): Likewise.
24376 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24377 (cortex_a7_idiv): Likewise.
24378 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24379 (9_mult2): Likewise.
24380 (9_mult3): Likewise.
24381 (9_mult4): Likewise.
24382 (9_mult5): Likewise.
24383 (9_mult6): Likewise.
24384 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24385 (cortex_a53_sdiv): Likewise.
24386 (cortex_a53_udiv): Likewise.
24387 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24388 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24389 (mp626_mult2): Likewise.
24390 (mp626_mult3): Likewise.
24391 (mp626_mult4): Likewise.
24392 * config/arm/fa526.md (526_mult1): Update attribute change.
24393 (526_mult2): Likewise.
24394 * config/arm/arm-generic.md (mult): Update attribute change.
24395 (mult_ldsched_strongarm): Likewise.
24396 (mult_ldsched): Likewise.
24397 (multi_cycle): Likewise.
24398 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24399 * config/arm/fa606te.md (606te_mult1): Update attribute change.
24400 (606te_mult2): Likewise.
24401 (606te_mult3): Likewise.
24402 (606te_mult4): Likewise.
24403 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24404 (cortex_a9_mac16): Likewise.
24405 (cortex_a9_multiply): Likewise.
24406 (cortex_a9_mac): Likewise.
24407 (cortex_a9_multiply_long): Likewise.
24408 * config/arm/fa626te.md (626te_mult1): Update attribute change.
24409 (626te_mult2): Likewise.
24410 (626te_mult3): Likewise.
24411 (626te_mult4): Likewise.
24413 2013-06-18 Richard Biener <rguenther@suse.de>
24416 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24418 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24421 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24422 with next_active_insn.
24424 2013-06-18 Alan Modra <amodra@gmail.com>
24426 * config/rs6000/rs6000.h (enum data_align): New.
24427 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24428 (DATA_ABI_ALIGNMENT): Define.
24429 (CONSTANT_ALIGNMENT): Correct comment.
24430 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24431 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24433 2013-06-17 David Malcolm <dmalcolm@redhat.com>
24435 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24436 ATTRIBUTE_UNUSED marking.
24438 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
24440 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24441 alternative and update.
24442 (aarch64_dup_lanedi): Delete.
24443 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24444 * config/aarch64/aarch64-simd-builtins.def: Update.
24446 2013-06-17 Richard Biener <rguenther@suse.de>
24448 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24449 (lto_input_scc): Declare.
24450 (lto_input_tree_1): Likewise.
24451 (struct lto_stats_d): Add num_tree_bodies_output and
24452 num_pickle_refs_output.
24453 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24454 (lto_read_tree_1): Split out from ...
24455 (lto_read_tree): ... this.
24456 (lto_input_scc): New function.
24457 (lto_input_tree_1): Split out from ...
24458 (lto_input_tree): ... this. Handle LTO_tree_scc.
24459 (lto_data_in_create): Create the streamer cache without hashes.
24460 * lto-streamer-out.c (create_output_block): Create the streamer
24461 cache with hashes when not doing WPA.
24462 (lto_write_tree_1): Split out from ...
24463 (lto_write_tree): ... this.
24464 (get_symbol_initial_value): New function.
24465 (lto_output_tree_1): Split out from ...
24466 (lto_output_tree): ... this. Write trees as series of SCCs
24467 using a DFS walk via DFS_write_tree.
24468 (struct sccs, struct scc_entry): New types.
24469 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24470 (DFS_write_tree_body): New function.
24471 (DFS_write_tree): Likewise.
24472 (hash_tree): Likewise.
24473 (scc_entry_compare): Likewise.
24474 (hash_scc): Likewise.
24475 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24476 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24477 TREE_CHAIN as regular reference.
24478 (streamer_read_integer_cst): Remove.
24479 (streamer_get_pickled_tree): Adjust.
24480 * tree-streamer-out.c (streamer_write_chain): Disable streaming
24481 of DECL_EXTERNALs in BLOCK_VARS for now.
24482 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24484 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24485 Add hash value argument and record that if hashes are recorded
24487 (streamer_tree_cache_insert_1): Adjust.
24488 (streamer_tree_cache_insert): Likewise.
24489 (streamer_tree_cache_insert_at): Rename to ...
24490 (streamer_tree_cache_replace_tree): ... this and adjust.
24491 (streamer_tree_cache_append): Adjust.
24492 (record_common_node): Likewise.
24493 (streamer_tree_cache_create): Add argument whether to
24494 record hash values together with trees.
24495 (streamer_tree_cache_delete): Adjust.
24496 * tree-streamer.h (struct streamer_tree_cache_d): Add
24498 (streamer_read_integer_cst): Remove.
24499 (streamer_tree_cache_insert): Adjust.
24500 (streamer_tree_cache_append): Likewise.
24501 (streamer_tree_cache_insert_at): Rename to ...
24502 (streamer_tree_cache_replace_tree): ... this and adjust.
24503 (streamer_tree_cache_create): Add argument whether to record hashes.
24504 (streamer_tree_cache_get): Rename to ...
24505 (streamer_tree_cache_get_tree): ... this.
24506 (streamer_tree_cache_get_hash): New function.
24507 * tree.c (cache_integer_cst): New function.
24508 * tree.h (cache_integer_cst): Declare.
24509 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24510 * lto-symtab.c (lto_varpool_replace_node): Only release
24511 DECL_INITIAL of non-prevailing decls.
24512 * varpool.c (varpool_remove_initializer): Do not release
24513 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24515 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24517 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24518 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24519 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24520 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24521 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24522 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24523 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24524 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24525 instead of TARGET_64BIT.
24526 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24527 Require ISA_HAS_<D>DIV.
24529 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24531 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24532 (mips*-*-linux*): Move default with_llsc setting to where other
24534 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24536 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24537 Likewise. Remove default with_tune setting. Move default float
24538 setting to its own block. Handle with_llsc in the same block as above.
24540 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
24542 PR rtl-optimization/57425
24543 PR rtl-optimization/57569
24544 * alias.c (write_dependence_p): Add new parameters mem_mode,
24545 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
24546 Changed all callers.
24547 (canon_anti_dependence): New function.
24548 * cse.c (check_dependence): Use canon_anti_dependence.
24549 * cselib.c (cselib_invalidate_mem): Likewise.
24550 * rtl.h (canon_anti_dependence): Declare.
24552 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24554 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24555 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24556 ".set mips3" for 64-bit targets.
24558 2013-06-15 Dehao Chen <dehao@google.com>
24560 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24561 * gimple-low.c (gimple_check_call_matching_types): Likewise.
24562 (gimple_check_call_args): Likewise.
24563 * value-prof.c (check_ic_target): Likewise.
24564 * ipa-inline.c (early_inliner): Likewise.
24565 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24566 * cgraph.c (cgraph_create_edge_1): Likewise.
24567 (cgraph_make_edge_direct): Likewise.
24569 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24572 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24573 rs6000_output_move_128bit to handle emitting quad memory
24574 operations. Set attribute length to 8 bytes.
24576 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24578 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24580 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24581 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24582 (aarch64_<su>mlsl<mode>): Likewise.
24584 2013-06-14 Mike Stump <mikestump@comcast.net>
24586 * Makefile.in (TARGET_H): Add insn-codes.h.
24588 2013-06-14 Alan Modra <amodra@gmail.com>
24590 PR middle-end/57134
24591 PR middle-end/57586
24592 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24593 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
24594 bitfield expansion when EXPAND_MEMORY.
24595 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24597 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24599 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24600 test for clearing quad memory on 32-bit later.
24602 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24604 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24605 (fold_negate_expr): Likewise.
24606 (fold_real_zero_addition_p): Handle vectors.
24607 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24609 2013-06-14 Alan Modra <amodra@gmail.com>
24611 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24613 2013-06-13 Jan Hubicka <jh@suse.cz>
24615 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24616 Local comdats are not externally visible.
24617 * symtab.c (dump_symtab_base): Dump externally visible.
24618 (verify_symtab_base): Verify back links in the symtab hash.
24620 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24622 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24623 CONVERT_EXPR as equal nodes.
24625 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24627 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24629 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24631 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24632 Generalize to complex and vector.
24633 * tree.c (build_all_ones_cst): New function.
24634 * tree.h (build_all_ones_cst): Declare it.
24636 2013-06-13 Alan Modra <amodra@gmail.com>
24638 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24639 * config/rs6000/rs6000.md (signbittf2): New insn.
24640 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24641 (abstf2_internal, cmptf_internal2): Likewise.
24642 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24644 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24645 Pat Haugen <pthaugen@us.ibm.com>
24646 Peter Bergner <bergner@vnet.ibm.com>
24648 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24649 power8 byte, half-word, and quad-word atomic instructions.
24650 (emit_store_conditional): Likewise.
24651 (rs6000_expand_atomic_compare_and_swap): Likewise.
24652 (rs6000_expand_atomic_op): Likewise.
24654 * config/rs6000/sync.md (larx): Add new modes for power8.
24656 (AINT): New mode iterator to include TImode as well as normal
24657 integer modes on power8.
24658 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24659 that VSX registers are not considered. Use AINT mode iterator
24660 instead of INT1 to allow inclusion of quad word atomic operations
24662 (load_locked<mode>): Likewise.
24663 (store_conditional<mode>): Likewise.
24664 (atomic_compare_and_swap<mode>): Likewise.
24665 (atomic_exchange<mode>): Likewise.
24666 (atomic_nand<mode>): Likewise.
24667 (atomic_fetch_<fetchop_name><mode>): Likewise.
24668 (atomic_nand_fetch<mode>): Likewise.
24669 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24671 (ATOMIC): On power8, add QImode, HImode modes.
24672 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24673 modes that promote to SImode.
24674 (load_lockedti): Convert TImode arguments to PTImode, so that we
24675 get a guaranteed even/odd register pair.
24676 (load_lockedpti): Likewise.
24677 (store_conditionalti): Likewise.
24678 (store_conditionalpti): Likewise.
24680 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24681 atomic load/store instructions.
24684 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24686 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24688 (insn_count): New attribute, with most cases extracted from...
24689 (length): ...here. Redefine most cases in terms of insn_count.
24690 (single_insn): Delete.
24691 (can_delay): Use insn_count to check for single instructions.
24692 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24693 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24694 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24695 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24696 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24697 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24698 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24699 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24700 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24701 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24702 rather than "length".
24703 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24704 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24705 Use "insn_count" rather than "length".
24706 * config/mips/mips-dsp.md
24707 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24708 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24711 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24713 PR tree-optimization/57361
24714 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24716 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24718 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24720 (aarch64_simd_combine<mode>): New instruction expansion.
24721 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24722 function prototype.
24723 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24724 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24726 2013-06-12 Jan Hubicka <jh@suse.cz>
24728 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24729 decl has when in streaming stage.
24730 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24731 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24733 2013-06-12 Roland Stigge <stigge@antcom.de>
24736 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24738 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24740 PR tree-optimization/57537
24741 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24742 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24744 2013-06-12 Richard Biener <rguenther@suse.de>
24746 * data-streamer.h (streamer_write_char_stream): CSE
24747 obs->current_pointer.
24748 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24749 streamer_write_char_stream manually and optimize the resulting loop.
24750 (streamer_write_hwi_stream): Likewise.
24752 2013-06-12 Jan Hubicka <jh@suse.cz>
24754 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24755 * cgraph.h (varpool_create_empty_node): Declare.
24756 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24758 * symtab.c (symtab_unregister_node): Be lax about missin entries
24760 (symtab_get_node): Update comment.
24761 * varpool.c (varpool_create_empty_node): Break out from ...
24762 (varpool_node_for_decl): ... here.
24763 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24765 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
24767 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24768 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24769 part. Use straight-line flow at the end.
24770 <COMPONENT_REF>: Remove superfluous else.
24771 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24773 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24776 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24777 target hook even for !TREE_PUBLIC decls. If no resolution info
24778 is available, return false for common and external decls.
24780 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24782 * config/rl78/constraints.md (U): New constraint.
24783 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24786 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24789 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24790 to allow returning address to AT_PLATFORM name.
24792 2013-06-11 Jan Hubicka <jh@suse.cz>
24794 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24795 * cgraph.h (symtab_node_base): Add weakref flag.
24796 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24797 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24798 (output_weakrefs): Use weakref flag.
24799 * fold-const.c (simple_operand_p): Handle WEAK.
24800 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24801 * ipa.c (varpool_externally_visible_p): Drop weakref.
24802 (function_and_variable_visibility): Update comment; fix weakref
24803 sanity checks; do not clear DECL_WEAK on them.
24804 * lto-cgraph.c (lto_output_node): update.
24805 (lto_output_varpool_node): Update.
24806 (input_overwrite_node): Update.
24807 (input_node): Update.
24808 (input_varpool_node): Update.
24809 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24810 (lto_symtab_merge_symbols): Add sanity check.
24811 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24812 * passes.c (rest_of_decl_compilation): Set static flag, too.
24813 * symtab.c (dump_symtab_base): Dump weakref.
24814 (verify_symtab_base): Sanity check weakrefs.
24815 (symtab_make_decl_local): Remove duplicated code.
24816 (symtab_alias_ultimate_target): Simplify.
24817 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24819 2013-06-11 Tom de Vries <tom@codesourcery.com>
24821 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24822 sequence_vect == NULL.
24824 2013-06-11 DJ Delorie <dj@redhat.com>
24826 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24827 (rl78_unwind_word_mode): New.
24829 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24831 * final.c (debug_prefix_maps): Make static.
24833 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24835 * function.c (initial_trampoline): Remove stray copy.
24837 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24839 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24841 2013-06-11 Martin Jambor <mjambor@suse.cz>
24843 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24844 within bounds at the beginning of the function.
24846 2013-06-11 Alan Modra <amodra@gmail.com>
24848 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24850 (get_named_section): Don't NULL !DECL_P decl.
24852 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24854 * doc/invoke.texi (core-avx2): Document.
24856 (atom): Updated with MOVBE.
24858 2013-06-11 Richard Biener <rguenther@suse.de>
24860 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24862 2013-06-11 Anton Blanchard <anton@samba.org>
24864 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24865 correct shift value in little-endian mode.
24867 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24870 * varasm.c (get_variable_align): Move #endif to the right place.
24872 2013-06-10 Cary Coutant <ccoutant@google.com>
24874 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24875 for hash so that hash table traversal order is deterministic.
24877 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24878 Pat Haugen <pthaugen@us.ibm.com>
24879 Peter Bergner <bergner@vnet.ibm.com>
24881 * config/rs6000/vector.md (GPR move splitter): Do not split moves
24882 of vectors in GPRS if they are direct moves or quad word load or
24885 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24887 (direct_move_p): Likewise.
24888 (quad_load_store_p): Likewise.
24890 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24891 classes into bins based on the physical register type.
24892 (reg_class_to_reg_type): Likewise.
24893 (IS_STD_REG_TYPE): Likewise.
24894 (IS_FP_VECT_REG_TYPE): Likewise.
24895 (reload_fpr_gpr): Arrays to determine what insn to use if we can
24896 use direct move instructions.
24897 (reload_gpr_vsx): Likewise.
24898 (reload_vsx_gpr): Likewise.
24899 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24900 information that is a simplification of register classes. Also
24901 precalculate direct move reload helpers.
24902 (direct_move_p): New function to return true if the operation can
24903 be done as a direct move instruciton.
24904 (quad_load_store_p): New function to return true if the operation
24905 is a quad memory operation.
24906 (rs6000_legitimize_address): If quad memory, only allow register
24907 indirect for TImode addresses.
24908 (rs6000_legitimate_address_p): Likewise.
24909 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24910 (rs6000_reload_register_type): Likewise.
24911 (register_to_reg_type): Return register type.
24912 (rs6000_secondary_reload_simple_move): New helper function for
24913 secondary reload and secondary memory needed to identify anything
24914 that is a simple move, and does not need reloading.
24915 (rs6000_secondary_reload_direct_move): New helper function for
24916 secondary reload to identify cases that can be done with several
24917 instructions via the direct move instructions.
24918 (rs6000_secondary_reload_move): New helper function for secondary
24919 reload to identify moves between register types that can be done.
24920 (rs6000_secondary_reload): Add support for quad memory operations
24921 and for direct move.
24922 (rs6000_secondary_memory_needed): Likewise.
24923 (rs6000_debug_secondary_memory_needed): Change argument names.
24924 (rs6000_output_move_128bit): New function to return the move to
24925 use for 128-bit moves, including knowing about the various
24926 limitations of quad memory operations.
24928 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24929 memory operations. call rs6000_output_move_128bit for the actual
24930 instruciton(s) to generate.
24931 (vsx_movti_64bit): Likewise.
24933 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24934 (UNSPEC_P8V_MTVSRWZ): Likewise.
24935 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24936 (UNSPEC_P8V_MTVSRD): Likewise.
24937 (UNSPEC_P8V_XXPERMDI): Likewise.
24938 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24939 (UNSPEC_FUSION_GPR): Likewise.
24940 (FMOVE128_GPR): New iterator for direct move.
24941 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24942 (f32_sv): Likewise.
24943 (f32_dm): Likewise.
24944 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24945 loads and direct move instructions.
24946 (zero_extendsidi2_lfiwzx): Likewise.
24947 (extendsidi2_lfiwax): Likewise.
24948 (extendsidi2_nocell): Likewise.
24949 (floatsi<mode>2_lfiwax): Likewise.
24950 (lfiwax): Likewise.
24951 (floatunssi<mode>2_lfiwzx): Likewise.
24952 (lfiwzx): Likewise.
24953 (fix_trunc<mode>_stfiwx): Likewise.
24954 (fixuns_trunc<mode>_stfiwx): Likewise.
24955 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24956 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24957 (parity<mode>2_cmpb): Set length/type attr.
24958 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24959 for 'mr.' to fast_compare.
24960 (bpermd_<mode>): Change type attr to popcnt.
24961 (p8_fmrgow_<mode>): New insns for power8 direct move support.
24962 (p8_mtvsrwz_1): Likewise.
24963 (p8_mtvsrwz_2): Likewise.
24964 (reload_fpr_from_gpr<mode>): Likewise.
24965 (p8_mtvsrd_1): Likewise.
24966 (p8_mtvsrd_2): Likewise.
24967 (p8_xxpermdi_<mode>): Likewise.
24968 (reload_vsx_from_gpr<mode>): Likewise.
24969 (reload_vsx_from_gprsf): Likewise.
24970 (p8_mfvsrd_3_<mode>): LIkewise.
24971 (reload_gpr_from_vsx<mode>): Likewise.
24972 (reload_gpr_from_vsxsf): Likewise.
24973 (p8_mfvsrd_4_disf): Likewise.
24974 (multi-word GPR splits): Do not split direct moves or quad memory
24977 2013-06-10 David Malcolm <dmalcolm@redhat.com>
24979 * tree-into-ssa.c (interesting_blocks): Make static.
24981 2013-06-10 Jakub Jelinek <jakub@redhat.com>
24984 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24985 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24986 Use DATA_ABI_ALIGNMENT for that case instead if defined.
24987 (get_variable_align): New function.
24988 (get_variable_section, emit_bss, emit_common,
24989 assemble_variable_contents, place_block_symbol): Use
24990 get_variable_align instead of DECL_ALIGN.
24991 (assemble_noswitch_variable): Add align argument, use it
24992 instead of DECL_ALIGN.
24993 (assemble_variable): Adjust caller. Use get_variable_align
24994 instead of DECL_ALIGN.
24995 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24997 (DATA_ABI_ALIGNMENT): Define.
24998 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24999 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
25000 opt is false, only return the psABI mandated alignment increase.
25001 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
25002 (DATA_ABI_ALIGNMENT): ... this.
25003 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
25004 (DATA_ABI_ALIGNMENT): ... this.
25005 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
25006 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
25007 (DATA_ABI_ALIGNMENT): ... this.
25008 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
25009 * doc/tm.texi: Regenerated.
25011 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
25013 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
25014 cmp_code to construct REG_EQUAL note.
25016 2013-06-09 Jakub Jelinek <jakub@redhat.com>
25019 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
25020 that operands[2] doesn't overlap with operands[0].
25022 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
25023 Jan Hubicka <jh@suse.cz>
25025 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
25026 hack to mark symbols as used.
25028 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
25030 PR rtl-optimization/57559
25031 * lra-constraints.c (process_alt_operands): Don't discourage
25032 memory with known offset for offsetable memory constraint.
25033 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
25035 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
25037 * varasm.c (struct oc_local_state): Reorder fields.
25038 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
25039 and adjust accordingly.
25040 (output_constructor): Reorder initialization code and adjust call to
25041 output_constructor_bitfield.
25043 2013-06-07 Jan Hubicka <jh@suse.cz>
25045 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
25047 2013-06-07 David Malcolm <dmalcolm@redhat.com>
25049 * tree-object-size.c (unknown): Make const.
25051 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25053 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
25054 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
25055 for last alternative in the cpu_facility attribute.
25057 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25060 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
25061 (xordi3): Change operand 2 constraint to arm_xordi_operand.
25062 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
25063 * config/arm/constraints.md (Dg): New constraint.
25064 * config/arm/neon.md (xordi3_neon): Remove.
25065 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
25066 * config/arm/predicates.md (arm_xordi_operand): New predicate.
25068 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25070 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
25071 Clean up alternatives.
25073 2013-06-07 Alan Modra <amodra@gmail.com>
25075 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
25078 2013-06-07 Alan Modra <amodra@gmail.com>
25080 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
25082 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25084 * config/arm/constraints.md (Df): New constraint.
25085 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
25086 Correct length attribute for last two alternatives.
25088 2013-06-07 Alan Modra <amodra@gmail.com>
25090 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25091 override user -mfp-in-toc.
25092 (offsettable_ok_by_alignment): Consider just the current access
25093 rather than the whole object, unless BLKmode. Handle
25094 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
25095 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
25096 for -mcmodel=medium.
25097 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
25098 override user -mfp-in-toc or -msum-in-toc. Default to
25099 -mno-fp-in-toc for -mcmodel=medium.
25101 2013-06-06 DJ Delorie <dj@redhat.com>
25103 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
25104 TARGET_VALID_POINTER_MODE.
25106 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25107 Pat Haugen <pthaugen@us.ibm.com>
25108 Peter Bergner <bergner@vnet.ibm.com>
25110 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25111 Document new power8 builtins.
25113 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
25114 condition code register, to allow 128-bit logical operations to be
25115 done in the VSX or GPR registers.
25116 (nor<mode>3): Use the canonical form for nor.
25117 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
25118 vclz*, and vpopcnt* vector instructions.
25119 (nand<mode>3): Likewise.
25120 (orc<mode>3): Likewise.
25121 (clz<mode>2): LIkewise.
25122 (popcount<mode>2): Likewise.
25124 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
25125 that only the GPRs are recognized.
25127 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25128 support for new power8 builtins.
25130 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
25132 (xscvdpspn): Likewise.
25138 (vpopcnt): Likewise.
25139 (vpopcntb): Likewise.
25140 (vpopcnth): Likewise.
25141 (vpopcntw): Likewise.
25142 (vpopcntd): Likewise.
25144 (vmrgew): Likewise.
25145 (vmrgow): Likewise.
25147 (eqv_v16qi3): Likewise.
25148 (eqv_v8hi3): Likewise.
25149 (eqv_v4si3): Likewise.
25150 (eqv_v2di3): Likewise.
25151 (eqv_v4sf3): Likewise.
25152 (eqv_v2df3): Likewise.
25154 (nand_v16qi3): Likewise.
25155 (nand_v8hi3): Likewise.
25156 (nand_v4si3): Likewise.
25157 (nand_v2di3): Likewise.
25158 (nand_v4sf3): Likewise.
25159 (nand_v2df3): Likewise.
25161 (orc_v16qi3): Likewise.
25162 (orc_v8hi3): Likewise.
25163 (orc_v4si3): Likewise.
25164 (orc_v2di3): Likewise.
25165 (orc_v4sf3): Likewise.
25166 (orc_v2df3): Likewise.
25168 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
25169 allow power8 quad mode in 64-bit.
25170 (rs6000_builtin_vectorized_function): Add support to vectorize
25171 ISA 2.07 count leading zeros, population count builtins.
25172 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
25173 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
25174 (builtin_function_type): Add vgbbd builtin function which takes an
25176 (altivec_expand_vec_perm_const): Add support for new power8 merge
25179 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
25180 that does not include TImdoe for use with 32-bit.
25181 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
25183 (UNSPEC_VSX_CVDPSPN): Likewise.
25184 (vsx_xscvdpspn): Likewise.
25185 (vsx_xscvspdpn): Likewise.
25186 (vsx_xscvdpspn_scalar): Likewise.
25187 (vsx_xscvspdpn_directmove): Likewise.
25188 (vsx_and<mode>3): Split logical operations into 32-bit and
25189 64-bit. Add support to do logical operations on TImode as well as
25190 VSX vector types. Allow logical operations to be done in either
25191 VSX registers or in general purpose registers in 64-bit mode. Add
25192 splitters if GPRs were used. For AND, add clobber of CCmode to
25193 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
25195 (vsx_and<mode>3_32bit): Likewise.
25196 (vsx_and<mode>3_64bit): Likewise.
25197 (vsx_ior<mode>3): Likewise.
25198 (vsx_ior<mode>3_32bit): Likewise.
25199 (vsx_ior<mode>3_64bit): Likewise.
25200 (vsx_xor<mode>3): Likewise.
25201 (vsx_xor<mode>3_32bit): Likewise.
25202 (vsx_xor<mode>3_64bit): Likewise.
25203 (vsx_one_cmpl<mode>2): Likewise.
25204 (vsx_one_cmpl<mode>2_32bit): Likewise.
25205 (vsx_one_cmpl<mode>2_64bit): Likewise.
25206 (vsx_nor<mode>3): Likewise.
25207 (vsx_nor<mode>3_32bit): Likewise.
25208 (vsx_nor<mode>3_64bit): Likewise.
25209 (vsx_andc<mode>3): Likewise.
25210 (vsx_andc<mode>3_32bit): Likewise.
25211 (vsx_andc<mode>3_64bit): Likewise.
25212 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
25213 and xxlorc instructions.
25214 (vsx_eqv<mode>3_64bit): Likewise.
25215 (vsx_nand<mode>3_32bit): Likewise.
25216 (vsx_nand<mode>3_64bit): Likewise.
25217 (vsx_orc<mode>3_32bit): Likewise.
25218 (vsx_orc<mode>3_64bit): Likewise.
25220 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
25222 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
25224 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
25225 (p8_vmrgow): Likewise.
25226 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
25227 GPRs to be split under VSX.
25228 (p8v_clz<mode>2): Add power8 count leading zero support.
25229 (p8v_popcount<mode>2): Add power8 population count support.
25230 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
25233 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
25236 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
25238 (vec_nand): Likewise.
25239 (vec_vclz): Likewise.
25240 (vec_vclzb): Likewise.
25241 (vec_vclzd): Likewise.
25242 (vec_vclzh): Likewise.
25243 (vec_vclzw): Likewise.
25244 (vec_vgbbd): Likewise.
25245 (vec_vmrgew): Likewise.
25246 (vec_vmrgow): Likewise.
25247 (vec_vpopcnt): Likewise.
25248 (vec_vpopcntb): Likewise.
25249 (vec_vpopcntd): Likewise.
25250 (vec_vpopcnth): Likewise.
25251 (vec_vpopcntw): Likewise.
25253 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25255 PR rtl-optimization/57468
25256 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
25259 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25261 PR rtl-optimization/57459
25262 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
25263 type when setting live regs.
25265 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25267 * config/s390/s390.opt (mlra): New option.
25268 * config/s390/s390.c (s390_decompose_address): Check displacement
25269 for all registers for LRA.
25270 (s390_secondary_reload): Don't used secondary reloads for LRA.
25271 (s390_lra_p): New function.
25272 (TARGET_LRA_P): Define.
25273 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
25274 of attribute cpu_facility to zarch for the last alternative.
25275 (*cmpmem_short): Ditto.
25277 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
25279 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
25280 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
25281 (arm_expand_prologue): Likewise.
25283 2013-06-06 Teresa Johnson <tejohnson@google.com>
25286 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
25287 as this is now done by redirect_edge_and_branch_force.
25288 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
25289 barriers, and fix interaction with splitting.
25290 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
25291 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
25292 reflect changes made in the routine.
25293 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
25294 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
25295 since this is called in cfglayout mode, and replace partition fixup
25296 with assert as that is now done by force_nonfallthru_and_redirect.
25297 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
25298 already be marked with region crossing note.
25299 (insert_section_boundary_note): Make non-static, gate on flag
25300 has_bb_partition, rewrite to also check for multiple partitions.
25301 (rest_of_handle_reorder_blocks): Remove call to
25302 insert_section_boundary_note, now done later during free_cfg.
25303 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
25304 * bb-reorder.h (insert_section_boundary_note): Declare.
25305 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
25306 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
25307 invoke insert_section_boundary_note.
25308 (try_redirect_by_replacing_jump): Remove unnecessary
25309 check for region crossing note.
25310 (fixup_partition_crossing): New function.
25311 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
25312 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
25313 in non-cfglayout mode.
25314 (force_nonfallthru_and_redirect): Fixup partition boundaries,
25315 remove old code that tried to do this. Emit barrier correctly
25316 when we are in cfglayout mode.
25317 (last_bb_in_partition): New function.
25318 (rtl_split_edge): Correctly fixup partition boundaries.
25319 (commit_one_edge_insertion): Remove old code that tried to
25320 fixup region crossing edge since this is now handled in
25321 split_block, and set up insertion point correctly since
25322 block may now end in a jump.
25323 (verify_hot_cold_block_grouping): Guard against checking when not in
25324 linearized RTL mode.
25325 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
25327 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
25328 rtl_verify_flow_info, so not called in cfglayout mode.
25329 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
25330 (fixup_reorder_chain): Remove old code that attempted to fixup region
25331 crossing note as this is now handled in force_nonfallthru_and_redirect.
25332 (duplicate_insn_chain): Don't duplicate switch section notes.
25333 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
25335 * basic-block.h (emit_barrier_after_bb): Declare.
25337 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25339 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
25340 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
25341 arm_usatsihi): Adjust alternatives for arm_restrict_it.
25343 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25345 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
25347 * config/arm/ldmstm.md: Regenerate.
25349 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25351 * config/arm/sync.md (atomic_loaddi_1):
25352 Disable predication for arm_restrict_it.
25353 (arm_load_exclusive<mode>): Likewise.
25354 (arm_load_exclusivesi): Likewise.
25355 (arm_load_exclusivedi): Likewise.
25356 (arm_load_acquire_exclusive<mode>): Likewise.
25357 (arm_load_acquire_exclusivesi): Likewise.
25358 (arm_load_acquire_exclusivedi): Likewise.
25359 (arm_store_exclusive<mode>): Likewise.
25360 (arm_store_exclusive<mode>): Likewise.
25361 (arm_store_release_exclusivedi): Likewise.
25362 (arm_store_release_exclusive<mode>): Likewise.
25364 2013-06-06 Richard Biener <rguenther@suse.de>
25366 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
25368 (lto_tag_is_tree_code_p): Adjust.
25369 (lto_tag_is_gimple_code_p): Likewise.
25370 (lto_gimple_code_to_tag): Likewise.
25371 (lto_tag_to_gimple_code): Likewise.
25372 (lto_tree_code_to_tag): Likewise.
25373 (lto_tag_to_tree_code): Likewise.
25374 * data-streamer.h (streamer_write_hwi_in_range): Use
25375 uhwi streaming to stream the normalized range.
25376 (streamer_read_hwi_in_range): Likewise.
25378 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25380 * config/arm/arm.md (enabled_for_depr_it): New attribute.
25381 (predicable_short_it): Likewise.
25382 (predicated): Likewise.
25383 (enabled): Handle above.
25384 (define_cond_exec): Set predicated attribute to yes.
25386 2013-06-05 Mike Stump <mikestump@comcast.net>
25388 * gdbinit.in (__FUNCTION__): Add.
25390 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
25392 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25393 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25395 2013-06-05 Jan Hubicka <jh@suse.cz>
25397 * varasm.c (mark_decl_referenced): Revert the removal until targets
25400 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
25402 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25403 instead of mark_decl_referenced.
25405 2013-06-05 Jan Hubicka <jh@suse.cz>
25407 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25408 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25409 and symtab_used_from_object_file_p.
25410 (cgraph_make_node_local_1): Clear forced_by_abi.
25411 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25412 * cgraph.h (symtab_node_base): Add forced_by_abi.
25413 (decide_is_variable_needed): Remove.
25414 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25415 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25416 (decide_is_symbol_needed): ... this one; handle symbols in general;
25417 always analyze virtuals; honnor forced_by_abi.
25418 (cgraph_finalize_function): Update.
25419 (varpool_finalize_decl): Update.
25420 (symbol_defined_and_needed): Remove.
25421 (analyze_functions): Update.
25422 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25423 output_refs, input_overwrite_node): Handle forced_by_abi.
25424 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25425 (address_taken_from_non_vtable_p): ... this one.
25426 (comdat_can_be_unshared_p_1): New function.
25427 (cgraph_comdat_can_be_unshared_p): Rename to ...
25428 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25429 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25430 (function_and_variable_visibility): Clear forced_by_abi as needed.
25431 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25432 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25433 * symtab.c (dump_symtab_base): Dump forced_by_abi.
25434 * varpool.c (decide_is_variable_needed): Remove.
25436 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25438 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25439 (arm_option_override): Override arm_restrict_it where appropriate.
25440 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25441 * config/arm/arm.opt (mrestrict-it): New command-line option.
25442 * doc/invoke.texi: Document -mrestrict-it.
25444 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25446 * tsan.c (tsan_atomic_table): Make const.
25448 2013-06-05 Richard Biener <rguenther@suse.de>
25450 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25451 index associated with the tree we are supposed to replace.
25452 * tree-streamer-out.c (pack_ts_base_value_fields): Output
25453 TREE_ASM_WRITTEN as zero for everything but SSA names.
25455 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25457 * tree-ssa-structalias.c (call_stmt_vars): Make static.
25459 2013-06-04 Jan Hubicka <jh@suse.cz>
25461 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25462 (input_node, input_varpool_node): Handle correctly external same
25464 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25465 nodes at ltrans stage.
25467 2013-06-04 Jan Hubicka <jh@suse.cz>
25469 * ipa-inline.c (update_caller_keys): Fix availability test.
25470 (update_callee_keys): Likewise.
25471 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25472 to follow ELF standard.
25474 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
25476 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25477 (mips64r5900el-*-elf*): New configurations.
25478 * config/mips/mips-cpus.def (r5900): New processor.
25479 * config/mips/mips-tables.opt: Regenerate.
25480 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25481 (mips_issue_rate): Handle PROCESSOR_R5900.
25482 (mips_reorg_process_insns): Force reorder mode for the R5900.
25483 * config/mips/mips.h (TARGET_MIPS5900): Define.
25484 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25486 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25488 * config/mips/mips.md (processor): Add r5900.
25489 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25491 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25493 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25494 into function to generate MOVI instruction.
25495 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25496 (aarch64_preferred_simd_mode): Turn into wrapper.
25497 (aarch64_output_scalar_simd_mov_immediate): New function.
25498 * config/aarch64/aarch64-protos.h: Add prototype for above.
25500 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25502 * config/aarch64/aarch64.c (simd_immediate_info): Remove
25503 element_char member.
25504 (sizetochar): Return signed char.
25505 (aarch64_simd_valid_immediate): Remove elchar and other
25506 unnecessary variables.
25507 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25508 Calculate element_char as required.
25509 * config/aarch64/aarch64-protos.h: Update and move prototype
25510 for aarch64_output_simd_mov_immediate.
25511 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25514 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25516 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25517 information completed by aarch64_simd_valid_immediate.
25518 (aarch64_legitimate_constant_p): Update arguments.
25519 (aarch64_simd_valid_immediate): Work with struct rather than many
25521 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25522 (aarch64_simd_make_constant): Update arguments.
25523 (aarch64_output_simd_mov_immediate): Work with struct rather than
25524 many pointers. Output immediate directly rather than as operand.
25525 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25527 * config/aarch64/constraints.md (Dn): Update arguments.
25529 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25531 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25533 (aarch64_simd_immediate_valid_for_move): Remove.
25534 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25535 (aarch64_simd_make_constant): Update call.
25536 (aarch64_output_simd_mov_immediate): Update call.
25537 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25539 * config/aarch64/constraints.md (Dn): Update call.
25541 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25543 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25544 return type to bool for prototype.
25545 (aarch64_legitimate_constant_p): Check for true instead of not -1.
25546 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25547 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25549 2013-06-04 Catherine Moore <clm@codesourcery.com>
25551 * config/mips/mips.opt (meva): New.
25552 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25553 (ASM_SPEC): Handle -meva.
25554 * doc/invoke.texi (meva): Document.
25556 2013-06-04 Alan Modra <amodra@gmail.com>
25558 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25561 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25563 * rtl.def: Add extra fourth optional field to define_cond_exec.
25564 * gensupport.c (process_one_cond_exec): Process attributes from
25566 * doc/md.texi: Document fourth field in define_cond_exec.
25568 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
25570 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25571 out the processing order as in store_bit_field_1.
25573 2013-06-04 Jan Hubicka <jh@suse.cz>
25575 PR middle-end/57500
25576 * cgraphunit.c (cgraph_process_same_body_aliases): Create
25577 non-VAR_DECL node if it does not exist yet.
25579 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
25581 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25582 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25583 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25584 target_cpu_default setting.
25586 2013-06-03 Teresa Johnson <tejohnson@google.com>
25588 * dumpfile.c (opt_info_switch_p): Change -fopt-info
25589 default to -fopt-info=optimized instead of all.
25590 * doc/invoke.texi: Ditto.
25591 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25592 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25593 (execute_vect_slp): Emit BB vectorization success under
25594 MSG_OPTIMIZED_LOCATIONS.
25595 * tree-vect-slp.c (vect_slp_transform_bb): Change
25596 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25597 * tree-vect-loop.c (vect_transform_loop): Ditto.
25599 2013-06-03 Jason Merrill <jason@redhat.com>
25602 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25603 Use TARGET_EXPR for C++.
25605 2013-06-03 Jakub Jelinek <jakub@redhat.com>
25607 PR rtl-optimization/57268
25608 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25609 if DEBUG_INSN_P (insn).
25612 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25614 PR rtl-optimization/57268
25615 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25616 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25618 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25620 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25621 (ix86_avoid_lea_for_addr): Likewise.
25622 (exact_dependency_1): Likewise.
25623 (ix86_adjust_cost): Likewise.
25624 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25626 (do_reorder_for_imul): Fix typo, formatting and
25627 !reload_completed check removed.
25628 (ix86_sched_reorder): Fix typo and formatting.
25629 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25632 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25634 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25636 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25638 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25639 <STRING_CST>: Likewise.
25640 <VECTOR_CST>: Likewise.
25642 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25643 Mikael Morin <mikael@gcc.gnu.org>
25645 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25646 * config.in: Regenerated.
25647 * configure: Regenerated.
25649 2013-06-01 Jan Hubicka <jh@suse.cz>
25651 PR middle-end/57366
25652 * cgraphunit.c (compile): When weakref is not supported,
25653 set up transparent aliases before final output pass.
25654 * varasm.c (assemble_alias): Do not try to do it here.
25656 2013-06-01 Jan Hubicka <jh@suse.cz>
25658 PR middle-end/57467
25659 * passes.c (for_per_function): Skip unanalyzed functions.
25661 2013-06-01 Jan Hubicka <jh@suse.cz>
25663 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25664 (lto_symtab_merge_symbols_1): ... this one.
25665 (lto_symtab_merge_cgraph_nodes): Rename to ...
25666 (lto_symtab_merge_symbols): ... this one; simplify.
25667 * cgraph.c (same_body_aliases_done): Rename to ...
25668 (cpp_implicit_aliases_done): ... this one.
25669 (cgraph_create_function_alias): Update.
25670 (cgraph_same_body_alias): Update.
25671 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25672 (verify_edge_corresponds_to_fndecl): Simplify.
25673 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25674 (cgraph_node): Remove same_body_alias.
25675 (varpool_node): Remove alias_of and extra_name_alias.
25676 (same_body_aliases_done): Rename to ..
25677 (cpp_implicit_aliases_done): ... this one.
25678 (symtab_alias_ultimate_target): Add default parameter.
25679 (symtab_resolve_alias): New function.
25680 (fixup_same_cpp_alias_visibility): Declare.
25681 (cgraph_function_node): Add default parameter.
25682 (cgraph_node_asm_name): Likewise.
25683 (cgraph_function_or_thunk_node): Add default parameter; do
25684 not ICE when it is NULL.
25685 (varpool_variable_node): Likewise.
25686 * tree-emutls.c (create_emultls_var): Update.
25687 (ipa_lower_emutls): Update.
25688 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25689 (cgraph_reset_node): Reset alias info.
25690 (cgraph_finalize_function): Update.
25691 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25692 (analyze_function): Simplify.
25693 (cgraph_process_same_body_aliases): Simplify.
25694 (analyze_functions): Fixup same body aliases.
25695 (handle_alias_pairs): Simplify.
25696 (assemble_thunk): Update.
25697 (assemble_thunks_and_aliases): Update.
25698 (output_weakrefs): Rewrite.
25699 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25700 (lto_output_varpool_node): Likewise.
25701 (compute_ltrans_boundary): Remve assert.
25702 (get_alias_symbol): New functoin.
25703 (input_node): Rewrite alias handling.
25704 (input_varpool_node): Likewise.
25705 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25706 * ipa.c (process_references): Handle weakrefs correctly.
25707 (symtab_remove_unreachable_nodes): Likewise.
25708 * trans-mem.c (get_cg_data): Update.
25709 (ipa_tm_create_version_alias): Update.
25710 (ipa_tm_execute): Update.
25711 * symtab.c (dump_symtab_base): Dump aliases.
25712 (verify_symtab_base): Verify aliases.
25713 (symtab_node_availability): New function.
25714 (symtab_alias_ultimate_target): Simplify.
25715 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25716 handle all the fixup cases.
25717 (symtab_resolve_alias): New function.
25718 * passes.c (ipa_write_summaries): Handle weakrefs.
25719 * varpool.c (varpool_analyze_node): Simplify.
25720 (assemble_aliases): Update.
25721 (varpool_create_variable_alias): Simplify.
25722 (varpool_extra_name_alias): Simplify.
25723 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25724 (lto_symtab_merge_symbols): ... this one.
25726 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25729 PR rtl-optimization/57268
25730 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25731 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25733 2013-06-01 Tobias Burnus <burnus@net-b.de>
25735 Partially reverted:
25736 2013-05-31 Tobias Burnus <burnus@net-b.de>
25738 PR middle-end/57073
25739 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25742 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25744 PR rtl-optimization/57268
25745 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25746 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25748 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25750 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25751 unordered comparison operators when -fno-trapping-math is in effect
25753 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25754 and implement unordered comparison operators properly on the e500.
25756 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25758 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25759 for constant scalar integers.
25760 (simplify_relational_operation_1): Likewise.
25762 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
25764 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25765 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
25768 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25769 Igor Zamyatin <igor.zamyatin@intel.com>
25771 Silvermont (SLM) architecture performance tuning.
25772 * config/i386/i386.h (enum ix86_tune_indices): Add
25773 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25774 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25776 * config/i386/i386.c (initial_ix86_tune_features)
25777 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25778 (ix86_lea_outperforms): Handle Silvermont tuning.
25779 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25781 (ix86_use_lea_for_mov): Likewise.
25782 (ix86_avoid_lea_for_addr): Likewise.
25783 (ix86_lea_for_add_ok): Likewise.
25784 (exact_dependency_1): New function.
25785 (exact_store_load_dependency): Likewise.
25786 (ix86_adjust_cost): Handle Silvermont tuning.
25787 (do_reoder_for_imul): Likewise.
25788 (swap_top_of_ready_list): New function.
25789 (ix86_sched_reorder): Changed to handle Silvermont tuning.
25791 * config/i386/i386.md (peepholes that split memory operand in fp
25794 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25796 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25797 Remove un-necessary braces.
25799 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25801 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25802 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25804 2013-05-31 Tobias Burnus <burnus@net-b.de>
25806 PR middle-end/57073
25807 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25809 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25812 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25813 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25814 * config/arm/neon.md (iordi3_neon): Remove.
25815 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25816 * config/arm/predicates.md (imm_for_neon_logic_operand):
25817 Move to earlier in the file.
25818 (neon_logic_op2): Likewise.
25819 (arm_iordi_operand_neon): New predicate.
25821 2013-05-31 Richard Biener <rguenther@suse.de>
25823 PR tree-optimization/57478
25824 PR tree-optimization/57453
25825 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25828 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25830 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25831 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25833 2013-05-30 Tobias Burnus <burnus@net-b.de>
25834 Thomas Koenig <tkoenig@gcc.gnu.org>
25836 PR middle-end/57073
25837 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25838 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25840 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25842 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25844 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25846 * target.def (register_usage_leveling_p): New hook.
25847 * targhooks.c (default_register_usage_leveling_p): New.
25848 * targhooks.h (default_register_usage_leveling_p): New prototype.
25849 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25850 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25851 * doc/tm.texi: Update.
25852 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25854 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25856 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25857 (*insv_reg<mode>): New define_insn.
25859 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25861 PR rtl-optimization/57439
25862 * postreload.c (move2add_valid_value_p): Check that we have
25863 a zero subreg_regno_offset when accessing the register in
25864 the requested mode.
25866 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25867 Igor Zamyatin <igor.zamyatin@intel.com>
25869 Silvermont (SLM) architecture pipeline model, tuning and
25871 * config.gcc: Add slm config options and target.
25873 * config/i386/slm.md: New.
25875 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25877 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25879 (ix86_target_macros_internal): Likewise.
25881 * config/i386/i386.c (slm_cost): New cost.
25882 (m_SLM): New macro flag.
25883 (initial_ix86_tune_features): Set m_SLM.
25884 (x86_accumulate_outgoing_args): Likewise.
25885 (x86_arch_always_fancy_math_387): Likewise.
25886 (processor_target_table): Add slm cost.
25887 (cpu_names): Add slm cpu name.
25888 (x86_option_override_internal): Set SLM ISA.
25889 (ix86_issue_rate): New case PROCESSOR_SLM.
25890 (ia32_multipass_dfa_lookahead): Likewise.
25891 (fold_builtin_cpu): Add slm.
25893 * config/i386/i386.h (TARGET_SLM): New target macro.
25894 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25895 (processor_type): Add PROCESSOR_SLM.
25897 * config/i386/i386.md (cpu): Add new value "slm".
25898 (slm.md): Include slm.md.
25900 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
25901 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25903 * config/arm/arm-protos.h: Add and update function protos.
25904 * config/arm/arm.c (use_simple_return_p): New added.
25905 (thumb2_expand_return): Check simple_return flag.
25906 * config/arm/arm.md: Add simple_return and conditional simple_return.
25907 * config/arm/iterators.md: Add iterator for return and simple_return.
25909 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25911 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25912 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25913 (arm_emit_vfp_multi_reg_pop): Likewise.
25914 (thumb2_emit_ldrd_pop): Likewise.
25915 (arm_expand_epilogue): Add misc REG_CFA notes.
25916 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25918 2013-05-29 Lawrence Crowl <crowl@google.com>
25920 * config/arm/t-arm: Update for below.
25922 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25923 Change type to hash_table. Update dependent calls and types.
25925 * config/i386/t-cygming: Update for below.
25927 * config/i386/t-interix: Update for below.
25929 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25930 Change type to hash_table. Update dependent calls and types.
25931 (i386_find_on_wrapper_list::wrappers): Likewise.
25933 * config/ia64/t-ia64: Update for below.
25935 * config/ia64/ia64.c (bundle_state_table):
25936 Change type to hash_table. Update dependent calls and types.
25938 * config/mips/mips.c (mips_reorg_process_insns::htab):
25939 Change type to hash_table. Update dependent calls and types.
25941 * config/sol2.c (solaris_comdat_htab):
25942 Change type to hash_table. Update dependent calls and types.
25944 * config/t-sol2: Update for above.
25946 2013-05-29 Teresa Johnson <tejohnson@google.com>
25948 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25949 functions are not yet marked as defined.
25951 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
25952 Pat Haugen <pthaugen@us.ibm.com>
25953 Peter Bergner <bergner@vnet.ibm.com>
25955 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25959 (vrotl<mode>3): Likewise.
25960 (vashl<mode>3): Likewise.
25961 (vlshr<mode>3): Likewise.
25962 (vashr<mode>3): Likewise.
25964 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25965 support for power8 V2DI builtins.
25967 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25968 power8 V2DI builtins.
25969 (vupkhsw): Likewise.
25970 (vupklsw): Likewise.
25971 (vaddudm): Likewise.
25972 (vminsd): Likewise.
25973 (vmaxsd): Likewise.
25974 (vminud): Likewise.
25975 (vmaxud): Likewise.
25976 (vpkudum): Likewise.
25977 (vpksdss): Likewise.
25978 (vpkudus): Likewise.
25979 (vpksdus): Likewise.
25984 (vsubudm): Likewise.
25985 (vcmpequd): Likewise.
25986 (vcmpgtsd): Likewise.
25987 (vcmpgtud): Likewise.
25988 (vcmpequd_p): Likewise.
25989 (vcmpgtsd_p): Likewise.
25990 (vcmpgtud_p): Likewise.
25991 (vupkhsw): Likewise.
25992 (vupklsw): Likewise.
25993 (vaddudm): Likewise.
25994 (vmaxsd): Likewise.
25995 (vmaxud): Likewise.
25996 (vminsd): Likewise.
25997 (vminud): Likewise.
25998 (vpksdss): Likewise.
25999 (vpksdus): Likewise.
26000 (vpkudum): Likewise.
26001 (vpkudus): Likewise.
26006 (vsubudm): Likewise.
26008 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26009 support for power8 V2DI instructions.
26011 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
26012 power8 V2DI instructions. Combine pack and unpack insns to use an
26013 iterator for each mode. Check whether a particular mode supports
26014 Altivec instructions instead of just checking TARGET_ALTIVEC.
26015 (UNSPEC_VPKUWUM): Likewise.
26016 (UNSPEC_VPKSHSS): Likewise.
26017 (UNSPEC_VPKSWSS): Likewise.
26018 (UNSPEC_VPKUHUS): Likewise.
26019 (UNSPEC_VPKSHUS): Likewise.
26020 (UNSPEC_VPKUWUS): Likewise.
26021 (UNSPEC_VPKSWUS): Likewise.
26022 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
26023 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
26024 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
26025 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
26026 (UNSPEC_VUPKHSB): Likewise.
26027 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
26028 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
26029 (UNSPEC_VUPKHSH): Likewise.
26030 (UNSPEC_VUPKLSB): Likewise.
26031 (UNSPEC_VUPKLSH): Likewise.
26033 (VI_char): Likewise.
26034 (VI_scalar): Likewise.
26035 (VI_unit): Likewise.
26037 (VP_small): Likewise.
26038 (VP_small_lc): Likewise.
26039 (VU_char): Likewise.
26040 (add<mode>3): Likewise.
26041 (altivec_vaddcuw): Likewise.
26042 (altivec_vaddu<VI_char>s): Likewise.
26043 (altivec_vadds<VI_char>s): Likewise.
26044 (sub<mode>3): Likewise.
26045 (altivec_vsubcuw): Likewise.
26046 (altivec_vsubu<VI_char>s): Likewise.
26047 (altivec_vsubs<VI_char>s): Likewise.
26048 (altivec_vavgs<VI_char>): Likewise.
26049 (altivec_vcmpbfp): Likewise.
26050 (altivec_eq<mode>): Likewise.
26051 (altivec_gt<mode>): Likewise.
26052 (altivec_gtu<mode>): Likewise.
26053 (umax<mode>3): Likewise.
26054 (smax<mode>3): Likewise.
26055 (umin<mode>3): Likewise.
26056 (smin<mode>3): Likewise.
26057 (altivec_vpkuhum): Likewise.
26058 (altivec_vpkuwum): Likewise.
26059 (altivec_vpkshss): Likewise.
26060 (altivec_vpkswss): Likewise.
26061 (altivec_vpkuhus): Likewise.
26062 (altivec_vpkshus): Likewise.
26063 (altivec_vpkuwus): Likewise.
26064 (altivec_vpkswus): Likewise.
26065 (altivec_vpks<VI_char>ss): Likewise.
26066 (altivec_vpks<VI_char>us): Likewise.
26067 (altivec_vpku<VI_char>us): Likewise.
26068 (altivec_vpku<VI_char>um): Likewise.
26069 (altivec_vrl<VI_char>): Likewise.
26070 (altivec_vsl<VI_char>): Likewise.
26071 (altivec_vsr<VI_char>): Likewise.
26072 (altivec_vsra<VI_char>): Likewise.
26073 (altivec_vsldoi_<mode>): Likewise.
26074 (altivec_vupkhsb): Likewise.
26075 (altivec_vupkhs<VU_char>): Likewise.
26076 (altivec_vupkls<VU_char>): Likewise.
26077 (altivec_vupkhsh): Likewise.
26078 (altivec_vupklsb): Likewise.
26079 (altivec_vupklsh): Likewise.
26080 (altivec_vcmpequ<VI_char>_p): Likewise.
26081 (altivec_vcmpgts<VI_char>_p): Likewise.
26082 (altivec_vcmpgtu<VI_char>_p): Likewise.
26083 (abs<mode>2): Likewise.
26084 (vec_unpacks_hi_v16qi): Likewise.
26085 (vec_unpacks_hi_v8hi): Likewise.
26086 (vec_unpacks_lo_v16qi): Likewise.
26087 (vec_unpacks_hi_<VP_small_lc>): Likewise.
26088 (vec_unpacks_lo_v8hi): Likewise.
26089 (vec_unpacks_lo_<VP_small_lc>): Likewise.
26090 (vec_pack_trunc_v8h): Likewise.
26091 (vec_pack_trunc_v4si): Likewise.
26092 (vec_pack_trunc_<mode>): Likewise.
26094 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
26096 (vec_vmaxsd): Likewise.
26097 (vec_vmaxud): Likewise.
26098 (vec_vminsd): Likewise.
26099 (vec_vminud): Likewise.
26100 (vec_vpksdss): Likewise.
26101 (vec_vpksdus): Likewise.
26102 (vec_vpkudum): Likewise.
26103 (vec_vpkudus): Likewise.
26104 (vec_vrld): Likewise.
26105 (vec_vsld): Likewise.
26106 (vec_vsrad): Likewise.
26107 (vec_vsrd): Likewise.
26108 (vec_vsubudm): Likewise.
26109 (vec_vupkhsw): Likewise.
26110 (vec_vupklsw): Likewise.
26112 2013-05-29 Jan Hubicka <jh@suse.cz>
26114 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
26115 flags; reorder rest of fields in more consistent way.
26116 (varpool_node): Remove analyzed, finalized and alias.
26117 (cgraph_ndoe): Likewise.
26118 (symtab_alias_ultimate_target): New function.
26119 (cgraph_function_node): Move offline.
26120 (cgraph_reset_node): Declare.
26121 (cgraph_comdat_can_be_unshared_p): Remove.
26122 (varpool_remove_initializer): Declare.
26123 (varpool_first_defined_variable, varpool_next_defined_variable
26124 cgraph_first_defined_function, cgraph_next_defined_function): Update.
26125 (cgraph_function_with_gimple_body_p): Update.
26126 (varpool_all_refs_explicit_p): Update.
26127 (symtab_alias_target): New function.
26128 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
26129 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
26130 (cgraph_function_or_thunk_node): Simplify using
26131 symtab_alias_ultimate_target.
26132 (varpool_variable_node): Likewise.
26133 * cgraph.c (cgraph_create_function_alias): Update.
26134 (cgraph_add_thunk): Update.
26135 (cgraph_remove_node): Update.
26136 (dump_cgraph_node): Do not dump removed flags.
26137 (cgraph_function_body_availability): Update.
26138 (cgraph_propagate_frequency): Update.
26139 (verify_cgraph_node): Check sanity of local flag.
26140 (cgraph_function_node): Move here from cgraph.h; revamp for
26141 cgraph_function_or_thunk_node.
26142 * lto-symtab.c (lto_varpool_replace_node): Update.
26143 (lto_symtab_resolve_can_prevail_p): Update.
26144 (lto_symtab_merge_cgraph_nodes): Update.
26145 * ipa-cp.c (determine_versionability, initialize_node_lattices,
26146 propagate_constants_accross_call, devirtualization_time_bonus,
26147 ipcp_propagate_stage): Update.
26148 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
26149 * ipa-inline-transform.c (clone_inlined_nodes,
26150 preserve_function_body_p): Update.
26151 * ipa-reference.c (propagate): Update.
26152 (write_node_summary_p): Update.
26153 * toplev.c (wrapup_global_declaration_2): Update.
26154 * cgraphunit.c (cgraph_analyze_function): Rename to ...
26155 (analyze_function) ... this one.
26156 (cgraph_process_new_functions): Update.
26157 (cgraph_reset_node): Export.
26158 (cgraph_finalize_function): Update.
26159 (cgraph_add_new_function): Update.
26160 (process_function_and_variable_attributes): Update.
26161 (varpool_finalize_decl): Update.
26162 (symbol_finalized): Remove.
26163 (symbol_finalized_and_needed): Rename to ...
26164 (symbol_defined_and_needed): ... update.
26165 (cgraph_analyze_functions): Update.
26166 (handle_alias_pairs): Update.
26167 (mark_functions_to_output): Update.
26168 (assemble_thunk): Update.
26169 (output_in_order): Update.
26170 (output_weakrefs): Update.
26171 (finalize_compilation_unit): Update.
26172 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
26173 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
26174 input_node, input_varpool_node): Update.
26175 * dbxout.c (dbxout_expand_expr): Update.
26176 * cgraphclones.c (cgraph_clone_node): Update.
26177 (cgraph_copy_node_for_versioning): Update.
26178 (cgraph_materialize_clone): Update.
26179 (cgraph_materialize_all_clones): Update.
26180 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
26181 propagate_pure_const, propagate_nothrow): Update.
26182 * lto-streamer-out.c (lto_output, write_symbol): Update.
26183 * ipa-utils.c (ipa_reverse_postorder): Update.
26184 * ipa-inline.c (can_inline_edge_p): Update.
26185 (update_caller_keys, ipa_inline): Update.
26186 * dwarf2out.c (reference_to_unused,
26187 premark_types_used_by_global_vars_helper): Update.
26188 * tree-eh.c (tree_could_trap_p): Update.
26189 * ipa-split.c (consider_split, execute_split_functions): Update.
26190 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
26191 has_addr_references_p): Update; move ahead in file for better
26193 (process_references): Simplify.
26194 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
26195 bodies are removed.
26196 (cgraph_comdat_can_be_unshared_p): Make static.
26197 (cgraph_externally_visible_p): Update.
26198 (varpool_externally_visible_p): Update.
26199 (function_and_variable_visibility): Update.
26200 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
26201 ipa_tm_mark_force_output_node): Update.
26202 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
26203 estimate_edge_devirt_benefit, inline_generate_summary,
26204 inline_write_summary): Update.
26205 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
26206 * ipa-prop.c (ipa_compute_jump_functions): Update.
26207 (ipa_print_node_params, ipa_prop_read_section,
26208 ipa_update_after_lto_read, read_replacements_section): Update.
26209 * varasm.c (mark_decl_referenced): Update.
26210 (assemble_alias, dump_tm_clone_pairs): Update.
26211 * tree-inline.c (copy_bb): Update.
26212 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
26214 * symtab.c (dump_symtab_base): Print new flags.
26215 (verify_symtab_base): Verify new flags.
26216 (symtab_alias_ultimate_target): New function.
26217 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
26218 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
26220 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
26222 * i386.c (ix86_get_function_versions_dispatcher,
26223 ix86_generate_version_dispatcher_body): Update.
26224 (fold_builtin_cpu): Use varpool_add_new_variable.
26225 * varpool.c (varpool_remove_initializer): Break out from ...
26226 (varpool_remove_node): ... this one.
26227 (dump_varpool_node, varpool_node_for_asm,
26228 cgraph_variable_initializer_availability, varpool_analyze_node,
26229 varpool_assemble_decl, varpool_remove_unreferenced_decls,
26230 varpool_finalize_named_section_flags, varpool_create_variable_alias):
26233 2013-05-29 Jan Hubicka <jh@suse.cz>
26235 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
26237 2013-05-29 Easwaran Raman <eraman@google.com>
26239 PR tree-optimization/57442
26240 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
26241 when control exits the main loop.
26243 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
26245 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
26247 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
26248 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
26249 * rx/t-rx: Add rx100 under multi library matches option for nofpu
26252 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26254 PR tree-optimization/57441
26255 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
26256 Don't limit size of incr_vec to number of candidates.
26258 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
26260 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
26261 and mips16 directories.
26262 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
26263 (MULTILIB_DIRNAMES): Ditto.
26264 (MULTILIB_EXCEPTIONS): Add new exceptions.
26265 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
26266 (MULTILIB_DIRNAMES): Ditto.
26267 (MULTILIB_EXCEPTIONS): Add new exceptions.
26269 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26270 Marcus Shawcroft <marcus.shawcroft@arm.com>
26272 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
26273 SYMBOL_TINY_ABSOLUTE.
26274 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
26275 SYMBOL_TINY_ABSOLUTE.
26276 (aarch64_expand_mov_immediate): Likewise.
26277 (aarch64_classify_symbol): Likewise.
26278 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
26279 Permit SYMBOL_TINY_ABSOLUTE.
26280 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
26282 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26283 Marcus Shawcroft <marcus.shawcroft@arm.com>
26285 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
26286 Refactor if/switch. Replace gcc_assert with if.
26288 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26290 * config/i386/i386.c (initial_ix86_tune_features): Enable
26291 FP Reassociation for AMD bdver1 and bdver2.
26293 2013-05-29 Martin Jambor <mjambor@suse.cz>
26295 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
26296 and IMAGPART_EXPR do not occur within other handled_components.
26298 2013-05-29 Richard Biener <rguenther@suse.de>
26300 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
26301 access on whether the use is in the BB we currently try to
26303 (vect_bb_vectorization_profitable_p): Pass the BB we currently
26304 vectorize to vect_bb_slp_scalar_cost.
26306 2013-05-29 Richard Biener <rguenther@suse.de>
26308 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
26309 computing scalar cost offsetted by stmts that are kept live
26311 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
26312 for computation of scalar cost.
26314 2013-05-28 Steve Ellcey <sellcey@mips.com>
26316 * config/mips/mips-cpus.def (mips32r2): Change processor type.
26318 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26320 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
26321 array notation built-in reduction functions.
26322 * doc/passes.texi (Passes): Added documentation about changes done
26324 * doc/invoke.texi (C Dialect Options): Added documentation about
26325 the -fcilkplus flag.
26326 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
26327 (BUILTINS_DEF): Depend on cilkplus.def.
26328 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
26329 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
26330 * cilkplus.def: New file.
26332 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
26334 PR rtl-optimization/57439
26335 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
26337 2013-05-28 Easwaran Raman <eraman@google.com>
26339 PR tree-optimization/57337
26340 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
26341 (find_insert_point): Correctly identify the insertion point
26342 when two statements with the same UID is compared.
26344 2013-05-28 Richard Biener <rguenther@suse.de>
26346 PR tree-optimization/56787
26347 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
26348 from the list of data references.
26349 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
26351 (vect_analyze_loop_operations): Likewise.
26352 (vect_transform_loop): Remove clobbers.
26354 2013-05-28 Martin Jambor <mjambor@suse.cz>
26356 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26357 and REALPART_EXPRs have scalar type.
26359 2013-05-28 Richard Biener <rguenther@suse.de>
26361 PR tree-optimization/57411
26362 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
26364 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
26365 virtual operand propagation.
26367 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26369 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26370 destination register for bmasksi_vis.
26371 (vector_init_bshuffle): Likewise.
26372 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26374 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26376 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26377 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26378 mode if the instruction isn't available in the original mode.
26379 * config/sparc/sparc.opt (mfix-ut699): New option.
26380 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26381 (divdf3): Turn into expander.
26382 (divdf3_nofix): New insn.
26383 (divdf3_fix): Likewise.
26384 (divsf3): Disable if -mfix-ut699.
26385 (sqrtdf2): Turn into expander.
26386 (sqrtdf2_nofix): New insn.
26387 (sqrtdf2_fix): Likewise.
26388 (sqrtsf2): Disable if -mfix-ut699.
26390 2013-05-27 Richard Biener <rguenther@suse.de>
26392 PR middle-end/57412
26393 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26394 block for the new loop.
26396 2013-05-27 Richard Biener <rguenther@suse.de>
26398 PR tree-optimization/57343
26399 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26400 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26401 (number_of_iterations_cond): Do not build the folded tree.
26403 2013-05-27 Richard Biener <rguenther@suse.de>
26406 PR middle-end/57381
26407 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26408 OEP_CONSTANT_ADDRESS_OF retained.
26410 PR tree-optimization/57417
26411 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26412 for unchanged base.
26413 (set_ssa_val_to): Compare addresses using
26414 get_addr_base_and_unit_offset.
26416 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
26418 PR rtl-optimization/56833
26419 * postreload.c (move2add_record_mode): New function.
26420 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26421 (move2add_use_add2_insn): Use move2add_record_sym_value.
26422 (move2add_use_add3_insn): Likewise.
26423 (reload_cse_move2add): Use move2add_valid_value_p and
26424 move2add_record_mode. Invalidate call-clobbered and REG_INC
26425 affected regs by setting reg_mode to VOIDmode.
26426 (move2add_note_store): Don't pretend the inside of a SUBREG is
26427 the actual destination. Invalidate single/leading registers by
26428 setting reg_mode to VOIDmode.
26429 Use move2add_record_sym_value, move2add_valid_value_p and
26430 move2add_record_mode.
26432 2013-05-27 Richard Biener <rguenther@suse.de>
26434 PR tree-optimization/57396
26435 * tree-affine.c (double_int_constant_multiple_p): Properly
26436 return false for val == 0 and div != 0.
26438 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26440 * config/mips/mips.h: Use #elif in preprocessor conditions.
26442 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26445 * config/mips/constraints.md (kl): New constraint.
26446 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26447 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
26448 constraint for operand 0. Split after CSE for MIPS16. Emit a move
26449 from LO for MIPS16.
26450 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26452 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26455 * config/mips/mips.c (mips_can_inline_p): New function.
26456 (TARGET_CAN_INLINE_P): Define.
26458 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
26460 * sched-int.h (ds_t, dw_t): Make unsigned int.
26461 Fix documentation that describes how all the ds_t bits are used.
26462 Reserve the last bit for delayed-branch scheduling.
26463 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26464 (BITS_PER_DEP_WEAK): Fix definition and documentation.
26465 (gen_dep_weak_1): Remove prototype.
26466 * sched-deps.c (get_dep_weak_1): Make static.
26467 * target.def (speculate_insn, needs_block_p, gen_spec_check,
26468 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26469 * doc/tm.texi: Regenerate.
26470 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26472 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
26475 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26477 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
26478 Sandra Loosemore <sandra@codesourcery.com>
26480 * config.gcc (powerpc-*): Allow native for with-cpu.
26482 2013-05-24 Jeff Law <law@redhat.com>
26484 PR tree-optimization/57124
26485 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26486 conversion feeding a condition if the range has an overflow
26487 if -fstrict-overflow. Add warnings for when we do make the
26490 2013-05-24 Dehao Chen <dehao@google.com>
26492 * tree-cfg.c (locus_discrim_map): Fix the typo.
26493 (locus_discrim_hasher): Likewise.
26494 (locus_discrim_hasher::hash): Likewise.
26495 (locus_discrim_hasher::equal): Likewise.
26497 2013-05-24 Martin Jambor <mjambor@suse.cz>
26499 PR tree-optimization/57294
26500 * cgraph.h (ipa_record_stmt_references): Declare.
26501 * cgraphbuild.c (ipa_record_stmt_references): New function.
26502 (build_cgraph_edges): Use ipa_record_stmt_references.
26503 (rebuild_cgraph_edges): Likewise.
26504 (cgraph_rebuild_references): Likewise.
26505 * ipa-prop.c (ipa_modify_call_arguments): Discard references
26506 associated with the old statement and build references from the
26507 newly built statements.
26508 * ipa-ref.c (ipa_remove_stmt_references): New function.
26509 * ipa-ref.h (ipa_remove_stmt_references): Declare.
26511 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
26513 * lra-constraints.c (emit_spill_move): Use smaller mode for
26515 (check_and_process_move): Consider mem-reg moves for secondary
26517 (curr_insn_transform): Don't lose insns emitted before for
26518 secondary memory moves.
26519 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
26520 reg set up in the current insn.
26522 2013-05-24 Dehao Chen <dehao@google.com>
26524 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26526 (locus_descrim_hasher::equal): Likewise.
26527 (build_gimple_cfg): New discriminator assignment algorithm.
26528 (make_edges): Likewise.
26529 (next_discriminator_for_locus): Likewise.
26530 (same_line_p): Likewise.
26531 (assign_discriminators): Likewise.
26532 (make_cond_expr_edges): Likewise.
26533 (make_gimple_switch_edges): Likewise.
26534 (make_goto_expr_edges): Likewise.
26535 (make_gimple_asm_edges): Likewise.
26537 2013-05-24 Ian Bolton <ian.bolton@arm.com>
26539 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26540 X format specifier to only display bottom 16 bits.
26541 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26542 immediate to match for operand 2, since it will be masked.
26544 2013-05-24 Richard Biener <rguenther@suse.de>
26546 PR tree-optimization/57287
26547 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26548 all SSA names that occur in abnormal PHIs.
26550 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
26553 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26554 that index is not negative.
26556 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
26558 PR rtl-optimization/55177
26559 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26560 (simplify_byte_swapping_operation): New.
26561 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26562 (simplify_relational_operation_1): Deal with BSWAP.
26564 2013-05-23 Richard Henderson <rth@redhat.com>
26567 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26568 (ix86_reorg): Call it.
26570 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
26573 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26574 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26575 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26577 2013-05-23 Christian Bruel <christian.bruel@st.com>
26580 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26582 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26583 Marcus Shawcroft <marcus.shawcroft@arm.com>
26585 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26586 * config/aarch64/constraints.md (Usa): Remove.
26587 * doc/md.texi (AArch64 Usa): Remove.
26589 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26590 Marcus Shawcroft <marcus.shawcroft@arm.com>
26592 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26593 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26594 * config/aarch64/predicates.md (aarch64_const_address): Remove.
26595 (aarch64_mov_operand): Use aarch64_mov_operand_p.
26597 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
26599 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26600 instruction (AdvSIMD).
26601 * config/aarch64/aarch64-builtins.c
26602 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26603 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26605 2013-05-23 Martin Jambor <mjambor@suse.cz>
26607 PR middle-end/57347
26608 * tree.h (contains_bitfld_component_ref_p): Declare.
26609 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26610 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26612 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26613 not access a bit-field. Assert all final offsets are byte-aligned.
26615 2013-05-23 Richard Biener <rguenther@suse.de>
26617 PR tree-optimization/57380
26618 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26619 least one invariant or re-used load.
26620 * passes.c (init_optimization_passes): Move pass_phiprop before
26623 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26625 * config/aarch64/aarch64-simd.md
26626 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26628 2013-05-23 Richard Biener <rguenther@suse.de>
26630 PR middle-end/57381
26631 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26632 OEP_CONSTANT_ADDRESS_OF retained.
26634 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26636 PR middle-end/57344
26637 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26638 don't lower unit. Handle unit not being always BITS_PER_WORD.
26640 2013-05-23 Richard Biener <rguenther@suse.de>
26642 PR rtl-optimization/57341
26643 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26644 instead of true_dependence.
26646 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26648 * bb-reorder.c (branch_threshold): Make const.
26649 (exec_threshold): Ditto.
26651 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26652 Pat Haugen <pthaugen@us.ibm.com>
26653 Peter Bergner <bergner@vnet.ibm.com>
26655 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26656 documentation for the power8 crypto builtins.
26658 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26660 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26661 macros for defining power8 builtin functions.
26662 (BU_P8V_AV_2): Likewise.
26663 (BU_P8V_AV_P): Likewise.
26664 (BU_P8V_VSX_1): Likewise.
26665 (BU_P8V_OVERLOAD_1): Likewise.
26666 (BU_P8V_OVERLOAD_2): Likewise.
26667 (BU_CRYPTO_1): Likewise.
26668 (BU_CRYPTO_2): Likewise.
26669 (BU_CRYPTO_3): Likewise.
26670 (BU_CRYPTO_OVERLOAD_1): Likewise.
26671 (BU_CRYPTO_OVERLOAD_2): Likewise.
26672 (XSCVSPDP): Fix typo, point to the correct instruction.
26673 (VCIPHER): Add power8 crypto builtins.
26674 (VCIPHERLAST): Likewise.
26675 (VNCIPHER): Likewise.
26676 (VNCIPHERLAST): Likewise.
26677 (VPMSUMB): Likewise.
26678 (VPMSUMH): Likewise.
26679 (VPMSUMW): Likewise.
26680 (VPERMXOR_V2DI): Likewise.
26681 (VPERMXOR_V4SI: Likewise.
26682 (VPERMXOR_V8HI: Likewise.
26683 (VPERMXOR_V16QI: Likewise.
26684 (VSHASIGMAW): Likewise.
26685 (VSHASIGMAD): Likewise.
26686 (VPMSUM): Likewise.
26687 (VPERMXOR): Likewise.
26688 (VSHASIGMA): Likewise.
26690 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26691 __CRYPTO__ if the crypto instructions are available.
26692 (altivec_overloaded_builtins): Add support for overloaded power8
26695 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26696 support for power8 crypto builtins.
26697 (builtin_function_type): Likewise.
26698 (altivec_init_builtins): Add support for builtins that take vector
26699 long long (V2DI) arguments.
26701 * config/rs6000/crypto.md: New file, define power8 crypto
26704 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26705 Pat Haugen <pthaugen@us.ibm.com>
26706 Peter Bergner <bergner@vnet.ibm.com>
26708 * doc/invoke.texi (Option Summary): Add power8 options.
26709 (RS/6000 and PowerPC Options): Likewise.
26711 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26712 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26713 wm, wn, wr documentation.
26715 * config/rs6000/constraints.md (wm): New constraint for VSX
26716 registers if direct move instructions are enabled.
26717 (wn): New constraint for no registers.
26718 (wq): New constraint for quad word even GPR registers.
26719 (wr): New constraint if 64-bit instructions are enabled.
26720 (wv): New constraint if power8 vector instructions are enabled.
26721 (wQ): New constraint for quad word memory locations.
26723 * config/rs6000/predicates.md (const_0_to_15_operand): New
26724 constraint for 0..15 for crypto instructions.
26725 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26726 as GPR and floating point registers.
26727 (int_reg_operand): New predicate to match only GPR registers.
26728 (base_reg_operand): New predicate to match base registers.
26729 (quad_int_reg_operand): New predicate to match even GPR registers
26730 for quad memory operations.
26731 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26732 operations in both GPR and VSX registers.
26733 (quad_memory_operand): New predicate for quad memory operations.
26734 (reg_or_indexed_operand): New predicate for direct move support.
26736 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26737 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26738 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26739 (POWERPC_MASKS): Add power8 options.
26740 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26743 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26744 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26746 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26747 (-mpower8-fusion): New power8 options.
26748 (-mpower8-fusion-sign): Likewise.
26749 (-mpower8-vector): Likewise.
26750 (-mcrypto): Likewise.
26751 (-mdirect-move): Likewise.
26752 (-mquad-memory): Likewise.
26754 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26755 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26757 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26758 (rs6000_debug_vector_unit): Add p8_vector.
26759 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26760 definitions. Also print fusion state.
26761 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26762 (rs6000_builtin_mask_calculate): Add power8 builtin support.
26763 (rs6000_option_override_internal): Add support for power8.
26764 (rs6000_common_init_builtins): Add debugging for skipped builtins
26765 if -mdebug=builtin.
26766 (rs6000_adjust_cost): Add power8 support.
26767 (rs6000_issue_rate): Likewise.
26768 (insn_must_be_first_in_group): Likewise.
26769 (insn_must_be_last_in_group): Likewise.
26770 (force_new_group): Likewise.
26771 (rs6000_register_move_cost): Likewise.
26772 (rs6000_opt_masks): Likewise.
26774 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26775 power8 capable assembler, default to power7 options.
26776 (TARGET_DIRECT_MOVE): Likewise.
26777 (TARGET_CRYPTO): Likewise.
26778 (TARGET_P8_VECTOR): Likewise.
26779 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26780 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26781 (VECTOR_MEM_P8_VECTOR_P): Likewise.
26782 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26783 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26784 (TARGET_XSCVDPSPN): Likewise.
26785 (TARGET_XSCVSPDPN): Likewsie.
26786 (TARGET_SYNC_HI_QI): Likewise.
26787 (TARGET_SYNC_TI): Likewise.
26788 (MASK_CRYPTO): Likewise.
26789 (MASK_DIRECT_MOVE): Likewise.
26790 (MASK_P8_FUSION): Likewise.
26791 (MASK_P8_VECTOR): Likewise.
26792 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26793 temporary used by some of the direct move instructions to get two FP
26794 temporary registers does not force creation of a stack frame.
26795 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26796 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26797 that any VSX registers are tieable, even if they are also an
26798 Altivec vector mode.
26799 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26800 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26801 (RS6000_BTM_CRYPTO): Likewise.
26802 (RS6000_BTM_COMMON): Likewise.
26804 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26805 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26806 (enum rs6000_vector): Add power8 vector support.
26808 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26812 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26813 (any_sibcall_could_use_r3): this and handle indirect calls.
26814 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26816 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26818 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26820 2013-05-22 Richard Biener <rguenther@suse.de>
26822 PR middle-end/57349
26823 * profile.c (branch_prob): Do not split blocks that are
26824 abnormally receiving from ECF_RETURNS_TWICE functions.
26826 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26828 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26829 address mode. Move pointer mode initialization to the same place.
26831 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26833 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26834 while it has any effect.
26836 2013-05-21 Easwaran Raman <eraman@google.com>
26838 PR tree-optimization/57322
26839 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26840 UID of the statement added to the BB to be 1.
26842 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26844 PR tree-optimization/57331
26845 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26846 of conversion from pointer type to integral type with integer.
26848 2013-05-21 Martin Jambor <mjambor@suse.cz>
26851 * ipa-prop.c (ipa_read_node_info): Process param_used and
26852 controlled_uses in the same order as when writing.
26854 2013-05-21 Magnus Granberg <baldrick@free.fr>
26857 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26859 2013-05-21 Richard Biener <rguenther@suse.de>
26861 PR tree-optimization/57318
26862 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26863 estimate stmts with side-effects as likely eliminated.
26865 2013-05-21 Richard Biener <rguenther@suse.de>
26867 PR tree-optimization/57330
26868 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26869 preserve the call stmts fntype.
26871 2013-05-21 Richard Biener <rguenther@suse.de>
26873 PR tree-optimization/57303
26874 * tree-ssa-sink.c (statement_sink_location): Improve killing
26875 stmt detection and properly handle self-assignments.
26877 2013-05-21 Christian Bruel <christian.bruel@st.com>
26879 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26880 spanning registers. LEAF_REG_REMAP is supported only for contiguous
26881 registers. Set register size out of the PARALLEL loop.
26883 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
26886 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26887 (*fmasf4, *fmasf4_media): New insns.
26889 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26891 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26892 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26893 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26894 (mips_idiv_insns): Update the comments to say that the returned
26895 instruction counts are in units of BASE_INSN_LENGTH.
26896 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26897 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
26898 using 2 rather than 4 as the length of indirect MIPS16 and
26899 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
26900 length of a NOP. Don't divide MIPS16 lengths by 2.
26901 (mips16_split_long_branches): Assume a branch is long if the
26902 length is greater than 4 rather than 8.
26903 * config/mips/mips.md (length): Give MIPS16 lengths directly,
26904 rather than multiplying them by 2. Multiply instruction counts
26905 by BASE_INSN_LENGTH rather than 4.
26906 (*jump_mips16, tls_get_tp_mips16_<mode>)
26907 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26909 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26911 * config/mips/mips.md (extended_mips16): Remove branch case.
26912 (length): Remove duplicated extended_mips16 test.
26914 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26916 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26918 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
26920 * recog.h (Recog_data): Rename to...
26921 (recog_data_d): ...this.
26922 (recog_data): Update accordingly.
26923 * recog.c (recog_data): Likewise.
26924 * reload.c (save_recog_data): Likewise.
26925 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26926 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26928 2013-05-17 Julian Brown <julian@codesourcery.com>
26930 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26931 found in a REG_EQUAL note, invalidate it.
26933 2013-05-17 Easwaran Raman <eraman@google.com>
26935 * tree-ssa-reassoc.c (find_insert_point): New function.
26936 (insert_stmt_after): Likewise.
26937 (get_def_stmt): Likewise.
26938 (ensure_ops_are_available): Likewise.
26939 (not_dominated_by): Likewise.
26940 (rewrite_expr_tree): Do not move statements beyond what is
26941 necessary. Remove call to swap_ops_for_binary_stmt...
26942 (reassociate_bb): ... and move it here.
26943 (build_and_add_sum): Assign UIDs for new statements.
26944 (linearize_expr): Likewise.
26945 (do_reassoc): Renumber gimple statement UIDs.
26947 2013-05-17 Jan Hubicka <jh@suse.cz>
26949 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26951 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26952 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26954 (output_weakrefs): Update.
26956 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
26957 Martin Jambor <mjambor@suse.cz>
26959 PR middle-end/57276
26960 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26961 value that corresponds to the given aggval is found in values vector.
26963 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
26965 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26966 sse, sse2, sse3, ssse3 and sse4a flags to options.
26968 2013-05-17 David Malcolm <dmalcolm@redhat.com>
26970 * gengtype-state.c: (s_expr_writer): New class, to handle
26971 prettifying of output layout of s-expressions.
26972 (state_writer): New class, to write out gtype.state.
26973 (state_written_type_count): Move this variable into member data of
26975 (s_expr_writer::s_expr_writer): New code: constructor for new class
26976 (state_writer::state_writer(): ditto
26977 (s_expr_writer::write_new_line): New function
26978 (s_expr_writer::write_any_indent): ditto
26979 (s_expr_writer::begin_s_expr): ditto
26980 (s_expr_writer::end_s_expr): ditto
26981 (write_state_fileloc): convert to method of state_writer...
26982 (state_writer:: write_state_fileloc): ...and use methods of
26983 s_expr_writer to write indentation into the gtype.state output file
26984 to visually represent the hierarchical structure of the list
26986 (write_state_fields): ditto, renaming to...
26987 (state_writer::write_state_fields)
26988 (write_state_a_string): ditto, renaming to...
26989 (state_writer::write_state_a_string)
26990 (write_state_string_option): ditto, renaming to...
26991 (state_writer::write_state_string_option)
26992 (write_state_type_option): ditto, renaming to...
26993 (state_writer::write_state_type_option)
26994 (write_state_nested_option): ditto, renaming to...
26995 (state_writer::write_state_nested_option)
26996 (write_state_option): ditto, renaming to...
26997 (state_writer::write_state_option)
26998 (write_state_options): ditto, renaming to...
26999 (state_writer::write_state_options)
27000 (write_state_lang_bitmap): ditto, renaming to...
27001 (state_writer::write_state_lang_bitmap)
27002 (write_state_version): ditto, renaming to...
27003 (state_writer::write_state_version)
27004 (write_state_scalar_type): ditto, renaming to...
27005 (state_writer::write_state_scalar_type)
27006 (write_state_string_type): ditto, renaming to...
27007 (state_writer::write_state_string_type)
27008 (write_state_undefined_type): ditto, renaming to...
27009 (state_writer::write_state_undefined_type)
27010 (write_state_struct_union_type): ditto, renaming to...
27011 (state_writer::write_state_struct_union_type)
27012 (write_state_struct_type): ditto, renaming to...
27013 (state_writer::write_state_struct_type)
27014 (write_state_user_struct_type): ditto, renaming to...
27015 (state_writer::write_state_user_struct_type)
27016 (write_state_lang_struct_type): ditto, renaming to...
27017 (state_writer::write_state_lang_struct_type)
27018 (write_state_param_struct_type): ditto, renaming to...
27019 (state_writer::write_state_param_struct_type)
27020 (write_state_pointer_type): ditto, renaming to...
27021 (state_writer::write_state_pointer_type)
27022 (write_state_array_type): ditto, renaming to...
27023 (state_writer::write_state_array_type)
27024 (write_state_gc_used): ditto, renaming to...
27025 (state_writer::write_state_gc_used)
27026 (write_state_common_type_content): ditto, renaming to...
27027 (state_writer::write_state_common_type_content)
27028 (write_state_type): ditto, renaming to...
27029 (state_writer::write_state_type)
27030 (write_state_pair_list): ditto, renaming to...
27031 (state_writer::write_state_pair_list)
27032 (write_state_pair): ditto, renaming to...
27033 (state_writer::write_state_pair)
27034 (write_state_typedefs): ditto, renaming to...
27035 (state_writer::write_state_typedefs)
27036 (write_state_structures): ditto, renaming to...
27037 (state_writer::write_state_structures)
27038 (write_state_param_structs): ditto, renaming to...
27039 (state_writer::write_state_param_structs)
27040 (write_state_variables): ditto, renaming to...
27041 (state_writer::write_state_variables)
27042 (write_state_srcdir): ditto, renaming to...
27043 (state_writer::write_state_srcdir)
27044 (write_state_files_list): ditto, renaming to...
27045 (state_writer::write_state_files_list)
27046 (write_state_languages): ditto, renaming to...
27047 (state_writer::write_state_languages)
27048 (write_state): create a state_writer instance and use it when
27049 writing out the state file
27051 2013-05-17 Mike Stump <mikestump@comcast.net>
27053 PR rtl-optimization/57304
27054 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
27055 accessing DF_REF_REAL_LOC.
27057 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27059 PR rtl-optimization/57281
27060 PR rtl-optimization/57300
27061 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
27062 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
27063 what the other splitter did if the registers are dead.
27065 2013-05-17 Richard Biener <rguenther@suse.de>
27067 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
27070 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27072 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
27075 2013-05-17 Marek Polacek <polacek@redhat.com>
27077 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
27078 length when doing non-zero store of storing '\0' to '\0'.
27080 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27082 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
27083 vect_external_def oprnd1 with loop_vinfo, try to emit
27084 optional cast, negation and and stmts on the loop preheader
27085 edge instead of into the pattern def seq.
27087 PR tree-optimization/57051
27088 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
27089 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
27091 2013-05-16 Nick Clifton <nickc@redhat.com>
27093 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
27094 (rl78_is_naked_func): New function.
27095 (rl78_expand_prologue): Skip prologue generation for naked functions.
27096 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
27097 * doc/extend.texi (naked): Add RL78 to the list of processors
27098 that supports this attribute.
27100 2013-05-16 Jeff Law <law@redhat.com>
27102 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
27104 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
27106 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
27107 cache parameters using detect_caches_amd also for CYRIX,
27108 NSC and TM2 signatures.
27110 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
27111 Dzianis Kahanovich <mahatma@eu.by>
27115 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27116 VIA/Centaur processors and determine their cache parameters
27117 using detect_caches_amd.
27119 2013-05-16 Teresa Johnson <tejohnson@google.com>
27121 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
27122 (rtl_verify_edges): New function.
27123 (rtl_verify_bb_insns): Ditto.
27124 (rtl_verify_bb_pointers): Ditto.
27125 (rtl_verify_bb_insn_chain): Ditto.
27126 (rtl_verify_fallthru): Ditto.
27127 (rtl_verify_bb_layout): Ditto.
27128 (rtl_verify_flow_info_1): Outline checks into new functions.
27129 (rtl_verify_flow_info): Ditto.
27131 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
27133 * cfghooks.c (copy_bbs): Add update_dominance argument.
27134 * cfghooks.h (copy_bbs): Update prototype.
27135 * tree-cfg.c (gimple_duplicate_sese_region):
27136 Add update_dominance argument.
27137 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
27138 * tree-ssa-loop-ch.c (copy_loop_headers): Update
27139 gimple_duplicate_sese_region call.
27140 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
27141 Update copy_bbs call.
27142 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
27143 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
27145 2013-05-16 Jakub Jelinek <jakub@redhat.com>
27147 * tree-vectorizer.h (NUM_PATTERNS): Increment.
27148 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
27149 vect_recog_rotate_pattern.
27150 (vect_recog_rotate_pattern): New function.
27152 2013-05-16 Jason Merrill <jason@redhat.com>
27154 * Makefile.in (LLINKER): New variable.
27155 (mostlyclean): Remove link mutex.
27156 * configure.ac: Handle --enable-link-mutex.
27157 * lock-and-run.sh: New script.
27159 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27162 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
27165 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27167 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
27169 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
27171 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
27172 * config/arm/arm.c (next_consecutive_mem): New function.
27173 (gen_movmem_ldrd_strd): Likewise.
27174 * config/arm/arm.md (movmemqi): Update condition and code.
27175 (unaligned_loaddi, unaligned_storedi): New patterns.
27177 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27179 * config.gcc: Obsolete *-*-solaris2.9*.
27180 * doc/install.texi (Specific, *-*-solaris2*): Document it.
27182 2013-05-16 Richard Biener <rguenther@suse.de>
27184 * passes.c (init_optimization_passes): Move pass_parallelize_loops
27185 earlier, after GRAPHITE transforms and IV canonicalization.
27187 2013-05-16 Jakub Jelinek <jakub@redhat.com>
27189 * omp-low.c (extract_omp_for_data): For collapsed loops,
27190 if at least one of the loops is known at compile time to
27191 iterate zero times, set count to 0.
27192 (expand_omp_regimplify_p): New function.
27193 (expand_omp_for_generic): For collapsed loops, if at least
27194 one of the loops isn't known to iterate at least once,
27195 add runtime check with setting count to 0.
27196 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27197 For unsigned types if it isn't known at compile time that
27198 the loop will iterate at least once, add runtime check to bypass
27199 the whole loop if initial condition isn't true.
27201 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
27203 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
27205 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
27207 PR middle-end/57286
27208 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
27209 transformations to avoid an infinite loop.
27211 2013-05-16 Marek Polacek <polacek@redhat.com>
27213 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
27215 2013-05-15 Leif Ekblad <leif@rdos.net>
27217 * config/i386/i386.c (ix86_decompose_address): Use
27218 DEFAULT_TLS_SEG_REG to access TLS segment register.
27219 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
27220 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
27221 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
27223 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
27226 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
27227 sibling calls to functions that would normally be lazily bound,
27228 unless $gp is call-clobbered.
27230 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
27232 * config/i386/i386.c (ix86_option_override_internal): Update
27233 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
27234 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
27235 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
27236 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
27238 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
27240 2013-05-15 Andreas Schwab <schwab@suse.de>
27242 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
27243 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
27246 2013-05-15 Teresa Johnson <tejohnson@google.com>
27248 * loop-unroll.c (report_unroll_peel): Check decision before
27249 emitting unroll/peel message.
27251 2013-05-15 Teresa Johnson <tejohnson@google.com>
27253 * function.h (has_bb_partition): New rtl_data flag.
27254 (bb_reorder_complete): Ditto.
27255 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
27256 instead of flag_reorder_blocks_and_partition.
27257 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
27258 with some enhancements.
27259 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
27260 * bb-reorder.c (connect_traces): Check for has_bb_partition
27261 instead of flag_reorder_blocks_and_partition.
27262 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
27263 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
27264 verify_hot_cold_block_grouping.
27265 (partition_hot_cold_basic_blocks): Set has_bb_partition.
27267 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27270 * config/arm/predicates.md (call_insn_operand): New predicate.
27271 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
27272 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
27273 if insn is not a tail call.
27274 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
27276 * config/arm/arm.h (enum reg_class): New caller save register class.
27277 (REG_CLASS_NAMES): Likewise.
27278 (REG_CLASS_CONTENTS): Likewise.
27279 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
27282 2013-05-15 Richard Biener <rguenther@suse.de>
27284 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
27285 of MSG_OPTIMIZED_LOCATIONS.
27286 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
27287 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
27289 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
27290 of MSG_OPTIMIZED_LOCATIONS.
27291 (execute_vect_slp): Likewise.
27292 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27293 (vect_create_cond_for_alias_checks): Likewise.
27294 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
27295 (vect_recog_widen_mult_pattern): Likewise.
27296 (vect_recog_widen_sum_pattern): Likewise.
27297 (vect_recog_over_widening_pattern): Likewise.
27298 (vect_recog_widen_shift_pattern): Likewise.
27299 (vect_recog_vector_vector_shift_pattern): Likewise.
27300 (vect_recog_divmod_pattern): Likewise.
27301 (vect_recog_mixed_size_cond_pattern): Likewise.
27302 (vect_recog_bool_pattern): Likewise.
27303 (vect_pattern_recog_1): Likewise.
27305 2013-05-15 Martin Jambor <mjambor@suse.cz>
27307 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
27308 non-functions to builtin_unreachable.
27309 * ipa-inline-transform.c (inline_call): Do not assert estimates were
27310 correct when new direct edges were discovered.
27312 2013-05-15 Martin Jambor <mjambor@suse.cz>
27314 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
27315 header, print symbol order instead of node uid, print more information
27316 about indirect edge targets.
27317 (ipa_make_edge_direct_to_target): Print symbol order instead of node
27319 (ipa_make_edge_direct_to_target): Likewise.
27320 (remove_described_reference): Likewise.
27321 (propagate_controlled_uses): Likewise.
27322 (ipa_print_node_params): Also print symbol order.
27323 (ipcp_transform_function): Print symbol order instead of node uids.
27324 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
27325 (cgraph_get_create_real_symbol_node): Likewise.
27326 * ipa-cp.c (print_lattice): Likewise.
27327 (print_all_lattices): Likewise.
27328 (determine_versionability): Likewise.
27329 (initialize_node_lattices): Likewise.
27330 (estimate_local_effects): Likewise.
27331 (update_profiling_info): Likewise.
27332 (create_specialized_node): Likewise.
27333 (perhaps_add_new_callers): Likewise.
27334 (decide_about_value): Likewise.
27335 (decide_whether_version_node): Likewise.
27336 (identify_dead_nodes): Likewise.
27337 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
27338 (dump_inline_summary): Likewise.
27339 (estimate_node_size_and_time): Likewise.
27340 (inline_analyze_function): Likewise.
27341 * ipa-inline.c (report_inline_failed_reason): Likewise.
27342 (want_early_inline_function_p): Likewise.
27343 (edge_badness): Likewise.
27344 (update_edge_key): Likewise.
27345 (inline_small_functions): Likewise. Add dumping of order to two other
27347 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
27348 instead of node uids.
27349 (propagate_pure_const): Likewise.
27350 (propagate_pure_const): Likewise.
27351 * ipa-utils.c (dump_cgraph_node_set): Likewise.
27352 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
27353 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
27355 * tree-pretty-print.c (dump_function_header): Likewise.
27356 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
27357 Print symbol order instead of node uids.
27359 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27361 * config/s390/s390.c (s390_register_move_cost): Don't impose the
27362 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
27364 2013-05-15 Richard Biener <rguenther@suse.de>
27366 PR tree-optimization/57275
27367 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
27368 return value for fail to do runtime alias checks for gather loads.
27370 2013-05-15 Jan Hubicka <jh@suse.cz>
27374 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27375 weakrefs are not external.
27376 (lto_symtab_merge_decls): Fix thinko when dealing with
27377 non-lto_symtab decls.
27378 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27379 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27380 * varpool.c (dump_varpool_node): Dump more flags.
27382 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27384 * config/i386/i386.c (processor_alias_table): Add instruction
27385 FSGSBASE for AMD bdver3 architecture.
27387 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27389 * tree.c (warn_deprecated_use): Print file:line using locus color.
27390 * diagnostic.c (diagnostic_report_current_module): Print file:line
27391 and file:line:column using locus color.
27393 2013-05-14 Mike Stump <mikestump@comcast.net>
27395 * gdbinit.in: Add __null.
27397 2013-05-14 Mike Stump <mikestump@comcast.net>
27399 * recog.h: Rename struct recog_data to Recog_data.
27400 * recog.c: Likewise.
27401 * reload.c (can_reload_into): Likewise.
27402 * config/picochip/picochip.c: Likewise.
27404 2013-05-14 Mike Stump <mikestump@comcast.net>
27406 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27408 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
27410 * resource.h (struct resources): Remove unch_memory member.
27411 (CLEAR_RESOURCE): Don't clear unch_memory.
27412 * resource.c (mark_referenced_resources): Don't set it.
27413 (mark_set_resources): Likewise.
27414 (mark_target_live_regs): Don't clear it.
27415 (init_resource_info): Likewise.
27416 * reorg.c (resource_conflicts_p): Don't compare it.
27417 (redundant_insn): Don't set it.
27419 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27421 * emit-rtl.c (next_label): Remove unused function.
27422 (skip_consecutive_labels, link_cc0_insns): Move to ...
27423 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27424 only place where these functions are used, and make them static.
27426 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27428 * fold-const.c (fold_negate_expr): Handle vectors.
27429 (fold_truth_not_expr): Make it static.
27430 (fold_invert_truthvalue): New static function.
27431 (invert_truthvalue_loc): Handle vectors. Do not call
27432 fold_truth_not_expr directly.
27433 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27434 <TRUTH_NOT_EXPR>: Do not cast to boolean.
27435 (fold_comparison): Handle vector constants.
27436 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27437 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27438 * tree.h (fold_truth_not_expr): Remove declaration.
27440 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
27442 * config/aarch64/aarch64-simd.md
27443 (aarch64_vcond_internal<mode>): Rename to...
27444 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27445 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27446 float modes. Clarify all iterator modes.
27447 (vcond<mode><mode>): Use new name for vcond expanders.
27448 (vcond<v_cmp_result><mode>): Likewise.
27449 (vcondu<mode><mode>: Likewise.
27450 * config/aarch64/iterators.md (VDQF_COND): New.
27452 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27455 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27456 variable for the shift amount. Check that we shift by non-negative
27459 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
27462 * config/arm/arm.h (EPILOGUE_USES): Only return true
27463 for LR_REGNUM after epilogue_completed.
27465 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
27467 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27468 is error_mark_node.
27470 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27473 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27474 and Solaris 11+/x86 with gld.
27475 * configure: Regenerate.
27477 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27479 * expmed.c (expand_shift_1): Canonicalize rotates by
27480 constant bitsize / 2 to bitsize - 1.
27481 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27482 case ROTATERT>: Likewise.
27485 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27487 * config/i386/i386.md (rotateinv): New code attr.
27488 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27489 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27490 roll $31, %eax, etc.
27492 2013-05-14 Richard Biener <rguenther@suse.de>
27494 PR middle-end/57235
27495 * tree-eh.c (sink_clobbers): Give up for successors with
27496 multiple predecessors and no virtual uses.
27498 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
27500 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27501 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27503 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27505 PR middle-end/57251
27506 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27507 the case when both op0 and op1 have VOIDmode.
27509 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27511 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27512 in multiply-accumulate mode.
27514 2013-05-13 Guozhi Wei <carrot@google.com>
27516 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27518 2013-05-13 Kai Tietz <ktietz@redhat.com>
27521 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27522 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27523 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27524 * config/i386/i386.c (ix86_option_override_internal): Likewise.
27525 (ix86_expand_prologue): Likewise.
27526 (ix86_expand_split_stack_prologue): Likewise.
27527 (legitimate_pic_address_disp_p): Likewise.
27528 (legitimize_pic_address): Likewise.
27529 (legitimize_tls_address): Likewise.
27530 (legitimize_pe_coff_symbol): Likewise.
27531 (output_pic_addr_const): Likewise.
27532 (construct_plt_address): Likewise.
27533 (ix86_expand_call): Likewise.
27534 (x86_output_mi_thunk): Likewise.
27535 (x86_function_profiler): Likewise.
27537 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
27539 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27540 similar switch cases.
27541 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27542 (aarch64_simd_mov_to_<mode>low): Delete.
27543 (aarch64_simd_mov_to_<mode>high): Delete.
27544 (move_lo_quad_<mode>): Add w<-r alternative.
27545 (aarch64_simd_move_hi_quad_<mode>): Likewise.
27546 (aarch64_simd_mov_from_*): Update type attribute.
27547 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27550 2013-05-13 Jan Hubicka <jh@suse.cz>
27552 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27553 * config/i386/i386.c (ix86_compute_frame_layout,
27554 ix86_expand_epilogue, emit_i387_cw_initialization,
27555 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27556 ix86_local_alignment): Fix use of size/speed predicates.
27558 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27560 PR tree-optimization/45216
27561 PR tree-optimization/57157
27562 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27563 the (-Y) & (B - 1) variant if OP is |.
27564 * expmed.c (expand_shift_1): For rotations by const0_rtx just
27565 return shifted. Use (-op1) & (prec - 1) as other_amount
27566 instead of prec - op1.
27568 2013-05-13 Martin Jambor <mjambor@suse.cz>
27570 PR middle-end/42371
27571 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27572 (ipa_constant_data): New type.
27573 (ipa_jump_func): Use ipa_constant_data to hold information about
27574 constant jump functions.
27575 (ipa_get_jf_constant): Adjust to jump function type changes.
27576 (ipa_get_jf_constant_rdesc): New function.
27577 (ipa_param_descriptor): New field controlled_uses.
27578 (ipa_get_controlled_uses): New function.
27579 (ipa_set_controlled_uses): Likewise.
27580 * ipa-ref.h (ipa_find_reference): Declare.
27581 * ipa-prop.c (ipa_cst_ref_desc): New type.
27582 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27584 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
27585 New parameter cs. Adjust all callers.
27586 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27587 (remove_described_reference): New function.
27588 (jfunc_rdesc_usable): Likewise.
27589 (try_make_edge_direct_simple_call): Decrement controlled use count,
27590 attempt to remove reference if it hits zero.
27591 (combine_controlled_uses_counters): New function.
27592 (propagate_controlled_uses): Likewise.
27593 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27594 (ipa_edge_duplication_hook): Duplicate reference descriptions.
27595 (ipa_print_node_params): Print described use counter.
27596 (ipa_write_jump_function): Adjust to jump function type changes.
27597 (ipa_read_jump_function): New parameter CS, pass it to
27598 ipa_set_jf_constant. Adjust caller.
27599 (ipa_write_node_info): Stream controlled use count
27600 (ipa_read_node_info): Likewise.
27601 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27603 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27604 count. Remove cloning-added reference if it reaches zero.
27605 * ipa-ref.c (ipa_find_reference): New function.
27607 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27609 * config/i386/i386.c (processor_target_table): Modified default
27610 alignment values for AMD BD and BT architectures.
27612 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27614 * tree-vect-generic.c (uniform_vector_p): Move ...
27615 * tree.c (uniform_vector_p): ... here.
27616 * tree.h (uniform_vector_p): Declare it.
27617 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27620 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27622 PR tree-optimization/57230
27623 * tree-ssa-strlen.c (handle_char_store): Record length for
27624 array store from STRING_CST.
27626 PR tree-optimization/57230
27627 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27630 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27632 * config/epiphany/epiphany.c (epiphany_init): Check size of
27633 NUM_MODES_FOR_MODE_SWITCHING.
27634 (epiphany_expand_prologue):
27635 Remove CONFIG_REGNUM initial value handling code.
27636 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27637 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27638 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27639 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27640 Don't return 1 for FP_MODE_NONE.
27641 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27642 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27643 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27644 * config/epiphany/epiphany.md (save_config): New pattern.
27646 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27648 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27650 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27652 * config/i386/i386.md (memory): Handle sseishft1.
27653 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27654 (*vec_extractv2di_1): Ditto.
27656 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27658 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27661 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27663 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27664 Add mthumb/march=armv7-a multilib.
27665 Add mthumb/march=armv7-r multilib.
27666 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27668 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27670 * config/v850/t-rtems: Add more multilibs.
27672 2013-05-10 Richard Biener <rguenther@suse.de>
27674 PR tree-optimization/57214
27675 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27676 not propagate from SSA names that occur in abnormal PHI nodes.
27678 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27680 * stor-layout.c (element_precision): New function.
27681 * machmode.h (element_precision): Declare it.
27682 * tree.c (build_minus_one_cst): New function.
27683 (element_precision): Likewise.
27684 * tree.h (build_minus_one_cst): Declare new function.
27685 (element_precision): Likewise.
27686 * fold-const.c (operand_equal_p): Use element_precision.
27687 (fold_binary_loc): Handle vector types.
27688 * convert.c (convert_to_integer): Use element_precision.
27689 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27692 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27694 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27695 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27696 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27697 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27698 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27699 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27700 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27701 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27702 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27703 (Uuw8): New constraints.
27704 (Usb4): Move into alphabetical order.
27705 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27706 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27707 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27708 previously unnamed patterns.
27709 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27710 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27711 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27712 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27713 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27714 of specific lengths.
27716 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27718 * config/i386/i386.md (rotateinv): New code attr.
27719 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27720 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27721 roll $31, %eax, etc.
27723 PR tree-optimization/45216
27724 PR tree-optimization/57157
27725 * tree-ssa-forwprop.c (simplify_rotate): New function.
27726 (ssa_forward_propagate_and_combine): Call it.
27728 2013-05-10 Richard Biener <rguenther@suse.de>
27730 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27731 disable peeling when we version for aliasing.
27732 (vector_alignment_reachable_p): Honor explicit user alignment.
27733 (vect_supportable_dr_alignment): Likewise.
27734 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27735 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27736 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27737 then peeling to arrange for the cost-model check to come first.
27739 2013-05-10 Alan Modra <amodra@gmail.com>
27741 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27742 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27743 * configure: Regenerate.
27745 2013-05-10 Alan Modra <amodra@gmail.com>
27748 * varasm.c (default_elf_select_section): Move !DECL_P check..
27749 (get_named_section): ..to here before calling get_section_name.
27751 (default_section_type_flags): Add DECL_P check.
27752 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27753 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27755 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
27757 * config/epiphany/epiphany.c (epiphany_expand_prologue):
27758 When using gen_stack_adjust_str with a register offset, add a
27759 REG_FRAME_RELATED_EXPR note.
27761 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
27763 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27764 (*vec_extractv4si_zext_mem): Ditto.
27765 (*vec_extractv2di): Add 0->x and x->x alternatives.
27766 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27767 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27769 2013-05-09 Jason Merrill <jason@redhat.com>
27771 N3639 C++1y VLA support
27772 * gimplify.c (gimplify_vla_decl): Don't touch an existing
27775 * tree.c (build_constructor_va): New.
27776 * tree.h: Declare it.
27778 2013-05-09 Martin Jambor <mjambor@suse.cz>
27781 * gimple-fold.c (canonicalize_constructor_val): Call
27782 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27784 2013-05-09 Jan Hubicka <jh@suse.cz>
27785 Richard Biener <rguenther@suse.de>
27788 * symtab.c (symtab_make_decl_local): Do not add private names.
27790 2013-05-09 Jan Hubicka <jh@suse.cz>
27793 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27794 (unlink_from_assembler_name_hash): Likewise.
27795 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27796 symtab_unregister_node, symtab_initialize_asm_name_hash,
27797 change_decl_assembler_name): Update.
27799 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27801 * config/aarch64/aarch64.md: New movtf split.
27802 (*movtf_aarch64): Update.
27803 (aarch64_movdi_tilow): Handle TF modes and rename to
27804 aarch64_movdi_<mode>low.
27805 (aarch64_movdi_tihigh): Handle TF modes and rename to
27806 aarch64_movdi_<mode>high
27807 (aarch64_movtihigh_di): Handle TF modes and rename to
27808 aarch64_mov<mode>high_di
27809 (aarch64_movtilow_di): Handle TF modes and rename to
27810 aarch64_mov<mode>low_di
27811 (aarch64_movtilow_tilow): Remove spurious whitespace.
27812 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27814 (aarch64_print_operand): Update.
27816 2013-05-09 Alan Modra <amodra@gmail.com>
27818 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27820 * configure: Regenerate.
27822 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27824 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27825 splitter preparation statements.
27826 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27827 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27830 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27832 * gimple-ssa-strength-reduction.c (count_candidates): Change
27833 return value to int.
27834 (analyze_candidates_and_replace): Change type of length to int.
27836 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27838 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27839 (*vec_extract<mode>): Use VI12_128 mode iterator.
27840 (*vec_extract<mode>_mem): Ditto.
27841 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27844 2013-05-08 Diego Novillo <dnovillo@google.com>
27849 2012-08-17 Diego Novillo <dnovillo@google.com>
27852 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27853 * config.in: Regenerate.
27854 * configure: Regenerate.
27855 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27857 2013-05-08 Jan Hubicka <jh@suse.cz>
27860 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27861 * cgraph.h (symtab_node_base): Add unique_name.
27862 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27863 input_overwrite_node, input_varpool_node): Stream unique_name.
27864 * cgraphclones.c (cgraph_create_virtual_clone,
27865 cgraph_function_versioning): Set unique_name.
27866 * ipa.c (function_and_variable_visibility): Set unique_name.
27868 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27870 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27871 (alloc_cand_and_find_basis): Restrict conditional candidate
27872 processing to CAND_MULTs.
27874 2013-05-08 Jan Hubicka <jh@suse.cz>
27877 lto-symtab.c (lto_symtab_symbol_p): New function.
27878 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27879 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27880 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27881 Skip static symbols.
27883 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
27885 PR tree-optimization/57200
27886 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27887 Only call inform if the preceding warning_at returns true.
27889 2013-05-07 Han Shen <shenhan@google.com>
27891 * cfgexpand.c (record_or_union_type_has_array_p): New function.
27892 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27893 * common.opt (fstack-protector-strong): New option.
27894 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27895 * doc/invoke.texi (Optimization Options): Document
27896 "-fstack-protector-strong".
27897 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27899 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27901 * config/mips/mips.c (mips_machine_reorg2): Return 0.
27903 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
27905 * ira.c (update_equiv_regs): Add insn having equiv memory even if
27906 it is not lhs of the insn.
27907 (setup_reg_equiv): Remove insn having equiv memory which it is not
27909 * lra-constraints.c (process_address): Try to improve generation
27910 code for address base + disp.
27911 (lra_constraints): Make correct the code for checking insn setting
27912 up backward equivalence. Remove insn only if it is in the init
27914 * lra-eliminations.c (update_reg_eliminate): Change return value.
27915 (lra_eliminate): Use the result.
27917 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
27919 * config/i386/sse.md (ssescalarnummask): New mode attribute.
27920 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27921 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27922 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27923 register target operands.
27924 (*vec_extractv8hi_sse2): New pattern.
27925 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27926 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27927 (*vec_extract<mode>_mem): New insn and split pattern.
27929 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
27931 * config/arm/arm.c (arm_asan_shadow_offset): New function.
27932 (TARGET_ASAN_SHADOW_OFFSET): Define.
27933 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27934 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27936 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27938 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27939 (incr_vec_index): Return -1 if increment not found.
27940 (create_add_on_incoming_edge): Assert if increment not found.
27941 (record_increment): Limit number of increments recorded.
27942 (all_phi_incrs_profitable): Return false if an increment not found.
27943 (replace_profitable_candidates): Don't process increments that were
27945 (analyze_candidates_and_replace): Limit size of incr_vec.
27947 2013-05-07 Richard Biener <rguenther@suse.de>
27949 * calls.c (special_function_p): setjmp-like functions are leaf.
27950 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27951 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27953 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27955 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27956 (aarch64_simd_mov<mode>): New expander.
27957 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27958 (aarch64_simd_mov_to_<mode>high): Likewise.
27959 (aarch64_simd_mov_from_<mode>low): Likewise.
27960 (aarch64_simd_mov_from_<mode>high): Likewise.
27961 (aarch64_dup_lane<mode>): Update.
27962 (aarch64_dup_lanedi): New instruction pattern.
27963 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27964 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27966 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27968 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27969 (replace_mult_candidate): Remove unnecessary argument; remove
27970 unnecessary parameter from call to introduce_cast_before_cand.
27971 (replace_unconditional_candidate): Remove unnecessary parameter
27972 from call to replace_mult_candidate.
27973 (replace_conditional_candidate): Likewise.
27974 (insert_initializers): Use make_temp_ssa_name.
27975 (introduce_cast_before_cand): Remove unnecessary argument; use
27976 make_temp_ssa_name.
27977 (replace_one_candidate): Remove unnecessary argument; remove
27978 unnecessary parameter from calls to introduce_cast_before_cand.
27979 (replace_profitable_candidates): Remove unnecessary parameters
27980 from calls to replace_one_candidate.
27982 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27984 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27985 phi def as possibly hiding a basis for a CAND_ADD whose operands
27986 have been commuted in the analysis.
27987 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27989 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27991 * config/aarch64/aarch64.md
27992 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27993 shift value between 0-4.
27995 2013-05-07 Richard Biener <rguenther@suse.de>
27997 * double-int.h (rshift): New overload.
27998 * double-int.c (rshift): New function.
27999 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
28000 (create_reference_ops_from_ref): Remove.
28001 (vn_reference_insert): Use shared ops for constructing the
28002 reference and copy it.
28004 2013-05-07 Richard Biener <rguenther@suse.de>
28006 PR middle-end/57190
28007 * tree-eh.c (sink_clobbers): Properly propagate
28008 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
28010 2013-05-07 Jakub Jelinek <jakub@redhat.com>
28012 PR tree-optimization/57149
28013 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
28014 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
28015 collect_phi_def_edges, execute_late_warn_uninitialized): Use
28016 uninit_undefined_value_p instead of ssa_undefined_value_p.
28019 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
28020 for modifier == EXPAND_INITIALIZER.
28022 2013-05-07 Anton Blanchard <anton@samba.org>
28024 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
28025 for powerpc64 little endian.
28026 * configure: Regenerate.
28028 2013-05-06 Graham Stott <grahams@btinternet.com>
28030 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
28031 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
28032 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
28033 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
28035 2013-05-06 Graham Stott <grahams@btinternet.com>
28037 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
28038 codes which allow non-lvalues.
28040 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
28042 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
28043 components are all 1s.
28044 (integer_minus_onep): New function.
28045 * tree.h (integer_minus_onep): Declare it.
28046 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
28047 integer_minus_onep instead of integer_all_onesp.
28049 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28052 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
28053 variations of these patterns.
28055 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
28057 * config/i386/i386.md (isa): Add x64_sse4 member.
28058 (enabled): Handle x64_sse4.
28059 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
28060 instruction for 64bit SSE4_1 targets. Update insn attributes.
28061 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
28062 instruction for SSE4_1 targets. Update insn attributes.
28063 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28064 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
28065 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
28067 (*vec_extractv4si): Rename from *sse4_1_pextrd.
28068 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
28069 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
28071 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28074 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
28076 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
28078 * final.c (do_assembler_dialects): Don't handle curly braces and
28079 vertical bar escaped by % as dialect delimiters.
28080 (output_asm_insn): Print curly braces and vertical bar if escaped
28081 by % and ASSEMBLER_DIALECT defined.
28082 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
28083 * doc/tm.texi: Regenerated.
28085 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
28087 * config/mips/mips.c: Include tree-pass.h.
28088 (mips_reorg): Split in pre- and post-dbr_schedule parts.
28089 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
28090 (pass_mips_machine_reorg2): New machine specific pass.
28091 (insert_pass_mips_machine_reorg2): New pass plugin definition.
28092 (mips_option_override): Register the new pass.
28093 * rtl.h (cleanup_barriers): Remove prototype.
28094 (dbr_schedule): Likewise.
28095 * jump.c (cleanup_barriers): Make static.
28096 * reorg.c (dbr_schedule): Likewise.
28098 2013-05-06 Richard Biener <rguenther@suse.de>
28100 PR tree-optimization/57185
28101 * tree-parloops.c (add_field_for_reduction): Handle anonymous
28102 SSA names properly.
28104 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
28107 * config/i386/i386.c (add_parameter_dependencies): Add dependence
28108 between "first_arg" and "insn", not "last" and "insn".
28110 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28112 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
28113 (find_candidates_in_block): Re-enable slsr_process_phi.
28114 (create_phi_basis): Fix double counting of candidate adjustment.
28116 2013-05-06 Richard Biener <rguenther@suse.de>
28118 PR middle-end/57147
28119 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
28120 the edge is also fallthru, preserve it and just clear the
28122 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
28123 also complex, preserve that and just clear the fallthru flag.
28124 * tree-inline.c (update_ssa_across_abnormal_edges): Also
28125 update virtual operands.
28127 2013-05-06 Alan Modra <amodra@gmail.com>
28129 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
28130 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
28131 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
28132 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
28133 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
28134 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
28136 2013-05-06 Alan Modra <amodra@gmail.com>
28138 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
28139 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
28140 (DEFAULT_ASM_ENDIAN): Define.
28141 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
28142 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
28143 Update -K PIC clause from sysv4.h.
28144 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
28145 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
28147 2013-05-06 Alan Modra <amodra@gmail.com>
28149 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
28150 twice for little-endian.
28151 (ashrdi3_no_power, ashrdi3): Support little-endian.
28153 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28156 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
28157 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
28159 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
28160 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
28161 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
28164 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
28165 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28167 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
28168 * config/pa/pa.opt: Make mbig-switch a no-op.
28169 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
28170 (CASE_VECTOR_MODE): Always return SImode.
28171 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
28172 for the !TARGET_BIG_SWITCH case.
28173 * config/pa/pa-linux.h: Likewise.
28174 * config/pa/pa-openbsd.h: Likewise.
28175 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
28176 * config/pa/pa.md (short_jump): Remove define_insn.
28177 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
28178 (casesi0): Remove define_insn.
28179 (type): Remove btable_branch.
28180 (pa_combine_type): Likewise.
28181 (in_nullified_branch_delay): Likewise.
28182 (in_call_delay): Likewise.
28183 (define_delay): Likewise.
28184 (define_insn_reservation "Z3"): Likewise.
28185 (define_insn_reservation "Z4"): Likewise.
28186 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
28187 (pa_adjust_insn_length): Remove adjustment for btable branches.
28188 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
28191 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
28193 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28194 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
28195 Add m->r,x alternatives.
28196 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
28197 splitters using SWI48x mode iterator.
28198 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
28199 TARGET_64BIT. Add m->x alternative.
28200 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
28201 Add o->x alternative. Enable for TARGET_SSE.
28202 (sse_storeq): Remove expander.
28203 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
28204 with memory input operand.
28205 (*vec_extractv2di_1 splitter): New.
28206 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
28207 * config/i386/i386.md (ssevecmodelower): New mode attribute.
28209 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
28211 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
28212 (INT_LOWPART): Delete.
28213 (extract_MB): Adjust.
28214 (extract_ME): Adjust.
28215 (print_operand): Adjust.
28217 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
28219 * config/rs6000/predicates.md (reg_or_add_cint_operand,
28220 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28221 (reg_or_logical_cint_operand, easy_fp_constant,
28222 logical_const_operand): Delete "CONST_DOUBLE" case.
28223 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
28224 "HOST_BITS_PER_WIDE_INT == 64" test.
28225 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
28226 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
28227 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
28228 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
28230 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
28231 CONST_DOUBLE DImode/VOIDmode case.
28232 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
28233 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
28234 CONST_DOUBLE VOIDmode case.
28235 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28236 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
28237 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
28238 Delete CONST_DOUBLE case.
28239 (splitters for mov FMOVE64 const_double): Delete
28240 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
28241 "HOST_BITS_PER_WIDE_INT >= 64" test.
28242 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
28244 (mov DI const_double): Delete.
28246 2013-05-04 Jakub Jelinek <jakub@redhat.com>
28248 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
28249 on op shows all bits zero in mode of a lowpart subreg, return zero.
28251 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28254 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
28255 to save TFmode registers and DImode to save TImode registers for
28256 caller save operations.
28257 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
28258 mark being partially clobbered since they only use the first
28261 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
28262 and TDmode only use the upper 64-bits of each VSX register.
28264 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28266 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
28267 (find_candidates_in_block): Disable slsr_process_phi.
28269 2013-05-03 Guozhi Wei <carrot@google.com>
28271 * coverage.c (coverage_obj_init): Move the construction of gcov
28273 (build_init_ctor): ... here.
28275 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28277 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
28278 (slsr_cand_d): Redefine def_phi.
28279 (stride_status, phi_adjust_status, count_phis_status): New enums.
28280 (find_phi_def): New.
28281 (find_basis_for_base_expr): New.
28282 (find_basis_for_candidate): Handle hidden bases.
28283 (alloc_cand_and_find_basis): Handle phi candidates.
28284 (slsr_process_phi): New.
28285 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
28286 (create_mul_imm_cand): Likewise.
28287 (create_add_ssa_cand): Exclude phi base candidates.
28288 (create_add_imm_cand): Likewise.
28289 (slsr_process_cast): Likewise.
28290 (slsr_process_copy): Likewise.
28291 (find_candidates_in_block): Handle phi candidates.
28292 (dump_candidate): Likewise.
28293 (unconditional_cands): Delete.
28294 (unconditional_cands_with_known_stride_p): Delete.
28295 (phi_dependent_cand_p): New.
28296 (cand_increment): Handle phi-dependent candidates.
28297 (replace_dependent): Delete.
28298 (replace_mult_candidate): New.
28299 (replace_unconditional_candidate): New.
28300 (incr_vec_index): Move to avoid forward reference.
28301 (create_add_on_incoming_edge): New.
28302 (create_phi_basis): New.
28303 (replace_dependents): Delete.
28304 (replace_conditional_candidate): New.
28305 (phi_add_costs): New.
28306 (replace_uncond_cands_and_profitable_phis): New.
28307 (record_increment): Handle phi adjustments.
28308 (record_phi_increments): New.
28309 (record_increments): Handle phi adjustments.
28310 (phi_incr_cost): New.
28311 (lowest_cost_path): Handle phis.
28312 (total_savings): Likewise.
28313 (analyze_increments): Likewise.
28314 (ncd_with_phi): New.
28315 (ncd_of_cand_and_phis): New.
28316 (nearest_common_dominator_for_cands): Handle phi increments.
28317 (all_phi_incrs_profitable): New.
28318 (replace_profitable_candidates): Handle phi-dependent candidates.
28319 (analyze_candidates_and_replace): Likewise.
28321 2013-05-03 Teresa Johnson <tejohnson@google.com>
28324 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
28325 do not exceed REG_BR_PROB_BASE.
28327 2013-05-03 Jeff Law <law@redhat.com>
28329 PR tree-optimization/57144
28330 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
28331 operand of the condition will bit into the new type when eliminating
28332 a cast feeding a condition.
28334 2013-05-03 Jakub Jelinek <jakub@redhat.com>
28336 PR rtl-optimization/57130
28337 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
28338 of COMPARE as in_code to the recursive call if needed.
28340 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
28342 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
28343 (enabled): Handle new members.
28344 * config/i386/sse.md (*vec_concatv2si): Merge from
28345 *vec_concatv2si_sse2 and vec_concatv2si_sse.
28346 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
28348 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
28350 PR tree-optimization/57027
28351 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
28352 for fnms opportunity, check we got the prerequisite kind
28353 of tree / gimple before using accessor functions.
28355 2013-05-03 Richard Biener <rguenther@suse.de>
28357 * double-int.h (lshift): New overload without precision
28358 and arith argument.
28359 (operator *=, operator +=, operator -=): Move ...
28360 * double-int.c (operator *=, operator +=, operator -=): ... here
28361 and implement more efficiently.
28362 (mul_double_with_sign): Remove.
28363 (lshift_double): Adjust to take unsinged shift argument, push
28364 dispatching code to callers.
28365 (mul_double_wide_with_sign): Add early out for callers that
28366 are not interested in high parts or overflow.
28367 (lshift): New function.
28368 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
28369 dispatch code here.
28370 (lrotate, rrotate): Use logical shifts.
28371 * expr.c (get_inner_reference): Use lshift.
28372 * fixed-value.c (do_fixed_divide): Likewise.
28373 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28374 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28375 (indirect_refs_may_alias_p): Likewise.
28376 (stmt_kills_ref_p_1): Likewise.
28378 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28380 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28382 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28384 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28385 scalar form of FABD instruction.
28387 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
28389 * lra-constraints.c (process_alt_operands): Add checking alt
28390 number to choose the best alternative.
28392 2013-05-02 Richard Biener <rguenther@suse.de>
28394 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28395 bitmap and its handling.
28396 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28398 2013-05-02 Richard Biener <rguenther@suse.de>
28400 PR middle-end/57140
28401 * tree-inline.c (copy_loops): Properly handle removed loops.
28402 (copy_cfg_body): Mark destination loops for fixup if source
28403 loops needed fixup.
28405 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
28408 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28409 generating simple_return for naked functions.
28411 2013-05-02 Martin Jambor <mjambor@suse.cz>
28413 PR middle-end/56988
28414 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28415 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28417 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28418 ipa_agg_replacement_value structures.
28419 (known_aggs_to_agg_replacement_list): Likewise.
28420 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28421 (read_agg_replacement_chain): Likewise.
28422 (ipcp_transform_function): Also check that by_ref flags match.
28424 2013-05-02 Richard Biener <rguenther@suse.de>
28426 * graphds.h (struct graph): Add obstack member.
28427 * graphds.c (new_graph): Initialize obstack and allocate
28429 (add_edge): Allocate edge from the obstack.
28430 (free_graph): Free the obstack instead of all edges and vertices.
28432 2013-05-02 Teresa Johnson <tejohnson@google.com>
28434 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28436 * cfg.c (update_bb_profile_for_threading): Ditto.
28437 * tree-inline.c (copy_bb): Ditto.
28438 (copy_edges_for_bb): Ditto.
28439 (initialize_cfun): Ditto.
28440 (copy_cfg_body): Ditto.
28441 (expand_call_inline): Ditto.
28442 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28443 (estimate_node_size_and_time): Ditto.
28444 (inline_merge_summary): Ditto.
28445 * cgraphclones.c (cgraph_clone_edge): Ditto.
28446 (cgraph_clone_node): Ditto.
28447 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28448 (compute_trg_info): Ditto.
28450 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28452 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28453 S reg when fp attribute set.
28454 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28456 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28458 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28460 (*and_one_cmplsi3_compare0_uxtw): Likewise.
28461 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28462 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28464 2013-05-02 Richard Biener <rguenther@suse.de>
28466 * tree-scalar-evolution.c (scev_info_hasher): Remove.
28467 (struct instantiate_cache_entry): New type.
28468 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28469 (struct instantiate_cache_type): New type.
28470 (set_instantiated_value, get_instantiated_value): Remove.
28471 (get_instantiated_value_entry): New function.
28472 (instantiate_scev_name): Use the new cache and adjust.
28473 (instantiate_scev_poly): Adjust.
28474 (instantiate_scev_binary): Likewise.
28475 (instantiate_array_ref): Likewise.
28476 (instantiate_scev_convert): Likewise.
28477 (instantiate_scev_not): Likewise.
28478 (instantiate_scev_3): Likewise.
28479 (instantiate_scev_2): Likewise.
28480 (instantiate_scev_r): Likewise.
28481 (instantiate_scev): Likewise.
28482 (resolve_mixers): Likewise.
28484 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
28487 * lra-constraints.c (best_small_class_operands_num): Remove.
28488 (process_alt_operands): Remove small_class_operands_num. Take
28489 small classes operands into losers and only if the operand is not
28490 matched. Modify debugging output.
28491 (curr_insn_transform): Remove best_small_class_operands_num.
28494 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28496 * config/aarch64/aarch64-builtins.c
28497 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28498 * config/aarch64/aarch64-simd-builtins.def
28499 (reduc_splus_): Add new modes.
28500 (reduc_uplus_): New.
28501 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28502 (reduc_uplus_v4sf): Likewise.
28503 (reduc_splus_v4sf): Likewise.
28504 (aarch64_addv<mode>): Likewise.
28505 (reduc_uplus_<mode>): Likewise.
28506 (reduc_splus_<mode>): Likewise.
28507 (aarch64_addvv2di): Likewise.
28508 (reduc_uplus_v2di): Likewise.
28509 (reduc_splus_v2di): Likewise.
28510 (aarch64_addvv2si): Likewise.
28511 (reduc_uplus_v2si): Likewise.
28512 (reduc_splus_v2si): Likewise.
28513 (reduc_<sur>plus_<mode>): New.
28514 (reduc_<sur>plus_v2di): Likewise.
28515 (reduc_<sur>plus_v2si): Likewise.
28516 (reduc_<sur>plus_v4sf): Likewise.
28517 (aarch64_addpv4sf): Likewise.
28518 * config/aarch64/arm_neon.h
28519 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28520 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28521 add UNSPEC_SADDV, UNSPEC_UADDV.
28523 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28525 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28527 * config/aarch64/arm_neon.h
28528 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28530 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28532 * config/aarch64/aarch64-builtins
28533 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28535 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28537 * config/aarch64/aarch64-simd-builtins.def
28538 (reduc_smax_): New.
28539 (reduc_smin_): Likewise.
28540 (reduc_umax_): Likewise.
28541 (reduc_umin_): Likewise.
28542 (reduc_smax_nan_): Likewise.
28543 (reduc_smin_nan_): Likewise.
28546 (smax): Update for V2SF, V4SF and V2DF modes.
28549 (smin_nan): Likewise.
28550 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28551 (<su><maxmin><mode>3): ...This, refactor.
28552 (s<maxmin><mode>3): New.
28553 (<maxmin_uns><mode>3): Likewise.
28554 (reduc_<maxmin_uns>_<mode>): Refactor.
28555 (reduc_<maxmin_uns>_v4sf): Likewise.
28556 (reduc_<maxmin_uns>_v2si): Likewise.
28557 (aarch64_<fmaxmin><mode>: Remove.
28558 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28560 (vmin<q>_f<32,64>): Likewise.
28561 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28563 (su): Add mappings for smax, smin, umax, umin.
28565 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28566 (FMAXMIN): Rename as...
28567 (FMAXMIN_UNS): ...This.
28569 (fmaxminv): Likewise.
28570 (fmaxmin): Likewise.
28572 (maxmin_uns_op): Likewise.
28574 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28576 * config/aarch64/arm_neon.h
28577 (vac<ge, gt><sd>_f<32, 64>): Rename to...
28578 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28579 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28581 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28583 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28584 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28586 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28588 * config/aarch64/aarch64-simd.md
28589 (vcond<mode>_internal): Handle special cases for constant masks.
28590 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28591 (vcondu<mode><mode>): Likewise.
28592 (vcond<v_cmp_result><mode>): New.
28594 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28596 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28597 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28598 * config/aarch64/aarch64-simd-builtins.def
28599 (cmeq): Update to BUILTIN_VALLDI.
28604 * config/aarch64/arm_neon.h
28605 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28606 to builtins or C as appropriate.
28608 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28610 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28612 (cmhi): Rename to...
28614 * config/aarch64/aarch64-simd.md
28615 (simd_mode): Add SF.
28616 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28617 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28618 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28619 (cstore<mode>_neg): ...This.
28620 * config/aarch64/iterators.md
28622 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28623 (COMPARISONS): New.
28624 (UCOMPARISONS): Likewise.
28625 (optab): Add missing comparisons.
28631 (VCMP_S): Likewise.
28632 (VCMP_U): Likewise.
28633 (V_cmp_result): Add DF, SF modes.
28634 (v_cmp_result): Likewise.
28636 (vmtype): Likewise.
28637 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28639 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28641 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28642 define_insn to define_insn_and_split.
28643 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28644 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28645 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28646 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28647 (thumb2_negscc): Likewise.
28649 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28651 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28653 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28655 * config/arm/thumb2.md: Remove trailing whitespaces.
28657 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28659 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28660 Use gen_int_mode rather than GEN_INT.
28662 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28664 * value-prof.c (stream_in_histogram_value): Remove the strayed
28667 2013-04-30 Richard Biener <rguenther@suse.de>
28669 PR middle-end/57122
28670 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28672 2013-04-30 Richard Biener <rguenther@suse.de>
28674 PR middle-end/57107
28675 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28677 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28679 PR rtl-optimization/56957
28680 PR rtl-optimization/57105
28681 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28682 variable. Use just INSN_UID for determining whether an insn
28683 should be only disconnected from the insn stream.
28684 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28686 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28688 PR tree-optimization/57104
28689 * tsan.c (instrument_expr): Don't instrument accesses to
28690 DECL_HARD_REGISTER VAR_DECLs.
28692 2013-04-30 Richard Biener <rguenther@suse.de>
28694 * function.h (loops_for_fn): New inline function.
28695 (set_loops_for_fn): Likewise.
28696 * cfgloop.h (place_new_loop): Add struct function parameter.
28697 (get_loop): Likewise.
28698 (get_loops): Likewise.
28699 (number_of_loops): Likewise.
28700 (fel_next): Adjust.
28701 (fel_init): Likewise.
28702 * cfg.c (get_loop_copy): Adjust.
28703 * cfgloop.c (flow_loops_dump): Likewise.
28704 (record_loop_exits): Likewise.
28705 (verify_loop_structure): Likewise.
28706 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28707 (estimate_reg_pressure_cost): Likewise.
28708 (mark_loop_exit_edges): Likewise.
28709 * cfgloopmanip.c (place_new_loop): Likewise.
28710 (add_loop): Likewise.
28711 (duplicate_loop): Likewise.
28712 * graph.c (draw_cfg_nodes): Likewise.
28713 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28714 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28715 (extract_affine_chrec): Likewise.
28716 (build_scop_iteration_domain): Likewise.
28717 * graphite.c (graphite_initialize): Likewise.
28718 * ira-build.c (create_loop_tree_nodes): Likewise.
28719 (more_one_region_p): Likewise.
28720 (rebuild_regno_allocno_maps): Likewise.
28721 (mark_loops_for_removal): Likewise.
28722 (mark_all_loops_for_removal): Likewise.
28723 (remove_unnecessary_regions): Likewise.
28724 (ira_build): Likewise.
28725 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28726 * loop-init.c (fix_loop_structure): Likewise.
28727 (gate_rtl_move_loop_invariants): Likewise.
28728 (gate_rtl_unswitch): Likewise.
28729 (gate_rtl_unroll_and_peel_loops): Likewise.
28730 (rtl_doloop): Likewise.
28731 * lto-streamer-in.c (input_cfg): Likewise.
28732 * lto-streamer-out.c (output_cfg): Likewise.
28733 * modulo-sched.c (sms_schedule): Likewise.
28734 * predict.c (tree_estimate_probability): Likewise.
28735 (tree_estimate_probability_driver): Likewise.
28736 (estimate_loops): Likewise.
28737 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28738 (move_sese_region_to_fn): Likewise.
28739 (debug_loop_num): Likewise.
28740 * tree-chrec.c (chrec_evaluate): Likewise.
28741 (hide_evolution_in_other_loops_than_loop): Likewise.
28742 (chrec_component_in_loop_num): Likewise.
28743 (reset_evolution_in_loop): Likewise.
28744 (evolution_function_is_invariant_rec_p): Likewise.
28745 * tree-if-conv.c (main_tree_if_conversion): Likewise.
28746 * tree-inline.c (copy_loops): Likewise.
28747 (copy_cfg_body): Likewise.
28748 (tree_function_versioning): Likewise.
28749 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28750 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28752 (add_to_evolution_1): Likewise.
28753 (scev_const_prop): Likewise.
28754 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28755 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28756 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28757 (tree_ssa_lim_initialize): Likewise.
28758 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28759 (verify_loop_closed_ssa): Likewise.
28760 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
28761 (tree_ssa_loop_im): Likewise.
28762 (tree_ssa_loop_unswitch): Likewise.
28763 (tree_vectorize): Likewise.
28764 (check_data_deps): Likewise.
28765 (tree_ssa_loop_ivcanon): Likewise.
28766 (tree_ssa_loop_bounds): Likewise.
28767 (tree_complete_unroll): Likewise.
28768 (tree_complete_unroll_inner): Likewise.
28769 (tree_parallelize_loops): Likewise.
28770 (tree_ssa_loop_prefetch): Likewise.
28771 (tree_ssa_loop_ivopts): Likewise.
28772 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28773 * tree-vectorizer.c (vectorize_loops): Likewise.
28775 2013-04-29 Mike Frysinger <vapier@gentoo.org>
28777 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28778 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28779 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28780 with EABI_LINK_SPEC.
28782 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28785 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28788 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
28791 * lra-constraints.c (process_alt_operands): Discourage a bit more
28792 using memory for pseudos. Print cost dump for alternatives.
28793 Modify cost values for conflicts with early clobbers.
28794 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28796 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28799 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28801 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28803 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28804 from/to S register.
28805 (movdi_aarch64): Support LDR/STR from/to D register.
28807 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28809 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28810 or higher by default.
28812 2013-04-29 Richard Biener <rguenther@suse.de>
28814 PR middle-end/57075
28815 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28816 even if not adding abnormal edges for calls that can make
28819 2013-04-29 Richard Biener <rguenther@suse.de>
28821 PR middle-end/57103
28822 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28824 (move_stmt_r): Remove redundant checking.
28826 2013-04-29 Teresa Johnson <tejohnson@google.com>
28829 * basic-block.h (apply_scale): New function.
28830 (apply_probability): Use apply_scale.
28831 * gimple-streamer-in.c (input_bb): Ditto.
28832 * lto-streamer-in.c (input_cfg): Ditto.
28833 * lto-cgraph.c (merge_profile_summaries): Ditto.
28834 * tree-optimize.c (execute_fixup_cfg): Ditto.
28835 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28836 (copy_edges_for_bb): Ditto.
28837 (copy_cfg_body): Ditto.
28839 2013-04-29 Tom de Vries <tom@codesourcery.com>
28841 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28842 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28843 (tail_merge_optimize): Handle current_loops == NULL.
28845 2013-04-26 Jeff Law <law@redhat.com>
28847 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28848 (simplify_cond_using_ranges): Generalize code to simplify
28849 COND_EXPRs where one argument is a constant and the other
28850 is an SSA_NAME created by an integral type conversion.
28852 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28854 * config/arm/arm.md (store_minmaxsi): Use only when
28855 optimize_insn_for_size_p.
28857 2013-04-29 Christian Bruel <christian.bruel@st.com>
28860 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28862 2013-04-29 Richard Biener <rguenther@suse.de>
28864 PR middle-end/57089
28865 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28866 loop tree make sure to schedule a fixup for the child as well.
28867 (expand_omp_for_generic): Properly add loops.
28868 (expand_omp_for_static_nochunk): Likewise.
28869 (expand_omp_for_static_chunk): Likewise.
28870 (expand_omp_for): For the degenerate case fixup loops.
28871 (expand_omp_sections): Fix default bb placement in loops.
28872 (expand_omp_atomic_pipeline): Properly add loops.
28874 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28876 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28878 2013-04-29 Tom de Vries <tom@codesourcery.com>
28880 * tree-ssa-tail-merge.c: Update header comment.
28882 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28884 * config/aarch64/arm_neon.h
28885 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28886 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28887 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28888 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28889 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28890 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28891 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28892 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28894 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28896 * config/aarch64/aarch64-simd.md
28897 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28898 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28899 fix_trunc, fixuns_trunc.
28900 (ftrunc<VDQF:mode>2): New.
28901 * config/aarch64/iterators.md (optab): Add fix, fixuns.
28902 (fix_trunc_optab): New.
28904 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28906 * config/aarch64/aarch64-builtins.c
28907 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28908 iceilf, lround, iroundf.
28910 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28913 * config/i386/i386.h (enum ix86_tune_indices)
28914 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28915 New, split from X86_TUNE_INTER_UNIT_MOVES.
28916 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28917 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28918 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28919 (TARGET_INTER_UNIT_MOVES): Remove.
28920 * config/i386/i386.c (initial_ix86_tune_features): Update.
28921 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28922 (ix86_expand_convert_uns_didf_sse): Use
28923 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28924 (ix86_expand_vector_init_one_nonzero): Ditto.
28925 (ix86_expand_vector_init_interleave): Ditto.
28926 (inline_secondary_memory_needed): Return true for moves from SSE class
28927 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28928 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28929 * config/i386/constraints.md (Yi, Ym): Depend on
28930 TARGET_INTER_UNIT_MOVES_TO_VEC.
28931 (Yj, Yn): New constraints.
28932 * config/i386/i386.md (*movdi_internal): Change constraints of
28933 operand 1 from Yi to Yj and from Ym to Yn.
28934 (*movsi_internal): Ditto.
28935 (*movdf_internal): Ditto.
28936 (*movsf_internal): Ditto.
28937 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28938 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28939 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28940 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28941 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28942 * config/i386/sse.md (movdi_to_sse): Ditto.
28943 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28944 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28945 TARGET_INTER_UNIT_MOVES.
28946 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28947 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28948 instead of TARGET_INTER_UNIT_MOVES.
28949 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28950 operand 1 from Yi to Yj and from Ym to Yn.
28952 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28954 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28955 (float_truncate_hi_): Likewise.
28956 (float_extend_lo_): Likewise.
28957 (float_truncate_lo_): Likewise.
28958 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28959 (aarch64_float_extend_lo_v2df): Likewise.
28960 (vec_unpacks_hi_v4sf): Likewise.
28961 (aarch64_float_truncate_lo_v2sf): Likewise.
28962 (aarch64_float_truncate_hi_v4sf): Likewise.
28963 (vec_pack_trunc_v2df): Likewise.
28964 (vec_pack_trunc_df): Likewise.
28966 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28968 * config/aarch64/aarch64-builtins.c
28969 (aarch64_fold_builtin): Fold float conversions.
28970 * config/aarch64/aarch64-simd-builtins.def
28971 (floatv2si, floatv4si, floatv2di): New.
28972 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28973 * config/aarch64/aarch64-simd.md
28974 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28975 * config/aarch64/iterators.md (FLOATUORS): New.
28976 (optab): Add float, floatuns.
28977 (su_optab): Likewise.
28979 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28981 * config/aarch64/aarch64-builtins.c
28982 (aarch64_builtin_vectorized_function): Use new names for
28984 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28985 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28986 (fcvtzu): Split as...
28987 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28988 (fcvtas): Split as...
28989 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28990 (fcvtau): Split as...
28991 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28992 (fcvtps): Split as...
28993 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28994 (fcvtpu): Split as...
28995 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28996 (fcvtms): Split as...
28997 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28998 (fcvtmu): Split as...
28999 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
29000 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
29001 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
29002 (lfrintnusf, lfrintnudf): Likewise.
29003 * config/aarch64/aarch64-simd.md
29004 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
29006 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
29007 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
29008 (fcvt_pattern): Likewise.
29010 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29012 * config/aarch64/aarch64-simd.md
29013 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
29014 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
29016 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29018 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
29019 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
29020 (vrnd<a,m,n,p>_f32): Implement using builtins.
29021 (vrnd<i,x><q>_f<32, 64>): New.
29023 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29025 * config/aarch64/aarch64-builtins.c
29026 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
29027 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
29028 (frintz): Rename to...
29030 (frintp): Rename to...
29032 (frintm): Rename to...
29034 (frinti): Rename to...
29035 (nearbyint): ...this.
29036 (frintx): Rename to...
29038 (frinta): Rename to...
29040 * config/aarch64/aarch64-simd.md
29041 (aarch64_frint<frint_suffix><mode>): Delete.
29042 (<frint_pattern><mode>2): Convert to insn.
29043 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
29044 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
29045 (frint_pattern): Likewise.
29046 (frint_suffix): Likewise.
29048 2013-04-29 Richard Biener <rguenther@suse.de>
29050 PR tree-optimization/57081
29051 * loop-init.c: Include tree-flow.h.
29052 (loop_optimizer_finalize): Free number of iteration estimates.
29053 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
29055 2013-04-29 Jakub Jelinek <jakub@redhat.com>
29057 PR tree-optimization/57083
29058 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
29059 non-singleton shift count range, zero extend low_bound for uns case.
29061 * config/i386/predicates.md (general_vector_operand): New predicate.
29062 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
29063 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
29064 if they aren't nonimmediate operands. If their original values
29065 satisfy const_vector_equal_evenodd_p, don't shift them.
29066 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
29067 predicates. For the SSE4.1 case force operands[{1,2}] into registers
29068 if not nonimmediate_operand.
29069 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
29070 instead of register_operand.
29071 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
29073 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
29075 * stor-layout.c (finalize_size_functions): Allocate a structure and
29076 reset cfun before dumping the functions.
29078 2013-04-27 Jakub Jelinek <jakub@redhat.com>
29080 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
29083 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
29084 use xop_pmacsdqh if uns_p.
29085 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
29086 the immediate rotate count.
29088 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
29090 * rtl.h (struct rtx_def): Add comment for field jump.
29091 (LRA_SUBREG_P): New macro.
29092 * recog.c (register_operand): Check LRA_SUBREG_P.
29093 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29095 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29096 (lra_final_code_change): Skip subreg change for operators.
29097 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29098 if there are no operand changes.
29099 * lra-constraints.c (curr_insn_set): New.
29100 (match_reload): Set LRA_SUBREG_P.
29101 (emit_spill_move): Ditto.
29102 (check_and_process_move): Use curr_insn_set. Process only single
29103 set insns. Don't initialize sec_mem_p and change_p.
29104 (simplify_operand_subreg): Use LRA_SUBREG_P.
29105 (reg_in_class_p): New function.
29106 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29107 of #ifdef. Add code to remove cycling.
29108 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29109 non-null disp. Reload inner instead of disp when base and index
29110 are null. Try to put lo_sum into register.
29111 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29112 (check_and_process_move): Move code for move cost check to
29113 simple_move_p. Remove equiv_substitution.
29114 (simple_move_p): New function.
29115 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29116 curr_insn_set. Call check_and_process_move only for single set
29117 insns. Use the new function. Move call of check_and_process_move
29118 after operand equiv substitution and address process.
29120 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29123 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
29124 with nonlocal goto receivers or returns twice calls, ignore
29125 unininitialized values from abnormal edges to nl goto receiver
29126 or returns twice call.
29128 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29130 PR tree-optimization/57051
29131 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
29132 and VEC_RSHIFT_EXPR if shift count is a multiple of element
29135 2013-04-26 Richard Biener <rguenther@suse.de>
29137 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
29138 (expand_omp_taskreg): Likewise. Mark loops for fixup.
29139 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
29140 (fixup_loop_arrays_after_move): New function.
29141 (move_sese_region_to_fn): Properly outline the loop tree parts
29142 of the SESE region.
29144 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
29146 * config/i386/i386.md (type, unit): Fix long lines.
29148 2013-04-26 Richard Biener <rguenther@suse.de>
29150 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
29151 (lto-streamer-out.o): Likewise.
29152 * cfgloop.c (init_loops_structure): Export, add struct function
29153 argument and adjust.
29154 (flow_loops_find): Adjust.
29155 * cfgloop.h (enum loop_estimation): Add EST_LAST.
29156 (init_loops_structure): Declare.
29157 * lto-streamer-in.c: Include cfgloop.h.
29158 (input_cfg): Input the loop tree.
29159 * lto-streamer-out.c: Include cfgloop.h.
29160 (output_cfg): Output the loop tree.
29161 (output_struct_function_base): Do not drop PROP_loops.
29163 2013-03-26 Richard Biener <rguenther@suse.de>
29165 * tree-cfg.c (execute_build_cfg): Build the loop tree.
29166 (pass_build_cfg): Provide PROP_loops.
29167 (move_sese_region_to_fn): Remove loops that are outlined into fn
29169 * tree-inline.c: Include cfgloop.h.
29170 (initialize_cfun): Do not drop PROP_loops.
29171 (copy_loops): New function.
29172 (copy_cfg_body): Copy loop structure.
29173 (tree_function_versioning): Initialize destination loop tree.
29174 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
29175 (pass_parallelize_loops): Do IL verification.
29176 * loop-init.c (loop_optimizer_init): Fixup loops if required.
29177 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
29178 the CFG make sure we fixup loops as well.
29179 * tree-ssa-tail-merge.c: Include cfgloop.h.
29180 (replace_block_by): When merging loop latches mark loops for fixup.
29181 * lto-streamer-out.c (output_struct_function_base): Drop
29182 PROP_loops for now.
29183 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
29184 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
29185 * ipa-split.c: Include cfgloop.h.
29186 (split_function): Add the new return block to the loop tree root.
29187 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
29188 whether we have removed the forwarder block.
29189 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
29190 * cfgloop.h (place_new_loop): Declare.
29191 * cfgloopmanip.c (place_new_loop): Export.
29192 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
29193 (tree-switch-conversion.o): Likewise.
29194 (tree-complex.o): Likewise.
29195 (tree-inline.o): Likewise.
29196 (tree-ssa-tailmerge.o): Likewise.
29197 (ipa-split.o): Likewise.
29198 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
29199 (tree-ssa-copy.o): Likewise.
29200 * tree-switch-conversion.c: Include cfgloop.h
29201 (process_switch): If we emit a bit-test cascade, schedule loops
29203 * tree-complex.c: Include cfgloop.h.
29204 (expand_complex_div_wide): Properly add new basic-blocks to loops.
29205 * asan.c: Include cfgloop.h.
29206 (create_cond_insert_point): Properly add new basic-blocks to
29207 loops, schedule loop fixup.
29208 * cfgloop.c (verify_loop_structure): Check that looks are not
29210 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
29212 (expand_omp_for_generic): Likewise.
29213 (expand_omp_sections): Likewise.
29214 (expand_omp_atomic_pipeline): Schedule loops for fixup.
29215 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
29216 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
29217 is initialized, not when loops are present.
29218 * tree-parloops.c (parallelize_loops): Remove checking here.
29219 * passes.c (init_optimization_passes): Schedule a copy-propagation
29220 pass before complete unrolling of inner loops.
29222 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29224 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
29225 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
29226 (colorize_init): Add argument to _WIN32 version.
29227 * toplev.c: Include diagnostic-color.h.
29228 (process_options): Default to -fdiagnostics-color=auto if
29229 GCC_COLORS env var is in the environment.
29230 * common.opt (fdiagnostics-color=): Add Var and Init.
29231 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
29232 env var is in the environment, the default is auto rather than never.
29234 * diagnostic.h (file_name_as_prefix): Add context argument.
29235 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
29236 the string as locus.
29237 * langhooks.c (lhd_print_error_function): Adjust caller.
29239 2013-04-25 Lawrence Crowl <crowl@google.com>
29241 * var-tracking.c (shared_hash_def::htab):
29242 Change type to hash_table. Update dependent calls and types.
29244 2013-04-25 Lawrence Crowl <crowl@google.com>
29246 * Makefile.in: Update as needed below.
29248 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
29249 Move declaration to after the type's method definitons.
29251 * attribs.c (htab_t scoped_attributes::attribute_hash):
29252 Change type to hash_table. Update dependent calls and types.
29254 * bitmap.c (htab_t bitmap_desc_hash):
29255 Change type to hash_table. Update dependent calls and types.
29257 * cselib.c (htab_t cselib_hash_table):
29258 Change type to hash_table. Update dependent calls and types.
29260 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
29261 (hash_string_slot_node): Move implementation into lto-streamer.h
29262 struct string_slot_hasher.
29263 (eq_string_slot_node): Likewise.
29265 * data-streamer-out.c: Update output_block::string_hash_table
29266 dependent calls and types.
29268 * dwarf2cfi.c (htab_t trace_index):
29269 Change type to hash_table. Update dependent calls and types.
29271 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
29272 Change type to hash_table. Update dependent calls and types.
29273 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
29274 (htab_t optimize_external_refs::map): Likewise.
29275 (htab_t output_comp_unit::extern_map): Likewise.
29276 (htab_t output_comdat_type_unit::extern_map): Likewise.
29277 (htab_t output_macinfo::macinfo_htab): Likewise.
29278 (htab_t optimize_location_lists::htab): Likewise.
29279 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
29281 * except.c (htab_t ehspec_hash_type):
29282 Change type to hash_table. Update dependent calls and types.
29283 (assign_filter_values::ttypes): Likewise.
29284 (assign_filter_values::ehspec): Likewise.
29285 (sjlj_assign_call_site_values::ar_hash): Likewise.
29286 (convert_to_eh_region_ranges::ar_hash): Likewise.
29288 * gcse.c (htab_t pre_ldst_table):
29289 Change type to hash_table. Update dependent calls and types.
29291 * ggc-common.c (htab_t saving_htab):
29292 Change type to hash_table. Update dependent calls and types.
29293 (htab_t loc_hash): Likewise.
29294 (htab_t ptr_hash): Likewise.
29295 (call_count): Rename ggc_call_count.
29296 (call_alloc): Rename ggc_call_alloc.
29297 (loc_descriptor): Rename make_loc_descriptor.
29298 (add_statistics): Rename ggc_add_statistics.
29300 * ggc-common.c (saving_htab):
29301 Change type to hash_table. Update dependent calls and types.
29303 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
29304 (push_gimplify_context): Likewise.
29305 (pop_gimplify_context): Likewise.
29306 (struct gimple_temp_hash_elt): Added.
29307 (struct gimplify_hasher): Likewise.
29308 (struct gimplify_ctx.temp_htab):
29309 Change type to hash_table. Update dependent calls and types.
29311 * gimple-fold.c: Include gimplify-ctx.h.
29313 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
29314 Change type to hash_table. Update dependent calls and types.
29315 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
29316 avoid potential global name collision.
29318 * gimplify.c: Include gimplify-ctx.h.
29319 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
29320 (htab_t gimplify_ctx::temp_htab):
29321 Update dependent calls and types for new type hash_table.
29322 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
29323 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
29325 * gimplify-ctx.h: New.
29326 (struct gimple_temp_hash_elt): Move from gimplify.c.
29327 (class gimplify_hasher): New.
29328 (struct gimplify_ctx): Move from gimple.h.
29329 (htab_t gimplify_ctx::temp_htab):
29330 Change type to hash_table. Update dependent calls and types.
29332 * graphite-clast-to-gimple.c: Include graphite-htab.h.
29333 (htab_t ivs_params::newivs_index):
29334 Change type to hash_table. Update dependent calls and types.
29335 (htab_t ivs_params::params_index): Likewise.
29336 (htab_t print_generated_program::params_index): Likewise.
29337 (htab_t gloog::newivs_index): Likewise.
29338 (htab_t gloog::params_index): Likewise.
29340 * graphite.c: Include graphite-htab.h.
29341 4htab_t graphite_transform_loops::bb_pbb_mapping):
29342 Change type to hash_table. Update dependent calls and types.
29344 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
29345 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
29346 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
29348 * graphite-dependences.c: Include graphite-htab.h.
29349 (loop_is_parallel_p): Change hash table type of parameter.
29351 * graphite-htab.h: New.
29352 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
29353 (extern find_pbb_via_hash): Move from graphite-poly.h.
29354 (extern loop_is_parallel_p): Move from graphite-poly.h.
29355 (extern get_loop_body_pbbs): Move from graphite-poly.h.
29357 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
29358 (extern loop_is_parallel_p): Move to graphite-htab.h.
29359 (extern get_loop_body_pbbs): Move to graphite-htab.h.
29361 * haifa-sched.c (htab_t delay_htab):
29362 Change type to hash_table. Update dependent calls and types.
29363 (htab_t delay_htab_i2): Likewise.
29365 * ira-color.c (htab_t allocno_hard_regs_htab):
29366 Change type to hash_table. Update dependent calls and types.
29368 * ira-costs.c (htab_t cost_classes_htab):
29369 Change type to hash_table. Update dependent calls and types.
29371 * loop-invariant.c (htab_t merge_identical_invariants::eq):
29372 Change type to hash_table. Update dependent calls and types.
29374 * loop-iv.c (htab_t bivs):
29375 Change type to hash_table. Update dependent calls and types.
29377 * loop-unroll.c (htab_t opt_info::insns_to_split):
29378 Change type to hash_table. Update dependent calls and types.
29379 (htab_t opt_info::insns_with_var_to_expand): Likewise.
29381 * lto-streamer.h (struct string_slot): Move from data-streamer.h
29382 (struct string_slot_hasher): New.
29383 (htab_t output_block::string_hash_table):
29384 Change type to hash_table. Update dependent calls and types.
29386 * lto-streamer-in.c (freeing_string_slot_hasher): New.
29387 (htab_t file_name_hash_table):
29388 Change type to hash_table. Update dependent calls and types.
29390 * lto-streamer-out.c: Update output_block::string_hash_table dependent
29393 * lto-streamer.c (htab_t tree_htab):
29394 Change type to hash_table. Update dependent calls and types.
29396 * omp-low.c: Include gimplify-ctx.h.
29398 * passes.c (htab_t name_to_pass_map):
29399 Change type to hash_table. Update dependent calls and types.
29400 (pass_traverse): Rename to passes_pass_traverse.
29402 * plugin.c (htab_t event_tab):
29403 Change type to hash_table. Update dependent calls and types.
29405 * postreload-gcse.c (htab_t expr_table):
29406 Change type to hash_table. Update dependent calls and types.
29407 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29409 * sese.c (debug_rename_map_1): Make extern.
29410 (htab_t copy_bb_and_scalar_dependences::rename_map):
29411 Change type to hash_table. Update dependent calls and types.
29413 * sese.h (extern debug_rename_map): Move to .c file.
29415 * store-motion.c (htab_t store_motion_mems_table):
29416 Change type to hash_table. Update dependent calls and types.
29418 * trans-mem.c (htab_t tm_new_mem_hash):
29419 Change type to hash_table. Update dependent calls and types.
29421 * tree-browser.c (htab_t TB_up_ht):
29422 Change type to hash_table. Update dependent calls and types.
29424 * tree-cfg.c (htab_t discriminator_per_locus):
29425 Change type to hash_table. Update dependent calls and types.
29427 * tree-complex.c: Include tree-hasher.h
29428 (htab_t complex_variable_components):
29429 Change type to hash_table. Update dependent calls and types.
29431 * tree-eh.c (htab_t finally_tree):
29432 Change type to hash_table. Update dependent calls and types.
29434 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29435 struct int_tree_hasher.
29436 (extern int_tree_map_eq): Likewise.
29437 (uid_decl_map_hash): Removed.
29438 (extern decl_tree_map_eq): Likewise.
29440 * tree-hasher.h: New.
29441 (struct int_tree_hasher): New.
29442 (typedef int_tree_htab_type): New.
29444 * tree-inline.c: Include gimplify-ctx.h.
29446 * tree-mudflap.c: Include gimplify-ctx.h.
29448 * tree-parloops.c: Include tree-hasher.h.
29449 (htab_t eliminate_local_variables_stmt::decl_address):
29450 Change type to hash_table. Update dependent calls and types.
29451 (htab_t separate_decls_in_region::decl_copies): Likewise.
29453 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29454 Change type to hash_table. Update dependent calls and types.
29456 * tree-sra.c (candidates):
29457 Change type to hash_table. Update dependent calls and types.
29459 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29461 (int_tree_map_hash): Likewise.
29463 * tree-ssa-dom.c (htab_t avail_exprs):
29464 Change type to hash_table. Update dependent calls and types.
29466 * tree-ssa-live.c (var_map_base_init::tree_to_index):
29467 Change type to hash_table. Update dependent calls and types.
29469 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29470 Change type to hash_table. Update dependent calls and types.
29472 * tree-ssa-phiopt.c (seen_ssa_names):
29473 Change type to hash_table. Update dependent calls and types.
29475 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29476 Change type to hash_table. Update dependent calls and types.
29478 * tree-ssa-uncprop.c (equiv):
29479 Change type to hash_table. Update dependent calls and types.
29481 2013-04-25 Jakub Jelinek <jakub@redhat.com>
29483 PR rtl-optimization/57003
29484 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29485 call note_stores with kill_clobbered_value callback again after
29486 killing regs_invalidated_by_call.
29488 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29490 * config/aarch64/aarch64-simd.md
29491 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29492 (aarch64_simd_bsl<mode>): Likewise.
29493 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29495 2013-04-25 Marek Polacek <polacek@redhat.com>
29497 PR tree-optimization/57066
29498 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29500 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29502 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29504 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29506 * config/aarch64/aarch64-builtins.c
29507 (aarch64_fold_builtin): New.
29508 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29509 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29510 * config/aarch64/aarch64-simd-builtins.def (abs): New.
29511 * config/aarch64/arm_neon.h
29512 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29514 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29515 Tejas Belagod <tejas.belagod@arm.com>
29517 * config/aarch64/aarch64-builtins.c
29518 (aarch64_gimple_fold_builtin): New.
29519 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29520 * config/aarch64/aarch64-simd-builtins.def (addv): New.
29521 * config/aarch64/aarch64-simd.md (addpv4sf): New.
29522 (addvv4sf): Update.
29523 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29525 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29527 * config/aarch64/aarch64.md
29528 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29530 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29532 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29533 (*ngcsi_uxtw): New pattern.
29535 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29536 Julian Brown <julian@codesourcery.com>
29538 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29539 (TB_DREG): Add T_V4HF.
29540 (v4hf_UP): New macro.
29541 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29542 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29543 Handle initialisation of V4HF. Adjust initialisation of reinterpret
29545 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29546 (arm_vector_mode_supported_p): Handle V4HF.
29547 (arm_mangle_map): Handle V4HFmode.
29548 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29549 * config/arm/arm_neon_builtins.def: Add entries for
29550 vcvtv4hfv4sf, vcvtv4sfv4hf.
29551 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29552 (neon_vcvtv4hfv4sf): Likewise.
29553 * config/arm/neon-gen.ml: Handle half-precision floating point
29555 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29556 * config/arm/arm_neon.h: Regenerate.
29557 * config/arm/neon.ml (type elts): Add F16.
29558 (type vectype): Add T_float16x4, T_floatHF.
29559 (type vecmode): Add V4HF.
29560 (type features): Add Requires_FP_bit feature.
29561 (elt_width): Handle F16.
29562 (elt_class): Likewise.
29563 (elt_of_class_width): Likewise.
29564 (mode_of_elt): Refactor.
29565 (type_for_elt): Handle F16, fix error messages.
29566 (vectype_size): Handle T_float16x4.
29567 (vcvt_sh): New function.
29568 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29569 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29570 (string_of_mode): Handle V4HF.
29571 * doc/arm-neon-intrinsics.texi: Regenerate.
29573 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29575 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29576 format specifier in 'X' case.
29578 2013-04-25 Alan Modra <amodra@gmail.com>
29581 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29582 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29583 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29584 Repeat for many other rotate/shift and mask patterns using subregs.
29585 Name lshiftrt insns.
29586 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29587 on WORDS_BIG_ENDIAN.
29589 2013-04-25 Alan Modra <amodra@gmail.com>
29591 * config.gcc: Support little-endian powerpc-linux targets.
29592 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29593 (LINK_OS_LINUX_SPEC): Define.
29594 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29595 Preserve MASK_LITTLE_ENDIAN.
29596 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29597 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29598 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29599 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29600 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29601 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29602 Correct fp word order for little-endian. Don't shift toc entries
29603 smaller than a word for little-endian.
29604 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29605 (bswapdi2 splits): Correct low-part subreg for little-endian.
29606 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29607 low/high where such is correct only for be.
29608 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29609 little-endian for -mcall-aixdesc.
29611 2013-04-25 Alan Modra <amodra@gmail.com>
29613 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29614 replace_equiv_address_nv.
29616 2013-04-25 Alan Modra <amodra@gmail.com>
29618 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29620 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29623 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29624 * rtl.h (struct rtx_def): ...
29626 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29628 PR rtl-optimizations/57046
29629 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29630 for multi-reg splits.
29632 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29634 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29636 2013-04-24 Sterling Augustine <saugustine@google.com>
29638 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29639 (comp_dir_string, debug_str_dwo_section): New.
29640 (DEBUG_STR_DWO_SECTION): Rename to ...
29641 (DEBUG_DWO_STR_SECTION): ... this.
29642 (DEBUG_NORM_STR_SECTION): Delete.
29643 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29644 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29645 (find_AT_string): Move most logic to ...
29646 (find_AT_string_in_table): ... here. New.
29647 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29648 add_skeleton_AT_string. Delete logic.
29649 (output_skeleton_debug_sections): Remove call to
29650 add_top_level_skeleton_die_attrs.
29651 (add_comp_dir_attribute): Move logic to comp_dir_string.
29652 (dwarf2out_init): Initialize debug_str_dwo_section.
29653 (output_indirect_string): Call find_string_form.
29654 (output_indirect_strings): Rewrite.
29655 (prune_unused_types): Empty skeleton_debug_str_hash.
29656 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29657 (dwarf2out_finish): Call output_indirect_strings.
29659 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29661 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29663 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29665 * rtl.h (struct rtx_def): Add comment for field jump.
29666 (LRA_SUBREG_P): New macro.
29667 * recog.c (register_operand): Check LRA_SUBREG_P.
29668 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29670 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29671 (lra_final_code_change): Skip subreg change for operators.
29672 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29673 if there are no operand changes.
29674 * lra-constraints.c (curr_insn_set): New.
29675 (match_reload): Set LRA_SUBREG_P.
29676 (emit_spill_move): Ditto.
29677 (check_and_process_move): Use curr_insn_set. Process only single
29678 set insns. Don't initialize sec_mem_p and change_p.
29679 (simplify_operand_subreg): Use LRA_SUBREG_P.
29680 (reg_in_class_p): New function.
29681 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29682 of #ifdef. Add code to remove cycling.
29683 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29684 non-null disp. Reload inner instead of disp when base and index
29685 are null. Try to put lo_sum into register.
29686 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29687 (check_and_process_move): Move code for move cost check to
29688 simple_move_p. Remove equiv_substitution.
29689 (simple_move_p): New function.
29690 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29691 curr_insn_set. Call check_and_process_move only for single set
29692 insns. Use the new function. Move call of check_and_process_move
29693 after operand equiv substitution and address process.
29695 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29697 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29698 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29699 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29701 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29703 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29705 2013-04-24 Marek Polacek <polacek@redhat.com>
29707 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29708 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29709 (select_loops_exit_conditions): Likewise.
29710 (number_of_iterations_for_all_loops): Likewise.
29711 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29712 (scev_analysis): Likewise.
29714 2013-04-02 Catherine Moore <clm@codesourcery.com>
29715 Chao-ying Fu <fu@mips.com>
29717 * config/mips/micromips.md (jraddiusp): New pattern.
29718 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29719 instruction if possible.
29721 2013-04-24 Alan Modra <amodra@gmail.com>
29723 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29725 2013-04-24 Julian Brown <julian@codesourcery.com>
29726 Chung-Lin Tang <cltang@codesourcery.com>
29728 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29729 dependency behavior in enumeration type DIE generation. Add TODO note
29730 to comments about future DW_FORM_sdata/udata re-work of related code.
29732 2013-04-23 Lawrence Crowl <crowl@google.com>
29734 * Makefile.in: Update as needed below.
29736 * hash-table.h (class hash_table):
29737 Correct many methods with parameter types compare_type to the correct
29738 value_type. (Correct code was unlikely to notice the change.)
29739 (hash_table::elements_with_deleted) New.
29740 (class hashtable::iterator): New.
29741 (hashtable::begin()): New.
29742 (hashtable::end()): New.
29743 (FOR_EACH_HASH_TABLE_ELEMENT): New.
29745 * statistics.c (statistics_hashes):
29746 Change type to hash_table. Update dependent calls and types.
29748 * tree-into-ssa.c (var_infos):
29749 Change type to hash_table. Update dependent calls and types.
29751 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29752 Change type to hash_table. Update dependent calls and types.
29754 * tree-ssa-loop-im.c (struct mem_ref.refs):
29755 Change type to hash_table. Update dependent calls and types.
29757 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29758 Change type to hash_table. Update dependent calls and types.
29760 * tree-ssa-sccvn.c (vn_tables_s::nary):
29761 Change type to hash_table. Update dependent calls and types.
29762 (vn_tables_s::phis): Likewise.
29763 (vn_tables_s::references): Likewise.
29765 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29766 (vn_reference_eq): Update parameter and return types.
29768 * tree-ssa-structalias.c (pointer_equiv_class_table):
29769 Change type to hash_table. Update dependent calls and types.
29770 (location_equiv_class_table): Likewise.
29772 * tree-vect-data-refs.c: Consequential changes for making
29773 peeling a hash_table.
29775 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29776 (destroy_loop_vec_info): Dependent hash_table update.
29778 * tree-vectorizer.h (peeling_htab):
29779 Change type to hash_table. Update dependent calls and types.
29781 2013-04-23 Shiva Chen <shiva0217@gmail.com>
29783 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29784 to check the register content is equal or not.
29785 * lra-constraints.c (match_reload): Use lra_assign_reg_val
29786 to assign register content record.
29787 * lra-eliminations.c (update_reg_eliminate): Use
29788 lra_update_reg_val_offset to update register content offset.
29789 * lra-int.h (struct lra_reg): Add offset member.
29790 (lra_reg_val_equal_p): New static inline function.
29791 (lra_update_reg_val_offset): New static inline function.
29792 (lra_assign_reg_val): New static inline function.
29793 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29794 to assign register content record.
29795 (initialize_lra_reg_info_element): Initial offset to zero.
29797 2013-04-23 Catherine Moore <clm@codesourcery.com>
29799 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29800 operands. Record compression.
29802 2013-04-23 Xinliang David Li <davidxl@google.com>
29804 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29806 2013-04-23 Richard Biener <rguenther@suse.de>
29808 PR middle-end/57036
29809 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29810 parameter, only add abnormal goto edges from the copied body
29811 if the call could perform abnormal gotos.
29812 (copy_cfg_body): Adjust.
29814 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29816 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29818 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29820 * coretypes.h (gimple_stmt_iterator): Add struct to make
29823 2013-04-23 Richard Biener <rguenther@suse.de>
29825 PR tree-optimization/57026
29826 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29827 from SSA names occuring in abnormal PHI nodes.
29829 2013-04-22 Andi Kleen <ak@linux.intel.com>
29831 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29833 2013-04-22 Andi Kleen <ak@linux.intel.com>
29835 * lto/lto.c (print_lto_report_1): Declare early.
29836 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29838 2013-04-22 Andi Kleen <ak@linux.intel.com>
29840 * common.opt (-flto-report-wpa): Add.
29841 * doc/invoke.texi (-flto-report-wpa): Add.
29842 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29845 2013-04-22 Xinliang David Li <davidxl@google.com>
29847 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29848 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29849 * Makefile.in: New dependency
29851 David Daney <ddaney.cavm@gmail.com>
29853 * configure.ac (gcc_cv_as_micromips_support): Use the
29854 --fatal-warnings option.
29855 * configure: Regenerate.
29857 2013-04-22 Marek Polacek <polacek@redhat.com>
29860 * tsan.c (instrument_expr): Don't instrument expression
29861 in case its size is zero.
29863 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29867 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29869 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29871 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29873 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29874 (gimple_stmt_iterator): New typedef.
29875 * gimple.h (gimple_stmt_iterator): Rename to...
29876 (gimple_stmt_iterator_d): ... This.
29877 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29878 trees be valid for GIMPLE and GENERIC.
29879 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29880 * gimple-fold.c (gimple_fold_call): Call target hook
29881 gimple_fold_builtin.
29882 * hooks.c (hook_bool_gsiptr_false): New.
29883 * hooks.h (hook_bool_gsiptr_false): New.
29884 * target.def (fold_stmt): New.
29885 * doc/tm.texi: Regenerate.
29887 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
29890 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29891 a set sp if no stack realignment.
29893 2013-04-22 Nick Clifton <nickc@redhat.com>
29895 * config.gcc (tilegx-linux): Extend extra_objs rather than
29897 (tilepro-linux): Likewise.
29899 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29901 * config/aarch64/aarch64-builtins.c
29903 (CF0, CF1, CF2, CF3, CF4, CF10): New.
29904 (VAR<1-12>): Add MAP parameter.
29905 (BUILTIN_*): Likewise.
29906 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29907 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29908 (aarch64_ushl_n<mode>): Likewise.
29909 (aarch64_sshr_n<mode>): Likewise.
29910 (aarch64_ushr_n<mode>): Likewise.
29911 (aarch64_<maxmin><mode>): Likewise.
29912 (aarch64_sqrt<mode>): Likewise.
29913 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29914 (vshr<q>_n_*): Likewise.
29916 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29918 * config/aarch64/aarch64-builtins.c
29919 (aarch64_simd_builtin_type_mode): Handle SF types.
29921 (BUILTIN_GPF): Define.
29922 (aarch64_init_simd_builtins): Handle SF types.
29923 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29924 (frecps): Likewise.
29925 (frecpx): Likewise.
29926 * config/aarch64/aarch64-simd.md
29927 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29928 (aarch64_frecpe<mode>): New.
29929 (aarch64_frecps<mode>): Likewise.
29930 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29931 (v8type): Add frecp<esx>.
29932 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29933 (aarch64_frecps<mode>): Likewise.
29934 * config/aarch64/iterators.md (FRECP): New.
29935 (frecp_suffix): Likewise.
29936 * config/aarch64/arm_neon.h
29937 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29939 2013-04-22 Christian Bruel <christian.bruel@st.com>
29942 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29943 (REG_CLASS_NAMES): Idem.
29944 (REG_CLASS_CONTENTS): Idem.
29945 (REGCLASS_HAS_FP_REG): Idem.
29946 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29947 (sh_conditional_register_usage): Idem.
29949 2013-04-21 Jeff Law <law@redhat.com>
29951 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29952 (ssa_forward_propagate_and_combine): Use it.
29954 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29956 * lra.c: Update the flow chart diagram.
29958 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29960 PR rtl-optimization/56847
29961 * lra-constraints.c (process_alt_operands): Discourage alternative
29962 with non-matche doffsettable memory constraint fro memory with
29965 2013-04-19 Richard Biener <rguenther@suse.de>
29967 PR tree-optimization/56982
29968 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29970 * gimplify.c (gimplify_call_expr): Notice special calls.
29971 (gimplify_modify_expr): Likewise.
29972 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29973 abnormal control flow receivers.
29974 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29975 in the same way as cfun->has_nonlocal_labels.
29976 (gimple_purge_dead_abnormal_call_edges): Likewise.
29977 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29978 receivers start a basic-block.
29980 2013-04-19 Richard Biener <rguenther@suse.de>
29982 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29984 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
29985 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29986 (SLP_TREE_LOAD_PERMUTATION): Add.
29987 (vect_transform_slp_perm_load): Adjust prototype.
29988 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29989 (vect_free_slp_instance): Likewise.
29990 (vect_create_new_slp_node): Likewise.
29991 (vect_supported_slp_permutation_p): Remove.
29992 (vect_slp_rearrange_stmts): Adjust.
29993 (vect_supported_load_permutation_p): Likewise. Inline
29994 vect_supported_slp_permutation_p here.
29995 (vect_analyze_slp_instance): Compute load permutations per
29996 slp node instead of per instance.
29997 (vect_get_slp_defs): Adjust.
29998 (vect_transform_slp_perm_load): Likewise.
29999 (vect_schedule_slp_instance): Remove redundant code.
30000 (vect_schedule_slp): Remove hack for PR56270, add it ...
30001 * tree-vect-stmts.c (vectorizable_load): ... here, do not
30002 CSE loads for SLP. Adjust.
30004 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
30006 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
30007 spelling in two comments.
30009 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
30012 * config/arm/arm.c (load_multiple_sequence): Require SP
30013 as base register for loads if SP is in the register list.
30015 2013-04-19 Martin Jambor <mjambor@suse.cz>
30017 PR tree-optimization/56718
30018 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
30019 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
30020 and made public. Adjusted all callers.
30021 (ipa_intraprocedural_devirtualization): New function.
30022 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
30023 (ipa_intraprocedural_devirtualization): Likewise.
30024 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
30026 2013-04-19 Richard Biener <rguenther@suse.de>
30028 PR tree-optimization/57000
30029 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
30031 2013-04-19 Terry Guo <terry.guo@arm.com>
30033 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
30035 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
30036 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
30037 (cortex_m4_fmacs): Use new reservations.
30038 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
30040 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
30042 PR rtl-optimization/56999
30043 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
30045 (lra_coalesce): Remove split_origin_bitmap and related code.
30046 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
30047 ranges if necessary.
30049 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
30051 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
30053 (ix86_expand_call): Remove clobbered_registers array and use
30054 x86_64_ms_sysv_extra_clobbered_registers instead.
30055 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
30057 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
30059 * config/i386/i386.md (*call_rex64_ms_sysv): Use
30060 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
30061 (*call_value_rex64_ms_sysv): Ditto.
30063 2013-04-18 Cary Coutant <ccoutant@google.com>
30065 * dwarf2out.c (output_pubnames): Check die_perennial_p of
30066 parent instead of die_mark.
30068 2013-04-18 Diego Novillo <dnovillo@google.com>
30070 * gimple.c (create_gimple_tmp): New.
30071 (get_expr_type): New.
30072 (build_assign): New.
30073 (build_type_cast): New.
30074 * gimple.h (enum ssa_mode): Define.
30075 (gimple_seq_set_location): New.
30076 * asan.c (build_check_stmt): Change some gimple_build_* calls
30077 to use build_assign and build_type_cast.
30079 2013-04-18 Richard Biener <rguenther@suse.de>
30081 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30082 handle negative step. Remove redundant checks.
30083 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
30084 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
30085 for negative step and grouped loads fail to vectorize.
30087 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
30089 * emit-rtl.c (reset_insn_used_flags): New function.
30090 (reset_all_used_flags): Use it.
30091 (verify_insn_sharing): New function.
30092 (verify_rtl_sharing): Fix verification for SEQUENCEs.
30094 2013-04-18 Jakub Jelinek <jakub@redhat.com>
30096 PR tree-optimization/56984
30097 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
30098 and (x >> M) >= N don't register any assertion if N << M is the
30101 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
30103 * lower-subreg.c (resolve_simple_move): If called self-recursive,
30104 do not delete_insn insns that have not yet been emitted, only
30105 unlink them with remove_insn.
30106 * df-scan.c (df_insn_delete): Revert r197492.
30108 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
30110 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
30111 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
30113 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
30115 * config/arm/arm.md (movsicc_insn): Convert define_insn into
30116 define_insn_and_split.
30117 (and_scc,ior_scc,negscc): Likewise.
30118 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
30120 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
30122 * config/arm/arm.c (use_return_insn): Return 0 for targets that
30123 can benefit from using a sequence of LDRD instructions in epilogue
30124 instead of a single LDM instruction.
30126 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
30129 * doc/extend.texi: Fix typo.
30131 2013-04-17 Richard Biener <rguenther@suse.de>
30133 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
30134 (vect_build_slp_tree): ... here.
30135 (vect_build_slp_tree_1): Compute which stmts of the SLP group
30136 match. Remove special-casing of mismatched complex loads.
30137 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
30138 re-try the match with swapped commutative operands.
30139 (vect_supported_load_permutation_p): Remove special-casing of
30140 mismatched complex loads.
30141 (vect_analyze_slp_instance): Adjust.
30143 2013-04-17 Richard Biener <rguenther@suse.de>
30145 PR rtl-optimization/56921
30146 * cfgloop.h (struct loop): Add simple_loop_desc member.
30147 (struct niter_desc): Mark with GTY(()).
30148 (simple_loop_desc): Do not use aux field but simple_loop_desc.
30149 * loop-iv.c (get_simple_loop_desc): Likewise.
30150 (free_simple_loop_desc): Likewise.
30153 2013-04-16 Richard Biener <rguenther@suse.de>
30155 PR rtl-optimization/56921
30156 * loop-init.c (pass_rtl_move_loop_invariants): Add
30157 TODO_do_not_ggc_collect to todo_flags_finish.
30158 (pass_rtl_unswitch): Same.
30159 (pass_rtl_unroll_and_peel_loops): Same.
30160 (pass_rtl_doloop): Same.
30162 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
30164 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
30165 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
30166 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
30168 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
30169 * tree-streamer.c (record_common_node): Adjust reference in comment.
30171 2013-04-17 Terry Guo <terry.guo@arm.com>
30173 * config/arm/cortex-m4.md: Add a new bypass.
30175 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30177 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
30179 (*subs_<optab><mode>_multp2): New pattern.
30180 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
30181 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
30183 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30185 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
30186 (*subs_mul_imm_<mode>): New pattern.
30188 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
30191 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
30192 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
30193 (vsx_movti_32bit): Change j->wa to O->wa.
30195 2013-04-16 Richard Biener <rguenther@suse.de>
30197 PR rtl-optimization/56921
30198 * loop-init.c (pass_rtl_move_loop_invariants): Add
30199 TODO_do_not_ggc_collect to todo_flags_finish.
30200 (pass_rtl_unswitch): Same.
30201 (pass_rtl_unroll_and_peel_loops): Same.
30202 (pass_rtl_doloop): Same.
30204 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
30206 * config/arm/arm.c (emit_multi_reg_push): New declaration
30207 for an existing function.
30208 (arm_emit_strd_push): New function.
30209 (arm_expand_prologue): Used here.
30210 (arm_emit_ldrd_pop): New function.
30211 (arm_expand_epilogue): Used here.
30212 (arm_get_frame_offsets): Update condition.
30213 (arm_emit_multi_reg_pop): Add a special case for load of a single
30214 register with writeback.
30216 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
30218 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
30221 2013-04-16 Richard Biener <rguenther@suse.de>
30223 PR tree-optimization/56756
30224 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
30225 (first_mem_ref_loc): New.
30226 (execute_sm): Place the load temporarily before a previous
30227 access instead of in the latch edge to ensure its SSA dependencies
30228 are defined at points dominating the load.
30230 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
30232 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
30233 correct fix by moving header and footer insn to the footer of
30234 the merged basic block. Clear BB_END of the merged-away block.
30236 PR middle-end/43631
30237 * emit-rtl.c (make_note_raw): New function.
30238 (link_insn_into_chain): New static inline function.
30239 (add_insn): Use it.
30240 (add_insn_before, add_insn_after): Factor insn chain linking code...
30241 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
30242 using link_insn_into_chain.
30243 (note_outside_basic_block_p): New helper function for emit_note_after
30244 and emit_note_before.
30245 (emit_note_after): Use nobb variant of add_insn_after if the note
30246 should not be contained in a basic block.
30247 (emit_note_before): Use nobb variant of add_insn_before if the note
30248 should not be contained in a basic block.
30249 (emit_note_copy): Use make_note_raw.
30250 (emit_note): Likewise.
30251 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
30252 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
30253 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
30254 the moved barrier the tail of the basic block it follows.
30255 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
30257 2013-04-15 Jakub Jelinek <jakub@redhat.com>
30259 PR tree-optimization/56962
30260 * gimple-ssa-strength-reduction.c (record_increment): Only set
30261 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
30262 either rhs1 or rhs2 is equal to c->base_expr.
30264 2013-04-15 Richard Biener <rguenther@suse.de>
30266 PR tree-optimization/56933
30267 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
30269 (GROUP_READ_WRITE_DEPENDENCE): Remove.
30270 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
30271 * tree-vect-data-refs.c (vect_analyze_group_access): Move
30272 dependence check ...
30273 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
30275 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
30276 GROUP_READ_WRITE_DEPENDENCE.
30278 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30280 * emit-rtl.c (reset_all_used_flags): New function.
30281 (verify_rtl_sharing): Call reset_all_used_flags before and after
30282 performing the checks.
30284 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30286 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
30287 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
30288 * config/arm/constraints.md (De): New constraint.
30289 * config/arm/neon.md (anddi3_neon): Delete.
30290 (neon_vand<mode>): Expand to standard anddi3 pattern.
30291 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
30292 Move earlier in the file.
30293 (neon_inv_logic_op2): Likewise.
30294 (arm_anddi_operand_neon): New predicate.
30296 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30298 * configure.ac (gcc_cv_ld_as_needed): Set
30299 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
30300 Use -z ignore, -z record on *-*-solaris2*.
30301 (HAVE_LD_AS_NEEDED): Update comment.
30302 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
30303 * configure: Regenerate.
30304 * config.in: Regenerate.
30305 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
30306 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
30307 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
30308 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
30309 equivalents. Fix markup.
30310 * doc/tm.texi: Regenerate.
30312 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
30314 * config/i386/i386.opt: New option mstack-protector-guard=.
30315 * config/i386/i386-opts.h: Add enum stack_protector_guard.
30316 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
30317 TARGET_SSP_TLS_GUARD.
30318 * config/i386/i386.c (ix86_option_override_internal): Set
30319 ix86_stack_protector_guard.
30320 * config/i386/i386.md (stack_protect_set): Enable for
30321 TARGET_SSP_TLS_GUARD only.
30322 (stack_protect_set_<mode>): Ditto.
30323 (stack_protect_test): Ditto.
30324 (stack_protect_test_<mode>): Ditto.
30325 * doc/invoke.texi (i386 Option): Document.
30327 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
30330 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
30331 (S_MODES): Set H_MODE bit.
30332 (SF_MODES): Set only S_MODE and SF_MODE bits.
30333 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
30334 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
30335 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
30336 <MODE_FLOAT>: Likewise.
30338 2013-04-15 Joey Ye <joey.ye@arm.com>
30340 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
30342 2013-04-15 Joey Ye <joey.ye@arm.com>
30344 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
30346 (thumb_far_jump_used_p): Count instruction size and set
30349 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
30351 * reorg.c (fill_simple_delay_slots): Reindent block of code.
30352 * resource.c (mark_target_live_regs): Reformat conditional block.
30354 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30356 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
30357 notes, they are emitted only just before final.
30358 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
30360 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30362 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
30363 * cfgrtl.c (delete_insn): Call it here instead.
30364 * lra-spills.c (lra_final_code_change): Use delete_insn.
30365 * haifa-sched.c (sched_remove_insn): Likewise.
30366 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
30367 returning to the nop pool.
30368 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
30369 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
30371 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30373 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30374 * doc/tm.texi: Regenerated.
30376 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
30378 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30381 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30383 * df-core.c (df_find_def): Compare register numbers.
30384 (df_find_use): Likewise.
30386 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
30389 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30390 lra_in_progress for return.
30392 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30394 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30395 define_insn into define_insn_and_split and emit movsicc patterns.
30397 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30399 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30401 2013-04-12 Richard Biener <rguenther@suse.de>
30403 * tree-pass.h (TODO_do_not_ggc_collect): New.
30404 * passes.c (execute_one_ipa_transform_pass): Honor
30405 TODO_do_not_ggc_collect.
30406 (execute_one_pass): Likewise.
30409 2013-04-10 Richard Biener <rguenther@suse.de>
30411 * passes.c (init_optimization_passes): Remove reload pass.
30412 * ira.c (do_reload): Merge into ...
30414 (rest_of_handle_reload): Remove.
30415 (pass_reload): Likewise.
30416 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30417 of reload for vzeroupper pass placement.
30419 2013-04-12 Jakub Jelinek <jakub@redhat.com>
30421 PR tree-optimization/56918
30422 PR tree-optimization/56920
30423 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30424 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
30425 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
30426 use wide_mul_with_sign method.
30428 2013-04-12 Richard Biener <rguenther@suse.de>
30430 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30431 not be considered a gimple constant.
30433 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
30435 * fold-const.c (const_binop): Handle vector shifts by a scalar.
30436 (fold_binary_loc): Call const_binop also for mixed vector-scalar
30439 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
30440 Jakub Jelinek <jakub@redhat.com>
30442 * opts.c: Include diagnostic-color.h.
30443 (common_handle_option): Handle OPT_fdiagnostics_color_.
30444 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30445 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30446 (diagnostic-color.o): New.
30447 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30448 (diagnostic_color_rule): New enum.
30449 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30450 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30451 the location string.
30452 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30453 either NULL, or color kind.
30454 * diagnostic-color.c: New file.
30455 * diagnostic-color.h: New file.
30456 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30458 * doc/invoke.texi (-fdiagnostics-color): Document.
30459 * pretty-print.h (pp_show_color): Define.
30460 (struct pretty_print_info): Add show_color field.
30461 * diagnostic.c: Include diagnostic-color.h.
30462 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30463 macros. Colorize error:, warning: etc. strings and also the location
30465 (diagnostic_show_locus): Colorize the caret line.
30466 * pretty-print.c: Include diagnostic-color.h.
30467 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
30468 inside of %< %> quotes or quoted through q format modifier.
30470 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30472 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30474 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30476 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30477 code in CC_NZ mode.
30478 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30481 2013-04-11 Marek Polacek <polacek@redhat.com>
30483 PR tree-optimization/48184
30484 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30486 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
30488 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30489 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30490 (skip_simple_arithmetic): Tidy up.
30491 * tree.h (skip_simple_constant_arithmetic): Declare.
30493 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30495 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30497 2013-04-11 Richard Biener <rguenther@suse.de>
30499 * tree-vect-loop.c (get_initial_def_for_induction): Properly
30500 generate vector constants.
30502 2013-04-11 Richard Biener <rguenther@suse.de>
30504 PR tree-optimization/56878
30505 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30506 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30508 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30509 Prefer to align the DR with the most invariant base address.
30511 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30513 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30516 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
30518 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30519 floating-point vector comparisons against 0.
30521 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30523 PR tree-optimization/56899
30524 * fold-const.c (extract_muldiv_1): Apply distributive law
30525 only if TYPE_OVERFLOW_WRAPS (ctype).
30527 2013-04-11 Bin Cheng <bin.cheng@arm.com>
30530 * ira-costs.c (scan_one_insn): Check whether the source rtx of
30531 loading has side effect.
30533 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
30535 * config/sparc/sparc.c: Include tree-pass.h.
30536 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30537 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
30538 head of file. Change return type. Split off gate function.
30539 (sparc_gate_work_around_errata): New function.
30540 (pass_work_around_errata): New pass definition.
30541 (insert_pass_work_around_errata) New pass insert definition to
30542 insert pass_work_around_errata just after delayed-branch scheduling.
30543 (sparc_option_override): Insert the pass.
30544 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30546 2013-04-10 David S. Miller <davem@davemloft.net>
30548 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30549 or -mcpu=hypersparc.
30551 * target.def (cstore_mode): New hook.
30552 * target.h: Include insn-codes.h
30553 * targhooks.c: Likewise.
30554 (default_cstore_mode): New function.
30555 * targhooks.h: Declare it.
30556 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30557 * doc/tm.texi: Rebuild.
30558 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30559 target hook, rather than inspecting the insn_data.
30560 * config/sparc/sparc.c (sparc_cstore_mode): New function.
30561 (TARGET_CSTORE_MODE): Redefine.
30562 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30564 * config/sparc/predicates.md (cstore_result_operand): New special
30566 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30567 Use it for operand 0.
30568 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30569 (*snesi_special): Likewise.
30570 (*snesi_zero): Likewise.
30571 (*seqsi_zero): Likewise.
30572 (*sltu_insn): Likewise.
30573 (*sgeu_insn): Likewise.
30574 (*seqdi_special): Make operand 0 and comparison operation be of
30576 (*snedi_special): Likewise.
30577 (*snedi_special_vis3): Likewise.
30578 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30579 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30580 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30581 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30582 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30583 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30584 (*sltu_extend_sp64): Likewise.
30585 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30586 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30587 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30588 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30589 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30591 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
30593 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30594 (aarch64_start_file): Use the new function.
30596 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30597 Jason Merrill <jason@redhat.com>
30599 * common.opt: Add -gdwarf.
30600 * opts.c (common_handle_option): Handle it.
30601 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30603 2013-04-10 Richard Biener <rguenther@suse.de>
30605 * passes.c (execute_todo): Do not call ggc_collect conditional here.
30606 (execute_one_ipa_transform_pass): But unconditionally here.
30607 (execute_one_pass): And here.
30608 (init_optimization_passes): Remove reload pass.
30609 * tree-pass.h (TODO_ggc_collect): Remove.
30610 (pass_reload): Likewise.
30611 * ira.c (do_reload): Merge into ...
30613 (rest_of_handle_reload): Remove.
30614 (pass_reload): Likewise.
30615 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30616 of reload for vzeroupper pass placement.
30617 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30618 and todo_flags_finish of all passes.
30620 2013-04-10 Richard Biener <rguenther@suse.de>
30622 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30623 first_const_oprnd field, rename first_def_type to first_op_type.
30624 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30625 (vect_get_and_check_slp_defs): Always use the type of the
30626 operand. Allow mixed vect_external_def, vect_constant_def types.
30627 (vect_get_constant_vectors): Handle mixed vect_external_def,
30628 vect_constant_def types.
30630 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30632 PR tree-optimization/55524
30633 * tree-ssa-math-opts.c
30634 (convert_mult_to_fma): Don't use an fms construct
30635 when we don't have an fms operation, but fnma, and it looks
30636 likely that we'll be able to use the latter.
30638 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30640 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30642 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30643 inline fail caused by overwritable functions.
30645 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30647 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30648 unnecessary bits in the constant power of two case.
30650 2013-04-10 Richard Biener <rguenther@suse.de>
30652 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30653 broken code swapping operands.
30654 (vect_build_slp_tree): Do not compute load permutations here.
30655 (vect_analyze_slp_instance): Compute load permutations here,
30656 after building the SLP tree.
30658 2013-04-09 Christian Bruel <christian.bruel@st.com>
30660 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30661 of next/prev_real_insn.
30663 2013-04-09 Jan Hubicka <jh@suse.cz>
30665 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30666 Drop aliased parameter.
30667 (function_and_variable_visibility): Do not handle alias pairs.
30668 * cgraph.c (varpool_externally_visible_p): Update prototype.
30669 * varpool.c (varpool_add_new_variable): Update.
30671 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30673 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30675 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30677 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30679 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30681 2013-04-09 Marek Polacek <polacek@redhat.com>
30683 PR tree-optimization/48762
30684 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30686 2013-04-09 Richard Biener <rguenther@suse.de>
30688 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30690 (vect_build_slp_tree): Likewise.
30691 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30692 calculating the cost of a SLP instance.
30693 (vect_analyze_slp_instance): Use it from here, after building
30696 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30698 PR middle-end/56883
30699 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30700 expand_omp_for_static_chunk): Use simple_p = true in
30701 force_gimple_operand_gsi calls when assigning to addressable decls.
30703 2013-04-09 Jeff Law <law@redhat.com>
30705 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30706 when the boolean was created by converting a wider object which
30707 had a boolean range.
30709 2013-04-09 Richard Biener <rguenther@suse.de>
30711 * tree-vectorizer.h (slp_void_p): Remove.
30712 (slp_tree): Typedef before _slp_tree declaration.
30713 (struct _slp_tree): Use a vector of slp_tree as children.
30714 (vect_get_place_in_interleaving_chain): Remove.
30715 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30717 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30719 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30720 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30721 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30722 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30723 Use slp_node instead of slp_void_p and adjust.
30725 2013-04-09 Richard Biener <rguenther@suse.de>
30727 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30728 work that is not necessary.
30730 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30732 PR tree-optimization/56854
30733 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30734 forward into clobber stmts if it would change MEM_REF lhs into
30737 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
30739 * tree.c (type_hash_lookup, type_hash_add): Make static.
30740 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30742 2013-04-09 Richard Biener <rguenther@suse.de>
30744 * tree.h (unsave_expr_now): Remove.
30745 * tree-inline.c (mark_local_for_remap_r): Remove.
30746 (unsave_expr_1): Likewise.
30747 (unsave_r): Likewise.
30748 (unsave_expr_now): Likewise.
30749 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30750 (propagate_tree_value): Likewise.
30752 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
30754 * doc/rtl.texi (sequence): Rewrite documentation to match the
30755 current use of SEQUENCE rtl objects.
30756 * rtl.def (SEQUENCE): Likewise.
30758 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30759 Update documentation.
30760 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30761 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30763 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30765 2013-04-08 Teresa Johnson <tejohnson@google.com>
30767 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30768 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30770 (estimate_edge_size_and_time): Add comment to suggest using rounding
30772 (estimate_node_size_and_time): Ditto.
30773 (remap_edge_change_prob): Use helper rounding divide methods.
30774 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30775 (gimple_mod_pow2_value_transform): Ditto.
30776 (gimple_mod_subtract_transform): Ditto.
30777 (gimple_ic_transform): Ditto.
30778 (gimple_stringops_transform): Ditto.
30779 * stmt.c (conditional_probability): Ditto.
30780 (emit_case_dispatch_table): Ditto.
30781 * lto-cgraph.c (merge_profile_summaries): Ditto.
30782 * tree-optimize.c (execute_fixup_cfg): Ditto.
30783 * cfgcleanup.c (try_forward_edges): Ditto.
30784 * cfgloopmanip.c (scale_loop_profile): Ditto.
30786 (duplicate_loop_to_header_edge): Ditto.
30787 (lv_adjust_loop_entry_edge): Ditto.
30788 * tree-vect-loop.c (vect_transform_loop): Ditto.
30789 * profile.c (compute_branch_probabilities): Ditto.
30790 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30791 * lto-streamer-in.c (input_cfg): Ditto.
30792 * gimple-streamer-in.c (input_bb): Ditto.
30793 * ipa-cp.c (update_profiling_info): Ditto.
30794 (update_specialized_profile): Ditto.
30795 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30796 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30798 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30799 (compute_trg_info): Ditto.
30800 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30801 (purge_dead_edges): Ditto.
30802 * loop-unswitch.c (unswitch_loop): Ditto.
30803 * cgraphclones.c (cgraph_clone_edge): Ditto.
30804 (cgraph_clone_node): Ditto.
30805 * tree-inline.c (copy_bb): Ditto.
30806 (copy_edges_for_bb): Ditto.
30807 (initialize_cfun): Ditto.
30808 (copy_cfg_body): Ditto.
30809 (expand_call_inline): Ditto.
30811 2013-04-08 Kai Tietz <ktietz@redhat.com>
30813 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30814 TARGET_CYGWIN64 by TARGET_64BIT.
30816 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30818 * config/epiphany/epiphany.md (GPR_1): New constant.
30819 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30820 * config/epiphany/epiphany.c (gen_compare_reg):
30821 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30822 is already in place.
30823 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30824 Don't require being called during rtl expansion; If y operlaps r0,
30826 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30827 (epiphany_expand_epilogue): Likewise.
30829 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30830 Don't use CC_FPmode for ORDERED / UNORDERED.
30831 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30833 * config/epiphany/constraints.md (CnL): New constraint.
30834 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30835 * config/epiphany/predicates.md (add_operand): Allow 1024.
30837 * config/epiphany/epiphany.md (logical_op): New code iterator.
30838 (op_mnc): New code attribute.
30839 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30840 (mov_f+1, mov_f+2): New peephole2 patterns.
30842 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30843 (cstoresi4): Also allow re-use of zero result when doing a NE
30844 comparison to a non-zero operand.
30845 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30847 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30848 Use gen_addsi3_i / gen_subsi3_i.
30850 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30854 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30855 contain anything but clobbers, at most one __builtin_stack_restore,
30856 optionally debug stmts and final resx, and if it has at least one
30857 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30858 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30859 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30860 which isn't defaut definition, remove them.
30861 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30862 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30863 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30864 with MEM_REF LHS with SSA_NAME address.
30866 2013-04-08 Jeff Law <law@redhat.com>
30868 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30870 2013-04-08 Richard Biener <rguenther@suse.de>
30872 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30874 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30875 determined vector type.
30876 (vect_analyze_data_refs): Likewise.
30877 (vect_get_new_vect_var): Adjust.
30878 (vect_create_destination_var): Preserve SSA name versions.
30879 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30880 not dump anything here.
30882 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30884 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30885 Add member lr_slot_known.
30886 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30888 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30889 Remove code that sets lr_slot_offset according to what a previous
30890 version of epiphany_emit_save_restore used to do.
30891 (epiphany_emit_save_restore): When doing an lr save or restore,
30892 set/verify lr_slot_known and lr_slot_offset.
30894 2013-04-08 Xinyu Qi <xyqi@marvell.com>
30897 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30900 2013-04-08 Richard Biener <rguenther@suse.de>
30902 * alias.c (find_base_term): Fix thinko in previous change.
30904 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30906 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30907 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30908 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
30909 if possible to compute val.
30910 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30911 For QImode integers don't require anything about precision. Use
30912 const_with_all_bytes_same to find out if the constant doesn't have
30913 repeated bytes in it.
30915 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30917 * config/s390/s390.c (s390_expand_insv): Only accept insertions
30920 2013-04-08 Marek Polacek <polacek@redhat.com>
30922 PR rtl-optimization/48182
30923 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30926 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30929 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30930 nuses, make sure we have a label.
30932 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30935 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30936 (rs6000_emit_swdiv_low_precision): Remove.
30937 (rs6000_emit_swdiv): Rewrite to handle between one and four
30938 iterations of Newton-Raphson generally; modify required number of
30939 iterations for some cases.
30940 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30942 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
30944 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30945 set-but-unused variable.
30947 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30948 basic blocks of released function bodies garbage-collectable.
30950 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30951 (struct rtl_opt_pass): Add TODO_df_finish.
30953 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30955 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30957 * config/arm/constraints.md (q): New constraint.
30958 * config/arm/ldrdstrd.md: New file.
30959 * config/arm/arm.md (ldrdstrd.md) New include.
30960 (arm_movdi): Use "q" instead of "r" constraint
30961 for double-word memory access.
30962 (movdf_soft_insn): Likewise.
30963 * config/arm/vfp.md (movdi_vfp): Likewise.
30964 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30965 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30966 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30967 (mem_ok_for_ldrd_strd): Likewise.
30968 (output_move_double): Update assertion.
30970 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30972 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30974 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30976 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30977 define_insn_and_split.
30978 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30980 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30982 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30983 define_insn_and_split.
30984 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30985 (shiftsi3_compare): New pattern.
30986 (rrx): New pattern.
30987 * config/arm/unspecs.md (UNSPEC_RRX): New.
30989 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30991 * config/arm/arm.md (negdi_extendsidi): New pattern.
30992 (negdi_zero_extendsidi): Likewise.
30994 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30996 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30997 define_insn_and_split.
30998 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30999 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
31001 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31003 * config/arm/arm.md (arm_subdi3): Convert define_insn into
31004 define_insn_and_split.
31005 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
31006 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
31008 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31010 * config/arm/arm.md (subsi3_carryin): New pattern.
31011 (subsi3_carryin_const): Likewise.
31012 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
31013 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
31015 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31017 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
31019 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31021 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
31022 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
31024 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31026 * config/arm/arm.c (arm_expand_builtin): Change fcode
31027 type to unsigned int.
31029 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31031 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
31033 2013-04-04 Ian Lance Taylor <iant@google.com>
31035 * doc/standards.texi (Standards): The Go frontend supports the Go 1
31038 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
31040 PR middle-end/56729
31041 * df-scan.c (df_insn_delete): Disable failing assert.
31043 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31045 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
31046 New function prototype.
31047 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
31048 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
31049 (arm_builtin_vectorized_function): New function.
31051 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31053 * config/arm/arm_neon_builtins.def: New file.
31054 * config/arm/arm.c (neon_builtin_data): Move contents to
31055 arm_neon_builtins.def.
31056 (enum arm_builtins): Include neon builtin definitions.
31057 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
31058 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
31060 2013-04-04 Marek Polacek <polacek@redhat.com>
31062 PR tree-optimization/48186
31063 * predict.c (maybe_hot_frequency_p): Return false if
31064 HOT_BB_FREQUENCY_FRACTION is 0.
31065 (cgraph_maybe_hot_edge_p): Likewise.
31067 2013-04-04 Richard Biener <rguenther@suse.de>
31069 PR tree-optimization/56826
31070 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
31073 2013-04-04 Richard Biener <rguenther@suse.de>
31075 PR tree-optimization/56213
31076 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
31077 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
31079 2013-04-04 Richard Biener <rguenther@suse.de>
31081 PR tree-optimization/56837
31082 * tree-loop-distribution.c (classify_partition): For non-zero
31083 values require that the value has the same precision as its
31084 mode to be useful as memset value.
31086 2013-04-03 Nick Clifton <nickc@redhat.com>
31088 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
31089 (fmssf4): Use fmsf.s on E3V5 architectures.
31090 (fnmasf4): Use fnmaf.s on E3V5 architectures.
31091 (fnmssf4): Use fnmsf.s on E3V5 architectures.
31093 2013-04-03 Jeff Law <law@redhat.com>
31095 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
31096 (lra-eliminations.o): Likewise.
31098 2013-04-03 Teresa Johnson <tejohnson@google.com>
31100 * gcov-io.c (compute_working_sets): Moved most of body of old
31101 compute_working_sets here from profile.c.
31102 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
31103 (gcov_working_set_t): Moved typedef here from basic-block.h
31104 (compute_working_set): Declare.
31105 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
31106 (get_working_sets): Renamed from compute_working_set,
31107 replace most of body with call to new compute_working_sets.
31108 (get_exec_counts): Replace call to compute_working_sets
31109 to get_working_sets.
31110 * profile.h (get_working_sets): Renamed from compute_working_set.
31111 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
31112 to get_working_sets.
31113 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
31114 * gcov-dump.c (dump_working_sets): New function.
31116 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
31118 * hwint.c (sext_hwi, zext_hwi): New functions.
31119 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
31120 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
31121 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
31122 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
31123 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
31124 (sext_hwi, zext_hwi): New functions.
31126 2013-04-03 Jeff Law <law@redhat.com>
31128 PR tree-optimization/56799
31129 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
31130 back test for widening conversion erroneously dropped in prior change.
31132 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31135 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
31136 instead of next_real_insn.
31138 2013-04-03 Marek Polacek <polacek@redhat.com>
31141 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
31143 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31146 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
31148 (thumb1_output_casesi): Likewise.
31149 (thumb2_output_casesi): Likewise.
31151 2013-04-03 Richard Biener <rguenther@suse.de>
31153 PR tree-optimization/56817
31154 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
31156 (tree_unroll_loops_completely_1): ... new function to manually
31157 walk the loop tree, properly defering outer loops of unrolled
31158 loops to later iterations.
31160 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31162 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
31163 (vectorizable_load): Likewise.
31164 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
31165 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
31167 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31169 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
31172 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31174 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
31176 2013-04-03 Bin Cheng <bin.cheng@arm.com>
31178 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
31180 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31182 PR tree-optimization/56790
31183 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
31186 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31188 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
31190 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
31191 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
31194 2013-04-03 Jakub Jelinek <jakub@redhat.com>
31197 * tree.h (force_folding_builtin_constant_p): New decl.
31198 * builtins.c (force_folding_builtin_constant_p): New variable.
31199 (fold_builtin_constant_p): Fold immediately also if
31200 force_folding_builtin_constant_p.
31202 2013-04-03 Richard Biener <rguenther@suse.de>
31204 PR tree-optimization/56812
31205 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
31206 DRs of the same interleaving chain are independent.
31208 2013-04-02 Jason Merrill <jason@redhat.com>
31210 * gdbinit.in (pbb): Use debug fn.
31212 2013-04-02 Lawrence Crowl <crowl@google.com>
31214 * sese.h (struct ivtype_map_elt_s): Remove unused.
31215 (extern debug_ivtype_map): Remove unused.
31216 (extern eq_ivtype_map_elts): Remove unused.
31217 * sese.c (debug_ivtype_map): Removed unused.
31218 (debug_ivtype_map_1): Removed unused.
31219 (debug_ivtype_elt): Remove unused.
31220 (eq_ivtype_map_elts): Remove unused.
31222 2013-04-02 Kai Tietz <ktietz@redhat.com>
31225 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
31226 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
31227 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
31229 (legitimize_pe_coff_symbol): Likewise.
31230 (is_imported_p): New helper-function.
31231 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
31232 for Windows x64 targets.
31233 (ix86_expand_prologue): Optimize for pe-coff targets.
31234 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
31235 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
31236 medium/large code-model.
31237 (legitimize_pic_address): Likewise.
31238 (legitimize_tls_address): Likewise.
31239 (ix86_expand_call): Likewise.
31240 (x86_output_mi_thunk): Likewise.
31241 (get_dllimport_decl): Add new beimport argument.
31242 (construct_plt_address): Don't assert for x64 pe-coff targets.
31243 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
31245 (SYMBOL_FLAG_STUBVAR): New macro.
31246 (SYMBOL_REF_STUBVAR_P): Likewise.
31247 * config/i386/winnt.c (stub_list): New structure.
31248 (stub_head): New local variable.
31249 (i386_pe_record_stub): New function.
31250 (i386_pe_file_end): Emit refptr-stubs.
31252 2013-04-02 Jakub Jelinek <jakub@redhat.com>
31254 PR rtl-optimization/56745
31255 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
31256 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
31259 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
31260 and both of them are MEM_REFs, just compare first argument for
31261 equality and attempt to deal even with differing offsets.
31264 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
31265 of gimple_clobber_p to be MEM_REF.
31266 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
31267 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
31268 after gimplification.
31269 * asan.c (get_mem_ref_of_assignment): Don't instrument
31270 gimple_clobber_p stmts.
31271 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
31272 gimple_clobber_p stmt if they have MEM_REF lhs and
31273 are dead because of another gimple_clobber_p stmt.
31274 * tree-ssa-live.c (clear_unused_block_pointer): Treat
31275 gimple_clobber_p stmts like debug stmts.
31276 (remove_unused_locals): Remove clobbers with MEM_REF lhs
31277 that refer to unused VAR_DECLs or uninitialized values.
31278 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
31279 gimple_clobber_p stmts if they refer to removed parameters.
31280 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
31283 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
31285 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
31286 using SWI48 mode attribute.
31288 2013-04-02 Wei Mi <wmi@google.com>
31290 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
31291 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
31292 *<rotate_insn><mode>3_mask in i386.md.
31294 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
31296 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
31298 2013-04-02 Richard Biener <rguenther@suse.de>
31300 PR tree-optimization/56778
31301 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31302 Runtime alias tests are not supported for gather loads.
31303 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
31304 stmts referenced from SSA operands before updating SSA form.
31306 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
31307 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31309 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
31310 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
31311 * config/arm/cortex-a53.md: New file.
31312 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
31313 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
31314 * config/arm/arm.c (arm_issue_rate): Likewise.
31315 * config/arm/arm-tune.md: Regenerate
31316 * config/arm/arm-tables.opt: Regenerate.
31317 * config/arm/arm-cores.def: Add cortex-a53.
31319 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
31321 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
31324 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31326 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
31327 scalar load/store operations using B/H registers.
31328 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
31330 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31332 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
31334 * config/aarch64/aarch64.c
31335 (aarch64_simd_scalar_immediate_valid_for_move): New.
31336 * config/aarch64/aarch64-protos.h
31337 (aarch64_simd_scalar_immediate_valid_for_move): New.
31338 * config/aarch64/constraints.md (Dh, Dq): New.
31339 * config/aarch64/iterators.md (hq): New.
31341 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
31343 * reorg.c (get_branch_condition): Deal with conditional returns.
31344 (fill_simple_delay_slots): Remove dead code dealing with jumps.
31346 2013-04-01 Wei Mi <wmi@google.com>
31348 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
31349 Truncate operand 2 using %b asm operand modifier.
31350 (*<shift_insn><mode>3_mask): Ditto.
31351 (*<rotate_insn><mode>3_mask): Ditto.
31353 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
31355 PR middle-end/56798
31356 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
31358 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
31360 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
31362 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
31364 2013-03-30 Lawrence Crowl <crowl@google.com>
31366 * dse.c (clear_alias_sets): Remove never set.
31367 (disqualified_clear_alias_sets): Remove never set.
31368 (clear_alias_mode_pool): Remove never set.
31369 (dse_step0): Remove condition that is never true.
31370 (canon_address): Remove condition that is never true.
31371 (dse_step7): Remove condition that is never true.
31372 (rest_of_handle_dse): Remove condition that is never true.
31373 (rest_of_handle_dse::did_global): Remove never read from above.
31374 (dse_step2_spill): Remove never called from above.
31375 (dse_step5_spill): Remove never called from above.
31377 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
31379 * doc/md.texi (Standard Names) <casesi>: Update documentation for
31380 JUMP_TABLE_DATA changes.
31381 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31382 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31383 (Insns) <jump_table_data>: New entry.
31384 * doc/tm.texi: Regenerate.
31386 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31388 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31389 for table jump at the end of a basic block using tablejump_p.
31390 * targhooks.c (default_invalid_within_doloop): Likewise.
31391 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31392 target hook implementation that is identical to the default hook.
31393 (rs6000_invalid_within_doloop): Remove.
31395 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31396 unused variable from tablejump_p call.
31398 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31399 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31400 (INSN_DELETED_P): Likewise.
31401 (emit_jump_table_data): New prototype.
31402 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31403 after 4th as unused.
31404 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31405 * sched-vis.c (print_insn): Likewise.
31406 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31407 insn for compatibility with back ends that use next_active_insn to
31408 identify jump table data.
31409 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31410 (remove_insn): Likewise.
31411 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31413 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31414 (emit_jump_table_data): New function.
31416 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31417 basic block, a JUMP_TABLE_DATA never is.
31418 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31419 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31420 off from code handling real insns.
31421 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31422 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31423 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31424 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31425 is not a NONDEBUG_INSN_P.
31426 * ira-costs.c (scan_one_insn): Likewise.
31427 * jump.c (mark_all_labels): Likewise.
31428 (mark_jump_label_1): Likewise.
31429 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31430 * lra.c (get_insn_freq): Expect all insns reaching here to be in
31432 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31433 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31434 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31435 JUMP_TABLE_DATA_P insns.
31436 (calculate_elim_costs_all_insns): Likewise.
31437 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31438 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31439 (delete_output_reload): Code style fixups.
31440 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31441 insn flags on this non-insn.
31442 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31443 as scheduling barriers, for pre-change compatibility.
31444 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31445 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31447 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31448 redundant JUMP_TABLE_DATA_P test.
31449 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31450 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31451 (frv_for_each_packet): Likewise.
31452 * config/i386/i386.c (min_insn_size): Likewise.
31453 (ix86_avoid_jump_mispredicts): Likewise.
31454 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31455 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31456 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31457 (mips16_insn_length): Robustify.
31458 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31459 (mips16_split_long_branches): Likewise.
31460 * config/pa/pa.c (pa_combine_instructions): Likewise.
31461 * config/rs6000/rs6000.c (get_next_active_insn): Treat
31462 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31463 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31464 as contributing to pool range lengths.
31465 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31466 Remove redundant JUMP_TABLE_DATA_P test.
31467 (sh_loop_align): Likewise.
31468 (split_branches): Likewise.
31469 (sh_insn_length_adjustment): Likewise.
31470 * config/spu/spu.c (get_branch_target): Likewise.
31472 2013-03-29 Jan Hubicka <jh@suse.cz>
31474 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31475 gcov streaming; stream hot bb threshold to ltrans.
31476 * predict.c (get_hot_bb_threshold): Break out from ....
31477 (maybe_hot_count_p): ... here.
31478 (set_hot_bb_threshold): New function.
31479 * lto-section-in.c (lto_section_name): Add profile.
31480 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31481 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31482 and data-streamer.h
31483 (histogram_entry): New structure.
31484 (histogram, histogram_pool): New global vars.
31485 (histogram_hash): New structure.
31486 (histogram_hash::hash): New method.
31487 (histogram_hash::equal): Likewise.
31488 (account_time_size): New function.
31489 (cmp_counts): New function.
31490 (dump_histogram): New function.
31491 (ipa_profile_generate_summary): New function.
31492 (ipa_profile_write_summary): New function.
31493 (ipa_profile_read_summary): New function.
31494 (ipa_profile): Decide on threshold.
31495 (pass_ipa_profile): Add ipa_profile_write_summary and
31496 ipa_profile_read_summary.
31497 * Makefile.in (ipa.o): Update dependencies.
31498 * lto-streamer.h (LTO_section_ipa_profile): New section.
31500 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
31502 * tree.h (VAR_P): New.
31504 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
31507 * doc/invoke.texi ([-fwhole-program]): Fix typo.
31509 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
31511 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31512 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31513 (control_flow_insn_p): Likewise.
31514 * cfgrtl.c (duplicate_insn_chain): Likewise.
31515 * final.c (get_attr_length_1): Likewise.
31516 (shorten_branches): Likewise.
31517 (final_scan_insn): Likewise.
31518 * function.c (instantiate_virtual_regs): Likewise.
31519 * gcse.c (insert_insn_end_basic_block): Likewise.
31520 * ira-costs.c (scan_one_insn): Likewise.
31521 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31522 * lra.c (check_rtl): Likewise.
31523 * reload1.c (elimination_costs_in_insn): Likewise.
31524 * reorg.c (follow_jumps): Likewise.
31526 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31527 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31528 (thumb_far_jump_used_p): Likewise.
31529 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31530 (workaround_speculation): Likewise.
31531 (add_sched_insns_for_speculation): Likewise.
31532 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31533 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31534 (frv_for_each_packet): Likewise.
31535 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31536 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31537 (final_emit_insn_group_barriers): Likewise.
31538 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31539 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31540 (mips16_insn_length): Likewise.
31541 * config/pa/pa.c (pa_reorg): Likewise.
31542 (pa_combine_instructions): Likewise.
31543 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31544 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31545 (sh_reorg): Likewise.
31546 (split_branches): Likewise.
31547 * config/spu/spu.c (get_branch_target): Likewise.
31549 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31552 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
31554 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31555 Fix declaration name.
31557 2013-03-28 Lawrence Crowl <crowl@google.com>
31559 * graphds.h (struct graph.indicies): Remove unused.
31560 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31561 (SCOP_ORIGINAL_PDDRS): Remove unused.
31562 * sese.h (extern insert_loop_close_phis): Removed unused.
31563 (extern insert_guard_phis): Removed unused.
31564 (extern ivtype_map_elt_info): Removed unused.
31565 (new_ivtype_map_elt): Removed unused.
31566 * sese.c (ivtype_map_elt_info): Removed unused.
31568 2013-03-28 Lawrence Crowl <crowl@google.com>
31570 * Makefile.in: Add several missing include dependences.
31572 (test-dump.o): New. This object is not added to any executable,
31573 but is present for ad-hoc testing.
31575 (debug (const bitmap_head_def &)): New.
31576 (debug (const bitmap_head_def *)): New.
31578 (extern debug (const bitmap_head_def &)): New.
31579 (extern debug (const bitmap_head_def *)): New.
31581 (debug (edge_def &)): New.
31582 (debug (edge_def *)): New.
31584 (debug (basic_block_def &)): New.
31585 (debug (basic_block_def *)): New.
31587 (dump_node (const_tree, int, FILE *)): Correct source file.
31589 (debug (die_struct &)): New.
31590 (debug (die_struct *)): New.
31592 (extern debug (die_struct &)): New.
31593 (extern debug (die_struct *)): New.
31594 * gimple-pretty-print.c
31595 (debug (gimple_statement_d &)): New.
31596 (debug (gimple_statement_d *)): New.
31597 * gimple-pretty-print.h
31598 (extern debug (gimple_statement_d &)): New.
31599 (extern debug (gimple_statement_d *)): New.
31601 (debug (ira_allocno_copy &)): New.
31602 (debug (ira_allocno_copy *)): New.
31603 (debug (ira_allocno &)): New.
31604 (debug (ira_allocno *)): New.
31606 (extern debug (ira_allocno_copy &)): New.
31607 (extern debug (ira_allocno_copy *)): New.
31608 (extern debug (ira_allocno &)): New.
31609 (extern debug (ira_allocno *)): New.
31611 (debug (live_range &)): New.
31612 (debug (live_range *)): New.
31614 (debug (lra_live_range &)): New.
31615 (debug (lra_live_range *)): New.
31617 (debug (lra_live_range &)): New.
31618 (debug (lra_live_range *)): New.
31620 (debug (omega_pb_d &)): New.
31621 (debug (omega_pb_d *)): New.
31623 (extern debug (omega_pb_d &)): New.
31624 (extern debug (omega_pb_d *)): New.
31626 (debug (const rtx_def &)): New.
31627 (debug (const rtx_def *)): New.
31629 (debug_tree (tree): Move within file.
31630 (debug_raw (const tree_node &)): New.
31631 (debug_raw (const tree_node *)): New.
31632 (dump_tree_via_hooks (const tree_node *, int)): New.
31633 (debug (const tree_node &)): New.
31634 (debug (const tree_node *)): New.
31635 (debug_verbose (const tree_node &)): New.
31636 (debug_verbose (const tree_node *)): New.
31637 (debug_head (const tree_node &)): New.
31638 (debug_head (const tree_node *)): New.
31639 (debug_body (const tree_node &)): New.
31640 (debug_body (const tree_node *)): New.
31641 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31642 (debug (vec<tree, va_gc> &)): New.
31643 (debug (vec<tree, va_gc> *)): New.
31645 (extern debug (const rtx_def &)): New.
31646 (extern debug (const rtx_def *)): New.
31648 (debug_raw (simple_bitmap_def &)): New.
31649 (debug_raw (simple_bitmap_def *)): New.
31650 (debug (simple_bitmap_def &)): New.
31651 (debug (simple_bitmap_def *)): New.
31653 (extern debug (simple_bitmap_def &)): New.
31654 (extern debug (simple_bitmap_def *)): New.
31655 (extern debug_raw (simple_bitmap_def &)): New.
31656 (extern debug_raw (simple_bitmap_def *)): New.
31658 (debug (vinsn_def &)): New.
31659 (debug (vinsn_def *)): New.
31660 (debug_verbose (vinsn_def &)): New.
31661 (debug_verbose (vinsn_def *)): New.
31662 (debug (expr_def &)): New.
31663 (debug (expr_def *)): New.
31664 (debug_verbose (expr_def &)): New.
31665 (debug_verbose (expr_def *)): New.
31666 (debug (vec<rtx> &)): New.
31667 (debug (vec<rtx> *)): New.
31669 (extern debug (vinsn_def &)): New.
31670 (extern debug (vinsn_def *)): New.
31671 (extern debug_verbose (vinsn_def &)): New.
31672 (extern debug_verbose (vinsn_def *)): New.
31673 (extern debug (expr_def &)): New.
31674 (extern debug (expr_def *)): New.
31675 (extern debug_verbose (expr_def &)): New.
31676 (extern debug_verbose (expr_def *)): New.
31677 (extern debug (vec<rtx> &)): New.
31678 (extern debug (vec<rtx> *)): New.
31680 (_list_iter_cond_expr): Make inline instead of static.
31682 (debug (sreal &)): New.
31683 (debug (sreal *)): New.
31685 (extern debug (sreal &)): New.
31686 (extern debug (sreal *)): New.
31688 (extern debug_raw (const tree_node &)): New.
31689 (extern debug_raw (const tree_node *)): New.
31690 (extern debug (const tree_node &)): New.
31691 (extern debug (const tree_node *)): New.
31692 (extern debug_verbose (const tree_node &)): New.
31693 (extern debug_verbose (const tree_node *)): New.
31694 (extern debug_head (const tree_node &)): New.
31695 (extern debug_head (const tree_node *)): New.
31696 (extern debug_body (const tree_node &)): New.
31697 (extern debug_body (const tree_node *)): New.
31698 (extern debug (vec<tree, va_gc> &)): New.
31699 (extern debug (vec<tree, va_gc> *)): New.
31701 (debug (struct loop &)): New.
31702 (debug (struct loop *)): New.
31703 (debug_verbose (struct loop &)): New.
31704 (debug_verbose (struct loop *)): New.
31705 * tree-dump.c: Add header dependence.
31707 (extern debug (struct loop &)): New.
31708 (extern debug (struct loop *)): New.
31709 (extern debug_verbose (struct loop &)): New.
31710 (extern debug_verbose (struct loop *)): New.
31712 (debug (data_reference &)): New.
31713 (debug (data_reference *)): New.
31714 (debug (vec<data_reference_p> &)): New.
31715 (debug (vec<data_reference_p> *)): New.
31716 (debug (vec<ddr_p> &)): New.
31717 (debug (vec<ddr_p> *)): New.
31719 (extern debug (data_reference &)): New.
31720 (extern debug (data_reference *)): New.
31721 (extern debug (vec<data_reference_p> &)): New.
31722 (extern debug (vec<data_reference_p> *)): New.
31723 (extern debug (vec<ddr_p> &)): New.
31724 (extern debug (vec<ddr_p> *)): New.
31726 (debug (pt_solution &)): New.
31727 (debug (pt_solution *)): New.
31729 (extern debug (pt_solution &)): New.
31730 (extern debug (pt_solution *)): New.
31732 (debug (_var_map &)): New.
31733 (debug (_var_map *)): New.
31734 (debug (tree_live_info_d &)): New.
31735 (debug (tree_live_info_d *)): New.
31737 (extern debug (_var_map &)): New.
31738 (extern debug (_var_map *)): New.
31739 (extern debug (tree_live_info_d &)): New.
31740 (extern debug (tree_live_info_d *)): New.
31742 2013-03-28 Jan Hubicka <jh@suse.cz>
31744 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31746 2013-03-28 Ian Bolton <ian.bolton@arm.com>
31748 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31749 record only when desired or required.
31751 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
31753 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31754 *vec_extractv2di_1_rex64. Use x64 isa attribute.
31756 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31758 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31759 (*andsi3_compare0_uxtw): New pattern.
31760 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31761 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31763 2013-03-28 Jan Hubicka <jh@suse.cz>
31765 * data-streamer-in.c (streamer_read_gcov_count): New function.
31766 * gimple-streamer-out.c: Include value-prof.h.
31767 (output_gimple_stmt): Output histogram.
31768 (output_bb): Use streamer_write_gcov_count.
31769 * value-prof.c: Include data-streamer.h
31770 (dump_histogram_value): Add HIST_TYPE_MAX.
31771 (stream_out_histogram_value): New function.
31772 (stream_in_histogram_value): New function.
31773 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31774 (stream_out_histogram_value, stream_in_histogram_value): Declare.
31775 * data-streamer-out.c (streamer_write_gcov_count): New function.
31776 (streamer_write_gcov_count_stream): New function.
31777 * lto-cgraph.c (lto_output_edge): Update counter streaming.
31778 (lto_output_node): Likewise.
31779 (input_node, input_edge): Likewise.
31780 * lto-streamer-out.c (output_cfg): Update streaming.
31781 * lto-streamer-in.c (input_cfg): Likewise.
31782 * data-streamer.h (streamer_write_gcov_count,
31783 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31784 * gimple-streamer-in.c: Include value-prof.h
31785 (input_gimple_stmt): Input histograms.
31786 (input_bb): Update profile streaming.
31788 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31790 * genmodes.c (emit_max_int): New function.
31791 (emit_insn_modes_h): Added call to emit_max_function.
31792 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31794 * machmode.def: Fixed comment.
31796 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31798 * combine.c (try_combine): Removed useless assert.
31799 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31801 2013-03-28 Marek Polacek <polacek@redhat.com>
31802 Richard Biener <rguenther@suse.de>
31804 PR tree-optimization/56695
31805 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31806 build signed result of a vector comparison.
31807 * tree-cfg.c (verify_gimple_comparison): Check that a result
31808 of a vector comparison has signed type.
31810 2013-03-28 Richard Biener <rguenther@suse.de>
31812 PR tree-optimization/37021
31813 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31814 do not restrict gaps between groups.
31815 * tree-vect-stmts.c (vectorizable_load): Properly account for
31816 a gap between groups.
31818 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31820 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31821 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31824 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31826 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31827 * doc/extend.texi (Named Address Spaces): Ditto.
31828 (Variable Attributes): Ditto.
31830 2013-03-27 Kai Tietz <ktietz@redhat.com>
31832 * config.build: Add support for cygwin x64 target.
31833 * config.gcc: Likewise.
31834 * config.host: Likewise.
31835 * configure.ac: Likewise
31836 * configure: Regenerated.
31838 2013-03-27 Kai Tietz <ktietz@redhat.com>
31840 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31841 * config/i386/t-cygwin-w64: New file.
31842 * config/i386/cygwin-w64.h: New file.
31843 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31844 and add support for x64-cygwin target.
31845 (CPP_SPEC): Likewise.
31846 (CXX_WRAP_SPEC_LIST): Undefine before define.
31847 (LIBGCJ_SONAME): Use 15 as version.
31849 2013-03-27 Richard Biener <rguenther@suse.de>
31851 PR tree-optimization/56716
31852 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31853 dumping for ref nodes.
31855 2013-03-27 Martin Jambor <mjambor@suse.cz>
31857 PR tree-optimization/55334
31858 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31859 restricted pointers to arrays.
31861 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31863 * Makefile.in (.SUFFIXES): Add .cc.
31864 (.c.o): Apply same recipe for implicit rule .cc.o.
31866 2013-03-27 Richard Biener <rguenther@suse.de>
31868 PR tree-optimization/37021
31869 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31870 REALPART/IMAGPART_EXPRs around the supported refs.
31871 * tree-ssa-structalias.c (find_func_aliases): Assume that
31872 floating-point values are not used to transfer pointers.
31874 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31876 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31877 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31878 * doc/tm.texi: Regenerate.
31879 * targhooks.h (default_has_ifunc_p): New.
31880 * targhooks.c (default_has_ifunc_p): Ditto.
31881 * config/linux-protos.h: New file.
31882 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31883 hook for linux which disables support of indirect functions in android.
31884 * config/linux-android.c: New file.
31885 * config/t-linux-android.c: Ditto.
31886 * config.gcc: Added new object file linux-android.o.
31887 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31888 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31889 * varasm.c (do_assemble_alias): Likewise.
31890 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31891 doesn't support indirect functions.
31892 * configure: Regenerate.
31894 2013-03-27 Bin Cheng <bin.cheng@arm.com>
31897 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31898 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31901 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31903 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31905 2013-03-27 Terry Guo <terry.guo@arm.com>
31907 * config/arm/arm-cores.def: Added core cortex-r7.
31908 * config/arm/arm-tune.md: Regenerated.
31909 * config/arm/arm-tables.opt: Regenerated.
31910 * doc/invoke.texi: Added entry for core cortex-r7.
31912 2013-03-27 Walter Lee <walt@tilera.com>
31914 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31915 double-decrement of next_scratch_regno.
31917 2013-03-27 Walter Lee <walt@tilera.com>
31919 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31921 (insn_v1mulus): Ditto.
31922 (insn_v2muls): Ditto.
31924 2013-03-27 Walter Lee <walt@tilera.com>
31926 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31927 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31929 2013-03-27 Walter Lee <walt@tilera.com>
31931 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31932 (*sibcall_value): Ditto.
31934 2013-03-27 Walter Lee <walt@tilera.com>
31936 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31937 (insn_mnz_v8qi): ... this ...
31938 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
31940 (insn_v<n>mnz): Replaced by ...
31941 (insn_v1mnz): ... this ...
31942 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
31944 (insn_mz_<mode>): Replaced by ...
31945 (insn_mz_v8qi): ... this ...
31946 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
31948 (insn_v<n>mz): Replaced by ...
31949 (insn_v1mz): ... this ...
31950 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
31953 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
31955 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31957 2013-03-26 Roland McGrath <mcgrathr@google.com>
31959 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31960 than fprintf with a non-constant, non-format string.
31962 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31964 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31965 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
31966 operand 0 predicate.
31967 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31968 attribute. Use general_x64nomem_operand as operand 1 predicate.
31969 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31970 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31971 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31972 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31973 (mov<mode>_insv_1): Remove expander. Merge insn with
31974 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31975 Use general_x64nomem_operand as operand 1 predicate.
31976 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31977 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31978 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31979 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31980 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
31981 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31982 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31983 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31984 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
31985 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31986 (general_x64nomem_operand): Ditto.
31988 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
31990 * config/rtems.opt: Add -pthread option.
31992 2013-03-26 Richard Biener <rguenther@suse.de>
31994 * alias.c (find_base_term): Avoid redundant and not used recursion.
31995 (base_alias_check): Get the initial base term from the caller.
31996 (true_dependence_1): Compute and pass base terms to base_alias_check.
31997 (write_dependence_p): Likewise.
31998 (may_alias_p): Likewise.
32000 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
32002 * config/aarch64/aarch64.c (aarch64_classify_address): Support
32003 PC-relative load in SI modes and above only.
32005 2013-03-26 Xinyu Qi <xyqi@marvell.com>
32007 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
32008 * config/arm/iwmmxt.md (WCGR0): Update.
32009 (WCGR1, WCGR2, WCGR3): Likewise.
32011 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
32013 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
32014 Use x64 and nox64 isa attributes.
32016 2013-03-26 Richard Biener <rguenther@suse.de>
32018 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
32019 alignment computations and rely on get_object_alignment_1
32020 for the !TYPE_P case.
32021 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
32023 2013-03-26 Walter Lee <walt@tilera.com>
32025 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
32026 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
32028 2013-03-25 Jeff Law <law@redhat.com>
32030 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
32031 check for INTEGRAL_TYPE_P that was missing due to checking in
32032 wrong version of prior patch.
32034 2013-03-25 Walter Lee <walt@tilera.com>
32036 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
32037 TILEGX_INSN_SHUFFLEBYTES1.
32038 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
32040 (tilegx_builtins): Ditto.
32041 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
32043 2013-03-25 Walter Lee <walt@tilera.com>
32045 * config/tilegx/tilegx.md (floatsisf2): New pattern.
32046 (floatunssisf2): New pattern.
32047 (floatsidf2): New pattern.
32048 (floatunssidf2): New pattern.
32050 2013-03-25 Walter Lee <walt@tilera.com>
32052 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
32053 tests for constraint J, K, N, P.
32055 2013-03-25 Walter Lee <walt@tilera.com>
32057 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
32058 Use indirect/pcrel encoding.
32059 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
32062 2013-03-25 Steve Ellcey <sellcey@mips.com>
32064 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
32065 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
32066 * config/mips/mips.c (mips_option_override): Set IMADD default.
32067 * config/mips/mips.h (PTF_AVOID_IMADD): New.
32068 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
32069 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
32070 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
32071 * doc/invoke.texi (-mimadd/-mno-imadd): New.
32073 2013-03-25 Jeff Law <law@redhat.com>
32075 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
32076 slightly to avoid creating and folding useless trees. Simplify
32077 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
32079 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
32081 * config/i386/i386.md (*zero_extendsidi2): Merge with
32082 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
32083 * config/i386/predicates.md (x86_64_zext_operand): Rename from
32084 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
32085 targets. Clarify comment.
32087 2013-03-25 Martin Jambor <mjambor@suse.cz>
32089 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
32090 pass-through jump functions differently.
32091 (ipa_read_jump_function): Likewise. Also use setter functions to set
32094 2013-03-25 Martin Jambor <mjambor@suse.cz>
32096 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
32097 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
32099 (ipa_get_indirect_edge_target): New function.
32100 (devirtualization_time_bonus): New parameter known_aggs, pass it to
32101 ipa_get_indirect_edge_target. Update all callers.
32102 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
32103 ipa_get_indirect_edge_target_1 instead of calling
32104 ipa_get_indirect_edge_target.
32105 (create_specialized_node): Pass aggvlas to
32106 ipcp_discover_new_direct_edges.
32108 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32110 * config/arm/arm.md (f_sels, f_seld): New types.
32111 (*cmov<mode>): New pattern.
32112 * config/arm/predicates.md (arm_vsel_comparison_operator): New
32115 2013-03-25 Kai Tietz <ktietz@redhat.com>
32117 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
32118 POSIX-printf for mingw-hosted builds.
32120 2013-03-25 Richard Biener <rguenther@suse.de>
32122 PR middle-end/56694
32123 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
32124 must-not-throw stmt location.
32126 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32128 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
32129 Emit load-acquire versions when acq is true.
32130 (arm_emit_store_exclusive): Add rel parameter.
32131 Emit store-release versions when rel is true.
32132 (arm_split_compare_and_swap): Use acquire-release instructions
32134 of barriers when appropriate.
32135 (arm_split_atomic_op): Likewise.
32136 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
32137 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
32138 (VUNSPEC_SLX): Likewise.
32139 (VUNSPEC_LDA): Likewise.
32140 (VUNSPEC_STL): Likewise.
32141 * config/arm/sync.md (atomic_load<mode>): New pattern.
32142 (atomic_store<mode>): Likewise.
32143 (arm_load_acquire_exclusive<mode>): Likewise.
32144 (arm_load_acquire_exclusivesi): Likewise.
32145 (arm_load_acquire_exclusivedi): Likewise.
32146 (arm_store_release_exclusive<mode>): Likewise.
32148 2013-03-25 Catherine Moore <clm@codesourcery.com>
32150 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
32151 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
32152 * config/mip/predicates.md (lwsp_swsp_operand,
32153 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
32154 sb16_operand, db4_operand, db7_operand, ib3_operand,
32155 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
32156 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
32157 andi16_operand): New predicates.
32158 * config/mips/mips.md (compression): New attribute.
32159 (enabled): New attribute.
32160 (length): Consider compression in computing length.
32161 (shift_compression): New code attribute.
32162 (*add<mode>3): New operands. Record compression.
32163 (sub<mode>3): Likewise.
32164 (one_cmpl<mode>2): Likewise.
32165 (*and<mode>3): Likewise.
32166 (*ior<mode>3): Likewise.
32167 (unnamed pattern for xor): Likewise.
32168 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
32169 (*<optab><mode>3): Likewise.
32170 (*mov<mode>_internal: Likewise.
32171 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
32172 (mips_unsigned_immediate_p): New.
32173 (umips_lwsp_swsp_address_p): New.
32174 (m16_based_address_p): New.
32175 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
32176 (mips_unsigned_immediate_p): New prototype.
32177 (lwsp_swsp_address_p): New prototype.
32178 (m16_based_address_p): New prototype.
32179 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
32180 (mips_signed_immediate_p): New function.
32181 (m16_based_address_p): New function.
32182 (lwsp_swsp_address_p): New function.
32183 (mips_print_operand_punctuation): Recognize short delay slot insns
32184 for microMIPS.add<mode>3"
32186 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32189 * config/arm/iterators.md (v_cmp_result): New mode attribute.
32190 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
32192 2013-03-25 Richard Biener <rguenther@suse.de>
32194 PR tree-optimization/56689
32195 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
32198 2013-03-25 Richard Biener <rguenther@suse.de>
32200 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
32202 (memory_references): Likewise.
32203 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
32204 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
32205 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
32206 (gather_mem_refs_in_loops): Fold into ...
32207 (analyze_memory_references): ... this. Move initialization
32208 to tree_ssa_lim_initialize.
32209 (fill_always_executed_in): Rename to ...
32210 (fill_always_executed_in_1): ... this.
32211 (fill_always_executed_in): Move contains_call computation to
32212 this new function from ...
32213 (tree_ssa_lim_initialize): ... here.
32214 (tree_ssa_lim): Call fill_always_executed_in.
32216 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
32218 * postreload.c (reload_combine): Fix code detecting returns.
32220 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
32222 * function.c (emit_use_return_register_into_block): On cc0 targets,
32223 do not emit the sequence between cc0 setter and user.
32225 2013-03-25 Kai Tietz <ktietz@redhat.com>
32227 * config/i386/predicates.md (local_symbolic_operand): Interpret
32228 dll-imported symbols as none-local.
32230 2013-03-25 Richard Biener <rguenther@suse.de>
32232 * tree-ssa-loop-im.c (struct depend): Remove.
32233 (struct lim_aux_data): Make depends a vec of gimples.
32234 (free_lim_aux_data): Adjust.
32235 (add_dependency): Likewise.
32236 (set_level): Likewise.
32238 2013-03-25 Richard Biener <rguenther@suse.de>
32240 PR middle-end/56434
32241 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
32242 the pointer returned by calls with ECF_MALLOC set.
32244 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
32246 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
32248 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
32250 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
32251 using MMXMODE mode iterator.
32252 (*move<mode>_internal): Merge with *movv2sf_internal and
32253 *movv2sf_internal_rex64 using MMXMODE mode iterator.
32255 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
32257 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
32258 (record_last_mem_set_info): Likewise.
32260 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
32261 of XNEWVEC followed by memset.
32262 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
32264 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
32266 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32267 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
32268 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
32269 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
32270 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
32271 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
32272 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
32273 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
32274 BARRIER_P instead of GET_CODE.
32276 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32278 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
32279 inaccuracy in the probing code.
32281 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
32282 (ctrapdi4): Likewise.
32284 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32286 * calls.c (expand_call): Add missing guard to code handling return
32287 of non-BLKmode structures in MSB.
32288 * function.c (expand_function_end): Likewise.
32290 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32292 * combine.c (try_combine): Adjust comment. Do not add the set of
32293 insn #0 if the destination indirectly is set or dies in insn #2.
32294 Tidy up code to distribute a new note.
32296 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32298 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
32299 also for alternatives 16 and 17.
32301 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32303 * config/i386/sse.md (*mov<mode>_internal): Merge with
32304 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
32305 Emit insn template depending on type attribute. Use
32306 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32307 movd instead of movq mnemonic for interunit moves. Rewrite mode
32308 attribute calculation. Remove unit attribute calculation.
32309 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
32310 Set prefix_data16 attribute for DImode ssemov types.
32311 Use Ym instead of y for SSE-MMX conversion alternatives.
32312 Reorder operand constraints.
32314 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
32316 * df.h (df_insn_delete): Adjust prototype.
32317 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
32318 and let it decide whether mark the basic block dirty.
32319 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
32320 * df-scan.c (df_insn_info_delete): New helper function, split
32321 off from df_insn_delete.
32322 (df_scan_free_bb_info): Use it.
32323 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
32325 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
32326 that the insn is actually an insn and it has a non-NULL basic block.
32327 Do not mark basic block dirty if only deleting a DEBUG_INSN.
32329 2013-03-22 Richard Biener <rguenther@suse.de>
32331 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
32333 (mem_ref_alloc): Do not allocate them.
32334 (refs_independent_p): Do not query or maintain a cache.
32336 2013-03-22 Richard Biener <rguenther@suse.de>
32338 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
32339 (gather_mem_refs_in_loops): Do not compute it.
32340 (analyze_memory_references): Do not allocate it.
32341 (tree_ssa_lim_finalize): Do not free it.
32342 (for_all_locs_in_loop): Do not query all_refs_in_loop.
32344 2013-03-22 Richard Biener <rguenther@suse.de>
32346 * is-a.h (as_a): Use gcc_checking_assert.
32348 2013-03-22 Ian Bolton <ian.bolton@arm.com>
32350 * config/aarch64/aarch64.c (aarch64_print_operand): New
32351 format specifier for printing a constant in hex.
32352 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
32353 format specifier for printing second operand.
32355 2013-03-22 Richard Biener <rguenther@suse.de>
32357 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
32359 (gather_mem_refs_in_loops): Perform store accumulation here.
32360 (create_vop_ref_mapping_loop): Remove.
32361 (create_vop_ref_mapping): Likewise.
32362 (analyze_memory_references): Initialize refs_stored_in_loop.
32363 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
32364 (record_indep_loop): Remove.
32365 (record_dep_loop): New function.
32366 (ref_indep_loop_p_1): Adjust to only walk over references
32367 in the loop, not its subloops.
32368 (ref_indep_loop_p): Rename to ...
32369 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32370 maintaining a more fine-grained cache.
32371 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32372 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32374 2013-03-22 Richard Biener <rguenther@suse.de>
32376 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32377 (struct mem_ref): Make accesses_in_loop a vec of a vec of
32378 aggregate mem_ref_loc.
32379 (free_mem_ref_locs): Inline into ...
32380 (memref_free): ... this and adjust.
32381 (mem_ref_alloc): Adjust.
32382 (mem_ref_locs_alloc): Remove.
32383 (record_mem_ref_loc): Adjust.
32384 (get_all_locs_in_loop): Rewrite into ...
32385 (for_all_locs_in_loop): ... this iterator.
32386 (rewrite_mem_ref_loc): New functor.
32387 (rewrite_mem_refs): Use for_all_locs_in_loop.
32388 (sm_set_flag_if_changed): New functor.
32389 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32390 (ref_always_accessed): New functor.
32391 (ref_always_accessed_p): Use for_all_locs_in_loop.
32393 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32395 * tree-pass.h (PROP_gimple_lvec): New.
32396 * passes.c (dump_properties): Handle PROP_gimple_lvec.
32397 (init_optimization_passes): Move pass_lower_vector.
32398 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32400 (pass_lower_vector): Provide PROP_gimple_lvec.
32401 (pass_lower_vector_ssa): Likewise.
32402 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32404 2013-03-21 Mark Wielaard <mjw@redhat.com>
32406 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32408 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32410 * config/i386/i386.md (*movdi_internal): Disparage slightly
32411 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
32412 conversion alternatives.
32414 2013-03-21 Jakub Jelinek <jakub@redhat.com>
32416 PR middle-end/48087
32417 * diagnostic.def (DK_WERROR): New kind.
32418 * diagnostic.h (werrorcount): Define.
32419 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32420 promoted to DK_ERROR, increment DK_WERROR counter instead of
32422 * toplev.c (toplev_main): Call print_ignored_options even if
32423 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
32424 even if just werrorcount is non-zero.
32427 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32429 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32430 (string_cst_pool_decl): New function.
32431 (optimize_one_addr_into_implicit_ptr): New function.
32432 (resolve_addr_in_expr): Optimize DWARF location expression
32433 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32434 which doesn't live in memory, but has DW_AT_location or
32435 DW_AT_const_value, or refers to a string literal, into
32436 DW_OP_GNU_implicit_pointer.
32437 (optimize_location_into_implicit_ptr): New function.
32438 (resolve_addr): If removing DW_AT_location of a variable because
32439 it was DW_OP_addr of address of the variable, but the variable doesn't
32440 live in memory, try to emit const value attribute for the initializer.
32442 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32444 * tree.h (VECTOR_TYPE_P): New macro.
32445 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32446 TYPE_MODE): Use it.
32447 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32448 VEC_COND_EXPR cannot be lvalues.
32449 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32451 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32453 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32454 Restrict the transformation to equal modes.
32456 2013-03-21 Richard Biener <rguenther@suse.de>
32458 PR tree-optimization/39326
32459 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32460 (MEM_ANALYZABLE): Adjust.
32461 (record_mem_ref_loc): Move bitmap ops ...
32462 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
32463 unanalyzable refs, do not record locations for it.
32464 (analyze_memory_references): Allocate ref zero as shared
32466 (refs_independent_p): Do not test for unanalyzed mems here.
32467 (ref_indep_loop_p_1): Special-case disambiguation against
32468 the unanalyzed ref.
32469 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32471 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
32473 * config/arm/arm-protos.h (tune_params): Add
32474 prefer_neon_for_64bits field.
32475 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32476 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32477 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32478 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32479 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32480 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32481 (arm_option_override): Handle -mneon-for-64bits new option.
32482 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32483 (prefer_neon_for_64bits): Declare new variable.
32484 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32485 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32486 (arch_enabled): Handle new arch types. Remove support for onlya8
32488 (one_cmpldi2): Use new arch names.
32489 (zero_extend<mode>di2, extend<mode>di2): Ditto.
32490 * config/arm/arm.opt (mneon-for-64bits): Add option.
32491 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32492 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32493 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32495 * doc/invoke.texi (-mneon-for-64bits): Document.
32497 2013-03-21 Richard Biener <rguenther@suse.de>
32499 PR tree-optimization/39326
32500 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32501 (sort_bbs_in_loop_postorder_cmp): New function.
32502 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32504 2013-03-21 Richard Biener <rguenther@suse.de>
32506 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32507 (vect_insert_into_interleaving_chain): Likewise.
32508 (vect_drs_dependent_in_basic_block): Inline ...
32509 (vect_slp_analyze_data_ref_dependence): ... here. New function,
32511 (vect_analyze_data_ref_dependence): ... here. Simplify.
32512 (vect_check_interleaving): Simplify.
32513 (vect_analyze_data_ref_dependences): Likewise. Split out ...
32514 (vect_slp_analyze_data_ref_dependences): ... this new function.
32515 (dr_group_sort_cmp): New function.
32516 (vect_analyze_data_ref_accesses): Compute data-reference groups
32517 here instead of in vect_analyze_data_ref_dependence. Use
32518 a more efficient algorithm.
32519 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32520 vect_slp_analyze_data_ref_dependences. Call
32521 vect_analyze_data_ref_accesses earlier.
32522 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32523 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32524 (vect_slp_analyze_data_ref_dependences): New prototype.
32526 2013-03-21 Richard Biener <rguenther@suse.de>
32528 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32529 ref is stored in the loop.
32530 (find_refs_for_sm): Walk only over all stores.
32531 (store_motion_loop): Allocate from lim_bitmap_obstack.
32532 (store_motion): Likewise.
32534 2013-03-21 Richard Biener <rguenther@suse.de>
32536 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32537 Update virtual SSA form.
32539 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32541 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32542 * configure: Regenerate.
32543 * config.in: Regenerate.
32544 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32545 if !HAVE_LD_EH_FRAME_CIEV3.
32547 2013-03-21 Richard Biener <rguenther@suse.de>
32549 * tree-cfg.c (verify_expr_no_block): New function.
32550 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32551 nor DECL_VALUE_EXPR have locations with associated blocks.
32552 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32553 (clear_unused_block_pointer): Remove code dealing with
32554 blocks in DECL_DEBUG_EXPR locations.
32556 2013-03-21 Richard Biener <rguenther@suse.de>
32558 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32559 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
32560 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32561 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32562 instead of DECL_DEBUG_EXPR_IS_FROM.
32563 * gimplify.c (gimplify_modify_expr): Likewise.
32564 * tree-cfg.c (verify_expr_location_1): Likewise.
32565 * tree-complex.c (create_one_component_var): Likewise.
32566 * tree-sra.c (create_access_replacement): Likewise.
32567 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32568 (clear_unused_block_pointer): Likewise.
32569 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32570 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32571 * var-tracking.c (var_debug_decl): Likewise.
32572 (track_expr_p): Likewise.
32573 * tree-inline.c (add_local_variables): Likewise. Set
32574 DECL_HAS_DEBUG_EXPR_P after copying it.
32575 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32576 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
32578 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32581 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32582 * configure: Regenerate.
32583 * config.in: Regenerate.
32584 * config/i386/i386.md (*movdf_internal): Use
32585 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32586 movd instead of movq mnemonic for interunit moves.
32587 (*movdi_internal): Ditto.
32589 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32591 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32592 (abd<mode>_3): New pattern.
32593 (aba<mode>_3): New pattern.
32594 (fabd<mode>_3): New pattern.
32596 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32598 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32599 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32600 occurrence of REGISTER_PREFIX as its empty string.
32602 2013-03-20 Jeff Law <law@redhat.com>
32604 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32605 addititional equivalences for equality comparisons between an SSA_NAME
32606 and a constant where the SSA_NAME was set from a widening conversion.
32608 2013-03-20 Walter Lee <walt@tilera.com>
32610 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32612 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32614 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32615 depending on type attribute.
32616 (*movti_internal): Ditto.
32617 (*movtf_internal): Ditto.
32618 (*movxf_internal): Ditto.
32619 (*movdf_internal): Ditto.
32620 (*movsf_internal): Ditto.
32622 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32624 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32625 maybe_vex for sselog1 and ssemov types.
32626 (*movdi_internal): Reorder operand constraints.
32627 (*movsi_internal): Ditto. Set prefix attribute to
32628 maybe_vex for sselog1 and ssemov types.
32629 (*movtf_internal): Set prefix attribute to maybe_vex
32630 for sselog1 and ssemov types.
32631 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32632 DImode ssemov types. Reorder operand constraints.
32633 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32634 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32635 attribute for SImode ssemov types. Reorder operand constraints.
32637 2013-03-20 Martin Jambor <mjambor@suse.cz>
32639 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32640 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32642 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32644 * config/rs6000/predicates.md (indexed_address, update_address_mem
32645 update_indexed_address_mem): New predicates.
32646 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32647 attribute for load/store instructions.
32648 * config/rs6000/dfp.md (movsd_store): Likewise.
32649 (movsd_load): Likewise.
32650 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32651 (unnamed HI->DI extend define_insn): Likewise.
32652 (unnamed SI->DI extend define_insn): Likewise.
32653 (unnamed QI->SI extend define_insn): Likewise.
32654 (unnamed QI->HI extend define_insn): Likewise.
32655 (unnamed HI->SI extend define_insn): Likewise.
32656 (unnamed HI->SI extend define_insn): Likewise.
32657 (extendsfdf2_fpr): Likewise.
32658 (movsi_internal1): Likewise.
32659 (movsi_internal1_single): Likewise.
32660 (movhi_internal): Likewise.
32661 (movqi_internal): Likewise.
32662 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32663 attribute for load/store instructions.
32664 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32666 (mov<mode>_softfloat): Likewise.
32667 (mov<mode>_hardfloat32): Likewise.
32668 (mov<mode>_hardfloat64): Likewise.
32669 (mov<mode>_softfloat64): Likewise.
32670 (movdi_internal32): Likewise.
32671 (movdi_internal64): Likewise.
32672 (probe_stack_<mode>): Likewise.
32674 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32676 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32677 floating point, and decimal floating point to reload iterator.
32679 * config/rs6000/constraints.md (wl constraint): New constraints to
32680 return FLOAT_REGS if certain options are used to reduce the number
32681 of separate patterns that exist in the file.
32682 (wx constraint): Likewise.
32683 (wz constraint): Likewise.
32685 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32686 -mdebug=reg, print wg, wl, wx, and wz constraints.
32687 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32688 Initialize the reload functions for 64-bit binary/decimal floating
32690 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32691 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32692 create the buffer on the stack to overcome not having a 32-bit
32694 (rs6000_emit_move): Likewise.
32695 (rs6000_secondary_memory_needed_rtx): Likewise.
32696 (rs6000_alloc_sdmode_stack_slot): Likewise.
32697 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32698 via xxlxor, just like DFmode 0.0.
32700 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32701 define as 1 if we are running on a power7 or newer.
32702 (enum r6000_reg_class_enum): Add new constraints.
32704 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32705 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32706 with other moves by using conditional constraits (wg). Use LFIWZX
32707 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32708 (movsd splitter): Likewise.
32709 (movsd_hardfloat): Likewise.
32710 (movsd_softfloat): Likewise.
32712 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32713 binary and decimal floating point moves.
32714 (fmove_ok): New attributes to combine binary and decimal floating
32715 point moves, and to combine power6x (mfpgpr) moves along normal
32717 (real_value_to_target): Likewise.
32718 (f32_lr): Likewise.
32719 (f32_lm): Likewise.
32720 (f32_li): Likewise.
32721 (f32_sr): Likewise.
32722 (f32_sm): Likewise.
32723 (f32_si): Likewise.
32724 (movsf): Combine binary and decimal floating point moves. Combine
32725 power6x (mfpgpr) moves with other moves by using conditional
32726 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32727 (mov<mode> for SFmode/SDmode); Likewise.
32728 (SFmode/SDmode splitters): Likewise.
32729 (movsf_hardfloat): Likewise.
32730 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32731 (movsf_softfloat): Likewise.
32732 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32734 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32735 wx and wz constraints.
32737 * config/rs6000/constraints.md (wg constraint): New constraint to
32738 return FLOAT_REGS if -mmfpgpr (power6x) was used.
32740 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32743 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32744 -mdebug=reg, print wg, wl, wx, and wz constraints.
32745 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32746 Initialize the reload functions for 64-bit binary/decimal floating
32748 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32749 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32750 create the buffer on the stack to overcome not having a 32-bit
32752 (rs6000_emit_move): Likewise.
32753 (rs6000_secondary_memory_needed_rtx): Likewise.
32754 (rs6000_alloc_sdmode_stack_slot): Likewise.
32755 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32756 via xxlxor, just like DFmode 0.0.
32758 * config/rs6000/dfp.md (movdd): Delete, combine with binary
32759 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32760 with other moves by using conditional constraits (wg). Use LFIWZX
32761 and STFIWX for loading SDmode on power7.
32762 (movdd splitters): Likewise.
32763 (movdd_hardfloat32): Likewise.
32764 (movdd_softfloat32): Likewise.
32765 (movdd_hardfloat64_mfpgpr): Likewise.
32766 (movdd_hardfloat64): Likewise.
32767 (movdd_softfloat64): Likewise.
32769 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32770 64-bit binary and decimal floating point moves.
32771 (FMOVE64X): Likewise.
32772 (movdf): Combine 64-bit binary and decimal floating point moves.
32773 Combine power6x (mfpgpr) moves with other moves by using
32774 conditional constraits (wg).
32775 (mov<mode> for DFmode/DDmode): Likewise.
32776 (DFmode/DDmode splitters): Likewise.
32777 (movdf_hardfloat32): Likewise.
32778 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32779 (movdf_softfloat32): Likewise.
32780 (movdf_hardfloat64_mfpgpr): Likewise.
32781 (movdf_hardfloat64): Likewise.
32782 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32783 (movdf_softfloat64): Likewise.
32784 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32785 (reload_<mode>_load): Move to later in the file so they aren't in
32786 the middle of the floating point move insns.
32787 (reload_<mode>_store): Likewise.
32789 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32792 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32793 constraint if -mdebug=reg.
32794 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32795 Enable using dd reload support if needed.
32797 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32798 binary and decimal floating point moves in rs6000.md.
32799 (movtd_internal): Likewise.
32801 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32802 decimal floating point moves.
32804 (movtf_internal): Likewise.
32805 (mov<mode>_internal, TDmode/TFmode): Likewise.
32806 (movtf_softfloat): Likewise.
32807 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32809 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32810 movdi_internal64, using wg constraint for move direct operations.
32811 (movdi_internal64): Likewise.
32813 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32814 MODES_TIEABLE_P for selected modes. Print the numerical value of
32815 the various virtual registers. Use GPR/FPR first/last values,
32816 instead of hard coding the register numbers. Print which modes
32817 have reload functions registered.
32818 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32819 settings before/after setting cpu, target and subtarget settings.
32820 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32821 and for secondary reload failures in rs6000_secondary_reload_inner.
32822 (rs6000_secondary_reload_fail): Likewise.
32823 (rs6000_secondary_reload_inner): Likewise.
32825 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32826 macros for first/last GPR and FPR registers.
32827 (LAST_GPR_REGNO): Likewise.
32828 (FIRST_FPR_REGNO): Likewise.
32829 (LAST_FPR_REGNO): Likewise.
32831 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32832 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32833 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32834 (vcond<mode><mode>): Likewise.
32835 (vcondu<mode><mode>): Likewise.
32836 (vector_gtu<mode>): Likewise.
32837 (vector_gte<mode>): Likewise.
32838 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32839 to prevent the compiler from converting DImode operations to TImode.
32840 (ior<mode>3): Likewise.
32841 (and<mode>3): Likewise.
32842 (one_cmpl<mode>2): Likewise.
32843 (nor<mode>3): Likewise.
32844 (andc<mode>3): Likewise.
32846 * config/rs6000/constraints.md (wt constraint): New constraint
32847 that returns VSX_REGS if TImode is allowed in VSX registers.
32849 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32850 constant under VSX.
32852 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32853 similar to TImode, but it is restricted to being in the GPRs.
32855 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32856 TImode to occupy a single VSX register.
32858 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32859 -mvsx-timode for power7/power8.
32860 (power7 cpu): Likewise.
32861 (power8 cpu): Likewise.
32863 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32864 sure that TFmode/TDmode take up two registers if they are ever
32865 allowed in the upper VSX registers.
32866 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32868 (rs6000_init_hard_regno_mode_ok): Likewise.
32869 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32870 constraint. Print if LRA is turned on.
32871 (rs6000_option_override_internal): Give an error if -mvsx-timode
32872 and VSX is not enabled.
32873 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32874 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32875 to reg+offset addressing. Use PTImode when checking offset
32876 addresses for validity.
32877 (reg_offset_addressing_ok_p): Likewise.
32878 (rs6000_legitimate_offset_address_p): Likewise.
32879 (rs6000_legitimize_address): Likewise.
32880 (rs6000_legitimize_reload_address): Likewise.
32881 (rs6000_legitimate_address_p): Likewise.
32882 (rs6000_eliminate_indexed_memrefs): Likewise.
32883 (rs6000_emit_move): Likewise.
32884 (rs6000_secondary_reload): Likewise.
32885 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
32886 reloads to fpr registers to continue to use reg+offset addressing,
32887 but 64-bit reloads to altivec registers need reg+reg addressing.
32888 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32889 it. Treat LO_SUM like a PLUS operation.
32890 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32891 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32892 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32893 registers to share a register with a smaller sized type, since VSX
32894 puts scalars in the upper 64-bits.
32895 (print_operand): Add support for PTImode.
32896 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32897 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32898 registers, but don't have arithmetic support.
32899 (rs6000_memory_move_cost): Add test for VSX.
32900 (rs6000_opt_masks): Add -mvsx-timode.
32902 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32905 (VSr): Use wt constraint for TImode.
32906 (VSv): Drop TImode support.
32907 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32908 (vsx_movti_64bit): Likewise.
32909 (vsx_movti_32bit): Likewise.
32910 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32911 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32912 one '?' on the appropriate output constraint. Do not allow TImode
32913 logical operations on 32-bit systems.
32914 (vsx_ior<mode>3): Likewise.
32915 (vsx_xor<mode>3): Likewise.
32916 (vsx_one_cmpl<mode>2): Likewise.
32917 (vsx_nor<mode>3): Likewise.
32918 (vsx_andc<mode>3): Likewise.
32919 (vsx_concat_<mode>): Likewise.
32920 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32922 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32923 OPTION_MASK_VSX_TIMODE.
32924 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32925 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32927 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32928 (TI2 iterator): New iterator for TImode, PTImode.
32929 (wd mode attribute): Add values for vector types.
32930 (movti_string): Replace TI move operations with operations for TImode
32931 and PTImode. Add support for TImode being allowed in VSX registers.
32932 (mov<mode>_string, TImode/PTImode): Likewise.
32933 (movti_ppc64): Likewise.
32934 (mov<mode>_ppc64, TImode/PTImode): Likewise.
32935 (TI mode splitters): Likewise.
32937 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32940 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
32942 PR tree-optimization/56355
32943 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32944 Also handle integers with undefined overflow.
32946 2013-03-20 Catherine Moore <clm@codesourcery.com>
32947 Maciej W. Rozycki <macro@codesourcery.com>
32948 Tom de Vries <tom@codesourcery.com>
32949 Nathan Sidwell <nathan@codesourcery.com>
32950 Iain Sandoe <iain@codesourcery.com>
32951 Nathan Froyd <froydnj@codesourcery.com>
32952 Chao-ying Fu <fu@mips.com>
32954 * doc/extend.texi: (micromips, nomicromips, nocompression):
32955 Document new function attributes.
32956 * doc/invoke.texi (minterlink-compressed, mmicromips,
32957 m14k, m14ke, m14kec): Document new options.
32958 (minterlink-mips16): Update documentation.
32959 * doc/md.texi (ZC, ZD): Document new constraints.
32960 * configure.ac (gcc_cv_as_micromips): Check if linker
32961 supports the .set micromips directive.
32962 * configure: Regenerate.
32963 * config.in: Regenerate.
32964 * config/mips/mips-tables.opt: Regenerate.
32965 * config/mips/micromips.md: New file.
32966 * constraints.md (ZC, ZD): New constraints.
32967 * config/mips/predicates.md (movep_src_register): New predicate.
32968 (movep_src_operand): New predicate.
32969 (non_volatile_mem_operand): New predicate.
32970 * config/mips/mips.md (multimem): New type.
32971 (length): Differentiate between 17-bit and 18-bit branch offsets.
32972 (MOVEP1, MOVEP2): New mode iterator.
32973 (mov_<load>l): Use ZC constraint.
32974 (mov_<load>r): Likewise.
32975 (mov_<store>l): Likewise.
32976 (mov_<store>r): Likewise.
32977 (*branch_equality<mode>_inverted): Add microMIPS support.
32978 (*branch_equality<mode>): Likewise.
32979 (*jump_absolute): Likewise.
32980 (indirect_jump_<mode>): Likewise.
32981 (tablejump_<mode>): Likewise.
32982 (<optab>_internal): Likewise.
32983 (sibcall_internal): Likewise.
32984 (sibcall_value_internal): Likewise.
32985 (prefetch): Use constraint ZD.
32986 * config/mips/mips.opt (minterlink-compressed): New option.
32987 (minterlink-mips16): Now an alias for minterlink-compressed.
32988 (mmicromips): New option.
32989 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32990 (compare_and_swap_12): Likewise.
32991 (sync_add<mode>): Likewise.
32992 (sync_<optab>_12): Likewise.
32993 (sync_old_<optab>_12): Likewise.
32994 (sync_new_<optab>_12): Likewise.
32995 (sync_nand_12): Likewise.
32996 (sync_old_nand_12): Likewise.
32997 (sync_new_nand_12): Likewise.
32998 (sync_sub<mode>): Likewise.
32999 (sync_old_add<mode>): Likewise.
33000 (sync_old_sub<mode>): Likewise.
33001 (sync_new_add<mode>): Likewise.
33002 (sync_new_sub<mode>): Likewise.
33003 (sync_<optab><mode>): Likewise.
33004 (sync_old_<optab><mode>): Likewise.
33005 (sync_new_<optab><mode>): Likewise.
33006 (sync_nand<mode>): Likewise.
33007 (sync_old_nand<mode>): Likewise.
33008 (sync_new_nand<mode>): Likewise.
33009 (sync_lock_test_and_set<mode>): Likewise.
33010 (test_and_set_12): Likewise.
33011 (atomic_compare_and_swap<mode>): Likewise.
33012 (atomic_exchange<mode>_llsc): Likewise.
33013 (atomic_fetch_add<mode>_llsc): Likewise.
33014 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33015 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33016 (umips_save_restore_pattern_p): Likewise.
33017 (umips_load_store_pair_p): Likewise.
33018 (umips_output_load_store_pair): Likewise.
33019 (umips_movep_target_p): Likewise.
33020 (umips_12bit_offset_address_p): Likewise.
33021 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33022 (mips_base_mips16): Rename this...
33023 (mips_base_compression_flags): ...to this. Update all uses.
33024 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33025 (mips_mips16_decl_p): Delete.
33026 (mips_nomips16_decl_p): Delete.
33027 (mips_get_compress_on_flags): New function.
33028 (mips_get_compress_off_flags): New function.
33029 (mips_get_compress_mode): New function.
33030 (mips_get_compress_on_name): New function.
33031 (mips_get_compress_off_name): New function.
33032 (mips_insert_attributes): Support multiple compression types.
33033 (mips_merge_decl_attributes): Likewise.
33034 (umips_12bit_offset_address_p): New function.
33035 (mips_start_function_definition): Emit .set micromips directive.
33036 (mips_call_may_need_jalx_p): New function.
33037 (mips_function_ok_for_sibcall): Add microMIPS support.
33038 (mips_print_operand_punctuation): Support short delay slots and
33040 (umips_swm_mask, umips_swm_encoding): New.
33041 (umips_build_save_restore): New function.
33042 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33043 (was_mips16_p): Remove.
33044 (old_compression_mode): New.
33045 (mips_set_compression_mode): New function.
33046 (mips_set_current_function): Add microMIPS support.
33047 (mips_option_override): Likewise.
33048 (umips_save_restore_pattern_p): New function.
33049 (umips_output_save_restore): New function.
33050 (umips_load_store_pair_p_1): New function.
33051 (umips_load_store_pair_p): New function.
33052 (umips_output_load_store_pair_1): New function.
33053 (umips_output_load_store_pair): New function.
33054 (umips_movep_target_p) New function.
33055 (mips_prepare_pch_save): Add microMIPS support.
33056 * config/mips/mips.h (TARGET_COMPRESSION): New.
33057 (TARGET_CPU_CPP_BUILTINS): Update macro
33058 to use new compression flags and to support microMIPS.
33059 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33060 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33061 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33062 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33063 (ASM_SPEC): Support mmicromips and mno-micromips.
33064 (M16STORE_REG_P): New macro.
33065 (MIPS_CALL): Support TARGET_MICROMIPS.
33066 (MICROMIPS_J): New macro.
33067 (mips_base_mips16): Rename this...
33068 (mips_base_compression_flags): ...to this.
33069 (UMIPS_12BIT_OFFSET_P): New macro.
33070 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33071 (MULTILIB_DIRNAMES): Likewise.
33072 2013-03-20 Richard Biener <rguenther@suse.de>
33074 PR tree-optimization/56661
33075 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
33076 the result does not have to be distinct.
33078 2013-03-20 Richard Biener <rguenther@suse.de>
33080 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
33083 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33084 Steven Bosscher <steven@gcc.gnu.org>
33086 PR rtl-optimization/56605
33087 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
33089 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33092 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
33093 that require movd instead of movq.
33095 2013-03-20 Richard Biener <rguenther@suse.de>
33097 * tree-ssa-structalias.c (struct variable_info): Add pointer
33098 to the first field of an aggregate with sub-vars. Make
33099 this and the pointer to the next subfield its ID.
33100 (vi_next): New function.
33101 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
33102 storedanything_id, integer_id): Increment by one.
33103 (new_var_info, get_call_vi, lookup_call_clobber_vi,
33104 get_call_clobber_vi): Adjust.
33105 (solution_set_expand): Simplify and speedup.
33106 (solution_set_add): Inline into ...
33107 (set_union_with_increment): ... this. Adjust accordingly.
33108 (do_sd_constraint): Likewise.
33109 (do_ds_constraint): Likewise.
33110 (do_complex_constraint): Simplify.
33111 (build_pred_graph): Adjust.
33112 (solve_graph): Likewise. Simplify and speedup.
33113 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
33114 get_constraint_for_component_ref, get_constraint_for_1,
33115 first_vi_for_offset, first_or_preceding_vi_for_offset,
33116 create_function_info_for, create_variable_info_for_1,
33117 create_variable_info_for, intra_create_variable_infos): Adjust.
33118 (init_base_vars): Push NULL for ID zero.
33119 (compute_points_to_sets): Adjust.
33121 2013-03-20 Richard Biener <rguenther@suse.de>
33123 * cfgloop.c (verify_loop_structure): Streamline and avoid
33124 ICEing on corrupt loop tree.
33125 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
33128 2013-03-20 Richard Biener <rguenther@suse.de>
33130 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
33131 check whether an SSA update is needed.
33133 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
33135 * config/mips/constraints.md (T): Rename to...
33139 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
33140 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
33142 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33144 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
33145 (*subsi3_carryin_uxtw): Likewise.
33147 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33149 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
33150 (*rorsi3_insn_uxtw): Likewise.
33152 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33154 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
33155 (*extrsi5_insn_uxtw): Likewise.
33157 2013-03-19 Richard Biener <rguenther@suse.de>
33159 PR tree-optimization/56273
33160 * passes.c (init_optimization_passes): Move second VRP after DOM.
33162 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
33164 * config/i386/i386.md (*movti_internal): Merge from
33165 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
33166 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
33167 nox64 isa attributes.
33169 2013-03-18 Richard Biener <rguenther@suse.de>
33171 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
33173 (merge_node_constraints): Likewise.
33174 (build_succ_graph): Likewise.
33175 (valid_graph_edge): Inline into single caller.
33176 (unify_nodes): Likewise. Use bitmap_set_bit return value
33178 (scc_visit): Fix formatting and variable use.
33179 (do_sd_constraint): Use gcc_checking_assert.
33180 (do_ds_constraint): Likewise.
33181 (do_complex_constraint): Likewise.
33182 (condense_visit): Likewise. Cleanup.
33183 (dump_pred_graph): New function.
33184 (perform_var_substitution): Dump the pred-graph before
33185 variable substitution.
33186 (find_equivalent_node): Use gcc_checking_assert.
33187 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
33189 2013-03-18 Richard Biener <rguenther@suse.de>
33191 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33192 Remove cond_expr_stmt_list argument and do not gimplify the
33194 (vect_loop_versioning): Adjust.
33195 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
33196 Cleanup to use less temporaries.
33197 (vect_create_data_ref_ptr): Cleanup.
33199 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33201 PR tree-optimization/56635
33202 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
33203 require types_compatible_p types.
33205 2013-03-18 Nick Clifton <nickc@redhat.com>
33207 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
33208 spurious backslash.
33210 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
33211 Add missing line to comment describing function.
33213 2013-03-18 Richard Biener <rguenther@suse.de>
33215 PR tree-optimization/56210
33216 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33217 Handle string / character search functions.
33218 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33220 2013-03-18 Richard Biener <rguenther@suse.de>
33222 PR middle-end/56483
33223 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
33224 and implement properly.
33225 * gimple.h (gimple_cond_single_var_p): Remove.
33227 2013-03-18 Richard Biener <rguenther@suse.de>
33229 * tree-data-ref.h (find_data_references_in_loop): Declare.
33230 * tree-data-ref.c (get_references_in_stmt): Use a stack
33231 vector pre-allocated in the callers.
33232 (find_data_references_in_stmt): Adjust.
33233 (graphite_find_data_references_in_stmt): Likewise.
33234 (create_rdg_vertices): Likewise.
33235 (find_data_references_in_loop): Export.
33236 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
33237 Compute dependences here...
33238 (vect_analyze_data_refs): ...not here. When we encounter
33239 a non-vectorizable data reference in basic-block vectorization
33240 truncate the data reference vector. Do not bother to
33241 fixup data-dependence information for gather loads.
33242 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
33243 of data references, as reported.
33245 2013-03-18 Richard Biener <rguenther@suse.de>
33247 PR tree-optimization/3713
33248 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
33249 has_constants and expr.
33250 (stmt_has_constants): Properly valueize SSA names when deciding
33251 whether the stmt has constants.
33253 2013-03-18 Richard Biener <rguenther@suse.de>
33255 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
33256 whole function when there is nothing to do.
33257 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
33258 * tree-vectorizer.c (vectorize_loops): Update virtual and
33259 loop-closed SSA once.
33260 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
33262 2013-03-18 Richard Biener <rguenther@suse.de>
33264 PR middle-end/56113
33265 * domwalk.c (bb_postorder): New global static.
33266 (cmp_bb_postorder): New function.
33267 (walk_dominator_tree): Replace scheme imposing an order for
33268 visiting dominator sons by one sorting them at the time they
33269 are pushed on the stack.
33271 2013-03-18 Richard Biener <rguenther@suse.de>
33273 PR tree-optimization/39326
33274 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
33275 (struct mem_ref): Replace mem member with ao_ref typed member.
33276 (MEM_ANALYZABLE): Adjust.
33277 (memref_eq): Likewise.
33278 (mem_ref_alloc): Likewise.
33279 (gather_mem_refs_stmt): Likewise.
33280 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
33281 (execute_sm_if_changed_flag_set): Adjust.
33282 (execute_sm): Likewise.
33283 (ref_always_accessed_p): Likewise.
33284 (refs_independent_p): Likewise.
33285 (can_sm_ref_p): Likewise.
33287 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33290 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
33291 return 1 even for !unsignedp.
33293 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33295 * config/i386/i386.md (isa): Add x64 and nox64.
33296 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
33297 (*pushtf): Enable *roF alternative for x64 isa only.
33298 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
33299 mode attribute of integer alternatives to DImode for TARGET_64BIT.
33300 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
33301 (*movtf_internal): Merge from *movtf_internal_rex64 and
33302 *movtf_internal_sse. Use x64 and nox64 isa attributes.
33303 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
33304 nox64 isa attributes.
33305 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
33306 nox64 isa attributes.
33307 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
33309 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33311 * config/alpha/alpha.c (TARGET_LRA_P): New define.
33313 2013-03-17 Jakub Jelinek <jakub@redhat.com>
33316 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
33317 class names. Remove trailing comma after "ALL_REGS".
33319 2013-03-16 Jan Hubicka <jh@suse.cz>
33321 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
33322 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
33323 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
33324 of cgraph_get_create_node.
33325 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33327 2013-03-16 Jason Merrill <jason@redhat.com>
33330 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
33331 with DW_AT_default_value.
33333 2013-03-16 Jakub Jelinek <jakub@redhat.com>
33335 * BASE-VER: Set to 4.9.0.
33337 2013-03-14 Andi Kleen <ak@linux.intel.com>
33340 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
33341 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
33342 Document _x* TSX intrinsics.
33344 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
33345 David Holsgrove <david.holsgrove@xilinx.com>
33347 * configure.ac: Add MicroBlaze TLS support detection.
33348 * configure: Regenerate.
33349 * config/microblaze/microblaze-protos.h
33350 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
33351 symbol_mentioned_p, label_mentioned_p): Add prototypes.
33352 * config/microblaze/microblaze.c (microblaze_address_type): Add
33353 ADDRESS_TLS and tls_reloc address types.
33354 (microblaze_address_info): Add tls_reloc.
33355 (TARGET_HAVE_TLS): Define.
33356 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
33357 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
33358 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
33359 load_tls_operand, microblaze_call_tls_get_addr,
33360 microblaze_legitimize_tls_address): New functions.
33361 (microblaze_classify_unspec): Handle UNSPEC_TLS.
33362 (get_base_reg): Use microblaze_tls_symbol_p.
33363 (microblaze_classify_address): Handle TLS.
33364 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
33365 label_mentioned_p and microblaze_tls_referenced_p.
33366 (microblaze_legitimize_address): Handle TLS.
33367 (microblaze_address_insns): Handle ADDRESS_TLS.
33368 (pic_address_needs_scratch): Handle TLS.
33369 (print_operand_address): Handle TLS.
33370 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33371 (microblaze_expand_move): Handle TLS.
33372 (microblaze_legitimate_constant_p): Check
33373 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33374 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33375 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33376 (PIC_OFFSET_TABLE_REGNUM): Set.
33377 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33378 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33379 (addsi3, movsi_internal2, movdf_internal): Update constraints
33380 * config/microblaze/predicates.md (arith_plus_operand): Define
33381 (move_operand): Redefine as move_src_operand,
33382 check microblaze_tls_referenced_p.
33384 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33386 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33387 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33389 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33391 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33394 2013-03-14 Jakub Jelinek <jakub@redhat.com>
33396 PR tree-optimization/53265
33397 * common.opt (Waggressive-loop-optimizations): New option.
33398 * tree-ssa-loop-niter.c: Include tree-pass.h.
33399 (do_warn_aggressive_loop_optimizations): New function.
33400 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
33401 if number_of_latch_executions returned constant.
33402 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33403 early. If number_of_latch_executions returned constant, set
33404 nb_iterations_upper_bound back to it.
33405 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33407 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33408 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33410 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33411 (MULTILIB_OSDIRNAMES): Set.
33412 * genmultilib: If defaultosdirname doesn't start with :: , set
33413 defaultosdirname2 instead, clear it and emit two . multilib_raw
33414 entries instead of just one.
33416 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
33418 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33419 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33420 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33421 (SUBTARGET_OVERRIDE_OPTIONS): New.
33423 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
33426 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33427 (musermode): Convert to Var(TARGET_USERMODE).
33428 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33429 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33430 * config/sh/sh.c (sh_option_override): Use
33431 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33432 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33434 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33436 (udivsi3_i4_single, divsi3_i4_single): Use
33437 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33439 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
33441 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33444 2013-03-13 Richard Biener <rguenther@suse.de>
33446 PR tree-optimization/56608
33447 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33448 calls when vectorizing basic-blocks.
33450 2013-03-13 Jakub Jelinek <jakub@redhat.com>
33453 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33456 2013-03-12 Jakub Jelinek <jakub@redhat.com>
33458 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33460 2013-03-11 Jan Hubicka <jh@suse.cz>
33463 * lto-streamer-out.c (output_symbol_p): Skip references from
33464 constructors of external variables.
33466 2013-03-11 Jan Hubicka <jh@suse.cz>
33468 PR middle-end/56571
33469 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33471 * emit-rtl.c (verify_rtx_sharing): Likewise.
33472 (copy_insn_1): Likewise.
33473 * rtl.c (copy_rtx): Likewise.
33475 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
33478 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33479 output_operand_lossage message.
33481 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
33484 * arm.c (shift_op): Validate RTL pattern on the fly.
33485 (arm_print_operand, case 'S'): Don't use shift_operator to validate
33488 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33491 * config/pa/pa.md (call_value): Check for calls to powf and direct to
33492 new call patterns that clobber %fr12.
33493 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33494 split and postreload patterns.
33495 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33496 registers %fr12 and %fr12R as call used.
33498 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
33500 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33501 (canon_address, record_store, replace_read, check_mem_read_rtx,
33502 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33503 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33504 rest_of_handle_dse): Likewise.
33506 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
33508 PR middle-end/56524
33509 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33511 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33512 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33513 (save_optabs_if_changed): Replace with...
33514 (init_tree_optimization_optabs): ...this.
33515 * optabs.c (save_optabs_if_changed): Rename to...
33516 (init_tree_optimization_optabs): ...this. Take the optimization node
33517 as argument. Do nothing if the base optabs are already correct.
33518 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33519 to recompute optabs.
33520 * function.h (function): Remove optabs field.
33521 * function.c (invoke_set_current_function_hook): Call
33522 init_tree_optimization_optabs. Use the result to initialize
33525 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
33527 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33528 if GTMA_HAS_NO_INSTRUMENTATION.
33529 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33530 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33531 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33532 * gimple-pretty-print.c (dump_gimple_transaction): Handle
33533 GTMA_HAS_NO_INSTRUMENTATION.
33535 2013-03-08 Jakub Jelinek <jakub@redhat.com>
33537 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33540 2013-03-08 Marek Polacek <polacek@redhat.com>
33541 Jakub Jelinek <jakub@redhat.com>
33543 PR tree-optimization/56478
33544 * predict.c (is_comparison_with_loop_invariant_p): Change the
33545 type of loop_step to tree.
33546 (predict_loops): Adjust.
33547 (predict_iv_comparison): Perform the computations on double_ints.
33549 2013-03-08 Richard Biener <rguenther@suse.de>
33551 PR tree-optimization/56570
33552 * tree-cfg.c (verify_expr_location_1): Verify locations for
33554 * tree-sra.c (create_access_replacement): Strip locations
33555 from DECL_DEBUG_EXPRs.
33557 2013-03-08 Richard Biener <rguenther@suse.de>
33559 * tree-inline.c (expand_call_inline): Do not associate
33560 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33561 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33563 2013-03-08 Richard Biener <rguenther@suse.de>
33565 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33566 or block changes with -Og. Fix for location / block encoding
33567 changes and PHI arguments with locations.
33569 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
33571 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33573 (struct output_info): Likewise.
33574 (register_overhead): Remove bad gcc_assert.
33575 (bitmap_find_bit): If there is only a single bitmap element, do not
33576 count a miss as a search.
33577 (print_statistics): Update for counter type changes.
33578 (dump_bitmap_statistics): Likewise. Print headers such that they
33579 are properly lined up with the printed counters.
33581 2013-03-07 Jakub Jelinek <jakub@redhat.com>
33583 PR tree-optimization/56559
33584 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33585 check that it has only a single use.
33587 2013-03-07 Richard Biener <rguenther@suse.de>
33589 * doc/invoke.texi (fwhole-program): Discourage use in combination
33592 2013-03-06 Jakub Jelinek <jakub@redhat.com>
33594 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33596 PR tree-optimization/56539
33597 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33598 instead of GSI_CONTINUE_LINKING as last argument to
33599 force_gimple_operand_gsi. Adjust function comment.
33601 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33604 PR middle-end/56548
33605 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33606 promoted mode, convert the result back to the original mode.
33608 2013-03-06 Richard Biener <rguenther@suse.de>
33610 PR middle-end/56294
33611 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33612 (insert_updated_phi_nodes_compare_uids): New function.
33613 (update_ssa): Sort symbols_to_rename after UID before
33614 traversing it to insert PHI nodes.
33616 2013-03-06 Richard Biener <rguenther@suse.de>
33618 PR middle-end/50494
33619 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33620 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33623 2013-02-13 Richard Biener <rguenther@suse.de>
33626 * varasm.c (output_constant_def_1): Get the decl representing
33627 the constant as argument.
33628 (output_constant_def): Wrap output_constant_def_1.
33629 (make_decl_rtl): Use output_constant_def_1 with the decl
33630 representing the constant.
33631 (build_constant_desc): Optionally re-use a decl already
33632 representing the constant.
33633 (tree_output_constant_def): Adjust.
33635 2013-03-06 Joey Ye <joey.ye@arm.com>
33638 * gcc.c (convert_white_space): New function.
33639 (main): Handles white space in function name.
33641 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33644 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33645 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33646 to SH_DIV_CALL_TABLE for TARGET_SH2.
33647 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33649 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33650 call-table options.
33652 2013-03-05 Sterling Augustine <saugustine@google.com>
33653 Cary Coutant <ccoutant@google.com>
33656 * dwarf2out.c (resolve_addr): Don't call
33657 remove_loc_list_addr_table_entries a second time for the same
33660 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33663 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33664 (avoid_complex_debug_insns): New function.
33665 (expand_debug_locations): Call it.
33667 PR rtl-optimization/56484
33668 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33669 lifetimes of hard registers on small register class machines.
33671 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33673 * config/microblaze/microblaze-protos.h: Rename
33674 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33675 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33677 (microblaze_fast_interrupt_function_p): New function.
33678 (microblaze_is_interrupt_handler): Rename to
33679 microblaze_is_interrupt_variant and add fast_interrupt check.
33680 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33681 (save_restore_insns): Likewise.
33682 (compute_frame_size): Likewise.
33683 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33684 (microblaze_globalize_label): Likewise.
33685 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33686 * config/microblaze/microblaze.md: Use wrapper
33687 microblaze_is_interrupt_variant.
33689 2013-03-05 Kai Tietz <ktietz@redhat.com>
33691 * sdbout.c (sdbout_one_type): Switch to current function's section
33692 supporting cold/hot.
33694 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33696 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33699 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33701 PR middle-end/56461
33702 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33703 if VALGRIND_GET_VBITS is defined, temporarily make object
33704 memory all defined, and restore previous valgrind addressability
33705 and definability afterwards. Free this_object at the end.
33707 PR middle-end/56461
33708 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33709 right before calling lra_create_live_ranges, also call it
33710 when clearing live_p. Only call lra_clear_live_ranges
33711 at the end if live_p.
33713 PR middle-end/56461
33714 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33716 2013-03-05 Richard Biener <rguenther@suse.de>
33718 PR tree-optimization/56521
33719 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33722 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33725 * except.h (remove_unreachable_eh_regions): New prototype.
33726 * except.c (remove_eh_handler_splicer): New function, split out
33727 of remove_eh_handler.
33728 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33729 warning about running it on many EH regions one at a time.
33730 (remove_unreachable_eh_regions_worker): New function, walk the
33731 EH tree in depth-first order and remove non-marked regions.
33732 (remove_unreachable_eh_regions): New function.
33733 * tree-eh.c (mark_reachable_handlers): New function, split out
33734 from remove_unreachable_handlers.
33735 (remove_unreachable_handlers): Use mark_reachable_handlers and
33736 remove_unreachable_eh_regions.
33737 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33738 and remove_unreachable_eh_regions.
33740 2013-03-05 Richard Biener <rguenther@suse.de>
33742 PR middle-end/56525
33743 * loop-init.c (fix_loop_structure): Remove loops in two stages,
33744 not freeing them until the end.
33746 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33748 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33750 2013-03-05 Richard Biener <rguenther@suse.de>
33752 PR tree-optimization/56270
33753 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33754 of loads after scheduling an SLP instance.
33756 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33758 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33760 (check_gcc_parallelize): Run guality.exp as a separate job from
33761 vect.exp with unsorted.exp and $(dg_target_exps) separately from
33762 struct-layout-1.exp with stackalign.exp.
33764 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33766 PR middle-end/56461
33767 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33768 load_index sbitmap even if some bit in it isn't set.
33770 PR middle-end/56461
33771 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33772 (discover_iteration_bound_by_body_walk): Change queues to
33773 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
33774 spelling in comment. Call safe_push on queues[bound_index] directly.
33775 Release queues[queue_index] in every iteration unconditionally.
33776 Release bounds vector.
33778 PR middle-end/56461
33779 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33780 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33781 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33784 2013-03-05 Richard Biener <rguenther@suse.de>
33787 * tree-inline.c (remap_blocks_to_null): New function.
33788 (expand_call_inline): When expanding a call stmt without
33789 an associated block inline remap all callee blocks to NULL.
33791 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33793 PR rtl-optimization/56494
33794 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33795 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33796 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33798 PR middle-end/56461
33799 * sel-sched-ir.c (free_sched_pools): Release
33800 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33801 if succs_info_pool.max_top isn't -1.
33804 * opts.c (opts_obstack, opts_concat): Moved to...
33805 * opts-common.c (opts_obstack, opts_concat): ... here.
33807 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33809 PR middle-end/56461
33810 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33812 2013-03-04 Martin Jambor <mjambor@suse.cz>
33814 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33815 all appropriate places.
33817 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33819 PR tree-optimization/56424
33820 * ipa-split.c (split_function): Do not set the RSO flag if result is
33821 not by reference and its type is a register type.
33823 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33825 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33826 (microblaze_legitimate_pic_operand): Likewise
33827 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33828 new function microblaze_legitimate_pic_operand
33829 * config/microblaze/microblaze-protos.h
33830 (microblaze_legitimate_pic_operand): Declare.
33832 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33834 * config/microblaze/predicates.md (call_insn_simple_operand):
33835 New predicate for supported rtx code types.
33836 * config/microblaze/microblaze.md (call_internal1): Use
33837 call_insn_simple_operand predicate.
33839 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33841 PR middle-end/56461
33842 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33843 partitions.ordered_remove.
33845 PR middle-end/56461
33846 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33847 vec_oprnds0.create (1) for modifier == NONE.
33849 PR middle-end/56461
33850 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33851 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33852 vec_oprnds1 right before pushing anything to it for
33855 PR middle-end/56461
33856 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33857 set nbbs to 0 instead of having separate code path.
33858 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33859 instead of false as last argument if returning NULL.
33861 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33863 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33864 the attribute is now called "target" instead of "option".
33865 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33866 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33867 attribute/pragma name for TARGET_OPTION_VALID_P and
33868 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33869 * doc/tm.texi: Regenerated.
33871 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33873 * config/microblaze/microblaze.c:
33874 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33875 * config/microblaze/microblaze.h: Add -mxl-reorder to
33877 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33878 instructions emitted if TARGET_REORDER.
33879 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33880 or 0 for -m/-mno case, but initialises as 2 to detect default use case
33883 2013-03-01 Xinliang David Li <davidxl@google.com>
33885 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33888 2013-03-01 Jakub Jelinek <jakub@redhat.com>
33890 PR middle-end/56461
33891 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33892 vector even when returning true. Fix up function comment formatting.
33894 PR middle-end/56461
33895 * ira-build.c (ira_loop_nodes_count): New variable.
33896 (create_loop_tree_nodes): Initialize it.
33897 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33899 PR middle-end/56461
33900 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33901 method on dr_chain and result_chain.
33902 * tree-vect-stmts.c (vectorizable_store): Only call
33903 result_chain.create if j == 0.
33905 PR middle-end/56461
33906 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33907 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33908 before overwriting it.
33910 2013-03-01 Tobias Burnus <burnus@net-b.de>
33912 * doc/extended.texi (C Extensions): Change order in @menu
33914 (Other MIPS Built-in Functions): Move last MIPS entry before
33915 "picoChip Built-in Functions".
33916 (SH Built-in Functions): Move after RX Built-in Functions.
33917 * doc/gcc.texi (Introduction): Change order in @menu
33919 * doc/md.texi (Constraints): Ditto.
33920 * gty.texi (Type Information): Ditto.
33921 (User-provided marking routines for template types): Make
33923 * doc/invoke.texi (AArch64 Options): Move before
33924 "Adapteva Epiphany Options".
33926 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
33927 Jakub Jelinek <jakub@redhat.com>
33930 * asan.c (gate_asan): Lookup no_sanitize_address instead of
33931 no_address_safety_analysis attribute.
33932 * doc/extend.texi (no_address_safety_attribute): Rename to
33933 no_sanitize_address attribute, mention no_address_safety_analysis
33934 attribute as deprecated alias.
33936 2013-02-28 Jakub Jelinek <jakub@redhat.com>
33938 PR middle-end/56461
33939 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33940 type to vec<vec<tree> > *.
33941 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
33942 to be vec<tree> instead of vec<tree> *, set vec_defs
33943 to vNULL and call vec_defs.create (number_of_vects), adjust other
33945 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33946 vectorizable_condition): Adjust vect_get_slp_defs callers.
33948 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33950 * config/aarch64/aarch64.c
33951 (aarch64_float_const_representable): Remove unused variable.
33953 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33955 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33957 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33959 * config/aarch64/aarch64-builtins.c
33960 (aarch64_init_simd_builtins): Make static.
33962 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33964 * config/aarch64/aarch64.c
33965 (aarch64_simd_make_constant): Make static.
33967 2013-02-28 Martin Jambor <mjambor@suse.cz>
33969 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33970 with no initialization to the RHS of debug statements.
33972 2013-02-28 Martin Jambor <mjambor@suse.cz>
33974 PR tree-optimization/56294
33975 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33977 (get_access_replacement): Do not call create_access_replacement.
33978 Assert a replacement exists.
33979 (get_repl_default_def_ssa_name): Create the replacement declaration
33982 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33984 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33985 final_end_function.
33987 2013-02-28 Marek Polacek <polacek@redhat.com>
33989 PR rtl-optimization/56466
33990 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33991 if we're changing a loop.
33992 (peel_loops_completely): Likewise.
33994 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
33997 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33999 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34002 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
34003 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
34004 INTX_FTYPE_FX, FX_FTYPE_INTX.
34005 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
34007 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34009 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
34010 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
34011 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
34012 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
34013 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
34014 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
34015 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
34016 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
34017 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
34018 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
34019 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
34020 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
34021 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
34022 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
34023 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
34024 (avrxmega6): Increase max flash segments from 5 to 6.
34025 * config/avr/t-multilib: Regenerate.
34026 * config/avr/avr-tables.opt: Regenerate.
34027 * doc/avr-mmcu.texi: Regenerate.
34029 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34031 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
34032 (avr_device_to_arch): Rename to avr_device_to_ld.
34033 (avr_device_to_as): New prototype.
34034 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
34035 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
34036 * config/avr/driver-avr.c (avr_device_to_as): New.
34037 (avr_device_to_arch): Rename to avr_device_to_ld.
34039 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34041 PR middle-end/56461
34042 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
34043 method on dr_chain and result_chain.
34045 PR middle-end/56461
34046 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
34047 pointer_set_destroy on not_executed_last_iteration.
34049 PR middle-end/56461
34050 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
34052 PR middle-end/56461
34053 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
34054 FOR_EACH_DEFINED_FUNCTION when freeing state.
34056 PR middle-end/56461
34057 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
34059 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
34062 PR middle-end/56461
34063 * ipa-cp.c (decide_whether_version_node): Call vec_free on
34064 known_aggs[i].items and release known_aggs vector.
34066 PR middle-end/56461
34067 * ipa-reference.c (propagate): Free node_info even for alias nodes.
34069 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34071 * config/microblaze/microblaze.c (microblaze_emit_compare):
34072 Use xor for EQ/NE comparisions.
34073 * config/microblaze/microblaze.md (cstoresf4): Add constraints
34074 (cbranchsf4): Adjust operator to comparison_operator.
34076 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34078 PR middle-end/56461
34079 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
34081 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
34082 vec_safe_push, always update *slot.
34083 (redirect_edge_var_map_clear): Use vec_free.
34084 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
34085 (free_var_map_entry): Use vec_free.
34086 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
34087 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
34089 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
34091 PR middle-end/45472
34092 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
34093 when the may_trap_p bit of the exprs being merged differs.
34094 Reorder tests for speculativeness in the logical and operator.
34096 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34098 * incpath.c (add_standard_paths): Use reconcat instead of concat
34099 where appropriate and avoid leaking memory.
34101 * opts.h: Include obstack.h.
34102 (opts_concat): New prototype.
34103 (opts_obstack): New declaration.
34104 * opts.c (opts_concat): New function.
34105 (opts_obstack): New variable.
34106 (init_options_struct): Call gcc_init_obstack on opts_obstack.
34107 (finish_options): Use opts_concat instead of concat
34108 and XOBNEWVEC instead of XNEWVEC.
34109 * opts-common.c (generate_canonical_option, decode_cmdline_option,
34110 generate_option): Likewise.
34111 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
34112 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
34115 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
34116 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
34118 2013-02-26 Jakub Jelinek <jakub@redhat.com>
34120 PR middle-end/56461
34121 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
34123 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
34125 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
34126 (arm_block_move_unaligned_straight): Likewise.
34127 (arm_adjust_block_mem): Likewise.
34129 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
34132 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
34133 temp, cond and label.
34134 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
34137 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
34138 * config/c6x/c6x.h (dbx_register_map): Update declaration.
34141 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
34142 of prologue/epilogue functions.
34145 * config/tilegx/tilegx.c (tilegx_expand_prologue):
34146 Remove unused variable cfa_offset.
34147 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
34150 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
34151 type promotion to unsigned.
34154 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
34155 for HOST_WIDE_INT of 32 bit / same size as int.
34156 (arm_block_move_unaligned_straight): Likewise.
34157 (arm_adjust_block_mem): Likewise.
34160 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
34163 2013-02-26 Marek Polacek <polacek@redhat.com>
34165 PR tree-optimization/56426
34166 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
34168 2013-02-26 Richard Biener <rguenther@suse.de>
34171 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
34172 unused variable loops.
34174 2013-02-26 Jakub Jelinek <jakub@redhat.com>
34176 PR tree-optimization/56448
34177 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
34178 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
34179 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
34180 later operands of the references, or even first operand for
34181 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
34183 PR tree-optimization/56443
34184 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
34185 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
34186 to type_for_mode langhook.
34188 2013-02-25 Matt Turner <mattst88@gmail.com>
34190 * doc/invoke.texi: Document r4700.
34192 2013-02-25 Richard Biener <rguenther@suse.de>
34194 PR tree-optimization/56175
34195 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
34197 (simplify_bitwise_binary): ... here. Also guard the conversion
34198 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
34200 2013-02-25 Catherine Moore <clm@codesourcery.com>
34203 2013-02-24 Catherine Moore <clm@codesourcery.com>
34204 Maciej W. Rozycki <macro@codesourcery.com>
34205 Tom de Vries <tom@codesourcery.com>
34206 Nathan Sidwell <nathan@codesourcery.com>
34207 Iain Sandoe <iain@codesourcery.com>
34208 Nathan Froyd <froydnj@codesourcery.com>
34209 Chao-ying Fu <fu@mips.com>
34211 * doc/extend.texi: (micromips, nomicromips, nocompression):
34212 Document new function attributes.
34213 * doc/invoke.texi (minterlink-compressed, mmicromips,
34214 m14k, m14ke, m14kec): Document new options.
34215 (minterlink-mips16): Update documentation.
34216 * doc/md.texi (ZC, ZD): Document new constraints.
34217 * configure.ac (gcc_cv_as_micromips): Check if linker
34218 supports the .set micromips directive.
34219 * configure: Regenerate.
34220 * config.in: Regenerate.
34221 * config/mips/mips-tables.opt: Regenerate.
34222 * config/mips/micromips.md: New file.
34223 * constraints.md (ZC, AD): New constraints.
34224 * config/mips/predicates.md (movep_src_register): New predicate.
34225 (movep_src_operand): New predicate.
34226 (non_volatile_mem_operand): New predicate.
34227 * config/mips/mips.md (multimem): New type.
34228 (length): Differentiate between 17-bit and 18-bit branch offsets.
34229 (MOVEP1, MOVEP2): New mode iterator.
34230 (mov_<load>l): Use ZC constraint.
34231 (mov_<load>r): Likewise.
34232 (mov_<store>l): Likewise.
34233 (mov_<store>r): Likewise.
34234 (*branch_equality<mode>_inverted): Add microMIPS support.
34235 (*branch_equality<mode>): Likewise.
34236 (*jump_absolute): Likewise.
34237 (indirect_jump_<mode>): Likewise.
34238 (tablejump_<mode>): Likewise.
34239 (<optab>_internal): Likewise.
34240 (sibcall_internal): Likewise.
34241 (sibcall_value_internal): Likewise.
34242 (prefetch): Use constraint ZD.
34243 * config/mips/mips.opt (minterlink-compressed): New option.
34244 (minterlink-mips16): Now an alias for minterlink-compressed.
34245 (mmicromips): New option.
34246 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34247 (compare_and_swap_12): Likewise.
34248 (sync_add<mode>): Likewise.
34249 (sync_<optab>_12): Likewise.
34250 (sync_old_<optab>_12): Likewise.
34251 (sync_new_<optab>_12): Likewise.
34252 (sync_nand_12): Likewise.
34253 (sync_old_nand_12): Likewise.
34254 (sync_new_nand_12): Likewise.
34255 (sync_sub<mode>): Likewise.
34256 (sync_old_add<mode>): Likewise.
34257 (sync_old_sub<mode>): Likewise.
34258 (sync_new_add<mode>): Likewise.
34259 (sync_new_sub<mode>): Likewise.
34260 (sync_<optab><mode>): Likewise.
34261 (sync_old_<optab><mode>): Likewise.
34262 (sync_new_<optab><mode>): Likewise.
34263 (sync_nand<mode>): Likewise.
34264 (sync_old_nand<mode>): Likewise.
34265 (sync_new_nand<mode>): Likewise.
34266 (sync_lock_test_and_set<mode>): Likewise.
34267 (test_and_set_12): Likewise.
34268 (atomic_compare_and_swap<mode>): Likewise.
34269 (atomic_exchange<mode>_llsc): Likewise.
34270 (atomic_fetch_add<mode>_llsc): Likewise.
34271 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34272 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34273 (umips_save_restore_pattern_p): Likewise.
34274 (umips_load_store_pair_p): Likewise.
34275 (umips_output_load_store_pair): Likewise.
34276 (umips_movep_target_p): Likewise.
34277 (umips_12bit_offset_address_p): Likewise.
34278 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34279 (mips_base_mips16): Rename this...
34280 (mips_base_compression_flags): ...to this. Update all uses.
34281 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34282 (mips_mips16_decl_p): Delete.
34283 (mips_nomips16_decl_p): Delete.
34284 (mips_get_compress_on_flags): New function.
34285 (mips_get_compress_off_flags): New function.
34286 (mips_get_compress_mode): New function.
34287 (mips_get_compress_on_name): New function.
34288 (mips_get_compress_off_name): New function.
34289 (mips_insert_attributes): Support multiple compression types.
34290 (mips_merge_decl_attributes): Likewise.
34291 (umips_12bit_offset_address_p): New function.
34292 (mips_start_function_definition): Emit .set micromips directive.
34293 (mips_call_may_need_jalx_p): New function.
34294 (mips_function_ok_for_sibcall): Add microMIPS support.
34295 (mips_print_operand_punctuation): Support short delay slots and
34297 (umips_swm_mask, umips_swm_encoding): New.
34298 (umips_build_save_restore): New function.
34299 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34300 (was_mips16_p): Remove.
34301 (old_compression_mode): New.
34302 (mips_set_compression_mode): New function.
34303 (mips_set_current_function): Add microMIPS support.
34304 (mips_option_override): Likewise.
34305 (umips_save_restore_pattern_p): New function.
34306 (umips_output_save_restore): New function.
34307 (umips_load_store_pair_p_1): New function.
34308 (umips_load_store_pair_p): New function.
34309 (umips_output_load_store_pair_1): New function.
34310 (umips_output_load_store_pair): New function.
34311 (umips_movep_target_p) New function.
34312 (mips_prepare_pch_save): Add microMIPS support.
34313 * config/mips/mips.h (TARGET_COMPRESSION): New.
34314 (TARGET_CPU_CPP_BUILTINS): Update macro
34315 to use new compression flags and to support microMIPS.
34316 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34317 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34318 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34319 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34320 (ASM_SPEC): Support mmicromips and mno-micromips.
34321 (M16STORE_REG_P): New macro.
34322 (MIPS_CALL): Support TARGET_MICROMIPS.
34323 (MICROMIPS_J): New macro.
34324 (mips_base_mips16): Rename this...
34325 (mips_base_compression_flags): ...to this.
34326 (UMIPS_12BIT_OFFSET_P): New macro.
34327 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34328 (MULTILIB_DIRNAMES): Likewise.
34330 2013-02-25 Tom de Vries <tom@codesourcery.com>
34332 PR rtl-optimization/56131
34333 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
34334 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
34335 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
34337 2013-02-25 Tobias Burnus <burnus@net-b.de>
34339 * doc/invoke.texi (-fsanitize=): Move from optimization
34340 to debugging options.
34342 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34344 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
34346 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34347 Alexander Monakov <amonakov@ispras.ru>
34349 PR middle-end/56077
34350 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
34351 flush pending lists also on non-jumps. Adjust comment.
34353 2013-02-24 Catherine Moore <clm@codesourcery.com>
34354 Maciej W. Rozycki <macro@codesourcery.com>
34355 Tom de Vries <tom@codesourcery.com>
34356 Nathan Sidwell <nathan@codesourcery.com>
34357 Iain Sandoe <iain@codesourcery.com>
34358 Nathan Froyd <froydnj@codesourcery.com>
34359 Chao-ying Fu <fu@mips.com>
34361 * doc/extend.texi: (micromips, nomicromips, nocompression):
34362 Document new function attributes.
34363 * doc/invoke.texi (minterlink-compressed, mmicromips,
34364 m14k, m14ke, m14kec): Document new options.
34365 (minterlink-mips16): Update documentation.
34366 * doc/md.texi (ZC, ZD): Document new constraints.
34367 * configure.ac (gcc_cv_as_micromips): Check if linker
34368 supports the .set micromips directive.
34369 * configure: Regenerate.
34370 * config.in: Regenerate.
34371 * config/mips/mips-tables.opt: Regenerate.
34372 * config/mips/micromips.md: New file.
34373 * constraints.md (ZC, AD): New constraints.
34374 * config/mips/predicates.md (movep_src_register): New predicate.
34375 (movep_src_operand): New predicate.
34376 (non_volatile_mem_operand): New predicate.
34377 * config/mips/mips.md (multimem): New type.
34378 (length): Differentiate between 17-bit and 18-bit branch offsets.
34379 (MOVEP1, MOVEP2): New mode iterator.
34380 (mov_<load>l): Use ZC constraint.
34381 (mov_<load>r): Likewise.
34382 (mov_<store>l): Likewise.
34383 (mov_<store>r): Likewise.
34384 (*branch_equality<mode>_inverted): Add microMIPS support.
34385 (*branch_equality<mode>): Likewise.
34386 (*jump_absolute): Likewise.
34387 (indirect_jump_<mode>): Likewise.
34388 (tablejump_<mode>): Likewise.
34389 (<optab>_internal): Likewise.
34390 (sibcall_internal): Likewise.
34391 (sibcall_value_internal): Likewise.
34392 (prefetch): Use constraint ZD.
34393 * config/mips/mips.opt (minterlink-compressed): New option.
34394 (minterlink-mips16): Now an alias for minterlink-compressed.
34395 (mmicromips): New option.
34396 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34397 (compare_and_swap_12): Likewise.
34398 (sync_add<mode>): Likewise.
34399 (sync_<optab>_12): Likewise.
34400 (sync_old_<optab>_12): Likewise.
34401 (sync_new_<optab>_12): Likewise.
34402 (sync_nand_12): Likewise.
34403 (sync_old_nand_12): Likewise.
34404 (sync_new_nand_12): Likewise.
34405 (sync_sub<mode>): Likewise.
34406 (sync_old_add<mode>): Likewise.
34407 (sync_old_sub<mode>): Likewise.
34408 (sync_new_add<mode>): Likewise.
34409 (sync_new_sub<mode>): Likewise.
34410 (sync_<optab><mode>): Likewise.
34411 (sync_old_<optab><mode>): Likewise.
34412 (sync_new_<optab><mode>): Likewise.
34413 (sync_nand<mode>): Likewise.
34414 (sync_old_nand<mode>): Likewise.
34415 (sync_new_nand<mode>): Likewise.
34416 (sync_lock_test_and_set<mode>): Likewise.
34417 (test_and_set_12): Likewise.
34418 (atomic_compare_and_swap<mode>): Likewise.
34419 (atomic_exchange<mode>_llsc): Likewise.
34420 (atomic_fetch_add<mode>_llsc): Likewise.
34421 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34422 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34423 (umips_save_restore_pattern_p): Likewise.
34424 (umips_load_store_pair_p): Likewise.
34425 (umips_output_load_store_pair): Likewise.
34426 (umips_movep_target_p): Likewise.
34427 (umips_12bit_offset_address_p): Likewise.
34428 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34429 (mips_base_mips16): Rename this...
34430 (mips_base_compression_flags): ...to this. Update all uses.
34431 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34432 (mips_mips16_decl_p): Delete.
34433 (mips_nomips16_decl_p): Delete.
34434 (mips_get_compress_on_flags): New function.
34435 (mips_get_compress_off_flags): New function.
34436 (mips_get_compress_mode): New function.
34437 (mips_get_compress_on_name): New function.
34438 (mips_get_compress_off_name): New function.
34439 (mips_insert_attributes): Support multiple compression types.
34440 (mips_merge_decl_attributes): Likewise.
34441 (umips_12bit_offset_address_p): New function.
34442 (mips_start_function_definition): Emit .set micromips directive.
34443 (mips_call_may_need_jalx_p): New function.
34444 (mips_function_ok_for_sibcall): Add microMIPS support.
34445 (mips_print_operand_punctuation): Support short delay slots and
34447 (umips_swm_mask, umips_swm_encoding): New.
34448 (umips_build_save_restore): New function.
34449 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34450 (was_mips16_p): Remove.
34451 (old_compression_mode): New.
34452 (mips_set_compression_mode): New function.
34453 (mips_set_current_function): Add microMIPS support.
34454 (mips_option_override): Likewise.
34455 (umips_save_restore_pattern_p): New function.
34456 (umips_output_save_restore): New function.
34457 (umips_load_store_pair_p_1): New function.
34458 (umips_load_store_pair_p): New function.
34459 (umips_output_load_store_pair_1): New function.
34460 (umips_output_load_store_pair): New function.
34461 (umips_movep_target_p) New function.
34462 (mips_prepare_pch_save): Add microMIPS support.
34463 * config/mips/mips.h (TARGET_COMPRESSION): New.
34464 (TARGET_CPU_CPP_BUILTINS): Update macro
34465 to use new compression flags and to support microMIPS.
34466 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34467 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34468 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34469 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34470 (ASM_SPEC): Support mmicromips and mno-micromips.
34471 (M16STORE_REG_P): New macro.
34472 (MIPS_CALL): Support TARGET_MICROMIPS.
34473 (MICROMIPS_J): New macro.
34474 (mips_base_mips16): Rename this...
34475 (mips_base_compression_flags): ...to this.
34476 (UMIPS_12BIT_OFFSET_P): New macro.
34477 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34478 (MULTILIB_DIRNAMES): Likewise.
34480 2013-02-24 Jakub Jelinek <jakub@redhat.com>
34483 * target-globals.c (save_target_globals): For init_reg_sets and
34484 target_reinit remporarily set this_fn_optabs to this_target_optabs.
34486 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
34488 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34489 * config/aarch64/t-aarch64
34490 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34492 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
34494 PR inline-asm/56148
34495 * lra-constraints.c (process_alt_operands): Reload operand
34496 conflicting with earlier clobber only if no more other conflicting
34499 2013-02-22 Jakub Jelinek <jakub@redhat.com>
34502 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34503 if not linking a shared library.
34505 2013-02-22 Seth LaForge <sethml@google.com>
34507 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34509 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
34511 * config/arm/arm.md (split for extendsidi): Update condition.
34512 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34513 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34514 (qhs_zextenddi_cstr): Likewise.
34516 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34518 PR middle-end/56420
34519 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34520 avoid signed wrapping.
34521 (expand_mult): Handle properly multiplication by
34522 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
34523 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
34524 in the compiler if coeff is HOST_WIDE_INT_MIN.
34525 (expand_divmod): Don't make ext_op1 static, change it's type to
34526 uhwi. Avoid undefined behavior in -INTVAL (op1).
34528 PR rtl-optimization/50339
34529 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34531 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34532 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34533 into splitting_ashiftrt field.
34534 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34536 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34539 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
34541 PR middle-end/56108
34542 * trans-mem.c (execute_tm_mark): Do not expand transactions that
34543 are sure to go irrevocable.
34545 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
34547 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34548 scalars are valid operands.
34550 2013-02-21 Martin Jambor <mjambor@suse.cz>
34552 PR tree-optimization/56310
34553 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34554 only matching indices and non-negative final offsets.
34555 (intersect_aggregates_with_edge): Pass src_idx to
34556 agg_replacements_to_vector. Pass src_idx insstead of index to
34557 intersect_with_agg_replacements.
34559 2013-02-21 Martin Jambor <mjambor@suse.cz>
34561 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34562 instead of hard-wired defaults.
34564 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
34566 * doc/invoke.texi (MIPS Options): Update documentation of the
34567 floating-point multiply-accumulate instruction restrictions.
34569 2013-02-21 Kostya Serebryany <kcc@google.com>
34571 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34572 asan_shadow_offset on x86_64 linux.
34574 2013-02-21 Richard Biener <rguenther@suse.de>
34576 PR tree-optimization/56415
34578 2013-02-11 Richard Biener <rguenther@suse.de>
34580 PR tree-optimization/56273
34581 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34584 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34587 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34590 PR inline-asm/56405
34591 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34592 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34594 2013-02-20 Jan Hubicka <jh@suse.cz>
34596 PR tree-optimization/56265
34597 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34598 when target is referenced for first time.
34600 2013-02-20 Richard Biener <rguenther@suse.de>
34602 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34603 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34604 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34605 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34606 not return anything.
34607 (rename_ssa_copies): Do not remove unused locals.
34608 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34609 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34610 * passes.c (execute_function_todo): Do not schedule unused locals
34611 removal if cleanup_tree_cfg did something.
34612 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34613 about the number of removed locals.
34615 2013-02-20 Richard Biener <rguenther@suse.de>
34617 PR tree-optimization/56398
34618 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34620 2013-02-20 Martin Jambor <mjambor@suse.cz>
34622 PR tree-optimization/55334
34623 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34624 restricted pointers to arrays.
34626 2013-02-20 Richard Biener <rguenther@suse.de>
34627 Jakub Jelinek <jakub@redhat.com>
34629 PR tree-optimization/56396
34630 * tree-ssa-ccp.c (n_const_val): New static variable.
34631 (get_value): Return NULL for SSA names we don't have a lattice
34633 (ccp_initialize): Initialize n_const_val.
34634 * tree-ssa-copy.c (n_copy_of): New static variable.
34635 (init_copy_prop): Initialize n_copy_of.
34636 (get_value): Return NULL_TREE for SSA names we don't have a
34639 2013-02-20 Martin Jambor <mjambor@suse.cz>
34641 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34643 2013-02-20 Richard Biener <rguenther@suse.de>
34645 * genpreds.c (write_lookup_constraint): Do not compare first
34646 letter of the constraint again.
34648 2013-02-20 Richard Biener <rguenther@suse.de>
34650 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34652 (get_use_iv_cost): Terminate hashtable walk when coming across
34655 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34657 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34658 reassociation for avx2 targets.
34660 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34662 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34663 Add version check for v8.10.a to enable microblaze_has_clz
34664 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34665 version and TARGET_PATTERN_COMPARE check
34666 * config/microblaze/microblaze.md: New clzsi2 instruction
34668 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34670 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34671 function before branching.
34673 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34675 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34677 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34679 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34681 PR middle-end/55889
34682 * sel-sched.c: Include ira.h.
34683 (implicit_clobber_conflict_p): New function.
34684 (moveup_expr): Use it.
34685 * Makefile.in (sel-sched.o): Depend on ira.h.
34687 2013-02-19 Richard Biener <rguenther@suse.de>
34689 PR tree-optimization/56384
34690 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34691 (vn_hash_type): Split out from ...
34692 (vn_hash_constant_with_type): ... here.
34693 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34694 (vn_phi_eq): Compare types from vn_phi_s structure.
34695 (vn_phi_lookup): Populate vn_phi_s type.
34696 (vn_phi_insert): Likewise.
34698 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34700 PR tree-optimization/56350
34701 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34702 if haven't found reduction or nested cycle operand, rather than
34703 asserting we must find it.
34705 PR tree-optimization/56381
34706 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34709 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34710 Jakub Jelinek <jakub@redhat.com>
34713 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34714 (swap_optab_enable): Same.
34715 (init_all_optabs): Use argument instead of global.
34716 * tree.h (struct tree_optimization_option): New field target_optabs.
34717 * expr.h (init_all_optabs): Add argument to prototype.
34718 (TREE_OPTIMIZATION_OPTABS): New.
34719 (save_optabs_if_changed): Protoize.
34720 * optabs.h: Declare this_fn_optabs.
34721 * optabs.c (save_optabs_if_changed): New.
34722 Declare this_fn_optabs.
34723 (init_optabs): Add argument to init_all_optabs() call.
34724 * function.c (invoke_set_current_function_hook): Handle per
34726 * function.h (struct function): New field optabs.
34727 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34728 optimization_current_node has changed.
34729 * target-globals.h (save_target_globals_default_opts): Protoize.
34730 * target-globals.c (save_target_globals_default_opts): New.
34732 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34735 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34736 registers %fr12 and %fr12R as call used.
34739 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34740 and HImode, require all displacements to be an integer multiple of
34742 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34743 only allow QImode and HImode when reload is in progress and strict is
34744 true. Likewise for symbolic addresses. Use base14_operand to check
34745 displacements in REG+BASE addresses.
34747 2013-02-18 Richard Biener <rguenther@suse.de>
34749 PR tree-optimization/56366
34750 * tree-vect-loop.c (get_initial_def_for_induction): Properly
34751 handle sign-conversion of outer-loop initial induction value.
34753 2013-02-18 Richard Biener <rguenther@suse.de>
34755 PR middle-end/56349
34756 * cfghooks.c (merge_blocks): If we merge a latch into another
34757 block adjust references to it.
34758 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34759 (verify_loop_structure): Verify that a recorded latch is in fact
34762 2013-02-18 Richard Biener <rguenther@suse.de>
34764 PR tree-optimization/56321
34765 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34766 order SSA name release and virtual operand unlinking.
34768 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34770 * config/microblaze/microblaze.md (save_stack_block): Define.
34771 (restore_stack_block): Likewise.
34773 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34775 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34776 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34777 * config/microblaze/microblaze.c (microblaze_option_override):
34778 Bail out early for PIC modes when target does not support PIC.
34780 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34782 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34783 Replace with a microblaze version.
34784 (microblaze_trampoline_init): Adapt for microblaze.
34785 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34788 2013-02-16 Jakub Jelinek <jakub@redhat.com>
34789 Dodji Seketeli <dodji@redhat.com>
34792 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34793 (instrument_mem_region_access): Do not forget to always put
34794 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34795 0) statement, even for cases where either 'base' or 'base + len'
34796 are not instrumented -- because they have been previously
34797 instrumented. Simplify the logic by putting all the statements
34798 instrument 'base + len' inside a sequence, and then insert that
34799 sequence right before the current insertion point. Then, to
34800 instrument 'base + len', just get an iterator on that statement.
34801 And do not forget to update the pointer to iterator the function
34802 received as argument.
34804 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34806 PR rtl-optimization/56348
34807 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34809 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34811 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34812 (clean_graph_dump_file): Pass base to start_graph_dump.
34814 2013-02-14 Richard Henderson <rth@redhat.com>
34817 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34819 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34821 * collect2-aix.h: Define F_LOADONLY.
34823 2013-02-14 Richard Biener <rguenther@suse.de>
34826 * varasm.c (output_constant_def_1): Get the decl representing
34827 the constant as argument.
34828 (output_constant_def): Wrap output_constant_def_1.
34829 (make_decl_rtl): Use output_constant_def_1 with the decl
34830 representing the constant.
34831 (build_constant_desc): Optionally re-use a decl already
34832 representing the constant.
34833 (tree_output_constant_def): Adjust.
34835 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34838 * asan.c (instrument_builtin_call): Really put the length of the
34839 second source argument into src1_len.
34841 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34843 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34844 argument. If it is false, don't create edge from then_bb to
34846 (insert_if_then_before_iter): Pass true to it.
34847 (build_check_stmt): Pass false to it.
34848 (transform_statements): Flush hash table only on extended basic
34849 block boundaries, rather than at the beginning of every bb.
34850 Don't flush hash table on nonfreeing_call_p calls.
34851 * tree-flow.h (nonfreeing_call_p): New prototype.
34852 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34854 2013-02-13 David S. Miller <davem@davemloft.net>
34856 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34858 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34861 * ira.c (max_regno_before_ira): Move from ...
34863 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34866 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34868 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34870 2013-02-13 Richard Biener <rguenther@suse.de>
34873 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34874 globals in MEM_REFs.
34876 2013-02-13 Richard Biener <rguenther@suse.de>
34878 * loop-init.c (loop_optimizer_init): Clear loop state when
34879 re-initializing preserved loops.
34880 * loop-unswitch.c (unswitch_single_loop): Return whether
34881 we unswitched the loop. Do not verify loop state here.
34882 (unswitch_loops): When we unswitched a loop discover new loops.
34884 2013-02-13 Kostya Serebryany <kcc@google.com>
34886 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34888 * sanitizer.def: Rename __asan_init to __asan_init_v1.
34890 2013-02-12 Dodji Seketeli <dodji@redhat.com>
34892 Avoid instrumenting duplicated memory access in the same basic block
34893 * Makefile.in (asan.o): Add new dependency on hash-table.h
34894 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34895 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34896 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34897 (free_mem_ref_resources, has_mem_ref_been_instrumented)
34898 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34899 (get_mem_ref_of_assignment): New functions.
34900 (get_mem_refs_of_builtin_call): Extract from
34901 instrument_builtin_call and tweak a little bit to make it fit with
34903 (instrument_builtin_call): Use the new
34904 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
34905 of is_gimple_builtin_call.
34906 (instrument_derefs, instrument_mem_region_access): Insert the
34907 instrumented memory reference into the hash table.
34908 (maybe_instrument_assignment): Renamed instrument_assignment into
34909 this, and change it to advance the iterator when instrumentation
34910 actually happened and return true in that case. This makes it
34911 homogeneous with maybe_instrument_assignment, and thus give a
34912 chance to callers to be more 'regular'.
34913 (transform_statements): Clear the memory reference hash table
34914 whenever we enter a new BB, when we cross a function call, or when
34915 we are done transforming statements. Use
34916 maybe_instrument_assignment instead of instrumentation. No more
34917 need to special case maybe_instrument_assignment and advance the
34918 iterator after calling it; it's now handled just like
34919 maybe_instrument_call. Update comment.
34921 2013-02-13 Richard Biener <rguenther@suse.de>
34923 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34924 Fix loop discovery code.
34926 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
34928 PR inline-asm/56148
34929 * lra-constraints.c (process_alt_operands): Match early clobber
34930 operand with itself. Check conflicts with earlyclobber only if
34931 the operand is not reloaded. Prefer to reload conflicting operand
34932 if earlyclobber and matching operands are the same.
34934 2013-02-12 Richard Biener <rguenther@suse.de>
34937 * lto-streamer-out.c (write_symbol): Do not output symbols
34938 for hard register variables.
34940 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
34943 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34944 (umulsidi3_insn, mulsidi3_insn): New insns.
34946 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
34948 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34949 (struct tune_params): Add vec_costs field.
34950 * config/arm/arm.c (arm_builtin_vectorization_cost)
34951 (arm_add_stmt_cost): New functions.
34952 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34953 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34954 (arm_default_vec_cost): New struct of type cpu_vec_costs.
34955 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34956 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34957 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34958 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34960 2013-02-12 Richard Biener <rguenther@suse.de>
34963 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34964 decls again if possible.
34966 2013-02-12 Richard Biener <rguenther@suse.de>
34968 PR middle-end/56288
34969 * tree-ssa.c (verify_ssa_name): Fix check, move
34970 SSA_NAME_IN_FREE_LIST check up.
34972 2013-02-12 Jakub Jelinek <jakub@redhat.com>
34973 Steven Bosscher <steven@gcc.gnu.org>
34975 PR rtl-optimization/56151
34976 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34977 equal to op0 or op1, and last_insn pattern is CODE operation
34978 with MEM dest and one of the operands matches that MEM.
34980 2013-02-11 Sriraman Tallam <tmsriram@google.com>
34982 * doc/extend.texi: Document Function Multiversioning and "default"
34983 parameter string to target attribute.
34984 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34985 target attribute parameter is "default".
34986 (ix86_compare_version_priority): Remove checks for target attribute.
34987 (ix86_mangle_function_version_assembler_name): Change error to sorry.
34988 Remove check for target attribute equal to NULL. Add assert.
34989 (ix86_generate_version_dispatcher_body): Change error to sorry.
34991 2013-02-11 Iain Sandoe <iain@codesourcery.com>
34992 Jack Howarth <howarth@bromo.med.uc.edu>
34993 Patrick Marlier <patrick.marlier@gmail.com>
34996 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34997 define ENDFILE_SPEC as TM_DESTRUCTOR.
34998 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
35000 2013-02-11 Alexander Potapenko <glider@google.com>
35001 Jack Howarth <howarth@bromo.med.uc.edu>
35002 Jakub Jelinek <jakub@redhat.com>
35005 * config/darwin.c (cdtor_record): Rename ctor_record.
35006 (sort_cdtor_records): Rename sort_ctor_records.
35007 (finalize_dtors): New routine to sort destructors by
35008 priority before use in assemble_integer.
35009 (machopic_asm_out_destructor): Use finalize_dtors if needed.
35011 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
35013 PR rtl-optimization/56275
35014 * simplify-rtx.c (avoid_constant_pool_reference): Check that
35015 offset is non-negative and less than cmode size before
35016 calling simplify_subreg.
35018 2013-02-11 Richard Biener <rguenther@suse.de>
35020 PR tree-optimization/56264
35021 * cfgloop.h (fix_loop_structure): Adjust prototype.
35022 * loop-init.c (fix_loop_structure): Return the number of
35023 newly discovered loops.
35024 * tree-cfgcleanup.c (repair_loop_structures): When new loops
35025 are discovered, do a full loop-closed SSA rewrite.
35027 2013-02-11 Richard Biener <rguenther@suse.de>
35029 PR tree-optimization/56273
35030 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
35032 (check_array_ref): Fix missing newline in dumps.
35033 (search_for_addr_array): Likewise.
35035 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
35037 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
35039 2013-02-09 Jakub Jelinek <jakub@redhat.com>
35042 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
35044 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
35046 PR rtl-optimization/56246
35047 * lra-constraints.c (simplify_operand_subreg): Try to reuse
35049 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
35050 constraints are satisfied.
35052 2013-02-08 Jeff Law <law@redhat.com>
35055 * emit-rtl.c (reg_is_parm_p): New function.
35056 * regs.h (reg_is_parm_p): New prototype.
35057 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
35058 callee-clobbered registers.
35060 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
35063 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
35064 If there is no implicit builtin declaration, just return NULL.
35066 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35068 * config/i386/sse.md (FMAMODEM): New mode iterator.
35069 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
35070 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
35072 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35074 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
35075 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
35076 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
35078 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35080 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
35081 (microblaze*-*-elf): Likewise.
35082 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
35084 * config/microblaze/microblaze-c.c: Add builtin defines for
35085 _LITTLE_ENDIAN and _BIG_ENDIAN.
35086 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
35087 add to TARGET_DEFAULT flags.
35088 Expand ASM_SPEC and LINK_SPEC.
35089 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
35090 * config/microblaze/microblaze.md: Update extendsidi2 and
35091 movdi_internal instructions to use low-order / high-order reg
35093 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
35094 options and inversemask / mask of LITTLE_ENDIAN.
35095 * config/microblaze/t-microblaze: Expand multilib options to
35096 include mlittle-endian (le) and update exceptions patterns.
35098 2013-02-08 Jakub Jelinek <jakub@redhat.com>
35100 PR rtl-optimization/56195
35101 * lra-constraints.c (get_reload_reg): Don't reuse regs
35102 if they have smaller mode than requested, if they have
35103 wider mode than requested, try to return a SUBREG.
35105 PR tree-optimization/56250
35106 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
35107 if type is unsigned and code isn't MULT_EXPR.
35109 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
35111 PR tree-optimization/56064
35112 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
35113 bits according to mode.
35114 * fixed-value.h (fixed_from_double_int)
35115 (const_fixed_from_double_int): Adjust comments.
35117 2013-02-08 Richard Biener <rguenther@suse.de>
35120 * lto-streamer.h (struct data_in): Remove current_file, current_line
35121 and current_col members.
35122 * lto-streamer-out.c (lto_output_location): Stream changed bits
35123 en-block for efficiency.
35124 * lto-streamer-in.c (clear_line_info): Remove.
35125 (lto_input_location): Cache current file, line and column
35126 globally via local statics. Read changed bits en-block.
35127 (input_function): Do not call clear_line_info.
35128 (lto_read_body): Likewise.
35129 (lto_input_toplevel_asms): Likewise.
35131 2013-02-08 Michael Matz <matz@suse.de>
35133 PR tree-optimization/52448
35134 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
35135 (nt_call_phase): New static.
35136 (add_or_mark_expr): Only mark accesses with newer phase than any
35138 (nonfreeing_call_p): New.
35139 (nt_init_block): Update nt_call_phase, mark blocks as visited.
35140 (nt_fini_block): Keep blocks marked as visited.
35141 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
35143 2013-02-08 Richard Biener <rguenther@suse.de>
35145 * ira.c (ira): Free broken dominator information.
35147 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35149 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
35151 2013-02-08 Marek Polacek <polacek@redhat.com>
35153 * cfgloop.c (verify_loop_structure): Add more checking of headers.
35155 2013-02-08 Richard Biener <rguenther@suse.de>
35157 PR middle-end/56181
35158 * cfgloop.h (flow_loops_find): Adjust.
35159 (bb_loop_header_p): Declare.
35160 * cfgloop.c (bb_loop_header_p): New function split out from ...
35161 (flow_loops_find): ... here. Adjust function signature,
35162 support incremental loop structure update.
35163 (verify_loop_structure): Cleanup. Verify a loop is a loop.
35164 * cfgloopmanip.c (fix_loop_structure): Move ...
35165 * loop-init.c (fix_loop_structure): ... here.
35166 (apply_loop_flags): Split out from ...
35167 (loop_optimizer_init): ... here.
35168 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
35169 in incremental mode, only remove dead loops here.
35171 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
35174 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
35175 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
35176 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
35177 (*round<mode>3.libgcc): New insns for fixed-modes.
35178 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
35179 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
35180 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
35181 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
35182 implementations. Define to __builtin_avr_absFX,
35183 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
35184 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
35185 __builtin_avr_countlsFX, respectively.
35186 * config/avr/avr-c.c (target.h): Include it.
35187 (enum avr_builtin_id): New enum.
35188 (avr_resolve_overloaded_builtin): New static function.
35189 (avr_register_target_pragmas): Use it to set
35190 targetm.resolve_overloaded_builtin.
35191 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
35192 tree nodes used by DEF_BUILTIN.
35193 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
35194 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
35195 <AVR_BUILTIN_xxBITS>: Same.
35197 2013-02-08 Richard Biener <rguenther@suse.de>
35199 * cfgloop.c (verify_loop_structure): Properly handle
35200 a loop exiting to another loop header.
35201 * ira-int.h (ira_loops): Remove.
35202 * ira.c (ira_loops): Remove.
35203 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
35204 (do_reload): Use loop_optimizer_finalize.
35205 * ira-build.c (create_loop_tree_nodes): Use get_loops and
35206 number_of_loops to access the loop tree.
35207 (more_one_region_p): Likewise.
35208 (finish_loop_tree_nodes): Likewise.
35209 (rebuild_regno_allocno_maps): Likewise.
35210 (mark_loops_for_removal): Likewise.
35211 (mark_all_loops_for_removal): Likewise.
35212 (remove_unnecessary_regions): Likewise.
35213 (ira_build): Likewise.
35214 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
35216 2013-02-08 Richard Biener <rguenther@suse.de>
35218 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
35219 * ipa-pure-const.c (analyze_function): Avoid calling
35220 mark_irreducible_loops twice.
35221 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
35223 2013-02-07 David S. Miller <davem@davemloft.net>
35225 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
35227 * var-tracking.c (vt_add_function_parameter): Test the presence of
35228 HAVE_window_save properly and do not remap argument registers when
35229 we have a leaf function.
35231 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
35234 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
35236 * config/i386/i386.c (ix86_print_operand): Ditto.
35238 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
35240 * lra-constraints.c (process_alt_operands): Fix recently added comment.
35242 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
35244 PR rtl-optimization/56225
35245 * lra-constraints.c (process_alt_operands): Check that reload hard
35246 reg can hold value for strict_low_part.
35248 2013-02-07 Jakub Jelinek <jakub@redhat.com>
35251 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
35252 dwarf2out_end_function.
35253 (in_first_function_p, maybe_at_text_label_p,
35254 first_loclabel_num_not_at_text_label): New variables.
35255 (dwarf2out_var_location): In the first function find out
35256 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
35257 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
35260 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
35262 PR rtl-optimization/56178
35263 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
35264 SUBREG of a register. Tidy up related block of code.
35265 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
35266 note if the source is a register or a SUBREG of a register.
35268 2013-02-07 Jakub Jelinek <jakub@redhat.com>
35271 * config/rs6000/rs6000.md (ptrm): New mode attr.
35272 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
35273 call_value_indirect_aix<pttrsize>,
35274 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
35277 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35279 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
35280 if -bnortl. Convert to strcmp and strncmp.
35282 2013-02-07 Alan Modra <amodra@gmail.com>
35285 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
35286 addresses won't wrap when offsetting.
35287 (rs6000_secondary_reload): Provide secondary reloads needed for
35288 wrapping LO_SUM addresses.
35290 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
35292 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
35293 MACH, just __MACH__.
35295 2013-02-06 Richard Biener <rguenther@suse.de>
35297 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
35298 instead of calling fix_loop_structure.
35300 2013-02-06 Jakub Jelinek <jakub@redhat.com>
35302 PR middle-end/56217
35303 * omp-low.c (use_pointer_for_field): Return false if
35304 lower_send_shared_vars doesn't generate any copy-out code.
35306 2013-02-06 Tom de Vries <tom@codesourcery.com>
35308 PR rtl-optimization/56131
35309 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
35310 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
35311 of the label is NULL. Add comment.
35313 2013-02-05 Jakub Jelinek <jakub@redhat.com>
35315 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
35318 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
35319 (STATIC_LIBTSAN_LIBS): Likewise.
35320 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
35321 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
35322 is defined, don't add anything else beyond that.
35323 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
35324 (LINK_COMMAND_SPEC): Use them.
35326 PR tree-optimization/56205
35327 * tree-stdarg.c (check_all_va_list_escapes): Return true if
35328 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
35329 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
35331 2013-02-05 Richard Biener <rguenther@suse.de>
35333 PR tree-optimization/53342
35334 PR tree-optimization/53185
35335 * tree-vectorizer.h (vect_check_strided_load): Remove.
35336 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
35337 not disallow peeling for vectorized strided loads.
35338 (vect_check_strided_load): Make static and simplify.
35339 (vect_analyze_data_refs): Adjust.
35340 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
35341 correctly when vectorizing strided loads.
35343 2013-02-05 Richard Biener <rguenther@suse.de>
35345 * doc/install.texi: Refer to ISL, not PPL.
35347 2013-02-05 Jan Hubicka <jh@suse.cz>
35349 PR tree-optimization/55789
35350 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
35352 2013-02-05 Jan Hubicka <jh@suse.cz>
35354 PR tree-optimization/55789
35355 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
35356 the dead call anyway.
35358 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
35361 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
35363 2013-02-04 Alexander Potapenko <glider@google.com>
35364 Jack Howarth <howarth@bromo.med.uc.edu>
35365 Jakub Jelinek <jakub@redhat.com>
35368 * config/darwin.c (sort_ctor_records): Stabilized qsort
35369 on constructor priority by using original position.
35370 (finalize_ctors): New routine to sort constructors by
35371 priority before use in assemble_integer.
35372 (machopic_asm_out_constructor): Use finalize_ctors if needed.
35374 2013-02-04 Jakub Jelinek <jakub@redhat.com>
35377 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35378 about visibility on artificial decls.
35379 * config/sol2.c (solaris_assemble_visibility): Likewise.
35381 2013-02-04 Kai Tietz <ktietz@redhat.com>
35384 * config/i386/i386.c (function_value_ms_64): Add additional valtype
35385 argument and improve checking of return-argument types for 16-byte
35387 (ix86_function_value_1): Add additional valtype argument on call
35388 of function_value_64.
35389 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35390 handling infunction_value_64 function.
35392 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35394 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35396 2013-02-04 Richard Biener <rguenther@suse.de>
35398 PR tree-optimization/56188
35399 * tree-ssa-structalias.c (label_visit): Consider case with
35400 initially non-empty points-to set.
35401 (perform_var_substitution): Dump node mapping and clean up.
35403 2013-02-04 Richard Guenther <rguenther@suse.de>
35406 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35407 node prevail as last resort.
35408 (lto_symtab_merge_decls): Remove guard on LTRANS here.
35409 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35411 2013-02-04 Richard Biener <rguenther@suse.de>
35413 PR tree-optimization/56113
35414 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35416 (equiv_class_lookup_or_add): ... this.
35417 (label_visit): Adjust and fix error in previous patch.
35418 (perform_var_substitution): Adjust.
35420 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35422 * config/sh/divtab.c: Fix formatting and comments throughout the file.
35423 * config/sh/sh4-300.md: Likewise.
35424 * config/sh/sh4a.md: Likewise.
35425 * config/sh/constraints.md: Likewise.
35426 * config/sh/sh.md: Likewise.
35427 * config/sh/netbsd-elf.h: Likewise.
35428 * config/sh/predicates.md: Likewise.
35429 * config/sh/sh-protos.h: Likewise.
35430 * config/sh/ushmedia.h: Likewise.
35431 * config/sh/linux.h: Likewise.
35432 * config/sh/sh.c: Likewise.
35433 * config/sh/superh.h: Likewise.
35434 * config/sh/elf.h: Likewise.
35435 * config/sh/sh4.md: Likewise.
35436 * config/sh/sh.h: Likewise.
35438 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35440 * config/pa/constraints.md: Adjust unused letters. Change "T"
35441 constraint to match_test floating_point_store_memory_operand().
35442 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35443 (base14_operand): New.
35444 (floating_point_store_memory_operand): New.
35445 (integer_store_memory_operand): Revise to use base14_operand and
35446 reg_plus_base_memory_operand.
35447 (move_dest_operand): Allow symbolic_memory_operands.
35448 (symbolic_memory_operand): Check for LO_SOM.
35449 (symbolic_operand): Change default case to break.
35450 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35451 CONST_DOUBLE values to be reloaded by putting them into memory when
35452 the destination is a floating point register.
35453 (movdf): Remove code to handle CONST_DOUBLE.
35455 (reload_indf_r1): New.
35456 (reload_insf_r1): New.
35457 Consistently use "Q" and "T" constraints with integer and floating
35458 point move instructions, respectively.
35459 (movdi): Remove FAIL.
35460 Change predicate for source operand unamed DImode move from
35461 general_operand to move_src_operand.
35462 (umulsidi3): Change predicate for destination operand to
35464 Likewise for similar unamed patterns.
35465 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35466 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35467 (hppa_legitimize_address): Simplify mask calculation.
35468 (pa_emit_move_sequence): Revised handling of secondary reloads from
35469 REG+D addresses for floating point loads and stores. Directly handle
35470 loading CONST0_RTX (mode) to a floating point register.
35471 (pa_secondary_reload): Handle reloading DF and SFmode constant values
35472 to floating point registers. Don't restrict secondary reloads to
35473 floating point registers to integer modes. Revise some comments and
35475 (TARGET_LEGITIMATE_ADDRESS_P): Define.
35476 (pa_legitimate_address_p): New.
35477 (pa_legitimize_reload_address): New.
35478 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35479 (STRICT_REG_OK_FOR_BASE_P): New.
35480 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
35481 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35483 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
35484 Andrew Dixie <andrewd@gentrack.com>
35486 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35489 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
35491 * expmed.c (extract_bit_field_1): Pass the full width of the
35492 structure to get_best_reg_extraction_insn.
35494 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35497 * configure.ac (use_cxa_atexit): Add AIX.
35498 * configure: Regenerate.
35500 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35502 2013-02-01 Jakub Jelinek <jakub@redhat.com>
35505 * final.c (need_profile_function): New variable.
35506 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35507 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35508 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35509 notes, targetm.asm_out.function_prologue doesn't emit anything,
35510 HAVE_prologue and profiler should be emitted before prologue,
35511 set need_profile_function instead of emitting it.
35512 (final_scan_insn): If need_profile_function, emit
35513 profile_function on the first NOTE_INSN_BASIC_BLOCK or
35514 NOTE_INSN_FUNCTION_BEG note.
35516 2013-02-01 Richard Henderson <rth@redhat.com>
35518 * config/rs6000/rs6000.md (smulditi3): New.
35521 * config/alpha/alpha.md (umulditi3): New.
35523 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35525 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35526 (ASM_OUTPUT_ALIGNED_LOCAL): New.
35528 2013-02-01 Richard Biener <rguenther@suse.de>
35530 PR tree-optimization/56113
35531 * tree-ssa-structalias.c (label_visit): Reduce work for
35532 single-predecessor nodes.
35534 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
35536 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35537 range isn't testing for zero.
35539 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
35541 PR middle-end/56113
35542 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35544 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
35545 Nick Clifton <nickc@redhat.com>
35547 * config/v850/constraints.md (Q): Define as a memory constraint.
35548 * config/v850/predicates.md (label_ref_operand): New predicate.
35549 (e3v5_shift_operand): New predicate.
35550 (ior_operator): New predicate.
35551 * config/v850/t-v850: Add e3v5 multilib.
35552 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35553 (v850_gen_movdi): Prototype.
35554 * config/v850/v850.c: Add support for e3v5 architecture.
35555 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35557 (construct_save_jarl): Add e3v5 long JARL support.
35558 (v850_adjust_insn_length): New function. Adjust length of call
35559 insns when using e3v5 instructions.
35560 (v850_gen_movdi): New function: Generate instructions to move a
35562 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35563 (CPP_SPEC): Define __v850e3v5__ as appropriate.
35564 (TARGET_USE_FPU): Enable for e3v5.
35565 (CONST_OK_FOR_W): New macro.
35566 (ADJUST_INSN_LENGTH): Define.
35567 * config/v850/v850.md (UNSPEC_LOOP): Define.
35568 (attr cpu): Add v850e3v5.
35569 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35570 (movdi): New pattern.
35571 (movdi_internal): New pattern.
35572 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35573 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35574 (cstoresf4): Likewise.
35575 (cstoredf4): Likewise.
35576 (insv): New pattern.
35577 (rotlso3_a): New pattern.
35578 (rotlsi3_b): New pattern
35579 (rotlsi3_v850e3v5): New pattern.
35580 (doloop_begin): New pattern.
35581 (fix_loop_counter): New pattern.
35582 (doloop_end): New pattern.
35583 (branch_normal): Add e3v5 long branch support.
35584 (branch_invert): Likewise.
35585 (branch_z_normal): Likewise.
35586 (branch_z_invert): Likewise.
35587 (branch_nz_normal): Likewise.
35588 (branch_nz_invert): Likewise.
35589 (call_internal_short): Add e3v5 register-indirect JARL support.
35590 (call_internal_long): Likewise.
35591 (call_value_internal_short): Likewise.
35592 (call_value_internal_long): Likewise.
35593 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35594 (mloop): New option.
35595 * config.gcc: Add support for configuring v840e3v5 target.
35596 * doc/invoke.texi: Document new v850 specific command line options.
35598 2013-01-31 Paul Koning <ni1d@arrl.net>
35602 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35603 children if parent is a class.
35604 (prune_unused_types_prune): Don't add DW_AT_declaration.
35606 2013-01-31 Richard Biener <rguenther@suse.de>
35608 PR tree-optimization/56157
35609 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35610 match up operand with SLP child.
35612 2013-01-31 Jason Merrill <jason@redhat.com>
35615 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35616 parameters the first time.
35617 (gen_scheduled_generic_parms_dies): Check completeness here.
35619 2013-01-31 Richard Biener <rguenther@suse.de>
35621 PR middle-end/53073
35622 * common.opt (faggressive-loop-optimizations): New flag,
35623 enabled by default.
35624 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35625 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35626 infer_loop_bounds_from_undefined by it.
35628 2013-01-31 Richard Biener <rguenther@suse.de>
35630 PR tree-optimization/56150
35631 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35632 visit virtual operands.
35633 (find_uses_to_rename_bb): Likewise.
35635 2013-01-31 Richard Biener <rguenther@suse.de>
35637 PR tree-optimization/56150
35638 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35639 mixed store non-store stmts.
35641 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35644 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35645 LIBASAN_EARLY_SPEC is defined.
35646 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35647 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35649 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35652 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35653 invalid args instead of ICEing on it.
35654 (ix86_valid_target_attribute_tree): Return error_mark_node if
35655 ix86_valid_target_attribute_inner_p failed.
35656 (ix86_valid_target_attribute_p): Return false only if
35657 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35658 target("default") attribute.
35659 (sorted_attr_string): Change argument from const char * to tree,
35660 merge in all target attribute arguments rather than just one.
35661 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35662 instead of free. Avoid using strcat.
35663 (ix86_mangle_function_version_assembler_name): Mangle
35664 target("default") as if no target attribute is present. Adjust
35665 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35666 instead of xmalloc and XDELETEVEC instead of free.
35667 (ix86_function_versions): Don't return true if one of the decls
35668 doesn't have target attribute. If they don't and one of the decls
35669 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35670 sorted_attr_string caller. Use XDELETEVEC instead of free.
35671 (ix86_supports_function_versions): Remove.
35672 (make_name): Fix up formatting.
35673 (make_dispatcher_decl): Remove resolver_name and its initialization.
35674 Avoid leaking memory.
35675 (is_function_default_version): Return true if there is
35676 target("default") attribute rather than no target attribute at all.
35677 (make_resolver_func): Avoid leaking memory.
35678 (ix86_generate_version_dispatcher_body): Likewise.
35679 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35680 * target.def (supports_function_versions): Remove.
35681 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35682 * doc/tm.texi: Regenerated.
35684 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35686 PR rtl-optimization/56144
35687 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35688 for values with side effects.
35690 2013-01-30 Richard Biener <rguenther@suse.de>
35692 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35693 (sparseset_pop): Likewise.
35694 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35695 to be able to use quick_push in the worker loop.
35697 2013-01-30 Marek Polacek <polacek@redhat.com>
35699 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35701 2013-01-30 Richard Biener <rguenther@suse.de>
35704 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35706 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35708 PR tree-optimization/56064
35709 * fixed-value.c (fixed_from_double_int): New function.
35710 * fixed-value.h (fixed_from_double_int): New prototype.
35711 (const_fixed_from_double_int): New static inline function.
35712 * fold-const.c (native_interpret_fixed): New static function.
35713 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35714 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35715 (native_encode_fixed): New static function.
35716 (native_encode_expr) <FIXED_CST>: Use it.
35717 (native_interpret_int): Move double_int worker code to...
35718 * double-int.c (double_int::from_buffer): ...this new static method.
35719 * double-int.h (double_int::from_buffer): Prototype it.
35721 2013-01-30 Richard Biener <rguenther@suse.de>
35723 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35724 New pointer-map and obstack.
35725 (init_alias_vars): Allocate pointer-map and obstack.
35726 (delete_points_to_sets): Free them.
35727 (find_what_var_points_to): Cache result.
35728 (find_what_p_points_to): Adjust for changed interface of
35729 find_what_var_points_to.
35730 (compute_points_to_sets): Likewise.
35731 (ipa_pta_execute): Likewise.
35733 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35735 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35736 * configure: Regenerate.
35737 * config.in: Regenerate.
35738 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35739 #nobits/#progbits if supported.
35741 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
35744 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35745 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35746 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35748 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35750 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35751 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35753 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35755 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35756 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35758 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35760 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35762 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35763 * config/arm/cortex-a7.md: New bypasses using
35764 arm_mac_accumulator_is_result.
35766 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35768 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
35769 (cortex_a7_neon_mla): Likewise.
35770 (cortex_a7_fpfmad): New reservation.
35771 (cortex_a7_fpmacs): Use ffmas and update required units.
35772 (cortex_a7_fpmuld): Update required units and latency.
35773 (cortex_a7_fpmacd): Likewise.
35774 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35775 (cortex_a7_neon). Likewise.
35776 (bypass) Update participating units.
35778 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35780 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35781 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35783 * config/arm/vfp11.md (vfp_farith): Use ffmas.
35784 (vfp_fmul): Use ffmad.
35785 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35786 (cortex_r4_fmacd): Use ffmad.
35787 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35788 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
35789 (cortex_a9_fmacd): Use ffmad.
35790 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35791 (cortex_a8_vfp_macd): Use ffmad.
35792 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35793 (cortex_a5_fpmacd): Use ffmad.
35794 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35795 (cortex_a15_vfp_macd): Use ffmad.
35796 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35798 2013-01-29 Jason Merrill <jason@redhat.com>
35801 * varasm.c (default_assemble_visibility): Don't warn about
35802 visibility on artificial decls.
35804 2013-01-29 Richard Biener <rguenther@suse.de>
35806 PR tree-optimization/56113
35807 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35809 (label_visit): Free duplicate bitmaps and record the leader instead.
35810 (perform_var_substitution): Adjust.
35812 2013-01-29 Richard Biener <rguenther@suse.de>
35814 PR tree-optimization/55270
35815 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35816 the CFG, schedule loops for fixup.
35818 2013-01-29 Nick Clifton <nickc@redhat.com>
35820 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35823 2013-01-28 Leif Ekblad <leif@rdos.net>
35825 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35826 * config/i386/i386.h (TARGET_RDOS): New macro.
35827 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35828 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35829 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35830 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35831 DEFAULT_LARGE_SECTION_THRESHOLD.
35832 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35833 * config/i386/rdos.h: New file.
35834 * config/i386/rdos64.h: New file.
35836 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35839 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35842 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35844 PR rtl-optimization/56117
35845 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35846 call cselib_lookup_from_insn on the MEM before calling
35847 add_insn_mem_dependence.
35849 2013-01-28 Richard Biener <rguenther@suse.de>
35851 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35852 to a stmt that didn't have one.
35853 (copy_phis_for_bb): Likewise for PHI arguments.
35854 (copy_debug_stmt): Likewise for debug stmts.
35856 2013-01-28 Richard Biener <rguenther@suse.de>
35858 PR tree-optimization/56034
35859 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35860 (partition_builtin_p): Adjust.
35861 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35862 it is the last partition.
35863 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35864 up the vertex for the definition.
35865 (classify_partition): Classify whether a partition is a
35866 PKIND_REDUCTION, thus has uses outside of the loop.
35867 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35868 Merge all PKIND_REDUCTION partitions into the last partition.
35869 (tree_loop_distribution): Seed partitions from reductions as well.
35871 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35873 PR tree-optimization/56125
35874 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35875 pow(x,c) into sqrt(x) * powi(x, n/2) or
35876 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35877 optimizing for size.
35878 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35879 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35882 PR tree-optimization/56094
35883 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35884 to UNKNOWN_LOCATION while gimplifying expr.
35886 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
35889 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35890 operand 0 in movabs insn template for -masm=intel asm alternative.
35891 (*movabs<mode>_2): Ditto for operand 1.
35893 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
35896 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35899 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35901 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35904 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35906 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35907 Undef to avoid warning.
35909 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35911 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35912 * configure: Regenerate.
35914 2013-01-25 Jakub Jelinek <jakub@redhat.com>
35916 PR tree-optimization/56098
35917 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35918 for stmts with volatile ops.
35919 (cond_store_replacement): Don't optimize if assign has volatile ops.
35920 (cond_if_else_store_replacement_1): Don't optimize if either
35921 then_assign or else_assign have volatile ops.
35922 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35925 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35927 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35929 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35931 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35932 missing ':' in asm example.
35934 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
35936 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35937 entries into lane and laneq entries.
35938 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35939 Remove AdvSIMD scalar modes.
35940 (aarch64_sq<r>dmulh_laneq<mode>): New.
35941 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35943 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35944 builtin implementations to relfect changes in RTL in aarch64-simd.md.
35945 * config/aarch64/iterators.md (VCOND): New.
35948 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35951 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35952 Add NULL LIBNAME argument to existing definitions.
35953 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35954 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35955 * config/avr/avr.c (DEF_BUILTIN): Same.
35956 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35957 (avr_expand_builtin): Expand to a vanilla call if a libgcc
35958 implementation is available (DECL_ASSEMBLER_NAME is set).
35959 (avr_fold_absfx): New static function.
35960 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35961 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35962 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35963 AVR_BUILTIN_ABSLLK.
35964 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35965 (abshk, absk, abslk, absllk): Provide as static inline functions.
35967 2013-01-25 Marek Polacek <polacek@redhat.com>
35969 PR tree-optimization/56035
35970 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35972 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
35974 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35975 (*movtf_internal_rex64): Add (!o,C) alternative
35976 (*movxf_internal_rex64): Ditto.
35977 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35979 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
35981 * doc/invoke.texi: fix typo.
35982 * doc/objc.texi: fix typo.
35984 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
35986 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35987 for the first two alternatives.
35989 2013-01-24 Diego Novillo <dnovillo@google.com>
35991 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
35992 (ggc-zone.o): Remove.
35993 * configure.ac: Remove option --with-gc.
35994 * configure: Re-generate.
35995 * doc/install.texi: Remove documentation for --with-gc.
35996 * gengtype.c (write_enum_defn): Remove. Update all users.
35997 (write_Types_process_field): Remove generation of gt_e_* argument.
35998 (output_type_enum): Remove. Update all users.
35999 (write_enum_defn): Remove. Update all users.
36000 (enum alloc_zone): Remove. Update all users.
36001 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
36002 * ggc-common.c (ggc_splay_alloc): Remove first argument.
36003 Update all callers.
36004 (struct ptr_data): Remove field TYPE. Update all users.
36005 (gt_pch_note_object): Remove argument TYPE. Update all users.
36006 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
36008 * ggc-none.c (ggc_alloc_typed_stat): Remove.
36009 (struct alloc_zone): Remove.
36010 (ggc_internal_alloc_zone_stat): Remove.
36011 (ggc_internal_cleared_alloc_zone_stat): Remove.
36012 * ggc-page.c (ggc_alloc_typed_stat): Remove.
36013 (ggc_pch_count_object): Remove last argument. Update all users.
36014 (ggc_pch_alloc_object): Remove last argument. Update all users.
36015 (struct alloc_zone): Remove.
36016 * ggc-zone.c: Remove.
36017 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
36018 (struct alloc_zone): Remove.
36019 (ggc_alloc_typed_stat): Remove.
36020 (ggc_alloc_typed): Remove.
36021 (ggc_splay_alloc): Remove first argument.
36022 (rtl_zone): Remove. Update all users.
36023 (tree_zone): Remove. Update all users.
36024 (tree_id_zone): Remove. Update all users.
36025 (ggc_internal_zone_alloc_stat): Remove. Update all users.
36026 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
36027 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
36028 * tree-ssanames.c: Remove references to zone allocator in comments.
36030 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
36032 * config/avr/avr.c (avr_out_fract): Make register numbers that
36033 might be outside of source operand signed.
36035 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
36037 * config/i386/constraints.md (Yf): New constraint.
36038 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
36039 of f constraint to conditionaly disable x87 register preferences.
36040 (*movdf_internal): Ditto.
36041 (*movsf_internal): Ditto.
36043 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
36045 PR inline-asm/55934
36046 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
36047 that have operands with impossible constraints.
36048 Add a FIXME for a speed-up opportunity.
36049 * lra-constraints.c (process_alt_operands): Verify that a class
36050 selected from constraints on asms is valid for the operand mode.
36051 (curr_insn_transform): Remove incorrect comment.
36053 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
36055 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
36056 TOC operand is a valid symbol ref in the constant pool.
36058 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36060 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
36062 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
36065 * config/avr/stdfix.h: New file.
36066 * t-avr (stdfix-gcc.h): New rule to build it.
36067 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
36069 2013-01-23 Kostya Serebryany <kcc@google.com>
36071 * config/darwin.h: remove dependency on
36072 CoreFoundation (asan on Mac OS).
36074 2013-01-23 Jakub Jelinek <jakub@redhat.com>
36077 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
36078 instead of cmpdi_operand for first comparison operand.
36079 Don't assert that comparison operands aren't both constants.
36081 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
36083 * doc/install.texi (Downloading the Source): Update references to
36084 downloading separate components.
36086 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
36088 * doc/extend.texi (__int128): Improve grammar.
36090 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
36093 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
36094 alternative to (o,r).
36095 (*movdi_internal_rex64): Remove (!o,n) alternative.
36096 (DImode immediate->memory splitter): Remove.
36097 (DImode immediate->memory peephole2): Remove.
36098 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
36099 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
36100 alternative to (!o,*r).
36101 (*movtf_internal_sse): New pattern.
36102 (*movxf_internal_rex64): New pattern.
36103 (*movxf_internal): Disable for TARGET_64BIT.
36104 (*movdf_internal_rex64): Remove (!o,F) alternative.
36106 2013-01-22 Jakub Jelinek <jakub@redhat.com>
36108 PR middle-end/56074
36109 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
36110 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
36111 * tree-vect-loop-manip.c (find_loop_location): Also ignore
36112 stmt locations where LOCATION_LOCUS of the stmt location is
36113 UNKNOWN_LOCATION or BUILTINS_LOCATION.
36116 * config/i386/i386.md (UNSPEC_STOS): New.
36117 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
36118 *strsetqi_1): Add UNSPEC_STOS.
36120 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
36123 * doc/invoke.texi: Remove left over -Wsynth example.
36125 2013-01-21 Jakub Jelinek <jakub@redhat.com>
36127 PR tree-optimization/56051
36128 * fold-const.c (fold_binary_loc): Don't fold
36129 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
36130 a narrowing conversion, or widening conversion from signed
36133 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
36135 PR rtl-optimization/56023
36136 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
36137 dependent on debug instruction.
36139 2013-01-21 Martin Jambor <mjambor@suse.cz>
36141 PR middle-end/56022
36142 * function.c (allocate_struct_function): Call
36143 invoke_set_current_function_hook earlier.
36145 2013-01-21 Jakub Jelinek <jakub@redhat.com>
36147 * reload1.c (init_reload): Only initialize reload_obstack
36148 during the first call.
36150 2013-01-21 Marek Polacek <polacek@redhat.com>
36152 * cfgloop.c (verify_loop_structure): Fix up grammar.
36154 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
36156 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
36157 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
36159 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36162 * config/arm/marvell-pj4.md: Update copyright year.
36163 Fix up use of alu to alu_reg and simple_alu_imm.
36165 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
36167 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
36169 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
36172 * lra-constraints.c (curr_insn_transform): Don't reuse original
36173 insn for secondary memory move when memory mode should be different.
36175 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36177 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
36178 atomic_storedi_1): New patterns.
36180 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36182 btver2 pipeline descriptions.
36183 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
36185 * config/i386/i386.md (btver2_decode): New type attributes.
36186 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
36188 * config/i386/btver2.md: New file describing btver2 pipelines.
36190 2013-01-19 Andrew Pinski <apinski@cavium.com>
36192 PR tree-optimization/52631
36193 * tree-ssa-sccvn (visit_use): Before looking up the original
36194 statement, try looking up the simplified expression.
36196 2013-01-19 Anthony Green <green@moxielogic.com>
36198 * config/moxie/moxie.c (moxie_expand_prologue): Set
36199 current_function_static_stack_size.
36201 2013-01-18 Jakub Jelinek <jakub@redhat.com>
36203 PR tree-optimization/56029
36204 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
36205 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
36207 2013-01-18 Sharad Singhai <singhai@google.com>
36209 PR tree-optimization/55995
36210 * dumpfile.c (dump_loc): Print location only if available.
36211 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
36213 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
36216 * lra-constraints.c (curr_insn_transform): Reuse original insn for
36217 secondary memory move.
36218 (inherit_reload_reg): Use rclass instead of cl for
36219 check_secondary_memory_needed_p.
36221 2013-01-18 Jakub Jelinek <jakub@redhat.com>
36223 PR middle-end/56015
36224 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
36225 the case where writing real complex part of target modifies op1.
36227 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
36229 * config/aarch64/aarch64-simd.md
36230 (aarch64_vcond_internal<mode>): Handle unordered cases.
36231 * config/aarch64/iterators.md (v_cmp_result): New.
36233 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
36234 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36236 * config/arm/marvell-pj4.md: New file.
36237 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
36238 * config/arm/arm.md (generic_sched): Add marvell_pj4.
36239 (generic_vfp): Likewise.
36240 * config/arm/arm-cores.def: Add marvell-pj4.
36241 * config/arm/arm-tune.md: Regenerate.
36242 * config/arm/arm-tables.opt: Regenerate.
36243 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
36244 * doc/invoke.texi: Document marvell-pj4.
36246 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
36248 * config/aarch64/arm_neon.h: Map scalar types to standard types.
36250 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36255 * var-tracking.c (negative_power_of_two_p): New.
36256 (global_get_addr_cache, local_get_addr_cache): New.
36257 (get_addr_from_global_cache, get_addr_from_local_cache): New.
36258 (vt_canonicalize_addr): Rewrite using the above. Adjust the
36260 (vt_stack_offset_p): Remove.
36261 (vt_canon_true_dep): Always canonicalize loc's address.
36262 (clobber_overlapping_mems): Make sure we have a MEM.
36263 (local_get_addr_clear_given_value): New.
36264 (val_reset): Clear local cached entries.
36265 (compute_bb_dataflow): Create and release the local cache.
36266 Disable duplicate MEMs clobbering.
36267 (emit_notes_in_bb): Clobber MEMs likewise.
36268 (vt_emit_notes): Create and release the local cache.
36269 (vt_initialize, vt_finalize): Create and release the global
36270 cache, respectively.
36271 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
36273 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36275 PR libmudflap/53359
36276 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
36277 not found in the symtab.
36279 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36282 PR rtl-optimization/55547
36283 PR rtl-optimization/53827
36286 * alias.c (offset_overlap_p): New, factored out of...
36287 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
36288 the conservative special case for symbolic constants. Don't
36289 adjust zero sizes on alignment.
36291 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
36293 PR rtl-optimization/52573
36294 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
36295 REG_UNUSED for the same register.
36297 2013-01-17 Richard Biener <rguenther@suse.de>
36298 Marek Polacek <polacek@redhat.com>
36300 PR rtl-optimization/55833
36301 * loop-unswitch.c (unswitch_loops): Move loop verification...
36302 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
36303 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
36304 Set it to true when we're removing a loop from hierarchy tree in
36305 an irreducible region.
36306 (fix_bb_placements): Adjust caller.
36307 (fix_loop_placements): Likewise.
36309 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
36311 * config/avr/builtins.def (DEF_BUILTIN): Factor out
36312 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
36313 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
36314 Remove ID. Adjust comments.
36315 * config/avr/avr-c.c (avr_builtin_name): Remove.
36316 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
36317 * config/avr/avr.c (avr_tolower): New static function.
36318 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
36319 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
36320 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
36323 2013-01-17 Jan Hubicka <jh@suse.cz>
36325 PR tree-optimization/55273
36326 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
36328 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
36331 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
36332 store through atomic_store<mode>_1.
36333 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
36335 2013-01-17 Martin Jambor <mjambor@suse.cz>
36337 PR tree-optimizations/55264
36338 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
36339 for virtual methods.
36340 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
36341 virtual methods before inlining is over.
36342 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
36344 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
36347 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
36349 PR rtl-optimization/56005
36350 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
36351 pending reads for prefetch.
36353 2013-01-16 Ian Bolton <ian.bolton@arm.com>
36355 * config/aarch64/aarch64.md
36356 (*cstoresi_neg_uxtw): New pattern.
36357 (*cmovsi_insn_uxtw): New pattern.
36358 (*<optab>si3_uxtw): New pattern.
36359 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
36360 (*<optab>si3_insn_uxtw): New pattern.
36361 (*bswapsi2_uxtw): New pattern.
36363 2013-01-16 Richard Biener <rguenther@suse.de>
36365 * tree-inline.c (tree_function_versioning): Remove set but
36366 never used variable.
36368 2013-01-16 Richard Biener <rguenther@suse.de>
36370 PR tree-optimization/55964
36371 * tree-flow.h (rename_variables_in_loop): Remove.
36372 (rename_variables_in_bb): Likewise.
36373 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36374 (copy_loop_before): Adjust and delete update-ssa status.
36375 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36376 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
36377 (rename_variables_in_loop): Remove.
36378 (slpeel_update_phis_for_duplicate_loop): Likewise.
36379 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36380 use available cfg machinery instead of duplicating it.
36381 Update PHI nodes and perform poor-mans SSA update here.
36382 (slpeel_tree_peel_loop_to_edge): Adjust.
36384 2013-01-16 Richard Biener <rguenther@suse.de>
36386 PR tree-optimization/54767
36387 PR tree-optimization/53465
36388 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36389 (vrp_visit_phi_node): For PHI arguments coming via backedges
36390 drop all symbolical range information.
36391 (execute_vrp): Compute backedges.
36393 2013-01-16 Richard Biener <rguenther@suse.de>
36395 * doc/install.texi: Update CLooG and ISL requirements to
36398 2013-01-16 Christian Bruel <christian.bruel@st.com>
36401 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36402 (broken_move): Handle UNSPECV_SP_SWITCH_B.
36403 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36405 2013-01-16 DJ Delorie <dj@redhat.com>
36407 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36408 (UNSPECV_SP_SWITCH_E): New.
36409 (sp_switch_1): Change to an unspec.
36410 (sp_switch_2): Change to an unspec. Don't use post-inc when we
36413 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
36415 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36416 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36417 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36418 (expand_mem_thread_fence): Ditto.
36419 (expand_mem_signal_fence): Ditto.
36420 (expand_atomic_load): Ditto.
36421 (expand_atomic_store): Ditto.
36423 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
36425 PR rtl-optimization/55547
36426 PR rtl-optimization/53827
36429 * alias.c (memrefs_conflict_p): Set sizes to negative after
36432 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36435 * function.c (thread_prologue_and_epilogue_insns): Always
36436 add crtl->drap_reg to set_up_by_prologue.set, even if
36437 stack_realign_drap is false.
36439 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36441 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36442 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36443 *call): Fix indention.
36445 2013-01-15 Tom de Vries <tom@codesourcery.com>
36448 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36451 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
36453 PR rtl-optimization/55153
36454 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36456 2013-01-15 Martin Jambor <mjambor@suse.cz>
36458 PR tree-optimization/55920
36459 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36460 accesses as grp_to_be_debug_replaced.
36462 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36464 PR tree-optimization/55920
36465 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36466 there is non-useless type conversion needed from debug rhs to lhs,
36467 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36469 2013-01-15 Joseph Myers <joseph@codesourcery.com>
36470 Mikael Pettersson <mikpe@it.uu.se>
36473 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36475 (ASM_OUTPUT_CASE_LABEL): Remove.
36476 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36477 * final.c (shorten_branches): Update alignment of labels before
36478 jump tables if CASE_VECTOR_SHORTEN_MODE.
36480 2013-01-15 Richard Biener <rguenther@suse.de>
36483 * system.h: Do not include gmp.h for building host tools.
36485 2013-01-15 Richard Biener <rguenther@suse.de>
36487 PR middle-end/55882
36488 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36489 account for bitpos when computing alignment.
36491 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
36493 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36494 (ix86_target_macros_internal): Likewise.
36496 * config/i386/i386.c (m_CORE2I7): Removed.
36497 (m_CORE_HASWELL): New macro.
36498 (m_CORE_ALL): Likewise.
36499 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36500 (initial_ix86_arch_features): Likewise.
36501 (processor_target_table): Initializations for Core avx2.
36502 (cpu_names): New names "core-avx2".
36503 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36504 PROCESSOR_CORE_HASWELL.
36505 (ix86_issue_rate): New case.
36506 (ia32_multipass_dfa_lookahead): Likewise.
36507 (ix86_sched_init_global): Likewise.
36509 * config/i386/i386.h (TARGET_HASWELL): New macro.
36510 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36511 (processor_type): New PROCESSOR_HASWELL.
36513 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36515 PR tree-optimization/55955
36516 * tree-vect-loop.c (vectorizable_reduction): Give up early on
36517 *SHIFT_EXPR and *ROTATE_EXPR codes.
36519 PR tree-optimization/48766
36520 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36521 -ftrapv disable -fwrapv.
36523 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36526 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36527 etc. to 1 and not to __flash.
36528 Use LL suffix for __INT24_MAX__ with -mint8.
36529 Use ULL suffix for __UINT24_MAX__ with -mint8.
36531 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36533 * config/avr/avr-arch.h
36534 (struct base_arch_s): Use typedef avr_arch_t instead.
36535 (struct arch_info_s): Use typedef avr_arch_info_t instead.
36536 (struct mcu_type_s): Use typedef avr_mcu_t instead.
36537 * config/avr/avr.c: Same.
36538 * config/avr/avr-devices.c: Same.
36539 * config/avr/driver-avr.c: Same.
36540 * config/avr/gen-avr-mmcu-texi.c: Same.
36541 * config/avr/avr-mcus.def: Adjust comment.
36543 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
36545 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36546 * config/aarch64/iterators.md (VALLDI): New.
36548 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
36549 Andi Kleen <ak@linux.intel.com>
36552 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36553 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36556 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36558 * config/avr/avr-stdint.h: Remove trailing blanks.
36559 * config/avr/avr-log.h: Same.
36560 * config/avr/avr-arch.h: Same.
36561 * config/avr/avr-devices.c: Same.
36562 * config/avr/avr-dimode.md: Same.
36563 * config/avr/predicates.md: Same.
36564 * config/avr/avr-c.c: Same. And fix typo.
36566 * config/avr/avr-protos.h: Same. And:
36567 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36568 (init_cumulative_args): Rename to avr_init_cumulative_args.
36569 (expand_prologue): Rename to avr_expand_prologue.
36570 (expand_epilogue): Rename to avr_expand_epilogue.
36571 (adjust_insn_length): Rename to avr_adjust_insn_length.
36572 (notice_update_cc): Rename to avr_notice_update_cc.
36573 (final_prescan_insn): Rename to avr_final_prescan_insn.
36574 * config/avr/avr.c: Same.
36575 * config/avr/avr.h: Same.
36576 * config/avr/avr.md: Remove trailing blanks.
36577 (prologue): Use avr_expand_prologue.
36578 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36580 2013-01-14 Richard Biener <rguenther@suse.de>
36582 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36583 verify_location, collect_subblocks): New functions.
36584 (verify_gimple_in_cfg): Verify that locations only reference
36585 BLOCKs in the functions BLOCK tree.
36587 2013-01-14 Richard Biener <rguenther@suse.de>
36589 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36591 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36593 (insert_out_of_ssa_copy_on_edge): Likewise.
36594 (rewrite_close_phi_out_of_ssa): Likewise.
36595 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36597 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36598 propagated constants.
36599 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36602 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36604 * config/avr/avr-modes.def: Add GPL copyright notice.
36606 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
36608 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36609 MEMMODEL_MASK to determine memory model.
36610 (atomic_store<mode>): Ditto from operands[2].
36611 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36613 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36616 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36617 (fold_gimple_assign): Don't call unshare_expr here.
36618 (fold_ctor_reference): Call unshare_expr.
36620 2013-01-13 Terry Guo <terry.guo@arm.com>
36622 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36623 * doc/fragments.texi: Document MULTILIB_REUSE.
36624 * gcc.c (multilib_reuse): New internal spec.
36625 (set_multilib_dir): Also search multilib from multilib_reuse.
36626 * genmultilib (tmpmultilib3): Refactor code.
36627 (tmpmultilib4): Ditto.
36628 (multilib_reuse): New multilib argument.
36630 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36632 * Makefile.in: Update copyright.
36634 2013-01-12 Tom de Vries <tom@codesourcery.com>
36636 PR middle-end/55890
36637 * calls.c (expand_call): Check if arg_nr is valid.
36639 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36641 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36642 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36643 documentation. Add missing '__' in front of
36644 __builtin_ia32_packssdw256.
36646 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36649 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36650 NO_REGS for larl operands.
36651 (s390_reload_larl_operand): Use s390_load_address instead of
36654 2013-01-11 Richard Biener <rguenther@suse.de>
36656 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36657 (verify_node_sharing): ... here.
36658 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36660 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36662 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36663 Substitute TREECHECKING.
36664 * configure: Regenerate.
36665 * Makefile.in (TREECHECKING): New.
36667 2013-01-11 Richard Guenther <rguenther@suse.de>
36669 PR tree-optimization/44061
36670 * tree-vrp.c (extract_range_basic): Compute zero as
36671 value-range for __builtin_constant_p of function parameters.
36673 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36675 Update copyright years.
36677 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36679 PR rtl-optimization/55672
36680 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36681 const to be eliminable.
36683 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36685 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36686 * configure: Regenerate.
36688 2013-01-10 Richard Biener <rguenther@suse.de>
36690 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36692 2013-01-10 Richard Biener <rguenther@suse.de>
36695 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36696 locations for virtual PHI arguments.
36697 (rewrite_update_phi_arguments): Likewise.
36699 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36701 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36704 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36706 PR tree-optimization/55921
36707 * tree-complex.c (expand_complex_asm): New function.
36708 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36710 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36713 * config/s390/s390.c (s390_symref_operand_p)
36714 (s390_loadrelative_operand_p): Merge the two functions.
36715 (s390_check_qrst_address, print_operand_address): Add parameters
36716 to s390_loadrelative_operand_p invokation.
36717 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36718 (s390_reload_larl_operand, s390_secondary_reload): Use
36719 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36720 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36722 2013-01-09 Mike Stump <mikestump@comcast.net>
36724 * dse.c (record_store): Remove unnecessary assert.
36726 2013-01-09 Jan Hubicka <jh@suse.cz>
36728 PR tree-optimization/55569
36729 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36730 * cfgloop.h (scale_loop_profile): Likewise.
36732 2013-01-09 Jan Hubicka <jh@suse.cz>
36735 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36737 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36739 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
36741 PR middle-end/55114
36742 * expr.h (maybe_emit_group_store): Declare.
36743 * expr.c (maybe_emit_group_store): New function.
36744 * builtins.c (expand_builtin_int_roundingfn): Call it.
36745 (expand_builtin_int_roundingfn_2): Likewise.
36747 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
36749 PR rtl-optimization/55829
36750 * lra-constraints.c (match_reload): Add code for absent output.
36751 (curr_insn_transform): Add code for reloads of matched inputs
36754 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
36756 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36757 attribute of movddup insn to DF.
36758 (*vec_interleave_lowv2df): Ditto.
36759 (vec_dupv2df): Ditto.
36761 2013-01-09 Jan Hubicka <jh@suse.cz>
36763 PR tree-optimiation/55875
36764 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36765 EVERY_ITERATION parameter.
36766 (number_of_iterations_exit): Check if exit is executed every iteration.
36767 (idx_infer_loop_bounds): Similarly here.
36768 (n_of_executions_at_most): Simplify
36769 to only test for cases where statement is dominated by the
36770 particular bound; handle correctly the "postdominance" test.
36771 (scev_probably_wraps_p): Use max loop iterations info
36772 as a global bound first.
36774 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
36775 Nick Clifton <nickc@redhat.com>
36777 * config/v850/v850.md (cbranchsf4): New pattern.
36778 (cstoresf4): New pattern.
36779 (cbranchdf4): New pattern.
36780 (cstoredf4): New pattern.
36781 (movsicc): Disallow floating point comparisons.
36782 (cmpsf_le_insn): Fix order of operators.
36783 (cmpsf_lt_insn): Likewise.
36784 (cmpsf_eq_insn): Likewise.
36785 (cmpdf_le_insn): Likewise.
36786 (cmpdf_lt_insn): Likewise.
36787 (cmpdf_eq_insn): Likewise.
36788 (cmpsf_ge_insn): Use LE comparison.
36789 (cmpdf_ge_insn): Likewise.
36790 (cmpsf_gt_insn): Use LT comparison.
36791 (cmpdf_gt_insn): Likewise.
36792 (cmpsf_ne_insn): Delete pattern.
36793 (cmpdf_ne_insn): Delete pattern.
36794 * config/v850/v850.c (v850_gen_float_compare): Use
36795 gen_cmpdf_eq_insn for NE comparison.
36796 (v850_float_z_comparison_operator)
36797 (v850_float_nz_comparison_operator): Move from here ...
36798 * config/v850/predicates.md: ... to here. Move GT and GE
36799 comparisons into v850_float_z_comparison_operator.
36800 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36802 (v850_float_nz_comparison_operator): Likewise.
36804 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36806 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36807 with calls to gen_insvsi/gen_insvdi.
36809 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36811 * config/i386/i386.c (initial_ix86_tune_features): Set up
36812 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36814 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36815 Jakub Jelinek <jakub@redhat.com>
36817 PR tree-optimization/48189
36818 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36819 If nitercst is 0, don't predict the exit edge.
36821 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36823 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36824 in asm_fprintf with reg_names.
36825 (aarch64_print_operand_address): Likewise.
36826 (aarch64_return_addr): Likewise.
36827 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36829 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36831 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36832 (INT_U6_BITS): Likewise.
36833 * config/pa/predicates.md (uint6_operand): New predicate.
36834 (shift5_operand, shift6_operand): Likewise.
36835 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36837 (lshrdi3): Use shift6_operand.
36838 (shrpsi4, shrpdi4): New insn patterns.
36839 (extzv): Delete expander.
36840 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36841 predicates in unamed zero extract patterns. Tighten common constraint.
36842 (extv): Delete expander.
36843 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36844 predicates in unamed sign extract patterns. Tighten common constraint.
36845 (insv): Delete expander.
36846 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36847 predicates in unamed insert patterns. Tighten common constraint.
36848 Change uint32_operand predicate to uint6_operand predicate in unamed
36849 DImode pattern to insert constant values of type 1...1xxxx.
36851 2013-01-04 Jan Hubicka <jh@suse.cz>
36853 PR tree-optimization/55823
36854 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36857 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36858 Uros Bizjak <ubizjak@gmail.com>
36860 PR rtl-optimization/55845
36861 * df-problems.c (can_move_insns_across): Stop scanning at
36862 volatile_insn_p source instruction or give up if
36863 across_from .. across_to range contains any volatile_insn_p
36866 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36868 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36869 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36871 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36872 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36874 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36877 * asan.c (asan_clear_shadow): New function.
36878 (asan_emit_stack_protection): Use it.
36880 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36882 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36883 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36884 with tab instead of space.
36886 2013-01-08 Nick Clifton <nickc@redhat.com>
36888 * config/rl78/rl78.c (rl78_expand_prologue): Always select
36889 register bank 0 at the start of an interrupt handler.
36890 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36893 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36895 * config/aarch64/aarch64-simd.md
36896 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36897 (aarch64_simd_bsl): Likewise.
36898 (aarch64_vcond_internal<mode>): Likewise.
36899 (vcond<mode><mode>): Likewise.
36900 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36901 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36903 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36905 * config/aarch64/aarch64-builtins.c
36906 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36908 2013-01-08 Martin Jambor <mjambor@suse.cz>
36911 * tree-sra.c (analyze_access_subtree): Return true also after
36912 potentially creating a debug-only replacement.
36914 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36916 PR middle-end/55890
36917 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36919 PR tree-optimization/54120
36920 * tree-vrp.c (range_fits_type_p): Don't allow
36921 src_precision < precision from signed vr to unsigned_p
36922 if vr->min or vr->max is negative.
36923 (simplify_float_conversion_using_ranges): Test can_float_p
36924 against CODE_FOR_nothing.
36926 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36927 Richard Biener <rguenther@suse.de>
36929 PR middle-end/55851
36930 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36931 types instead of just INTEGER_TYPE types.
36933 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
36935 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36938 2013-01-07 Steve Ellcey <sellcey@mips.com>
36941 * config/mips/mips.opt: Change mad to mmad to match documentation.
36943 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36946 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36947 .progmemx.data now.
36949 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36952 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36953 (avr_addrspace_t): Add .section_name field.
36954 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36956 (avr_addrspace): Same. Initialize .section_name. Remove last
36957 NULL entry. Put __memx into .progmemx.data.
36958 (progmem_section_prefix): Remove.
36959 (avr_asm_init_sections): No need to initialize progmem_section.
36960 (avr_asm_named_section): Use avr_addrspace[].section_name to get
36961 section name prefix.
36962 (avr_asm_select_section): Ditto. And use get_unnamed_section to
36963 retrieve the progmem section.
36964 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36965 boundary to run over avr_addrspace[].
36966 (avr_register_target_pragmas): Ditto.
36968 2013-01-06 Jakub Jelinek <jakub@redhat.com>
36970 * varasm.c (output_constant_def_contents): For asan_protect_global
36971 protected strings, adjust DECL_ALIGN if needed, before testing for
36973 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36974 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
36976 (output_object_block): For asan protected decls, emit asan padding
36977 after their contents.
36978 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36979 (asan_finish_file): Test it here instead.
36981 2013-01-07 Nick Clifton <nickc@redhat.com>
36982 Matthias Klose <doko@debian.org>
36983 Doug Kwan <dougkwan@google.com>
36984 H.J. Lu <hongjiu.lu@intel.com>
36987 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36989 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36991 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36993 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36995 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36997 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37000 * doc/install.texi (Cross-Compiler-Specific Options): Document
37003 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
37005 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
37006 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
37007 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
37008 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
37009 vqmovun_high_s64): Fix source operand number and update copyright.
37011 2013-01-07 Richard Biener <rguenther@suse.de>
37013 PR middle-end/55890
37014 * gimple.h (gimple_call_builtin_p): New overload.
37015 * gimple.c (validate_call): New function.
37016 (gimple_call_builtin_p): Likewise.
37017 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37018 Use gimple_call_builtin_p.
37019 (find_func_clobbers): Likewise.
37020 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
37021 (strlen_optimize_stmt): Likewise.
37023 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
37025 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
37026 (vld1q_dup_*): Likewise.
37027 (vld1_*): Likewise.
37028 (vld1q_*): Likewise.
37029 (vld1_lane_*): Likewise.
37030 (vld1q_lane_*): Likewise.
37032 2013-01-07 Richard Biener <rguenther@suse.de>
37034 * lto-streamer.h (LTO_minor_version): Bump to 2.
37036 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
37038 * config/aarch64/aarch64-protos.h
37039 (aarch64_const_double_zero_rtx_p): Rename to...
37040 (aarch64_float_const_zero_rtx_p): ...this.
37041 (aarch64_float_const_representable_p): New.
37042 (aarch64_output_simd_mov_immediate): Likewise.
37043 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
37044 move immediate case.
37045 * config/aarch64/aarch64.c
37046 (aarch64_const_double_zero_rtx_p): Rename to...
37047 (aarch64_float_const_zero_rtx_p): ...this.
37048 (aarch64_print_operand): Allow printing of new constants.
37049 (aarch64_valid_floating_const): New.
37050 (aarch64_legitimate_constant_p): Check for valid floating-point
37052 (aarch64_simd_valid_immediate): Likewise.
37053 (aarch64_vect_float_const_representable_p): New.
37054 (aarch64_float_const_representable_p): Likewise.
37055 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
37056 (aarch64_output_simd_mov_immediate): New.
37057 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
37058 (*movdf_aarch64): Likewise.
37059 * config/aarch64/constraints.md (Ufc): New.
37060 (Y): call aarch64_float_const_zero_rtx.
37061 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
37063 2013-01-07 Richard Biener <rguenther@suse.de>
37065 PR tree-optimization/55888
37066 PR tree-optimization/55862
37067 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
37068 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
37069 not if it is contained therein.
37071 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37073 * config/avr/t-avr: Typo.
37075 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37078 * config/avr/t-avr: Don't automatically rebuild
37079 $(srcdir)/config/avr/t-multilib
37080 $(srcdir)/config/avr/avr-tables.opt
37081 $(srcdir)/doc/avr-mmcu.texi
37082 (avr-mcus): New phony target to build them on request.
37083 (s-avr-mlib, s-avr-mmcu-texi): Remove.
37084 * avr/avr-mcus.def: Adjust comments.
37086 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
37088 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
37090 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
37092 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
37094 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
37096 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
37098 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
37100 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
37101 to generate profiling.
37102 * config/rs6000/aix64.h (LIB_SPEC): Same.
37104 2013-01-04 Andrew Pinski <apinski@cavium.com>
37106 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
37108 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
37110 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
37112 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
37114 (ix86_expand_move): Ditto.
37115 (ix86_zero_extend_to_Pmode): Ditto.
37116 (ix86_expand_call): Ditto.
37117 (ix86_expand_special_args_builtin): Ditto.
37118 (ix86_expand_builtin): Ditto.
37120 2013-01-04 Richard Biener <rguenther@suse.de>
37122 PR tree-optimization/55862
37123 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
37124 translating them through PHI nodes.
37126 2013-01-04 Martin Jambor <mjambor@suse.cz>
37128 PR tree-optimization/55755
37129 * tree-sra.c (sra_modify_assign): Do not check that an access has no
37130 children when trying to avoid producing a VIEW_CONVERT_EXPR.
37132 2013-01-04 Marek Polacek <polacek@redhat.com>
37134 PR middle-end/55859
37135 * opts.c (default_options_optimization): Clarify error message.
37137 2013-01-04 Richard Biener <rguenther@suse.de>
37139 PR middle-end/55863
37140 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
37143 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37146 * config/pa/pa.md (movsi): Revert previous change.
37147 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
37150 2013-01-03 Richard Henderson <rth@redhat.com>
37152 * config/i386/i386.c (ix86_expand_move): Always assign to op1
37153 after eliminating TLS symbols.
37155 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
37158 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
37159 * graphite-poly.c (debug_gmp_value): Likewise.
37161 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
37164 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
37165 selected code model, define __code_mode_small__, __code_model_medium__,
37166 __code_model_large__, __code_model_32__ or __code_model_kernel__.
37167 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
37168 xchg temporary register with %k. Declare temporary register as
37170 [__x86_64__]: For medium and large code models, preserve %rbx register.
37172 2013-01-03 Richard Biener <rguenther@suse.de>
37174 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
37175 (dump_subscript): Adjust.
37176 (finalize_ddr_dependent): Do not dump redundant info.
37177 (analyze_siv_subscript): Adjust.
37178 (subscript_dependence_tester): Likewise.
37179 (compute_affine_dependence): Likewise.
37181 2013-01-03 Richard Biener <rguenther@suse.de>
37184 2013-01-03 Richard Biener <rguenther@suse.de>
37186 PR tree-optimization/55857
37187 * tree-vect-stmts.c (vectorizable_load): Do not setup
37188 re-alignment for invariant loads.
37190 2013-01-02 Richard Biener <rguenther@suse.de>
37192 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37193 invariant load do not generate a vector load from the scalar location.
37195 2013-01-03 Richard Biener <rguenther@suse.de>
37197 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
37198 for not vectorizing.
37199 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
37200 not build INDIRECT_REFs, call get_name once only.
37201 (vect_create_data_ref_ptr): Likewise. Dump base object kind
37202 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
37204 2013-01-03 Richard Biener <rguenther@suse.de>
37206 PR tree-optimization/55857
37207 * tree-vect-stmts.c (vectorizable_load): Do not setup
37208 re-alignment for invariant loads.
37210 2013-01-03 Richard Biener <rguenther@suse.de>
37213 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
37214 prefer a built-in decl.
37216 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37218 * gcc.c (process_command): Update copyright notice dates.
37219 * gcov.c (print_version): Likewise.
37220 * gcov-dump.c (print_version): Likewise.
37222 PR rtl-optimization/55838
37223 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
37224 iv0.step, iv1.step and step.
37226 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37227 Marc Glisse <marc.glisse@inria.fr>
37229 PR tree-optimization/55832
37230 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
37231 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
37232 integer_{one,zero}_node.
37234 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37237 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
37238 * var-tracking.c (reverse_op): Don't add reverse ops to
37239 VALUEs that have already
37240 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
37242 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
37244 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
37246 2013-01-02 Teresa Johnson <tejohnson@google.com>
37248 * dumpfile.c (dump_loc): Print filename with location.
37249 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
37250 new location_t parameter to emit complete unroll message with
37251 new dump framework.
37252 (canonicalize_loop_induction_variables): Compute loops location
37253 and pass to try_unroll_loop_completely.
37254 * loop-unroll.c (report_unroll_peel): New function.
37255 (peel_loops_completely): Use new dump format with location
37256 for main dumpfile message, and invoke report_unroll_peel on success.
37257 (decide_unrolling_and_peeling): Ditto.
37258 (decide_peel_once_rolling): Remove old dumpfile message subsumed
37259 by report_unroll_peel.
37260 (decide_peel_completely): Ditto.
37261 (decide_unroll_constant_iterations): Ditto.
37262 (decide_unroll_runtime_iterations): Ditto.
37263 (decide_peel_simple): Ditto.
37264 (decide_unroll_stupid): Ditto.
37265 * cfgloop.c (get_loop_location): New function.
37266 * cfgloop.h (get_loop_location): Declare.
37268 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37270 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
37273 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37275 PR middle-end/55198
37276 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
37277 BLKmode objects when EXPAND_MEMORY is specified.
37279 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37281 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
37283 (fold_builtin_cpu): Do not share cpu model decls across statements.
37285 2013-01-02 Jason Merrill <jason@redhat.com>
37288 * tree.c (build_array_type_1): Revert earlier change.
37290 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
37292 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
37294 * config/aarch64/aarch64-tune.md: Re-generate.
37296 2013-01-02 Richard Biener <rguenther@suse.de>
37298 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37299 invariant load do not generate a vector load from the scalar location.
37301 2013-01-02 Richard Biener <rguenther@suse.de>
37304 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
37305 * configure: Regenerate.
37307 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37309 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
37310 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
37311 (expand_builtin_int_roundingfn_2): Keep the original target around
37312 for the fallback case.
37314 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37316 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
37317 to be clear for sign changes.
37319 2013-01-01 Jan Hubicka <jh@suse.cz>
37321 * ipa-inline-analysis.c: Fix formatting.
37323 2013-01-01 Jakub Jelinek <jakub@redhat.com>
37325 PR tree-optimization/55831
37326 * tree-vect-loop.c (get_initial_def_for_induction): Use
37327 gsi_after_labels instead of gsi_start_bb.
37329 Copyright (C) 2013 Free Software Foundation, Inc.
37331 Copying and distribution of this file, with or without modification,
37332 are permitted in any medium without royalty provided the copyright
37333 notice and this notice are preserved.