Re: Patches to fix optimizer bug & C++ exceptions for GCC VAX backend

2016-04-08 Thread Jake Hamby
> On Apr 4, 2016, at 07:51, Maciej W. Rozycki <ma...@linux-mips.org> wrote: > > On Thu, 31 Mar 2016, Jake Hamby wrote: > >> There's one more thing that's broken in the VAX backend which I'd >> *really* like to fix: GCC can't compile many of its own files at -O2,

Re: Patches to fix optimizer bug & C++ exceptions for GCC VAX backend

2016-04-01 Thread Jake Hamby
Hi, I apologize for the poor quality of the initial version of the patch that I submitted. I think I may have also mangled it by not disabling the "smart quotes" feature on my Mac before I pasted in the diff from the terminal window. I intentionally did not use gmail for fear of adding word

Re: Patches to fix optimizer bug & C++ exceptions for GCC VAX backend

2016-03-31 Thread Jake Hamby
nd to define. I'll keep working on things and as soon as I have something that I think is in a contributable state and doesn't generate bad code, I'll email it. Best regards, Jake > On Mar 31, 2016, at 07:30, Jan-Benedict Glaw <jbg...@lug-owl.de> wrote: > > Hi Jake! > >

Patches to fix optimizer bug & C++ exceptions for GCC VAX backend

2016-03-28 Thread Jake Hamby
Amazingly enough, my patch worked well enough that my NetBSD VAX kernel built with GCC 5.3 is no longer crashing. I feel pretty good about what I have so far so here's the complete diff for both the C++ exception fix and the bad condition codes optimizer bug. It should be good enough to check

Bad CC0 optimizer in VAX backend (was Re: Patches to fix GCC’s C++ exception handling on NetBSD/VAX)

2016-03-28 Thread Jake Hamby
f (GET_CODE (x) == PRE_DEC || GET_CODE (x) == POST_INC) +{ + xfoo0 = XEXP (x, 0); + if (BASE_REGISTER_P (xfoo0, strict)) + return true; +} return false; } > On Mar 27, 2016, at 16:06, Jake Hamby <jehamby...@me.com> wrote: > > The results you want to see

Re: Patches to fix GCC’s C++ exception handling on NetBSD/VAX

2016-03-27 Thread Jake Hamby
ves me a lot of confidence as to what works and what doesn't. Most of the stuff I expected to fail (like libm tests, since it's not IEEE FP) failed, and most of the rest succeeded. -Jake > On Mar 27, 2016, at 15:34, Jake Hamby <jehamby...@me.com> wrote: > > I'm very pleased

Re: Patches to fix GCC’s C++ exception handling on NetBSD/VAX

2016-03-27 Thread Jake Hamby
t;cc" "none,cmp_czn,cmp_zn,cmp_zn_use_c, cmp_z,cmp_z_use_czn,plus,clobber" (const_string "clobber")) I'll send another email once I have something substantial to contribute. I give my permission to NetBSD and the FSF to integrate any or all of my

Re: Patches to fix GCC's C++ exception_handling on NetBSD/VAX

2016-03-27 Thread Jake Hamby
believe, libm or libc or the kernel or something like that. I do have a test case for C++ exceptions on VAX, which I will send separately. Thanks, Jake > On Mar 27, 2016, at 10:08, Mikael Pettersson <mikpeli...@gmail.com> wrote: > > Jake Hamby writes: >> As an added bonus

Re: Patches to fix GCC’s C++ exception handling on NetBSD/VAX

2016-03-26 Thread Jake Hamby
Unfortunately, my previous patch that included a change to gcc/config/vax/vax.h that increased FIRST_PSEUDO_REGISTER from 16 to 17 breaks the C++ exception handling that I’d worked so hard to get right with the rest of the patch. I believe I need to define DWARF_FRAME_REGISTERS to 16 in the

Re: Patches to fix GCC’s C++ exception handling on NetBSD/VAX

2016-03-26 Thread Jake Hamby
As an added bonus, I see that my patch set also included an old m68k patch that had been sitting in my tree, which fixes a crash when -m68040 is defined. I may have submitted it to port-m68k before. It hasn’t been tested with the new compiler either. Here’s that patch separately. It only matter

Re: Patches to fix GCC’s C++ exception handling on NetBSD/VAX

2016-03-26 Thread Jake Hamby
> On Mar 23, 2016, at 05:56, Christos Zoulas <chris...@astron.com> wrote: > > In article <f48d0c6b-a6db-410b-bc97-c30d4e8b4...@me.com>, > Jake Hamby <jehamby...@me.com> wrote: > > Hi, > > Thanks a lot for your patch. I applied it to our gcc-

Patches to fix GCC’s C++ exception handling on NetBSD/VAX

2016-03-21 Thread Jake Hamby
Hi all, For several years I’ve been eager to find the time to fix the bugs in C++ exceptions on VAX to get them working on NetBSD, because they’ve been broken for many years and it looked like only a few changes were needed to get them working. Without C++ exceptions, the NetBSD test suite