Solid feed treatment with a gas other than air, hydrogen or steam