[llvm-commits] -fno-rtti for vmcore

Nick Lewycky nicholas at mxc.ca
Mon Jan 25 09:38:18 PST 2010


Török Edwin wrote:
> Hi,
>
> vmcore doesn't need rtti either, I think it was an overly conservative
> flag setting in the makefile at fault,
> where REQUIRES_EH automatically turned on REQUIRES_RTTI (probably
> because Makefiles didn't
> use to properly specify REQUIRES_RTTI):
>     # If the library requires EH, it also requires RTTI.
>    REQUIRES_RTTI := 1
>
> But my gcc manual says that "Note that exception handling uses the same
> information, but it will
> generate it as needed.". And in fact if I remove the REQUIRES_EH ->
> REQUIRES_RTTI dependency,
> and REQUIRES_RTTI from VMCore and unittests, bugpoint and everything
> else still builds.
> make check runs fine too.

I don't have a solid answer to this, but when Chris was removing RTTI 
from everything, he asked me to tackle bugpoint on the grounds that it 
blocked the removal of RTTI from VMCore. I've written such a patch but 
want to debug it more before committing.

Nick

> So is the attached patch safe to apply?
>
> P.S.: support and system still need rtti of course due to tblgen.
>
> Best regards,
> --Edwin
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list