This is the mail archive of the gcc-bugs@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]

c/3897: memcpy not expanded to builtin function



>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:


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