2018-03-01 Martin Liska <mliska@suse.cz>
PR sanitizer/82484
* sanopt.c (sanitize_rewrite_addressable_params): Do not handle
volatile arguments.
2018-03-01 Martin Liska <mliska@suse.cz>
PR sanitizer/82484
* gcc.dg/asan/pr82484.c: New test.
From-SVN: r258101
+2018-03-01 Martin Liska <mliska@suse.cz>
+
+ PR sanitizer/82484
+ * sanopt.c (sanitize_rewrite_addressable_params): Do not handle
+ volatile arguments.
+
2018-03-01 Richard Biener <rguenther@suse.de>
PR debug/84645
arg; arg = DECL_CHAIN (arg))
{
tree type = TREE_TYPE (arg);
- if (TREE_ADDRESSABLE (arg) && !TREE_ADDRESSABLE (type)
+ if (TREE_ADDRESSABLE (arg)
+ && !TREE_ADDRESSABLE (type)
+ && !TREE_THIS_VOLATILE (arg)
&& TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST)
{
TREE_ADDRESSABLE (arg) = 0;
+2018-03-01 Martin Liska <mliska@suse.cz>
+
+ PR sanitizer/82484
+ * gcc.dg/asan/pr82484.c: New test.
+
2018-03-01 Richard Biener <rguenther@suse.de>
PR debug/84645
--- /dev/null
+/* PR sanitizer/82484 */
+/* { dg-do compile } */
+
+void foo(volatile int *ptr);
+void a (volatile int b) { foo(&b); }