------- Comment #1 from dnovillo at gcc dot gnu dot org 2009-02-17 16:15 -------
I think the easiest way to handle this would be for the driver to disable -fwhole-program when the IL is being generated. Otherwise, all the symbols are privatized. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39203