On 06/07/2011 06:25 PM, Mike Stump wrote: > On Jun 7, 2011, at 4:24 PM, Janis Johnson wrote: >> 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? > > Not sure if the arm people want to review this or would rather I review it... > > Let's give the arm folks a couple days to comment, if no objections, Ok. > > A point of warning, eventually, you'll discover that when a compiler defaults > to the argument you want to skip, that you'll needs slightly more power to > skip them. darwin ran into this with things like -m64, and eventually had to > do something like lp64. configure options like --with-cpu=arm9 are the sort > that can change the default.
Yes, I hope to hear from ARM people. On ARM, the default from --with-cpu= is overridden by -march at compile so it's not a problem for this particular set of tests. As I said originally, this set is the tip of the iceberg and they get more difficult. Janis