This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined static functions
On Tue, Aug 31, 2004 at 08:31:09AM +0000, Joseph S. Myers wrote:
> This does rather make me wonder whether what check_global_declarations
> does after warning,
>
> /* This symbol is effectively an "extern" declaration now. */
> TREE_PUBLIC (decl) = 1;
>
> is particularly safe.
Doesn't sound like it. I guess the reason it works is that
encode_section_info has already done its job, and we don't
call back into it now.
> ... defining TREE_NO_WARNING to apply
> to decls as well as expressions looks safer.
TREE_NO_WARNING *does* apply to decls. See warn_uninit in tree-ssa.c.
r~