This is the mail archive of the gcc-prs@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]

other/10901: non-local goto's (still) don't work on apple-powerpc-darwin


>Number:         10901
>Category:       other
>Synopsis:       non-local goto's (still) don't work on apple-powerpc-darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 21 10:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     gcc@microbizz.nl
>Release:        gcc-3.3
>Organization:
>Environment:
apple-powerpc-darwin
>Description:
extern int puts (const char *);
extern void abort (void);

int main (void)
{
  __label__ l1;

  void foo (void)
  {

    void bar (void)
    {
      puts ("goto l1");
      goto l1;
    }

    bar ();
  }

  foo ();
  abort ();
l1:
  puts ("label l1");
  return 0;
}
>How-To-Repeat:
gcc nonlocalgoto.c -o nonlocalgoto -O3
gcc nonlocalgoto.c -o nonlocalgoto -O0

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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