On 6/14/19 9:44 AM, co...@sdf.org wrote: > This adds netbsd/hppa support. I tested it on the shiny new QEMU-git > which can now boot NetBSD too :-) > > Files are very similar to the linux code. > > Please let me know if any changes need to be made. > > Matt Thomas <m...@3am-software.com> > Nick Hudson <n...@nthcliff.demon.co.uk> > Matthew Green <m...@eterna.com.au> > Maya Rashish <co...@sdf.org> > > gcc/ChangeLog: > config.gcc (hppa*-*-netbsd*): New target. > config/pa/pa-netbsd.h: New file. > config/pa/pa32-netbsd.h: New file. > > libgcc/ChangeLog: > config.host (hppa*-*-netbsd*): New case. > config/pa/t-netbsd: New file. > > --- > gcc/config.gcc | 8 +++ > gcc/config/pa/pa-netbsd.h | 137 ++++++++++++++++++++++++++++++++++++ > gcc/config/pa/pa32-netbsd.h | 37 ++++++++++ > libgcc/config.host | 3 + > libgcc/config/pa/t-netbsd | 9 +++ > 5 files changed, 194 insertions(+) > create mode 100644 gcc/config/pa/pa-netbsd.h > create mode 100644 gcc/config/pa/pa32-netbsd.h > create mode 100644 libgcc/config/pa/t-netbsd > > diff --git a/gcc/config.gcc b/gcc/config.gcc > index 76bb316942d..ba93bb41ec8 100644 > --- a/gcc/config.gcc > +++ b/gcc/config.gcc > @@ -1481,6 +1481,14 @@ hppa*-*-openbsd*) > gas=yes > gnu_ld=yes > ;; > +hppa*-*-netbsd*) > + target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" Any reason to not use the PA 2.0 ISA? I'm virtually certain we supported the 32bit ABI running on PA 2.0 hardware in hpbsd (which is where the netbsd PA code is ultimately derived from). I'd be really surprised if there's any PA1.1 hardware running anywhere, though there's certainly some PA2.0 hardware out in the wild.
> + tm_file="${tm_file} dbxelf.h elfos.h ${nbsd_tm_file} \ You probably don't need dbxelf.h. Embedded stabs should be avoided when it can be. Jeff