On 06/07/2011 02:07 PM, Joseph S. Myers wrote: > On Tue, 7 Jun 2011, Janis Johnson wrote: > >> Several tests in gcc.target/arm use dg-options with -mcpu=xxxx, which >> causes compiler warnings or errors when the multilib flags include >> -march=yyyy. This patch causes those tests to be skipped. It also >> prevents gcc.target/arm/20090811-1.c from running with multilibs that >> would override -mcpu or -mfloat-abi options specified for the test. > > I think you should allow compatible -march options - for example, if > dg-options has -mcpu=cortex-a8, allow -march=armv7-a but disallow all > other -march options. > Is this one OK? I got the arch lists by compiling the -mcpu options from the tests with each of the -march options listed in the GCC manual to find the ones that don't get warnings or errors.