EGCS ARM bug involving builtin strcpy
Pat Beirne
patb@corelcomputer.com
Mon Nov 2 07:27:00 GMT 1998
Richard,
Thank you. I confirm that the patch you sent me does fix this bug.
I was (somehow(??)) using egcs from Aug 17, right before said
patch was applied. Sorry to have disturbed you all.
Pat
CCC
Richard Earnshaw wrote:
> This appears to have been fixed in the trunk of the compiler -- I
> think it
> was probably this patch.
>
> Richard
>
> > G'day.
> >
> > Severity: minor
> > Architecuture: ARM
> > does not occur on the x86 compiler
> > Affects: egcs-1.1, gcc-2.8.0, gcc-2.8.1
> > this bug is NOT present in gcc-2.7.x
> > Reported by: Pat Beirne
> > patb@corelcomputer.com
> >
> > I would be happy to develop a patch for this problem. The reason
> > for this email is to enquire if anyone has fixed it already, or is
> > aware of it. Just let me know if I should spend time on this.
> >
> > Pat
> >
> >
> > The following code produces faulty code:
> >
> > #include <time.h>
> > #include <strings.h>
> > extern char* buf2;
> > main(argc,argv)const char*const argv[];
> > {
> > time_t t;
> > t=time((time_t*)0);strcat(strcpy(buf2," "),ctime(&t));
> > }
> >
>
> Tue Aug 18 10:33:30 1998 Jeffrey A Law (law@cygnus.com)
>
> * expr.c (emit_block_move): Do not call memcpy as a libcall
> instead build up a CALL_EXPR and call it like any other
> function.
> (clear_storage): Similarly for memset.
>
>
> -------------------------------------------------------------------------------------------------------------
>
>
>
>
More information about the Gcc-bugs
mailing list