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


On Tue, Dec 2, 2008 at 15:39, Mark Mitchell <mark@codesourcery.com> wrote:

>  /* { dg-options [list "-w -flto-single"] } */

Sure, that's fine, but the issue here is the meaning of dg-options.

Usually dg-options is used for a single invocation of gcc, so {
dg-options "-O2 -fother-flag" } means

$ gcc -O2 -fother-flag file.c

For multifile tests, however, lto.exp interprets dg-options as:

$ gcc -O2 file1.c
$ gcc -fother-flag file2.c

Alternatively, lto.exp could always interpret dg-options

$ gcc -O2 -fother-flag file1.c
$ gcc -O2 -fother-flag file2.c

This would avoid the added syntactic sugar.  I think I like this way
better, actually.


Diego.


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