This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[asan, tsan] Don't ICE with -Og -fsanitize=address


Hi!

I've noticed we don't schedule asan/tsan passes for -Og, which results in
ICEs.  For -O0 that is handled by pass_[at]san_O0, but for -Og which also
doesn't use the normal optimization queue there is nothing.

Ok for trunk?

2012-11-27  Jakub Jelinek  <jakub@redhat.com>

	* passes.c (init_optimization_passes): Add pass_asan and pass_tsan
	to -Og optimization passes.

--- gcc/passes.c.jj	2012-11-27 12:08:02.000000000 +0100
+++ gcc/passes.c	2012-11-27 15:04:59.722410179 +0100
@@ -1536,6 +1536,8 @@ init_optimization_passes (void)
       /* Copy propagation also copy-propagates constants, this is necessary
          to forward object-size results properly.  */
       NEXT_PASS (pass_copy_prop);
+      NEXT_PASS (pass_asan);
+      NEXT_PASS (pass_tsan);
       NEXT_PASS (pass_rename_ssa_copies);
       NEXT_PASS (pass_dce);
       /* Fold remaining builtins.  */

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]