This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fwd: [ALL TARGETS] final patch for PR 25241
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>, Janis Johnson <janis187 at us dot ibm dot com>
- Date: Fri, 13 Jul 2007 00:39:51 -0400 (EDT)
- Subject: Re: Fwd: [ALL TARGETS] final patch for PR 25241
- References: <6c33472e0707100930i33860e2x93ae9626863af44b@mail.gmail.com> <6c33472e0707100932i37176facj531dab00961efa86@mail.gmail.com>
On Tue, 10 Jul 2007, Manuel López-Ibáñez wrote:
> Unfortunately, I cannot test anything else apart from
> i686-pc-gnu-linux. Thus, some testcases that currently do nasty things
> (like matching multiple error/warnings with one dg-error or dg-warning
> directive) may break.
The question arises: how to match multiple lines now?
> 2007-07-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR testsuite/25241
> * gcc.test-framework/dg-error-exp-F.c: New test.
> * gcc.test-framework/dg-warning-exp-F.c: New test.
> * lib/gcc.exp: Enable warning and error prefixes.
> * lib/gcc-dg.exp (dg-warning): Wrap original dg-warning.
> (dg-error): Wrap original dg-error.
> * gcc.target/powerpc/altivec-types-1.c: Remove explicit error/warning
> markers from dg-error/dg-warning directives.
> * gcc.target/ia64/fpreg-1.c: Likewise.
...
Your ChangeLog entry didn't mention gcc.dg/20011127-1.c (a
target-specific test that predates gcc.target) which now breaks,
because after every line with ``"invalid 'asm': invalid operand
modifier letter"'', the rtx operand is printed. It used to
match a separate dg-error line but now it doesn't anymore. It
looks like this in the log:
FAIL: gcc.dg/20011127-1.c (test for excess errors)
Excess errors:
(reg:SI 9 r9 [25])
(reg:SI 9 r9 [26])
(reg:SI 9 r9 [27])
(reg:SI 9 r9 [28])
(reg:SI 9 r9 [29])
(reg:SI 9 r9 [30])
(reg:SI 9 r9 [31])
(reg:SI 9 r9 [32])
(reg:SI 9 r9 [33])
(reg:SI 9 r9 [34])
(reg:SI 9 r9 [35])
So, how do I match those lines, now that the line
/* { dg-error "reg:SI|const_double:DF" "prune debug_rtx output" { target cris-*-* } 0 } */
doesn't catch it?
brgds, H-P