Thermodynamic and structural anomalies of the Gaussian-core model in one dimension