aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2007-07-13 23:11:15 +0000
committerCaroline Tice <ctice@gcc.gnu.org>2007-07-13 16:11:15 -0700
commit62760ffd155d4ff29cf8f3092d756016a953b99e (patch)
treeb87516d5c9ea7c2c70b26f837f1dada3f4c4d0f0 /gcc/rtl.h
parentf861f54dd7ac84b6266d7bed21f5e79885cc5003 (diff)
downloadgcc-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.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 124f528..63f6573 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -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.