This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] more useless stuff in expand_body
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 05 Sep 2007 21:59:05 -0700
- Subject: Re: [C++] more useless stuff in expand_body
- References: <20070905214443.GP30523@kam.mff.cuni.cz>
Jan Hubicka wrote:
> Hi,
> this is another apparently unnecesary bit in expand_body. I think it is
> artefact from times TREE_USED was used to track down what to output.
>
> Bootstrapped/regtested i686-linux, OK?
This was to avoid -Wunused warning about variables in multiple clones.
For example, things like:
struct S {
S(int);
};
S::S(int i) {}
We only want *one* warning about "i" being unused, even if we generate
multiple clones of S::S. Are you sure that can no longer occur?
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713