This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: NetWare update
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Jan Beulich <JBeulich at novell dot com>
- Cc: hp at bitrange dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 21 Dec 2004 09:52:45 -0800
- Subject: Re: NetWare update
- References: <s1c7f8f3.091@emea1-mh.id2.novell.com>
On Tue, Dec 21, 2004 at 11:20:56AM +0100, Jan Beulich wrote:
> >> >> gcc/testsuite/
> >> >> * gcc.dg/20040813-1.c: xfail and don't execute dg-final for
> >> >> *-*-netware.
> >> >
> >> >See the immediately preceeding skip-if. Means you don't need
> >> >the dg-error line at the end.
> >>
> >> I'm not sure I understand what you're trying to say here.
> >
> >Seems clear to me. Just add *-*-netware to make that line say:
> >/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware } { "*" } {
> "" } } */
>
> This is what I considered obvious and thus tried first. It didn't work
> as appearantly intended, as described earlier (i.e. it didn't prevent
> dg-final from getting executed).
Use of dg-xfail-if says that the compilation is expected to fail. It
doesn't affect other directives like dg-final.
Using TCL expressions within test files is frowned upon, besides which
they aren't always evaluated by the the time they are needed.
> I'm attaching gcc.log as requested; I can't attach stdout resulting
> from "-v -v -v" due to size limitations this list places on mails.
>
> To me it boils down to (as said before) compile_flags not being set at
> the time dg-skip-if (and from there check_conditional_xfail, where
> compile_flags are used) gets evaluated, as can be seen in the attached
> file, where "Compiler flags are: " is followed by nothing, which of
> course doesn't match against "* * *".
I've apparently done all of my testing passing -m32 or -m64 to all tests
so I hadn't seen the failure of dg-skip-if when there are no options.
I'll look into that to see if there's a fix that doesn't involve procs
within DejaGnu. In the meantime, for that particular test try moving
the dg-option directive before dg-skip-if.
Janis