This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: Run init tests only when __cxa_atexit is supported.
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: pinskia at physics dot uc dot edu, gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 May 2006 17:11:58 -0700
- Subject: Re: Patch: Run init tests only when __cxa_atexit is supported.
- References: <200605152347.QAA17558@hpsje.cup.hp.com>
Steve Ellcey wrote:
> I can xfail them with:
>
> // { dg-do run { xfail { ! { dg-require-cxa-atexit } } } }
>
> The only problem with this is that it doesn't allow me to paper over the
> other problem with init18.C, namely that it calls _Exit.
We have lots of other tests that declare -- and then use -- _exit. So,
I would just switch that test to use _exit. That change is
pre-approved, so long as you copy the xfail list from
g++.old-deja/g++.pt/static11.C, as the problem described there will
presumably apply to init18.C as well.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713