This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/3897: memcpy not expanded to builtin function
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/3897: memcpy not expanded to builtin function
- From: thomas dot hiller at sap dot com
- Date: 31 Jul 2001 15:47:55 -0000
- Reply-To: thomas dot hiller at sap dot com
>Number: 3897
>Category: c
>Synopsis: memcpy not expanded to builtin function
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 31 08:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: thomas.hiller@sap.com
>Release: gcc-3.0
>Organization:
>Environment:
Linux/IA64 and Linux/IA32
>Description:
The memcpy function will not get replaced by the builtin function when optimizing.
When the third parameter is a constant, it works.
>How-To-Repeat:
#include <string.h>
int main()
{
char a[11] = "0123456789";
char b[11];
long unsigned int t=10;
memcpy(a,b,t);
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: