[PATCH] Fix nested function support on OpenBSD/hppa

2013-07-25 Thread Mark Kettenis
On OpenBSD/hppa the stack is protected against execution in the same way as on many other architectures. The diff below makes GCC emit the call that's needed to "unprotect" the stack such that the magic trampolines needed for execution of nested functions work. 2013-07-25

[PATCH] Small OpenBSD/hppa cleanup

2013-07-25 Thread Mark Kettenis
Hi, Dave spotted this leftover a while ago. The pa/t-openbsd file doesn't exist anymore. Seems to have no ill effect, but would be good to remove this wart anyway. Dave, can you commit this? Thanks, Mark 2013-07-25 Mark Kettenis * config.gcc (hppa-*-openbsd*): Don&

Re: [PATCH] Add TF support for OpenBSD/i386 and OpenBSD/amd64

2013-02-05 Thread Mark Kettenis
> Date: Mon, 7 Jan 2013 12:49:14 -1000 (TAHT) > From: Gerald Pfeifer > > On Sun, 7 Oct 2012, Mark Kettenis wrote: > > Adds the necessary support bits to libgcc. All other mainstream > > i386/amd64 targets already have this. > > > > Tested on i386-u

Re: [RFC] Wrong register numbers in .dwarf_frame on Linux/PowerPC

2012-11-27 Thread Mark Kettenis
> Date: Tue, 27 Nov 2012 19:43:40 +0100 (CET) > From: "Ulrich Weigand" > > Mark Kettenis wrote: > > > Date: Mon, 26 Nov 2012 20:10:06 +0100 (CET) > > > From: "Ulrich Weigand" > > > > > > Hello, > > > > > &

Re: [RFC] Wrong register numbers in .dwarf_frame on Linux/PowerPC

2012-11-26 Thread Mark Kettenis
> Date: Mon, 26 Nov 2012 20:10:06 +0100 (CET) > From: "Ulrich Weigand" > > Hello, > > I noticed what appears to be a long-standing bug in generating .dwarf_frame > sections with GCC on Linux on PowerPC. > > ... > > So I'm wondering where to go from here. I guess we could: > > 1. Bring GCC (a

Re: [PATCH, libstdc++] Add proper OpenBSD support

2012-10-09 Thread Mark Kettenis
> Date: Mon, 8 Oct 2012 20:52:22 +0100 > From: Jonathan Wakely > > On 8 October 2012 20:45, Mark Kettenis wrote: > > Jonathan, > > > > Any further thoughts about this? I've attached a diff that combines > > my origional diff with the change to use the &

Re: [PATCH, libstdc++] Add proper OpenBSD support

2012-10-08 Thread Mark Kettenis
Jonathan, Any further thoughts about this? I've attached a diff that combines my origional diff with the change to use the "newlib" locale model on OpenBSD since they probably should be committed together. > > > On 10 September 2012 07:34, Mark Kettenis wrote: > >

[PATCH] Add TF support for OpenBSD/i386 and OpenBSD/amd64

