This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/12039] New: [tree-ssa] [unit-at-a-time] does not mark static variable as used.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2003 03:25:16 -0000
- Subject: [Bug optimization/12039] New: [tree-ssa] [unit-at-a-time] does not mark static variable as used.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12039
Summary: [tree-ssa] [unit-at-a-time] does not mark static
variable as used.
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: wrong-code
Severity: critical
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
Compile the following code (derived from GCC) with -O2 -funit-at-a-time:
static void record_insn_name(int code)
{
static int last_real_code = 0;
last_real_code = code;
}
int main(void)
{
record_insn_name(4);
return 0;
}