This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Using ELF symbol visibility feature for libgcc?


Sorry, reply to myself.

I wrote:
 > It means that, we couldn't improve GCC and the implementation of
 > libgcc in some cases.  Suppose that we have implementation of
 > __udivsi3 in GCC version A which clobbers register X.  We've done
 > improvement on the implementation with no more clobbers of register X,
 > and change the generation of code so that register X can be used for
 > other purpose, this is version B.
 > 
 > The code generated by version B assumes __udivsi3 does not clobber
 > register X (and produces possibly good code because of that) while the
 > one with version A clobbers.  This causes version problem.
 > 
 > Or, such improvement is not allowed at all, isn't it?

Implement new version of __udivsi3 as __udivsi3_B and generate
__udivsi3_B, and to maintain the interface of libgcc.
-- 

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