This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: output unreferenced static variable if an alias to it is referenced
- From: Richard Henderson <rth at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 Oct 2005 03:33:54 -0700
- Subject: Re: output unreferenced static variable if an alias to it is referenced
- References: <orek6tca8g.fsf@livre.oliva.athome.lsd.ic.unicamp.br> <ord5m0smzq.fsf@livre.oliva.athome.lsd.ic.unicamp.br>
On Thu, Oct 20, 2005 at 04:47:53AM -0200, Alexandre Oliva wrote:
> * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
> alias targets.
> * varasm.c (find_decl_and_mark_needed): After cgraph global info
> is ready, stop marking functions, but still mark variables.
Ok, except,
> * gcc.dg/attr-alias-3.c: New test.
Don't we have some test keyword that disables the test when
(strong) aliases aren't available on the platform? It seems
like there should be something here...
r~