GCC Middle and Back End API Reference
init-regs.c File Reference

Functions

static void initialize_uninitialized_regs ()
static bool gate_initialize_regs ()
static unsigned int rest_of_handle_initialize_regs ()
rtl_opt_passmake_pass_initialize_regs ()

Function Documentation

static bool gate_initialize_regs ( )
static
static void initialize_uninitialized_regs ( )
static
@verbatim Initialization of uninitialized regs.

Copyright (C) 2007-2013 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.

Check all of the uses of pseudo variables.  If any use that is MUST
   uninitialized, add a store of 0 immediately before it.  For
   subregs, this makes combine happy.  For full word regs, this makes
   other optimizations, like the register allocator and the reg-stack
   happy as well as papers over some problems on the arm and other
   processors where certain isa constraints cannot be handled by gcc.
   These are of the form where two operands to an insn my not be the
   same.  The ra will only make them the same if they do not
   interfere, and this can only happen if one is not initialized.

   There is also the unfortunate consequence that this may mask some
   buggy programs where people forget to initialize stack variable.
   Any programmer with half a brain would look at the uninitialized
   variable warnings.   

References bitmap_bit_p(), bitmap_clear(), bitmap_set_bit(), current_function_name(), df_analyze(), df_dump(), df_live_add_problem(), df_live_set_all_dirty(), df_remove_problem(), dump_file, emit_insn_before(), emit_move_insn(), end_sequence(), get_insns(), basic_block_def::index, move_insn(), and start_sequence().

Referenced by rest_of_handle_initialize_regs().

rtl_opt_pass* make_pass_initialize_regs ( )
static unsigned int rest_of_handle_initialize_regs ( )
static