[PATCH] Add OpenBSD-m88k support

Jeffrey A Law law@cygnus.com
Wed Jun 28 16:43:00 GMT 2000


  In message < 20000628003357.A22747@schutzenberger.liafa.jussieu.fr >you write:
  > Here are the configuration files for an OpenBSD m88k target.
  > There are still some problems with OpenBSD m88k, but I am not
  > sure whether gcc m88k is working perfectly yet.
  > 
  > The configure support has already been there for a while.
  > This might entice some people into looking at m88k support more
  > closely.
  > 
  > Wed Jun 28 00:21:56 CEST 2000	Marc Espie <espie@openbsd.org>
  > 	* config/m88k/openbsd.h: New.
  > 	* config/m88k/xm-openbsd.h: New.
A few requested changes:

  > + /* a.out with DBX. */
  > + #define DBX_DEBUGGING_INFO
  > + #define DEFAULT_GDB_EXTENSIONS 0
  > + 
  > + #include <aoutos.h>
  > + #include <m88k/m88k.h>
  > + #include <openbsd.h>
Instead list these in configure.in.  We want to avoid having config files
which include other config files.   You can easily accomplish this by
putting the DBX stuff into an m88k specific openbsd file, then listing
that file, aoutos.h, m88k/m88k.h and openbsd.h in the tm_file list
in configure.in.

  > *** /dev/null	Tue Jun 27 23:50:09 2000
  > --- gcc/config/m88k/xm-openbsd.h	Tue Jun 27 21:40:00 2000
  > ***************
  > *** 0 ****
  > --- 1,26 ----
  > + /* Configuration file for an host running m88k OpenBSD.
  > +    Copyright (C) 2000 Free Software Foundation, Inc.
  > + 
  > + This file is part of GNU CC.
  > + 
  > + GNU CC is free software; you can redistribute it and/or modify
  > + it under the terms of the GNU General Public License as published by
  > + the Free Software Foundation; either version 2, or (at your option)
  > + any later version.
  > + 
  > + GNU CC is distributed in the hope that it will be useful,
  > + but WITHOUT ANY WARRANTY; without even the implied warranty of
  > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  > + GNU General Public License for more details.
  > + 
  > + You should have received a copy of the GNU General Public License
  > + along with GNU CC; see the file COPYING.  If not, write to
  > + the Free Software Foundation, 59 Temple Place - Suite 330,
  > + Boston, MA 02111-1307, USA.  */
  > + 
  > + #include <xm-openbsd.h>
  > + #include <m88k/xm-m88k.h>
  > + 
  > + /* Remove base m88k idiosyncrasies. */
  > + #undef USG
  > + #undef NO_SYS_SIGLIST
Kill NO_SYS_SIGLIST -- it shouldn't be necessary anymore.

And like the target dependent header files, use them as a list instead of
having the openbsd header file include others.

Otherwise it looks OK.  Resubmit with those changes and I'll install it.
jeff



More information about the Gcc-patches mailing list