Re: [PATCH] Move check_global_declaration from toplev.c to cgraphunit.c

2015-09-16 Thread Jeff Law
On 09/16/2015 11:54 AM, Manuel López-Ibáñez wrote: Unfortunately, toplev.c is a kitchen sink of things that do not belong anywhere in particular. For example, check_global_declarations is only used in cgraphunit.c. Moving it there allows us to make it static and remove one call to symtab_node::ge

[PATCH] Move check_global_declaration from toplev.c to cgraphunit.c

2015-09-16 Thread Manuel López-Ibáñez
Unfortunately, toplev.c is a kitchen sink of things that do not belong anywhere in particular. For example, check_global_declarations is only used in cgraphunit.c. Moving it there allows us to make it static and remove one call to symtab_node::get. Bootstrapped & regtested on x86_64-linux-gnu. OK