This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: target/6882: [SPARC] Useless stack adjustment code
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 31 Mar 2003 07:46:01 -0000
- Subject: Re: target/6882: [SPARC] Useless stack adjustment code
- Reply-to: Eric Botcazou <ebotcazou at libertysurf dot fr>
The following reply was made to PR target/6882; it has been noted by GNATS.
From: Eric Botcazou <ebotcazou at libertysurf dot fr>
To: Hans-Peter Nilsson <hp at bitrange dot com>
Cc: <dann at godzilla dot ics dot uci dot edu>,
<gcc-bugs at gcc dot gnu dot org>,
<nobody at gcc dot gnu dot org>,
<gcc-gnats at gcc dot gnu dot org>
Subject: Re: target/6882: [SPARC] Useless stack adjustment code
Date: Mon, 31 Mar 2003 09:37:25 +0200
> No, it seems a valid optimization request to not emit the
> stack-adjustment code. Could you find a *specific* reason for
> the stack-adjustment code? (Please state that in the PR.)
No, I don't see a "specific" reason. But:
- functions from the same translation unit that call it (and that appear
after it in normal mode, but the restriction is lifted with
-funit-at-a-time) don't actually emit the call,
- would the benefit be worth it in real life, given that the costly operation
is to call the function itself (for nothing)? I think the real optimization
is not to emit the call at all.
--
Eric Botcazou