This is the mail archive of the gcc@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: 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?

-- 
	Falk


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