Path: utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!csri.toronto.edu!moraes
From: moraes@csri.toronto.edu (Mark Moraes)
Newsgroups: gnu.gcc.bug
Subject: gcc 1.31 gets a fatal signal when __builtin_memcpy is used.
Message-ID: <88Nov30.030843est.12697@bay.csri.toronto.edu>
Date: 30 Nov 88 08:08:31 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 36

The following file and session illustrate the error - gcc gets a SIGIOT.
(Does this mean there isn't a __builtin_memcpy available?)

Gcc compiled and run on a Sun3/180 running SunOS3.5 - used 'config.gcc
sun3'.

% cat memcpy.c
#ifndef BYTES
#define BYTES 10*1024
#endif
#ifndef LOOPS
#define LOOPS 1000
#endif
#ifndef FROMALIGN
#define FROMALIGN 0
#endif
#ifndef TOALIGN
#define TOALIGN 0
#endif

main()          /* time memcpy(3) */
{
        register int count = LOOPS;
        static char from[BYTES], to[BYTES];

        while (count-- > 0)
                memcpy(to, from, sizeof from - FROMALIGN - TOALIGN);
        return 0;
}
% gcc -v -Dmemcpy=__builtin_memcpy memcpy.c
gcc version 1.31
 /local/lib/gcc-cpp -v -Dmemcpy=__builtin_memcpy -undef -D__GNU__ -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__HAVE_68881__ -Dmc68020 memcpy.c /tmp/cca12899.cpp
GNU CPP version 1.31
 /local/lib/gcc-cc1 /tmp/cca12899.cpp -quiet -dumpbase memcpy.c -version -o /tmp/cca12899.s
GNU C version 1.31 (68k, MIT syntax) compiled by GNU C version 1.31.
gcc: Program cc1 got fatal signal 6.
%