This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++] more useless stuff in expand_body


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]