public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/11292] New: [3.4 Regression] -fnew-ra causes sibcalling to go wrong.
@ 2003-06-23 14:55 pinskia at physics dot uc dot edu
  2003-06-23 14:55 ` [Bug target/11292] " pinskia at physics dot uc dot edu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-23 14:55 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [3.4 Regression] -fnew-ra causes sibcalling to go wrong.
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at physics dot uc dot edu
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-apple-darwin6.6

compile the following with -fnew-ra -foptimize-sibling-calls -O and see that it seg faults:
char * mystrcpy(char *dest, char *source)
{
  int len = strlen(source);
  return memmove(dest, source, len+1);
}

void main()
{
        char temp[10];
        char *t1="AA";
        mystrcpy(temp, t1);
}

Without -fnew-ra it does not seg fault.
This regression was introduced some time between  3.4 (20030602) and today.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-29 14:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-23 14:55 [Bug target/11292] New: [3.4 Regression] -fnew-ra causes sibcalling to go wrong pinskia at physics dot uc dot edu
2003-06-23 14:55 ` [Bug target/11292] " pinskia at physics dot uc dot edu
2003-07-05 19:48 ` dhazeghi at yahoo dot com
2003-07-15 14:03 ` pinskia at physics dot uc dot edu
2003-07-29 14:29 ` pinskia at physics dot uc dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).