On Wed, Jun 03, 2015 at 06:32:01PM +0200, Marek Polacek wrote: > All right, that seems to work well. Done in the below. > > Bootstrap-ubsaned/regtested on x86_64-linux, ok for trunk?
Ok, thanks. > 2015-06-03 Marek Polacek <pola...@redhat.com> > > PR sanitizer/66190 > * cp-gimplify.c (struct cp_genericize_data): Add no_sanitize_p. > (cp_genericize_r): Don't instrument static initializers. > (cp_genericize_tree): Initialize wtd.no_sanitize_p. > > * g++.dg/ubsan/static-init-1.C: New test. > * g++.dg/ubsan/static-init-2.C: New test. > * g++.dg/ubsan/static-init-3.C: New test. Jakub