This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to allow cross compiling mips-dec-osfrose


Here's another fix from the bitrot file.  In a cross compiler to
mips-dec-osfrose, I can't compile dwarfout.o because we're missing
definitions for UNALIGNED_SHORT_ASM_OP and UNALIGNED_INT_ASM_OP.

(BTW, the other osfrose target, i386-unknown-osfrose, gets past that
because i386.h provides defaults for those macros.)

Anyway, in mips/osfrose.h, it looks like the default assembler is gas.
So I think this patch is correct.

Tested via a cross compile of cc1 from sparc-sun-solaris2.7 to
mips-dec-osfrose.

Okay to install?

		Thanks,
		--Kaveh



2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
	UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
	OBJECT_FORMAT_ROSE.

diff -rup orig/egcs-CVS20011121/gcc/defaults.h egcs-CVS20011121/gcc/defaults.h
--- orig/egcs-CVS20011121/gcc/defaults.h	Wed Nov 21 14:20:20 2001
+++ egcs-CVS20011121/gcc/defaults.h	Wed Nov 21 15:56:57 2001
@@ -401,7 +401,7 @@ do {								\
 #endif
 
 /* GAS and SYSV4 assemblers accept these.  */
-#ifdef OBJECT_FORMAT_ELF
+#if defined (OBJECT_FORMAT_ELF) || defined (OBJECT_FORMAT_ROSE)
 #ifndef UNALIGNED_SHORT_ASM_OP
 #define UNALIGNED_SHORT_ASM_OP		"\t.2byte\t"
 #endif
@@ -411,7 +411,7 @@ do {								\
 #ifndef UNALIGNED_DOUBLE_INT_ASM_OP
 #define UNALIGNED_DOUBLE_INT_ASM_OP	"\t.8byte\t"
 #endif
-#endif /* OBJECT_FORMAT_ELF */
+#endif /* OBJECT_FORMAT_ELF || OBJECT_FORMAT_ROSE */
 
 #ifndef ASM_BYTE_OP
 #define ASM_BYTE_OP			"\t.byte\t"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]