--- gcc/config/mips/iris4.h 2018/04/24 18:10:25 1.1 +++ gcc/config/mips/iris4.h 2018/04/24 18:22:13 1.1.1.2 @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. Iris version 4. - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991, 1993 Free Software Foundation, Inc. This file is part of GNU CC. @@ -23,11 +23,20 @@ the Free Software Foundation, 675 Mass A #include "mips/iris3.h" -/* Assembler is said to have trouble with .ascii with escape chars. - The quickest way to avoid the problem is not to use .ascii. */ +/* Profiling is supported via libprof1.a not -lc_p as in Irix 3. */ +#undef STARTFILE_SPEC +#define STARTFILE_SPEC \ + "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s libprof1.a%s}%{!p:crt1.o%s}}" + +#undef LIB_SPEC +#define LIB_SPEC \ + "%{!p:%{!pg:%{!static:%{!g*:-lc_s}}}}%{p:libprof1.a%s}%{pg:libprof1.a%s} -lc crtn.o%s" + +/* Some assemblers have a bug that causes backslash escaped chars in .ascii + to be misassembled, so we just completely avoid it. */ #undef ASM_OUTPUT_ASCII #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ -{ \ +do { \ unsigned char *s; \ int i; \ for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ @@ -37,4 +46,4 @@ the Free Software Foundation, 675 Mass A fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \ } \ fputs ("\n", (FILE)); \ -} +} while (0)