public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* patch to define TARGET_MEM_FUNCTIONS for *-rtems
@ 1998-03-23 16:39 Joel Sherrill
  1998-03-23 22:59 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Sherrill @ 1998-03-23 16:39 UTC (permalink / raw)
  To: egcs

With this patch, RTEMS always uses the memory routines from the C library.
This is desirable for us because the library routines are easier to
replace and optimize for special situations.

Mon Mar 23 07:34:25 CST 1998  Joel Sherrill (joel@OARcorp.com)
       * config/i386/go32-rtems.h: Defined TARGET_MEM_FUNCTIONS.
       * config/i386/rtems.h: Likewise.
       * config/i960/rtems.h: Likewise.
       * config/m68k/rtems.h: Likewise.
       * config/mips/rtems64.h: Likewise.
       * config/pa/rtems.h: Likewise.
       * config/rs6000/rtems.h: Likewise.
       * config/sh/rtems.h: Likewise.
       * config/sparc/rtems.h: Likewise.

iff -N -P -r -c egcs-1.0.2.orig/gcc/config/i386/go32-rtems.h
egcs-1.0.2/gcc/config/i386/go32-rtems.h
*** egcs-1.0.2.orig/gcc/config/i386/go32-rtems.h        Wed Sep  3
10:42:32 1997
--- egcs-1.0.2/gcc/config/i386/go32-rtems.h     Fri Mar 20 10:00:11 1998
***************
*** 31,35 ****
--- 31,40 ----
  #define CPP_PREDEFINES "-Dunix -Di386 -DGO32 -DMSDOS -Drtems -D__rtems__
\
    -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386)
-Asystem(rtems)"

+ /* Generate calls to memcpy, memcmp and memset.  */
+ #ifndef TARGET_MEM_FUNCTIONS
+ #define TARGET_MEM_FUNCTIONS
+ #endif
+
  /* end of i386/go32-rtems.h */

diff -N -P -r -c egcs-1.0.2.orig/gcc/config/i386/rtems.h
egcs-1.0.2/gcc/config/i386/rtems.h
*** egcs-1.0.2.orig/gcc/config/i386/rtems.h     Wed Sep  3 10:42:33 1997
--- egcs-1.0.2/gcc/config/i386/rtems.h  Fri Mar 20 10:00:11 1998
***************
*** 28,31 ****
--- 28,36 ----
  #define CPP_PREDEFINES "-Di386 -Drtems -D__rtems__ \
     -Asystem(rtems) -Acpu(i386) -Amachine(i386)"

+ /* Generate calls to memcpy, memcmp and memset.  */
+ #ifndef TARGET_MEM_FUNCTIONS
+ #define TARGET_MEM_FUNCTIONS
+ #endif
+
  /* end of i386/rtems.h */
diff -N -P -r -c egcs-1.0.2.orig/gcc/config/i960/rtems.h
egcs-1.0.2/gcc/config/i960/rtems.h
*** egcs-1.0.2.orig/gcc/config/i960/rtems.h     Wed Sep  3 10:42:34 1997
--- egcs-1.0.2/gcc/config/i960/rtems.h  Fri Mar 20 10:00:11 1998
***************
*** 28,31 ****
--- 28,36 ----
  #define CPP_PREDEFINES "-Di960 -Di80960 -DI960 -DI80960 -Drtems
-D__rtems__ \
     -Asystem(rtems) -Acpu(i960) -Amachine(i960)"

+ /* Generate calls to memcpy, memcmp and memset.  */
+ #ifndef TARGET_MEM_FUNCTIONS
+ #define TARGET_MEM_FUNCTIONS
+ #endif
+
  /* end of i960/rtems.h */
diff -N -P -r -c egcs-1.0.2.orig/gcc/config/m68k/rtems.h
egcs-1.0.2/gcc/config/m68k/rtems.h
*** egcs-1.0.2.orig/gcc/config/m68k/rtems.h     Wed Sep  3 10:42:35 1997
--- egcs-1.0.2/gcc/config/m68k/rtems.h  Fri Mar 20 10:00:11 1998
***************
*** 27,30 ****
--- 27,35 ----
  #define CPP_PREDEFINES "-Dmc68000 -Drtems -D__rtems__ \
     -Asystem(rtems) -Acpu(mc68000) -Acpu(m68k) -Amachine(m68k)"

+ /* Generate calls to memcpy, memcmp and memset.  */
+ #ifndef TARGET_MEM_FUNCTIONS
+ #define TARGET_MEM_FUNCTIONS
+ #endif
+
  /* end of m68k/rtems.h */
diff -N -P -r -c egcs-1.0.2.orig/gcc/config/mips/rtems64.h
egcs-1.0.2/gcc/config/mips/rtems64.h
*** egcs-1.0.2.orig/gcc/config/mips/rtems64.h   Wed Sep  3 10:42:36 1997
--- egcs-1.0.2/gcc/config/mips/rtems64.h        Fri Mar 20 10:00:11 1998
***************
*** 28,31 ****
--- 28,36 ----
  #define CPP_PREDEFINES "-Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB
-D_R4000 \
     -Drtems -D__rtems__ -Asystem(rtems)"

+ /* Generate calls to memcpy, memcmp and memset.  */
+ #ifndef TARGET_MEM_FUNCTIONS
+ #define TARGET_MEM_FUNCTIONS
+ #endif
+
  /* end of mips/rtems64.h */
