Re: Multiple dg-do do not work.

Ben Elliston <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
On Tue, Mar 08, 2016 at 02:29:10PM +0100, Dominik Vogt wrote:

> However, multiple dg-do don't seem to work:
> 
>   dg-do run { condition }
>   dg-do assemble { ! condition }

There are plenty of examples of this in the testsuite. You may wish to
investigate further:

  $ grep -r dg-do . | awk -F: '{print $1}' | uniq -d

For example, the top of gcc.target/powerpc/altivec-3.c says:

  /* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
  /* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */

So compile awyas on powerpc-*-*, but only run if the taget has the
right hardware.  It should certainly work.  If it doesn't, please send
a patch!

Cheers, Ben

_______________________________________________
DejaGnu mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/dejagnu
signature.asc (application/pgp-signature, 811 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVt9r03Y2KIi1WYjUAQjw+A/+LoPNf+CVv5LqWW7HBvx0Z482jcvRSyEh
7q+7sBTbFCFTw4J77Wl5SUlXa38RYjmLfLjoGBs0oWwSTb/90PEngjvHKcDhEOdi
infKpcyUSaUzfCD1asSMrp58qvBLBswntwZt5SuCx9gRIivsB7u0ihN3R+lPy4Fr
dEWlY/vMSO0pahSA3bpKcSkXRkpbiniAclIHSAXUi58AQwEiLUZdSDYwRtHHRo2j
WZaqfIbtgWHDVsi9OucqUE+tLYgW9tlUZEt7phNW2yCsdB6gXZmLMDZ7lHKhKfCx
+bzSeOurBrQpzT4S9KPyeKwUvt0jMCfo9RKWUO+L1ww4PKxk2+JMzQfQ5R5UGsX6
b/AvHWYs8H8CPzhWvwzW6rp7Da5wsN1gxMK/jTgs1mG8nm16OLQzLh0Qz7Y9EQAu
gLQvDwddA4YJ6kGdmgkLX169S3OQqi7i67lHzDpHEDHGHIFv5lyCg/5Rv1k7GwBy
9kIbBdhm+qNEbJq3caYVssj0n6xWi5UyonFO5xWezXNs8HCbAad9iC+RKX12yihQ
qWaCyPPPEClxwewrCmAQhk7dvhDbxLcC758BrU2pMQAYYDoLbGniFr7T1iwwBnjj
gidF49rUxrSNURGsTz9R65juWMb0EUKq7G+gALNUSBSrfWpyMxz80Ov8L9zbhOMN
HOss5wdopJo=
=Ajoz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.