source:
rtems/contrib/crossrpms/patches/newlib-1.17.0-rtems4.10-20090219.diff
@
c752ccb8
Last change on this file since c752ccb8 was c752ccb8, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/19/09 at 15:08:06 | |
---|---|
|
|
File size: 12.2 KB |
-
newlib/ChangeLog.rtems
diff -Naur newlib-1.17.0.orig/newlib/ChangeLog.rtems newlib-1.17.0/newlib/ChangeLog.rtems
old new 1 2009-02-16 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * libc/sys/rtems/sys/param.h: 4 Update copyright notice from FreeBSD. 5 Remove HZ. 6 Add #include <sys/priority.h> 7 Remove priority handling (moved to sys/priority.h). 8 Remove CLBYTES (Unused, abandoned in BSD). 9 10 2009-02-06 Ralf Corsépius <ralf.corsepius@rtems.org> 11 12 * libc/include/sched.h: 13 Remove (collides with RTEMS's schedul.h). 14 -
newlib/libc/include/inttypes.h
diff -Naur newlib-1.17.0.orig/newlib/libc/include/inttypes.h newlib-1.17.0/newlib/libc/include/inttypes.h
old new 163 163 164 164 165 165 /* 64-bit types */ 166 #if __have_longlong64 167 #define __PRI64(x) __STRINGIFY(ll##x) 168 #define __SCN64(x) __STRINGIFY(ll##x) 169 #elif __have_long64 166 #if __have_long64 170 167 #define __PRI64(x) __STRINGIFY(l##x) 171 168 #define __SCN64(x) __STRINGIFY(l##x) 169 #elif __have_longlong64 170 #define __PRI64(x) __STRINGIFY(ll##x) 171 #define __SCN64(x) __STRINGIFY(ll##x) 172 172 #else 173 173 #define __PRI64(x) __STRINGIFY(x) 174 174 #define __SCN64(x) __STRINGIFY(x) … … 217 217 #endif 218 218 219 219 /* max-bit types */ 220 #if __have_longlong64 221 #define __PRIMAX(x) __STRINGIFY(ll##x) 222 #define __SCNMAX(x) __STRINGIFY(ll##x) 223 #elif __have_long64 220 #if __have_long64 224 221 #define __PRIMAX(x) __STRINGIFY(l##x) 225 222 #define __SCNMAX(x) __STRINGIFY(l##x) 223 #elif __have_longlong64 224 #define __PRIMAX(x) __STRINGIFY(ll##x) 225 #define __SCNMAX(x) __STRINGIFY(ll##x) 226 226 #else 227 227 #define __PRIMAX(x) __STRINGIFY(x) 228 228 #define __SCNMAX(x) __STRINGIFY(x) … … 242 242 #define SCNxMAX __SCNMAX(x) 243 243 244 244 /* ptr types */ 245 #if __have_longlong64 246 #define __PRIPTR(x) __STRINGIFY(ll##x) 247 #define __SCNPTR(x) __STRINGIFY(ll##x) 248 #elif __have_long64 245 #if __have_long64 249 246 #define __PRIPTR(x) __STRINGIFY(l##x) 250 247 #define __SCNPTR(x) __STRINGIFY(l##x) 248 #elif __have_longlong64 249 #define __PRIPTR(x) __STRINGIFY(ll##x) 250 #define __SCNPTR(x) __STRINGIFY(ll##x) 251 251 #else 252 252 #define __PRIPTR(x) __STRINGIFY(x) 253 253 #define __SCNPTR(x) __STRINGIFY(x) -
newlib/libc/include/machine/ieeefp.h
diff -Naur newlib-1.17.0.orig/newlib/libc/include/machine/ieeefp.h newlib-1.17.0/newlib/libc/include/machine/ieeefp.h
old new 62 62 # define __IEEE_BIG_ENDIAN 63 63 # endif 64 64 #else 65 # define __IEEE_BIG_ENDIAN66 65 # ifdef __ARMEL__ 66 # define __IEEE_LITTLE_ENDIAN 67 # else 68 # define __IEEE_BIG_ENDIAN 69 # endif 70 # ifdef __ARMWEL__ 67 71 # define __IEEE_BYTES_LITTLE_ENDIAN 68 72 # endif 69 73 #endif -
newlib/libc/include/machine/setjmp.h
diff -Naur newlib-1.17.0.orig/newlib/libc/include/machine/setjmp.h newlib-1.17.0/newlib/libc/include/machine/setjmp.h
old new 27 27 28 28 /* necv70 was 9 as well. */ 29 29 30 #if def __mc68000__30 #if defined(__m68k__) || defined(__mc68000__) 31 31 /* 32 32 * onsstack,sigmask,sp,pc,psl,d2-d7,a2-a6, 33 33 * fp2-fp7 for 68881. -
newlib/libc/include/sched.h
diff -Naur newlib-1.17.0.orig/newlib/libc/include/sched.h newlib-1.17.0/newlib/libc/include/sched.h
old new 1 #ifndef _SCHED_H_2 #define _SCHED_H_3 4 #ifdef __cplusplus5 extern "C" {6 #endif7 8 #include <sys/sched.h>9 10 #ifdef __cplusplus11 }12 #endif13 14 #endif /* _SCHED_H_ */ -
newlib/libc/include/stdint.h
diff -Naur newlib-1.17.0.orig/newlib/libc/include/stdint.h newlib-1.17.0/newlib/libc/include/stdint.h
old new 475 475 #define UINTMAX_C(x) x##UL 476 476 #endif 477 477 478 #ifdef __rtems__ 479 #include <machine/stdint.h> 480 #endif 478 481 479 482 #ifdef __cplusplus 480 483 } -
newlib/libc/include/sys/_types.h
diff -Naur newlib-1.17.0.orig/newlib/libc/include/sys/_types.h newlib-1.17.0/newlib/libc/include/sys/_types.h
old new 84 84 typedef void *_iconv_t; 85 85 #endif 86 86 87 typedef long * __intptr_t; 88 typedef unsigned long* __uintptr_t; 89 87 90 #endif /* _SYS__TYPES_H */ -
newlib/libc/machine/arm/machine/endian.h
diff -Naur newlib-1.17.0.orig/newlib/libc/machine/arm/machine/endian.h newlib-1.17.0/newlib/libc/machine/arm/machine/endian.h
old new 1 /* ARM configuration file */2 3 #ifndef _MACHINE_ENDIAN_H4 # define _MACHINE_ENDIAN_H5 6 #ifdef __ARMEB__7 #define BYTE_ORDER BIG_ENDIAN8 #else9 #define BYTE_ORDER LITTLE_ENDIAN10 #endif11 12 #endif -
newlib/libc/sys/rtems/machine/stdint.h
diff -Naur newlib-1.17.0.orig/newlib/libc/sys/rtems/machine/stdint.h newlib-1.17.0/newlib/libc/sys/rtems/machine/stdint.h
old new 1 /* 2 * 3 */ 4 #ifndef _MACHINE_STDINT_H 5 #define _MACHINE_STDINT_H 6 7 #ifndef _STDINT_H 8 #error machine/stdint.h is an internal file and must not be directly included 9 #endif 10 11 #ifndef __rtems__ 12 #error machine/stdint.h is an RTEMS specific internal file and must not be used otherwise 13 #endif 14 15 #if defined(__m32c__) || defined(__m32r__) 16 #if (__SIZEOF_PTRDIFF_T__ == __SIZEOF_LONG__) 17 #define __ptrint_t_long_defined 1 18 #endif 19 #if (__SIZEOF_PTRDIFF_T__ == __SIZEOF_INT__) 20 #define __ptrint_t_int_defined 1 21 #endif 22 #endif 23 24 #if defined(__sparc__) \ 25 || defined(__powerpc__) || defined(__PPC__) \ 26 || defined(__mips__) \ 27 || defined(__sh__) \ 28 || defined(__AVR__) \ 29 || defined(_C4x) || defined(_C3x) \ 30 || defined(__H8300__) 31 /* PTRDIFF_TYPE = int */ 32 #define __ptrint_t_int_defined 1 33 #endif 34 35 #if defined(__i386__) \ 36 || defined(__m68k__) \ 37 || defined(__bfin__) \ 38 || defined(__arm__) \ 39 || defined(__H8300S__) || defined(__H8300H__) || defined(__H8300SX__) \ 40 /* PTRDIFF_TYPE = long */ 41 #define __ptrint_t_long_defined 1 42 #endif 43 44 #if !defined(__ptrint_t_int_defined) && !defined(__ptrint_t_long_defined) 45 #error Failed to determine ptrint_t 46 #endif 47 48 #endif -
newlib/libc/sys/rtems/sys/param.h
diff -Naur newlib-1.17.0.orig/newlib/libc/sys/rtems/sys/param.h newlib-1.17.0/newlib/libc/sys/rtems/sys/param.h
old new 15 15 * 2. Redistributions in binary form must reproduce the above copyright 16 16 * notice, this list of conditions and the following disclaimer in the 17 17 * documentation and/or other materials provided with the distribution. 18 * 3. All advertising materials mentioning features or use of this software19 * must display the following acknowledgement:20 * This product includes software developed by the University of21 * California, Berkeley and its contributors.22 18 * 4. Neither the name of the University nor the names of its contributors 23 19 * may be used to endorse or promote products derived from this software 24 20 * without specific prior written permission. … … 47 43 #include <sys/config.h> 48 44 #include <machine/endian.h> 49 45 50 # define HZ (60)51 46 # define PATHSIZE (1024) 52 47 53 48 /* end of from newlib's <sys/param.h> */ … … 86 81 #define MAXHOSTNAMELEN 256 /* max hostname size */ 87 82 88 83 /* More types and definitions used throughout the kernel. */ 89 #if def KERNEL84 #if defined(KERNEL) || defined(_KERNEL) 90 85 #include <sys/cdefs.h> 91 86 #include <sys/errno.h> 92 87 #include <sys/time.h> 93 88 #include <sys/resource.h> 94 #include <sys/ucred.h>95 89 #include <sys/uio.h> 90 #include <sys/priority.h> 96 91 97 92 #ifndef FALSE 98 93 #define FALSE 0 … … 109 104 #include <machine/param.h> 110 105 #include <machine/limits.h> 111 106 112 /*113 * Priorities. Note that with 32 run queues, differences less than 4 are114 * insignificant.115 */116 #define PSWP 0117 #define PVM 4118 #define PINOD 8119 #define PRIBIO 16120 #define PVFS 20121 #define PZERO 22 /* No longer magic, shouldn't be here. XXX */122 #define PSOCK 24123 #define PWAIT 32124 #define PLOCK 36125 #define PPAUSE 40126 #define PUSER 50127 #define MAXPRI 127 /* Priorities range from 0 through MAXPRI. */128 129 107 #define PRIMASK 0x0ff 130 108 #define PCATCH 0x100 /* OR'd with pri for tsleep to check signals */ 131 109 … … 136 114 #define CMASK 022 /* default file mask: S_IWGRP|S_IWOTH */ 137 115 #define NODEV (dev_t)(-1) /* non-existent device */ 138 116 139 /*140 * Clustering of hardware pages on machines with ridiculously small141 * page sizes is done here. The paging subsystem deals with units of142 * CLSIZE pte's describing PAGE_SIZE (from machine/machparam.h) pages each.143 */144 #if 0145 #define CLBYTES (CLSIZE*PAGE_SIZE)146 #endif147 148 117 #define CBLOCK 128 /* Clist block size, must be a power of 2. */ 149 118 #define CBQSIZE (CBLOCK/NBBY) /* Quote bytes/cblock - can do better. */ 150 119 /* Data chars/clist. */ … … 200 169 #define powerof2(x) ((((x)-1)&(x))==0) 201 170 202 171 /* Macros for min/max. */ 203 #if ndef KERNEL172 #if !(defined(KERNEL) || defined(_KERNEL)) 204 173 #define MIN(a,b) (((a)<(b))?(a):(b)) 205 174 #define MAX(a,b) (((a)>(b))?(a):(b)) 206 175 #endif -
newlib/Makefile.am
diff -Naur newlib-1.17.0.orig/newlib/Makefile.am newlib-1.17.0/newlib/Makefile.am
old new 81 81 libc.a 82 82 endif 83 83 84 noinst_DATA= stmp-targ-include84 BUILT_SOURCES = stmp-targ-include 85 85 86 86 toollib_DATA = $(CRT0) $(CRT1) 87 87 … … 186 186 187 187 $(CRT1_DIR)$(CRT1): ; @true 188 188 189 190 all-recursive: stmp-targ-include191 192 189 # The targ-include directory just holds the includes files for the 193 190 # particular system and machine we have been configured for. It is 194 191 # used while building. -
newlib/Makefile.in
diff -Naur newlib-1.17.0.orig/newlib/Makefile.in newlib-1.17.0/newlib/Makefile.in
old new 106 106 pdf-recursive ps-recursive uninstall-info-recursive \ 107 107 uninstall-recursive 108 108 toollibDATA_INSTALL = $(INSTALL_DATA) 109 DATA = $( noinst_DATA) $(toollib_DATA)109 DATA = $(toollib_DATA) 110 110 ETAGS = etags 111 111 CTAGS = ctags 112 112 DEJATOOL = $(PACKAGE) … … 350 350 @USE_LIBTOOL_FALSE@toollib_LIBRARIES = libm.a \ 351 351 @USE_LIBTOOL_FALSE@ libc.a 352 352 353 noinst_DATA= stmp-targ-include353 BUILT_SOURCES = stmp-targ-include 354 354 toollib_DATA = $(CRT0) $(CRT1) 355 355 356 356 # The functions ldexp, frexp and modf are traditionally supplied in … … 409 409 410 410 # dejagnu support 411 411 RUNTESTFLAGS = 412 all: newlib.h412 all: $(BUILT_SOURCES) newlib.h 413 413 $(MAKE) $(AM_MAKEFLAGS) all-recursive 414 414 415 415 .SUFFIXES: … … 714 714 done 715 715 check-am: 716 716 $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU 717 check: check-recursive 717 check: $(BUILT_SOURCES) 718 $(MAKE) $(AM_MAKEFLAGS) check-recursive 718 719 all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) newlib.h 719 720 installdirs: installdirs-recursive 720 721 installdirs-am: 721 722 for dir in "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)"; do \ 722 723 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 723 724 done 724 install: install-recursive 725 install: $(BUILT_SOURCES) 726 $(MAKE) $(AM_MAKEFLAGS) install-recursive 725 727 install-exec: install-exec-recursive 726 728 install-data: install-data-recursive 727 729 uninstall: uninstall-recursive … … 746 748 maintainer-clean-generic: 747 749 @echo "This command is intended for maintainers to use" 748 750 @echo "it deletes files that may require special tools to rebuild." 751 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 749 752 clean: clean-recursive 750 753 751 754 clean-am: clean-generic clean-libtool clean-toollibLIBRARIES \ … … 864 867 865 868 $(CRT1_DIR)$(CRT1): ; @true 866 869 867 all-recursive: stmp-targ-include868 869 870 # The targ-include directory just holds the includes files for the 870 871 # particular system and machine we have been configured for. It is 871 872 # used while building.
Note: See TracBrowser
for help on using the repository browser.