forcing tail/sibling call optimization

Fergus Henderson fjh@cs.mu.oz.au
Tue Sep 17 23:47:00 GMT 2002


On 17-Sep-2002, Daniel Egger <degger@rz.fh-muenchen.de> wrote:
> On Tue, Sep 17, 2002 at 12:17:55PM +1000, Fergus Henderson wrote:
> 
> > Are the N_() macro invocations below correct?
> > If so, is the result a msgid?
> > +        return N_("call marked as tail call is not in tail position (it is an argument to another call)");
> 
> If you want this to return a translated string then it is incorrect. [...]
> If you use N_() you need to have an explicit
> gettext call somewhere.

(Just to get closure on this sub-thread:)
As Zack explained, I'm passing the return value to inform() or warning(),
and as it turns out, these functions will call gettext(). 
So the use of N_() here is OK.

Thanks for your help.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.



More information about the Gcc-patches mailing list