]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/common.opt
Add -Wuse-after-free [PR80532].
[thirdparty/gcc.git] / gcc / common.opt
index fde3f722ede838261cfe172a2624a5ddb506f8ab..c3f6472be049f467d5cccd03db4301ce04ac9fc7 100644 (file)
@@ -552,6 +552,14 @@ Warray-bounds=
 Common Joined RejectNegative UInteger Var(warn_array_bounds) Warning IntegerRange(0, 2)
 Warn if an array is accessed out of bounds.
 
+Wuse-after-free
+Common Var(warn_use_after_free) Warning
+Warn for uses of pointers to deallocated strorage.
+
+Wuse-after-free=
+Common Joined RejectNegative UInteger Var(warn_use_after_free) Warning IntegerRange(0, 3)
+Warn for uses of pointers to deallocated strorage.
+
 Wattributes
 Common Var(warn_attributes) Init(1) Warning
 Warn about inappropriate attribute usage.