--- gcc/config/m68k/3b1.h 2018/04/24 18:10:24 1.1 +++ gcc/config/m68k/3b1.h 2018/04/24 18:20:49 1.1.1.3 @@ -1,10 +1,8 @@ /* Definitions of target machine for GNU compiler. AT&T UNIX PC version (pc7300, 3b1) + Written by Alex Crain (alex@umbc3.umd.edu). - Written by Alex Crain - bug reports to alex@umbc3.umd.edu - - Copyright (C) 1987 Free Software Foundation, Inc. + Copyright (C) 1987, 1993 Free Software Foundation, Inc. This file is part of GNU CC. @@ -80,7 +78,7 @@ output_file_directive ((FILE), main_inpu /* ihnp4!lmayk!lgm@eddie.mit.edu says mc68000 and m68k should not be here. */ #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dmc68k -Dunix -Dunixpc" +#define CPP_PREDEFINES "-Dmc68k -Dunix -Dunixpc -D__motorola__ -Asystem(unix) -Asystem(svr3) -Acpu(m68k) -Amachine(m68k)" #undef REGISTER_NAMES #define REGISTER_NAMES \ @@ -181,7 +179,10 @@ do { long l; \ /* The beginnings of sdb support... */ #define ASM_OUTPUT_SOURCE_FILENAME(FILE, FILENAME) \ - fprintf (FILE, "\tfile\t\"%s\"\n", FILENAME) + do { fprintf (FILE, "\tfile\t"); \ + output_quoted_string (FILE, FILENAME); \ + fprintf (FILE, "\n"); \ + } while (0) #define ASM_OUTPUT_SOURCE_LINE(FILE, LINENO) \ fprintf (FILE, "\tln\t%d\n", \ @@ -191,7 +192,7 @@ do { long l; \ /* Yet another null terminated string format. */ #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ - { register int sp = 0, lp = 0; \ + do { register int sp = 0, lp = 0; \ fprintf ((FILE), "\tbyte\t"); \ loop: \ if ((PTR)[sp] > ' ' && ! ((PTR)[sp] & 0x80) && (PTR)[sp] != '\\') \ @@ -207,7 +208,7 @@ do { long l; \ else \ putc (',', (FILE)); \ goto loop; } \ - putc ('\n', (FILE)); } + putc ('\n', (FILE)); } while (0) /* Note that in the case of the movhi which fetches an element of an ADDR_DIFF_VEC the offset output is too large by 2. @@ -509,3 +510,10 @@ do { fprintf (asm_out_file, "\ttag\t"); #define UMODSI3_LIBCALL "*ulrem" #define MULSI3_LIBCALL "*lmul" #define UMULSI3_LIBCALL "*ulmul" + +/* Definitions for collect2. */ + +#define OBJECT_FORMAT_COFF +#define NO_SYS_SIGLIST +#define MY_ISCOFF(magic) \ + ((magic) == MC68KWRMAGIC || (magic) == MC68KROMAGIC || (magic) == MC68KPGMAGIC)