1 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
3 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
4 * config/arm/genopt.sh: Improve layout.
5 * config/arm/arm-tune.md: Regenerate.
6 * config/arm/arm-tables.opt: Regenerate.
7 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
8 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
9 (arm_option_override): When a CPU is chosen, that should also
11 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
13 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
15 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
16 (arm_rewrite_mcpu): Likewise.
17 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
18 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
19 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
20 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
21 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
22 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
24 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
26 * expmed.c (lowpart_bit_field_p): Fix comment.
27 (store_bit_field_using_insv): Fix formatting.
28 (store_bit_field): Likewise.
29 (store_fixed_bit_field): More declaration and remove return.
30 (store_fixed_bit_field_1): Fix formatting.
31 (extract_fixed_bit_field): Move declaration.
32 (extract_fixed_bit_field_1): Simplify.
34 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
36 * ipa-utils.h (possible_polymorphic_call_targets): Determine context of
38 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
40 2013-12-17 Jakub Jelinek <jakub@redhat.com>
42 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
43 instead of x as last gen_lowpart argument.
45 2013-12-16 Jakub Jelinek <jakub@redhat.com>
47 * predict.h (PROB_LIKELY): Fix the value.
48 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
49 for overflow checking for modes without 2xwider supported mode,
50 if the mode has 2xnarrower mode.
52 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
53 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
54 try to improve generated code if one of the arguments is constant
55 or get_range_info says that one of the argument is always
56 negative or always non-negative.
57 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
58 (simplify_stmt_using_ranges): Call it.
60 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
62 PR rtl-optimization/59466
63 * emit-rtl.c (change_address_1): Don't validate address for LRA.
64 * recog.c (general_operand): Accept any memory for LRA.
65 * lra.c (lra_set_insn_recog_data): Add an assert.
67 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
69 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
71 2013-12-14 Jan Hubicka <jh@suse.cz>
72 Markus Trippelsdorf <octoploid@yandex.com>
75 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
76 call is already devirtualized.
78 2013-12-16 Jakub Jelinek <jakub@redhat.com>
80 * Makefile.in (version.o): Restore dependencies on
81 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
83 2013-12-14 Jan Hubicka <jh@suse.cz>
86 * ipa-devirt.c (get_class_context): Do not ICE when type is found
89 2013-12-16 Jakub Jelinek <jakub@redhat.com>
92 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
93 reductions without placeholder if is_simd, but when not using
94 GOMP_SIMD* internal calls, also perform the reduction operation
95 on the outer var rather than simple assignment.
97 2013-12-16 Jakub Jelinek <jakub@redhat.com>
101 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
102 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
104 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
105 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
106 calls to supply the gimple operand containing the base tree
107 as an extra argument.
108 * tree-ssa-ter.c: Include gimple-walk.h.
109 (find_ssaname, find_ssaname_in_store): New helper functions.
110 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
111 same_root_var if USE is used somewhere in the stores of the stmt.
112 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
113 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
114 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
115 check_ipa_store): Likewise.
116 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
117 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
118 (verify_non_ssa_vars, visit_bb): Adjust their callers.
119 * cfgexpand.c (add_scope_conflicts_1): Use
120 walk_stmt_load_store_addr_fn type for visit variable.
121 (visit_op, visit_conflict): Remove name of the stmt
122 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
123 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
124 argument and ATTRIBUTE_UNUSED.
125 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
126 unnamed tree argument.
127 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
128 ATTRIBUTE_UNUSED from stmt parameter.
130 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
132 * opts-common.c (integral_argument): Add support for
133 hexadecimal command option integer arguments. Update comments.
135 2013-12-14 Jan Hubicka <jh@suse.cz>
138 * ipa-prop.c (ipa_analyze_call_uses): Skip already
141 2013-12-14 Jan Hubicka <jh@suse.cz>
143 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
145 2013-12-14 Jan Hubicka <jh@suse.cz>
148 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
150 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
153 * config/i386/i386.c (ix86_function_specific_restore): Don't
156 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
158 * var-tracking.c (add_stores): Fix oversight in latest commit.
160 2013-12-14 Marek Polacek <polacek@redhat.com>
163 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
164 expand_binop with correct optab depending on code.
166 2013-12-14 Tom de Vries <tom@codesourcery.com>
168 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
170 2013-12-13 DJ Delorie <dj@redhat.com>
172 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
174 * config/msp430/msp430.md (movqi): replace general_operand with
175 msp_general_operand and nonimmediate_operand with
176 msp_nonimmediate_operand to allow volatile operands.
181 (addhi3_cy): Likewise.
182 (addchi4_cy): Likewise.
183 (xor<mode>3): Likewise.
184 (ome_cmpl<mode>2): Likewise.
185 (extendqihi2): Likewise.
186 (zero_extendqihi2): Likewise.
187 (zero_extendhipsi2): Likewise.
188 (truncpsihi2): Likewise.
191 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
193 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
195 * lra-int.h (lra_init_equiv): New prototype.
196 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
197 (loc_equivalence_callback): Use the 3rd arg.
198 (lra_constraints): Update equivalences. Pass curr_insn to
199 simplify_replace_fn_rtx.
200 * lra.c (lra): Call lra_init_equiv.
202 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
204 * genmodes.c (emit_max_int): Fixed missing parens.
206 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
208 PR tree-optimization/59149
209 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
210 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
213 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
215 * config/arc/arc.h (BITS_PER_UNIT): Removed.
216 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
217 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
218 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
219 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
220 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
221 * config/spu/spu.h (BITS_PER_UNIT): Removed.
222 * defaults.h (BITS_PER_UNIT): Removed.
223 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
224 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
225 (MAX_BITSIZE_MODE_ANY_INT): Updated.
226 * doc/tm.texi (BITS_PER_UNIT): Removed.
227 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
228 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
229 (create_modes): Added code to set bits_per_unit and
230 max_bitsize_mode_any_int.
231 (emit_max_int): Changed code generation.
232 * mkconfig.sh: Added insn-modes.h.
234 2013-12-13 Jeff Law <law@redhat.com>
236 PR tree-optimization/45685
237 * tree-ssa-phiopt.c (neg_replacement): New function.
238 (tree_ssa_phiopt_worker): Call it.
240 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
242 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
244 2013-12-13 Bin Cheng <bin.cheng@arm.com>
246 PR tree-optimization/58296
247 PR tree-optimization/41488
248 * tree-scalar-evolution.c: Include necessary header files.
249 (simplify_peeled_chrec): New function.
250 (analyze_evolution_in_loop): New static variable.
251 Call simplify_peeled_chrec.
252 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
253 (add_old_iv_candidates): Don't add candidate for peeled IV.
254 * tree-affine.h (aff_combination_zero_p): New function.
256 2013-12-13 Nick Clifton <nickc@redhat.com>
258 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
259 true if the current function has the wakeup attribute.
260 (msp430_start_function): Note if the function has the wakeup
262 (msp430_attribute_table): Add wakeup attribute.
263 (msp430_expand_epilogue): Add support for wakeup functions.
264 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
265 the DINT instruction.
266 * doc/extend.texi: Document the wakeup attribute.
268 2013-12-13 Kai Tietz <kitetz@redhat.com>
271 * config/i386/i386.c (ix86_option_override_internal): Set for
272 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
275 2013-12-12 Jeff Law <law@redhat.com>
277 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
278 for zero-extended MULT simple LEA pattern.
280 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
283 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
286 2013-12-12 Jakub Jelinek <jakub@redhat.com>
289 * gimplify.c (omp_check_private): Add copyprivate argument, if it
290 is true, don't check omp_privatize_by_reference.
291 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
292 decl is private in outer context. Adjust omp_check_private caller.
294 2013-12-11 Jeff Law <law@redhat.com>
296 PR rtl-optimization/59446
297 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
298 test for crossing a loop header.
300 2013-12-11 Sriraman Tallam <tmsriram@google.com>
303 * config/i386/i386.c (get_builtin): New function.
304 (ix86_builtin_vectorized_function): Replace all instances of
305 ix86_builtins[...] with get_builtin(...).
306 (ix86_builtin_reciprocal): Ditto.
308 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
310 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
311 (lang_hooks_for_cilkplus): Remove.
312 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
313 (lhd_install_body_with_frame_cleanup): Likewise.
314 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
315 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
316 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
317 (LANG_HOOKS_CILKPLUS): Likewise.
318 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
319 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
320 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
321 (gimplify_call_expr): Likewise.
323 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
325 * expr.c (expand_assignment): Remove dependency on
326 flag_strict_volatile_bitfields. Always set the memory
328 (expand_expr_real_1): Likewise.
330 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
333 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
334 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
335 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
337 (store_fixed_bit_field_1): New function.
338 (store_split_bit_field): Limit the unit size to the memory mode size,
339 to prevent recursion.
341 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
342 Sandra Loosemore <sandra@codesourcery.com>
348 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
349 and bitregion_end parameters. Test for compliance with C++
351 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
352 Add fallback logic for cases where -fstrict-volatile-bitfields
353 is supposed to apply, but cannot.
354 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
355 extract_fixed_bit_field_1 to do the extraction.
356 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
357 Call extract_fixed_bit_field_1 to do the real work.
358 (extract_fixed_bit_field_1): New function.
360 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
366 * expmed.c (strict_volatile_bitfield_p): New function.
367 (store_bit_field_1): Don't special-case strict volatile
369 (store_bit_field): Handle strict volatile bitfields here instead.
370 (store_fixed_bit_field): Don't special-case strict volatile
372 (extract_bit_field_1): Don't special-case strict volatile
374 (extract_bit_field): Handle strict volatile bitfields here instead.
375 (extract_fixed_bit_field): Don't special-case strict volatile
376 bitfields here. Simplify surrounding code to resemble that in
377 store_fixed_bit_field.
378 * doc/invoke.texi (Code Gen Options): Update
379 -fstrict-volatile-bitfields description.
381 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
383 * configure.ac: Add check for aarch64 assembler -mabi support.
384 * configure: Regenerate.
385 * config.in: Regenerate.
386 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
387 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
388 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
389 if assembler does not support -mabi and option ilp32 is selected.
390 * doc/install.texi: Added note that building gcc 4.9 and after
391 with pre 2.24 binutils will not support -mabi=ilp32.
393 2013-12-11 Marek Polacek <polacek@redhat.com>
396 * expr.c (expand_expr_real_1): Remove assert dealing with
397 internal calls and turn that into a condition instead.
399 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
401 * config/arm/arm.opt (mlra): Enable LRA by default.
403 2013-12-11 Jakub Jelinek <jakub@redhat.com>
405 PR tree-optimization/59417
406 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
407 in a different bb rhan var, only duplicate points-to info and
408 not alignment info and don't duplicate range info.
409 * tree-ssa-loop-niter.c (determine_value_range): Instead of
410 assertion failure handle inconsistencies in range info by only
411 using var's range info and not PHI result range infos.
413 PR tree-optimization/59386
414 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
415 unshare_expr (id->retval) before passing it to gimple_build_assign.
417 2013-12-11 Bin Cheng <bin.cheng@arm.com>
420 2013-12-10 Bin Cheng <bin.cheng@arm.com>
421 PR tree-optimization/41488
422 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
423 for PEELED_CHREC kind IV.
424 * tree-scalar-evolution.c: Include necessary header files.
425 (peeled_chrec_map, simplify_peeled_chrec): New.
426 (analyze_evolution_in_loop): New static variable.
427 Call simplify_peeled_chrec.
428 (scev_initialize): Initialize peeled_chrec_map.
429 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
431 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
434 * config/i386/i386.md (*movsf_internal): Set mode to SI for
437 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
439 PR rtl-optimization/58295
440 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
441 WORD_REGISTER_OPERATIONS targets.
443 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
445 * genrecog.c (validate_pattern): Treat all messages except missing
447 * config/epiphany/epiphany.md: Remove constraints from
449 * config/h8300/h8300.md: Remove constraints from define_splits.
450 * config/msp430/msp430.md: Likewise.
451 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
452 nonimmediate_operand rather than general_operand for operand 0.
453 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
454 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
455 Use match_operator rather than match_test to invoke general_operand.
456 * config/v850/v850.md (*movqi_internal, *movhi_internal)
457 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
459 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
461 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
462 register_operand rather than pointer_operand. Add modes to the
464 (insn_ldna_add<bitsuffix>): Likewise.
465 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
466 (insn_ldnt_add<bitsuffix>): Likewise.
467 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
468 (insn_ld_add_L2<bitsuffix>): Likewise.
469 (insn_ldna_add_L2<bitsuffix>): Likewise.
470 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
471 (insn_ldnt_add_L2<bitsuffix>): Likewise.
472 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
473 (insn_ld_add_miss<bitsuffix>): Likewise.
474 (insn_ldna_add_miss<bitsuffix>): Likewise.
475 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
476 (insn_ldnt_add_miss<bitsuffix>): Likewise.
477 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
478 (insn_st_add<bitsuffix>): Likewise.
479 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
480 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
481 (insn_stnt_add<bitsuffix>): Likewise.
482 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
483 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
484 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
485 reg_or_0_operand for operand 0.
486 (insn_v2<pack_insn>): Likewise.
487 (vec_pack_hipart_v4hi): Likewise.
488 (insn_v2packh): Likewise.
489 (vec_pack_ssat_v2si): Likewise.
490 (insn_v4packsc): Likewise.
492 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
494 * basic-block.h (gcov_working_set_t): Put back typedef.
495 * gcov-io.h (gcov_bucket_type): Likewise.
496 (gcov_working_set_info, gcov_working_set_t): Likewise.
498 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
500 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
502 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
503 rename to cgraph_inline_failed_t.
504 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
506 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
508 * conditions.h (CC_STATUS): Remove typedef.
509 * bitmap.h (bitmap_obstack): Remove typedef.
510 (bitmap_element_def, bitmap_element): Remove typedef and rename to
512 (bitmap_head_def, bitmap_head): Remove typedef and rename to
514 (bitmap_iterator): Remove typedef.
515 * target.h (cumulative_args_t, print_switch_type,
516 secondary_reload_info): Remove typedef.
517 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
518 dw_cfi_oprnd_struct alias.
519 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
520 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
521 (cfa_loc, dw_cfa_location): Remove typedef and rename to
523 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
525 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
526 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
528 * params.h (param_info, compiler_param): Remove typedef.
529 * opts.h (cl_deferred_param): Remove typedef.
530 * sreal.h (sreal): Remove typedef.
531 * ddg.h (dep_type, dep_data_type): Remove typedef.
532 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
534 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
535 lto_symtab_encoder_iterator, res_pair): Remove typedef.
536 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
537 and rename to aff_tree.
538 * sched-int.h (region): Remove typedef.
539 * diagnostic.h (diagnostic_info,
540 diagnostic_classification_change_t): Remove typedef.
541 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
543 * sbitmap.h (sbitmap_iterator): Remove typedef.
544 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
545 Remove typedef and rename to imm_use_iterator.
546 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
548 * ggc-internal.h (ggc_statistics): Remove typedef.
549 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
550 rename to cselib_val.
551 * tree-core.h (alias_pair): Remove typedef.
552 (constructor_elt_d, constructor_elt): Remove typedef and rename to
554 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
556 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
557 * tree-data-ref.h (conflict_function): Remove typedef.
558 * tree-inline.h (copy_body_data): Remove typedef.
559 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
560 edge_growth_cache_entry): Remove typedef.
561 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
562 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
563 Remove typedef and rename to gimple_stmt_iterator.
564 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
565 rename to ce_if_block.
566 (edge_iterator): Remove typedef.
567 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
568 and rename to ipa_agg_jf_item.
569 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
570 ipa_parm_adjustment_t): Remove typedef.
571 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
573 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
575 * gcov-io.h (gcov_bucket_type): Remove typedef.
576 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
577 to gcov_working_set_t.
578 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
579 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
580 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
581 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
582 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
583 replace_label_data): Remove typedef.
584 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
585 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
586 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
587 sel_region_bb_info_def, succ_iterator): Remove typedef.
588 (deps_where_def, deps_where_t): Remove typedef and rename to
590 * coretypes.h: Adapt forward declarations.
591 * tree-scalar-evolution.h: Likewise.
592 * tree-ssa-address.h: Likewise.
593 * tree-ssa-operands.h: Likewise.
594 * function.h: Likewise.
595 * config/frv/frv-protos.h: Likewise.
596 * targhooks.h: Likewise.
597 * basic_block.h: Likewise.
598 * rtl.def: Adapt documentation.
599 * doc/tm.texi: Likewise.
600 * ipa-cp.c: Adapt uses.
601 * bitmap.c: Likewise.
602 * dwarf2out.c: Likewise.
603 * target.def: Likewise.
604 * ipa-inline-analysis.c: Likewise.
605 * dwarf2cfi.c: Likewise.
606 * tree-ssa-loop-ivopts.c: Likewise.
607 * lto-cgraph.c: Likewise.
608 * config/frv/frv.c: Likewise.
610 * ipa-prop.c: Likewise.
612 2013-12-10 Kai Tietz <ktietz@redhat.com>
615 * config/i386/i386.c (ix86_expand_prologue): Address saved
616 registers stack-relative, not via frame-pointer.
618 2013-12-10 Richard Biener <rguenther@suse.de>
621 * tree-ssa-structalias.c (solution_set_expand): Expand into
622 a different possibly cached bitmap and return the result.
623 (set_union_with_increment): Pass in a shared expanded bitmap
625 (do_sd_constraint): Likewise.
626 (do_ds_constraint): Likewise.
627 (do_complex_constraint): Likewise.
628 (solve_graph): Manage the shared expanded bitmap.
630 2013-12-10 Jakub Jelinek <jakub@redhat.com>
632 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
633 (LOOP_VINFO_SCALAR_LOOP): Define.
634 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
635 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
636 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
638 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
640 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
642 (release_bb_predicate): New function.
643 (free_bb_predicate): Use it.
644 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
645 just to immediately allocate it again.
646 (add_to_predicate_list): Add loop argument. If basic blocks that
647 dominate loop->latch don't insert any predicate.
648 (add_to_dst_predicate_list): Adjust caller.
649 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
650 handle it like flag_tree_loop_if_convert_stores.
651 (insert_gimplified_predicates): Likewise.
652 (ifcvt_can_use_mask_load_store): New function.
653 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
654 argument, check if some conditional loads or stores can't be
655 converted into MASK_LOAD or MASK_STORE.
656 (if_convertible_stmt_p): Add any_mask_load_store argument,
657 pass it down to if_convertible_gimple_assign_stmt_p.
658 (predicate_bbs): Don't return bool, only check if the last stmt
659 of a basic block is GIMPLE_COND and handle that. Adjust
660 add_to_predicate_list caller.
661 (if_convertible_loop_p_1): Only call predicate_bbs if
662 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
663 afterwards, check gimple_code of stmts here. Replace is_predicated
664 check with dominance check. Add any_mask_load_store argument,
665 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
666 call if_convertible_phi_p only after all if_convertible_stmt_p
668 (if_convertible_loop_p): Add any_mask_load_store argument,
669 pass it down to if_convertible_loop_p_1.
670 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
671 (combine_blocks): Add any_mask_load_store argument, pass
672 it down to insert_gimplified_predicates and call predicate_mem_writes
673 if it is set. Call predicate_bbs.
674 (version_loop_for_if_conversion): New function.
675 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
676 calls. Return todo flags instead of bool, call
677 version_loop_for_if_conversion if if-conversion should be just
678 for the vectorized loops and nothing else.
679 (main_tree_if_conversion): Adjust caller. Don't call
680 tree_if_conversion for dont_vectorize loops if if-conversion
681 isn't explicitly enabled.
682 * tree-vect-data-refs.c (vect_check_gather): Handle
683 MASK_LOAD/MASK_STORE.
684 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
685 * gimple.h (gimple_expr_type): Handle MASK_STORE.
686 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
687 expand_MASK_STORE): New functions.
688 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
689 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
690 (vectorize_loops): Don't try to vectorize loops with
691 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
692 loops, fold LOOP_VECTORIZED internal call depending on if loop
693 has been vectorized or not.
694 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
696 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
697 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
698 still to loop's entry or exit edge.
699 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
700 down to slpeel_tree_duplicate_loop_to_edge_cfg.
701 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
703 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
704 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
705 right place in the CFG afterwards.
706 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
708 * cfgloop.h (struct loop): Add dont_vectorize field.
709 * tree-loop-distribution.c (copy_loop_before): Adjust
710 slpeel_tree_duplicate_loop_to_edge_cfg caller.
711 * optabs.def (maskload_optab, maskstore_optab): New optabs.
712 * passes.def: Add a note that pass_vectorize must immediately follow
714 * tree-predcom.c (split_data_refs_to_components): Give up if
716 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
718 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
720 (vectorizable_mask_load_store): New function.
721 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
722 (vect_transform_stmt): Handle MASK_STORE.
723 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
724 DR_STMT where lhs is NULL.
725 * optabs.h (can_vec_perm_p): Fix up comment typo.
726 (can_vec_mask_load_store_p): New prototype.
727 * optabs.c (can_vec_mask_load_store_p): New function.
729 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
731 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
732 the extraction of a bit-field of null size.
734 2013-12-10 Marek Polacek <polacek@redhat.com>
737 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
738 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
739 instead of gimple_code.
741 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
743 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
744 Add android definitions.
745 (s390x-*-linux*): Use linux-protos.h.
747 2013-12-10 Bin Cheng <bin.cheng@arm.com>
749 PR tree-optimization/41488
750 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
751 for PEELED_CHREC kind IV.
752 * tree-scalar-evolution.c: Include necessary header files.
753 (peeled_chrec_map, simplify_peeled_chrec): New.
754 (analyze_evolution_in_loop): New static variable.
755 Call simplify_peeled_chrec.
756 (scev_initialize): Initialize peeled_chrec_map.
757 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
759 2013-12-09 Andrew Pinski <apinski@cavium.com>
761 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
762 that options are conflicting ones.
764 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
766 * optabs.c (gen_int_libfunc): Do not compare modes directly.
768 2013-12-09 David Malcolm <dmalcolm@redhat.com>
770 * basic-block.h (FOR_ALL_BB): Eliminate macro.
772 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
773 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
775 * cfganal.c (inverted_post_order_compute): Likewise.
776 * cfgcleanup.c (try_optimize_cfg): Likewise.
777 * cfgexpand.c (add_scope_conflicts): Likewise.
778 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
779 * cfgrtl.c (relink_block_chain): Likewise.
780 * dce.c (mark_artificial_uses): Likewise.
781 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
782 * df-problems.c (df_lr_verify_solution_start,
783 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
784 df_live_verify_solution_start, df_live_verify_solution_end,
785 df_live_set_all_dirty, df_live_verify_transfer_functions,
786 df_md_local_comput): Likewise.
787 * df-scan.c (df_scan_free_internal, df_scan_alloc)
788 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
789 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
790 free_dominance_info): Likewise.
791 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
792 * graph.c (draw_cfg_edges): Likewise.
793 * graphite-scop-detection.c (print_graphite_scop_statistics,
794 dot_all_scops_1): Likewise.
795 * graphite.c (print_global_statistics,
796 print_graphite_scop_statistics): Likewise.
797 * ira.c (do_reload): Likewise.
798 * loop-init.c (loop_optimizer_finalize): Likewise.
799 * lto-streamer-in.c (input_function): Likewise.
800 * lto-streamer-out.c (output_function): Likewise.
801 * mcf.c (adjust_cfg_counts): Likewise.
802 * predict.c (estimate_loops): Likewise.
803 * sched-rgn.c (haifa_find_rgns): Likewise.
804 * tree-cfg.c (split_critical_edges): Likewise.
805 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
806 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
807 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
808 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
809 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
810 * vtable-verify.c (vtable_verify_main): Likewise.
811 * web.c (web_main): Likewise.
813 2013-12-09 David Malcolm <dmalcolm@redhat.com>
815 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
817 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
818 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
819 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
820 rtl_verify_bb_insns, rtl_verify_bb_pointers,
821 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
822 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
823 * config/sh/sh.c (sh_md_init_global): Likewise.
824 * config/sh/sh_optimize_sett_clrt.cc
825 (sh_optimize_sett_clrt::execute): Likewise.
826 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
828 * dominance.c (calc_dfs_tree): Likewise.
829 * final.c (final): Likewise.
830 * function.c (thread_prologue_and_epilogue_insns): Likewise.
831 * gcse.c (compute_code_hoist_vbeinout): Likewise.
832 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
833 * lcm.c (compute_antinout_edge): Likewise.
834 * mode-switching.c (optimize_mode_switching): Likewise.
835 * postreload.c (reload_combine): Likewise.
836 * recog.c (split_all_insns, peephole2_optimize): Likewise.
837 * tree-ssa-live.c (live_worklist): Likewise.
839 2013-12-09 David Malcolm <dmalcolm@redhat.com>
841 * basic-block.h (FOR_EACH_BB): Eliminate macro.
843 * asan.c (transform_statements, execute_sanopt): Eliminate
844 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
846 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
847 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
848 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
849 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
850 insert_section_boundary_note, rest_of_handle_reorder_blocks,
851 duplicate_computed_gotos): Likewise.
852 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
853 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
854 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
855 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
856 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
857 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
859 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
860 verify_loop_structure): Likewise.
861 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
862 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
863 verify_hot_cold_block_grouping, purge_all_dead_edges,
864 fixup_abnormal_edges, record_effective_endpoints,
865 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
866 break_superblocks): Likewise.
867 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
868 cgraph_rebuild_references): Likewise.
869 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
870 * combine.c (delete_noop_moves, create_log_links,
871 combine_instructions): Likewise.
872 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
873 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
875 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
876 c6x_reorg): Likewise.
877 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
878 * config/frv/frv.c (frv_optimize_membar): Likewise.
879 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
880 * config/ia64/ia64.c (ia64_reorg): Likewise.
881 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
882 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
883 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
884 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
885 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
886 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
887 * config/tilegx/tilegx.c (tilegx_gen_bundles,
888 reorder_var_tracking_notes): Likewise.
889 * config/tilepro/tilepro.c (tilepro_gen_bundles,
890 reorder_var_tracking_notes): Likewise.
891 * coverage.c (coverage_compute_cfg_checksum): Likewise.
892 * cprop.c (compute_hash_table_work, compute_cprop_data,
893 local_cprop_pass, find_implicit_sets): Likewise.
894 * cse.c (cse_condition_code_reg): Likewise.
895 * dce.c (prescan_insns_for_dce): Likewise.
896 * df-core.c (df_compact_blocks): Likewise.
897 * df-problems.c (df_word_lr_alloc): Likewise.
898 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
899 df_update_entry_exit_and_calls): Likewise.
900 * dominance.c (calculate_dominance_info, verify_dominators,
901 debug_dominance_info): Likewise.
902 * dse.c (dse_step5_nospill): Likewise.
903 * except.c (finish_eh_generation): Likewise.
904 * final.c (compute_alignments): Likewise.
905 * function.c (thread_prologue_and_epilogue_insns,
906 rest_of_match_asm_constraints): Likewise.
907 * gcse.c (compute_hash_table_work, prune_expressions,
908 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
909 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
910 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
911 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
912 find_explicit_erroneous_behaviour): Likewise.
913 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
914 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
915 * haifa-sched.c (haifa_sched_init): Likewise.
916 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
918 * ifcvt.c (if_convert): Likewise.
919 * init-regs.c (initialize_uninitialized_regs): Likewise.
920 * ipa-prop.c (ipcp_transform_function): Likewise.
921 * ipa-pure-const.c (analyze_function): Likewise.
922 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
923 * ira-build.c (form_loop_tree): Likewise.
924 * ira-costs.c (find_costs_and_classes): Likewise.
925 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
926 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
927 mark_elimination, update_equiv_regs, find_moveable_pseudos,
928 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
929 * jump.c (mark_all_labels): Likewise.
930 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
931 compute_nearerout, compute_rev_insert_delete): Likewise.
932 * loop-init.c (fix_loop_structure): Likewise.
933 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
934 * lower-subreg.c (decompose_multiword_subregs,
935 decompose_multiword_subregs): Likewise.
936 * lra-assigns.c (assign_by_spills): Likewise.
937 * lra-coalesce.c (lra_coalesce): Likewise.
938 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
940 * lra-eliminations.c (lra_init_elimination): Likewise.
941 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
942 lra_final_code_change): Likewise.
943 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
944 update_inc_notes): Likewise.
945 * mcf.c (adjust_cfg_counts): Likewise.
946 * mode-switching.c (optimize_mode_switching): Likewise.
947 * modulo-sched.c (rest_of_handle_sms): Likewise.
948 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
949 expand_omp_target): Likewise.
950 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
951 * postreload.c (reload_cse_regs_1): Likewise.
952 * predict.c (strip_predict_hints, tree_bb_level_predictions,
953 tree_estimate_probability, expensive_function_p,
954 estimate_bb_frequencies, compute_function_frequency): Likewise.
955 * profile.c (is_inconsistent, compute_branch_probabilities,
956 branch_prob): Likewise.
957 * ree.c (find_removable_extensions): Likewise.
958 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
959 * regcprop.c (copyprop_hardreg_forward): Likewise.
960 * reginfo.c (init_subregs_of_mode): Likewise.
961 * regrename.c (regrename_analyze): Likewise.
962 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
964 * reload1.c (has_nonexceptional_receiver, reload,
965 calculate_elim_costs_all_insns): Likewise.
966 * resource.c (init_resource_info, free_resource_info): Likewise.
967 * sched-ebb.c (schedule_ebbs): Likewise.
968 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
969 haifa_find_rgns, sched_rgn_local_init): Likewise.
970 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
971 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
972 make_regions_from_the_rest): Likewise.
973 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
974 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
975 * store-motion.c (compute_store_table, build_store_vectors,
976 one_store_motion_pass): Likewise.
977 * tracer.c (tail_duplicate): Likewise.
978 * trans-mem.c (compute_transaction_bits): Likewise.
979 * tree-call-cdce.c (tree_call_cdce): Likewise.
980 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
981 fold_cond_expr_cond, make_edges, assign_discriminators,
982 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
983 dump_cfg_stats, gimple_verify_flow_info, print_loop,
984 execute_fixup_cfg): Likewise.
985 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
986 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
988 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
989 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
990 mark_reachable_handlers): Likewise.
991 * tree-emutls.c (lower_emutls_function_body): Likewise.
992 * tree-if-conv.c (main_tree_if_conversion): Likewise.
993 * tree-inline.c (optimize_inline_calls): Likewise.
994 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
995 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
996 * tree-object-size.c (compute_object_sizes): Likewise.
997 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
998 insert_backedge_copies, tree_profiling): Likewise.
999 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1000 * tree-sra.c (scan_function, sra_modify_function_body,
1001 propagate_dereference_distances, ipa_sra_modify_function_body,
1002 convert_callers): Likewise.
1003 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1004 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1005 create_outofssa_var_map, coalesce_partitions): Likewise.
1006 * tree-ssa-copy.c (init_copy_prop): Likewise.
1007 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1008 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1009 eliminate_unnecessary_stmts): Likewise.
1010 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1012 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1013 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1014 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1015 analyze_memory_references, fill_always_executed_in,
1016 tree_ssa_lim_finalize): Likewise.
1017 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1019 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1020 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
1021 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1022 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1023 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
1025 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
1026 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1027 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
1028 tree_ssa_uncprop): Likewise.
1029 * tree-ssa-uninit.c (warn_uninitialized_vars,
1030 execute_late_warn_uninitialized): Likewise.
1031 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
1032 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
1034 * tree-switch-conversion.c (do_switchconv): Likewise.
1035 * tree-vect-generic.c (expand_vector_operations): Likewise.
1036 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
1037 execute_vect_slp): Likewise.
1038 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
1039 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
1041 * ubsan.c (ubsan_pass): Likewise.
1042 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
1043 gimple_find_values_to_profile): Likewise.
1044 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
1045 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
1047 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1049 * basic-block.h (last_basic_block): Eliminate macro.
1051 * asan.c (transform_statements): Eliminate use of last_basic_block
1052 in favor of last_basic_block_for_fn, in order to make use of cfun
1054 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
1055 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
1056 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
1057 * cfg.c (compact_blocks): Likewise.
1058 * cfganal.c (mark_dfs_back_edges,
1059 control_dependences::control_dependences, post_order_compute,
1060 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
1061 single_pred_before_succ_order): Likewise.
1062 * cfgbuild.c (make_edges): Likewise.
1063 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
1064 * cfghooks.c (verify_flow_info): Likewise.
1065 * cfgloop.c (verify_loop_structure): Likewise.
1066 * cfgloopanal.c (just_once_each_iteration_p,
1067 mark_irreducible_loops): Likewise.
1068 * cfgloopmanip.c (fix_bb_placements, remove_path,
1069 update_dominators_in_loop): Likewise.
1070 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
1071 break_superblocks, rtl_flow_call_edges_add): Likewise.
1072 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1073 * config/frv/frv.c (frv_optimize_membar): Likewise.
1074 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1075 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1076 * cprop.c (compute_local_properties, find_implicit_sets,
1077 bypass_conditional_jumps, one_cprop_pass): Likewise.
1078 * cse.c (cse_main): Likewise.
1079 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
1080 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
1081 * df-problems.c (df_lr_verify_solution_start,
1082 df_live_verify_solution_start, df_md_local_compute): Likewise.
1083 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1084 calc_idoms): Likewise.
1085 * domwalk.c (dom_walker::walk): Likewise.
1086 * dse.c (dse_step0, dse_step3): Likewise.
1087 * function.c (epilogue_done): Likewise.
1088 * gcse.c (alloc_gcse_mem, compute_local_properties,
1089 prune_insertions_deletions, compute_pre_data,
1090 pre_expr_reaches_here_p, one_pre_gcse_pass,
1091 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
1092 one_code_hoisting_pass): Likewise.
1093 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1094 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
1095 * haifa-sched.c (unlink_bb_notes): Likewise.
1096 * ipa-split.c (execute_split_functions): Likewise.
1097 * ira-build.c (create_loop_tree_nodes,
1098 remove_unnecessary_regions): Likewise.
1099 * ira-emit.c (ira_emit): Likewise.
1100 * ira.c (find_moveable_pseudos, ira): Likewise.
1101 * lcm.c (compute_antinout_edge, compute_laterin,
1102 compute_insert_delete, pre_edge_lcm, compute_available,
1103 compute_nearerout, compute_rev_insert_delete,
1104 pre_edge_rev_lcm): Likewise.
1105 * loop-unroll.c (opt_info_start_duplication,
1106 apply_opt_in_copies): Likewise.
1107 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1108 * lra-lives.c (lra_create_live_ranges): Likewise.
1109 * lra.c (lra): Likewise.
1110 * mode-switching.c (optimize_mode_switching): Likewise.
1111 * recog.c (split_all_insns): Likewise.
1112 * regcprop.c (copyprop_hardreg_forward): Likewise.
1113 * regrename.c (regrename_analyze): Likewise.
1114 * reload1.c (reload): Likewise.
1115 * resource.c (init_resource_info): Likewise.
1116 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
1117 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
1118 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
1119 recompute_rev_top_order, sel_init_pipelining,
1120 make_regions_from_the_rest): Likewise.
1121 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
1123 * tracer.c (tail_duplicate): Likewise.
1124 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
1125 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
1126 gimple_flow_call_edges_add): Likewise.
1127 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
1128 cleanup_tree_cfg_1): Likewise.
1129 * tree-complex.c (tree_lower_complex): Likewise.
1130 * tree-inline.c (copy_cfg_body): Likewise.
1131 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
1132 prepare_def_site_for, update_ssa): Likewise.
1133 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
1134 * tree-ssa-dom.c (record_edge_info): Likewise.
1135 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
1136 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
1137 * tree-ssa-loop-manip.c (copy_phi_node_args
1138 gimple_duplicate_loop_to_header_edge): Likewise.
1139 * tree-ssa-pre.c (compute_antic): Likewise.
1140 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1141 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1142 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1143 * tree-ssa-tail-merge.c (init_worklist): Likewise.
1144 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1145 * tree-stdarg.c (reachable_at_most_once): Likewise.
1146 * tree-vrp.c (find_assert_locations): Likewise.
1147 * var-tracking.c (vt_find_locations): Likewise.
1149 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1151 * basic-block.h (profile_status): Eliminate macro.
1153 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
1154 profile_status macro in favor of profile_status_for_fn, making
1155 use of cfun explicit.
1156 * cfghooks.c (account_profile_record): Likewise.
1157 * cfgloopanal.c (single_likely_exit):
1158 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
1159 * graphite.c (graphite_finalize):
1160 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
1161 ubsan_expand_si_overflow_neg_check,
1162 ubsan_expand_si_overflow_mul_check): Likewise.
1163 * ipa-split.c (consider_split, execute_split_functions):
1164 * loop-unroll.c (decide_peel_simple):
1165 * optabs.c (emit_cmp_and_jump_insn_1):
1166 * predict.c (maybe_hot_edge_p, probably_never_executed,
1167 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
1168 tree_estimate_probability_driver, estimate_bb_frequencies,
1169 compute_function_frequency, rebuild_frequencies): Likewise.
1170 * profile.c (compute_branch_probabilities): Likewise.
1171 * tree-cfg.c (gimple_account_profile_record): Likewise.
1172 * tree-inline.c (optimize_inline_calls): Likewise.
1174 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1176 * basic-block.h (label_to_block_map): Eliminate macro.
1178 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
1179 with uses of label_to_block_map_for_fn, making uses of cfun be
1181 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1182 (verify_gimple_label): Likewise.
1184 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1186 * basic-block.h (basic_block_info): Eliminate macro.
1188 * cfgrtl.c (rtl_create_basic_block): Replace uses of
1189 basic_block_info with basic_block_info_for_fn, making uses
1190 of cfun be explicit.
1191 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
1193 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1195 * basic-block.h (BASIC_BLOCK): Eliminate macro.
1197 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
1198 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
1199 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
1200 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
1201 * caller-save.c (insert_one_insn): Likewise.
1202 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
1203 * cfgexpand.c (add_scope_conflicts): Likewise.
1204 * cfghooks.c (verify_flow_info): Likewise.
1205 * cfgloop.c (flow_loops_find): Likewise.
1206 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1207 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
1208 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1209 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1210 * cse.c (cse_main): Likewise.
1211 * dce.c (fast_dce): Likewise.
1212 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1213 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1214 df_bb_replace, df_dump_region): Likewise.
1215 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1216 df_live_bb_local_compute, df_chain_remove_problem)
1217 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1218 df_md_bb_local_compute, df_md_local_compute,
1219 df_md_transfer_function): Likewise.
1220 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1221 df_reorganize_refs_by_insn, df_bb_refs_collect,
1222 df_record_entry_block_defs, df_update_entry_block_defs,
1223 df_record_exit_block_uses): Likewise.
1224 * dominance.c (nearest_common_dominator_for_set): Likewise.
1225 * gcse.c (hoist_code): Likewise.
1226 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1227 * ipa-inline-analysis.c (param_change_prob,
1228 estimate_function_body_sizes): Likewise.
1229 * ipa-split.c (dominated_by_forbidden): Likewise.
1230 * loop-unroll.c (apply_opt_in_copies): Likewise.
1231 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1232 * lra-lives.c (lra_create_live_ranges): Likewise.
1233 * predict.c (propagate_freq): Likewise.
1234 * regrename.c (regrename_analyze): Likewise.
1235 * regstat.c (regstat_bb_compute_ri,
1236 regstat_bb_compute_calls_crossed): Likewise.
1237 * resource.c (mark_target_live_regs): Likewise.
1238 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1239 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1240 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1241 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1242 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1243 * sched-vis.c (debug_bb_n_slim): Likewise.
1244 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1245 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1246 * sel-sched.c (remove_insns_that_need_bookkeeping)
1247 (current_region_empty_p, sel_region_init,
1248 simplify_changed_insns): Likewise.
1249 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1250 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1251 * tree-cfg.c (make_edges, end_recording_case_labels,
1252 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1253 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1254 gimple_purge_all_dead_eh_edges,
1255 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1256 * tree-cfgcleanup.c (fixup_noreturn_call,
1257 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1258 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1259 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1260 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1261 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1262 * tree-ssa-live.c (live_worklist): Likewise.
1263 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1264 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1265 * tree-ssa-pre.c (compute_antic): Likewise.
1266 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1267 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1268 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1269 same_succ_flush_bbs, update_worklist, set_cluster,
1270 same_phi_alternatives, find_clusters_1, apply_clusters,
1271 update_debug_stmts): Likewise.
1272 * tree-ssa-threadupdate.c (mark_threaded_blocks,
1273 thread_through_all_blocks): Likewise.
1274 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1275 * tree-vrp.c (find_assert_locations): Likewise.
1277 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1279 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
1281 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
1282 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
1283 (expunge_block): Likewise.
1284 * cfgrtl.c (create_basic_block_structure): Likewise.
1285 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
1286 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1287 * tree-cfg.c (create_bb): Likewise.
1289 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1291 * basic-block.h (profile_status_for_function): Rename to...
1292 (profile_status_for_fn): ...this.
1294 * cfg.c (check_bb_profile): Update for renaming.
1295 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
1296 * lto-streamer-in.c (input_cfg): Likewise.
1297 * lto-streamer-out.c (output_cfg): Likewise.
1298 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
1299 maybe_hot_bb_p, probably_never_executed)
1300 (handle_missing_profiles): Likewise.
1301 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1302 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
1304 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1306 * basic-block.h (label_to_block_map_for_function): Rename to...
1307 (label_to_block_map_for_fn): ...this.
1309 * lto-streamer-in.c (input_cfg): Update for renaming.
1310 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1312 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1314 * basic-block.h (last_basic_block_for_function): Rename to...
1315 (last_basic_block_for_fn): ...this.
1317 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
1318 last_basic_block_for_function to last_basic_block_for_fn.
1319 * lto-streamer-in.c (input_cfg): Likewise.
1320 * lto-streamer-out.c (output_cfg): Likewise.
1321 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1322 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
1325 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1327 * basic-block.h (basic_block_info_for_function): Rename to...
1328 (basic_block_info_for_fn): ...this.
1329 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
1330 (BASIC_BLOCK_FOR_FN): ...this.
1331 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
1332 (SET_BASIC_BLOCK_FOR_FN): ...this.
1334 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
1335 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
1336 * ipa-utils.c (ipa_merge_profiles): Likewise.
1337 * lto-streamer-in.c (make_new_block): Update for renaming of
1338 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
1339 (input_cfg): Update for renamings.
1340 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1341 (dump_function_to_file): Update for renaming of
1342 basic_block_info_for_function to basic_block_info_for_fn.
1344 2013-12-09 Richard Biener <rguenther@suse.de>
1347 * tree-ssa-structalias.c (set_union_with_increment): Remove
1349 (do_complex_constraint): Call set_union_with_increment with
1350 the solution delta, not the full solution.
1351 (make_transitive_closure_constraints): Merge the two
1354 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
1356 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
1357 more address validation checks.
1359 2013-12-09 Marek Polacek <polacek@redhat.com>
1362 * vtable-verify.c (verify_bb_vtables): Check the return value
1363 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
1365 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1367 * config/arm/arm.md (generic_sched): Add cortexa12.
1368 (generic_vfp): Likewise.
1369 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
1370 (arm_cortex_a12_tune): New tuning struct.
1371 * config/arm/arm-cores.def: Add cortex-a12.
1372 * config/arm/arm-tables.opt: Regenerate.
1373 * config/arm/arm-tune.md: Likewise.
1374 * config/arm/bpabi.h: Add cortex-a12.
1375 * doc/invoke.texi: Document -mcpu=cortex-a12.
1377 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1379 * doc/install.texi (Prerequisites): Explicitly mention C library
1380 and its headers for multilib builds.
1382 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
1386 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
1387 OPT_mcbranchdi entry.
1388 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
1390 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
1391 and TARGET_CMPEQDI_T variables.
1392 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
1394 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1396 * config/linux.h: Fix typo in a comment.
1398 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1400 * config.gcc (*linux*): Split libc selection from Android support.
1401 Add libc selection to all *linux* targets. Add Android support to
1402 architectures that support it.
1403 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
1404 (mips*-*-linux*): Add Android support.
1406 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
1407 Maxim Kuvyrkov <maxim@kugelworks.com>
1409 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
1410 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
1411 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
1413 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
1415 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
1416 Define appropriately for Linux and uClinux targets.
1418 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1420 * config/linux.c (linux_has_ifunc_p): Use correct test.
1422 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1424 * config/linux.c (linux_android_has_ifunc_p): Rename to
1426 (linux_android_libc_has_function): Rename to linux_libc_has_function.
1427 * config/linux-protos.h (linux_android_has_ifunc_p,)
1428 (linux_android_libc_has_function): Update declarations.
1429 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
1430 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
1432 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1434 * linux-android.c: Rename to linux.c.
1435 * t-linux-android: Rename to t-linux. Update references
1437 * config.gcc: Update references to t-linux-android and linux-android.o.
1439 2013-12-07 Alan Modra <amodra@gmail.com>
1441 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
1444 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1446 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1448 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
1450 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
1453 2013-12-06 Caroline Tice <cmtice@google.com>
1455 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
1456 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
1457 vtable pointer with the results of the verification call, rather than
1458 only the uses in the next statement.
1460 2013-12-06 Andrew Pinski <apinski@cavium.com>
1463 * config/aarch64/aarch64.md (trap): New pattern.
1465 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1467 PR tree-optimization/59388
1468 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
1469 gimplify tem after stmt rather than before it.
1471 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
1472 (get_references_in_stmt): Don't record operand addresses, but
1473 operands themselves.
1474 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
1475 Adjust for the pos -> ref change.
1477 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1479 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
1481 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
1482 (processor_alias_table): Likewise.
1483 (ix86_option_override_internal): Likewise.
1484 * config/i386/i386.h (target_cpu_default): Replace
1485 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
1487 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
1489 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
1492 * config/i386/i386.c (type_natural_mode): Properly handle
1493 size 8 for !TARGET_64BIT.
1495 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
1497 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
1500 2013-12-06 Ian Bolton <ian.bolton@arm.com>
1501 Mark Mitchell <mark@codesourcery.com>
1504 * config/arm/arm.md (trap): New pattern.
1505 * config/arm/types.md: Added a type for trap.
1507 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1509 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
1511 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
1514 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
1515 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
1516 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
1517 (TARGET_BUILTIN_DECL): Define.
1518 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
1519 (sparc32_initialize_trampoline): Adjust call to gen_flush.
1520 (enum sparc_builtins): New enumeral type.
1521 (sparc_builtins): New static array.
1522 (sparc_builtins_icode): Likewise.
1523 (def_builtin): Accept a separate icode and save the result.
1524 (def_builtin_const): Likewise.
1525 (sparc_fpu_init_builtins): New function.
1526 (sparc_vis_init_builtins): Pass the builtin code.
1527 (sparc_init_builtins): Call it if TARGET_FPU.
1528 (sparc_builtin_decl): New function.
1529 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
1530 (sparc_handle_vis_mul8x16): Use the builtin code.
1531 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
1532 and SPARC_BUILTIN_PDISTN.
1533 (compound_expr): New helper function.
1534 (sparc_atomic_assign_expand_fenv): New function.
1535 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
1537 (flush, flushdi): Merge into single pattern.
1538 (ldfsr): New instruction.
1541 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1543 * asan.c: Remove struct tags when referring to class varpool_node.
1544 * cgraph.h: Likewise.
1545 * cgraphbuild.c: Likewise.
1546 * cgraphunit.c: Likewise.
1547 * dbxout.c: Likewise.
1548 * dwarf2out.c: Likewise.
1549 * gimple-fold.c: Likewise.
1550 * ipa-devirt.c: Likewise.
1551 * ipa-ref-inline.h: Likewise.
1552 * ipa-ref.h: Likewise.
1553 * ipa-reference.c: Likewise.
1554 * ipa-utils.c: Likewise.
1556 * lto-cgraph.c: Likewise.
1557 * lto-streamer-out.c: Likewise.
1558 * lto-streamer.h: Likewise.
1559 * passes.c: Likewise.
1560 * toplev.c: Likewise.
1561 * tree-eh.c: Likewise.
1562 * tree-emutls.c: Likewise.
1563 * tree-pass.h: Likewise.
1564 * tree-ssa-structalias.c: Likewise.
1565 * tree-vectorizer.c: Likewise.
1567 * varasm.c: Likewise.
1568 * varpool.c: Likewise.
1570 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1572 * cgraphunit.c: Remove struct tags when referring to class
1573 ipa_opt_pass_d or class opt_pass.
1574 * function.h: Likewise.
1575 * lto-cgraph.c: Likewise.
1576 * pass_manager.h: Likewise.
1577 * passes.c: Likewise.
1578 * tree-pass.h: Likewise.
1580 2013-12-06 Richard Biener <rguenther@suse.de>
1582 PR tree-optimization/59058
1583 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
1584 (LOOP_VINFO_NITERSM1): New macro.
1585 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
1586 the vector loop entry test in terms of scalar latch executions.
1587 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
1588 * tree-vect-loop.c (vect_get_loop_niters): Also return the
1589 number of latch executions.
1590 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
1591 (vect_analyze_loop_form): Likewise.
1592 (vect_generate_tmps_on_preheader): Compute the number of
1593 vectorized iterations differently.
1595 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1597 * config/score/score.c (score_force_temporary): Delete function.
1598 (score_split_symbol): Ditto.
1599 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
1600 parentheses to silence ambiguity warning and reindent.
1602 2013-12-05 Marek Polacek <polacek@redhat.com>
1604 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
1606 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1608 * config.gcc: Support --with-cpu=ia.
1610 * config/i386/i386.c (cpu_names): Add "ia".
1611 (processor_alias_table): Likewise.
1612 (ix86_option_override_internal): Disallow -march=ia.
1613 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
1615 * doc/invoke.texi: Document -mtune=ia.
1617 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
1619 PR rtl-optimization/59317
1620 * lra-constraints.c (in_class_p): Don't ignore insn with constant
1623 2013-12-05 Martin Jambor <mjambor@suse.cz>
1626 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
1627 non-BLKmode in their naturally aligned type.
1629 2013-12-05 Marek Polacek <polacek@redhat.com>
1633 * ubsan.c: Include rtl.h and expr.h.
1634 (ubsan_encode_value): Add new parameter. If expanding, assign
1635 a stack slot for DECL_RTL of the temporary and call expand_assignment.
1636 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
1637 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
1638 * ubsan.h (ubsan_encode_value): Adjust declaration.
1639 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
1640 ubsan_build_overflow_builtin above expand_normal call. Surround
1641 this call with push_temp_slots and pop_temp_slots.
1642 (ubsan_expand_si_overflow_neg_check): Likewise.
1643 (ubsan_expand_si_overflow_mul_check): Likewise.
1645 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
1647 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
1648 the get_alternative_base call with flag_expensive_optimizations.
1649 (alloc_cand_and_find_basis): Likewise.
1651 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
1653 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
1654 vec_select for overlapping register lanes.
1656 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1658 * config/i386/i386.c (ix86_expand_builtin): Generate
1659 reg for readflags built-in when optimizing.
1660 * config/i386/i386.md (*pushfl<mode>): Rename to ...
1661 (pushfl<mode>2): This. Fix iterator.
1662 (*popfl<mode>): Rename to ...
1663 (*popfl<mode>1): This. Fix iterator.
1665 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1667 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
1668 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
1669 (ix86_init_mmx_sse_builtins): Define
1670 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
1671 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
1672 (ix86_expand_builtin): Expand them.
1673 * config/i386/ia32intrin.h (__readeflags): New.
1674 (__writeeflags): Ditto.
1675 * config/i386/i386.md (*pushfl<mode>): Ditto.
1676 (*popfl<mode>1): Ditto.
1678 2013-12-05 Richard Biener <rguenther@suse.de>
1680 PR tree-optimization/59374
1681 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1682 Commonize known and unknown dependence case fixing the allowed
1683 read-write dependence case and dropping code that should not matter.
1685 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1687 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
1688 generation of predicated version.
1689 (epilogue_deallocate_stack): Ditto.
1690 (prologue_allocate_stack_pr): Add explicit predicated version.
1691 (epilogue_deallocate_stack_pr): Ditto.
1692 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
1694 2013-12-05 Alan Modra <amodra@gmail.com>
1696 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
1698 <recursive call for build != host>: Clear GMPINC. Don't bother
1701 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1702 Marek Polacek <polacek@redhat.com>
1704 * opts.c (common_handle_option): Handle
1705 -fsanitize=signed-integer-overflow.
1706 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
1707 negv<mode>3, negv<mode>3_1): Define expands.
1708 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
1709 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
1710 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
1711 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
1712 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
1713 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
1714 PROB_ALWAYS): Define.
1715 (ubsan_build_overflow_builtin): Declare.
1716 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
1718 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
1719 (ubsan_build_overflow_builtin): New function.
1720 (instrument_si_overflow): Likewise.
1721 (ubsan_pass): Add signed integer overflow checking.
1722 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
1723 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
1724 * internal-fn.c: Include ubsan.h and target.h.
1725 (ubsan_expand_si_overflow_addsub_check): New function.
1726 (ubsan_expand_si_overflow_neg_check): Likewise.
1727 (ubsan_expand_si_overflow_mul_check): Likewise.
1728 (expand_UBSAN_CHECK_ADD): Likewise.
1729 (expand_UBSAN_CHECK_SUB): Likewise.
1730 (expand_UBSAN_CHECK_MUL): Likewise.
1731 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
1732 (-A) + B -> B - A when doing the signed integer overflow checking.
1733 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
1735 * tree-vrp.c (extract_range_basic): Handle internal calls.
1736 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
1738 * asan.c: Include predict.h.
1739 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
1740 * predict.c: Move the PROB_* macros...
1741 * predict.h (enum br_predictor): ...here.
1742 (PROB_LIKELY, PROB_UNLIKELY): Define.
1743 * trans-mem.c: Include predict.h.
1744 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
1745 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
1747 2013-12-04 Jeff Law <law@redhat.com>
1749 * common.opt: Split up -fisolate-erroneous-paths into
1750 -fisolate-erroneous-paths-dereference and
1751 -fisolate-erroneous-paths-attribute.
1752 * invoke.texi: Corresponding changes.
1753 * gimple.c (infer_nonnull_range): Add and use new arguments to control
1754 what kind of statements can be used to infer a non-null range.
1755 * gimple.h (infer_nonnull_range): Update prototype.
1756 * tree-vrp.c (infer_value_range): Corresponding changes.
1757 * opts.c (default_options_table): Update due to option split.
1758 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
1759 (find_implicit_erroneous_behaviour): Pass additional arguments
1760 to infer_nonnull_range.
1761 (find_explicit_erroneous_behaviour): Similarly.
1762 (gate_isolate_erroneous_paths): Check both of the new options.
1764 2013-12-04 Jeff Law <law@redhat.com>
1766 * expr.c (expand_assignment): Update comments.
1768 2013-12-04 Tobias Burnus <burnus@net-b.de>
1771 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
1772 * tree.def (NAMELIST_DECL): Add.
1773 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
1774 * tree.c (initialize_tree_contains_struct): Add asserts for it.
1775 * dwarf2out.c (gen_namelist_decl): New function.
1776 (gen_decl_die, dwarf2out_decl): Call it.
1777 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
1778 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
1779 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
1781 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
1783 2013-12-03 Xinliang David Li <davidxl@google.com>
1785 * tree-ssa-structalias.c (constraint_set_union): Change return type
1787 (merge_node_constraints): Ditto.
1788 (unify_nodes): Update changed set when constraints set changes.
1790 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
1792 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
1794 * configure: Regenerated.
1796 * gdbasan.in: New file.
1798 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1800 PR rtl-optimization/58726
1801 * combine.c (force_to_mode): Fix comment typo. Don't destructively
1802 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
1804 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1805 Uros Bizjak <ubizjak@gmail.com>
1808 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
1809 !TARGET_AVX there is misaligned MEM operand with vector mode
1810 and get_attr_ssememalign is 0, return false.
1811 (ix86_expand_special_args_builtin): Add get_pointer_alignment
1812 computed alignment and for non-temporal loads/stores also
1813 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
1814 * config/i386/sse.md
1815 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1816 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
1817 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
1818 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
1819 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
1820 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
1821 *vec_interleave_highv2df, *vec_interleave_lowv2df,
1822 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
1823 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
1824 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
1825 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
1826 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
1827 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
1828 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
1829 * config/i386/i386.md (ssememalign): New define_attr.
1831 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1833 PR tree-optimization/59355
1834 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
1835 * opts.c (common_handle_option): Fix comment spelling.
1837 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
1839 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
1840 (name_expansions): New static variable.
1841 (alt_base_map): Ditto.
1842 (get_alternative_base): New function.
1843 (find_basis_for_candidate): For CAND_REF, optionally call
1844 find_basis_for_base_expr with the returned value from
1845 get_alternative_base.
1846 (record_potential_basis): Add new parameter 'base' of type 'tree';
1847 add an assertion of non-NULL base; use base to set node->base_expr.
1848 (alloc_cand_and_find_basis): Update; call record_potential_basis
1849 for CAND_REF with the returned value from get_alternative_base.
1850 (replace_refs): Dump details on the replacing.
1851 (execute_strength_reduction): Call pointer_map_create for
1852 alt_base_map; call free_affine_expand_cache with &name_expansions.
1854 2013-12-03 Wei Mi <wmi@google.com>
1856 PR rtl-optimization/59020
1857 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
1858 (sched_analyze_insn): Call try_group_insn.
1859 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
1860 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
1861 (group_insns_for_macro_fusion): Removed.
1862 (sched_init): Remove calling group_insns_for_macro_fusion.
1864 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
1866 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
1868 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
1870 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
1872 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
1874 (aarch64_can_eliminate): Don't check elimination source when
1875 frame_pointer_required is false.
1877 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1879 * config/avr/avr.c (avr_option_override): Warn if asked to generate
1880 position independent code.
1881 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
1883 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
1886 * config/i386/i386.c (emit_memset): Adjust destination address
1888 (expand_setmem_epilogue): Likewise.
1890 2013-12-03 Marek Polacek <polacek@redhat.com>
1893 * calls.c (expand_call): Disallow passing huge arguments by value.
1895 2013-12-03 Jakub Jelinek <jakub@redhat.com>
1897 PR tree-optimization/59362
1898 * tree-object-size.c (object_sizes): Change into array of
1899 vec<unsigned HOST_WIDE_INT>.
1900 (compute_builtin_object_size): Check computed bitmap for
1901 non-NULL instead of object_sizes. Call safe_grow on object_sizes
1902 vector if new SSA_NAMEs appeared.
1903 (init_object_sizes): Check computed bitmap for non-NULL.
1904 Call safe_grow on object_sizes elements instead of initializing
1906 (fini_object_sizes): Call release on object_sizes elements, don't
1910 * gimplify.c (nonlocal_vla_vars): New variable.
1911 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
1912 nonlocal_vla_vars chain.
1913 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
1914 if outer_bind has DECL_INITIAL (current_function_decl) block.
1917 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
1919 * expr.h (struct saved_pending_stack_adjust): New type.
1920 (save_pending_stack_adjust, restore_pending_stack_adjust): New
1922 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
1923 and get_last_insn before do_pending_stack_adjust, call
1924 restore_pending_stack_adjust after delete_insns_since.
1925 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
1926 before calling emit_conditional_move.
1927 * expmed.c (expand_sdiv_pow2): Likewise.
1928 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
1930 2013-12-02 Jeff Law <law@redhat.com>
1932 PR tree-optimization/59322
1933 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
1934 Remove code which copied jump threading paths.
1936 2013-12-02 Sriraman Tallam <tmsriram@google.com>
1939 * config/i386/i386.opt (ix86_arch_string): Mark this variable
1940 for saving in cl_target_option.
1941 (ix86_tune_string): Ditto.
1942 (ix86_cmodel): Ditto.
1944 (ix86_asm_dialect): Ditto.
1945 (ix86_branch_cost): Ditto.
1946 (ix86_dump_tunes): Ditto.
1947 (ix86_force_align_arg_pointer): Ditto.
1948 (ix86_force_drap): Ditto.
1949 (ix86_incoming_stack_boundary_arg): Ditto.
1950 (ix86_pmode): Ditto.
1951 (ix86_preferred_stack_boundary_arg): Ditto.
1952 (ix86_recip_name): Ditto.
1953 (ix86_regparm): Ditto.
1954 (ix86_section_threshold): Ditto.
1955 (ix86_sse2avx): Ditto.
1956 (ix86_stack_protector_guard): Ditto.
1957 (ix86_stringop_alg): Ditto.
1958 (ix86_tls_dialect): Ditto.
1959 (ix86_tune_ctrl_string): Ditto.
1960 (ix86_tune_memcpy_strategy): Ditto.
1961 (ix86_tune_memset_strategy): Ditto.
1962 (ix86_tune_no_default): Ditto.
1963 (ix86_veclibabi_type): Ditto.
1964 * config/i386/i386.c (function_specific_save): Save the above
1965 variables in gcc_options to cl_target_option.
1966 (function_specific_restore): Do the reverse done in
1967 function_specific_save.
1968 (ix86_valid_target_attribute_tree): Change ix86_arch_string
1969 and ix86_tune_string to use the opts structure.
1970 (ix86_option_override_internal):Change
1971 ix86_incoming_stack_boundary_arg to
1972 opts->x_ix86_incoming_stack_boundary_arg
1974 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
1976 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
1977 in #ifndef IN_LIBGCC2 / #endif.
1979 2013-12-02 Jakub Jelinek <jakub@redhat.com>
1981 PR tree-optimization/59358
1982 * tree-vrp.c (union_ranges): To check for the partially overlapping
1983 ranges or adjacent ranges, also compare *vr0max with vr1max.
1985 2013-12-02 Sterling Augustine  <saugustine@google.com>
1987 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
1988 when there isn't a skeleton die.
1990 2013-12-02 Marek Polacek <polacek@redhat.com>
1993 * doc/invoke.texi: Document -fsanitize=return.
1995 2013-12-02 Tobias Burnus <burnus@net-b.de>
1996 Manuel López-Ibáñez <manu@gcc.gnu.org>
1999 * doc/invoke.texi: Add missing @opindex.
2000 (-fsanitize=): Use @gcctabopt instead of @itemize.
2002 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2004 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2005 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2006 targets like arm-none-eabi.
2007 * expr.c (expand_assignment): Handle normal fields like bit regions.
2009 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2012 * function.c (invoke_set_current_function_hook): Call
2013 targetm.set_current_function after setting this_fn_optabs.
2015 2013-12-02 Richard Biener <rguenther@suse.de>
2017 PR tree-optimization/59139
2018 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2019 code in get_val_for.
2020 (get_val_for): Use gcc_checking_asserts.
2022 2013-12-02 Richard Biener <rguenther@suse.de>
2025 * tree-ssa-operands.c (opf_implicit): Remove.
2026 (opf_address_taken): New flag.
2027 (get_expr_operands): Remove early out, pass down opf_address_taken for
2028 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
2029 (get_indirect_ref_operands): Rename to ...
2030 (get_mem_ref_operands): ... this.
2031 (get_asm_expr_operands): Rename to ...
2032 (get_asm_stmt_operands): ... this.
2034 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2036 * ipa-inline.c (check_callers): Add missed pointer de-reference.
2038 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
2040 PR tree-optimization/59356
2041 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
2042 offset computation using the precision of the index type.
2044 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
2047 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
2048 when rclass is GENERAL_REGS.
2050 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2052 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
2053 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2055 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
2057 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
2060 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2062 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
2064 2013-11-30 Paulo Matos <pmatos@broadcom.com>
2065 Eric Botcazou <ebotcazou@adacore.com>
2067 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
2068 as applied to nonzero_sign_valid when last_set_mode has less precision
2071 2013-11-30 Tobias Burnus <burnus@net-b.de>
2074 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
2075 environment variable and link to a list with flags.
2076 (-fsanitize=thread): Ditto and update link.
2078 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
2080 PR rtl-optimization/59340
2081 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
2084 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2086 * lra.c (lra): Set lra_in_progress before check_rtl call.
2087 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2088 adding clobber regs when LRA is running.
2090 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2093 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
2095 2013-11-29 Richard Biener <rguenther@suse.de>
2098 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
2099 free_stmt_operands, update_stmt_operands): Add struct function
2101 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
2102 function argument from fini_ssa_operands, verify_ssa_operands,
2103 free_stmt_operands and update_stmt_operands everywhere.
2104 * tree-ssanames.h (release_ssa_name_fn): New.
2105 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
2106 * tree-ssanames.c (release_ssa_name): Rename to ...
2107 (release_ssa_name_fn): ... this and add struct function argument.
2108 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
2109 (update_stmt_fn): New function.
2110 * tree-cfg.c (move_block_to_fn): Adjust.
2111 * tree-if-conv.c (free_bb_predicate): Likewise.
2112 * tree-ssa.c (verify_ssa): Likewise.
2113 (delete_tree_ssa): Likewise.
2114 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
2115 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
2116 update_stmt_fn instead of update_stmt.
2118 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2120 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
2123 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
2125 * config/arm/arm.md (store_minmaxsi): Use only when
2126 optimize_function_for_size_p.
2128 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2129 Yury Gribov <y.gribov@samsung.com>
2132 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
2133 * gcc.c: Using libsanitizer spec instead of explicit libs.
2135 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
2138 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2139 * cgraph.h (varpool_node): Add need_bounds_init field.
2140 * lto-cgraph.c (lto_output_varpool_node): Output
2141 need_bounds_init value.
2142 (input_varpool_node): Read need_bounds_init value.
2143 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2146 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2147 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2148 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2149 (gen_type_die_with_usage): Skip pointer bounds.
2150 (dwarf2out_global_decl): Likewise.
2153 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2154 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2155 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2156 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2157 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2158 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2159 (gimple_call_with_bounds_p): New.
2160 (gimple_call_set_with_bounds): New.
2161 (gimple_call_num_nobnd_args): Remove.
2162 (gimple_call_nobnd_arg): Remove.
2163 * tree.h (CALL_WITH_BOUNDS_P): New.
2164 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2167 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
2168 * common.opt (fcheck-pointer-bounds): Move to ...
2169 * c-family/c.opt: ... here.
2170 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
2171 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
2172 * langhooks.h (lang_hooks): Remove chkp_supported field.
2173 * toplev.c (process_options): Remove chkp_supported check.
2176 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2177 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2178 * tree.h (POINTER_BOUNDS_P): New.
2179 (BOUNDED_TYPE_P): New.
2181 (pointer_bounds_type_node): New.
2182 * tree.c (build_common_tree_nodes): Initialize
2183 pointer_bounds_type_node.
2184 * gimple.h (gimple_call_get_nobnd_arg_index): New.
2185 (gimple_call_num_nobnd_args): New.
2186 (gimple_call_nobnd_arg): New.
2187 (gimple_return_retbnd): New.
2188 (gimple_return_set_retbnd): New
2189 * gimple.c (gimple_build_return): Increase number of ops
2190 for return statement.
2191 (gimple_call_get_nobnd_arg_index): New.
2192 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2195 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2196 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2197 with "chkp ctor" and "bnd_legacy" attributes.
2198 * gimplify.c (gimplify_init_constructor): Avoid infinite
2199 loop during gimplification of bounds initializer.
2202 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2203 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2204 (handle_bnd_legacy): New.
2205 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
2206 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
2210 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
2211 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2212 (BT_FN_PTR_CONST_PTR): New.
2213 (BT_FN_CONST_PTR_CONST_PTR): New.
2214 (BT_FN_PTR_CONST_PTR_SIZE): New.
2215 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2216 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2217 (BT_FN_VOID_CONST_PTR_SIZE): New.
2218 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2219 * chkp-builtins.def: New.
2220 * builtins.def: include chkp-builtins.def.
2221 (DEF_CHKP_BUILTIN): New.
2222 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2223 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2224 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2225 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2226 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2227 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2228 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2229 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2230 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2231 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2232 * common.opt (fcheck-pointer-bounds): New.
2233 * toplev.c (process_options): Check Pointer Bounds Checker is
2235 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2238 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2239 * target.def (builtin_chkp_function): New.
2240 (chkp_bound_type): New.
2241 (chkp_bound_mode): New.
2242 (fn_abi_va_list_bounds_size): New.
2243 (load_bounds_for_arg): New.
2244 (store_bounds_for_arg): New.
2245 * targhooks.h (default_load_bounds_for_arg): New.
2246 (default_store_bounds_for_arg): New.
2247 (default_fn_abi_va_list_bounds_size): New.
2248 (default_chkp_bound_type): New.
2249 (default_chkp_bound_mode): New.
2250 (default_builtin_chkp_function): New.
2251 * targhooks.c (default_load_bounds_for_arg): New.
2252 (default_store_bounds_for_arg): New.
2253 (default_fn_abi_va_list_bounds_size): New.
2254 (default_chkp_bound_type): New.
2255 (default_chkp_bound_mode); New.
2256 (default_builtin_chkp_function): New.
2257 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2258 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2259 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2260 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2261 (TARGET_CHKP_BOUND_TYPE): New.
2262 (TARGET_CHKP_BOUND_MODE): New.
2263 * doc/tm.texi: Regenerated.
2264 * langhooks.h (lang_hooks): Add chkp_supported field.
2265 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2266 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2269 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2270 * config/i386/constraints.md (B): New.
2273 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2274 * config/i386/i386-modes.def (BND32): New.
2276 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2277 * config/i386/i386.c (isa_opts): Add mmpx.
2278 (regclass_map): Add bound registers.
2279 (dbx_register_map): Likewise.
2280 (dbx64_register_map): Likewise.
2281 (svr4_dbx_register_map): Likewise.
2283 (ix86_option_override_internal): Support MPX ISA.
2284 (ix86_conditional_register_usage): Support bound registers.
2285 (print_reg): Likewise.
2286 (ix86_code_end): Add MPX bnd prefix.
2287 (output_set_got): Likewise.
2288 (ix86_output_call_insn): Likewise.
2289 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2290 (ix86_print_operand_punct_valid_p): Likewise.
2291 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2293 (ix86_class_likely_spilled_p): Add bound regs support.
2294 (ix86_hard_regno_mode_ok): Likewise.
2295 (x86_order_regs_for_local_alloc): Likewise.
2296 (ix86_bnd_prefixed_insn_p): New.
2297 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2298 (FIXED_REGISTERS): Add bound registers.
2299 (CALL_USED_REGISTERS): Likewise.
2300 (REG_ALLOC_ORDER): Likewise.
2301 (HARD_REGNO_NREGS): Likewise.
2303 (VALID_BND_REG_MODE): New.
2304 (FIRST_BND_REG): New.
2305 (LAST_BND_REG): New.
2306 (reg_class): Add BND_REGS.
2307 (REG_CLASS_NAMES): Likewise.
2308 (REG_CLASS_CONTENTS): Likewise.
2310 (ANY_BND_REG_P): New.
2312 (HI_REGISTER_NAMES): Add bound registers.
2313 * config/i386/i386.md (UNSPEC_BNDMK): New.
2314 (UNSPEC_BNDMK_ADDR): New.
2315 (UNSPEC_BNDSTX): New.
2316 (UNSPEC_BNDLDX): New.
2317 (UNSPEC_BNDLDX_ADDR): New.
2318 (UNSPEC_BNDCL): New.
2319 (UNSPEC_BNDCU): New.
2320 (UNSPEC_BNDCN): New.
2321 (UNSPEC_MPX_FENCE): New.
2324 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2325 (length_immediate): Likewise.
2326 (prefix_0f): Likewise.
2328 (prefix_rep): Check for bnd prefix.
2329 (length_nobnd): New.
2330 (length): Use length_nobnd if specified.
2335 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
2338 (simple_return_internal): Likewise.
2339 (simple_return_pop_internal): Likewise.
2340 (*indirect_jump): Add MPX bnd prefix.
2341 (*tablejump_1): Likewise.
2342 (simple_return_internal_long): Likewise.
2343 (simple_return_indirect_internal): Likewise.
2347 (*mov<mode>_internal_mpx): New.
2348 (<mode>_<bndcheck>): New.
2349 (*<mode>_<bndcheck>): New.
2354 * config/i386/predicates.md (lea_address_operand): Rename to...
2355 (address_no_seg_operand): ... this.
2356 (address_mpx_no_base_operand): New.
2357 (address_mpx_no_index_operand): New.
2358 (bnd_mem_operator): New.
2359 * config/i386/i386.opt (mmpx): New.
2360 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
2361 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
2364 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2365 * mode-classes.def (MODE_POINTER_BOUNDS): New.
2366 * tree.def (POINTER_BOUNDS_TYPE): New.
2367 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2368 (POINTER_BOUNDS_MODE): New.
2369 (make_pointer_bounds_mode): New.
2370 * machmode.h (POINTER_BOUNDS_MODE_P): New.
2371 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2372 (layout_type): Support POINTER_BOUNDS_TYPE.
2373 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2374 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2375 (type_contains_placeholder_1): Likewise.
2376 * tree.h (POINTER_BOUNDS_TYPE_P): New.
2377 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
2378 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2380 2013-11-29 Richard Biener <rguenther@suse.de>
2383 * tree-cfg.c (verify_expr): Restrict bounds verification of
2384 BIT_FIELD_REF arguments to non-aggregate typed base objects.
2386 2013-11-29 Richard Biener <rguenther@suse.de>
2388 PR tree-optimization/59334
2389 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
2392 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2393 Richard Biener <rguenther@suse.de>
2396 * omp-low.c (simd_clone_create): Return NULL if for definition
2397 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
2398 before calling cgraph_function_versioning.
2399 (expand_simd_clones): Look for "omp declare simd" attribute first.
2400 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
2401 Punt if node->global.inlined_to.
2402 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
2403 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
2404 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
2406 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2409 * tree-core.h (enum omp_clause_schedule_kind): Add
2410 OMP_CLAUSE_SCHEDULE_LAST.
2411 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
2412 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
2413 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
2414 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
2415 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
2416 (DFS_write_tree_body): Handle OMP_CLAUSE.
2417 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
2418 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
2419 (write_ts_omp_clause_tree_pointers): New function.
2420 (streamer_write_tree_body): Call it for OMP_CLAUSE.
2421 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
2422 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
2423 (unpack_value_fields): Call it for OMP_CLAUSE.
2424 (streamer_alloc_tree): Handle OMP_CLAUSE.
2425 (lto_input_ts_omp_clause_tree_pointers): New function.
2426 (streamer_read_tree_body): Call it for OMP_CLAUSE.
2428 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2430 * doc/implement-c.texi: Document C11 implementation-defined
2431 behavior. Refer to -ffp-contract=fast for contraction behavior.
2432 * doc/invoke.texi (-std=c99, std=c11): Update description of
2434 (-std=gnu99): Don't mention as future default.
2435 (-std=gnu11): Mention as intended future default.
2436 * doc/standards.texi: Update descriptions of C99 and C11 support.
2437 Limit statement about C99 facilities for freestanding
2438 implementations to some platforms only.
2440 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2443 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
2445 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
2448 * ira.h (ira_setup_eliminable_regset): Remove parameter.
2449 * ira.c (ira_setup_eliminable_regset): Ditto. Add
2450 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
2451 Don't call lra_init_elimination.
2452 (ira): Call ira_setup_eliminable_regset without arguments.
2453 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
2454 from ira_setup_eliminable_regset call.
2455 * gcse.c (calculate_bb_reg_pressure): Ditto.
2456 * haifa-sched.c (sched_init): Ditto.
2457 * lra.h (lra_init_elimination): Remove the prototype.
2458 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
2459 used_insn_alternative upper.
2460 (lra_eliminate_regs_1): Add one more parameter.
2461 (lra-eliminate): Ditto.
2462 * lra.c (lra_invalidate_insn_data): Set sp_offset.
2463 (setup_sp_offset): New.
2464 (lra_process_new_insns): Call setup_sp_offset.
2465 (lra): Add argument to lra_eliminate calls.
2466 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
2467 (get_equiv_with_elimination): New.
2468 (process_addr_reg): Call get_equiv_with_elimination instead of
2469 get_equiv_substitution.
2470 (equiv_address_substitution): Ditto.
2471 (loc_equivalence_change_p): Ditto.
2472 (loc_equivalence_callback, lra_constraints): Ditto.
2473 (curr_insn_transform): Ditto. Print the sp offset
2474 (process_alt_operands): Prevent stack pointer reloads.
2475 (lra_constraints): Remove one argument from lra_eliminate call.
2476 Move it up. Mark used hard regs bfore it. Use
2477 get_equiv_with_elimination instead of get_equiv_substitution.
2478 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
2479 assert for param values combination. Use sp offset. Add argument
2480 to lra_eliminate_regs_1 calls.
2481 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
2482 (curr_sp_change): New static var.
2483 (mark_not_eliminable): Add parameter. Update curr_sp_change.
2484 Don't prevent elimination to sp if we can calculate its change.
2485 Pass the argument to mark_not_eliminable calls.
2486 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
2487 argument to lra_eliminate_regs_1 call.
2488 (update_reg_eliminate): Move calculation of hard regs for spill
2489 lower. Switch off lra_in_progress temporarily to generate regs
2490 involved into elimination.
2491 (lra_init_elimination): Rename to init_elimination. Make it
2492 static. Set up insn sp offset, check the offsets at the end of BBs.
2493 (process_insn_for_elimination): Add parameter. Pass its value to
2494 eliminate_regs_in_insn.
2495 (lra_eliminate): : Add parameter. Pass its value to
2496 process_insn_for_elimination. Add assert for param values
2497 combination. Call init_elimination. Don't update offsets in
2498 equivalence substitutions.
2499 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
2500 for created stack slot.
2501 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
2504 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2506 * config/arm/iterators.md (vrint_conds): New int attribute.
2507 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
2508 (smax<mode>3): Likewise.
2509 (smin<mode>3): Likewise.
2511 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
2513 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
2514 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
2515 * tree-ssanames.h (set_range_info): Add range_type argument.
2516 (duplicate_ssa_name_range_info): Likewise.
2517 * tree-ssanames.c (set_range_info): Take the range type as argument
2518 and store it in SSA_NAME_ANTI_RANGE_P.
2519 (duplicate_ssa_name_range_info): Likewise.
2520 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
2521 (set_nonzero_bits): Update call to set_range_info.
2522 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
2523 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2524 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
2525 (vrp_finalize): Likewise, passing anti-ranges directly.
2527 2013-11-28 Richard Biener <rguenther@suse.de>
2529 PR tree-optimization/59330
2530 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
2531 and fix delayed marking of free calls not necessary.
2533 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
2535 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
2537 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2539 2013-11-28 Terry Guo <terry.guo@arm.com>
2541 * config/arm/arm.c (v7m_extra_costs): New table.
2542 (arm_v7m_tune): Use it.
2544 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2546 * config/sol2.h (TIME_LIBRARY): Define.
2548 2013-11-28 Richard Biener <rguenther@suse.de>
2551 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
2552 CONST_DECLs in function context are not indexable.
2554 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
2556 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
2557 not optimized for size.
2559 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2561 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
2563 (expand_stack_vars): For -fsanitize=address, use (and set initially)
2564 data->asan_base as base for vars and update asan_alignb.
2565 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
2566 Pass them to asan_emit_stack_protection.
2567 * asan.c (asan_detect_stack_use_after_return): New variable.
2568 (asan_emit_stack_protection): Add pbase and alignb arguments.
2569 Implement use after return sanitization.
2570 * asan.h (asan_emit_stack_protection): Adjust prototype.
2571 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
2573 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2575 * common.opt: Introduced a new option -fsimd-cost-model.
2576 * doc/invoke.texi: Introduced a new openmp-simd warning and
2577 a new -fsimd-cost-model option.
2578 * tree-vectorizer.h (unlimited_cost_model): Interface updated
2579 to rely on the particular loop info.
2580 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
2581 (vect_peeling_hash_choose_best_peeling): Ditto.
2582 (vect_enhance_data_refs_alignment): Ditto.
2583 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
2584 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
2585 plus added openmp-simd warining.
2587 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
2589 PR rtl-optimization/59311
2590 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
2591 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
2593 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2595 * var-tracking.c (track_expr_p): Do not track declarations for parts
2596 of tracked parameters.
2597 (add_stores): Do not track values for tracked parameters passed in
2599 (vt_get_decl_and_offset): Handle PARALLEL.
2600 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
2602 2013-11-27 Jeff Law <law@redhat.com>
2604 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2605 clobber the loop structure thread_block was unsuccessful. If
2606 thread_block was unsuccessful, cleanup appropriately.
2608 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
2610 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
2611 (score_char_to_class): Likewise.
2613 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
2615 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
2616 the overflow bit set.
2618 2013-11-27 Richard Biener <rguenther@suse.de>
2621 * cgraphbuild.c (build_cgraph_edges): Do not build edges
2623 (rebuild_cgraph_edges): Likewise.
2624 * ipa-inline-analysis.c (estimate_function_body_sizes):
2625 Skip internal calls.
2626 * tree-inline.c (estimate_num_insns): Estimate size of internal
2628 (gimple_expand_calls_inline): Do not try inline-expanding
2630 * lto-streamer-in.c (input_cfg): Stream loop safelen,
2631 force_vect and simduid.
2632 (input_struct_function_base): Stream has_force_vect_loops
2633 and has_simduid_loops.
2634 (input_function): Adjust.
2635 * lto-streamer-out.c (output_cfg): Stream loop safelen,
2636 force_vect and simduid.
2637 (output_struct_function_base): Stream has_force_vect_loops
2638 and has_simduid_loops.
2640 2013-11-27 Kai Tietz <ktietz@redhat.com>
2642 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
2645 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2647 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
2648 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
2650 2013-11-27 Marek Polacek <polacek@redhat.com>
2653 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
2654 instead of walk_gimple_op.
2655 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
2657 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
2658 Jakub Jelinek <jakub@redhat.com>
2660 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
2661 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
2662 (struct cgraph_node): Add simdclone and simd_clones fields.
2663 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
2664 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
2665 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2666 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
2667 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2668 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
2669 * doc/tm.texi: Regenerated.
2670 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
2671 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
2672 attribute is present.
2673 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
2674 (simd_clone_vector_of_formal_parm_types): New function.
2675 (simd_clone_struct_alloc, simd_clone_struct_copy,
2676 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
2677 simd_clone_compute_base_data_type, simd_clone_mangle,
2678 simd_clone_create, simd_clone_adjust_return_type,
2679 create_tmp_simd_array, simd_clone_adjust_argument_types,
2680 simd_clone_init_simd_arrays): New functions.
2681 (struct modify_stmt_info): New type.
2682 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
2683 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
2685 (pass_data_omp_simd_clone): New variable.
2686 (pass_omp_simd_clone): New class.
2687 (make_pass_omp_simd_clone): New function.
2688 * passes.def (pass_omp_simd_clone): New.
2689 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2690 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
2691 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
2692 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
2693 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
2694 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
2695 * tree-vect-data-refs.c: Include cgraph.h.
2696 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
2697 and find_data_references_in_bb, if find_data_references_in_stmt
2698 fails, still allow calls to #pragma omp declare simd functions
2699 in #pragma omp simd loops unless they contain data references among
2700 the call arguments or in lhs.
2701 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2703 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
2705 * tree-vectorizer.h (enum stmt_vec_info_type): Add
2706 call_simd_clone_vec_info_type.
2707 (struct _stmt_vec_info): Add simd_clone_fndecl field.
2708 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
2709 * tree-vect-stmts.c: Include tree-ssa-loop.h,
2710 tree-scalar-evolution.h and cgraph.h.
2711 (vectorizable_call): Handle calls without lhs. Assert
2712 !stmt_can_throw_internal instead of failing for it. Don't update
2714 (struct simd_call_arg_info): New.
2715 (vectorizable_simd_clone_call): New function.
2716 (vect_transform_stmt): Call it.
2717 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
2719 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
2720 if cgraph_function_with_gimple_body_p is true.
2722 2013-11-27 Tom de Vries <tom@codesourcery.com>
2723 Marc Glisse <marc.glisse@inria.fr>
2726 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
2728 * gimple-fold.c (gimple_fold_indirect_ref): Same.
2729 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
2732 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2735 * expr.c (emit_group_store): Don't write past the end of the structure.
2736 (store_bit_field): Fix formatting.
2738 2013-11-27 Richard Biener <rguenther@suse.de>
2740 PR tree-optimization/59288
2741 * tree-vect-loop.c (get_initial_def_for_induction): Do not
2742 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
2744 2013-11-27 Marek Polacek <polacek@redhat.com>
2746 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
2747 for a decl, recreate that decl. Save into the hash table VAR_DECLs
2748 rather than ADDR_EXPRs.
2750 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2752 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
2754 2013-11-26 David Malcolm <dmalcolm@redhat.com>
2756 * gengtype.c (struct seen_tag): New.
2757 (already_seen_tag): New.
2758 (mark_tag_as_seen): New.
2759 (walk_subclasses): Support having multiple subclasses using the
2760 same tag by tracking which tags have already been seen, and using
2761 this to avoid adding duplicate cases to the "switch" statement.
2762 The call to already_seen_tag introduces an O(N^2) when running
2763 gengtype on N, the number of tags, due to the repeated linear
2764 search, but currently max(N) is relatively small (the number of
2765 GSS codes, which is 26).
2766 (walk_type): Pass in a seen_tag for use by the walk_subclasses
2769 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
2770 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
2771 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
2772 GIMPLE_OMP_RETURN happens to share the data layout of
2773 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
2774 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
2775 underlying GSS value from GSS_OMP_PARALLEL to
2776 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
2777 not directly related; they merely share in-memory layout.
2778 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
2779 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
2781 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
2783 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
2785 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
2786 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
2787 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
2788 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
2791 * gimple.h (gimple_statement_resx): New subclass of
2792 gimple_statement_eh_ctrl, with the invariant that
2793 stmt->code == GIMPLE_RESX.
2794 (gimple_statement_eh_dispatch): New subclass of
2795 gimple_statement_eh_ctrl, with the invariant that
2796 stmt->code == GIMPLE_EH_DISPATH.
2798 (gimple_statement_omp_parallel): The existing class expressed
2799 a layout (GSS_OMP_PARALLEL), but the codes with that layout
2800 are not all related, so it makes more sense for this class to
2801 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
2802 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
2803 rename the existing gimple_statement_omp_parallel class to...
2804 (gimple_statement_omp_parallel_layout): ...this, expressing
2805 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
2806 (gimple_statement_omp_taskreg): New subclass of
2807 gimple_statement_omp_parallel_layout, expressing the invariant
2808 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
2809 as used by the various gimple_omp_taskreg_ accessors.
2810 (gimple_statement_omp_parallel): Reintroduce this class, this time
2811 as a subclass of gimple_statement_omp_taskreg to express the
2812 invariant stmt->code == GIMPLE_OMP_PARALLEL.
2813 (gimple_statement_omp_target) New class, subclassing
2814 gimple_statement_omp_parallel_layout, to express the invariant
2815 stmt->code == GIMPLE_OMP_TARGET.
2816 (gimple_statement_omp_task): Update to inherit from
2817 gimple_statement_omp_taskreg rather than
2818 gimple_statement_omp_parallel.
2820 (gimple_statement_omp_single): Rename to...
2821 (gimple_statement_omp_single_layout): ...this, expressing the
2822 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
2823 (gimple_statement_omp_single): ...and reintroduce this name as
2824 a subclass of gimple_statement_omp_single_layout, expressing
2825 the invariant that code == GIMPLE_OMP_SINGLE.
2826 (gimple_statement_omp_teams): New class, subclassing
2827 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
2829 (gimple_statement_omp_atomic_store): Rename to...
2830 (gimple_statement_omp_atomic_store_layout): ...this, expressing
2831 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
2832 (gimple_statement_omp_atomic_store): ...and reintroduce this
2833 name as a subclass of gimple_statement_omp_atomic_store_layout
2834 with code == GIMPLE_OMP_ATOMIC_STORE.
2835 (gimple_statement_omp_return): New class, subclassing
2836 gimple_statement_omp_atomic_store_layout for the code
2839 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
2840 (is_a_helper <gimple_statement_resx>::test): New.
2841 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
2842 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
2843 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
2844 (is_a_helper <gimple_statement_omp_return>::test): New.
2845 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
2846 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
2847 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
2849 (is_a_helper <gimple_statement_omp_target>::test): New.
2850 (is_a_helper <gimple_statement_omp_single>::test): Only check
2851 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
2852 (is_a_helper <gimple_statement_omp_teams>::test): New.
2854 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
2855 (is_a_helper <const gimple_statement_resx>::test): New.
2856 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
2857 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
2858 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
2859 (is_a_helper <const gimple_statement_omp_return>::test): New.
2860 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
2861 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
2862 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
2864 (is_a_helper <const gimple_statement_omp_target>::test): New.
2865 (is_a_helper <const gimple_statement_omp_single>::test): Only
2866 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
2867 (is_a_helper <const gimple_statement_omp_teams>::test): New.
2869 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
2870 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
2871 gimple_statement_omp_atomic_store with downcasts to
2872 gimple_statement_omp_return, thus requiring that the code be
2874 (gimple_resx_region, gimple_resx_set_region): Replace bogus
2875 downcasts to gimple_statement_eh_ctrl with downcasts to
2876 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
2877 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
2878 Replace bogus downcasts to const gimple_statement_eh_ctrl with
2879 downcasts to gimple_statement_eh_dispatch, thus requiring that
2880 the code be GIMPLE_EH_DISPATCH.
2881 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
2882 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
2883 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
2884 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
2885 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
2886 gimple_statement_omp_parallel with downcasts to
2887 gimple_statement_omp_taskreg, thus requiring that the code be
2888 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
2889 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
2890 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
2891 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
2892 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
2893 gimple_omp_target_set_data_arg): Replace bogus downcasts to
2894 gimple_statement_omp_parallel with downcasts to
2895 gimple_statement_omp_target, thus requiring that the code be
2897 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
2898 gimple_omp_teams_set_clauses): Replace bogus downcasts to
2899 gimple_statement_omp_single with downcasts to
2900 gimple_statement_omp_teams, thus requiring that the code be
2903 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
2904 gimple_statement_resx.
2905 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
2906 gimple_statement_eh_dispatch.
2908 2013-11-26 Jakub Jelinek <jakub@redhat.com>
2910 PR tree-optimization/59014
2911 * tree-vrp.c (register_edge_assert_for_1): Don't look
2912 through conversions from non-integral types or through
2913 narrowing conversions.
2916 * config/i386/i386.c (device_alg): Fix up formatting.
2917 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
2918 similarly to count && count < epilogue_size_needed. Fix up
2920 * builtins.c (determine_block_size): Fix comment typo.
2923 * ubsan.c (ubsan_source_location): Don't add any location
2924 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
2925 (ubsan_create_data): Strip block info from LOC.
2928 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
2929 if there isn't optab handler for the corresponding vector PLUS_EXPR.
2931 PR rtl-optimization/59166
2932 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
2933 DF_REF_LOC in validate_change call.
2934 (split_live_ranges_for_shrink_wrap): Likewise.
2937 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
2938 of references to constant size types in simd loops, defer emitting
2939 initializer for the new_var, emit it later on only if not using
2943 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
2944 for the inner loop if collapse_bb is non-NULL.
2945 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
2947 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
2949 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
2950 a constant immediate before force_reg.
2952 2013-11-26 Richard Biener <rguenther@suse.de>
2954 PR tree-optimization/59245
2955 * tree-vrp.c (set_value_range): Assert that we don't have
2956 overflowed constants (but our infinities).
2957 (set_value_range_to_value): Drop all overflow flags.
2958 (vrp_visit_phi_node): Likewise.
2959 (vrp_visit_assignment_or_call): Use set_value_range_to_value
2960 to set a constant range.
2962 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2965 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
2966 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
2967 for zero_extend case.
2969 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
2972 * configure.ac (install_gold_as_default): New. Set to yes for
2973 --disable-ld or --enable-gold=default.
2974 (gcc_cv_ld_gold_srcdir): New.
2975 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
2976 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
2977 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
2978 * configure: Regenerated.
2980 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
2981 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
2982 (original) [collect-ld && -fuse-ld=bfd]: Set to
2983 $ORIGINAL_LD_BFD_FOR_TARGET.
2984 (original) [collect-ld && -fuse-ld=gold]: Set to
2985 $ORIGINAL_LD_GOLD_FOR_TARGET.
2986 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
2987 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
2989 2013-11-26 Terry Guo <terry.guo@arm.com>
2991 * config/arm/arm.c (require_pic_register): Handle high pic base
2992 register for thumb-1.
2993 (arm_load_pic_register): Also initialize high pic base register.
2994 * doc/invoke.texi: Update documentation for option -mpic-register.
2996 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3000 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3001 Prefix function names with 'sh_'. Make them non-static.
3002 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3003 sh_max_mov_insn_displacement): Add declarations.
3004 * config/sh/constraints.md (Q): Reject QImode.
3005 (Sdd): Use match_code "mem".
3006 (Snd): Fix erroneous matching of non-memory operands.
3007 * config/sh/predicates.md (short_displacement_mem_operand): New
3009 (general_movsrc_operand): Disallow PC relative QImode loads.
3010 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3011 (*movqi, *movhi): Merge both insns into...
3012 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3013 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3014 on the operand types.
3016 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3018 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3019 Remove unused variable save_config.
3020 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3023 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3025 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
3026 using other intrinsics.
3027 (vtbx3_<psu>8): Likewise.
3029 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3031 * config/aarch64/aarch64-builtins.c
3032 (aarch64_types_bsl_p_qualifiers): New.
3033 (aarch64_types_bsl_s_qualifiers): Likewise.
3034 (aarch64_types_bsl_u_qualifiers): Likewise.
3035 (TYPES_BSL_P): Likewise.
3036 (TYPES_BSL_S): Likewise.
3037 (TYPES_BSL_U): Likewise.
3038 (BUILTIN_VALLDIF): Likewise.
3039 (BUILTIN_VDQQH): Likewise.
3040 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
3041 * config/aarch64/aarch64-simd.md
3042 (aarch64_simd_bsl<mode>_internal): Handle more modes.
3043 (aarch64_simd_bsl<mode>): Likewise.
3044 * config/aarch64/arm_neon.h
3045 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
3046 * config/aarch64/iterators.md (VALLDIF): New.
3047 (Vbtype): Handle more modes.
3049 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3051 * config/aarch64/aarch64-builtins.c
3052 (aarch64_type_qualifiers): Add qualifier_poly.
3053 (aarch64_build_scalar_type): Also build Poly types.
3054 (aarch64_build_vector_type): Likewise.
3055 (aarch64_build_type): Likewise.
3056 (aarch64_build_signed_type): New.
3057 (aarch64_build_unsigned_type): Likewise.
3058 (aarch64_build_poly_type): Likewise.
3059 (aarch64_init_simd_builtins): Also handle Poly types.
3061 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
3063 * config/aarch64/aarch64-builtins.c
3064 (VAR1): Use new naming scheme for aarch64_builtins.
3065 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
3067 2013-11-26 Richard Biener <rguenther@suse.de>
3069 PR tree-optimization/59287
3070 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3071 Remove no longer necessary special-casing of union accesses.
3073 2013-11-26 Richard Biener <rguenther@suse.de>
3075 * pretty-print.c (output_buffer::~output_buffer): Really
3078 2013-11-25 Jeff Law <law@redhat.com>
3080 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
3081 invalidate loop information.
3083 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3085 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
3087 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
3091 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
3093 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
3094 previously visited basic blocks before recursing instead of only one
3097 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3099 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
3100 * config/aarch64/aarch64-cores.def (cortex-a53):
3101 Use cortexa53 tuning struct.
3103 2013-11-25 Andrew Macleod <amacleod@redhat.com>
3106 * fold-const.c: Include hash-table.h.
3108 2013-11-25 Marek Polacek <polacek@redhat.com>
3111 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
3113 2013-11-25 Richard Biener <rguenther@suse.de>
3115 * tree-dfa.c: Remove unused convert.h include.
3117 2013-11-25 Terry Guo <terry.guo@arm.com>
3119 * doc/invoke.texi (-mslow-flash-data): Document new option.
3120 * config/arm/arm.opt (mslow-flash-data): New option.
3121 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
3123 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
3125 (arm_disable_literal_pool): Declare it.
3126 * config/arm/arm.c (arm_disable_literal_pool): New variable.
3127 (arm_option_override): Handle new option.
3128 (thumb2_legitimate_address_p): Don't allow symbol references when
3129 literal pools are disabled.
3130 (arm_max_const_double_inline_cost): New function.
3131 * config/arm/arm.md (types.md): Include it before ...
3132 (use_literal_pool): New attribute.
3133 (enabled): Use new attribute.
3134 (split pattern): Replace symbol+offset with MOVW/MOVT.
3136 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3139 Revert previous commit.
3141 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
3143 * jump.c (reset_insn_reg_label_operand_notes): New function,
3145 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
3146 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
3148 (delete_dead_jumptables): ... here. Handle cfglayout mode.
3149 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
3150 expensive CFG cleanup is called for.
3151 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
3152 (cfg_layout_finalize): Delete dead jump tables before re-building
3154 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
3155 basic blocks, not before.
3156 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
3158 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
3159 insns chain of a scheduling extended basic block, they cannot appear
3160 there in cfglayout mode.
3162 2013-11-24 Tobias Burnus <burnus@net-b.de>
3164 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
3166 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3168 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
3171 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
3173 * graphite-sese-to-poly.c: Don't include extra "expr.h".
3175 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3177 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
3179 2013-11-23 David Edelson <dje.gcc@gmail.com>
3180 Andrew Dixie <andrewd@gentrack.com>
3183 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
3184 (COLLECT_SHARED_FINI_FUNC): Define.
3186 * collect2.c (aix_shared_initname): Declare.
3187 (aix_shared_fininame): Declare.
3188 (symkind): Add SYM_AIXI and SYM_AIXD.
3189 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
3190 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
3191 (aixlazy_flag): Parse.
3192 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
3193 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
3195 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
3197 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
3198 (rs6000_xcoff_select_section): Place decls with stricter alignment
3199 into named sections.
3200 (rs6000_xcoff_unique_section): Allow unique sections for
3201 uninitialized data with strict alignment.
3203 2013-11-23 Jakub Jelinek <jakub@redhat.com>
3205 PR tree-optimization/59154
3206 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
3207 rhs1 of a cast and new_op is invariant, fold_convert it.
3208 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
3209 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
3211 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3214 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3215 Declare as MULTI_ARG_1_SF instruction.
3216 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3217 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3218 from *xop_vmfrcz_<mode>.
3219 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3220 to merge scalar result with __A.
3221 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3224 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3226 * gimplify.h (recalculate_side_effects): Delete.
3227 * gimplify.c (recalculate_side_effects): Make static and add comment.
3229 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3231 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3232 for the destination of a define_peephole2. Likewise register_operand
3233 rather than arith_reg_operand. Remove constraints from
3236 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3238 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3240 (mn10300_store_multiple_operation_p): Declare.
3241 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3243 (mn10300_store_multiple_operation_p): ...this and remove mode
3245 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3248 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3250 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3251 (pop_multiple_operation): Delete.
3252 (analyze_push_multiple_operation): Declare.
3253 (analyze_pop_multiple_operation): Declare.
3254 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3255 (analyze_push_multiple_operation): ...this and remove mode argument.
3256 (pop_multiple_operation): Rename to...
3257 (analyze_pop_multiple_operation): ...this and remove mode argument.
3258 * config/bfin/predicates.md (push_multiple_operation): Define.
3259 (pop_multiple_operation): Likewise.
3261 2013-11-23 Alan Modra <amodra@gmail.com>
3263 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3265 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3268 * common.opt (static-liblsan): Add.
3269 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3271 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
3272 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
3274 * opts.c (common_handle_option): Handle -fsanitize=leak.
3275 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
3276 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
3277 (LIBUBSAN_EARLY_SPEC): Remove.
3278 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
3279 (SANITIZER_SPEC): Add -fsanitize=leak handling.
3280 (sanitize_spec_function): Handle %sanitize(leak).
3281 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
3283 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
3284 Jakub Jelinek <jakub@redhat.com>
3286 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
3287 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
3288 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
3289 (ipa_modify_formal_parameters): Adjust caller. Remove
3290 synth_parm_prefix argument. Use operator enum instead of bit fields.
3291 Add assert for properly handling vector of references. Handle
3292 creating brand new parameters.
3293 (ipa_modify_call_arguments): Use operator enum instead of bit
3295 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
3297 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
3299 (ipa_dump_param_adjustments): Rename reduction to new_decl.
3300 Use operator enum instead of bit fields.
3301 * ipa-prop.h (enum ipa_parm_op): New.
3302 (struct ipa_parm_adjustment): New field op. Rename reduction
3303 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
3305 (ipa_modify_formal_parameters): Remove last argument.
3306 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
3307 ipa_get_adjustment_candidate): New prototypes.
3308 * tree-sra.c (turn_representatives_into_adjustments): Use operator
3309 enum. Set arg_prefix.
3310 (get_adjustment_for_base): Use operator enum.
3311 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
3313 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
3314 (ipa_sra_modify_function_body): Same. No longer static.
3315 (sra_ipa_reset_debug_stmts): Use operator enum.
3316 (modify_function): Do not pass prefix argument.
3318 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3320 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
3321 (ubsan_pass): Ignore clobber stmts.
3323 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
3324 * opts.c (common_handle_option): Add -fsanitize=return.
3325 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
3326 or it into SANITIZE_UNDEFINED.
3328 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
3329 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
3330 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
3331 Don't instrument accesses to VAR_DECLs which are known to fit
3332 into their bounds and the vars are known to have shadow bytes
3333 indicating allowed access.
3334 (asan_dynamic_init_call): New function.
3335 (asan_add_global): If vnode->dynamically_initialized,
3336 set __has_dynamic_init to 1 instead of 0.
3337 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
3338 * asan.h (asan_dynamic_init_call): New prototype.
3339 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
3341 2013-11-22 Martin Jambor <mjambor@suse.cz>
3343 PR rtl-optimization/10474
3344 * ira.c (interesting_dest_for_shprep_1): New function.
3345 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
3346 also check parallels.
3348 2013-11-22 Jeff Law <law@redhat.com>
3350 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
3351 NULL for RHS, which we used to invalidate equivalences.
3352 (record_temporary_equivalences_from_phis): New bitmap arguments
3353 and a boolean indicating if we have passed a backedge. If we
3354 have passed a backedge, then set the appropriate bit in the
3355 bitmaps for the SRC & DEST of PHIs creating equivalences.
3356 (invalidate_equivalences, dummy_simplify): New functions.
3357 (cond_arg_set_in_b): Remove.
3358 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
3359 arguments and a boolean indicating if we have passed a backedge.
3360 If we have passed a backedge, then perform invalidations as needed.
3361 (thread_around_empty_blocks): If we have seen a backedge, then
3362 use the dummy simplify routine.
3363 (thread_through_normal_block): Likewise. Pass bitmaps and
3364 backedge status to children. Do not pessimize so much when
3365 traversing backedges in the CFG.
3366 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
3367 If we have seen a backedge, then use the dummy simplify routine.
3368 Do not pessimize so much when traversing backedges.
3370 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
3372 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
3373 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3375 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
3377 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
3378 PTA_PCLMUL and PTA_RDRND for Silvermont.
3379 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
3382 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
3384 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3386 * hooks.h (hook_uint_mode_0): Add Prototype.
3387 * hooks.c (hook_uint_mode_0): New default function.
3388 * target.def (atomic_align_for_mode): New target hook.
3389 * tree.c (build_atomic_base): Add alignment override parameter.
3390 (build_common_tree_nodes): Use atomic alignment override.
3391 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3392 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
3394 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3396 * gimple.h: Remove all includes.
3397 (recalculate_side_effects): Move prototype to gimplify.h.
3398 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
3399 * gengtype.c (open_base_files): Add gimple.h include list.
3400 * gimplify.h (recalculate_side_effects): Relocate prototype here.
3401 * gimple.c: Adjust include list.
3402 (recalculate_side_effects): Move to gimplify.c.
3403 * gimplify.c: Adjust include list.
3404 (recalculate_side_effects): Relocate from gimple.c.
3405 * alias.c: Add required include files removed from gimple.h.
3407 * builtins.c: Likewise.
3408 * calls.c: Likewise.
3409 * cfgexpand.c: Likewise.
3410 * cfgloop.c: Likewise.
3411 * cfgloopmanip.c: Likewise.
3412 * cgraphbuild.c: Likewise.
3413 * cgraph.c: Likewise.
3414 * cgraphclones.c: Likewise.
3415 * cgraphunit.c: Likewise.
3416 * cilk-common.c: Likewise.
3417 * data-streamer.c: Likewise.
3418 * data-streamer-in.c: Likewise.
3419 * data-streamer-out.c: Likewise.
3421 * dwarf2out.c: Likewise.
3422 * emit-rtl.c: Likewise.
3423 * except.c: Likewise.
3425 * fold-const.c: Likewise.
3426 * function.c: Likewise.
3427 * gimple-builder.c: Likewise.
3428 * gimple-expr.c: Likewise.
3429 * gimple-fold.c: Likewise.
3430 * gimple-iterator.c: Likewise.
3431 * gimple-low.c: Likewise.
3432 * gimple-pretty-print.c: Likewise.
3433 * gimple-ssa-isolate-paths.c: Likewise.
3434 * gimple-ssa-strength-reduction.c: Likewise.
3435 * gimple-streamer-in.c: Likewise.
3436 * gimple-streamer-out.c: Likewise.
3437 * gimple-walk.c: Likewise.
3438 * gimplify-me.c: Likewise.
3439 * graphite-blocking.c: Likewise.
3440 * graphite.c: Likewise.
3441 * graphite-clast-to-gimple.c: Likewise.
3442 * graphite-dependences.c: Likewise.
3443 * graphite-interchange.c: Likewise.
3444 * graphite-optimize-isl.c: Likewise.
3445 * graphite-poly.c: Likewise.
3446 * graphite-scop-detection.c: Likewise.
3447 * graphite-sese-to-poly.c: Likewise.
3448 * internal-fn.c: Likewise.
3450 * ipa-cp.c: Likewise.
3451 * ipa-devirt.c: Likewise.
3452 * ipa-inline-analysis.c: Likewise.
3453 * ipa-inline.c: Likewise.
3454 * ipa-profile.c: Likewise.
3455 * ipa-prop.c: Likewise.
3456 * ipa-pure-const.c: Likewise.
3457 * ipa-reference.c: Likewise.
3458 * ipa-split.c: Likewise.
3459 * ipa-utils.c: Likewise.
3460 * langhooks.c: Likewise.
3461 * lto-cgraph.c: Likewise.
3462 * lto-compress.c: Likewise.
3463 * lto-opts.c: Likewise.
3464 * lto-section-in.c: Likewise.
3465 * lto-section-out.c: Likewise.
3466 * lto-streamer.c: Likewise.
3467 * lto-streamer-in.c: Likewise.
3468 * lto-streamer-out.c: Likewise.
3469 * omp-low.c: Likewise.
3470 * opts-global.c: Likewise.
3471 * passes.c: Likewise.
3472 * predict.c: Likewise.
3473 * profile.c: Likewise.
3476 * stor-layout.c: Likewise.
3477 * symtab.c: Likewise.
3478 * targhooks.c: Likewise.
3479 * toplev.c: Likewise.
3480 * tracer.c: Likewise.
3481 * trans-mem.c: Likewise.
3482 * tree-affine.c: Likewise.
3484 * tree-call-cdce.c: Likewise.
3485 * tree-cfg.c: Likewise.
3486 * tree-cfgcleanup.c: Likewise.
3487 * tree-chrec.c: Likewise.
3488 * tree-complex.c: Likewise.
3489 * tree-data-ref.c: Likewise.
3490 * tree-dfa.c: Likewise.
3491 * tree-eh.c: Likewise.
3492 * tree-emutls.c: Likewise.
3493 * tree-if-conv.c: Likewise.
3494 * tree-inline.c: Likewise.
3495 * tree-into-ssa.c: Likewise.
3496 * tree-loop-distribution.c: Likewise.
3497 * tree-nested.c: Likewise.
3498 * tree-nrv.c: Likewise.
3499 * tree-object-size.c: Likewise.
3500 * tree-outof-ssa.c: Likewise.
3501 * tree-parloops.c: Likewise.
3502 * tree-phinodes.c: Likewise.
3503 * tree-predcom.c: Likewise.
3504 * tree-pretty-print.c: Likewise.
3505 * tree-profile.c: Likewise.
3506 * tree-scalar-evolution.c: Likewise.
3507 * tree-sra.c: Likewise.
3508 * tree-ssa-address.c: Likewise.
3509 * tree-ssa-alias.c: Likewise.
3510 * tree-ssa.c: Likewise.
3511 * tree-ssa-ccp.c: Likewise.
3512 * tree-ssa-coalesce.c: Likewise.
3513 * tree-ssa-copy.c: Likewise.
3514 * tree-ssa-copyrename.c: Likewise.
3515 * tree-ssa-dce.c: Likewise.
3516 * tree-ssa-dom.c: Likewise.
3517 * tree-ssa-dse.c: Likewise.
3518 * tree-ssa-forwprop.c: Likewise.
3519 * tree-ssa-ifcombine.c: Likewise.
3520 * tree-ssa-live.c: Likewise.
3521 * tree-ssa-loop.c: Likewise.
3522 * tree-ssa-loop-ch.c: Likewise.
3523 * tree-ssa-loop-im.c: Likewise.
3524 * tree-ssa-loop-ivcanon.c: Likewise.
3525 * tree-ssa-loop-ivopts.c: Likewise.
3526 * tree-ssa-loop-manip.c: Likewise.
3527 * tree-ssa-loop-niter.c: Likewise.
3528 * tree-ssa-loop-prefetch.c: Likewise.
3529 * tree-ssa-loop-unswitch.c: Likewise.
3530 * tree-ssa-math-opts.c: Likewise.
3531 * tree-ssanames.c: Likewise.
3532 * tree-ssa-operands.c: Likewise.
3533 * tree-ssa-phiopt.c: Likewise.
3534 * tree-ssa-phiprop.c: Likewise.
3535 * tree-ssa-pre.c: Likewise.
3536 * tree-ssa-propagate.c: Likewise.
3537 * tree-ssa-reassoc.c: Likewise.
3538 * tree-ssa-sccvn.c: Likewise.
3539 * tree-ssa-sink.c: Likewise.
3540 * tree-ssa-strlen.c: Likewise.
3541 * tree-ssa-structalias.c: Likewise.
3542 * tree-ssa-tail-merge.c: Likewise.
3543 * tree-ssa-ter.c: Likewise.
3544 * tree-ssa-threadedge.c: Likewise.
3545 * tree-ssa-threadupdate.c: Likewise.
3546 * tree-ssa-uncprop.c: Likewise.
3547 * tree-ssa-uninit.c: Likewise.
3548 * tree-stdarg.c: Likewise.
3549 * tree-streamer.c: Likewise.
3550 * tree-streamer-in.c: Likewise.
3551 * tree-streamer-out.c: Likewise.
3552 * tree-switch-conversion.c: Likewise.
3553 * tree-tailcall.c: Likewise.
3554 * tree-vect-data-refs.c: Likewise.
3555 * tree-vect-generic.c: Likewise.
3556 * tree-vect-loop.c: Likewise.
3557 * tree-vect-loop-manip.c: Likewise.
3558 * tree-vectorizer.c: Likewise.
3559 * tree-vect-patterns.c: Likewise.
3560 * tree-vect-slp.c: Likewise.
3561 * tree-vect-stmts.c: Likewise.
3562 * tree-vrp.c: Likewise.
3564 * ubsan.c: Likewise.
3565 * value-prof.c: Likewise.
3566 * varpool.c: Likewise.
3567 * var-tracking.c: Likewise.
3568 * vtable-verify.c: Likewise.
3569 * config/darwin.c: Likewise.
3570 * config/aarch64/aarch64-builtins.c: Likewise.
3571 * config/aarch64/aarch64.c: Likewise.
3572 * config/alpha/alpha.c: Likewise.
3573 * config/i386/i386.c: Likewise.
3574 * config/i386/winnt.c: Likewise.
3575 * config/ia64/ia64.c: Likewise.
3576 * config/m32c/m32c.c: Likewise.
3577 * config/mep/mep.c: Likewise.
3578 * config/mips/mips.c: Likewise.
3579 * config/rs6000/rs6000.c: Likewise.
3580 * config/s390/s390.c: Likewise.
3581 * config/sh/sh.c: Likewise.
3582 * config/sparc/sparc.c: Likewise.
3583 * config/spu/spu.c: Likewise.
3584 * config/stormy16/stormy16.c: Likewise.
3585 * config/tilegx/tilegx.c: Likewise.
3586 * config/tilepro/tilepro.c: Likewise.
3587 * config/xtensa/xtensa.c: Likewise.
3589 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
3592 * arm.md (negdi_extendsidi): Fix invalid split.
3594 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
3596 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
3597 (vmov_n_f64): Likewise.
3598 (vmov_n_p8): Likewise.
3599 (vmov_n_p16): Likewise.
3600 (vmov_n_s8): Likewise.
3601 (vmov_n_s16): Likewise.
3602 (vmov_n_s32): Likewise.
3603 (vmov_n_s64): Likewise.
3604 (vmov_n_u8): Likewise.
3605 (vmov_n_u16): Likewise.
3606 (vmov_n_u32): Likewise.
3607 (vmov_n_u64): Likewise.
3608 (vmovq_n_f32): Likewise.
3609 (vmovq_n_f64): Likewise.
3610 (vmovq_n_p8): Likewise.
3611 (vmovq_n_p16): Likewise.
3612 (vmovq_n_s8): Likewise.
3613 (vmovq_n_s16): Likewise.
3614 (vmovq_n_s32): Likewise.
3615 (vmovq_n_s64): Likewise.
3616 (vmovq_n_u8): Likewise.
3617 (vmovq_n_u16): Likewise.
3618 (vmovq_n_u32): Likewise.
3619 (vmovq_n_u64): Likewise.
3621 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3623 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3624 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
3625 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
3626 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
3627 and also change to float UNSPEC.
3628 (reduc_maxmin_uns>_<mode>): Remove V2DI.
3629 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
3630 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
3631 result access for big-endian.
3632 (__LANE0): New macro used to fix up lane access of 'across-lanes'
3633 intrinsics for big-endian.
3634 * config/aarch64/iterators.md (VDQV): Add V2DI.
3636 (vp): New mode attribute.
3638 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3640 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3641 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
3644 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3646 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
3647 for big-endian element order.
3648 (aarch64_simd_vec_setv2di): Likewise.
3649 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
3650 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
3651 (vec_extract): Expand using aarch64_get_lane.
3652 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
3654 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3656 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
3657 and stores to be ABI compliant.
3659 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3661 * input.h (input_line): Remove.
3662 (input_filename): Likewise.
3663 (in_system_header): Likewise.
3664 * tree.h (EXPR_LOC_OR_HERE): Remove.
3665 * config/bfin/bfin.c (output_file_start): Remove use of
3666 input_filename macro.
3667 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
3668 * gimplify.c (internal_get_tmp_var): Likewise.
3669 EXPR_LOC_OR_HERE macro.
3670 (shortcut_cond_expr): Likewise.
3671 * tree-diagnostic.c (diagnostic_report_current_function): Remove
3672 use of input_filename macro.
3673 * tree.c (get_file_function_name): Likewise.
3675 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3677 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
3679 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3681 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
3682 (same sized) elements even if the type of the CONSTRUCTOR has
3683 vector mode and target is a REG.
3685 2013-11-22 Richard Biener <rguenther@suse.de>
3688 2013-11-21 Richard Biener <rguenther@suse.de>
3690 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3691 nb_iterations_upper_bound by one.
3693 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
3695 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
3698 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
3699 core-avx-i, core-avx2 and slm.
3701 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
3703 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
3705 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
3707 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
3708 (stzx_24_<mode>): Likewise mra_operand.
3710 2013-11-22 Jeff Law <law@redhat.com>
3712 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
3713 (thread_block_1): Do not cancel jump threads which go from
3714 inside a loop, through the header, then back inside the loop.
3715 (bb_ends_with_multiway_branch): New function.
3716 (thread_through_all_blocks): Handle threading cases which start
3717 in a loop through the loop header to a point in the loop.
3719 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
3720 jump thread path properly.
3722 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
3724 * vec.h (auto_vec): New class.
3725 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
3726 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
3727 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
3728 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
3729 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
3730 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
3731 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3732 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
3733 appropriate instead of vec for local variables.
3735 2013-11-21 Teresa Johnson <tejohnson@google.com>
3738 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
3739 not understood by old_insns_match_p.
3741 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
3743 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
3744 little endian change.
3745 (vec_pack_sfix_trunc_v2df): Likewise.
3746 (vec_pack_ufix_trunc_v2df): Likewise.
3747 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
3748 double checking of endianness.
3750 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3752 * tree-vect-generic.c (optimize_vector_constructor): New function.
3753 (expand_vector_operations_1): Call it.
3755 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
3757 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
3758 ix86_zero_extend_to_Pmode where appropriate.
3759 (ix86_expand_builtin): Ditto.
3761 2013-11-21 Cary Coutant <ccoutant@google.com>
3763 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
3764 (add_linkage_name): Don't add linkage name for -g1.
3765 (decls_for_scope): Process subblocks for -g1.
3766 (dwarf2out_source_line): Output line tables for -g1.
3767 (dwarf2out_finish): Likewise.
3768 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
3769 unused scopes for -g1.
3770 * opts.c (common_handle_option): Handle -g same as -g2.
3771 * doc/invoke.texi: Update description for -g1.
3773 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
3775 * doc/extend.texi: Document htm builtins.
3777 2013-11-21 Jeff Law <law@redhat.com>
3779 PR tree-optimization/59221
3780 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
3781 temporary equivalences when threading through joiner blocks.
3783 2013-11-21 Joseph Myers <joseph@codesourcery.com>
3785 PR rtl-optimization/55950
3786 * real.c (real_sqrt): Remove function.
3787 * real.h (real_sqrt): Remove prototype.
3788 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
3789 SQRT using real_sqrt.
3791 2013-11-21 Richard Biener <rguenther@suse.de>
3793 PR tree-optimization/59058
3794 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
3795 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
3796 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
3797 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
3798 (NITERS_KNOWN_P): Fold into ...
3799 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
3800 (LOOP_VINFO_PEELING_FOR_NITER): Add.
3801 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3802 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3803 (vect_do_peeling_for_alignment): Re-use precomputed niter
3804 instead of re-emitting it.
3805 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3806 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3807 * tree-vect-loop.c (vect_get_loop_niters): Use
3808 number_of_latch_executions.
3809 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
3810 (vect_analyze_loop_form): Simplify.
3811 (vect_analyze_loop_operations): Move epilogue peeling code ...
3812 (vect_analyze_loop_2): ... here and adjust it to compute
3813 LOOP_VINFO_PEELING_FOR_NITER.
3814 (vect_estimate_min_profitable_iters): Use
3815 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3816 (vect_build_loop_niters): Emit on the preheader.
3817 (vect_generate_tmps_on_preheader): Likewise.
3818 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
3819 of recomputing it. Adjust.
3821 2013-11-21 Richard Biener <rguenther@suse.de>
3823 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3824 LOC_LINE): Remove wrappers and fix all users.
3825 (struct _loop_vec_info): Remove loop_line_number member.
3826 (LOOP_VINFO_LOC): Remove.
3827 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
3828 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
3831 2013-11-21 Richard Biener <rguenther@suse.de>
3833 * tree-ssa-forwprop.c (simplify_vce): New function.
3834 (ssa_forward_propagate_and_combine): Call it.
3836 2013-11-21 Richard Biener <rguenther@suse.de>
3838 * tree-vect-loop-manip.c (vect_build_loop_niters,
3839 vect_generate_tmps_on_preheader): Move ...
3840 * tree-vect-loop.c (vect_build_loop_niters,
3841 vect_generate_tmps_on_preheader): ... here and simplify.
3842 (vect_transform_loop): Call them here and pass down results
3844 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
3845 Get niter variables from caller.
3846 (vect_do_peeling_for_alignment): Likewise.
3847 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
3848 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
3851 2013-11-21 Richard Biener <rguenther@suse.de>
3853 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3854 nb_iterations_upper_bound by one.
3856 2013-11-21 Richard Biener <rguenther@suse.de>
3858 PR tree-optimization/59058
3859 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
3860 (build_size_arg_loc): Apply niter adjustment here.
3861 (generate_memset_builtin): Adjust.
3862 (generate_memcpy_builtin): Likewise.
3863 (classify_partition): Do not use number_of_exit_cond_executions
3864 but record whether niter needs to be adjusted.
3866 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
3868 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
3871 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
3874 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
3875 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
3876 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
3877 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
3878 sh_optimize_sett_clrt pass.o to extra_objs.
3880 2013-11-20 David Malcolm <dmalcolm@redhat.com>
3882 * cfg.c (dump_edge_info): Remove redundant comment.
3883 * cfgcleanup.c (outgoing_edges_match): Reword reference to
3884 EXIT_BLOCK_PTR in comment.
3885 (try_optimize_cfg): Likewise.
3886 * cfgrtl.c (last_bb_in_partition): Likewise.
3887 * cgraph.c (cgraph_node_cannot_return): Likewise.
3888 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3889 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
3890 * ipa-split.c (consider_split): Likewise.
3891 * profile.c (find_spanning_tree): Likewise.
3892 * sched-int.h (common_sched_info_def.add_block): Likewise.
3893 * dominance.c (calc_dfs_tree_nonrec): Reword references in
3894 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
3895 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
3896 in comments to now removed ENTRY_BLOCK_PTR macro.
3897 (tree_forwarder_block_p): Reword reference in comment to
3899 * tree-inline.c (copy_cfg_body): Reword references in comments to
3900 now removed ENTRY_BLOCK_PTR macro.
3901 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3902 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
3903 a comma to the comment to clarify the meaning.
3905 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
3907 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
3909 (free_gimplify_stack): Add prototype.
3910 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
3911 (struct gimplify_ctx): Relocate here.
3912 (gimplify_ctxp): Make static.
3913 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
3914 list of struct gimplify_ctx.
3915 (push_gimplify_context): Add default parameters and allocate a struct
3917 (pop_gimplify_context): Free a struct back to the pool.
3918 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
3919 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
3920 use a local 'struct gimplify_ctx'.
3921 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
3922 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
3924 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
3925 lower_omp_ordered, lower_omp_critical, lower_omp_for,
3926 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
3927 lower_omp_teams, execute_lower_omp): Likewise.
3928 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
3929 * tree-inline.c (optimize_inline_calls): Likewise.
3931 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3933 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
3934 (vsx_extract_<mode>): Likewise.
3935 (*vsx_extract_<mode>_one_le): New LE variant on
3936 *vsx_extract_<mode>_zero.
3937 (vsx_extract_v4sf): Adjust for little endian.
3939 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
3941 PR rtl-optimization/59133
3942 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
3944 (lra_create_new_reg_with_unique_value): Pass new argument value.
3945 (lra_emit_add, lra_emit_move): Ditto.
3946 * lra-constraints.c (in_class_p): Add check for move for a new insn.
3947 (change_class): Rename to lra_change_class. Move to lra-int.h.
3948 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
3950 (process_addr_reg, process_addr): Ditto.
3951 (curr_insn_transform): Ditto. Add check on old pseudo for
3953 * lra-int.h (lra_get_regno_hard_regno): Move below.
3954 (lra_change_class): Renamed change_class from lra.c.
3956 2013-11-20 David Malcolm <dmalcolm@redhat.com>
3958 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
3959 the children of a NULL pointer.
3961 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3963 * lra.c (lra): Set lra_in_progress before check_rtl call.
3964 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3965 adding clobber regs when LRA is running.
3967 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
3969 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
3970 restriction for ISA_MIPS32R2.
3971 (ISA_HAS_LXC1_SXC1): New macro.
3972 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
3973 (ISA_HAS_NMADD4_NMSUB4): Likewise.
3974 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
3975 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
3976 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
3977 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
3978 (*<ANYF:storex>_<P:mode>): Likewise.
3980 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
3982 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
3983 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
3984 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
3985 * config/mips/mips.md (recip_condition): Remove mode attribute.
3986 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
3988 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
3990 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
3993 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
3994 Make sure neg2_ovf is set before being used.
3996 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
3998 * plugin.def: Add comment about register_callback and
3999 invoke_plugin_callbacks_full.
4001 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4002 Handle PLUGIN_INCLUDE_FILE event.
4004 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4006 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4007 allow subregs of TDmode in FPRs of smaller size in little-endian.
4008 (rs6000_split_multireg_move): When splitting an access to TDmode
4009 in FPRs, do not use simplify_gen_subreg.
4011 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4014 * real.c: Remove comment about decimal string conversion and
4016 (real_from_string): Use MPFR to convert nonzero decimal constant
4019 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4021 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
4022 endianness of the D registers for the legacy encodings.
4024 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
4026 PR rtl-optimization/54300
4027 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
4028 outputs in a single-set are killed from the value chains.
4030 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4032 * cgraph.h (varpool_node): Add need_bounds_init field.
4033 * lto-cgraph.c (lto_output_varpool_node): Output
4034 need_bounds_init value.
4035 (input_varpool_node): Read need_bounds_init value.
4036 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4038 2013-11-20 Jan Hubicka <jh@suse.cz>
4040 * opts.c (finish_options): Imply -ffat-lto-objects with
4041 -fno-use-linker-plugin.
4042 * common.opt (fuse-linker-plugin): Add var.
4044 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
4046 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4047 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4048 (gen_type_die_with_usage): Skip pointer bounds.
4049 (dwarf2out_global_decl): Likewise.
4051 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4053 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
4056 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
4059 * config/i386/i386.c (ix86_option_override_internal): Add missed
4060 argument prefix for 'ix86_fpmath'.
4061 * config/i386/ssemath.h: Add missed definition of
4062 TARGET_FPMATH_DEFAULT_P macros.
4064 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4065 Mike Stump <mikestump@comcast.net>
4066 Richard Sandiford <rdsandiford@googlemail.com>
4068 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
4069 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4070 tree_fits_shwi_p or tree_fits_uhwi_p.
4071 * builtins.c (fold_builtin_powi): Likewise.
4072 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
4074 * dbxout.c (dbxout_symbol): Likewise.
4075 * expr.c (expand_expr_real_1): Likewise.
4076 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
4077 (fold_binary_loc): Likewise.
4078 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
4079 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
4080 * omp-low.c (lower_omp_for_lastprivate): Likewise.
4081 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4082 * stor-layout.c (compute_record_mode): Likewise.
4083 * tree-cfg.c (verify_expr): Likewise.
4084 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4085 * tree-pretty-print.c (dump_array_domain): Likewise.
4086 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
4087 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4088 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
4089 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4090 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4091 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
4092 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4093 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
4094 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
4095 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
4096 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
4097 (create_variable_info_for_1): Likewise.
4098 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4099 (vect_verify_datarefs_alignment): Likewise.
4100 (vect_analyze_data_ref_accesses): Likewise.
4101 (vect_prune_runtime_alias_test_list): Likewise.
4102 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
4104 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4106 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
4107 overflow. Use tree_to_shwi.
4109 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
4111 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
4112 HOST_WIDE_INTs when folding (x >> c) << c.
4114 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4115 Dominik Vogt <vogt@linux.vnet.ibm.com>
4117 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
4118 int comparisons with an out of range condition code.
4119 (s390_optimize_nonescaping_tx): Skip empty BBs.
4120 Generate the new tbegin RTX when removing the FPR clobbers (with
4122 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
4123 result before doing the retry calculations.
4124 (s390_init_builtins): Make tbegin "returns_twice" and tabort
4126 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
4127 the TDB setting part of an tbegin.
4128 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
4129 ("tx_assist"): Set unused argument to an immediate zero instead of
4130 loading zero into a GPR and pass it as argument.
4131 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
4132 Remove inline and related attributes.
4133 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
4134 (__TM_is_illegal, __TM_is_footprint_exceeded)
4135 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
4137 2013-11-20 Richard Biener <rguenther@suse.de>
4140 * lto-opts.c (lto_write_options): Write defaults only if
4141 they were not explicitely specified. Also write
4142 -ffp-contract default.
4143 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
4145 (run_gcc): Pass through -ffp-contract.
4147 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4149 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
4151 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
4153 * config/aarch64/aarch64-builtins.c
4154 (aarch64_simd_itype): Remove.
4155 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
4156 (VAR1): Use qualifiers.
4157 (aarch64_build_scalar_type): New.
4158 (aarch64_build_vector_type): Likewise.
4159 (aarch64_build_type): Likewise.
4160 (aarch64_init_simd_builtins): Refactor, remove special cases,
4161 consolidate main loop.
4162 (aarch64_simd_expand_args): Likewise.
4164 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4167 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
4169 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
4171 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
4173 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4175 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
4176 to "vec<>" instances.
4177 (build_pretty_printer): Register the vec<>* prettyprinter.
4179 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4181 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
4182 (GdbSubprinter.handles_type): New.
4183 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
4184 (GdbSubprinterRegex): New subclass of GdbSubprinter.
4185 (GdbPrettyPrinters.add_printer): Remove in favor of...
4186 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
4187 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
4188 (GdbPrettyPrinters.__call__): Update search for subprinter
4189 to use handles_type method.
4190 (build_pretty_printer): Update registration of subprinters to
4191 use the new API above, supporting multiple spelling of each type,
4192 and allowing for future regex-based subprinters.
4194 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4196 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
4197 V16QI vector splat case for little endian.
4199 2013-11-19 Jeff Law <law@redhat.com>
4201 * tree-ssa-threadedge.c (thread_across_edge): After threading
4202 through a joiner, allow threading a normal block requiring duplication.
4204 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
4205 jump threading requests that would muck up the loop structures.
4207 * tree-ssa-threadupdate.c: Fix trailing whitespace.
4208 * tree-ssa-threadupdate.h: Likewise.
4210 2013-11-19 Mike Stump <mikestump@comcast.net>
4212 * gdbinit.in: Add pmz to print out mpz values.
4214 2013-11-20 Jan Hubicka <jh@suse.cz>
4216 * common.opt (ffat-lto-objects): Disable by default.
4217 * doc/invoke.texi (fat-lto-objects): Update documentation.
4218 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4220 2013-11-19 Martin Jambor <mjambor@suse.cz>
4222 PR rtl-optimization/59099
4223 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4225 (ira): Move init_reg_equiv and call to
4226 split_live_ranges_for_shrink_wrap up, remove analyses around call
4227 to find_moveable_pseudos.
4229 2013-11-20 Alan Modra <amodra@gmail.com>
4231 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4232 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4233 to strict alignment on older processors when little-endian.
4234 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4237 2013-11-19 Teresa Johnson <tejohnson@google.com>
4239 * common/config/i386/i386-common.c: Enable
4240 -freorder-blocks-and-partition at -O2 and up for x86.
4241 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4242 * opts.c (finish_options): Only warn if
4243 -freorder-blocks-and-partition was set on command line.
4245 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4247 * final.c (final_scan_insn): Emit a label for the split
4248 cold function part. Label name is formed by suffixing
4249 the original function name with "cold".
4251 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4253 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4254 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4255 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4256 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4257 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4259 (EXIT_BLOCK_PTR): Likewise.
4260 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4261 (FOR_ALL_BB_FN): Update for renaming of
4262 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4264 * cfg.c (init_flow): Likewise.
4265 (check_bb_profile): Likewise.
4266 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4267 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4268 * cfghooks.c (account_profile_record): Likewise.
4269 * cfgloop.c (init_loops_structure): Likewise.
4270 * cgraphbuild.c (record_eh_tables): Likewise.
4271 (compute_call_stmt_bb_frequency): Likewise.
4272 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
4273 * lto-streamer-in.c (input_cfg): Likewise.
4274 * predict.c (maybe_hot_frequency_p): Likewise.
4275 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4276 * tree-inline.c (initialize_cfun): Likewise.
4277 (copy_cfg_body): Likewise.
4278 (copy_body): Likewise.
4279 (tree_function_versioning): Likewise.
4281 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
4282 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4283 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
4284 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
4285 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4286 (connect_traces): Likewise.
4287 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4288 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
4289 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
4291 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
4293 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
4294 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
4295 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
4296 (rotate_loop): Likewise.
4297 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
4298 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4300 (alloc_aux_for_edges): Likewise.
4301 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
4302 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4304 (compact_blocks): Likewise.
4305 (clear_edges): Likewise.
4306 * cfganal.c (single_pred_before_succ_order): Remove usage of
4307 ENTRY_BLOCK_PTR macro.
4308 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4309 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4310 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4311 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4312 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4314 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
4315 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4317 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
4318 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4319 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4320 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4321 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4322 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
4324 (print_edge_list): Likewise.
4325 (create_edge_list): Likewise.
4326 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4327 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4329 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
4331 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4332 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4333 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
4334 (try_optimize_cfg): Likewise.
4335 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
4336 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
4337 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
4338 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
4339 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
4340 (try_forward_edges): Likewise.
4341 (try_simplify_condjump): Likewise.
4342 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
4343 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4344 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
4345 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
4347 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
4348 (expand_gimple_tailcall): Likewise.
4349 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
4350 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4351 (tidy_fallthru_edges): Likewise.
4352 (verify_flow_info): Likewise.
4353 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
4354 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
4355 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
4356 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4357 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
4358 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
4359 (get_loop_body_in_dom_order): Likewise.
4360 (get_loop_body): Likewise.
4361 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
4362 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4363 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
4365 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
4366 (fix_bb_placement): Likewise.
4367 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
4368 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4369 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
4370 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4372 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4373 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
4374 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4375 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4377 (fixup_fallthru_exit_predecessor): Remove uses of macros:
4378 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4379 (fixup_reorder_chain): Likewise.
4380 (relink_block_chain): Likewise.
4381 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
4382 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4383 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4384 (force_one_exit_fallthru): Likewise.
4385 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
4387 (rtl_verify_edges): Likewise.
4388 (commit_edge_insertions): Likewise.
4389 (commit_one_edge_insertion): Likewise.
4390 (rtl_split_edge): Likewise.
4391 (force_nonfallthru_and_redirect): Likewise.
4392 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
4393 (skip_insns_after_block): Likewise.
4394 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
4396 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
4397 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
4399 (contains_no_active_insn_p): Likewise.
4400 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4401 (entry_of_function): Likewise.
4402 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
4403 (fixup_new_cold_bb): Likewise.
4404 (patch_jump_insn): Likewise.
4405 (try_redirect_by_replacing_jump): Likewise.
4406 (block_label): Likewise.
4407 (could_fall_through): Likewise.
4408 (can_fallthru): Likewise.
4409 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
4410 ENTRY_BLOCK_PTR macro.
4411 (rebuild_cgraph_edges): Likewise.
4412 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
4413 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4414 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
4415 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
4416 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
4417 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
4418 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
4419 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
4421 (reg_nonzero_bits_for_combine): Likewise.
4422 (set_nonzero_bits_and_sign_copies): Likewise.
4423 (combine_instructions): Likewise.
4424 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
4426 (bypass_conditional_jumps): Likewise.
4427 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
4428 (find_implicit_sets): Likewise.
4429 (cprop_jump): Likewise.
4430 * cse.c (cse_cc_succs): Likewise.
4431 (cse_find_path): Likewise.
4432 * df-problems.c (df_lr_confluence_0): Likewise.
4433 * df-scan.c (df_entry_block_defs_collect): Remove usage of
4434 ENTRY_BLOCK_PTR macro.
4435 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
4436 * dominance.c (iterate_fix_dominators): Remove usage of
4437 ENTRY_BLOCK_PTR macro.
4438 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4439 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
4440 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
4442 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
4444 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
4446 * domwalk.c (cmp_bb_postorder): Likewise.
4447 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
4448 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
4450 (sjlj_emit_function_enter): Likewise.
4451 * final.c (compute_alignments): Likewise.
4452 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
4453 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4454 (reposition_prologue_and_epilogue_notes): Remove usage of
4455 EXIT_BLOCK_PTR macro.
4456 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
4458 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
4459 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
4460 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
4461 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
4462 (compute_code_hoist_vbeinout): Likewise.
4463 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4464 (pre_expr_reaches_here_p_work): Likewise.
4465 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
4466 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
4468 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
4469 ENTRY_BLOCK_PTR macro.
4470 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
4472 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
4473 ENTRY_BLOCK_PTR macro.
4474 * graphite-scop-detection.c (build_scops): Likewise.
4475 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
4476 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
4477 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
4479 (unlink_bb_notes): Likewise.
4480 (create_check_block_twin): Likewise.
4481 (init_before_recovery): Likewise.
4482 (sched_extend_bb): Likewise.
4483 (priority): Likewise.
4484 * hw-doloop.c (reorder_loops): Likewise.
4485 (discover_loop): Likewise.
4486 * ifcvt.c (dead_or_predicable): Remove uses of macros:
4487 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4488 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
4489 (block_has_only_trap): Likewise.
4490 (cond_exec_find_if_block): Likewise.
4491 (merge_if_block): Likewise.
4492 * ipa-inline-analysis.c (param_change_prob): Remove usage of
4493 ENTRY_BLOCK_PTR macro.
4494 (record_modified): Likewise.
4495 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
4496 EXIT_BLOCK_PTR macro.
4497 (local_pure_const): Likewise.
4498 * ipa-split.c (split_function): Remove uses of macros:
4499 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4500 (find_split_points): Likewise.
4501 (consider_split): Likewise.
4502 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
4503 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4504 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
4505 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
4506 * ira-emit.c (entered_from_non_parent_p): Remove usage of
4507 ENTRY_BLOCK_PTR macro.
4508 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
4509 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
4510 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
4511 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4512 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
4514 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
4516 (compute_farthest): Likewise.
4517 (compute_available): Likewise.
4518 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
4519 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
4521 (compute_earliest): Likewise.
4522 (compute_antinout_edge): Likewise.
4523 * loop-iv.c (simplify_using_initial_values): Remove usage of
4524 ENTRY_BLOCK_PTR macro.
4525 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
4527 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
4529 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
4531 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
4532 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4533 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
4535 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
4537 * lto-streamer-out.c (output_cfg): Likewise.
4538 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
4540 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
4541 * mode-switching.c (optimize_mode_switching): Likewise.
4542 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
4543 * modulo-sched.c (rest_of_handle_sms): Likewise.
4544 (canon_loop): Likewise.
4545 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
4546 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
4547 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4548 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
4550 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
4551 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
4552 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
4553 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
4554 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
4555 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
4556 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
4557 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4558 (gimple_predict_edge): Likewise.
4559 (probably_never_executed): Likewise.
4560 * profile.c (find_spanning_tree): Remove uses of macros:
4561 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4562 (branch_prob): Likewise.
4563 (compute_branch_probabilities): Likewise.
4564 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
4565 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
4566 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
4567 (set_bb_counts): Likewise.
4568 (correct_negative_edge_counts): Likewise.
4569 (get_exec_counts): Likewise.
4570 (instrument_values): Likewise.
4571 (instrument_edges): Likewise.
4572 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
4574 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4575 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
4576 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4577 (reg_to_stack): Likewise.
4578 * regs.h (REG_N_SETS): Likewise.
4579 * reload.c (find_dummy_reload): Likewise.
4580 (combine_reloads): Likewise.
4581 (push_reload): Likewise.
4582 * reload1.c (has_nonexceptional_receiver): Remove usage of
4583 EXIT_BLOCK_PTR macro.
4584 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
4586 (find_basic_block): Likewise.
4587 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4588 (schedule_ebbs): Likewise.
4589 * sched-int.h (sel_sched_p): Likewise.
4590 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
4592 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4593 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
4595 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
4596 (extend_rgns): Likewise.
4597 (find_single_block_region): Likewise.
4598 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
4599 ENTRY_BLOCK_PTR macro.
4600 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
4601 (sel_create_recovery_block): Likewise.
4602 (bb_ends_ebb_p): Likewise.
4603 (sel_bb_end): Likewise.
4604 (sel_bb_head): Likewise.
4605 (free_lv_sets): Likewise.
4606 (init_lv_sets): Likewise.
4607 (tidy_control_flow): Likewise.
4608 (maybe_tidy_empty_bb): Likewise.
4609 * sel-sched-ir.h (_succ_iter_cond): Likewise.
4610 (_succ_iter_start): Likewise.
4611 (sel_bb_empty_or_nop_p): Likewise.
4612 (get_loop_exit_edges_unique_dests): Likewise.
4613 (inner_loop_header_p): Likewise.
4614 * sel-sched.c (create_block_for_bookkeeping): Likewise.
4615 (find_block_for_bookkeeping): Likewise.
4616 * store-motion.c (remove_reachable_equiv_notes): Likewise.
4617 (insert_store): Likewise.
4618 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
4619 ENTRY_BLOCK_PTR macro.
4620 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
4621 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
4622 (gate_tm_init): Likewise.
4623 (tm_region_init): Likewise.
4624 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
4625 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4626 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
4627 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4629 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4630 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
4632 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4634 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
4636 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
4638 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4639 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4640 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4641 (build_gimple_cfg): Likewise.
4642 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4643 (gimple_can_merge_blocks_p): Likewise.
4644 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
4645 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4646 * tree-complex.c (update_parameter_components): Remove usage of
4647 ENTRY_BLOCK_PTR macro.
4648 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
4649 EXIT_BLOCK_PTR macro.
4650 * tree-inline.c (tree_function_versioning): Remove uses of macros:
4651 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4652 (delete_unreachable_blocks_update_callgraph): Likewise.
4653 (initialize_cfun): Likewise.
4654 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
4655 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
4656 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
4657 * tree-into-ssa.c (update_ssa): Likewise.
4658 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
4659 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
4660 (rewrite_into_ssa): Likewise.
4661 (rewrite_debug_stmt_uses): Likewise.
4662 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
4663 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4664 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
4665 ENTRY_BLOCK_PTR macro.
4666 * tree-scalar-evolution.h (block_before_loop): Likewise.
4667 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4668 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
4670 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
4672 (propagate_dereference_distances): Remove uses of macros:
4673 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4674 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
4676 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
4677 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
4678 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
4679 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
4680 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4681 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
4682 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
4683 (mark_control_dependent_edges_necessary): Remove uses of macros:
4684 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4685 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
4686 ENTRY_BLOCK_PTR macro.
4687 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
4688 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
4689 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4690 (calculate_live_on_exit): Likewise.
4691 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4692 (loe_visit_block): Likewise.
4693 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
4694 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4695 (live_on_entry): Likewise.
4696 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
4697 EXIT_BLOCK_PTR macro.
4698 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
4699 ENTRY_BLOCK_PTR macro.
4700 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
4701 (bound_difference): Likewise.
4702 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
4703 of EXIT_BLOCK_PTR macro.
4704 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
4705 of ENTRY_BLOCK_PTR macro.
4706 * tree-ssa-math-opts.c (register_division_in): Likewise.
4707 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
4708 * tree-ssa-pre.c (compute_avail): Likewise.
4709 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
4710 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
4711 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4712 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
4713 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
4715 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
4716 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
4717 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4718 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
4719 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
4720 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
4721 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4722 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
4723 (find_pdom): Likewise.
4724 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4725 * tree-stdarg.c (reachable_at_most_once): Likewise.
4726 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
4727 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4728 (eliminate_tail_call): Likewise.
4729 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
4731 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
4732 * var-tracking.c (vt_initialize): Remove uses of macros:
4733 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4734 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
4735 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
4736 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
4738 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
4740 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4741 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
4742 of EXIT_BLOCK_PTR macro.
4743 * config/arm/arm.c (require_pic_register): Remove usage of
4744 ENTRY_BLOCK_PTR macro.
4745 (arm_r3_live_at_start_p): Likewise.
4746 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
4747 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4748 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
4749 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
4750 ENTRY_BLOCK_PTR macro.
4751 * config/i386/i386.c (ix86_count_insn): Likewise.
4752 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
4753 (ix86_pad_short_function): Likewise.
4754 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4755 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
4756 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
4757 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
4758 (ix86_expand_epilogue): Likewise.
4759 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
4760 (ia64_expand_prologue): Likewise.
4762 2013-11-19 Catherine Moore <clm@codesourcery.com>
4764 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
4765 * config/mips/mips.opt (mfix-rm7000): New option.
4766 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
4767 * config/mips/mips.c (mips_reorg_process_insns): Disable
4768 noreorder for TARGET_FIX_RM7000.
4770 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
4772 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
4774 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4776 * config/arm/arm.c (arm_new_rtx_costs):
4777 Handle narrow mode add-shifts properly.
4778 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
4779 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
4782 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4784 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
4786 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4788 * config/rs6000/vector.md ("mov<mode>"): Do not call
4789 rs6000_emit_le_vsx_move to move into or out of GPRs.
4790 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
4791 source and destination are not GPR hard regs.
4793 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4795 * basic-block.h (n_edges_for_function): Rename macro to...
4796 (n_edges_for_fn): ...this.
4797 (n_edges): Eliminate macro as work towards making uses of
4800 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
4801 to "n_edges_for_fn".
4803 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
4804 (clear_edges): Likewise.
4805 (free_edge): Likewise.
4806 * cfghooks.c (dump_flow_info): Likewise.
4807 * cprop.c (is_too_expensive): Likewise.
4808 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4809 * gcse.c (is_too_expensive): Likewise.
4810 (prune_insertions_deletions): Likewise.
4811 * mcf.c (create_fixup_graph): Likewise.
4812 * sched-rgn.c (haifa_find_rgns): Likewise.
4813 * tree-cfg.c (gimple_dump_cfg): Likewise.
4814 * var-tracking.c (variable_tracking_main_1): Likewise.
4816 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4818 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
4821 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4823 * config/aarch64/aarch64.md
4824 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
4826 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4828 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
4830 2013-11-19 Joseph Myers <joseph@codesourcery.com>
4832 * varasm.c (align_variable): Give error instead of warning for
4833 unsupported alignment.
4834 (assemble_noswitch_variable): Likewise.
4836 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4838 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
4841 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
4843 * loop-doloop.c (doloop_optimize_loops): Remove unused
4844 loop iterator argument from FOR_EACH_LOOP.
4846 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4848 Convert gimple types from a union to C++ inheritance.
4849 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
4850 * coretypes.h (union gimple_statement_d): Remove declaration.
4851 (gimple): Convert from being a "union gimple_statement_d *"
4852 to a "struct gimple_statement_base *".
4853 (const_gimple): Likewise (with "const").
4854 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
4855 (ggc_alloc_cleared_gimple_statement_stat): ...this.
4856 * gimple-pretty-print.c (debug): Change parameter from a
4857 "gimple_statement_d &" to a "gimple_statement_base &".
4858 (debug): Change parameter from a "gimple_statement_d *" to
4859 a "gimple_statement_base *".
4860 * gimple-pretty-print.h (debug): Update declarations as above.
4861 * gimple.c (gimple_alloc_stat): Update for renaming of
4862 ggc_alloc_cleared_gimple_statement_d_stat to
4863 ggc_alloc_cleared_gimple_statement_stat.
4864 * gimple.h: Include "is-a.h" for use by is_a_helper
4865 specializations in followup autogenerated patch.
4866 (struct gimple statement_base): Make this type usable as a base
4867 class by adding "desc", "tag" and "variable_size" to GTY, thus
4868 using opting-in to gengtype's support for simple inheritance.
4869 (gimple_statement_with_ops_base): Convert to a subclass of
4870 gimple_statement_base, dropping initial "gsbase" field. Note that
4871 this type is abstract, with no GSS_ value, and thus no GTY tag value.
4872 (gimple_statement_with_ops): Convert to a subclass of
4873 gimple_statement_with_ops_base, dropping initial "opbase" field.
4874 Add tag value to GTY marking. Update marking of op field to
4875 reflect how num_ops field is accessed via inheritance.
4876 (gimple_statement_with_memory_ops_base): Convert to a subclass of
4877 gimple_statement_with_ops_base, dropping initial "opbase" field.
4878 Add tag value to GTY marking.
4879 (gimple_statement_with_memory_ops): Convert to a subclass of
4880 public gimple_statement_with_memory_ops_base, dropping initial
4881 "membase" field. Add tag value to GTY marking. Update marking
4882 of op field to reflect how num_ops field is accessed via inheritance.
4883 (gimple_statement_call): Analogous changes that also update the
4884 marking of the "u" union.
4885 (gimple_statement_omp): Convert to a subclass of
4886 gimple_statement_base, dropping initial "gsbase" field, adding
4887 tag value to GTY marking.
4888 (gimple_statement_bind): Likewise.
4889 (gimple_statement_catch): Likewise.
4890 (gimple_statement_eh_filter): Likewise.
4891 (gimple_statement_eh_else): Likewise.
4892 (gimple_statement_eh_mnt): Likewise.
4893 (gimple_statement_phi): Likewise.
4894 (gimple_statement_eh_ctrl): Likewise.
4895 (gimple_statement_try): Likewise.
4896 (gimple_statement_wce): Likewise.
4897 (gimple_statement_asm): Convert to a subclass of
4898 gimple_statement_with_memory_ops_base, dropping initial
4899 "membase" field, adding tag value to GTY marking, and updating
4900 marking of op field.
4901 (gimple_statement_omp_critical): Convert to a subclass of
4902 gimple_statement_omp, dropping initial "omp" field, adding tag
4903 value to GTY marking.
4904 (gimple_statement_omp_for): Likewise.
4905 (gimple_statement_omp_parallel): Likewise.
4906 (gimple_statement_omp_task): Convert to a subclass of
4907 gimple_statement_omp_parallel, dropping initial "par" field,
4908 adding tag value to GTY marking.
4909 (gimple_statement_omp_sections): Convert to a subclass of
4910 gimple_statement_omp, dropping initial "omp" field, adding
4911 tag value to GTY marking.
4912 (gimple_statement_omp_continue): Convert to a subclass of
4913 gimple_statement_base, dropping initial "gsbase" field, adding
4914 tag value to GTY marking.
4915 (gimple_statement_omp_single): Convert to a subclass of
4916 gimple_statement_omp, dropping initial "omp" field, adding
4917 tag value to GTY marking.
4918 (gimple_statement_omp_atomic_load): Convert to a subclass of
4919 gimple_statement_base, dropping initial "gsbase" field, adding
4920 tag value to GTY marking.
4921 (gimple_statement_omp_atomic_store): Convert to a subclass of
4922 gimple_statement_base, dropping initial "gsbase" field, adding
4923 tag value to GTY marking.
4924 (gimple_statement_transaction): Convert to a subclass of
4925 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
4926 field, adding tag value to GTY marking.
4927 (union gimple_statement_d): Remove.
4928 * system.h (CONST_CAST_GIMPLE): Update to use
4929 "struct gimple_statement_base *" rather than
4930 "union gimple_statement_d *".
4931 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
4932 gimple_statement_d to gimple_statement_base.
4934 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
4935 (gimple_set_use_ops): Port from union to usage of as_a.
4936 (gimple_set_vuse): Likewise.
4937 (gimple_set_vdef): Likewise.
4938 (gimple_call_internal_fn): Port from union to a static_cast,
4939 given that the type has already been asserted.
4940 (gimple_omp_body_ptr): Port from unchecked union usage to
4942 (gimple_omp_set_body): Likewise.
4944 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
4945 gimple types to a true class hierarchy.
4946 (update_call_edge_frequencies): Likewise.
4947 (gsi_insert_seq_nodes_before): Likewise.
4948 (gsi_insert_seq_nodes_after): Likewise.
4949 (gsi_split_seq_after): Likewise.
4950 (gsi_set_stmt): Likewise.
4951 (gsi_split_seq_before): Likewise.
4952 (gsi_remove): Likewise.
4953 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
4954 (gsi_next): Likewise.
4955 (gsi_prev): Likewise.
4956 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
4957 * gimple-ssa.h (gimple_vuse_op): Likewise.
4958 (gimple_vdef_op): Likewise.
4959 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
4960 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
4961 * gimple.c (gimple_set_code): Likewise.
4962 (gimple_alloc_stat): Likewise.
4963 (gimple_set_subcode): Likewise.
4964 (gimple_build_call_internal_1): Likewise.
4965 (gimple_check_failed): Likewise.
4966 (gimple_call_flags): Likewise.
4967 (gimple_set_bb): Likewise.
4968 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
4969 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
4970 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
4971 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
4972 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
4973 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
4974 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
4975 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
4976 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
4977 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
4978 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
4979 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
4980 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
4981 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
4982 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
4983 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
4984 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
4985 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
4986 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
4987 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
4988 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
4989 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
4990 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
4991 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
4992 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
4993 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
4995 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
4997 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
4999 (is_a_helper <const gimple_statement_omp_atomic_store>
5000 (const_gimple)): Likewise.
5001 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5003 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5005 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5007 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5009 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5011 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5013 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5015 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5016 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5018 (gimple_seq_last): Update for conversion of gimple types to a true
5020 (gimple_seq_set_last): Likewise.
5021 (gimple_code): Likewise.
5022 (gimple_bb): Likewise.
5023 (gimple_block): Likewise.
5024 (gimple_set_block): Likewise.
5025 (gimple_location): Likewise.
5026 (gimple_location_ptr): Likewise.
5027 (gimple_set_location): Likewise.
5028 (gimple_no_warning_p): Likewise.
5029 (gimple_set_no_warning): Likewise.
5030 (gimple_set_visited): Likewise.
5031 (gimple_visited_p): Likewise.
5032 (gimple_set_plf): Likewise.
5033 (gimple_plf): Likewise.
5034 (gimple_set_uid): Likewise.
5035 (gimple_uid): Likewise.
5036 (gimple_init_singleton): Likewise.
5037 (gimple_modified_p): Likewise.
5038 (gimple_set_modified): Likewise.
5039 (gimple_expr_code): Likewise.
5040 (gimple_has_volatile_ops): Likewise.
5041 (gimple_set_has_volatile_ops): Likewise.
5042 (gimple_omp_subcode): Likewise.
5043 (gimple_omp_set_subcode): Likewise.
5044 (gimple_omp_return_set_nowait): Likewise.
5045 (gimple_omp_section_set_last): Likewise.
5046 (gimple_omp_parallel_set_combined_p): Likewise.
5047 (gimple_omp_atomic_set_need_value): Likewise.
5048 (gimple_omp_atomic_set_seq_cst): Likewise.
5049 (gimple_num_ops): Likewise.
5050 (gimple_set_num_ops): Likewise.
5051 (gimple_assign_nontemporal_move_p): Likewise.
5052 (gimple_assign_set_nontemporal_move): Likewise.
5053 (gimple_assign_rhs_code): Likewise.
5054 (gimple_assign_set_rhs_code): Likewise.
5055 (gimple_call_internal_p): Likewise.
5056 (gimple_call_with_bounds_p): Likewise.
5057 (gimple_call_set_with_bounds): Likewise.
5058 (gimple_call_set_tail): Likewise.
5059 (gimple_call_tail_p): Likewise.
5060 (gimple_call_set_return_slot_opt): Likewise.
5061 (gimple_call_return_slot_opt_p): Likewise.
5062 (gimple_call_set_from_thunk): Likewise.
5063 (gimple_call_from_thunk_p): Likewise.
5064 (gimple_call_set_va_arg_pack): Likewise.
5065 (gimple_call_va_arg_pack_p): Likewise.
5066 (gimple_call_set_nothrow): Likewise.
5067 (gimple_call_set_alloca_for_var): Likewise.
5068 (gimple_call_alloca_for_var_p): Likewise.
5069 (gimple_call_copy_flags): Likewise.
5070 (gimple_cond_code): Likewise.
5071 (gimple_cond_set_code): Likewise.
5072 (gimple_cond_make_false): Likewise.
5073 (gimple_cond_make_true): Likewise.
5074 (gimple_asm_volatile_p): Likewise.
5075 (gimple_asm_set_volatile): Likewise.
5076 (gimple_asm_set_input): Likewise.
5077 (gimple_asm_input_p): Likewise.
5078 (gimple_try_kind): Likewise.
5079 (gimple_try_set_kind): Likewise.
5080 (gimple_try_catch_is_cleanup): Likewise.
5081 (gimple_try_set_catch_is_cleanup): Likewise.
5082 (gimple_wce_cleanup_eh_only): Likewise.
5083 (gimple_wce_set_cleanup_eh_only): Likewise.
5084 (gimple_debug_bind_p): Likewise.
5085 (gimple_debug_source_bind_p): Likewise.
5086 (gimple_omp_for_set_kind): Likewise.
5087 (gimple_omp_for_set_combined_p): Likewise.
5088 (gimple_omp_for_set_combined_into_p): Likewise.
5089 (gimple_omp_target_set_kind): Likewise.
5090 (gimple_transaction_subcode): Likewise.
5091 (gimple_transaction_set_subcode): Likewise.
5092 (gimple_predict_predictor): Likewise.
5093 (gimple_predict_set_predictor): Likewise.
5094 (gimple_predict_outcome): Likewise.
5095 (gimple_predict_set_outcome): Likewise.
5096 (gimple_transaction_set_label): Likewise.
5097 (gimple_transaction_set_body): Likewise.
5098 (gimple_transaction_label_ptr): Likewise.
5099 (gimple_transaction_label): Likewise.
5100 (gimple_transaction_body_ptr): Likewise.
5101 (gimple_omp_continue_set_control_use): Likewise.
5102 (gimple_omp_continue_control_use_ptr): Likewise.
5103 (gimple_omp_continue_control_use): Likewise.
5104 (gimple_omp_continue_set_control_def): Likewise.
5105 (gimple_omp_continue_control_def_ptr): Likewise.
5106 (gimple_omp_continue_control_def): Likewise.
5107 (gimple_omp_atomic_load_rhs_ptr): Likewise.
5108 (gimple_omp_atomic_load_rhs): Likewise.
5109 (gimple_omp_atomic_load_set_rhs): Likewise.
5110 (gimple_omp_atomic_load_lhs_ptr): Likewise.
5111 (gimple_omp_atomic_load_lhs): Likewise.
5112 (gimple_omp_atomic_load_set_lhs): Likewise.
5113 (gimple_omp_atomic_store_val_ptr): Likewise.
5114 (gimple_omp_atomic_store_val): Likewise.
5115 (gimple_omp_atomic_store_set_val): Likewise.
5116 (gimple_omp_for_cond): Likewise.
5117 (gimple_omp_for_set_cond): Likewise.
5118 (gimple_omp_sections_set_control): Likewise.
5119 (gimple_omp_sections_control_ptr): Likewise.
5120 (gimple_omp_sections_control): Likewise.
5121 (gimple_omp_sections_set_clauses): Likewise.
5122 (gimple_omp_sections_clauses_ptr): Likewise.
5123 (gimple_omp_sections_clauses): Likewise.
5124 (gimple_omp_teams_set_clauses): Likewise.
5125 (gimple_omp_teams_clauses_ptr): Likewise.
5126 (gimple_omp_teams_clauses): Likewise.
5127 (gimple_omp_target_set_data_arg): Likewise.
5128 (gimple_omp_target_data_arg_ptr): Likewise.
5129 (gimple_omp_target_data_arg): Likewise.
5130 (gimple_omp_target_set_child_fn): Likewise.
5131 (gimple_omp_target_child_fn_ptr): Likewise.
5132 (gimple_omp_target_child_fn): Likewise.
5133 (gimple_omp_target_set_clauses): Likewise.
5134 (gimple_omp_target_clauses_ptr): Likewise.
5135 (gimple_omp_target_clauses): Likewise.
5136 (gimple_omp_single_set_clauses): Likewise.
5137 (gimple_omp_single_clauses_ptr): Likewise.
5138 (gimple_omp_single_clauses): Likewise.
5139 (gimple_omp_task_set_arg_align): Likewise.
5140 (gimple_omp_task_arg_align_ptr): Likewise.
5141 (gimple_omp_task_arg_align): Likewise.
5142 (gimple_omp_task_set_arg_size): Likewise.
5143 (gimple_omp_task_arg_size_ptr): Likewise.
5144 (gimple_omp_task_arg_size): Likewise.
5145 (gimple_omp_task_set_copy_fn): Likewise.
5146 (gimple_omp_task_copy_fn_ptr): Likewise.
5147 (gimple_omp_task_copy_fn): Likewise.
5148 (gimple_omp_task_set_data_arg): Likewise.
5149 (gimple_omp_task_data_arg_ptr): Likewise.
5150 (gimple_omp_task_data_arg): Likewise.
5151 (gimple_omp_task_set_child_fn): Likewise.
5152 (gimple_omp_task_child_fn_ptr): Likewise.
5153 (gimple_omp_task_child_fn): Likewise.
5154 (gimple_omp_task_set_clauses): Likewise.
5155 (gimple_omp_task_clauses_ptr): Likewise.
5156 (gimple_omp_task_clauses): Likewise.
5157 (gimple_omp_parallel_set_data_arg): Likewise.
5158 (gimple_omp_parallel_data_arg_ptr): Likewise.
5159 (gimple_omp_parallel_data_arg): Likewise.
5160 (gimple_omp_parallel_set_child_fn): Likewise.
5161 (gimple_omp_parallel_child_fn_ptr): Likewise.
5162 (gimple_omp_parallel_child_fn): Likewise.
5163 (gimple_omp_parallel_set_clauses): Likewise.
5164 (gimple_omp_parallel_clauses_ptr): Likewise.
5165 (gimple_omp_parallel_clauses): Likewise.
5166 (gimple_omp_for_set_pre_body): Likewise.
5167 (gimple_omp_for_pre_body_ptr): Likewise.
5168 (gimple_omp_for_set_incr): Likewise.
5169 (gimple_omp_for_incr_ptr): Likewise.
5170 (gimple_omp_for_incr): Likewise.
5171 (gimple_omp_for_set_final): Likewise.
5172 (gimple_omp_for_final_ptr): Likewise.
5173 (gimple_omp_for_final): Likewise.
5174 (gimple_omp_for_set_initial): Likewise.
5175 (gimple_omp_for_initial_ptr): Likewise.
5176 (gimple_omp_for_initial): Likewise.
5177 (gimple_omp_for_set_index): Likewise.
5178 (gimple_omp_for_index_ptr): Likewise.
5179 (gimple_omp_for_index): Likewise.
5180 (gimple_omp_for_collapse): Likewise.
5181 (gimple_omp_for_set_clauses): Likewise.
5182 (gimple_omp_for_clauses_ptr): Likewise.
5183 (gimple_omp_for_clauses): Likewise.
5184 (gimple_omp_critical_set_name): Likewise.
5185 (gimple_omp_critical_name_ptr): Likewise.
5186 (gimple_omp_critical_name): Likewise.
5187 (gimple_eh_dispatch_set_region): Likewise.
5188 (gimple_eh_dispatch_region): Likewise.
5189 (gimple_resx_set_region): Likewise.
5190 (gimple_resx_region): Likewise.
5191 (gimple_phi_set_arg): Likewise.
5192 (gimple_phi_arg): Likewise.
5193 (gimple_phi_set_result): Likewise.
5194 (gimple_phi_result_ptr): Likewise.
5195 (gimple_phi_result): Likewise.
5196 (gimple_phi_num_args): Likewise.
5197 (gimple_phi_capacity): Likewise.
5198 (gimple_wce_set_cleanup): Likewise.
5199 (gimple_wce_cleanup_ptr): Likewise.
5200 (gimple_try_set_cleanup): Likewise.
5201 (gimple_try_set_eval): Likewise.
5202 (gimple_try_cleanup_ptr): Likewise.
5203 (gimple_try_eval_ptr): Likewise.
5204 (gimple_eh_else_set_e_body): Likewise.
5205 (gimple_eh_else_set_n_body): Likewise.
5206 (gimple_eh_else_e_body_ptr): Likewise.
5207 (gimple_eh_else_n_body_ptr): Likewise.
5208 (gimple_eh_must_not_throw_set_fndecl): Likewise.
5209 (gimple_eh_must_not_throw_fndecl): Likewise.
5210 (gimple_eh_filter_set_failure): Likewise.
5211 (gimple_eh_filter_set_types): Likewise.
5212 (gimple_eh_filter_failure_ptr): Likewise.
5213 (gimple_eh_filter_types_ptr): Likewise.
5214 (gimple_eh_filter_types): Likewise.
5215 (gimple_catch_set_handler): Likewise.
5216 (gimple_catch_set_types): Likewise.
5217 (gimple_catch_handler_ptr): Likewise.
5218 (gimple_catch_types_ptr): Likewise.
5219 (gimple_catch_types): Likewise.
5220 (gimple_asm_string): Likewise.
5221 (gimple_asm_set_label_op): Likewise.
5222 (gimple_asm_label_op): Likewise.
5223 (gimple_asm_set_clobber_op): Likewise.
5224 (gimple_asm_clobber_op): Likewise.
5225 (gimple_asm_set_output_op): Likewise.
5226 (gimple_asm_output_op_ptr): Likewise.
5227 (gimple_asm_output_op): Likewise.
5228 (gimple_asm_set_input_op): Likewise.
5229 (gimple_asm_input_op_ptr): Likewise.
5230 (gimple_asm_input_op): Likewise.
5231 (gimple_asm_nlabels): Likewise.
5232 (gimple_asm_nclobbers): Likewise.
5233 (gimple_asm_noutputs): Likewise.
5234 (gimple_asm_ninputs): Likewise.
5235 (gimple_bind_set_block): Likewise.
5236 (gimple_bind_block): Likewise.
5237 (gimple_bind_add_seq): Likewise.
5238 (gimple_bind_add_stmt): Likewise.
5239 (gimple_bind_set_body): Likewise.
5240 (gimple_bind_body_ptr): Likewise.
5241 (gimple_bind_append_vars): Likewise.
5242 (gimple_bind_set_vars): Likewise.
5243 (gimple_bind_vars): Likewise.
5244 (gimple_call_clobber_set): Likewise.
5245 (gimple_call_use_set): Likewise.
5246 (gimple_call_set_internal_fn): Likewise.
5247 (gimple_call_set_fntype): Likewise.
5248 (gimple_call_fntype): Likewise.
5249 (gimple_omp_return_lhs_ptr): Likewise.
5250 (gimple_omp_return_lhs): Likewise.
5251 (gimple_omp_return_set_lhs): Likewise.
5252 (gimple_omp_taskreg_set_data_arg): Likewise.
5253 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5254 (gimple_omp_taskreg_data_arg): Likewise.
5255 (gimple_omp_taskreg_set_child_fn): Likewise.
5256 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5257 (gimple_omp_taskreg_child_fn): Likewise.
5258 (gimple_omp_taskreg_set_clauses): Likewise.
5259 (gimple_omp_taskreg_clauses_ptr): Likewise.
5260 (gimple_omp_taskreg_clauses): Likewise.
5261 (gimple_vuse): Likewise.
5262 (gimple_vdef): Likewise.
5263 (gimple_vuse_ptr): Likewise.
5264 (gimple_vdef_ptr): Likewise.
5265 * tree-inline.c (copy_debug_stmt): Likewise.
5266 * tree-phinodes.c (make_phi_node): Likewise.
5268 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5269 (is_a_helper <gimple_statement_with_ops>::test): New.
5270 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5271 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
5273 * gimple-streamer-in.c (input_gimple_stmt): Port from union
5274 access to use of as_a.
5275 * gimple.c (gimple_build_asm_1): Likewise.
5276 (gimple_build_try): Likewise. Also, return a specific subclass
5277 rather than just gimple.
5278 (gimple_build_resx): Port from union access to use of as_a.
5279 (gimple_build_eh_dispatch): Likewise.
5280 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
5281 now that gengtype no longer provides a typed allocator function.
5282 (gimple_copy): Likewise.
5283 * gimple.h (gimple_build_try): Return a specific subclass rather
5285 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
5286 with subclass access by making use of new return type of
5288 * tree-phinodes.c: (allocate_phi_node): Return a
5289 "gimple_statement_phi *" rather than just a gimple.
5290 (resize_phi_node): Likewise.
5291 (make_phi_node): Replace union access with subclass access by
5292 making use of new return type of allocate_phi_node.
5293 (reserve_phi_args_for_new_edge): Replace union access with as_a.
5294 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
5296 (remove_phi_args): Update for change to remove_phi_arg_num.
5298 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
5299 code field to reflect inheritance, rather than embedding of
5300 the base gimple type.
5302 2013-11-19 Richard Biener <rguenther@suse.de>
5304 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
5305 and destructor and make fel_next a member function.
5306 (fel_next): Transform into ...
5307 (loop_iterator::next): ... this.
5308 (fel_init): Transform into ...
5309 (loop_iterator::loop_iterator): ... this.
5310 (loop_iterator::~loop_iterator): New.
5311 (FOR_EACH_LOOP): Remove loop-iterator argument.
5312 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
5313 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
5314 graphite-clast-to-gimple.c, graphite-scop-detection.c,
5315 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
5316 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
5317 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
5318 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
5319 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
5320 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5321 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
5322 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
5323 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
5324 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
5325 FOR_EACH_LOOP_BREAK with break.
5327 2013-11-19 Richard Biener <rguenther@suse.de>
5329 PR tree-optimization/59164
5330 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5332 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
5333 whether we can create an epilogue loop to reflect thecases where
5336 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
5338 * graphite-sese-to-poly.c: Include expr.h.
5340 2013-11-19 Richard Biener <rguenther@suse.de>
5343 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
5344 loads into stmts that may clobber it.
5346 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
5348 * cgraphunit.c (symtab_terminator): New variable.
5349 (queued_nodes): Renamed from first. Use symtab_terminator as
5351 (analyze_functions): Adjust accordingly.
5352 (cgraph_process_new_functions): Return void.
5353 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
5355 2013-11-19 Marek Polacek <polacek@redhat.com>
5357 * opts.c (common_handle_option): Add -fsanitize=null option.
5358 Turn off -fdelete-null-pointer-checks option when doing the
5359 NULL pointer checking.
5360 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
5361 * tree-pass.h (make_pass_ubsan): Declare.
5362 (make_pass_sanopt): Declare.
5363 * timevar.def (TV_TREE_UBSAN): New timevar.
5364 * passes.def: Add pass_sanopt and pass_ubsan.
5365 * ubsan.h (ubsan_null_ckind): New enum.
5366 (ubsan_mismatch_data): New struct.
5367 (ubsan_expand_null_ifn): Declare.
5368 (ubsan_create_data): Adjust declaration.
5369 (ubsan_type_descriptor): Likewise.
5370 * asan.c: Include "ubsan.h".
5371 (pass_data_sanopt): New pass.
5372 (execute_sanopt): New function.
5373 (gate_sanopt): Likewise.
5374 (make_pass_sanopt): Likewise.
5375 (class pass_sanopt): New class.
5376 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
5377 gimple-iterator.h and cfgloop.h.
5378 (PROB_VERY_UNLIKELY): Define.
5379 (tree_type_map_hash): New function.
5380 (ubsan_type_descriptor): Add new parameter.
5381 Improve type name generation.
5382 (ubsan_create_data): Add new parameter. Add pointer data into
5384 (ubsan_expand_null_ifn): New function.
5385 (instrument_member_call): Likewise.
5386 (instrument_mem_ref): Likewise.
5387 (instrument_null): Likewise.
5388 (ubsan_pass): Likewise.
5389 (gate_ubsan): Likewise.
5390 (make_pass_ubsan): Likewise.
5391 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
5392 (class pass_ubsan): New class.
5393 (pass_data_ubsan): New pass.
5394 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
5395 * internal-fn.c (expand_UBSAN_NULL): New function.
5396 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
5397 even when !flag_toplevel_reorder.
5398 * internal-fn.def (UBSAN_NULL): New.
5400 2013-11-19 Jan Hubicka <jh@suse.cz>
5402 * cgraph.c (cgraph_create_indirect_edge): Use
5403 get_polymorphic_call_info.
5404 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
5405 maybe_in_construction and maybe_derived_type.
5406 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
5407 (ipa_dummy_polymorphic_call_context): New global var.
5408 (possible_polymorphic_call_targets): Add context paramter.
5409 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
5410 (possible_polymorphic_call_target_p): Likewise.
5411 (get_polymorphic_call_info): New function.
5412 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
5413 (add_type_duplicate): Remove forgotten debug output.
5414 (method_class_type): Add sanity check.
5415 (maybe_record_node): Add FINALP parameter.
5416 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
5417 by info by get_binfo_at_offset.
5418 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
5419 parameters; pass them to record-binfo.
5420 (polymorphic_call_target_d): Add context and FINAL.
5421 (polymorphic_call_target_hasher::hash): Hash context.
5422 (polymorphic_call_target_hasher::equal): Compare context.
5423 (free_polymorphic_call_targets_hash):
5424 (get_class_context): New function.
5425 (contains_type_p): New function.
5426 (get_polymorphic_call_info): New function.
5427 (walk_bases): New function.
5428 (possible_polymorphic_call_targets): Add context parameter; honnor it.
5429 (dump_possible_polymorphic_call_targets): Dump context.
5430 (possible_polymorphic_call_target_p): Add context.
5431 (update_type_inheritance_graph): Update comment.s
5432 (ipa_set_jf_known_type): Assert that compoentn type is known.
5433 (ipa_note_param_call): Do not tamper with offsets.
5434 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
5436 (update_indirect_edges_after_inlining): Likewise.
5437 (ipa_write_indirect_edge_info): Stream new fields.
5438 (ipa_read_indirect_edge_info): Stream in new fields.
5440 2013-11-19 Jan Hubicka <jh@suse.cz>
5442 * tree-pretty-print.c (dump_generic_node): Print class type of
5445 2013-11-19 Joey Ye <joey.ye@arm.com>
5447 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
5448 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
5450 * config/arm/arm.c (arm_option_override): By default disable
5451 -marm-pic-data-is-text-relative.
5452 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
5453 (arm_assemble_integer): Likewise.
5454 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
5455 New macro to initialize -marm-pic-data-is-text-relative.
5457 2013-11-19 Bin Cheng <bin.cheng@arm.com>
5459 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
5460 (address_cost_data): New field.
5461 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
5462 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
5464 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5466 * config/aarch64/aarch64.md: Remove v8type from all insns.
5468 2013-11-19 Richard Biener <rguenther@suse.de>
5470 PR tree-optimization/57517
5471 * tree-predcom.c (combinable_refs_p): Verify the combination
5472 is always executed when the refs are.
5474 2013-11-19 Jeff Law <law@redhat.com>
5476 * tree-ssa-threadupdate.c: Include ssa-iterators.h
5477 (copy_phi_arg_into_existing_phi): New function.
5478 (any_remaining_duplicated_blocks): Likewise.
5479 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
5480 blocks on a jump threading path.
5482 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
5483 thread through a joiner which has the latch edge.
5485 2013-11-19 Jan Hubicka <jh@suse.cz>
5487 * md.texi (setmem): Document new parameter.
5488 * optabs.c (maybe_gen_insn): Support 9 operands.
5489 * builtins.c (determine_block_size): Add probable_max_size;
5490 support anti-ranges.
5491 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
5493 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
5494 emit_block_move, clear_storage_hints, set_storage_via_setmem):
5496 * expr.h (emit_block_move_hints, clear_storage_hints,
5497 set_storage_via_setmem): Update prototype.
5498 * i386.md (setmem, movmem patterns): Add 9th operand.
5499 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
5500 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
5501 argument; pass it to decide_alg.
5503 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5505 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
5506 (n_basic_blocks_for_fn): ...this.
5508 (n_basic_blocks): Eliminate macro as work towards making uses of
5511 * cfgloop.c (init_loops_structure): Update for renaming of
5512 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
5513 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5514 * ipa-utils.c (ipa_merge_profiles): Likewise.
5515 * lto-streamer-in.c (make_new_block): Likewise.
5516 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5517 (dump_function_to_file): Likewise.
5519 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
5520 macro with "n_basic_blocks_for_fn (cfun)".
5521 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
5522 (duplicate_computed_gotos): Likewise.
5523 (reorder_basic_blocks): Likewise.
5524 * bt-load.c (augment_live_range): Likewise.
5525 * cfg.c (expunge_block): Likewise.
5526 (compact_blocks): Likewise.
5527 * cfganal.c (single_pred_before_succ_order): Likewise.
5528 (compute_idf): Likewise.
5529 (flow_dfs_compute_reverse_init): Likewise.
5530 (pre_and_rev_post_order_compute): Likewise.
5531 (pre_and_rev_post_order_compute_fn): Likewise.
5532 (inverted_post_order_compute): Likewise.
5533 (post_order_compute): Likewise.
5534 (print_edge_list): Likewise.
5535 (find_unreachable_blocks): Likewise.
5536 (mark_dfs_back_edges): Likewise.
5537 * cfgcleanup.c (try_optimize_cfg): Likewise.
5538 (try_forward_edges): Likewise.
5539 * cfghooks.c (dump_flow_info): Likewise.
5540 * cfgloop.c (verify_loop_structure): Likewise.
5541 (get_loop_body): Likewise.
5542 (flow_loops_find): Likewise.
5543 * cfgloopmanip.c (add_loop): Likewise.
5544 (remove_path): Likewise.
5545 (find_path): Likewise.
5546 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5547 (rtl_verify_bb_layout): Likewise.
5548 (entry_of_function): Likewise.
5549 (rtl_create_basic_block): Likewise.
5550 * coverage.c (coverage_compute_cfg_checksum): Likewise.
5551 * cprop.c (one_cprop_pass): Likewise.
5552 (is_too_expensive): Likewise.
5553 * df-core.c (df_compute_cfg_image): Likewise.
5554 (df_compact_blocks): Likewise.
5555 (df_worklist_dataflow_doublequeue): Likewise.
5556 * dominance.c (calculate_dominance_info): Likewise.
5557 (calc_dfs_tree): Likewise.
5558 (calc_dfs_tree_nonrec): Likewise.
5559 (init_dom_info): Likewise.
5560 * domwalk.c (cmp_bb_postorder): Likewise.
5561 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5562 (generate_setjmp_warnings): Likewise.
5563 * fwprop.c (build_single_def_use_links): Likewise.
5564 * gcse.c (is_too_expensive): Likewise.
5565 (one_code_hoisting_pass): Likewise.
5566 (one_pre_gcse_pass): Likewise.
5567 * graphite.c (graphite_initialize): Likewise.
5568 * haifa-sched.c (haifa_sched_init): Likewise.
5569 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
5570 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
5571 * ira-build.c (ira_build): Likewise.
5572 * lcm.c (compute_nearerout): Likewise.
5573 (compute_available): Likewise.
5574 (compute_laterin): Likewise.
5575 (compute_antinout_edge): Likewise.
5576 * lra-lives.c (lra_create_live_ranges): Likewise.
5577 * lra.c (has_nonexceptional_receiver): Likewise.
5578 * mcf.c (create_fixup_graph): Likewise.
5579 * profile.c (branch_prob): Likewise.
5580 * reg-stack.c (convert_regs_2): Likewise.
5581 * regrename.c (regrename_analyze): Likewise.
5582 * reload1.c (has_nonexceptional_receiver): Likewise.
5583 * reorg.c (dbr_schedule): Likewise.
5584 * sched-deps.c (sched_deps_init): Likewise.
5585 * sched-ebb.c (schedule_ebbs): Likewise.
5586 * sched-rgn.c (extend_regions): Likewise.
5587 (schedule_insns): Likewise.
5588 (sched_rgn_init): Likewise.
5589 (extend_rgns): Likewise.
5590 (haifa_find_rgns): Likewise.
5591 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
5592 (sel_recompute_toporder): Likewise.
5593 * sel-sched.c (run_selective_scheduling): Likewise.
5594 * store-motion.c (one_store_motion_pass): Likewise.
5595 (remove_reachable_equiv_notes): Likewise.
5596 * tracer.c (tracer): Likewise.
5597 (tail_duplicate): Likewise.
5598 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
5599 (dump_cfg_stats): Likewise.
5600 (gimple_dump_cfg): Likewise.
5601 (create_bb): Likewise.
5602 (build_gimple_cfg): Likewise.
5603 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
5604 * tree-inline.c (optimize_inline_calls): Likewise.
5605 (fold_marked_statements): Likewise.
5606 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
5607 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5608 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5609 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
5610 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5611 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5612 * tree-ssa-pre.c (do_pre): Likewise.
5613 (init_pre): Likewise.
5614 (compute_avail): Likewise.
5615 * tree-ssa-reassoc.c (init_reassoc): Likewise.
5616 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
5617 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
5618 (init_worklist): Likewise.
5619 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5620 * var-tracking.c (variable_tracking_main_1): Likewise.
5621 (vt_find_locations): Likewise.
5622 (vt_stack_adjustments): Likewise.
5623 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
5624 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
5626 2013-11-18 Jan Hubicka <jh@suse.cz>
5628 * profile.c (compute_branch_probabilities): Do not sanity check
5631 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5633 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
5635 * fold-const.c (fold_single_bit_test_into_sign_test)
5636 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
5638 2013-11-18 Teresa Johnson <tejohnson@google.com>
5640 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
5641 cfglayout after bb reordering.
5642 * passes.def: Move compgotos before bb reordering since it goes into
5645 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
5647 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
5648 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
5650 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
5651 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
5652 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
5653 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
5654 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
5655 Remove all_lto_gen_passes.
5656 * passes.c (pass_manager::dump_passes): Remove its use.
5657 (pass_manager::register_pass): Likewise.
5658 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
5659 (pass_manager::pass_manager): Don't initialize or use it.
5660 (write_lto): New static function.
5661 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
5662 instead of using all_lto_gen_passes.
5663 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
5664 pass_ipa_lto_finish_out): Delete.
5665 * tree-pass.h (make_pass_ipa_lto_gimple_out,
5666 make_pass_ipa_lto_finish_out): Don't declare.
5668 2013-11-18 Jeff Law <law@redhat.com>
5670 * tree-ssa-threadupdate.c (redirection_data): Record two
5671 duplicated blocks instead of just one.
5672 (local_info): Explain why we don't create a template for the
5673 second duplicated block in a thread path.
5674 (create_block_for_threading): Accept argument indicating array
5675 index into redirection_data to store its result.
5676 (lookup_redirection_data): Initialize both duplicate blocks.
5677 (ssa_create_duplicates): If a jump threading path needs multiple
5678 blocks duplicated, then duplicate them.
5679 (ssa_fix_duplicate_block_edges): Corresponding changes.
5680 (ssa_fixup_template_block, thread_single_edge): Likewise.
5682 2013-11-18 Marek Polacek <polacek@redhat.com>
5684 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
5686 2013-11-18 Andrew Pinski <apinski@cavium.com>
5687 Steve Ellcey <sellcey@mips.com>
5690 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
5691 type restriction from equality_operator on conditonal move.
5692 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
5693 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
5695 2013-11-18 Jeff Law <law@redhat.com>
5697 * tree-ssa-threadupdate.c: Fix file block comment.
5698 Fix minor indention issue.
5700 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
5702 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
5703 ix86_address_subreg_operand. Move subreg checks to
5704 ix86_validate_address_register. Move address override check to
5705 ix86_legitimate_address_p.
5706 (ix86_validate_address_register): New function.
5707 (ix86_legitimate_address_p): Call ix86_validate_address_register
5708 to validate base and index registers. Add address override check
5709 from ix86_decompose_address.
5710 (ix86_decompose_address): Remove.
5712 2013-11-18 Richard Biener <rguenther@suse.de>
5714 PR tree-optimization/59125
5715 PR tree-optimization/54570
5716 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
5717 is not complete do not treat component-references with offset zero
5718 but different fields as equal.
5719 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
5720 (compute_object_sizes): Apply TLC. Propagate the constant
5721 results into all uses and fold their stmts.
5722 * passes.def (pass_all_optimizations): Move pass_object_sizes
5723 after the first pass_forwprop and before pass_fre.
5725 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5727 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5728 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5729 (tree_ctz): Remove cast to unsigned type.
5730 * builtins.c (fold_builtin_memory_op): Likewise.
5731 * dwarf2out.c (descr_info_loc): Likewise.
5732 * godump.c (go_output_typedef): Likewise.
5733 * omp-low.c (expand_omp_simd): Likewise.
5734 * stor-layout.c (excess_unit_span): Likewise.
5735 * tree-object-size.c (addr_object_size): Likewise.
5736 * tree-sra.c (analyze_all_variable_accesses): Likewise.
5737 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5738 (simplify_rotate): Likewise.
5739 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
5740 (handle_pointer_plus): Likewise.
5741 * tree-switch-conversion.c (check_range): Likewise.
5742 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
5743 * tsan.c (instrument_builtin_call): Likewise.
5744 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
5745 * trans-mem.c (tm_log_add): Likewise.
5746 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
5747 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
5748 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
5749 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
5751 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5753 * tree.h (host_integerp, tree_low_cst): Delete.
5754 * tree.c (host_integerp, tree_low_cst): Delete.
5756 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5758 * expr.h: Update comments to refer to tree_to_[su]hwi rather
5760 * fold-const.c (fold_binary_loc): Likewise.
5761 * expr.c (store_constructor): Use tree_to_uhwi rather than
5763 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
5764 * stmt.c (emit_case_dispatch_table): Likewise.
5765 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5767 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5769 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
5770 config/aarch64/aarch64.c, config/alpha/predicates.md,
5771 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
5772 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
5773 config/mep/mep-pragma.c, config/mips/mips.c,
5774 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
5775 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
5776 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
5777 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
5778 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
5779 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
5780 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
5781 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
5782 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
5783 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
5785 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5787 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
5788 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
5789 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
5790 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
5791 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
5792 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
5793 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
5794 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
5795 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
5796 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
5797 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
5799 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5801 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
5802 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
5804 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5806 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
5809 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5811 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
5812 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
5813 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
5814 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
5815 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
5816 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
5817 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
5818 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
5819 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
5820 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
5821 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
5822 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
5823 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
5824 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
5825 tree_fits_uhwi_p throughout.
5827 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5829 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
5830 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
5831 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
5832 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
5833 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
5834 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
5835 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
5836 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
5837 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
5838 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
5839 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
5840 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
5841 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
5844 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5846 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
5847 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
5849 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
5851 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
5852 flag if it kills its address, not its post-increment.
5854 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
5856 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
5857 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
5858 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
5859 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
5860 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
5861 (gimple_call_with_bounds_p): New.
5862 (gimple_call_set_with_bounds): New.
5863 (gimple_call_num_nobnd_args): Remove.
5864 (gimple_call_nobnd_arg): Remove.
5865 * tree.h (CALL_WITH_BOUNDS_P): New.
5866 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
5868 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
5870 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
5871 (symtab_node_name): Rename to symtab_node::name.
5872 (cgraph_node_asm_name): Remove.
5873 (varpool_node_asm_name): Remove.
5874 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
5875 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
5876 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
5877 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
5878 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
5880 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5882 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
5883 * config/arm/arm.c (arm_cortex_a53_tune): New.
5884 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
5886 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5888 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
5889 (case ${target}): Add bdver4.
5890 * config/i386/bdver3.md: Add bdver4.
5891 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5892 -march=native recognize bdver4 processors.
5893 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5894 bdver4 def_and_undef
5895 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
5896 (m_BDVER4): New definition.
5897 (m_AMD_MULTIPLE): Includes m_BDVER4.
5898 (processor_target_table): Add bdver4 entry.
5899 (static const char *const cpu_names): Add bdver4 entry.
5900 (software_prefetching_beneficial_p): Add bdver3.
5901 (ix86_option_override_internal): Add bdver4 instruction sets.
5902 (ix86_issue_rate): Add bdver4.
5903 (ix86_adjust_cost): Add bdver4.
5904 (ia32_multipass_dfa_lookahead): Add bdver4.
5905 (enum processor_model): Add M_AMDFAM15H_BDVER4.
5906 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
5907 (has_dispatch): Add bdver4.
5908 * config/i386/i386.h (TARGET_BDVER4): New definition.
5909 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
5910 (enum processor_type): Add PROCESSOR_BDVER4.
5911 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
5912 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
5913 * doc/extend.texi: Add details about bdver4.
5914 * doc/invoke.texi: Add details about bdver4. Add
5915 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
5917 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5919 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
5920 sdmode_stack_slot also in little-endian mode.
5922 2013-11-17 Jan Hubicka <jh@suse.cz>
5924 * doc/md.texi (setmem, movstr): Update documentation.
5925 * builtins.c (determine_block_size): New function.
5926 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
5927 (expand_builtin_memset_args): Use it and pass it to
5928 set_storage_via_setmem.
5929 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
5930 parameters; update call to expander.
5931 (emit_block_move_hints): Add min_size/max_size parameters.
5932 (clear_storage_hints): Likewise.
5933 (set_storage_via_setmem): Likewise.
5934 (clear_storage): Update.
5935 * expr.h (emit_block_move_hints, clear_storage_hints,
5936 set_storage_via_setmem): Update prototypes.
5937 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
5938 (ix86_expand_movmem, ix86_expand_setmem): Remove.
5939 (ix86_expand_movmem, ix86_expand_setmem): Remove.
5940 * i386.md (movmem, setmem): Pass parameters.
5942 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
5945 * config/i386/i386.c (ix86_address_subreg_operand): Do not
5946 reject non-integer subregs.
5947 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
5948 Move check for invalid x32 constant addresses ...
5949 (ix86_legitimate_address_p): ... here.
5951 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5953 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
5954 parameter and use it in REG_FRAME_RELATED_EXPR note.
5955 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
5957 (rs6000_emit_prologue): Likewise, but for little endian VSX
5958 stores, pass the source register of the store instead.
5960 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
5962 * gimple.h: Reorder prototypes to match .c declaration order, and
5963 remove protyotypes for functions not in gimple.c.
5964 (LABEL): Move to tree-into-ssa.c.
5965 * gimple.c: Remove unused prototypes.
5966 (get_base_address): Move to tree.c.
5967 * tree.c (get_base_address): Relocate from gimple.c.
5968 * builtins.h (validate_gimple_arglist): Add prototype.
5969 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
5970 * cfgexpand.h: New File.
5971 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
5972 * tree.h (build_addr): Move to tree-nested.h.
5973 * tree-nested.h: New File.
5974 (build_addr, lower_nested_functions, insert_field_into_struct): Add
5976 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
5977 * ipa-inline-analysis.c: Include cfgexpand.h.
5978 * cgraphunit.c: Include tree-nested.h.
5979 * omp-low.c: Likewise.
5980 * tree-parloops.c: Likewise.
5981 * gimple-low.h: Likewise.
5982 * tree-profile.h: Likewise.
5983 * expr.c: Include cfgexpand.h.
5984 * tree-affine.c: Likewise.
5985 * tree-ssa.c: Likewise.
5986 * tree-ssa-loop-im.c: Include trans-mem.h.
5987 * tree-ssa-tail-merge.c: Likewise.
5988 * value-prof.c: Include builtins.h and tree-nested.h.
5989 * tree-into-ssa.c (LABEL): Define here.
5991 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
5993 * config/arc/arc.c (arc_predicate_delay_insns): New function.
5994 (pass_data_arc_predicate_delay_insns): New pass_data instance.
5995 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
5996 (make_pass_arc_predicate_delay_insns): New function.
5997 (arc_init): Register pass_arc_predicate_delay_insns if
5998 flag_delayed_branch is active.
6000 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6002 * config/arc/constraints.md (Rcq): Simplify register number test.
6004 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6006 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6008 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6010 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6013 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6015 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6016 * gimple-pretty-print.c (dump_omp_for): Add case for
6017 GF_OMP_FOR_KIND_CILKSIMD.
6018 * gimple.h (enum gf_mask): Restructure entries to add
6019 GF_OMP_FOR_KIND_CILKSIMD.
6020 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6021 (gimplify_omp_for): Handle CILK_SIMD.
6022 (gimplify_expr): Add ccase for CILK_SIMD.
6023 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
6024 (build_outer_var_ref): Same.
6025 (check_omp_nesting_restrictions): Same.
6026 (lower_rec_input_clauses): Same.
6027 (lower_lastprivate_clauses): Same.
6028 (expand_omp_for): Same.
6029 (execute_expand_omp): Check flag_enable_cilkplus.
6030 (execute_lower_omp): Same.
6031 (diagnose_sb_0): Handle CILK_SIMD.
6032 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
6033 (setjmp_or_longjmp_p): New.
6034 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
6035 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
6036 * tree.def: Add tree code for CILK_SIMD.
6038 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6040 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
6042 (altivec_vperm_<mode>): Revert earlier little endian change.
6043 (*altivec_vperm_<mode>_internal): Remove.
6044 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
6045 (*altivec_vperm_<mode>_uns_internal): Remove.
6046 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
6048 2013-11-15 Jeff Law <law@redhat.com>
6050 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
6051 has_abnormal_or_outgoing_edge. Check for EH edges as well.
6052 * gimple-ssa-isolate-paths.c
6053 (find_implicit_erroneous_behaviour): Corresponding changes.
6054 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
6055 (find_explicit_erroneous_behaviour): Likewise.
6057 2013-11-15 Jeff Law <law@redhat.com>
6059 * ifcvt.c (find_cond_trap): Properly handle case where
6062 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
6064 * configure: Regenerate.
6066 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
6068 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
6069 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
6070 where it is incorrect or missing.
6072 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6074 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
6076 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6077 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
6079 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
6080 pair with a TREE_CODE test and TREE_INT_CST_LOW.
6081 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6083 2013-11-15 Richard Biener <rguenther@suse.de>
6085 PR tree-optimization/50262
6086 * tree-ssa-alias.h (struct pt_solution): Split
6087 vars_contains_global into vars_contains_nonlocal,
6088 vars_contains_escaped and vars_contains_escaped_heap.
6089 * tree-ssa-structalias.c (label_visit): Expand comment.
6090 (handle_lhs_call): Adjust comment.
6091 (set_uids_in_ptset): Set the new flags appropriately.
6092 (pt_solution_set): Adjust.
6093 (pt_solution_set_var): Likewise.
6094 (pt_solution_ior_into): Likewise.
6095 (pt_solution_includes_global): Likewise.
6096 (pt_solutions_intersect_1): Optimize escaped handling.
6097 (compute_points_to_sets): Remove heap variable globalization.
6098 (ipa_escaped_pt): Adjust initializer.
6099 (pass_data_ipa_pta): Do not run TODO_update_ssa.
6100 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
6101 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
6103 2013-11-15 Richard Biener <rguenther@suse.de>
6105 * tree-loop-distribution.c (tree_loop_distribution): Make sure
6106 to distribute all stores.
6108 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6110 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
6112 2013-11-15 Joseph Myers <joseph@codesourcery.com>
6114 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
6115 * configure.ac: Determine target_header_dir earlier.
6116 (--with-glibc-version): New configure option.
6117 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
6118 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
6119 * configure: Regenerate.
6120 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
6121 native toolchains for default.
6122 (--with-glibc-version): Document.
6124 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
6126 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
6128 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
6130 * lto-streamer-in.c (input function): Call cgraph_create_node if
6131 cgraph_get_node failed.
6133 2013-11-14 Olivier Hainque <hainque@adacore.com>
6135 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
6136 defer allocation of DECL_IGNORED_P variables at toplevel unless really
6137 small. Factorize size threshold computation from the existing one.
6138 (expand_used_vars): Refine comment.
6140 2013-11-14 Cong Hou <congh@google.com>
6142 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
6143 address field as it can be obtained from dr. Rename the struct.
6144 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
6145 steps of data references during sort.
6146 (vect_prune_runtime_alias_test_list): Adjust with the change to
6147 struct dr_with_seg_len.
6148 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6149 Adjust with the change to struct dr_with_seg_len.
6151 2013-11-14 Jeff Law <law@redhat.com>
6154 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
6155 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
6156 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
6157 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
6158 edges, then ignore it. If the statement exhibiting erroneous
6159 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
6160 then we can not optimize.
6161 (find_explicit_erroneous_behaviour): Likewise.
6163 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6165 * gimplify-me.h: New file. Add prototypes.
6166 * gimplify.h: Don't include gimple.h.
6167 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
6168 Relocate from gimple.h.
6169 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
6170 is_gimple_sizepos): Move to gimplify.h.
6171 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
6172 (enum gsi_iterator_update): Move to gimple-iterator.h.
6173 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
6174 * gimplify-me.c: New File.
6175 (force_gimple_operand_1, force_gimple_operand,
6176 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6177 gimple_regimplify_operands): Relocate from gimplify.c.
6178 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
6179 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
6180 gimple_regimplify_operands): Move to gimplify-me.c.
6181 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
6183 * Makefile.in (OBJS): Add gimplify-me.o
6184 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
6186 * cfgloopmanip.c: Likewise.
6187 * cgraphunit.c: Likewise.
6188 * cilk-common.c: Likewise.
6189 * fold-const.c: Likewise.
6190 * function.c: Likewise.
6191 * gimple-expr.c: Likewise.
6192 * gimple-fold.c: Likewise.
6193 * gimple-ssa-strength-reduction.c: Likewise.
6194 * gimple.c: Likewise.
6195 * graphite-clast-to-gimple.c: Likewise.
6196 * graphite-sese-to-poly.c: Likewise.
6197 * ipa-prop.c: Likewise.
6198 * ipa-split.c: Likewise.
6200 * langhooks.c: Likewise.
6201 * omp-low.c: Likewise.
6203 * stor-layout.c: Likewise.
6204 * targhooks.c: Likewise.
6205 * trans-mem.c: Likewise.
6206 * tree-affine.c: Likewise.
6207 * tree-cfg.c: Likewise.
6208 * tree-cfgcleanup.c: Likewise.
6209 * tree-complex.c: Likewise.
6210 * tree-if-conv.c: Likewise.
6211 * tree-inline.c: Likewise.
6212 * tree-loop-distribution.c: Likewise.
6213 * tree-nested.c: Likewise.
6214 * tree-parloops.c: Likewise.
6215 * tree-predcom.c: Likewise.
6216 * tree-profile.c: Likewise.
6217 * tree-scalar-evolution.c: Likewise.
6218 * tree-sra.c: Likewise.
6219 * tree-ssa-address.c: Likewise.
6220 * tree-ssa-ccp.c: Likewise.
6221 * tree-ssa-dce.c: Likewise.
6222 * tree-ssa-forwprop.c: Likewise.
6223 * tree-ssa-ifcombine.c: Likewise.
6224 * tree-ssa-loop-im.c: Likewise.
6225 * tree-ssa-loop-ivopts.c: Likewise.
6226 * tree-ssa-loop-manip.c: Likewise.
6227 * tree-ssa-loop-niter.c: Likewise.
6228 * tree-ssa-loop-prefetch.c: Likewise.
6229 * tree-ssa-loop-unswitch.c: Likewise.
6230 * tree-ssa-math-opts.c: Likewise.
6231 * tree-ssa-phiopt.c: Likewise.
6232 * tree-ssa-phiprop.c: Likewise.
6233 * tree-ssa-pre.c: Likewise.
6234 * tree-ssa-propagate.c: Likewise.
6235 * tree-ssa-reassoc.c: Likewise.
6236 * tree-ssa-sccvn.c: Likewise.
6237 * tree-ssa-strlen.c: Likewise.
6238 * tree-ssa.c: Likewise.
6239 * tree-switch-conversion.c: Likewise.
6240 * tree-tailcall.c: Likewise.
6241 * tree-vect-data-refs.c: Likewise.
6242 * tree-vect-generic.c: Likewise.
6243 * tree-vect-loop-manip.c: Likewise.
6244 * tree-vect-loop.c: Likewise.
6245 * tree-vect-patterns.c: Likewise.
6246 * tree-vect-stmts.c: Likewise.
6249 * value-prof.c: Likewise.
6250 * config/aarch64/aarch64.c: Likewise.
6251 * config/alpha/alpha.c: Likewise.
6252 * config/darwin.c: Likewise.
6253 * config/i386/i386.c: Likewise.
6254 * config/ia64/ia64.c: Likewise.
6255 * config/mep/mep.c: Likewise.
6256 * config/mips/mips.c: Likewise.
6257 * config/rs6000/rs6000.c: Likewise.
6258 * config/s390/s390.c: Likewise.
6259 * config/sh/sh.c: Likewise.
6260 * config/sparc/sparc.c: Likewise.
6261 * config/spu/spu.c: Likewise.
6262 * config/stormy16/stormy16.c: Likewise.
6263 * config/tilegx/tilegx.c: Likewise.
6264 * config/tilepro/tilepro.c: Likewise.
6265 * config/xtensa/xtensa.c: Likewise.
6267 2013-11-14 Diego Novillo <dnovillo@google.com>
6269 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6271 2013-11-14 Diego Novillo <dnovillo@google.com>
6273 * tree.h: Include fold-const.h.
6274 (aggregate_value_p): Moved to function.h.
6275 (alloca_call_p): Moved to calls.h.
6276 (allocate_struct_function): Moved to function.h.
6277 (apply_tm_attr): Moved to attribs.h.
6278 (array_at_struct_end_p): Moved to expr.h.
6279 (array_ref_element_size): Moved to tree-dfa.h.
6280 (array_ref_low_bound): Moved to tree-dfa.h.
6281 (array_ref_up_bound): Moved to tree.h.
6282 (assemble_alias): Moved to cgraph.h.
6283 (bit_from_pos): Moved to stor-layout.h.
6284 (build_addr): Moved to tree-nested.h.
6285 (build_duplicate_type): Moved to tree-inline.h.
6286 (build_fold_addr_expr): Moved to fold-const.h.
6287 (build_fold_addr_expr_with_type): Moved to fold-const.h.
6288 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
6289 (build_fold_indirect_ref): Moved to fold-const.h.
6290 (build_fold_indirect_ref_loc): Moved to fold-const.h.
6291 (build_personality_function): Moved to tree.h.
6292 (build_range_check): Moved to fold-const.h.
6293 (build_simple_mem_ref): Moved to fold-const.h.
6294 (build_simple_mem_ref_loc): Moved to fold-const.h.
6295 (build_tm_abort_call): Moved to trans-mem.h.
6296 (byte_from_pos): Moved to stor-layout.h.
6297 (call_expr_flags): Moved to calls.h.
6298 (can_move_by_pieces): Moved to expr.h.
6299 (categorize_ctor_elements): Moved to expr.h.
6300 (change_decl_assembler_name): Moved to gcc-symtab.h.
6301 (combine_comparisons): Moved to fold-const.h.
6302 (complete_ctor_at_level_p): Moved to tree.h.
6303 (component_ref_field_offset): Moved to tree-dfa.h.
6304 (compute_builtin_object_size): Moved to tree-object-size.h.
6305 (compute_record_mode): Moved to stor-layout.h.
6306 (constant_boolean_node): Moved to fold-const.h.
6307 (constructor_static_from_elts_p): Moved to varasm.h.
6308 (cxx11_attribute_p): Moved to attribs.h.
6309 (debug_body): Moved to print-tree.h.
6310 (debug_find_tree): Moved to tree-inline.h.
6311 (debug_fold_checksum): Moved to fold-const.h.
6312 (debug_head): Moved to print-tree.h.
6313 (debug_head): Moved to print-tree.h.
6314 (debug_raw): Moved to print-tree.h.
6315 (debug_tree): Moved to print-tree.h.
6316 (debug_vec_tree): Moved to print-tree.h.
6317 (debug_verbose): Moved to print-tree.h.
6318 (debug_verbose): Moved to print-tree.h.
6319 (decl_attributes): Moved to attribs.h.
6320 (decl_binds_to_current_def_p): Moved to varasm.h.
6321 (decl_default_tls_model): Moved to varasm.h.
6322 (decl_replaceable_p): Moved to varasm.h.
6323 (div_if_zero_remainder): Moved to fold-const.h.
6324 (double_int mem_ref_offset): Moved to fold-const.h.
6325 (dump_addr): Moved to print-tree.h.
6326 (element_precision): Moved to machmode.h.
6327 (expand_dummy_function_end): Moved to function.h.
6328 (expand_function_end): Moved to function.h.
6329 (expand_function_start): Moved to function.h.
6330 (expand_label): Moved to stmt.h.
6331 (expr_first): Moved to tree-iterator.h.
6332 (expr_last): Moved to tree-iterator.h.
6333 (finalize_size_functions): Moved to stor-layout.h.
6334 (finish_builtin_struct): Moved to stor-layout.h.
6335 (finish_record_layout): Moved to stor-layout.h.
6336 (fixup_signed_type): Moved to stor-layout.h.
6337 (fixup_unsigned_type): Moved to stor-layout.h.
6338 (flags_from_decl_or_type): Moved to calls.h.
6339 (fold): Moved to fold-const.h.
6340 (fold_abs_const): Moved to fold-const.h.
6341 (fold_binary): Moved to fold-const.h.
6342 (fold_binary_loc): Moved to fold-const.h.
6343 (fold_binary_to_constant): Moved to fold-const.h.
6344 (fold_build1): Moved to fold-const.h.
6345 (fold_build1_initializer_loc): Moved to fold-const.h.
6346 (fold_build1_loc): Moved to fold-const.h.
6347 (fold_build1_stat_loc): Moved to fold-const.h.
6348 (fold_build2): Moved to fold-const.h.
6349 (fold_build2_initializer_loc): Moved to fold-const.h.
6350 (fold_build2_loc): Moved to fold-const.h.
6351 (fold_build2_stat_loc): Moved to fold-const.h.
6352 (fold_build3): Moved to fold-const.h.
6353 (fold_build3_loc): Moved to fold-const.h.
6354 (fold_build3_stat_loc): Moved to fold-const.h.
6355 (fold_build_call_array): Moved to fold-const.h.
6356 (fold_build_call_array_initializer): Moved to fold-const.h.
6357 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
6358 (fold_build_call_array_loc): Moved to fold-const.h.
6359 (fold_build_cleanup_point_expr): Moved to fold-const.h.
6360 (fold_convert): Moved to fold-const.h.
6361 (fold_convert_loc): Moved to fold-const.h.
6362 (fold_convertible_p): Moved to fold-const.h.
6363 (fold_defer_overflow_warnings): Moved to fold-const.h.
6364 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
6365 (fold_fma): Moved to fold-const.h.
6366 (fold_ignored_result): Moved to fold-const.h.
6367 (fold_indirect_ref): Moved to fold-const.h.
6368 (fold_indirect_ref_1): Moved to fold-const.h.
6369 (fold_indirect_ref_loc): Moved to fold-const.h.
6370 (fold_read_from_constant_string): Moved to fold-const.h.
6371 (fold_real_zero_addition_p): Moved to fold-const.h.
6372 (fold_single_bit_test): Moved to fold-const.h.
6373 (fold_strip_sign_ops): Moved to fold-const.h.
6374 (fold_ternary): Moved to fold-const.h.
6375 (fold_ternary_loc): Moved to fold-const.h.
6376 (fold_unary): Moved to tree-data-ref.h.
6377 (fold_unary_ignore_overflow): Moved to fold-const.h.
6378 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
6379 (fold_unary_loc): Moved to fold-const.h.
6380 (fold_unary_to_constant): Moved to fold-const.h.
6381 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
6382 (fold_undefer_overflow_warnings): Moved to fold-const.h.
6383 (folding_initializer): Moved to fold-const.h.
6384 (free_temp_slots): Moved to function.h.
6385 (generate_setjmp_warnings): Moved to function.h.
6386 (get_attribute_name): Moved to attribs.h.
6387 (get_identifier): Moved to stringpool.h.
6388 (get_identifier_with_length): Moved to stringpool.h.
6389 (get_inner_reference): Moved to tree.h.
6390 (gimple_alloca_call_p): Moved to calls.h.
6391 (gimplify_parameters): Moved to function.h.
6392 (highest_pow2_factor): Moved to expr.h.
6393 (indent_to): Moved to print-tree.h.
6394 (init_attributes): Moved to attribs.h.
6395 (init_dummy_function_start): Moved to function.h.
6396 (init_function_start): Moved to function.h.
6397 (init_inline_once): Moved to tree-inline.h.
6398 (init_object_sizes): Moved to tree-object-size.h.
6399 (init_temp_slots): Moved to function.h.
6400 (init_tree_optimization_optabs): Moved to optabs.h.
6401 (initialize_sizetypes): Moved to stor-layout.h.
6402 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
6403 (initializer_constant_valid_p): Moved to varasm.h.
6404 (int_const_binop): Moved to fold-const.h.
6405 (internal_reference_types): Moved to stor-layout.h.
6406 (invert_tree_comparison): Moved to fold-const.h.
6407 (invert_truthvalue): Moved to fold-const.h.
6408 (invert_truthvalue_loc): Moved to fold-const.h.
6409 (is_tm_ending_fndecl): Moved to trans-mem.h.
6410 (is_tm_may_cancel_outer): Moved to trans-mem.h.
6411 (is_tm_pure): Moved to trans-mem.h.
6412 (is_tm_safe): Moved to trans-mem.h.
6413 (layout_decl): Moved to stor-layout.h.
6414 (layout_type): Moved to stor-layout.h.
6415 (lookup_attribute_spec): Moved to attribs.h.
6416 (make_accum_type): Moved to stor-layout.h.
6417 (make_decl_one_only): Moved to varasm.h.
6418 (make_decl_rtl): Moved to tree.h.
6419 (make_decl_rtl_for_debug): Moved to varasm.h.
6420 (make_fract_type): Moved to stor-layout.h.
6421 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
6422 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
6423 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
6424 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
6425 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
6426 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
6427 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
6428 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
6429 (make_range): Moved to fold-const.h.
6430 (make_range_step): Moved to fold-const.h.
6431 (make_sat_signed_accum_type): Moved to stor-layout.h.
6432 (make_sat_signed_fract_type): Moved to stor-layout.h.
6433 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
6434 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
6435 (make_signed_accum_type): Moved to stor-layout.h.
6436 (make_signed_fract_type): Moved to stor-layout.h.
6437 (make_signed_type): Moved to stor-layout.h.
6438 (make_unsigned_accum_type): Moved to stor-layout.h.
6439 (make_unsigned_fract_type): Moved to stor-layout.h.
6440 (make_unsigned_type): Moved to stor-layout.h.
6441 (mark_decl_referenced): Moved to varasm.h.
6442 (mark_referenced): Moved to varasm.h.
6443 (may_negate_without_overflow_p): Moved to fold-const.h.
6444 (maybe_get_identifier): Moved to stringpool.h.
6445 (merge_ranges): Moved to fold-const.h.
6446 (merge_weak): Moved to varasm.h.
6447 (mode_for_size_tree): Moved to stor-layout.h.
6448 (multiple_of_p): Moved to fold-const.h.
6449 (must_pass_in_stack_var_size): Moved to calls.h.
6450 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
6451 (native_encode_expr): Moved to fold-const.h.
6452 (native_interpret_expr): Moved to fold-const.h.
6453 (non_lvalue): Moved to fold-const.h.
6454 (non_lvalue_loc): Moved to fold-const.h.
6455 (normalize_offset): Moved to stor-layout.h.
6456 (normalize_rli): Moved to stor-layout.h.
6457 (notice_global_symbol): Moved to varasm.h.
6458 (omit_one_operand): Moved to fold-const.h.
6459 (omit_one_operand_loc): Moved to fold-const.h.
6460 (omit_two_operands): Moved to fold-const.h.
6461 (omit_two_operands_loc): Moved to fold-const.h.
6462 (operand_equal_p): Moved to tree-data-ref.h.
6463 (parse_input_constraint): Moved to stmt.h.
6464 (parse_output_constraint): Moved to stmt.h.
6465 (place_field): Moved to stor-layout.h.
6466 (pop_function_context): Moved to function.h.
6467 (pop_temp_slots): Moved to function.h.
6468 (pos_from_bit): Moved to stor-layout.h.
6469 (preserve_temp_slots): Moved to function.h.
6470 (print_node): Moved to print-tree.h.
6471 (print_node_brief): Moved to print-tree.h.
6472 (print_rtl): Moved to rtl.h.
6473 (process_pending_assemble_externals): Moved to varasm.h.
6474 (ptr_difference_const): Moved to fold-const.h.
6475 (push_function_context): Moved to function.h.
6476 (push_struct_function): Moved to function.h.
6477 (push_temp_slots): Moved to function.h.
6478 (record_tm_replacement): Moved to trans-mem.h.
6479 (relayout_decl): Moved to stor-layout.h.
6480 (resolve_asm_operand_names): Moved to stmt.h.
6481 (resolve_unique_section): Moved to varasm.h.
6482 (rli_size_so_far): Moved to stor-layout.h.
6483 (rli_size_unit_so_far): Moved to stor-layout.h.
6484 (round_down): Moved to fold-const.h.
6485 (round_down_loc): Moved to fold-const.h.
6486 (round_up): Moved to fold-const.h.
6487 (round_up_loc): Moved to fold-const.h.
6488 (set_decl_incoming_rtl): Moved to emit-rtl.h.
6489 (set_decl_rtl): Moved to tree.h.
6490 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
6491 (set_user_assembler_name): Moved to varasm.h.
6492 (setjmp_call_p): Moved to calls.h.
6493 (size_binop): Moved to fold-const.h.
6494 (size_binop_loc): Moved to fold-const.h.
6495 (size_diffop): Moved to fold-const.h.
6496 (size_diffop_loc): Moved to fold-const.h.
6497 (size_int_kind): Moved to fold-const.h.
6498 (stack_protect_epilogue): Moved to function.h.
6499 (start_record_layout): Moved to stor-layout.h.
6500 (supports_one_only): Moved to varasm.h.
6501 (swap_tree_comparison): Moved to fold-const.h.
6502 (tm_malloc_replacement): Moved to trans-mem.h.
6503 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
6504 (tree build_invariant_address): Moved to fold-const.h.
6505 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
6506 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
6507 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
6508 (tree_expr_nonnegative_p): Moved to fold-const.h.
6509 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
6510 (tree_output_constant_def): Moved to varasm.h.
6511 (tree_overlaps_hard_reg_set): Moved to stmt.h.
6512 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
6513 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
6514 (tree_swap_operands_p): Moved to fold-const.h.
6515 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
6516 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
6517 (update_alignment_for_field): Moved to stor-layout.h.
6518 (use_register_for_decl): Moved to function.h.
6519 (variable_size): Moved to rtl.h.
6520 (vector_type_mode): Moved to stor-layout.h.
6521 * cgraph.h: Corresponding changes.
6522 * emit-rtl.h: Corresponding changes.
6523 * expr.h: Corresponding changes.
6524 * function.h: Corresponding changes.
6525 * optabs.h: Corresponding changes.
6526 * trans-mem.h: Corresponding changes.
6527 Protect against multiple inclusion.
6528 * tree-inline.h: Corresponding changes.
6529 * tree-iterator.h: Corresponding changes.
6530 * tree-dfa.h: Include expr.h.
6531 * tree-ssanames.h: Include stringpool.h.
6532 * attribs.h: New file.
6533 * calls.h: New file.
6534 * fold-const.h: New file.
6535 * gcc-symtab.h: New file.
6536 * print-rtl.h: New file.
6537 * print-tree.h: New file.
6539 * stor-layout.h: New file.
6540 * strinpool.h: New file.
6541 * tree-nested.h: New file
6542 * tree-object-size.h: New file.
6543 * varasm.h: New file.
6545 2013-11-14 Diego Novillo <dnovillo@google.com>
6547 * alias.c: Include varasm.h.
6549 * asan.c: Include calls.h.
6550 Include stor-layout.h.
6552 * attribs.c: Include stringpool.h.
6554 Include stor-layout.h.
6555 * builtins.c: Include stringpool.h.
6556 Include stor-layout.h.
6559 Include tree-object-size.h.
6560 * calls.c: Include stor-layout.h.
6562 Include stringpool.h.
6564 * cfgexpand.c: Include stringpool.h.
6566 Include stor-layout.h.
6568 Include print-tree.h.
6569 * cgraph.c: Include varasm.h.
6571 Include print-tree.h.
6572 * cgraphclones.c: Include stringpool.h.
6575 Move inclusion of rtl.h earlier in the file.
6576 * cgraphunit.c: Include varasm.h.
6577 Include stor-layout.h.
6578 Include stringpool.h.
6579 * cilk-common.c: Include stringpool.h.
6580 Include stor-layout.h.
6581 * combine.c: Include stor-layout.h.
6582 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
6583 Include stringpool.h.
6585 * config/aarch64/aarch64.c: Include stringpool.h.
6586 Include stor-layout.h.
6589 * config/alpha/alpha.c: Include stor-layout.h.
6592 * config/arc/arc.c: Include varasm.h.
6593 Include stor-layout.h.
6594 Include stringpool.h.
6596 * config/arm/arm.c: Include stringpool.h.
6597 Include stor-layout.h.
6600 * config/avr/avr-c.c: Include stor-layout.h.
6601 * config/avr/avr-log.c: Include print-tree.h.
6602 * config/avr/avr.c: Include print-tree.h.
6604 Include stor-layout.h.
6605 Include stringpool.h.
6606 * config/bfin/bfin.c: Include varasm.h.
6608 * config/c6x/c6x.c: Include stor-layout.h.
6611 Include stringpool.h.
6612 * config/cr16/cr16.c: Include stor-layout.h.
6614 * config/cris/cris.c: Include varasm.h.
6615 Include stor-layout.h.
6618 * config/darwin.c: Include stringpool.h.
6620 Include stor-layout.h.
6621 * config/epiphany/epiphany.c: Include stor-layout.h.
6624 Include stringpool.h.
6625 * config/fr30/fr30.c: Include stor-layout.h.
6627 * config/frv/frv.c: Include varasm.h.
6628 Include stor-layout.h.
6629 Include stringpool.h.
6630 * config/h8300/h8300.c: Include stor-layout.h.
6633 Include stringpool.h.
6634 * config/i386/i386.c: Include stringpool.h.
6637 Include stor-layout.h.
6639 * config/i386/winnt-cxx.c: Include stringpool.h.
6641 * config/i386/winnt.c: Include stringpool.h.
6643 * config/ia64/ia64-c.c: Include stringpool.h.
6644 * config/ia64/ia64.c: Include stringpool.h.
6645 Include stor-layout.h.
6648 * config/iq2000/iq2000.c: Include stor-layout.h.
6651 * config/lm32/lm32.c: Include calls.h.
6652 * config/m32c/m32c.c: Include stor-layout.h.
6655 * config/m32r/m32r.c: Include stor-layout.h.
6657 Include stringpool.h.
6659 * config/m68k/m68k.c: Include calls.h.
6660 Include stor-layout.h.
6662 * config/mcore/mcore.c: Include stor-layout.h.
6664 Include stringpool.h.
6666 * config/mep/mep.c: Include varasm.h.
6668 Include stringpool.h.
6669 Include stor-layout.h.
6670 * config/microblaze/microblaze.c: Include varasm.h.
6671 Include stor-layout.h.
6673 * config/mips/mips.c: Include varasm.h.
6674 Include stringpool.h.
6675 Include stor-layout.h.
6677 * config/mmix/mmix.c: Include varasm.h.
6678 Include stor-layout.h.
6680 * config/mn10300/mn10300.c: Include stor-layout.h.
6683 * config/moxie/moxie.c: Include stor-layout.h.
6686 * config/msp430/msp430.c: Include stor-layout.h.
6688 * config/nds32/nds32.c: Include stor-layout.h.
6691 * config/pa/pa.c: Include stor-layout.h.
6692 Include stringpool.h.
6695 * config/pdp11/pdp11.c: Include stor-layout.h.
6698 * config/picochip/picochip.c: Include calls.h.
6699 Include stor-layout.h.
6700 Include stringpool.h.
6702 * config/rl78/rl78.c: Include varasm.h.
6703 Include stor-layout.h.
6705 * config/rs6000/rs6000-c.c: Include stor-layout.h.
6706 Include stringpool.h.
6707 * config/rs6000/rs6000.c: Include stringpool.h.
6708 Include stor-layout.h.
6710 Include print-tree.h.
6712 * config/rx/rx.c: Include varasm.h.
6713 Include stor-layout.h.
6715 * config/s390/s390.c: Include print-tree.h.
6716 Include stringpool.h.
6717 Include stor-layout.h.
6720 * config/score/score.c: Include stringpool.h.
6723 Include stor-layout.h.
6724 * config/sh/sh-c.c: Include stringpool.h.
6725 Include attribs.h.h.
6726 * config/sh/sh.c: Include stringpool.h.
6727 Include stor-layout.h.
6730 * config/sol2-c.c: Include stringpool.h.
6732 * config/sol2-cxx.c: Include stringpool.h.
6733 * config/sol2.c: Include stringpool.h.
6735 * config/sparc/sparc.c: Include stringpool.h.
6736 Include stor-layout.h.
6739 * config/spu/spu-c.c: Include stringpool.h.
6740 * config/spu/spu.c: Include stringpool.h.
6741 Include stor-layout.h.
6744 * config/stormy16/stormy16.c: Include stringpool.h.
6745 Include stor-layout.h.
6748 * config/tilegx/tilegx.c: Include stringpool.h.
6749 Include stor-layout.h.
6752 * config/tilepro/tilepro.c: Include stringpool.h.
6753 Include stor-layout.h.
6756 * config/v850/v850-c.c: Include stringpool.h.
6758 * config/v850/v850.c: Include stringpool.h.
6759 Include stor-layout.h.
6762 * config/vax/vax.c: Include calls.h.
6764 * config/vms/vms.c: Include stringpool.h.
6765 * config/vxworks.c: Include stringpool.h.
6766 * config/xtensa/xtensa.c: Include stringpool.h.
6767 Include stor-layout.h.
6770 * convert.c: Include stor-layout.h.
6771 * coverage.c: Include stringpool.h.
6772 Include stor-layout.h.
6773 * dbxout.c: Include varasm.h.
6774 Include stor-layout.h.
6775 * dojump.c: Include stor-layout.h.
6776 * dse.c: Include stor-layout.h.
6777 * dwarf2asm.c: Include stringpool.h.
6779 * dwarf2cfi.c: Include stor-layout.h.
6780 * dwarf2out.c: Include rtl.h.
6781 Include stringpool.h.
6782 Include stor-layout.h.
6786 Move inclusion of rtl.h earlier in the file.
6787 * emit-rtl.c: Include varasm.h.
6788 * except.c: Include stringpool.h.
6789 Include stor-layout.h.
6790 * explow.c: Include stor-layout.h.
6791 * expmed.c: Include stor-layout.h.
6792 * expr.c: Include stringpool.h.
6793 Include stor-layout.h.
6796 * final.c: Include varasm.h.
6797 * fold-const.c: Include stor-layout.h.
6799 Include tree-iterator.h.
6800 * function.c: Include stor-layout.h.
6802 Include stringpool.h.
6803 * genattrtab.c (write_header): Emit includes for varasm.h,
6804 stor-layout.h and calls.h.
6805 * genautomata.c (main): Likewise.
6806 * genemit.c: Likewise.
6807 * genopinit.c: Likewise.
6808 * genoutput.c (output_prologue): Likewise.
6809 * genpeep.c: Likewise.
6810 * genpreds.c (write_insn_preds_c): Likewise.
6811 * gengtype.c (open_base_files): Add stringpool.h.
6812 * gimple-expr.c: Include stringpool.h.
6813 Include stor-layout.h.
6814 * gimple-fold.c: Include stringpool.h.
6817 Include stor-layout.h.
6818 * gimple-low.c: Include tree-nested.h.
6820 * gimple-pretty-print.c: Include stringpool.h.
6821 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
6823 * gimple-walk.c: Include stmt.h.
6824 * gimple.c: Include calls.h.
6826 Include stor-layout.h.
6827 * gimplify.c: Include stringpool.h.
6830 Include stor-layout.h.
6832 Include print-tree.h.
6834 * gimplify-me.c: Include stmt.h
6835 Include stor-layout.h
6836 * internal-fn.c: Include stor-layout.h.
6837 * ipa-devirt.c: Include print-tree.h.
6839 * ipa-inline-analysis.c: Include stor-layout.h.
6840 Include stringpool.h.
6841 Include print-tree.h.
6842 * ipa-inline.c: Include trans-mem.h.
6844 * ipa-prop.c: Include expr.h.
6845 Include stor-layout.h.
6846 Include print-tree.h.
6847 * ipa-pure-const.c: Include print-tree.h.
6849 * ipa-reference.c: Include calls.h.
6850 * ipa-split.c: Include stringpool.h.
6853 * ipa.c: Include calls.h.
6854 Include stringpool.h.
6855 * langhooks.c: Include stringpool.h.
6857 * lto-cgraph.c: Include stringpool.h.
6858 * lto-streamer-in.c: Include stringpool.h.
6859 * lto-streamer-out.c: Include stor-layout.h.
6860 Include stringpool.h.
6861 * omp-low.c: Include stringpool.h.
6862 Include stor-layout.h.
6864 * optabs.c: Include stor-layout.h.
6865 Include stringpool.h.
6867 * passes.c: Include varasm.h.
6868 * predict.c: Include calls.h.
6869 * print-rtl.c: Include print-tree.h.
6870 * print-tree.c: Include varasm.h.
6871 Include print-rtl.h.
6872 Include stor-layout.h.
6873 * realmpfr.c: Include stor-layout.h.
6874 * reg-stack.c: Include varasm.h.
6875 * sdbout.c: Include varasm.h.
6876 Include stor-layout.h.
6877 * simplify-rtx.c: Include varasm.h.
6878 * stmt.c: Include varasm.h.
6879 Include stor-layout.h.
6880 * stor-layout.c: Include stor-layout.h.
6881 Include stringpool.h.
6883 Include print-tree.h.
6884 * symtab.c: Include rtl.h.
6885 Include print-tree.h.
6889 * targhooks.c: Include stor-layout.h.
6891 * toplev.c: Include varasm.h.
6892 Include tree-inline.h.
6893 * trans-mem.c: Include calls.h.
6897 * tree-affine.c: Include expr.h.
6898 * tree-browser.c: Include print-tree.h.
6899 * tree-call-cdce.c: Include stor-layout.h.
6900 * tree-cfg.c: Include trans-mem.h.
6901 Include stor-layout.h.
6902 Include print-tree.h.
6903 * tree-complex.c: Include stor-layout.h.
6904 * tree-data-ref.c: Include expr.h.
6905 * tree-dfa.c: Include stor-layout.h.
6906 * tree-eh.c: Include expr.h.
6908 * tree-emutls.c: Include stor-layout.h.
6910 * tree-if-conv.c: Include stor-layout.h.
6911 * tree-inline.c: Include stor-layout.h.
6913 * tree-loop-distribution.c: Include stor-layout.h.
6914 * tree-nested.c: Include stringpool.h.
6915 Include stor-layout.h.
6916 * tree-object-size.c: Include tree-object-size.h.
6917 * tree-outof-ssa.c: Include stor-layout.h.
6918 * tree-parloops.c: Include stor-layout.h.
6919 Include tree-nested.h.
6920 * tree-pretty-print.c: Include stor-layout.h.
6922 * tree-profile.c: Include varasm.h.
6923 Include tree-nested.h.
6924 * tree-scalar-evolution.c: Include expr.h.
6925 * tree-sra.c: Include stor-layout.h.
6926 * tree-ssa-address.c: Include stor-layout.h.
6927 * tree-ssa-ccp.c: Include stor-layout.h.
6928 * tree-ssa-dce.c: Include calls.h.
6929 * tree-ssa-dom.c: Include stor-layout.h.
6930 * tree-ssa-forwprop.c: Include stor-layout.h.
6931 * tree-ssa-ifcombine.c: Include stor-layout.h.
6932 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
6933 * tree-ssa-loop-niter.c: Include calls.h.
6935 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
6936 * tree-ssa-math-opts.c: Include stor-layout.h.
6937 * tree-ssa-operands.c: Include stmt.h.
6938 Include print-tree.h.
6939 * tree-ssa-phiopt.c: Include stor-layout.h.
6940 * tree-ssa-reassoc.c: Include stor-layout.h.
6941 * tree-ssa-sccvn.c: Include stor-layout.h.
6942 * tree-ssa-sink.c: Include stor-layout.h.
6943 * tree-ssa-strlen.c: Include stor-layout.h.
6944 * tree-ssa-structalias.c: Include stor-layout.h.
6946 * tree-ssa-tail-merge.c: Include stor-layout.h.
6947 Include trans-mem.h.
6948 * tree-ssa-uncprop.c: Include stor-layout.h.
6949 * tree-ssa.c: Include stor-layout.h.
6950 * tree-ssanames.c: Include stor-layout.h.
6951 * tree-streamer-in.c: Include stringpool.h.
6952 * tree-streamer-out.c: Include stor-layout.h.
6953 * tree-switch-conversion.c: Include varasm.h.
6954 Include stor-layout.h.
6955 * tree-tailcall.c: Include stor-layout.h.
6956 * tree-vect-data-refs.c: Include stor-layout.h.
6957 * tree-vect-generic.c: Include stor-layout.h.
6958 * tree-vect-loop.c: Include stor-layout.h.
6959 * tree-vect-patterns.c: Include stor-layout.h.
6960 * tree-vect-slp.c: Include stor-layout.h.
6961 * tree-vect-stmts.c: Include stor-layout.h.
6962 * tree-vectorizer.c: Include stor-layout.h.
6963 * tree-vrp.c: Include stor-layout.h.
6965 * tree.c: Include stor-layout.h.
6969 * tsan.c: Include expr.h.
6970 * ubsan.c: Include stor-layout.h.
6971 Include stringpool.h.
6972 * value-prof.c: Include tree-nested.h.
6974 * var-tracking.c: Include varasm.h.
6975 Include stor-layout.h.
6976 * varasm.c: Include stor-layout.h.
6977 Include stringpool.h.
6978 Include gcc-symtab.h.
6980 * varpool.c: Include varasm.h.
6981 * vmsdbgout.c: Include varasm.h.
6982 * xcoffout.c: Include varasm.h.
6984 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
6986 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
6989 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6991 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
6993 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6994 Alan Modra <amodra@gmail.com>
6996 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
6997 (RS6000_SAVE_TOC): Remove.
6998 (RS6000_TOC_SAVE_SLOT): New macro.
6999 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7000 (rs6000_parm_start): Use it.
7001 (rs6000_function_arg_advance_1): Likewise.
7002 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7003 (rs6000_emit_epilogue): Likewise.
7004 (rs6000_call_aix): Likewise.
7005 (rs6000_output_function_prologue): Do not save/restore r11
7006 around calling _mcount for ABI_ELFv2.
7008 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7009 Alan Modra <amodra@gmail.com>
7011 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7013 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7014 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7015 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7016 (rs6000_function_parms_need_stack): Likewise.
7017 (rs6000_reg_parm_stack_space): Likewise.
7018 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7019 returning a register argument.
7021 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7022 Michael Gschwind <mkg@us.ibm.com>
7024 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
7025 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7026 (FUNCTION_VALUE_REGNO_P): Use them.
7027 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
7028 (rs6000_return_in_msb): New function.
7029 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
7030 Handle aggregates of up to 16 bytes for ELFv2.
7031 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
7033 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7034 Michael Gschwind <mkg@us.ibm.com>
7036 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7037 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7038 (rs6000_discover_homogeneous_aggregate): Likewise.
7039 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7040 (rs6000_function_arg_advance_1): Likewise.
7041 (rs6000_function_arg): Likewise.
7042 (rs6000_arg_partial_bytes): Likewise.
7043 (rs6000_psave_function_arg): Handle BLKmode arguments.
7045 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7046 Michael Gschwind <mkg@us.ibm.com>
7048 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
7049 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
7050 (rs6000_discover_homogeneous_aggregate): Likewise.
7051 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
7052 (rs6000_function_arg_advance_1): Likewise.
7053 (rs6000_function_arg): Likewise.
7054 (rs6000_arg_partial_bytes): Likewise.
7055 (rs6000_psave_function_arg): Handle BLKmode arguments.
7057 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7059 * config/rs6000/rs6000.c (machine_function): New member
7061 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
7062 (rs6000_output_mi_thunk): Set r2_setup_needed.
7063 (rs6000_output_function_prologue): Output global entry point
7064 prologue and local entry point marker if needed for ABI_ELFv2.
7065 Output -mprofile-kernel code here.
7066 (output_function_profiler): Do not output -mprofile-kernel
7067 code here; moved to rs6000_output_function_prologue.
7068 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
7070 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
7071 (rs6000_output_function_entry): Likewise.
7072 (rs6000_assemble_integer): Likewise.
7073 (rs6000_elf_encode_section_info): Likewise.
7074 (rs6000_elf_declare_function_name): Do not create dot symbols
7075 or .opd section for ABI_ELFv2.
7077 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
7078 (rs6000_trampoline_init): Likewise.
7079 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
7081 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
7082 for function descriptors in ABI_ELFv2.
7084 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
7085 on ABI_AIX only, not ABI_ELFv2.
7086 ("*call_value_indirect_aix<mode>"): Likewise.
7087 ("*call_indirect_elfv2<mode>"): New pattern.
7088 ("*call_value_indirect_elfv2<mode>"): Likewise.
7090 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
7091 check for function descriptors in ABI_ELFv2.
7092 ("current_file_function_operand"): Likewise.
7094 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
7096 (FUNC_NAME): Define ELFv2 variant.
7097 (JUMP_TARGET): Likewise.
7098 (FUNC_START): Likewise.
7099 (HIDDEN_FUNC): Likewise.
7100 (FUNC_END): Likeiwse.
7102 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7104 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
7105 and --with-abi=elfv2.
7106 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
7107 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
7108 (mabi=elfv2): Likewise.
7109 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
7110 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
7112 (ELFv2_ABI_CHECK): New macro.
7113 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
7114 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
7115 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
7116 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
7117 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
7119 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
7120 (debug_stack_info): Likewise.
7121 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
7122 (rs6000_legitimize_tls_address): Likewise.
7123 (rs6000_conditional_register_usage): Likewise.
7124 (rs6000_emit_move): Likewise.
7125 (init_cumulative_args): Likewise.
7126 (rs6000_function_arg_advance_1): Likewise.
7127 (rs6000_function_arg): Likewise.
7128 (rs6000_arg_partial_bytes): Likewise.
7129 (rs6000_output_function_entry): Likewise.
7130 (rs6000_assemble_integer): Likewise.
7131 (rs6000_savres_strategy): Likewise.
7132 (rs6000_stack_info): Likewise.
7133 (rs6000_function_ok_for_sibcall): Likewise.
7134 (rs6000_emit_load_toc_table): Likewise.
7135 (rs6000_savres_routine_name): Likewise.
7136 (ptr_regno_for_savres): Likewise.
7137 (rs6000_emit_prologue): Likewise.
7138 (rs6000_emit_epilogue): Likewise.
7139 (rs6000_output_function_epilogue): Likewise.
7140 (output_profile_hook): Likewise.
7141 (output_function_profiler): Likewise.
7142 (rs6000_trampoline_size): Likewise.
7143 (rs6000_trampoline_init): Likewise.
7144 (rs6000_elf_output_toc_section_asm_op): Likewise.
7145 (rs6000_elf_encode_section_info): Likewise.
7146 (rs6000_elf_reloc_rw_mask): Likewise.
7147 (rs6000_elf_declare_function_name): Likewise.
7148 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
7149 except that rs6000_compat_align_parm is always assumed false.
7150 (rs6000_gimplify_va_arg): Likewise.
7151 (rs6000_call_aix): Update comment.
7152 (rs6000_sibcall_aix): Likewise.
7153 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
7154 Treat ABI_ELFv2 the same as ABI_AIX.
7155 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7156 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
7157 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
7158 ("load_toc_aix_si"): Likewise.
7159 ("load_toc_aix_di"): Likewise.
7161 ("call_value"): Likewise.
7162 ("*call_local_aix<mode>"): Likewise.
7163 ("*call_value_local_aix<mode>"): Likewise.
7164 ("*call_nonlocal_aix<mode>"): Likewise.
7165 ("*call_value_nonlocal_aix<mode>"): Likewise.
7166 ("*call_indirect_aix<mode>"): Likewise.
7167 ("*call_value_indirect_aix<mode>"): Likewise.
7168 ("sibcall"): Likewise.
7169 ("sibcall_value"): Likewise.
7170 ("*sibcall_aix<mode>"): Likewise.
7171 ("*sibcall_value_aix<mode>"): Likewise.
7172 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
7173 ("current_file_function_operand"): Likewise.
7175 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7177 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
7178 by making use of the fact that for vector / floating point arguments
7179 passed both in VRs/FPRs and in the fixed parameter area, the partial
7180 bytes mechanism is in fact not used.
7182 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7184 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
7185 (rs6000_finish_function_arg): Likewise.
7186 (rs6000_function_arg): Use rs6000_psave_function_arg and
7187 rs6000_finish_function_arg to handle both vector and floating
7188 point arguments that are also passed in GPRs / the stack.
7190 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7192 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
7193 (USE_ALTIVEC_FOR_ARG_P): Likewise.
7194 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
7195 (rs6000_function_arg_advance_1):Likewise.
7196 (rs6000_darwin64_record_arg_recurse): Likewise.
7197 (rs6000_function_arg): Likewise.
7198 (rs6000_arg_partial_bytes): Likewise.
7200 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7202 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
7203 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
7204 (rs6000_savres_strategy): Likewise.
7205 (rs6000_return_addr): Likewise.
7206 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
7207 testing for ABI_V4 (since ABI_DARWIN is impossible here).
7208 (rs6000_emit_prologue): Likewise.
7209 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
7210 (rs6000_elf_declare_function_name): Remove duplicated test.
7211 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7212 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7213 ("load_toc_v4_PIC_1_normal"): Likewise.
7214 ("load_toc_v4_PIC_1_476"): Likewise.
7215 ("load_toc_v4_PIC_1b"): Likewise.
7216 ("load_toc_v4_PIC_1b_normal"): Likewise.
7217 ("load_toc_v4_PIC_1b_476"): Likewise.
7218 ("load_toc_v4_PIC_2"): Likewise.
7219 ("load_toc_v4_PIC_3b"): Likewise.
7220 ("load_toc_v4_PIC_3c"): Likewise.
7221 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7222 (RS6000_SAVE_AREA): Likewise.
7223 (FP_ARG_MAX_REG): Likewise.
7224 (RETURN_ADDRESS_OFFSET): Likewise.
7225 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7227 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7228 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7230 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7232 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7233 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7234 Create call insn directly instead of via various gen_... routines.
7235 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7236 (rs6000_sibcall_aix): New function.
7237 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7238 (TOC_SAVE_OFFSET_64BIT): Likewise.
7239 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7240 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7241 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7242 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7243 ("call" expander): Call rs6000_call_aix.
7244 ("call_value" expander): Likewise.
7245 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7246 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7247 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7248 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7249 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7250 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7251 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7252 ("*call_nonlocal_aix<mode>"): ... this pattern.
7253 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7254 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7255 ("*call_local_aix<mode>"): New insn pattern.
7256 ("*call_value_local_aix<mode>"): Likewise.
7257 ("sibcall" expander): Call rs6000_sibcall_aix.
7258 ("sibcall_value" expander): Likewise. Move earlier in file.
7259 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7260 ("*sibcall_aix<mode>"): ... this pattern.
7261 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7262 ("*sibcall_value_aix<mode>"): ... this pattern.
7263 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7264 (rs6000_call_aix): Add prototype.
7265 (rs6000_sibcall_aix): Likewise.
7267 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7270 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7271 isn't confused by the artificial decl.
7273 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7275 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
7276 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
7277 Instead, add USEs of all modified call-saved CR fields to the
7278 insn storing the result to the stack slot, and provide an
7279 appropriate REG_FRAME_RELATED_EXPR for that insn.
7280 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
7281 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
7283 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7284 Alan Modra <amodra@gmail.com>
7286 * function.c (assign_parms): Use all.reg_parm_stack_space instead
7287 of re-evaluating REG_PARM_STACK_SPACE target macro.
7288 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
7289 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
7290 (assign_parm_find_entry_rtl): Update call.
7291 * calls.c (initialize_argument_information): Update call.
7292 (emit_library_call_value_1): Likewise.
7293 * expr.h (locate_and_pad_parm): Update prototype.
7295 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7297 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
7300 2013-11-14 DJ Delorie <dj@redhat.com>
7302 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
7305 2013-11-14 Jeff Law <law@redhat.com>
7307 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
7308 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
7310 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7312 * doc/invoke.texi: Update documentation for AArch64's -mcpu
7315 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7317 * config/aarch64/aarch64-cores.def (example-1): Remove.
7318 (example-2): Likewise.
7319 * config/aarch64/aarch64-tune.md: Regenerate.
7320 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
7321 (generic_sched): Remove "large", "small".
7322 * config/aarch64/large.md: Delete.
7323 * config/aarch64/small.md: Delete.
7325 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7327 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
7328 * config/aarch64/aarch64-tune.md: Regenerate.
7329 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
7330 (generic_sched): "no" if we are tuning for cortexa15.
7331 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
7334 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7336 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
7337 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
7338 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
7339 (all_cores): Use cortexa53 when tuning for "generic".
7340 (aarch64_override_options): Fix comment.
7341 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
7342 * config/aarch64/aarch64-generic.md: Delete.
7344 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7346 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
7348 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7350 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
7351 (generic_rtx_cost_table): Remove.
7352 (aarch64_rtx_costs): Use fields from cpu_cost_table.
7353 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
7355 (cpu_rtx_cost_table): Remove.
7357 2013-11-14 Julian Brown <julian@codesourcery.com>
7358 Joey Ye <joey.ye@arm.com>
7360 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
7361 (arm_v7m_tune): New.
7362 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
7363 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
7364 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
7365 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
7367 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7370 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
7373 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7374 Uros Bizjak <ubizjak@gmail.com>
7377 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
7378 operands[2] satisfies_constraint_Z that might have bit 31 set.
7380 2013-11-13 Jeff Law <law@redhat.com>
7382 PR tree-optimization/59102
7383 * gimple-ssa-isolate-paths.c
7384 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
7385 gimple assignment before looking at gimple_assign_lhs.
7387 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7389 * ira.c: Add comment about threads at the top of file.
7391 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7393 * ira-color.c (coalesce_allocnos): Don't allocate and free
7396 2013-11-14 Tom de Vries <tom@codesourcery.com>
7398 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
7399 equality for GIMPLE_ASSIGN.
7401 2013-11-14 Tom de Vries <tom@codesourcery.com>
7403 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
7405 (gimple_equal_p): ... here.
7407 2013-11-14 Tom de Vries <tom@codesourcery.com>
7409 * trans-mem.c (is_tm_ending): New function.
7410 * gimple.h (is_tm_ending): Declare.
7411 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
7413 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
7415 2013-11-14 Tom de Vries <tom@codesourcery.com>
7417 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
7419 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
7421 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
7422 (struct walk_stmt_info): Relocate here from gimple.h.
7423 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
7424 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
7425 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7426 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7427 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7428 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7429 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
7430 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
7431 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7432 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7433 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7434 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7435 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
7436 (struct walk_stmt_info): Move to gimple-walk.h.
7437 (gimple_seq_set_location): Move to gimple.c
7438 * gimple-walk.c: New File.
7439 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
7440 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
7441 walk_stmt_load_store_ops): Relocate here from gimple.c.
7442 * gimple-iterator.c: Include gimple-iterator.h.
7443 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
7444 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
7445 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
7447 (gimple_seq_set_location): Relocate from gimple.h.
7448 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
7449 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
7450 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
7451 * Makefile.in (OBJS): Add gimple-walk.o
7452 * asan.c: Update Include list as required for gimple-iterator.h and
7454 * cfgexpand.c: Likewise.
7455 * cfgloop.c: Likewise.
7456 * cfgloopmanip.c: Likewise.
7457 * cgraph.c: Likewise.
7458 * cgraphbuild.c: Likewise.
7459 * cgraphunit.c: Likewise.
7460 * gimple-fold.c: Likewise.
7461 * gimple-low.c: Likewise.
7462 * gimple-pretty-print.c: Likewise.
7463 * gimple-ssa-isolate-paths.c: Likewise.
7464 * gimple-ssa-strength-reduction.c: Likewise.
7465 * gimple-streamer-in.c: Likewise.
7466 * gimple-streamer-out.c: Likewise.
7467 * gimplify.c: Likewise.
7468 * graphite-blocking.c: Likewise.
7469 * graphite-clast-to-gimple.c: Likewise.
7470 * graphite-dependences.c: Likewise.
7471 * graphite-interchange.c: Likewise.
7472 * graphite-optimize-isl.c: Likewise.
7473 * graphite-poly.c: Likewise.
7474 * graphite-scop-detection.c: Likewise.
7475 * graphite-sese-to-poly.c: Likewise.
7476 * graphite.c: Likewise.
7477 * ipa-inline-analysis.c: Likewise.
7478 * ipa-profile.c: Likewise.
7479 * ipa-prop.c: Likewise.
7480 * ipa-pure-const.c: Likewise.
7481 * ipa-split.c: Likewise.
7482 * lto-streamer-in.c: Likewise.
7483 * lto-streamer-out.c: Likewise.
7484 * omp-low.c: Likewise.
7485 * predict.c: Likewise.
7486 * profile.c: Likewise.
7488 * tracer.c: Likewise.
7489 * trans-mem.c: Likewise.
7490 * tree-call-cdce.c: Likewise.
7491 * tree-cfg.c: Likewise.
7492 * tree-cfgcleanup.c: Likewise.
7493 * tree-complex.c: Likewise.
7494 * tree-data-ref.c: Likewise.
7495 * tree-dfa.c: Likewise.
7496 * tree-eh.c: Likewise.
7497 * tree-emutls.c: Likewise.
7498 * tree-if-conv.c: Likewise.
7499 * tree-inline.c: Likewise.
7500 * tree-into-ssa.c: Likewise.
7501 * tree-loop-distribution.c: Likewise.
7502 * tree-nested.c: Likewise.
7503 * tree-nrv.c: Likewise.
7504 * tree-object-size.c: Likewise.
7505 * tree-outof-ssa.c: Likewise.
7506 * tree-parloops.c: Likewise.
7507 * tree-predcom.c: Likewise.
7508 * tree-profile.c: Likewise.
7509 * tree-scalar-evolution.c: Likewise.
7510 * tree-sra.c: Likewise.
7511 * tree-ssa-ccp.c: Likewise.
7512 * tree-ssa-coalesce.c: Likewise.
7513 * tree-ssa-copy.c: Likewise.
7514 * tree-ssa-copyrename.c: Likewise.
7515 * tree-ssa-dce.c: Likewise.
7516 * tree-ssa-dom.c: Likewise.
7517 * tree-ssa-dse.c: Likewise.
7518 * tree-ssa-forwprop.c: Likewise.
7519 * tree-ssa-ifcombine.c: Likewise.
7520 * tree-ssa-live.c: Likewise.
7521 * tree-ssa-loop-ch.c: Likewise.
7522 * tree-ssa-loop-im.c: Likewise.
7523 * tree-ssa-loop-ivcanon.c: Likewise.
7524 * tree-ssa-loop-ivopts.c: Likewise.
7525 * tree-ssa-loop-manip.c: Likewise.
7526 * tree-ssa-loop-niter.c: Likewise.
7527 * tree-ssa-loop-prefetch.c: Likewise.
7528 * tree-ssa-loop.c: Likewise.
7529 * tree-ssa-math-opts.c: Likewise.
7530 * tree-ssa-phiopt.c: Likewise.
7531 * tree-ssa-phiprop.c: Likewise.
7532 * tree-ssa-pre.c: Likewise.
7533 * tree-ssa-propagate.c: Likewise.
7534 * tree-ssa-reassoc.c: Likewise.
7535 * tree-ssa-sink.c: Likewise.
7536 * tree-ssa-strlen.c: Likewise.
7537 * tree-ssa-structalias.c: Likewise.
7538 * tree-ssa-tail-merge.c: Likewise.
7539 * tree-ssa-ter.c: Likewise.
7540 * tree-ssa-threadedge.c: Likewise.
7541 * tree-ssa-threadupdate.c: Likewise.
7542 * tree-ssa-uncprop.c: Likewise.
7543 * tree-ssa-uninit.c: Likewise.
7544 * tree-ssa.c: Likewise.
7545 * tree-stdarg.c: Likewise.
7546 * tree-switch-conversion.c: Likewise.
7547 * tree-tailcall.c: Likewise.
7548 * tree-vect-data-refs.c: Likewise.
7549 * tree-vect-generic.c: Likewise.
7550 * tree-vect-loop-manip.c: Likewise.
7551 * tree-vect-loop.c: Likewise.
7552 * tree-vect-patterns.c: Likewise.
7553 * tree-vect-slp.c: Likewise.
7554 * tree-vect-stmts.c: Likewise.
7555 * tree-vectorizer.c: Likewise.
7556 * tree-vrp.c: Likewise.
7559 * value-prof.c: Likewise.
7560 * vtable-verify.c: Likewise.
7562 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7564 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
7567 2013-11-13 Jeff Law <law@redhat.com>
7569 * PR middle-end/59119
7570 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
7571 function, extracted from gimple_ssa_isolate_erroneous_paths.
7572 (find_explicit_erroneous_behaviour): Similarly.
7573 (insert_trap_and_remove_trailing_statements): Remove statements
7576 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7578 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
7579 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
7580 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
7581 looking at INSN_CODE.
7582 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
7583 active_insn_p object, respect basic block boundaries.
7584 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
7585 follows immediately after the jump table data label.
7586 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
7587 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
7588 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
7590 2013-11-13 Teresa Johnson <tejohnson@google.com>
7593 * predict.c (drop_profile): Error is currently too strict.
7594 (handle_missing_profiles): Pass call_count to drop_profile.
7596 2013-11-13 Teresa Johnson <tejohnson@google.com>
7599 * ipa-inline.c (edge_badness): Fix overflow.
7601 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7603 PR rtl-optimization/59036
7604 * ira-color.c (struct allocno_color_data): Add new members
7605 first_thread_allocno, next_thread_allocno, thread_freq.
7606 (sorted_copies): New static var.
7607 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
7608 (allocno_thread_conflict_p, merge_threads)
7609 (form_threads_from_copies, form_threads_from_bucket)
7610 (form_threads_from_colorable_allocno, init_allocno_threads): New
7612 (bucket_allocno_compare_func): Add comparison by thread frequency
7614 (add_allocno_to_ordered_bucket): Rename to
7615 add_allocno_to_ordered_colorable_bucket. Remove parameter.
7616 (push_only_colorable): Call form_threads_from_bucket.
7617 (color_pass): Call init_allocno_threads. Use
7618 consideration_allocno_bitmap instead of coloring_allocno_bitmap
7619 for nuillify allocno color data.
7620 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
7621 (coalesce_allocnos): Use static sorted copies.
7623 2013-11-13 Jakub Jelinek <jakub@redhat.com>
7625 * passes.c (execute_todo): Don't call do_per_function if
7627 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
7628 execute_function_dump if dump_file is NULL.
7630 2013-11-13 Martin Jambor <mjambor@suse.cz>
7632 * cgraph.c (cgraph_get_create_node): Do what
7633 cgraph_get_create_real_symbol_node used to do.
7634 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
7635 call cgraph_get_create_node.
7636 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
7637 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
7638 cgraph_get_create_node. Assert we get a node.
7640 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7642 * config/aarch64/aarch64-simd.md (vec_extract): New.
7644 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7646 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
7649 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7651 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
7652 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
7653 or if optimization is enabled.
7654 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
7655 require that all the names based on a PARM_DECL or a RESULT_DECL that
7656 isn't ignored for debug info be coalesced.
7658 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7660 * config/c6x/c6x.c: Include "gimple-expr.h".
7662 2013-11-13 Richard Biener <rguenther@suse.de>
7664 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
7665 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
7666 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
7667 dealing with type mismatches inside component reference chains.
7669 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
7671 PR tree-optimization/59077
7672 * ipa-pure-const.c (better_state): Update *state.
7674 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
7676 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
7677 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
7678 Update offset calculations.
7680 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7683 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
7684 for fields. Do not add the attribute if the size is negative.
7686 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7688 * config/arm/arm.c: Include aarch-cost-tables.h.
7689 (generic_extra_costs): Move from here...
7690 * config/arm/aarch-cost-tables.h: ... To here. New file.
7692 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
7693 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7694 Sergey Lega <sergey.s.lega@intel.com>
7695 Anna Tikhonova <anna.tikhonova@intel.com>
7696 Ilya Tocar <ilya.tocar@intel.com>
7697 Andrey Turetskiy <andrey.turetskiy@intel.com>
7698 Ilya Verbin <ilya.verbin@intel.com>
7699 Kirill Yukhin <kirill.yukhin@intel.com>
7700 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7702 * config/i386/i386.c (ix86_print_operand): Support z-masking.
7703 * config/i386/predicate.md (const_0_to_4_operand): New.
7704 (const_0_to_5_operand): Ditto.
7705 * config/i386/sse.md (UNSPEC_COMPRESS): New.
7706 (UNSPEC_COMPRESS_STORE): Ditto.
7707 (UNSPEC_EXPAND): Ditto.
7708 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
7709 (define_mode_attr ssescalarsize): Ditto.
7710 (avx512f_load<mode>_mask): Ditto.
7711 (avx512f_store<mode>_mask): Ditto.
7712 (avx512f_storedqu<mode>_mask): Ditto.
7713 (avx512f_vmcmp<mode>3_mask): Ditto.
7714 (avx512f_fmadd_<mode>_mask): Ditto.
7715 (avx512f_fmadd_<mode>_mask3): Ditto.
7716 (avx512f_fmsub_<mode>_mask): Ditto.
7717 (avx512f_fmsub_<mode>_mask3): Ditto.
7718 (avx512f_fnmadd_<mode>_mask): Ditto.
7719 (avx512f_fnmadd_<mode>_mask3): Ditto.
7720 (avx512f_fnmsub_<mode>_mask): Ditto.
7721 (avx512f_fnmsub_<mode>_mask3): Ditto.
7722 (avx512f_fmaddsub_<mode>_mask): Ditto.
7723 (avx512f_fmaddsub_<mode>_mask3): Ditto.
7724 (avx512f_fmsubadd_<mode>_mask): Ditto.
7725 (avx512f_fmsubadd_<mode>_mask3): Ditto.
7726 (vec_unpacku_float_lo_v16si): Ditto.
7727 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
7728 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
7729 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
7730 (vec_extract_lo_<mode>_maskm): Ditto.
7731 (vec_extract_hi_<mode>_maskm): Ditto.
7732 (avx512f_vternlog<mode>_mask): Ditto.
7733 (avx512f_shufps512_mask): Ditto.
7734 (avx512f_fixupimm<mode>_mask): Ditto.
7735 (avx512f_shufpd512_mask): Ditto.
7736 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
7737 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
7738 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
7739 (ashr<mode>3<mask_name>): Ditto.
7740 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
7741 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
7742 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
7743 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
7744 (avx512f_pshufdv3_mask): Ditto.
7745 (avx512f_perm<mode>_mask): Ditto.
7746 (avx512f_vpermi2var<mode>3_mask): Ditto.
7747 (avx512f_vpermt2var<mode>3_mask): Ditto.
7748 (avx512f_compress<mode>_mask): Ditto.
7749 (avx512f_compressstore<mode>_mask): Ditto.
7750 (avx512f_expand<mode>_mask): Ditto.
7751 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
7753 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
7754 (<plusminus_insn><mode>3<mask_name>): Ditto.
7755 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7756 (mul<mode>3<mask_name>): Ditto.
7757 (*mul<mode>3<mask_name>): Ditto.
7758 (<sse>_div<mode>3<mask_name>): Ditto.
7759 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
7760 (<sse>_sqrt<mode>2<mask_name>): Ditto.
7761 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
7762 (<code><mode>3<mask_name>/smaxmin): Ditto.
7763 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
7764 (*<code><mode>3<mask_name>/smaxmin): Ditto.
7765 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
7766 (ufloatv16siv16sf2<mask_name>): Ditto.
7767 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
7768 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
7769 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
7770 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
7771 (ufloatv8siv8df<mask_name>): Ditto.
7772 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
7773 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
7774 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
7775 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
7776 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
7777 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
7778 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
7779 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
7780 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
7781 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
7782 (vec_extract_lo_<mode><mask_name>): Ditto.
7783 (vec_extract_hi_<mode><mask_name>): Ditto.
7784 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
7785 (avx512f_movddup512<mask_name>): Ditto.
7786 (avx512f_unpcklpd512<mask_name>): Ditto.
7787 (*avx512f_unpcklpd512<mask_name>): Ditto.
7788 (*avx512f_vmscalef<mode>): Ditto.
7789 (avx512f_scalef<mode><mask_name>): Ditto.
7790 (avx512f_getexp<mode><mask_name>): Ditto.
7791 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
7792 (avx512f_rndscale<mode><mask_name>): Ditto.
7793 (avx512f_shufps512_1<mask_name>): Ditto.
7794 (avx512f_shufpd512_1<mask_name>): Ditto.
7795 (<plusminus_insn><mode>3<mask_name>): Ditto.
7796 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7797 (vec_widen_umult_even_v16si<mask_name>): Ditto.
7798 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
7799 (vec_widen_smult_even_v16si<mask_name>): Ditto.
7800 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
7801 (mul<mode>3<mask_name>): Ditto.
7802 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
7803 (<shift_insn><mode>3<mask_name>): Ditto.
7804 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
7805 (avx512f_<rotate><mode><mask_name>): Ditto.
7806 (<code><mode>3<mask_name>/maxmin): Ditto.
7807 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
7808 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
7809 (*andnot<mode>3<mask_name>): Ditto.
7810 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
7811 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
7812 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
7813 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
7814 (vec_set_lo_<mode><mask_name>): Ditto.
7815 (vec_set_hi_<mode><mask_name>): Ditto.
7816 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
7817 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
7818 (avx512f_pshufd_1<mask_name>): Ditto.
7819 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
7820 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
7821 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
7822 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
7823 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
7824 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
7825 (avx512er_exp2<mode><mask_name>): Ditto.
7826 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
7827 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
7828 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
7829 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
7830 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
7831 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
7832 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
7833 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
7834 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
7835 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
7836 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
7837 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
7838 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
7839 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
7840 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
7841 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
7842 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
7843 (avx512f_getmant<mode><mask_name>): Ditto.
7844 (clz<mode>2<mask_name>): Ditto.
7845 (<mask_codefor>conflict<mode><mask_name>): Ditto.
7846 (*srcp14<mode>): Remove visibility.
7847 (*rsqrt14<mode>): Ditto.
7848 (*fma_fmsub_<mode>): Ditto.
7849 (*fma_fnmadd_<mode>): Ditto.
7850 (*avx512f_rndscale<mode>): Ditto.
7851 * config/i386/subst.md: New file.
7853 2013-11-13 Joseph Myers <joseph@codesourcery.com>
7855 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
7856 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
7857 (atomic_load_explicit, atomic_exchange_explicit)
7858 (atomic_compare_exchange_strong_explicit)
7859 (atomic_compare_exchange_weak_explicit): Use __auto_type to
7860 declare variable initialized with PTR argument.
7862 2013-11-12 Jeff Law <law@redhat.com>
7864 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
7865 backedge_seen_p. Set, use and pass it to children appropriately.
7866 (thread_through_normal_block): Similarly.
7867 (thread_across_edge): Similarly.
7869 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
7870 memory references as volatile.
7871 (insert_trap_and_remove_trailing_statements): Fix comment.
7873 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
7876 * ira-costs.c (record_operand_costs): Check operands number for
7879 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7882 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
7883 constraints that would allow DImode into the traditional Altivec
7884 registers, but cause undesirable code generation when loading 0 as
7886 (movdi_internal64): Likewise.
7887 (cmp<mode>_fpr): Do not use %x for CR register output.
7888 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
7889 -mallow-upper-sf debug switches are used.
7891 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
7893 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
7894 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
7895 Relocate prototypes from gimple.h.
7896 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
7897 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
7899 * gimple.h: Move some prototypes to gimplify.h.
7900 (gimple_predicate, enum fallback, enum gimplify_status): Move to
7902 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
7903 Relocate from gimpify.c.
7904 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
7905 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
7906 is_gimple_reg_rhs) Relocate from gimplify.c.
7907 * gimplify.c (mark_addressable): Move to gimple-expr.c.
7908 (gimple_seq_add_stmt_without_update): Move to gimple.c.
7909 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
7910 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
7911 is_gimple_reg_rhs): Move to gimple-expr.c.
7912 (should_carry_location_p): Move to gimple.c.
7913 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
7915 (annotate_one_with_location, annotate_all_with_location_after,
7916 annotate_all_with_location): Move to gimple.c.
7917 (compare_case_labels, sort_case_labels,
7918 preprocess_case_label_vec_for_gimple): Move to gimple.c.
7919 (rhs_predicate_for): Make static.
7920 (gimplify_assign): Relocate from gimple.c.
7921 * gimple.c (gimplify_assign): Move to gimplify.c.
7922 (gimple_seq_add_stmt_without_update, should_carry_location_p,
7923 annotate_one_with_location, annotate_all_with_location_after,
7924 annotate_all_with_location, compare_case_labels, sort_case_labels,
7925 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
7926 * tree.h (unshare_expr, unshare_expr_without_location,
7927 mark_addressable): Move prototypes to gimplify.h.
7928 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
7930 * asan.c: Include gimplify.h rather than gimple.h.
7931 * cfgloopmanip.c: Likewise.
7932 * cgraphunit.c: Likewise.
7933 * cilk-common.c: Likewise.
7934 * dwarf2out.c: Dont include gimple.h.
7935 * fold-const.c: Include gimplify.h rather than gimple.h.
7936 * function.c: Likewise.
7937 * gimple-fold.c: Likewise.
7938 * gimple-ssa-strength-reduction.c: Likewise.
7939 * graphite-clast-to-gimple.c: Likewise.
7940 * graphite-sese-to-poly.c: Likewise.
7941 * ipa-prop.c: Likewise.
7942 * ipa-split.c: Likewise.
7944 * langhooks.c: Dont include gimple.h.
7945 * loop-init.c: Include gimplify.h rather than gimple.h.
7946 * omp-low.c: Likewise.
7948 * stor-layout.c: Likewise.
7949 * targhooks.c: Likewise.
7950 * trans-mem.c: Likewise.
7951 * tree-affine.c: Likewise.
7952 * tree-cfg.c: Likewise.
7953 * tree-cfgcleanup.c: Likewise.
7954 * tree-complex.c: Likewise.
7955 * tree-if-conv.c: Likewise.
7956 * tree-inline.c: Likewise.
7957 * tree-iterator.c: Likewise.
7958 * tree-loop-distribution.c: Likewise.
7959 * tree-nested.c: Likewise.
7960 * tree-parloops.c: Likewise.
7961 * tree-predcom.c: Likewise.
7962 * tree-profile.c: Likewise.
7963 * tree-scalar-evolution.c: Likewise.
7964 * tree-sra.c: Likewise.
7965 * tree-ssa-address.c: Likewise.
7966 * tree-ssa-ccp.c: Likewise.
7967 * tree-ssa-dce.c: Likewise.
7968 * tree-ssa-forwprop.c: Likewise.
7969 * tree-ssa-ifcombine.c: Likewise.
7970 * tree-ssa-loop-im.c: Likewise.
7971 * tree-ssa-loop-ivopts.c: Likewise.
7972 * tree-ssa-loop-manip.c: Likewise.
7973 * tree-ssa-loop-niter.c: Likewise.
7974 * tree-ssa-loop-prefetch.c: Likewise.
7975 * tree-ssa-loop-unswitch.c: Likewise.
7976 * tree-ssa-math-opts.c: Likewise.
7977 * tree-ssa-phiopt.c: Likewise.
7978 * tree-ssa-phiprop.c: Likewise.
7979 * tree-ssa-pre.c: Likewise.
7980 * tree-ssa-propagate.c: Likewise.
7981 * tree-ssa-reassoc.c: Likewise.
7982 * tree-ssa-sccvn.c: Likewise.
7983 * tree-ssa-strlen.c: Likewise.
7984 * tree-ssa.c: Likewise.
7985 * tree-switch-conversio: Likewise.n.c
7986 * tree-tailcall.c: Likewise.
7987 * tree-vect-data-refs.c: Likewise.
7988 * tree-vect-generic.c: Likewise.
7989 * tree-vect-loop-manip.c: Likewise.
7990 * tree-vect-loop.c: Likewise.
7991 * tree-vect-patterns.c: Likewise.
7992 * tree-vect-stmts.c: Likewise.
7994 * value-prof.c: Likewise.
7995 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
7996 * config/alpha/alpha.c: Likewise.
7997 * config/darwin.c: Likewise.
7998 * config/i386/i386.c: Likewise.
7999 * config/ia64/ia64.c: Likewise.
8000 * config/mep/mep.c: Likewise.
8001 * config/mips/mips.c: Likewise.
8002 * config/rs6000/rs6000.c: Likewise.
8003 * config/s390/s390.c: Likewise.
8004 * config/sh/sh.c: Likewise.
8005 * config/sparc/sparc.c: Likewise.
8006 * config/spu/spu.c: Likewise.
8007 * config/stormy16/stormy16.c: Likewise.
8008 * config/tilegx/tilegx.c: Likewise.
8009 * config/tilepro/tilepro.c: Likewise.
8010 * config/xtensa/xtensa.c: Likewise.
8012 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8014 * tree.c (grow_tree_vec_stat): New function ...
8015 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8016 and macro front-end.
8018 2013-11-12 Marek Polacek <polacek@redhat.com>
8020 * final.c (update_alignments): Initialize label to NULL_RTX.
8022 2013-11-12 Jeff Law <law@redhat.com>
8024 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
8025 (insert_trap_and_remove_trailing_statements): New argument OP which
8026 is the NULL pointer. Emit the trap after the load/store through
8027 the NULL pointer. Simplify the RHS of a store through a NULL pointer
8028 when trivial to do so.
8029 (isolate_path): Corresponding changes.
8030 (gimple_ssa_isolate_erroneous_path): Likewise.
8032 2013-11-12 Teresa Johnson <tejohnson@google.com>
8033 Jan Hubicka <jh@suse.cz>
8035 * predict.c (drop_profile): New function.
8036 (handle_missing_profiles): Ditto.
8037 (counts_to_freqs): Don't overwrite estimated frequencies
8038 when function has no profile counts.
8039 * predict.h (handle_missing_profiles): Declare.
8040 * tree-inline.c (freqs_to_counts): New function.
8041 (copy_cfg_body): Invoke freqs_to_counts as needed.
8042 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
8044 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8047 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
8049 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
8051 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
8054 * config/i386/i386.c (ix86_option_override_internal): Check
8055 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
8056 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
8057 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
8058 MASK_AVX256_SPLIT_UNALIGNED_STORE.
8060 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8061 Clear m_COREI7_AVX and update comments.
8062 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
8064 2013-11-12 Martin Jambor <mjambor@suse.cz>
8066 PR rtl-optimization/10474
8067 * ira.c (interesting_dest_for_shprep): New function.
8068 (split_live_ranges_for_shrink_wrap): Likewise.
8069 (find_moveable_pseudos): Move calculation of dominance info,
8070 df_analysios and the final anlyses to...
8071 (ira): ...here, call split_live_ranges_for_shrink_wrap.
8073 2013-11-12 Bin Cheng <bin.cheng@arm.com>
8075 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
8076 Handle type conversion.
8078 2013-11-11 Martin Liska <marxin.liska@gmail.com>
8079 Jan Hubicka <jh@suse.cz>
8081 * cgraph.c (dump_cgraph_node): Profile dump added.
8082 * cgraph.h (struct cgraph_node): New time profile variable added.
8083 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
8084 * gcov-io.h (gcov_type): New profiler type introduced.
8085 * ipa-profile.c (lto_output_node): Streaming for time profile added.
8086 (input_node): Time profiler is read from LTO stream.
8087 * predict.c (maybe_hot_count_p): Hot prediction changed.
8088 * profile.c (instrument_values): New case for time profiler added.
8089 (compute_value_histograms): Read of time profile.
8090 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
8091 * tree-profile.c (init_ic_make_global_vars): Time profiler
8093 (gimple_init_edge_profiler): TP function instrumentation.
8094 (gimple_gen_time_profiler): New.
8095 * value-prof.c (gimple_add_histogram_value): Support for time profiler
8097 (dump_histogram_value): TP type added to dumps.
8098 (visit_hist): More sensitive check that takes TP into account.
8099 (gimple_find_values_to_profile): TP instrumentation.
8100 * value-prof.h (hist_type): New histogram type added.
8101 (struct histogram_value_t): Pointer to struct function added.
8102 * libgcc/Makefile.in: New GCOV merge function for TP added.
8103 * libgcov.c: function_counter variable introduced.
8104 (_gcov_merge_time_profile): New.
8105 (_gcov_time_profiler): New.
8107 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
8108 Jeff Law <law@redhat.com>
8110 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
8111 ao_ref_init_from_ptr_and_size for builtins.
8113 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
8114 H.J. Lu <hongjiu.lu@intel.com>
8117 * config/i386/x86-tune.def
8118 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8119 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
8120 * config/i386/i386.h
8121 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
8122 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
8123 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
8124 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
8125 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
8126 misaligned_prologue_used. Check that
8127 desired_aling <= epilogue_size_needed.
8129 2013-11-11 Cong Hou <congh@google.com>
8131 PR tree-optimization/59050
8132 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
8134 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8137 * expmed.c (emit_store_flag): Fail for const-const comparison.
8139 2013-11-11 Tristan Gingold <gingold@adacore.com>
8140 Eric Botcazou <ebotcazou@adacore.com>
8142 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
8143 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
8144 * tree.def (CONSTRUCTOR): Likewise.
8145 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
8146 * gimplify.c (gimplify_init_constructor): Do not clear the object when
8147 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
8149 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8151 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
8154 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8156 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
8159 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
8161 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
8163 2013-11-08 Jeff Law <law@redhat.com>
8165 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8166 threading paths first, then perform PHI node checks if applicable.
8168 2013-11-10 Karlson2k <k2k@narod.ru>
8169 Kai Tietz <ktietz@redhat.com>
8172 * configure.ac: Adding for exported symbols check
8173 and for rdynamic-check executable-extension.
8174 * configure: Regenerated.
8176 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
8178 * mode-switching.c (optimize_mode_switching): Mark block as
8179 nontransparent, if last_mode at block exit is different from no_mode.
8181 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8183 * function.c (NAME__MAIN): Move to...
8184 * cfgexpand.c (NAME__MAIN): ...here.
8186 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
8188 * target.def (can_use_doloop_p): New hook.
8189 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
8190 * doc/tm.texi: Regenerate.
8191 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
8192 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
8193 * hooks.c (hook_bool_dint_dint_uint_true): New function.
8194 * targhooks.h (can_use_doloop_if_innermost): Declare.
8195 * targhooks.c (can_use_doloop_if_innermost): New function.
8196 * target.h: Include double-int.h.
8197 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
8198 Remove iteration count, maximum iteration count, loop depth and
8199 enter-at-top inputs from doloop_begin and doloop_end.
8200 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
8202 * config/arc/arc.c (arc_can_use_doloop_p): New function.
8203 (TARGET_CAN_USE_DOLOOP_P): Define.
8204 * config/arm/thumb2.md (doloop_end): Update for new interface.
8205 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
8206 * config/bfin/bfin.md (doloop_end): Update for new interface.
8207 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
8208 (TARGET_CAN_USE_DOLOOP_P): Define.
8209 * config/c6x/c6x.md (doloop_end): Update for new interface.
8210 * config/ia64/ia64.md (doloop_end): Update for new interface.
8211 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8212 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8214 * config/mep/mep.c (mep_emit_doloop): Likewise.
8215 (TARGET_CAN_USE_DOLOOP_P): Define.
8216 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8217 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8218 * config/s390/s390.md (doloop_end): Update for new interface.
8219 * config/sh/sh.md (doloop_end): Likewise.
8220 * config/spu/spu.md (doloop_end): Likewise.
8221 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8222 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8223 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8224 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8225 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8226 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8228 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8230 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8233 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8236 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8237 Joseph Myers <joseph@codesourcery.com>
8239 * ginclude/stdatomic.h: New file.
8240 * Makefile.in (USER_H): Add stdatomic.h.
8242 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8244 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8247 2013-11-08 Jeff Law <law@redhat.com>
8249 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8250 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8251 (ssa_redirect_edges, thread_block_1): Use it.
8252 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8253 (thread_through_all_blocks, register_jump_thread): Likewise.
8254 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8256 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8258 * config/arm/aarch-common.c
8259 (search_term): New typedef.
8260 (shift_rtx_costs): New array.
8261 (arm_rtx_shift_left_p): New.
8262 (arm_find_sub_rtx_with_search_term): Likewise.
8263 (arm_find_sub_rtx_with_code): Likewise.
8264 (arm_early_load_addr_dep): Add sanity checking.
8265 (arm_no_early_alu_shift_dep): Likewise.
8266 (arm_no_early_alu_shift_value_dep): Likewise.
8267 (arm_no_early_mul_dep): Likewise.
8268 (arm_no_early_store_addr_dep): Likewise.
8270 2013-11-08 Richard Biener <rguenther@suse.de>
8272 PR tree-optimization/59047
8273 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
8275 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
8277 * common.opt (fcheck-pointer-bounds): Move to ...
8278 * c-family/c.opt: ... here.
8279 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
8280 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
8281 * langhooks.h (lang_hooks): Remove chkp_supported field.
8282 * toplev.c (process_options): Remove chkp_supported check.
8284 2013-11-08 Richard Biener <rguenther@suse.de>
8286 PR tree-optimization/59038
8287 PR tree-optimization/58955
8288 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
8289 previous change. Handle known dependences correctly.
8291 2013-11-08 Tom de Vries <tom@codesourcery.com>
8293 * config/rs6000/t-xilinx: Remove duplicate contents.
8295 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
8296 Joseph Myers <joseph@codesourcery.com>
8298 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
8299 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
8300 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
8301 (struct tree_base): Add atomic_flag field.
8302 * tree.h (TYPE_ATOMIC): New accessor macro.
8303 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
8304 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
8305 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
8306 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
8307 * tree.c (set_type_quals): Set TYPE_ATOMIC.
8308 (find_atomic_core_type): New function.
8309 (build_qualified_type): Adjust alignment for qualified types.
8310 (build_atomic_base): New function
8311 (build_common_tree_nodes): Build atomicQI_type_node,
8312 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
8314 * print-tree.c (print_node): Print atomic qualifier.
8315 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
8316 * target.def (atomic_assign_expand_fenv): New hook.
8317 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
8318 * doc/tm.texi: Regenerate.
8319 * targhooks.c (default_atomic_assign_expand_fenv): New function.
8320 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
8321 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
8322 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
8324 * config/i386/i386.c (enum ix86_builtins): Add
8325 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
8326 IX86_BUILTIN_FNCLEX.
8327 (bdesc_special_args): Add __builtin_ia32_fnstenv,
8328 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
8329 (ix86_expand_builtin): Handle the new built-in functions.
8330 (ix86_atomic_assign_expand_fenv): New function.
8331 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
8332 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
8333 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
8334 (fnstenv, fldenv, fnstsw, fnclex): New insns.
8336 2013-11-07 Steve Ellcey <sellcey@mips.com>
8338 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
8339 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
8340 (MULTILIB_DIRNAMES): Add fp64 directory.
8341 (MULTILIB_EXCEPTIONS): Add new exclusions.
8343 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
8345 * gimplify.c (gimple_regimplify_operands): Do not set
8347 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
8348 (rewrite_close_phi_out_of_ssa): Same.
8349 (rewrite_phi_out_of_ssa): Same.
8350 (rewrite_degenerate_phi): Same.
8351 (handle_scalar_deps_crossing_scop_limits): Same.
8352 * tree-if-conv.c (predicate_scalar_phi): Same.
8353 * tree-parloops.c (create_loads_for_reductions): Same.
8354 (create_final_loads_for_reduction): Same.
8355 (create_loads_and_stores_for_name): Same.
8356 (transform_to_exit_first_loop): Same.
8357 (create_parallel_loop): Same.
8358 * tree-ssa-loop-im.c
8359 (move_computations_dom_walker::before_dom_children): Same.
8360 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
8361 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
8362 * tree-ssa-propagate.c (substitute_and_fold): Same.
8363 * tree-vect-loop.c (vect_finalize_reduction): Same.
8364 * tree-vect-stmts.c (vectorizable_call): Same.
8366 2013-11-07 Mike Stump <mikestump@comcast.net>
8368 * config/pdp11/pdp11.c: Include dbxout.h.
8369 * config/picochip/picochip.c: Likewise.
8371 2013-11-07 Cong Hou <congh@google.com>
8373 PR tree-optimization/56764
8374 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8375 Combine alias checks if it is possible to amortize the runtime
8376 overhead. Return the number of alias checks after merging.
8377 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8378 Use the function vect_create_cond_for_alias_checks () to check
8379 the number of alias checks.
8381 2013-11-07 Jeff Law <law@redhat.com>
8383 * varpool.c (ctor_for_folding): Fix typo in comment.
8385 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
8387 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
8388 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
8390 2013-11-07 Jeff Law <law@redhat.com>
8392 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
8394 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
8395 No longer check if we have __builtin_trap, assume it's available.
8397 2013-11-07 Diego Novillo <dnovillo@google.com>
8399 * attribs.c (lookup_scoped_attribute_spec): Make static.
8400 (get_attribute_namespace): Likewise.
8401 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
8402 (validate_arglist): Move earlier in the file. Make static.
8403 (expand_stack_restore): Move from stmt.c
8404 (expand_stack_save): Move from stmt.c
8405 (rewrite_call_expr_array): Move earlier in the file.
8406 (rewrite_call_expr_valist): Likewise.
8407 * cfgexpand.c: Include hard-reg-set.h before tree.h
8410 (expand_asm_loc): Move from stmt.c.
8411 (n_occurrences): Move from stmt.c.
8412 (check_operand_nalternatives): Move from stmt.c.
8413 (tree_conflicts_with_clobbers_p): Move from stmt.c.
8414 (expand_asm_operands): Move from stmt.c
8415 (expand_asm_stmt): Move from stmt.c
8416 (expand_computed_goto): Move from stmt.c
8417 (expand_goto): Move from stmt.c
8418 (expand_null_return_1): Move from stmt.c
8419 (expand_null_return): Move from stmt.c
8420 (expand_value_return): Move from stmt.c
8421 (expand_return): Move from stmt.c
8422 (expand_main_function): Move from function.c
8423 (stack_protect_prologue): Move from function.c
8424 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
8425 (build_function_decl_skip_args): Move from tree.c.
8426 * explow.c (tree_expr_size): Move from tree.c.
8427 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
8428 (fields_length): Move from tree.c.
8429 * fold-const.c (size_low_cst): Move from tree.c.
8430 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
8431 (tree_expr_nonzero_p): Make static. Move earlier in the file.
8432 (fold_build3_initializer_loc): Remove.
8433 (tree_invalid_nonnegative_warnv_p): Make static.
8434 * function.c (expand_main_function): Move to cfgexpand.c.
8435 (stack_protect_prologue): Move to cfgexpand.c.
8436 (set_insn_locations): Move earlier in the file.
8437 * gimple-fold.c: Include langhooks.h.
8438 (truth_type_for): Move from tree.c.
8439 * print-tree.c (print_vec_tree): Remove.
8440 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
8441 (expand_goto): Move to cfgexpand.c.
8442 (n_occurrences): Move to cfgexpand.c.
8443 (expand_asm_loc): Move to cfgexpand.c
8444 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
8445 (expand_asm_operands): Move to cfgexpand.c.
8446 (expand_asm_stmt): Move to cfgexpand.c.
8447 (check_operand_nalternatives): Move to cfgexpand.c
8448 (expand_null_return): Move to cfgexpand.c.
8449 (expand_value_return): Move to cfgexpand.c.
8450 (expand_null_return_1): Move to cfgexpand.c.
8451 (expand_return): Move to cfgexpand.c.
8452 (expand_stack_save): Move to builtins.c.
8453 (expand_stack_restore): Move to builtins.c
8454 * symtab.c: Include output.h.
8455 (decl_assembler_name_hash): Move from tree.c.
8456 (decl_assembler_name_equal): Move from tree.c.
8457 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
8458 * tree-eh.c (in_array_bounds_p): Move from tree.c.
8459 (range_in_array_bounds_p): Move from tree.c.
8460 * tree-object-size.c (fini_object_sizes): Make static.
8461 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
8462 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
8463 * tree.c (decl_assembler_name_equal): Move to symtab.c.
8464 (tree_expr_size): Move to explow.c.
8465 (decl_assembler_name_hash): Move to symtab.c.
8466 (real_twop): Remove.
8467 (tree_expr_size): Move to explow.c.
8468 (stabilize_reference_1): Move earlier in the file. Make static.
8469 (omp_remove_redundant_declare_simd_attrs): Remove.
8470 (simple_cst_list_equal): Move earlier in the file. Make static.
8471 (size_low_cst): Move to fold-const.c.
8472 (build_type_no_quals): Remove.
8473 (build_function_type_skip_args): Move to cgraphclones.c.
8474 (build_function_decl_skip_args): Move to cgraphclones.c.
8475 (in_array_bounds_p): Move to tree-eh.c.
8476 (range_in_array_bounds_p): Move to tree-eh.c.
8477 (truth_type_for): Move to gimple-fold.c.
8478 (list_equal_p): Remove.
8479 * tree.h (decl_assembler_name_equal): Remove.
8480 (decl_assembler_name_hash): Remove.
8481 (truth_type_for): Remove.
8482 (build_type_no_quals): Remove.
8483 (build_function_decl_skip_args): Remove.
8484 (in_array_bounds_p): Remove.
8485 (range_in_array_bounds_p): Remove.
8486 (size_low_cst): Remove.
8487 (omp_remove_redundant_declare_simd_attrs): Remove.
8488 (tree_expr_size): Remove.
8489 (fields_length): Remove.
8490 (stabilize_reference_1): Remove.
8491 (expand_goto): Remove.
8492 (expand_stack_save): Remove.
8493 (expand_stack_restore): Remove.
8494 (expand_return): Remove.
8495 (fold_build3_initializer_loc): Remove.
8496 (tree_expr_nonzero_p): Remove.
8497 (tree_invalid_nonnegative_warnv_p): Remove.
8498 (tree_expr_nonzero_warnv_p): Remove.
8499 (fold_builtin_snprintf_chk): Remove.
8500 (validate_arglist): Remove.
8501 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
8502 (simple_cst_list_equal): Remove.
8503 (real_twop): Remove.
8504 (expand_main_function): Remove.
8505 (stack_protect_prologue): Remove.
8506 (print_vec_tree): Remove.
8507 (lookup_scoped_attribute_spec): Remove.
8508 (get_attribute_namespace): Remove.
8509 (expand_computed_goto): Remove.
8510 (expand_asm_stmt): Remove.
8511 (list_equal_p): Remove.
8512 (ssa_name_nonnegative_p): Remove.
8513 (fini_object_sizes): Remove.
8514 (addr_expr_of_non_mem_decl_p): Remove.
8515 (is_tm_safe_or_pure): Move to trans-mem.c.
8516 (more_const_call_expr_args_p): Remove.
8517 (save_vtable_map_decl): Remove.
8519 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8521 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
8522 linker plugins, too.
8524 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
8525 link to libgomp and its dependencies.
8526 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8527 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8528 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8529 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
8531 2013-11-07 Jakub Jelinek <jakub@redhat.com>
8533 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
8534 (determine_value_range): Add loop argument. Use get_range_info to
8536 (bound_difference): Adjust caller.
8538 2013-11-07 Richard Biener <rguenther@suse.de>
8539 Jakub Jelinek <jakub@redhat.com>
8541 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
8542 latches from header PHI arguments from the latch edge.
8544 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
8547 * varasm.c (output_constant): Handle NULLPTR_TYPE.
8549 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8551 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
8552 misaligned_prologue_used when it has been set.
8554 2013-11-07 Yury Gribov <y.gribov@samsung.com>
8555 Jakub Jelinek <jakub@redhat.com>
8558 * asan.c (get_mem_refs_of_builtin_call): Allow
8559 integer literals as addresses in instrumented builtins.
8561 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8563 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8564 Explain why plus_constant is not used.
8566 2013-11-07 Richard Biener <rguenther@suse.de>
8568 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
8569 (canonicalize_value): ... this. Also handle stripping of
8571 (get_value, set_lattice_value, get_value_for_expr): Adjust.
8572 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
8573 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8575 2013-11-07 Richard Biener <rguenther@suse.de>
8577 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
8579 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8582 * config/i386/i386.md (push peepholer/splitter): Use Pmode
8583 with stack_pointer_rtx.
8585 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8587 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
8588 using operand_equal_p.
8590 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8592 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
8593 * tree-affine.c (get_inner_reference_aff): Return base.
8594 * tree-affine.h (get_inner_reference_aff): Change prototype.
8596 2013-11-06 Tobias Burnus <burnus@net-b.de>
8598 * doc/invoke.texi (Wdate-time): Fix typo.
8600 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8602 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
8603 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
8604 fp_arith_reg_operand instead of arith_reg_operand.
8606 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8608 * config/sh/sh.md (adddi3): Remove empty constraints.
8609 Remove can_create_pseudo_p and arith_reg_operand check.
8610 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
8611 Split before reload.
8613 2013-11-06 Jeff Law <law@redhat.com>
8614 Tom Tromey <tromey@redhat.com>
8616 * gdbinit.in: Disable strict type checking.
8618 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
8620 * tree-pass.h (make_pass_live_range_shrinkage): New external.
8621 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
8622 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
8623 (rest_of_handle_live_range_shrinkage): Ditto
8624 (class pass_live_range_shrinkage): Ditto.
8625 (pass_data_live_range_shrinkage): Ditto.
8626 (make_pass_live_range_shrinkage): Ditto.
8627 * sched-int.h (initialize_live_range_shrinkage): New prototype.
8628 (finish_live_range_shrinkage): Ditto.
8629 * sched-deps.c (create_insn_reg_set): Make void return value.
8630 * passes.def: Add pass_live_range_shrinkage.
8631 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
8632 * haifa-sched.c (live_range_shrinkage_p): New.
8633 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
8635 (rank_for_schedule): Add code for pressure relief through live
8637 (schedule_insn): Print more debug info.
8638 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
8639 through live range shrinkage.
8640 * doc/invoke.texi (-flive-range-shrinkage): New.
8641 * common.opt (flive-range-shrinkage): New.
8643 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
8646 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
8647 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
8648 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
8649 RTXes that return in AVX256 register.
8651 2013-11-06 Richard Biener <rguenther@suse.de>
8653 PR tree-optimization/58653
8654 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
8655 (prepare_initializers_chain): Adjust.
8657 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
8659 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
8660 (gimple_in_transaction): Use bb_in_transaction.
8661 * basic-block.h (bb_in_transaction): Relocate here and rename.
8662 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
8664 2013-11-06 Richard Biener <rguenther@suse.de>
8666 * tree.c (drop_tree_overflow): New function.
8667 * tree.h (drop_tree_overflow): Declare.
8668 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
8669 * tree-vrp.c (range_int_cst_singleton_p): Use
8670 is_overflow_infinity instead of testing TREE_OVERFLOW.
8671 (extract_range_from_assert): Likewise.
8672 (zero_nonzero_bits_from_vr): Likewise.
8673 (extract_range_basic): Likewise.
8674 (register_new_assert_for): Use drop_tree_overflow.
8675 (vrp_visit_phi_node): Likewise.
8677 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
8679 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
8680 checking for leaf functions without dynamic stack allocation.
8681 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
8682 (ia64_expand_prologue): Likewise.
8683 * config/mips/mips.c (mips_expand_prologue): Likewise.
8684 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8685 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8686 (sparc_flat_expand_prologue): Likewise.
8688 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8690 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
8691 (__ST3_LANE_FUNC): Likewise.
8692 (__ST4_LANE_FUNC): Likewise.
8694 2013-11-06 Nick Clifton <nickc@redhat.com>
8696 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
8697 name returned by msp430_mcu_name.
8698 (LIB_SPEC): If a -T option has not been specified then set a
8699 default, mcu-specific, linker script.
8700 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
8701 * config/msp430/msp430.c (msp430x_names): Likewise.
8702 Alpha sort the names for ease of comparison.
8703 (msp430_mcu_name): New function: Returns a string suitable for
8704 use as a C preprocessor symbol based upon the name of the MCU
8706 (msp430_option_override): Accept msp430x and msp430xv2 as generic
8708 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
8710 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
8711 unless it is the last part of a spec substring.
8712 * doc/invoke.texi (Spec Files): Document space insertion
8715 2013-11-06 Christian Bruel <christian.bruel@st.com>
8717 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
8718 Factorize probabilities, Use adjust_address instead of
8719 adjust_automodify_address when possible. Enable for optimize.
8720 (sh_expand_strlen): New function.
8721 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
8722 * config/sh/sh.md (strlensi): New pattern.
8723 (UNSPEC_BUILTIN_STRLEN): Define.
8725 2013-11-06 Jakub Jelinek <jakub@redhat.com>
8728 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
8729 (expand_assignment): If *bitpos is negative, set *offset
8730 and adjust *bitpos, so that it is not negative.
8732 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8734 * config/i386/bdver3.md : Added two additional decoder units
8735 to support issue rate of 4 and remodeled vector unit.
8736 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
8737 architectures is set to 4.
8738 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
8739 lookahead is set to 4 for BD architectures.
8741 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8743 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8744 Remove restriction against use of VSX instructions when generating
8745 code for little endian mode.
8747 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8749 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
8750 for both big and little endian.
8751 (mulv8hi3): Swap input operands for merge high and merge low
8752 instructions for little endian.
8754 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8756 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
8757 define_insn to define_expand that uses even patterns for big
8758 endian and odd patterns for little endian.
8759 (vec_widen_smult_even_v16qi): Likewise.
8760 (vec_widen_umult_even_v8hi): Likewise.
8761 (vec_widen_smult_even_v8hi): Likewise.
8762 (vec_widen_umult_odd_v16qi): Likewise.
8763 (vec_widen_smult_odd_v16qi): Likewise.
8764 (vec_widen_umult_odd_v8hi): Likewise.
8765 (vec_widen_smult_odd_v8hi): Likewise.
8766 (altivec_vmuleub): New define_insn.
8767 (altivec_vmuloub): Likewise.
8768 (altivec_vmulesb): Likewise.
8769 (altivec_vmulosb): Likewise.
8770 (altivec_vmuleuh): Likewise.
8771 (altivec_vmulouh): Likewise.
8772 (altivec_vmulesh): Likewise.
8773 (altivec_vmulosh): Likewise.
8775 2013-11-05 Mike Stump <mikestump@comcast.net>
8777 * Makefile.in (mostlyclean): Remove c-family objects.
8779 2013-11-05 Ian Lance Taylor <iant@google.com>
8781 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
8782 If possible, add .cfi directives to record change to bx.
8783 * config/i386/i386.c (ix86_emit_cfi): New function.
8784 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
8786 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
8788 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
8789 immediately after a label for a tablejump pattern.
8791 * config/arm/arm.c (is_jump_table): Remove.
8792 (create_fix_barrier): Use tablejump_p instead.
8793 (arm_reorg): Likewise.
8794 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
8795 (thumb2_output_casesi): Likewise.
8796 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
8797 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
8798 casesi_shift_media, casesi_load_media): Likewise.
8799 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
8800 * config/microblaze/microblaze.md: Likewise.
8802 2013-11-05 Tobias Burnus <burnus@net-b.de>
8804 * doc/invoke.texi (-Wdate-time): Document.
8806 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
8808 * double-int.c (lshift_double, rshift_double): Remove
8809 SHIFT_COUNT_TRUNCATED handling.
8811 2013-11-05 Jeff Law <law@redhat.com>
8813 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
8814 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
8815 * gimple-ssa-isolate-paths.c: New file.
8816 * gimple.c (check_loadstore): New function.
8817 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
8818 Verify OP is in the argument list and the argument corresponding
8819 to OP is a pointer type. Use operand_equal_p rather than
8820 pointer equality when testing if OP is on the nonnull list.
8821 Use check_loadstore rather than count_ptr_derefs. Handle
8822 GIMPLE_RETURN statements.
8823 * tree-vrp.c (infer_nonnull_range): Remove.
8824 * gimple.h (infer_nonnull_range): Declare.
8825 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
8826 * passes.def: Add pass_isolate_erroneous_paths.
8827 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
8828 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
8829 * tree-ssa.c (struct count_ptr_d): Remove.
8830 (count_ptr_derefs, count_uses_and_derefs): Remove.
8831 * tree-ssa.h (count_uses_and_derefs): Remove.
8833 2013-11-05 Jakub Jelinek <jakub@redhat.com>
8835 PR rtl-optimization/58997
8836 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
8837 get_iv_value to be in iv->mode rather than iv->extend_mode.
8838 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
8839 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
8840 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
8843 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
8845 * gimple.h: Move some prototypes to gimple-expr.h and add to include
8847 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
8848 Move to gimple-expr.h.
8849 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
8850 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
8851 is_gimple_id, virtual_operand_p, is_gimple_addressable,
8852 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
8854 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
8855 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
8856 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
8857 is_gimple_address, is_gimple_invariant_address,
8858 is_gimple_ip_invariant_address, is_gimple_min_invariant,
8859 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
8860 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
8861 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
8862 gimple_decl_printable_name, useless_type_conversion_p,
8863 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
8865 * gimple-expr.c: New File.
8866 (useless_type_conversion_p, gimple_set_body, gimple_body,
8867 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
8868 gimple_can_coalesce_p, extract_ops_from_tree_1,
8869 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
8870 is_gimple_address, is_gimple_invariant_address,
8871 is_gimple_ip_invariant_address, is_gimple_min_invariant,
8872 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
8873 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
8874 is_gimple_mem_ref_addr): Relocate here.
8875 * Makefile.in (OBJS): Add gimple-expr.o.
8877 2013-11-05 David Malcolm <dmalcolm@redhat.com>
8879 * gengtype-parse.c (struct_field_seq): Support empty structs.
8881 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8883 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
8885 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8887 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
8889 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
8891 (LONG_DOUBLE_TYPE_SIZE): New define.
8892 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
8894 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
8897 * doc/extend.texi [visibility ("visibility_type")]: Add example
8898 about visibility attribute on namespace declaration.
8900 2013-11-05 Richard Biener <rguenther@suse.de>
8903 * passes.def (all_passes): Start with pass_fixup_cfg again.
8905 2013-11-05 Richard Biener <rguenther@suse.de>
8907 PR tree-optimization/58955
8908 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
8911 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8913 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
8915 (vec_pack_ufix_trunc_v2df): Likewise.
8917 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
8920 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
8921 pattern, instead of word_mode.
8923 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
8925 (set_storage_via_setmem): Likewise.
8927 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
8929 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
8930 gimple.h and the rest of the condition in eliminate_build.
8931 (eliminate_build): Call new routine.
8932 * gimple.h (phi_ssa_name_p): Delete.
8934 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
8936 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
8937 case of no prefix and reserving zero slots, because when that's the
8938 case we'll never get here.
8939 * vec.h (va_heap::reserve): Don't try and handle
8940 vec_prefix::calculate_allocation returning zero because that should
8943 2013-11-05 Richard Biener <rguenther@suse.de>
8946 * tree-dfa.c (get_ref_base_and_extent): Merge common code
8947 in MEM_REF and TARGET_MEM_REF handling. Make sure to
8948 process trailing array detection before diving into the
8949 view-converted object (and possibly apply some extra offset).
8951 2013-11-05 Joseph Myers <joseph@codesourcery.com>
8953 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
8955 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
8957 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
8959 PR tree-optimization/58958
8960 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
8961 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8963 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
8965 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
8966 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
8968 2013-11-05 Jakub Jelinek <jakub@redhat.com>
8970 PR tree-optimization/58984
8971 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
8972 set *SIZE_P if non-NULL on success.
8973 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
8975 (ipcp_transform_function): Likewise. Punt if size of access
8976 is different from TYPE_SIZE on v->value's type.
8978 2013-11-05 Tobias Burnus <burnus@net-b.de>
8980 * doc/invoke.texi (-fopenmp-simd): Document new option.
8981 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
8982 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
8983 * tree.c (attribute_value_equal): Ditto.
8985 2013-11-04 Wei Mi <wmi@google.com>
8987 * sched-rgn.c (add_branch_dependences): Keep insns in
8988 a SCHED_GROUP at the end of BB to remain their location.
8990 2013-11-04 Wei Mi <wmi@google.com>
8992 * config/i386/i386.c (memory_address_length): Extract a part
8993 of code to rip_relative_addr_p.
8994 (rip_relative_addr_p): New Function.
8995 (ix86_macro_fusion_p): Ditto.
8996 (ix86_macro_fusion_pair_p): Ditto.
8997 * config/i386/i386.h: Add new tune features about macro-fusion.
8998 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
8999 * doc/tm.texi: Generated.
9000 * doc/tm.texi.in: Ditto.
9001 * haifa-sched.c (try_group_insn): New Function.
9002 (group_insns_for_macro_fusion): Ditto.
9003 (sched_init): Call group_insns_for_macro_fusion.
9004 * target.def: Add two hooks: macro_fusion_p and
9005 macro_fusion_pair_p.
9007 2013-11-04 Kostya Serebryany <kcc@google.com>
9009 Update to match the changed asan API.
9010 * asan.c (asan_function_start): New function.
9011 (asan_emit_stack_protection): Update the string stored in the
9012 stack red zone to match new API. Store the PC of the current
9013 function in the red zone.
9014 (asan_global_struct): Update the __asan_global definition to match
9016 (asan_add_global): Ditto.
9017 * asan.h (asan_function_start): New prototype.
9018 * final.c (final_start_function): Call asan_function_start.
9019 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9022 2013-11-04 Wei Mi <wmi@google.com>
9024 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
9025 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
9026 * config/i386/i386.c (ix86_option_override_internal): Ditto.
9027 (ix86_issue_rate): Ditto.
9028 (ix86_adjust_cost): Ditto.
9029 (ia32_multipass_dfa_lookahead): Ditto.
9030 (ix86_sched_init_global): Ditto.
9031 (get_builtin_code_for_version): Ditto.
9032 * config/i386/i386.h (enum target_cpu_default): Ditto.
9033 (enum processor_type): Ditto.
9034 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9036 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9038 PR rtl-optimization/58967
9039 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
9040 !lra_in_progress for mode sizes bigger word.
9042 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9044 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
9045 arguments to merge instruction for little endian.
9046 (vec_widen_umult_lo_v16qi): Likewise.
9047 (vec_widen_smult_hi_v16qi): Likewise.
9048 (vec_widen_smult_lo_v16qi): Likewise.
9049 (vec_widen_umult_hi_v8hi): Likewise.
9050 (vec_widen_umult_lo_v8hi): Likewise.
9051 (vec_widen_smult_hi_v8hi): Likewise.
9052 (vec_widen_smult_lo_v8hi): Likewise.
9054 2013-11-04 Ian Lance Taylor <iant@google.com>
9056 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
9057 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
9058 builtins that take pointers.
9059 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
9060 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
9061 (run_gcc): Pass -fnon-call-exceptions.
9063 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9065 * optabs.c (expand_vec_perm): Revert one incorrect line from
9068 PR tree-optimization/58978
9069 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
9070 use_stmt by single_imm_use directly. Only call single_imm_use
9073 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
9075 PR rtl-optimization/58968
9076 * lra-spills.c (return_regno_p): New function.
9077 (lra_final_code_change): Use it.
9079 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9081 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
9082 * target.def (float_exceptions_rounding_supported_p): New hook.
9083 * targhooks.c (default_float_exceptions_rounding_supported_p): New
9085 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
9086 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
9088 * doc/tm.texi: Regenerate.
9089 * config.gcc (powerpc*-*-linux*): Set extra_objs.
9090 * config/rs6000/rs6000-linux.c: New file.
9091 * config/rs6000/rs6000-protos.h
9092 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
9093 * config/rs6000/linux.h
9094 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
9095 * config/rs6000/linux64.h
9096 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
9097 * config/rs6000/t-linux (rs6000-linux.o): New rule.
9098 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
9100 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9102 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
9103 Replace the define_insn_and_split with a define_insn and two
9104 define_splits, with the split after reload re-permuting the source
9105 register to its original value.
9106 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
9107 (*vsx_le_perm_store_v8hi): Likewise.
9108 (*vsx_le_perm_store_v16qi): Likewise.
9110 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9112 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
9115 2013-11-04 Jakub Jelinek <jakub@redhat.com>
9117 PR tree-optimization/58946
9118 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
9119 bbs with bbinfo[idx].op != NULL before all blocks with
9120 bbinfo[idx].op == NULL.
9122 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
9124 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
9125 (avr_dump_double_int_hex): Likewise.
9126 (avr_log_vadump): Remove %D and %X handling.
9127 * config/avr/avr.c (avr_double_int_push_digit): Delete.
9128 (avr_map_op_t): Change map from double_int to unsigned int.
9129 (avr_map_op): Update accordingly.
9130 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
9131 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
9132 unsigned ints rather than double_ints.
9134 2013-11-03 Marek Polacek <polacek@redhat.com>
9136 Implement -fsanitize=vla-bound.
9137 * opts.c (common_handle_option): Handle vla-bound.
9138 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
9139 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
9140 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
9142 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9144 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
9147 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
9149 * config/i386/constraints.md (Ts, Tv): New address constrains.
9150 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
9151 constraint for address_no_seg_operand.
9152 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
9153 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
9154 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
9155 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
9156 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
9157 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
9158 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
9159 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
9160 constraint for vsib_address_operand.
9162 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
9164 * gcse.c (pre_delete): Remove references to regmove from comments.
9165 * recog.c: (validate_replace_rtx_1): Likewise.
9166 * config/rl78/rl78.c: Likewise.
9167 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
9168 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
9169 * common/config/mmix/mmix-common.c: Likewise.
9171 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
9173 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
9174 * gimplify.c (gimplify_compound_lval): Likewise.
9175 * graphite-clast-to-gimple.c (gloog): Likewise.
9176 * graphite-dependences.c (loop_is_parallel_p): Likewise.
9177 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
9178 (limit_scop); Likewise.
9179 (build_scops): Likewise.
9180 (dot_scop): Likewise.
9181 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
9182 (build_scop_drs): Likewise.
9183 (insert_stmts): Likewise.
9184 (insert_out_of_ssa_copy): Likewise.
9185 (remove_phi): Likewise.
9186 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
9187 * hw-doloop.c (discover_loop): Likewise.
9188 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
9189 * tree-dfa.c (dump_enumerated_decls): Likewise.
9190 * tree-if-conv.c (if_convertable_loop_p): Likewise.
9191 * tree-inline.c (tree_function_versioning): Likewise.
9192 * tree-loop-distribution.c (build_rdg): Likewise.
9193 (rdg_flag_vertex_and_dependent): Likewise.
9194 (distribute_loop): Likewise.
9195 * tree-parloops.c (loop_parallel_p): Likewise.
9196 (eliminate_local_variables): Likewise.
9197 (separate_decls_in_region): Likewise.
9198 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
9199 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
9200 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
9201 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
9202 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
9203 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9204 (vectorizable_condition): Likewise.
9206 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
9208 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
9209 * configure: Regenerate.
9210 * config/i386/i386.md (*movdi_internal): Change
9211 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9212 (*movdf_internal): Ditto.
9213 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9214 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9215 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9217 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9219 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9222 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9224 Automated part of renaming of symtab_node_base to symtab_node.
9226 Patch autogenerated by rename_symtab.py from
9227 https://github.com/davidmalcolm/gcc-refactoring-scripts
9228 revision 58bb219cc090b2f4516a9297d868c245495ee622
9229 with ChangeLog entry fixed up by hand.
9231 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9233 (cgraph_node_for_asm): Likewise.
9234 * cgraph.h (symtab_node_base): Likewise.
9235 (cgraph_node): Likewise.
9236 (varpool_node): Likewise.
9237 (is_a_helper <cgraph_node>::test): Likewise.
9238 (is_a_helper <varpool_node>::test): Likewise.
9239 (symtab_nodes): Likewise.
9240 (symtab_register_node): Likewise.
9241 (symtab_unregister_node): Likewise.
9242 (symtab_remove_node): Likewise.
9243 (symtab_get_node): Likewise.
9244 (symtab_node_for_asm): Likewise.
9245 (symtab_node_asm_name): Likewise.
9246 (symtab_node_name): Likewise.
9247 (symtab_insert_node_to_hashtable): Likewise.
9248 (symtab_add_to_same_comdat_group): Likewise.
9249 (symtab_dissolve_same_comdat_group_list): Likewise.
9250 (dump_symtab_node): Likewise.
9251 (debug_symtab_node): Likewise.
9252 (dump_symtab_base): Likewise.
9253 (verify_symtab_node): Likewise.
9254 (verify_symtab_base): Likewise.
9255 (symtab_used_from_object_file_p): Likewise.
9256 (symtab_alias_ultimate_target): Likewise.
9257 (symtab_resolve_alias): Likewise.
9258 (fixup_same_cpp_alias_visibility): Likewise.
9259 (symtab_for_node_and_aliases): Likewise.
9260 (symtab_nonoverwritable_alias): Likewise.
9261 (availability symtab_node_availability): Likewise.
9262 (symtab_semantically_equivalent_p): Likewise.
9263 (fixup_same_cpp_alias_visibility): Likewise.
9264 (symtab_prevail_in_asm_name_hash): Likewise.
9266 (varpool): Likewise.
9267 (varpool_first_variable): Likewise.
9268 (varpool_next_variable): Likewise.
9269 (varpool_first_static_initializer): Likewise.
9270 (varpool_next_static_initializer): Likewise.
9271 (varpool_first_defined_variable): Likewise.
9272 (varpool_next_defined_variable): Likewise.
9273 (cgraph_first_defined_function): Likewise.
9274 (cgraph_next_defined_function): Likewise.
9275 (cgraph_first_function): Likewise.
9276 (cgraph_next_function): Likewise.
9277 (cgraph_first_function_with_gimple_body): Likewise.
9278 (cgraph_next_function_with_gimple_body): Likewise.
9279 (symtab_alias_target): Likewise.
9280 (symtab_real_symbol_p): Likewise.
9281 (symtab_can_be_discarded): Likewise.
9282 * cgraphbuild.c (mark_address): Likewise.
9283 (mark_load): Likewise.
9284 (mark_store): Likewise.
9285 * cgraphunit.c (decide_is_symbol_needed): Likewise.
9287 (enqueue_node): Likewise.
9288 (referred_to_p): Likewise.
9289 (cgraph_process_same_body_aliases): Likewise.
9290 (analyze_functions): Likewise.
9291 (handle_alias_pairs): Likewise.
9292 (output_weakrefs): Likewise.
9293 (compile): Likewise.
9294 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9295 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9296 * ipa-prop.c (remove_described_reference): Likewise.
9297 (try_decrement_rdesc_refcount): Likewise.
9298 (ipa_edge_duplication_hook): Likewise.
9299 * ipa-ref.c (ipa_record_reference): Likewise.
9300 (ipa_maybe_record_reference): Likewise.
9301 (ipa_clone_ref): Likewise.
9302 (ipa_clone_references): Likewise.
9303 (ipa_clone_referring): Likewise.
9304 (ipa_find_reference): Likewise.
9305 (ipa_remove_stmt_references): Likewise.
9306 (ipa_clear_stmts_in_references): Likewise.
9307 * ipa-ref.h (symtab_node_base): Likewise.
9308 (ipa_ref): Likewise.
9309 (ipa_record_reference): Likewise.
9310 (ipa_maybe_record_reference): Likewise.
9311 (ipa_clone_references): Likewise.
9312 (ipa_clone_referring): Likewise.
9313 (ipa_clone_ref): Likewise.
9314 (ipa_find_reference): Likewise.
9315 (ipa_remove_stmt_references): Likewise.
9316 (ipa_clear_stmts_in_references): Likewise.
9317 * ipa-reference.c (ipa_reference_write_optimization_summary):
9319 * ipa.c (enqueue_node): Likewise.
9320 (process_references): Likewise.
9321 (walk_polymorphic_call_targets): Likewise.
9322 (symtab_remove_unreachable_nodes): Likewise.
9323 (address_taken_from_non_vtable_p): Likewise.
9324 (comdat_can_be_unshared_p_1): Likewise.
9325 (comdat_can_be_unshared_p): Likewise.
9326 (can_replace_by_local_alias): Likewise.
9327 (function_and_variable_visibility): Likewise.
9328 * is-a.h: Likewise (within example in comment).
9329 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
9330 (lto_symtab_encoder_encode): Likewise.
9331 (lto_symtab_encoder_delete_node): Likewise.
9332 (lto_symtab_encoder_in_partition_p): Likewise.
9333 (lto_set_symtab_encoder_in_partition): Likewise.
9334 (output_refs): Likewise.
9335 (compute_ltrans_boundary): Likewise.
9336 (output_symtab): Likewise.
9337 (input_node): Likewise.
9338 (input_ref): Likewise.
9339 (input_edge): Likewise.
9340 (input_cgraph_1): Likewise.
9341 (input_refs): Likewise.
9342 (output_cgraph_opt_summary): Likewise.
9343 (input_node_opt_summary): Likewise.
9344 (input_cgraph_opt_section): Likewise.
9345 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9347 * lto-streamer-out.c (lto_output): Likewise.
9348 (output_symbol_p): Likewise.
9349 (produce_symtab): Likewise.
9350 * lto-streamer.h (lto_encoder_entry): Likewise.
9351 (lto_free_function_in_decl_state_for_node): Likewise.
9352 (lto_symtab_encoder_encode): Likewise.
9353 (lto_symtab_encoder_delete_node): Likewise.
9354 (lto_symtab_encoder_in_partition_p): Likewise.
9355 (lto_set_symtab_encoder_in_partition): Likewise.
9356 (lto_symtab_encoder_lookup): Likewise.
9357 (lsei_node): Likewise.
9358 (lto_symtab_encoder_deref): Likewise.
9359 * symtab.c (symtab_hash): Likewise.
9360 (assembler_name_hash): Likewise.
9361 (symtab_nodes): Likewise.
9362 (hash_node): Likewise.
9363 (eq_node): Likewise.
9364 (hash_node_by_assembler_name): Likewise.
9365 (eq_assembler_name): Likewise.
9366 (insert_to_assembler_name_hash): Likewise.
9367 (unlink_from_assembler_name_hash): Likewise.
9368 (symtab_prevail_in_asm_name_hash): Likewise.
9369 (symtab_register_node): Likewise.
9370 (symtab_insert_node_to_hashtable): Likewise.
9371 (symtab_unregister_node): Likewise.
9372 (symtab_get_node): Likewise.
9373 (symtab_remove_node): Likewise.
9374 (symtab_initialize_asm_name_hash): Likewise.
9375 (symtab_node_for_asm): Likewise.
9376 (symtab_add_to_same_comdat_group): Likewise.
9377 (symtab_dissolve_same_comdat_group_list): Likewise.
9378 (symtab_node_asm_name): Likewise.
9379 (symtab_node_name): Likewise.
9380 (dump_symtab_base): Likewise.
9381 (dump_symtab_node): Likewise.
9382 (dump_symtab): Likewise.
9383 (debug_symtab_node): Likewise.
9384 (verify_symtab_base): Likewise.
9385 (verify_symtab_node): Likewise.
9386 (verify_symtab): Likewise.
9387 (symtab_used_from_object_file_p): Likewise.
9388 (symtab_node_availability): Likewise.
9389 (symtab_alias_ultimate_target): Likewise.
9390 (fixup_same_cpp_alias_visibility): Likewise.
9391 (symtab_resolve_alias): Likewise.
9392 (symtab_for_node_and_aliases): Likewise.
9393 (symtab_for_node_and_aliases): Likewise.
9394 (symtab_nonoverwritable_alias_1): Likewise.
9395 (symtab_nonoverwritable_alias): Likewise.
9396 (symtab_semantically_equivalent_p): Likewise.
9397 * value-prof.c (init_node_map): Likewise.
9398 * varasm.c (find_decl): Likewise.
9399 * varpool.c (varpool_node_for_asm): Likewise.
9400 (varpool_remove_unreferenced_decls): Likewise.
9402 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9404 Manual part of renaming of symtab_node_base to symtab_node.
9406 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
9407 clashes with the preferred name for the base class.
9408 (const_symtab_node): Remove redundant typedef.
9410 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9412 * optabs.c (expand_vec_perm): Avoid vector mode punning
9413 SUBREGs in SET_DEST.
9414 * expmed.c (store_bit_field_1): Likewise.
9415 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
9416 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
9417 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
9418 * config/i386/i386.c (ix86_expand_vector_move_misalign,
9419 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
9420 ix86_expand_sse_unpack, ix86_expand_args_builtin,
9421 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
9422 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
9423 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
9424 expand_vec_perm_vpshufb2_vpermq,
9425 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
9426 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
9427 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
9428 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
9431 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
9433 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
9434 Use gcc_unreachable for unhandled modes. Do not check results of
9435 expand_simple_binop. If not expanded to target, move the result.
9437 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
9438 Shiva Chen <shiva0217@gmail.com>
9440 * config.gcc (nds32*-*-*): Add nds32 target.
9441 * config/nds32/nds32.c: New file.
9442 * config/nds32/nds32.h: New file.
9443 * config/nds32/nds32.md: New file.
9444 * config/nds32/constants.md: New file.
9445 * config/nds32/constraints.md: New file.
9446 * config/nds32/iterators.md: New file.
9447 * config/nds32/nds32-doubleword.md: New file.
9448 * config/nds32/nds32-intrinsic.md: New file.
9449 * config/nds32/nds32_intrinsic.h: New file.
9450 * config/nds32/nds32-modes.def: New file.
9451 * config/nds32/nds32-multiple.md: New file.
9452 * config/nds32/nds32.opt: New file.
9453 * config/nds32/nds32-opts.h: New file.
9454 * config/nds32/nds32-protos.h: New file.
9455 * config/nds32/nds32-peephole2.md: New file.
9456 * config/nds32/pipelines.md: New file.
9457 * config/nds32/predicates.md: New file.
9458 * config/nds32/t-mlibs: New file.
9459 * common/config/nds32: New directory and files.
9461 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
9462 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
9463 * doc/install.texi (Cross-Compiler-Specific Options): Document
9464 --with-nds32-lib for nds32 target.
9465 * doc/extend.texi (Function Attributes, Target Builtins): Document
9466 nds32 specific attributes.
9468 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
9470 * lra-constraints (process_alt_operands): Use the result
9471 elimination register for operand when matching constraints.
9473 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9475 * tree-vrp.c (maybe_set_nonzero_bits): New function.
9476 (remove_range_assertions): Call it.
9478 * tree.c (tree_ctz): New function.
9479 * tree.h (tree_ctz): New prototype.
9480 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
9481 first argument from tree to const_tree.
9482 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
9483 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
9484 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
9486 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
9487 * tree-vect-loop.c (vect_analyze_loop_operations,
9488 vect_transform_loop): Don't force scalar loop for bound just because
9489 number of iterations is unknown, only do it if it is not known to be
9490 a multiple of vectorization_factor.
9491 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
9493 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
9494 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
9495 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
9496 (set_nonzero_bits, get_nonzero_bits): New prototypes.
9497 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
9498 a default def isn't partially constant.
9499 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
9500 is known to be partially zero.
9501 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
9502 to see if a default def isn't partially constant.
9503 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
9504 creation of a range, if VR_RANGE, try to improve nonzero_bits from
9506 (set_nonzero_bits, get_nonzero_bits): New functions.
9508 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
9509 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
9510 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
9511 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
9512 uses but in the condition and ASSERT_EXPR and the other successor of
9513 the predecessor bb is __builtin_unreachable (), set_range_info of the
9514 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
9516 2013-10-31 Martin Jambor <mjambor@suse.cz>
9518 PR rtl-optimization/58934
9520 2013-10-30 Martin Jambor <mjambor@suse.cz>
9521 PR rtl-optimization/10474
9522 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9524 (interesting_dest_for_shprep): New function.
9525 (split_live_ranges_for_shrink_wrap): Likewise.
9526 (ira): Calculate dominance info and df analysis. Call
9527 split_live_ranges_for_shrink_wrap.
9529 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9530 Yury Gribov <y.gribov@samsung.com>
9533 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
9534 shadow pointer to avoid clobbering the main one.
9536 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9538 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
9540 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9543 * ira-color.c (update_costs_from_copies): Add new parameter. Use
9544 it for calling update_costs_from_allocno.
9545 (assign_hard_reg): Call restore_costs_from_copies only for
9546 !retry_p. Pass new argument to update_costs_from_copies.
9547 (color_pass): Pass new argument to update_costs_from_copies.
9548 (ira_mark_allocation_change): Ditto.
9550 2013-10-30 Sharad Singhai <singhai@google.com>
9553 * opts.c (common_handle_option): Remove deprecated option
9554 -ftree-vectorizer-verbose.
9555 * doc/invoke.texi (Debugging Options): Ditto.
9556 * opts-global.c (handle_common_deferred_options): Ditto.
9557 (dump_remap_tree_vectorizer_verbose): Delete.
9558 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
9560 2013-10-30 DJ Delorie <dj@redhat.com>
9562 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
9563 that take no arguments.
9565 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
9568 * reload1.c (update_eliminables_and_spill): New function, broken
9570 (reload): Use it. Check for frame size change after frame size
9571 alignment, and call update_eliminables_and_spill first if continue-ing.
9573 2013-10-30 Cong Hou <congh@google.com>
9576 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
9577 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
9578 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
9580 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
9582 PR rtl-optimization/58369
9583 * reload1.c (compute_reload_subreg_offset): New function.
9584 (choose_reload_regs): Use it to pass endian-correct
9585 offset to subreg_regno_offset.
9587 2013-10-30 Tobias Burnus <burnus@net-b.de>
9590 * tree-cfg.c (replace_loop_annotate): Replace warning by
9593 2013-10-30 Jason Merrill <jason@redhat.com>
9595 * configure.ac (loose_warn): Add -Wno-format if
9596 --disable-build-format-warnings.
9598 2013-10-30 David Malcolm <dmalcolm@redhat.com>
9600 * cgraphunit.c (analyze_functions): Split symtab_node declarations
9601 onto multiple lines to make things easier for rename_symtab.py.
9603 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
9604 (symtab_semantically_equivalent_p): Likewise.
9606 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9609 * lra.c (check_rtl): Remove address check before LRA work.
9611 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
9613 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
9614 POINTER_PLUS_EXPR in the defining statement.
9616 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9618 * regmove.c: Remove.
9619 * tree-pass.h (make_pass_regmove): Remove.
9620 * timevar.def (TV_REGMOVE): Remove.
9621 * passes.def (pass_regmove): Remove.
9622 * opts.c (default_options_table): Remove entry for regmove.
9623 * doc/passes.texi: Remove regmove pass description.
9624 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
9626 (-fdump-rtl-regmove): Ditto.
9627 * common.opt (foptimize-register-move, fregmove): Ignore.
9628 * Makefile.in (OBJS): Remove regmove.o.
9629 * regmove.c: Remove.
9630 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
9632 (struct ira_allocno) New member allocno_prefs.
9633 (ALLOCNO_PREFS): New macro.
9634 (ira_prefs, ira_prefs_num): New external vars.
9635 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
9636 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
9637 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
9639 (ira_add_allocno_copy_to_list): Remove prototype.
9640 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
9641 (ira_pref_iterator): New type.
9642 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
9643 (FOR_EACH_PREF): New macro.
9644 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
9645 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
9647 (ira_setup_alts): New function.
9648 (decrease_live_ranges_number): New function.
9649 (ira): Call the above function.
9650 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
9651 (ira_create_allocno): Initialize allocno prefs.
9652 (pref_pool, pref_vec): New static vars.
9653 (initiate_prefs, find_allocno_pref, ira_create_pref): New
9655 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
9656 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
9657 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
9658 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
9659 (ira_add_allocno_copy_to_list): Make static. Rename to
9660 add_allocno_copy_to_list.
9661 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
9662 swap_allocno_copy_ends_if_necessary.
9663 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
9664 ira_remove_allocno_prefs.
9665 (ira_flattening): Ditto.
9666 (ira_build): Call initiate_prefs, print_prefs.
9667 (ira_destroy): Call finish_prefs.
9668 * ira-color.c (struct update_cost_record): New.
9669 (struct allocno_color_data): Add new member update_cost_records.
9670 (update_cost_record_pool): New static var.
9671 (init_update_cost_records, get_update_cost_record): New functions.
9672 (free_update_cost_record_list, finish_update_cost_records): Ditto.
9673 (struct update_cost_queue_elem): Add member from.
9674 (initiate_cost_update): Call init_update_cost_records.
9675 (finish_cost_update): Call finish_update_cost_records.
9676 (queue_update_cost, get_next_update_cost): Add new param from.
9677 (Update_allocno_cost, update_costs_from_allocno): New functions.
9678 (update_costs_from_prefs): Ditto.
9679 (update_copy_costs): Rename to update_costs_from_copies.
9680 (restore_costs_from_copies): New function.
9681 (update_conflict_hard_regno_costs): Don't go back.
9682 (assign_hard_reg): Call restore_costs_from_copies. Add printing
9684 (pop_allocnos): Add priniting more debug info.
9685 (color_allocnos): Remove prefs for conflicting hard regs.
9686 Call update_costs_from_prefs.
9687 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
9688 (get_dup_num): Rename, modify, and move to ira.c
9689 (process_regs_for_copy): Add prefs.
9690 (add_insn_allocno_copies): Put src as first arg of
9691 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
9692 * ira-costs.c (record_reg_classes): Modify and move code into
9693 record_operands_costs.
9694 (find_costs_and_classes): Create prefs for the hard reg of small
9696 (process_bb_node_for_hard_reg_moves): Add prefs.
9698 2013-10-30 Richard Biener <rguenther@suse.de>
9701 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
9702 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
9704 (pre_and_rev_post_order_compute): ... which now wraps it.
9705 * graph.c (draw_cfg_nodes_no_loops): Use
9706 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
9709 2013-10-30 Christian Bruel <christian.bruel@st.com>
9711 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
9712 (sh_expand_cmpstr): Handle known align and schedule improvements.
9713 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
9714 * config/sh/sh.md (cmpstrnsi): New pattern.
9716 2013-10-30 Martin Jambor <mjambor@suse.cz>
9718 PR rtl-optimization/10474
9719 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9721 (interesting_dest_for_shprep): New function.
9722 (split_live_ranges_for_shrink_wrap): Likewise.
9723 (ira): Calculate dominance info and df analysis. Call
9724 split_live_ranges_for_shrink_wrap.
9726 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9729 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
9731 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9733 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9734 * tree.h (POINTER_BOUNDS_P): New.
9735 (BOUNDED_TYPE_P): New.
9737 (pointer_bounds_type_node): New.
9738 * tree.c (build_common_tree_nodes): Initialize
9739 pointer_bounds_type_node.
9740 * gimple.h (gimple_call_get_nobnd_arg_index): New.
9741 (gimple_call_num_nobnd_args): New.
9742 (gimple_call_nobnd_arg): New.
9743 (gimple_return_retbnd): New.
9744 (gimple_return_set_retbnd): New
9745 * gimple.c (gimple_build_return): Increase number of ops
9746 for return statement.
9747 (gimple_call_get_nobnd_arg_index): New.
9748 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9750 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9752 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9753 with "chkp ctor" and "bnd_legacy" attributes.
9754 * gimplify.c (gimplify_init_constructor): Avoid infinite
9755 loop during gimplification of bounds initializer.
9757 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9759 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9760 (handle_bnd_legacy): New.
9761 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
9762 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
9765 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
9767 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
9768 (BT_FN_PTR_CONST_PTR): New.
9769 (BT_FN_CONST_PTR_CONST_PTR): New.
9770 (BT_FN_PTR_CONST_PTR_SIZE): New.
9771 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9772 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9773 (BT_FN_VOID_CONST_PTR_SIZE): New.
9774 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9775 * chkp-builtins.def: New.
9776 * builtins.def: include chkp-builtins.def.
9777 (DEF_CHKP_BUILTIN): New.
9778 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9779 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9780 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9781 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9782 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9783 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9784 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9785 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9786 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
9787 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9788 * common.opt (fcheck-pointer-bounds): New.
9789 * toplev.c (process_options): Check Pointer Bounds Checker is
9791 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
9793 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9795 * target.def (builtin_chkp_function): New.
9796 (chkp_bound_type): New.
9797 (chkp_bound_mode): New.
9798 (fn_abi_va_list_bounds_size): New.
9799 (load_bounds_for_arg): New.
9800 (store_bounds_for_arg): New.
9801 * targhooks.h (default_load_bounds_for_arg): New.
9802 (default_store_bounds_for_arg): New.
9803 (default_fn_abi_va_list_bounds_size): New.
9804 (default_chkp_bound_type): New.
9805 (default_chkp_bound_mode): New.
9806 (default_builtin_chkp_function): New.
9807 * targhooks.c (default_load_bounds_for_arg): New.
9808 (default_store_bounds_for_arg): New.
9809 (default_fn_abi_va_list_bounds_size): New.
9810 (default_chkp_bound_type): New.
9811 (default_chkp_bound_mode); New.
9812 (default_builtin_chkp_function): New.
9813 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
9814 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9815 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9816 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9817 (TARGET_CHKP_BOUND_TYPE): New.
9818 (TARGET_CHKP_BOUND_MODE): New.
9819 * doc/tm.texi: Regenerated.
9820 * langhooks.h (lang_hooks): Add chkp_supported field.
9821 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
9822 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
9824 2013-10-29 Andrew Pinski <apinski@cavium.com>
9826 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
9827 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
9828 fails, combining the branches anyways.
9829 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
9830 increases the number of combinings.
9831 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
9833 2013-10-29 Mike Stump <mikestump@comcast.net>
9835 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
9836 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
9837 (make_vector_mode): Increase namebuf to 16.
9838 (emit_insn_modes_h): When processing BImode, don't
9839 also match partial int modes.
9840 (emit_class_narrowest_mode): Likewise.
9842 * config/bfin/bfin-modes.def: Add precision to PDI.
9843 * config/m32c/m32c-modes.def: Add precision to PSI.
9844 * config/msp430/msp430-modes.def: Add precision to PSI.
9845 * config/rs6000/rs6000-modes.def: Add precision to PTI.
9846 * config/sh/sh-modes.def: Add precision to PSI and PDI.
9848 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
9851 * config/sh/sh.md (*addc): Rename existing variations to ...
9852 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
9853 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
9854 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
9855 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
9857 2013-10-29 Teresa Johnson <tejohnson@google.com>
9860 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
9861 insanities when updating probabilities.
9863 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9865 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
9866 prettyprinter for cgraph_node to reflect the conversion of the
9867 symtable types to a C++ class hierarchy: it now *is* a
9868 symtab_node_base, rather than having one (named "symbol").
9870 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
9872 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
9873 __cilkrts_pop_frame. If matched, then return true for built-in
9875 (expand_builtin): Added BUILT_IN_CILK_DETACH and
9876 BUILT_IN_CILK_POP_FRAME case.
9877 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
9878 (lhs_cilk_detect_spawn): Likewise.
9879 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
9880 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
9881 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
9882 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
9883 (LANG_HOOKS_CILKPLUS): Likewise.
9884 * tree.h (CILK_SPAWN_FN): Likewise.
9885 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
9886 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
9887 (OBJS): Added cilk-common.o.
9888 (BUILTINS_DEF): Added cilk-builtins.def.
9889 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
9890 (lhd_cilk_detect_spawn): Likewise.
9891 * langhooks.h (lang_hooks_for_cilkplus): New struct.
9892 (struct lang_hooks): Added new field called "cilkplus."
9893 * cilk-common.c: New file.
9895 * cilk-builtins.def: Likewise.
9896 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
9897 "__cilk" macro and set it to 200.
9898 * function.h (struct function::cilk_frame_decl): New field.
9899 (struct function::is_cilk_function): Likewise.
9900 (struct function::calls_cilk_spawn): Likewise.
9901 * gimplify.c (gimplify_call_expr): Added a check if the function call
9902 being gimplified is a spawn detach point. If so, then add pop_frame
9903 and detach function calls.
9904 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
9905 for gimplifying _Cilk_spawn and _Cilk_sync statements.
9906 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
9907 function. If so, added a _Cilk_sync and gimplified it.
9908 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
9909 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
9910 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
9912 (can_inline_edge_p): Prevent inling of spawnee function.
9913 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
9914 for functions that use Cilk keywords.
9915 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
9916 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
9917 CILK_SYNC_STMT cases.
9918 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
9920 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
9921 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
9922 * passes.texi (Cilk Keywords): New section that describes the compiler
9923 code changes for handling Cilk Keywords.
9925 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9927 Patch autogenerated by refactor_symtab.py from
9928 https://github.com/davidmalcolm/gcc-refactoring-scripts
9929 revision 58bb219cc090b2f4516a9297d868c245495ee622
9931 * asan.c (asan_finish_file): Update for conversion of symtab types to
9932 a true class hierarchy.
9933 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9934 * cgraph.c (cgraph_get_body): Likewise.
9935 (cgraph_get_create_real_symbol_node): Likewise.
9936 (verify_cgraph_node): Likewise.
9937 (verify_edge_corresponds_to_fndecl): Likewise.
9938 (verify_edge_count_and_frequency): Likewise.
9939 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
9940 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
9941 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
9942 (cgraph_node_cannot_return): Likewise.
9943 (cgraph_set_pure_flag_1): Likewise.
9944 (cgraph_set_const_flag_1): Likewise.
9945 (cgraph_set_nothrow_flag_1): Likewise.
9946 (cgraph_make_node_local_1): Likewise.
9947 (cgraph_for_node_and_aliases): Likewise.
9948 (cgraph_for_node_thunks_and_aliases): Likewise.
9949 (cgraph_node_can_be_local_p): Likewise.
9950 (cgraph_node_cannot_be_local_p_1): Likewise.
9951 (cgraph_function_body_availability): Likewise.
9952 (dump_cgraph_node): Likewise.
9953 (cgraph_rtl_info): Likewise.
9954 (cgraph_mark_address_taken_node): Likewise.
9955 (cgraph_remove_node): Likewise.
9956 (cgraph_release_function_body): Likewise.
9957 (cgraph_update_edges_for_call_stmt_node): Likewise.
9958 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
9959 (cgraph_make_edge_direct): Likewise.
9960 (cgraph_resolve_speculation): Likewise.
9961 (cgraph_speculative_call_info): Likewise.
9962 (cgraph_turn_edge_to_speculative): Likewise.
9963 (cgraph_create_edge_1): Likewise.
9964 (cgraph_set_call_stmt): Likewise.
9965 (cgraph_node_for_asm): Likewise.
9966 (cgraph_add_thunk): Likewise.
9967 (cgraph_same_body_alias): Likewise.
9968 (cgraph_create_function_alias): Likewise.
9969 (cgraph_create_node): Likewise.
9970 (cgraph_create_empty_node): Likewise.
9971 (record_function_versions): Likewise.
9972 (used_from_object_file_p): Likewise.
9973 * cgraph.h (symtab_can_be_discarded): Likewise.
9974 (symtab_real_symbol_p): Likewise.
9975 (cgraph_mark_force_output_node): Likewise.
9976 (cgraph_edge_recursive_p): Likewise.
9977 (symtab_alias_target): Likewise.
9978 (varpool_all_refs_explicit_p): Likewise.
9979 (varpool_can_remove_if_no_refs): Likewise.
9980 (cgraph_only_called_directly_or_aliased_p): Likewise.
9981 (cgraph_next_function_with_gimple_body): Likewise.
9982 (cgraph_first_function_with_gimple_body): Likewise.
9983 (cgraph_function_with_gimple_body_p): Likewise.
9984 (cgraph_next_function): Likewise.
9985 (cgraph_first_function): Likewise.
9986 (cgraph_next_defined_function): Likewise.
9987 (cgraph_first_defined_function): Likewise.
9988 (varpool_next_defined_variable): Likewise.
9989 (varpool_first_defined_variable): Likewise.
9990 (varpool_next_static_initializer): Likewise.
9991 (varpool_first_static_initializer): Likewise.
9992 (varpool_next_variable): Likewise.
9993 (varpool_first_variable): Likewise.
9994 (varpool_node_name): Likewise.
9995 (varpool): Likewise.
9997 (is_a_helper <varpool_node>::test): Likewise.
9998 (is_a_helper <cgraph_node>::test): Likewise.
9999 (varpool_variable_node): Likewise.
10000 (cgraph_function_or_thunk_node): Likewise.
10001 (varpool_alias_target): Likewise.
10002 (cgraph_alias_target): Likewise.
10003 (cgraph_node_name): Likewise.
10004 (varpool_node_asm_name): Likewise.
10005 (cgraph_node_asm_name): Likewise.
10006 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10007 (cgraph_rebuild_references): Likewise.
10008 (rebuild_cgraph_edges): Likewise.
10009 (record_eh_tables): Likewise.
10010 (build_cgraph_edges): Likewise.
10011 (mark_store): Likewise.
10012 (mark_load): Likewise.
10013 (mark_address): Likewise.
10014 (record_type_list): Likewise.
10015 (record_reference): Likewise.
10016 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10017 (cgraph_materialize_clone): Likewise.
10018 (cgraph_function_versioning): Likewise.
10019 (cgraph_copy_node_for_versioning): Likewise.
10020 (update_call_expr): Likewise.
10021 (cgraph_find_replacement_node): Likewise.
10022 (cgraph_create_virtual_clone): Likewise.
10023 (cgraph_clone_node): Likewise.
10024 * cgraphunit.c (compile): Likewise.
10025 (output_weakrefs): Likewise.
10026 (output_in_order): Likewise.
10027 (expand_function): Likewise.
10028 (assemble_thunks_and_aliases): Likewise.
10029 (expand_thunk): Likewise.
10030 (mark_functions_to_output): Likewise.
10031 (handle_alias_pairs): Likewise.
10032 (analyze_functions): Likewise.
10033 (walk_polymorphic_call_targets): Likewise.
10034 (varpool_finalize_decl): Likewise.
10035 (process_function_and_variable_attributes): Likewise.
10036 (cgraph_process_same_body_aliases): Likewise.
10037 (analyze_function): Likewise.
10038 (cgraph_add_new_function): Likewise.
10039 (cgraph_finalize_function): Likewise.
10040 (referred_to_p): Likewise.
10041 (cgraph_reset_node): Likewise.
10042 (cgraph_process_new_functions): Likewise.
10043 (enqueue_node): Likewise.
10044 (decide_is_symbol_needed): Likewise.
10045 * coverage.c (coverage_compute_profile_id): Likewise.
10046 * dbxout.c (dbxout_expand_expr): Likewise.
10047 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
10048 (reference_to_unused): Likewise.
10049 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10050 * gimplify.c (unvisit_body): Likewise.
10051 (unshare_body): Likewise.
10052 * ipa-cp.c (ipcp_generate_summary): Likewise.
10053 (ipcp_decision_stage): Likewise.
10054 (identify_dead_nodes): Likewise.
10055 (decide_whether_version_node): Likewise.
10056 (decide_about_value): Likewise.
10057 (perhaps_add_new_callers): Likewise.
10058 (create_specialized_node): Likewise.
10059 (update_profiling_info): Likewise.
10060 (ipcp_propagate_stage): Likewise.
10061 (estimate_local_effects): Likewise.
10062 (good_cloning_opportunity_p): Likewise.
10063 (devirtualization_time_bonus): Likewise.
10064 (propagate_constants_accross_call): Likewise.
10065 (initialize_node_lattices): Likewise.
10066 (ipcp_cloning_candidate_p): Likewise.
10067 (determine_versionability): Likewise.
10068 (print_all_lattices): Likewise.
10069 (print_lattice): Likewise.
10070 (ipcp_discover_new_direct_edges): Likewise.
10071 * ipa-devirt.c (ipa_devirt): Likewise.
10072 (likely_target_p): Likewise.
10073 (update_type_inheritance_graph): Likewise.
10074 (possible_polymorphic_call_target_p): Likewise.
10075 (dump_possible_polymorphic_call_targets): Likewise.
10076 (devirt_variable_node_removal_hook): Likewise.
10077 (record_binfo): Likewise.
10078 (maybe_record_node): Likewise.
10079 (build_type_inheritance_graph): Likewise.
10080 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10081 (inline_generate_summary): Likewise.
10082 (inline_analyze_function): Likewise.
10083 (do_estimate_growth): Likewise.
10084 (simple_edge_hints): Likewise.
10085 (estimate_node_size_and_time): Likewise.
10086 (estimate_edge_devirt_benefit): Likewise.
10087 (compute_inline_parameters): Likewise.
10088 (estimate_function_body_sizes): Likewise.
10089 (compute_bb_predicates): Likewise.
10090 (initialize_inline_failed): Likewise.
10091 (dump_inline_summary): Likewise.
10092 (dump_inline_edge_summary): Likewise.
10093 * ipa-inline-transform.c (inline_transform): Likewise.
10094 (preserve_function_body_p): Likewise.
10095 (save_inline_function_body): Likewise.
10096 (inline_call): Likewise.
10097 (clone_inlined_nodes): Likewise.
10098 (can_remove_node_now_p): Likewise.
10099 (can_remove_node_now_p_1): Likewise.
10100 * ipa-inline.c (early_inliner): Likewise.
10101 (early_inline_small_functions): Likewise.
10102 (inline_always_inline_functions): Likewise.
10103 (ipa_inline): Likewise.
10104 (flatten_function): Likewise.
10105 (inline_small_functions): Likewise.
10106 (speculation_useful_p): Likewise.
10107 (recursive_inlining): Likewise.
10108 (update_caller_keys): Likewise.
10109 (reset_edge_caches): Likewise.
10110 (update_edge_key): Likewise.
10111 (edge_badness): Likewise.
10112 (relative_time_benefit): Likewise.
10113 (want_inline_self_recursive_call_p): Likewise.
10114 (want_inline_small_function_p): Likewise.
10115 (want_early_inline_function_p): Likewise.
10116 (num_calls): Likewise.
10117 (can_early_inline_edge_p): Likewise.
10118 (can_inline_edge_p): Likewise.
10119 (report_inline_failed_reason): Likewise.
10120 * ipa-profile.c (ipa_profile): Likewise.
10121 (ipa_propagate_frequency): Likewise.
10122 (ipa_propagate_frequency_1): Likewise.
10123 (ipa_profile_generate_summary): Likewise.
10124 * ipa-prop.c (ipcp_transform_function): Likewise.
10125 (read_replacements_section): Likewise.
10126 (ipa_prop_read_section): Likewise.
10127 (ipa_modify_call_arguments): Likewise.
10128 (ipa_print_node_params): Likewise.
10129 (propagate_controlled_uses): Likewise.
10130 (update_indirect_edges_after_inlining): Likewise.
10131 (remove_described_reference): Likewise.
10132 (ipa_make_edge_direct_to_target): Likewise.
10133 (ipa_analyze_node): Likewise.
10134 (ipa_analyze_params_uses): Likewise.
10135 (ipa_compute_jump_functions): Likewise.
10136 (ipa_get_callee_param_type): Likewise.
10137 (ipa_print_node_jump_functions): Likewise.
10138 (ipa_initialize_node_params): Likewise.
10139 (ipa_populate_param_decls): Likewise.
10140 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
10141 (write_agg_replacement_chain): Likewise.
10142 (ipa_write_node_info): Likewise.
10143 (ipa_edge_duplication_hook): Likewise.
10144 (try_decrement_rdesc_refcount): Likewise.
10145 * ipa-pure-const.c (propagate_nothrow): Likewise.
10146 (propagate_pure_const): Likewise.
10147 (pure_const_read_summary): Likewise.
10148 (pure_const_write_summary): Likewise.
10149 (analyze_function): Likewise.
10150 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
10151 (ipa_ref_referring_ref_list): Likewise.
10152 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
10153 (ipa_remove_stmt_references): Likewise.
10154 (ipa_find_reference): Likewise.
10155 (ipa_dump_referring): Likewise.
10156 (ipa_dump_references): Likewise.
10157 (ipa_record_reference): Likewise.
10158 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
10159 (ipa_reference_write_optimization_summary): Likewise.
10160 (write_node_summary_p): Likewise.
10161 (propagate): Likewise.
10162 (read_write_all_from_decl): Likewise.
10163 (generate_summary): Likewise.
10164 (analyze_function): Likewise.
10165 (propagate_bits): Likewise.
10166 (ipa_reference_get_not_written_global): Likewise.
10167 (ipa_reference_get_not_read_global): Likewise.
10168 * ipa-split.c (execute_split_functions): Likewise.
10169 (split_function): Likewise.
10170 * ipa-utils.c (ipa_merge_profiles): Likewise.
10171 (dump_cgraph_node_set): Likewise.
10172 (ipa_reverse_postorder): Likewise.
10173 (ipa_edge_within_scc): Likewise.
10174 (ipa_get_nodes_in_cycle): Likewise.
10175 (ipa_free_postorder_info): Likewise.
10176 (ipa_reduced_postorder): Likewise.
10177 (searchc): Likewise.
10178 (recursive_call_p): Likewise.
10179 * ipa.c (ipa_cdtor_merge): Likewise.
10180 (record_cdtor_fn): Likewise.
10181 (function_and_variable_visibility): Likewise.
10182 (varpool_externally_visible_p): Likewise.
10183 (cgraph_externally_visible_p): Likewise.
10184 (comdat_can_be_unshared_p): Likewise.
10185 (comdat_can_be_unshared_p_1): Likewise.
10186 (address_taken_from_non_vtable_p): Likewise.
10187 (ipa_discover_readonly_nonaddressable_vars): Likewise.
10188 (symtab_remove_unreachable_nodes): Likewise.
10189 (walk_polymorphic_call_targets): Likewise.
10190 (process_references): Likewise.
10191 (enqueue_node): Likewise.
10192 (has_addr_references_p): Likewise.
10193 (cgraph_non_local_node_p_1): Likewise.
10194 * is-a.h (varpool_analyze_node): Likewise.
10195 * lto-cgraph.c (input_symtab): Likewise.
10196 (merge_profile_summaries): Likewise.
10197 (input_cgraph_1): Likewise.
10198 (input_edge): Likewise.
10199 (input_varpool_node): Likewise.
10200 (input_node): Likewise.
10201 (input_overwrite_node): Likewise.
10202 (compute_ltrans_boundary): Likewise.
10203 (output_refs): Likewise.
10204 (lto_output_varpool_node): Likewise.
10205 (lto_output_node): Likewise.
10206 (reachable_from_other_partition_p): Likewise.
10207 (referenced_from_other_partition_p): Likewise.
10208 (lto_output_edge): Likewise.
10209 (output_node_opt_summary): Likewise.
10210 (add_node_to): Likewise.
10211 (reachable_from_this_partition_p): Likewise.
10212 (lto_set_symtab_encoder_in_partition): Likewise.
10213 (lto_symtab_encoder_in_partition_p): Likewise.
10214 (lto_set_symtab_encoder_encode_initializer): Likewise.
10215 (lto_symtab_encoder_encode_initializer_p): Likewise.
10216 (lto_set_symtab_encoder_encode_body): Likewise.
10217 (lto_symtab_encoder_encode_body_p): Likewise.
10218 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10220 * lto-streamer-in.c (lto_read_body): Likewise.
10221 (fixup_call_stmt_edges): Likewise.
10222 (fixup_call_stmt_edges_1): Likewise.
10223 * lto-streamer-out.c (produce_symtab): Likewise.
10224 (output_symbol_p): Likewise.
10225 (write_symbol): Likewise.
10226 (lto_output): Likewise.
10227 (copy_function): Likewise.
10228 (output_function): Likewise.
10229 * passes.c (function_called_by_processed_nodes_p): Likewise.
10230 (ipa_write_optimization_summaries): Likewise.
10231 (ipa_write_summaries): Likewise.
10232 (do_per_function_toporder): Likewise.
10233 (do_per_function): Likewise.
10234 (dump_passes): Likewise.
10235 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10236 (symtab_nonoverwritable_alias): Likewise.
10237 (symtab_nonoverwritable_alias_1): Likewise.
10238 (symtab_for_node_and_aliases): Likewise.
10239 (symtab_resolve_alias): Likewise.
10240 (fixup_same_cpp_alias_visibility): Likewise.
10241 (symtab_alias_ultimate_target): Likewise.
10242 (symtab_used_from_object_file_p): Likewise.
10243 (verify_symtab_base): Likewise.
10244 (dump_symtab_base): Likewise.
10245 (symtab_node_name): Likewise.
10246 (symtab_node_asm_name): Likewise.
10247 (symtab_dissolve_same_comdat_group_list): Likewise.
10248 (symtab_add_to_same_comdat_group): Likewise.
10249 (symtab_unregister_node): Likewise.
10250 (symtab_insert_node_to_hashtable): Likewise.
10251 (symtab_register_node): Likewise.
10252 (unlink_from_assembler_name_hash): Likewise.
10253 (insert_to_assembler_name_hash): Likewise.
10254 (eq_assembler_name): Likewise.
10255 (hash_node_by_assembler_name): Likewise.
10256 (eq_node): Likewise.
10257 (hash_node): Likewise.
10258 * toplev.c (wrapup_global_declaration_2): Likewise.
10259 * trans-mem.c (ipa_tm_execute): Likewise.
10260 (ipa_tm_transform_clone): Likewise.
10261 (ipa_tm_transform_transaction): Likewise.
10262 (ipa_tm_transform_calls_redirect): Likewise.
10263 (ipa_tm_insert_gettmclone_call): Likewise.
10264 (ipa_tm_insert_irr_call): Likewise.
10265 (ipa_tm_create_version): Likewise.
10266 (ipa_tm_create_version_alias): Likewise.
10267 (ipa_tm_mark_forced_by_abi_node): Likewise.
10268 (ipa_tm_mark_force_output_node): Likewise.
10269 (ipa_tm_diagnose_tm_safe): Likewise.
10270 (ipa_tm_mayenterirr_function): Likewise.
10271 (ipa_tm_scan_irr_function): Likewise.
10272 (ipa_tm_note_irrevocable): Likewise.
10273 (ipa_tm_scan_calls_clone): Likewise.
10274 (get_cg_data): Likewise.
10275 * tree-eh.c (tree_could_trap_p): Likewise.
10276 * tree-emutls.c (ipa_lower_emutls): Likewise.
10277 (create_emultls_var): Likewise.
10278 (lower_emutls_function_body): Likewise.
10279 (gen_emutls_addr): Likewise.
10280 (emutls_decl): Likewise.
10281 (new_emutls_decl): Likewise.
10282 * tree-inline.c (tree_function_versioning): Likewise.
10283 (optimize_inline_calls): Likewise.
10284 (expand_call_inline): Likewise.
10285 (estimate_num_insns): Likewise.
10286 (copy_bb): Likewise.
10287 (delete_unreachable_blocks_update_callgraph): Likewise.
10288 * tree-nested.c (gimplify_all_functions): Likewise.
10289 (create_nesting_tree): Likewise.
10290 (check_for_nested_with_variably_modified): Likewise.
10291 * tree-pretty-print.c (dump_function_header): Likewise.
10292 * tree-profile.c (tree_profiling): Likewise.
10293 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
10294 (modify_function): Likewise.
10295 (convert_callers): Likewise.
10296 (convert_callers_for_node): Likewise.
10297 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10298 (associate_varinfo_to_alias): Likewise.
10299 (create_variable_info_for): Likewise.
10300 (get_constraint_for_ssa_var): Likewise.
10301 * tree-vectorizer.c (increase_alignment): Likewise.
10302 * tree.c (find_decls_types_in_var): Likewise.
10303 (find_decls_types_in_node): Likewise.
10304 (free_lang_data_in_decl): Likewise.
10305 * value-prof.c (gimple_ic_transform): Likewise.
10306 (gimple_ic): Likewise.
10307 (check_ic_target): Likewise.
10308 (init_node_map): Likewise.
10309 * varasm.c (decl_binds_to_current_def_p): Likewise.
10310 (default_binds_local_p_1): Likewise.
10311 (dump_tm_clone_pairs): Likewise.
10312 (assemble_alias): Likewise.
10313 (find_decl): Likewise.
10314 (mark_decl_referenced): Likewise.
10315 * varpool.c (varpool_for_node_and_aliases): Likewise.
10316 (varpool_extra_name_alias): Likewise.
10317 (varpool_create_variable_alias): Likewise.
10318 (add_new_static_var): Likewise.
10319 (varpool_finalize_named_section_flags): Likewise.
10320 (varpool_remove_unreferenced_decls): Likewise.
10321 (enqueue_node): Likewise.
10322 (varpool_assemble_decl): Likewise.
10323 (assemble_aliases): Likewise.
10324 (varpool_analyze_node): Likewise.
10325 (cgraph_variable_initializer_availability): Likewise.
10326 (varpool_add_new_variable): Likewise.
10327 (ctor_for_folding): Likewise.
10328 (dump_varpool_node): Likewise.
10329 (varpool_remove_initializer): Likewise.
10330 (varpool_remove_node): Likewise.
10331 (varpool_node_for_decl): Likewise.
10332 (varpool_create_empty_node): Likewise.
10333 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
10334 (ix86_get_function_versions_dispatcher): Likewise.
10336 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10338 * cgraph.h (symtab_node_base): Convert to a class;
10339 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
10340 chain_next/prev from symtab_node_def.
10341 (cgraph_node): Inherit from symtab_node; add GTY option
10342 tag ("SYMTAB_FUNCTION").
10343 (varpool_node): Inherit from symtab_node; add GTY option
10344 tag ("SYMTAB_VARIABLE").
10345 (symtab_node_def): Remove.
10346 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
10347 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
10348 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
10349 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
10351 * ipa-ref.h (symtab_node_def): Drop.
10352 (symtab_node): Change underlying type from symtab_node_def to
10354 (const_symtab_node): Likwise.
10356 * is-a.h: Update examples in comment.
10358 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
10359 (assembler_name_hash): Likewise.
10361 2013-10-29 Martin Liska <marxin.liska@gmail.com>
10363 * doc/tree-ssa.texi (gimple_phi_result): Document.
10364 (gimple_phi_num_args, gimple_phi_arg): Likewise.
10365 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
10366 (PHI_RESULT, PHI_NUM_ARGS): Remove.
10367 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
10369 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10371 * expr.h: Revert change and include tree-core.h.
10372 * rtl.h: Revert change and don't include tree-core.h.
10374 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10376 * config/darwin.c: Include gimple.h.
10377 * config/i386/winnt.c: Likewise.
10379 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
10381 PR tree-optimization/19831
10382 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
10384 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10386 * tree-outof-ssa.h: Remove include files.
10387 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
10388 * expr.c: Likewise.
10389 * tree-ssa-coalesce.c: Likewise.
10390 * cfgexpand.c: Likewise.
10391 * tree-ssa-ter.c: Likewise.
10392 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
10393 * lto-streamer.h: Likewise.
10394 * cgraphbuild.c: Add gimple.h to include list.
10395 * data-streamer-in.c: Likewise.
10396 * ipa-cp.c: Likewise.
10397 * tree-streamer.c: Likewise.
10398 * lto-compress.c: Likewise.
10399 * ipa-reference.c: Likewise.
10400 * data-streamer-out.c: Likewise.
10401 * lto-cgraph.c: Likewise.
10402 * cgraphclones.c: Likewise.
10403 * ipa-utils.c: Likewise.
10404 * data-streamer.c: Likewise.
10405 * ipa-split.c: Likewise.
10406 * lto-section-in.c: Likewise.
10407 * tree-streamer-out.c: Likewise.
10408 * ipa-prop.c: Likewise.
10409 * tree-streamer-in.c: Likewise.
10410 * symtab.c: Likewise.
10411 * opts-global.c: Likewise.
10412 * lto-opts.c: Likewise.
10413 * lto-section-out.c: Likewise.
10414 * lto-streamer.c: Likewise.
10415 * rtl.h: Add tree-core.h to include list.
10416 * expr.h: Remove tree-core.h from include list.
10417 * gimple.h: Likewise.
10418 * ipa-utils.h: Likewise.
10419 * streamer-hooks.h: Likewise.
10420 * streamer-hooks.c: Include input.h.
10422 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10424 * config/arm/arm.c (cortexa7_extra_costs): New table.
10425 (arm_cortex_a7_tune): New.
10426 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
10428 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
10430 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
10432 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10434 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
10435 to use autogenerated markers for a class-hierarchy, every class
10436 must have a GTY marker.
10437 * gengtype.h (struct type): Add linked list of subclasses to
10438 the "s" member of the union.
10439 (add_subclass): New decl.
10440 * gengtype-state.c (read_state_struct_type): Set up subclass
10442 * gengtype.c (get_ultimate_base_class): New.
10443 (add_subclass): New.
10444 (new_structure): Set up subclass linked list.
10445 (set_gc_used_type): Propagate usage information to subclasses.
10446 (output_mangled_typename): Use get_ultimate_base_class.
10447 (walk_subclasses): Use the subclass linked list, avoiding an
10448 O(N^2) when writing out all types.
10449 (walk_type): Issue an error if the base class is missing a tag,
10450 rather than generating bogus C code. Add a gcc_unreachable
10451 default case, in case people omit tags from concrete subclasses,
10452 or get the values wrong.
10453 (write_func_for_structure): Issue an error for subclasses for
10454 which the base doesn't have a "desc", since otherwise the
10455 autogenerated routines for the base would silently fail to visit
10456 any subclass fields.
10457 (write_root): Use get_ultimate_base_class, tweaking constness of
10458 tp to match that function's signature.
10460 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10462 * doc/gty.texi (GTY Options): Add note about inheritance to
10463 description of desc and tag.
10464 (Inheritance and GTY): New.
10466 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10468 * gengtype-parse.c (opts_have): Drop "static" so that
10469 we can use this from gengtype.c.
10470 * gengtype.c (set_gc_used_type): Mark any base class as used;
10471 update field traversal to visit inherited fields.
10472 (output_mangled_typename): Convert references to classes within
10473 an inheritance hierarchy to reference the ultimate base class,
10474 since only it will have gt_ functions.
10475 (get_string_option): New.
10476 (walk_subclasses): New.
10477 (walk_type): Treat GTY structs that have a "desc" as being the
10478 root of an inheritance hierarchy. Generate a switch on it
10479 within the marking function which walks all subclasses, adding
10480 cases for them via walk_subclasses. For subclasses, visit all
10481 fields of the type (including inherited ones).
10482 (write_func_for_structure): Don't write fns for subclasses, only
10483 for the ultimate base class within an inheritance hierarchy.
10484 Subclasses-marking will be handled by the base class marking functions.
10485 (write_types): Likewise.
10486 (write_local_func_for_structure): Likewise.
10487 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
10488 a "tag" option (and are thus concrete subclasses).
10489 (write_root): Use the marker function for the ultimate base class.
10490 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
10491 (opts_have): Add declaration.
10493 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
10495 * lra-spills.c (lra_final_code_change): Remove useless move insns
10496 originated from moves of pseudos.
10498 2013-10-28 Jeff Law <law@redhat.com>
10500 * lower-subreg.c (resolve_simple_move): Fix comment typo.
10502 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
10504 * df-scan.c (df_collection_rec): Adjust.
10505 (copy_defs): New constant.
10506 (copy_uses): Likewise.
10507 (copy_eq_uses): Likewise.
10508 (copy_mw): Likewise.
10509 (copy_all): Likewise.
10510 (df_insn_rescan): Adjust.
10511 (df_notes_rescan): Likewise.
10512 (df_swap_refs): Likewise.
10513 (df_sort_and_compress_refs): Likewise.
10514 (df_sort_and_compress_mws): Likewise.
10515 (df_install_refs): Likewise.
10516 (df_install_mws): Likewise.
10517 (df_refs_add_to_chains): Add flags parameter controlling which vectors
10519 (df_bb_refs_record): Adjust.
10520 (df_record_entry_block_defs): Likewise.
10521 (df_record_exit_block_defs): Likewise.
10522 (df_refs_verify): Likewise.
10523 (df_mws_verify): Likewise.
10524 (df_insn_refs_verify): Likewise.
10525 (df_bb_verify): Likewise.
10526 * ipa-pure-const.c (finish_state): Remove.
10527 (propagate): Adjust.
10528 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
10529 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
10530 var-tracking.c: Adjust.
10531 * vec.c (stack_vecs): Remove.
10532 (register_stack_vec): Likewise.
10533 (stack_vec_register_index): Likewise.
10534 (unregister_stack_vec): Likewise.
10535 * vec.h (struct va_stack): Remove.
10536 (struct vec<T, A, vl_ptr>): Specialize as
10537 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
10538 allocation strategy compatable with the vl_ptr layout.
10539 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
10540 specialization anyway.
10541 (class stack_vec): New class.
10542 (vec_stack_alloc): Remove.
10543 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
10545 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10546 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10547 Sergey Lega <sergey.s.lega@intel.com>
10548 Anna Tikhonova <anna.tikhonova@intel.com>
10549 Ilya Tocar <ilya.tocar@intel.com>
10550 Andrey Turetskiy <andrey.turetskiy@intel.com>
10551 Ilya Verbin <ilya.verbin@intel.com>
10552 Kirill Yukhin <kirill.yukhin@intel.com>
10553 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10555 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
10556 (*prefetch_avx512pf_<mode>): New.
10557 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
10558 (avx512f_maskcmp<mode>3): Ditto.
10559 (vashrv16si3): Ditto.
10561 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10562 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10563 Sergey Lega <sergey.s.lega@intel.com>
10564 Anna Tikhonova <anna.tikhonova@intel.com>
10565 Ilya Tocar <ilya.tocar@intel.com>
10566 Andrey Turetskiy <andrey.turetskiy@intel.com>
10567 Ilya Verbin <ilya.verbin@intel.com>
10568 Kirill Yukhin <kirill.yukhin@intel.com>
10569 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10571 * config/i386/i386.md (any_truncate): New.
10572 (trunsuffix): Ditto.
10573 * config/i386/predicates.md (const_8_to_9_operand): New.
10574 (const_10_to_11_operand): Ditto.
10575 (const_12_to_13_operand): Ditto.
10576 (const_14_to_15_operand): Ditto.
10577 (const_16_to_19_operand): Ditto.
10578 (const_20_to_23_operand): Ditto.
10579 (const_24_to_27_operand): Ditto.
10580 (const_28_to_31_operand): Ditto.
10581 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
10582 (cvtusi2<ssescalarmodesuffix>32): New.
10583 (cvtusi2<ssescalarmodesuffix>64): Ditto.
10584 (ufloatv16siv16sf2): Ditto.
10585 (avx512f_fix_notruncv16sfv16si): Ditto.
10586 (avx512f_ufix_notruncv16sfv16si): Ditto.
10587 (avx512f_vcvtss2usi): Ditto.
10588 (avx512f_vcvtss2usiq): Ditto.
10589 (avx512f_vcvttss2usi): Ditto.
10590 (avx512f_vcvttss2usiq): Ditto.
10591 (avx512f_vcvtsd2usi): Ditto.
10592 (avx512f_vcvtsd2usiq): Ditto.
10593 (avx512f_vcvttsd2usi): Ditto.
10594 (avx512f_vcvttsd2usiq): Ditto.
10595 (ufloatv8siv8df): Ditto.
10596 (avx512f_cvtdq2pd512_2): Ditto.
10597 (avx512f_cvtpd2dq512): Ditto.
10598 (avx512f_ufix_notruncv8dfv8si): Ditto.
10599 (avx512f_cvtpd2ps512): Ditto.
10600 (vec_unpacks_lo_v16sf): Ditto.
10601 (vec_unpacks_hi_v16sf): Ditto.
10602 (vec_unpacks_float_hi_v16si): Ditto.
10603 (vec_unpacks_float_lo_v16si): Ditto.
10604 (avx512f_unpckhps512): Ditto.
10605 (avx512f_unpcklps512): Ditto.
10606 (avx512f_movshdup512): Ditto.
10607 (avx512f_movsldup512): Ditto.
10608 (vec_extract_lo_v32hi): Ditto.
10609 (vec_extract_hi_v32hi): Ditto.
10610 (vec_extract_lo_v64qi): Ditto.
10611 (vec_extract_hi_v64qi): Ditto.
10612 (avx512f_unpckhpd512): Ditto.
10613 (avx512f_movddup512): Ditto.
10614 (avx512f_unpcklpd512): Ditto.
10615 (*avx512f_unpcklpd512): Ditto.
10616 (avx512f_shufps512_1): Ditto.
10617 (avx512f_shufpd512_1): Ditto.
10618 (avx512f_interleave_highv8di): Ditto.
10619 (avx512f_interleave_lowv8di): Ditto.
10620 (PMOV_DST_MODE): Ditto.
10621 (pmov_src_mode): Ditto.
10622 (pmov_src_lower): Ditto.
10623 (pmov_suff): Ditto.
10624 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
10625 (*avx512f_<code>v8div16qi2): Ditto.
10626 (*avx512f_<code>v8div16qi2_store): Ditto.
10627 (vec_widen_umult_even_v16si): Ditto.
10628 (*vec_widen_umult_even_v16si): Ditto.
10629 (vec_widen_smult_even_v16si): Ditto.
10630 (*vec_widen_smult_even_v16si): Ditto.
10631 (avx512f_interleave_highv16si): Ditto.
10632 (avx512f_interleave_lowv16si): Ditto.
10633 (avx512f_<code>v16qiv16si2): Ditto.
10634 (avx512f_<code>v16hiv16si2): Ditto.
10635 (avx512f_<code>v8qiv8di2): Ditto.
10636 (avx512f_<code>v8hiv8di2): Ditto.
10637 (avx512f_<code>v8siv8di2): Ditto.
10638 (avx512cd_maskb_vec_dupv8di): Ditto.
10639 (avx512cd_maskw_vec_dupv16si): Ditto.
10640 (avx512f_vcvtph2ps512): Ditto.
10641 (avx512f_vcvtps2ph512): Ditto.
10642 (VEC_EXTRACT_MODE): Extened with wider modes.
10643 (VEC_PERM_AVX2): Ditto.
10644 (VEC_PERM_CONST): Ditto.
10646 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
10648 * config/arc/arc.c (arc_ccfsm_post_advance):
10649 Add comment about TYPE_RETURN.
10651 2013-10-28 Bin Cheng <bin.cheng@arm.com>
10653 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
10654 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
10655 (strip_offset): Convert offset to unsigned number.
10657 2013-10-27 Tom de Vries <tom@codesourcery.com>
10659 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
10660 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
10662 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
10664 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
10665 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
10666 (TARGET_BIG_ENDIAN): New macro.
10667 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
10668 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
10669 * config/sh/sh.c: Likewise.
10670 * config/sh/sh.h: Likewise.
10672 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
10674 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
10675 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
10677 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10679 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
10681 (cmpstr_t, cmpstrsi): Fix formatting.
10683 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10686 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
10687 addressing, do not use general_operand for memory operands.
10689 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10692 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10693 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10695 2013-10-26 Jeff Law <law@redhat.com>
10697 * predict.c (PRED_MUDFLAP): Remove.
10698 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
10700 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
10701 (OBJS): Remove tree-nomudflap.o
10702 (GTFILES): Remove tree-mudflap.c
10703 * builtins.c (expand_builtin_alloc): Remove mudflap support.
10704 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10705 (mfwrap_spec, mflib_spec): Likewise.
10706 (cpp_unique_options, cc1_options, static_specs): Likewise.
10707 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
10708 * passes.def: Likewise.
10709 * toplev.c (compile_file, process_options): Likewise.
10710 * tree-inline.c (copy_tree_r): Likewise.
10711 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
10712 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
10713 (build_constant_desc, output_constant_def_contents): Likewise.
10714 (categorize_decl_for_section): Likewise.
10715 * tree-mudflap.c: Removed.
10716 * tree-mudflap.h: Removed.
10717 * tree-nomudflap.c: Removed.
10718 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
10719 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
10720 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10721 * config/sol2.h (MFLIB_SPEC): Likewise.
10722 * doc/install.texi: Remove mudflap references.
10723 * doc/passes.texi: Similarly.
10724 * doc/sourcebuild.texi: Similarly.
10725 * doc/invoke.texi: Remove mudlfap related options.
10727 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10729 PR rtl-optimization/58759
10730 * lra-constraints.c (lra_constraints): Remove wrong condition to
10731 remove insn setting up an equivalent pseudo.
10733 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10735 * config/rs6000/rs6000-protos.h
10736 (rs6000_secondary_memory_needed_mode): New prototype.
10737 * config/rs6000/rs6000.c: Include ira.h.
10738 (TARGET_LRA_P): Redefine.
10739 (rs6000_legitimate_offset_address_p): Call
10740 legitimate_constant_pool_address_p in strict mode for LRA.
10741 (rs6000_legitimate_address_p): Ditto.
10742 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
10743 (rs6000_emit_move): Add LRA version of code to generate load/store
10745 (rs6000_secondary_memory_needed_mode): New.
10746 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
10747 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
10748 constants, memory, and FP registers.
10749 (rs6000_lra_p): New.
10750 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
10751 * config/rs6000/rs6000.opt (mlra): New option.
10752 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10754 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
10756 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
10757 has_single_use () and not do the conversion if has_single_use ()
10758 returns false for the multiplication result.
10760 2013-10-25 David Malcolm <dmalcolm@redhat.com>
10762 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
10763 to "NODE", since this works on a "tree", not an
10765 (CONSTANT_CLASS_P): Likewise.
10766 (TYPE_P): Likewise.
10767 (DECL_P): Likewise.
10768 (INDIRECT_REF_P): Likewise.
10769 (REFERENCE_CLASS_P): Likewise.
10770 (COMPARISON_CLASS_P): Likewise.
10771 (UNARY_CLASS_P): Likewise.
10772 (BINARY_CLASS_P): Likewise.
10773 (STATEMENT_CLASS_P): Likewise.
10774 (VL_EXP_CLASS_P): Likewise.
10775 (EXPRESSION_CLASS_P): Likewise.
10776 (IS_TYPE_OR_DECL_P): Likewise.
10778 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
10780 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
10781 ADDR_EXPR in the defining statement.
10783 2013-10-25 Richard Biener <rguenther@suse.de>
10785 PR tree-optimization/58626
10786 * tree-loop-distribution.c (enum rdg_dep_type): Remove
10787 anti_dd, output_dd and input_dd.
10788 (struct rdg_edge): Remove level and relation members.
10789 (RDGE_LEVEL, RDGE_RELATION): Remove.
10790 (dot_rdg_1): Adjust.
10791 (create_rdg_edge_for_ddr): Remove.
10792 (create_rdg_edges_for_scalar): Adjust.
10793 (create_edge_for_control_dependence): Likewise.
10794 (create_rdg_edges): Split into ...
10795 (create_rdg_flow_edges): ... this
10796 (create_rdg_cd_edges): ... and this.
10797 (free_rdg): Adjust.
10798 (build_rdg): Likewise, do not compute data dependences or
10799 add edges for them.
10800 (pg_add_dependence_edges): New function.
10802 (distribute_loop): First apply all non-dependence based
10803 partition mergings. Then compute dependences between partitions
10804 and merge and order partitions according to them.
10806 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10808 PR rtl-optimization/58831
10809 * alias.c (init_alias_analysis): At the beginning of each iteration,
10810 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
10812 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10814 * recog.c (search_ofs): New static variable moved from...
10815 (peep2_find_free_register): ...here.
10816 (peephole2_optimize): Initialize it.
10818 2013-10-25 Tobias Burnus <burnus@net-b.de>
10820 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
10822 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
10824 * config/i386/i386.h (TARGET_MPX): New define.
10825 (TARGET_MPX_P): Ditto.
10827 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10829 * config/i386/constraints.md (B): New.
10832 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
10833 * config/i386/i386-modes.def (BND32): New.
10835 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
10836 * config/i386/i386.c (isa_opts): Add mmpx.
10837 (regclass_map): Add bound registers.
10838 (dbx_register_map): Likewise.
10839 (dbx64_register_map): Likewise.
10840 (svr4_dbx_register_map): Likewise.
10842 (ix86_option_override_internal): Support MPX ISA.
10843 (ix86_conditional_register_usage): Support bound registers.
10844 (print_reg): Likewise.
10845 (ix86_code_end): Add MPX bnd prefix.
10846 (output_set_got): Likewise.
10847 (ix86_output_call_insn): Likewise.
10848 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
10849 (ix86_print_operand_punct_valid_p): Likewise.
10850 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
10852 (ix86_class_likely_spilled_p): Add bound regs support.
10853 (ix86_hard_regno_mode_ok): Likewise.
10854 (x86_order_regs_for_local_alloc): Likewise.
10855 (ix86_bnd_prefixed_insn_p): New.
10856 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
10857 (FIXED_REGISTERS): Add bound registers.
10858 (CALL_USED_REGISTERS): Likewise.
10859 (REG_ALLOC_ORDER): Likewise.
10860 (HARD_REGNO_NREGS): Likewise.
10862 (VALID_BND_REG_MODE): New.
10863 (FIRST_BND_REG): New.
10864 (LAST_BND_REG): New.
10865 (reg_class): Add BND_REGS.
10866 (REG_CLASS_NAMES): Likewise.
10867 (REG_CLASS_CONTENTS): Likewise.
10868 (BND_REGNO_P): New.
10869 (ANY_BND_REG_P): New.
10871 (HI_REGISTER_NAMES): Add bound registers.
10872 * config/i386/i386.md (UNSPEC_BNDMK): New.
10873 (UNSPEC_BNDMK_ADDR): New.
10874 (UNSPEC_BNDSTX): New.
10875 (UNSPEC_BNDLDX): New.
10876 (UNSPEC_BNDLDX_ADDR): New.
10877 (UNSPEC_BNDCL): New.
10878 (UNSPEC_BNDCU): New.
10879 (UNSPEC_BNDCN): New.
10880 (UNSPEC_MPX_FENCE): New.
10883 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
10884 (length_immediate): Likewise.
10885 (prefix_0f): Likewise.
10886 (memory): Likewise.
10887 (prefix_rep): Check for bnd prefix.
10888 (length_nobnd): New.
10889 (length): Use length_nobnd if specified.
10894 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
10895 (*jcc_2): Likewise.
10897 (simple_return_internal): Likewise.
10898 (simple_return_pop_internal): Likewise.
10899 (*indirect_jump): Add MPX bnd prefix.
10900 (*tablejump_1): Likewise.
10901 (simple_return_internal_long): Likewise.
10902 (simple_return_indirect_internal): Likewise.
10906 (*mov<mode>_internal_mpx): New.
10907 (<mode>_<bndcheck>): New.
10908 (*<mode>_<bndcheck>): New.
10910 (*<mode>_ldx): New.
10912 (*<mode>_stx): New.
10913 * config/i386/predicates.md (lea_address_operand): Rename to...
10914 (address_no_seg_operand): ... this.
10915 (address_mpx_no_base_operand): New.
10916 (address_mpx_no_index_operand): New.
10917 (bnd_mem_operator): New.
10918 * config/i386/i386.opt (mmpx): New.
10919 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
10920 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
10922 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10924 * mode-classes.def (MODE_POINTER_BOUNDS): New.
10925 * tree.def (POINTER_BOUNDS_TYPE): New.
10926 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
10927 (POINTER_BOUNDS_MODE): New.
10928 (make_pointer_bounds_mode): New.
10929 * machmode.h (POINTER_BOUNDS_MODE_P): New.
10930 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
10931 (layout_type): Support POINTER_BOUNDS_TYPE.
10932 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
10933 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
10934 (type_contains_placeholder_1): Likewise.
10935 * tree.h (POINTER_BOUNDS_TYPE_P): New.
10936 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
10937 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
10939 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
10941 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
10942 mode of address computation when calling memory_address_addr_space.
10944 2013-08-24 Richard Henderson <rth@twiddle.net>
10947 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
10948 instead of create_convert_operand_to.
10949 (maybe_emit_sync_lock_test_and_set): Likewise.
10950 (expand_atomic_compare_and_swap): Likewise.
10951 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
10953 2013-08-24 Sriraman Tallam <tmsriram@google.com>
10955 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
10956 Change param_is to use the struct and not the pointer to the struct.
10958 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
10960 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
10961 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
10962 Move to targhooks.c.
10963 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
10964 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
10965 Relocate from gimplify.c.
10966 * targhooks.h: Add 2 prototypes.
10967 * tree.h: Delete 2 prototypes.
10969 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
10971 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
10972 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
10974 2013-10-24 Cong Hou <congh@google.com>
10976 * convert.c (convert_to_real): Guard those unsafe math function
10977 convertions with flag_unsafe_math_optimizations. Handle sqrt()
10980 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
10983 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
10985 (cgraph_create_edge): Use the new argument.
10986 (cgraph_create_indirect_edge): Likewise.
10988 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
10990 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
10991 TYPE_UNCOND_BRANCH.
10992 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
10993 changes statep->state.
10995 2013-10-24 Tobias Burnus <burnus@net-b.de>
10998 * tree-cfg.c (replace_loop_annotate): New function.
10999 (execute_build_cfg): Call it.
11000 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11001 * internal-fn.c (expand_ANNOTATE): New function.
11002 * internal-fn.def (ANNOTATE): Define as new internal function.
11003 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11004 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11005 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11006 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11007 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11009 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11010 Marcus Shawcroft <marcus.shawcroft@arm.com>
11012 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11013 Special case reload SP+C into none GENERAL_REGS.
11015 2013-10-24 Michael Matz <matz@suse.de>
11017 * gengtype.c (is_file_equal): Check that files will be same length.
11019 2013-10-25 Christian Bruel <christian.bruel@st.com>
11021 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
11022 * config/sh/t-sh (sh-mem.o): New rule.
11023 * config/sh/sh-mem.cc (expand_block_move): Moved here.
11024 (sh_expand_cmpstr): New function.
11025 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
11026 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
11027 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
11028 (rotlhi3_8): Rename.
11030 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11032 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
11033 * Makefile.in (CXXDEPMODE): Assign and change users.
11034 (CCDEPMODE): Delete.
11035 * configure: Regenerate.
11037 2013-10-23 David Malcolm <dmalcolm@redhat.com>
11039 * gengtype-parse.c (require_without_advance): New.
11040 (type): For GTY-marked types that are not GTY((user)), parse any
11041 base classes, requiring them to be single-inheritance, and not
11042 be templates. For non-GTY-marked types and GTY((user)),
11043 continue to skip over any C++ inheritance specification.
11044 * gengtype-state.c (state_writer::write_state_struct_type):
11045 Write base class of type (if any).
11046 (read_state_struct_type): Read base class of type (if any).
11047 * gengtype.c (new_structure): Add a "base_class" parameter.
11048 (create_optional_field_): Update for new parameter to new_structure.
11049 (adjust_field_rtx_def): Likewise.
11050 (adjust_field_tree_exp): Likewise.
11051 * gengtype.h (struct type): Add "base_class" field to the s
11053 (new_structure): Add "base" parameter.
11055 2013-10-23 Sriraman Tallam <tmsriram@google.com>
11058 * config/i386/i386.c (ix86_option_override_internal):
11059 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
11060 (ix86_valid_target_attribute_tree):
11061 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
11062 Change TARGET_SSE to TARGET_SSE_P (opts->...)
11064 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11066 * tree-ssa-loop.h: Remove include files.
11067 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11068 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
11069 * graphite-clast-to-gimple.c: Likewise.
11070 * graphite-scop-detection.c: Likewise.
11071 * graphite-sese-to-poly.c: Likewise.
11072 * ipa-inline-analysis.c: Likewise.
11073 * ipa-pure-const.c: Likewise.
11074 * loop-init.c: Likewise.
11075 * passes.c: Likewise.
11076 * predict.c: Likewise.
11077 * tree-cfg.c: Likewise.
11078 * tree-cfgcleanup.c: Likewise.
11079 * tree-chrec.c: Likewise.
11080 * tree-data-ref.c: Likewise.
11081 * tree-loop-distribution.c: Likewise.
11082 * tree-parloops.c: Likewise.
11083 * tree-predcom.c: Likewise.
11084 * tree-scalar-evolution.c: Likewise.
11085 * tree-ssa-address.c: Likewise.
11086 * tree-ssa.c: Likewise.
11087 * tree-ssa-dce.c: Likewise.
11088 * tree-ssa-loop.c: Likewise.
11089 * tree-ssa-loop-im.c: Likewise.
11090 * tree-ssa-loop-ivcanon.c: Likewise.
11091 * tree-ssa-loop-ivopts.c: Likewise.
11092 * tree-ssa-loop-manip.c: Likewise.
11093 * tree-ssa-loop-niter.c: Likewise.
11094 * tree-ssa-loop-prefetch.c: Likewise.
11095 * tree-ssa-loop-unswitch.c: Likewise.
11096 * tree-ssa-reassoc.c: Likewise.
11097 * tree-vect-data-refs.c: Likewise.
11098 * tree-vect-loop.c: Likewise.
11099 * tree-vect-loop-manip.c: Likewise.
11100 * tree-vectorizer.c: Likewise.
11101 * tree-vect-stmts.c: Likewise.
11102 * tree-vrp.c: Likewise.
11104 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11106 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
11108 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11110 PR tree-optimization/58775
11111 PR tree-optimization/58791
11112 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
11113 (insert_stmt_after): Rewritten, don't move the stmt, but really
11115 (get_stmt_uid_with_default): Remove.
11116 (build_and_add_sum): Use insert_stmt_after and
11117 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
11118 (update_range_test): Set uid on stmts added by
11119 force_gimple_operand_gsi. Don't immediately modify statements
11120 in inter-bb optimization, just update oe->op values.
11121 (optimize_range_tests): Return bool whether any changed have been made.
11122 (update_ops): New function.
11123 (struct inter_bb_range_test_entry): New type.
11124 (maybe_optimize_range_tests): Perform statement changes here.
11125 (not_dominated_by, appears_later_in_bb, get_def_stmt,
11126 ensure_ops_are_available): Remove.
11127 (find_insert_point): Rewritten.
11128 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
11129 return LHS of the (new resp. old) stmt. Don't call
11130 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
11131 instead of last, move new stmt at the right place.
11132 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
11133 (negate_value): Likewise. Set uids.
11134 (break_up_subtract_bb): Initialize uids.
11135 (reassociate_bb): Adjust rewrite_expr_tree caller.
11136 (do_reassoc): Don't call renumber_gimple_stmt_uids.
11138 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
11141 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
11142 TARGET_32BIT final condition.
11143 (mulsi3_internal2 and splitter): Same.
11145 2013-10-23 Jeff Law <law@redhat.com>
11147 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
11148 through joiner blocks with abnormal outgoing edges.
11150 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
11151 Add parameter JOINERS, to allow/disallow threading through joiner
11153 (thread_block): New. Call thread_block_1.
11154 (mark_threaded_blocks): Remove code to filter out certain cases
11155 of threading through joiner blocks.
11156 (thread_through_all_blocks): Document how we can have a dangling
11157 edge AUX field and clear it.
11159 2013-10-23 Ian Lance Taylor <iant@google.com>
11161 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
11162 (C++ Dialect Options): Likewise.
11163 (Optimize Options): Likewise.
11165 2013-10-23 Tom de Vries <tom@codesourcery.com>
11167 PR tree-optimization/58805
11168 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
11170 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11172 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
11173 sequence based on get_range_info returned range.
11175 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
11177 * tree-ssa.h: Remove all #include's
11178 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
11179 * alias.c: Move required includes from tree-ssa.h.
11180 * asan.c: Likewise.
11181 * builtins.c: Likewise.
11182 * calls.c: Likewise.
11183 * cfgexpand.c: Likewise.
11184 * cfghooks.c: Likewise.
11185 * cfgloop.c: Likewise.
11186 * cfgloopmanip.c: Likewise.
11187 * cgraph.c: Likewise.
11188 * cgraphbuild.c: Likewise.
11189 * cgraphclones.c: Likewise.
11190 * cgraphunit.c: Likewise.
11192 * except.c: Likewise.
11193 * expr.c: Likewise.
11194 * final.c: Likewise.
11195 * fold-const.c: Likewise.
11196 * ggc-page.c: Likewise.
11197 * gimple-builder.c: Likewise.
11198 * gimple-fold.c: Likewise.
11199 * gimple-iterator.c: Likewise.
11200 * gimple-low.c: Likewise.
11201 * gimple-pretty-print.c: Likewise.
11202 * gimple-ssa-strength-reduction.c: Likewise.
11203 * gimple-streamer-in.c: Likewise.
11204 * gimple-streamer-out.c: Likewise.
11205 * gimplify.c: Likewise.
11206 * graphite-blocking.c: Likewise.
11207 * graphite-clast-to-gimple.c: Likewise.
11208 * graphite-dependences.c: Likewise.
11209 * graphite-interchange.c: Likewise.
11210 * graphite-optimize-isl.c: Likewise.
11211 * graphite-poly.c: Likewise.
11212 * graphite-scop-detection.c: Likewise.
11213 * graphite-sese-to-poly.c: Likewise.
11214 * graphite.c: Likewise.
11215 * ipa-cp.c: Likewise.
11216 * ipa-inline-analysis.c: Likewise.
11217 * ipa-inline-transform.c: Likewise.
11218 * ipa-inline.c: Likewise.
11219 * ipa-prop.c: Likewise.
11220 * ipa-pure-const.c: Likewise.
11221 * ipa-reference.c: Likewise.
11222 * ipa-split.c: Likewise.
11223 * ipa-utils.c: Likewise.
11224 * loop-init.c: Likewise.
11225 * lto-cgraph.c: Likewise.
11226 * lto-section-in.c: Likewise.
11227 * lto-section-out.c: Likewise.
11228 * lto-streamer-in.c: Likewise.
11229 * lto-streamer-out.c: Likewise.
11230 * lto-streamer.c: Likewise.
11231 * omp-low.c: Likewise.
11232 * passes.c: Likewise.
11233 * predict.c: Likewise.
11234 * print-tree.c: Likewise.
11235 * profile.c: Likewise.
11236 * sese.c: Likewise.
11237 * targhooks.c: Likewise.
11238 * tracer.c: Likewise.
11239 * trans-mem.c: Likewise.
11240 * tree-call-cdce.c: Likewise.
11241 * tree-cfg.c: Likewise.
11242 * tree-cfgcleanup.c: Likewise.
11243 * tree-chrec.c: Likewise.
11244 * tree-complex.c: Likewise.
11245 * tree-data-ref.c: Likewise.
11246 * tree-dfa.c: Likewise.
11247 * tree-eh.c: Likewise.
11248 * tree-emutls.c: Likewise.
11249 * tree-if-conv.c: Likewise.
11250 * tree-inline.c: Likewise.
11251 * tree-into-ssa.c: Likewise.
11252 * tree-loop-distribution.c: Likewise.
11253 * tree-mudflap.c: Likewise.
11254 * tree-nested.c: Likewise.
11255 * tree-nrv.c: Likewise.
11256 * tree-object-size.c: Likewise.
11257 * tree-outof-ssa.c: Likewise.
11258 * tree-parloops.c: Likewise.
11259 * tree-phinodes.c: Likewise.
11260 * tree-predcom.c: Likewise.
11261 * tree-pretty-print.c: Likewise.
11262 * tree-profile.c: Likewise.
11263 * tree-scalar-evolution.c: Likewise.
11264 * tree-sra.c: Likewise.
11265 * tree-ssa-address.c: Likewise.
11266 * tree-ssa-alias.c: Likewise.
11267 * tree-ssa-ccp.c: Likewise.
11268 * tree-ssa-coalesce.c: Likewise.
11269 * tree-ssa-copy.c: Likewise.
11270 * tree-ssa-copyrename.c: Likewise.
11271 * tree-ssa-dce.c: Likewise.
11272 * tree-ssa-dom.c: Likewise.
11273 * tree-ssa-dse.c: Likewise.
11274 * tree-ssa-forwprop.c: Likewise.
11275 * tree-ssa-ifcombine.c: Likewise.
11276 * tree-ssa-live.c: Likewise.
11277 * tree-ssa-loop-ch.c: Likewise.
11278 * tree-ssa-loop-im.c: Likewise.
11279 * tree-ssa-loop-ivcanon.c: Likewise.
11280 * tree-ssa-loop-ivopts.c: Likewise.
11281 * tree-ssa-loop-manip.c: Likewise.
11282 * tree-ssa-loop-niter.c: Likewise.
11283 * tree-ssa-loop-prefetch.c: Likewise.
11284 * tree-ssa-loop-unswitch.c: Likewise.
11285 * tree-ssa-loop.c: Likewise.
11286 * tree-ssa-math-opts.c: Likewise.
11287 * tree-ssa-operands.c: Likewise.
11288 * tree-ssa-phiopt.c: Likewise.
11289 * tree-ssa-phiprop.c: Likewise.
11290 * tree-ssa-pre.c: Likewise.
11291 * tree-ssa-propagate.c: Likewise.
11292 * tree-ssa-reassoc.c: Likewise.
11293 * tree-ssa-sccvn.c: Likewise.
11294 * tree-ssa-sink.c: Likewise.
11295 * tree-ssa-strlen.c: Likewise.
11296 * tree-ssa-structalias.c: Likewise.
11297 * tree-ssa-tail-merge.c: Likewise.
11298 * tree-ssa-ter.c: Likewise.
11299 * tree-ssa-threadedge.c: Likewise.
11300 * tree-ssa-threadupdate.c: Likewise.
11301 * tree-ssa-uncprop.c: Likewise.
11302 * tree-ssa-uninit.c: Likewise.
11303 * tree-ssa.c: Likewise.
11304 * tree-ssanames.c: Likewise.
11305 * tree-stdarg.c: Likewise.
11306 * tree-streamer-in.c: Likewise.
11307 * tree-switch-conversion.c: Likewise.
11308 * tree-tailcall.c: Likewise.
11309 * tree-vect-data-refs.c: Likewise.
11310 * tree-vect-generic.c: Likewise.
11311 * tree-vect-loop-manip.c: Likewise.
11312 * tree-vect-loop.c: Likewise.
11313 * tree-vect-patterns.c: Likewise.
11314 * tree-vect-slp.c: Likewise.
11315 * tree-vect-stmts.c: Likewise.
11316 * tree-vectorizer.c: Likewise.
11317 * tree-vrp.c: Likewise.
11318 * tree.c: Likewise.
11319 * tsan.c: Likewise.
11320 * value-prof.c: Likewise.
11321 * var-tracking.c: Likewise.
11322 * varpool.c: Likewise.
11323 * vtable-verify.c: Likewise.
11325 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11327 * config/tilegx/tilegx.c: Include "tree.h".
11329 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11331 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
11332 the info, not after it.
11333 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
11334 dump_ssaname_info call.
11335 (pp_gimple_stmt_1): Adjust caller.
11336 (dump_phi_nodes): Likewise. Don't print "# " here.
11338 2013-10-22 Jan Hubicka <jh@suse.cz>
11340 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
11342 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
11343 * i386.c (expand_small_movmem_or_setmem): New function.
11344 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
11346 (alg_usable_p): Add support for value ranges; cleanup.
11347 (ix86_expand_set_or_movmem): Add support for misaligned moves.
11349 2013-10-22 Sterling Augustine <saugustine@google.com>
11351 * doc/invoke.texi: Document -ggnu-pubnames.
11352 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
11354 * dwarf2out.c: Include gdb/gdb-index.h.
11355 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
11356 debug_generate_pub_sections.
11357 (is_java, output_pubtables, output_pubname): New functions.
11358 (include_pubname_in_output): Handle debug_generate_pub_sections at
11360 (size_of_pubnames): Use new local space_for_flags based on
11361 debug_generate_pub_sections.
11362 (output_pubnames): Unify pubnames and pubtypes output logic.
11363 Genericize comments. Call output_pubname.
11364 (dwarf2out_finish): Move logic to output_pubnames and call it.
11366 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
11369 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
11370 Remove CCCmode handling.
11371 <case LTU>: Return 'c' suffix for CCCmode.
11372 <case GEU>: Return 'nc' suffix for CCCmode.
11373 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
11374 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
11375 (*sub<mode>3_cc_overflow): Ditto.
11376 (*subsi3_zext_cc_overflow): Ditto.
11378 2013-10-22 Steve Ellcey <sellcey@mips.com>
11380 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
11381 (AND (NOT OP1) (NOT OP2)).
11383 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
11385 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11386 meaning of merge-high and merge-low masks for little endian; avoid
11387 use of vector-pack masks for little endian for mismatched modes.
11389 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11391 * config/tilepro/tilepro.c: Include "tree.h".
11393 2013-10-22 Andreas Schwab <schwab@suse.de>
11395 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
11398 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
11400 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
11401 [Ed Smith-Rowland]): New entries.
11402 ([Stephen M. Webb]): Update.
11404 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
11406 * tree-ssa-ter.h: Remove duplicate copy of file contents.
11408 2013-10-21 Marek Polacek <polacek@redhat.com>
11410 PR middle-end/58809
11411 * fold-const.c (fold_range_test): Return 0 if the type is not
11414 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
11416 * system.h: Move hwint.h include further down.
11417 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
11418 gcc_checking_asserts.
11419 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
11421 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11423 Fix volatile issues in optimize_bit_field_compare.
11424 * fold-const.c (optimize_bit_field_compare): Bail out if
11425 lvolatilep or rvolatilep.
11427 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11429 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
11430 and get_inner_reference returning different pmode for non-volatile
11431 bit-field members dependent on flag_strict_volatile_bitfields.
11432 * stor-layout.c (layout_decl): Remove special handling of
11433 flag_strict_volatile_bitfields.
11434 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
11435 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
11437 2013-10-21 Paulo Matos <pmatos@broadcom.com>
11439 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
11442 2013-10-21 Jeff Law <law@redhat.com>
11444 * tree-ssa-threadedge.c (thread_through_normal_block): New
11445 argument VISITED. Remove VISISTED as a local variable. When we
11446 have a threadable jump, verify the destination of the jump has not
11448 (thread_across_edge): Allocate VISITED bitmap once at function
11449 scope and use it throughout. Make sure to set appropriate bits in
11450 VISITED for E (start of jump thread path).
11451 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
11452 through a joiner if any edge on the path has a recorded jump thread.
11454 2013-10-21 Ian Lance Taylor <iant@google.com>
11456 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
11457 don't imply that attributes can solve all problems.
11458 (Directory Options): Fix typo.
11460 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11462 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
11463 extend and extend_add.
11465 2013-10-21 Richard Biener <rguenther@suse.de>
11467 PR tree-optimization/58794
11468 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
11469 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
11471 2013-10-21 Richard Biener <rguenther@suse.de>
11473 PR middle-end/58742
11474 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
11475 to (T) X for sign-changing conversions (or no conversion).
11477 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
11479 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
11481 2013-10-20 Jan Hubicka <jh@suse.cz>
11483 * config/i386/i386-tune.def: Add comment; organize into categories
11485 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
11487 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
11488 argument. Update function comment.
11489 (expand_set_or_movmem_via_rep): New function combining
11490 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
11491 (expand_movmem_via_rep_mov): Remove.
11492 expand_setmem_via_rep_stos): Remove.
11493 (expand_movmem_epilogue): Update calls correspondingly.
11494 (expand_setmem_epilogue_via_loop): Likewise.
11495 (emit_memset): New.
11496 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
11497 (expand_set_or_movmem_prologue): New function combining
11498 expand_movmem_prologue and expand_setmem_prologue.
11499 (expand_movmem_prologue): Remove.
11500 (expand_setmem_prologue): Remove.
11501 (expand_set_or_movmem_constant_prologue): New function combining
11502 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
11503 (expand_constant_movmem_prologue): Remove.
11504 (expand_constant_setmem_prologue): Remove.
11505 (promote_duplicated_reg): Allow vector-const0 value.
11506 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
11507 and ix86_expand_setmem.
11508 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
11509 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
11511 2013-10-21 Diego Novillo <dnovillo@google.com>
11513 * asan.c: Include tree.h
11514 * bb-reorder.c: Likewise.
11515 * cfgcleanup.c: Likewise.
11516 * cfgloopmanip.c: Likewise.
11517 * data-streamer-in.c: Likewise.
11518 * data-streamer-out.c: Likewise.
11519 * data-streamer.c: Likewise.
11520 * dwarf2cfi.c: Likewise.
11521 * graphite-blocking.c: Likewise.
11522 * graphite-clast-to-gimple.c: Likewise.
11523 * graphite-dependences.c: Likewise.
11524 * graphite-interchange.c: Likewise.
11525 * graphite-optimize-isl.c: Likewise.
11526 * graphite-poly.c: Likewise.
11527 * graphite-scop-detection.c: Likewise.
11528 * graphite-sese-to-poly.c: Likewise.
11529 * graphite.c: Likewise.
11530 * ipa-devirt.c: Likewise.
11531 * ipa-profile.c: Likewise.
11534 * loop-init.c: Likewise.
11535 * loop-unroll.c: Likewise.
11536 * lower-subreg.c: Likewise.
11537 * lto/lto-object.c: Likewise.
11538 * recog.c: Likewise.
11539 * reginfo.c: Likewise.
11540 * tree-loop-distribution.c: Likewise.
11541 * tree-parloops.c: Likewise.
11542 * tree-ssa-strlen.c: Likewise.
11543 * tree-streamer.c: Likewise.
11544 * value-prof.c: Likewise.
11545 * target-globals.c: Likewise.
11546 * expr.h: Include tree-core.h instead of tree.h.
11547 * gimple.h: Likewise.
11548 * ipa-prop.h: Likewise.
11549 * ipa-utils.h: Likewise.
11550 * lto-streamer.h: Likewise.
11551 * streamer-hooks.h: Likewise.
11552 * ipa-reference.h: Include cgraph.h instead of tree.h.
11553 * cgraph.h: Include basic-block.h instead of tree.h.
11554 * tree-streamer.h: Do not include tree.h.
11555 * genattrtab.c (write_header): Generate inclusion of tree.h.
11556 * genautomata.c (main): Likewise.
11557 * genemit.c: Likewise.
11558 * genopinit.c: Likewise.
11559 * genoutput.c (output_prologue): Likewise.
11560 * genpeep.c: Likewise.
11562 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11564 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
11566 (vec_unpacku_hi_v8hi): Likewise.
11567 (vec_unpacku_lo_v16qi): Likewise.
11568 (vec_unpacku_lo_v8hi): Likewise.
11570 2013-10-20 Jan Hubicka <jh@suse.cz>
11572 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
11573 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
11574 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
11576 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
11578 * config/mips/mips.h (ISA_HAS_WSBH): Define.
11579 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
11581 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
11583 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
11586 * system.h: Undef m_slot.
11588 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11590 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
11591 all elements for both endian flavors.
11593 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11596 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
11597 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
11598 and SI_REG for 64bit SYSV ABI targets.
11600 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11602 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
11603 to multi_reg_return. Clarify that we are skipping USEs of multiple
11604 return registers. Use bool type where appropriate.
11606 2013-10-18 Jan Hubicka <jh@suse.cz>
11608 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
11609 for cold functions.
11610 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
11611 (X86_TUNE_PUSH_MEMORY): Likewise.
11612 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
11613 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
11614 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
11616 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
11617 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
11619 (ix86_option_override_internal): Update to use tune features instead
11622 2013-10-18 Cong Hou <congh@google.com>
11624 PR tree-optimization/58508
11625 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
11626 statement that contains data refs with zero-step.
11628 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11630 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
11631 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
11632 * gimple-low.c (gimple_check_call_arg,
11633 gimple_check_call_matching_types): Move to cgraph.c.
11634 * gimple-low.h: Remove prototype.
11635 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
11636 Relocate from gimple-low.c.
11637 * cgraph.h: Add prototype. Don't include basic-block.h.
11638 * gimplify.c: Add gimple-low to include list.
11639 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
11640 * tree-eh.c: Add gimple-low to include list.
11641 * tree-nested.c: Likewise.
11642 * cfgexpand.c: Add tree-ssa-address.h to include list.
11643 * expr.c: Likewise.
11644 * gimple-fold.c: Likewise.
11645 * gimple-ssa-strength-reduction.c: Likewise.
11646 * trans-mem.c: Likewise.
11647 * tree-mudflap.c: Likewise.
11648 * tree-ssa-loop-ivopts.c: Likewise.
11649 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
11650 (degenerate_phi_result): Move to tree-phinodes.c.
11651 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
11652 * tree-ssa-threadedge.c: Likewise.
11653 * tree-vrp.c: Likewise.
11654 * tree-phinodes.c (degenerate_phi_result): Relocate here.
11655 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
11656 * tree-phinodes.h (degenerate_phi_result): Add prototype.
11657 * tree-ssa-copy.c: Include tree-ssa-dom.h.
11658 * tree-ssa-forwprop.c: Likewise.
11659 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
11660 pass_data_cleanup_cfg_post_optimizing,
11661 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
11662 * tree-optimize.c: Delete File.
11663 * graphite.c: Include tree-cfgcleanup.h.
11664 * passes.c: Likewise.
11665 * tree-cfg.c: Likewise.
11666 * tree-profile.c: Likewise.
11667 * tree-ssa-dse.c: Likewise.
11668 * tree-ssa-loop-ivcanon.c: Likewise.
11669 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
11670 * tree-outof-ssa.c: Include sbitmap.h.
11671 * tree-ssa-live.c: Likewise.
11672 * tree-ssa-propagate.c: Likewise.
11673 * tree-ssa-structalias.c: Likewise.
11674 * tree-stdarg.c: Likewise.
11675 * Makefile.in (OBJS): Delete tree-optimize.o.
11676 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
11677 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
11678 * varasm.c: Include basic-block.h.
11679 * cfgloop.h: Include function.h instead of basic-block.h
11680 (bb_loop_depth): Move to cfgloop.c.
11681 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
11683 2013-10-18 Teresa Johnson <tejohnson@google.com>
11685 * predict.c (probably_never_executed): Compare frequency-based
11686 count to number of training runs.
11687 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
11689 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11691 * config/arm/arm.c (cortexa9_extra_costs): New table.
11692 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
11694 2013-10-18 Jeff Law <law@redhat.com>
11696 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
11698 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
11699 (register_jump_thread): Add "registered_jump_thread" debug
11701 * dbgcnt.def (registered_jump_thread): New debug counter.
11703 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11705 * config/rs6000/rs6000.c: Include cgraph.h.
11707 2013-10-18 Teresa Johnson <tejohnson@google.com>
11709 * tree-ssa-tail-merge.c (replace_block_by): Update edge
11710 weights during merging.
11712 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11714 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
11715 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
11716 * tree-ssa-operands.h: Remove prototype.
11717 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
11718 * gimple.c (virtual_operand_p): Relocate from gimple.c.
11719 * gimple.h: Add prototype.
11720 * gimple-ssa.h: Include tree-ssa-operands.h.
11721 * tree-dump.c: Add tree-cfg.h to include list.
11722 * tree-ssa-alias.c: Add ipa-reference.h to include list.
11723 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
11724 * config/i386/i386.c: Don't include tree-flow.h.
11725 * config/rs6000/rs6000.c: Likewise.
11727 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11729 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
11731 2013-10-18 Richard Biener <rguenther@suse.de>
11733 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
11734 or TYPE_UNSIGNED of integral types.
11735 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
11736 NULL_TREE for zero-precision integral types.
11738 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
11740 * config/aarch64/arm_neon.h
11741 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
11743 2013-10-17 Sriraman Tallam <tmsriram@google.com>
11746 * opth-gen.awk: Define target_flags_explicit.
11748 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11750 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
11751 fields to the reg_addr array that describes the valid addressing
11752 mode for any register, general purpose registers, floating point
11753 registers, and Altivec registers.
11754 (FIRST_RELOAD_REG_CLASS): Likewise.
11755 (LAST_RELOAD_REG_CLASS): Likewise.
11756 (struct reload_reg_map_type): Likewise.
11757 (reload_reg_map_type): Likewise.
11758 (RELOAD_REG_VALID): Likewise.
11759 (RELOAD_REG_MULTIPLE): Likewise.
11760 (RELOAD_REG_INDEXED): Likewise.
11761 (RELOAD_REG_OFFSET): Likewise.
11762 (RELOAD_REG_PRE_INCDEC): Likewise.
11763 (RELOAD_REG_PRE_MODIFY): Likewise.
11764 (reg_addr): Likewise.
11765 (mode_supports_pre_incdec_p): New helper functions to say whether
11766 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
11767 (mode_supports_pre_modify_p): Likewise.
11768 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
11769 print the valid address mode bits for each mode.
11770 (rs6000_debug_print_mode): Likewise.
11771 (rs6000_debug_reg_global): Likewise.
11772 (rs6000_setup_reg_addr_masks): New function to set up the address
11773 mask bits for each type.
11774 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
11775 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
11776 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
11777 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
11778 PRE_MODIFY are supported.
11779 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
11780 registers, instead of {src,dest}_av_p.
11781 (rs6000_print_options_internal): Tweak the debug output slightly.
11783 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11785 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
11788 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
11790 * tree-flow.h (struct omp_region): Move to omp-low.c.
11791 Remove omp_ prototypes and variables.
11792 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
11793 (copy_var_decl): Relocate prototype from tree-flow.h.
11794 * gimple.c (copy_var_decl): Relocate from omp-low.c.
11795 * tree.h: Move prototype to omp-low.h.
11796 * omp-low.h: New File. Relocate prototypes here.
11797 * omp-low.c (struct omp_region): Make local here.
11798 (root_omp_region): Make static.
11799 (copy_var_decl) Move to gimple.c.
11800 (new_omp_region): Make static.
11801 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
11802 * tree-cfg.c: Include omp-low.h.
11803 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
11804 * gimplify.c: Include omp-low.h.
11805 * tree-parloops.c: Likewise.
11807 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11809 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
11810 operands are in memory, prefer to force non-matched operand 1 to
11813 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11816 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
11817 restrict TImode addresses to single indirect registers if both
11818 -mquad-memory and -mvsx-timode are used.
11819 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
11820 we should emit load/store quad. Remove using %y for quad memory
11823 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
11824 constraints to allow load/store quad on machines where TImode is
11825 not allowed in VSX registers. Use 'n' instead of 'F' constraint
11826 for TImode to load integer constants.
11828 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11830 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
11832 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
11834 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
11835 handling of STACK_REG.
11837 2013-10-17 Richard Biener <rguenther@suse.de>
11839 PR tree-optimization/58143
11840 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
11842 (rewrite_to_defined_overflow): Likewise.
11843 (move_computations_dom_walker::before_dom): Rewrite stmts
11844 with undefined signed overflow that are not always executed
11845 into unsigned arithmetic.
11847 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
11850 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
11851 explicit isa flag to be an options variable, instead of using
11852 global_options_set. Remove define from rs6000.h.
11853 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
11855 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11856 Initialize rs6000_isa_flags_explicit.
11857 (rs6000_function_specific_save): Add gcc_options* parameter, so
11858 that the powerpc builds after the 2013-10-15 changes.
11859 (rs6000_function_specific_restore): Likewise.
11861 2013-10-16 DJ Delorie <dj@redhat.com>
11863 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
11864 op is a REG before checking REGNO.
11865 (rl78_alloc_physical_registers): Verify pattern is a SET before
11868 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11870 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
11872 (vec_unpacks_lo_v4sf): Likewise.
11873 (vec_unpacks_float_hi_v4si): Likewise.
11874 (vec_unpacks_float_lo_v4si): Likewise.
11875 (vec_unpacku_float_hi_v4si): Likewise.
11876 (vec_unpacku_float_lo_v4si): Likewise.
11878 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11880 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
11881 (vsx_concat_v2sf): Likewise.
11883 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
11885 * config/aarch64/aarch64.md
11886 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
11888 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
11890 PR tree-optimization/58697
11891 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
11892 estimated_loop_iterations_int.
11893 (max_stmt_executions_int): Call get_max_loop_iterations_int.
11894 (get_max_loop_iterations_int): New. HWINT version of
11895 get_max_loop_iterations.
11896 * cfgloop.h: Add prototypes.
11897 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
11898 * loop-unroll.c (decide_peel_once_rolling): Call
11899 get_estimated_loop_iterations_int.
11900 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
11901 * tree-ssa-loop-niter.h: Tweak prototypes.
11903 2013-10-16 David Malcolm <dmalcolm@redhat.com>
11905 * gengtype-parse.c (struct_field_seq): Ignore access-control
11906 keywords ("public:" etc).
11908 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
11910 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
11911 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
11913 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
11915 * config/arm/arm.opt (mlra): New option.
11916 * config/arm/arm.c (arm_lra_p): New function.
11917 (TARGET_LRA_P): Define.
11919 2013-10-16 Paulo Matos <pmatos@broadcom.com>
11921 * tree-core.h (tree_code_name): Remove.
11922 * tree.h (get_tree_code_name): New prototype.
11923 * tree.c (tree_code_name): Make static.
11924 (get_tree_code_name): New function.
11925 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
11926 tree_class_check_failed, tree_range_check_failed,
11927 tree_not_class_check_failed, omp_clause_check_failed,
11928 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
11929 wrapper get_tree_code_name instead of calling tree_code_name directly.
11930 * tree-vrp.c (dump_asserts_for): Likewise.
11931 * tree-dump.c (dequeue_and_dump): Likewise.
11932 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
11933 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
11934 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
11935 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
11936 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
11937 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
11938 dump_gimple_omp_for): Likewise.
11939 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
11940 * tree-ssa-pre.c (print_pre_expr): Likewise.
11941 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
11942 * print-tree.c (print_node_brief, print_node): Likewise.
11943 * gimple.c (gimple_check_failed): Likewise.
11944 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
11945 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
11946 * config/mep/mep.c (mep_validate_vliw): Likewise.
11947 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
11948 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11950 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11952 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
11955 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
11957 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
11958 (MULTILIB_MATCHES): Add multilib for -march=v8.
11960 2013-10-15 Sriraman Tallam <tmsriram@google.com>
11963 * optc-save-gen.awk: Add extra parameter to the save and restore
11965 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
11966 * tree.c (build_optimization_node): New parameter. Add extra parameter
11967 to call to cl_optimization_save.
11968 (build_target_option_node): New parameter. Add extra parameter
11969 to call to cl_target_option_save.
11970 * tree.h (build_optimization_node): New parameter.
11971 (build_target_option_node): New parameter.
11972 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
11973 build_optimization_node and build_target_option_node.
11974 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
11975 (handle_pragma_push_options): Ditto.
11976 * toplev.c (process_options): Ditto.
11977 * opts.c (init_options_struct): Check for opts_set non-null.
11978 * target.def (target_option.save): New parameter.
11979 (target_option.restore): New parameter.
11980 * tm.texi: Generate.
11981 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
11982 (ix86_pragma_target_parse): Ditto.
11983 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
11985 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
11986 to build_optimization_node and build_target_option_node.
11987 (rs6000_valid_attribute_p): Ditto.
11988 (rs6000_pragma_target_parse): Ditto.
11989 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
11991 * config/i386/i386.h:
11992 TARGET_64BIT_P: New Macro
11993 TARGET_MMX_P: New Macro.
11994 TARGET_3DNOW_P: New Macro.
11995 TARGET_3DNOW_A_P: New Macro.
11996 TARGET_SSE_P: New Macro.
11997 TARGET_SSE2_P: New Macro.
11998 TARGET_SSE3_P: New Macro.
11999 TARGET_SSSE3_P: New Macro.
12000 TARGET_SSE4_1_P: New Macro.
12001 TARGET_SSE4_2_P: New Macro.
12002 TARGET_AVX_P: New Macro.
12003 TARGET_AVX2_P: New Macro.
12004 TARGET_AVX512F_P: New Macro.
12005 TARGET_AVX512PF_P: New Macro.
12006 TARGET_AVX512ER_P: New Macro.
12007 TARGET_AVX512CD_P: New Macro.
12008 TARGET_FMA_P: New Macro.
12009 TARGET_SSE4A_P: New Macro.
12010 TARGET_FMA4_P: New Macro.
12011 TARGET_XOP_P: New Macro.
12012 TARGET_LWP_P: New Macro.
12013 TARGET_ABM_P: New Macro.
12014 TARGET_BMI_P: New Macro.
12015 TARGET_BMI2_P: New Macro.
12016 TARGET_LZCNT_P: New Macro.
12017 TARGET_TBM_P: New Macro.
12018 TARGET_POPCNT_P: New Macro.
12019 TARGET_SAHF_P: New Macro.
12020 TARGET_MOVBE_P: New Macro.
12021 TARGET_CRC32_P: New Macro.
12022 TARGET_AES_P: New Macro.
12023 TARGET_PCLMUL_P: New Macro.
12024 TARGET_CMPXCHG16B_P: New Macro.
12025 TARGET_FSGSBASE_P: New Macro.
12026 TARGET_RDRND_P: New Macro.
12027 TARGET_F16C_P: New Macro.
12028 TARGET_RTM_P: New Macro.
12029 TARGET_HLE_P: New Macro.
12030 TARGET_RDSEED_P: New Macro.
12031 TARGET_PRFCHW_P: New Macro.
12032 TARGET_ADX_P: New Macro.
12033 TARGET_FXSR_P: New Macro.
12034 TARGET_XSAVE_P: New Macro.
12035 TARGET_XSAVEOPT_P: New Macro.
12036 TARGET_LP64_P: New Macro.
12037 TARGET_X32_P: New Macro.
12038 TARGET_FPMATH_DEFAULT_P: New Macro.
12039 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
12040 * config/i386/i386.c (ix86_option_override_internal): New parameters.
12042 Change ix86_tune_string to access opts->x_ix86_tune_string.
12043 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
12044 Change ix86_arch_string to access opts->x_ix86_arch_string.
12045 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
12046 Change ix86_pmode to access opts->x_ix86_pmode.
12047 Change ix86_abi to access opts->x_ix86_abi.
12048 Change ix86_cmodel to access opts->x_ix86_cmodel.
12049 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
12050 Change ix86_isa_flags_explicit to access
12051 opts->x_ix86_isa_flags_explicit.
12052 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
12053 Change ix86_regparm to access opts->x_ix86_regparm.
12054 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
12055 Change ix86_preferred_stack_boundary_arg to access
12056 opts->x_ix86_preferred_stack_boundary_arg.
12057 Change ix86_force_align_arg_pointer to access
12058 opts->x_ix86_force_align_arg_pointer.
12059 Change ix86_incoming_stack_boundar_arg to access
12060 opts->x_ix86_incoming_stack_boundar_arg.
12061 Change ix86_fpmath to access opts->x_ix86_fpmath.
12062 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
12063 Change ix86_recip_name to access opts->x_ix86_recip_name.
12064 Change ix86_stack_protector_guard to access
12065 opts->x_ix86_stack_protector_guard.
12066 Change ix86_tune_memcpy_strategy to access
12067 opts->x_ix86_tune_memcpy_strategy.
12068 Change ix86_tune_memset_strategy to access
12069 opts->x_ix86_tune_memset_strategy.
12070 Change global_options to access opts.
12071 Change global_options_set to access opts_set.
12072 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
12073 Change TARGET_MMX to TARGET_MMX_P (opts->...).
12074 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
12075 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
12076 Change TARGET_SSE to TARGET_SSE_P (opts->...).
12077 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
12078 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
12079 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
12080 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
12081 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
12082 Change TARGET_AVX to TARGET_AVX_P (opts->...).
12083 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
12084 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
12085 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
12086 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
12087 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
12088 Change TARGET_FMA to TARGET_FMA_P (opts->...).
12089 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
12090 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
12091 Change TARGET_XOP to TARGET_XOP_P (opts->...).
12092 Change TARGET_LWP to TARGET_LWP_P (opts->...).
12093 Change TARGET_ABM to TARGET_ABM_P (opts->...).
12094 Change TARGET_BMI to TARGET_BMI_P (opts->...).
12095 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
12096 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
12097 Change TARGET_TBM to TARGET_TBM_P (opts->...).
12098 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
12099 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
12100 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
12101 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
12102 Change TARGET_AES to TARGET_AES_P (opts->...).
12103 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
12104 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
12105 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
12106 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
12107 Change TARGET_F16C to TARGET_F16C_P (opts->...).
12108 Change TARGET_RTM to TARGET_RTM_P (opts->...).
12109 Change TARGET_HLE to TARGET_HLE_P (opts->...).
12110 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
12111 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
12112 Change TARGET_ADX to TARGET_ADX_P (opts->...).
12113 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
12114 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
12115 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
12116 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
12117 Change TARGET_X32 to TARGET_X32_P (opts->...).
12118 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
12119 Change TARGET_FLOAT_RETURNS_IN_80387 to
12120 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
12121 (ix86_function_specific_save): New parameter. Use opts-> fields
12122 to replace global fields.
12123 (ix86_function_specific_restore): Ditto.
12124 (ix86_valid_target_attribute_inner_p): New parameters.
12125 Fix recursive call.
12126 Fix call to ix86_handle_option and set_option.
12127 (ix86_valid_target_attribute_tree): New parameters.
12128 Change global_options to access opts.
12129 Change global_options_set to access opts_set.
12130 Fix call to ix86_valid_target_attribute_inner_p.
12131 Change ix86_tune_string to access opts->x_ix86_tune_string.
12132 Change ix86_arch_string to access opts->x_ix86_arch_string.
12133 Change ix86_fpmath to access opts->x_ix86_fpmath
12134 Fix call to ix86_option_override_internal.
12135 Fix call to ix86_add_new_builtins.
12136 Fix calls to build_optimization_node and build_target_option_node.
12137 (ix86_valid_target_attribute_p): Remove access to global_options.
12138 Use new gcc_options structure func_options.
12139 Fix call to ix86_valid_target_attribute_tree.
12140 Fix call to build_optimization_node.
12141 (get_builtin_code_for_version): Fix call to
12142 ix86_valid_target_attribute_tree.
12144 2013-10-15 David Malcolm <dmalcolm@redhat.com>
12146 * Makefile.in (PICFLAG): New.
12147 (enable_host_shared): New.
12148 (INTERNAL_CFLAGS): Use PICFLAG.
12149 (LIBIBERTY): Use pic build of libiberty.a if configured with
12150 --enable-host-shared.
12151 * configure.ac: Add --enable-host-shared, setting up new
12153 * configure: Regenerate.
12154 * doc/install.texi (--enable-shared): Add note contrasting it with ...
12155 (--enable-host-shared): New option.
12157 2013-10-15 Richard Biener <rguenther@suse.de>
12159 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
12160 for built-in functions.
12162 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
12164 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
12165 (optimize_range_tests_1): New function,
12166 extracted from optimize_range_tests.
12167 (optimize_range_tests_xor): Similarly.
12168 (optimize_range_tests_diff): New function.
12169 (optimize_range_tests): Use optimize_range_tests_1.
12171 2013-10-15 Cong Hou <congh@google.com>
12173 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
12174 requirement of the reduction pattern so that one operand of the
12175 reduction operation can come from outside of the loop.
12177 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12179 * config/arm/neon-schedgen.ml: Remove.
12180 * config/arm/cortex-a9-neon.md: Remove comment regarding
12183 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12185 * config/arm/types: Remove old neon types.
12187 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12189 * config/arm/cortex-a7.md
12190 (cortex_a7_neon_type): New.
12191 (cortex_a7_neon_mul): Update for new types.
12192 (cortex_a7_neon_mla): Likewise.
12193 (cortex_a7_neon): Likewise.
12195 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12197 * config/arm/cortex-a15-neon.md
12198 (cortex_a15_neon_type): New,
12200 (cortex_a15_neon_int_1): Remove.
12201 (cortex_a15_neon_int_2): Likewise.
12202 (cortex_a15_neon_int_3): Likewise.
12203 (cortex_a15_neon_int_4): Likewise.
12204 (cortex_a15_neon_int_5): Likewise.
12205 (cortex_a15_neon_vqneg_vqabs): Likewise.
12206 (cortex_a15_neon_vmov): Likewise.
12207 (cortex_a15_neon_vaba): Likewise.
12208 (cortex_a15_neon_vaba_qqq): Likewise.
12209 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12210 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12211 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12213 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12214 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12215 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12216 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12217 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12218 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12219 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12220 (cortex_a15_neon_shift_1): Likewise.
12221 (cortex_a15_neon_shift_2): Likewise.
12222 (cortex_a15_neon_shift_3): Likewise.
12223 (cortex_a15_neon_vshl_ddd): Likewise.
12224 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12225 (cortex_a15_neon_vsra_vrsra): Likewise.
12226 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12227 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12228 (cortex_a15_neon_bp_3cycle): Likewise.
12229 (cortex_a15_neon_ldm_2): Likewise.
12230 (cortex_a15_neon_stm_2): Likewise.
12231 (cortex_a15_neon_mcr): Likewise.
12232 (cortex_a15_neon_mrc): Likewise.
12233 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12234 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12235 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12236 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12237 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12238 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12239 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12240 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12241 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12242 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12243 (cortex_a15_neon_bp_simple): Likewise.
12244 (cortex_a15_neon_bp_2cycle): Likewise.
12245 (cortex_a15_neon_bp_3cycle): Likewise.
12246 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12247 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12248 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12249 (cortex_a15_neon_vld2_4_regs): Likewise.
12250 (cortex_a15_neon_vld3_vld4): Likewise.
12251 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12252 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12253 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12254 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12255 (cortex_a15_neon_vst3_vst4): Rename to...
12256 (cortex_a15_neon_vst4): This, update for new attributes.
12257 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12258 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12259 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12260 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12261 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12262 (cortex_a15_neon_ldm_2): Likewise.
12263 (cortex_a15_neon_stm_2): Likewise.
12264 (cortex_a15_neon_mcr): Likewise.
12265 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12266 (cortex_a15_neon_mrc): Likewise.
12267 (cortex_a15_neon_mrrc): Likewise.
12269 (cortex_a15_neon_abd): New.
12270 (cortex_a15_neon_abd_q): Likewise.
12271 (cortex_a15_neon_aba): Likewise.
12272 (cortex_a15_neon_aba_q): Likewise.
12273 (cortex_a15_neon_acc): Likewise.
12274 (cortex_a15_neon_acc_q): Likewise.
12275 (cortex_a15_neon_arith_basic): Likewise.
12276 (cortex_a15_neon_arith_complex): Likewise.
12277 (cortex_a15_neon_multiply): Likewise.
12278 (cortex_a15_neon_multiply_q): Likewise.
12279 (cortex_a15_neon_mla): Likewise.
12280 (cortex_a15_neon_mla_q): Likewise.
12281 (cortex_a15_neon_sat_mla_long): Likewise.
12282 (cortex_a15_neon_shift_acc): Likewise.
12283 (cortex_a15_neon_shift_imm_basic): Likewise.
12284 (cortex_a15_neon_shift_imm_complex): Likewise.
12285 (cortex_a15_neon_shift_reg_basic): Likewise.
12286 (cortex_a15_neon_shift_reg_basic_q): Likewise.
12287 (cortex_a15_neon_shift_reg_complex): Likewise.
12288 (cortex_a15_neon_shift_reg_complex_q): Likewise.
12289 (cortex_a15_neon_fp_negabs): Likewise
12290 (cortex_a15_neon_fp_arith): Likewise
12291 (cortex_a15_neon_fp_arith_q): Likewise
12292 (cortex_a15_neon_fp_cvt_int): Likewise
12293 (cortex_a15_neon_fp_cvt_int_q): Likewise
12294 (cortex_a15_neon_fp_cvt_16): Likewise
12295 (cortex_a15_neon_fp_mul): Likewise
12296 (cortex_a15_neon_fp_mul_q): Likewise
12297 (cortex_a15_neon_fp_mla): Likewise
12298 (cortex_a15_neon_fp_mla_q): Likewise
12299 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
12300 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
12301 (cortex_a15_neon_bitops): Likewise.
12302 (cortex_a15_neon_bitops_q): Likewise.
12303 (cortex_a15_neon_from_gp): Likewise.
12304 (cortex_a15_neon_from_gp_q): Likewise.
12305 (cortex_a15_neon_tbl3_tbl4): Likewise.
12306 (cortex_a15_neon_zip_q): Likewise.
12307 (cortex_a15_neon_to_gp): Likewise.
12308 (cortex_a15_neon_load_a): Likewise.
12309 (cortex_a15_neon_load_b): Likewise.
12310 (cortex_a15_neon_load_c): Likewise.
12311 (cortex_a15_neon_load_d): Likewise.
12312 (cortex_a15_neon_load_e): Likewise.
12313 (cortex_a15_neon_load_f): Likewise.
12314 (cortex_a15_neon_store_a): Likewise.
12315 (cortex_a15_neon_store_b): Likewise.
12316 (cortex_a15_neon_store_c): Likewise.
12317 (cortex_a15_neon_store_d): Likewise.
12318 (cortex_a15_neon_store_e): Likewise.
12319 (cortex_a15_neon_store_f): Likewise.
12320 (cortex_a15_neon_store_g): Likewise.
12321 (cortex_a15_neon_store_h): Likewise.
12322 (cortex_a15_vfp_to_from_gp): Likewise.
12324 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12326 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
12328 (cortex_a9_neon_vshl_ddd): Remove.
12329 (cortex_a9_neon_vst3_vst4): Likewise.
12330 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12332 (cortex_a9_neon_bit_ops_q): New.
12334 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
12335 (cortex_a9_neon_int_2): Likewise.
12336 (cortex_a9_neon_int_3): Likewise.
12337 (cortex_a9_neon_int_4): Likewise.
12338 (cortex_a9_neon_int_5): Likewise.
12339 (cortex_a9_neon_vqneg_vqabs): Likewise.
12340 (cortex_a9_neon_vmov): Likewise.
12341 (cortex_a9_neon_vaba): Likewise.
12342 (cortex_a9_neon_vaba_qqq): Likewise.
12343 (cortex_a9_neon_shift_1): Likewise.
12344 (cortex_a9_neon_shift_2): Likewise.
12345 (cortex_a9_neon_shift_3): Likewise.
12346 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12347 (cortex_a9_neon_vsra_vrsra): Likewise.
12348 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12349 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12350 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12352 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12353 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12354 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12356 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12357 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12358 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12359 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12360 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12361 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12362 (cortex_a9_neon_fp_vsum): Likewise.
12363 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12364 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12365 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12366 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12367 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12368 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12369 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12370 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12371 (cortex_a9_neon_bp_simple): Likewise.
12372 (cortex_a9_neon_bp_2cycle): Likewise.
12373 (cortex_a9_neon_bp_3cycle): Likewise.
12374 (cortex_a9_neon_ldr): Likewise.
12375 (cortex_a9_neon_str): Likewise.
12376 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12377 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12378 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12379 (cortex_a9_neon_vld2_4_regs): Likewise.
12380 (cortex_a9_neon_vld3_vld4): Likewise.
12381 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12382 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12383 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12384 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12385 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12386 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12387 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12388 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12389 (cortex_a9_neon_mcr): Likewise.
12390 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12391 (cortex_a9_neon_mrc): Likewise.
12392 (cortex_a9_neon_mrrc): Likewise.
12394 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12396 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
12398 (cortex_a8_neon_vshl_ddd): Remove.
12399 (cortex_a8_neon_vst3_vst4): Likewise.
12400 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12402 (cortex_a8_neon_bit_ops_q): New.
12404 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
12405 (cortex_a8_neon_int_2): Likewise..
12406 (cortex_a8_neon_int_3): Likewise.
12407 (cortex_a8_neon_int_5): Likewise.
12408 (cortex_a8_neon_vqneg_vqabs): Likewise.
12409 (cortex_a8_neon_int_4): Likewise.
12410 (cortex_a8_neon_vaba): Likewise.
12411 (cortex_a8_neon_vaba_qqq): Likewise.
12412 (cortex_a8_neon_shift_1): Likewise.
12413 (cortex_a8_neon_shift_2): Likewise.
12414 (cortex_a8_neon_shift_3): Likewise.
12415 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12416 (cortex_a8_neon_vsra_vrsra): Likewise.
12417 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12418 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12419 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12421 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12422 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12423 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12425 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12426 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12427 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12428 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12429 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12430 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12431 (cortex_a8_neon_fp_vsum): Likewise.
12432 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12433 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12434 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12435 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12436 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12437 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12438 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12439 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12440 (cortex_a8_neon_bp_simple): Likewise.
12441 (cortex_a8_neon_bp_2cycle): Likewise.
12442 (cortex_a8_neon_bp_3cycle): Likewise.
12443 (cortex_a8_neon_ldr): Likewise.
12444 (cortex_a8_neon_str): Likewise.
12445 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12446 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12447 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12448 (cortex_a8_neon_vld2_4_regs): Likewise.
12449 (cortex_a8_neon_vld3_vld4): Likewise.
12450 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12451 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12452 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12453 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12454 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12455 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12456 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12457 (cortex_a8_neon_mcr): Likewise.
12458 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12459 (cortex_a8_neon_mrc): Likewise.
12460 (cortex_a8_neon_mrrc): Likewise.
12462 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12464 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
12466 * config/aarch64/aarch64-simd.md (neon_type): Remove.
12467 (aarch64_simd_dup<mode>): Add "type" attribute.
12468 (aarch64_dup_lane<mode>): Likewise.
12469 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
12470 (*aarch64_simd_mov<mode>): Likewise.
12471 (aarch64_simd_mov_from_<mode>low): Likewise.
12472 (aarch64_simd_mov_from_<mode>high): Likewise.
12473 (orn<mode>3): Likewise.
12474 (bic<mode>3): Likewise.
12475 (add<mode>3): Likewise.
12476 (sub<mode>3): Likewise.
12477 (mul<mode>3): Likewise.
12478 (*aarch64_mul3_elt<mode>): Likewise.
12479 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12480 (*aarch64_mul3_elt_to_128df): Likewise.
12481 (*aarch64_mul3_elt_to_64v2df): Likewise.
12482 (neg<mode>2): Likewise.
12483 (abs<mode>2): Likewise.
12484 (abd<mode>_3): Likewise.
12485 (aba<mode>_3): Likewise.
12486 (fabd<mode>_3): Likewise.
12487 (*fabd_scalar<mode>3): Likewise.
12488 (and<mode>3): Likewise.
12489 (ior<mode>3): Likewise.
12490 (xor<mode>3): Likewise.
12491 (one_cmpl<mode>2): Likewise.
12492 (aarch64_simd_vec_set<mode>): Likewise.
12493 (aarch64_simd_lshr<mode>): Likewise.
12494 (aarch64_simd_ashr<mode>): Likewise.
12495 (aarch64_simd_imm_shl<mode>): Likewise.
12496 (aarch64_simd_reg_sshl<mode): Likewise.
12497 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
12498 (aarch64_simd_reg_shl<mode>_signed): Likewise.
12499 (aarch64_simd_vec_setv2di): Likewise.
12500 (aarch64_simd_vec_set<mode>): Likewise.
12501 (aarch64_mla<mode>): Likewise.
12502 (*aarch64_mla_elt<mode>): Likewise.
12503 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12504 (aarch64_mls<mode>): Likewise.
12505 (*aarch64_mls_elt<mode>): Likewise.
12506 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12507 (<su><maxmin><mode>3): Likewise.
12508 (move_lo_quad_<mode>): Likewise.
12509 (aarch64_simd_move_hi_quad_<mode>): Likewise.
12510 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
12511 (vec_pack_trunc_<mode>): Likewise.
12512 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
12513 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
12514 (*aarch64_<su>mlal_lo<mode>): Likewise.
12515 (*aarch64_<su>mlal_hi<mode>): Likewise.
12516 (*aarch64_<su>mlsl_lo<mode>): Likewise.
12517 (*aarch64_<su>mlsl_hi<mode>): Likewise.
12518 (*aarch64_<su>mlal<mode>): Likewise.
12519 (*aarch64_<su>mlsl<mode>): Likewise.
12520 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
12521 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
12522 (add<mode>3): Likewise.
12523 (sub<mode>3): Likewise.
12524 (mul<mode>3): Likewise.
12525 (div<mode>3): Likewise.
12526 (neg<mode>2): Likewise.
12527 (abs<mode>2): Likewise.
12528 (fma<mode>4): Likewise.
12529 (*aarch64_fma4_elt<mode>): Likewise.
12530 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12531 (*aarch64_fma4_elt_to_128df): Likewise.
12532 (*aarch64_fma4_elt_to_64v2df): Likewise.
12533 (fnma<mode>4): Likewise.
12534 (*aarch64_fnma4_elt<mode>): Likewise.
12535 (*aarch64_fnma4_elt_<vswap_width_name><mode>
12536 (*aarch64_fnma4_elt_to_128df): Likewise.
12537 (*aarch64_fnma4_elt_to_64v2df): Likewise.
12538 (<frint_pattern><mode>2): Likewise.
12539 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
12540 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
12541 (vec_unpacks_lo_v4sf): Likewise.
12542 (aarch64_float_extend_lo_v2df): Likewise.
12543 (vec_unpacks_hi_v4sf): Likewise.
12544 (aarch64_float_truncate_lo_v2sf): Likewise.
12545 (aarch64_float_truncate_hi_v4sf): Likewise.
12546 (aarch64_vmls<mode>): Likewise.
12547 (<su><maxmin><mode>3): Likewise.
12548 (<maxmin_uns><mode>3): Likewise.
12549 (reduc_<sur>plus_<mode>): Likewise.
12550 (reduc_<sur>plus_v2di): Likewise.
12551 (reduc_<sur>plus_v2si): Likewise.
12552 (reduc_<sur>plus_<mode>): Likewise.
12553 (aarch64_addpv4sf): Likewise.
12554 (clz<mode>2): Likewise.
12555 (reduc_<maxmin_uns>_<mode>): Likewise.
12556 (reduc_<maxmin_uns>_v2di): Likewise.
12557 (reduc_<maxmin_uns>_v2si): Likewise.
12558 (reduc_<maxmin_uns>_<mode>): Likewise.
12559 (reduc_<maxmin_uns>_v4sf): Likewise.
12560 (aarch64_simd_bsl<mode>_internal): Likewise.
12561 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12562 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
12563 (aarch64_get_lane<mode>): Likewise.
12564 (*aarch64_combinez<mode>): Likewise.
12565 (aarch64_combine<mode>): Likewise.
12566 (aarch64_simd_combine<mode>): Likewise.
12567 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
12568 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
12569 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
12570 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
12571 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
12572 (aarch64_<sur>h<addsub><mode>): Likewise.
12573 (aarch64_<sur><addsub>hn<mode>): Likewise.
12574 (aarch64_<sur><addsub>hn2<mode>): Likewise.
12575 (aarch64_pmul<mode>): Likewise.
12576 (aarch64_<su_optab><optab><mode>): Likewise.
12577 (aarch64_<sur>qadd<mode>): Likewise.
12578 (aarch64_sqmovun<mode>): Likewise.
12579 (aarch64_<sur>qmovn<mode>): Likewise.
12580 (aarch64_s<optab><mode>): Likewise.
12581 (aarch64_sq<r>dmulh<mode>): Likewise.
12582 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12583 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
12584 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12585 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
12586 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12587 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12588 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
12589 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
12590 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12591 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
12592 (aarch64_sqdmull<mode>): Likewise.
12593 (aarch64_sqdmull_lane<mode>_internal): Likewise.
12594 (aarch64_sqdmull_n<mode>): Likewise.
12595 (aarch64_sqdmull2<mode>_internal): Likewise.
12596 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12597 (aarch64_sqdmull2_n<mode>_internal): Likewise.
12598 (aarch64_<sur>shl<mode>): Likewise.
12599 (aarch64_<sur>q<r>shl<mode>
12600 (aarch64_<sur>shll_n<mode>): Likewise.
12601 (aarch64_<sur>shll2_n<mode>): Likewise.
12602 (aarch64_<sur>shr_n<mode>): Likewise.
12603 (aarch64_<sur>sra_n<mode>): Likewise.
12604 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
12605 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
12606 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
12607 (aarch64_cm<optab><mode>): Likewise.
12608 (aarch64_cm<optab>di): Likewise.
12609 (aarch64_cm<optab><mode>): Likewise.
12610 (aarch64_cm<optab>di): Likewise.
12611 (aarch64_cmtst<mode>): Likewise.
12612 (aarch64_cmtstdi): Likewise.
12613 (aarch64_cm<optab><mode>): Likewise.
12614 (*aarch64_fac<optab><mode>): Likewise.
12615 (aarch64_addp<mode>): Likewise.
12616 (aarch64_addpdi): Likewise.
12617 (sqrt<mode>2): Likewise.
12618 (vec_load_lanesoi<mode>): Likewise.
12619 (vec_store_lanesoi<mode>): Likewise.
12620 (vec_load_lanesci<mode>): Likewise.
12621 (vec_store_lanesci<mode>): Likewise.
12622 (vec_load_lanesxi<mode>): Likewise.
12623 (vec_store_lanesxi<mode>): Likewise.
12624 (*aarch64_mov<mode>): Likewise.
12625 (aarch64_ld2<mode>_dreg): Likewise.
12626 (aarch64_ld2<mode>_dreg): Likewise.
12627 (aarch64_ld3<mode>_dreg): Likewise.
12628 (aarch64_ld3<mode>_dreg): Likewise.
12629 (aarch64_ld4<mode>_dreg): Likewise.
12630 (aarch64_ld4<mode>_dreg): Likewise.
12631 (aarch64_tbl1<mode>): Likewise.
12632 (aarch64_tbl2v16qi): Likewise.
12633 (aarch64_combinev16qi): Likewise.
12634 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
12635 (aarch64_st2<mode>_dreg): Likewise.
12636 (aarch64_st2<mode>_dreg): Likewise.
12637 (aarch64_st3<mode>_dreg): Likewise.
12638 (aarch64_st3<mode>_dreg): Likewise.
12639 (aarch64_st4<mode>_dreg): Likewise.
12640 (aarch64_st4<mode>_dreg): Likewise.
12641 (*aarch64_simd_ld1r<mode>): Likewise.
12642 (aarch64_frecpe<mode>): Likewise.
12643 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
12644 (aarch64_frecps<mode>): Likewise.
12646 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12648 * config/arm/iterators.md (V_elem_ch): New.
12650 (VQH_type): Likewise.
12651 * config/arm/arm.md (is_neon_type): New.
12652 (conds): Use is_neon_type.
12653 (anddi3_insn): Update type attribute.
12654 (xordi3_insn): Likewise.
12655 (one_cmpldi2): Likewise.
12656 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
12657 * config/arm/neon.md (neon_mov): Update type attribute.
12658 (*movmisalign<mode>_neon_store): Likewise.
12659 (*movmisalign<mode>_neon_load): Likewise.
12660 (vec_set<mode>_internal): Likewise.
12661 (vec_set<mode>_internal): Likewise.
12662 (vec_setv2di_internal): Likewise.
12663 (vec_extract<mode>): Likewise.
12664 (vec_extract<mode>): Likewise.
12665 (vec_extractv2di): Likewise.
12666 (*add<mode>3_neon): Likewise.
12667 (adddi3_neon): Likewise.
12668 (*sub<mode>3_neon): Likewise.
12669 (subdi3_neon): Likewise.
12670 (fma<VCVTF:mode>4): Likewise.
12671 (fma<VCVTF:mode>4_intrinsic): Likewise.
12672 (*fmsub<VCVTF:mode>4): Likewise.
12673 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
12674 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
12675 (ior<mode>3): Likewise.
12676 (and<mode>3): Likewise.
12677 (orn<mode>3_neon): Likewise.
12678 (orndi3_neon): Likewise.
12679 (bic<mode>3_neon): Likewise.
12680 (bicdi3_neon): Likewise.
12681 (xor<mode>3): Likewise.
12682 (one_cmpl<mode>2): Likewise.
12683 (abs<mode>2): Likewise.
12684 (neg<mode>2): Likewise.
12685 (negdi2_neon): Likewise.
12686 (*umin<mode>3_neon): Likewise.
12687 (*umax<mode>3_neon): Likewise.
12688 (*smin<mode>3_neon): Likewise.
12689 (*smax<mode>3_neon): Likewise.
12690 (vashl<mode>3): Likewise.
12691 (vashr<mode>3_imm): Likewise.
12692 (vlshr<mode>3_imm): Likewise.
12693 (ashl<mode>3_signed): Likewise.
12694 (ashl<mode>3_unsigned): Likewise.
12695 (neon_load_count): Likewise.
12696 (ashldi3_neon_noclobber): Likewise.
12697 (ashldi3_neon): Likewise.
12698 (signed_shift_di3_neon): Likewise.
12699 (unsigned_shift_di3_neon): Likewise.
12700 (ashrdi3_neon_imm_noclobber): Likewise.
12701 (lshrdi3_neon_imm_noclobber): Likewise.
12702 (<shift>di3_neon): Likewise.
12703 (widen_ssum<mode>3): Likewise.
12704 (widen_usum<mode>3): Likewise.
12705 (quad_halves_<code>v4si): Likewise.
12706 (quad_halves_<code>v4sf): Likewise.
12707 (quad_halves_<code>v8hi): Likewise.
12708 (quad_halves_<code>v16qi): Likewise.
12709 (reduc_splus_v2di): Likewise.
12710 (neon_vpadd_internal<mode>): Likewise.
12711 (neon_vpsmin<mode>): Likewise.
12712 (neon_vpsmax<mode>): Likewise.
12713 (neon_vpumin<mode>): Likewise.
12714 (neon_vpumax<mode>): Likewise.
12715 (*ss_add<mode>_neon): Likewise.
12716 (*us_add<mode>_neon): Likewise.
12717 (*ss_sub<mode>_neon): Likewise.
12718 (*us_sub<mode>_neon): Likewise.
12719 (neon_vadd<mode>_unspec): Likewise.
12720 (neon_vaddl<mode>): Likewise.
12721 (neon_vaddw<mode>): Likewise.
12722 (neon_vhadd<mode>): Likewise.
12723 (neon_vqadd<mode>): Likewise.
12724 (neon_vaddhn<mode>): Likewise.
12725 (neon_vmul<mode>): Likewise.
12726 (neon_vfms<VCVTF:mode>): Likewise.
12727 (neon_vmlal<mode>): Likewise.
12728 (neon_vmls<mode>): Likewise.
12729 (neon_vmlsl<mode>): Likewise.
12730 (neon_vqdmulh<mode>): Likewise.
12731 (neon_vqdmlal<mode>): Likewise.
12732 (neon_vqdmlsl<mode>): Likewise.
12733 (neon_vmull<mode>): Likewise.
12734 (neon_vqdmull<mode>): Likewise.
12735 (neon_vsub<mode>_unspec): Likewise.
12736 (neon_vsubl<mode>): Likewise.
12737 (neon_vsubw<mode>): Likewise.
12738 (neon_vqsub<mode>): Likewise.
12739 (neon_vhsub<mode>): Likewise.
12740 (neon_vsubhn<mode>): Likewise.
12741 (neon_vceq<mode>): Likewise.
12742 (neon_vcge<mode>): Likewise.
12743 (neon_vcgeu<mode>): Likewise.
12744 (neon_vcgt<mode>): Likewise.
12745 (neon_vcgtu<mode>): Likewise.
12746 (neon_vcle<mode>): Likewise.
12747 (neon_vclt<mode>): Likewise.
12748 (neon_vcage<mode>): Likewise.
12749 (neon_vcagt<mode>): Likewise.
12750 (neon_vtst<mode>): Likewise.
12751 (neon_vabd<mode>): Likewise.
12752 (neon_vabdl<mode>): Likewise.
12753 (neon_vaba<mode>): Likewise.
12754 (neon_vabal<mode>): Likewise.
12755 (neon_vmax<mode>): Likewise.
12756 (neon_vmin<mode>): Likewise.
12757 (neon_vpaddl<mode>): Likewise.
12758 (neon_vpadal<mode>): Likewise.
12759 (neon_vpmax<mode>): Likewise.
12760 (neon_vpmin<mode>): Likewise.
12761 (neon_vrecps<mode>): Likewise.
12762 (neon_vrsqrts<mode>): Likewise.
12763 (neon_vqabs<mode>): Likewise.
12764 (neon_vqneg<mode>): Likewise.
12765 (neon_vcls<mode>): Likewise.
12766 (clz<mode>2): Likewise.
12767 (popcount<mode>2): Likewise.
12768 (neon_vrecpe<mode>): Likewise.
12769 (neon_vrsqrte<mode>): Likewise.
12770 (neon_vget_lane<mode>_sext_internal): Likewise.
12771 (neon_vget_lane<mode>_zext_internal): Likewise.
12772 (neon_vdup_n<mode>): Likewise.
12773 (neon_vdup_n<mode>): Likewise.
12774 (neon_vdup_nv2di): Likewise.
12775 (neon_vdup_lane<mode>_interal): Likewise.
12776 (*neon_vswp<mode>): Likewise.
12777 (neon_vcombine<mode>): Likewise.
12778 (float<mode><V_cvtto>2): Likewise.
12779 (floatuns<mode><V_cvtto>2): Likewise.
12780 (fix_trunc<mode><V_cvtto>2): Likewise.
12781 (fixuns_trunc<mode><V_cvtto>2
12782 (neon_vcvt<mode>): Likewise.
12783 (neon_vcvt<mode>): Likewise.
12784 (neon_vcvtv4sfv4hf): Likewise.
12785 (neon_vcvtv4hfv4sf): Likewise.
12786 (neon_vcvt_n<mode>): Likewise.
12787 (neon_vcvt_n<mode>): Likewise.
12788 (neon_vmovn<mode>): Likewise.
12789 (neon_vqmovn<mode>): Likewise.
12790 (neon_vqmovun<mode>): Likewise.
12791 (neon_vmovl<mode>): Likewise.
12792 (neon_vmul_lane<mode>): Likewise.
12793 (neon_vmul_lane<mode>): Likewise.
12794 (neon_vmull_lane<mode>): Likewise.
12795 (neon_vqdmull_lane<mode>): Likewise.
12796 (neon_vqdmulh_lane<mode>): Likewise.
12797 (neon_vqdmulh_lane<mode>): Likewise.
12798 (neon_vmla_lane<mode>): Likewise.
12799 (neon_vmla_lane<mode>): Likewise.
12800 (neon_vmlal_lane<mode>): Likewise.
12801 (neon_vqdmlal_lane<mode>): Likewise.
12802 (neon_vmls_lane<mode>): Likewise.
12803 (neon_vmls_lane<mode>): Likewise.
12804 (neon_vmlsl_lane<mode>): Likewise.
12805 (neon_vqdmlsl_lane<mode>): Likewise.
12806 (neon_vext<mode>): Likewise.
12807 (neon_vrev64<mode>): Likewise.
12808 (neon_vrev32<mode>): Likewise.
12809 (neon_vrev16<mode>): Likewise.
12810 (neon_vbsl<mode>_internal): Likewise.
12811 (neon_vshl<mode>): Likewise.
12812 (neon_vqshl<mode>): Likewise.
12813 (neon_vshr_n<mode>): Likewise.
12814 (neon_vshrn_n<mode>): Likewise.
12815 (neon_vqshrn_n<mode>): Likewise.
12816 (neon_vqshrun_n<mode>): Likewise.
12817 (neon_vshl_n<mode>): Likewise.
12818 (neon_vqshl_n<mode>): Likewise.
12819 (neon_vqshlu_n<mode>): Likewise.
12820 (neon_vshll_n<mode>): Likewise.
12821 (neon_vsra_n<mode>): Likewise.
12822 (neon_vsri_n<mode>): Likewise.
12823 (neon_vsli_n<mode>): Likewise.
12824 (neon_vtbl1v8qi): Likewise.
12825 (neon_vtbl2v8qi): Likewise.
12826 (neon_vtbl3v8qi): Likewise.
12827 (neon_vtbl4v8qi): Likewise.
12828 (neon_vtbl1v16qi): Likewise.
12829 (neon_vtbl2v16qi): Likewise.
12830 (neon_vcombinev16qi): Likewise.
12831 (neon_vtbx1v8qi): Likewise.
12832 (neon_vtbx2v8qi): Likewise.
12833 (neon_vtbx3v8qi): Likewise.
12834 (neon_vtbx4v8qi): Likewise.
12835 (*neon_vtrn<mode>_insn): Likewise.
12836 (*neon_vzip<mode>_insn): Likewise.
12837 (*neon_vuzp<mode>_insn): Likewise.
12838 (neon_vld1<mode>): Likewise.
12839 (neon_vld1_lane<mode>): Likewise.
12840 (neon_vld1_lane<mode>): Likewise.
12841 (neon_vld1_dup<mode>): Likewise.
12842 (neon_vld1_dup<mode>): Likewise.
12843 (neon_vld1_dupv2di): Likewise.
12844 (neon_vst1<mode>): Likewise.
12845 (neon_vst1_lane<mode>): Likewise.
12846 (neon_vst1_lane<mode>): Likewise.
12847 (neon_vld2<mode>): Likewise.
12848 (neon_vld2<mode>): Likewise.
12849 (neon_vld2_lane<mode>): Likewise.
12850 (neon_vld2_lane<mode>): Likewise.
12851 (neon_vld2_dup<mode>): Likewise.
12852 (neon_vst2<mode>): Likewise.
12853 (neon_vst2<mode>): Likewise.
12854 (neon_vst2_lane<mode>): Likewise.
12855 (neon_vst2_lane<mode>): Likewise.
12856 (neon_vld3<mode>): Likewise.
12857 (neon_vld3qa<mode>): Likewise.
12858 (neon_vld3qb<mode>): Likewise.
12859 (neon_vld3_lane<mode>): Likewise.
12860 (neon_vld3_lane<mode>): Likewise.
12861 (neon_vld3_dup<mode>): Likewise.
12862 (neon_vst3<mode>): Likewise.
12863 (neon_vst3qa<mode>): Likewise.
12864 (neon_vst3qb<mode>): Likewise.
12865 (neon_vst3_lane<mode>): Likewise.
12866 (neon_vst3_lane<mode>): Likewise.
12867 (neon_vld4<mode>): Likewise.
12868 (neon_vld4qa<mode>): Likewise.
12869 (neon_vld4qb<mode>): Likewise.
12870 (neon_vld4_lane<mode>): Likewise.
12871 (neon_vld4_lane<mode>): Likewise.
12872 (neon_vld4_dup<mode>): Likewise.
12873 (neon_vst4<mode>): Likewise.
12874 (neon_vst4qa<mode>): Likewise.
12875 (neon_vst4qb<mode>): Likewise.
12876 (neon_vst4_lane<mode>): Likewise.
12877 (neon_vst4_lane<mode>): Likewise.
12878 (neon_vec_unpack<US>_lo_<mode>): Likewise.
12879 (neon_vec_unpack<US>_hi_<mode>): Likewise.
12880 (neon_vec_<US>mult_lo_<mode>): Likewise.
12881 (neon_vec_<US>mult_hi_<mode>): Likewise.
12882 (neon_vec_<US>shiftl_<mode>): Likewise.
12883 (neon_unpack<US>_<mode>): Likewise.
12884 (neon_vec_<US>mult_<mode>): Likewise.
12885 (vec_pack_trunc_<mode>): Likewise.
12886 (neon_vec_pack_trunc_<mode>): Likewise.
12887 (neon_vabd<mode>_2): Likewise.
12888 (neon_vabd<mode>_3): Likewise.
12890 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12892 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
12893 (load_pair): Update type attribute.
12894 (store_pair): Update type attribute.
12895 * config/aarch64/iterators.md (q): New.
12897 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12899 * config/arm/types.md: Add new types for Neon insns.
12901 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12902 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12903 Sergey Lega <sergey.s.lega@intel.com>
12904 Anna Tikhonova <anna.tikhonova@intel.com>
12905 Ilya Tocar <ilya.tocar@intel.com>
12906 Andrey Turetskiy <andrey.turetskiy@intel.com>
12907 Ilya Verbin <ilya.verbin@intel.com>
12908 Kirill Yukhin <kirill.yukhin@intel.com>
12909 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12911 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
12912 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
12913 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
12914 (rcp14<mode>): New.
12915 (srcp14<mode>): Ditto.
12916 (rsqrt14<mode>): Ditto.
12917 (rsqrt14<mode>): Ditto.
12918 (avx512f_vmscalef<mode>): Ditto.
12919 (avx512f_scalef<mode>): Ditto.
12920 (avx512f_getexp<mode>): Ditto.
12921 (avx512f_sgetexp<mode>): Ditto.
12922 (avx512f_fixupimm<mode>): Ditto.
12923 (avx512f_sfixupimm<mode>): Ditto.
12924 (avx512f_rndscale<mode>): Ditto.
12925 (*avx512er_exp2<mode>): Ditto.
12926 (*avx512er_rcp28<mode>): Ditto.
12927 (avx512er_rsqrt28<mode>): Ditto.
12928 (avx512f_getmant<mode>): Ditto.
12929 (avx512f_getmant<mode>): Ditto.
12930 (avx512f_rndscale<mode>): Fix formatting.
12932 2013-10-15 Martin Jambor <mjambor@suse.cz>
12934 * ipa-utils.h (ipa_edge_within_scc): Declare.
12935 * ipa-cp.c (edge_within_scc): Moved...
12936 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
12938 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12940 Sergey Lega <sergey.s.lega@intel.com>
12941 Anna Tikhonova <anna.tikhonova@intel.com>
12942 Ilya Tocar <ilya.tocar@intel.com>
12943 Andrey Turetskiy <andrey.turetskiy@intel.com>
12944 Ilya Verbin <ilya.verbin@intel.com>
12945 Kirill Yukhin <kirill.yukhin@intel.com>
12946 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12948 * config/i386/predicates.md (const_8_to_15_operand): New.
12949 (const_16_to_31_operand): Ditto.
12950 * config/i386/sse.md (V8FI): New.
12952 (reduc_splus_v8df): Ditto.
12953 (reduc_splus_v16sf): Ditto.
12954 (avx512f_vextract<shuffletype>32x4_1): Ditto.
12955 (vec_extract_hi_<mode>): Ditto.
12956 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
12957 (vec_set_lo_<mode>): Ditto.
12958 (vec_set_hi_<mode>): Ditto.
12959 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
12960 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
12961 (avx512f_pshufd_1): Ditto.
12962 (avx512f_broadcast<mode>): Ditto.
12963 (avx512f_broadcast<mode>): Ditto.
12964 (define_split): Split vec_extract_lo into move.
12965 (ssequartermode): Ditto.
12966 (ssedoublemode): Extened with wider modes.
12967 (vec_extract_lo_<mode>): Ditto.
12969 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12971 Sergey Lega <sergey.s.lega@intel.com>
12972 Anna Tikhonova <anna.tikhonova@intel.com>
12973 Ilya Tocar <ilya.tocar@intel.com>
12974 Andrey Turetskiy <andrey.turetskiy@intel.com>
12975 Ilya Verbin <ilya.verbin@intel.com>
12976 Kirill Yukhin <kirill.yukhin@intel.com>
12977 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12979 * config/i386/predicates.md (register_or_constm1_operand): New.
12980 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
12981 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
12982 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
12983 UNSPEC_SCATTER_PREFETCH
12985 (avx512f_ucmp<mode>3): Ditto.
12986 (avx512f_vternlog<mode>): Ditto.
12987 (avx512f_align<mode>): Ditto.
12988 (<shift_insn><mode>3): Ditto.
12989 (avx512f_<rotate>v<mode>): Ditto.
12990 (avx512f_<rotate><mode>): Ditto.
12991 (avx512f_eq<mode>3): Ditto.
12992 (avx512f_eq<mode>3_1): Ditto.
12993 (avx512f_gt<mode>3): Ditto.
12994 (avx512f_testm<mode>3): Ditto.
12995 (avx512f_testnm<mode>3): Ditto.
12996 (avx512pf_gatherpf<mode>): Ditto.
12997 (*avx512pf_gatherpf<mode>_mask): Ditto.
12998 (*avx512pf_gatherpf<mode>): Ditto.
12999 (avx512pf_scatterpf<mode>): Ditto.
13000 (*avx512pf_scatterpf<mode>_mask): Ditto.
13001 (*avx512pf_scatterpf<mode>): Ditto.
13002 (avx512f_vec_dup_gpr<mode>): Ditto.
13003 (clz<mode>2): Ditto.
13004 (conflict<mode>): Ditto.
13005 (REDUC_SMINMAX_MODE): Extened with wider modes.
13006 (reduc_<code>_<mode>): Ditto.
13007 (vlshr<mode>3): Ditto.
13008 (vashl<mode>3): Ditto.
13010 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13011 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13012 Sergey Lega <sergey.s.lega@intel.com>
13013 Anna Tikhonova <anna.tikhonova@intel.com>
13014 Ilya Tocar <ilya.tocar@intel.com>
13015 Andrey Turetskiy <andrey.turetskiy@intel.com>
13016 Ilya Verbin <ilya.verbin@intel.com>
13017 Kirill Yukhin <kirill.yukhin@intel.com>
13018 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13020 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13023 (avx512fmaskmode): Ditto.
13024 (bcstscalarsuff): Ditto.
13025 (avx512f_blendm<mode>): Ditto.
13026 (cmp_imm_predicate): Ditto.
13027 (avx512f_cmp<mode>3): Ditto.
13028 (avx512f_vec_dup<mode>): Ditto.
13029 (avx512f_vec_dup_mem<mode>): Ditto.
13030 (avx512f_vpermi2var<mode>3): Ditto.
13031 (avx512f_vpermt2var<mode>3): Ditto.
13032 (vec_init<mode>): Ditto.
13033 (avx512f_gathersi<mode>): Ditto.
13034 (*avx512f_gathersi<mode>): Ditto.
13035 (*avx512f_gathersi<mode>_2): Ditto.
13036 (avx512f_gatherdi<mode>): Ditto.
13037 (*avx512f_gatherdi<mode>): Ditto.
13038 (*avx512f_gatherdi<mode>_2): Ditto.
13039 (avx512f_scattersi<mode>): Ditto.
13040 (*avx512f_scattersi<mode>): Ditto.
13041 (avx512f_scatterdi<mode>): Ditto.
13042 (*avx512f_scatterdi<mode>): Ditto.
13043 (sseintprefix): Extened with wider modes.
13044 (VEC_GATHER_IDXSI): Ditto.
13045 (VEC_GATHER_IDXDI): Ditto.
13046 (VEC_GATHER_SRCDI): Ditto.
13048 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13049 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13051 * config/arm/t-aprofile: New file.
13052 * config.gcc: Handle --with-multilib-list option.
13054 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
13056 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
13059 2013-10-15 Richard Biener <rguenther@suse.de>
13061 * tree-loop-distribution.c (build_empty_rdg): Inline into
13063 (rdg_flag_vertex): Inline into single user.
13064 (rdg_flag_vertex_and_dependent): Likewise.
13065 (build_rdg_partition_for_vertex): Remove processed bitmap.
13066 (rdg_build_partitions): Simplify.
13068 2013-10-15 Richard Biener <rguenther@suse.de>
13070 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13071 Restructure forwarding through conversions and copies to
13072 avoid performing copy-propagation the wrong way. Adjust
13073 recursion invocations.
13074 (forward_propagate_addr_expr): Add argument stating if we
13075 are recursing from a single-use.
13076 (ssa_forward_propagate_and_combine): Adjust.
13078 2013-10-14 David Malcolm <dmalcolm@redhat.com>
13080 * dumpfile.h (gcc::dump_manager): New class, to hold state
13081 relating to dumpfile management.
13082 (get_dump_file_name): Remove in favor of method of dump_manager.
13083 (dump_initialized_p): Likewise.
13084 (dump_start): Likewise.
13085 (dump_finish): Likewise.
13086 (dump_switch_p): Likewise.
13087 (dump_register): Likewise.
13088 (get_dump_file_info): Likewise.
13089 * context.c (gcc::context::context): Construct the dump_manager
13091 * context.h (gcc::context::get_dumps): New.
13092 (gcc::context::m_dumps): New.
13093 * coverage.c (coverage_init): Port to dump_manager API.
13094 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
13095 (extra_dump_files_in_use): Likewise.
13096 (extra_dump_files_alloced): Likewise.
13097 (gcc::dump_manager::dump_manager): New.
13098 (dump_register): Convert to...
13099 (gcc::dump_manager::dump_register): ...method, replacing
13100 function-static next_dump with m_next_dump field.
13101 (get_dump_file_info): Convert to...
13102 (gcc::dump_manager::get_dump_file_info): ...method.
13103 (get_dump_file_name): Convert to...
13104 (gcc::dump_manager::get_dump_file_name): ...method.
13105 (dump_start): Convert to...
13106 (gcc::dump_manager::dump_start): ...method.
13107 (dump_finish): Convert to...
13108 (gcc::dump_manager::dump_finish): ...method.
13109 (dump_begin): Replace body with...
13110 (gcc::dump_manager::dump_begin): ...new method.
13111 (dump_phase_enabled_p): Convert to...
13112 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13113 (dump_phase_enabled_p): Convert to...
13114 (gcc::dump_manager::dump_phase_enabled_p): ...method.
13115 (dump_initialized_p): Convert to...
13116 (gcc::dump_manager::dump_initialized_p): ...method.
13117 (dump_flag_name): Replace body with...
13118 (gcc::dump_manager::dump_flag_name): ...new method.
13119 (dump_enable_all): Convert to...
13120 (gcc::dump_manager::dump_enable_all): ...new method.
13121 (opt_info_enable_passes): Convert to...
13122 (gcc::dump_manager::opt_info_enable_passes): ...new method.
13123 (dump_switch_p_1): Convert to...
13124 (gcc::dump_manager::dump_switch_p_1): ...new method.
13125 (dump_switch_p): Convert to...
13126 (gcc::dump_manager::dump_switch_p): ...new method.
13127 (opt_info_switch_p): Port to dump_manager API.
13128 (enable_rtl_dump_file): Likewise.
13129 * opts-global.c (handle_common_deferred_options): Port to new
13131 * passes.c (pass_manager::finish_optimization_passes): Likewise.
13132 (pass_manager::register_one_dump_file): Likewise.
13133 (pass_manager::register_pass): Likewise.
13134 (pass_init_dump_file): Likewise.
13135 (pass_fini_dump_file): Likewise.
13136 * statistics.c (statistics_early_init): Likewise.
13138 2013-10-14 Richard Biener <rguenther@suse.de>
13140 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
13141 iterative_hash_canonical_type, gimple_canonical_type_hash,
13142 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
13143 gimple_register_canonical_type, print_gimple_types_stats,
13144 free_gimple_type_tables): Move to lto/lto.c
13145 (gt-gimple.h): Do not include.
13146 * gimple.h (gimple_register_canonical_type,
13147 print_gimple_types_stats, free_gimple_type_tables): Remove.
13148 * Makefile.in (GTFILES): Remove gimple.c.
13150 2013-10-14 Travis Snoozy <quandary@remstate.com>
13153 * config/msp430/msp430.c (msp430_option_override): Correct thinko
13154 scanning for msp430x targets.
13156 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
13159 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
13160 (registers_ok_for_ldd_peep): Move around.
13161 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
13162 * config/sparc/sparc.md (widening peepholes): Use it.
13164 2013-10-14 Richard Biener <rguenther@suse.de>
13166 PR middle-end/58712
13167 PR middle-end/55358
13168 * gimple.c (iterative_hash_canonical_type): Make sure to
13169 record the hash into the correct hashtable slot.
13171 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
13173 PR rtl-optimization/58662
13174 * combine.c (try_combine): Take into account death nodes on I2 when
13175 splitting a PARALLEL of two independent SETs. Fix dump message.
13177 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
13180 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
13181 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
13183 * config/sh/t-sh (sh_treg_combine.o): New entry.
13184 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
13185 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
13186 (register_sh_passes): New function. Register sh_treg_combine pass.
13187 (sh_option_override): Invoke it.
13188 (sh_canonicalize_comparison): Handle op0_preserve_value.
13189 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
13190 opportunities. Canonicalize branch condition.
13191 (nott): Allow only if pseudos can be created for non-SH2A.
13193 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
13196 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
13197 (ix86_expand_movmem): Replace copy_addr_to_reg with
13198 ix86_copy_addr_to_reg.
13199 (ix86_expand_setmem): Likewise.
13201 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
13203 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
13204 provided by ix86_fp_compare_mode instead of CCFPUmode.
13206 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
13208 * config/aarch64/arm_neon.h
13209 (vtbx<1,3>_<psu>8): Fix register constriants.
13211 2013-10-11 Jeff Law <law@redhat.com>
13213 PR tree-optimization/58640
13214 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13215 threading paths that cross over two loop entry points.
13217 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13219 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13220 handle vector float as well.
13221 (*vsx_le_perm_load_v4si): Likewise.
13222 (*vsx_le_perm_store_v2di): Likewise.
13223 (*vsx_le_perm_store_v4si): Likewise.
13225 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13227 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13228 directly to circumvent subtract from splat{31} workaround.
13229 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13231 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13232 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13233 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13234 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13235 separate big and little endian logic.
13236 (*altivec_vperm_<mode>_internal): New define_insn.
13237 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13238 separate big and little endian logic.
13239 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13240 (vec_permv16qi): Add little endian logic.
13242 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13244 * doc/extend.texi (returns_nonnull): Remove arguments.
13246 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13248 Sergey Lega <sergey.s.lega@intel.com>
13249 Anna Tikhonova <anna.tikhonova@intel.com>
13250 Ilya Tocar <ilya.tocar@intel.com>
13251 Andrey Turetskiy <andrey.turetskiy@intel.com>
13252 Ilya Verbin <ilya.verbin@intel.com>
13253 Kirill Yukhin <kirill.yukhin@intel.com>
13254 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13256 * config/i386/sse.md (VI48F_256_512): New.
13257 (avx2_permvar<mode>): Change to ...
13258 (<avx2_avx512f>_permvar<mode>): This.
13260 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13262 Sergey Lega <sergey.s.lega@intel.com>
13263 Anna Tikhonova <anna.tikhonova@intel.com>
13264 Ilya Tocar <ilya.tocar@intel.com>
13265 Andrey Turetskiy <andrey.turetskiy@intel.com>
13266 Ilya Verbin <ilya.verbin@intel.com>
13267 Kirill Yukhin <kirill.yukhin@intel.com>
13268 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13270 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13271 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
13272 * config/i386/sse.md (VI4_AVX): New.
13273 (sf2simodelower): Ditto.
13274 (sse2_cvtps2dq): Change to ...
13275 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
13277 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13278 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13279 Sergey Lega <sergey.s.lega@intel.com>
13280 Anna Tikhonova <anna.tikhonova@intel.com>
13281 Ilya Tocar <ilya.tocar@intel.com>
13282 Andrey Turetskiy <andrey.turetskiy@intel.com>
13283 Ilya Verbin <ilya.verbin@intel.com>
13284 Kirill Yukhin <kirill.yukhin@intel.com>
13285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13287 * config/i386/sse.md (V_512): New.
13289 (vcond<V_512:mode><VF_512:mode>): Ditto.
13290 (vcond<V_512:mode><VI_512:mode>): Ditto.
13291 (vcondu<V_512:mode><VI_512:mode>): Ditto.
13293 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13294 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13295 Sergey Lega <sergey.s.lega@intel.com>
13296 Anna Tikhonova <anna.tikhonova@intel.com>
13297 Ilya Tocar <ilya.tocar@intel.com>
13298 Andrey Turetskiy <andrey.turetskiy@intel.com>
13299 Ilya Verbin <ilya.verbin@intel.com>
13300 Kirill Yukhin <kirill.yukhin@intel.com>
13301 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13303 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
13304 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
13306 (fma<mode>4): Removed condition.
13307 (fms<mode>4): Ditto.
13308 (fnma<mode>4): Ditto.
13309 (fnms<mode>4): Ditto.
13310 (fma4i_fmadd_<mode>): Ditto.
13311 (*fma_fmadd_<mode>): Ditto.
13312 (*fma_fmsub_<mode>): Ditto.
13313 (*fma_fnmadd_<mode>): Ditto.
13314 (*fma_fnmsub_<mode>): Ditto.
13315 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
13316 (*fma_fmaddsub_<mode>): Ditto.
13317 (*fma_fmsubadd_<mode>): Ditto.
13318 (*fmai_fmadd_<mode>): Ditto.
13319 (*fmai_fmsub_<mode>): Ditto.
13320 (*fmai_fnmadd_<mode>): Ditto.
13321 (*fmai_fnmsub_<mode>): Ditto.
13323 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13324 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13325 Sergey Lega <sergey.s.lega@intel.com>
13326 Anna Tikhonova <anna.tikhonova@intel.com>
13327 Ilya Tocar <ilya.tocar@intel.com>
13328 Andrey Turetskiy <andrey.turetskiy@intel.com>
13329 Ilya Verbin <ilya.verbin@intel.com>
13330 Kirill Yukhin <kirill.yukhin@intel.com>
13331 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13333 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
13334 (VI124_256): Changed to ...
13335 (VI124_256_48_512): This.
13336 (ssepackmode): Extended with wider modes.
13337 (<code><mode>3): Changed iterator.
13338 (*avx2_<code><mode>3): Ditto.
13339 (vec_pack_trunc_<mode>): Ditto.
13341 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13342 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13343 Sergey Lega <sergey.s.lega@intel.com>
13344 Anna Tikhonova <anna.tikhonova@intel.com>
13345 Ilya Tocar <ilya.tocar@intel.com>
13346 Andrey Turetskiy <andrey.turetskiy@intel.com>
13347 Ilya Verbin <ilya.verbin@intel.com>
13348 Kirill Yukhin <kirill.yukhin@intel.com>
13349 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13351 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
13352 (VI8F_256_512): Ditto.
13353 (abs<mode>2): Changed iterator.
13354 (avx2_perm<mode>): Changed to ...
13355 (<avx2_avx512f>_perm<mode>): This.
13356 (avx2_perm<mode>_1): Changed to ...
13357 (<avx2_avx512f>_perm<mode>_1): This.
13359 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13360 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13361 Sergey Lega <sergey.s.lega@intel.com>
13362 Anna Tikhonova <anna.tikhonova@intel.com>
13363 Ilya Tocar <ilya.tocar@intel.com>
13364 Andrey Turetskiy <andrey.turetskiy@intel.com>
13365 Ilya Verbin <ilya.verbin@intel.com>
13366 Kirill Yukhin <kirill.yukhin@intel.com>
13367 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13369 * config/i386/sse.md (VI48_AVX512F): New.
13370 (VI48_AVX2): Changed to ...
13371 (VI48_AVX2_48_AVX512F): This.
13372 (avx2_ashrv<mode>): Changed to ...
13373 (<avx2_avx512f>_ashrv<mode>): This.
13374 (avx2_<shift_insn>v<mode>): Changed to ...
13375 (<avx2_avx512f>_<shift_insn>v<mode>): This.
13377 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13378 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13379 Sergey Lega <sergey.s.lega@intel.com>
13380 Anna Tikhonova <anna.tikhonova@intel.com>
13381 Ilya Tocar <ilya.tocar@intel.com>
13382 Andrey Turetskiy <andrey.turetskiy@intel.com>
13383 Ilya Verbin <ilya.verbin@intel.com>
13384 Kirill Yukhin <kirill.yukhin@intel.com>
13385 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13387 * config/i386/sse.md (VI4_AVX512F): New.
13388 (VI8_AVX2_AVX512F): Ditto.
13389 (mul<mode>3): Extended with wider modes.
13390 (*<sse4_1_avx2>_mul<mode>3): Ditto.
13391 (mul<mode>3): Ditto.
13392 (vec_widen_<s>mult_odd_<mode>): Ditto.
13394 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13395 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13396 Sergey Lega <sergey.s.lega@intel.com>
13397 Anna Tikhonova <anna.tikhonova@intel.com>
13398 Ilya Tocar <ilya.tocar@intel.com>
13399 Andrey Turetskiy <andrey.turetskiy@intel.com>
13400 Ilya Verbin <ilya.verbin@intel.com>
13401 Kirill Yukhin <kirill.yukhin@intel.com>
13402 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13404 * config/i386/sse.md (VI2_AVX512F): New.
13405 (VI124_AVX512F): Ditto.
13406 (sseunpackmode): Extended with wider modes.
13407 (sseunpackfltmode): Ditto.
13408 (vec_unpacks_float_hi_<mode>): Ditto.
13409 (vec_unpacks_float_lo_<mode>): Ditto.
13410 (vec_unpacku_float_hi_<mode>): Ditto.
13411 (vec_unpacku_float_lo_<mode>): Ditto.
13412 (vec_unpacks_lo_<mode>): Ditto.
13413 (vec_unpacks_hi_<mode>): Ditto.
13414 (vec_unpacku_lo_<mode>): Ditto.
13415 (vec_unpacku_hi_<mode>): Ditto.
13417 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13418 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13419 Sergey Lega <sergey.s.lega@intel.com>
13420 Anna Tikhonova <anna.tikhonova@intel.com>
13421 Ilya Tocar <ilya.tocar@intel.com>
13422 Andrey Turetskiy <andrey.turetskiy@intel.com>
13423 Ilya Verbin <ilya.verbin@intel.com>
13424 Kirill Yukhin <kirill.yukhin@intel.com>
13425 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13427 * config/i386/i386.md (multdiv): New.
13428 (multdiv_mnemonic): Ditto.
13429 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
13430 (<sse>_vm<multdiv_mnemonic><mode>3): This.
13431 (<sse>_vmdiv<mode>3): Removed.
13433 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13434 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13435 Sergey Lega <sergey.s.lega@intel.com>
13436 Anna Tikhonova <anna.tikhonova@intel.com>
13437 Ilya Tocar <ilya.tocar@intel.com>
13438 Andrey Turetskiy <andrey.turetskiy@intel.com>
13439 Ilya Verbin <ilya.verbin@intel.com>
13440 Kirill Yukhin <kirill.yukhin@intel.com>
13441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13443 * config/i386/sse.md (V): Extended with wider modes.
13445 (ssehalfvecmode): Ditto.
13447 (ssepackfltmode): Ditto.
13448 (avx_vec_concat<mode>): Ditto.
13449 (V_256_512): New iterator.
13450 (VF2_512_256): Ditto.
13451 (si2dfmode): New attribute.
13452 (si2dfmodelower): Ditto.
13453 (sf2dfmode): Ditto.
13454 (concat_tg_mode): Ditto.
13455 (floatv4siv4df2): Changed to ...
13456 (float<si2dfmodelower><mode>2): This.
13457 (avx_cvtps2pd256): Changed to ...
13458 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
13459 (vec_pack_trunc_v4df): Changed to ...
13460 (vec_pack_trunc_<mode>): This.
13461 (avx_vpermil<mode>): Changed to ...
13462 (<sse2_avx_avx512f>_vpermil<mode>): This.
13463 (<fixsuffix>fix_truncv8dfv8si2): New.
13464 (vec_pack_sfix_trunc_v8df): Ditto.
13465 (avx512f_rndscale<mode>): Ditto.
13466 (avx512f_roundpd512): Ditto.
13467 (vec_pack_ufix_trunc_<mode>): Updated iterator.
13469 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13470 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13471 Sergey Lega <sergey.s.lega@intel.com>
13472 Anna Tikhonova <anna.tikhonova@intel.com>
13473 Ilya Tocar <ilya.tocar@intel.com>
13474 Andrey Turetskiy <andrey.turetskiy@intel.com>
13475 Ilya Verbin <ilya.verbin@intel.com>
13476 Kirill Yukhin <kirill.yukhin@intel.com>
13477 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13479 * config/i386/i386.md (any_fix): New iterator.
13480 (fixsuffix): New attribute.
13481 * config/i386/sse.md (VF1): Extened with wider modes.
13485 (sseintvecmodelower): Ditto.
13486 (ssescalarmode): Ditto.
13487 (ssescalarnum): Ditto.
13488 (VF1_128_256): New.
13489 (ssexmmmode): Ditto.
13490 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
13491 (<sse>_rcp<mode>2): Change iterator.
13492 (rsqrt<mode>2): Ditto.
13493 (<sse>_rsqrt<mode>2): Ditto.
13494 (avx2_vec_dup<mode>): Ditto.
13495 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
13496 (round<mode>2_sfix): Ditto.
13497 (avx2_pbroadcast<mode>): Ditto.
13498 (*andnot<mode>3): Handle XI mode.
13499 (*<code><mode>3): Ditto.
13500 (AVXTOSSEMODE): Removed.
13501 (avx_vpermil<mode>): Changed to ...
13502 (<sse2_avx_avx512f>_vpermil<mode>): This.
13504 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13505 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13506 Sergey Lega <sergey.s.lega@intel.com>
13507 Anna Tikhonova <anna.tikhonova@intel.com>
13508 Ilya Tocar <ilya.tocar@intel.com>
13509 Andrey Turetskiy <andrey.turetskiy@intel.com>
13510 Ilya Verbin <ilya.verbin@intel.com>
13511 Kirill Yukhin <kirill.yukhin@intel.com>
13512 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13514 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
13515 (<sse>_comi): Ditto.
13516 (<sse>_ucomi): Ditto.
13517 (sse_cvtss2siq_2): Ditto.
13518 (sse2_cvtsd2si): Ditto.
13519 (sse2_cvtsd2siq): Ditto.
13520 (sse2_cvttsd2si): Ditto.
13521 (sse2_cvttsd2siq): Ditto.
13522 (<shift_insn><mode>3): Ditto.
13523 (sse2_cvtsi2sdq): Update constraint and prefix.
13524 (sse_cvtsi2ss): Update prefix.
13525 (sse_cvtsi2ssq): Ditto.
13527 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13529 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
13530 ignore internal calls.
13532 2013-10-11 Richard Biener <rguenther@suse.de>
13534 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
13535 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
13536 TREE_OVERFLOW is set.
13538 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
13540 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
13542 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
13543 * gimple.h: Likewise.
13545 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
13547 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
13550 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
13552 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
13553 * configure: Regenerate.
13555 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13557 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
13558 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
13559 formatting fixes, use pp_colon instead of pp_character (..., ':'),
13560 similarly pp_right_paren.
13561 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
13562 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
13563 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
13564 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
13566 (omp_declare_simd_clauses_equal,
13567 omp_remove_redundant_declare_simd_attrs): New functions.
13568 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
13569 (walk_tree_1): Handle new OpenMP 4.0 clauses.
13570 * tree.h (OMP_LOOP_CHECK): Define.
13571 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
13572 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
13573 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
13574 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
13575 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
13576 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
13577 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
13578 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
13579 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
13580 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
13581 OMP_CLAUSE_SIMDLEN_EXPR): Define.
13582 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
13583 (omp_remove_redundant_declare_simd_attrs): New prototype.
13584 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
13585 GIMPLE_OMP_TEAMS): New codes.
13586 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
13587 * omp-low.c (struct omp_context): Add cancel_label and cancellable
13589 (target_nesting_level): New variable.
13590 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
13591 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
13592 for collapse > 1 static schedule unless ordered.
13593 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
13594 (determine_parallel_type): Adjust get_ws_args_for caller.
13595 (install_var_field): Handle mask & 4 for double indirection.
13596 (scan_sharing_clauses): Ignore shared clause on teams construct.
13597 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
13598 (create_omp_child_function): If inside target or declare target
13599 constructs, set "omp declare target" attribute on the child function.
13600 (find_combined_for): New function.
13601 (scan_omp_parallel): Handle combined loops.
13602 (scan_omp_target, scan_omp_teams): New functions.
13603 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
13604 restrictions and set ctx->cancellable for cancellable constructs.
13605 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
13606 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
13607 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
13608 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
13609 (omp_clause_aligned_alignment): New function.
13610 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
13611 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
13612 on teams constructs. Handle user defined reductions and new
13613 OpenMP 4.0 clauses.
13614 (lower_reduction_clauses): Don't set placeholder to address of ref
13615 if it has already the right type.
13616 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
13617 (expand_parallel_call): Use the new non-_start suffixed builtins,
13618 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
13619 and GOMP_parallel_end after the call.
13620 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
13621 (expand_omp_for_init_counts): Handle combined loops.
13622 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
13624 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
13625 end of cancellable loops.
13626 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13627 Likewise. Handle collapse > 1 loops.
13628 (expand_omp_simd): Handle combined loops.
13629 (expand_omp_for): Add inner_stmt argument, adjust callers of
13630 expand_omp_for* functions, use expand_omp_for_static*chunk even
13631 for collapse > 1 unless ordered.
13632 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
13633 of cancellable sections.
13634 (expand_omp_single): Remove need_barrier variable, just rely on
13635 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
13636 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
13637 (expand_omp_atomic_load, expand_omp_atomic_store,
13638 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
13639 (expand_omp_target): New function.
13640 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
13641 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
13642 (build_omp_regions_1): Immediately close region for
13643 GF_OMP_TARGET_KIND_UPDATE.
13644 (maybe_add_implicit_barrier_cancel): New function.
13645 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
13647 (lower_omp_single): Likewise. Add clobber after the barrier.
13648 (lower_omp_taskgroup): New function.
13649 (lower_omp_for): Handle combined loops. Adjust
13650 lower_rec_input_clauses caller. Handle cancellation.
13651 (lower_depend_clauses): New function.
13652 (lower_omp_taskreg): Lower depend clauses. Adjust
13653 lower_rec_input_clauses caller. Add clobber after the call. Handle
13655 (lower_omp_target, lower_omp_teams): New functions.
13656 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
13657 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
13658 and GOMP_cancellation_point calls.
13659 (lower_omp): Fold stmts inside of target region.
13660 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
13661 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13662 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
13663 (BT_FN_VOID_OMPFN_PTR_UINT,
13664 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
13665 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
13666 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
13667 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
13668 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
13669 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
13670 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
13671 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
13672 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
13673 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
13674 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13675 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
13676 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
13677 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
13678 BUILT_IN_GOMP_PARALLEL_END.
13679 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
13680 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13681 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
13682 GF_OMP_FOR_KIND_DISTRIBUTE.
13683 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
13684 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
13685 (dump_gimple_omp_return): Print lhs if it has any.
13686 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
13687 gimple_omp_atomic_seq_cst_p.
13688 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
13689 and GIMPLE_OMP_TEAMS.
13690 * langhooks.c (lhd_omp_mappable_type): New function.
13691 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
13692 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
13694 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
13695 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
13696 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
13697 (struct gimplify_omp_ctx): Add combined_loop field.
13698 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
13699 on stmts inside of target region.
13700 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
13701 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
13702 ORT_TARGET and ORT_TARGET_DATA.
13703 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
13705 (omp_notice_threadprivate_variable): Complain about threadprivate
13706 variables in target region.
13707 (omp_notice_variable): Complain about vars with non-mappable type
13708 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
13709 (omp_check_private): Ignore ORT_TARGET* regions.
13710 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
13711 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
13712 (find_combined_omp_for): New function.
13713 (gimplify_omp_for): Handle gimplification of combined loops.
13714 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
13716 (gimplify_omp_target_update): New function.
13717 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
13718 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
13719 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
13720 (gimplify_body): If fndecl has "omp declare target" attribute, add
13721 implicit ORT_TARGET context around it.
13722 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
13723 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
13724 * tree-nested.c (convert_nonlocal_reference_stmt,
13725 convert_local_reference_stmt, convert_gimple_call): Handle
13726 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13727 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
13728 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
13729 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
13730 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
13731 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
13732 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
13733 BUILT_IN_GOMP_LOOP_END_CANCEL,
13734 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
13735 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
13736 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
13737 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
13738 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
13739 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
13740 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
13741 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
13742 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
13743 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
13744 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
13745 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
13746 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
13747 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
13748 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
13749 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13750 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
13751 gimple_build_omp_teams): New functions.
13752 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
13753 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
13754 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
13755 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13756 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
13757 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
13758 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
13759 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
13760 GF_OMP_ATOMIC_SEQ_CST): New.
13761 (gimple_build_omp_taskgroup, gimple_build_omp_target,
13762 gimple_build_omp_teams): New prototypes.
13763 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
13764 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13765 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
13766 GIMPLE_OMP_SINGLE as end of range.
13767 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
13768 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
13769 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
13770 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
13771 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
13772 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
13773 gimple_omp_target_kind, gimple_omp_target_set_kind,
13774 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
13775 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
13776 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
13777 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
13778 gimple_omp_teams_set_clauses): New inlines.
13779 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
13780 and GIMPLE_OMP_TASKGROUP.
13781 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
13782 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
13783 enum omp_clause_proc_bind_kind): New.
13784 (union omp_clause_subcode): Add depend_kind, map_kind and
13785 proc_bind_kind fields.
13786 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
13787 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13788 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
13789 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
13790 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
13792 2013-10-10 Teresa Johnson <tejohnson@google.com>
13794 * predict.c (tree_estimate_probability): Add new parameter
13795 for estimate_bb_frequencies.
13796 (estimate_bb_frequencies): Add new parameter to force estimation.
13797 (rebuild_frequencies): When max frequency in function is small,
13798 recompute counts from frequencies.
13799 * predict.h (estimate_bb_frequencies): New parameter.
13801 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13803 * ipa-inline.c (ipa_inline): Fix leak of "order" when
13804 optimizations are disabled.
13806 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13808 * coverage.c (coverage_finish): Fix leak of da_file_name.
13810 2013-10-10 Jan Hubicka <jh@suse.cz>
13812 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
13813 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
13814 Bobcat and generic.
13816 2013-10-10 Jakub Jelinek <jakub@redhat.com>
13818 PR middle-end/58670
13819 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
13820 if any labels are in FALLTHRU_BB, use a special label emitted
13821 immediately after the asm goto insn rather than label_rtx
13823 (expand_asm_stmt): Adjust caller.
13824 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
13825 edge if the last insn in predecessor is a jump with single successor,
13826 but it isn't simplejump_p.
13828 2013-10-10 Richard Biener <rguenther@suse.de>
13830 PR tree-optimization/58656
13831 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
13833 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13835 * gimplify.c: Include expr.h and tm_p.h for targets with special
13836 va-arg padding requirements.
13838 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13840 * tree-flow.h: Move some prototypes to gimple.h.
13841 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
13842 * gimple.h: Relocate some prototypes from tree-flow.h
13843 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
13844 Move to gimplify.c.
13845 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
13846 (build_va_arg_indirect_ref): Relocate and make static.
13847 (std_gimplify_va_arg_expr): Relocate here.
13848 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
13849 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
13851 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13853 * doc/md.texi: Document the mnemonic attribute.
13855 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13858 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
13859 (set_attr_alternative x ...) when searching for user defined
13860 mnemonic attribute.
13862 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13864 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
13866 2013-10-09 Easwaran Raman <eraman@google.com>
13868 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
13869 * cfgexpand.c (defer_stack_allocation): ...use here
13870 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
13872 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
13874 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
13875 (operand_equal_for_value_replacement): New function, extracted from
13876 value_replacement and enhanced to catch more cases.
13877 (value_replacement): Use operand_equal_for_value_replacement.
13879 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13881 * loop-doloop.c (doloop_modify, doloop_optimize): Use
13882 get_max_loop_iterations.
13884 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13886 * config/arm/aarch-common.c (arm_early_load_addr_dep):
13887 Place comment above function.
13889 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13891 * tree-flow.h: Remove all remaining prototypes, enums and structs that
13892 are not related to tree-cfg.c.
13893 * tree-ssa-address.h: New file. Relocate prototypes.
13894 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
13895 (addr_for_mem_ref): New. Combine call to get_address_description and
13896 return addr_for_mem_ref.
13897 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
13898 * tree-ssa-live.h: Adjust prototypes.
13899 * passes.c: Include tree-ssa-live.h.
13900 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
13901 * graphite.c (graphite_transform_loops): Make static.
13902 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
13903 make_pass_graphite, pass_data_graphite_transforms,
13904 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
13905 * ipa-pure-const.c (warn_function_noreturn): Make static.
13906 (execute_warn_function_noreturn, gate_warn_function_noreturn,
13907 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
13908 Relocate from tree-cfg.c
13909 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
13911 (execute_warn_function_noreturn, gate_warn_function_noreturn,
13912 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
13913 Move to ipa-pure-const.c.
13914 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
13915 Relocate from tree-optimize.c.
13916 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
13917 make_pass_fixup_cfg): Move to tree-cfg.c.
13918 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
13919 Relocate some prototypes.
13920 * tree-data-ref.h (tree_check_data_deps) Add prototype.
13921 * tree-dump.c (dump_function_to_file): Remove prototype.
13922 Add tree-flow.h to the include file.
13923 * tree-dump.h: Remove prototype.
13924 * tree-parloops.h: New File. Add prototypes.
13925 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
13926 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
13927 from tree-ssa-loop.c.
13928 * tree-predcom.c (run_tree_predictive_commoning,
13929 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
13930 Relocate here from tree-ssa-loop.c.
13931 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
13932 ssa_name_values.release ().
13933 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
13934 (ssa_name_values): Relocate from tree-flow.h.
13935 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
13936 * tree-ssa-loop.c (run_tree_predictive_commoning,
13937 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
13938 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
13939 make_pass_graphite, pass_data_graphite_transforms,
13940 make_pass_graphite_transforms, gate_tree_parallelize_loops,
13941 tree_parallelize_loops, pass_data_parallelize_loops,
13942 make_pass_parallelize_loops): Move to other files.
13943 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
13945 * tree.h: Remove prototypes from tree-address.c.
13947 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13949 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
13950 (struct int_tree_map): Move to tree-hasher.h
13951 (SCALE, LABEL, PERCENT): Move to gimple.h
13952 * tree-flow-inline.h: Delete. Move functions to other files.
13953 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
13954 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
13955 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
13956 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
13957 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
13958 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
13959 * tree-hasher.h: Don't include tree-flow.h.
13960 (struct int_tree_map): Relocate from tree-flow.h.
13961 * tree-sra.c (contains_view_convert_expr_p): Relocate from
13962 tree-flow-inline.h and make static.
13963 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
13964 tree-flow-inline.h.
13965 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
13966 tree-flow-inline.h and make static.
13967 * tree.h (is_global_var, may_be_aliased): Relocate from
13968 tree-flow-inline.h.
13969 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
13970 * value-prof.c: No longer include tree-flow-inline.h.
13971 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
13973 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13975 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
13976 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
13977 (enum move_pos): Move to tree-ssa-loop-im.h
13978 * cfgloop.h: Move some prototypes.
13979 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
13980 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
13981 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
13982 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
13983 (loop_containing_stmt): Relocate from tree-flow-inline.h.
13984 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
13985 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
13986 (enum move_pos): Relocate here.
13987 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
13989 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
13990 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
13991 make_pass_lim): Relocate here from tree-ssa-loop.c.
13992 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
13994 (loop_edge_to_cancel, unloop_loops): Make static.
13995 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
13996 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
13997 (tree_complete_unroll, gate_tree_complete_unroll,
13998 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
13999 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14000 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14001 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14002 (stmt_invariant_in_loop_p): Remove unused function.
14003 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14004 * tree-ssa-loop-manip.h: New file. Add prototypes.
14005 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14006 (gcov_type_to_double_int): Move to cfgloop.h.
14007 (double_int_cmp, bound_index,
14008 estimate_numbers_of_iterations_loop): Make static.
14009 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14010 (max_loop_iterations): Factor out get_max_loop_iterations.
14011 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14013 * tree-ssa-loop-niter.h: New file. Add prototypes.
14014 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14015 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14016 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14017 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14018 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14019 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14020 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14021 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
14022 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
14023 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
14024 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14025 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
14026 pass_data_complete_unroll, make_pass_complete_unroll,
14027 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14028 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
14029 tree-ssa-loop-ivcanon.c.
14030 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
14031 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
14032 tree-ssa-loop-prefetch.c.
14033 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
14034 tree-ssa-loop-im.c.
14035 (get_lsm_tmp_name): Relocate and add suffix parameter.
14036 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
14037 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
14038 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
14039 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
14040 (get_estimated_loop_iterations): Factor out accessor from
14041 estimated_loop_iterations in tree-ssa-loop-niter.c.
14042 (get_max_loop_iterations): Factor out accessor from
14043 _max_loop_iterations in tree-ssa-niter.c.
14044 * loop-unroll.c (decide_unroll_constant_iterations,
14045 decide_unroll_runtime_iterations, decide_peel_simple,
14046 decide_unroll_stupid): Use new get_* accessors.
14048 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
14050 PR tree-optimization/20318
14051 * doc/extend.texi (returns_nonnull): New function attribute.
14052 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
14054 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
14055 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
14057 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
14059 PR middle-end/58570
14060 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14061 false if both components are bitfields.
14063 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14065 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
14066 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
14067 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
14068 * config/aarch64/aarch64.h
14069 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
14070 * config/aarch64/aarch64-simd-builtins.def
14071 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
14073 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14075 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
14077 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14079 * config/aarch64/arm_neon.h (vdiv_f64): Added.
14081 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
14083 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
14084 (vneg_f64): New intrinsic.
14085 (vneg_s8): Asm replaced with C.
14086 (vneg_s16): Likewise.
14087 (vneg_s32): Likewise.
14088 (vneg_s64): New intrinsic.
14089 (vnegq_f32): Asm replaced with C.
14090 (vnegq_f64): Likewise.
14091 (vnegq_s8): Likewise.
14092 (vnegq_s16): Likewise.
14093 (vnegq_s32): Likewise.
14094 (vnegq_s64): Likewise.
14096 2013-10-09 Renlin Li <Renlin.Li@arm.com>
14098 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
14100 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14102 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
14103 packed stack special handling.
14104 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
14105 back to fixed stack slots for FPRs saved due to stdarg.
14107 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14109 * config/s390/s390.c (s390_frame_info): Restructure function.
14111 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14113 * config/s390/s390.c (struct s390_frame_layout): New field
14115 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
14116 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
14117 regs_ever_clobbered to char*.
14118 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
14119 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
14120 (s390_register_info): Enable FPR save slots. Move/Copy some
14121 functionality into ...
14122 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
14123 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
14125 (s390_frame_info): Do gpr slot allocation here now. stdarg does
14126 not imply a stack frame.
14127 (s390_init_frame_layout): Remove variable clobbered_regs.
14128 (s390_update_register_info): Remove function.
14129 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
14130 cannot be used for register renaming.
14131 (s390_hard_regno_scratch_ok): New function.
14132 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
14133 (s390_initial_elimination_offset): Change offset calculation of
14134 the return address pointer.
14135 (save_gprs): Deal with only r6 being saved from the call-saved regs.
14136 (restore_gprs): Set frame related flag.
14137 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
14138 (s390_emit_prologue): Call s390_register_info instead of
14139 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
14140 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
14141 (s390_optimize_prologue): Call s390_optimize_register_info.
14142 Try to remove also FPR slot save/restore INSNs. Remove frame
14143 related flags from restore INSNs.
14145 2013-10-08 DJ Delorie <dj@redhat.com>
14147 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
14150 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
14151 avoid conflict with the MI use of %c.
14152 * config/rl78/rl78-real.md: change %c to %C throughout.
14153 * config/rl78/rl78-virt.md: Likewise.
14155 2013-10-08 Jan Hubicka <jh@suse.cz>
14157 * config/i386/i386.c (ix86_option_override_internal): Switch
14158 to SSE math for -ffast-math when target ISA supports SSE2.
14160 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
14162 * tree-flow.h: Remove some prototypes.
14163 * tree.h: Remove some protypes, add a couple.
14164 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
14165 using_eh_for_cleanups_p): Add interface routines for front ends.
14166 * tree-eh.h: New file. Add protoptyes.
14167 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
14168 (add_stmt_to_eh_lp_fn): Make static.
14169 (lower_try_finally): Use new using_eh_for_cleanups_p.
14170 * emit-rtl.c: Include tree-eh.h.
14171 * gimple.h: Include tree-eh.h.
14173 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
14175 PR tree-optimization/58480
14176 * tree-vrp.c (infer_nonnull_range): New function.
14177 (infer_value_range): Call infer_nonnull_range.
14179 2013-10-08 Dehao Chen <dehao@google.com>
14181 PR tree-optimization/58619
14182 * tree-inline.c (copy_phis_for_bb): Combine location data
14185 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14188 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
14189 RTX_FRAME_RELATED_P on INSN.
14191 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14193 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
14194 (altivec_expand_vec_perm_const): Call it.
14196 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14198 * config/rs6000/vector.md (mov<mode>): Emit permuted move
14199 sequences for LE VSX loads and stores at expand time.
14200 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
14202 * config/rs6000/rs6000.c (rs6000_const_vec): New.
14203 (rs6000_gen_le_vsx_permute): New.
14204 (rs6000_gen_le_vsx_load): New.
14205 (rs6000_gen_le_vsx_store): New.
14206 (rs6000_gen_le_vsx_move): New.
14207 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
14208 (*vsx_le_perm_load_v4si): New.
14209 (*vsx_le_perm_load_v8hi): New.
14210 (*vsx_le_perm_load_v16qi): New.
14211 (*vsx_le_perm_store_v2di): New.
14212 (*vsx_le_perm_store_v4si): New.
14213 (*vsx_le_perm_store_v8hi): New.
14214 (*vsx_le_perm_store_v16qi): New.
14215 (*vsx_xxpermdi2_le_<mode>): New.
14216 (*vsx_xxpermdi4_le_<mode>): New.
14217 (*vsx_xxpermdi8_le_V8HI): New.
14218 (*vsx_xxpermdi16_le_V16QI): New.
14219 (*vsx_lxvd2x2_le_<mode>): New.
14220 (*vsx_lxvd2x4_le_<mode>): New.
14221 (*vsx_lxvd2x8_le_V8HI): New.
14222 (*vsx_lxvd2x16_le_V16QI): New.
14223 (*vsx_stxvd2x2_le_<mode>): New.
14224 (*vsx_stxvd2x4_le_<mode>): New.
14225 (*vsx_stxvd2x8_le_V8HI): New.
14226 (*vsx_stxvd2x16_le_V16QI): New.
14228 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14230 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14232 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14234 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14235 loop to work also for 31bit ABI.
14236 Save the stack pointer for frame_size > 0.
14238 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14240 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14241 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14242 constraint letters from expanders.
14243 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14244 retry count to general_operand.
14245 ("tabort"): Give operand 0 a mode.
14246 ("tabort_1"): Add mode and constraint letter for operand 0.
14247 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14249 2013-10-04 Jeff Law <law@redhat.com>
14251 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14253 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14255 (thread_across_edge): Here. Call it.
14257 2013-10-04 Cary Coutant <ccoutant@google.com>
14259 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14260 discarding a location list expression (or a piece of one).
14262 2013-10-03 Jan Hubicka <jh@suse.cz>
14264 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14265 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14266 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14268 2013-10-03 Jan Hubicka <jh@suse.cz>
14270 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14271 accumulate-outgoing-args when producing unwind info.
14273 2013-10-03 Wei Mi <wmi@google.com>
14275 * lra-constraints.c (insert_move_for_subreg): New function
14276 extracted from simplify_operand_subreg.
14277 (simplify_operand_subreg): Add reload for paradoxical subreg.
14279 2013-10-03 Rong Xu <xur@google.com>
14281 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
14282 the candidate of builtin_expect such that we should fix the
14283 size/time estimation.
14284 (estimate_function_body_sizes): Do the acutally size/time fix-up
14285 for builtin_expect.
14287 2013-10-03 Rong Xu <xur@google.com>
14289 * predict.c (tree_predict_by_opcode): Get the probability
14290 for builtin_expect from param builtin_expect_probability.
14291 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
14292 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
14293 * doc/invoke.texi: Add documentation for builtin-expect-probability.
14295 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
14298 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
14299 * calls.c (alloca_call_p): Use get_callee_fndecl.
14300 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
14301 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
14303 (vrp_visit_stmt): Remove duplicated code.
14305 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14307 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
14308 ceildf2, btruncdf2, instead of vsx_* name.
14310 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
14311 iterators to only do V2DF and V4SF here. Move the DF code to
14312 rs6000.md where it is combined with SF mode. Replace <VSv> with
14313 just 'v' since only vector operations are handled with these insns
14314 after moving the DF support to rs6000.md.
14315 (vsx_sub<mode>3): Likewise.
14316 (vsx_mul<mode>3): Likewise.
14317 (vsx_div<mode>3): Likewise.
14318 (vsx_fre<mode>2): Likewise.
14319 (vsx_neg<mode>2): Likewise.
14320 (vsx_abs<mode>2): Likewise.
14321 (vsx_nabs<mode>2): Likewise.
14322 (vsx_smax<mode>3): Likewise.
14323 (vsx_smin<mode>3): Likewise.
14324 (vsx_sqrt<mode>2): Likewise.
14325 (vsx_rsqrte<mode>2): Likewise.
14326 (vsx_fms<mode>4): Likewise.
14327 (vsx_nfma<mode>4): Likewise.
14328 (vsx_copysign<mode>3): Likewise.
14329 (vsx_btrunc<mode>2): Likewise.
14330 (vsx_floor<mode>2): Likewise.
14331 (vsx_ceil<mode>2): Likewise.
14332 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
14333 (vsx_sminsf3): Likewise.
14334 (vsx_fmadf4): Likewise.
14335 (vsx_fmsdf4): Likewise.
14336 (vsx_nfmadf4): Likewise.
14337 (vsx_nfmsdf4): Likewise.
14338 (vsx_cmpdf_internal1): Likewise.
14340 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
14341 simpler to select whether a target has SPE or traditional floating
14342 point support in iterators.
14343 (TARGET_DF_SPE): Likewise.
14344 (TARGET_SF_FPR): Likewise.
14345 (TARGET_DF_FPR): Likewise.
14346 (TARGET_SF_INSN): Macros to say whether floating point support
14347 exists for a given operation for expanders.
14348 (TARGET_DF_INSN): Likewise.
14350 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
14351 combining of SF/DF mode operations, using both traditional and VSX
14359 (abs<mode>2): Combine SF/DF modes using traditional floating point
14360 instructions. Add support for using the upper DF registers with
14361 VSX support, and SF registers with power8-vector support. Update
14362 expanders for operations supported by both the SPE and traditional
14363 floating point units.
14364 (abs<mode>2_fpr): Likewise.
14365 (nabs<mode>2): Likewise.
14366 (nabs<mode>2_fpr): Likewise.
14367 (neg<mode>2): Likewise.
14368 (neg<mode>2_fpr): Likewise.
14369 (add<mode>3): Likewise.
14370 (add<mode>3_fpr): Likewise.
14371 (sub<mode>3): Likewise.
14372 (sub<mode>3_fpr): Likewise.
14373 (mul<mode>3): Likewise.
14374 (mul<mode>3_fpr): Likewise.
14375 (div<mode>3): Likewise.
14376 (div<mode>3_fpr): Likewise.
14377 (sqrt<mode>3): Likewise.
14378 (sqrt<mode>3_fpr): Likewise.
14379 (fre<Fs>): Likewise.
14380 (rsqrt<mode>2): Likewise.
14381 (cmp<mode>_fpr): Likewise.
14382 (smax<mode>3): Likewise.
14383 (smin<mode>3): Likewise.
14384 (smax<mode>3_vsx): Likewise.
14385 (smin<mode>3_vsx): Likewise.
14386 (negsf2): Delete SF operations that are merged with DF.
14387 (abssf2): Likewise.
14388 (addsf3): Likewise.
14389 (subsf3): Likewise.
14390 (mulsf3): Likewise.
14391 (divsf3): Likewise.
14393 (fmasf4_fpr): Likewise.
14394 (fmssf4_fpr): Likewise.
14395 (nfmasf4_fpr): Likewise.
14396 (nfmssf4_fpr): Likewise.
14397 (sqrtsf2): Likewise.
14398 (rsqrtsf_internal1): Likewise.
14399 (smaxsf3): Likewise.
14400 (sminsf3): Likewise.
14401 (cmpsf_internal1): Likewise.
14402 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
14403 (negdf2): Delete DF operations that are merged with SF.
14404 (absdf2): Likewise.
14405 (nabsdf2): Likewise.
14406 (adddf3): Likewise.
14407 (subdf3): Likewise.
14408 (muldf3): Likewise.
14409 (divdf3): Likewise.
14411 (rsqrtdf_internal1): Likewise.
14412 (fmadf4_fpr): Likewise.
14413 (fmsdf4_fpr): Likewise.
14414 (nfmadf4_fpr): Likewise.
14415 (nfmsdf4_fpr): Likewise.
14416 (sqrtdf2): Likewise.
14417 (smaxdf3): Likewise.
14418 (smindf3): Likewise.
14419 (cmpdf_internal1): Likewise.
14420 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
14421 (btrunc<mode>2): Delete separate expander, and combine with the
14422 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
14423 (btrunc<mode>2_fpr): Likewise.
14424 (ceil<mode>2): Likewise.
14425 (ceil<mode>2_fpr): Likewise.
14426 (floor<mode>2): Likewise.
14427 (floor<mode>2_fpr): Likewise.
14428 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
14429 Add support for using the upper registers with VSX and
14430 power8-vector. Move insns to be closer to the define_expands. On
14431 VSX systems, prefer the traditional form of FMA over the VSX
14432 version, since the traditional form allows the target not to
14433 overlap with the inputs.
14434 (fms<mode>4_fpr): Likewise.
14435 (nfma<mode>4_fpr): Likewise.
14436 (nfms<mode>4_fpr): Likewise.
14438 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14439 Richard Earnshaw <richard.earnshaw@arm.com>
14441 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
14442 (struct mult_cost_table): Likewise.
14443 (struct mem_cost_table): Likewise.
14444 (struct fp_cost_table): Likewise.
14445 (struct vector_cost_table): Likewise.
14446 (cpu_cost_table): Likewise.
14447 * config/arm/arm.opt (mold-rts-costs): New option.
14448 (mnew-generic-costs): Likewise.
14449 * config/arm/arm.c (generic_extra_costs): New table.
14450 (cortexa15_extra_costs): Likewise.
14451 (arm_slowmul_tune): Use NULL as new costs.
14452 (arm_fastmul_tune): Likewise.
14453 (arm_strongarm_tune): Likewise.
14454 (arm_xscale_tune): Likewise.
14455 (arm_9e_tune): Likewise.
14456 (arm_v6t2_tune): Likewise.
14457 (arm_cortex_a5_tune): Likewise.
14458 (arm_cortex_a9_tune): Likewise.
14459 (arm_v6m_tune): Likewise.
14460 (arm_fa726te_tune): Likewise.
14461 (arm_cortex_a15_tune): Use cortex15_extra_costs.
14462 (arm_cortex_tune): Use generict_extra_costs.
14463 (shifter_op_p): New function.
14464 (arm_unspec_cost): Likewise.
14465 (LIBCALL_COST): Define.
14466 (arm_new_rtx_costs): New function.
14467 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
14468 table is available. Use old costs otherwise unless mnew-generic-costs
14470 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
14471 (cpu_cost_table): Declare.
14473 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
14476 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
14477 (*subs_mul_imm_<mode>)
14478 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
14479 (*sub_<shift>_<mode>)
14480 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
14481 Remove k constraint.
14483 2013-10-03 Ian Bolton <ian.bolton@arm.com>
14485 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
14487 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
14489 2013-10-02 Teresa Johnson <tejohnson@google.com>
14491 * predict.c (probably_never_executed): New function.
14492 (probably_never_executed_bb_p): Invoke probably_never_executed.
14493 (probably_never_executed_edge_p): Ditto.
14494 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14495 Treat profile insanities conservatively.
14497 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
14499 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
14501 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
14503 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
14504 use it. Use smaller increase for scratch. Don't increase reject
14505 for early clobber scratch.
14506 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
14507 setting eliminated regs except setting fp from hfp.
14508 (lra_eliminate): Check lra_insn_recog_data on NULL.
14510 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14513 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
14514 setting -mvsx-timode by default until the underlying problem is fixed.
14515 (RS6000_CPU, power7 defaults): Likewise.
14517 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14519 * config/x-linux (host-linux.o): Remove header dependencies.
14520 Use $(COMPILE) and $(POSTCOMPILE).
14521 * config/t-linux-android (linux-android.o): Ditto.
14523 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14525 * Makefile.in (expmed.o-warn): Remove.
14527 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14529 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
14530 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
14532 2013-10-02 Teresa Johnson <tejohnson@google.com>
14534 * dojump.c (do_jump_1): Divide probability between
14535 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
14537 2013-10-02 Tom Tromey <tromey@redhat.com>
14539 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
14541 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14543 * tree-flow.h: Remove some prototypes.
14544 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
14545 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
14546 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
14547 mark_virtual_phi_result_for_renaming): Relocate here.
14548 * tree-into-ssa.h: Add prototypes.
14549 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
14550 single_pred_before_succ_order.
14551 (blocks_in_phiopt_order): Rename and move to cfganal.c.
14552 (nonfreeing_call_p) Move to gimple.c.
14553 * cfganal.c (single_pred_before_succ_order): Move and renamed from
14555 * basic-block.h (single_pred_before_succ_order): Add prototype.
14556 * gimple.c (nonfreeing_call_p): Relocate here.
14557 * gimple.h: Add prototype.
14558 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
14559 * tree-ssa-dom.h: New file. Relocate prototypes here.
14560 * tree-ssa.h: Include tree-ssa-dom.h.
14562 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14564 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
14565 Use $(COMPILE) and $(POSTCOMPILE).
14567 * config/alpha/x-alpha (driver-alpha.o): Ditto.
14569 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14571 * tree-flow.h: Remove some prototypes.
14572 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
14573 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14574 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
14575 propagate_tree_value*): Move from here to...
14576 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
14577 propagate_tree_value*): Relocate here.
14578 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14579 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
14580 * gimple-fold.c: Remove gimple-fold.h from include list.
14581 * tree-vrp.c: Remove gimple-fold.h from include list.
14582 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
14583 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
14584 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
14585 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
14586 * sese.c: Add tree-ssa-propagate.h to include list.
14588 2013-10-02 Richard Biener <rguenther@suse.de>
14590 * tree-loop-distribution.c: Include tree-vectorizer.h for
14591 find_loop_location.
14592 (enum partition_kind): Remove PKIND_REDUCTION.
14593 (struct partition_s): Remove has_writes member, add reduction_p member.
14594 (partition_alloc): Adjust.
14595 (partition_builtin_p): Likewise.
14596 (partition_has_writes): Remove.
14597 (partition_reduction_p): New function.
14598 (partition_merge_into): Likewise.
14599 (generate_code_for_partition): Commonize builtin partition
14601 (rdg_cannot_recompute_vertex_p): Remove.
14602 (already_processed_vertex_p): Likewise.
14603 (rdg_flag_vertex): Do not set has_writes.
14604 (classify_partition): Adjust.
14605 (rdg_build_partitions): Do not set has_writes, treat all
14606 partitions as useful.
14607 (distribute_loop): Record number of library calls generated. Adjust.
14608 (tree_loop_distribution): Report number of loops and library
14609 calls generated as opt-info.
14611 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14613 * tree-flow.h: Include new .h files. Move prototypes.
14614 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
14615 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
14616 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
14617 * tree-pretty-print.h: Add prototypes from tree-flow.h.
14618 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
14619 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
14620 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
14621 * tree.h (get_ref_base_and_extent): Move prototype out.
14622 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
14624 * gimple-low.h: New File. Add prototypes from tree-flow.h.
14625 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
14626 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
14627 * tree-scalar-evolution.c: Include tree.h.
14628 * sese.c: Include tree.h.
14629 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
14630 * dwarf2out.c: Include tree-dfa.h.
14631 * tree-chrec.c: Include tree.h.
14632 * tree-data-ref.c: Include tree.h.
14634 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
14636 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
14639 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14641 * config/t-sol2 (sol2-c.o): Remove header dependencies.
14642 Use $(COMPILE) and $(POSTCOMPILE).
14643 (sol2-cxx.o): Likewise.
14644 (sol2-stubs.o): Likewise.
14645 (sol2.o): Likewise.
14646 * config/x-solaris (host-solaris.o): Likewise.
14648 * config/sparc/t-sparc (sparc.o): Remove.
14649 (sparc-c.o): Remove header dependencies.
14650 Use $(COMPILE) and $(POSTCOMPILE).
14651 * config/sparc/x-sparc: Likewise.
14653 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
14655 * config/arc/arc-opts.h: Add 2013 to Copyright years.
14656 * config/arc/arc700.md: Likewise.
14657 * config/arc/arc-modes.def: Likewise.
14658 * config/arc/arc-simd.h: Likewise.
14659 * config/arc/t-arc-uClibc: Likewise.
14660 * config/arc/t-arc-newlib: Likewise.
14662 2013-10-02 Renlin Li <renlin.li@arm.com>
14664 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14666 (aarch64_expand_epilogue): Likewise.
14668 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14669 Yufeng Zhang <yufeng.zhang@arm.com>
14671 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
14673 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
14674 'base_in' represent a conversion and legal_cast_p_1 holds; set
14675 'base_in' with the returned value from get_unwidened.
14677 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14679 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
14680 plus_constant is not used.
14682 2013-10-01 Wei Mi <wmi@google.com>
14684 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
14685 * config/i386/i386.md: Add define_peephole2 to
14686 break partial reg stall for cvtss2sd/cvtsd2ss.
14688 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14690 * config/arc/arc.c (pass_arc_ifcvt::clone):
14691 Update for ctxt_ -> m_ctxt change.
14693 2013-10-01 Jeff Law <law@redhat.com>
14695 * tree-ssa-threadupdate.c (struct redirection_data): Delete
14696 outgoing_edge and intermediate_edge fields. Instead store the path.
14697 (redirection_data::hash): Hash on the last edge's destination index.
14698 (redirection_data::equal): Check the entire thread path.
14699 (lookup_redirectio_data): Corresponding changes.
14700 (create_edge_and_update_destination_phis): Likewise.
14701 (thread_single_edge): Likewise.
14703 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14704 Diego Novillo <dnovillo@google.com>
14706 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
14707 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
14708 (vld32wh_insn, vld32wl_insn): Delete commented-out old
14709 versions of these patterns.
14711 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
14712 (__builtin_arc_aligned): Likewise.
14714 * config/arc/arc.md: Expand adc_0 comment stating the intended
14715 purpose and why it isn't ready.
14716 Replace commented out call_value_via_label_mixed with a
14717 plain comment about bl_s.
14719 * config/arc/arc.c (stdio.h): Don't include directly.
14720 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
14721 Remove if (1) condition.
14722 (arc_encode_section_info): Fix comment.
14724 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14726 * config/arc/arc.c (arc_conditional_register_usage):
14727 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
14728 Also set reg_alloc_order for DMA config regs.
14730 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14731 Jeremy Bennett <jeremy.bennett@embecosm.com>
14733 * doc/install.texi (--with-cpu): Mention ARC.
14734 (arc-*-elf32): New paragraph.
14735 (arc-linux-uclibc): Likewise.
14736 * doc/md.texi (Machine Constraints): Add ARC part.
14737 * doc/invoke.texi: (menu): Add ARC Options.
14738 (Machine Dependent Options) <ARC Options>: Add synopsis.
14739 (node ARC Options): Add.
14740 * doc/extend.texi (long_call / short_call attribute): Add ARC.
14741 (ARC Built-in Functions): New section defining
14742 generic ARC built-in functions.
14743 (ARC SIMD Built-in Functions): New section defining SIMD specific
14744 built-in functions.
14745 (Declaring Attributes of Functions): Extended
14746 description of short_call and long_call attributes for ARC and
14747 added index entries.
14749 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
14750 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
14751 Joern Rennecke <joern.rennecke@embecosm.com>
14752 Muhammad Khurram Riaz <khurram.riaz@arc.com>
14753 Brendan Kehoe <brendan@zen.org>
14754 Michael Eager <eager@eagercon.com>
14755 Simon Cook <simon.cook@embecosm.com>
14756 Jeremy Bennett <jeremy.bennett@embecosm.com>
14758 * config/arc, common/config/arc: New directories.
14760 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14761 Brendan Kehoe <brendan@zen.org>
14762 Simon Cook <simon.cook@embecosm.com>
14764 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
14766 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14768 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
14769 * tree-ssa-coalesce.h: New. Move prototype to here.
14770 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
14771 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
14772 (gimple_can_coalesce_p): Move to...
14773 * gimple.c (gimple_can_coalesce_p): Here.
14775 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14777 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
14778 (dump_decl_set): Move to gimple.c.
14779 * gimple.h: Don't include tree-ssa-operands.h.
14780 (dump_decl_set): Add prototype.
14781 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14782 Move to gimple-ssa.h.
14783 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
14784 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
14785 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
14786 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
14787 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
14789 (dump_decl_set): Relocate here.
14790 * gimple-ssa.h: New file.
14791 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14792 Relocate from gimple.h.
14793 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
14794 * tree-ssa-operands.c (swap_ssa_operands): Rename from
14795 swap_tree_operands and remove non-ssa path.
14796 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
14797 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
14799 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
14800 vect_is_simple_reduction_1): Use swap_ssa_operands.
14801 * tree-flow.h: Move various prototypes to tree-phinodes.h.
14802 (enum need_phi_state): Move to tree-into-ssa.c.
14803 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14804 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
14805 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
14806 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
14807 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14808 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14809 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14810 num_imm_uses): Move to ssa-iterators.h.
14811 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
14812 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
14814 (op_iter_done, op_iter_next_def, op_iter_next_tree,
14815 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
14816 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
14817 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
14818 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
14819 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
14820 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
14821 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
14822 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
14823 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
14824 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
14825 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
14826 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
14827 (set_phi_nodes): Move to tree-phinodes.h.
14828 * tree-ssa-operands.h (enum ssa_op_iter_type,
14829 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
14830 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
14831 (dump_decl_set): Remove prototype.
14832 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
14833 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
14834 (set_phi_nodes): Relocate from tree-flow-inline.h.
14835 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
14837 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
14838 include list. Temporarily add gimple.h to include list.
14839 * ssa-iterators.h: New file.
14840 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14841 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
14842 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
14843 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
14844 Relocate from tree-ssa-operands.h.
14845 (delink_imm_use, link_imm_use_to_list, link_imm_use,
14846 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14847 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14848 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14849 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
14850 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
14851 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
14852 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
14853 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
14854 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
14855 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
14856 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
14857 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
14858 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
14859 Relocate from tree-flow-inline.h.
14860 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
14862 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
14865 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
14866 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
14867 Insert '\t' to output template.
14868 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
14869 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
14870 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
14871 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
14873 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
14875 * doc/install.texi (Host/target specific installation notes for GCC):
14876 Put @anchor before @heading.
14877 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
14878 Use @email for email addresses.
14880 2013-10-01 Jeff Law <law@redhat.com>
14882 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
14883 a vec. Only delete the path if we create one without successfully
14884 registering a jump thread.
14885 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
14887 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
14888 (paths): New vector of jump threading paths.
14889 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
14890 (THREAD_PATH): New accessor macro for the entire thread path.
14891 (lookup_redirection_data): Get intermediate and final outgoing edge
14892 from the thread path.
14893 (create_edge_and_update_destination_phis): Copy the threading path.
14894 (ssa_fix_duplicate_block_edges): Get edges and block types from the
14895 jump threading path.
14896 (ssa_redirect_edges): Get edges and block types from the jump threading
14897 path. Free the path vector.
14898 (thread_block): Get edges from the jump threading path. Look at the
14899 entire path to see if we thread to a loop exit. If we cancel a jump
14900 thread request, then free the path vector.
14901 (thread_single_edge): Get edges and block types from the jump threading
14902 path. Free the path vector.
14903 (thread_through_loop_header): Get edges and block types from the jump
14904 threading path. Free the path vector.
14905 (mark_threaded_blocks): Iterate over the vector of paths and store
14906 the path on the appropriate edge. Get edges and block types from the
14907 jump threading path.
14908 (mark_threaded_blocks): Get edges and block types from the jump
14909 threading path. Free the path vector.
14910 (thread_through_all_blocks): Use the vector of paths rather than
14911 a vector of 3-edge sets.
14912 (register_jump_thread): Accept pointer to a path vector rather
14913 than the path vector itself. Store the path vector for later use.
14916 2013-10-01 Jakub Jelinek <jakub@redhat.com>
14917 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14920 * config/s390/s390.c (s390_split_branches): Modify check for table
14922 (s390_chunkify_start): Rearrange table jump insn check in order to
14923 deal with compare and branch insns correctly.
14925 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
14929 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
14930 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
14931 define_insn_and_split.
14932 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
14933 (shiftsi3_compare): New pattern.
14934 (rrx): New pattern.
14935 * config/arm/unspecs.md (UNSPEC_RRX): New.
14937 2013-10-01 Alan Modra <amodra@gmail.com>
14939 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
14940 casing inout operands.
14942 2013-10-01 Richard Biener <rguenther@suse.de>
14944 PR tree-optimization/58553
14945 * tree-loop-distribution.c (struct partition_s): Add niter member.
14946 (classify_partition): Populate niter member for the partition
14947 and properly identify whether the relevant store happens before
14948 or after the loop exit.
14949 (generate_memset_builtin): Use niter member from the partition.
14950 (generate_memcpy_builtin): Likewise.
14952 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
14954 * vec.h (vec_prefix, vec): Prefix member names with "m_".
14955 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
14957 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
14959 * basic-block.h (edge_list): Prefix member names with "m_".
14960 * context.h (context): Likewise.
14961 * domwalk.h (dom_walker): Likewise.
14962 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
14963 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
14964 * hash-table.h (hash_table): Likewise.
14965 * machmode.h (bit_field_mode_iterator): Likewise.
14966 * pass_manager.h (pass_list): Likewise.
14967 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
14968 * tree-pass.h (pass_data): Likewise.
14969 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
14970 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
14971 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
14972 * asan.c (pass_data_asan): Update accordingly.
14973 * cfganal.c (control_dependences::find_control_dependence): Likewise.
14974 (control_dependences::control_dependences): Likewise.
14975 (control_dependences::~control_dependences): Likewise.
14976 (control_dependences::~control_dependences): Likewise.
14977 (control_dependences::get_edges_dependent_on): Likewise.
14978 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
14979 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
14980 * context.c (gcc::context::context): Likewise.
14981 * cprop.c (pass_rtl_cprop::clone): Likewise.
14982 * domwalk.c (dom_walker::walk): Likewise.
14983 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
14984 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
14985 * mode-switching.c (pass_mode_switching::clone): Likewise.
14986 * passes.c (opt_pass::opt_pass): Likewise.
14987 (pass_manager::pass_manager): Likewise.
14988 * predict.c (pass_strip_predict_hints::clone): Likewise.
14989 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
14990 (pass_split_all_insns::clone): Likewise.
14991 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
14993 (bit_field_mode_iterator::next_mode): Likewise.
14994 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
14995 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
14996 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
14997 * tree-complex.c (pass_lower_complex::clone): Likewise.
14998 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
14999 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15000 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15001 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15002 (pass_fold_builtins::clone): Likewise.
15003 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15004 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15005 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15006 (pass_cd_dce::clone): Likewise.
15007 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15008 (pass_phi_only_cprop::clone): Likewise.
15009 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15010 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15011 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15012 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15013 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15014 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15015 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15016 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15017 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15018 * tree-vrp.c (pass_vrp::clone): Likewise.
15019 * tsan.c (pass_tsan::clone): Likewise.
15021 2013-09-30 Jakub Jelinek <jakub@redhat.com>
15023 PR middle-end/58564
15024 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
15025 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
15027 PR middle-end/58564
15028 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
15029 optimization, punt if sign_bit_p looked through any zero extension.
15031 2013-09-30 Teresa Johnson <tejohnson@google.com>
15033 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
15034 Update redirected out edge count in joiner case.
15035 (ssa_redirect_edges): Common the joiner and non-joiner cases
15036 so that joiner case gets profile updates.
15038 2013-09-30 Richard Biener <rguenther@suse.de>
15040 PR tree-optimization/58554
15041 * tree-loop-distribution.c (classify_partition): Require
15042 unconditionally executed stores for memcpy and memset recognition.
15043 (tree_loop_distribution): Calculate dominance info.
15045 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15047 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
15048 (NO_PROFILE_COUNTERS): Likewise.
15049 (PROFILE_HOOK): Likewise.
15050 (FUNCTION_PROFILER): Likewise.
15051 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
15053 2013-09-30 Iain Sandoe <iain@codesourcery.com>
15055 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
15056 calls and defines in TARGET_MACHO conditional.
15057 (load_macho_picbase_di): Likewise.
15058 (reload_macho_picbase): Likewise.
15059 (reload_macho_picbase_si): Likewise.
15060 (reload_macho_picbase_di): Likewise.
15061 (nonlocal_goto_receiver): Likewise.
15063 2013-09-30 Nick Clifton <nickc@redhat.com>
15065 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
15066 that use the MSP430X ISA.
15067 (msp430_option_override): Scan -mmcu command line option for any
15068 MCU name that supports the MSP430X ISA.
15069 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
15070 -mmcu options which enable the MSP430X ISA.
15072 2013-09-30 Richard Biener <rguenther@suse.de>
15074 PR middle-end/58532
15075 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
15076 before looking for setjmp-like calls.
15078 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15081 * config/darwin-protos.h (machopic_get_function_picbase): New.
15082 * config/darwin.c (machopic_get_function_picbase): New.
15083 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
15084 label for a new func. (load_macho_picbase_di): Likewise.
15085 (reload_macho_picbase): New expand.
15086 (reload_macho_picbase_si): New insn.
15087 (reload_macho_picbase_di): New insn.
15088 (nonlocal_goto_receiver): New define and split.
15089 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
15090 (unspecv enum): Add UNSPECV_NLGR.
15092 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15094 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
15095 that altivec registers are correctly sized on Darwin.
15097 2013-09-29 Iain Sandoe <iain@codesourcery.com>
15099 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
15100 darwin-driver.o): Use COMPILE and POSTCOMPILE.
15101 * config/x-darwin (host-darwin.o): Likewise.
15102 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15103 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15104 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15106 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
15108 * doc/invoke.texi: Fix usage of @tie{} command.
15110 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
15112 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
15114 2013-09-28 Jan Hubicka <jh@suse.cz>
15116 * config/i386/x86-tune.def: Add documentation for each of the options;
15119 2013-09-28 Jan Hubicka <jh@suse.cz>
15121 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
15123 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
15124 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
15125 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
15126 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
15127 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
15129 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
15131 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
15132 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
15133 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
15134 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
15135 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
15136 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
15137 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
15138 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
15139 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
15140 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
15141 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
15142 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
15143 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
15144 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
15145 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
15146 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
15147 gimple.h, godump.c, graphite-clast-to-gimple.c,
15148 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
15149 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
15150 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
15151 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15152 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
15153 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
15154 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
15155 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
15156 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
15157 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
15158 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
15159 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
15160 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
15161 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
15162 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
15163 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
15164 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
15165 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
15166 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
15167 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
15168 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
15169 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
15170 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
15171 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
15172 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15173 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15174 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
15175 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
15176 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15177 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15178 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15179 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15180 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
15181 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15182 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15183 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
15184 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
15185 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
15186 whitespace before "(".
15188 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
15190 * expr.h (extract_bit_field): Remove packedp parameter.
15191 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
15192 from forward declaration.
15193 (store_split_bit_field): Remove packedp arg from calls to
15194 extract_fixed_bit_field.
15195 (extract_bit_field_1): Remove packedp parameter and packedp
15196 argument from recursive calls and calls to extract_fixed_bit_field.
15197 (extract_bit_field): Remove packedp parameter and corresponding
15198 arg to extract_bit_field_1.
15199 (extract_fixed_bit_field): Remove packedp parameter. Remove code
15201 (extract_split_bit_field): Remove packedp arg from call to
15202 extract_fixed_bit_field.
15203 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
15204 (copy_blkmode_from_reg): Likewise.
15205 (copy_blkmode_to_reg): Likewise.
15206 (read_complex_part): Likewise.
15207 (store_field): Likewise.
15208 (expand_expr_real_1): Likewise.
15209 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
15210 to extract_bit_field.
15211 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15212 call to extract_bit_field.
15213 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15214 call to extract_bit_field.
15215 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15216 and special packedp behavior from -fstrict-volatile-bitfields
15219 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15221 * lra-eliminations.c (init_elim_table): Guard value_p.
15223 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15225 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15226 DFmode, DImode, and SFmode in the upper VSX registers based on the
15227 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15228 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15229 of the VSX register handling.
15231 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15232 (f32_sv): Likewise.
15233 (zero_extendsidi2_lfiwzx): Add support for loading into the
15234 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15235 only do VSX memory options on Altivec registers.
15236 (extendsidi2_lfiwax): Likewise.
15237 (extendsfdf2_fpr): Likewise.
15238 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15239 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15240 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15241 (movdi_internal64): Likewise.
15243 2013-09-27 Xinliang David Li <davidxl@google.com>
15245 * opts.c (finish_options): Adjust parameters
15246 according to vect cost model.
15247 (common_handle_option): Set dynamic vect cost
15249 targhooks.c (default_add_stmt_cost): Compute stmt cost
15251 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15252 Use helper function.
15253 * tree-vectorizer.h (unlimited_cost_model): New function.
15254 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15255 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15257 (vect_enhance_data_refs_alignment): Ditto.
15258 * flag-types.h: New enum.
15259 * common/config/i386/i386-common.c (ix86_option_init_struct):
15260 No need to initialize vect_cost_model flag.
15261 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15264 2013-09-27 Diego Novillo <dnovillo@google.com>
15266 * gimple.h (enum ssa_mode): Remove.
15268 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15270 * cfgloop.h (number_of_loops): Fix typo in check for null.
15272 2013-09-27 Jakub Jelinek <jakub@redhat.com>
15274 PR middle-end/58551
15275 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
15276 are children of outermost saved_cfun's loop, and set it up to
15277 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
15278 if loop != loop0 and SESE region contains bbs that belong to loop0.
15280 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15282 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
15283 (binary_scale_code_p, get_base_term, get_index_term): New functions.
15284 (set_address_segment, set_address_base, set_address_index)
15285 (set_address_disp): Accept the argument unconditionally.
15286 (baseness): Remove must_be_base_p and must_be_index_p checks.
15287 (decompose_normal_address): Classify as much as possible in the
15290 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15292 * cse.c (count_reg_usage): Handle INT_LIST.
15293 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
15294 * reginfo.c (reg_scan_mark_refs): Likewise.
15295 * reload1.c (eliminate_regs_1): Likewise.
15297 2013-09-27 Iain Sandoe <iain@codesourcery.com>
15299 PR middle-end/58547
15300 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
15303 2013-09-27 Richard Biener <rguenther@suse.de>
15305 PR tree-optimization/58459
15306 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
15307 restriction not propagating into loops.
15309 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
15311 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
15312 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
15313 * doc/tree-ssa.texi (Walking use-def chains): Delete.
15315 2013-09-26 Richard Biener <rguenther@suse.de>
15317 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
15319 2013-09-26 Richard Biener <rguenther@suse.de>
15321 * alias.h (component_uses_parent_alias_set): Rename to ...
15322 (component_uses_parent_alias_set_from): ... this.
15323 * alias.c (component_uses_parent_alias_set): Rename to ...
15324 (component_uses_parent_alias_set_from): ... this and return
15325 the desired parent.
15326 (reference_alias_ptr_type_1): Use the result from
15327 component_uses_parent_alias_set_from instead of stripping
15328 components one at a time.
15329 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
15331 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15333 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
15334 Move prototypes to...
15335 * tree-ssa-ter.h: New File. Move prototypes here.
15336 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
15337 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
15338 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
15339 from is_replaceable_p.
15340 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
15341 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
15342 (process_replaceable): Use ter_is_replaceable_p.
15343 (find_replaceable_in_bb): Use ter_is_replaceable_p.
15344 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
15345 newly refactored ssa_is_replaceable_p.
15346 * cfgexpand.c: Include tree-outof-ssa.h.
15347 * ssaexpand.h: Delete.
15349 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15351 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
15352 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
15354 (create_gimple_tmp): Delete.
15355 (get_expr_type, build_assign, build_type_cast): Move to...
15356 * gimple-builder.c: New File.
15357 (get_expr_type): Relocate from gimple.c.
15358 (build_assign, build_type_cast): Change to only create ssanames.
15359 * gimple.h: Move prototypes to...
15360 * gimple-builder.h: New File. Here.
15361 * tree-ssa.h: And here.
15362 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
15363 count_uses_and_derefs): Relocate from gimple.c.
15364 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
15365 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
15366 * tree-ssa-math-opts (execute_cse_reciprocals): Use
15367 gimple_replace_ssa_lhs.
15368 * asan.c: Include gimple-builder.h.
15369 * Makefile.in: Add gimple-builder.o.
15371 2013-09-26 Richard Biener <rguenther@suse.de>
15373 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
15374 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
15375 (loe_visit_block): Use gcc_checking_assert.
15376 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
15377 gimple_assign_ssa_name_copy_p.
15378 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
15381 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
15383 * config/rs6000/t-rs6000 (rs6000.o): Remove.
15384 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
15386 2013-09-26 Richard Biener <rguenther@suse.de>
15388 PR tree-optimization/58539
15389 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
15390 the fact that debug statements are not taking part in loop-closed
15393 2013-09-26 Nick Clifton <nickc@redhat.com>
15395 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
15396 time warning message.
15397 (msp430_print_operand_raw): Delete unused letter parameter.
15398 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15399 (msp430_print_operand_address): New function.
15400 (msp430_print_operand): Move address printing code from here to
15402 * config/msp430/msp430.md (movsipsi2): Add comment in generated
15404 (zero_extendpsisi2): Likewise.
15405 (extendpsisi2): New pattern.
15406 (andneghi3): New pattern.
15408 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
15410 * config/aarch64/aarch64.opt (mlra): New option.
15411 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
15412 (TARGET_LRA_P): Define.
15414 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
15416 * expr.c (expand_assignment): Remove obsolete comment.
15418 2013-09-25 Jeff Law <law@redhat.com>
15420 * tree-flow.h (thread_through_all_blocks): Prototype moved into
15421 tree-ssa-threadupdate.h.
15422 (register_jump_thread): Similarly.
15423 * tree-ssa-threadupdate.h: New header file.
15424 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
15425 * tree-vrp.c: Likewise.
15426 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
15427 (thread_around_empty_blocks): Change type of path vector argument to
15428 an edge,type pair from just an edge. Initialize both elements when
15429 appending to a jump threading path. Tweak references to elements
15431 (thread_across_edge): Similarly. Release memory for the elements
15433 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
15434 (dump_jump_thread_path): New function broken out from
15435 register_jump_thread.
15436 (register_jump_thread): Use dump_jump_thread_path. Change type of
15437 path vector entries. Search the path for NULL edges and dump
15438 the path if one is found. Tweak the conversion of path to 3-edge
15439 form to use the block copy type information embedded in the path.
15441 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15443 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
15445 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15446 Vladimir Makarov <vmakarov@redhat.com>
15448 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
15449 from the least significant bit.
15450 (strip_address_mutations): Add bitfield operations handling.
15451 (must_be_index_p): Add shifting and rotate operations handling.
15452 (set_address_base): Use must_be_base_p predicate.
15453 (set_address_index): Use must_be_index_p predicate.
15455 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
15456 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15457 Sergey Lega <sergey.s.lega@intel.com>
15458 Anna Tikhonova <anna.tikhonova@intel.com>
15459 Ilya Tocar <ilya.tocar@intel.com>
15460 Andrey Turetskiy <andrey.turetskiy@intel.com>
15461 Ilya Verbin <ilya.verbin@intel.com>
15462 Kirill Yukhin <kirill.yukhin@intel.com>
15463 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15465 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15467 (ix86_expand_vector_move_misalign): Support new unaligned load and
15468 stores and use new names.
15469 (CODE_FOR_sse2_storedqu): Rename to ...
15470 (CODE_FOR_sse2_storedquv16qi): ... this.
15471 (CODE_FOR_sse2_loaddqu): Rename to ...
15472 (CODE_FOR_sse2_loaddquv16qi): ... this.
15473 (CODE_FOR_avx_loaddqu256): Rename to ...
15474 (CODE_FOR_avx_loaddquv32qi): ... this.
15475 (CODE_FOR_avx_storedqu256): Rename to ...
15476 (CODE_FOR_avx_storedquv32qi): ... this.
15477 * config/i386/i386.md (fpint_logic): New.
15478 * config/i386/sse.md (VMOVE): Extend for AVX512.
15482 (VI_UNALIGNED_LOADSTORE): Ditto.
15483 (sse2_avx_avx512f): Ditto.
15484 (sse2_avx2): Extend for AVX512.
15485 (sse4_1_avx2): Ditto.
15486 (avx2_avx512f): New.
15487 (sse): Extend for AVX512.
15490 (avxsizesuffix): Ditto.
15491 (sseintvecmode): Ditto.
15492 (ssePSmode): Ditto.
15493 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
15494 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
15495 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15496 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
15497 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15498 (<sse2_avx_avx512f>_storedqu<mode): ... this.
15499 (<sse>_movnt<mode>): Replace constraint "x" with "v".
15500 (STORENT_MODE): Extend for AVX512.
15501 (*absneg<mode>2): Replace constraint "x" with "v".
15502 (*mul<mode>3): Ditto.
15503 (*ieee_smin<mode>3): Ditto.
15504 (*ieee_smax<mode>3): Ditto.
15505 (avx_cmp<mode>3): Replace VF with VF_128_256.
15506 (*<sse>_maskcmp<mode>3_comm): Ditto.
15507 (<sse>_maskcmp<mode>3): Ditto.
15508 (<sse>_andnot<mode>3): Extend for AVX512.
15509 (<code><mode>3, anylogic): Replace VF with VF_128_256.
15510 (<code><mode>3, fpint_logic): New.
15511 (*<code><mode>3): Extend for AVX512.
15512 (avx512flogicsuff): New.
15513 (avx512f_<logic><mode>): Ditto.
15514 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
15516 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
15517 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
15518 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
15519 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
15520 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
15521 (xop_vpermil2<mode>3): Ditto.
15522 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
15523 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
15524 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
15525 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
15527 2013-09-25 Tom Tromey <tromey@redhat.com>
15529 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
15530 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
15531 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
15532 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
15533 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
15534 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
15535 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
15536 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
15537 (GRAPHITE_HTAB_H): Remove.
15539 2013-09-25 Tom Tromey <tromey@redhat.com>
15541 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
15543 2013-09-25 Tom Tromey <tromey@redhat.com>
15545 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
15547 2013-09-25 Tom Tromey <tromey@redhat.com>
15549 * config/i386/t-i386 (i386.o): Remove.
15550 (i386-c.o): Use COMPILE and POSTCOMPILE.
15552 2013-09-25 Tom Tromey <tromey@redhat.com>
15554 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
15556 2013-09-25 Tom Tromey <tromey@redhat.com>
15558 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
15559 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
15560 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
15561 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
15562 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
15563 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
15564 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
15565 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
15566 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
15567 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
15568 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
15569 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
15570 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
15571 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
15572 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
15573 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
15574 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
15575 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
15576 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
15577 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
15578 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
15579 (tree-ssa-pre.o, tree-ssa-sccvn.o)
15580 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
15581 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
15582 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
15583 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
15584 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
15585 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
15586 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
15587 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
15588 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
15589 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
15590 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
15591 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
15592 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
15593 (graphite-clast-to-gimple.o, graphite-dependences.o)
15594 (graphite-interchange.o, graphite-poly.o)
15595 (graphite-scop-detection.o, graphite-sese-to-poly.o)
15596 (graphite-optimize-isl.o, tree-vect-loop.o)
15597 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
15598 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
15599 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
15600 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
15601 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
15602 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
15603 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
15604 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
15605 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
15606 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
15607 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
15608 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
15609 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
15610 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
15611 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
15612 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
15613 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
15614 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
15615 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
15616 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
15617 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
15618 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
15619 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
15620 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
15621 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
15622 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
15623 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
15624 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
15625 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
15626 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
15627 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
15628 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
15629 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
15630 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
15631 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
15632 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
15633 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
15634 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
15635 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
15636 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
15637 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
15638 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
15639 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
15640 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
15641 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
15642 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
15643 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
15644 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
15645 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
15646 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
15647 (gcov-dump.o): Remove.
15648 (default-c.o): Use COMPILE and POSTCOMPILE.
15649 (CFLAGS-gcc.o): New variable.
15650 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
15652 2013-09-25 Tom Tromey <tromey@redhat.com>
15654 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
15655 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
15656 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
15657 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
15658 (c-family/c-pragma.o, c-family/c-pretty-print.o)
15659 (c-family/c-semantics.o, c-family/c-ada-spec.o)
15660 (c-family/array-notation-common.o, c-family/stub-objc.o)
15661 (c-family/c-ubsan.o): Remove.
15663 2013-09-25 Tom Tromey <tromey@redhat.com>
15665 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
15667 2013-09-25 Tom Tromey <tromey@redhat.com>
15669 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
15670 to add -DENABLE_SHARED_LIBGCC.
15671 (gcc.o): Don't use subshell.
15673 2013-09-25 Tom Tromey <tromey@redhat.com>
15675 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
15676 * configure.ac: Don't invoke AM_PROG_CC_C_O.
15677 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
15678 * configure, config.in: Rebuild.
15680 2013-09-25 Tom Tromey <tromey@redhat.com>
15682 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
15683 (COMPILE, POSTCOMPILE): New variables.
15684 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
15685 (DEPFILES): New variable.
15686 Include ".Po" files.
15687 * configure.ac: Add checks for dependency checking.
15688 * configure, aclocal.m4: Regenerate.
15690 2013-09-25 Tom Tromey <tromey@redhat.com>
15692 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
15693 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
15695 2013-09-25 Tom Tromey <tromey@redhat.com>
15697 * Makefile.in (generated_files): Add options.h,
15698 target-hooks-def.h, insn-opinit.h,
15699 common/common-target-hooks-def.h, pass-instances.def,
15700 c-family/c-target-hooks-def.h.
15702 2013-09-25 Jeff Law <law@redhat.com>
15704 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
15705 than foo[foo.length () - 1] to access last member in a vec.
15706 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
15708 2013-09-25 Richard Biener <rguenther@suse.de>
15710 PR middle-end/58521
15711 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
15713 2013-09-25 Jan Hubicka <jh@suse.cz>
15715 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
15718 2013-09-25 Marek Polacek <polacek@redhat.com>
15721 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
15722 when determining the type name.
15724 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
15726 * config/sh/sh.md: Fix formatting.
15728 2013-09-24 Xinliang David Li <davidxl@google.com>
15730 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
15731 max peel iterations parameter.
15732 * param.def: New parameter.
15733 * doc/invoke.texi: Document New parameter.
15735 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
15737 * gimple-pretty-print.c: Various whitespace tweaks.
15738 * tree-core.h: Likewise.
15739 * tree-pretty-print.c: Likewise.
15740 * tree-ssa-alias.c: Likewise.
15741 * tree-ssa-copy.c: Likewise.
15742 * tree-ssanames.c: Likewise.
15743 * tree-ssanames.h: Likewise.
15744 * tree-vrp.c: Likewise.
15746 2013-09-24 Alan Modra <amodra@gmail.com>
15748 PR middle-end/57134
15749 PR middle-end/57586
15750 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
15751 for output operands that disallow regs. Don't use EXPAND_WRITE on
15754 2013-09-24 Richard Biener <rguenther@suse.de>
15756 PR middle-end/58513
15757 * tree.c (reference_alias_ptr_type): Move ...
15758 * alias.c (reference_alias_ptr_type): ... here and implement
15759 in terms of the new reference_alias_ptr_type_1.
15760 (ref_all_alias_ptr_type_p): New helper.
15761 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
15762 use ref_all_alias_ptr_type_p.
15763 (get_deref_alias_set): Add flag_strict_aliasing check here.
15764 (reference_alias_ptr_type_1): New function, split out from ...
15765 (get_alias_set): ... here.
15766 (alias_ptr_types_compatible_p): New function.
15767 * alias.h (reference_alias_ptr_type): Declare.
15768 (alias_ptr_types_compatible_p): Likewise.
15769 * tree.h (reference_alias_ptr_type): Remove.
15770 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
15771 to compare MEM_REF alias types.
15773 2013-09-24 Richard Biener <rguenther@suse.de>
15775 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
15777 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15779 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
15780 reload helper function arrays into a single array reg_addr.
15781 (reload_fpr_gpr): Likewise.
15782 (reload_gpr_vsx): Likewise.
15783 (reload_vsx_gpr): Likewise.
15784 (struct rs6000_reg_addr): Likewise.
15785 (reg_addr): Likewise.
15786 (rs6000_debug_reg_global): Change rs6000_vector_reload,
15787 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
15788 (rs6000_init_hard_regno_mode_ok): Likewise.
15789 (rs6000_secondary_reload_direct_move): Likewise.
15790 (rs6000_secondary_reload): Likewise.
15792 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
15793 constraints: wu, ww, and wy. Repurpose wv constraint added during
15794 power8 changes. Put wg constraint in alphabetical order.
15796 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
15797 for future work to add ISA 2.07 VSX single precision support.
15798 (-mvsx-scalar-double): Change default from -1 to 1, update
15799 documentation comment.
15800 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
15801 (-mupper-regs-df): New debug switch to control whether DF values
15802 can go in the traditional Altivec registers.
15803 (-mupper-regs-sf): New debug switch to control whether SF values
15804 can go in the traditional Altivec registers.
15806 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
15807 and wy constraints.
15808 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
15809 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
15810 Add new constraints, wu/ww/wy. Repurpose wv constraint.
15811 (rs6000_debug_legitimate_address_p): Print if we are running
15812 before, during, or after reload.
15813 (rs6000_secondary_reload): Add a comment.
15814 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
15816 * config/rs6000/constraints.md (wa constraint): Sort w<x>
15817 constraints. Update documentation string.
15818 (wd constraint): Likewise.
15819 (wf constraint): Likewise.
15820 (wg constraint): Likewise.
15821 (wn constraint): Likewise.
15822 (ws constraint): Likewise.
15823 (wt constraint): Likewise.
15824 (wx constraint): Likewise.
15825 (wz constraint): Likewise.
15826 (wu constraint): New constraint for ISA 2.07 SFmode scalar
15828 (ww constraint): Likewise.
15829 (wy constraint): Likewise.
15830 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
15831 in the previous submissions.
15832 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
15834 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
15836 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
15837 (REG_BR_PROB): Say that the probability is stored in an int_list.
15838 * reg-notes.def: Update commentary to mention INT_LIST.
15839 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
15840 (INT_LIST): New rtx.
15841 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
15842 * rtlanal.c (int_reg_note_p): New function.
15843 (alloc_reg_note): Assert that the note does not have an int argument.
15844 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
15845 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
15846 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
15847 rather than an INSN_LIST. Handle INT_LIST.
15848 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
15849 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
15850 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
15851 Manipulate them as ints rather than rtxes.
15852 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
15853 * regmove.c (copy_src_to_dest): Likewise.
15854 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
15856 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
15857 into the cases that need it.
15858 * config/arm/arm.c (arm_unwind_emit): Likewise.
15860 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
15861 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
15862 * loop-doloop.c (add_test, doloop_modify): Likewise.
15863 * loop-unswitch.c (compare_and_jump_seq): Likewise.
15864 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
15865 * predict.c (combine_predictions_for_insn): Likewise.
15866 * print-rtl.c (print_rtx): Handle INT_LIST.
15867 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
15868 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
15869 * config/arm/arm.c (emit_unlikely_jump): Likewise.
15870 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
15871 (ix86_split_fp_branch, predict_jump): Likewise.
15872 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
15873 * config/sh/sh.c (expand_cbranchsi4): Likewise.
15874 * config/spu/spu.c (ea_load_store_inline): Likewise.
15876 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
15877 value of a REG_BR_PROB note.
15878 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
15879 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
15880 * emit-rtl.c (try_split): Likewise.
15881 * predict.c (br_prob_note_reliable_p): Likewise.
15882 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
15883 * reorg.c (mostly_true_jump): Likewise.
15884 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
15885 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
15886 * config/i386/i386.c (ix86_print_operand): Likewise.
15887 * config/ia64/ia64.c (ia64_print_operand): Likewise.
15888 * config/mmix/mmix.c (mmix_print_operand): Likewise.
15889 * config/rs6000/rs6000.c (output_cbranch): Likewise.
15890 * config/s390/s390.c (s390_expand_tbegin): Likewise.
15891 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
15892 * config/sparc/sparc.c (output_cbranch): Likewise.
15893 * config/spu/spu.c (get_branch_target): Likewise.
15894 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
15895 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
15897 2013-09-23 Jan Hubicka <jh@suse.cz>
15899 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
15901 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
15902 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
15904 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
15905 (gimple_fold_call): Dump inconsistent devirtualizations; add
15906 sanity check for type based devirtualizations.
15907 * ipa-prop.c: Include ipa-utils.h
15908 (ipa_intraprocedural_devirtualization): Add sanity check.
15909 (try_make_edge_direct_virtual_call): Likewise.
15911 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
15913 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
15914 assignment statements.
15916 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15918 * gimple-pretty-print.c (dump_ssaname_info): New function.
15919 (dump_gimple_phi): Call it.
15920 (pp_gimple_stmt_1): Likewise.
15921 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
15922 (range_info_def): Declare.
15923 * tree-pretty-print.c (pp_double_int): New function.
15924 (dump_generic_node): Call it.
15925 * tree-pretty-print.h (pp_double_int): Declare.
15926 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
15927 * tree-ssanames.h (range_info_def): New structure.
15928 (value_range_type): Move definition here.
15929 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
15931 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
15933 (set_range_info): New function.
15934 (get_range_info): Likewise.
15935 (duplicate_ssa_name_range_info): Likewise.
15936 (duplicate_ssa_name_fn): Check pointer type and call
15937 duplicate_ssa_name_range_info.
15938 * tree-ssa-copy.c (fini_copy_prop): Likewise.
15939 * tree-vrp.c (value_range_type): Remove definition, now in
15941 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
15942 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
15943 (SSA_NAME_RANGE_INFO): New macro.
15945 2013-09-23 Richard Biener <rguenther@suse.de>
15947 PR tree-optimization/58464
15948 * tree-ssa-pre.c (phi_trans_lookup): Remove.
15949 (phi_trans_add): Change to add conditionally on being not present.
15950 (phi_translate_1): Remove recursion detection here.
15951 (phi_translate): Pre-seed the cache with NULL to catch
15952 recursion here in a more generic way.
15953 (bitmap_find_leader): Adjust comment.
15954 (get_representative_for): Dump value-numbers.
15955 (create_expression_by_pieces): Likewise.
15956 (insert_into_preds_of_block): Likewise.
15958 2013-09-23 Christian Bruel <christian.bruel@st.com>
15961 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
15962 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
15964 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
15967 2013-09-20 Renlin Li <renlin.li@arm.com>
15969 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15971 (aarch64_expand_epilogue): Likewise.
15972 (aarch64_legitimize_reload_address): Likewise.
15974 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
15976 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
15977 NULL_TREE before pushing them onto the vector. Likewise for labels.
15979 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
15981 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
15982 comparison operators when -fno-trapping-math is in effect.
15983 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
15984 comparison operators in TFmode and assert that unsupported operators
15986 (ia64_print_operand): Likewise.
15988 2013-09-21 Jan Hubicka <jh@suse.cz>
15990 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
15991 (sse_typeless_stores): Enable for core
15992 (sse_load0_by_pxor): Likewise.
15993 (four_jump_limit): Disable for core.
15994 (pad_returns): Likewise.
15995 (avoid_vector_decode): Likewise.
15996 (fuse_cmp_and_branch): Enable for cores.
15997 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
15999 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16001 PR middle-end/56791
16002 * config/pa/pa.c (pa_option_override): Disable auto increment and
16003 decrement instructions until reload is completed.
16005 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16006 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16007 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16009 2013-09-20 DJ Delorie <dj@redhat.com>
16010 Nick Clifton <nickc@redhat.com>
16012 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16013 (need_to_save): Save bank 0 on interrupts.
16014 (characterize_address): Strip far address wrappers.
16015 (rl78_as_legitimate_address): Likewise.
16016 (transcode_memory_rtx): Likewise.
16017 (rl78_peep_movhi_p): Disable this peephole after devirt.
16018 (rl78_propogate_register_origins): Forget all origins when a
16020 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16021 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
16023 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
16024 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
16025 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
16027 * config/rl78/constraints.md: Various whitespace and paren tweaks.
16029 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16031 * config/pa/pa.md: In "scc" insn patterns, change output template to
16032 handle const0_rtx in reg_or_0_operand operands.
16034 2013-09-20 Martin Husemann <martin@NetBSD.org>
16037 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
16038 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
16040 2013-09-20 Richard Biener <rguenther@suse.de>
16042 PR middle-end/58484
16043 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
16044 remembering SSA name version and block index.
16045 (new_scev_info_str): Adjust.
16046 (hash_scev_info): Likewise. Also hash the block index.
16047 (eq_scev_info): Adjust.
16048 (find_var_scev_info): Likewise.
16049 (struct instantiate_cache_entry): Remove.
16050 (struct instantiate_cache_type): Use a htab to map name, block
16052 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16053 (get_instantiated_value_entry): Likewise.
16054 (hash_idx_scev_info, eq_idx_scev_info): New functions.
16055 (instantiate_scev_name): Adjust.
16057 2013-09-20 Jeff Law <law@redhat.com>
16059 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
16061 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
16063 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
16064 Call aarch64_simd_expand_args to update op[argc].
16066 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16068 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
16071 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
16073 * gengtype.c (file_rules): Added rule for *.cc files.
16074 (get_output_file_with_visibility): Give fatal message when no
16077 2013-09-20 Renlin Li <renlin.li@arm.com>
16079 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
16080 (aarch64_expand_epilogue): Likewise.
16081 (aarch64_legitimize_reload_address): Likewise.
16083 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16085 PR middle-end/57748
16086 * expr.c (expand_assignment): Remove misalignp code path.
16088 2013-09-20 Marek Polacek <polacek@redhat.com>
16091 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
16092 TYPE_PRECISION. Add asserts.
16094 2013-09-20 Richard Biener <rguenther@suse.de>
16096 PR tree-optimization/58453
16097 * tree-loop-distribution.c (distribute_loop): Apply the cost
16098 model for -ftree-loop-distribute-patterns, too.
16100 2013-09-20 Richard Biener <rguenther@suse.de>
16102 PR middle-end/58473
16103 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
16104 make type comparison less strict.
16106 2013-09-20 Alan Modra <amodra@gmail.com>
16108 * configure: Regenerate.
16109 * aclocal.m4: Regenerate.
16111 2013-09-20 Marek Polacek <polacek@redhat.com>
16114 * doc/extend.texi: Document that attribute used is meant to be used
16115 on variables with static storage duration.
16117 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16119 PR tree-optimization/58472
16120 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
16121 simd_lane_access set inv_p = false.
16122 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
16123 the simduid magic VAR_DECL.
16125 2013-09-19 Jan Hubicka <jh@suse.cz>
16127 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
16129 2013-09-17 Jeff Law <law@redhat.com>
16131 * tree-ssa-dom.c (record_temporary_equivalences): New function
16132 split out of dom_opt_dom_walker::after_dom_children.
16133 (dom_opt_dom_walker::thread_across_edge): Move common code
16134 in here from dom_opt_dom_walker::after_dom_children.
16135 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
16137 2013-09-19 Jan Hubicka <jh@suse.cz>
16139 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
16140 (TARGET_GENERIC): Use PROCESOR_GENERIC
16141 (enum processor_type): Unify generic32 and 64.
16142 * i386.md (cpu): Likewise.
16143 * x86-tune.def (use_leave): Enable for generic32.
16144 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
16145 * athlon.md: Change generic64 to generic in all occurences.
16146 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
16147 (ix86_target_macros_internal): Likewise.
16148 * driver-i386.c (host_detect_local_cpu): Likewise.
16149 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
16151 (generic_memcpy, generic_memset, generic_cost): This one.
16152 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
16153 (m_GENERIC32, m_GENERIC64): Remove.
16154 (m_GENERIC): Turn into one flag.
16155 (processor_target): Unify generic tunnings.
16156 (ix86_option_override_internal): Replace generic32/64 by generic.
16157 (ix86_issue_rate): Likewise.
16158 (ix86_adjust_cost): Likewise.
16160 2013-09-19 Jan Hubicka <jh@suse.cz>
16162 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
16163 of speculative flag.
16165 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16167 * omp-low.c (expand_omp_sections): Always pass len - 1 to
16168 GOMP_sections_start, even if !exit_reachable.
16170 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16172 * lra-constraints.c (need_for_all_save_p): Use macro
16173 HARD_REGNO_CALL_PART_CLOBBERED.
16174 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
16175 set up pseudo conflict hard regs.
16177 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16180 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
16183 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
16185 PR rtl-optimization/58438
16186 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
16187 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
16188 from previous subpasses.
16190 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
16192 * arm.c (arm_get_frame_offsets): Validate architecture supports
16193 LDRD/STRD before accepting the tuning preference.
16194 (arm_expand_prologue): Likewise.
16195 (arm_expand_epilogue): Likewise.
16197 2013-09-18 Richard Biener <rguenther@suse.de>
16199 PR tree-optimization/58417
16200 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
16201 have chrecs with symbols defined in the loop as operands.
16202 (chrec_fold_multiply): Likewise.
16203 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
16204 parameters before folding binary operations.
16205 (struct instantiate_cache_entry_hasher): Remove.
16206 (struct instantiate_cache_type): Use a pointer-map.
16207 (instantiate_cache_type::instantiate_cache_type): New function.
16208 (instantiate_cache_type::get): Likewise.
16209 (instantiate_cache_type::set): Likewise.
16210 (instantiate_cache_type::~instantiate_cache_type): Adjust.
16211 (get_instantiated_value_entry): Likewise.
16212 (global_cache): New global.
16213 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16214 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16215 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16216 (instantiate_scev_name): Adjust.
16217 (instantiate_scev): Construct global instead of local cache.
16218 (resolve_mixers): Likewise.
16220 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16221 Paolo Carlini <paolo.carlini@oracle.com>
16224 * doc/implement-cxx.texi: Fix references to the C++ standards.
16226 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16228 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16229 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16230 simd_lane_access drs, update also DR_ALIGNED_TO.
16232 2013-09-18 Marek Polacek <polacek@redhat.com>
16235 * doc/extend.texi: Document no_sanitize_undefined attribute.
16236 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16237 no_sanitize_undefined attribute.
16239 2013-09-18 Nick Clifton <nickc@redhat.com>
16241 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16242 (ASM_DECLARE_FUNCTION_NAME): Define.
16244 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16246 * compare-elim.c (find_comparison_dom_walker): New class
16247 (find_comparisons_in_bb): Rename to
16248 find_comparison_dom_walker::before_dom_children
16249 (find_comparisons): Adjust
16250 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16252 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16253 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16254 (init_walk_dominator_tree): Remove declaration.
16255 (fini_walk_dominator_tree): Remove declaration.
16256 * fwprop.c (single_def_use_dom_walker): New class
16257 (single_def_use_enter_block): Convert to
16258 single_def_use_dom_walker::before_dom_children.
16259 (single_def_use_leave_block): Convert to
16260 single_def_use_dom_walker::after_dom_children.
16261 (build_single_def_use_links): Adjust.
16262 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16264 (find_candidates_in_block): Convert to
16265 find_candidates_dom_walker::before_dom_children.
16266 (execute_strength_reduction): Adjust.
16267 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16268 (sese_dom_walker): New class.
16269 (sese_dom_walker::sese_dom_walker): New constructor.
16270 (sese_dom_walker::~sese_dom_walker): New destructor.
16271 (build_sese_conditions_before): Convert to
16272 sese_dom_walker::before_dom_children.
16273 (build_sese_conditions_after): Convert to
16274 sese_dom_walker::after_dom_children.
16275 (build_poly_scop): Adjust
16276 * tree-into-ssa.c (rewrite_dom_walker): New class
16277 (rewrite_enter_block): Convert to
16278 rewrite_dom_walker::before_dom_children.
16279 (rewrite_leave_block): Convert to
16280 rewrite_dom_walker::after_dom_children.
16281 (rewrite_update_dom_walker): New class.
16282 (rewrite_update_enter_block): Convert to
16283 rewrite_update_dom_walker::before_dom_children.
16284 (rewrite_update_leave_block): Convert to
16285 rewrite_update_dom_walker::after_dom_children.
16286 (rewrite_blocks, rewrite_into_ssa): Adjust.
16287 (mark_def_dom_walker): New class.
16288 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
16289 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
16290 (mark_def_sites_blocks): Convert to
16291 mark_def_dom_walker::before_dom_children.
16292 (mark_def_site_blocks): Remove.
16293 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
16294 (tree_ssa_dominator_optimize): Adjust.
16295 (dom_thread_across_edge): Convert to method
16296 dom_opt_dom_walker::thread_across_edge.
16297 (dom_opt_enter_block): Convert to member function
16298 dom_opt_dom_walker::before_dom_children.
16299 (dom_opt_leave_block): Convert to member function
16300 dom_opt_dom_walker::after_dom_children.
16301 * tree-ssa-dse.c (dse_dom_walker): New class.
16302 (dse_enter_block): Convert to member function
16303 dse_dom_walker::before_dom_children.
16304 (tree_ssa_dse): Adjust.
16305 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
16306 (determine_invariantness_stmt): Convert to method
16307 invariantness_dom_walker::before_dom_children.
16308 (determine_invariantness): Remove
16309 (move_computations_dom_walker): New class.
16310 (move_computations_stmt): Convert to method
16311 move_computations_dom_walker::before_dom_children.
16312 (move_computations, tree_ssa_lim): Adjust.
16313 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
16314 (nt_init_block): Convert to method
16315 notrappping_dom_walker::before_dom_children.
16316 (nt_fini_block): Convert to method
16317 method nontrapping_dom_walker::after_dom_children.
16318 (get_non_trapping): Adjust.
16319 * tree-ssa-pre.c (eliminate_dom_walker): New class.
16320 (eliminate_bb): Convert to method
16321 eliminate_dom_walker::before_dom_children.
16322 (eliminate_leave_block): Convert to method
16323 eliminate_dom_walker::after_dom_children.
16324 (eliminate): Adjust.
16325 * tree-ssa-strlen.c (strlen_dom_walker): New class.
16326 (strlen_enter_block): Convert to method
16327 strlen_dom_walker::before_dom_children.
16328 (strlen_leave_block): Convert to method
16329 method strlen_dom_walker::after_dom_children.
16330 (tree_ssa_strlen): Adjust.
16331 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
16332 (tree_ssa_uncprop): Adjust.
16333 (uncprop_leave_block): Convert to method
16334 uncprop_dom_walker::after_dom_children.
16335 (uncprop_leave_block): Convert to method
16336 uncprop_dom_walker::before_dom_children.
16338 2013-09-18 Bin Cheng <bin.cheng@arm.com>
16340 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
16341 branch in same basic block. Check both src and dest of the move insn.
16343 2013-09-17 Nick Clifton <nickc@redhat.com>
16345 * config/rl78/rl78-real.md (bf): New pattern.
16347 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
16348 (rl78_print_operand): Do not put a # before a %B.
16349 * config/rl78/rl78.opt: Tweak doc strings.
16351 2013-09-17 DJ Delorie <dj@redhat.com>
16353 * config/rl78/constraints.md (Wcv): Allow up to $r31.
16354 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
16355 (rl78_option_override): Likewise, if -mallregs.
16356 (is_virtual_register): Likewise.
16357 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
16358 (REGNO_OK_FOR_BASE_P): Likewise.
16359 * config/rl78/rl78.opt (-mallregs): New.
16361 2013-09-17 Nick Clifton <nickc@redhat.com>
16363 * config/rl78/rl78.c (need_to_save): Change return type to bool.
16364 For interrupt functions: save all call clobbered registers if the
16365 interrupt handler is not a leaf function.
16366 (rl78_expand_prologue): Always recompute the frame information.
16367 For interrupt functions: only select bank 0 if one of the bank 0
16368 registers is going to be psuhed.
16370 2013-09-17 DJ Delorie <dj@redhat.com>
16372 * config/rl78/constraints.md: For each W* constraint, rename to C*
16373 and create a W* constraint that checks for an optional ES: prefix
16375 * config/rl78/rl78.md (UNS_ES_ADDR): New.
16376 (es_addr): New. Used to wrap far addresses.
16377 * config/rl78/rl78-protos.h (rl78_es_addr): New.
16378 (rl78_es_base): New.
16379 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
16380 wrapped far addresses.
16381 (rl78_print_operand_1): Unwrap far addresses before processing.
16382 (rl78_lo16): Wrap far addresses in unspecs.
16383 (rl78_es_addr): New.
16384 (rl78_es_base): New.
16385 (insn_ok_now): Check for not-yet-wrapped far addresses.
16386 (transcode_memory_rtx): Properly re-wrap far addresses.
16388 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
16390 * config/sparc/t-rtems: Add leon3 multilibs.
16392 2013-09-17 Cong Hou <congh@google.com>
16394 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
16395 when checking the dot production pattern. The type of rhs operand
16396 of multiply is now checked correctly.
16398 2013-09-17 Jeff Law <law@redhat.com>
16400 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16401 edge implied equivalences into successor phis.
16402 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
16403 here from tree-ssa-threadedge.c.
16404 (mark_threaded_blocks): When threading through a joiner, if both
16405 successors of the joiner's clone reach the same block, verify the
16406 PHI arguments are equal. If not, cancel the jump threading request.
16407 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
16408 tree-ssa-threadupdate.c
16409 (thread_across_edge): Don't check PHI argument equality when
16410 threading through joiner block here.
16412 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
16414 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
16415 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
16416 (warn_uninit, warn_uninitialized_vars,
16417 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16418 Move to tree-ssa-uninit.c.
16419 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
16420 (has_undefined_value_p): New. Pass dependant parts of
16421 ssa_undefined_value_p.
16422 (uninit_undefined_value_p): Use has_undefined_value_p.
16423 (warn_uninit, warn_uninitialized_vars,
16424 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16425 Move from tree-ssa.c.
16426 * tree-ssa.h: Adjust prototypes.
16428 2013-09-17 Jan Hubicka <jh@suse.cz>
16430 PR middle-end/58332
16431 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
16432 * ipa-inline.c (can_inline_edge_p): Do not downgrade
16433 FUNCTION_NOT_OPTIMIZED.
16434 * ipa-inline-analysis.c (compute_inline_parameters): Function
16435 not optimized is not inlinable unless it is alwaysinline.
16436 (inline_analyze_function): Force calls in not optimized
16437 function not inlinable.
16439 2013-09-17 Jan Hubicka <jh@suse.cz>
16441 PR middle-end/58329
16442 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
16444 * ipa.c (function_and_variable_visibility): Likewise.
16445 * ipa-profile.c (ipa_profile): Likewise.
16447 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
16450 * cgraph.c (cgraph_function_body_availability): Check for ifunc
16451 attribute, and don't inline the resolver in this case.
16453 2013-09-17 Teresa Johnson <tejohnson@google.com>
16455 * coverage.c (get_coverage_counts): Add missing newline.
16457 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16459 PR tree-optimization/58088
16460 * fold-const.c (mask_with_trailing_zeros): New function.
16461 (fold_binary_loc): Make sure we don't recurse infinitely
16462 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
16463 Use mask_with_trailing_zeros where appropriate.
16465 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16467 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
16468 of 'prev' var to get better distance estimation.
16470 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
16472 * tree-inline.h (struct copy_body_data): Add transform_parameter.
16473 * tree-inline.c (is_parameter_of): New predicate.
16474 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
16475 a parameter has been remapped.
16476 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
16477 (optimize_inline_calls): Initialize transform_parameter.
16478 (copy_gimple_seq_and_replace_locals): Likewise.
16479 (tree_function_versioning): Likewise.
16480 (maybe_inline_call_in_expr): Likewise.
16482 2013-09-17 Nick Clifton <nickc@redhat.com>
16484 * config/msp430/msp430-protos.h: Add prototypes for new functions.
16485 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
16486 interrupt handlers.
16487 (is_attr_func): New function.
16488 (msp430_is_interrupt_func): New function.
16489 (is_naked_func): New function.
16490 (is_reentrant_func): New function.
16491 (is_critical_func): New function.
16492 (msp430_start_function): Add annotations for function attributes.
16493 (msp430_attr): New function.
16494 (msp430_attribute_table): New.
16495 (msp430_function_section): New function.
16496 (TARGET_ASM_FUNCTION_SECTION): Define.
16497 (msp430_builtin): New enum.
16498 (msp430_init_builtins): New function.
16499 (msp430_builtin_devl): New function.
16500 (msp430_expand_builtin): New function.
16501 (TARGET_INIT_BUILTINS): Define.
16502 (TARGET_EXPAND_BUILTINS): Define.
16503 (TARGET_BUILTIN_DECL): Define.
16504 (msp430_expand_prologue): Add support for naked, interrupt,
16505 critical and reentrant functions.
16506 (msp430_expand_epilogue): Likewise.
16507 (msp430_print_operand): Handle 'O' character.
16508 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
16510 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
16511 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
16512 (pushm): Use a 'n' rather than an 'i' constraint.
16513 (msp_return): Add generation of the interrupt return instruction.
16514 (disable_interrupts): New pattern.
16515 (enable_interrupts): New pattern.
16516 (push_intr_state): New pattern.
16517 (pop_intr_state): New pattern.
16518 (bic_SR): New pattern.
16519 (bis_SR): New pattern.
16520 * doc/extend.texi: Document MSP430 function attributes and builtin
16523 2013-09-17 Richard Biener <rguenther@suse.de>
16525 PR tree-optimization/58432
16526 * tree-loop-distribution.c (tree_loop_distribution): Also
16527 scan PHIs for outside loop uses and seed a partition from them.
16529 2013-09-17 Bin Cheng <bin.cheng@arm.com>
16531 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
16532 (restructure_reference): Call backtrace_base_for_ref.
16534 2013-09-17 Alan Modra <amodra@gmail.com>
16537 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
16540 2013-09-16 DJ Delorie <dj@redhat.com>
16542 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
16543 vregs location for RL78/G10.
16544 (rl78_expand_prologue): Avoid SEL on G10.
16545 (rl78_expand_epilogue): Likewise.
16546 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
16547 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16548 __RL78_G10__ when appropriate.
16549 (ASM_SPEC): Pass -mg10 along to the assembler.
16550 * config/rl78/rl78.md (sel_rb): Disable for G10.
16551 * config/rl78/rl78.opt: Add -mg10 option.
16552 * config/rl78/t-rl78: Add -mg10 multilib.
16554 2013-09-16 Xinliang David Li <davidxl@google.com>
16556 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
16557 * omp-low.c (omp_max_vf): Ditto.
16558 (expand_omp_simd): Ditto.
16559 * tree-vectorizer.c (vectorize_loops): Ditto.
16560 (gate_vect_slp): Ditto.
16561 (gate_increase_alignment): Ditto.
16562 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
16563 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
16564 (gate_tree_vectorize): Name change.
16565 (tree_vectorize): Ditto.
16566 (pass_vectorize::gate): Call new function.
16567 (pass_vectorize::execute): Ditto.
16568 * opts.c: O3 default setting change.
16569 (finish_options): Check new flag.
16570 * doc/invoke.texi: Document new flags.
16571 * common.opt: New flags.
16573 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
16575 * doc/tm.texi.in (Cond Exec Macros): Remove node.
16576 (Condition Code): Don't reference it.
16577 * doc/tm.texi: Regenerate.
16579 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
16581 PR middle-end/58418
16582 * lra-constraints.c (undo_optional_reloads): Consider all optional
16583 reload even if it did not get a hard reg.
16585 2013-09-16 Teresa Johnson <tejohnson@google.com>
16587 * dumpfile.c (dump_loc): Remove newline emission.
16588 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
16589 emission to dump_printf_loc calls where missing.
16590 (vect_mark_for_runtime_alias_test): Ditto.
16591 (vect_analyze_data_ref_dependence): Ditto.
16592 (vect_analyze_data_ref_dependences): Ditto.
16593 (vect_slp_analyze_data_ref_dependence): Ditto.
16594 (vect_slp_analyze_data_ref_dependences): Ditto.
16595 (vect_compute_data_ref_alignment): Ditto.
16596 (vect_update_misalignment_for_peel): Ditto.
16597 (vect_verify_datarefs_alignment): Ditto.
16598 (vector_alignment_reachable_p): Ditto.
16599 (vect_get_data_access_cost): Ditto.
16600 (vect_enhance_data_refs_alignment): Ditto.
16601 (vect_find_same_alignment_drs): Ditto.
16602 (vect_analyze_data_refs_alignment): Ditto.
16603 (vect_analyze_group_access): Ditto.
16604 (vect_analyze_data_ref_access): Ditto.
16605 (vect_analyze_data_ref_accesses): Ditto.
16606 (vect_prune_runtime_alias_test_list): Ditto.
16607 (vect_analyze_data_refs): Ditto.
16608 (vect_create_addr_base_for_vector_ref): Ditto.
16609 (vect_create_data_ref_ptr): Ditto.
16610 (vect_grouped_store_supported): Ditto.
16611 (vect_grouped_load_supported): Ditto.
16612 * value-prof.c (check_counter): Ditto.
16613 (check_ic_target): Ditto.
16614 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
16615 (vect_recog_widen_mult_pattern): Ditto.
16616 (vect_recog_widen_sum_pattern): Ditto.
16617 (vect_recog_over_widening_pattern): Ditto.
16618 (vect_recog_widen_shift_pattern): Ditto.
16619 (vect_recog_rotate_pattern): Ditto.
16620 (vect_recog_vector_vector_shift_pattern): Ditto.
16621 (vect_recog_divmod_pattern): Ditto.
16622 (vect_recog_mixed_size_cond_pattern): Ditto.
16623 (vect_recog_bool_pattern): Ditto.
16624 (vect_pattern_recog_1): Ditto.
16625 (vect_pattern_recog): Ditto.
16626 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
16627 (vect_is_simple_iv_evolution): Ditto.
16628 (vect_analyze_scalar_cycles_1): Ditto.
16629 (vect_get_loop_niters): Ditto.
16630 (vect_analyze_loop_1): Ditto.
16631 (vect_analyze_loop_form): Ditto.
16632 (vect_analyze_loop_operations): Ditto.
16633 (vect_analyze_loop_2): Ditto.
16634 (vect_analyze_loop): Ditto.
16635 (report_vect_op): Ditto.
16636 (vect_is_slp_reduction): Ditto.
16637 (vect_is_simple_reduction_1): Ditto.
16638 (vect_get_known_peeling_cost): Ditto.
16639 (vect_estimate_min_profitable_iters): Ditto.
16640 (vect_model_reduction_cost): Ditto.
16641 (vect_model_induction_cost): Ditto.
16642 (get_initial_def_for_induction): Ditto.
16643 (vect_create_epilog_for_reduction): Ditto.
16644 (vectorizable_reduction): Ditto.
16645 (vectorizable_induction): Ditto.
16646 (vectorizable_live_operation): Ditto.
16647 (vect_loop_kill_debug_uses): Ditto.
16648 (vect_transform_loop): Ditto.
16649 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
16650 (vect_stmt_relevant_p): Ditto.
16651 (process_use): Ditto.
16652 (vect_mark_stmts_to_be_vectorized): Ditto.
16653 (vect_model_simple_cost): Ditto.
16654 (vect_model_promotion_demotion_cost): Ditto.
16655 (vect_model_store_cost): Ditto.
16656 (vect_get_store_cost): Ditto.
16657 (vect_model_load_cost): Ditto.
16658 (vect_get_load_cost): Ditto.
16659 (vect_init_vector_1): Ditto.
16660 (vect_get_vec_def_for_operand): Ditto.
16661 (vect_finish_stmt_generation): Ditto.
16662 (vectorizable_call): Ditto.
16663 (vectorizable_conversion): Ditto.
16664 (vectorizable_assignment): Ditto.
16665 (vectorizable_shift): Ditto.
16666 (vectorizable_operation): Ditto.
16667 (vectorizable_store): Ditto.
16668 (vectorizable_load): Ditto.
16669 (vectorizable_condition): Ditto.
16670 (vect_analyze_stmt): Ditto.
16671 (vect_transform_stmt): Ditto.
16672 (vect_is_simple_use): Ditto.
16673 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
16674 (vect_can_advance_ivs_p): Ditto.
16675 (vect_update_ivs_after_vectorizer): Ditto.
16676 (vect_do_peeling_for_loop_bound): Ditto.
16677 (vect_gen_niters_for_prolog_loop): Ditto.
16678 (vect_update_inits_of_drs): Ditto.
16679 (vect_create_cond_for_alias_checks): Ditto.
16680 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
16681 (vect_build_slp_tree_1): Ditto.
16682 (vect_supported_load_permutation_p): Ditto.
16683 (vect_analyze_slp_instance): Ditto.
16684 (vect_analyze_slp): Ditto.
16685 (vect_make_slp_decision): Ditto.
16686 (vect_detect_hybrid_slp): Ditto.
16687 (vect_bb_vectorization_profitable_p): Ditto.
16688 (vect_slp_analyze_bb_1): Ditto.
16689 (vect_update_slp_costs_according_to_vf): Ditto.
16690 (vect_get_mask_element): Ditto.
16691 (vect_transform_slp_perm_load): Ditto.
16692 (vect_schedule_slp_instance): Ditto.
16693 (vect_schedule_slp): Ditto.
16694 (vect_slp_transform_bb): Ditto.
16695 * profile.c (read_profile_edge_counts): Ditto.
16696 (compute_branch_probabilities): Ditto.
16697 * coverage.c (get_coverage_counts): Ditto.
16699 2013-09-16 Diego Novillo <dnovillo@google.com>
16701 * tree-core.h: Add missing comment lines from refactoring of tree.h.
16703 2013-09-16 Jan Hubicka <jh@suse.cz>
16705 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
16706 abstract functions; for static functions check the presence of body.
16708 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16710 * config/aarch64/aarch64-simd-builtins.def (fma): New.
16711 * config/aarch64/aarch64-simd.md
16712 (aarch64_mla_elt<mode>): New.
16713 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
16714 (aarch64_mls_elt<mode>): Likewise.
16715 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
16716 (aarch64_fma4_elt<mode>): Likewise.
16717 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
16718 (aarch64_fma4_elt_to_128v2df): Likewise.
16719 (aarch64_fma4_elt_to_64df): Likewise.
16720 (fnma<mode>4): Likewise.
16721 (aarch64_fnma4_elt<mode>): Likewise.
16722 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
16723 (aarch64_fnma4_elt_to_128v2df): Likewise.
16724 (aarch64_fnma4_elt_to_64df): Likewise.
16725 * config/aarch64/iterators.md (VDQSF): New.
16726 * config/aarch64/arm_neon.h
16727 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
16728 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
16730 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16732 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
16733 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
16734 (aarch64_mul3_elt_to_128df): Likewise.
16735 (aarch64_mul3_elt_to_64v2df): Likewise.
16736 * config/aarch64/iterators.md (VEL): Also handle DFmode.
16738 (VMUL_CHANGE_NLANES) Likewise.
16741 * config/aarch64/arm_neon.h
16742 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
16744 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16746 * config/aarch64/arm_neon.h
16747 (vcvtx_high_f32_f64): Fix parameters.
16749 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16750 Uros Bizjak <ubizjak@gmail.com>
16752 * config/alpha.c: Include tree-ssanames.h.
16754 2013-09-16 Richard Biener <rguenther@suse.de>
16756 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
16757 (dot_rdg_1): Handle control_dd.
16758 (create_edge_for_control_dependence): New function.
16759 (create_rdg_edges): Add control dependences if asked for.
16760 (build_rdg): Likewise.
16761 (generate_loops_for_partition): If there are not necessary
16762 control stmts remove all their dependencies.
16763 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
16764 (distribute_loop): Pass on control dependences.
16765 (tree_loop_distribution): Compute control dependences and remove
16766 restriction on number of loop nodes.
16768 2013-09-16 Jakub Jelinek <jakub@redhat.com>
16770 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
16771 for internal calls.
16773 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
16775 * cse.c (try_const_anchors): Punt on CC modes.
16777 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16779 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
16781 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
16784 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
16785 calls to word_mode.
16787 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16790 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
16792 (darwin_objc1_section): Likewise.
16793 (darwin_file_end): Emit Image Info section when required.
16795 2013-09-14 Jan Hubicka <jh@suse.cz>
16797 * tree-into-ssa.c (gate_into_ssa): New.
16798 (pass_data_build_ssa): Use it.
16799 * cgraph.h (expand_thunk): Update prototype.
16800 * cgraphunit.c (analyze_function): Expand thunks early.
16801 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
16802 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
16803 set lowered flag; do not add new function.
16804 (assemble_thunks_and_aliases): Update.
16805 * tree-ssa.c (gate_init_datastructures): New gate.
16806 (pass_data_init_datastructures): Use it.
16808 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16811 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
16812 xmm register set described in the psABI.
16814 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
16816 * dwarf2out.c (should_emit_struct_debug): Add check
16817 for type_decl variable is not NULL.
16819 2013-09-13 Jacek Caban <jacek@codeweavers.com>
16821 * config.gcc: Use new winnt-c.c target hooks
16822 * config/t-winnt: New file
16823 * config/winnt-c.c: New file
16824 * doc/tm.texi.in: Document new hook
16825 * doc/tm.texi: Regenerated
16827 2013-09-13 Jan Hubicka <jh@suse.cz>
16829 PR middle-end/58094
16830 * ipa-inline.c (check_callers): New function.
16831 (check_caller_edge): Remove.
16832 (want_inline_function_to_all_callers_p): Also permit alises that are
16834 (inline_to_all_callers): Terminate the walk when devirtualization
16835 introduce new calls.
16837 2013-09-13 Jan Hubicka <jh@suse.cz>
16839 * ipa-inline-analysis.c (struct growth_data): Add node.
16840 (do_estimate_growth_1): Fix detection of recursion.
16842 2013-09-13 Jakub Jelinek <jakub@redhat.com>
16844 PR tree-optimization/58392
16845 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
16846 to avoid shadowing of outer loop variable. If
16847 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
16848 replace_by_duplicate_decl simduid of loops that have it set and
16849 set dest_cfun->has_simduid_loops and/or
16850 dest_cfun->has_force_vect_loops.
16851 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
16852 instead of maybe_lookup_decl.
16853 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
16854 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
16855 call. Copy over force_vect and copy and remap simduid. Set
16856 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
16857 (copy_cfg_body): Remove blocks_to_copy argument. Use
16858 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
16859 caller. Don't set cfun->has_simduid_loops and/or
16860 cfun->has_force_vect_loops here.
16861 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
16863 (expand_call_inline, tree_function_versioning): Adjust copy_body
16866 2013-09-13 Martin Jambor <mjambor@suse.cz>
16869 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
16870 the assert if the edge was a speculative one.
16872 2013-09-13 Richard Biener <rguenther@suse.de>
16874 * tree-data-ref.h (known_dependences_p): Move here ...
16875 * tree-loop-distribution.c (known_dependences_p): ... from here.
16876 (dump_rdg_component, debug_rdg_component): Remove.
16877 (dump_rdg): Adjust.
16878 (generate_loops_for_partition): Use gimple_uid instead of
16879 relying on matching stmt visit order.
16880 (rdg_build_partitions): Take starting stmt vector.
16881 (ldist_gen): Merge into ...
16882 (distribute_loop): ... this function. Do not compute starting
16884 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
16886 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16888 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
16889 Set type attribute correctly. Set predicable_short_it attribute.
16890 (cmpsi_shiftsi): Remove %? from output template.
16892 2013-09-13 Richard Biener <rguenther@suse.de>
16894 * tree-loop-distribution.c (struct rdg_component,
16895 rdg_defs_used_in_other_loops_p, free_rdg_components,
16896 rdg_build_components): Remove.
16897 (stmts_from_loop): Do not record virtual PHIs.
16898 (generate_loops_for_partition): Skip virtual PHIs.
16899 (build_rdg_partition_for_component): Rename to ...
16900 (build_rdg_partition_for_vertex): ... this and adjust.
16901 (rdg_build_partitions): Take a vector of starting vertices
16902 instead of components. Remove unnecessary leftover handling.
16903 (ldist_gen): Do not build components or record other stores.
16904 (distribute_loop): Do not distribute loops containing stmts
16907 2013-09-13 Christian Bruel <christian.bruel@st.com>
16910 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
16912 2013-09-13 Kai Tietz <ktietz@redhat.com>
16914 * config.gcc: Separate cases for mingw and cygwin targets,
16915 and add 64-bit cygwin target case.
16917 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
16918 dll-export inline-functions.
16919 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
16921 2013-09-13 Jeff Law <law@redhat.com>
16923 PR middle-end/58387
16925 2013-09-06 Jeff Law <law@redhat.com>
16927 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16928 edge implied equivalences into successor phis.
16930 2013-09-12 DJ Delorie <dj@redhat.com>
16932 * config/rl78/rl78-virt.md: Change from | to \; for asm line
16935 2013-09-12 Brooks Moses <bmoses@google.com>
16938 * Makefile.in: Do not install driver binaries in $(target)/bin.
16940 2013-09-12 DJ Delorie <dj@redhat.com>
16942 * config/rl78/rl78.opt (mrelax): New.
16943 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
16944 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
16946 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
16948 (rl78_expand_epilogue): Likewise.
16950 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
16952 PR middle-end/58335
16953 * lra-eliminations.c (remove_reg_equal_offset_note): New.
16954 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
16955 pointer elimination with using remove_reg_equal_offset_note.
16957 2013-09-12 DJ Delorie <dj@redhat.com>
16959 * config/msp430/: New port.
16960 * config.gcc (msp430): Added.
16961 * doc/invoke.texi: Document MSP430 options.
16962 * doc/install.texi: Document msp430-elf
16963 * doc/md.texi: Document msp430-elf
16964 * doc/contrib.texi: Document msp430-elf
16966 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
16969 2013-09-12 Martin Jambor <mjambor@suse.cz>
16972 * ipa-prop.c (remove_described_reference): Give up if the edge in the
16973 reference descriptor is NULL.
16974 (ipa_edge_removal_hook): If owning a reference descriptor, set its
16977 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
16979 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
16980 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
16981 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
16982 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
16983 make_temp_ssa_name): move to tree-ssanames.h
16984 * tree-ssa-alias.h: Move prototype.
16985 * tree-ssa.h: Include tree-ssanames.h.
16986 * tree-ssanames.c (FREE_SSANAMES): Move to here.
16987 * tree-ssanames.h: New. Move items from tree-flow*.h
16988 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
16990 2013-09-12 Richard Biener <rguenther@suse.de>
16992 PR tree-optimization/58404
16993 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16994 propagate non-invariant addresses into dereferences wrapped
16995 in component references.
16997 2013-09-12 Richard Biener <rguenther@suse.de>
16999 PR tree-optimization/58402
17000 * passes.def: Move pass_late_warn_uninitialized later.
17002 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17004 * tree-ssa.h: New. Move content from tree-flow.h and
17005 tree-flow-inline.h.
17006 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17007 Move prototypes belonging to tree-ssa.c.
17008 * tree-flow-inline.h (redirect_edge_var_map_def,
17009 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17011 * gimple.h: Adjust prototypes.
17012 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17014 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17015 * tree.h: Move prototype to tree-ssa.h.
17016 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17017 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17018 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17019 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17020 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17021 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
17022 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17023 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
17024 graphite-blocking.c, graphite-clast-to-gimple.c,
17025 graphite-dependences.c, graphite-interchange.c,
17026 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
17027 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
17028 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
17029 ipa-reference.c, ipa-split.c, ipa-utils.c,
17030 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
17031 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
17032 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
17033 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17034 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
17035 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
17036 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
17037 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
17038 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
17039 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
17040 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
17041 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17042 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17043 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
17044 value-prof.c, var-tracking.c,
17045 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
17047 2013-09-12 Richard Biener <rguenther@suse.de>
17049 PR tree-optimization/58396
17050 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
17051 (build_rdg): Take a loop-nest parameter, fix memleaks.
17052 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
17054 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
17056 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
17059 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
17061 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
17062 The FMA instruction names should have a 'v' prefix.
17064 2013-09-12 Richard Biener <rguenther@suse.de>
17066 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
17067 (dot_rdg): Use popen instead of system in optional code.
17068 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
17069 (already_processed_vertex_p): Adjust.
17070 (has_anti_or_output_dependence, predecessor_has_mem_write,
17071 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
17072 rdg_flag_uses): Remove.
17073 (rdg_flag_vertex): Simplify.
17074 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
17076 (build_rdg_partition_for_component): Process the first vertex
17077 of a component only.
17078 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
17080 2013-09-12 Alan Modra <amodra@gmail.com>
17082 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
17084 2013-09-11 DJ Delorie <dj@redhat.com>
17085 Nick Clifton <nickc@redhat.com>
17087 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
17088 (rl78_stack_based_mem): New.
17089 * config/rl78/constraints.md (Iv08): New.
17098 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
17100 (movsi): Change from expand to insn-and-split.
17101 (ashrsi3): Clobber AX.
17105 * config/rl78/rl78.md (CC_REG): Fix.
17106 (addsi3): Allow memory and immediate operands.
17107 (addsi3_internal): Split into...
17108 (addsi3_internal_virt): ...new, and ...
17109 (addsi3_internal_real): ...new.
17111 (subsi3_internal_virt): New.
17112 (subsi3_internal_real): New.
17113 (mulsi3): Add memory operand.
17114 (mulsi3_rl78): Likewise.
17115 (mulsi3_g13): Likewise.
17116 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
17117 (cbranchqi4_real): Add more constraint options.
17118 (cbranchhi4_real): Expand pattern.
17119 (cbranchhi4_real_signed): New.
17120 (cbranchhi4_real_inverted): New.
17121 (cbranchsi4_real_lt): New.
17122 (cbranchsi4_real_ge): New.
17123 (cbranchsi4_real_signed): New.
17124 (cbranchsi4_real): New.
17126 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
17128 (lshrsi3_virt): Likewise.
17129 (ashlsi3_virt): Likewise.
17130 (cbranchqi4_virt_signed): New.
17131 (cbranchhi4_virt_signed): New.
17132 (cbranchsi4_virt): New.
17133 * config/rl78/rl78.c: Whitespace fixes throughout.
17134 (move_elim_pass): New.
17135 (pass_data_rl78_move_elim): New.
17136 (pass_rl78_move_elim): New.
17137 (make_pass_rl78_move_elim): New.
17138 (rl78_devirt_info): Run devirt earlier.
17139 (rl78_move_elim_info): New.
17140 (rl78_asm_file_start): Register it.
17141 (rl78_split_movsi): New.
17142 (rl78_as_legitimate_address): Allow virtual base registers when
17144 (rl78_addr_space_convert): Remove spurious debug stuff.
17145 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
17146 (rl78_print_operand): More cases for not printing '#'.
17147 (rl78_expand_compare): Remove most of the logic.
17148 (content_memory): New.
17149 (clear_content_memory): New.
17150 (get_content_index): New.
17151 (get_content_name): New.
17152 (display_content_memory): New.
17153 (update_content): New.
17154 (record_content): New.
17155 (already_contains): New.
17156 (insn_ok_now): Re-recog insns with virtual registers.
17157 (add_postponed_content_update): New.
17158 (process_postponed_content_update): New.
17159 (gen_and_emit_move): New.
17160 (transcode_memory_rtx): Record new location content.
17161 Use gen_and_emit_move.
17162 (force_into_acc): New.
17163 (move_to_acc): Use gen_and_emit_move.
17164 (move_from_acc): Likewise.
17165 (move_acc_to_reg): Likewise.
17166 (move_to_x): Likewise.
17167 (move_to_hl): Likewise.
17168 (move_to_de): Likewise.
17169 (rl78_alloc_physical_registers_op1): Record location content.
17170 (has_constraint): New.
17171 (rl78_alloc_physical_registers_op2): Record location content.
17172 Optimize use of HL.
17173 (rl78_alloc_physical_registers_ro1): Likewise.
17174 (rl78_alloc_physical_registers_cmp): Likewise.
17175 (rl78_alloc_physical_registers_umul): Likewise.
17176 (rl78_alloc_address_registers_macax): New.
17177 (rl78_alloc_physical_registers): Initialize and set location
17178 content memory as needed.
17179 (rl78_reorg): Make sure split2 is called.
17180 (rl78_rtx_costs): New.
17182 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
17184 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
17185 for (not (neg ...)) and (neg (not ...)) cases.
17187 2013-09-11 Richard Biener <rguenther@suse.de>
17189 PR middle-end/58377
17190 * passes.def: Split critical edges before late uninit warning passes.
17191 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
17193 2013-09-11 Jakub Jelinek <jakub@redhat.com>
17195 PR tree-optimization/58385
17196 * fold-const.c (build_range_check): If both low and high are NULL,
17197 use omit_one_operand_loc to preserve exp side-effects.
17199 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17201 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
17203 2013-09-11 Richard Biener <rguenther@suse.de>
17205 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
17206 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
17207 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
17208 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
17209 stmts_from_loop, known_dependences_p, build_empty_rdg,
17210 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
17211 * tree-loop-distribution.c: ... here.
17212 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17213 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17214 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17215 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17216 * tree-loop-distribution.c: ... here.
17217 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17218 (struct partition_s): Add loops member.
17219 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17220 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17221 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17223 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17225 Sergey Lega <sergey.s.lega@intel.com>
17226 Anna Tikhonova <anna.tikhonova@intel.com>
17227 Ilya Tocar <ilya.tocar@intel.com>
17228 Andrey Turetskiy <andrey.turetskiy@intel.com>
17229 Ilya Verbin <ilya.verbin@intel.com>
17230 Kirill Yukhin <kirill.yukhin@intel.com>
17231 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17233 * config/i386/constraints.md (k): New.
17235 * config/i386/i386.c (const regclass_map): Add new mask registers.
17236 (dbx_register_map): Ditto.
17237 (dbx64_register_map): Ditto.
17238 (svr4_dbx_register_map): Ditto.
17239 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17241 (ix86_preferred_reload_class): Disable constants for mask registers.
17242 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17243 (ix86_hard_regno_mode_ok): Support new mask registers.
17244 (x86_order_regs_for_local_alloc): Ditto.
17245 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17246 (FIXED_REGISTERS): Add new mask registers.
17247 (CALL_USED_REGISTERS): Ditto.
17248 (REG_ALLOC_ORDER): Ditto.
17249 (VALID_MASK_REG_MODE): New.
17250 (FIRST_MASK_REG): Ditto.
17251 (LAST_MASK_REG): Ditto.
17252 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17253 (MAYBE_MASK_CLASS_P): New.
17254 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17255 (REG_CLASS_CONTENTS): Ditto.
17256 (MASK_REGNO_P): New.
17257 (ANY_MASK_REG_P): Ditto.
17258 (HI_REGISTER_NAMES): Add new mask registers.
17259 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17260 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17262 (attribute "type"): Add mskmov, msklog.
17263 (attribute "length_immediate"): Support them.
17264 (attribute "memory"): Ditto.
17265 (attribute "prefix_0f"): Ditto.
17266 (*movhi_internal): Support new mask registers.
17267 (*movqi_internal): Ditto.
17268 (define_split): Split out clobber pattern is a logic
17269 insn on mask registers.
17270 (*k<logic><mode>): New.
17271 (*andhi_1): Extend to support mask regs.
17272 (*andqi_1): Extend to support mask regs.
17273 (kandn<mode>): New.
17274 (define_split): Split and-not to and and not if operands
17276 (*<code><mode>_1): Separate HI mode to new pattern...
17277 (*<code>hi_1): This.
17278 (*<code>qi_1): Extend to support mask regs.
17279 (kxnor<mode>): New.
17280 (kortestzhi): Ditto.
17281 (kortestchi): Ditto.
17283 (*one_cmpl<mode>2_1): Remove HImode and handle it...
17284 (*one_cmplhi2_1): ...Here, now with mask registers support.
17285 (*one_cmplqi2_1): Support new mask registers.
17286 (HI/QImode arithmetics splitter): Don't split if mask registers
17288 (HI/QImode not splitter): Ditto.
17289 * config/i386/predicated.md (mask_reg_operand): New.
17290 (general_reg_operand): Ditto.
17292 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17294 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
17295 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
17297 2013-09-10 Jeff Law <law@redhat.com>
17299 PR tree-optimization/58380
17300 * tree-ssa-threadupdate.c (thread_block): Recognize another case
17301 of threading through a buried loop header.
17303 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
17304 return value for single successor case.
17306 2013-09-10 Jan Hubicka <jh@suse.cz>
17308 * ipa-devirt.c (ipa_devirt): Enable with LTO.
17310 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
17313 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
17314 support conditional execution.
17315 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
17317 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
17319 * lra.c (lra): Clear lra_optional_reload_pseudos before every
17321 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
17322 Check destination too to check move insn.
17323 (undo_optional_reloads): Add check that the original peudo did not
17324 changed its allocation and the optional reload was inherited on last
17325 inheritance pass. Break loop after deciding to keep optional reload.
17326 (lra_undo_inheritance): Add check that inherited pseudo still in
17329 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
17331 * config/aarch64/aarch64.md (generic_sched): New.
17332 * config/aarch64/aarch64-generic.md (load): Make conditional
17333 on generic_sched attribute.
17334 (nonload): Likewise.
17336 2013-09-10 Jan Hubicka <jh@suse.cz>
17338 * lto-cgraph.c: Include ipa-utils.h.
17339 (compute_ltrans_boundary): Also add possible targets into the boundary.
17341 2013-09-10 Jan Hubicka <jh@suse.cz>
17343 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
17344 VAR_DECL of vtable rather than full expression.
17346 2013-09-10 Jan Hubicka <jh@suse.cz>
17347 Paolo Carlini <paolo.carlini@oracle.com>
17349 * cgraphunit.c (analyze_functions): Save input_location, set it
17350 to UNKNOWN_LOCATION and restore it at the end.
17352 2013-09-10 Martin Jambor <mjambor@suse.cz>
17354 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
17355 represented by a thunk.
17357 2013-09-10 Jeff Law <law@redhat.com>
17359 PR tree-optimization/58343
17360 * tree-ssa-threadupdate.c (thread_block): Identify and disable
17361 jump threading requests through loop headers buried in the middle
17362 of a jump threading path.
17364 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
17365 in return value/type.
17367 2013-09-10 Jakub Jelinek <jakub@redhat.com>
17369 PR rtl-optimization/58365
17370 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
17371 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
17374 2013-09-10 Richard Biener <rguenther@suse.de>
17376 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
17377 * tree-data-ref.c (create_rdg_vertices): Collect all data
17378 references, signal failure to the caller, use data-ref API.
17379 (build_rdg): Compute data references only once. Maintain lifetime
17380 of data references and data dependences from within RDG.
17381 (free_rdg): Free dependence relations.
17382 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
17383 inventing extra dependences.
17384 (distribute_loop): Update for RDG API changes.
17386 2013-09-10 Kai Tietz <ktietz@redhat.com>
17388 * doc/invoke.texi (fms-extensions): Document changed
17389 behavior for ms-abi targets.
17390 * config/i386/i386.c (ix86_option_override_internal):
17391 Set default value of option -fms-extension for ms-abi targets.
17393 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17395 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
17397 2013-09-10 Alan Modra <amodra@gmail.com>
17400 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
17402 2013-09-10 Alan Modra <amodra@gmail.com>
17404 * config/rs6000/predicates.md (add_cint_operand): New.
17405 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
17406 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
17407 using add_cint_operand.
17408 (largetoc_high_plus_aix): Likewise.
17410 2013-09-09 Jakub Jelinek <jakub@redhat.com>
17412 PR tree-optimization/58364
17413 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
17414 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
17415 the current range can't be an unconditional true or false.
17417 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
17419 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
17421 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
17423 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
17425 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17428 * doc/invoke.texi (-Wdelete-incomplete): Document it.
17430 2013-09-09 Ian Bolton <ian.bolton@arm.com>
17432 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
17433 NO_REGS for immediate that can't be moved directly into FP_REGS.
17435 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17437 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
17438 comparison with negated operand.
17439 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
17442 2013-09-09 Richard Biener <rguenther@suse.de>
17444 PR middle-end/58326
17445 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
17446 of a subloop record all its block as affecting loop-closed SSA form.
17448 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17450 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
17451 of an rtx/bitpos pair.
17452 (store_fixed_bit_field): Update accordingly.
17454 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17456 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
17458 * builtins.c (expand_errno_check): Likewise.
17459 * dwarf2cfi.c (init_return_column_size): Likewise.
17460 * except.c (sjlj_mark_call_sites): Likewise.
17461 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17462 * lra-constraints.c (emit_inc): Likewise.
17463 * ree.c (combine_set_extension): Likewise.
17464 * regmove.c (fixup_match_2): Likewise.
17465 * reload1.c (inc_for_reload): Likewise.
17467 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17469 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
17470 (force_to_mode, simplify_shift_const_1, simplify_comparison):
17471 Use gen_int_mode with the mode of the associated simplify_* call.
17472 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
17473 * expmed.c (expand_shift_1): Likewise.
17474 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17475 * loop-iv.c (iv_number_of_iterations): Likewise.
17476 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17477 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17479 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17481 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
17482 of the associated expand_* call.
17483 (asan_emit_stack_protection): Likewise.
17484 * builtins.c (round_trampoline_addr): Likewise.
17485 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
17486 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
17487 (emit_store_flag): Likewise.
17488 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
17489 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
17491 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17492 * ifcvt.c (noce_try_store_flag_constants): Likewise.
17493 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17494 * modulo-sched.c (generate_prolog_epilog): Likewise.
17495 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
17496 (expand_ctz, expand_ffs, expand_unop): Likewise.
17498 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17500 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
17501 of the associated gen_rtx_* call.
17502 * caller-save.c (init_caller_save): Likewise.
17503 * combine.c (find_split_point, make_extraction): Likewise.
17504 (make_compound_operation): Likewise.
17505 * dwarf2out.c (mem_loc_descriptor): Likewise.
17506 * explow.c (plus_constant, probe_stack_range): Likewise.
17507 * expmed.c (expand_mult_const): Likewise.
17508 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
17509 * reload1.c (init_reload): Likewise.
17510 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17511 * var-tracking.c (adjust_mems): Likewise.
17512 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
17513 rather than gen_rtx_fmt_ee.
17515 2013-09-09 Jan Hubicka <jh@suse.cz>
17517 PR middle-end/58294
17518 * value-prof.c (gimple_ic): Copy also abnormal edges.
17520 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17522 * asan.c (asan_shadow_cst): Use gen_int_mode.
17524 2013-09-08 Jan Hubicka <jh@suse.cz>
17526 * ipa-profile.c: Add toplevel comment.
17527 (ipa_propagate_frequency_1): Be more conservative when profile is read.
17528 (contains_hot_call_p): New function.
17529 (ipa_propagate_frequency): Set frequencies based on counts when
17531 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
17532 profile; do not tamper with profile after inlining if it is read.
17534 2013-09-08 Jan Hubicka <jh@suse.cz>
17536 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
17539 2013-09-08 Jan Hubicka <jh@suse.cz>
17541 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
17542 summary generation.
17544 2013-09-08 Jeff Law <law@redhat.com>
17547 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
17550 2013-09-08 Andi Kleen <ak@linux.intel.com>
17552 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
17554 2013-09-08 Jan Hubicka <jh@suse.cz>
17556 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
17558 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
17560 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
17561 for non-debug insns.
17562 * lra.c (new_insn_reg): Take the containing insn as a parameter.
17563 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
17564 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
17567 2013-09-08 Jan Hubicka <jh@suse.cz>
17569 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
17570 targets and devirtualize to BUILT_IN_UNREACHABLE.
17571 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
17572 * ipa.c (walk_polymorphic_call_targets): New function.
17573 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
17574 functions; use the new timevar.
17575 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
17576 was removed from the program.
17577 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
17578 not consider it in the walk when its vtable is dead.
17579 (possible_polymorphic_call_targets_1): Pass anonymous flag to
17581 (devirt_variable_node_removal_hook): New function.
17582 (possible_polymorphic_call_targets): Also register
17583 devirt_variable_node_removal_hook.
17584 (ipa_devirt): Do not do non-speculative devirtualization.
17585 (gate_ipa_devirt): One execute if devirtualizing speculatively.
17587 2013-09-08 Jan Hubicka <jh@suse.cz>
17589 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
17590 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
17591 varpool_remove_variable_insertion_hook): Declare.
17592 * varpool.c (varpool_node_hook_list): New structure.
17593 (first_varpool_node_removal_hook,
17594 first_varpool_variable_insertion_hook): New variables.
17595 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
17596 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
17597 varpool_remove_variable_insertion_hook,
17598 varpool_call_variable_insertion_hooks): New functions.
17599 (varpool_remove_node): Use it.
17601 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
17604 * diagnostic.c (diagnostic_build_prefix): When s.file is
17605 "<built-in>" don't output line and column numbers.
17607 2013-09-06 Jan Hubicka <jh@suse.cz>
17609 * cgraphunit.c (expand_thunk): Get body before touching arguments.
17610 * lto-streamer-out.c: Stream thunks, too.
17611 * lto-streamer-in.c (input_function): Pop cfun here
17612 (lto_read_body): Instead of here.
17614 2013-09-06 Caroline Tice <cmtice@google.com>
17616 * doc/install.texi: Add documentation for the --enable-vtable-verify
17617 and the --disable-libvtv configure options.
17619 2013-09-06 Jeff Law <law@redhat.com>
17621 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17622 edge implied equivalences into successor phis.
17624 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
17626 * resource.c (mark_referenced_resources): Handle COND_EXEC.
17628 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
17630 * resource.c (mark_target_live_regs): Compute resources taking
17631 into account if a call is predicated or not.
17633 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17635 * toplev.c (output_stack_usage): Be prepared for suffixes created by
17636 the compiler in the function names.
17638 2013-09-06 Jan Hubicka <jh@suse.cz>
17640 PR middle-end/58094
17641 * ipa-inline.c (has_caller_p): New function.
17642 (want_inline_function_to_all_callers_p): Use it.
17643 (sum_callers, inline_to_all_callers): Break out from ...
17644 (ipa_inline): ... here.
17646 2013-09-06 Jan Hubicka <jh@suse.cz>
17648 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
17649 only when AVX is enabled.
17651 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17653 * config/aarch64/aarch64.md
17654 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
17655 is fpsimd_<load/store>2.
17656 (load_pair<mode>): Likewise.
17657 (store_pair<mode>): Likewise.
17659 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17661 * config/arm/types.md (type): Add "mrs" type.
17662 * config/aarch64/aarch64.md
17663 (aarch64_load_tp_hard): Make type "mrs".
17664 * config/arm/arm.md
17665 (load_tp_hard): Make type "mrs".
17666 * config/arm/cortex-a15.md: Update with new attributes.
17667 * config/arm/cortex-a5.md: Update with new attributes.
17668 * config/arm/cortex-a53.md: Update with new attributes.
17669 * config/arm/cortex-a7.md: Update with new attributes.
17670 * config/arm/cortex-a8.md: Update with new attributes.
17671 * config/arm/cortex-a9.md: Update with new attributes.
17672 * config/arm/cortex-m4.md: Update with new attributes.
17673 * config/arm/cortex-r4.md: Update with new attributes.
17674 * config/arm/fa526.md: Update with new attributes.
17675 * config/arm/fa606te.md: Update with new attributes.
17676 * config/arm/fa626te.md: Update with new attributes.
17677 * config/arm/fa726te.md: Update with new attributes.
17679 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17681 * config/aarch64/aarch64.md
17682 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
17683 (*movtf_aarch64): Likewise.
17684 * config/arm/arm.md
17685 (thumb1_movdi_insn): Use "multiple" for type where more than one
17686 instruction is used for a move.
17687 (*arm32_movhf): Likewise.
17688 (*thumb_movdf_insn): Likewise.
17690 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17692 * config/arm/types.md (type): Rename fcpys to fmov.
17693 * config/arm/vfp.md
17694 (*arm_movsi_vfp): Rename type fcpys as fmov.
17695 (*thumb2_movsi_vfp): Likewise
17696 (*movhf_vfp_neon): Likewise
17697 (*movhf_vfp): Likewise
17698 (*movsf_vfp): Likewise
17699 (*thumb2_movsf_vfp): Likewise
17700 (*movsfcc_vfp): Likewise
17701 (*thumb2_movsfcc_vfp): Likewise
17702 * config/aarch64/aarch64-simd.md
17703 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
17704 * config/aarch64/aarch64.md
17705 (*movsi_aarch64): Replace type mov_reg with fmovs.
17706 (*movdi_aarch64): Likewise
17707 (*movsf_aarch64): Likewise
17708 (*movdf_aarch64): Likewise
17710 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
17711 * config/arm/iwmmxt.md
17712 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
17713 * config/arm/arm1020e.md: Update with new attributes.
17714 * config/arm/cortex-a15-neon.md: Update with new attributes.
17715 * config/arm/cortex-a5.md: Update with new attributes.
17716 * config/arm/cortex-a53.md: Update with new attributes.
17717 * config/arm/cortex-a7.md: Update with new attributes.
17718 * config/arm/cortex-a8-neon.md: Update with new attributes.
17719 * config/arm/cortex-a9.md: Update with new attributes.
17720 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17721 * config/arm/cortex-r4f.md: Update with new attributes.
17722 * config/arm/marvell-pj4.md: Update with new attributes.
17723 * config/arm/vfp11.md: Update with new attributes.
17725 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17727 * config/aarch64/aarch64.md
17728 (*madd<mode>): Fix type attribute.
17729 (*maddsi_uxtw): Likewise.
17730 (*msub<mode>): Likewise.
17731 (*msubsi_uxtw): Likewise.
17732 (<su_optab>maddsidi4): Likewise.
17733 (<su_optab>msubsidi4): Likewise.
17735 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17737 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
17738 * config/arm/arm.md (core_cycles): Remove fdiv.
17739 * config/arm/vfp.md:
17740 (*sqrtsf2_vfp): Update for attribute changes.
17741 (*sqrtdf2_vfp): Likewise.
17742 * config/aarch64/aarch64.md:
17743 (sqrt<mode>2): Update for attribute changes.
17744 * config/arm/arm1020e.md: Update with new attributes.
17745 * config/arm/cortex-a15-neon.md: Update with new attributes.
17746 * config/arm/cortex-a5.md: Update with new attributes.
17747 * config/arm/cortex-a53.md: Update with new attributes.
17748 * config/arm/cortex-a7.md: Update with new attributes.
17749 * config/arm/cortex-a8-neon.md: Update with new attributes.
17750 * config/arm/cortex-a9.md: Update with new attributes.
17751 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17752 * config/arm/cortex-r4f.md: Update with new attributes.
17753 * config/arm/marvell-pj4.md: Update with new attributes.
17754 * config/arm/vfp11.md: Update with new attributes.
17756 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17758 * config/arm/types.md
17759 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
17760 * config/aarch64/aarch64.md
17761 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
17763 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17764 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
17765 (float<GPI:mode><GPF:mode>2): Likewise.
17766 * config/arm/vfp.md
17767 (*truncsisf2_vfp): Update with new attributes.
17768 (*truncsidf2_vfp): Likewise.
17769 (fixuns_truncsfsi2): Likewise.
17770 (fixuns_truncdfsi2): Likewise.
17771 (*floatsisf2_vfp): Likewise.
17772 (*floatsidf2_vfp): Likewise.
17773 (floatunssisf2): Likewise.
17774 (floatunssidf2): Likewise.
17775 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
17776 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
17777 * config/arm/arm1020e.md: Update with new attributes.
17778 * config/arm/cortex-a15-neon.md: Update with new attributes.
17779 * config/arm/cortex-a5.md: Update with new attributes.
17780 * config/arm/cortex-a53.md: Update with new attributes.
17781 * config/arm/cortex-a7.md: Update with new attributes.
17782 * config/arm/cortex-a8-neon.md: Update with new attributes.
17783 * config/arm/cortex-a9.md: Update with new attributes.
17784 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17785 * config/arm/cortex-r4f.md: Update with new attributes.
17786 * config/arm/marvell-pj4.md: Update with new attributes.
17787 * config/arm/vfp11.md: Update with new attributes.
17789 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17791 * config/aarch64/arm_neon.h
17792 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
17793 (vqtbx<1,2,3,4><q>_s8): Likewise.
17795 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17797 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
17798 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
17799 (add<mode>3): Add type attribute.
17800 (add<mode>3): Likewise.
17801 (usadd<mode>3): Likewise.
17802 (ssadd<mode>3): Likewise.
17803 (sub<mode>3): Likewise.
17804 (sub<mode>3): Likewise.
17805 (ussub<mode>3): Likewise.
17806 (sssub<mode>3): Likewise.
17807 (ssmulsa3): Likewise.
17808 (usmulusa3): Likewise.
17809 (arm_usatsihi): Likewise.
17810 * config/arm/vfp.md
17811 (*movdi_vfp): Add types for all instructions.
17812 (*movdi_vfp_cortexa8): Likewise.
17813 (*movhf_vfp_neon): Likewise.
17814 (*movhf_vfp): Likewise.
17815 (*movdf_vfp): Likewise.
17816 (*thumb2_movdf_vfp): Likewise.
17817 (*thumb2_movdfcc_vfp): Likewise.
17818 * config/arm/arm.md: Add type attribute to all insn patterns.
17819 (*thumb1_adddi3): Add type attribute.
17820 (*arm_adddi3): Likewise.
17821 (*adddi_sesidi_di): Likewise.
17822 (*adddi_zesidi_di): Likewise.
17823 (*thumb1_addsi3): Likewise.
17824 (addsi3_compare0): Likewise.
17825 (*addsi3_compare0_scratch): Likewise.
17826 (*compare_negsi_si): Likewise.
17827 (cmpsi2_addneg): Likewise.
17828 (*addsi3_carryin_<optab>): Likewise.
17829 (*addsi3_carryin_alt2_<optab>): Likewise.
17830 (*addsi3_carryin_clobercc_<optab>): Likewise.
17831 (*subsi3_carryin): Likewise.
17832 (*subsi3_carryin_const): Likewise.
17833 (*subsi3_carryin_compare): Likewise.
17834 (*subsi3_carryin_compare_const): Likewise.
17835 (*arm_subdi3): Likewise.
17836 (*thumb_subdi3): Likewise.
17837 (*subdi_di_zesidi): Likewise.
17838 (*subdi_di_sesidi): Likewise.
17839 (*subdi_zesidi_di): Likewise.
17840 (*subdi_sesidi_di): Likewise.
17841 (*subdi_zesidi_ze): Likewise.
17842 (thumb1_subsi3_insn): Likewise.
17843 (*arm_subsi3_insn): Likewise.
17844 (*anddi3_insn): Likewise.
17845 (*anddi_zesidi_di): Likewise.
17846 (*anddi_sesdi_di): Likewise.
17847 (*ne_zeroextracts): Likewise.
17848 (*ne_zeroextracts): Likewise.
17849 (*ite_ne_zeroextr): Likewise.
17850 (*ite_ne_zeroextr): Likewise.
17851 (*anddi_notdi_di): Likewise.
17852 (*anddi_notzesidi): Likewise.
17853 (*anddi_notsesidi): Likewise.
17854 (andsi_notsi_si): Likewise.
17855 (thumb1_bicsi3): Likewise.
17856 (*iordi3_insn): Likewise.
17857 (*iordi_zesidi_di): Likewise.
17858 (*iordi_sesidi_di): Likewise.
17859 (*thumb1_iorsi3_insn): Likewise.
17860 (*xordi3_insn): Likewise.
17861 (*xordi_zesidi_di): Likewise.
17862 (*xordi_sesidi_di): Likewise.
17863 (*arm_xorsi3): Likewise.
17864 (*andsi_iorsi3_no): Likewise.
17865 (*smax_0): Likewise.
17866 (*smax_m1): Likewise.
17867 (*arm_smax_insn): Likewise.
17868 (*smin_0): Likewise.
17869 (*arm_smin_insn): Likewise.
17870 (*arm_umaxsi3): Likewise.
17871 (*arm_uminsi3): Likewise.
17872 (*minmax_arithsi): Likewise.
17873 (*minmax_arithsi_): Likewise.
17874 (*satsi_<SAT:code>): Likewise.
17875 (arm_ashldi3_1bit): Likewise.
17876 (arm_ashrdi3_1bit): Likewise.
17877 (arm_lshrdi3_1bit): Likewise.
17878 (*arm_negdi2): Likewise.
17879 (*thumb1_negdi2): Likewise.
17880 (*arm_negsi2): Likewise.
17881 (*thumb1_negsi2): Likewise.
17882 (*negdi_extendsid): Likewise.
17883 (*negdi_zero_extend): Likewise.
17884 (*arm_abssi2): Likewise.
17885 (*thumb1_abssi2): Likewise.
17886 (*arm_neg_abssi2): Likewise.
17887 (*thumb1_neg_abss): Likewise.
17888 (one_cmpldi2): Likewise.
17889 (extend<mode>di2): Likewise.
17890 (*compareqi_eq0): Likewise.
17891 (*arm_extendhisi2addsi): Likewise.
17892 (*arm_movdi): Likewise.
17893 (*thumb1_movdi_insn): Likewise.
17894 (*arm_movt): Likewise.
17895 (*thumb1_movsi_insn): Likewise.
17896 (pic_add_dot_plus_four): Likewise.
17897 (pic_add_dot_plus_eight): Likewise.
17898 (tls_load_dot_plus_eight): Likewise.
17899 (*thumb1_movhi_insn): Likewise.
17900 (*thumb1_movsf_insn): Likewise.
17901 (*movdf_soft_insn): Likewise.
17902 (*thumb_movdf_insn): Likewise.
17903 (cbranchsi4_insn): Likewise.
17904 (cbranchsi4_scratch): Likewise.
17905 (*negated_cbranchsi4): Likewise.
17906 (*tbit_cbranch): Likewise.
17907 (*tlobits_cbranch): Likewise.
17908 (*tstsi3_cbranch): Likewise.
17909 (*cbranchne_decr1): Likewise.
17910 (*addsi3_cbranch): Likewise.
17911 (*addsi3_cbranch_scratch): Likewise.
17912 (*arm_cmpdi_insn): Likewise.
17913 (*arm_cmpdi_unsig): Likewise.
17914 (*arm_cmpdi_zero): Likewise.
17915 (*thumb_cmpdi_zero): Likewise.
17916 (*deleted_compare): Likewise.
17917 (*mov_scc): Likewise.
17918 (*mov_negscc): Likewise.
17919 (*mov_notscc): Likewise.
17920 (*cstoresi_eq0_thumb1_insn): Likewise.
17921 (cstoresi_nltu_thumb1): Likewise.
17922 (cstoresi_ltu_thu): Likewise.
17923 (thumb1_addsi3_addgeu): Likewise.
17924 (*arm_jump): Likewise.
17925 (*thumb_jump): Likewise.
17926 (*check_arch2): Likewise.
17927 (arm_casesi_internal): Likewise.
17928 (thumb1_casesi_dispatch): Likewise.
17929 (*arm_indirect_jump): Likewise.
17930 (*thumb1_indirect_jump): Likewise.
17932 (*and_scc): Likewise.
17933 (*ior_scc): Likewise.
17934 (*compare_scc): Likewise.
17935 (*cond_move): Likewise.
17936 (*cond_arith): Likewise.
17937 (*cond_sub): Likewise.
17938 (*cmp_ite0): Likewise.
17939 (*cmp_ite1): Likewise.
17940 (*cmp_and): Likewise.
17941 (*cmp_ior): Likewise.
17942 (*ior_scc_scc): Likewise.
17943 (*ior_scc_scc_cmp): Likewise.
17944 (*and_scc_scc): Likewise.
17945 (*and_scc_scc_cmp): Likewise.
17946 (*and_scc_scc_nod): Likewise.
17947 (*negscc): Likewise.
17948 (movcond_addsi): Likewise.
17949 (movcond): Likewise.
17950 (*ifcompare_plus_move): Likewise.
17951 (*if_plus_move): Likewise.
17952 (*ifcompare_move_plus): Likewise.
17953 (*if_move_plus): Likewise.
17954 (*ifcompare_arith_arith): Likewise.
17955 (*if_arith_arith): Likewise.
17956 (*ifcompare_arith_move): Likewise.
17957 (*if_arith_move): Likewise.
17958 (*ifcompare_move_arith): Likewise.
17959 (*if_move_arith): Likewise.
17960 (*ifcompare_move_not): Likewise.
17961 (*if_move_not): Likewise.
17962 (*ifcompare_not_move): Likewise.
17963 (*if_not_move): Likewise.
17964 (*ifcompare_shift_move): Likewise.
17965 (*if_shift_move): Likewise.
17966 (*ifcompare_move_shift): Likewise.
17967 (*if_move_shift): Likewise.
17968 (*ifcompare_shift_shift): Likewise.
17969 (*ifcompare_not_arith): Likewise.
17970 (*ifcompare_arith_not): Likewise.
17971 (*if_arith_not): Likewise.
17972 (*ifcompare_neg_move): Likewise.
17973 (*if_neg_move): Likewise.
17974 (*ifcompare_move_neg): Likewise.
17975 (*if_move_neg): Likewise.
17976 (prologue_thumb1_interwork): Likewise.
17977 (*cond_move_not): Likewise.
17978 (*sign_extract_onebit): Likewise.
17979 (*not_signextract_onebit): Likewise.
17980 (stack_tie): Likewise.
17981 (align_4): Likewise.
17982 (align_8): Likewise.
17983 (consttable_end): Likewise.
17984 (consttable_1): Likewise.
17985 (consttable_2): Likewise.
17986 (consttable_4): Likewise.
17987 (consttable_8): Likewise.
17988 (consttable_16): Likewise.
17989 (*thumb1_tablejump): Likewise.
17990 (prefetch): Likewise.
17991 (force_register_use): Likewise.
17992 (thumb_eh_return): Likewise.
17993 (load_tp_hard): Likewise.
17994 (load_tp_soft): Likewise.
17995 (tlscall): Likewise.
17996 (*arm_movtas_ze): Likewise.
17997 (*arm_rev): Likewise.
17998 (*arm_revsh): Likewise.
17999 (*arm_rev16): Likewise.
18000 * config/arm/thumb2.md
18001 (*thumb2_smaxsi3): Likewise.
18002 (*thumb2_sminsi3): Likewise.
18003 (*thumb32_umaxsi3): Likewise.
18004 (*thumb2_uminsi3): Likewise.
18005 (*thumb2_negdi2): Likewise.
18006 (*thumb2_abssi2): Likewise.
18007 (*thumb2_neg_abss): Likewise.
18008 (*thumb2_movsi_insn): Likewise.
18009 (tls_load_dot_plus_four): Likewise.
18010 (*thumb2_movhi_insn): Likewise.
18011 (*thumb2_mov_scc): Likewise.
18012 (*thumb2_mov_negs): Likewise.
18013 (*thumb2_mov_negs): Likewise.
18014 (*thumb2_mov_nots): Likewise.
18015 (*thumb2_mov_nots): Likewise.
18016 (*thumb2_movsicc_): Likewise.
18017 (*thumb2_movsfcc_soft_insn): Likewise.
18018 (*thumb2_indirect_jump): Likewise.
18019 (*thumb2_and_scc): Likewise.
18020 (*thumb2_ior_scc): Likewise.
18021 (*thumb2_ior_scc_strict_it): Likewise.
18022 (*thumb2_cond_move): Likewise.
18023 (*thumb2_cond_arith): Likewise.
18024 (*thumb2_cond_ari): Likewise.
18025 (*thumb2_cond_sub): Likewise.
18026 (*thumb2_negscc): Likewise.
18027 (*thumb2_movcond): Likewise.
18028 (thumb2_casesi_internal): Likewise.
18029 (thumb2_casesi_internal_pic): Likewise.
18030 (*thumb2_alusi3_short): Likewise.
18031 (*thumb2_mov<mode>_shortim): Likewise.
18032 (*thumb2_addsi_short): Likewise.
18033 (*thumb2_subsi_short): Likewise.
18034 (thumb2_addsi3_compare0): Likewise.
18035 (*thumb2_cbz): Likewise.
18036 (*thumb2_cbnz): Likewise.
18037 (*thumb2_one_cmplsi2_short): Likewise.
18038 (*thumb2_negsi2_short): Likewise.
18039 (*orsi_notsi_si): Likewise.
18040 * config/arm/arm1020e.md: Update with new attributes.
18041 * config/arm/arm1026ejs.md: Update with new attributes.
18042 * config/arm/arm1136jfs.md: Update with new attributes.
18043 * config/arm/arm926ejs.md: Update with new attributes.
18044 * config/arm/cortex-a15.md: Update with new attributes.
18045 * config/arm/cortex-a5.md: Update with new attributes.
18046 * config/arm/cortex-a53.md: Update with new attributes.
18047 * config/arm/cortex-a7.md: Update with new attributes.
18048 * config/arm/cortex-a8.md: Update with new attributes.
18049 * config/arm/cortex-a9.md: Update with new attributes.
18050 * config/arm/cortex-m4.md: Update with new attributes.
18051 * config/arm/cortex-r4.md: Update with new attributes.
18052 * config/arm/fa526.md: Update with new attributes.
18053 * config/arm/fa606te.md: Update with new attributes.
18054 * config/arm/fa626te.md: Update with new attributes.
18055 * config/arm/fa726te.md: Update with new attributes.
18057 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18059 * config/aarch64/aarch64-simd.md
18060 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
18061 <vwx> iterator to ensure correct register choice.
18062 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
18063 (aarch64_sqdmull_n<mode>): Likewise.
18064 (aarch64_sqdmull2_n<mode>_internal): Likewise.
18065 * config/aarch64/arm_neon.h
18066 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
18067 (vml<as><q>_n_<su>16): Likewise.
18068 (vml<as>l_high_lane<q>_<su>16): Likewise.
18069 (vml<as>l_high_n_<su>16): Likewise.
18070 (vml<as>l_lane<q>_<su>16): Likewise.
18071 (vml<as>l_n_<su>16): Likewise.
18072 (vmul<q>_lane<q>_<su>16): Likewise.
18073 (vmul<q>_n_<su>16): Likewise.
18074 (vmull_lane<q>_<su>16): Likewise.
18075 (vmull_n_<su>16): Likewise.
18076 (vmull_high_lane<q>_<su>16): Likewise.
18077 (vmull_high_n_<su>16): Likewise.
18078 (vqrdmulh<q>_n_s16): Likewise.
18080 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
18082 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
18083 have the correct lane parameter.
18085 2013-09-06 Richard Biener <rguenther@suse.de>
18087 * cfganal.c (control_dependences::~control_dependences):
18088 Properly free all of the vector.
18090 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
18093 * config/i386/i386.c (ix86_conditional_register_usage):
18094 Proper initialize extended SSE registers.
18096 2013-09-06 Jan Hubicka <jh@suse.cz>
18098 PR tree-optimization/58311
18099 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
18101 2013-09-06 Jan Hubicka <jh@suse.cz>
18103 * Makefile.in (tree-sra.o): Update dependencies.
18104 * tree-sra.c: Include ipa-utils.h
18105 (scan_function): Use recursive_call_p.
18106 (has_caller_p): New function.
18107 (cgraph_for_node_and_aliases): Count also callers of aliases.
18109 2013-09-06 Jan Hubicka <jh@suse.cz>
18111 PR middle-end/58094
18112 * cgraph.h (symtab_semantically_equivalent_p): Declare.
18113 * tree-tailcall.c: Include ipa-utils.h.
18114 (find_tail_calls): Use it.
18115 * ipa-pure-const.c (check_call): Likewise.
18116 * ipa-utils.c (recursive_call_p): New function.
18117 * ipa-utils.h (recursive_call_p): Dclare.
18118 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
18119 (symtab_semantically_equivalent_p): New function.
18120 * Makefile.in (tree-tailcall.o): Update dependencies.
18122 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18124 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
18125 non-inlinable part.
18127 2013-09-06 Richard Biener <rguenther@suse.de>
18129 * lto-streamer.h (lto_global_var_decls): Remove.
18130 * Makefile.in (OBJS): Remove lto-symtab.o.
18131 (lto-symtab.o): Remove.
18132 (GTFILES): Remove lto-symtab.c
18133 * lto-symtab.c: Move to lto/
18135 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18137 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
18138 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
18139 (UNSPEC_FPINT_RINT): New constant definitions.
18140 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
18141 definition with 2 attributes.
18142 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
18143 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
18146 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18148 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
18149 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
18150 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
18151 attribute to "z196_alone".
18152 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
18155 2013-09-06 Richard Biener <rguenther@suse.de>
18157 * basic-block.h (class control_dependences): New.
18158 * tree-ssa-dce.c (control_dependence_map): Remove.
18160 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
18161 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
18162 find_pdom, find_control_dependence, find_all_control_dependences):
18164 (mark_control_dependent_edges_necessary,
18165 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
18166 tree_dce_done, perform_tree_ssa_dce): Adjust.
18167 * cfganal.c (set_control_dependence_map_bit,
18168 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
18169 find_all_control_dependences): Move from tree-ssa-dce.c and
18170 implement as methods of control_dependences class.
18171 (control_dependences::control_dependences): New.
18172 (control_dependences::~control_dependences): Likewise.
18173 (control_dependences::get_edges_dependent_on): Likewise.
18174 (control_dependences::get_edge): Likewise.
18176 2013-09-04 Jan Hubicka <jh@suse.cz>
18178 * tree.c (types_same_for_odr): Drop overactive check.
18179 * ipa-devirt.c (hash_type_name): Likewise.
18181 2013-09-04 Jan Hubicka <jh@suse.cz>
18183 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
18184 (analyze_functions): ... here.
18186 2013-09-04 Jan Hubicka <jh@suse.cz>
18188 PR middle-end/58201
18189 * cgraphunit.c (analyze_functions): Clear AUX fields
18190 after processing; initialize assembler name has.
18192 2013-09-05 Jeff Law <law@redhat.com>
18194 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
18195 from thread_around_empty_block. Record threading path into PATH.
18196 Recurse if threading through the initial block is successful.
18197 (thread_across_edge): Corresponding changes to slightly simplify.
18199 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18201 * config/aarch64/aarch64.md
18202 (type): Remove frecpe, frecps, frecpx.
18203 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
18204 fix to be a TARGET_SIMD instruction.
18205 (aarch64_frecps): Remove.
18206 * config/aarch64/aarch64-simd.md
18207 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
18208 (aarch64_frecps<mode>): Handle all float/vector of float modes.
18210 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18211 Sofiane Naci <sofiane.naci@arm.com>
18213 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18214 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18215 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18216 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18217 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18218 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18219 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18220 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18221 into "clz, "rbit". Rename "shift" to "shift_imm".
18222 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18223 changes. Update for attribute changes all occurrences of arlo_* and
18225 * config/arm/arm-fixed.md: Update for attribute changes
18226 all occurrences of arlo_* types.
18227 * config/arm/thumb2.md: Update for attribute changes all occurrences
18229 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18230 (cortexa7_older_only): Likewise.
18231 (cortexa7_younger): Likewise.
18232 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18233 (1020alu_shift_op): Likewise.
18234 (1020alu_shift_reg_op): Likewise.
18235 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18236 (alu_shift_op): Likewise.
18237 (alu_shift_reg_op): Likewise.
18238 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18239 (11_alu_shift_op): Likewise.
18240 (11_alu_shift_reg_op): Likewise.
18241 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18242 (9_alu_shift_reg_op): Likewise.
18243 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18245 (cortex_a15_alu_shift): Likewise.
18246 (cortex_a15_alu_shift_reg): Likewise.
18247 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18249 (cortex_a5_alu_shift): Likewise.
18250 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18252 (cortex_a53_alu_shift): Likewise.
18253 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18255 (cortex_a7_alu_reg): Likewise.
18256 (cortex_a7_alu_shift): Likewise.
18257 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18259 (cortex_a8_alu_shift): Likewise.
18260 (cortex_a8_alu_shift_reg): Likewise.
18261 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18262 (cortex_a9_dp_shift): Likewise.
18263 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18265 * config/arm/cortex-r4.md
18266 (cortex_r4_alu): Update for attribute changes.
18267 (cortex_r4_mov): Likewise.
18268 (cortex_r4_alu_shift_reg): Likewise.
18269 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18270 (526_alu_shift_op): Likewise.
18271 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18272 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18273 (626te_alu_shift_op): Likewise.
18274 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
18275 (726te_alu_shift_op): Likewise.
18276 (726te_alu_shift_reg_op): Likewise.
18277 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18278 (mp626_alu_shift_op): Likewise.
18279 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
18280 (pj4_alu_conds): Likewise.
18281 (pj4_shift): Likewise.
18282 (pj4_shift_conds): Likewise.
18283 (pj4_alu_shift): Likewise.
18284 (pj4_alu_shift_conds): Likewise.
18285 * config/aarch64/aarch64.md: Update for attribute change
18286 all occurrences of arlo_* and shift* types.
18288 2013-09-05 Mike Stump <mikestump@comcast.net>
18290 * tree.h: Move documentation for tree_function_decl to tree-core.h
18291 with the declaration.
18293 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
18296 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
18297 looking for widest mode.
18299 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
18301 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
18303 2013-09-05 Richard Biener <rguenther@suse.de>
18305 PR tree-optimization/58137
18306 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18307 Do not create vectors of pointers.
18308 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
18309 types for the components of the vector initializer.
18310 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
18311 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
18313 2013-09-05 Martin Jambor <mjambor@suse.cz>
18315 * ipa-prop.c (remove_described_reference): Accept missing references,
18316 return false if that hppens, otherwise return true.
18317 (cgraph_node_for_jfunc): New function.
18318 (try_decrement_rdesc_refcount): Likewise.
18319 (try_make_edge_direct_simple_call): Use them.
18320 (ipa_edge_removal_hook): Remove references from rdescs.
18321 (ipa_edge_duplication_hook): Clone rdescs and their references
18322 when the new edge has the same caller as the old one.
18323 * cgraph.c (cgraph_resolve_speculation): Remove speculative
18324 reference before removing any edges.
18326 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
18328 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
18330 * thumb2.md (thumb2_storewb_parisi): New pattern.
18332 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
18334 * config/aarch64/aarch64-option-extensions.def: Add
18335 AARCH64_OPT_EXTENSION of 'crc'.
18336 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
18337 (AARCH64_ISA_CRC): Ditto.
18338 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
18339 description of the CRC extension.
18341 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
18343 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
18344 * config/rs6000/linux.h: Ditto.
18345 * alpha/linux.h: Ditto.
18346 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
18347 no_c99_libc_has_function.
18348 * config/c6x/uclinux-elf.h: Ditto.
18349 * config/lm32/uclinux-elf.h: Ditto.
18350 * config/m68k/uclinux.h: Ditto.
18351 * config/moxie/uclinux.h: Ditto.
18352 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
18353 (crisv32-*-linux*, cris-*-linux*): Ditto.
18354 * config/bfin/bfin.c: Include "tm_p.h".
18356 2013-09-05 Richard Biener <rguenther@suse.de>
18358 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
18359 check for a definition without a basic-block.
18361 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18362 Sofiane Naci <sofiane.naci@arm.com>
18364 * config/aarch64/aarch64.md
18365 (*movti_aarch64): Rename r_2_f and f_2_r.
18366 (*movsf_aarch64): Likewise.
18367 (*movdf_aarch64): Likewise.
18368 (*movtf_aarch64): Likewise.
18369 (aarch64_movdi_<mode>low): Likewise.
18370 (aarch64_movdi_<mode>high): Likewise.
18371 (aarch64_mov<mode>high_di): Likewise.
18372 (aarch64_mov<mode>low_di): Likewise.
18373 (aarch64_movtilow_tilow): Likewise.
18374 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
18375 values to config/arm/types.md
18376 (attribute "conds"): Update for attribute change.
18377 (anddi3_insn): Likewise.
18378 (iordi3_insn): Likewise.
18379 (xordi3_insn): Likewise.
18380 (one_cmpldi2): Likewise.
18381 * config/arm/types.md (type): Add Neon types.
18382 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
18383 use "type" attribute.
18384 (movmisalign<mode>_neon_store): Likewise.
18385 (movmisalign<mode>_neon_load): Likewise.
18386 (vec_set<mode>_internal): Likewise.
18387 (vec_setv2di_internal): Likewise.
18388 (vec_extract<mode>): Likewise.
18389 (vec_extractv2di): Likewise.
18390 (add<mode>3_neon): Likewise.
18391 (adddi3_neon): Likewise.
18392 (sub<mode>3_neon): Likewise.
18393 (subdi3_neon): Likewise.
18394 (mul<mode>3_neon): Likewise.
18395 (mul<mode>3add<mode>_neon): Likewise.
18396 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18397 (fma<VCVTF:mode>4)): Likewise.
18398 (fma<VCVTF:mode>4_intrinsic): Likewise.
18399 (fmsub<VCVTF:mode>4)): Likewise.
18400 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
18401 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
18402 (ior<mode>3): Likewise.
18403 (and<mode>3): Likewise.
18404 (anddi3_neon): Likewise.
18405 (orn<mode>3_neon): Likewise.
18406 (orndi3_neon): Likewise.
18407 (bic<mode>3_neon): Likewise.
18408 (bicdi3_neon): Likewise.
18409 (xor<mode>3): Likewise.
18410 (one_cmpl<mode>2): Likewise.
18411 (abs<mode>2): Likewise.
18412 (neg<mode>2): Likewise.
18413 (umin<mode>3_neon): Likewise.
18414 (umax<mode>3_neon): Likewise.
18415 (smin<mode>3_neon): Likewise.
18416 (smax<mode>3_neon): Likewise.
18417 (vashl<mode>3): Likewise.
18418 (vashr<mode>3_imm): Likewise.
18419 (vlshr<mode>3_imm): Likewise.
18420 (ashl<mode>3_signed): Likewise.
18421 (ashl<mode>3_unsigned): Likewise.
18422 (neon_load_count): Likewise.
18423 (ashldi3_neon_noclobber): Likewise.
18424 (signed_shift_di3_neon): Likewise.
18425 (unsigned_shift_di3_neon): Likewise.
18426 (ashrdi3_neon_imm_noclobber): Likewise.
18427 (lshrdi3_neon_imm_noclobber): Likewise.
18428 (widen_ssum<mode>3): Likewise.
18429 (widen_usum<mode>3): Likewise.
18430 (quad_halves_<code>v4si): Likewise.
18431 (quad_halves_<code>v4sf): Likewise.
18432 (quad_halves_<code>v8hi): Likewise.
18433 (quad_halves_<code>v16qi): Likewise.
18434 (reduc_splus_v2di): Likewise.
18435 (neon_vpadd_internal<mode>): Likewise.
18436 (neon_vpsmin<mode>): Likewise.
18437 (neon_vpsmax<mode>): Likewise.
18438 (neon_vpumin<mode>): Likewise.
18439 (neon_vpumax<mode>): Likewise.
18440 (ss_add<mode>_neon): Likewise.
18441 (us_add<mode>_neon): Likewise.
18442 (ss_sub<mode>_neon): Likewise.
18443 (us_sub<mode>_neon): Likewise.
18444 (neon_vadd<mode>_unspec): Likewise.
18445 (neon_vaddl<mode>): Likewise.
18446 (neon_vaddw<mode>): Likewise.
18447 (neon_vhadd<mode>): Likewise.
18448 (neon_vqadd<mode>): Likewise.
18449 (neon_vaddhn<mode>): Likewise.
18450 (neon_vmul<mode>): Likewise.
18451 (neon_vmla<mode>): Likewise.
18452 (neon_vmlal<mode>): Likewise.
18453 (neon_vmls<mode>): Likewise.
18454 (neon_vmlsl<mode>): Likewise.
18455 (neon_vqdmulh<mode>): Likewise.
18456 (neon_vqdmlal<mode>): Likewise.
18457 (neon_vqdmlsl<mode>): Likewise.
18458 (neon_vmull<mode>): Likewise.
18459 (neon_vqdmull<mode>): Likewise.
18460 (neon_vsub<mode>_unspec): Likewise.
18461 (neon_vsubl<mode>): Likewise.
18462 (neon_vsubw<mode>): Likewise.
18463 (neon_vqsub<mode>): Likewise.
18464 (neon_vhsub<mode>): Likewise.
18465 (neon_vsubhn<mode>): Likewise.
18466 (neon_vceq<mode>): Likewise.
18467 (neon_vcge<mode>): Likewise.
18468 (neon_vcgeu<mode>): Likewise.
18469 (neon_vcgt<mode>): Likewise.
18470 (neon_vcgtu<mode>): Likewise.
18471 (neon_vcle<mode>): Likewise.
18472 (neon_vclt<mode>): Likewise.
18473 (neon_vcage<mode>): Likewise.
18474 (neon_vcagt<mode>): Likewise.
18475 (neon_vtst<mode>): Likewise.
18476 (neon_vabd<mode>): Likewise.
18477 (neon_vabdl<mode>): Likewise.
18478 (neon_vaba<mode>): Likewise.
18479 (neon_vabal<mode>): Likewise.
18480 (neon_vmax<mode>): Likewise.
18481 (neon_vmin<mode>): Likewise.
18482 (neon_vpaddl<mode>): Likewise.
18483 (neon_vpadal<mode>): Likewise.
18484 (neon_vpmax<mode>): Likewise.
18485 (neon_vpmin<mode>): Likewise.
18486 (neon_vrecps<mode>): Likewise.
18487 (neon_vrsqrts<mode>): Likewise.
18488 (neon_vqabs<mode>): Likewise.
18489 (neon_vqneg<mode>): Likewise.
18490 (neon_vcls<mode>): Likewise.
18491 (clz<mode>2): Likewise.
18492 (popcount<mode>2): Likewise.
18493 (neon_vrecpe): Likewise.
18494 (neon_vrsqrte): Likewise.
18495 (neon_vget_lane<mode>_sext_internal): Likewise.
18496 (neon_vget_lane<mode>_zext_internal): Likewise.
18497 (neon_vdup_n<mode>): Likewise.
18498 (neon_vdup_nv2di): Likewise.
18499 (neon_vdpu_lane<mode>_internal): Likewise.
18500 (neon_vswp<mode>): Likewise.
18501 (float<mode><V_cvtto>2): Likewise.
18502 (floatuns<mode><V_cvtto>2): Likewise.
18503 (fix_trunc<mode><V_cvtto>)2): Likewise
18504 (fixuns_trunc<mode><V_cvtto)2): Likewise.
18505 (neon_vcvt<mode>): Likewise.
18506 (neon_vcvtv4sfv4hf): Likewise.
18507 (neon_vcvtv4hfv4sf): Likewise.
18508 (neon_vcvt_n<mode>): Likewise.
18509 (neon_vmovn<mode>): Likewise.
18510 (neon_vqmovn<mode>): Likewise.
18511 (neon_vqmovun<mode>): Likewise.
18512 (neon_vmovl<mode>): Likewise.
18513 (neon_vmul_lane<mode>): Likewise.
18514 (neon_vmull_lane<mode>): Likewise.
18515 (neon_vqdmull_lane<mode>): Likewise.
18516 (neon_vqdmulh_lane<mode>): Likewise.
18517 (neon_vmla_lane<mode>): Likewise.
18518 (neon_vmlal_lane<mode>): Likewise.
18519 (neon_vqdmlal_lane<mode>): Likewise.
18520 (neon_vmls_lane<mode>): Likewise.
18521 (neon_vmlsl_lane<mode>): Likewise.
18522 (neon_vqdmlsl_lane<mode>): Likewise.
18523 (neon_vext<mode>): Likewise.
18524 (neon_vrev64<mode>): Likewise.
18525 (neon_vrev32<mode>): Likewise.
18526 (neon_vrev16<mode>): Likewise.
18527 (neon_vbsl<mode>_internal): Likewise.
18528 (neon_vshl<mode>): Likewise.
18529 (neon_vqshl<mode>): Likewise.
18530 (neon_vshr_n<mode>): Likewise.
18531 (neon_vshrn_n<mode>): Likewise.
18532 (neon_vqshrn_n<mode>): Likewise.
18533 (neon_vqshrun_n<mode>): Likewise.
18534 (neon_vshl_n<mode>): Likewise.
18535 (neon_vqshl_n<mode>): Likewise.
18536 (neon_vqshlu_n<mode>): Likewise.
18537 (neon_vshll_n<mode>): Likewise.
18538 (neon_vsra_n<mode>): Likewise.
18539 (neon_vsri_n<mode>): Likewise.
18540 (neon_vsli_n<mode>): Likewise.
18541 (neon_vtbl1v8qi): Likewise.
18542 (neon_vtbl2v8qi): Likewise.
18543 (neon_vtbl3v8qi): Likewise.
18544 (neon_vtbl4v8qi): Likewise.
18545 (neon_vtbx1v8qi): Likewise.
18546 (neon_vtbx2v8qi): Likewise.
18547 (neon_vtbx3v8qi): Likewise.
18548 (neon_vtbx4v8qi): Likewise.
18549 (neon_vtrn<mode>_internal): Likewise.
18550 (neon_vzip<mode>_internal): Likewise.
18551 (neon_vuzp<mode>_internal): Likewise.
18552 (neon_vld1<mode>): Likewise.
18553 (neon_vld1_lane<mode>): Likewise.
18554 (neon_vld1_dup<mode>): Likewise.
18555 (neon_vld1_dupv2di): Likewise.
18556 (neon_vst1<mode>): Likewise.
18557 (neon_vst1_lane<mode>): Likewise.
18558 (neon_vld2<mode>): Likewise.
18559 (neon_vld2_lane<mode>): Likewise.
18560 (neon_vld2_dup<mode>): Likewise.
18561 (neon_vst2<mode>): Likewise.
18562 (neon_vst2_lane<mode>): Likewise.
18563 (neon_vld3<mode>): Likewise.
18564 (neon_vld3qa<mode>): Likewise.
18565 (neon_vld3qb<mode>): Likewise.
18566 (neon_vld3_lane<mode>): Likewise.
18567 (neon_vld3_dup<mode>): Likewise.
18568 (neon_vst3<mode>): Likewise.
18569 (neon_vst3qa<mode>): Likewise.
18570 (neon_vst3qb<mode>): Likewise.
18571 (neon_vst3_lane<mode>): Likewise.
18572 (neon_vld4<mode>): Likewise.
18573 (neon_vld4qa<mode>): Likewise.
18574 (neon_vld4qb<mode>): Likewise.
18575 (neon_vld4_lane<mode>): Likewise.
18576 (neon_vld4_dup<mode>): Likewise.
18577 (neon_vst4<mode>): Likewise.
18578 (neon_vst4qa<mode>): Likewise.
18579 (neon_vst4qb<mode>): Likewise.
18580 (neon_vst4_lane<mode>): Likewise.
18581 (neon_vec_unpack<US>_lo_<mode>): Likewise.
18582 (neon_vec_unpack<US>_hi_<mode>): Likewise.
18583 (neon_vec_<US>mult_lo_<mode>): Likewise.
18584 (neon_vec_<US>mult_hi_<mode>): Likewise.
18585 (neon_vec_<US>shiftl_<mode>): Likewise.
18586 (neon_unpack<US>_<mode>): Likewise.
18587 (neon_vec_<US>mult_<mode>): Likewise.
18588 (vec_pack_trunc_<mode>): Likewise.
18589 (neon_vec_pack_trunk_<mode>): Likewise.
18590 (neon_vabd<mode>_2): Likewise.
18591 (neon_vabd<mode>_3): Likewise.
18592 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
18593 (thumb2_movsi_vfp): Likewise.
18594 (movdi_vfp): Likewise.
18595 (movdi_vfp_cortexa8): Likewise.
18596 (movhf_vfp_neon): Likewise.
18597 (movhf_vfp): Likewiwse.
18598 (movsf_vfp): Likewiwse.
18599 (thumb2_movsf_vfp): Likewiwse.
18600 (movdf_vfp): Likewise.
18601 (thumb2_movdf_vfp): Likewise.
18602 (movsfcc_vfp): Likewise.
18603 (thumb2_movsfcc_vfp): Likewise.
18604 (movdfcc_vfp): Likewise.
18605 (thumb2_movdfcc_vfp): Likewise.
18606 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
18607 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
18608 (v10_v2c): Likewise.
18609 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
18611 (cortex_a15_neon_int_2): Likewise.
18612 (cortex_a15_neon_int_3): Likewise.
18613 (cortex_a15_neon_int_4): Likewise.
18614 (cortex_a15_neon_int_5): Likewise.
18615 (cortex_a15_neon_vqneg_vqabs): Likewise.
18616 (cortex_a15_neon_vmov): Likewise.
18617 (cortex_a15_neon_vaba): Likewise.
18618 (cortex_a15_neon_vaba_qqq): Likewise.
18619 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18620 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18621 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
18622 scalar_64_32_long_scalar): Likewise.
18623 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18624 (cortex_a15_neon_mla_qqq_8_16): Likewise.
18625 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18626 lotype_qdd_64_32_long): Likewise.
18627 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18628 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18629 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
18630 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18631 (cortex_a15_neon_shift_1): Likewise.
18632 (cortex_a15_neon_shift_2): Likewise.
18633 (cortex_a15_neon_shift_3): Likewise.
18634 (cortex_a15_neon_vshl_ddd): Likewise.
18635 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18636 (cortex_a15_neon_vsra_vrsra): Likewise.
18637 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
18638 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
18639 (cortex_a15_neon_fp_vmul_ddd): Likewise.
18640 (cortex_a15_neon_fp_vmul_qqd): Likewise.
18641 (cortex_a15_neon_fp_vmla_ddd): Likewise.
18642 (cortex_a15_neon_fp_vmla_qqq): Likewise.
18643 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
18644 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
18645 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18646 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18647 (cortex_a15_neon_bp_simple): Likewise.
18648 (cortex_a15_neon_bp_2cycle): Likewise.
18649 (cortex_a15_neon_bp_3cycle): Likewise.
18650 (cortex_a15_neon_vld1_1_2_regs): Likewise.
18651 (cortex_a15_neon_vld1_3_4_regs): Likewise.
18652 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18653 (cortex_a15_neon_vld2_4_regs): Likewise.
18654 (cortex_a15_neon_vld3_vld4): Likewise.
18655 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18656 (cortex_a15_neon_vst1_3_4_regs): Likewise.
18657 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
18658 (cortex_a15_neon_vst3_vst4): Likewise.
18659 (cortex_a15_neon_vld1_vld2_lane): Likewise.
18660 (cortex_a15_neon_vld3_vld4_lane" 10
18661 (cortex_a15_neon_vst1_vst2_lane): Likewise.
18662 (cortex_a15_neon_vst3_vst4_lane): Likewise.
18663 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
18664 (cortex_a15_neon_ldm_2): Likewise.0
18665 (cortex_a15_neon_stm_2): Likewise.
18666 (cortex_a15_neon_mcr): Likewise.
18667 (cortex_a15_neon_mcr_2_mcrr): Likewise.
18668 (cortex_a15_neon_mrc): Likewise.
18669 (cortex_a15_neon_mrrc): Likewise.
18670 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18672 (cortex_a15_alu_shift): Likewise.
18673 (cortex_a15_alu_shift_reg): Likewise.
18674 (cortex_a15_mult32): Likewise.
18675 (cortex_a15_mult64): Likewise.
18676 (cortex_a15_block): Likewise.
18677 (cortex_a15_branch): Likewise.
18678 (cortex_a15_load1): Likewise.
18679 (cortex_a15_load3): Likewise.
18680 (cortex_a15_store1): Likewise.
18681 (cortex_a15_store3): Likewise.
18682 (cortex_a15_call): Likewise.
18683 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
18684 (cortex_a5_f2r): Likewise.
18685 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
18687 (cortex_a53_f2r): Likewise.
18688 * config/arm/cortex-a7.md
18689 (cortex_a7_branch): Update for attribute change.
18690 (cortex_a7_call): Likewise.
18691 (cortex_a7_alu_imm): Likewise.
18692 (cortex_a7_alu_reg): Likewise.
18693 (cortex_a7_alu_shift): Likewise.
18694 (cortex_a7_mul): Likewise.
18695 (cortex_a7_load1): Likewise.
18696 (cortex_a7_store1): Likewise.
18697 (cortex_a7_load2): Likewise.
18698 (cortex_a7_store2): Likewise.
18699 (cortex_a7_load3): Likewise.
18700 (cortex_a7_store3): Likewise.
18701 (cortex_a7_load4): Likewise.
18702 (cortex_a7_store4): Likewise.
18703 (cortex_a7_fpalu): Likewise.
18704 (cortex_a7_fconst): Likewise.
18705 (cortex_a7_fpmuls): Likewise.
18706 (cortex_a7_neon_mul): Likewise.
18707 (cortex_a7_fpmacs): Likewise.
18708 (cortex_a7_neon_mla: Likewise.
18709 (cortex_a7_fpmuld: Likewise.
18710 (cortex_a7_fpmacd: Likewise.
18711 (cortex_a7_fpfmad: Likewise.
18712 (cortex_a7_fdivs: Likewise.
18713 (cortex_a7_fdivd: Likewise.
18714 (cortex_a7_r2f: Likewise.
18715 (cortex_a7_f2r: Likewise.
18716 (cortex_a7_f_flags: Likewise.
18717 (cortex_a7_f_loads: Likewise.
18718 (cortex_a7_f_loadd: Likewise.
18719 (cortex_a7_f_stores: Likewise.
18720 (cortex_a7_f_stored: Likewise.
18721 (cortex_a7_neon): Likewise.
18722 * config/arm/cortex-a8-neon.md
18723 (cortex_a8_neon_mrc): Update for attribute change.
18724 (cortex_a8_neon_mrrc): Likewise.
18725 (cortex_a8_neon_int_1): Likewise.
18726 (cortex_a8_neon_int_2): Likewise.
18727 (cortex_a8_neon_int_3): Likewise.
18728 (cortex_a8_neon_int_4): Likewise.
18729 (cortex_a8_neon_int_5): Likewise.
18730 (cortex_a8_neon_vqneg_vqabs): Likewise.
18731 (cortex_a8_neon_vmov): Likewise.
18732 (cortex_a8_neon_vaba): Likewise.
18733 (cortex_a8_neon_vaba_qqq): Likewise.
18734 (cortex_a8_neon_vsma): Likewise.
18735 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18736 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18737 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18738 long_scalar): Likewise.
18739 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18740 (cortex_a8_neon_mla_qqq_8_16): Likewise.
18741 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18742 long_scalar_qdd_64_32_long): Likewise.
18743 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18744 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18745 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
18746 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18747 (cortex_a8_neon_shift_1): Likewise.
18748 (cortex_a8_neon_shift_2): Likewise.
18749 (cortex_a8_neon_shift_3): Likewise.
18750 (cortex_a8_neon_vshl_ddd): Likewise.
18751 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18752 (cortex_a8_neon_vsra_vrsra): Likewise.
18753 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
18754 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
18755 (cortex_a8_neon_fp_vsum): Likewise.
18756 (cortex_a8_neon_fp_vmul_ddd): Likewise.
18757 (cortex_a8_neon_fp_vmul_qqd): Likewise.
18758 (cortex_a8_neon_fp_vmla_ddd): Likewise.
18759 (cortex_a8_neon_fp_vmla_qqq): Likewise.
18760 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
18761 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
18762 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18763 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18764 (cortex_a8_neon_bp_simple): Likewise.
18765 (cortex_a8_neon_bp_2cycle): Likewise.
18766 (cortex_a8_neon_bp_3cycle): Likewise.
18767 (cortex_a8_neon_ldr): Likewise.
18768 (cortex_a8_neon_str): Likewise.
18769 (cortex_a8_neon_vld1_1_2_regs): Likewise.
18770 (cortex_a8_neon_vld1_3_4_regs): Likewise.
18771 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18772 (cortex_a8_neon_vld2_4_regs): Likewise.
18773 (cortex_a8_neon_vld3_vld4): Likewise.
18774 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18775 (cortex_a8_neon_vst1_3_4_regs): Likewise.
18776 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
18777 (cortex_a8_neon_vst3_vst4): Likewise.
18778 (cortex_a8_neon_vld1_vld2_lane): Likewise.
18779 (cortex_a8_neon_vld3_vld4_lane): Likewise.
18780 (cortex_a8_neon_vst1_vst2_lane): Likewise.
18781 (cortex_a8_neon_vst3_vst4_lane): Likewise.
18782 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
18783 (cortex_a8_neon_mcr): Likewise.
18784 (cortex_a8_neon_mcr_2_mcrr): Likewise.
18785 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18786 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
18788 (ca9_neon_mrrc): Likewise.
18789 (cortex_a9_neon_int_1): Likewise.
18790 (cortex_a9_neon_int_2): Likewise.
18791 (cortex_a9_neon_int_3): Likewise.
18792 (cortex_a9_neon_int_4): Likewise.
18793 (cortex_a9_neon_int_5): Likewise.
18794 (cortex_a9_neon_vqneg_vqabs): Likewise.
18795 (cortex_a9_neon_vmov): Likewise.
18796 (cortex_a9_neon_vaba): Likewise.
18797 (cortex_a9_neon_vaba_qqq): Likewise.
18798 (cortex_a9_neon_vsma): Likewise.
18799 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18800 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18801 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18802 long_scalar): Likewise.
18803 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18804 (cortex_a9_neon_mla_qqq_8_16): Likewise.
18805 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18806 long_scalar_qdd_64_32_long): Likewise.
18807 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18808 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18809 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
18810 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18811 (cortex_a9_neon_shift_1): Likewise.
18812 (cortex_a9_neon_shift_2): Likewise.
18813 (cortex_a9_neon_shift_3): Likewise.
18814 (cortex_a9_neon_vshl_ddd): Likewise.
18815 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18816 (cortex_a9_neon_vsra_vrsra): Likewise.
18817 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
18818 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
18819 (cortex_a9_neon_fp_vsum): Likewise.
18820 (cortex_a9_neon_fp_vmul_ddd): Likewise.
18821 (cortex_a9_neon_fp_vmul_qqd): Likewise.
18822 (cortex_a9_neon_fp_vmla_ddd): Likewise.
18823 (cortex_a9_neon_fp_vmla_qqq): Likewise.
18824 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
18825 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
18826 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18827 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18828 (cortex_a9_neon_bp_simple): Likewise.
18829 (cortex_a9_neon_bp_2cycle): Likewise.
18830 (cortex_a9_neon_bp_3cycle): Likewise.
18831 (cortex_a9_neon_ldr): Likewise.
18832 (cortex_a9_neon_str): Likewise.
18833 (cortex_a9_neon_vld1_1_2_regs): Likewise.
18834 (cortex_a9_neon_vld1_3_4_regs): Likewise.
18835 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18836 (cortex_a9_neon_vld2_4_regs): Likewise.
18837 (cortex_a9_neon_vld3_vld4): Likewise.
18838 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18839 (cortex_a9_neon_vst1_3_4_regs): Likewise.
18840 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
18841 (cortex_a9_neon_vst3_vst4): Likewise.
18842 (cortex_a9_neon_vld1_vld2_lane): Likewise.
18843 (cortex_a9_neon_vld3_vld4_lane): Likewise.
18844 (cortex_a9_neon_vst1_vst2_lane): Likewise.
18845 (cortex_a9_neon_vst3_vst4_lane): Likewise.
18846 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
18847 (cortex_a9_neon_mcr): Likewise.
18848 (cortex_a9_neon_mcr_2_mcrr): Likewise.
18849 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
18850 (cortex_a9_fps): Likewise.
18851 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
18853 (cortex_m4_fmuls): Likewise.
18854 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
18856 (cortex_r4_mrc): Likewise.
18857 * config/arm/iterators.md: Update comment referring to neon_type.
18858 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
18859 (iwmmxt_movsi_insn): Likewise.
18860 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
18862 (pj4_core_to_vfp): Likewise.
18863 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
18865 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
18866 (vfp_fstore): Likewise.
18867 * doc/md.texi: Change references to neon_type to refer to type.
18869 2013-09-04 Dodji Seketeli <dodji@redhat.com>
18871 * tree.h (DECL_BUILT_IN): Fix typo in comment.
18873 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
18875 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
18876 lglobl if not weak.
18878 2013-09-04 Easwaran Raman <eraman@google.com>
18880 PR middle-end/57370
18881 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
18882 (build_and_add_sum): Use it.
18883 (appears_later_in_bb): Simplify code.
18885 2013-09-04 Teresa Johnson <tejohnson@google.com>
18887 * dumpfile.c (dump_finish): Don't close stderr/stdout.
18889 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
18891 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
18893 2013-09-04 Jan Hubicka <jh@suse.cz>
18895 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
18896 * ipa-devirt.c: Include diganostic.h
18897 (odr_type_d): Add types and types_set.
18898 (hash_type_name): Work for types with vtables during LTO.
18899 (odr_hasher::remove): Fix comment; destroy types_set.
18900 (add_type_duplicate): New function,
18901 (get_odr_type): Use it.
18902 (dump_type_inheritance_graph): Dump type duplicates.
18903 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
18905 * tree.c (types_same_for_odr): Give exact answers on types with
18908 2013-09-04 Dodji Seketeli <dodji@redhat.com>
18910 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
18911 explaining their differences.
18913 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
18915 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
18917 2013-09-03 Jeff Law <law@redhat.com>
18919 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
18920 when not threading through a joiner block. Pass joiner/no joiner
18921 state to register_jump_thread.
18922 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
18923 state from argument rather than implying on path length.
18924 Dump the entire jump thread path into debugging dump.
18925 * tree-flow.h (register_jump_thread): Update prototype.
18927 2013-08-29 Xinliang David Li <davidxl@google.com>
18929 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18930 Remove a trivial gcc_assert.
18932 2013-08-29 Xinliang David Li <davidxl@google.com>
18934 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
18935 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
18936 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18937 Delay base decl alignment adjustment.
18938 * tree-vectorizer.c (vect_destroy_datarefs): New function.
18939 * tree-vectorizer.h: New data structure.
18940 (set_dr_misalignment): New function.
18941 (dr_misalignment): Ditto.
18942 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
18943 (vectorizable_load): Ditto.
18944 (ensure_base_align): New function.
18945 (vectorize_loops): Add dbg_cnt support.
18946 (execute_vect_slp): Ditto.
18947 * dbgcnt.def: New debug counter.
18948 * Makefile: New dependency.
18950 2013-09-03 Meador Inge <meadori@codesourcery.com>
18954 2013-08-30 Meador Inge <meadori@codesourcery.com>
18956 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
18958 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
18960 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
18961 function descriptor.
18963 2013-09-03 Richard Biener <rguenther@suse.de>
18965 * tree-affine.c (add_elt_to_tree): Fix association issue,
18966 avoid useless converts and make sure to always return a
18967 properly typed result.
18969 2013-09-03 Richard Biener <rguenther@suse.de>
18971 PR middle-end/57656
18972 * fold-const.c (negate_expr_p): Fix division case.
18973 (negate_expr): Likewise.
18975 2013-09-03 Richard Biener <rguenther@suse.de>
18978 * tree-streamer-out.c: Include tm.h.
18979 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
18981 2013-09-03 Jan Hubicka <jh@suse.cz>
18983 * tree-profile.c (tree_profiling): Cleanup CFG when done.
18985 2013-09-03 Alan Modra <amodra@gmail.com>
18987 * config.gcc (powerpc*-*-linux*): Add support for little-endian
18988 multilibs to big-endian target and vice versa.
18989 * config/rs6000/t-linux64: Use := assignment on all vars.
18990 (MULTILIB_EXTRA_OPTS): Remove fPIC.
18991 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
18992 * config/rs6000/t-linux64le: New file.
18993 * config/rs6000/t-linux64bele: New file.
18994 * config/rs6000/t-linux64lebe: New file.
18996 2013-09-02 Jan Hubicka <jh@suse.cz>
18998 * ipa-inline-transform.c (inline_transform): Do not
18999 optimize_inline_calls when not optimizing.
19001 2013-09-02 Jan Hubicka <jh@suse.cz>
19003 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19004 duplicated nodes for assembler names.
19005 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19006 hard registers from assembler name hash.
19008 2013-09-02 Jan Hubicka <jh@suse.cz>
19010 * ipa-split.c (execute_split_functions): Split externally visible
19011 functions called once.
19013 2013-09-02 Martin Jambor <mjambor@suse.cz>
19016 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19017 linked list. When finding the correct duplicate, also consider also
19018 the caller in additon to its inlined_to node.
19020 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19022 * config/aarch64/aarch64-simd-builtins.def
19023 (dup_lane_scalar): Remove.
19024 * config/aarch64/aarch64-simd.md
19025 (aarch64_simd_dup): Add 'w->w' alternative.
19026 (aarch64_dup_lane<mode>): Allow for VALL.
19027 (aarch64_dup_lane_scalar<mode>): Remove.
19028 (aarch64_dup_lane_<vswap_width_name><mode>): New.
19029 (aarch64_get_lane_signed<mode>): Add w->w altenative.
19030 (aarch64_get_lane_unsigned<mode>): Likewise.
19031 (aarch64_get_lane<mode>): Likewise.
19032 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
19033 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
19034 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
19035 (VCON): Change container of V2SF.
19036 (vswap_width_name): Likewise.
19037 * config/aarch64/arm_neon.h
19038 (__aarch64_vdup_lane_any): New.
19039 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19040 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
19041 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
19043 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
19045 PR middle-end/56382
19046 * expr.c (emit_move_complex): Do not move complex FP values as parts if
19047 the source or the destination is a single hard register.
19049 2013-09-02 Richard Biener <rguenther@suse.de>
19051 PR middle-end/57511
19052 * tree-scalar-evolution.c (instantiate_scev_name): Allow
19055 2013-09-02 Richard Biener <rguenther@suse.de>
19057 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
19058 arithmetic to sizetype.
19060 2013-09-02 Bin Cheng <bin.cheng@arm.com>
19062 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
19063 Find auto-increment use both before and after candidate.
19065 2013-09-02 Marek Polacek <polacek@redhat.com>
19067 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
19069 2013-09-01 Jan Hubicka <jh@suse.cz>
19071 * Makefile.in: Add ipa-profile.o
19072 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
19073 * cgraph.c (struct cgraph_propagate_frequency_data,
19074 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
19075 ipa-profile.c; replace cgraph_ by ipa_ prefix.
19076 * cgraph.h (cgraph_propagate_frequency): Remove.
19077 * ipa-inline-analysis.c: Include ipa-utils.h;
19078 drop duplicated cfgloop.h.
19079 (inline_update_callee_summaries): Update.
19080 * ipa-profile.c: New file.
19081 * ipa-utils.h (ipa_propagate_frequency): Declare.
19082 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
19083 data-streamer.h, value-prof.h.
19084 (symtab_remove_unreachable_nodes): Update profile.
19085 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
19086 account_time_size, cmp_counts, dump_histogram,
19087 ipa_profile_generate_summary, ipa_profile_write_summary,
19088 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
19089 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
19090 Move to ipa-profile.c.
19092 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
19094 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
19096 2013-09-01 Jan Hubicka <jh@suse.cz>
19098 * common.opt (fdevirtualize-speculatively): New function.
19099 * invoke.texi (fdevirtualize-speculatively): Document.
19100 * ipa-devirt.c: Include ipa-inline.h
19101 (likely_target_p): New function.
19102 (ipa_devirt): New function.
19103 (gate_ipa_devirt): New function.
19104 (pass_data_ipa_devirt): New static var.
19105 (pass_ipa_devirt): Likewise.
19106 (make_pass_ipa_devirt): New function.
19107 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
19108 (common_handle_option): Disable devirtualization when
19109 value range profiling is available.
19110 * passes.def (pass_ipa_devirt): Add.
19111 * timever.def (TV_IPA_DEVIRT): New timevar.
19112 * tree-pass.h (make_pass_ipa_devirt):
19114 2013-09-01 Iain Sandoe <iain@codesourcery.com>
19116 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
19117 include sanitize(undefined).
19119 2013-08-31 Diego Novillo <dnovillo@google.com>
19121 * Makefile.in (TREE_CORE_H): Define.
19123 (GTFILES): Add tree-core.h.
19124 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
19126 * tree-core.h: New file.
19127 Move all data structures, enum, typedefs, global
19128 declarations and constants from ...
19129 * tree.h: ... here.
19131 2013-08-31 Jan Hubicka <jh@suse.cz>
19133 * bulitins.c (expand_builtin): Do not early exit for gcov
19134 instrumented functions.
19136 2013-08-31 Marek Polacek <polacek@redhat.com>
19138 * ubsan.c: Include tm_p.h.
19140 2013-08-31 Jan Hubicka <jh@suse.cz>
19142 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
19145 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
19146 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
19147 * tree-cfg.c (verify_gimple_label): ... here.
19148 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
19149 (ipa_merge_profiles): New function.
19150 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
19151 (lto_input_function_body): Likewise.
19152 * ipa-utils.h (ipa_merge_profiles): Declare.
19153 * lto-streamer.h (lto_input_function_body): Update prototype.
19154 (emit_label_in_global_context_p): Remove.
19155 * lto-symtab.c: Include ipa-utils.h
19156 (lto_cgraph_replace_node): Use ipa_merge_profiles.
19158 2013-08-31 Jan Hubicka <jh@suse.cz>
19160 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
19162 2013-08-31 Jan Hubicka <jh@suse.cz>
19164 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
19166 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
19168 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
19169 "cmp" RTX before signed_comparison_operator check to account
19170 for "code" changes.
19172 2013-08-30 Jan Hubicka <jh@suse.cz>
19174 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
19175 (detect_type_change_1): Rename to ...
19176 (detect_type_change): ... this one; early return on non-polymorphic
19178 (detect_type_change_ssa): Add comp_type parameter; update
19179 use of detect_type_change.
19180 (compute_complex_assign_jump_func): Add param_type parameter;
19181 update use of detect_type_change_ssa.
19182 (compute_complex_ancestor_jump_func): Likewise.
19183 (ipa_get_callee_param_type): New function.
19184 (ipa_compute_jump_functions_for_edge): Compute parameter type;
19185 update calls to the jump function computation functions.
19187 2013-08-30 Teresa Johnson <tejohnson@google.com>
19188 Steven Bosscher <steven@gcc.gnu.org>
19190 * cfgrtl.c (fixup_new_cold_bb): New routine.
19191 (commit_edge_insertions): Invoke fixup_partitions.
19192 (find_partition_fixes): New routine.
19193 (fixup_partitions): Ditto.
19194 (verify_hot_cold_block_grouping): Update comments.
19195 (rtl_verify_edges): Invoke find_partition_fixes.
19196 (rtl_verify_bb_pointers): Update comments.
19197 (rtl_verify_bb_layout): Ditto.
19198 * basic-block.h (probably_never_executed_edge_p): Declare.
19199 (fixup_partitions): Ditto.
19200 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
19201 * bb-reorder.c (sanitize_hot_paths): New function.
19202 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
19203 sanitize_hot_paths.
19204 * predict.c (probably_never_executed_edge_p): New routine.
19205 * cfg.c (check_bb_profile): Add partition insanity warnings.
19207 2013-08-30 Meador Inge <meadori@codesourcery.com>
19209 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19211 2013-08-30 Marek Polacek <polacek@redhat.com>
19213 * Makefile.in (ubsan.o): Add.
19214 (c-family/c-ubsan.o): Add.
19215 (builtins.o): Add ubsan.h dependency.
19216 * ubsan.h: New file.
19217 * ubsan.c: New file.
19218 * common.opt: Add -fsanitize=undefined option.
19219 (flag_sanitize): Add variable.
19220 (fsanitize=): Add option. Add Driver.
19221 (fsanitize=thread): Remove option.
19222 (fsanitize=address): Likewise.
19223 (static-libubsan): New option.
19224 * doc/invoke.texi: Document the new flag and -static-libubsan.
19225 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19226 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19227 * builtin-attrs.def (ATTR_COLD): Define.
19228 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19229 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19230 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19231 * flag-types.h (sanitize_code): New enum.
19232 * opts.c (common_handle_option): Parse command line arguments
19233 of -fsanitize=. Add -fsanitize=unreachable option.
19234 * varasm.c (get_variable_section): Adjust.
19235 (assemble_noswitch_variable): Likewise.
19236 (assemble_variable): Likewise.
19237 (output_constant_def_contents): Likewise.
19238 (categorize_decl_for_section): Likewise.
19239 (place_block_symbol): Likewise.
19240 (output_object_block): Likewise.
19241 * builtins.def: Likewise.
19242 * toplev.c (compile_file): Likewise.
19243 (process_options): Likewise.
19244 * cppbuiltin.c: Likewise.
19245 * tsan.c (tsan_pass): Likewise.
19246 (tsan_gate): Likewise.
19247 (tsan_gate_O0): Likewise.
19248 * cfgexpand.c (partition_stack_vars): Likewise.
19249 (expand_stack_vars): Likewise.
19250 (defer_stack_allocation): Likewise.
19251 (expand_used_vars): Likewise.
19252 * cfgcleanup.c (old_insns_match_p): Likewise.
19253 * asan.c (asan_finish_file): Likewise.
19254 (asan_instrument): Likewise.
19255 (gate_asan): Likewise.
19256 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19257 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19258 (asan_global_struct): Use pointer_sized_int_node instead
19259 calling build_nonstandard_integer_type.
19260 (initialize_sanitizer_builtins): Likewise.
19261 (asan_finish_file): Likewise.
19262 * gcc.c: Document %{%:function(args):X}.
19263 (static_spec_functions): Add sanitize.
19264 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19265 store funcval != NULL there.
19266 (do_spec_1): Adjust handle_spec_function caller.
19267 (handle_braces): Allow %:function(args) as condition.
19268 (sanitize_spec_function): New function.
19269 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19270 (LIBUBSAN_SPEC): Likewise.
19271 (LIBUBSAN_EARLY_SPEC): Likewise.
19272 (SANITIZER_SPEC): Handle libubsan.
19273 (SANITIZER_EARLY_SPEC): Likewise.
19274 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
19275 instead of fsanitize=address.
19276 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
19277 instead of fsanitize=address*.
19278 * builtins.c: Include ubsan.h.
19279 (fold_builtin_0): Instrument __builtin_unreachable.
19280 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
19281 instead of flag_asan.
19282 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
19283 (pointer_sized_int_node): Define.
19284 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
19286 2013-08-30 Mike Stump <mikestump@comcast.net>
19288 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
19291 2013-08-29 Jan Hubicka <jh@suse.cz>
19293 * cgraph.c (cgraph_function_body_availability): Handle weakref
19295 * passes.def: Remove pass_fixup_cfg.
19296 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
19297 track when we need to remove functions.
19298 (gate_ipa_inline): Execute inlining always; add comment why.
19299 (pass_data_ipa_inline): Remove TODO_remove_functions.
19300 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
19301 do not produce summaries.
19302 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
19303 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
19304 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
19305 constant pool and vtable.
19307 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
19309 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
19310 New arm_neon.h's internal macros to specify 64-bit constants.
19311 Avoid using stdint.h's macros.
19313 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
19315 * recog.c (verify_changes): Verify that changes[i].old is non-zero
19316 before applying REG_P.
19318 2013-08-30 Jakub Jelinek <jakub@redhat.com>
19320 PR tree-optimization/58277
19321 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
19322 after seeing too many stmts with vdef in between dombb and current
19323 bb, invalidate everything.
19325 2013-08-30 Richard Biener <rguenther@suse.de>
19327 * fold-const.c (fold_single_bit_test): Fix overflow test.
19329 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
19331 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
19332 and which can live in a register, always retrieve the value on entry.
19333 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
19334 passed by invisible reference specially.
19335 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
19336 (vt_add_function_parameter): Correctly deal with a parameter passed by
19337 invisible reference.
19339 2013-08-30 Jan Hubicka <jh@suse.cz>
19341 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
19343 2013-08-30 Richard Biener <rguenther@suse.de>
19345 PR tree-optimization/58228
19346 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
19347 allow invariant loads in nested loop vectorization.
19349 2013-08-30 Richard Biener <rguenther@suse.de>
19351 PR tree-optimization/58223
19352 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
19353 (has_anti_or_output_dependence): ... this and adjust to also
19354 look for output dependences.
19355 (mark_nodes_having_upstream_mem_writes): Adjust.
19356 (rdg_flag_uses): Likewise.
19358 2013-08-30 Richard Biener <rguenther@suse.de>
19360 PR tree-optimization/58010
19361 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
19362 assert that we have a loop-closed PHI.
19364 2013-08-29 Jan Hubicka <jh@suse.cz>
19366 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
19367 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
19368 * lto-section-in.c (lto_free_function_in_decl_state): New function.
19369 (lto_free_function_in_decl_state_for_node): New function.
19371 2013-08-29 Xinliang David Li <davidxl@google.com>
19373 * loop-unroll.c (report_unroll_peel): Minor message change.
19374 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
19375 Emit alignment peeling message with default -fopt-info.
19376 (vect_loop_versioning): Emit loop version info message.
19377 * tree-vectorizer.c (vectorize_loops): Minor message change.
19378 (execute_vect_slp): Ditto.
19380 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
19382 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
19383 of the clone from the DECL_NAME of the original function.
19385 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
19387 * passes.c (register_pass): Add overload.
19388 * tree-pass.h (register_pass): Forward declare it. Add comment.
19390 2013-08-29 Jan Hubicka <jh@suse.cz>
19392 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
19393 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
19394 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
19395 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19396 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
19397 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
19398 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19399 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
19401 2013-08-29 Teresa Johnson <tejohnson@google.com>
19403 * dumpfile.c (dump_loc): Output column number.
19404 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
19405 * doc/invoke.texi: Document optall -fopt-info flag.
19406 * profile.c (read_profile_edge_counts): Use new dump framework.
19407 (compute_branch_probabilities): Ditto.
19408 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
19409 when pass not in any opt group.
19410 * pass_manager.h (pass_manager::get_pass_profile): New method.
19411 * value-prof.c (check_counter): Use new dump framework.
19412 (check_ic_target): Ditto.
19413 * coverage.c (get_coverage_counts): Ditto.
19414 (coverage_init): Setup new dump framework.
19416 2013-08-29 Richard Biener <rguenther@suse.de>
19418 PR tree-optimization/58246
19419 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
19420 handle the dominance check inside a basic-block.
19422 2013-08-29 Richard Biener <rguenther@suse.de>
19424 PR middle-end/57287
19425 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
19426 of default defs that appear in abnormal PHI nodes.
19428 2013-08-29 Richard Biener <rguenther@suse.de>
19430 PR tree-optimization/57685
19431 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
19432 single-use operands to avoid exponential complexity.
19434 2013-08-28 Dehao Chen <dehao@google.com>
19436 * ipa-inline.c (edge_badness): Fix integer underflow.
19438 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
19440 * gtm-builtins.def (_ITM_free): Declare leaf.
19442 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19445 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
19446 (*tls_local_dynamic_base_64_largepic): Likewise.
19447 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
19448 Remove predicate from call operand.
19449 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
19450 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
19452 2013-08-28 Jeff Law <law@redhat.com>
19454 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
19455 checks for the number of predecessors and successors allowed.
19456 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
19457 which require copying a joiner block if there is a request which
19458 is a subpath that requires no joiner block copying.
19460 2013-08-28 Jan Hubicka <jh@suse.cz>
19462 * lto-streamer-out.c (DFS_write_tree_body): Drop
19463 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
19464 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
19465 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
19466 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
19467 Do not read DECL_ERROR_ISSUED.
19468 (unpack_ts_decl_with_vis_value_fields): Do not read
19470 (lto_input_ts_binfo_tree_pointers): Do not read
19471 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
19472 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
19473 write DECL_ERROR_ISSUED..
19474 (pack_ts_decl_with_vis_value_fields): Do not write
19476 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
19477 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
19478 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
19479 * tree.h (tree_decl_common): Update comment.
19480 (DECL_ERROR_ISSUED): Remove.
19482 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19484 PR middle-end/58257
19485 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
19487 2013-08-28 Jan Hubicka <jh@suse.cz>
19489 * builtins.def (free): Declare leaf.
19491 2013-08-27 David Malcolm <dmalcolm@redhat.com>
19493 * gdbhooks.py: New.
19494 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
19495 * configure: Regenerate.
19497 2013-08-27 Martin Jambor <mjambor@suse.cz>
19499 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
19500 (ipa_ancestor_jf_data): Likewise.
19501 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
19502 (ipa_get_jf_pass_through_type_preserved): New function.
19503 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
19504 (ipa_get_jf_ancestor_type_preserved): New function.
19505 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
19506 (ipa_get_jf_ancestor_result): Likewise.
19507 (propagate_vals_accross_pass_through): Use
19508 ipa_get_jf_pass_through_result to do all the value mappings.
19509 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
19510 type_preserved flag.
19511 (ipa_set_jf_cst_copy): New function.
19512 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
19513 (ipa_set_jf_arith_pass_through): Likewise.
19514 (ipa_set_ancestor_jf): Likewise.
19515 (compute_complex_assign_jump_func): Set type_preserved instead of
19517 (ipa_compute_jump_functions_for_edge): Likewise.
19518 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
19519 (update_jump_functions_after_inlining): Update type_preserved.
19520 Explicitely create jump functions when combining one with pass_through.
19521 (ipa_write_jump_function): Stream the type_preserved flags.
19522 (ipa_read_jump_function): Likewise.
19524 2013-08-27 Jakub Jelinek <jakub@redhat.com>
19525 Aldy Hernandez <aldyh@redhat.com>
19527 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
19528 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
19529 * function.h (struct function): Add has_force_vect_loops and
19531 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
19532 * gimple.c (gimple_build_omp_critical): Add KIND argument and
19534 * gimple.def: Update CLAUSES comments.
19535 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
19536 (gimple_build_omp_for): Add argument to prototype.
19537 (gimple_omp_for_kind): New.
19538 (gimple_omp_for_set_kind): New.
19539 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
19540 GOVD_DATA_SHARE_CLASS.
19541 (enum omp_region_type): Add ORT_SIMD.
19542 (gimple_add_tmp_var): Handle ORT_SIMD.
19543 (gimplify_var_or_parm_decl): Same.
19544 (is_gimple_stmt): Same.
19545 (omp_firstprivatize_variable): Same.
19546 (omp_add_variable): Only use splay_tree_insert if lookup failed.
19547 (omp_notice_variable): Handle ORT_SIMD.
19548 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
19549 (omp_check_private): Handle ORT_SIMD.
19550 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19551 OMP_CLAUSE_SAFELEN.
19552 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
19553 Handle OMP_CLAUSE_LASTPRIVATE.
19554 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19555 OMP_CLAUSE_SAFELEN.
19556 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
19557 (gimplify_expr): Handle OMP_SIMD.
19558 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
19559 (expand_GOMP_SIMD_VF): New.
19560 (expand_GOMP_SIMD_LAST_LANE): New.
19561 * internal-fn.def (GOMP_SIMD_LANE): New.
19562 (GOMP_SIMD_VF): New.
19563 (GOMP_SIMD_LAST_LANE): New.
19564 * omp-low.c: Include target.h.
19565 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
19566 OMP_CLAUSE_SAFELEN.
19567 (check_omp_nesting_restrictions): Same.
19569 (lower_rec_simd_input_clauses): New.
19570 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
19572 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
19573 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
19574 (expand_omp_build_assign): New.
19575 (expand_omp_for_init_counts): New.
19576 (expand_omp_for_init_vars): New.
19577 (extract_omp_for_update_vars): New.
19578 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
19579 and rewrite accordingly.
19580 (expand_omp_simd): New.
19581 (expand_omp_for): Use expand_omp_simd.
19582 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
19583 (lower_omp_for): Do not lower the body.
19584 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
19585 in their own loops.
19586 * tree-flow.h (find_omp_clause): Remove prototype.
19587 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
19588 forcing vectorization of the loop, or if flag_tree_vectorize.
19589 (gate_tree_if_conversion): Similarly.
19590 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
19591 gimple_build_omp_for.
19592 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
19593 * tree-parloops (create_parallel_loop): Pass kind argument to
19594 gimple_build_omp_for.
19595 * tree-pretty-print.c (dump_omp_clause): Add cases for
19596 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
19597 OMP_CLAUSE__SIMDUID_.
19598 (dump_generic_node): Handle OMP_SIMD.
19599 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
19600 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
19601 unroll OMP_SIMD loops here.
19602 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
19603 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
19605 (vect_analyze_data_refs): Handle simd loops.
19606 * tree-vect-loop.c (vectorizable_live_operation): Handle
19608 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
19609 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
19610 (vectorizable_load): Same.
19611 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
19612 (struct simduid_to_vf): New.
19613 (simduid_to_vf::hash): New.
19614 (simduid_to-vf::equal): New.
19615 (struct simd_array_to_simduid): New.
19616 (simd_array_to_simduid::hash): New.
19617 (simd_array_to_simduid::equal): New.
19618 (adjust_simduid_builtins): New.
19619 (struct note_simd_array_uses_struct): New.
19620 (note_simd_array_uses_cb): New.
19621 (note_simd_array_uses): New.
19622 (vectorize_loops): Handle simd hints and adjust simd builtins
19624 * tree-vectorizer.h (struct _stmt_vec_info): Add
19625 simd_lane_access_p field.
19626 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
19627 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
19628 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
19629 (omp_clause_code_name): Same.
19630 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
19631 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
19632 * tree.def (OMP_SIMD): New entry.
19633 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
19634 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
19635 (OMP_CLAUSE_DECL): Adjust range for new clauses.
19636 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
19637 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
19638 (OMP_CLAUSE_LINEAR_STEP): New.
19639 (OMP_CLAUSE_SAFELEN_EXPR): New.
19640 (OMP_CLAUSE__SIMDUID__DECL): New.
19641 (find_omp_clause): New prototype.
19643 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
19645 * config/i386/driver-i386.c (host_detect_local_cpu): Update
19646 Haswell processor detection.
19648 2013-08-27 Christian Widmer <shadow@umbrox.de>
19651 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
19652 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
19653 AVX2 capable processors.
19655 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
19657 * config/aarch64/arm_neon.h: Replace all inline asm implementations
19658 of vget_low_* with implementations in terms of other intrinsics.
19660 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
19662 PR middle-end/57219
19663 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
19664 values to -1, 0 and 1.
19666 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
19668 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
19669 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
19670 (<optab><mode>3_insn): Remove.
19671 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
19672 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19673 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19674 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
19675 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
19676 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
19677 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
19678 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
19679 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
19680 (ror<mode>3_insn): Likewise.
19681 * config/aarch64/predicates.md (aarch64_simd_register): New.
19683 2013-08-27 Richard Biener <rguenther@suse.de>
19685 PR tree-optimization/57521
19686 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
19687 one edge is non-critical.
19688 (find_phi_replacement_condition): Make sure to use a non-critical
19689 edge. Cleanup and remove old bug workarounds.
19690 (bb_postdominates_preds): Remove.
19691 (if_convertible_loop_p_1): Do not compute post-dominators.
19692 (combine_blocks): Do not free post-dominators.
19693 (main_tree_if_conversion): Likewise.
19694 (pass_data_if_conversion): Add TODO_verify_ssa.
19696 2013-08-27 DJ Delorie <dj@redhat.com>
19698 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
19700 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
19702 * function.c (assign_parm_find_data_types): Set passed_mode and
19703 nominal_mode to the TYPE_MODE of nominal_type for the built
19704 pointer type in case of the struct-pass-by-reference.
19706 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19708 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
19709 (UINT16_TYPE): Change default to "unsigned int".
19711 * config/avr/avr.opt (mfract-convert-truncate): New option.
19712 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
19713 is set, round negative fractional integers according to n1169
19714 when converting to integer types.
19716 2013-08-26 Jan Hubicka <jh@suse.cz>
19718 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
19719 methods can not be called indirectly when their address is not taken.
19721 2013-08-26 Jan Hubicka <jh@suse.cz>
19723 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
19726 2013-08-26 Jan Hubicka <jh@suse.cz>
19728 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
19731 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19733 * reload.c (find_valid_class): Allow classes that do not include
19734 FIRST_PSEUDO_REGISTER - 1.
19736 2013-08-26 Jan Hubicka <jh@suse.cz>
19738 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
19739 fix edge count/frequency when speculation failed; fix type check
19740 for the direct call.
19742 2013-08-26 Jan Hubicka <jh@suse.cz>
19744 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
19746 2013-08-26 Jan Hubicka <jh@suse.cz>
19748 * ipa-inline-transform.c (inline_transform): Be ready for basic block
19749 to be changed by edge redirection.
19751 2013-08-26 Jan Hubicka <jh@suse.cz>
19753 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
19754 formating; add sanity check.
19755 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
19756 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
19757 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
19758 (resolve_noninline_speculation): Update callee keys, too.
19760 2013-08-26 Jan Hubicka <jh@suse.cz>
19762 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
19763 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
19765 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19767 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
19770 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
19772 * config/i386/i386.c (ix86_debug_options): Remove prototype.
19773 (x86_64_elf_select_section): Ditto.
19774 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
19776 (ix86_pass_by_reference): Ditto.
19777 (output_set_got): Ditto.
19778 (ix86_unary_operator_ok): Ditto.
19779 (ix86_expand_builtin): Ditto.
19781 2013-08-23 Jan Hubicka <jh@suse.cz>
19783 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
19785 2013-08-23 Jan Hubicka <jh@suse.cz>
19787 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
19788 (tree_decl_with_vis): Add FINAL field.
19790 2013-08-23 Jeff Law <law@redhat.com>
19792 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
19793 the debugging dump when the expression is fully redundant.
19795 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19797 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
19798 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
19799 * pretty-print.c (pp_formatted_text_data): Likewise.
19800 (pp_write_text_to_stream): Likewise.
19801 (pp_write_text_as_dot_label_to_stream): Likewise.
19802 (pp_append_r): Likewise.
19803 (pp_format): Likewise.
19804 (pp_flush): Likewise.
19805 (pp_clear_output_area): Likewise.
19806 (pp_append_text): Likewise.
19807 (pp_formatted_text): Likewise.
19808 (pp_remaining_character_count_for_line): Likewise.
19809 (pp_newline): Likewise.
19810 (pp_character): Likewise.
19811 (output_buffer::~output_buffer): Define.
19812 (pretty_printer::~pretty_printer): Destruct output buffer.
19813 * pretty-print.h (output_buffer::~output_buffer): Declare.
19814 (pretty_printer::~pretty_printer): Declare virtual.
19816 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
19819 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
19820 HOST_WIDE_INT_M1U): New macros.
19821 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
19822 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
19823 unsigned -1 for lshift.
19824 * cse.c (cse_insn): Likewise.
19825 * double-int.c (rshift_double, lshift_double): Likewise.
19826 * builtins.c (fold_builtin_bitop): Likewise.
19827 * combine.c (force_to_mode): Likewise.
19828 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
19829 * simplify-rtx.c (simplify_const_unary_operation,
19830 simplify_const_binary_operation): Likewise.
19831 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
19832 check_va_list_escapes): Likewise.
19833 * rtlanal.c (nonzero_bits1): Likewise.
19834 * expmed.c (expand_smod_pow2): Likewise.
19835 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
19837 2013-08-23 Jan Hubicka <jh@suse.cz>
19839 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
19840 as having address taken.
19842 2013-08-23 Jan Hubicka <jh@suse.cz>
19844 * ipa-utils.h (method_class_type): Declare.
19845 * ipa-devirt.c (method_class_type): Export.
19847 * cgraphunit.c (analyze_functions): Do basic devirtualization;
19848 do not walk base classes of anonymous types.
19850 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
19852 PR rtl-optimization/58220
19853 PR regression/58221
19854 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
19855 handle SEQUENCE insns properly.
19857 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19859 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
19861 (pp_newline_and_indent): Likewise.
19862 (pp_separate_with): Likewise.
19863 * pretty-print.c (pp_newline_and_flush): Define.
19864 (pp_newline_and_indent): Likewise.
19865 (pp_separate_with): Likewise.
19867 2013-08-23 Jakub Jelinek <jakub@redhat.com>
19870 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
19871 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
19873 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
19875 * config/i386/predicates.md (ext_sse_reg_operand): New.
19876 * config/i386/i386.md (*movti_internal): Use
19877 predicate to determine if EVEX is needed.
19878 (*movsi_internal): Ditto.
19879 (*movdf_internal): Ditto.
19880 (*movsf_internal): Ditto.
19881 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
19883 2013-08-23 Jakub Jelinek <jakub@redhat.com>
19885 PR tree-optimization/58209
19886 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
19887 (find_tail_calls): Give up for pointer result types if m is non-NULL.
19888 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
19889 emit POINTER_PLUS_EXPR.
19890 (create_tailcall_accumulator): For pointer result type accumulate in
19893 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
19895 * configure.ac: Add backslashes missing from the last change.
19896 * configure: Regenerate.
19898 2013-08-22 Jan Hubicka <jh@susue.cz>
19900 * ipa.c (function_and_variable_visibility): First remember function
19901 was global and then make it local.
19903 2013-08-22 Julian Brown <julian@codesourcery.com>
19905 * configure.ac: Add aarch64 to list of arches which use "nop" in
19907 * configure: Regenerate.
19909 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19911 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
19912 gnu_libc_has_function.
19913 * config/s390/tpf.h: Likewise.
19915 2013-08-22 Jan Hubicka <jh@susue.cz>
19917 * timevar.c (validate_phases): Add cast.
19919 2013-08-22 Jan Hubicka <jh@susue.cz>
19921 * timevar.c (validate_phases): Use size_t for memory.
19922 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
19924 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
19926 * pretty-print.h (output_buffer::output_buffer): Declare.
19927 (pretty_printer::pretty_printer): Likewise.
19928 (pp_construct): Remove.
19929 * pretty-print.c (output_buffer::output_buffer): Define.
19930 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
19931 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
19932 (print_gimple_expr): Likewise.
19933 (print_gimple_seq): Likewise.
19934 (gimple_dump_bb): Likewise.
19935 * sched-vis.c (dump_value_slim): Likewise.
19936 (dump_insn_slim): Likewise.
19937 (dump_rtl_slim): Likewise.
19938 (str_pattern_slim): Likewise.
19939 * tree-mudflap.c (mf_varname_tree): Likewise.
19940 * graph.c (print_graph_cfg): Likewise.
19941 (start_graph_dump): Likewise.
19942 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
19944 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
19945 pretty printer initialization.
19946 * coretypes.h (diagnostic_context): Remove superflous type alias
19948 (pretty_printer): Likewise. Declare directly as a class.
19949 (pretty_print_info): Remove declaration as class.
19950 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
19951 and pp_clear_output_area.
19952 (asan_add_global): Likewise.
19954 2013-08-22 Jan Hubicka <jh@suse.cz>
19956 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
19957 * ipa-utils.h (update_type_inheritance_graph): Declare.
19958 (possible_polymorphic_call_target_p): Declare.
19959 (possible_polymorphic_call_target_p): New.
19960 * ipa-devirt.c: Update toplevel comments.
19961 (cached_polymorphic_call_targets): Move up.
19962 (odr_type_d): Move ID down.
19963 (polymorphic_type_binfo_p): Update comment.
19964 (odr_hasher::remove): Likewise;
19965 (get_odr_type): Set anonymous_namespace.
19966 (dump_odr_type): Dump it.
19967 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
19968 (maybe_record_node): Record node in cached_polymorphic_call_targets.
19969 (record_binfo): Add comment.
19970 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
19972 (devirt_node_removal_hook): Do not iCE when cache is freed.
19973 (possible_polymorphic_call_target_p): New predicate.
19974 (update_type_inheritance_graph): New function.
19976 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
19977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19978 Sergey Lega <sergey.s.lega@intel.com>
19979 Anna Tikhonova <anna.tikhonova@intel.com>
19980 Ilya Tocar <ilya.tocar@intel.com>
19981 Andrey Turetskiy <andrey.turetskiy@intel.com>
19982 Ilya Verbin <ilya.verbin@intel.com>
19983 Kirill Yukhin <kirill.yukhin@intel.com>
19984 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19986 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
19987 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
19988 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
19989 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
19990 (OPTION_MASK_ISA_AVX2_UNSET): Update.
19991 (OPTION_MASK_ISA_AVX512F_UNSET): New.
19992 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
19993 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
19994 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
19995 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
19996 OPT_mavx512pf, OPT_mavx512er cases.
19997 * config/i386/constraints.md (v): New constraint.
19998 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
19999 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20000 (bit_AVX512CD): New.
20001 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20002 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20003 * config/i386/i386-c.c (ix86_target_macros_internal):
20004 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20006 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20007 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20008 * config/i386/i386.c (regclass_map, dbx_register_map)
20009 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20010 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20011 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20012 -mavx512pf options.
20013 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20014 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20015 -mavx512pf options. Fix formatting.
20016 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20017 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20018 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20019 -mavx512cd, -mavx512pf options.
20020 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20021 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
20022 (ix86_preferred_output_reload_class): Replace SSE_REGS with
20024 (ix86_hard_regno_mode_ok): Support 512-bit registers.
20025 (ix86_set_reg_reg_cost): Ditto.
20026 (x86_order_regs_for_local_alloc): Ditto.
20027 (MAX_VECT_LEN): Extend to 64-byte.
20028 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
20029 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
20030 (TARGET_AVX512ER, TARGET_AVX512CD): New.
20031 (BIGGEST_ALIGNMENT): Extend to 512-bits.
20032 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
20033 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
20034 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
20035 (SSE_REG_MODE_P): Support new modes.
20036 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
20037 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
20038 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
20039 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
20040 (REG_CLASS_CONTENTS): Add new registers.
20041 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
20042 (EXT_REX_SSE_REGNO_P): New.
20043 (HI_REGISTER_NAMES): Add new registers.
20044 * config/i386/i386.md: Define constants for new registers.
20045 (mode): Add new 512-bit modes.
20046 (prefix): Support evex prefix.
20047 (isa): Support avx512f, noavx512f, fma_avx512f.
20048 (ssemodesuffix): Add new 512-bit modes.
20050 (*movxi_internal_avx512f): Ditto.
20051 (*movdi_internal): Replace constraint "x" with the new constraint "v".
20053 (*movsi_internal): Likewise.
20054 (*movdf_internal): Likewise.
20055 (*movsf_internal): Likewise.
20056 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
20057 (<code><mode>3): Likewise.
20058 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
20060 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
20061 with the new constraint "v".
20062 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
20064 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
20065 with the new constraint "v".
20066 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
20067 (<sse2>_storedqu<avxsizesuffix>): Likewise.
20068 (*<plusminus_insn><mode>3): Likewise.
20069 (<sse>_vm<plusminus_insn><mode>3): Likewise.
20070 (*mul<mode>3): Likewise.
20071 (<sse>_vmmul<mode>3): Likewise.
20072 (<sse>_div<mode>3): Likewise.
20073 (<sse>_vmdiv<mode>3): Likewise.
20074 (<sse>_sqrt<mode>2): Likewise.
20075 (<sse>_vmsqrt<mode>2): Likewise.
20076 (*<code><mode>3_finite): Likewise.
20077 (*<code><mode>3) <smaxmin>: Likewise.
20078 (<sse>_vm<code><mode>3): Likewise.
20079 (*<code><mode>3) <any_logic>: Likewise.
20080 (*fma_fmadd_<mode>): Likewise.
20081 (*fma_fmsub_<mode>): Likewise.
20082 (*fma_fnmadd_<mode>): Likewise.
20083 (*fma_fnmsub_<mode>): Likewise.
20084 (*fma_fmaddsub_<mode>): Likewise.
20085 (*fma_fmsubadd_<mode>): Likewise.
20086 (*fmai_fmadd_<mode>): Likewise.
20087 (*fmai_fmsub_<mode>): Likewise.
20088 (*fmai_fnmadd_<mode>): Likewise.
20089 (*fmai_fnmsub_<mode>): Likewise.
20090 (sse_cvtsi2ss): Likewise.
20091 (sse_cvtsi2ssq): Likewise.
20092 (sse_cvtss2si): Likewise.
20093 (sse_cvtss2si_2): Likewise.
20094 (sse_cvtss2siq): Likewise.
20095 (sse_cvtss2siq_2): Likewise.
20096 (sse_cvttss2si): Likewise.
20097 (sse_cvtss2siq_2): Likewise.
20098 (float<sseintvecmodelower><mode>2): Likewise.
20099 (sse2_cvtsd2si_2): Likewise.
20100 (sse2_cvtsd2siq_2): Likewise.
20101 (*<plusminus_insn><mode>3): Likewise.
20102 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
20103 (*<sse4_1_avx2>_mul<mode>3): Likewise.
20104 (ashr<mode>3): Likewise.
20105 (<shift_insn><mode>3): Likewise.
20106 (avx2_<code><mode>3): Likewise.
20107 (*avx2_<code><mode>3): Likewise.
20108 (*andnot<mode>3): Likewise.
20109 (*<code><mode>3) <any_logic>: Likewise.
20110 (abs<mode>2): Likewise.
20111 (avx2_permvar<mode>): Likewise.
20112 (avx2_perm<mode>_1): Likewise.
20113 (*avx_vpermilp<mode>): Likewise.
20114 (avx_vpermilvar<mode>3): Likewise.
20115 (avx2_ashrv<mode>): Likewise.
20116 (avx2_<shift_insn>v<mode>): Likewise.
20117 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
20119 * doc/rtl.texi: Document XImode.
20121 2013-08-21 Jeff Law <law@redhat.com>
20123 * tree-flow.h (register_jump_thread): Pass vector of edges
20124 instead of each important edge.
20125 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
20126 thread path into a vector and pass that to register_jump_thread.
20127 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
20128 passed in edge vector to the current 3-edge form.
20131 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20133 * dce.c (fini_dce): Call df_analyze again just in case
20134 delete_unmarked_insns removed anything.
20136 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
20138 * reload.h (struct reg_equivs): Rename to ..
20139 (struct reg_equivs_s): .. this.
20141 2013-08-20 Martin Liska <marxin.liska@gmail.com>
20143 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
20145 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20147 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
20149 2013-08-21 Jeff Law <law@redhat.com>
20151 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
20152 simplify assignments too. If the RHS collapses to a singleton
20153 range, then return the value for the range.
20155 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
20157 * config/i386/sse.md (V16): Rename to...
20159 (mov<mode>): Update iterator name.
20160 (*mov<mode>_internal): Ditto.
20161 (push<mode>1): Ditto.
20162 (movmisalign<mode>): Ditto.
20164 2013-08-20 Jan Hubicka <jh@suse.cz>
20167 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
20168 entry for direct edges.
20169 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
20171 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20173 Revert my last two changes, r201865 and r201864:
20176 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20178 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20179 instances can own GC refs.
20181 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20182 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20183 (gcc::context::gt_pch_nx): Likewise.
20184 (gcc::context::gt_pch_nx): Likewise.
20185 * ggc.h (gt_ggc_mx <T>): New.
20186 (gt_pch_nx_with_op <T>): New.
20187 (gt_pch_nx <T>): New.
20188 * passes.c (opt_pass::gt_ggc_mx): New.
20189 (opt_pass::gt_pch_nx): New.
20190 (opt_pass::gt_pch_nx_with_op): New.
20191 (pass_manager::gt_ggc_mx): New.
20192 (pass_manager::gt_pch_nx): New.
20193 (pass_manager::gt_pch_nx_with_op): New.
20194 (pass_manager::operator new): Use
20195 ggc_internal_cleared_alloc_stat rather than xcalloc.
20196 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20197 (pass_manager::gt_ggc_mx): New.
20198 (pass_manager::gt_pch_nx): New.
20199 (pass_manager::gt_pch_nx_with_op): New.
20200 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20201 (opt_pass::operator new): New.
20202 (opt_pass::gt_ggc_mx): New.
20203 (opt_pass::gt_pch_nx): New.
20204 (opt_pass::gt_pch_nx_with_op): New.
20207 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20209 * Makefile.in (GTFILES): Add context.h.
20210 * context.c (gcc::context::operator new): New.
20211 (gcc::context::gt_ggc_mx): New.
20212 (gcc::context::gt_pch_nx): New.
20213 (gcc::context::gt_pch_nx): New.
20214 * context.h (gcc::context): Add GTY((user)) marking.
20215 (gcc::context::operator new): New.
20216 (gcc::context::gt_ggc_mx): New.
20217 (gcc::context::gt_pch_nx): New.
20218 (gcc::context::gt_pch_nx): New.
20219 (g): Add GTY marking.
20220 (gt_ggc_mx (gcc::context *)): New.
20221 (gt_pch_nx (gcc::context *)): New.
20222 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20223 void *cookie)): New.
20224 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20226 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20228 * dce.c (fini_dce): Call df_analyze again just in case
20229 delete_unmarked_insns removed anything.
20231 2013-08-20 Teresa Johnson <tejohnson@google.com>
20233 PR rtl-optimizations/57451
20234 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20235 from crossing split section boundaries.
20237 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20239 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20240 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20241 with MULTLIB_DEFAULTS.
20243 2013-08-20 Nick Clifton <nickc@redhat.com>
20245 * target.def (narrow_volatile_bitfield): Note that the default
20246 value is false, not !TARGET_STRICT_ALIGN.
20247 * doc/tm.texi: Regenerate.
20249 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20251 Fix LIB_SPEC for systems without libpthread.
20253 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20254 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20256 * config/i386/linux-common.h: Likewise.
20257 * config/mips/linux-common.h: Likewise.
20259 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20261 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20264 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20266 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20267 instances can own GC refs.
20269 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20270 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20271 (gcc::context::gt_pch_nx): Likewise.
20272 (gcc::context::gt_pch_nx): Likewise.
20273 * ggc.h (gt_ggc_mx <T>): New.
20274 (gt_pch_nx_with_op <T>): New.
20275 (gt_pch_nx <T>): New.
20276 * passes.c (opt_pass::gt_ggc_mx): New.
20277 (opt_pass::gt_pch_nx): New.
20278 (opt_pass::gt_pch_nx_with_op): New.
20279 (pass_manager::gt_ggc_mx): New.
20280 (pass_manager::gt_pch_nx): New.
20281 (pass_manager::gt_pch_nx_with_op): New.
20282 (pass_manager::operator new): Use
20283 ggc_internal_cleared_alloc_stat rather than xcalloc.
20284 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20285 (pass_manager::gt_ggc_mx): New.
20286 (pass_manager::gt_pch_nx): New.
20287 (pass_manager::gt_pch_nx_with_op): New.
20288 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20289 (opt_pass::operator new): New.
20290 (opt_pass::gt_ggc_mx): New.
20291 (opt_pass::gt_pch_nx): New.
20292 (opt_pass::gt_pch_nx_with_op): New.
20294 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20296 * Makefile.in (GTFILES): Add context.h.
20297 * context.c (gcc::context::operator new): New.
20298 (gcc::context::gt_ggc_mx): New.
20299 (gcc::context::gt_pch_nx): New.
20300 (gcc::context::gt_pch_nx): New.
20301 * context.h (gcc::context): Add GTY((user)) marking.
20302 (gcc::context::operator new): New.
20303 (gcc::context::gt_ggc_mx): New.
20304 (gcc::context::gt_pch_nx): New.
20305 (gcc::context::gt_pch_nx): New.
20306 (g): Add GTY marking.
20307 (gt_ggc_mx (gcc::context *)): New.
20308 (gt_pch_nx (gcc::context *)): New.
20309 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20310 void *cookie)): New.
20311 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20313 2013-08-20 Alan Modra <amodra@gmail.com>
20316 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
20317 (rs6000_emit_epilogue): Likewise.
20319 2013-08-19 Dehao Chen <dehao@google.com>
20321 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
20323 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
20324 Jakub Jelinek <jakub@redhat.com>
20326 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
20327 (BUILT_IN_FABSD64): Likewise.
20328 (BUILT_IN_FABSD128): Likewise.
20329 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
20330 (fold_builtin_1): Likewise.
20331 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
20332 destination and source operands.
20333 (*abstd2_fpr): Likewise.
20334 (*nabstd2_fpr): Likewise.
20336 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
20338 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
20341 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
20343 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
20346 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20348 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
20349 * builtins.c (default_libc_has_function): New.
20350 (gnu_libc_has_function): Ditto.
20351 (no_c99_libc_has_function): Ditto.
20352 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
20353 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
20354 (fold_builtin_sincos): Likewise.
20355 (fold_builtin_cexp): Likewise.
20356 * builtins.def (DEF_C94_BUILTIN): Likewise.
20357 (DEF_C99_BUILTIN): Likewise.
20358 (DEF_C99_C90RES_BUILTIN): Likewise.
20359 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
20360 definitions to using this define.
20361 * config/darwin-protos.h (darwin_libc_has_function): New.
20362 * config/darwin.c (darwin_libc_has_function): Ditto.
20363 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
20364 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
20365 * config/darwin.h: Ditto.
20366 * config/elfos.h: Ditto.
20367 * config/freebsd.h: Ditto.
20368 * config/i386/cygming.h: Ditto.
20369 * config/i386/djgpp.h: Ditto.
20370 * config/i386/i386-interix.h: Ditto.
20371 * config/microblaze/microblaze.h: Ditto.
20372 * config/mmix/mmix.h: Ditto.
20373 * config/gnu-user.h: Ditto.
20374 * config/ia64/hpux.h: Ditto.
20375 * config/pa/pa-hpux.h: Ditto.
20376 * config/pdp11/pdp11.h: Ditto.
20377 * config/picochip/picochip.h: Ditto.
20378 * config/linux.h: Ditto.
20379 * config/netbsd.h: Ditto.
20380 * config/openbsd.h: Ditto.
20381 * config/rs6000/aix43.h: Ditto.
20382 * config/rs6000/aix51.h: Ditto.
20383 * config/rs6000/aix52.h: Ditto.
20384 * config/rs6000/aix53.h: Ditto.
20385 * config/rs6000/aix61.h: Ditto.
20386 * config/rs6000/darwin.h: Ditto.
20387 * config/rs6000/linux.h: Ditto.
20388 * config/rs6000/linux64.h: Ditto.
20389 * config/s390/tpf.h: Ditto.
20390 * config/sol2-10.h: Ditto.
20391 * config/sol2.h: Ditto.
20392 * config/vms/vms.h: Ditto.
20393 * config/vxworks.h: Ditto.
20394 * config/linux-android.c (linux_android_libc_has_function):
20395 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
20396 * config/linux-protos.h (linux_android_libc_has_function):
20398 * config/i386/i386.c (ix86_libc_has_function): New.
20399 * config/i386/i386-protos.h
20400 (ix86_libc_has_function): New declaration.
20401 * config/i386/i386.md
20402 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
20403 ("isinf<mode>2): Likewise.
20404 * convert.c (convert_to_integer): Using new target hook
20405 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
20406 TARGET_C99_FUNCTIONS.
20407 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
20408 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
20409 * coretypes.h (function_class): New enum for different
20410 classes of functions.
20411 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
20412 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
20413 (TARGET_HAS_SINCOS): Likewise.
20414 (TARGET_LIBC_HAS_FUNCTION): New.
20415 * doc/tm.texi: Regenerated.
20416 * targhooks.h (default_libc_has_function): New declaration.
20417 (no_c99_libc_has_function): Ditto.
20418 (gnu_libc_has_function): Ditto.
20419 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
20420 and TARGET_HAS_SINCOS.
20422 2013-08-18 Jan Hubicka <jh@suse.cz>
20424 * Makeifle-in (ipa-devirt.o): New.
20425 (GTFILES): Add ipa-utils.h and ipa-devirt.c
20426 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
20427 (analyze_functions): Look into possible targets of polymorphic call.
20428 * dumpfile.c (dump_files): Add type-inheritance dump.
20429 * dumpfile.h (TDI_inheritance): New.
20430 * ipa-devirt.c: New file.
20431 * ipa-utils.h (odr_type_d): Forward declare.
20432 (odr_type): New type.
20433 (build_type_inheritance_graph): Declare.
20434 (possible_polymorphic_call_targets): Declare and introduce inline
20435 variant when only edge is pased.
20436 (dump_possible_polymorphic_call_targets): Likewise.
20437 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
20438 * tree.c (type_in_anonymous_namespace_p): Break out from ...
20439 (types_same_for_odr): ... here.
20440 * tree.h (type_in_anonymous_namespace_p): Declare.
20442 2013-08-18 Jakub Jelinek <jakub@redhat.com>
20444 PR tree-optimization/58006
20445 * tree-parloops.c (take_address_of): Don't ICE if get_name
20447 (eliminate_local_variables_stmt): Remove clobber stmts.
20449 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
20451 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
20452 error message is issued for an alias to undefined symbol.
20454 2013-08-18 Jan Hubicka <jh@suse.cz>
20456 * cgraph.c (cgraph_create_indirect_edge): Discover
20457 polymorphic calls and record basic info into indirect_info.
20458 * gimple-fold.c (gimple_fold_call): When doing BINFO based
20459 devirtualization, ignore objc function calls.
20460 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
20461 call with no parm index info.
20462 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
20463 * tree.c (virtual_method_call_p): New function.
20464 * tree.h (virtual_method_call_p): Declare.
20466 2013-08-16 Jan Hubicka <jh@suse.cz>
20468 PR middle-end/58179
20469 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
20471 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
20473 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
20476 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20478 * gengtype.c (type_for_name): Add special-case support for
20479 locating types within the "gcc::" namespace.
20480 (open_base_files): Emit a "using namespace gcc" directive.
20482 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20485 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
20486 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
20488 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
20489 array instead of each individual operand as a separate argument.
20490 (emit_fusion_gpr_load): Likewise.
20491 (expand_fusion_gpr_load): Add new function declaration.
20493 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
20494 signature to have the operands passed as an array, instead of as
20495 separate arguments. Allow ZERO_EXTEND to be in the memory
20496 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
20497 depend on the register live/dead flags when peepholes are run.
20498 (expand_fusion_gpr_load): New function to be called from the
20499 peephole2 pass, to change the register that addis sets to be the
20501 (emit_fusion_gpr_load): Change the calling signature to have the
20502 operands passed as an array, instead of as separate arguments.
20503 Allow ZERO_EXTEND to be in the memory address, and also
20504 SIGN_EXTEND if -mpower8-fusion-sign.
20506 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
20507 unspec enumeration.
20508 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
20509 adjust the register addis loads up in the peephole2 pass. Do not
20510 depend on the register live/dead state when the peephole pass is done.
20512 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20514 * gengtype.c (create_user_defined_type): Ensure that the kind
20515 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
20516 declaration is seen before the GTY((user)) marking.
20518 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20521 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
20523 2013-08-16 Jan Hubicka <jh@suse.cz>
20525 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
20526 arugment expected_type.
20527 (gimple_fold_call): Use it.
20528 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
20529 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
20530 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
20531 (try_make_edge_direct_virtual_call): Likewise.
20532 * tree.c (obj_type_ref_class): New.
20533 * tree.h (obj_type_ref_class): Use it.
20535 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
20537 * sched-vis.c (rtl_slim_pp_initialized): Remove.
20538 (rtl_slim_pp): Likewise.
20539 (init_rtl_slim_pretty_print): Likewise.
20540 (dump_value_slim): Don't call it. Use local pretty printer.
20541 (dump_insn_slim): Likewise.
20542 (dump_rtl_slim): Likewise.
20543 (str_pattern_slim): Likewise.
20544 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
20547 2013-08-16 Jakub Jelinek <jakub@redhat.com>
20549 PR tree-optimization/58164
20550 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
20551 walk gimple_goto_dest of GIMPLE_GOTO.
20553 PR tree-optimization/58165
20554 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
20555 bi_call must be the last stmt in a bb, don't split_block, instead
20556 use fallthru edge from it and give up if there is none.
20557 Release conds vector when returning early.
20559 2013-08-14 Xinliang David Li <davidxl@google.com>
20561 * config/i386/i386.c (ix86_option_override_internal):
20562 Remove unused variable and field.
20564 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20567 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
20568 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
20569 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
20570 and Linux, correct BLKmode alignment when 128-bit alignment is
20571 required and compatibility flag is not set.
20572 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
20573 for zero-size arguments when compatibility flag is not set.
20575 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20577 PR tree-optimization/58145
20578 * tree-sra.c (build_ref_for_offset): If prev_base has
20579 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
20581 2013-08-14 Xinliang David Li <davidxl@google.com>
20583 * config/i386/i386.c (ix86_option_override_internal):
20584 Fix uninitialized variable error.
20586 2013-08-14 Xinliang David Li <davidxl@google.com>
20588 * config/i386/i386.opt: Define two new options.
20589 * config/i386/x86-tune.def: Add arch selector field in macros.
20590 * config/i386/i386.h: Adjust macro definition.
20591 * config/i386/i386.c (ix86_option_override_internal):
20593 (parse_mtune_ctrl_str): New function.
20594 (set_ix86_tune_features): New function.
20595 (ix86_function_specific_restore): Call the new helper function.
20597 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
20599 PR rtl-optimization/57662
20600 * sel-sched.c (code_motion_process_successors): When the current insn
20601 is removed after the recursive traversal, break from the loop.
20602 Add comments and debug printouts.
20604 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20605 Alexandre Oliva <aoliva@redhat.com>
20608 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
20609 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
20610 there also UNSPEC_PLTOFF.
20612 2013-08-14 Marek Polacek <polacek@redhat.com>
20614 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
20615 NUM_CONDITIONS bit positions.
20617 2013-08-13 Cary Coutant <ccoutant@google.com>
20619 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
20620 (attr_checksum): Hash vector contents instead of pointer.
20621 (attr_checksum_ordered): Likewise.
20623 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
20625 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
20626 when Pmode != word_mode. Add length_address attribute.
20627 (sse3_monitor_<mode>): Merge from sse3_monitor and
20628 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
20629 Pmode != word_mode. Update insn length attribute.
20630 * config/i386/i386.c (ix86_option_override_internal): Update
20631 ix86_gen_monitor selection for merged sse3_monitor insn.
20633 2013-08-13 Julian Brown <julian@codesourcery.com>
20635 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20636 perform invalid legitimization on greater-than-word-size modes for
20637 TARGET_E500_DOUBLE.
20639 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
20641 * ira.c (setup_class_translate_array): Use aclass instead of cl
20642 for classes not fully covered by allocno classes.
20644 2013-08-13 Jakub Jelinek <jakub@redhat.com>
20646 PR tree-optimization/57661
20647 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
20648 * tree-inline.c (tree_function_versioning): Initialize it.
20649 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
20650 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
20651 that is not being copied.
20654 * asan.c (instrument_strlen_call): Fix typo in comment.
20655 Use char * type even for the lhs of POINTER_PLUS_EXPR.
20657 2013-08-13 Steve Ellcey <sellcey@mips.com>
20659 * config/mips/mips.md (prefetch): Use lw instead of ld on
20660 loongson in 32bit mode.
20662 2013-08-13 Nick Clifton <nickc@redhat.com>
20664 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
20666 2013-08-13 Jan Hubicka <jh@suse.cz>
20668 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
20669 introduced edge; fix typo in sanity check.
20670 (cgraph_resolve_speculation): Export; improve diagnostic.
20671 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
20672 speculation at type mismatch.
20673 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
20674 (cgraph_resolve_speculation): Declare.
20675 (symtab_can_be_discarded): New function.
20676 * value-prof.c (gimple_ic_transform): Remove actual transform code.
20677 * ipa-inline-transform.c (speculation_removed): New global var.
20678 (clone_inlined_nodes): See if speculation can be removed.
20679 (inline_call): If speculations was removed, we growths may not match.
20680 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
20681 (speculation_useful_p): New function.
20682 (resolve_noninline_speculation): New function.
20683 (inline_small_functions): Resolve useless speculations.
20684 * ipa-inline.h (speculation_useful_p): Declare
20685 * ipa.c (can_replace_by_local_alias): Simplify.
20686 (ipa_profile): Produce speculative calls in non-lto, too;
20687 add simple cost model; produce local aliases.
20689 2013-08-13 David Malcolm <dmalcolm@redhat.com>
20691 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
20694 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
20696 * config/i386/i386.c (ix86_function_versions): Use error + inform.
20698 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
20700 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
20701 iterator instead of X87MODEF.
20703 2013-08-12 Perez Read <netfirewall@gmail.com>
20706 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
20707 operand 0 for intel asm alternative.
20708 (*movabs<mode>_2): Ditto for operand 1.
20710 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
20712 * config/aarch64/arm_none.h
20713 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
20715 2013-08-12 Nick Clifton <nickc@redhat.com>
20717 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
20719 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
20721 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
20722 expand for QI/HImode operand to produce more effictive code for
20723 unsigned char(short) --> float(double) conversion.
20725 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
20727 * doc/invoke.texi: Mention that -ftls-model does not force the final
20730 2013-08-12 Marek Polacek <polacek@redhat.com>
20731 Marc Glisse <marc.glisse@inria.fr>
20733 PR tree-optimization/57980
20734 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
20735 when creating -1 constant.
20737 2013-08-10 Jan Hubicka <jh@suse.cz>
20739 Workaround binutils PR14342.
20740 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
20741 (gimple_init_edge_profiler): Likewise.
20742 (gimple_gen_ic_func_profiler): Likewise.
20744 2013-08-09 Jan Hubicka <jh@suse.cz>
20746 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
20748 2013-08-09 Xinliang David Li <davidxl@google.com>
20750 * config/i386/stringop.def: New file.
20751 * config/i386/stringop.opt: New file.
20752 * config/i386/i386-opts.h: Include stringopt.def.
20753 * config/i386/i386.opt: Include stringopt.opt.
20754 * config/i386/i386.c (ix86_option_override_internal):
20755 Override default size based stringop inline strategies with options.
20756 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
20759 2013-08-09 Jan Hubicka <jh@suse.cz>
20761 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
20763 2013-08-09 Jan Hubicka <jh@suse.cz>
20765 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
20767 (dump_cgraph_node): Dump profile-id.
20768 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
20769 and common_target_probability.
20770 * lto-cgraph.c (lto_output_edge): Stream common targets.
20771 (lto_output_node): Stream profile ids.
20772 (input_node): Stream profile ids.
20773 (input_edge): Stream common targets.
20774 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
20775 * ipa.c: Include value-prof.h
20776 (ipa_profile_generate_summary): Turn indirect call statement histograms
20777 into common targets.
20778 (ipa_profile): Turn common targets into speculative edges.
20780 2013-08-09 Jan Hubicka <jh@suse.cz>
20782 * cgraph.h (cgraph_node): Add profile_id.
20783 * value-prof.c (cgraph_node_map): Turn into pointer_map.
20784 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
20785 (del_node_map): Update.
20786 (find_func_by_funcdef_no): Replace by ...
20787 (find_func_by_profile_id): ... this one.
20788 (gimple_ic_transform): Do not remove useful histograms when
20789 speculation is not done; dump info when indirect call removal
20791 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
20792 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
20793 (__gcov_indirect_call_profiler_v2): .. this one.
20794 * profile.h (init_node_map): Update.
20795 * coverage.c (coverage_compute_profile_id): New function.
20796 * coverage.h (coverage_compute_profile_id): Declare.
20797 * tree-profile.c (init_ic_make_global_vars): Make
20798 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
20799 (gimple_init_edge_profiler): Update prototype of
20800 __gcov_indirect_call_profiler.
20801 (gimple_gen_ic_func_profiler): Simplify.
20802 (tree_profiling): Use init_node_map
20804 2013-08-09 Jan Hubicka <jh@suse.cz>
20806 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
20807 non-speculative refs.
20808 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
20809 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
20810 (cgraph_set_call_stmt): Likewise.
20811 (cgraph_create_edge_1): Fix release checking compilatoin;
20812 clear lto_stmt_uid.
20813 (cgraph_free_edge): Free indirect info.
20814 (cgraph_turn_edge_to_speculative): New function.
20815 (cgraph_speculative_call_info): New function.
20816 (cgraph_make_edge_direct): Return direct edge; handle speculation.
20817 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
20818 (dump_cgraph_node): Dump speculation.
20819 (verify_edge_count_and_frequency): Accept speculative edges.
20820 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
20821 (verify_cgraph_node): Handle speculation.
20822 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
20823 (cgraph_set_call_stmt): Update prototype.
20824 (cgraph_make_edge_direct): Update prototype.
20825 (cgraph_speculative_call_info): Declare.
20826 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
20827 to change; update call of ipa_find_references.
20828 * ipa-ref.c (ipa_record_reference): Fix return value; clear
20829 lto_stmt_uid and speculative flags.
20830 (ipa_dump_references): Dump speculation.
20831 (ipa_clone_references): Clone speculative flag.
20832 (ipa_clone_referring): Likewise.
20833 (ipa_clone_ref): New function.
20834 (ipa_find_reference): Look into lto_stmt_uids
20835 (ipa_clear_stmts_in_references): Do not clear speculative calls.
20836 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
20837 (ipa_find_reference): Update declaration.
20838 (ipa_clone_ref): Declare.
20839 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
20840 stream speculative flag.
20841 (lto_output_ref): Stream statements uids and speculation.
20842 (input_ref): Likewise.
20843 (input_edge): Stream speuclation.
20844 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
20845 (cgraph_set_call_stmt_including_clones): Handle speculation.
20846 * ipa-inline.c (heap_edge_removal_hook): New function.
20847 (inline_small_functions): Register it.
20848 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
20849 also initialize refs.
20850 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
20852 (try_make_edge_direct_simple_call): Likewise.
20853 (try_make_edge_direct_simple_call): Likewise.
20854 (update_indirect_edges_after_inlining): Likewise.
20855 (remove_described_reference): Look proper lto_stmt_uid.
20856 (propagate_controlled_uses): Likewise.
20857 (propagate_controlled_uses): Liekwise.
20858 * tree-inline.c (copy_bb): Copy speculative edges.
20859 (redirect_all_calls): New function.
20860 (copy_cfg_body): Do redirection after loop info is updated.
20861 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
20863 2013-08-09 Jan Hubicka <jh@suse.cz>
20865 * lto-streamer-out.c (output_function): Renumber PHIs.
20866 * lto-streamer-in.c (input_function): Likewise.
20868 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
20870 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
20871 (get_lane_unsigned): Likewise.
20872 (dup_lane_scalar): Likewise.
20873 (get_lane): enable for VALL.
20874 * config/aarch64/aarch64-simd.md
20875 (aarch64_dup_lane_scalar<mode>): Remove.
20876 (aarch64_get_lane_signed<mode>): Likewise.
20877 (aarch64_get_lane_unsigned<mode>): Likewise.
20878 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
20879 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
20880 (aarch64_get_lane<mode>): Enable for all vector modes.
20881 (aarch64_get_lanedi): Remove misleading constraints.
20882 * config/aarch64/arm_neon.h
20883 (__aarch64_vget_lane_any): Define.
20884 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
20885 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
20886 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
20887 * config/aarch64/iterators.md (VDQQH): New.
20888 (VDQQHS): Likewise.
20889 (vwcore): Likewise.
20891 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
20893 * configure.ac: Add GAS check for LEON instructions on SPARC.
20894 * configure: Regenerate.
20895 * config.in: Likewise.
20896 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
20898 * config/sparc/sparc.opt (LEON, LEON3): New masks.
20899 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
20901 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
20902 (AS_LEON_FLAG): New macro.
20903 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
20904 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
20905 Deal with LEON and LEON3 for the memory model.
20906 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
20907 (atomic_compare_and_swap<mode>_1): Likewise.
20908 (*atomic_compare_and_swap<mode>_1): Likewise.
20910 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20912 * config/arm/neon.md (vcond): Fix floating-point vector
20913 comparisons against 0.
20915 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
20917 * lra-constraints.c (emit_spill_move): Remove assert.
20918 (process_alt_operands): Add more debugging
20919 output. Increase reject for spilling into memory. Decrease
20920 reject for reloading scratch.
20921 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
20923 2013-08-08 Steve Ellcey <sellcey@mips.com>
20925 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
20926 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
20927 micromips incompatible. Add nan2008.
20928 (MULTILIB_DIRNAMES): Add nan2008.
20929 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
20930 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
20931 and micromips incompatible. Add nan2008.
20932 (MULTILIB_DIRNAMES): Add nan2008.
20933 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
20935 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
20937 PR rtl-optimization/58079
20938 * combine.c (combine_simplify_rtx): Avoid using SUBST if
20939 simplify_comparison has widened a comparison with an integer.
20941 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20943 * config/arm/neon.md (movmisalign<mode>): Disable when we
20944 don't allow unaligned accesses.
20945 (*movmisalign<mode>_neon_store): Likewise.
20946 (*movmisalign<mode>_neon_load): Likewise.
20947 (*movmisalign<mode>_neon_store): Likewise.
20948 (*movmisalign<mode>_neon_load): Likewise.
20950 2013-08-08 Jan Hubicka <jh@suse.cz>
20952 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
20953 (make_pass_rebuild_cgraph_edges): Also clear references.
20954 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
20955 * ipa-inline-transform.c (inline_transform): Remove all references
20957 * cgraphunit.c (expand_function): Remove all references after
20959 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
20960 (ipa_find_reference): Rewrite to iterator.
20961 (remove_stmt_references): Likewise.
20962 (ipa_clear_stmts_in_references): New function.
20963 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
20964 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
20966 * ipa-split.c (split_function): Remove references in split function.
20968 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
20971 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
20972 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
20974 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
20977 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
20978 suggested mode for the assignment isn't compatible with the
20979 registers required.
20981 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
20984 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
20986 2013-08-07 Xinliang David Li <davidxl@google.com>
20988 * config/i386/i386.opt: New option -mtune-ctrl=.
20989 * config/i386/x86-tune.def: New file.
20990 * config/i386/i386.h: include x86-tune.def.
20991 * config/i386/i386.c (ix86_option_override_internal):
20992 Parsing -mtune-ctrl= option and set tune features.
20994 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
20997 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
20998 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21001 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21003 * rtl.h (update_alignments): Declare.
21004 * final.c (grow_label_align): New function extracted from...
21005 (shorten_branches): ...here. Call it.
21006 (update_alignments): New function.
21007 * reorg.c (sibling_labels): New variable.
21008 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21009 the new label along with it onto the sibling_labels vector.
21010 (fill_simple_delay_slots): Adjust call to get_label_before.
21011 (fill_slots_from_thread): Likewise.
21012 (relax_delay_slots): Likewise.
21013 (make_return_insns): Likewise.
21014 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21016 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21018 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21019 document its semantics.
21020 (diagnostic_report_diagnostic): Adjust accordingly.
21022 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21024 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
21025 (sparc_option_override): ...and port to new C++ pass API.
21026 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
21028 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
21030 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
21032 2013-08-06 Caroline Tice <cmtice@google.com>
21034 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
21035 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
21036 * tree-pass.h: Add pass_vtable_verify.
21037 * varasm.c (assemble_variable): Add code to properly set the comdat
21038 section and name for the .vtable_map_vars section.
21039 (assemble_vtyv_preinit_initializer): New function.
21040 (default_sectin_type_flags): Make sure .vtable_map_vars section has
21042 * output.h: Add function decl for assemble_vtv_preinit_initializer.
21043 * vtable-verify.c: New file.
21044 * vtable-verify.h: New file.
21045 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
21046 initialiation levels.
21047 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
21048 * passes.def: Insert pass_vtable_verify.
21049 * aclocal.m4: Reorder includes.
21050 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
21051 -fvtv-counts options.
21052 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
21053 as appropriate, if -fvtable-verify=... is used.
21054 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
21055 -fvtable-verify=... is used.
21056 * Makefile.in (OBJS): Add vtable-verify.o to list.
21057 (vtable-verify.o): Add new build rule.
21058 (GTFILES): Add vtable-verify.c to list.
21059 * common.opt (fvtable-verify=): New flag.
21060 (vtv_priority): Values for fvtable-verify= flag.
21061 (fvtv-counts): New flag.
21062 (fvtv-debug): New flag.
21063 * tree.h (save_vtable_map_decl): New extern function decl.
21065 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21067 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
21068 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
21069 (pass_data_rl78_devirt): ...new pass_data instance and...
21070 (make_pass_rl78_devirt): ...new function.
21071 (rl78_asm_file_start): Port pass registration to new C++ API.
21073 2013-08-07 David Malcolm <dmalcolm@redhat.com>
21075 * coretypes.h (rtl_opt_pass): Add.
21076 (gcc::context): Add.
21077 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
21078 (epiphany_init): Port to new C++ pass API.
21079 (epiphany_optimize_mode_switching): Likewise.
21080 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
21081 (pass_manager::get_pass_mode_switching): New.
21082 (pass_manager::get_pass_peephole2): New.
21083 * mode-switching.c (pass_mode_switching): Add clone method.
21084 * recog.c (pass_peephole2): Add clone method.
21085 (pass_split_all_insns): Add clone method.
21087 2013-08-06 David Malcolm <dmalcolm@redhat.com>
21089 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
21090 (mips_option_override): ...here, porting to new C++ API for passes.
21092 2013-08-06 Jan Hubicka <jh@suse.cz>
21094 * cgraph.c (cgraph_get_body): New function based on lto.c
21096 * cgraph.h (cgraph_get_body): Declare.
21097 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
21099 * cgraphunit.c (expand_function): Get body prior expanding.
21100 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
21101 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
21103 * passes.c (do_per_function_toporder): Get body.
21104 * tree-inline.c (expand_call_inline): Get body prior inlining it.
21105 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
21107 2013-08-06 Martin Jambor <mjambor@suse.cz>
21110 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
21111 is not re-finalized. Rename second parameter to no_collect.
21113 2013-08-06 Martin Jambor <mjambor@suse.cz>
21115 PR middle-end/58041
21116 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
21117 MEM_REF has proper alignment information.
21119 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
21122 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
21124 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
21125 rtx (*) (rtx, ...) with insn_gen_fn.
21126 * genoutput.c (output_insn_data): Cast gen_? function pointers to
21127 insn_gen_fn::stored_funcptr. Add initializer braces.
21129 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21131 Rewrite how instances of passes are cloned to remove assumptions
21132 about their sizes (thus allowing pass subclasses to have
21133 additional data fields, albeit non-GC-managed ones at this point).
21135 * passes.c (make_pass_instance): Now that passes have clone
21136 methods, rewrite this function to eliminate XNEW and memcpy
21137 calls that used hardcoded sizes. Since this function no longer
21138 creates pass instances, rename it to...
21139 (add_pass_instance): ...this. Document the old way that passes were
21140 numbered and flagged, and rework this function to continue using it.
21141 (next_pass_1): Add an initial_pass argument for use by
21143 (position_pass): When adding multiple instances of a pass, use
21144 the pass's clone method, rather than relying on the XNEW/memcpy
21145 within the former make_pass_instance (now add_pass_instance).
21146 (pass_manager::pass_manager): When invoking next_pass_1, also supply
21147 the initial instance of the current pass within the pass manager.
21149 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21151 This is the automated part of the conversion of passes from C
21152 structs to C++ classes.
21154 Patch autogenerated by refactor_passes.py from
21155 https://github.com/davidmalcolm/gcc-refactoring-scripts
21156 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
21158 * asan.c (pass_asan): Convert from a global struct to a subclass of
21159 gimple_opt_pass along with...
21160 (pass_data_asan): ...new pass_data instance and...
21161 (make_pass_asan): ...new function.
21162 (pass_asan_O0): Convert from a global struct to a subclass of
21163 gimple_opt_pass along with...
21164 (pass_data_asan_O0): ...new pass_data instance and...
21165 (make_pass_asan_O0): ...new function.
21166 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
21167 subclass of rtl_opt_pass along with...
21168 (pass_data_inc_dec): ...new pass_data instance and...
21169 (make_pass_inc_dec): ...new function.
21170 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
21171 a subclass of rtl_opt_pass along with...
21172 (pass_data_reorder_blocks): ...new pass_data instance and...
21173 (make_pass_reorder_blocks): ...new function.
21174 (pass_duplicate_computed_gotos): Convert from a global struct to a
21175 subclass of rtl_opt_pass along with...
21176 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
21177 (make_pass_duplicate_computed_gotos): ...new function.
21178 (pass_partition_blocks): Convert from a global struct to a subclass of
21179 rtl_opt_pass along with...
21180 (pass_data_partition_blocks): ...new pass_data instance and...
21181 (make_pass_partition_blocks): ...new function.
21182 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
21183 struct to a subclass of rtl_opt_pass along with...
21184 (pass_data_branch_target_load_optimize1): ...new pass_data instance
21186 (make_pass_branch_target_load_optimize1): ...new function.
21187 (pass_branch_target_load_optimize2): Convert from a global struct to a
21188 subclass of rtl_opt_pass along with...
21189 (pass_data_branch_target_load_optimize2): ...new pass_data instance
21191 (make_pass_branch_target_load_optimize2): ...new function.
21192 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
21193 of rtl_opt_pass along with...
21194 (pass_data_jump): ...new pass_data instance and...
21195 (make_pass_jump): ...new function.
21196 (pass_jump2): Convert from a global struct to a subclass of
21197 rtl_opt_pass along with...
21198 (pass_data_jump2): ...new pass_data instance and...
21199 (make_pass_jump2): ...new function.
21200 * cfgexpand.c (pass_expand): Convert from a global struct to a
21201 subclass of rtl_opt_pass along with...
21202 (pass_data_expand): ...new pass_data instance and...
21203 (make_pass_expand): ...new function.
21204 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
21205 of rtl_opt_pass along with...
21206 (pass_data_free_cfg): ...new pass_data instance and...
21207 (make_pass_free_cfg): ...new function.
21208 (pass_into_cfg_layout_mode): Convert from a global struct to a
21209 subclass of rtl_opt_pass along with...
21210 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
21211 (make_pass_into_cfg_layout_mode): ...new function.
21212 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21213 subclass of rtl_opt_pass along with...
21214 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21215 (make_pass_outof_cfg_layout_mode): ...new function.
21216 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21217 struct to a subclass of gimple_opt_pass along with...
21218 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21219 (make_pass_build_cgraph_edges): ...new function.
21220 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21221 subclass of gimple_opt_pass along with...
21222 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21223 (make_pass_rebuild_cgraph_edges): ...new function.
21224 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21225 subclass of gimple_opt_pass along with...
21226 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21228 (make_pass_remove_cgraph_callee_edges): ...new function.
21229 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21230 struct to a subclass of rtl_opt_pass along with...
21231 (pass_data_stack_adjustments): ...new pass_data instance and...
21232 (make_pass_stack_adjustments): ...new function.
21233 * combine.c (pass_combine): Convert from a global struct to a subclass
21234 of rtl_opt_pass along with...
21235 (pass_data_combine): ...new pass_data instance and...
21236 (make_pass_combine): ...new function.
21237 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21238 global struct to a subclass of rtl_opt_pass along with...
21239 (pass_data_compare_elim_after_reload): ...new pass_data instance
21241 (make_pass_compare_elim_after_reload): ...new function.
21242 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21243 of rtl_opt_pass along with...
21244 (pass_data_rtl_cprop): ...new pass_data instance and...
21245 (make_pass_rtl_cprop): ...new function.
21246 * cse.c (pass_cse): Convert from a global struct to a subclass of
21247 rtl_opt_pass along with...
21248 (pass_data_cse): ...new pass_data instance and...
21249 (make_pass_cse): ...new function.
21250 (pass_cse2): Convert from a global struct to a subclass of
21251 rtl_opt_pass along with...
21252 (pass_data_cse2): ...new pass_data instance and...
21253 (make_pass_cse2): ...new function.
21254 (pass_cse_after_global_opts): Convert from a global struct to a
21255 subclass of rtl_opt_pass along with...
21256 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21257 (make_pass_cse_after_global_opts): ...new function.
21258 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21259 of rtl_opt_pass along with...
21260 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21261 (make_pass_ud_rtl_dce): ...new function.
21262 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21263 rtl_opt_pass along with...
21264 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21265 (make_pass_fast_rtl_dce): ...new function.
21266 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21267 a subclass of rtl_opt_pass along with...
21268 (pass_data_df_initialize_opt): ...new pass_data instance and...
21269 (make_pass_df_initialize_opt): ...new function.
21270 (pass_df_initialize_no_opt): Convert from a global struct to a
21271 subclass of rtl_opt_pass along with...
21272 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
21273 (make_pass_df_initialize_no_opt): ...new function.
21274 (pass_df_finish): Convert from a global struct to a subclass of
21275 rtl_opt_pass along with...
21276 (pass_data_df_finish): ...new pass_data instance and...
21277 (make_pass_df_finish): ...new function.
21278 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
21279 rtl_opt_pass along with...
21280 (pass_data_rtl_dse1): ...new pass_data instance and...
21281 (make_pass_rtl_dse1): ...new function.
21282 (pass_rtl_dse2): Convert from a global struct to a subclass of
21283 rtl_opt_pass along with...
21284 (pass_data_rtl_dse2): ...new pass_data instance and...
21285 (make_pass_rtl_dse2): ...new function.
21286 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
21287 subclass of rtl_opt_pass along with...
21288 (pass_data_dwarf2_frame): ...new pass_data instance and...
21289 (make_pass_dwarf2_frame): ...new function.
21290 * except.c (pass_set_nothrow_function_flags): Convert from a global
21291 struct to a subclass of rtl_opt_pass along with...
21292 (pass_data_set_nothrow_function_flags): ...new pass_data instance
21294 (make_pass_set_nothrow_function_flags): ...new function.
21295 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
21296 subclass of rtl_opt_pass along with...
21297 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
21299 (make_pass_convert_to_eh_region_ranges): ...new function.
21300 * final.c (pass_compute_alignments): Convert from a global struct to a
21301 subclass of rtl_opt_pass along with...
21302 (pass_data_compute_alignments): ...new pass_data instance and...
21303 (make_pass_compute_alignments): ...new function.
21304 (pass_final): Convert from a global struct to a subclass of
21305 rtl_opt_pass along with...
21306 (pass_data_final): ...new pass_data instance and...
21307 (make_pass_final): ...new function.
21308 (pass_shorten_branches): Convert from a global struct to a subclass of
21309 rtl_opt_pass along with...
21310 (pass_data_shorten_branches): ...new pass_data instance and...
21311 (make_pass_shorten_branches): ...new function.
21312 (pass_clean_state): Convert from a global struct to a subclass of
21313 rtl_opt_pass along with...
21314 (pass_data_clean_state): ...new pass_data instance and...
21315 (make_pass_clean_state): ...new function.
21316 * function.c (pass_instantiate_virtual_regs): Convert from a global
21317 struct to a subclass of rtl_opt_pass along with...
21318 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
21319 (make_pass_instantiate_virtual_regs): ...new function.
21320 (pass_leaf_regs): Convert from a global struct to a subclass of
21321 rtl_opt_pass along with...
21322 (pass_data_leaf_regs): ...new pass_data instance and...
21323 (make_pass_leaf_regs): ...new function.
21324 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
21325 subclass of rtl_opt_pass along with...
21326 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
21328 (make_pass_thread_prologue_and_epilogue): ...new function.
21329 (pass_match_asm_constraints): Convert from a global struct to a
21330 subclass of rtl_opt_pass along with...
21331 (pass_data_match_asm_constraints): ...new pass_data instance and...
21332 (make_pass_match_asm_constraints): ...new function.
21333 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
21334 subclass of rtl_opt_pass along with...
21335 (pass_data_rtl_fwprop): ...new pass_data instance and...
21336 (make_pass_rtl_fwprop): ...new function.
21337 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
21338 rtl_opt_pass along with...
21339 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
21340 (make_pass_rtl_fwprop_addr): ...new function.
21341 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
21342 rtl_opt_pass along with...
21343 (pass_data_rtl_pre): ...new pass_data instance and...
21344 (make_pass_rtl_pre): ...new function.
21345 (pass_rtl_hoist): Convert from a global struct to a subclass of
21346 rtl_opt_pass along with...
21347 (pass_data_rtl_hoist): ...new pass_data instance and...
21348 (make_pass_rtl_hoist): ...new function.
21349 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
21350 subclass of gimple_opt_pass along with...
21351 (pass_data_lower_cf): ...new pass_data instance and...
21352 (make_pass_lower_cf): ...new function.
21353 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
21354 from a global struct to a subclass of gimple_opt_pass along with...
21355 (pass_data_strength_reduction): ...new pass_data instance and...
21356 (make_pass_strength_reduction): ...new function.
21357 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
21358 of rtl_opt_pass along with...
21359 (pass_data_rtl_ifcvt): ...new pass_data instance and...
21360 (make_pass_rtl_ifcvt): ...new function.
21361 (pass_if_after_combine): Convert from a global struct to a subclass of
21362 rtl_opt_pass along with...
21363 (pass_data_if_after_combine): ...new pass_data instance and...
21364 (make_pass_if_after_combine): ...new function.
21365 (pass_if_after_reload): Convert from a global struct to a subclass of
21366 rtl_opt_pass along with...
21367 (pass_data_if_after_reload): ...new pass_data instance and...
21368 (make_pass_if_after_reload): ...new function.
21369 * init-regs.c (pass_initialize_regs): Convert from a global struct to
21370 a subclass of rtl_opt_pass along with...
21371 (pass_data_initialize_regs): ...new pass_data instance and...
21372 (make_pass_initialize_regs): ...new function.
21373 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
21374 of ipa_opt_pass_d along with...
21375 (pass_data_ipa_cp): ...new pass_data instance and...
21376 (make_pass_ipa_cp): ...new function.
21377 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
21378 global struct to a subclass of gimple_opt_pass along with...
21379 (pass_data_inline_parameters): ...new pass_data instance and...
21380 (make_pass_inline_parameters): ...new function.
21381 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
21382 subclass of gimple_opt_pass along with...
21383 (pass_data_early_inline): ...new pass_data instance and...
21384 (make_pass_early_inline): ...new function.
21385 (pass_ipa_inline): Convert from a global struct to a subclass of
21386 ipa_opt_pass_d along with...
21387 (pass_data_ipa_inline): ...new pass_data instance and...
21388 (make_pass_ipa_inline): ...new function.
21389 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
21390 struct to a subclass of gimple_opt_pass along with...
21391 (pass_data_local_pure_const): ...new pass_data instance and...
21392 (make_pass_local_pure_const): ...new function.
21393 (pass_ipa_pure_const): Convert from a global struct to a subclass of
21394 ipa_opt_pass_d along with...
21395 (pass_data_ipa_pure_const): ...new pass_data instance and...
21396 (make_pass_ipa_pure_const): ...new function.
21397 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
21398 to a subclass of ipa_opt_pass_d along with...
21399 (pass_data_ipa_reference): ...new pass_data instance and...
21400 (make_pass_ipa_reference): ...new function.
21401 * ipa-split.c (pass_split_functions): Convert from a global struct to
21402 a subclass of gimple_opt_pass along with...
21403 (pass_data_split_functions): ...new pass_data instance and...
21404 (make_pass_split_functions): ...new function.
21405 (pass_feedback_split_functions): Convert from a global struct to a
21406 subclass of gimple_opt_pass along with...
21407 (pass_data_feedback_split_functions): ...new pass_data instance and...
21408 (make_pass_feedback_split_functions): ...new function.
21409 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
21410 global struct to a subclass of simple_ipa_opt_pass along with...
21411 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
21413 (make_pass_ipa_function_and_variable_visibility): ...new function.
21414 (pass_ipa_free_inline_summary): Convert from a global struct to a
21415 subclass of simple_ipa_opt_pass along with...
21416 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
21417 (make_pass_ipa_free_inline_summary): ...new function.
21418 (pass_ipa_whole_program_visibility): Convert from a global struct to a
21419 subclass of ipa_opt_pass_d along with...
21420 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
21422 (make_pass_ipa_whole_program_visibility): ...new function.
21423 (pass_ipa_profile): Convert from a global struct to a subclass of
21424 ipa_opt_pass_d along with...
21425 (pass_data_ipa_profile): ...new pass_data instance and...
21426 (make_pass_ipa_profile): ...new function.
21427 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
21428 ipa_opt_pass_d along with...
21429 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
21430 (make_pass_ipa_cdtor_merge): ...new function.
21431 * ira.c (pass_ira): Convert from a global struct to a subclass of
21432 rtl_opt_pass along with...
21433 (pass_data_ira): ...new pass_data instance and...
21434 (make_pass_ira): ...new function.
21435 (pass_reload): Convert from a global struct to a subclass of
21436 rtl_opt_pass along with...
21437 (pass_data_reload): ...new pass_data instance and...
21438 (make_pass_reload): ...new function.
21439 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
21440 subclass of rtl_opt_pass along with...
21441 (pass_data_cleanup_barriers): ...new pass_data instance and...
21442 (make_pass_cleanup_barriers): ...new function.
21443 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
21444 of rtl_opt_pass along with...
21445 (pass_data_loop2): ...new pass_data instance and...
21446 (make_pass_loop2): ...new function.
21447 (pass_rtl_loop_init): Convert from a global struct to a subclass of
21448 rtl_opt_pass along with...
21449 (pass_data_rtl_loop_init): ...new pass_data instance and...
21450 (make_pass_rtl_loop_init): ...new function.
21451 (pass_rtl_loop_done): Convert from a global struct to a subclass of
21452 rtl_opt_pass along with...
21453 (pass_data_rtl_loop_done): ...new pass_data instance and...
21454 (make_pass_rtl_loop_done): ...new function.
21455 (pass_rtl_move_loop_invariants): Convert from a global struct to a
21456 subclass of rtl_opt_pass along with...
21457 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
21458 (make_pass_rtl_move_loop_invariants): ...new function.
21459 (pass_rtl_unswitch): Convert from a global struct to a subclass of
21460 rtl_opt_pass along with...
21461 (pass_data_rtl_unswitch): ...new pass_data instance and...
21462 (make_pass_rtl_unswitch): ...new function.
21463 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
21464 subclass of rtl_opt_pass along with...
21465 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
21467 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21468 (pass_rtl_doloop): Convert from a global struct to a subclass of
21469 rtl_opt_pass along with...
21470 (pass_data_rtl_doloop): ...new pass_data instance and...
21471 (make_pass_rtl_doloop): ...new function.
21472 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
21473 a subclass of rtl_opt_pass along with...
21474 (pass_data_lower_subreg): ...new pass_data instance and...
21475 (make_pass_lower_subreg): ...new function.
21476 (pass_lower_subreg2): Convert from a global struct to a subclass of
21477 rtl_opt_pass along with...
21478 (pass_data_lower_subreg2): ...new pass_data instance and...
21479 (make_pass_lower_subreg2): ...new function.
21480 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
21481 struct to a subclass of ipa_opt_pass_d along with...
21482 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
21483 (make_pass_ipa_lto_gimple_out): ...new function.
21484 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
21485 of ipa_opt_pass_d along with...
21486 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
21487 (make_pass_ipa_lto_finish_out): ...new function.
21488 * mode-switching.c (pass_mode_switching): Convert from a global struct
21489 to a subclass of rtl_opt_pass along with...
21490 (pass_data_mode_switching): ...new pass_data instance and...
21491 (make_pass_mode_switching): ...new function.
21492 * modulo-sched.c (pass_sms): Convert from a global struct to a
21493 subclass of rtl_opt_pass along with...
21494 (pass_data_sms): ...new pass_data instance and...
21495 (make_pass_sms): ...new function.
21496 * omp-low.c (pass_expand_omp): Convert from a global struct to a
21497 subclass of gimple_opt_pass along with...
21498 (pass_data_expand_omp): ...new pass_data instance and...
21499 (make_pass_expand_omp): ...new function.
21500 (pass_lower_omp): Convert from a global struct to a subclass of
21501 gimple_opt_pass along with...
21502 (pass_data_lower_omp): ...new pass_data instance and...
21503 (make_pass_lower_omp): ...new function.
21504 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
21505 of gimple_opt_pass along with...
21506 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
21507 (make_pass_diagnose_omp_blocks): ...new function.
21508 * passes.c (pass_early_local_passes): Convert from a global struct to
21509 a subclass of simple_ipa_opt_pass along with...
21510 (pass_data_early_local_passes): ...new pass_data instance and...
21511 (make_pass_early_local_passes): ...new function.
21512 (pass_all_early_optimizations): Convert from a global struct to a
21513 subclass of gimple_opt_pass along with...
21514 (pass_data_all_early_optimizations): ...new pass_data instance and...
21515 (make_pass_all_early_optimizations): ...new function.
21516 (pass_all_optimizations): Convert from a global struct to a subclass
21517 of gimple_opt_pass along with...
21518 (pass_data_all_optimizations): ...new pass_data instance and...
21519 (make_pass_all_optimizations): ...new function.
21520 (pass_all_optimizations_g): Convert from a global struct to a subclass
21521 of gimple_opt_pass along with...
21522 (pass_data_all_optimizations_g): ...new pass_data instance and...
21523 (make_pass_all_optimizations_g): ...new function.
21524 (pass_rest_of_compilation): Convert from a global struct to a subclass
21525 of rtl_opt_pass along with...
21526 (pass_data_rest_of_compilation): ...new pass_data instance and...
21527 (make_pass_rest_of_compilation): ...new function.
21528 (pass_postreload): Convert from a global struct to a subclass of
21529 rtl_opt_pass along with...
21530 (pass_data_postreload): ...new pass_data instance and...
21531 (make_pass_postreload): ...new function.
21532 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
21533 subclass of rtl_opt_pass along with...
21534 (pass_data_gcse2): ...new pass_data instance and...
21535 (make_pass_gcse2): ...new function.
21536 * postreload.c (pass_postreload_cse): Convert from a global struct to
21537 a subclass of rtl_opt_pass along with...
21538 (pass_data_postreload_cse): ...new pass_data instance and...
21539 (make_pass_postreload_cse): ...new function.
21540 * predict.c (pass_profile): Convert from a global struct to a subclass
21541 of gimple_opt_pass along with...
21542 (pass_data_profile): ...new pass_data instance and...
21543 (make_pass_profile): ...new function.
21544 (pass_strip_predict_hints): Convert from a global struct to a subclass
21545 of gimple_opt_pass along with...
21546 (pass_data_strip_predict_hints): ...new pass_data instance and...
21547 (make_pass_strip_predict_hints): ...new function.
21548 * recog.c (pass_peephole2): Convert from a global struct to a subclass
21549 of rtl_opt_pass along with...
21550 (pass_data_peephole2): ...new pass_data instance and...
21551 (make_pass_peephole2): ...new function.
21552 (pass_split_all_insns): Convert from a global struct to a subclass of
21553 rtl_opt_pass along with...
21554 (pass_data_split_all_insns): ...new pass_data instance and...
21555 (make_pass_split_all_insns): ...new function.
21556 (pass_split_after_reload): Convert from a global struct to a subclass
21557 of rtl_opt_pass along with...
21558 (pass_data_split_after_reload): ...new pass_data instance and...
21559 (make_pass_split_after_reload): ...new function.
21560 (pass_split_before_regstack): Convert from a global struct to a
21561 subclass of rtl_opt_pass along with...
21562 (pass_data_split_before_regstack): ...new pass_data instance and...
21563 (make_pass_split_before_regstack): ...new function.
21564 (pass_split_before_sched2): Convert from a global struct to a subclass
21565 of rtl_opt_pass along with...
21566 (pass_data_split_before_sched2): ...new pass_data instance and...
21567 (make_pass_split_before_sched2): ...new function.
21568 (pass_split_for_shorten_branches): Convert from a global struct to a
21569 subclass of rtl_opt_pass along with...
21570 (pass_data_split_for_shorten_branches): ...new pass_data instance
21572 (make_pass_split_for_shorten_branches): ...new function.
21573 * ree.c (pass_ree): Convert from a global struct to a subclass of
21574 rtl_opt_pass along with...
21575 (pass_data_ree): ...new pass_data instance and...
21576 (make_pass_ree): ...new function.
21577 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
21578 subclass of rtl_opt_pass along with...
21579 (pass_data_stack_regs): ...new pass_data instance and...
21580 (make_pass_stack_regs): ...new function.
21581 (pass_stack_regs_run): Convert from a global struct to a subclass of
21582 rtl_opt_pass along with...
21583 (pass_data_stack_regs_run): ...new pass_data instance and...
21584 (make_pass_stack_regs_run): ...new function.
21585 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
21586 subclass of rtl_opt_pass along with...
21587 (pass_data_cprop_hardreg): ...new pass_data instance and...
21588 (make_pass_cprop_hardreg): ...new function.
21589 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
21590 subclass of rtl_opt_pass along with...
21591 (pass_data_reginfo_init): ...new pass_data instance and...
21592 (make_pass_reginfo_init): ...new function.
21593 * regmove.c (pass_regmove): Convert from a global struct to a subclass
21594 of rtl_opt_pass along with...
21595 (pass_data_regmove): ...new pass_data instance and...
21596 (make_pass_regmove): ...new function.
21597 * regrename.c (pass_regrename): Convert from a global struct to a
21598 subclass of rtl_opt_pass along with...
21599 (pass_data_regrename): ...new pass_data instance and...
21600 (make_pass_regrename): ...new function.
21601 * reorg.c (pass_delay_slots): Convert from a global struct to a
21602 subclass of rtl_opt_pass along with...
21603 (pass_data_delay_slots): ...new pass_data instance and...
21604 (make_pass_delay_slots): ...new function.
21605 (pass_machine_reorg): Convert from a global struct to a subclass of
21606 rtl_opt_pass along with...
21607 (pass_data_machine_reorg): ...new pass_data instance and...
21608 (make_pass_machine_reorg): ...new function.
21609 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
21610 of rtl_opt_pass along with...
21611 (pass_data_sched): ...new pass_data instance and...
21612 (make_pass_sched): ...new function.
21613 (pass_sched2): Convert from a global struct to a subclass of
21614 rtl_opt_pass along with...
21615 (pass_data_sched2): ...new pass_data instance and...
21616 (make_pass_sched2): ...new function.
21617 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
21618 to a subclass of rtl_opt_pass along with...
21619 (pass_data_stack_ptr_mod): ...new pass_data instance and...
21620 (make_pass_stack_ptr_mod): ...new function.
21621 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
21622 to a subclass of rtl_opt_pass along with...
21623 (pass_data_rtl_store_motion): ...new pass_data instance and...
21624 (make_pass_rtl_store_motion): ...new function.
21625 * tracer.c (pass_tracer): Convert from a global struct to a subclass
21626 of gimple_opt_pass along with...
21627 (pass_data_tracer): ...new pass_data instance and...
21628 (make_pass_tracer): ...new function.
21629 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
21630 to a subclass of gimple_opt_pass along with...
21631 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
21632 (make_pass_diagnose_tm_blocks): ...new function.
21633 (pass_lower_tm): Convert from a global struct to a subclass of
21634 gimple_opt_pass along with...
21635 (pass_data_lower_tm): ...new pass_data instance and...
21636 (make_pass_lower_tm): ...new function.
21637 (pass_tm_init): Convert from a global struct to a subclass of
21638 gimple_opt_pass along with...
21639 (pass_data_tm_init): ...new pass_data instance and...
21640 (make_pass_tm_init): ...new function.
21641 (pass_tm_mark): Convert from a global struct to a subclass of
21642 gimple_opt_pass along with...
21643 (pass_data_tm_mark): ...new pass_data instance and...
21644 (make_pass_tm_mark): ...new function.
21645 (pass_tm_edges): Convert from a global struct to a subclass of
21646 gimple_opt_pass along with...
21647 (pass_data_tm_edges): ...new pass_data instance and...
21648 (make_pass_tm_edges): ...new function.
21649 (pass_tm_memopt): Convert from a global struct to a subclass of
21650 gimple_opt_pass along with...
21651 (pass_data_tm_memopt): ...new pass_data instance and...
21652 (make_pass_tm_memopt): ...new function.
21653 (pass_ipa_tm): Convert from a global struct to a subclass of
21654 simple_ipa_opt_pass along with...
21655 (pass_data_ipa_tm): ...new pass_data instance and...
21656 (make_pass_ipa_tm): ...new function.
21657 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
21658 subclass of gimple_opt_pass along with...
21659 (pass_data_call_cdce): ...new pass_data instance and...
21660 (make_pass_call_cdce): ...new function.
21661 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
21662 subclass of gimple_opt_pass along with...
21663 (pass_data_build_cfg): ...new pass_data instance and...
21664 (make_pass_build_cfg): ...new function.
21665 (pass_split_crit_edges): Convert from a global struct to a subclass of
21666 gimple_opt_pass along with...
21667 (pass_data_split_crit_edges): ...new pass_data instance and...
21668 (make_pass_split_crit_edges): ...new function.
21669 (pass_warn_function_return): Convert from a global struct to a
21670 subclass of gimple_opt_pass along with...
21671 (pass_data_warn_function_return): ...new pass_data instance and...
21672 (make_pass_warn_function_return): ...new function.
21673 (pass_warn_function_noreturn): Convert from a global struct to a
21674 subclass of gimple_opt_pass along with...
21675 (pass_data_warn_function_noreturn): ...new pass_data instance and...
21676 (make_pass_warn_function_noreturn): ...new function.
21677 (pass_warn_unused_result): Convert from a global struct to a subclass
21678 of gimple_opt_pass along with...
21679 (pass_data_warn_unused_result): ...new pass_data instance and...
21680 (make_pass_warn_unused_result): ...new function.
21681 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
21682 a subclass of gimple_opt_pass along with...
21683 (pass_data_merge_phi): ...new pass_data instance and...
21684 (make_pass_merge_phi): ...new function.
21685 * tree-complex.c (pass_lower_complex): Convert from a global struct to
21686 a subclass of gimple_opt_pass along with...
21687 (pass_data_lower_complex): ...new pass_data instance and...
21688 (make_pass_lower_complex): ...new function.
21689 (pass_lower_complex_O0): Convert from a global struct to a subclass of
21690 gimple_opt_pass along with...
21691 (pass_data_lower_complex_O0): ...new pass_data instance and...
21692 (make_pass_lower_complex_O0): ...new function.
21693 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
21694 subclass of gimple_opt_pass along with...
21695 (pass_data_lower_eh): ...new pass_data instance and...
21696 (make_pass_lower_eh): ...new function.
21697 (pass_refactor_eh): Convert from a global struct to a subclass of
21698 gimple_opt_pass along with...
21699 (pass_data_refactor_eh): ...new pass_data instance and...
21700 (make_pass_refactor_eh): ...new function.
21701 (pass_lower_resx): Convert from a global struct to a subclass of
21702 gimple_opt_pass along with...
21703 (pass_data_lower_resx): ...new pass_data instance and...
21704 (make_pass_lower_resx): ...new function.
21705 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
21706 of gimple_opt_pass along with...
21707 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
21708 (make_pass_lower_eh_dispatch): ...new function.
21709 (pass_cleanup_eh): Convert from a global struct to a subclass of
21710 gimple_opt_pass along with...
21711 (pass_data_cleanup_eh): ...new pass_data instance and...
21712 (make_pass_cleanup_eh): ...new function.
21713 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
21714 to a subclass of simple_ipa_opt_pass along with...
21715 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
21716 (make_pass_ipa_lower_emutls): ...new function.
21717 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
21718 a subclass of gimple_opt_pass along with...
21719 (pass_data_if_conversion): ...new pass_data instance and...
21720 (make_pass_if_conversion): ...new function.
21721 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
21722 subclass of gimple_opt_pass along with...
21723 (pass_data_build_ssa): ...new pass_data instance and...
21724 (make_pass_build_ssa): ...new function.
21725 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
21726 global struct to a subclass of gimple_opt_pass along with...
21727 (pass_data_loop_distribution): ...new pass_data instance and...
21728 (make_pass_loop_distribution): ...new function.
21729 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
21730 subclass of gimple_opt_pass along with...
21731 (pass_data_mudflap_1): ...new pass_data instance and...
21732 (make_pass_mudflap_1): ...new function.
21733 (pass_mudflap_2): Convert from a global struct to a subclass of
21734 gimple_opt_pass along with...
21735 (pass_data_mudflap_2): ...new pass_data instance and...
21736 (make_pass_mudflap_2): ...new function.
21737 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
21738 subclass of gimple_opt_pass along with...
21739 (pass_data_mudflap_1): ...new pass_data instance and...
21740 (make_pass_mudflap_1): ...new function.
21741 (pass_mudflap_2): Convert from a global struct to a subclass of
21742 gimple_opt_pass along with...
21743 (pass_data_mudflap_2): ...new pass_data instance and...
21744 (make_pass_mudflap_2): ...new function.
21745 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
21746 gimple_opt_pass along with...
21747 (pass_data_nrv): ...new pass_data instance and...
21748 (make_pass_nrv): ...new function.
21749 (pass_return_slot): Convert from a global struct to a subclass of
21750 gimple_opt_pass along with...
21751 (pass_data_return_slot): ...new pass_data instance and...
21752 (make_pass_return_slot): ...new function.
21753 * tree-object-size.c (pass_object_sizes): Convert from a global struct
21754 to a subclass of gimple_opt_pass along with...
21755 (pass_data_object_sizes): ...new pass_data instance and...
21756 (make_pass_object_sizes): ...new function.
21757 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
21758 global struct to a subclass of gimple_opt_pass along with...
21759 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
21761 (make_pass_cleanup_cfg_post_optimizing): ...new function.
21762 (pass_fixup_cfg): Convert from a global struct to a subclass of
21763 gimple_opt_pass along with...
21764 (pass_data_fixup_cfg): ...new pass_data instance and...
21765 (make_pass_fixup_cfg): ...new function.
21766 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
21767 (make_pass_mudflap_1): ...new function.
21768 (pass_mudflap_2): Replace declaration with that of...
21769 (make_pass_mudflap_2): ...new function.
21770 (pass_asan): Replace declaration with that of...
21771 (make_pass_asan): ...new function.
21772 (pass_asan_O0): Replace declaration with that of...
21773 (make_pass_asan_O0): ...new function.
21774 (pass_tsan): Replace declaration with that of...
21775 (make_pass_tsan): ...new function.
21776 (pass_tsan_O0): Replace declaration with that of...
21777 (make_pass_tsan_O0): ...new function.
21778 (pass_lower_cf): Replace declaration with that of...
21779 (make_pass_lower_cf): ...new function.
21780 (pass_refactor_eh): Replace declaration with that of...
21781 (make_pass_refactor_eh): ...new function.
21782 (pass_lower_eh): Replace declaration with that of...
21783 (make_pass_lower_eh): ...new function.
21784 (pass_lower_eh_dispatch): Replace declaration with that of...
21785 (make_pass_lower_eh_dispatch): ...new function.
21786 (pass_lower_resx): Replace declaration with that of...
21787 (make_pass_lower_resx): ...new function.
21788 (pass_build_cfg): Replace declaration with that of...
21789 (make_pass_build_cfg): ...new function.
21790 (pass_early_tree_profile): Replace declaration with that of...
21791 (make_pass_early_tree_profile): ...new function.
21792 (pass_cleanup_eh): Replace declaration with that of...
21793 (make_pass_cleanup_eh): ...new function.
21794 (pass_sra): Replace declaration with that of...
21795 (make_pass_sra): ...new function.
21796 (pass_sra_early): Replace declaration with that of...
21797 (make_pass_sra_early): ...new function.
21798 (pass_early_ipa_sra): Replace declaration with that of...
21799 (make_pass_early_ipa_sra): ...new function.
21800 (pass_tail_recursion): Replace declaration with that of...
21801 (make_pass_tail_recursion): ...new function.
21802 (pass_tail_calls): Replace declaration with that of...
21803 (make_pass_tail_calls): ...new function.
21804 (pass_tree_loop): Replace declaration with that of...
21805 (make_pass_tree_loop): ...new function.
21806 (pass_tree_loop_init): Replace declaration with that of...
21807 (make_pass_tree_loop_init): ...new function.
21808 (pass_lim): Replace declaration with that of...
21809 (make_pass_lim): ...new function.
21810 (pass_tree_unswitch): Replace declaration with that of...
21811 (make_pass_tree_unswitch): ...new function.
21812 (pass_predcom): Replace declaration with that of...
21813 (make_pass_predcom): ...new function.
21814 (pass_iv_canon): Replace declaration with that of...
21815 (make_pass_iv_canon): ...new function.
21816 (pass_scev_cprop): Replace declaration with that of...
21817 (make_pass_scev_cprop): ...new function.
21818 (pass_empty_loop): Replace declaration with that of...
21819 (make_pass_empty_loop): ...new function.
21820 (pass_record_bounds): Replace declaration with that of...
21821 (make_pass_record_bounds): ...new function.
21822 (pass_graphite): Replace declaration with that of...
21823 (make_pass_graphite): ...new function.
21824 (pass_graphite_transforms): Replace declaration with that of...
21825 (make_pass_graphite_transforms): ...new function.
21826 (pass_if_conversion): Replace declaration with that of...
21827 (make_pass_if_conversion): ...new function.
21828 (pass_loop_distribution): Replace declaration with that of...
21829 (make_pass_loop_distribution): ...new function.
21830 (pass_vectorize): Replace declaration with that of...
21831 (make_pass_vectorize): ...new function.
21832 (pass_slp_vectorize): Replace declaration with that of...
21833 (make_pass_slp_vectorize): ...new function.
21834 (pass_complete_unroll): Replace declaration with that of...
21835 (make_pass_complete_unroll): ...new function.
21836 (pass_complete_unrolli): Replace declaration with that of...
21837 (make_pass_complete_unrolli): ...new function.
21838 (pass_parallelize_loops): Replace declaration with that of...
21839 (make_pass_parallelize_loops): ...new function.
21840 (pass_loop_prefetch): Replace declaration with that of...
21841 (make_pass_loop_prefetch): ...new function.
21842 (pass_iv_optimize): Replace declaration with that of...
21843 (make_pass_iv_optimize): ...new function.
21844 (pass_tree_loop_done): Replace declaration with that of...
21845 (make_pass_tree_loop_done): ...new function.
21846 (pass_ch): Replace declaration with that of...
21847 (make_pass_ch): ...new function.
21848 (pass_ccp): Replace declaration with that of...
21849 (make_pass_ccp): ...new function.
21850 (pass_phi_only_cprop): Replace declaration with that of...
21851 (make_pass_phi_only_cprop): ...new function.
21852 (pass_build_ssa): Replace declaration with that of...
21853 (make_pass_build_ssa): ...new function.
21854 (pass_build_alias): Replace declaration with that of...
21855 (make_pass_build_alias): ...new function.
21856 (pass_build_ealias): Replace declaration with that of...
21857 (make_pass_build_ealias): ...new function.
21858 (pass_dominator): Replace declaration with that of...
21859 (make_pass_dominator): ...new function.
21860 (pass_dce): Replace declaration with that of...
21861 (make_pass_dce): ...new function.
21862 (pass_dce_loop): Replace declaration with that of...
21863 (make_pass_dce_loop): ...new function.
21864 (pass_cd_dce): Replace declaration with that of...
21865 (make_pass_cd_dce): ...new function.
21866 (pass_call_cdce): Replace declaration with that of...
21867 (make_pass_call_cdce): ...new function.
21868 (pass_merge_phi): Replace declaration with that of...
21869 (make_pass_merge_phi): ...new function.
21870 (pass_split_crit_edges): Replace declaration with that of...
21871 (make_pass_split_crit_edges): ...new function.
21872 (pass_pre): Replace declaration with that of...
21873 (make_pass_pre): ...new function.
21874 (pass_profile): Replace declaration with that of...
21875 (make_pass_profile): ...new function.
21876 (pass_strip_predict_hints): Replace declaration with that of...
21877 (make_pass_strip_predict_hints): ...new function.
21878 (pass_lower_complex_O0): Replace declaration with that of...
21879 (make_pass_lower_complex_O0): ...new function.
21880 (pass_lower_complex): Replace declaration with that of...
21881 (make_pass_lower_complex): ...new function.
21882 (pass_lower_vector): Replace declaration with that of...
21883 (make_pass_lower_vector): ...new function.
21884 (pass_lower_vector_ssa): Replace declaration with that of...
21885 (make_pass_lower_vector_ssa): ...new function.
21886 (pass_lower_omp): Replace declaration with that of...
21887 (make_pass_lower_omp): ...new function.
21888 (pass_diagnose_omp_blocks): Replace declaration with that of...
21889 (make_pass_diagnose_omp_blocks): ...new function.
21890 (pass_expand_omp): Replace declaration with that of...
21891 (make_pass_expand_omp): ...new function.
21892 (pass_expand_omp_ssa): Replace declaration with that of...
21893 (make_pass_expand_omp_ssa): ...new function.
21894 (pass_object_sizes): Replace declaration with that of...
21895 (make_pass_object_sizes): ...new function.
21896 (pass_strlen): Replace declaration with that of...
21897 (make_pass_strlen): ...new function.
21898 (pass_fold_builtins): Replace declaration with that of...
21899 (make_pass_fold_builtins): ...new function.
21900 (pass_stdarg): Replace declaration with that of...
21901 (make_pass_stdarg): ...new function.
21902 (pass_early_warn_uninitialized): Replace declaration with that of...
21903 (make_pass_early_warn_uninitialized): ...new function.
21904 (pass_late_warn_uninitialized): Replace declaration with that of...
21905 (make_pass_late_warn_uninitialized): ...new function.
21906 (pass_cse_reciprocals): Replace declaration with that of...
21907 (make_pass_cse_reciprocals): ...new function.
21908 (pass_cse_sincos): Replace declaration with that of...
21909 (make_pass_cse_sincos): ...new function.
21910 (pass_optimize_bswap): Replace declaration with that of...
21911 (make_pass_optimize_bswap): ...new function.
21912 (pass_optimize_widening_mul): Replace declaration with that of...
21913 (make_pass_optimize_widening_mul): ...new function.
21914 (pass_warn_function_return): Replace declaration with that of...
21915 (make_pass_warn_function_return): ...new function.
21916 (pass_warn_function_noreturn): Replace declaration with that of...
21917 (make_pass_warn_function_noreturn): ...new function.
21918 (pass_cselim): Replace declaration with that of...
21919 (make_pass_cselim): ...new function.
21920 (pass_phiopt): Replace declaration with that of...
21921 (make_pass_phiopt): ...new function.
21922 (pass_forwprop): Replace declaration with that of...
21923 (make_pass_forwprop): ...new function.
21924 (pass_phiprop): Replace declaration with that of...
21925 (make_pass_phiprop): ...new function.
21926 (pass_tree_ifcombine): Replace declaration with that of...
21927 (make_pass_tree_ifcombine): ...new function.
21928 (pass_dse): Replace declaration with that of...
21929 (make_pass_dse): ...new function.
21930 (pass_nrv): Replace declaration with that of...
21931 (make_pass_nrv): ...new function.
21932 (pass_rename_ssa_copies): Replace declaration with that of...
21933 (make_pass_rename_ssa_copies): ...new function.
21934 (pass_sink_code): Replace declaration with that of...
21935 (make_pass_sink_code): ...new function.
21936 (pass_fre): Replace declaration with that of...
21937 (make_pass_fre): ...new function.
21938 (pass_check_data_deps): Replace declaration with that of...
21939 (make_pass_check_data_deps): ...new function.
21940 (pass_copy_prop): Replace declaration with that of...
21941 (make_pass_copy_prop): ...new function.
21942 (pass_vrp): Replace declaration with that of...
21943 (make_pass_vrp): ...new function.
21944 (pass_uncprop): Replace declaration with that of...
21945 (make_pass_uncprop): ...new function.
21946 (pass_return_slot): Replace declaration with that of...
21947 (make_pass_return_slot): ...new function.
21948 (pass_reassoc): Replace declaration with that of...
21949 (make_pass_reassoc): ...new function.
21950 (pass_rebuild_cgraph_edges): Replace declaration with that of...
21951 (make_pass_rebuild_cgraph_edges): ...new function.
21952 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
21953 (make_pass_remove_cgraph_callee_edges): ...new function.
21954 (pass_build_cgraph_edges): Replace declaration with that of...
21955 (make_pass_build_cgraph_edges): ...new function.
21956 (pass_local_pure_const): Replace declaration with that of...
21957 (make_pass_local_pure_const): ...new function.
21958 (pass_tracer): Replace declaration with that of...
21959 (make_pass_tracer): ...new function.
21960 (pass_warn_unused_result): Replace declaration with that of...
21961 (make_pass_warn_unused_result): ...new function.
21962 (pass_diagnose_tm_blocks): Replace declaration with that of...
21963 (make_pass_diagnose_tm_blocks): ...new function.
21964 (pass_lower_tm): Replace declaration with that of...
21965 (make_pass_lower_tm): ...new function.
21966 (pass_tm_init): Replace declaration with that of...
21967 (make_pass_tm_init): ...new function.
21968 (pass_tm_mark): Replace declaration with that of...
21969 (make_pass_tm_mark): ...new function.
21970 (pass_tm_memopt): Replace declaration with that of...
21971 (make_pass_tm_memopt): ...new function.
21972 (pass_tm_edges): Replace declaration with that of...
21973 (make_pass_tm_edges): ...new function.
21974 (pass_split_functions): Replace declaration with that of...
21975 (make_pass_split_functions): ...new function.
21976 (pass_feedback_split_functions): Replace declaration with that of...
21977 (make_pass_feedback_split_functions): ...new function.
21978 (pass_strength_reduction): Replace declaration with that of...
21979 (make_pass_strength_reduction): ...new function.
21980 (pass_ipa_lower_emutls): Replace declaration with that of...
21981 (make_pass_ipa_lower_emutls): ...new function.
21982 (pass_ipa_function_and_variable_visibility): Replace declaration with
21984 (make_pass_ipa_function_and_variable_visibility): ...new function.
21985 (pass_ipa_tree_profile): Replace declaration with that of...
21986 (make_pass_ipa_tree_profile): ...new function.
21987 (pass_early_local_passes): Replace declaration with that of...
21988 (make_pass_early_local_passes): ...new function.
21989 (pass_ipa_whole_program_visibility): Replace declaration with that
21991 (make_pass_ipa_whole_program_visibility): ...new function.
21992 (pass_ipa_lto_gimple_out): Replace declaration with that of...
21993 (make_pass_ipa_lto_gimple_out): ...new function.
21994 (pass_ipa_increase_alignment): Replace declaration with that of...
21995 (make_pass_ipa_increase_alignment): ...new function.
21996 (pass_ipa_inline): Replace declaration with that of...
21997 (make_pass_ipa_inline): ...new function.
21998 (pass_ipa_free_lang_data): Replace declaration with that of...
21999 (make_pass_ipa_free_lang_data): ...new function.
22000 (pass_ipa_free_inline_summary): Replace declaration with that of...
22001 (make_pass_ipa_free_inline_summary): ...new function.
22002 (pass_ipa_cp): Replace declaration with that of...
22003 (make_pass_ipa_cp): ...new function.
22004 (pass_ipa_reference): Replace declaration with that of...
22005 (make_pass_ipa_reference): ...new function.
22006 (pass_ipa_pure_const): Replace declaration with that of...
22007 (make_pass_ipa_pure_const): ...new function.
22008 (pass_ipa_pta): Replace declaration with that of...
22009 (make_pass_ipa_pta): ...new function.
22010 (pass_ipa_lto_finish_out): Replace declaration with that of...
22011 (make_pass_ipa_lto_finish_out): ...new function.
22012 (pass_ipa_tm): Replace declaration with that of...
22013 (make_pass_ipa_tm): ...new function.
22014 (pass_ipa_profile): Replace declaration with that of...
22015 (make_pass_ipa_profile): ...new function.
22016 (pass_ipa_cdtor_merge): Replace declaration with that of...
22017 (make_pass_ipa_cdtor_merge): ...new function.
22018 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22020 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22021 (pass_init_datastructures): Replace declaration with that of...
22022 (make_pass_init_datastructures): ...new function.
22023 (pass_fixup_cfg): Replace declaration with that of...
22024 (make_pass_fixup_cfg): ...new function.
22025 (pass_expand): Replace declaration with that of...
22026 (make_pass_expand): ...new function.
22027 (pass_instantiate_virtual_regs): Replace declaration with that of...
22028 (make_pass_instantiate_virtual_regs): ...new function.
22029 (pass_rtl_fwprop): Replace declaration with that of...
22030 (make_pass_rtl_fwprop): ...new function.
22031 (pass_rtl_fwprop_addr): Replace declaration with that of...
22032 (make_pass_rtl_fwprop_addr): ...new function.
22033 (pass_jump): Replace declaration with that of...
22034 (make_pass_jump): ...new function.
22035 (pass_jump2): Replace declaration with that of...
22036 (make_pass_jump2): ...new function.
22037 (pass_lower_subreg): Replace declaration with that of...
22038 (make_pass_lower_subreg): ...new function.
22039 (pass_cse): Replace declaration with that of...
22040 (make_pass_cse): ...new function.
22041 (pass_fast_rtl_dce): Replace declaration with that of...
22042 (make_pass_fast_rtl_dce): ...new function.
22043 (pass_ud_rtl_dce): Replace declaration with that of...
22044 (make_pass_ud_rtl_dce): ...new function.
22045 (pass_rtl_dce): Replace declaration with that of...
22046 (make_pass_rtl_dce): ...new function.
22047 (pass_rtl_dse1): Replace declaration with that of...
22048 (make_pass_rtl_dse1): ...new function.
22049 (pass_rtl_dse2): Replace declaration with that of...
22050 (make_pass_rtl_dse2): ...new function.
22051 (pass_rtl_dse3): Replace declaration with that of...
22052 (make_pass_rtl_dse3): ...new function.
22053 (pass_rtl_cprop): Replace declaration with that of...
22054 (make_pass_rtl_cprop): ...new function.
22055 (pass_rtl_pre): Replace declaration with that of...
22056 (make_pass_rtl_pre): ...new function.
22057 (pass_rtl_hoist): Replace declaration with that of...
22058 (make_pass_rtl_hoist): ...new function.
22059 (pass_rtl_store_motion): Replace declaration with that of...
22060 (make_pass_rtl_store_motion): ...new function.
22061 (pass_cse_after_global_opts): Replace declaration with that of...
22062 (make_pass_cse_after_global_opts): ...new function.
22063 (pass_rtl_ifcvt): Replace declaration with that of...
22064 (make_pass_rtl_ifcvt): ...new function.
22065 (pass_into_cfg_layout_mode): Replace declaration with that of...
22066 (make_pass_into_cfg_layout_mode): ...new function.
22067 (pass_outof_cfg_layout_mode): Replace declaration with that of...
22068 (make_pass_outof_cfg_layout_mode): ...new function.
22069 (pass_loop2): Replace declaration with that of...
22070 (make_pass_loop2): ...new function.
22071 (pass_rtl_loop_init): Replace declaration with that of...
22072 (make_pass_rtl_loop_init): ...new function.
22073 (pass_rtl_move_loop_invariants): Replace declaration with that of...
22074 (make_pass_rtl_move_loop_invariants): ...new function.
22075 (pass_rtl_unswitch): Replace declaration with that of...
22076 (make_pass_rtl_unswitch): ...new function.
22077 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
22078 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22079 (pass_rtl_doloop): Replace declaration with that of...
22080 (make_pass_rtl_doloop): ...new function.
22081 (pass_rtl_loop_done): Replace declaration with that of...
22082 (make_pass_rtl_loop_done): ...new function.
22083 (pass_web): Replace declaration with that of...
22084 (make_pass_web): ...new function.
22085 (pass_cse2): Replace declaration with that of...
22086 (make_pass_cse2): ...new function.
22087 (pass_df_initialize_opt): Replace declaration with that of...
22088 (make_pass_df_initialize_opt): ...new function.
22089 (pass_df_initialize_no_opt): Replace declaration with that of...
22090 (make_pass_df_initialize_no_opt): ...new function.
22091 (pass_reginfo_init): Replace declaration with that of...
22092 (make_pass_reginfo_init): ...new function.
22093 (pass_inc_dec): Replace declaration with that of...
22094 (make_pass_inc_dec): ...new function.
22095 (pass_stack_ptr_mod): Replace declaration with that of...
22096 (make_pass_stack_ptr_mod): ...new function.
22097 (pass_initialize_regs): Replace declaration with that of...
22098 (make_pass_initialize_regs): ...new function.
22099 (pass_combine): Replace declaration with that of...
22100 (make_pass_combine): ...new function.
22101 (pass_if_after_combine): Replace declaration with that of...
22102 (make_pass_if_after_combine): ...new function.
22103 (pass_ree): Replace declaration with that of...
22104 (make_pass_ree): ...new function.
22105 (pass_partition_blocks): Replace declaration with that of...
22106 (make_pass_partition_blocks): ...new function.
22107 (pass_match_asm_constraints): Replace declaration with that of...
22108 (make_pass_match_asm_constraints): ...new function.
22109 (pass_regmove): Replace declaration with that of...
22110 (make_pass_regmove): ...new function.
22111 (pass_split_all_insns): Replace declaration with that of...
22112 (make_pass_split_all_insns): ...new function.
22113 (pass_fast_rtl_byte_dce): Replace declaration with that of...
22114 (make_pass_fast_rtl_byte_dce): ...new function.
22115 (pass_lower_subreg2): Replace declaration with that of...
22116 (make_pass_lower_subreg2): ...new function.
22117 (pass_mode_switching): Replace declaration with that of...
22118 (make_pass_mode_switching): ...new function.
22119 (pass_sms): Replace declaration with that of...
22120 (make_pass_sms): ...new function.
22121 (pass_sched): Replace declaration with that of...
22122 (make_pass_sched): ...new function.
22123 (pass_ira): Replace declaration with that of...
22124 (make_pass_ira): ...new function.
22125 (pass_reload): Replace declaration with that of...
22126 (make_pass_reload): ...new function.
22127 (pass_clean_state): Replace declaration with that of...
22128 (make_pass_clean_state): ...new function.
22129 (pass_branch_prob): Replace declaration with that of...
22130 (make_pass_branch_prob): ...new function.
22131 (pass_value_profile_transformations): Replace declaration with that
22133 (make_pass_value_profile_transformations): ...new function.
22134 (pass_postreload_cse): Replace declaration with that of...
22135 (make_pass_postreload_cse): ...new function.
22136 (pass_gcse2): Replace declaration with that of...
22137 (make_pass_gcse2): ...new function.
22138 (pass_split_after_reload): Replace declaration with that of...
22139 (make_pass_split_after_reload): ...new function.
22140 (pass_branch_target_load_optimize1): Replace declaration with that
22142 (make_pass_branch_target_load_optimize1): ...new function.
22143 (pass_thread_prologue_and_epilogue): Replace declaration with that
22145 (make_pass_thread_prologue_and_epilogue): ...new function.
22146 (pass_stack_adjustments): Replace declaration with that of...
22147 (make_pass_stack_adjustments): ...new function.
22148 (pass_peephole2): Replace declaration with that of...
22149 (make_pass_peephole2): ...new function.
22150 (pass_if_after_reload): Replace declaration with that of...
22151 (make_pass_if_after_reload): ...new function.
22152 (pass_regrename): Replace declaration with that of...
22153 (make_pass_regrename): ...new function.
22154 (pass_cprop_hardreg): Replace declaration with that of...
22155 (make_pass_cprop_hardreg): ...new function.
22156 (pass_reorder_blocks): Replace declaration with that of...
22157 (make_pass_reorder_blocks): ...new function.
22158 (pass_branch_target_load_optimize2): Replace declaration with that
22160 (make_pass_branch_target_load_optimize2): ...new function.
22161 (pass_leaf_regs): Replace declaration with that of...
22162 (make_pass_leaf_regs): ...new function.
22163 (pass_split_before_sched2): Replace declaration with that of...
22164 (make_pass_split_before_sched2): ...new function.
22165 (pass_compare_elim_after_reload): Replace declaration with that of...
22166 (make_pass_compare_elim_after_reload): ...new function.
22167 (pass_sched2): Replace declaration with that of...
22168 (make_pass_sched2): ...new function.
22169 (pass_stack_regs): Replace declaration with that of...
22170 (make_pass_stack_regs): ...new function.
22171 (pass_stack_regs_run): Replace declaration with that of...
22172 (make_pass_stack_regs_run): ...new function.
22173 (pass_df_finish): Replace declaration with that of...
22174 (make_pass_df_finish): ...new function.
22175 (pass_compute_alignments): Replace declaration with that of...
22176 (make_pass_compute_alignments): ...new function.
22177 (pass_duplicate_computed_gotos): Replace declaration with that of...
22178 (make_pass_duplicate_computed_gotos): ...new function.
22179 (pass_variable_tracking): Replace declaration with that of...
22180 (make_pass_variable_tracking): ...new function.
22181 (pass_free_cfg): Replace declaration with that of...
22182 (make_pass_free_cfg): ...new function.
22183 (pass_machine_reorg): Replace declaration with that of...
22184 (make_pass_machine_reorg): ...new function.
22185 (pass_cleanup_barriers): Replace declaration with that of...
22186 (make_pass_cleanup_barriers): ...new function.
22187 (pass_delay_slots): Replace declaration with that of...
22188 (make_pass_delay_slots): ...new function.
22189 (pass_split_for_shorten_branches): Replace declaration with that of...
22190 (make_pass_split_for_shorten_branches): ...new function.
22191 (pass_split_before_regstack): Replace declaration with that of...
22192 (make_pass_split_before_regstack): ...new function.
22193 (pass_convert_to_eh_region_ranges): Replace declaration with that
22195 (make_pass_convert_to_eh_region_ranges): ...new function.
22196 (pass_shorten_branches): Replace declaration with that of...
22197 (make_pass_shorten_branches): ...new function.
22198 (pass_set_nothrow_function_flags): Replace declaration with that of...
22199 (make_pass_set_nothrow_function_flags): ...new function.
22200 (pass_dwarf2_frame): Replace declaration with that of...
22201 (make_pass_dwarf2_frame): ...new function.
22202 (pass_final): Replace declaration with that of...
22203 (make_pass_final): ...new function.
22204 (pass_rtl_seqabstr): Replace declaration with that of...
22205 (make_pass_rtl_seqabstr): ...new function.
22206 (pass_release_ssa_names): Replace declaration with that of...
22207 (make_pass_release_ssa_names): ...new function.
22208 (pass_early_inline): Replace declaration with that of...
22209 (make_pass_early_inline): ...new function.
22210 (pass_inline_parameters): Replace declaration with that of...
22211 (make_pass_inline_parameters): ...new function.
22212 (pass_update_address_taken): Replace declaration with that of...
22213 (make_pass_update_address_taken): ...new function.
22214 (pass_convert_switch): Replace declaration with that of...
22215 (make_pass_convert_switch): ...new function.
22216 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22217 to a subclass of simple_ipa_opt_pass along with...
22218 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22219 (make_pass_ipa_tree_profile): ...new function.
22220 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22221 subclass of gimple_opt_pass along with...
22222 (pass_data_sra_early): ...new pass_data instance and...
22223 (make_pass_sra_early): ...new function.
22224 (pass_sra): Convert from a global struct to a subclass of
22225 gimple_opt_pass along with...
22226 (pass_data_sra): ...new pass_data instance and...
22227 (make_pass_sra): ...new function.
22228 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22229 gimple_opt_pass along with...
22230 (pass_data_early_ipa_sra): ...new pass_data instance and...
22231 (make_pass_early_ipa_sra): ...new function.
22232 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22233 subclass of gimple_opt_pass along with...
22234 (pass_data_ccp): ...new pass_data instance and...
22235 (make_pass_ccp): ...new function.
22236 (pass_fold_builtins): Convert from a global struct to a subclass of
22237 gimple_opt_pass along with...
22238 (pass_data_fold_builtins): ...new pass_data instance and...
22239 (make_pass_fold_builtins): ...new function.
22240 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22241 subclass of gimple_opt_pass along with...
22242 (pass_data_copy_prop): ...new pass_data instance and...
22243 (make_pass_copy_prop): ...new function.
22244 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22245 global struct to a subclass of gimple_opt_pass along with...
22246 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22247 (make_pass_rename_ssa_copies): ...new function.
22248 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22249 subclass of gimple_opt_pass along with...
22250 (pass_data_dce): ...new pass_data instance and...
22251 (make_pass_dce): ...new function.
22252 (pass_dce_loop): Convert from a global struct to a subclass of
22253 gimple_opt_pass along with...
22254 (pass_data_dce_loop): ...new pass_data instance and...
22255 (make_pass_dce_loop): ...new function.
22256 (pass_cd_dce): Convert from a global struct to a subclass of
22257 gimple_opt_pass along with...
22258 (pass_data_cd_dce): ...new pass_data instance and...
22259 (make_pass_cd_dce): ...new function.
22260 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22261 subclass of gimple_opt_pass along with...
22262 (pass_data_dominator): ...new pass_data instance and...
22263 (make_pass_dominator): ...new function.
22264 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22265 gimple_opt_pass along with...
22266 (pass_data_phi_only_cprop): ...new pass_data instance and...
22267 (make_pass_phi_only_cprop): ...new function.
22268 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22269 subclass of gimple_opt_pass along with...
22270 (pass_data_dse): ...new pass_data instance and...
22271 (make_pass_dse): ...new function.
22272 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
22273 a subclass of gimple_opt_pass along with...
22274 (pass_data_forwprop): ...new pass_data instance and...
22275 (make_pass_forwprop): ...new function.
22276 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
22277 struct to a subclass of gimple_opt_pass along with...
22278 (pass_data_tree_ifcombine): ...new pass_data instance and...
22279 (make_pass_tree_ifcombine): ...new function.
22280 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
22281 subclass of gimple_opt_pass along with...
22282 (pass_data_ch): ...new pass_data instance and...
22283 (make_pass_ch): ...new function.
22284 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
22285 subclass of gimple_opt_pass along with...
22286 (pass_data_tree_loop): ...new pass_data instance and...
22287 (make_pass_tree_loop): ...new function.
22288 (pass_tree_loop_init): Convert from a global struct to a subclass of
22289 gimple_opt_pass along with...
22290 (pass_data_tree_loop_init): ...new pass_data instance and...
22291 (make_pass_tree_loop_init): ...new function.
22292 (pass_lim): Convert from a global struct to a subclass of
22293 gimple_opt_pass along with...
22294 (pass_data_lim): ...new pass_data instance and...
22295 (make_pass_lim): ...new function.
22296 (pass_tree_unswitch): Convert from a global struct to a subclass of
22297 gimple_opt_pass along with...
22298 (pass_data_tree_unswitch): ...new pass_data instance and...
22299 (make_pass_tree_unswitch): ...new function.
22300 (pass_predcom): Convert from a global struct to a subclass of
22301 gimple_opt_pass along with...
22302 (pass_data_predcom): ...new pass_data instance and...
22303 (make_pass_predcom): ...new function.
22304 (pass_vectorize): Convert from a global struct to a subclass of
22305 gimple_opt_pass along with...
22306 (pass_data_vectorize): ...new pass_data instance and...
22307 (make_pass_vectorize): ...new function.
22308 (pass_graphite): Convert from a global struct to a subclass of
22309 gimple_opt_pass along with...
22310 (pass_data_graphite): ...new pass_data instance and...
22311 (make_pass_graphite): ...new function.
22312 (pass_graphite_transforms): Convert from a global struct to a subclass
22313 of gimple_opt_pass along with...
22314 (pass_data_graphite_transforms): ...new pass_data instance and...
22315 (make_pass_graphite_transforms): ...new function.
22316 (pass_check_data_deps): Convert from a global struct to a subclass of
22317 gimple_opt_pass along with...
22318 (pass_data_check_data_deps): ...new pass_data instance and...
22319 (make_pass_check_data_deps): ...new function.
22320 (pass_iv_canon): Convert from a global struct to a subclass of
22321 gimple_opt_pass along with...
22322 (pass_data_iv_canon): ...new pass_data instance and...
22323 (make_pass_iv_canon): ...new function.
22324 (pass_scev_cprop): Convert from a global struct to a subclass of
22325 gimple_opt_pass along with...
22326 (pass_data_scev_cprop): ...new pass_data instance and...
22327 (make_pass_scev_cprop): ...new function.
22328 (pass_record_bounds): Convert from a global struct to a subclass of
22329 gimple_opt_pass along with...
22330 (pass_data_record_bounds): ...new pass_data instance and...
22331 (make_pass_record_bounds): ...new function.
22332 (pass_complete_unroll): Convert from a global struct to a subclass of
22333 gimple_opt_pass along with...
22334 (pass_data_complete_unroll): ...new pass_data instance and...
22335 (make_pass_complete_unroll): ...new function.
22336 (pass_complete_unrolli): Convert from a global struct to a subclass of
22337 gimple_opt_pass along with...
22338 (pass_data_complete_unrolli): ...new pass_data instance and...
22339 (make_pass_complete_unrolli): ...new function.
22340 (pass_parallelize_loops): Convert from a global struct to a subclass
22341 of gimple_opt_pass along with...
22342 (pass_data_parallelize_loops): ...new pass_data instance and...
22343 (make_pass_parallelize_loops): ...new function.
22344 (pass_loop_prefetch): Convert from a global struct to a subclass of
22345 gimple_opt_pass along with...
22346 (pass_data_loop_prefetch): ...new pass_data instance and...
22347 (make_pass_loop_prefetch): ...new function.
22348 (pass_iv_optimize): Convert from a global struct to a subclass of
22349 gimple_opt_pass along with...
22350 (pass_data_iv_optimize): ...new pass_data instance and...
22351 (make_pass_iv_optimize): ...new function.
22352 (pass_tree_loop_done): Convert from a global struct to a subclass of
22353 gimple_opt_pass along with...
22354 (pass_data_tree_loop_done): ...new pass_data instance and...
22355 (make_pass_tree_loop_done): ...new function.
22356 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
22357 struct to a subclass of gimple_opt_pass along with...
22358 (pass_data_cse_reciprocals): ...new pass_data instance and...
22359 (make_pass_cse_reciprocals): ...new function.
22360 (pass_cse_sincos): Convert from a global struct to a subclass of
22361 gimple_opt_pass along with...
22362 (pass_data_cse_sincos): ...new pass_data instance and...
22363 (make_pass_cse_sincos): ...new function.
22364 (pass_optimize_bswap): Convert from a global struct to a subclass of
22365 gimple_opt_pass along with...
22366 (pass_data_optimize_bswap): ...new pass_data instance and...
22367 (make_pass_optimize_bswap): ...new function.
22368 (pass_optimize_widening_mul): Convert from a global struct to a
22369 subclass of gimple_opt_pass along with...
22370 (pass_data_optimize_widening_mul): ...new pass_data instance and...
22371 (make_pass_optimize_widening_mul): ...new function.
22372 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
22373 subclass of gimple_opt_pass along with...
22374 (pass_data_phiopt): ...new pass_data instance and...
22375 (make_pass_phiopt): ...new function.
22376 (pass_cselim): Convert from a global struct to a subclass of
22377 gimple_opt_pass along with...
22378 (pass_data_cselim): ...new pass_data instance and...
22379 (make_pass_cselim): ...new function.
22380 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
22381 subclass of gimple_opt_pass along with...
22382 (pass_data_phiprop): ...new pass_data instance and...
22383 (make_pass_phiprop): ...new function.
22384 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
22385 subclass of gimple_opt_pass along with...
22386 (pass_data_pre): ...new pass_data instance and...
22387 (make_pass_pre): ...new function.
22388 (pass_fre): Convert from a global struct to a subclass of
22389 gimple_opt_pass along with...
22390 (pass_data_fre): ...new pass_data instance and...
22391 (make_pass_fre): ...new function.
22392 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
22393 subclass of gimple_opt_pass along with...
22394 (pass_data_reassoc): ...new pass_data instance and...
22395 (make_pass_reassoc): ...new function.
22396 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
22397 subclass of gimple_opt_pass along with...
22398 (pass_data_sink_code): ...new pass_data instance and...
22399 (make_pass_sink_code): ...new function.
22400 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
22401 subclass of gimple_opt_pass along with...
22402 (pass_data_strlen): ...new pass_data instance and...
22403 (make_pass_strlen): ...new function.
22404 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
22405 struct to a subclass of gimple_opt_pass along with...
22406 (pass_data_build_alias): ...new pass_data instance and...
22407 (make_pass_build_alias): ...new function.
22408 (pass_build_ealias): Convert from a global struct to a subclass of
22409 gimple_opt_pass along with...
22410 (pass_data_build_ealias): ...new pass_data instance and...
22411 (make_pass_build_ealias): ...new function.
22412 (pass_ipa_pta): Convert from a global struct to a subclass of
22413 simple_ipa_opt_pass along with...
22414 (pass_data_ipa_pta): ...new pass_data instance and...
22415 (make_pass_ipa_pta): ...new function.
22416 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
22417 subclass of gimple_opt_pass along with...
22418 (pass_data_uncprop): ...new pass_data instance and...
22419 (make_pass_uncprop): ...new function.
22420 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
22421 global struct to a subclass of gimple_opt_pass along with...
22422 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
22423 (make_pass_late_warn_uninitialized): ...new function.
22424 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
22425 to a subclass of gimple_opt_pass along with...
22426 (pass_data_init_datastructures): ...new pass_data instance and...
22427 (make_pass_init_datastructures): ...new function.
22428 (pass_early_warn_uninitialized): Convert from a global struct to a
22429 subclass of gimple_opt_pass along with...
22430 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
22431 (make_pass_early_warn_uninitialized): ...new function.
22432 (pass_update_address_taken): Convert from a global struct to a
22433 subclass of gimple_opt_pass along with...
22434 (pass_data_update_address_taken): ...new pass_data instance and...
22435 (make_pass_update_address_taken): ...new function.
22436 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
22437 struct to a subclass of gimple_opt_pass along with...
22438 (pass_data_release_ssa_names): ...new pass_data instance and...
22439 (make_pass_release_ssa_names): ...new function.
22440 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
22441 subclass of gimple_opt_pass along with...
22442 (pass_data_stdarg): ...new pass_data instance and...
22443 (make_pass_stdarg): ...new function.
22444 * tree-switch-conversion.c (pass_convert_switch): Convert from a
22445 global struct to a subclass of gimple_opt_pass along with...
22446 (pass_data_convert_switch): ...new pass_data instance and...
22447 (make_pass_convert_switch): ...new function.
22448 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
22449 to a subclass of gimple_opt_pass along with...
22450 (pass_data_tail_recursion): ...new pass_data instance and...
22451 (make_pass_tail_recursion): ...new function.
22452 (pass_tail_calls): Convert from a global struct to a subclass of
22453 gimple_opt_pass along with...
22454 (pass_data_tail_calls): ...new pass_data instance and...
22455 (make_pass_tail_calls): ...new function.
22456 * tree-vect-generic.c (pass_lower_vector): Convert from a global
22457 struct to a subclass of gimple_opt_pass along with...
22458 (pass_data_lower_vector): ...new pass_data instance and...
22459 (make_pass_lower_vector): ...new function.
22460 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
22461 gimple_opt_pass along with...
22462 (pass_data_lower_vector_ssa): ...new pass_data instance and...
22463 (make_pass_lower_vector_ssa): ...new function.
22464 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
22465 to a subclass of gimple_opt_pass along with...
22466 (pass_data_slp_vectorize): ...new pass_data instance and...
22467 (make_pass_slp_vectorize): ...new function.
22468 (pass_ipa_increase_alignment): Convert from a global struct to a
22469 subclass of simple_ipa_opt_pass along with...
22470 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
22471 (make_pass_ipa_increase_alignment): ...new function.
22472 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
22473 gimple_opt_pass along with...
22474 (pass_data_vrp): ...new pass_data instance and...
22475 (make_pass_vrp): ...new function.
22476 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
22477 subclass of simple_ipa_opt_pass along with...
22478 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
22479 (make_pass_ipa_free_lang_data): ...new function.
22480 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
22481 gimple_opt_pass along with...
22482 (pass_data_tsan): ...new pass_data instance and...
22483 (make_pass_tsan): ...new function.
22484 (pass_tsan_O0): Convert from a global struct to a subclass of
22485 gimple_opt_pass along with...
22486 (pass_data_tsan_O0): ...new pass_data instance and...
22487 (make_pass_tsan_O0): ...new function.
22488 * var-tracking.c (pass_variable_tracking): Convert from a global
22489 struct to a subclass of rtl_opt_pass along with...
22490 (pass_data_variable_tracking): ...new pass_data instance and...
22491 (make_pass_variable_tracking): ...new function.
22492 * web.c (pass_web): Convert from a global struct to a subclass of
22493 rtl_opt_pass along with...
22494 (pass_data_web): ...new pass_data instance and...
22495 (make_pass_web): ...new function.
22496 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
22497 declaration with that of...
22498 (make_pass_mode_switch_use): ...new function.
22499 (pass_resolve_sw_modes): Replace declaration with that of...
22500 (make_pass_resolve_sw_modes): ...new function.
22501 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
22502 from a global struct to a subclass of rtl_opt_pass along with...
22503 (pass_data_mode_switch_use): ...new pass_data instance and...
22504 (make_pass_mode_switch_use): ...new function.
22505 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
22506 from a global struct to a subclass of rtl_opt_pass along with...
22507 (pass_data_resolve_sw_modes): ...new pass_data instance and...
22508 (make_pass_resolve_sw_modes): ...new function.
22509 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
22510 struct to a subclass of rtl_opt_pass along with...
22511 (pass_data_insert_vzeroupper): ...new pass_data instance and...
22512 (make_pass_insert_vzeroupper): ...new function.
22513 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
22514 global struct to a subclass of rtl_opt_pass along with...
22515 (pass_data_work_around_errata): ...new pass_data instance and...
22516 (make_pass_work_around_errata): ...new function.
22517 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
22518 struct to a subclass of rtl_opt_pass along with...
22519 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
22520 (make_pass_mips_machine_reorg2): ...new function.
22522 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22524 * passes.c (pass_manager::operator new): New.
22526 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22528 Handwritten part of conversion of passes to C++ classes.
22530 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
22531 (toplev.o): Add dep on PASS_MANAGER_H.
22532 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
22533 of early local pases to reflect this moving from a global to a
22534 member of gcc::pass_manager.
22535 (cgraph_add_new_function): Likewise.
22536 * lto-cgraph.c (lto_output_node): Update for conversion of
22537 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
22538 * passes.c (opt_pass::clone): New.
22539 (opt_pass::gate): New.
22540 (opt_pass::execute): New.
22541 (opt_pass::opt_pass): New.
22542 (pass_manager::execute_early_local_passes): New.
22543 (pass_manager::execute_pass_mode_switching): new.
22544 (finish_optimization_passes): Convert to...
22545 (pass_manager::finish_optimization_passes): ...this.
22546 (finish_optimization_passes): Update for conversion of passes to
22548 (register_dump_files_1): Use has_gate since we cannot portably
22549 check a vtable entry against NULL.
22550 (dump_one_pass): Likewise.
22551 (ipa_write_summaries_2): Likewise.
22552 (ipa_write_optimization_summaries_1): Likewise.
22553 (ipa_read_summaries_1): Likewise.
22554 (ipa_read_optimization_summaries_1): Likewise.
22555 (execute_ipa_stmt_fixups): Likewise.
22556 (pass_manager::pass_manager): Rewrite pass-creation, invoking
22557 pass-creation functions rather than wiring up globals, and
22558 storing the results in fields of pass_manager generated using
22559 pass-instances.def.
22560 (pass_manager::dump_profile_report): Update for conversion of
22561 passes to C++ classes.
22562 (pass_manager::execute_ipa_summary_passes): Likewise.
22563 (execute_one_ipa_transform_pass): Likewise.
22564 (execute_one_pass): Use has_gate and has_execute since we cannot
22565 portably check a vtable entry against NULL.
22566 * pass_manager.h (pass_manager::finish_optimization_passes): New.
22567 (pass_manager): Use pass-instances.def to add fields for the
22568 various pass instances.
22569 * toplev.c (finalize): Update for move of
22570 finish_optimization_passes to a method of gcc::pass_manager.
22571 * toplev.h (finish_optimization_passes): Move to method of class
22573 * tree-pass.h (struct pass_data): New.
22574 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
22575 (opt_pass::gate): Convert to virtual function.
22576 (opt_pass::~opt_pass): New.
22577 (opt_pass::clone): New.
22578 (opt_pass::execute): Convert to virtual function.
22579 (opt_pass::opt_pass): New.
22580 (opt_pass::ctxt_): new.
22581 (gimple_opt_pass): Convert to subclass of opt_pass.
22582 (gimple_opt_pass::gimple_opt_pass): New.
22583 (rtl_opt_pass): Convert to subclass of opt_pass.
22584 (rtl_opt_pass::rtl_opt_pass): New.
22585 (ipa_opt_pass_d): Convert to subclass of opt_pass.
22586 (ipa_opt_pass_d::ipa_opt_pass_d): New.
22587 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
22588 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
22589 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
22590 invocation of pass_mode_switching to reflect this moving from a
22591 global to a member of gcc::pass_manager.
22592 (ix86_option_override): Rework how pass_insert_vzeroupper is
22593 added to the pass_manager to reflect autogenerated changes.
22594 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
22596 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
22598 PR rtl-optimization/57708
22599 * recog.c (peep2_find_free_register): Validate all regs in a
22602 2013-08-05 Jan Hubicka <jh@suse.cz>
22605 * cgraph.c (verify_cgraph_node): Accept local flags from other
22607 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
22608 (function_and_variable_visibility): Likewise.
22609 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
22611 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22613 * graph.c (init_graph_slim_pretty_print): Remove.
22614 (print_graph_cfg): Do not call it. Use local pretty printer.
22615 (start_graph_dump): Likewise.
22617 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22619 * gimple-pretty-print.c (buffer): Remove.
22620 (initialized): Likewise.
22621 (maybe_init_pretty_print): Likewise.
22622 (print_gimple_stmt): Do not call it. Use non-static local
22623 pretty_printer variable.
22624 (print_gimple_expr): Likewise.
22625 (print_gimple_seq): Likewise.
22626 (gimple_dump_bb): Likewise.
22628 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22630 * asan.c (asan_pp): Remove.
22631 (asan_pp_initialized): Likewise.
22632 (asan_pp_initialize): Likewise.
22633 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
22634 (asan_emit_stack_protection): Tidy. Use local pretty printer.
22635 (asan_add_global): Likewise.
22637 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
22639 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
22640 * diagnostic.h (diagnostic_flush_buffer): Adjust.
22641 * pretty-print.c (pp_formatted_text_data): Likewise.
22642 (pp_indent): Rename from pp_base_indent.
22643 (pp_format): Rename from pp_base_format.
22644 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
22645 (pp_format_verbatim): Rename from pp_base_format_verbatim.
22646 (pp_flush): Rename from pp_base_flush.
22647 (pp_set_line_maximum_length): Rename from
22648 pp_base_set_line_maximum_length.
22649 (pp_clear_output_area): Rename from pp_base_clear_output_area.
22650 (pp_set_prefix): Rename from pp_base_set_prefix.
22651 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
22652 (pp_emit_prefix): Rename from pp_base_emit_prefix.
22653 (pp_append_text): Rename from pp_base_append_text.
22654 (pp_formatted_text): Rename from pp_base_formatted_text.
22655 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
22656 (pp_remaining_character_count_for_line): Rename from
22657 pp_base_remaining_character_count_for_line.
22658 (pp_newline): Rename from pp_base_newline.
22659 (pp_character): Rename from pp_base_character.
22660 (pp_string): Rename from pp_base_string.
22661 (pp_maybe_space): Rename from pp_base_maybe_space.
22662 * asan.c (asan_pp_string): Adjust.
22663 (asan_emit_stack_protection): Likewise.
22664 (asan_add_global): Likewise.
22665 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
22666 * tree-mudflap.c (mf_varname_tree): Likewise.
22667 * tree-pretty-print.c (pp_tree_identifier): Rename from
22668 pp_base_tree_identifier.
22669 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
22670 Declare as function.
22672 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22674 * pretty-print.h (pp_bar_bar): New.
22675 (pp_ampersand_ampersand): Likewise.
22676 (pp_less_equal): Likewise.
22677 (pp_greater_equal): Likewise.
22678 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
22679 printer functions instead of pp_string or operators and punctuators.
22680 (dump_gimple_call): Likewise.
22681 (dump_gimple_omp_for): Likewise.
22682 (dump_gimple_transaction): Likewise.
22683 (dump_gimple_phi): Likewise.
22684 (pp_gimple_stmt_1): Likewise.
22685 * sched-vis.c (print_insn): Likewise.
22686 * tree-mudflap.c (mf_varname_tree): Likewise.
22687 * tree-pretty-print.c (dump_block_node): Likewise.
22688 (dump_generic_node): Likewise.
22690 2013-08-02 Jan Hubicka <jh@suse.cz>
22692 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
22694 * lto-streamer-out.c (tree_is_indexable): Results decls and
22695 parm decls are not indexable.
22696 (DFS_write_tree_body): Do not follow args and results.
22697 (hash_tree): Likewise.
22698 (output_functions): Rearrange so struct function is needed
22699 only when real body is output; be able to also ouptut abstract
22700 functions; output DECL_ARGUMENTS and DECL_RESULT.
22701 (lto_output): When not in WPA, ale store abstract functions.
22702 (write_symbol): Do not care about RESULT_DECL.
22703 (output_symbol_p): Handle correctly sbtract decls.
22704 * lto-streamer-in.c (input_function): Rearrange so struct
22705 function can be NULL at entry; allow streaming of
22706 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
22707 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
22708 sanity check during LTO.
22709 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
22710 RESULT_DECl and DECL_ARGUMENTS.
22711 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
22714 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22716 * pretty-print.h (pp_underscore): New.
22718 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
22719 printer functions instead of pp_character.
22720 (dump_binary_rhs): Likewise.
22721 (dump_ternary_rhs): Likewise.
22722 (dump_gimple_call_args): Likewise.
22723 (pp_points_to_solution): Likewise.
22724 (dump_gimple_call): Likewise.
22725 (dump_gimple_switch): Likewise.
22726 (dump_gimple_cond): Likewise.
22727 (dump_gimple_bind): Likewise.
22728 (dump_gimple_try): Likewise.
22729 (dump_gimple_omp_for): Likewise.
22730 (dump_gimple_omp_continue): Likewise.
22731 (dump_gimple_omp_single): Likewise.
22732 (dump_gimple_omp_sections): Likewise.
22733 (dump_gimple_omp_block): Likewise.
22734 (dump_gimple_omp_critical): Likewise.
22735 (dump_gimple_transaction): Likewise.
22736 (dump_gimple_asm): Likewise.
22737 (dump_gimple_phi): Likewise.
22738 (dump_gimple_omp_parallel): Likewise.
22739 (dump_gimple_omp_task): Likewise.
22740 (dump_gimple_omp_atomic_load): Likewise.
22741 (dump_gimple_omp_atomic_store): Likewise.
22742 (dump_gimple_mem_ops): Likewise.
22743 (pp_gimple_stmt_1): Likewise.
22744 (pp_cfg_jump): Likewise.
22745 (dump_implicit_edges): Likewise.
22746 (gimple_dump_bb_for_graph): Likewise.
22747 * graph.c (draw_cfg_node): Likewise.
22748 * langhooks.c (lhd_print_error_function): Likewise.
22749 * sched-vis.c (print_exp): Likewise.
22750 (print_value): Likewise.
22751 (print_pattern): Likewise.
22752 (print_insn): Likewise.
22753 (rtl_dump_bb_for_graph): Likewise.
22754 * tree-pretty-print.c (dump_function_declaration): Likewise.
22755 (dump_array_domain): Likewise.
22756 (dump_omp_clause): Likewise.
22757 (dump_location): Likewise.
22758 (dump_generic_node): Likewise.
22759 (print_struct_decl): Likewise.
22760 * diagnostic.c (diagnostic_show_locus): Use pp_space.
22762 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22764 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
22765 candidate table when replacing a candidate statement.
22766 (replace_rhs_if_not_dup): Likewise.
22767 (replace_one_candidate): Likewise.
22769 2013-08-02 Jan Hubicka <jh@suse.cz>
22770 Martin Liska <marxin.liska@gmail.com>
22772 * cgraphunit.c (add_new_function): Fix logic when adding from
22774 (assemble_thunk): Rename to ...
22775 (expand_thunk); .. this one; export; get it working with
22776 general functions; make produced gimple valid.
22777 * cgraph.h (expand_thunk): Declare.
22779 2013-08-02 Jan Hubicka <jh@suse.cz>
22781 * ipa-cp.c (gather_context_independent_values): Use
22782 ipa_get_param_move_cost.
22783 (get_replacement_map): Remove PARAM; move parameter folding
22785 (create_specialized_node): Update.
22786 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
22787 assert that we have gimple body; update move_cost.
22788 (count_formal_params): Assert that we have gimple body.
22789 (ipa_dump_param): New function.
22790 (ipa_alloc_node_params): Break out from ...
22791 (ipa_initialize_node_params): ... here.
22792 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
22793 (ipa_write_node_info): Stream move costs.
22794 (ipa_read_node_info): Read move costs.
22795 (ipa_update_after_lto_read): Do not recompute node params.
22796 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
22797 (ipa_get_param): Check we are not in WPA.
22798 (ipa_get_param_move_cost): New.
22799 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
22800 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
22801 parm numbers to be present.
22803 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22805 PR rtl-optimization/58048
22806 * lra-constraints.c (process_alt_operands): Don't check asm
22807 operand on register.
22809 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
22811 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
22812 the implied StoreLoad barrier for atomic operations if before.
22814 2013-08-02 Jan Hubicka <jh@suse.cz>
22815 Martin Liska <marxin.liska@gmail.com>
22817 * cgraph.c (cgraph_function_body_availability): Do not check
22819 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
22820 symtab_node_availability): Declare.
22821 * ipa.c (can_replace_by_local_alias): New.
22822 (function_and_variable_visibility): Use it.
22823 * symtab.c (symtab_for_node_and_aliases,
22824 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
22826 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22828 PR rtl-optimization/57963
22829 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
22830 (lra_constraints): Use them.
22832 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
22834 * config/arm/types.md (define_attr "type"): Add "load_acq"
22836 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
22838 (cortex_a53_store1): Likewise.
22840 2013-08-01 Jan Hubicka <jh@suse.cz>
22842 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
22843 partitions are not needed.
22845 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
22847 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
22848 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
22849 MAYBE_NON_Q_CLASS_P where appropriate.
22851 2013-08-01 Jan Hubicka <jh@suse.cz>
22853 * cgraph.h (release_function_body): Declare.
22854 * tree.c (free_lang_data_in_decl): Free, parameters and return values
22855 of unused delcarations.
22857 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22859 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
22860 RTL form when subtracting a constant.
22862 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22864 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
22865 Generate canonical plus rtx with negated immediate instead of minus
22867 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
22869 2013-08-01 Jan Hubicka <jh@suse.cz>
22871 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
22872 (cgraph_release_function_body): Likewise.
22873 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
22874 * cgraph.h (cgrpah_node): Rename abstract_and_needed
22875 to used_as_abstract_origin.
22876 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
22877 symbols used as abstract origins.
22878 * cgraphunit.c (analyze_functions): Update.
22879 * ipa.c (symtab_remove_unreachable_nodes): Recompute
22880 used_as_abstract_origin.
22881 * tree-inline.c (tree_function_versioning): Update
22882 used_as_abstract_origin; be ready for DECL_RESULT and
22883 DECL_ARGUMENTS to be NULL.
22885 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
22886 for abstract functions.
22887 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
22890 2013-08-01 Jan Hubicka <jh@suse.cz>
22892 * profile.c (compute_value_histograms): Fix thinko.
22894 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
22896 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
22897 aarch-common-protos.h to extra_headers.
22898 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
22899 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
22900 * config/aarch64/t-aarch64 (aarch-common.o): Define.
22902 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
22904 * config/aarch64/aarch64.md (define_attr "type"): Delete.
22905 Include "../arm/types.md". Define "type" attribute for all patterns.
22906 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
22909 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
22911 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
22912 to support power8 load fusion.
22913 (fusion_gpr_mem_load): Likewise.
22915 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
22917 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
22918 declarations for power8 load fusion.
22919 (emit_fusion_gpr_load): Likewise.
22921 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22922 tuning for power8, turn on fusion mode by default. Turn on sign
22923 extending fusion mode if normal fusion mode is on, and we are at
22925 (fusion_gpr_load_p): New function, return true if we can fuse an
22926 addis instruction with a dependent load to a GPR.
22927 (emit_fusion_gpr_load): Emit the instructions for power8 load
22930 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
22931 (VSX load fusion peepholes): New peepholes to fuse together an
22932 addi instruction with a VSX load instruction.
22934 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
22935 peepholes to fuse an addis instruction with a load to a GPR base
22936 register. If we are supporting sign extending fusions, convert
22937 sign extending loads to zero extending loads and add an explicit
22940 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
22942 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
22943 aarch-common-protos.h to extra_headers.
22944 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
22945 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
22946 (arm_early_store_addr_dep): Likewise.
22947 (arm_no_early_alu_shift_dep): Likewise.
22948 (arm_no_early_alu_shift_value_dep): Likewise.
22949 (arm_no_early_mul_dep): Likewise.
22950 (arm_no_early_store_addr_dep): Likewise.
22951 (arm_mac_accumulator_is_mul_result): Likewise.
22952 (arm_mac_accumulator_is_result): Likewise.
22953 * config/arm/aarch-common.c: ... here. New file.
22954 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
22956 (arm_early_store_addr_dep): Likewise.
22957 (arm_no_early_alu_shift_dep): Likewise.
22958 (arm_no_early_alu_shift_value_dep): Likewise.
22959 (arm_no_early_mul_dep): Likewise.
22960 (arm_no_early_store_addr_dep): Likewise.
22961 (arm_mac_accumulator_is_mul_result): Likewise.
22962 (arm_mac_accumulator_is_result): Likewise.
22963 * config/arm/aarch-common-protos.h: ... here. New file.
22964 * config/arm/t-arm (aarch-common.o): Define.
22966 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
22968 * config/arm/arm.md: Include new file "types.md".
22969 (define_attr "type"): Move from here to ...
22970 (define_attr "mul32"): Likewise.
22971 (define_attr "mul64"): Likewise.
22972 * config/arm/types.md: ... here. New file.
22974 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
22976 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
22977 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
22979 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22981 * gen-pass-instances.awk: Fix offset of substr().
22983 2013-07-31 David Malcolm <dmalcolm@redhat.com>
22985 * Makefile.in (pass-instances.def): New.
22986 (passes.o): Replace dependency on passes.def with one on
22989 * gen-pass-instances.awk: New.
22991 * passes.c (pass_manager::pass_manager): Use pass-instances.def
22992 rather than passes.def, updating local definition of NEXT_PASS
22993 macro to add an extra NUM parameter (currently unused).
22995 2013-07-30 David Malcolm <dmalcolm@redhat.com>
22997 * Makefile.in (PASS_MANAGER_H): New.
22998 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
22999 (passes.o): Likewise.
23000 (statistics.o): Likewise.
23001 (cgraphunit.o): Likewise.
23002 (context.o): Depend on PASS_MANAGER_H.
23004 * pass_manager.h: New.
23006 * cgraphunit.c (cgraph_add_new_function): Update for moves
23007 of globals to fields of pass_manager.
23008 (analyze_function): Likewise.
23009 (expand_function): Likewise.
23010 (ipa_passes): Likewise.
23011 (compile): Likewise.
23013 * context.c (context::context): New.
23014 * context.h (context::context): New.
23015 (context::get_passes): New.
23016 (context::passes_): New.
23018 * lto-cgraph.c (input_node): Update for moves of globals to
23019 fields of pass_manager.
23021 * passes.c (all_passes): Remove, in favor of a field of the
23022 same name within the new class pass_manager.
23023 (all_small_ipa_passes): Likewise.
23024 (all_lowering_passes): Likewise.
23025 (all_regular_ipa_passes): Likewise.
23026 (all_late_ipa_passes): Likewise.
23027 (all_lto_gen_passes): Likewise.
23028 (passes_by_id): Likewise.
23029 (passes_by_id_size): Likewise.
23030 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23031 the new class pass_manager.
23032 (set_pass_for_id): Convert to...
23033 (pass_manager::set_pass_for_id): ...method.
23034 (get_pass_for_id): Convert to...
23035 (pass_manager::get_pass_for_id): ...method.
23036 (register_one_dump_file): Move body of implementation into...
23037 (pass_manager::register_one_dump_file): ...here.
23038 (register_dump_files_1): Convert to...
23039 (pass_manager::register_dump_files_1): ...method.
23040 (register_dump_files): Convert to...
23041 (pass_manager::register_dump_files): ...method.
23042 (create_pass_tab): Update for moves of globals to fields of
23044 (dump_passes): Move body of implementation into...
23045 (pass_manager::dump_passes): ...here.
23046 (register_pass): Move body of implementation into...
23047 (pass_manager::register_pass): ...here.
23048 (init_optimization_passes): Convert into...
23049 (pass_manager::pass_manager): ...constructor for new
23050 pass_manager class, and initialize the pass_lists array.
23051 (check_profile_consistency): Update for moves of globals to
23052 fields of pass_manager.
23053 (dump_profile_report): Move body of implementation into...
23054 (pass_manager::dump_profile_report): ...here.
23055 (ipa_write_summaries_1): Update for moves of pass lists from
23056 being globals to fields of pass_manager.
23057 (ipa_write_optimization_summaries): Likewise.
23058 (ipa_read_summaries): Likewise.
23059 (ipa_read_optimization_summaries): Likewise.
23060 (execute_all_ipa_stmt_fixups): Likewise.
23062 * statistics.c (statistics_fini): Update for moves of globals to
23063 fields of pass_manager.
23065 * toplev.c (general_init): Replace call to
23066 init_optimization_passes with construction of the pass_manager
23069 * tree-pass.h (all_passes): Remove, in favor of a field of the
23070 same name within the new class pass_manager.
23071 (all_small_ipa_passes): Likewise.
23072 (all_lowering_passes): Likewise.
23073 (all_regular_ipa_passes): Likewise.
23074 (all_lto_gen_passes): Likewise.
23075 (all_late_ipa_passes): Likewise.
23076 (passes_by_id): Likewise.
23077 (passes_by_id_size): Likewise.
23078 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
23079 the new class pass_manager.
23080 (get_pass_for_id): Remove.
23082 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23084 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
23087 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
23089 * arm.md (mulhi3): New expand pattern.
23091 2013-07-30 Jan Hubicka <jh@suse.cz>
23092 Martin Liska <marxin.liska@gmail.com>
23094 * profile.c (compute_value_histograms): Do not ICE when
23095 there is mismatch only on some counters.
23097 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23099 PR rtl-optimization/57637
23100 * function.c (move_insn_for_shrink_wrap): Also check the
23101 GEN set of the LIVE problem for the liveness analysis
23102 if it exists, otherwise give up.
23104 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23106 PR tree-optimization/57993
23107 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
23108 replaced statement in the candidate table.
23109 (phi_add_costs): Return infinite cost when the hidden basis does
23110 not dominate all phis on which the candidate is dependent.
23111 (replace_one_candidate): Record replaced statement in the
23114 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
23116 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
23117 (ashlv2si3): New expander.
23118 (*ashlv2si3_i): New define_insn_and_split.
23119 * predicates.md (float_operation): Allow patterns with three
23120 basic sub-patterns.
23122 PR rtl-optimization/58021
23123 * mode-switching.c (create_pre_exit): Always split off preceding
23124 insns if we are not at the basic block head.
23126 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
23128 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
23129 (UCLIBC_DYNAMIC_LINKER): New macro.
23130 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
23132 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
23133 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
23135 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23136 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
23137 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
23138 for SF and DF modes. Use ieee_quad_format for TF mode.
23139 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
23140 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
23141 (mips_option_override): Handle `-mnan=legacy'.
23142 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
23143 `-mabs=2008' and `-mnan=2008'.
23144 (OPTION_DEFAULT_SPECS): Add "nan" default.
23145 (ASM_SPEC): Handle `-mnan='.
23146 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
23147 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23148 comment accordingly.
23149 (neg<mode>2): Likewise.
23150 * config/mips/mips.opt (mabs, mnan): New options.
23151 * doc/install.texi (Configuration): Document `--with-nan=' option.
23152 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
23154 (MIPS Options): Document them.
23155 * config.gcc <mips*-*-*>: Handle `--with-nan='.
23156 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
23157 * configure: Regenerate.
23158 * config.in: Regenerate.
23160 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23162 * config/i386/i386.md (float post-reload splitters): Do not check
23163 for subregs of SSE registers.
23165 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
23166 H.J. Lu <hongjiu.lu@intel.com>
23170 * config/i386/i386.md (post-reload splitter
23171 to avoid partial SSE reg dependency stalls): New pattern.
23173 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23175 * config/s390/s390.md ("movcc"): Swap load and store instructions.
23177 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
23179 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
23180 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
23182 2013-07-26 Cary Coutant <ccoutant@google.com>
23184 * dwarf2out.c (die_checksum_ordered): Don't include template
23185 instantiations in signature.
23186 (is_template_parameter): New function.
23187 (is_template_instantiation): New function.
23188 (generate_skeleton_bottom_up): Don't include template instantiations
23190 (generate_skeleton): Likewise.
23191 (break_out_comdat_types): Move recursive call to break out nested
23193 (prune_unused_types_mark_generic_parms_dies): Call
23194 is_template_parameter.
23196 2013-07-26 Ian Bolton <ian.bolton@arm.com>
23198 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
23199 uses vector registers.
23200 * config/aarch64/iterators.md: Add attributes rtn and vas.
23202 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23203 Richard Earnshaw <richard.earnshaw@arm.com>
23205 * combine.c (simplify_comparison): Re-canonicalize operands
23207 * config/arm/arm.md (movcond_addsi): New splitter.
23209 2013-07-25 Sterling Augustine <saugustine@google.com>
23211 * dwarf2out.c (size_of_pubnames): Move code to...
23212 (include_pubname_in_output): ...here. New.
23213 (want_pubnames): Rearrange.
23214 (output_pubnames): Call include_pubname_in_output. Move assertion.
23216 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23218 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23220 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23223 * doc/extend.texi: Remove obsolete builtins. Fix
23224 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23226 2013-07-25 Jan Hubicka <jh@suse.cz>
23228 * cgraph.c (release_function_body): Break out from ...
23229 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23230 and DECL_ARGUMENTS.
23231 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23232 old_tree in the map.
23233 (create_specialized_node): Update.
23234 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23236 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23237 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23238 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23239 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23242 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23244 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23245 addsi3_carryin_alt2_<optab>): Correct output template.
23247 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23249 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23250 Adjust for arm_restrict_it.
23251 Remove trailing whitespace.
23253 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23255 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23256 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23258 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23260 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23262 PR rtl-optimization/57960
23263 * lra-constraints.c (process_alt_operands): Use the right mode
23264 when checking strict_low.
23266 2013-07-25 Jan Hubicka <jh@suse.cz>
23268 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23269 * cgraph.c (cgraph_remove_node): Do not release function body
23270 when in cgraph streaming.
23271 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
23272 in other partitions are not considered reachable; fix handling of
23275 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23277 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
23279 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23284 * config/arm/arm.md ("*sibcall_insn): Replace use of
23285 Ss with US. Adjust output for v5 and v4t.
23286 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
23288 * config/arm/constraints.md ("Ss"): Rename to US.
23290 2013-07-25 Terry Guo <terry.guo@arm.com>
23292 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
23293 shift_add/shift_sub0/shift_sub1 RTXs.
23295 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
23296 Anton Blanchard <anton@au1.ibm.com>
23298 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
23299 (altivec_vpks<VI_char>ss): Likewise.
23300 (altivec_vpks<VI_char>us): Likewise.
23301 (altivec_vpku<VI_char>us): Likewise.
23302 (altivec_vpku<VI_char>um): Likewise.
23304 2013-07-24 David Malcolm <dmalcolm@redhat.com>
23306 Introduce context class.
23308 * Makefile.in (CONTEXT_H): New.
23309 (OBJS): Add context.o.
23310 (toplev.o): Add CONTEXT_H to dependencies.
23313 * toplev.c (general_init): Create the singleton gcc::context instance.
23319 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
23321 PR rtl-optimization/57968
23322 * mode-switching.c (create_pre_exit): Allow instructions that
23323 don't set a return register to need a non-exit mode.
23325 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23326 Anton Blanchard <anton@au1.ibm.com>
23328 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
23329 operands to vperm for little endian.
23330 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
23331 of lvsl to create the control mask for a vperm for little endian.
23333 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23334 Anton Blanchard <anton@au1.ibm.com>
23336 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
23337 two operands for little-endian.
23339 2013-07-23 Steve Ellcey <sellcey@mips.com>
23341 * config/mips/mips.c (mips_case_values_threshold): New.
23342 (TARGET_CASE_VALUES_THRESHOLD): Define.
23344 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23345 Anton Blanchard <anton@au1.ibm.com>
23347 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
23348 selection of field for vector splat in little endian mode.
23350 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23352 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
23353 expanders to rs6000.md.
23354 (ior<mode>3): Likewise.
23355 (and<mode>3): Likewise.
23356 (one_cmpl<mode>2): Likewise.
23357 (nor<mode>3): Likewise.
23358 (andc<mode>3): Likewise.
23359 (eqv<mode>3): Likewise.
23360 (nand<mode>3): Likewise.
23361 (orc<mode>3): Likewise.
23363 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
23366 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
23367 to split multi-word logical operations.
23368 (rs6000_split_logical_di): Likewise.
23369 (rs6000_split_logical): Likewise.
23371 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
23372 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
23373 and allow TImode operations in 32-bit.
23374 (vsx_and<mode>3_64bit): Likewise.
23375 (vsx_ior<mode>3_32bit): Likewise.
23376 (vsx_ior<mode>3_64bit): Likewise.
23377 (vsx_xor<mode>3_32bit): Likewise.
23378 (vsx_xor<mode>3_64bit): Likewise.
23379 (vsx_one_cmpl<mode>2_32bit): Likewise.
23380 (vsx_one_cmpl<mode>2_64bit): Likewise.
23381 (vsx_nor<mode>3_32bit): Likewise.
23382 (vsx_nor<mode>3_64bit): Likewise.
23383 (vsx_andc<mode>3_32bit): Likewise.
23384 (vsx_andc<mode>3_64bit): Likewise.
23385 (vsx_eqv<mode>3_32bit): Likewise.
23386 (vsx_eqv<mode>3_64bit): Likewise.
23387 (vsx_nand<mode>3_32bit): Likewise.
23388 (vsx_nand<mode>3_64bit): Likewise.
23389 (vsx_orc<mode>3_32bit): Likewise.
23390 (vsx_orc<mode>3_64bit): Likewise.
23392 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
23393 logical types in GPRs.
23395 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
23396 logical insns to rs6000.md, and allow TImode operations in
23398 (altivec_ior<mode>3): Likewise.
23399 (altivec_xor<mode>3): Likewise.
23400 (altivec_one_cmpl<mode>2): Likewise.
23401 (altivec_nor<mode>3): Likewise.
23402 (altivec_andc<mode>3): Likewise.
23404 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
23405 attributes for moving the 128-bit logical operations into
23407 (BOOL_REGS_OUTPUT): Likewise.
23408 (BOOL_REGS_OP1): Likewise.
23409 (BOOL_REGS_OP2): Likewise.
23410 (BOOL_REGS_UNARY): Likewise.
23411 (BOOL_REGS_AND_CR0): Likewise.
23412 (one_cmpl<mode>2): Add support for DI logical operations on
23413 32-bit, splitting the operations to 32-bit.
23414 (anddi3): Likewise.
23415 (iordi3): Likewise.
23416 (xordi3): Likewise.
23417 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
23418 changes to combine the 32/64-bit code, allow logical operations on
23419 TI mode in 32-bit, and to use similar match_operator patterns like
23420 scalar mode uses. Combine the Altivec and VSX code for logical
23421 operations, and move it here.
23422 (ior<mode>3, 128-bit types): Likewise.
23423 (xor<mode>3, 128-bit types): Likewise.
23424 (one_cmpl<mode>3, 128-bit types): Likewise.
23425 (nor<mode>3, 128-bit types): Likewise.
23426 (andc<mode>3, 128-bit types): Likewise.
23427 (eqv<mode>3, 128-bit types): Likewise.
23428 (nand<mode>3, 128-bit types): Likewise.
23429 (orc<mode>3, 128-bit types): Likewise.
23430 (and<mode>3_internal): Likewise.
23431 (bool<mode>3_internal): Likewise.
23432 (boolc<mode>3_internal1): Likewise.
23433 (boolc<mode>3_internal2): Likewise.
23434 (boolcc<mode>3_internal1): Likewise.
23435 (boolcc<mode>3_internal2): Likewise.
23436 (eqv<mode>3_internal1): Likewise.
23437 (eqv<mode>3_internal2): Likewise.
23438 (one_cmpl1<mode>3_internal): Likewise.
23440 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23442 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23443 Rename flag_stack_usage to flag_stack_usage_info.
23445 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23447 * config/microblaze/sync.md: New file.
23448 * config/microblaze/microblaze.md: Include sync.md
23449 * config/microblaze/microblaze.c: Add print_operand 'y'.
23450 * config/microblaze/constraints.md: Add memory_contraint
23451 'Q' which is a single register.
23453 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
23455 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
23457 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23459 * reload.c (find_reloads): Exit loop once we find this operand
23460 cannot be reloaded somehow for this alternative.
23462 * reload.c (find_reloads): Exit loop once we find a hard register.
23464 * rtlanal.c (computed_jump_p): Exit loop once we find label
23467 * i386.c (ix86_pad_returns): Exit loop after setting replace.
23469 * cfgloopmanip.c (remove_path): Exit loop after setting
23472 * gensupport.c (subst_dup): Avoid loop if code is not
23473 MATCH_DUP nor MATCH_OP_DUP.
23475 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
23477 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
23479 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23481 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
23482 true for SP_REGNUM if mode == ptr_mode.
23483 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
23484 with value R0_REGNUM + 31.
23486 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23488 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
23489 pad pointer-typed argument downward.
23491 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23493 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
23494 and __ILP32__ when the ILP32 model is in use.
23496 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23498 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
23499 (aarch64_load_symref_appropriately): In the case of
23500 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
23501 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
23502 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
23503 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
23504 if 'mode' doesn't equal to 'ptr_mode'.
23505 (aarch64_output_mi_thunk): Add an assertion on the alignment of
23506 'vcall_offset'; change to call aarch64_emit_move differently depending
23507 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
23508 to calculate the upper bound of 'vcall_offset'.
23509 (aarch64_cannot_force_const_mem): Change to also return true if
23511 (aarch64_legitimize_reload_address): In the case of large
23512 displacements, add new local variable 'xmode' and an assertion
23513 based on it; change to use 'xmode' to generate the new rtx and
23515 (aarch64_asm_trampoline_template): Change to generate the template
23516 differently depending on TARGET_ILP32 or not; change to use
23517 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
23518 (aarch64_trampoline_size): Removed.
23519 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
23520 and replace immediate literals with it. Change to use 'ptr_mode'
23521 instead of 'DImode' and call convert_memory_address if the mode
23522 of 'fnaddr' doesn't equal to 'ptr_mode'.
23523 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
23525 (aarch64_elf_asm_destructor): Likewise.
23526 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
23527 on TARGET_ILP32 instead of aarch64_trampoline_size.
23528 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
23529 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
23530 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
23531 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
23532 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
23533 (storewb_pair<GPI:mode>_<P:mode>): ... this.
23534 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
23535 depending on the value of 'mode'.
23536 (add_losym_<mode>): New.
23537 (ldr_got_small_<mode>): New, based on ldr_got_small.
23538 (ldr_got_small): Remove.
23539 (ldr_got_small_sidi): New.
23540 * config/aarch64/iterators.md (P): New.
23541 (PTR): Change to 'ptr_mode' in the condition.
23543 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23545 * config.gcc (aarch64*-*-*): Support --with-abi.
23546 (aarch64*-*-elf): Support --with-multilib-list.
23547 (aarch64*-*-linux*): Likewise.
23548 (supported_defaults): Add abi to aarch64*-*-*.
23549 * configure.ac: Mention AArch64 for --with-multilib-list.
23550 * configure: Re-generated.
23551 * config/aarch64/biarchilp32.h: New file.
23552 * config/aarch64/biarchlp64.h: New file.
23553 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
23555 (MULTILIB_DEFAULTS): Ditto.
23556 (DRIVER_SELF_SPECS): Ditto.
23557 (ASM_SPEC): Update to also substitute -mabi.
23558 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
23559 file whose name depends on -mabi= and -mbig-endian.
23560 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
23562 (POINTER_SIZE): New define.
23563 (POINTERS_EXTEND_UNSIGNED): Ditto.
23564 (enum aarch64_abi_type): New enumeration tag.
23565 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
23566 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
23567 (TARGET_ILP32): New define.
23568 * config/aarch64/aarch64.opt (mabi): New.
23569 (aarch64_abi): New.
23570 (ilp32, lp64): New values for -mabi.
23571 * config/aarch64/t-aarch64 (comma): New define.
23572 (MULTILIB_OPTIONS): Ditto.
23573 (MULTILIB_DIRNAMES): Ditto.
23574 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
23575 * doc/invoke.texi: Document -mabi for AArch64.
23577 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
23579 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
23581 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23582 Anton Blanchard <anton@au1.ibm.com>
23584 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
23585 endianness when selecting field to splat.
23587 2013-07-22 Eric Christopher <echristo@gmail.com>
23589 * dwarf2out.c (die_odr_checksum): New function to use
23590 CHECKSUM_ macros and ULEB128 for DIE tag.
23591 (generate_type_signature): Use.
23593 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
23595 * config.gcc (sparc*-*-*): Accept leon3 processor.
23596 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
23597 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
23598 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
23599 * config/sparc/sparc.opt (enum processor_type): Add leon3.
23600 (mfix-ut699): Adjust comment.
23601 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
23602 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
23603 (CPP_CPU_SPEC): Likewise.
23604 (ASM_CPU_SPEC): Likewise.
23605 * config/sparc/sparc.c (leon3_cost): New constant.
23606 (sparc_option_override): Add leon3 support.
23607 (mem_ref): New function.
23608 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
23609 (sparc_do_work_around_errata): Look into the instruction in the delay
23610 slot and adjust accordingly. Add fix for the data cache nullify issues
23611 of the UT699. Change insertion position for the NOP.
23612 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
23613 (leon3_load): New reservation.
23614 (leon_store): Bump latency to 2.
23615 (grfpu): New automaton.
23616 (grfpu_alu): New unit.
23617 (grfpu_ds): Likewise.
23618 (leon_fp_alu): Adjust.
23619 (leon_fp_mult): Delete.
23620 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
23621 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
23622 * config/sparc/sparc.md (cpu): Add leon3.
23623 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
23624 (swapsi): Likewise.
23625 (atomic_test_and_set): Likewise.
23626 (ldstub): Likewise.
23628 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
23630 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
23631 default for R5900 targets.
23632 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
23633 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
23634 * config/mips/mips.c (mips_option_override): Report an error for
23635 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
23636 for -march=r5900 -mhard-float.
23638 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23640 * df-problems.c (can_move_insns_across): Exit loop once we
23641 find a non-fixed, non-global register.
23643 * ipa-pure-const.c (propagate_nothrow): Exit loop after
23646 * omega.c (omega_eliminate_red): Break after setting red_found.
23647 (omega_problem_has_red_equations): Similarly after setting found.
23648 (omega_query_variable): Similarly after setting coupled.
23650 2013-07-22 Marek Polacek <polacek@redhat.com>
23652 * gimplify.c: Don't include gimple.h twice.
23654 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23656 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
23657 instead of TARGET_THUMB1.
23658 (Pz): New constraint.
23659 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
23661 (compare_negsi_si): Likewise.
23662 (compare_addsi2_op0): Likewise.
23663 (compare_addsi2_op1): Likewise.
23664 (addsi3_carryin_<optab>): Likewise.
23665 (addsi3_carryin_alt2_<optab>): Likewise.
23666 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
23667 for arm_restrict_it.
23668 (subsi3_carryin): Likewise.
23669 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
23670 (minmax_arithsi): Disable for arm_restrict_it.
23671 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
23672 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
23673 (satsi_<SAT:code>_shift): Likewise.
23674 (arm_shiftsi3): Add alternative for 16-bit encoding.
23675 (arm32_movhf): Disable for arm_restrict_it.
23676 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
23677 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
23679 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
23681 * config/arm/arm.md (attribute "insn"): Delete.
23682 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
23683 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
23684 (not_shiftsi): Update for attribute change.
23685 (not_shiftsi_compare0): Likewise.
23686 (not_shiftsi_compare0_scratch): Likewise.
23687 (arm_one_cmplsi2): Likewise.
23688 (thumb1_one_cmplsi2): Likewise.
23689 (notsi_compare0): Likewise.
23690 (notsi_compare0_scratch): Likewise.
23691 (thumb1_movdi_insn): Likewise.
23692 (arm_movsi_insn): Likewise.
23693 (movhi_insn_arch4): Likewise.
23694 (movhi_bytes): Likewise.
23695 (arm_movqi_insn): Likewise.
23696 (thumb1_movqi_insn): Likewise.
23697 (arm32_movhf): Likewise.
23698 (thumb1_movhf): Likewise.
23699 (arm_movsf_soft_insn): Likewise.
23700 (thumb1_movsf_insn): Likewise.
23701 (thumb_movdf_insn): Likewise.
23702 (movsicc_insn): Likewise.
23703 (movsfcc_soft_insn): Likewise.
23704 (and_scc): Likewise.
23705 (cond_move): Likewise.
23706 (if_move_not): Likewise.
23707 (if_not_move): Likewise.
23708 (if_shift_move): Likewise.
23709 (if_move_shift): Likewise.
23710 (if_shift_shift): Likewise.
23711 (if_not_arith): Likewise.
23712 (if_arith_not): Likewise.
23713 (cond_move_not): Likewise.
23714 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
23715 (neon_mov<mode>): Likewise.
23716 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
23717 (thumb2_movsi_vfp): Likewise.
23718 (movsf_vfp): Likewise.
23719 (thumb2_movsf_vfp): Likewise.
23720 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23722 (cortexa7_older_only): Likewise.
23723 (cortexa7_younger): Likewise.
23724 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
23725 (1020alu_shift_op): Likewise.
23726 (1020alu_shift_reg_op): Likewise.
23727 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
23728 (alu_shift_op): Likewise.
23729 (alu_shift_reg_op): Likewise.
23730 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
23731 (11_alu_shift_op): Likewise.
23732 (11_alu_shift_reg_op): Likewise.
23733 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
23734 (9_alu_shift_reg_op): Likewise.
23735 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23737 (cortex_a15_alu_shift): Likewise.
23738 (cortex_a15_alu_shift_reg): Likewise.
23739 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
23740 (cortex_a5_alu_shift): Likewise.
23741 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
23743 (cortex_a53_alu_shift): Likewise.
23744 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23746 (cortex_a7_alu_reg): Likewise.
23747 (cortex_a7_alu_shift): Likewise.
23748 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23749 (cortex_a8_alu_shift): Likewise.
23750 (cortex_a8_alu_shift_reg): Likewise.
23751 (cortex_a8_mov): Likewise.
23752 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
23753 (cortex_a9_dp_shift): Likewise.
23754 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
23755 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
23756 (cortex_r4_mov): Likewise.
23757 (cortex_r4_alu_shift): Likewise.
23758 (cortex_r4_alu_shift_reg): Likewise.
23759 * config/arm/fa526.md (526_alu_op): Update for attribute change.
23760 (526_alu_shift_op): Likewise.
23761 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
23762 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
23763 (626te_alu_shift_op): Likewise.
23764 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
23765 (726te_alu_op): Likewise.
23766 (726te_alu_shift_op): Likewise.
23767 (726te_alu_shift_reg_op): Likewise.
23768 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
23769 (mp626_alu_shift_op): Likewise.
23770 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
23771 (pj4_alu_e1_conds): Likewise.
23772 (pj4_alu): Likewise.
23773 (pj4_alu_conds): Likewise.
23774 (pj4_shift): Likewise.
23775 (pj4_shift_conds): Likewise.
23776 (pj4_alu_shift): Likewise.
23777 (pj4_alu_shift_conds): Likewise.
23779 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23781 * config/arm/predicates.md (shiftable_operator_strict_it):
23783 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
23784 Disable cond_exec version for arm_restrict_it.
23785 (thumb2_smaxsi3): Convert to generate cond_exec.
23786 (thumb2_sminsi3): Likewise.
23787 (thumb32_umaxsi3): Likewise.
23788 (thumb2_uminsi3): Likewise.
23789 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
23790 (thumb2_neg_abssi2): Likewise.
23791 (thumb2_mov_scc): Add alternative for 16-bit encoding.
23792 (thumb2_movsicc_insn): Adjust alternatives.
23793 (thumb2_mov_negscc): Disable for arm_restrict_it.
23794 (thumb2_mov_negscc_strict_it): New pattern.
23795 (thumb2_mov_notscc_strict_it): New pattern.
23796 (thumb2_mov_notscc): Disable for arm_restrict_it.
23797 (thumb2_ior_scc): Likewise.
23798 (thumb2_ior_scc_strict_it): New pattern.
23799 (thumb2_cond_move): Adjust for arm_restrict_it.
23800 (thumb2_cond_arith): Disable for arm_restrict_it.
23801 (thumb2_cond_arith_strict_it): New pattern.
23802 (thumb2_cond_sub): Adjust for arm_restrict_it.
23803 (thumb2_movcond): Likewise.
23804 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
23805 (thumb2_zero_extendhisi2_v6): Likewise.
23806 (thumb2_zero_extendqisi2_v6): Likewise.
23807 (orsi_notsi_si): Likewise.
23808 (orsi_not_shiftsi_si): Likewise.
23810 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
23812 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
23813 instruction sequence is 1 byte shorter.
23815 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
23817 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
23818 it is not needed after split.
23820 2013-07-20 Iain Sandoe <iain@codesourcery.com>
23823 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
23824 second label for nonlocal goto receivers. Don't output pic base labels
23825 unless we're producing PIC; mark that action unreachable().
23826 (ix86_save_reg): If the function contains a nonlocal label, save the
23828 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
23829 * config/darwin.c (emitted_pic_label_num): New GTY.
23830 (update_pic_label_number_if_needed): New.
23831 (machopic_output_function_base_name): Adjust for nonlocal receiver
23833 (machopic_should_output_picbase_label): New.
23834 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
23835 (nonlocal_goto_receiver): New insn and split.
23837 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
23839 * config/aarch64/aarch64-builtins.c
23840 (aarch64_fold_builtin): Fold abs in all modes.
23841 * config/aarch64/aarch64-simd-builtins.def
23842 (abs): Enable for all modes.
23843 * config/aarch64/arm_neon.h
23844 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
23845 (vabs_f64): Add missing intrinsic.
23847 2013-07-19 Ian Bolton <ian.bolton@arm.com>
23849 * config/aarch64/arm_neon.h (vabs_s64): New function
23851 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
23854 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
23855 * config/avr/avr.md (adjust_len): Add `round'.
23856 * config/avr/avr-protos.h (avr_out_round): New prototype.
23857 (avr_out_plus): Add `out_label' argument.
23858 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
23859 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
23860 Handle the case where `insn' is just a pattern.
23861 (avr_out_bitop): Handle the case where `insn' is just a pattern.
23862 (avr_out_round): New function.
23863 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
23865 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
23867 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23868 Add check for flag_stack_usage to handle -fstack-usage support
23870 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
23872 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
23873 interaction for new Power8 flags and VSX.
23875 2013-07-18 Sriraman Tallam <tmsriram@google.com>
23877 PR middle-end/57698
23878 * tree-inline.c (expand_call_inline): Emit errors during
23879 early_inlining only if optimization is not turned on.
23881 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23885 * passes.c (init_optimization_passes): Move the construction of
23886 the pass hierarchy into a new passes.def file.
23888 * Makefile.in (passes.o): Add dependency on passes.def.
23890 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23892 * passes.c (init_optimization_passes): Introduce macros for
23893 constructing the tree of passes (INSERT_PASSES_AFTER,
23894 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
23895 TERMINATE_PASS_LIST).
23897 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
23898 Wei Mi <wmi@google.com>
23900 PR rtl-optimization/57878
23901 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
23903 (reload_pseudo_compare_func): Check nregs first for reload
23906 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23908 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
23910 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
23912 * read-rtl.c (validate_const_int): Once an invalid character is
23913 seen, quit the loop.
23915 * gengtype.c (write_roots): Similarly once we find the "deletable"
23916 or "if_marked" option.
23918 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
23920 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
23921 "xtab" and "sat". Move value "clz" from here to ...
23922 (attriubte "type"): ... here.
23923 (satsi_<SAT:code>): Delete "insn" attribute.
23924 (satsi_<SAT:code>_shift): Likewise.
23925 (arm_zero_extendqisi2addsi): Likewise.
23926 (arm_extendqisi2addsi): Likewise.
23927 (clzsi2): Update for attribute changes.
23928 (rbitsi2): Likewise.
23929 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
23931 (arm_usatsihi): Likewise.
23932 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23934 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
23936 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
23937 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
23938 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
23939 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
23940 in alphabetical order.
23941 (attribute "core_cycles"): Update for attribute changes.
23942 (arm_addsi3): Likewise.
23943 (addsi3_compare0): Likewise.
23944 (addsi3_compare0_scratch): Likewise.
23945 (addsi3_compare_op1): Likewise.
23946 (addsi3_compare_op2): Likewise.
23947 (compare_addsi2_op0): Likewise.
23948 (compare_addsi2_op1): Likewise.
23949 (addsi3_carryin_shift_<optab>): Likewise.
23950 (subsi3_carryin_shift): Likewise.
23951 (rsbsi3_carryin_shift): Likewise.
23952 (arm_subsi3_insn): Likewise.
23953 (subsi3_compare0): Likewise.
23954 (subsi3_compare): Likewise.
23955 (arm_andsi3_insn): Likewise.
23956 (thumb1_andsi3_insn): Likewise.
23957 (andsi3_compare0): Likewise.
23958 (andsi3_compare0_scratch): Likewise.
23959 (zeroextractsi_compare0_scratch
23960 (andsi_not_shiftsi_si): Likewise.
23961 (iorsi3_insn): Likewise.
23962 (iorsi3_compare0): Likewise.
23963 (iorsi3_compare0_scratch): Likewise.
23964 (arm_xorsi3): Likewise.
23965 (thumb1_xorsi3_insn): Likewise.
23966 (xorsi3_compare0): Likewise.
23967 (xorsi3_compare0_scratch): Likewise.
23968 (satsi_<SAT:code>_shift): Likewise.
23970 (arm_shiftsi3): Likewise.
23971 (shiftsi3_compare0): Likewise.
23972 (not_shiftsi): Likewise.
23973 (not_shiftsi_compare0): Likewise.
23974 (not_shiftsi_compare0_scratch): Likewise.
23975 (arm_one_cmplsi2): Likewise.
23976 (thumb_one_complsi2): Likewise.
23977 (notsi_compare0): Likewise.
23978 (notsi_compare0_scratch): Likewise.
23979 (thumb1_zero_extendhisi2): Likewise.
23980 (arm_zero_extendhisi2): Likewise.
23981 (arm_zero_extendhisi2_v6): Likewise.
23982 (arm_zero_extendhisi2addsi): Likewise.
23983 (thumb1_zero_extendqisi2): Likewise.
23984 (thumb1_zero_extendqisi2_v6): Likewise.
23985 (arm_zero_extendqisi2): Likewise.
23986 (arm_zero_extendqisi2_v6): Likewise.
23987 (arm_zero_extendqisi2addsi): Likewise.
23988 (thumb1_extendhisi2): Likewise.
23989 (arm_extendhisi2): Likewise.
23990 (arm_extendhisi2_v6): Likewise.
23991 (arm_extendqisi): Likewise.
23992 (arm_extendqisi_v6): Likewise.
23993 (arm_extendqisi2addsi): Likewise.
23994 (thumb1_extendqisi2): Likewise.
23995 (thumb1_movdi_insn): Likewise.
23996 (arm_movsi_insn): Likewise.
23997 (movsi_compare0): Likewise.
23998 (movhi_insn_arch4): Likewise.
23999 (movhi_bytes): Likewise.
24000 (arm_movqi_insn): Likewise.
24001 (thumb1_movqi_insn): Likewise.
24002 (arm32_movhf): Likewise.
24003 (thumb1_movhf): Likewise.
24004 (arm_movsf_soft_insn): Likewise.
24005 (thumb1_movsf_insn): Likewise.
24006 (movdf_soft_insn): Likewise.
24007 (thumb_movdf_insn): Likewise.
24008 (arm_cmpsi_insn): Likewise.
24009 (cmpsi_shiftsi): Likewise.
24010 (cmpsi_shiftsi_swp): Likewise.
24011 (arm_cmpsi_negshiftsi_si): Likewise.
24012 (movsicc_insn): Likewise.
24013 (movsfcc_soft_insn): Likewise.
24014 (arith_shiftsi): Likewise.
24015 (arith_shiftsi_compare0
24016 (arith_shiftsi_compare0_scratch
24017 (sub_shiftsi): Likewise.
24018 (sub_shiftsi_compare0
24019 (sub_shiftsi_compare0_scratch
24020 (and_scc): Likewise.
24021 (cond_move): Likewise.
24022 (if_plus_move): Likewise.
24023 (if_move_plus): Likewise.
24024 (if_move_not): Likewise.
24025 (if_not_move): Likewise.
24026 (if_shift_move): Likewise.
24027 (if_move_shift): Likewise.
24028 (if_shift_shift): Likewise.
24029 (if_not_arith): Likewise.
24030 (if_arith_not): Likewise.
24031 (cond_move_not): Likewise.
24032 (thumb1_ashlsi3): Set type attribute.
24033 (thumb1_ashrsi3): Likewise.
24034 (thumb1_lshrsi3): Likewise.
24035 (thumb1_rotrsi3): Likewise.
24036 (shiftsi3_compare0_scratch): Likewise.
24037 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
24038 (neon_mov<mode>): Likewise.
24039 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
24041 (thumb2_movsi_insn): Likewise.
24042 (thumb2_cmpsi_neg_shiftsi): Likewise.
24043 (thumb2_extendqisi_v6): Likewise.
24044 (thumb2_zero_extendhisi2_v6): Likewise.
24045 (thumb2_zero_extendqisi2_v6): Likewise.
24046 (thumb2_shiftsi3_short): Likewise.
24047 (thumb2_addsi3_compare0_scratch): Likewise.
24048 (orsi_not_shiftsi_si): Likewise.
24049 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
24050 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
24052 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
24053 (1020alu_shift_op): Likewise.
24054 (1020alu_shift_reg_op): Likewise.
24055 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
24056 (alu_shift_op): Likewise.
24057 (alu_shift_reg_op): Likewise.
24058 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
24059 (11_alu_shift_op): Likewise.
24060 (11_alu_shift_reg_op): Likewise.
24061 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
24062 (9_alu_shift_reg_op): Likewise.
24063 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24065 (cortex_a15_alu_shift): Likewise.
24066 (cortex_a15_alu_shift_reg): Likewise.
24067 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
24069 (cortex_a5_alu_shift): Likewise.
24070 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
24072 (cortex_a53_alu_shift): Likewise.
24073 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24075 (cortex_a7_alu_reg): Likewise.
24076 (cortex_a7_alu_shift): Likewise.
24077 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
24079 (cortex_a8_alu_shift): Likewise.
24080 (cortex_a8_alu_shift_reg): Likewise.
24081 (cortex_a8_mov): Likewise.
24082 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
24083 (cortex_a9_dp_shift): Likewise.
24084 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
24086 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
24088 (cortex_r4_mov): Likewise.
24089 (cortex_r4_alu_shift): Likewise.
24090 (cortex_r4_alu_shift_reg): Likewise.
24091 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
24092 (526_alu_shift_op): Likewise.
24093 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
24094 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
24095 (626te_alu_shift_op): Likewise.
24096 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
24097 (726te_alu_op): Likewise.
24098 (726te_alu_shift_op): Likewise.
24099 (726te_alu_shift_reg_op): Likewise.
24100 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
24101 (mp626_alu_shift_op): Likewise.
24102 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
24103 (pj4_alu_e1_conds): Likewise.
24104 (pj4_alu): Likewise.
24105 (pj4_alu_conds): Likewise.
24106 (pj4_shift): Likewise.
24107 (pj4_shift_conds): Likewise.
24108 (pj4_alu_shift): Likewise.
24109 (pj4_alu_shift_conds): Likewise.
24110 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24112 (cortexa7_older_only): Likewise.
24113 (cortexa7_younger): Likewise.
24115 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24117 * ipa-pure-const.c (generate_summary): Rename to...
24118 (pure_const_generate_summary): ... this.
24120 2013-07-17 Iain Sandoe <iain@codesourcery.com>
24122 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
24124 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
24127 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
24130 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24132 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
24133 enabled without -march=zEC12.
24134 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
24137 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24139 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
24140 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
24141 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
24142 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
24143 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
24144 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
24145 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
24147 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
24148 and ISA_HAS_NMADD3_NMSUB3.
24149 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
24150 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
24151 (nmsub4<mode>, nmsub3<mode>): Likewise.
24152 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
24154 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24156 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
24157 TARGET_MIPS5400 checking.
24159 2013-07-16 Jakub Jelinek <jakub@redhat.com>
24160 Peter Bergner <bergner@vnet.ibm.com>
24162 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
24163 registers in the comment.
24164 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
24165 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
24166 rather than FIRST_PSEUDO_REGISTERS.
24168 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
24170 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
24171 enable extra ISA flags with TARGET_HTM.
24173 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
24175 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
24178 2013-07-15 Cong Hou <congh@google.com>
24180 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
24181 in compare function for sorting.
24183 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
24185 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
24186 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
24187 * config/rs6000/rs6000.opt: Add -mhtm option.
24188 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
24189 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
24190 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24191 __HTM__ if the HTM instructions are available.
24192 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
24193 htm_spr_reg_operand): New define_predicates.
24194 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
24195 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
24197 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
24198 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
24199 HTM builtin functions.
24200 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
24201 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
24202 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
24203 (rs6000_builtin_mask_calculate): Likewise.
24204 (rs6000_option_override_internal): Likewise.
24205 (bdesc_htm): Add new HTM builtin support.
24206 (htm_spr_num): New function.
24207 (htm_spr_regno): Likewise.
24208 (rs6000_htm_spr_icode): Likewise.
24209 (htm_expand_builtin): Likewise.
24210 (htm_init_builtins): Likewise.
24211 (rs6000_expand_builtin): Add support for HTM builtin functions.
24212 (rs6000_init_builtins): Likewise.
24213 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24215 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24216 (TARGET_HTM, MASK_HTM): Define macros.
24217 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24218 (FIXED_REGISTERS): Likewise.
24219 (CALL_USED_REGISTERS): Likewise.
24220 (CALL_REALLY_USED_REGISTERS): Likewise.
24221 (REG_ALLOC_ORDER): Likewise.
24222 (enum reg_class): Likewise.
24223 (REG_CLASS_NAMES): Likewise.
24224 (REG_CLASS_CONTENTS): Likewise.
24225 (REGISTER_NAMES): Likewise.
24226 (ADDITIONAL_REGISTER_NAMES): Likewise.
24227 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24228 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24229 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24230 * config/rs6000/htm.md: New file.
24231 * config/rs6000/htmintrin.h: New file.
24232 * config/rs6000/htmxlintrin.h: New file.
24234 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24236 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24237 Define SYMBOL_TINY_GOT, update comment.
24238 * config/aarch64/aarch64.c
24239 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24240 (aarch64_expand_mov_immediate): Likewise.
24241 (aarch64_print_operand): Likewise.
24242 (aarch64_classify_symbol): Likewise.
24243 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24244 (ldr_got_tiny): Define.
24246 2013-07-13 Tobias Grosser <tobias@grosser.es>
24248 PR tree-optimization/54094
24249 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24250 scheduling dimension for the parallelism check from the polyhedral
24251 information in the AST.
24252 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24255 2013-07-13 Jason Merrill <jason@redhat.com>
24257 * print-tree.c (debug_vec_tree): Use debug_raw.
24258 (debug_raw (vec<tree, va_gc> &)): New.
24259 (debug_raw (vec<tree, va_gc> *)): New.
24260 * tree.h: Declare them.
24262 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24264 * ifcvt.c (ifcvt_after_combine): New static variable.
24265 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24267 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24268 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24269 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24271 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
24273 * config/mips/mips.c (mips_expand_call): Remove empty statement.
24275 2013-07-12 Michael Matz <matz@suse.de>
24277 PR middle-end/55771
24278 * convert.c (convert_to_real): Reject non-float inner types.
24280 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
24282 * config/aarch64/aarch64-protos.h
24283 (aarch64_simd_immediate_valid_for_move): Remove.
24284 * config/aarch64/aarch64.c (simd_immediate_info): New member.
24285 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
24287 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
24289 2013-07-11 Steve Ellcey <sellcey@mips.com>
24291 * config/mips/mips.c (mips_conditional_register_usage): Do not
24292 use t[0-7] registers in MIPS16 mode when optimizing for size.
24294 2013-07-11 Sriraman Tallam <tmsriram@google.com>
24296 * config/i386/i386.c (dispatch_function_versions): Fix array
24297 indexing of function_version_info to match actual_versions.
24299 2013-07-11 Teresa Johnson <tejohnson@google.com>
24301 * vec.h (struct va_gc): Move release out-of-line.
24302 (va_gc::release): Call ggc_free on released vec.
24304 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24306 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
24307 Require GOT register as additional operand in UNSPEC.
24308 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
24309 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24310 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24311 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
24312 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
24313 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
24314 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
24316 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
24319 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
24320 name seen by assembler/linker rather if available.
24322 2013-07-11 Andreas Schwab <schwab@suse.de>
24324 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
24326 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
24328 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
24330 2013-07-10 Joseph Myers <joseph@codesourcery.com>
24332 * doc/tm.texi.in: Move hook documentation to ....
24333 * target.def: ... here.
24335 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
24336 text on @hook line.
24337 * doc/tm.texi: Regenerate.
24339 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
24342 * doc/invoke.texi: Document -Wconditionally-supported.
24344 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24347 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
24350 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24353 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
24354 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
24355 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
24356 Remove duplicate devices.
24357 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
24358 * config/avr/t-multilib: Regenerate.
24359 * config/avr/avr-tables.opt: Regenerate.
24360 * doc/avr-mmcu.texi: Regenerate.
24362 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24365 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
24367 2013-07-10 Graham Stott <graham.stott@btinternet.com>
24369 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
24370 the cost of MULT when optimizing for size.
24372 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24374 * config/cr16/cr16-protos.h: Don't include target.h.
24376 2013-07-09 Joseph Myers <joseph@codesourcery.com>
24378 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
24379 adjust register size for TDmode and TFmode for VSX registers.
24381 2013-07-08 Kai Tietz <ktietz@redhat.com>
24384 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
24385 hook_bool_const_tree_true.
24387 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24389 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
24390 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
24391 * config/s390/s390.md: Define FPR*_REGNUM constants.
24392 Fix FPR2_REGNUM constant (18 -> 17).
24393 ("*trunc<BFP:mode><DFP_ALL:mode>2")
24394 ("*trunc<DFP_ALL:mode><BFP:mode>2")
24395 ("trunc<BFP:mode><DFP_ALL:mode>2")
24396 ("trunc<DFP_ALL:mode><BFP:mode>2")
24397 ("*extend<BFP:mode><DFP_ALL:mode>2")
24398 ("*extend<DFP_ALL:mode><BFP:mode>2")
24399 ("extend<BFP:mode><DFP_ALL:mode>2")
24400 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
24403 2013-07-08 Graham Stott <graham.stott@btinternet.com>
24405 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
24407 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24409 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
24410 and cfun_fpr_bit_p to cfun_fpr_save_p.
24411 (s390_frame_area, s390_register_info, s390_frame_info)
24412 (s390_emit_prologue, s390_emit_epilogue)
24413 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
24415 * config/s390/s390.h: Define *_REGNUM macros for floating point
24418 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
24420 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
24422 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
24424 PR rtl-optimization/57786
24425 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
24426 and break out of the loop when it is set to false.
24428 2013-07-08 Jakub Jelinek <jakub@redhat.com>
24431 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
24432 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
24433 (const_int 63)) 0)).
24434 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
24435 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
24436 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
24438 PR rtl-optimization/57829
24439 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
24440 mask bits outside of mode are just sign-extension from mode to HWI.
24442 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
24444 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24445 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
24446 adjust_address instead of change_address to keep info about alignment.
24447 (emit_strmov): Remove.
24448 (emit_memmov): New function.
24449 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
24450 (expand_movmem_epilogue): Likewise and return updated rtx for
24452 (expand_constant_movmem_prologue): Likewise and return updated rtx for
24453 destination and source.
24454 (decide_alignment): Refactor, handle vector_loop.
24455 (ix86_expand_movmem): Likewise.
24456 (ix86_expand_setmem): Likewise.
24457 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
24459 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
24461 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
24462 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
24464 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24466 * config/i386/sse.md (sse_movlhps): Change alternative 3
24467 of operand 2 to "m".
24469 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24472 * config/i386/sse.md (iptr): New mode attribute.
24473 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
24474 (<sse>_vm<plusminus_insn><mode>3): Ditto.
24475 (<sse>_vmmul<mode>3): Ditto.
24476 (<sse>_vmdiv<mode>3): Ditto.
24477 (sse_vmrcpv4sf2): Ditto.
24478 (<sse>_vmsqrt<mode>2): Ditto.
24479 (sse_vmrsqrtv4sf2): Ditto.
24480 (<sse>_vm<code><mode>3): Ditto.
24481 (avx_vmcmp<mode>3): Ditto.
24482 (<sse>_vmmaskcmp<mode>3): Ditto.
24483 (<sse>_comi): Ditto.
24484 (<sse>_ucomi): Ditto.
24485 (*xop_vmfrcz_<mode>): Ditto.
24486 (*fmai_fmadd_<mode>): Ditto.
24487 (*fmai_fmsub_<mode>): Ditto.
24488 (*fmai_fnmadd_<mode>): Ditto.
24489 (*fmai_fnmsub_<mode>): Ditto.
24490 (*fma4i_vmfmadd_<mode>): Ditto.
24491 (*fma4i_vmfmsub_<mode>): Ditto.
24492 (*fma4i_vmfnmadd_<mode>): Ditto.
24493 (*fma4i_vmfnmsub_<mode>): Ditto.
24494 (*xop_vmfrcz_<mode>): Ditto.
24495 (sse_cvtps2pi): Ditto.
24496 (sse_cvttps2pi): Ditto.
24497 (sse_cvtss2si): Ditto.
24498 (sse_cvtss2si_2): Ditto.
24499 (sse_cvtss2siq_2): Ditto.
24500 (sse_cvttss2si): Ditto.
24501 (sse_cvttss2siq): Ditto.
24502 (sse_cvtsd2si): Ditto.
24503 (sse_cvtsd2si_2): Ditto.
24504 (sse_cvtsd2siq_2): Ditto.
24505 (sse_cvttsd2si): Ditto.
24506 (sse_cvttsd2siq): Ditto.
24507 (sse_cvtsd2ss): Ditto.
24508 (sse_cvtss2sd): Ditto.
24509 (avx2_pbroadcast<mode>): Ditto.
24510 (avx2_pbroadcast<mode>_1): Ditto.
24511 (*avx_vperm_broadcast_v4sf): Ditto.
24513 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
24514 (sse_movlhps): Ditto.
24515 (sse_storehps): Ditto.
24516 (sse_loadhps): Ditto.
24517 (sse_storelps): Ditto.
24518 (sse_loadlps): Ditto.
24519 (*vec_concatv4sf): Ditto.
24520 (*vec_interleave_highv2df): Ditto.
24521 (*vec_interleave_lowv2df): Ditto.
24522 (*vec_extractv2df_1_sse): Ditto.
24523 (*vec_extractv2df_0_sse): Ditto.
24524 (sse2_storelpd): Ditto.
24525 (sse2_loadlpd): Ditto.
24526 (sse2_movsd): Ditto.
24527 (*vec_concatv4si): Ditto.
24528 (vec_concatv2di): Ditto.
24530 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
24531 for Intel asm dialect.
24532 (mmx_punpcklwd): Ditto.
24533 (mmx_punpckldq): Ditto.
24535 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
24536 for intel assembler dialect.
24538 2013-07-06 Jakub Jelinek <jakub@redhat.com>
24541 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
24542 for BUILT_IN_C{LZ,LRSB}*.
24543 * tree.h (CASE_INT_FN): Add FN##IMAX case.
24544 * tree-vrp.c (extract_range_basic): Handle
24545 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
24546 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
24547 fall thru to code calling set_value*.
24548 * builtins.c (expand_builtin): Remove *IMAX cases.
24549 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
24550 if width is bigger than 2*HWI.
24552 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
24554 PR rtl-optimization/55342
24555 * lra-int.h (lra_subreg_reload_pseudos): New.
24556 * lra.c: Add undoing optional reloads to the block diagram.
24557 (lra_subreg_reload_pseudos): New.
24558 (lra_optional_reload_pseudos): Change comments.
24559 (lra): Init and clear lra_subreg_reload_pseudos. Clear
24560 lra_optional_reload_pseudos after undo transformations.
24561 * lra-assigns.c (pseudo_prefix_title): New.
24562 (lra_setup_reg_renumber): Use it.
24563 (spill_for): Ditto. Check subreg reload pseudos too.
24564 (assign_by_spills): Consider subreg reload pseudos too.
24565 * lra-constraints.c (simplify_operand_subreg): Use
24566 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
24567 (curr_insn_transform): Recognize and do optional reloads.
24568 (undo_optional_reloads): New.
24569 (lra_undo_inheritance): Call undo_optional_reloads.
24571 2013-07-05 Thomas Quinot <quinot@adacore.com>
24573 * tree-complex.c (expand_complex_operations_1): Fix typo.
24575 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
24577 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
24578 (tune_params): New member 'const vec_costs'.
24579 * config/aarch64/aarch64.c (generic_vector_cost): New.
24580 (generic_tunings): New member 'generic_vector_cost'.
24581 (aarch64_builtin_vectorization_cost): New.
24582 (aarch64_add_stmt_cost): New.
24583 (TARGET_VECTORIZE_ADD_STMT_COST): New.
24584 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
24586 2013-07-03 Jakub Jelinek <jakub@redhat.com>
24589 * config/i386/predicates.md (vsib_address_operand): Disallow
24590 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
24592 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
24594 PR middle-end/55030
24595 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
24596 expand_builtin_setjmp_receiver.
24597 (expand_label): Adjust, call expand_builtin_setjmp_receiver
24598 with NULL for the label parameter.
24599 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
24600 the frame-pointer. Adjust comments.
24601 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
24602 only if LABEL is non-NULL.
24604 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
24606 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
24607 (ARM_ABI_AAPCS64): Ditto.
24609 (ARM_DEFAULT_ABI): Ditto.
24611 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24613 * config/aarch64/aarch64-builtins.c
24614 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
24615 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
24617 * config/aarch64/aarch64-simd.md
24618 (aarch64_ld1<VALL:mode>): New.
24619 (aarch64_st1<VALL:mode>): Likewise.
24620 * config/aarch64/arm_neon.h
24621 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
24623 2013-07-02 Sriraman Tallam <tmsriram@google.com>
24625 * config/i386/i386.c (gate_insert_vzeroupper): Check if
24627 (ix86_option_override_internal):Turn on all -mavx target flags by
24628 default as they are dependent on AVX anyway.
24630 2013-07-02 Cary Coutant <ccoutant@google.com>
24632 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
24633 deterministic hash.
24634 (loc_checksum_ordered): Likewise.
24635 (hash_loc_operands): Remove inline keyword.
24637 2013-07-02 Jakub Jelinek <jakub@redhat.com>
24639 PR tree-optimization/57741
24640 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
24641 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
24642 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
24643 Allow REAL_CST step_exprs if flag_associative_math.
24644 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
24646 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24648 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
24650 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24652 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
24654 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24656 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
24658 (iorsi3_insn): Likewise.
24659 (arm_xorsi3): Likewise.
24661 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
24663 * arm.md (attribute "wtype"): Delete. Move attribute values from here
24665 (attribute "type"): ... here, and prefix with "wmmx_".
24666 (attribute "core_cycles"): Update for attribute changes.
24667 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
24668 (tbcstv4hi): Likewise.
24669 (tbcstv2si): Likewise.
24670 (iwmmxt_iordi3): Likewise.
24671 (iwmmxt_xordi3): Likewise.
24672 (iwmmxt_anddi3): Likewise.
24673 (iwmmxt_nanddi3): Likewise.
24674 (iwmmxt_arm_movdi): Likewise.
24675 (iwmmxt_movsi_insn): Likewise.
24676 (mov<mode>_internal): Likewise.
24677 (and<mode>3_iwmmxt): Likewise.
24678 (ior<mode>3_iwmmxt): Likewise.
24679 (xor<mode>3_iwmmxt): Likewise.
24680 (add<mode>3_iwmmxt): Likewise.
24681 (ssaddv8qi3): Likewise.
24682 (ssaddv4hi3): Likewise.
24683 (ssaddv2si3): Likewise.
24684 (usaddv8qi3): Likewise.
24685 (usaddv4hi3): Likewise.
24686 (usaddv2si3): Likewise.
24687 (sub<mode>3_iwmmxt): Likewise.
24688 (sssubv8qi3): Likewise.
24689 (sssubv4hi3): Likewise.
24690 (sssubv2si3): Likewise.
24691 (ussubv8qi3): Likewise.
24692 (ussubv4hi3): Likewise.
24693 (ussubv2si3): Likewise.
24694 (mulv4hi3_iwmmxt): Likewise.
24695 (smulv4hi3_highpart): Likewise.
24696 (umulv4hi3_highpart): Likewise.
24697 (iwmmxt_wmacs): Likewise.
24698 (iwmmxt_wmacsz): Likewise.
24699 (iwmmxt_wmacu): Likewise.
24700 (iwmmxt_wmacuz): Likewise.
24701 (iwmmxt_clrdi): Likewise.
24702 (iwmmxt_clrv8qi): Likewise.
24703 (iwmmxt_clr4hi): Likewise.
24704 (iwmmxt_clr2si): Likewise.
24705 (iwmmxt_uavgrndv8qi3): Likewise.
24706 (iwmmxt_uavgrndv4hi3): Likewise.
24707 (iwmmxt_uavgv8qi3): Likewise.
24708 (iwmmxt_uavgv4hi3): Likewise.
24709 (iwmmxt_tinsrb): Likewise.
24710 (iwmmxt_tinsrh): Likewise.
24711 (iwmmxt_tinsrw): Likewise.
24712 (iwmmxt_textrmub): Likewise.
24713 (iwmmxt_textrmsb): Likewise.
24714 (iwmmxt_textrmuh): Likewise.
24715 (iwmmxt_textrmsh): Likewise.
24716 (iwmmxt_textrmw): Likewise.
24717 (iwmxxt_wshufh): Likewise.
24718 (eqv8qi3): Likewise.
24719 (eqv4hi3): Likewise.
24720 (eqv2si3): Likewise.
24721 (gtuv8qi3): Likewise.
24722 (gtuv4hi3): Likewise.
24723 (gtuv2si3): Likewise.
24724 (gtv8qi3): Likewise.
24725 (gtv4hi3): Likewise.
24726 (gtv2si3): Likewise.
24727 (smax<mode>3_iwmmxt): Likewise.
24728 (umax<mode>3_iwmmxt): Likewise.
24729 (smin<mode>3_iwmmxt): Likewise.
24730 (umin<mode>3_iwmmxt): Likewise.
24731 (iwmmxt_wpackhss): Likewise.
24732 (iwmmxt_wpackwss): Likewise.
24733 (iwmmxt_wpackdss): Likewise.
24734 (iwmmxt_wpackhus): Likewise.
24735 (iwmmxt_wpackwus): Likewise.
24736 (iwmmxt_wpackdus): Likewise.
24737 (iwmmxt_wunpckihb): Likewise.
24738 (iwmmxt_wunpckihh): Likewise.
24739 (iwmmxt_wunpckihw): Likewise.
24740 (iwmmxt_wunpckilb): Likewise.
24741 (iwmmxt_wunpckilh): Likewise.
24742 (iwmmxt_wunpckilw): Likewise.
24743 (iwmmxt_wunpckehub): Likewise.
24744 (iwmmxt_wunpckehuh): Likewise.
24745 (iwmmxt_wunpckehuw): Likewise.
24746 (iwmmxt_wunpckehsb): Likewise.
24747 (iwmmxt_wunpckehsh): Likewise.
24748 (iwmmxt_wunpckehsw): Likewise.
24749 (iwmmxt_wunpckelub): Likewise.
24750 (iwmmxt_wunpckeluh): Likewise.
24751 (iwmmxt_wunpckeluw): Likewise.
24752 (iwmmxt_wunpckelsb): Likewise.
24753 (iwmmxt_wunpckelsh): Likewise.
24754 (iwmmxt_wunpckelsw): Likewise.
24755 (ror<mode>3): Likewise.
24756 (ashr<mode>3_iwmmxt): Likewise.
24757 (lshr<mode>3_iwmmxt): Likewise.
24758 (ashl<mode>3_iwmmxt): Likewise.
24759 (ror<mode>3_di): Likewise.
24760 (ashr<mode>3_di): Likewise.
24761 (lshr<mode>3_di): Likewise.
24762 (ashl<mode>3_di): Likewise.
24763 (iwmmxt_wmadds): Likewise.
24764 (iwmmxt_wmaddu): Likewise.
24765 (iwmmxt_tmia): Likewise.
24766 (iwmmxt_tmiaph): Likewise.
24767 (iwmmxt_tmiabb): Likewise.
24768 (iwmmxt_tmiatb): Likewise.
24769 (iwmmxt_tmiabt): Likewise.
24770 (iwmmxt_tmiatt): Likewise.
24771 (iwmmxt_tmovmskb): Likewise.
24772 (iwmmxt_tmovmskh): Likewise.
24773 (iwmmxt_tmovmskw): Likewise.
24774 (iwmmxt_waccb): Likewise.
24775 (iwmmxt_wacch): Likewise.
24776 (iwmmxt_waccw): Likewise.
24777 (iwmmxt_waligni): Likewise.
24778 (iwmmxt_walignr): Likewise.
24779 (iwmmxt_walignr0): Likewise.
24780 (iwmmxt_walignr1): Likewise.
24781 (iwmmxt_walignr2): Likewise.
24782 (iwmmxt_walignr3): Likewise.
24783 (iwmmxt_wsadb): Likewise.
24784 (iwmmxt_wsadh): Likewise.
24785 (iwmmxt_wsadbz): Likewise.
24786 (iwmmxt_wsadhz): Likewise.
24787 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
24788 (iwmmxt_wabsdiffb): Likewise.
24789 (iwmmxt_wabsdiffh): Likewise.
24790 (iwmmxt_wabsdiffw): Likewise.
24791 (iwmmxt_waddsubhx): Likewise
24792 (iwmmxt_wsubaddhx): Likewise.
24793 (addc<mode>3): Likewise.
24794 (iwmmxt_avg4): Likewise.
24795 (iwmmxt_avg4r): Likewise.
24796 (iwmmxt_wmaddsx): Likewise.
24797 (iwmmxt_wmaddux): Likewise.
24798 (iwmmxt_wmaddsn): Likewise.
24799 (iwmmxt_wmaddun): Likewise.
24800 (iwmmxt_wmulwsm): Likewise.
24801 (iwmmxt_wmulwum): Likewise.
24802 (iwmmxt_wmulsmr): Likewise.
24803 (iwmmxt_wmulumr): Likewise.
24804 (iwmmxt_wmulwsmr): Likewise.
24805 (iwmmxt_wmulwumr): Likewise.
24806 (iwmmxt_wmulwl): Likewise.
24807 (iwmmxt_wqmulm): Likewise.
24808 (iwmmxt_wqmulwm): Likewise.
24809 (iwmmxt_wqmulmr): Likewise.
24810 (iwmmxt_wqmulwmr): Likewise.
24811 (iwmmxt_waddbhusm): Likewise.
24812 (iwmmxt_waddbhusl): Likewise.
24813 (iwmmxt_wqmiabb): Likewise.
24814 (iwmmxt_wqmiabt): Likewise.
24815 (iwmmxt_wqmiatb): Likewise.
24816 (iwmmxt_wqmiatt): Likewise.
24817 (iwmmxt_wqmiabbn): Likewise.
24818 (iwmmxt_wqmiabtn): Likewise.
24819 (iwmmxt_wqmiatbn): Likewise.
24820 (iwmmxt_wqmiattn): Likewise.
24821 (iwmmxt_wmiabb): Likewise.
24822 (iwmmxt_wmiabt): Likewise.
24823 (iwmmxt_wmiatb): Likewise.
24824 (iwmmxt_wmiatt): Likewise.
24825 (iwmmxt_wmiabbn): Likewise.
24826 (iwmmxt_wmiabtn): Likewise.
24827 (iwmmxt_wmiatbn): Likewise.
24828 (iwmmxt_wmiattn): Likewise.
24829 (iwmmxt_wmiawbb): Likewise.
24830 (iwmmxt_wmiawbt): Likewise.
24831 (iwmmxt_wmiawtb): Likewise.
24832 (iwmmxt_wmiawtt): Likewise.
24833 (iwmmxt_wmiawbbn): Likewise.
24834 (iwmmxt_wmiawbtn): Likewise.
24835 (iwmmxt_wmiawtbn): Likewise.
24836 (iwmmxt_wmiawttn): Likewise.
24837 (iwmmxt_wmerge): Likewise.
24838 (iwmmxt_tandc<mode>3): Likewise.
24839 (iwmmxt_torc<mode>3): Likewise.
24840 (iwmmxt_torvsc<mode>3): Likewise.
24841 (iwmmxt_textrc<mode>3): Likewise.
24842 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
24843 (wmmxt_pack): Likewise.
24844 (wmmxt_mult_c1): Likewise.
24845 (wmmxt_mult_c2): Likewise.
24846 (wmmxt_alu_c1): Likewise.
24847 (wmmxt_alu_c2): Likewise.
24848 (wmmxt_alu_c3): Likewise.
24849 (wmmxt_transfer_c1): Likewise.
24850 (wmmxt_transfer_c2): Likewise.
24851 (wmmxt_transfer_c3): Likewise.
24852 (marvell_f_iwmmxt_wstr): Likewise.
24853 (marvell_f_iwmmxt_wldr): Likewise.
24855 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
24857 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
24859 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24862 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24863 * lra-constraints.c (need_for_split_p): Check call used hard regs
24864 living through calls.
24866 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
24867 call used regs for call insn.
24869 2013-06-28 Jakub Jelinek <jakub@redhat.com>
24872 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
24873 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
24875 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
24877 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
24879 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24881 * lra-constraints.c (need_for_split_p): Check call used hard regs
24882 living through calls.
24884 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
24887 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
24888 to tie with any other modes. Eliminate Altivec vector mode tests,
24889 since these are a subset of ALTIVEC or VSX vector modes. Simplify
24890 code, to return 0 if testing MODE2 for a condition, if we've
24891 already tested MODE1 for the same condition.
24893 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24895 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
24898 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24900 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24901 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
24903 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24905 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
24907 (aarch64_symbolic_constant_p): Remove.
24908 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
24909 static. Fix line length and white space.
24910 (aarch64_symbolic_constant_p): Remove.
24911 * config/aarch64/predicates.md (aarch64_valid_symref):
24912 Use aarch64_classify_symbol_expression.
24914 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24916 * config/arm/constraints.md (Ts): New constraint.
24917 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
24919 (compare_scc): Use "Ts" constraint for operand 0.
24920 (ior_scc_scc): Likewise.
24921 (and_scc_scc): Likewise.
24922 (and_scc_scc_nodom): Likewise.
24923 (ior_scc_scc_cmp): Likewise for operand 7.
24924 (and_scc_scc_cmp): Likewise.
24925 * config/arm/thumb2.md (thumb2_movsi_insn):
24926 Add alternatives for 16-bit encodings.
24927 (thumb2_movhi_insn): Likewise.
24928 (thumb2_movsicc_insn): Likewise.
24929 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
24930 (thumb2_negscc): Use "Ts" constraint.
24931 Move mvn instruction outside cond_exec block.
24932 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
24933 for 16-bit encodings.
24935 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24937 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
24939 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
24940 (mulsi3subsi): Likewise.
24941 (mulsidi3adddi): Likewise.
24942 (mulsidi3_v6): Likewise.
24943 (umulsidi3_v6): Likewise.
24944 (umulsidi3adddi_v6): Likewise.
24945 (smulsi3_highpart_v6): Likewise.
24946 (umulsi3_highpart_v6): Likewise.
24947 (mulhisi3tb): Likewise.
24948 (mulhisi3bt): Likewise.
24949 (mulhisi3tt): Likewise.
24950 (maddhisi4): Likewise.
24951 (maddhisi4tb): Likewise.
24952 (maddhisi4tt): Likewise.
24953 (maddhidi4): Likewise.
24954 (maddhidi4tb): Likewise.
24955 (maddhidi4tt): Likewise.
24956 (zeroextractsi_compare0_scratch): Likewise.
24957 (insv_zero): Likewise.
24958 (insv_t2): Likewise.
24959 (anddi_notzesidi_di): Likewise.
24960 (anddi_notsesidi_di): Likewise.
24961 (andsi_notsi_si): Likewise.
24962 (iordi_zesidi_di): Likewise.
24963 (xordi_zesidi_di): Likewise.
24964 (andsi_iorsi3_notsi): Likewise.
24965 (smax_0): Likewise.
24966 (smax_m1): Likewise.
24967 (smin_0): Likewise.
24968 (not_shiftsi): Likewise.
24969 (unaligned_loadsi): Likewise.
24970 (unaligned_loadhis): Likewise.
24971 (unaligned_loadhiu): Likewise.
24972 (unaligned_storesi): Likewise.
24973 (unaligned_storehi): Likewise.
24974 (extv_reg): Likewise.
24975 (extzv_t2): Likewise.
24976 (divsi3): Likewise.
24977 (udivsi3): Likewise.
24978 (arm_zero_extendhisi2addsi): Likewise.
24979 (arm_zero_extendqisi2addsi): Likewise.
24980 (compareqi_eq0): Likewise.
24981 (arm_extendhisi2_v6): Likewise.
24982 (arm_extendqisi2addsi): Likewise.
24983 (arm_movt): Likewise.
24984 (thumb2_ldrd): Likewise.
24985 (thumb2_ldrd_base): Likewise.
24986 (thumb2_ldrd_base_neg): Likewise.
24987 (thumb2_strd): Likewise.
24988 (thumb2_strd_base): Likewise.
24989 (thumb2_strd_base_neg): Likewise.
24990 (arm_negsi2): Add alternative for 16-bit encoding.
24991 (arm_one_cmplsi2): Likewise.
24993 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24995 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
24996 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
24997 (movdfcc): Likewise.
24998 * config/arm/vfp.md (*thumb2_movsf_vfp):
24999 Disable predication for arm_restrict_it.
25000 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25001 (*thumb2_movdfcc_vfp): Likewise.
25002 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25003 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25004 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25005 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25006 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25007 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25008 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25009 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25010 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25011 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25012 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25013 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25014 Disable predication for arm_restrict_it.
25016 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25018 * config/i386/bmiintrin.h (_bextr_u32): New.
25019 (_bextr_u64): Ditto.
25021 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
25023 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
25024 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
25025 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
25026 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
25027 * config/mips/n32-elf.h: ...this new file.
25029 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
25032 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
25033 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
25035 2013-06-27 Catherine Moore <clm@codesourcery.com>
25037 * config/mips/mips-tables.opt: Regenerate.
25038 * config/mips/mips-cpus.def: Add m14ke and m14kec.
25039 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
25040 * doc/invoke.texi: Add -m14kc.
25042 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25045 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
25046 constraints of operand 1 and 2.
25049 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
25050 to match RTL canonicalization. Swap predicates and
25051 constraints of operand 1 and 2.
25053 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
25055 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
25056 Process OP_INOUT regs for splitting too.
25058 2013-06-27 Jakub Jelinek <jakub@redhat.com>
25060 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
25061 decl before the loop, initialize to NULL.
25062 (vectorizable_load): Initialize ptr_incr to NULL.
25064 2013-06-27 Martin Jambor <mjambor@suse.cz>
25067 * ipa-ref.h (ipa_maybe_record_reference): Declare.
25068 * ipa-ref.c (ipa_maybe_record_reference): New function.
25069 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
25070 * ipa-cp.c (create_specialized_node): Record potential references from
25072 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
25074 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25076 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
25077 parameter 'mode' of type 'enum machine_mode mode'; change to pass
25078 'mode' to force_reg.
25079 (aarch64_add_offset): Update calls to aarch64_force_temporary.
25080 (aarch64_expand_mov_immediate): Likewise.
25082 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
25084 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
25085 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
25087 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25089 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
25090 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25091 (struct machine_function): Add tbegin_p.
25092 (s390_canonicalize_comparison): Fold CC mode compares to
25093 conditional jump if possible.
25094 (s390_emit_jump): Return the emitted jump.
25095 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
25096 Handle CCRAWmode compares.
25097 (s390_option_override): Default to -mhtm if available.
25098 (s390_reg_clobbered_rtx): Handle floating point regs as well.
25099 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
25100 FPRs instead of df_regs_ever_live_p.
25101 (s390_optimize_nonescaping_tx): New function.
25102 (s390_init_frame_layout): Extend clobbered_regs array to cover
25104 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
25105 (s390_expand_tbegin): New function.
25106 (enum s390_builtin): New enum definition.
25107 (code_for_builtin): New array definition.
25108 (s390_init_builtins): New function.
25109 (s390_expand_builtin): New function.
25110 (TARGET_INIT_BUILTINS): Define.
25111 (TARGET_EXPAND_BUILTIN): Define.
25112 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
25113 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
25114 (s390_alc_comparison): Likewise.
25115 * config/s390/s390-modes.def: Add CCRAWmode.
25116 * config/s390/s390.h (processor_flags): Add PF_TX.
25117 (TARGET_CPU_HTM): Define macro.
25118 (TARGET_HTM): Define macro.
25119 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
25120 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
25121 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
25122 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
25123 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
25124 (TBEGIN_MASK, TBEGINC_MASK): New constants.
25125 ("*cc_to_int"): Move up.
25126 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
25127 constants other than 0.
25128 ("*ccraw_to_int"): New insn and splitter definition.
25129 ("tbegin", "tbegin_nofloat", "tbegin_retry")
25130 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
25131 ("tx_assist"): New expander.
25132 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
25133 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
25134 * config/s390/s390.opt: Add -mhtm option.
25135 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
25136 * config/s390/htmxlintrin.h: New file.
25137 * config/s390/htmintrin.h: New file.
25138 * config/s390/s390intrin.h: New file.
25139 * doc/extend.texi: Document htm builtins.
25140 * config.gcc: Add the new header files to extra_headers.
25142 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
25144 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
25145 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
25147 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25148 Pat Haugen <pthaugen@us.ibm.com>
25149 Peter Bergner <bergner@vnet.ibm.com>
25151 * config/rs6000/power8.md: New.
25152 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
25153 setting for power8 entry.
25154 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
25155 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
25156 test for Power4/Power5 only.
25157 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
25159 (force_new_group): Adjust comment.
25160 * config/rs6000/rs6000.md: Include power8.md.
25162 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
25164 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
25165 * config/arm/arm-protos.h (arm_max_conditional_execute): New
25167 (tune_params): Update comment.
25168 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
25169 (arm_max_conditional_execute): New function.
25170 (thumb2_final_prescan_insn): Use max_insn_skipped and
25171 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
25173 2013-06-25 Jakub Jelinek <jakub@redhat.com>
25175 PR tree-optimization/57705
25176 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
25177 SSA_NAME step, provided that it is not defined inside the loop.
25178 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
25179 (get_initial_def_for_induction): Handle SSA_NAME IV step.
25181 2013-06-25 Martin Jambor <mjambor@suse.cz>
25183 PR middle-end/57670
25184 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
25185 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
25187 (ipa_note_param_call): Initialize member_ptr flag.
25188 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
25189 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
25190 (ipa_write_indirect_edge_info): Stream member_ptr flag.
25191 (ipa_read_indirect_edge_info): Likewise.
25193 2013-06-25 Richard Biener <rguenther@suse.de>
25195 PR middle-end/56977
25196 * passes.c (init_optimization_passes): Move pass_fold_builtins
25197 and pass_dce earlier with -Og.
25199 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
25201 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
25202 <BIT_FIELD_REF>: Remove trailing TAB.
25203 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
25206 2013-06-24 Martin Jambor <mjambor@suse.cz>
25208 PR tree-optimization/57358
25209 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
25210 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
25211 (ipa_analyze_params_uses): Generate pessimistic info when true.
25213 2013-06-24 Martin Jambor <mjambor@suse.cz>
25215 PR tree-optimization/57539
25216 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25217 global.inlined_to of the new node to it. All callers changed.
25218 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25219 inlining_into, pass it to cgraph_clone_node.
25220 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25221 ipa_free_edge_args_substructures.
25222 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25223 rdesc linked list. Do not assert rdesc edges have inlined caller.
25224 Assert we have found an rdesc in the rdesc list.
25226 2013-06-24 Richard Biener <rguenther@suse.de>
25228 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25229 (pointer_set_lookup): Declare.
25230 (class pointer_map): New template class implementing a
25231 generic pointer to T map.
25232 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25233 pointer_map<T>::contains, pointer_map<T>::insert,
25234 pointer_map<T>::traverse): New functions.
25235 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25236 (pointer_set_lookup): New function.
25237 (pointer_set_contains): Use pointer_set_lookup.
25238 (pointer_set_insert): Likewise.
25239 (insert_aux): Remove.
25240 (struct pointer_map_t): Embed a pointer_set_t.
25241 (pointer_map_create): Adjust.
25242 (pointer_map_destroy): Likewise.
25243 (pointer_map_contains): Likewise.
25244 (pointer_map_insert): Likewise.
25245 (pointer_map_traverse): Likewise.
25246 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25247 pointer_map<unsigned> instead of a pointer_map_t.
25248 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25249 (streamer_tree_cache_lookup): Likewise.
25250 (streamer_tree_cache_create): Likewise.
25251 (streamer_tree_cache_delete): Likewise.
25252 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25253 pointer_map<unsigned> instead of a pointer_map_t.
25254 (lto_init_tree_ref_encoder): Adjust.
25255 (lto_destroy_tree_ref_encoder): Likewise.
25256 * lto-section-out.c (lto_output_decl_index): Likewise.
25257 (lto_record_function_out_decl_state): Likewise.
25258 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25260 2013-06-24 Richard Biener <rguenther@suse.de>
25262 PR tree-optimization/57488
25263 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25265 2013-06-24 Alan Modra <amodra@gmail.com>
25267 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25268 (gen_easy_altivec_constant): Likewise.
25269 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25270 easy_vector_constant_msb): Likewise.
25272 2013-06-23 Jakub Jelinek <jakub@redhat.com>
25275 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
25276 add missing return true.
25278 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
25281 * config/sh/predicates.md (general_extend_operand): Invoke
25282 general_movsrc_operand for memory operands.
25283 (general_movsrc_operand): Allow reg+reg addressing, do not use
25284 general_operand for memory operands.
25286 2013-06-23 Sriraman Tallam <tmsriram@google.com>
25288 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
25289 when current target options does not apply.
25290 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
25291 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
25292 * config/i386/bmiintrin.h: Pass appropriate target
25293 attributes to header.
25294 * config/i386/mmintrin.h: Ditto.
25295 * config/i386/nmmintrin.h: Ditto.
25296 * config/i386/avx2intrin.h: Ditto.
25297 * config/i386/fxsrintrin.h: Ditto.
25298 * config/i386/tbmintrin.h: Ditto.
25299 * config/i386/xsaveintrin.h: Ditto.
25300 * config/i386/f16cintrin.h: Ditto.
25301 * config/i386/xtestintrin.h: Ditto.
25302 * config/i386/xsaveoptintrin.h: Ditto.
25303 * config/i386/bmi2intrin.h: Ditto.
25304 * config/i386/lzcntintrin.h: Ditto.
25305 * config/i386/smmintrin.h: Ditto.
25306 * config/i386/wmmintrin.h: Ditto.
25307 * config/i386/x86intrin.h: Remove all header include guards.
25308 * config/i386/prfchwintrin.h: Ditto.
25309 * config/i386/pmmintrin.h: Ditto.
25310 * config/i386/tmmintrin.h: Ditto.
25311 * config/i386/xmmintrin.h: Ditto.
25312 * config/i386/popcntintrin.h: Ditto.
25313 * config/i386/rdseedintrin.h: Ditto.
25314 * config/i386/ammintrin.h: Ditto.
25315 * config/i386/emmintrin.h: Ditto.
25316 * config/i386/immintrin.h: Remove all header include guards.
25317 * config/i386/fma4intrin.h: Ditto.
25318 * config/i386/lwpintrin.h: Ditto.
25319 * config/i386/xopintrin.h: Ditto.
25320 * config/i386/ia32intrin.h: Ditto.
25321 * config/i386/avxintrin.h: Ditto.
25322 * config/i386/rtmintrin.h: Ditto.
25323 * config/i386/fmaintrin.h: Ditto.
25324 * config/i386/mm3dnow.h: Ditto.
25326 2013-06-22 Sriraman Tallam <tmsriram@google.com>
25328 * common/config/i386/i386-common.c: Handle LZCNT.
25330 2013-06-22 Andi Kleen <ak@linux.intel.com>
25332 * doc/extend.texi: Use __atomic_store_n instead of
25333 __atomic_store in HLE example.
25335 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
25337 * config/sh/sh.c: Remove <cstdlib> workaround.
25339 2013-06-21 Andi Kleen <ak@linux.intel.com>
25341 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
25343 2013-06-21 Andi Kleen <ak@linux.intel.com>
25345 * doc/extend.texi: Document that __atomic_clear and
25346 __atomic_test_and_set should only be used with bool.
25348 2013-06-20 Jan Hubicka <jh@suse.cz>
25350 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
25351 types_same_for_odr.
25352 * tree.c (decls_same_for_odr): New function.
25353 (same_for_edr): New function.
25354 (types_same_for_odr): New function.
25355 (get_binfo_at_offset): Use it.
25356 * tree.h (types_same_for_odr): Declare.
25358 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
25359 Jason Merrill <jason@redhat.com>
25361 * system.h: Include <cstdlib> as well as <stdlib.h>.
25363 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
25366 * config/i386/i386.c (construct_container): Report error if
25367 long double is used with disabled x87 float returns.
25369 2013-06-20 Jan Hubicka <jh@suse.cz>
25371 * lto-cgraph.c (input_symtab): Do not set cgraph state.
25373 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
25375 PR rtl-optimization/57425
25376 PR rtl-optimization/57569
25377 * alias.c (write_dependence_p): Remove parameters mem_mode and
25378 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
25379 Changed all callers.
25380 (canon_anti_dependence): Get comments and semantics in sync.
25381 Add parameter mem_canonicalized. Changed all callers.
25382 * rtl.h (canon_anti_dependence): Update prototype.
25384 2013-06-20 Richard Biener <rguenther@suse.de>
25386 * data-streamer-in.c (streamer_read_uhwi): Optimize single
25387 byte case, inline streamer_read_uchar and defer section
25390 2013-06-20 Richard Biener <rguenther@suse.de>
25392 PR tree-optimization/57584
25393 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
25394 SSA names into the expanded expression that take part in
25395 abnormal coalescing.
25397 2013-06-19 Sharad Singhai <singhai@google.com>
25399 * gcov.c (print_usage): Handle new option.
25400 (process_args): Ditto.
25401 (get_gcov_intermediate_filename): New function.
25402 (output_intermediate_file): New function.
25403 (output_gcov_file): New function
25404 (generate_results): Handle new option.
25405 (release_function): Relase demangled name.
25406 (read_graph_file): Handle demangled name.
25407 (output_lines): Ditto.
25408 * doc/gcov.texi: Document gcov intermediate format.
25410 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
25413 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
25414 (lra_emit_add): Use the functions. Add comment about Y as an
25417 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
25420 * collect2.c (collect_atexit): New.
25421 (collect_exit): Delete.
25422 (main): Register collect_atexit with atexit.
25423 (collect_wait): Change collect_exit to exit.
25425 * collect2.h (collect_exit): Delete.
25426 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
25428 2013-06-19 Wei Mi <wmi@google.com>
25430 PR rtl-optimization/57518
25431 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
25432 if regno is used in paradoxical subreg.
25433 (update_equiv_regs): Check pdx_subregs[regno] before
25434 set a reg to be equivalent with a mem.
25436 2013-06-19 Matthias Klose <doko@ubuntu.com>
25439 * file-find.h (find_a_file): Add a mode parameter.
25440 * file-find.c (find_a_file): Likewise.
25441 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
25442 with X_OK for the executables.
25443 * collect2.c (main): Call find_a_file with X_OK.
25445 2013-06-19 Steve Ellcey <sellcey@mips.com>
25448 * config/mips/mips.md (casesi_internal_mips16_<mode>):
25449 Use NEXT_INSN instead of next_real_insn.
25451 2013-06-19 Jan Hubicka <jh@suse.cz>
25453 * cgraph.h (const_value_known_p): Replace by ...
25454 (ctor_for_folding): .. this one.
25455 * cgraphunit.c (process_function_and_variable_attributes): Use it.
25456 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
25457 * expr.c (expand_expr_real_1): Likewise.
25458 (string_constant): Likewise.
25459 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25460 * ipa.c (process_references): Likewise.
25461 (symtab_remove_unreachable_nodes): Likewise.
25462 * ipa-inline-analysis.c (param_change_prob): Likewise.
25463 * gimple-fold.c (canonicalize_constructor_val): Likewise.
25464 (get_base_constructor): Likwise.
25465 * varpool.c (varpool_remove_node): Likewise.
25466 (varpool_remove_initializer): LIkewise.
25467 (dump_varpool_node): LIkwise.
25468 (const_value_known_p): Rewrite to ...
25469 (ctor_for_folding): ... this one.
25471 2013-06-19 Jakub Jelinek <jakub@redhat.com>
25474 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
25475 PERSONALITY in $PATH derived prefixes.
25477 2013-06-19 Jeff Law <law@redhat.com>
25479 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
25482 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
25483 (simplify_bitwise_binary): Use it to simpify certain binary ops on
25486 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
25488 * config/arm/vfp.md: Move VFP instruction classification documentation
25490 * config/arm/arm.md: ... here. Update instruction classification
25493 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
25495 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
25496 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
25497 pattern. Use more efficient sequences on ARMv5 and Thumb2.
25499 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
25502 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25503 with NEXT_INSN. Use tablejump_p to check for jump table data
25506 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
25509 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
25510 that now in C++ the value is correct per the C++ standards.
25512 2013-06-19 Richard Biener <rguenther@suse.de>
25514 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
25515 for global context.
25517 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25520 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25523 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25524 with next_active_insn.
25526 2013-06-18 Sriraman Tallam <tmsriram@google.com>
25528 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
25529 functions are inlined during failures to flag an error.
25530 * tree-inline.c (expand_call_inline): Allow the error to be flagged
25531 in early inline pass.
25533 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
25535 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
25538 2013-06-18 Julian Brown <julian@codesourcery.com>
25540 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
25541 Permit virtual register pre-reload if !strict.
25542 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
25544 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
25546 * config/arm/neon.md (movmisalign<mode>): Use
25547 neon_perm_struct_or_reg_operand instead of
25548 neon_struct_or_register_operand.
25549 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
25550 neon_permissive_struct_operand instead of neon_struct_operand.
25551 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
25552 neon_vector_mem_operand.
25553 * config/arm/predicates.md (neon_struct_operand): Adjust call to
25554 neon_vector_mem_operand.
25555 (neon_permissive_struct_operand): New.
25556 (neon_struct_or_register_operand): Rename to...
25557 (neon_perm_struct_or_reg_operand): This. Adjust call to
25558 neon_vector_mem_operand.
25560 2013-06-18 Richard Biener <rguenther@suse.de>
25562 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
25563 * lto-streamer.h: Include pointer-set.h.
25564 (struct lto_decl_slot): Remove.
25565 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
25566 Remove next_index entry.
25567 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25568 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25569 (lto_init_tree_ref_encoder): Adjust.
25570 (lto_destroy_tree_ref_encoder): Likewise.
25571 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25572 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25573 (lto_output_decl_index): Adjust.
25574 (lto_new_out_decl_state): Likewise.
25575 (lto_record_function_out_decl_state): Likewise.
25576 * lto-streamer-out.c (copy_function): Likewise.
25578 2013-06-18 Richard Biener <rguenther@suse.de>
25580 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
25581 * cgraphunit.c: Include cfgloop.h.
25582 (init_lowered_empty_function): Initialize the loop tree.
25583 (assemble_thunk): Insert new BBs into loops.
25585 2013-06-18 Richard Biener <rguenther@suse.de>
25587 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
25588 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
25589 the map from cache entry to cache index optional.
25590 (streamer_tree_cache_replace_tree): Adjust accordingly.
25591 (streamer_tree_cache_append): Likewise.
25592 (streamer_tree_cache_delete): Likewise.
25593 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
25594 streamer cache map from cache entry to cache index.
25595 * lto-streamer-out.c (create_output_block): Adjust.
25597 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
25599 * config/arm/arm.md (attribute "insn"): Move multiplication and
25600 division attributes to...
25601 (attribute "type"): ... here. Remove mult.
25602 (attribute "mul32"): New attribute.
25603 (attribute "mul64"): Add umaal.
25604 (*arm_mulsi3): Update attributes.
25605 (*arm_mulsi3_v6): Likewise.
25606 (*thumb_mulsi3): Likewise.
25607 (*thumb_mulsi3_v6): Likewise.
25608 (*mulsi3_compare0): Likewise.
25609 (*mulsi3_compare0_v6): Likewise.
25610 (*mulsi_compare0_scratch): Likewise.
25611 (*mulsi_compare0_scratch_v6): Likewise.
25612 (*mulsi3addsi): Likewise.
25613 (*mulsi3addsi_v6): Likewise.
25614 (*mulsi3addsi_compare0): Likewise.
25615 (*mulsi3addsi_compare0_v6): Likewise.
25616 (*mulsi3addsi_compare0_scratch): Likewise.
25617 (*mulsi3addsi_compare0_scratch_v6): Likewise.
25618 (*mulsi3subsi): Likewise.
25619 (*mulsidi3adddi): Likewise.
25620 (*mulsi3addsi_v6): Likewise.
25621 (*mulsidi3adddi_v6): Likewise.
25622 (*mulsidi3_nov6): Likewise.
25623 (*mulsidi3_v6): Likewise.
25624 (*umulsidi3_nov6): Likewise.
25625 (*umulsidi3_v6): Likewise.
25626 (*umulsidi3adddi): Likewise.
25627 (*umulsidi3adddi_v6): Likewise.
25628 (*smulsi3_highpart_nov6): Likewise.
25629 (*smulsi3_highpart_v6): Likewise.
25630 (*umulsi3_highpart_nov6): Likewise.
25631 (*umulsi3_highpart_v6): Likewise.
25632 (mulhisi3): Likewise.
25633 (*mulhisi3tb): Likewise.
25634 (*mulhisi3bt): Likewise.
25635 (*mulhisi3tt): Likewise.
25636 (maddhisi4): Likewise.
25637 (*maddhisi4tb): Likewise.
25638 (*maddhisi4tt): Likewise.
25639 (maddhidi4): Likewise.
25640 (*maddhidi4tb): Likewise.
25641 (*maddhidi4tt): Likewise.
25642 (divsi3): Likewise.
25643 (udivsi3): Likewise.
25644 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
25645 (thumb2_mulsi_short_compare0): Likewise.
25646 (thumb2_mulsi_short_compare0_scratch): Likewise.
25647 * config/arm/arm1020e.md (1020mult1): Update attribute change.
25648 (1020mult2): Likewise.
25649 (1020mult3): Likewise.
25650 (1020mult4): Likewise.
25651 (1020mult5): Likewise.
25652 (1020mult6): Likewise.
25653 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
25655 (cortex_a15_mult64): Likewise.
25656 (cortex_a15_sdiv): Likewise.
25657 (cortex_a15_udiv): Likewise.
25658 * config/arm/arm1026ejs.md (mult1): Update attribute change.
25664 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
25665 (pj4_ir_div): Likewise.
25666 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
25667 (11_mult2): Likewise.
25668 (11_mult3): Likewise.
25669 (11_mult4): Likewise.
25670 (11_mult5): Likewise.
25671 (11_mult6): Likewise.
25672 (11_mult7): Likewise.
25673 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
25674 (cortex_a8_mla): Likewise.
25675 (cortex_a8_mull): Likewise.
25676 (cortex_a8_smulwy): Likewise.
25677 (cortex_a8_smlald): Likewise.
25678 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
25679 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
25680 (cortex_r4_mul_3): Likewise.
25681 (cortex_r4_mla_4): Likewise.
25682 (cortex_r4_mla_3): Likewise.
25683 (cortex_r4_smlald): Likewise.
25684 (cortex_r4_mull): Likewise.
25685 (cortex_r4_sdiv): Likewise.
25686 (cortex_r4_udiv): Likewise.
25687 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
25688 (cortex_a7_idiv): Likewise.
25689 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
25690 (9_mult2): Likewise.
25691 (9_mult3): Likewise.
25692 (9_mult4): Likewise.
25693 (9_mult5): Likewise.
25694 (9_mult6): Likewise.
25695 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
25696 (cortex_a53_sdiv): Likewise.
25697 (cortex_a53_udiv): Likewise.
25698 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
25699 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
25700 (mp626_mult2): Likewise.
25701 (mp626_mult3): Likewise.
25702 (mp626_mult4): Likewise.
25703 * config/arm/fa526.md (526_mult1): Update attribute change.
25704 (526_mult2): Likewise.
25705 * config/arm/arm-generic.md (mult): Update attribute change.
25706 (mult_ldsched_strongarm): Likewise.
25707 (mult_ldsched): Likewise.
25708 (multi_cycle): Likewise.
25709 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
25710 * config/arm/fa606te.md (606te_mult1): Update attribute change.
25711 (606te_mult2): Likewise.
25712 (606te_mult3): Likewise.
25713 (606te_mult4): Likewise.
25714 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
25715 (cortex_a9_mac16): Likewise.
25716 (cortex_a9_multiply): Likewise.
25717 (cortex_a9_mac): Likewise.
25718 (cortex_a9_multiply_long): Likewise.
25719 * config/arm/fa626te.md (626te_mult1): Update attribute change.
25720 (626te_mult2): Likewise.
25721 (626te_mult3): Likewise.
25722 (626te_mult4): Likewise.
25724 2013-06-18 Richard Biener <rguenther@suse.de>
25727 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
25729 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25732 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25733 with next_active_insn.
25735 2013-06-18 Alan Modra <amodra@gmail.com>
25737 * config/rs6000/rs6000.h (enum data_align): New.
25738 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
25739 (DATA_ABI_ALIGNMENT): Define.
25740 (CONSTANT_ALIGNMENT): Correct comment.
25741 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
25742 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
25744 2013-06-17 David Malcolm <dmalcolm@redhat.com>
25746 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
25747 ATTRIBUTE_UNUSED marking.
25749 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
25751 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
25752 alternative and update.
25753 (aarch64_dup_lanedi): Delete.
25754 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
25755 * config/aarch64/aarch64-simd-builtins.def: Update.
25757 2013-06-17 Richard Biener <rguenther@suse.de>
25759 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
25760 (lto_input_scc): Declare.
25761 (lto_input_tree_1): Likewise.
25762 (struct lto_stats_d): Add num_tree_bodies_output and
25763 num_pickle_refs_output.
25764 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
25765 (lto_read_tree_1): Split out from ...
25766 (lto_read_tree): ... this.
25767 (lto_input_scc): New function.
25768 (lto_input_tree_1): Split out from ...
25769 (lto_input_tree): ... this. Handle LTO_tree_scc.
25770 (lto_data_in_create): Create the streamer cache without hashes.
25771 * lto-streamer-out.c (create_output_block): Create the streamer
25772 cache with hashes when not doing WPA.
25773 (lto_write_tree_1): Split out from ...
25774 (lto_write_tree): ... this.
25775 (get_symbol_initial_value): New function.
25776 (lto_output_tree_1): Split out from ...
25777 (lto_output_tree): ... this. Write trees as series of SCCs
25778 using a DFS walk via DFS_write_tree.
25779 (struct sccs, struct scc_entry): New types.
25780 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
25781 (DFS_write_tree_body): New function.
25782 (DFS_write_tree): Likewise.
25783 (hash_tree): Likewise.
25784 (scc_entry_compare): Likewise.
25785 (hash_scc): Likewise.
25786 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
25787 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
25788 TREE_CHAIN as regular reference.
25789 (streamer_read_integer_cst): Remove.
25790 (streamer_get_pickled_tree): Adjust.
25791 * tree-streamer-out.c (streamer_write_chain): Disable streaming
25792 of DECL_EXTERNALs in BLOCK_VARS for now.
25793 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
25795 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
25796 Add hash value argument and record that if hashes are recorded
25798 (streamer_tree_cache_insert_1): Adjust.
25799 (streamer_tree_cache_insert): Likewise.
25800 (streamer_tree_cache_insert_at): Rename to ...
25801 (streamer_tree_cache_replace_tree): ... this and adjust.
25802 (streamer_tree_cache_append): Adjust.
25803 (record_common_node): Likewise.
25804 (streamer_tree_cache_create): Add argument whether to
25805 record hash values together with trees.
25806 (streamer_tree_cache_delete): Adjust.
25807 * tree-streamer.h (struct streamer_tree_cache_d): Add
25809 (streamer_read_integer_cst): Remove.
25810 (streamer_tree_cache_insert): Adjust.
25811 (streamer_tree_cache_append): Likewise.
25812 (streamer_tree_cache_insert_at): Rename to ...
25813 (streamer_tree_cache_replace_tree): ... this and adjust.
25814 (streamer_tree_cache_create): Add argument whether to record hashes.
25815 (streamer_tree_cache_get): Rename to ...
25816 (streamer_tree_cache_get_tree): ... this.
25817 (streamer_tree_cache_get_hash): New function.
25818 * tree.c (cache_integer_cst): New function.
25819 * tree.h (cache_integer_cst): Declare.
25820 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
25821 * lto-symtab.c (lto_varpool_replace_node): Only release
25822 DECL_INITIAL of non-prevailing decls.
25823 * varpool.c (varpool_remove_initializer): Do not release
25824 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
25826 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25828 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
25829 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
25830 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
25831 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
25832 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
25833 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
25834 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
25835 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
25836 instead of TARGET_64BIT.
25837 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
25838 Require ISA_HAS_<D>DIV.
25840 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
25842 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
25843 (mips*-*-linux*): Move default with_llsc setting to where other
25845 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
25847 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
25848 Likewise. Remove default with_tune setting. Move default float
25849 setting to its own block. Handle with_llsc in the same block as above.
25851 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
25853 PR rtl-optimization/57425
25854 PR rtl-optimization/57569
25855 * alias.c (write_dependence_p): Add new parameters mem_mode,
25856 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
25857 Changed all callers.
25858 (canon_anti_dependence): New function.
25859 * cse.c (check_dependence): Use canon_anti_dependence.
25860 * cselib.c (cselib_invalidate_mem): Likewise.
25861 * rtl.h (canon_anti_dependence): Declare.
25863 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25865 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
25866 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
25867 ".set mips3" for 64-bit targets.
25869 2013-06-15 Dehao Chen <dehao@google.com>
25871 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
25872 * gimple-low.c (gimple_check_call_matching_types): Likewise.
25873 (gimple_check_call_args): Likewise.
25874 * value-prof.c (check_ic_target): Likewise.
25875 * ipa-inline.c (early_inliner): Likewise.
25876 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
25877 * cgraph.c (cgraph_create_edge_1): Likewise.
25878 (cgraph_make_edge_direct): Likewise.
25880 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25883 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
25884 rs6000_output_move_128bit to handle emitting quad memory
25885 operations. Set attribute length to 8 bytes.
25887 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
25889 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
25891 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
25892 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
25893 (aarch64_<su>mlsl<mode>): Likewise.
25895 2013-06-14 Mike Stump <mikestump@comcast.net>
25897 * Makefile.in (TARGET_H): Add insn-codes.h.
25899 2013-06-14 Alan Modra <amodra@gmail.com>
25901 PR middle-end/57134
25902 PR middle-end/57586
25903 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
25904 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
25905 bitfield expansion when EXPAND_MEMORY.
25906 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
25908 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25910 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
25911 test for clearing quad memory on 32-bit later.
25913 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
25915 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
25916 (fold_negate_expr): Likewise.
25917 (fold_real_zero_addition_p): Handle vectors.
25918 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
25920 2013-06-14 Alan Modra <amodra@gmail.com>
25922 * varasm.c (force_const_mem): Revert 2013-06-07 change.
25924 2013-06-13 Jan Hubicka <jh@suse.cz>
25926 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
25927 Local comdats are not externally visible.
25928 * symtab.c (dump_symtab_base): Dump externally visible.
25929 (verify_symtab_base): Verify back links in the symtab hash.
25931 2013-06-13 Bin Cheng <bin.cheng@arm.com>
25933 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
25934 CONVERT_EXPR as equal nodes.
25936 2013-06-13 Bin Cheng <bin.cheng@arm.com>
25938 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
25940 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
25942 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
25943 Generalize to complex and vector.
25944 * tree.c (build_all_ones_cst): New function.
25945 * tree.h (build_all_ones_cst): Declare it.
25947 2013-06-13 Alan Modra <amodra@gmail.com>
25949 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
25950 * config/rs6000/rs6000.md (signbittf2): New insn.
25951 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
25952 (abstf2_internal, cmptf_internal2): Likewise.
25953 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
25955 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25956 Pat Haugen <pthaugen@us.ibm.com>
25957 Peter Bergner <bergner@vnet.ibm.com>
25959 * config/rs6000/rs6000.c (emit_load_locked): Add support for
25960 power8 byte, half-word, and quad-word atomic instructions.
25961 (emit_store_conditional): Likewise.
25962 (rs6000_expand_atomic_compare_and_swap): Likewise.
25963 (rs6000_expand_atomic_op): Likewise.
25965 * config/rs6000/sync.md (larx): Add new modes for power8.
25967 (AINT): New mode iterator to include TImode as well as normal
25968 integer modes on power8.
25969 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
25970 that VSX registers are not considered. Use AINT mode iterator
25971 instead of INT1 to allow inclusion of quad word atomic operations
25973 (load_locked<mode>): Likewise.
25974 (store_conditional<mode>): Likewise.
25975 (atomic_compare_and_swap<mode>): Likewise.
25976 (atomic_exchange<mode>): Likewise.
25977 (atomic_nand<mode>): Likewise.
25978 (atomic_fetch_<fetchop_name><mode>): Likewise.
25979 (atomic_nand_fetch<mode>): Likewise.
25980 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
25982 (ATOMIC): On power8, add QImode, HImode modes.
25983 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
25984 modes that promote to SImode.
25985 (load_lockedti): Convert TImode arguments to PTImode, so that we
25986 get a guaranteed even/odd register pair.
25987 (load_lockedpti): Likewise.
25988 (store_conditionalti): Likewise.
25989 (store_conditionalpti): Likewise.
25991 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
25992 atomic load/store instructions.
25995 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
25997 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
25999 (insn_count): New attribute, with most cases extracted from...
26000 (length): ...here. Redefine most cases in terms of insn_count.
26001 (single_insn): Delete.
26002 (can_delay): Use insn_count to check for single instructions.
26003 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26004 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26005 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26006 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26007 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26008 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26009 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26010 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26011 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26012 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26013 rather than "length".
26014 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26015 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26016 Use "insn_count" rather than "length".
26017 * config/mips/mips-dsp.md
26018 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26019 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26022 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
26024 PR tree-optimization/57361
26025 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
26027 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
26029 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
26031 (aarch64_simd_combine<mode>): New instruction expansion.
26032 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
26033 function prototype.
26034 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
26035 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
26037 2013-06-12 Jan Hubicka <jh@suse.cz>
26039 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
26040 decl has when in streaming stage.
26041 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
26042 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
26044 2013-06-12 Roland Stigge <stigge@antcom.de>
26047 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
26049 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26051 PR tree-optimization/57537
26052 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
26053 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
26055 2013-06-12 Richard Biener <rguenther@suse.de>
26057 * data-streamer.h (streamer_write_char_stream): CSE
26058 obs->current_pointer.
26059 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
26060 streamer_write_char_stream manually and optimize the resulting loop.
26061 (streamer_write_hwi_stream): Likewise.
26063 2013-06-12 Jan Hubicka <jh@suse.cz>
26065 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
26066 * cgraph.h (varpool_create_empty_node): Declare.
26067 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
26069 * symtab.c (symtab_unregister_node): Be lax about missin entries
26071 (symtab_get_node): Update comment.
26072 * varpool.c (varpool_create_empty_node): Break out from ...
26073 (varpool_node_for_decl): ... here.
26074 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
26076 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
26078 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
26079 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
26080 part. Use straight-line flow at the end.
26081 <COMPONENT_REF>: Remove superfluous else.
26082 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
26084 2013-06-12 Jakub Jelinek <jakub@redhat.com>
26087 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
26088 target hook even for !TREE_PUBLIC decls. If no resolution info
26089 is available, return false for common and external decls.
26091 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26093 * config/rl78/constraints.md (U): New constraint.
26094 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
26097 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26100 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
26101 to allow returning address to AT_PLATFORM name.
26103 2013-06-11 Jan Hubicka <jh@suse.cz>
26105 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
26106 * cgraph.h (symtab_node_base): Add weakref flag.
26107 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
26108 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
26109 (output_weakrefs): Use weakref flag.
26110 * fold-const.c (simple_operand_p): Handle WEAK.
26111 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
26112 * ipa.c (varpool_externally_visible_p): Drop weakref.
26113 (function_and_variable_visibility): Update comment; fix weakref
26114 sanity checks; do not clear DECL_WEAK on them.
26115 * lto-cgraph.c (lto_output_node): update.
26116 (lto_output_varpool_node): Update.
26117 (input_overwrite_node): Update.
26118 (input_node): Update.
26119 (input_varpool_node): Update.
26120 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
26121 (lto_symtab_merge_symbols): Add sanity check.
26122 (lto_symtab_prevailing_decl): Do not special case weakrefs.
26123 * passes.c (rest_of_decl_compilation): Set static flag, too.
26124 * symtab.c (dump_symtab_base): Dump weakref.
26125 (verify_symtab_base): Sanity check weakrefs.
26126 (symtab_make_decl_local): Remove duplicated code.
26127 (symtab_alias_ultimate_target): Simplify.
26128 * varpool.c (varpool_create_variable_alias): Set weakref flag.
26130 2013-06-11 Tom de Vries <tom@codesourcery.com>
26132 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
26133 sequence_vect == NULL.
26135 2013-06-11 DJ Delorie <dj@redhat.com>
26137 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
26138 (rl78_unwind_word_mode): New.
26140 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26142 * final.c (debug_prefix_maps): Make static.
26144 2013-06-11 David Malcolm <dmalcolm@redhat.com>
26146 * function.c (initial_trampoline): Remove stray copy.
26148 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
26150 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
26152 2013-06-11 Martin Jambor <mjambor@suse.cz>
26154 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
26155 within bounds at the beginning of the function.
26157 2013-06-11 Alan Modra <amodra@gmail.com>
26159 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
26161 (get_named_section): Don't NULL !DECL_P decl.
26163 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
26165 * doc/invoke.texi (core-avx2): Document.
26167 (atom): Updated with MOVBE.
26169 2013-06-11 Richard Biener <rguenther@suse.de>
26171 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
26173 2013-06-11 Anton Blanchard <anton@samba.org>
26175 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
26176 correct shift value in little-endian mode.
26178 2013-06-11 Jakub Jelinek <jakub@redhat.com>
26181 * varasm.c (get_variable_align): Move #endif to the right place.
26183 2013-06-10 Cary Coutant <ccoutant@google.com>
26185 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
26186 for hash so that hash table traversal order is deterministic.
26188 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26189 Pat Haugen <pthaugen@us.ibm.com>
26190 Peter Bergner <bergner@vnet.ibm.com>
26192 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26193 of vectors in GPRS if they are direct moves or quad word load or
26196 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
26198 (direct_move_p): Likewise.
26199 (quad_load_store_p): Likewise.
26201 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
26202 classes into bins based on the physical register type.
26203 (reg_class_to_reg_type): Likewise.
26204 (IS_STD_REG_TYPE): Likewise.
26205 (IS_FP_VECT_REG_TYPE): Likewise.
26206 (reload_fpr_gpr): Arrays to determine what insn to use if we can
26207 use direct move instructions.
26208 (reload_gpr_vsx): Likewise.
26209 (reload_vsx_gpr): Likewise.
26210 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
26211 information that is a simplification of register classes. Also
26212 precalculate direct move reload helpers.
26213 (direct_move_p): New function to return true if the operation can
26214 be done as a direct move instruciton.
26215 (quad_load_store_p): New function to return true if the operation
26216 is a quad memory operation.
26217 (rs6000_legitimize_address): If quad memory, only allow register
26218 indirect for TImode addresses.
26219 (rs6000_legitimate_address_p): Likewise.
26220 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26221 (rs6000_reload_register_type): Likewise.
26222 (register_to_reg_type): Return register type.
26223 (rs6000_secondary_reload_simple_move): New helper function for
26224 secondary reload and secondary memory needed to identify anything
26225 that is a simple move, and does not need reloading.
26226 (rs6000_secondary_reload_direct_move): New helper function for
26227 secondary reload to identify cases that can be done with several
26228 instructions via the direct move instructions.
26229 (rs6000_secondary_reload_move): New helper function for secondary
26230 reload to identify moves between register types that can be done.
26231 (rs6000_secondary_reload): Add support for quad memory operations
26232 and for direct move.
26233 (rs6000_secondary_memory_needed): Likewise.
26234 (rs6000_debug_secondary_memory_needed): Change argument names.
26235 (rs6000_output_move_128bit): New function to return the move to
26236 use for 128-bit moves, including knowing about the various
26237 limitations of quad memory operations.
26239 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26240 memory operations. call rs6000_output_move_128bit for the actual
26241 instruciton(s) to generate.
26242 (vsx_movti_64bit): Likewise.
26244 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26245 (UNSPEC_P8V_MTVSRWZ): Likewise.
26246 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26247 (UNSPEC_P8V_MTVSRD): Likewise.
26248 (UNSPEC_P8V_XXPERMDI): Likewise.
26249 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26250 (UNSPEC_FUSION_GPR): Likewise.
26251 (FMOVE128_GPR): New iterator for direct move.
26252 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26253 (f32_sv): Likewise.
26254 (f32_dm): Likewise.
26255 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26256 loads and direct move instructions.
26257 (zero_extendsidi2_lfiwzx): Likewise.
26258 (extendsidi2_lfiwax): Likewise.
26259 (extendsidi2_nocell): Likewise.
26260 (floatsi<mode>2_lfiwax): Likewise.
26261 (lfiwax): Likewise.
26262 (floatunssi<mode>2_lfiwzx): Likewise.
26263 (lfiwzx): Likewise.
26264 (fix_trunc<mode>_stfiwx): Likewise.
26265 (fixuns_trunc<mode>_stfiwx): Likewise.
26266 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26267 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26268 (parity<mode>2_cmpb): Set length/type attr.
26269 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26270 for 'mr.' to fast_compare.
26271 (bpermd_<mode>): Change type attr to popcnt.
26272 (p8_fmrgow_<mode>): New insns for power8 direct move support.
26273 (p8_mtvsrwz_1): Likewise.
26274 (p8_mtvsrwz_2): Likewise.
26275 (reload_fpr_from_gpr<mode>): Likewise.
26276 (p8_mtvsrd_1): Likewise.
26277 (p8_mtvsrd_2): Likewise.
26278 (p8_xxpermdi_<mode>): Likewise.
26279 (reload_vsx_from_gpr<mode>): Likewise.
26280 (reload_vsx_from_gprsf): Likewise.
26281 (p8_mfvsrd_3_<mode>): LIkewise.
26282 (reload_gpr_from_vsx<mode>): Likewise.
26283 (reload_gpr_from_vsxsf): Likewise.
26284 (p8_mfvsrd_4_disf): Likewise.
26285 (multi-word GPR splits): Do not split direct moves or quad memory
26288 2013-06-10 David Malcolm <dmalcolm@redhat.com>
26290 * tree-into-ssa.c (interesting_blocks): Make static.
26292 2013-06-10 Jakub Jelinek <jakub@redhat.com>
26295 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
26296 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
26297 Use DATA_ABI_ALIGNMENT for that case instead if defined.
26298 (get_variable_align): New function.
26299 (get_variable_section, emit_bss, emit_common,
26300 assemble_variable_contents, place_block_symbol): Use
26301 get_variable_align instead of DECL_ALIGN.
26302 (assemble_noswitch_variable): Add align argument, use it
26303 instead of DECL_ALIGN.
26304 (assemble_variable): Adjust caller. Use get_variable_align
26305 instead of DECL_ALIGN.
26306 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
26308 (DATA_ABI_ALIGNMENT): Define.
26309 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
26310 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
26311 opt is false, only return the psABI mandated alignment increase.
26312 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
26313 (DATA_ABI_ALIGNMENT): ... this.
26314 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
26315 (DATA_ABI_ALIGNMENT): ... this.
26316 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
26317 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
26318 (DATA_ABI_ALIGNMENT): ... this.
26319 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
26320 * doc/tm.texi: Regenerated.
26322 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
26324 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
26325 cmp_code to construct REG_EQUAL note.
26327 2013-06-09 Jakub Jelinek <jakub@redhat.com>
26330 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
26331 that operands[2] doesn't overlap with operands[0].
26333 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
26334 Jan Hubicka <jh@suse.cz>
26336 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
26337 hack to mark symbols as used.
26339 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
26341 PR rtl-optimization/57559
26342 * lra-constraints.c (process_alt_operands): Don't discourage
26343 memory with known offset for offsetable memory constraint.
26344 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
26346 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
26348 * varasm.c (struct oc_local_state): Reorder fields.
26349 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
26350 and adjust accordingly.
26351 (output_constructor): Reorder initialization code and adjust call to
26352 output_constructor_bitfield.
26354 2013-06-07 Jan Hubicka <jh@suse.cz>
26356 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
26358 2013-06-07 David Malcolm <dmalcolm@redhat.com>
26360 * tree-object-size.c (unknown): Make const.
26362 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26364 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
26365 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
26366 for last alternative in the cpu_facility attribute.
26368 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26371 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
26372 (xordi3): Change operand 2 constraint to arm_xordi_operand.
26373 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
26374 * config/arm/constraints.md (Dg): New constraint.
26375 * config/arm/neon.md (xordi3_neon): Remove.
26376 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
26377 * config/arm/predicates.md (arm_xordi_operand): New predicate.
26379 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26381 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
26382 Clean up alternatives.
26384 2013-06-07 Alan Modra <amodra@gmail.com>
26386 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
26389 2013-06-07 Alan Modra <amodra@gmail.com>
26391 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
26393 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26395 * config/arm/constraints.md (Df): New constraint.
26396 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
26397 Correct length attribute for last two alternatives.
26399 2013-06-07 Alan Modra <amodra@gmail.com>
26401 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26402 override user -mfp-in-toc.
26403 (offsettable_ok_by_alignment): Consider just the current access
26404 rather than the whole object, unless BLKmode. Handle
26405 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
26406 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
26407 for -mcmodel=medium.
26408 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
26409 override user -mfp-in-toc or -msum-in-toc. Default to
26410 -mno-fp-in-toc for -mcmodel=medium.
26412 2013-06-06 DJ Delorie <dj@redhat.com>
26414 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
26415 TARGET_VALID_POINTER_MODE.
26417 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26418 Pat Haugen <pthaugen@us.ibm.com>
26419 Peter Bergner <bergner@vnet.ibm.com>
26421 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26422 Document new power8 builtins.
26424 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
26425 condition code register, to allow 128-bit logical operations to be
26426 done in the VSX or GPR registers.
26427 (nor<mode>3): Use the canonical form for nor.
26428 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
26429 vclz*, and vpopcnt* vector instructions.
26430 (nand<mode>3): Likewise.
26431 (orc<mode>3): Likewise.
26432 (clz<mode>2): LIkewise.
26433 (popcount<mode>2): Likewise.
26435 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
26436 that only the GPRs are recognized.
26438 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26439 support for new power8 builtins.
26441 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
26443 (xscvdpspn): Likewise.
26449 (vpopcnt): Likewise.
26450 (vpopcntb): Likewise.
26451 (vpopcnth): Likewise.
26452 (vpopcntw): Likewise.
26453 (vpopcntd): Likewise.
26455 (vmrgew): Likewise.
26456 (vmrgow): Likewise.
26458 (eqv_v16qi3): Likewise.
26459 (eqv_v8hi3): Likewise.
26460 (eqv_v4si3): Likewise.
26461 (eqv_v2di3): Likewise.
26462 (eqv_v4sf3): Likewise.
26463 (eqv_v2df3): Likewise.
26465 (nand_v16qi3): Likewise.
26466 (nand_v8hi3): Likewise.
26467 (nand_v4si3): Likewise.
26468 (nand_v2di3): Likewise.
26469 (nand_v4sf3): Likewise.
26470 (nand_v2df3): Likewise.
26472 (orc_v16qi3): Likewise.
26473 (orc_v8hi3): Likewise.
26474 (orc_v4si3): Likewise.
26475 (orc_v2di3): Likewise.
26476 (orc_v4sf3): Likewise.
26477 (orc_v2df3): Likewise.
26479 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
26480 allow power8 quad mode in 64-bit.
26481 (rs6000_builtin_vectorized_function): Add support to vectorize
26482 ISA 2.07 count leading zeros, population count builtins.
26483 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
26484 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
26485 (builtin_function_type): Add vgbbd builtin function which takes an
26487 (altivec_expand_vec_perm_const): Add support for new power8 merge
26490 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
26491 that does not include TImdoe for use with 32-bit.
26492 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
26494 (UNSPEC_VSX_CVDPSPN): Likewise.
26495 (vsx_xscvdpspn): Likewise.
26496 (vsx_xscvspdpn): Likewise.
26497 (vsx_xscvdpspn_scalar): Likewise.
26498 (vsx_xscvspdpn_directmove): Likewise.
26499 (vsx_and<mode>3): Split logical operations into 32-bit and
26500 64-bit. Add support to do logical operations on TImode as well as
26501 VSX vector types. Allow logical operations to be done in either
26502 VSX registers or in general purpose registers in 64-bit mode. Add
26503 splitters if GPRs were used. For AND, add clobber of CCmode to
26504 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
26506 (vsx_and<mode>3_32bit): Likewise.
26507 (vsx_and<mode>3_64bit): Likewise.
26508 (vsx_ior<mode>3): Likewise.
26509 (vsx_ior<mode>3_32bit): Likewise.
26510 (vsx_ior<mode>3_64bit): Likewise.
26511 (vsx_xor<mode>3): Likewise.
26512 (vsx_xor<mode>3_32bit): Likewise.
26513 (vsx_xor<mode>3_64bit): Likewise.
26514 (vsx_one_cmpl<mode>2): Likewise.
26515 (vsx_one_cmpl<mode>2_32bit): Likewise.
26516 (vsx_one_cmpl<mode>2_64bit): Likewise.
26517 (vsx_nor<mode>3): Likewise.
26518 (vsx_nor<mode>3_32bit): Likewise.
26519 (vsx_nor<mode>3_64bit): Likewise.
26520 (vsx_andc<mode>3): Likewise.
26521 (vsx_andc<mode>3_32bit): Likewise.
26522 (vsx_andc<mode>3_64bit): Likewise.
26523 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
26524 and xxlorc instructions.
26525 (vsx_eqv<mode>3_64bit): Likewise.
26526 (vsx_nand<mode>3_32bit): Likewise.
26527 (vsx_nand<mode>3_64bit): Likewise.
26528 (vsx_orc<mode>3_32bit): Likewise.
26529 (vsx_orc<mode>3_64bit): Likewise.
26531 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
26533 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
26535 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
26536 (p8_vmrgow): Likewise.
26537 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
26538 GPRs to be split under VSX.
26539 (p8v_clz<mode>2): Add power8 count leading zero support.
26540 (p8v_popcount<mode>2): Add power8 population count support.
26541 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
26544 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
26547 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
26549 (vec_nand): Likewise.
26550 (vec_vclz): Likewise.
26551 (vec_vclzb): Likewise.
26552 (vec_vclzd): Likewise.
26553 (vec_vclzh): Likewise.
26554 (vec_vclzw): Likewise.
26555 (vec_vgbbd): Likewise.
26556 (vec_vmrgew): Likewise.
26557 (vec_vmrgow): Likewise.
26558 (vec_vpopcnt): Likewise.
26559 (vec_vpopcntb): Likewise.
26560 (vec_vpopcntd): Likewise.
26561 (vec_vpopcnth): Likewise.
26562 (vec_vpopcntw): Likewise.
26564 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26566 PR rtl-optimization/57468
26567 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
26570 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26572 PR rtl-optimization/57459
26573 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
26574 type when setting live regs.
26576 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26578 * config/s390/s390.opt (mlra): New option.
26579 * config/s390/s390.c (s390_decompose_address): Check displacement
26580 for all registers for LRA.
26581 (s390_secondary_reload): Don't used secondary reloads for LRA.
26582 (s390_lra_p): New function.
26583 (TARGET_LRA_P): Define.
26584 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
26585 of attribute cpu_facility to zarch for the last alternative.
26586 (*cmpmem_short): Ditto.
26588 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
26590 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
26591 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
26592 (arm_expand_prologue): Likewise.
26594 2013-06-06 Teresa Johnson <tejohnson@google.com>
26597 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
26598 as this is now done by redirect_edge_and_branch_force.
26599 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
26600 barriers, and fix interaction with splitting.
26601 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
26602 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
26603 reflect changes made in the routine.
26604 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
26605 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
26606 since this is called in cfglayout mode, and replace partition fixup
26607 with assert as that is now done by force_nonfallthru_and_redirect.
26608 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
26609 already be marked with region crossing note.
26610 (insert_section_boundary_note): Make non-static, gate on flag
26611 has_bb_partition, rewrite to also check for multiple partitions.
26612 (rest_of_handle_reorder_blocks): Remove call to
26613 insert_section_boundary_note, now done later during free_cfg.
26614 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
26615 * bb-reorder.h (insert_section_boundary_note): Declare.
26616 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
26617 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
26618 invoke insert_section_boundary_note.
26619 (try_redirect_by_replacing_jump): Remove unnecessary
26620 check for region crossing note.
26621 (fixup_partition_crossing): New function.
26622 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
26623 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
26624 in non-cfglayout mode.
26625 (force_nonfallthru_and_redirect): Fixup partition boundaries,
26626 remove old code that tried to do this. Emit barrier correctly
26627 when we are in cfglayout mode.
26628 (last_bb_in_partition): New function.
26629 (rtl_split_edge): Correctly fixup partition boundaries.
26630 (commit_one_edge_insertion): Remove old code that tried to
26631 fixup region crossing edge since this is now handled in
26632 split_block, and set up insertion point correctly since
26633 block may now end in a jump.
26634 (verify_hot_cold_block_grouping): Guard against checking when not in
26635 linearized RTL mode.
26636 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
26638 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
26639 rtl_verify_flow_info, so not called in cfglayout mode.
26640 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
26641 (fixup_reorder_chain): Remove old code that attempted to fixup region
26642 crossing note as this is now handled in force_nonfallthru_and_redirect.
26643 (duplicate_insn_chain): Don't duplicate switch section notes.
26644 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
26646 * basic-block.h (emit_barrier_after_bb): Declare.
26648 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26650 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
26651 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
26652 arm_usatsihi): Adjust alternatives for arm_restrict_it.
26654 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26656 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
26658 * config/arm/ldmstm.md: Regenerate.
26660 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26662 * config/arm/sync.md (atomic_loaddi_1):
26663 Disable predication for arm_restrict_it.
26664 (arm_load_exclusive<mode>): Likewise.
26665 (arm_load_exclusivesi): Likewise.
26666 (arm_load_exclusivedi): Likewise.
26667 (arm_load_acquire_exclusive<mode>): Likewise.
26668 (arm_load_acquire_exclusivesi): Likewise.
26669 (arm_load_acquire_exclusivedi): Likewise.
26670 (arm_store_exclusive<mode>): Likewise.
26671 (arm_store_exclusive<mode>): Likewise.
26672 (arm_store_release_exclusivedi): Likewise.
26673 (arm_store_release_exclusive<mode>): Likewise.
26675 2013-06-06 Richard Biener <rguenther@suse.de>
26677 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
26679 (lto_tag_is_tree_code_p): Adjust.
26680 (lto_tag_is_gimple_code_p): Likewise.
26681 (lto_gimple_code_to_tag): Likewise.
26682 (lto_tag_to_gimple_code): Likewise.
26683 (lto_tree_code_to_tag): Likewise.
26684 (lto_tag_to_tree_code): Likewise.
26685 * data-streamer.h (streamer_write_hwi_in_range): Use
26686 uhwi streaming to stream the normalized range.
26687 (streamer_read_hwi_in_range): Likewise.
26689 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26691 * config/arm/arm.md (enabled_for_depr_it): New attribute.
26692 (predicable_short_it): Likewise.
26693 (predicated): Likewise.
26694 (enabled): Handle above.
26695 (define_cond_exec): Set predicated attribute to yes.
26697 2013-06-05 Mike Stump <mikestump@comcast.net>
26699 * gdbinit.in (__FUNCTION__): Add.
26701 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
26703 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
26704 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
26706 2013-06-05 Jan Hubicka <jh@suse.cz>
26708 * varasm.c (mark_decl_referenced): Revert the removal until targets
26711 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
26713 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
26714 instead of mark_decl_referenced.
26716 2013-06-05 Jan Hubicka <jh@suse.cz>
26718 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
26719 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
26720 and symtab_used_from_object_file_p.
26721 (cgraph_make_node_local_1): Clear forced_by_abi.
26722 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
26723 * cgraph.h (symtab_node_base): Add forced_by_abi.
26724 (decide_is_variable_needed): Remove.
26725 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
26726 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
26727 (decide_is_symbol_needed): ... this one; handle symbols in general;
26728 always analyze virtuals; honnor forced_by_abi.
26729 (cgraph_finalize_function): Update.
26730 (varpool_finalize_decl): Update.
26731 (symbol_defined_and_needed): Remove.
26732 (analyze_functions): Update.
26733 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26734 output_refs, input_overwrite_node): Handle forced_by_abi.
26735 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
26736 (address_taken_from_non_vtable_p): ... this one.
26737 (comdat_can_be_unshared_p_1): New function.
26738 (cgraph_comdat_can_be_unshared_p): Rename to ...
26739 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
26740 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
26741 (function_and_variable_visibility): Clear forced_by_abi as needed.
26742 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
26743 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
26744 * symtab.c (dump_symtab_base): Dump forced_by_abi.
26745 * varpool.c (decide_is_variable_needed): Remove.
26747 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26749 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
26750 (arm_option_override): Override arm_restrict_it where appropriate.
26751 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
26752 * config/arm/arm.opt (mrestrict-it): New command-line option.
26753 * doc/invoke.texi: Document -mrestrict-it.
26755 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26757 * tsan.c (tsan_atomic_table): Make const.
26759 2013-06-05 Richard Biener <rguenther@suse.de>
26761 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
26762 index associated with the tree we are supposed to replace.
26763 * tree-streamer-out.c (pack_ts_base_value_fields): Output
26764 TREE_ASM_WRITTEN as zero for everything but SSA names.
26766 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26768 * tree-ssa-structalias.c (call_stmt_vars): Make static.
26770 2013-06-04 Jan Hubicka <jh@suse.cz>
26772 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
26773 (input_node, input_varpool_node): Handle correctly external same
26775 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
26776 nodes at ltrans stage.
26778 2013-06-04 Jan Hubicka <jh@suse.cz>
26780 * ipa-inline.c (update_caller_keys): Fix availability test.
26781 (update_callee_keys): Likewise.
26782 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
26783 to follow ELF standard.
26785 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
26787 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
26788 (mips64r5900el-*-elf*): New configurations.
26789 * config/mips/mips-cpus.def (r5900): New processor.
26790 * config/mips/mips-tables.opt: Regenerate.
26791 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
26792 (mips_issue_rate): Handle PROCESSOR_R5900.
26793 (mips_reorg_process_insns): Force reorder mode for the R5900.
26794 * config/mips/mips.h (TARGET_MIPS5900): Define.
26795 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
26797 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
26799 * config/mips/mips.md (processor): Add r5900.
26800 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
26802 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26804 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
26805 into function to generate MOVI instruction.
26806 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
26807 (aarch64_preferred_simd_mode): Turn into wrapper.
26808 (aarch64_output_scalar_simd_mov_immediate): New function.
26809 * config/aarch64/aarch64-protos.h: Add prototype for above.
26811 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26813 * config/aarch64/aarch64.c (simd_immediate_info): Remove
26814 element_char member.
26815 (sizetochar): Return signed char.
26816 (aarch64_simd_valid_immediate): Remove elchar and other
26817 unnecessary variables.
26818 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
26819 Calculate element_char as required.
26820 * config/aarch64/aarch64-protos.h: Update and move prototype
26821 for aarch64_output_simd_mov_immediate.
26822 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
26825 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26827 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
26828 information completed by aarch64_simd_valid_immediate.
26829 (aarch64_legitimate_constant_p): Update arguments.
26830 (aarch64_simd_valid_immediate): Work with struct rather than many
26832 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
26833 (aarch64_simd_make_constant): Update arguments.
26834 (aarch64_output_simd_mov_immediate): Work with struct rather than
26835 many pointers. Output immediate directly rather than as operand.
26836 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
26838 * config/aarch64/constraints.md (Dn): Update arguments.
26840 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26842 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
26844 (aarch64_simd_immediate_valid_for_move): Remove.
26845 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
26846 (aarch64_simd_make_constant): Update call.
26847 (aarch64_output_simd_mov_immediate): Update call.
26848 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
26850 * config/aarch64/constraints.md (Dn): Update call.
26852 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26854 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
26855 return type to bool for prototype.
26856 (aarch64_legitimate_constant_p): Check for true instead of not -1.
26857 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
26858 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
26860 2013-06-04 Catherine Moore <clm@codesourcery.com>
26862 * config/mips/mips.opt (meva): New.
26863 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
26864 (ASM_SPEC): Handle -meva.
26865 * doc/invoke.texi (meva): Document.
26867 2013-06-04 Alan Modra <amodra@gmail.com>
26869 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
26872 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26874 * rtl.def: Add extra fourth optional field to define_cond_exec.
26875 * gensupport.c (process_one_cond_exec): Process attributes from
26877 * doc/md.texi: Document fourth field in define_cond_exec.
26879 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
26881 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
26882 out the processing order as in store_bit_field_1.
26884 2013-06-04 Jan Hubicka <jh@suse.cz>
26886 PR middle-end/57500
26887 * cgraphunit.c (cgraph_process_same_body_aliases): Create
26888 non-VAR_DECL node if it does not exist yet.
26890 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
26892 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
26893 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
26894 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
26895 target_cpu_default setting.
26897 2013-06-03 Teresa Johnson <tejohnson@google.com>
26899 * dumpfile.c (opt_info_switch_p): Change -fopt-info
26900 default to -fopt-info=optimized instead of all.
26901 * doc/invoke.texi: Ditto.
26902 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
26903 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
26904 (execute_vect_slp): Emit BB vectorization success under
26905 MSG_OPTIMIZED_LOCATIONS.
26906 * tree-vect-slp.c (vect_slp_transform_bb): Change
26907 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
26908 * tree-vect-loop.c (vect_transform_loop): Ditto.
26910 2013-06-03 Jason Merrill <jason@redhat.com>
26913 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26914 Use TARGET_EXPR for C++.
26916 2013-06-03 Jakub Jelinek <jakub@redhat.com>
26918 PR rtl-optimization/57268
26919 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
26920 if DEBUG_INSN_P (insn).
26923 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
26925 PR rtl-optimization/57268
26926 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26927 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26929 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26931 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
26932 (ix86_avoid_lea_for_addr): Likewise.
26933 (exact_dependency_1): Likewise.
26934 (ix86_adjust_cost): Likewise.
26935 (swap_top_of_ready_list): Fix formatting and !reload_completed check
26937 (do_reorder_for_imul): Fix typo, formatting and
26938 !reload_completed check removed.
26939 (ix86_sched_reorder): Fix typo and formatting.
26940 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
26943 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
26945 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
26947 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
26949 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
26950 <STRING_CST>: Likewise.
26951 <VECTOR_CST>: Likewise.
26953 2013-06-01 Janus Weil <janus@gcc.gnu.org>
26954 Mikael Morin <mikael@gcc.gnu.org>
26956 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
26957 * config.in: Regenerated.
26958 * configure: Regenerated.
26960 2013-06-01 Jan Hubicka <jh@suse.cz>
26962 PR middle-end/57366
26963 * cgraphunit.c (compile): When weakref is not supported,
26964 set up transparent aliases before final output pass.
26965 * varasm.c (assemble_alias): Do not try to do it here.
26967 2013-06-01 Jan Hubicka <jh@suse.cz>
26969 PR middle-end/57467
26970 * passes.c (for_per_function): Skip unanalyzed functions.
26972 2013-06-01 Jan Hubicka <jh@suse.cz>
26974 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
26975 (lto_symtab_merge_symbols_1): ... this one.
26976 (lto_symtab_merge_cgraph_nodes): Rename to ...
26977 (lto_symtab_merge_symbols): ... this one; simplify.
26978 * cgraph.c (same_body_aliases_done): Rename to ...
26979 (cpp_implicit_aliases_done): ... this one.
26980 (cgraph_create_function_alias): Update.
26981 (cgraph_same_body_alias): Update.
26982 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
26983 (verify_edge_corresponds_to_fndecl): Simplify.
26984 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
26985 (cgraph_node): Remove same_body_alias.
26986 (varpool_node): Remove alias_of and extra_name_alias.
26987 (same_body_aliases_done): Rename to ..
26988 (cpp_implicit_aliases_done): ... this one.
26989 (symtab_alias_ultimate_target): Add default parameter.
26990 (symtab_resolve_alias): New function.
26991 (fixup_same_cpp_alias_visibility): Declare.
26992 (cgraph_function_node): Add default parameter.
26993 (cgraph_node_asm_name): Likewise.
26994 (cgraph_function_or_thunk_node): Add default parameter; do
26995 not ICE when it is NULL.
26996 (varpool_variable_node): Likewise.
26997 * tree-emutls.c (create_emultls_var): Update.
26998 (ipa_lower_emutls): Update.
26999 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27000 (cgraph_reset_node): Reset alias info.
27001 (cgraph_finalize_function): Update.
27002 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27003 (analyze_function): Simplify.
27004 (cgraph_process_same_body_aliases): Simplify.
27005 (analyze_functions): Fixup same body aliases.
27006 (handle_alias_pairs): Simplify.
27007 (assemble_thunk): Update.
27008 (assemble_thunks_and_aliases): Update.
27009 (output_weakrefs): Rewrite.
27010 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27011 (lto_output_varpool_node): Likewise.
27012 (compute_ltrans_boundary): Remve assert.
27013 (get_alias_symbol): New functoin.
27014 (input_node): Rewrite alias handling.
27015 (input_varpool_node): Likewise.
27016 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27017 * ipa.c (process_references): Handle weakrefs correctly.
27018 (symtab_remove_unreachable_nodes): Likewise.
27019 * trans-mem.c (get_cg_data): Update.
27020 (ipa_tm_create_version_alias): Update.
27021 (ipa_tm_execute): Update.
27022 * symtab.c (dump_symtab_base): Dump aliases.
27023 (verify_symtab_base): Verify aliases.
27024 (symtab_node_availability): New function.
27025 (symtab_alias_ultimate_target): Simplify.
27026 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
27027 handle all the fixup cases.
27028 (symtab_resolve_alias): New function.
27029 * passes.c (ipa_write_summaries): Handle weakrefs.
27030 * varpool.c (varpool_analyze_node): Simplify.
27031 (assemble_aliases): Update.
27032 (varpool_create_variable_alias): Simplify.
27033 (varpool_extra_name_alias): Simplify.
27034 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
27035 (lto_symtab_merge_symbols): ... this one.
27037 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
27040 PR rtl-optimization/57268
27041 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27042 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27044 2013-06-01 Tobias Burnus <burnus@net-b.de>
27046 Partially reverted:
27047 2013-05-31 Tobias Burnus <burnus@net-b.de>
27049 PR middle-end/57073
27050 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
27053 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27055 PR rtl-optimization/57268
27056 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27057 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27059 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27061 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
27062 unordered comparison operators when -fno-trapping-math is in effect
27064 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
27065 and implement unordered comparison operators properly on the e500.
27067 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
27069 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27070 for constant scalar integers.
27071 (simplify_relational_operation_1): Likewise.
27073 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
27075 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
27076 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
27079 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27080 Igor Zamyatin <igor.zamyatin@intel.com>
27082 Silvermont (SLM) architecture performance tuning.
27083 * config/i386/i386.h (enum ix86_tune_indices): Add
27084 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
27085 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
27087 * config/i386/i386.c (initial_ix86_tune_features)
27088 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
27089 (ix86_lea_outperforms): Handle Silvermont tuning.
27090 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
27092 (ix86_use_lea_for_mov): Likewise.
27093 (ix86_avoid_lea_for_addr): Likewise.
27094 (ix86_lea_for_add_ok): Likewise.
27095 (exact_dependency_1): New function.
27096 (exact_store_load_dependency): Likewise.
27097 (ix86_adjust_cost): Handle Silvermont tuning.
27098 (do_reoder_for_imul): Likewise.
27099 (swap_top_of_ready_list): New function.
27100 (ix86_sched_reorder): Changed to handle Silvermont tuning.
27102 * config/i386/i386.md (peepholes that split memory operand in fp
27105 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27107 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27108 Remove un-necessary braces.
27110 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
27112 * config/aarch64/aarch64.c (aarch64_classify_symbol):
27113 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
27115 2013-05-31 Tobias Burnus <burnus@net-b.de>
27117 PR middle-end/57073
27118 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
27120 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27123 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
27124 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
27125 * config/arm/neon.md (iordi3_neon): Remove.
27126 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
27127 * config/arm/predicates.md (imm_for_neon_logic_operand):
27128 Move to earlier in the file.
27129 (neon_logic_op2): Likewise.
27130 (arm_iordi_operand_neon): New predicate.
27132 2013-05-31 Richard Biener <rguenther@suse.de>
27134 PR tree-optimization/57478
27135 PR tree-optimization/57453
27136 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
27139 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27141 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
27142 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
27144 2013-05-30 Tobias Burnus <burnus@net-b.de>
27145 Thomas Koenig <tkoenig@gcc.gnu.org>
27147 PR middle-end/57073
27148 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
27149 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
27151 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
27153 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
27155 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
27157 * target.def (register_usage_leveling_p): New hook.
27158 * targhooks.c (default_register_usage_leveling_p): New.
27159 * targhooks.h (default_register_usage_leveling_p): New prototype.
27160 * lra-assigns.c (register_usage_leveling_p): Use the hook.
27161 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
27162 * doc/tm.texi: Update.
27163 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
27165 2013-05-30 Ian Bolton <ian.bolton@arm.com>
27167 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
27168 (*insv_reg<mode>): New define_insn.
27170 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
27172 PR rtl-optimization/57439
27173 * postreload.c (move2add_valid_value_p): Check that we have
27174 a zero subreg_regno_offset when accessing the register in
27175 the requested mode.
27177 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27178 Igor Zamyatin <igor.zamyatin@intel.com>
27180 Silvermont (SLM) architecture pipeline model, tuning and
27182 * config.gcc: Add slm config options and target.
27184 * config/i386/slm.md: New.
27186 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
27188 * config/i386/i386-c.c (ix86_target_macros_internal): New case
27190 (ix86_target_macros_internal): Likewise.
27192 * config/i386/i386.c (slm_cost): New cost.
27193 (m_SLM): New macro flag.
27194 (initial_ix86_tune_features): Set m_SLM.
27195 (x86_accumulate_outgoing_args): Likewise.
27196 (x86_arch_always_fancy_math_387): Likewise.
27197 (processor_target_table): Add slm cost.
27198 (cpu_names): Add slm cpu name.
27199 (x86_option_override_internal): Set SLM ISA.
27200 (ix86_issue_rate): New case PROCESSOR_SLM.
27201 (ia32_multipass_dfa_lookahead): Likewise.
27202 (fold_builtin_cpu): Add slm.
27204 * config/i386/i386.h (TARGET_SLM): New target macro.
27205 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
27206 (processor_type): Add PROCESSOR_SLM.
27208 * config/i386/i386.md (cpu): Add new value "slm".
27209 (slm.md): Include slm.md.
27211 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27212 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27214 * config/arm/arm-protos.h: Add and update function protos.
27215 * config/arm/arm.c (use_simple_return_p): New added.
27216 (thumb2_expand_return): Check simple_return flag.
27217 * config/arm/arm.md: Add simple_return and conditional simple_return.
27218 * config/arm/iterators.md: Add iterator for return and simple_return.
27220 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27222 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27223 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27224 (arm_emit_vfp_multi_reg_pop): Likewise.
27225 (thumb2_emit_ldrd_pop): Likewise.
27226 (arm_expand_epilogue): Add misc REG_CFA notes.
27227 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27229 2013-05-29 Lawrence Crowl <crowl@google.com>
27231 * config/arm/t-arm: Update for below.
27233 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27234 Change type to hash_table. Update dependent calls and types.
27236 * config/i386/t-cygming: Update for below.
27238 * config/i386/t-interix: Update for below.
27240 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27241 Change type to hash_table. Update dependent calls and types.
27242 (i386_find_on_wrapper_list::wrappers): Likewise.
27244 * config/ia64/t-ia64: Update for below.
27246 * config/ia64/ia64.c (bundle_state_table):
27247 Change type to hash_table. Update dependent calls and types.
27249 * config/mips/mips.c (mips_reorg_process_insns::htab):
27250 Change type to hash_table. Update dependent calls and types.
27252 * config/sol2.c (solaris_comdat_htab):
27253 Change type to hash_table. Update dependent calls and types.
27255 * config/t-sol2: Update for above.
27257 2013-05-29 Teresa Johnson <tejohnson@google.com>
27259 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27260 functions are not yet marked as defined.
27262 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27263 Pat Haugen <pthaugen@us.ibm.com>
27264 Peter Bergner <bergner@vnet.ibm.com>
27266 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27270 (vrotl<mode>3): Likewise.
27271 (vashl<mode>3): Likewise.
27272 (vlshr<mode>3): Likewise.
27273 (vashr<mode>3): Likewise.
27275 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27276 support for power8 V2DI builtins.
27278 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
27279 power8 V2DI builtins.
27280 (vupkhsw): Likewise.
27281 (vupklsw): Likewise.
27282 (vaddudm): Likewise.
27283 (vminsd): Likewise.
27284 (vmaxsd): Likewise.
27285 (vminud): Likewise.
27286 (vmaxud): Likewise.
27287 (vpkudum): Likewise.
27288 (vpksdss): Likewise.
27289 (vpkudus): Likewise.
27290 (vpksdus): Likewise.
27295 (vsubudm): Likewise.
27296 (vcmpequd): Likewise.
27297 (vcmpgtsd): Likewise.
27298 (vcmpgtud): Likewise.
27299 (vcmpequd_p): Likewise.
27300 (vcmpgtsd_p): Likewise.
27301 (vcmpgtud_p): Likewise.
27302 (vupkhsw): Likewise.
27303 (vupklsw): Likewise.
27304 (vaddudm): Likewise.
27305 (vmaxsd): Likewise.
27306 (vmaxud): Likewise.
27307 (vminsd): Likewise.
27308 (vminud): Likewise.
27309 (vpksdss): Likewise.
27310 (vpksdus): Likewise.
27311 (vpkudum): Likewise.
27312 (vpkudus): Likewise.
27317 (vsubudm): Likewise.
27319 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27320 support for power8 V2DI instructions.
27322 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
27323 power8 V2DI instructions. Combine pack and unpack insns to use an
27324 iterator for each mode. Check whether a particular mode supports
27325 Altivec instructions instead of just checking TARGET_ALTIVEC.
27326 (UNSPEC_VPKUWUM): Likewise.
27327 (UNSPEC_VPKSHSS): Likewise.
27328 (UNSPEC_VPKSWSS): Likewise.
27329 (UNSPEC_VPKUHUS): Likewise.
27330 (UNSPEC_VPKSHUS): Likewise.
27331 (UNSPEC_VPKUWUS): Likewise.
27332 (UNSPEC_VPKSWUS): Likewise.
27333 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
27334 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
27335 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
27336 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
27337 (UNSPEC_VUPKHSB): Likewise.
27338 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
27339 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
27340 (UNSPEC_VUPKHSH): Likewise.
27341 (UNSPEC_VUPKLSB): Likewise.
27342 (UNSPEC_VUPKLSH): Likewise.
27344 (VI_char): Likewise.
27345 (VI_scalar): Likewise.
27346 (VI_unit): Likewise.
27348 (VP_small): Likewise.
27349 (VP_small_lc): Likewise.
27350 (VU_char): Likewise.
27351 (add<mode>3): Likewise.
27352 (altivec_vaddcuw): Likewise.
27353 (altivec_vaddu<VI_char>s): Likewise.
27354 (altivec_vadds<VI_char>s): Likewise.
27355 (sub<mode>3): Likewise.
27356 (altivec_vsubcuw): Likewise.
27357 (altivec_vsubu<VI_char>s): Likewise.
27358 (altivec_vsubs<VI_char>s): Likewise.
27359 (altivec_vavgs<VI_char>): Likewise.
27360 (altivec_vcmpbfp): Likewise.
27361 (altivec_eq<mode>): Likewise.
27362 (altivec_gt<mode>): Likewise.
27363 (altivec_gtu<mode>): Likewise.
27364 (umax<mode>3): Likewise.
27365 (smax<mode>3): Likewise.
27366 (umin<mode>3): Likewise.
27367 (smin<mode>3): Likewise.
27368 (altivec_vpkuhum): Likewise.
27369 (altivec_vpkuwum): Likewise.
27370 (altivec_vpkshss): Likewise.
27371 (altivec_vpkswss): Likewise.
27372 (altivec_vpkuhus): Likewise.
27373 (altivec_vpkshus): Likewise.
27374 (altivec_vpkuwus): Likewise.
27375 (altivec_vpkswus): Likewise.
27376 (altivec_vpks<VI_char>ss): Likewise.
27377 (altivec_vpks<VI_char>us): Likewise.
27378 (altivec_vpku<VI_char>us): Likewise.
27379 (altivec_vpku<VI_char>um): Likewise.
27380 (altivec_vrl<VI_char>): Likewise.
27381 (altivec_vsl<VI_char>): Likewise.
27382 (altivec_vsr<VI_char>): Likewise.
27383 (altivec_vsra<VI_char>): Likewise.
27384 (altivec_vsldoi_<mode>): Likewise.
27385 (altivec_vupkhsb): Likewise.
27386 (altivec_vupkhs<VU_char>): Likewise.
27387 (altivec_vupkls<VU_char>): Likewise.
27388 (altivec_vupkhsh): Likewise.
27389 (altivec_vupklsb): Likewise.
27390 (altivec_vupklsh): Likewise.
27391 (altivec_vcmpequ<VI_char>_p): Likewise.
27392 (altivec_vcmpgts<VI_char>_p): Likewise.
27393 (altivec_vcmpgtu<VI_char>_p): Likewise.
27394 (abs<mode>2): Likewise.
27395 (vec_unpacks_hi_v16qi): Likewise.
27396 (vec_unpacks_hi_v8hi): Likewise.
27397 (vec_unpacks_lo_v16qi): Likewise.
27398 (vec_unpacks_hi_<VP_small_lc>): Likewise.
27399 (vec_unpacks_lo_v8hi): Likewise.
27400 (vec_unpacks_lo_<VP_small_lc>): Likewise.
27401 (vec_pack_trunc_v8h): Likewise.
27402 (vec_pack_trunc_v4si): Likewise.
27403 (vec_pack_trunc_<mode>): Likewise.
27405 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
27407 (vec_vmaxsd): Likewise.
27408 (vec_vmaxud): Likewise.
27409 (vec_vminsd): Likewise.
27410 (vec_vminud): Likewise.
27411 (vec_vpksdss): Likewise.
27412 (vec_vpksdus): Likewise.
27413 (vec_vpkudum): Likewise.
27414 (vec_vpkudus): Likewise.
27415 (vec_vrld): Likewise.
27416 (vec_vsld): Likewise.
27417 (vec_vsrad): Likewise.
27418 (vec_vsrd): Likewise.
27419 (vec_vsubudm): Likewise.
27420 (vec_vupkhsw): Likewise.
27421 (vec_vupklsw): Likewise.
27423 2013-05-29 Jan Hubicka <jh@suse.cz>
27425 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
27426 flags; reorder rest of fields in more consistent way.
27427 (varpool_node): Remove analyzed, finalized and alias.
27428 (cgraph_ndoe): Likewise.
27429 (symtab_alias_ultimate_target): New function.
27430 (cgraph_function_node): Move offline.
27431 (cgraph_reset_node): Declare.
27432 (cgraph_comdat_can_be_unshared_p): Remove.
27433 (varpool_remove_initializer): Declare.
27434 (varpool_first_defined_variable, varpool_next_defined_variable
27435 cgraph_first_defined_function, cgraph_next_defined_function): Update.
27436 (cgraph_function_with_gimple_body_p): Update.
27437 (varpool_all_refs_explicit_p): Update.
27438 (symtab_alias_target): New function.
27439 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
27440 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
27441 (cgraph_function_or_thunk_node): Simplify using
27442 symtab_alias_ultimate_target.
27443 (varpool_variable_node): Likewise.
27444 * cgraph.c (cgraph_create_function_alias): Update.
27445 (cgraph_add_thunk): Update.
27446 (cgraph_remove_node): Update.
27447 (dump_cgraph_node): Do not dump removed flags.
27448 (cgraph_function_body_availability): Update.
27449 (cgraph_propagate_frequency): Update.
27450 (verify_cgraph_node): Check sanity of local flag.
27451 (cgraph_function_node): Move here from cgraph.h; revamp for
27452 cgraph_function_or_thunk_node.
27453 * lto-symtab.c (lto_varpool_replace_node): Update.
27454 (lto_symtab_resolve_can_prevail_p): Update.
27455 (lto_symtab_merge_cgraph_nodes): Update.
27456 * ipa-cp.c (determine_versionability, initialize_node_lattices,
27457 propagate_constants_accross_call, devirtualization_time_bonus,
27458 ipcp_propagate_stage): Update.
27459 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
27460 * ipa-inline-transform.c (clone_inlined_nodes,
27461 preserve_function_body_p): Update.
27462 * ipa-reference.c (propagate): Update.
27463 (write_node_summary_p): Update.
27464 * toplev.c (wrapup_global_declaration_2): Update.
27465 * cgraphunit.c (cgraph_analyze_function): Rename to ...
27466 (analyze_function) ... this one.
27467 (cgraph_process_new_functions): Update.
27468 (cgraph_reset_node): Export.
27469 (cgraph_finalize_function): Update.
27470 (cgraph_add_new_function): Update.
27471 (process_function_and_variable_attributes): Update.
27472 (varpool_finalize_decl): Update.
27473 (symbol_finalized): Remove.
27474 (symbol_finalized_and_needed): Rename to ...
27475 (symbol_defined_and_needed): ... update.
27476 (cgraph_analyze_functions): Update.
27477 (handle_alias_pairs): Update.
27478 (mark_functions_to_output): Update.
27479 (assemble_thunk): Update.
27480 (output_in_order): Update.
27481 (output_weakrefs): Update.
27482 (finalize_compilation_unit): Update.
27483 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
27484 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
27485 input_node, input_varpool_node): Update.
27486 * dbxout.c (dbxout_expand_expr): Update.
27487 * cgraphclones.c (cgraph_clone_node): Update.
27488 (cgraph_copy_node_for_versioning): Update.
27489 (cgraph_materialize_clone): Update.
27490 (cgraph_materialize_all_clones): Update.
27491 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
27492 propagate_pure_const, propagate_nothrow): Update.
27493 * lto-streamer-out.c (lto_output, write_symbol): Update.
27494 * ipa-utils.c (ipa_reverse_postorder): Update.
27495 * ipa-inline.c (can_inline_edge_p): Update.
27496 (update_caller_keys, ipa_inline): Update.
27497 * dwarf2out.c (reference_to_unused,
27498 premark_types_used_by_global_vars_helper): Update.
27499 * tree-eh.c (tree_could_trap_p): Update.
27500 * ipa-split.c (consider_split, execute_split_functions): Update.
27501 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
27502 has_addr_references_p): Update; move ahead in file for better
27504 (process_references): Simplify.
27505 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
27506 bodies are removed.
27507 (cgraph_comdat_can_be_unshared_p): Make static.
27508 (cgraph_externally_visible_p): Update.
27509 (varpool_externally_visible_p): Update.
27510 (function_and_variable_visibility): Update.
27511 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
27512 ipa_tm_mark_force_output_node): Update.
27513 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
27514 estimate_edge_devirt_benefit, inline_generate_summary,
27515 inline_write_summary): Update.
27516 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
27517 * ipa-prop.c (ipa_compute_jump_functions): Update.
27518 (ipa_print_node_params, ipa_prop_read_section,
27519 ipa_update_after_lto_read, read_replacements_section): Update.
27520 * varasm.c (mark_decl_referenced): Update.
27521 (assemble_alias, dump_tm_clone_pairs): Update.
27522 * tree-inline.c (copy_bb): Update.
27523 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
27525 * symtab.c (dump_symtab_base): Print new flags.
27526 (verify_symtab_base): Verify new flags.
27527 (symtab_alias_ultimate_target): New function.
27528 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
27529 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
27531 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
27533 * i386.c (ix86_get_function_versions_dispatcher,
27534 ix86_generate_version_dispatcher_body): Update.
27535 (fold_builtin_cpu): Use varpool_add_new_variable.
27536 * varpool.c (varpool_remove_initializer): Break out from ...
27537 (varpool_remove_node): ... this one.
27538 (dump_varpool_node, varpool_node_for_asm,
27539 cgraph_variable_initializer_availability, varpool_analyze_node,
27540 varpool_assemble_decl, varpool_remove_unreferenced_decls,
27541 varpool_finalize_named_section_flags, varpool_create_variable_alias):
27544 2013-05-29 Jan Hubicka <jh@suse.cz>
27546 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
27548 2013-05-29 Easwaran Raman <eraman@google.com>
27550 PR tree-optimization/57442
27551 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
27552 when control exits the main loop.
27554 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
27556 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
27558 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
27559 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
27560 * rx/t-rx: Add rx100 under multi library matches option for nofpu
27563 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27565 PR tree-optimization/57441
27566 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
27567 Don't limit size of incr_vec to number of candidates.
27569 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
27571 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
27572 and mips16 directories.
27573 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
27574 (MULTILIB_DIRNAMES): Ditto.
27575 (MULTILIB_EXCEPTIONS): Add new exceptions.
27576 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
27577 (MULTILIB_DIRNAMES): Ditto.
27578 (MULTILIB_EXCEPTIONS): Add new exceptions.
27580 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27581 Marcus Shawcroft <marcus.shawcroft@arm.com>
27583 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
27584 SYMBOL_TINY_ABSOLUTE.
27585 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
27586 SYMBOL_TINY_ABSOLUTE.
27587 (aarch64_expand_mov_immediate): Likewise.
27588 (aarch64_classify_symbol): Likewise.
27589 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
27590 Permit SYMBOL_TINY_ABSOLUTE.
27591 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
27593 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27594 Marcus Shawcroft <marcus.shawcroft@arm.com>
27596 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
27597 Refactor if/switch. Replace gcc_assert with if.
27599 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27601 * config/i386/i386.c (initial_ix86_tune_features): Enable
27602 FP Reassociation for AMD bdver1 and bdver2.
27604 2013-05-29 Martin Jambor <mjambor@suse.cz>
27606 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
27607 and IMAGPART_EXPR do not occur within other handled_components.
27609 2013-05-29 Richard Biener <rguenther@suse.de>
27611 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
27612 access on whether the use is in the BB we currently try to
27614 (vect_bb_vectorization_profitable_p): Pass the BB we currently
27615 vectorize to vect_bb_slp_scalar_cost.
27617 2013-05-29 Richard Biener <rguenther@suse.de>
27619 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
27620 computing scalar cost offsetted by stmts that are kept live
27622 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
27623 for computation of scalar cost.
27625 2013-05-28 Steve Ellcey <sellcey@mips.com>
27627 * config/mips/mips-cpus.def (mips32r2): Change processor type.
27629 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
27631 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
27632 array notation built-in reduction functions.
27633 * doc/passes.texi (Passes): Added documentation about changes done
27635 * doc/invoke.texi (C Dialect Options): Added documentation about
27636 the -fcilkplus flag.
27637 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
27638 (BUILTINS_DEF): Depend on cilkplus.def.
27639 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
27640 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
27641 * cilkplus.def: New file.
27643 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
27645 PR rtl-optimization/57439
27646 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
27648 2013-05-28 Easwaran Raman <eraman@google.com>
27650 PR tree-optimization/57337
27651 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
27652 (find_insert_point): Correctly identify the insertion point
27653 when two statements with the same UID is compared.
27655 2013-05-28 Richard Biener <rguenther@suse.de>
27657 PR tree-optimization/56787
27658 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
27659 from the list of data references.
27660 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
27662 (vect_analyze_loop_operations): Likewise.
27663 (vect_transform_loop): Remove clobbers.
27665 2013-05-28 Martin Jambor <mjambor@suse.cz>
27667 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
27668 and REALPART_EXPRs have scalar type.
27670 2013-05-28 Richard Biener <rguenther@suse.de>
27672 PR tree-optimization/57411
27673 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
27675 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
27676 virtual operand propagation.
27678 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27680 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
27681 destination register for bmasksi_vis.
27682 (vector_init_bshuffle): Likewise.
27683 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
27685 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27687 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
27688 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
27689 mode if the instruction isn't available in the original mode.
27690 * config/sparc/sparc.opt (mfix-ut699): New option.
27691 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
27692 (divdf3): Turn into expander.
27693 (divdf3_nofix): New insn.
27694 (divdf3_fix): Likewise.
27695 (divsf3): Disable if -mfix-ut699.
27696 (sqrtdf2): Turn into expander.
27697 (sqrtdf2_nofix): New insn.
27698 (sqrtdf2_fix): Likewise.
27699 (sqrtsf2): Disable if -mfix-ut699.
27701 2013-05-27 Richard Biener <rguenther@suse.de>
27703 PR middle-end/57412
27704 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
27705 block for the new loop.
27707 2013-05-27 Richard Biener <rguenther@suse.de>
27709 PR tree-optimization/57343
27710 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
27711 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
27712 (number_of_iterations_cond): Do not build the folded tree.
27714 2013-05-27 Richard Biener <rguenther@suse.de>
27717 PR middle-end/57381
27718 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27719 OEP_CONSTANT_ADDRESS_OF retained.
27721 PR tree-optimization/57417
27722 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
27723 for unchanged base.
27724 (set_ssa_val_to): Compare addresses using
27725 get_addr_base_and_unit_offset.
27727 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
27729 PR rtl-optimization/56833
27730 * postreload.c (move2add_record_mode): New function.
27731 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
27732 (move2add_use_add2_insn): Use move2add_record_sym_value.
27733 (move2add_use_add3_insn): Likewise.
27734 (reload_cse_move2add): Use move2add_valid_value_p and
27735 move2add_record_mode. Invalidate call-clobbered and REG_INC
27736 affected regs by setting reg_mode to VOIDmode.
27737 (move2add_note_store): Don't pretend the inside of a SUBREG is
27738 the actual destination. Invalidate single/leading registers by
27739 setting reg_mode to VOIDmode.
27740 Use move2add_record_sym_value, move2add_valid_value_p and
27741 move2add_record_mode.
27743 2013-05-27 Richard Biener <rguenther@suse.de>
27745 PR tree-optimization/57396
27746 * tree-affine.c (double_int_constant_multiple_p): Properly
27747 return false for val == 0 and div != 0.
27749 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27751 * config/mips/mips.h: Use #elif in preprocessor conditions.
27753 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27756 * config/mips/constraints.md (kl): New constraint.
27757 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
27758 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
27759 constraint for operand 0. Split after CSE for MIPS16. Emit a move
27760 from LO for MIPS16.
27761 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
27763 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27766 * config/mips/mips.c (mips_can_inline_p): New function.
27767 (TARGET_CAN_INLINE_P): Define.
27769 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
27771 * sched-int.h (ds_t, dw_t): Make unsigned int.
27772 Fix documentation that describes how all the ds_t bits are used.
27773 Reserve the last bit for delayed-branch scheduling.
27774 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
27775 (BITS_PER_DEP_WEAK): Fix definition and documentation.
27776 (gen_dep_weak_1): Remove prototype.
27777 * sched-deps.c (get_dep_weak_1): Make static.
27778 * target.def (speculate_insn, needs_block_p, gen_spec_check,
27779 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
27780 * doc/tm.texi: Regenerate.
27781 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
27783 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
27786 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
27788 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
27789 Sandra Loosemore <sandra@codesourcery.com>
27791 * config.gcc (powerpc-*): Allow native for with-cpu.
27793 2013-05-24 Jeff Law <law@redhat.com>
27795 PR tree-optimization/57124
27796 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
27797 conversion feeding a condition if the range has an overflow
27798 if -fstrict-overflow. Add warnings for when we do make the
27801 2013-05-24 Dehao Chen <dehao@google.com>
27803 * tree-cfg.c (locus_discrim_map): Fix the typo.
27804 (locus_discrim_hasher): Likewise.
27805 (locus_discrim_hasher::hash): Likewise.
27806 (locus_discrim_hasher::equal): Likewise.
27808 2013-05-24 Martin Jambor <mjambor@suse.cz>
27810 PR tree-optimization/57294
27811 * cgraph.h (ipa_record_stmt_references): Declare.
27812 * cgraphbuild.c (ipa_record_stmt_references): New function.
27813 (build_cgraph_edges): Use ipa_record_stmt_references.
27814 (rebuild_cgraph_edges): Likewise.
27815 (cgraph_rebuild_references): Likewise.
27816 * ipa-prop.c (ipa_modify_call_arguments): Discard references
27817 associated with the old statement and build references from the
27818 newly built statements.
27819 * ipa-ref.c (ipa_remove_stmt_references): New function.
27820 * ipa-ref.h (ipa_remove_stmt_references): Declare.
27822 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
27824 * lra-constraints.c (emit_spill_move): Use smaller mode for
27826 (check_and_process_move): Consider mem-reg moves for secondary
27828 (curr_insn_transform): Don't lose insns emitted before for
27829 secondary memory moves.
27830 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
27831 reg set up in the current insn.
27833 2013-05-24 Dehao Chen <dehao@google.com>
27835 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
27837 (locus_descrim_hasher::equal): Likewise.
27838 (build_gimple_cfg): New discriminator assignment algorithm.
27839 (make_edges): Likewise.
27840 (next_discriminator_for_locus): Likewise.
27841 (same_line_p): Likewise.
27842 (assign_discriminators): Likewise.
27843 (make_cond_expr_edges): Likewise.
27844 (make_gimple_switch_edges): Likewise.
27845 (make_goto_expr_edges): Likewise.
27846 (make_gimple_asm_edges): Likewise.
27848 2013-05-24 Ian Bolton <ian.bolton@arm.com>
27850 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
27851 X format specifier to only display bottom 16 bits.
27852 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
27853 immediate to match for operand 2, since it will be masked.
27855 2013-05-24 Richard Biener <rguenther@suse.de>
27857 PR tree-optimization/57287
27858 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
27859 all SSA names that occur in abnormal PHIs.
27861 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
27864 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
27865 that index is not negative.
27867 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
27869 PR rtl-optimization/55177
27870 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
27871 (simplify_byte_swapping_operation): New.
27872 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
27873 (simplify_relational_operation_1): Deal with BSWAP.
27875 2013-05-23 Richard Henderson <rth@redhat.com>
27878 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
27879 (ix86_reorg): Call it.
27881 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
27884 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
27885 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
27886 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
27888 2013-05-23 Christian Bruel <christian.bruel@st.com>
27891 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
27893 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27894 Marcus Shawcroft <marcus.shawcroft@arm.com>
27896 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
27897 * config/aarch64/constraints.md (Usa): Remove.
27898 * doc/md.texi (AArch64 Usa): Remove.
27900 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27901 Marcus Shawcroft <marcus.shawcroft@arm.com>
27903 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
27904 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
27905 * config/aarch64/predicates.md (aarch64_const_address): Remove.
27906 (aarch64_mov_operand): Use aarch64_mov_operand_p.
27908 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
27910 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
27911 instruction (AdvSIMD).
27912 * config/aarch64/aarch64-builtins.c
27913 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
27914 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
27916 2013-05-23 Martin Jambor <mjambor@suse.cz>
27918 PR middle-end/57347
27919 * tree.h (contains_bitfld_component_ref_p): Declare.
27920 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
27921 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
27923 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
27924 not access a bit-field. Assert all final offsets are byte-aligned.
27926 2013-05-23 Richard Biener <rguenther@suse.de>
27928 PR tree-optimization/57380
27929 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
27930 least one invariant or re-used load.
27931 * passes.c (init_optimization_passes): Move pass_phiprop before
27934 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
27936 * config/aarch64/aarch64-simd.md
27937 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
27939 2013-05-23 Richard Biener <rguenther@suse.de>
27941 PR middle-end/57381
27942 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27943 OEP_CONSTANT_ADDRESS_OF retained.
27945 2013-05-23 Jakub Jelinek <jakub@redhat.com>
27947 PR middle-end/57344
27948 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
27949 don't lower unit. Handle unit not being always BITS_PER_WORD.
27951 2013-05-23 Richard Biener <rguenther@suse.de>
27953 PR rtl-optimization/57341
27954 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
27955 instead of true_dependence.
27957 2013-05-22 David Malcolm <dmalcolm@redhat.com>
27959 * bb-reorder.c (branch_threshold): Make const.
27960 (exec_threshold): Ditto.
27962 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
27963 Pat Haugen <pthaugen@us.ibm.com>
27964 Peter Bergner <bergner@vnet.ibm.com>
27966 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
27967 documentation for the power8 crypto builtins.
27969 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
27971 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
27972 macros for defining power8 builtin functions.
27973 (BU_P8V_AV_2): Likewise.
27974 (BU_P8V_AV_P): Likewise.
27975 (BU_P8V_VSX_1): Likewise.
27976 (BU_P8V_OVERLOAD_1): Likewise.
27977 (BU_P8V_OVERLOAD_2): Likewise.
27978 (BU_CRYPTO_1): Likewise.
27979 (BU_CRYPTO_2): Likewise.
27980 (BU_CRYPTO_3): Likewise.
27981 (BU_CRYPTO_OVERLOAD_1): Likewise.
27982 (BU_CRYPTO_OVERLOAD_2): Likewise.
27983 (XSCVSPDP): Fix typo, point to the correct instruction.
27984 (VCIPHER): Add power8 crypto builtins.
27985 (VCIPHERLAST): Likewise.
27986 (VNCIPHER): Likewise.
27987 (VNCIPHERLAST): Likewise.
27988 (VPMSUMB): Likewise.
27989 (VPMSUMH): Likewise.
27990 (VPMSUMW): Likewise.
27991 (VPERMXOR_V2DI): Likewise.
27992 (VPERMXOR_V4SI: Likewise.
27993 (VPERMXOR_V8HI: Likewise.
27994 (VPERMXOR_V16QI: Likewise.
27995 (VSHASIGMAW): Likewise.
27996 (VSHASIGMAD): Likewise.
27997 (VPMSUM): Likewise.
27998 (VPERMXOR): Likewise.
27999 (VSHASIGMA): Likewise.
28001 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28002 __CRYPTO__ if the crypto instructions are available.
28003 (altivec_overloaded_builtins): Add support for overloaded power8
28006 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28007 support for power8 crypto builtins.
28008 (builtin_function_type): Likewise.
28009 (altivec_init_builtins): Add support for builtins that take vector
28010 long long (V2DI) arguments.
28012 * config/rs6000/crypto.md: New file, define power8 crypto
28015 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28016 Pat Haugen <pthaugen@us.ibm.com>
28017 Peter Bergner <bergner@vnet.ibm.com>
28019 * doc/invoke.texi (Option Summary): Add power8 options.
28020 (RS/6000 and PowerPC Options): Likewise.
28022 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
28023 constraints.md instead of rs6000.h. Reorder w* constraints. Add
28024 wm, wn, wr documentation.
28026 * config/rs6000/constraints.md (wm): New constraint for VSX
28027 registers if direct move instructions are enabled.
28028 (wn): New constraint for no registers.
28029 (wq): New constraint for quad word even GPR registers.
28030 (wr): New constraint if 64-bit instructions are enabled.
28031 (wv): New constraint if power8 vector instructions are enabled.
28032 (wQ): New constraint for quad word memory locations.
28034 * config/rs6000/predicates.md (const_0_to_15_operand): New
28035 constraint for 0..15 for crypto instructions.
28036 (gpc_reg_operand): If VSX allow registers in VSX registers as well
28037 as GPR and floating point registers.
28038 (int_reg_operand): New predicate to match only GPR registers.
28039 (base_reg_operand): New predicate to match base registers.
28040 (quad_int_reg_operand): New predicate to match even GPR registers
28041 for quad memory operations.
28042 (vsx_reg_or_cint_operand): New predicate to allow vector logical
28043 operations in both GPR and VSX registers.
28044 (quad_memory_operand): New predicate for quad memory operations.
28045 (reg_or_indexed_operand): New predicate for direct move support.
28047 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
28048 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
28049 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
28050 (POWERPC_MASKS): Add power8 options.
28051 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
28054 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28055 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
28057 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
28058 (-mpower8-fusion): New power8 options.
28059 (-mpower8-fusion-sign): Likewise.
28060 (-mpower8-vector): Likewise.
28061 (-mcrypto): Likewise.
28062 (-mdirect-move): Likewise.
28063 (-mquad-memory): Likewise.
28065 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
28066 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
28068 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
28069 (rs6000_debug_vector_unit): Add p8_vector.
28070 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
28071 definitions. Also print fusion state.
28072 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
28073 (rs6000_builtin_mask_calculate): Add power8 builtin support.
28074 (rs6000_option_override_internal): Add support for power8.
28075 (rs6000_common_init_builtins): Add debugging for skipped builtins
28076 if -mdebug=builtin.
28077 (rs6000_adjust_cost): Add power8 support.
28078 (rs6000_issue_rate): Likewise.
28079 (insn_must_be_first_in_group): Likewise.
28080 (insn_must_be_last_in_group): Likewise.
28081 (force_new_group): Likewise.
28082 (rs6000_register_move_cost): Likewise.
28083 (rs6000_opt_masks): Likewise.
28085 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
28086 power8 capable assembler, default to power7 options.
28087 (TARGET_DIRECT_MOVE): Likewise.
28088 (TARGET_CRYPTO): Likewise.
28089 (TARGET_P8_VECTOR): Likewise.
28090 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
28091 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
28092 (VECTOR_MEM_P8_VECTOR_P): Likewise.
28093 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
28094 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
28095 (TARGET_XSCVDPSPN): Likewise.
28096 (TARGET_XSCVSPDPN): Likewsie.
28097 (TARGET_SYNC_HI_QI): Likewise.
28098 (TARGET_SYNC_TI): Likewise.
28099 (MASK_CRYPTO): Likewise.
28100 (MASK_DIRECT_MOVE): Likewise.
28101 (MASK_P8_FUSION): Likewise.
28102 (MASK_P8_VECTOR): Likewise.
28103 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
28104 temporary used by some of the direct move instructions to get two FP
28105 temporary registers does not force creation of a stack frame.
28106 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
28107 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
28108 that any VSX registers are tieable, even if they are also an
28109 Altivec vector mode.
28110 (r6000_reg_class_enum): Add wm, wr, wv constraints.
28111 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
28112 (RS6000_BTM_CRYPTO): Likewise.
28113 (RS6000_BTM_COMMON): Likewise.
28115 * config/rs6000/rs6000.md (cpu attribute): Add power8.
28116 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
28117 (enum rs6000_vector): Add power8 vector support.
28119 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28123 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
28124 (any_sibcall_could_use_r3): this and handle indirect calls.
28125 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
28127 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28129 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
28131 2013-05-22 Richard Biener <rguenther@suse.de>
28133 PR middle-end/57349
28134 * profile.c (branch_prob): Do not split blocks that are
28135 abnormally receiving from ECF_RETURNS_TWICE functions.
28137 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28139 * recog.c (offsettable_address_addr_space_p): Fix calculation of
28140 address mode. Move pointer mode initialization to the same place.
28142 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28144 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
28145 while it has any effect.
28147 2013-05-21 Easwaran Raman <eraman@google.com>
28149 PR tree-optimization/57322
28150 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
28151 UID of the statement added to the BB to be 1.
28153 2013-05-21 Jakub Jelinek <jakub@redhat.com>
28155 PR tree-optimization/57331
28156 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
28157 of conversion from pointer type to integral type with integer.
28159 2013-05-21 Martin Jambor <mjambor@suse.cz>
28162 * ipa-prop.c (ipa_read_node_info): Process param_used and
28163 controlled_uses in the same order as when writing.
28165 2013-05-21 Magnus Granberg <baldrick@free.fr>
28168 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
28170 2013-05-21 Richard Biener <rguenther@suse.de>
28172 PR tree-optimization/57318
28173 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28174 estimate stmts with side-effects as likely eliminated.
28176 2013-05-21 Richard Biener <rguenther@suse.de>
28178 PR tree-optimization/57330
28179 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
28180 preserve the call stmts fntype.
28182 2013-05-21 Richard Biener <rguenther@suse.de>
28184 PR tree-optimization/57303
28185 * tree-ssa-sink.c (statement_sink_location): Improve killing
28186 stmt detection and properly handle self-assignments.
28188 2013-05-21 Christian Bruel <christian.bruel@st.com>
28190 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
28191 spanning registers. LEAF_REG_REMAP is supported only for contiguous
28192 registers. Set register size out of the PARALLEL loop.
28194 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
28197 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
28198 (*fmasf4, *fmasf4_media): New insns.
28200 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28202 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28203 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
28204 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
28205 (mips_idiv_insns): Update the comments to say that the returned
28206 instruction counts are in units of BASE_INSN_LENGTH.
28207 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
28208 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
28209 using 2 rather than 4 as the length of indirect MIPS16 and
28210 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
28211 length of a NOP. Don't divide MIPS16 lengths by 2.
28212 (mips16_split_long_branches): Assume a branch is long if the
28213 length is greater than 4 rather than 8.
28214 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28215 rather than multiplying them by 2. Multiply instruction counts
28216 by BASE_INSN_LENGTH rather than 4.
28217 (*jump_mips16, tls_get_tp_mips16_<mode>)
28218 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28220 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28222 * config/mips/mips.md (extended_mips16): Remove branch case.
28223 (length): Remove duplicated extended_mips16 test.
28225 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28227 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28229 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28231 * recog.h (Recog_data): Rename to...
28232 (recog_data_d): ...this.
28233 (recog_data): Update accordingly.
28234 * recog.c (recog_data): Likewise.
28235 * reload.c (save_recog_data): Likewise.
28236 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28237 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28239 2013-05-17 Julian Brown <julian@codesourcery.com>
28241 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28242 found in a REG_EQUAL note, invalidate it.
28244 2013-05-17 Easwaran Raman <eraman@google.com>
28246 * tree-ssa-reassoc.c (find_insert_point): New function.
28247 (insert_stmt_after): Likewise.
28248 (get_def_stmt): Likewise.
28249 (ensure_ops_are_available): Likewise.
28250 (not_dominated_by): Likewise.
28251 (rewrite_expr_tree): Do not move statements beyond what is
28252 necessary. Remove call to swap_ops_for_binary_stmt...
28253 (reassociate_bb): ... and move it here.
28254 (build_and_add_sum): Assign UIDs for new statements.
28255 (linearize_expr): Likewise.
28256 (do_reassoc): Renumber gimple statement UIDs.
28258 2013-05-17 Jan Hubicka <jh@suse.cz>
28260 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28262 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28263 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28265 (output_weakrefs): Update.
28267 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28268 Martin Jambor <mjambor@suse.cz>
28270 PR middle-end/57276
28271 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
28272 value that corresponds to the given aggval is found in values vector.
28274 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
28276 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
28277 sse, sse2, sse3, ssse3 and sse4a flags to options.
28279 2013-05-17 David Malcolm <dmalcolm@redhat.com>
28281 * gengtype-state.c: (s_expr_writer): New class, to handle
28282 prettifying of output layout of s-expressions.
28283 (state_writer): New class, to write out gtype.state.
28284 (state_written_type_count): Move this variable into member data of
28286 (s_expr_writer::s_expr_writer): New code: constructor for new class
28287 (state_writer::state_writer(): ditto
28288 (s_expr_writer::write_new_line): New function
28289 (s_expr_writer::write_any_indent): ditto
28290 (s_expr_writer::begin_s_expr): ditto
28291 (s_expr_writer::end_s_expr): ditto
28292 (write_state_fileloc): convert to method of state_writer...
28293 (state_writer:: write_state_fileloc): ...and use methods of
28294 s_expr_writer to write indentation into the gtype.state output file
28295 to visually represent the hierarchical structure of the list
28297 (write_state_fields): ditto, renaming to...
28298 (state_writer::write_state_fields)
28299 (write_state_a_string): ditto, renaming to...
28300 (state_writer::write_state_a_string)
28301 (write_state_string_option): ditto, renaming to...
28302 (state_writer::write_state_string_option)
28303 (write_state_type_option): ditto, renaming to...
28304 (state_writer::write_state_type_option)
28305 (write_state_nested_option): ditto, renaming to...
28306 (state_writer::write_state_nested_option)
28307 (write_state_option): ditto, renaming to...
28308 (state_writer::write_state_option)
28309 (write_state_options): ditto, renaming to...
28310 (state_writer::write_state_options)
28311 (write_state_lang_bitmap): ditto, renaming to...
28312 (state_writer::write_state_lang_bitmap)
28313 (write_state_version): ditto, renaming to...
28314 (state_writer::write_state_version)
28315 (write_state_scalar_type): ditto, renaming to...
28316 (state_writer::write_state_scalar_type)
28317 (write_state_string_type): ditto, renaming to...
28318 (state_writer::write_state_string_type)
28319 (write_state_undefined_type): ditto, renaming to...
28320 (state_writer::write_state_undefined_type)
28321 (write_state_struct_union_type): ditto, renaming to...
28322 (state_writer::write_state_struct_union_type)
28323 (write_state_struct_type): ditto, renaming to...
28324 (state_writer::write_state_struct_type)
28325 (write_state_user_struct_type): ditto, renaming to...
28326 (state_writer::write_state_user_struct_type)
28327 (write_state_lang_struct_type): ditto, renaming to...
28328 (state_writer::write_state_lang_struct_type)
28329 (write_state_param_struct_type): ditto, renaming to...
28330 (state_writer::write_state_param_struct_type)
28331 (write_state_pointer_type): ditto, renaming to...
28332 (state_writer::write_state_pointer_type)
28333 (write_state_array_type): ditto, renaming to...
28334 (state_writer::write_state_array_type)
28335 (write_state_gc_used): ditto, renaming to...
28336 (state_writer::write_state_gc_used)
28337 (write_state_common_type_content): ditto, renaming to...
28338 (state_writer::write_state_common_type_content)
28339 (write_state_type): ditto, renaming to...
28340 (state_writer::write_state_type)
28341 (write_state_pair_list): ditto, renaming to...
28342 (state_writer::write_state_pair_list)
28343 (write_state_pair): ditto, renaming to...
28344 (state_writer::write_state_pair)
28345 (write_state_typedefs): ditto, renaming to...
28346 (state_writer::write_state_typedefs)
28347 (write_state_structures): ditto, renaming to...
28348 (state_writer::write_state_structures)
28349 (write_state_param_structs): ditto, renaming to...
28350 (state_writer::write_state_param_structs)
28351 (write_state_variables): ditto, renaming to...
28352 (state_writer::write_state_variables)
28353 (write_state_srcdir): ditto, renaming to...
28354 (state_writer::write_state_srcdir)
28355 (write_state_files_list): ditto, renaming to...
28356 (state_writer::write_state_files_list)
28357 (write_state_languages): ditto, renaming to...
28358 (state_writer::write_state_languages)
28359 (write_state): create a state_writer instance and use it when
28360 writing out the state file
28362 2013-05-17 Mike Stump <mikestump@comcast.net>
28364 PR rtl-optimization/57304
28365 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
28366 accessing DF_REF_REAL_LOC.
28368 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28370 PR rtl-optimization/57281
28371 PR rtl-optimization/57300
28372 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
28373 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
28374 what the other splitter did if the registers are dead.
28376 2013-05-17 Richard Biener <rguenther@suse.de>
28378 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
28381 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28383 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
28386 2013-05-17 Marek Polacek <polacek@redhat.com>
28388 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
28389 length when doing non-zero store of storing '\0' to '\0'.
28391 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28393 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
28394 vect_external_def oprnd1 with loop_vinfo, try to emit
28395 optional cast, negation and and stmts on the loop preheader
28396 edge instead of into the pattern def seq.
28398 PR tree-optimization/57051
28399 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
28400 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
28402 2013-05-16 Nick Clifton <nickc@redhat.com>
28404 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
28405 (rl78_is_naked_func): New function.
28406 (rl78_expand_prologue): Skip prologue generation for naked functions.
28407 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
28408 * doc/extend.texi (naked): Add RL78 to the list of processors
28409 that supports this attribute.
28411 2013-05-16 Jeff Law <law@redhat.com>
28413 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
28415 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28417 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
28418 cache parameters using detect_caches_amd also for CYRIX,
28419 NSC and TM2 signatures.
28421 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28422 Dzianis Kahanovich <mahatma@eu.by>
28426 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28427 VIA/Centaur processors and determine their cache parameters
28428 using detect_caches_amd.
28430 2013-05-16 Teresa Johnson <tejohnson@google.com>
28432 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
28433 (rtl_verify_edges): New function.
28434 (rtl_verify_bb_insns): Ditto.
28435 (rtl_verify_bb_pointers): Ditto.
28436 (rtl_verify_bb_insn_chain): Ditto.
28437 (rtl_verify_fallthru): Ditto.
28438 (rtl_verify_bb_layout): Ditto.
28439 (rtl_verify_flow_info_1): Outline checks into new functions.
28440 (rtl_verify_flow_info): Ditto.
28442 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
28444 * cfghooks.c (copy_bbs): Add update_dominance argument.
28445 * cfghooks.h (copy_bbs): Update prototype.
28446 * tree-cfg.c (gimple_duplicate_sese_region):
28447 Add update_dominance argument.
28448 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
28449 * tree-ssa-loop-ch.c (copy_loop_headers): Update
28450 gimple_duplicate_sese_region call.
28451 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
28452 Update copy_bbs call.
28453 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
28454 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
28456 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28458 * tree-vectorizer.h (NUM_PATTERNS): Increment.
28459 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
28460 vect_recog_rotate_pattern.
28461 (vect_recog_rotate_pattern): New function.
28463 2013-05-16 Jason Merrill <jason@redhat.com>
28465 * Makefile.in (LLINKER): New variable.
28466 (mostlyclean): Remove link mutex.
28467 * configure.ac: Handle --enable-link-mutex.
28468 * lock-and-run.sh: New script.
28470 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28473 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
28476 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28478 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
28480 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
28482 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
28483 * config/arm/arm.c (next_consecutive_mem): New function.
28484 (gen_movmem_ldrd_strd): Likewise.
28485 * config/arm/arm.md (movmemqi): Update condition and code.
28486 (unaligned_loaddi, unaligned_storedi): New patterns.
28488 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28490 * config.gcc: Obsolete *-*-solaris2.9*.
28491 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28493 2013-05-16 Richard Biener <rguenther@suse.de>
28495 * passes.c (init_optimization_passes): Move pass_parallelize_loops
28496 earlier, after GRAPHITE transforms and IV canonicalization.
28498 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28500 * omp-low.c (extract_omp_for_data): For collapsed loops,
28501 if at least one of the loops is known at compile time to
28502 iterate zero times, set count to 0.
28503 (expand_omp_regimplify_p): New function.
28504 (expand_omp_for_generic): For collapsed loops, if at least
28505 one of the loops isn't known to iterate at least once,
28506 add runtime check with setting count to 0.
28507 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28508 For unsigned types if it isn't known at compile time that
28509 the loop will iterate at least once, add runtime check to bypass
28510 the whole loop if initial condition isn't true.
28512 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
28514 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
28516 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
28518 PR middle-end/57286
28519 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
28520 transformations to avoid an infinite loop.
28522 2013-05-16 Marek Polacek <polacek@redhat.com>
28524 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
28526 2013-05-15 Leif Ekblad <leif@rdos.net>
28528 * config/i386/i386.c (ix86_decompose_address): Use
28529 DEFAULT_TLS_SEG_REG to access TLS segment register.
28530 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
28531 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
28532 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
28534 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
28537 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
28538 sibling calls to functions that would normally be lazily bound,
28539 unless $gp is call-clobbered.
28541 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
28543 * config/i386/i386.c (ix86_option_override_internal): Update
28544 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
28545 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
28546 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
28547 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
28549 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
28551 2013-05-15 Andreas Schwab <schwab@suse.de>
28553 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
28554 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
28557 2013-05-15 Teresa Johnson <tejohnson@google.com>
28559 * loop-unroll.c (report_unroll_peel): Check decision before
28560 emitting unroll/peel message.
28562 2013-05-15 Teresa Johnson <tejohnson@google.com>
28564 * function.h (has_bb_partition): New rtl_data flag.
28565 (bb_reorder_complete): Ditto.
28566 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
28567 instead of flag_reorder_blocks_and_partition.
28568 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
28569 with some enhancements.
28570 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
28571 * bb-reorder.c (connect_traces): Check for has_bb_partition
28572 instead of flag_reorder_blocks_and_partition.
28573 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
28574 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
28575 verify_hot_cold_block_grouping.
28576 (partition_hot_cold_basic_blocks): Set has_bb_partition.
28578 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28581 * config/arm/predicates.md (call_insn_operand): New predicate.
28582 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
28583 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
28584 if insn is not a tail call.
28585 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
28587 * config/arm/arm.h (enum reg_class): New caller save register class.
28588 (REG_CLASS_NAMES): Likewise.
28589 (REG_CLASS_CONTENTS): Likewise.
28590 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
28593 2013-05-15 Richard Biener <rguenther@suse.de>
28595 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
28596 of MSG_OPTIMIZED_LOCATIONS.
28597 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
28598 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
28600 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
28601 of MSG_OPTIMIZED_LOCATIONS.
28602 (execute_vect_slp): Likewise.
28603 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
28604 (vect_create_cond_for_alias_checks): Likewise.
28605 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
28606 (vect_recog_widen_mult_pattern): Likewise.
28607 (vect_recog_widen_sum_pattern): Likewise.
28608 (vect_recog_over_widening_pattern): Likewise.
28609 (vect_recog_widen_shift_pattern): Likewise.
28610 (vect_recog_vector_vector_shift_pattern): Likewise.
28611 (vect_recog_divmod_pattern): Likewise.
28612 (vect_recog_mixed_size_cond_pattern): Likewise.
28613 (vect_recog_bool_pattern): Likewise.
28614 (vect_pattern_recog_1): Likewise.
28616 2013-05-15 Martin Jambor <mjambor@suse.cz>
28618 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
28619 non-functions to builtin_unreachable.
28620 * ipa-inline-transform.c (inline_call): Do not assert estimates were
28621 correct when new direct edges were discovered.
28623 2013-05-15 Martin Jambor <mjambor@suse.cz>
28625 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
28626 header, print symbol order instead of node uid, print more information
28627 about indirect edge targets.
28628 (ipa_make_edge_direct_to_target): Print symbol order instead of node
28630 (ipa_make_edge_direct_to_target): Likewise.
28631 (remove_described_reference): Likewise.
28632 (propagate_controlled_uses): Likewise.
28633 (ipa_print_node_params): Also print symbol order.
28634 (ipcp_transform_function): Print symbol order instead of node uids.
28635 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
28636 (cgraph_get_create_real_symbol_node): Likewise.
28637 * ipa-cp.c (print_lattice): Likewise.
28638 (print_all_lattices): Likewise.
28639 (determine_versionability): Likewise.
28640 (initialize_node_lattices): Likewise.
28641 (estimate_local_effects): Likewise.
28642 (update_profiling_info): Likewise.
28643 (create_specialized_node): Likewise.
28644 (perhaps_add_new_callers): Likewise.
28645 (decide_about_value): Likewise.
28646 (decide_whether_version_node): Likewise.
28647 (identify_dead_nodes): Likewise.
28648 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
28649 (dump_inline_summary): Likewise.
28650 (estimate_node_size_and_time): Likewise.
28651 (inline_analyze_function): Likewise.
28652 * ipa-inline.c (report_inline_failed_reason): Likewise.
28653 (want_early_inline_function_p): Likewise.
28654 (edge_badness): Likewise.
28655 (update_edge_key): Likewise.
28656 (inline_small_functions): Likewise. Add dumping of order to two other
28658 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
28659 instead of node uids.
28660 (propagate_pure_const): Likewise.
28661 (propagate_pure_const): Likewise.
28662 * ipa-utils.c (dump_cgraph_node_set): Likewise.
28663 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
28664 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
28666 * tree-pretty-print.c (dump_function_header): Likewise.
28667 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
28668 Print symbol order instead of node uids.
28670 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28672 * config/s390/s390.c (s390_register_move_cost): Don't impose the
28673 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
28675 2013-05-15 Richard Biener <rguenther@suse.de>
28677 PR tree-optimization/57275
28678 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
28679 return value for fail to do runtime alias checks for gather loads.
28681 2013-05-15 Jan Hubicka <jh@suse.cz>
28685 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
28686 weakrefs are not external.
28687 (lto_symtab_merge_decls): Fix thinko when dealing with
28688 non-lto_symtab decls.
28689 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
28690 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
28691 * varpool.c (dump_varpool_node): Dump more flags.
28693 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28695 * config/i386/i386.c (processor_alias_table): Add instruction
28696 FSGSBASE for AMD bdver3 architecture.
28698 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28700 * tree.c (warn_deprecated_use): Print file:line using locus color.
28701 * diagnostic.c (diagnostic_report_current_module): Print file:line
28702 and file:line:column using locus color.
28704 2013-05-14 Mike Stump <mikestump@comcast.net>
28706 * gdbinit.in: Add __null.
28708 2013-05-14 Mike Stump <mikestump@comcast.net>
28710 * recog.h: Rename struct recog_data to Recog_data.
28711 * recog.c: Likewise.
28712 * reload.c (can_reload_into): Likewise.
28713 * config/picochip/picochip.c: Likewise.
28715 2013-05-14 Mike Stump <mikestump@comcast.net>
28717 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
28719 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
28721 * resource.h (struct resources): Remove unch_memory member.
28722 (CLEAR_RESOURCE): Don't clear unch_memory.
28723 * resource.c (mark_referenced_resources): Don't set it.
28724 (mark_set_resources): Likewise.
28725 (mark_target_live_regs): Don't clear it.
28726 (init_resource_info): Likewise.
28727 * reorg.c (resource_conflicts_p): Don't compare it.
28728 (redundant_insn): Don't set it.
28730 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
28732 * emit-rtl.c (next_label): Remove unused function.
28733 (skip_consecutive_labels, link_cc0_insns): Move to ...
28734 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
28735 only place where these functions are used, and make them static.
28737 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28739 * fold-const.c (fold_negate_expr): Handle vectors.
28740 (fold_truth_not_expr): Make it static.
28741 (fold_invert_truthvalue): New static function.
28742 (invert_truthvalue_loc): Handle vectors. Do not call
28743 fold_truth_not_expr directly.
28744 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
28745 <TRUTH_NOT_EXPR>: Do not cast to boolean.
28746 (fold_comparison): Handle vector constants.
28747 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
28748 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
28749 * tree.h (fold_truth_not_expr): Remove declaration.
28751 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
28753 * config/aarch64/aarch64-simd.md
28754 (aarch64_vcond_internal<mode>): Rename to...
28755 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
28756 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
28757 float modes. Clarify all iterator modes.
28758 (vcond<mode><mode>): Use new name for vcond expanders.
28759 (vcond<v_cmp_result><mode>): Likewise.
28760 (vcondu<mode><mode>: Likewise.
28761 * config/aarch64/iterators.md (VDQF_COND): New.
28763 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28766 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
28767 variable for the shift amount. Check that we shift by non-negative
28770 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
28773 * config/arm/arm.h (EPILOGUE_USES): Only return true
28774 for LR_REGNUM after epilogue_completed.
28776 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
28778 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
28779 is error_mark_node.
28781 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28784 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
28785 and Solaris 11+/x86 with gld.
28786 * configure: Regenerate.
28788 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28790 * expmed.c (expand_shift_1): Canonicalize rotates by
28791 constant bitsize / 2 to bitsize - 1.
28792 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
28793 case ROTATERT>: Likewise.
28796 2013-05-10 Jakub Jelinek <jakub@redhat.com>
28798 * config/i386/i386.md (rotateinv): New code attr.
28799 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
28800 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
28801 roll $31, %eax, etc.
28803 2013-05-14 Richard Biener <rguenther@suse.de>
28805 PR middle-end/57235
28806 * tree-eh.c (sink_clobbers): Give up for successors with
28807 multiple predecessors and no virtual uses.
28809 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
28811 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
28812 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
28814 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28816 PR middle-end/57251
28817 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
28818 the case when both op0 and op1 have VOIDmode.
28820 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28822 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
28823 in multiply-accumulate mode.
28825 2013-05-13 Guozhi Wei <carrot@google.com>
28827 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
28829 2013-05-13 Kai Tietz <ktietz@redhat.com>
28832 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
28833 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
28834 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
28835 * config/i386/i386.c (ix86_option_override_internal): Likewise.
28836 (ix86_expand_prologue): Likewise.
28837 (ix86_expand_split_stack_prologue): Likewise.
28838 (legitimate_pic_address_disp_p): Likewise.
28839 (legitimize_pic_address): Likewise.
28840 (legitimize_tls_address): Likewise.
28841 (legitimize_pe_coff_symbol): Likewise.
28842 (output_pic_addr_const): Likewise.
28843 (construct_plt_address): Likewise.
28844 (ix86_expand_call): Likewise.
28845 (x86_output_mi_thunk): Likewise.
28846 (x86_function_profiler): Likewise.
28848 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
28850 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
28851 similar switch cases.
28852 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
28853 (aarch64_simd_mov_to_<mode>low): Delete.
28854 (aarch64_simd_mov_to_<mode>high): Delete.
28855 (move_lo_quad_<mode>): Add w<-r alternative.
28856 (aarch64_simd_move_hi_quad_<mode>): Likewise.
28857 (aarch64_simd_mov_from_*): Update type attribute.
28858 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
28861 2013-05-13 Jan Hubicka <jh@suse.cz>
28863 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
28864 * config/i386/i386.c (ix86_compute_frame_layout,
28865 ix86_expand_epilogue, emit_i387_cw_initialization,
28866 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
28867 ix86_local_alignment): Fix use of size/speed predicates.
28869 2013-05-13 Jakub Jelinek <jakub@redhat.com>
28871 PR tree-optimization/45216
28872 PR tree-optimization/57157
28873 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
28874 the (-Y) & (B - 1) variant if OP is |.
28875 * expmed.c (expand_shift_1): For rotations by const0_rtx just
28876 return shifted. Use (-op1) & (prec - 1) as other_amount
28877 instead of prec - op1.
28879 2013-05-13 Martin Jambor <mjambor@suse.cz>
28881 PR middle-end/42371
28882 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
28883 (ipa_constant_data): New type.
28884 (ipa_jump_func): Use ipa_constant_data to hold information about
28885 constant jump functions.
28886 (ipa_get_jf_constant): Adjust to jump function type changes.
28887 (ipa_get_jf_constant_rdesc): New function.
28888 (ipa_param_descriptor): New field controlled_uses.
28889 (ipa_get_controlled_uses): New function.
28890 (ipa_set_controlled_uses): Likewise.
28891 * ipa-ref.h (ipa_find_reference): Declare.
28892 * ipa-prop.c (ipa_cst_ref_desc): New type.
28893 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
28895 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
28896 New parameter cs. Adjust all callers.
28897 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
28898 (remove_described_reference): New function.
28899 (jfunc_rdesc_usable): Likewise.
28900 (try_make_edge_direct_simple_call): Decrement controlled use count,
28901 attempt to remove reference if it hits zero.
28902 (combine_controlled_uses_counters): New function.
28903 (propagate_controlled_uses): Likewise.
28904 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
28905 (ipa_edge_duplication_hook): Duplicate reference descriptions.
28906 (ipa_print_node_params): Print described use counter.
28907 (ipa_write_jump_function): Adjust to jump function type changes.
28908 (ipa_read_jump_function): New parameter CS, pass it to
28909 ipa_set_jf_constant. Adjust caller.
28910 (ipa_write_node_info): Stream controlled use count
28911 (ipa_read_node_info): Likewise.
28912 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
28914 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
28915 count. Remove cloning-added reference if it reaches zero.
28916 * ipa-ref.c (ipa_find_reference): New function.
28918 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28920 * config/i386/i386.c (processor_target_table): Modified default
28921 alignment values for AMD BD and BT architectures.
28923 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
28925 * tree-vect-generic.c (uniform_vector_p): Move ...
28926 * tree.c (uniform_vector_p): ... here.
28927 * tree.h (uniform_vector_p): Declare it.
28928 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
28931 2013-05-13 Jakub Jelinek <jakub@redhat.com>
28933 PR tree-optimization/57230
28934 * tree-ssa-strlen.c (handle_char_store): Record length for
28935 array store from STRING_CST.
28937 PR tree-optimization/57230
28938 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
28941 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
28943 * config/epiphany/epiphany.c (epiphany_init): Check size of
28944 NUM_MODES_FOR_MODE_SWITCHING.
28945 (epiphany_expand_prologue):
28946 Remove CONFIG_REGNUM initial value handling code.
28947 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
28948 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
28949 (emit_set_fp_mode, epiphany_mode_after): Likewise.
28950 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
28951 Don't return 1 for FP_MODE_NONE.
28952 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
28953 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
28954 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
28955 * config/epiphany/epiphany.md (save_config): New pattern.
28957 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
28959 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
28961 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
28963 * config/i386/i386.md (memory): Handle sseishft1.
28964 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
28965 (*vec_extractv2di_1): Ditto.
28967 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
28969 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
28972 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
28974 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
28975 Add mthumb/march=armv7-a multilib.
28976 Add mthumb/march=armv7-r multilib.
28977 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
28979 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
28981 * config/v850/t-rtems: Add more multilibs.
28983 2013-05-10 Richard Biener <rguenther@suse.de>
28985 PR tree-optimization/57214
28986 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
28987 not propagate from SSA names that occur in abnormal PHI nodes.
28989 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
28991 * stor-layout.c (element_precision): New function.
28992 * machmode.h (element_precision): Declare it.
28993 * tree.c (build_minus_one_cst): New function.
28994 (element_precision): Likewise.
28995 * tree.h (build_minus_one_cst): Declare new function.
28996 (element_precision): Likewise.
28997 * fold-const.c (operand_equal_p): Use element_precision.
28998 (fold_binary_loc): Handle vector types.
28999 * convert.c (convert_to_integer): Use element_precision.
29000 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29003 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29005 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29006 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29007 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29008 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29009 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29010 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29011 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29012 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29013 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29014 (Uuw8): New constraints.
29015 (Usb4): Move into alphabetical order.
29016 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29017 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29018 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29019 previously unnamed patterns.
29020 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29021 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
29022 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
29023 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
29024 of set_attr_alternative/if_then_else. Use extended_mips16 instead
29025 of specific lengths.
29027 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29029 * config/i386/i386.md (rotateinv): New code attr.
29030 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29031 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29032 roll $31, %eax, etc.
29034 PR tree-optimization/45216
29035 PR tree-optimization/57157
29036 * tree-ssa-forwprop.c (simplify_rotate): New function.
29037 (ssa_forward_propagate_and_combine): Call it.
29039 2013-05-10 Richard Biener <rguenther@suse.de>
29041 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
29042 disable peeling when we version for aliasing.
29043 (vector_alignment_reachable_p): Honor explicit user alignment.
29044 (vect_supportable_dr_alignment): Likewise.
29045 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
29046 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
29047 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
29048 then peeling to arrange for the cost-model check to come first.
29050 2013-05-10 Alan Modra <amodra@gmail.com>
29052 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
29053 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
29054 * configure: Regenerate.
29056 2013-05-10 Alan Modra <amodra@gmail.com>
29059 * varasm.c (default_elf_select_section): Move !DECL_P check..
29060 (get_named_section): ..to here before calling get_section_name.
29062 (default_section_type_flags): Add DECL_P check.
29063 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
29064 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
29066 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
29068 * config/epiphany/epiphany.c (epiphany_expand_prologue):
29069 When using gen_stack_adjust_str with a register offset, add a
29070 REG_FRAME_RELATED_EXPR note.
29072 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
29074 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
29075 (*vec_extractv4si_zext_mem): Ditto.
29076 (*vec_extractv2di): Add 0->x and x->x alternatives.
29077 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
29078 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
29080 2013-05-09 Jason Merrill <jason@redhat.com>
29082 N3639 C++1y VLA support
29083 * gimplify.c (gimplify_vla_decl): Don't touch an existing
29086 * tree.c (build_constructor_va): New.
29087 * tree.h: Declare it.
29089 2013-05-09 Martin Jambor <mjambor@suse.cz>
29092 * gimple-fold.c (canonicalize_constructor_val): Call
29093 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
29095 2013-05-09 Jan Hubicka <jh@suse.cz>
29096 Richard Biener <rguenther@suse.de>
29099 * symtab.c (symtab_make_decl_local): Do not add private names.
29101 2013-05-09 Jan Hubicka <jh@suse.cz>
29104 * symtab.c (insert_to_assembler_name_hash): Handle clones.
29105 (unlink_from_assembler_name_hash): Likewise.
29106 (symtab_prevail_in_asm_name_hash, symtab_register_node,
29107 symtab_unregister_node, symtab_initialize_asm_name_hash,
29108 change_decl_assembler_name): Update.
29110 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
29112 * config/aarch64/aarch64.md: New movtf split.
29113 (*movtf_aarch64): Update.
29114 (aarch64_movdi_tilow): Handle TF modes and rename to
29115 aarch64_movdi_<mode>low.
29116 (aarch64_movdi_tihigh): Handle TF modes and rename to
29117 aarch64_movdi_<mode>high
29118 (aarch64_movtihigh_di): Handle TF modes and rename to
29119 aarch64_mov<mode>high_di
29120 (aarch64_movtilow_di): Handle TF modes and rename to
29121 aarch64_mov<mode>low_di
29122 (aarch64_movtilow_tilow): Remove spurious whitespace.
29123 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
29125 (aarch64_print_operand): Update.
29127 2013-05-09 Alan Modra <amodra@gmail.com>
29129 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
29131 * configure: Regenerate.
29133 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29135 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
29136 splitter preparation statements.
29137 * config/i386/sse.md (*vec_extract* splitters): Ditto.
29138 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
29141 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29143 * gimple-ssa-strength-reduction.c (count_candidates): Change
29144 return value to int.
29145 (analyze_candidates_and_replace): Change type of length to int.
29147 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
29149 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
29150 (*vec_extract<mode>): Use VI12_128 mode iterator.
29151 (*vec_extract<mode>_mem): Ditto.
29152 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
29155 2013-05-08 Diego Novillo <dnovillo@google.com>
29160 2012-08-17 Diego Novillo <dnovillo@google.com>
29163 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
29164 * config.in: Regenerate.
29165 * configure: Regenerate.
29166 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
29168 2013-05-08 Jan Hubicka <jh@suse.cz>
29171 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
29172 * cgraph.h (symtab_node_base): Add unique_name.
29173 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29174 input_overwrite_node, input_varpool_node): Stream unique_name.
29175 * cgraphclones.c (cgraph_create_virtual_clone,
29176 cgraph_function_versioning): Set unique_name.
29177 * ipa.c (function_and_variable_visibility): Set unique_name.
29179 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29181 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
29182 (alloc_cand_and_find_basis): Restrict conditional candidate
29183 processing to CAND_MULTs.
29185 2013-05-08 Jan Hubicka <jh@suse.cz>
29188 lto-symtab.c (lto_symtab_symbol_p): New function.
29189 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
29190 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
29191 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
29192 Skip static symbols.
29194 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
29196 PR tree-optimization/57200
29197 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
29198 Only call inform if the preceding warning_at returns true.
29200 2013-05-07 Han Shen <shenhan@google.com>
29202 * cfgexpand.c (record_or_union_type_has_array_p): New function.
29203 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
29204 * common.opt (fstack-protector-strong): New option.
29205 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
29206 * doc/invoke.texi (Optimization Options): Document
29207 "-fstack-protector-strong".
29208 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
29210 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29212 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29214 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29216 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29217 it is not lhs of the insn.
29218 (setup_reg_equiv): Remove insn having equiv memory which it is not
29220 * lra-constraints.c (process_address): Try to improve generation
29221 code for address base + disp.
29222 (lra_constraints): Make correct the code for checking insn setting
29223 up backward equivalence. Remove insn only if it is in the init
29225 * lra-eliminations.c (update_reg_eliminate): Change return value.
29226 (lra_eliminate): Use the result.
29228 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29230 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29231 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29232 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29233 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29234 register target operands.
29235 (*vec_extractv8hi_sse2): New pattern.
29236 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29237 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29238 (*vec_extract<mode>_mem): New insn and split pattern.
29240 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29242 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29243 (TARGET_ASAN_SHADOW_OFFSET): Define.
29244 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29245 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29247 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29249 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29250 (incr_vec_index): Return -1 if increment not found.
29251 (create_add_on_incoming_edge): Assert if increment not found.
29252 (record_increment): Limit number of increments recorded.
29253 (all_phi_incrs_profitable): Return false if an increment not found.
29254 (replace_profitable_candidates): Don't process increments that were
29256 (analyze_candidates_and_replace): Limit size of incr_vec.
29258 2013-05-07 Richard Biener <rguenther@suse.de>
29260 * calls.c (special_function_p): setjmp-like functions are leaf.
29261 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29262 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29264 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29266 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29267 (aarch64_simd_mov<mode>): New expander.
29268 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29269 (aarch64_simd_mov_to_<mode>high): Likewise.
29270 (aarch64_simd_mov_from_<mode>low): Likewise.
29271 (aarch64_simd_mov_from_<mode>high): Likewise.
29272 (aarch64_dup_lane<mode>): Update.
29273 (aarch64_dup_lanedi): New instruction pattern.
29274 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
29275 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
29277 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29279 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
29280 (replace_mult_candidate): Remove unnecessary argument; remove
29281 unnecessary parameter from call to introduce_cast_before_cand.
29282 (replace_unconditional_candidate): Remove unnecessary parameter
29283 from call to replace_mult_candidate.
29284 (replace_conditional_candidate): Likewise.
29285 (insert_initializers): Use make_temp_ssa_name.
29286 (introduce_cast_before_cand): Remove unnecessary argument; use
29287 make_temp_ssa_name.
29288 (replace_one_candidate): Remove unnecessary argument; remove
29289 unnecessary parameter from calls to introduce_cast_before_cand.
29290 (replace_profitable_candidates): Remove unnecessary parameters
29291 from calls to replace_one_candidate.
29293 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29295 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
29296 phi def as possibly hiding a basis for a CAND_ADD whose operands
29297 have been commuted in the analysis.
29298 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
29300 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29302 * config/aarch64/aarch64.md
29303 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
29304 shift value between 0-4.
29306 2013-05-07 Richard Biener <rguenther@suse.de>
29308 * double-int.h (rshift): New overload.
29309 * double-int.c (rshift): New function.
29310 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
29311 (create_reference_ops_from_ref): Remove.
29312 (vn_reference_insert): Use shared ops for constructing the
29313 reference and copy it.
29315 2013-05-07 Richard Biener <rguenther@suse.de>
29317 PR middle-end/57190
29318 * tree-eh.c (sink_clobbers): Properly propagate
29319 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
29321 2013-05-07 Jakub Jelinek <jakub@redhat.com>
29323 PR tree-optimization/57149
29324 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
29325 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
29326 collect_phi_def_edges, execute_late_warn_uninitialized): Use
29327 uninit_undefined_value_p instead of ssa_undefined_value_p.
29330 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
29331 for modifier == EXPAND_INITIALIZER.
29333 2013-05-07 Anton Blanchard <anton@samba.org>
29335 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
29336 for powerpc64 little endian.
29337 * configure: Regenerate.
29339 2013-05-06 Graham Stott <grahams@btinternet.com>
29341 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
29342 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
29343 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
29344 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
29346 2013-05-06 Graham Stott <grahams@btinternet.com>
29348 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
29349 codes which allow non-lvalues.
29351 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
29353 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
29354 components are all 1s.
29355 (integer_minus_onep): New function.
29356 * tree.h (integer_minus_onep): Declare it.
29357 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
29358 integer_minus_onep instead of integer_all_onesp.
29360 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29363 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
29364 variations of these patterns.
29366 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29368 * config/i386/i386.md (isa): Add x64_sse4 member.
29369 (enabled): Handle x64_sse4.
29370 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
29371 instruction for 64bit SSE4_1 targets. Update insn attributes.
29372 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
29373 instruction for SSE4_1 targets. Update insn attributes.
29374 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29375 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
29376 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
29378 (*vec_extractv4si): Rename from *sse4_1_pextrd.
29379 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
29380 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
29382 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29385 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
29387 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
29389 * final.c (do_assembler_dialects): Don't handle curly braces and
29390 vertical bar escaped by % as dialect delimiters.
29391 (output_asm_insn): Print curly braces and vertical bar if escaped
29392 by % and ASSEMBLER_DIALECT defined.
29393 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
29394 * doc/tm.texi: Regenerated.
29396 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29398 * config/mips/mips.c: Include tree-pass.h.
29399 (mips_reorg): Split in pre- and post-dbr_schedule parts.
29400 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
29401 (pass_mips_machine_reorg2): New machine specific pass.
29402 (insert_pass_mips_machine_reorg2): New pass plugin definition.
29403 (mips_option_override): Register the new pass.
29404 * rtl.h (cleanup_barriers): Remove prototype.
29405 (dbr_schedule): Likewise.
29406 * jump.c (cleanup_barriers): Make static.
29407 * reorg.c (dbr_schedule): Likewise.
29409 2013-05-06 Richard Biener <rguenther@suse.de>
29411 PR tree-optimization/57185
29412 * tree-parloops.c (add_field_for_reduction): Handle anonymous
29413 SSA names properly.
29415 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29418 * config/i386/i386.c (add_parameter_dependencies): Add dependence
29419 between "first_arg" and "insn", not "last" and "insn".
29421 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29423 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
29424 (find_candidates_in_block): Re-enable slsr_process_phi.
29425 (create_phi_basis): Fix double counting of candidate adjustment.
29427 2013-05-06 Richard Biener <rguenther@suse.de>
29429 PR middle-end/57147
29430 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
29431 the edge is also fallthru, preserve it and just clear the
29433 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
29434 also complex, preserve that and just clear the fallthru flag.
29435 * tree-inline.c (update_ssa_across_abnormal_edges): Also
29436 update virtual operands.
29438 2013-05-06 Alan Modra <amodra@gmail.com>
29440 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
29441 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
29442 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29443 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
29444 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29445 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
29447 2013-05-06 Alan Modra <amodra@gmail.com>
29449 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
29450 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
29451 (DEFAULT_ASM_ENDIAN): Define.
29452 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29453 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
29454 Update -K PIC clause from sysv4.h.
29455 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
29456 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
29458 2013-05-06 Alan Modra <amodra@gmail.com>
29460 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
29461 twice for little-endian.
29462 (ashrdi3_no_power, ashrdi3): Support little-endian.
29464 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29467 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
29468 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
29470 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
29471 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
29472 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
29475 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
29476 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29478 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
29479 * config/pa/pa.opt: Make mbig-switch a no-op.
29480 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
29481 (CASE_VECTOR_MODE): Always return SImode.
29482 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
29483 for the !TARGET_BIG_SWITCH case.
29484 * config/pa/pa-linux.h: Likewise.
29485 * config/pa/pa-openbsd.h: Likewise.
29486 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
29487 * config/pa/pa.md (short_jump): Remove define_insn.
29488 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
29489 (casesi0): Remove define_insn.
29490 (type): Remove btable_branch.
29491 (pa_combine_type): Likewise.
29492 (in_nullified_branch_delay): Likewise.
29493 (in_call_delay): Likewise.
29494 (define_delay): Likewise.
29495 (define_insn_reservation "Z3"): Likewise.
29496 (define_insn_reservation "Z4"): Likewise.
29497 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
29498 (pa_adjust_insn_length): Remove adjustment for btable branches.
29499 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
29502 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
29504 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29505 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
29506 Add m->r,x alternatives.
29507 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
29508 splitters using SWI48x mode iterator.
29509 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
29510 TARGET_64BIT. Add m->x alternative.
29511 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
29512 Add o->x alternative. Enable for TARGET_SSE.
29513 (sse_storeq): Remove expander.
29514 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
29515 with memory input operand.
29516 (*vec_extractv2di_1 splitter): New.
29517 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
29518 * config/i386/i386.md (ssevecmodelower): New mode attribute.
29520 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29522 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
29523 (INT_LOWPART): Delete.
29524 (extract_MB): Adjust.
29525 (extract_ME): Adjust.
29526 (print_operand): Adjust.
29528 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29530 * config/rs6000/predicates.md (reg_or_add_cint_operand,
29531 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29532 (reg_or_logical_cint_operand, easy_fp_constant,
29533 logical_const_operand): Delete "CONST_DOUBLE" case.
29534 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
29535 "HOST_BITS_PER_WIDE_INT == 64" test.
29536 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
29537 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
29538 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
29539 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
29541 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
29542 CONST_DOUBLE DImode/VOIDmode case.
29543 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
29544 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29545 CONST_DOUBLE VOIDmode case.
29546 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29547 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
29548 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
29549 Delete CONST_DOUBLE case.
29550 (splitters for mov FMOVE64 const_double): Delete
29551 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29552 "HOST_BITS_PER_WIDE_INT >= 64" test.
29553 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
29555 (mov DI const_double): Delete.
29557 2013-05-04 Jakub Jelinek <jakub@redhat.com>
29559 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
29560 on op shows all bits zero in mode of a lowpart subreg, return zero.
29562 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29565 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
29566 to save TFmode registers and DImode to save TImode registers for
29567 caller save operations.
29568 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
29569 mark being partially clobbered since they only use the first
29572 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
29573 and TDmode only use the upper 64-bits of each VSX register.
29575 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29577 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
29578 (find_candidates_in_block): Disable slsr_process_phi.
29580 2013-05-03 Guozhi Wei <carrot@google.com>
29582 * coverage.c (coverage_obj_init): Move the construction of gcov
29584 (build_init_ctor): ... here.
29586 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29588 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
29589 (slsr_cand_d): Redefine def_phi.
29590 (stride_status, phi_adjust_status, count_phis_status): New enums.
29591 (find_phi_def): New.
29592 (find_basis_for_base_expr): New.
29593 (find_basis_for_candidate): Handle hidden bases.
29594 (alloc_cand_and_find_basis): Handle phi candidates.
29595 (slsr_process_phi): New.
29596 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
29597 (create_mul_imm_cand): Likewise.
29598 (create_add_ssa_cand): Exclude phi base candidates.
29599 (create_add_imm_cand): Likewise.
29600 (slsr_process_cast): Likewise.
29601 (slsr_process_copy): Likewise.
29602 (find_candidates_in_block): Handle phi candidates.
29603 (dump_candidate): Likewise.
29604 (unconditional_cands): Delete.
29605 (unconditional_cands_with_known_stride_p): Delete.
29606 (phi_dependent_cand_p): New.
29607 (cand_increment): Handle phi-dependent candidates.
29608 (replace_dependent): Delete.
29609 (replace_mult_candidate): New.
29610 (replace_unconditional_candidate): New.
29611 (incr_vec_index): Move to avoid forward reference.
29612 (create_add_on_incoming_edge): New.
29613 (create_phi_basis): New.
29614 (replace_dependents): Delete.
29615 (replace_conditional_candidate): New.
29616 (phi_add_costs): New.
29617 (replace_uncond_cands_and_profitable_phis): New.
29618 (record_increment): Handle phi adjustments.
29619 (record_phi_increments): New.
29620 (record_increments): Handle phi adjustments.
29621 (phi_incr_cost): New.
29622 (lowest_cost_path): Handle phis.
29623 (total_savings): Likewise.
29624 (analyze_increments): Likewise.
29625 (ncd_with_phi): New.
29626 (ncd_of_cand_and_phis): New.
29627 (nearest_common_dominator_for_cands): Handle phi increments.
29628 (all_phi_incrs_profitable): New.
29629 (replace_profitable_candidates): Handle phi-dependent candidates.
29630 (analyze_candidates_and_replace): Likewise.
29632 2013-05-03 Teresa Johnson <tejohnson@google.com>
29635 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
29636 do not exceed REG_BR_PROB_BASE.
29638 2013-05-03 Jeff Law <law@redhat.com>
29640 PR tree-optimization/57144
29641 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
29642 operand of the condition will bit into the new type when eliminating
29643 a cast feeding a condition.
29645 2013-05-03 Jakub Jelinek <jakub@redhat.com>
29647 PR rtl-optimization/57130
29648 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
29649 of COMPARE as in_code to the recursive call if needed.
29651 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
29653 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
29654 (enabled): Handle new members.
29655 * config/i386/sse.md (*vec_concatv2si): Merge from
29656 *vec_concatv2si_sse2 and vec_concatv2si_sse.
29657 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
29659 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
29661 PR tree-optimization/57027
29662 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
29663 for fnms opportunity, check we got the prerequisite kind
29664 of tree / gimple before using accessor functions.
29666 2013-05-03 Richard Biener <rguenther@suse.de>
29668 * double-int.h (lshift): New overload without precision
29669 and arith argument.
29670 (operator *=, operator +=, operator -=): Move ...
29671 * double-int.c (operator *=, operator +=, operator -=): ... here
29672 and implement more efficiently.
29673 (mul_double_with_sign): Remove.
29674 (lshift_double): Adjust to take unsinged shift argument, push
29675 dispatching code to callers.
29676 (mul_double_wide_with_sign): Add early out for callers that
29677 are not interested in high parts or overflow.
29678 (lshift): New function.
29679 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
29680 dispatch code here.
29681 (lrotate, rrotate): Use logical shifts.
29682 * expr.c (get_inner_reference): Use lshift.
29683 * fixed-value.c (do_fixed_divide): Likewise.
29684 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29685 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
29686 (indirect_refs_may_alias_p): Likewise.
29687 (stmt_kills_ref_p_1): Likewise.
29689 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29691 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
29693 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29695 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
29696 scalar form of FABD instruction.
29698 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
29700 * lra-constraints.c (process_alt_operands): Add checking alt
29701 number to choose the best alternative.
29703 2013-05-02 Richard Biener <rguenther@suse.de>
29705 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
29706 bitmap and its handling.
29707 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
29709 2013-05-02 Richard Biener <rguenther@suse.de>
29711 PR middle-end/57140
29712 * tree-inline.c (copy_loops): Properly handle removed loops.
29713 (copy_cfg_body): Mark destination loops for fixup if source
29714 loops needed fixup.
29716 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
29719 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
29720 generating simple_return for naked functions.
29722 2013-05-02 Martin Jambor <mjambor@suse.cz>
29724 PR middle-end/56988
29725 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
29726 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
29728 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
29729 ipa_agg_replacement_value structures.
29730 (known_aggs_to_agg_replacement_list): Likewise.
29731 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
29732 (read_agg_replacement_chain): Likewise.
29733 (ipcp_transform_function): Also check that by_ref flags match.
29735 2013-05-02 Richard Biener <rguenther@suse.de>
29737 * graphds.h (struct graph): Add obstack member.
29738 * graphds.c (new_graph): Initialize obstack and allocate
29740 (add_edge): Allocate edge from the obstack.
29741 (free_graph): Free the obstack instead of all edges and vertices.
29743 2013-05-02 Teresa Johnson <tejohnson@google.com>
29745 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
29747 * cfg.c (update_bb_profile_for_threading): Ditto.
29748 * tree-inline.c (copy_bb): Ditto.
29749 (copy_edges_for_bb): Ditto.
29750 (initialize_cfun): Ditto.
29751 (copy_cfg_body): Ditto.
29752 (expand_call_inline): Ditto.
29753 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
29754 (estimate_node_size_and_time): Ditto.
29755 (inline_merge_summary): Ditto.
29756 * cgraphclones.c (cgraph_clone_edge): Ditto.
29757 (cgraph_clone_node): Ditto.
29758 * sched-rgn.c (compute_dom_prob_ps): Ditto.
29759 (compute_trg_info): Ditto.
29761 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29763 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
29764 S reg when fp attribute set.
29765 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
29767 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29769 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
29771 (*and_one_cmplsi3_compare0_uxtw): Likewise.
29772 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
29773 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
29775 2013-05-02 Richard Biener <rguenther@suse.de>
29777 * tree-scalar-evolution.c (scev_info_hasher): Remove.
29778 (struct instantiate_cache_entry): New type.
29779 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
29780 (struct instantiate_cache_type): New type.
29781 (set_instantiated_value, get_instantiated_value): Remove.
29782 (get_instantiated_value_entry): New function.
29783 (instantiate_scev_name): Use the new cache and adjust.
29784 (instantiate_scev_poly): Adjust.
29785 (instantiate_scev_binary): Likewise.
29786 (instantiate_array_ref): Likewise.
29787 (instantiate_scev_convert): Likewise.
29788 (instantiate_scev_not): Likewise.
29789 (instantiate_scev_3): Likewise.
29790 (instantiate_scev_2): Likewise.
29791 (instantiate_scev_r): Likewise.
29792 (instantiate_scev): Likewise.
29793 (resolve_mixers): Likewise.
29795 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
29798 * lra-constraints.c (best_small_class_operands_num): Remove.
29799 (process_alt_operands): Remove small_class_operands_num. Take
29800 small classes operands into losers and only if the operand is not
29801 matched. Modify debugging output.
29802 (curr_insn_transform): Remove best_small_class_operands_num.
29805 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29807 * config/aarch64/aarch64-builtins.c
29808 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
29809 * config/aarch64/aarch64-simd-builtins.def
29810 (reduc_splus_): Add new modes.
29811 (reduc_uplus_): New.
29812 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
29813 (reduc_uplus_v4sf): Likewise.
29814 (reduc_splus_v4sf): Likewise.
29815 (aarch64_addv<mode>): Likewise.
29816 (reduc_uplus_<mode>): Likewise.
29817 (reduc_splus_<mode>): Likewise.
29818 (aarch64_addvv2di): Likewise.
29819 (reduc_uplus_v2di): Likewise.
29820 (reduc_splus_v2di): Likewise.
29821 (aarch64_addvv2si): Likewise.
29822 (reduc_uplus_v2si): Likewise.
29823 (reduc_splus_v2si): Likewise.
29824 (reduc_<sur>plus_<mode>): New.
29825 (reduc_<sur>plus_v2di): Likewise.
29826 (reduc_<sur>plus_v2si): Likewise.
29827 (reduc_<sur>plus_v4sf): Likewise.
29828 (aarch64_addpv4sf): Likewise.
29829 * config/aarch64/arm_neon.h
29830 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
29831 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
29832 add UNSPEC_SADDV, UNSPEC_UADDV.
29834 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
29836 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29838 * config/aarch64/arm_neon.h
29839 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
29841 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29843 * config/aarch64/aarch64-builtins
29844 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
29846 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29848 * config/aarch64/aarch64-simd-builtins.def
29849 (reduc_smax_): New.
29850 (reduc_smin_): Likewise.
29851 (reduc_umax_): Likewise.
29852 (reduc_umin_): Likewise.
29853 (reduc_smax_nan_): Likewise.
29854 (reduc_smin_nan_): Likewise.
29857 (smax): Update for V2SF, V4SF and V2DF modes.
29860 (smin_nan): Likewise.
29861 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
29862 (<su><maxmin><mode>3): ...This, refactor.
29863 (s<maxmin><mode>3): New.
29864 (<maxmin_uns><mode>3): Likewise.
29865 (reduc_<maxmin_uns>_<mode>): Refactor.
29866 (reduc_<maxmin_uns>_v4sf): Likewise.
29867 (reduc_<maxmin_uns>_v2si): Likewise.
29868 (aarch64_<fmaxmin><mode>: Remove.
29869 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
29871 (vmin<q>_f<32,64>): Likewise.
29872 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
29874 (su): Add mappings for smax, smin, umax, umin.
29876 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
29877 (FMAXMIN): Rename as...
29878 (FMAXMIN_UNS): ...This.
29880 (fmaxminv): Likewise.
29881 (fmaxmin): Likewise.
29883 (maxmin_uns_op): Likewise.
29885 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29887 * config/aarch64/arm_neon.h
29888 (vac<ge, gt><sd>_f<32, 64>): Rename to...
29889 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
29890 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
29892 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29894 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
29895 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
29897 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29899 * config/aarch64/aarch64-simd.md
29900 (vcond<mode>_internal): Handle special cases for constant masks.
29901 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
29902 (vcondu<mode><mode>): Likewise.
29903 (vcond<v_cmp_result><mode>): New.
29905 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29907 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
29908 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
29909 * config/aarch64/aarch64-simd-builtins.def
29910 (cmeq): Update to BUILTIN_VALLDI.
29915 * config/aarch64/arm_neon.h
29916 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
29917 to builtins or C as appropriate.
29919 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29921 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
29923 (cmhi): Rename to...
29925 * config/aarch64/aarch64-simd.md
29926 (simd_mode): Add SF.
29927 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
29928 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
29929 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
29930 (cstore<mode>_neg): ...This.
29931 * config/aarch64/iterators.md
29933 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
29934 (COMPARISONS): New.
29935 (UCOMPARISONS): Likewise.
29936 (optab): Add missing comparisons.
29942 (VCMP_S): Likewise.
29943 (VCMP_U): Likewise.
29944 (V_cmp_result): Add DF, SF modes.
29945 (v_cmp_result): Likewise.
29947 (vmtype): Likewise.
29948 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
29950 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
29952 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
29953 define_insn to define_insn_and_split.
29954 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
29955 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
29956 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
29957 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
29958 (thumb2_negscc): Likewise.
29960 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
29962 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
29964 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
29966 * config/arm/thumb2.md: Remove trailing whitespaces.
29968 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29970 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
29971 Use gen_int_mode rather than GEN_INT.
29973 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
29975 * value-prof.c (stream_in_histogram_value): Remove the strayed
29978 2013-04-30 Richard Biener <rguenther@suse.de>
29980 PR middle-end/57122
29981 * cfghooks.c (split_edge): Properly check for the loop latch edge.
29983 2013-04-30 Richard Biener <rguenther@suse.de>
29985 PR middle-end/57107
29986 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
29988 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
29990 PR rtl-optimization/56957
29991 PR rtl-optimization/57105
29992 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
29993 variable. Use just INSN_UID for determining whether an insn
29994 should be only disconnected from the insn stream.
29995 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
29997 2013-04-30 Jakub Jelinek <jakub@redhat.com>
29999 PR tree-optimization/57104
30000 * tsan.c (instrument_expr): Don't instrument accesses to
30001 DECL_HARD_REGISTER VAR_DECLs.
30003 2013-04-30 Richard Biener <rguenther@suse.de>
30005 * function.h (loops_for_fn): New inline function.
30006 (set_loops_for_fn): Likewise.
30007 * cfgloop.h (place_new_loop): Add struct function parameter.
30008 (get_loop): Likewise.
30009 (get_loops): Likewise.
30010 (number_of_loops): Likewise.
30011 (fel_next): Adjust.
30012 (fel_init): Likewise.
30013 * cfg.c (get_loop_copy): Adjust.
30014 * cfgloop.c (flow_loops_dump): Likewise.
30015 (record_loop_exits): Likewise.
30016 (verify_loop_structure): Likewise.
30017 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30018 (estimate_reg_pressure_cost): Likewise.
30019 (mark_loop_exit_edges): Likewise.
30020 * cfgloopmanip.c (place_new_loop): Likewise.
30021 (add_loop): Likewise.
30022 (duplicate_loop): Likewise.
30023 * graph.c (draw_cfg_nodes): Likewise.
30024 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
30025 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
30026 (extract_affine_chrec): Likewise.
30027 (build_scop_iteration_domain): Likewise.
30028 * graphite.c (graphite_initialize): Likewise.
30029 * ira-build.c (create_loop_tree_nodes): Likewise.
30030 (more_one_region_p): Likewise.
30031 (rebuild_regno_allocno_maps): Likewise.
30032 (mark_loops_for_removal): Likewise.
30033 (mark_all_loops_for_removal): Likewise.
30034 (remove_unnecessary_regions): Likewise.
30035 (ira_build): Likewise.
30036 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
30037 * loop-init.c (fix_loop_structure): Likewise.
30038 (gate_rtl_move_loop_invariants): Likewise.
30039 (gate_rtl_unswitch): Likewise.
30040 (gate_rtl_unroll_and_peel_loops): Likewise.
30041 (rtl_doloop): Likewise.
30042 * lto-streamer-in.c (input_cfg): Likewise.
30043 * lto-streamer-out.c (output_cfg): Likewise.
30044 * modulo-sched.c (sms_schedule): Likewise.
30045 * predict.c (tree_estimate_probability): Likewise.
30046 (tree_estimate_probability_driver): Likewise.
30047 (estimate_loops): Likewise.
30048 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
30049 (move_sese_region_to_fn): Likewise.
30050 (debug_loop_num): Likewise.
30051 * tree-chrec.c (chrec_evaluate): Likewise.
30052 (hide_evolution_in_other_loops_than_loop): Likewise.
30053 (chrec_component_in_loop_num): Likewise.
30054 (reset_evolution_in_loop): Likewise.
30055 (evolution_function_is_invariant_rec_p): Likewise.
30056 * tree-if-conv.c (main_tree_if_conversion): Likewise.
30057 * tree-inline.c (copy_loops): Likewise.
30058 (copy_cfg_body): Likewise.
30059 (tree_function_versioning): Likewise.
30060 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
30061 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
30063 (add_to_evolution_1): Likewise.
30064 (scev_const_prop): Likewise.
30065 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
30066 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
30067 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
30068 (tree_ssa_lim_initialize): Likewise.
30069 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
30070 (verify_loop_closed_ssa): Likewise.
30071 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
30072 (tree_ssa_loop_im): Likewise.
30073 (tree_ssa_loop_unswitch): Likewise.
30074 (tree_vectorize): Likewise.
30075 (check_data_deps): Likewise.
30076 (tree_ssa_loop_ivcanon): Likewise.
30077 (tree_ssa_loop_bounds): Likewise.
30078 (tree_complete_unroll): Likewise.
30079 (tree_complete_unroll_inner): Likewise.
30080 (tree_parallelize_loops): Likewise.
30081 (tree_ssa_loop_prefetch): Likewise.
30082 (tree_ssa_loop_ivopts): Likewise.
30083 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
30084 * tree-vectorizer.c (vectorize_loops): Likewise.
30086 2013-04-29 Mike Frysinger <vapier@gentoo.org>
30088 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
30089 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
30090 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
30091 with EABI_LINK_SPEC.
30093 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30096 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
30099 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
30102 * lra-constraints.c (process_alt_operands): Discourage a bit more
30103 using memory for pseudos. Print cost dump for alternatives.
30104 Modify cost values for conflicts with early clobbers.
30105 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
30107 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30110 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
30112 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30114 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
30115 from/to S register.
30116 (movdi_aarch64): Support LDR/STR from/to D register.
30118 2013-04-29 Ian Bolton <ian.bolton@arm.com>
30120 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
30121 or higher by default.
30123 2013-04-29 Richard Biener <rguenther@suse.de>
30125 PR middle-end/57075
30126 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
30127 even if not adding abnormal edges for calls that can make
30130 2013-04-29 Richard Biener <rguenther@suse.de>
30132 PR middle-end/57103
30133 * tree-cfg.c (move_stmt_op): Fix condition under which to update
30135 (move_stmt_r): Remove redundant checking.
30137 2013-04-29 Teresa Johnson <tejohnson@google.com>
30140 * basic-block.h (apply_scale): New function.
30141 (apply_probability): Use apply_scale.
30142 * gimple-streamer-in.c (input_bb): Ditto.
30143 * lto-streamer-in.c (input_cfg): Ditto.
30144 * lto-cgraph.c (merge_profile_summaries): Ditto.
30145 * tree-optimize.c (execute_fixup_cfg): Ditto.
30146 * tree-inline.c (copy_bb): Update comment to use apply_scale.
30147 (copy_edges_for_bb): Ditto.
30148 (copy_cfg_body): Ditto.
30150 2013-04-29 Tom de Vries <tom@codesourcery.com>
30152 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
30153 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
30154 (tail_merge_optimize): Handle current_loops == NULL.
30156 2013-04-26 Jeff Law <law@redhat.com>
30158 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
30159 (simplify_cond_using_ranges): Generalize code to simplify
30160 COND_EXPRs where one argument is a constant and the other
30161 is an SSA_NAME created by an integral type conversion.
30163 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30165 * config/arm/arm.md (store_minmaxsi): Use only when
30166 optimize_insn_for_size_p.
30168 2013-04-29 Christian Bruel <christian.bruel@st.com>
30171 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
30173 2013-04-29 Richard Biener <rguenther@suse.de>
30175 PR middle-end/57089
30176 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
30177 loop tree make sure to schedule a fixup for the child as well.
30178 (expand_omp_for_generic): Properly add loops.
30179 (expand_omp_for_static_nochunk): Likewise.
30180 (expand_omp_for_static_chunk): Likewise.
30181 (expand_omp_for): For the degenerate case fixup loops.
30182 (expand_omp_sections): Fix default bb placement in loops.
30183 (expand_omp_atomic_pipeline): Properly add loops.
30185 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30187 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
30189 2013-04-29 Tom de Vries <tom@codesourcery.com>
30191 * tree-ssa-tail-merge.c: Update header comment.
30193 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30195 * config/aarch64/arm_neon.h
30196 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
30197 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
30198 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
30199 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
30200 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
30201 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
30202 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
30203 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
30205 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30207 * config/aarch64/aarch64-simd.md
30208 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
30209 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
30210 fix_trunc, fixuns_trunc.
30211 (ftrunc<VDQF:mode>2): New.
30212 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30213 (fix_trunc_optab): New.
30215 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30217 * config/aarch64/aarch64-builtins.c
30218 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30219 iceilf, lround, iroundf.
30221 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30224 * config/i386/i386.h (enum ix86_tune_indices)
30225 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30226 New, split from X86_TUNE_INTER_UNIT_MOVES.
30227 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30228 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30229 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30230 (TARGET_INTER_UNIT_MOVES): Remove.
30231 * config/i386/i386.c (initial_ix86_tune_features): Update.
30232 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30233 (ix86_expand_convert_uns_didf_sse): Use
30234 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30235 (ix86_expand_vector_init_one_nonzero): Ditto.
30236 (ix86_expand_vector_init_interleave): Ditto.
30237 (inline_secondary_memory_needed): Return true for moves from SSE class
30238 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30239 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30240 * config/i386/constraints.md (Yi, Ym): Depend on
30241 TARGET_INTER_UNIT_MOVES_TO_VEC.
30242 (Yj, Yn): New constraints.
30243 * config/i386/i386.md (*movdi_internal): Change constraints of
30244 operand 1 from Yi to Yj and from Ym to Yn.
30245 (*movsi_internal): Ditto.
30246 (*movdf_internal): Ditto.
30247 (*movsf_internal): Ditto.
30248 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30249 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30250 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30251 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30252 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30253 * config/i386/sse.md (movdi_to_sse): Ditto.
30254 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30255 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30256 TARGET_INTER_UNIT_MOVES.
30257 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30258 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30259 instead of TARGET_INTER_UNIT_MOVES.
30260 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30261 operand 1 from Yi to Yj and from Ym to Yn.
30263 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30265 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30266 (float_truncate_hi_): Likewise.
30267 (float_extend_lo_): Likewise.
30268 (float_truncate_lo_): Likewise.
30269 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30270 (aarch64_float_extend_lo_v2df): Likewise.
30271 (vec_unpacks_hi_v4sf): Likewise.
30272 (aarch64_float_truncate_lo_v2sf): Likewise.
30273 (aarch64_float_truncate_hi_v4sf): Likewise.
30274 (vec_pack_trunc_v2df): Likewise.
30275 (vec_pack_trunc_df): Likewise.
30277 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30279 * config/aarch64/aarch64-builtins.c
30280 (aarch64_fold_builtin): Fold float conversions.
30281 * config/aarch64/aarch64-simd-builtins.def
30282 (floatv2si, floatv4si, floatv2di): New.
30283 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
30284 * config/aarch64/aarch64-simd.md
30285 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
30286 * config/aarch64/iterators.md (FLOATUORS): New.
30287 (optab): Add float, floatuns.
30288 (su_optab): Likewise.
30290 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30292 * config/aarch64/aarch64-builtins.c
30293 (aarch64_builtin_vectorized_function): Use new names for
30295 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
30296 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
30297 (fcvtzu): Split as...
30298 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
30299 (fcvtas): Split as...
30300 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
30301 (fcvtau): Split as...
30302 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
30303 (fcvtps): Split as...
30304 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
30305 (fcvtpu): Split as...
30306 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
30307 (fcvtms): Split as...
30308 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
30309 (fcvtmu): Split as...
30310 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
30311 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
30312 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
30313 (lfrintnusf, lfrintnudf): Likewise.
30314 * config/aarch64/aarch64-simd.md
30315 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
30317 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
30318 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
30319 (fcvt_pattern): Likewise.
30321 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30323 * config/aarch64/aarch64-simd.md
30324 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
30325 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
30327 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30329 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
30330 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
30331 (vrnd<a,m,n,p>_f32): Implement using builtins.
30332 (vrnd<i,x><q>_f<32, 64>): New.
30334 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30336 * config/aarch64/aarch64-builtins.c
30337 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
30338 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
30339 (frintz): Rename to...
30341 (frintp): Rename to...
30343 (frintm): Rename to...
30345 (frinti): Rename to...
30346 (nearbyint): ...this.
30347 (frintx): Rename to...
30349 (frinta): Rename to...
30351 * config/aarch64/aarch64-simd.md
30352 (aarch64_frint<frint_suffix><mode>): Delete.
30353 (<frint_pattern><mode>2): Convert to insn.
30354 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
30355 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
30356 (frint_pattern): Likewise.
30357 (frint_suffix): Likewise.
30359 2013-04-29 Richard Biener <rguenther@suse.de>
30361 PR tree-optimization/57081
30362 * loop-init.c: Include tree-flow.h.
30363 (loop_optimizer_finalize): Free number of iteration estimates.
30364 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
30366 2013-04-29 Jakub Jelinek <jakub@redhat.com>
30368 PR tree-optimization/57083
30369 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
30370 non-singleton shift count range, zero extend low_bound for uns case.
30372 * config/i386/predicates.md (general_vector_operand): New predicate.
30373 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
30374 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
30375 if they aren't nonimmediate operands. If their original values
30376 satisfy const_vector_equal_evenodd_p, don't shift them.
30377 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
30378 predicates. For the SSE4.1 case force operands[{1,2}] into registers
30379 if not nonimmediate_operand.
30380 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
30381 instead of register_operand.
30382 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
30384 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
30386 * stor-layout.c (finalize_size_functions): Allocate a structure and
30387 reset cfun before dumping the functions.
30389 2013-04-27 Jakub Jelinek <jakub@redhat.com>
30391 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
30394 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
30395 use xop_pmacsdqh if uns_p.
30396 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
30397 the immediate rotate count.
30399 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
30401 * rtl.h (struct rtx_def): Add comment for field jump.
30402 (LRA_SUBREG_P): New macro.
30403 * recog.c (register_operand): Check LRA_SUBREG_P.
30404 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30406 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30407 (lra_final_code_change): Skip subreg change for operators.
30408 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30409 if there are no operand changes.
30410 * lra-constraints.c (curr_insn_set): New.
30411 (match_reload): Set LRA_SUBREG_P.
30412 (emit_spill_move): Ditto.
30413 (check_and_process_move): Use curr_insn_set. Process only single
30414 set insns. Don't initialize sec_mem_p and change_p.
30415 (simplify_operand_subreg): Use LRA_SUBREG_P.
30416 (reg_in_class_p): New function.
30417 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30418 of #ifdef. Add code to remove cycling.
30419 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30420 non-null disp. Reload inner instead of disp when base and index
30421 are null. Try to put lo_sum into register.
30422 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30423 (check_and_process_move): Move code for move cost check to
30424 simple_move_p. Remove equiv_substitution.
30425 (simple_move_p): New function.
30426 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30427 curr_insn_set. Call check_and_process_move only for single set
30428 insns. Use the new function. Move call of check_and_process_move
30429 after operand equiv substitution and address process.
30431 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30434 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
30435 with nonlocal goto receivers or returns twice calls, ignore
30436 unininitialized values from abnormal edges to nl goto receiver
30437 or returns twice call.
30439 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30441 PR tree-optimization/57051
30442 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
30443 and VEC_RSHIFT_EXPR if shift count is a multiple of element
30446 2013-04-26 Richard Biener <rguenther@suse.de>
30448 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
30449 (expand_omp_taskreg): Likewise. Mark loops for fixup.
30450 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
30451 (fixup_loop_arrays_after_move): New function.
30452 (move_sese_region_to_fn): Properly outline the loop tree parts
30453 of the SESE region.
30455 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
30457 * config/i386/i386.md (type, unit): Fix long lines.
30459 2013-04-26 Richard Biener <rguenther@suse.de>
30461 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
30462 (lto-streamer-out.o): Likewise.
30463 * cfgloop.c (init_loops_structure): Export, add struct function
30464 argument and adjust.
30465 (flow_loops_find): Adjust.
30466 * cfgloop.h (enum loop_estimation): Add EST_LAST.
30467 (init_loops_structure): Declare.
30468 * lto-streamer-in.c: Include cfgloop.h.
30469 (input_cfg): Input the loop tree.
30470 * lto-streamer-out.c: Include cfgloop.h.
30471 (output_cfg): Output the loop tree.
30472 (output_struct_function_base): Do not drop PROP_loops.
30474 2013-03-26 Richard Biener <rguenther@suse.de>
30476 * tree-cfg.c (execute_build_cfg): Build the loop tree.
30477 (pass_build_cfg): Provide PROP_loops.
30478 (move_sese_region_to_fn): Remove loops that are outlined into fn
30480 * tree-inline.c: Include cfgloop.h.
30481 (initialize_cfun): Do not drop PROP_loops.
30482 (copy_loops): New function.
30483 (copy_cfg_body): Copy loop structure.
30484 (tree_function_versioning): Initialize destination loop tree.
30485 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
30486 (pass_parallelize_loops): Do IL verification.
30487 * loop-init.c (loop_optimizer_init): Fixup loops if required.
30488 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
30489 the CFG make sure we fixup loops as well.
30490 * tree-ssa-tail-merge.c: Include cfgloop.h.
30491 (replace_block_by): When merging loop latches mark loops for fixup.
30492 * lto-streamer-out.c (output_struct_function_base): Drop
30493 PROP_loops for now.
30494 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
30495 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
30496 * ipa-split.c: Include cfgloop.h.
30497 (split_function): Add the new return block to the loop tree root.
30498 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
30499 whether we have removed the forwarder block.
30500 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
30501 * cfgloop.h (place_new_loop): Declare.
30502 * cfgloopmanip.c (place_new_loop): Export.
30503 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
30504 (tree-switch-conversion.o): Likewise.
30505 (tree-complex.o): Likewise.
30506 (tree-inline.o): Likewise.
30507 (tree-ssa-tailmerge.o): Likewise.
30508 (ipa-split.o): Likewise.
30509 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
30510 (tree-ssa-copy.o): Likewise.
30511 * tree-switch-conversion.c: Include cfgloop.h
30512 (process_switch): If we emit a bit-test cascade, schedule loops
30514 * tree-complex.c: Include cfgloop.h.
30515 (expand_complex_div_wide): Properly add new basic-blocks to loops.
30516 * asan.c: Include cfgloop.h.
30517 (create_cond_insert_point): Properly add new basic-blocks to
30518 loops, schedule loop fixup.
30519 * cfgloop.c (verify_loop_structure): Check that looks are not
30521 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
30523 (expand_omp_for_generic): Likewise.
30524 (expand_omp_sections): Likewise.
30525 (expand_omp_atomic_pipeline): Schedule loops for fixup.
30526 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
30527 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
30528 is initialized, not when loops are present.
30529 * tree-parloops.c (parallelize_loops): Remove checking here.
30530 * passes.c (init_optimization_passes): Schedule a copy-propagation
30531 pass before complete unrolling of inner loops.
30533 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30535 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
30536 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
30537 (colorize_init): Add argument to _WIN32 version.
30538 * toplev.c: Include diagnostic-color.h.
30539 (process_options): Default to -fdiagnostics-color=auto if
30540 GCC_COLORS env var is in the environment.
30541 * common.opt (fdiagnostics-color=): Add Var and Init.
30542 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
30543 env var is in the environment, the default is auto rather than never.
30545 * diagnostic.h (file_name_as_prefix): Add context argument.
30546 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
30547 the string as locus.
30548 * langhooks.c (lhd_print_error_function): Adjust caller.
30550 2013-04-25 Lawrence Crowl <crowl@google.com>
30552 * var-tracking.c (shared_hash_def::htab):
30553 Change type to hash_table. Update dependent calls and types.
30555 2013-04-25 Lawrence Crowl <crowl@google.com>
30557 * Makefile.in: Update as needed below.
30559 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
30560 Move declaration to after the type's method definitons.
30562 * attribs.c (htab_t scoped_attributes::attribute_hash):
30563 Change type to hash_table. Update dependent calls and types.
30565 * bitmap.c (htab_t bitmap_desc_hash):
30566 Change type to hash_table. Update dependent calls and types.
30568 * cselib.c (htab_t cselib_hash_table):
30569 Change type to hash_table. Update dependent calls and types.
30571 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
30572 (hash_string_slot_node): Move implementation into lto-streamer.h
30573 struct string_slot_hasher.
30574 (eq_string_slot_node): Likewise.
30576 * data-streamer-out.c: Update output_block::string_hash_table
30577 dependent calls and types.
30579 * dwarf2cfi.c (htab_t trace_index):
30580 Change type to hash_table. Update dependent calls and types.
30582 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
30583 Change type to hash_table. Update dependent calls and types.
30584 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
30585 (htab_t optimize_external_refs::map): Likewise.
30586 (htab_t output_comp_unit::extern_map): Likewise.
30587 (htab_t output_comdat_type_unit::extern_map): Likewise.
30588 (htab_t output_macinfo::macinfo_htab): Likewise.
30589 (htab_t optimize_location_lists::htab): Likewise.
30590 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
30592 * except.c (htab_t ehspec_hash_type):
30593 Change type to hash_table. Update dependent calls and types.
30594 (assign_filter_values::ttypes): Likewise.
30595 (assign_filter_values::ehspec): Likewise.
30596 (sjlj_assign_call_site_values::ar_hash): Likewise.
30597 (convert_to_eh_region_ranges::ar_hash): Likewise.
30599 * gcse.c (htab_t pre_ldst_table):
30600 Change type to hash_table. Update dependent calls and types.
30602 * ggc-common.c (htab_t saving_htab):
30603 Change type to hash_table. Update dependent calls and types.
30604 (htab_t loc_hash): Likewise.
30605 (htab_t ptr_hash): Likewise.
30606 (call_count): Rename ggc_call_count.
30607 (call_alloc): Rename ggc_call_alloc.
30608 (loc_descriptor): Rename make_loc_descriptor.
30609 (add_statistics): Rename ggc_add_statistics.
30611 * ggc-common.c (saving_htab):
30612 Change type to hash_table. Update dependent calls and types.
30614 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
30615 (push_gimplify_context): Likewise.
30616 (pop_gimplify_context): Likewise.
30617 (struct gimple_temp_hash_elt): Added.
30618 (struct gimplify_hasher): Likewise.
30619 (struct gimplify_ctx.temp_htab):
30620 Change type to hash_table. Update dependent calls and types.
30622 * gimple-fold.c: Include gimplify-ctx.h.
30624 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
30625 Change type to hash_table. Update dependent calls and types.
30626 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
30627 avoid potential global name collision.
30629 * gimplify.c: Include gimplify-ctx.h.
30630 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
30631 (htab_t gimplify_ctx::temp_htab):
30632 Update dependent calls and types for new type hash_table.
30633 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
30634 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
30636 * gimplify-ctx.h: New.
30637 (struct gimple_temp_hash_elt): Move from gimplify.c.
30638 (class gimplify_hasher): New.
30639 (struct gimplify_ctx): Move from gimple.h.
30640 (htab_t gimplify_ctx::temp_htab):
30641 Change type to hash_table. Update dependent calls and types.
30643 * graphite-clast-to-gimple.c: Include graphite-htab.h.
30644 (htab_t ivs_params::newivs_index):
30645 Change type to hash_table. Update dependent calls and types.
30646 (htab_t ivs_params::params_index): Likewise.
30647 (htab_t print_generated_program::params_index): Likewise.
30648 (htab_t gloog::newivs_index): Likewise.
30649 (htab_t gloog::params_index): Likewise.
30651 * graphite.c: Include graphite-htab.h.
30652 4htab_t graphite_transform_loops::bb_pbb_mapping):
30653 Change type to hash_table. Update dependent calls and types.
30655 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
30656 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
30657 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
30659 * graphite-dependences.c: Include graphite-htab.h.
30660 (loop_is_parallel_p): Change hash table type of parameter.
30662 * graphite-htab.h: New.
30663 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
30664 (extern find_pbb_via_hash): Move from graphite-poly.h.
30665 (extern loop_is_parallel_p): Move from graphite-poly.h.
30666 (extern get_loop_body_pbbs): Move from graphite-poly.h.
30668 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
30669 (extern loop_is_parallel_p): Move to graphite-htab.h.
30670 (extern get_loop_body_pbbs): Move to graphite-htab.h.
30672 * haifa-sched.c (htab_t delay_htab):
30673 Change type to hash_table. Update dependent calls and types.
30674 (htab_t delay_htab_i2): Likewise.
30676 * ira-color.c (htab_t allocno_hard_regs_htab):
30677 Change type to hash_table. Update dependent calls and types.
30679 * ira-costs.c (htab_t cost_classes_htab):
30680 Change type to hash_table. Update dependent calls and types.
30682 * loop-invariant.c (htab_t merge_identical_invariants::eq):
30683 Change type to hash_table. Update dependent calls and types.
30685 * loop-iv.c (htab_t bivs):
30686 Change type to hash_table. Update dependent calls and types.
30688 * loop-unroll.c (htab_t opt_info::insns_to_split):
30689 Change type to hash_table. Update dependent calls and types.
30690 (htab_t opt_info::insns_with_var_to_expand): Likewise.
30692 * lto-streamer.h (struct string_slot): Move from data-streamer.h
30693 (struct string_slot_hasher): New.
30694 (htab_t output_block::string_hash_table):
30695 Change type to hash_table. Update dependent calls and types.
30697 * lto-streamer-in.c (freeing_string_slot_hasher): New.
30698 (htab_t file_name_hash_table):
30699 Change type to hash_table. Update dependent calls and types.
30701 * lto-streamer-out.c: Update output_block::string_hash_table dependent
30704 * lto-streamer.c (htab_t tree_htab):
30705 Change type to hash_table. Update dependent calls and types.
30707 * omp-low.c: Include gimplify-ctx.h.
30709 * passes.c (htab_t name_to_pass_map):
30710 Change type to hash_table. Update dependent calls and types.
30711 (pass_traverse): Rename to passes_pass_traverse.
30713 * plugin.c (htab_t event_tab):
30714 Change type to hash_table. Update dependent calls and types.
30716 * postreload-gcse.c (htab_t expr_table):
30717 Change type to hash_table. Update dependent calls and types.
30718 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
30720 * sese.c (debug_rename_map_1): Make extern.
30721 (htab_t copy_bb_and_scalar_dependences::rename_map):
30722 Change type to hash_table. Update dependent calls and types.
30724 * sese.h (extern debug_rename_map): Move to .c file.
30726 * store-motion.c (htab_t store_motion_mems_table):
30727 Change type to hash_table. Update dependent calls and types.
30729 * trans-mem.c (htab_t tm_new_mem_hash):
30730 Change type to hash_table. Update dependent calls and types.
30732 * tree-browser.c (htab_t TB_up_ht):
30733 Change type to hash_table. Update dependent calls and types.
30735 * tree-cfg.c (htab_t discriminator_per_locus):
30736 Change type to hash_table. Update dependent calls and types.
30738 * tree-complex.c: Include tree-hasher.h
30739 (htab_t complex_variable_components):
30740 Change type to hash_table. Update dependent calls and types.
30742 * tree-eh.c (htab_t finally_tree):
30743 Change type to hash_table. Update dependent calls and types.
30745 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
30746 struct int_tree_hasher.
30747 (extern int_tree_map_eq): Likewise.
30748 (uid_decl_map_hash): Removed.
30749 (extern decl_tree_map_eq): Likewise.
30751 * tree-hasher.h: New.
30752 (struct int_tree_hasher): New.
30753 (typedef int_tree_htab_type): New.
30755 * tree-inline.c: Include gimplify-ctx.h.
30757 * tree-mudflap.c: Include gimplify-ctx.h.
30759 * tree-parloops.c: Include tree-hasher.h.
30760 (htab_t eliminate_local_variables_stmt::decl_address):
30761 Change type to hash_table. Update dependent calls and types.
30762 (htab_t separate_decls_in_region::decl_copies): Likewise.
30764 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
30765 Change type to hash_table. Update dependent calls and types.
30767 * tree-sra.c (candidates):
30768 Change type to hash_table. Update dependent calls and types.
30770 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
30772 (int_tree_map_hash): Likewise.
30774 * tree-ssa-dom.c (htab_t avail_exprs):
30775 Change type to hash_table. Update dependent calls and types.
30777 * tree-ssa-live.c (var_map_base_init::tree_to_index):
30778 Change type to hash_table. Update dependent calls and types.
30780 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
30781 Change type to hash_table. Update dependent calls and types.
30783 * tree-ssa-phiopt.c (seen_ssa_names):
30784 Change type to hash_table. Update dependent calls and types.
30786 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
30787 Change type to hash_table. Update dependent calls and types.
30789 * tree-ssa-uncprop.c (equiv):
30790 Change type to hash_table. Update dependent calls and types.
30792 2013-04-25 Jakub Jelinek <jakub@redhat.com>
30794 PR rtl-optimization/57003
30795 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
30796 call note_stores with kill_clobbered_value callback again after
30797 killing regs_invalidated_by_call.
30799 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30801 * config/aarch64/aarch64-simd.md
30802 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
30803 (aarch64_simd_bsl<mode>): Likewise.
30804 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
30806 2013-04-25 Marek Polacek <polacek@redhat.com>
30808 PR tree-optimization/57066
30809 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
30811 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30813 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
30815 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30817 * config/aarch64/aarch64-builtins.c
30818 (aarch64_fold_builtin): New.
30819 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
30820 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
30821 * config/aarch64/aarch64-simd-builtins.def (abs): New.
30822 * config/aarch64/arm_neon.h
30823 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
30825 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30826 Tejas Belagod <tejas.belagod@arm.com>
30828 * config/aarch64/aarch64-builtins.c
30829 (aarch64_gimple_fold_builtin): New.
30830 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
30831 * config/aarch64/aarch64-simd-builtins.def (addv): New.
30832 * config/aarch64/aarch64-simd.md (addpv4sf): New.
30833 (addvv4sf): Update.
30834 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
30836 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30838 * config/aarch64/aarch64.md
30839 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
30841 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30843 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
30844 (*ngcsi_uxtw): New pattern.
30846 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30847 Julian Brown <julian@codesourcery.com>
30849 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
30850 (TB_DREG): Add T_V4HF.
30851 (v4hf_UP): New macro.
30852 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30853 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30854 Handle initialisation of V4HF. Adjust initialisation of reinterpret
30856 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30857 (arm_vector_mode_supported_p): Handle V4HF.
30858 (arm_mangle_map): Handle V4HFmode.
30859 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
30860 * config/arm/arm_neon_builtins.def: Add entries for
30861 vcvtv4hfv4sf, vcvtv4sfv4hf.
30862 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
30863 (neon_vcvtv4hfv4sf): Likewise.
30864 * config/arm/neon-gen.ml: Handle half-precision floating point
30866 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
30867 * config/arm/arm_neon.h: Regenerate.
30868 * config/arm/neon.ml (type elts): Add F16.
30869 (type vectype): Add T_float16x4, T_floatHF.
30870 (type vecmode): Add V4HF.
30871 (type features): Add Requires_FP_bit feature.
30872 (elt_width): Handle F16.
30873 (elt_class): Likewise.
30874 (elt_of_class_width): Likewise.
30875 (mode_of_elt): Refactor.
30876 (type_for_elt): Handle F16, fix error messages.
30877 (vectype_size): Handle T_float16x4.
30878 (vcvt_sh): New function.
30879 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
30880 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
30881 (string_of_mode): Handle V4HF.
30882 * doc/arm-neon-intrinsics.texi: Regenerate.
30884 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30886 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
30887 format specifier in 'X' case.
30889 2013-04-25 Alan Modra <amodra@gmail.com>
30892 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
30893 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
30894 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
30895 Repeat for many other rotate/shift and mask patterns using subregs.
30896 Name lshiftrt insns.
30897 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
30898 on WORDS_BIG_ENDIAN.
30900 2013-04-25 Alan Modra <amodra@gmail.com>
30902 * config.gcc: Support little-endian powerpc-linux targets.
30903 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
30904 (LINK_OS_LINUX_SPEC): Define.
30905 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
30906 Preserve MASK_LITTLE_ENDIAN.
30907 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
30908 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
30909 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
30910 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
30911 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
30912 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
30913 Correct fp word order for little-endian. Don't shift toc entries
30914 smaller than a word for little-endian.
30915 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
30916 (bswapdi2 splits): Correct low-part subreg for little-endian.
30917 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
30918 low/high where such is correct only for be.
30919 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
30920 little-endian for -mcall-aixdesc.
30922 2013-04-25 Alan Modra <amodra@gmail.com>
30924 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30925 replace_equiv_address_nv.
30927 2013-04-25 Alan Modra <amodra@gmail.com>
30929 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
30931 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30934 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30935 * rtl.h (struct rtx_def): ...
30937 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30939 PR rtl-optimizations/57046
30940 * lra-constraints (split_reg): Set up lra_risky_transformations_p
30941 for multi-reg splits.
30943 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
30945 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
30947 2013-04-24 Sterling Augustine <saugustine@google.com>
30949 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
30950 (comp_dir_string, debug_str_dwo_section): New.
30951 (DEBUG_STR_DWO_SECTION): Rename to ...
30952 (DEBUG_DWO_STR_SECTION): ... this.
30953 (DEBUG_NORM_STR_SECTION): Delete.
30954 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
30955 (DEBUG_STR_DWO_SECTION_FLAGS): New.
30956 (find_AT_string): Move most logic to ...
30957 (find_AT_string_in_table): ... here. New.
30958 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
30959 add_skeleton_AT_string. Delete logic.
30960 (output_skeleton_debug_sections): Remove call to
30961 add_top_level_skeleton_die_attrs.
30962 (add_comp_dir_attribute): Move logic to comp_dir_string.
30963 (dwarf2out_init): Initialize debug_str_dwo_section.
30964 (output_indirect_string): Call find_string_form.
30965 (output_indirect_strings): Rewrite.
30966 (prune_unused_types): Empty skeleton_debug_str_hash.
30967 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
30968 (dwarf2out_finish): Call output_indirect_strings.
30970 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
30972 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
30974 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30976 * rtl.h (struct rtx_def): Add comment for field jump.
30977 (LRA_SUBREG_P): New macro.
30978 * recog.c (register_operand): Check LRA_SUBREG_P.
30979 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30981 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30982 (lra_final_code_change): Skip subreg change for operators.
30983 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30984 if there are no operand changes.
30985 * lra-constraints.c (curr_insn_set): New.
30986 (match_reload): Set LRA_SUBREG_P.
30987 (emit_spill_move): Ditto.
30988 (check_and_process_move): Use curr_insn_set. Process only single
30989 set insns. Don't initialize sec_mem_p and change_p.
30990 (simplify_operand_subreg): Use LRA_SUBREG_P.
30991 (reg_in_class_p): New function.
30992 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30993 of #ifdef. Add code to remove cycling.
30994 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30995 non-null disp. Reload inner instead of disp when base and index
30996 are null. Try to put lo_sum into register.
30997 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30998 (check_and_process_move): Move code for move cost check to
30999 simple_move_p. Remove equiv_substitution.
31000 (simple_move_p): New function.
31001 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31002 curr_insn_set. Call check_and_process_move only for single set
31003 insns. Use the new function. Move call of check_and_process_move
31004 after operand equiv substitution and address process.
31006 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31008 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31009 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31010 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31012 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31014 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31016 2013-04-24 Marek Polacek <polacek@redhat.com>
31018 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31019 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31020 (select_loops_exit_conditions): Likewise.
31021 (number_of_iterations_for_all_loops): Likewise.
31022 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
31023 (scev_analysis): Likewise.
31025 2013-04-02 Catherine Moore <clm@codesourcery.com>
31026 Chao-ying Fu <fu@mips.com>
31028 * config/mips/micromips.md (jraddiusp): New pattern.
31029 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
31030 instruction if possible.
31032 2013-04-24 Alan Modra <amodra@gmail.com>
31034 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
31036 2013-04-24 Julian Brown <julian@codesourcery.com>
31037 Chung-Lin Tang <cltang@codesourcery.com>
31039 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
31040 dependency behavior in enumeration type DIE generation. Add TODO note
31041 to comments about future DW_FORM_sdata/udata re-work of related code.
31043 2013-04-23 Lawrence Crowl <crowl@google.com>
31045 * Makefile.in: Update as needed below.
31047 * hash-table.h (class hash_table):
31048 Correct many methods with parameter types compare_type to the correct
31049 value_type. (Correct code was unlikely to notice the change.)
31050 (hash_table::elements_with_deleted) New.
31051 (class hashtable::iterator): New.
31052 (hashtable::begin()): New.
31053 (hashtable::end()): New.
31054 (FOR_EACH_HASH_TABLE_ELEMENT): New.
31056 * statistics.c (statistics_hashes):
31057 Change type to hash_table. Update dependent calls and types.
31059 * tree-into-ssa.c (var_infos):
31060 Change type to hash_table. Update dependent calls and types.
31062 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
31063 Change type to hash_table. Update dependent calls and types.
31065 * tree-ssa-loop-im.c (struct mem_ref.refs):
31066 Change type to hash_table. Update dependent calls and types.
31068 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
31069 Change type to hash_table. Update dependent calls and types.
31071 * tree-ssa-sccvn.c (vn_tables_s::nary):
31072 Change type to hash_table. Update dependent calls and types.
31073 (vn_tables_s::phis): Likewise.
31074 (vn_tables_s::references): Likewise.
31076 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
31077 (vn_reference_eq): Update parameter and return types.
31079 * tree-ssa-structalias.c (pointer_equiv_class_table):
31080 Change type to hash_table. Update dependent calls and types.
31081 (location_equiv_class_table): Likewise.
31083 * tree-vect-data-refs.c: Consequential changes for making
31084 peeling a hash_table.
31086 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
31087 (destroy_loop_vec_info): Dependent hash_table update.
31089 * tree-vectorizer.h (peeling_htab):
31090 Change type to hash_table. Update dependent calls and types.
31092 2013-04-23 Shiva Chen <shiva0217@gmail.com>
31094 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
31095 to check the register content is equal or not.
31096 * lra-constraints.c (match_reload): Use lra_assign_reg_val
31097 to assign register content record.
31098 * lra-eliminations.c (update_reg_eliminate): Use
31099 lra_update_reg_val_offset to update register content offset.
31100 * lra-int.h (struct lra_reg): Add offset member.
31101 (lra_reg_val_equal_p): New static inline function.
31102 (lra_update_reg_val_offset): New static inline function.
31103 (lra_assign_reg_val): New static inline function.
31104 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
31105 to assign register content record.
31106 (initialize_lra_reg_info_element): Initial offset to zero.
31108 2013-04-23 Catherine Moore <clm@codesourcery.com>
31110 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
31111 operands. Record compression.
31113 2013-04-23 Xinliang David Li <davidxl@google.com>
31115 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
31117 2013-04-23 Richard Biener <rguenther@suse.de>
31119 PR middle-end/57036
31120 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
31121 parameter, only add abnormal goto edges from the copied body
31122 if the call could perform abnormal gotos.
31123 (copy_cfg_body): Adjust.
31125 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
31127 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
31129 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
31131 * coretypes.h (gimple_stmt_iterator): Add struct to make
31134 2013-04-23 Richard Biener <rguenther@suse.de>
31136 PR tree-optimization/57026
31137 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
31138 from SSA names occuring in abnormal PHI nodes.
31140 2013-04-22 Andi Kleen <ak@linux.intel.com>
31142 * lto/lto.c (print_lto_report_1): Fix LTO report names.
31144 2013-04-22 Andi Kleen <ak@linux.intel.com>
31146 * lto/lto.c (print_lto_report_1): Declare early.
31147 (read_cgraph_and_symbols): Call print_lto_report_1 early.
31149 2013-04-22 Andi Kleen <ak@linux.intel.com>
31151 * common.opt (-flto-report-wpa): Add.
31152 * doc/invoke.texi (-flto-report-wpa): Add.
31153 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
31156 2013-04-22 Xinliang David Li <davidxl@google.com>
31158 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
31159 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
31160 * Makefile.in: New dependency
31162 David Daney <ddaney.cavm@gmail.com>
31164 * configure.ac (gcc_cv_as_micromips_support): Use the
31165 --fatal-warnings option.
31166 * configure: Regenerate.
31168 2013-04-22 Marek Polacek <polacek@redhat.com>
31171 * tsan.c (instrument_expr): Don't instrument expression
31172 in case its size is zero.
31174 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
31178 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
31180 * config/alpha/alpha.c (TARGET_LRA_P): New define.
31182 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31184 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31185 (gimple_stmt_iterator): New typedef.
31186 * gimple.h (gimple_stmt_iterator): Rename to...
31187 (gimple_stmt_iterator_d): ... This.
31188 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
31189 trees be valid for GIMPLE and GENERIC.
31190 (TARGET_GIMPLE_FOLD_BUILTIN): New.
31191 * gimple-fold.c (gimple_fold_call): Call target hook
31192 gimple_fold_builtin.
31193 * hooks.c (hook_bool_gsiptr_false): New.
31194 * hooks.h (hook_bool_gsiptr_false): New.
31195 * target.def (fold_stmt): New.
31196 * doc/tm.texi: Regenerate.
31198 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
31201 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
31202 a set sp if no stack realignment.
31204 2013-04-22 Nick Clifton <nickc@redhat.com>
31206 * config.gcc (tilegx-linux): Extend extra_objs rather than
31208 (tilepro-linux): Likewise.
31210 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31212 * config/aarch64/aarch64-builtins.c
31214 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31215 (VAR<1-12>): Add MAP parameter.
31216 (BUILTIN_*): Likewise.
31217 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31218 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31219 (aarch64_ushl_n<mode>): Likewise.
31220 (aarch64_sshr_n<mode>): Likewise.
31221 (aarch64_ushr_n<mode>): Likewise.
31222 (aarch64_<maxmin><mode>): Likewise.
31223 (aarch64_sqrt<mode>): Likewise.
31224 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31225 (vshr<q>_n_*): Likewise.
31227 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31229 * config/aarch64/aarch64-builtins.c
31230 (aarch64_simd_builtin_type_mode): Handle SF types.
31232 (BUILTIN_GPF): Define.
31233 (aarch64_init_simd_builtins): Handle SF types.
31234 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31235 (frecps): Likewise.
31236 (frecpx): Likewise.
31237 * config/aarch64/aarch64-simd.md
31238 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31239 (aarch64_frecpe<mode>): New.
31240 (aarch64_frecps<mode>): Likewise.
31241 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31242 (v8type): Add frecp<esx>.
31243 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31244 (aarch64_frecps<mode>): Likewise.
31245 * config/aarch64/iterators.md (FRECP): New.
31246 (frecp_suffix): Likewise.
31247 * config/aarch64/arm_neon.h
31248 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31250 2013-04-22 Christian Bruel <christian.bruel@st.com>
31253 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31254 (REG_CLASS_NAMES): Idem.
31255 (REG_CLASS_CONTENTS): Idem.
31256 (REGCLASS_HAS_FP_REG): Idem.
31257 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31258 (sh_conditional_register_usage): Idem.
31260 2013-04-21 Jeff Law <law@redhat.com>
31262 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31263 (ssa_forward_propagate_and_combine): Use it.
31265 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31267 * lra.c: Update the flow chart diagram.
31269 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31271 PR rtl-optimization/56847
31272 * lra-constraints.c (process_alt_operands): Discourage alternative
31273 with non-matche doffsettable memory constraint fro memory with
31276 2013-04-19 Richard Biener <rguenther@suse.de>
31278 PR tree-optimization/56982
31279 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
31281 * gimplify.c (gimplify_call_expr): Notice special calls.
31282 (gimplify_modify_expr): Likewise.
31283 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
31284 abnormal control flow receivers.
31285 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
31286 in the same way as cfun->has_nonlocal_labels.
31287 (gimple_purge_dead_abnormal_call_edges): Likewise.
31288 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
31289 receivers start a basic-block.
31291 2013-04-19 Richard Biener <rguenther@suse.de>
31293 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
31295 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
31296 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
31297 (SLP_TREE_LOAD_PERMUTATION): Add.
31298 (vect_transform_slp_perm_load): Adjust prototype.
31299 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
31300 (vect_free_slp_instance): Likewise.
31301 (vect_create_new_slp_node): Likewise.
31302 (vect_supported_slp_permutation_p): Remove.
31303 (vect_slp_rearrange_stmts): Adjust.
31304 (vect_supported_load_permutation_p): Likewise. Inline
31305 vect_supported_slp_permutation_p here.
31306 (vect_analyze_slp_instance): Compute load permutations per
31307 slp node instead of per instance.
31308 (vect_get_slp_defs): Adjust.
31309 (vect_transform_slp_perm_load): Likewise.
31310 (vect_schedule_slp_instance): Remove redundant code.
31311 (vect_schedule_slp): Remove hack for PR56270, add it ...
31312 * tree-vect-stmts.c (vectorizable_load): ... here, do not
31313 CSE loads for SLP. Adjust.
31315 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31317 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
31318 spelling in two comments.
31320 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31323 * config/arm/arm.c (load_multiple_sequence): Require SP
31324 as base register for loads if SP is in the register list.
31326 2013-04-19 Martin Jambor <mjambor@suse.cz>
31328 PR tree-optimization/56718
31329 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
31330 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
31331 and made public. Adjusted all callers.
31332 (ipa_intraprocedural_devirtualization): New function.
31333 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
31334 (ipa_intraprocedural_devirtualization): Likewise.
31335 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
31337 2013-04-19 Richard Biener <rguenther@suse.de>
31339 PR tree-optimization/57000
31340 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
31342 2013-04-19 Terry Guo <terry.guo@arm.com>
31344 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
31346 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
31347 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
31348 (cortex_m4_fmacs): Use new reservations.
31349 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
31351 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
31353 PR rtl-optimization/56999
31354 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
31356 (lra_coalesce): Remove split_origin_bitmap and related code.
31357 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
31358 ranges if necessary.
31360 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
31362 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
31364 (ix86_expand_call): Remove clobbered_registers array and use
31365 x86_64_ms_sysv_extra_clobbered_registers instead.
31366 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
31368 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
31370 * config/i386/i386.md (*call_rex64_ms_sysv): Use
31371 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
31372 (*call_value_rex64_ms_sysv): Ditto.
31374 2013-04-18 Cary Coutant <ccoutant@google.com>
31376 * dwarf2out.c (output_pubnames): Check die_perennial_p of
31377 parent instead of die_mark.
31379 2013-04-18 Diego Novillo <dnovillo@google.com>
31381 * gimple.c (create_gimple_tmp): New.
31382 (get_expr_type): New.
31383 (build_assign): New.
31384 (build_type_cast): New.
31385 * gimple.h (enum ssa_mode): Define.
31386 (gimple_seq_set_location): New.
31387 * asan.c (build_check_stmt): Change some gimple_build_* calls
31388 to use build_assign and build_type_cast.
31390 2013-04-18 Richard Biener <rguenther@suse.de>
31392 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31393 handle negative step. Remove redundant checks.
31394 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
31395 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
31396 for negative step and grouped loads fail to vectorize.
31398 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31400 * emit-rtl.c (reset_insn_used_flags): New function.
31401 (reset_all_used_flags): Use it.
31402 (verify_insn_sharing): New function.
31403 (verify_rtl_sharing): Fix verification for SEQUENCEs.
31405 2013-04-18 Jakub Jelinek <jakub@redhat.com>
31407 PR tree-optimization/56984
31408 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
31409 and (x >> M) >= N don't register any assertion if N << M is the
31412 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31414 * lower-subreg.c (resolve_simple_move): If called self-recursive,
31415 do not delete_insn insns that have not yet been emitted, only
31416 unlink them with remove_insn.
31417 * df-scan.c (df_insn_delete): Revert r197492.
31419 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
31421 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
31422 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
31424 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31426 * config/arm/arm.md (movsicc_insn): Convert define_insn into
31427 define_insn_and_split.
31428 (and_scc,ior_scc,negscc): Likewise.
31429 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
31431 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31433 * config/arm/arm.c (use_return_insn): Return 0 for targets that
31434 can benefit from using a sequence of LDRD instructions in epilogue
31435 instead of a single LDM instruction.
31437 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
31440 * doc/extend.texi: Fix typo.
31442 2013-04-17 Richard Biener <rguenther@suse.de>
31444 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
31445 (vect_build_slp_tree): ... here.
31446 (vect_build_slp_tree_1): Compute which stmts of the SLP group
31447 match. Remove special-casing of mismatched complex loads.
31448 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
31449 re-try the match with swapped commutative operands.
31450 (vect_supported_load_permutation_p): Remove special-casing of
31451 mismatched complex loads.
31452 (vect_analyze_slp_instance): Adjust.
31454 2013-04-17 Richard Biener <rguenther@suse.de>
31456 PR rtl-optimization/56921
31457 * cfgloop.h (struct loop): Add simple_loop_desc member.
31458 (struct niter_desc): Mark with GTY(()).
31459 (simple_loop_desc): Do not use aux field but simple_loop_desc.
31460 * loop-iv.c (get_simple_loop_desc): Likewise.
31461 (free_simple_loop_desc): Likewise.
31464 2013-04-16 Richard Biener <rguenther@suse.de>
31466 PR rtl-optimization/56921
31467 * loop-init.c (pass_rtl_move_loop_invariants): Add
31468 TODO_do_not_ggc_collect to todo_flags_finish.
31469 (pass_rtl_unswitch): Same.
31470 (pass_rtl_unroll_and_peel_loops): Same.
31471 (pass_rtl_doloop): Same.
31473 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
31475 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
31476 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
31477 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
31479 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
31480 * tree-streamer.c (record_common_node): Adjust reference in comment.
31482 2013-04-17 Terry Guo <terry.guo@arm.com>
31484 * config/arm/cortex-m4.md: Add a new bypass.
31486 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31488 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
31490 (*subs_<optab><mode>_multp2): New pattern.
31491 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31492 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31494 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31496 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
31497 (*subs_mul_imm_<mode>): New pattern.
31499 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
31502 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
31503 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
31504 (vsx_movti_32bit): Change j->wa to O->wa.
31506 2013-04-16 Richard Biener <rguenther@suse.de>
31508 PR rtl-optimization/56921
31509 * loop-init.c (pass_rtl_move_loop_invariants): Add
31510 TODO_do_not_ggc_collect to todo_flags_finish.
31511 (pass_rtl_unswitch): Same.
31512 (pass_rtl_unroll_and_peel_loops): Same.
31513 (pass_rtl_doloop): Same.
31515 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
31517 * config/arm/arm.c (emit_multi_reg_push): New declaration
31518 for an existing function.
31519 (arm_emit_strd_push): New function.
31520 (arm_expand_prologue): Used here.
31521 (arm_emit_ldrd_pop): New function.
31522 (arm_expand_epilogue): Used here.
31523 (arm_get_frame_offsets): Update condition.
31524 (arm_emit_multi_reg_pop): Add a special case for load of a single
31525 register with writeback.
31527 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
31529 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
31532 2013-04-16 Richard Biener <rguenther@suse.de>
31534 PR tree-optimization/56756
31535 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
31536 (first_mem_ref_loc): New.
31537 (execute_sm): Place the load temporarily before a previous
31538 access instead of in the latch edge to ensure its SSA dependencies
31539 are defined at points dominating the load.
31541 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
31543 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
31544 correct fix by moving header and footer insn to the footer of
31545 the merged basic block. Clear BB_END of the merged-away block.
31547 PR middle-end/43631
31548 * emit-rtl.c (make_note_raw): New function.
31549 (link_insn_into_chain): New static inline function.
31550 (add_insn): Use it.
31551 (add_insn_before, add_insn_after): Factor insn chain linking code...
31552 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
31553 using link_insn_into_chain.
31554 (note_outside_basic_block_p): New helper function for emit_note_after
31555 and emit_note_before.
31556 (emit_note_after): Use nobb variant of add_insn_after if the note
31557 should not be contained in a basic block.
31558 (emit_note_before): Use nobb variant of add_insn_before if the note
31559 should not be contained in a basic block.
31560 (emit_note_copy): Use make_note_raw.
31561 (emit_note): Likewise.
31562 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
31563 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
31564 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
31565 the moved barrier the tail of the basic block it follows.
31566 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
31568 2013-04-15 Jakub Jelinek <jakub@redhat.com>
31570 PR tree-optimization/56962
31571 * gimple-ssa-strength-reduction.c (record_increment): Only set
31572 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
31573 either rhs1 or rhs2 is equal to c->base_expr.
31575 2013-04-15 Richard Biener <rguenther@suse.de>
31577 PR tree-optimization/56933
31578 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
31580 (GROUP_READ_WRITE_DEPENDENCE): Remove.
31581 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
31582 * tree-vect-data-refs.c (vect_analyze_group_access): Move
31583 dependence check ...
31584 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
31586 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
31587 GROUP_READ_WRITE_DEPENDENCE.
31589 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31591 * emit-rtl.c (reset_all_used_flags): New function.
31592 (verify_rtl_sharing): Call reset_all_used_flags before and after
31593 performing the checks.
31595 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31597 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
31598 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
31599 * config/arm/constraints.md (De): New constraint.
31600 * config/arm/neon.md (anddi3_neon): Delete.
31601 (neon_vand<mode>): Expand to standard anddi3 pattern.
31602 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
31603 Move earlier in the file.
31604 (neon_inv_logic_op2): Likewise.
31605 (arm_anddi_operand_neon): New predicate.
31607 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31609 * configure.ac (gcc_cv_ld_as_needed): Set
31610 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
31611 Use -z ignore, -z record on *-*-solaris2*.
31612 (HAVE_LD_AS_NEEDED): Update comment.
31613 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
31614 * configure: Regenerate.
31615 * config.in: Regenerate.
31616 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
31617 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
31618 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
31619 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
31620 equivalents. Fix markup.
31621 * doc/tm.texi: Regenerate.
31623 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
31625 * config/i386/i386.opt: New option mstack-protector-guard=.
31626 * config/i386/i386-opts.h: Add enum stack_protector_guard.
31627 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
31628 TARGET_SSP_TLS_GUARD.
31629 * config/i386/i386.c (ix86_option_override_internal): Set
31630 ix86_stack_protector_guard.
31631 * config/i386/i386.md (stack_protect_set): Enable for
31632 TARGET_SSP_TLS_GUARD only.
31633 (stack_protect_set_<mode>): Ditto.
31634 (stack_protect_test): Ditto.
31635 (stack_protect_test_<mode>): Ditto.
31636 * doc/invoke.texi (i386 Option): Document.
31638 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
31641 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
31642 (S_MODES): Set H_MODE bit.
31643 (SF_MODES): Set only S_MODE and SF_MODE bits.
31644 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
31645 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
31646 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
31647 <MODE_FLOAT>: Likewise.
31649 2013-04-15 Joey Ye <joey.ye@arm.com>
31651 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
31653 2013-04-15 Joey Ye <joey.ye@arm.com>
31655 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
31657 (thumb_far_jump_used_p): Count instruction size and set
31660 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
31662 * reorg.c (fill_simple_delay_slots): Reindent block of code.
31663 * resource.c (mark_target_live_regs): Reformat conditional block.
31665 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31667 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
31668 notes, they are emitted only just before final.
31669 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
31671 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31673 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
31674 * cfgrtl.c (delete_insn): Call it here instead.
31675 * lra-spills.c (lra_final_code_change): Use delete_insn.
31676 * haifa-sched.c (sched_remove_insn): Likewise.
31677 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
31678 returning to the nop pool.
31679 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
31680 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
31682 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31684 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
31685 * doc/tm.texi: Regenerated.
31687 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
31689 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
31692 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31694 * df-core.c (df_find_def): Compare register numbers.
31695 (df_find_use): Likewise.
31697 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
31700 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
31701 lra_in_progress for return.
31703 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31705 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
31706 define_insn into define_insn_and_split and emit movsicc patterns.
31708 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31710 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
31712 2013-04-12 Richard Biener <rguenther@suse.de>
31714 * tree-pass.h (TODO_do_not_ggc_collect): New.
31715 * passes.c (execute_one_ipa_transform_pass): Honor
31716 TODO_do_not_ggc_collect.
31717 (execute_one_pass): Likewise.
31720 2013-04-10 Richard Biener <rguenther@suse.de>
31722 * passes.c (init_optimization_passes): Remove reload pass.
31723 * ira.c (do_reload): Merge into ...
31725 (rest_of_handle_reload): Remove.
31726 (pass_reload): Likewise.
31727 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31728 of reload for vzeroupper pass placement.
31730 2013-04-12 Jakub Jelinek <jakub@redhat.com>
31732 PR tree-optimization/56918
31733 PR tree-optimization/56920
31734 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
31735 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
31736 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
31737 use wide_mul_with_sign method.
31739 2013-04-12 Richard Biener <rguenther@suse.de>
31741 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
31742 not be considered a gimple constant.
31744 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
31746 * fold-const.c (const_binop): Handle vector shifts by a scalar.
31747 (fold_binary_loc): Call const_binop also for mixed vector-scalar
31750 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
31751 Jakub Jelinek <jakub@redhat.com>
31753 * opts.c: Include diagnostic-color.h.
31754 (common_handle_option): Handle OPT_fdiagnostics_color_.
31755 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
31756 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
31757 (diagnostic-color.o): New.
31758 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
31759 (diagnostic_color_rule): New enum.
31760 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
31761 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
31762 the location string.
31763 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
31764 either NULL, or color kind.
31765 * diagnostic-color.c: New file.
31766 * diagnostic-color.h: New file.
31767 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
31769 * doc/invoke.texi (-fdiagnostics-color): Document.
31770 * pretty-print.h (pp_show_color): Define.
31771 (struct pretty_print_info): Add show_color field.
31772 * diagnostic.c: Include diagnostic-color.h.
31773 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
31774 macros. Colorize error:, warning: etc. strings and also the location
31776 (diagnostic_show_locus): Colorize the caret line.
31777 * pretty-print.c: Include diagnostic-color.h.
31778 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
31779 inside of %< %> quotes or quoted through q format modifier.
31781 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31783 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
31785 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31787 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
31788 code in CC_NZ mode.
31789 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
31792 2013-04-11 Marek Polacek <polacek@redhat.com>
31794 PR tree-optimization/48184
31795 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
31797 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
31799 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
31800 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
31801 (skip_simple_arithmetic): Tidy up.
31802 * tree.h (skip_simple_constant_arithmetic): Declare.
31804 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31806 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
31808 2013-04-11 Richard Biener <rguenther@suse.de>
31810 * tree-vect-loop.c (get_initial_def_for_induction): Properly
31811 generate vector constants.
31813 2013-04-11 Richard Biener <rguenther@suse.de>
31815 PR tree-optimization/56878
31816 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
31817 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
31819 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31820 Prefer to align the DR with the most invariant base address.
31822 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31824 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
31827 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
31829 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
31830 floating-point vector comparisons against 0.
31832 2013-04-11 Jakub Jelinek <jakub@redhat.com>
31834 PR tree-optimization/56899
31835 * fold-const.c (extract_muldiv_1): Apply distributive law
31836 only if TYPE_OVERFLOW_WRAPS (ctype).
31838 2013-04-11 Bin Cheng <bin.cheng@arm.com>
31841 * ira-costs.c (scan_one_insn): Check whether the source rtx of
31842 loading has side effect.
31844 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
31846 * config/sparc/sparc.c: Include tree-pass.h.
31847 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
31848 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
31849 head of file. Change return type. Split off gate function.
31850 (sparc_gate_work_around_errata): New function.
31851 (pass_work_around_errata): New pass definition.
31852 (insert_pass_work_around_errata) New pass insert definition to
31853 insert pass_work_around_errata just after delayed-branch scheduling.
31854 (sparc_option_override): Insert the pass.
31855 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
31857 2013-04-10 David S. Miller <davem@davemloft.net>
31859 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
31860 or -mcpu=hypersparc.
31862 * target.def (cstore_mode): New hook.
31863 * target.h: Include insn-codes.h
31864 * targhooks.c: Likewise.
31865 (default_cstore_mode): New function.
31866 * targhooks.h: Declare it.
31867 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
31868 * doc/tm.texi: Rebuild.
31869 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
31870 target hook, rather than inspecting the insn_data.
31871 * config/sparc/sparc.c (sparc_cstore_mode): New function.
31872 (TARGET_CSTORE_MODE): Redefine.
31873 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
31875 * config/sparc/predicates.md (cstore_result_operand): New special
31877 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
31878 Use it for operand 0.
31879 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
31880 (*snesi_special): Likewise.
31881 (*snesi_zero): Likewise.
31882 (*seqsi_zero): Likewise.
31883 (*sltu_insn): Likewise.
31884 (*sgeu_insn): Likewise.
31885 (*seqdi_special): Make operand 0 and comparison operation be of
31887 (*snedi_special): Likewise.
31888 (*snedi_special_vis3): Likewise.
31889 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
31890 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
31891 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
31892 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
31893 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
31894 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
31895 (*sltu_extend_sp64): Likewise.
31896 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
31897 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
31898 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
31899 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
31900 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
31902 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
31904 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
31905 (aarch64_start_file): Use the new function.
31907 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31908 Jason Merrill <jason@redhat.com>
31910 * common.opt: Add -gdwarf.
31911 * opts.c (common_handle_option): Handle it.
31912 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
31914 2013-04-10 Richard Biener <rguenther@suse.de>
31916 * passes.c (execute_todo): Do not call ggc_collect conditional here.
31917 (execute_one_ipa_transform_pass): But unconditionally here.
31918 (execute_one_pass): And here.
31919 (init_optimization_passes): Remove reload pass.
31920 * tree-pass.h (TODO_ggc_collect): Remove.
31921 (pass_reload): Likewise.
31922 * ira.c (do_reload): Merge into ...
31924 (rest_of_handle_reload): Remove.
31925 (pass_reload): Likewise.
31926 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31927 of reload for vzeroupper pass placement.
31928 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
31929 and todo_flags_finish of all passes.
31931 2013-04-10 Richard Biener <rguenther@suse.de>
31933 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
31934 first_const_oprnd field, rename first_def_type to first_op_type.
31935 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
31936 (vect_get_and_check_slp_defs): Always use the type of the
31937 operand. Allow mixed vect_external_def, vect_constant_def types.
31938 (vect_get_constant_vectors): Handle mixed vect_external_def,
31939 vect_constant_def types.
31941 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
31943 PR tree-optimization/55524
31944 * tree-ssa-math-opts.c
31945 (convert_mult_to_fma): Don't use an fms construct
31946 when we don't have an fms operation, but fnma, and it looks
31947 likely that we'll be able to use the latter.
31949 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31951 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
31953 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
31954 inline fail caused by overwritable functions.
31956 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
31958 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
31959 unnecessary bits in the constant power of two case.
31961 2013-04-10 Richard Biener <rguenther@suse.de>
31963 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
31964 broken code swapping operands.
31965 (vect_build_slp_tree): Do not compute load permutations here.
31966 (vect_analyze_slp_instance): Compute load permutations here,
31967 after building the SLP tree.
31969 2013-04-09 Christian Bruel <christian.bruel@st.com>
31971 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
31972 of next/prev_real_insn.
31974 2013-04-09 Jan Hubicka <jh@suse.cz>
31976 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
31977 Drop aliased parameter.
31978 (function_and_variable_visibility): Do not handle alias pairs.
31979 * cgraph.c (varpool_externally_visible_p): Update prototype.
31980 * varpool.c (varpool_add_new_variable): Update.
31982 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31984 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
31986 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
31988 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
31990 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
31992 2013-04-09 Marek Polacek <polacek@redhat.com>
31994 PR tree-optimization/48762
31995 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
31997 2013-04-09 Richard Biener <rguenther@suse.de>
31999 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32001 (vect_build_slp_tree): Likewise.
32002 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32003 calculating the cost of a SLP instance.
32004 (vect_analyze_slp_instance): Use it from here, after building
32007 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32009 PR middle-end/56883
32010 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32011 expand_omp_for_static_chunk): Use simple_p = true in
32012 force_gimple_operand_gsi calls when assigning to addressable decls.
32014 2013-04-09 Jeff Law <law@redhat.com>
32016 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32017 when the boolean was created by converting a wider object which
32018 had a boolean range.
32020 2013-04-09 Richard Biener <rguenther@suse.de>
32022 * tree-vectorizer.h (slp_void_p): Remove.
32023 (slp_tree): Typedef before _slp_tree declaration.
32024 (struct _slp_tree): Use a vector of slp_tree as children.
32025 (vect_get_place_in_interleaving_chain): Remove.
32026 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
32028 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
32030 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
32031 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
32032 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
32033 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
32034 Use slp_node instead of slp_void_p and adjust.
32036 2013-04-09 Richard Biener <rguenther@suse.de>
32038 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
32039 work that is not necessary.
32041 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32043 PR tree-optimization/56854
32044 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
32045 forward into clobber stmts if it would change MEM_REF lhs into
32048 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
32050 * tree.c (type_hash_lookup, type_hash_add): Make static.
32051 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
32053 2013-04-09 Richard Biener <rguenther@suse.de>
32055 * tree.h (unsave_expr_now): Remove.
32056 * tree-inline.c (mark_local_for_remap_r): Remove.
32057 (unsave_expr_1): Likewise.
32058 (unsave_r): Likewise.
32059 (unsave_expr_now): Likewise.
32060 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
32061 (propagate_tree_value): Likewise.
32063 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
32065 * doc/rtl.texi (sequence): Rewrite documentation to match the
32066 current use of SEQUENCE rtl objects.
32067 * rtl.def (SEQUENCE): Likewise.
32069 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
32070 Update documentation.
32071 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
32072 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
32074 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
32076 2013-04-08 Teresa Johnson <tejohnson@google.com>
32078 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
32079 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
32081 (estimate_edge_size_and_time): Add comment to suggest using rounding
32083 (estimate_node_size_and_time): Ditto.
32084 (remap_edge_change_prob): Use helper rounding divide methods.
32085 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
32086 (gimple_mod_pow2_value_transform): Ditto.
32087 (gimple_mod_subtract_transform): Ditto.
32088 (gimple_ic_transform): Ditto.
32089 (gimple_stringops_transform): Ditto.
32090 * stmt.c (conditional_probability): Ditto.
32091 (emit_case_dispatch_table): Ditto.
32092 * lto-cgraph.c (merge_profile_summaries): Ditto.
32093 * tree-optimize.c (execute_fixup_cfg): Ditto.
32094 * cfgcleanup.c (try_forward_edges): Ditto.
32095 * cfgloopmanip.c (scale_loop_profile): Ditto.
32097 (duplicate_loop_to_header_edge): Ditto.
32098 (lv_adjust_loop_entry_edge): Ditto.
32099 * tree-vect-loop.c (vect_transform_loop): Ditto.
32100 * profile.c (compute_branch_probabilities): Ditto.
32101 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
32102 * lto-streamer-in.c (input_cfg): Ditto.
32103 * gimple-streamer-in.c (input_bb): Ditto.
32104 * ipa-cp.c (update_profiling_info): Ditto.
32105 (update_specialized_profile): Ditto.
32106 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
32107 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
32109 * sched-rgn.c (compute_dom_prob_ps): Ditto.
32110 (compute_trg_info): Ditto.
32111 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
32112 (purge_dead_edges): Ditto.
32113 * loop-unswitch.c (unswitch_loop): Ditto.
32114 * cgraphclones.c (cgraph_clone_edge): Ditto.
32115 (cgraph_clone_node): Ditto.
32116 * tree-inline.c (copy_bb): Ditto.
32117 (copy_edges_for_bb): Ditto.
32118 (initialize_cfun): Ditto.
32119 (copy_cfg_body): Ditto.
32120 (expand_call_inline): Ditto.
32122 2013-04-08 Kai Tietz <ktietz@redhat.com>
32124 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
32125 TARGET_CYGWIN64 by TARGET_64BIT.
32127 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32129 * config/epiphany/epiphany.md (GPR_1): New constant.
32130 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
32131 * config/epiphany/epiphany.c (gen_compare_reg):
32132 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
32133 is already in place.
32134 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
32135 Don't require being called during rtl expansion; If y operlaps r0,
32137 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
32138 (epiphany_expand_epilogue): Likewise.
32140 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
32141 Don't use CC_FPmode for ORDERED / UNORDERED.
32142 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
32144 * config/epiphany/constraints.md (CnL): New constraint.
32145 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
32146 * config/epiphany/predicates.md (add_operand): Allow 1024.
32148 * config/epiphany/epiphany.md (logical_op): New code iterator.
32149 (op_mnc): New code attribute.
32150 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
32151 (mov_f+1, mov_f+2): New peephole2 patterns.
32153 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
32154 (cstoresi4): Also allow re-use of zero result when doing a NE
32155 comparison to a non-zero operand.
32156 Use (clobber (scratch)) for first insn if the gpr output is not needed.
32158 * config/epiphany/epiphany.md (<insn_opname>v2si3):
32159 Use gen_addsi3_i / gen_subsi3_i.
32161 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32165 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
32166 contain anything but clobbers, at most one __builtin_stack_restore,
32167 optionally debug stmts and final resx, and if it has at least one
32168 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
32169 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
32170 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
32171 which isn't defaut definition, remove them.
32172 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
32173 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
32174 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
32175 with MEM_REF LHS with SSA_NAME address.
32177 2013-04-08 Jeff Law <law@redhat.com>
32179 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
32181 2013-04-08 Richard Biener <rguenther@suse.de>
32183 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
32185 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
32186 determined vector type.
32187 (vect_analyze_data_refs): Likewise.
32188 (vect_get_new_vect_var): Adjust.
32189 (vect_create_destination_var): Preserve SSA name versions.
32190 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
32191 not dump anything here.
32193 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
32195 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
32196 Add member lr_slot_known.
32197 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
32199 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
32200 Remove code that sets lr_slot_offset according to what a previous
32201 version of epiphany_emit_save_restore used to do.
32202 (epiphany_emit_save_restore): When doing an lr save or restore,
32203 set/verify lr_slot_known and lr_slot_offset.
32205 2013-04-08 Xinyu Qi <xyqi@marvell.com>
32208 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
32211 2013-04-08 Richard Biener <rguenther@suse.de>
32213 * alias.c (find_base_term): Fix thinko in previous change.
32215 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32217 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32218 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32219 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32220 if possible to compute val.
32221 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32222 For QImode integers don't require anything about precision. Use
32223 const_with_all_bytes_same to find out if the constant doesn't have
32224 repeated bytes in it.
32226 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32228 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32231 2013-04-08 Marek Polacek <polacek@redhat.com>
32233 PR rtl-optimization/48182
32234 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32237 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32240 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32241 nuses, make sure we have a label.
32243 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32246 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32247 (rs6000_emit_swdiv_low_precision): Remove.
32248 (rs6000_emit_swdiv): Rewrite to handle between one and four
32249 iterations of Newton-Raphson generally; modify required number of
32250 iterations for some cases.
32251 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32253 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32255 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32256 set-but-unused variable.
32258 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32259 basic blocks of released function bodies garbage-collectable.
32261 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32262 (struct rtl_opt_pass): Add TODO_df_finish.
32264 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32266 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32268 * config/arm/constraints.md (q): New constraint.
32269 * config/arm/ldrdstrd.md: New file.
32270 * config/arm/arm.md (ldrdstrd.md) New include.
32271 (arm_movdi): Use "q" instead of "r" constraint
32272 for double-word memory access.
32273 (movdf_soft_insn): Likewise.
32274 * config/arm/vfp.md (movdi_vfp): Likewise.
32275 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
32276 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
32277 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
32278 (mem_ok_for_ldrd_strd): Likewise.
32279 (output_move_double): Update assertion.
32281 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32283 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
32285 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32287 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
32288 define_insn_and_split.
32289 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
32291 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32293 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
32294 define_insn_and_split.
32295 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
32296 (shiftsi3_compare): New pattern.
32297 (rrx): New pattern.
32298 * config/arm/unspecs.md (UNSPEC_RRX): New.
32300 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32302 * config/arm/arm.md (negdi_extendsidi): New pattern.
32303 (negdi_zero_extendsidi): Likewise.
32305 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32307 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
32308 define_insn_and_split.
32309 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
32310 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
32312 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32314 * config/arm/arm.md (arm_subdi3): Convert define_insn into
32315 define_insn_and_split.
32316 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
32317 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
32319 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32321 * config/arm/arm.md (subsi3_carryin): New pattern.
32322 (subsi3_carryin_const): Likewise.
32323 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
32324 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
32326 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32328 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
32330 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32332 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
32333 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
32335 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32337 * config/arm/arm.c (arm_expand_builtin): Change fcode
32338 type to unsigned int.
32340 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32342 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
32344 2013-04-04 Ian Lance Taylor <iant@google.com>
32346 * doc/standards.texi (Standards): The Go frontend supports the Go 1
32349 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
32351 PR middle-end/56729
32352 * df-scan.c (df_insn_delete): Disable failing assert.
32354 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32356 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
32357 New function prototype.
32358 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
32359 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
32360 (arm_builtin_vectorized_function): New function.
32362 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32364 * config/arm/arm_neon_builtins.def: New file.
32365 * config/arm/arm.c (neon_builtin_data): Move contents to
32366 arm_neon_builtins.def.
32367 (enum arm_builtins): Include neon builtin definitions.
32368 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
32369 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
32371 2013-04-04 Marek Polacek <polacek@redhat.com>
32373 PR tree-optimization/48186
32374 * predict.c (maybe_hot_frequency_p): Return false if
32375 HOT_BB_FREQUENCY_FRACTION is 0.
32376 (cgraph_maybe_hot_edge_p): Likewise.
32378 2013-04-04 Richard Biener <rguenther@suse.de>
32380 PR tree-optimization/56826
32381 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
32384 2013-04-04 Richard Biener <rguenther@suse.de>
32386 PR tree-optimization/56213
32387 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
32388 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
32390 2013-04-04 Richard Biener <rguenther@suse.de>
32392 PR tree-optimization/56837
32393 * tree-loop-distribution.c (classify_partition): For non-zero
32394 values require that the value has the same precision as its
32395 mode to be useful as memset value.
32397 2013-04-03 Nick Clifton <nickc@redhat.com>
32399 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
32400 (fmssf4): Use fmsf.s on E3V5 architectures.
32401 (fnmasf4): Use fnmaf.s on E3V5 architectures.
32402 (fnmssf4): Use fnmsf.s on E3V5 architectures.
32404 2013-04-03 Jeff Law <law@redhat.com>
32406 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
32407 (lra-eliminations.o): Likewise.
32409 2013-04-03 Teresa Johnson <tejohnson@google.com>
32411 * gcov-io.c (compute_working_sets): Moved most of body of old
32412 compute_working_sets here from profile.c.
32413 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
32414 (gcov_working_set_t): Moved typedef here from basic-block.h
32415 (compute_working_set): Declare.
32416 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
32417 (get_working_sets): Renamed from compute_working_set,
32418 replace most of body with call to new compute_working_sets.
32419 (get_exec_counts): Replace call to compute_working_sets
32420 to get_working_sets.
32421 * profile.h (get_working_sets): Renamed from compute_working_set.
32422 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
32423 to get_working_sets.
32424 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
32425 * gcov-dump.c (dump_working_sets): New function.
32427 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
32429 * hwint.c (sext_hwi, zext_hwi): New functions.
32430 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
32431 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
32432 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
32433 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
32434 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
32435 (sext_hwi, zext_hwi): New functions.
32437 2013-04-03 Jeff Law <law@redhat.com>
32439 PR tree-optimization/56799
32440 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
32441 back test for widening conversion erroneously dropped in prior change.
32443 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32446 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
32447 instead of next_real_insn.
32449 2013-04-03 Marek Polacek <polacek@redhat.com>
32452 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
32454 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32457 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
32459 (thumb1_output_casesi): Likewise.
32460 (thumb2_output_casesi): Likewise.
32462 2013-04-03 Richard Biener <rguenther@suse.de>
32464 PR tree-optimization/56817
32465 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
32467 (tree_unroll_loops_completely_1): ... new function to manually
32468 walk the loop tree, properly defering outer loops of unrolled
32469 loops to later iterations.
32471 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32473 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
32474 (vectorizable_load): Likewise.
32475 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
32476 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
32478 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32480 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
32483 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32485 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
32487 2013-04-03 Bin Cheng <bin.cheng@arm.com>
32489 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
32491 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32493 PR tree-optimization/56790
32494 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
32497 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32499 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
32501 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
32502 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
32505 2013-04-03 Jakub Jelinek <jakub@redhat.com>
32508 * tree.h (force_folding_builtin_constant_p): New decl.
32509 * builtins.c (force_folding_builtin_constant_p): New variable.
32510 (fold_builtin_constant_p): Fold immediately also if
32511 force_folding_builtin_constant_p.
32513 2013-04-03 Richard Biener <rguenther@suse.de>
32515 PR tree-optimization/56812
32516 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
32517 DRs of the same interleaving chain are independent.
32519 2013-04-02 Jason Merrill <jason@redhat.com>
32521 * gdbinit.in (pbb): Use debug fn.
32523 2013-04-02 Lawrence Crowl <crowl@google.com>
32525 * sese.h (struct ivtype_map_elt_s): Remove unused.
32526 (extern debug_ivtype_map): Remove unused.
32527 (extern eq_ivtype_map_elts): Remove unused.
32528 * sese.c (debug_ivtype_map): Removed unused.
32529 (debug_ivtype_map_1): Removed unused.
32530 (debug_ivtype_elt): Remove unused.
32531 (eq_ivtype_map_elts): Remove unused.
32533 2013-04-02 Kai Tietz <ktietz@redhat.com>
32536 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
32537 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
32538 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
32540 (legitimize_pe_coff_symbol): Likewise.
32541 (is_imported_p): New helper-function.
32542 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
32543 for Windows x64 targets.
32544 (ix86_expand_prologue): Optimize for pe-coff targets.
32545 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
32546 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
32547 medium/large code-model.
32548 (legitimize_pic_address): Likewise.
32549 (legitimize_tls_address): Likewise.
32550 (ix86_expand_call): Likewise.
32551 (x86_output_mi_thunk): Likewise.
32552 (get_dllimport_decl): Add new beimport argument.
32553 (construct_plt_address): Don't assert for x64 pe-coff targets.
32554 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
32556 (SYMBOL_FLAG_STUBVAR): New macro.
32557 (SYMBOL_REF_STUBVAR_P): Likewise.
32558 * config/i386/winnt.c (stub_list): New structure.
32559 (stub_head): New local variable.
32560 (i386_pe_record_stub): New function.
32561 (i386_pe_file_end): Emit refptr-stubs.
32563 2013-04-02 Jakub Jelinek <jakub@redhat.com>
32565 PR rtl-optimization/56745
32566 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
32567 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
32570 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
32571 and both of them are MEM_REFs, just compare first argument for
32572 equality and attempt to deal even with differing offsets.
32575 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
32576 of gimple_clobber_p to be MEM_REF.
32577 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
32578 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
32579 after gimplification.
32580 * asan.c (get_mem_ref_of_assignment): Don't instrument
32581 gimple_clobber_p stmts.
32582 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
32583 gimple_clobber_p stmt if they have MEM_REF lhs and
32584 are dead because of another gimple_clobber_p stmt.
32585 * tree-ssa-live.c (clear_unused_block_pointer): Treat
32586 gimple_clobber_p stmts like debug stmts.
32587 (remove_unused_locals): Remove clobbers with MEM_REF lhs
32588 that refer to unused VAR_DECLs or uninitialized values.
32589 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
32590 gimple_clobber_p stmts if they refer to removed parameters.
32591 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
32594 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
32596 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
32597 using SWI48 mode attribute.
32599 2013-04-02 Wei Mi <wmi@google.com>
32601 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
32602 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
32603 *<rotate_insn><mode>3_mask in i386.md.
32605 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
32607 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
32609 2013-04-02 Richard Biener <rguenther@suse.de>
32611 PR tree-optimization/56778
32612 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32613 Runtime alias tests are not supported for gather loads.
32614 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
32615 stmts referenced from SSA operands before updating SSA form.
32617 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
32618 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32620 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
32621 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
32622 * config/arm/cortex-a53.md: New file.
32623 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
32624 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
32625 * config/arm/arm.c (arm_issue_rate): Likewise.
32626 * config/arm/arm-tune.md: Regenerate
32627 * config/arm/arm-tables.opt: Regenerate.
32628 * config/arm/arm-cores.def: Add cortex-a53.
32630 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
32632 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
32635 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32637 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
32638 scalar load/store operations using B/H registers.
32639 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
32641 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32643 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
32645 * config/aarch64/aarch64.c
32646 (aarch64_simd_scalar_immediate_valid_for_move): New.
32647 * config/aarch64/aarch64-protos.h
32648 (aarch64_simd_scalar_immediate_valid_for_move): New.
32649 * config/aarch64/constraints.md (Dh, Dq): New.
32650 * config/aarch64/iterators.md (hq): New.
32652 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
32654 * reorg.c (get_branch_condition): Deal with conditional returns.
32655 (fill_simple_delay_slots): Remove dead code dealing with jumps.
32657 2013-04-01 Wei Mi <wmi@google.com>
32659 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
32660 Truncate operand 2 using %b asm operand modifier.
32661 (*<shift_insn><mode>3_mask): Ditto.
32662 (*<rotate_insn><mode>3_mask): Ditto.
32664 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
32666 PR middle-end/56798
32667 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
32669 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
32671 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
32673 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
32675 2013-03-30 Lawrence Crowl <crowl@google.com>
32677 * dse.c (clear_alias_sets): Remove never set.
32678 (disqualified_clear_alias_sets): Remove never set.
32679 (clear_alias_mode_pool): Remove never set.
32680 (dse_step0): Remove condition that is never true.
32681 (canon_address): Remove condition that is never true.
32682 (dse_step7): Remove condition that is never true.
32683 (rest_of_handle_dse): Remove condition that is never true.
32684 (rest_of_handle_dse::did_global): Remove never read from above.
32685 (dse_step2_spill): Remove never called from above.
32686 (dse_step5_spill): Remove never called from above.
32688 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
32690 * doc/md.texi (Standard Names) <casesi>: Update documentation for
32691 JUMP_TABLE_DATA changes.
32692 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
32693 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
32694 (Insns) <jump_table_data>: New entry.
32695 * doc/tm.texi: Regenerate.
32697 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
32699 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
32700 for table jump at the end of a basic block using tablejump_p.
32701 * targhooks.c (default_invalid_within_doloop): Likewise.
32702 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
32703 target hook implementation that is identical to the default hook.
32704 (rs6000_invalid_within_doloop): Remove.
32706 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
32707 unused variable from tablejump_p call.
32709 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
32710 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
32711 (INSN_DELETED_P): Likewise.
32712 (emit_jump_table_data): New prototype.
32713 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
32714 after 4th as unused.
32715 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
32716 * sched-vis.c (print_insn): Likewise.
32717 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
32718 insn for compatibility with back ends that use next_active_insn to
32719 identify jump table data.
32720 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
32721 (remove_insn): Likewise.
32722 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
32724 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
32725 (emit_jump_table_data): New function.
32727 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
32728 basic block, a JUMP_TABLE_DATA never is.
32729 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
32730 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
32731 off from code handling real insns.
32732 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
32733 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
32734 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
32735 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
32736 is not a NONDEBUG_INSN_P.
32737 * ira-costs.c (scan_one_insn): Likewise.
32738 * jump.c (mark_all_labels): Likewise.
32739 (mark_jump_label_1): Likewise.
32740 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32741 * lra.c (get_insn_freq): Expect all insns reaching here to be in
32743 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
32744 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
32745 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
32746 JUMP_TABLE_DATA_P insns.
32747 (calculate_elim_costs_all_insns): Likewise.
32748 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
32749 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
32750 (delete_output_reload): Code style fixups.
32751 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
32752 insn flags on this non-insn.
32753 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
32754 as scheduling barriers, for pre-change compatibility.
32755 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
32756 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
32758 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
32759 redundant JUMP_TABLE_DATA_P test.
32760 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
32761 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32762 (frv_for_each_packet): Likewise.
32763 * config/i386/i386.c (min_insn_size): Likewise.
32764 (ix86_avoid_jump_mispredicts): Likewise.
32765 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32766 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
32767 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32768 (mips16_insn_length): Robustify.
32769 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
32770 (mips16_split_long_branches): Likewise.
32771 * config/pa/pa.c (pa_combine_instructions): Likewise.
32772 * config/rs6000/rs6000.c (get_next_active_insn): Treat
32773 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
32774 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
32775 as contributing to pool range lengths.
32776 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
32777 Remove redundant JUMP_TABLE_DATA_P test.
32778 (sh_loop_align): Likewise.
32779 (split_branches): Likewise.
32780 (sh_insn_length_adjustment): Likewise.
32781 * config/spu/spu.c (get_branch_target): Likewise.
32783 2013-03-29 Jan Hubicka <jh@suse.cz>
32785 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
32786 gcov streaming; stream hot bb threshold to ltrans.
32787 * predict.c (get_hot_bb_threshold): Break out from ....
32788 (maybe_hot_count_p): ... here.
32789 (set_hot_bb_threshold): New function.
32790 * lto-section-in.c (lto_section_name): Add profile.
32791 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
32792 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
32793 and data-streamer.h
32794 (histogram_entry): New structure.
32795 (histogram, histogram_pool): New global vars.
32796 (histogram_hash): New structure.
32797 (histogram_hash::hash): New method.
32798 (histogram_hash::equal): Likewise.
32799 (account_time_size): New function.
32800 (cmp_counts): New function.
32801 (dump_histogram): New function.
32802 (ipa_profile_generate_summary): New function.
32803 (ipa_profile_write_summary): New function.
32804 (ipa_profile_read_summary): New function.
32805 (ipa_profile): Decide on threshold.
32806 (pass_ipa_profile): Add ipa_profile_write_summary and
32807 ipa_profile_read_summary.
32808 * Makefile.in (ipa.o): Update dependencies.
32809 * lto-streamer.h (LTO_section_ipa_profile): New section.
32811 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
32813 * tree.h (VAR_P): New.
32815 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
32818 * doc/invoke.texi ([-fwhole-program]): Fix typo.
32820 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
32822 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
32823 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32824 (control_flow_insn_p): Likewise.
32825 * cfgrtl.c (duplicate_insn_chain): Likewise.
32826 * final.c (get_attr_length_1): Likewise.
32827 (shorten_branches): Likewise.
32828 (final_scan_insn): Likewise.
32829 * function.c (instantiate_virtual_regs): Likewise.
32830 * gcse.c (insert_insn_end_basic_block): Likewise.
32831 * ira-costs.c (scan_one_insn): Likewise.
32832 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32833 * lra.c (check_rtl): Likewise.
32834 * reload1.c (elimination_costs_in_insn): Likewise.
32835 * reorg.c (follow_jumps): Likewise.
32837 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
32838 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32839 (thumb_far_jump_used_p): Likewise.
32840 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
32841 (workaround_speculation): Likewise.
32842 (add_sched_insns_for_speculation): Likewise.
32843 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
32844 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32845 (frv_for_each_packet): Likewise.
32846 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
32847 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
32848 (final_emit_insn_group_barriers): Likewise.
32849 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32850 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32851 (mips16_insn_length): Likewise.
32852 * config/pa/pa.c (pa_reorg): Likewise.
32853 (pa_combine_instructions): Likewise.
32854 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
32855 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
32856 (sh_reorg): Likewise.
32857 (split_branches): Likewise.
32858 * config/spu/spu.c (get_branch_target): Likewise.
32860 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
32863 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
32865 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
32866 Fix declaration name.
32868 2013-03-28 Lawrence Crowl <crowl@google.com>
32870 * graphds.h (struct graph.indicies): Remove unused.
32871 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
32872 (SCOP_ORIGINAL_PDDRS): Remove unused.
32873 * sese.h (extern insert_loop_close_phis): Removed unused.
32874 (extern insert_guard_phis): Removed unused.
32875 (extern ivtype_map_elt_info): Removed unused.
32876 (new_ivtype_map_elt): Removed unused.
32877 * sese.c (ivtype_map_elt_info): Removed unused.
32879 2013-03-28 Lawrence Crowl <crowl@google.com>
32881 * Makefile.in: Add several missing include dependences.
32883 (test-dump.o): New. This object is not added to any executable,
32884 but is present for ad-hoc testing.
32886 (debug (const bitmap_head_def &)): New.
32887 (debug (const bitmap_head_def *)): New.
32889 (extern debug (const bitmap_head_def &)): New.
32890 (extern debug (const bitmap_head_def *)): New.
32892 (debug (edge_def &)): New.
32893 (debug (edge_def *)): New.
32895 (debug (basic_block_def &)): New.
32896 (debug (basic_block_def *)): New.
32898 (dump_node (const_tree, int, FILE *)): Correct source file.
32900 (debug (die_struct &)): New.
32901 (debug (die_struct *)): New.
32903 (extern debug (die_struct &)): New.
32904 (extern debug (die_struct *)): New.
32905 * gimple-pretty-print.c
32906 (debug (gimple_statement_d &)): New.
32907 (debug (gimple_statement_d *)): New.
32908 * gimple-pretty-print.h
32909 (extern debug (gimple_statement_d &)): New.
32910 (extern debug (gimple_statement_d *)): New.
32912 (debug (ira_allocno_copy &)): New.
32913 (debug (ira_allocno_copy *)): New.
32914 (debug (ira_allocno &)): New.
32915 (debug (ira_allocno *)): New.
32917 (extern debug (ira_allocno_copy &)): New.
32918 (extern debug (ira_allocno_copy *)): New.
32919 (extern debug (ira_allocno &)): New.
32920 (extern debug (ira_allocno *)): New.
32922 (debug (live_range &)): New.
32923 (debug (live_range *)): New.
32925 (debug (lra_live_range &)): New.
32926 (debug (lra_live_range *)): New.
32928 (debug (lra_live_range &)): New.
32929 (debug (lra_live_range *)): New.
32931 (debug (omega_pb_d &)): New.
32932 (debug (omega_pb_d *)): New.
32934 (extern debug (omega_pb_d &)): New.
32935 (extern debug (omega_pb_d *)): New.
32937 (debug (const rtx_def &)): New.
32938 (debug (const rtx_def *)): New.
32940 (debug_tree (tree): Move within file.
32941 (debug_raw (const tree_node &)): New.
32942 (debug_raw (const tree_node *)): New.
32943 (dump_tree_via_hooks (const tree_node *, int)): New.
32944 (debug (const tree_node &)): New.
32945 (debug (const tree_node *)): New.
32946 (debug_verbose (const tree_node &)): New.
32947 (debug_verbose (const tree_node *)): New.
32948 (debug_head (const tree_node &)): New.
32949 (debug_head (const tree_node *)): New.
32950 (debug_body (const tree_node &)): New.
32951 (debug_body (const tree_node *)): New.
32952 (debug_vec_tree (tree): Move and reimplement in terms of dump.
32953 (debug (vec<tree, va_gc> &)): New.
32954 (debug (vec<tree, va_gc> *)): New.
32956 (extern debug (const rtx_def &)): New.
32957 (extern debug (const rtx_def *)): New.
32959 (debug_raw (simple_bitmap_def &)): New.
32960 (debug_raw (simple_bitmap_def *)): New.
32961 (debug (simple_bitmap_def &)): New.
32962 (debug (simple_bitmap_def *)): New.
32964 (extern debug (simple_bitmap_def &)): New.
32965 (extern debug (simple_bitmap_def *)): New.
32966 (extern debug_raw (simple_bitmap_def &)): New.
32967 (extern debug_raw (simple_bitmap_def *)): New.
32969 (debug (vinsn_def &)): New.
32970 (debug (vinsn_def *)): New.
32971 (debug_verbose (vinsn_def &)): New.
32972 (debug_verbose (vinsn_def *)): New.
32973 (debug (expr_def &)): New.
32974 (debug (expr_def *)): New.
32975 (debug_verbose (expr_def &)): New.
32976 (debug_verbose (expr_def *)): New.
32977 (debug (vec<rtx> &)): New.
32978 (debug (vec<rtx> *)): New.
32980 (extern debug (vinsn_def &)): New.
32981 (extern debug (vinsn_def *)): New.
32982 (extern debug_verbose (vinsn_def &)): New.
32983 (extern debug_verbose (vinsn_def *)): New.
32984 (extern debug (expr_def &)): New.
32985 (extern debug (expr_def *)): New.
32986 (extern debug_verbose (expr_def &)): New.
32987 (extern debug_verbose (expr_def *)): New.
32988 (extern debug (vec<rtx> &)): New.
32989 (extern debug (vec<rtx> *)): New.
32991 (_list_iter_cond_expr): Make inline instead of static.
32993 (debug (sreal &)): New.
32994 (debug (sreal *)): New.
32996 (extern debug (sreal &)): New.
32997 (extern debug (sreal *)): New.
32999 (extern debug_raw (const tree_node &)): New.
33000 (extern debug_raw (const tree_node *)): New.
33001 (extern debug (const tree_node &)): New.
33002 (extern debug (const tree_node *)): New.
33003 (extern debug_verbose (const tree_node &)): New.
33004 (extern debug_verbose (const tree_node *)): New.
33005 (extern debug_head (const tree_node &)): New.
33006 (extern debug_head (const tree_node *)): New.
33007 (extern debug_body (const tree_node &)): New.
33008 (extern debug_body (const tree_node *)): New.
33009 (extern debug (vec<tree, va_gc> &)): New.
33010 (extern debug (vec<tree, va_gc> *)): New.
33012 (debug (struct loop &)): New.
33013 (debug (struct loop *)): New.
33014 (debug_verbose (struct loop &)): New.
33015 (debug_verbose (struct loop *)): New.
33016 * tree-dump.c: Add header dependence.
33018 (extern debug (struct loop &)): New.
33019 (extern debug (struct loop *)): New.
33020 (extern debug_verbose (struct loop &)): New.
33021 (extern debug_verbose (struct loop *)): New.
33023 (debug (data_reference &)): New.
33024 (debug (data_reference *)): New.
33025 (debug (vec<data_reference_p> &)): New.
33026 (debug (vec<data_reference_p> *)): New.
33027 (debug (vec<ddr_p> &)): New.
33028 (debug (vec<ddr_p> *)): New.
33030 (extern debug (data_reference &)): New.
33031 (extern debug (data_reference *)): New.
33032 (extern debug (vec<data_reference_p> &)): New.
33033 (extern debug (vec<data_reference_p> *)): New.
33034 (extern debug (vec<ddr_p> &)): New.
33035 (extern debug (vec<ddr_p> *)): New.
33037 (debug (pt_solution &)): New.
33038 (debug (pt_solution *)): New.
33040 (extern debug (pt_solution &)): New.
33041 (extern debug (pt_solution *)): New.
33043 (debug (_var_map &)): New.
33044 (debug (_var_map *)): New.
33045 (debug (tree_live_info_d &)): New.
33046 (debug (tree_live_info_d *)): New.
33048 (extern debug (_var_map &)): New.
33049 (extern debug (_var_map *)): New.
33050 (extern debug (tree_live_info_d &)): New.
33051 (extern debug (tree_live_info_d *)): New.
33053 2013-03-28 Jan Hubicka <jh@suse.cz>
33055 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
33057 2013-03-28 Ian Bolton <ian.bolton@arm.com>
33059 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
33060 record only when desired or required.
33062 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
33064 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
33065 *vec_extractv2di_1_rex64. Use x64 isa attribute.
33067 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33069 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
33070 (*andsi3_compare0_uxtw): New pattern.
33071 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
33072 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
33074 2013-03-28 Jan Hubicka <jh@suse.cz>
33076 * data-streamer-in.c (streamer_read_gcov_count): New function.
33077 * gimple-streamer-out.c: Include value-prof.h.
33078 (output_gimple_stmt): Output histogram.
33079 (output_bb): Use streamer_write_gcov_count.
33080 * value-prof.c: Include data-streamer.h
33081 (dump_histogram_value): Add HIST_TYPE_MAX.
33082 (stream_out_histogram_value): New function.
33083 (stream_in_histogram_value): New function.
33084 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
33085 (stream_out_histogram_value, stream_in_histogram_value): Declare.
33086 * data-streamer-out.c (streamer_write_gcov_count): New function.
33087 (streamer_write_gcov_count_stream): New function.
33088 * lto-cgraph.c (lto_output_edge): Update counter streaming.
33089 (lto_output_node): Likewise.
33090 (input_node, input_edge): Likewise.
33091 * lto-streamer-out.c (output_cfg): Update streaming.
33092 * lto-streamer-in.c (input_cfg): Likewise.
33093 * data-streamer.h (streamer_write_gcov_count,
33094 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
33095 * gimple-streamer-in.c: Include value-prof.h
33096 (input_gimple_stmt): Input histograms.
33097 (input_bb): Update profile streaming.
33099 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33101 * genmodes.c (emit_max_int): New function.
33102 (emit_insn_modes_h): Added call to emit_max_function.
33103 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
33105 * machmode.def: Fixed comment.
33107 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
33109 * combine.c (try_combine): Removed useless assert.
33110 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
33112 2013-03-28 Marek Polacek <polacek@redhat.com>
33113 Richard Biener <rguenther@suse.de>
33115 PR tree-optimization/56695
33116 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
33117 build signed result of a vector comparison.
33118 * tree-cfg.c (verify_gimple_comparison): Check that a result
33119 of a vector comparison has signed type.
33121 2013-03-28 Richard Biener <rguenther@suse.de>
33123 PR tree-optimization/37021
33124 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
33125 do not restrict gaps between groups.
33126 * tree-vect-stmts.c (vectorizable_load): Properly account for
33127 a gap between groups.
33129 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
33131 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
33132 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
33135 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
33137 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
33138 * doc/extend.texi (Named Address Spaces): Ditto.
33139 (Variable Attributes): Ditto.
33141 2013-03-27 Kai Tietz <ktietz@redhat.com>
33143 * config.build: Add support for cygwin x64 target.
33144 * config.gcc: Likewise.
33145 * config.host: Likewise.
33146 * configure.ac: Likewise
33147 * configure: Regenerated.
33149 2013-03-27 Kai Tietz <ktietz@redhat.com>
33151 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
33152 * config/i386/t-cygwin-w64: New file.
33153 * config/i386/cygwin-w64.h: New file.
33154 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
33155 and add support for x64-cygwin target.
33156 (CPP_SPEC): Likewise.
33157 (CXX_WRAP_SPEC_LIST): Undefine before define.
33158 (LIBGCJ_SONAME): Use 15 as version.
33160 2013-03-27 Richard Biener <rguenther@suse.de>
33162 PR tree-optimization/56716
33163 * tree-ssa-structalias.c (perform_var_substitution): Adjust
33164 dumping for ref nodes.
33166 2013-03-27 Martin Jambor <mjambor@suse.cz>
33168 PR tree-optimization/55334
33169 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
33170 restricted pointers to arrays.
33172 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
33174 * Makefile.in (.SUFFIXES): Add .cc.
33175 (.c.o): Apply same recipe for implicit rule .cc.o.
33177 2013-03-27 Richard Biener <rguenther@suse.de>
33179 PR tree-optimization/37021
33180 * tree-vect-data-refs.c (vect_check_strided_load): Allow
33181 REALPART/IMAGPART_EXPRs around the supported refs.
33182 * tree-ssa-structalias.c (find_func_aliases): Assume that
33183 floating-point values are not used to transfer pointers.
33185 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
33187 * target.def (TARGET_HAS_IFUNC_P): New target hook.
33188 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
33189 * doc/tm.texi: Regenerate.
33190 * targhooks.h (default_has_ifunc_p): New.
33191 * targhooks.c (default_has_ifunc_p): Ditto.
33192 * config/linux-protos.h: New file.
33193 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
33194 hook for linux which disables support of indirect functions in android.
33195 * config/linux-android.c: New file.
33196 * config/t-linux-android.c: Ditto.
33197 * config.gcc: Added new object file linux-android.o.
33198 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
33199 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
33200 * varasm.c (do_assemble_alias): Likewise.
33201 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
33202 doesn't support indirect functions.
33203 * configure: Regenerate.
33205 2013-03-27 Bin Cheng <bin.cheng@arm.com>
33208 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
33209 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33212 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33214 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33216 2013-03-27 Terry Guo <terry.guo@arm.com>
33218 * config/arm/arm-cores.def: Added core cortex-r7.
33219 * config/arm/arm-tune.md: Regenerated.
33220 * config/arm/arm-tables.opt: Regenerated.
33221 * doc/invoke.texi: Added entry for core cortex-r7.
33223 2013-03-27 Walter Lee <walt@tilera.com>
33225 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33226 double-decrement of next_scratch_regno.
33228 2013-03-27 Walter Lee <walt@tilera.com>
33230 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33232 (insn_v1mulus): Ditto.
33233 (insn_v2muls): Ditto.
33235 2013-03-27 Walter Lee <walt@tilera.com>
33237 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33238 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33240 2013-03-27 Walter Lee <walt@tilera.com>
33242 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33243 (*sibcall_value): Ditto.
33245 2013-03-27 Walter Lee <walt@tilera.com>
33247 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33248 (insn_mnz_v8qi): ... this ...
33249 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33251 (insn_v<n>mnz): Replaced by ...
33252 (insn_v1mnz): ... this ...
33253 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33255 (insn_mz_<mode>): Replaced by ...
33256 (insn_mz_v8qi): ... this ...
33257 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33259 (insn_v<n>mz): Replaced by ...
33260 (insn_v1mz): ... this ...
33261 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33264 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33266 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33268 2013-03-26 Roland McGrath <mcgrathr@google.com>
33270 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33271 than fprintf with a non-constant, non-format string.
33273 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33275 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
33276 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
33277 operand 0 predicate.
33278 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
33279 attribute. Use general_x64nomem_operand as operand 1 predicate.
33280 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
33281 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33282 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
33283 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33284 (mov<mode>_insv_1): Remove expander. Merge insn with
33285 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
33286 Use general_x64nomem_operand as operand 1 predicate.
33287 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
33288 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
33289 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33290 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
33291 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
33292 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
33293 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33294 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
33295 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
33296 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
33297 (general_x64nomem_operand): Ditto.
33299 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
33301 * config/rtems.opt: Add -pthread option.
33303 2013-03-26 Richard Biener <rguenther@suse.de>
33305 * alias.c (find_base_term): Avoid redundant and not used recursion.
33306 (base_alias_check): Get the initial base term from the caller.
33307 (true_dependence_1): Compute and pass base terms to base_alias_check.
33308 (write_dependence_p): Likewise.
33309 (may_alias_p): Likewise.
33311 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
33313 * config/aarch64/aarch64.c (aarch64_classify_address): Support
33314 PC-relative load in SI modes and above only.
33316 2013-03-26 Xinyu Qi <xyqi@marvell.com>
33318 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33319 * config/arm/iwmmxt.md (WCGR0): Update.
33320 (WCGR1, WCGR2, WCGR3): Likewise.
33322 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33324 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
33325 Use x64 and nox64 isa attributes.
33327 2013-03-26 Richard Biener <rguenther@suse.de>
33329 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
33330 alignment computations and rely on get_object_alignment_1
33331 for the !TYPE_P case.
33332 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
33334 2013-03-26 Walter Lee <walt@tilera.com>
33336 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
33337 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
33339 2013-03-25 Jeff Law <law@redhat.com>
33341 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
33342 check for INTEGRAL_TYPE_P that was missing due to checking in
33343 wrong version of prior patch.
33345 2013-03-25 Walter Lee <walt@tilera.com>
33347 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
33348 TILEGX_INSN_SHUFFLEBYTES1.
33349 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
33351 (tilegx_builtins): Ditto.
33352 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
33354 2013-03-25 Walter Lee <walt@tilera.com>
33356 * config/tilegx/tilegx.md (floatsisf2): New pattern.
33357 (floatunssisf2): New pattern.
33358 (floatsidf2): New pattern.
33359 (floatunssidf2): New pattern.
33361 2013-03-25 Walter Lee <walt@tilera.com>
33363 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
33364 tests for constraint J, K, N, P.
33366 2013-03-25 Walter Lee <walt@tilera.com>
33368 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
33369 Use indirect/pcrel encoding.
33370 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
33373 2013-03-25 Steve Ellcey <sellcey@mips.com>
33375 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
33376 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
33377 * config/mips/mips.c (mips_option_override): Set IMADD default.
33378 * config/mips/mips.h (PTF_AVOID_IMADD): New.
33379 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
33380 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
33381 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
33382 * doc/invoke.texi (-mimadd/-mno-imadd): New.
33384 2013-03-25 Jeff Law <law@redhat.com>
33386 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
33387 slightly to avoid creating and folding useless trees. Simplify
33388 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
33390 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
33392 * config/i386/i386.md (*zero_extendsidi2): Merge with
33393 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
33394 * config/i386/predicates.md (x86_64_zext_operand): Rename from
33395 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
33396 targets. Clarify comment.
33398 2013-03-25 Martin Jambor <mjambor@suse.cz>
33400 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
33401 pass-through jump functions differently.
33402 (ipa_read_jump_function): Likewise. Also use setter functions to set
33405 2013-03-25 Martin Jambor <mjambor@suse.cz>
33407 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
33408 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
33410 (ipa_get_indirect_edge_target): New function.
33411 (devirtualization_time_bonus): New parameter known_aggs, pass it to
33412 ipa_get_indirect_edge_target. Update all callers.
33413 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
33414 ipa_get_indirect_edge_target_1 instead of calling
33415 ipa_get_indirect_edge_target.
33416 (create_specialized_node): Pass aggvlas to
33417 ipcp_discover_new_direct_edges.
33419 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33421 * config/arm/arm.md (f_sels, f_seld): New types.
33422 (*cmov<mode>): New pattern.
33423 * config/arm/predicates.md (arm_vsel_comparison_operator): New
33426 2013-03-25 Kai Tietz <ktietz@redhat.com>
33428 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
33429 POSIX-printf for mingw-hosted builds.
33431 2013-03-25 Richard Biener <rguenther@suse.de>
33433 PR middle-end/56694
33434 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
33435 must-not-throw stmt location.
33437 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33439 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
33440 Emit load-acquire versions when acq is true.
33441 (arm_emit_store_exclusive): Add rel parameter.
33442 Emit store-release versions when rel is true.
33443 (arm_split_compare_and_swap): Use acquire-release instructions
33445 of barriers when appropriate.
33446 (arm_split_atomic_op): Likewise.
33447 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
33448 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
33449 (VUNSPEC_SLX): Likewise.
33450 (VUNSPEC_LDA): Likewise.
33451 (VUNSPEC_STL): Likewise.
33452 * config/arm/sync.md (atomic_load<mode>): New pattern.
33453 (atomic_store<mode>): Likewise.
33454 (arm_load_acquire_exclusive<mode>): Likewise.
33455 (arm_load_acquire_exclusivesi): Likewise.
33456 (arm_load_acquire_exclusivedi): Likewise.
33457 (arm_store_release_exclusive<mode>): Likewise.
33459 2013-03-25 Catherine Moore <clm@codesourcery.com>
33461 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
33462 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
33463 * config/mip/predicates.md (lwsp_swsp_operand,
33464 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
33465 sb16_operand, db4_operand, db7_operand, ib3_operand,
33466 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
33467 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
33468 andi16_operand): New predicates.
33469 * config/mips/mips.md (compression): New attribute.
33470 (enabled): New attribute.
33471 (length): Consider compression in computing length.
33472 (shift_compression): New code attribute.
33473 (*add<mode>3): New operands. Record compression.
33474 (sub<mode>3): Likewise.
33475 (one_cmpl<mode>2): Likewise.
33476 (*and<mode>3): Likewise.
33477 (*ior<mode>3): Likewise.
33478 (unnamed pattern for xor): Likewise.
33479 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
33480 (*<optab><mode>3): Likewise.
33481 (*mov<mode>_internal: Likewise.
33482 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
33483 (mips_unsigned_immediate_p): New.
33484 (umips_lwsp_swsp_address_p): New.
33485 (m16_based_address_p): New.
33486 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
33487 (mips_unsigned_immediate_p): New prototype.
33488 (lwsp_swsp_address_p): New prototype.
33489 (m16_based_address_p): New prototype.
33490 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
33491 (mips_signed_immediate_p): New function.
33492 (m16_based_address_p): New function.
33493 (lwsp_swsp_address_p): New function.
33494 (mips_print_operand_punctuation): Recognize short delay slot insns
33495 for microMIPS.add<mode>3"
33497 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33500 * config/arm/iterators.md (v_cmp_result): New mode attribute.
33501 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
33503 2013-03-25 Richard Biener <rguenther@suse.de>
33505 PR tree-optimization/56689
33506 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
33509 2013-03-25 Richard Biener <rguenther@suse.de>
33511 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
33513 (memory_references): Likewise.
33514 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
33515 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
33516 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
33517 (gather_mem_refs_in_loops): Fold into ...
33518 (analyze_memory_references): ... this. Move initialization
33519 to tree_ssa_lim_initialize.
33520 (fill_always_executed_in): Rename to ...
33521 (fill_always_executed_in_1): ... this.
33522 (fill_always_executed_in): Move contains_call computation to
33523 this new function from ...
33524 (tree_ssa_lim_initialize): ... here.
33525 (tree_ssa_lim): Call fill_always_executed_in.
33527 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33529 * postreload.c (reload_combine): Fix code detecting returns.
33531 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33533 * function.c (emit_use_return_register_into_block): On cc0 targets,
33534 do not emit the sequence between cc0 setter and user.
33536 2013-03-25 Kai Tietz <ktietz@redhat.com>
33538 * config/i386/predicates.md (local_symbolic_operand): Interpret
33539 dll-imported symbols as none-local.
33541 2013-03-25 Richard Biener <rguenther@suse.de>
33543 * tree-ssa-loop-im.c (struct depend): Remove.
33544 (struct lim_aux_data): Make depends a vec of gimples.
33545 (free_lim_aux_data): Adjust.
33546 (add_dependency): Likewise.
33547 (set_level): Likewise.
33549 2013-03-25 Richard Biener <rguenther@suse.de>
33551 PR middle-end/56434
33552 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
33553 the pointer returned by calls with ECF_MALLOC set.
33555 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33557 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
33559 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33561 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
33562 using MMXMODE mode iterator.
33563 (*move<mode>_internal): Merge with *movv2sf_internal and
33564 *movv2sf_internal_rex64 using MMXMODE mode iterator.
33566 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33568 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
33569 (record_last_mem_set_info): Likewise.
33571 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
33572 of XNEWVEC followed by memset.
33573 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
33575 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33577 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33578 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
33579 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
33580 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
33581 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
33582 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
33583 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
33584 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
33585 BARRIER_P instead of GET_CODE.
33587 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33589 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
33590 inaccuracy in the probing code.
33592 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
33593 (ctrapdi4): Likewise.
33595 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33597 * calls.c (expand_call): Add missing guard to code handling return
33598 of non-BLKmode structures in MSB.
33599 * function.c (expand_function_end): Likewise.
33601 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33603 * combine.c (try_combine): Adjust comment. Do not add the set of
33604 insn #0 if the destination indirectly is set or dies in insn #2.
33605 Tidy up code to distribute a new note.
33607 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33609 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
33610 also for alternatives 16 and 17.
33612 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33614 * config/i386/sse.md (*mov<mode>_internal): Merge with
33615 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
33616 Emit insn template depending on type attribute. Use
33617 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33618 movd instead of movq mnemonic for interunit moves. Rewrite mode
33619 attribute calculation. Remove unit attribute calculation.
33620 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
33621 Set prefix_data16 attribute for DImode ssemov types.
33622 Use Ym instead of y for SSE-MMX conversion alternatives.
33623 Reorder operand constraints.
33625 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
33627 * df.h (df_insn_delete): Adjust prototype.
33628 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
33629 and let it decide whether mark the basic block dirty.
33630 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
33631 * df-scan.c (df_insn_info_delete): New helper function, split
33632 off from df_insn_delete.
33633 (df_scan_free_bb_info): Use it.
33634 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
33636 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
33637 that the insn is actually an insn and it has a non-NULL basic block.
33638 Do not mark basic block dirty if only deleting a DEBUG_INSN.
33640 2013-03-22 Richard Biener <rguenther@suse.de>
33642 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
33644 (mem_ref_alloc): Do not allocate them.
33645 (refs_independent_p): Do not query or maintain a cache.
33647 2013-03-22 Richard Biener <rguenther@suse.de>
33649 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
33650 (gather_mem_refs_in_loops): Do not compute it.
33651 (analyze_memory_references): Do not allocate it.
33652 (tree_ssa_lim_finalize): Do not free it.
33653 (for_all_locs_in_loop): Do not query all_refs_in_loop.
33655 2013-03-22 Richard Biener <rguenther@suse.de>
33657 * is-a.h (as_a): Use gcc_checking_assert.
33659 2013-03-22 Ian Bolton <ian.bolton@arm.com>
33661 * config/aarch64/aarch64.c (aarch64_print_operand): New
33662 format specifier for printing a constant in hex.
33663 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
33664 format specifier for printing second operand.
33666 2013-03-22 Richard Biener <rguenther@suse.de>
33668 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
33670 (gather_mem_refs_in_loops): Perform store accumulation here.
33671 (create_vop_ref_mapping_loop): Remove.
33672 (create_vop_ref_mapping): Likewise.
33673 (analyze_memory_references): Initialize refs_stored_in_loop.
33674 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
33675 (record_indep_loop): Remove.
33676 (record_dep_loop): New function.
33677 (ref_indep_loop_p_1): Adjust to only walk over references
33678 in the loop, not its subloops.
33679 (ref_indep_loop_p): Rename to ...
33680 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
33681 maintaining a more fine-grained cache.
33682 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
33683 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
33685 2013-03-22 Richard Biener <rguenther@suse.de>
33687 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
33688 (struct mem_ref): Make accesses_in_loop a vec of a vec of
33689 aggregate mem_ref_loc.
33690 (free_mem_ref_locs): Inline into ...
33691 (memref_free): ... this and adjust.
33692 (mem_ref_alloc): Adjust.
33693 (mem_ref_locs_alloc): Remove.
33694 (record_mem_ref_loc): Adjust.
33695 (get_all_locs_in_loop): Rewrite into ...
33696 (for_all_locs_in_loop): ... this iterator.
33697 (rewrite_mem_ref_loc): New functor.
33698 (rewrite_mem_refs): Use for_all_locs_in_loop.
33699 (sm_set_flag_if_changed): New functor.
33700 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
33701 (ref_always_accessed): New functor.
33702 (ref_always_accessed_p): Use for_all_locs_in_loop.
33704 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33706 * tree-pass.h (PROP_gimple_lvec): New.
33707 * passes.c (dump_properties): Handle PROP_gimple_lvec.
33708 (init_optimization_passes): Move pass_lower_vector.
33709 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
33711 (pass_lower_vector): Provide PROP_gimple_lvec.
33712 (pass_lower_vector_ssa): Likewise.
33713 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
33715 2013-03-21 Mark Wielaard <mjw@redhat.com>
33717 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
33719 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33721 * config/i386/i386.md (*movdi_internal): Disparage slightly
33722 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
33723 conversion alternatives.
33725 2013-03-21 Jakub Jelinek <jakub@redhat.com>
33727 PR middle-end/48087
33728 * diagnostic.def (DK_WERROR): New kind.
33729 * diagnostic.h (werrorcount): Define.
33730 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
33731 promoted to DK_ERROR, increment DK_WERROR counter instead of
33733 * toplev.c (toplev_main): Call print_ignored_options even if
33734 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
33735 even if just werrorcount is non-zero.
33738 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
33740 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
33741 (string_cst_pool_decl): New function.
33742 (optimize_one_addr_into_implicit_ptr): New function.
33743 (resolve_addr_in_expr): Optimize DWARF location expression
33744 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
33745 which doesn't live in memory, but has DW_AT_location or
33746 DW_AT_const_value, or refers to a string literal, into
33747 DW_OP_GNU_implicit_pointer.
33748 (optimize_location_into_implicit_ptr): New function.
33749 (resolve_addr): If removing DW_AT_location of a variable because
33750 it was DW_OP_addr of address of the variable, but the variable doesn't
33751 live in memory, try to emit const value attribute for the initializer.
33753 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33755 * tree.h (VECTOR_TYPE_P): New macro.
33756 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
33757 TYPE_MODE): Use it.
33758 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
33759 VEC_COND_EXPR cannot be lvalues.
33760 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
33762 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33764 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
33765 Restrict the transformation to equal modes.
33767 2013-03-21 Richard Biener <rguenther@suse.de>
33769 PR tree-optimization/39326
33770 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
33771 (MEM_ANALYZABLE): Adjust.
33772 (record_mem_ref_loc): Move bitmap ops ...
33773 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
33774 unanalyzable refs, do not record locations for it.
33775 (analyze_memory_references): Allocate ref zero as shared
33777 (refs_independent_p): Do not test for unanalyzed mems here.
33778 (ref_indep_loop_p_1): Special-case disambiguation against
33779 the unanalyzed ref.
33780 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
33782 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
33784 * config/arm/arm-protos.h (tune_params): Add
33785 prefer_neon_for_64bits field.
33786 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
33787 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
33788 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
33789 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
33790 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
33791 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
33792 (arm_option_override): Handle -mneon-for-64bits new option.
33793 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
33794 (prefer_neon_for_64bits): Declare new variable.
33795 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
33796 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
33797 (arch_enabled): Handle new arch types. Remove support for onlya8
33799 (one_cmpldi2): Use new arch names.
33800 (zero_extend<mode>di2, extend<mode>di2): Ditto.
33801 * config/arm/arm.opt (mneon-for-64bits): Add option.
33802 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
33803 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
33804 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
33806 * doc/invoke.texi (-mneon-for-64bits): Document.
33808 2013-03-21 Richard Biener <rguenther@suse.de>
33810 PR tree-optimization/39326
33811 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
33812 (sort_bbs_in_loop_postorder_cmp): New function.
33813 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
33815 2013-03-21 Richard Biener <rguenther@suse.de>
33817 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
33818 (vect_insert_into_interleaving_chain): Likewise.
33819 (vect_drs_dependent_in_basic_block): Inline ...
33820 (vect_slp_analyze_data_ref_dependence): ... here. New function,
33822 (vect_analyze_data_ref_dependence): ... here. Simplify.
33823 (vect_check_interleaving): Simplify.
33824 (vect_analyze_data_ref_dependences): Likewise. Split out ...
33825 (vect_slp_analyze_data_ref_dependences): ... this new function.
33826 (dr_group_sort_cmp): New function.
33827 (vect_analyze_data_ref_accesses): Compute data-reference groups
33828 here instead of in vect_analyze_data_ref_dependence. Use
33829 a more efficient algorithm.
33830 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
33831 vect_slp_analyze_data_ref_dependences. Call
33832 vect_analyze_data_ref_accesses earlier.
33833 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
33834 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
33835 (vect_slp_analyze_data_ref_dependences): New prototype.
33837 2013-03-21 Richard Biener <rguenther@suse.de>
33839 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
33840 ref is stored in the loop.
33841 (find_refs_for_sm): Walk only over all stores.
33842 (store_motion_loop): Allocate from lim_bitmap_obstack.
33843 (store_motion): Likewise.
33845 2013-03-21 Richard Biener <rguenther@suse.de>
33847 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
33848 Update virtual SSA form.
33850 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33852 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
33853 * configure: Regenerate.
33854 * config.in: Regenerate.
33855 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
33856 if !HAVE_LD_EH_FRAME_CIEV3.
33858 2013-03-21 Richard Biener <rguenther@suse.de>
33860 * tree-cfg.c (verify_expr_no_block): New function.
33861 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
33862 nor DECL_VALUE_EXPR have locations with associated blocks.
33863 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
33864 (clear_unused_block_pointer): Remove code dealing with
33865 blocks in DECL_DEBUG_EXPR locations.
33867 2013-03-21 Richard Biener <rguenther@suse.de>
33869 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
33870 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
33871 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
33872 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
33873 instead of DECL_DEBUG_EXPR_IS_FROM.
33874 * gimplify.c (gimplify_modify_expr): Likewise.
33875 * tree-cfg.c (verify_expr_location_1): Likewise.
33876 * tree-complex.c (create_one_component_var): Likewise.
33877 * tree-sra.c (create_access_replacement): Likewise.
33878 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
33879 (clear_unused_block_pointer): Likewise.
33880 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
33881 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
33882 * var-tracking.c (var_debug_decl): Likewise.
33883 (track_expr_p): Likewise.
33884 * tree-inline.c (add_local_variables): Likewise. Set
33885 DECL_HAS_DEBUG_EXPR_P after copying it.
33886 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
33887 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
33889 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33892 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
33893 * configure: Regenerate.
33894 * config.in: Regenerate.
33895 * config/i386/i386.md (*movdf_internal): Use
33896 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33897 movd instead of movq mnemonic for interunit moves.
33898 (*movdi_internal): Ditto.
33900 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33902 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
33903 (abd<mode>_3): New pattern.
33904 (aba<mode>_3): New pattern.
33905 (fabd<mode>_3): New pattern.
33907 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33909 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
33910 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
33911 occurrence of REGISTER_PREFIX as its empty string.
33913 2013-03-20 Jeff Law <law@redhat.com>
33915 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
33916 addititional equivalences for equality comparisons between an SSA_NAME
33917 and a constant where the SSA_NAME was set from a widening conversion.
33919 2013-03-20 Walter Lee <walt@tilera.com>
33921 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
33923 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33925 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
33926 depending on type attribute.
33927 (*movti_internal): Ditto.
33928 (*movtf_internal): Ditto.
33929 (*movxf_internal): Ditto.
33930 (*movdf_internal): Ditto.
33931 (*movsf_internal): Ditto.
33933 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33935 * config/i386/i386.md (*movti_internal): Set prefix attribute to
33936 maybe_vex for sselog1 and ssemov types.
33937 (*movdi_internal): Reorder operand constraints.
33938 (*movsi_internal): Ditto. Set prefix attribute to
33939 maybe_vex for sselog1 and ssemov types.
33940 (*movtf_internal): Set prefix attribute to maybe_vex
33941 for sselog1 and ssemov types.
33942 (*movdf_internal): Ditto. Set prefix_data16 attribute for
33943 DImode ssemov types. Reorder operand constraints.
33944 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
33945 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
33946 attribute for SImode ssemov types. Reorder operand constraints.
33948 2013-03-20 Martin Jambor <mjambor@suse.cz>
33950 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
33951 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
33953 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
33955 * config/rs6000/predicates.md (indexed_address, update_address_mem
33956 update_indexed_address_mem): New predicates.
33957 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
33958 attribute for load/store instructions.
33959 * config/rs6000/dfp.md (movsd_store): Likewise.
33960 (movsd_load): Likewise.
33961 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
33962 (unnamed HI->DI extend define_insn): Likewise.
33963 (unnamed SI->DI extend define_insn): Likewise.
33964 (unnamed QI->SI extend define_insn): Likewise.
33965 (unnamed QI->HI extend define_insn): Likewise.
33966 (unnamed HI->SI extend define_insn): Likewise.
33967 (unnamed HI->SI extend define_insn): Likewise.
33968 (extendsfdf2_fpr): Likewise.
33969 (movsi_internal1): Likewise.
33970 (movsi_internal1_single): Likewise.
33971 (movhi_internal): Likewise.
33972 (movqi_internal): Likewise.
33973 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
33974 attribute for load/store instructions.
33975 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
33977 (mov<mode>_softfloat): Likewise.
33978 (mov<mode>_hardfloat32): Likewise.
33979 (mov<mode>_hardfloat64): Likewise.
33980 (mov<mode>_softfloat64): Likewise.
33981 (movdi_internal32): Likewise.
33982 (movdi_internal64): Likewise.
33983 (probe_stack_<mode>): Likewise.
33985 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
33987 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
33988 floating point, and decimal floating point to reload iterator.
33990 * config/rs6000/constraints.md (wl constraint): New constraints to
33991 return FLOAT_REGS if certain options are used to reduce the number
33992 of separate patterns that exist in the file.
33993 (wx constraint): Likewise.
33994 (wz constraint): Likewise.
33996 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
33997 -mdebug=reg, print wg, wl, wx, and wz constraints.
33998 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
33999 Initialize the reload functions for 64-bit binary/decimal floating
34001 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34002 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34003 create the buffer on the stack to overcome not having a 32-bit
34005 (rs6000_emit_move): Likewise.
34006 (rs6000_secondary_memory_needed_rtx): Likewise.
34007 (rs6000_alloc_sdmode_stack_slot): Likewise.
34008 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34009 via xxlxor, just like DFmode 0.0.
34011 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34012 define as 1 if we are running on a power7 or newer.
34013 (enum r6000_reg_class_enum): Add new constraints.
34015 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34016 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34017 with other moves by using conditional constraits (wg). Use LFIWZX
34018 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34019 (movsd splitter): Likewise.
34020 (movsd_hardfloat): Likewise.
34021 (movsd_softfloat): Likewise.
34023 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
34024 binary and decimal floating point moves.
34025 (fmove_ok): New attributes to combine binary and decimal floating
34026 point moves, and to combine power6x (mfpgpr) moves along normal
34028 (real_value_to_target): Likewise.
34029 (f32_lr): Likewise.
34030 (f32_lm): Likewise.
34031 (f32_li): Likewise.
34032 (f32_sr): Likewise.
34033 (f32_sm): Likewise.
34034 (f32_si): Likewise.
34035 (movsf): Combine binary and decimal floating point moves. Combine
34036 power6x (mfpgpr) moves with other moves by using conditional
34037 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
34038 (mov<mode> for SFmode/SDmode); Likewise.
34039 (SFmode/SDmode splitters): Likewise.
34040 (movsf_hardfloat): Likewise.
34041 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
34042 (movsf_softfloat): Likewise.
34043 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
34045 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
34046 wx and wz constraints.
34048 * config/rs6000/constraints.md (wg constraint): New constraint to
34049 return FLOAT_REGS if -mmfpgpr (power6x) was used.
34051 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
34054 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34055 -mdebug=reg, print wg, wl, wx, and wz constraints.
34056 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34057 Initialize the reload functions for 64-bit binary/decimal floating
34059 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34060 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34061 create the buffer on the stack to overcome not having a 32-bit
34063 (rs6000_emit_move): Likewise.
34064 (rs6000_secondary_memory_needed_rtx): Likewise.
34065 (rs6000_alloc_sdmode_stack_slot): Likewise.
34066 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34067 via xxlxor, just like DFmode 0.0.
34069 * config/rs6000/dfp.md (movdd): Delete, combine with binary
34070 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34071 with other moves by using conditional constraits (wg). Use LFIWZX
34072 and STFIWX for loading SDmode on power7.
34073 (movdd splitters): Likewise.
34074 (movdd_hardfloat32): Likewise.
34075 (movdd_softfloat32): Likewise.
34076 (movdd_hardfloat64_mfpgpr): Likewise.
34077 (movdd_hardfloat64): Likewise.
34078 (movdd_softfloat64): Likewise.
34080 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
34081 64-bit binary and decimal floating point moves.
34082 (FMOVE64X): Likewise.
34083 (movdf): Combine 64-bit binary and decimal floating point moves.
34084 Combine power6x (mfpgpr) moves with other moves by using
34085 conditional constraits (wg).
34086 (mov<mode> for DFmode/DDmode): Likewise.
34087 (DFmode/DDmode splitters): Likewise.
34088 (movdf_hardfloat32): Likewise.
34089 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
34090 (movdf_softfloat32): Likewise.
34091 (movdf_hardfloat64_mfpgpr): Likewise.
34092 (movdf_hardfloat64): Likewise.
34093 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
34094 (movdf_softfloat64): Likewise.
34095 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
34096 (reload_<mode>_load): Move to later in the file so they aren't in
34097 the middle of the floating point move insns.
34098 (reload_<mode>_store): Likewise.
34100 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
34103 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
34104 constraint if -mdebug=reg.
34105 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
34106 Enable using dd reload support if needed.
34108 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
34109 binary and decimal floating point moves in rs6000.md.
34110 (movtd_internal): Likewise.
34112 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
34113 decimal floating point moves.
34115 (movtf_internal): Likewise.
34116 (mov<mode>_internal, TDmode/TFmode): Likewise.
34117 (movtf_softfloat): Likewise.
34118 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
34120 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
34121 movdi_internal64, using wg constraint for move direct operations.
34122 (movdi_internal64): Likewise.
34124 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
34125 MODES_TIEABLE_P for selected modes. Print the numerical value of
34126 the various virtual registers. Use GPR/FPR first/last values,
34127 instead of hard coding the register numbers. Print which modes
34128 have reload functions registered.
34129 (rs6000_option_override_internal): If -mdebug=reg, trace the options
34130 settings before/after setting cpu, target and subtarget settings.
34131 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
34132 and for secondary reload failures in rs6000_secondary_reload_inner.
34133 (rs6000_secondary_reload_fail): Likewise.
34134 (rs6000_secondary_reload_inner): Likewise.
34136 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
34137 macros for first/last GPR and FPR registers.
34138 (LAST_GPR_REGNO): Likewise.
34139 (FIRST_FPR_REGNO): Likewise.
34140 (LAST_FPR_REGNO): Likewise.
34142 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
34143 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
34144 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
34145 (vcond<mode><mode>): Likewise.
34146 (vcondu<mode><mode>): Likewise.
34147 (vector_gtu<mode>): Likewise.
34148 (vector_gte<mode>): Likewise.
34149 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
34150 to prevent the compiler from converting DImode operations to TImode.
34151 (ior<mode>3): Likewise.
34152 (and<mode>3): Likewise.
34153 (one_cmpl<mode>2): Likewise.
34154 (nor<mode>3): Likewise.
34155 (andc<mode>3): Likewise.
34157 * config/rs6000/constraints.md (wt constraint): New constraint
34158 that returns VSX_REGS if TImode is allowed in VSX registers.
34160 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
34161 constant under VSX.
34163 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
34164 similar to TImode, but it is restricted to being in the GPRs.
34166 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
34167 TImode to occupy a single VSX register.
34169 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
34170 -mvsx-timode for power7/power8.
34171 (power7 cpu): Likewise.
34172 (power8 cpu): Likewise.
34174 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
34175 sure that TFmode/TDmode take up two registers if they are ever
34176 allowed in the upper VSX registers.
34177 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
34179 (rs6000_init_hard_regno_mode_ok): Likewise.
34180 (rs6000_debug_reg_global): Add debugging for PTImode and wt
34181 constraint. Print if LRA is turned on.
34182 (rs6000_option_override_internal): Give an error if -mvsx-timode
34183 and VSX is not enabled.
34184 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
34185 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
34186 to reg+offset addressing. Use PTImode when checking offset
34187 addresses for validity.
34188 (reg_offset_addressing_ok_p): Likewise.
34189 (rs6000_legitimate_offset_address_p): Likewise.
34190 (rs6000_legitimize_address): Likewise.
34191 (rs6000_legitimize_reload_address): Likewise.
34192 (rs6000_legitimate_address_p): Likewise.
34193 (rs6000_eliminate_indexed_memrefs): Likewise.
34194 (rs6000_emit_move): Likewise.
34195 (rs6000_secondary_reload): Likewise.
34196 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
34197 reloads to fpr registers to continue to use reg+offset addressing,
34198 but 64-bit reloads to altivec registers need reg+reg addressing.
34199 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
34200 it. Treat LO_SUM like a PLUS operation.
34201 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
34202 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
34203 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
34204 registers to share a register with a smaller sized type, since VSX
34205 puts scalars in the upper 64-bits.
34206 (print_operand): Add support for PTImode.
34207 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
34208 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
34209 registers, but don't have arithmetic support.
34210 (rs6000_memory_move_cost): Add test for VSX.
34211 (rs6000_opt_masks): Add -mvsx-timode.
34213 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34216 (VSr): Use wt constraint for TImode.
34217 (VSv): Drop TImode support.
34218 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34219 (vsx_movti_64bit): Likewise.
34220 (vsx_movti_32bit): Likewise.
34221 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34222 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34223 one '?' on the appropriate output constraint. Do not allow TImode
34224 logical operations on 32-bit systems.
34225 (vsx_ior<mode>3): Likewise.
34226 (vsx_xor<mode>3): Likewise.
34227 (vsx_one_cmpl<mode>2): Likewise.
34228 (vsx_nor<mode>3): Likewise.
34229 (vsx_andc<mode>3): Likewise.
34230 (vsx_concat_<mode>): Likewise.
34231 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34233 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34234 OPTION_MASK_VSX_TIMODE.
34235 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34236 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34238 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34239 (TI2 iterator): New iterator for TImode, PTImode.
34240 (wd mode attribute): Add values for vector types.
34241 (movti_string): Replace TI move operations with operations for TImode
34242 and PTImode. Add support for TImode being allowed in VSX registers.
34243 (mov<mode>_string, TImode/PTImode): Likewise.
34244 (movti_ppc64): Likewise.
34245 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34246 (TI mode splitters): Likewise.
34248 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34251 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34253 PR tree-optimization/56355
34254 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34255 Also handle integers with undefined overflow.
34257 2013-03-20 Catherine Moore <clm@codesourcery.com>
34258 Maciej W. Rozycki <macro@codesourcery.com>
34259 Tom de Vries <tom@codesourcery.com>
34260 Nathan Sidwell <nathan@codesourcery.com>
34261 Iain Sandoe <iain@codesourcery.com>
34262 Nathan Froyd <froydnj@codesourcery.com>
34263 Chao-ying Fu <fu@mips.com>
34265 * doc/extend.texi: (micromips, nomicromips, nocompression):
34266 Document new function attributes.
34267 * doc/invoke.texi (minterlink-compressed, mmicromips,
34268 m14k, m14ke, m14kec): Document new options.
34269 (minterlink-mips16): Update documentation.
34270 * doc/md.texi (ZC, ZD): Document new constraints.
34271 * configure.ac (gcc_cv_as_micromips): Check if linker
34272 supports the .set micromips directive.
34273 * configure: Regenerate.
34274 * config.in: Regenerate.
34275 * config/mips/mips-tables.opt: Regenerate.
34276 * config/mips/micromips.md: New file.
34277 * constraints.md (ZC, ZD): New constraints.
34278 * config/mips/predicates.md (movep_src_register): New predicate.
34279 (movep_src_operand): New predicate.
34280 (non_volatile_mem_operand): New predicate.
34281 * config/mips/mips.md (multimem): New type.
34282 (length): Differentiate between 17-bit and 18-bit branch offsets.
34283 (MOVEP1, MOVEP2): New mode iterator.
34284 (mov_<load>l): Use ZC constraint.
34285 (mov_<load>r): Likewise.
34286 (mov_<store>l): Likewise.
34287 (mov_<store>r): Likewise.
34288 (*branch_equality<mode>_inverted): Add microMIPS support.
34289 (*branch_equality<mode>): Likewise.
34290 (*jump_absolute): Likewise.
34291 (indirect_jump_<mode>): Likewise.
34292 (tablejump_<mode>): Likewise.
34293 (<optab>_internal): Likewise.
34294 (sibcall_internal): Likewise.
34295 (sibcall_value_internal): Likewise.
34296 (prefetch): Use constraint ZD.
34297 * config/mips/mips.opt (minterlink-compressed): New option.
34298 (minterlink-mips16): Now an alias for minterlink-compressed.
34299 (mmicromips): New option.
34300 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34301 (compare_and_swap_12): Likewise.
34302 (sync_add<mode>): Likewise.
34303 (sync_<optab>_12): Likewise.
34304 (sync_old_<optab>_12): Likewise.
34305 (sync_new_<optab>_12): Likewise.
34306 (sync_nand_12): Likewise.
34307 (sync_old_nand_12): Likewise.
34308 (sync_new_nand_12): Likewise.
34309 (sync_sub<mode>): Likewise.
34310 (sync_old_add<mode>): Likewise.
34311 (sync_old_sub<mode>): Likewise.
34312 (sync_new_add<mode>): Likewise.
34313 (sync_new_sub<mode>): Likewise.
34314 (sync_<optab><mode>): Likewise.
34315 (sync_old_<optab><mode>): Likewise.
34316 (sync_new_<optab><mode>): Likewise.
34317 (sync_nand<mode>): Likewise.
34318 (sync_old_nand<mode>): Likewise.
34319 (sync_new_nand<mode>): Likewise.
34320 (sync_lock_test_and_set<mode>): Likewise.
34321 (test_and_set_12): Likewise.
34322 (atomic_compare_and_swap<mode>): Likewise.
34323 (atomic_exchange<mode>_llsc): Likewise.
34324 (atomic_fetch_add<mode>_llsc): Likewise.
34325 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34326 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34327 (umips_save_restore_pattern_p): Likewise.
34328 (umips_load_store_pair_p): Likewise.
34329 (umips_output_load_store_pair): Likewise.
34330 (umips_movep_target_p): Likewise.
34331 (umips_12bit_offset_address_p): Likewise.
34332 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34333 (mips_base_mips16): Rename this...
34334 (mips_base_compression_flags): ...to this. Update all uses.
34335 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34336 (mips_mips16_decl_p): Delete.
34337 (mips_nomips16_decl_p): Delete.
34338 (mips_get_compress_on_flags): New function.
34339 (mips_get_compress_off_flags): New function.
34340 (mips_get_compress_mode): New function.
34341 (mips_get_compress_on_name): New function.
34342 (mips_get_compress_off_name): New function.
34343 (mips_insert_attributes): Support multiple compression types.
34344 (mips_merge_decl_attributes): Likewise.
34345 (umips_12bit_offset_address_p): New function.
34346 (mips_start_function_definition): Emit .set micromips directive.
34347 (mips_call_may_need_jalx_p): New function.
34348 (mips_function_ok_for_sibcall): Add microMIPS support.
34349 (mips_print_operand_punctuation): Support short delay slots and
34351 (umips_swm_mask, umips_swm_encoding): New.
34352 (umips_build_save_restore): New function.
34353 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34354 (was_mips16_p): Remove.
34355 (old_compression_mode): New.
34356 (mips_set_compression_mode): New function.
34357 (mips_set_current_function): Add microMIPS support.
34358 (mips_option_override): Likewise.
34359 (umips_save_restore_pattern_p): New function.
34360 (umips_output_save_restore): New function.
34361 (umips_load_store_pair_p_1): New function.
34362 (umips_load_store_pair_p): New function.
34363 (umips_output_load_store_pair_1): New function.
34364 (umips_output_load_store_pair): New function.
34365 (umips_movep_target_p) New function.
34366 (mips_prepare_pch_save): Add microMIPS support.
34367 * config/mips/mips.h (TARGET_COMPRESSION): New.
34368 (TARGET_CPU_CPP_BUILTINS): Update macro
34369 to use new compression flags and to support microMIPS.
34370 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34371 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34372 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34373 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34374 (ASM_SPEC): Support mmicromips and mno-micromips.
34375 (M16STORE_REG_P): New macro.
34376 (MIPS_CALL): Support TARGET_MICROMIPS.
34377 (MICROMIPS_J): New macro.
34378 (mips_base_mips16): Rename this...
34379 (mips_base_compression_flags): ...to this.
34380 (UMIPS_12BIT_OFFSET_P): New macro.
34381 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34382 (MULTILIB_DIRNAMES): Likewise.
34383 2013-03-20 Richard Biener <rguenther@suse.de>
34385 PR tree-optimization/56661
34386 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
34387 the result does not have to be distinct.
34389 2013-03-20 Richard Biener <rguenther@suse.de>
34391 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
34394 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34395 Steven Bosscher <steven@gcc.gnu.org>
34397 PR rtl-optimization/56605
34398 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
34400 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34403 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
34404 that require movd instead of movq.
34406 2013-03-20 Richard Biener <rguenther@suse.de>
34408 * tree-ssa-structalias.c (struct variable_info): Add pointer
34409 to the first field of an aggregate with sub-vars. Make
34410 this and the pointer to the next subfield its ID.
34411 (vi_next): New function.
34412 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
34413 storedanything_id, integer_id): Increment by one.
34414 (new_var_info, get_call_vi, lookup_call_clobber_vi,
34415 get_call_clobber_vi): Adjust.
34416 (solution_set_expand): Simplify and speedup.
34417 (solution_set_add): Inline into ...
34418 (set_union_with_increment): ... this. Adjust accordingly.
34419 (do_sd_constraint): Likewise.
34420 (do_ds_constraint): Likewise.
34421 (do_complex_constraint): Simplify.
34422 (build_pred_graph): Adjust.
34423 (solve_graph): Likewise. Simplify and speedup.
34424 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
34425 get_constraint_for_component_ref, get_constraint_for_1,
34426 first_vi_for_offset, first_or_preceding_vi_for_offset,
34427 create_function_info_for, create_variable_info_for_1,
34428 create_variable_info_for, intra_create_variable_infos): Adjust.
34429 (init_base_vars): Push NULL for ID zero.
34430 (compute_points_to_sets): Adjust.
34432 2013-03-20 Richard Biener <rguenther@suse.de>
34434 * cfgloop.c (verify_loop_structure): Streamline and avoid
34435 ICEing on corrupt loop tree.
34436 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34439 2013-03-20 Richard Biener <rguenther@suse.de>
34441 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
34442 check whether an SSA update is needed.
34444 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
34446 * config/mips/constraints.md (T): Rename to...
34450 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
34451 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
34453 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34455 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
34456 (*subsi3_carryin_uxtw): Likewise.
34458 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34460 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
34461 (*rorsi3_insn_uxtw): Likewise.
34463 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34465 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
34466 (*extrsi5_insn_uxtw): Likewise.
34468 2013-03-19 Richard Biener <rguenther@suse.de>
34470 PR tree-optimization/56273
34471 * passes.c (init_optimization_passes): Move second VRP after DOM.
34473 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
34475 * config/i386/i386.md (*movti_internal): Merge from
34476 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
34477 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
34478 nox64 isa attributes.
34480 2013-03-18 Richard Biener <rguenther@suse.de>
34482 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
34484 (merge_node_constraints): Likewise.
34485 (build_succ_graph): Likewise.
34486 (valid_graph_edge): Inline into single caller.
34487 (unify_nodes): Likewise. Use bitmap_set_bit return value
34489 (scc_visit): Fix formatting and variable use.
34490 (do_sd_constraint): Use gcc_checking_assert.
34491 (do_ds_constraint): Likewise.
34492 (do_complex_constraint): Likewise.
34493 (condense_visit): Likewise. Cleanup.
34494 (dump_pred_graph): New function.
34495 (perform_var_substitution): Dump the pred-graph before
34496 variable substitution.
34497 (find_equivalent_node): Use gcc_checking_assert.
34498 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
34500 2013-03-18 Richard Biener <rguenther@suse.de>
34502 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34503 Remove cond_expr_stmt_list argument and do not gimplify the
34505 (vect_loop_versioning): Adjust.
34506 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
34507 Cleanup to use less temporaries.
34508 (vect_create_data_ref_ptr): Cleanup.
34510 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34512 PR tree-optimization/56635
34513 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
34514 require types_compatible_p types.
34516 2013-03-18 Nick Clifton <nickc@redhat.com>
34518 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
34519 spurious backslash.
34521 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
34522 Add missing line to comment describing function.
34524 2013-03-18 Richard Biener <rguenther@suse.de>
34526 PR tree-optimization/56210
34527 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34528 Handle string / character search functions.
34529 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
34531 2013-03-18 Richard Biener <rguenther@suse.de>
34533 PR middle-end/56483
34534 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
34535 and implement properly.
34536 * gimple.h (gimple_cond_single_var_p): Remove.
34538 2013-03-18 Richard Biener <rguenther@suse.de>
34540 * tree-data-ref.h (find_data_references_in_loop): Declare.
34541 * tree-data-ref.c (get_references_in_stmt): Use a stack
34542 vector pre-allocated in the callers.
34543 (find_data_references_in_stmt): Adjust.
34544 (graphite_find_data_references_in_stmt): Likewise.
34545 (create_rdg_vertices): Likewise.
34546 (find_data_references_in_loop): Export.
34547 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
34548 Compute dependences here...
34549 (vect_analyze_data_refs): ...not here. When we encounter
34550 a non-vectorizable data reference in basic-block vectorization
34551 truncate the data reference vector. Do not bother to
34552 fixup data-dependence information for gather loads.
34553 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
34554 of data references, as reported.
34556 2013-03-18 Richard Biener <rguenther@suse.de>
34558 PR tree-optimization/3713
34559 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
34560 has_constants and expr.
34561 (stmt_has_constants): Properly valueize SSA names when deciding
34562 whether the stmt has constants.
34564 2013-03-18 Richard Biener <rguenther@suse.de>
34566 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
34567 whole function when there is nothing to do.
34568 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
34569 * tree-vectorizer.c (vectorize_loops): Update virtual and
34570 loop-closed SSA once.
34571 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
34573 2013-03-18 Richard Biener <rguenther@suse.de>
34575 PR middle-end/56113
34576 * domwalk.c (bb_postorder): New global static.
34577 (cmp_bb_postorder): New function.
34578 (walk_dominator_tree): Replace scheme imposing an order for
34579 visiting dominator sons by one sorting them at the time they
34580 are pushed on the stack.
34582 2013-03-18 Richard Biener <rguenther@suse.de>
34584 PR tree-optimization/39326
34585 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
34586 (struct mem_ref): Replace mem member with ao_ref typed member.
34587 (MEM_ANALYZABLE): Adjust.
34588 (memref_eq): Likewise.
34589 (mem_ref_alloc): Likewise.
34590 (gather_mem_refs_stmt): Likewise.
34591 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
34592 (execute_sm_if_changed_flag_set): Adjust.
34593 (execute_sm): Likewise.
34594 (ref_always_accessed_p): Likewise.
34595 (refs_independent_p): Likewise.
34596 (can_sm_ref_p): Likewise.
34598 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34601 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
34602 return 1 even for !unsignedp.
34604 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34606 * config/i386/i386.md (isa): Add x64 and nox64.
34607 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
34608 (*pushtf): Enable *roF alternative for x64 isa only.
34609 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
34610 mode attribute of integer alternatives to DImode for TARGET_64BIT.
34611 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
34612 (*movtf_internal): Merge from *movtf_internal_rex64 and
34613 *movtf_internal_sse. Use x64 and nox64 isa attributes.
34614 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
34615 nox64 isa attributes.
34616 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
34617 nox64 isa attributes.
34618 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
34620 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34622 * config/alpha/alpha.c (TARGET_LRA_P): New define.
34624 2013-03-17 Jakub Jelinek <jakub@redhat.com>
34627 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
34628 class names. Remove trailing comma after "ALL_REGS".
34630 2013-03-16 Jan Hubicka <jh@suse.cz>
34632 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
34633 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
34634 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
34635 of cgraph_get_create_node.
34636 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
34638 2013-03-16 Jason Merrill <jason@redhat.com>
34641 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
34642 with DW_AT_default_value.
34644 2013-03-16 Jakub Jelinek <jakub@redhat.com>
34646 * BASE-VER: Set to 4.9.0.
34648 2013-03-14 Andi Kleen <ak@linux.intel.com>
34651 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
34652 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
34653 Document _x* TSX intrinsics.
34655 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
34656 David Holsgrove <david.holsgrove@xilinx.com>
34658 * configure.ac: Add MicroBlaze TLS support detection.
34659 * configure: Regenerate.
34660 * config/microblaze/microblaze-protos.h
34661 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
34662 symbol_mentioned_p, label_mentioned_p): Add prototypes.
34663 * config/microblaze/microblaze.c (microblaze_address_type): Add
34664 ADDRESS_TLS and tls_reloc address types.
34665 (microblaze_address_info): Add tls_reloc.
34666 (TARGET_HAVE_TLS): Define.
34667 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
34668 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
34669 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
34670 load_tls_operand, microblaze_call_tls_get_addr,
34671 microblaze_legitimize_tls_address): New functions.
34672 (microblaze_classify_unspec): Handle UNSPEC_TLS.
34673 (get_base_reg): Use microblaze_tls_symbol_p.
34674 (microblaze_classify_address): Handle TLS.
34675 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
34676 label_mentioned_p and microblaze_tls_referenced_p.
34677 (microblaze_legitimize_address): Handle TLS.
34678 (microblaze_address_insns): Handle ADDRESS_TLS.
34679 (pic_address_needs_scratch): Handle TLS.
34680 (print_operand_address): Handle TLS.
34681 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
34682 (microblaze_expand_move): Handle TLS.
34683 (microblaze_legitimate_constant_p): Check
34684 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
34685 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
34686 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
34687 (PIC_OFFSET_TABLE_REGNUM): Set.
34688 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
34689 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
34690 (addsi3, movsi_internal2, movdf_internal): Update constraints
34691 * config/microblaze/predicates.md (arith_plus_operand): Define
34692 (move_operand): Redefine as move_src_operand,
34693 check microblaze_tls_referenced_p.
34695 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34697 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
34698 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
34700 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34702 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
34705 2013-03-14 Jakub Jelinek <jakub@redhat.com>
34707 PR tree-optimization/53265
34708 * common.opt (Waggressive-loop-optimizations): New option.
34709 * tree-ssa-loop-niter.c: Include tree-pass.h.
34710 (do_warn_aggressive_loop_optimizations): New function.
34711 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
34712 if number_of_latch_executions returned constant.
34713 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
34714 early. If number_of_latch_executions returned constant, set
34715 nb_iterations_upper_bound back to it.
34716 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
34718 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
34719 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
34721 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
34722 (MULTILIB_OSDIRNAMES): Set.
34723 * genmultilib: If defaultosdirname doesn't start with :: , set
34724 defaultosdirname2 instead, clear it and emit two . multilib_raw
34725 entries instead of just one.
34727 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
34729 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34730 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
34731 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34732 (SUBTARGET_OVERRIDE_OPTIONS): New.
34734 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
34737 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
34738 (musermode): Convert to Var(TARGET_USERMODE).
34739 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
34740 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
34741 * config/sh/sh.c (sh_option_override): Use
34742 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
34743 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
34745 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
34747 (udivsi3_i4_single, divsi3_i4_single): Use
34748 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
34750 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
34752 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
34755 2013-03-13 Richard Biener <rguenther@suse.de>
34757 PR tree-optimization/56608
34758 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
34759 calls when vectorizing basic-blocks.
34761 2013-03-13 Jakub Jelinek <jakub@redhat.com>
34764 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
34767 2013-03-12 Jakub Jelinek <jakub@redhat.com>
34769 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
34771 2013-03-11 Jan Hubicka <jh@suse.cz>
34774 * lto-streamer-out.c (output_symbol_p): Skip references from
34775 constructors of external variables.
34777 2013-03-11 Jan Hubicka <jh@suse.cz>
34779 PR middle-end/56571
34780 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
34782 * emit-rtl.c (verify_rtx_sharing): Likewise.
34783 (copy_insn_1): Likewise.
34784 * rtl.c (copy_rtx): Likewise.
34786 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
34789 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
34790 output_operand_lossage message.
34792 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
34795 * arm.c (shift_op): Validate RTL pattern on the fly.
34796 (arm_print_operand, case 'S'): Don't use shift_operator to validate
34799 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34802 * config/pa/pa.md (call_value): Check for calls to powf and direct to
34803 new call patterns that clobber %fr12.
34804 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
34805 split and postreload patterns.
34806 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
34807 registers %fr12 and %fr12R as call used.
34809 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
34811 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
34812 (canon_address, record_store, replace_read, check_mem_read_rtx,
34813 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
34814 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
34815 rest_of_handle_dse): Likewise.
34817 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
34819 PR middle-end/56524
34820 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
34822 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
34823 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
34824 (save_optabs_if_changed): Replace with...
34825 (init_tree_optimization_optabs): ...this.
34826 * optabs.c (save_optabs_if_changed): Rename to...
34827 (init_tree_optimization_optabs): ...this. Take the optimization node
34828 as argument. Do nothing if the base optabs are already correct.
34829 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
34830 to recompute optabs.
34831 * function.h (function): Remove optabs field.
34832 * function.c (invoke_set_current_function_hook): Call
34833 init_tree_optimization_optabs. Use the result to initialize
34836 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
34838 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
34839 if GTMA_HAS_NO_INSTRUMENTATION.
34840 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
34841 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
34842 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
34843 * gimple-pretty-print.c (dump_gimple_transaction): Handle
34844 GTMA_HAS_NO_INSTRUMENTATION.
34846 2013-03-08 Jakub Jelinek <jakub@redhat.com>
34848 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
34851 2013-03-08 Marek Polacek <polacek@redhat.com>
34852 Jakub Jelinek <jakub@redhat.com>
34854 PR tree-optimization/56478
34855 * predict.c (is_comparison_with_loop_invariant_p): Change the
34856 type of loop_step to tree.
34857 (predict_loops): Adjust.
34858 (predict_iv_comparison): Perform the computations on double_ints.
34860 2013-03-08 Richard Biener <rguenther@suse.de>
34862 PR tree-optimization/56570
34863 * tree-cfg.c (verify_expr_location_1): Verify locations for
34865 * tree-sra.c (create_access_replacement): Strip locations
34866 from DECL_DEBUG_EXPRs.
34868 2013-03-08 Richard Biener <rguenther@suse.de>
34870 * tree-inline.c (expand_call_inline): Do not associate
34871 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
34872 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
34874 2013-03-08 Richard Biener <rguenther@suse.de>
34876 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
34877 or block changes with -Og. Fix for location / block encoding
34878 changes and PHI arguments with locations.
34880 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
34882 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
34884 (struct output_info): Likewise.
34885 (register_overhead): Remove bad gcc_assert.
34886 (bitmap_find_bit): If there is only a single bitmap element, do not
34887 count a miss as a search.
34888 (print_statistics): Update for counter type changes.
34889 (dump_bitmap_statistics): Likewise. Print headers such that they
34890 are properly lined up with the printed counters.
34892 2013-03-07 Jakub Jelinek <jakub@redhat.com>
34894 PR tree-optimization/56559
34895 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
34896 check that it has only a single use.
34898 2013-03-07 Richard Biener <rguenther@suse.de>
34900 * doc/invoke.texi (fwhole-program): Discourage use in combination
34903 2013-03-06 Jakub Jelinek <jakub@redhat.com>
34905 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
34907 PR tree-optimization/56539
34908 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
34909 instead of GSI_CONTINUE_LINKING as last argument to
34910 force_gimple_operand_gsi. Adjust function comment.
34912 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
34915 PR middle-end/56548
34916 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
34917 promoted mode, convert the result back to the original mode.
34919 2013-03-06 Richard Biener <rguenther@suse.de>
34921 PR middle-end/56294
34922 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
34923 (insert_updated_phi_nodes_compare_uids): New function.
34924 (update_ssa): Sort symbols_to_rename after UID before
34925 traversing it to insert PHI nodes.
34927 2013-03-06 Richard Biener <rguenther@suse.de>
34929 PR middle-end/50494
34930 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
34931 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
34934 2013-02-13 Richard Biener <rguenther@suse.de>
34937 * varasm.c (output_constant_def_1): Get the decl representing
34938 the constant as argument.
34939 (output_constant_def): Wrap output_constant_def_1.
34940 (make_decl_rtl): Use output_constant_def_1 with the decl
34941 representing the constant.
34942 (build_constant_desc): Optionally re-use a decl already
34943 representing the constant.
34944 (tree_output_constant_def): Adjust.
34946 2013-03-06 Joey Ye <joey.ye@arm.com>
34949 * gcc.c (convert_white_space): New function.
34950 (main): Handles white space in function name.
34952 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
34955 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
34956 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
34957 to SH_DIV_CALL_TABLE for TARGET_SH2.
34958 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
34960 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
34961 call-table options.
34963 2013-03-05 Sterling Augustine <saugustine@google.com>
34964 Cary Coutant <ccoutant@google.com>
34967 * dwarf2out.c (resolve_addr): Don't call
34968 remove_loc_list_addr_table_entries a second time for the same
34971 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34974 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
34975 (avoid_complex_debug_insns): New function.
34976 (expand_debug_locations): Call it.
34978 PR rtl-optimization/56484
34979 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
34980 lifetimes of hard registers on small register class machines.
34982 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
34984 * config/microblaze/microblaze-protos.h: Rename
34985 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
34986 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
34988 (microblaze_fast_interrupt_function_p): New function.
34989 (microblaze_is_interrupt_handler): Rename to
34990 microblaze_is_interrupt_variant and add fast_interrupt check.
34991 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
34992 (save_restore_insns): Likewise.
34993 (compute_frame_size): Likewise.
34994 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
34995 (microblaze_globalize_label): Likewise.
34996 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
34997 * config/microblaze/microblaze.md: Use wrapper
34998 microblaze_is_interrupt_variant.
35000 2013-03-05 Kai Tietz <ktietz@redhat.com>
35002 * sdbout.c (sdbout_one_type): Switch to current function's section
35003 supporting cold/hot.
35005 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35007 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35010 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35012 PR middle-end/56461
35013 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35014 if VALGRIND_GET_VBITS is defined, temporarily make object
35015 memory all defined, and restore previous valgrind addressability
35016 and definability afterwards. Free this_object at the end.
35018 PR middle-end/56461
35019 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35020 right before calling lra_create_live_ranges, also call it
35021 when clearing live_p. Only call lra_clear_live_ranges
35022 at the end if live_p.
35024 PR middle-end/56461
35025 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
35027 2013-03-05 Richard Biener <rguenther@suse.de>
35029 PR tree-optimization/56521
35030 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
35033 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
35036 * except.h (remove_unreachable_eh_regions): New prototype.
35037 * except.c (remove_eh_handler_splicer): New function, split out
35038 of remove_eh_handler.
35039 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
35040 warning about running it on many EH regions one at a time.
35041 (remove_unreachable_eh_regions_worker): New function, walk the
35042 EH tree in depth-first order and remove non-marked regions.
35043 (remove_unreachable_eh_regions): New function.
35044 * tree-eh.c (mark_reachable_handlers): New function, split out
35045 from remove_unreachable_handlers.
35046 (remove_unreachable_handlers): Use mark_reachable_handlers and
35047 remove_unreachable_eh_regions.
35048 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
35049 and remove_unreachable_eh_regions.
35051 2013-03-05 Richard Biener <rguenther@suse.de>
35053 PR middle-end/56525
35054 * loop-init.c (fix_loop_structure): Remove loops in two stages,
35055 not freeing them until the end.
35057 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35059 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
35061 2013-03-05 Richard Biener <rguenther@suse.de>
35063 PR tree-optimization/56270
35064 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
35065 of loads after scheduling an SLP instance.
35067 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35069 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
35071 (check_gcc_parallelize): Run guality.exp as a separate job from
35072 vect.exp with unsorted.exp and $(dg_target_exps) separately from
35073 struct-layout-1.exp with stackalign.exp.
35075 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
35077 PR middle-end/56461
35078 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
35079 load_index sbitmap even if some bit in it isn't set.
35081 PR middle-end/56461
35082 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
35083 (discover_iteration_bound_by_body_walk): Change queues to
35084 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
35085 spelling in comment. Call safe_push on queues[bound_index] directly.
35086 Release queues[queue_index] in every iteration unconditionally.
35087 Release bounds vector.
35089 PR middle-end/56461
35090 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
35091 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
35092 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
35095 2013-03-05 Richard Biener <rguenther@suse.de>
35098 * tree-inline.c (remap_blocks_to_null): New function.
35099 (expand_call_inline): When expanding a call stmt without
35100 an associated block inline remap all callee blocks to NULL.
35102 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35104 PR rtl-optimization/56494
35105 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
35106 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
35107 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
35109 PR middle-end/56461
35110 * sel-sched-ir.c (free_sched_pools): Release
35111 succs_info_pool.stack[succs_info_pool.max_top] vectors too
35112 if succs_info_pool.max_top isn't -1.
35115 * opts.c (opts_obstack, opts_concat): Moved to...
35116 * opts-common.c (opts_obstack, opts_concat): ... here.
35118 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35120 PR middle-end/56461
35121 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
35123 2013-03-04 Martin Jambor <mjambor@suse.cz>
35125 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
35126 all appropriate places.
35128 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
35130 PR tree-optimization/56424
35131 * ipa-split.c (split_function): Do not set the RSO flag if result is
35132 not by reference and its type is a register type.
35134 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
35136 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
35137 (microblaze_legitimate_pic_operand): Likewise
35138 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
35139 new function microblaze_legitimate_pic_operand
35140 * config/microblaze/microblaze-protos.h
35141 (microblaze_legitimate_pic_operand): Declare.
35143 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35145 * config/microblaze/predicates.md (call_insn_simple_operand):
35146 New predicate for supported rtx code types.
35147 * config/microblaze/microblaze.md (call_internal1): Use
35148 call_insn_simple_operand predicate.
35150 2013-03-04 Jakub Jelinek <jakub@redhat.com>
35152 PR middle-end/56461
35153 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
35154 partitions.ordered_remove.
35156 PR middle-end/56461
35157 * tree-vect-stmts.c (vectorizable_conversion): Don't call
35158 vec_oprnds0.create (1) for modifier == NONE.
35160 PR middle-end/56461
35161 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
35162 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
35163 vec_oprnds1 right before pushing anything to it for
35166 PR middle-end/56461
35167 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
35168 set nbbs to 0 instead of having separate code path.
35169 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
35170 instead of false as last argument if returning NULL.
35172 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
35174 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
35175 the attribute is now called "target" instead of "option".
35176 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
35177 * doc/tm.texi.in (Target Attributes): Likewise document the correct
35178 attribute/pragma name for TARGET_OPTION_VALID_P and
35179 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
35180 * doc/tm.texi: Regenerated.
35182 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
35184 * config/microblaze/microblaze.c:
35185 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
35186 * config/microblaze/microblaze.h: Add -mxl-reorder to
35188 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
35189 instructions emitted if TARGET_REORDER.
35190 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
35191 or 0 for -m/-mno case, but initialises as 2 to detect default use case
35194 2013-03-01 Xinliang David Li <davidxl@google.com>
35196 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
35199 2013-03-01 Jakub Jelinek <jakub@redhat.com>
35201 PR middle-end/56461
35202 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
35203 vector even when returning true. Fix up function comment formatting.
35205 PR middle-end/56461
35206 * ira-build.c (ira_loop_nodes_count): New variable.
35207 (create_loop_tree_nodes): Initialize it.
35208 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
35210 PR middle-end/56461
35211 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35212 method on dr_chain and result_chain.
35213 * tree-vect-stmts.c (vectorizable_store): Only call
35214 result_chain.create if j == 0.
35216 PR middle-end/56461
35217 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35218 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35219 before overwriting it.
35221 2013-03-01 Tobias Burnus <burnus@net-b.de>
35223 * doc/extended.texi (C Extensions): Change order in @menu
35225 (Other MIPS Built-in Functions): Move last MIPS entry before
35226 "picoChip Built-in Functions".
35227 (SH Built-in Functions): Move after RX Built-in Functions.
35228 * doc/gcc.texi (Introduction): Change order in @menu
35230 * doc/md.texi (Constraints): Ditto.
35231 * gty.texi (Type Information): Ditto.
35232 (User-provided marking routines for template types): Make
35234 * doc/invoke.texi (AArch64 Options): Move before
35235 "Adapteva Epiphany Options".
35237 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35238 Jakub Jelinek <jakub@redhat.com>
35241 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35242 no_address_safety_analysis attribute.
35243 * doc/extend.texi (no_address_safety_attribute): Rename to
35244 no_sanitize_address attribute, mention no_address_safety_analysis
35245 attribute as deprecated alias.
35247 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35249 PR middle-end/56461
35250 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35251 type to vec<vec<tree> > *.
35252 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35253 to be vec<tree> instead of vec<tree> *, set vec_defs
35254 to vNULL and call vec_defs.create (number_of_vects), adjust other
35256 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35257 vectorizable_condition): Adjust vect_get_slp_defs callers.
35259 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35261 * config/aarch64/aarch64.c
35262 (aarch64_float_const_representable): Remove unused variable.
35264 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35266 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35268 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35270 * config/aarch64/aarch64-builtins.c
35271 (aarch64_init_simd_builtins): Make static.
35273 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35275 * config/aarch64/aarch64.c
35276 (aarch64_simd_make_constant): Make static.
35278 2013-02-28 Martin Jambor <mjambor@suse.cz>
35280 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
35281 with no initialization to the RHS of debug statements.
35283 2013-02-28 Martin Jambor <mjambor@suse.cz>
35285 PR tree-optimization/56294
35286 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
35288 (get_access_replacement): Do not call create_access_replacement.
35289 Assert a replacement exists.
35290 (get_repl_default_def_ssa_name): Create the replacement declaration
35293 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35295 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
35296 final_end_function.
35298 2013-02-28 Marek Polacek <polacek@redhat.com>
35300 PR rtl-optimization/56466
35301 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
35302 if we're changing a loop.
35303 (peel_loops_completely): Likewise.
35305 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35308 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
35310 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35313 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
35314 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
35315 INTX_FTYPE_FX, FX_FTYPE_INTX.
35316 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
35318 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35320 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
35321 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
35322 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
35323 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
35324 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
35325 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
35326 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
35327 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
35328 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
35329 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
35330 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
35331 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
35332 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
35333 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
35334 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
35335 (avrxmega6): Increase max flash segments from 5 to 6.
35336 * config/avr/t-multilib: Regenerate.
35337 * config/avr/avr-tables.opt: Regenerate.
35338 * doc/avr-mmcu.texi: Regenerate.
35340 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35342 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
35343 (avr_device_to_arch): Rename to avr_device_to_ld.
35344 (avr_device_to_as): New prototype.
35345 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
35346 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
35347 * config/avr/driver-avr.c (avr_device_to_as): New.
35348 (avr_device_to_arch): Rename to avr_device_to_ld.
35350 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35352 PR middle-end/56461
35353 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
35354 method on dr_chain and result_chain.
35356 PR middle-end/56461
35357 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
35358 pointer_set_destroy on not_executed_last_iteration.
35360 PR middle-end/56461
35361 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
35363 PR middle-end/56461
35364 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
35365 FOR_EACH_DEFINED_FUNCTION when freeing state.
35367 PR middle-end/56461
35368 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
35370 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
35373 PR middle-end/56461
35374 * ipa-cp.c (decide_whether_version_node): Call vec_free on
35375 known_aggs[i].items and release known_aggs vector.
35377 PR middle-end/56461
35378 * ipa-reference.c (propagate): Free node_info even for alias nodes.
35380 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35382 * config/microblaze/microblaze.c (microblaze_emit_compare):
35383 Use xor for EQ/NE comparisions.
35384 * config/microblaze/microblaze.md (cstoresf4): Add constraints
35385 (cbranchsf4): Adjust operator to comparison_operator.
35387 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35389 PR middle-end/56461
35390 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
35392 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
35393 vec_safe_push, always update *slot.
35394 (redirect_edge_var_map_clear): Use vec_free.
35395 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
35396 (free_var_map_entry): Use vec_free.
35397 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
35398 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
35400 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
35402 PR middle-end/45472
35403 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
35404 when the may_trap_p bit of the exprs being merged differs.
35405 Reorder tests for speculativeness in the logical and operator.
35407 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35409 * incpath.c (add_standard_paths): Use reconcat instead of concat
35410 where appropriate and avoid leaking memory.
35412 * opts.h: Include obstack.h.
35413 (opts_concat): New prototype.
35414 (opts_obstack): New declaration.
35415 * opts.c (opts_concat): New function.
35416 (opts_obstack): New variable.
35417 (init_options_struct): Call gcc_init_obstack on opts_obstack.
35418 (finish_options): Use opts_concat instead of concat
35419 and XOBNEWVEC instead of XNEWVEC.
35420 * opts-common.c (generate_canonical_option, decode_cmdline_option,
35421 generate_option): Likewise.
35422 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
35423 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
35426 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
35427 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
35429 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35431 PR middle-end/56461
35432 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
35434 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35436 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
35437 (arm_block_move_unaligned_straight): Likewise.
35438 (arm_adjust_block_mem): Likewise.
35440 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35443 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
35444 temp, cond and label.
35445 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
35448 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
35449 * config/c6x/c6x.h (dbx_register_map): Update declaration.
35452 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
35453 of prologue/epilogue functions.
35456 * config/tilegx/tilegx.c (tilegx_expand_prologue):
35457 Remove unused variable cfa_offset.
35458 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
35461 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
35462 type promotion to unsigned.
35465 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
35466 for HOST_WIDE_INT of 32 bit / same size as int.
35467 (arm_block_move_unaligned_straight): Likewise.
35468 (arm_adjust_block_mem): Likewise.
35471 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
35474 2013-02-26 Marek Polacek <polacek@redhat.com>
35476 PR tree-optimization/56426
35477 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
35479 2013-02-26 Richard Biener <rguenther@suse.de>
35482 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
35483 unused variable loops.
35485 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35487 PR tree-optimization/56448
35488 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
35489 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
35490 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
35491 later operands of the references, or even first operand for
35492 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
35494 PR tree-optimization/56443
35495 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
35496 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
35497 to type_for_mode langhook.
35499 2013-02-25 Matt Turner <mattst88@gmail.com>
35501 * doc/invoke.texi: Document r4700.
35503 2013-02-25 Richard Biener <rguenther@suse.de>
35505 PR tree-optimization/56175
35506 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
35508 (simplify_bitwise_binary): ... here. Also guard the conversion
35509 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
35511 2013-02-25 Catherine Moore <clm@codesourcery.com>
35514 2013-02-24 Catherine Moore <clm@codesourcery.com>
35515 Maciej W. Rozycki <macro@codesourcery.com>
35516 Tom de Vries <tom@codesourcery.com>
35517 Nathan Sidwell <nathan@codesourcery.com>
35518 Iain Sandoe <iain@codesourcery.com>
35519 Nathan Froyd <froydnj@codesourcery.com>
35520 Chao-ying Fu <fu@mips.com>
35522 * doc/extend.texi: (micromips, nomicromips, nocompression):
35523 Document new function attributes.
35524 * doc/invoke.texi (minterlink-compressed, mmicromips,
35525 m14k, m14ke, m14kec): Document new options.
35526 (minterlink-mips16): Update documentation.
35527 * doc/md.texi (ZC, ZD): Document new constraints.
35528 * configure.ac (gcc_cv_as_micromips): Check if linker
35529 supports the .set micromips directive.
35530 * configure: Regenerate.
35531 * config.in: Regenerate.
35532 * config/mips/mips-tables.opt: Regenerate.
35533 * config/mips/micromips.md: New file.
35534 * constraints.md (ZC, AD): New constraints.
35535 * config/mips/predicates.md (movep_src_register): New predicate.
35536 (movep_src_operand): New predicate.
35537 (non_volatile_mem_operand): New predicate.
35538 * config/mips/mips.md (multimem): New type.
35539 (length): Differentiate between 17-bit and 18-bit branch offsets.
35540 (MOVEP1, MOVEP2): New mode iterator.
35541 (mov_<load>l): Use ZC constraint.
35542 (mov_<load>r): Likewise.
35543 (mov_<store>l): Likewise.
35544 (mov_<store>r): Likewise.
35545 (*branch_equality<mode>_inverted): Add microMIPS support.
35546 (*branch_equality<mode>): Likewise.
35547 (*jump_absolute): Likewise.
35548 (indirect_jump_<mode>): Likewise.
35549 (tablejump_<mode>): Likewise.
35550 (<optab>_internal): Likewise.
35551 (sibcall_internal): Likewise.
35552 (sibcall_value_internal): Likewise.
35553 (prefetch): Use constraint ZD.
35554 * config/mips/mips.opt (minterlink-compressed): New option.
35555 (minterlink-mips16): Now an alias for minterlink-compressed.
35556 (mmicromips): New option.
35557 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35558 (compare_and_swap_12): Likewise.
35559 (sync_add<mode>): Likewise.
35560 (sync_<optab>_12): Likewise.
35561 (sync_old_<optab>_12): Likewise.
35562 (sync_new_<optab>_12): Likewise.
35563 (sync_nand_12): Likewise.
35564 (sync_old_nand_12): Likewise.
35565 (sync_new_nand_12): Likewise.
35566 (sync_sub<mode>): Likewise.
35567 (sync_old_add<mode>): Likewise.
35568 (sync_old_sub<mode>): Likewise.
35569 (sync_new_add<mode>): Likewise.
35570 (sync_new_sub<mode>): Likewise.
35571 (sync_<optab><mode>): Likewise.
35572 (sync_old_<optab><mode>): Likewise.
35573 (sync_new_<optab><mode>): Likewise.
35574 (sync_nand<mode>): Likewise.
35575 (sync_old_nand<mode>): Likewise.
35576 (sync_new_nand<mode>): Likewise.
35577 (sync_lock_test_and_set<mode>): Likewise.
35578 (test_and_set_12): Likewise.
35579 (atomic_compare_and_swap<mode>): Likewise.
35580 (atomic_exchange<mode>_llsc): Likewise.
35581 (atomic_fetch_add<mode>_llsc): Likewise.
35582 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35583 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35584 (umips_save_restore_pattern_p): Likewise.
35585 (umips_load_store_pair_p): Likewise.
35586 (umips_output_load_store_pair): Likewise.
35587 (umips_movep_target_p): Likewise.
35588 (umips_12bit_offset_address_p): Likewise.
35589 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35590 (mips_base_mips16): Rename this...
35591 (mips_base_compression_flags): ...to this. Update all uses.
35592 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35593 (mips_mips16_decl_p): Delete.
35594 (mips_nomips16_decl_p): Delete.
35595 (mips_get_compress_on_flags): New function.
35596 (mips_get_compress_off_flags): New function.
35597 (mips_get_compress_mode): New function.
35598 (mips_get_compress_on_name): New function.
35599 (mips_get_compress_off_name): New function.
35600 (mips_insert_attributes): Support multiple compression types.
35601 (mips_merge_decl_attributes): Likewise.
35602 (umips_12bit_offset_address_p): New function.
35603 (mips_start_function_definition): Emit .set micromips directive.
35604 (mips_call_may_need_jalx_p): New function.
35605 (mips_function_ok_for_sibcall): Add microMIPS support.
35606 (mips_print_operand_punctuation): Support short delay slots and
35608 (umips_swm_mask, umips_swm_encoding): New.
35609 (umips_build_save_restore): New function.
35610 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35611 (was_mips16_p): Remove.
35612 (old_compression_mode): New.
35613 (mips_set_compression_mode): New function.
35614 (mips_set_current_function): Add microMIPS support.
35615 (mips_option_override): Likewise.
35616 (umips_save_restore_pattern_p): New function.
35617 (umips_output_save_restore): New function.
35618 (umips_load_store_pair_p_1): New function.
35619 (umips_load_store_pair_p): New function.
35620 (umips_output_load_store_pair_1): New function.
35621 (umips_output_load_store_pair): New function.
35622 (umips_movep_target_p) New function.
35623 (mips_prepare_pch_save): Add microMIPS support.
35624 * config/mips/mips.h (TARGET_COMPRESSION): New.
35625 (TARGET_CPU_CPP_BUILTINS): Update macro
35626 to use new compression flags and to support microMIPS.
35627 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35628 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35629 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35630 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35631 (ASM_SPEC): Support mmicromips and mno-micromips.
35632 (M16STORE_REG_P): New macro.
35633 (MIPS_CALL): Support TARGET_MICROMIPS.
35634 (MICROMIPS_J): New macro.
35635 (mips_base_mips16): Rename this...
35636 (mips_base_compression_flags): ...to this.
35637 (UMIPS_12BIT_OFFSET_P): New macro.
35638 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35639 (MULTILIB_DIRNAMES): Likewise.
35641 2013-02-25 Tom de Vries <tom@codesourcery.com>
35643 PR rtl-optimization/56131
35644 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
35645 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
35646 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
35648 2013-02-25 Tobias Burnus <burnus@net-b.de>
35650 * doc/invoke.texi (-fsanitize=): Move from optimization
35651 to debugging options.
35653 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35655 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
35657 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35658 Alexander Monakov <amonakov@ispras.ru>
35660 PR middle-end/56077
35661 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
35662 flush pending lists also on non-jumps. Adjust comment.
35664 2013-02-24 Catherine Moore <clm@codesourcery.com>
35665 Maciej W. Rozycki <macro@codesourcery.com>
35666 Tom de Vries <tom@codesourcery.com>
35667 Nathan Sidwell <nathan@codesourcery.com>
35668 Iain Sandoe <iain@codesourcery.com>
35669 Nathan Froyd <froydnj@codesourcery.com>
35670 Chao-ying Fu <fu@mips.com>
35672 * doc/extend.texi: (micromips, nomicromips, nocompression):
35673 Document new function attributes.
35674 * doc/invoke.texi (minterlink-compressed, mmicromips,
35675 m14k, m14ke, m14kec): Document new options.
35676 (minterlink-mips16): Update documentation.
35677 * doc/md.texi (ZC, ZD): Document new constraints.
35678 * configure.ac (gcc_cv_as_micromips): Check if linker
35679 supports the .set micromips directive.
35680 * configure: Regenerate.
35681 * config.in: Regenerate.
35682 * config/mips/mips-tables.opt: Regenerate.
35683 * config/mips/micromips.md: New file.
35684 * constraints.md (ZC, AD): New constraints.
35685 * config/mips/predicates.md (movep_src_register): New predicate.
35686 (movep_src_operand): New predicate.
35687 (non_volatile_mem_operand): New predicate.
35688 * config/mips/mips.md (multimem): New type.
35689 (length): Differentiate between 17-bit and 18-bit branch offsets.
35690 (MOVEP1, MOVEP2): New mode iterator.
35691 (mov_<load>l): Use ZC constraint.
35692 (mov_<load>r): Likewise.
35693 (mov_<store>l): Likewise.
35694 (mov_<store>r): Likewise.
35695 (*branch_equality<mode>_inverted): Add microMIPS support.
35696 (*branch_equality<mode>): Likewise.
35697 (*jump_absolute): Likewise.
35698 (indirect_jump_<mode>): Likewise.
35699 (tablejump_<mode>): Likewise.
35700 (<optab>_internal): Likewise.
35701 (sibcall_internal): Likewise.
35702 (sibcall_value_internal): Likewise.
35703 (prefetch): Use constraint ZD.
35704 * config/mips/mips.opt (minterlink-compressed): New option.
35705 (minterlink-mips16): Now an alias for minterlink-compressed.
35706 (mmicromips): New option.
35707 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35708 (compare_and_swap_12): Likewise.
35709 (sync_add<mode>): Likewise.
35710 (sync_<optab>_12): Likewise.
35711 (sync_old_<optab>_12): Likewise.
35712 (sync_new_<optab>_12): Likewise.
35713 (sync_nand_12): Likewise.
35714 (sync_old_nand_12): Likewise.
35715 (sync_new_nand_12): Likewise.
35716 (sync_sub<mode>): Likewise.
35717 (sync_old_add<mode>): Likewise.
35718 (sync_old_sub<mode>): Likewise.
35719 (sync_new_add<mode>): Likewise.
35720 (sync_new_sub<mode>): Likewise.
35721 (sync_<optab><mode>): Likewise.
35722 (sync_old_<optab><mode>): Likewise.
35723 (sync_new_<optab><mode>): Likewise.
35724 (sync_nand<mode>): Likewise.
35725 (sync_old_nand<mode>): Likewise.
35726 (sync_new_nand<mode>): Likewise.
35727 (sync_lock_test_and_set<mode>): Likewise.
35728 (test_and_set_12): Likewise.
35729 (atomic_compare_and_swap<mode>): Likewise.
35730 (atomic_exchange<mode>_llsc): Likewise.
35731 (atomic_fetch_add<mode>_llsc): Likewise.
35732 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35733 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35734 (umips_save_restore_pattern_p): Likewise.
35735 (umips_load_store_pair_p): Likewise.
35736 (umips_output_load_store_pair): Likewise.
35737 (umips_movep_target_p): Likewise.
35738 (umips_12bit_offset_address_p): Likewise.
35739 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35740 (mips_base_mips16): Rename this...
35741 (mips_base_compression_flags): ...to this. Update all uses.
35742 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35743 (mips_mips16_decl_p): Delete.
35744 (mips_nomips16_decl_p): Delete.
35745 (mips_get_compress_on_flags): New function.
35746 (mips_get_compress_off_flags): New function.
35747 (mips_get_compress_mode): New function.
35748 (mips_get_compress_on_name): New function.
35749 (mips_get_compress_off_name): New function.
35750 (mips_insert_attributes): Support multiple compression types.
35751 (mips_merge_decl_attributes): Likewise.
35752 (umips_12bit_offset_address_p): New function.
35753 (mips_start_function_definition): Emit .set micromips directive.
35754 (mips_call_may_need_jalx_p): New function.
35755 (mips_function_ok_for_sibcall): Add microMIPS support.
35756 (mips_print_operand_punctuation): Support short delay slots and
35758 (umips_swm_mask, umips_swm_encoding): New.
35759 (umips_build_save_restore): New function.
35760 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35761 (was_mips16_p): Remove.
35762 (old_compression_mode): New.
35763 (mips_set_compression_mode): New function.
35764 (mips_set_current_function): Add microMIPS support.
35765 (mips_option_override): Likewise.
35766 (umips_save_restore_pattern_p): New function.
35767 (umips_output_save_restore): New function.
35768 (umips_load_store_pair_p_1): New function.
35769 (umips_load_store_pair_p): New function.
35770 (umips_output_load_store_pair_1): New function.
35771 (umips_output_load_store_pair): New function.
35772 (umips_movep_target_p) New function.
35773 (mips_prepare_pch_save): Add microMIPS support.
35774 * config/mips/mips.h (TARGET_COMPRESSION): New.
35775 (TARGET_CPU_CPP_BUILTINS): Update macro
35776 to use new compression flags and to support microMIPS.
35777 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35778 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35779 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35780 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35781 (ASM_SPEC): Support mmicromips and mno-micromips.
35782 (M16STORE_REG_P): New macro.
35783 (MIPS_CALL): Support TARGET_MICROMIPS.
35784 (MICROMIPS_J): New macro.
35785 (mips_base_mips16): Rename this...
35786 (mips_base_compression_flags): ...to this.
35787 (UMIPS_12BIT_OFFSET_P): New macro.
35788 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35789 (MULTILIB_DIRNAMES): Likewise.
35791 2013-02-24 Jakub Jelinek <jakub@redhat.com>
35794 * target-globals.c (save_target_globals): For init_reg_sets and
35795 target_reinit remporarily set this_fn_optabs to this_target_optabs.
35797 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
35799 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
35800 * config/aarch64/t-aarch64
35801 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
35803 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
35805 PR inline-asm/56148
35806 * lra-constraints.c (process_alt_operands): Reload operand
35807 conflicting with earlier clobber only if no more other conflicting
35810 2013-02-22 Jakub Jelinek <jakub@redhat.com>
35813 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
35814 if not linking a shared library.
35816 2013-02-22 Seth LaForge <sethml@google.com>
35818 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
35820 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
35822 * config/arm/arm.md (split for extendsidi): Update condition.
35823 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
35824 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
35825 (qhs_zextenddi_cstr): Likewise.
35827 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35829 PR middle-end/56420
35830 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
35831 avoid signed wrapping.
35832 (expand_mult): Handle properly multiplication by
35833 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
35834 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
35835 in the compiler if coeff is HOST_WIDE_INT_MIN.
35836 (expand_divmod): Don't make ext_op1 static, change it's type to
35837 uhwi. Avoid undefined behavior in -INTVAL (op1).
35839 PR rtl-optimization/50339
35840 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
35842 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
35843 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
35844 into splitting_ashiftrt field.
35845 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
35847 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
35850 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
35852 PR middle-end/56108
35853 * trans-mem.c (execute_tm_mark): Do not expand transactions that
35854 are sure to go irrevocable.
35856 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
35858 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
35859 scalars are valid operands.
35861 2013-02-21 Martin Jambor <mjambor@suse.cz>
35863 PR tree-optimization/56310
35864 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
35865 only matching indices and non-negative final offsets.
35866 (intersect_aggregates_with_edge): Pass src_idx to
35867 agg_replacements_to_vector. Pass src_idx insstead of index to
35868 intersect_with_agg_replacements.
35870 2013-02-21 Martin Jambor <mjambor@suse.cz>
35872 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
35873 instead of hard-wired defaults.
35875 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
35877 * doc/invoke.texi (MIPS Options): Update documentation of the
35878 floating-point multiply-accumulate instruction restrictions.
35880 2013-02-21 Kostya Serebryany <kcc@google.com>
35882 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
35883 asan_shadow_offset on x86_64 linux.
35885 2013-02-21 Richard Biener <rguenther@suse.de>
35887 PR tree-optimization/56415
35889 2013-02-11 Richard Biener <rguenther@suse.de>
35891 PR tree-optimization/56273
35892 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
35895 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35898 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
35901 PR inline-asm/56405
35902 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
35903 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
35905 2013-02-20 Jan Hubicka <jh@suse.cz>
35907 PR tree-optimization/56265
35908 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
35909 when target is referenced for first time.
35911 2013-02-20 Richard Biener <rguenther@suse.de>
35913 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
35914 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
35915 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
35916 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
35917 not return anything.
35918 (rename_ssa_copies): Do not remove unused locals.
35919 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
35920 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
35921 * passes.c (execute_function_todo): Do not schedule unused locals
35922 removal if cleanup_tree_cfg did something.
35923 * tree-ssa-live.c (remove_unused_locals): Dump statistics
35924 about the number of removed locals.
35926 2013-02-20 Richard Biener <rguenther@suse.de>
35928 PR tree-optimization/56398
35929 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
35931 2013-02-20 Martin Jambor <mjambor@suse.cz>
35933 PR tree-optimization/55334
35934 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
35935 restricted pointers to arrays.
35937 2013-02-20 Richard Biener <rguenther@suse.de>
35938 Jakub Jelinek <jakub@redhat.com>
35940 PR tree-optimization/56396
35941 * tree-ssa-ccp.c (n_const_val): New static variable.
35942 (get_value): Return NULL for SSA names we don't have a lattice
35944 (ccp_initialize): Initialize n_const_val.
35945 * tree-ssa-copy.c (n_copy_of): New static variable.
35946 (init_copy_prop): Initialize n_copy_of.
35947 (get_value): Return NULL_TREE for SSA names we don't have a
35950 2013-02-20 Martin Jambor <mjambor@suse.cz>
35952 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
35954 2013-02-20 Richard Biener <rguenther@suse.de>
35956 * genpreds.c (write_lookup_constraint): Do not compare first
35957 letter of the constraint again.
35959 2013-02-20 Richard Biener <rguenther@suse.de>
35961 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
35963 (get_use_iv_cost): Terminate hashtable walk when coming across
35966 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
35968 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
35969 reassociation for avx2 targets.
35971 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35973 * config/microblaze/microblaze.c: microblaze_has_clz = 0
35974 Add version check for v8.10.a to enable microblaze_has_clz
35975 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
35976 version and TARGET_PATTERN_COMPARE check
35977 * config/microblaze/microblaze.md: New clzsi2 instruction
35979 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35981 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
35982 function before branching.
35984 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
35986 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
35988 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
35990 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
35992 PR middle-end/55889
35993 * sel-sched.c: Include ira.h.
35994 (implicit_clobber_conflict_p): New function.
35995 (moveup_expr): Use it.
35996 * Makefile.in (sel-sched.o): Depend on ira.h.
35998 2013-02-19 Richard Biener <rguenther@suse.de>
36000 PR tree-optimization/56384
36001 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36002 (vn_hash_type): Split out from ...
36003 (vn_hash_constant_with_type): ... here.
36004 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36005 (vn_phi_eq): Compare types from vn_phi_s structure.
36006 (vn_phi_lookup): Populate vn_phi_s type.
36007 (vn_phi_insert): Likewise.
36009 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36011 PR tree-optimization/56350
36012 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36013 if haven't found reduction or nested cycle operand, rather than
36014 asserting we must find it.
36016 PR tree-optimization/56381
36017 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36020 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36021 Jakub Jelinek <jakub@redhat.com>
36024 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
36025 (swap_optab_enable): Same.
36026 (init_all_optabs): Use argument instead of global.
36027 * tree.h (struct tree_optimization_option): New field target_optabs.
36028 * expr.h (init_all_optabs): Add argument to prototype.
36029 (TREE_OPTIMIZATION_OPTABS): New.
36030 (save_optabs_if_changed): Protoize.
36031 * optabs.h: Declare this_fn_optabs.
36032 * optabs.c (save_optabs_if_changed): New.
36033 Declare this_fn_optabs.
36034 (init_optabs): Add argument to init_all_optabs() call.
36035 * function.c (invoke_set_current_function_hook): Handle per
36037 * function.h (struct function): New field optabs.
36038 * config/mips/mips.c (mips_set_mips16_mode): Handle when
36039 optimization_current_node has changed.
36040 * target-globals.h (save_target_globals_default_opts): Protoize.
36041 * target-globals.c (save_target_globals_default_opts): New.
36043 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36046 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
36047 registers %fr12 and %fr12R as call used.
36050 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
36051 and HImode, require all displacements to be an integer multiple of
36053 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
36054 only allow QImode and HImode when reload is in progress and strict is
36055 true. Likewise for symbolic addresses. Use base14_operand to check
36056 displacements in REG+BASE addresses.
36058 2013-02-18 Richard Biener <rguenther@suse.de>
36060 PR tree-optimization/56366
36061 * tree-vect-loop.c (get_initial_def_for_induction): Properly
36062 handle sign-conversion of outer-loop initial induction value.
36064 2013-02-18 Richard Biener <rguenther@suse.de>
36066 PR middle-end/56349
36067 * cfghooks.c (merge_blocks): If we merge a latch into another
36068 block adjust references to it.
36069 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
36070 (verify_loop_structure): Verify that a recorded latch is in fact
36073 2013-02-18 Richard Biener <rguenther@suse.de>
36075 PR tree-optimization/56321
36076 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
36077 order SSA name release and virtual operand unlinking.
36079 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36081 * config/microblaze/microblaze.md (save_stack_block): Define.
36082 (restore_stack_block): Likewise.
36084 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36086 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
36087 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
36088 * config/microblaze/microblaze.c (microblaze_option_override):
36089 Bail out early for PIC modes when target does not support PIC.
36091 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36093 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
36094 Replace with a microblaze version.
36095 (microblaze_trampoline_init): Adapt for microblaze.
36096 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
36099 2013-02-16 Jakub Jelinek <jakub@redhat.com>
36100 Dodji Seketeli <dodji@redhat.com>
36103 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
36104 (instrument_mem_region_access): Do not forget to always put
36105 instrumentation of the of 'base' and 'base + len' in a "if (len !=
36106 0) statement, even for cases where either 'base' or 'base + len'
36107 are not instrumented -- because they have been previously
36108 instrumented. Simplify the logic by putting all the statements
36109 instrument 'base + len' inside a sequence, and then insert that
36110 sequence right before the current insertion point. Then, to
36111 instrument 'base + len', just get an iterator on that statement.
36112 And do not forget to update the pointer to iterator the function
36113 received as argument.
36115 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
36117 PR rtl-optimization/56348
36118 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
36120 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
36122 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
36123 (clean_graph_dump_file): Pass base to start_graph_dump.
36125 2013-02-14 Richard Henderson <rth@redhat.com>
36128 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
36130 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
36132 * collect2-aix.h: Define F_LOADONLY.
36134 2013-02-14 Richard Biener <rguenther@suse.de>
36137 * varasm.c (output_constant_def_1): Get the decl representing
36138 the constant as argument.
36139 (output_constant_def): Wrap output_constant_def_1.
36140 (make_decl_rtl): Use output_constant_def_1 with the decl
36141 representing the constant.
36142 (build_constant_desc): Optionally re-use a decl already
36143 representing the constant.
36144 (tree_output_constant_def): Adjust.
36146 2013-02-14 Dodji Seketeli <dodji@redhat.com>
36149 * asan.c (instrument_builtin_call): Really put the length of the
36150 second source argument into src1_len.
36152 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36154 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
36155 argument. If it is false, don't create edge from then_bb to
36157 (insert_if_then_before_iter): Pass true to it.
36158 (build_check_stmt): Pass false to it.
36159 (transform_statements): Flush hash table only on extended basic
36160 block boundaries, rather than at the beginning of every bb.
36161 Don't flush hash table on nonfreeing_call_p calls.
36162 * tree-flow.h (nonfreeing_call_p): New prototype.
36163 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
36165 2013-02-13 David S. Miller <davem@davemloft.net>
36167 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
36169 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
36172 * ira.c (max_regno_before_ira): Move from ...
36174 (fix_reg_equiv_init): Use max_regno_before_ira instead of
36177 2013-02-13 Jakub Jelinek <jakub@redhat.com>
36179 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36181 2013-02-13 Richard Biener <rguenther@suse.de>
36184 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
36185 globals in MEM_REFs.
36187 2013-02-13 Richard Biener <rguenther@suse.de>
36189 * loop-init.c (loop_optimizer_init): Clear loop state when
36190 re-initializing preserved loops.
36191 * loop-unswitch.c (unswitch_single_loop): Return whether
36192 we unswitched the loop. Do not verify loop state here.
36193 (unswitch_loops): When we unswitched a loop discover new loops.
36195 2013-02-13 Kostya Serebryany <kcc@google.com>
36197 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
36199 * sanitizer.def: Rename __asan_init to __asan_init_v1.
36201 2013-02-12 Dodji Seketeli <dodji@redhat.com>
36203 Avoid instrumenting duplicated memory access in the same basic block
36204 * Makefile.in (asan.o): Add new dependency on hash-table.h
36205 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
36206 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
36207 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
36208 (free_mem_ref_resources, has_mem_ref_been_instrumented)
36209 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
36210 (get_mem_ref_of_assignment): New functions.
36211 (get_mem_refs_of_builtin_call): Extract from
36212 instrument_builtin_call and tweak a little bit to make it fit with
36214 (instrument_builtin_call): Use the new
36215 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36216 of is_gimple_builtin_call.
36217 (instrument_derefs, instrument_mem_region_access): Insert the
36218 instrumented memory reference into the hash table.
36219 (maybe_instrument_assignment): Renamed instrument_assignment into
36220 this, and change it to advance the iterator when instrumentation
36221 actually happened and return true in that case. This makes it
36222 homogeneous with maybe_instrument_assignment, and thus give a
36223 chance to callers to be more 'regular'.
36224 (transform_statements): Clear the memory reference hash table
36225 whenever we enter a new BB, when we cross a function call, or when
36226 we are done transforming statements. Use
36227 maybe_instrument_assignment instead of instrumentation. No more
36228 need to special case maybe_instrument_assignment and advance the
36229 iterator after calling it; it's now handled just like
36230 maybe_instrument_call. Update comment.
36232 2013-02-13 Richard Biener <rguenther@suse.de>
36234 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36235 Fix loop discovery code.
36237 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36239 PR inline-asm/56148
36240 * lra-constraints.c (process_alt_operands): Match early clobber
36241 operand with itself. Check conflicts with earlyclobber only if
36242 the operand is not reloaded. Prefer to reload conflicting operand
36243 if earlyclobber and matching operands are the same.
36245 2013-02-12 Richard Biener <rguenther@suse.de>
36248 * lto-streamer-out.c (write_symbol): Do not output symbols
36249 for hard register variables.
36251 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36254 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36255 (umulsidi3_insn, mulsidi3_insn): New insns.
36257 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36259 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36260 (struct tune_params): Add vec_costs field.
36261 * config/arm/arm.c (arm_builtin_vectorization_cost)
36262 (arm_add_stmt_cost): New functions.
36263 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36264 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36265 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36266 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36267 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36268 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36269 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36271 2013-02-12 Richard Biener <rguenther@suse.de>
36274 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
36275 decls again if possible.
36277 2013-02-12 Richard Biener <rguenther@suse.de>
36279 PR middle-end/56288
36280 * tree-ssa.c (verify_ssa_name): Fix check, move
36281 SSA_NAME_IN_FREE_LIST check up.
36283 2013-02-12 Jakub Jelinek <jakub@redhat.com>
36284 Steven Bosscher <steven@gcc.gnu.org>
36286 PR rtl-optimization/56151
36287 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
36288 equal to op0 or op1, and last_insn pattern is CODE operation
36289 with MEM dest and one of the operands matches that MEM.
36291 2013-02-11 Sriraman Tallam <tmsriram@google.com>
36293 * doc/extend.texi: Document Function Multiversioning and "default"
36294 parameter string to target attribute.
36295 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
36296 target attribute parameter is "default".
36297 (ix86_compare_version_priority): Remove checks for target attribute.
36298 (ix86_mangle_function_version_assembler_name): Change error to sorry.
36299 Remove check for target attribute equal to NULL. Add assert.
36300 (ix86_generate_version_dispatcher_body): Change error to sorry.
36302 2013-02-11 Iain Sandoe <iain@codesourcery.com>
36303 Jack Howarth <howarth@bromo.med.uc.edu>
36304 Patrick Marlier <patrick.marlier@gmail.com>
36307 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
36308 define ENDFILE_SPEC as TM_DESTRUCTOR.
36309 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
36311 2013-02-11 Alexander Potapenko <glider@google.com>
36312 Jack Howarth <howarth@bromo.med.uc.edu>
36313 Jakub Jelinek <jakub@redhat.com>
36316 * config/darwin.c (cdtor_record): Rename ctor_record.
36317 (sort_cdtor_records): Rename sort_ctor_records.
36318 (finalize_dtors): New routine to sort destructors by
36319 priority before use in assemble_integer.
36320 (machopic_asm_out_destructor): Use finalize_dtors if needed.
36322 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
36324 PR rtl-optimization/56275
36325 * simplify-rtx.c (avoid_constant_pool_reference): Check that
36326 offset is non-negative and less than cmode size before
36327 calling simplify_subreg.
36329 2013-02-11 Richard Biener <rguenther@suse.de>
36331 PR tree-optimization/56264
36332 * cfgloop.h (fix_loop_structure): Adjust prototype.
36333 * loop-init.c (fix_loop_structure): Return the number of
36334 newly discovered loops.
36335 * tree-cfgcleanup.c (repair_loop_structures): When new loops
36336 are discovered, do a full loop-closed SSA rewrite.
36338 2013-02-11 Richard Biener <rguenther@suse.de>
36340 PR tree-optimization/56273
36341 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36343 (check_array_ref): Fix missing newline in dumps.
36344 (search_for_addr_array): Likewise.
36346 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
36348 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
36350 2013-02-09 Jakub Jelinek <jakub@redhat.com>
36353 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
36355 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
36357 PR rtl-optimization/56246
36358 * lra-constraints.c (simplify_operand_subreg): Try to reuse
36360 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
36361 constraints are satisfied.
36363 2013-02-08 Jeff Law <law@redhat.com>
36366 * emit-rtl.c (reg_is_parm_p): New function.
36367 * regs.h (reg_is_parm_p): New prototype.
36368 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
36369 callee-clobbered registers.
36371 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
36374 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
36375 If there is no implicit builtin declaration, just return NULL.
36377 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36379 * config/i386/sse.md (FMAMODEM): New mode iterator.
36380 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
36381 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
36383 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36385 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
36386 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
36387 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
36389 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36391 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
36392 (microblaze*-*-elf): Likewise.
36393 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
36395 * config/microblaze/microblaze-c.c: Add builtin defines for
36396 _LITTLE_ENDIAN and _BIG_ENDIAN.
36397 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
36398 add to TARGET_DEFAULT flags.
36399 Expand ASM_SPEC and LINK_SPEC.
36400 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
36401 * config/microblaze/microblaze.md: Update extendsidi2 and
36402 movdi_internal instructions to use low-order / high-order reg
36404 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
36405 options and inversemask / mask of LITTLE_ENDIAN.
36406 * config/microblaze/t-microblaze: Expand multilib options to
36407 include mlittle-endian (le) and update exceptions patterns.
36409 2013-02-08 Jakub Jelinek <jakub@redhat.com>
36411 PR rtl-optimization/56195
36412 * lra-constraints.c (get_reload_reg): Don't reuse regs
36413 if they have smaller mode than requested, if they have
36414 wider mode than requested, try to return a SUBREG.
36416 PR tree-optimization/56250
36417 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
36418 if type is unsigned and code isn't MULT_EXPR.
36420 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36422 PR tree-optimization/56064
36423 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
36424 bits according to mode.
36425 * fixed-value.h (fixed_from_double_int)
36426 (const_fixed_from_double_int): Adjust comments.
36428 2013-02-08 Richard Biener <rguenther@suse.de>
36431 * lto-streamer.h (struct data_in): Remove current_file, current_line
36432 and current_col members.
36433 * lto-streamer-out.c (lto_output_location): Stream changed bits
36434 en-block for efficiency.
36435 * lto-streamer-in.c (clear_line_info): Remove.
36436 (lto_input_location): Cache current file, line and column
36437 globally via local statics. Read changed bits en-block.
36438 (input_function): Do not call clear_line_info.
36439 (lto_read_body): Likewise.
36440 (lto_input_toplevel_asms): Likewise.
36442 2013-02-08 Michael Matz <matz@suse.de>
36444 PR tree-optimization/52448
36445 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
36446 (nt_call_phase): New static.
36447 (add_or_mark_expr): Only mark accesses with newer phase than any
36449 (nonfreeing_call_p): New.
36450 (nt_init_block): Update nt_call_phase, mark blocks as visited.
36451 (nt_fini_block): Keep blocks marked as visited.
36452 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
36454 2013-02-08 Richard Biener <rguenther@suse.de>
36456 * ira.c (ira): Free broken dominator information.
36458 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36460 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
36462 2013-02-08 Marek Polacek <polacek@redhat.com>
36464 * cfgloop.c (verify_loop_structure): Add more checking of headers.
36466 2013-02-08 Richard Biener <rguenther@suse.de>
36468 PR middle-end/56181
36469 * cfgloop.h (flow_loops_find): Adjust.
36470 (bb_loop_header_p): Declare.
36471 * cfgloop.c (bb_loop_header_p): New function split out from ...
36472 (flow_loops_find): ... here. Adjust function signature,
36473 support incremental loop structure update.
36474 (verify_loop_structure): Cleanup. Verify a loop is a loop.
36475 * cfgloopmanip.c (fix_loop_structure): Move ...
36476 * loop-init.c (fix_loop_structure): ... here.
36477 (apply_loop_flags): Split out from ...
36478 (loop_optimizer_init): ... here.
36479 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
36480 in incremental mode, only remove dead loops here.
36482 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36485 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
36486 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
36487 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
36488 (*round<mode>3.libgcc): New insns for fixed-modes.
36489 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
36490 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
36491 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
36492 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
36493 implementations. Define to __builtin_avr_absFX,
36494 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
36495 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
36496 __builtin_avr_countlsFX, respectively.
36497 * config/avr/avr-c.c (target.h): Include it.
36498 (enum avr_builtin_id): New enum.
36499 (avr_resolve_overloaded_builtin): New static function.
36500 (avr_register_target_pragmas): Use it to set
36501 targetm.resolve_overloaded_builtin.
36502 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
36503 tree nodes used by DEF_BUILTIN.
36504 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
36505 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
36506 <AVR_BUILTIN_xxBITS>: Same.
36508 2013-02-08 Richard Biener <rguenther@suse.de>
36510 * cfgloop.c (verify_loop_structure): Properly handle
36511 a loop exiting to another loop header.
36512 * ira-int.h (ira_loops): Remove.
36513 * ira.c (ira_loops): Remove.
36514 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
36515 (do_reload): Use loop_optimizer_finalize.
36516 * ira-build.c (create_loop_tree_nodes): Use get_loops and
36517 number_of_loops to access the loop tree.
36518 (more_one_region_p): Likewise.
36519 (finish_loop_tree_nodes): Likewise.
36520 (rebuild_regno_allocno_maps): Likewise.
36521 (mark_loops_for_removal): Likewise.
36522 (mark_all_loops_for_removal): Likewise.
36523 (remove_unnecessary_regions): Likewise.
36524 (ira_build): Likewise.
36525 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
36527 2013-02-08 Richard Biener <rguenther@suse.de>
36529 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
36530 * ipa-pure-const.c (analyze_function): Avoid calling
36531 mark_irreducible_loops twice.
36532 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
36534 2013-02-07 David S. Miller <davem@davemloft.net>
36536 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
36538 * var-tracking.c (vt_add_function_parameter): Test the presence of
36539 HAVE_window_save properly and do not remap argument registers when
36540 we have a leaf function.
36542 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
36545 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
36547 * config/i386/i386.c (ix86_print_operand): Ditto.
36549 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36551 * lra-constraints.c (process_alt_operands): Fix recently added comment.
36553 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36555 PR rtl-optimization/56225
36556 * lra-constraints.c (process_alt_operands): Check that reload hard
36557 reg can hold value for strict_low_part.
36559 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36562 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
36563 dwarf2out_end_function.
36564 (in_first_function_p, maybe_at_text_label_p,
36565 first_loclabel_num_not_at_text_label): New variables.
36566 (dwarf2out_var_location): In the first function find out
36567 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
36568 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
36571 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
36573 PR rtl-optimization/56178
36574 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
36575 SUBREG of a register. Tidy up related block of code.
36576 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
36577 note if the source is a register or a SUBREG of a register.
36579 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36582 * config/rs6000/rs6000.md (ptrm): New mode attr.
36583 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
36584 call_value_indirect_aix<pttrsize>,
36585 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
36588 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36590 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
36591 if -bnortl. Convert to strcmp and strncmp.
36593 2013-02-07 Alan Modra <amodra@gmail.com>
36596 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
36597 addresses won't wrap when offsetting.
36598 (rs6000_secondary_reload): Provide secondary reloads needed for
36599 wrapping LO_SUM addresses.
36601 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
36603 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
36604 MACH, just __MACH__.
36606 2013-02-06 Richard Biener <rguenther@suse.de>
36608 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
36609 instead of calling fix_loop_structure.
36611 2013-02-06 Jakub Jelinek <jakub@redhat.com>
36613 PR middle-end/56217
36614 * omp-low.c (use_pointer_for_field): Return false if
36615 lower_send_shared_vars doesn't generate any copy-out code.
36617 2013-02-06 Tom de Vries <tom@codesourcery.com>
36619 PR rtl-optimization/56131
36620 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
36621 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
36622 of the label is NULL. Add comment.
36624 2013-02-05 Jakub Jelinek <jakub@redhat.com>
36626 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
36629 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
36630 (STATIC_LIBTSAN_LIBS): Likewise.
36631 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
36632 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
36633 is defined, don't add anything else beyond that.
36634 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
36635 (LINK_COMMAND_SPEC): Use them.
36637 PR tree-optimization/56205
36638 * tree-stdarg.c (check_all_va_list_escapes): Return true if
36639 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
36640 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
36642 2013-02-05 Richard Biener <rguenther@suse.de>
36644 PR tree-optimization/53342
36645 PR tree-optimization/53185
36646 * tree-vectorizer.h (vect_check_strided_load): Remove.
36647 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
36648 not disallow peeling for vectorized strided loads.
36649 (vect_check_strided_load): Make static and simplify.
36650 (vect_analyze_data_refs): Adjust.
36651 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
36652 correctly when vectorizing strided loads.
36654 2013-02-05 Richard Biener <rguenther@suse.de>
36656 * doc/install.texi: Refer to ISL, not PPL.
36658 2013-02-05 Jan Hubicka <jh@suse.cz>
36660 PR tree-optimization/55789
36661 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
36663 2013-02-05 Jan Hubicka <jh@suse.cz>
36665 PR tree-optimization/55789
36666 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
36667 the dead call anyway.
36669 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
36672 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
36674 2013-02-04 Alexander Potapenko <glider@google.com>
36675 Jack Howarth <howarth@bromo.med.uc.edu>
36676 Jakub Jelinek <jakub@redhat.com>
36679 * config/darwin.c (sort_ctor_records): Stabilized qsort
36680 on constructor priority by using original position.
36681 (finalize_ctors): New routine to sort constructors by
36682 priority before use in assemble_integer.
36683 (machopic_asm_out_constructor): Use finalize_ctors if needed.
36685 2013-02-04 Jakub Jelinek <jakub@redhat.com>
36688 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
36689 about visibility on artificial decls.
36690 * config/sol2.c (solaris_assemble_visibility): Likewise.
36692 2013-02-04 Kai Tietz <ktietz@redhat.com>
36695 * config/i386/i386.c (function_value_ms_64): Add additional valtype
36696 argument and improve checking of return-argument types for 16-byte
36698 (ix86_function_value_1): Add additional valtype argument on call
36699 of function_value_64.
36700 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
36701 handling infunction_value_64 function.
36703 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
36705 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
36707 2013-02-04 Richard Biener <rguenther@suse.de>
36709 PR tree-optimization/56188
36710 * tree-ssa-structalias.c (label_visit): Consider case with
36711 initially non-empty points-to set.
36712 (perform_var_substitution): Dump node mapping and clean up.
36714 2013-02-04 Richard Guenther <rguenther@suse.de>
36717 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
36718 node prevail as last resort.
36719 (lto_symtab_merge_decls): Remove guard on LTRANS here.
36720 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
36722 2013-02-04 Richard Biener <rguenther@suse.de>
36724 PR tree-optimization/56113
36725 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
36727 (equiv_class_lookup_or_add): ... this.
36728 (label_visit): Adjust and fix error in previous patch.
36729 (perform_var_substitution): Adjust.
36731 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36733 * config/sh/divtab.c: Fix formatting and comments throughout the file.
36734 * config/sh/sh4-300.md: Likewise.
36735 * config/sh/sh4a.md: Likewise.
36736 * config/sh/constraints.md: Likewise.
36737 * config/sh/sh.md: Likewise.
36738 * config/sh/netbsd-elf.h: Likewise.
36739 * config/sh/predicates.md: Likewise.
36740 * config/sh/sh-protos.h: Likewise.
36741 * config/sh/ushmedia.h: Likewise.
36742 * config/sh/linux.h: Likewise.
36743 * config/sh/sh.c: Likewise.
36744 * config/sh/superh.h: Likewise.
36745 * config/sh/elf.h: Likewise.
36746 * config/sh/sh4.md: Likewise.
36747 * config/sh/sh.h: Likewise.
36749 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36751 * config/pa/constraints.md: Adjust unused letters. Change "T"
36752 constraint to match_test floating_point_store_memory_operand().
36753 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
36754 (base14_operand): New.
36755 (floating_point_store_memory_operand): New.
36756 (integer_store_memory_operand): Revise to use base14_operand and
36757 reg_plus_base_memory_operand.
36758 (move_dest_operand): Allow symbolic_memory_operands.
36759 (symbolic_memory_operand): Check for LO_SOM.
36760 (symbolic_operand): Change default case to break.
36761 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
36762 CONST_DOUBLE values to be reloaded by putting them into memory when
36763 the destination is a floating point register.
36764 (movdf): Remove code to handle CONST_DOUBLE.
36766 (reload_indf_r1): New.
36767 (reload_insf_r1): New.
36768 Consistently use "Q" and "T" constraints with integer and floating
36769 point move instructions, respectively.
36770 (movdi): Remove FAIL.
36771 Change predicate for source operand unamed DImode move from
36772 general_operand to move_src_operand.
36773 (umulsidi3): Change predicate for destination operand to
36775 Likewise for similar unamed patterns.
36776 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
36777 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
36778 (hppa_legitimize_address): Simplify mask calculation.
36779 (pa_emit_move_sequence): Revised handling of secondary reloads from
36780 REG+D addresses for floating point loads and stores. Directly handle
36781 loading CONST0_RTX (mode) to a floating point register.
36782 (pa_secondary_reload): Handle reloading DF and SFmode constant values
36783 to floating point registers. Don't restrict secondary reloads to
36784 floating point registers to integer modes. Revise some comments and
36786 (TARGET_LEGITIMATE_ADDRESS_P): Define.
36787 (pa_legitimate_address_p): New.
36788 (pa_legitimize_reload_address): New.
36789 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
36790 (STRICT_REG_OK_FOR_BASE_P): New.
36791 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
36792 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
36794 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
36795 Andrew Dixie <andrewd@gentrack.com>
36797 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
36800 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
36802 * expmed.c (extract_bit_field_1): Pass the full width of the
36803 structure to get_best_reg_extraction_insn.
36805 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36808 * configure.ac (use_cxa_atexit): Add AIX.
36809 * configure: Regenerate.
36811 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
36813 2013-02-01 Jakub Jelinek <jakub@redhat.com>
36816 * final.c (need_profile_function): New variable.
36817 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
36818 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
36819 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
36820 notes, targetm.asm_out.function_prologue doesn't emit anything,
36821 HAVE_prologue and profiler should be emitted before prologue,
36822 set need_profile_function instead of emitting it.
36823 (final_scan_insn): If need_profile_function, emit
36824 profile_function on the first NOTE_INSN_BASIC_BLOCK or
36825 NOTE_INSN_FUNCTION_BEG note.
36827 2013-02-01 Richard Henderson <rth@redhat.com>
36829 * config/rs6000/rs6000.md (smulditi3): New.
36832 * config/alpha/alpha.md (umulditi3): New.
36834 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36836 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
36837 (ASM_OUTPUT_ALIGNED_LOCAL): New.
36839 2013-02-01 Richard Biener <rguenther@suse.de>
36841 PR tree-optimization/56113
36842 * tree-ssa-structalias.c (label_visit): Reduce work for
36843 single-predecessor nodes.
36845 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
36847 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
36848 range isn't testing for zero.
36850 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
36852 PR middle-end/56113
36853 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
36855 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
36856 Nick Clifton <nickc@redhat.com>
36858 * config/v850/constraints.md (Q): Define as a memory constraint.
36859 * config/v850/predicates.md (label_ref_operand): New predicate.
36860 (e3v5_shift_operand): New predicate.
36861 (ior_operator): New predicate.
36862 * config/v850/t-v850: Add e3v5 multilib.
36863 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
36864 (v850_gen_movdi): Prototype.
36865 * config/v850/v850.c: Add support for e3v5 architecture.
36866 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
36868 (construct_save_jarl): Add e3v5 long JARL support.
36869 (v850_adjust_insn_length): New function. Adjust length of call
36870 insns when using e3v5 instructions.
36871 (v850_gen_movdi): New function: Generate instructions to move a
36873 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
36874 (CPP_SPEC): Define __v850e3v5__ as appropriate.
36875 (TARGET_USE_FPU): Enable for e3v5.
36876 (CONST_OK_FOR_W): New macro.
36877 (ADJUST_INSN_LENGTH): Define.
36878 * config/v850/v850.md (UNSPEC_LOOP): Define.
36879 (attr cpu): Add v850e3v5.
36880 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
36881 (movdi): New pattern.
36882 (movdi_internal): New pattern.
36883 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
36884 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
36885 (cstoresf4): Likewise.
36886 (cstoredf4): Likewise.
36887 (insv): New pattern.
36888 (rotlso3_a): New pattern.
36889 (rotlsi3_b): New pattern
36890 (rotlsi3_v850e3v5): New pattern.
36891 (doloop_begin): New pattern.
36892 (fix_loop_counter): New pattern.
36893 (doloop_end): New pattern.
36894 (branch_normal): Add e3v5 long branch support.
36895 (branch_invert): Likewise.
36896 (branch_z_normal): Likewise.
36897 (branch_z_invert): Likewise.
36898 (branch_nz_normal): Likewise.
36899 (branch_nz_invert): Likewise.
36900 (call_internal_short): Add e3v5 register-indirect JARL support.
36901 (call_internal_long): Likewise.
36902 (call_value_internal_short): Likewise.
36903 (call_value_internal_long): Likewise.
36904 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
36905 (mloop): New option.
36906 * config.gcc: Add support for configuring v840e3v5 target.
36907 * doc/invoke.texi: Document new v850 specific command line options.
36909 2013-01-31 Paul Koning <ni1d@arrl.net>
36913 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
36914 children if parent is a class.
36915 (prune_unused_types_prune): Don't add DW_AT_declaration.
36917 2013-01-31 Richard Biener <rguenther@suse.de>
36919 PR tree-optimization/56157
36920 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
36921 match up operand with SLP child.
36923 2013-01-31 Jason Merrill <jason@redhat.com>
36926 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
36927 parameters the first time.
36928 (gen_scheduled_generic_parms_dies): Check completeness here.
36930 2013-01-31 Richard Biener <rguenther@suse.de>
36932 PR middle-end/53073
36933 * common.opt (faggressive-loop-optimizations): New flag,
36934 enabled by default.
36935 * doc/invoke.texi (faggressive-loop-optimizations): Document.
36936 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
36937 infer_loop_bounds_from_undefined by it.
36939 2013-01-31 Richard Biener <rguenther@suse.de>
36941 PR tree-optimization/56150
36942 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
36943 visit virtual operands.
36944 (find_uses_to_rename_bb): Likewise.
36946 2013-01-31 Richard Biener <rguenther@suse.de>
36948 PR tree-optimization/56150
36949 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
36950 mixed store non-store stmts.
36952 2013-01-30 Jakub Jelinek <jakub@redhat.com>
36955 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
36956 LIBASAN_EARLY_SPEC is defined.
36957 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
36958 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
36960 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
36963 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
36964 invalid args instead of ICEing on it.
36965 (ix86_valid_target_attribute_tree): Return error_mark_node if
36966 ix86_valid_target_attribute_inner_p failed.
36967 (ix86_valid_target_attribute_p): Return false only if
36968 ix86_valid_target_attribute_tree returned error_mark_node. Allow
36969 target("default") attribute.
36970 (sorted_attr_string): Change argument from const char * to tree,
36971 merge in all target attribute arguments rather than just one.
36972 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
36973 instead of free. Avoid using strcat.
36974 (ix86_mangle_function_version_assembler_name): Mangle
36975 target("default") as if no target attribute is present. Adjust
36976 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
36977 instead of xmalloc and XDELETEVEC instead of free.
36978 (ix86_function_versions): Don't return true if one of the decls
36979 doesn't have target attribute. If they don't and one of the decls
36980 is DECL_FUNCTION_VERSIONED, report an error. Adjust
36981 sorted_attr_string caller. Use XDELETEVEC instead of free.
36982 (ix86_supports_function_versions): Remove.
36983 (make_name): Fix up formatting.
36984 (make_dispatcher_decl): Remove resolver_name and its initialization.
36985 Avoid leaking memory.
36986 (is_function_default_version): Return true if there is
36987 target("default") attribute rather than no target attribute at all.
36988 (make_resolver_func): Avoid leaking memory.
36989 (ix86_generate_version_dispatcher_body): Likewise.
36990 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
36991 * target.def (supports_function_versions): Remove.
36992 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
36993 * doc/tm.texi: Regenerated.
36995 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
36997 PR rtl-optimization/56144
36998 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
36999 for values with side effects.
37001 2013-01-30 Richard Biener <rguenther@suse.de>
37003 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37004 (sparseset_pop): Likewise.
37005 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37006 to be able to use quick_push in the worker loop.
37008 2013-01-30 Marek Polacek <polacek@redhat.com>
37010 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37012 2013-01-30 Richard Biener <rguenther@suse.de>
37015 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37017 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37019 PR tree-optimization/56064
37020 * fixed-value.c (fixed_from_double_int): New function.
37021 * fixed-value.h (fixed_from_double_int): New prototype.
37022 (const_fixed_from_double_int): New static inline function.
37023 * fold-const.c (native_interpret_fixed): New static function.
37024 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
37025 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
37026 (native_encode_fixed): New static function.
37027 (native_encode_expr) <FIXED_CST>: Use it.
37028 (native_interpret_int): Move double_int worker code to...
37029 * double-int.c (double_int::from_buffer): ...this new static method.
37030 * double-int.h (double_int::from_buffer): Prototype it.
37032 2013-01-30 Richard Biener <rguenther@suse.de>
37034 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
37035 New pointer-map and obstack.
37036 (init_alias_vars): Allocate pointer-map and obstack.
37037 (delete_points_to_sets): Free them.
37038 (find_what_var_points_to): Cache result.
37039 (find_what_p_points_to): Adjust for changed interface of
37040 find_what_var_points_to.
37041 (compute_points_to_sets): Likewise.
37042 (ipa_pta_execute): Likewise.
37044 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37046 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
37047 * configure: Regenerate.
37048 * config.in: Regenerate.
37049 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
37050 #nobits/#progbits if supported.
37052 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
37055 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
37056 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
37057 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
37059 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37061 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
37062 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
37064 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37066 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
37067 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
37069 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37071 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
37073 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
37074 * config/arm/cortex-a7.md: New bypasses using
37075 arm_mac_accumulator_is_result.
37077 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37079 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
37080 (cortex_a7_neon_mla): Likewise.
37081 (cortex_a7_fpfmad): New reservation.
37082 (cortex_a7_fpmacs): Use ffmas and update required units.
37083 (cortex_a7_fpmuld): Update required units and latency.
37084 (cortex_a7_fpmacd): Likewise.
37085 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
37086 (cortex_a7_neon). Likewise.
37087 (bypass) Update participating units.
37089 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
37091 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
37092 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
37094 * config/arm/vfp11.md (vfp_farith): Use ffmas.
37095 (vfp_fmul): Use ffmad.
37096 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
37097 (cortex_r4_fmacd): Use ffmad.
37098 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
37099 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37100 (cortex_a9_fmacd): Use ffmad.
37101 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
37102 (cortex_a8_vfp_macd): Use ffmad.
37103 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
37104 (cortex_a5_fpmacd): Use ffmad.
37105 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
37106 (cortex_a15_vfp_macd): Use ffmad.
37107 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
37109 2013-01-29 Jason Merrill <jason@redhat.com>
37112 * varasm.c (default_assemble_visibility): Don't warn about
37113 visibility on artificial decls.
37115 2013-01-29 Richard Biener <rguenther@suse.de>
37117 PR tree-optimization/56113
37118 * tree-ssa-structalias.c (equiv_class_lookup): Also return
37120 (label_visit): Free duplicate bitmaps and record the leader instead.
37121 (perform_var_substitution): Adjust.
37123 2013-01-29 Richard Biener <rguenther@suse.de>
37125 PR tree-optimization/55270
37126 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
37127 the CFG, schedule loops for fixup.
37129 2013-01-29 Nick Clifton <nickc@redhat.com>
37131 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
37134 2013-01-28 Leif Ekblad <leif@rdos.net>
37136 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
37137 * config/i386/i386.h (TARGET_RDOS): New macro.
37138 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
37139 * config/i386/i386.c (ix86_option_override_internal): For 64bit
37140 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
37141 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
37142 DEFAULT_LARGE_SECTION_THRESHOLD.
37143 * config/i386/i386.md (R14_REG, R15_REG): New constants.
37144 * config/i386/rdos.h: New file.
37145 * config/i386/rdos64.h: New file.
37147 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
37150 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
37153 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37155 PR rtl-optimization/56117
37156 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
37157 call cselib_lookup_from_insn on the MEM before calling
37158 add_insn_mem_dependence.
37160 2013-01-28 Richard Biener <rguenther@suse.de>
37162 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
37163 to a stmt that didn't have one.
37164 (copy_phis_for_bb): Likewise for PHI arguments.
37165 (copy_debug_stmt): Likewise for debug stmts.
37167 2013-01-28 Richard Biener <rguenther@suse.de>
37169 PR tree-optimization/56034
37170 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
37171 (partition_builtin_p): Adjust.
37172 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
37173 it is the last partition.
37174 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
37175 up the vertex for the definition.
37176 (classify_partition): Classify whether a partition is a
37177 PKIND_REDUCTION, thus has uses outside of the loop.
37178 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
37179 Merge all PKIND_REDUCTION partitions into the last partition.
37180 (tree_loop_distribution): Seed partitions from reductions as well.
37182 2013-01-28 Jakub Jelinek <jakub@redhat.com>
37184 PR tree-optimization/56125
37185 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
37186 pow(x,c) into sqrt(x) * powi(x, n/2) or
37187 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
37188 optimizing for size.
37189 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
37190 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
37193 PR tree-optimization/56094
37194 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
37195 to UNKNOWN_LOCATION while gimplifying expr.
37197 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
37200 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
37201 operand 0 in movabs insn template for -masm=intel asm alternative.
37202 (*movabs<mode>_2): Ditto for operand 1.
37204 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
37207 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
37210 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37212 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37215 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37217 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37218 Undef to avoid warning.
37220 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37222 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37223 * configure: Regenerate.
37225 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37227 PR tree-optimization/56098
37228 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37229 for stmts with volatile ops.
37230 (cond_store_replacement): Don't optimize if assign has volatile ops.
37231 (cond_if_else_store_replacement_1): Don't optimize if either
37232 then_assign or else_assign have volatile ops.
37233 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37236 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37238 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37240 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37242 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37243 missing ':' in asm example.
37245 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37247 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37248 entries into lane and laneq entries.
37249 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37250 Remove AdvSIMD scalar modes.
37251 (aarch64_sq<r>dmulh_laneq<mode>): New.
37252 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37254 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37255 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37256 * config/aarch64/iterators.md (VCOND): New.
37259 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37262 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37263 Add NULL LIBNAME argument to existing definitions.
37264 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37265 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37266 * config/avr/avr.c (DEF_BUILTIN): Same.
37267 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37268 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37269 implementation is available (DECL_ASSEMBLER_NAME is set).
37270 (avr_fold_absfx): New static function.
37271 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
37272 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
37273 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
37274 AVR_BUILTIN_ABSLLK.
37275 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
37276 (abshk, absk, abslk, absllk): Provide as static inline functions.
37278 2013-01-25 Marek Polacek <polacek@redhat.com>
37280 PR tree-optimization/56035
37281 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
37283 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
37285 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
37286 (*movtf_internal_rex64): Add (!o,C) alternative
37287 (*movxf_internal_rex64): Ditto.
37288 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
37290 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
37292 * doc/invoke.texi: fix typo.
37293 * doc/objc.texi: fix typo.
37295 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
37297 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
37298 for the first two alternatives.
37300 2013-01-24 Diego Novillo <dnovillo@google.com>
37302 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
37303 (ggc-zone.o): Remove.
37304 * configure.ac: Remove option --with-gc.
37305 * configure: Re-generate.
37306 * doc/install.texi: Remove documentation for --with-gc.
37307 * gengtype.c (write_enum_defn): Remove. Update all users.
37308 (write_Types_process_field): Remove generation of gt_e_* argument.
37309 (output_type_enum): Remove. Update all users.
37310 (write_enum_defn): Remove. Update all users.
37311 (enum alloc_zone): Remove. Update all users.
37312 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
37313 * ggc-common.c (ggc_splay_alloc): Remove first argument.
37314 Update all callers.
37315 (struct ptr_data): Remove field TYPE. Update all users.
37316 (gt_pch_note_object): Remove argument TYPE. Update all users.
37317 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
37319 * ggc-none.c (ggc_alloc_typed_stat): Remove.
37320 (struct alloc_zone): Remove.
37321 (ggc_internal_alloc_zone_stat): Remove.
37322 (ggc_internal_cleared_alloc_zone_stat): Remove.
37323 * ggc-page.c (ggc_alloc_typed_stat): Remove.
37324 (ggc_pch_count_object): Remove last argument. Update all users.
37325 (ggc_pch_alloc_object): Remove last argument. Update all users.
37326 (struct alloc_zone): Remove.
37327 * ggc-zone.c: Remove.
37328 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
37329 (struct alloc_zone): Remove.
37330 (ggc_alloc_typed_stat): Remove.
37331 (ggc_alloc_typed): Remove.
37332 (ggc_splay_alloc): Remove first argument.
37333 (rtl_zone): Remove. Update all users.
37334 (tree_zone): Remove. Update all users.
37335 (tree_id_zone): Remove. Update all users.
37336 (ggc_internal_zone_alloc_stat): Remove. Update all users.
37337 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
37338 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
37339 * tree-ssanames.c: Remove references to zone allocator in comments.
37341 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
37343 * config/avr/avr.c (avr_out_fract): Make register numbers that
37344 might be outside of source operand signed.
37346 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
37348 * config/i386/constraints.md (Yf): New constraint.
37349 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
37350 of f constraint to conditionaly disable x87 register preferences.
37351 (*movdf_internal): Ditto.
37352 (*movsf_internal): Ditto.
37354 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
37356 PR inline-asm/55934
37357 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
37358 that have operands with impossible constraints.
37359 Add a FIXME for a speed-up opportunity.
37360 * lra-constraints.c (process_alt_operands): Verify that a class
37361 selected from constraints on asms is valid for the operand mode.
37362 (curr_insn_transform): Remove incorrect comment.
37364 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
37366 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
37367 TOC operand is a valid symbol ref in the constant pool.
37369 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37371 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
37373 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
37376 * config/avr/stdfix.h: New file.
37377 * t-avr (stdfix-gcc.h): New rule to build it.
37378 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
37380 2013-01-23 Kostya Serebryany <kcc@google.com>
37382 * config/darwin.h: remove dependency on
37383 CoreFoundation (asan on Mac OS).
37385 2013-01-23 Jakub Jelinek <jakub@redhat.com>
37388 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
37389 instead of cmpdi_operand for first comparison operand.
37390 Don't assert that comparison operands aren't both constants.
37392 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37394 * doc/install.texi (Downloading the Source): Update references to
37395 downloading separate components.
37397 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37399 * doc/extend.texi (__int128): Improve grammar.
37401 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
37404 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
37405 alternative to (o,r).
37406 (*movdi_internal_rex64): Remove (!o,n) alternative.
37407 (DImode immediate->memory splitter): Remove.
37408 (DImode immediate->memory peephole2): Remove.
37409 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
37410 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
37411 alternative to (!o,*r).
37412 (*movtf_internal_sse): New pattern.
37413 (*movxf_internal_rex64): New pattern.
37414 (*movxf_internal): Disable for TARGET_64BIT.
37415 (*movdf_internal_rex64): Remove (!o,F) alternative.
37417 2013-01-22 Jakub Jelinek <jakub@redhat.com>
37419 PR middle-end/56074
37420 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
37421 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
37422 * tree-vect-loop-manip.c (find_loop_location): Also ignore
37423 stmt locations where LOCATION_LOCUS of the stmt location is
37424 UNKNOWN_LOCATION or BUILTINS_LOCATION.
37427 * config/i386/i386.md (UNSPEC_STOS): New.
37428 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
37429 *strsetqi_1): Add UNSPEC_STOS.
37431 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
37434 * doc/invoke.texi: Remove left over -Wsynth example.
37436 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37438 PR tree-optimization/56051
37439 * fold-const.c (fold_binary_loc): Don't fold
37440 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
37441 a narrowing conversion, or widening conversion from signed
37444 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37446 PR rtl-optimization/56023
37447 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
37448 dependent on debug instruction.
37450 2013-01-21 Martin Jambor <mjambor@suse.cz>
37452 PR middle-end/56022
37453 * function.c (allocate_struct_function): Call
37454 invoke_set_current_function_hook earlier.
37456 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37458 * reload1.c (init_reload): Only initialize reload_obstack
37459 during the first call.
37461 2013-01-21 Marek Polacek <polacek@redhat.com>
37463 * cfgloop.c (verify_loop_structure): Fix up grammar.
37465 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
37467 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
37468 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
37470 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37473 * config/arm/marvell-pj4.md: Update copyright year.
37474 Fix up use of alu to alu_reg and simple_alu_imm.
37476 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37478 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
37480 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
37483 * lra-constraints.c (curr_insn_transform): Don't reuse original
37484 insn for secondary memory move when memory mode should be different.
37486 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37488 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
37489 atomic_storedi_1): New patterns.
37491 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37493 btver2 pipeline descriptions.
37494 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
37496 * config/i386/i386.md (btver2_decode): New type attributes.
37497 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
37499 * config/i386/btver2.md: New file describing btver2 pipelines.
37501 2013-01-19 Andrew Pinski <apinski@cavium.com>
37503 PR tree-optimization/52631
37504 * tree-ssa-sccvn (visit_use): Before looking up the original
37505 statement, try looking up the simplified expression.
37507 2013-01-19 Anthony Green <green@moxielogic.com>
37509 * config/moxie/moxie.c (moxie_expand_prologue): Set
37510 current_function_static_stack_size.
37512 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37514 PR tree-optimization/56029
37515 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
37516 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
37518 2013-01-18 Sharad Singhai <singhai@google.com>
37520 PR tree-optimization/55995
37521 * dumpfile.c (dump_loc): Print location only if available.
37522 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
37524 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
37527 * lra-constraints.c (curr_insn_transform): Reuse original insn for
37528 secondary memory move.
37529 (inherit_reload_reg): Use rclass instead of cl for
37530 check_secondary_memory_needed_p.
37532 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37534 PR middle-end/56015
37535 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
37536 the case where writing real complex part of target modifies op1.
37538 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
37540 * config/aarch64/aarch64-simd.md
37541 (aarch64_vcond_internal<mode>): Handle unordered cases.
37542 * config/aarch64/iterators.md (v_cmp_result): New.
37544 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
37545 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37547 * config/arm/marvell-pj4.md: New file.
37548 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
37549 * config/arm/arm.md (generic_sched): Add marvell_pj4.
37550 (generic_vfp): Likewise.
37551 * config/arm/arm-cores.def: Add marvell-pj4.
37552 * config/arm/arm-tune.md: Regenerate.
37553 * config/arm/arm-tables.opt: Regenerate.
37554 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
37555 * doc/invoke.texi: Document marvell-pj4.
37557 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
37559 * config/aarch64/arm_neon.h: Map scalar types to standard types.
37561 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37566 * var-tracking.c (negative_power_of_two_p): New.
37567 (global_get_addr_cache, local_get_addr_cache): New.
37568 (get_addr_from_global_cache, get_addr_from_local_cache): New.
37569 (vt_canonicalize_addr): Rewrite using the above. Adjust the
37571 (vt_stack_offset_p): Remove.
37572 (vt_canon_true_dep): Always canonicalize loc's address.
37573 (clobber_overlapping_mems): Make sure we have a MEM.
37574 (local_get_addr_clear_given_value): New.
37575 (val_reset): Clear local cached entries.
37576 (compute_bb_dataflow): Create and release the local cache.
37577 Disable duplicate MEMs clobbering.
37578 (emit_notes_in_bb): Clobber MEMs likewise.
37579 (vt_emit_notes): Create and release the local cache.
37580 (vt_initialize, vt_finalize): Create and release the global
37581 cache, respectively.
37582 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
37584 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37586 PR libmudflap/53359
37587 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
37588 not found in the symtab.
37590 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37593 PR rtl-optimization/55547
37594 PR rtl-optimization/53827
37597 * alias.c (offset_overlap_p): New, factored out of...
37598 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
37599 the conservative special case for symbolic constants. Don't
37600 adjust zero sizes on alignment.
37602 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
37604 PR rtl-optimization/52573
37605 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
37606 REG_UNUSED for the same register.
37608 2013-01-17 Richard Biener <rguenther@suse.de>
37609 Marek Polacek <polacek@redhat.com>
37611 PR rtl-optimization/55833
37612 * loop-unswitch.c (unswitch_loops): Move loop verification...
37613 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
37614 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
37615 Set it to true when we're removing a loop from hierarchy tree in
37616 an irreducible region.
37617 (fix_bb_placements): Adjust caller.
37618 (fix_loop_placements): Likewise.
37620 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
37622 * config/avr/builtins.def (DEF_BUILTIN): Factor out
37623 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
37624 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
37625 Remove ID. Adjust comments.
37626 * config/avr/avr-c.c (avr_builtin_name): Remove.
37627 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
37628 * config/avr/avr.c (avr_tolower): New static function.
37629 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
37630 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
37631 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
37634 2013-01-17 Jan Hubicka <jh@suse.cz>
37636 PR tree-optimization/55273
37637 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
37639 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
37642 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
37643 store through atomic_store<mode>_1.
37644 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
37646 2013-01-17 Martin Jambor <mjambor@suse.cz>
37648 PR tree-optimizations/55264
37649 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
37650 for virtual methods.
37651 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
37652 virtual methods before inlining is over.
37653 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
37655 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
37658 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
37660 PR rtl-optimization/56005
37661 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
37662 pending reads for prefetch.
37664 2013-01-16 Ian Bolton <ian.bolton@arm.com>
37666 * config/aarch64/aarch64.md
37667 (*cstoresi_neg_uxtw): New pattern.
37668 (*cmovsi_insn_uxtw): New pattern.
37669 (*<optab>si3_uxtw): New pattern.
37670 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
37671 (*<optab>si3_insn_uxtw): New pattern.
37672 (*bswapsi2_uxtw): New pattern.
37674 2013-01-16 Richard Biener <rguenther@suse.de>
37676 * tree-inline.c (tree_function_versioning): Remove set but
37677 never used variable.
37679 2013-01-16 Richard Biener <rguenther@suse.de>
37681 PR tree-optimization/55964
37682 * tree-flow.h (rename_variables_in_loop): Remove.
37683 (rename_variables_in_bb): Likewise.
37684 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
37685 (copy_loop_before): Adjust and delete update-ssa status.
37686 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
37687 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
37688 (rename_variables_in_loop): Remove.
37689 (slpeel_update_phis_for_duplicate_loop): Likewise.
37690 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
37691 use available cfg machinery instead of duplicating it.
37692 Update PHI nodes and perform poor-mans SSA update here.
37693 (slpeel_tree_peel_loop_to_edge): Adjust.
37695 2013-01-16 Richard Biener <rguenther@suse.de>
37697 PR tree-optimization/54767
37698 PR tree-optimization/53465
37699 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
37700 (vrp_visit_phi_node): For PHI arguments coming via backedges
37701 drop all symbolical range information.
37702 (execute_vrp): Compute backedges.
37704 2013-01-16 Richard Biener <rguenther@suse.de>
37706 * doc/install.texi: Update CLooG and ISL requirements to
37709 2013-01-16 Christian Bruel <christian.bruel@st.com>
37712 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
37713 (broken_move): Handle UNSPECV_SP_SWITCH_B.
37714 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
37716 2013-01-16 DJ Delorie <dj@redhat.com>
37718 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
37719 (UNSPECV_SP_SWITCH_E): New.
37720 (sp_switch_1): Change to an unspec.
37721 (sp_switch_2): Change to an unspec. Don't use post-inc when we
37724 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
37726 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
37727 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
37728 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
37729 (expand_mem_thread_fence): Ditto.
37730 (expand_mem_signal_fence): Ditto.
37731 (expand_atomic_load): Ditto.
37732 (expand_atomic_store): Ditto.
37734 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
37736 PR rtl-optimization/55547
37737 PR rtl-optimization/53827
37740 * alias.c (memrefs_conflict_p): Set sizes to negative after
37743 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37746 * function.c (thread_prologue_and_epilogue_insns): Always
37747 add crtl->drap_reg to set_up_by_prologue.set, even if
37748 stack_realign_drap is false.
37750 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37752 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
37753 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
37754 *call): Fix indention.
37756 2013-01-15 Tom de Vries <tom@codesourcery.com>
37759 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
37762 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
37764 PR rtl-optimization/55153
37765 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
37767 2013-01-15 Martin Jambor <mjambor@suse.cz>
37769 PR tree-optimization/55920
37770 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
37771 accesses as grp_to_be_debug_replaced.
37773 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37775 PR tree-optimization/55920
37776 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
37777 there is non-useless type conversion needed from debug rhs to lhs,
37778 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
37780 2013-01-15 Joseph Myers <joseph@codesourcery.com>
37781 Mikael Pettersson <mikpe@it.uu.se>
37784 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
37786 (ASM_OUTPUT_CASE_LABEL): Remove.
37787 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
37788 * final.c (shorten_branches): Update alignment of labels before
37789 jump tables if CASE_VECTOR_SHORTEN_MODE.
37791 2013-01-15 Richard Biener <rguenther@suse.de>
37794 * system.h: Do not include gmp.h for building host tools.
37796 2013-01-15 Richard Biener <rguenther@suse.de>
37798 PR middle-end/55882
37799 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
37800 account for bitpos when computing alignment.
37802 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
37804 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
37805 (ix86_target_macros_internal): Likewise.
37807 * config/i386/i386.c (m_CORE2I7): Removed.
37808 (m_CORE_HASWELL): New macro.
37809 (m_CORE_ALL): Likewise.
37810 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
37811 (initial_ix86_arch_features): Likewise.
37812 (processor_target_table): Initializations for Core avx2.
37813 (cpu_names): New names "core-avx2".
37814 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
37815 PROCESSOR_CORE_HASWELL.
37816 (ix86_issue_rate): New case.
37817 (ia32_multipass_dfa_lookahead): Likewise.
37818 (ix86_sched_init_global): Likewise.
37820 * config/i386/i386.h (TARGET_HASWELL): New macro.
37821 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
37822 (processor_type): New PROCESSOR_HASWELL.
37824 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37826 PR tree-optimization/55955
37827 * tree-vect-loop.c (vectorizable_reduction): Give up early on
37828 *SHIFT_EXPR and *ROTATE_EXPR codes.
37830 PR tree-optimization/48766
37831 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
37832 -ftrapv disable -fwrapv.
37834 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37837 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
37838 etc. to 1 and not to __flash.
37839 Use LL suffix for __INT24_MAX__ with -mint8.
37840 Use ULL suffix for __UINT24_MAX__ with -mint8.
37842 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37844 * config/avr/avr-arch.h
37845 (struct base_arch_s): Use typedef avr_arch_t instead.
37846 (struct arch_info_s): Use typedef avr_arch_info_t instead.
37847 (struct mcu_type_s): Use typedef avr_mcu_t instead.
37848 * config/avr/avr.c: Same.
37849 * config/avr/avr-devices.c: Same.
37850 * config/avr/driver-avr.c: Same.
37851 * config/avr/gen-avr-mmcu-texi.c: Same.
37852 * config/avr/avr-mcus.def: Adjust comment.
37854 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
37856 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
37857 * config/aarch64/iterators.md (VALLDI): New.
37859 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
37860 Andi Kleen <ak@linux.intel.com>
37863 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
37864 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
37867 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37869 * config/avr/avr-stdint.h: Remove trailing blanks.
37870 * config/avr/avr-log.h: Same.
37871 * config/avr/avr-arch.h: Same.
37872 * config/avr/avr-devices.c: Same.
37873 * config/avr/avr-dimode.md: Same.
37874 * config/avr/predicates.md: Same.
37875 * config/avr/avr-c.c: Same. And fix typo.
37877 * config/avr/avr-protos.h: Same. And:
37878 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
37879 (init_cumulative_args): Rename to avr_init_cumulative_args.
37880 (expand_prologue): Rename to avr_expand_prologue.
37881 (expand_epilogue): Rename to avr_expand_epilogue.
37882 (adjust_insn_length): Rename to avr_adjust_insn_length.
37883 (notice_update_cc): Rename to avr_notice_update_cc.
37884 (final_prescan_insn): Rename to avr_final_prescan_insn.
37885 * config/avr/avr.c: Same.
37886 * config/avr/avr.h: Same.
37887 * config/avr/avr.md: Remove trailing blanks.
37888 (prologue): Use avr_expand_prologue.
37889 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
37891 2013-01-14 Richard Biener <rguenther@suse.de>
37893 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
37894 verify_location, collect_subblocks): New functions.
37895 (verify_gimple_in_cfg): Verify that locations only reference
37896 BLOCKs in the functions BLOCK tree.
37898 2013-01-14 Richard Biener <rguenther@suse.de>
37900 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
37902 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
37904 (insert_out_of_ssa_copy_on_edge): Likewise.
37905 (rewrite_close_phi_out_of_ssa): Likewise.
37906 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
37908 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
37909 propagated constants.
37910 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
37913 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37915 * config/avr/avr-modes.def: Add GPL copyright notice.
37917 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
37919 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
37920 MEMMODEL_MASK to determine memory model.
37921 (atomic_store<mode>): Ditto from operands[2].
37922 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
37924 2013-01-13 Jakub Jelinek <jakub@redhat.com>
37927 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
37928 (fold_gimple_assign): Don't call unshare_expr here.
37929 (fold_ctor_reference): Call unshare_expr.
37931 2013-01-13 Terry Guo <terry.guo@arm.com>
37933 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
37934 * doc/fragments.texi: Document MULTILIB_REUSE.
37935 * gcc.c (multilib_reuse): New internal spec.
37936 (set_multilib_dir): Also search multilib from multilib_reuse.
37937 * genmultilib (tmpmultilib3): Refactor code.
37938 (tmpmultilib4): Ditto.
37939 (multilib_reuse): New multilib argument.
37941 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
37943 * Makefile.in: Update copyright.
37945 2013-01-12 Tom de Vries <tom@codesourcery.com>
37947 PR middle-end/55890
37948 * calls.c (expand_call): Check if arg_nr is valid.
37950 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
37952 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
37953 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
37954 documentation. Add missing '__' in front of
37955 __builtin_ia32_packssdw256.
37957 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37960 * config/s390/s390.c (s390_preferred_reload_class): Do not return
37961 NO_REGS for larl operands.
37962 (s390_reload_larl_operand): Use s390_load_address instead of
37965 2013-01-11 Richard Biener <rguenther@suse.de>
37967 * tree-cfg.c (verify_node_sharing_1): Split out from ...
37968 (verify_node_sharing): ... here.
37969 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
37971 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
37973 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
37974 Substitute TREECHECKING.
37975 * configure: Regenerate.
37976 * Makefile.in (TREECHECKING): New.
37978 2013-01-11 Richard Guenther <rguenther@suse.de>
37980 PR tree-optimization/44061
37981 * tree-vrp.c (extract_range_basic): Compute zero as
37982 value-range for __builtin_constant_p of function parameters.
37984 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
37986 Update copyright years.
37988 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
37990 PR rtl-optimization/55672
37991 * lra-eliminations.c (mark_not_eliminable): Permit addition with
37992 const to be eliminable.
37994 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
37996 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
37997 * configure: Regenerate.
37999 2013-01-10 Richard Biener <rguenther@suse.de>
38001 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38003 2013-01-10 Richard Biener <rguenther@suse.de>
38006 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38007 locations for virtual PHI arguments.
38008 (rewrite_update_phi_arguments): Likewise.
38010 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38012 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38015 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38017 PR tree-optimization/55921
38018 * tree-complex.c (expand_complex_asm): New function.
38019 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38021 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38024 * config/s390/s390.c (s390_symref_operand_p)
38025 (s390_loadrelative_operand_p): Merge the two functions.
38026 (s390_check_qrst_address, print_operand_address): Add parameters
38027 to s390_loadrelative_operand_p invokation.
38028 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
38029 (s390_reload_larl_operand, s390_secondary_reload): Use
38030 s390_loadrelative_operand_p instead of s390_symref_operand_p.
38031 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
38033 2013-01-09 Mike Stump <mikestump@comcast.net>
38035 * dse.c (record_store): Remove unnecessary assert.
38037 2013-01-09 Jan Hubicka <jh@suse.cz>
38039 PR tree-optimization/55569
38040 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
38041 * cfgloop.h (scale_loop_profile): Likewise.
38043 2013-01-09 Jan Hubicka <jh@suse.cz>
38046 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
38048 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
38050 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
38052 PR middle-end/55114
38053 * expr.h (maybe_emit_group_store): Declare.
38054 * expr.c (maybe_emit_group_store): New function.
38055 * builtins.c (expand_builtin_int_roundingfn): Call it.
38056 (expand_builtin_int_roundingfn_2): Likewise.
38058 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
38060 PR rtl-optimization/55829
38061 * lra-constraints.c (match_reload): Add code for absent output.
38062 (curr_insn_transform): Add code for reloads of matched inputs
38065 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
38067 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
38068 attribute of movddup insn to DF.
38069 (*vec_interleave_lowv2df): Ditto.
38070 (vec_dupv2df): Ditto.
38072 2013-01-09 Jan Hubicka <jh@suse.cz>
38074 PR tree-optimiation/55875
38075 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
38076 EVERY_ITERATION parameter.
38077 (number_of_iterations_exit): Check if exit is executed every iteration.
38078 (idx_infer_loop_bounds): Similarly here.
38079 (n_of_executions_at_most): Simplify
38080 to only test for cases where statement is dominated by the
38081 particular bound; handle correctly the "postdominance" test.
38082 (scev_probably_wraps_p): Use max loop iterations info
38083 as a global bound first.
38085 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
38086 Nick Clifton <nickc@redhat.com>
38088 * config/v850/v850.md (cbranchsf4): New pattern.
38089 (cstoresf4): New pattern.
38090 (cbranchdf4): New pattern.
38091 (cstoredf4): New pattern.
38092 (movsicc): Disallow floating point comparisons.
38093 (cmpsf_le_insn): Fix order of operators.
38094 (cmpsf_lt_insn): Likewise.
38095 (cmpsf_eq_insn): Likewise.
38096 (cmpdf_le_insn): Likewise.
38097 (cmpdf_lt_insn): Likewise.
38098 (cmpdf_eq_insn): Likewise.
38099 (cmpsf_ge_insn): Use LE comparison.
38100 (cmpdf_ge_insn): Likewise.
38101 (cmpsf_gt_insn): Use LT comparison.
38102 (cmpdf_gt_insn): Likewise.
38103 (cmpsf_ne_insn): Delete pattern.
38104 (cmpdf_ne_insn): Delete pattern.
38105 * config/v850/v850.c (v850_gen_float_compare): Use
38106 gen_cmpdf_eq_insn for NE comparison.
38107 (v850_float_z_comparison_operator)
38108 (v850_float_nz_comparison_operator): Move from here ...
38109 * config/v850/predicates.md: ... to here. Move GT and GE
38110 comparisons into v850_float_z_comparison_operator.
38111 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
38113 (v850_float_nz_comparison_operator): Likewise.
38115 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38117 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
38118 with calls to gen_insvsi/gen_insvdi.
38120 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38122 * config/i386/i386.c (initial_ix86_tune_features): Set up
38123 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
38125 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
38126 Jakub Jelinek <jakub@redhat.com>
38128 PR tree-optimization/48189
38129 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
38130 If nitercst is 0, don't predict the exit edge.
38132 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38134 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
38135 in asm_fprintf with reg_names.
38136 (aarch64_print_operand_address): Likewise.
38137 (aarch64_return_addr): Likewise.
38138 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
38140 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38142 * config/pa/pa.h (VAL_U6_BITS_P): Define.
38143 (INT_U6_BITS): Likewise.
38144 * config/pa/predicates.md (uint6_operand): New predicate.
38145 (shift5_operand, shift6_operand): Likewise.
38146 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
38148 (lshrdi3): Use shift6_operand.
38149 (shrpsi4, shrpdi4): New insn patterns.
38150 (extzv): Delete expander.
38151 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
38152 predicates in unamed zero extract patterns. Tighten common constraint.
38153 (extv): Delete expander.
38154 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
38155 predicates in unamed sign extract patterns. Tighten common constraint.
38156 (insv): Delete expander.
38157 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
38158 predicates in unamed insert patterns. Tighten common constraint.
38159 Change uint32_operand predicate to uint6_operand predicate in unamed
38160 DImode pattern to insert constant values of type 1...1xxxx.
38162 2013-01-04 Jan Hubicka <jh@suse.cz>
38164 PR tree-optimization/55823
38165 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
38168 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38169 Uros Bizjak <ubizjak@gmail.com>
38171 PR rtl-optimization/55845
38172 * df-problems.c (can_move_insns_across): Stop scanning at
38173 volatile_insn_p source instruction or give up if
38174 across_from .. across_to range contains any volatile_insn_p
38177 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38179 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
38180 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
38182 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
38183 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
38185 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38188 * asan.c (asan_clear_shadow): New function.
38189 (asan_emit_stack_protection): Use it.
38191 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
38193 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
38194 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
38195 with tab instead of space.
38197 2013-01-08 Nick Clifton <nickc@redhat.com>
38199 * config/rl78/rl78.c (rl78_expand_prologue): Always select
38200 register bank 0 at the start of an interrupt handler.
38201 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
38204 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38206 * config/aarch64/aarch64-simd.md
38207 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
38208 (aarch64_simd_bsl): Likewise.
38209 (aarch64_vcond_internal<mode>): Likewise.
38210 (vcond<mode><mode>): Likewise.
38211 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38212 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38214 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38216 * config/aarch64/aarch64-builtins.c
38217 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38219 2013-01-08 Martin Jambor <mjambor@suse.cz>
38222 * tree-sra.c (analyze_access_subtree): Return true also after
38223 potentially creating a debug-only replacement.
38225 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38227 PR middle-end/55890
38228 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38230 PR tree-optimization/54120
38231 * tree-vrp.c (range_fits_type_p): Don't allow
38232 src_precision < precision from signed vr to unsigned_p
38233 if vr->min or vr->max is negative.
38234 (simplify_float_conversion_using_ranges): Test can_float_p
38235 against CODE_FOR_nothing.
38237 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38238 Richard Biener <rguenther@suse.de>
38240 PR middle-end/55851
38241 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38242 types instead of just INTEGER_TYPE types.
38244 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38246 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38249 2013-01-07 Steve Ellcey <sellcey@mips.com>
38252 * config/mips/mips.opt: Change mad to mmad to match documentation.
38254 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38257 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38258 .progmemx.data now.
38260 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38263 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38264 (avr_addrspace_t): Add .section_name field.
38265 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38267 (avr_addrspace): Same. Initialize .section_name. Remove last
38268 NULL entry. Put __memx into .progmemx.data.
38269 (progmem_section_prefix): Remove.
38270 (avr_asm_init_sections): No need to initialize progmem_section.
38271 (avr_asm_named_section): Use avr_addrspace[].section_name to get
38272 section name prefix.
38273 (avr_asm_select_section): Ditto. And use get_unnamed_section to
38274 retrieve the progmem section.
38275 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
38276 boundary to run over avr_addrspace[].
38277 (avr_register_target_pragmas): Ditto.
38279 2013-01-06 Jakub Jelinek <jakub@redhat.com>
38281 * varasm.c (output_constant_def_contents): For asan_protect_global
38282 protected strings, adjust DECL_ALIGN if needed, before testing for
38284 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
38285 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38287 (output_object_block): For asan protected decls, emit asan padding
38288 after their contents.
38289 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
38290 (asan_finish_file): Test it here instead.
38292 2013-01-07 Nick Clifton <nickc@redhat.com>
38293 Matthias Klose <doko@debian.org>
38294 Doug Kwan <dougkwan@google.com>
38295 H.J. Lu <hongjiu.lu@intel.com>
38298 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
38300 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
38302 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
38304 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
38306 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
38308 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38311 * doc/install.texi (Cross-Compiler-Specific Options): Document
38314 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
38316 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
38317 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
38318 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
38319 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
38320 vqmovun_high_s64): Fix source operand number and update copyright.
38322 2013-01-07 Richard Biener <rguenther@suse.de>
38324 PR middle-end/55890
38325 * gimple.h (gimple_call_builtin_p): New overload.
38326 * gimple.c (validate_call): New function.
38327 (gimple_call_builtin_p): Likewise.
38328 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38329 Use gimple_call_builtin_p.
38330 (find_func_clobbers): Likewise.
38331 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
38332 (strlen_optimize_stmt): Likewise.
38334 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38336 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
38337 (vld1q_dup_*): Likewise.
38338 (vld1_*): Likewise.
38339 (vld1q_*): Likewise.
38340 (vld1_lane_*): Likewise.
38341 (vld1q_lane_*): Likewise.
38343 2013-01-07 Richard Biener <rguenther@suse.de>
38345 * lto-streamer.h (LTO_minor_version): Bump to 2.
38347 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38349 * config/aarch64/aarch64-protos.h
38350 (aarch64_const_double_zero_rtx_p): Rename to...
38351 (aarch64_float_const_zero_rtx_p): ...this.
38352 (aarch64_float_const_representable_p): New.
38353 (aarch64_output_simd_mov_immediate): Likewise.
38354 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
38355 move immediate case.
38356 * config/aarch64/aarch64.c
38357 (aarch64_const_double_zero_rtx_p): Rename to...
38358 (aarch64_float_const_zero_rtx_p): ...this.
38359 (aarch64_print_operand): Allow printing of new constants.
38360 (aarch64_valid_floating_const): New.
38361 (aarch64_legitimate_constant_p): Check for valid floating-point
38363 (aarch64_simd_valid_immediate): Likewise.
38364 (aarch64_vect_float_const_representable_p): New.
38365 (aarch64_float_const_representable_p): Likewise.
38366 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
38367 (aarch64_output_simd_mov_immediate): New.
38368 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
38369 (*movdf_aarch64): Likewise.
38370 * config/aarch64/constraints.md (Ufc): New.
38371 (Y): call aarch64_float_const_zero_rtx.
38372 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
38374 2013-01-07 Richard Biener <rguenther@suse.de>
38376 PR tree-optimization/55888
38377 PR tree-optimization/55862
38378 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
38379 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
38380 not if it is contained therein.
38382 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38384 * config/avr/t-avr: Typo.
38386 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38389 * config/avr/t-avr: Don't automatically rebuild
38390 $(srcdir)/config/avr/t-multilib
38391 $(srcdir)/config/avr/avr-tables.opt
38392 $(srcdir)/doc/avr-mmcu.texi
38393 (avr-mcus): New phony target to build them on request.
38394 (s-avr-mlib, s-avr-mmcu-texi): Remove.
38395 * avr/avr-mcus.def: Adjust comments.
38397 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
38399 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
38401 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38403 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
38405 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38407 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
38409 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
38411 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
38412 to generate profiling.
38413 * config/rs6000/aix64.h (LIB_SPEC): Same.
38415 2013-01-04 Andrew Pinski <apinski@cavium.com>
38417 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
38419 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
38421 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
38423 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
38425 (ix86_expand_move): Ditto.
38426 (ix86_zero_extend_to_Pmode): Ditto.
38427 (ix86_expand_call): Ditto.
38428 (ix86_expand_special_args_builtin): Ditto.
38429 (ix86_expand_builtin): Ditto.
38431 2013-01-04 Richard Biener <rguenther@suse.de>
38433 PR tree-optimization/55862
38434 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
38435 translating them through PHI nodes.
38437 2013-01-04 Martin Jambor <mjambor@suse.cz>
38439 PR tree-optimization/55755
38440 * tree-sra.c (sra_modify_assign): Do not check that an access has no
38441 children when trying to avoid producing a VIEW_CONVERT_EXPR.
38443 2013-01-04 Marek Polacek <polacek@redhat.com>
38445 PR middle-end/55859
38446 * opts.c (default_options_optimization): Clarify error message.
38448 2013-01-04 Richard Biener <rguenther@suse.de>
38450 PR middle-end/55863
38451 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
38454 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38457 * config/pa/pa.md (movsi): Revert previous change.
38458 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
38461 2013-01-03 Richard Henderson <rth@redhat.com>
38463 * config/i386/i386.c (ix86_expand_move): Always assign to op1
38464 after eliminating TLS symbols.
38466 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
38469 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
38470 * graphite-poly.c (debug_gmp_value): Likewise.
38472 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
38475 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
38476 selected code model, define __code_mode_small__, __code_model_medium__,
38477 __code_model_large__, __code_model_32__ or __code_model_kernel__.
38478 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
38479 xchg temporary register with %k. Declare temporary register as
38481 [__x86_64__]: For medium and large code models, preserve %rbx register.
38483 2013-01-03 Richard Biener <rguenther@suse.de>
38485 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
38486 (dump_subscript): Adjust.
38487 (finalize_ddr_dependent): Do not dump redundant info.
38488 (analyze_siv_subscript): Adjust.
38489 (subscript_dependence_tester): Likewise.
38490 (compute_affine_dependence): Likewise.
38492 2013-01-03 Richard Biener <rguenther@suse.de>
38495 2013-01-03 Richard Biener <rguenther@suse.de>
38497 PR tree-optimization/55857
38498 * tree-vect-stmts.c (vectorizable_load): Do not setup
38499 re-alignment for invariant loads.
38501 2013-01-02 Richard Biener <rguenther@suse.de>
38503 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38504 invariant load do not generate a vector load from the scalar location.
38506 2013-01-03 Richard Biener <rguenther@suse.de>
38508 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
38509 for not vectorizing.
38510 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
38511 not build INDIRECT_REFs, call get_name once only.
38512 (vect_create_data_ref_ptr): Likewise. Dump base object kind
38513 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
38515 2013-01-03 Richard Biener <rguenther@suse.de>
38517 PR tree-optimization/55857
38518 * tree-vect-stmts.c (vectorizable_load): Do not setup
38519 re-alignment for invariant loads.
38521 2013-01-03 Richard Biener <rguenther@suse.de>
38524 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
38525 prefer a built-in decl.
38527 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38529 * gcc.c (process_command): Update copyright notice dates.
38530 * gcov.c (print_version): Likewise.
38531 * gcov-dump.c (print_version): Likewise.
38533 PR rtl-optimization/55838
38534 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
38535 iv0.step, iv1.step and step.
38537 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38538 Marc Glisse <marc.glisse@inria.fr>
38540 PR tree-optimization/55832
38541 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
38542 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
38543 integer_{one,zero}_node.
38545 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38548 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
38549 * var-tracking.c (reverse_op): Don't add reverse ops to
38550 VALUEs that have already
38551 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
38553 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
38555 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
38557 2013-01-02 Teresa Johnson <tejohnson@google.com>
38559 * dumpfile.c (dump_loc): Print filename with location.
38560 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
38561 new location_t parameter to emit complete unroll message with
38562 new dump framework.
38563 (canonicalize_loop_induction_variables): Compute loops location
38564 and pass to try_unroll_loop_completely.
38565 * loop-unroll.c (report_unroll_peel): New function.
38566 (peel_loops_completely): Use new dump format with location
38567 for main dumpfile message, and invoke report_unroll_peel on success.
38568 (decide_unrolling_and_peeling): Ditto.
38569 (decide_peel_once_rolling): Remove old dumpfile message subsumed
38570 by report_unroll_peel.
38571 (decide_peel_completely): Ditto.
38572 (decide_unroll_constant_iterations): Ditto.
38573 (decide_unroll_runtime_iterations): Ditto.
38574 (decide_peel_simple): Ditto.
38575 (decide_unroll_stupid): Ditto.
38576 * cfgloop.c (get_loop_location): New function.
38577 * cfgloop.h (get_loop_location): Declare.
38579 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38581 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
38584 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38586 PR middle-end/55198
38587 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
38588 BLKmode objects when EXPAND_MEMORY is specified.
38590 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38592 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
38594 (fold_builtin_cpu): Do not share cpu model decls across statements.
38596 2013-01-02 Jason Merrill <jason@redhat.com>
38599 * tree.c (build_array_type_1): Revert earlier change.
38601 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
38603 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
38605 * config/aarch64/aarch64-tune.md: Re-generate.
38607 2013-01-02 Richard Biener <rguenther@suse.de>
38609 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38610 invariant load do not generate a vector load from the scalar location.
38612 2013-01-02 Richard Biener <rguenther@suse.de>
38615 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
38616 * configure: Regenerate.
38618 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38620 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
38621 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
38622 (expand_builtin_int_roundingfn_2): Keep the original target around
38623 for the fallback case.
38625 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38627 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
38628 to be clear for sign changes.
38630 2013-01-01 Jan Hubicka <jh@suse.cz>
38632 * ipa-inline-analysis.c: Fix formatting.
38634 2013-01-01 Jakub Jelinek <jakub@redhat.com>
38636 PR tree-optimization/55831
38637 * tree-vect-loop.c (get_initial_def_for_induction): Use
38638 gsi_after_labels instead of gsi_start_bb.
38640 Copyright (C) 2013 Free Software Foundation, Inc.
38642 Copying and distribution of this file, with or without modification,
38643 are permitted in any medium without royalty provided the copyright
38644 notice and this notice are preserved.