This is the mail archive of the
mailing list for the GCC project.
Re: On inlining in C++ with unit-at-a-time code
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: gcc at gcc dot gnu dot org
- Date: 15 Aug 2003 01:21:03 +0200
- Subject: Re: On inlining in C++ with unit-at-a-time code
Jan Hubicka writes:
> > On Thu, 14 Aug 2003, Andreas Jaeger wrote:
> > > But other than that, it looks really good. We just had to change half
> > > a dozen packages were we had to add an attribute ((used)) since
> > > functions/variables where used only via inline assembly.
> > Couldn't/shouldn't the compiler detect this kind of use as well, or
> > are these cases where the name of the function/variable actually never
> > was used?
> It is the case where the variable is unused in the source just
> referenced by hand from the inline assembly. Since we don?t parse it,
> we can?t notice the reference.
Maybe we could create a pseudo constraint which would emit the name of
a symbol, and mark it as used?