[lto] Add test case for ICE after error messages

Mark Mitchell mark@codesourcery.com
Tue Dec 2 20:40:00 GMT 2008


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



More information about the Gcc-patches mailing list