testsuite: missing or wrong dg-* directives?

Manfred Schwarb manfred99@gmx.ch
Tue Jan 15 21:47:00 GMT 2013


Am 14.01.2013 20:49, schrieb Mike Stump:
> On Jan 14, 2013, at 6:23 AM, Mikael Morin <mikael.morin@sfr.fr> wrote:
>> Le 14/01/2013 00:37, Manfred Schwarb a écrit :
>>> Am 14.01.2013 00:10, schrieb Manfred Schwarb:
>>>>
>>>> There are several other oddities: d_g-final, braces have to be
>>>> separated by spaces.
>>
>> Want to send a patch?
>>
>>>> Not sure about the double braces in lto, I guess they act simply as
>>>> single braces.
>>
>> I don't know, you may ask a testsuite maintainer, or the author.  It is unlikely though that the author made a typo at the opening brace _and_ at the closing one.
>
> YeahÂ…  A quick check of the _documentation_ (a terrible thing to waste):
>
> http://gcc.gnu.org/onlinedocs/gcc-4.5.4/gccint/LTO-Testing.html

Sorry, I just realized that my sentence was not really clear. I was not talking
about removing superfluous braces, but about adding spaces between these double braces.

dejagnu seems to be very sensitive concerning missing spaces, e.g.
"{ dg-do run}" does silently nothing, it only works if you write it as
"{ dg-do run }".


Manfred

>
> { dg-lto-options { { options } [{ options }] } [{ target selector }]}
> This directive provides a list of one or more sets of compiler options to override LTO_OPTIONS. Each test will be compiled and run with each of these sets of options.
>



More information about the Gcc-patches mailing list