http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52297
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-02-23 17:54:26 UTC --- > This looks like a regression brought about by: > > +2012-02-13 Eric Botcazou <ebotca...@adacore.com> > + > + * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm. > + (GTM_SELF_SPECS): Define if not already defined. > + (driver_self_specs): Add GTM_SELF_SPECS. > + * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm. > + (GTM_SELF_SPECS): Define. > + * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise. > + * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise. Well, the existing linking scheme was totally broken, which allowed you to devise the gcc.dg/lto/trans-mem.h hack. Now that it has been fixed, the hack doesn't work anymore, which isn't very surprising... We need a proper fix instead.