diff -N -P -r -c egcs-1.0.2.orig/gcc/config/pa/rtems.h
egcs-1.0.2/gcc/config/pa/rtems.h
*** egcs-1.0.2.orig/gcc/config/pa/rtems.h       Wed Sep  3 10:42:37 1997
--- egcs-1.0.2/gcc/config/pa/rtems.h    Fri Mar 20 10:00:11 1998
***************
*** 25,28 ****
--- 25,33 ----
  #define CPP_PREDEFINES "-Dhppa -DPWB -Acpu(hppa) -Amachine(hppa) \
     -Drtems -D__rtems__ -Asystem(rtems)"

+ /* Generate calls to memcpy, memcmp and memset.  */
+ #ifndef TARGET_MEM_FUNCTIONS
+ #define TARGET_MEM_FUNCTIONS
+ #endif
+
  /* end of pa/rtems.h */
diff -N -P -r -c egcs-1.0.2.orig/gcc/config/rs6000/rtems.h
egcs-1.0.2/gcc/config/rs6000/rtems.h
*** egcs-1.0.2.orig/gcc/config/rs6000/rtems.h   Wed Sep  3 10:42:40 1997
--- egcs-1.0.2/gcc/config/rs6000/rtems.h        Fri Mar 20 10:00:11 1998
***************
*** 28,31 ****
  #define CPP_PREDEFINES "-DPPC -Drtems -D__rtems__ \
     -Asystem(rtems) -Acpu(powerpc) -Amachine(powerpc)"

! /* end of powerpc-rtems.h */
--- 28,36 ----
  #define CPP_PREDEFINES "-DPPC -Drtems -D__rtems__ \
     -Asystem(rtems) -Acpu(powerpc) -Amachine(powerpc)"

! /* Generate calls to memcpy, memcmp and memset.  */
! #ifndef TARGET_MEM_FUNCTIONS
! #define TARGET_MEM_FUNCTIONS
! #endif
!
! /* end of rs6000/rtems.h */
diff -N -P -r -c egcs-1.0.2.orig/gcc/config/sh/rtems.h
egcs-1.0.2/gcc/config/sh/rtems.h
*** egcs-1.0.2.orig/gcc/config/sh/rtems.h       Wed Sep  3 10:42:42 1997
--- egcs-1.0.2/gcc/config/sh/rtems.h    Fri Mar 20 10:58:17 1998
***************
*** 28,31 ****
  #define CPP_PREDEFINES "-D__sh__ -D__ELF__ -Drtems -D__rtems__ \
    -Asystem(rtems) -Acpu(sh) -Amachine(sh)"

! /* end of sparc/rtems.h */
--- 28,36 ----
  #define CPP_PREDEFINES "-D__sh__ -D__ELF__ -Drtems -D__rtems__ \
    -Asystem(rtems) -Acpu(sh) -Amachine(sh)"

! /* Generate calls to memcpy, memcmp and memset.  */
! #ifndef TARGET_MEM_FUNCTIONS
! #define TARGET_MEM_FUNCTIONS
! #endif
!
! /* end of sh/rtems.h */
diff -N -P -r -c egcs-1.0.2.orig/gcc/config/sparc/rtems.h
egcs-1.0.2/gcc/config/sparc/rtems.h
*** egcs-1.0.2.orig/gcc/config/sparc/rtems.h    Wed Sep 24 19:41:02 1997
--- egcs-1.0.2/gcc/config/sparc/rtems.h Fri Mar 20 10:00:11 1998
***************
*** 26,28 ****
--- 26,35 ----
  #undef CPP_PREDEFINES
  #define CPP_PREDEFINES "-Dsparc -D__GCC_NEW_VARARGS__ -Drtems
-D__rtems__ \
    -Asystem(rtems) -Acpu(sparc) -Amachine(sparc)"
+
+ /* Generate calls to memcpy, memcmp and memset.  */
+ #ifndef TARGET_MEM_FUNCTIONS
+ #define TARGET_MEM_FUNCTIONS
+ #endif
+
+ /* end of sparc/rtems.h */





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: patch to define TARGET_MEM_FUNCTIONS for *-rtems
  1998-03-23 16:39 patch to define TARGET_MEM_FUNCTIONS for *-rtems Joel Sherrill
@ 1998-03-23 22:59 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-03-23 22:59 UTC (permalink / raw)
  To: Joel Sherrill; +Cc: egcs, wilson

  In message < Pine.BSF.3.96.980323082131.2592G-100000@vespucci.advicom.net >you 
write:
  > 
  > 
  > 
  > With this patch, RTEMS always uses the memory routines from the C library.
  > This is desirable for us because the library routines are easier to
  > replace and optimize for special situations.
  > 
  > Mon Mar 23 07:34:25 CST 1998  Joel Sherrill (joel@OARcorp.com)
  >        * config/i386/go32-rtems.h: Defined TARGET_MEM_FUNCTIONS.
  >        * config/i386/rtems.h: Likewise.
  >        * config/i960/rtems.h: Likewise.
  >        * config/m68k/rtems.h: Likewise.
  >        * config/mips/rtems64.h: Likewise.
  >        * config/pa/rtems.h: Likewise.
  >        * config/rs6000/rtems.h: Likewise.
  >        * config/sh/rtems.h: Likewise.
  >        * config/sparc/rtems.h: Likewise.
I was going to apply this patch, but it looks like your mailer
wrapped a bunch of lines.  Rather than risk mis-applying the patch
can you resend it?  Possibly uuencoding it to avoid the line
wrapping problem?

Thanks,
jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-23 22:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-23 16:39 patch to define TARGET_MEM_FUNCTIONS for *-rtems Joel Sherrill
1998-03-23 22:59 ` Jeffrey A Law

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).