This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use __cxa_atexit on OpenBSD


> 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 ;).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]