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: Diego Novillo <dnovillo at google dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 2 Dec 2008 19:07:42 -0500
- 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> <49359CEC.2020607@codesourcery.com>
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.