[Sanitizers] Disable use-after-scope by default. 01/190801/2
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Fri, 5 Oct 2018 08:57:28 +0000 (11:57 +0300)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 18 Oct 2018 13:20:11 +0000 (16:20 +0300)
So, until the patch "Speed up use-after-scope (v2): rewrite into SSA"
is not implemented, we set use-after-scope disabled by default.

Change-Id: Ia84ce0652ce68bc7c269d72a2a4613cb0806bcf4

gcc/opts.c

index 1455a14..b159d1e 100644 (file)
@@ -973,12 +973,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
       opts->x_flag_strict_overflow = 0;
     }
 
-  /* Enable -fsanitize-address-use-after-scope if address sanitizer is
-     enabled.  */
-  if (opts->x_flag_sanitize
-      && !opts_set->x_flag_sanitize_address_use_after_scope)
-    opts->x_flag_sanitize_address_use_after_scope = true;
-
   /* Force -fstack-reuse=none in case -fsanitize-address-use-after-scope
      is enabled.  */
   if (opts->x_flag_sanitize_address_use_after_scope)