GNU Binutils with patches for OS216
Rev. | c4df5bbeb87a445dbc84b9ed677b2c721e5051b5 |
---|---|
Tamanho | 500 bytes |
Hora | 2020-07-04 04:03:47 |
Autor | Sebastian Huber |
Mensagem de Log | sim/igen: Fix linker error with -fno-common
GCC 10 enables -fno-common by default. This resulted in multiple
ld: libsim.a(idecode.o):sim/v850/idecode.h:71: multiple definition of
idecode_issue'; libsim.a(irun.o):sim/v850/idecode.h:71: first defined here ld: libsim.a(engine.o):sim/v850/idecode.h:71: multiple definition of
idecode_issue'; libsim.a(irun.o):sim/v850/idecode.h:71: first defined here ld: libsim.a(support.o):sim/v850/idecode.h:71: multiple definition of
idecode_issue'; libsim.a(irun.o):sim/v850/idecode.h:71: first defined here ld: libsim.a(semantics.o):sim/v850/idecode.h:71: multiple definition
of idecode_issue'; libsim.a(irun.o):sim/v850/idecode.h:71: first defined here sim/igen
PR sim/26194
* lf.h (lf_get_file_type): Declare.
|
/* memset
This implementation is in the public domain. */
/*
@deftypefn Supplemental void* memset (void *@var{s}, int @var{c}, @
size_t @var{count})
Sets the first @var{count} bytes of @var{s} to the constant byte
@var{c}, returning a pointer to @var{s}.
@end deftypefn
*/
#include <ansidecl.h>
#include <stddef.h>
PTR
memset (PTR dest, register int val, register size_t len)
{
register unsigned char *ptr = (unsigned char*)dest;
while (len-- > 0)
*ptr++ = val;
return dest;
}