This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: guile bugs


Jim Blandy <jimb@red-bean.com> writes:
> Unfortunately, transparent unions are still *returned* using the
> conventions for unions.  Which will definitely hurt performance.

Oops.  Yeah, I guess people would want to return SCM objects
efficiently, wouldn't they?

> Ken, if I asked the EGCS folks about it, and they approved in
> principle, would you be able to write a patch for GCC to make it
> return, as well as pass, transparent unions as if they had the type of
> the union's first element?

Sure.

It's an incompatible change, though for a case I've never heard of
anyone actually using before; there might be resistance.  (I'd guess
glibc and linux would be the most likely "offenders".)  And this isn't
what transparent unions were intended for in the first place; they
were supposed to deal with library routines like `wait'.  But if this
sort of unusual use is "blessed", the return convention change would
make a certain amount of sense.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]