Sequences that surround the stop codons of upstream open reading frames in GCN4 mRNA determine their distinct functions in translational control.