This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Remove a pointless global var


On Tue, 23 Jul 2019, Alexander Monakov wrote:

> On Tue, 23 Jul 2019, Richard Biener wrote:
> 
> > > Can you let me handle sort.cc changes once there's agreement
> > > which way to go?
> > 
> > Sure - feel free to give option 3 a shot.  I'm just worried
> > about the system.h redirect which would be then disabled for C?
> 
> *nod*   My preference would be to poison qsort for C, but there's also
> the possibility to employ option 1 for C while using option 3 for C++.

Works for me.  For C we can use a static redirect in the header as well
and do the usual casting.  Or the poisoning (not sure if that works).
We probably also want to redirect qsort_r from the system then.

Richard.


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