I need this support for LIPO but it might be also useful for trunk. The support is 'borrowed' from lib/lto.exp. I have tested with it and it works fine. The only limitation is for any subdirectory with a multi-source test case, all the other single source test case need also to follow the same naming standard, i.e., named as xxxx_0.c. The current FDO test under gcc.dg/tree-prof works as it is without any changes.
Thanks, David
prof-multi.p
Description: Binary data