US stocks gain ground while bond market signals caution