> Perhaps it is better to always build those files with cc, perhaps not. > Since there are two versions of the Ada RTL, the one in the compiler and > the one in libada, my questions are: > > 1) Do they share any object files when not cross-compiling? > > 2) If not, is using C++ for the former okay?
There aren't really 2 versions and there aren't shared in any case. > If the answers are "no" and "yes" respectively, I still think a patch > like the one I suggested, where the host files in gcc/ are uniformly > compiled with C++, is preferrable. But your patch isn't necessary to do that, the C files are already compiled with the C++ compiler as of today; the only issue is at the linking stage. -- Eric Botcazou