http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36879 was caused by the fact the variable was not being registered with variable pool but instead calling assemble_variable directly. We should assert that assemble_variable is not called directly.
-- Summary: assemble_variable should assert that the variable there has been registered correctly with varpool Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36882