On Wed, 21 May 2014, Jason Merrill wrote:
On 04/25/2014 05:04 AM, Marc Glisse wrote:
Does this approach seem ok, or do we need to try harder to find a way to
get this typeinfo into libsupc++?
The latter, I think; these are base types, so they should go in the library.
Hmm, ok. Because of the arm target, we can't just use the
register_builtin_type hook as it is. The things I can think of right now
are:
1) change the prototype of register_builtin_type so it takes an extra bool
parameter that says if we want to generate runtime stuff like typeinfo (in
addition to what register_builtin_type is already doing). I would then
update all target calls with ", false" and let target maintainers switch
to true when they are ready.
or
2) create a new register_builtin_type_runtime lang hook that would be
defined only in (obj-)c++ and would be used only to generate typeinfo.
Does one of those seem acceptable?
Another alternative might be to wait for the intN_t work to land and do
the same for floatN_t, but that's too big for me.
--
Marc Glisse