diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1992-10-29 19:35:09 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1992-10-29 19:35:09 +0000 |
commit | a813fadf51af45f3faa32034d9786d7564c7eadf (patch) | |
tree | e05b01f1fa8419409420b24dbe116add5b7aa365 /gcc | |
parent | ec0a33c8abc252b8490e0f2bb68f0a2ef770fb40 (diff) | |
download | gcc-a813fadf51af45f3faa32034d9786d7564c7eadf.zip gcc-a813fadf51af45f3faa32034d9786d7564c7eadf.tar.gz gcc-a813fadf51af45f3faa32034d9786d7564c7eadf.tar.bz2 |
If cross compiling, do not invoke mips-tfile by default.
From-SVN: r2651
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/mips/mips.h | 18 | ||||
-rw-r--r-- | gcc/config/mips/osfrose.h | 11 |
2 files changed, 27 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 48ea1c0..29391e3 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -395,9 +395,12 @@ while (0) /* Specify to run a post-processor, mips-tfile after the assembler has run to stuff the mips debug information into the object file. This is needed because the $#!%^ MIPS assembler provides no way - of specifying such information in the assembly file. */ + of specifying such information in the assembly file. If we are + cross compiling, disable mips-tfile unless the user specifies + -mmips-tfile. */ #ifndef ASM_FINAL_SPEC +#ifndef CROSS_COMPILE #define ASM_FINAL_SPEC "\ %{!mgas: %{!mno-mips-tfile: \ \n mips-tfile %{v*: -v} \ @@ -405,7 +408,18 @@ while (0) %{!K: %{save-temps: -I %b.o~}} \ %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %U.o} \ %{.s:%i} %{!.s:%g.s}}}" -#endif + +#else /* CROSS_COMPILE */ +#define ASM_FINAL_SPEC "\ +%{!mgas: %{mmips-tfile: \ + \n mips-tfile %{v*: -v} \ + %{K: -I %b.o~} \ + %{!K: %{save-temps: -I %b.o~}} \ + %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %U.o} \ + %{.s:%i} %{!.s:%g.s}}}" + +#endif /* CROSS_COMPILE */ +#endif /* ASM_FINAL_SPEC */ /* Redefinition of libraries used. Mips doesn't support normal UNIX style profiling via calling _mcount. It does offer diff --git a/gcc/config/mips/osfrose.h b/gcc/config/mips/osfrose.h index 1923d92..78629e7 100644 --- a/gcc/config/mips/osfrose.h +++ b/gcc/config/mips/osfrose.h @@ -47,6 +47,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{v*: -v} \ %{G*}" +#ifndef CROSS_COMPILE #define ASM_FINAL_SPEC "\ %{mmips-as: %{!mno-mips-tfile: \ \n mips-tfile %{v*: -v} %{d*} \ @@ -55,6 +56,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %U.o} \ %{.s:%i} %{!.s:%g.s}}}" +#else /* CROSS_COMPILE */ +#define ASM_FINAL_SPEC "\ +%{mmips-as: %{mmips-tfile: \ + \n mips-tfile %{v*: -v} %{d*} \ + %{K: -I %b.o~} \ + %{!K: %{save-temps: -I %b.o~}} \ + %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %U.o} \ + %{.s:%i} %{!.s:%g.s}}}" +#endif + #define CPP_SPEC "\ %{.S: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY} \ -ULANGUAGE_C -U__LANGUAGE_C__} \ |