On 06/12/2017 08:59 AM, Richard Sandiford wrote:
> I realise there's probably more that can go wrong with it, but how
> about instead treating unbalanced { ... } as a sign that the directive
> continues to the next line? This would allow:
>
> /* { dg-additional-options
> "-DSTACK_SIZE=[dg-effective-target-value stack_size]"
> { target { stack_size } } } */
In a TCL .exp file you'd split the lines with a '\' continuation
character. Wouldn't that be more natural? Like:
/* { dg-additional-options \
"-DSTACK_SIZE=[dg-effective-target-value stack_size]" \
{ target { stack_size } } } */
Might be less magical and simpler to implement too.
Thanks,
Pedro Alves