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]

Re: [lto] Add test case for ICE after error messages


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


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