This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] Add test case for ICE after error messages
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 02 Dec 2008 12:39:08 -0800
- Subject: Re: [lto] Add test case for ICE after error messages
- References: <20081110012203.GA16345@google.com> <20081113063100.F55568@dair.pair.com> <b798aad50811130344raf3f03ds576b0ffb330d5727@mail.gmail.com>
Diego Novillo wrote:
> On Thu, Nov 13, 2008 at 06:36, Hans-Peter Nilsson <hp@bitrange.com> wrote:
>> On Sun, 9 Nov 2008, Diego Novillo wrote:
>>> +++ gcc.dg/lto/20081109_0.c (revision 0)
>>> @@ -0,0 +1,3 @@
>>> +/* { dg-do compile } */
>>> +/* { dg-options "{-w -flto-single}" } */
>> The curlies look redundant, if not benevolently wrong, a new
>> style using tcl quotes.
>
> They aren't, unfortunately. dg-options is a list of lists.
So, why not write the list as a list?
Using Tcl braces to express a list is a trick, relying on the fact that
the fundamental datatype in Tcl is a string. But, you can use the list
primitive to construct a list, which is more readable:
list x "y z"
produces a list of two elements ("x" and "y z"). I would hope that
something like:
/* { dg-options [list "-w -flto-single"] } */
would work here.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713