This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use __cxa_atexit on OpenBSD
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gerald at pfeifer dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 6 Oct 2012 00:22:42 +0200 (CEST)
- Subject: Re: [PATCH] Use __cxa_atexit on OpenBSD
- References: <201209150945.q8F9j2ue023472@glazunov.sibelius.xs4all.nl> <alpine.LNX.2.00.1210052338370.1878@tuna.site>
> Date: Fri, 5 Oct 2012 23:41:28 +0200 (CEST)
> From: Gerald Pfeifer <gerald@pfeifer.com>
>
> On Sat, 15 Sep 2012, Mark Kettenis wrote:
> > Index: config.gcc
> > ===================================================================
> > --- config.gcc (revision 191120)
> > +++ config.gcc (working copy)
> > @@ -708,6 +708,11 @@
> > *-*-openbsd2.*|*-*-openbsd3.[012])
> > tm_defines="${tm_defines} HAS_LIBC_R=1" ;;
> > esac
> > + case ${target} in
> > + *-*-openbsd4.[3-9]|*-*-openbsd[5-9]*)
> > + default_use_cxa_atexit=yes
> > + ;;
> > + esac
>
> By the way, as you add regular expressions like this, you may want
> to make them more future proof. This is something FreeBSD ran into
> when the release policy was changed and FreeBSD 10 happened a lot
> more quickly than originally expected.
Fortunately OpenBSD releases are completely predictable: two releases
per year, and the version number gets increased by 0.1 every release.
And it is highly unlikely that this policy will ever be changed. So
since 5.2 will be released on November 1st 2012, OpenBSD 9.9 will be
released on May 1st 2036. I'd say that's future proof enough ;).