The ./configure configuration of GCC looks for the existance of the function mempcpy, and if found sets HAVE_MEMPCPY. However the function which is actually used in gcc/fixinc/gnu-regex.c (I don't think it occurs anywhere else) is __mempcpy. This works on most systems, which have both __mempcpy and mempcpy. The latest cygwin only has mempcpy, and shows up the bug. gcc needs a little patching to make it build. Release: 3.2.3 Environment: cygwin
Fix: Look for either __mempcpy or mempcpy. Set and use separate variables,depending on the outcome. That seems the bullet proof approach.
From: Dara Hazeghi <dhazeghi@yahoo.com> To: steveu@coppice.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: bootstrap/10636: configuration mismatch with mempcpy Date: Fri, 16 May 2003 17:58:47 -0700 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- trail&database=gcc&pr=10636 Hello, looking at gnu-regex.c on gcc 3.3 and mainline, I don't see any reference to __mempcpy, only mempcpy. Does this mean that the problem is solved? Would it be possible for you to check if this problem is still exhibited with gcc 3.3? Thanks, Dara
State-Changed-From-To: open->feedback State-Changed-Why: See Dara's question.
Giovanni, you bootstrap cygwin, correct? If so, do you know what the status of this is? Thanks, Dara
Yes, it's a known problem which was fixed by Kaveh before 3.3 but after 3.2.3. It used to be tracked by PR10140. *** This bug has been marked as a duplicate of 10140 ***