Patchwork [testsuite] missing -ftrack-macro-expansion=0 option in gcc.dg/builtin-stringop-chk-1.c

login
register
mail settings
Submitter Greta Yorsh
Date May 2, 2012, 6:21 p.m.
Message ID <000c01cd2890$5ec6f030$1c54d090$@Yorsh@arm.com>
Download mbox | patch
Permalink /patch/156530/
State New
Headers show

Comments

Greta Yorsh - May 2, 2012, 6:21 p.m.
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.Yorsh@arm.com>

	* gcc.dg/builtin-stringop-chk-1.c (dg-options): Replace
	dg-options for target arm with dg-additional-options.


 extern void abort (void);

Patch

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*-*-*
} } */