Nothing will really happen to the earth per say because the sun will never be able to become something like a black hole, but if it does blow up it will more than likely kill all the inhabitants of earth and of other planets that may (or may not) produce life in the next couple of billion years.