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 UCHAR_MAX 255
#define UINT_MAX 4294967295U
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define MB_CUR_MAX 1

View File

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

View File

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

View File

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

View File

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