This is the mail archive of the gcc@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]

patch to define TARGET_MEM_FUNCTIONS for *-rtems





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 */






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