This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC] Dejagnu patch to handle multi-line directives


Hi,

one thing that has bothered me on a regular basis is the inability to spread long dejagnu directives over multiple lines.

I've written a demonstrator patch (for the dejagnu sources) and tested it by splitting this 108 chars line:
...
/* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */
...
into:
...
/* { dg-additional-options }
   { dg-dc "-DSTACK_SIZE=[dg-effective-target-value stack_size]" }
   { dg-dc { target { stack_size } } } */
...

Good idea to fix this?

Good idea to fix this like this?

If so, any other comments, before I suggest this at dejagnu project?

Thanks,
- Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]