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]
Other format: [Raw text]

[Bug target/11292] [3.4 Regression] -fnew-ra causes sibcalling to go wrong.


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;
}


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