diff options
author | Caroline Tice <ctice@apple.com> | 2007-07-13 23:11:15 +0000 |
---|---|---|
committer | Caroline Tice <ctice@gcc.gnu.org> | 2007-07-13 16:11:15 -0700 |
commit | 62760ffd155d4ff29cf8f3092d756016a953b99e (patch) | |
tree | b87516d5c9ea7c2c70b26f837f1dada3f4c4d0f0 /gcc/rtl.h | |
parent | f861f54dd7ac84b6266d7bed21f5e79885cc5003 (diff) | |
download | gcc-62760ffd155d4ff29cf8f3092d756016a953b99e.zip gcc-62760ffd155d4ff29cf8f3092d756016a953b99e.tar.gz gcc-62760ffd155d4ff29cf8f3092d756016a953b99e.tar.bz2 |
Add ability to track uninitialized variables, and mark uninitialized variables in the Dwarf debug info.
Add ability to track uninitialized variables, and mark uninitialized
variables in the Dwarf debug info. Controlled by compile option
-fvar-tracking-uninit
From-SVN: r126630
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -847,6 +847,22 @@ extern const char * const reg_note_name[]; #define NOTE_VAR_LOCATION_LOC(INSN) (XCEXP (XCEXP (INSN, 4, NOTE), \ 1, VAR_LOCATION)) +/* Initialization status of the variable in the location. Status + can be unknown, uninitialized or initialized. See enumeration + type below. */ +#define NOTE_VAR_LOCATION_STATUS(INSN) (XCINT (XCEXP (INSN, 4, NOTE), \ + 2, VAR_LOCATION)) + +/* Possible initialization status of a variable. When requested + by the user, this information is tracked and recorded in the DWARF + debug information, along with the variable's location. */ +enum var_init_status +{ + VAR_INIT_STATUS_UNKNOWN, + VAR_INIT_STATUS_UNINITIALIZED, + VAR_INIT_STATUS_INITIALIZED +}; + /* Codes that appear in the NOTE_KIND field for kinds of notes that are not line numbers. These codes are all negative. |