Changes went into ARM support recently to add an informative note after an 
error about an invalid argument to -march=.  This patch looks for that message 
on ARM targets and allows the test to once again pass.

OK for trunk?
Index: gcc.dg/march.c
===================================================================
--- gcc.dg/march.c      (revision 163294)
+++ gcc.dg/march.c      (working copy)
@@ -2,5 +2,6 @@
 /* { dg-skip-if "" { *-*-* } { "-march=*" } { "" } } */
 /* { dg-options "-march=foo" } */
 /* { dg-error "march" "" { target *-*-* } 0 } */
+/* { dg-message "note: valid arguments" "note" { target arm*-*-* } 0 } */
 /* { dg-bogus "mtune" "" { target *-*-* } 0 } */
 int i;

Reply via email to