main_identifier_node is defined to "main" when gigi starts up but redefined to something else when the compilation unit really contains a main. This breaks in LTO mode, including for an all-Ada program. Tested on i586-suse-linux, applied on the mainline. 2009-10-21 Eric Botcazou * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine main_identifier_node. -- Eric Botcazou