public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/10901] non-local goto's don't work on darwin
Date: Wed, 03 Jun 2009 21:47:00 -0000	[thread overview]
Message-ID: <20090603214725.32750.qmail@sourceware.org> (raw)
In-Reply-To: <bug-10901-6064@http.gcc.gnu.org/bugzilla/>



------- Comment #19 from fxcoudert at gcc dot gnu dot org  2009-06-03 21:47 -------
Still fails on both ppc-darwin and i386-darwin, for 4.3.2, 4.4.0 and current
trunk:

$ cat a.c
extern int puts (const char *);
extern void abort (void);

int main ()
{
  __label__ l1;

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

    bar ();
  }

  foo ();
  abort ();
l1:
  puts ("label l1");
  return 0;
}

$ gcc -O3 a.c && ./a.out 
goto l1
label l1

$ gcc -O0 a.c && ./a.out
goto l1


(It also fails with Apple's gcc.)


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|powerpc-darwin              |darwin
      Known to fail|                            |4.2.0 4.3.2 4.4.0 4.5.0
   Last reconfirmed|2005-12-10 05:32:24         |2009-06-03 21:47:19
               date|                            |
            Summary|non-local goto's don't work |non-local goto's don't work
                   |on powerpc-darwin           |on darwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10901


  parent reply	other threads:[~2009-06-03 21:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-10901-6064@http.gcc.gnu.org/bugzilla/>
2006-10-05  0:58 ` [Bug target/10901] non-local goto's don't work on powerpc-darwin mrs at apple dot com
2008-02-21 18:47 ` fxcoudert at gcc dot gnu dot org
2008-02-21 19:49 ` mrs at apple dot com
2009-06-03 21:47 ` fxcoudert at gcc dot gnu dot org [this message]
2009-06-03 21:51 ` [Bug target/10901] non-local goto's don't work on darwin fxcoudert at gcc dot gnu dot org
2009-06-04  8:02 ` gcc at microbizz dot nl
2010-05-01 22:41 ` howarth at nitro dot med dot uc dot edu
     [not found] <bug-10901-4@http.gcc.gnu.org/bugzilla/>
2012-01-18 15:42 ` iains at gcc dot gnu.org
2012-01-18 18:30 ` mrs at gcc dot gnu.org
2012-01-18 19:20 ` iains at gcc dot gnu.org
2012-01-20 16:30 ` dominiq at lps dot ens.fr
2013-09-28 10:52 ` iains at gcc dot gnu.org
2013-09-29 20:14 ` iains at gcc dot gnu.org
2013-09-29 23:52 ` mrs at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090603214725.32750.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).