Rescuers had worked frantically through the night, pulling bodies from homes, schools, factories and hospitals demolished by the quake, which rolled from Sichuan across much of China.