* mips-rtems support
@ 2011-02-07 19:34 Joel Sherrill
2011-02-08 13:16 ` Anthony Green
0 siblings, 1 reply; 3+ messages in thread
From: Joel Sherrill @ 2011-02-07 19:34 UTC (permalink / raw)
To: libffi-discuss, Ian Lance Taylor, Ralf Corsepius
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
Hi,
The MIPS libffi support assumes that the target
has sgidefs.h. Per Ian's suggestion, this patch
adds the few constants required from that file
on mips-rtems since we do not have it.
Can this please be applied and merged to gcc?
Thanks.
011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Add mips*-*-rtems* support.
* configure: Regenerate.
* src/mips/ffitarget.h: Ensure needed constants are available
for targets which do not have sgidefs.h.
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
[-- Attachment #2: libffi-mips.diff --]
[-- Type: text/plain, Size: 1541 bytes --]
2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Add mips*-*-rtems* support.
* configure: Regenerate.
* src/mips/ffitarget.h: Ensure needed constants are available
for targets which do not have sgidefs.h.
Index: libffi/configure.ac
===================================================================
--- libffi/configure.ac (revision 169864)
+++ libffi/configure.ac (working copy)
@@ -114,7 +114,7 @@
TARGET=M68K; TARGETDIR=m68k
;;
- mips-sgi-irix5.* | mips-sgi-irix6.*)
+ mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
TARGET=MIPS; TARGETDIR=mips
;;
mips*-*-linux*)
Index: libffi/configure
===================================================================
--- libffi/configure (revision 169864)
+++ libffi/configure (working copy)
@@ -11391,7 +11391,7 @@
TARGET=M68K; TARGETDIR=m68k
;;
- mips-sgi-irix5.* | mips-sgi-irix6.*)
+ mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
TARGET=MIPS; TARGETDIR=mips
;;
mips*-*-linux*)
Index: libffi/src/mips/ffitarget.h
===================================================================
--- libffi/src/mips/ffitarget.h (revision 169864)
+++ libffi/src/mips/ffitarget.h (working copy)
@@ -29,9 +29,17 @@
#ifdef linux
# include <asm/sgidefs.h>
+#elif defined(__rtems__)
+/*
+ * Subprogram calling convention - copied from sgidefs.h
+ */
+#define _MIPS_SIM_ABI32 1
+#define _MIPS_SIM_NABI32 2
+#define _MIPS_SIM_ABI64 3
#else
# include <sgidefs.h>
#endif
+
# ifndef _ABIN32
# define _ABIN32 _MIPS_SIM_NABI32
# endif
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mips-rtems support
2011-02-07 19:34 mips-rtems support Joel Sherrill
@ 2011-02-08 13:16 ` Anthony Green
2011-02-08 19:20 ` Joel Sherrill
0 siblings, 1 reply; 3+ messages in thread
From: Anthony Green @ 2011-02-08 13:16 UTC (permalink / raw)
To: Joel Sherrill; +Cc: libffi-discuss, Ian Lance Taylor, Ralf Corsepius
Joel Sherrill <joel.sherrill@oarcorp.com> writes:
> Hi,
>
> The MIPS libffi support assumes that the target
> has sgidefs.h. Per Ian's suggestion, this patch
> adds the few constants required from that file
> on mips-rtems since we do not have it.
>
> Can this please be applied and merged to gcc?
Please commit this to the GCC libffi sources.
Thanks!
AG
>
> Thanks.
>
> 011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
>
> * configure.ac: Add mips*-*-rtems* support.
> * configure: Regenerate.
> * src/mips/ffitarget.h: Ensure needed constants are available
> for targets which do not have sgidefs.h.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mips-rtems support
2011-02-08 13:16 ` Anthony Green
@ 2011-02-08 19:20 ` Joel Sherrill
0 siblings, 0 replies; 3+ messages in thread
From: Joel Sherrill @ 2011-02-08 19:20 UTC (permalink / raw)
To: Anthony Green; +Cc: libffi-discuss, Ian Lance Taylor, Ralf Corsepius
On 02/08/2011 07:15 AM, Anthony Green wrote:
> Joel Sherrill<joel.sherrill@oarcorp.com> writes:
>
>> Hi,
>>
>> The MIPS libffi support assumes that the target
>> has sgidefs.h. Per Ian's suggestion, this patch
>> adds the few constants required from that file
>> on mips-rtems since we do not have it.
>>
>> Can this please be applied and merged to gcc?
> Please commit this to the GCC libffi sources.
>
> Thanks!
>
Both m68k and mips changes are now committed
to the gcc libffi source.
I will close the two m68k libffi PRs.
Thanks.
> AG
>
>> Thanks.
>>
>> 011-02-07 Joel Sherrill<joel.sherrill@oarcorp.com>
>>
>> * configure.ac: Add mips*-*-rtems* support.
>> * configure: Regenerate.
>> * src/mips/ffitarget.h: Ensure needed constants are available
>> for targets which do not have sgidefs.h.
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-08 19:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-07 19:34 mips-rtems support Joel Sherrill
2011-02-08 13:16 ` Anthony Green
2011-02-08 19:20 ` Joel Sherrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).