[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reply to Mr Verdoolaege about wide chars
From: |
Alexander Viro |
Subject: |
Re: Reply to Mr Verdoolaege about wide chars |
Date: |
Fri, 5 Oct 2001 07:14:00 -0400 (EDT) |
On Fri, 5 Oct 2001, Rod Chamberlin wrote:
> On Fri, 28 Sep 2001, Thomas Dickey wrote:
>
> > On Fri, Sep 28, 2001 at 01:18:24PM +0100, Rod Chamberlin wrote:
> > > I think the thing you need to beware of if you are returning structures is
> > > thread safety, since the structure is usually returned in a standard
> > > common block of memory rather than in a register/on the stack.
> >
> > is that gcc only, or generally true of C compilers?
It's not gcc. It's an ancient pcc bug that had crapped calling conventions
on old Unices. Fixed more than a decade ago...
> I'm not sure actually; it's something I read a while back about the use of
> structure return-values. I tend to try to avoid them, and just pass them
> by reference, but I guess that isn't feasible here.