BUG: remove static from function to avoid gcc-4.1 miscompile
BUG: remove static from function to avoid gcc-4.1 miscompile

gcc 4.1.2 (e.g. in red hat 5) will miscompile the function when
inlining. Without static it will not inline solving the issue.
Closes gh-5163

stuarteberg/numpy,cjermain/numpy,seberg/numpy,numpy/numpy,rajathkumarmp/numpy,MSeifert04/numpy,skymanaditya1/numpy,njase/numpy,felipebetancur/numpy,shoyer/numpy,charris/numpy,chiffa/numpy,gmcastil/numpy,andsor/numpy,githubmlai/numpy,ajdawson/numpy,yiakwy/numpy,Eric89GXL/numpy,mortada/numpy,anntzer/numpy,SiccarPoint/numpy,bringingheavendown/numpy,dato-code/numpy,yiakwy/numpy,ajdawson/numpy,dimasad/numpy,Anwesh43/numpy,tdsmith/numpy,njase/numpy,has2k1/numpy,BMJHayward/numpy,githubmlai/numpy,simongibbons/numpy,dato-code/numpy,simongibbons/numpy,empeeu/numpy,drasmuss/numpy,MSeifert04/numpy,tdsmith/numpy,dch312/numpy,kiwifb/numpy,tynn/numpy,Yusa95/numpy,has2k1/numpy,pbrod/numpy,dwillmer/numpy,mingwpy/numpy,dwillmer/numpy,GrimDerp/numpy,SunghanKim/numpy,Srisai85/numpy,ChristopherHogan/numpy,WarrenWeckesser/numpy,GaZ3ll3/numpy,sinhrks/numpy,jankoslavic/numpy,Linkid/numpy,trankmichael/numpy,grlee77/numpy,rajathkumarmp/numpy,cowlicks/numpy,jakirkham/numpy,dato-code/numpy,MSeifert04/numpy,rhythmsosad/numpy,mindw/numpy,yiakwy/numpy,simongibbons/numpy,rudimeier/numpy,bertrand-l/numpy,WillieMaddox/numpy,mattip/numpy,AustereCuriosity/numpy,kirillzhuravlev/numpy,sigma-random/numpy,pyparallel/numpy,ekalosak/numpy,drasmuss/numpy,ContinuumIO/numpy,nbeaver/numpy,dato-code/numpy,argriffing/numpy,maniteja123/numpy,jschueller/numpy,behzadnouri/numpy,bringingheavendown/numpy,ChanderG/numpy,sonnyhu/numpy,MichaelAquilina/numpy,stuarteberg/numpy,empeeu/numpy,jakirkham/numpy,andsor/numpy,ahaldane/numpy,abalkin/numpy,endolith/numpy,Yusa95/numpy,Srisai85/numpy,GrimDerp/numpy,ChanderG/numpy,ChanderG/numpy,MaPePeR/numpy,shoyer/numpy,shoyer/numpy,madphysicist/numpy,charris/numpy,KaelChen/numpy,pizzathief/numpy,jonathanunderwood/numpy,SunghanKim/numpy,jschueller/numpy,argriffing/numpy,argriffing/numpy,mindw/numpy,kiwifb/numpy,moreati/numpy,mathdd/numpy,trankmichael/numpy,musically-ut/numpy,abalkin/numpy,jorisvandenbossche/numpy,madphysicist/numpy,pbrod/numpy,mattip/numpy,rherault-insa/numpy,CMartelLML/numpy,SiccarPoint/numpy,chiffa/numpy,MSeifert04/numpy,mingwpy/numpy,bertrand-l/numpy,WarrenWeckesser/numpy,cjermain/numpy,sigma-random/numpy,mingwpy/numpy,trankmichael/numpy,charris/numpy,CMartelLML/numpy,pizzathief/numpy,jankoslavic/numpy,nbeaver/numpy,MichaelAquilina/numpy,MaPePeR/numpy,felipebetancur/numpy,ajdawson/numpy,groutr/numpy,Anwesh43/numpy,WillieMaddox/numpy,andsor/numpy,gmcastil/numpy,rmcgibbo/numpy,CMartelLML/numpy,MichaelAquilina/numpy,utke1/numpy,dimasad/numpy,sigma-random/numpy,mattip/numpy,solarjoe/numpy,maniteja123/numpy,sinhrks/numpy,rudimeier/numpy,cowlicks/numpy,jankoslavic/numpy,sinhrks/numpy,abalkin/numpy,rhythmsosad/numpy,b-carter/numpy,SiccarPoint/numpy,brandon-rhodes/numpy,cowlicks/numpy,pbrod/numpy,mathdd/numpy,felipebetancur/numpy,musically-ut/numpy,naritta/numpy,pyparallel/numpy,shoyer/numpy,b-carter/numpy,jschueller/numpy,felipebetancur/numpy,mingwpy/numpy,maniteja123/numpy,grlee77/numpy,chatcannon/numpy,bmorris3/numpy,ahaldane/numpy,has2k1/numpy,mhvk/numpy,nbeaver/numpy,chiffa/numpy,jankoslavic/numpy,tacaswell/numpy,pizzathief/numpy,empeeu/numpy,nguyentu1602/numpy,ViralLeadership/numpy,sonnyhu/numpy,gmcastil/numpy,moreati/numpy,githubmlai/numpy,SiccarPoint/numpy,mindw/numpy,SunghanKim/numpy,rudimeier/numpy,madphysicist/numpy,CMartelLML/numpy,pdebuyl/numpy,tynn/numpy,cjermain/numpy,solarjoe/numpy,mhvk/numpy,dwillmer/numpy,ddasilva/numpy,rgommers/numpy,jorisvandenbossche/numpy,ddasilva/numpy,Dapid/numpy,KaelChen/numpy,WillieMaddox/numpy,rajathkumarmp/numpy,grlee77/numpy,mathdd/numpy,chatcannon/numpy,larsmans/numpy,jakirkham/numpy,rherault-insa/numpy,hainm/numpy,ViralLeadership/numpy,ViralLeadership/numpy,groutr/numpy,tacaswell/numpy,nguyentu1602/numpy,Linkid/numpy,ssanderson/numpy,rhythmsosad/numpy,WarrenWeckesser/numpy,simongibbons/numpy,dch312/numpy,gfyoung/numpy,ahaldane/numpy,BabeNovelty/numpy,Eric89GXL/numpy,musically-ut/numpy,GrimDerp/numpy,has2k1/numpy,shoyer/numpy,mattip/numpy,Eric89GXL/numpy,jakirkham/numpy,njase/numpy,mhvk/numpy,mortada/numpy,madphysicist/numpy,anntzer/numpy,joferkington/numpy,jonathanunderwood/numpy,nguyentu1602/numpy,AustereCuriosity/numpy,trankmichael/numpy,Yusa95/numpy,mortada/numpy,charris/numpy,hainm/numpy,naritta/numpy,pbrod/numpy,hainm/numpy,mhvk/numpy,githubmlai/numpy,mathdd/numpy,numpy/numpy,rajathkumarmp/numpy,sigma-random/numpy,tacaswell/numpy,simongibbons/numpy,KaelChen/numpy,rgommers/numpy,chatcannon/numpy,musically-ut/numpy,BabeNovelty/numpy,tdsmith/numpy,stuarteberg/numpy,numpy/numpy,Anwesh43/numpy,dimasad/numpy,pdebuyl/numpy,larsmans/numpy,seberg/numpy,yiakwy/numpy,bmorris3/numpy,cjermain/numpy,ajdawson/numpy,mwiebe/numpy,ContinuumIO/numpy,skwbc/numpy,larsmans/numpy,jorisvandenbossche/numpy,ESSS/numpy,gfyoung/numpy,GaZ3ll3/numpy,skwbc/numpy,numpy/numpy,dwillmer/numpy,BMJHayward/numpy,BabeNovelty/numpy,Anwesh43/numpy,pyparallel/numpy,jorisvandenbossche/numpy,grlee77/numpy,Srisai85/numpy,GaZ3ll3/numpy,kirillzhuravlev/numpy,skymanaditya1/numpy,bmorris3/numpy,groutr/numpy,rgommers/numpy,Yusa95/numpy,BabeNovelty/numpy,GrimDerp/numpy,rgommers/numpy,anntzer/numpy,ekalosak/numpy,ahaldane/numpy,andsor/numpy,brandon-rhodes/numpy,BMJHayward/numpy,nguyentu1602/numpy,larsmans/numpy,b-carter/numpy,MaPePeR/numpy,ekalosak/numpy,madphysicist/numpy,Linkid/numpy,MaPePeR/numpy,naritta/numpy,mhvk/numpy,sonnyhu/numpy,AustereCuriosity/numpy,dimasad/numpy,grlee77/numpy,mwiebe/numpy,Dapid/numpy,endolith/numpy,anntzer/numpy,Srisai85/numpy,skymanaditya1/numpy,naritta/numpy,sonnyhu/numpy,pdebuyl/numpy,endolith/numpy,rmcgibbo/numpy,ChanderG/numpy,MichaelAquilina/numpy,Linkid/numpy,mortada/numpy,pdebuyl/numpy,ChristopherHogan/numpy,rherault-insa/numpy,leifdenby/numpy,seberg/numpy,jschueller/numpy,jorisvandenbossche/numpy,pizzathief/numpy,joferkington/numpy,rhythmsosad/numpy,stuarteberg/numpy,ekalosak/numpy,MSeifert04/numpy,empeeu/numpy,tdsmith/numpy,pizzathief/numpy,GaZ3ll3/numpy,ddasilva/numpy,rudimeier/numpy,ssanderson/numpy,cowlicks/numpy,dch312/numpy,skwbc/numpy,rmcgibbo/numpy,BMJHayward/numpy,ssanderson/numpy,bmorris3/numpy,ChristopherHogan/numpy,bertrand-l/numpy,brandon-rhodes/numpy,behzadnouri/numpy,sinhrks/numpy,WarrenWeckesser/numpy,ahaldane/numpy,dch312/numpy,tynn/numpy,utke1/numpy,solarjoe/numpy,kiwifb/numpy,hainm/numpy,endolith/numpy,ESSS/numpy,ContinuumIO/numpy,KaelChen/numpy,joferkington/numpy,WarrenWeckesser/numpy,brandon-rhodes/numpy,drasmuss/numpy,SunghanKim/numpy,joferkington/numpy,jonathanunderwood/numpy,ESSS/numpy,mwiebe/numpy,utke1/numpy,rmcgibbo/numpy,behzadnouri/numpy,kirillzhuravlev/numpy,leifdenby/numpy,Dapid/numpy,leifdenby/numpy,mindw/numpy,pbrod/numpy,gfyoung/numpy,Eric89GXL/numpy,jakirkham/numpy,ChristopherHogan/numpy,skymanaditya1/numpy,moreati/numpy,seberg/numpy,kirillzhuravlev/numpy,bringingheavendown/numpy