[Bug optimization/12039] New: [tree-ssa] [unit-at-a-time] does not mark static variable as used.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Aug 23 03:25:00 GMT 2003


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;
}



More information about the Gcc-bugs mailing list