The test gcc.dg/builtin-stringop-chk-1.c fails on arm-none-eabi because the command line option -ftrack-macro-expansion=0 is missing.
This command-line option has recently been added to dg-options directive in this test, but for arm targets the first dg-options directive in the test is overwritten by a second dg-options that does not contain -ftrack-macro-expansion=0. This patch replaces the second dg-options directive with dg-additional-options. Fixed test passes on qemu. OK for trunk? Thanks, Greta gcc/testsuite 2012-05-02 Greta Yorsh <greta.yo...@arm.com> * gcc.dg/builtin-stringop-chk-1.c (dg-options): Replace dg-options for target arm with dg-additional-options. diff --git a/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c b/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c index beecab6..5cec6b3 100644 --- a/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c +++ b/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c @@ -2,7 +2,7 @@ are emitted properly. */ /* { dg-do compile } */ /* { dg-options "-O2 -std=gnu99 -ftrack-macro-expansion=0" } */ -/* { dg-options "-mstructure-size-boundary=8 -O2 -std=gnu99" { target arm*-*-* } } */ +/* { dg-additional-options "-mstructure-size-boundary=8" { target arm*-*-* } } */ extern void abort (void);