Re: [RFA/testsuite] Test printing complex numbers in C

Daniel Jacobowitz
2002-12-03T16:33:07Z

On Tue, Dec 03, 2002 at 11:34:32AM -0500, Fernando Nasser wrote:
> Sorry Daniel, due to a problem with my mail it got lost again.
>
> I am OK with the new tests (thanks!), but I would like to
> "setup_xfail_format" them for gcc stabs. It is a compiler problem, not
> GDB's, so we should not add the FAILs to our output.
>
> Can you do that?
>
> Regards,
> Fernando
>
> P.S.: You must call "get_debug_format" somewhere before using
> "setup_xfail_format" if I remember correctly.

Here's the problem...
stabs DWARF-2
GCC 2.95 pass fail
GCC 3.x fail pass

So what to do? I suppose I could add a check for the major version of
GCC in get_compiler_info (?) and condition on that.

>
>
>
> Daniel Jacobowitz wrote:
> >Fernando,
> >
> >I think this test submission got lost, so here it is again. It's a test
> >for
> >the printing of complex numbers in C, for those compilers which support
> >it. The test is GCC specific right now.
> >
> >[By the way, it fails on GCC 3.0/stabs because of a (probably) GCC bug in
> >debug information. Still not fixed in 3.2. It also fails in GCC
> >2.95/DWARF-2 because of a bug with __attribute__((packed)). We can sort
> >out
> >XFAILs later, I have some ideas on that front.]
> >
>
>
> --
> Fernando Nasser
> Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario M4P 2C9
>
>

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer