This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/5729: not dead code elimintation problem



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]