This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.0.1 PATCH: Provide UNALIGNED_{SHORT, INT}_ASM_OP for IRIX 5
- To: gcc-patches at gcc dot gnu dot org
- Subject: 3.0.1 PATCH: Provide UNALIGNED_{SHORT, INT}_ASM_OP for IRIX 5
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Date: Mon, 25 Jun 2001 20:42:48 +0200 (MEST)
I've tried again to bootstrap GCC 3.0 for mips-sgi-irix5.3 (but running on
IRIX 6.2 to get an O32-only compiler). As reported before when submitting
a more ambitious patch to provide a `native' IRIX 6/O32 configuration
http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00798.html
this is necessary to allow a bootstrap with the native as to complete.
This patch omits the IRIX 6/O32 bits for the moment and undefs the new
macros in iris6.h to make 100% certain that the IRIX 6 port is unaffected.
Ok for branch and mainline?
I'll submit further details and doc updates with the full procedure as a
separate patch.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
Fri Jun 8 13:13:17 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/iris5.h (UNALIGNED_INT_ASM_OP,
UNALIGNED_SHORT_ASM_OP): Define.
* config/mips/iris6.h (UNALIGNED_INT_ASM_OP,
UNALIGNED_SHORT_ASM_OP): Undef.
===================================================================
RCS file: gcc/config/mips/RCS/iris5.h,v
retrieving revision 1.1
diff -up -r1.1 gcc/config/mips/iris5.h
--- gcc/config/mips/iris5.h 2001/03/15 18:55:59 1.1
+++ gcc/config/mips/iris5.h 2001/06/21 18:07:45
@@ -154,6 +154,10 @@ do { \
fputs (" .text\n", FILE); \
} while (0)
+/* To get unaligned data, we have to turn off auto alignment. */
+#define UNALIGNED_SHORT_ASM_OP "\t.align 0\n\t.half\t"
+#define UNALIGNED_INT_ASM_OP "\t.align 0\n\t.word\t"
+
/* Also do this for libcalls. */
#define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \
mips_output_external_libcall (FILE, XSTR (FUN, 0))
===================================================================
RCS file: gcc/config/mips/RCS/iris6.h,v
retrieving revision 1.1
diff -up -r1.1 gcc/config/mips/iris6.h
--- gcc/config/mips/iris6.h 2001/06/11 20:29:43 1.1
+++ gcc/config/mips/iris6.h 2001/06/21 18:10:19
@@ -155,6 +155,8 @@ Boston, MA 02111-1307, USA. */
#undef ASM_OUTPUT_UNDEF_FUNCTION
#undef ASM_OUTPUT_EXTERNAL_LIBCALL
#undef ASM_DECLARE_FUNCTION_SIZE
+#undef UNALIGNED_SHORT_ASM_OP
+#undef UNALIGNED_INT_ASM_OP
/* Stuff we need for Irix 6 that isn't in Irix 5. */