SC upholds death penalty for mentally-ill man