On 11/03/2011 03:16 PM, Michael Matz wrote:
> > There is a bug about not using -fexceptions (50857).
>
> Then let's fix it, as you said there "We fail to pass -fno-exceptions
> -fno-rtti to g++ for stage2 and stage3 building the host binaries.
> That leads to increased compile-time and possibly runtime."
This follows Ians suggestion from PR50857, testing in libcpp/ and gcc/ if
-fno-exceptions and -fno-rtti work with the compiler, and add them to
ALL_CXXFLAGS. It does fix bootstrap with c,c++,ada and my patch. No yet
put through an all-language bootstrap of testsuite. What do you think?
(I also looked at doing this from top-level configure/Makefile/whatever,
but that's too complicated for me it seems).
I think it's good this way. We know the subset of C++ we use (aka C)
doesn't have either exceptions or RTTI.
Paolo