public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/5729: not dead code elimintation problem
@ 2002-02-19  8:16 jeanphilippe.fassino
  0 siblings, 0 replies; 2+ messages in thread
From: jeanphilippe.fassino @ 2002-02-19  8:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5729
>Category:       c
>Synopsis:       not dead code elimintation problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 19 08:16:04 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     jeanphilippe.fassino@rd.francetelecom.com
>Release:        gcc version 3.0.4 20020209 (Debian prerelease)
>Organization:
>Environment:
Linux PowerPC
>Description:
This code:

static void* table __attribute__ ((section ("bar")));
void* foo(void) {
  table = &&catch;
  return 0;
 catch:
  return 1;
}

is not well generated by gcc which suppress dead code, which 
is not dead code because reference on it has been create
and could be used elsewhere (during exception for example).
Is there are a solution to solve this or does it is 
a gcc problem ???

Thank
>How-To-Repeat:

>Fix:

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


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

* Re: c/5729: not dead code elimintation problem
@ 2002-04-23  2:21 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-04-23  2:21 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jeanphilippe.fassino, nobody

Synopsis: not dead code elimintation problem

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Tue Apr 23 02:21:51 2002
State-Changed-Why:
    Not a bug.  You may not branch to a label from outside the
    function in which the label appears.  See http://gcc.gnu.org/onlinedocs/gcc-3.0/gcc_5.html#SEC69

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5729


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

end of thread, other threads:[~2002-04-23  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-19  8:16 c/5729: not dead code elimintation problem jeanphilippe.fassino
2002-04-23  2:21 rth

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