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: [LTO][PATCH] Check for defintions in prevailing DECLs


2008/11/26 Rafael Espindola <espindola@google.com>:

> I think this is the wrong way to do it. We should define that on disk
> if a decl is not DECL_EXTERNAL it must have a body and if it is
> DECL_EXTERNAL it must not have one. We can then fix cc1/cc1plus to
> make it happen.
>

I will see what it takes to do that.

> The linker behavior is to see uses (without body) and definitions (with body).

That's what TREE_STATIC does.  FUNCTION_DECL with a definition (body)
set the that flag.

-Doug


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