This is the mail archive of the
mailing list for the GCC project.
Re: On inlining in C++ with unit-at-a-time code
> 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.