* libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
* libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | 2002-10-11  Richard Sandiford  <rsandifo@redhat.com> | ||||||
|  |  | ||||||
|  | 	* libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine. | ||||||
|  | 	* libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that | ||||||
|  | 	doesn't require the SIZE_T_SMALLER_THAN_LONG macro. | ||||||
|  |  | ||||||
| 2002-10-07	Joel Sherrill <joel@OARcorp.com> | 2002-10-07	Joel Sherrill <joel@OARcorp.com> | ||||||
|  |  | ||||||
| 	* libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link | 	* libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link | ||||||
|   | |||||||
| @@ -91,7 +91,6 @@ | |||||||
| #undef UINT_MAX | #undef UINT_MAX | ||||||
| #define INT_MAX __INT_MAX__ | #define INT_MAX __INT_MAX__ | ||||||
| #define UINT_MAX (__INT_MAX__ * 2U + 1) | #define UINT_MAX (__INT_MAX__ * 2U + 1) | ||||||
| #define SIZE_T_SMALLER_THAN_LONG |  | ||||||
| #define MALLOC_ALIGNMENT 8 | #define MALLOC_ALIGNMENT 8 | ||||||
| #define _POINTER_INT short | #define _POINTER_INT short | ||||||
| #define __BUFSIZ__ 16 | #define __BUFSIZ__ 16 | ||||||
|   | |||||||
| @@ -168,10 +168,6 @@ int _dummy_mallocr = 1; | |||||||
|   MALLOC_ALIGNMENT          (default: NOT defined) |   MALLOC_ALIGNMENT          (default: NOT defined) | ||||||
|      Define this to 16 if you need 16 byte alignment instead of 8 byte alignment |      Define this to 16 if you need 16 byte alignment instead of 8 byte alignment | ||||||
|      which is the normal default. |      which is the normal default. | ||||||
|   SIZE_T_SMALLER_THAN_LONG (default: NOT defined) |  | ||||||
|      Define this when the platform you are compiling has sizeof(long) > sizeof(size_t). |  | ||||||
|      The option causes some extra code to be generated to handle operations |  | ||||||
|      that use size_t operands and have long results. |  | ||||||
|   REALLOC_ZERO_BYTES_FREES (default: NOT defined)  |   REALLOC_ZERO_BYTES_FREES (default: NOT defined)  | ||||||
|      Define this if you think that realloc(p, 0) should be equivalent |      Define this if you think that realloc(p, 0) should be equivalent | ||||||
|      to free(p). Otherwise, since malloc returns a unique pointer for |      to free(p). Otherwise, since malloc returns a unique pointer for | ||||||
| @@ -448,11 +444,10 @@ extern void __malloc_unlock(); | |||||||
|   fact that assignment from unsigned to signed won't sign extend. |   fact that assignment from unsigned to signed won't sign extend. | ||||||
| */ | */ | ||||||
|  |  | ||||||
| #ifdef SIZE_T_SMALLER_THAN_LONG | #define long_sub_size_t(x, y)				\ | ||||||
| #define long_sub_size_t(x, y) ( (x < y) ? -((long)(y - x)) : (x - y) ); |   (sizeof (long) > sizeof (INTERNAL_SIZE_T) && x < y	\ | ||||||
| #else |    ? -(long) (y - x)					\ | ||||||
| #define long_sub_size_t(x, y) ( (long)(x - y) ) |    : (long) (x - y)) | ||||||
| #endif |  | ||||||
|  |  | ||||||
| /* | /* | ||||||
|   REALLOC_ZERO_BYTES_FREES should be set if a call to |   REALLOC_ZERO_BYTES_FREES should be set if a call to | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user