--- gcc/config/m68k/sun3.h 2018/04/24 18:10:24 1.1 +++ gcc/config/m68k/sun3.h 2018/04/24 18:28:14 1.1.1.3 @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. Sun 68000/68020 version. - Copyright (C) 1987, 1988, 1993 Free Software Foundation, Inc. + Copyright (C) 1987, 1988, 1993, 1995 Free Software Foundation, Inc. This file is part of GNU CC. @@ -15,7 +15,8 @@ GNU General Public License for more deta 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, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ /* This comment is here to see if it will keep Sun's cpp from dying. */ @@ -61,7 +62,6 @@ the Free Software Foundation, 675 Mass A #define CC1_SPEC "%{sun3:} %{target:}" #define PTRDIFF_TYPE "int" -#define SIZE_TYPE "int" /* We must override m68k.h. */ #undef WCHAR_TYPE @@ -79,11 +79,16 @@ the Free Software Foundation, 675 Mass A #define ASM_SPEC \ "%{m68000:-mc68010}%{mc68000:-mc68010}%{!mc68000:%{!m68000:-mc68020}} \ - %{fpic:-k} %{fPIC:-k}" + %{fpic:-k} %{fPIC:-k} %{R} %{j} %{J} %{h} %{d2} %{keep-local-as-symbols:-L}" /* Names to predefine in the preprocessor for this target machine. */ +/* For a while, -D_CROSS_TARGET_ARCH=SUN3 was included here, + but it doesn't work, partly because SUN3 etc. aren't defined + (and shouldn't be). It seems that on a native compiler _CROSS_TARGET_ARCH + should not be defined. For cross compilers, let's do things as we + normally do in GCC. -- rms. */ -#define CPP_PREDEFINES "-Dmc68000 -Dsun -Dunix" +#define CPP_PREDEFINES "-Dmc68000 -Dsun -Dunix -Asystem(unix) -Asystem(bsd) -Acpu(m68k) -Amachine(m68k)" /* STARTFILE_SPEC to include sun floating point initialization This is necessary (tr: Sun does it) for both the m68881 and the fpa @@ -276,3 +281,16 @@ the Free Software Foundation, 675 Mass A asm_fprintf (FILE, "%I0r%s", dstr); \ } \ } while (0) + +#undef BLOCK_PROFILER_CODE +#define BLOCK_PROFILER_CODE \ +extern int ___tcov_init; \ + \ +__bb_init_func (blocks) \ + struct bb *blocks; \ +{ \ + if (! ___tcov_init) \ + ___tcov_init_func (); \ + \ + ___bb_link (blocks->filename, blocks->counts, blocks->ncounts); \ +}