public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/40115] -O2 and higher causes wrong label address calculation
Date: Wed, 06 May 2015 20:52:00 -0000	[thread overview]
Message-ID: <bug-40115-4-3JeSo63n7t@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-40115-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40115

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> In my case, I use the address for "jumping" but with indirect jumping
> (in the new thread being created). Would you say that this is not supported?

yes that is not support is explicitly says it is not support: "You may not use
this mechanism to jump to code in a different function. ".  You just caused a
jump to a different function.  For these kind of things you should be using
functions and function pointers instead of label addresses.


  parent reply	other threads:[~2015-05-06 20:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-40115-4@http.gcc.gnu.org/bugzilla/>
2015-05-06 20:46 ` perlun at gmail dot com
2015-05-06 20:52 ` pinskia at gcc dot gnu.org [this message]
2015-05-06 20:58 ` perlun at gmail dot com
2024-03-16 17:58 ` pinskia at gcc dot gnu.org
2009-05-12 11:29 [Bug c/40115] New: " sergstesh at yahoo dot com
2009-05-12 14:55 ` [Bug c/40115] " pinskia at gcc dot gnu dot org
2009-05-12 15:43 ` sergstesh at yahoo dot com
2009-05-12 15:58 ` pinskia at gcc dot gnu dot 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=bug-40115-4-3JeSo63n7t@http.gcc.gnu.org/bugzilla/ \
    --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).