When a corporation is to be acquired through a taxable sale of shares, a shareholder who is otherwise charitably inclined may be advised to contribute a portion of the corporation's stock to a charity or to a donor-advised fund that will thereafter make charitable contributions.