[PATCH] Get rid of useless -fno-rtti for libubsan

Yury Gribov y.gribov@samsung.com
Thu Nov 28 14:13:00 GMT 2013


 > I wonder if this can't be done through
 > just adding -fno-rtti to AM_CXXFLAGS and say
 > ubsan_handlers_cxx.% ubsan_type_hash.% : AM_CXXFLAGS += -frtti

Yup, that did the trick. Attaching modified patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubsan_nortti_patch_2.diff
Type: text/x-patch
Size: 4160 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131128/fff1d7a7/attachment.bin>
-------------- next part --------------
2013-11-28  Jakub Jelinek  <jakub@redhat.com>
	    Yury Gribov  <y.gribov@samsung.com>

	PR sanitizer/59106
	* ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
	don't need it.
	* ubsan/Makefile.in: Regenerated.



More information about the Gcc-patches mailing list