Questions about the dg-do directive
Andreas Schwab
schwab@linux-m68k.org
Tue Oct 16 14:14:00 GMT 2012
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."
More information about the Gcc
mailing list