[Bug target/11292] [3.4 Regression] -fnew-ra causes sibcalling to go wrong.
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Mon Jun 23 14:55:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11292
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-23 14:46 -------
I sent the wrong example (here is the right one where it does not sib call in main):
char * mystrcpy(char *dest, char *source)
{
int len = strlen(source);
return memmove(dest, source, len+1);
}
int main()
{
char temp[10];
char *t1="AA";
mystrcpy(temp, t1);
return 0;
}
More information about the Gcc-bugs
mailing list