This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] SPARC psABI fix, callee returns struct checking.
From: Eric Botcazou <ebotcazou@libertysurf.fr>
Date: Thu, 9 Mar 2006 07:50:34 +0100
> > (David, the issue is not just academic; Sun's compiler omits the return
> > address when the value is cast to avoid, as in Carlos' example.)
>
> What problem are you trying to solve? Can't we be more clever? Do you really
> want to pessimize every single call returning a struct for the sake of
> pathological cases?
Indeed, Sun's "optimization" to avoid the unimp when the return value
is cast to void actually makes the code run more slowly.