------- Comment #2 from janis at gcc dot gnu dot org 2009-10-12 16:06 ------- It doesn't have the desired or expected effect, just the documented effect. >From the GCC internals manual section 6.4.6 Support for testing link-time optimizations: "Unlike dg-do, dg-lto-do does not support an optional `target' or `xfail' list. Use dg-skip-if, dg-xfail-if, or dg-xfail-run-if."
That's rather obscure. For now I'll make it an error and then later maybe I'll have time to support target and xfail for dg-lto-do. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41659