From glockmeister.com:
Barrel ------------Gun/s
G17.....................G17
G17L...................G17,17L,34
G19.....................G19,26
G20.....................G20
G21.....................G21
G22.....................G22,31
G23.....................G23,27,32,33
G24.....................G22,24,31,35
G26.....................G26
G27.....................G27,G33
G29.....................G29
G30.....................G30
G31.....................G22,31
G32.....................G23,27,32,33
G33.....................G27,33
G34.....................G17,34
G35.....................G22,31,35