This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Questions about the dg-do directive
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- Cc: gcc at gcc dot gnu dot org, mikestump at comcast dot net, ro at CeBiTec dot Uni-Bielefeld dot DE, janisjo at codesourcery dot com
- Date: Tue, 16 Oct 2012 16:14:09 +0200
- Subject: Re: Questions about the dg-do directive
- References: <20121016132011.F157F3BE1C@mailhost.lps.ens.fr>
dominiq@lps.ens.fr (Dominique Dhumieres) writes:
> These questions are motivated by the comments #4 to #15 of pr54407.
>
> The bottom line is that
>
> { dg-do compile targets1 }
> { dg-do run targets2 }
>
> behaves as
>
> {dg-do run { targets1 targets2 } }
>
> while
>
> { dg-do run targets1 }
> { dg-do compile targets2 }
>
> as
>
> { dg-do compile { targets1 targets2 } }
>
> (1) Is the above correct?
> (2) If yes, is it a (undocumented) feature or a bug?
>From dg.exp:
# Multiple instances are supported (since we don't support target and xfail
# selectors on one line), though it doesn't make much sense to change the
# compile/assemble/link/run field. Nor does it make any sense to have
# multiple lines of target selectors (use one line).
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."