On Jan 15, 2015, at 8:14 AM, Ilya Verbin <iver...@gmail.com> wrote: > The problem is that gcc-dg.exp calls check_effective_target_lto, which calls > libatomic_target_compile. Therefore gcc-dg.exp should be loaded only after > the > definition of libatomic_target_compile.
> However, a similar exp file in other tree (libitm/testsuite/lib/libitm.exp) > doesn't contain any explicit 'load_gcc_lib gcc-dg.exp' at all, but it loads > gcc-dg.exp implicitly. So I'm not sure whether this patch is correct. So, can you try the itm version of this? If that works, Ok.