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


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

Re: gcc-2.95 (19990718) and IRIX 6.2 - conflicting types for built-in function...



OK, i guess i forgot to specify the abi. The warning goes away with
-mabi=n32. The default abi used with -mips3 is 64.


   (mk)


On Fri, Jul 30, 1999 at 05:17:19AM +0200, Matthias Kurz wrote:
> 
> Hi.
> 
> If i compile the following program
> 
> #include <strings.h>
> 
> int main(int argc, char **argv)
> {
>   int buffer[1024], buffer1[1024];
> 
>   memcpy(buffer, buffer1, 500);
> 
> }
> 
> with "gcc -mips3 -mr4000", i get the following warnings:
> 
> In file included from /usr/include/sys/select.h:70,
>                  from /usr/include/sys/bsd_types.h:44,
>                  from /usr/include/sys/types.h:335,
>                  from /usr/include/strings.h:15,
>                  from tst.c:2:
> /usr/include/string.h:57: warning: conflicting types for built-in function `memcpy'
> /usr/include/string.h:64: warning: conflicting types for built-in function `memcmp'
> /usr/include/string.h:79: warning: conflicting types for built-in function `memset'
> /usr/include/string.h:81: warning: conflicting types for built-in function `strlen'
> 
> There are no warnings, if i compile without "-mips3 -mr4000".


Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47

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