This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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]

libc/sys/rtems/crt0.c patch



Minor patch to satisfy gcc's requirements for the references it
generates.  This just generalizes something already there so
gcc 3.1 is happy during autoconf.  I am committing this.


2002-04-19	Joel Sherrill <joel@OARcorp.com>

	* libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
	while autoconf is trying to link main(){}.


Index: libc/sys/rtems/crt0.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/rtems/crt0.c,v
retrieving revision 1.3
diff -u -r1.3 crt0.c
--- libc/sys/rtems/crt0.c	12 Apr 2002 21:12:19 -0000	1.3
+++ libc/sys/rtems/crt0.c	19 Apr 2002 18:48:58 -0000
@@ -23,16 +23,13 @@
 int rtems_gxx_mutex_unlock() { return -1; }
 int rtems_gxx_once() { return -1; }
 
-/* gcc 2.8.1 implicitly can generate references to these for at
- * least sparc-elf */
-#if (__GNUC__ == 2) && (__GNUC_MINOR__ == 8)
+/* gcc can implicitly generate references to these */
 strcmp() {}
 strcpy() {}
 strlen() {}
 memcmp() {}
 memcpy() {}
 memset() {}
-#endif
 
 /* The PowerPC expects certain symbols to be defined in the linker
script. */
 

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


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