public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
@ 2024-03-16 17:55 ` pinskia at gcc dot gnu.org
  2024-03-16 17:56 ` pinskia at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:55 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |godmar at gmail dot com

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 114366 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
  2024-03-16 17:55 ` [Bug c++/44298] code addressed only by label with it's address taken is ignored pinskia at gcc dot gnu.org
@ 2024-03-16 17:56 ` pinskia at gcc dot gnu.org
  2024-03-16 17:57 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:56 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.girard5 at gmail dot com

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 55468 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
  2024-03-16 17:55 ` [Bug c++/44298] code addressed only by label with it's address taken is ignored pinskia at gcc dot gnu.org
  2024-03-16 17:56 ` pinskia at gcc dot gnu.org
@ 2024-03-16 17:57 ` pinskia at gcc dot gnu.org
  2024-03-16 17:58 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:57 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blue_3too at hotmail dot com

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 55749 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2024-03-16 17:57 ` pinskia at gcc dot gnu.org
@ 2024-03-16 17:58 ` pinskia at gcc dot gnu.org
  2024-03-16 17:58 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:58 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergstesh at yahoo dot com

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 40115 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2024-03-16 17:58 ` pinskia at gcc dot gnu.org
@ 2024-03-16 17:58 ` pinskia at gcc dot gnu.org
  2024-03-16 17:58 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:58 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |grantrwittmann at gmail dot com

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 112870 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2024-03-16 17:58 ` pinskia at gcc dot gnu.org
@ 2024-03-16 17:58 ` pinskia at gcc dot gnu.org
  2024-03-16 17:59 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:58 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thomas.lynch@reasoningtechn
                   |                            |ology.com

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 96956 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2024-03-16 17:58 ` pinskia at gcc dot gnu.org
@ 2024-03-16 17:59 ` pinskia at gcc dot gnu.org
  2024-03-16 17:59 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:59 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dhowells at redhat dot com

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 77329 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2024-03-16 17:59 ` pinskia at gcc dot gnu.org
@ 2024-03-16 17:59 ` pinskia at gcc dot gnu.org
  2024-03-16 18:06 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:59 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fw at gcc dot gnu.org

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 77951 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2024-03-16 17:59 ` pinskia at gcc dot gnu.org
@ 2024-03-16 18:06 ` pinskia at gcc dot gnu.org
  2024-03-16 18:09 ` pinskia at gcc dot gnu.org
  2024-03-16 18:09 ` pinskia at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 18:06 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Wasserthal at nefkom dot net

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 54529 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2024-03-16 18:06 ` pinskia at gcc dot gnu.org
@ 2024-03-16 18:09 ` pinskia at gcc dot gnu.org
  2024-03-16 18:09 ` pinskia at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 18:09 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeremy at goop dot org

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 29305 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
       [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2024-03-16 18:09 ` pinskia at gcc dot gnu.org
@ 2024-03-16 18:09 ` pinskia at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 18:09 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |inaoka.kazuhiro at renesas dot com

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 28581 has been marked as a duplicate of this bug. ***

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

* [Bug c++/44298] code addressed only by label with it's address taken is ignored
  2010-05-27 18:51 [Bug c++/44298] New: " yuri at tsoft dot com
@ 2010-05-27 18:57 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-05-27 18:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-05-27 18:57 -------
Addresses of labels are only designed to work with computed gotos so if you
don't have a computed goto in the function of mainx, then this will not work.  
See http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Labels-as-Values.html .

One thing which is documented is "You may not use this mechanism to jump to
code in a different function."

It is not about using labels as value extension only when they know what they
are doing but rather using them as they are correctly documented as being
working.  They are only designed for computed gotos.  Any other use will cause
undefined behavior.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2024-03-16 18:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44298-4@http.gcc.gnu.org/bugzilla/>
2024-03-16 17:55 ` [Bug c++/44298] code addressed only by label with it's address taken is ignored pinskia at gcc dot gnu.org
2024-03-16 17:56 ` pinskia at gcc dot gnu.org
2024-03-16 17:57 ` pinskia at gcc dot gnu.org
2024-03-16 17:58 ` pinskia at gcc dot gnu.org
2024-03-16 17:58 ` pinskia at gcc dot gnu.org
2024-03-16 17:58 ` pinskia at gcc dot gnu.org
2024-03-16 17:59 ` pinskia at gcc dot gnu.org
2024-03-16 17:59 ` pinskia at gcc dot gnu.org
2024-03-16 18:06 ` pinskia at gcc dot gnu.org
2024-03-16 18:09 ` pinskia at gcc dot gnu.org
2024-03-16 18:09 ` pinskia at gcc dot gnu.org
2010-05-27 18:51 [Bug c++/44298] New: " yuri at tsoft dot com
2010-05-27 18:57 ` [Bug c++/44298] " pinskia at gcc dot gnu dot org

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).