assemble_alias in varasm.c sets varpool->alias to 1, but fails to set
varpool->extra_name to anything.

This leads to trouble further down the line. In my case, varpool_remove_node
fails with a NULL-pointer exception.

This appears to be target/host independent. So far, the only work around I have
is to disable optimization.

Test case to follow ...


-- 
           Summary: varpool SEGV
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ams at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197

Reply via email to