This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libgcov-driver-system bootstrap failure


On 6/5/18, David Edelsohn <dje.gcc@gmail.com> wrote:
> Martin,
>
> With your recent patch, I receive the following failure building
> libgcov-driver-system.c
>
> In file included from
> /nasfarm/edelsohn/src/src/gcc/../libgcc/libgcov-driver.c:322:0:
> /nasfarm/edelsohn/src/src/gcc/../libgcc/libgcov-driver-system.c: In
> function 'char* replace_filename_variables(char*)':
> /nasfarm/edelsohn/src/src/gcc/../libgcc/libgcov-driver-system.c:193:61:
> error: 'mempcpy' was not declared in this scope
>     buffer_ptr = (char *)mempcpy (buffer_ptr, filename, start);
>
> mempcpy is a GLIBC extension and not defined in POSIX.  There is no
> libiberty implementation.  Please avoid use of GLIBC-specific
> functions.
>
> Thanks, David
>

About there being no libiberty implementation, there is a gnulib one:
https://www.gnu.org/software/gnulib/manual/html_node/mempcpy.html
Thus, if the "replace libiberty with gnulib" project is ever picked up
again, it'd be easy to have mempcpy available thru it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]