This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/5729: not dead code elimintation problem
- From: jeanphilippe dot fassino at rd dot francetelecom dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Feb 2002 16:06:44 -0000
- Subject: c/5729: not dead code elimintation problem
- Reply-to: jeanphilippe dot fassino at rd dot francetelecom dot com
>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: