mescc: Silence some stubs.

* lib/libc+tcc.c: [!NOISY_FLOATS, !NOISY_TIMES]: Silence stubs.
* lib/gcc.c: Likewise.
* lib/binutils.c: Likewise.
This commit is contained in:
Jan Nieuwenhuizen 2018-06-09 07:40:07 +02:00
parent a744fd9ba4
commit bb3353a272
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
5 changed files with 28 additions and 0 deletions

View file

@ -31,6 +31,7 @@
#define CHAR_BIT 8 #define CHAR_BIT 8
#define UCHAR_MAX 255 #define UCHAR_MAX 255
#define UINT_MAX 4294967295U
#define INT_MIN -2147483648 #define INT_MIN -2147483648
#define INT_MAX 2147483647 #define INT_MAX 2147483647
#define MB_CUR_MAX 1 #define MB_CUR_MAX 1

View file

@ -40,7 +40,9 @@ chown (char const *file_name, uid_t owner, gid_t group)
int int
ctime (int x) ctime (int x)
{ {
#if NOISY_TIMES
eputs ("ctime stub\n"); eputs ("ctime stub\n");
#endif
return 0; return 0;
} }
@ -162,7 +164,9 @@ umask (int x)
int int
utime (int x) utime (int x)
{ {
#if NOISY_TIMES
eputs ("utime stub\n"); eputs ("utime stub\n");
#endif
return 0; return 0;
} }
@ -194,7 +198,9 @@ bsearch (void const *key, void const *array, size_t count, size_t size, comparis
struct tm * struct tm *
gmtime (time_t const *time) gmtime (time_t const *time)
{ {
#if NOISY_TIMES
eputs ("gmtime stub\n"); eputs ("gmtime stub\n");
#endif
return localtime (time); return localtime (time);
} }

View file

@ -34,7 +34,9 @@ freopen (char const *file_name, char const *opentype, FILE *stream)
clock_t clock_t
times (struct tms *buffer) times (struct tms *buffer)
{ {
#if NOISY_TIMES
eputs ("times stub\n"); eputs ("times stub\n");
#endif
return 0; return 0;
} }

View file

@ -112,34 +112,44 @@ __ashrdi3 (long long a, int b)
long double long double
__floatundixf (unsigned long long a) __floatundixf (unsigned long long a)
{ {
#if NOISY_FLOATS
eputs ("__floatundix stub\n"); eputs ("__floatundix stub\n");
#endif
return 0; return 0;
} }
unsigned long long unsigned long long
__fixunsxfdi (double a1) __fixunsxfdi (double a1)
{ {
#if NOISY_FLOATS
eputs ("__fixunsxfdi stub\n"); eputs ("__fixunsxfdi stub\n");
#endif
return 0; return 0;
} }
unsigned long long unsigned long long
__fixdfdi (double a1) __fixdfdi (double a1)
{ {
#if NOISY_FLOATS
eputs ("__fixdfdi stub\n"); eputs ("__fixdfdi stub\n");
#endif
return 0; return 0;
} }
unsigned long long unsigned long long
__fixxfdi (double a1) __fixxfdi (double a1)
{ {
#if NOISY_FLOATS
eputs ("__fixxfdi stub\n"); eputs ("__fixxfdi stub\n");
#endif
return 0; return 0;
} }
unsigned long long unsigned long long
__fixsfdi (double a1) __fixsfdi (double a1)
{ {
#if NOISY_FLOATS
eputs ("__fixsfdi stub\n"); eputs ("__fixsfdi stub\n");
#endif
return 0; return 0;
} }

View file

@ -243,7 +243,9 @@ fseek (FILE *stream, long offset, int whence)
int int
gettimeofday (struct timeval *tv, struct timezone *tz) gettimeofday (struct timeval *tv, struct timezone *tz)
{ {
#if NOISY_TIMES
eputs ("gettimeofday stub\n"); eputs ("gettimeofday stub\n");
#endif
return 0; return 0;
} }
@ -257,7 +259,9 @@ ldexp (double x, int exp)
struct tm * struct tm *
localtime (time_t const *timep) localtime (time_t const *timep)
{ {
#if NOISY_TIMES
eputs ("localtime stub\n"); eputs ("localtime stub\n");
#endif
return 0; return 0;
} }
@ -478,7 +482,10 @@ strstr (char const *haystack, char const *needle)
double double
strtod (char const *string, char **tailptr) strtod (char const *string, char **tailptr)
{ {
#if NOISY_FLOATS
eputs ("strtod stub\n"); eputs ("strtod stub\n");
#endif
return 0;
} }
float float
@ -560,7 +567,9 @@ strtoull (char const *string, char **tailptr, int base)
time_t time_t
time (time_t *tloc) time (time_t *tloc)
{ {
#if NOISY_TIMES
eputs ("time stub\n"); eputs ("time stub\n");
#endif
return 0; return 0;
} }