2012-10-06 Thread Mark Kettenis
Adds the necessary support bits to libgcc. All other mainstream i386/amd64 targets already have this. Tested on i386-unknown-openbsd5.2 and x86_64-unknown-openbsd5.2. Fixes a couple of testcases. libgcc/: 2012-10-06 Mark Kettenis * config.host (i[34567]86-*-openbsd* and x86_64

Re: [PATCH] Use __cxa_atexit on OpenBSD

2012-10-05 Thread Mark Kettenis
> Date: Fri, 5 Oct 2012 23:41:28 +0200 (CEST) > From: Gerald Pfeifer > > On Sat, 15 Sep 2012, Mark Kettenis wrote: > > Index: config.gcc > > === > > --- config.gcc (revision 191120) > &g

Re: [PATCH] Use __cxa_atexit on OpenBSD

2012-10-04 Thread Mark Kettenis
> Date: Wed, 3 Oct 2012 17:45:21 +0200 (CEST) > From: Gerald Pfeifer > > On Sat, 15 Sep 2012, Ian Lance Taylor wrote: > >> 2012-09-02 Mark Kettenis > >> > >> * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set > >> defau

Re: [PATCH] OpenBSD/hppa support

2012-09-19 Thread Mark Kettenis
> Date: Tue, 18 Sep 2012 14:43:35 -0400 > From: John David Anglin > > On Thu, 06 Sep 2012, Mark Kettenis wrote: > > > Most bits are stolen from Linux, but there are a few subtle > > differences since our assembler is configured to be slightly more > >

[PATCH] Use dl_iterate_phdr() on OpenBSD

2012-09-15 Thread Mark Kettenis
on handling FAILs into PASSes. 2012-09-02 Mark Kettenis * config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file. * unwind-dw2-fde-dip.c: Don't include on OpenBSD. (USE_PT_GNU_EH_FRAME): Define for OpenBSD. (ElfW): Likewise. In

[PATCH] Use __cxa_atexit on OpenBSD

2012-09-15 Thread Mark Kettenis
PASSes. 2012-09-02 Mark Kettenis * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set default_use_cxa_atexit to yes. Index: config.gcc === --- config.gcc (revision 191120) +++ config.gcc (working copy) @@

Re: Change double_int calls to new interface.

2012-09-12 Thread Mark Kettenis
> Date: Tue, 11 Sep 2012 17:03:39 -0700 > From: Ian Lance Taylor > > On Tue, Sep 11, 2012 at 3:12 PM, Lawrence Crowl wrote: > > On 9/11/12, Andreas Schwab wrote: > >> Mark Kettenis writes: > >>> In file included from ../../../src/gcc/gcc/mcf.c:47:

Re: Change double_int calls to new interface.

2012-09-11 Thread Mark Kettenis
> Index: gcc/ChangeLog > > 2012-09-04 Lawrence Crowl > > * double-int.h (double_int::operator &=): New. > (double_int::operator ^=): New. > (double_int::operator |=): New. > (double_int::mul_with_sign): Modify overflow parameter to bool*. > (do

Re: [PATCH, libstdc++] Add proper OpenBSD support

2012-09-10 Thread Mark Kettenis
> > On 10 September 2012 07:34, Mark Kettenis wrote: > >> Date: Sun, 9 Sep 2012 21:07:39 +0100 > >> From: Jonathan Wakely > >> > >> On 4 September 2012 20:26, Mark Kettenis wrote: > >> > Fixes a few testcases. Mostly based on the existing &g

Re: [PATCH, libstdc++] Add proper OpenBSD support

2012-09-09 Thread Mark Kettenis
> Date: Sun, 9 Sep 2012 21:07:39 +0100 > From: Jonathan Wakely > > On 4 September 2012 20:26, Mark Kettenis wrote: > > Fixes a few testcases. Mostly based on the existing > > NetBSD/FreeBSD/Darwin code. > > > > 2012-09-04 Mark Kettenis > > >

Re: [PATCH] Fix C++ bootstrap ICE

2012-09-08 Thread Mark Kettenis
> Date: Fri, 07 Sep 2012 14:12:29 -0400 > From: Jason Merrill > > OK, thanks. I don't have commit access (or at least I'm not on the write after approval list). Would you (or somebody else) be so kind to commit this fix for me? Thanks, Mark

[PATCH] Fix C++ bootstrap ICE

2012-09-07 Thread Mark Kettenis
his change didn't take into account that reshape_init_r() might move d->cur past the end of the list of fields. Potential fix below. Simply reordering the checks in the if-statement avoids the problem. gcc/cp: 2012-09-07 Mark Kettenis * decl.c (reshape_init_class): Avoid dere

[PATCH] OpenBSD/hppa support

2012-09-06 Thread Mark Kettenis
Most bits are stolen from Linux, but there are a few subtle differences since our assembler is configured to be slightly more HP-UX-ish. libgcc/: 2012-09-06 Mark Kettenis * config.host (hppa-*-openbsd*): New target. * config/pa/t-openbsd: New file. gcc/: 2012-09-06 Mark

Re: [PATCH, libstdc++] Add proper OpenBSD support

2012-09-05 Thread Mark Kettenis
> Date: Wed, 5 Sep 2012 10:55:27 +0300 > From: Jonathan Wakely > > I'll look at this more carefully later today when I get back from a > holiday, but it looks ok after a quick glance. Great! > I've CC'd gcc-patches, as required for all patches. Sorry 'bout that. Bit of a brain fart on my side

[PATCH, libstdc++] Add proper OpenBSD support

2012-09-04 Thread Mark Kettenis
Fixes a few testcases. Mostly based on the existing NetBSD/FreeBSD/Darwin code. 2012-09-04 Mark Kettenis * configure.host (*-*-openbsd*) Set cpu_include_dir. * config/os/bsd/openbsd/ctype_base.h: New file. * config/os/bsd/openbsd/ctype_configure_char.cc: New file

[PATCH] Further OpenBSD/amd64 and OpenBSD/i386 improvements

2012-09-04 Thread Mark Kettenis
-bit and 64-bit platforms wheras GCC defaults to using "long" on 32-bit platforms and "long long" on 64-bit platforms. Hence the need for overrides. libgcc/: 2012-09-02 Mark Kettenis * config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file. (i[34567]86-*-open

Re: [PATCH] OpenBSD/amd64 support and OpenBSD/i386 cleanup

2012-09-02 Thread Mark Kettenis
> Date: Sun, 2 Sep 2012 16:18:27 +0200 (CEST) > From: Gerald Pfeifer > > On Thu, 30 Aug 2012, Richard Henderson wrote: > > Looks ok. > > Thanks, Richard. I applied the patch with a slightly enhanced > changelog (one entry was missing). Thanks Gerald & Richard! > > Some of the defines in i386/

Re: [PATCH] OpenBSD stdint fix

2012-02-11 Thread Mark Kettenis
this fix for me. > On Tue, 3 Jan 2012, Mark Kettenis wrote: > > These are "long long" on all supported platforms instead of the > > default "long" on 64-bit, "long long" on 32-bit that defaults.h > > assumes. > > > > >

[PATCH] OpenBSD stdint fix

2012-01-03 Thread Mark Kettenis
These are "long long" on all supported platforms instead of the default "long" on 64-bit, "long long" on 32-bit that defaults.h assumes. 2012-01-03 Mark Kettenis * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): New defines. Inde

[PATCH] OpenBSD/amd64 support and OpenBSD/i386 cleanup

2012-01-01 Thread Mark Kettenis
copyright assignment in place for GCC. Thanks, Mark libgcc/: 2011-12-27 Mark Kettenis * config.host (x86_64-*-openbsd*): New target. gcc/: 2011-12-27 Mark Kettenis * config.gcc (x86_64-*-openbsd*): New target. * config/openbsd.h (TARGET_C99_FUNCTIONS): Define

Re: [RFA/libiberty] Darwin has case-insensitive filesystems

2011-06-15 Thread Mark Kettenis
> Date: Wed, 15 Jun 2011 10:22:36 +0200 > From: Corinna Vinschen > > On Jun 14 18:01, DJ Delorie wrote: > > > > > This is wrong as not all FSs are case insensitive. In fact HFS+ can > > > be case sensitive too. I think you need better check than just > > > saying all Darwin is case insensitive