[lto] Add test case for ICE after error messages

Diego Novillo dnovillo@google.com
Wed Dec 3 00:08:00 GMT 2008

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.


More information about the Gcc-patches mailing list