ChangeLog-2009 1.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884
  1. 2009-12-31 Jakub Jelinek <jakub@redhat.com>
  2. * tree-dump.c (dump_options): Don't set TDF_NOUID for all.
  3. 2009-12-31 Dave Korn <dave.korn.cygwin@gmail.com>
  4. Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
  5. PR target/41605
  6. * config/darwin.h (LINK_COMMAND_SPEC): Resolve fopenmp specifically
  7. for target.
  8. (LINK_SPEC): Replace dynamic libraries by static equivalents where
  9. necessary.
  10. * config/darwin9.h (LINK_COMMAND_SPEC): Resolve fopenmp specifically
  11. for target.
  12. 2009-12-30 Dave Korn <dave.korn.cygwin@gmail.com>
  13. PR lto/42531
  14. * lto-streamer-out.c (produce_asm): Skip any leading asterisk when
  15. using DECL_ASSEMBLER_NAME to generate a section name.
  16. (copy_function): Likewise.
  17. 2009-12-30 Andreas Schwab <schwab@linux-m68k.org>
  18. PR target/42516
  19. * config/m68k/m68k.md (rotlsi_16): New insn.
  20. 2009-12-30 Joseph Myers <joseph@codesourcery.com>
  21. PR c/42439
  22. * c-decl.c (check_bitfield_type_and_width): Only pedwarn if
  23. pedantic for bit-field width not an integer constant expression
  24. but folding to one.
  25. 2009-12-30 Ira Rosen <irar@il.ibm.com>
  26. PR tree-optimization/41956
  27. * tree-vect-slp.c (vect_supported_load_permutation_p): Add check that
  28. the load indices differ.
  29. 2009-12-30 Uros Bizjak <ubizjak@gmail.com>
  30. PR target/42549
  31. * config/i386/mmx.md (*mmx_subv2sf3): Fix insn operand number for
  32. alternative 1.
  33. 2009-12-30 Robert Millan <rmh.gcc@aybabtu.com>
  34. PR other/42537
  35. * errors.c: Fix typo in comment.
  36. * graphite-sese-to-poly.c: Likewise.
  37. * profile.c (is_inconsistent): Fix typo in string.
  38. 2009-12-29 Ian Lance Taylor <iant@google.com>
  39. PR middle-end/42099
  40. * expmed.c (expand_divmod): Don't shift HOST_WIDE_INT value more
  41. than HOST_BITS_PER_WIDE_INT.
  42. 2009-12-29 H.J. Lu <hongjiu.lu@intel.com>
  43. * config/i386/i386.c (ix86_expand_int_vcond): Reformat.
  44. 2009-12-29 Dave Korn <dave.korn.cygwin@gmail.com>
  45. Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
  46. PR objective-c++/41595
  47. * config/darwin.c (darwin_label_is_anonymous_local_objc_name):
  48. New function to recognize objective c/c++ internal symbols,
  49. including mangled ones.
  50. * config/darwin.h (ASM_OUTPUT_LABELREF): Use
  51. darwin_label_is_anonymous_local_objc_name to detect both
  52. mangled and clear ObjC internal symbols.
  53. 2009-12-28 H.J. Lu <hongjiu.lu@intel.com>
  54. PR middle-end/41344
  55. * omp-low.c (diagnose_sb_2): Handle GIMPLE_COND.
  56. 2009-12-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
  57. PR target/42457
  58. * config/avr/avr.c (avr_extra_arch_macro): Remove static.
  59. (avr_cpu_cpp_builtins): Remove.
  60. * config/avr/avr.h (avr_extra_arch_macro): Add prototype.
  61. * config/avr/avr-c.c: New File.
  62. (avr_cpu_cpp_builtins) : Add.
  63. * config/avr/t-avr: Add make information for avr-c.
  64. * config.gcc (avr-*-*): Include avr-c.o as c and cpp object.
  65. 2009-12-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
  66. PR target/35013, 27192
  67. * config/avr/avr.c (print_operand_address): Print correct program
  68. memory address.
  69. Add warning for large device offset addresses.
  70. (avr_assemble_integer): Ditto.
  71. (print_operand): Add warnings for incorrect addressing.
  72. (out_movqi_r_mr): Tag assembler with new address codes.
  73. (out_movhi_r_mr): Ditto.
  74. (out_movsi_r_mr): Ditto.
  75. (out_movqi_mr_r): Ditto.
  76. (out_movhi_mr_r): Ditto.
  77. (out_movsi_mr_r): Ditto.
  78. * config/avr/predicates.md (text_segment_operand): New predicate.
  79. * config/avr/avr.md (jump): Tag assembler with new address codes.
  80. (call_insn): Ditto.
  81. (call_value_insn): Ditto.
  82. (*tablejump_lib): Ditto.
  83. (*cbi): Ditto.
  84. (*sbi): Ditto.
  85. (indirect_jump): New define_expand.
  86. (jcindirect_jump): New pattern for constant expression jump.
  87. (njcindirect_jump): Renamed old indirect_jump.
  88. 2009-12-24 Steven Bosscher <steven@gcc.gnu.org>
  89. * store-motion.c (build_store_vectors): Clear regs_set_in_block at
  90. the start of a loop over basic blocks.
  91. 2009-12-24 Julian Brown <julian@codesourcery.com>
  92. Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  93. PR target/40887
  94. * config/arm/arm.c (output_call_mem): Remove armv5 support.
  95. * config/arm/arm.md (*call_mem): Disable for armv5. Add note.
  96. (*call_value_mem): Likewise.
  97. 2009-12-23 Jakub Jelinek <jakub@redhat.com>
  98. PR rtl-optimization/42475
  99. * combine.c (make_compound_operation) <case SUBREG>: Use mode of
  100. SUBREG_REG (x) instead of tem's mode.
  101. 2009-12-23 Jakub Jelinek <jakub@redhat.com>
  102. Cary Coutant <ccoutant@google.com>
  103. PR debug/42454
  104. * dwarf2out.c (add_ranges_by_labels): Conditionally Add DW_AT_ranges
  105. attribute.
  106. (dwarf2out_finish): Change calls to add_ranges_by_labels.
  107. 2009-12-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  108. PR target/42093
  109. * config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Fix macro usage
  110. to TARGET_THUMB1.
  111. (CASE_VECTOR_SHORTEN_MODE): Allow signed offsets
  112. only for TARGET_THUMB1.
  113. 2009-12-23 Ramana Radhakrishnan <ramrad01@arm.com>
  114. PR target/40670
  115. * config/arm/arm.md: Split for Thumb1 as well.
  116. 2009-12-22 Cary Coutant <ccoutant@google.com>
  117. PR debug/42454
  118. * dwarf2out.c (dwarf2out_finish): Don't output range for .text
  119. section unless .text section was used. Likewise for cold.
  120. 2009-12-22 Brian Hackett <bhackett1024@gmail.com>
  121. * doc/plugins.texi: Rename pre-genericize event.
  122. 2009-12-22 Paolo Carlini <paolo.carlini@oracle.com>
  123. PR driver/42463
  124. * params.def ([PARAM_PREDICTABLE_BRANCH_OUTCOME]): Fix typo in
  125. help string.
  126. * doc/invoke.texi: Fix typo.
  127. 2009-12-22 Paul Brook <paul@codesourcery.com>
  128. * doc/tm.texi (ARG_POINTER_CFA_OFFSET): Document new default.
  129. * defaults.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
  130. * config/spu/spu.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
  131. 2009-12-21 Brian Hackett <bhackett1024@gmail.com>
  132. * plugin.def: Rename pre-genericize event.
  133. * plugin.c (register_callback, invoke_plugin_callbacks): Same.
  134. * c-decl.c (finish_function): Invoke callbacks on above event.
  135. 2009-12-21 Jakub Jelinek <jakub@redhat.com>
  136. PR rtl-optimization/42429
  137. * reload.c (find_reloads_subreg_address): When adjusting mode of
  138. MEM, update also MEM_SIZE if it is set.
  139. 2009-12-21 H.J. Lu <hongjiu.lu@intel.com>
  140. PR bootstrap/42345
  141. * acinclude.m4 (gcc_GAS_FLAGS): New.
  142. (gcc_GAS_CHECK_FEATURE): Use gcc_GAS_FLAGS.
  143. * configure: Regenerated.
  144. 2009-12-20 Michael Matz <matz@suse.de>
  145. PR tree-optimization/42027
  146. * cfgexpand.c (expand_gimple_cond): Use jumpy sequence for &, &&, |
  147. and || if jumps are cheap.
  148. 2009-12-19 Richard Guenther <rguenther@suse.de>
  149. PR lto/42401
  150. * lto-streamer-out.c (tree_is_indexable): Local statics are indexable.
  151. (lto_output_tree_ref): Adjust assert.
  152. 2009-12-19 Richard Guenther <rguenther@suse.de>
  153. PR tree-optimization/42108
  154. * tree-ssa-sccvn.c (last_vuse_ptr): New variable.
  155. (vn_reference_lookup_2): Update last seen VUSE.
  156. (vn_reference_lookup_3): Avoid updating last seen VUSE after
  157. translating.
  158. (visit_reference_op_load): Use last seen VUSE from the first
  159. lookup when entering into the table.
  160. 2009-12-19 Joern Rennecke <amylaar@spamcop.net>
  161. * Makefile.in (PLUGIN_HEADERS): Add more headers.
  162. * tree-pass.h (GCC_PASS_LISTS): Define.
  163. (PASS_LIST_NO_all_lowering_passes): New enumeration value.
  164. (PASS_LIST_NO_all_small_ipa_passes): Likewise.
  165. (PASS_LIST_NO_all_regular_ipa_passes): Likewise.
  166. (PASS_LIST_NO_all_lto_gen_passes): Likewise.
  167. (PASS_LIST_NO_all_passes): Likewise.
  168. (PASS_LIST_NUM): Likewise.
  169. (gcc_pass_lists): Declare.
  170. * passes.c (gcc_pass_lists): Define.
  171. 2009-12-18 Richard Guenther <rguenther@suse.de>
  172. * tree-ssa-sccvn.c (copy_nary): New function.
  173. (copy_phis): Likewise.
  174. (copy_references): Likewise.
  175. (process_scc): Avoid last iteration by copying the
  176. optimistic table to the valid table.
  177. 2009-12-17 Jakub Jelinek <jakub@redhat.com>
  178. * dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs
  179. use DW_OP_addr+DW_OP_stack_value instead of DW_OP_implicit_value.
  180. (add_const_value_attribute): For CONST_STRING, SYMBOL_REFs and
  181. LABEL_REFs use DW_OP_addr+DW_OP_stack_value DW_AT_location instead of
  182. DW_AT_const_value.
  183. 2009-12-17 Alexandre Oliva <aoliva@redhat.com>
  184. PR debug/41679
  185. * var-tracking.c (count_uses): Count MO_VAL_USE of original
  186. MO_VAL_SET value for COND_EXEC.
  187. (add_stores): Handle conditional stores.
  188. PR debug/41679
  189. * var-tracking.c (use_type): Remove indirection from loc.
  190. (count_uses): Dereference incoming loc early.
  191. (add_uses): Dereference incoming loc early.
  192. PR debug/41679
  193. * var-tracking.c (add_stores): Avoid value mode mismatch for
  194. promoted declarations.
  195. 2009-12-17 Jakub Jelinek <jakub@redhat.com>
  196. PR c++/42386
  197. * ipa.c (function_and_variable_visibility): Clear same_comdat_group
  198. links of DECL_EXTERNAL nodes.
  199. 2009-12-17 Sandra Loosemore <sandra@codesourcery.com>
  200. * doc/rtl.texi (Vector Operations): Clarify vec_select result mode.
  201. 2009-12-17 Julian Brown <julian@codesourcery.com>
  202. * config/arm/bpabi-v6m.S (test_div_by_zero): New macro.
  203. (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
  204. * config/arm/bpabi.S (test_div_by_zero): New macro.
  205. (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
  206. * config/arm/lib1funcs.asm (ARM_LDIV0): Tail-call int div-by-zero
  207. handler for EABI. Add signed/unsigned argument, pass correct value
  208. to that handler.
  209. (THUMB_LDIV0): Same, for Thumb.
  210. (DIV_FUNC_END): Add signed argument.
  211. (WEAK): New macro (for EABI).
  212. (__udivsi3, __umodsi3): Add unsigned argument to DIV_FUNC_END. For
  213. __udivsi3, add entry point which skips division-by-zero test.
  214. (__divsi3, __modsi3): Add signed argument to DIV_FUNC_END.
  215. (__aeabi_uidivmod, __aeabi_idivmod): Check for division by zero.
  216. Call __udivsi3 or __divsi3 via entry points which skip
  217. division-by-zero tests.
  218. (__div0): Rename to __aeabi_idiv0, __aeabi_ldiv0 for EABI, and
  219. declare those names weak.
  220. 2009-12-17 Richard Guenther <rguenther@suse.de>
  221. PR middle-end/42397
  222. * builtins.c (get_object_alignment): Properly deal with
  223. a CONST_DECL base.
  224. * expr.c (emit_block_move_hints): Assert the alignment makes sense.
  225. 2009-12-17 Uros Bizjak <ubizjak@gmail.com>
  226. PR target/32280
  227. * config/i386/i386-modes.def (V1TI): New vector mode.
  228. * config/i386/i386.h (VALID_SSE_REG_MODE): Add V1TImode.
  229. (SSE_REG_MODE_P): Ditto.
  230. * config/i386/sse.md (SSEMODE16): New mode iterator.
  231. (AVXMODE16): Ditto.
  232. (avxvecmode): Handle V1TI mode.
  233. (*avx_mov<mode>_internal): Use AVXMODE16 instead of AVXMODE.
  234. (mov<mode>): Use SSEMODE16 instead of SSEMODE.
  235. (*mov<mode>_internal): Ditto.
  236. (push<mode>1): Ditto.
  237. (movmisalign<mode>): Ditto.
  238. (sse2_ashlv1ti): Rename from sse2_ashlti.
  239. (sse2_lshrv1ti): Rename from sse2_lshrti.
  240. (*avx_ashlv1ti): Rename from *avx_ashlti and move from i386.md.
  241. (*avx_lshrv1ti): Rename from *avx_lshrti and move from i386.md.
  242. (vec_shl_<mode>): Convert operands to V1TImode and use V1TI shift.
  243. (vec_shr_<mode>): Ditto.
  244. (*sse2_mulv4si3): Update for renamed sse2_ashlv1ti3.
  245. (udot_prodv4si): Ditto.
  246. * config/i386/i386.c (classify_argument): Handle V1TImode.
  247. (function_arg_advance_32): Ditto.
  248. (function_arg_32): Ditto.
  249. (ix86_expand_sse4_unpack): Convert operands to V1TImode and update
  250. for renamed gen_sse2_lshrv1ti3.
  251. (ix86_expand_args_builtin) <V2DI_FTYPE_V2DI_INT_CONVERT>: Set rmode
  252. to V1TImode.
  253. (struct builtin_description) <__builtin_ia32_pslldqi128>: Update
  254. for renamed sse2_ashlv1ti3.
  255. <__builtin_ia32_psrldqi128>: Update for renamed sse2_lshrv1ti3.
  256. Revert:
  257. 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
  258. PR target/32280
  259. * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
  260. * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
  261. 2009-12-17 Richard Earnshaw <rearnsha@arm.com>
  262. PR target/42372
  263. * arm.md (pic_add_dot_plus_eight): Change output constraint from
  264. update to write.
  265. 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
  266. * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
  267. Update build_indirect_ref calls.
  268. 2009-12-17 Uros Bizjak <ubizjak@gmail.com>
  269. * config/i386/sync.md (IMODE): Remove mode iterator.
  270. (modesuffix): Remove mode attribute.
  271. (modeconstraint): Ditto.
  272. (immconstraint): Ditto.
  273. (*sync_compare_and_swap<mode>): Use SWI mode iterator instead of
  274. IMODE mode iterator, imodesuffix mode attribute instead of modesuffix,
  275. <r> mode attribute instead of modeconstraint and <i> mode attribute
  276. instead of immconstraint.
  277. (sync_double_compare_and_swap<mode>): Ditto.
  278. (sync_old_add<mode>): Ditto.
  279. (sync_lock_test_and_set<mode>): Ditto.
  280. (sync_add<mode>): Ditto.
  281. (sync_sub<mode>): Ditto.
  282. (sync_and<mode>): Ditto.
  283. (sync_ior<mode>): Ditto.
  284. (sync_xor<mode>): Ditto.
  285. (sync_<code><mode>): Macroize insn pattern from
  286. sync_{and,ior,xor}<mode> using any_logic code iterator.
  287. 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
  288. PR c/40885
  289. * c-common.h (ref_operator): New type.
  290. (build_indirect_ref): Adjust prototype with new argument.
  291. * c-typeck.c (build_indirect_ref): Accept ref_operator as argument and
  292. emit the diagnostics for easy translation.
  293. (build_array_ref): Update calls to build_indirect_ref.
  294. * c-omp.c (c_finish_omp_atomic): Likewise.
  295. * c-parser.c (c_parser_unary_expression,
  296. c_parser_postfix_expression_after_primary): Likewise.
  297. 2009-12-16 Richard Guenther <rguenther@suse.de>
  298. PR lto/42392
  299. * langhooks.c (lhd_begin_section): Make sure to switch back
  300. to the text section, not some random one.
  301. 2009-12-16 Jakub Jelinek <jakub@redhat.com>
  302. * tree-chrec.c (chrec_convert_1): Only fold (T2)(t +- x) to
  303. (T2)t +- (T2)x if only integer types are involved.
  304. 2009-12-16 Ben Elliston <bje@au.ibm.com>
  305. * tree-data-ref.h (dot_rdg): Remove prototype.
  306. * tree-data-ref.c (dog_rdg_1, dot_rdg): Remove.
  307. 2009-12-16 Kazu Hirata <kazu@codesourcery.com>
  308. * doc/invoke.texi, doc/options.texi, doc/plugins.texi,
  309. doc/tm.texi: Fix typos.
  310. 2009-12-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  311. * doc/extend.texi (Function Attributes, Extended Asm):
  312. Replace TABs with spaces.
  313. * doc/md.texi (Standard Names): Likewise.
  314. * doc/plugins.texi (Plugins): Likewise.
  315. * doc/c-tree.texi (Expression trees): Use @itemx for all but
  316. the first item for merged items.
  317. * doc/extend.texi (Variable Attributes): Likewise.
  318. * doc/install.texi (Configuration): Likewise.
  319. * doc/invoke.texi (RS/6000 and PowerPC Options, RX Options):
  320. Likewise.
  321. 2009-12-15 Richard Guenther <rguenther@suse.de>
  322. * tree.c (free_lang_data_in_binfo): Do not free BINFO_OFFSET
  323. and BINFO_VPTR_FIELD.
  324. (free_lang_data_in_type): Do not free TYPE_STUB_DECL if we
  325. generate debug information.
  326. (free_lang_data_in_decl): Do not free DECL_SIZE_UNIT,
  327. DECL_SIZE, DECL_FIELD_OFFSET and DECL_FCONTEXT.
  328. (free_lang_data): Do not disable debuginfo.
  329. * lto-streamer-out.c (write_symbol_vec): Deal with
  330. non-constant DECL_SIZE.
  331. (pack_ts_base_value_fields): Write types with false
  332. TREE_ASM_WRITTEN.
  333. (lto_output_ts_type_tree_pointers): Stream TYPE_STUB_DECL.
  334. * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Stream
  335. TYPE_STUB_DECL.
  336. * dwarf2out.c (add_pure_or_virtual_attribute): Check for
  337. DECL_CONTEXT.
  338. (gen_type_die_for_member): Test for TYPE_STUB_DECL.
  339. * opts.c (decode_options): Do not disable var-tracking for lto.
  340. * doc/invoke.texi (-flto): Document -flto vs. -g experimental
  341. status.
  342. (-fwhopr): Document experimental status.
  343. 2009-12-15 Aldy Hernandez <aldyh@redhat.com>
  344. PR graphite/42185
  345. * graphite-sese-to-poly.c (is_reduction_operation_p): Assert that
  346. we are a GIMPLE_ASSIGN. Do not calculate rhs code twice.
  347. (follow_ssa_with_commutative_ops): Return NULL on non assignment.
  348. 2009-12-15 Eric Botcazou <ebotcazou@adacore.com>
  349. * config/rs6000/rs6000.md (probe_stack): Use an enclosing SET.
  350. 2009-12-15 Richard Guenther <rguenther@suse.de>
  351. * gimple.h (compare_field_offset): Declare.
  352. * gimple.c (compare_field_offset): Export.
  353. * lto-streamer-in.c (input_gimple_stmt): Use compare_field_offset.
  354. 2009-12-15 Richard Guenther <rguenther@suse.de>
  355. * lto-cgraph.c (lto_output_node): Also stream the alias
  356. for regular aliases.
  357. (input_node): Likewise.
  358. 2009-12-15 Paolo Bonzini <bonzini@gnu.org>
  359. Shujing Zhao <pearly.zhao@oracle.com>
  360. * intl.c (get_spaces): New.
  361. * intl.h (get_spaces): New.
  362. 2009-12-14 Mark Mitchell <mark@codesourcery.com>
  363. * configure.ac (--with-specs): New option.
  364. * configure: Regenerated.
  365. * gcc.c (driver_self_specs): Include CONFIGURE_SPECS.
  366. * Makefile.in (DRIVER_DEFINES): Add -DCONFIGURE_SPECS.
  367. 2009-12-14 Jakub Jelinek <jakub@redhat.com>
  368. PR bootstrap/42369
  369. * config/i386/i386.c (ix86_expand_special_args_builtin): Avoid
  370. using switch with CODE_FOR_lwp_lwp* cases.
  371. * config/i386/i386-builtin-types.def (PVOID_FTYPE_VOID): Use
  372. DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).
  373. 2009-12-14 Eric Botcazou <ebotcazou@adacore.com>
  374. * cfgexpand.c (expand_debug_expr) <INDIRECT_REF>: Remove overzealous
  375. assertion and useless code.
  376. <TARGET_MEM_REF>: Likewise.
  377. 2009-12-14 Alexandre Oliva <aoliva@redhat.com>
  378. PR debug/41473
  379. * dwarf2out.c (AT_loc_list_ptr): New.
  380. (resolve_addr): Remove unresolved attributes and loc_list entries.
  381. PR debug/41473
  382. * dwarf2out.c (add_var_loc_to_decl): Don't drop initial empty
  383. locations.
  384. (new_loc_list): Drop gensym arg. Move generation of ll_symbol...
  385. (gen_llsym): ... here. New function.
  386. (add_loc_descr_to_loc_list): Removed.
  387. (loc_descriptor): Infer mode from CONST_DOUBLEs and CONST_VECTORs.
  388. (single_element_loc_list): Removed.
  389. (dw_loc_list): Don't create entries without a location. Don't
  390. special-case the first node of the list, only single nodes.
  391. (single_element_loc_list_p): Simplify.
  392. (loc_list_from_tree): Don't use DECL_RTL if loc_list is nonempty.
  393. (add_location_or_const_value_attribute): Test var loc for NULL.
  394. (convert_cfa_to_fb_loc_list): Adjust calls to new new_loc_list,
  395. call gen_llsym if needed.
  396. 2009-12-14 Jakub Jelinek <jakub@redhat.com>
  397. * cgraph.h (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
  398. cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
  399. prototypes.
  400. * cgraph.c (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
  401. cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
  402. functions.
  403. * except.h (set_nothrow_function_flags): Remove prototype.
  404. * except.c (set_nothrow_function_flags): Use cgraph_set_nothrow_flag.
  405. Make static.
  406. * ipa-pure-const.c (propagate): Use cgraph_set_nothrow_flag,
  407. cgraph_set_readonly_flag, cgraph_set_pure_flag
  408. and cgraph_set_looping_const_or_pure_flag.
  409. (local_pure_const): Likewise.
  410. 2009-12-14 Jakub Jelinek <jakub@redhat.com>
  411. Sebastian Pop <sebastian.pop@amd.com>
  412. * config/i386/i386-builtin-types.def (PVOID): Declared.
  413. (VOID_FTYPE_PVOID): Declared.
  414. (PVOID_FTYPE_VOID): Declared.
  415. (UCHAR_FTYPE_USHORT_UINT_USHORT): Removed.
  416. (VOID_FTYPE_USHORT_UINT_USHORT): Removed.
  417. * config/i386/i386.c (IX86_BUILTIN_LLWPCB16, IX86_BUILTIN_LLWPCB32,
  418. IX86_BUILTIN_LLWPCB64, IX86_BUILTIN_SLWPCB16, IX86_BUILTIN_SLWPCB32,
  419. IX86_BUILTIN_SLWPCB64, IX86_BUILTIN_LWPVAL16, IX86_BUILTIN_LWPINS16):
  420. Removed.
  421. (IX86_BUILTIN_LLWPCB, IX86_BUILTIN_SLWPCB): New.
  422. (bdesc_special_args): Adjust declaration of __builtin_ia32_llwpcb,
  423. __builtin_ia32_slwpcb, __builtin_ia32_lwpval32,
  424. __builtin_ia32_lwpval64, __builtin_ia32_lwpins32, and
  425. __builtin_ia32_lwpins64.
  426. (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PVOID.
  427. Do not handle VOID_FTYPE_USHORT_UINT_USHORT and
  428. UCHAR_FTYPE_USHORT_UINT_USHORT. Warn when the third operand is
  429. not an immediate. Also handle builtin functions with 3 arguments.
  430. (ix86_expand_builtin): Handle IX86_BUILTIN_LLWPCB and
  431. IX86_BUILTIN_SLWPCB.
  432. * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC, UNSPEC_SLWP_INTRINSIC):
  433. Renamed UNSPECV_LLWP_INTRINSIC and UNSPECV_SLWP_INTRINSIC.
  434. (memory attribute): Handle lwp.
  435. (lwp*): Rewrite all the insn patterns for LWP.
  436. * config/i386/lwpintrin.h (__llwpcb16, __llwpcb32, __llwpcb64,
  437. __slwpcb16, __slwpcb32, __slwpcb64, __lwpval16, __lwpins16): Removed.
  438. (__llwpcb, __slwpcb): New.
  439. 2009-12-14 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  440. * dominance.c (set_immediate_dominator): Don't mark as inline.
  441. 2009-12-14 Eric Botcazou <ebotcazou@adacore.com>
  442. * doc/tm.texi (STACK_CHECK_PROTECT): Document alternate default.
  443. * doc/md.texi (check_stack): Clarify.
  444. (probe_stack): Likewise.
  445. * config/rs6000/rs6000.md (UNSPEC_PROBE_STACK): New constant.
  446. (probe_stack): New insn.
  447. 2009-12-14 Ben Elliston <bje@au.ibm.com>
  448. * lto-streamer-in.c (lto_get_builtin_tree): fclass can only be a
  449. BUILT_IN_NORMAL or BUILT_IN_MD.
  450. 2009-12-13 Eric Botcazou <ebotcazou@adacore.com>
  451. * doc/tm.texi (STACK_CHECK_PROBE_LOAD): Delete.
  452. * expr.h (STACK_CHECK_PROBE_LOAD): Likewise.
  453. * explow.c (emit_stack_probe): Do not test STACK_CHECK_PROBE_LOAD.
  454. * system.h (STACK_CHECK_PROBE_LOAD): Poison.
  455. 2009-12-13 Michael Matz <matz@suse.de>
  456. PR tree-optimization/42027
  457. * dojump.c (do_jump <TRUTH_AND_EXPR, TRUTH_OR_EXPR>): Go to
  458. TRUTH_ANDIF_EXPR resp. TRUTH_ORIF_EXPR expander, instead of
  459. falling through.
  460. 2009-12-13 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
  461. PR target/23726
  462. * config/avr/predicates.md (pseudo_register_operand): New predicate
  463. for pseudos.
  464. * config/avr/avr.md (divmodqi4): Replace with define_insn_and_split
  465. to allow div/mod optimization.
  466. (udivmodqi4): Ditto.
  467. (divmodhi4): Ditto.
  468. (udivmodhi4): Ditto.
  469. (divmodsi4): Ditto.
  470. (udivmodsi4): Ditto.
  471. 2009-12-13 Richard Guenther <rguenther@suse.de>
  472. PR tree-optimization/42357
  473. * tree-sra.c (sra_modify_assign): Do not tear apart struct copies.
  474. 2009-12-12 Richard Guenther <rguenther@suse.de>
  475. * tree.c (need_assembler_name_p): Abstract decls do not need
  476. an assembler name.
  477. * dwarf2out.c (dwarf2out_abstract_function): Preserve
  478. DECL_ABSTRACT properly.
  479. 2009-12-11 Richard Guenther <rguenther@suse.de>
  480. * lto-streamer-in.c (lto_input_tree_ref): Do not register
  481. DEBUG_EXPR_DECLs with the varpool.
  482. 2009-12-11 Eric Botcazou <ebotcazou@adacore.com>
  483. * config/sparc/linux-unwind.h (MD_FROB_UPDATE_CONTEXT, 64-bit): Define.
  484. (sparc64_frob_update_context): New function.
  485. 2009-12-11 Richard Guenther <rguenther@suse.de>
  486. PR lto/41658
  487. PR lto/41657
  488. * lto-streamer-out.c (write_global_stream): Do not make decls
  489. weak but resort to TREE_ASM_WRITTEN to avoid multiple definitions.
  490. Make sure to mark all decls that we have written.
  491. 2009-12-11 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
  492. PR target/36047
  493. * config/m68k/linux.h: Remove LABELNO from the mcount statement. It is
  494. not used by glibc/uclibc and does not work with large binaries.
  495. 2009-12-11 Richard Guenther <rguenther@suse.de>
  496. PR lto/41662
  497. * lto-streamer-in.c (lto_init_eh): Move eh_initialized_p
  498. handling here.
  499. (input_eh_regions): Adjust.
  500. (lto_input_ts_function_decl_tree_pointers): Initialize EH
  501. if a non-NULL DECL_FUNCTION_PERSONALITY was read in.
  502. 2009-12-11 Duncan Sands <baldrick@free.fr>
  503. * passes.c (make_pass_instance): Allocate and copy the right amount of
  504. memory for ipa passes, which are not the same size as other passes.
  505. 2009-12-11 Joern Rennecke <amylaar@spamcop.net>
  506. * plugin.c (get_named_event_id): Fix hash table rebuild to include
  507. dynamically allocated events.
  508. 2009-12-11 Richard Guenther <rguenther@suse.de>
  509. PR lto/42320
  510. * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Properly
  511. detect non-prevailing decls.
  512. 2009-12-10 Jakub Jelinek <jakub@redhat.com>
  513. PR c++/42317
  514. * cgraph.h (struct cgraph_node): Add same_comdat_group field.
  515. * cgraph.c (cgraph_remove_node): Unchain node from same_comdat_group
  516. circular list.
  517. (cgraph_node_can_be_local_p): Return false for DECL_COMDAT with
  518. node->same_comdat_group.
  519. * ipa.c (cgraph_remove_unreachable_nodes): For any reachable node
  520. mark all its same_comdat_group nodes as also reachable.
  521. (cgraph_externally_visible_p): Return true even if any of
  522. same_comdat_group nodes has address taken.
  523. * lto-cgraph.c (lto_output_node): Stream out same_comdat_group.
  524. (output_cgraph): Ensure other same_comdat_group nodes are also
  525. included.
  526. (input_node): Stream in same_comdat_group.
  527. (input_cgraph_1): Fix up same_comdat_group fields from references
  528. to pointers.
  529. * cgraphunit.c (cgraph_analyze_functions): Mark all other
  530. same_comdat_group nodes as reachable.
  531. (cgraph_mark_functions_to_output): For each node->process process
  532. also other same_comdat_group nodes.
  533. * ipa-inline.c (cgraph_clone_inlined_nodes): Don't reuse nodes
  534. with same_comdat_group non-NULL.
  535. (cgraph_mark_inline_edge): Likewise.
  536. 2009-12-10 Jan Hubicka <jh@suse.cz>
  537. PR middle-end/42228
  538. PR middle-end/42110
  539. * cgraph.c (cgraph_create_edge_including_clones): Add old_stmt
  540. parameter; update edge if it already exists.
  541. (cgraph_remove_node): Handle correctly cases where we are removing
  542. node having clones.
  543. * cgraph.h (cgraph_create_edge_including_clones): Declare.
  544. (verify_cgraph_node): Add missing error_found = true code.
  545. (cgraph_materialize_all_clones): Remove call edges of dead nodes.
  546. * ipa.c (cgraph_remove_unreachable_nodes): Correctly look for master
  547. clone; fix double linked list removal.
  548. * tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones
  549. call; fix frequency of newly created edge.
  550. 2009-12-10 Bernd Schmidt <bernd.schmidt@analog.com>
  551. PR rtl-opt/42216
  552. * regrename.c: Error out if MAX_RECOG_OPERANDS is larger than
  553. HOST_BITS_PER_WIDE_INT.
  554. (verify_reg_in_set): New function, broken out of verify_reg_tracked.
  555. (verify_reg_tracked): Use it.
  556. (scan_rtx_reg): When seeing a use involving a superset of the
  557. registers in an existing chain, enlarge that chain. Otherwise,
  558. allow subsets and set fail_current_block for all other kinds of
  559. overlap.
  560. (hide_operands): New argument UNTRACKED_OPERANDS; callers changed.
  561. Do not modify operands when the bit with the corresponding number
  562. is set in that bitmap.
  563. (build_def_use): When we see matching operands with different
  564. modes, don't set fail_current_block, but keep track of such
  565. operands in a bitmap if their registers aren't already tracked
  566. in an open chain. Pass this bitmap to all hide_operands calls.
  567. 2009-12-10 Richard Guenther <rguenther@suse.de>
  568. PR tree-optimization/42337
  569. * tree-ssa-pre.c (seen_during_translate): Remove.
  570. (phi_translate_1): Collapse into ...
  571. (phi_translate): ... this. Remove seen parameter and
  572. adjust recursive calls.
  573. 2009-12-10 Richard Guenther <rguenther@suse.de>
  574. Allan Sandfeld Jensen <linux@carewolf.com>
  575. * tree-vectorizer.c (vectorize_loops): Properly guard
  576. vectorizer verboseness.
  577. 2009-12-10 Ben Elliston <bje@au.ibm.com>
  578. * fwprop.c (free_load_extend): Initialise `use'.
  579. 2009-12-09 David Edelsohn <edelsohn@gnu.org>
  580. * builtins.c (do_mpc_ckconv): Pass the component type to
  581. real_from_mpfr().
  582. 2009-12-09 Xinliang David Li <davidxl@google.com>
  583. PR tree-optimization/42337
  584. * tree-ssa-pre.c (phi_translate_1): Push and Pop SEEN set.
  585. 2009-12-09 Nathan Froyd <froydnj@codesourcery.com>
  586. * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
  587. mulv2sf3, divv2sf3): New expanders.
  588. * config/rs6000/spe.md (spe_evabs, spe_evand, spe_evaddw, spe_evsubfw,
  589. spe_evdivws): Rename to use standard GCC names.
  590. * config/rs6000/paired.md (negv2sf, absv2sf2, addv2sf3, subv2sf3,
  591. mulv2sf3, divv2sf3): Rename to avoid conflict with the new expanders.
  592. * config/rs6000/rs6000.c (bdesc_2arg, bdesc_1arg): Use new CODE_FOR_
  593. names for renamed patterns.
  594. 2009-12-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  595. * config/s390/s390.md ("copysign<mode>3"): Pattern removed.
  596. 2009-12-09 Jakub Jelinek <jakub@redhat.com>
  597. * configure.ac: Compute ld_ver, ld_vers, ld_date, ld_vers_major,
  598. ld_vers_minor and ld_vers_path always, not just when gcc_cv_ld_hidden
  599. isn't cached.
  600. * configure: Regenerated.
  601. 2009-12-08 Richard Henderson <rth@redhat.com>
  602. * combine.c (setup_incoming_promotions): Fix sign-extend of
  603. zero-extend case; tidy conditions.
  604. 2009-12-08 Michael Matz <matz@suse.de>
  605. PR middle-end/38474
  606. * function.c (free_temp_slots): Only walk the temp slot
  607. addresses and combine slots if we actually changes something.
  608. (pop_temp_slots): Ditto.
  609. 2009-12-08 Olga Golovanevsky <olga@il.ibm.com>
  610. PR middle-end/41843
  611. * ipa-struct-reorg.c (compare_fields): New function.
  612. (find_field_in_struct_1): Use compare_fields function.
  613. (is_equal_types): Likewise.
  614. 2009-12-07 DJ Delorie <dj@redhat.com>
  615. PR c/42312
  616. * config/mep/mep.c (mep_expand_prologue): Set
  617. really_need_stack_frame after frame_size is set.
  618. 2009-12-07 Richard Henderson <rth@redhat.com>
  619. PR rtl-opt/42269
  620. * combine.c (setup_incoming_promotions): Improve the conditions
  621. under which we respect the promotions applied.
  622. 2009-12-07 Eric Botcazou <ebotcazou@adacore.com>
  623. * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
  624. * config/sparc/linux64.h (ASM_SPEC): Likewise.
  625. 2009-12-07 Richard Henderson <rth@redhat.com>
  626. PR debug/42299
  627. PR debug/42166
  628. * tree-ssa.c (insert_debug_temp_for_var_def): Skip propagation
  629. for ssa names already registered for update.
  630. 2009-12-07 Jakub Jelinek <jakub@redhat.com>
  631. PR debug/42244
  632. * ddg.c (add_inter_loop_mem_dep): Use ANTI_DEP if from or to
  633. is a DEBUG_INSN.
  634. 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
  635. * config/i386/driver-i386.c (host_detect_local_cpu): Add -mlwp to the
  636. options when bit_LWP is set.
  637. 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
  638. * config/i386/cpuid.h (bit_ABM): New.
  639. * config/i386/driver-i386.c (host_detect_local_cpu): Add -mabm to the
  640. options when bit_ABM is set.
  641. 2009-12-07 Jakub Jelinek <jakub@redhat.com>
  642. * config/i386/i386.c (bdesc_special_args): Move __builtin_clzs from
  643. this array ...
  644. (bdesc_args): ... here.
  645. * config.gcc (i[34567]86-*-*): Include abmintrin.h.
  646. (x86_64-*-*): Likewise.
  647. 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
  648. * config.gcc (i[34567]86-*-*, x86_64-*-*): Add popcntintrin.h.
  649. * config/i386/abmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
  650. * config/i386/i386-c.c (__POPCNT__): Defined.
  651. * config/i386/popcntintrin.h: ...here. New file.
  652. * config/i386/smmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
  653. Include popcntintrin.h.
  654. * config/i386/x86intrin.h: Include popcntintrin.h when __POPCNT__
  655. is defined.
  656. 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
  657. * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory):
  658. Removed.
  659. * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Removed.
  660. * config/i386/sse.md: Remove all XOP splitters.
  661. Allow the second and fourth operands of XOP multiply-add insns
  662. to be nonimmediate.
  663. 2009-12-07 Sebastian Pop <sebastian.pop@amd.com>
  664. * config/i386/sse.md: Remove all FMA4 splitters.
  665. Allow the second operand of FMA4 insns to be a nonimmediate.
  666. Fix comments punctuation.
  667. 2009-12-07 Julian Brown <julian@codesourcery.com>
  668. * config/arm/constraints.md (Ps, Pt): New constraint letters.
  669. * config/arm/thumb2.md (*thumb2_addsi_short): Tighten constraints.
  670. 2009-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  671. PR other/40302
  672. * configure.ac (HAVE_mpc): Don't define.
  673. * config.in, configure: Regenerate.
  674. PR other/40302
  675. * builtins.c: Remove HAVE_mpc* checks throughout.
  676. * fold-const.c: Likewise.
  677. * real.h: Likewise.
  678. * toplev.c: Likewise.
  679. 2009-12-07 Edmar Wienskoski <edmar@freescale.com>
  680. * config.gcc (cpu_is_64bit): Add new core e500mc64.
  681. (powerpc*-*-*): Add new core e500mc64.
  682. * config/rs6000/e500mc64.md: New file.
  683. * config/rs6000/rs6000.c (processor_costs): Add new costs for
  684. e500mc64.
  685. (rs6000_override_options): Add e500mc64 case to
  686. processor_target_table. Altivec and Spe options not allowed with
  687. e500mc64. Disable string instructions for e500mc64. Enable branch
  688. targets alignment for both e500mc and e500mc64. Initialize
  689. rs6000_cost for e500mc64.
  690. (rs6000_emit_sISEL): New function.
  691. (rs6000_emit_sCOND): Call rs6000_emit_sISEL for isel targets.
  692. (rs6000_emit_int_cmove): Fix mode of 64 bit isel pattern
  693. generation.
  694. (rs6000_issue_rate): Set issue rate for e500mc64.
  695. (rs6000_rtx_costs): Set more accurate cost for mfcr instruction
  696. on architectures with isel.
  697. * config/rs6000/rs6000-protos.h (rs6000_emit_sISEL): Declare.
  698. * config/rs6000/rs6000.h (processor_type): Add
  699. PROCESSOR_PPCE500MC64.
  700. (ASM_CPU_SPEC): Add e500mc64.
  701. * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc64.
  702. Include e500mc64.md.
  703. (abssi2_isel): Expand pattern to handle DImode.
  704. (nabs<mode>2_isel): New pattern.
  705. (absdi2): Change pattern to handle 64 bit isel targets.
  706. (absdi2_internal): Exclude ISEL targets.
  707. (nabsdi2): Exclude ISEL targets.
  708. * doc/invoke.texi: Add e500mc64 to list of cpus.
  709. 2009-12-07 Uros Bizjak <ubizjak@gmail.com>
  710. * config/i386/i386.md (any_or): New code iterator.
  711. (any_logic): Rename from plogic code iterator.
  712. (logicprefix): Rename from plogicprefix code attribute.
  713. (<code><mode>3): Macroize expander from {ior,xor}<mode>3 using
  714. any_or code iterator.
  715. (*<code><mode>_1): Macroize insn from *{ior,xor}<mode>_1 using
  716. any_or code iterator.
  717. (*<code><mode>_2): Ditto from *{ior,xor}<mode>_2.
  718. (*<code><mode>_3): Ditto from *{ior,xor}<mode>_3.
  719. (ior and xor splitters): Ditto.
  720. * config/i386/mmx.md: Updated for rename.
  721. * config/i386/sse.md: Ditto.
  722. 2009-12-07 Uros Bizjak <ubizjak@gmail.com>
  723. * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
  724. Remove quotes around condition logic code.
  725. 2009-12-06 Richard Henderson <rth@redhat.com>
  726. PR debug/42234
  727. * tree-ssa-dom.c (degenerate_phi_result): Check for NULL phi
  728. argument earlier.
  729. 2009-12-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  730. * doc/install.texi: Document MPC is required.
  731. 2009-12-06 Uros Bizjak <ubizjak@gmail.com>
  732. * config/i386/i386.md (g): Add HImode and QImode.
  733. (general_szext_operand): New mode attribute.
  734. (*test<mode>_1): Macroize insn from *test{qi,hi,si}_1 using
  735. SWI124 mode iterator.
  736. (and<mode>3): Macroize expander from and{qi,hi,si,di}3 using
  737. SWIM mode iterator.
  738. (*and<mode>_2): Macroize insn from *and{qi,hi,si}_2 using
  739. SWI124 mode iterator.
  740. (ior<mode>3): Macroize expander from ior{qi,hi,si,di}3 using
  741. SWIM mode iterator.
  742. (*ior<mode>_1): Macroize insn from *ior{hi,si,di}_1 using
  743. SWI248 mode iterator.
  744. (*ior<mode>_2): Macroize insn from *ior{qi,hi,si,di}_2 using
  745. SWI mode iterator.
  746. (*ior<mode>_3): Macroize insn from *ior{qi,hi,si,di}_3 using
  747. SWI mode iterator.
  748. (xor<mode>3): Macroize expander from xor{qi,hi,si,di}3 using
  749. SWIM mode iterator.
  750. (*xor<mode>_1): Macroize insn from *xor{hi,si,di}_1 using
  751. SWI248 mode iterator.
  752. (*xor<mode>_2): Macroize insn from *xor{qi,hi,si,di}_2 using
  753. SWI mode iterator.
  754. (*xor<mode>_3): Macroize insn from *xor{qi,hi,si,di}_3 using
  755. SWI mode iterator.
  756. 2009-12-05 Sebastian Pop <sebastian.pop@amd.com>
  757. * config/i386/i386.c (TARGET_DEFAULT_TARGET_FLAGS): Add
  758. MASK_FUSED_MADD.
  759. * config/i386/i386.h (CC1_CPU_SPEC_1): Remove
  760. "'-mfused-madd' was removed".
  761. * config/i386/i386.opt (mfused-madd): New.
  762. * config/i386/sse.md: Add TARGET_FUSED_MADD to FMA4 insns.
  763. * doc/invoke.texi (-mfused-madd, -mno-fused-madd): Document.
  764. 2009-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  765. * pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
  766. * pa-hpux10.h (LIB_SPEC): Likewise.
  767. * pa-hpux11.h (LIB_SPEC): Likewise.
  768. PR ada/41912
  769. * pa/linux-unwind.h (pa32_fallback_frame_state): Set fs->signal_frame
  770. for signal frames.
  771. * pa/hpux-unwind.h (pa32_fallback_frame_state): Likewise.
  772. 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  773. * configure: Regenerate.
  774. 2009-12-05 Richard Earnshaw <rearnsha@arm.com>
  775. * arm/thumb2.md (thumb2_mulsi_short_compare0): Use a low-register
  776. for the scratch.
  777. 2009-12-04 David Daney <ddaney@caviumnetworks.com>
  778. PR rtl-optimization/42164
  779. * combine.c (combine_simplify_rtx): Handle truncation of integer
  780. constants.
  781. 2009-12-04 Richard Guenther <rguenther@suse.de>
  782. * lto-streamer-out.c (pack_ts_decl_common_value_fields):
  783. Revert previous change.
  784. (lto_output_ts_decl_common_tree_pointers): Stream DECL_VALUE_EXPR.
  785. * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
  786. Likewise.
  787. 2009-12-04 Richard Guenther <rguenther@suse.de>
  788. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
  789. BUILT_IN_MALLOC.
  790. (call_may_clobber_ref_p_1): Likewise.
  791. 2009-12-04 Matthias Klose <doko@ubuntu.com>
  792. John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  793. PR target/40134
  794. * config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc.
  795. * config/pa/pa-linux.h (LIB_SPEC): Remove.
  796. 2009-12-03 Sebastian Pop <sebastian.pop@amd.com>
  797. Richard Henderson <rth@redhat.com>
  798. * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Remove.
  799. * config/i386/i386.c (ix86_fma4_valid_op_p): Remove.
  800. * config/i386/i386.md: Do not use ix86_fma4_valid_op_p.
  801. * config/i386/sse.md (fma4_*): Remove alternative with operand 1
  802. matching a memory access. Do not use ix86_fma4_valid_op_p.
  803. (xop_*): Same.
  804. Do not use ix86_fma4_valid_op_p in FMA4 and XOP splitters.
  805. 2009-12-03 Richard Henderson <rth@redhat.com>
  806. * config/i386/i386.c (ix86_fixup_binary_operands): For FMA4, force
  807. all operands into registers.
  808. 2009-12-03 Sebastian Pop <sebastian.pop@amd.com>
  809. * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Remove unused
  810. parameter.
  811. * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory): Same.
  812. * config/i386/sse.md: Same.
  813. 2009-12-03 Richard Guenther <rguenther@suse.de>
  814. * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
  815. instead of DECL_NAME for the entry point.
  816. 2009-12-03 Richard Earnshaw <rearnsha@arm.com>
  817. * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
  818. before the lock release.
  819. 2009-12-03 Michael Matz <matz@suse.de>
  820. PR middle-end/38474
  821. * cfgexpand.c (struct stack_var): Add conflicts member.
  822. (stack_vars_conflict, stack_vars_conflict_alloc,
  823. n_stack_vars_conflict): Remove.
  824. (add_stack_var): Initialize conflicts member.
  825. (triangular_index, resize_stack_vars_conflict): Remove.
  826. (add_stack_var_conflict, stack_var_conflict_p): Rewrite in
  827. terms of new member.
  828. (union_stack_vars): Only run over the conflicts.
  829. (partition_stack_vars): Remove special case.
  830. (expand_used_vars_for_block): Don't call resize_stack_vars_conflict,
  831. don't create self-conflicts.
  832. (account_used_vars_for_block): Don't create any conflicts.
  833. (fini_vars_expansion): Free bitmaps, don't free or clear removed
  834. globals.
  835. 2009-12-03 Bernd Schmidt <bernd.schmidt@analog.com>
  836. PR middle-end/42202
  837. * regrename.c (live_in_chains): New variable.
  838. (verify_reg_tracked): New static function.
  839. (scan_rtx_reg): Update live_in_chains.
  840. (scan_rtx): Only promote sets in COND_EXEC to OP_INOUT if
  841. we're already tracking the reg.
  842. (build_def_use): Likewise. Initialize live_in_chains.
  843. 2009-12-03 Ken Werner <ken.werner@de.ibm.com>
  844. * config/spu/spu-elf.h (STARTFILE_SPEC): Add support for gprof
  845. startup files.
  846. * config/spu/spu-protos.h (spu_function_profiler): Add prototype.
  847. * config/spu/spu.c (spu_function_profiler): New function.
  848. * config/spu/spu.h (FUNCTION_PROFILER): Invoke
  849. spu_function_profiler.
  850. (NO_PROFILE_COUNTERS): Define.
  851. (PROFILE_BEFORE_PROLOGUE): Likewise.
  852. 2009-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
  853. * ggc-page.c (struct free_object): Pull definition out ...
  854. (struct globals): .. from here.
  855. 2009-12-02 Richard Guenther <rguenther@suse.de>
  856. * fold-const.c (div_if_zero_remainder): Honor that sizetypes
  857. are sign-extending. Simplify.
  858. 2009-12-02 Richard Henderson <rth@redhat.com>
  859. PR tree-opt/42215
  860. * tree-loop-distribution.c (build_size_arg_loc): Tidy.
  861. (generate_memset_zero): Convert to sizetype properly. Tidy.
  862. 2009-12-02 Richard Guenther <rguenther@suse.de>
  863. * lto-streamer-out.c (pack_ts_decl_common_value_fields):
  864. Do not pretend we have value exprs.
  865. 2009-12-02 Richard Guenther <rguenther@suse.de>
  866. PR middle-end/41491
  867. * fold-const.c (try_move_mult_to_index): Do not leak
  868. domain types into the IL.
  869. 2009-12-02 Richard Guenther <rguenther@suse.de>
  870. PR middle-end/42088
  871. * tree.c (free_lang_data): Disable if not using LTO.
  872. 2009-12-02 Richard Guenther <rguenther@suse.de>
  873. PR middle-end/42229
  874. * cfgloopmanip.c (remove_path): Avoid cancelling loops twice.
  875. 2009-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  876. PR middle-end/42224
  877. * tree.h (int_or_pointer_precision): Remove.
  878. * tree.c (int_or_pointer_precision): Remove.
  879. (integer_pow2p): Use TYPE_PRECISION instead.
  880. (tree_log2): Likewise.
  881. (tree_floor_log2): Likewise.
  882. (signed_or_unsigned_type_for): Likewise.
  883. * fold-const.c (fit_double_type): Likewise.
  884. * varasm.c (initializer_constant_valid_p): Likewise.
  885. 2009-12-02 Ira Rosen <irar@il.ibm.com>
  886. * doc/invoke.texi (-fdump-tree-slp): Document.
  887. (-ftree-vectorizer-verbose): Update.
  888. (-ftree-slp-vectorize): Document.
  889. 2009-12-02 Nick Clifton <nickc@redhat.com>
  890. * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
  891. no fixed registers are available for interrupt handlers. Do not
  892. fix normal registers.
  893. (MUST_SAVE_ACC_REGISTER): New macro.
  894. (rx_get_stack_layout): Create a stack frame for fast interrupt
  895. handlers, if necessary. Push extra registers if needed in order
  896. to save the accumulator.
  897. (rx_expand_prologue): Create a stack frame for fast interrupt
  898. handlers, if necessary.
  899. (rx_expand_builtin_mvfc): Handle the case where there is no target.
  900. 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
  901. * config/i386/abmintrin.h (__lzcnt16): New.
  902. (__lzcnt): New.
  903. (__lzcnt64): New.
  904. * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
  905. * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
  906. (bdesc_special_args): Add __builtin_clzs.
  907. (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
  908. 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
  909. * config/i386/abmintrin.h (_mm_popcnt_u32): New.
  910. (_mm_popcnt_u64): New.
  911. 2009-12-01 Sebastian Pop <sebastian.pop@amd.com>
  912. * config/i386/abmintrin.h: New.
  913. * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
  914. * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
  915. 2009-12-01 Uros Bizjak <ubizjak@gmail.com>
  916. * config/i386/i386.md (SWI124): Rename from CRC32MODE.
  917. (crc32modesuffix): Remove.
  918. (crc32modeconstraint): Ditto.
  919. (sse4_2_crc32<mode>): Update for renamed mode iterator. Use
  920. imodesuffix instead of crc32modesuffix and <r>m instead of
  921. crc32modeconstraint.
  922. 2009-12-01 Jakub Jelinek <jakub@redhat.com>
  923. PR c++/42234
  924. * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
  925. contains no statements.
  926. 2009-12-01 Grigori Fursin <grigori.fursin@inria.fr>
  927. Joern Rennecke <amylaar@spamcop.net>
  928. * cgraphunit.c (plugin.h): Include.
  929. (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
  930. PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
  931. * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
  932. (enum plugin_event): Define by including plugin.def.
  933. Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
  934. (plugin_event_name): Change type to const char **.
  935. (get_event_last, get_named_event_id, unregister_callback): Declare.
  936. (register_callback): Change type of event argument to int.
  937. (highlev-plugin-common.h): New file.
  938. * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
  939. $(HASHTAB_H)
  940. (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
  941. (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
  942. (s-header-vars): New rule.
  943. (install-plugin): Depend on s-header-vars. Install b-header-vars.
  944. * params.c (get_num_compiler_params): New function.
  945. * params.h (get_num_compiler_params): Declare.
  946. * passes.c (plugin.h): Include.
  947. (make_pass_instance): Invoke PLUGIN_NEW_PASS.
  948. (do_per_function_toporder, pass_init_dump_file): No longer static.
  949. (pass_fini_dump_file): Likewise.
  950. (execute_one_pass): Likewise. Invoke PLUGIN_OVERRIDE_GATE and
  951. PLUGIN_PASS_EXECUTION.
  952. (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
  953. PLUGIN_EARLY_GIMPLE_PASSES_END.
  954. * plugin.c (plugin_event_name_init): New array, defined by
  955. including plugin.def.
  956. (FMT_FOR_PLUGIN_EVENT): Update.
  957. (plugin_event_name): Change type to const char ** and initialize
  958. to plugin_event_name_init.
  959. (event_tab, event_last, event_horizon): New variable.
  960. (get_event_last): New function.
  961. (plugin_callbacks_init): New array.
  962. (plugin_callbacks: Change type to struct callback_info **.
  963. Initialize to plugin_callbacks_init.
  964. (htab_event_eq, get_named_event_id, unregister_callback): New function.
  965. (invoke_plugin_va_callbacks): Likewise.
  966. (register_callback): Change type of event argument to int.
  967. Handle new events. Allow dynamic events.
  968. (invoke_plugin_callbacks): Likewise. Return success status.
  969. (plugins_active_p): Allow dynamic callbacks.
  970. * plugin.def: New file.
  971. * plugin.h (invoke_plugin_callbacks): Update prototype.
  972. (invoke_plugin_va_callbacks): Declare.
  973. * tree-optimize.c (plugin.h): Include.
  974. (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
  975. PLUGIN_ALL_PASSES_END.
  976. * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
  977. (pass_fini_dump_file, do_per_function_toporder): Likewise.
  978. * doc/plugin.texi: Document new event types.
  979. 2009-12-01 Martin Jambor <mjambor@suse.cz>
  980. PR tree-optimization/42237
  981. * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
  982. in between references into two.
  983. 2009-12-01 Richard Guenther <rguenther@suse.de>
  984. * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
  985. to the block of the call when remapping a type.
  986. 2009-12-01 Martin Jambor <mjambor@suse.cz>
  987. * cgraph.h (struct cgraph_edge): Reorder fields. Make loop_nest
  988. unsigned short int.
  989. * ipa-prop.h (struct ipa_param_call_note): Likewise.
  990. * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
  991. 2009-12-01 Richard Guenther <rguenther@suse.de>
  992. * final.c (rest_of_clean_state): If -fcompare-debug is
  993. given dump final insns without UIDs.
  994. * tree-ssa-live.c (remove_unused_scope_block_p): Remove
  995. after_inlining checks.
  996. 2009-11-30 Chao-ying Fu <fu@mips.com>
  997. * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
  998. 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
  999. * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
  1000. status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
  1001. * configure: Regenerate.
  1002. * config.in: Regenerate.
  1003. * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
  1004. options for Cygwin DLL libstdc++ support wrappers.
  1005. (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
  1006. according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
  1007. (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
  1008. whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
  1009. (LINK_SPEC): Include CXX_WRAP_SPEC.
  1010. * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
  1011. (i386_find_on_wrapper_list): Check if a function is found on the list
  1012. of libstdc++ wrapper options.
  1013. (i386_pe_file_end): If we are importing a wrapped function, also emit
  1014. an external declaration for the real version.
  1015. * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
  1016. Cygwin targets. Update copyright year.
  1017. 2009-11-30 Steve Ellcey <sje@cup.hp.com>
  1018. Jakub Jelinek <jakub@redhat.com>
  1019. * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
  1020. before forcing mode.
  1021. 2009-11-30 Anatoly Sokolov <aesok@post.ru>
  1022. * config/sh/sh.c (sh_promote_prototypes): Make static.
  1023. (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
  1024. functions.
  1025. (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
  1026. * config/sh/sh.h (FUNCTION_VALUE_REGNO_P): Redefine, use
  1027. sh_function_value_regno_p.
  1028. (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
  1029. * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
  1030. (sh_promote_prototypes) : Remove.
  1031. 2009-11-30 Julian Brown <julian@codesourcery.com>
  1032. * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
  1033. reloads to LO_REGS.
  1034. 2009-11-30 Richard Henderson <rth@redhat.com>
  1035. * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
  1036. (bdesc_special_args): Update insn codes.
  1037. (avx_vpermilp_parallel): Correct range check.
  1038. (ix86_rtx_costs): Handle vector permutation rtx codes.
  1039. (struct expand_vec_perm_d): Move earlier.
  1040. (get_mode_wider_vector): New.
  1041. (expand_vec_perm_broadcast_1): New.
  1042. (ix86_expand_vector_init_duplicate): Use it. Tidy AVX modes.
  1043. (expand_vec_perm_broadcast): New.
  1044. (ix86_expand_vec_perm_builtin_1): Use it.
  1045. * config/i386/i386-protos.h: Update.
  1046. * config/i386/predicates.md (avx_vbroadcast_operand): New.
  1047. * config/i386/sse.md (AVX256MODE24P): New.
  1048. (ssescalarmodesuffix2s): New.
  1049. (avxhalfvecmode, avxscalarmode): Fill out to all modes.
  1050. (avxmodesuffixf2c): Add V8SI, V4DI.
  1051. (vec_dupv4sf): New expander.
  1052. (*vec_dupv4sf_avx): Add vbroadcastss alternative.
  1053. (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
  1054. V4SF and V4SI. Move C alternatives to front. Add insertps and
  1055. pinsrd alternatives.
  1056. (*vec_set<mode>_0_sse2): Split out from ...
  1057. (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
  1058. (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
  1059. destination; use ix86_vec_interleave_v2df_operator_ok, instead of
  1060. ix86_fixup_binary_operands.
  1061. (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
  1062. (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
  1063. (*avx_movddup, *sse3_movddup): Remove. New splitter from
  1064. vec_select form to vec_duplicate form.
  1065. (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
  1066. ix86_vec_interleave_v2df_operator_ok.
  1067. (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
  1068. (*avx_unpcklpd256): ... here.
  1069. (*vec_dupv4si_avx): New.
  1070. (*vec_dupv2di_avx): Add movddup alternative.
  1071. (*vec_dupv2di_sse3): New.
  1072. (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
  1073. avx_vbroadcastss256; represent with vec_duplicate instead of
  1074. nested vec_concat operations.
  1075. (avx_vbroadcastf128_<mode>): Rename from
  1076. avx_vbroadcastf128_p<avxmodesuffixf2c>256.
  1077. (*avx_vperm_broadcast_v4sf): New.
  1078. (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
  1079. 2009-11-30 Martin Jambor <mjambor@suse.cz>
  1080. PR middle-end/42196
  1081. * tree-sra.c (struct access): New field grp_different_types.
  1082. (dump_access): Dump grp_different_types.
  1083. (compare_access_positions): Prefer scalars and vectors over other
  1084. scalar types.
  1085. (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
  1086. (sra_modify_expr): Use the original also when dealing with a complex
  1087. or vector group accessed as multiple types.
  1088. 2009-11-30 Richard Henderson <rth@redhat.com>
  1089. * config/i386/i386.c (avx_vperm2f128_parallel): New.
  1090. * config/i386/i386-protos.h: Declare it.
  1091. * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
  1092. avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
  1093. * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
  1094. (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
  1095. (*avx_vperm2f128<mode>_nozero): New.
  1096. 2009-11-30 Richard Henderson <rth@redhat.com>
  1097. * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
  1098. (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
  1099. * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
  1100. V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
  1101. (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
  1102. (bdesc_args): Add them.
  1103. (ix86_expand_builtin): Expand them.
  1104. (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
  1105. 2009-11-30 Martin Jambor <mjambor@suse.cz>
  1106. PR middle-end/42206
  1107. * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
  1108. 2009-11-30 Jakub Jelinek <jakub@redhat.com>
  1109. * ipa-reference.c (propagate): Only dump bitmaps if computed.
  1110. 2009-11-30 Olga Golovanevsky <olga@il.ibm.com>
  1111. PR middle-end/39806
  1112. * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
  1113. (new_var_hash): Likewise.
  1114. (is_in_new_vars_htab): Likewise.
  1115. (add_to_new_vars_htab): Likewise.
  1116. 2009-11-30 Ira Rosen <irar@il.ibm.com>
  1117. * tree-vect-stmts.c (vectorizable_assignment): Support
  1118. multiple types.
  1119. 2009-11-30 Richard Guenther <rguenther@suse.de>
  1120. * doc/contrib.texi (Contributors): Add myself.
  1121. 2009-11-30 Richard Guenther <rguenther@suse.de>
  1122. * tree.c (free_lang_data): Do not set debug_info_level to
  1123. none if terse.
  1124. 2009-11-30 Richard Guenther <rguenther@suse.de>
  1125. PR middle-end/42119
  1126. PR fortran/38530
  1127. * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
  1128. of CONST_DECLs.
  1129. 2009-11-30 Richard Guenther <rguenther@suse.de>
  1130. * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
  1131. variable UID order.
  1132. 2009-11-30 Richard Guenther <rguenther@suse.de>
  1133. * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
  1134. * tree-pass.h (TDF_NOUID): Likewise.
  1135. * print-rtl.c: Include tree-pass.h.
  1136. (print_mem_expr): Pass dump_flags.
  1137. (print_rtx): Likewise.
  1138. * print-tree.c: Include tree-pass.h.
  1139. (print_node_brief): Handle TDF_NOUID.
  1140. (print_node): Likewise.
  1141. * tree-pretty-print.c (dump_decl_name): Likewise.
  1142. (dump_generic_node): Likewise.
  1143. * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
  1144. dependency.
  1145. 2009-11-30 Nick Clifton <nickc@redhat.com>
  1146. * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
  1147. * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
  1148. stormy16-lib2-count-leading-zeros.c.
  1149. * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
  1150. __stormy16_count_leading_zeros() into this function.
  1151. (__ctzhi2): Use __builtin_clz.
  1152. (__ffshi2): Likewise.
  1153. 2009-11-30 Eric Botcazou <ebotcazou@adacore.com>
  1154. * config/sparc/sparc.c (DF_MODES): Simplify.
  1155. (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
  1156. (TF_MODES, OF_MODES): Adjust for above change.
  1157. (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
  1158. * config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
  1159. 2009-11-30 Paolo Bonzini <bonzini@gnu.org>
  1160. PR rtl-optimization/41812
  1161. * fwprop.c (local_md, local_lr): New globals.
  1162. (process_defs, process_uses): Remove local_md argument. Never
  1163. consider dead pseudos to have singleton def-use chains.
  1164. (single_def_use_enter_block): Perform LR simulation.
  1165. (build_single_def_use_links): Remove local_md local variable.
  1166. Add DF_NOTE. Allocate local_lr.
  1167. (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
  1168. * df-problems.c (df_md_scratch): New.
  1169. (df_md_alloc, df_md_free): Allocate/free it.
  1170. (df_md_local_compute): Only include live registers in init.
  1171. (df_md_transfer_function): Prune the in-set computed by
  1172. the confluence function, and the gen-set too.
  1173. 2009-11-30 Hans-Peter Nilsson <hp@axis.com>
  1174. PR rtl-optimization/40086
  1175. * reorg.c (relax_delay_slots): When looking for redundant insn at
  1176. the branch target, use next_real_insn, not next_active_insn.
  1177. 2009-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  1178. * doc/install.texi: Update minimum MPC version to 0.8.
  1179. 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
  1180. * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
  1181. HONOR_SIGNED_ZEROS final condition.
  1182. (fnmsubsf4_powerpc_1): Same.
  1183. (fnmadddf4_fpr_1): Same.
  1184. (fnmsubdf4_fpr_1): Same.
  1185. 2009-11-29 Ira Rosen <irar@il.ibm.com>
  1186. PR tree-optimization/42193
  1187. * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
  1188. to 1 in case of basic block SLP.
  1189. (vectorizable_load): Likewise.
  1190. 2009-11-28 Jan Hubicka <jh@suse.cz>
  1191. * cgraph.c (same_body_alias_1): Break out of
  1192. (same_body_alias): ... here; remove comdat check; it is handled
  1193. in cp already.
  1194. (cgraph_add_thunk): New.
  1195. (dump_cgraph_node): Dump aliases and thunks.
  1196. * cgraph.h (cgraph_thunk_info): New structure.
  1197. (struct cgraph_node): Add thunk info.
  1198. (cgraph_add_thunk): New.
  1199. * cgraphunit.c (cgraph_emit_thunks): Remove.
  1200. (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
  1201. (assemble_thunk): New function.
  1202. (cgraph_expand_function): Handle thunks.
  1203. (thunk_adjust): New.
  1204. (init_lowered_empty_function): New.
  1205. * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
  1206. Remove.
  1207. * lto-cgraph.c (lto_output_node): Stream thunk info.
  1208. (input_node): Likewise.
  1209. * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
  1210. * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
  1211. (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
  1212. * i386.c (x86_output_mi_thunk): Make output prettier.
  1213. 2009-11-28 Richard Guenther <rguenther@suse.de>
  1214. PR tree-optimization/42183
  1215. * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
  1216. address taken. Merge the addressable state of the NRV
  1217. variable and the result instead of copying it.
  1218. 2009-11-28 Jakub Jelinek <jakub@redhat.com>
  1219. * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
  1220. malloc_fname variable.
  1221. (check_allocation_function): Remove unused gsi and bb_level_0
  1222. variables.
  1223. (transform_access_sites): Remove unused d_type_size and d_type_size_k
  1224. variables.
  1225. * omega.c (resurrect_subs): Remove unused n variable.
  1226. (omega_solve_geq): Remove unused neweqns variable.
  1227. * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
  1228. * tree-inline.c (declare_return_variable): Remove USE_P argument,
  1229. return use instead of var.
  1230. (remap_decl, remap_block): Remove unused fn variable.
  1231. (expand_call_inline): Remove unused retvar variable, adjust
  1232. declare_return_variable caller.
  1233. (optimize_inline_calls): Remove unused prev_fn variable.
  1234. * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
  1235. variable.
  1236. (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
  1237. variables.
  1238. * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
  1239. properly.
  1240. * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
  1241. variable.
  1242. (vect_create_epilog_for_reduction): Remove unused bytesize variable.
  1243. * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
  1244. parameter. Remove unused par_stmt variable.
  1245. (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
  1246. (expand_omp_sections): Remove unused l1 variable.
  1247. (lower_omp_for): Remove unused ilist variable.
  1248. * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
  1249. Remove unused has_upstream_mem_write_p variable.
  1250. * recog.c (decode_asm_operands): Remove unused noperands variable.
  1251. * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
  1252. size2 variable.
  1253. * libgcov.c (__gcov_merge_delta): Remove unused last variable.
  1254. * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
  1255. base_nm variable.
  1256. (gen_conditions_for_pow): Remove unused ec variable.
  1257. * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
  1258. variable.
  1259. * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
  1260. fndecl variable.
  1261. * tree-ssa-sink.c (statement_sink_location): Remove unused code
  1262. variable.
  1263. * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
  1264. variables.
  1265. * tree-complex.c (create_one_component_var): Remove unused inner_type
  1266. variable.
  1267. * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
  1268. unnecessarily when GEN_*CALL omits that argument.
  1269. * regrename.c (regrename_optimize): Remove unused regs_seen variable.
  1270. (build_def_use): Remove unused icode variable.
  1271. * ipa-pure-const.c (check_call): Remove unused callee and avail
  1272. variables.
  1273. * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
  1274. * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
  1275. variable.
  1276. (vect_pattern_recog): Remove unused stmt variable.
  1277. * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
  1278. new_regions variable.
  1279. * postreload.c (reload_cse_simplify_operands): Remove unused mode
  1280. variable.
  1281. * tree-parloops.c (create_call_for_reduction_1): Remove unused
  1282. addr_type variable.
  1283. (create_parallel_loop): Remove unused res variable.
  1284. (gen_parallel_loop): Remove unused nloop variable.
  1285. * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
  1286. * value-prof.c (gimple_mod_subtract_transform,
  1287. gimple_stringops_transform): Remove unused value variable.
  1288. (gimple_stringops_values_to_profile): Remove unused fcode variable.
  1289. * tree-vrp.c (register_new_assert_for): Remove unused found variable.
  1290. (vrp_visit_switch_stmt): Remove unused n variable.
  1291. * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
  1292. variable.
  1293. (vectorizable_operation): Remove unused shift_p variable.
  1294. (vectorizable_store): Remove unused first_stmt_vinfo variable.
  1295. * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
  1296. * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
  1297. variable.
  1298. (vect_permute_store_chain): Remove unused scalar_dest variable.
  1299. (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
  1300. variable.
  1301. * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
  1302. local_info variable.
  1303. * tree-optimize.c (tree_rest_of_compilation): Remove unused node
  1304. variable.
  1305. * optabs.c (expand_binop): Remove unused equiv_value variable.
  1306. (emit_libcall_block): Remove unused prev variable.
  1307. (init_optabs): Remove unused int_mode variable.
  1308. * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
  1309. variable.
  1310. (do_structure_copy): Remove unused lhsbase and rhsbase variables.
  1311. (find_func_aliases): Remove unused rhstype variable.
  1312. (ipa_pta_execute): Remove unused varid variable.
  1313. 2009-11-28 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
  1314. * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
  1315. 2009-11-28 David Binderman <dcb314@hotmail.com>
  1316. * ira-color.c (put_allocno_into_bucket): Remove set but not used
  1317. local variable hard_regs_num.
  1318. * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
  1319. * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
  1320. * lower-subreg.c (decompose_multiword_subregs): Remove next.
  1321. 2009-11-27 Martin Jambor <mjambor@suse.cz>
  1322. PR middle-end/42006
  1323. * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
  1324. instead of create_tmp_var. Set DECL_GIMPLE_REG_P to one manually
  1325. for vector and complex types.
  1326. (get_adjustment_for_base): Describe return value in the comment.
  1327. 2009-11-27 Nick Clifton <nickc@redhat.com>
  1328. * longlong.h (count_leading_zeros): Define macro for stormy16 target.
  1329. (COUNT_LEADING_ZEROS_0): Likewise.
  1330. * config/stormy16/stormy16-lib2.c: Arrange for separate
  1331. compilation of each function.
  1332. (__ffshi2): New function.
  1333. (__stormy16_count_leading_zeros): New function.
  1334. * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
  1335. compile each function into its own object file.
  1336. (stormy16-lib2-ashlsi3.c): New stub file.
  1337. (stormy16-lib2-ashrsi3.c): New stub file.
  1338. (stormy16-lib2-clzhi2.c): New stub file.
  1339. (stormy16-lib2-count-leading-zeros.c): New stub file.
  1340. (stormy16-lib2-ctzhi2.c): New stub file.
  1341. (stormy16-lib2-divsi3.c): New stub file.
  1342. (stormy16-lib2-ffshi2.c): New stub file.
  1343. (stormy16-lib2-lshrsi3.c): New stub file.
  1344. (stormy16-lib2-modsi3.c): New stub file.
  1345. (stormy16-lib2-parityhi2.c): New stub file.
  1346. (stormy16-lib2-popcounthi2.c): New stub file.
  1347. (stormy16-lib2-udivmodsi4.c): New stub file.
  1348. (stormy16-lib2-udivsi3.c): New stub file.
  1349. (stormy16-lib2-umodsi3.c): New stub file.
  1350. 2009-11-27 Richard Henderson <rth@redhat.com>
  1351. * config/i386/sse.md (vec_interleave_highv16qi,
  1352. vec_interleave_lowv16qi, vec_interleave_highv8hi,
  1353. vec_interleave_lowv8hi, vec_interleave_highv4si,
  1354. vec_interleave_lowv4si, vec_interleave_highv2di,
  1355. vec_interleave_lowv2di, vec_interleave_highv4sf,
  1356. vec_interleave_lowv4sf, vec_interleave_highv2df,
  1357. vec_interleave_lowv2df): Remove expanders.
  1358. (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
  1359. sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
  1360. sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
  1361. Rename to their proper vec_interleave equivalent. Update all users
  1362. to the new name.
  1363. * config/i386/i386.c, config/i386/i386.md: Update all users.
  1364. 2009-11-27 Michael Matz <matz@suse.de>
  1365. PR rtl-optimization/42084
  1366. * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
  1367. use it to stop walking.
  1368. (expand_gimple_cond): Adjust call to above.
  1369. 2009-11-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1370. PR target/41810
  1371. * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
  1372. [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
  1373. __extension__ to allow cast from function pointer to object
  1374. pointer in C++.
  1375. * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
  1376. 2009-11-27 Steven Bosscher <steven@gcc.gnu.org>
  1377. * config/ia64/itanium1.md: Remove.
  1378. * config/ia64/ia64.md: Do not include it.
  1379. * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
  1380. "itanium1", and "merced" from the processor alias table.
  1381. (clocks, add_cycles): Remove global variables.
  1382. (ia64_sched_reorder2): Don't set/use them.
  1383. (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
  1384. (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
  1385. 2009-11-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  1386. * config/s390/s390.c (last_scheduled_insn): New variable.
  1387. (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
  1388. functions.
  1389. (s390_sched_reorder, s390_sched_variable_issue): New functions.
  1390. (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
  1391. defined.
  1392. 2009-11-27 Michael Matz <matz@suse.de>
  1393. PR c++/41906
  1394. * tree-eh.c (lower_catch): Stop after expanding a catch-all.
  1395. 2009-11-27 Richard Guenther <rguenther@suse.de>
  1396. * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
  1397. TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
  1398. * loop-init.c (pass_rtl_move_loop_invariants): Use
  1399. TV_LOOP_MOVE_INVARIANTS.
  1400. (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
  1401. (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
  1402. (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
  1403. 2009-11-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  1404. * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
  1405. 2009-11-27 Jakub Jelinek <jakub@redhat.com>
  1406. * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
  1407. unused insn variable.
  1408. * genemit.c (output_peephole2_scratches): Only declare and initialize
  1409. _regs_allocated if it will be ever used.
  1410. * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
  1411. succ_bb variable.
  1412. (create_empty_loop_on_edge): Remove unused freq and cnt variables.
  1413. * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
  1414. variable.
  1415. * opts.c (decode_options): If optimize is bigger than 255,
  1416. set it to 255.
  1417. 2009-11-26 Richard Henderson <rth@redhat.com>
  1418. * config/i386/sse.md (mulv16qi3): Change back from an expander
  1419. to an insn-and-split.
  1420. (mulv4si): Mention AVX not XOP for AVX exception.
  1421. (*sse2_mulv4si3): Likewise.
  1422. (mulv2di3): Use vmulld not vpmacsdd for XOP expansion. Tidy.
  1423. 2009-11-26 Bernd Schmidt <bernd.schmidt@analog.com>
  1424. * cfgexpand (n_stack_vars_conflict): New static variable.
  1425. (triangular_index): Reduce likelyhood of overflow by performing
  1426. the division before the multiplication.
  1427. (resize_stack_vars_conflict): Call fatal_error if overflow
  1428. occurred in triangular_index. Update n_stack_vars_conflict.
  1429. PR rtl-opt/38582
  1430. * regrename.c (struct du_chain): Remove member earlyclobber.
  1431. (scan_rtx_reg): Don't set it. Remove argument earlyclobber,
  1432. all callers changed.
  1433. (scan_rtx): Remove argument earlyclobber, all callers changed.
  1434. (hide_operands, restore_operands, record_out_operands): New functions,
  1435. broken out of build_def_use.
  1436. (build_def_use): Call them as necessary.
  1437. * regrename.c (struct du_head): New members id, conflicts,
  1438. hard_conflicts and cannot_rename.
  1439. (enum scan_actions): Remove terminate_all_read and
  1440. terminate_overlapping_read; add mark_all_read.
  1441. (scan_actions_name): Likewise.
  1442. (du_head_p): New typedef. Define a vector type for it.
  1443. (id_to_chain): New static variable.
  1444. (note_sets, clear_dead_regs): Delete functions.
  1445. (free_chain_data): New function.
  1446. (merge_overlapping_regs): Simply walk the conflicts bitmap.
  1447. Remove argument B, all callers changed.
  1448. (regrename_optimize): Allocate id_to_chain. Ignore chains that have
  1449. the cannot_rename bit set. Update regno and nregs of a renamed chain.
  1450. Call free_chain_data when done.
  1451. (do_replace): Remove death notes when the renamed reg is set in the
  1452. last insn; add them if not.
  1453. (mark_conflict, note_sets_clobbers): New static function.
  1454. (fail_current_block, current_id, open_chains_set, live_hard_regs): New
  1455. static variables.
  1456. (scan_rtx_reg): Keep track of conflicts between chains, and between
  1457. chains and hard regs. Don't terminate chains when we find a read we
  1458. can't handle, mark it unrenameable instead. For terminate_write,
  1459. terminate chains that are written with an exact match or a superset
  1460. of registers. Set fail_current_block if multi-word lifetimes are too
  1461. complex to handle.
  1462. (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
  1463. (build_def_use): Initialize current_id, live_chains and live_hard_regs;
  1464. free memory for them when done.
  1465. Rearrange the steps so that earlyclobbers are noted before reads
  1466. are processed. Add new steps to keep track of hard register lifetimes
  1467. outside insn operands.
  1468. 2009-11-26 Richard Guenther <rguenther@suse.de>
  1469. * tree-ssa-dce.c (nr_walks): New variable.
  1470. (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
  1471. (perform_tree_ssa_dce): Init nr_walks.
  1472. 2009-11-26 Michael Matz <matz@suse.de>
  1473. PR tree-optimization/41905
  1474. * tree-eh.c (lower_eh_constructs_2): Don't add assignments
  1475. below statements that can't fall thru.
  1476. 2009-11-26 Michael Matz <matz@suse.de>
  1477. * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
  1478. expand_builtin_sprintf): Remove.
  1479. (expand_builtin): Don't call them.
  1480. 2009-11-26 Richard Guenther <rguenther@suse.de>
  1481. * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
  1482. 2009-11-26 Nick Clifton <nickc@redhat.com>
  1483. * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
  1484. being used incorrectly.
  1485. (rx_function_ok_for_sibcall): New function. Do not allow indirect
  1486. sibcalls, or sibcalls from interrupt functions.
  1487. (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
  1488. * config/rx/rx.md (sibcall): Convert to a define_expand. Check
  1489. for a MEM inside a MEM.
  1490. (sibcall_value): Likewise.
  1491. (sibcall_internal): New pattern containing old sibcall pattern.
  1492. (sibcall_value_internal): Likewise.
  1493. 2009-11-25 Richard Henderson <rth@redhat.com>
  1494. * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
  1495. optional 3rd argument to define the mode.
  1496. * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
  1497. (V2UDI, V4USI, V8UHI, V16UQI): New.
  1498. (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
  1499. V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
  1500. V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
  1501. * config/i386/i386-modes.def: Rearrange for double-wide AVX.
  1502. * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
  1503. * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
  1504. (bdesc_args): Add the builtin definitions to match.
  1505. (ix86_expand_builtin): Expand them.
  1506. (ix86_builtin_vectorization_cost): Rename from
  1507. x86_builtin_vectorization_cost.
  1508. (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
  1509. doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
  1510. expand_vec_perm_blend, expand_vec_perm_vpermil,
  1511. expand_vec_perm_pshufb, expand_vec_perm_1,
  1512. expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
  1513. expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
  1514. expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
  1515. ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
  1516. ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
  1517. ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
  1518. TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
  1519. * sse.md (SSEMODE_EO): New.
  1520. (vec_extract_even<mode>): Use SSEMODE_EO and
  1521. ix86_expand_vec_extract_even_odd.
  1522. (vec_extract_odd<mode>): Likewise.
  1523. (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
  1524. vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
  1525. 2009-11-25 Richard Henderson <rth@redhat.com>
  1526. * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
  1527. * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
  1528. * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
  1529. * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
  1530. the vector constant here...
  1531. (vect_transform_slp_perm_load): ... do it here instead. Validate
  1532. that the permutation vector is implementable by the target.
  1533. 2009-11-25 Jakub Jelinek <jakub@redhat.com>
  1534. * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
  1535. * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
  1536. * print-rtl.c (print_rtx): When printing newline, append
  1537. print_rtx_head and indentation after the newline.
  1538. PR target/42165
  1539. * config/i386/i386.c (print_operand): For 32-byte memory use
  1540. YMMWORD in -masm=intel mode. Use TBYTE instead of XWORD.
  1541. * config/i386/i386.md (crc32modesuffix): Expand to nothing
  1542. in -masm=intel mode.
  1543. (sse4_2_crc32di): Print just crc32 instead of crc32q in
  1544. -masm=intel mode.
  1545. * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
  1546. memory operand in -masm=intel mode.
  1547. * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
  1548. *sse2_pinsrw): Likewise.
  1549. (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
  1550. q suffix in -masm=intel mode.
  1551. 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
  1552. PR target/10127
  1553. PR ada/20548
  1554. PR middle-end/42004
  1555. * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
  1556. (dwarf2out_stack_adjust): ...this. Do not adjust the arg size for
  1557. ACCUMULATE_OUTGOING_ARGS targets. Rename former version to...
  1558. (dwarf2out_notice_stack_adjust): ...this. Adjust for above renaming.
  1559. (dwarf2out_frame_debug_expr): Revert previous change and adjust for
  1560. above renaming.
  1561. (dwarf2out_frame_debug): Add ??? comment. Adjust for above renaming.
  1562. 2009-11-25 Uros Bizjak <ubizjak@gmail.com>
  1563. * config/i386/predicates.md (emms_operation): New predicate.
  1564. (vzeroupper_operation): Ditto.
  1565. (vzeroall_operation): Improve pattern recognition.
  1566. * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
  1567. (avx_vzeroupper): Change insn pattern to expander.
  1568. (*avx_vzeroupper): New insn pattern. Use vzeroupper_operation
  1569. predicate.
  1570. (*avx_vzeroall): Remove operands 1 and 2.
  1571. * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
  1572. (mmx_femms): Ditto.
  1573. (*mmx_emms): New insn pattern. Use emms_operation predicate.
  1574. (*mmx_femms): Ditto.
  1575. * config/i386/i386.c (enum ix86_builtins)
  1576. <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
  1577. (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
  1578. Remove initailization.
  1579. <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
  1580. 2009-11-25 Paul Brook <paul@codesourcery.com>
  1581. * config/arm/arm.md (consttable_4): Handle (high ...).
  1582. 2009-11-25 Robert Nelson <robert.nelson@digikey.com>
  1583. Richard Earnshaw <rearnsha@arm.com>
  1584. * arm.h (enum vfp_reg_type): Add VFP_NONE.
  1585. * arm.c (all_fpus): Use it for floating point units that aren't based
  1586. on the VFP architecture.
  1587. (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
  1588. enum machine_mode.
  1589. 2009-11-25 H.J. Lu <hongjiu.lu@intel.com>
  1590. * alias.c: Remove trailing white spaces.
  1591. * alloc-pool.c: Likewise.
  1592. * alloc-pool.h: Likewise.
  1593. * attribs.c: Likewise.
  1594. * auto-inc-dec.c: Likewise.
  1595. * basic-block.h: Likewise.
  1596. * bb-reorder.c: Likewise.
  1597. * bt-load.c: Likewise.
  1598. * builtins.c: Likewise.
  1599. * builtins.def: Likewise.
  1600. * c-common.c: Likewise.
  1601. * c-common.h: Likewise.
  1602. * c-cppbuiltin.c: Likewise.
  1603. * c-decl.c: Likewise.
  1604. * c-format.c: Likewise.
  1605. * c-lex.c: Likewise.
  1606. * c-omp.c: Likewise.
  1607. * c-opts.c: Likewise.
  1608. * c-parser.c: Likewise.
  1609. * c-pretty-print.c: Likewise.
  1610. * c-tree.h: Likewise.
  1611. * c-typeck.c: Likewise.
  1612. * caller-save.c: Likewise.
  1613. * calls.c: Likewise.
  1614. * cfg.c: Likewise.
  1615. * cfganal.c: Likewise.
  1616. * cfgexpand.c: Likewise.
  1617. * cfghooks.c: Likewise.
  1618. * cfghooks.h: Likewise.
  1619. * cfglayout.c: Likewise.
  1620. * cfgloop.c: Likewise.
  1621. * cfgloop.h: Likewise.
  1622. * cfgloopmanip.c: Likewise.
  1623. * cfgrtl.c: Likewise.
  1624. * cgraph.c: Likewise.
  1625. * cgraph.h: Likewise.
  1626. * cgraphbuild.c: Likewise.
  1627. * cgraphunit.c: Likewise.
  1628. * cif-code.def: Likewise.
  1629. * collect2.c: Likewise.
  1630. * combine.c: Likewise.
  1631. * convert.c: Likewise.
  1632. * coverage.c: Likewise.
  1633. * crtstuff.c: Likewise.
  1634. * cse.c: Likewise.
  1635. * cselib.c: Likewise.
  1636. * dbgcnt.c: Likewise.
  1637. * dbgcnt.def: Likewise.
  1638. * dbgcnt.h: Likewise.
  1639. * dbxout.c: Likewise.
  1640. * dce.c: Likewise.
  1641. * ddg.c: Likewise.
  1642. * ddg.h: Likewise.
  1643. * defaults.h: Likewise.
  1644. * df-byte-scan.c: Likewise.
  1645. * df-core.c: Likewise.
  1646. * df-problems.c: Likewise.
  1647. * df-scan.c: Likewise.
  1648. * df.h: Likewise.
  1649. * dfp.c: Likewise.
  1650. * diagnostic.c: Likewise.
  1651. * diagnostic.h: Likewise.
  1652. * dominance.c: Likewise.
  1653. * domwalk.c: Likewise.
  1654. * double-int.c: Likewise.
  1655. * double-int.h: Likewise.
  1656. * dse.c: Likewise.
  1657. * dwarf2asm.c: Likewise.
  1658. * dwarf2asm.h: Likewise.
  1659. * dwarf2out.c: Likewise.
  1660. * ebitmap.c: Likewise.
  1661. * ebitmap.h: Likewise.
  1662. * emit-rtl.c: Likewise.
  1663. * et-forest.c: Likewise.
  1664. * except.c: Likewise.
  1665. * except.h: Likewise.
  1666. * expmed.c: Likewise.
  1667. * expr.c: Likewise.
  1668. * expr.h: Likewise.
  1669. * final.c: Likewise.
  1670. * flags.h: Likewise.
  1671. * fold-const.c: Likewise.
  1672. * function.c: Likewise.
  1673. * function.h: Likewise.
  1674. * fwprop.c: Likewise.
  1675. * gcc.c: Likewise.
  1676. * gcov-dump.c: Likewise.
  1677. * gcov-io.c: Likewise.
  1678. * gcov-io.h: Likewise.
  1679. * gcov.c: Likewise.
  1680. * gcse.c: Likewise.
  1681. * genattr.c: Likewise.
  1682. * genattrtab.c: Likewise.
  1683. * genautomata.c: Likewise.
  1684. * genchecksum.c: Likewise.
  1685. * genconfig.c: Likewise.
  1686. * genflags.c: Likewise.
  1687. * gengtype-parse.c: Likewise.
  1688. * gengtype.c: Likewise.
  1689. * gengtype.h: Likewise.
  1690. * genmddeps.c: Likewise.
  1691. * genmodes.c: Likewise.
  1692. * genopinit.c: Likewise.
  1693. * genpreds.c: Likewise.
  1694. * gensupport.c: Likewise.
  1695. * ggc-common.c: Likewise.
  1696. * ggc-page.c: Likewise.
  1697. * ggc-zone.c: Likewise.
  1698. * ggc.h: Likewise.
  1699. * gimple-iterator.c: Likewise.
  1700. * gimple-low.c: Likewise.
  1701. * gimple-pretty-print.c: Likewise.
  1702. * gimple.c: Likewise.
  1703. * gimple.def: Likewise.
  1704. * gimple.h: Likewise.
  1705. * gimplify.c: Likewise.
  1706. * graphds.c: Likewise.
  1707. * graphite-clast-to-gimple.c: Likewise.
  1708. * gthr-nks.h: Likewise.
  1709. * gthr-posix.c: Likewise.
  1710. * gthr-posix.h: Likewise.
  1711. * gthr-posix95.h: Likewise.
  1712. * gthr-single.h: Likewise.
  1713. * gthr-tpf.h: Likewise.
  1714. * gthr-vxworks.h: Likewise.
  1715. * gthr.h: Likewise.
  1716. * haifa-sched.c: Likewise.
  1717. * hard-reg-set.h: Likewise.
  1718. * hooks.c: Likewise.
  1719. * hooks.h: Likewise.
  1720. * hosthooks.h: Likewise.
  1721. * hwint.h: Likewise.
  1722. * ifcvt.c: Likewise.
  1723. * incpath.c: Likewise.
  1724. * init-regs.c: Likewise.
  1725. * integrate.c: Likewise.
  1726. * ipa-cp.c: Likewise.
  1727. * ipa-inline.c: Likewise.
  1728. * ipa-prop.c: Likewise.
  1729. * ipa-pure-const.c: Likewise.
  1730. * ipa-reference.c: Likewise.
  1731. * ipa-struct-reorg.c: Likewise.
  1732. * ipa-struct-reorg.h: Likewise.
  1733. * ipa-type-escape.c: Likewise.
  1734. * ipa-type-escape.h: Likewise.
  1735. * ipa-utils.c: Likewise.
  1736. * ipa-utils.h: Likewise.
  1737. * ipa.c: Likewise.
  1738. * ira-build.c: Likewise.
  1739. * ira-color.c: Likewise.
  1740. * ira-conflicts.c: Likewise.
  1741. * ira-costs.c: Likewise.
  1742. * ira-emit.c: Likewise.
  1743. * ira-int.h: Likewise.
  1744. * ira-lives.c: Likewise.
  1745. * ira.c: Likewise.
  1746. * jump.c: Likewise.
  1747. * lambda-code.c: Likewise.
  1748. * lambda-mat.c: Likewise.
  1749. * lambda-trans.c: Likewise.
  1750. * lambda.h: Likewise.
  1751. * langhooks.c: Likewise.
  1752. * lcm.c: Likewise.
  1753. * libgcov.c: Likewise.
  1754. * lists.c: Likewise.
  1755. * loop-doloop.c: Likewise.
  1756. * loop-init.c: Likewise.
  1757. * loop-invariant.c: Likewise.
  1758. * loop-iv.c: Likewise.
  1759. * loop-unroll.c: Likewise.
  1760. * lower-subreg.c: Likewise.
  1761. * lto-cgraph.c: Likewise.
  1762. * lto-compress.c: Likewise.
  1763. * lto-opts.c: Likewise.
  1764. * lto-section-in.c: Likewise.
  1765. * lto-section-out.c: Likewise.
  1766. * lto-streamer-in.c: Likewise.
  1767. * lto-streamer-out.c: Likewise.
  1768. * lto-streamer.c: Likewise.
  1769. * lto-streamer.h: Likewise.
  1770. * lto-symtab.c: Likewise.
  1771. * lto-wpa-fixup.c: Likewise.
  1772. * matrix-reorg.c: Likewise.
  1773. * mcf.c: Likewise.
  1774. * mode-switching.c: Likewise.
  1775. * modulo-sched.c: Likewise.
  1776. * omega.c: Likewise.
  1777. * omega.h: Likewise.
  1778. * omp-low.c: Likewise.
  1779. * optabs.c: Likewise.
  1780. * optabs.h: Likewise.
  1781. * opts-common.c: Likewise.
  1782. * opts.c: Likewise.
  1783. * params.def: Likewise.
  1784. * params.h: Likewise.
  1785. * passes.c: Likewise.
  1786. * plugin.c: Likewise.
  1787. * postreload-gcse.c: Likewise.
  1788. * postreload.c: Likewise.
  1789. * predict.c: Likewise.
  1790. * predict.def: Likewise.
  1791. * pretty-print.c: Likewise.
  1792. * pretty-print.h: Likewise.
  1793. * print-rtl.c: Likewise.
  1794. * print-tree.c: Likewise.
  1795. * profile.c: Likewise.
  1796. * read-rtl.c: Likewise.
  1797. * real.c: Likewise.
  1798. * recog.c: Likewise.
  1799. * reg-stack.c: Likewise.
  1800. * regcprop.c: Likewise.
  1801. * reginfo.c: Likewise.
  1802. * regmove.c: Likewise.
  1803. * regrename.c: Likewise.
  1804. * regs.h: Likewise.
  1805. * regstat.c: Likewise.
  1806. * reload.c: Likewise.
  1807. * reload1.c: Likewise.
  1808. * resource.c: Likewise.
  1809. * rtl.c: Likewise.
  1810. * rtl.def: Likewise.
  1811. * rtl.h: Likewise.
  1812. * rtlanal.c: Likewise.
  1813. * sbitmap.c: Likewise.
  1814. * sched-deps.c: Likewise.
  1815. * sched-ebb.c: Likewise.
  1816. * sched-int.h: Likewise.
  1817. * sched-rgn.c: Likewise.
  1818. * sched-vis.c: Likewise.
  1819. * sdbout.c: Likewise.
  1820. * sel-sched-dump.c: Likewise.
  1821. * sel-sched-dump.h: Likewise.
  1822. * sel-sched-ir.c: Likewise.
  1823. * sel-sched-ir.h: Likewise.
  1824. * sel-sched.c: Likewise.
  1825. * sel-sched.h: Likewise.
  1826. * sese.c: Likewise.
  1827. * sese.h: Likewise.
  1828. * simplify-rtx.c: Likewise.
  1829. * stack-ptr-mod.c: Likewise.
  1830. * stmt.c: Likewise.
  1831. * stor-layout.c: Likewise.
  1832. * store-motion.c: Likewise.
  1833. * stringpool.c: Likewise.
  1834. * stub-objc.c: Likewise.
  1835. * sync-builtins.def: Likewise.
  1836. * target-def.h: Likewise.
  1837. * target.h: Likewise.
  1838. * targhooks.c: Likewise.
  1839. * targhooks.h: Likewise.
  1840. * timevar.c: Likewise.
  1841. * tlink.c: Likewise.
  1842. * toplev.c: Likewise.
  1843. * toplev.h: Likewise.
  1844. * tracer.c: Likewise.
  1845. * tree-affine.c: Likewise.
  1846. * tree-affine.h: Likewise.
  1847. * tree-browser.def: Likewise.
  1848. * tree-call-cdce.c: Likewise.
  1849. * tree-cfg.c: Likewise.
  1850. * tree-cfgcleanup.c: Likewise.
  1851. * tree-chrec.c: Likewise.
  1852. * tree-chrec.h: Likewise.
  1853. * tree-complex.c: Likewise.
  1854. * tree-data-ref.c: Likewise.
  1855. * tree-data-ref.h: Likewise.
  1856. * tree-dfa.c: Likewise.
  1857. * tree-dump.c: Likewise.
  1858. * tree-dump.h: Likewise.
  1859. * tree-eh.c: Likewise.
  1860. * tree-flow-inline.h: Likewise.
  1861. * tree-flow.h: Likewise.
  1862. * tree-if-conv.c: Likewise.
  1863. * tree-inline.c: Likewise.
  1864. * tree-into-ssa.c: Likewise.
  1865. * tree-loop-distribution.c: Likewise.
  1866. * tree-loop-linear.c: Likewise.
  1867. * tree-mudflap.c: Likewise.
  1868. * tree-nested.c: Likewise.
  1869. * tree-nomudflap.c: Likewise.
  1870. * tree-nrv.c: Likewise.
  1871. * tree-object-size.c: Likewise.
  1872. * tree-optimize.c: Likewise.
  1873. * tree-outof-ssa.c: Likewise.
  1874. * tree-parloops.c: Likewise.
  1875. * tree-pass.h: Likewise.
  1876. * tree-phinodes.c: Likewise.
  1877. * tree-predcom.c: Likewise.
  1878. * tree-pretty-print.c: Likewise.
  1879. * tree-profile.c: Likewise.
  1880. * tree-scalar-evolution.c: Likewise.
  1881. * tree-ssa-address.c: Likewise.
  1882. * tree-ssa-alias.c: Likewise.
  1883. * tree-ssa-ccp.c: Likewise.
  1884. * tree-ssa-coalesce.c: Likewise.
  1885. * tree-ssa-copy.c: Likewise.
  1886. * tree-ssa-copyrename.c: Likewise.
  1887. * tree-ssa-dce.c: Likewise.
  1888. * tree-ssa-dom.c: Likewise.
  1889. * tree-ssa-dse.c: Likewise.
  1890. * tree-ssa-forwprop.c: Likewise.
  1891. * tree-ssa-ifcombine.c: Likewise.
  1892. * tree-ssa-live.c: Likewise.
  1893. * tree-ssa-live.h: Likewise.
  1894. * tree-ssa-loop-ch.c: Likewise.
  1895. * tree-ssa-loop-im.c: Likewise.
  1896. * tree-ssa-loop-ivcanon.c: Likewise.
  1897. * tree-ssa-loop-ivopts.c: Likewise.
  1898. * tree-ssa-loop-manip.c: Likewise.
  1899. * tree-ssa-loop-niter.c: Likewise.
  1900. * tree-ssa-loop-prefetch.c: Likewise.
  1901. * tree-ssa-loop-unswitch.c: Likewise.
  1902. * tree-ssa-loop.c: Likewise.
  1903. * tree-ssa-math-opts.c: Likewise.
  1904. * tree-ssa-operands.c: Likewise.
  1905. * tree-ssa-operands.h: Likewise.
  1906. * tree-ssa-phiopt.c: Likewise.
  1907. * tree-ssa-phiprop.c: Likewise.
  1908. * tree-ssa-pre.c: Likewise.
  1909. * tree-ssa-propagate.c: Likewise.
  1910. * tree-ssa-reassoc.c: Likewise.
  1911. * tree-ssa-sccvn.c: Likewise.
  1912. * tree-ssa-sink.c: Likewise.
  1913. * tree-ssa-structalias.c: Likewise.
  1914. * tree-ssa-ter.c: Likewise.
  1915. * tree-ssa-threadedge.c: Likewise.
  1916. * tree-ssa-threadupdate.c: Likewise.
  1917. * tree-ssa-uncprop.c: Likewise.
  1918. * tree-ssa.c: Likewise.
  1919. * tree-ssanames.c: Likewise.
  1920. * tree-switch-conversion.c: Likewise.
  1921. * tree-tailcall.c: Likewise.
  1922. * tree-vect-data-refs.c: Likewise.
  1923. * tree-vect-generic.c: Likewise.
  1924. * tree-vect-loop-manip.c: Likewise.
  1925. * tree-vect-loop.c: Likewise.
  1926. * tree-vect-patterns.c: Likewise.
  1927. * tree-vect-slp.c: Likewise.
  1928. * tree-vect-stmts.c: Likewise.
  1929. * tree-vectorizer.c: Likewise.
  1930. * tree-vectorizer.h: Likewise.
  1931. * tree-vrp.c: Likewise.
  1932. * tree.c: Likewise.
  1933. * tree.def: Likewise.
  1934. * tree.h: Likewise.
  1935. * treestruct.def: Likewise.
  1936. * unwind-compat.c: Likewise.
  1937. * unwind-dw2-fde-glibc.c: Likewise.
  1938. * unwind-dw2.c: Likewise.
  1939. * value-prof.c: Likewise.
  1940. * value-prof.h: Likewise.
  1941. * var-tracking.c: Likewise.
  1942. * varasm.c: Likewise.
  1943. * varpool.c: Likewise.
  1944. * vec.c: Likewise.
  1945. * vec.h: Likewise.
  1946. * vmsdbgout.c: Likewise.
  1947. * web.c: Likewise.
  1948. * xcoffout.c: Likewise.
  1949. 2009-11-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1950. * pa.c (output_call): Only use sr4 for long interspace calls if
  1951. call binds local and generating non PIC code.
  1952. (attr_length_call): Adjust length calculation for above.
  1953. 2009-11-25 Uros Bizjak <ubizjak@gmail.com>
  1954. * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
  1955. (add<mode>3_carry): Change operand order of plus RTX.
  1956. (*add<mode>3_carry): Ditto.
  1957. (*addsi3_carry_zext): Ditto.
  1958. (*add<dwi>3_doubleword): Update for changed operand order.
  1959. (*negti2_1 splitter): Ditto.
  1960. (*negdi2_1 splitter): Ditto.
  1961. (<plusminus_insn><mode>3_carry): Macroize expander from
  1962. {add,sub}<mode>3_carry patterns using plusminus code iterator.
  1963. (*<plusminus_insn><mode>3_carry): Macroize insn from
  1964. *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
  1965. (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
  1966. patterns using SDWIM mode iterator.
  1967. (*neg<dwi>2_doubleword): New insn_and_split pattern. Macroize
  1968. pattern from *neg{di,ti}2_1 patterns and corresponding splitters
  1969. using DWIH mode iterator.
  1970. (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
  1971. using SWI mode iterator.
  1972. (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
  1973. (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
  1974. patterns using SWIM mode iterator.
  1975. (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
  1976. patterns using SWI248 mode iterator.
  1977. (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
  1978. patterns using SWI mode iterator.
  1979. (*one_cmpl<mode>2_2 splitter): Macroize splitter from
  1980. one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
  1981. 2009-11-24 Michael Matz <matz@suse.de>
  1982. * expr.c (set_storage_via_libcall): Fix build_call_expr call.
  1983. 2009-11-24 David Binderman <dcb314@hotmail.com>
  1984. * expr.c (store_field): Remove set but not used local variable
  1985. width_mask.
  1986. (expand_expr_real_2): Remove treeop2.
  1987. * gcse.c (update_ld_motion_stores): Remove new_rtx.
  1988. * haifa-sched.c (max_issue): Remove points.
  1989. (sched_create_recovery_edges): Remove e.
  1990. * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
  1991. 2009-11-24 Nick Clifton <nickc@redhat.com>
  1992. * config/v850/v850.c (function_arg): Fix handling of zero-length
  1993. function arguments.
  1994. 2009-11-24 Michael Matz <matz@suse.de>
  1995. * tree.h (union tree_ann_d): Don't declare.
  1996. (tree_base): Remove ann field.
  1997. (struct var_ann_d): Declare forward.
  1998. (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
  1999. (DECL_VAR_ANN_PTR): New macro.
  2000. * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
  2001. accept only VAR, PARM or RESULT decls.
  2002. (create_tree_common_ann): Remove.
  2003. (remove_referenced_var): Use DECL_VAR_ANN_PTR.
  2004. * tree-eh.c (lookup_expr_eh_lp): Remove.
  2005. * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
  2006. DECL_VAR_ANN_PTR.
  2007. (ann_type, tree_common_ann, get_tree_common_ann): Remove.
  2008. * tree-flow.h (enum tree_ann_type): Remove.
  2009. (struct tree_ann_common_d): Remove.
  2010. (struct var_ann_d): Remove common field.
  2011. (union tree_ann_d): Remove.
  2012. (tree_ann_t, tree_ann_common_t): Remove typedefs.
  2013. (tree_common_ann, get_tree_common_ann, ann_type,
  2014. create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
  2015. * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
  2016. * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
  2017. * builtins.c (expand_builtin_memcpy): Use
  2018. currently_expanding_gimple_stmt instead of tree annotation.
  2019. (expand_builtin_memset_args): Ditto.
  2020. * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
  2021. (expand_call_stmt): Don't set tree annotation.
  2022. (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
  2023. * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
  2024. * gimple.h (currently_expanding_gimple_stmt): Declare.
  2025. 2009-11-24 Paolo Carlini <paolo.carlini@oracle.com>
  2026. * dwarf2out.c (add_location_or_const_value_attribute): Remove
  2027. useless NOTE_VAR_LOCATION_STATUS call.
  2028. * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
  2029. 2009-11-24 Rafael Avila de Espindola <espindola@google.com>
  2030. * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
  2031. being called recursively.
  2032. 2009-11-24 Basile Starynkevitch <basile@starynkevitch.net>
  2033. * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
  2034. $(MD5_H) params.def params.h prefix.h tree-inline.h.
  2035. 2009-11-24 Paul Brook <paul@codesourcery.com>
  2036. * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
  2037. typo.
  2038. 2009-11-24 Julian Brown <julian@codesourcery.com>
  2039. Paul Brook <paul@codesourcery.com>
  2040. * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
  2041. (arm_dwarf_register_span): New function.
  2042. (arm_dbx_register_number): Add VFPv3 dwarf numbering.
  2043. 2009-11-24 David Binderman <dcb314@hotmail.com>
  2044. * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
  2045. local variable bb_note.
  2046. * dominance.c (get_dominated_by): Likewise local var n.
  2047. (output_file_names): Likewise local var idx.
  2048. (add_location_or_const_value_attribute): Likewise local var status.
  2049. * dwarf2out.c (gen_variable_die): Likewise local var field.
  2050. * emit-rtl.c (no_line_numbers): Remove.
  2051. (init_emit_once): Remove line_numbers parameter.
  2052. * rtl.h (init_emit_once): Adjust prototype.
  2053. * toplev.c (backend_init): Adjust init_emit_once call.
  2054. 2009-11-24 Richard Guenther <rguenther@suse.de>
  2055. PR tree-optimization/42142
  2056. * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
  2057. Handle iv-dependent (non-)kills properly.
  2058. (mark_aliased_reaching_defs_necessary): Pass the basic-block
  2059. of the reference statement to mark_aliased_reaching_defs_necessary_1.
  2060. 2009-11-24 Martin Jambor <mjambor@suse.cz>
  2061. PR tree-optimization/42154
  2062. * tree-sra.c (struct access): Added comments.
  2063. (sra_modify_expr): Build references to the old aggregate with
  2064. build_ref_for_offset instead of reusing access->expr.
  2065. (load_assign_lhs_subreplacements): Likewise.
  2066. 2009-11-24 Uros Bizjak <ubizjak@gmail.com>
  2067. * config/i386/i386.md (add<mode>3_carry): Change insn pattern
  2068. to expander.
  2069. (sub<mode>3_carry): Ditto.
  2070. (x86_mov<mode>cc_0_m1): Ditto.
  2071. (*add<mode>3_carry): New insn pattern. Use VOIDmode match_operator
  2072. for ix86_carry_flag_operator operator predicate.
  2073. (*sub<mode>3_carry): Ditto.
  2074. (*x86_mov<mode>cc_0_m1): Ditto.
  2075. (*addsi3_carry_zext): Use VOIDmode match_operator for
  2076. ix86_carry_flag_operator operator predicate.
  2077. (*subsi3_carry_zext): Ditto.
  2078. (*x86_mov<mode>cc_0_m1_s): Ditto.
  2079. (*x86_mov<mode>cc_0_m1_neg): Ditto.
  2080. * config/i386/predocates.md (ix86_carry_flag_operator): Do not
  2081. check operator sub-expressions for FLAGS_REG and const0_rtx.
  2082. * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
  2083. (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
  2084. (ix86_expand_int_addcc): Update calls to
  2085. gen_{add,sub}{qi,hi,si,di}3_carry. Do not set mode of compare_op.
  2086. (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
  2087. Do not set mode of compare operation.
  2088. 2009-11-23 Jan Hubicka <jh@suse.cz>
  2089. PR middle-end/42151
  2090. * ipa-inline.c (inline_transform): Avoid ICE when transform is called
  2091. twice.
  2092. 2009-11-23 Jan Hubicka <jh@suse.cz>
  2093. * ipa-cp.c (ipcp_compute_node_scale): Work around completely
  2094. wrong profile updates.
  2095. * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
  2096. having largest frequency.
  2097. * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
  2098. used uninitalized warning.
  2099. * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
  2100. frequencies.
  2101. 2009-11-23 Uros Bizjak <ubizjak@gmail.com>
  2102. * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
  2103. of gen_rtx_REG to generate operand 5.
  2104. (*cmp_ssub_sidi): Ditto.
  2105. 2009-11-23 Richard Henderson <rth@redhat.com>
  2106. * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
  2107. mismatch.
  2108. 2009-11-23 Paul Brook <paul@codesourcery.com>
  2109. * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
  2110. case for noreturn functions.
  2111. (arm_compute_save_reg_mask): Remove special noreturn handling.
  2112. 2009-11-23 Richard Guenther <rguenther@suse.de>
  2113. * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
  2114. size for DECL bases.
  2115. 2009-11-22 Richard Henderson <rth@redhat.com>
  2116. * i386.c (avx_vpermilp_parallel): New function.
  2117. * i386-protos.h: Declare it.
  2118. * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
  2119. avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
  2120. * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
  2121. (ssescalarnum, ssedoublesizemode): Add AVX modes.
  2122. (vpermilbits): Remove.
  2123. (avx_vpermil<mode>): Change insns to expanders.
  2124. (*avx_vpermil<mode>): New. Use vec_select.
  2125. 2009-11-22 Richard Earnshaw <rearnsha@arm.com>
  2126. * opts.c (decode_options): Don't enable flag_schedule_insns
  2127. when optimizing for size.
  2128. * doc/invoke.texi: Document change.
  2129. 2009-11-22 Uros Bizjak <ubizjak@gmail.com>
  2130. PR target/42113
  2131. * config/alpha/alpha.md (*cmp_sadd_si): Change mode
  2132. of scratch register to SImode.
  2133. (*cmp_sadd_sidi): Ditto.
  2134. (*cmp_ssub_si): Ditto.
  2135. (*cmp_ssub_sidi): Ditto.
  2136. 2009-11-21 Ian Lance Taylor <iant@google.com>
  2137. * Makefile.in (HOST_LIBS): Move higher in file.
  2138. (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
  2139. is not empty, set to $(CC) and $(CFLAGS).
  2140. 2009-11-22 Martin Jambor <mjambor@suse.cz>
  2141. * tree-cfg.c (verify_types_in_gimple_reference): Error out on
  2142. V_C_E of an SSA_NAME or an invariant if lvalue is required.
  2143. (verify_gimple_call): Verify LHS also with with
  2144. verify_types_in_gimple_reference.
  2145. 2009-11-21 Martin Jambor <mjambor@suse.cz>
  2146. PR middle-end/42025
  2147. * tree-sra.c (access_precludes_ipa_sra_p): New function.
  2148. (splice_param_accesses): Check all accesses by calling
  2149. access_precludes_ipa_sra_p.
  2150. (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
  2151. not convert types if it is true.
  2152. (sra_ipa_modify_assign): Convert types in case of mismatch.
  2153. 2009-11-21 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
  2154. * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
  2155. for operand 1.
  2156. 2009-11-21 Adam Nemet <adambnemet@gmail.com>
  2157. * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
  2158. (mips_mulsidi3_gen_fn): Declare new function.
  2159. * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
  2160. * config/mips/mips.md (<u>mulsidi3): Change condition to use
  2161. mips_mulsidi3_gen_fn. Use mips_mulsidi3_gen_fn to generate the insn.
  2162. (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
  2163. (mulsidi3_64bit_dmul): New define_insn.
  2164. 2009-11-21 Ben Elliston <bje@au.ibm.com>
  2165. * gengtype-lex.l: Enable noinput flex option.
  2166. (YY_NO_INPUT): Remove define.
  2167. 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
  2168. * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
  2169. (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
  2170. (insert_debug_temps_for_defs): Handle PHI nodes.
  2171. * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
  2172. SSA names.
  2173. 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
  2174. * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
  2175. after remove_phi_node.
  2176. 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
  2177. PR tree-optimization/42078
  2178. * gimple.h (gimple_replace_lhs): New declaration.
  2179. * gimple.c (gimple_replace_lhs): New function.
  2180. * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
  2181. modifying the call.
  2182. 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
  2183. * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
  2184. (xop_mulv2div2di3_low): Same.
  2185. (*xop_pmacsdqh_mem): Same.
  2186. 2009-11-20 Richard Henderson <rth@redhat.com>
  2187. * config/i386/i386-builtin-types.awk: New file.
  2188. * config/i386/i386-builtin-types.def: New file.
  2189. * config/i386/t-i386: Use them to build i386-builtin-types.inc.
  2190. * config/i386/i386.c: Include it.
  2191. (ix86_builtin_type_tab, ix86_get_builtin_type): New.
  2192. (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
  2193. (struct builtin_isa): Remove GTY marker. Replace tree type with
  2194. ix86_builtin_func_type; add set_and_not_built_p.
  2195. (def_builtin): Change type parameter to tcode; use
  2196. ix86_get_builtin_func_type; update all callers. Accept zero mask
  2197. to mean the builtin is unconditionally available.
  2198. (ix86_add_new_builtins): Use set_and_not_built_p instead of type
  2199. being set to NULL.
  2200. (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
  2201. Update some users to rationalized enumeration codes from new include.
  2202. (enum multi_arg_type): Remove. Replace all enumeration values
  2203. with defines to new ix86_builtin_func_type.
  2204. (ix86_init_mmx_sse_builtins): Don't build any types here. Defer
  2205. all type resolution to def_builtin.
  2206. (ix86_init_builtin_types): Split out from ...
  2207. (ix86_init_builtins): ... here. Use ix86_get_builtin_func_type.
  2208. 2009-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
  2209. PR target/41787
  2210. * config/rs6000/rs6000.c (struct machine_function): Revert
  2211. 2009-10-23 change to set VRSAVE to non-0 if we use VSX.
  2212. (rs6000_expand_to_rtl_hook): Ditto.
  2213. (rs6000_check_vector_mode): Ditto.
  2214. (compute_vrsave_mask): Ditto.
  2215. 2009-11-20 Paul Brook <paul@codesourcery.com>
  2216. * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
  2217. * config/arm/arm-cores.def: Add cortex-a5.
  2218. * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
  2219. * config/arm/arm-tune.md: Regenerate.
  2220. 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
  2221. PR middle-end/39960
  2222. * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
  2223. (ref_pos): New field in structure.
  2224. (insert_new_var_in_stmt): New function.
  2225. 2009-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2226. * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
  2227. * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
  2228. (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
  2229. (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
  2230. (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
  2231. INT_LEAST64_TYPE): Define.
  2232. (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
  2233. UINT_LEAST64_TYPE): Define.
  2234. (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
  2235. INT_FAST64_TYPE): Define.
  2236. (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
  2237. UINT_FAST64_TYPE): Define.
  2238. (INTPTR_TYPE, UINTPTR_TYPE): Define.
  2239. 2009-11-20 Julian Brown <julian@codesourcery.com>
  2240. * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
  2241. specially for Thumb-1.
  2242. (ASM_OUTPUT_REG_POP): Likewise.
  2243. 2009-11-19 Jason Merrill <jason@redhat.com>
  2244. * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
  2245. 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
  2246. Rafael Avila de Espindola <espindola@google.com>
  2247. * doc/plugins.texi (Plugin initialization): Added advices for
  2248. retrieving the version of GCC at plugin compilation and loading times.
  2249. 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
  2250. * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
  2251. (dump_active_plugins): output to file everything. Use
  2252. internationalized dump & FMT_FOR_PLUGIN_EVENT.
  2253. 2009-11-19 Richard Guenther <rguenther@suse.de>
  2254. * gimple.c (canonicalize_cond_expr_cond): Strip conversions
  2255. around truth-valued expressions.
  2256. * tree.c (free_lang_data): Untangle check for LTO frontend.
  2257. 2009-11-19 Jakub Jelinek <jakub@redhat.com>
  2258. * tree.c (need_assembler_name_p): Use cgraph_get_node instead
  2259. of cgraph_node_for_decl.
  2260. * cgraph.h (cgraph_node_for_decl): Remove prototype.
  2261. * cgraph.c (cgraph_node_for_decl): Remove.
  2262. (cgraph_get_node): Just return NULL if !cgraph_hash.
  2263. 2009-11-19 Paul Brook <paul@codesourcery.com>
  2264. * config.gcc: Add new ARM --with-fpu options.
  2265. * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
  2266. * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
  2267. 2009-11-18 Richard Guenther <rguenther@suse.de>
  2268. * gimple.h (union gimple_statement_d): Add gsmembase member.
  2269. (gimple_vuse_op): Use gsmembase for access.
  2270. (gimple_vdef_op): Likewise.
  2271. (gimple_vuse): Likewise.
  2272. (gimple_vdef): Likewise.
  2273. (gimple_vuse_ptr): Likewise.
  2274. (gimple_vdef_ptr): Likewise.
  2275. (gimple_set_vuse): Likewise.
  2276. (gimple_set_vdef): Likewise.
  2277. * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
  2278. 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
  2279. * doc/arm-neon-intrinsics.texi: Regenerated.
  2280. 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
  2281. * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
  2282. 2009-11-18 Paul Brook <paul@codesourcery.com>
  2283. Daniel Jacobowitz <dan@codesourcery.com>
  2284. * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
  2285. (arm_arch7em): New variable.
  2286. (all_architectures): Add armv7e-m.
  2287. (arm_override_options): Set arm_arch7em.
  2288. * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
  2289. Include arm_arch7em.
  2290. (arm_arch7em): Declare.
  2291. 2009-11-18 Richard Guenther <rguenther@suse.de>
  2292. * lto-streamer-in.c (input_gimple_stmt): Assert that we find
  2293. a valid field decl if checking is enabled.
  2294. 2009-11-18 Martin Jambor <mjambor@suse.cz>
  2295. * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
  2296. (lto_ipa_fixup_call_notes): Declare.
  2297. * ipa-prop.c (ipa_note_param_call): Store gimple uid.
  2298. (update_call_notes_after_inlining): Copy call stmt uid to the new
  2299. edge.
  2300. (ipa_write_param_call_note): New function.
  2301. (ipa_read_param_call_note): New function
  2302. (ipa_write_node_info): Write also param call notes. Removed a bogus
  2303. comment, reformatted to fit 80 columns.
  2304. (ipa_read_node_info): Read also param call notes. Removed a bogus
  2305. comment. Remove ipa_edge_args_vector growth.
  2306. (lto_ipa_fixup_call_notes): New function.
  2307. * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
  2308. * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
  2309. inlining regardless of flag_wpa.
  2310. (cgraph_decide_inlining_of_small_functions): Likewise.
  2311. (cgraph_decide_inlining): Likewise.
  2312. (inline_read_summary): Likewise.
  2313. 2009-11-18 Jan Hubicka <jh@suse.cz>
  2314. * predict.c (compute_function_frequency): Export.
  2315. * predict.h (compute_function_frequency): Declare.
  2316. * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
  2317. 2009-11-18 Martin Jambor <mjambor@suse.cz>
  2318. * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
  2319. on all nodes we write summaries for.
  2320. 2009-11-18 Shujing Zhao <pearly.zhao@oracle.com>
  2321. PR middle-end/22201
  2322. * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
  2323. (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
  2324. (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
  2325. (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
  2326. (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
  2327. (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
  2328. (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
  2329. description string.
  2330. 2009-11-18 Jakub Jelinek <jakub@redhat.com>
  2331. * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
  2332. unnecessarily.
  2333. (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
  2334. PR c++/3187
  2335. * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
  2336. fields.
  2337. (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
  2338. prototypes.
  2339. * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
  2340. cgraph_materialize_all_clones): Handle same_body aliases.
  2341. * cgraph.c (cgraph_allocate_node): New function.
  2342. (cgraph_create_node): Use it.
  2343. (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
  2344. cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
  2345. (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
  2346. functions.
  2347. * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
  2348. (input_node): Stream in same_body aliases.
  2349. * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
  2350. for same_body aliases.
  2351. (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
  2352. 2009-11-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
  2353. PR other/39888
  2354. * config/darwin.h: Use the extension stub libraries to access
  2355. current libgcc_s features.
  2356. 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
  2357. PR debug/41926
  2358. * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
  2359. (vect_transform_loop): Call it.
  2360. 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
  2361. * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
  2362. released SSA names.
  2363. 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
  2364. PR debug/41888
  2365. PR debug/41886
  2366. * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
  2367. are ok.
  2368. * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
  2369. (try_generate_gimple_bb): Skip debug stmts when finding data refs.
  2370. * sese.c (sese_build_liveouts_bb): Skip debug stmts.
  2371. (sese_bad_liveouts_use): New.
  2372. (sese_reset_debug_liveouts_bb): New.
  2373. (sese_build_liveouts): Use it.
  2374. (rename_variables_in_stmt): Reset debug stmts rather than creating
  2375. new vars for them.
  2376. (expand_scalar_variable_stmt): Likewise.
  2377. 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
  2378. * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
  2379. (df_ref_remove): Likewise.
  2380. 2009-11-17 Jan Hubicka <jh@suse.cz>
  2381. * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
  2382. info.
  2383. 2009-11-17 Eric Botcazou <ebotcazou@adacore.com>
  2384. * toplev.c (process_options): Remove dead code.
  2385. * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
  2386. 2009-11-17 Rafael Avila de Espindola <espindola@google.com>
  2387. * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
  2388. nodes.
  2389. 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  2390. PR tree-optimization/41857
  2391. * tree-ssa-address.c (move_hint_to_base): Use void pointer to
  2392. TYPE's address space instead of pointer to TYPE.
  2393. 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  2394. * reload.c (find_reloads_address): Fix typo.
  2395. 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  2396. * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
  2397. registers in leaf functions if possible.
  2398. 2009-11-17 Maxim Kuvyrkov <maxim@codesourcery.com>
  2399. * config/m68k/m68k-devices.def: Add MCF5441x family.
  2400. 2009-11-17 Jan Hubicka <jh@suse.cz>
  2401. * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
  2402. removed node.
  2403. * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
  2404. 2009-11-17 Uros Bizjak <ubizjak@gmail.com>
  2405. * config/i386/predicates.md (x86_64_szext_general_operand): Do not
  2406. nest ior expressions.
  2407. (x86_64_szext_nonmemory_operand): Ditto.
  2408. (call_insn_operand): Ditto.
  2409. 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
  2410. * stmt.c (expand_asm_stmt): Get locus from stmt.
  2411. 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
  2412. * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
  2413. Create the decl label for the new dest block on demand. Require
  2414. a fallthrough edge if no asm labels were redirected.
  2415. 2009-11-16 Uros Bizjak <ubizjak@gmail.com>
  2416. * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
  2417. operand 1 predicate.
  2418. (cstoresi4): Ditto for operand 2.
  2419. (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
  2420. patterns using SDWIM mode iterator.
  2421. (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
  2422. using SWIM mode iterator.
  2423. (cmpdi_1): Rename from cmpdi_1_rex64.
  2424. (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
  2425. SWI48 mode iterator.
  2426. (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
  2427. using SWI mode iterator.
  2428. (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
  2429. (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
  2430. (*cmpqi_ext_3_insn): Make private.
  2431. (*cmpqi_ext_3_insn_rex64): Make private.
  2432. (cmpstrnsi): Update for renamed cmpdi_1_rex64.
  2433. * config/i386/predicates.md (cmpsi_operand): Remove.
  2434. 2009-11-16 Paul Brook <paul@codesourcery.com>
  2435. * doc/invoke.texi: Document ARM VFPv4 based FPUs.
  2436. * config/arm/arm.c (all_fpus): Add VFPv4 entries.
  2437. 2009-11-14 Jan Hubicka <jh@suse.cz>
  2438. * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
  2439. ENTRY_BLOCK_PTR.
  2440. * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
  2441. zero out all callees.
  2442. * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
  2443. frequency and count match.
  2444. * ipa-inline.c (update_noncloned_frequencies): New function.
  2445. (cgraph_clone_inlined_nodes): Use it.
  2446. * tree-inline.c (copy_bb): Fix frequency scaling; output
  2447. diagnostic on frequency mismatches to dump file.
  2448. (initialize_cfun): Do not scale frequency; fix count scaling;
  2449. initialize entry and exit block frequencies; copy profile info.
  2450. (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
  2451. (copy_body): Use frequency_scale as argument.
  2452. (expand_call_inline): Compute frequency scale and output diagnostic
  2453. to dump file.
  2454. (delete_unreachable_blocks_update_callgrah): Remove checking that
  2455. has to be done after edge redirection.
  2456. (tree_function_versioning): Update initialize_cfun and copy_body call.
  2457. 2009-11-14 Jan Hubicka <jh@suse.cz>
  2458. * cgraph.c (cgraph_release_function_body): Update use of
  2459. ipa_transforms_to_apply.
  2460. (cgraph_remove_node): Remove ipa_transforms_to_apply.
  2461. * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
  2462. * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
  2463. copied body.
  2464. (cgraph_materialize_clone): Remove original if dead.
  2465. * lto-streamer-in.c (lto_read_body): Remove FIXME and
  2466. ipa_transforms_to_apply hack.
  2467. * function.h (struct function): Add ipa_transforms_to_apply.
  2468. * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
  2469. * tree-inline.c (copy_bb): Update sanity check.
  2470. (initialize_cfun): Do not copy ipa_transforms_to_apply.
  2471. (expand_call_inline): remove dead clone originals.
  2472. (tree_function_versioning): Merge transformation queues.
  2473. * passes.c (add_ipa_transform_pass): Remove.
  2474. (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
  2475. tracking.
  2476. (execute_all_ipa_transforms): Update.
  2477. (execute_one_pass): Update.
  2478. 2009-11-14 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
  2479. PR target/21078, 21080
  2480. * config/avr/avr.c (avr_return_addr_rtx): New function for
  2481. builtin_return_address.
  2482. (expand_prologue): Calculate stack usage.
  2483. (avr_asm_function_end_prologue): Output stack size and offset label.
  2484. * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
  2485. (machine_function): Add stack_usage.
  2486. * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
  2487. 2009-11-14 Anatoly Sokolov <aesok@post.ru>
  2488. * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
  2489. new 'outgoing' argument.
  2490. (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
  2491. (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
  2492. * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
  2493. iq2000_function_value_regno_p.
  2494. (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
  2495. * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
  2496. Declare.
  2497. 2009-11-14 Richard Earnshaw <rearnsha@arm.com>
  2498. PR target/42031
  2499. * arm.md (adddi_sesidi_di): Place tied contraint first.
  2500. (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
  2501. (subdi_zesidi_di, subdi_sesidi_di): Likewise.
  2502. (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
  2503. (mulsi3addsi, mulsi3addsi_compare0): Likewise.
  2504. (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
  2505. (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
  2506. (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
  2507. (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
  2508. (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
  2509. 2009-11-14 Uros Bizjak <ubizjak@gmail.com>
  2510. * config/i386/predicates.md (call_register_no_elim_operand):
  2511. New predicate. Reject stack register as valid call operand
  2512. for 32bit targets.
  2513. (call_insn_operand): Use call_register_no_elim_operand.
  2514. 2009-11-13 Richard Henderson <rth@redhat.com>
  2515. * function.c (stack_protect_prologue): Don't bypass expand_expr
  2516. for stack_protect_guard and guard_decl.
  2517. (stack_protect_epilogue): Likewise.
  2518. 2009-11-13 Jan Hubicka <jh@suse.cz>
  2519. * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
  2520. when to PUBLIC is set.
  2521. 2009-11-13 Jakub Jelinek <jakub@redhat.com>
  2522. PR middle-end/42029
  2523. * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
  2524. tmp_load if needed.
  2525. 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
  2526. PR target/41900
  2527. * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
  2528. *call_value_1): Use "lsm" as operand 1 constraint.
  2529. * config/i386/predicates.md (call_insn_operand): Depend on
  2530. index_register_operand to avoid %esp register.
  2531. 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
  2532. Revert:
  2533. 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
  2534. PR target/41900
  2535. * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
  2536. (TARGET_CALL_ESP): New define.
  2537. * config/i386/i386.c (initial_ix86_tune_features): Initialize
  2538. X86_ARCH_CALL_ESP.
  2539. * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
  2540. *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
  2541. *call_1, *call_value_pop_1 and *call_value_1. Depend on
  2542. TARGET_CALL_ESP.
  2543. (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
  2544. New patterns, use "lsm" as operand 1 constraint.
  2545. * config/i386/predicates.md (call_insn_operand): Depend on
  2546. index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
  2547. 2009-11-13 Jason Merrill <jason@redhat.com>
  2548. PR debug/26965
  2549. * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
  2550. Don't emit a second declaration at any scope.
  2551. 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
  2552. PR rtl-optimization/41697
  2553. * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
  2554. a conditional jump has a single successor.
  2555. 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
  2556. * sched-deps.c (init_deps): New parameter lazy_reg_last. Don't
  2557. allocate reg_last when in case lazy_reg_last is true.
  2558. (init_deps_reg_last): New.
  2559. (free_deps): When max_reg is 0, this context is already freed.
  2560. * sched-int.h (init_deps_reg_last): Export.
  2561. (init_deps): Update prototype.
  2562. * sched-ebb.c (schedule_ebb): Update the call to init_deps.
  2563. * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
  2564. * ddg.c (build_intra_loop_deps): Likewise.
  2565. * sel-sched-ir.c (copy_deps_context, create_deps_context,
  2566. reset_deps_context, deps_init_id): Likewise.
  2567. (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
  2568. (free_data_for_scheduled_insn): New, break down from ...
  2569. (free_first_time_insn_data): ... here.
  2570. (has_dependence_p): Allocate reg_last now, when it is needed.
  2571. (extend_insn_data): When maximal LUID is big enough, allocate
  2572. per-insn data in smaller chunks.
  2573. * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
  2574. * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
  2575. in scheduled insn.
  2576. 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
  2577. * config/i386/i386.md (call_value): Fix comment.
  2578. (sibcall_value): Ditto.
  2579. 2009-11-13 Eric Botcazou <ebotcazou@adacore.com>
  2580. * config/i386/linux-unwind.h (x86_frob_update_context): New function.
  2581. (MD_FROB_UPDATE_CONTEXT): Define.
  2582. 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
  2583. Laurent GUERBY <laurent@guerby.net>
  2584. * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
  2585. Do not schedule an %sp restore. Compensate for RETURN_ADDR_OFFSET.
  2586. (sparc_fallback_frame_state): Tidy. Compensate for RETURN_ADDR_OFFSET.
  2587. 2009-11-12 Jan Hubicka <jh@suse.cz>
  2588. * ipa.c (function_and_variable_visibility): Fix my accidentail commit
  2589. and clear DECL_COMMON on localized declarations.
  2590. 2009-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
  2591. PR rtl-opt/38582
  2592. * regrename.c (struct du_head): New structure; some elements moved
  2593. from...
  2594. (struct du_chain): ... this one.
  2595. (open_chains, closed_chains): Now of type struct du_head *.
  2596. (do_replace): Accept du_head argument, not du_chain. All callers
  2597. changed. Modified code to match new data structures.
  2598. (build_def_use): Return a list of du_head structures. Modified code
  2599. to match new data structures.
  2600. (dump_def_use_chain): Accept du_head argument, not du_chain. All
  2601. callers changed. Modified code to match new data structures.
  2602. (merge_overlapping_regs): Accept du_head argument, not du_chain. All
  2603. callers changed. Modified code to match new data structures.
  2604. (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
  2605. Allocate a du_head structure as well as a du_chain when creating a
  2606. new chain. Modified other code to match new data structures.
  2607. 2009-11-12 Jan Hubicka <jh@suse.cz>
  2608. * cgraph.h (varpool_node_name): Declare.
  2609. * cgraphunit.c (process_function_and_variable_attributes): Set
  2610. force_output flag on used variables.
  2611. * ipa.c (function_and_variable_visibility): Dump externally visible
  2612. and needed variables.
  2613. * varpool.c (varpool_node_name): Export.
  2614. (decide_is_variable_needed): Check COMDAT for externally visible vars;
  2615. ignore needed flag.
  2616. 2009-11-12 Uros Bizjak <ubizjak@gmail.com>
  2617. PR middle-end/41930
  2618. * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
  2619. processing if XEXP (x, i) is NULL.
  2620. 2009-11-12 Jan Hubicka <jh@suse.cz>
  2621. * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
  2622. imply PUBLIC || EXTERNAL.
  2623. 2009-11-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
  2624. PR middle-end/41440
  2625. * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
  2626. single successor block, ending with jump created by RTL expander.
  2627. 2009-11-11 Jan Hubicka <jh@suse.cz>
  2628. PR middle-end/41729
  2629. * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
  2630. and WEAK variables at -fwhole-program.
  2631. PR middle-end/41735
  2632. * ipa.c (whole_program_function_and_variable_visility): COMDAT
  2633. functions/variables are not needed even if they are externally visible.
  2634. 2009-11-11 Jan Hubicka <jh@suse.cz>
  2635. (patch by Richard Guenther)
  2636. * lto-streamer-out.c (output_function): Output head of argument list
  2637. earlier.
  2638. * lto-streamer-in.c (input_function): Re-map arguments into merged
  2639. declaration.
  2640. 2009-11-11 Jan Hubicka <jh@suse.cz>
  2641. * lto-cgraph.c: Include gcov-io.h
  2642. (output_profile_summary): New function.
  2643. (output_cgraph): Use it.
  2644. (input_profile_summary): New function.
  2645. (input_cgraph): Use it.
  2646. * coverage.c (build_ctr_info_value): Use varpool; initalize
  2647. DECL_ASSEMBLER_NAME.
  2648. (create_coverage): Likewise.
  2649. * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
  2650. (tree_init_edge_profiler): Likewise.
  2651. * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
  2652. 2009-11-11 Kai Tietz <kai.tietz@onevision.com>
  2653. * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
  2654. * c-pragma.c (def_pragma_macro_value): Likewise.
  2655. (def_pragma_macro): Likewise.
  2656. (pushed_macro_table): Likewise.
  2657. (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
  2658. * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
  2659. 2009-11-11 Basile Starynkevitch <basile@starynkevitch.net>
  2660. * doc/plugins.texi (Registering custom attributes): section
  2661. renamed as (Registering custom attributes or pragmas).
  2662. Mentions custom attributes & pragmas, and c_register_pragma, with
  2663. a small example.
  2664. * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
  2665. pragmas.
  2666. * doc/extend.texi (Function Attributes): Mentions that plugin can
  2667. provide their attributes.
  2668. 2009-11-11 Jon Beniston <jon@beniston.com>
  2669. * config.gcc: Add lm32 elf and uclinux targets.
  2670. * config/lm32: New directory.
  2671. * config/lm32/lm32.c: New file.
  2672. * config/lm32/lm32.h: New file.
  2673. * config/lm32/lm32.md: New file.
  2674. * config/lm32/lm32.opt: New file.
  2675. * config/lm32/lm32-protos.h: New file.
  2676. * config/lm32/constraints.md: New file.
  2677. * config/lm32/predicates.md: New file.
  2678. * config/lm32/sfp-machine.h: New file.
  2679. * config/lm32/t-fprules-softfp: New file.
  2680. * config/lm32/uclinux-elf.h: New file.
  2681. * doc/invoke.texi: Document lm32 options.
  2682. * doc/contrib.texi: Document lm32 porter.
  2683. * doc/install.texi: Document lm32 targets.
  2684. 2009-11-11 Martin Jambor <mjambor@suse.cz>
  2685. PR lto/41932
  2686. * ipa-prop.c (ipa_update_after_lto_read): Call
  2687. ipa_check_create_node_params and ipa_check_create_edge_args. Also
  2688. call ipa_initialize_node_params instead of ipa_populate_param_decls.
  2689. 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
  2690. * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
  2691. (neon_expand_vector_init): Use them. Also handle non-constant
  2692. vectors with identical elements and vectors with only one
  2693. non-constant element.
  2694. (arm_print_operand): Handle 'y' modifier.
  2695. * config/arm/arm-protos.h (neon_make_constant): Declare.
  2696. * config/arm/neon.md (neon_vdup_n<mode>): Split into two
  2697. patterns. Use VX instead of VDQW for the first one. Allow
  2698. a VFP alternative and V32 modes for the second one.
  2699. * config/arm/neon.ml (shape_elt): Add Alternatives.
  2700. (ops): Use Alternatives for vdup lane instructions.
  2701. * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
  2702. * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
  2703. 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
  2704. * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
  2705. operands.
  2706. (movti, mov<mode>): Call force_reg on one operand if required.
  2707. * config/arm/vec-common.md (mov<mode>): Likewise.
  2708. 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
  2709. * config/arm/arm.c (arm_override_options): Enable scheduling for
  2710. Thumb-2.
  2711. 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
  2712. PR target/10127
  2713. PR ada/20548
  2714. * expr.h (anti_adjust_stack_and_probe): Declare.
  2715. * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
  2716. parameter and rewrite head comment.
  2717. (allocate_dynamic_stack_space): Adjust call to above function.
  2718. * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
  2719. * tree.h (dwarf2out_args_size): Delete.
  2720. * dwarf2out.c (dwarf2out_args_size): Make static and move around.
  2721. (dwarf2out_args_size_adjust): Delete prototype and move around.
  2722. (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
  2723. ACCUMULATE_OUTGOING_ARGS targets.
  2724. 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
  2725. * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
  2726. DECL_SIZE of DECL_RESULT before evaluating it.
  2727. 2009-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  2728. PR tree-optimization/41987
  2729. * fold-const.c (const_binop): Avoid using fold_buildN().
  2730. 2009-11-10 Martin Jambor <mjambor@suse.cz>
  2731. * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
  2732. (execute_all_ipa_stmt_fixups): Declare.
  2733. * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
  2734. * ipa-inline.c (pass_ipa_inline): Likewise.
  2735. * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
  2736. * ipa-reference.c (pass_ipa_reference): Likewise.
  2737. * ipa.c (pass_ipa_whole_program_visibility): Likewise.
  2738. * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
  2739. (pass_ipa_lto_finish_out): Likewise.
  2740. * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
  2741. * passes.c (execute_ipa_stmt_fixups): New function.
  2742. (execute_all_ipa_stmt_fixups): New function.
  2743. * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
  2744. 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
  2745. PR ada/20548
  2746. * explow.c (probe_stack_range): Fix typo.
  2747. * config/sparc/sparc.md (probe_stack): New expander.
  2748. 2009-11-09 Dave Korn <dave.korn.cygwin@gmail.com>
  2749. * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
  2750. 2009-11-09 Jason Merrill <jason@redhat.com>
  2751. * gdbinit.in (pgq): New function for printing gimple sequence.
  2752. 2009-11-09 Paul Brook <paul@codesourcery.com>
  2753. Daniel Jacobowitz <dan@codesourcery.com>
  2754. Sandra Loosemore <sandra@codesourcery.com>
  2755. * doc/extend.texi (Half-Precision): Update wording to reflect
  2756. that there are now multiple -mfpu options that enable fp16
  2757. hardware support.
  2758. * doc/invoke.texi: Update list of ARM -mfpu= options.
  2759. * config.gcc: Update ARM --with-fpu option list.
  2760. * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
  2761. vfpv3xd and vfpv3xd-fp16.
  2762. (use_vfp_abi): New function.
  2763. (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
  2764. when undesirable.
  2765. (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
  2766. aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
  2767. (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
  2768. arm_9e_rtx_costs): Only expect double-precision operations if the FPU
  2769. provides them.
  2770. (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
  2771. NEON.
  2772. (arm_print_operand): Handle 'p' modifier.
  2773. (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
  2774. TARGET_FP16.
  2775. * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
  2776. (TARGET_FP16): Define.
  2777. * config/arm/vfp.md: Disable double-precision patterns if the FPU
  2778. does not provide them.
  2779. (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
  2780. double-precision values on a single-precision FPU.
  2781. (movdf_vfp, thumb2_movdf_vfp): Likewise. Use "Dy" for
  2782. double-precision constants.
  2783. (movhf_vfp_neon): New pattern (was movhf_vfp).
  2784. (movhf_vfp): Remove NEON instructions.
  2785. * config/arm/constraints.md: Add new "Dy" constraint for
  2786. double-precision constants. Update description of "Dv".
  2787. * config/arm/arm.md: Disable double-precision patterns if the FPU
  2788. does not provide them
  2789. 2009-11-09 Jakub Jelinek <jakub@redhat.com>
  2790. * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
  2791. (print_operand) <case 'Y'>: Likewise. Fix a pasto in operand lossage
  2792. diagnostics.
  2793. 2009-11-08 H.J. Lu <hongjiu.lu@intel.com>
  2794. * collect2.c (main): Search PLUGIN_LD for plugin linker.
  2795. * configure.ac (--with-plugin-ld): New. Default to ld.
  2796. * configure: Regenerated.
  2797. * config.in: Likewise.
  2798. * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
  2799. (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
  2800. 2009-11-08 Jonathan Gray <jsg@openbsd.org>
  2801. * config/openbsd-stdint.h: Change to reflect what
  2802. c_common_nodes_and_builtins expects.
  2803. 2009-11-08 Paolo Carlini <paolo.carlini@oracle.com>
  2804. * builtins.c (apply_args_reg_offset): Remove commented out delaration.
  2805. 2009-11-08 Jakub Jelinek <jakub@redhat.com>
  2806. PR target/41985
  2807. * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
  2808. function contains at least one local dynamic name.
  2809. (print_operand) <case '&'>: Instead output operand lossage diagnostics
  2810. here if that happens.
  2811. 2009-11-08 Zbigniew Chamski <zbigniew.chamski@gmail.com>
  2812. Joern Rennecke <amylaar@spamcop.net>
  2813. * cfgrtl.c (pass_free_cfg): Add pass name.
  2814. * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
  2815. (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
  2816. * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
  2817. * df-core.c (pass_df_initialize_no_opt): Likewise.
  2818. * except.c (pass_rtl_eh): Likewise.
  2819. * function.c (pass_init_function, pass_leaf_regs): Likewise.
  2820. * gcse.c (pass_rtl_pre): Change pass name.
  2821. * passes.c (pass_postreload): Add pass name.
  2822. (make_pass_instance): Don't use duplicate-tracking logic for
  2823. names starting with '*'.
  2824. (next_pass_1): Assert that pass has a name.
  2825. (register_one_dump_file): If there is an space in the name,
  2826. skip past it.
  2827. * predict.c (pass_strip_predict_hints): Add pass name.
  2828. * reg-stack.c (pass_stack_regs): Likewise.
  2829. * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
  2830. * tree-cfg.c (pass_warn_function_return,
  2831. pass_warn_function_noreturn): Add pass name.
  2832. * tree-dfa.c (pass_referenced_vars): Likewise.
  2833. * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
  2834. Fix whitespace before comment.
  2835. (pass_fixup_cfg): Add pass name, fix whitespace before comment.
  2836. (pass_init_datastructures): Add pass name.
  2837. * tree-ssa-loop.c (pass_record_bounds): Likewise.
  2838. * tree-ssa.c (pass_early_warn_uninitialized,
  2839. pass_late_warn_uninitialized): Likewise.
  2840. * tree.c (pass_ipa_free_lang_data): Likewise.
  2841. * doc/passes.texi (pass manager): Document how to disambiguate
  2842. pass names.
  2843. 2009-11-08 Paolo Bonzini <bonzini@gnu.org>
  2844. * df-problems.c: Fix documentation for forward simulation of LR.
  2845. (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
  2846. (df_simulate_finalize_forwards): Remove.
  2847. * df.h (df_simulate_finalize_forwards): Remove.
  2848. 2009-11-08 Richard Guenther <rguenther@suse.de>
  2849. * tree-ssa-structalias.c (build_succ_graph): Properly make
  2850. variables escape if they are stored to anything.
  2851. 2009-11-08 Richard Guenther <rguenther@suse.de>
  2852. PR rtl-optimization/41928
  2853. * loop-invariant.c (free_loop_data): If we didn't allocate
  2854. loop data do not try to free it.
  2855. 2009-11-07 Jason Merrill <jason@redhat.com>
  2856. * tree.c (reconstruct_complex_type): Preserve attributes.
  2857. 2009-11-07 Richard Guenther <rguenther@suse.de>
  2858. * tree-ssa-structalias.c (build_succ_graph): Feed stores
  2859. to anything only to variables that can take pointers.
  2860. (get_constraint_for_ssa_var): Properly exclude full
  2861. variables from expanding.
  2862. (first_vi_for_offset): Avoid overflow in arithmetic.
  2863. (first_or_preceding_vi_for_offset): Likewise.
  2864. (count_num_arguments): Fix implementation.
  2865. (gate_ipa_pta): Do not run when not optimizing.
  2866. 2009-11-07 David Binderman <dcb314@hotmail.com>
  2867. * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
  2868. expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
  2869. set but not used variables.
  2870. (apply_args_reg_offset): Comment out as unused.
  2871. * calls.c (flags_from_decl_or_type): Likewise.
  2872. * genautomata.c (check_regexp_units_distribution): Likewise.
  2873. 2009-11-07 Uros Bizjak <ubizjak@gmail.com>
  2874. * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
  2875. xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
  2876. *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
  2877. xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
  2878. xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
  2879. xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
  2880. operand alternatives.
  2881. 2009-11-06 Michael Matz <matz@suse.de>
  2882. PR middle-end/41963
  2883. * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
  2884. of a potential reciprocal to really be reciprocals.
  2885. 2009-11-06 Jakub Jelinek <jakub@redhat.com>
  2886. * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
  2887. lwpintrin.h after immintrin.h.
  2888. * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
  2889. typedefs.
  2890. PR middle-end/41935
  2891. * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
  2892. or non-constant index, allow index one past the last element and
  2893. allow exceeding array bound in arrays that might be used as flexible
  2894. array members.
  2895. 2009-11-05 Richard Henderson <rth@redhat.com>
  2896. * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
  2897. 2009-11-05 Paul Brook <paul@codesourcery.com>
  2898. * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
  2899. (arm_fpu_desc): New.
  2900. (all_fpus): Add FPU details.
  2901. (fp_model_for_fpu): Remove.
  2902. (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
  2903. (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
  2904. (arm_file_start): Use arm_fpu_desc.
  2905. * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
  2906. TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
  2907. arm_fpu_desc.
  2908. (TARGET_FPA_EMU2): Define.
  2909. (arm_fp_model, fputype, arm_fpu_tune): Remove.
  2910. (vfp_reg_type, arm_fpu_desc): New.
  2911. * config/arm/arm.md (attr fpu): Simplify.
  2912. * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
  2913. * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
  2914. * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
  2915. * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
  2916. * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
  2917. 2009-11-05 Michael Matz <matz@suse.de>
  2918. * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
  2919. on TARGET_RECIP.
  2920. * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
  2921. for 1/sqrtf.
  2922. 2009-11-04 Jason Merrill <jason@redhat.com>
  2923. PR c++/36912
  2924. * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
  2925. or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
  2926. (output_constant): Avoid crash after error.
  2927. 2009-11-05 Martin Jambor <mjambor@suse.cz>
  2928. * tree-sra.c (struct access): Changed comment of next_sibling field.
  2929. (analyze_modified_params): Loop over accesses of a group rather than
  2930. over all with the ame base, pass a common bitmap to
  2931. walk_aliased_vdefs.
  2932. (unmodified_by_ref_scalar_representative): Build link lists of
  2933. accesses of a group.
  2934. (splice_param_accesses): Likewise.
  2935. 2009-11-04 Kenneth Zadeck <zadeck@naturalbridge.com>
  2936. * df-scan.c (df-uses-record): Add case zero_extract of mem.
  2937. 2009-11-04 Eric Botcazou <ebotcazou@adacore.com>
  2938. PR target/10127
  2939. PR ada/20548
  2940. * config/i386/i386.md (probe_stack): New expander.
  2941. (logical operation peepholes): Do not split stack checking probes.
  2942. 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
  2943. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  2944. * doc/invoke.texi (-mlwp): Add documentation.
  2945. * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
  2946. * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
  2947. (x86_64-*-*): Ditto.
  2948. * config/i386/lwpintrin.h: New file, provide x86 compiler
  2949. intrinisics for LWP.
  2950. * config/i386/cpuid.h (bit_LWP): Define LWP bit.
  2951. * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
  2952. * config/i386/i386-c.c (ix86_target_macros_internal): Check
  2953. ISA_FLAG for LWP.
  2954. * config/i386/i386.h (TARGET_LWP): New macro for LWP.
  2955. * config/i386/i386.opt (-mlwp): New switch for LWP support.
  2956. * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
  2957. (OPTION_MASK_ISA_LWP_UNSET): New.
  2958. (ix86_handle_option): Handle -mlwp.
  2959. (isa_opts): Handle -mlwp.
  2960. (enum pta_flags): Add PTA_LWP.
  2961. (override_options): Add LWP support.
  2962. (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
  2963. (IX86_BUILTIN_LLWPCB32): Ditto.
  2964. (IX86_BUILTIN_LLWPCB64): Ditto.
  2965. (IX86_BUILTIN_SLWPCB16): Ditto.
  2966. (IX86_BUILTIN_SLWPCB32): Ditto.
  2967. (IX86_BUILTIN_SLWPCB64): Ditto.
  2968. (IX86_BUILTIN_LWPVAL16): Ditto.
  2969. (IX86_BUILTIN_LWPVAL32): Ditto.
  2970. (IX86_BUILTIN_LWPVAL64): Ditto.
  2971. (IX86_BUILTIN_LWPINS16): Ditto.
  2972. (IX86_BUILTIN_LWPINS32): Ditto.
  2973. (IX86_BUILTIN_LWPINS64): Ditto.
  2974. (enum ix86_special_builtin_type): Add LWP intrinsic support.
  2975. (builtin_description): Ditto.
  2976. (ix86_init_mmx_sse_builtins): Ditto.
  2977. (ix86_expand_special_args_builtin): Ditto.
  2978. * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
  2979. LWP support.
  2980. (UNSPEC_SLWP_INTRINSIC): Ditto.
  2981. (UNSPECV_LWPVAL_INTRINSIC): Ditto.
  2982. (UNSPECV_LWPINS_INTRINSIC): Ditto.
  2983. (lwp_llwpcbhi1): New lwp pattern.
  2984. (lwp_llwpcbsi1): Ditto.
  2985. (lwp_llwpcbdi1): Ditto.
  2986. (lwp_slwpcbhi1): Ditto.
  2987. (lwp_slwpcbsi1): Ditto.
  2988. (lwp_slwpcbdi1): Ditto.
  2989. (lwp_lwpvalhi3): Ditto.
  2990. (lwp_lwpvalsi3): Ditto.
  2991. (lwp_lwpvaldi3): Ditto.
  2992. (lwp_lwpinshi3): Ditto.
  2993. (lwp_lwpinssi3): Ditto.
  2994. (lwp_lwpinsdi3): Ditto.
  2995. 2009-11-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
  2996. Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
  2997. PR rtl-opt/41833
  2998. * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
  2999. a vec_duplicate.
  3000. 2009-11-04 Richard Guenther <rguenther@suse.de>
  3001. Rafael Avila de Espindola <espindola@google.com>
  3002. * gcc.c (process_command): Handle arguments name@offset.
  3003. 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
  3004. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  3005. * config.gcc (i[34567]86-*-*): Include xopintrin.h.
  3006. (x86_64-*-*): Ditto.
  3007. * config/i386/xopintrin.h: New file, provide common x86 compiler
  3008. intrinisics for XOP.
  3009. * config/i386/cpuid.h (bit_XOP): Define XOP bit.
  3010. * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
  3011. * config/i386/i386-c.c(ix86_target_macros_internal): Check
  3012. ISA_FLAG for XOP.
  3013. * config/i386/i386.h(TARGET_XOP): New macro for XOP.
  3014. * config/i386/i386.opt (-mxop): New switch for XOP support.
  3015. * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
  3016. (UNSPEC_XOP_TRUEFALSE)
  3017. (UNSPEC_XOP_PERMUTE)
  3018. (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
  3019. (PPERM_*): New constants for vpperm instruction.
  3020. (xop_pcmov_<mode>): Add XOP conditional mov instructions.
  3021. * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
  3022. (OPTION_MASK_ISA_XOP_UNSET): New.
  3023. (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
  3024. (ix86_handle_option): Handle -mxop.
  3025. (isa_opts): Handle -mxop.
  3026. (enum pta_flags): Add PTA_XOP.
  3027. (override_options): Add XOP support.
  3028. (print_operand): Add code for XOP compare instructions.
  3029. (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
  3030. (ix86_expand_int_vcond): Extend for XOP compare instruction.
  3031. (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
  3032. (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
  3033. (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
  3034. (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
  3035. (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
  3036. (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
  3037. (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
  3038. (IX86_BUILTIN_VPCMOV256): Ditto.
  3039. (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
  3040. (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
  3041. (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
  3042. (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
  3043. (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
  3044. (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
  3045. (IX86_BUILTIN_VPPERM): Ditto.
  3046. (IX86_BUILTIN_VPMACSSWW): Ditto.
  3047. (IX86_BUILTIN_VPMACSWW): Ditto.
  3048. (IX86_BUILTIN_VPMACSSWD): Ditto.
  3049. (IX86_BUILTIN_VPMACSWD): Ditto.
  3050. (IX86_BUILTIN_VPMACSSDD): Ditto.
  3051. (IX86_BUILTIN_VPMACSDD): Ditto.
  3052. (IX86_BUILTIN_VPMACSSDQL): Ditto.
  3053. (IX86_BUILTIN_VPMACSSDQH): Ditto.
  3054. (IX86_BUILTIN_VPMACSDQL): Ditto.
  3055. (IX86_BUILTIN_VPMACSDQH): Ditto.
  3056. (IX86_BUILTIN_VPMADCSSWD): Ditto.
  3057. (IX86_BUILTIN_VPMADCSWD): Ditto.
  3058. (IX86_BUILTIN_VPHADDBW): Ditto.
  3059. (IX86_BUILTIN_VPHADDBD): Ditto.
  3060. (IX86_BUILTIN_VPHADDBQ): Ditto.
  3061. (IX86_BUILTIN_VPHADDWD): Ditto.
  3062. (IX86_BUILTIN_VPHADDWQ): Ditto.
  3063. (IX86_BUILTIN_VPHADDDQ): Ditto.
  3064. (IX86_BUILTIN_VPHADDUBW): Ditto.
  3065. (IX86_BUILTIN_VPHADDUBD): Ditto.
  3066. (IX86_BUILTIN_VPHADDUBQ): Ditto.
  3067. (IX86_BUILTIN_VPHADDUWD): Ditto.
  3068. (IX86_BUILTIN_VPHADDUWQ): Ditto.
  3069. (IX86_BUILTIN_VPHADDUDQ): Ditto.
  3070. (IX86_BUILTIN_VPHSUBBW): Ditto.
  3071. (IX86_BUILTIN_VPHSUBWD): Ditto.
  3072. (IX86_BUILTIN_VPHSUBDQ): Ditto.
  3073. (IX86_BUILTIN_VPROTB): Ditto.
  3074. (IX86_BUILTIN_VPROTW): Ditto.
  3075. (IX86_BUILTIN_VPROTD): Ditto.
  3076. (IX86_BUILTIN_VPROTQ): Ditto.
  3077. (IX86_BUILTIN_VPROTB_IMM): Ditto.
  3078. (IX86_BUILTIN_VPROTW_IMM): Ditto.
  3079. (IX86_BUILTIN_VPROTD_IMM): Ditto.
  3080. (IX86_BUILTIN_VPROTQ_IMM): Ditto.
  3081. (IX86_BUILTIN_VPSHLB): Ditto.
  3082. (IX86_BUILTIN_VPSHLW): Ditto.
  3083. (IX86_BUILTIN_VPSHLD): Ditto.
  3084. (IX86_BUILTIN_VPSHLQ): Ditto.
  3085. (IX86_BUILTIN_VPSHAB): Ditto.
  3086. (IX86_BUILTIN_VPSHAW): Ditto.
  3087. (IX86_BUILTIN_VPSHAD): Ditto.
  3088. (IX86_BUILTIN_VPSHAQ): Ditto.
  3089. (IX86_BUILTIN_VFRCZSS): Ditto.
  3090. (IX86_BUILTIN_VFRCZSD): Ditto.
  3091. (IX86_BUILTIN_VFRCZPS): Ditto.
  3092. (IX86_BUILTIN_VFRCZPD): Ditto.
  3093. (IX86_BUILTIN_VFRCZPS256): Ditto.
  3094. (IX86_BUILTIN_VFRCZPD256): Ditto.
  3095. (IX86_BUILTIN_VPCOMEQUB): Ditto.
  3096. (IX86_BUILTIN_VPCOMNEUB): Ditto.
  3097. (IX86_BUILTIN_VPCOMLTUB): Ditto.
  3098. (IX86_BUILTIN_VPCOMLEUB): Ditto.
  3099. (IX86_BUILTIN_VPCOMGTUB): Ditto.
  3100. (IX86_BUILTIN_VPCOMGEUB): Ditto.
  3101. (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
  3102. (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
  3103. (IX86_BUILTIN_VPCOMEQUW): Ditto.
  3104. (IX86_BUILTIN_VPCOMNEUW): Ditto.
  3105. (IX86_BUILTIN_VPCOMLTUW): Ditto.
  3106. (IX86_BUILTIN_VPCOMLEUW): Ditto.
  3107. (IX86_BUILTIN_VPCOMGTUW): Ditto.
  3108. (IX86_BUILTIN_VPCOMGEUW): Ditto.
  3109. (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
  3110. (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
  3111. (IX86_BUILTIN_VPCOMEQUD): Ditto.
  3112. (IX86_BUILTIN_VPCOMNEUD): Ditto.
  3113. (IX86_BUILTIN_VPCOMLTUD): Ditto.
  3114. (IX86_BUILTIN_VPCOMLEUD): Ditto.
  3115. (IX86_BUILTIN_VPCOMGTUD): Ditto.
  3116. (IX86_BUILTIN_VPCOMGEUD): Ditto.
  3117. (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
  3118. (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
  3119. (IX86_BUILTIN_VPCOMEQUQ): Ditto.
  3120. (IX86_BUILTIN_VPCOMNEUQ): Ditto.
  3121. (IX86_BUILTIN_VPCOMLTUQ): Ditto.
  3122. (IX86_BUILTIN_VPCOMLEUQ): Ditto.
  3123. (IX86_BUILTIN_VPCOMGTUQ): Ditto.
  3124. (IX86_BUILTIN_VPCOMGEUQ): Ditto.
  3125. (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
  3126. (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
  3127. (IX86_BUILTIN_VPCOMEQB): Ditto.
  3128. (IX86_BUILTIN_VPCOMNEB): Ditto.
  3129. (IX86_BUILTIN_VPCOMLTB): Ditto.
  3130. (IX86_BUILTIN_VPCOMLEB): Ditto.
  3131. (IX86_BUILTIN_VPCOMGTB): Ditto.
  3132. (IX86_BUILTIN_VPCOMGEB): Ditto.
  3133. (IX86_BUILTIN_VPCOMFALSEB): Ditto.
  3134. (IX86_BUILTIN_VPCOMTRUEB): Ditto.
  3135. (IX86_BUILTIN_VPCOMEQW): Ditto.
  3136. (IX86_BUILTIN_VPCOMNEW): Ditto.
  3137. (IX86_BUILTIN_VPCOMLTW): Ditto.
  3138. (IX86_BUILTIN_VPCOMLEW): Ditto.
  3139. (IX86_BUILTIN_VPCOMGTW): Ditto.
  3140. (IX86_BUILTIN_VPCOMGEW): Ditto.
  3141. (IX86_BUILTIN_VPCOMFALSEW): Ditto.
  3142. (IX86_BUILTIN_VPCOMTRUEW): Ditto.
  3143. (IX86_BUILTIN_VPCOMEQD): Ditto.
  3144. (IX86_BUILTIN_VPCOMNED): Ditto.
  3145. (IX86_BUILTIN_VPCOMLTD): Ditto.
  3146. (IX86_BUILTIN_VPCOMLED): Ditto.
  3147. (IX86_BUILTIN_VPCOMGTD): Ditto.
  3148. (IX86_BUILTIN_VPCOMGED): Ditto.
  3149. (IX86_BUILTIN_VPCOMFALSED): Ditto.
  3150. (IX86_BUILTIN_VPCOMTRUED): Ditto.
  3151. (IX86_BUILTIN_VPCOMEQQ): Ditto.
  3152. (IX86_BUILTIN_VPCOMNEQ): Ditto.
  3153. (IX86_BUILTIN_VPCOMLTQ): Ditto.
  3154. (IX86_BUILTIN_VPCOMLEQ): Ditto.
  3155. (IX86_BUILTIN_VPCOMGTQ): Ditto.
  3156. (IX86_BUILTIN_VPCOMGEQ): Ditto.
  3157. (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
  3158. (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
  3159. (enum multi_arg_type): New enum for describing the various XOP
  3160. intrinsic argument types.
  3161. (bdesc_multi_arg): New table for XOP intrinsics.
  3162. (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
  3163. (ix86_expand_multi_arg_builtin): New function for creating XOP
  3164. intrinsics.
  3165. * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
  3166. (xop_pmacsww): Ditto.
  3167. (xop_pmacssww): Ditto.
  3168. (xop_pmacsdd): Ditto.
  3169. (xop_pmacssdd): Ditto.
  3170. (xop_pmacssdql): Ditto.
  3171. (xop_pmacssdqh): Ditto.
  3172. (xop_pmacsdql): Ditto.
  3173. (xop_pmacsdql_mem): Ditto.
  3174. (xop_mulv2div2di3_low): Ditto.
  3175. (xop_pmacsdqh): Ditto.
  3176. (xop_pmacsdqh_mem): Ditto.
  3177. (xop_mulv2div2di3_high): Ditto.
  3178. (xop_pmacsswd): Ditto.
  3179. (xop_pmacswd): Ditto.
  3180. (xop_pmadcsswd): Ditto.
  3181. (xop_pmadcswd): Ditto.
  3182. (xop_pcmov_<mode>): Ditto.
  3183. (xop_pcmov_<mode>256): Ditto.
  3184. (xop_phaddbw): Ditto.
  3185. (xop_phaddbd): Ditto.
  3186. (xop_phaddbq): Ditto.
  3187. (xop_phaddwd): Ditto.
  3188. (xop_phaddwq): Ditto.
  3189. (xop_phadddq): Ditto.
  3190. (xop_phaddubw): Ditto.
  3191. (xop_phaddubd): Ditto.
  3192. (xop_phaddubq): Ditto.
  3193. (xop_phadduwd): Ditto.
  3194. (xop_phadduwq): Ditto.
  3195. (xop_phaddudq): Ditto.
  3196. (xop_phsubbw): Ditto.
  3197. (xop_phsubwd): Ditto.
  3198. (xop_phsubdq): Ditto.
  3199. (xop_pperm): Ditto.
  3200. (rotl<mode>3): Ditto.
  3201. (rotr<mode>3): Ditto.
  3202. (xop_rotl<mode>3): Ditto.
  3203. (xop_rotr<mode>3): Ditto.
  3204. (vrotr<mode>3): Ditto.
  3205. (vrotl<mode>3): Ditto.
  3206. (xop_vrotl<mode>3): Ditto.
  3207. (vlshr<mode>3): Ditto.
  3208. (vashr<mode>3): Ditto.
  3209. (vashl<mode>3
  3210. (xop_ashl<mode>3): Ditto.
  3211. (xop_lshl<mode>3): Ditto.
  3212. (ashlv16qi3): Ditto.
  3213. (lshlv16qi3): Ditto.
  3214. (ashrv16qi3): Ditto.
  3215. (ashrv2di3): Ditto.
  3216. (xop_frcz<mode>2): Ditto.
  3217. (xop_vmfrcz<mode>2): Ditto.
  3218. (xop_frcz<mode>2256): Ditto.
  3219. (xop_maskcmp<mode>3): Ditto.
  3220. (xop_maskcmp_uns<mode>3): Ditto.
  3221. (xop_maskcmp_uns2<mode>3): Ditto.
  3222. (xop_pcom_tf<mode>3): Ditto.
  3223. * doc/invoke.texi (-mxop): Add documentation.
  3224. * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
  3225. 2009-11-03 Mark Mitchell <mark@codesourcery.com>
  3226. PR driver/11810
  3227. * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
  3228. * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
  3229. * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
  3230. 2009-11-04 Richard Earnshaw <rearnsha@arm.com>
  3231. PR target/40835
  3232. * arm.md (peephole2 patterns for move and compare): New.
  3233. 2009-11-04 Nick Clifton <nickc@redhat.com>
  3234. * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
  3235. Make sure that it does not allow CONST_DOUBLEs.
  3236. * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
  3237. * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
  3238. * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
  3239. * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
  3240. * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
  3241. * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
  3242. * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
  3243. * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
  3244. * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
  3245. * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
  3246. * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
  3247. * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
  3248. * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
  3249. * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
  3250. * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
  3251. 2009-11-04 Richard Guenther <rguenther@suse.de>
  3252. PR tree-optimization/41919
  3253. * tree-vrp.c (test_for_singularity): Properly compare values.
  3254. 2009-11-04 Revital Eres <eres@il.ibm.com>
  3255. * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
  3256. Consider peeling for alignment only for stores and remove
  3257. redundant assignment.
  3258. 2009-11-04 Maxim Kuvyrkov <maxim@codesourcery.com>
  3259. PR target/41302
  3260. * config/m68k/m68k.c (m68k_reg_present_p): New static function.
  3261. (m68k_ok_for_sibcall_p): Handle different result return locations.
  3262. 2009-11-04 Richard Guenther <rguenther@suse.de>
  3263. * c-opts.c (c_common_post_options): Move LTO option processing
  3264. code ...
  3265. * opts.c (decode_options): ... here.
  3266. 2009-11-04 Jakub Jelinek <jakub@redhat.com>
  3267. * c-common.c (fold_offsetof_1): Use %wd instead of
  3268. HOST_WIDE_INT_PRINT_DEC.
  3269. 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
  3270. * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
  3271. __pic__ or __PIC__.
  3272. 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
  3273. * config.gcc (vax-*-linux*): Keep the original contents of
  3274. tmake_file while adding vax/t-linux.
  3275. 2009-11-03 Eric Botcazou <ebotcazou@adacore.com>
  3276. PR target/10127
  3277. PR ada/20548
  3278. * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
  3279. (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
  3280. (STACK_CHECK_MOVING_SP): Likewise.
  3281. * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
  3282. * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
  3283. Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
  3284. * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
  3285. Document PROBE_STACK.
  3286. * explow.c (anti_adjust_stack_and_probe): New function.
  3287. (allocate_dynamic_stack_space): Do not directly allocate space if
  3288. STACK_CHECK_MOVING_SP, instead invoke above function.
  3289. (emit_stack_probe): Handle probe_stack insn.
  3290. (PROBE_INTERVAL): New macro.
  3291. (STACK_GROW_OPTAB): Likewise.
  3292. (STACK_GROW_OFF): Likewise.
  3293. (probe_stack_range): Use Pmode and memory_address consistently. Fix
  3294. loop condition in the small constant case. Rewrite in the general
  3295. case to be immune to wraparounds. Make sure the address of probes
  3296. is valid. Try to use [base + disp] addressing mode if possible.
  3297. * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
  3298. checking is enabled and STACK_CHECK_MOVING_SP.
  3299. * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
  3300. return 1 for volatile references to the stack pointer.
  3301. * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
  3302. __builtin_alloca if stack checking is enabled.
  3303. * unwind-dw2.c (uw_identify_context): Take into account whether the
  3304. context is that of a signal frame or not.
  3305. * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
  3306. * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
  3307. 2009-11-03 Jakub Jelinek <jakub@redhat.com>
  3308. PR rtl-optimization/41917
  3309. * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
  3310. operand isn't known to be 0, return 1.
  3311. 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
  3312. * config/mips/mips.md: Fix typos.
  3313. 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
  3314. * doc/invoke.texi: Fix typo.
  3315. 2009-11-03 Paul Brook <paul@codesourcery.com>
  3316. * config/arm/neon.ml (vectype): Add T_floatSF.
  3317. (string_of_vectype): Ditto.
  3318. * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
  3319. (deftypes): Use float for float32_t.
  3320. * config/arm/arm_neon.h: Regenerate.
  3321. 2009-11-03 Nick Clifton <nickc@redhat.com>
  3322. Kevin Buettner <kevinb@redhat.com>
  3323. * config/rx/predicates.md (rx_store_multiple_vector): Reverse
  3324. order of expected registers.
  3325. (rx_load_multiple_vector): Likewise.
  3326. (rx_rtsd_vector): Likewise.
  3327. * config/rx/rx.c (rx_cpu_type): New variable.
  3328. (rx_print_operand): Fix bug printing 64-bit constant values.
  3329. (rx_emit_stack_pushm): Reverse order of pushed registers.
  3330. (gen_rx_store_vector): Likewise.
  3331. (is_fast_interrupt_func): Only accept "fast_interrupt" as the
  3332. attribute name.
  3333. (is_exception_func): Rename to is_interrupt_func and only accept
  3334. "interrupt" as the attribute name.
  3335. (rx_get_stack_layout): Use new function name.
  3336. (rx_func_attr_inlinable): Likewise.
  3337. (rx_attribute_table): Remove "exception".
  3338. (rx_expand_prologue): If necessary push the accumulator register
  3339. in the prologue of interrupt functions.
  3340. (rx_expand_epilogue): If necessary pop the accumulator.
  3341. (rx_builtins): Add RX_BUILTIN_MVTIPL.
  3342. (rx_expand_builtin_stz): Remove.
  3343. (rx_expand_builtin_mvtipl): New function.
  3344. (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
  3345. (rx_expand_builtin): Likewise.
  3346. (rx_enable_fpu): New variable.
  3347. (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
  3348. * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
  3349. on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
  3350. (enum rx_cpu_types): Define.
  3351. (ASM_SPEC): Pass -m32bit-doubles on to assembler.
  3352. (INCOMING_FRAME_SP_OFFSET): Define.
  3353. (ARG_POINTER_CFA_OFFSET): Define.
  3354. (FRAME_POINTER_CFA_OFFSET): Define.
  3355. (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
  3356. (ALLOW_RX_FPU_INSNS): Define.
  3357. * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
  3358. fast_math_flags_set_p.
  3359. (UNSPEC_BUILTIN_MVTIPL): Define.
  3360. (revl): Rename to bswapsi2.
  3361. (bswaphi2): New pattern.
  3362. (mvtachi): Mark as volatile because it uses a register unknown to GCC.
  3363. (mvtaclo): Likewise.
  3364. (racw): Likewise.
  3365. (mvtc): Remove clobber of cc0.
  3366. (mvtcp): Delete.
  3367. (opecp): Delete.
  3368. * config/rx/rx.opt (mieee): Remove.
  3369. (fpu): Add.
  3370. (nofpu): Add.
  3371. (mcpu=): Add.
  3372. (patch=): Add.
  3373. (msave-acc-in-interrupts): Add.
  3374. * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
  3375. (MULTILIB_DIRS): Likewise.
  3376. (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
  3377. * doc/extend.texi: Remove description of "exception" function
  3378. attribute.
  3379. * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
  3380. -msave-acc-in-interrupts options.
  3381. 2009-11-03 Richard Guenther <rguenther@suse.de>
  3382. * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
  3383. 2009-11-03 Dodji Seketeli <dodji@redhat.com>
  3384. PR c++/38699
  3385. * c-common.c (fold_offsetof_1): Issue errors when the member
  3386. designator of the offsetof expression is not legitimate.
  3387. 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
  3388. * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
  3389. names instead of numerical constants.
  3390. (sse_prologue_save): Ditto.
  3391. (*sse_prologue_save_insn): Ditto.
  3392. 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
  3393. PR target/41900
  3394. * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
  3395. (TARGET_CALL_ESP): New define.
  3396. * config/i386/i386.c (initial_ix86_tune_features): Initialize
  3397. X86_ARCH_CALL_ESP.
  3398. * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
  3399. *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
  3400. *call_1, *call_value_pop_1 and *call_value_1. Depend on
  3401. TARGET_CALL_ESP.
  3402. (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
  3403. New patterns, use "lsm" as operand 1 constraint.
  3404. * config/i386/predicates.md (call_insn_operand): Depend on
  3405. index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
  3406. 2009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  3407. PR tree-optimization/41857
  3408. * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
  3409. * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
  3410. to create_mem_ref.
  3411. * tree-ssa-address.c (move_hint_to_base): New function.
  3412. (most_expensive_mult_to_index): Add TYPE argument. Use mode and
  3413. address space associated with TYPE.
  3414. (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
  3415. most_expensive_mult_to_index. Call move_hint_to_base.
  3416. (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
  3417. TYPE to addr_to_parts.
  3418. 2009-11-02 Martin Jambor <mjambor@suse.cz>
  3419. PR tree-optimization/41750
  3420. * tree-sra.c (analyze_modified_params): Loop over all
  3421. representatives of components of a parameter.
  3422. 2009-11-02 Jakub Jelinek <jakub@redhat.com>
  3423. PR tree-optimization/41841
  3424. * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
  3425. local variables of not yet materialized clones.
  3426. PR debug/41893
  3427. * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
  3428. for a VOIDmode variable.
  3429. PR c++/41774
  3430. * c-pragma.c (visstack): Change into vector of ints rather than
  3431. enum symbol_visibility.
  3432. (push_visibility): Add kind argument, push default_visibility together
  3433. with kind.
  3434. (pop_visibility): Add kind argument, return true if successful, fail
  3435. if visibility stack is empty or if stack top is of different kind.
  3436. (handle_pragma_visibility): Don't check length of visstack, instead
  3437. call pop_visibility and issue diagnostics if it failed. Pass 0
  3438. as last argument to push_visibility and pop_visibility.
  3439. * c-pragma.h (push_visibility): Add kind argument.
  3440. (pop_visibility): Likewise. Return bool instead of void.
  3441. 2009-11-01 Eric Botcazou <ebotcazou@adacore.com>
  3442. * tree.def (TARGET_MEM_REF): Update comment.
  3443. * alias.c (get_alias_set): Retrieve the original memory reference for
  3444. a TARGET_MEM_REF before proceeding.
  3445. 2009-10-31 Anatoly Sokolov <aesok@post.ru>
  3446. * config/frv/frv.c (frv_function_value, frv_libcall_value,
  3447. frv_function_value_regno_p): New functions.
  3448. (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
  3449. * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
  3450. (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
  3451. * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
  3452. 2009-10-31 Anatoly Sokolov <aesok@post.ru>
  3453. * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
  3454. new 'outgoing' argument.
  3455. (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
  3456. (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
  3457. * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
  3458. LIBCALL_VALUE): Remove.
  3459. (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
  3460. * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
  3461. (mh10300_function_value_regno_p): Declare.
  3462. 2009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  3463. * config/arm/cortex-a9.md: New - integer pipeline description.
  3464. 2009-10-31 Eric Botcazou <ebotcazou@adacore.com>
  3465. * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
  3466. aborting if the sizes of the two references don't match.
  3467. 2009-10-31 Toon Moene <toon@moene.org>
  3468. * ipa-inline.c (cgraph_decide_inlining):
  3469. Include reason for not inlining called-once functions in dump file.
  3470. 2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
  3471. * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
  3472. * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
  3473. (LINK_SPEC): BE_LINK_SPEC added.
  3474. 2009-10-30 Richard Guenther <rguenther@suse.de>
  3475. PR lto/41858
  3476. * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
  3477. 2009-10-30 Nathan Sidwell <nathan@codesourcery.com>
  3478. * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
  3479. * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
  3480. label.
  3481. 2009-10-30 Martin Jambor <mjambor@suse.cz>
  3482. * tree-sra.c (build_ref_for_offset_1): Remove a comment.
  3483. 2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
  3484. PR target/40838
  3485. * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
  3486. first. Move assert on stack_alignment_estimated just before
  3487. setting stack_realign_needed.
  3488. (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
  3489. Don't call update_stack_boundary.
  3490. * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
  3491. (verride_options): Don't check ix86_force_align_arg_pointer here.
  3492. (ix86_function_ok_for_sibcall): Use it.
  3493. (ix86_update_stack_boundary): Likewise.
  3494. * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
  3495. 2009-10-30 Richard Earnshaw <rearnsha@arm.com>
  3496. * arm.md (QHSI): New mode iterator.
  3497. (movqi): If generating for thumb, then truncate any immediate to
  3498. 8 bits.
  3499. * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
  3500. with...
  3501. (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
  3502. version.
  3503. 2009-10-29 Cary Coutant <ccoutant@google.com>
  3504. PR debug/41700
  3505. * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
  3506. locations in the source).
  3507. (store_vcall_insn): New function.
  3508. (lookup_vcall_insn): New function.
  3509. (dwarf2out_virtual_call_token): Use store_vcall_insn.
  3510. (dwarf2out_copy_call_info): New function.
  3511. (dwarf2out_virtual_call): Use lookup_vcall_insn.
  3512. * emit-rtl.c (try_split): Call copy_call_info debug hook.
  3513. * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
  3514. * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
  3515. (debug_nothing_rtx_rtx): New dummy hook.
  3516. * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
  3517. (xcoff_debug_hooks): Likewise.
  3518. * sdbout.c (sdb_debug_hooks): Likewise.
  3519. * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
  3520. 2009-10-29 David Daney <ddaney@caviumnetworks.com>
  3521. * doc/invoke.texi (mmcount-ra-address): Document new command line
  3522. option.
  3523. * config/mips/mips.opt (mmcount-ra-address): New option.
  3524. * config/mips/mips-protos.h (mips_function_profiler): Declare new
  3525. function.
  3526. * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
  3527. member.
  3528. (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
  3529. (mips_function_profiler): Moved from FUNCTION_PROFILER, and
  3530. rewritten.
  3531. * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
  3532. mips_function_profiler.
  3533. 2009-10-29 Steve Ellcey <sje@cup.hp.com>
  3534. PR middle-end/37565
  3535. PR target/38018
  3536. * doc/tm.texi (OVERRIDE_OPTIONS): Update.
  3537. (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
  3538. * optc-gen.awk (cl_target_option_restore): Include call to
  3539. targetm.override_options_after_change.
  3540. * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
  3541. * target.h (override_options_after_change): New.
  3542. * c-common.c (parse_optimize_options): Call
  3543. targetm.override_options_after_change.
  3544. * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
  3545. (ia64_override_options_after_change): New.
  3546. (ia64_override_options) Add call to above.
  3547. 2009-10-29 Michael Matz <matz@suse.de>
  3548. * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
  3549. (gate_convert_to_rsqrt): Ditto.
  3550. (pass_convert_to_rsqrt): Ditto.
  3551. * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
  3552. * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
  3553. to pass list.
  3554. * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
  3555. 2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  3556. * config/arm/arm.c (find_best_start): Fix type of remainder to be
  3557. unsigned.
  3558. 2009-10-29 Martin Jambor <mjambor@suse.cz>
  3559. PR tree-optimization/41775
  3560. * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
  3561. (generate_subtree_copies): Do not unshare agg.
  3562. (load_assign_lhs_subreplacements): Do not unshare rhs.
  3563. (sra_modify_assign): Do not unshare exprs.
  3564. (propagate_subacesses_accross_link): Renamed to
  3565. propagate_subaccesses_across_link.
  3566. 2009-10-29 Richard Earnshaw <rearnsha@arm.com>
  3567. * arm.c (count_insns_for_constant): Rework to support counting for
  3568. thumb2 immediates as well.
  3569. (find_best_start): Split out from arm_gen_constant.
  3570. (arm_gen_constant): Rework to support XOR with immediate.
  3571. 2009-10-29 Chao-ying Fu <fu@mips.com>
  3572. * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
  3573. functions.
  3574. (mips_expand_synci_loop): Use the length rtx to control the
  3575. synci loop from the begin rtx that points to the first byte of
  3576. the cache line.
  3577. 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
  3578. * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
  3579. 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
  3580. * dbxout.c (dbxout_common_check): Accept non public trees.
  3581. * dwarf2out.c (fortran_common): Accept non public trees.
  3582. 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
  3583. * common.opt (fuse-linker-plugin): New option.
  3584. * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
  3585. fuse-linker-plugin.
  3586. * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
  3587. 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
  3588. PR rtl-optimization/39715
  3589. * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
  3590. (gen_cstoresi_ltu_thumb1): New splitter.
  3591. 2009-10-28 Richard Guenther <rguenther@suse.de>
  3592. PR lto/41808
  3593. PR lto/41839
  3594. * tree-ssa.c (useless_type_conversion_p): Do not treat
  3595. conversions to pointers to incomplete types as useless.
  3596. * gimple.c (gimple_types_compatible_p): Compare struct tags,
  3597. not typedef names.
  3598. 2009-10-28 Jakub Jelinek <jakub@redhat.com>
  3599. * var-tracking.c (emit_note_insn_var_location): Don't call the second
  3600. vt_expand_loc unnecessarily when location is not a register nor
  3601. memory.
  3602. PR middle-end/41837
  3603. * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
  3604. fields don't have DECL_NAME.
  3605. PR debug/41801
  3606. * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
  3607. call convert_memory_address on addr.
  3608. PR target/41762
  3609. * config/i386/i386.c (ix86_pic_register_p): Don't call
  3610. rtx_equal_for_cselib_p for VALUEs discarded as useless.
  3611. 2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
  3612. * var-tracking.c (emit_note_insn_var_location): Get the mode of
  3613. a variable part from its REG, MEM or VALUE.
  3614. 2009-10-28 Richard Guenther <rguenther@suse.de>
  3615. * gimple.c (gimple_get_alias_set): Fix comment typo.
  3616. 2009-10-28 Richard Guenther <rguenther@suse.de>
  3617. * tree.c (free_lang_data_in_type): Do not call get_alias_set.
  3618. (free_lang_data): Unconditionally compute alias sets for all
  3619. standard integer types. Bail out if gate bailed out previously.
  3620. Do not reset the types_compatible_p langhook.
  3621. (gate_free_lang_data): Remove.
  3622. (struct pass_ipa_free_lang_data): Enable unconditionally.
  3623. * gimple.c (gimple_get_alias_set): Use the same alias-set for
  3624. all pointer types.
  3625. 2009-10-28 Richard Guenther <rguenther@suse.de>
  3626. PR middle-end/41855
  3627. * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
  3628. (ref_maybe_used_by_call_p_1): Fix bcopy handling.
  3629. (call_may_clobber_ref_p_1): Likewise.
  3630. * tree-ssa-structalias.c (find_func_aliases): Likewise.
  3631. * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
  3632. 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
  3633. PR rtl-optimization/41812
  3634. Revert:
  3635. 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
  3636. * df-problems.c (df_md_scratch): New.
  3637. (df_md_alloc, df_md_free): Allocate/free it.
  3638. (df_md_local_compute): Only include live registers in init.
  3639. (df_md_transfer_function): Prune the in-set computed by
  3640. the confluence function, and the gen-set too.
  3641. 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
  3642. PR rtl-optimization/39715
  3643. * combine.c (simplify_comparison): Use extensions to
  3644. widen comparisons. Try an ANDing first.
  3645. 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
  3646. PR rtl-optimization/40741
  3647. * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
  3648. a small constant is cheap.
  3649. * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
  3650. force_reg on the LHS.
  3651. (xorsi3): Likewise, and split the XOR if the constant is complex
  3652. and not in Thumb mode.
  3653. 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
  3654. * expmed.c (emit_store_flag): Check costs before
  3655. transforming to the opposite representation.
  3656. 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
  3657. * config/sh/sh.md (cbranchfp4_media): Remove hack extending
  3658. cstore result to DImode.
  3659. 2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
  3660. * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
  3661. inside the unspec vector.
  3662. 2009-10-27 Richard Henderson <rth@redhat.com>
  3663. * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
  3664. 2009-10-27 Richard Henderson <rth@redhat.com>
  3665. PR c++/41819
  3666. * tree-eh.c (eh_region_may_contain_throw_map): Rename from
  3667. eh_region_may_contain_throw; update users.
  3668. (eh_region_may_contain_throw): New function.
  3669. (lower_catch): Check flag_exceptions before creating exception region.
  3670. (lower_eh_filter, lower_eh_must_not_throw): Likewise.
  3671. (lower_cleanup): Tidy existing flag_exceptions check to match.
  3672. 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
  3673. PR/41799
  3674. * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
  3675. * config/i386/mingw.opt: Add fset-stack-executable.
  3676. * config/i386/i386.c (ix86_trampoline_init): Make call to
  3677. emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
  3678. defined and its value is not zero.
  3679. * doc/invoke.texi
  3680. 2009-10-27 Richard Guenther <rguenther@suse.de>
  3681. * tree-ssa-structalias.c (find_func_aliases): In IPA mode
  3682. handle calls to externally visible functions like in regular mode.
  3683. (create_variable_info_for): Do not create function infos here.
  3684. (have_alias_info): Remove write-only variable.
  3685. (solve_constraints): New function split out from common code
  3686. in compute_points_to_sets and ipa_pta_execute.
  3687. (compute_points_to_sets): Adjust.
  3688. (ipa_pta_execute): Likewise. Handle clones and externally visible
  3689. functions like in non-IPA mode.
  3690. 2009-10-27 Jakub Jelinek <jakub@redhat.com>
  3691. PR c/41842
  3692. * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
  3693. error_mark_node.
  3694. 2009-10-27 Richard Guenther <rguenther@suse.de>
  3695. * tree-complex.c (expand_complex_div_wide): Check for
  3696. INTEGER_CST, not TREE_CONSTANT on comparison folding result.
  3697. 2009-10-27 Revital Eres <eres@il.ibm.com>
  3698. PR tree-optimization/40648
  3699. * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
  3700. Change decision of when to peel for alignment.
  3701. 2009-10-27 Richard Guenther <rguenther@suse.de>
  3702. PR lto/41821
  3703. * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
  3704. 2009-10-27 Aldy Hernandez <aldyh@redhat.com>
  3705. PR bootstrap/41451
  3706. * fold-const.c (fold_binary_loc): Do not call
  3707. protected_set_expr_location.
  3708. 2009-10-27 Wei Guozhi <carrot@google.com>
  3709. PR target/41705
  3710. * target.h (have_conditional_execution): Add a new target hook
  3711. function.
  3712. * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
  3713. * targhooks.h (default_have_conditional_execution): Likewise.
  3714. * targhooks.c (default_have_conditional_execution): Likewise.
  3715. * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
  3716. * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
  3717. (arm_have_conditional_execution): New function.
  3718. * ifcvt.c (noce_process_if_block, find_if_header,
  3719. cond_exec_find_if_block, dead_or_predicable): Change the usage of
  3720. macro HAVE_conditional_execution to a target hook call.
  3721. * recog.c (peephole2_optimize): Likewise.
  3722. * sched-rgn.c (add_branch_dependences): Likewise.
  3723. * final.c (asm_insn_count, final_scan_insn): Likewise.
  3724. * bb-reorder.c (HAVE_conditional_execution): Remove it.
  3725. 2009-10-26 Ben Elliston <bje@au.ibm.com>
  3726. Michael Meissner <meissner@linux.vnet.ibm.com>
  3727. Ulrich Weigand <uweigand@de.ibm.com>
  3728. * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
  3729. * config/spu/spu_cache.h: New file.
  3730. * config/spu/cachemgr.c: New file.
  3731. * config/spu/cache.S: New file.
  3732. * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
  3733. (ADDR_SPACE_EA): Define.
  3734. (TARGET_ADDR_SPACE_KEYWORDS): Define.
  3735. * config/spu/spu.c (EAmode): New macro.
  3736. (TARGET_ADDR_SPACE_POINTER_MODE): Define.
  3737. (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
  3738. (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
  3739. (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
  3740. (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
  3741. (TARGET_ADDR_SPACE_CONVERT): Likewise.
  3742. (TARGET_ASM_SELECT_SECTION): Likewise.
  3743. (TARGET_ASM_UNIQUE_SECTION): Likewise.
  3744. (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
  3745. (TARGET_ASM_ALIGNED_DI_OP): Likewise.
  3746. (ea_symbol_ref): New function.
  3747. (spu_legitimate_constant_p): Handle __ea qualified addresses.
  3748. (spu_addr_space_legitimate_address_p): New function.
  3749. (spu_addr_space_legitimize_address): Likewise.
  3750. (cache_fetch): New global.
  3751. (cache_fetch_dirty): Likewise.
  3752. (ea_alias_set): Likewise.
  3753. (ea_load_store): New function.
  3754. (ea_load_store_inline): Likewise.
  3755. (expand_ea_mem): Likewise.
  3756. (spu_expand_mov): Handle __ea qualified memory references.
  3757. (spu_addr_space_pointer_mode): New function.
  3758. (spu_addr_space_address_mode): Likewise.
  3759. (spu_addr_space_subset_p): Likewise.
  3760. (spu_addr_space_convert): Likewise.
  3761. (spu_section_type_flags): Handle "._ea" section.
  3762. (spu_select_section): New function.
  3763. (spu_unique_section): Likewise.
  3764. * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
  3765. and __EA64__ predefined macros.
  3766. * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
  3767. -matomic-updates switches.
  3768. * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
  3769. (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
  3770. libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
  3771. libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
  3772. ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
  3773. ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
  3774. $(T)cache128k.o): Likewise.
  3775. ($(T)libgcc_%.a): Likewise.
  3776. * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
  3777. * config/spu/spu.opt (-mea32/-mea64): Add switches.
  3778. (-maddress-space-conversion): Likewise.
  3779. (-mcache-size=): Likewise.
  3780. (-matomic-updates): Likewise.
  3781. * doc/invoke.texi (-mea32/-mea64): Document.
  3782. (-maddress-space-conversion): Likewise.
  3783. (-mcache-size=): Likewise.
  3784. (-matomic-updates): Likewise.
  3785. 2009-10-26 Ben Elliston <bje@au.ibm.com>
  3786. Michael Meissner <meissner@linux.vnet.ibm.com>
  3787. Ulrich Weigand <uweigand@de.ibm.com>
  3788. * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
  3789. * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
  3790. defined, add the named address space keywords.
  3791. (c_addr_space_name): New function.
  3792. (complete_array_type): Preserve named address space.
  3793. (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
  3794. instead of targetm.valid_pointer_mode.
  3795. * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
  3796. RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
  3797. (ADDR_SPACE_KEYWORD): New macro.
  3798. (c_addr_space_name): Add prototype.
  3799. * c-tree.h (struct c_declspecs): Add address_space member.
  3800. (declspecs_add_addrspace): Add prototype.
  3801. * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
  3802. * c-parser.c (c_parse_init): Add assertion.
  3803. (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
  3804. (c_lex_one_token): Handle address space keywords.
  3805. (c_token_starts_typename): Likewise.
  3806. (c_token_starts_declspecs): Likewise.
  3807. (c_parser_declspecs): Likewise.
  3808. (c_parser_postfix_expression_after_paren_type): Diagnose compound
  3809. literal within function qualified with named address space.
  3810. * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
  3811. address space qualifiers.
  3812. (shadow_tag_warned): Warn about useless address space qualifiers.
  3813. (quals_from_declspecs): Handle address space qualifiers.
  3814. (grokdeclarator): Likewise.
  3815. (build_null_declspecs): Likewise.
  3816. (declspecs_add_addrspace): New function.
  3817. * c-typeck.c (addr_space_superset): New function.
  3818. (qualify_type): Handle named address spaces.
  3819. (composite_type): Likewise.
  3820. (common_pointer_type): Likewise.
  3821. (comp_target_types): Likewise.
  3822. (build_conditional_expr): Likewise.
  3823. (handle_warn_cast_qual): Likewise.
  3824. (build_c_cast): Likewise.
  3825. (convert_for_assignment): Likewise.
  3826. (build_binary_op): Likewise.
  3827. (pointer_diff): Handle named address spaces. Use intermediate
  3828. integer type of sufficient size if required.
  3829. 2009-10-26 Ben Elliston <bje@au.ibm.com>
  3830. Michael Meissner <meissner@linux.vnet.ibm.com>
  3831. Ulrich Weigand <uweigand@de.ibm.com>
  3832. * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
  3833. (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
  3834. (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
  3835. * target.h (struct target_def): Add pointer_mode, address_mode,
  3836. and valid_pointer_mode to addr_space substructure.
  3837. * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
  3838. (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
  3839. (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
  3840. (TARGET_ADDR_SPACE_HOOKS): Add them.
  3841. * targhooks.c (target_default_pointer_address_modes_p): New function.
  3842. * target.h (target_default_pointer_address_modes_p): Add prototype.
  3843. * targhooks.c (default_addr_space_pointer_mode): New function.
  3844. (default_addr_space_address_mode): Likewise.
  3845. (default_addr_space_valid_pointer_mode): Likewise.
  3846. * targhooks.h (default_addr_space_pointer_mode): Add prototype.
  3847. (default_addr_space_address_mode): Likewise.
  3848. (default_addr_space_valid_pointer_mode): Likewise.
  3849. * output.h (default_valid_pointer_mode): Move to ...
  3850. * targhooks.h (default_valid_pointer_mode): ... here.
  3851. * varasm.c (default_valid_pointer_mode): Move to ...
  3852. * targhooks.c (default_valid_pointer_mode): ... here.
  3853. * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
  3854. instead of targetm.valid_pointer_mode.
  3855. * fold-const.c (fit_double_type): Use int_or_pointer_precision.
  3856. * tree.c (integer_pow2p): Likewise.
  3857. (tree_log2): Likewise.
  3858. (tree_floor_log2): Likewise.
  3859. (signed_or_unsigned_type_for): Support pointer type of different size.
  3860. (int_or_pointer_precision): New function.
  3861. * tree.h (int_or_pointer_precision): Add prototype.
  3862. * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
  3863. * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
  3864. incoming pointer type instead of POINTER_SIZE.
  3865. * tree.c (build_pointer_type): Use appropriate pointer mode
  3866. instead of ptr_mode.
  3867. (build_reference_type): Likewise.
  3868. * expr.c (store_expr): Likewise.
  3869. (expand_expr_addr_expr): Likewise.
  3870. * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
  3871. * cfgexpand.c (expand_debug_expr): Likewise.
  3872. * auto-inc-dec.c: Include "target.h".
  3873. (try_merge): Use appropriate address mode instead of Pmode.
  3874. (find_inc): Likewise.
  3875. * combine.c (find_split_point): Likewise.
  3876. * cselib.c (cselib_record_sets): Likewise.
  3877. * dse.c (replace_inc_dec): Likewise.
  3878. (canon_address): Likewise.
  3879. * var-tracking.c (replace_expr_with_values): Likewise.
  3880. (count_uses): Likewise.
  3881. (add_uses): Likewise.
  3882. (add_stores): Likewise.
  3883. * emit-rtl.c: Include "target.h".
  3884. (adjust_address_1): Use appropriate address mode instead of Pmode.
  3885. (offset_address): Likewise.
  3886. * explow.c (break_out_memory_refs): Likewise.
  3887. (memory_address_addr_space): Likewise.
  3888. (promote_mode): Likewise.
  3889. * expr.c (move_by_pieces): Likewise.
  3890. (emit_block_move_via_loop): Likewise.
  3891. (store_by_pieces): Likewise.
  3892. (store_by_pieces_1): Likewise.
  3893. (expand_assignment): Likewise.
  3894. (store_constructor): Likewise.
  3895. (expand_expr_addr_expr): Likewise.
  3896. (expand_expr_real_1): Likewise.
  3897. * cfgexpand.c (expand_debug_expr): Likewise.
  3898. * ifcvt.c (noce_try_cmove_arith): Likewise.
  3899. * regcprop.c (kill_autoinc_value): Likewise.
  3900. * regmove.c (try_auto_increment): Likewise.
  3901. * reload.c (find_reloads): Likewise.
  3902. (find_reloads_address): Likewise.
  3903. (find_reloads_address_1): Likewise.
  3904. * sched-deps.c: Include "target.h".
  3905. (sched_analyze_1): Use appropriate address mode instead of Pmode.
  3906. (sched_analyze_2): Likewise.
  3907. * sel-sched-dump.c: Include "target.h".
  3908. (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
  3909. * stor-layout.c (layout_type): Likewise.
  3910. * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
  3911. (multiplier_allowed_in_address_p): Likewise.
  3912. (get_address_cost): Likewise.
  3913. * varasm.c (make_decl_rtl): Likewise.
  3914. * expr.c (expand_assignment): Always convert offsets to appropriate
  3915. address mode.
  3916. (store_expr): Likewise.
  3917. (store_constructor): Likewise.
  3918. (expand_expr_real_1): Likewise.
  3919. * reload.h (form_sum): Add MODE argument.
  3920. * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
  3921. Update recursive calls.
  3922. (subst_indexed_address): Update calls to form_sum.
  3923. * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
  3924. * tree-ssa-address.c: Include "target.h".
  3925. (templates): Replace by ...
  3926. (mem_addr_template_list): ... this new vector.
  3927. (TEMPL_IDX): Handle address space numbers.
  3928. (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
  3929. (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
  3930. instead of global cache. Update call to gen_addr_rtx.
  3931. (valid_mem_ref_p): Update call to addr_for_mem_ref.
  3932. * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
  3933. * rtl.h (convert_memory_address_addr_space): Add prototype.
  3934. (convert_memory_address): Define as macro.
  3935. * explow.c (convert_memory_address): Rename to ...
  3936. (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
  3937. Use appropriate pointer and address modes instead of ptr_mode / Pmode.
  3938. Update recursive calls.
  3939. (memory_address_addr_space): Call convert_memory_address_addr_space.
  3940. * expmed.c (make_tree): Likewise.
  3941. * expr.c (expand_assignment): Likewise.
  3942. (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
  3943. (expand_expr_addr_expr): Likewise. Also, update call.
  3944. * alias.c (find_base_value): Guard pointer size optimizations.
  3945. (find_base_term): Likewise.
  3946. * rtlanal.c (nonzero_bits1): Likewise.
  3947. (num_sign_bit_copies1): Likewise.
  3948. * simplify-rtx.c (simplify_unary_operation_1): Likewise.
  3949. * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
  3950. (emit-rtl.o): Likewise.
  3951. (auto-inc-dec.o): Likewise.
  3952. (sched-deps.o): Likewise.
  3953. 2009-10-26 Ben Elliston <bje@au.ibm.com>
  3954. Michael Meissner <meissner@linux.vnet.ibm.com>
  3955. Ulrich Weigand <uweigand@de.ibm.com>
  3956. * doc/extend.texi (Named Address Spaces): New section.
  3957. * coretypes.h (addr_space_t): New type.
  3958. (ADDR_SPACE_GENERIC): New define.
  3959. (ADDR_SPACE_GENERIC_P): New macro.
  3960. * doc/tm.texi (Named Address Spaces): New section.
  3961. (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
  3962. (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
  3963. (TARGET_ADDR_SPACE_SUBSET_P): Document.
  3964. (TARGET_ADDR_SPACE_CONVERT): Document.
  3965. * target.h (struct gcc_target): Add addr_space substructure.
  3966. * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
  3967. (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
  3968. (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
  3969. (TARGET_ADDR_SPACE_CONVERT): Likewise.
  3970. (TARGET_ADDR_SPACE_HOOKS): Likewise.
  3971. (TARGET_INITIALIZER): Initialize addr_space hooks.
  3972. * targhooks.c (default_addr_space_legitimate_address_p): New function.
  3973. (default_addr_space_legitimize_address): Likewise.
  3974. (default_addr_space_subset_p): Likewise.
  3975. (default_addr_space_convert): Likewise.
  3976. * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
  3977. (default_addr_space_legitimize_address): Likewise.
  3978. (default_addr_space_subset_p): Likewise.
  3979. (default_addr_space_convert): Likewise.
  3980. * doc/rtl.texi (MEM_ADDR_SPACE): Document.
  3981. * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
  3982. (MEM_ADDR_SPACE): New macro.
  3983. * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
  3984. address space memory attribute.
  3985. (mem_attrs_htab_hash): Handle address space memory attribute.
  3986. (mem_attrs_htab_eq): Likewise.
  3987. (set_mem_attributes_minus_bitpos): Likewise.
  3988. (set_mem_alias_set): Likewise.
  3989. (set_mem_align): Likewise.
  3990. (set_mem_expr): Likewise.
  3991. (set_mem_offset): Likewise.
  3992. (set_mem_size): Likewise.
  3993. (adjust_address_1): Likewise.
  3994. (offset_address): Likewise.
  3995. (widen_memoy_address): Likewise.
  3996. (get_spill_slot_decl): Likewise.
  3997. (set_mem_attrs_for_spill): Likewise.
  3998. (set_mem_addr_space): New function.
  3999. * emit-rtl.h (set_mem_addr_space): Add prototype.
  4000. * print-rtl.c (print_rtx): Print address space memory attribute.
  4001. * expr.c (expand_assignment): Set address space memory attribute
  4002. of generated MEM RTXes as appropriate.
  4003. (expand_expr_real_1): Likewise.
  4004. * cfgexpand.c (expand_debug_expr): Likewise.
  4005. * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
  4006. * tree.h (struct tree_base): Add address_space bitfield. Reduce
  4007. size of "spare" bitfield.
  4008. (TYPE_ADDR_SPACE): New macro.
  4009. (ENCODE_QUAL_ADDR_SPACE): Likewise.
  4010. (DECODE_QUAL_ADDR_SPACE): Likewise.
  4011. (CLEAR_QUAL_ADDR_SPACE): Likewise.
  4012. (KEEP_QUAL_ADDR_SPACE): Likewise.
  4013. (TYPE_QUALS): Encode type address space.
  4014. (TYPE_QUALS_NO_ADDR_SPACE): New macro.
  4015. * tree.c (set_type_quals): Set type address space.
  4016. (build_array_type): Inherit array address space from element type.
  4017. * print-tree.c (print_node_brief): Print type address space.
  4018. (print_node): Likewise.
  4019. * tree-pretty-print.c (dump_generic_node): Likewise.
  4020. * explow.c (memory_address): Rename to ...
  4021. (memory_address_addr_space): ... this. Add ADDRSPACE argument.
  4022. Use address-space aware variants of memory address routines.
  4023. * recog.c (memory_address_p): Rename to ...
  4024. (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
  4025. Use address-space aware variants of memory address routines.
  4026. (offsettable_address_p): Rename to ...
  4027. (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
  4028. Use address-space aware variants of memory address routines.
  4029. * reload.c (strict_memory_address_p): Rename to ...
  4030. (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
  4031. Use address-space aware variants of memory address routines.
  4032. (maybe_memory_address_p): Rename to ...
  4033. (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
  4034. Use address-space aware variants of memory address routines.
  4035. * expr.h (memory_address_addr_space): Add prototype.
  4036. (memory_address): Define as macro.
  4037. * recog.h (memory_address_addr_space_p): Add prototype.
  4038. (memory_address_p): Define as macro.
  4039. (offsettable_address_addr_space_p): Add prototype.
  4040. (offsettable_address_p): Define as macro.
  4041. (strict_memory_address_addr_space_p): Add prototype.
  4042. (strict_memory_address_p): Define as macro.
  4043. * combine.c (find_split_point): Use address-space aware variants
  4044. of memory address routines.
  4045. * emit-rtl.c (operand_subword): Likewise.
  4046. (change_address_1): Likewise.
  4047. (adjust_address_1): Likewise.
  4048. (offset_address): Likewise.
  4049. * expr.c (emit_move_insn): Likewise.
  4050. (expand_assignment): Likewise.
  4051. (expand_expr_real_1): Likewise.
  4052. * recog.c (verify_changes): Likewise.
  4053. (general_operand): Likewise.
  4054. (offsettable_memref_p): Likewise.
  4055. (offsettable_nonstrict_memref_p): Likewise.
  4056. (constrain_operands): Likewise.
  4057. * reload.c (get_secondary_mem): Likewise.
  4058. (find_reloads_toplev): Likewise.
  4059. (find_reloads_address): Likewise.
  4060. (find_reloads_subreg_address): Likewise.
  4061. * reload1.c (reload): Likewise.
  4062. * rtlhooks.c (gen_lowpart_if_possible): Likewise.
  4063. * rtl.h (address_cost): Add ADDRSPACE argument.
  4064. * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
  4065. aware variant of memory address routines.
  4066. * loop-invariant.c (create_new_invariant): Update address_cost call.
  4067. * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
  4068. * fwprop.c (should_replace_address): Add ADDRSPACE argument.
  4069. Use address-space aware variant of memory address routines.
  4070. (propagate_rtx_1): Update call to should_replace_address.
  4071. * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
  4072. argument.
  4073. * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
  4074. ADDRSPACE argument. Use per-address-space instead of global cache.
  4075. Use address-space aware variant of memory address routines.
  4076. (get_address_cost): Likewise.
  4077. (get_computation_cost_at): Update calls.
  4078. * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
  4079. Use address-space aware variant of memory address routines.
  4080. (create_mem_ref_raw): Update call to valid_mem_ref_p.
  4081. (most_expensive_mult_to_index): Update call to
  4082. multiplier_allowed_in_address_p.
  4083. * dwarf2out.c (modified_type_die): Output DW_AT_address_class
  4084. attribute to indicate named address spaces.
  4085. * varasm.c (get_variable_section): DECLs in named address spaces
  4086. cannot be "common".
  4087. * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
  4088. for addresses in a non-generic address space.
  4089. * expr.c (emit_block_move_hints): Do not use libcalls for
  4090. memory in non-generic address spaces.
  4091. (clear_storage_hints): Likewise.
  4092. (expand_assignment): Likewise.
  4093. * fold-const.c (operand_equal_p): Expressions refering to different
  4094. address spaces are not equivalent.
  4095. * rtl.c (rtx_equal_p_cb): MEMs refering to different address
  4096. spaces are not equivalent.
  4097. (rtx_equal_p): Likewise.
  4098. * cse.c (exp_equiv_p): Likewise.
  4099. * jump.c (rtx_renumbered_equal_p): Likewise.
  4100. * reload.c (operands_match_p): Likewise.
  4101. * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
  4102. address spaces may alias.
  4103. (true_dependence): Likewise.
  4104. (canon_true_dependence): Likewise.
  4105. (write_dependence_p): Likewise.
  4106. * dse.c (canon_address): Handle named address spaces.
  4107. * ifcvt.c (noce_try_cmove_arith): Likewise.
  4108. * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
  4109. * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
  4110. * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
  4111. to handle conversions between different address spaces.
  4112. * fold-const.c (fold_convert_loc): Likewise.
  4113. (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
  4114. * tree-pretty-print.c (dump_generic_node): Likewise.
  4115. * gimple-pretty-print.c (dump_unary_rhs): Likewise.
  4116. * tree-cfg.c (verify_gimple_assign_unary): Likewise.
  4117. * tree-inline.c (estimate_operator_cost): Likewise.
  4118. * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
  4119. to different address spaces are not useless.
  4120. 2009-10-26 Jakub Jelinek <jakub@redhat.com>
  4121. PR bootstrap/41345
  4122. * cfgcleanup.c (trivially_empty_bb_p): New function.
  4123. (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
  4124. PR debug/41828
  4125. * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
  4126. add_name_and_src_coords_attributes, gen_namespace_die,
  4127. dwarf2out_set_name): Handle dwarf2_name returning NULL.
  4128. 2009-10-26 Nick Clifton <nickc@redhat.com>
  4129. * config.gcc: Add support for RX target.
  4130. * config/rx: New directory.
  4131. * config/rx/constraints.md: New file.
  4132. * config/rx/predicates.md: New file.
  4133. * config/rx/rx.c: New file.
  4134. * config/rx/rx.h: New file.
  4135. * config/rx/rx.md: New file.
  4136. * config/rx/rx.opt: New file.
  4137. * config/rx/rx-protos.h: New file.
  4138. * config/rx/t-rx: New file.
  4139. * doc/extend.texi: Document RX function attributes.
  4140. * doc/invoke.texi: Document RX specific command line options.
  4141. * doc/contrib.texi: Document RX contribution.
  4142. * doc/md.texi: Document RX constraints.
  4143. * doc/install.texi: Document RX support.
  4144. 2009-10-26 Michael Matz <matz@suse.de>
  4145. PR tree-optimization/41783
  4146. * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
  4147. case for simple diamonds.
  4148. * tree-ssa-alias.h (get_continuation_for_phi): Declare.
  4149. * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
  4150. argument, use alias oracle to skip some vdefs.
  4151. (phi_translate_1): Change call to above, don't allocate new
  4152. value ids if they can stay the same.
  4153. (compute_avail): Allow vuse walking when looking up references.
  4154. 2009-10-26 Richard Guenther <rguenther@suse.de>
  4155. PR tree-optimization/41826
  4156. * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
  4157. access to re-allocated vector fields.
  4158. 2009-10-26 Richard Guenther <rguenther@suse.de>
  4159. * graphite-sese-to-poly.c (check_poly_representation): Fix
  4160. compile without checking.
  4161. 2009-10-26 Janus Weil <janus@gcc.gnu.org>
  4162. PR fortran/41714
  4163. * gimple.h (tree_annotate_all_with_location): Remove prototype.
  4164. * gimplify.c (tree_should_carry_location_p,
  4165. tree_annotate_one_with_location,tree_annotate_all_with_location):
  4166. Remove obsolete functions.
  4167. 2009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
  4168. PR target/41813
  4169. * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
  4170. 2009-10-25 Richard Guenther <rguenther@suse.de>
  4171. * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
  4172. Stream DECL_RESTRICTED_P.
  4173. * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
  4174. 2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
  4175. * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
  4176. a note when expanding to nothing.
  4177. 2009-10-25 Richard Guenther <rguenther@suse.de>
  4178. PR middle-end/41814
  4179. * tree.c (find_decls_types_r): Deal with Java overloading
  4180. BINFO_VIRTUALS for its own purpose.
  4181. 2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
  4182. * config/mips/predicates.md (hilo_operand): New predicate.
  4183. * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
  4184. define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
  4185. splitter part from here ...:
  4186. (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
  4187. op0 and op4 to match the DINS case.
  4188. (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
  4189. 2009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
  4190. PR middle-end/19154
  4191. * avr.md (QIDI): Add new mode iterator.
  4192. (sbrx_branch<mode>): Create new zero extract bit, test and jump
  4193. patterns for all QI thru DI modes combinations.
  4194. (sbrx_and_branch<mode>): Create new and based bit test and jump
  4195. patterns for QI thru SI modes.
  4196. avr.c (avr_out_sbxx_branch): Use only bit number.
  4197. 2009-10-24 Jan Hubicka <jh@suse.cz>
  4198. * ipa-reference.c (check_call): Noreturn notrhow calls do not write
  4199. to memory.
  4200. (analyze_function): When analyzing noreturn nothrow call, do not
  4201. compute written stats; free bitmaps of vars early if possible.
  4202. (generate_summary): Only update bitmaps if computed.
  4203. (propagate): Only dump bitmaps if computed.
  4204. (ipa_reference_read_summary): Fix pasto.
  4205. 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
  4206. * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
  4207. (aliasing_component_refs_p): ...this. Return true if there is no
  4208. common base and the base access types have the same alias set.
  4209. (indirect_ref_may_alias_decl_p): Adjust for above renaming.
  4210. (indirect_refs_may_alias_p): Likewise.
  4211. 2009-10-23 Joseph Myers <joseph@codesourcery.com>
  4212. PR c/40033
  4213. * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
  4214. a C_MAYBE_CONST_EXPR.
  4215. 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
  4216. PR target/41787
  4217. * config/rs6000/rs6000.c (struct machine_function): Add
  4218. vsx_or_altivec_used_p to record if vector types are used.
  4219. (rs6000_expand_to_rtl_hook): Rename from
  4220. rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
  4221. any vector operations, so if there are, we can set VRSAVE to
  4222. non-zero when only floating point vector registers are used.
  4223. (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
  4224. (rs6000_check_vector_mode): Inner function to check if vector
  4225. types are used in the code.
  4226. (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
  4227. vector instructions are used.
  4228. * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
  4229. Indicate that VSX registers which overlap floating point
  4230. registers, can't be used across a call, since the ABI only states
  4231. the scalar part of the register will be saved and restored.
  4232. 2009-10-23 Joseph Myers <joseph@codesourcery.com>
  4233. PR c/41673
  4234. * alias.c (get_alias_set): Call langhook before returning 0 for
  4235. types with structural equality.
  4236. * c-common.c (c_common_get_alias_set): Use alias set of element
  4237. type for arrays with structural comparison.
  4238. 2009-10-23 Richard Guenther <rguenther@suse.de>
  4239. PR middle-end/41805
  4240. * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
  4241. gimple_call_nothrow_p.
  4242. 2009-10-23 Richard Guenther <rguenther@suse.de>
  4243. PR tree-optimization/41778
  4244. * tree-ssa-pre.c (do_regular_insertion): Only insert if a
  4245. redundancy along a path in the CFG we want to optimize for speed
  4246. is going to be removed.
  4247. (execute_pre): Do partial-PRE only if the function is to be
  4248. optimized for speed.
  4249. (gate_pre): Do not turn off all of PRE when not optimizing a
  4250. function for speed.
  4251. 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  4252. * builtins.c (fold_builtin_cabs): Use validate_arg().
  4253. (fold_builtin_cexp): Fix if-logic.
  4254. (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
  4255. 2009-10-22 Jeff Law <law@redhat.com>
  4256. * ira-lives.c (process_single_reg_class_operands): Update the
  4257. hard reg costs for all the hard registers desired by the
  4258. single reg class operand.
  4259. 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
  4260. * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
  4261. for rtxes that aren't handled specially.
  4262. 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
  4263. * rtl.h (shallow_copy_rtvec): Declare.
  4264. * rtl.c (shallow_copy_rtvec): New function.
  4265. * cselib.c (cselib_subst_to_values): Use it. Only modify an
  4266. rtx field if the subrtx has changed.
  4267. 2009-10-22 Anatoly Sokolov <aesok@post.ru>
  4268. * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
  4269. (m32c_function_value): Make static, add new 'outgoing' argument.
  4270. (m32c_libcall_value): Make static, add new 'fun' argument.
  4271. (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
  4272. * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
  4273. (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
  4274. * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
  4275. (m32c_function_value, m32c_libcall_value): Delete declaration.
  4276. 2009-10-22 Diego Novillo <dnovillo@google.com>
  4277. * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
  4278. 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
  4279. * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
  4280. space.
  4281. 2009-10-22 Richard Guenther <rguenther@suse.de>
  4282. * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
  4283. * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
  4284. (lto_symtab_merge): Do not merge cgraph nodes here.
  4285. (lto_symtab_resolve_can_prevail_p): Simplify.
  4286. (lto_symtab_resolve_symbols): Store cgraph node.
  4287. (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
  4288. functions from the symtab.
  4289. (lto_symtab_merge_cgraph_nodes_1): New function.
  4290. (lto_symtab_merge_cgraph_nodes): Likewise.
  4291. 2009-10-22 Richard Guenther <rguenther@suse.de>
  4292. PR lto/41791
  4293. * lto-streamer-out.c (lto_output_location): Stream the
  4294. system header flag.
  4295. * lto-streamer-in.c (lto_input_location): Likewise.
  4296. 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
  4297. * cfgloopmanip.c (duplicate_subloops): Export.
  4298. * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
  4299. (transform_to_exit_first_loop): Duplicate bbs starting from
  4300. header up to loop->latch instead of exit->src.
  4301. Initialize control variable to the correct number of iterations.
  4302. (gather_scalar_reductions): Do not register double reductions.
  4303. (parallelize_loops): Dump which loop is tested.
  4304. Indicate whether the parallelized loop is inner or not.
  4305. Remove the innermost-loop requirement.
  4306. * cfgloop.h (duplicate_subloops): Export.
  4307. * tree-cfg.c (add_phi_args_after_redirect): New function.
  4308. (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
  4309. Call duplicate_subloops.
  4310. Update number of iterations at the exit condition.
  4311. Don't redirect nexits always to the loop exit.
  4312. Redirect copied edges from latch to the loop exit.
  4313. 2009-10-22 Jan Hubicka <jh@suse.cz>
  4314. * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
  4315. flag_ltrans check.
  4316. * ipa-inline.c (cgraph_mark_inline_edge,
  4317. cgraph_decide_inlining_of_small_function,
  4318. cgraph_decide_inlining, inline_read_summary): Disable indirect
  4319. inlining for WPA for time being.
  4320. PR tree-optimize/40556
  4321. * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
  4322. 2009-10-22 Richard Guenther <rguenther@suse.de>
  4323. * lto-streamer.h (lto_symtab_clear_resolution): Remove.
  4324. * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
  4325. 2009-10-22 Jan Hubicka <jh@suse.cz>
  4326. PR lto/41730
  4327. * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
  4328. global vars.
  4329. (check_call): Handle only indirect calls.
  4330. (propagate_bits): Update comment.
  4331. (write_node_summary_p): Turn bogus check to assert.
  4332. (ipa_reference_write_summary): Stream calls_read_all properly.
  4333. (ipa_reference_read_summary): Stream in calls_read_all properly.
  4334. (read_write_all_from_decl): New function.
  4335. (propagate): Handle OVERWRITABLE nodes and external calls here.
  4336. * ipa-pre-const.c (check_call): In IPA mode handle indirect
  4337. calls only.
  4338. (analyze_function): Do not check visibility here.
  4339. (add_new_function): We summary OVERWRITABLE too.
  4340. (generate_summary): Stream OVERWRITABLE nodes too.
  4341. (propagate): Handle external calls and OVERWRITABLE nodes here.
  4342. (local_pure_const): Check visibility here.
  4343. 2009-10-22 Jan Hubicka <jh@suse.cz>
  4344. * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
  4345. (pass_ipa_cp): Register them.
  4346. (ipcp_init_stage): Analyze all functions for whopr/lto.
  4347. (ipcp_propagate_stage): Skip external calls.
  4348. (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
  4349. * ipa-reference.c (write_node_summary_p): Fix thinko about
  4350. availability.
  4351. * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
  4352. when in ltrans, skip executing of ipa passes since everything
  4353. should've been done.
  4354. * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
  4355. (inline_generate_summary): Likewise.
  4356. (inline_read_summary): New function.
  4357. (inline_write_summary): New function.
  4358. (pass_ipa_inline): Register new hooks.
  4359. * ipa-prop.c: Inlcude lto-streamer.h
  4360. (ipa_edge_args_vector): Update declaration.
  4361. (ipa_count_arguments, ipa_compute_jump_functions,
  4362. ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
  4363. (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
  4364. ipa_read_node_info): New static functions.
  4365. (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
  4366. (duplicate_array): Use xmalloc.
  4367. (duplicate_ggc_array): New.
  4368. (ipa_edge_duplication_hook): Use it.
  4369. (ipa_update_after_lto_read): New function.
  4370. * ipa-prop.h (ipa_prop_write_jump_functions,
  4371. ipa_prop_read_jump_functions): Declare.
  4372. (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
  4373. jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
  4374. (ipa_edge_args_vector): Move into GGC.
  4375. (ipa_check_create_edge_args): Update.
  4376. (ipa_update_after_lto_read): New.
  4377. * passes.c (ipa_write_summaries_1): When in wpa, do not write
  4378. summaries.
  4379. (ipa_read_summaries): When in ltrans, so not read summaries.
  4380. * lto-streamer.c (lto_get_section_name): Add
  4381. LTO_section_jump_functions.
  4382. * lto-streamer.h (LTO_section_jump_functions): New section.
  4383. (produce_asm): Declare.
  4384. * lto-cgraph.c (output_cgraph): Output edges in reverse order.
  4385. * lto-streamer-out.c (produce_asm): Export.
  4386. * lto-streamer-in.c: Include tree-pass.h
  4387. (input_function): Free dominance info when done.
  4388. (lto_read_body): Push ipa_inline in ltrans stage.
  4389. * gengtype.c (open_base_files): Add ipa-prop.h into includes.
  4390. * Makefile.in (GTFILES): Add ipa-prop.h
  4391. 2009-10-22 Matthias Klose <doko@ubuntu.com>
  4392. * doc/install.texi: Document --enable-browser-plugin.
  4393. 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
  4394. * doc/invoke.texi (fira-loop-pressure): Update default value.
  4395. * opts.c (decode_options): Remove default value setting for
  4396. flag_ira_loop_pressure.
  4397. * config/ia64/ia64.c (ia64_override_options): Set
  4398. flag_ira_loop_pressure up for -O3.
  4399. * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
  4400. 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
  4401. PR tree-optimization/41497
  4402. * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
  4403. chrec_dont_know if the evolution function returned by follow_ssa_edge
  4404. is constant in the analyzed loop and is not compatible with the
  4405. initial value before the loop.
  4406. * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
  4407. 2009-10-21 Joseph Myers <joseph@codesourcery.com>
  4408. * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
  4409. 2009-10-21 Jakub Jelinek <jakub@redhat.com>
  4410. PR other/25507
  4411. * doc/invoke.texi: Document -print-multi-os-directory.
  4412. 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
  4413. PR c++/41313
  4414. * gcc/config/darwin10.h: Use default_emit_unwind_label.
  4415. * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
  4416. when darwin_emit_unwind_label is used.
  4417. 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
  4418. * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
  4419. order of checks.
  4420. 2009-10-20 Richard Henderson <rth@redhat.com>
  4421. * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
  4422. before emit_post_landing_pad.
  4423. 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
  4424. * config/mips/mips.c (mips_binary_cost): Add new argument speed.
  4425. Use when calling rtx_costs.
  4426. (mips_rtx_costs): Fix formatting. Use argument speed rather than the
  4427. global optimize_size. Pass speed to mips_binary_cost.
  4428. 2009-10-20 Jakub Jelinek <jakub@redhat.com>
  4429. * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
  4430. of TREE_CONSTANT.
  4431. 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
  4432. * rtl.h (simplify_replace_fn_rtx): Declare.
  4433. (wrap_constant, unwrap_constant): Delete.
  4434. * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
  4435. (expand_debug_expr): Don't call wrap_constant.
  4436. * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
  4437. (auto_adjust_pair): Fold into...
  4438. (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
  4439. Just return a new value.
  4440. (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
  4441. otherwise use simplify_replace_rtx.
  4442. * cselib.c (wrap_constant): Reinstate old definition.
  4443. (cselib_expand_value_rtx_1): Don't wrap constants.
  4444. * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
  4445. simplify_replace_rtx.
  4446. (bypass_block): Fix formatting in calls to simplify_replace_rtx.
  4447. * reload1.c (reload): Skip all uses for an insn before adjusting it.
  4448. Use simplify_replace_rtx.
  4449. * simplify-rtx.c (simplify_replace_fn_rtx): New function,
  4450. adapted from...
  4451. (simplify_replace_rtx): ...here. Turn into a wrapper for
  4452. simplify_replace_fn_rtx.
  4453. (simplify_unary_operation): Don't unwrap CONSTs.
  4454. * var-tracking.c (check_wrap_constant): Delete.
  4455. (vt_expand_loc_callback): Don't call it.
  4456. (vt_expand_loc): Likewise.
  4457. 2009-10-20 Pascal Obry <obry@adacore.com>
  4458. Eric Botcazou <ebotcazou@adacore.com>
  4459. * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
  4460. 2009-10-20 Michael Matz <matz@suse.de>
  4461. * loop-invariant.c (create_new_invariant): Use different magic number.
  4462. 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
  4463. PR target/39247
  4464. * arm.c (arm_override_options): Forcibly disable hot/cold block
  4465. partitioning.
  4466. 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
  4467. PR debug/41739
  4468. * haifa-sched.c (try_ready): Skip debug deps updating speculation
  4469. status.
  4470. 2009-10-20 Richard Guenther <rguenther@suse.de>
  4471. * ggc-page.c: Include cfgloop.h.
  4472. (struct max_alignment): Drop long double, add void *.
  4473. (extra_order_size_table): Add low non-power-of-two multiples
  4474. of MAX_ALIGNMENT. Drop small type-based entries, add
  4475. tree_type, cgraph_node and loop.
  4476. * alloc-pool.c (struct allocation_object_def): Drop long double
  4477. aligning element.
  4478. 2009-10-20 Jakub Jelinek <jakub@redhat.com>
  4479. PR debug/41340
  4480. * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
  4481. referenced just in DEBUG_INSNs.
  4482. 2009-10-20 Richard Guenther <rguenther@suse.de>
  4483. PR lto/41761
  4484. * gimple.c (gimple_register_type): Make sure we register
  4485. the types main variant first.
  4486. 2009-10-20 Richard Guenther <rguenther@suse.de>
  4487. * gimple.c (gimple_types_compatible_p): Simplify. Move
  4488. cheap checks before hashtable queries. Add checks for
  4489. TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
  4490. 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
  4491. * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
  4492. without size or with size that can't be represented as a host integer.
  4493. 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
  4494. * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
  4495. the removal of a debug stmt as a significant change.
  4496. 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
  4497. * config/s390/s390.md: Added agen condition to operand
  4498. forwarding bypasses. Added bypass for early address generation
  4499. use of int results. Updated comments.
  4500. 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
  4501. * config/i386/i386.c: Remove signal.h #include.
  4502. 2009-10-20 Jie Zhang <jie.zhang@analog.com>
  4503. * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
  4504. * doc/rtl.texi: Document ss_abs.
  4505. 2009-10-19 Jakub Jelinek <jakub@redhat.com>
  4506. * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
  4507. * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
  4508. instead of C_LEX_RAW_STRINGS.
  4509. (lex_string): Handle CPP_UTF8STRING.
  4510. * c-parser.c (c_parser_postfix_expression): Likewise.
  4511. * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
  4512. (C_LEX_STRING_NO_JOIN): ... this.
  4513. 2009-10-19 Anatoly Sokolov <aesok@post.ru>
  4514. * config/cris/cris.c (cris_function_value, cris_libcall_value,
  4515. cris_function_value_regno_p): New functions.
  4516. (cris_promote_function_mode): Update comment.
  4517. (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
  4518. * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
  4519. (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
  4520. * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
  4521. 2009-10-19 Jakub Jelinek <jakub@redhat.com>
  4522. * unwind-dw2.c (execute_stack_op): Fix operand order for
  4523. DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
  4524. 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
  4525. * gimple-low.c (struct lower_data): Add cannot_fallthru field.
  4526. (lower_stmt) <GIMPLE_BIND>: Add comment.
  4527. <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
  4528. and return.
  4529. <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
  4530. Otherwise lower it and set cannot_fallthru to true.
  4531. <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
  4532. <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
  4533. <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
  4534. to true for a noreturn call. Do not remove statements.
  4535. <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
  4536. Set cannot_fallthru to false on function exit.
  4537. (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
  4538. <GIMPLE_ASSIGN>: Remove.
  4539. 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  4540. * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
  4541. 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  4542. * config/s390/s390.c (s390_z10_optimize_cmp): Use
  4543. next/prev_active_insn to skip DEBUG_INSNs as well.
  4544. 2009-10-19 Joseph Myers <joseph@codesourcery.com>
  4545. * config/arm/arm.c (output_move_neon): Use DImode in call to
  4546. adjust_address.
  4547. 2009-10-19 Matthias Klose <doko@ubuntu.com>
  4548. PR target/40134
  4549. * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
  4550. 2009-10-19 Jakub Jelinek <jakub@redhat.com>
  4551. * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
  4552. 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
  4553. PR middle-end/41738
  4554. * optabs.c (expand_binop): Make mode of shift count expression mode
  4555. of shift count not target.
  4556. Remove indent nit.
  4557. 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
  4558. * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
  4559. case. Force using values to replace references within the statement.
  4560. (convert_local_reference_stmt): Likewise.
  4561. 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
  4562. * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
  4563. remove a subsequent GOTO or RETURN statement.
  4564. 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
  4565. * config/avr.md (*movqi): Add zero as equally preferable constraint
  4566. as general register.
  4567. (*movhi): Ditto.
  4568. 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
  4569. * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
  4570. 2009-10-17 Richard Guenther <rguenther@suse.de>
  4571. * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
  4572. 2009-10-17 Richard Guenther <rguenther@suse.de>
  4573. * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
  4574. operands in COMPONENT_REFs.
  4575. 2009-10-17 Anatoly Sokolov <aesok@post.ru>
  4576. * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
  4577. if not defined. Change type of second argument to const_rtx.
  4578. (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
  4579. macro not defined.
  4580. * targhooks.h (default_libcall_value): Update prototype.
  4581. * target.h (struct gcc_target): Change type of second argument of
  4582. libcall_value to const_rtx.
  4583. * config/arm/arm.c (arm_libcall_value): Change type of second argument
  4584. to const_rtx.
  4585. (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
  4586. * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
  4587. 2009-10-17 Jakub Jelinek <jakub@redhat.com>
  4588. PR debug/40521
  4589. * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
  4590. * cgraphunit.c (cgraph_optimize): Call it.
  4591. * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
  4592. (dwarf2out_assembly_start): ... here. New hook.
  4593. (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
  4594. * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
  4595. hook.
  4596. * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
  4597. * sdbout.c (sdb_debug_hooks): Likewise.
  4598. * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
  4599. (vmsdbgout_assembly_start): New hook.
  4600. 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
  4601. * rtl.h (RTL_LOCATION): Fix typo.
  4602. 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
  4603. * print-rtl.c (print_rtx): Print locators in asm_operands
  4604. and asm_input.
  4605. 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
  4606. PR debug/41535
  4607. * sched-deps.c (depl_on_debug_p): New.
  4608. (attach_dep_link): Reject debug deps before nondebug deps.
  4609. (add_to_deps_list): Insert debug deps after nondebug deps.
  4610. (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
  4611. deps.
  4612. (sd_add_dep): Do not reject debug deps.
  4613. (add_insn_mem_dependence): Don't count debug deps.
  4614. (remove_from_deps): Likewise.
  4615. (sched_analyze_2): Set up mem deps on debug insns.
  4616. (sched_analyze_insn): Record reg uses for deps on debug insns.
  4617. * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
  4618. try_ready nondebug insn after debug insn.
  4619. * ddg.c (create_ddg_dep_from_intra_loop_link,
  4620. create_ddg_dep_no_link): Don't reject debug deps.
  4621. 2009-10-16 Richard Guenther <rguenther@suse.de>
  4622. * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
  4623. (maybe_merge_incomplete_and_complete_type): Likewise.
  4624. (lto_symtab_merge): Do not call them. Do not warn for
  4625. complete vs. incomplete compatible types.
  4626. (lto_symtab_merge_decls_2): Simplify.
  4627. * gimple.c (gimple_force_type_merge): Remove.
  4628. (gimple_types_compatible_p): Make it static.
  4629. * gimple.h (gimple_force_type_merge): Remove.
  4630. (gimple_types_compatible_p): Likewise.
  4631. 2009-10-16 Jakub Jelinek <jakub@redhat.com>
  4632. * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
  4633. DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
  4634. 2009-10-16 Richard Guenther <rguenther@suse.de>
  4635. PR tree-optimization/41728
  4636. * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
  4637. if fold_stmt did anything.
  4638. 2009-10-16 Richard Guenther <rguenther@suse.de>
  4639. PR lto/41715
  4640. * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
  4641. (maybe_fixup_handled_component): New function.
  4642. (input_gimple_stmt): Fixup mismatched decl replacements.
  4643. 2009-10-16 Richard Guenther <rguenther@suse.de>
  4644. PR lto/41713
  4645. * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
  4646. the same as VAR_DECL.
  4647. 2009-10-16 Richard Guenther <rguenther@suse.de>
  4648. * gimple.c (iterative_hash_gimple_type): For integer types
  4649. also hash their minimum and maximum values and the string flag.
  4650. For array types hash their domain and the string flag.
  4651. 2009-10-16 Richard Guenther <rguenther@suse.de>
  4652. * gimple.c (gimple_types_compatible_p): Restrict completing
  4653. types to record or unions. Simplify completion.
  4654. Do not merge records or unions with different
  4655. TYPE_STRUCTURAL_EQUALITY_P tag.
  4656. (iterative_hash_gimple_type): Restrict non-recursing into
  4657. pointer targets for records and unions.
  4658. 2009-10-15 Jakub Jelinek <jakub@redhat.com>
  4659. PR debug/41717
  4660. * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
  4661. * dwarf2out.c (mem_loc_descriptor): Don't handle
  4662. POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
  4663. punt if it is not lowpart subreg or if inner mode isn't
  4664. MODE_INT.
  4665. 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  4666. * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
  4667. investigating previous or next insns.
  4668. 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
  4669. * tree-sra.c (build_ref_for_offset_1): Update comment.
  4670. 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
  4671. * config/s390/s390.md (atype): Added missing values.
  4672. 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  4673. PR target/41702
  4674. * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
  4675. (casesi64p): Update pattern to reflect above.
  4676. 2009-10-15 Steve Ellcey <sje@cup.hp.com>
  4677. PR rtl-optimization/41697
  4678. * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
  4679. 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
  4680. PR target/23983
  4681. * config/rs6000/predicates.md: Update copyright year.
  4682. * config/rs6000/altivec.md: Ditto.
  4683. * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
  4684. (MD_INCLUDES): Add a2.md.
  4685. * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
  4686. RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
  4687. (builtin_classify): New static vector to classify various builtins
  4688. to get the tree attributes correct.
  4689. (def_builtin): Set the attributes of builtins based on what the
  4690. builtin does (i.e. memory operation, floating point, saturation
  4691. need special attributes, others are pure functions).
  4692. * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
  4693. the builtins.
  4694. (enum rs6000_builtins): Include rs6000-builtin.def to define the
  4695. builtins. Change the end marker to MAX_RS6000_BUILTINS from
  4696. RS6000_BUILTIN_COUNT.
  4697. (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
  4698. MAX_RS6000_BUILTINS.
  4699. * config/rs6000/rs6000-builtin.def: New file that combines the
  4700. builtin enumeration name and attributes.
  4701. 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
  4702. * config/i386/linux.h (ASM_SPEC): Add --32.
  4703. 2009-10-15 Jakub Jelinek <jakub@redhat.com>
  4704. * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
  4705. and DW_TAG_template_alias.
  4706. (dwarf_attr_name): Handle DW_AT_main_subprogram,
  4707. DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
  4708. DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
  4709. DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
  4710. DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
  4711. and DW_AT_GNU_odr_signature.
  4712. (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
  4713. DW_FORM_flag_present and DW_FORM_ref_sig8.
  4714. (output_signature): Only print name on the first byte.
  4715. (output_die): Likewise for dw_val_class_data8.
  4716. 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
  4717. * doc/invoke.texi: Clarify that most optimizations are not enabled
  4718. without -O.
  4719. 2009-10-15 Richard Guenther <rguenther@suse.de>
  4720. PR lto/41668
  4721. * gimple.c (compare_type_names_p): Handle anonymous names
  4722. differently based on new mode argument.
  4723. (gimple_types_compatible_p): For structs also compare the tags.
  4724. (iterative_hash_type_name): Rename to ...
  4725. (iterative_hash_name): ... this. Hash all names.
  4726. (iterative_hash_gimple_type): Fix hashing the struct tag of
  4727. pointer targets. Hash field decl names.
  4728. 2009-10-15 Richard Guenther <rguenther@suse.de>
  4729. PR lto/41669
  4730. * gimple.c (gimple_get_alias_set): Avoid recursing on
  4731. invalid type topology.
  4732. 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
  4733. * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
  4734. 2009-10-15 Richard Guenther <rguenther@suse.de>
  4735. * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
  4736. 2009-10-15 Jakub Jelinek <jakub@redhat.com>
  4737. * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
  4738. add --with-tune{,-32,-64} configured default for -mtune if explicit
  4739. -mcpu is used.
  4740. 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
  4741. * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
  4742. 2009-10-14 DJ Delorie <dj@redhat.com>
  4743. * config/h8300/h8300.c (F): New.
  4744. (Fpa): New.
  4745. (h8300_emit_stack_adjustment): Call them.
  4746. (push): Likewise.
  4747. (h8300_push_pop): Likewise.
  4748. (h8300_expand_prologue): Likewise.
  4749. * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
  4750. (MUST_USE_SJLJ_EXCEPTIONS): Define.
  4751. (INCOMING_RETURN_ADDR_RTX): Define.
  4752. (INCOMING_FRAME_SP_OFFSET): Define.
  4753. (DWARF_CIE_DATA_ALIGNMENT): Define.
  4754. 2009-10-14 Jakub Jelinek <jakub@redhat.com>
  4755. * stor-layout.c (place_field): Don't emit -Wpadded warnings for
  4756. fields in builtin structs.
  4757. (finalize_record_size): Likewise.
  4758. 2009-10-14 Richard Guenther <rguenther@suse.de>
  4759. * gimple.c (gtc_ob): New global.
  4760. (struct type_pair_d): Replace pointers with type UIDs.
  4761. (type_pair_hash): Adjust.
  4762. (type_pair_eq): Likewise.
  4763. (lookup_type_pair): Likewise. Allocate from an obstack.
  4764. (gimple_force_type_merge): Adjust.
  4765. (gimple_types_compatible_p): Likewise.
  4766. (free_gimple_type_tables): Free the obstack.
  4767. 2009-10-14 Jakub Jelinek <jakub@redhat.com>
  4768. * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
  4769. stmts setting DEBUG_EXPR_DECLs.
  4770. * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
  4771. Don't crash if mode1 is VOIDmode.
  4772. 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
  4773. * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
  4774. * params.h (IRA_LOOP_RESERVED_REGS): New.
  4775. * tree-pass.h (pass_subregs_of_mode_init,
  4776. pass_subregs_of_mode_finish): Remove.
  4777. * passes.c (pass_subregs_of_mode_init,
  4778. pass_subregs_of_mode_finish): Remove.
  4779. (pass_reginfo_init): Move before loop optimizations.
  4780. * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
  4781. * common.opt (fira-loop-pressure): New.
  4782. * toplev.h (flag_ira_loop_pressure): New.
  4783. * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
  4784. * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
  4785. Make external and void type functions.
  4786. (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
  4787. pass_subregs_of_mode_finish): Remove.
  4788. * ira-costs.c (init_costs): Call init_subregs_of_mode.
  4789. * regmove.c: Include ira.h.
  4790. (regmove_optimize): Call ira_set_pseudo_classes after IRA based
  4791. register pressure calculation in loops.
  4792. * loop-invariant.c: Include REGS_H and ira.h.
  4793. (struct loop_data): New members max_reg_pressure, regs_ref, and
  4794. regs_live.
  4795. (struct invariant): New member orig_regno.
  4796. (curr_loop): New variable.
  4797. (find_exits): Initialize regs_ref and regs_live.
  4798. (create_new_invariant): Initialize orig_regno.
  4799. (get_cover_class_and_nregs): New.
  4800. (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
  4801. array. Add code for flag_ira_loop_pressure.
  4802. (gain_for_invariant): Make new_regs an array. Add code for
  4803. flag_ira_loop_pressure.
  4804. (best_gain_for_invariant): Ditto.
  4805. (set_move_mark): New parameter gain. Use it for debugging output.
  4806. (find_invariants_to_move): Make regs_needed and new_regs an array.
  4807. Add code for flag_ira_loop_pressure.
  4808. (move_invariant_reg): Set up orig_regno.
  4809. (move_invariants): Set up reg classes for pseudos for
  4810. flag_ira_loop_pressure.
  4811. (free_loop_data): Clear regs_ref and regs_live.
  4812. (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
  4813. get_regno_cover_class, change_pressure, mark_regno_live,
  4814. mark_regno_death, mark_reg_store, mark_reg_clobber,
  4815. mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
  4816. (move_loop_invariants): Calculate pressure. Initialize curr_loop.
  4817. * ira.c (ira): Call ira_set_pseudo_classes after IRA based
  4818. register pressure calculation in loops if new regs were added.
  4819. Call finish_subregs_of_mode.
  4820. * opts.c (decode_options): Set up flag_ira_loop_pressure.
  4821. * Makefile.in (loop-invariant.o): Add ira.h.
  4822. (regmove.o): Ditto.
  4823. * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
  4824. Describe.
  4825. * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
  4826. 2009-10-14 Richard Guenther <rguenther@suse.de>
  4827. * lto-symtab.c (lto_symtab_compatible): Fold in ...
  4828. (lto_symtab_merge): ... here. Rewrite both to take the
  4829. prevailing and a to-be-merged entry and to queue diagnostics properly.
  4830. (lto_symtab_resolve_replaceable_p): New predicate for
  4831. symbol resolution.
  4832. (lto_symtab_resolve_can_prevail_p): Likewise.
  4833. (lto_symtab_resolve_symbols): Rewrite. Fold in code that
  4834. handles merging commons by choosing the largest decl. Fold
  4835. in code that gives ODR errors.
  4836. (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
  4837. diagnostics here.
  4838. (lto_symtab_merge_decls_1): Re-structure. Deal with the
  4839. case of no prevailing decl here. Diagnose mismatches
  4840. in object types here. Drop all but the prevailing decls.
  4841. (lto_symtab_prevailing_decl): Return the single prevailing decl.
  4842. * lto-streamer-in.c (lto_input_tree_ref): Deal with
  4843. VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
  4844. 2009-10-14 Richard Guenther <rguenther@suse.de>
  4845. PR lto/41521
  4846. * lto-streamer-in.c (input_bb): Replace debug stmts with
  4847. nops instead of dropping them.
  4848. 2009-10-14 Nick Clifton <nickc@redhat.com>
  4849. * gcc/doc/extended.texi: Replace the dash character with @minus{}
  4850. in situations where it is being used as a minus symbol.
  4851. * gcc/doc/tm.texi: Likewise.
  4852. * gcc/doc/md.texi: Likewise.
  4853. 2009-10-14 Jakub Jelinek <jakub@redhat.com>
  4854. PR preprocessor/41543
  4855. * input.h (BUILTINS_LOCATION): Change to 1 from 2.
  4856. Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
  4857. * tree.c: Include intl.h.
  4858. (expand_location): Handle BUILTINS_LOCATION.
  4859. * Makefile.in (tree.o): Depend on intl.h.
  4860. PR debug/41695
  4861. * dwarf2out.c (dwarf2out_var_location): Always clear
  4862. last_postcall_label when changing last_label.
  4863. 2009-10-14 Pascal Obry <obry@adacore.com>
  4864. * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
  4865. (process_command): Handle -E as done with -c and -S. Do not add
  4866. the target executable suffix to the output file when -E is used.
  4867. (main): Adjust error message accordingly.
  4868. 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
  4869. PR debug/41343
  4870. PR debug/41447
  4871. PR debug/41264
  4872. PR debug/41338
  4873. * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
  4874. decl with rtl.
  4875. (tree_code_size): Likewise.
  4876. 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  4877. * builtins.c (fold_builtin_1): Support complex "arc" functions.
  4878. * real.h (HAVE_mpc_arc): Define.
  4879. 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
  4880. * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
  4881. (struct builtin_description): Add fndecl field.
  4882. (bdesc): Remove const qualifier. Update initializer.
  4883. (sh_media_init_builtins): Remove const qualifier for d. Record
  4884. the result of add_builtin_function to the fndecl field.
  4885. (sh_builtin_decl): New.
  4886. (sh_media_builtin_decl): New.
  4887. 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
  4888. PR target/38948
  4889. * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
  4890. requests between special registers.
  4891. 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
  4892. * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
  4893. 2009-10-13 Richard Henderson <rth@redhat.com>
  4894. PR tree-optimization/41377
  4895. * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
  4896. (cleanup_empty_eh_merge_phis): New change_region parameter;
  4897. pass it on to redirect_eh_edge_1. Update callers.
  4898. (cleanup_empty_eh_unsplit): Don't require an existing EH label
  4899. at the destination block.
  4900. 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
  4901. * passes.c (register_pass): Replaced gcc_unreachable by
  4902. fatal_error on failure. Mentions plugins in comments & messages.
  4903. 2009-10-13 Jakub Jelinek <jakub@redhat.com>
  4904. PR target/41693
  4905. * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
  4906. * sched-vis.c (print_value): Use it.
  4907. * cselib.c (cselib_hash_rtx): Likewise.
  4908. * print-rtl.c (print_rtx): Likewise.
  4909. * cfgexpand.c (expand_debug_rtx): Likewise.
  4910. * var-tracking.c (vt_expand_loc_callback): Likewise.
  4911. 2009-10-13 Richard Guenther <rguenther@suse.de>
  4912. PR lto/41565
  4913. * opts.c (handle_option): Split out code to handle setting
  4914. the options flag var ...
  4915. (set_option): ... here.
  4916. * opts.h (set_option): Declare.
  4917. * lto-opts.c (register_user_option_p): Include -fexceptions
  4918. and all position independent code variants.
  4919. (handle_common_option): Remove.
  4920. (lto_reissue_options): Use set_option.
  4921. 2009-10-13 Martin Jambor <mjambor@suse.cz>
  4922. PR tree-optimization/41661
  4923. * ipa-prop.c (compute_complex_pass_through): Allow only operations
  4924. that are tcc_comparisons or do not change the type in any
  4925. un-usleless way.
  4926. * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
  4927. folding tcc_comparison operations.
  4928. 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  4929. * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
  4930. properly.
  4931. 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
  4932. PR debug/41343
  4933. PR debug/41447
  4934. PR debug/41264
  4935. PR debug/41338
  4936. * tree.def (DEBUG_EXPR_DECL): New.
  4937. * rtl.def (DEBUG_EXPR): New.
  4938. * gengtype.c (adjust_field_rtx_def): Handle it.
  4939. * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
  4940. (insert_debug_temp_for_var_def): ... this. Drop support for
  4941. moving. Take iterator for def stmt; insert debug stmt before it.
  4942. Scan early for use count and kind in debug stmts.
  4943. (propagate_defs_into_debug_stmts): Rename to...
  4944. (insert_debug_temps_for_defs): ... this. Likewise.
  4945. * tree.h (DEBUG_TEMP_UID): New.
  4946. * tree.c (next_debug_decl_uid): New.
  4947. (make_node_stat): Count debug decls separately.
  4948. (copy_node_stat): Likewise.
  4949. * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
  4950. * var-tracking.c (dv_is_decl_p): Recognize it.
  4951. (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
  4952. (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
  4953. (vt_expand_loc_callback): Expand DEBUG_EXPRs.
  4954. (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
  4955. * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
  4956. (cselib_hash_rtx): Likewise.
  4957. (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
  4958. * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
  4959. debug bind stmts.
  4960. * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
  4961. (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
  4962. * rtl.c (copy_rtx): Likewise.
  4963. (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
  4964. * print-rtl.c (print_rtx): Likewise.
  4965. * sched-vis.c (print_value): Likewise.
  4966. (print_insn): Handle DEBUG_EXPR_DECL.
  4967. * tree-dump.c (dequeue_and_dump): Likewise.
  4968. * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
  4969. * gimple-iterator (gsi_replace): Check for same lhs.
  4970. (gsi_remove): Insert debug temps.
  4971. * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
  4972. (move_computations_stmt): Drop explicit propagation into debug stmts.
  4973. (rewrite_bittest): Likewise. Use gsi_remove for propagation.
  4974. * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
  4975. * tree-ssa-sink.c (statement_sink_location): Likewise.
  4976. * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
  4977. * tree-ssanames.c (release_ssa_name): Adjust for rename.
  4978. * tree-flow.h: Likewise.
  4979. * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
  4980. debug temps without values.
  4981. (eliminate_unnecessary_stmts): Don't discard just-inserted
  4982. debug stmts.
  4983. 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
  4984. PR target/26515
  4985. * config/cris/cris.md (andu): Check that operand 1 is one of the
  4986. general registers. Fix typo in head comment.
  4987. 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
  4988. * config/i386/i386.md (vswapmov): New.
  4989. * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
  4990. (ix86_function_ms_hook_prologue): New.
  4991. (ix86_expand_prologue): Handle ms_hook_prologue attribute.
  4992. * configure.ac: Test for swap suffix support in as.
  4993. * configure: Rebuild.
  4994. 2009-10-12 Jakub Jelinek <jakub@redhat.com>
  4995. PR target/41680
  4996. * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
  4997. paradoxical subregs to prevent partial register stalls if the inner
  4998. mode is integer mode.
  4999. 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
  5000. * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
  5001. 2009-10-12 Dodji Seketeli <dodji@redhat.com>
  5002. PR c++/41570
  5003. * gcc/dwarf2out.c (template_parameter_pack_die,
  5004. gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
  5005. 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
  5006. PR debug/41616
  5007. * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
  5008. on updates too.
  5009. (maybe_register_def): Likewise. Take stmt iterator.
  5010. (rewrite_update_stmt): Take stmt iterator and pass it on.
  5011. (rewrite_update_enter_block): Pass stmt iterator.
  5012. 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
  5013. * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
  5014. (spu_builtin_decl): New function.
  5015. 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
  5016. * config/i386/i386.md (SWIM): New mode iterator.
  5017. (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
  5018. using SWIM mode iterator.
  5019. (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
  5020. patterns using SWI48 mode iterator.
  5021. (*x86_mov<mode>cc_0_m1_se): Macroize insn from
  5022. *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
  5023. (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
  5024. (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
  5025. patterns using SWI248 mode iterator.
  5026. * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
  5027. gen_x86_movdicc_0_m1_rex64 for renamed function
  5028. 2009-10-11 Jose Ruiz <ruiz@adacore.com>
  5029. Eric Botcazou <ebotcazou@adacore.com>
  5030. PR target/33743
  5031. * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
  5032. * config/sparc/sol2-unwind.h: New file.
  5033. 2009-10-11 Olivier Hainque <hainque@adacore.com>
  5034. Eric Botcazou <ebotcazou@adacore.com>
  5035. PR target/33743
  5036. * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
  5037. * config/i386/sol2-unwind.h: New file.
  5038. 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
  5039. PR target/41665
  5040. * config/i386/i386.md (addsi_1_zext): Get the proper second
  5041. operand for lea.
  5042. 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
  5043. * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
  5044. all OLD_RTXes, not just REGs. Use copy_rtx to create the
  5045. replacement value.
  5046. 2009-10-11 Richard Guenther <rguenther@suse.de>
  5047. * gimple.c (iterative_hash_type_name): Do not handle special
  5048. anonymous names.
  5049. 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
  5050. * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
  5051. (*setcc_si_1_and): Ditto.
  5052. (*setcc_si_1_movzbl): Ditto.
  5053. (*setcc_<mode>_2): Ditto.
  5054. (*setcc_qi): Rename from *setcc_1.
  5055. (*setcc_qi_slp): Rename from *setcc_2.
  5056. (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
  5057. (*zero_extendqisi2_movzbw_and splitter): Ditto.
  5058. * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
  5059. "if" condition, there is already assert with reload_completed present.
  5060. 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
  5061. * plugin.c (try_init_one_plugin): Improve constness of variable err.
  5062. 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
  5063. * doc/install.texi (Final install): Refer to
  5064. http://gcc.gnu.org/bugs/ for bug reporting.
  5065. 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
  5066. * configure.ac: Add test for dci instruction.
  5067. * configure: Regenerate.
  5068. * config.in: Likewise.
  5069. * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
  5070. * doc/invoke.texi: Add cpu_type 476 and 476fp.
  5071. (-mmulhw): Add 476 to description.
  5072. (-mdlmzb): Likewise.
  5073. * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
  5074. * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
  5075. (processor_target_table): Add 476 and 476fp entries.
  5076. (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
  5077. (rs6000_issue_rate): Add CPU_PPC476.
  5078. * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
  5079. (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
  5080. (processor_type): Add PROCESSOR_PPC476.
  5081. (EXTRA_SPECS): Add asm_cpu_476 string.
  5082. * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
  5083. (define_attr "cpu"): Add ppc476.
  5084. Include 476.md.
  5085. Update comments for 476.
  5086. (isel_signed, isel_unsigned): Change to use "isel" type attribute.
  5087. * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
  5088. Update copyright year.
  5089. * config/rs6000/476.md: New file.
  5090. * config/rs6000/40x.md: Add description for "isel" attribute.
  5091. Update copyright year.
  5092. * config/rs6000/440.md: Likewise.
  5093. * config/rs6000/603.md: Likewise.
  5094. * config/rs6000/6xx.md: Likewise.
  5095. * config/rs6000/7450.md: Likewise.
  5096. * config/rs6000/7xx.md: Likewise.
  5097. * config/rs6000/8540.md: Likewise.
  5098. * config/rs6000/cell.md: Likewise.
  5099. * config/rs6000/e300c2c3.md: Likewise.
  5100. * config/rs6000/e500mc.md: Likewise.
  5101. * config/rs6000/mpc.md: Likewise.
  5102. * config/rs6000/power4.md: Likewise.
  5103. * config/rs6000/power5.md: Likewise.
  5104. * config/rs6000/power6.md: Likewise.
  5105. * config/rs6000/power7.md: Likewise.
  5106. * config/rs6000/rios1.md: Likewise.
  5107. * config/rs6000/rios2.md: Likewise.
  5108. * config/rs6000/rs64.md: Likewise.
  5109. 2009-10-10 Richard Guenther <rguenther@suse.de>
  5110. PR tree-optimization/41654
  5111. * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
  5112. a cond expr before calling gimple_cond_set_condition_from_tree.
  5113. (ifcombine_iforif): Likewise.
  5114. 2009-10-09 Ian Lance Taylor <iant@google.com>
  5115. * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
  5116. * configure: Rebuild.
  5117. 2009-10-09 Neil Vachharajani <nvachhar@google.com>
  5118. * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
  5119. deprecated.
  5120. 2009-10-09 Richard Guenther <rguenther@suse.de>
  5121. PR lto/41638
  5122. * target-def.h (TARGET_BUILTIN_DECL): Define.
  5123. (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
  5124. * target.h (struct gcc_target): Add builtin_decl target hook.
  5125. * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
  5126. * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
  5127. target builtins.
  5128. * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
  5129. not gcc_unreachable.
  5130. (lto_output_builtin_tree): Sorry if the target does not support
  5131. streaming target builtins.
  5132. * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
  5133. (rs6000_builtin_decl): New function.
  5134. * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
  5135. (ix86_builtin_decl): New function.
  5136. 2009-10-09 Jakub Jelinek <jakub@redhat.com>
  5137. PR preprocessor/41445
  5138. * c-ppoutput.c (do_line_change): New function.
  5139. (cb_line_change): Use it.
  5140. (scan_translation_unit): Call do_line_change if
  5141. avoid_paste or PREV_WHITE and token location is on a different line
  5142. than print.src_line.
  5143. PR debug/40521
  5144. * dwarf2out.c (dwarf2out_init): Test whether
  5145. HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
  5146. it is defined.
  5147. PR rtl-optimization/41646
  5148. * calls.c (expand_call): For BLKmode types returned in registers
  5149. avoid likely spilled hard regs in copy_blkmode_from_reg generated
  5150. insns.
  5151. 2009-10-09 Richard Guenther <rguenther@suse.de>
  5152. PR tree-optimization/41634
  5153. * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
  5154. we remove the correct elements.
  5155. (optimize_stmt): Make sure to update stmt operands before
  5156. optimizing redundancies.
  5157. 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  5158. * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
  5159. 2009-10-09 Richard Guenther <rguenther@suse.de>
  5160. PR driver/41637
  5161. * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
  5162. globals.
  5163. (lto_wrapper_exit): New function.
  5164. (fatal): Use it.
  5165. (fatal_perror): Likewise.
  5166. (fork_execute): Use global args_name, do not free it.
  5167. (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
  5168. * lto-streamer.h: Remove duplicate prototypes.
  5169. 2009-10-09 Richard Guenther <rguenther@suse.de>
  5170. * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
  5171. before calling stmt_can_throw_external.
  5172. 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
  5173. PR tree-optimization/40071
  5174. * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
  5175. pointer if the original data reference doesn't conflict with the
  5176. created vector data reference. Fix long line.
  5177. 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
  5178. * config/i386/i386.md (any_div): New code iterator.
  5179. (u): Handle div and udiv.
  5180. (sgnprefix): Ditto.
  5181. (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
  5182. code iterator.
  5183. (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
  5184. lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
  5185. (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
  5186. lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
  5187. 2009-10-08 Joseph Myers <joseph@codesourcery.com>
  5188. * gcc.c (main): Remove trailing "." from diagnostics.
  5189. 2009-10-08 Cary Coutant <ccoutant@google.com>
  5190. Add support for debugging with ICF (Identical Code Folding).
  5191. * calls.c (debug.h): New #include.
  5192. (emit_call_1): Call virtual_call_token debug hook.
  5193. * common.opt (-fenable-icf-debug): New option.
  5194. * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
  5195. locations in the source).
  5196. (poc_label_num): New variable.
  5197. (dcall_entry, vcall_entry): New typedefs.
  5198. (dcall_table, vcall_table): New variables.
  5199. (struct vcall_insn): New type.
  5200. (vcall_insn_table): New variable.
  5201. (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
  5202. (size_of_dcall_table): New function.
  5203. (output_dcall_table): New function.
  5204. (size_of_vcall_table): New function.
  5205. (output_vcall_table): New function.
  5206. (dwarf2out_direct_call): New function.
  5207. (vcall_insn_table_hash): New function.
  5208. (vcall_insn_table_eq): New function.
  5209. (dwarf2out_virtual_call_token): New function.
  5210. (dwarf2out_virtual_call): New function.
  5211. (dwarf2out_init): Allocate new tables and sections.
  5212. (prune_unused_types): Mark DIEs referenced from direct call table.
  5213. (dwarf2out_finish): Output direct and virtual call tables.
  5214. * final.c (final_scan_insn): Call direct_call and virtual_call
  5215. debug hooks.
  5216. * debug.h (struct gcc_debug_hooks): Add direct_call,
  5217. virtual_call_token, virtual_call hooks.
  5218. (debug_nothing_uid): New function.
  5219. * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
  5220. (debug_nothing_uid): New function.
  5221. * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
  5222. (xcoff_debug_hooks): Likewise.
  5223. * sdbout.c (sdb_debug_hooks): Likewise.
  5224. * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
  5225. * doc/invoke.texi (-fenable-icf-debug): New option.
  5226. 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
  5227. PR debug/41353
  5228. * regmove.c (regmove_backward_pass): Replace src with dst in the
  5229. debug insn, and check for dst before rather than after.
  5230. 2009-10-08 Janis Johnson <janis187@us.ibm.com>
  5231. * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
  5232. (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
  5233. 2009-10-08 Jan Hubicka <jh@suse.cz>
  5234. PR middle-end/41626
  5235. * cgraphbuild.c (record_reference): When parameter DATA is NULL,
  5236. do not mark cgraph nodes as needed.
  5237. (record_references_in_initializer): Add new only_vars parameter.
  5238. * cgraph.h (record_references_in_initializer): New parameter.
  5239. * varasm.c (assemble_variable): Update call.
  5240. * varpool.c (varpool_analyze_pending_decls): Always look for
  5241. referenced vars.
  5242. 2009-10-08 Anatoly Sokolov <aesok@post.ru>
  5243. * config/avr/avr.c (last_insn_address) Remove variable.
  5244. (expand_prologue): Don't initialise last_insn_address variable.
  5245. (final_prescan_insn): Don't output insn size.
  5246. * config/avr/avr.opt (msize): Remove switch.
  5247. * doc/invoke.texi (AVR Options): Remove documentation of -msize
  5248. switch.
  5249. 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
  5250. * combine.c (label_tick_ebb_start): Fix comment.
  5251. (combine_instructions): Set label_tick and label_tick_ebb_start before
  5252. calling setup_incoming_promotions. Start them from 1. Increment
  5253. label_tick instead of deriving it from the BB index. Rather than
  5254. comparing ticks use the block from the previous iteration to decide
  5255. whether to start a new EBB. Remove empty lines before function.
  5256. 2009-10-08 Michael Matz <matz@suse.de>
  5257. PR middle-end/41573
  5258. * builtins.c (fold_builtin_isascii): Use fold_build2.
  5259. (fold_builtin_isdigit): Ditto.
  5260. * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
  5261. * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
  5262. remove_useless_stmts_cond, remove_useless_stmts_tf,
  5263. remove_useless_stmts_tc, remove_useless_stmts_bind,
  5264. remove_useless_stmts_goto, remove_useless_stmts_label,
  5265. remove_useless_stmts_1, remove_useless_stmts,
  5266. pass_remove_useless_stmts): Remove.
  5267. * tree-pass.h (pass_remove_useless_stmts): Don't declare.
  5268. * passes.c (init_optimization_passes): Don't add
  5269. pass_remove_useless_stmts.
  5270. * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
  5271. * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
  5272. static constants.
  5273. * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
  5274. for static constants.
  5275. * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
  5276. * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
  5277. 2009-10-08 Richard Guenther <rguenther@suse.de>
  5278. * gimple.c (free_gimple_type_tables): New function.
  5279. * gimple.h (free_gimple_type_tables): Declare.
  5280. 2009-10-07 Mark Heffernan <meheff@google.com>
  5281. * ipa-prop.c (ipa_print_node_params) Only print
  5282. names of named arguments.
  5283. 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
  5284. * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
  5285. being statically linked.
  5286. 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  5287. * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
  5288. 2009-10-08 Jan Hubicka <jh@suse.cz>
  5289. PR bootstrap/41620
  5290. * ipa.c (cgraph_externally_visible_p,
  5291. function_and_variable_visibility,
  5292. whole_program_function_and_variable_visibility): Skip non-finalized
  5293. nodes.
  5294. 2009-10-08 Nick Clifton <nickc@redhat.com>
  5295. * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
  5296. CONST_DOUBLEs.
  5297. 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
  5298. PR bootstrap/37739
  5299. * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
  5300. 2009-10-07 Joseph Myers <joseph@codesourcery.com>
  5301. PR c/41182
  5302. * c-common.c (c_fully_fold_internal): Strip nops from the result
  5303. of recursive calls to c_fully_fold_internal.
  5304. (c_wrap_maybe_const): New.
  5305. (c_save_expr): Use c_wrap_maybe_const.
  5306. * c-common.h (c_wrap_maybe_const): Declare.
  5307. * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
  5308. build_binary_op): Use c_wrap_maybe_const.
  5309. 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  5310. * real.c: Fix comment to reflect actual exponent size.
  5311. 2009-10-08 Ben Elliston <bje@au.ibm.com>
  5312. * config/rs6000/a2.md: Add FSF comment header.
  5313. 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
  5314. * config/i386/i386.md (any_extend): New code iterator.
  5315. (u, s): New code attributes.
  5316. (sgnprefix): Ditto.
  5317. (DWIH): Rewrite as code iterator for SI and DI modes.
  5318. (DWI): Rewrite as mode attribute.
  5319. (dwi): New mode attribute.
  5320. (di): Depend on SI mode and DI mode.
  5321. (doubleint_general_operand): Remove mode attribute.
  5322. (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
  5323. DWIH mode iterator.
  5324. (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
  5325. (*sub<mode>3_doubleword): Ditto.
  5326. (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
  5327. using SWIM248 mode iterator.
  5328. (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
  5329. using SWI48 mode iterator.
  5330. (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
  5331. patterns using DWIH mode iterator and any_extend code iterator.
  5332. (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
  5333. using any_extend code iterator.
  5334. (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
  5335. patterns using DWIH mode iterator and any_extend code iterator.
  5336. (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
  5337. using any_extend code iterator.
  5338. (<s>mul<mode>3_highpart): Macroize expander from
  5339. {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
  5340. and any_extend code iterator.
  5341. (*<s>muldi3_highpart_1): Macroize insn from
  5342. *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
  5343. (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
  5344. patterns using any_extend code iterator.
  5345. (*<s>mulsi3_highpart_zext): Macroize insn from
  5346. *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
  5347. 2009-10-07 Jakub Jelinek <jakub@redhat.com>
  5348. * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
  5349. DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
  5350. refering to a DIE with DW_AT_const_value.
  5351. 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
  5352. PR middle-end/22072
  5353. * ira-lives.c (check_and_make_def_conflict): Process all operands.
  5354. 2009-10-06 Jan Hubicka <jh@suse.cz>
  5355. * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
  5356. correctly.
  5357. 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
  5358. * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
  5359. *lea_2_rex64): Move before *add<mode>_1 pattern.
  5360. 2009-10-07 Jan Hubicka <jh@suse.cz>
  5361. * collect2.c (main): Add -fno-whole-program.
  5362. * gcc.c (set_collect_gcc_options): Do not remove whole program here.
  5363. 2009-10-07 Jan Hubicka <jh@suse.cz>
  5364. * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
  5365. has no address taken.
  5366. * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
  5367. never needed.
  5368. (cgraph_clone_node): Clear externally_visible flag for clones.
  5369. * cgraph.h (cgraph_only_called_directly_p,
  5370. cgraph_can_remove_if_no_direct_calls_p): New predicates.
  5371. * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
  5372. * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
  5373. (ipcp_initialize_node_lattices, ipcp_estimate_growth,
  5374. ipcp_insert_stage): Likwise.
  5375. * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
  5376. externally_visible flag.
  5377. (verify_cgraph_node): Verify that inline clones look right.
  5378. (process_function_and_variable_attributes): Do not set
  5379. externally_visible flags.
  5380. (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
  5381. been already run.
  5382. * lto-cgraph.c (lto_output_node): Assert that inline clones are not
  5383. boundaries.
  5384. * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
  5385. clear externally_visible when turning into inline clones
  5386. (cgraph_mark_inline_edge): Use new predicates.
  5387. (cgraph_estimate_growth): Likewise.
  5388. (cgraph_decide_inlining): Likewise.
  5389. * ipa.c (cgraph_postorder): Likewise.
  5390. (cgraph_remove_unreachable_nodes): Likewise; sanity check
  5391. that inline clones are not needed.
  5392. (cgraph_externally_visible_p): New predicate.
  5393. (function_and_variable_visibility): Add whole_program parameter;
  5394. always set externally_visible flag; handle COMDAT function
  5395. privatization.
  5396. (local_function_and_variable_visibility): New function.
  5397. (gate_whole_program_function_and_variable_visibility): New function.
  5398. (whole_program_function_and_variable_visibility): New function.
  5399. (pass_ipa_whole_program_visibility): New function.
  5400. * passes.c (init_optimization_passes): Add whole program visibility
  5401. pass.
  5402. (do_per_function_toporder, function_called_by_processed_nodes_p): Do
  5403. not care about needed/reachable flags.
  5404. * varpool.c: Include flags.h
  5405. (decide_is_variable_needed): When doing LTO assume whole-program mode.
  5406. (varpool_finalize_decl): When we are in LTO read-back, all variables
  5407. are analyzed.
  5408. (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
  5409. 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  5410. * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
  5411. add MASK_HARD_DFP.
  5412. 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  5413. * config.gcc: Don't include the makefile fragments intended for
  5414. libgcc.
  5415. * config/s390/fixdfdi.h: File removed.
  5416. * config/s390/libgcc-glibc.ver: File removed.
  5417. * config/s390/s390.h: Remove the fixdfdi.h hack.
  5418. * config/s390/t-crtstuff: File moved to libgcc dir.
  5419. * config/s390/t-linux: Likewise.
  5420. * config/s390/t-tpf: libgcc specific parts removed.
  5421. * config/s390/t-linux64: Likewise.
  5422. 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
  5423. * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
  5424. (lto-compress.o): Likewise.
  5425. 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
  5426. PR target/41512
  5427. * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
  5428. dllexport to class members here.
  5429. (i386_pe_determine_dllimport_p): Only check static class data for
  5430. definition.
  5431. (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
  5432. * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
  5433. functions for vague linkage.
  5434. (i386_pe_type_dllexport_p): Fix formatting.
  5435. (maybe_add_dllexport) New function.
  5436. (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
  5437. to class members.
  5438. 2009-10-07 Ben Elliston <bje@au.ibm.com>
  5439. * config/rs6000/a2.md: Remove duplicated lines.
  5440. 2009-10-07 Ben Elliston <bje@au.ibm.com>
  5441. * config.gcc (powerpc*-*-*): Handle a2.
  5442. * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
  5443. * config/rs6000/a2.md: New file.
  5444. * config/rs6000/rs6000.opt (mno-update): New.
  5445. (mupdate): Return to using a mask, not a var.
  5446. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
  5447. (enum processor_type): Add PROCESSOR_PPCA2.
  5448. * config/rs6000/rs6000.c (ppca2_cost): New costs.
  5449. (rs6000_override_options): Add "a2" to processor_target_table.
  5450. Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
  5451. * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
  5452. 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
  5453. * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
  5454. Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
  5455. reference to nonexistent gen_truncxfxf2 function.
  5456. 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
  5457. * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
  5458. (DWIH, g, di, doubleint_general_operand): New mode attributes.
  5459. (general_operand): Handle TI mode.
  5460. (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
  5461. using SDWIM mode iterator.
  5462. (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
  5463. pattern from *add{di,ti}3_1 patterns and corresponding splitters
  5464. using DWI mode iterator.
  5465. (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
  5466. patterns using SWI mode iterator.
  5467. (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
  5468. using SWI48 mode iterator.
  5469. (*add<mode>_1): Ditto from add{si,di}_1 patterns.
  5470. (*add<mode>_2): Ditto from add{si,di}_2 patterns.
  5471. (*add<mode>_3): Ditto from add{si,di}_3 patterns.
  5472. (*add<mode>_5): Ditto from add{si,di}_5 patterns.
  5473. (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
  5474. using SDWIM mode iterator.
  5475. (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
  5476. pattern from *sub{di,ti}3_1 patterns and corresponding splitters
  5477. using DWI mode iterator.
  5478. (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
  5479. patterns using SWI mode iterator.
  5480. (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
  5481. (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
  5482. (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
  5483. (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
  5484. patterns using plusminus code iterator.
  5485. (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
  5486. sub<mode>3 patterns using plusminus code iterator.
  5487. * config/i386/i386.c (override_options): Update the call to
  5488. gen_subdi_carry_rex64 for renamed function.
  5489. (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
  5490. and gen_adddi3_carry_rex64 for renamed functions. Use indirect
  5491. calls to instruction expanders.
  5492. 2009-10-06 Martin Jambor <mjambor@suse.cz>
  5493. PR bootstrap/41395
  5494. * opts.c (decode_options): Run IPA-SRA at -O2.
  5495. 2009-10-06 Richard Guenther <rguenther@suse.de>
  5496. * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
  5497. 2009-10-06 Tobias Burnus <burnus@net-b.de>
  5498. PR lto/41591
  5499. * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
  5500. -flto and -fwhole-program flags can be combined.
  5501. 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
  5502. PR driver/41217
  5503. * gcc.c (process_command): Check that -o argument was specified.
  5504. 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
  5505. * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
  5506. 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  5507. * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
  5508. * doc/invoke.texi (Warning Options): Annotate allowed languages
  5509. for -Wunsuffixed-float-constants.
  5510. 2009-10-05 Jakub Jelinek <jakub@redhat.com>
  5511. * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
  5512. DW_TAG_{const,volatile}_type if its DW_AT_type already has the
  5513. same name and isn't the main variant.
  5514. PR debug/41558
  5515. * dwarf2out.c (loc_by_reference): Removed.
  5516. (dw_loc_list_1): New function.
  5517. (dw_loc_list): Remove toplev argument, add want_address argument.
  5518. Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
  5519. (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
  5520. want_address == 2 to dw_loc_list. For successful dw_loc_list
  5521. set have_address to 1 only if want_address is not 0.
  5522. 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
  5523. * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
  5524. * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
  5525. a code block followed by two pointers.
  5526. (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
  5527. * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
  5528. (MIPS_MOVE): Likewise.
  5529. (MIPS_LUI): Likewise.
  5530. (MIPS_JR): Likewise.
  5531. (MIPS_BAL): Likewise.
  5532. (MIPS_NOP): Likewise.
  5533. (mips_asm_trampoline_template): Delete.
  5534. (mips_trampoline_code_size): New function.
  5535. (mips_trampoline_init): Add shorter sequences for all cases
  5536. except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
  5537. Calculate the opcodes directly, rather than copying from a template.
  5538. Only flush the code part of the trampoline.
  5539. (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
  5540. 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
  5541. * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
  5542. GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
  5543. (INCOMING_RETURN_ADDR_RTX): Likewise.
  5544. (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
  5545. with AT_REGNUM.
  5546. * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
  5547. with RETURN_ADDR_REGNUM.
  5548. (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
  5549. * config/mips/mips.c (mips16_build_call_stub): Replace
  5550. GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
  5551. with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
  5552. (mips_print_operand_punctuation): Likewise.
  5553. (mips_frame_set): Likewise.
  5554. (mips16e_output_save_restore): Likewise.
  5555. (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
  5556. (mips_save_reg_p): Likewise.
  5557. (mips_return_addr): Likewise.
  5558. (mips_set_return_address): Likewise.
  5559. (mips_direct_save_slot_move_p): Likewise.
  5560. (mips_output_function_prologue): Likewise.
  5561. (mips_restore_reg): Likewise.
  5562. (mips_expand_epilogue): Likewise.
  5563. (mips_epilogue_uses): Likewise.
  5564. * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
  5565. (*mov<mode>_ra): Use it instead of a hard-coded 31.
  5566. (clear_hazard_<mode>): Likewise.
  5567. (call_internal): Likewise.
  5568. (call_internal_direct): Likewise.
  5569. (call_direct_split): Likewise.
  5570. (call_value_internal): Likewise.
  5571. (call_value_split): Likewise.
  5572. (call_value_internal_direct): Likewise.
  5573. (call_value_direct_split): Likewise.
  5574. (call_value_multiple_internal): Likewise.
  5575. (call_value_multiple_split): Likewise.
  5576. 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
  5577. Jakub Jelinek <jakub@redhat.com>
  5578. PR rtl-optimization/41511
  5579. * combine.c (record_value_for_reg): Pass explicit values as argument
  5580. to get_last_value_validate.
  5581. (get_last_value_validate): Document INSN parameter.
  5582. For non-readonly MEMs, assume they might have been modified if INSN
  5583. was in another basic block.
  5584. (get_last_value): Minor reformatting.
  5585. 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
  5586. PR tree-opt/40992
  5587. * final.c (asm_str_count): Split out from asm_insn_count.
  5588. * rtl.h (asm_str_count): New prototype.
  5589. * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
  5590. asm_str_count.
  5591. 2009-10-05 Sriraman Tallam <tmsriram@google.com>
  5592. * doc/plugins.texi: Change plugin_pass to register_pass_info.
  5593. 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
  5594. Rafael Espindola <espindola@google.com>
  5595. * gengtype.c (write_types): Moved call to write_func_for_structure
  5596. into seperate loops.
  5597. 2009-10-05 Richard Guenther <rguenther@suse.de>
  5598. PR lto/41281
  5599. * lto-cgraph.c (output_cgraph): Output toplevel asms.
  5600. (input_cgraph_1): Input toplevel asms.
  5601. 2009-10-05 Richard Guenther <rguenther@suse.de>
  5602. PR lto/40902
  5603. * lto-symtab.c (lto_compatible_attributes_p): Remove.
  5604. (external_aggregate_decl_p): Likewise.
  5605. (lto_symtab_compatible): Re-structure. Remove dead code.
  5606. For variables ignore toplevel qualifiers when comparing types.
  5607. Issue warnings, not errors for mismatched user-alignment.
  5608. 2009-10-05 Richard Guenther <rguenther@suse.de>
  5609. PR lto/41552
  5610. PR lto/41487
  5611. * lto-symtab.c (struct lto_symtab_base_def): Remove.
  5612. (struct lto_symtab_identifier_def): Likewise.
  5613. (struct lto_symtab_decl_def): Likewise.
  5614. (struct lto_symtab_entry_def): New.
  5615. (lto_symtab_identifier_t): Rename to ...
  5616. (lto_symtab_entry_t): ... this.
  5617. (lto_symtab_decls): Remove.
  5618. (lto_symtab_base_hash): Rename to ...
  5619. (lto_symtab_entry_hash): ... this.
  5620. (lto_symtab_base_eq): Rename to ...
  5621. (lto_symtab_entry_eq): ... this.
  5622. (lto_symtab_base_marked_p): Rename to ...
  5623. (lto_symtab_entry_marked_p): ... this.
  5624. (lto_symtab_identifier_marked_p): Remove.
  5625. (lto_symtab_decl_marked_p): Likewise.
  5626. (lto_symtab_maybe_init_hash_tables): Rename to ...
  5627. (lto_symtab_maybe_init_hash_table): ... this.
  5628. (lto_symtab_set_resolution_and_file_data): Remove.
  5629. (lto_symtab_register_decl): New function.
  5630. (lto_symtab_get_identifier): Remove.
  5631. (lto_symtab_get): New function.
  5632. (lto_symtab_get_resolution): Adjust.
  5633. (lto_symtab_get_identifier_decl): Remove.
  5634. (lto_symtab_set_identifier_decl): Likewise.
  5635. (lto_symtab_merge_decl): Rename to ...
  5636. (lto_symtab_merge): ... this. Rewrite.
  5637. (lto_symtab_merge_var): Remove.
  5638. (lto_symtab_merge_fn): Likewise.
  5639. (lto_symtab_prevailing_decl): Adjust.
  5640. (lto_cgraph_replace_node): New function.
  5641. (lto_symtab_merge_decls_2): Likewise.
  5642. (lto_symtab_merge_decls_1): Likewise.
  5643. (lto_symtab_fixup_var_decls): Likewise.
  5644. (lto_symtab_resolve_symbols): Likewise.
  5645. (lto_symtab_merge_decls): Likewise.
  5646. (lto_symtab_prevailing_decl): Adjust.
  5647. (lto_symtab_get_symtab_def): Remove.
  5648. (lto_symtab_get_file_data): Likewise.
  5649. (lto_symtab_clear_resolution): Adjust.
  5650. (lto_symtab_clear_resolution): Likewise.
  5651. * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
  5652. (input_cgraph_1): Likewise.
  5653. * lto-streamer-in.c (get_resolution): Do not provide fake
  5654. symbol resolutions here.
  5655. (deferred_global_decls): Remove.
  5656. (lto_register_deferred_decls_in_symtab): Likewise.
  5657. (lto_register_var_decl_in_symtab): Change signature, register
  5658. variable via lto_symtab_register_decl.
  5659. (lto_register_function_decl_in_symtab): Likewise.
  5660. (lto_read_tree): Adjust.
  5661. * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
  5662. (lto_symtab_merge_var): Likewise.
  5663. (lto_symtab_merge_fn): Likewise.
  5664. (lto_symtab_register_decl): Declare.
  5665. (lto_symtab_merge_decls): Likewise.
  5666. 2009-10-05 Richard Guenther <rguenther@suse.de>
  5667. PR tree-optimization/23821
  5668. * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
  5669. * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
  5670. simple IV increments.
  5671. 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  5672. * config/arm/arm.c (arm_override_options): Really initialize
  5673. flag_dwarf2_cfi_asm to 0.
  5674. 2009-10-05 Doug Kwan <dougkwan@google.com>
  5675. PR rtl-optimization/41574
  5676. * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
  5677. floating point and we are not doing unsafe math optimizations.
  5678. 2009-10-03 Simon Baldwin <simonb@google.com>
  5679. Cary Coutant <ccoutant@google.com>
  5680. Rafael Espindola <espindola@google.com>
  5681. Richard Guenther <rguenther@suse.de>
  5682. Jan Hubicka <jh@suse.cz>
  5683. Doug Kwan <dougkwan@google.com>
  5684. H.J. Lu <hongjiu.lu@intel.com>
  5685. Bill Maddox <maddox@google.com>
  5686. Ryan Mansfield <rmansfield@qnx.com>
  5687. Diego Novillo <dnovillo@google.com>
  5688. Ollie Wild <aaw@google.com>
  5689. Kenneth Zadeck <zadeck@naturalbridge.com>
  5690. * lto-cgraph.c: New file.
  5691. * lto-compress.c: New file.
  5692. * lto-compress.h: New file.
  5693. * lto-opts.c: New file.
  5694. * lto-section-in.c: New file.
  5695. * lto-section-out.c: New file.
  5696. * lto-streamer-in.c: New file.
  5697. * lto-streamer-out.c: New file.
  5698. * lto-streamer.c: New file.
  5699. * lto-streamer.h: New file.
  5700. * lto-symtab.c: New file.
  5701. * lto-wpa-fixup.c: New file.
  5702. * lto-wrapper.c: New file.
  5703. 2009-10-03 Simon Baldwin <baldwin@google.com>
  5704. Ben Elliston <bje@au.ibm.com>
  5705. Rafael Espindola <espindola@google.com>
  5706. Nathan Froyd <froydnj@codesourcery.com>
  5707. Jan Hubicka <jh@suse.cz>
  5708. Doug Kwan <dougkwan@google.com>
  5709. Diego Novillo <dnovillo@google.com>
  5710. Kenneth Zadeck <zadeck@naturalbridge.com>
  5711. * Makefile.in (enable_lto): New.
  5712. (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
  5713. (LINKER_PLUGIN_API_H): Define.
  5714. (LTO_SYMTAB_H): Define.
  5715. (LTO_STREAMER_H): Define.
  5716. (TREE_VECTORIZER_H): Define.
  5717. (INCLUDES): Add LIBELFINC.
  5718. (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
  5719. lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
  5720. lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
  5721. (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
  5722. (native): Add lto-wrapper$(exeext)
  5723. (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
  5724. lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
  5725. lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
  5726. (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
  5727. (varasm.o): Add dependency on tree-iterator.h.
  5728. (cgraph.o): Add dependency on cif-code.def.
  5729. (ipa-reference.o): Add dependency on LTO_STREAMER_H.
  5730. (ipa-pure-const.o): Likewise.
  5731. (GTFILES): Add lto-symtab.c.
  5732. (install-lto-wrapper): New.
  5733. * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
  5734. and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
  5735. * config.in: Regenerate.
  5736. 2009-10-03 Rafael Espindola <espindola@google.com>
  5737. Diego Novillo <dnovillo@google.com>
  5738. * cgraphunit.c (ipa_passes): Prevent lto1 from calling
  5739. ipa_write_summaries.
  5740. Call execute_ipa_summary_passes for all_regular_ipa_passes and
  5741. all_lto_gen_passes.
  5742. (cgraph_optimize): Make extern.
  5743. 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
  5744. Kenneth Zadeck <zadeck@naturalbridge.com>
  5745. * toplev.c (in_lto_p): Declare.
  5746. * collect2.c (scan_prog_file): Read all the output when reading
  5747. information for LTO.
  5748. (enum lto_mode_d): Declare.
  5749. 2009-10-03 Richard Guenther <rguenther@suse.de>
  5750. Diego Novillo <dnovillo@google.com>
  5751. * gimple.c: Include target.h and alias.h.
  5752. (gimple_types): Declare.
  5753. (type_hash_cache): Declare.
  5754. (gimple_alloc_stat): Make extern.
  5755. (gimple_build_eh_must_not_throw): Call
  5756. gimple_eh_must_not_throw_set_fndecl.
  5757. (struct type_pair_d): Declare.
  5758. (type_pair_t): Declare.
  5759. (type_pair_hash): New.
  5760. (type_pair_eq): New.
  5761. (lookup_type_pair): New.
  5762. (gimple_force_type_merge): New.
  5763. (compare_type_names_p): New.
  5764. (compare_field_offset): New.
  5765. (gimple_types_compatible_p): New.
  5766. (struct sccs): Declare.
  5767. (next_dfs_num): Declare.
  5768. (iterative_hash_gimple_type): New.
  5769. (visit): New.
  5770. (iterative_hash_type_name): New.
  5771. (iterative_hash_gimple_type): New.
  5772. (gimple_type_hash): New.
  5773. (gimple_type_eq): New.
  5774. (gimple_register_type): New.
  5775. (print_gimple_types_stats): New.
  5776. (gimple_signed_or_unsigned_type): New.
  5777. (gimple_unsigned_type): New.
  5778. (gimple_signed_type): New.
  5779. (gimple_get_alias_set): New.
  5780. (gimple_decl_printable_name): Do not use DMGL_TYPES.
  5781. * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
  5782. (gimple_force_type_merge): Declare.
  5783. (gimple_types_compatible_p): Declare.
  5784. (gimple_register_type): Declare.
  5785. (print_gimple_types_stats): Declare.
  5786. (gimple_unsigned_type): Declare.
  5787. (gimple_signed_type): Declare.
  5788. (gimple_get_alias_set): Declare.
  5789. (gimple_eh_must_not_throw_set_fndecl): New.
  5790. 2009-10-03 Jan Hubicka <jh@suse.cz>
  5791. Kenneth Zadeck <zadeck@naturalbridge.com>
  5792. * ipa-pure-const.c: Include lto-streamer.h.
  5793. (register_hooks): Factor out of ...
  5794. (generate_summary): ... here.
  5795. (pure_const_write_summary): New.
  5796. (pure_const_read_summary): New.
  5797. (pass_ipa_pure_const): Add pure_const_write_summary and
  5798. pure_const_read_summary.
  5799. * ipa-reference.c: Include lto-streamer.h.
  5800. (add_new_function): New.
  5801. (remove_node_data): New.
  5802. (duplicate_node_data): New.
  5803. (ipa_init): Guard against multiple calls.
  5804. Move hook setup from analyze_function.
  5805. (write_node_summary_p): New.
  5806. (ipa_reference_write_summary): New.
  5807. (ipa_reference_read_summary): New.
  5808. (pass_ipa_reference): Add ipa_reference_write_summary and
  5809. ipa_reference_read_summary.
  5810. * cgraph.h (cgraph_local_info): Add field lto_file_data.
  5811. (struct cgraph_edge): Add fields lto_stmt_uid and
  5812. call_stmt_cannot_inline_p.
  5813. (cgraph_optimize): Declare.
  5814. (cgraph_decide_is_function_needed): Declare.
  5815. (reset_inline_failed): Declare.
  5816. (enum LTO_cgraph_tags): Declare.
  5817. (LTO_cgraph_tag_names): Declare.
  5818. (LCC_NOT_FOUND): Define.
  5819. 2009-10-03 Doug Kwan <dougkwan@google.com>
  5820. Rafael Espindola <espindola@google.com>
  5821. Jan Hubicka <jh@suse.cz>
  5822. Diego Novillo <dnovillo@google.com>
  5823. Kenneth Zadeck <zadeck@naturalbridge.com>
  5824. * passes.c (all_regular_ipa_passes): New.
  5825. (all_ipa_passes): Rename to all_small_ipa_passes.
  5826. (init_optimization_passes): Init all_regular_ipa_passes.
  5827. * tree-pass.h (all_regular_ipa_passes): New.
  5828. (all_ipa_passes): Rename to all_small_ipa_passes.
  5829. * passes.c (all_lto_gen_passes): New.
  5830. (init_optimization_passes): Initialize all_lto_gen_passes.
  5831. (execute_ipa_summary_passes): Make non-static.
  5832. (ipa_write_summaries_1): New.
  5833. (ipa_write_summaries_2): New.
  5834. (ipa_write_summaries): New.
  5835. (ipa_write_summaries_of_cgraph_node_set): New.
  5836. (ipa_read_summaries_1): New.
  5837. (ipa_read_summaries): New.
  5838. (execute_ipa_pass_list): Call cgraph_process_new_functions.
  5839. (execute_regular_ipa_pass_list): Remove.
  5840. (init_optimization_passes): Schedule
  5841. pass_rebuild_cgraph_edges and pass_early_inline outside
  5842. of pass_all_early_optimizations. Document reason.
  5843. (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
  5844. pass_ipa_lto_finish_out): New pass.
  5845. (pass_ipa_summary_passes): Start and stop timers if the pass has them.
  5846. (execute_all_ipa_transforms): New.
  5847. (execute_one_pass): Don't call execute_one_ipa_transform_pass.
  5848. (dump_properties, debug_properties): New.
  5849. * tree-optimize.c (gate_all_early_local_passes): Return
  5850. false if we are in lto1.
  5851. (tree_rest_of_compilation): Call execute_all_ipa_transforms.
  5852. * tree-pass.h (execute_all_ipa_transforms): Declare.
  5853. (pass_ipa_function_and_variable_visibility): Declare.
  5854. (pass_ipa_early_inline): Declare.
  5855. (pass_ipa_lto_gimple_out): Declare.
  5856. (pass_ipa_lto_wpa_fixup): Declare.
  5857. (pass_ipa_lto_finish_out): Declare.
  5858. (all_small_ipa_passes, all_regular_ipa_passes,
  5859. all_lto_gen_passes): Declare.
  5860. (execute_ipa_summary_passes): Declare.
  5861. (execute_all_ipa_transforms): Declare.
  5862. (ipa_write_summaries): Declare
  5863. (ipa_write_summaries_of_cgraph_node_set): Declare.
  5864. (ipa_read_summaries): Declare.
  5865. 2009-10-03 Doug Kwan <dougkwan@google.com>
  5866. Ollie Wild <aaw@google.com>
  5867. * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
  5868. * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
  5869. (lto_mode): New variable.
  5870. (maybe_run_lto_and_relink): Handle the -fwpa option.
  5871. (main): Handle the -fwpa option.
  5872. (maybe_unlink_list): New function.
  5873. * gcc.c (link_lto_options): Replace -flto with -fwpa.
  5874. * common.opt (flto): New flag.
  5875. * toplev.c (flag_generate_lto): Declare.
  5876. 2009-10-03 Simon Baldwin <simonb@google.com>
  5877. * common.opt (flto-compression-level): New flag.
  5878. * opts.c: Include lto-opts.h.
  5879. (handle_option): Call lto_register_user_option for each
  5880. valid option handled.
  5881. (decode_options): Clear registered options before the options
  5882. handling loop.
  5883. 2009-10-03 Cary Coutant <ccoutant@google.com>
  5884. * collect2.c (is_elf): New function.
  5885. (scan_prog_file): Require LTO object to be in ELF format.
  5886. 2009-10-03 Rafael Espindola <espindola@google.com>
  5887. * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
  5888. libgcc to the linker.
  5889. * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
  5890. * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
  5891. (collect_execute): Add flags argument. Pass flags to pex_run. Update
  5892. all callers.
  5893. * collect2.h (collect_execute): Add flags argument.
  5894. * tlink.c (tlink_execute): Update call to collect_execute.
  5895. * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
  5896. (use_linker_plugin): New.
  5897. (use_linker_plugin_spec_function): New.
  5898. (LINK_COMMAND_SPEC): Pass plugin options to the linker.
  5899. (linker_plugin_file_spec): New.
  5900. (lto_wrapper_spec): New.
  5901. (lto_gcc_spec): New.
  5902. (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
  5903. (static_spec_functions): Add use-linker-plugin.
  5904. (process_command): Handle -use-linker-plugin.
  5905. (main): Use lto_wrapper_spec instead of lto_wrapper. Set
  5906. linker_plugin_file_spec and lto_gcc_spec.
  5907. (use_linker_plugin_spec_function): New.
  5908. 2009-10-03 Richard Guenther <rguenther@suse.de>
  5909. PR lto/41547
  5910. PR lto/41548
  5911. * tree.h (is_lang_specific): Include LANG_TYPE.
  5912. * tree.c (find_decls_types_r): Manually add interesting parts
  5913. of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
  5914. * gimple.c (type_pair_hash): Make symmetric.
  5915. (type_pair_eq): Likewise.
  5916. (lookup_type_pair): Increase initial hashtable size.
  5917. (gimple_force_type_merge): Rely on type-pair symmetry.
  5918. (visit): Remove excessive checking code.
  5919. (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
  5920. (gimple_register_type): Remove getenv calls, shrink initial
  5921. hashtable size.
  5922. PR middle-end/41502
  5923. * cgraphunit.c (ipa_passes): Do not remove bodies of extern
  5924. inline functions if not generating lto output.
  5925. PR lto/41379
  5926. * toplev.c (finalize): In WPA mode remove the asm file.
  5927. 2009-10-03 Doug Kwan <dougkwan@google.com>
  5928. * ipa-inline.c (cgraph_mark_inline): Check
  5929. edge->call_stmt_cannot_inline_p instead of calling
  5930. gimple_call_cannot_inline_p.
  5931. (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
  5932. (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
  5933. (inline_generate_summary): Do nothing in LTRANS.
  5934. * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
  5935. exists before calling gimple_call_cannot_inline_p.
  5936. (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
  5937. (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
  5938. Update new_edge->lto_stmt_uid.
  5939. * cgraphbuild.c (reset_inline_failed): New.
  5940. * common.opt (fwpa): New flag.
  5941. (fltrans): New option.
  5942. * gcc.c (gcc_lto_option_t): New type.
  5943. (current_lto_option): New variable.
  5944. (lto_single_spec_function): Remove and is replaced by ..
  5945. (lto_option_spec_function): New function.
  5946. (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
  5947. passing the -flto flag.
  5948. (cc1_options): Separate non-LTO related parts into ..
  5949. (cc1_non_lto_options): Non-LTO related options shared by all FEs.
  5950. (lto1_options): New spec for lto FE.
  5951. (link_lto_options): New spec for handling LTO flags in linker.
  5952. (invoke_lto_single): Re-format to fit in 80 column. Replace
  5953. lto-single with lto-option.
  5954. (static_specs): Add cc1_non_lto_options, lto1_options and
  5955. link_lto_options.
  5956. (static_spec_function): Replace lto-single with lto-option.
  5957. (process_command): Handle -flto, -fwpa and -fltran by setting
  5958. current_lto_option and not passing it to subprocess unconditionally.
  5959. 2009-10-03 Bill Maddox <maddox@google.com>
  5960. Add `gcc' driver support for link-time code generation (LTO).
  5961. * collect2.c (enum pass): Add new literal PASS_LTOINFO.
  5962. (lto_flag, lto_objects, lto_o_file): New variables.
  5963. (struct lto_object, struct lto_object_list): New structures.
  5964. (collect_exit, handler): Remove LTO temporary output file on exit.
  5965. (add_lto_object): New function.
  5966. (maybe_run_lto_and_relink): New function. Perform link time code
  5967. generation and relinking for object files containing LTO information.
  5968. (main): Invoke maybe_run_lto_and_relink().
  5969. (dump_argv): New function. For debugging, currently disabled.
  5970. (scan_prog_file): Add LTO information pass.
  5971. * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
  5972. collect2.
  5973. * toplev.c (compile_file): Emit assembler directive to create
  5974. the `gnu_lto_v1' marker symbol when compiling with `-flto'.
  5975. 2009-10-03 Diego Novillo <dnovillo@google.com>
  5976. * c.opt: Add LTO to warn_abi and warn_psabi.
  5977. * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
  5978. inline function. Ignore language-specific nodes. Update all users.
  5979. (find_decls_types_r): Do not traverse the subtrees of
  5980. language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
  5981. * tree.h (is_lang_specific): New.
  5982. * langhooks.h (struct lang_hooks_for_decls): Remove
  5983. may_need_assembler_name_p. Update all users.
  5984. * c-common.c (set_builtin_user_assembler_name): Move ...
  5985. * builtins.c (set_builtin_user_assembler_name): ... here.
  5986. (is_builtin_name): Add comment
  5987. (is_builtin_fn): New.
  5988. * except.c (output_ttype): Only call
  5989. lookup_type_for_runtime if TYPE is not a runtime type.
  5990. * passes.c (register_pass): Call position_pass on
  5991. all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
  5992. * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
  5993. (TV_IPA_LTO_DECL_IO): Define.
  5994. (TV_IPA_LTO_CGRAPH_IO): Define.
  5995. (TV_LTO): Define.
  5996. (TV_WHOPR_WPA): Define.
  5997. (TV_WHOPR_WPA_IO): Define.
  5998. (TV_WHOPR_LTRANS): Define.
  5999. (TV_WHOPR_WPA_FIXUP): Define.
  6000. (TV_WHOPR_WPA_LTRANS_EXEC): Define.
  6001. * tree-cfg.c (tree_node_can_be_shared): Make extern.
  6002. * tree-flow.h (tree_node_can_be_shared): Declare.
  6003. * tree-inline.c (tree_can_inline_p): Check that E has a
  6004. statement associated with it.
  6005. * tree.c (free_lang_data_in_binf): Factor out of ...
  6006. (free_lang_data_in_type): ... here.
  6007. Call RECORD_OR_UNION_TYPE_P.
  6008. (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
  6009. set. Call lang_hooks.decls.may_need_assembler_name_p if set.
  6010. (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
  6011. (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
  6012. write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
  6013. (gate_free_lang_data): Return true if flag_generate_lto is set.
  6014. (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
  6015. * c-common.h (set_builtin_user_assembler_name): Move ...
  6016. * tree.h (set_builtin_user_assembler_name): ... here.
  6017. * common.opt (flto-report): New flag.
  6018. * opts.c (complain_wrong_lang): Do not complain if running lto1.
  6019. * collect2.c (scan_prog_file): Send the error output of
  6020. 'nm' to HOST_BIT_BUCKET.
  6021. 2009-10-03 Ollie Wild <aaw@google.com>
  6022. * langhooks-def.h (lhd_begin_section): New function declaration.
  6023. (lhd_write_section): New function declaration.
  6024. (lhd_end_section): New function declaration.
  6025. (LANG_HOOKS_BEGIN_SECTION): New macro.
  6026. (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
  6027. (LANG_HOOKS_END_SECTION): New macro.
  6028. (LANG_HOOKS_LTO): New macro.
  6029. (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
  6030. * langhooks.c (output.h): Add include.
  6031. (saved_section): New static variable.
  6032. (lhd_begin_section): New function.
  6033. (lhd_write_section_data): New function.
  6034. (lhd_end_section): New function.
  6035. * langhooks.h (struct lang_hooks_for_lto): New structure.
  6036. (struct lang_hooks): Add member lto.
  6037. * Makefile.in (langhooks.o): Add dependency on output.h.
  6038. * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
  6039. 2009-10-03 Richard Guenther <rguenther@suse.de>
  6040. * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
  6041. Handle LTO.
  6042. 2009-10-03 Simon Baldwin <simonb@google.com>
  6043. Richard Guenther <rguenther@suse.de>
  6044. Janis Johnson <janis187@us.ibm.com>
  6045. Doug Kwan <dougkwan@google.com>
  6046. Diego Novillo <dnovillo@google.com>
  6047. Ramana Radhakrishnan <ramana.r@gmail.com>
  6048. Ollie Wild <aaw@google.com>
  6049. * doc/install.texi: Add documentation for libelf and --enable-lto.
  6050. * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
  6051. -flto-report, -flto-compression-level and -use-linker-plugin.
  6052. * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
  6053. Add section for LTO Testing.
  6054. 2009-10-02 Cary Coutant <ccoutant@google.com>
  6055. Add support for comdat type sections for DWARF v4.
  6056. Merge from dwarf4 branch.
  6057. * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
  6058. (dw_die_ref): Define vector type.
  6059. (enum dw_val_class): Add dw_val_class_data8.
  6060. (struct dw_val_struct): Add v.val_data8.
  6061. (comdat_type_node_ref): New type.
  6062. (struct die_struct): Move die_symbol into a union; add new field
  6063. die_type_node. Change all uses.
  6064. (comdat_type_node): New type.
  6065. (skeleton_chain_node): New type.
  6066. (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
  6067. (comdat_type_list): New variable.
  6068. (dwarf_tag_name): Add DW_TAG_type_unit.
  6069. (dwarf_attr_name): Add DW_AT_signature.
  6070. (add_AT_data8): New function.
  6071. (replace_child): New function.
  6072. (move_all_children): New function.
  6073. (print_signature): New function.
  6074. (print_die): Print signature information; add dw_val_class_data8.
  6075. (attr_checksum): Support dw_val_class_data8.
  6076. (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
  6077. (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
  6078. (checksum_sleb128, checksum_uleb128): New functions.
  6079. (checksum_die_context): New function.
  6080. (loc_checksum_ordered): New function.
  6081. (attr_checksum_ordered): New function.
  6082. (struct checksum_attributes): New structure.
  6083. (collect_checksum_attributes): New function.
  6084. (die_checksum_ordered): New function.
  6085. (generate_type_signature): New function.
  6086. (same_dw_val_p): Add dw_val_class_data8.
  6087. (is_symbol_die): Use new is_declaration_die function.
  6088. (is_declaration_die): New function.
  6089. (should_move_die_to_comdat): New function.
  6090. (clone_die): New function.
  6091. (clone_tree): New function.
  6092. (clone_as_declaration): New function.
  6093. (copy_declaration_context): New function.
  6094. (generate_skeleton_ancestor_tree): New function.
  6095. (generate_skeleton_bottom_up): New function.
  6096. (generate_skeleton): New function.
  6097. (remove_child_or_replace_with_skeleton): New function.
  6098. (break_out_comdat_types): New function.
  6099. (struct decl_table_entry): New type.
  6100. (htab_decl_hash): New function.
  6101. (htab_decl_eq): New function.
  6102. (htab_decl_del): New function.
  6103. (copy_ancestor_tree): New function.
  6104. (copy_decls_walk): New function.
  6105. (copy_decls_for_unworthy_types): New function.
  6106. (build_abbrev_table): Don't assert on missing die_symbol when doing
  6107. comdat type sections.
  6108. (size_of_die): Use DW_FORM_sig8 for external references. Add
  6109. dw_val_class_data8.
  6110. (unmark_dies): Don't assert for unmarked dies when doing comdat
  6111. type sections.
  6112. (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
  6113. (output_signature): New function.
  6114. (output_die): Likewise.
  6115. (output_compilation_unit_header): Mark output as DWARF version 3
  6116. even if generating DWARF 4.
  6117. (output_comdat_type_unit): New function.
  6118. (output_line_info): Mark output as DWARF version 3 even if generating
  6119. DWARF 4.
  6120. (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
  6121. DWARF-4.
  6122. (dwarf2out_end_source_file): Likewise.
  6123. (prune_unused_types_walk_attribs): Don't follow references into
  6124. comdat type sections.
  6125. (prune_unused_types_mark): When generating type units, do not mark
  6126. children of non-defining declarations of types; do mark children of
  6127. type entries.
  6128. (prune_unused_types): Process comdat type sections.
  6129. (htab_ct_hash): New function.
  6130. (htab_ct_eq): New function.
  6131. (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
  6132. Add a pointer to the line table from type unit entries so
  6133. DW_AT_decl_file has meaning.
  6134. * varasm.c (default_elf_asm_named_section): Use identifier name as
  6135. comdat key instead of lang hook.
  6136. 2009-10-02 Neil Vachharajani <nvachhar@google.com>
  6137. * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
  6138. 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
  6139. * config/i386/i386.md (SWIM248): New mode iterator.
  6140. (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
  6141. divmodhi4 patterns using SWIM248 macro.
  6142. (*divmod<mode>4): Macroize insn_and_split pattern from
  6143. *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
  6144. and their corresponding splitters usign SWIM248 macro. Split SImode
  6145. insn to generate cltd and DImode insn to generate cqto instead of
  6146. move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
  6147. (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
  6148. (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
  6149. *divmodsi_noext patterns using SWIM248 macro.
  6150. (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
  6151. udivmodhi4 patterns using SWIM248 macro.
  6152. (*udivmod<mode>4): Macroize insn_and_split pattern from
  6153. *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
  6154. corresponding splitters using SWIM248 macro.
  6155. (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
  6156. *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
  6157. 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
  6158. * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
  6159. of zero-sized element is zero-sized regardless of its extent.
  6160. 2009-10-02 Jakub Jelinek <jakub@redhat.com>
  6161. PR debug/40521
  6162. * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
  6163. * configure: Regenerated.
  6164. * config.in: Regenerated.
  6165. * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
  6166. !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
  6167. (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
  6168. not emitting .eh_frame, emit .cfi_sections .debug_frame
  6169. directive.
  6170. PR debug/41404
  6171. PR debug/41353
  6172. * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
  6173. CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
  6174. with '\0'.
  6175. (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
  6176. vars use DECL_RTL with resetting it back to NULL afterwards.
  6177. * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
  6178. rtx_equal_p instead of asserting it is a SYMBOL_REF.
  6179. (value_format): For dw_val_class_addr only use DW_FORM_addr if
  6180. the attribute type allows it, otherwise use DW_FORM_dataN.
  6181. (mem_loc_descriptor): Handle CONST_STRING.
  6182. (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
  6183. Handle MEM with CONST_STRING address using add_AT_string.
  6184. (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
  6185. CONST_STRING for const arrays initialized with a string literal.
  6186. (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
  6187. (dwarf2out_finish): Call resolve_addr.
  6188. 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
  6189. Maxim Kuvyrkov <maxim@codesourcery.com>
  6190. * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
  6191. 2009-10-02 Nick Clifton <nickc@redhat.com>
  6192. * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
  6193. (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
  6194. 2009-10-01 Jan Hubicka <jh@suse.cz>
  6195. * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
  6196. (cgraph_create_virtual_clone): Just pass redirect_callers
  6197. around.
  6198. * cgraph.h (cgraph_clone_node): Update prototype.
  6199. * ipa-pure-const.c (self_recursive_p): New function.
  6200. (propagate): Use it.
  6201. * ipa-inline.c (cgraph_clone_inlined_nodes,
  6202. cgraph_decide_recursive_inlining): Update.
  6203. 2009-10-01 David Daney <ddaney@caviumnetworks.com>
  6204. * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
  6205. instructions for TARGET_OCTEON.
  6206. 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  6207. * config/arm/arm.c (arm_override_options): Turn off
  6208. flag_dwarf2_cfi_asm for AAPCS variants.
  6209. 2009-10-01 Martin Jambor <mjambor@suse.cz>
  6210. PR middle-end/12392
  6211. * tree-sra.c (convert_callers): Do not call
  6212. compute_inline_parameters on one caller more than once.
  6213. 2009-10-01 Nick Clifton <nickc@redhat.com>
  6214. * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
  6215. an empty string if not already defined.
  6216. 2009-10-01 Martin Jambor <mjambor@suse.cz>
  6217. PR bootstrap/41395
  6218. * tree-sra.c (is_va_list_type): New function.
  6219. (find_var_candidates): Call is_va_list_type.
  6220. (find_param_candidates): Check that the type or the type pointed
  6221. to are not va_list types.
  6222. 2009-10-01 Martin Jambor <mjambor@suse.cz>
  6223. PR c++/41503
  6224. * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
  6225. DECL_ARTIFICIAL (param_decl) is true.
  6226. 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
  6227. * tree.h (tree_decl_common::lang_flag_8): New.
  6228. * c-common.c (c_common_reswords): Include "constexpr" as C++0x
  6229. keyword.
  6230. * c-common.h (RID_CONSTEXPR): New.
  6231. 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
  6232. * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
  6233. Use ref-all pointers.
  6234. (alpha_gimplify_va_arg): Ditto.
  6235. 2009-09-30 Jakub Jelinek <jakub@redhat.com>
  6236. PR target/41279
  6237. * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
  6238. before insn counting loop now that BB_END (bb) is counted. Ensure
  6239. the return value isn't zero.
  6240. 2009-09-30 Nick Clifton <nickc@redhat.com>
  6241. * config.gcc (sh-symbianelf): Replace definition of extra_objs
  6242. with separate definitions of c_target_objs and cxx_target_objs.
  6243. * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
  6244. and symbian-base.o.
  6245. * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
  6246. sh_symbian_import_export_class.
  6247. * config/sh/sh-protos.h: Fix names of exported symbian functions.
  6248. * config/sh/symbian.c: Delete, moving code into...
  6249. * config/sh/symbian-base.c: ... here
  6250. * config/sh/symbian-c.c: ... and here
  6251. * config/sh/symbian-cxx.c: ... and here.
  6252. 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
  6253. PR target/22093
  6254. * config/alpha/alpha.md (unaligned_storehi_be): Force operand
  6255. of plus RTX into register.
  6256. 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  6257. * doc/install.texi: Linguistic and markup fixes.
  6258. (Configuration) <--disable-cpp>: Remove description.
  6259. <--enable-maintainer-mode>: Autotools files are affected, too.
  6260. <--with-sysroot>: Improve description.
  6261. (Building): Bump required GNU make version.
  6262. 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
  6263. * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
  6264. (x86_64-*-*): Ditto.
  6265. * config/i386/fma4intrin.h: New file, provide common x86 compiler
  6266. intrinisics for FMA4.
  6267. * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
  6268. * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
  6269. Add FMA4 check and fma4intrin.h.
  6270. * config/i386/i386-c.c(ix86_target_macros_internal): Check
  6271. ISA_FLAG for FMA4.
  6272. * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
  6273. * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
  6274. constant for FMA4 support.
  6275. (UNSPEC_FMA4_FMADDSUB): Ditto.
  6276. (UNSPEC_FMA4_FMSUBADD): Ditto.
  6277. * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
  6278. * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
  6279. (ix86_expand_fma4_multiple_memory): Ditto.
  6280. * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
  6281. (OPTION_MASK_ISA_FMA4_UNSET): New.
  6282. (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
  6283. (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
  6284. (ix86_handle_option): Handle -mfma4.
  6285. (isa_opts): Handle -mfma4.
  6286. (enum pta_flags): Add PTA_FMA4.
  6287. (override_options): Add FMA4 support.
  6288. (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
  6289. (IX86_BUILTIN_VFMADDSD): Ditto.
  6290. (IX86_BUILTIN_VFMADDPS): Ditto.
  6291. (IX86_BUILTIN_VFMADDPD): Ditto.
  6292. (IX86_BUILTIN_VFMSUBSS): Ditto.
  6293. (IX86_BUILTIN_VFMSUBSD): Ditto.
  6294. (IX86_BUILTIN_VFMSUBPS): Ditto.
  6295. (IX86_BUILTIN_VFMSUBPD): Ditto.
  6296. (IX86_BUILTIN_VFMADDSUBPS): Ditto.
  6297. (IX86_BUILTIN_VFMADDSUBPD): Ditto.
  6298. (IX86_BUILTIN_VFMSUBADDPS): Ditto.
  6299. (IX86_BUILTIN_VFMSUBADDPD): Ditto.
  6300. (IX86_BUILTIN_VFNMADDSS): Ditto.
  6301. (IX86_BUILTIN_VFNMADDSD): Ditto.
  6302. (IX86_BUILTIN_VFNMADDPS): Ditto.
  6303. (IX86_BUILTIN_VFNMADDPD): Ditto.
  6304. (IX86_BUILTIN_VFNMSUBSS): Ditto.
  6305. (IX86_BUILTIN_VFNMSUBSD): Ditto.
  6306. (IX86_BUILTIN_VFNMSUBPS): Ditto.
  6307. (IX86_BUILTIN_VFNMSUBPD): Ditto.
  6308. (IX86_BUILTIN_VFMADDPS256): Ditto.
  6309. (IX86_BUILTIN_VFMADDPD256): Ditto.
  6310. (IX86_BUILTIN_VFMSUBPS256): Ditto.
  6311. (IX86_BUILTIN_VFMSUBPD256): Ditto.
  6312. (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
  6313. (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
  6314. (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
  6315. (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
  6316. (IX86_BUILTIN_VFNMADDPS256): Ditto.
  6317. (IX86_BUILTIN_VFNMADDPD256): Ditto.
  6318. (IX86_BUILTIN_VFNMSUBPS256): Ditto.
  6319. (IX86_BUILTIN_VFNMSUBPD256): Ditto.
  6320. (enum multi_arg_type): New enum for describing the various FMA4
  6321. intrinsic argument types.
  6322. (bdesc_multi_arg): New table for FMA4 intrinsics.
  6323. (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
  6324. (ix86_expand_multi_arg_builtin): New function for creating FMA4
  6325. intrinsics.
  6326. (ix86_expand_builtin): Add FMA4 intrinsic support.
  6327. (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
  6328. operand instructions.
  6329. (ix86_expand_fma4_multiple_memory): New function to split the
  6330. second memory reference from FMA4 instructions.
  6331. * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
  6332. (ssemodesuffixf2s): Ditto.
  6333. (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
  6334. instructions.
  6335. (fma4_fmsub<mode>4): Ditto.
  6336. (fma4_fnmadd<mode>4): Ditto.
  6337. (fma4_fnmsub<mode>4): Ditto.
  6338. (fma4_vmfmadd<mode>4): Ditto.
  6339. (fma4_vmfmsub<mode>4): Ditto.
  6340. (fma4_vmfnmadd<mode>4): Ditto.
  6341. (fma4_vmfnmsub<mode>4): Ditto.
  6342. (fma4_fmadd<mode>4256): Ditto.
  6343. (fma4_fmsub<mode>4256): Ditto.
  6344. (fma4_fnmadd<mode>4256): Ditto.
  6345. (fma4_fnmsub<mode>4256): Ditto.
  6346. (fma4_fmaddsubv8sf4): Ditto.
  6347. (fma4_fmaddsubv4sf4): Ditto.
  6348. (fma4_fmaddsubv4df4): Ditto.
  6349. (fma4_fmaddsubv2df4): Ditto.
  6350. (fma4_fmsubaddv8sf4): Ditto.
  6351. (fma4_fmsubaddv4sf4): Ditto.
  6352. (fma4_fmsubaddv4df4): Ditto.
  6353. (fma4_fmsubaddv2df4): Ditto.
  6354. (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
  6355. instructions for intrinsics.
  6356. (fma4i_fmsub<mode>4): Ditto.
  6357. (fma4i_fnmadd<mode>4): Ditto.
  6358. (fma4i_fnmsub<mode>4): Ditto.
  6359. (fma4i_vmfmadd<mode>4): Ditto.
  6360. (fma4i_vmfmsub<mode>4): Ditto.
  6361. (fma4i_vmfnmadd<mode>4): Ditto.
  6362. (fma4i_vmfnmsub<mode>4): Ditto.
  6363. (fma4i_fmadd<mode>4256): Ditto.
  6364. (fma4i_fmsub<mode>4256): Ditto.
  6365. (fma4i_fnmadd<mode>4256): Ditto.
  6366. (fma4i_fnmsub<mode>4256): Ditto.
  6367. (fma4i_fmaddsubv8sf4): Ditto.
  6368. (fma4i_fmaddsubv4sf4): Ditto.
  6369. (fma4i_fmaddsubv4df4): Ditto.
  6370. (fma4i_fmaddsubv2df4): Ditto.
  6371. (fma4i_fmsubaddv8sf4): Ditto.
  6372. (fma4i_fmsubaddv4sf4): Ditto.
  6373. (fma4i_fmsubaddv4df4): Ditto.
  6374. (fma4i_fmsubaddv2df4): Ditto.
  6375. * doc/invoke.texi (-mfma4): Add documentation.
  6376. * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
  6377. 2009-09-29 Richard Henderson <rth@redhat.com>
  6378. * tree-eh.c (unsplit_eh): Do not unsplit if there's already
  6379. an edge to the new destination block.
  6380. 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  6381. PR target/41393
  6382. * pa.c (hppa_profile_hook): Use
  6383. make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
  6384. 2009-09-29 Steve Ellcey <sje@cup.hp.com>
  6385. Alexander Monakov <amonakov@ispras.ru>
  6386. PR target/41365
  6387. * config/ia64/predicates.md (not_postinc_destination_operand): New.
  6388. (not_postinc_memory_operand): New.
  6389. (not_postinc_move_operand): New.
  6390. * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
  6391. (*cmovsi_internal): Ditto.
  6392. 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
  6393. * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
  6394. restrict issue_rate in first pass when scheduling for register
  6395. pressure.
  6396. 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
  6397. Rafael Avila de Espindola <espindola@google.com>
  6398. * gengtype.c (plugin_output): New.
  6399. (get_output_file_with_visibility): Return plugin_output for plugins.
  6400. (main): Parse and use the -P option.
  6401. * gty.texi: Update the command line format.
  6402. 2009-09-29 Jakub Jelinek <jakub@redhat.com>
  6403. PR debug/41438
  6404. * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
  6405. functions.
  6406. (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
  6407. out if !const_ok_for_output.
  6408. PR debug/41474
  6409. * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
  6410. case VAR_LOCATION>: Remove gcc_unreachable ().
  6411. 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
  6412. * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
  6413. (x86_64-*-*): Ditto.
  6414. * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
  6415. back to smmintrin.h.
  6416. * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
  6417. * config/i386/x86intrin.h: Remove SSE5.
  6418. * config/i386/mmintrin-common.h: Delete file.
  6419. * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
  6420. 2009-09-29 Richard Guenther <rguenther@suse.de>
  6421. * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
  6422. resulting from stack temporaries on STRICT_ALIGNMENT targets.
  6423. 2009-09-29 Nick Clifton <nickc@redhat.com>
  6424. * function.c (current_function_name): If there is no current
  6425. function just return "<none>".
  6426. 2009-09-28 Sriraman Tallam <tmsriram@google.com>
  6427. * tree-pass.h (register_pass_info): New structure.
  6428. (pass_positioning_ops): Move enum from gcc-plugin.h.
  6429. (register_pass): New function.
  6430. * gcc-plugin.h (plugin_pass): Delete structure.
  6431. (pass_positioning_ops): Delete enum.
  6432. * plugin.c (regsiter_pass): Delete function.
  6433. (position_pass): Delete function.
  6434. (added_pass_nodes): Delete variable.
  6435. (prev_added_pass_nodes): Delete variable.
  6436. (pass_list_node): Delete structure.
  6437. * passes.c (make_pass_instance): New function.
  6438. (next_pass_1): Change to call make_pass_instance.
  6439. (pass_list_node): Move structure from gcc-plugin.h.
  6440. (added_pass_nodes): Move variable from plugin.c.
  6441. (prev_added_pass_nodes): Move variable from plugin.c.
  6442. (position_pass): New function.
  6443. (register_pass): New function.
  6444. 2009-09-28 Easwaran Raman <eraman@google.com>
  6445. * ifcvt.c (noce_try_abs): Recognize pattern and call
  6446. expand_one_cmpl_abs_nojump.
  6447. * optabs.c (expand_one_cmpl_abs_nojump): New function.
  6448. * optabs.h (expand_one_cmpl_abs_nojump): Declare.
  6449. 2009-09-28 Ian Lance Taylor <iant@google.com>
  6450. PR middle-end/40500
  6451. * c-opts.c (c_common_handle_option): Don't set
  6452. warn_jump_misses_init for -Wall.
  6453. * doc/invoke.texi (Warning Options): Update documentation.
  6454. 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  6455. * Makefile.in ($(out_object_file)): Depend on
  6456. gt-$(basename $(notdir $(out_file))).h.
  6457. 2009-09-28 Richard Henderson <rth@redhat.com>
  6458. * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
  6459. * except.c (gen_eh_region): Set it.
  6460. (duplicate_eh_regions_1): Copy it.
  6461. * tree-eh.c (lower_resx): Use it to determine which function
  6462. to call to resume.
  6463. * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
  6464. * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
  6465. * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
  6466. * tree.c (build_common_builtin_nodes): Remove parameter. Build
  6467. BUILT_IN_CXA_END_CLEANUP if necessary.
  6468. * c-common.c (c_define_builtins): Update call to
  6469. build_common_builtin_nodes.
  6470. 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
  6471. * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
  6472. 2009-09-28 Michael Matz <matz@suse.de>
  6473. * builtins.c (interclass_mathfn_icode): New helper.
  6474. (expand_builtin_interclass_mathfn): Use it here, and split folding
  6475. into ...
  6476. (fold_builtin_interclass_mathfn): ... this new folder.
  6477. (build_call_nofold_loc): New static helper.
  6478. (build_call_nofold): New wrapper macro for above.
  6479. (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
  6480. (expand_builtin_pow): Ditto.
  6481. (expand_builtin_memset_args): Ditto.
  6482. (expand_builtin_printf): Ditto.
  6483. (expand_builtin_fprintf): Ditto.
  6484. (expand_builtin_sprintf): Ditto.
  6485. (expand_builtin_memory_chk): Ditto.
  6486. (expand_builtin_mempcpy_args): Ditto and don't call folders.
  6487. (expand_builtin_stpcpy): Ditto.
  6488. (expand_builtin_strcmp): Ditto.
  6489. (expand_builtin_strncmp): Ditto.
  6490. (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
  6491. (expand_builtin_strcpy_args): Don't call folders.
  6492. (expand_builtin_memcmp): Ditto.
  6493. (expand_builtin_strncpy): Ditto, and use target.
  6494. (expand_builtin_memcpy): Ditto.
  6495. (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
  6496. expand_builtin_strpbrk, expand_builtin_memmove,
  6497. expand_builtin_memmove_args, expand_builtin_bcopy,
  6498. expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
  6499. expand_builtin_strspn, expand_builtin_strcspn,
  6500. expand_builtin_fputs): Remove these.
  6501. (expand_builtin): Don't call the above, change calls to other
  6502. expanders that changed prototype.
  6503. (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
  6504. (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
  6505. fold_builtin_interclass_mathfn.
  6506. (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
  6507. (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
  6508. * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
  6509. * passes.c (init_optimization_passes): Move pass_fold_builtins
  6510. after last phiopt pass.
  6511. * tree-inline.c (fold_marked_statements): When folding builtins
  6512. iterate over all instruction potentially generated.
  6513. * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
  6514. earlier.
  6515. (fold_gimple_call): Use it to always fold calls (into potentially
  6516. multiple instructions).
  6517. * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
  6518. calls into zero at this time.
  6519. * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
  6520. statements generated by builtin folding.
  6521. 2009-09-28 Nick Clifton <nickc@redhat.com>
  6522. * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
  6523. 2009-09-28 Duncan Sands <baldrick@free.fr>
  6524. * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
  6525. * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
  6526. (register_callback): Dispatch it.
  6527. (invoke_plugin_callbacks): Incorporate in sanity check.
  6528. * ggc.h (ggc_register_cache_tab): Add declaration.
  6529. * ggc-common.c (ggc_register_root_tab): Simplify.
  6530. (const_ggc_cache_tab_t): New typedef.
  6531. (extra_cache_vec): New vector of dynamically added cache tables.
  6532. (ggc_register_cache_tab): New function.
  6533. (ggc_scan_cache_tab): New function.
  6534. (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
  6535. * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
  6536. 2009-09-27 Richard Henderson <rth@redhat.com>
  6537. * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
  6538. which we remove __builtin_stack_restore.
  6539. 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
  6540. * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
  6541. to test for GRD_INVARIANT.
  6542. (simple_rhs_p): Anything that's function_invariant_p is fine.
  6543. 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
  6544. * gengtype.c (main): Use plunge_files instead of plugin_output.
  6545. 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
  6546. Rafael Avila de Espindola <espindola@google.com>
  6547. * gengtype.c (write_root, write_roots): Add a emit_pch argument.
  6548. Don't print pch related info if it is false.
  6549. (main): Don't print pch info in plugin mode.
  6550. 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
  6551. * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
  6552. with dw_val_class_const_double.
  6553. (struct dw_val_struct): Replace val_long_long with val_double and
  6554. adjust for above change.
  6555. (output_loc_operands): Likewise.
  6556. (add_AT_long_long): Rename into...
  6557. (add_AT_double): ...this.
  6558. (print_die): Replace dw_val_class_long_long with
  6559. dw_val_class_const_double and adjust.
  6560. (attr_checksum): Likewise.
  6561. (same_dw_val_p): Likewise.
  6562. (size_of_die): Likewise.
  6563. (value_format): Likewise.
  6564. (output_die): Likewise.
  6565. (loc_descriptor) <CONST_DOUBLE>: Likewise.
  6566. (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
  6567. instead of add_AT_long_long.
  6568. (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
  6569. value with the precision of its type.
  6570. 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
  6571. PR c/41476
  6572. * c-typeck.c (build_conditional_expr): Use the readonly and
  6573. volatile flags of the operand types, not of the operands itself.
  6574. 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
  6575. * collect2.c (main): Look for -brtl before adding libraries.
  6576. 2009-09-27 Jonathan Gray <jsg@openbsd.org>
  6577. * config.gcc: Update OpenBSD targets.
  6578. * config/openbsd-stdint.h: New file.
  6579. * config/openbsd-libpthread.h: New file.
  6580. * config/openbsd.h: Update and break out LIB_SPEC definition.
  6581. * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
  6582. * config/i386/openbsdelf.h: Correct types.
  6583. * config/m68k/openbsd.h: Likewise.
  6584. * config/mips/openbsd.h: Likewise.
  6585. * config/vax/openbsd.h: Likewise.
  6586. 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
  6587. * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
  6588. (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
  6589. * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
  6590. of the length and zero.
  6591. 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  6592. * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
  6593. (FLAGS_H): Add options.h $(REAL_H).
  6594. (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
  6595. (TREE_VECTORIZER_H): New.
  6596. (EBITMAP_H): Renamed from EBIMAP_H.
  6597. (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
  6598. (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
  6599. (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
  6600. (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
  6601. (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
  6602. (graphite-clast-to-gimple.o, graphite-dependences.o)
  6603. (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
  6604. (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
  6605. (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
  6606. (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
  6607. (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
  6608. (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
  6609. (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
  6610. (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
  6611. (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
  6612. updated and fixed as per above changes and per
  6613. check_makefile_deps.sh output.
  6614. PR bootstrap/40928
  6615. * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
  6616. * configure: Regenerate.
  6617. 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  6618. * doc/install.texi: Update minimum MPC version to 0.7.
  6619. 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
  6620. * doc/install.texi (Binaries): Remove reference to the binary
  6621. distribution CD-ROM from the FSF.
  6622. 2009-09-26 Michael Matz <matz@suse.de>
  6623. PR lto/40758
  6624. PR middle-end/41470
  6625. * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
  6626. that are mentioned in the body.
  6627. 2009-09-26 Michael Matz <matz@suse.de>
  6628. PR tree-optimization/41454
  6629. * tree-ssa-dom (stmts_to_rescan): Remove variable.
  6630. (tree_ssa_dominator_optimize): Don't allocate and free it.
  6631. (dom_opt_leave_block): Don't iterate over it.
  6632. (eliminate_redundant_computations): Don't return a value.
  6633. (cprop_operand, cprop_into_stmt): Ditto.
  6634. (optimize_stmt): Don't defer updating stmts.
  6635. 2009-09-25 Dodji Seketeli <dodji@redhat.com>
  6636. * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
  6637. generic_parameter_die, template_parameter_pack_die,
  6638. gen_formal_parameter_die, gen_subprogram_die): Adjust after
  6639. renaming DW_TAG_formal_parameter_pack and
  6640. DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
  6641. and DW_TAG_GNU_template_parameter_pack.
  6642. 2009-09-25 Anatoly Sokolov <aesok@post.ru>
  6643. * config/v850/v850.h (FUNCTION_VALUE): Remove.
  6644. * config/v850/v850.c (v850_function_value): New function.
  6645. (TARGET_FUNCTION_VALUE): Define.
  6646. 2009-09-25 Jakub Jelinek <jakub@redhat.com>
  6647. * tree-vect-stmts.c (vectorizable_call): Call
  6648. mark_symbols_for_renaming after vect_finish_stmt_generation.
  6649. * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
  6650. to loc_descriptor_from_tree.
  6651. (add_location_or_const_value_attribute): Pass 0 instead of 2
  6652. for decl_by_reference_p decls.
  6653. 2009-09-25 Richard Guenther <rguenther@suse.de>
  6654. PR middle-end/41463
  6655. * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
  6656. arrays again.
  6657. 2009-09-25 Ben Elliston <bje@au.ibm.com>
  6658. * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
  6659. after `power7'.
  6660. 2009-09-25 Alan Modra <amodra@bigpond.net.au>
  6661. * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
  6662. form of instruction.
  6663. 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  6664. PR middle-end/41435
  6665. * fold-const.c (const_binop): Handle complex int division.
  6666. * tree-complex.c (expand_complex_div_straight,
  6667. expand_complex_div_wide): Update comments.
  6668. 2009-09-24 DJ Delorie <dj@redhat.com>
  6669. PR target/41456
  6670. * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
  6671. (reg_class): Likewise.
  6672. (REG_CLASS_NAMES): Likewise.
  6673. * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
  6674. (m32c_override_options): Disable -fivopts for M32C.
  6675. 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
  6676. * config/rs6000/predicates.md (indexed_or_indirect_operand):
  6677. Delete VSX load/store with update support.
  6678. * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
  6679. * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
  6680. (vsx_movti): Ditto.
  6681. (VSX_U): Delete.
  6682. (VSbit): Ditto.
  6683. (VStype_load_update): Ditto.
  6684. (VStype_store_update): Ditto.
  6685. (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
  6686. (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
  6687. * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
  6688. load/store with update builtins.
  6689. 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
  6690. * libgcc2.c (L_trampoline): Prototype for getpagesize
  6691. and mprotect in WINNT case.
  6692. 2009-09-24 Anatoly Sokolov <aesok@post.ru>
  6693. * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
  6694. * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
  6695. * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
  6696. 'outgoing' argument.
  6697. (TARGET_FUNCTION_VALUE): Define.
  6698. 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
  6699. * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
  6700. 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
  6701. PR bootstrap/41405
  6702. * common.opt: Initialize dwarf_strict to -1.
  6703. * toplev.c (process_options): Catch unset dwarf_strict
  6704. and set to 0 for all targets not overriding.
  6705. * config/darwin.c (darwin_override_options): Catch unset
  6706. dwarf_strict and override to 1.
  6707. 2009-09-24 Jeff Law <law@redhat.com>
  6708. * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
  6709. 2009-09-24 Richard Guenther <rguenther@suse.de>
  6710. PR tree-optimization/36143
  6711. PR tree-optimization/38747
  6712. * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
  6713. create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
  6714. 2009-09-24 Jakub Jelinek <jakub@redhat.com>
  6715. PR bootstrap/41457
  6716. * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
  6717. return false instead of gcc_unreachable (). For CONST return the
  6718. value returned by recursive call instead of always returning true.
  6719. (tree_add_const_value_attribute): Return the value returned by
  6720. add_const_value_attribute instead of always returning true if rtl
  6721. is non-NULL.
  6722. 2009-09-23 Justin Seyster <jrseys@gmail.com>
  6723. * Makefile.in (PLUGIN_HEADERS): Include real.h.
  6724. 2009-09-24 Jakub Jelinek <jakub@redhat.com>
  6725. * cgraphunit.c (cgraph_lower_function): Revert last change.
  6726. * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
  6727. instead of DECL_NO_STATIC_CHAIN.
  6728. * tree-cfg.c (verify_gimple_call): Likewise.
  6729. * tree-nested.c (get_chain_decl, get_chain_field,
  6730. convert_tramp_reference_op, convert_gimple_call): Likewise.
  6731. (convert_all_function_calls): Likewise. Always set or clear
  6732. DECL_STATIC_CHAIN initially, for !n->outer clear it.
  6733. (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
  6734. * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
  6735. if nested.
  6736. * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
  6737. DECL_NO_STATIC_CHAIN.
  6738. * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
  6739. instead of DECL_NO_STATIC_CHAIN.
  6740. (ix86_function_regparm, find_drap_reg): Likewise. Don't test
  6741. decl_function_context.
  6742. * varasm.c (initializer_constant_valid_p): Likewise.
  6743. * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
  6744. (DECL_STATIC_CHAIN): ... this.
  6745. * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
  6746. instead of DECL_NO_STATIC_CHAIN.
  6747. 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
  6748. Rafael Avila de Espindola <espindola@google.com>
  6749. * gengtype.c (nb_plugin_files): Make it unsigned to match
  6750. num_gt_files. Adjust other variables to avoid warnings.
  6751. (main): Allocate an all zero lang_bitmap before each plugin file name
  6752. to match regular file names.
  6753. 2009-09-23 Richard Henderson <rth@redhat.com>
  6754. * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
  6755. (TARGET_STATIC_CHAIN): Mention that this hook must be used for
  6756. static chain passed in memory.
  6757. * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
  6758. * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
  6759. STATIC_CHAIN_INCOMING. Issue a sorry if there's no
  6760. STATIC_CHAIN_REGNUM defined.
  6761. * config/picochip/picochip-protos.h: s/class/klass/.
  6762. * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
  6763. (picochip_static_chain): New.
  6764. * config/picochip/picochip.h (STATIC_CHAIN): Remove.
  6765. (STATIC_CHAIN_INCOMING): Remove.
  6766. * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
  6767. (xtensa_static_chain): New.
  6768. * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
  6769. (STATIC_CHAIN_INCOMING): Remove.
  6770. 2009-09-23 Anatoly Sokolov <aesok@post.ru>
  6771. * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
  6772. * config/pa/pa-protos.h (function_value): Remove.
  6773. * config/pa/pa.c (pa_function_value): Rename from function_value.
  6774. Make static, add 'outgoing' argument.
  6775. (TARGET_FUNCTION_VALUE): Define.
  6776. 2009-09-23 Anatoly Sokolov <aesok@post.ru>
  6777. * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
  6778. instead of cfun->machine->is_leaf.
  6779. * config/avr/avr.h (machine_function): Remove is_leaf field.
  6780. 2009-09-23 Jakub Jelinek <jakub@redhat.com>
  6781. PR debug/41439
  6782. * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
  6783. DW_OP_piece after DW_OP_stack_value, adjust size calculations
  6784. for it, when DW_OP_stack_value and DW_OP_implicit_value has
  6785. the same size, prefer DW_OP_stack_value.
  6786. (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
  6787. loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
  6788. 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
  6789. PR debug/41353
  6790. * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
  6791. 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
  6792. PR debug/41248
  6793. * cfgexpand.c (convert_debug_memory_address): New.
  6794. (expand_debug_expr): Convert base address and offset to the same
  6795. mode. Use it to convert addresses to other modes. Accept
  6796. ptr_mode addresses.
  6797. 2009-09-23 Dodji Seketeli <dodji@redhat.com>
  6798. PR debug/41065
  6799. * function.h (types_used_by_vars_hash): Declare new hash table.
  6800. (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
  6801. equality and hash function for the hash table.
  6802. (types_used_by_cur_var_decl): Declare a new global chained list.
  6803. (types_used_by_var_decl_insert): Declare new function.
  6804. * function.c (types_used_by_vars_hash): Define the hashtable ...
  6805. (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
  6806. its equality and hash functions.
  6807. (hash_types_used_by_vars_entry): New hash helper.
  6808. (types_used_by_cur_var_decl): Define the global chained list.
  6809. (used_types_insert): Update the list of types used by the global
  6810. variable being parsed.
  6811. (types_used_by_var_decl_insert): Define new function.
  6812. * c-common.h (record_types_used_by_current_var_decl): Declare ...
  6813. * c-common.c (record_types_used_by_current_var_decl): ... new
  6814. function.
  6815. * c-decl.c (finish_decl): Record the types used by the global
  6816. variable declaration we've just parsed.
  6817. * dwarf2out.c (premark_used_types): Insert a new line between
  6818. comment and function.
  6819. (premark_used_types_helper): Fix comment.
  6820. (premark_types_used_by_global_vars_helper,
  6821. premark_types_used_by_global_vars): New functions.
  6822. (prune_unused_types): Do not prune types used by global variables.
  6823. 2009-09-23 Richard Guenther <rguenther@suse.de>
  6824. * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
  6825. produced for bigendian targets with promoted subregs.
  6826. 2009-09-23 Richard Guenther <rguenther@suse.de>
  6827. * value-prof.c (gimple_ic): Purge old EH edges only after building
  6828. the new ones.
  6829. 2009-09-23 Nick Clifton <nickc@redhat.com>
  6830. * config/arc/arc.c (arc_trampoline_init): Fix typo.
  6831. 2009-09-23 Jakub Jelinek <jakub@redhat.com>
  6832. PR bootstrap/41405
  6833. * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
  6834. PR bootstrap/41436
  6835. * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
  6836. on non-nested functions.
  6837. 2009-09-23 Jakub Jelinek <jakub@redhat.com>
  6838. Jan Hubicka <jh@suse.cz>
  6839. * dwarf2out.c (loc_list_plus_const): Only define if
  6840. DWARF2_DEBUGGING_INFO.
  6841. (address_of_int_loc_descriptor): Likewise.
  6842. PR debug/41411
  6843. * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
  6844. 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
  6845. PR c/39779
  6846. * c-typeck.c (build_binary_op) <short_shift>: Check that integer
  6847. constant is more than zero.
  6848. 2009-09-23 Alan Modra <amodra@bigpond.net.au>
  6849. PR target/40473
  6850. * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
  6851. call final to emit non-scheduled prologue, instead insert at entry.
  6852. 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
  6853. Joseph S. Myers <joseph@codesourcery.com>
  6854. * doc/install.texi (*-*-freebsd*): Add proper format codes.
  6855. 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
  6856. Rafael Avila de Espindola <espindola@google.com>
  6857. * gengtype.c (is_file_equal): New function.
  6858. (close_output_files): Use is_file_equal. Free of->buf.
  6859. 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
  6860. Rafael Avila de Espindola <espindola@google.com>
  6861. * gengtype.c (write_types, write_local): Add the output_header
  6862. argument. Update all callers.
  6863. 2009-09-22 Dodji Seketeli <dodji@redhat.com>
  6864. * dwarf2out.c (template_parameter_pack_die,
  6865. gen_formal_parameter_pack_die ): New functions.
  6866. (make_ith_pack_parameter_name): Remove this function.
  6867. (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
  6868. DW_TAG_formal_parameter_pack.
  6869. (gen_generic_params_dies): Represent each template parameter pack
  6870. by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
  6871. represented by usual DW_TAG_template_*_parameter DIEs that are
  6872. children of the DW_TAG_template_parameter_pack element DIE.
  6873. (generic_parameter_die): This doesn't deal with parameter pack
  6874. names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
  6875. of parameter pack DIEs.
  6876. (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
  6877. in certain cases, e.g. for pack elements.
  6878. (gen_formal_types_die, gen_decl_die): Adjust usage of
  6879. gen_formal_parameter_die.
  6880. (gen_subprogram_die): Represent each function parameter pack by a
  6881. DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
  6882. represented by usual DW_TAG_formal_parameter DIEs that are children
  6883. of the DW_TAG_formal_parameter_pack DIE. Remove references to
  6884. ____builtin_va_alist decls as no part of the compiler uses those
  6885. anymore.
  6886. * langhooks.h (struct lang_hooks_for_decls): Add
  6887. function_parm_expanded_from_pack_p, get_generic_function_decl
  6888. and function_parameter_pack_p hooks. Fix comment for
  6889. get_innermost_generic_parms hook.
  6890. * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
  6891. LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
  6892. macros and use them to initialize lang_hook.
  6893. 2009-09-22 Richard Henderson <rth@redhat.com>
  6894. * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
  6895. (TRAMPOLINE_ADJUST_ADDRESS): Poison.
  6896. * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
  6897. on TRAMPOLINE_TEMPLATE.
  6898. (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
  6899. TRAMPOLINE_ADJUST_ADDRESS.
  6900. * targhooks.c (default_asm_trampoline_template): Remove.
  6901. (default_trampoline_adjust_address): Remove.
  6902. (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
  6903. * targhooks.h: Update decls.
  6904. 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
  6905. * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
  6906. * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
  6907. * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
  6908. 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
  6909. PR debug/41295
  6910. * reload1.c (reload): Reset debug insns with pseudos without
  6911. equivalences.
  6912. 2009-09-22 Janis Johnson <janis187@us.ibm.com>
  6913. * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
  6914. unconditional true for decimal float modes.
  6915. * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
  6916. * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
  6917. 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
  6918. * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
  6919. Enable a new case for __FreeBSD__ >= 7.
  6920. * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
  6921. * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
  6922. * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
  6923. and USE_LD_AS_NEEDED.
  6924. * doc/install.texi (*-*-freebsd*): Update target information.
  6925. 2009-09-22 Richard Guenther <rguenther@suse.de>
  6926. PR middle-end/41395
  6927. * tree-dfa.c (get_ref_base_and_extent): Handle trailing
  6928. arrays really properly.
  6929. 2009-09-22 Richard Henderson <rth@redhat.com>
  6930. PR target/41246
  6931. * target.h (struct gcc_target): Add asm_out.trampoline_template,
  6932. calls.static_chain, calls.trampoline_init,
  6933. calls.trampoline_adjust_address.
  6934. * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  6935. (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
  6936. (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
  6937. * builtins.c (expand_builtin_setjmp_receiver): Use
  6938. targetm.calls.static_chain; only clobber registers.
  6939. (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
  6940. set up memory attributes properly for the trampoline block.
  6941. (expand_builtin_adjust_trampoline): Use
  6942. targetm.calls.trampoline_adjust_address.
  6943. * calls.c (prepare_call_address): Add fndecl argument. Use
  6944. targetm.calls.static_chain.
  6945. * df-scan.c (df_need_static_chain_reg): Remove.
  6946. (df_get_entry_block_def_set): Use targetm.calls.static_chain;
  6947. consolodate static chain handling.
  6948. * doc/tm.texi: Document new hooks.
  6949. * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
  6950. (init_emit_regs): Don't initialize them.
  6951. * expr.h (prepare_call_address): Update decl.
  6952. * final.c (profile_function): Use targetm.calls.static_chain.
  6953. * function.c (expand_function_start): Likewise.
  6954. * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
  6955. * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
  6956. only clobber registers.
  6957. * targhooks.c (default_static_chain): New.
  6958. (default_asm_trampoline_template, default_trampoline_init): New.
  6959. (default_trampoline_adjust_address): New.
  6960. * targhooks.h: Declare them.
  6961. * varasm.c (assemble_trampoline_template): Use
  6962. targetm.asm_out.trampoline_template. Make the memory block const
  6963. and set its size.
  6964. * config/alpha/alpha.c (alpha_trampoline_init): Rename from
  6965. alpha_initialize_trampoline. Make static. Merge VMS parameter
  6966. differences into the TARGET_ABI_OPEN_VMS code block.
  6967. (TARGET_TRAMPOLINE_INIT): New.
  6968. * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
  6969. (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
  6970. * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
  6971. (INITIALIZE_TRAMPOLINE): Remove.
  6972. * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
  6973. (TRAMPOLINE_TEMPLATE): Merge with ...
  6974. (INITIALIZE_TRAMPOLINE): ... this and move ...
  6975. * config/arc/arc.c (arc_trampoline_init): ... here.
  6976. (TARGET_TRAMPOLINE_INIT): New.
  6977. * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  6978. (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
  6979. (arm_asm_trampoline_template): New.
  6980. (arm_trampoline_init, arm_trampoline_adjust_address): New.
  6981. * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
  6982. THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
  6983. code to arm_asm_trampoline_template.
  6984. (TRAMPOLINE_ADJUST_ADDRESS): Move code to
  6985. arm_trampoline_adjust_address.
  6986. (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
  6987. adjust for target hook parameters.
  6988. * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
  6989. Remove.
  6990. * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
  6991. * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
  6992. (bfin_trampoline_init): Rename from initialize_trampoline;
  6993. make static; update for target hook parameters.
  6994. (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
  6995. * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
  6996. bfin_asm_trampoline_template.
  6997. (INITIALIZE_TRAMPOLINE): Remove.
  6998. * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
  6999. TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
  7000. cris_trampoline_init): New.
  7001. * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
  7002. cris_asm_trampoline_template.
  7003. (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
  7004. adjust for target hook parameters.
  7005. * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
  7006. * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
  7007. TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
  7008. fr30_trampoline_init): New.
  7009. * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
  7010. fr30_asm_trampoline_template.
  7011. (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
  7012. adjust for target hook parameters.
  7013. * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
  7014. (frv_trampoline_init): Rename from frv_initialize_trampoline;
  7015. make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
  7016. * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
  7017. * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
  7018. * config/h8300/h8300.c (h8300_trampoline_init): New.
  7019. (TARGET_TRAMPOLINE_INIT): New.
  7020. * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
  7021. to h8300_trampoline_init and adjust for hook parameters.
  7022. * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
  7023. * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
  7024. (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
  7025. make static; adjust for hook parameters.
  7026. * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
  7027. * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  7028. (TARGET_TRAMPOLINE_INIT): New.
  7029. (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
  7030. * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
  7031. iq2000_asm_trampoline_template.
  7032. (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
  7033. (TRAMPOLINE_CODE_SIZE): New.
  7034. (TRAMPOLINE_SIZE): Use it.
  7035. (TRAMPOLINE_ALIGNMENT): Follow Pmode.
  7036. * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
  7037. * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
  7038. (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
  7039. adjust for hook parameters.
  7040. * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
  7041. * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
  7042. (m32r_trampoline_init): New.
  7043. * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
  7044. m32r_trampoline_init.
  7045. * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
  7046. (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
  7047. make static; update for hook parameters.
  7048. * config/m68hc11/m68hc11-protos.h: Update.
  7049. * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
  7050. * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  7051. (TARGET_TRAMPOLINE_INIT): New.
  7052. (mcore_function_value): Fix typo.
  7053. (mcore_asm_trampoline_template, mcore_trampoline_init): New.
  7054. * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
  7055. to mcore_asm_trampoline_template.
  7056. (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
  7057. * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
  7058. * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
  7059. (mep_trampoline_init): Rename from mep_init_trampoline; make static;
  7060. update for hook parameters.
  7061. * config/mep/mep-protos.h (mep_init_trampoline): Remove.
  7062. * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
  7063. mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
  7064. mips_trampoline_init): New.
  7065. * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
  7066. mips_asm_trampoline_template.
  7067. (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
  7068. update for hook parameters.
  7069. * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  7070. (TARGET_TRAMPOLINE_INIT): New.
  7071. (mmix_trampoline_size): Remove.
  7072. (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
  7073. make static. Remove out-of-date tetra vs octa comment.
  7074. (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
  7075. make static; update for hook parameters.
  7076. * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
  7077. (INITIALIZE_TRAMPOLINE): Remove.
  7078. (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
  7079. (TRAMPOLINE_ALIGNMENT): New.
  7080. * gcc/config/mmix/mmix-protos.h: Update.
  7081. * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
  7082. mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
  7083. mn10300_trampoline_init): New.
  7084. * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
  7085. mn10300_asm_trampoline_template.
  7086. (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
  7087. * config/moxie/moxie.c (moxie_static_chain,
  7088. moxie_asm_trampoline_template, moxie_trampoline_init,
  7089. TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
  7090. TARGET_TRAMPOLINE_INIT): New.
  7091. * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
  7092. moxie_trampoline_init.
  7093. (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
  7094. (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
  7095. * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
  7096. pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
  7097. pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
  7098. pa_trampoline_adjust_address): New.
  7099. * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
  7100. pa_asm_trampoline_template.
  7101. (TRAMPOLINE_ALIGNMENT): New.
  7102. (TRAMPOLINE_CODE_SIZE): Move to pa.c.
  7103. (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
  7104. adjust for hook parameters.
  7105. (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
  7106. * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
  7107. (TARGET_TRAMPOLINE_INIT): New.
  7108. * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
  7109. (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
  7110. * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
  7111. * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
  7112. * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
  7113. (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
  7114. make static; adjust parameters for the hook.
  7115. * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
  7116. * config/s390/s390.c (s390_asm_trampoline_template): Rename from
  7117. s390_trampoline_template; make static.
  7118. (s390_trampoline_init): Rename from s390_initialize_trampoline;
  7119. make static; adjust for target hook.
  7120. (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
  7121. * config/s390/s390-protos.h: Remove trampoline decls.
  7122. * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
  7123. (TRAMPOLINE_TEMPLATE): Remove.
  7124. (TRAMPOLINE_ALIGNMENT): New.
  7125. * config/score/score-protos.h (score_initialize_trampoline): Remove.
  7126. * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  7127. (TARGET_TRAMPOLINE_INIT): New.
  7128. (score_asm_trampoline_template): New.
  7129. (score_trampoline_init): Rename from score_initialize_trampoline;
  7130. make static; adjust for hook parameters.
  7131. * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
  7132. score[37]_asm_trampoline_template.
  7133. (INITIALIZE_TRAMPOLINE): Remove.
  7134. * config/score/score3.c (score3_asm_trampoline_template): New.
  7135. (score3_trampoline_init): Rename from score3_initialize_trampoline;
  7136. adjust for target hook.
  7137. * config/score/score7.c (score7_asm_trampoline_template): New.
  7138. (score7_trampoline_init): Rename from score7_initialize_trampoline;
  7139. adjust for target hook.
  7140. * config/score/score3.h, config/score/score7.h: Update.
  7141. * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
  7142. * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
  7143. (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
  7144. (sh_trampoline_init): Rename from sh_initialize_trampoline;
  7145. make static; adjust for target hook parameters.
  7146. (sh_trampoline_adjust_address): New.
  7147. * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
  7148. (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
  7149. * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
  7150. (sparc32_initialize_trampoline): Rename from
  7151. sparc_initialize_trampoline; make static; replace tramp parameter
  7152. with m_tramp and update memory accesses.
  7153. (sparc64_initialize_trampoline): Similarly.
  7154. (sparc_trampoline_init): New.
  7155. * config/sparc/sparc-protos.h: Remove trampoline decls.
  7156. * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
  7157. * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
  7158. * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
  7159. (array_to_constant): Make ARR parameter const.
  7160. (spu_trampoline_init): Rename from spu_initialize_trampoline;
  7161. make static; update for hook parameters.
  7162. * config/spu/spu-protos.h: Update decls.
  7163. * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
  7164. * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
  7165. from xstormy16_initialize_trampoline; make static; update for
  7166. hook parameters.
  7167. (TARGET_TRAMPOLINE_INIT): New.
  7168. * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
  7169. * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  7170. (TARGET_TRAMPOLINE_INIT): New.
  7171. (v850_can_eliminate): Make static.
  7172. (v850_asm_trampoline_template, v850_trampoline_init): New.
  7173. * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
  7174. v850_asm_trampoline_template.
  7175. (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
  7176. and adjust for target hook parameters.
  7177. * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  7178. (TARGET_TRAMPOLINE_INIT): New.
  7179. (vax_asm_trampoline_template, vax_trampoline_init): New.
  7180. * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
  7181. vax_asm_trampoline_template.
  7182. (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
  7183. * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
  7184. (TARGET_TRAMPOLINE_INIT): New.
  7185. (xtensa_asm_trampoline_template): Rename from
  7186. xtensa_trampoline_template; make static.
  7187. (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
  7188. make static; update for hook parameters.
  7189. * config/xtensa/xtensa-protos.h: Remove trampoline decls.
  7190. * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
  7191. (INITIALIZE_TRAMPOLINE): Remove.
  7192. * config/i386/i386.c (ix86_function_regparm): Do not issue an
  7193. error for nested functions with regparm=3.
  7194. (ix86_compute_frame_layout): Adjust frame pointer offset for
  7195. ix86_static_chain_on_stack.
  7196. (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
  7197. (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
  7198. don't reset to UNITS_PER_WORD.
  7199. (ix86_emit_leave): Adjust ix86_cfa_state.
  7200. (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
  7201. (ix86_static_chain): New.
  7202. (ix86_trampoline_init): Rename from x86_initialize_trampoline;
  7203. make static; update for target hook parameters; use ix86_static_chain.
  7204. (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
  7205. * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
  7206. (INITIALIZE_TRAMPOLINE): Remove.
  7207. (TRAMPOLINE_SIZE): Use 24 for 64-bit.
  7208. (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
  7209. to the end. Add static_chain_on_stack.
  7210. (ix86_static_chain_on_stack): New.
  7211. * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
  7212. (m68k_output_mi_thunk): Don't use static_chain_rtx.
  7213. (m68k_trampoline_init): New.
  7214. * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
  7215. m68k_trampoline_init and adjust for hook parameters.
  7216. * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
  7217. (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
  7218. 2009-09-22 Jakub Jelinek <jakub@redhat.com>
  7219. * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
  7220. for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
  7221. * reload1.c (reload): Call wrap_constant when substituting
  7222. reg for equiv inside of DEBUG_INSNs.
  7223. PR bootstrap/41405
  7224. * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
  7225. add_call_src_coords_attributes, add_high_low_attributes,
  7226. gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
  7227. gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
  7228. dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
  7229. when -gdwarf-2 -gstrict-dwarf.
  7230. (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
  7231. -gdwarf-[23] -gstrict-dwarf.
  7232. (address_of_int_loc_descriptor, loc_descriptor,
  7233. loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
  7234. DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
  7235. * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
  7236. 2009-09-22 Richard Guenther <rguenther@suse.de>
  7237. PR tree-optimization/41428
  7238. * tree-ssa-ccp.c (ccp_fold_stmt): New function.
  7239. (ccp_finalize): Pass it to substitute_and_fold.
  7240. 2009-09-22 Richard Guenther <rguenther@suse.de>
  7241. * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
  7242. (substitute_and_fold): Adjust prototype.
  7243. * tree-vrp.c (vrp_evaluate_conditional): Make static.
  7244. (simplify_stmt_using_ranges): Likewise.
  7245. (fold_predicate_in): Move here from tree-ssa-propagate.c.
  7246. (vrp_fold_stmt): New function.
  7247. (vrp_finalize): Pass it to substitute_and_fold.
  7248. * tree-flow.h (vrp_evaluate_conditional): Remove.
  7249. (simplify_stmt_using_ranges): Likewise.
  7250. * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
  7251. * tree-ssa-copy.c (fini_copy_prop): Likewise.
  7252. * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
  7253. member.
  7254. (fold_predicate_in): Move to tree-vrp.c.
  7255. (substitute_and_fold): Use the callback instead of calling into
  7256. tree-vrp.c functions directly.
  7257. 2009-09-22 Jakub Jelinek <jakub@redhat.com>
  7258. * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
  7259. comparison warning on rs6000.
  7260. PR middle-end/41429
  7261. * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
  7262. GIMPLE_EH_MUST_NOT_THROW cleanup.
  7263. (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
  7264. 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
  7265. PR middle-end/41260
  7266. * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
  7267. * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
  7268. LIB_SPEC for darwin10 and later since it always uses the unwinder in
  7269. libSystem which is derived from the gcc 4.2.1 unwinder.
  7270. 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
  7271. PR middle-end/41357
  7272. * varasm.c (default_encode_section_info): Copy TLS model into
  7273. sym_ref flags regardless of backend support for TLS, for all
  7274. model types except TLS_MODEL_EMULATED.
  7275. 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
  7276. PR bootstrap/41404
  7277. * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
  7278. we can handle it correctly.
  7279. 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
  7280. * doc/install.texi (os2): Remove section.
  7281. 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
  7282. * doc/standards.texi (Objective-C): Adjust two URLs.
  7283. 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
  7284. * tree-tailcall.c (process_assignment): Don't check if a
  7285. multiplication or an addition are already present.
  7286. (find_tail_calls): Combine multiple additions and multiplications.
  7287. (adjust_accumulator_values): Emit accumulators.
  7288. 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
  7289. * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
  7290. xmm register restore.
  7291. 2009-09-21 Jan Hubicka <jh@suse.cz>
  7292. * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
  7293. (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
  7294. restore at the end.
  7295. 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
  7296. * stor-layout.c (layout_type): Remove obsolete code.
  7297. 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
  7298. PR middle-end/41395
  7299. * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
  7300. 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  7301. PR middle-end/30789
  7302. * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
  7303. (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
  7304. (fold_builtin_2, do_mpc_arg1): Update accordingly.
  7305. * fold-const.c (const_binop): Likewise.
  7306. * real.h (do_mpc_arg2): Update prototype.
  7307. 2009-09-20 Jan Hubicka <jh@suse.cz>
  7308. * dwarf2out.c (add_const_value_attribute): Return true if successful.
  7309. (add_location_or_const_value_attribute): Rewrite using
  7310. loc_list_from_tree.
  7311. (tree_add_const_value_attribute): Return true if successful.
  7312. (tree_add_const_value_attribute_for_decl): Likewise.
  7313. * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
  7314. (loc_descriptor): ... here;
  7315. (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
  7316. (cst_pool_loc_descr): Break out from ...; do not reffer constant
  7317. pool items that was not marked for output.
  7318. (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
  7319. (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
  7320. (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
  7321. handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
  7322. IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
  7323. CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
  7324. DW_OP_stack_value to get address of items that are not available
  7325. as addresses.
  7326. (dw_loc_list): Handle single element lists correctly.
  7327. 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
  7328. Pascal Obry <obry@adacore.com>
  7329. * unwind-dw2-fde.c (classify_object_over_fdes):
  7330. Cast the constant 1 to _Unwind_Ptr.
  7331. (add_fdes): Likewise.
  7332. (linear_search_fdes): Likewise.
  7333. 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
  7334. * stor-layout.c (set_sizetype): Avoid useless type copy.
  7335. 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
  7336. * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
  7337. feature check.
  7338. (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
  7339. * configure, config.in: Regenerate.
  7340. * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
  7341. DW_EH_PE_absptr.
  7342. * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
  7343. (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
  7344. for global data if the output could be used in a shared library.
  7345. * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
  7346. to 0 if TARGET_WRITABLE_EH_FRAME.
  7347. 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
  7348. PR rtl-optimization/39886
  7349. * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
  7350. just when insn is equal to BB_END (bb).
  7351. 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
  7352. * config/mips/mips.opt (mrelax-pic-calls): New option.
  7353. * config/mips/mips.c (mips_strip_unspec_address): Move it up in
  7354. the file.
  7355. (mips_unspec_call): Change "unspec_call" expander into this.
  7356. (mips_strip_unspec_call): New function.
  7357. (mips_got_load): Call mips_unspec_call instead of
  7358. gen_unspec_call<mode>.
  7359. (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
  7360. MIPS_CALL.
  7361. (mips_cfg_in_reorg): New function.
  7362. (mips16_lay_out_constants): Use it to decide whether to call
  7363. CFG-aware insn splitting.
  7364. (r10k_insert_cache_barriers): Move CFG set-up code from here to
  7365. mips_reorg. Move DF set-up code from here ...
  7366. (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
  7367. from here.
  7368. (mips_reorg): Call mips_df_reorg instead of
  7369. r10k_insert_cache_barriers. Move CFG set-up code here from
  7370. r10k_insert_cache_barriers.
  7371. (mips_call_expr_from_insn): New function.
  7372. (mips_pic_call_symbol_from_set): Likewise.
  7373. (mips_find_pic_call_symbol): Likewise.
  7374. (mips_annotate_pic_call_expr): Likewise.
  7375. (mips_get_pic_call_symbol): Likewise.
  7376. (mips_annotate_pic_calls): Likewise.
  7377. (mips_override_options): Disable -mrelax-pic-calls unless PIC
  7378. calls are used.
  7379. (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
  7380. * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
  7381. * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
  7382. directive.
  7383. * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
  7384. (unspec_call<mode>): Remove it.
  7385. (sibcall_internal, sibcall_value_internal,
  7386. sibcall_value_multiple_internal, call_internal, call_split,
  7387. call_value_internal, call_value_split,
  7388. call_value_multiple_internal, call_value_multiple_split): Pass
  7389. SIZE_OPNO to MIPS_CALL.
  7390. (call_internal_direct, call_direct_split,
  7391. call_value_internal_direct, call_value_direct_split): Pass -1 as
  7392. SIZE_OPNO to MIPS_CALL.
  7393. * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
  7394. * configure: Regenerate.
  7395. * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
  7396. and -mno-relax-pic-calls.
  7397. (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
  7398. 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  7399. PR bootstrap/35619
  7400. * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
  7401. in the directory this rule is called from, rather than the
  7402. toplevel 'gcc' directory, to fix in-tree build.
  7403. 2009-09-19 Chris Demetriou <cgd@google.com>
  7404. PR preprocessor/28435:
  7405. * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
  7406. to cpplib that the preprocessor output is needed.
  7407. 2009-09-19 Jakub Jelinek <jakub@redhat.com>
  7408. * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
  7409. *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
  7410. *return_and_restore_fpregs_<mode>,
  7411. *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
  7412. PR bootstrap/41397
  7413. * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
  7414. instead of assuming it has always a REG inside of it.
  7415. 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
  7416. * config/freebsd.h: Update comment on types.
  7417. (WINT_TYPE): Define.
  7418. 2009-09-18 Jason Merrill <jason@redhat.com>
  7419. * c.opt: Add -fno-deduce-init-list.
  7420. 2009-09-18 Neil Vachharajani <nvachhar@google.com>
  7421. * value-prof.c (interesting_stringop_to_profile_p): Added output
  7422. argument to indicate which parameter is the size parameter.
  7423. * value-prof.c (gimple_stringop_fixed_value): Use
  7424. INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
  7425. * value-prof.c (gimple_stringops_transform): Update call sites to
  7426. INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
  7427. 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
  7428. PR target/38288
  7429. From David Binderman <dcb314@hotmail.com>:
  7430. * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
  7431. local variable f. Remove stale comments.
  7432. (ix86_compute_frame_layout): Remove useless local variable total_size.
  7433. Remove #if 0'd code.
  7434. (legitimate_address_p): Remove useless local variables
  7435. reason_rtx and reason.
  7436. (ix86_split_copysign_const): Remove useless local variable op1.
  7437. (scale_counter): Remove useless local variable piece_size_mask.
  7438. 2009-09-18 Jakub Jelinek <jakub@redhat.com>
  7439. * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
  7440. output decl.
  7441. 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
  7442. PR target/40913
  7443. * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
  7444. 2009-09-17 Jakub Jelinek <jakub@redhat.com>
  7445. * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
  7446. TYPE_STUB_DECL.
  7447. 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
  7448. * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
  7449. DW_OP_implicit_value even without dwarf_version 4.
  7450. 2009-09-17 Jan Hubicka <jh@suse.cz>
  7451. * dwarf2out.c: Include tree-pass.h and gimple.h.
  7452. (loc_list_plus_const): New function.
  7453. (loc_descriptor_from_tree_1): Rename to ...
  7454. (loc_descriptor_from_tree): ... remove original.
  7455. (loc_list_from_tree): New function.
  7456. (add_AT_location_description): Accept location list.
  7457. (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
  7458. (concatn_mem_loc_descriptor): Remove.
  7459. (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
  7460. returning NULL.
  7461. (secname_for_decl): Move up.
  7462. (hidden_reference_p): New function; break out from ...
  7463. (loc_by_refernece): ... here; move up.
  7464. (dw_loc_list): New function.
  7465. (single_element_loc_list): New function.
  7466. (single_element_loc_list_p): New function.
  7467. (add_loc_descr_to_each): New function.
  7468. (add_loc_list): New function.
  7469. (loc_descr_from_tree): Make wraper of loc_list_from_tree.
  7470. (loc_list_from_tree): Reroganized from loc_descr_from_tree;
  7471. add diagnostics why expansion failed.
  7472. (add_location_or_const_value_attribute): Support location lists.
  7473. (add_bound_info): Likewise.
  7474. (descr_info_loc): Update call of loc_descriptor_from_tree.
  7475. (gen_variable_die): Work on location lists.
  7476. * final.c (pass_final): Add dump file.
  7477. * Makefile.in (dwarf2out.o): Add new dependencies.
  7478. 2009-09-17 Janis Johnson <janis187@us.ibm.com>
  7479. PR c/41049
  7480. * real.c decimal_from_integer, decimal_integer_string): New.
  7481. (real_from_integer): Use them as special case for decimal float.
  7482. * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
  7483. (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
  7484. Do not append zero after the decimal point in string to convert.
  7485. 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
  7486. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
  7487. for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
  7488. 2009-09-17 Martin Jambor <mjambor@suse.cz>
  7489. * common.opt (fipa-sra): New switch.
  7490. * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
  7491. * timevar.def (TV_IPA_SRA): New timevar.
  7492. * params.def (ipa-sra-ptr-growth-factor): New parameter.
  7493. * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
  7494. * tree-sra.c: Include cgraph.c.
  7495. (enum sra_mode): Added SRA_MODE_EARLY_IPA.
  7496. (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
  7497. and grp_not_necessarilly_dereferenced.
  7498. (func_param_count): New variable.
  7499. (encountered_apply_args): New variable.
  7500. (bb_dereferences): New variable.
  7501. (final_bbs): New variable.
  7502. (no_accesses_representant): New variable.
  7503. (no_accesses_p): New function.
  7504. (dump_access): Dump the new fields.
  7505. (sra_initialize): Set encountered_apply_args to false.
  7506. (get_ssa_base_param): New function.
  7507. (mark_parm_dereference): New function.
  7508. (create_access): Caring for INIDRECT_REFs and different handling of
  7509. varialble length accesses in early IPA SRA. Store the stmt - a new
  7510. parameter - to the new access.
  7511. (build_access_from_expr_1): New parameter stmt, passed to
  7512. create_access. Handle INDIRECT_REFs.
  7513. (build_access_from_expr): Pass the current statement to
  7514. build_access_from_expr_1.
  7515. (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
  7516. passes.
  7517. (build_accesses_from_assign): Pass the current statement to
  7518. build_access_from_expr_1. Do not create assign links in IPA-SRA.
  7519. (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
  7520. final_bbs when necessary. Check for calls to __builtin_apply_args.
  7521. Fixup EH info if anythng was changed.
  7522. (is_unused_scalar_param): New function.
  7523. (ptr_parm_has_direct_uses): New function.
  7524. (find_param_candidates): New function.
  7525. (mark_maybe_modified): New function.
  7526. (analyze_modified_params): New function.
  7527. (propagate_dereference_distances): New function.
  7528. (dump_dereferences_table): New function.
  7529. (analyze_caller_dereference_legality): New function.
  7530. (unmodified_by_ref_scalar_representative): New function.
  7531. (splice_param_accesses): New function.
  7532. (decide_one_param_reduction): New function.
  7533. (enum ipa_splicing_result): New type.
  7534. (splice_all_param_accesses): New function.
  7535. (get_param_index): New function.
  7536. (turn_representatives_into_adjustments): New function.
  7537. (analyze_all_param_acesses): New function.
  7538. (get_replaced_param_substitute): New function.
  7539. (get_adjustment_for_base): New function.
  7540. (replace_removed_params_ssa_names): New function.
  7541. (sra_ipa_reset_debug_stmts): New function.
  7542. (sra_ipa_modify_expr): New function.
  7543. (sra_ipa_modify_assign): New function.
  7544. (convert_callers): New function.
  7545. (modify_function): New function.
  7546. (ipa_sra_preliminary_function_checks): New function.
  7547. (ipa_early_sra): New function.
  7548. (ipa_early_sra_gate): New function.
  7549. (pass_early_ipa_sra): New variable.
  7550. * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
  7551. 2009-09-17 Michael Matz <matz@suse.de>
  7552. PR middle-end/41347
  7553. * tree.c (build_type_attribute_qual_variant): Export.
  7554. * tree.h (build_type_attribute_qual_variant): Declare.
  7555. * tree-inline.c (remap_type_1): Use it to build variants with
  7556. the original qualifiers and attributes.
  7557. 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  7558. * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
  7559. without a fallthrough edge.
  7560. 2009-09-16 DJ Delorie <dj@redhat.com>
  7561. * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
  7562. chip and ignore the "fast_interrupt" attribute if so.
  7563. 2009-09-16 Richard Henderson <rth@redhat.com>
  7564. PR middle-end/41360
  7565. * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
  7566. barrier fix.
  7567. 2009-09-16 Richard Henderson <rth@redhat.com>
  7568. PR target/41246
  7569. * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
  7570. is set only if DECL_NO_STATIC_CHAIN is unset.
  7571. * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
  7572. (FOR_EACH_NEST_INFO): New.
  7573. (walk_all_functions): Use it.
  7574. (finalize_nesting_tree): Likewise.
  7575. (unnest_nesting_tree): Likewise.
  7576. (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
  7577. (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
  7578. (convert_gimple_call): Early out if gimple_call_chain already set.
  7579. (convert_all_function_calls): Iterate until no new functions
  7580. require a static chain.
  7581. (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
  7582. when building a trampoline. Use dump_function_to_file instead
  7583. of dump_function.
  7584. (lower_nested_functions): Open dump_file. Validate that decls
  7585. that have DECL_NO_STATIC_CHAIN from the front end don't have that
  7586. bit reset by this pass.
  7587. 2009-09-16 Michael Matz <matz@suse.de>
  7588. PR fortran/41212
  7589. * tree.h (struct tree_decl_common): Add decl_restricted_flag,
  7590. shorten decl_common_unused.
  7591. (DECL_RESTRICTED_P): New accessor.
  7592. * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
  7593. to disambiguate marked decls and restrict pointers.
  7594. 2009-09-16 Richard Henderson <rth@redhat.com>
  7595. PR middle-end/41360
  7596. * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
  7597. 2009-09-16 Jakub Jelinek <jakub@redhat.com>
  7598. * integrate.c (set_block_abstract_flags): Call
  7599. set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
  7600. 2009-09-16 Richard Guenther <rguenther@suse.de>
  7601. PR middle-end/34011
  7602. * tree-flow-inline.h (may_be_aliased): Compute readonly variables
  7603. as non-aliased.
  7604. 2009-09-16 DJ Delorie <dj@redhat.com>
  7605. Kaz Kojima <kkojima@gcc.gnu.org>
  7606. * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
  7607. (sh_expand_prologue): Update calls to output_stack_adjust.
  7608. (sh_expand_epilogue): Likewise.
  7609. 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
  7610. PR bootstrap/41349
  7611. * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
  7612. trying to limit the extent of searches in the insn stream.
  7613. 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
  7614. Jakub Jelinek <jakub@redhat.com>
  7615. PR target/41175
  7616. PR target/40677
  7617. * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
  7618. problem.
  7619. (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
  7620. SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
  7621. (rs6000_savres_strategy): Always save FP registers inline if the
  7622. target doesn't support hardware double-precision. Set the above
  7623. bits in return value when needed.
  7624. (rs6000_savres_routine_sym): Fix computation for cache selector.
  7625. Mark the generated symbol as a function. Rename exitp argument to
  7626. lr. Move code for determining the name of the symbol...
  7627. (rs6000_savres_routine_name): ...here. New function. Add cases for
  7628. getting the names right on AIX and 64-bit Linux.
  7629. (savres_routine_name): New variable.
  7630. (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
  7631. lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
  7632. on what the target routine uses as a base register. If savep && lr
  7633. describe saving of r0 into memory slot.
  7634. (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
  7635. line calls for AIX ABI.
  7636. (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
  7637. determine FP save/restore functions.
  7638. (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
  7639. frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
  7640. gen_addsi3.
  7641. (rs6000_emit_epilogue): Adjust computation of restore_lr.
  7642. Duplicate restoration of LR and execute the appropriate one
  7643. depending on whether GPRs are being restored inline. Set r11 from
  7644. offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
  7645. r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
  7646. Fix out of line calls for AIX ABI.
  7647. * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
  7648. New insn.
  7649. * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
  7650. register 11.
  7651. (*restore_gpregs_spe): Likewise.
  7652. (*return_and_restore_gpregs_spe): Likewise.
  7653. * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
  7654. Define to empty string unconditionally.
  7655. * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
  7656. Define to empty string unconditionally.
  7657. (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
  7658. !TARGET_64BIT.
  7659. 2009-09-15 Jan Hubicka <jh@suse.cz>
  7660. * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
  7661. * params.def (inline-insns-auto): Likewise.
  7662. 2009-09-15 Martin Jambor <mjambor@suse.cz>
  7663. * ipa-inline.c (estimate_function_body_sizes): Dump info about
  7664. individual statements only at TDF_DETAILS dump level. Format
  7665. source for 80 characters per line.
  7666. 2009-09-15 Christian Bruel <christian.bruel@st.com>
  7667. * regrename.c (do_replace): Update REG_DEAD notes.
  7668. 2009-09-15 Revital Eres <eres@il.ibm.com>
  7669. * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
  7670. * targhooks.c (default_builtin_support_vector_misalignment):
  7671. New builtin function.
  7672. * targhooks.h (default_builtin_support_vector_misalignment):
  7673. Declare.
  7674. * target.h (builtin_support_vector_misalignment):
  7675. New field in struct gcc_target.
  7676. * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
  7677. new builtin function.
  7678. * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
  7679. Define.
  7680. * config/rs6000/rs6000.c
  7681. (rs6000_builtin_support_vector_misalignment): New function.
  7682. (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
  7683. 2009-09-15 Jie Zhang <jie.zhang@analog.com>
  7684. * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
  7685. instead of INSN_P.
  7686. (bfin_optimize_loop): Likewise.
  7687. (bfin_gen_bundles): Likewise.
  7688. (workaround_speculation): Likewise.
  7689. (find_load): Return NULL_RTX for debug_insn.
  7690. 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
  7691. * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
  7692. (sminsf3): Ditto.
  7693. 2009-09-14 DJ Delorie <dj@redhat.com>
  7694. * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
  7695. * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
  7696. VLIW mode.
  7697. 2009-09-14 Richard Henderson <rth@redhat.com>
  7698. Jakub Jelinek <jakub@redhat.com>
  7699. * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
  7700. * cfgbuild.c (make_edges): Handle asm goto.
  7701. * cfglayout.c (fixup_reorder_chain): Likewise.
  7702. * cfgrtl.c (patch_jump_insn): Likewise.
  7703. * gimple-pretty-print.c (dump_gimple_asm): Likewise.
  7704. * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
  7705. (gimple_build_asm_vec): Add and use labels parameter.
  7706. (gimple_build_asm): Remove.
  7707. (walk_gimple_asm): Walk labels too.
  7708. * gimple.def (GIMPLE_ASM): Update docs.
  7709. * gimple.h: Update decls.
  7710. (struct gimple_statement_asm): Change nc to use unsigned char;
  7711. add nl member.
  7712. (gimple_asm_nlabels): New.
  7713. (gimple_asm_label_op, gimple_asm_set_label_op): New.
  7714. * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
  7715. into gimple_build_asm_vec.
  7716. * jump.c (mark_jump_label_asm): New.
  7717. (mark_jump_label): Use it.
  7718. (redirect_jump_1): Handle asm goto.
  7719. (invert_jump_1): Soft fail if X is null.
  7720. * recog.c (extract_asm_operands): New.
  7721. (asm_noperands): Use it; handle asm labels.
  7722. (decode_asm_operands): Use extract_asm_operands.
  7723. (asm_operand_ok): Properly handle empty string.
  7724. * reg-stack.c (get_asm_operands_in_out): Rename from
  7725. get_asm_operand_n_inputs; use extract_asm_operands; return both
  7726. inputs and outputs by reference; update all callers.
  7727. * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
  7728. * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
  7729. (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
  7730. (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
  7731. (extract_asm_operands): Declare.
  7732. * stmt.c (expand_asm_operands): Add and use labels parameter.
  7733. (check_unique_operand_names): Likewise.
  7734. (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
  7735. (expand_asm_stmt): Handle asm labels.
  7736. * tree-cfg.c (make_gimple_asm_edges): New.
  7737. (make_edges): Use it.
  7738. (cleanup_dead_labels): Handle asm labels.
  7739. (is_ctrl_altering_stmt): Likewise.
  7740. (gimple_redirect_edge_and_branch): Likewise.
  7741. * tree.def (ASM_EXPR): Add 5th operand.
  7742. * tree.h (ASM_LABELS): New.
  7743. (resolve_asm_operand_names): Update decl.
  7744. * c-parser.c (c_parser_asm_statement): Parse asm goto.
  7745. (c_parser_asm_goto_operands): New.
  7746. * c-tree.h (build_asm_expr): Update decl.
  7747. * c-typeck.c (build_asm_expr): Add and use labels parameter.
  7748. * doc/extend.texi: Document asm goto.
  7749. 2009-09-14 Richard Henderson <rth@redhat.com>
  7750. * except.h: Update declarations.
  7751. (struct pointer_map_t): Forward declare.
  7752. (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
  7753. (struct eh_landing_pad_d, eh_landing_pad): New.
  7754. (struct eh_catch_d, eh_catch): New.
  7755. (struct eh_region_d): Remove next_region_sharing_label, aka,
  7756. label, tree_label, landing_pad, post_landing_pad, resume,
  7757. may_contain_throw. Rename region_number to index. Remove
  7758. u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
  7759. Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
  7760. (VEC(eh_landing_pad,gc)): New.
  7761. (struct eh_status): Remove last_region_number. Add lp_array,
  7762. throw_stmt_table, ttype_data, ehspec_data.
  7763. (ehr_next, FOR_ALL_EH_REGION_AT): New.
  7764. (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
  7765. * except.c (lang_protect_cleanup_actions): Return tree.
  7766. (struct ehl_map_entry): Remove.
  7767. (init_eh_for_function): Push zero entries for region and lp_array.
  7768. (gen_eh_region): Add to region_array immediately.
  7769. (gen_eh_region_catch): Operate on eh_catch objects.
  7770. (gen_eh_landing_pad): New.
  7771. (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
  7772. (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
  7773. (get_eh_region_from_number, get_eh_region_from_number_fn): New.
  7774. (get_eh_landing_pad_from_number_fn): New.
  7775. (get_eh_landing_pad_from_number): New.
  7776. (get_eh_region_from_lp_number_fn): New.
  7777. (get_eh_region_from_lp_number): New.
  7778. (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
  7779. (get_exception_pointer, get_exception_filter): Remove.
  7780. (collect_eh_region_array, can_be_reached_by_runtime): Remove.
  7781. (current_function_has_exception_handlers): Simplify.
  7782. (bring_to_root, eh_region_replaceable_by_p): Remove.
  7783. (replace_region, hash_type_list, hash_eh_region): Remove.
  7784. (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
  7785. (label_to_region_map, num_eh_regions): Remove.
  7786. (get_next_region_sharing_label, must_not_throw_labels): Remove.
  7787. (find_exception_handler_labels): Remove.
  7788. (duplicate_eh_regions_0, find_prev_try): Remove.
  7789. (struct duplicate_eh_regions_data): New.
  7790. (duplicate_eh_regions_1): Rewrite.
  7791. (duplicate_eh_regions): Return a pointer map instead of an
  7792. integer offset.
  7793. (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
  7794. (redirect_eh_edge_to_label): Remove.
  7795. (eh_region_outermost): Rewrite using eh_region pointers
  7796. instead of integers.
  7797. (add_ttypes_entry): Update for ttype_data move to eh_status.
  7798. (add_ehspec_entry): Rewrite with VEC instead of varray.
  7799. (assign_filter_values): Likewise. Export.
  7800. (build_post_landing_pads, connect_post_landing_pads): Remove.
  7801. (dw2_build_landing_pads): Rewrite to use lp_array.
  7802. (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
  7803. (sjlj_assign_call_site_values): Rewrite to use lp_array.
  7804. (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
  7805. (sjlj_mark_call_sites): Update for landing pad numbers.
  7806. (finish_eh_generation): Rewrite.
  7807. (gate_handle_eh): Do nothing for no eh tree.
  7808. (pass_rtl_eh): Move up near finish_eh_generation.
  7809. (remove_eh_landing_pad): New.
  7810. (remove_eh_handler): Export.
  7811. (remove_eh_region, remove_eh_handler_and_replace): Remove.
  7812. (for_each_eh_label): Rewrite to use lp_array.
  7813. (make_reg_eh_region_note): New.
  7814. (make_reg_eh_region_note_nothrow_nononlocal): New.
  7815. (insn_could_throw_p): New.
  7816. (copy_reg_eh_region_note_forward): New.
  7817. (copy_reg_eh_region_note_backward): New.
  7818. (check_handled, add_reachable_handler): Remove.
  7819. (reachable_next_level, foreach_reachable_handler): Remove.
  7820. (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
  7821. (get_eh_region_and_lp_from_rtx): New.
  7822. (get_eh_region_from_rtx): New.
  7823. (can_throw_internal_1, can_throw_external_1): Remove.
  7824. (can_throw_internal): Use get_eh_region_from_rtx.
  7825. (can_throw_external): Use get_eh_region_and_lp_from_rtx.
  7826. (insn_nothrow_p, can_nonlocal_goto): New.
  7827. (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
  7828. (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
  7829. (add_action_record): Use VEC not varray.
  7830. (collect_one_action_chain): Update for eh_region changes.
  7831. (convert_to_eh_region_ranges): Make static. Use VEC not varray.
  7832. Use get_eh_region_and_lp_from_rtx.
  7833. (gate_convert_to_eh_region_ranges): New.
  7834. (pass_convert_to_eh_region_ranges): Use it.
  7835. (push_uleb128, push_sleb128): Use VEC not varray.
  7836. (output_one_function_exception_table): Likewise.
  7837. (dump_eh_tree): Update for eh_region changes.
  7838. (verify_eh_tree): Likewise.
  7839. (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
  7840. * tree-eh.c: Include target.h.
  7841. (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
  7842. Don't disallow GIMPLE_RESX; adjust argument check.
  7843. (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
  7844. (record_stmt_eh_region): Update for landing pad numbers;
  7845. generate a landing pad if necessary.
  7846. (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
  7847. (remove_stmt_from_eh_lp_fn): Similarly.
  7848. (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
  7849. Update for lp numbers; don't special case missing throw_stmt_table.
  7850. (lookup_expr_eh_lp): Similarly.
  7851. (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
  7852. (eh_seq, eh_region_may_contain_throw): New.
  7853. (struct leh_state): Add ehp_region.
  7854. (struct leh_tf_state): Remove eh_label.
  7855. (emit_post_landing_pad): New.
  7856. (emit_resx, emit_eh_dispatch): New.
  7857. (note_eh_region_may_contain_throw): New.
  7858. (frob_into_branch_around): Take eh_region not eh label;
  7859. emit eh code into eh_seq.
  7860. (honor_protect_cleanup_actions): Early exit for no actions. Don't
  7861. handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
  7862. lower_eh_must_not_throw. Emit code to eh_seq.
  7863. (lower_try_finally_nofallthru): Emit eh code to eh_seq.
  7864. (lower_try_finally_onedest): Likewise.
  7865. (lower_try_finally_copy): Likewise.
  7866. (lower_try_finally_switch): Likewise.
  7867. (lower_try_finally): Initialize ehp_region.
  7868. (lower_catch): Update for eh_catch objects.
  7869. (lower_eh_filter): Don't handle must_not_throw.
  7870. (lower_eh_must_not_throw): New.
  7871. (lower_cleanup): Don't set eh_label.
  7872. (lower_eh_constructs_2): Resolve eh builtins.
  7873. Handle GIMPLE_EH_MUST_NOT_THROW.
  7874. (lower_eh_constructs): Initialize eh_region_may_contain_throw.
  7875. Add eh_seq to the end of the function body.
  7876. (make_eh_dispatch_edges): New.
  7877. (make_eh_edge): Remove.
  7878. (make_eh_edges): Simplify for landing pads.
  7879. (redirect_eh_edge_1): New.
  7880. (redirect_eh_edge): Use it.
  7881. (redirect_eh_dispatch_edge): New.
  7882. (stmt_could_throw_p): Use a switch. Allow RESX.
  7883. (stmt_can_throw_external): Use lookup_stmt_eh_lp.
  7884. (stmt_can_throw_internal): Likewise.
  7885. (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
  7886. (maybe_clean_or_replace_eh_stmt): Update for landing pads.
  7887. (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
  7888. (gate_refactor_eh): New.
  7889. (pass_refactor_eh): Use it.
  7890. (lower_resx, execute_lower_resx, pass_lower_resx): New.
  7891. (lower_eh_dispatch, execute_lower_eh_dispatch): New.
  7892. (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
  7893. (remove_unreachable_handlers): Rename from
  7894. tree_remove_unreachable_handlers; rewrite for landing pads;
  7895. call remove_eh_handler directly.
  7896. (remove_unreachable_handlers_no_lp): New.
  7897. (unsplit_eh, unsplit_all_eh): New.
  7898. (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
  7899. (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
  7900. (cleanup_empty_eh_unsplit): New.
  7901. (cleanup_empty_eh): Rewrite.
  7902. (cleanup_all_empty_eh): New.
  7903. (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
  7904. handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
  7905. (gate_cleanup_eh): New.
  7906. (pass_cleanup_eh): Use it.
  7907. (verify_eh_edges): Move later in file. Expect one EH edge.
  7908. (verify_eh_dispatch_edge): New.
  7909. * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
  7910. (gtype-desc.o): Add TARGET_H.
  7911. (tree.o): Use EXCEPT_H, not except.h.
  7912. (cfgbuild.o): Add EXPR_H.
  7913. (GTFILES): Add vecprim.h.
  7914. * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
  7915. BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
  7916. * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
  7917. BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
  7918. * calls.c (emit_call_1): Use make_reg_eh_region_note.
  7919. * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
  7920. calls to can_throw_internal.
  7921. (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
  7922. (make_edges): Don't handle RESX; use can_nonlocal_goto.
  7923. * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
  7924. (expand_gimple_stmt): Use make_reg_eh_region_note.
  7925. (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
  7926. (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
  7927. or find_exception_handler_labels.
  7928. * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
  7929. there is exacly one EH edge. Use can_nonlocal_goto and
  7930. can_throw_internal.
  7931. * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
  7932. (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
  7933. * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
  7934. * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
  7935. * dce.c (deletable_insn_p_1): Don't test may_trap_p.
  7936. (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
  7937. * dse.c (scan_insn): Use insn_could_throw_p.
  7938. * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
  7939. * expr.c (expand_expr_real): Use make_reg_eh_region_note.
  7940. (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
  7941. * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
  7942. EXC_PTR_EXPR or FILTER_EXPR.
  7943. (tree_expr_nonzero_warnv_p): Likewise.
  7944. * function.h: Include vecprim.h, not varray.h
  7945. (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
  7946. move ttype_data and ehspec_data members to struct eh_status; change
  7947. action_record_data member to a VEC.
  7948. * gcse.c (hash_scan_set): Use can_throw_internal.
  7949. * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
  7950. * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
  7951. * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
  7952. (block_may_fallthru): Don't handle RESX_EXPR.
  7953. * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
  7954. (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
  7955. (dump_gimple_stmt): Dump landing pad information with TDF_EH;
  7956. handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
  7957. * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
  7958. GIMPLE_EH_DISPATCH, GIMPLE_RESX.
  7959. (gimple_size): Likewise.
  7960. (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
  7961. (gimple_build_resx): Use gimple_build_with_ops.
  7962. (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
  7963. (is_gimple_val): Likewise.
  7964. (is_gimple_stmt): Remove RESX_EXPR.
  7965. * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
  7966. (GIMPLE_RESX): Reorder with other EH constructs.
  7967. * gimple.h (struct gimple_statement_eh_mnt): New.
  7968. (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
  7969. (gimple_eh_filter_must_not_throw): Remove.
  7970. (gimple_eh_filter_set_must_not_throw): Remove.
  7971. (gimple_eh_must_not_throw_fndecl): New.
  7972. (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
  7973. (is_gimple_resx): New.
  7974. * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
  7975. Don't copy EH_FILTER_MUST_NOT_THROW.
  7976. * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
  7977. * ipa-inline.c (estimate_function_body_sizes): Don't try to
  7978. handle must_not_throw_labels specially.
  7979. * ipa-pure-const.c (check_call): Update debug statement for LP.
  7980. * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
  7981. * ipa-utils.c (get_base_var): Likewise.
  7982. * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
  7983. * lower-subreg.c (move_eh_region_note): Remove.
  7984. (resolve_simple_move): Use copy_reg_eh_region_note_forward.
  7985. * omp-low.c (new_omp_context): Update for eh_lp_nr.
  7986. (create_task_copyfn): Likewise.
  7987. (maybe_catch_exception): Use gimple_build_eh_filter.
  7988. * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
  7989. REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
  7990. * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
  7991. and pass_lower_resx.
  7992. * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
  7993. * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
  7994. can_throw_internal, can_nonlocal_goto.
  7995. * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
  7996. copy_reg_eh_region_note_forward.
  7997. (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
  7998. (emit_output_reload_insns): Likewise.
  7999. (copy_eh_notes): Remove.
  8000. * rtl.def (RESX): Remove.
  8001. * rtl.h: Update declarations.
  8002. * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
  8003. * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
  8004. (update_eh_label): Remove.
  8005. (cleanup_dead_labels_eh): New.
  8006. (cleanup_deal_labels): Use it instead of update_eh_label.
  8007. (gimple_merge_blocks): Update landing pad data structure when
  8008. removing a landing pad label.
  8009. (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
  8010. test; handle GIMPLE_EH_MUST_NOT_THROW.
  8011. (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
  8012. (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
  8013. (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
  8014. (verify_stmt): Likewise. Verify landing pads.
  8015. (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
  8016. (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
  8017. (struct move_stmt_d): Add eh_map.
  8018. (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
  8019. (move_stmt_r): Remap eh region numbers in builtin calls,
  8020. resx and eh_dispatch.
  8021. (move_block_to_fn): Remove eh_offset parameter. Use
  8022. maybe_duplicate_eh_stmt_fn.
  8023. (find_outermost_region_in_block): Operate on eh_region pointers
  8024. instead of region numbers.
  8025. (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
  8026. duplicate_eh_regions.
  8027. * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
  8028. test earlier. Disallow EH landing pads.
  8029. * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
  8030. * tree-flow.h: Update declarations.
  8031. (struct tree_ann_common_d): Replace rn with lp_nr.
  8032. * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
  8033. (remap_eh_region_nr, remap_eh_region_tree_nr): New.
  8034. (remap_gimple_stmt): Remap eh region numbers in builtin calls,
  8035. resx and eh_dispatch.
  8036. (copy_bb): Use maybe_duplicate_eh_stmt_fn.
  8037. (copy_edges_for_bb): Use make_eh_dispatch_edges.
  8038. (copy_cfg_body): Expect eh_map instead of eh_region_offset
  8039. from duplicate_eh_regions.
  8040. (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
  8041. update RESX; handle EH_DISPATCH.
  8042. (expand_call_inline): Set eh_lp_nr, not eh_region.
  8043. (maybe_inline_call_in_expr): Likewise.
  8044. * tree-inline.h (struct copy_body_data): Replace eh_region with
  8045. eh_lp_nr, eh_region_offset with eh_map.
  8046. * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
  8047. * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
  8048. * tree-pretty-print.c (dump_generic_node): Don't handle
  8049. EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
  8050. * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
  8051. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
  8052. EXC_PTR_EXPR, FILTER_EXPR.
  8053. * tree-ssa-operands.c (get_expr_operands): Likewise.
  8054. * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
  8055. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
  8056. (ao_ref_init_from_vn_reference): Likewise.
  8057. * tree-ssa-sink.c (statement_sink_location): Likewise.
  8058. * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
  8059. (mark_virtual_phi_result_for_renaming): Export. Tidy.
  8060. * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
  8061. EXC_PTR_EXPR, FILTER_EXPR.
  8062. (is_exception_related): Remove.
  8063. (compute_avail): Don't call it.
  8064. * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
  8065. * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
  8066. (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
  8067. (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
  8068. Build EH builtins.
  8069. (build_resx): Remove.
  8070. * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
  8071. * tree.h: Update declarations.
  8072. (EH_FILTER_MUST_NOT_THROW): Remove.
  8073. (struct tree_label_decl): Add eh_landing_pad_nr.
  8074. (EH_LANDING_PAD_NR): New.
  8075. * value-prof.c (gimple_ic): Tidy variable names. Update for
  8076. landing pad numbers.
  8077. (gimple_stringop_fixed_value): Tidy variable names. Assert
  8078. that neither call stmt can throw.
  8079. * vecprim.h (uchar): New.
  8080. (VEC(uchar,heap), VEC(uchar,gc)): New.
  8081. * c-common.c (c_define_builtins): Update call to
  8082. build_common_builtin_nodes.
  8083. * c-parser.c (c_parse_file): Don't call
  8084. default_init_unwind_resume_libfunc.
  8085. 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
  8086. * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
  8087. (mips_cprestore_address_p): Likewise.
  8088. (mips_save_gp_to_cprestore_slot): Likewise.
  8089. (mips_restore_gp): Rename to...
  8090. (mips_restore_gp_from_cprestore_slot): ...this.
  8091. (mips_must_initialize_gp_p): Declare.
  8092. (mips_emit_save_slot_move): Likewise.
  8093. (mips_output_load_label): Return nothing.
  8094. (mips_eh_uses): Declare.
  8095. * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
  8096. (TARGET_CPRESTORE_DIRECTIVE): New macro.
  8097. (TARGET_ABSOLUTE_JUMPS): Likewise.
  8098. (EH_USES): Likewise.
  8099. (FIRST_PSEUDO_REGISTER): Update comment.
  8100. (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
  8101. (MIPS_CALL): ...here.
  8102. (REGISTER_NAMES): Add $cprestore.
  8103. * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
  8104. Add load_label_length, has_inflexible_gp_insn_p,
  8105. has_flexible_gp_insn_p, must_initialize_gp_p and
  8106. must_restore_gp_when_clobbered_p.
  8107. (mips_expand_call): Don't generate split instructions here.
  8108. (mips_split_call): Update the call to mips_restore_gp after
  8109. the above name change.
  8110. (mips16_cfun_returns_in_fpr_p): Move earlier in file.
  8111. (mips_find_gp_ref): New function.
  8112. (mips_insn_has_inflexible_gp_ref_p): Likewise.
  8113. (mips_cfun_has_inflexible_gp_ref_p): Likewise.
  8114. (mips_insn_has_flexible_gp_ref_p): Likewise.
  8115. (mips_cfun_has_flexible_gp_ref_p): Likewise.
  8116. (mips_function_has_gp_insn): Delete.
  8117. (mips_global_pointer): Drop the df_regs_ever_live_p check.
  8118. Use the new functions above. Only return INVALID_REGNUM
  8119. for TARGET_ABSOLUTE_JUMPS.
  8120. (mips_must_initialize_gp_p): New function.
  8121. (mips_get_cprestore_base_and_offset): New function, extracted from...
  8122. (mips_cprestore_slot): ...here. Take a bool parameter.
  8123. (mips_cfun_has_cprestore_slot_p): New function.
  8124. (mips_cprestore_address_p): Likewise.
  8125. (mips_save_gp_to_cprestore_slot): Likewise.
  8126. (mips_restore_gp): Rename to...
  8127. (mips_restore_gp_from_cprestore_slot): ...this. Assert
  8128. epilogue_completed. Update the call to mips_cprestore_slot.
  8129. Test cfun->machine->must_restore_gp_when_clobbered_p.
  8130. (mips_direct_save_slot_move_p): New function.
  8131. (mips_emit_save_slot_move): Likewise.
  8132. (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
  8133. of cfun->machine->global_pointer.
  8134. (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
  8135. (mips_save_reg): Use mips_emit_save_slot_move.
  8136. (mips_expand_prologue): Set must_initialize_gp_p.
  8137. Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
  8138. for all cprestore saves. Emit a use_cprestore instruction after
  8139. setting up the cprestore slot.
  8140. (mips_restore_reg): Use mips_emit_save_slot_move.
  8141. (mips_process_load_label): New function.
  8142. (mips_load_label_length): Likewise.
  8143. (mips_output_load_label): Don't return asm: output it here instead.
  8144. Use mips_process_load_label.
  8145. (mips_adjust_insn_length): Adjust the length of branch instructions
  8146. that have length MAX_PIC_BRANCH_LENGTH.
  8147. (mips_output_conditional_branch): Update the call to
  8148. mips_output_load_label. Assume the branch target is OPERANDS[0]
  8149. rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
  8150. (mips_output_order_conditional_branch): Swap the meaning of
  8151. OPERANDS[0] and OPERANDS[1].
  8152. (mips_variable_issue): Don't count ghost instructions.
  8153. (mips_expand_ghost_gp_insns): New function.
  8154. (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
  8155. (mips_output_mi_thunk): Set must_initialize_gp_p.
  8156. (mips_eh_uses): New function.
  8157. * config/mips/predicates.md (cprestore_save_slot_operand)
  8158. (cprestore_load_slot_operand): New predicates.
  8159. * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
  8160. (UNSPEC_MOVE_GP): Likewise.
  8161. (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
  8162. (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
  8163. (CPRESTORE_SLOT_REGNUM): New register.
  8164. (MAX_PIC_BRANCH_LENGTH): New constant.
  8165. (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
  8166. (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
  8167. branches. Fix commentary.
  8168. (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
  8169. Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
  8170. Change type to "ghost".
  8171. (loadgp_absolute_<mode>): Likewise.
  8172. (loadgp_rtp_<mode>): Likewise.
  8173. (copygp_mips16): Likewise.
  8174. (loadgp_blockage): Remove redundant mode attribute.
  8175. (potential_cprestore): New instruction.
  8176. (cprestore): Turn into an unspec set.
  8177. (use_cprestore): New instruction.
  8178. (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
  8179. (*branch_fp_inverted): Likewise.
  8180. (*branch_order<mode>): Likewise.
  8181. (*branch_order<mode>_inverted): Likewise.
  8182. (*branch_equality<mode>): Likewise.
  8183. (*branch_equality<mode>_inverted): Likewise.
  8184. (*branch_bit<bbv><mode>): Likewise.
  8185. (*branch_bit<bbv><mode>_inverted): Likewise.
  8186. (*branch_equality<mode>_mips16): Remove redundant mode.
  8187. (jump): Turn into a define_expand.
  8188. (*jump_absolute): New instruction.
  8189. (*jump_pic): Likewise.
  8190. (*jump_mips16): Rename previously-unnamed pattern. Remove
  8191. redundant mode attribute.
  8192. (restore_gp): Split on epilogue_completed rather than
  8193. reload_completed. Change type to "ghost".
  8194. (move_gp<mode>): New instruction.
  8195. * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
  8196. Remove redundant mode attribute.
  8197. * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
  8198. (bc1any4f, bc1any2t, bc1any2f): Likewise.
  8199. (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
  8200. 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
  8201. PR target/41210
  8202. * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
  8203. are returned in the same register (vs34 or v2) that Altivec vector
  8204. types are returned in.
  8205. (rs6000_libcall_value): Ditto.
  8206. PR target/41331
  8207. * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
  8208. instead of explicit addsi3/adddi3 calls.
  8209. (rs6000_split_multireg_move): Ditto.
  8210. (rs6000_emit_allocate_stack): Ditto.
  8211. (rs6000_emit_prologue): Ditto.
  8212. (rs6000_output_mi_thunk): Ditto.
  8213. * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
  8214. size is 64 bits if we can use 64-bit registers.
  8215. 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
  8216. * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
  8217. symbols.
  8218. From Jie Zhang <jie.zhang@analog.com>:
  8219. * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
  8220. save FP and RETS with saveall attribute.
  8221. (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
  8222. with saveall attribute.
  8223. * config/bfin/bfin.c (bfin_expand_builtin,
  8224. case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
  8225. operands.
  8226. From Jie Zhang <jie.zhang@analog.com>:
  8227. * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
  8228. before use in two places.
  8229. * config/bfin/bfin.md (AREG): Define mode iterator.
  8230. (reload_in, reload_out): Use mode iterator AREG.
  8231. 2009-09-14 Richard Guenther <rguenther@suse.de>
  8232. PR middle-end/41350
  8233. * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
  8234. EH personality path.
  8235. 2009-09-13 Richard Guenther <rguenther@suse.de>
  8236. Rafael Avila de Espindola <espindola@google.com>
  8237. * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
  8238. (LANG_HOOKS_EH_PERSONALITY): Likewise.
  8239. (LANG_HOOKS_INITIALIZER): Adjust.
  8240. (lhd_pass_through_t): Declare.
  8241. * langhooks.h (struct lang_hooks): Add eh_runtime_type and
  8242. eh_personality.
  8243. * langhooks.c (lhd_pass_through_t): New function.
  8244. * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
  8245. dwarf2out_begin_prologue): Use personality from current_function_decl.
  8246. * expr.h (get_personality_function): Declare.
  8247. * expr.c (get_personality_function): New function.
  8248. (build_personality_function): Likewise.
  8249. * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
  8250. (eh_personality_libfunc): Remove.
  8251. * optabs.c (build_libfunc_function): New function split out from ...
  8252. (init_one_libfunc): ... here.
  8253. * tree.h (DECL_FUNCTION_PERSONALITY): New.
  8254. (tree_function_decl): Add personality.
  8255. (lhd_gcc_personality): Declare.
  8256. (build_personality_function): Likewise.
  8257. * tree.c (gcc_eh_personality_decl): New.
  8258. (lhd_gcc_personality): New function.
  8259. * except.h (lang_eh_runtime_type): Remove.
  8260. (enum eh_personality_kind): New.
  8261. (build_personality_function): Declare.
  8262. (function_needs_eh_personality): Declare.
  8263. * except.c (lang_eh_runtime_type): Remove.
  8264. (function_needs_eh_personality): New function.
  8265. (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
  8266. (sjlj_emit_function_enter, output_function_exception_table):
  8267. Use personality from current_function_decl.
  8268. * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
  8269. * tree-inline.c (tree_can_inline_p): Do not inline across different
  8270. EH personalities.
  8271. (expand_call_inline): Likewise. Adjust the callers EH personality.
  8272. (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
  8273. * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
  8274. * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
  8275. (c-parser.o): Likewise
  8276. * c-tree.h (c_eh_initialized_p): Remove.
  8277. (c_maybe_initialize_eh): Likewise.
  8278. * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
  8279. (finish_decl): Don't call c_maybe_initialize_eh.
  8280. (c_eh_initialized_p): Remove.
  8281. (c_maybe_initialize_eh): Likewise.
  8282. * c-parser.c (c_parser_omp_construct): Likewise.
  8283. (c_parse_file): Initialize exception handling.
  8284. 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
  8285. * config.gcc (tm_file): Remove i386/biarch32.h
  8286. for i?86-w64-mingw* case.
  8287. (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
  8288. support.
  8289. * config.host: Set for x64 mingw the option
  8290. use_long_long_for_widest_fast_int to yes.
  8291. 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
  8292. * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
  8293. * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
  8294. (dbxout_begin_function): Likewise.
  8295. * final.c (dwarf2_debug_info_emitted_p): New predicate.
  8296. (final_start_function): Do not emit debug info if DECL_IGNORED_P is
  8297. set on the function.
  8298. (final_end_function): Likewise.
  8299. (final_scan_insn): Likewise.
  8300. (rest_of_handle_final): Likewise.
  8301. * varasm.c (assemble_start_function): Likewise.
  8302. * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
  8303. 2009-09-12 Jason Merrill <jason@redhat.com>
  8304. * dbgcnt.c (dbg_cnt_process_single_pair): constify.
  8305. * opts.c (common_handle_option): constify.
  8306. 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
  8307. * doc/install.texi (avr): Remove obsolete reference site.
  8308. 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
  8309. * doc/install.texi (Binaries): Adjust AIX link.
  8310. 2009-09-12 Akim Demaille <demaille@gostai.com>
  8311. * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
  8312. Use an imperative sentence.
  8313. 2009-09-11 Richard Henderson <rth@redhat.com>
  8314. * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
  8315. structure-name and has-tree-operands arguments; update all entries.
  8316. * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
  8317. update all entries.
  8318. * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
  8319. (gsstruct_code_size): New.
  8320. (gss_for_code_): New.
  8321. (gss_for_code): Remove.
  8322. (gimple_size): Rewrite using gsstruct_code_size.
  8323. (gimple_statement_structure): Move to gimple.h.
  8324. * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
  8325. (gss_for_code, gimple_statement_structure): New.
  8326. (gimple_ops): Use new arrays; tidy.
  8327. 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  8328. * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
  8329. operand to be a PLUS expression.
  8330. * config/pa/pa.c (pa_secondary_reload): Likewise.
  8331. 2009-09-11 Jakub Jelinek <jakub@redhat.com>
  8332. * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
  8333. * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
  8334. XEXP (in_rtx, 8).
  8335. 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
  8336. From Jie Zhang <jie.zhang@analog.com>:
  8337. * doc/extend.texi (node Function Attributes): Document l2
  8338. function attribute.
  8339. (node Blackfin Variable Attributes): Document l2 variable attributes.
  8340. 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
  8341. * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
  8342. to match the system compiler's configuration at inflection point.
  8343. Add comment to remark a remaining difference with system compiler.
  8344. * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
  8345. * configure: Regenerate.
  8346. 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
  8347. From Jie Zhang <jie.zhang@analog.com>:
  8348. * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
  8349. (bfin_handle_l2_attribute): New.
  8350. (bfin_attribute_table): Add l2 attribute.
  8351. 2009-09-11 Michael Matz <matz@suse.de>
  8352. PR middle-end/41275
  8353. * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
  8354. on the local_decls list.
  8355. 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
  8356. PR debug/41276
  8357. PR debug/41307
  8358. * cselib.c (cselib_expand_value_rtx_cb): Document callback
  8359. interface.
  8360. (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
  8361. for VALUEs, to implement the documented interface.
  8362. * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
  8363. Adjust for VALUEs and anything else, to implement the
  8364. documented interface.
  8365. 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
  8366. * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
  8367. with actual SPE/paired vector modes before using 64-bit alignment.
  8368. Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
  8369. 2009-09-10 DJ Delorie <dj@redhat.com>
  8370. * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
  8371. emitted.
  8372. * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
  8373. * config/mep/mep.c (mep_legitimate_constant_p): New.
  8374. * config/mep/mep-protos.h: Prototype it.
  8375. 2009-09-10 Richard Henderson <rth@redhat.com>
  8376. * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
  8377. 2009-09-10 Jason Merrill <jason@redhat.com>
  8378. * tree.c (chain_index): New fn.
  8379. * tree.h: Declare it.
  8380. 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  8381. * config/sol2-c.c (cmn_err_length_specs): Initialize
  8382. scalar_identity_flag.
  8383. 2009-09-10 Richard Henderson <rth@redhat.com>
  8384. * tree.h (struct tree_decl_common): Move align member earlier;
  8385. move label_decl_uid member ...
  8386. (struct tree_label_decl): ... here.
  8387. (LABEL_DECL_UID): Update to match.
  8388. * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
  8389. not TDF_DETAILS.
  8390. * tree-cfg.c (gimple_redirect_edge_and_branch): Do
  8391. gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
  8392. * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
  8393. dest_prev if the edge is complex.
  8394. * tree-cfg.c (is_ctrl_stmt): Use a switch.
  8395. * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
  8396. loop latch tests earlier.
  8397. * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
  8398. before GIMPLE_RETURN, not after its predecessor; insert
  8399. before GIMPLE_RESX.
  8400. * gimple-iterator.c (gimple_find_edge_insert_loc): Use
  8401. gimple_seq_empty_p to test for no PHI nodes.
  8402. * tree-cfg.c (split_critical_edges): Likewise.
  8403. * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
  8404. 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
  8405. * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
  8406. introduced by the VTA branch merge.
  8407. 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
  8408. * ira-conflicts.c: Use fputs or putc instead of fprintf
  8409. where appropriate.
  8410. * cfg.c: Ditto.
  8411. * toplev.c: Ditto.
  8412. * tree-switch-conversion.c: Ditto.
  8413. 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
  8414. * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
  8415. introduced by the VTA branch merge.
  8416. 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
  8417. Revert:
  8418. 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
  8419. PR rtl-optimization/39779
  8420. * expr.c (convert_modes): Return when mode == oldmode after
  8421. CONST_INTs are processed.
  8422. 2009-09-10 Nick Clifton <nickc@redhat.com>
  8423. * config/mep/mep.c (mep_encode_section_info): Copy weakness
  8424. attribute and referring decl when creating renamed symbol.
  8425. 2009-09-10 Richard Guenther <rguenther@suse.de>
  8426. PR middle-end/41257
  8427. * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
  8428. reachable nodes.
  8429. (cgraph_finalize_compilation_unit): Compute reachability
  8430. before emitting thunks. Properly process aliases before
  8431. possibly removing unreachable nodes.
  8432. 2009-09-10 Richard Guenther <rguenther@suse.de>
  8433. PR middle-end/41254
  8434. * tree.c (struct free_lang_data_d): Add worklist member.
  8435. (find_decls_types_r): Push onto the worklist instead of recursing.
  8436. Handle TREE_BINFOs properly.
  8437. (find_decls_types): New function wrapped around find_decls_types_r
  8438. to process the worklist.
  8439. (find_decls_types_in_eh_region): Use it.
  8440. (find_decls_types_in_node): Likewise.
  8441. (find_decls_types_in_var): Likewise.
  8442. (free_lang_data_in_cgraph): Likewise. Free the worklist.
  8443. * tree.h (RECORD_OR_UNION_TYPE_P): New.
  8444. (AGGREGATE_TYPE_P): Adjust.
  8445. 2009-09-09 Jason Merrill <jason@redhat.com>
  8446. * configure.ac: Check glibc version even if we have an in-tree
  8447. assembler.
  8448. 2009-09-09 Anthony Green <green@moxielogic.com>
  8449. * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
  8450. the constant 0 when appropriate.
  8451. * config/moxie/constraints.md: Add constraint O.
  8452. * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
  8453. to pass up to 6 32-bit argument values in registers.
  8454. (moxie_function_arg): Ditto.
  8455. (moxie_arg_partial_bytes): Ditto.
  8456. * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
  8457. (REG_PARM_STACK_SPACE): Ditto.
  8458. (FUNCTION_ARG_REGNO_P): Ditto.
  8459. * config/moxie/moxie.c (moxie_expand_prologue): Use dec
  8460. instruction to allocate stack space.
  8461. 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
  8462. * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
  8463. unnecessarily stringent constraints. Fix address
  8464. calculation in the splitters.
  8465. 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
  8466. PR rtl-optimization/39779
  8467. * expr.c (convert_modes): Return when mode == oldmode after
  8468. CONST_INTs are processed.
  8469. 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
  8470. PR/41315
  8471. * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
  8472. (ix86_expand_prologue): Take frame.padding0 into logic of
  8473. to_allocate checks.
  8474. (ix86_expand_epilogue): Likewise.
  8475. 2009-09-09 Jakub Jelinek <jakub@redhat.com>
  8476. * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
  8477. New variables.
  8478. (SHLIB_LINK, SHLIB_INSTALL): Use them.
  8479. * config/t-slibgcc-libgcc: New file.
  8480. * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
  8481. 2009-09-09 Martin Jambor <mjambor@suse.cz>
  8482. PR tree-optimization/41089
  8483. * tree-sra.c (find_var_candidates): Do not consider va_lists in
  8484. early SRA.
  8485. 2009-09-09 Richard Henderson <rth@redhat.com>
  8486. * gimple.h (CASE_GIMPLE_OMP): New.
  8487. (is_gimple_omp): Use it.
  8488. * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
  8489. (verify_gimple_debug): Likewise.
  8490. 2009-09-09 Richard Guenther <rguenther@suse.de>
  8491. PR tree-optimization/41101
  8492. * tree-ssa-pre.c (maximal_set): Remove.
  8493. (compute_antic_aux): Treat the maximal set as implicitly all ones.
  8494. Defer all blocks we didn't visit at least one successor.
  8495. (add_to_exp_gen): Do not add to the maximal set.
  8496. (make_values_for_phi): Likewise.
  8497. (compute_avail): Likewise.
  8498. (init_pre): Do not allocate the maximal set.
  8499. (execute_pre): Do not dump it.
  8500. 2009-09-09 Martin Jambor <mjambor@suse.cz>
  8501. * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
  8502. an SSA_NAME rather than a is_gimple_variable.
  8503. 2009-09-09 Richard Guenther <rguenther@suse.de>
  8504. PR middle-end/41317
  8505. * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
  8506. code dealing with plain pointer bases.
  8507. (maybe_fold_offset_to_reference): Likewise.
  8508. (maybe_fold_stmt_addition): Adjust.
  8509. 2009-09-09 Richard Guenther <rguenther@suse.de>
  8510. * tree.c (free_lang_data_in_type): Do not free the type variant
  8511. chains.
  8512. (free_lang_data): Merge char_type_node with its properly signed
  8513. variant.
  8514. (pass_ipa_free): Collect after freeing language specific data.
  8515. 2009-09-09 Michael Matz <matz@suse.de>
  8516. PR middle-end/41268
  8517. * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
  8518. SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
  8519. * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
  8520. to reflect reality.
  8521. 2009-09-08 DJ Delorie <dj@redhat.com>
  8522. * config/mep/mep.c (conversions[]): Add "ml" pattern.
  8523. 2009-09-04 Jason Merrill <jason@redhat.com>
  8524. * tree.c (tree_find_value): Remove.
  8525. * tree.h: Remove prototype.
  8526. * varasm.c (assemble_external): Use value_member instead.
  8527. 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
  8528. * toplev.c (process_options): Choose default debugging type when
  8529. gtoggle enables debug info and type is unset.
  8530. 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
  8531. PR debug/41276
  8532. PR debug/41307
  8533. * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
  8534. invalid subreg.
  8535. 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
  8536. * configure: Rebuilt with modified libtool.m4.
  8537. 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
  8538. PR debug/41229
  8539. PR debug/41291
  8540. PR debug/41300
  8541. * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
  8542. 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
  8543. * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
  8544. (remove_statement): Likewise.
  8545. (rewrite_use_nonlinear_expr): Adjust.
  8546. (remove_unused_ivs): Collect SSA NAMEs to remove and call...
  8547. * tree-ssa.c (release_defs_bitset): ... this. New.
  8548. * tree-flow.h (release_defs_bitset): Declare.
  8549. 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
  8550. PR debug/41232
  8551. * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
  8552. in the middle block.
  8553. 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
  8554. * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
  8555. via intptr_t to long type.
  8556. (insert_operand_rank): Cast long type via intptr_t to
  8557. pointer type.
  8558. * genattrtab.c (RTL_HASH): Use intptr_t to cast from
  8559. pointer to scalar.
  8560. * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
  8561. from pointer to unsigned via uintptr_t.
  8562. * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
  8563. uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
  8564. and HAVE_INTPTR_T.
  8565. * configure: Regenerated.
  8566. * config.in: Regenerated
  8567. * system.h (stdint.h): Add include.
  8568. (inttypes.h): Likewise.
  8569. * Makefile.in (aclocal): Add config/stdint.m4.
  8570. * aclocal.m4: Regenerated.
  8571. 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
  8572. * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
  8573. variables.
  8574. (note_np_check_stores): New function.
  8575. (harmless_null_pointer_p): New function.
  8576. (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
  8577. changed. Take into account whether we're in the shadow of a condjump
  8578. that tested NP_REG for NULL.
  8579. Lose all code that tested for SEQUENCEs.
  8580. (workaround_speculation): Avoid inserting NOPs for loads that are
  8581. either always executed or a NULL pointer.
  8582. 2009-09-08 Jan Hubicka <jh@suse.cz>
  8583. * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
  8584. * params.def (early-inlining-insns): Likewise.
  8585. 2009-09-08 Jakub Jelinek <jakub@redhat.com>
  8586. PR rtl-optimization/41239
  8587. * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
  8588. * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
  8589. lists.
  8590. * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
  8591. across calls, as the calls might not always return normally.
  8592. (call_may_noreturn_p): New function.
  8593. (deps_analyze_insn): Update last_function_call_may_noreturn list.
  8594. (init_deps): Initialize it.
  8595. (remove_from_deps): Also remove calls from
  8596. last_function_call_may_noreturn list.
  8597. 2009-09-07 Richard Henderson <rth@redhat.com>
  8598. * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
  8599. more VR->OPERANDS than LHS operands. Free LHS before returning.
  8600. 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
  8601. * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
  8602. (attr "addrtype"): New member "spreg".
  8603. Use it if mem_spfp_address_operand is true for the address.
  8604. (attr "type"): New entry "stall".
  8605. (cpu_unit "load"): New.
  8606. (insn_reservations "load32", "loadp", "loadi"): Add reservation of
  8607. "load".
  8608. (insn_reservation "loadsp"): New.
  8609. (insn_reservation "load_stall1"): New.
  8610. (insn_reservation "load_stall3"): New.
  8611. (stall): New insn.
  8612. * config/bfin/predicates.md (const1_operand, const3_operand): New.
  8613. (mem_p_address_operand): Exclude stack and frame pointer based
  8614. addresses.
  8615. (mem_spfp_address_operand): New; match them here.
  8616. * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
  8617. (bfin_reorg): Call it if scheduling insns.
  8618. (bfin_gen_bundles): Remove dummy insns created by
  8619. add_sched_insns_for_speculation.
  8620. From Jie Zhang <jie.zhang@analog.com>:
  8621. * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
  8622. bfin_si_revision, bfin_workarounds): Move these ...
  8623. * config/bfin/bfin.h: ... here.
  8624. From Mike Frysinger <michael.frysinger@analog.com>
  8625. * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
  8626. BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
  8627. * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
  8628. bf547m, bf548m, and bf549m.
  8629. * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
  8630. for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
  8631. __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
  8632. BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
  8633. * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
  8634. bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
  8635. * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
  8636. * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
  8637. * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
  8638. bf542m, bf544m, bf547m, bf548m, and bf549m.
  8639. From Jie Zhang <jie.zhang@analog.com>:
  8640. * config/bfin/predicates.md (p_register_operand): New predicate.
  8641. (dp_register_operand): New predicate.
  8642. * config/bfin/bfin-protos.h (WA_05000074): Define.
  8643. (ENABLE_WA_05000074): Define.
  8644. * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
  8645. (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
  8646. * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
  8647. (define_attr addrtype): Allow load/store register to be P register.
  8648. (define_attr storereg): New.
  8649. (define_cpu_unit anomaly_05000074): New.
  8650. (define_insn_reservation dsp32shiftimm): New.
  8651. (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
  8652. (define_insn_reservation loadp): Cannot use slot2.
  8653. (define_insn_reservation loadsp): Cannot use slot2.
  8654. (define_insn_reservation storep): Cannot use slot2. Does not
  8655. apply when working around 05000074.
  8656. (define_insn_reservation storep_anomaly_05000074): New.
  8657. (define_insn_reservation storei): Does not apply when working
  8658. around 05000074.
  8659. (define_insn_reservation storei_anomaly_05000074): New.
  8660. (define_attr length): Add dsp32shiftimm case.
  8661. (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
  8662. ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
  8663. movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
  8664. ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
  8665. Set type as dsp32shiftimm for dsp32shiftimm alternatives.
  8666. 2009-09-07 Martin Jambor <mjambor@suse.cz>
  8667. PR middle-end/41282
  8668. * tree-sra.c (create_artificial_child_access): Return NULL if
  8669. build_ref_for_offset fails.
  8670. (propagate_subacesses_accross_link): Allow build_ref_for_offset
  8671. and create_artificial_child_access to fail.
  8672. 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  8673. PR c++/41214
  8674. * unwind-dw2.c (uw_init_context_1): Mark noinline.
  8675. * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
  8676. * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
  8677. 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
  8678. * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
  8679. block, ensure it has an exit edge. Emit a barrier after a jump.
  8680. 2009-09-07 Nick Clifton <nickc@redhat.com>
  8681. * gcc.c (this_is_linker_script): New variable. Like
  8682. this_is_library_file but for the %T constructor.
  8683. (end_going_arg): If this_is_linker_script is set then locate the
  8684. script and insert a --script switch before it
  8685. (do_spec_2): Initialise this_is_linker_script.
  8686. (do_spec_1): Likewise. Handle %T construct.
  8687. (eval_spec_function): Preserve this_is_linker_script.
  8688. * doc/invoke.texi: Document %T construct in spec files.
  8689. * config/m32c/m32c.h (LIB_SPEC): Use it.
  8690. 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  8691. * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
  8692. * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
  8693. when volatile flag is set.
  8694. * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
  8695. 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
  8696. PR bootstrap/41241
  8697. * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
  8698. (combine_stack_adjustments_for_block): Allow insns between stack
  8699. adjustments and stores with corresponding pre-(dec|inc)rement or
  8700. pre-modify operation.
  8701. 2009-09-06 Jakub Jelinek <jakub@redhat.com>
  8702. PR bootstrap/41241
  8703. * combine-stack-adj.c (struct csa_memlist): Rename to...
  8704. (struct csa_reflist): ... this. Rename mem field to ref.
  8705. (free_csa_memlist): Rename to...
  8706. (free_csa_reflist): ... this.
  8707. (record_one_stack_memref): Rename to...
  8708. (record_one_stack_ref): ... this. Handle also REG_P.
  8709. (try_apply_stack_adjustment): Handle also REG_P.
  8710. (struct record_stack_memrefs_data): Rename to...
  8711. (struct record_stack_refs_data): ... this. Rename memlist field to
  8712. reflist.
  8713. (record_stack_memrefs): Rename to...
  8714. (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
  8715. subexpressions instead of failing when a MEM contains SP references.
  8716. For SP itself in DEBUG_INSNs queue it also onto reflist chain.
  8717. (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
  8718. 2009-09-06 Richard Guenther <rguenther@suse.de>
  8719. PR middle-end/41144
  8720. * tree.c (build_array_type): Do not record types marked
  8721. with structural equality in the canonical type hashtable.
  8722. 2009-09-06 Richard Guenther <rguenther@suse.de>
  8723. PR middle-end/41261
  8724. * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
  8725. 2009-09-05 Richard Guenther <rguenther@suse.de>
  8726. PR middle-end/41181
  8727. * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
  8728. 2009-09-05 Richard Guenther <rguenther@suse.de>
  8729. PR debug/41273
  8730. * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
  8731. 2009-09-05 Richard Guenther <rguenther@suse.de>
  8732. PR middle-end/41271
  8733. * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
  8734. before comparing function argument types.
  8735. 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  8736. PR target/41024
  8737. * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
  8738. the assembler.
  8739. 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
  8740. Revert:
  8741. 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
  8742. * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
  8743. locators before emit_insn is called.
  8744. 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
  8745. PR bootstrap/41241
  8746. * ira.c (update_equiv_reg): Revert my previous patch for the PR.
  8747. * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
  8748. (reginfo_init): Don't call allocate_reg_info.
  8749. 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
  8750. PR target/41262
  8751. * config/alpha/alpha.c (alpha_does_function_need_gp): Use
  8752. NONDEBUG_INSN_P instead of INSN_P.
  8753. 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
  8754. PR debug/41225
  8755. * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
  8756. 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
  8757. PR target/41252
  8758. * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
  8759. pattern of the split.
  8760. 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
  8761. * toplev.c (process_options): Move setter of flag_var_tracking
  8762. before other tests that depend on it. Move down setter of
  8763. flag_rename_registers. Don't enable var-tracking-assignments
  8764. by default if selective scheduling is enabled. Warn if both
  8765. are enabled.
  8766. 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
  8767. * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
  8768. comment. Use switch statement to catch overlaps between rtx
  8769. and tree codes. Accept FUNCTION_DECLs in addition to those in...
  8770. (IS_DECL_CODE): ... here. Remove.
  8771. (check_value_is_not_decl): Remove.
  8772. (dv_from_decl, dv_from_value): Check after conversion.
  8773. 2009-09-04 Richard Guenther <rguenther@suse.de>
  8774. PR middle-end/41257
  8775. * (cgraph_finalize_compilation_unit): Move finalizing aliases
  8776. after emitting tunks. Move emitting thunks and ctors from ...
  8777. (cgraph_optimize): ... here. Remove redundant
  8778. cgraph_analyze_functions.
  8779. * varasm.c (find_decl_and_mark_needed): Remove no longer
  8780. necessary check.
  8781. (finish_aliases_1): Adjust check for thunk aliases.
  8782. 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
  8783. * config/arm/arm.md (ctzsi2): Added braces
  8784. to avoid warning that broke booststrap.
  8785. 2009-09-04 Martin Jambor <mjambor@suse.cz>
  8786. PR tree-optimization/41112
  8787. * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
  8788. handle variable-bounded arrays.
  8789. (expr_with_var_bounded_array_refs_p): New function.
  8790. (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
  8791. 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
  8792. * config/s390/2097.md: Removed two incorrect bypasses.
  8793. (z10_fsimpdf): Fixed latency.
  8794. (z10_fhex): New insn_reservation.
  8795. (z10_floaddf): Fixed latency.
  8796. (z10_floadsf): Fixed latency.
  8797. (z10_ftrunctf): Fixed latency.
  8798. (z10_ftruncdf): Fixed latency.
  8799. * config/s390/s390.c (z10_cost): Fixed values.
  8800. (s390_adjust_priority): Added z10 path.
  8801. * config/s390/s390.md (type): Added fhex.
  8802. (*mov<mode>_64dfp): Updated type attribute.
  8803. (*mov<mode>_64): Updated type attribute.
  8804. (*mov<mode>_31): Updated type attribute.
  8805. (*mov<mode>"): Likewise.
  8806. * config/s390/2084.md (x_fsimpdf): Updated condition.
  8807. 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
  8808. * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
  8809. RTXs in the predicate for operand 1.
  8810. 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
  8811. * config/arm/arm.md (UNSPEC_RBIT): New constant.
  8812. (rbitsi2): New insn.
  8813. (ctzsi2): New expand.
  8814. * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
  8815. 2009-09-03 Martin Jambor <mjambor@suse.cz>
  8816. * tree-sra.c (duplicate_expr_for_different_base): Removed.
  8817. (create_artificial_child_access): Use build_ref_for_offset instead
  8818. of duplicate_expr_for_different_base.
  8819. (propagate_subacesses_accross_link): Likewise.
  8820. 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
  8821. * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
  8822. of INSN_P.
  8823. (mips16e_collect_argument_saves): Skip debug instructions.
  8824. (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
  8825. (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
  8826. (r10k_insert_cache_barriers): Likewise.
  8827. (mips_reorg_process_insns): Likewise.
  8828. 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
  8829. PR bootstrap/41241
  8830. * ira.c (update_equiv_reg): Remove check on class likely spill.
  8831. 2009-09-03 Jakub Jelinek <jakub@redhat.com>
  8832. PR debug/41236
  8833. * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
  8834. SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
  8835. it or SUBREG.
  8836. PR debug/41238
  8837. * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
  8838. the stack slot if it is passed by invisible reference.
  8839. * var-tracking.c (vt_add_function_parameters): Handle arguments passed
  8840. by invisible reference.
  8841. 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
  8842. * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
  8843. * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
  8844. * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
  8845. 0.
  8846. * config/bfin/sync.md: New file.
  8847. * config/bfin/bfin.md: Include it.
  8848. (UNSPEC_ATOMIC): New.
  8849. (UNSPEC_ONES): Provide a unique number.
  8850. From Jie Zhang <jie.zhang@analog.com>:
  8851. * config/bfin/bfin.c (ret_regs): New.
  8852. (must_save_fp_p): Don't return true because of frame_pointer_needed.
  8853. (must_save_rets_p): New.
  8854. (n_regs_saved_by_prologue): Use must_save_rets_p instead of
  8855. current_function_is_leaf.
  8856. (do_link): Likewise.
  8857. (do_unlink): Likewise.
  8858. (expand_interrupt_handler_prologue): Use ret_regs array.
  8859. (expand_interrupt_handler_epilogue): Use ret_regs array and
  8860. pass return register to gen_return_internal.
  8861. (bfin_expand_epilogue): Pass return register to
  8862. gen_return_internal.
  8863. (bfin_expand_call): Explicitly clobber RETS.
  8864. * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
  8865. * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
  8866. call_insn_fdpic, call_value_insn_fdpic, call_symbol,
  8867. call_value_symbol, call_insn, call_value_insn): Explicitly clobber
  8868. RETS.
  8869. (return_internal): Take a reg rtx rather than the register number.
  8870. 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
  8871. * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
  8872. when comparing against estimated_loop_iterations_int return.
  8873. 2009-09-03 Richard Guenther <rguenther@suse.de>
  8874. * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
  8875. eh_personality_libfunc.
  8876. 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
  8877. * tree-parloops.c (separate_decls_in_region): Add space.
  8878. 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
  8879. * tree-parloops.c (separate_decls_in_region): Change the condition
  8880. checking if there are reductions in the loop.
  8881. 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
  8882. PR tree-optimization/38275
  8883. * tree-parloops.c (parallelize_loops): Replace profitability condition
  8884. for expected number of iterations.
  8885. 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
  8886. * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
  8887. (bootstrap-debug): Explain conditions in which it becomes default.
  8888. (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
  8889. make it add to it.
  8890. 2009-09-03 Namhyung Kim <namhyung@gmail.com>
  8891. * doc/invoke.texi (Optimize Options): Move
  8892. -finline-small-functions to the -O2 list.
  8893. 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
  8894. * toplev.c (process_options): Enable var-tracking-assignments
  8895. by default if var-tracking is enabled.
  8896. 2009-09-02 David Daney <ddaney@caviumnetworks.com>
  8897. * cfgbuild.c (find_bb_boundaries): Split blocks containing a
  8898. barrier.
  8899. * emit-rtl.c (prev_nonnote_insn_bb): New function.
  8900. * rtl.h (prev_nonnote_insn_bb): Declare it.
  8901. 2009-09-03 Diego Novillo <dnovillo@google.com>
  8902. * cgraph.c (cgraph_node_for_decl): New.
  8903. * cgraph.h (cgraph_node_for_decl): Declare.
  8904. * tree.c (host_integerp): Return 0 if T is NULL.
  8905. 2009-09-03 Diego Novillo <dnovillo@google.com>
  8906. * tree.h (struct alias_pair): Move from varasm.c.
  8907. (alias_pairs): Likewise.
  8908. (TYPE_MAXVAL): Define.
  8909. (TYPE_MINVAL): Define.
  8910. (iterative_hash_host_wide_int): Declare.
  8911. (remove_unreachable_alias_pairs): Declare.
  8912. * tree-pass.h (pass_ipa_free_lang_data): Declare.
  8913. * diagnostic.c (default_diagnostic_starter): Make extern.
  8914. (default_diagnostic_finalizer): Make extern.
  8915. * diagnostic.h (default_diagnostic_starter): Declare.
  8916. (default_diagnostic_finalizer): Declare.
  8917. (default_tree_printer): Declare.
  8918. * toplev.c (default_tree_printer): Make extern.
  8919. 2009-09-03 Richard Guenther <rguenther@suse.de>
  8920. Diego Novillo <dnovillo@google.com>
  8921. * cgraph.c (cgraph_add_new_function): Remove gimplification.
  8922. * cgraphunit.c (cgraph_expand_function): Do not emit
  8923. associated thunks from here.
  8924. (cgraph_emit_thunks): New.
  8925. (cgraph_optimize): Call it.
  8926. Return if any IPA pass finds an error.
  8927. * varasm.c (finish_aliases_1): Ignore errorneous aliases used
  8928. by thunks.
  8929. 2009-09-03 Simon Baldwin <simonb@google.com>
  8930. Rafael Espindola <espindola@google.com>
  8931. Richard Guenther <rguenther@suse.de>
  8932. Doug Kwan <dougkwan@google.com>
  8933. Diego Novillo <dnovillo@google.com>
  8934. * tree.c: Include tree-pass.h, langhooks-def.h,
  8935. diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
  8936. (free_lang_data_in_type): New.
  8937. (need_assembler_name_p): New.
  8938. (free_lang_data_in_block): New.
  8939. (free_lang_data_in_decl): New.
  8940. (struct free_lang_data_d): New.
  8941. (add_tree_to_fld_list): New.
  8942. (find_decls_types_r): New.
  8943. (get_eh_types_for_runtime): New.
  8944. (find_decls_types_in_eh_region): New.
  8945. (find_decls_types_in_node): New.
  8946. (find_decls_types_in_var): New.
  8947. (free_lang_data_in_cgraph): New.
  8948. (free_lang_data): New.
  8949. (gate_free_lang_data): New.
  8950. (pass_ipa_free_lang_data): New.
  8951. 2009-09-03 Diego Novillo <dnovillo@google.com>
  8952. * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
  8953. * langhooks.h (struct lang_hooks): Add field free_lang_data.
  8954. (lang_hooks): Remove const qualifier.
  8955. * ipa.c (cgraph_remove_unreachable_nodes): Call
  8956. remove_unreachable_alias_pairs.
  8957. * except.c (add_type_for_runtime): Check if TYPE has
  8958. already been converted.
  8959. (lookup_type_for_runtime): Likewise.
  8960. (check_handled): Handle converted types.
  8961. * varasm.c (remove_unreachable_alias_pairs): New.
  8962. * gimple.c: Include demangle.h.
  8963. (gimple_decl_printable_name): New.
  8964. (gimple_fold_obj_type_ref): New.
  8965. * gimple.h (gimple_decl_printable_name): Declare.
  8966. (gimple_fold_obj_type_ref): Declare.
  8967. * passes.c (init_optimization_passes): Add pass
  8968. pass_ipa_free_lang_data.
  8969. * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
  8970. (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
  8971. 2009-09-03 Diego Novillo <dnovillo@google.com>
  8972. * c-lang.c (lang_hooks): Remove const qualifier.
  8973. 2009-09-02 Loren James Rittle <ljrittle@acm.org>
  8974. * doc/install.texi (*-*-freebsd*): Update target information.
  8975. 2009-09-02 Anatoly Sokolov <aesok@post.ru>
  8976. * hard-reg-set.h (call_fixed_regs): Remove.
  8977. * reginfo.c (call_fixed_regs): Remove.
  8978. (init_reg_sets_1): Remove initialization of call_fixed_regs.
  8979. (globalize_reg): Don't use call_fixed_regs.
  8980. * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
  8981. call_fixed_regs.
  8982. 2009-09-01 Michael Matz <matz@suse.de>
  8983. * expr.h (emit_storent_insn, expand_expr_real_1,
  8984. expand_expr_real_2): Declare.
  8985. * expr.c (emit_storent_insn, expand_expr_real_1,
  8986. expand_expr_real_2): Export.
  8987. (store_expr): Setting and evaluating dont_return_target is useless.
  8988. (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
  8989. LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
  8990. * except.c (expand_resx_expr): Rename to ...
  8991. (expand_resx_stmt): ... this. Rewrite to take gimple statement.
  8992. * except.h (expand_resx_stmt): Declare.
  8993. * stmt.c: Add include gimple.h
  8994. (expand_asm_expr): Rename to ...
  8995. (expand_asm_stmt): ... this. Rewrite to take gimple statement.
  8996. (expand_case): Rewrite to take gimple statement.
  8997. * tree.h (expand_asm_stmt): Declare.
  8998. (expand_case): Change prototype.
  8999. * Makefile.in (stmt.o): Depend on gimple.h.
  9000. * builtins.c (expand_builtin_synchronize): Build gimple asm
  9001. statement, not an ASM_EXPR.
  9002. * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
  9003. gimple_to_tree, release_stmt_tree): Remove.
  9004. (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
  9005. ggc_free, but hold comparison code and operands separately.
  9006. Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
  9007. (expand_call_stmt, expand_gimple_stmt_1,
  9008. expand_gimple_stmt): New helpers.
  9009. (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
  9010. release_stmt_tree. Call expand_gimple_stmt instead.
  9011. (expand_gimple_basic_block): Ditto.
  9012. * calls.c (emit_call_1): Don't look at EH regions here, make
  9013. fntree parameter useless.
  9014. (expand_call): New local rettype for TREE_TYPE(exp), use it
  9015. throughout. Remove local p, use addr instead.
  9016. Don't look at EH regions here.
  9017. 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
  9018. * doc/invoke.texi (-fsched-pressure): Document it.
  9019. (-fsched-reg-pressure-heuristic): Remove it.
  9020. * reload.c (ira.h): Include.
  9021. (find_reloads): Add choosing reload on number of small spilled
  9022. classes.
  9023. * haifa-sched.c (ira.h): Include.
  9024. (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
  9025. saved_reg_pressure, curr_reg_live, saved_reg_live,
  9026. region_ref_regs): New variables.
  9027. (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
  9028. initiate_reg_pressure_info, setup_ref_regs,
  9029. initiate_bb_reg_pressure_info, save_reg_pressure,
  9030. restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
  9031. functions.
  9032. (setup_insn_reg_pressure_info): New function.
  9033. (rank_for_schedule): Add pressure checking and insn issue time.
  9034. Remove comparison of insn reg weights.
  9035. (ready_sort): Set insn reg pressure info.
  9036. (update_register_pressure, setup_insn_max_reg_pressure,
  9037. update_reg_and_insn_max_reg_pressure,
  9038. sched_setup_bb_reg_pressure_info): New functions.
  9039. (schedule_insn): Add code for printing and updating reg pressure info.
  9040. (find_set_reg_weight, find_insn_reg_weight): Remove.
  9041. (ok_for_early_queue_removal): Do nothing if pressure_only_p.
  9042. (debug_ready_list): Print reg pressure info.
  9043. (schedule_block): Ditto. Check insn issue time.
  9044. (sched_init): Set up sched_pressure_p. Allocate and set up some
  9045. reg pressure related info.
  9046. (sched_finish): Free some reg pressure related info.
  9047. (fix_tick_ready): Make insn always ready if pressure_p.
  9048. (init_h_i_d): Don't call find_insn_reg_weight.
  9049. (haifa_finish_h_i_d): Free insn reg pressure info.
  9050. * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
  9051. ira_memory_move_cost, ira_class_hard_regs,
  9052. ira_class_hard_regs_num, ira_no_alloc_regs,
  9053. ira_available_class_regs, ira_reg_class_cover_size,
  9054. ira_reg_class_cover, ira_class_translate): Move to ira.h.
  9055. * ira-lives.c (single_reg_class): Check mode to find how many
  9056. registers are necessary for operand.
  9057. (ira_implicitly_set_insn_hard_regs): New.
  9058. * common.opt (fsched-pressure): New options.
  9059. (fsched-reg-pressure-heuristic): Remove.
  9060. * ira.c (setup_eliminable_regset): Rename to
  9061. ira_setup_eliminable_regset. Make it external.
  9062. (expand_reg_info): Pass cover class to setup_reg_classes.
  9063. (ira): Call resize_reg_info instead of allocate_reg_info.
  9064. * sched-deps.c: Include ira.h.
  9065. (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
  9066. (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
  9067. reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
  9068. mark_insn_hard_regno_birth, mark_insn_reg_birth,
  9069. mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
  9070. mark_insn_reg_store, mark_insn_reg_clobber,
  9071. setup_insn_reg_pressure_info): New.
  9072. (sched_analyze_1): Update implicit_reg_pending_uses.
  9073. (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
  9074. Use them to create dependencies. Set insn reg uses and pressure
  9075. info. Process reg_pending_uses in one place.
  9076. (free_deps): Free implicit sets.
  9077. (remove_from_deps): Remove implicit sets if necessary. Check
  9078. implicit sets when clearing reg_last_in_use.
  9079. (init_deps_global): Clear implicit_reg_pending_clobbers and
  9080. implicit_reg_pending_uses.
  9081. * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
  9082. ira_memory_move_cost, ira_class_hard_regs,
  9083. ira_class_hard_regs_num, ira_no_alloc_regs,
  9084. ira_available_class_regs, ira_reg_class_cover_size,
  9085. ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
  9086. (ira_setup_eliminable_regset, ira_set_pseudo_classes,
  9087. ira_implicitly_set_insn_hard_regs): New prototypes.
  9088. * ira-costs.c (pseudo_classes_defined_p, allocno_p,
  9089. cost_elements_num): New variables.
  9090. (allocno_costs, total_costs): Rename to costs and
  9091. total_allocno_costs.
  9092. (COSTS_OF_ALLOCNO): Rename to COSTS.
  9093. (allocno_pref): Rename to pref.
  9094. (allocno_pref_buffer): Rename to pref_buffer.
  9095. (common_classes): Rename to regno_cover_class.
  9096. (COST_INDEX): New.
  9097. (record_reg_classes): Set allocno attributes only if allocno_p.
  9098. (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
  9099. (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
  9100. and COSTS_OF_ALLOCNO.
  9101. (print_costs): Rename to print_allocno_costs.
  9102. (print_pseudo_costs): New.
  9103. (process_bb_node_for_costs): Split into 2 functions with new
  9104. function process_bb_for_costs. Pass BB to process_bb_for_costs.
  9105. (find_allocno_class_costs): Rename to find_costs_and_classes. Add
  9106. new parameter dump_file. Use cost_elements_num instead of
  9107. ira_allocnos_num. Make one iteration if preferred classes were
  9108. already calculated for scheduler. Make 2 versions of code
  9109. depending on allocno_p.
  9110. (setup_allocno_cover_class_and_costs): Check allocno_p. Use
  9111. regno_cover_class and COSTS instead of common_classes and
  9112. COSTS_OF_ALLOCNO.
  9113. (init_costs, finish_costs): New.
  9114. (ira_costs): Set up allocno_p and cost_elements_num. Call
  9115. init_costs and finish_costs.
  9116. (ira_set_pseudo_classes): New.
  9117. * rtl.h (allocate_reg_info): Remove.
  9118. (resize_reg_info): Change return type.
  9119. (reg_cover_class): New.
  9120. (setup_reg_classes): Add new parameter.
  9121. * sched-int.h (struct deps_reg): New member implicit_sets.
  9122. (sched_pressure_p, sched_regno_cover_class): New external definitions.
  9123. (INCREASE_BITS): New macro.
  9124. (struct reg_pressure_data, struct reg_use_data): New.
  9125. (struct _haifa_insn_data): Remove reg_weight. Add members
  9126. reg_pressure, reg_use_list, reg_set_list, and
  9127. reg_pressure_excess_cost_change.
  9128. (struct deps): New member implicit_sets.
  9129. (pressure_p): New variable.
  9130. (COVER_CLASS_BITS, INCREASE_BITS): New macros.
  9131. (struct reg_pressure_data, struct reg_use_data): New.
  9132. (INSN_REG_WEIGHT): Remove.
  9133. (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
  9134. INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
  9135. (sched_init_region_reg_pressure_info,
  9136. sched_setup_bb_reg_pressure_info): New prototypes.
  9137. * reginfo.c (struct reg_pref): New member coverclass.
  9138. (reg_cover_class): New function.
  9139. (reginfo_init, pass_reginfo_init): Move after free_reg_info.
  9140. (reg_info_size): New variable.
  9141. (allocate_reg_info): Make static. Setup reg_info_size.
  9142. (resize_reg_info): Use reg_info_size. Return flag of resizing.
  9143. (setup_reg_classes): Add a new parameter. Setup cover class too.
  9144. * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
  9145. the dependencies.
  9146. * sched-rgn.c (deps_join): Set up implicit_sets.
  9147. (schedule_region): Set up region and basic blocks pressure
  9148. relative info.
  9149. * passes.c (init_optimization_passes): Move
  9150. pass_subregs_of_mode_init before pass_sched.
  9151. 2009-09-02 Martin Jambor <mjambor@suse.cz>
  9152. * tree-sra.c (struct access): New field grp_hint.
  9153. (dump_access): Dump grp_hint.
  9154. (sort_and_splice_var_accesses): Set grp_hint if a group is read
  9155. multiple times.
  9156. (analyze_access_subtree): Only scalarize accesses with grp_hint set or
  9157. those which have been specifically read and somehow written to.
  9158. (propagate_subacesses_accross_link): Set grp_hint of right child and
  9159. also possibly of the left child.
  9160. 2009-09-02 Jakub Jelinek <jakub@redhat.com>
  9161. * tree-object-size.c (addr_object_size): Always use object_size_type
  9162. 0 or 2 when determining the pointer pointed object size.
  9163. 2009-09-02 Richard Guenther <rguenther@suse.de>
  9164. Revert
  9165. 2009-08-31 Richard Guenther <rguenther@suse.de>
  9166. * builtins.c (fold_builtin_memory_op): Use the alias oracle
  9167. to query if the memory regions for memmove overlap.
  9168. * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
  9169. asserts on pointers, instead deal with odd trees.
  9170. (ptr_derefs_may_alias_p): Likewise.
  9171. (refs_may_alias_p_1): Constructor bases also never alias.
  9172. 2009-08-01 Christian Bruel <christian.bruel@st.com>
  9173. Revert:
  9174. 2009-07-31 Christian Bruel <christian.bruel@st.com>
  9175. * gcc/config.gcc (sh*-*-elf): test with_libgloss.
  9176. 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
  9177. * doc/invoke.texi (-fvar-tracking-assignments): New.
  9178. (-fvar-tracking-assignments-toggle): New.
  9179. (-fdump-final-insns=file): Mark filename as optional.
  9180. (--param min-nondebug-insn-uid): New.
  9181. (-gdwarf-@{version}): Mention version 4.
  9182. * opts.c (common_handle_option): Accept it.
  9183. * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
  9184. * regrename.c (regrename_optimize): Drop last. Don't count debug
  9185. insns as uses. Don't reject change because of debug insn.
  9186. (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
  9187. from the chain starter, and check for inexact matches in DEBUG_INSNS.
  9188. (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
  9189. (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
  9190. * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
  9191. * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
  9192. * doc/gimple.texi (is_gimple_debug): New.
  9193. (gimple_debug_bind_p): New.
  9194. (is_gimple_call, gimple_assign_cast_p): End sentence with period.
  9195. * doc/install.texi (bootstrap-debug): More details.
  9196. (bootstrap-debug-big, bootstrap-debug-lean): Document.
  9197. (bootstrap-debug-lib): More details.
  9198. (bootstrap-debug-ckovw): Update.
  9199. (bootstrap-time): New.
  9200. * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
  9201. (insert_phi_nodes_for): Insert debug stmts.
  9202. (rewrite_stmt): Take iterator. Insert debug stmts.
  9203. (rewrite_enter_block): Adjust.
  9204. (maybe_replace_use_in_debug_stmt): New.
  9205. (rewrite_update_stmt): Use it.
  9206. (mark_use_interesting): Return early for debug stmts.
  9207. * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
  9208. stmts before replacing stmt.
  9209. (move_computations_stmt): Likewise.
  9210. * ira-conflicts.c (add_copies): Skip debug insns.
  9211. * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
  9212. (regstat_bb_compute_ri): Skip debug insns.
  9213. * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
  9214. * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
  9215. check_loop_closed_ssa_stmt): Skip debug stmts.
  9216. * tree-tailcall.c (find_tail_calls): Likewise.
  9217. * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
  9218. * tree.h (MAY_HAVE_DEBUG_STMTS): New.
  9219. (build_var_debug_value_stat): Declare.
  9220. (build_var_debug_value): Define.
  9221. (target_for_debug_bind): Declare.
  9222. * reload.c (find_equiv_reg): Skip debug insns.
  9223. * rtlanal.c (reg_used_between_p): Skip debug insns.
  9224. (side_effects_p): Likewise.
  9225. (canonicalize_condition): Likewise.
  9226. * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
  9227. insns never depend on debug insns.
  9228. (create_ddg_dep_no_link): Likewise.
  9229. (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
  9230. Don't add inter-loop dependencies for debug insns.
  9231. (build_intra_loop_deps): Likewise.
  9232. (create_ddg): Count debug insns.
  9233. * ddg.h (struct ddg::num_debug): New.
  9234. (num_backargs): Pair up with previous int field.
  9235. * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
  9236. -fcompare-debug-second.
  9237. * final.c (get_attr_length_1): Skip debug insns.
  9238. (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
  9239. * gcc.c (invoke_as): Call compare-debug-dump-opt.
  9240. (driver_self_specs): Map -fdump-final-insns to
  9241. -fdump-final-insns=..
  9242. (get_local_tick): New.
  9243. (compare_debug_dump_opt_spec_function): Test for . argument and
  9244. compute output name. Compute temp output spec without flag name.
  9245. Compute -frandom-seed.
  9246. (OPT): Undef after use.
  9247. * cfgloopanal.c (num_loop_insns): Skip debug insns.
  9248. (average_num_loop_insns): Likewise.
  9249. * params.h (MIN_NONDEBUG_INSN_UID): New.
  9250. * gimple.def (GIMPLE_DEBUG): New.
  9251. * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
  9252. * auto-inc-dec.c (merge_in_block): Skip debug insns.
  9253. (merge_in_block): Fix whitespace.
  9254. * toplev.c (flag_var_tracking): Update comment.
  9255. (flag_var_tracking_assignments): New.
  9256. (flag_var_tracking_assignments_toggle): New.
  9257. (process_options): Don't open final insns dump file if we're not
  9258. going to write to it. Compute defaults for var_tracking.
  9259. * df-scan.c (df_insn_rescan_debug_internal): New.
  9260. (df_uses_record): Handle debug insns.
  9261. * haifa-sched.c (ready): Initialize n_debug.
  9262. (contributes_to_priority): Skip debug insns.
  9263. (dep_list_size): New.
  9264. (priority): Use it.
  9265. (rank_for_schedule): Likewise. Schedule debug insns as soon as
  9266. they're ready. Disregard previous debug insns to make decisions.
  9267. (queue_insn): Never queue debug insns.
  9268. (ready_add, ready_remove_first, ready_remove): Count debug insns.
  9269. (schedule_insn): Don't reject debug insns because of issue rate.
  9270. (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
  9271. (queue_to_ready): Skip and discount debug insns.
  9272. (choose_ready): Let debug insns through.
  9273. (schedule_block): Check boundary debug insns. Discount debug
  9274. insns, schedule them early. Adjust whitespace.
  9275. (set_priorities): Check for boundary debug insns.
  9276. (add_jump_dependencies): Use dep_list_size.
  9277. (prev_non_location_insn): New.
  9278. (check_cfg): Use it.
  9279. * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
  9280. stmts.
  9281. (remove_unused_ivs): Reset debug stmts.
  9282. * modulo-sched.c (const_iteration_count): Skip debug insns.
  9283. (res_MII): Discount debug insns.
  9284. (loop_single_full_bb_p): Skip debug insns.
  9285. (sms_schedule): Likewise.
  9286. (sms_schedule_by_order): Likewise.
  9287. (ps_has_conflicts): Likewise.
  9288. * caller-save.c (refmarker_fn): New.
  9289. (save_call_clobbered_regs): Replace regs with saved mem in
  9290. debug insns.
  9291. (mark_referenced_regs): Take pointer, mark and arg. Adjust.
  9292. Call refmarker_fn mark for hardregnos.
  9293. (mark_reg_as_referenced): New.
  9294. (replace_reg_with_saved_mem): New.
  9295. * ipa-pure-const.c (check_stmt): Skip debug stmts.
  9296. * cse.c (cse_insn): Canonicalize debug insns. Skip them when
  9297. searching back.
  9298. (cse_extended_basic_block): Skip debug insns.
  9299. (count_reg_usage): Likewise.
  9300. (is_dead_reg): New, split out of...
  9301. (set_live_p): ... here.
  9302. (insn_live_p): Use it for debug insns.
  9303. * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
  9304. (execute_optimize_stdarg): Likewise.
  9305. * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
  9306. * tree-ssa-propagate.c (substitute_and_fold): Don't regard
  9307. changes in debug stmts as changes.
  9308. * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
  9309. (moveup_expr): Don't move across debug insns. Don't move
  9310. debug insn if it would create a bookkeeping block.
  9311. (moveup_expr_cached): Don't use cache for debug insns that
  9312. are heads of blocks.
  9313. (compute_av_set_inside_bb): Skip debug insns.
  9314. (sel_rank_for_schedule): Schedule debug insns first. Remove
  9315. dead code.
  9316. (block_valid_for_bookkeeping_p); Support lax searches.
  9317. (create_block_for_bookkeeping): Adjust block numbers when
  9318. encountering debug-only blocks.
  9319. (find_place_for_bookkeeping): Deal with debug-only blocks.
  9320. (generate_bookkeeping_insn): Accept no place to insert.
  9321. (remove_temp_moveop_nops): New argument full_tidying.
  9322. (prepare_place_to_insert): Deal with debug insns.
  9323. (advance_state_on_fence): Debug insns don't start cycles.
  9324. (update_boundaries): Take fence as argument. Deal with
  9325. debug insns.
  9326. (schedule_expr_on_boundary): No full_tidying on debug insns.
  9327. (fill_insns): Deal with debug insns.
  9328. (track_scheduled_insns_and_blocks): Don't count debug insns.
  9329. (need_nop_to_preserve_insn_bb): New, split out of...
  9330. (remove_insn_from_stream): ... this.
  9331. (fur_orig_expr_not_found): Skip debug insns.
  9332. * rtl.def (VALUE): Move up.
  9333. (DEBUG_INSN): New.
  9334. * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
  9335. (nearest_common_dominator_of_uses): Take debug_stmts argument.
  9336. Set it if debug stmts are found.
  9337. (statement_sink_location): Skip debug stmts. Propagate
  9338. moving defs into debug stmts.
  9339. * ifcvt.c (first_active_insn): Skip debug insns.
  9340. (last_active_insns): Likewise.
  9341. (cond_exec_process_insns): Likewise.
  9342. (noce_process_if_block): Likewise.
  9343. (check_cond_move_block): Likewise.
  9344. (cond_move_convert_if_block): Likewise.
  9345. (block_jumps_and_fallthru_p): Likewise.
  9346. (dead_or_predicable): Likewise.
  9347. * dwarf2out.c (debug_str_hash_forced): New.
  9348. (find_AT_string): Add comment.
  9349. (gen_label_for_indirect_string): New.
  9350. (get_debug_string_label): New.
  9351. (AT_string_form): Use it.
  9352. (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
  9353. MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
  9354. discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
  9355. several operations that cannot be represented with DWARF opcodes.
  9356. (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
  9357. dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
  9358. (dwarf2out_var_location): Take during-call mark into account.
  9359. (output_indirect_string): Update comment. Output if there are
  9360. label and references.
  9361. (prune_indirect_string): New.
  9362. (prune_unused_types): Call it if debug_str_hash_forced.
  9363. More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
  9364. (dw_long_long_const): Remove.
  9365. (struct dw_val_struct): Change val_long_long type to rtx.
  9366. (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
  9367. val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
  9368. (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
  9369. component instead of HOST_BITS_PER_LONG.
  9370. (output_loc_operands): Likewise. For const8* assert
  9371. HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
  9372. (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
  9373. rather than HOST_BITS_PER_LONG is >= 64.
  9374. (add_AT_long_long): Remove val_hi and val_lo arguments, add
  9375. val_const_double.
  9376. (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
  9377. HOST_BITS_PER_LONG for dw_val_class_long_long.
  9378. (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
  9379. handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
  9380. (dwarf_stack_op_name): Handle DW_OP_implicit_value and
  9381. DW_OP_stack_value.
  9382. (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
  9383. Handle DW_OP_implicit_value.
  9384. (extract_int): Move prototype earlier.
  9385. (mem_loc_descriptor): For SUBREG punt if inner
  9386. mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
  9387. and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
  9388. EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
  9389. UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
  9390. (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
  9391. instead of Pmode size.
  9392. (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
  9393. CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
  9394. attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
  9395. (concat_loc_descriptor, concatn_loc_descriptor,
  9396. loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
  9397. (add_location_or_const_value_attribute): Likewise. For single
  9398. location loc_lists attempt to use add_const_value_attribute
  9399. for constant decls. Add DW_AT_const_value even if
  9400. NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
  9401. in its expression.
  9402. * cfgbuild.c (inside_basic_block_p): Handle debug insns.
  9403. (control_flow_insn_p): Likewise.
  9404. * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
  9405. (separate_decls_in_region_debug_bind): New.
  9406. (separate_decls_in_region): Process debug bind stmts afterwards.
  9407. * recog.c (verify_changes): Handle debug insns.
  9408. (extract_insn): Likewise.
  9409. (peephole2_optimize): Skip debug insns.
  9410. * dse.c (scan_insn): Skip debug insns.
  9411. * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
  9412. Pass it on.
  9413. (setup_id_for_insn): Handle debug insns.
  9414. (maybe_tidy_empty_bb): Adjust whitespace.
  9415. (tidy_control_flow): Skip debug insns.
  9416. (sel_remove_insn): Adjust for debug insns.
  9417. (sel_estimate_number_of_insns): Skip debug insns.
  9418. (create_insn_rtx_from_pattern): Handle debug insns.
  9419. (create_copy_of_insn_rtx): Likewise.
  9420. * sel-sched-.h (sel_bb_end): Declare.
  9421. (sel_bb_empty_or_nop_p): New.
  9422. (get_all_loop_exits): Use it.
  9423. (_eligible_successor_edge_p): Likewise.
  9424. (return_nop_to_pool): Adjust.
  9425. * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
  9426. * ira-lives.c (process_bb_node_lives): Skip debug insns.
  9427. * gimple-pretty-print.c (dump_gimple_debug): New.
  9428. (dump_gimple_stmt): Use it.
  9429. (dump_bb_header): Skip gimple debug stmts.
  9430. * regmove.c (optimize_reg_copy_1): Discount debug insns.
  9431. (fixup_match_2): Likewise.
  9432. (regmove_backward_pass): Likewise. Simplify combined
  9433. replacement. Handle debug insns.
  9434. * function.c (instantiate_virtual_regs): Handle debug insns.
  9435. * function.h (struct emit_status): Add x_cur_debug_insn_uid.
  9436. * print-rtl.h: Include cselib.h.
  9437. (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
  9438. * df.h (df_inns_rescan_debug_internal): Declare.
  9439. * gcse.c (alloc_hash_table): Estimate n_insns.
  9440. (cprop_insn): Don't regard debug insns as changes.
  9441. (bypass_conditional_jumps): Skip debug insns.
  9442. (one_pre_gcse_pass): Adjust.
  9443. (one_code_hoisting_pass): Likewise.
  9444. (compute_ld_motion_mems): Skip debug insns.
  9445. (one_cprop_pass): Adjust.
  9446. * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
  9447. (if_convertible_stmt_p): Handle debug stmts.
  9448. * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
  9449. * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
  9450. * ira-build.c (create_bb_allocnos): Skip debug insns.
  9451. * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
  9452. (has_single_use): Likewise.
  9453. (single_imm_use): Likewise.
  9454. (num_imm_uses): Likewise.
  9455. * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
  9456. * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
  9457. (create_outofssa_var_map): Likewise.
  9458. * lower-subreg.c (adjust_decomposed_uses): New.
  9459. (resolve_debug): New.
  9460. (decompose_multiword_subregs): Use it.
  9461. * tree-dfa.c (find_referenced_vars): Skip debug stmts.
  9462. * emit-rtl.c: Include params.h.
  9463. (cur_debug_insn_uid): Define.
  9464. (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
  9465. (copy_rtx_if_shared_1): Handle debug insns.
  9466. (reset_used_flags): Likewise.
  9467. (set_used_flags): LIkewise.
  9468. (get_max_insn_count): New.
  9469. (next_nondebug_insn): New.
  9470. (prev_nondebug_insn): New.
  9471. (make_debug_insn_raw): New.
  9472. (emit_insn_before_noloc): Handle debug insns.
  9473. (emit_jump_insn_before_noloc): Likewise.
  9474. (emit_call_insn_before_noloc): Likewise.
  9475. (emit_debug_insn_before_noloc): New.
  9476. (emit_insn_after_noloc): Handle debug insns.
  9477. (emit_jump_insn_after_noloc): Likewise.
  9478. (emit_call_insn_after_noloc): Likewise.
  9479. (emit_debug_insn_after_noloc): Likewise.
  9480. (emit_insn_after): Take loc from earlier non-debug insn.
  9481. (emit_jump_insn_after): Likewise.
  9482. (emit_call_insn_after): Likewise.
  9483. (emit_debug_insn_after_setloc): New.
  9484. (emit_debug_insn_after): New.
  9485. (emit_insn_before): Take loc from later non-debug insn.
  9486. (emit_jump_insn_before): Likewise.
  9487. (emit_call_insn_before): Likewise.
  9488. (emit_debug_insn_before_setloc): New.
  9489. (emit_debug_insn_before): New.
  9490. (emit_insn): Handle debug insns.
  9491. (emit_debug_insn): New.
  9492. (emit_jump_insn): Handle debug insns.
  9493. (emit_call_insn): Likewise.
  9494. (emit): Likewise.
  9495. (init_emit): Take min-nondebug-insn-uid into account.
  9496. Initialize cur_debug_insn_uid.
  9497. (emit_copy_of_insn_after): Handle debug insns.
  9498. * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
  9499. location of single rhs in place.
  9500. (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
  9501. (floor_sdiv_adjust): New.
  9502. (cell_sdiv_adjust): New.
  9503. (cell_udiv_adjust): New.
  9504. (round_sdiv_adjust): New.
  9505. (round_udiv_adjust): New.
  9506. (wrap_constant): Moved from cselib.
  9507. (unwrap_constant): New.
  9508. (expand_debug_expr): New.
  9509. (expand_debug_locations): New.
  9510. (expand_gimple_basic_block): Drop hiding redeclaration. Expand
  9511. debug bind stmts.
  9512. (gimple_expand_cfg): Expand debug locations.
  9513. * cselib.c: Include tree-pass.h.
  9514. (struct expand_value_data): New.
  9515. (cselib_record_sets_hook): New.
  9516. (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
  9517. (cselib_clear_table): Move, and implemnet in terms of...
  9518. (cselib_reset_table_with_next_value): ... this.
  9519. (cselib_get_next_unknown_value): New.
  9520. (discard_useless_locs): Don't discard preserved values.
  9521. (cselib_preserve_value): New.
  9522. (cselib_preserved_value_p): New.
  9523. (cselib_preserve_definitely): New.
  9524. (cselib_clear_preserve): New.
  9525. (cselib_preserve_only_values): New.
  9526. (new_cselib_val): Take rtx argument. Dump it in details.
  9527. (cselib_lookup_mem): Adjust.
  9528. (expand_loc): Take regs_active in struct. Adjust. Silence
  9529. dumps unless details are requested.
  9530. (cselib_expand_value_rtx_cb): New.
  9531. (cselib_expand_value_rtx): Rename and reimplment in terms of...
  9532. (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
  9533. without details. Copy more subregs. Try to resolve values
  9534. using a callback. Wrap constants.
  9535. (cselib_subst_to_values): Adjust.
  9536. (cselib_log_lookup): New.
  9537. (cselib_lookup): Call it.
  9538. (cselib_invalidate_regno): Don't count preserved values as useless.
  9539. (cselib_invalidate_mem): Likewise.
  9540. (cselib_record_set): Likewise.
  9541. (struct set): Renamed to cselib_set, moved to cselib.h.
  9542. (cselib_record_sets): Adjust. Call hook.
  9543. (cselib_process_insn): Reset table when it would be cleared.
  9544. (dump_cselib_val): New.
  9545. (dump_cselib_table): New.
  9546. * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
  9547. (remove_forwarder_block): Support moving debug stmts.
  9548. * cselib.h (cselib_record_sets_hook): Declare.
  9549. (cselib_expand_callback): New type.
  9550. (cselib_expand_value_rtx_cb): Declare.
  9551. (cselib_reset_table_with_next_value): Declare.
  9552. (cselib_get_next_unknown_value): Declare.
  9553. (cselib_preserve_value): Declare.
  9554. (cselib_preserved_value_p): Declare.
  9555. (cselib_preserve_only_values): Declare.
  9556. (dump_cselib_table): Declare.
  9557. * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
  9558. (try_crossjump_to_edge): Likewise.
  9559. (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
  9560. dominated blocks when debug stmts are present.
  9561. * simplify-rtx.c (delegitimize_mem_from_attrs): New.
  9562. * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
  9563. (set_var_live_on_entry): Likewise.
  9564. * loop-invariant.c (find_invariants_bb): Skip debug insns.
  9565. * cfglayout.c (curr_location, last_location): Make static.
  9566. (set_curr_insn_source_location): Don't avoid bouncing.
  9567. (get_curr_insn_source_location): New.
  9568. (get_curr_insn_block): New.
  9569. (duplicate_insn_chain): Handle debug insns.
  9570. * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
  9571. into debug stmts.
  9572. * common.opt (fcompare-debug): Move to sort order.
  9573. (fdump-unnumbered-links): Likewise.
  9574. (fvar-tracking-assignments): New.
  9575. (fvar-tracking-assignments-toggle): New.
  9576. * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
  9577. because of debug stmts.
  9578. (mark_stmt_if_obviously_necessary): Mark debug stmts.
  9579. (eliminate_unnecessary_stmts): Walk dominated blocks before
  9580. dominators.
  9581. * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
  9582. * ira.c (memref_used_between_p): Skip debug insns.
  9583. (update_equiv_regs): Likewise.
  9584. * sched-deps.c (sd_lists_size): Accept empty list.
  9585. (sd_init_insn): Mark debug insns.
  9586. (sd_finish_insn): Unmark them.
  9587. (sd_add_dep): Reject non-debug deps on debug insns.
  9588. (fixup_sched_groups): Give debug insns group treatment.
  9589. Skip debug insns.
  9590. (sched_analyze_reg): Don't mark debug insns for sched before call.
  9591. (sched_analyze_2): Handle debug insns.
  9592. (sched_analyze_insn): Compute next non-debug insn. Handle debug
  9593. insns.
  9594. (deps_analyze_insn): Handle debug insns.
  9595. (deps_start_bb): Skip debug insns.
  9596. (init_deps): Initialize last_debug_insn.
  9597. * tree-ssa.c (target_for_debug_bind): New.
  9598. (find_released_ssa_name): New.
  9599. (propagate_var_def_into_debug_stmts): New.
  9600. (propagate_defs_into_debug_stmts): New.
  9601. (verify_ssa): Skip debug bind stmts without values.
  9602. (warn_uninialized_vars): Skip debug stmts.
  9603. * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
  9604. * rtl.c (rtx_equal_p_cb): Handle VALUEs.
  9605. (rtx_equal_p): Likewise.
  9606. * ira-costs.c (scan_one_insn): Skip debug insns.
  9607. (process_bb_node_for_hard_reg_moves): Likewise.
  9608. * rtl.h (DEBUG_INSN_P): New.
  9609. (NONDEBUG_INSN_P): New.
  9610. (MAY_HAVE_DEBUG_INSNS): New.
  9611. (INSN_P): Accept debug insns.
  9612. (RTX_FRAME_RELATED_P): Likewise.
  9613. (INSN_DELETED_P): Likewise
  9614. (PAT_VAR_LOCATION_DECL): New.
  9615. (PAT_VAR_LOCATION_LOC): New.
  9616. (PAT_VAR_OCATION_STATUS): New.
  9617. (NOTE_VAR_LOCATION_DECL): Reimplement.
  9618. (NOTE_VAR_LOCATION_LOC): Likewise.
  9619. (NOTE_VAR_LOCATION_STATUS): Likewise.
  9620. (INSN_VAR_LOCATION): New.
  9621. (INSN_VAR_LOCATION_DECL): New.
  9622. (INSN_VAR_LOCATION_LOC): New.
  9623. (INSN_VAR_LOCATION_STATUS): New.
  9624. (gen_rtx_UNKNOWN_VAR_LOC): New.
  9625. (VAR_LOC_UNKNOWN_P): New.
  9626. (NOTE_DURING_CALL_P): New.
  9627. (SCHED_GROUP_P): Accept debug insns.
  9628. (emit_debug_insn_before): Declare.
  9629. (emit_debug_insn_before_noloc): Declare.
  9630. (emit_debug_insn_beore_setloc): Declare.
  9631. (emit_debug_insn_after): Declare.
  9632. (emit_debug_insn_after_noloc): Declare.
  9633. (emit_debug_insn_after_setloc): Declare.
  9634. (emit_debug_insn): Declare.
  9635. (make_debug_insn_raw): Declare.
  9636. (prev_nondebug_insn): Declare.
  9637. (next_nondebug_insn): Declare.
  9638. (delegitimize_mem_from_attrs): Declare.
  9639. (get_max_insn_count): Declare.
  9640. (wrap_constant): Declare.
  9641. (unwrap_constant): Declare.
  9642. (get_curr_insn_source_location): Declare.
  9643. (get_curr_insn_block): Declare.
  9644. * tree-inline.c (insert_debug_decl_map): New.
  9645. (processing_debug_stmt): New.
  9646. (remap_decl): Don't create new mappings in debug stmts.
  9647. (remap_gimple_op_r): Don't add references in debug stmts.
  9648. (copy_tree_body_r): Likewise.
  9649. (remap_gimple_stmt): Handle debug bind stmts.
  9650. (copy_bb): Skip debug stmts.
  9651. (copy_edges_for_bb): Likewise.
  9652. (copy_debug_stmt): New.
  9653. (copy_debug_stmts): New.
  9654. (copy_body): Copy debug stmts at the end.
  9655. (insert_init_debug_bind): New.
  9656. (insert_init_stmt): Take id. Skip and emit debug stmts.
  9657. (setup_one_parameter): Remap variable earlier, register debug mapping.
  9658. (estimate_num_insns): Skip debug stmts.
  9659. (expand_call_inline): Preserve debug_map.
  9660. (optimize_inline_calls): Check for no debug_stmts left-overs.
  9661. (unsave_expr_now): Preserve debug_map.
  9662. (copy_gimple_seq_and_replace_locals): Likewise.
  9663. (tree_function_versioning): Check for no debug_stmts left-overs.
  9664. Init and destroy debug_map as needed. Split edges unconditionally.
  9665. (build_duplicate_type): Init and destroy debug_map as needed.
  9666. * tree-inline.h: Include gimple.h instead of pointer-set.h.
  9667. (struct copy_body_data): Add debug_stmts and debug_map.
  9668. * sched-int.h (struct ready_list): Add n_debug.
  9669. (struct deps): Add last_debug_insn.
  9670. (DEBUG_INSN_SCHED_P): New.
  9671. (BOUNDARY_DEBUG_INSN_P): New.
  9672. (SCHEDULE_DEBUG_INSN_P): New.
  9673. (sd_iterator_cond): Accept empty list.
  9674. * combine.c (create_log_links): Skip debug insns.
  9675. (combine_instructions): Likewise.
  9676. (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
  9677. return value is always unshared.
  9678. (struct rtx_subst_pair): New.
  9679. (auto_adjust_pair): New.
  9680. (propagate_for_debug_subst): New.
  9681. (propagate_for_debug): New.
  9682. (try_combine): Skip debug insns. Propagate removed defs into
  9683. debug insns.
  9684. (next_nonnote_nondebug_insn): New.
  9685. (distribute_notes): Use it. Skip debug insns.
  9686. (distribute_links): Skip debug insns.
  9687. * tree-outof-ssa.c (set_location_for_edge): Likewise.
  9688. * resource.c (mark_target_live_regs): Likewise.
  9689. * var-tracking.c: Include cselib.h and target.h.
  9690. (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
  9691. MO_VAL_SET.
  9692. (micro_operation_type_name): New.
  9693. (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
  9694. (struct micro_operation_def): Update comments.
  9695. (decl_or_value): New type. Use instead of decls.
  9696. (struct emit_note_data_def): Add vars.
  9697. (struct attrs_def): Use decl_or_value.
  9698. (struct variable_tracking_info_def): Add permp, flooded.
  9699. (struct location_chain_def): Update comment.
  9700. (struct variable_part_def): Use decl_or_value.
  9701. (struct variable_def): Make var_part a variable length array.
  9702. (valvar_pool): New.
  9703. (scratch_regs): New.
  9704. (cselib_hook_called): New.
  9705. (dv_is_decl_p): New.
  9706. (dv_is_value_p): New.
  9707. (dv_as_decl): New.
  9708. (dv_as_value): New.
  9709. (dv_as_opaque): New.
  9710. (dv_onepart_p): New.
  9711. (dv_pool): New.
  9712. (IS_DECL_CODE): New.
  9713. (check_value_is_not_decl): New.
  9714. (dv_from_decl): New.
  9715. (dv_from_value): New.
  9716. (dv_htab_hash): New.
  9717. (variable_htab_hash): Use it.
  9718. (variable_htab_eq): Support values.
  9719. (variable_htab_free): Free from the right pool.
  9720. (attrs_list_member, attrs_list_insert): Use decl_or_value.
  9721. (attrs_list_union): Adjust.
  9722. (attrs_list_mpdv_union): New.
  9723. (tie_break_pointers): New.
  9724. (canon_value_cmp): New.
  9725. (unshare_variable): Return possibly-modified slot.
  9726. (vars_copy_1): Adjust.
  9727. (var_reg_decl_set): Adjust. Split out of...
  9728. (var_reg_set): ... this.
  9729. (get_init_value): Adjust.
  9730. (var_reg_delete_and_set): Adjust.
  9731. (var_reg_delete): Adjust.
  9732. (var_regno_delete): Adjust.
  9733. (var_mem_decl_set): Split out of...
  9734. (var_mem_set): ... this.
  9735. (var_mem_delete_and_set): Adjust.
  9736. (var_mem_delete): Adjust.
  9737. (val_store): New.
  9738. (val_reset): New.
  9739. (val_resolve): New.
  9740. (variable_union): Adjust. Speed up merge of 1-part vars.
  9741. (variable_canonicalize): Use unshared slot.
  9742. (VALUED_RECURSED_INTO): New.
  9743. (find_loc_in_1pdv): New.
  9744. (struct dfset_merge): New.
  9745. (insert_into_intersection): New.
  9746. (intersect_loc_chains): New.
  9747. (loc_cmp): New.
  9748. (canonicalize_loc_order_check): New.
  9749. (canonicalize_values_mark): New.
  9750. (canonicalize_values_star): New.
  9751. (variable_merge_over_cur): New.
  9752. (variable_merge_over_src): New.
  9753. (dataflow_set_merge): New.
  9754. (dataflow_set_equiv_regs): New.
  9755. (remove_duplicate_values): New.
  9756. (struct dfset_post_merge): New.
  9757. (variable_post_merge_new_vals): New.
  9758. (variable_post_merge_perm_vals): New.
  9759. (dataflow_post_merge_adjust): New.
  9760. (find_mem_expr_in_1pdv): New.
  9761. (dataflow_set_preserve_mem_locs): New.
  9762. (dataflow_set_remove_mem_locs): New.
  9763. (dataflow_set_clear_at_call): New.
  9764. (onepart_variable_different_p): New.
  9765. (variable_different_p): Use it.
  9766. (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
  9767. (track_expr_p): Add need_rtl parameter. Don't generate rtl
  9768. if not needed.
  9769. (track_loc_p): Pass it true.
  9770. (struct count_use_info): New.
  9771. (find_use_val): New.
  9772. (replace_expr_with_values): New.
  9773. (log_op_type): New.
  9774. (use_type): New, partially split out of...
  9775. (count_uses): ... this. Count new micro-ops.
  9776. (count_uses_1): Adjust.
  9777. (count_stores): Adjust.
  9778. (count_with_sets): New.
  9779. (VAL_NEEDS_RESOLUTION): New.
  9780. (VAL_HOLDS_TRACK_EXPR): New.
  9781. (VAL_EXPR_IS_COPIED): New.
  9782. (VAL_EXPR_IS_CLOBBERED): New.
  9783. (add_uses): Adjust. Generate new micro-ops.
  9784. (add_uses_1): Adjust.
  9785. (add_stores): Generate new micro-ops.
  9786. (add_with_sets): New.
  9787. (find_src_status): Adjust.
  9788. (find_src_set_src): Adjust.
  9789. (compute_bb_dataflow): Use dataflow_set_clear_at_call.
  9790. Handle new micro-ops. Canonicalize value equivalances.
  9791. (vt_find_locations): Compute total size of hash tables for
  9792. dumping. Perform merge for var-tracking-assignments. Don't
  9793. disregard single-block loops.
  9794. (dump_attrs_list): Handle decl_or_value.
  9795. (dump_variable): Take variable. Deal with decl_or_value.
  9796. (dump_variable_slot): New.
  9797. (dump_vars): Use it.
  9798. (dump_dataflow_sets): Adjust.
  9799. (set_slot_part): New, extended to support one-part variables
  9800. after splitting out of...
  9801. (set_variable_part): ... this.
  9802. (clobber_slot_part): New, split out of...
  9803. (clobber_variable_part): ... this.
  9804. (delete_slot_part): New, split out of...
  9805. (delete_variable_part): .... this.
  9806. (check_wrap_constant): New.
  9807. (vt_expand_loc_callback): New.
  9808. (vt_expand_loc): New.
  9809. (emit_note_insn_var_location): Adjust. Handle values. Handle
  9810. EMIT_NOTE_AFTER_CALL_INSN.
  9811. (emit_notes_for_differences_1): Adjust. Handle values.
  9812. (emit_notes_for_differences_2): Likewise.
  9813. (emit_notes_for_differences): Adjust.
  9814. (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
  9815. Adjust. Handle new micro-ops.
  9816. (vt_add_function_parameters): Adjust. Create and bind values.
  9817. (vt_initialize): Adjust. Initialize scratch_regs and
  9818. valvar_pool, flooded and perm.. Initialize and use cselib. Log
  9819. operations. Move some code to count_with_sets and add_with_sets.
  9820. (delete_debug_insns): New.
  9821. (vt_debug_insns_local): New.
  9822. (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
  9823. cselib.
  9824. (var_tracking_main): If var-tracking-assignments is enabled
  9825. but var-tracking isn't, delete debug insns and leave. Likewise
  9826. if we exceed limits or fail the stack adjustments tests, and
  9827. after all var-tracking processing.
  9828. More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
  9829. (dataflow_set): Add traversed_vars.
  9830. (value_chain, const_value_chain): New typedefs.
  9831. (value_chain_pool, value_chains): New variables.
  9832. (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
  9833. add_value_chains, add_cselib_value_chains, remove_value_chain,
  9834. remove_value_chains, remove_cselib_value_chains): New functions.
  9835. (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
  9836. shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
  9837. static inlines.
  9838. (shared_hash_find_slot_unshare, shared_hash_find_slot,
  9839. shared_hash_find_slot_noinsert, shared_hash_find): Update.
  9840. (dst_can_be_shared): New variable.
  9841. (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
  9842. Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
  9843. different from set->vars, look up slot again instead of using the
  9844. passed in slot.
  9845. (dataflow_set_init): Initialize traversed_vars.
  9846. (variable_union): Use shared_hash_*. Use initially NO_INSERT
  9847. lookup if set->vars is shared. Don't keep slot cleared before
  9848. calling unshare_variable. Unshare set->vars if needed. Adjust
  9849. unshare_variable callers. Clear dst_can_be_shared if needed.
  9850. Even ->refcount == 1 vars must be unshared if set->vars is shared
  9851. and var needs to be modified.
  9852. (dataflow_set_union): Set traversed_vars during canonicalization.
  9853. (VALUE_CHANGED, DECL_CHANGED): Define.
  9854. (set_dv_changed, dv_changed_p): New static inlines.
  9855. (track_expr_p): Clear DECL_CHANGED.
  9856. (dump_dataflow_sets): Set it.
  9857. (variable_was_changed): Call set_dv_changed.
  9858. (emit_note_insn_var_location): Likewise.
  9859. (changed_variables_stack): New variable.
  9860. (check_changed_vars_1, check_changed_vars_2): New functions.
  9861. (emit_notes_for_changes): Do nothing if changed_variables is
  9862. empty. Traverse changed_variables with check_changed_vars_1,
  9863. call check_changed_vars_2 on each changed_variables_stack entry.
  9864. (emit_notes_in_bb): Add SET argument. Just clear it at the
  9865. beginning, use it instead of local &set, don't destroy it at the end.
  9866. (vt_emit_notes): Call dataflow_set_clear early on all
  9867. VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
  9868. computed set, dataflow_set_clear also VTI(bb)->in when we are
  9869. done with the basic block. Initialize changed_variables_stack,
  9870. free it afterwards. If ENABLE_CHECKING verify that after noting
  9871. differences to an empty set value_chains hash table is empty.
  9872. (vt_initialize): Initialize value_chains and value_chain_pool.
  9873. (vt_finalize): Delete value_chains htab, free value_chain_pool.
  9874. (variable_tracking_main): Call dump_dataflow_sets before calling
  9875. vt_emit_notes, not after it.
  9876. * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
  9877. (propagate_var_def_into_debug_stmts): Declare.
  9878. * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
  9879. (df_set_note): Reject debug insns.
  9880. (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
  9881. add notes to debug insns.
  9882. (df_note_bb_compute): Adjust. Likewise.
  9883. (df_simulate_uses): Skip debug insns.
  9884. (df_simulate_initialize_backwards): Likewise.
  9885. * reg-stack.c (subst_stack_regs_in_debug_insn): New.
  9886. (subst_stack_regs_pat): Reject debug insns.
  9887. (convert_regs_1): Handle debug insns.
  9888. * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
  9889. (print-rtl.o): Depend on cselib.h.
  9890. (cselib.o): Depend on TREE_PASS_H.
  9891. (var-tracking.o): Depend on cselib.h and TARGET_H.
  9892. * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
  9893. (init_ready_list): Skip boundary debug insns.
  9894. (add_branch_dependences): Skip debug insns.
  9895. (free_block_dependencies): Check for blocks with only debug insns.
  9896. (compute_priorities): Likewise.
  9897. * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
  9898. (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
  9899. all callers.
  9900. (gimple_build_debug_bind_stat): New.
  9901. (empty_body_p): Skip debug stmts.
  9902. (gimple_has_side_effects): Likewise.
  9903. (gimple_rhs_has_side_effects): Likewise.
  9904. * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
  9905. (gimple_build_debug_bind_stat): Declare.
  9906. (gimple_build_debug_bind): Define.
  9907. (is_gimple_debug): New.
  9908. (gimple_debug_bind_p): New.
  9909. (gimple_debug_bind_get_var): New.
  9910. (gimple_debug_bind_get_value): New.
  9911. (gimple_debug_bind_get_value_ptr): New.
  9912. (gimple_debug_bind_set_var): New.
  9913. (gimple_debug_bind_set_value): New.
  9914. (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
  9915. (gimple_debug_bind_reset_value): New.
  9916. (gimple_debug_bind_has_value_p): New.
  9917. (gsi_next_nondebug): New.
  9918. (gsi_prev_nondebug): New.
  9919. (gsi_start_nondebug_bb): New.
  9920. (gsi_last_nondebug_bb): New.
  9921. * sched-vis.c (print_pattern): Handle VAR_LOCATION.
  9922. (print_insn): Handle DEBUG_INSN.
  9923. * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
  9924. of first insn prevail.
  9925. (first_stmt): Skip debug stmts.
  9926. (first_non_label_stmt): Likewise.
  9927. (last_stmt): Likewise.
  9928. (has_zero_uses_1): New.
  9929. (single_imm_use_1): New.
  9930. (verify_gimple_debug): New.
  9931. (verify_types_in_gimple_stmt): Handle debug stmts.
  9932. (verify_stmt): Likewise.
  9933. (debug_loop_num): Skip debug stmts.
  9934. (remove_edge_and_dominated_blocks): Remove dominators last.
  9935. * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
  9936. (linearize_expr): Likewise.
  9937. * config/i386/i386.c (ix86_delegitimize_address): Call
  9938. default implementation.
  9939. * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
  9940. (group_barrier_needed): Skip debug insns.
  9941. (emit_insn_group_barriers): Likewise.
  9942. (emit_all_insn_group_barriers): Likewise.
  9943. (ia64_variable_issue): Handle debug insns.
  9944. (ia64_dfa_new_cycle): Likewise.
  9945. (final_emit_insn_group_barriers): Skip debug insns.
  9946. (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
  9947. def cfa without frame.
  9948. (process_set): Likewise.
  9949. (process_for_unwind_directive): Pass frame on.
  9950. * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
  9951. (rs6000_delegitimize_address): New.
  9952. (rs6000_debug_adjust_cost): Handle debug insns.
  9953. (is_microcoded_insn): Likewise.
  9954. (is_cracked_insn): Likewise.
  9955. (is_nonpipeline_insn): Likewise.
  9956. (insn_must_be_first_in_group): Likewise.
  9957. (insn_must_be_last_in_group): Likewise.
  9958. (force_new_group): Likewise.
  9959. * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
  9960. contains only debug insns.
  9961. (rtl_merge_blocks): Skip debug insns.
  9962. (purge_dead_edges): Likewise.
  9963. (rtl_block_ends_with_call_p): Skip debug insns.
  9964. * dce.c (deletable_insn_p): Handle VAR_LOCATION.
  9965. (mark_reg_dependencies): Skip debug insns.
  9966. * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
  9967. * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
  9968. * tree-ssa-threadedge.c
  9969. (record_temporary_equivalences_from_stmts): Skip debug stmts.
  9970. * regcprop.c (replace_oldest_value_addr): Skip debug insns.
  9971. (replace_oldest_value_mem): Use ALL_REGS for debug insns.
  9972. (copyprop_hardreg_forward_1): Handle debug insns.
  9973. * reload1.c (reload): Skip debug insns. Replace unassigned
  9974. pseudos in debug insns with their equivalences.
  9975. (eliminate_regs_in_insn): Skip debug insns.
  9976. (emit_input_reload_insns): Skip debug insns at first, adjust
  9977. them later.
  9978. * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
  9979. (get_indirect_ref_operands): Pass opf_no_vops on.
  9980. (get_expr_operands): Likewise. Skip debug stmts.
  9981. (parse_ssa_operands): Scan debug insns with opf_no_vops.
  9982. 2009-09-01 Richard Henderson <rth@redhat.com>
  9983. * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
  9984. stmt_ends_pp_p statements at least once.
  9985. * tree-vrp.c (vrp_initialize): Likewise.
  9986. (vrp_visit_stmt): Be prepared for non-interesting stmts.
  9987. 2009-09-01 Dodji Seketeli <dodji@redhat.com>
  9988. PR bootstrap/41205
  9989. Fix AIX bootstrap after PR debug/30161
  9990. * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
  9991. that is a GNU extension.
  9992. (tmpl_value_parm_die_table): Move the definition of this global
  9993. outside #ifdef DWARF2_DEBUGGING_INFO region.
  9994. 2009-09-01 Richard Guenther <rguenther@suse.de>
  9995. * tree.c (tree_expr_size): New function.
  9996. * tree.h (tree_expr_size): Declare.
  9997. * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
  9998. * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
  9999. * langhooks.c (lhd_expr_size): Remove.
  10000. * langhooks.h (struct lang_hooks): Remove expr_size.
  10001. * explow.c (expr_size): Use tree_expr_size.
  10002. (int_expr_size): Likewise.
  10003. * langhooks-def.h (lhd_expr_size): Remove.
  10004. (LANG_HOOKS_EXPR_SIZE): Likewise.
  10005. (LANG_HOOKS_INITIALIZER): Adjust.
  10006. 2009-09-01 Richard Guenther <rguenther@suse.de>
  10007. * tree-flow.h (mark_addressable): Move declaration ...
  10008. * tree.h (mark_addressable): ... here.
  10009. * stmt.c (expand_asm_operands): Use mark_addressable, not
  10010. lang_hooks.mark_addressable.
  10011. * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
  10012. LANG_HOOKS_MARK_ADDRESSABLE.
  10013. * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
  10014. * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
  10015. 2009-08-31 Chris Demetriou <cgd@google.com>
  10016. * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
  10017. vectorize if not TARGET_SSE2.
  10018. 2009-08-31 DJ Delorie <dj@redhat.com>
  10019. * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
  10020. registers if no coprocessor is enabled.
  10021. 2009-08-31 Dodji Seketeli <dodji@redhat.com>
  10022. PR debug/30161
  10023. * cgraph.h (cgraph_get_node): Declare ...
  10024. * cgraph.c (cgraph_get_node): ... new function.
  10025. * dwarf2out.c (gen_generic_params_dies,
  10026. generic_parameter_die, tree_add_const_value_attribute_for_decl,
  10027. make_ith_pack_parameter_name,
  10028. append_entry_to_tmpl_value_parm_die_table,
  10029. gen_remaining_tmpl_value_param_die_attribute): New functions.
  10030. (gen_subprogram_die): Generate debug info for template parameters
  10031. if debug info level is higher than DINFO_LEVEL_TERSE.
  10032. Use tree_add_const_value_attribute_for_decl instead of
  10033. tree_add_const_value_attribute.
  10034. (gen_const_die): Use tree_add_const_value_attribute_for_decl
  10035. instead of tree_add_const_value_attribute.
  10036. (gen_struct_or_union_type_die): Generate debug
  10037. info for template parameters if debug info level is higher than
  10038. DINFO_LEVEL_TERSE.
  10039. (tree_add_const_value_attribute): Handle integral and pointer
  10040. constants. Update comment.
  10041. (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
  10042. (dwarf_attr_name): Support DW_AT_GNU_template_name.
  10043. (reference_to_unused): Fix thinko. Remove redundant predicates from
  10044. tests.
  10045. (tree_add_const_value_attribute): Make this work for constant
  10046. expressions only.
  10047. tree_add_const_value_attribute_for_decl is to be used for variable
  10048. DECLs now.
  10049. (add_location_or_const_value_attribute): Use
  10050. tree_add_const_value_attribute_for_decl now.
  10051. (dwarf2out_finish): Emit the DW_AT_const_value attribute of
  10052. DW_TAG_template_value_param DIEs after function DIEs have been
  10053. emitted.
  10054. * langhooks.h (lang_hooks_for_types): Add
  10055. get_argument_pack_elems.
  10056. (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
  10057. (lang_hooks): Added get_innermost_generic_parms,
  10058. get_innermost_generic_args.
  10059. * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
  10060. LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
  10061. LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
  10062. LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
  10063. 2009-08-31 DJ Delorie <dj@redhat.com>
  10064. * config/mep/mep.c (machine_function): Add frame_locked flag. Set
  10065. it once we start generating the prologue or epilogue.
  10066. (mep_call_saves_register): If the frame is locked, re-use
  10067. cached values.
  10068. (mep_assign_save_slots): New, broken out from mep_expand_prologue.
  10069. (mep_expand_prologue): Call it.
  10070. (mep_expand_epilogue): Likewise.
  10071. (mep_start_function): Use the same logic as mep_expand_prologue.
  10072. (mep_pass_by_reference): Make logic more readable.
  10073. (mep_return_in_memory): Zero-sized objects are passed in memory.
  10074. (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
  10075. 2009-08-31 Richard Guenther <rguenther@suse.de>
  10076. * builtins.c (fold_builtin_memory_op): Use the alias oracle
  10077. to query if the memory regions for memmove overlap.
  10078. * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
  10079. asserts on pointers, instead deal with odd trees.
  10080. (ptr_derefs_may_alias_p): Likewise.
  10081. (refs_may_alias_p_1): Constructor bases also never alias.
  10082. 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
  10083. * doc/install.texi (Final install): Adjust reference on where to
  10084. order printed manuals.
  10085. 2009-08-30 Olivier Hainque <hainque@adacore.com>
  10086. * dwarf2out.c (switch_to_frame_table_section): Move
  10087. definition prior to first use.
  10088. 2009-08-30 Richard Guenther <rguenther@suse.de>
  10089. PR tree-optimization/41186
  10090. * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
  10091. (ao_ref_init_from_ptr_and_size): New function.
  10092. (ref_maybe_used_by_call_p_1): Be more precise tracking
  10093. used ranges for builtin functions.
  10094. (ref_maybe_used_by_call_p): Adjust.
  10095. (call_may_clobber_ref_p_1): Be more precise tracking clobbered
  10096. ranges for builtin functions.
  10097. * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
  10098. 2009-08-30 Alan Modra <amodra@bigpond.net.au>
  10099. PR target/41081
  10100. * fwprop.c (get_reg_use_in): Delete.
  10101. (free_load_extend): New function.
  10102. (forward_propagate_subreg): Use it.
  10103. 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
  10104. * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
  10105. 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
  10106. PR/41184
  10107. * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
  10108. padding.
  10109. 2009-08-29 Douglas B Rupp <rupp@gnat.com>
  10110. * crtstuff.c (__do_global_dtors_aux): Use atexit if no
  10111. fini or fini_array section.
  10112. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10113. * graphite-dependences.c (graphite_legal_transform_bb): Call
  10114. pbb_remove_duplicate_pdrs.
  10115. * graphite-poly.c (can_collapse_pdr): Removed.
  10116. (pdr_find_duplicate): Removed.
  10117. (can_collapse_pdrs): New.
  10118. (pbb_remove_duplicate_pdrs): New.
  10119. (new_poly_dr): Do not look for duplicates.
  10120. * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
  10121. (PBB_PDR_DUPLICATES_REMOVED): New.
  10122. (pbb_remove_duplicate_pdrs): Declared.
  10123. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10124. * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
  10125. the strides by multiplying by PDR_NB_REFS.
  10126. * graphite-poly.c (can_collapse_pdr): New.
  10127. (pdr_find_duplicate): New.
  10128. (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
  10129. Initialize PDR_NB_REFS.
  10130. * graphite-poly.h (struct poly_dr): Add field nb_refs.
  10131. (PDR_NB_REFS): New.
  10132. (new_poly_dr): Number of subscripts is a graphite_dim_t.
  10133. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10134. PR middle-end/40965
  10135. * graphite-poly.c (apply_poly_transforms): Remove legality test before
  10136. any transform.
  10137. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10138. * graphite-dependences.c (pddr_original_scattering): Return NULL
  10139. for read-read dependence relations.
  10140. * graphite-poly.h (enum poly_dr_type): Fix comment.
  10141. (pdr_read_p): New.
  10142. (pdr_write_p): New.
  10143. (pdr_may_write_p): New.
  10144. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10145. * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
  10146. (struct poly_dr): Same.
  10147. (new_poly_dr): Same.
  10148. * graphite-poly.c (new_poly_dr): Same.
  10149. * graphite-dependences.c (dot_deps): Disable call to system.
  10150. 2009-08-28 Cary Coutant <ccoutant@google.com>
  10151. PR debug/41063
  10152. * dwarf2out.c (gen_type_die_with_usage): Use proper context for
  10153. struct/union/enum types local to a function.
  10154. 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  10155. Sebastian Pop <sebastian.pop@amd.com>
  10156. * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
  10157. pbb_strip_mine_time_depth. Changed the implementation so that
  10158. transformation is expressed as a transformation on
  10159. time (scatttering) dimensions. Also, ensures that the 2d+1
  10160. scheduling format is preserved.
  10161. (pbb_strip_mine_profitable_p): Profitability is based on the
  10162. iteration number of a given time (scattering) dimension,
  10163. and not on a original loop depth dimension.
  10164. (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
  10165. (pbb_do_strip_mine): Call psct_dynamic_dim.
  10166. * graphite-poly.c (pbb_number_of_iterations_at_time): New.
  10167. * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
  10168. (pbb_nb_dynamic_scattering_transform): New.
  10169. (psct_dynamic_dim): New.
  10170. 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  10171. * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
  10172. * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
  10173. * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
  10174. * graphite-interchange.c (build_linearized_memory_access): Same.
  10175. (memory_stride_in_loop): Same.
  10176. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10177. * graphite-dependences.c (pddr_original_scattering): New.
  10178. (graphite_legal_transform_dr): Call pddr_original_scattering.
  10179. (dot_deps_1): New.
  10180. (dot_deps): New.
  10181. * graphite-dependences.h (dot_deps): Declared.
  10182. * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
  10183. (print_pdr): Print PDR_ID.
  10184. * graphite-poly.h (struct poly_dr): Add field id.
  10185. (PDR_ID): New.
  10186. (pbb_index): New.
  10187. * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
  10188. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10189. * graphite-dependences.c (graphite_carried_dependence_level_k): Do
  10190. not delete the original dependence relation.
  10191. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10192. * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
  10193. (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
  10194. (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
  10195. (free_poly_ddr): New.
  10196. (pddr_is_empty): New.
  10197. (dependence_polyhedron_1): Now returns a poly_ddr_p.
  10198. (dependence_polyhedron): Same. Remove useless gcc_assert.
  10199. Remove fprintfs.
  10200. (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
  10201. (graphite_carried_dependence_level_k): Call pddr_is_empty.
  10202. * graphite-dependences.h (enum poly_dependence_kind): New.
  10203. (poly_dr_pair): Renamed poly_ddr. Added a field kind.
  10204. (PDRP_SOURCE): Renamed PDDR_SOURCE.
  10205. (PDRP_SINK): Renamed PDDR_SINK.
  10206. (PDRP_DDP): Renamed PDDR_DDP.
  10207. (PDDR_KIND): New.
  10208. (free_poly_ddr): Declared.
  10209. * graphite-poly.c (new_scop): Use the new hash function names.
  10210. * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
  10211. into original_pddrs.
  10212. (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
  10213. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10214. * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
  10215. bounds with LT_EXPR to make niter analysis more precise on code
  10216. generated by Graphite.
  10217. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  10218. * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
  10219. (graphite_legal_transform_bb): Same.
  10220. (poly_drs_may_alias_p): Same.
  10221. 2009-08-28 Richard Guenther <rguenther@suse.de>
  10222. * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
  10223. 2009-08-28 Jan Beulich <jbeulich@novell.com>
  10224. * config/i386/netware.c: Include langhooks.h.
  10225. (i386_nlm_encode_section_info): Simplify.
  10226. (netware_override_options): Delete.
  10227. * config/i386/netware.h (netware_override_options): Delete
  10228. declaration.
  10229. (OVERRIDE_OPTIONS): Delete definition.
  10230. (SUBTARGET_OVERRIDE_OPTIONS): Define.
  10231. (ASM_COMMENT_START): Define.
  10232. * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
  10233. 2009-08-28 Jan Beulich <jbeulich@novell.com>
  10234. * configure.ac: For in-tree ld, do a plain version check to
  10235. determine whether comdat groups are supported.
  10236. * configure: Regenerate.
  10237. 2009-08-28 Olivier Hainque <hainque@adacore.com>
  10238. * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
  10239. always defined. Reflect definition or absence of such for
  10240. COLLECT_EXPORT_LIST. Readability helper.
  10241. (scanfilter): New enum, to help control what symbols
  10242. are to be considered or ignored by scan_prog_file.
  10243. (enum pass): Rename as "scanpass", moved together with scanfilter
  10244. prior to scan_prog_file's prototype.
  10245. (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
  10246. Group prototype with the scanpass/scanfilter definitions, factorize
  10247. head comments for the several implementations at the prototype.
  10248. (main): Reorganize the first pass link control to let AIX
  10249. drag only the needed frame tables in executables. Prevent
  10250. frame tables collection during the scan aimed at static ctors.
  10251. Pre-link and scan for frame tables later to compensate.
  10252. * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
  10253. A C statement to issue assembly directives that create a reference
  10254. to the given DWARF table identifier label from the current function
  10255. section.
  10256. * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
  10257. to differentiate first time section entry. Only emit a .data
  10258. tables start identifier label the first time around.
  10259. (switch_to_frame_table_section): New function. Helper for
  10260. output_call_frame_info to switch possibly BACK into the eh_frame
  10261. or the debug_frame section depending on FOR_EH.
  10262. (output_call_frame_info): Use helper to first enter the proper
  10263. frame section.
  10264. (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
  10265. emit a link to the frame table start label from each function
  10266. section.
  10267. * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
  10268. New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
  10269. * config/rs6000/rs6000-protos.h: Declare it.
  10270. * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
  10271. 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
  10272. * config/sh/sh.c (split_branches): Check the result of
  10273. next_active_insn.
  10274. 2009-08-27 Steve Ellcey <sje@cup.hp.com>
  10275. * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
  10276. using -pthread -fopenmp
  10277. 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
  10278. * doc/service.texi (service directory): Update URL.
  10279. 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
  10280. PR rtl-optimization/40861
  10281. * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
  10282. extract word from a multi-word subreg for negative byte positions.
  10283. 2009-08-27 Tristan Gingold <gingold@adacore.com>
  10284. Douglas B Rupp <rupp@gnat.com>
  10285. * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
  10286. (SECTION_VMS_OVERLAY): Define.
  10287. (ia64_vms_common_object_attribute): Added. Handle the "common_object"
  10288. attribute.
  10289. (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
  10290. for common_object.
  10291. (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
  10292. common_object declarations.
  10293. (ia64_section_type_flags): Set section flag for common_object.
  10294. * config/ia64/ia64-protos.h
  10295. (ia64_vms_output_aligned_decl_common): Declare.
  10296. (ia64_vms_elf_asm_named_section): Declare.
  10297. 2009-08-27 Michael Matz <matz@suse.de>
  10298. * expr.c (expand_expr_real_2): New function taking exploded
  10299. unary or binary expression, split out from ...
  10300. (expand_expr_real_1): ... here. Move over all unary/binary
  10301. switch parts to above function, in particular these codes:
  10302. PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
  10303. MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
  10304. ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
  10305. FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
  10306. FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
  10307. BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
  10308. BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
  10309. LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
  10310. NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
  10311. UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
  10312. WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
  10313. VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
  10314. VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
  10315. VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
  10316. VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
  10317. VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
  10318. VEC_PACK_FIX_TRUNC_EXPR.
  10319. (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
  10320. full expression.
  10321. 2009-08-27 Richard Guenther <rguenther@suse.de>
  10322. * gengtype.c (main): Handle uint64_t.
  10323. * ipa-utils.c (get_base_var): Indent properly.
  10324. * tree-ssa-live.c (debug_scope_block): New function.
  10325. * tree-flow.h (debug_scope_block): Declare.
  10326. * tree-ssa-copy.c (replace_exp_1): Add vertical space.
  10327. * basic-block.h (enum profile_status): Rename to
  10328. enum profile_status_d.
  10329. (x_profile_status): Adjust type.
  10330. 2009-08-27 Dodji Seketeli <dodji@redhat.com>
  10331. PR debug/41170
  10332. * dwarf2out.c (get_context_die): Declare this static function.
  10333. (gen_type_die_with_usage): Make sure a DIE is a generated for
  10334. the context of a typedef.
  10335. 2009-08-26 Anatoly Sokolov <aesok@post.ru>
  10336. * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
  10337. switch.
  10338. 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
  10339. * config/mips/mips-protos.h (mips_output_sync): Declare.
  10340. (mips_sync_loop_insns): Likewise.
  10341. (mips_output_sync_loop): Replace first two parameters with an rtx.
  10342. * config/mips/mips.c (mips_multi_member): New structure.
  10343. (mips_multi_members): New variable.
  10344. (mips_multi_start): New function.
  10345. (mips_multi_add): Likewise.
  10346. (mips_multi_add_insn): Likewise.
  10347. (mips_multi_add_label): Likewise.
  10348. (mips_multi_last_index): Likewise.
  10349. (mips_multi_copy_insn): Likewise.
  10350. (mips_multi_set_operand): Likewise.
  10351. (mips_multi_write): Likewise.
  10352. (mips_print_operand_punctuation): Remove '%|' and '%-'.
  10353. (mips_init_print_operand_punct): Update accordingly.
  10354. (mips_start_ll_sc_sync_block): New function.
  10355. (mips_end_ll_sc_sync_block): Likewise.
  10356. (mips_output_sync): Likewise.
  10357. (mips_sync_insn1_template): Likewise.
  10358. (mips_sync_insn2_template): Likewise.
  10359. (mips_get_sync_operand): Likewise.
  10360. (mips_process_sync_loop): Likewise.
  10361. (mips_output_sync_loop): Use mips_process_sync_loop.
  10362. (mips_sync_loop_insns): New function.
  10363. * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
  10364. (MIPS_COMPARE_AND_SWAP_12): Likewise.
  10365. (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
  10366. (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
  10367. (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
  10368. (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
  10369. (MIPS_SYNC_OLD_OP_12): Likewise.
  10370. (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
  10371. (MIPS_SYNC_NEW_OP_12): Likewise.
  10372. (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
  10373. (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
  10374. (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
  10375. (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
  10376. (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
  10377. (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
  10378. * config/mips/mips.md (sync_mem): New attribute.
  10379. (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
  10380. (sync_exclusive_mask, sync_required_oldval): Likewise.
  10381. (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
  10382. (sync_release_barrier): Likewise.
  10383. (length): Handle sync loops.
  10384. (sync): Use mips_output_sync.
  10385. * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
  10386. (sync_compare_and_swap<mode>): Set the new sync_* attributes
  10387. and use mips_output_sync_loop.
  10388. (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
  10389. (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
  10390. (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
  10391. (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
  10392. (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
  10393. (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
  10394. (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
  10395. (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
  10396. (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
  10397. 2009-08-26 Richard Guenther <rguenther@suse.de>
  10398. PR middle-end/41163
  10399. * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
  10400. the types to not match.
  10401. * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
  10402. verification.
  10403. * tree-ssa.c (useless_type_conversion_p): Conversions to
  10404. pointers to unprototyped functions are useless.
  10405. 2009-08-26 Richard Guenther <rguenther@suse.de>
  10406. * tree-ssa-structalias.c (create_variable_info_for): Remove strange
  10407. whole-program condition, prepare to be called for non-globals.
  10408. (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
  10409. params build a representative with known type and track its fields.
  10410. 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
  10411. * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
  10412. clearing by a taken branch.
  10413. (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
  10414. effectively after bbro pass.
  10415. (sync_nand<mode>): Ditto.
  10416. (sync_old_<fetchop_name><mode>): Ditto.
  10417. (sync_old_nand<mode>): Ditto.
  10418. (sync_new_<fetchop_name><mode>): Dito.
  10419. (sync_new_nand<mode>): Ditto.
  10420. (sync_compare_and_swap<mode>_1): Ditto.
  10421. (*sync_compare_and_swap<mode>): Ditto.
  10422. (sync_lock_test_and_set<mode>_1): Ditto.
  10423. ("sync_lock_test_and_set<mode>): Ditto.
  10424. 2009-08-25 Douglas B Rupp <rupp@gnat.com>
  10425. * hwint.h (HOST_LONG_FORMAT): New macro
  10426. * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
  10427. Use HOST_PTR_PRINTF.
  10428. * system.h (HOST_PTR_PRINTF): Resurrect old macro
  10429. * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
  10430. (HOST_PTR_PRINTF): Document.
  10431. 2009-08-25 Jan Hubicka <jh@suse.cz>
  10432. * config/i386/bmmintrin.h: Replace by #error.
  10433. Revert:
  10434. Michael Meissner <michael.meissner@amd.com>
  10435. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  10436. Tony Linthicum <tony.linthicum@amd.com>
  10437. * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
  10438. (TARGET_ROUND): New macro for the round/ptest instructions which
  10439. are shared between SSE4.1 and SSE5.
  10440. (OPTION_MASK_ISA_ROUND): Ditto.
  10441. (OPTION_ISA_ROUND): Ditto.
  10442. (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
  10443. (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
  10444. * config/i386/i386.opt (-msse5): New switch for SSE5 support.
  10445. (-mfused-madd): New switch to give users control over whether the
  10446. compiler optimizes to use the multiply/add SSE5 instructions.
  10447. * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
  10448. (ix86_handle_option): Turn off 3dnow if -msse5.
  10449. (override_options): Add SSE5 support.
  10450. (print_operand): %Y prints comparison codes for SSE5 com/pcom
  10451. instructions.
  10452. (ix86_expand_sse_movcc): Add SSE5 support.
  10453. (ix86_expand_sse5_unpack): New function to use pperm to unpack a
  10454. vector type to the next largest size.
  10455. (ix86_expand_sse5_pack): New function to use pperm to pack a
  10456. vector type to the next smallest size.
  10457. (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
  10458. (IX86_BUILTIN_FMADDSD): Ditto.
  10459. (IX86_BUILTIN_FMADDPS): Ditto.
  10460. (IX86_BUILTIN_FMADDPD): Ditto.
  10461. (IX86_BUILTIN_FMSUBSS): Ditto.
  10462. (IX86_BUILTIN_FMSUBSD): Ditto.
  10463. (IX86_BUILTIN_FMSUBPS): Ditto.
  10464. (IX86_BUILTIN_FMSUBPD): Ditto.
  10465. (IX86_BUILTIN_FNMADDSS): Ditto.
  10466. (IX86_BUILTIN_FNMADDSD): Ditto.
  10467. (IX86_BUILTIN_FNMADDPS): Ditto.
  10468. (IX86_BUILTIN_FNMADDPD): Ditto.
  10469. (IX86_BUILTIN_FNMSUBSS): Ditto.
  10470. (IX86_BUILTIN_FNMSUBSD): Ditto.
  10471. (IX86_BUILTIN_FNMSUBPS): Ditto.
  10472. (IX86_BUILTIN_FNMSUBPD): Ditto.
  10473. (IX86_BUILTIN_PCMOV_V2DI): Ditto.
  10474. (IX86_BUILTIN_PCMOV_V4SI): Ditto.
  10475. (IX86_BUILTIN_PCMOV_V8HI): Ditto.
  10476. (IX86_BUILTIN_PCMOV_V16QI): Ditto.
  10477. (IX86_BUILTIN_PCMOV_V4SF): Ditto.
  10478. (IX86_BUILTIN_PCMOV_V2DF): Ditto.
  10479. (IX86_BUILTIN_PPERM): Ditto.
  10480. (IX86_BUILTIN_PERMPS): Ditto.
  10481. (IX86_BUILTIN_PERMPD): Ditto.
  10482. (IX86_BUILTIN_PMACSSWW): Ditto.
  10483. (IX86_BUILTIN_PMACSWW): Ditto.
  10484. (IX86_BUILTIN_PMACSSWD): Ditto.
  10485. (IX86_BUILTIN_PMACSWD): Ditto.
  10486. (IX86_BUILTIN_PMACSSDD): Ditto.
  10487. (IX86_BUILTIN_PMACSDD): Ditto.
  10488. (IX86_BUILTIN_PMACSSDQL): Ditto.
  10489. (IX86_BUILTIN_PMACSSDQH): Ditto.
  10490. (IX86_BUILTIN_PMACSDQL): Ditto.
  10491. (IX86_BUILTIN_PMACSDQH): Ditto.
  10492. (IX86_BUILTIN_PMADCSSWD): Ditto.
  10493. (IX86_BUILTIN_PMADCSWD): Ditto.
  10494. (IX86_BUILTIN_PHADDBW): Ditto.
  10495. (IX86_BUILTIN_PHADDBD): Ditto.
  10496. (IX86_BUILTIN_PHADDBQ): Ditto.
  10497. (IX86_BUILTIN_PHADDWD): Ditto.
  10498. (IX86_BUILTIN_PHADDWQ): Ditto.
  10499. (IX86_BUILTIN_PHADDDQ): Ditto.
  10500. (IX86_BUILTIN_PHADDUBW): Ditto.
  10501. (IX86_BUILTIN_PHADDUBD): Ditto.
  10502. (IX86_BUILTIN_PHADDUBQ): Ditto.
  10503. (IX86_BUILTIN_PHADDUWD): Ditto.
  10504. (IX86_BUILTIN_PHADDUWQ): Ditto.
  10505. (IX86_BUILTIN_PHADDUDQ): Ditto.
  10506. (IX86_BUILTIN_PHSUBBW): Ditto.
  10507. (IX86_BUILTIN_PHSUBWD): Ditto.
  10508. (IX86_BUILTIN_PHSUBDQ): Ditto.
  10509. (IX86_BUILTIN_PROTB): Ditto.
  10510. (IX86_BUILTIN_PROTW): Ditto.
  10511. (IX86_BUILTIN_PROTD): Ditto.
  10512. (IX86_BUILTIN_PROTQ): Ditto.
  10513. (IX86_BUILTIN_PROTB_IMM): Ditto.
  10514. (IX86_BUILTIN_PROTW_IMM): Ditto.
  10515. (IX86_BUILTIN_PROTD_IMM): Ditto.
  10516. (IX86_BUILTIN_PROTQ_IMM): Ditto.
  10517. (IX86_BUILTIN_PSHLB): Ditto.
  10518. (IX86_BUILTIN_PSHLW): Ditto.
  10519. (IX86_BUILTIN_PSHLD): Ditto.
  10520. (IX86_BUILTIN_PSHLQ): Ditto.
  10521. (IX86_BUILTIN_PSHAB): Ditto.
  10522. (IX86_BUILTIN_PSHAW): Ditto.
  10523. (IX86_BUILTIN_PSHAD): Ditto.
  10524. (IX86_BUILTIN_PSHAQ): Ditto.
  10525. (IX86_BUILTIN_FRCZSS): Ditto.
  10526. (IX86_BUILTIN_FRCZSD): Ditto.
  10527. (IX86_BUILTIN_FRCZPS): Ditto.
  10528. (IX86_BUILTIN_FRCZPD): Ditto.
  10529. (IX86_BUILTIN_CVTPH2PS): Ditto.
  10530. (IX86_BUILTIN_CVTPS2PH): Ditto.
  10531. (IX86_BUILTIN_COMEQSS): Ditto.
  10532. (IX86_BUILTIN_COMNESS): Ditto.
  10533. (IX86_BUILTIN_COMLTSS): Ditto.
  10534. (IX86_BUILTIN_COMLESS): Ditto.
  10535. (IX86_BUILTIN_COMGTSS): Ditto.
  10536. (IX86_BUILTIN_COMGESS): Ditto.
  10537. (IX86_BUILTIN_COMUEQSS): Ditto.
  10538. (IX86_BUILTIN_COMUNESS): Ditto.
  10539. (IX86_BUILTIN_COMULTSS): Ditto.
  10540. (IX86_BUILTIN_COMULESS): Ditto.
  10541. (IX86_BUILTIN_COMUGTSS): Ditto.
  10542. (IX86_BUILTIN_COMUGESS): Ditto.
  10543. (IX86_BUILTIN_COMORDSS): Ditto.
  10544. (IX86_BUILTIN_COMUNORDSS): Ditto.
  10545. (IX86_BUILTIN_COMFALSESS): Ditto.
  10546. (IX86_BUILTIN_COMTRUESS): Ditto.
  10547. (IX86_BUILTIN_COMEQSD): Ditto.
  10548. (IX86_BUILTIN_COMNESD): Ditto.
  10549. (IX86_BUILTIN_COMLTSD): Ditto.
  10550. (IX86_BUILTIN_COMLESD): Ditto.
  10551. (IX86_BUILTIN_COMGTSD): Ditto.
  10552. (IX86_BUILTIN_COMGESD): Ditto.
  10553. (IX86_BUILTIN_COMUEQSD): Ditto.
  10554. (IX86_BUILTIN_COMUNESD): Ditto.
  10555. (IX86_BUILTIN_COMULTSD): Ditto.
  10556. (IX86_BUILTIN_COMULESD): Ditto.
  10557. (IX86_BUILTIN_COMUGTSD): Ditto.
  10558. (IX86_BUILTIN_COMUGESD): Ditto.
  10559. (IX86_BUILTIN_COMORDSD): Ditto.
  10560. (IX86_BUILTIN_COMUNORDSD): Ditto.
  10561. (IX86_BUILTIN_COMFALSESD): Ditto.
  10562. (IX86_BUILTIN_COMTRUESD): Ditto.
  10563. (IX86_BUILTIN_COMEQPS): Ditto.
  10564. (IX86_BUILTIN_COMNEPS): Ditto.
  10565. (IX86_BUILTIN_COMLTPS): Ditto.
  10566. (IX86_BUILTIN_COMLEPS): Ditto.
  10567. (IX86_BUILTIN_COMGTPS): Ditto.
  10568. (IX86_BUILTIN_COMGEPS): Ditto.
  10569. (IX86_BUILTIN_COMUEQPS): Ditto.
  10570. (IX86_BUILTIN_COMUNEPS): Ditto.
  10571. (IX86_BUILTIN_COMULTPS): Ditto.
  10572. (IX86_BUILTIN_COMULEPS): Ditto.
  10573. (IX86_BUILTIN_COMUGTPS): Ditto.
  10574. (IX86_BUILTIN_COMUGEPS): Ditto.
  10575. (IX86_BUILTIN_COMORDPS): Ditto.
  10576. (IX86_BUILTIN_COMUNORDPS): Ditto.
  10577. (IX86_BUILTIN_COMFALSEPS): Ditto.
  10578. (IX86_BUILTIN_COMTRUEPS): Ditto.
  10579. (IX86_BUILTIN_COMEQPD): Ditto.
  10580. (IX86_BUILTIN_COMNEPD): Ditto.
  10581. (IX86_BUILTIN_COMLTPD): Ditto.
  10582. (IX86_BUILTIN_COMLEPD): Ditto.
  10583. (IX86_BUILTIN_COMGTPD): Ditto.
  10584. (IX86_BUILTIN_COMGEPD): Ditto.
  10585. (IX86_BUILTIN_COMUEQPD): Ditto.
  10586. (IX86_BUILTIN_COMUNEPD): Ditto.
  10587. (IX86_BUILTIN_COMULTPD): Ditto.
  10588. (IX86_BUILTIN_COMULEPD): Ditto.
  10589. (IX86_BUILTIN_COMUGTPD): Ditto.
  10590. (IX86_BUILTIN_COMUGEPD): Ditto.
  10591. (IX86_BUILTIN_COMORDPD): Ditto.
  10592. (IX86_BUILTIN_COMUNORDPD): Ditto.
  10593. (IX86_BUILTIN_COMFALSEPD): Ditto.
  10594. (IX86_BUILTIN_COMTRUEPD): Ditto.
  10595. (IX86_BUILTIN_PCOMEQUB): Ditto.
  10596. (IX86_BUILTIN_PCOMNEUB): Ditto.
  10597. (IX86_BUILTIN_PCOMLTUB): Ditto.
  10598. (IX86_BUILTIN_PCOMLEUB): Ditto.
  10599. (IX86_BUILTIN_PCOMGTUB): Ditto.
  10600. (IX86_BUILTIN_PCOMGEUB): Ditto.
  10601. (IX86_BUILTIN_PCOMFALSEUB): Ditto.
  10602. (IX86_BUILTIN_PCOMTRUEUB): Ditto.
  10603. (IX86_BUILTIN_PCOMEQUW): Ditto.
  10604. (IX86_BUILTIN_PCOMNEUW): Ditto.
  10605. (IX86_BUILTIN_PCOMLTUW): Ditto.
  10606. (IX86_BUILTIN_PCOMLEUW): Ditto.
  10607. (IX86_BUILTIN_PCOMGTUW): Ditto.
  10608. (IX86_BUILTIN_PCOMGEUW): Ditto.
  10609. (IX86_BUILTIN_PCOMFALSEUW): Ditto.
  10610. (IX86_BUILTIN_PCOMTRUEUW): Ditto.
  10611. (IX86_BUILTIN_PCOMEQUD): Ditto.
  10612. (IX86_BUILTIN_PCOMNEUD): Ditto.
  10613. (IX86_BUILTIN_PCOMLTUD): Ditto.
  10614. (IX86_BUILTIN_PCOMLEUD): Ditto.
  10615. (IX86_BUILTIN_PCOMGTUD): Ditto.
  10616. (IX86_BUILTIN_PCOMGEUD): Ditto.
  10617. (IX86_BUILTIN_PCOMFALSEUD): Ditto.
  10618. (IX86_BUILTIN_PCOMTRUEUD): Ditto.
  10619. (IX86_BUILTIN_PCOMEQUQ): Ditto.
  10620. (IX86_BUILTIN_PCOMNEUQ): Ditto.
  10621. (IX86_BUILTIN_PCOMLTUQ): Ditto.
  10622. (IX86_BUILTIN_PCOMLEUQ): Ditto.
  10623. (IX86_BUILTIN_PCOMGTUQ): Ditto.
  10624. (IX86_BUILTIN_PCOMGEUQ): Ditto.
  10625. (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
  10626. (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
  10627. (IX86_BUILTIN_PCOMEQB): Ditto.
  10628. (IX86_BUILTIN_PCOMNEB): Ditto.
  10629. (IX86_BUILTIN_PCOMLTB): Ditto.
  10630. (IX86_BUILTIN_PCOMLEB): Ditto.
  10631. (IX86_BUILTIN_PCOMGTB): Ditto.
  10632. (IX86_BUILTIN_PCOMGEB): Ditto.
  10633. (IX86_BUILTIN_PCOMFALSEB): Ditto.
  10634. (IX86_BUILTIN_PCOMTRUEB): Ditto.
  10635. (IX86_BUILTIN_PCOMEQW): Ditto.
  10636. (IX86_BUILTIN_PCOMNEW): Ditto.
  10637. (IX86_BUILTIN_PCOMLTW): Ditto.
  10638. (IX86_BUILTIN_PCOMLEW): Ditto.
  10639. (IX86_BUILTIN_PCOMGTW): Ditto.
  10640. (IX86_BUILTIN_PCOMGEW): Ditto.
  10641. (IX86_BUILTIN_PCOMFALSEW): Ditto.
  10642. (IX86_BUILTIN_PCOMTRUEW): Ditto.
  10643. (IX86_BUILTIN_PCOMEQD): Ditto.
  10644. (IX86_BUILTIN_PCOMNED): Ditto.
  10645. (IX86_BUILTIN_PCOMLTD): Ditto.
  10646. (IX86_BUILTIN_PCOMLED): Ditto.
  10647. (IX86_BUILTIN_PCOMGTD): Ditto.
  10648. (IX86_BUILTIN_PCOMGED): Ditto.
  10649. (IX86_BUILTIN_PCOMFALSED): Ditto.
  10650. (IX86_BUILTIN_PCOMTRUED): Ditto.
  10651. (IX86_BUILTIN_PCOMEQQ): Ditto.
  10652. (IX86_BUILTIN_PCOMNEQ): Ditto.
  10653. (IX86_BUILTIN_PCOMLTQ): Ditto.
  10654. (IX86_BUILTIN_PCOMLEQ): Ditto.
  10655. (IX86_BUILTIN_PCOMGTQ): Ditto.
  10656. (IX86_BUILTIN_PCOMGEQ): Ditto.
  10657. (IX86_BUILTIN_PCOMFALSEQ): Ditto.
  10658. (IX86_BUILTIN_PCOMTRUEQ): Ditto.
  10659. (enum multi_arg_type): New enum for describing the various SSE5
  10660. intrinsic argument types.
  10661. (bdesc_multi_arg): New table for SSE5 intrinsics.
  10662. (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
  10663. (ix86_expand_multi_arg_builtin): New function for creating SSE5
  10664. intrinsics.
  10665. (ix86_expand_builtin): Add SSE5 intrinsic support.
  10666. (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
  10667. operand instructions.
  10668. (ix86_expand_sse5_multiple_memory): New function to split the
  10669. second memory reference from SSE5 instructions.
  10670. (type_has_variadic_args_p): Delete in favor of stdarg_p.
  10671. (ix86_return_pops_args): Use stdarg_p to determine if the function
  10672. has variable arguments.
  10673. (ix86_setup_incoming_varargs): Ditto.
  10674. (x86_this_parameter): Ditto.
  10675. * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
  10676. declaration.
  10677. (ix86_expand_sse5_pack): Ditto.
  10678. (ix86_sse5_valid_op_p): Ditto.
  10679. (ix86_expand_sse5_multiple_memory): Ditto.
  10680. * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
  10681. constant for SSE5 support.
  10682. (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
  10683. (UNSPEC_SSE5_TRUEFALSE): Ditto.
  10684. (UNSPEC_SSE5_PERMUTE): Ditto.
  10685. (UNSPEC_SSE5_ASHIFT): Ditto.
  10686. (UNSPEC_SSE5_LSHIFT): Ditto.
  10687. (UNSPEC_FRCZ): Ditto.
  10688. (UNSPEC_CVTPH2PS): Ditto.
  10689. (UNSPEC_CVTPS2PH): Ditto.
  10690. (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
  10691. (PCOM_TRUE): Ditto.
  10692. (COM_FALSE_S): Ditto.
  10693. (COM_FALSE_P): Ditto.
  10694. (COM_TRUE_S): Ditto.
  10695. (COM_TRUE_P): Ditto.
  10696. (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
  10697. (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
  10698. types.
  10699. (memory attribute): Ditto.
  10700. (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
  10701. Use SSE4_1_ROUND_* constants instead of hard coded numbers.
  10702. (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
  10703. (floor<mode>2): Ditto.
  10704. (ceil<mode>2): Ditto.
  10705. (btrunc<mode>2): Ditto.
  10706. (nearbyintdf2): Ditto.
  10707. (nearbyintsf2): Ditto.
  10708. (sse_setccsf): Disable if SSE5.
  10709. (sse_setccdf): Ditto.
  10710. (sse5_setcc<mode>): New support for SSE5 conditional move.
  10711. (sse5_pcmov_<mode>): Ditto.
  10712. * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
  10713. (SSEMODEF4): Ditto.
  10714. (SSEMODEF2P): Ditto.
  10715. (ssemodesuffixf4): New mode attribute for SSE5.
  10716. (ssemodesuffixf2s): Ditto.
  10717. (ssemodesuffixf2c): Ditto.
  10718. (sserotatemax): Ditto.
  10719. (ssescalarmode): Ditto.
  10720. (sse_maskcmpv4sf3): Disable if SSE5.
  10721. (sse_maskcmpv2df3): Ditto.
  10722. (sse_vmmaskcmpv4sf3): Ditto.
  10723. (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
  10724. (sse5_vmfmadd<mode>4): Ditto.
  10725. (sse5_fmsub<mode>4): Ditto.
  10726. (sse5_vmfmsub<mode>4): Ditto.
  10727. (sse5_fnmadd<mode>4): Ditto.
  10728. (sse5_vmfnmadd<mode>4): Ditto.
  10729. (sse5_fnmsub<mode>4): Ditto.
  10730. (sse5_vmfnmsub<mode>4): Ditto.
  10731. (sse5i_fmadd<mode>4): Ditto.
  10732. (sse5i_fmsub<mode>4): Ditto.
  10733. (sse5i_fnmadd<mode>4): Ditto.
  10734. (sse5i_fnmsub<mode>4): Ditto.
  10735. (sse5i_vmfmadd<mode>4): Ditto.
  10736. (sse5i_vmfmsub<mode>4): Ditto.
  10737. (sse5i_vmfnmadd<mode>4): Ditto.
  10738. (sse5i_vmfnmsub<mode>4): Ditto.
  10739. (mulv16qi3): Add SSE5 support.
  10740. (mulv4si3): Ditto.
  10741. (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
  10742. (sse2_mulv4si3): Disable if SSE5.
  10743. (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
  10744. (sse4_1_roundps): Ditto.
  10745. (sse4_1_roundsd): Ditto.
  10746. (sse4_1_roundss): Ditto.
  10747. (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
  10748. be generated.
  10749. (sse_maskcmpsf3): Ditto.
  10750. (sse_vmmaskcmpv4sf3): Ditto.
  10751. (sse2_maskcmpv2df3): Ditto.
  10752. (sse2_maskcmpdf3): Ditto.
  10753. (sse2_vmmaskcmpv2df3): Ditto.
  10754. (sse2_eq<mode>3): Ditto.
  10755. (sse2_gt<mode>3): Ditto.
  10756. (sse5_pcmov_<mode>): Add SSE5 support.
  10757. (vec_unpacku_hi_v16qi): Ditto.
  10758. (vec_unpacks_hi_v16qi): Ditto.
  10759. (vec_unpacku_lo_v16qi): Ditto.
  10760. (vec_unpacks_lo_v16qi): Ditto.
  10761. (vec_unpacku_hi_v8hi): Ditto.
  10762. (vec_unpacks_hi_v8hi): Ditto.
  10763. (vec_unpacku_lo_v8hi): Ditto.
  10764. (vec_unpacks_lo_v8hi): Ditto.
  10765. (vec_unpacku_hi_v4si): Ditto.
  10766. (vec_unpacks_hi_v4si): Ditto.
  10767. (vec_unpacku_lo_v4si): Ditto.
  10768. (vec_unpacks_lo_v4si): Ditto.
  10769. (sse5_pmacsww): New SSE5 intrinsic insn.
  10770. (sse5_pmacssww): Ditto.
  10771. (sse5_pmacsdd): Ditto.
  10772. (sse5_pmacssdd): Ditto.
  10773. (sse5_pmacssdql): Ditto.
  10774. (sse5_pmacssdqh): Ditto.
  10775. (sse5_pmacsdqh): Ditto.
  10776. (sse5_pmacsswd): Ditto.
  10777. (sse5_pmacswd): Ditto.
  10778. (sse5_pmadcsswd): Ditto.
  10779. (sse5_pmadcswd): Ditto.
  10780. (sse5_pcmov_<move>): Conditional move support on SSE5.
  10781. (sse5_phaddbw): New SSE5 intrinsic insn.
  10782. (sse5_phaddbd): Ditto.
  10783. (sse5_phaddbq): Ditto.
  10784. (sse5_phaddwd): Ditto.
  10785. (sse5_phaddwq): Ditto.
  10786. (sse5_phadddq): Ditto.
  10787. (sse5_phaddubw): Ditto.
  10788. (sse5_phaddubd): Ditto.
  10789. (sse5_phaddubq): Ditto.
  10790. (sse5_phadduwd): Ditto.
  10791. (sse5_phadduwq): Ditto.
  10792. (sse5_phaddudq): Ditto.
  10793. (sse5_phsubbw): Ditto.
  10794. (sse5_phsubwd): Ditto.
  10795. (sse5_phsubdq): Ditto.
  10796. (sse5_pperm): Ditto.
  10797. (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
  10798. (sse5_pperm_zero_v16qi_v8hi): Ditto.
  10799. (sse5_pperm_sign_v8hi_v4si): Ditto.
  10800. (sse5_pperm_zero_v8hi_v4si): Ditto.
  10801. (sse5_pperm_sign_v4si_v2di): Ditto.
  10802. (sse5_pperm_sign_v4si_v2di): Ditto.
  10803. (sse5_pperm_pack_v2di_v4si): Ditto.
  10804. (sse5_pperm_pack_v4si_v8hi): Ditto.
  10805. (sse5_pperm_pack_v8hi_v16qi): Ditto.
  10806. (sse5_perm<mode>): New SSE5 intrinsic insn.
  10807. (rotl<mode>3): Ditto.
  10808. (sse5_rotl<mode>3): Ditto.
  10809. (sse5_ashl<mode>3): Ditto.
  10810. (sse5_lshl<mode>3): Ditto.
  10811. (sse5_frcz<mode>2): Ditto.
  10812. (sse5s_frcz<mode>2): Ditto.
  10813. (sse5_cvtph2ps): Ditto.
  10814. (sse5_cvtps2ph): Ditto.
  10815. (sse5_vmmaskcmp<mode>3): Ditto.
  10816. (sse5_com_tf<mode>3): Ditto.
  10817. (sse5_maskcmp<mode>3): Ditto.
  10818. (sse5_maskcmp_uns<mode>3): Ditto.
  10819. (sse5_maskcmp_uns2<mode>3): Ditto.
  10820. (sse5_pcom_tf<mode>3): Ditto.
  10821. * config/i386/predicates.md (sse5_comparison_float_operator):
  10822. New predicate to match the comparison operators supported by
  10823. the SSE5 com instruction.
  10824. (ix86_comparison_int_operator): New predicate to match just the
  10825. signed int comparisons.
  10826. (ix86_comparison_uns_operator): New predicate to match just the
  10827. unsigned int comparisons.
  10828. * doc/invoke.texi (-msse5): Add documentation.
  10829. (-mfused-madd): Ditto.
  10830. * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
  10831. * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
  10832. mmintrin-common.h.
  10833. (x86_64-*-*): Ditto.
  10834. * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
  10835. * config/i386/bmmintrin.h: New file, provide common x86 compiler
  10836. intrinisics for SSE5.
  10837. * config/i386/smmintrin.h: Move instructions shared with SSE5 to
  10838. mmintrin-common.h.
  10839. * config/i386/mmintrin-common.h: New file, to contain common
  10840. instructions between SSE4.1 and SSE5.
  10841. * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
  10842. FOREACH_FUNCTION_ARGS to iterate over the argument list.
  10843. (gen_regparm_prefix): Ditto.
  10844. * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
  10845. FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
  10846. prototype_p to determine if a function is prototyped.
  10847. 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
  10848. * c-common.c (c_common_reswords) add the alignof keyword,
  10849. with same RID as __alignof and __alignof__
  10850. 2009-08-25 Anatoly Sokolov <aesok@post.ru>
  10851. * hooks.h (hook_bool_const_int_const_int_true): Declare.
  10852. * hooks.c (hook_bool_const_int_const_int_true): New function.
  10853. * target.h (struct gcc_target): Add can_eliminate field.
  10854. * target-def.h (TARGET_CAN_ELIMINATE): Define.
  10855. (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
  10856. * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
  10857. * reload1.c (update_eliminables, init_elim_table): (Ditto.).
  10858. (elim_table): Revise comment.
  10859. * system.h (CAN_ELIMINATE): Poison.
  10860. * defaults.h (CAN_ELIMINATE): Remove.
  10861. * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
  10862. * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
  10863. * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
  10864. Define macro.
  10865. (alpha_vms_can_eliminate): Declare as static, change return type to
  10866. bool.
  10867. * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
  10868. * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
  10869. * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
  10870. (arm_can_eliminate): New function.
  10871. * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
  10872. * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
  10873. (avr_can_eliminate): Declare as static.
  10874. * config/avr/avr-protos.h (avr_can_eliminate): Remove.
  10875. * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
  10876. * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
  10877. (bfin_can_eliminate): New function.
  10878. * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
  10879. * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
  10880. (crx_can_eliminate): New function.
  10881. * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
  10882. * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
  10883. (fr30_can_eliminate): New function.
  10884. * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
  10885. * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
  10886. (frv_can_eliminate): New function.
  10887. * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
  10888. * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
  10889. (h8300_can_eliminate): New function.
  10890. * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
  10891. * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
  10892. (i386_can_eliminate): Declare as static, change return type to bool.
  10893. * config/i386/i386-protos.h (i386_can_eliminate): Remove.
  10894. * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
  10895. * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
  10896. (ia64_can_eliminate): New function.
  10897. * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
  10898. * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
  10899. (iq2000_can_eliminate): New function.
  10900. * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
  10901. * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
  10902. (m32r_can_eliminate): New function.
  10903. * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
  10904. * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
  10905. (m68hc11_can_eliminate): New function.
  10906. * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
  10907. * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
  10908. (m68k_can_eliminate): New function.
  10909. * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
  10910. * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
  10911. (mep_can_eliminate): New function.
  10912. * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
  10913. * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
  10914. (mips_can_eliminate): New function.
  10915. * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
  10916. * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
  10917. (rs6000_can_eliminate): New function.
  10918. * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
  10919. * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
  10920. (s390_can_eliminate): Declare as static.
  10921. * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
  10922. * config/score/score.h (CAN_ELIMINATE): Remove macro.
  10923. * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
  10924. (score_can_eliminate): New function.
  10925. * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
  10926. * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
  10927. (sparc_can_eliminate): Declare as static.
  10928. * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
  10929. * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
  10930. * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
  10931. (xstormy16_can_eliminate): New function.
  10932. * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
  10933. * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
  10934. (v850_can_eliminate): New function.
  10935. 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
  10936. * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
  10937. (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
  10938. (*movdfcc_ext[1234]): Disable for IEEE mode.
  10939. 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
  10940. * gimplify.c (prepare_gimple_addressable): New static function.
  10941. (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
  10942. it addressable.
  10943. (gimplify_addr_expr): Invoke it similarly on the operand instead of
  10944. manually fiddling with it.
  10945. 2009-08-25 Michael Matz <matz@suse.de>
  10946. * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
  10947. * dojump.c (do_jump_by_parts_greater): Take two operands instead of
  10948. full expression.
  10949. (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
  10950. (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
  10951. (do_jump): Split out code for simple binary comparisons into ...
  10952. (do_jump_1): ... this, taking the individual operands and code.
  10953. Change callers to helper function above accordingly.
  10954. * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
  10955. comparisons.
  10956. 2009-08-25 Michael Matz <matz@suse.de>
  10957. * expr.h (struct separate_ops, sepops): New type for passing
  10958. around an exploded simple expression.
  10959. * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
  10960. Use this structure instead of expression tree.
  10961. (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
  10962. expression, only its type.
  10963. (expand_vec_cond_expr): Take type and individual operands instead
  10964. of full expression.
  10965. * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
  10966. expand_vec_shift_expr): Change prototype accordingly.
  10967. * tree-vect-stmts.c (vectorizable_condition): Change call of
  10968. expand_vec_cond_expr_p to pass only type.
  10969. * expr.c (do_store_flags): Change prototype and implementation
  10970. to take an exploded expression.
  10971. (expand_expr_real_1): New local ops initialized with details
  10972. of the full expression. Use it instead of full
  10973. expression in calls to do_store_flags, expand_vec_cond_expr,
  10974. expand_widen_pattern_expr and expand_vec_shift_expr.
  10975. 2009-08-25 Michael Matz <matz@suse.de>
  10976. * expr.c (expand_expr_real_1): New local treeop0, treeop1,
  10977. treeop2 initialized with first three operands of the full expression.
  10978. Substitute all TREE_OPERAND (exp, [012]) calls with them.
  10979. 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
  10980. * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
  10981. (__gthread_objc_condition_allocate): Mark arguments as unused.
  10982. (__gthread_objc_condition_deallocate): Likewise.
  10983. (__gthread_objc_condition_wait): Likewise.
  10984. (__gthread_objc_condition_broadcast): Likewise.
  10985. (__gthread_objc_condition_signal): Likewise.
  10986. (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
  10987. (__gthread_objc_thread_id): Likewise.
  10988. 2009-08-25 Janus Weil <janus@gcc.gnu.org>
  10989. PR middle-end/41149
  10990. * tree-pretty-print.c (print_call_name): Print the correct call name
  10991. for procedure pointer components.
  10992. 2009-08-24 Steve Ellcey <sje@cup.hp.com>
  10993. * config/ia64/ia64.c (ia64_promote_function_mode): Call
  10994. default_promote_function_mode when not VMS.
  10995. 2009-08-24 Olivier Hainque <hainque@adacore.com>
  10996. * convert.c (convert_to_integer): Don't assume an input pointer is
  10997. POINTER_SIZE wide. Fetch from the type instead.
  10998. 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  10999. * configure.ac (AC_PREREQ): Bump to 2.64.
  11000. 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
  11001. * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
  11002. (process_command): Don't search standard_exec_prefix_1 and
  11003. standard_exec_prefix_2.
  11004. 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  11005. * config/arm/arm.c (output_return_instruction): Handle for
  11006. unified syntax.
  11007. 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  11008. * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
  11009. 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  11010. * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
  11011. (*arm_movdf_vfp): Likewise.
  11012. 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  11013. * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
  11014. (vashr<mode>3): Rename from ashr<mode>3.
  11015. (vlshr<mode>3): Rename from lshr<mode>3.
  11016. 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
  11017. PR/40786
  11018. * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
  11019. (check_format_info_main): Use scalar_identify_flag.
  11020. (check_format_types): Check for scalar size identity if
  11021. scalar_identify_flag is set.
  11022. (printf_length_specs): Extend by new field.
  11023. (asm_fprintf_length_specs): Likewise.
  11024. (gcc_diag_length_specs): Likewise.
  11025. (scanf_length_specs): Likewise.
  11026. (strfmon_length_specs): Likewise.
  11027. (gcc_gfc_length_specs): Likewise.
  11028. * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
  11029. (ms_printf_flag_specs): Likewise.
  11030. * c-format.h (format_length_info): Add new member scalar_identity_flag.
  11031. 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
  11032. PR target/40718
  11033. * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
  11034. (*call_value_pop_1): Ditto.
  11035. (*sibcall_pop_1): New insn pattern.
  11036. (*sibcall_value_pop_1): Ditto.
  11037. 2009-08-23 Alan Modra <amodra@bigpond.net.au>
  11038. PR target/41081
  11039. * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
  11040. ashrsi3_64): New.
  11041. 2009-08-23 Alan Modra <amodra@bigpond.net.au>
  11042. PR target/41081
  11043. * fwprop.c (try_fwprop_subst): Allow multiple sets.
  11044. (get_reg_use_in): New function.
  11045. (forward_propagate_subreg): Propagate through subreg of zero_extend
  11046. or sign_extend.
  11047. 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
  11048. * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
  11049. * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
  11050. 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  11051. * configure.ac: Remove --with-datarootdir, --with-docdir,
  11052. --with-htmldir switches. No need to call AC_SUBST for
  11053. datarootdir, docdir, htmldir any more.
  11054. * configure: Regenerate.
  11055. * doc/install.texi (Configuration): Document --datarootdir,
  11056. --docdir, --htmldir, --pdfdir; update documentation for
  11057. --infodir, --mandir.
  11058. (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
  11059. M4 to 1.4.6.
  11060. * aclocal.m4: Regenerate.
  11061. * config.in: Regenerate.
  11062. * configure: Regenerate.
  11063. 2009-08-21 Douglas B Rupp <rupp@gnat.com>
  11064. Olivier Hainque <hainque@adacore.com>
  11065. * config/ia64/ia64.c: Include libfuncs.h.
  11066. (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
  11067. (ia64_expand_call): Use reg 25 on VMS.
  11068. (ia64_initialize_trampoline): Fix for VMS ABI.
  11069. (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
  11070. (ia64_function_arg): Initialize reg 25 on VMS.
  11071. Fix OpenVMS ABI issues for varargs.
  11072. For OpenVMS, emit the Argument Information register set in the
  11073. incoming/sibcall case as well.
  11074. (ia64_arg_type): New function.
  11075. (ia64_function_arg_advance): Keep track of cum->words.
  11076. Fix OpenVMS ABI issues for varargs.
  11077. (ia64_function_value): On VMS, promote mode of non-aggregate types.
  11078. (ia64_override_options): Set flag_no_common on VMS.
  11079. (ia64_init_builtins): Disable FWRITE builtin.
  11080. (ia64_asm_output_external): Call DO_CRTL_NAMES.
  11081. (ia64_vms_init_libfuncs): Add decc$ routines.
  11082. (ia64_vms_valid_pointer_mode): New function.
  11083. (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
  11084. (ia64_promote_function_mode): New function
  11085. * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
  11086. (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
  11087. (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
  11088. (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
  11089. (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
  11090. (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
  11091. Suppress trailing '#' if VALUE is numeric.
  11092. * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
  11093. ia64_promote_function_mode.
  11094. (TARGET_VALID_POINTER_MODE): Define.
  11095. 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
  11096. PR target/40671
  11097. * config/rs6000/rs6000.c (rs6000_override_options): Use
  11098. TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
  11099. PR target/41145
  11100. * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
  11101. reporting of vector + decimal/boolean/complex error.
  11102. 2009-08-21 Jakub Jelinek <jakub@redhat.com>
  11103. * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
  11104. __vector double TYPE_DECL.
  11105. 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
  11106. * arm.h (MACHMODE): New define. Include insn-modes.h if available.
  11107. (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
  11108. * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
  11109. to pointer to enum machine_mode. Update all callers as needed.
  11110. 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
  11111. * config/alpha/alpha.md (exception_receiver): Emit alternative
  11112. GP load sequence if flag_reorder_blocks_and_partition is set.
  11113. (*exception_receiver_2): Also enable when
  11114. flag_reorder_blocks_and_partition is set.
  11115. 2009-08-20 Matt Rice <ratmice@gmail.com>
  11116. Diego Novillo <dnovillo@google.com>
  11117. * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
  11118. tree-ssa-sccvn.h.
  11119. 2009-08-20 Richard Guenther <rguenther@suse.de>
  11120. * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
  11121. * c-tree.h (c_dup_lang_specific_decl): Remove.
  11122. (struct lang_decl, struct lang_type): Move definitions ...
  11123. * c-lang.h: ... here. New file.
  11124. * c-decl.c: Include c-lang.h.
  11125. (c_dup_lang_specific_decl): Remove.
  11126. * c-typeck.c: Include c-lang.h.
  11127. * Makefile.in (c-decl.o): Add c-lang.h dependency.
  11128. (c-typeck.o): Likewise.
  11129. * c-config-lang.in (gtfiles): Add c-lang.h.
  11130. * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
  11131. like c-tree.h.
  11132. 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
  11133. * config/alpha/alpha.c (alpha_end_function): Do not clear
  11134. crtl->emit structure and free insn locators if cfun->is_thunk is true,
  11135. this is now handled in generic code.
  11136. 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
  11137. * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
  11138. (s390_z10_fix_long_loop_prediction): New function.
  11139. (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
  11140. (s390_reorg): Walk over the INSNs and invoke
  11141. s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
  11142. 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
  11143. * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
  11144. "*brx_64bit", "*brx_31bit"): New patterns.
  11145. * config/s390/s390.c ('E'): New output modifier.
  11146. 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  11147. Richard Earnshaw <richard.earnshaw@arm.com>
  11148. * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
  11149. * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
  11150. 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  11151. * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
  11152. patterns.
  11153. * pa.c (emit_move_sequence): Check if address of operand1 is valid
  11154. for mode mode of operand0 when doing secondary reload for SAR.
  11155. 2009-08-19 Jakub Jelinek <jakub@redhat.com>
  11156. PR middle-end/41123
  11157. * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
  11158. of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
  11159. 2009-08-19 Jason Merrill <jason@redhat.com>
  11160. * doc/invoke.texi (C++ Dialect Options): Note change of minimum
  11161. supported template depth in C++0x.
  11162. 2009-08-19 Jakub Jelinek <jakub@redhat.com>
  11163. * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
  11164. free_after_compilation.
  11165. * config/score/score7.c (score7_output_mi_thunk): Likewise.
  11166. * config/score/score3.c (score3_output_mi_thunk): Likewise.
  11167. * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
  11168. * config/mips/mips.c (mips_output_mi_thunk): Likewise.
  11169. * config/sh/sh.c (sh_output_mi_thunk): Likewise.
  11170. * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
  11171. * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
  11172. 2009-08-19 Ian Lance Taylor <iant@google.com>
  11173. * doc/md.texi (Insn Canonicalizations): Correct canonicalization
  11174. of (plus (mult (neg B) C) A).
  11175. 2009-08-18 Michael Matz <matz@suse.de>
  11176. * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
  11177. instead of comparing TYPE_MAIN_VARIANT for equality.
  11178. * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
  11179. vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
  11180. * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
  11181. * gimplify.c (goa_lhs_expr_p): Ditto and use
  11182. STRIP_USELESS_TYPE_CONVERSION.
  11183. 2009-08-18 Michael Matz <matz@suse.de>
  11184. * tree-ssa-structalias.c (create_variable_info_for): Also mark
  11185. first field in a struct.
  11186. (intra_create_variable_infos): Don't deal with flag_argument_noalias.
  11187. 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
  11188. * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
  11189. locators before emit_insn is called. Remove assert that
  11190. cfun->is_thunk.
  11191. (alpha_end_function): Clear crtl->emit structure and free insn
  11192. locators if cfun->is_thunk is true.
  11193. 2009-08-18 Jason Merrill <jason@redhat.com>
  11194. * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
  11195. type if available.
  11196. * configure.ac: Test for it.
  11197. * configure, config.in: Regenerate.
  11198. * doc/install.texi: Document --enable-gnu-unique-object.
  11199. 2009-08-18 Richard Guenther <rguenther@suse.de>
  11200. PR middle-end/41094
  11201. * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
  11202. pow(x,y*z) only if x is nonnegative.
  11203. 2009-08-18 Jakub Jelinek <jakub@redhat.com>
  11204. * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
  11205. on jumps.
  11206. PR target/40971
  11207. * config/rs6000/rs6000.c (rs6000_legitimize_address): For
  11208. [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
  11209. 2009-08-17 DJ Delorie <dj@redhat.com>
  11210. * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
  11211. * config/m32c/prologue.md (epilogue_freit): New.
  11212. (fset_b): New.
  11213. * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
  11214. (bank_switch_p): Likewise.
  11215. (fast_interrupt_p): Likewise.
  11216. (interrupt_p): Likewise.
  11217. (m32c_conditional_register_usage): Round memregs size up.
  11218. (need_to_save): We only need to save $a0 when we use ENTER.
  11219. (interrupt_p): Check for fast_interrupt too.
  11220. (bank_switch_p): New.
  11221. (fast_interrupt_p): New.
  11222. (m32c_attribute_table): Add bank_switch and fast_interrupt.
  11223. (m32c_emit_prolog): Support bank switching and fast interrupts.
  11224. * doc/extend.texi (Function Attributes): Add bank_switch and
  11225. fast_interrupt.
  11226. 2009-08-17 Douglas B Rupp <rupp@gnat.com>
  11227. * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
  11228. * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
  11229. 2009-08-16 Douglas B Rupp <rupp@gnat.com>
  11230. * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
  11231. (menu): Add IA-64/VMS Options.
  11232. (IA-64/VMS Options): Likewise.
  11233. 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
  11234. PR target/38599
  11235. * config/mips/mips.md (*lwxs): Use :P for pointer values.
  11236. 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
  11237. * config/mips/mips-protos.h (mips_push_asm_switch): New function.
  11238. (mips_pop_asm_switch): Likewise.
  11239. * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
  11240. with...
  11241. (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
  11242. (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
  11243. (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
  11244. (mips_print_operand_punctuation): Use them. Check mips_noreorder
  11245. instead of set_noreorder.
  11246. (mips_output_function_prologue): Use the new functions.
  11247. (mips_output_function_epilogue): Likewise.
  11248. (mips_need_noat_wrapper_p): New function, split out from...
  11249. (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
  11250. Use mips_push_asm_switch and mips_pop_asm_switch.
  11251. * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
  11252. and mips_pop_asm_switch.
  11253. (ASM_OUTPUT_REG_POP): Likewise.
  11254. (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
  11255. Use mips_pop_asm_switch.
  11256. (mips_asm_switch): New structure.
  11257. (set_noreorder, set_nomacro): Replace with...
  11258. (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
  11259. * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
  11260. instead of set_nomacro.
  11261. (fix_truncsfsi2_macro): Likewise.
  11262. (cprestore): Likewise.
  11263. (hazard): Use mips_noreorder instead of set_noreorder.
  11264. * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
  11265. 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
  11266. * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
  11267. from prev_active_insn.
  11268. 2009-08-16 Anatoly Sokolov <aesok@post.ru>
  11269. * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
  11270. * config/avr/avr.c (avr_override_options): Initialize
  11271. avr_current_arch variable.
  11272. (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
  11273. __AVR_HAVE_16BIT_SP__ according to the device type.
  11274. (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
  11275. TARGET_TINY_STACK.
  11276. (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
  11277. Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
  11278. 2009-08-16 Dodji Seketeli <dodji@redhat.com>
  11279. PR debug/37801
  11280. * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
  11281. generating inlined subroutine die only. We shouldn't be
  11282. called for anything else.
  11283. (gen_block_die): Don't generate inline subroutine debug info for
  11284. abstract blocks.
  11285. 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
  11286. * graphite-poly.c (print_pbb): Print PBB index.
  11287. 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
  11288. PR middle-end/40981
  11289. * graphite-interchange.c (ppl_max_for_le): Moved...
  11290. * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
  11291. * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
  11292. ppl_Pointset_Powerset_C_Polyhedron_maximize.
  11293. * graphite-ppl.h (ppl_max_for_le): Declared.
  11294. 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
  11295. * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
  11296. supported on all platforms.
  11297. * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
  11298. * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
  11299. * c-pragma.c: Likewise.
  11300. * target-def.h (TARGET_INITIALIZER): Remove
  11301. TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
  11302. * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
  11303. 2009-08-14 Douglas B Rupp <rupp@gnat.com>
  11304. * config/ia64/fde-vms.c: New file.
  11305. * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
  11306. * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
  11307. (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
  11308. (uw_frame_state_for): Only register a personality routine if it is
  11309. known to be compatible with our expectations.
  11310. (_Unwind_FindEnclosingFunction, uw_frame_state_for):
  11311. Declare unw_table_entry stack variable and
  11312. mod all calls to _Unwind_FindTableEntry to add arg.
  11313. * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
  11314. (_Unwind_FindTableEntry): Add arg to prototype.
  11315. 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
  11316. * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
  11317. field 'signal_pfs_loc'.
  11318. (uw_frame_state_for): Remove duplicate code dealing with leaf
  11319. procedures without unwind info.
  11320. If in the frame after unwinding through a signal handler, restore
  11321. the AR.PFS register instead of the CFM if AR.PFS has not been saved.
  11322. * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
  11323. 'pfs_loc' to the AR.PFS location in the signal context; instead
  11324. set 'signal_pfs_loc'.
  11325. Manually generate the unwind info for the AR.PFS register.
  11326. (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
  11327. ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
  11328. (ia64_handle_unwabi): Test 'fs->unwabi' against them.
  11329. Do not set 'pfs_loc' to the AR.PFS location in the signal context;
  11330. instead set 'signal_pfs_loc'.
  11331. Remove code preventing the AR.PFS register from being restored
  11332. from the signal context.
  11333. 2009-08-14 Douglas B Rupp <rupp@gnat.com>
  11334. Tristan Gingold <gingold@adacore.com>
  11335. * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
  11336. * config/ia64/t-vms: New file.
  11337. * config/ia64/vms64.h: New file.
  11338. * config/ia64/vms.h: New file.
  11339. * config/ia64/vms-crtinit.asm: New file.
  11340. * config/ia64/vms_symvec_libgcc_s.opt: New file.
  11341. * config/ia64/vms-unwind.h: New file.
  11342. 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
  11343. * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
  11344. TFmode compares.
  11345. 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  11346. PR middle-end/30789
  11347. * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
  11348. Move declaration...
  11349. * real.h (do_mpc_arg2): ... here.
  11350. * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
  11351. and RDIV_EXPR.
  11352. 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
  11353. * final.c (add_debug_prefix_map): Don't use GC memory for
  11354. old_prefix and new_prefix.
  11355. 2009-08-14 Richard Guenther <rguenther@suse.de>
  11356. * ipa-prop.c (compute_complex_pass_through): If we cannot
  11357. compute a non-varying offset for IPA_JF_ANCESTOR punt.
  11358. 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  11359. * c-lex.c (c_lex_with_flags): Increase size of local variable
  11360. to avoid memory clobber.
  11361. 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
  11362. PR target/40934
  11363. * config/i386/i386.c (ix86_fp_comparison_strategy):
  11364. Only enable/disable sahf at function granularity.
  11365. 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
  11366. PR rtl-optimization/41064
  11367. * reload1.c (reload_as_needed): Don't call extract_insn
  11368. for known invalid replacements after calling
  11369. validate_replace_rtx_group and verify_changes.
  11370. 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
  11371. PR target/41019
  11372. * config/i386/sse.md (SSEMODE124C8): New mode iterator.
  11373. (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
  11374. ix86_expand_fp_vcond.
  11375. (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
  11376. Assert that operation is supported by ix86_expand_int_vcond.
  11377. (vcondu<SSEMODE124C8:mode>): Ditto.
  11378. 2009-08-13 DJ Delorie <dj@redhat.com>
  11379. * config/i386/djgpp-stdint.h: New.
  11380. * config.gcc (djgpp): Use it.
  11381. 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
  11382. * config/sh/sh.c (sh_override_options): When flag_exceptions or
  11383. flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
  11384. 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
  11385. * tree-ssa-loop-prefetch.c
  11386. (prune_ref_by_group_reuse): Enhance probabilistic analysis
  11387. for long-stride pruning.
  11388. (compute_miss_rate): New function to compute the probability
  11389. that two memory references access different cache lines.
  11390. 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
  11391. * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
  11392. 2009-08-13 Richard Guenther <rguenther@suse.de>
  11393. PR middle-end/41047
  11394. * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
  11395. use the constant pointer type.
  11396. * gimplify.c (canonicalize_addr_expr): Canonicalize independent
  11397. of CV qualifiers on the target pointer type.
  11398. * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
  11399. conversion check before restrict check.
  11400. 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
  11401. PR target/41029
  11402. * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
  11403. 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
  11404. * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
  11405. 2009-08-12 Richard Guenther <rguenther@suse.de>
  11406. PR tree-optimization/41011
  11407. * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
  11408. and reference constructing.
  11409. 2009-08-12 Xinliang David Li <davidxl@google.com>
  11410. PR tree-optimization/41012
  11411. * tree-flow.h : New external interface.
  11412. * gimple-low.c (check_call_arg): Change to public function.
  11413. Remove argument mismatch check in lowering.
  11414. * tree-inline.h (tree_can_inline_p): Interface change.
  11415. * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
  11416. into this function.
  11417. * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
  11418. Call change to tree_can_inline_p function.
  11419. (cgraph_decide_inlining_incrementally): Ditto.
  11420. 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
  11421. PR tree-optimization/41031
  11422. * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
  11423. on the partition variable rather than promote_mode on the source
  11424. type. Assert that the partition variable's type has the same
  11425. mode as the source value's.
  11426. 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
  11427. * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
  11428. for for_return == 2.
  11429. * function.c (assign_parm_setup_reg): Use for_return == 2, improve
  11430. comments.
  11431. * calls.c (expand_call): Fix typo.
  11432. * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
  11433. and PARM_DECL.
  11434. * stmt.c (expand_value_return): Use promote_function_mode to copy out
  11435. of pseudo.
  11436. * targhooks.c (default_promote_function_mode): Handle for_return == 2.
  11437. * config/cris/cris.c (cris_promote_function_mode): Likewise.
  11438. * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
  11439. * config/pa/pa.c (pa_promote_function_mode): Likewise.
  11440. 2009-08-12 Andrew Haley <aph@redhat.com>
  11441. * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
  11442. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11443. PR bootstrap/40103
  11444. * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
  11445. 2009-08-12 Richard Guenther <rguenther@suse.de>
  11446. * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
  11447. * gimplify.c (gimplify_modify_expr): Do not use
  11448. lang_hooks.types_compatible_p.
  11449. * tree-ssa.c (useless_type_conversion_p): For aggregates
  11450. just return false if the canonical types differ.
  11451. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11452. PR middle-end/40980
  11453. * sese.c (convert_for_phi_arg): New.
  11454. (add_guard_exit_phis): Use convert_for_phi_arg.
  11455. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11456. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
  11457. unknown subscript upper bounds.
  11458. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11459. Pranav Garg <pranav.garg2107@gmail.com>
  11460. * graphite-interchange.c (gather_access_strides): Removed.
  11461. (ppl_max_for_le): New.
  11462. (build_linearized_memory_access): New.
  11463. (memory_stride_in_loop): New.
  11464. (pbb_interchange_profitable_p): Reimplemented.
  11465. * graphite-ppl.h (ppl_new_id_map): New.
  11466. (ppl_interchange): New.
  11467. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11468. * graphite-interchange.c (compute_subscript): Removed.
  11469. (compute_array_size_cstr): Removed.
  11470. (compute_array_size_poly): Removed.
  11471. (compute_array_size): Removed.
  11472. (gather_access_strides_poly): Removed.
  11473. (gather_access_strides): Empty.
  11474. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11475. * graphite-dependences.c (dependence_polyhedron_1): Replace
  11476. pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
  11477. (graphite_legal_transform_dr): Same.
  11478. (graphite_carried_dependence_level_k): Same.
  11479. * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
  11480. Initialize PDR_NB_SUBSCRIPTS.
  11481. (print_pdr_access_layout): Replace pdr_nb_subscripts with
  11482. PDR_NB_SUBSCRIPTS.
  11483. * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
  11484. (PDR_NB_SUBSCRIPTS): New.
  11485. (pdr_nb_subscripts): Removed.
  11486. (pdr_dim): Simplified.
  11487. * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
  11488. with PDR_NB_SUBSCRIPTS.
  11489. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11490. * graphite-interchange.c (compute_array_size): Remove use of
  11491. PDR_DATA_CONTAINER.
  11492. * graphite-poly.c (new_poly_dr): Remove argument data_container.
  11493. Do not initialize PDR_DATA_CONTAINER.
  11494. (print_pdr): Do not print PDR_DATA_CONTAINER.
  11495. * graphite-poly.h (struct poly_dr): Remove data_container field.
  11496. (PDR_DATA_CONTAINER): Removed.
  11497. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
  11498. PDR_DATA_CONTAINER.
  11499. (build_poly_dr): Same.
  11500. 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  11501. Sebastian Pop <sebastian.pop@amd.com>
  11502. * graphite-dependences.c (graphite_legal_transform_dr): Work on a
  11503. copy of the dependence polyhedron. Free the temporary objects.
  11504. (graphite_carried_dependence_level_k): Free unused objects before
  11505. returning.
  11506. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11507. * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
  11508. Early return without analyzing the data dependences if no
  11509. transform has been done. Call restore_scattering if the transform
  11510. is not legal.
  11511. (graphite-interchange.c): Same.
  11512. * graphite-poly.c (print_scattering_function): Test for
  11513. PBB_TRANSFORMED.
  11514. (graphite_read_transforms): Initialize PBB_TRANSFORMED.
  11515. (apply_poly_transforms): Do not gcc_assert that
  11516. the transform is legal.
  11517. (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
  11518. Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
  11519. PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
  11520. (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
  11521. * graphite-poly.h (struct poly_scattering): New.
  11522. (struct poly_bb): Add original, transformed, and saved fields.
  11523. Remove transformed_scattering, original_scattering,
  11524. nb_local_variables and nb_scattering_transform fields.
  11525. (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
  11526. (poly_scattering_new): New.
  11527. (poly_scattering_free): New.
  11528. (poly_scattering_copy): New.
  11529. (store_scattering_pbb): New.
  11530. (store_scattering): New.
  11531. (restore_scattering_pbb): New.
  11532. (restore_scattering): New.
  11533. * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
  11534. Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
  11535. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11536. * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
  11537. (print_scop): Same.
  11538. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11539. * Makefile.in (graphite.o): Depends on PREDICT_H.
  11540. * graphite.c: Include predict.h.
  11541. (graphite_finalize): Call tree_estimate_probability.
  11542. * predict.c (predict_loops): Do not call scev_initialize and
  11543. scev_finalize.
  11544. (tree_estimate_probability_bb): New.
  11545. (tree_estimate_probability): Do not initialize loops: move that
  11546. code to the driver. Call tree_estimate_probability_bb.
  11547. (tree_estimate_probability_driver): New.
  11548. (pass_profile): Use tree_estimate_probability_driver.
  11549. * predict.h (tree_estimate_probability): Declared.
  11550. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  11551. * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
  11552. * graphite-dependences.c (graphite_legal_transform): Add time to
  11553. TV_GRAPHITE_DATA_DEPS.
  11554. (dependency_between_pbbs_p): Same.
  11555. * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
  11556. 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
  11557. PR rtl-optimization/41033
  11558. * alias.c (nonoverlapping_component_refs_p): Punt when strict
  11559. aliasing is disabled.
  11560. 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
  11561. * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
  11562. si_mask_operand, and_load_operand, low_bitmask_operand,
  11563. and_reg_operand, and_operand): New predicates.
  11564. * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
  11565. * config/mips/mips.c (and_operands_ok): New function.
  11566. * config/mips/mips-protos.h (and_operands_ok): Declare it.
  11567. * config/mips/mips.md (move_type): Add ext_ins and logical.
  11568. (type): Handle them.
  11569. (and<mode>3): Use and_reg_operand as the second operand's predicate.
  11570. (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
  11571. shift_shift. Remove commutative constraint modifier.
  11572. (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
  11573. shift_shift.
  11574. (*clear_upper32_dext): Remove define_insn_and_split.
  11575. (*clear_upper32): Turn this define_insn_and_split ...
  11576. (splitter for ANDing register with 0xffff_ffff): .. into this.
  11577. 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
  11578. * combine.c (try_widen_shift_mode): Factor out code to check if an
  11579. integer constant is a low-order bitmask from here ...
  11580. * rtlanal.c (low_bitmask_len): ... to here.
  11581. * rtl.h (low_bitmask_len): Declare.
  11582. 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
  11583. PR target/8603
  11584. * config/alpha/alpha.md (addsi3): Remove expander.
  11585. (addsi3): Rename from *addsi3_internal insn pattern.
  11586. (subsi3): Remove expander.
  11587. (subsi3): Rename from *subsi3_internal insn pattern.
  11588. 2009-08-11 Douglas B Rupp <rupp@gnat.com>
  11589. * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
  11590. FWRITE_UNLOCKED.
  11591. 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
  11592. Eric Botcazou <botcazou@adacore.com>
  11593. Douglas B Rupp <rupp@gnat.com>
  11594. * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
  11595. that records that fit in 64 bits are returned by immediate value,
  11596. as required by OpenVMS Calling Standard.
  11597. (function_value): Adjust for above modification.
  11598. (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
  11599. virtual_incoming_args_rtx as base object, not next_arg.
  11600. * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
  11601. 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  11602. * reload.c (find_reloads_subreg_address): Check the original
  11603. req_equiv_mem address to detect the case where an address is
  11604. not valid in the outer mode.
  11605. 2009-08-11 Richard Guenther <rguenther@suse.de>
  11606. PR bootstrap/40788
  11607. * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
  11608. 2009-08-10 Douglas B Rupp <rupp@gnat.com>
  11609. * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
  11610. (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
  11611. 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
  11612. Douglas B Rupp <rupp@gnat.com>
  11613. * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
  11614. PT_STACK when frame_pointer_needed on OpenVMS.
  11615. (alpha_pv_save_size, alpha_using_fp): Remove.
  11616. (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
  11617. with proper processing for PT_NULL.
  11618. (alpha_vms_initial_elimination_offset): New function. Support for
  11619. INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
  11620. (alpha_sa_size): Force procedure type to PT_STACK when
  11621. frame_pointer_needed on OpenVMS.
  11622. * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
  11623. (alpha_using_fp): Likewise.
  11624. (alpha_vms_can_eliminate): Add prototype.
  11625. (alpha_vms_initial_elimination_offset): Likewise.
  11626. * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
  11627. Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
  11628. 2009-08-10 Eric Botcazou <botcazou@adacore.com>
  11629. Douglas B Rupp <rupp@gnat.com>
  11630. * config/alpha/alpha.c (common_object_handler): New function.
  11631. (vms_attribute_table): Declare a single attribute "common_object".
  11632. (vms_output_aligned_decl_common): New global function.
  11633. (SECTION_VMS_OVERLAY): Delete.
  11634. (SECTION_VMS_GLOBAL): Likewise.
  11635. (SECTION_VMS_INITIALIZE): Likewise.
  11636. (vms_asm_named_section): Remove support for above flags.
  11637. (vms_section_type_flags): Delete.
  11638. (TARGET_SECTION_TYPE_FLAGS): Likewise.
  11639. * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
  11640. * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
  11641. (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
  11642. 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
  11643. PR target/41015
  11644. * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
  11645. (sub_ddmmss): Likewise.
  11646. 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
  11647. PR bootstrap/41018
  11648. * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
  11649. year.
  11650. 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  11651. PR target/37053
  11652. * reload1.c (reload_as_needed): Use cancel_changes to completely
  11653. undo a failed replacement attempt.
  11654. 2009-08-10 Richard Guenther <rguenther@suse.de>
  11655. PR middle-end/41006
  11656. * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
  11657. (useless_type_conversion_p): ... here. Require pointer targets
  11658. to be compatible.
  11659. 2009-08-10 Dodji Seketeli <dodji@redhat.com>
  11660. PR c++/40866
  11661. * tree-inline.c (copy_statement_list): The resulting copy shouldn't
  11662. loose the original type of the statement list.
  11663. 2009-08-09 Douglas B Rupp <rupp@gnat.com>
  11664. * config/alpha/alpha.c: Include libfuncs.h
  11665. (avms_asm_output_extern): New function.
  11666. (alpha_init_libfuncs): Init some decc libfuncs.
  11667. * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
  11668. * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
  11669. (DO_CRTL_NAMES): Define.
  11670. (LIB_SPEC): Remove.
  11671. * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
  11672. (LONG_TYPE_SIZE): Define.
  11673. (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
  11674. (SUBTARGET_SWITCHES): Define malloc64 switch.
  11675. (TARGET_DEFAULT): Default MASK_MALLOC64 set.
  11676. (MASK_RETURN_ADDR): Define.
  11677. doc/invoke.texi (mmalloc64): Document switch.
  11678. 2009-08-09 Olivier Hainque <hainque@adacore.com>
  11679. Douglas B Rupp <rupp@gnat.com>
  11680. * config/alpha/alpha.c (struct machine_function): New flag for VMS,
  11681. uses_condition_handler.
  11682. (alpha_expand_builtin_establish_vms_condition_handler): New expander.
  11683. (alpha_expand_builtin_revert_vms_condition_handler): New expander.
  11684. (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
  11685. and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
  11686. (code_for_builtin): New insn codes for the new alpha_builtins.
  11687. (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
  11688. (alpha_sa_size): Account for uses_condition_handler.
  11689. (alpha_expand_prologue): Likewise.
  11690. (alpha_start_function): Likewise.
  11691. (alpha_expand_epilogue): Likewise.
  11692. * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
  11693. establish/revert expanders.
  11694. * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
  11695. * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
  11696. New expander, resorting to the alpha.c associated function.
  11697. (builtin_revert_vms_condition_handler): Likewise.
  11698. * config/alpha/vms-gcc_shell_handler.c: New file. Implements
  11699. __gcc_shell_handler, the static VMS condition handler used as
  11700. an indirection wrapper to the current dynamically established
  11701. handler.
  11702. * config/alpha/vms-unwind.h: Complete rewrite.
  11703. * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
  11704. * config/alpha/vms.h (MD_UNWIND_SUPPORT):
  11705. 2009-08-09 Eric Botcazou <botcazou@adacore.com>
  11706. Douglas B Rupp <rupp@gnat.com>
  11707. * config/alpha/alpha.c (alpha_links): Add 'target' field.
  11708. (alpha_need_linkage): Handle aliases. Return function symbol.
  11709. (alpha_use_linkage): Rename 'linkage' argument to 'func'.
  11710. Use ultimate alias target for the linkage name.
  11711. * config/alpha/alpha.md (movmemdi): Use the symbol returned
  11712. by alpha_need_linkage for the function symbol.
  11713. (setmemdi): Likewise.
  11714. 2009-08-09 Douglas B Rupp <rupp@gnat.com>
  11715. * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
  11716. * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
  11717. (ASM_WEAKEN_LABEL): Define.
  11718. (CRT_CALL_STATIC_FUNCTION): Define.
  11719. (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
  11720. (ENDFILE_SPEC): Define.
  11721. (INIT_SECTION_ASM_OP): Define.
  11722. * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
  11723. * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
  11724. crtend.o crtendS.o.
  11725. (MULTILIB_OSDIRNAMES): Define.
  11726. (shlib_version): Define.
  11727. (SHLIB_EXT): Define.
  11728. (SHLIB_OBJS): Define.
  11729. (SHLIB_NAME): Define.
  11730. (SHLIB_MULTILIB): Define.
  11731. (SHLIB_INSTALL): Define.
  11732. (SHLIB_SYMVEC): Define.
  11733. (SHLIB_SYMVECX2): Define.
  11734. (SHLIB_LINK): Define.
  11735. 2009-08-09 Douglas B Rupp <rupp@gnat.com>
  11736. * config/alpha/alpha.c (alpha_initialize_trampoline):
  11737. Initialize VMS trampoline IAW ABI for bounded procedure calls.
  11738. (alpha_start_function): Emit transfer address on nested functions
  11739. for VMS trampoline call.
  11740. * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
  11741. since no longer used.
  11742. * config/alpha/vms-tramp.asm: Remove.
  11743. * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
  11744. since now only data initialized at runtime.
  11745. 2009-08-09 Douglas B Rupp <rupp@gnat.com>
  11746. * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
  11747. (LINK_GCC_C_SEQUENCE_SPEC): Define.
  11748. (MD_EXEC_PREFIX): Remove, no longer used.
  11749. (MD_STARTFILE_PREFIX): Likewise.
  11750. (INCLUDE_DEFAULTS): Likewise.
  11751. * config/alpha/t-vms:
  11752. (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
  11753. 2009-08-09 Richard Guenther <rguenther@suse.de>
  11754. PR tree-optimization/41016
  11755. * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
  11756. (operand_precision): Remove.
  11757. (integral_operand_p): Likewise.
  11758. (recognize_single_bit_test): Adjust.
  11759. 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
  11760. * c-common.c (c_fully_fold_internal): Issue a warning if a binary
  11761. operation overflows. Likewise non-cast unary arithmetic.
  11762. If one arm of a conditional expression is always taken,
  11763. inhibit evaluation warnings for the other arm. Likewise inhibit
  11764. evaluation warnings for the second && or || operand if the first
  11765. operand is enough to determine the result.
  11766. * c-typeck.c (build_conditional_expr): Apply the same inhibition
  11767. rules here.
  11768. (build_binary_op): Prevent duplicate evaluation warnings.
  11769. 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
  11770. * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
  11771. and destination have different modes, Use promote_mode to
  11772. determine the signedness of the conversion. Assert that the
  11773. promoted source mode matches the destination mode. Don't pass
  11774. the destination and destination mode to expand_expr if the source
  11775. mode is different. Simplify conversion logic.
  11776. 2009-08-09 Ira Rosen <irar@il.ibm.com>
  11777. PR tree-optimization/41008
  11778. * tree-vect-loop.c (vect_is_simple_reduction): Get operands
  11779. from condition only in case it's a comparison. Adjust checks.
  11780. 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
  11781. * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
  11782. * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
  11783. * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
  11784. (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
  11785. (dump_cand): Handle them.
  11786. (struct iv_cand): New members COST_STEP and AINC_USE.
  11787. (stmt_after_increment): Likewise.
  11788. (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
  11789. callers changed. Use gimple_uid comparison instead of scanning.
  11790. (add_candidate_1): When looking for identical candidates, take
  11791. AINC_USE into account. Set it for new candidates.
  11792. (force_expr_to_var_cost): Cast target_spill_cost to int.
  11793. (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
  11794. All callers changed. Check for availability of autoinc addressing
  11795. modes, both in general for a given mode, and in the specific use case.
  11796. (get_computation_cost_at): New argument CAN_AUTOINC. All callers
  11797. changed.
  11798. (get_computation_cost): Likewise.
  11799. (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
  11800. add_autoinc_candidates): New static functions.
  11801. (add_candidate): Call add_autoinc_candidates for candidates based on
  11802. a USE_ADDRESS use.
  11803. (find_iv_candidates): Call set_autoinc_for_original_candidates.
  11804. (determine_use_iv_cost_address): If we have an autoinc candidate at
  11805. the matching use, verify autoinc is possible and subtract the cost
  11806. of the candidate's step from the cost.
  11807. (determine_iv_cost): Record the cost of the increment in the COST_STEP
  11808. member of the candidate.
  11809. (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
  11810. determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
  11811. 2009-08-09 Douglas B Rupp <rupp@gnat.com>
  11812. * config.build (ia64-hp-*vms*): New target.
  11813. (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
  11814. with ia64-hp-*vms*.
  11815. * config.gcc (ia64-hp-*vms*): New target.
  11816. (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
  11817. with ia64-hp-*vms*.
  11818. * config.host (ia64-hp-*vms*): New target.
  11819. (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
  11820. with ia64-hp-*vms*.
  11821. 2009-08-08 Richard Guenther <rguenther@suse.de>
  11822. PR tree-optimization/40991
  11823. * tree-ssa-pre.c (eliminate): Delay purging EH edges.
  11824. 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
  11825. * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
  11826. mode check. Do truncations in an integer mode.
  11827. (force_to_mode): Handle subregs for all mode types. Only do
  11828. arithmetic simplifications on integer modes.
  11829. 2009-08-07 Richard Guenther <rguenther@suse.de>
  11830. PR tree-optimization/40999
  11831. * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
  11832. (maybe_fold_reference): Lookup constant initializers.
  11833. (fold_gimple_assign): Likewise.
  11834. 2009-08-07 Richard Guenther <rguenther@suse.de>
  11835. * tree-ssa.c (useless_type_conversion_p_1): Only for types
  11836. that require structural equality defer to the langhook.
  11837. 2009-08-07 Martin Jambor <mjambor@suse.cz>
  11838. * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
  11839. comments.
  11840. (struct ipa_pass_through_data): New type.
  11841. (struct ipa_ancestor_jf_data): New type.
  11842. (union jump_func_value): Removed field formal_id, added fields
  11843. pass_through and ancestor.
  11844. (struct ipa_param_call_note): Changed type of formal_id to int from
  11845. unsigned.
  11846. * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
  11847. operations jump functions and ancestor jump functions.
  11848. (compute_complex_pass_through): New function.
  11849. (compute_scalar_jump_functions): Call compute_complex_pass_through,
  11850. reflect changes in the jump function strucutre.
  11851. (update_jump_functions_after_inlining): Ignore complex pass-through
  11852. and ancestor jump functions.
  11853. * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
  11854. polynomial pass-through with operation jump functions.
  11855. 2009-08-07 Jakub Jelinek <jakub@redhat.com>
  11856. * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
  11857. fde->dw_fde_begin as begin label instead of hot/cold label.
  11858. Use LLSDAC label instead of LLSDA for second section lsda.
  11859. (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
  11860. label instead of LLSDA if it is true.
  11861. (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
  11862. callers.
  11863. * except.c (add_call_site, dw2_size_of_call_site_table): Add
  11864. SECTION argument. Use it as index into crtl->eh.call_site_record
  11865. array.
  11866. (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
  11867. use it to determine how to print table entries instead of using
  11868. #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
  11869. label instead of normal begin label as base.
  11870. (sjlj_assign_call_site_values): Adjust add_call_site caller.
  11871. (convert_to_eh_region_ranges): When doing hot/cold partitioning,
  11872. ensure no EH range spans between sections and that landing pads
  11873. are always in the corresponding section.
  11874. (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
  11875. for crtl->eh.call_site_record being an array rather than scalar.
  11876. (output_one_function_exception_table): New function, copied
  11877. from output_function_exception_table. Adjust
  11878. dw2_size_of_call_site_table, dw2_output_call_site_table
  11879. callers. For SECOND section use *C suffixed labels.
  11880. (output_function_exception_table): Call
  11881. output_one_function_exception_table and, when doing hot/cold
  11882. partitioning, also another time for the second section.
  11883. * opts.c: Include except.h.
  11884. (decode_options): Allow -freorder-blocks-and-partition with
  11885. exceptions, unless SJLJ or TARGET_UNWIND_INFO.
  11886. * Makefile.in (opts.o): Depend on $(EXCEPT_H).
  11887. * function.h (struct rtl_eh): Change call_site_record from
  11888. scalar into array of 2 elements.
  11889. 2009-08-07 Martin Jambor <mjambor@suse.cz>
  11890. * ipa-prop.c (count_formal_params_1): New function.
  11891. (ipa_get_vector_of_formal_parms): New function.
  11892. (get_vector_of_formal_parm_types): New function.
  11893. (ipa_modify_formal_parameters): New function.
  11894. (ipa_modify_call_arguments): New function.
  11895. (index_in_adjustments_multiple_times_p): New function.
  11896. (ipa_combine_adjustments): New function.
  11897. (ipa_dump_param_adjustments): New function.
  11898. * ipa-prop.h (struct ipa_parm_adjustment): New type.
  11899. (ipa_get_vector_of_formal_parms): Declare.
  11900. (ipa_modify_formal_parameters): Declare.
  11901. (ipa_modify_call_arguments): Declare.
  11902. (ipa_combine_adjustments): Declare.
  11903. (ipa_dump_param_adjustments): Declare.
  11904. (build_ref_for_offset): Declare.
  11905. * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
  11906. * tree-sra.c: Include ipa-prop.c.
  11907. (build_ref_for_offset): Make public.
  11908. 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
  11909. * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
  11910. 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
  11911. * gcc/doc/extend.texi (__builtin_extract_return_address)
  11912. (__builtin_frob_return_address): Document.
  11913. 2009-08-06 Paul Brook <paul@codesourcery.com>
  11914. * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
  11915. (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
  11916. implementation on ARMv6-M.
  11917. 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
  11918. * doc/extend.texi (pcs): Document new attribute for ARM.
  11919. 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
  11920. * arm.c (pcs_attribute_args): Comment out unsupported attribute
  11921. variants.
  11922. 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
  11923. * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
  11924. warning ().
  11925. 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
  11926. * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
  11927. 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
  11928. Merge ARM/hard_vfp_branch to trunk.
  11929. 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
  11930. * arm.c (libcall_eq): New function.
  11931. (libcall_hash): New function.
  11932. (add_libcall): New function.
  11933. (arm_libcall_uses_aapcs_base): New function.
  11934. (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
  11935. libcalls using the base PCS.
  11936. (arm_init_cumulative_args): Likewise.
  11937. 2009-07-20 Joseph Myers <joseph@codesourcery.com>
  11938. * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
  11939. Use base ABI for conversion libfuncs between HFmode and SFmode.
  11940. 2009-05-12 Joseph Myers <joseph@codesourcery.com>
  11941. * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
  11942. V4SImode as representatives of all 64-bit and 128-bit vector
  11943. types. Allow vector types without vector modes.
  11944. (aapcs_vfp_is_call_or_return_candidate): Handle vector types
  11945. without vector modes like BLKmode.
  11946. (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
  11947. BLKmode. Avoid unsupported vector modes or TImode moves for
  11948. non-TARGET_NEON.
  11949. (aapcs_vfp_allocate_return_reg): Likewise.
  11950. (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
  11951. V8QImode if TARGET_NEON || TARGET_IWMMXT.
  11952. 2009-05-12 Joseph Myers <joseph@codesourcery.com>
  11953. * config/arm/arm.c (arm_handle_pcs_attribute): New.
  11954. (arm_get_pcs_model): Pass attribute arguments to
  11955. arm_pcs_from_attribute.
  11956. (arm_init_cumulative_args): Use base AAPCS for conversions from
  11957. floating-point types to DImode.
  11958. (arm_attribute_table): Add pcs attribute.
  11959. (arm_handle_pcs_attribute): New.
  11960. * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
  11961. conversions from floating-point types to DImode, also declare them
  11962. to use base AAPCS and declare functions they call to use base
  11963. AAPCS and their RTABI names.
  11964. 2009-05-12 Joseph Myers <joseph@codesourcery.com>
  11965. * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
  11966. -mfloat-abi=hard not being supported for VFP.
  11967. 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
  11968. * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
  11969. SYMBOL_REF to hard_libcall_value.
  11970. 2009-03-05 Joseph Myers <joseph@codesourcery.com>
  11971. Richard Earnshaw <rearnsha@arm.com>
  11972. * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
  11973. has been put on the stack, all remaining co-processory arguments for
  11974. that co-processor also go on the stack.
  11975. 2009-03-05 Joseph Myers <joseph@codesourcery.com>
  11976. * config/arm/arm.c (arm_return_in_memory): Handle returning
  11977. vectors of suitable size in registers also for AAPCS case.
  11978. 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
  11979. * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
  11980. 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
  11981. ARM Hard-VFP calling convention
  11982. * target-def.h (TARGET_LIBCALL_VALUE): New hook.
  11983. * target.h (gcc_target): Add libcall_value to table of call hooks.
  11984. * targhooks.h (default_libcall_value): Default implementation.
  11985. * targhooks.c (default_libcall_value): Likewise.
  11986. * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
  11987. * optabs.c (expand_unop): Use it.
  11988. * expr.h (hard_libcall_value): Pass the function RTX through.
  11989. * calls.c (emit_library_call_value_1): Update call to
  11990. hard_libcall_value.
  11991. * explow.c (hard_libcall_value): Use new target hook.
  11992. * config/arm/arm.c: Include cgraph.h
  11993. (TARGET_FUNCTION_VALUE): Override default hook.
  11994. (arm_pcs_default): New variable.
  11995. (arm_override_options): Don't fault hard calling convention with VFP.
  11996. Add support for AAPCS variants.
  11997. (arm_function_value): Make static. Handle AAPCS variants.
  11998. (arm_libcall_value): New function.
  11999. (arm_apply_result_size): Handle VFP registers in results.
  12000. (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
  12001. conventions.
  12002. (pcs_attribute_args): New variable.
  12003. (arm_pcs_from_attribute): New function.
  12004. (arm_get_pcs_model): New function.
  12005. (aapcs_vfp_cum_init): New function.
  12006. (aapcs_vfp_sub_candidate): New function.
  12007. (aapcs_vfp_is_return_candidate): New function.
  12008. (aapcs_vfp_is_call_candidate): New function.
  12009. (aapcs_vfp_allocate): New function.
  12010. (aapcs_vfp_allocate_return_reg): New function.
  12011. (aapcs_vfp_advance): New function.
  12012. (aapcs_cp_arg_layout): New variable.
  12013. (aapcs_select_call_coproc): New function.
  12014. (aapcs_select_return_coproc): New function.
  12015. (aapcs_allocate_return_reg): New function.
  12016. (aapcs_libcall_value): New function.
  12017. (aapcs_layout_arg): New function.
  12018. (arm_init_cumulative_args): Initialize AAPCS args data.
  12019. (arm_function_arg): Handle AAPCS variants using new interface.
  12020. (arm_arg_parital_bytes): Likewise.
  12021. (arm_function_arg_advance): New function.
  12022. (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
  12023. calling conventions.
  12024. (arm_setup_incoming_varargs): Handle new AAPCS args data.
  12025. * arm.h (NUM_VFP_ARG_REGS): Define.
  12026. (LIBCALL_VALUE): Update.
  12027. (FUNCTION_VALUE): Delete.
  12028. (FUNCTION_VALUE_REGNO_P): Add VFP regs.
  12029. (arm_pcs): New enum.
  12030. (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
  12031. (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
  12032. (FUNCTION_ARG_REGNO_P): Add VFP regs.
  12033. * arm-protos.h (arm_function_arg_advance): Add.
  12034. (aapcs_libcall_value): Add.
  12035. (arm_function_value): Delete.
  12036. 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
  12037. H.J. Lu <hongjiu.lu@intel.com>
  12038. PR target/40957
  12039. * config/i386/i386.c (standard_sse_mode_p): Remove.
  12040. (standard_sse_constant_p): Return 2 for integer mode
  12041. vector_all_ones_operand when SSE2 is enabled.
  12042. (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
  12043. (ix86_expand_vector_move): Do not check for negative values from
  12044. standard_sse_constant_p.
  12045. 2009-08-06 Richard Guenther <rguenther@suse.de>
  12046. * tree-ssa.c (useless_type_conversion_p_1): Make function and
  12047. array type comparisons frontend independent.
  12048. * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
  12049. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
  12050. out array reference lower bound and element size operands.
  12051. (ao_ref_init_from_vn_reference): Properly compute the offset
  12052. for ARRAY_RANGE_REF.
  12053. (vn_reference_fold_indirect): Fill out array reference lower
  12054. bound and element size operands.
  12055. * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
  12056. a non gimple valued reference operand which can happen for
  12057. array reference lower bound or element size.
  12058. (create_component_ref_by_pieces_1): Properly generate the
  12059. element size operand for array references.
  12060. 2009-08-06 Richard Guenther <rguenther@suse.de>
  12061. PR tree-optimization/40964
  12062. * tree.c (iterative_hash_host_wide_int): Export.
  12063. * tree.h (iterative_hash_host_wide_int): Declare.
  12064. * tree-ssa-structalias.c (heapvar_map): New struct.
  12065. (heapvar_map_eq): New function.
  12066. (heapvar_map_hash): Likewise.
  12067. (heapvar_lookup): Adjust.
  12068. (heapvar_insert): Likewise.
  12069. (make_constraint_from_heapvar): Allow multiple heap variables
  12070. per decl at different offsets.
  12071. (init_alias_heapvars): Adjust.
  12072. 2009-08-04 David Daney <ddaney@caviumnetworks.com>
  12073. * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
  12074. * mips_output_sync_loop (mips_output_sync_loop): Only emit
  12075. trailing sync if TARGET_SYNC_AFTER_SC.
  12076. 2009-08-05 David Daney <ddaney@caviumnetworks.com>
  12077. * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
  12078. compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
  12079. sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
  12080. sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
  12081. sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
  12082. sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
  12083. sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
  12084. sync_new_nand<mode>, sync_lock_test_and_set<mode>,
  12085. test_and_set_12): Rewrite calls to mips_output_sync_loop.
  12086. * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
  12087. the prototype declaration match the definition.
  12088. * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
  12089. instructions explicitly. Add barrier_before and operands
  12090. parameters.
  12091. * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
  12092. MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
  12093. MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
  12094. MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
  12095. MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
  12096. MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
  12097. 2009-08-05 Andrew Pinski <pinskia@gmail.com>
  12098. * tree-ssa-alias.c: Fix intervals to use [) syntax.
  12099. 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
  12100. Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
  12101. PR target/40906
  12102. * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
  12103. source operand.
  12104. 2009-08-05 Jakub Jelinek <jakub@redhat.com>
  12105. PR rtl-optimization/40924
  12106. * dse.c (canon_address): Before calling cselib_expand_value_rtx
  12107. make sure canon_rtx (mem_address) isn't simpler than
  12108. canon_rtx (expanded_mem_address).
  12109. 2009-08-05 Li Feng <nemokingdom@gmail.com>
  12110. * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
  12111. for each poly_bb_p.
  12112. (build_scop_drs): Build alias set for each SCoP.
  12113. 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
  12114. * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
  12115. * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
  12116. * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
  12117. (MIPS_ARCH_FLOAT_SPEC): Likewise.
  12118. (BASE_DRIVER_SELF_SPECS): Likewise.
  12119. 2009-08-04 Andrew Pinski <pinskia@gmail.com>
  12120. * tree-ssa-alias.c: Fix some comment typos.
  12121. 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
  12122. * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
  12123. ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
  12124. 2009-08-03 Janis Johnson <janis187@us.ibm.com>
  12125. PR c/39902
  12126. * simplify-rtx.c (simplify_binary_operation_1): Disable
  12127. simplifications for decimal float operations.
  12128. 2009-08-03 Jakub Jelinek <jakub@redhat.com>
  12129. PR middle-end/40943
  12130. * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
  12131. operand of INDIRECT_REF.
  12132. 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
  12133. * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
  12134. constants referencing TLS symbols.
  12135. 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
  12136. * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
  12137. __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
  12138. 2009-08-03 Richard Guenther <rguenther@suse.de>
  12139. * tree.c (make_vector_type): Build a main variant first,
  12140. get the canonical one and then build the variant.
  12141. * tree-ssa.c (useless_type_conversion_p_1): Handle
  12142. fixed-point types.
  12143. (useless_type_conversion_p): Conversions to pointers to
  12144. incomplete record types are useless.
  12145. 2009-08-03 Richard Guenther <rguenther@suse.de>
  12146. * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
  12147. file will be created.
  12148. * omp-low.c (pass_diagnose_omp_blocks): Likewise.
  12149. * toplev.c (compile_file): Adjust comment.
  12150. 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
  12151. * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
  12152. * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
  12153. (TARGET_PROMOTE_FUNCTION_MODE): Define.
  12154. (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
  12155. (sh_promote_function_mode): Fix typo.
  12156. 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
  12157. * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
  12158. 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  12159. * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
  12160. declaration arguments.
  12161. 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
  12162. * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
  12163. of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
  12164. (ix86_split_ashl): Ditto.
  12165. (ix86_expand_vector_init_one_nonzero): Ditto.
  12166. (ix86_expand_vector_set): Ditto.
  12167. (ix86_expand_reduc_v4sf): Ditto.
  12168. 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
  12169. * explow.c (promote_function_mode): Remove assert.
  12170. * config/sh/sh.c (sh_promote_function_mode): Declare.
  12171. 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  12172. * config/pa/pa.c (pa_promote_function_mode): Declare.
  12173. Change to static. Fix promote_mode call.
  12174. * gthr-dce.h (CONST_CAST2): Define if not defined.
  12175. (__gthread_setspecific): Use CONST_CAST2 to fix warning.
  12176. * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
  12177. 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
  12178. * expr.c (store_constructor): Use promote_decl_mode. Remove
  12179. now write-only variable unsignedp.
  12180. (expand_expr_real_1): Use promote_decl_mode.
  12181. * expr.h (promote_function_mode, promote_decl_mode): New.
  12182. (promote_mode): Remove last argument.
  12183. * function.c (assign_temp): Drop last argument of promote_mode.
  12184. (assign_parm_find_data_types): Use promote_function_mode.
  12185. (assign_parm_setup_reg): Likewise.
  12186. (expand_function_end): Use promote_function_mode.
  12187. * calls.c (initialize_argument_information): Use promote_function_mode.
  12188. (precompute_arguments): Use promote_mode instead of checking if
  12189. only PROMOTE_FUNCTION_MODE is defined.
  12190. (expand_call): When making sibcall decisions, use promote_function_mode.
  12191. Below, remove an if for targetm.calls.promote_function_return and
  12192. and use promote_function_mode.
  12193. (emit_library_call_value_1): Use promote_function_mode, fix bug
  12194. where promote_mode was passed FOR_CALL == 0 for a return value in an
  12195. assertion.
  12196. * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
  12197. * explow.c (promote_function_mode, promote_decl_mode): New.
  12198. (promote_mode): Keep only the FOR_CALL == 0 case.
  12199. * combine.c (setup_incoming_promotion): Remove test of
  12200. promote_function_args. Use promote_function_mode.
  12201. * stmt.c (expand_value_return): Use promote_decl_mode.
  12202. (expand_decl): Use promote_decl_mode.
  12203. * expr.c (store_constructor): Use promote_decl_mode. Remove
  12204. now write-only variable unsignedp.
  12205. (expand_expr_real_1): Use promote_decl_mode.
  12206. * expr.h (promote_function_mode, promote_decl_mode): New.
  12207. (promote_mode): Remove last argument.
  12208. * function.c (assign_temp): Drop last argument of promote_mode.
  12209. (assign_parm_find_data_types): Use promote_function_mode.
  12210. (assign_parm_setup_reg): Likewise.
  12211. (expand_function_end): Use promote_function_mode.
  12212. * calls.c (initialize_argument_information): Use promote_function_mode.
  12213. (precompute_arguments): Use promote_mode instead of checking if
  12214. only PROMOTE_FUNCTION_MODE is defined.
  12215. (expand_call): When making sibcall decisions, use promote_function_mode.
  12216. Below, remove an if for targetm.calls.promote_function_return and
  12217. and use promote_function_mode.
  12218. (emit_library_call_value_1): Use promote_function_mode, fix bug
  12219. where promote_mode was passed FOR_CALL == 0 for a return value in an
  12220. assertion.
  12221. * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
  12222. * explow.c (promote_function_mode, promote_decl_mode): New.
  12223. (promote_mode): Keep only the FOR_CALL == 0 case.
  12224. * combine.c (setup_incoming_promotion): Remove test of
  12225. promote_function_args. Use promote_function_mode.
  12226. * stmt.c (expand_value_return): Use promote_decl_mode.
  12227. (expand_decl): Use promote_decl_mode.
  12228. * explow.c (promote_function_mode): Just call the target hook.
  12229. * targhooks.c (default_promote_function_mode,
  12230. default_promote_function_mode_always_promote): New.
  12231. * targhooks.h (default_promote_function_mode,
  12232. default_promote_function_mode_always_promote): Declare.
  12233. * target.h (promote_function_args, promote_function_return): Remove.
  12234. (promote_function_mode): New.
  12235. * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
  12236. TARGET_PROMOTE_FUNCTION_RETURN): Remove.
  12237. (TARGET_PROMOTE_FUNCTION_MODE): New.
  12238. (TARGET_CALLS): Adjust.
  12239. * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
  12240. TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
  12241. * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
  12242. * config/s390/s390.c (s390_promote_function_mode): ... here,
  12243. with pointer handling.
  12244. (TARGET_PROMOTE_FUNCTION_MODE): Define.
  12245. (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
  12246. * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
  12247. * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
  12248. with pointer handling.
  12249. (TARGET_PROMOTE_FUNCTION_MODE): Define.
  12250. (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
  12251. * config/sh/sh-protos.h (sh_promote_function_mode): New.
  12252. * config/sh/sh.c (sh_promote_function_mode): New.
  12253. (TARGET_PROMOTE_FUNCTION_MODE): Define.
  12254. (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
  12255. * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
  12256. * config/cris/cris.c (cris_promote_function_mode): ... here.
  12257. (TARGET_PROMOTE_FUNCTION_MODE): Define.
  12258. (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
  12259. * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
  12260. * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
  12261. (TARGET_PROMOTE_FUNCTION_MODE): Define.
  12262. (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
  12263. * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
  12264. * config/arm/arm.c (arm_promote_function_mode): ... here, without
  12265. complex type handling.
  12266. (TARGET_PROMOTE_FUNCTION_MODE): Define.
  12267. (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
  12268. * config/pa/pa.c (pa_promote_function_mode): New.
  12269. (TARGET_PROMOTE_FUNCTION_MODE): Define.
  12270. (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
  12271. * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
  12272. TARGET_PROMOTE_FUNCTION_RETURN): Remove.
  12273. (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
  12274. * config/xtensa/xtensa.c: Likewise.
  12275. * config/stormy16/stormy16.c: Likewise.
  12276. * config/iq2000/iq2000.c: Likewise.
  12277. * config/rs6000/rs6000.c: Likewise.
  12278. * config/picochip/picochip.c: Likewise.
  12279. * config/arc/arc.c: Likewise.
  12280. * config/mcore/mcore.c: Likewise.
  12281. * config/score/score.c: Likewise.
  12282. * config/mips/mips.c: Likewise.
  12283. * config/bfin/bfin.c: Likewise.
  12284. * config/ia64/ia64.c: Likewise (disabled though).
  12285. * config/frv/frv.h: Remove pointless remark.
  12286. * doc/tm.texi (PROMOTE_FUNCTION_MODE,
  12287. TARGET_PROMOTE_FUNCTION_ARGS,
  12288. TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
  12289. (TARGET_PROMOTE_FUNCTION_MODE): ... this.
  12290. 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
  12291. * doc/invoke.texi (-fgraphite-force-parallel): Renamed
  12292. -floop-parallelize-all.
  12293. * toplev.c (process_options): Rename flag_graphite_force_parallel to
  12294. flag_loop_parallelize_all.
  12295. * tree-ssa-loop.c (gate_graphite_transforms): Same.
  12296. * graphite.c (graphite_transform_loops): Same.
  12297. * common.opt: Same.
  12298. * graphite-poly.c (apply_poly_transforms): Same.
  12299. 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
  12300. PR tree-optimization/40914
  12301. * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
  12302. if set, then check the delta field of the PMF record.
  12303. (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
  12304. (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
  12305. call is stored in the delta.
  12306. 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
  12307. * config/mips/mips.md (*clear_upper32_dext): New pattern.
  12308. 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
  12309. * config/i386/bsd.h (ASM_BYTE): New define.
  12310. * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
  12311. * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
  12312. .byte. Use fputs or putc instead of fprintf where appropriate.
  12313. * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
  12314. fputs or putc instead of fprintf where appropriate.
  12315. * config/i386/i386elf.h: Ditto.
  12316. * config/i386/sysv4.h: Ditto.
  12317. * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
  12318. * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
  12319. (*tls_global_dynamic_64): Ditto.
  12320. 2009-07-31 Christian Bruel <christian.bruel@st.com>
  12321. * gcc/config.gcc (sh*-*-elf): test with_libgloss.
  12322. 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  12323. * config/arm/arm.c (arm_arm_address_cost): Fix typo.
  12324. Remove dead code for MINUS.
  12325. 2009-07-31 Anthony Green <green@moxielogic.com>
  12326. * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
  12327. $r12 in prologue.
  12328. (moxie_expand_epilogue): Ditto for epilogue.
  12329. (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
  12330. incoming arguments.
  12331. (moxie_function_arg): Ditto.
  12332. (moxie_pass_by_reference): Ditto.
  12333. (moxie_arg_partial_bytes): Ditto.
  12334. * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
  12335. (FUNCTION_ARG_ADVANCE) Ditto.
  12336. (REG_PARM_STACK_SPACE) Ditto.
  12337. (FUNCTION_ARG_REGNO_P) Dito.
  12338. * config.gcc: Add moxie linux config support.
  12339. * gcc/config/moxie/uclinux.h: New file.
  12340. 2009-07-31 DJ Delorie <dj@redhat.com>
  12341. * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
  12342. (UNSPECV_SP_SWITCH_E): New.
  12343. (sp_switch_1): Change to an unspec.
  12344. (sp_switch_2): Change to an unspec. Don't use post-inc when we
  12345. replace $r15.
  12346. * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
  12347. reference the new stack's address
  12348. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12349. * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
  12350. graphite-clast-to-gimple.o, graphite-dependences.o,
  12351. graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
  12352. graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
  12353. (graphite-blocking.o,
  12354. graphite-clast-to-gimple.o, graphite-dependences.o,
  12355. graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
  12356. graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
  12357. * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
  12358. * cfgloop.h (struct loop): Add can_be_parallel field.
  12359. * common.opt (fgraphite-identity): Moved up.
  12360. (fgraphite-force-parallel): New flag.
  12361. * graphite.c: Rewrite.
  12362. * graphite.h: Rewrite.
  12363. * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
  12364. after Graphite.
  12365. * toplev.c (graphite_out_file): New file descriptor.
  12366. (graphite_in_file): New.
  12367. (process_options): flag_graphite_force_parallel cannot be used without
  12368. Graphite.
  12369. * tree-ssa-loop.c: Include toplev.h.
  12370. (gate_graphite_transforms): Enable flag_graphite for
  12371. flag_graphite_force_parallel.
  12372. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12373. * ChangeLog.graphite: New.
  12374. * graphite-blocking.c: New.
  12375. * graphite-clast-to-gimple.c: New.
  12376. * graphite-clast-to-gimple.h: New.
  12377. * graphite-dependences.c: New.
  12378. * graphite-dependences.h: New.
  12379. * graphite-interchange.c: New.
  12380. * graphite-poly.c: New.
  12381. * graphite-poly.h: New.
  12382. * graphite-ppl.c: New.
  12383. * graphite-ppl.h: New.
  12384. * graphite-scop-detection.c: New.
  12385. * graphite-scop-detection.h: New.
  12386. * graphite-sese-to-poly.c: New.
  12387. * graphite-sese-to-poly.h: New.
  12388. * sese.c: New.
  12389. * sese.h: New.
  12390. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12391. * tree-chrec.c (evolution_function_right_is_integer_cst): New.
  12392. * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
  12393. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12394. * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
  12395. (scev_is_linear_expression): Return false if the evolution is not
  12396. affine multivariate.
  12397. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12398. * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
  12399. * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
  12400. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12401. * tree-data-ref.c (debug_data_references): New.
  12402. (debug_data_reference): New.
  12403. * tree-data-ref.h (debug_data_references): Declared.
  12404. (debug_data_reference): Declared.
  12405. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12406. * tree-data-ref.c (stmt_simple_memref_p: Removed.
  12407. * tree-data-ref.h (scop_p): Removed.
  12408. (struct data_reference): Remove field scop.
  12409. (DR_SCOP): Removed.
  12410. (stmt_simple_memref_p): Removed.
  12411. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12412. * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
  12413. * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
  12414. basic block empty.
  12415. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12416. * doc/invoke.texi (-fgraphite-force-parallel): Documented.
  12417. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12418. * doc/invoke.texi (-fgraphite-identity): Documented.
  12419. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12420. * tree-scalar-evolution.c: Fix comment.
  12421. (instantiate_scev_1): Return unknow from scev instantiation if the
  12422. result is not above instantiate_below.
  12423. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
  12424. * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
  12425. static anymore. Instantiate the symbols that may have been introduced
  12426. by chrec_apply.
  12427. * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
  12428. Declared.
  12429. 2009-07-30 DJ Delorie <dj@redhat.com>
  12430. * config/mep/mep.c (mep_asm_init_sections): Add section flags and
  12431. .vliw directive to VLIW sections.
  12432. 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  12433. * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
  12434. New variables.
  12435. ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
  12436. (AUTOHEADER): New variable.
  12437. ($(srcdir)/cstamp-h.in): Use it.
  12438. 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
  12439. Pat Haugen <pthaugen@us.ibm.com>
  12440. Revital Eres <ERES@il.ibm.com>
  12441. * config/rs6000/vector.md (VEC_F): Add VSX support.
  12442. (VEC_A): Ditto.
  12443. (VEC_N): Ditto.
  12444. (mov<mode>): Ditto.
  12445. (vector_load_<mode>): Ditto.
  12446. (vector_store_<mode>): Ditto.
  12447. (vector GPR move split): Ditto.
  12448. (vec_reload_and_plus_<mptrsize>): Ditto.
  12449. (vec_reload_and_reg_<mptrsize>): Ditto.
  12450. (add<mode>3): Ditto.
  12451. (sub<mode>3): Ditto.
  12452. (mul<mode>3): Ditto.
  12453. (neg<mode>2): Ditto.
  12454. (abs<mode>2): Ditto.
  12455. (smin<mode>3): Ditto.
  12456. (smax<mode>3): Ditto.
  12457. (vector_eq<mode>): Ditto.
  12458. (vector_gt<mode>): Ditto.
  12459. (vector_ge<mode>): Ditto.
  12460. (vector_gtu<mode>): Ditto.
  12461. (vector_select_<mode>_uns): Ditto.
  12462. (vector_eq_<mode>_p): Ditto.
  12463. (vector_gt_<mode>_p): Ditto.
  12464. (vector_ge_<mode>_p): Ditto.
  12465. (vector_gtu_<mode>_p): Ditto.
  12466. (cr6_test_for_zero): Ditto.
  12467. (cr6_test_for_zero_reverse): Ditto.
  12468. (cr6_test_for_lt): Ditto.
  12469. (cr6_test_for_lt_reverse): Ditto.
  12470. (xor<mode>3): Ditto.
  12471. (ior<mode>3): Ditto.
  12472. (and<mode>3): Ditto.
  12473. (one_cmpl<mode>2): Ditto.
  12474. (nor<mode>2): Ditto.
  12475. (andc<mode>2): Ditto.
  12476. (float<VEC_int<mode>2): Ditto.
  12477. (unsigned_float<VEC_int><mode>2): Ditto.
  12478. (fix_trunc<mode><VEC_int>2): Ditto.
  12479. (fixuns_trunc<mode><VEC_int>2): Ditto.
  12480. (vec_init<mode>):
  12481. (vec_set<mode>): Ditto.
  12482. (vec_extract<mode>): Ditto.
  12483. (vec_interleave_highv4sf): Ditto.
  12484. (vec_interleave_lowv4sf): Ditto.
  12485. (vec_realign_load_<mode>): Ditto.
  12486. (vec_shl_<mode>): Ditto.
  12487. (vec_shr_<mode>): Ditto.
  12488. (div<mode>3): New patterns for VSX.
  12489. (vec_interleave_highv2df): Ditto.
  12490. (vec_interleave_lowv2df): Ditto.
  12491. (vec_pack_trunc_v2df): Ditto.
  12492. (vec_pack_sfix_trunc_v2df): Ditto.
  12493. (vec_pack_ufix_trunc_v2df): Ditto.
  12494. (vec_unpacks_hi_v4sf): Ditto.
  12495. (vec_unpacks_lo_v4sf): Ditto.
  12496. (vec_unpacks_float_hi_v4si): Ditto.
  12497. (vec_unpacks_float_lo_v4si): Ditto.
  12498. (vec_unpacku_float_hi_v4si): Ditto.
  12499. (vec_unpacku_float_lo_v4si): Ditto.
  12500. (movmisalign<mode>): Ditto.
  12501. (vector_ceil<mode>2): New patterns for vectorizing math library.
  12502. (vector_floor<mode>2): Ditto.
  12503. (vector_btrunc<mode>2): Ditto.
  12504. (vector_copysign<mode>3): Ditto.
  12505. * config/rs6000/predicates.md (easy_vector_constant_msb): New
  12506. predicate for setting the high bit in each word, used for copysign.
  12507. * config/rs6000/ppc-asm.h (f19): Whitespace.
  12508. (f32-f63): Define if VSX.
  12509. (v0-v31): Define if Altivec.
  12510. (vs0-vs63): Define if VSX.
  12511. * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
  12512. * config/rs6000/power7.md: New file, provide tuning parameters for
  12513. -mcpu=power7.
  12514. * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
  12515. (rs6000_cpu_cpp_builtins): Ditto.
  12516. (altivec_overloaded_builtins): Ditto.
  12517. (altivec_resolve_overloaded_builtin): Ditto.
  12518. * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
  12519. debug switch to disable vectorizing simple math builtin
  12520. functions.
  12521. * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
  12522. Vectorize simple math builtin functions.
  12523. (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
  12524. hook to vectorize math builtins.
  12525. (rs6000_override_options): Enable -mvsx on -mcpu=power7.
  12526. (rs6000_builtin_conversion): Add VSX/power7 support.
  12527. (rs6000_builtin_vec_perm): Ditto.
  12528. (vsplits_constant): Add support for loading up a vector constant
  12529. with just the high bit set in each part.
  12530. (rs6000_expand_vector_init): Add VSX/power7 support.
  12531. (rs6000_expand_vector_set): Ditto.
  12532. (rs6000_expand_vector_extract): Ditto.
  12533. (rs6000_emit_move): Ditto.
  12534. (bdesc_3arg): Ditto.
  12535. (bdesc_2arg): Ditto.
  12536. (bdesc_1arg): Ditto.
  12537. (rs6000_expand_ternop_builtin): Ditto.
  12538. (altivec_expand_builtin): Ditto.
  12539. (rs6000_expand_unop_builtin): Ditto.
  12540. (rs6000_init_builtins): Ditto.
  12541. (altivec_init_builtins): Ditto.
  12542. (builtin_function_type): Ditto.
  12543. (rs6000_common_init_builtins): Ditto.
  12544. (rs6000_handle_altivec_attribute); Ditto.
  12545. (rs6000_mangle_type): Ditto.
  12546. (rs6000_vector_mode_supported_p): Ditto.
  12547. (rs6000_mode_dependent_address): Altivec addresses with AND -16
  12548. are mode dependent.
  12549. * config/rs6000/vsx.md: New file for VSX support.
  12550. * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
  12551. identifing values with just the most significant bit set.
  12552. (enum rs6000_builtins): Add builtins for VSX. Add simple math
  12553. vectorized builtins.
  12554. * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
  12555. (UNSPEC_VRFIM): Delete.
  12556. (splitter for loading up vector with most significant bit): New
  12557. splitter for vectorizing copysign.
  12558. (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
  12559. vectorizing simple math functions.
  12560. (altivec_vrfip): Add support for vectorizing simple math functions.
  12561. (altivec_vrfim): Ditto.
  12562. (altivec_copysign_v4sf3): New insn for Altivec copysign support.
  12563. * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
  12564. (power7.md, vsx.md): Include for power7 support.
  12565. (copysigndf3): Use VSX instructions if -mvsx.
  12566. (negdf2_fpr): Ditto.
  12567. (absdf2_fpr): Ditto.
  12568. (nabsdf2_fpr): Ditto.
  12569. (adddf3_fpr): Ditto.
  12570. (subdf3_fpr): Ditto.
  12571. (muldf3_fpr): Ditto.
  12572. (divdf3_fpr): Ditto.
  12573. (fix_truncdfdi2_fpr): Ditto.
  12574. (cmpdf_internal1): Ditto.
  12575. (fred, fred_fpr): Convert into expander/insn to add VSX support.
  12576. (btruncdf2, btruncdf2_fpr): Ditto.
  12577. (ceildf2, ceildf2_fpr): Ditto.
  12578. (floordf2, floordf2_fpr): Ditto.
  12579. (floatdidf2, floatdidf2_fpr): Ditto.
  12580. (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
  12581. (fmsubdf4_fpr): Ditto.
  12582. (fnmadddf4_fpr_1): Ditto.
  12583. (fnmadddf4_fpr_2): Ditto.
  12584. (fnmsubdf4_fpr_1): Ditto.
  12585. (fnmsubdf4_fpr_2): Ditto.
  12586. (fixuns_truncdfdi2): Add expander for VSX support.
  12587. (fix_truncdfdi2): Ditto.
  12588. (fix_truncdfsi2): Ditto.
  12589. (ftruncdf2): Ditto.
  12590. (btruncsf2): Whitespace.
  12591. (movdf_hardfloat32): Add support for VSX registers.
  12592. (movdf_softfloat32): Ditto.
  12593. (movdf_hardfloat64): Ditto.
  12594. (movdf_hardfloat64_mfpgpr): Ditto.
  12595. (movdf_softfloat64): Ditto.
  12596. (movti splitters): Add check for vector registers supporting
  12597. TImode in the future.
  12598. (bpermd): Add power7 bpermd instruction.
  12599. * config/rs6000/altivec.h (vec_div): Define if VSX.
  12600. (vec_mul): Ditto.
  12601. (vec_msub): Ditto.
  12602. (vec_nmadd): Ditto.
  12603. (vec_nearbyint): Ditto.
  12604. (vec_rint): Ditto.
  12605. (vec_sqrt): Ditto.
  12606. (all predicates): Use the generic builtin function, and not the V4SF
  12607. specific function so that the predicates will work with VSX's V2DF.
  12608. (vec_all_*): Ditto.
  12609. (vec_any_*): Ditto.
  12610. * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
  12611. Document new VSX functions and types.
  12612. * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
  12613. switches.
  12614. * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
  12615. "wa", and "j" constraints. Modify "v" to talk about Altivec
  12616. instead of just vector.
  12617. 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
  12618. PR debug/26475
  12619. * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
  12620. location for phi arguments.
  12621. (rewrite_update_phi_arguments): Find locations for reaching defs.
  12622. * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
  12623. Add location to add_phi_arg calls.
  12624. * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
  12625. * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
  12626. split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
  12627. * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
  12628. create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
  12629. * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
  12630. * tree-phinodes.c (make_phi_node): Initialize location.
  12631. (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
  12632. (add_phi_arg): Add location parameter.
  12633. (remove_phi_arg_num): Move location when moving phi argument.
  12634. * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
  12635. location.
  12636. * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
  12637. slpeel_update_phi_nodes_for_guard1,
  12638. slpeel_update_phi_nodes_for_guard2,
  12639. slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
  12640. vect_loop_versioning): Set locations.
  12641. * tree-parloops.c (create_phi_for_local_result,
  12642. transform_to_exit_first_loop, create_parallel_loop): Add locations.
  12643. * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
  12644. * tree-vect-loop.c (get_initial_def_for_induction,
  12645. vect_create_epilog_for_reduction, vect_finalize_reduction): Add
  12646. locations.
  12647. * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
  12648. (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
  12649. (gimple_phi_arg_set_location): New. Set locus.
  12650. (gimple_phi_arg_has_location): New. Check for locus.
  12651. (redirect_edge_var_map_location): New. Return locus from var_map.
  12652. * tree-vect-data-refs.c (vect_setup_realignment): Set location.
  12653. * tree-ssa-phiopt.c (conditional_replacement): Set locus when
  12654. combining PHI arguments.
  12655. (cond_store_replacement): Set location.
  12656. * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
  12657. * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
  12658. scop_add_exit_phis_edge): Add locations.
  12659. * tree-cfgcleanup.c (remove_forwarder_block,
  12660. remove_forwarder_block_with_phi): Add locations.
  12661. * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
  12662. * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
  12663. locations.
  12664. * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
  12665. * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
  12666. flush_pending_stmts): Add source location.
  12667. * lambda-code.c (perfect_nestify): Maintain location stack with argument
  12668. stack to preserve locations.
  12669. * tree-vect-stmts.c (vectorizable_load): Add location.
  12670. * tree-inline.c (copy_phis_for_bb): Copy locus.
  12671. (setup_one_parameter): Add call locus to inlined parameter stmts.
  12672. (initialize_inlined_parameters): Pass in call location as parameter
  12673. assignment locus.
  12674. (tree_function_versioning): Pass location to setup_one_parameter.
  12675. * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
  12676. * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
  12677. copy and edge lists.
  12678. (insert_partition_copy_on_edge, insert_value_copy_on_edge,
  12679. insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
  12680. locus parameter and override the stmt default if provided.
  12681. (new_elim_graph, clear_elim_graph, delete_elim_graph,
  12682. elim_graph_add_edge, elim_graph_remove_succ_edge,
  12683. FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
  12684. elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
  12685. eliminate_phi): Add locus info in elimination graph for each edge and
  12686. value copy.
  12687. (insert_backedge_copies): Copy locus if present.
  12688. * tree-flow.h (struct _edge_var_map): Add locus field.
  12689. * tree-switch_conversions.c (fix_phi_nodes): Add locations.
  12690. * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
  12691. add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
  12692. locations.
  12693. * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
  12694. 2009-07-30 Martin Jambor <mjambor@suse.cz>
  12695. PR tree-optimization/40570
  12696. * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
  12697. use inlining loops.
  12698. 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
  12699. * ssa-loop-manip.c: Include langhooks.h.
  12700. (rewrite_phi_with_iv): New.
  12701. (rewrite_all_phi_nodes_with_iv): New.
  12702. (canonicalize_loop_ivs): Move here from tree-parloops.c.
  12703. Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
  12704. * tree-parloops.c (loop_parallel_p): Move out all conditions
  12705. except dependency check.
  12706. (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
  12707. (gen_parallel_loop): Call canonicalize_loop_ivs without
  12708. reduction_list argument.
  12709. (build_new_reduction): New.
  12710. (gather_scalar_reductions): New.
  12711. (try_get_loop_niter): New.
  12712. (try_create_reduction_list): New.
  12713. (parallleize_loops): Change the parallel conditions check.
  12714. * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
  12715. * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
  12716. 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
  12717. * opt-functions.awk (opt_args): Allow argument to be enclosed in
  12718. curly braces.
  12719. * doc/options.texi (Option properties): Mention new quoting syntax.
  12720. 2009-07-29 Douglas B Rupp <rupp@gnat.com>
  12721. * config/alpha/alpha.c (alpha_start_function):
  12722. Handle VMS_DEBUG_MAIN_POINTER
  12723. * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
  12724. * doc/invoke.texi: Document -mdebug-main switch.
  12725. 2009-07-29 Richard Henderson <rth@redhat.com>
  12726. * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
  12727. (cgraph_create_edge_including_clones): Likewise.
  12728. * tree-inline.c (copy_bb): Operate on the correct edges
  12729. when updating the callgraph.
  12730. 2009-07-29 Douglas B Rupp <rupp@gnat.com>
  12731. * config/alpha/vms-cc.c: Deleted.
  12732. * config/alpha/vms-ld.c: Deleted.
  12733. * config/alpha/t-vms64: Moved to config/vms
  12734. * config/alpha/vms-crt0-64.c: Moved to config/vms
  12735. * config/alpha/vms-crt0.c: Moved to config/vms
  12736. * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
  12737. * config/alpha/vms-psxcrt0.c: Moved to config/vms
  12738. * config/alpha/xm-vms.h: Moved to config/vms
  12739. * config/alpha/x-vms: Moved to config/vms
  12740. * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
  12741. config/vms/t-vms.
  12742. * config/vms/t-vms: Moved here from config/alpha. Alpha specific
  12743. parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
  12744. (version): Set.
  12745. * config/vms/t-vms64: Moved here from config/alpha
  12746. * config/vms/vms-crt0-64.c: Moved here from config/alpha.
  12747. (argc,argv,envp): Enforce 32bit malloc'ing.
  12748. * config/vms/vms-psxcrt0-64.c: Likewise.
  12749. * config/vms/vms-crt0.c: Moved here from config/alpha.
  12750. * config/vms/vms-psxcrt0.c: Likewise.
  12751. * config/vms/vms-crtl-64.h: New file.
  12752. * config/vms/vms-crtl.h: New file.
  12753. * config/vms/vms.opt: New file.
  12754. * config/vms/xm-vms64.h: New file.
  12755. * config/vms/xm-vms.h: Moved here from config/alpha.
  12756. (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
  12757. Set.
  12758. * config/vms/x-vms: Moved here from config/alpha.
  12759. (version, VMS_EXTRA_PARTS): Moved to t-vms.
  12760. (vms-ld.o, vms-cc.o): Removed.
  12761. (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
  12762. 2009-07-29 Douglas B Rupp <rupp@gnat.com>
  12763. * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
  12764. correct stack (obvious VMS fix).
  12765. 2009-07-29 Douglas B Rupp <rupp@gnat.com>
  12766. * dwarf2out.c (output_file_names): Output VMS style file name, size,
  12767. date, version info if VMS_DEBUGGING_INFO defined.
  12768. * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
  12769. size, date calculating code moved here.
  12770. 2009-07-29 Paul Brook <paul@codesourcery.com>
  12771. * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
  12772. do_push/do_pop.
  12773. 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
  12774. PR target/40577
  12775. * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
  12776. to DImode when generating insq_le insn.
  12777. 2009-07-28 Douglas B Rupp <rupp@gnat.com>
  12778. * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
  12779. New macro set for VMS_DEBUGGGING_INFO.
  12780. (AT_string_form): Use it.
  12781. 2009-07-28 DJ Delorie <dj@redhat.com>
  12782. * config/mep/mep.c (vtext_section): New.
  12783. (vftext_section): New.
  12784. (ftext_section): New.
  12785. (mep_select_section): Add support for functions.
  12786. (mep_unique_section): Likewise.
  12787. (mep_asm_init_sections): Likewise.
  12788. (mep_encode_section_info): Remove it from here.
  12789. * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
  12790. 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
  12791. * tree.h (TREE_DEPRECATED): Document it is used for types too.
  12792. (TYPE_VECTOR_OPAQUE): Use default_def_flag
  12793. 2009-07-28 Douglas B Rupp <rupp@gnat.com>
  12794. * dwarf2out.c (output_file_names): Test new macro
  12795. DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
  12796. (add_comp_dir_attribute): Likewise.
  12797. 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
  12798. * config/i386/mingw-w64.h (LINK_SPEC): Add
  12799. separating space between commands.
  12800. 2009-07-28 Jan Hubicka <jh@suse.cz>
  12801. PR tree-optimization/40759
  12802. * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
  12803. for renaming.
  12804. 2009-07-27 DJ Delorie <dj@redhat.com>
  12805. * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
  12806. types are dword-aligned.
  12807. (mep_expand_va_start): Likewise.
  12808. 2009-07-27 Olivier Hainque <hainque@adacore.com>
  12809. Douglas B Rupp <rupp@gnat.com>
  12810. * convert.c (convert_to_pointer): Don't assume the target
  12811. pointer type is POINTER_SIZE long. Fetch its precision instead.
  12812. 2009-07-27 Douglas B Rupp <rupp@gnat.com>
  12813. * system.h (fopen): Undefine if macro.
  12814. 2009-07-27 Jakub Jelinek <jakub@redhat.com>
  12815. * dwarf2out.c (output_cfi_p): Removed.
  12816. (output_cfis): New function.
  12817. (output_fde): New function, split from output_call_frame_info.
  12818. (output_call_frame_info): Use it.
  12819. (dwarf2out_switch_text_section): Use output_cfis.
  12820. 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
  12821. * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
  12822. TARGET_BI_ARCH is specified without enabling SJLJ.
  12823. * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
  12824. if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
  12825. 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
  12826. * arm.md (negdi2): Use DImode if forcing a value into a register.
  12827. 2009-07-26 Ira Rosen <irar@il.ibm.com>
  12828. PR tree-optimization/40801
  12829. * tree-vect-stmts.c (vectorizable_call): Get previous copy
  12830. of vector operand from the previous copy of vector statement.
  12831. Pass the correct definition type value to
  12832. vect_get_vec_def_for_stmt_copy().
  12833. 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  12834. * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
  12835. const char ** conversion.
  12836. 2009-07-25 David Daney <ddaney@caviumnetworks.com>
  12837. * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
  12838. fancy_abort() if !ENABLE_ASSERT_CHECKING.
  12839. (gcc_unreachable): Invoke __builtin_unreachable() if
  12840. !ENABLE_ASSERT_CHECKING.
  12841. 2009-07-25 David Daney <ddaney@caviumnetworks.com>
  12842. PR rtl-optimization/40445
  12843. * emit-rtl.c (next_nonnote_insn_bb): New function.
  12844. * rtl.h (next_nonnote_insn_bb): Declare new function.
  12845. * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
  12846. with no successors that is the successor of the ENTRY_BLOCK.
  12847. Continue from the top after removing an empty fallthrough block.
  12848. * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
  12849. of next_nonnote_insn.
  12850. 2009-07-25 David Daney <ddaney@caviumnetworks.com>
  12851. * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
  12852. 2009-07-25 Martin Jambor <mjambor@suse.cz>
  12853. * c-common.c (c_common_attribute_table): New element for noclone.
  12854. (handle_noclone_attribute): New function. Forward-declare.
  12855. * tree-inline.c (tree_versionable_function_p): Check for noclone
  12856. attribute.
  12857. * doc/extend.texi (Labels as Values): Document need for noclone.
  12858. (Function Attributes): Document noclone attribute.
  12859. 2009-07-25 Jakub Jelinek <jakub@redhat.com>
  12860. PR rtl-optimization/34999
  12861. * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
  12862. and dw_fde_switched_cold_to_hot fields.
  12863. (output_cfi_p): New function.
  12864. (output_call_frame_info): If fde->dw_fde_switched_sections,
  12865. output 2 FDEs instead of one with corrupted header.
  12866. (dwarf2out_do_cfi_startproc): New function.
  12867. (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
  12868. and fde->dw_fde_switched_cold_to_hot.
  12869. (dwarf2out_switch_text_section): Compute
  12870. fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
  12871. If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
  12872. dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
  12873. Otherwise, compute fde->dw_fde_switch_cfi.
  12874. 2009-07-24 Cary Coutant <ccoutant@google.com>
  12875. * tree-cfg.c (assign_discriminator): Add explicit parentheses.
  12876. 2009-07-24 Cary Coutant <ccoutant@google.com>
  12877. * cfghooks.c (split_block): Copy discriminator to new block.
  12878. * tree-cfg.c (assign_discriminator): Check location of last
  12879. instruction in block as well as first.
  12880. 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
  12881. * config/i386/linux.c: Use fputs or putc instead of fprintf
  12882. where appropriate.
  12883. * config/i386/gas.h: Ditto.
  12884. * config/i386/x86-64.h: Ditto.
  12885. * config/i386/att.h: Ditto.
  12886. 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  12887. * expmed.c (emit_store_flag): Use a recursive call to optimize the
  12888. xor case.
  12889. 2009-07-24 Martin Jambor <mjambor@suse.cz>
  12890. * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
  12891. (ipa_push_func_to_list_1): Declare.
  12892. (ipa_push_func_to_list): New function.
  12893. * ipa-prop.c (ipa_push_func_to_list_1): New function.
  12894. (ipa_init_func_list): Call ipa_push_func_to_list_1.
  12895. (ipa_push_func_to_list): Removed.
  12896. (ipa_pop_func_from_list): Clear node_enqueued flag.
  12897. 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
  12898. * config/s390/s390.c (override_options): Default
  12899. max-unrolled-insns to 100 for z10 tuning.
  12900. 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
  12901. * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
  12902. tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
  12903. tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
  12904. tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
  12905. tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
  12906. tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
  12907. lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
  12908. 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
  12909. * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
  12910. use default set in mingw32.h header.
  12911. * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
  12912. 64-bit /mingw/include path.
  12913. (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
  12914. path.
  12915. 2009-07-23 Neil Vachharajani <nvachhar@google.com>
  12916. PR rtl-optimization/40209
  12917. * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
  12918. 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
  12919. * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
  12920. ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
  12921. with the rest of string where appropriate. Use fputs or putc
  12922. instead of fprintf where appropriate.
  12923. 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
  12924. Pat Haugen <pthaugen@us.ibm.com>
  12925. Revital Eres <ERES@il.ibm.com>
  12926. * config/rs6000/vector.md: New file. Move most of the vector
  12927. expander support here from altivec.md to allow for the VSX vector
  12928. unit in the future. Add support for secondary_reload patterns.
  12929. Rewrite the patterns for vector comparison, and vector comparison
  12930. predicate instructions so that the RTL expresses the desired
  12931. behavior, instead of using unspec.
  12932. * config/rs6000/constraints.md ("f" constraint): Use
  12933. rs6000_constraints to hold the precalculated register class.
  12934. ("d" constraint): Ditto.
  12935. ("wd" constraint): New constraint for VSX.
  12936. ("wf" constraint): Ditto.
  12937. ("ws" constraint): Ditto.
  12938. ("wa" constraint): Ditto.
  12939. ("wZ" constraint): Ditto.
  12940. ("j" constraint): Ditto.
  12941. * config/rs6000/predicates.md (vsx_register_operand): New
  12942. predicate for VSX.
  12943. (vfloat_operand): New predicate for vector.md.
  12944. (vint_operand): Ditto.
  12945. (vlogical_operand): Ditto.
  12946. (easy_fp_constant): If VSX, 0.0 is an easy constant.
  12947. (easy_vector_constant): Add VSX support.
  12948. (altivec_indexed_or_indirect_operand): New predicate for
  12949. recognizing Altivec style memory references with AND -16.
  12950. * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
  12951. for vector secondary reload support.
  12952. (rs6000_vector_reg_class): Delete, replacing it with
  12953. rs6000_constraints.
  12954. (rs6000_vsx_reg_class): Ditto.
  12955. (rs6000_constraints): New array to hold the register classes of
  12956. each of the register constraints that can vary at runtime.
  12957. (builtin_mode_to_type): New static array for builtin function type
  12958. creation.
  12959. (builtin_hash_table): New static hash table for builtin function
  12960. type creation.
  12961. (TARGET_SECONDARY_RELOAD): Define target hook.
  12962. (TARGET_IRA_COVER_CLASSES): Ditto.
  12963. (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
  12964. registers are 128 bits if VSX memory reference instructions are used.
  12965. (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
  12966. unit is being used.
  12967. (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
  12968. (rs6000_debug_reg_global): Move -mdebug=reg statements here.
  12969. Print several of the scheduling related parameters.
  12970. (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
  12971. rs6000_constraints instead of rs6000_vector_reg_class. Move
  12972. -mdebug=reg code to rs6000_debug_reg_global. Add support for
  12973. -mvsx-align-128 debug switch. Drop testing float_p if VSX or
  12974. Altivec. Add VSX support. Setup for secondary reload support on
  12975. Altivec/VSX registers.
  12976. (rs6000_override_options): Make power7 set the scheduling groups
  12977. like the power5. Add support for new debug switches to override
  12978. the scheduling defaults. Temporarily disable -mcpu=power7 from
  12979. setting -mvsx. Add support for debug switches -malways-hint,
  12980. -msched-groups, and -malign-branch-targets.
  12981. (rs6000_buitlin_conversion): Add support for returning unsigned
  12982. vector conversion functions to fix regressions due to stricter
  12983. type checking.
  12984. (rs6000_builtin_mul_widen_even): Ditto.
  12985. (rs6000_builtin_mul_widen_odd): Ditto.
  12986. (rs6000_builtin_vec_perm): Ditto.
  12987. (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
  12988. (rs6000_expand_vector_init): Initial VSX support for using xxlxor
  12989. to zero a register.
  12990. (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
  12991. generated upstream.
  12992. (bdesc_3arg): Add builtins for unsigned types. Add builtins for
  12993. VSX types for bit operations. Changes to accomidate vector.md.
  12994. (bdesc_2arg): Ditto.
  12995. (bdesc_1arg): Ditto.
  12996. (struct builtin_description_predicates): Rewrite predicate
  12997. handling so that RTL describes the operation, instead of passing
  12998. the instruction to be used as a string argument.
  12999. (bdesc_altivec_preds): Ditto.
  13000. (altivec_expand_predicate_builtin): Ditto.
  13001. (altivec_expand_builtin): Ditto.
  13002. (rs6000_expand_ternop_builtin): Use a switch instead of an if
  13003. statement for vsldoi support.
  13004. (altivec_expand_ld_builtin): Change to use new names from vector.md.
  13005. (altivec_expand_st_builtin): Ditto.
  13006. (paired_expand_builtin): Whitespace changes.
  13007. (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
  13008. builtin_mode_to_type table for secondary reload. Call
  13009. builtin_function_type to build random builtin functions.
  13010. (altivec_init_builtins): Change to use builtin_function_type to
  13011. create builtin function types dynamically as we need them.
  13012. (builtin_hash_function): New support for hashing the tree types
  13013. for builtin function as we need it, rather than trying to build
  13014. all of the trees that we need. Add initial preliminary VSX support.
  13015. (builtin_function_type): Ditto.
  13016. (builtin_function_eq): Ditto.
  13017. (builtin_hash_struct): Ditto.
  13018. (rs6000_init_builtins): Ditto.
  13019. (rs6000_common_init_builtins): Ditto.
  13020. (altivec_init_builtins): Ditto.
  13021. (rs6000_common_init_builtins): Ditto.
  13022. (enum reload_reg_type): New enum for simplifing reg classes.
  13023. (rs6000_reload_register_type): Simplify register classes into GPR,
  13024. Vector, and other registers. Altivec and VSX addresses in reload.
  13025. (rs6000_secondary_reload_inner): Ditto.
  13026. (rs6000_ira_cover_classes): New target hook, that returns the
  13027. appropriate cover classes, based on -mvsx being used or not.
  13028. (rs6000_secondary_reload_class): Add VSX support.
  13029. (get_vec_cmp_insn): Delete, rewrite vector conditionals.
  13030. (get_vsel_insn): Ditto.
  13031. (rs6000_emit_vector_compare): Rewrite vector conditional support
  13032. so that where we can, we use RTL operators, instead of blindly use
  13033. UNSPEC.
  13034. (rs6000_emit_vector_select): Ditto.
  13035. (rs6000_emit_vector_cond_expr): Ditto.
  13036. (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
  13037. (create_TOC_reference): Add -mdebug=addr support.
  13038. (emit_frame_save): VSX loads/stores need register indexed addressing.
  13039. * config/rs6000/rs6000.md: Include vector.md.
  13040. * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
  13041. * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
  13042. support for V2DI, V2DF in logical, permute, select operations.
  13043. * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
  13044. switch for vsx/power7.
  13045. (-mvsx-scalar-memory): Ditto.
  13046. (-mvsx-align-128): Ditto.
  13047. (-mallow-movmisalign): Ditto.
  13048. (-mallow-df-permute): Ditto.
  13049. (-msched-groups): Ditto.
  13050. (-malways-hint): Ditto.
  13051. (-malign-branch-targets): Ditto.
  13052. * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
  13053. hook instead.
  13054. (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
  13055. (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
  13056. (rs6000_vector_reg_class): Delete.
  13057. (rs6000_vsx_reg_class): Ditto.
  13058. (enum rs6000_reg_class_enum): New enum for the constraints that
  13059. vary based on target switches.
  13060. (rs6000_constraints): New array to hold the register class for all
  13061. of the register constraints that vary based on the switches used.
  13062. (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
  13063. (enum rs6000_builtins): Add unsigned varients for the builtin
  13064. declarations returned by target hooks for expanding multiplies,
  13065. select, and permute operations. Add VSX builtins.
  13066. (enum rs6000_builtin_type_index): Add entries for VSX.
  13067. (V2DI_type_node): Ditto.
  13068. (V2DF_type_node): Ditto.
  13069. (unsigned_V2DI_type_node): Ditto.
  13070. (bool_long_type_node): Ditto.
  13071. (intDI_type_internal_node): Ditto.
  13072. (uintDI_type_internal_node): Ditto.
  13073. (double_type_internal_node): Ditto.
  13074. * config/rs6000/altivec.md (whole file): Move all expanders to
  13075. vector.md from altivec.md. Rename insn matching functions to be
  13076. altivec_foo.
  13077. (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
  13078. (altivec_vcmp*): Ditto.
  13079. (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
  13080. (VM): New iterator for moves that includes the VSX types.
  13081. (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
  13082. (altivec_vperm_<mode>_uns): New, for unsigned types.
  13083. (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
  13084. (altivec_eq<mode>): Ditto.
  13085. (altivec_gt<mode>): Ditto.
  13086. (altivec_gtu<mode>): Ditto.
  13087. (altivec_eqv4sf): Ditto.
  13088. (altivec_gev4sf): Ditto.
  13089. (altivec_gtv4sf): Ditto.
  13090. (altivec_vcmpbfp_p): Ditto.
  13091. 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
  13092. * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
  13093. unsigned HWI.
  13094. 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
  13095. PR target/40832
  13096. * config/i386/i386.c (output_387_ffreep): Rewrite to use
  13097. ASM_SHORT instead of .word.
  13098. * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
  13099. instead of .word in asm template.
  13100. 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
  13101. PR target/37488
  13102. * ira-lives.c (bb_has_abnormal_call_pred): New function.
  13103. (process_bb_node_lives): Use it.
  13104. * ira.c (setup_cover_and_important_classes): Don't setup
  13105. ira_important_class_nums. Add cover classes to the end of
  13106. important classes.
  13107. (cover_class_order, comp_reg_classes_func, reorder_important_classes):
  13108. New.
  13109. (find_reg_class_closure): Use reorder_important_classes.
  13110. * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
  13111. * config/i386/i386.c (i386_ira_cover_classes): New function.
  13112. (TARGET_IRA_COVER_CLASSES): Redefine.
  13113. * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
  13114. importance of order of cover classes in the array.
  13115. 2009-07-22 Diego Novillo <dnovillo@google.com>
  13116. * tree-pass.h (TDF_EH): Define.
  13117. * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
  13118. contains TDF_EH, print the EH region number holding GS.
  13119. * tree-dump.c (dump_options): Add "eh".
  13120. * doc/invoke.texi: Document it.
  13121. 2009-07-22 Doug Kwan <dougkwan@google.com>
  13122. * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
  13123. 2009-07-22 Michael Matz <matz@suse.de>
  13124. PR tree-optimization/35229
  13125. PR tree-optimization/39300
  13126. * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
  13127. (inhibit_phi_insertion): New function.
  13128. (insert_into_preds_of_block): Call it for REFERENCEs.
  13129. (init_pre): Initialize and finalize scalar evolutions.
  13130. * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
  13131. 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
  13132. * config/i386/predicates.md (zero_extended_scalar_load_operand):
  13133. Use CONST_VECTOR_NUNITS to determine number of elements.
  13134. 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
  13135. * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
  13136. (U, W): Constraints are now deprecated and will be removed if we
  13137. run out of letters.
  13138. * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
  13139. the file.
  13140. ("prefetch"): Add the stcmh instruction for prefetching.
  13141. * config/s390/s390.c (s390_symref_operand_p): Function moved. No
  13142. changes.
  13143. (s390_short_displacement): Return always true if compiling for
  13144. machines not providing the long displacement facility.
  13145. (s390_mem_constraint): Support the new constraint letter Z.
  13146. (s390_check_qrst_address): New function.
  13147. 2009-07-21 DJ Delorie <dj@redhat.com>
  13148. * config/mep/mep.c (mep_legitimize_arg): Leave control registers
  13149. alone too.
  13150. 2009-07-21 Jason Merrill <jason@redhat.com>
  13151. * c-common.c (max_tinst_depth): Increase default to 1024.
  13152. 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
  13153. * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
  13154. (vec_unpacku_float_lo_v4si): Ditto.
  13155. 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
  13156. PR target/40811
  13157. * config/i386/sse.md (sse2_cvtudq2ps): New expander.
  13158. (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
  13159. (builtin_description): Add __builtin_ia32_cvtudq2ps.
  13160. (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
  13161. 2009-07-21 Jakub Jelinek <jakub@redhat.com>
  13162. PR tree-optimization/40813
  13163. * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
  13164. it.
  13165. 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
  13166. * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
  13167. with a NOP_EXPR if needed.
  13168. 2009-07-21 Paul Brook <paul@codesourcery.com>
  13169. * tree-vectorizer.c (increase_alignment): Handle nested arrays.
  13170. Terminate debug dump with newline.
  13171. 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  13172. * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
  13173. Cast "1" to unsigned HOST_WIDE_INT.
  13174. (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
  13175. deposit length to the maximum length - lsb. Extend length if
  13176. HOST_BITS_PER_WIDE_INT is 32.
  13177. 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
  13178. * cgraph.h (constant_pool_htab): New function.
  13179. (constant_descriptor_tree): Move from varasm.c.
  13180. * varasm.c (constant_pool_htab): New function.
  13181. (constant_descriptor_tree): Move to cgraph.h.
  13182. 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
  13183. * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
  13184. 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
  13185. * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
  13186. $(VARRAY_H).
  13187. 2009-07-20 Xinliang David Li <davidxl@google.com>
  13188. * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
  13189. 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
  13190. * config/mips/mips.md (move_type): Add arith.
  13191. (type): Handle arith.
  13192. (zero_extendsidi2): Rename this into ...
  13193. (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
  13194. (zero_extendsidi2): New expander.
  13195. (*zero_extendsidi2_dext): New pattern.
  13196. 2009-07-20 Nick Clifton <nickc@redhat.com>
  13197. * config.gcc (mips64-*-*): Add definition of tm_defines in order
  13198. to set MIPS_ABI_DEFAULT.
  13199. * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
  13200. 2009-07-20 Jakub Jelinek <jakub@redhat.com>
  13201. * tree-object-size.c (addr_object_size): Handle unions with
  13202. array in it as last field of structs in __bos (, 1) as __bos (, 0).
  13203. PR tree-optimization/40792
  13204. * tree.c (build_function_type_skip_args): Remove bogus assert.
  13205. 2009-07-20 Jan Hubicka <jh@suse.cz>
  13206. Martin Jambor <mjambor@suse.cz>
  13207. * cgraph.h (combined_args_to_skip): New field.
  13208. * cgraph.c (cgraph_create_virtual_clone): Properly handle
  13209. combined_args_to_skip and args_to_skip.
  13210. * tree-inline.c (update_clone_info): New function.
  13211. (tree_function_versioning): Call update_clone_info.
  13212. * cgraphunit.c (cgraph_materialize_clone): Dump materialized
  13213. functions.
  13214. (cgraph_materialize_all_clones): More extensive dumping, working
  13215. with combined_args_to_skip rather than args_to_skip.
  13216. 2009-07-20 Ira Rosen <irar@il.ibm.com>
  13217. * tree-vectorizer.h (vectorizable_condition): Add parameters.
  13218. * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
  13219. (get_initial_def_for_reduction): Likewise.
  13220. (vectorizable_reduction): Skip the check of first operand in case
  13221. of COND_EXPR. Add check that it is outer loop vectorization if
  13222. nested cycle was detected. Call vectorizable_condition() for
  13223. COND_EXPR. If reduction epilogue cannot be created do not fail for
  13224. nested cycles (if it is not double reduction). Assert that there
  13225. is only one type in the loop in case of COND_EXPR. Call
  13226. vectorizable_condition() to vectorize COND_EXPR.
  13227. * tree-vect-stmts.c (vectorizable_condition): Update comment.
  13228. Add parameters. Allow nested cycles if called from
  13229. vectorizable_reduction(). Use reduction vector variable if provided.
  13230. (vect_analyze_stmt): Call vectorizable_reduction() before
  13231. vectorizable_condition().
  13232. (vect_transform_stmt): Update call to vectorizable_condition().
  13233. 2009-07-20 Christian Bruel <christian.bruel@st.com>
  13234. * config/sh/sh.opt (-mfmovd): Resurrect and document.
  13235. * doc/invoke.texi (-mfmovd): Likewise.
  13236. * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
  13237. 2009-07-20 Jan Hubicka <jh@suse.cz>
  13238. * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
  13239. when handling SSA name.
  13240. 2009-07-19 Jan Hubicka <jh@suse.cz>
  13241. PR tree-optimization/40676
  13242. * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
  13243. virtual PHIs in empty BBs.
  13244. 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
  13245. * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
  13246. re-expanded the compound use gen_lowpart instead to convert to the
  13247. desired mode.
  13248. 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
  13249. * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
  13250. OUTER_CONST arguments.
  13251. <LSHIFTRT>: Use them to allow widening if the bits shifted in from
  13252. the new wider mode will be masked off.
  13253. (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
  13254. 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
  13255. * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
  13256. high-order bits are zero.
  13257. 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
  13258. * combine.c (simplify_shift_const_1): Split code to determine
  13259. shift_mode into ...
  13260. (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
  13261. new bits shifted in are identical to the old sign bit.
  13262. 2009-07-18 Richard Guenther <rguenther@suse.de>
  13263. PR c/40787
  13264. * gimplify.c (gimplify_call_expr): Reject code using results from
  13265. functions returning void.
  13266. 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
  13267. * doc/md.texi: Document the new PowerPC "es" constraint.
  13268. Document that "m" can include automodified addresses on this target,
  13269. and explain how %U must be used. Extend the "Q" and "Z" documentation
  13270. to suggest "es" as well as "m".
  13271. * config/rs6000/constraints.md (es): New memory constraint.
  13272. (Q, Z): Update strings to match new documentation.
  13273. 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
  13274. * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
  13275. offset from virtual_stack_vars_rtx and arg_pointer_rtx.
  13276. * config/rs6000/predicates.md (volatile_mem_operand): Use
  13277. offsettable_nonstrict_memref_p.
  13278. * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
  13279. (*floatunssidf2_internal): Likewise.
  13280. (*fix_truncdfsi2_internal): Likewise.
  13281. (*fix_trunctfsi2_internal): Likewise.
  13282. 2009-07-17 Anatoly Sokolov <aesok@post.ru>
  13283. * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
  13284. atmega32u2 devices.
  13285. * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
  13286. 2009-07-17 Richard Guenther <rguenther@suse.de>
  13287. PR c/40401
  13288. * tree-pass.h (pass_diagnose_omp_blocks): Declare.
  13289. (pass_warn_unused_result): Likewise.
  13290. (TODO_set_props): Remove.
  13291. * omp-low.c (diagnose_omp_structured_block_errors): Change to
  13292. run as a pass.
  13293. (pass_diagnose_omp_blocks): Define.
  13294. * c-decl.c (pop_file_scope): Do not finalize the CU here.
  13295. (c_gimple_diagnostics_recursively): Remove.
  13296. (finish_function): Do not call it.
  13297. (c_write_global_declarations): Continue after errors.
  13298. Finalize the CU here.
  13299. * c-gimplify.c (c_genericize): Do not gimplify here.
  13300. * c-common.c (c_warn_unused_result): Move ...
  13301. * tree-cfg.c (do_warn_unused_result): ... here.
  13302. (run_warn_unused_result): New function.
  13303. (gate_warn_unused_result): New function.
  13304. (pass_warn_unused_result): New pass.
  13305. * c-common.h (c_warn_unused_result): Remove.
  13306. * flags.h (flag_warn_unused_result): Declare.
  13307. * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
  13308. * opts.c (flag_warn_unused_result): Initialize to false.
  13309. * toplev.c (compile_file): Add comment.
  13310. * omp-low.c (create_omp_child_function): Do not register
  13311. the function with the frontend.
  13312. (diagnose_omp_structured_block_errors): Prepare to be
  13313. called as optimization pass.
  13314. (gate_diagnose_omp_blocks): New function.
  13315. (pass_diagnose_omp_blocks): New pass.
  13316. * cgraph.h (cgraph_optimize): Remove.
  13317. (cgraph_analyze_function): Likewise.
  13318. * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
  13319. * cgraphunit.c (cgraph_lower_function): Lower nested functions
  13320. before their parents here.
  13321. (cgraph_finalize_function): Not here.
  13322. (cgraph_analyze_function): Gimplify functions here.
  13323. (cgraph_finalize_compilation_unit): Continue after errors.
  13324. Optimize the callgraph from here.
  13325. (cgraph_optimize): Make static.
  13326. * langhooks.c (write_global_declarations): Finalize the CU.
  13327. * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
  13328. (gimplify_function_tree): Assert we gimplify only once.
  13329. Set PROP_gimple_any property.
  13330. * tree-nested.c (gimplify_all_functions): New function.
  13331. (lower_nested_functions): Gimplify all nested functions.
  13332. * gimple.h (diagnose_omp_structured_block_errors): Remove.
  13333. * passes.c (init_optimization_passes): Add pass_warn_unused_result
  13334. and pass_diagnose_omp_blocks after gimplification. Do not
  13335. set TODO_set_props on all_lowering_passes.
  13336. (execute_one_pass): Do not handle TODO_set_props.
  13337. * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
  13338. (gimplify.o): Add tree-pass.h dependency.
  13339. * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
  13340. (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
  13341. (unsave_r): Likewise.
  13342. * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
  13343. temporary variable.
  13344. 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
  13345. * doc/service.texi (Service): Restore previously removed link,
  13346. which isn't broken after all.
  13347. 2009-07-17 Richard Guenther <rguenther@suse.de>
  13348. PR tree-optimization/40321
  13349. * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
  13350. PHI nodes to the maximal set.
  13351. (make_values_for_phi): Add PHI arguments to the maximal set.
  13352. (execute_pre): Dump PHI_GEN and the maximal set.
  13353. 2009-07-17 Jakub Jelinek <jakub@redhat.com>
  13354. PR c++/40780
  13355. * gimplify.c (gimplify_conversion): Don't change non-conversions into
  13356. VIEW_CONVERT_EXPR.
  13357. 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
  13358. * doc/extend.texi (Nested Functions): Replace broken link with
  13359. textual reference.
  13360. * doc/service.texi (Service): Remove broken link.
  13361. 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
  13362. PR bootstrap/40781
  13363. * builtins.c (expand_builtin_memcmp): Use loc instead of
  13364. EXPR_LOCATION (exp).
  13365. (expand_builtin_strncmp): Likewise.
  13366. 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
  13367. Manuel López-Ibáñez <manu@gcc.gnu.org>
  13368. PR 40435
  13369. * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
  13370. builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
  13371. tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
  13372. c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
  13373. calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
  13374. tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
  13375. tree-inline.c, c-common.c, c-common.h, gimple.c,
  13376. tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
  13377. convert.c: Add location argument to fold_{unary,binary,ternary},
  13378. fold_build[123], build_call_expr, build_size_arg,
  13379. build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
  13380. fold_build1_initializer, fold_build2_initializer,
  13381. fold_build3_initializer, fold_build_call_array,
  13382. fold_build_call_array_initializer, fold_single_bit_test,
  13383. omit_one_operand, omit_two_operands, invert_truthvalue,
  13384. fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
  13385. combine_comparisons, fold_builtin_*, fold_call_expr,
  13386. build_range_check, maybe_fold_offset_to_address, round_up,
  13387. round_down.
  13388. 2009-07-16 Jason Merrill <jason@redhat.com>
  13389. PR libstdc++/37907
  13390. * c-common.c (c_common_reswords): Add __is_standard_layout
  13391. and __is_trivial.
  13392. * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
  13393. * doc/implement-cxx.texi: New.
  13394. * doc/gcc.texi: Include it.
  13395. 2009-07-16 DJ Delorie <dj@redhat.com>
  13396. * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
  13397. compares that may be indirectly affected by previous instructions.
  13398. 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  13399. * builtins.c (do_mpc_arg2): New.
  13400. (fold_builtin_2): Fold builtin cpow.
  13401. * real.h (HAVE_mpc_pow): New.
  13402. 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
  13403. * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
  13404. comparison to skip unprofitable schedule
  13405. 2009-07-16 Simon Baldwin <simonb@google.com>
  13406. * gcc.c (option_map): New flag -no-canonical-prefixes.
  13407. * (display_help): Print help text for new flag.
  13408. * (process_command): Move options translation and language specifics
  13409. and handle new flag early. Use it to set a function pointer to a
  13410. prefix builder. Replace make_relative_prefix calls with calls to
  13411. the function pointed to. Ignore new flag in regular options handling.
  13412. * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
  13413. 2009-07-15 DJ Delorie <dj@redhat.com>
  13414. * config/mep/mep.md (sibcall_internal): Change register to avoid
  13415. argument registers.
  13416. (sibcall_value_internal): Likewise.
  13417. 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
  13418. PR rtl-optimization/40710
  13419. * resource.c (mark_target_live_regs): Reset DF problem to LR.
  13420. 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
  13421. * config/mips/mips.md (*extenddi_truncate<mode>,
  13422. *extendsi_truncate<mode>): Change type attribute to move_type
  13423. with shift_shift. Split out code handling exts from here ...
  13424. (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
  13425. pattern.
  13426. (*extendhi_truncateqi): Change type attribute to move_type with
  13427. shift_shift. Split out code handling exts from here ...
  13428. (*extendhi_truncateqi_exts): ... to this new pattern.
  13429. 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
  13430. * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
  13431. instead of "and" with inverted sign bit mask value. Use
  13432. "nonimmediate_operand" for operand 1 and operand 2 predicate.
  13433. Allocate registers only for operand 4 and operand 5.
  13434. 2009-07-15 Jakub Jelinek <jakub@redhat.com>
  13435. PR middle-end/40747
  13436. * fold-const.c (fold_cond_expr_with_comparison): When folding
  13437. < and <= to MIN, make sure the MIN uses the same type as the
  13438. comparison's operands.
  13439. 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
  13440. * arm.md (ior_xor): New code iterator.
  13441. (split for ior/xor with shift and zero-extend): New split pattern.
  13442. * arm/predicates.md (subreg_lowpart_operator): New special predicate.
  13443. 2009-07-15 Richard Guenther <rguenther@suse.de>
  13444. * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
  13445. offset member.
  13446. 2009-07-15 Richard Guenther <rguenther@suse.de>
  13447. PR middle-end/40753
  13448. * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
  13449. 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
  13450. * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
  13451. handle 2.6.30 kernel.
  13452. 2009-07-15 DJ Delorie <dj@redhat.com>
  13453. * config/mep/mep.md (sibcall_internal): Change register to allow
  13454. for 24-bit addresses.
  13455. (sibcall_value_internal): Likewise.
  13456. 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
  13457. * doc/invoke.texi: Added descriptions of the scheduling heuristics
  13458. that are enabled/disabled by the flags introduced by a previous patch.
  13459. 2009-07-14 DJ Delorie <dj@redhat.com>
  13460. * config/mep/mep.md (sibcall_internal): Include non-toggling
  13461. non-jmp case.
  13462. (sibcall_value_internal): Likewise.
  13463. 2009-07-14 Taras Glek <tglek@mozilla.com>
  13464. Rafael Espindola <espindola@google.com>
  13465. * doc/sourcebuild.texi: Document install-plugin target.
  13466. * configure.ac: Added install-plugin target to language makefiles.
  13467. * configure: Regenerate.
  13468. * Makefile.in (install-plugin): Install more headers,
  13469. depend on lang.install-plugin.
  13470. 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
  13471. * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
  13472. translation.
  13473. 2009-07-14 DJ Delorie <dj@redhat.com>
  13474. * config/mep/mep.c (mep_vliw_jmp_match): New function.
  13475. * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
  13476. * config/mep/mep.md (sibcall_internal): Change test from
  13477. mep_vliw_mode_match to mep_vliw_jmp_match.
  13478. (sibcall_value_internal): Likewise.
  13479. 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
  13480. * config/i386/sse.md (copysign<mode>3): New expander.
  13481. * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
  13482. * config/i386/i386.c (ix86_build_signbit_mask): Make public.
  13483. Use ix86_build_const_vector.
  13484. (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
  13485. IX86_BUILTIN_CPYSGNPD.
  13486. (builtin_description): Add __builtin_ia32_copysignps and
  13487. __builtin_ia32_copysignpd.
  13488. (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
  13489. and BUILT_IN_COPYSIGNF.
  13490. 2009-07-13 Jason Merrill <jason@redhat.com>
  13491. * builtins.c (can_trust_pointer_alignment): New fn.
  13492. (get_pointer_alignment): Factor it out from here.
  13493. * tree.h: Declare it.
  13494. 2009-07-14 David Edelsohn <edelsohn@gnu.org>
  13495. * config/rs6000/predicates.md (offsettable_mem_operand): Test
  13496. RTX_AUTOINC class.
  13497. 2009-07-14 Dodji Seketeli <dodji@redhat.com>
  13498. PR debug/40705
  13499. PR c++/403057
  13500. * dwarf2.out.c (gen_type_die_with_usage): Added comment.
  13501. 2009-07-14 Richard Guenther <rguenther@suse.de>
  13502. Andrey Belevantsev <abel@ispras.ru>
  13503. PR middle-end/40745
  13504. * cfgexpand.c (partition_stack_vars): Do not bother to update
  13505. alias information when not optimizing.
  13506. 2009-07-14 Richard Guenther <rguenther@suse.de>
  13507. Andrey Belevantsev <abel@ispras.ru>
  13508. * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
  13509. (pt_solution_set): Likewise.
  13510. * tree-ssa-alias.c (refs_may_alias_p_1): Export.
  13511. * tree-ssa-structalias.c (pt_solution_set): New function.
  13512. * final.c (rest_of_clean_state): Free SSA data structures.
  13513. * print-rtl.c (print_decl_name): Remove.
  13514. (print_mem_expr): Implement in terms of print_generic_expr.
  13515. * alias.c (ao_ref_from_mem): New function.
  13516. (rtx_refs_may_alias_p): Likewise.
  13517. (true_dependence): Query alias-export info.
  13518. (canon_true_dependence): Likewise.
  13519. (write_dependence_p): Likewise.
  13520. * tree-dfa.c (get_ref_base_and_extent): For void types leave
  13521. size unknown.
  13522. * emit-rtl.c (component_ref_for_mem_expr): Remove.
  13523. (mem_expr_equal_p): Use operand_equal_p.
  13524. (set_mem_attributes_minus_bitpos): Do not use
  13525. component_ref_for_mem_expr.
  13526. * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
  13527. (update_alias_info_with_stack_vars): Likewise.
  13528. (partition_stack_vars): Call update_alias_info_with_stack_vars.
  13529. * tree-ssa.c (delete_tree_ssa): Do not release SSA names
  13530. explicitly nor clear stmt operands.
  13531. Free the decl-to-pointer map.
  13532. * tree-optimize.c (execute_free_datastructures): Do not free
  13533. SSA data structures here.
  13534. * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
  13535. * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
  13536. (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
  13537. dependencies.
  13538. (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
  13539. 2009-07-13 DJ Delorie <dj@redhat.com>
  13540. * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
  13541. unrolling at the right iteration count.
  13542. * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
  13543. calculations.
  13544. 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
  13545. * haifa-sched.c (rank_for_schedule): Introduced flags to
  13546. enable/disable individual scheduling heuristics.
  13547. * common.opt: Introduced flags to enable/disable individual
  13548. heuristics in the scheduler.
  13549. * doc/invoke.texi: Introduced flags to enable/disable individual
  13550. heuristics in the scheduler.
  13551. 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
  13552. * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
  13553. config/i386/mingw-tls.c.
  13554. * config/i386/mingw-tls.c: Removed.
  13555. 2009-07-13 Ira Rosen <irar@il.ibm.com>
  13556. * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
  13557. checks access only relevant statements.
  13558. (vectorizable_reduction): Likewise.
  13559. 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
  13560. * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
  13561. just for 32-bit case.
  13562. 2009-07-12 Jan Hubicka <jh@suse.cz>
  13563. PR tree-optimization/40585
  13564. * except.c (expand_resx_expr): When there already is resume
  13565. instruction, produce linked list.
  13566. (build_post_landing_pads): Assert that resume is empty.
  13567. (connect_post_landing_pads): Handle resume lists.
  13568. (dump_eh_tree): Dump resume list.
  13569. 2009-07-12 Ira Rosen <irar@il.ibm.com>
  13570. * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
  13571. with additional argument.
  13572. * tree-vectorizer.h (enum vect_def_type): Add
  13573. vect_double_reduction_def.
  13574. (vect_is_simple_reduction): Add argument.
  13575. * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
  13576. indentation.
  13577. (vect_analyze_scalar_cycles_1): Detect double reduction. Call
  13578. vect_is_simple_reduction with additional argument.
  13579. (vect_analyze_loop_operations): Handle exit phi nodes in case of
  13580. double reduction.
  13581. (reduction_code_for_scalar_code): Handle additional codes by
  13582. returning ERROR_MARK for them. Fix comment and indentation.
  13583. (vect_is_simple_reduction): Fix comment, add argument to specify
  13584. double reduction. Detect double reduction.
  13585. (get_initial_def_for_induction): Fix indentation.
  13586. (get_initial_def_for_reduction): Fix comment and indentation.
  13587. Handle double reduction. Create initial definitions that do not
  13588. require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
  13589. (vect_create_epilog_for_reduction): Fix comment, add argument to
  13590. handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
  13591. epilogue result extraction. Create double reduction phi node and
  13592. replace relevant uses.
  13593. (vectorizable_reduction): Call vect_is_simple_reduction with
  13594. additional argument. Fix indentation. Update epilogue code treatment
  13595. according to the changes in reduction_code_for_scalar_code. Check
  13596. for double reduction. Call vect_create_epilog_for_reduction with
  13597. additional argument.
  13598. * tree-vect-stmts.c (process_use): Handle double reduction, update
  13599. documentation.
  13600. (vect_mark_stmts_to_be_vectorized): Handle double reduction.
  13601. (vect_get_vec_def_for_operand): Likewise.
  13602. 2009-07-12 Danny Smith <dansmister@gmail.com>
  13603. * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
  13604. dllexport if !TREE_PUBLIC.
  13605. (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
  13606. 2009-07-11 Anatoly Sokolov <aesok@post.ru>
  13607. * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
  13608. (avr_extra_arch_macro) Remove declatation.
  13609. * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
  13610. (avr_extra_arch_macro) Declare as static.
  13611. * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
  13612. 2009-07-11 Jan Hubicka <jh@suse.cz>
  13613. PR middle-end/48388
  13614. * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
  13615. 2009-07-11 Jakub Jelinek <jakub@redhat.com>
  13616. PR debug/40713
  13617. * dwarf2out.c (dw_fde_struct): Add in_std_section and
  13618. cold_in_std_section bits.
  13619. (dwarf2out_begin_prologue): Initialize them.
  13620. (dwarf2out_finish): Don't emit FDE range into .debug_ranges
  13621. if already covered by text_section or cold_text_section range.
  13622. PR rtl-optimization/40667
  13623. * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
  13624. * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
  13625. * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
  13626. * config/i386/i386.c (ix86_minimum_alignment): New function.
  13627. * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
  13628. * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
  13629. * emit-rtl.c (gen_reg_rtx): Likewise.
  13630. * function.c (assign_parms): Likewise. If nominal_type needs
  13631. bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
  13632. rather than passed_type's alignment.
  13633. PR target/40668
  13634. * function.c (assign_parm_setup_stack): Adjust
  13635. MEM_OFFSET (data->stack_parm) if promoted_mode is different
  13636. from nominal_mode on big endian.
  13637. 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
  13638. * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
  13639. 2009-07-10 DJ Delorie <dj@redhat.com>
  13640. * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
  13641. 2009-07-10 Mark Mitchell <mark@codesourcery.com>
  13642. * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
  13643. attribute.
  13644. (thumb2_cbnz): Likewise.
  13645. 2009-07-10 David Daney <ddaney@caviumnetworks.com>
  13646. PR target/39079
  13647. * config.gcc (supported_defaults): Add synci.
  13648. (with_synci): Add validation.
  13649. (all_defaults): Add synci.
  13650. * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
  13651. ISA_HAS_SYNCI.
  13652. (synci): Same.
  13653. * config/mips/mips.opt (msynci): New option.
  13654. * config/mips/mips.c (mips_override_options): Warn on use of
  13655. -msynci for targets that do now support it.
  13656. * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
  13657. msynci.
  13658. * gcc/doc/invoke.texi (-msynci): Document the new option.
  13659. * doc/install.texi (--with-synci): Document the new option.
  13660. 2009-07-10 Richard Guenther <rguenther@suse.de>
  13661. PR tree-optimization/40496
  13662. * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
  13663. the PHI result with a compatible type.
  13664. 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
  13665. PR 25509
  13666. PR 40614
  13667. * c.opt (Wunused-result): New.
  13668. * doc/invoke.texi: Document it.
  13669. * c-common.c (c_warn_unused_result): Use it.
  13670. 2009-07-09 DJ Delorie <dj@redhat.com>
  13671. * targhooks.c (default_target_can_inline_p): Rename from
  13672. default_target_option_can_inline_p.
  13673. * targhooks.h (default_target_can_inline_p): Likewise.
  13674. * target-def.h (TARGET_CAN_INLINE_P): Rename from
  13675. TARGET_OPTION_CAN_INLINE_P.
  13676. * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
  13677. * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
  13678. (mep_target_can_inline_p): Rename from
  13679. mep_target_option_can_inline_p.
  13680. PR target/40626
  13681. * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
  13682. registers used to pass vectors.
  13683. * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
  13684. 2009-07-09 Tom Tromey <tromey@redhat.com>
  13685. * unwind-dw2-fde-darwin.c: Include dwarf2.h.
  13686. * config/mmix/mmix.c: Include dwarf2.h.
  13687. * config/rs6000/darwin-fallback.c: Include dwarf2.h.
  13688. * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
  13689. * config/sh/sh.c: Include dwarf2.h.
  13690. * config/i386/i386.c: Include dwarf2.h.
  13691. * Makefile.in (DWARF2_H): Remove 'elf'.
  13692. * except.c: Include dwarf2.h.
  13693. * unwind-dw2.c: Include dwarf2.h.
  13694. * dwarf2out.c: Include dwarf2.h.
  13695. * unwind-dw2-fde-glibc.c: Include dwarf2.h.
  13696. * unwind-dw2-fde.c: Include dwarf2.h.
  13697. * dwarf2asm.c: Include dwarf2.h.
  13698. 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
  13699. * haifa-sched.c (insn_finishes_cycle_p): New static function.
  13700. (max_issue): Use it.
  13701. * sched-int.h (struct sched_info: insn_finishes_block_p): New
  13702. scheduler hook.
  13703. * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
  13704. (region_sched_info): Update.
  13705. * sched-ebb.c (ebb_sched_info): Update.
  13706. * modulo-sched.c (sms_sched_info): Update.
  13707. * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
  13708. 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
  13709. * varasm.c (build_constant_desc): Don't share RTL in pool entries.
  13710. 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
  13711. * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
  13712. 2009-07-09 Jakub Jelinek <jakub@redhat.com>
  13713. PR middle-end/40692
  13714. * fold-const.c (fold_cond_expr_with_comparison): Don't replace
  13715. arg1 with arg01 if arg1 is already INTEGER_CST.
  13716. 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
  13717. * simplify-rtx.c (simplify_binary_operation_1) <AND>:
  13718. Transform (and (truncate)) into (truncate (and)).
  13719. 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
  13720. * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
  13721. creating LHS paradoxical subregs. Fix surrounding returns to
  13722. use NULL_RTX rather than 0.
  13723. 2009-07-08 DJ Delorie <dj@redhat.com>
  13724. * config/mep/mep.c (mep_option_can_inline_p): New.
  13725. (TARGET_OPTION_CAN_INLINE_P): Define.
  13726. 2009-07-08 Mark Wielaard <mjw@redhat.com>
  13727. PR debug/40659
  13728. * dwarf2out.c (add_data_member_location_attribute): When we have
  13729. only a constant offset don't emit a new location description using
  13730. DW_OP_plus_uconst, but just add the constant with add_AT_int, when
  13731. dwarf_version > 2.
  13732. 2009-07-08 Richard Henderson <rth@redhat.com>
  13733. PR target/38900
  13734. * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
  13735. (enum reg_class): Add CLOBBERED_REGS.
  13736. (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
  13737. * config/i386/i386.c (ix86_conditional_register_usage): Moved
  13738. from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
  13739. (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
  13740. (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
  13741. force 64-bit sibcalls into R11.
  13742. * config/i386/constraints.md (U): New constraint.
  13743. * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
  13744. (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
  13745. (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
  13746. 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
  13747. * basic-block.h (dump_regset, debug_regset): Remove duplicate
  13748. prototypes.
  13749. * c-objc-common.h (c_initialize_diagnostics): Ditto.
  13750. * ebitmap.h (dump_ebitmap): Ditto.
  13751. * optabs.h (optab_libfunc): Ditto.
  13752. * tree.h (tree_expr_nonzero_warnv_p): Ditto.
  13753. * tree-flow.h (vect_can_force_dr_alignment_p,
  13754. get_vectype_for_scalar_type): Ditto.
  13755. (vectorize_loops): Move prototype to ...
  13756. * tree-vectorizer.h: ... here. Also, adjust comment.
  13757. (vect_set_verbosity_level): Remove duplicate prototype.
  13758. * tree-ssa-loop.c: Include tree-vectorizer.h.
  13759. * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
  13760. 2009-07-08 Nick Clifton <nickc@redhat.com>
  13761. * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
  13762. forward slash.
  13763. 2009-07-08 DJ Delorie <dj@redhat.com>
  13764. * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
  13765. cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
  13766. cpmovtocc_P0S_P1): Mark volatile. Note which registers are
  13767. written to.
  13768. * config/mep/intrinsics.md: Regenerated.
  13769. * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
  13770. registers when asm() or calls are detected.
  13771. 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
  13772. PR c++/31246
  13773. * gimplify.c (gimplify_expr): Propagate no_warning flag when
  13774. gimplifying.
  13775. * gimple (gimple_build_call_from_tree): Likewise.
  13776. * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
  13777. no_warning flag before warning.
  13778. 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
  13779. * tree.c (set_expr_locus): Remove.
  13780. * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
  13781. * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
  13782. EXPR_LOCATION.
  13783. * gimplify.c (internal_get_tmp_var): Likewise.
  13784. (gimplify_call_expr): Likewise.
  13785. (gimplify_one_sizepos): Likewise.
  13786. 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
  13787. PR debug/40666
  13788. * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
  13789. to variables for debugging purposes.
  13790. 2009-06-23 Mark Loeser <mark@halcy0n.com>
  13791. PR build/40010
  13792. * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
  13793. 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
  13794. * pretty-print.c (pp_base_format): Remove %J.
  13795. * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
  13796. gcc_cxxdiag_char_table): Likewise.
  13797. (init_dynamic_diag_info): Likewise.
  13798. 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
  13799. * pretty-print.c (pp_base_format): Remove %H.
  13800. * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
  13801. gcc_cxxdiag_char_table): Likewise.
  13802. (init_dynamic_diag_info): Likewise.
  13803. * config/mep/mep.c (mep_select_section): Likewise.
  13804. 2009-07-07 Duncan Sands <baldrick@free.fr>
  13805. * final.c (pass_clean_state): Give the pass a name.
  13806. * passes.c (pass_rest_of_compilation): Likewise.
  13807. * tree-optimize.c (pass_all_optimizations): Likewise.
  13808. 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
  13809. * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
  13810. an extra 'decl' for error_at.
  13811. 2009-07-07 Jakub Jelinek <jakub@redhat.com>
  13812. PR middle-end/40669
  13813. * tree-tailcall.c (adjust_return_value_with_ops,
  13814. create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
  13815. if it has complex or vector type.
  13816. 2009-07-07 Olivier Hainque <hainque@adacore.com>
  13817. * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
  13818. pthread symbols.
  13819. 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
  13820. * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
  13821. 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
  13822. * cgraphunit.c: Replace %J by an explicit location. Update all calls.
  13823. * c-decl.c: Likewise.
  13824. * function.c: Likewise.
  13825. * varasm.c: Likewise.
  13826. * tree-ssa.c: Likewise.
  13827. * c-common.c: Likewise.
  13828. * tree-cfg.c: Likewise.
  13829. * config/spu/spu.c: Likewise.
  13830. * config/ia64/ia64.c: Likewise.
  13831. * config/v850/v850.c: Likewise.
  13832. 2009-07-06 DJ Delorie <dj@redhat.com>
  13833. * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
  13834. * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
  13835. unspecified accesses to control registers.
  13836. * config/mep/intrinsics.md: Regenerate.
  13837. * config/mep/intrinsics.h: Regenerate.
  13838. * config/mep/mep-intrin.h: Regenerate.
  13839. 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
  13840. * c-lex.c: Replace %H by an explicit location. Update all calls.
  13841. * c-common.c: Likewise.
  13842. * c-decl.c: Likewise.
  13843. * c-typeck.c: Likewise.
  13844. * fold-const.c: Likewise.
  13845. * gimplify.c: Likewise.
  13846. * stmt.c: Likewise.
  13847. * tree-cfg.c: Likewise.
  13848. * tree-ssa-loop-niter.c: Likewise.
  13849. * tree-vrp.c: Likewise.
  13850. * value-prof.c: Likewise.
  13851. 2009-07-06 Diego Novillo <dnovillo@google.com>
  13852. * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
  13853. if it has one. Handle cases where VAR does not have an
  13854. annotation or cfun is NULL.
  13855. 2009-07-06 Diego Novillo <dnovillo@google.com>
  13856. * tree.c: Include debug.h.
  13857. (initialize_tree_contains_struct): New.
  13858. (init_ttree): Call it.
  13859. (tree_node_structure_for_code): Factor out of ...
  13860. (tree_node_structure): ... here.
  13861. * treestruct.def (TS_PHI_NODE): Remove.
  13862. (TS_GIMPLE_STATEMENT): Remove.
  13863. 2009-07-06 Diego Novillo <dnovillo@google.com>
  13864. * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
  13865. (debug_tree_chain): Handle cycles.
  13866. 2009-07-06 Nick Clifton <nickc@redhat.com>
  13867. DJ Delorie <dj@redhat.com>
  13868. * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
  13869. __FMOVD_ENABLED__ is defined.
  13870. * config/sh/sh.h
  13871. (TARGET_FMOVD): Provide a default definition.
  13872. (MASK_FMOVD): Likewise.
  13873. (TARGET_CPU_CPP_BUILTINS): Define
  13874. __FMOVD_ENABLED__ if TARGET_FMOVD is true.
  13875. * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
  13876. two fmov instructions depending upon whether TARGET_FMOVD is enabled.
  13877. (split for DF load from memory into register): Also handle
  13878. MEMs which consist of REG+DISP addressing.
  13879. (split for DF store from register to memory): Likewise.
  13880. (movsf_ie): Always use single fp_mode.
  13881. * config/sh/sh.c (sh_override_options): Do not automatically
  13882. enable TARGET_MOVD for the SH2A when supporting doubles - leave
  13883. that to the -mfmovd command line switch.
  13884. (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
  13885. (fldi_ok): Always allow.
  13886. * config/sh/sh.opt (mfmovd): Remove this switch.
  13887. * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
  13888. 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
  13889. Kaz Kojima <kkojima@gcc.gnu.org>
  13890. PR rtl-optimization/30807
  13891. * postreload.c (reload_combine): For every new use of REG_SUM,
  13892. record the use of BASE.
  13893. 2009-07-06 Jan Hubicka <jh@suse.cz>
  13894. * params.def: Revert my accidental commit at 2009-06-30.
  13895. 2009-07-04 Ian Lance Taylor <iant@google.com>
  13896. PR target/40636
  13897. * config/i386/msformat-c.c (mingw_format_attributes): Declare as
  13898. EXPORTED_CONST.
  13899. (mingw_format_attribute_overrides): Likewise.
  13900. 2009-07-04 Jakub Jelinek <jakub@redhat.com>
  13901. PR debug/40596
  13902. * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
  13903. don't check cfa.reg. Instead of cfa.indirect use
  13904. fde && fde->drap_reg != INVALID_REGNUM test.
  13905. 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
  13906. * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
  13907. 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
  13908. PR target/40587
  13909. * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
  13910. 2009-07-03 Richard Guenther <rguenther@suse.de>
  13911. PR tree-optimization/40640
  13912. * tree-switch-conversion.c (build_arrays): Perform arithmetic
  13913. in original type.
  13914. 2009-07-03 Jan Hubicka <jh@suse.cz>
  13915. * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
  13916. for size, reduce amount of inlining.
  13917. 2009-07-03 Richard Guenther <rguenther@suse.de>
  13918. PR middle-end/34163
  13919. * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
  13920. if t +- x is known to not overflow and the conversion widens the
  13921. operation.
  13922. * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
  13923. 2009-07-03 Jan Hubicka <jh@suse.cz>
  13924. * ipa-pure-const.c (analyze): Update loop optimizer init.
  13925. * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
  13926. try_remove_empty_loop, remove_empty_loops): Remove.
  13927. * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
  13928. * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
  13929. to mark regular loops as neccesary.
  13930. (degenerate_phi_p): New function.
  13931. (propagate_necessity, remove_dead_phis): Use it.
  13932. (forward_edge_to_pdom): Likewise.
  13933. (eliminate_unnecessary_stmts): Take care to remove uses of results of
  13934. virtual PHI nodes that became unreachable.
  13935. (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
  13936. * tree-flow.h (remove_empty_loops): Remove.
  13937. * passes.c (init_optimization_passes): Remove.
  13938. 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
  13939. * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
  13940. can_create_pseudo_p.
  13941. (*fix_trunc<mode>_i387_1): Ditto.
  13942. (*floathi<mode>2_1): Ditto.
  13943. (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
  13944. (*fistdi2_1): Ditto.
  13945. (*fist<mode>2_1): Ditto.
  13946. (frndintxf2_floor): Ditto.
  13947. (*fist<mode>2_floor_1): Ditto.
  13948. (frndintxf2_ceil): Ditto.
  13949. (*fist<mode>2_ceil_1): Ditto.
  13950. (frndintxf2_trunc): Ditto.
  13951. (frndintxf2_mask_pm): Ditto.
  13952. (fxam<mode>2_i387_with_temp): Ditto.
  13953. * config/i386/sse.md (mulv16qi3): Ditto.
  13954. (*sse2_mulv4si3): Ditto.
  13955. (mulv2di3): Ditto.
  13956. (sse4_2_pcmpestr): Ditto.
  13957. (sse4_2_pcmpistr): Ditto.
  13958. 2009-07-03 Jan Hubicka <jh@suse.cz>
  13959. * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
  13960. (mark_stmt_necessary): Set it.
  13961. (mark_operand_necessary): Set it.
  13962. (mark_control_dependent_edges_necessary): Set it.
  13963. (mark_virtual_phi_result_for_renaming): New function.
  13964. (get_live_post_dom): New function.
  13965. (forward_edge_to_pdom): New function.
  13966. (remove_dead_stmt): Fix handling of control dependences.
  13967. (tree_dce_init): Init new bitmap.
  13968. (tree_dce_done): Free it.
  13969. 2009-07-02 Richard Guenther <rguenther@suse.de>
  13970. PR bootstrap/40617
  13971. * tree-ssa-structalias.c (new_var_info): Initialize
  13972. is_restrict_var.
  13973. 2009-07-02 Jan Hubicka <jh@suse.cz>
  13974. * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
  13975. local.
  13976. 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
  13977. * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
  13978. instead of recomputing it. Adjust calls.
  13979. (emit_store_flag): Adjust recursive calls.
  13980. 2009-07-02 Richard Guenther <rguenther@suse.de>
  13981. * tree-ssa-live.c (remove_unused_locals): Do not remove
  13982. heap variables.
  13983. * tree-ssa-structalias.c (handle_lhs_call): Delay setting
  13984. of DECL_EXTERNAL for HEAP variables.
  13985. (compute_points_to_sets): Set DECL_EXTERNAL for escaped
  13986. HEAP variables. Do not adjust RESTRICT vars.
  13987. (find_what_var_points_to): Nobody cares if something
  13988. points to READONLY.
  13989. 2009-07-02 Ben Elliston <bje@au.ibm.com>
  13990. * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
  13991. pc_low and pc_high declarations to the top of the function.
  13992. 2009-07-01 DJ Delorie <dj@redhat.com>
  13993. * config/mep/mep.c (mep_handle_option): Leave IVC2 control
  13994. registers as fixed.
  13995. (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
  13996. * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
  13997. unspecified accesses to control registers.
  13998. * config/mep/intrinsics.md: Regenerate.
  13999. * config/mep/intrinsics.h: Regenerate.
  14000. * config/mep/mep-intrin.h: Regenerate.
  14001. 2009-07-01 Anthony Green <green@moxielogic.com>
  14002. * config/moxie/moxie.c (moxie_expand_prologue): Use dec
  14003. instruction when possible.
  14004. (moxie_expand_prologue): Ditto. Also, save an instruction and
  14005. some complexity by popping off of $r12 instead of $sp.
  14006. * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
  14007. operands.
  14008. 2009-07-01 Richard Henderson <rth@redhat.com>
  14009. PR bootstrap/40347
  14010. * function.c (reposition_prologue_and_epilogue_notes): If epilogue
  14011. contained no insns, reposition note before last insn.
  14012. 2009-07-01 Richard Henderson <rth@redhat.com>
  14013. PR debug/40431
  14014. * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
  14015. DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
  14016. 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
  14017. PR bootstrap/40558
  14018. * config/rs6000/rs6000.c (print_operand): Undo change that breaks
  14019. darwin9 for printing reg addresses with %y.
  14020. 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
  14021. * combine.c (force_to_mode): Handle TRUNCATE. Factor out
  14022. truncation from operands in binary operations.
  14023. 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
  14024. Revert:
  14025. 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
  14026. * expmed.c (store_bit_field_1): Properly truncate the paradoxical
  14027. subreg of op0 to the original op0.
  14028. * expmed.c (store_bit_field_1): Use a temporary as the destination
  14029. instead of a paradoxical subreg when we need to truncate the result.
  14030. 2009-07-01 DJ Delorie <dj@redhat.com>
  14031. * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
  14032. names to VLIW variants.
  14033. (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
  14034. * config/mep/intrinsics.md: Regenerate.
  14035. * config/mep/intrinsics.h: Regenerate.
  14036. * config/mep/mep-intrin.h: Regenerate.
  14037. 2009-07-01 Jakub Jelinek <jakub@redhat.com>
  14038. PR debug/40462
  14039. * jump.c (returnjump_p): Revert last patch.
  14040. * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
  14041. 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  14042. PR target/40575
  14043. * pa.md (casesi32p): Use jump table label to determine the offset
  14044. of the jump table.
  14045. (casesi64p): Likewise.
  14046. * pa.c (forward_branch_p): Return bool type. Use instruction
  14047. addresses when available. Assert that INSN has a jump label.
  14048. (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
  14049. have a jump label.
  14050. 2009-07-01 Richard Guenther <rguenther@suse.de>
  14051. PR tree-optimization/19831
  14052. * tree-ssa-dce.c (propagate_necessity): Calls to functions
  14053. that only act as barriers do not make any previous stores necessary.
  14054. * tree-ssa-structalias.c (handle_lhs_call): Delay making
  14055. HEAP variables global, do not add a constraint from nonlocal.
  14056. (find_func_aliases): Handle escapes through return statements.
  14057. (compute_points_to_sets): Make escaped HEAP variables global.
  14058. 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
  14059. PR bootstrap/40597
  14060. * expmed.c (emit_store_flag): Perform a conversion if necessary,
  14061. after reducing a DImode cstore to SImode.
  14062. 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
  14063. * expr.c (expand_expr_real_1): Reinstate fallthrough to
  14064. TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
  14065. 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
  14066. * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
  14067. * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
  14068. to 0.
  14069. * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
  14070. and umod_optab if TARGET_BSD_DIVMOD.
  14071. * config/vax/lib1funcs.asm: New file.
  14072. * config/vax/t-linux: New file.
  14073. * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
  14074. 2009-06-30 Jakub Jelinek <jakub@redhat.com>
  14075. PR c++/40566
  14076. * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
  14077. to type arguments that have void type.
  14078. PR debug/40573
  14079. * dwarf2out.c (gen_formal_parameter_die): Call
  14080. equate_decl_number_to_die if node is different from origin.
  14081. 2009-06-30 Anthony Green <green@moxielogic.com>
  14082. Clean up moxie port for --enable-build-with-cxx.
  14083. * config/moxie/moxie.c (moxie_function_value): First two
  14084. parameters are const_tree, not tree.
  14085. * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
  14086. (REG_CLASS_NAMES): Ditto.
  14087. (REGNO_REG_CLASS): Ditto.
  14088. * config/moxie/moxie-protos.h (moxie_override_options): Declare.
  14089. (moxie_function_value): Fix constyness of arguments.
  14090. 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
  14091. * cgraphunit.c (cgraph_finalize_compilation_unit): Call
  14092. finalize_size_functions before further processing.
  14093. * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
  14094. (variable_size): Call self_referential_size on size expressions
  14095. that contain a PLACEHOLDER_EXPR.
  14096. (size_functions): New static variable.
  14097. (copy_self_referential_tree_r): New static function.
  14098. (self_referential_size): Likewise.
  14099. (finalize_size_functions): New global function.
  14100. * tree.c: Include tree-inline.h.
  14101. (push_without_duplicates): New static function.
  14102. (find_placeholder_in_expr): New global function.
  14103. (substitute_in_expr) <tcc_declaration>: Return the replacement object
  14104. on equality.
  14105. <tcc_expression>: Likewise.
  14106. <tcc_vl_exp>: If the replacement object is a constant, try to inline
  14107. the call in the expression.
  14108. * tree.h (finalize_size_functions): Declare.
  14109. (find_placeholder_in_expr): Likewise.
  14110. (FIND_PLACEHOLDER_IN_EXPR): New macro.
  14111. (substitute_placeholder_in_expr): Update comment.
  14112. * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
  14113. is true.
  14114. (copy_tree_body_r): Likewise.
  14115. (copy_tree_body): New static function.
  14116. (maybe_inline_call_in_expr): New global function.
  14117. * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
  14118. (maybe_inline_call_in_expr): Declare.
  14119. * Makefile.in (tree.o): Depend on TREE_INLINE_H.
  14120. (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
  14121. GIMPLE_H.
  14122. 2009-06-30 Richard Guenther <rguenther@suse.de>
  14123. * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
  14124. continue walking.
  14125. (propagate_necessity): Do not mark reaching defs of stores
  14126. as necessary.
  14127. 2009-06-30 Jan Hubicka <jh@suse.cz>
  14128. * cfgloopanal.c (check_irred): Move into ...
  14129. (mark_irreducible_loops): ... here; return true if ireducible
  14130. loops was found.
  14131. * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
  14132. (analyze_function): Try to prove loop finiteness.
  14133. * cfgloop.h (mark_irreducible_loops): Update prototype.
  14134. * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
  14135. 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
  14136. * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
  14137. 2009-06-30 Ira Rosen <irar@il.ibm.com>
  14138. PR tree-optimization/40542
  14139. * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
  14140. types.
  14141. 2009-06-30 Martin Jambor <mjambor@suse.cz>
  14142. PR tree-optimization/40582
  14143. * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
  14144. than useless_type_conversion_p.
  14145. (generate_subtree_copies): Increment sra_stats.subtree_copies at a
  14146. proper place.
  14147. 2009-06-30 Martin Jambor <mjambor@suse.cz>
  14148. PR middle-end/40554
  14149. * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
  14150. 2009-06-30 Richard Guenther <rguenther@suse.de>
  14151. * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
  14152. use ao_ref references.
  14153. (walk_aliased_vdefs): Likewise.
  14154. * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
  14155. * tree-ssa-dce.c (struct ref_data): Remove.
  14156. (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
  14157. (mark_aliased_reaching_defs_necessary): Adjust.
  14158. (mark_all_reaching_defs_necessary_1): Likewise.
  14159. 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
  14160. PR boostrap/40597
  14161. * expmed.c (emit_cstore): New name of emit_store_flag_1.
  14162. (emit_store_flag_1): Extract from emit_store_flag, adjust
  14163. calls to (what now is) emit_cstore.
  14164. (emit_store_flag): Call emit_store_flag_1 and also use it
  14165. for what used to be recursive calls.
  14166. 2009-06-30 Wei Guozhi <carrot@google.com>
  14167. PR/40416
  14168. * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
  14169. if the target bb post dominates from bb.
  14170. * config/i386/i386.c (memory_address_length): Check existence of base
  14171. register before using it.
  14172. 2009-06-30 Nick Clifton <nickc@redhat.com>
  14173. DJ Delorie <dj@redhat.com>
  14174. * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
  14175. __FMOVD_ENABLED__ is defined.
  14176. * config/sh/sh.h
  14177. (TARGET_FMOVD): Provide a default definition.
  14178. (MASK_FMOVD): Likewise.
  14179. (TARGET_CPU_CPP_BUILTINS): Define
  14180. __FMOVD_ENABLED__ if TARGET_FMOVD is true.
  14181. * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
  14182. two fmov instructions depending upon whether TARGET_FMOVD is
  14183. enabled.
  14184. (split for DF load from memory into register): Also handle
  14185. MEMs which consist of REG+DISP addressing.
  14186. (split for DF store from register to memory): Likewise.
  14187. * config/sh/sh.opt (mfmovd): Remove this switch.
  14188. * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
  14189. * config/sh/sh.c (sh_override_options): Do not automatically
  14190. enable TARGET_MOVD for the SH2A when supporting doubles - leave
  14191. that to the -mfmovd command line switch.
  14192. * config/sh/sh.c (broken_move): Do not restrict fldi test to only
  14193. the SH4 and SH4A.
  14194. (fldi_ok): Always allow.
  14195. * config/sh/sh.md (movsf_ie): Always use single fp_mode.
  14196. 2009-06-29 DJ Delorie <dj@redhat.com>
  14197. * doc/install.texi (mep-x-elf): Correct chip's full name.
  14198. 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
  14199. * doc/extend.texi: Fix typo.
  14200. 2009-06-29 Tom Tromey <tromey@redhat.com>
  14201. * dwarf2.h: Remove.
  14202. * Makefile.in (DWARF2_H): New variable.
  14203. (except.o): Use it.
  14204. (dwarf2out.o): Likewise.
  14205. (dwarf2asm.o): Likewise.
  14206. * config/i386/t-i386: Use DWARF2_H.
  14207. * except.c: Include elf/dwarf2.h.
  14208. * unwind-dw2.c: Include elf/dwarf2.h.
  14209. * dwarf2out.c: Include elf/dwarf2.h.
  14210. (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
  14211. <dtprel>: New field.
  14212. (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
  14213. (size_of_loc_descr): Likewise.
  14214. (output_loc_operands_raw): Likewise.
  14215. (output_loc_operands): Handle new dtprel field.
  14216. (loc_checksum): Update.
  14217. (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
  14218. * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
  14219. * unwind-dw2-fde.c: Include elf/dwarf2.h.
  14220. * dwarf2asm.c: Include elf/dwarf2.h.
  14221. * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
  14222. * config/mmix/mmix.c: Include elf/dwarf2.h.
  14223. * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
  14224. * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
  14225. * config/sh/sh.c: Include elf/dwarf2.h.
  14226. * config/i386/i386.c: Include elf/dwarf2.h.
  14227. 2009-06-29 DJ Delorie <dj@redhat.com>
  14228. * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
  14229. * doc/extend.texi: Add MeP attributes and pragmas.
  14230. * doc/invoke.text: Add MeP Options.
  14231. * doc/contrib.texi: Add MeP contribution.
  14232. * doc/md.texi: Add MeP constraints.
  14233. * doc/install.texi: Add MeP target.
  14234. 2009-06-30 Anatoly Sokolov <aesok@post.ru>
  14235. * target.h (struct gcc_target): Add frame_pointer_required field.
  14236. * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
  14237. (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
  14238. * ira.c (setup_eliminable_regset): Use frame_pointer_required target
  14239. hook.
  14240. * reload1.c (update_eliminables): (Ditto.).
  14241. * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
  14242. * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
  14243. (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
  14244. * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
  14245. * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
  14246. * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
  14247. (arm_frame_pointer_required): New function.
  14248. * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
  14249. * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14250. (avr_frame_pointer_required_p): Declare as static.
  14251. * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
  14252. * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
  14253. * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
  14254. (bfin_frame_pointer_required): Make as static, change return type
  14255. to bool.
  14256. * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
  14257. * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
  14258. * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14259. (cris_frame_pointer_required): New function.
  14260. * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
  14261. * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
  14262. * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14263. (fr30_frame_pointer_required): New function.
  14264. * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
  14265. * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
  14266. (frv_frame_pointer_required): Make as static, change return type
  14267. to bool.
  14268. * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
  14269. * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
  14270. * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14271. (ix86_frame_pointer_required): Make as static, change return type to
  14272. bool.
  14273. * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
  14274. * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
  14275. * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14276. * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
  14277. * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
  14278. * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
  14279. * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
  14280. * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14281. (mips_frame_pointer_required): Make as static.
  14282. * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
  14283. * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
  14284. * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14285. (mmix_frame_pointer_required): Mew function.
  14286. * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
  14287. * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14288. * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
  14289. * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
  14290. * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
  14291. * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
  14292. (CAN_ELIMINATE): Redefine.
  14293. * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
  14294. (sparc_frame_pointer_required): New function.
  14295. (sparc_can_eliminate): New function.
  14296. * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
  14297. * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
  14298. * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
  14299. * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
  14300. * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
  14301. (xtensa_frame_pointer_required): Make as static, change return type
  14302. to bool.
  14303. * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
  14304. Remove.
  14305. 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
  14306. * doc/plugins.texi: Document PLUGIN_START_UNIT.
  14307. * toplev.c (compile_file): Call PLUGIN_START_UNIT.
  14308. * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
  14309. * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
  14310. (register_callback): Handle PLUGIN_START_UNIT.
  14311. (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
  14312. 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
  14313. * tree.c (process_call_operands): Propagate TREE_READONLY from the
  14314. operands.
  14315. (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
  14316. (build3_stat): Propagate TREE_READONLY for COND_EXPR.
  14317. 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
  14318. * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
  14319. move cost.
  14320. 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
  14321. * doc/extend.texi (Additional Floating Types): __float128 is also
  14322. supported on i386 targets.
  14323. 2009-06-29 Richard Guenther <rguenther@suse.de>
  14324. PR middle-end/14187
  14325. * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
  14326. flag.
  14327. (pt_solutions_same_restrict_base): Declare.
  14328. * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
  14329. flag.
  14330. (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
  14331. (make_constraint_from, make_copy_constraint): Move earlier.
  14332. (make_constraint_from_heapvar): New function.
  14333. (make_constraint_from_restrict): Likewise.
  14334. (handle_lhs_call): Use it.
  14335. (find_func_aliases): Use it to track conversions to restrict
  14336. qualified pointers.
  14337. (struct fieldoff): Add only_restrict_pointers flag.
  14338. (push_fields_onto_fieldstack): Initialize it.
  14339. (create_variable_info_for): Track global restrict qualified pointers.
  14340. (intra_create_variable_infos): Use make_constraint_from_heapvar.
  14341. Track restrict qualified pointer arguments.
  14342. (set_uids_in_ptset): Use varinfo is_global_var flag.
  14343. (find_what_var_points_to): Set the vars_contains_restrict flag.
  14344. Always create the points-to solution for sets including restrict tags.
  14345. (pt_solutions_same_restrict_base): New function.
  14346. * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
  14347. qualified pointers use pt_solutions_same_restrict_base as
  14348. additional source for disambiguation.
  14349. 2009-06-29 Richard Guenther <rguenther@suse.de>
  14350. PR middle-end/38212
  14351. * alias.c (find_base_decl): Remove.
  14352. (get_deref_alias_set_1): Remove restrict handling.
  14353. * c-common.c (c_apply_type_quals_to_decl): Do not set
  14354. DECL_POINTER_ALIAS_SET.
  14355. * gimplify.c (find_single_pointer_decl_1): Remove.
  14356. (find_single_pointer_decl): Likewise.
  14357. (internal_get_tmp_var): Remove restrict handling.
  14358. (gimple_regimplify_operands): Likewise.
  14359. * omp-low.c (expand_omp_atomic_pipeline): Do not set
  14360. DECL_POINTER_ALIAS_SET. Use ref-all pointers.
  14361. * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
  14362. * tree.c (restrict_base_for_decl): Remove.
  14363. (init_ttree): Do not allocate it.
  14364. (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
  14365. LABEL_DECL_UID for label decls.
  14366. (copy_node_stat): Do not copy restrict information.
  14367. (decl_restrict_base_lookup): Remove.
  14368. (decl_restrict_base_insert): Likewise.
  14369. (print_restrict_base_statistics): Likewise.
  14370. (dump_tree_statistics): Do not call print_restrict_base_statistics.
  14371. * tree.h (DECL_POINTER_ALIAS_SET): Remove.
  14372. (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
  14373. (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
  14374. (LABEL_DECL_UID): Adjust.
  14375. (DECL_BASED_ON_RESTRICT_P): Remove.
  14376. (DECL_GET_RESTRICT_BASE): Likewise.
  14377. (SET_DECL_RESTRICT_BASE): Likewise.
  14378. (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
  14379. * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
  14380. instead of DECL_POINTER_ALIAS_SET.
  14381. * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
  14382. * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
  14383. * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
  14384. 2009-06-29 Richard Guenther <rguenther@suse.de>
  14385. PR tree-optimization/40579
  14386. * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
  14387. the IL to simplify has constants that overflowed.
  14388. 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
  14389. PR tree-optimization/40550
  14390. * tree-vect-generic.c (expand_vector_operations_1): Compute in
  14391. vector_compute_type only when the size of vector_compute_type is
  14392. less than the size of type.
  14393. 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
  14394. * fold-const.c (contains_label_1): Fix comments.
  14395. (contains_label_p): Do not walk trees multiple time.
  14396. 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
  14397. * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
  14398. * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
  14399. cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
  14400. ix86_fp_comparison_operator.
  14401. (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
  14402. *fp_jcc_2_sse, *fp_jcc_2_387): Delete
  14403. (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
  14404. *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
  14405. !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
  14406. to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
  14407. (related splits): Change predicate to ix86_fp_comparison_operator.
  14408. * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
  14409. instead of ix86_fp_comparison_codes.
  14410. (ix86_trivial_fp_comparison_operator,
  14411. ix86_fp_comparison_operator): New.
  14412. * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
  14413. (ix86_expand_compare): Eliminate last two parameters.
  14414. (ix86_fp_jump_nontrivial_p): Kill.
  14415. * config/i386/i386.c (put_condition_code): Eliminate call to
  14416. ix86_fp_comparison_codes and subsequent assertion.
  14417. (ix86_fp_comparison_codes): Eliminate.
  14418. (ix86_fp_swap_condition): New.
  14419. (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
  14420. ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
  14421. into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
  14422. (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
  14423. and ix86_fp_swap_condition.
  14424. (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
  14425. Use ix86_fp_comparison_strategy.
  14426. (ix86_expand_compare): Likewise. Eliminate last two arguments.
  14427. (ix86_fp_jump_nontrivial_p): Eliminate.
  14428. (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
  14429. call to ix86_expand_compare.
  14430. (ix86_split_fp_branch, ix86_expand_setcc,
  14431. ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
  14432. ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
  14433. 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
  14434. * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
  14435. related to jump_clobbers.
  14436. * config/arm/arm.md (conds): Remove jump_clob case.
  14437. (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
  14438. splits): Change comparison_operator to arm_comparison_operator.
  14439. (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
  14440. Eliminate.
  14441. 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
  14442. * dojump.c (do_compare_rtx_and_jump): Try swapping the
  14443. condition for floating point modes.
  14444. * expmed.c (emit_store_flag_1): Move here a bigger part
  14445. of emit_store_flag.
  14446. (emit_store_flag): Try swapping the condition for floating point
  14447. modes.
  14448. * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
  14449. 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
  14450. * expr.c (expand_expr_real_1): Just use do_store_flag.
  14451. (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
  14452. emit_store_flag_force.
  14453. * expmed.c (emit_store_flag_force): Copy here trick
  14454. previously in expand_expr_real_1. Try reversing the comparison.
  14455. (emit_store_flag_1): Work if target is NULL.
  14456. (emit_store_flag): Work if target is NULL, using the result mode
  14457. from the comparison. Use split_comparison, restructure final part
  14458. to simplify conditionals.
  14459. 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
  14460. * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
  14461. * dojump.c (do_jump): Change handling of floating-point
  14462. ops to use just do_compare_and_jump.
  14463. (split_comparison): New.
  14464. (do_compare_rtx_and_jump): Add here logic coming previously
  14465. in do_jump, using split_comparison.
  14466. 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
  14467. PR target/40489
  14468. * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
  14469. 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
  14470. * tree-ssa-alias.c: Fix unintentional commit.
  14471. 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
  14472. * passes.c (execute_one_pass): Fix unintentional commit.
  14473. 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
  14474. * df-problems.c (df_set_seen, df_unset_seen): Delete.
  14475. (df_rd_local_compute, df_md_local_compute): Inline them.
  14476. (df_md_scratch): New.
  14477. (df_md_alloc, df_md_free): Allocate/free it.
  14478. (df_md_local_compute): Only include live registers in init.
  14479. (df_md_transfer_function): Prune the in-set computed by
  14480. the confluence function, and the gen-set too.
  14481. 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
  14482. PR rtl-optimization/26854
  14483. * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
  14484. * df-problems.c (df_rd_add_problem): Fix comment.
  14485. (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
  14486. df_md_simulate_artificial_defs_at_top,
  14487. df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
  14488. df_md_bb_local_compute, df_md_local_compute, df_md_reset,
  14489. df_md_transfer_function, df_md_init, df_md_confluence_0,
  14490. df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
  14491. problem_MD, df_md_add_problem): New.
  14492. * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
  14493. df_md_get_bb_info): New.
  14494. (DF_LAST_PROBLEM_PLUS1): Adjust.
  14495. * Makefile.in (fwprop.o): Include domwalk.h.
  14496. * fwprop.c: Include domwalk.h.
  14497. (reg_defs, reg_defs_stack): New.
  14498. (bitmap_only_bit_between): Remove.
  14499. (process_defs): New.
  14500. (process_uses): Use reg_defs and local_md instead of
  14501. bitmap_only_bit_between and local_rd.
  14502. (single_def_use_enter_block): New, from build_single_def_use_links.
  14503. (single_def_use_leave_block): New.
  14504. (build_single_def_use_links): Remove code moved to
  14505. single_def_use_enter_block, invoke domwalk.
  14506. (use_killed_between): Adjust comment.
  14507. 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
  14508. * bitmap.h (bitmap_ior_and_into): New.
  14509. * bitmap.c (bitmap_ior_and_into): New.
  14510. 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
  14511. * domwalk.h (struct dom_walk_data): Remove all callbacks except
  14512. before_dom_children_before_stmts and after_dom_children_after_stmts.
  14513. Rename the two remaining callbacks to just before_dom_children and
  14514. after_dom_children. Remove other GIMPLE statement walking bits.
  14515. * domwalk.c (walk_dominator_tree): Remove now unsupported features.
  14516. * graphite.c: Do not include domwalk.h.
  14517. * tree-into-ssa.c (interesting_blocks): New global.
  14518. (struct mark_def_sites_global_data): Remove it and names_to_rename.
  14519. (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
  14520. rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
  14521. now that they're not domwalk callbacks.
  14522. (rewrite_initialize_block): Rename to...
  14523. (rewrite_enter_block): ... this, place after called functions. Test
  14524. interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
  14525. (rewrite_finalize_block): Rename to...
  14526. (rewrite_leave_block): ... this, place after called functions.
  14527. (rewrite_update_init_block): Rename to...
  14528. (rewrite_update_enter_block): ... this, place after called functions.
  14529. Test interesting_blocks, call rewrite_update_stmt and
  14530. rewrite_update_phi_arguments.
  14531. (rewrite_update_fini_block): Rename to...
  14532. (rewrite_leave_block): ... this, place after called functions.
  14533. (rewrite_blocks): Remove last argument, simplify initialization of
  14534. walk_data.
  14535. (mark_def_sites_initialize_block): Rename to...
  14536. (mark_def_sites_block): ... this, call mark_def_sites.
  14537. (mark_def_sites_blocks): Remove argument, simplify initialization of
  14538. walk_data.
  14539. (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
  14540. (update_ssa): Likewise.
  14541. * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
  14542. callback.
  14543. (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
  14544. (dom_opt_initialize_block): Rename to...
  14545. (dom_opt_enter_block): ... this, place after called functions. Walk
  14546. statements here, inline propagate_to_outgoing_edges.
  14547. (dom_opt_finalize_block): Rename to...
  14548. (dom_opt_leave_block): ... this, place after called functions.
  14549. * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
  14550. domwalk callback.
  14551. (dse_enter_block, dse_record_phi): New.
  14552. (dse_record_phis): Delete.
  14553. (dse_finalize_block): Rename to...
  14554. (dse_leave_block): ... this.
  14555. (tree_ssa_dse): Simplify initialization of walk_data.
  14556. * tree-ssa-loop-im.c (determine_invariantness, move_computations):
  14557. Adjust initialization of walk_data.
  14558. * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
  14559. * tree-ssa-loop-phiopt.c (get_non_trapping):
  14560. Adjust initialization of walk_data.
  14561. * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
  14562. * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
  14563. it's not a domwalk callback.
  14564. (uncprop_initialize_block): Rename to...
  14565. (dse_enter_block): ... this, call uncprop_into_successor_phis.
  14566. (dse_finalize_block): Rename to...
  14567. (dse_leave_block): ... this.
  14568. (tree_ssa_uncprop): Simplify initialization of walk_data.
  14569. * Makefile.in: Adjust dependencies.
  14570. 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
  14571. * arm.md (casesi): Fix test for Thumb1.
  14572. (thumb1_casesi_internal_pic): Likewise.
  14573. (thumb1_casesi_dispatch): Likewise.
  14574. 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
  14575. * config/arm/arm-cores.def: Added core cortex-m0.
  14576. * config/arm/arm-tune.md: Regenerated.
  14577. * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
  14578. 2009-06-26 DJ Delorie <dj@redhat.com>
  14579. * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
  14580. * config/mep/mep.c (mep_bundle_insns): Account for the fact that
  14581. the scheduler doesn't tag jump insns.
  14582. 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
  14583. * c-decl.c (merge_decls): Re-indent.
  14584. 2009-06-26 Janis Johnson <janis187@us.ibm.com>
  14585. PR c/39902
  14586. * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
  14587. Special-case decimal float constants.
  14588. 2009-06-26 Richard Henderson <rth@redhat.com>
  14589. * function.h (struct function): Add cannot_be_copied_reason,
  14590. and cannot_be_copied_set.
  14591. * tree-inline.c (has_label_address_in_static_1): Rename from
  14592. inline_forbidden_p_2; don't set inline_forbidden_reason here.
  14593. (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
  14594. don't set inline_forbidden_reason.
  14595. (copy_forbidden): New function, split out of inline_forbidden_p.
  14596. (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
  14597. (inline_forbidden_p): Use copy_forbidden.
  14598. (tree_versionable_function_p): Likewise.
  14599. (inlinable_function_p): Merge into tree_inlinable_function_p.
  14600. (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
  14601. * ipa-cp.c (ipcp_versionable_function_p): New function.
  14602. (ipcp_cloning_candidate_p): Use it.
  14603. (ipcp_node_modifiable_p): Likewise.
  14604. 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
  14605. * builtins.c (expand_builtin_alloca): Handle builtin alloca
  14606. that is marked not to be inlined. Remove flag_mudflap use.
  14607. * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
  14608. (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
  14609. 2009-06-26 Steve Ellcey <sje@cup.hp.com>
  14610. PR bootstrap/40338
  14611. * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
  14612. * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
  14613. 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
  14614. * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
  14615. shared libgcc.
  14616. (__mingwthr_remove_key_dtor): Likewise.
  14617. 2009-06-26 Richard Guenther <rguenther@suse.de>
  14618. * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
  14619. 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
  14620. PR middle-end/40525
  14621. * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
  14622. try the non-cond_exec path also.
  14623. 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  14624. PR target/40468
  14625. * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
  14626. (output_cbranch): Use new functions.
  14627. (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
  14628. Likewise.
  14629. 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
  14630. Pat Haugen <pthaugen@us.ibm.com>
  14631. Revital Eres <ERES@il.ibm.com>
  14632. * config/rs6000/rs6000.c (print_operand): Correct lossage message
  14633. for %c error. Add %x support to print VSX registers as a unified
  14634. register set, instead of separate float and altivec registers.
  14635. Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
  14636. %y case, and add support for VSX pre-modify addresses.
  14637. (output_toc): Add assert for CONST containing an integer constant
  14638. in the PLUS case.
  14639. (rs6000_adjust_cost): Add POWER7 support.
  14640. (insn_must_be_first_in_group): Ditto.
  14641. (insn_must_be_last_in_group): Ditto.
  14642. (rs6000_emit_popcount): Ditto.
  14643. (rs6000_vector_mode_supported_p): Ditto.
  14644. * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
  14645. Change some of the functions called by macros to being called
  14646. through a pointer, so debug functions can be inserted if
  14647. -mdebug=addr or -mdebug=cost.
  14648. (rs6000_preferred_reload_class_ptr): Ditto.
  14649. (rs6000_secondary_reload_class_ptr): Ditto.
  14650. (rs6000_secondary_memory_needed_ptr): Ditto.
  14651. (rs6000_cannot_change_mode_class_ptr): Ditto.
  14652. (rs6000_secondary_reload_inner): Ditto.
  14653. (rs6000_legitimize_reload_address): Ditto.
  14654. (rs6000_legitimize_reload_address_ptr): Ditto.
  14655. (rs6000_mode_dependent_address): Ditto.
  14656. (rs6000_mode_dependent_address_ptr): Ditto.
  14657. * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
  14658. function to return true if the mode allows reg + integer
  14659. addresses.
  14660. (virtual_stack_registers_memory_p): New function to return true if
  14661. the address refers to a virtual stack register.
  14662. (rs6000_legitimate_offset_address_p): Move code to say whether a
  14663. mode supports reg+int addressing to reg_offset_addressing_ok_p and
  14664. call it.
  14665. (rs6000_legitimate_address_p): Add checks for modes that only can
  14666. do reg+reg addressing. Start adding VSX support.
  14667. (rs6000_legitimize_reload_address): Ditto.
  14668. (rs6000_legitimize_address): Ditto.
  14669. (rs6000_debug_legitimate_address_p): New debug functions for
  14670. -mdebug=addr and -mdebug=cost.
  14671. (rs6000_debug_rtx_costs): Ditto.
  14672. (rs6000_debug_address_costs): Ditto.
  14673. (rs6000_debug_adjust_cost): Ditto.
  14674. (rs6000_debug_legitimize_address): Ditto.
  14675. (rs6000_legitimize_reload_address_ptr): Point to call normal
  14676. function or debug function. Make functions called via pointer
  14677. static.
  14678. (rs6000_mode_dependent_address_ptr): Ditto.
  14679. (rs6000_secondary_reload_class_ptr): Ditto.
  14680. (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
  14681. (rs6000_emit_move): Add -mdebug=addr support. Change an abort
  14682. into a friendlier error.
  14683. (rs6000_init_builtins): Add initial VSX support.
  14684. (rs6000_adjust_cost): Fix some spacing issues.
  14685. * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
  14686. (REG_CLASS_NAMES): Ditto.
  14687. (REG_CLASS_CONTENTS): Ditto.
  14688. (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
  14689. pointer, to add -mdebug=addr support.
  14690. (CANNOT_CHANGE_MODE_CLASS): Ditto.
  14691. (SECONDARY_RELOAD_CLASS): Call through a pointer to add
  14692. -mdebug=addr support.
  14693. (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
  14694. (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
  14695. (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
  14696. * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
  14697. 16-bit values.
  14698. (bswapsi*): Set attribute types for load/store. Add combiner
  14699. patterns to eliminate zero extend on 64-bit.
  14700. (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
  14701. stdbrx if the hardware supports those instructions.
  14702. 2009-06-25 Ian Lance Taylor <iant@google.com>
  14703. * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
  14704. (Link Options): Document -static-libstdc++.
  14705. 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
  14706. PR target/38731
  14707. * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
  14708. DATA_ALIGNMENT instead.
  14709. 2009-06-25 Richard Guenther <rguenther@suse.de>
  14710. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
  14711. indirect references against the callused/escaped solutions.
  14712. (call_may_clobber_ref_p_1): Likewise.
  14713. 2009-06-25 Martin Jambor <mjambor@suse.cz>
  14714. PR tree-optimization/40493
  14715. * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
  14716. (enum unscalarized_data_handling): New type.
  14717. (handle_unscalarized_data_in_subtree): Return what has been done.
  14718. (load_assign_lhs_subreplacements): Handle left flushes differently.
  14719. (sra_modify_assign): Use unscalarized_data_handling, simplified
  14720. condition determining whether to remove the statement.
  14721. 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
  14722. * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
  14723. excerpt - @ should be doubled for texinfo.
  14724. 2009-06-24 Ian Lance Taylor <iant@google.com>
  14725. * config/arc/arc.c: Include "df.h".
  14726. (arc_attribute_table): Make static. Move higher in file.
  14727. (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
  14728. (output_shift): Initialize n later to avoid warning.
  14729. * config/arm/arm.c (arm_attribute_table): Make static. Move
  14730. higher in file.
  14731. * config/avr/avr.c (avr_attribute_table): Make static. Move
  14732. higher in file.
  14733. (reg_class_tab): Change array type from int to enum reg_class.
  14734. (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
  14735. LABEL_REF.
  14736. (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
  14737. (lshrhi3_out): Likewise.
  14738. (class_likely_spilled_p): Change return type to bool.
  14739. (avr_rtx_costs): Use local code variable with enum type.
  14740. * config/avr/avr.md (movmemhi): Use add_reg_note.
  14741. (andhi3, andsi3): Don't use AS2 with "and".
  14742. (iorhi3, iorsi3): Don't use AS2 with "or".
  14743. * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
  14744. * config/crx/crx.c: Include "df.h".
  14745. (crx_attribute_table): Make static.
  14746. * config/m32r/m32r.c: Include "df.h".
  14747. (m32r_attribute_table): Make static. Move higher in file.
  14748. (pop): Use add_reg_note.
  14749. (block_move_call): Change 0 to LCT_NORMAL in function call.
  14750. * config/m32r/m32r.md (movsi_insn): Remove unused local value.
  14751. * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
  14752. * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
  14753. declare, not just when TREE_CODE is defined.
  14754. * config/m68hc11/m68hc11.c: Include "expr.h".
  14755. (m68hc11_attribute_table): Make static. Move higher in file.
  14756. (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
  14757. function call.
  14758. (m68hc11_register_indirect_p): Likewise.
  14759. (m68hc11_function_arg_padding): Change return type to enum
  14760. direction.
  14761. (emit_move_after_reload): Use add_reg_note.
  14762. (m68hc11_emit_logical): Change code parameter to enum rtx_code.
  14763. (m68hc11_split_logical): Likewise.
  14764. (m68hc11_rtx_costs): Add local code_and outer_code variables with
  14765. enum type.
  14766. * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
  14767. to VOIDmode in function call.
  14768. * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
  14769. tree is defined.
  14770. (m68hc11_split_logical): Update declaration.
  14771. (m68hc11_function_arg_padding): Update declaration.
  14772. * config/mcore/mcore.c (regno_reg_class): Change form array of int
  14773. to array of enum reg_class.
  14774. (mcore_attribute_table): Make static. Move higher in file.
  14775. (mcore_rtx_costs): Add cast to enum type.
  14776. * config/mcore/mcore.h (regno_reg_class): Update declaration.
  14777. (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
  14778. * config/sh/sh.c (sh_attribute_table): Make static. Move higher
  14779. in file.
  14780. * config/sh/predicates.md (trapping_target_operand): Rename and to
  14781. and_expr.
  14782. * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
  14783. higher in file.
  14784. * config/spu/spu.c (spu_attribute_table): Make static. Move
  14785. higher in file.
  14786. * config/v850/v850.c (v850_attribute_table): Make static. Move
  14787. higher in file.
  14788. (v850_rtx_costs): Use local code with enum type.
  14789. (expand_epilogue): Add cast.
  14790. * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
  14791. 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
  14792. PR target/40515
  14793. * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
  14794. -m2a-single-only and -m2a-nofpu.
  14795. * config/sh/sh.opt: Document m2a generates FPU code.
  14796. 2009-06-24 Anatoly Sokolov <aesok@post.ru>
  14797. * defaults.h (CAN_ELIMINATE): Provide default.
  14798. * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
  14799. * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
  14800. * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
  14801. * config/spu/spu.h (CAN_ELIMINATE): Delete.
  14802. * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
  14803. * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
  14804. * config/cris/cris.h (CAN_ELIMINATE): Delete.
  14805. * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
  14806. * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
  14807. * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
  14808. 2009-06-24 DJ Delorie <dj@redhat.com>
  14809. * mep-ext-cop.cpu: Fix copyright notice.
  14810. * mep-default: Fix copyright notice.
  14811. * mep-core: Fix copyright notice.
  14812. * mep: Fix copyright notice.
  14813. * mep-ivc2: Fix copyright notice.
  14814. * mep-c5: Fix copyright notice.
  14815. 2009-06-24 Denis Chertykov <chertykov@gmail.com>
  14816. * doc/contrib.texi (Contributors):
  14817. 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
  14818. PR middle-end/40501
  14819. * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
  14820. src and dst operands if necessary.
  14821. 2009-06-23 DJ Delorie <dj@redhat.com>
  14822. Add MeP port.
  14823. * config.gcc: Add mep support.
  14824. * recog.c: Resurrect validate_replace_rtx_subexp().
  14825. * recog.h: Likewise.
  14826. * config/mep/: Add new port:
  14827. * config/mep/constraints.md: New file.
  14828. * config/mep/default.h: New file.
  14829. * config/mep/intrinsics.h: New file.
  14830. * config/mep/intrinsics.md: New file.
  14831. * config/mep/ivc2-template.h: New file.
  14832. * config/mep/mep-c5.cpu: New file.
  14833. * config/mep/mep-core.cpu: New file.
  14834. * config/mep/mep-default.cpu: New file.
  14835. * config/mep/mep-ext-cop.cpu: New file.
  14836. * config/mep/mep-intrin.h: New file.
  14837. * config/mep/mep-ivc2.cpu: New file.
  14838. * config/mep/mep-lib1.asm: New file.
  14839. * config/mep/mep-lib2.c: New file.
  14840. * config/mep/mep-pragma.c: New file.
  14841. * config/mep/mep-protos.h: New file.
  14842. * config/mep/mep-tramp.c: New file.
  14843. * config/mep/mep.c: New file.
  14844. * config/mep/mep.cpu: New file.
  14845. * config/mep/mep.h: New file.
  14846. * config/mep/mep.md: New file.
  14847. * config/mep/mep.opt: New file.
  14848. * config/mep/predicates.md: New file.
  14849. * config/mep/t-mep: New file.
  14850. 2009-06-23 Ian Lance Taylor <iant@google.com>
  14851. * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
  14852. from loose_warn into c_loose_warn and from strict_warn into
  14853. c_strict_warn. Set and substitute warn_cxxflags. Check for
  14854. --enable-build-with-cxx. Set and substitute
  14855. ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
  14856. * Makefile.in (CXXFLAGS): New variable.
  14857. (C_LOOSE_WARN, C_STRICT_WARN): New variables.
  14858. (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
  14859. the default is the same as $(STRICT_WARN).
  14860. (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
  14861. (CXX): New variable.
  14862. (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
  14863. (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
  14864. (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
  14865. (HOST_LIBS): New variable.
  14866. (GCC_CFLAGS): Add $(C_LOOSE_WARN).
  14867. (ALL_CXXFLAGS): New variable.
  14868. (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
  14869. * doc/install.texi (Configuration): Document
  14870. --enable-build-with-cxx, --with-stage1-ldflags,
  14871. --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
  14872. * configure: Rebuild.
  14873. 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  14874. * config/arm/arm.c (arm_override_options): Fix braces and formatting
  14875. from previous commit.
  14876. 2009-06-23 Ian Lance Taylor <iant@google.com>
  14877. * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
  14878. 2009-06-23 Ian Lance Taylor <iant@google.com>
  14879. * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
  14880. with ATTRIBUTE_UNUSED.
  14881. 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
  14882. Pat Haugen <pthaugen@us.ibm.com>
  14883. Revital Eres <eres@il.ibm.com>
  14884. * config.in (HAVE_AS_POPCNTD): Add default definition.
  14885. (HAVE_AS_LWSYNC): Ditto.
  14886. * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
  14887. release number.
  14888. (gcc_cv_as_powerpc_cmpb): Ditto.
  14889. (gcc_cv_as_powerpc_dfp): Ditto.
  14890. (gcc_cv_as_powerpc_vsx): Ditto.
  14891. (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
  14892. supporting the popcntd/lwsync instructions.
  14893. (gcc_cv_as_powerpc_lwsync): Ditto.
  14894. * configure: Regenerate.
  14895. * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
  14896. -mcpu=native and -mcpu=power7.
  14897. * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
  14898. * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
  14899. a variable instead of a mask to reduce the number of mask bits.
  14900. * config/rs6000/sysv4.opt (-mbit-align): Ditto.
  14901. (-mbit-word): Ditto.
  14902. (-mregnames): Ditto.
  14903. * config/rs6000/rs6000.opt (-mupdate): Ditto.
  14904. (-mfused-madd): Ditto.
  14905. * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
  14906. 2.06 instructions.
  14907. (-mvsx): New switch for VSX instructions.
  14908. (-misel): Move from a variable to a mask to allow it to be set by
  14909. -mcpu=.
  14910. * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
  14911. function declaration to an array declaration.
  14912. (rs6000_hard_regno_nregs): New external array declaration.
  14913. * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
  14914. files included by rs6000.md.
  14915. * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
  14916. SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
  14917. * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
  14918. a target mask.
  14919. (rs6000_debug_reg): New -mdebug= variables.
  14920. (rs6000_debug_addr): Ditto.
  14921. (rs6000_debug_cost): Ditto.
  14922. (rs6000_pmode): New variable to hold Pmode.
  14923. (rs6000_pointer_size): New variable to hold POINTER_SIZE.
  14924. (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
  14925. calculated at compiler start.
  14926. (rs6000_hard_regno_nregs): Change function to an array which holds
  14927. HARD_REGNO_NREGS calculated at compiler start.
  14928. (rs6000_explicit_options): Delete isel field.
  14929. (rs6000_vector_unit): New array to hold which vector unit
  14930. supports arithmetic options for a given type.
  14931. (rs6000_vector_mem): New array to hold which vector unit supports
  14932. memory reference operations for a given type.
  14933. (rs6000_vector_align): New array to given the alignment of each
  14934. vector type.
  14935. (power7_cost): New basic costs for power7.
  14936. (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
  14937. (rs6000_hard_regno_nregs_internal): New function, moved from
  14938. HARD_REGNO_NREGS, to calculate the number of registers each hard
  14939. register takes for each type.
  14940. (rs6000_debug_reg_print): New function for -mdebug=reg support.
  14941. (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
  14942. (+rs6000_init_hard_regno_mode_ok): New function, move calculation
  14943. of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
  14944. unit information here so it is calculated once at compiler startup
  14945. time.
  14946. (rs6000_override_options): Make -misel a target mask. Add more
  14947. power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
  14948. VSX support. Add support for -mdebug=reg, -mdebug=addr, and
  14949. -mdebug=cost.
  14950. (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
  14951. (rs6000_handle_option): Move -misel from variable to target mask.
  14952. (rs6000_builtin_mask_for_load): Add VSX support.
  14953. (rs6000_conditional_register_usage): Ditto.
  14954. (USE_ALTIVEC_FOR_ARG_P): Ditto.
  14955. (function_arg_boundary): Ditto.
  14956. (rs6000_expand_builtin): Ditto.
  14957. (def_builtin): Make abort message a little friendlier.
  14958. (rs6000_emit_int_cmove): Add support for 64-bit isel.
  14959. * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
  14960. assembler support the popcntd instruction instead of a vsx
  14961. instruction to enable power7 support.
  14962. (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
  14963. (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
  14964. option to the assembler if -mcpu=native.
  14965. (ASM_CPU_NATIVE_SPEC): Ditto.
  14966. (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
  14967. ISA 2.06 features.
  14968. (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
  14969. the lwsync instruction.
  14970. (enum processor_type): Add PROCESSOR_POWER7.
  14971. (rs6000_debug_reg): New -mdebug= options.
  14972. (rs6000_debug_addr): Ditto.
  14973. (rs6000_debug_cost): Ditto.
  14974. (rs6000_isel): Delete.
  14975. (enum rs6000_vector): New enum to say what vector unit we have.
  14976. (VECTOR_UNIT_*): New macros to say which vector unit has
  14977. arithmetic operations for a given type.
  14978. (VECTOR_MEM_*): New macros to say which vector unit has memory
  14979. operations for a given type.
  14980. (TARGET_LDBRX): Whether the machine supports the ldbrx
  14981. instruction.
  14982. (TARGET_ISEL): Delete, -misel moved to be a mask.
  14983. (TARGET_ISEL64): New macro for 64-bit isel support.
  14984. (UNITS_PER_VSX_WORD): New macro.
  14985. (POINTER_SIZE): Move to be an external variable, rather than
  14986. calculating whether we are generating 32 ot 64-bit code.
  14987. (Pmode): Ditto.
  14988. (STACK_BOUNDARY): Add VSX support.
  14989. (LOCAL_ALIGNMENT): Ditto.
  14990. (SLOW_UNALIGNED_ACCESS): Ditto.
  14991. (VSX_REGNO_P): New macro for VSX support.
  14992. (VFLOAT_REGNO_P): Ditto.
  14993. (VINT_REGNO_P): Ditto.
  14994. (VLOGICAL_REGNO_P): Ditto.
  14995. (VSX_VECTOR_MODE): Ditto.
  14996. (VSX_SCALAR_MODE): Ditto.
  14997. (VSX_MODE): Ditto.
  14998. (VSX_MOVE_MODE): Ditto.
  14999. (VSX_REG_CLASS_P): Ditto.
  15000. (HARD_REGNO_NREGS): Instead of calling a function, use an array
  15001. lookup.
  15002. (UNITS_PER_SIMD_WORD): Add VSX support.
  15003. (MODES_TIEABLE_P): Ditto.
  15004. (STARTING_FRAME_OFFSET): Ditto.
  15005. (STACK_DYNAMIC_OFFSET): Ditto.
  15006. (EPILOGUE_USES): Ditto.
  15007. (REGNO_REG_CLASS): Move to array lookup.
  15008. (CLASS_MAX_NREGS): Ditto.
  15009. (rs6000_vector_reg_class): Add declaration.
  15010. (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
  15011. overlap with the floating point and Altivec registers.
  15012. * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
  15013. * config/rs6000/driver-rs6000.c (asm_names): New static array to
  15014. give the appropriate asm switches if -mcpu=native.
  15015. (host_detect_local_cpu): Add support for "asm".
  15016. (host_detect_local_cpu): Follow GNU code guidelines for name.
  15017. * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
  15018. -mbit-word to a variable instead of being a target mask.
  15019. * config/rs6000/sync.md (lwsync): If the assembler supports it,
  15020. emit the lwsync instruction instead of emitting the instruction as
  15021. an integer constant.
  15022. * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
  15023. fixuns_trundfsi2, move expander into rs6000.md.
  15024. * config/rs6000/rs6000.md (cpu): Add power7.
  15025. (sel, *ptrsize): New mode attributes for 32/64-bit isel.
  15026. (logical predicate patterns): Change the single instruction
  15027. primitives that set CR0 to be fast_compare instead of compare.
  15028. (norsi*): Ditto.
  15029. (popcntwsi2): Add support for ISA 2.06 popcount instructions.
  15030. (popcntddi2): Ditto.
  15031. (popcount<mode>): Ditto.
  15032. (floating multiply/add insns): Name the floating point
  15033. multiply/add insns.
  15034. (isel_signed_<mode>): Add support for -misel on 64-bit systems.
  15035. (isel_unsigned_<mode>): Ditto.
  15036. (fixuns_trundfsi2): Move expander here from spe.md.
  15037. (smindi3): Define if we have -misel on 64-bit systems.
  15038. (smaxdi3): Ditto.
  15039. (umindi3): Ditto.
  15040. (umaxdi3): Ditto.
  15041. 2009-06-23 Anatoly Sokolov <aesok@post.ru>
  15042. * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
  15043. extra_objs.
  15044. * config/avr/avr.c (avr_current_device): New variable.
  15045. (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
  15046. (avr_arch, mcu_type_s): Move to avr.h.
  15047. * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
  15048. default_data_section_start fields.
  15049. (avr_arch): Moved from avr.c.
  15050. (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
  15051. library_name fields.
  15052. (avr_current_device, avr_mcu_types, avr_arch_types,
  15053. avr_device_to_arch, avr_device_to_data_start,
  15054. avr_device_to_startfiles, avr_device_to_devicelib): Declare.
  15055. (EXTRA_SPEC_FUNCTIONS): Define.
  15056. (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
  15057. options mapping. Use device_to_arch and device_to_data_start insted.
  15058. (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
  15059. (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
  15060. * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
  15061. * config/avr/driver-avr.c: New file.
  15062. * config/avr/avr-devices.c: New file.
  15063. 2009-06-23 Jakub Jelinek <jakub@redhat.com>
  15064. * var-tracking.c (unshare_variable): Force initialized to
  15065. be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
  15066. (set_variable_part): Likewise.
  15067. (struct variable_union_info): Remove pos_src field.
  15068. (vui_vec, vui_allocated): New variables.
  15069. (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
  15070. unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
  15071. == 1 use a simpler sorting algorithm. Compute pos field right
  15072. away, don't fill in pos_src. For dst_l == 2 avoid qsort.
  15073. Avoid quadratic comparison if !flag_var_tracking_uninit.
  15074. (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
  15075. unshare_variable unconditionally.
  15076. (dataflow_set_different_2): Removed.
  15077. (dataflow_set_different): Don't traverse second hash table.
  15078. (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
  15079. unconditionally to var_reg_set or var_mem_set.
  15080. (emit_notes_in_bb): Likewise.
  15081. (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
  15082. unshare_variable.
  15083. (emit_note_insn_var_location): Don't set initialized to
  15084. VAR_INIT_STATUS_INITIALIZED early.
  15085. (vt_finalize): Free vui_vec if needed, clear vui_vec and
  15086. vui_allocated.
  15087. * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
  15088. * tree-object-size.c (addr_object_size): Instead of checking
  15089. for non-NULL TREE_CHAIN of the FIELD_DECL check that there
  15090. are no FIELD_DECLs following it.
  15091. 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
  15092. * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
  15093. order to match bswaps with signed source operands.
  15094. 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  15095. * sdbout.c (sdbout_one_type): Fix braces in switch.
  15096. 2009-06-23 Richard Guenther <rguenther@suse.de>
  15097. * tree-ssa-structalias.c (struct variable_info): Add is_global_var
  15098. member.
  15099. (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
  15100. readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
  15101. var_callused, callused_tree, var_storedanything, storedanything_tree,
  15102. var_integer, integer_tree): Remove global variables.
  15103. (new_var_info): Do not pass new id, append the new var to the
  15104. global variable vector.
  15105. (do_ds_constraint): Use is_global_var member of the variable-info.
  15106. (new_scalar_tmp_constraint_exp): Adjust.
  15107. (create_function_info_for): Likewise.
  15108. (create_variable_info_for): Likewise.
  15109. (find_what_var_points_to): Remove dead code.
  15110. (init_base_vars): Simplify.
  15111. (compute_points_to_sets): Adjust.
  15112. 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
  15113. * combine.c (try_combine): Dump information about the insns we're
  15114. combining.
  15115. 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
  15116. * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
  15117. check when calling force_to_mode on TRUNCATE's operand.
  15118. 2009-06-22 Ian Lance Taylor <iant@google.com>
  15119. * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
  15120. 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
  15121. * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
  15122. 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  15123. * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
  15124. override library linkage flags such as -static-libgcc or
  15125. -shared-libgcc.
  15126. 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
  15127. * config/m68k/m68k-devices.def: Add line for MCF5221x.
  15128. 2009-06-22 Ian Lance Taylor <iant@google.com>
  15129. * config/linux.opt: Put mglibc ahead of muclibc.
  15130. * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
  15131. for duplicate decls.
  15132. 2009-06-22 Matthias Klose <doko@ubuntu.com>
  15133. * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
  15134. 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
  15135. PR objc/28050
  15136. * c-parser.c (c_parser_objc_message_args): Return error_mark_node
  15137. instead of NULL if a parser error occurs.
  15138. 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  15139. * dwarf2out.c (dwarf2_debug_hooks): Initialize
  15140. non-DWARF2_DEBUGGING_INFO version.
  15141. 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
  15142. * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
  15143. i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
  15144. * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
  15145. (LIBGCC2_TF_CEXT): Define.
  15146. (TF_SIZE): Define.
  15147. 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  15148. PR target/40463
  15149. * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
  15150. 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  15151. * config/arm/arm.c (arm_override_options): Disable
  15152. -mcaller-super-interworking and -mcallee-super-interworking.
  15153. * doc/invoke.texi (ARM Options): Document this.
  15154. 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
  15155. * config/arm/arm.c (arm_print_operand): Deal with HIGH.
  15156. * config/arm/constraints.md (j): New constraint for movw operands.
  15157. (N): Remove thumb2 meaning.
  15158. * config/arm/arm.md (*arm_movw): Delete.
  15159. (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
  15160. * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
  15161. * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
  15162. 2009-06-22 Martin Jambor <mjambor@suse.cz>
  15163. PR tree-optimization/40492
  15164. * tree-sra.c (sra_modify_assign): Pass zero offsets to
  15165. build_ref_for_offset.
  15166. 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
  15167. * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
  15168. JUMP_TABLE_DATA_P predicates where applicable.
  15169. * auto-inc-dec.c: Ditto.
  15170. * builtins.c: Ditto.
  15171. * caller-save.c: Ditto.
  15172. * calls.c: Ditto.
  15173. * cfgcleanup.c: Ditto.
  15174. * cfglayout.c: Ditto.
  15175. * cfgrtl.c: Ditto.
  15176. * combine.c: Ditto.
  15177. * combine-stack-adj.c: Ditto.
  15178. * cse.c: Ditto.
  15179. * cselib.c: Ditto.
  15180. * dbxout.c: Ditto.
  15181. * df-scan.c: Ditto.
  15182. * dse.c: Ditto.
  15183. * dwarf2asm.c: Ditto.
  15184. * dwarf2out.c: Ditto.
  15185. * emit-rtl.c: Ditto.
  15186. * except.c: Ditto.
  15187. * explow.c: Ditto.
  15188. * expmed.c: Ditto.
  15189. * expr.c: Ditto.
  15190. * final.c: Ditto.
  15191. * function.c: Ditto.
  15192. * fwprop.c: Ditto.
  15193. * gcse.c: Ditto.
  15194. * genpreds.c: Ditto.
  15195. * genrecog.c: Ditto.
  15196. * ifcvt.c: Ditto.
  15197. * ira-costs.c: Ditto.
  15198. * ira-lives.c: Ditto.
  15199. * jump.c: Ditto.
  15200. * loop-iv.c: Ditto.
  15201. * lower-subreg.c: Ditto.
  15202. * modulo-sched.c: Ditto.
  15203. * optabs.c: Ditto.
  15204. * postreload.c: Ditto.
  15205. * print-rtl.c: Ditto.
  15206. * recog.c: Ditto.
  15207. * reginfo.c: Ditto.
  15208. * regmove.c: Ditto.
  15209. * reload1.c: Ditto.
  15210. * reload.c: Ditto.
  15211. * reorg.c: Ditto.
  15212. * rtlanal.c: Ditto.
  15213. * rtl.c: Ditto.
  15214. * sched-vis.c: Ditto.
  15215. * sdbout.c: Ditto.
  15216. * sel-sched-ir.c: Ditto.
  15217. * simplify-rtx.c: Ditto.
  15218. * targhooks.c: Ditto.
  15219. * var-tracking.c: Ditto.
  15220. * vmsdbgout.c: Ditto.
  15221. 2009-06-22 Matthias Klose <doko@ubuntu.com>
  15222. * Makefile.in (install-plugin): Always use DESTDIR.
  15223. 2009-06-22 Olivier Hainque <hainque@adacore.com>
  15224. * config/pa/pa.c (output_call): Don't optimize post call jumps
  15225. into return address adjustments if the call may throw.
  15226. 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
  15227. * arm.c (thumb1_output_casesi): New function.
  15228. * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
  15229. optimizing for size or PIC.
  15230. (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
  15231. * arm.md (UNSPEC_THUMB1_CASESI): New constant.
  15232. (casesi): Handle Thumb-1 when optimizing for size or PIC.
  15233. (thumb1_casesi_internal_pic): New expand rule.
  15234. (thumb1_casesi_dispatch): New pattern.
  15235. * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
  15236. thumb-1 mode.
  15237. * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
  15238. in the text seciton when PIC or optimizing for size.
  15239. * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
  15240. * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
  15241. preservation properties of code.
  15242. (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
  15243. (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
  15244. (__gnu_thumb1_case_si): New function.
  15245. * t-arm (LIB1ASMSRC): Define here.
  15246. (LIB1ASMFUNCS): Add some common functions.
  15247. * t-arm-elf (LIB1ASMSRC): Delete.
  15248. (LIB1ASMFUNCS): Append to existing set.
  15249. * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
  15250. * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
  15251. * t-symbian (LIB1ASMFUNCS): Likewise.
  15252. * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
  15253. * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
  15254. 2009-06-21 Richard Guenther <rguenther@suse.de>
  15255. PR tree-optimization/38729
  15256. * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
  15257. to loops with a single exit if -fno-expensive-optimizations.
  15258. 2009-06-21 Jakub Jelinek <jakub@redhat.com>
  15259. * var-tracking.c (struct shared_hash_def, shared_hash): New types.
  15260. (dataflow_set): Change vars type from htab_t to shared_hash.
  15261. (shared_hash_pool, empty_shared_hash): New variables.
  15262. (vars_clear): Removed.
  15263. (shared_hash_shared, shared_hash_htab, shared_hash_copy,
  15264. shared_hash_find_slot_unshare, shared_hash_find_slot,
  15265. shared_hash_find_slot_noinsert, shared_hash_find): New
  15266. static inlines.
  15267. (shared_hash_unshare, shared_hash_destroy): New functions.
  15268. (unshare_variable): Unshare set->vars if shared, use
  15269. shared_hash_htab.
  15270. (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
  15271. (get_init_value, find_src_set_src, dump_dataflow_set,
  15272. clobber_variable_part, emit_notes_for_differences): Use
  15273. shared_hash_htab.
  15274. (dataflow_set_init): Remove second argument, set vars to
  15275. empty_shared_hash instead of creating a new htab.
  15276. (dataflow_set_clear): Call shared_hash_destroy and set vars
  15277. to empty_shared_hash instead of calling vars_clear.
  15278. (dataflow_set_copy): Don't call vars_copy, instead just share
  15279. the src htab with dst.
  15280. (variable_union): Use shared_hash_*, use initially NO_INSERT
  15281. lookup if set->vars is shared. Don't keep slot cleared before
  15282. calling unshare_variable. Unshare set->vars if needed.
  15283. Even ->refcount == 1 vars must be unshared if set->vars is shared
  15284. and var needs to be modified.
  15285. (variable_canonicalize): New function.
  15286. (dataflow_set_union): If dst->vars is empty, just share src->vars
  15287. with dst->vars and traverse with variable_canonicalize to canonicalize
  15288. and unshare what is needed.
  15289. (dataflow_set_different): If old_set and new_set use the same shared
  15290. htab, they aren't different. If number of htab elements is different,
  15291. htabs are different. Use shared_hash_*.
  15292. (dataflow_set_destroy): Call shared_hash_destroy instead of
  15293. htab_delete.
  15294. (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
  15295. second argument to dataflow_set_init.
  15296. (vt_initialize): Likewise. Initialize shared_hash_pool and
  15297. empty_shared_hash, move bb in/out initialization afterwards.
  15298. Use variable_htab_free instead of NULL as changed_variables del hook.
  15299. (variable_was_changed): Change type of second argument to pointer to
  15300. dataflow_set. When inserting var into changed_variables, bump
  15301. refcount. Unshare set->vars if set is shared htab and slot needs to
  15302. be cleared.
  15303. (set_variable_part): Use shared_hash_*, use initially NO_INSERT
  15304. lookup if set->vars is shared. Unshare set->vars if needed.
  15305. Even ->refcount == 1 vars must be unshared if set->vars is shared
  15306. and var needs to be modified. Adjust variable_was_changed caller.
  15307. (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
  15308. vars must be unshared if set->vars is shared and var needs to be
  15309. modified. Adjust variable_was_changed caller.
  15310. (emit_note_insn_var_location): Don't pool_free var.
  15311. (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
  15312. instead of 1.
  15313. (vt_finalize): Call htab_delete on empty_shared_hash->htab and
  15314. free_alloc_pool on shared_hash_pool.
  15315. 2009-06-20 Anthony Green <green@moxielogic.com>
  15316. * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
  15317. * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
  15318. 2009-06-20 Richard Guenther <rguenther@suse.de>
  15319. * tree-ssa-structalias.c (find_func_aliases): For memset use
  15320. a constraint from NULL if we memset to zero.
  15321. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
  15322. we explicitly handle that do not read from memory.
  15323. (call_may_clobber_ref_p_1): Properly handle builtins that may
  15324. set errno.
  15325. 2009-06-20 Richard Guenther <rguenther@suse.de>
  15326. PR tree-optimization/40495
  15327. * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
  15328. (new_scalar_tmp_constraint_exp): New function.
  15329. (process_constraint): Do not create temporary decls.
  15330. (process_all_all_constraints): Likewise.
  15331. (handle_const_call): Likewise.
  15332. (create_function_info_for): Do not set decl.
  15333. 2009-06-19 Ian Lance Taylor <iant@google.com>
  15334. * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
  15335. (rs6000_attribute_table): Make static; move before use.
  15336. 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
  15337. * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
  15338. <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
  15339. Propagate the TREE_READONLY flag without overwriting it.
  15340. (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
  15341. Propagate the TREE_READONLY flag onto the result.
  15342. (process_call_operands): Move around. Use correct constant value.
  15343. 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  15344. PR target/40482
  15345. * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
  15346. * config/arm/arm.md: Likewise.
  15347. 2009-06-19 Ian Lance Taylor <iant@google.com>
  15348. * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
  15349. to GIMPLE_ERROR_MARK.
  15350. * c-typeck.c (build_conditional_expr): Add op1_original_type and
  15351. op2_original_type parameters. Warn about using different enum types.
  15352. * c-parser.c (c_parser_conditional_expression): Pass original
  15353. types to build_conditional_expr.
  15354. * c-tree.h (build_conditional_expr): Update declaration.
  15355. 2009-06-19 Ian Lance Taylor <iant@google.com>
  15356. * config/i386/i386.c (ix86_function_specific_save): Test that
  15357. fields match values, rather than testing the values are in a
  15358. certain range.
  15359. 2009-06-19 Richard Guenther <rguenther@suse.de>
  15360. * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
  15361. ADDR_EXPR pointers.
  15362. (ptr_derefs_may_alias_p): Likewise.
  15363. (ptr_deref_may_alias_ref_p_1): New function.
  15364. (ptr_deref_may_alias_ref_p): Likewise.
  15365. (ref_maybe_used_by_call_p_1): Handle builtins that are not
  15366. covered by looking at the ESCAPED solution.
  15367. (call_may_clobber_ref_p_1): Likewise.
  15368. * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
  15369. Handle NULL_TREE offset. Do not produce redundant constraints.
  15370. (process_all_all_constraints): New helper function.
  15371. (do_structure_copy): Use it.
  15372. (handle_lhs_call): Likewise.
  15373. (find_func_aliases): Handle some builtins with pointer arguments
  15374. and/or return values explicitly.
  15375. 2009-06-19 Ian Lance Taylor <iant@google.com>
  15376. * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
  15377. 2009-06-19 Ian Lance Taylor <iant@google.com>
  15378. * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
  15379. 2009-06-19 Ian Lance Taylor <iant@google.com>
  15380. * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
  15381. * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
  15382. version.
  15383. * c-decl.c (finish_decl): If -Wc++-compat, warn about
  15384. uninitialized const.
  15385. 2009-06-19 Ian Lance Taylor <iant@google.com>
  15386. * dse.c (struct store_info): Rename bitmap field to bmap. Change
  15387. all uses.
  15388. * c-decl.c (in_struct, struct_types): Remove.
  15389. (struct c_binding): Add in_struct field.
  15390. (c_binding_ptr): Define type, along with VEC.
  15391. (struct c_struct_parse_info): Define.
  15392. (struct_parse_info): New static variable.
  15393. (bind): Initialize in_struct field.
  15394. (start_struct): Remove enclosing_in_struct and
  15395. enclosing_struct_types parameters. Add
  15396. enclosing_struct_parse_info parameter. Change all callers. Set
  15397. struct_parse_info rather than in_struct and struct_types.
  15398. (grokfield): If -Wc++-compat and there is a symbol binding for the
  15399. field name, set the in_struct flag and push it on the
  15400. struct_parse_info->fields vector.
  15401. (warn_cxx_compat_finish_struct): New static function.
  15402. (finish_struct): Remove enclosing_in_struct and
  15403. enclosing_struct_types parameters. Add
  15404. enclosing_struct_parse_info parameter. Change all callers. Don't
  15405. set C_TYPE_DEFINED_IN_STRUCT here. Call
  15406. warn_cxx_compat_finish_struct. Free struct_parse_info and set to
  15407. parameter. Only push on struct_types if warn_cxx_compat.
  15408. (finish_enum): Only push on struct_types if warn_cxx_compat.
  15409. (declspecs_add_type): Add loc parameter. Change all callers.
  15410. Change all error calls to error_at. Pass loc, not input_location,
  15411. to pedwarn calls. Warn if -Wc++-compat and a typedef name is
  15412. defined in a struct. If -Wc++-compat and parsing a struct, record
  15413. that a typedef name was used.
  15414. * c-parser.c (c_parser_declspecs): Get location to pass to
  15415. declspecs_add_type.
  15416. (c_parser_struct_or_union_specifier): Update calls to start_struct
  15417. and finish_struct.
  15418. * c-tree.h (struct c_struct_parse_info): Declare.
  15419. (finish_struct, start_struct): Update declarations.
  15420. (declspecs_add_type): Update declaration.
  15421. 2009-06-19 Ian Lance Taylor <iant@google.com>
  15422. * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
  15423. variable with an anonymous type.
  15424. 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
  15425. * see.c: Remove for real.
  15426. 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
  15427. * optabs.h (enum optab_index): Add new OTI_significand.
  15428. (significand_optab): Define corresponding macro.
  15429. * optabs.c (init_optabs): Initialize significand_optab.
  15430. * genopinit.c (optabs): Implement significand_optab using
  15431. significand?f2 patterns.
  15432. * builtins.c (expand_builtin_mathfn): Handle
  15433. BUILT_IN_SIGNIFICAND{,F,L}.
  15434. (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
  15435. expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
  15436. * config/i386/i386.md (significandxf2, significand<mode>2): New
  15437. expanders to implement significandf, significand and significandl
  15438. built-ins as inline x87 intrinsics.
  15439. 2009-06-18 Anatoly Sokolov <aesok@post.ru>
  15440. * config/avr/avr.c (avr_override_options): Remove setting value of
  15441. PARAM_INLINE_CALL_COST.
  15442. 2009-06-18 Richard Henderson <rth@redhat.com>
  15443. PR 40488
  15444. * tree-pass.h (TDF_ASMNAME): New.
  15445. * tree-dump.c (dump_options): Add asmname.
  15446. * doc/invoke.texi: Document it.
  15447. * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
  15448. (dump_decl_name): ...here.
  15449. (dump_function_name): New flags arg; mind TDF_ASMNAME.
  15450. (dump_generic_node): Update dump_function_name calls.
  15451. (print_call_name): New flags arg; update all dump calls.
  15452. * diagnostic.h (print_call_name): Update.
  15453. * gimple-pretty-print.c (dump_gimple_call): Update.
  15454. 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
  15455. PR target/40470
  15456. * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
  15457. 2009-06-18 Diego Novillo <dnovillo@google.com>
  15458. * doc/plugins.texi: Document plugin_is_GPL_compatible.
  15459. * plugin.c (str_license): Declare.
  15460. (try_init_one_plugin): Assert that the symbol
  15461. 'plugin_is_GPL_compatible' exists.
  15462. 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
  15463. * see.c: Remove.
  15464. * Makefile.in (OBJS-common): Remove see.o.
  15465. (see.o): Remove.
  15466. * common.opt (fsee): Mark as preserved for backward compatibility.
  15467. * opts.c (common_handle_option): Add OPT_fsee to the backward
  15468. compatibility section.
  15469. * passes.c (init_optimization_passes, pass_see): Remove pass.
  15470. * timevar.def (TV_SEE): Remove.
  15471. * tree-pass.h (pass_see): Remove declaration.
  15472. * doc/invoke.texi (-fsee): Remove documentation.
  15473. 2009-06-18 Martin Jambor <mjambor@suse.cz>
  15474. * tree-sra.c: Include statistics.h
  15475. (sra_stats): New variable.
  15476. (sra_initialize): Clear sra_stats.
  15477. (create_access_replacement): Increment sra_stats.replacements.
  15478. (get_access_replacement): Do not return twice.
  15479. (analyze_all_variable_accesses): Increment statistics counter by the
  15480. number of scalarized aggregates.
  15481. (generate_subtree_copies): Increment sra_stats.subtree_copies.
  15482. (sra_modify_expr): Increment sra_stats.exprs.
  15483. (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
  15484. (sra_modify_assign): Increment sra_stats.exprs,
  15485. sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
  15486. (perform_intra_sra): Update statistics counters.
  15487. * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
  15488. 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
  15489. * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
  15490. (arm_scalar_mode_supported_p): New function.
  15491. 2009-06-18 Paul Brook <paul@codesourcery.com>
  15492. Sandra Loosemore <sandra@codesourcery.com>
  15493. * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
  15494. (__extendhfsf2, __truncsfhf2): Define.
  15495. * config/arm/fp16.c: New file.
  15496. * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
  15497. * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
  15498. 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
  15499. * doc/extend.texi (Half-Precision): New section.
  15500. * doc/invoke.texi (Option Summary): List -mfp16-format.
  15501. (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
  15502. * config/arm/arm.opt (mfp16-format=): New.
  15503. * config/arm/arm.c: Include intl.h.
  15504. (TARGET_INVALID_PARAMETER_TYPE): Redefine.
  15505. (TARGET_INVALID_RETURN_TYPE): Redefine.
  15506. (TARGET_PROMOTED_TYPE): Redefine.
  15507. (TARGET_CONVERT_TO_TYPE): Redefine.
  15508. (arm_fp16_format): Define.
  15509. (all_fpus): Add entry for neon-fp16.
  15510. (fp_model_for_fpu): Likewise.
  15511. (struct fp16_format): Declare.
  15512. (all_fp16_formats): Define.
  15513. (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
  15514. functions.
  15515. (arm_override_options): Set arm_fp16_format. Call sorry for fp16
  15516. and no ldrh.
  15517. (arm_legitimate_index_p): Treat HFmode like HImode.
  15518. (thumb1_legitimate_address_p): Make it recognize HFmode constants.
  15519. (coproc_secondary_reload_class): Special-case HFmode.
  15520. (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
  15521. (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
  15522. (arm_init_fp16_builtins): New.
  15523. (arm_init_builtins): Call it.
  15524. (arm_invalid_parameter_type): New.
  15525. (arm_invalid_return_type): New.
  15526. (arm_promoted_type): New.
  15527. (arm_convert_to_type).
  15528. (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
  15529. format.
  15530. (arm_emit_fp16_const): New function.
  15531. (arm_mangle_type): Mangle __fp16 as "Dh".
  15532. * config/arm/arm.h (TARGET_VFPD32): Make it know about
  15533. FPUTYPE_NEON_FP16.
  15534. (TARGET_NEON_FP16): New.
  15535. (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
  15536. (enum fputype): Add FPUTYPE_NEON_FP16.
  15537. (enum arm_fp16_format_type): Declare.
  15538. (arm_fp16_format): Declare.
  15539. (LARGEST_EXPONENT_IS_NORMAL): Define.
  15540. * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
  15541. * config/arm/arm-modes.def (HFmode): Define.
  15542. * config/arm/vfp.md (*movhf_vfp): New.
  15543. (extendhfsf2): New.
  15544. (truncsfhf2): New.
  15545. * config/arm/arm.md (fpu): Add neon_fp16.
  15546. (floatsihf2, floatdihf2): New.
  15547. (fix_trunchfsi2, fix_trunchfdi2): New.
  15548. (truncdfhf2): New.
  15549. (extendhfdf2): New.
  15550. (movhf): New.
  15551. (*arm32_movhf): New.
  15552. (*thumb1_movhf): New.
  15553. (consttable_2): Add check for HFmode constants.
  15554. (consttable_4): Handle HFmode constants.
  15555. 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
  15556. * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
  15557. 2009-06-17 Olivier Hainque <hainque@adacore.com>
  15558. * collect2.c (main): Use CONST_CAST2 to perform char ** to
  15559. const char ** conversion in AIX specific section.
  15560. 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
  15561. * config/i386/i386.c (ix86_special_builtin_type): Remove
  15562. UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
  15563. (bdesc_special_args): Updated.
  15564. (ix86_init_mmx_sse_builtins): Likewise.
  15565. (ix86_expand_special_args_builtin): Likewise.
  15566. 2009-06-17 Richard Henderson <rth@redhat.com>
  15567. * tree-pretty-print.c (maybe_dump_asm_name): New.
  15568. (dump_decl_name): Use it.
  15569. (PRINT_FUNCTION_NAME): Merge into...
  15570. (dump_function_name): ... here. Use maybe_dump_asm_name.
  15571. 2009-06-17 Cary Coutant <ccoutant@google.com>
  15572. * dbxout.c (dbxout_source_line): Add is_stmt parameter.
  15573. Change caller.
  15574. * debug.c (struct gcc_debug_hooks): Change placeholder for
  15575. source_line hook.
  15576. (debug_nothing_int_charstar_int): Replaced by...
  15577. (debug_nothing_int_charstar_int_bool): ...this.
  15578. * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
  15579. source_line prototype.
  15580. (debug_nothing_int_charstar_int): Replaced by...
  15581. (debug_nothing_int_charstar_int_bool): ...this.
  15582. * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
  15583. * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
  15584. Output is_stmt operand when necessary.
  15585. * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
  15586. (notice_source_line): Add is_stmt parameter.
  15587. * sdbout.c (sdbout_source_line): Add is_stmt parameter.
  15588. * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
  15589. Change callers.
  15590. * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
  15591. * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
  15592. 2009-06-17 Ian Lance Taylor <iant@google.com>
  15593. * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
  15594. Change all uses.
  15595. (struct store_by_pieces_d): Rename from store_by_pieces. Change
  15596. call uses.
  15597. 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
  15598. * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
  15599. STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
  15600. tree_strip_sign_nop_conversions and
  15601. tree_ssa_strip_useless_type_conversions rather than stripping
  15602. the operations here.
  15603. (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
  15604. Declare them.
  15605. * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
  15606. * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
  15607. * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
  15608. tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
  15609. functions.
  15610. 2009-06-17 Michael Eager <eager@eagercon.com>
  15611. * config/rs6000/constraints.md (register_constraint "d"): New.
  15612. * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
  15613. truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
  15614. *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
  15615. *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
  15616. trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
  15617. divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
  15618. fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
  15619. * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
  15620. __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
  15621. __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
  15622. __fctiwz): Same.
  15623. * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
  15624. *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
  15625. *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
  15626. *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
  15627. *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
  15628. fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
  15629. stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
  15630. *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
  15631. *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
  15632. trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
  15633. *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
  15634. *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
  15635. *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
  15636. * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
  15637. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15638. * profile.c (total_num_never_executed): Don't define.
  15639. (compute_branch_probabilities): Don't count or print
  15640. num_never_executed.
  15641. (init_branch_prob): Don't set total_num_never_executed.
  15642. (end_branch_prob): Don't print total_num_never_executed.
  15643. 2009-06-17 David Daney <ddaney@caviumnetworks.com>
  15644. * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
  15645. 2009-06-17 David Edelsohn <edelsohn@gnu.org>
  15646. * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
  15647. (nabstd2_fpr): Same.
  15648. 2009-06-17 Steve Ellcey <sje@cup.hp.com>
  15649. * expr.c (expand_assignment): Change complex type check.
  15650. 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
  15651. * doc/plugins.texi (Building GCC plugins): Added new section.
  15652. 2009-06-17 Ian Lance Taylor <iant@google.com>
  15653. * c-pch.c (get_ident): Don't set size of templ array.
  15654. (pch_init): Don't set size of partial_pch array.
  15655. * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
  15656. string constant to intialize an array whose size is the length of
  15657. the string.
  15658. 2009-06-17 Richard Guenther <rguenther@suse.de>
  15659. PR tree-optimization/40389
  15660. * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
  15661. to addressable types.
  15662. * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
  15663. 2009-06-17 Richard Guenther <rguenther@suse.de>
  15664. PR middle-end/40460
  15665. * tree-chrec.h (build_polynomial_chrec): If we cannot determine
  15666. if there is no evolution of left in the loop bail out.
  15667. * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
  15668. chrec_fold_multiply.
  15669. 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
  15670. Janis Johnson <janis187@us.ibm.com>
  15671. PR target/39254
  15672. * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
  15673. for the symbol ref of a constant that is the source of a move
  15674. - nor for any other not-obvious-label-ref constants.
  15675. 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
  15676. * plugin.c (position_pass): Skip newly inserted pass during list
  15677. traversal to avoid repeated insertion.
  15678. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15679. * vec.h (VEC_stack_alloc): Define different version if
  15680. GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
  15681. (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
  15682. (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
  15683. (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
  15684. 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
  15685. * config.gcc (extra_headers): Add ia32intrin.h for x86.
  15686. * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
  15687. IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
  15688. IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
  15689. IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
  15690. (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
  15691. UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
  15692. INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
  15693. (bdesc_special_args): Add __builtin_ia32_rdtsc and
  15694. __builtin_ia32_rdtscp.
  15695. (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
  15696. __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
  15697. and __builtin_ia32_rorhi.
  15698. (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
  15699. UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
  15700. INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
  15701. (ix86_expand_args_builtin): Likewise.
  15702. (ix86_expand_special_args_builtin): Likewise.
  15703. * config/i386/i386.md (UNSPECV_RDTSCP): New.
  15704. (UNSPECV_RDTSC): Likewise.
  15705. (UNSPECV_RDPMC): Likewise.
  15706. (*bsr): Renamed to ...
  15707. (bsr): This
  15708. (*bsr_rex64): Renamed to ...
  15709. (bsr_rex64): This.
  15710. (rdpmc): New.
  15711. (*rdpmc): Likewise.
  15712. (*rdpmc_rex64): Likewise.
  15713. (rdtsc): Likewise.
  15714. (*rdtsc): Likewise.
  15715. (*rdtsc_rex64): Likewise.
  15716. (rdtscp): Likewise.
  15717. (*rdtscp): Likewise.
  15718. (*rdtscp_rex64): Likewise.
  15719. * config/i386/ia32intrin.h: New.
  15720. * config/i386/x86intrin.h: Include <ia32intrin.h>.
  15721. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15722. * ira-build.c (copy_info_to_removed_store_destinations):
  15723. Initialize parent_a.
  15724. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15725. * c-decl.c (grokdeclarator): Change size_varies to bool.
  15726. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15727. * sel-sched.c: Make forward declarations of move_op_hooks and
  15728. fur_hooks explicitly extern.
  15729. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15730. * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
  15731. * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
  15732. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15733. * resource.c (mark_referenced_resources): Change
  15734. include_delayed_effects parameter to bool. Change all callers.
  15735. (mark_end_of_function_resources): Likewise.
  15736. * reorg.c (insn_references_resource_p): Likewise.
  15737. (insn_sets_resource_p): Likewise.
  15738. * resource.h (mark_referenced_resources): Update declaration.
  15739. (mark_end_of_function_resources): Update declaration.
  15740. 2009-06-16 David Edelsohn <edelsohn@gnu.org>
  15741. * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
  15742. 2009-06-16 David Edelsohn <edelsohn@gnu.org>
  15743. * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
  15744. GCC can bootstrap on AIX with GNU Binutils 2.20.
  15745. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15746. * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
  15747. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15748. * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
  15749. inline, not extern inline.
  15750. (exact_log2): Likewise.
  15751. * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
  15752. test CLZ_HWI.
  15753. (exact_log2): Likewise, but don't test CTZ_HWI.
  15754. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15755. * bitmap.c (bitmap_clear): Don't declare as inline.
  15756. * gimple.c (gimplify_assign): Likewise.
  15757. * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
  15758. * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
  15759. (sched_scan_info): Remove duplicate definition.
  15760. 2009-06-16 Ian Lance Taylor <iant@google.com>
  15761. * c-common.c (skip_evaluation): Don't define.
  15762. (c_inhibit_evaluation_warnings): Define global variable.
  15763. (overflow_warning): Check c_inhibit_evaluation_warnings rather
  15764. than skip_evaluation.
  15765. (convert_and_check, warn_for_div_by_zero): Likewise.
  15766. * c-common.h (skip_evaluation): Don't declare.
  15767. (c_inhibit_evaluation_warnings): Declare.
  15768. * c-parser.c (c_parser_typeof_specifier): Set
  15769. c_inhibit_evaluation_warnings rather than skip_evaluation.
  15770. (c_parser_conditional_expression): Likewise.
  15771. (c_parser_binary_expression): Likewise.
  15772. (c_parser_sizeof_expression): Likewise.
  15773. (c_parser_alignof_expression): Likewise.
  15774. * c-typeck.c (build_indirect_ref): Check
  15775. c_inhibit_evaluation_warnings rather than skip_evaluation.
  15776. (build_conditional_expr, build_binary_op): Likewise.
  15777. 2009-06-16 Richard Guenther <rguenther@suse.de>
  15778. * tree-ssa-alias.c (is_escape_site): Remove.
  15779. * tree-ssa-alias.h (enum escape_type): Remove.
  15780. (is_escape_site): Likewise.
  15781. * tree-ssa-structalias.c (find_func_aliases): Handle escapes
  15782. via casts and asms without deferring to is_escape_site.
  15783. 2009-06-16 Jakub Jelinek <jakub@redhat.com>
  15784. PR middle-end/40446
  15785. * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
  15786. use gen_lowpart if op0 has complex mode.
  15787. 2009-06-16 Richard Guenther <rguenther@suse.de>
  15788. * tree-ssa-structalias.c (do_ds_constraint): Stores in global
  15789. variables add them to ESCAPED.
  15790. (find_func_aliases): Do not make all indirectly stored values escaped.
  15791. 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
  15792. * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
  15793. make_decl_one_only.
  15794. 2009-06-16 Martin Jambor <mjambor@suse.cz>
  15795. PR tree-optimization/40432
  15796. * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
  15797. check whether we need to force gimple register operand.
  15798. 2009-06-16 Martin Jambor <mjambor@suse.cz>
  15799. PR tree-optimization/40413
  15800. * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
  15801. build_ref_for_offset.
  15802. (propagate_subacesses_accross_link): Fix a typo in a comment.
  15803. 2009-06-16 Ira Rosen <irar@il.ibm.com>
  15804. * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
  15805. with additional parameter.
  15806. * tree-vectorizer.h (enum vect_def_type): Add new value
  15807. vect_nested_cycle.
  15808. (enum vect_relevant): Add comments.
  15809. (vect_is_simple_reduction): Add new argument.
  15810. * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
  15811. Detect nested cycles.
  15812. (vect_is_simple_reduction): Update documentation, add an argument to
  15813. distinguish inner-loop reduction from nested cycle, detect nested
  15814. cycles, fix printings and indentation, don't swap operands in case
  15815. of nested cycle.
  15816. (get_initial_def_for_reduction): Handle subtraction.
  15817. (vect_create_epilog_for_reduction): Add new argument to specify
  15818. reduction variable.
  15819. (vect_finalize_reduction): Handle subtraction, fix comments.
  15820. (vectorizable_reduction): Handle nested cycles. In case of nested
  15821. cycle keep track of the reduction variable position. Call
  15822. vect_is_simple_reduction with additional parameter. Use original
  15823. statement code in reduction epilogue for nested cycle. Call
  15824. vect_create_epilog_for_reduction with additional parameter.
  15825. * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
  15826. inner-loop vectorization.
  15827. (vect_recog_widen_sum_pattern): Likewise.
  15828. * tree-vect-stmts.c (process_use): Distinguish between nested cycles
  15829. and reductions.
  15830. (vect_mark_stmts_to_be_vectorized): Likewise.
  15831. (vect_get_vec_def_for_operand): Handle nested cycles.
  15832. 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  15833. * doc/invoke.texi (Debugging Options): Fix option index entries
  15834. for -fdump-statistics, -frandom-seed add entries for
  15835. -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
  15836. (FRV Options): Fix entries for -mTLS, -mtls.
  15837. (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
  15838. (i386 and x86-64 Options): Fix entry for -mno-red-zone.
  15839. (M68hc1x Options): Fix @itemx for -mnominmax.
  15840. (MCore Options): Fix entry for -mno-lsim.
  15841. (MMIX Options): Fix entry for -mabi=mmixware.
  15842. (PDP-11 Options): Fix entry for -mbcopy-builtin.
  15843. 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
  15844. * doc/plugins.texi (Interacting with the GCC Garbage Collector):
  15845. Mention the plugin mode of gengtype.
  15846. * doc/gty.texi (Source Files Containing Type Information): Likewise.
  15847. * gengtype.c: Updated copyright.
  15848. (plugin_files, nb_plugin_files) Added new static variables.
  15849. (measure_input_list) Care about plugin_files.
  15850. (write_rtx_next): Added early return in plugin mode.
  15851. (create_file): Updated copyright year in generated file. Added
  15852. asserts.
  15853. (oprintf): Added early return if NULL outf.
  15854. (get_output_file_with_visibility): Care of plugin_files.
  15855. (get_output_file_name): May return null.
  15856. (write_local): Added early return.
  15857. (put_mangled_filename): Ditto.
  15858. (finish_root_table): Added check for base_files.
  15859. (write_roots): Care about null when plugins.
  15860. (main): Added plugin mode.
  15861. 2009-06-15 Ian Lance Taylor <iant@google.com>
  15862. * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
  15863. * gcov.c (read_count_file): Add braces around variables declared
  15864. before label.
  15865. * c.opt (Wjump-misses-init): New warning.
  15866. * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
  15867. -Wall and -Wc++-compat if not already set.
  15868. (c_common_post_options): Clear warn_jump_misses_init if it was not
  15869. set.
  15870. * c-decl.c (struct c_binding): Change type field to a union with
  15871. new label field. Make it the first field in the struct. Update
  15872. references to type to use u.type instead.
  15873. (struct c_spot_bindings): Define.
  15874. (struct c_goto_bindings): Define.
  15875. (c_goto_bindings_p): Define, along with VECs.
  15876. (struct c_label_vars): Define.
  15877. (struct c_scope): Add has_label_bindings field.
  15878. (bind_label, set_spot_bindings): New static functions.
  15879. (decl_jump_unsafe, update_spot_bindings): New static functions.
  15880. (update_label_decls): New static function.
  15881. (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
  15882. Update binding u.label field to shadowed field.
  15883. (c_binding_start_stmt_expr): New function.
  15884. (c_binding_end_stmt_expr): New function.
  15885. (pushdecl): Don't call c_begin_vm_scope.
  15886. (make_label): Add defining and p_label_vars parameters. Change
  15887. all callers.
  15888. (lookup_label): Correct test for whether a label has not yet been
  15889. defined. Call bind_label rather than bind.
  15890. (warn_about_goto): New static function.
  15891. (lookup_label_for_goto): New function.
  15892. (declare_label): Call bind_label rather than bind.
  15893. (check_earlier_gotos): New static function.
  15894. (define_label): Don't give errors about jumping into statement
  15895. expressions or scopes of variably modified types. Call
  15896. set_spot_bindings and check_earlier_gotos. Call bind_label
  15897. instead of bind. Don't set label_context_stack_se or
  15898. label_context_stack_vm.
  15899. (c_get_switch_bindings): New function.
  15900. (c_release_switch_bindings): New function.
  15901. (c_check_switch_jump_warnings): New function.
  15902. (start_function): Don't set label_context_stack_se or
  15903. label_context_stack_vm.
  15904. (finish_function): Likewise.
  15905. * c-typeck.c (label_context_stack_se): Don't define.
  15906. (label_context_stack_vm): Don't define.
  15907. (c_finish_goto_label): Call lookup_label_for_goto rather than
  15908. lookup_label. Don't give errors about jumping into a statement
  15909. expression or the scope of a variably modified type. Don't set
  15910. label_context_stack_se or label_context_stack_vm.
  15911. (struct c_switch): Remove blocked_stmt_expr and blocked_vm
  15912. fields. Add bindings field.
  15913. (c_start_case): Don't set deleted fields. Set bindings field.
  15914. (do_case): Rework order of tests. Don't check blocked_stmt_expr
  15915. or blocked_vm. Call c_check_switch_jump_warnings.
  15916. (c_finish_case): Don't test blocked_stmt_expr field. Call
  15917. c_release_switch_bindings.
  15918. (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
  15919. c_switch_stack. Don't walk label_context_stack_se labels. Don't
  15920. set label_context_stack_se. Call c_bindings_start_stmt_expr.
  15921. (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
  15922. c_switch_stack. Don't walk label_context_stack_se labels. Don't
  15923. set label_context_stack_se. Call c_bindings_end_stmt_expr.
  15924. (c_begin_vm_scope, c_end_vm_scope): Don't define.
  15925. * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
  15926. (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
  15927. (C_DECL_UNJUMPABLE_VM): Don't define.
  15928. (C_DECL_UNDEFINABLE_VM): Don't define.
  15929. (struct c_label_list): Don't define.
  15930. (struct c_label_context_se): Don't define.
  15931. (struct c_label_context_vm): Don't define.
  15932. (struct c_spot_bindings): Declare.
  15933. (c_bindings_start_stmt_expr): Declare.
  15934. (c_bindings_end_stmt_expr): Declare.
  15935. (lookup_label_for_goto): Declare.
  15936. (c_get_switch_bindings, c_release_switch_bindings): Declare.
  15937. (c_check_switch_jump_warnings): Declare.
  15938. (label_context_stack_se, label_context_stack_vm): Don't declare.
  15939. (c_finish_goto_label): Update declaration.
  15940. (c_begin_vm_scope, c_end_vm_scope): Don't declare.
  15941. * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
  15942. (Warning Options): Document -Wjump-misses-init.
  15943. 2009-06-15 Jakub Jelinek <jakub@redhat.com>
  15944. * tree-object-size.c (addr_object_size): Fix a pasto in the last
  15945. change.
  15946. 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
  15947. * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
  15948. 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
  15949. * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
  15950. 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
  15951. * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
  15952. 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
  15953. * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
  15954. Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
  15955. * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
  15956. * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
  15957. * dwarf2asm.c (dw2_force_const_mem): Update call to
  15958. make_decl_one_only.
  15959. * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
  15960. (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
  15961. * langhooks.c (lhd_comdat_group): Remove.
  15962. * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
  15963. * tree.h (DECL_COMDAT_GROUP): New.
  15964. (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
  15965. (tree_decl_with_vis): Add comdat_group. Remove one_only.
  15966. (make_decl_one_only): Change signature.
  15967. * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
  15968. make_decl_one_only.
  15969. (make_decl_one_only): Change signature.
  15970. (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
  15971. 2009-06-15 Richard Guenther <rguenther@suse.de>
  15972. PR middle-end/40439
  15973. * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
  15974. 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  15975. * tree-ssa-math-opts.c: Remove extra divide.
  15976. 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  15977. * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
  15978. 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  15979. * passes.c: Add bswap pass.
  15980. * tree-pass.h: Add pass_optimize_bswap declaration.
  15981. * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
  15982. Include rtl.h, expr.h and optabs.h for optab_handler check.
  15983. (struct symbolic_number, pass_optimize_bswap): New definition.
  15984. (do_shift_rotate, verify_symbolic_number_p): New functions.
  15985. (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
  15986. (gate_optimize_bswap): New function.
  15987. * tree.c (widest_int_cst_value): New function.
  15988. * tree.h (widest_int_cst_value): Prototype added.
  15989. 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
  15990. * cfgcleanup.c (old_insns_match_p): Remove code to substitute
  15991. REG_EQUAL/REG_EQUIV notes.
  15992. 2009-06-14 Richard Guenther <rguenther@suse.de>
  15993. PR middle-end/40389
  15994. * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
  15995. has its address taken if NRV was applied and it is addressable.
  15996. * tree-ssa-structalias.c (get_constraint_for_address_of): New
  15997. function split out from ...
  15998. (get_constraint_for_1): ... here.
  15999. (handle_rhs_call): Use it to mark the return slot escaped if
  16000. it is addressable and NRV was applied.
  16001. 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
  16002. * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
  16003. Change first argument type to location_t.
  16004. * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
  16005. Do not set input_location.
  16006. Use loc instead of input_location throughout.
  16007. 2009-06-13 Richard Guenther <rguenther@suse.de>
  16008. PR tree-optimization/40421
  16009. * tree-predcom.c (should_unroll_loop_p): Remove.
  16010. (tree_predictive_commoning_loop): Use can_unroll_loop_p.
  16011. 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
  16012. * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
  16013. Add location argument.
  16014. 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
  16015. * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
  16016. build_decl.
  16017. * config/s390/s390.c (s390_build_builtin_va_list): Same.
  16018. (s390_gimplify_va_arg): Pass location to create_artificial_label.
  16019. * config/spu/spu-protos.h: Add location to
  16020. spu_resolve_overloaded_builtin.
  16021. * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
  16022. spu_build_builtin_va_list.
  16023. * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
  16024. argument. Pass location to build_function_call_vec.
  16025. * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
  16026. build_decl.
  16027. (emit_fpu_switch): Same.
  16028. (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
  16029. * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
  16030. to build_decl and create_artificial_label.
  16031. (xtensa_gimplify_va_arg_expr): Same.
  16032. * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
  16033. (xstormy16_gimplify_va_arg_expr): Same.
  16034. * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
  16035. * config/arm/arm.c (arm_build_builtin_va_list): Same.
  16036. * config/mips/mips.c (mips_build_builtin_va_list): Same.
  16037. (mips16_build_function_stub): Same.
  16038. (mips16_build_call_stub): Same.
  16039. 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
  16040. PR target/40327
  16041. * arm/constraints.md (Pa, Pb): New constraints.
  16042. * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
  16043. split pattern to deal with them.
  16044. 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
  16045. * doc/invoke.texi: Add missing option -Wp,OPTION in list,
  16046. fix index entry for -Xpreprocessor.
  16047. 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
  16048. * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
  16049. Add location argument to build_decl call.
  16050. * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
  16051. (rs6000_init_builtins): Same.
  16052. (spe_init_builtins): Same.
  16053. (rs6000_gimplify_va_arg): Add location argument to
  16054. create_artificial_label call.
  16055. 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
  16056. * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
  16057. * combine-stack-adj.c (pass_stack_adjustments): Use it.
  16058. * Makefile.in: Fix GGC dependency for gcse.o.
  16059. 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
  16060. * tree-pretty-print.c (dump_generic_node): Dump column numbers.
  16061. * gimple-pretty-print.c (dump_gimple_stmt): Same.
  16062. * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
  16063. created.
  16064. * c-parser.c (c_parser_binary_expression): Use current column while
  16065. building binary operations.
  16066. * common.opt (fshow-column): Enable by default.
  16067. * tree-vrp.c (check_array_ref): Use warning_at.
  16068. (check_array_bounds): Use location from call back if expr has no
  16069. location.
  16070. * tree.h: Add location argument to maybe_fold_*.
  16071. * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
  16072. (maybe_fold_offset_to_array_ref): Add location argument and use it.
  16073. (maybe_fold_offset_to_component_ref): Same.
  16074. (maybe_fold_offset_to_reference): Same.
  16075. (maybe_fold_offset_to_address): Same.
  16076. (maybe_fold_stmt_indirect): Same.
  16077. (maybe_fold_stmt_addition): Same.
  16078. (fold_stmt_r): Pass location to maybe_fold_*.
  16079. (fold_gimple_assign): Same.
  16080. * c-tree.h: Add location argument to finish_decl,
  16081. default_function_array_conversion, store_init_value.
  16082. * c-decl.c (define_label): Use error_at.
  16083. (c_make_fname_decl): Pass location to finish_decl.
  16084. (finish_decl): New location argument.
  16085. (build_compound_literal): Pass location to store_init_value.
  16086. (grokdeclarator): Pass location to finish_decl.
  16087. (grokfield): Same.
  16088. * c-typeck.c (array_to_pointer_conversion): New location argument.
  16089. (function_to_pointer_conversion): Same.
  16090. (default_function_array_conversion): Same.
  16091. (parser_build_unary_op): Pass location to overflow_warning.
  16092. (parser_build_binary_op): Same. Use warning_at.
  16093. (build_unary_op): Pass location to array_to_pointer_conversion.
  16094. (build_c_cast): Pass location to digest_init.
  16095. (build_modify_expr): New location argument.
  16096. (convert_for_assignment): Same.
  16097. (store_init_value): Same.
  16098. (digest_init): Same.
  16099. (output_init_element): Pass location to digest_init and
  16100. array_to_pointer_conversion.
  16101. (c_finish_return): Pass location to convert_for_assignment.
  16102. * gimplify.c (gimplify_conversion): Pass location to
  16103. maybe_fold_offset_to_address.
  16104. * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
  16105. to maybe_fold_stmt_addition.
  16106. * c-omp.c (c_finish_omp_atomic): Pass new location to
  16107. build_modify_expr.
  16108. (c_finish_omp_for): Same.
  16109. * c-common.c (overflow_warning): New argument.
  16110. * c-common.h: New argument to build_modify_expr, overflow_warning.
  16111. * c-parser.c (c_parser_declaration_or_fndef): Pass location to
  16112. finish_decl.
  16113. (c_parser_initializer): Pass location to
  16114. default_function_array_conversion.
  16115. (c_parser_initelt): Same.
  16116. (c_parser_initval): Same.
  16117. (c_parser_asm_operands): Same.
  16118. (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
  16119. (c_parser_conditional_expression): Same.
  16120. (c_parser_binary_expression): Add location info to stack. Use it.
  16121. (c_parser_unary_expression): Pass location to
  16122. default_function_array_conversion, parser_build_unary_op,
  16123. build_indirect_ref, c_parser_postfix_expression_after_primary.
  16124. (c_parser_postfix_expression_after_primary): New location argument.
  16125. Use it.
  16126. (c_parser_expression_conv): Pass location to
  16127. default_function_array_conversion.
  16128. (c_parser_expr_list): Same.
  16129. (c_parser_omp_atomic): Same.
  16130. (c_parser_omp_for_loop): Same.
  16131. * c-tree.h (struct c_declarator): Add comment to id_loc.
  16132. (build_array_declarator): New argument.
  16133. * c-decl.c (build_array_declarator): Add location argument.
  16134. (grokdeclarator): Set id_loc for cdk_array.
  16135. * c-parser.c (c_parser_direct_declarator_inner): Pass location to
  16136. build_array_declarator.
  16137. * tree.c (build_omp_clause): Add location argument.
  16138. * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
  16139. (OMP_CLAUSE_LOCATION): New macro.
  16140. (struct tree_omp_clause): Add location field.
  16141. (build_omp_clause): Add argument.
  16142. * cp/pt.c (tsubst_omp_for_iterator): Pass location to
  16143. build_omp_clause.
  16144. * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
  16145. (cp_parser_omp_clause_collapse): Same.
  16146. (cp_parser_omp_clause_default): Same.
  16147. (cp_parser_omp_clause_if): Same.
  16148. (cp_parser_omp_clause_nowait): Same.
  16149. (cp_parser_omp_clause_num_threads): Same.
  16150. (cp_parser_omp_clause_ordered): Same.
  16151. (cp_parser_omp_clause_schedule): Same.
  16152. (cp_parser_omp_clause_untied): Same.
  16153. (cp_parser_omp_for_loop): Same.
  16154. (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
  16155. * c-tree.h (c_start_case): Add location argument.
  16156. (c_process_expr_stmt): Same.
  16157. (c_finish_goto_*): Same.
  16158. * tree-parloops.c (initialize_reductions): Pass location to
  16159. build_omp_clause.
  16160. (create_parallel_loop): Same.
  16161. * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
  16162. (gfc_trans_omp_reduction_list): Same.
  16163. (gfc_trans_omp_clauses): Same.
  16164. (gfc_trans_omp_do): Same.
  16165. * c-typeck.c (c_finish_goto_label): Same.
  16166. (c_finish_goto_ptr): New location argument.
  16167. (c_start_case): Same.
  16168. (emit_side_effect_warnings): Same.
  16169. (c_process_expr_stmt): Same.
  16170. (c_finish_stmt_expr): Same.
  16171. (c_finish_omp_clauses): Use error_at instead of error.
  16172. * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
  16173. build_omp_clause.
  16174. * c-omp.c (c_split_parallel_clauses): New location argument.
  16175. * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
  16176. to build_omp_clause.
  16177. (convert_local_reference_stmt): Same.
  16178. (convert_gimple_call): Same.
  16179. * c-common.h (c_split_parallel_clauses): New argument.
  16180. * c-parser.c (c_parser_statement_after_labels): Pass location to
  16181. c_finish_goto_label.
  16182. (c_parser_switch_statement): Pass location to c_start_case.
  16183. (c_parser_for_statement): Pass location to c_finish_expr_stmt,
  16184. and c_process_expr_stmt.
  16185. (c_parser_omp_variable_list): Add location argument.
  16186. (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
  16187. (c_parser_omp_clause_default): Same.
  16188. (c_parser_omp_clause_if): Same.
  16189. (c_parser_omp_clause_num_threads): Same.
  16190. (-c_parser_omp_clause_ordered): Same.
  16191. (c_parser_omp_clause_reduction): Pass location to
  16192. c_parser_omp_variable_list.
  16193. (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
  16194. (c_parser_omp_clause_untied): Same.
  16195. (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
  16196. (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
  16197. * c-tree.h (check_for_loop_decls, undeclared_variable,
  16198. build_component_ref, build_array_ref, build_external_ref,
  16199. c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
  16200. build_conditional_expr, build_compound_expr, c_cast_expr,
  16201. build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
  16202. c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
  16203. argument.
  16204. * c-semantics.c (build_stmt): Same.
  16205. (build_case_label): Same.
  16206. * c-decl.c (c_finish_incomplete_decl): Pass location on down.
  16207. (undeclared_variable): New argument.
  16208. (make_label): Same.
  16209. (lookup_label): Pass location on down.
  16210. (define_label): Same.
  16211. (finish_decl): Same.
  16212. (build_compound_literal): Same.
  16213. (finish_struct): Same.
  16214. (finish_function): Do not set location here.
  16215. (check_for_loop_decls): New argument.
  16216. * tree.c (save_expr): Set location.
  16217. (build_empty_stmt): New argument.
  16218. * tree.h (build_empty_stmt): New argument to build_empty_stmt.
  16219. (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
  16220. * builtins.c (gimplify_va_arg_expr): Use locations.
  16221. (expand_builtin_sync_operation): Same.
  16222. * c-typeck.c (build_component_ref): New argument.
  16223. (build_array_ref): Same.
  16224. (build_external_ref): Same.
  16225. (c_expr_sizeof_expr): Same.
  16226. (c_expr_sizeof_type): Same.
  16227. (parser_build_unary_op): Same.
  16228. (build_conditional_expr): Same.
  16229. (build_compound_expr): Pass location on down.
  16230. (build_compound_expr): New argument.
  16231. (build_c_cast): Same.
  16232. (c_cast_expr): Same.
  16233. (build_asm_expr): Same.
  16234. (c_finish_return): Same.
  16235. (c_process_expr_stmt): Pass location on down.
  16236. (c_finish_stmt_expr): New argument.
  16237. (push_clenaup): Same.
  16238. (c_finish_omp_parallel): Same.
  16239. (c_finish_omp_task): Same.
  16240. * gimplify.c (gimplify_call_expr): Pass location on down.
  16241. * c-omp.c (c_finish_omp_master): New argument.
  16242. (c_finish_omp_critical): Same.
  16243. (c_finish_omp_ordered): Same.
  16244. (c_finish_omp_barrier): Same.
  16245. (-c_finish_omp_taskwait): Same.
  16246. (c_finish_omp_atomic): Same.
  16247. (c_finish_omp_flush): Same.
  16248. * tree-inline.c (copy_tree_body_r): Pass location on down.
  16249. (inline_forbidden_p): Remove use of input_location.
  16250. * c-gimplify.c (c_build_bind_expr): New argument.
  16251. * c-common.c (c_common_truthvalue_conversion): Pass location on down.
  16252. (c_sizeof_or_alignof_type): New argument.
  16253. (c_alignof_expr): Same.
  16254. (build_va_arg): Same.
  16255. (c_add_case_label): Same.
  16256. * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
  16257. c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
  16258. c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
  16259. c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
  16260. c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
  16261. c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
  16262. New argument.
  16263. * stub-objc.c (objc_build_selector_expr): Same.
  16264. (objc_build_throw_stmt): Same.
  16265. * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
  16266. (c_parser_initelt): Same.
  16267. (c_parser_compound_statement): Same.
  16268. (c_parser_compound_statement_nostart): Same.
  16269. (c_parser_label): Same.
  16270. (c_parser_statement_after_labels): Same.
  16271. (c_parser_if_body): Same.
  16272. (c_parser_else_body): Same.
  16273. (c_parser_if_statement): Same.
  16274. (c_parser_switch_statement): Same.
  16275. (c_parser_while_statement): Same.
  16276. (c_parser_do_statement): Same.
  16277. (c_parser_for_statement): Same.
  16278. (c_parser_asm_statement): Same.
  16279. (c_parser_conditional_expression): Same.
  16280. (c_parser_binary_expression): Same.
  16281. (c_parser_cast_expression): Same.
  16282. (c_parser_unary_expression): Same.
  16283. (c_parser_sizeof_expression): Same.
  16284. (c_parser_alignof_expression): Same.
  16285. (c_parser_postfix_expression): Same.
  16286. (c_parser_expression): Same.
  16287. (c_parser_objc_receiver): Same.
  16288. (c_parser_omp_variable_list): Same.
  16289. (c_parser_omp_structured_block): Same.
  16290. (c_parser_omp_atomic): New argument.
  16291. (c_parser_omp_barrier): Same.
  16292. (c_parser_omp_critical): Same.
  16293. (c_parser_omp_flush): Pass location on down.
  16294. (c_parser_omp_for_loop): New argument.
  16295. (c_parser_omp_for): Same.
  16296. (c_parser_omp_master): Same.
  16297. (c_parser_omp_ordered): Same.
  16298. (c_parser_omp_sections_scope): Same.
  16299. (c_parser_omp_sections): Same.
  16300. (c_parser_omp_parallel): Same.
  16301. (c_parser_omp_single): Same.
  16302. (c_parser_omp_task): Same.
  16303. (c_parser_omp_taskwait): Pass location on down.
  16304. (c_parser_omp_construct): Same.
  16305. (c_parser_omp_threadprivate): Same.
  16306. * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
  16307. builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
  16308. tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
  16309. c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
  16310. c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
  16311. emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
  16312. rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
  16313. tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
  16314. config/i386/i386.c, stmt.c:
  16315. Add location argument to the following function definitions and/or
  16316. function calls: build_decl, objcp_start_struct, objcp_finish_struct,
  16317. start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
  16318. cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
  16319. build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
  16320. do_case, c_finish_bc_stmt, build_compound_literal,
  16321. build_function_call.
  16322. * c-decl.c (build_compound_literal): Add location argument.
  16323. Make all diagnostic calls use location.
  16324. (start_struct): Same.
  16325. (finish_struct): Same.
  16326. (start_enum): Same.
  16327. (build_enumerator): Same.
  16328. (start_function): Same.
  16329. (grokdeclarator): Make all diagnostic calls use location.
  16330. (store_parm_decls_oldstyle): Same.
  16331. * c-typeck.c (build_function_call): Add location argument.
  16332. Make all diagnostic calls use location.
  16333. (do_case): Same.
  16334. (c_finish_bc_stmt): Same.
  16335. * tree-nested.c (get_trampoline_type): Add argument.
  16336. Pass location to build_decl.
  16337. (lookup_tramp_for_decl): Pass location to get_trampoline_type.
  16338. * rtl.h (RTL_LOCATION): New.
  16339. * c-common.c (c_add_case_label): Add location argument.
  16340. Make all diagnostic calls use location.
  16341. * c-common.h: Add location argument to make_fname_decl, do_case,
  16342. c_add_case_label, build_function_call, resolve_overloaded_builtin.
  16343. * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
  16344. Set it appropriately for every case. Pass enum_loc to start_enum
  16345. call. Pass value_loc first to build_enumerator. Pass enum_loc to
  16346. parser_xref_tag.
  16347. (c_parser_struct_or_union_specifier): Save location. Use it for
  16348. start_struct, finish_struct, and parser_xref_tag.
  16349. 2009-06-12 Ian Lance Taylor <iant@google.com>
  16350. * fold-const.c (fold_unary): Rename local variable and to and_expr.
  16351. * c-opts.c (c_common_handle_option): For -Wc++-compat set
  16352. cpp_opts->warn_cxx_operator_names.
  16353. 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
  16354. PR tree-opt/38865
  16355. * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
  16356. is returns NULL and OP is a VCE, look through the VCE.
  16357. 2009-06-12 Ian Lance Taylor <iant@google.com>
  16358. PR bootstrap/40430
  16359. * collect2.c (main): Use CONST_CAST2 in code inside #if
  16360. LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
  16361. 2009-06-12 Joey Ye <joey.ye@intel.com>
  16362. PR middle-end/39146
  16363. * cfgexpand.c (get_decl_align_unit): Update
  16364. max_used_stack_slot_alignment with align instead of
  16365. stack_alignment_needed.
  16366. * function.c (assign_stack_local_1): Update
  16367. max_used_stack_slot_alignment with alignment_in_bits instead
  16368. of stack_alignment_needed.
  16369. (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
  16370. here.
  16371. 2009-06-12 Jakub Jelinek <jakub@redhat.com>
  16372. * dwarf2out.c (last_var_location_insn): New variable.
  16373. (dwarf2out_end_epilogue): Clear last_var_location_insn.
  16374. (dwarf2out_var_location): Don't record anything after last real
  16375. insn. Only change labels if there were any real instructions
  16376. in between last note and this one, or if changed sections.
  16377. 2009-06-11 Richard Henderson <rth@redhat.com>
  16378. * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
  16379. note when storing the frame pointer in a register.
  16380. (FRP): Don't redefine to nothing for epilogue.
  16381. (alpha_expand_epilogue): Mark register and sp restores.
  16382. (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
  16383. * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
  16384. when gen_lowpart is needed.
  16385. 2009-06-11 Richard Henderson <rth@redhat.com>
  16386. * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
  16387. * dwarf2out.c (need_data_align_sf_opcode): New.
  16388. (div_data_align): Move earlier.
  16389. (def_cfa_1, reg_save): Use it.
  16390. 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
  16391. * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
  16392. (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
  16393. (ix86_handle_option): Handle OPT_mcrc32.
  16394. (ix86_target_string): Add -mcrc32.
  16395. (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
  16396. * config/i386/i386.h (TARGET_CRC32): New.
  16397. * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
  16398. (sse4_2_crc32di): Likewise.
  16399. * config/i386/i386.opt (mcrc32): New.
  16400. * doc/invoke.texi: Document -mcrc32.
  16401. 2009-06-11 Richard Henderson <rth@redhat.com>
  16402. * common.opt (gdwarf-): Accept a version number.
  16403. * doc/invoke.texi (gdwarf-): Update docs.
  16404. * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
  16405. * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
  16406. version level, and record it.
  16407. * dwarf2.h (DW_CIE_VERSION): Remove.
  16408. * dwarf2out.c (DWARF_VERSION): Remove.
  16409. (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
  16410. (output_call_frame_info): Use CIE version 3 for dwarf3,
  16411. or if the return register column is out of range for version 1.
  16412. (dwarf_stack_op_name): Add all dwarf3 values.
  16413. (DEBUG_PUBTYPES_SECTION): New.
  16414. (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
  16415. encoding change for dwarf3.
  16416. (output_die) [dw_val_class_die_ref]: Likewise.
  16417. (output_compilation_unit_header): Emit correct version for dwarf3.
  16418. (output_line_info): Likewise.
  16419. (output_pubnames): Update for DWARF_VERSION removal.
  16420. (output_aranges): Likewise.
  16421. (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
  16422. (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
  16423. (dwarf2out_finish): Likewise.
  16424. 2009-06-11 David Daney <ddaney@caviumnetworks.com>
  16425. * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
  16426. in r148403.
  16427. 2009-06-11 David Daney <ddaney@caviumnetworks.com>
  16428. PR c/39252
  16429. * doc/extend.texi ( __builtin_unreachable): Document new builtin.
  16430. * builtins.c (expand_builtin_unreachable): New function.
  16431. (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
  16432. * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
  16433. * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
  16434. successors.
  16435. * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
  16436. searching for missing barriers.
  16437. 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  16438. * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
  16439. when -fprofile-generate* was passed.
  16440. * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
  16441. 2009-06-11 Anthony Green <green@moxielogic.com>
  16442. * config/moxie/moxie.md: Define length attribute for all instructions.
  16443. (rCC): Define.
  16444. (*b<cond:code>): Support limited branch ranges for new PC-relative
  16445. branch instructions.
  16446. * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
  16447. 2009-06-11 Jakub Jelinek <jakub@redhat.com>
  16448. * config/i386/i386.c (min_insn_size): Use get_attr_length
  16449. for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
  16450. For __asm return 0.
  16451. * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
  16452. instead of emit_insn_before.
  16453. 2009-06-10 Ian Lance Taylor <iant@google.com>
  16454. PR bootstrap/40408
  16455. * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
  16456. GIMPLE_SWITCH.
  16457. 2009-06-10 Revital Eres <eres@il.ibm.com>
  16458. * passes.c (init_optimization_passes): Reschedule
  16459. predictive-commoning pass before complete unroll pass.
  16460. 2009-06-10 Martin Jambor <mjambor@suse.cz>
  16461. * cgraph.c (cgraph_node_can_be_local_p): New function.
  16462. (cgraph_make_node_local): New function.
  16463. * cgraph.h (cgraph_node_can_be_local_p): Declare.
  16464. (cgraph_make_node_local): Declare.
  16465. 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
  16466. * tree.h (tree_base): Add packed_flag and user_align fields.
  16467. Decrease size of spare field.
  16468. (TYPE_USER_ALIGN): Use user_align from tree_base.
  16469. (DECL_USER_ALIGN): Likewise.
  16470. (TYPE_PACKED): Use packed_flag from tree_base.
  16471. (DECL_PACKED): Likewise.
  16472. (tree_type): Delete packed_flag and user_align fields. Widen
  16473. precision field. Widen mode field and shuffle fields to align
  16474. mode on an 8-bit boundary.
  16475. (tree_decl_common): Delete decl_flag_1 and user_align fields.
  16476. Renumber decl_flag_* fields. Fix comments. Widen
  16477. decl_common_unused field.
  16478. (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
  16479. (DECL_EXTERNAL): Likewise.
  16480. (DECL_BIT_FIELD): Likewise.
  16481. (DECL_NONADDRESSABLE_P): Likewise.
  16482. (TYPE_DECL_SUPRESS_DEBUG): Likewise.
  16483. * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
  16484. 2009-06-10 Ian Lance Taylor <iant@google.com>
  16485. * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
  16486. (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
  16487. (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
  16488. (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
  16489. (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
  16490. DEF_VEC_ALLOC_FUNC_P.
  16491. (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
  16492. (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
  16493. DEF_VEC_ALLOC_FUNC_O.
  16494. (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
  16495. (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
  16496. DEF_VEC_ALLOC_FUNC_I.
  16497. (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
  16498. (vec_stack_p_reserve_exact_1): Declare.
  16499. (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
  16500. (vec_stack_free): Declare.
  16501. (VEC_stack_alloc): Define.
  16502. (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
  16503. (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
  16504. (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
  16505. * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
  16506. for void_p.
  16507. (stack_vecs): New static variable.
  16508. (vec_stack_p_reserve_exact_1): New function.
  16509. (vec_stack_o_reserve_1): New static function.
  16510. (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
  16511. (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
  16512. (vec_stack_free): New function.
  16513. * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
  16514. (VEC_df_ref_stack_alloc): Define.
  16515. (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
  16516. DEF_VEC_ALLOC_P_STACK.
  16517. (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
  16518. (struct df_collection_rec): Change _vec fields to VEC. Remove
  16519. _use fields.
  16520. (df_free_collection_rec): Adjust for new fields.
  16521. (df_insn_rescan): Use new df_collection_rec fields.
  16522. (df_notes_rescan, df_canonize_collection_rec): Likewise.
  16523. (df_ref_create_structure, df_ref_record): Likewise.
  16524. (df_get_conditional_uses, df_get_call_refs): Likewise.
  16525. (df_insn_refs_collect, df_bb_refs_collect): Likewise.
  16526. (df_bb_refs_record, df_record_entry_block_defs): Likewise.
  16527. (df_record_exit_block_uses, df_bb_verify): Likewise.
  16528. (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
  16529. (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
  16530. Remove count parameter. Change return type to void. Change all
  16531. callers.
  16532. (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
  16533. Remove count parameter. Change return type to void. Change all
  16534. callers.
  16535. (df_install_refs): Change old_vec parameter to VEC. Remove count
  16536. parameter. Change all callers.
  16537. (df_install_mws): Change old_vec parameter to VEC. Remove count
  16538. parameter. Change all callers.
  16539. (df_refs_verify): Change new_rec parameter to VEC. Change call
  16540. callers.
  16541. (df_mws_verify): Likewise.
  16542. 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
  16543. * gcc.c (compare_files): Cast munmap argumento to caddr_t.
  16544. 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
  16545. * doc/extend.texi: Add description for __builtin_ia32_crc32di.
  16546. 2009-06-10 Anthony Green <green@moxielogic.com>
  16547. * config/moxie/crti.asm: New file.
  16548. * config/moxie/crtn.asm: New file.
  16549. * config/moxie/moxie.c: New file.
  16550. * config/moxie/moxie.h: New file.
  16551. * config/moxie/sfp-machine.h: New file.
  16552. * config/moxie/moxie-protos.h: New file.
  16553. * config/moxie/t-moxie: Created.
  16554. * config/moxie/t-moxie-softfp: Created.
  16555. * config/moxie/moxie.md: Created.
  16556. * config/moxie/constraints.md: Created.
  16557. * config.gcc: Add moxie support.
  16558. * doc/md.texi (Machine Constraints): Add moxie constraints.
  16559. * doc/contrib.texi (Contributors): Mention moxie port.
  16560. * doc/install.texi (Specific): Mention the moxie port.
  16561. 2009-06-09 Ian Lance Taylor <iant@google.com>
  16562. * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
  16563. compiling with C++.
  16564. * optabs.c (optab_table): Only use designated initializers if
  16565. HAVE_DESIGNATED_INITIALIZERS is defined.
  16566. (convert_optab_table): Likewise.
  16567. (init_optabs): Always call init_insn_codes if
  16568. HAVE_DESIGNATED_INITIALIZERS is not defined.
  16569. 2009-06-09 Ian Lance Taylor <iant@google.com>
  16570. * targhooks.c (default_builtin_vectorized_function): Change fn
  16571. parameter to unsigned int.
  16572. (default_builtin_vectorized_conversion): Change code parameter to
  16573. unsigned int.
  16574. (default_builtin_reciprocal): Change fn parameter to unsigned int.
  16575. * targhooks.h: Update declarations.
  16576. * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
  16577. parameter to unsigned int.
  16578. * c-typeck.c (comptypes_check_enum_int): New static function.
  16579. (comptypes_internal): Add enum_and_int_p parameter. Change all
  16580. callers.
  16581. (comp_target_types): Add location parameter. Change all callers.
  16582. (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
  16583. Change all callers.
  16584. (function_types_compatible_p, type_lists_compatible_p): Likewise.
  16585. (build_conditional_expr): Add colon_loc parameter. Change all
  16586. callers.
  16587. (convert_for_assignment): Add location parameter. Change all callers.
  16588. * c-parser.c (c_parser_conditional_expression): Pass location of
  16589. colon to build_conditional_expr.
  16590. * c-tree.h (build_conditional_expr): Update declaration.
  16591. 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
  16592. * graphite.c: Revert previous patch.
  16593. 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
  16594. PR bootstrap/40103
  16595. * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
  16596. 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
  16597. * tree-ssa-loop-prefetch.c
  16598. (loop_prefetch_arrays): Fixed a portability problem in printf format
  16599. string.
  16600. 2009-06-09 Martin Jambor <mjambor@suse.cz>
  16601. PR tree-optimization/40351
  16602. * tree-sra.c (propagate_subacesses_accross_link): Check that a
  16603. refrence to a potential artifical subaccess can be constructed.
  16604. 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
  16605. * config/sh/sh-protos.h (sh_optimization_options): Declare.
  16606. (sh_override_options): Likewise.
  16607. * config/sh/sh.c: Include params.h.
  16608. (sh_optimization_options): New.
  16609. (sh_override_options): Likewise.
  16610. * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
  16611. (OVERRIDE_OPTIONS): Use sh_override_options.
  16612. 2009-06-08 Jakub Jelinek <jakub@redhat.com>
  16613. * dwarf2out.c (emit_cfa_remember): New variable.
  16614. (add_fde_cfi): If emit_cfa_remember, recurse to add
  16615. DW_CFA_remember_state first.
  16616. (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
  16617. instead just set emit_cfa_remember.
  16618. 2009-06-08 Jan Hubicka <jh@suse.cz>
  16619. PR debug/40126
  16620. * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
  16621. 2009-06-08 Jan Hubicka <jh@suse.cz>
  16622. PR middle-end/39834
  16623. * cgraphunit.c (save_inline_function_body): Do not copy transform
  16624. hooks for saved inline bodies.
  16625. * ipa-passes.c (do_per_function): Do not add the hoks multiple times
  16626. for given function.
  16627. 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
  16628. * jump.c (returnjump_p): Handle delayed branches. Add missing
  16629. function comment.
  16630. 2009-06-08 Jan Hubicka <jh@suse.cz>
  16631. PR middle-end/40102
  16632. * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
  16633. original node might've been modified.
  16634. * tree-inline.c (copy_bb): Do not assume that all clones are the same.
  16635. 2009-06-08 Jakub Jelinek <jakub@redhat.com>
  16636. * tree-object-size.c (addr_object_size): Add OSI argument.
  16637. Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
  16638. (compute_builtin_object_size, expr_object_size): Adjust callers.
  16639. (plus_stmt_object_size): Call addr_object_size instead of
  16640. compute_builtin_object_size.
  16641. 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
  16642. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  16643. * tree-ssa-loop-prefetch.c
  16644. (gather_memory_references): Introduced a counter for the number of
  16645. memory references.
  16646. (anything_to_prefetch_p): Introduced a counter for the number of
  16647. prefetches.
  16648. (is_loop_prefetching_profitable): New function with a cost model
  16649. for prefetching.
  16650. (loop_prefetch_arrays): Use the new cost model to determine if
  16651. prefetching is profitable.
  16652. * params.def (MIN_INSN_TO_PREFETCH_RATIO,
  16653. PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
  16654. * params.h (MIN_INSN_TO_PREFETCH_RATIO,
  16655. PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
  16656. * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
  16657. PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
  16658. 2009-06-08 Michael Matz <matz@suse.de>
  16659. PR debug/40012
  16660. * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
  16661. partitions use the same.
  16662. (expand_one_var): Deal with DECL_RTL sometimes begin set also
  16663. for basevars of SSA_NAMEs.
  16664. (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
  16665. to not expand them twice.
  16666. (gimple_expand_cfg): Clear DECL_RTL for those decls that have
  16667. multiple places.
  16668. 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
  16669. * common.opt (fcompare-debug=, fcompare-debug-second): New.
  16670. (fdump-final-insns=, gtoggle): New.
  16671. * doc/invoke.texi: Document them.
  16672. * final.c (rest_of_clean_state): Dump final insn stream.
  16673. * gcc.c (invoke_as): Hook in -fcompare-debug.
  16674. (static_spec_functions): Add compare-debug-dump-opt,
  16675. compare-debug-self-opt and compare-debug-auxbase-opt.
  16676. (compare_debug, compare_debug_second, compare_debug_opt): New.
  16677. (switches_debug_check, n_switches_debug_check): New.
  16678. (debug_auxbase_opt, debug_check_temp_file): New.
  16679. (process_command): Handle -fno-compare-debug, -fcompare-debug and
  16680. -fcompare-debug=*.
  16681. (do_self_spec): Handle arguments after switches.
  16682. (do_spec_1): Add .gk extension to temp file basenames for compare.
  16683. (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
  16684. (cc1_options): Use it instead of normal auxbase computation for
  16685. the second compare-debug compilation.
  16686. (compare_files): New.
  16687. (main): Set up and implement compare debug mode.
  16688. (compare_debug_dump_opt_spec_function): New.
  16689. (compare_debug_self_opt_spec_function): New.
  16690. (compare_debug_auxbase_opt_spec_function): New.
  16691. * toplev.c (process_options): Handle flag_gtoggle,
  16692. flag_dump_final_insns.
  16693. * coverage.c (coverage_begin_output): Don't overwrite .gcno file
  16694. during -fcompare-debug-second compilation.
  16695. 2009-06-07 Ian Lance Taylor <iant@google.com>
  16696. * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
  16697. * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
  16698. * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
  16699. with no default node. Change warning with %H to warning_at.
  16700. Don't clear warn_switch around case checking.
  16701. * doc/invoke.texi (Warning Options): Clarify distinction between
  16702. -Wswitch and -Wswitch-enum.
  16703. 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  16704. * tree-pass.h (TODO_update_ssa_any): Document internal use only.
  16705. 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  16706. * gbl-ctors.h: Add header guard.
  16707. 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  16708. * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
  16709. sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
  16710. vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
  16711. vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
  16712. prototypes for removed functions.
  16713. (expressions_equal_p): Move to ...
  16714. * tree-ssa-sccvn.h: ... here and ...
  16715. * matrix-reorg.c: ... adjust includes.
  16716. 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  16717. * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
  16718. 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  16719. * c-decl.c (finish_decl): Use bool for variable was_incomplete.
  16720. (finish_function): Remove erroneous whitespace.
  16721. 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  16722. * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
  16723. (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
  16724. 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  16725. * errors.c (internal_error): Commentary typo fix.
  16726. * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
  16727. * tree-ssa-pre.c: Ditto.
  16728. 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  16729. * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
  16730. them is supposed to hold actual statements.
  16731. 2009-06-06 Ian Lance Taylor <iant@google.com>
  16732. * doc/extend.texi (Attribute Syntax): Document that C++ labels on
  16733. empty statements can now have attributes.
  16734. 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
  16735. * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
  16736. * config/mips/mips.md: Ditto.
  16737. 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
  16738. * config/rs6000/eabi.asm (__eabi_convert): Don't define if
  16739. _RELOCATABLE.
  16740. (__eabi_uconvert): Likewise.
  16741. 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
  16742. * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
  16743. CFI_* definitions with IN_GCC.
  16744. 2009-06-05 David Edelsohn <edelsohn@gnu.org>
  16745. * xcoffout.h (xcoffout_source_line): Update prototype.
  16746. 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  16747. * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
  16748. mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
  16749. 2009-06-05 Jakub Jelinek <jakub@redhat.com>
  16750. PR middle-end/40340
  16751. * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
  16752. inlined_function_outer_scope_p blocks for artificial inlines
  16753. even at -g0/-g1.
  16754. * tree.c (tree_nonartificial_location): Rewrite using
  16755. block_nonartificial_location.
  16756. 2009-06-05 Revital Eres <eres@il.ibm.com>
  16757. Leehod Baruch <leehod@il.ibm.com>
  16758. * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
  16759. (expand_expr_real_1): Remove comment.
  16760. * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
  16761. Vectorize misaligned access when the target supports it.
  16762. (vect_supportable_dr_alignment): Check for unaligned access support.
  16763. * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
  16764. and remove asset.
  16765. 2009-06-05 Julian Brown <julian@codesourcery.com>
  16766. * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
  16767. * config/arm/ieee754-sf.S (cmpsf2): Likewise.
  16768. 2009-06-05 Richard Guenther <rguenther@suse.de>
  16769. PR bootstrap/40350
  16770. * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
  16771. as possibly unused.
  16772. 2009-06-05 Jakub Jelinek <jakub@redhat.com>
  16773. * config/s390/s390.c (global_not_special_regno_p): New static inline.
  16774. (save_gprs): Don't tell unwinder when a global register is saved.
  16775. (s390_emit_epilogue): Emit needed epilogue unwind info.
  16776. 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
  16777. * dwarf2out.c (deferred_asm_name): New.
  16778. (add_name_and_src_coords_attributes): Defer creation of
  16779. DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
  16780. computed yet.
  16781. (move_linkage_attr): New.
  16782. (dwarf2out_finish): Revisit deferrals and emit attributes at the
  16783. right place.
  16784. 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
  16785. * tree-nested.c (finalize_nesting_tree_1): Declare the
  16786. frame_decl in the binding tree.
  16787. 2009-06-04 Cary Coutant <ccoutant@google.com>
  16788. * basic-block.h (struct basic_block_def): Add discriminator field.
  16789. * dbxout.c (dbxout_source_line): Add new parameter. Change all
  16790. callers.
  16791. * debug.c (do_nothing_debug_hooks): Add additional entry.
  16792. (debug_nothing_int_charstar_int): New function.
  16793. * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
  16794. (debug_nothing_int_charstar_int): New declaration.
  16795. * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
  16796. discriminator value in .loc directive.
  16797. * final.c (last_discriminator): New variable.
  16798. (discriminator): New variable.
  16799. (final_start_function): Initialize above variables, pass current
  16800. discriminator to debug hook.
  16801. (notice_source_line): Check for discriminator change.
  16802. * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
  16803. * sdbout.c (sdbout_source_line): New parameter.
  16804. * tree-cfg.c (struct locus_discrim_map): New structure type.
  16805. (discriminator_per_locus): New hash table.
  16806. (build_gimple_cfg): Allocate and free discriminator hash table.
  16807. (make_edges): Call assign_discriminator.
  16808. (locus_map_hash): New function.
  16809. (locus_map_eq): New function.
  16810. (next_discriminator_for_locus): New function.
  16811. (same_line_p): New function.
  16812. (assign_discriminator): New function.
  16813. (make_cond_expr_edges): Call assign_discriminator.
  16814. (make_gimple_switch_edges): Likewise.
  16815. (first_non_label_stmt): New function.
  16816. * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
  16817. all callers.
  16818. * xcoffout.c (xcoffout_source_line): Add new parameter.
  16819. * configure.ac (gcc_cv_as_discriminator): New configury check for
  16820. gas support for discriminator.
  16821. * configure: Regenerate.
  16822. * config.in: Regenerate.
  16823. 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  16824. * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
  16825. val after checking for integers.
  16826. 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
  16827. * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
  16828. X64_REGPARM_MAX.
  16829. (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
  16830. (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
  16831. (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
  16832. * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
  16833. X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
  16834. X64_SSE_REGPARM_MAX.
  16835. * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
  16836. X64_SSE_REGPARM_MAX.
  16837. 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
  16838. * gcc.c (report_times_to_file): New.
  16839. (execute): Implement it.
  16840. (process_command): Support -time=.
  16841. * doc/invoke.texi: Document it.
  16842. 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
  16843. * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
  16844. that have value exprs.
  16845. 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
  16846. * dwarf2asm.c (dw2_force_const_mem): Defer creation of
  16847. declarations for constants until...
  16848. (dw2_output_indirect_constant_1): ... this point.
  16849. 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
  16850. PR target/10242
  16851. * arm.md (arm_addsi3): Don't try to split an add with an
  16852. eliminable register until after reload has completed.
  16853. 2009-06-03 Ian Lance Taylor <iant@google.com>
  16854. * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
  16855. * genattrtab.c (write_length_unit_log): Likewise.
  16856. * genchecksum.c (dosum): Likewise.
  16857. * gengtype.c (write_rtx_next): Likewise.
  16858. (finish_root_table, write_roots): Likewise.
  16859. * gimple.c (gimple_ops_offset_): Likewise.
  16860. * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
  16861. * config/arc/arc.c (arc_attribute_table): Likewise.
  16862. * config/arm/arm.c (arm_attribute_table): Likewise.
  16863. * config/avr/avr.c (avr_attribute_table): Likewise.
  16864. * config/crx/crx.c (crx_attribute_table): Likewise.
  16865. * config/m32r/m32r.c (m32r_attribute_table): Likewise.
  16866. * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
  16867. * config/mcore/mcore.c (mcore_attribute_table): Likewise.
  16868. * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
  16869. * config/sh/sh.c (sh_attribute_table): Likewise.
  16870. * config/sparc/sparc.c (sparc_attribute_table): Likewise.
  16871. * config/spu/spu.c (spu_attribute_table): Likewise.
  16872. * config/v850/v850.c (v850_attribute_table): Likewise.
  16873. * config/alpha/alpha.c (vms_attribute_table): Make static.
  16874. * config/bfin/bfin.c (bfin_attribute_table): Likewise.
  16875. * config/h8300/h8300.c (h8300_attribute_table): Likewise.
  16876. * config/mips/mips.c (mips_attribute_table): Likewise.
  16877. * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
  16878. $(SYSTEM_H).
  16879. (cc1-checksum.o): Likewise.
  16880. 2009-06-03 Steve Ellcey <sje@cup.hp.com>
  16881. * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
  16882. 2009-06-03 Jakub Jelinek <jakub@redhat.com>
  16883. * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
  16884. insn if it is changing sp. Use gen_add3_insn instead of
  16885. conditionally gen_addsi3 and gen_adddi3.
  16886. (offset_below_red_zone_p): New static inline function.
  16887. (rs6000_emit_epilogue): Emit needed epilogue unwind info.
  16888. Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
  16889. * config/rs6000/ppc-asm.h: Include auto-host.h.
  16890. (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
  16891. CFI_RESTORE): Define.
  16892. * config/rs6000/crtresxgpr.asm: Add unwind info.
  16893. * config/rs6000/crtresxfpr.asm: Likewise.
  16894. * config/rs6000/crtresgpr.asm: Likewise.
  16895. * config/rs6000/crtresfpr.asm: Likewise.
  16896. * config/rs6000/crtsavgpr.asm: Likewise.
  16897. * config/rs6000/crtsavfpr.asm: Likewise.
  16898. * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
  16899. argument of DWARF2_FRAME_REG_OUT macros.
  16900. 2009-06-03 Julian Brown <julian@codesourcery.com>
  16901. * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
  16902. words or less (including TImode) in core registers.
  16903. 2009-06-03 Richard Guenther <rguenther@suse.de>
  16904. PR middle-end/40328
  16905. * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
  16906. 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
  16907. * statistics.c (statistics_counter_event): Do not record event
  16908. in pass dump if its number == -1.
  16909. (curr_statistics_hash): Add assert that we never get passes
  16910. with static number == -1.
  16911. 2009-06-03 Richard Guenther <rguenther@suse.de>
  16912. Andrey Belevantsev <abel@ispras.ru>
  16913. * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
  16914. non-BLKmode arrays addressable.
  16915. 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
  16916. * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
  16917. * config/m68k/m68k.h: ... here.
  16918. 2009-06-03 Martin Jambor <mjambor@suse.cz>
  16919. PR tree-optimization/40323
  16920. * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
  16921. assignment.
  16922. 2009-06-03 Richard Guenther <rguenther@suse.de>
  16923. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
  16924. consistently.
  16925. 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
  16926. * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
  16927. JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
  16928. JUMP_TABLE_DATA_P where applicable.
  16929. * config/sh/sh.c: Ditto.
  16930. * config/sh/sh.h: Ditto.
  16931. * config/sh/sh.md: Ditto.
  16932. * config/sh/symbian.c: Ditto.
  16933. 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
  16934. * config/i386/driver-i386.c (describe_cache): Optimize
  16935. concatenation of strings. Use snprintf instead of sprintf.
  16936. (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
  16937. target when not compiling with GCC.
  16938. 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
  16939. * config/sh/sh.c: Revert last change.
  16940. (sh_expand_epilogue): Emit a blockage insn before the frame
  16941. pointer adjustment unconditionally.
  16942. 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
  16943. * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
  16944. * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
  16945. * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
  16946. * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
  16947. to COLLECT_GCC_OPTIONS.
  16948. 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
  16949. * collect2.c (target_system_root): New variable.
  16950. (main): Handle --sysroot=.
  16951. (ignore_library): Strip the sysroot from the library path.
  16952. 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
  16953. * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
  16954. (collect2.o): Depend on collect2-aix.h.
  16955. (collect2-aix.o): New rule.
  16956. * collect2-aix.h: New file.
  16957. * collect2-aix.c: Likewise.
  16958. * collect2.c: Include collect2-aix.h. Don't undefine
  16959. OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
  16960. Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
  16961. Use TARGET_AIX_VERSION instead of _AIX51.
  16962. * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
  16963. * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
  16964. * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
  16965. * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
  16966. * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
  16967. 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
  16968. * collect2.c (ignore_library): Avoid premature post-increment
  16969. and null deference.
  16970. 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
  16971. * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
  16972. * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
  16973. !CROSS_DIRECTORY_STRUCTURE alternative and use it for
  16974. CROSS_DIRECTORY_STRUCTURE too.
  16975. (LINK_LIBG_SPEC): Likewise.
  16976. (LIB_SPEC): Add %R to sysroot paths.
  16977. * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
  16978. (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
  16979. * config/rs6000/aix51.h: As for aix43.h.
  16980. * config/rs6000/aix52.h: Likewise.
  16981. * config/rs6000/aix53.h: Likewise.
  16982. * config/rs6000/aix61.h: Likewise.
  16983. * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
  16984. to the beginning of sysroot paths.
  16985. 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
  16986. * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
  16987. INSN_LISTs that are out of the REG_NOTE range.
  16988. 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
  16989. * loop-unroll.c (struct iv_to_split): Add pointer to next.
  16990. (struct var_to_expand): Likewise.
  16991. (struct opt_info): Add head and tail for linked lists of the above.
  16992. (analyze_insn_to_expand_var): Initialize next.
  16993. (analyze_iv_to_split_insn): Likewise.
  16994. (analyze_insns_in_loop): Create linked lists.
  16995. (allocate_basic_variable): Simplify for use without hash table.
  16996. (insert_var_expansion_initialization): Likewise, make it type-safer.
  16997. (combine_var_copies_in_loop_exit): Likewise.
  16998. (apply_opt_in_copies): Walk lists rather than hash tables.
  16999. (release_var_copies): Simplified and inlined by hand into...
  17000. (free_opt_info): ... this function.
  17001. 2009-06-02 Richard Guenther <rguenther@suse.de>
  17002. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
  17003. for field decls.
  17004. 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
  17005. * cfgexpand.c (gimple_expand_cfg): Discard the source location
  17006. only for builtins that are not overridden.
  17007. 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
  17008. * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
  17009. label string.
  17010. 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
  17011. * df-core.c (df_ref_debug): Honor -fdump-noaddr.
  17012. 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
  17013. * combine.c (move_deaths): Compare LUIDs within the same BB only.
  17014. 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
  17015. * common.opt (fdump-unnumbered-links): New.
  17016. * doc/invoke.texi (-fdump-unnumbered-links): Document it.
  17017. * print-rtl.c (flag_dump_unnumbered_links): New.
  17018. (print_rtx): Test it.
  17019. 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
  17020. * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
  17021. push/pop multiple to 8-byte alignment.
  17022. 2009-06-01 Jakub Jelinek <jakub@redhat.com>
  17023. * config/i386/i386.c (queued_cfa_restores): New static variable.
  17024. (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
  17025. functions.
  17026. (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
  17027. (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
  17028. Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
  17029. Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
  17030. note unconditionally.
  17031. (ix86_emit_restore_regs_using_mov): Likewise.
  17032. (ix86_emit_restore_sse_regs_using_mov): Likewise.
  17033. (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
  17034. it through to ix86_emit_restore_reg_using_pop.
  17035. (ix86_emit_leave): Add RED_OFFSET argument. Call
  17036. ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
  17037. instead of adding REG_CFA_OFFSET note unconditionally.
  17038. (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
  17039. the above functions. Call ix86_add_queued_cfa_restore_notes when
  17040. needed.
  17041. * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
  17042. force output of the label even for dwarf2out_do_cfi_asm.
  17043. (add_fde_cfi): If -g2 and above and cfi might change CFA,
  17044. force creation of CFI label and chain DW_CFA_set_loc jumping to it
  17045. for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
  17046. caller.
  17047. (dwarf2out_stack_adjust, dwarf2out_frame_debug,
  17048. dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
  17049. dwarf2out_cfi_label callers.
  17050. * tree.h (dwarf2out_cfi_label): Adjust prototype.
  17051. * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
  17052. Adjust dwarf2out_cfi_label callers.
  17053. * config/vax/vax.c (vax_output_function_prologue): Likewise.
  17054. * config/i386/i386.h (struct machine_cfa_state,
  17055. struct machine_function): Guard with ifndef USED_FOR_TARGET
  17056. instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
  17057. PR other/40024
  17058. * emutls.c (__emutls_get_address): Change arr->size to mean number
  17059. of allocated arr->data entries instead of # of slots + 1.
  17060. PR middle-end/40316
  17061. * recog.c (peep2_reinit_state): New function.
  17062. (peephole2_init_state): Use it at the end of a basic block and also
  17063. when seeing a RTX_FRAME_RELATED_P insn.
  17064. 2009-06-01 Steve Ellcey <sje@cup.hp.com>
  17065. * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
  17066. fixuns_truncrfdi2): New.
  17067. (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
  17068. *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
  17069. *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
  17070. *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
  17071. *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
  17072. *recip_approx): Remove.
  17073. (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
  17074. moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
  17075. divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
  17076. move to div.md.
  17077. * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
  17078. setf_exp_rf): New.
  17079. 2009-06-01 Ian Lance Taylor <iant@google.com>
  17080. * attribs.c (register_attribute): Use CONST_CAST.
  17081. * collect2.c (main): Use CONST_CAST2.
  17082. (scan_prog_file): Likewise.
  17083. * gcc.c (process_command, main): Likewise.
  17084. * toplev.c (toplev_main): Likewise.
  17085. * c-typeck.c (handle_warn_cast_qual): New static function,
  17086. partially broken out of build_c_cast.
  17087. (build_c_cast): Call handle_warn_cast_qual.
  17088. * doc/invoke.texi (Warning Options): Document new effect of
  17089. -Wcast-qual.
  17090. 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
  17091. * diagnostic.c (diagnostic_build_prefix): Always print columns.
  17092. (diagnostic_report_current_module): Print columns.
  17093. * common.opt (flag_show_column): Enable by default.
  17094. 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
  17095. * alias.c (find_base_term): Check for NULL term before returning.
  17096. 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
  17097. Revert due to PR40320:
  17098. 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
  17099. * calls.c (emit_library_call_value_1): Don't force_operand for move
  17100. and push insns.
  17101. 2009-06-01 Olivier Hainque <hainque@adacore.com>
  17102. Eric Botcazou <ebotcazou@adacore.com>
  17103. * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
  17104. to be processed as a bitfield for constructor output purposes.
  17105. * output.h (initializer_constant_valid_for_bitfield_p): Declare
  17106. new function.
  17107. * varasm.c (oc_local_state): New type, output_constructor
  17108. local state to support communication with helpers.
  17109. (oc_outer_state): New type, output_constructor outer state of
  17110. relevance in recursive calls.
  17111. (output_constructor_array_range): New output_constructor helper,
  17112. extracted code for an array range element.
  17113. (output_constructor_regular_field): New output_constructor helper,
  17114. extracted code for an element that is not a bitfield.
  17115. (output_constructor_bitfield): New output_constructor helper,
  17116. extracted code for a bitfield element. Accept an OUTER state
  17117. argument for recursive processing. Recurse on record or array
  17118. CONSTRUCTOR values, possibly past noop conversions.
  17119. (initializer_constant_valid_for_bitfield_p): New predicate. Whether
  17120. VALUE is a valid constant-valued expression for use in a static
  17121. bit-field initializer.
  17122. (output_constructor): Rework to use helpers. Accept and honor an
  17123. OUTER state argument for recursive calls. Return total size. Be
  17124. prepared for nested constructors initializing bitfields.
  17125. (output_constant): Feed OUTER in calls to output_constructor.
  17126. 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
  17127. * calls.c (emit_library_call_value_1): Don't force_operand for move
  17128. and push insns.
  17129. 2009-06-01 Nick Clifton <nickc@redhat.com>
  17130. * doc/invoke.texi (IA-64 Options): Fix typo.
  17131. 2009-06-01 Ira Rosen <irar@il.ibm.com>
  17132. PR tree-optimization/39129
  17133. * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
  17134. printed message.
  17135. (vect_do_peeling_for_loop_bound): Use
  17136. LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
  17137. LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
  17138. (vect_loop_versioning): Likewise.
  17139. (vect_create_cond_for_alias_checks): Fix indentation.
  17140. * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
  17141. macros.
  17142. (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
  17143. (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
  17144. * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
  17145. "control flow in loop".
  17146. (vect_estimate_min_profitable_iters): Use
  17147. LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
  17148. LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
  17149. * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
  17150. (vect_create_data_ref_ptr): Don't mention array dimension in printing.
  17151. * tree-vect-stmts.c (vectorizable_store): Replace the check that the
  17152. statement belongs to a group of strided accesses with the exact code
  17153. check.
  17154. (vectorizable_load): Likewise.
  17155. * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
  17156. (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
  17157. 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
  17158. * config/freebsd-stdint.h: New file.
  17159. * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
  17160. Add freebsd-stdint.h to tm_file.
  17161. 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
  17162. * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
  17163. (thumb2_extendhidi2): Likewise.
  17164. 2009-05-31 Ian Lance Taylor <iant@google.com>
  17165. * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
  17166. 2009-05-31 Ian Lance Taylor <iant@google.com>
  17167. * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
  17168. (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
  17169. (ipa-reference.o): Depend upon gt-ipa-reference.h.
  17170. 2009-05-31 Jason Merrill <jason@redhat.com>
  17171. * tree-pretty-print.c (print_call_name): Take the callee, not the
  17172. call itself. Make non-static. Use dump_function_name for functions.
  17173. (dump_generic_node): Adjust.
  17174. * diagnostic.h: Declare print_call_name.
  17175. * gimple-pretty-print.c (dump_gimple_call): Use it.
  17176. 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
  17177. * config/sh/sh.md (ashldi3_std): New define_expand.
  17178. (ashldi3): Use it.
  17179. 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
  17180. PR target/40313
  17181. * config/sh/sh.c: Include debug.h.
  17182. (sh_expand_epilogue): Emit a blockage insn before the frame
  17183. pointer adjustment also when dwarf2out_do_frame returns true.
  17184. 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
  17185. * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
  17186. (thumb2_extendqidi2): New pattern.
  17187. 2009-05-31 Ira Rosen <irar@il.ibm.com>
  17188. * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
  17189. mark phis for renaming.
  17190. * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
  17191. (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
  17192. Call mark_sym_for_renaming.
  17193. * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
  17194. * tree-vect-loop.c (vect_transform_loop): Remove
  17195. vect_memsyms_to_rename initialization and a call to
  17196. mark_set_for_renaming.
  17197. 2009-05-31 Jakub Jelinek <jakub@redhat.com>
  17198. PR middle-end/40304
  17199. * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
  17200. frame related even if !set_cfa && style < 0.
  17201. 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
  17202. * config/i386/mingw-tls.c: New file.
  17203. * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
  17204. * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
  17205. defining _WIN32 but not __CYGWIN__.
  17206. 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  17207. * configure.ac: Add MPC support.
  17208. * config.in, configure: Regenerate.
  17209. 2009-05-29 Richard Henderson <rth@redhat.com>
  17210. * cfgcleanup.c (try_crossjump_to_edge): Only skip past
  17211. NOTE_INSN_BASIC_BLOCK.
  17212. * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
  17213. Duplicate NOTE_INSN_EPILOGUE_BEG notes.
  17214. * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
  17215. to be deleted.
  17216. * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
  17217. add in_use field.
  17218. (add_cfi): Disable check redefining cfa away from drap.
  17219. (lookup_cfa_1): Add remember argument; handle remember/restore.
  17220. (lookup_cfa): Pass remember argument.
  17221. (cfa_remember): New.
  17222. (compute_barrier_args_size_1): Remove sibcall check.
  17223. (dwarf2out_frame_debug_def_cfa): New.
  17224. (dwarf2out_frame_debug_adjust_cfa): New.
  17225. (dwarf2out_frame_debug_cfa_offset): New.
  17226. (dwarf2out_frame_debug_cfa_register): New.
  17227. (dwarf2out_frame_debug_cfa_restore): New.
  17228. (dwarf2out_frame_debug): Handle REG_CFA_* notes.
  17229. (dwarf2out_begin_epilogue): New.
  17230. (dwarf2out_frame_debug_restore_state): New.
  17231. (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
  17232. DW_CFA_restore_state.
  17233. (output_cfi_directive): Likewise.
  17234. (convert_cfa_to_fb_loc_list): Likewise.
  17235. (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
  17236. * dwarf2out.h: Update.
  17237. * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
  17238. (copy_insn_1): Early out for null.
  17239. * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
  17240. and dwarf2out_frame_debug_restore_state.
  17241. * function.c (prologue, epilogue, sibcall_epilogue): Remove.
  17242. (prologue_insn_hash, epilogue_insn_hash): New.
  17243. (free_after_compilation): Adjust freeing accordingly.
  17244. (record_insns): Create hash table if needed; push insns into
  17245. hash instead of array.
  17246. (maybe_copy_epilogue_insn): New.
  17247. (contains): Search hash table instead of array.
  17248. (sibcall_epilogue_contains): Remove.
  17249. (thread_prologue_and_epilogue_insns): Split eh_return insns
  17250. and mark them as epilogues.
  17251. (reposition_prologue_and_epilogue_notes): Rewrite epilogue
  17252. scanning in terms of basic blocks.
  17253. * insn-notes.def (CFA_RESTORE_STATE): New.
  17254. * jump.c (returnjump_p_1): Accept EH_RETURN.
  17255. (eh_returnjump_p_1, eh_returnjump_p): New.
  17256. * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
  17257. CFA_REGISTER, CFA_RESTORE): New.
  17258. * rtl.def (EH_RETURN): New.
  17259. * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
  17260. * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
  17261. (eh_return_internal): Use eh_return rtx; split w/ epilogue.
  17262. * config/i386/i386.c (gen_push): Update cfa state.
  17263. (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
  17264. add a CFA_ADJUST_CFA note.
  17265. (ix86_dwarf_handle_frame_unspec): Remove.
  17266. (ix86_expand_prologue): Update cfa state.
  17267. (ix86_emit_restore_reg_using_pop): New.
  17268. (ix86_emit_restore_regs_using_pop): New.
  17269. (ix86_emit_leave): New.
  17270. (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
  17271. (ix86_expand_epilogue): Add notes for unwinding the epilogue.
  17272. * config/i386/i386.h (struct machine_cfa_state): New.
  17273. (ix86_cfa_state): New.
  17274. * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
  17275. (eh_return_internal): Merge from eh_return_<mode>,
  17276. use eh_return rtx, split w/ epilogue.
  17277. 2009-05-29 Ian Lance Taylor <iant@google.com>
  17278. * builtins.c (validate_gimple_arglist): Don't use va_arg with
  17279. enum type.
  17280. * calls.c (emit_library_call_value_1): Likewise.
  17281. * c-typeck.c (c_build_va_arg): New function.
  17282. * c-tree.h (c_build_va_arg): Declare.
  17283. * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
  17284. instead of build_va_arg.
  17285. 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
  17286. * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
  17287. (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
  17288. (ptr_difference_cost): Use affine combinations to compute it.
  17289. (difference_cost): Likewise.
  17290. (get_computation_cost_at): Compute more accurate cost for addresses
  17291. if the ratio is a multiplier allowed in addresses.
  17292. For non-addresses, consider that an additional offset or symbol is
  17293. added only once.
  17294. 2009-05-29 Jakub Jelinek <jakub@redhat.com>
  17295. * config/i386/i386.c (ix86_decompose_address): Avoid useless
  17296. 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
  17297. * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
  17298. TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
  17299. (prefix_rex): For UNIT_MMX don't imply the prefix by default
  17300. if MODE_DI.
  17301. (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
  17302. to 1 for TYPE_SSE{IADD1,CVT1}.
  17303. (prefix_vex_imm8): Removed.
  17304. (length_vex): Only pass 1 as second argument to
  17305. ix86_attr_length_vex_default if prefix_extra is 0.
  17306. (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
  17307. (length): For prefix vex computation use length_immediate
  17308. attribute instead of prefix_vex_imm8.
  17309. (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
  17310. addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
  17311. *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
  17312. *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
  17313. (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
  17314. *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
  17315. a space in between the operands.
  17316. (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
  17317. if one operand is 0xff and the other one si, di, bp or sp.
  17318. (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
  17319. other one si, di, bp or sp.
  17320. (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
  17321. (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
  17322. type and mode attributes.
  17323. (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
  17324. (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
  17325. prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
  17326. (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
  17327. prefix_data16 attribute iff MODE_DF.
  17328. (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
  17329. (fix_trunc<mode>di_sse): Set prefix_rex attribute.
  17330. (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
  17331. constm128_operand in length_immediate computation.
  17332. (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
  17333. (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
  17334. (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
  17335. length_immediate attribute to 1.
  17336. (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
  17337. (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
  17338. for certain alternatives.
  17339. (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
  17340. prefix_data16 attribute if MODE_V1DF.
  17341. (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
  17342. length_immediate to 1.
  17343. (set_got_rex64, set_rip_rex64): Remove length attribute, set
  17344. length_address to 4, set mode attribute to MODE_DI.
  17345. (set_got_offset_rex64): Likewise. Set length_immediate to 0.
  17346. (fxam<mode>2_i387): Set length attribute to 4.
  17347. (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
  17348. *prefetch_3dnow_rex): Override length_address attribute.
  17349. (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
  17350. attributes.
  17351. * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
  17352. (constm128_operand): Removed.
  17353. * config/i386/i386.c (memory_address_length): For
  17354. disp && !index && !base in 64-bit mode account for SIB byte if
  17355. print_operand_address can't optimize disp32 into disp32(%rip)
  17356. and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
  17357. for fs: or gs: segment.
  17358. (ix86_attr_length_immediate_default): When checking if shortform
  17359. is possible, truncate immediate to the length of the non-shortened
  17360. immediate.
  17361. (ix86_attr_length_address_default): Ignore MEM_P operands
  17362. with X constraint.
  17363. (ix86_attr_length_vex_default): Only check for DImode on
  17364. GENERAL_REG_P operands.
  17365. * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
  17366. prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
  17367. (sse_cvttps2pi): Clear prefix_rep attribute.
  17368. (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
  17369. attribute.
  17370. (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
  17371. (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
  17372. *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
  17373. iff operand 2 is const_int_operand.
  17374. (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
  17375. sse2_shufpd_<mode>): Set length_immediate attribute to 1.
  17376. (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
  17377. instead of vex.
  17378. (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
  17379. prefix_data16.
  17380. (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
  17381. prefix_data16 attribute for movlpd and movhpd instructions.
  17382. (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
  17383. length_immediate for shufpd instruction.
  17384. (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
  17385. (avx_cmpp<avxmodesuffixf2c><mode>3,
  17386. avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
  17387. <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
  17388. avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
  17389. *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
  17390. (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
  17391. (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
  17392. (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
  17393. prefix_data16 attribute for the first alternative to 1.
  17394. (*avx_loadlps): Override length_immediate for the first alternative.
  17395. (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
  17396. attributes for second alternative.
  17397. (*vec_concatv2sf_sse4_1): Override length_immediate and
  17398. prefix_data16 attributes for second alternative.
  17399. (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
  17400. vec_extract_hi_<mode>, vec_extract_lo_v16hi,
  17401. vec_extract_hi_v16hi, vec_extract_lo_v32qi,
  17402. vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
  17403. (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
  17404. prefix_data16 and length_immediate to 1.
  17405. (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
  17406. to 1.
  17407. (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
  17408. prefix_extra attribute for variants that don't have 0f prefix alone.
  17409. (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
  17410. (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
  17411. *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
  17412. *sse4_1_pextrd): Set length_immediate to 1.
  17413. (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
  17414. (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
  17415. to 1.
  17416. (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
  17417. *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
  17418. length_immediate to 1 for second alternative.
  17419. (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
  17420. prefix_extra and length_immediate attributes for the first
  17421. alternative.
  17422. (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
  17423. first alternative.
  17424. (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
  17425. to 1 for the first and third alternative.
  17426. (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
  17427. alternative.
  17428. (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
  17429. attribute.
  17430. (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
  17431. attribute to 0.
  17432. (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
  17433. *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
  17434. *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
  17435. *avx_psign<mode>3): Set prefix_extra attribute to 1.
  17436. (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
  17437. ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
  17438. ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
  17439. ssse3_psign<mode>3): Override prefix_rex attribute.
  17440. (*avx_palignrti): Override prefix_extra and length_immediate to 1.
  17441. (ssse3_palignrti): Override length_immediate to 1.
  17442. (ssse3_palignrdi): Override length_immediate to 1, override
  17443. prefix_rex attribute.
  17444. (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
  17445. (sse4a_extrqi): Override length_immediate to 2.
  17446. (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
  17447. (sse4a_insertq): Override prefix_data16 to 0.
  17448. (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
  17449. avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
  17450. avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
  17451. *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
  17452. avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
  17453. and length_immediate to 1.
  17454. (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
  17455. sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
  17456. sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
  17457. sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
  17458. and length_immediate to 1.
  17459. (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
  17460. (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
  17461. (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
  17462. avx_ptest256): Override prefix_extra to 1.
  17463. (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
  17464. Override prefix_data16 and length_immediate to 1.
  17465. (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
  17466. sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
  17467. sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
  17468. sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
  17469. prefix_data16 to 0 and prefix_extra to 2.
  17470. (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
  17471. (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
  17472. attribute.
  17473. (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
  17474. sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
  17475. Override prefix_data16 and prefix_rep to 0, length_immediate to 1
  17476. and prefix_extra to 2.
  17477. (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
  17478. prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
  17479. (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
  17480. avx_vpermilvar<mode>3,
  17481. avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
  17482. avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
  17483. avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
  17484. avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
  17485. Override prefix_extra to 1.
  17486. (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
  17487. (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
  17488. vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
  17489. vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
  17490. prefix_extra and length_immediate to 1.
  17491. (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
  17492. modrm to 0.
  17493. (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
  17494. to 1 for the first alternative.
  17495. * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
  17496. prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
  17497. cases.
  17498. (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
  17499. *movv2sf_internal_avx, *movv2sf_internal): Override
  17500. prefix_rep attribute for certain alternatives.
  17501. (*mov<mode>_internal): Override prefix_rep or prefix_data16
  17502. attributes for certain alternatives.
  17503. (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
  17504. attributes for certain alternatives.
  17505. (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
  17506. *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
  17507. mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
  17508. mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
  17509. *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
  17510. mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
  17511. mmx_pswapdv2si2): Set prefix_extra attribute to 1.
  17512. (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
  17513. length_immediate to 1 if operand 2 is const_int_operand.
  17514. (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
  17515. *vec_extractv2si_1): Set length_immediate attribute to 1.
  17516. (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
  17517. using old 3DNOW insn rather than SSE/3DNOW_A.
  17518. (mmx_emms, mmx_femms): Clear modrm attribute.
  17519. 2009-05-29 Martin Jambor <mjambor@suse.cz>
  17520. * tree-sra.c: New implementation of SRA.
  17521. * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
  17522. (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
  17523. (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
  17524. * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
  17525. (SRA_MAX_STRUCTURE_COUNT): Removed.
  17526. (SRA_FIELD_STRUCTURE_RATIO): Removed.
  17527. * doc/invoke.texi (sra-max-structure-size): Removed.
  17528. (sra-field-structure-ratio): Removed.
  17529. 2009-05-29 Jakub Jelinek <jakub@redhat.com>
  17530. PR middle-end/40291
  17531. * builtins.c (expand_builtin_memcmp): Convert len to sizetype
  17532. before expansion.
  17533. 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
  17534. PR rtl-optimization/40101
  17535. * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
  17536. seqno. Adjust comment.
  17537. * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
  17538. inserting bookkeeping before a jump, the jump is not scheduled.
  17539. When no positive seqno found, provide a value. Add comment.
  17540. 2009-05-29 Richard Guenther <rguenther@suse.de>
  17541. * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
  17542. short-cutting on the first component.
  17543. 2009-05-29 Jakub Jelinek <jakub@redhat.com>
  17544. PR middle-end/39958
  17545. * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
  17546. for trees other than decls/types.
  17547. 2009-05-29 Richard Guenther <rguenther@suse.de>
  17548. * tree-ssa-operands.c (get_expr_operands): Do not handle
  17549. INDIRECT_REFs in the handled-component case. Remove
  17550. unused get_ref_base_and_extent case.
  17551. * tree-dfa.c (get_ref_base_and_extent): Avoid calling
  17552. tree_low_cst and host_integerp where possible.
  17553. * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
  17554. codes for equivalence.
  17555. * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
  17556. 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
  17557. * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
  17558. to tmake_file for i[34567]86-*-cygwin*.
  17559. 2009-05-29 Jakub Jelinek <jakub@redhat.com>
  17560. PR target/40017
  17561. * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
  17562. (altivec_categorize_keyword, init_vector_keywords,
  17563. rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
  17564. similar to bool.
  17565. 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
  17566. * tree.c (handle_dll_attribute): Check if node is
  17567. of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
  17568. 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
  17569. * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
  17570. component.
  17571. (thumb2_zero_extendqidi2): Likewise.
  17572. 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
  17573. * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
  17574. instead of gen_movrt.
  17575. * config/sh/sh.md (movrt): Remove.
  17576. 2009-05-28 Steve Ellcey <sje@cup.hp.com>
  17577. * doc/invoke.texi (IA-64 Options):
  17578. Add -msdata, -mfused-madd, -mno-inline-float-divide,
  17579. -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
  17580. -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
  17581. -msched-prefer-non-control-spec-insns,
  17582. -msched-stop-bits-after-every-cycle,
  17583. -msched-count-spec-in-critical-path,
  17584. -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
  17585. -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
  17586. Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
  17587. and -msched-spec-verbose.
  17588. 2009-05-28 Joseph Myers <joseph@codesourcery.com>
  17589. * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
  17590. * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
  17591. error if used.
  17592. * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
  17593. 2009-05-28 Richard Guenther <rguenther@suse.de>
  17594. * tree-ssa-alias.c (ao_ref_init): New function.
  17595. (ao_ref_base): Likewise.
  17596. (ao_ref_base_alias_set): Likewise.
  17597. (ao_ref_alias_set): Likewise.
  17598. (refs_may_alias_p_1): Change signature.
  17599. (refs_may_alias_p): Adjust.
  17600. (refs_anti_dependent_p): Likewise.
  17601. (refs_output_dependent_p): Likewise.
  17602. (call_may_clobber_ref_p_1): Change signature.
  17603. (call_may_clobber_ref_p): Adjust.
  17604. (stmt_may_clobber_ref_p_1): New function split out from ...
  17605. (stmt_may_clobber_ref_p): ... here.
  17606. (maybe_skip_until): Adjust signature.
  17607. (get_continuation_for_phi): Likewise.
  17608. (walk_non_aliased_vuses): Likewise.
  17609. * tree-ssa-alias.h (struct ao_ref_s): New structure type.
  17610. (ao_ref_init): Declare.
  17611. (ao_ref_base): Likewise.
  17612. (ao_ref_alias_set): Likewise.
  17613. (stmt_may_clobber_ref_p_1): Likewise.
  17614. (walk_non_aliased_vuses): Adjust.
  17615. * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
  17616. (get_ref_from_reference_ops): remove.
  17617. (vn_reference_lookup_2): Adjust signature.
  17618. (vn_reference_lookup_3): Do not re-build trees. Handle unions.
  17619. (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
  17620. (vn_reference_lookup): Adjust.
  17621. (vn_reference_insert): Likewise.
  17622. (vn_reference_insert_pieces): Adjust signature.
  17623. (visit_reference_op_call): Adjust.
  17624. * tree-ssa-pre.c (get_expr_type): Simplify.
  17625. (phi_translate_1): Adjust.
  17626. (compute_avail): Likewise.
  17627. (translate_vuse_through_block): Do not re-build trees.
  17628. (value_dies_in_block_x): Likewise.
  17629. * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
  17630. fields.
  17631. (vn_reference_lookup_pieces): Adjust declaration.
  17632. (vn_reference_insert_pieces): Likewise.
  17633. 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
  17634. * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
  17635. with checking disabled.
  17636. 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
  17637. PR target/37216
  17638. * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
  17639. macro definition for support of three-operand format aligned
  17640. .comm directive in assembler on cygwin/pe/mingw target OS.
  17641. * configure: Regenerate.
  17642. * config.h: Regenerate.
  17643. * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
  17644. aligned form of .comm directive if -mpe-aligned-commons is in effect.
  17645. * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
  17646. * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
  17647. * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
  17648. 2009-05-28 Ira Rosen <irar@il.ibm.com>
  17649. PR tree-optimization/40254
  17650. * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
  17651. in analysis of basic blocks.
  17652. 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
  17653. PR middle-end/33699
  17654. * target.h (struct gcc_target): Fix indentation. Add const_anchor.
  17655. * target-def.h (TARGET_CONST_ANCHOR): New macro.
  17656. (TARGET_INITIALIZER): Use it.
  17657. * cse.c (CHEAPER): Move it up to the other macros.
  17658. (insert): Rename this ...
  17659. (insert_with_costs): ... to this. Add cost parameters. Update
  17660. function comment.
  17661. (insert): New function. Call insert_with_costs.
  17662. (compute_const_anchors, insert_const_anchor, insert_const_anchors,
  17663. find_reg_offset_for_const, try_const_anchors): New functions.
  17664. (cse_insn): Call try_const_anchors. Adjust cost of src_related
  17665. when using a const-anchor. Call insert_const_anchors.
  17666. * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
  17667. * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
  17668. 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
  17669. * tree-inline.c (remap_decls): Enable nonlocalized variables
  17670. when not optimizing.
  17671. 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
  17672. * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
  17673. Simplify other tests involving optimize.
  17674. 2009-05-27 Tom Tromey <tromey@redhat.com>
  17675. * unwind-dw2.c (_Unwind_DebugHook): New function.
  17676. (uw_install_context): Call _Unwind_DebugHook.
  17677. 2009-05-27 Tom Tromey <tromey@redhat.com>
  17678. * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
  17679. 2009-05-27 Ian Lance Taylor <iant@google.com>
  17680. * Makefile.in (LINKER, LINKER_FLAGS): Define.
  17681. (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
  17682. (ALL_LINKERFLAGS): Define.
  17683. (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
  17684. (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
  17685. (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
  17686. (gcov$(exeext), gcov-dump$(exeext)): Likewise.
  17687. (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
  17688. $(LINKER_FOR_BUILD).
  17689. (build/gcov-iov$(build_exeext)): Likewise.
  17690. 2009-05-27 Julian Brown <julian@codesourcery.com>
  17691. * gcse.c (target.h): Include.
  17692. (can_assign_to_reg_without_clobbers_p): Check that the target allows
  17693. copy of argument to a pseudo register.
  17694. 2009-05-27 Diego Novillo <dnovillo@google.com>
  17695. * tree-ssa-live.c (dump_scope_block): Document arguments.
  17696. (dump_scope_blocks): Document.
  17697. (debug_scope_blocks): New.
  17698. * tree-flow.h (debug_scope_blocks): Declare.
  17699. 2009-05-21 Denis Chertykov <denisc@overta.ru>
  17700. * doc/contrib.texi (Contributors): Add myself to the list.
  17701. 2009-05-27 Olivier Hainque <hainque@adacore.com>
  17702. * expr.c (target_align): New function. Alignment the TARGET of an
  17703. assignment may be assume to have.
  17704. (highest_pow2_factor_for_target): Use it instead of relying on
  17705. immediate tree attributes of TARGET, not necessarily honored when
  17706. intermediate bitfields are involved.
  17707. 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
  17708. PR target/40266
  17709. * config/i386/driver-i386.c (host_detect_local_cpu): Support
  17710. AVX, SSE4, AES, PCLMUL and POPCNT.
  17711. 2009-05-27 Diego Novillo <dnovillo@google.com>
  17712. * tree-pretty-print.c (dump_location): New.
  17713. (dump_generic_node): Call it.
  17714. Factor code to handle BLOCK nodes ...
  17715. (dump_block_node): ... here.
  17716. 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
  17717. * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
  17718. with it.
  17719. * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
  17720. included.
  17721. * gcc-plugin.h: Include config.h and system.h.
  17722. (IN_GCC): Define if not defined.
  17723. 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
  17724. PR middle-end/40249
  17725. * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
  17726. with -fno-inline.
  17727. 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
  17728. * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
  17729. applicable.
  17730. * config/m32r/m32r.h: Ditto.
  17731. * config/m32r/m32r.md: Ditto.
  17732. * config/m32r/predicates.md: Ditto.
  17733. 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
  17734. * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
  17735. 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
  17736. * doc/plugins.texi
  17737. (Loading plugins): typo.
  17738. (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
  17739. PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
  17740. (Interacting with the GCC Garbage Collector): Added new section.
  17741. (Giving information about a plugin): Added new section for
  17742. PLUGIN_INFO.
  17743. * ggc.h (ggc_register_root_tab): Added declaration.
  17744. * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
  17745. (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
  17746. (register_callback): Improved comment in declaration.
  17747. * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
  17748. (extra_root_vec) Added static variable for dynamic roots registration.
  17749. (ggc_register_root_tab) Added new routine.
  17750. (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
  17751. PLUGIN_GGC_MARKING event.
  17752. * ggc-zone.c: Include plugin.h.
  17753. (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
  17754. * ggc-page.c: Include plugin.h.
  17755. (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
  17756. * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
  17757. PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
  17758. (register_callback): check lack of callbacks for
  17759. pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
  17760. PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
  17761. (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
  17762. PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
  17763. * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
  17764. dependency on plugin.h.
  17765. (plugin.o): Added dependency on ggc.h...
  17766. 2009-05-26 Richard Guenther <rguenther@suse.de>
  17767. PR middle-end/40248
  17768. Revert
  17769. * expr.c (expand_expr_real_1): Avoid calling do_store_flag
  17770. with mismatched comparison modes.
  17771. * expr.c (expand_expr_real_1): Expand the operand of a
  17772. VIEW_CONVERT_EXPR in its natural mode.
  17773. 2009-05-26 Ian Lance Taylor <iant@google.com>
  17774. * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
  17775. (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
  17776. (ALL_COMPILERFLAGS): Define.
  17777. (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
  17778. (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
  17779. (collect2$(exeext), collect2.o): Likewise.
  17780. (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
  17781. (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
  17782. ($(out_object_file), mips-tfile, mips-tdump): Likewise.
  17783. (libbackend.o, intl.o, cppdefault.o): Likewise.
  17784. (gcov$(exeext), gcov-dump$(exeext)): Likewise.
  17785. (build/%.o): Use $(COMPILER_FOR_BUILD).
  17786. (build/gen%$(build_exeext)): Likewise.
  17787. (build/gcov-iov$(build_exeext)): LIkewise.
  17788. * config/t-darwin (darwin.o): Use $(COMPILER).
  17789. (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
  17790. * config/t-sol2 (sol2-c.o): Likewise.
  17791. (sol2.o): Likewise.
  17792. * config/t-vxworks (vxworks.o): Likewise.
  17793. * config/x-darwin (host-darwin.o): Likewise.
  17794. * config/x-hpux (host-hpux.o): Likewise.
  17795. * config/x-linux (host-linux.o): Likewise.
  17796. * config/x-solaris (host-solaris.o): Likewise.
  17797. * config/alpha/x-alpha (driver-alpha.o): Likewise.
  17798. * config/arm/t-arm (arm-c.o): Likewise.
  17799. * config/arm/t-pe (pe.o): Likewise.
  17800. * config/arm/t-wince-pe (pe.o): Likewise.
  17801. * config/i386/t-cygming (winnt.o): Likewise.
  17802. (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
  17803. * config/i386/t-cygwin (cygwin1.o): Likewise.
  17804. (cygwin2.o): Likewise.
  17805. * config/i386/t-i386 (i386-c.o): Likewise.
  17806. * config/i386/t-interix (winnt.o): Likewise.
  17807. * config/i386/t-netware (netware.o): Likewise.
  17808. * config/i386/t-nwld (nwld.o): Likewise.
  17809. * config/i386/x-darwin (host-i386-darwin.o): Likewise.
  17810. * config/i386/x-i386 (driver-i386.o): Likewise.
  17811. * config/i386/x-cygwin (host-cygwin.o): Likewise.
  17812. * config/i386/x-mingw32 (host-mingw32.o): Likewise.
  17813. * config/ia64/t-ia64 (ia64-c.o): Likewise.
  17814. * config/m32c/t-m32c (m32c-pragma.o): Likewise.
  17815. * config/mips/x-native (driver-native.o): Likewise.
  17816. * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
  17817. * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
  17818. * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
  17819. * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
  17820. * config/score/t-score-elf (score7.o): Likewise.
  17821. (score3.o): Likewise.
  17822. * config/sh/t-sh (sh-c.o): Likewise.
  17823. * config/sh/t-symbian (sh-c.o): Likewise.
  17824. (symbian.o): Likewise.
  17825. * config/spu/t-spu-elf (spu-c.o): Likewise.
  17826. * config/v850/t-v850 (v850-c.o): Likewise.
  17827. * config/v850/t-v850e (v850-c.o): Likewise.
  17828. 2009-05-26 Richard Guenther <rguenther@suse.de>
  17829. PR tree-optimization/40122
  17830. * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
  17831. VECTOR_CSTs if possible.
  17832. (fold_gimple_assign): Likewise.
  17833. 2009-05-26 Richard Guenther <rguenther@suse.de>
  17834. PR middle-end/40252
  17835. * fold-const.c (fold_binary): Use the correct types for building
  17836. rotates.
  17837. 2009-05-26 Richard Guenther <rguenther@suse.de>
  17838. * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
  17839. redundant calls to merge_alias_info.
  17840. (bump_vector_ptr): Likewise.
  17841. * tree-ssa-copy.c (merge_alias_info): Remove.
  17842. (replace_exp_1): Remove call to merge_alias_info.
  17843. (propagate_tree_value): Likewise.
  17844. (fini_copy_prop): Propagate points-to info.
  17845. * tree-flow.h (merge_alias_info): Remove.
  17846. 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
  17847. * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
  17848. 2009-05-25 Jan Hubicka <jh@suse.cz>
  17849. * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
  17850. * cgraph.h (struct inline_summary): New filed self_wize,
  17851. size_inlining_benefit, self_time and time_inlining_benefit.
  17852. (struct cgraph_global_info): Replace insns by time ans size fields.
  17853. * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
  17854. (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
  17855. (ipcp_update_callgraph): Do not touch function bodies.
  17856. * ipa-inline.c: Include except.h
  17857. (MAX_TIME): New constant.
  17858. (overall_insns): Remove.
  17859. (leaf_node_p): New.
  17860. (overall_size, max_benefit): New static variables.
  17861. (cgraph_estimate_time_after_inlining): New function.
  17862. (cgraph_estimate_size_after_inlining): Rewrite using benefits.
  17863. (cgraph_clone_inlined_nodes): Update size.
  17864. (cgraph_mark_inline_edge): Update size.
  17865. (cgraph_estimate_growth): Use size info.
  17866. (cgraph_check_inline_limits): Check size.
  17867. (cgraph_default_inline_p): Likewise.
  17868. (cgraph_edge_badness): Compute badness based on benefit and size cost.
  17869. (cgraph_decide_recursive_inlining): Check size.
  17870. (cgraph_decide_inlining_of_small_function): Update size; dump sizes
  17871. and times.
  17872. (cgraph_decide_inlining): Likewise.
  17873. (cgraph_decide_inlining_incrementally): Likewise; honor
  17874. PARAM_EARLY_INLINING_INSNS.
  17875. (likely_eliminated_by_inlining_p): New predicate.
  17876. (estimate_function_body_sizes): New function.
  17877. (compute_inline_parameters): Use it.
  17878. * except.c (must_not_throw_labels): New function.
  17879. * except.h (must_not_throw_labels): Declare.
  17880. * tree-inline.c (init_inline_once): Kill inlining_weigths
  17881. * tree-ssa-structalias.c: Avoid uninitialized warning.
  17882. * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
  17883. (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
  17884. (PARAM_INLINE_CALL_COST): Remove.
  17885. (PARAM_EARLY_INLINING_INSNS): New.
  17886. 2009-05-25 Richard Guenther <rguenther@suse.de>
  17887. PR tree-optimization/36327
  17888. * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
  17889. callback for reference translation or lookup at the point of may-defs.
  17890. * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
  17891. * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
  17892. for union COMPONENT_REFs.
  17893. (vn_reference_lookup_3): New callback. Lookup from memset
  17894. and CONSTRUCTOR assignment, translate through struct copies.
  17895. (vn_reference_lookup_pieces): Make sure to not free the
  17896. passed operands array. Adjust walk_non_aliased_vuses call.
  17897. (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
  17898. make sure we do not leak memory.
  17899. 2009-05-25 Richard Guenther <rguenther@suse.de>
  17900. * tree-ssa-alias.h (dump_points_to_solution): Declare.
  17901. * tree-inline.c (expand_call_inline): Reset the escaped and
  17902. callused solutions.
  17903. * tree-ssa-structalias.c (pass_build_ealias): New.
  17904. * tree-pass.h (pass_build_ealias): Declare.
  17905. * passes.c (init_optimization_passes): Add PTA during
  17906. early optimizations.
  17907. * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
  17908. and CALLUSED solutions.
  17909. (dump_points_to_solution): New function, split out from ...
  17910. (dump_points_to_info_for): ... here.
  17911. * tree-parloops.c (parallelize_loops): Reset the escaped and
  17912. callused solutions.
  17913. 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  17914. PR bootstrap/40027
  17915. * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
  17916. * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
  17917. 2009-05-25 Ira Rosen <irar@il.ibm.com>
  17918. PR tree-optimization/40238
  17919. * tree-vect-stmts.c (vect_init_vector): Insert initialization
  17920. statements after basic block's labels.
  17921. * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
  17922. to free the allocated memory.
  17923. 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
  17924. * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
  17925. return address with a USE.
  17926. 2009-05-24 Richard Guenther <rguenther@suse.de>
  17927. PR middle-end/40233
  17928. * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
  17929. array type from the main variant of the inner type.
  17930. 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
  17931. * config/vax/vax-protos.h (legitimate_constant_address_p): Change
  17932. definition to bool (from int) to un-break build.
  17933. (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
  17934. 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
  17935. * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
  17936. discard_stmt_changes): Delete.
  17937. * tree-ssa-operands.c (scb_stack): Delete.
  17938. (init_ssa_operands): Do not initialize it.
  17939. (fini_ssa_operands): Do not free it.
  17940. (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
  17941. * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
  17942. update_stmt, remove the others. Fix comments.
  17943. * tree-dfa.c (optimize_stack_restore): Likewise.
  17944. * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
  17945. * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
  17946. * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
  17947. * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
  17948. Likewise.
  17949. * tree-ssa-propagate.c (substitute_and_fold): Likewise.
  17950. * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
  17951. (dom_opt_finalize_block): Likewise, adjusting access to
  17952. stmts_to_rescan.
  17953. (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
  17954. (stmts_to_rescan): Change item type to gimple.
  17955. (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
  17956. 2009-05-24 Ira Rosen <irar@il.ibm.com>
  17957. * doc/passes.texi (Tree-SSA passes): Document SLP pass.
  17958. * tree-pass.h (pass_slp_vectorize): New pass.
  17959. * params.h (SLP_MAX_INSNS_IN_BB): Define.
  17960. * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
  17961. * tree-vectorizer.c (timevar.h): Include.
  17962. (user_vect_verbosity_level): Declare.
  17963. (vect_location): Fix comment.
  17964. (vect_set_verbosity_level): Update user_vect_verbosity_level
  17965. instead of vect_verbosity_level.
  17966. (vect_set_dump_settings): Add an argument. Ignore user defined
  17967. verbosity if dump flags require higher level of verbosity. Print to
  17968. stderr only for loop vectorization.
  17969. (vectorize_loops): Update call to vect_set_dump_settings.
  17970. (execute_vect_slp): New function.
  17971. (gate_vect_slp): Likewise.
  17972. (struct gimple_opt_pass pass_slp_vectorize): New.
  17973. * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
  17974. access its members.
  17975. (vec_info_for_bb): New function.
  17976. (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
  17977. (VECTORIZATION_ENABLED): New macro.
  17978. (SLP_ENABLED, SLP_DISABLED): Likewise.
  17979. (vect_is_simple_use): Add bb_vec_info argument.
  17980. (new_stmt_vec_info, vect_analyze_data_ref_dependences,
  17981. vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
  17982. vect_analyze_data_ref_accesses, vect_analyze_data_refs,
  17983. vect_schedule_slp, vect_analyze_slp): Likewise.
  17984. (vect_analyze_stmt): Add slp_tree argument.
  17985. (find_bb_location): Declare.
  17986. (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
  17987. * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
  17988. (vect_analyze_loop_operations, vect_analyze_loop,
  17989. get_initial_def_for_induction, vect_create_epilog_for_reduction,
  17990. vect_finalize_reduction, vectorizable_reduction,
  17991. vectorizable_live_operation, vect_transform_loop): Likewise.
  17992. * tree-data-ref.c (dr_analyze_innermost): Update comment,
  17993. skip evolution analysis if analyzing a basic block.
  17994. (dr_analyze_indices): Likewise.
  17995. (initialize_data_dependence_relation): Skip the test whether the
  17996. object is invariant for basic blocks.
  17997. (compute_all_dependences): Skip dependence analysis for data
  17998. references in basic blocks.
  17999. (find_data_references_in_stmt): Don't fail in case of invariant
  18000. access in basic block.
  18001. (find_data_references_in_bb): New function.
  18002. (find_data_references_in_loop): Move code to
  18003. find_data_references_in_bb and add a call to it.
  18004. (compute_data_dependences_for_bb): New function.
  18005. * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
  18006. * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
  18007. that STEP is 0.
  18008. (vect_analyze_data_ref_dependence): Check for interleaving in case of
  18009. unknown dependence in basic block and fail in case of dependence in
  18010. basic block.
  18011. (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
  18012. dependence instances from either loop or basic block vectorization
  18013. info.
  18014. (vect_compute_data_ref_alignment): Check if it is loop vectorization
  18015. before calling nested_in_vect_loop_p.
  18016. (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
  18017. dependence instances from either loop or basic block vectorization
  18018. info.
  18019. (vect_verify_datarefs_alignment): Likewise.
  18020. (vect_enhance_data_refs_alignment): Adjust function calls.
  18021. (vect_analyze_data_refs_alignment): Likewise.
  18022. (vect_analyze_group_access): Fix printing. Skip different checks if
  18023. DR_STEP is 0. Keep strided stores either in loop or basic block
  18024. vectorization data structure. Fix indentation.
  18025. (vect_analyze_data_ref_access): Fix comments, allow zero step in
  18026. basic blocks.
  18027. (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
  18028. dependence instances from either loop or basic block vectorization
  18029. info.
  18030. (vect_analyze_data_refs): Update comment. Call
  18031. compute_data_dependences_for_bb to analyze basic blocks.
  18032. (vect_create_addr_base_for_vector_ref): Check for outer loop only in
  18033. case of loop vectorization. In case of basic block vectorization use
  18034. data-ref itself as a base.
  18035. (vect_create_data_ref_ptr): In case of basic block vectorization:
  18036. don't advance the pointer, add new statements before the current
  18037. statement. Adjust function calls.
  18038. (vect_supportable_dr_alignment): Support only aligned accesses in
  18039. basic block vectorization.
  18040. * common.opt (ftree-slp-vectorize): New flag.
  18041. * tree-vect-patterns.c (widened_name_p): Adjust function calls.
  18042. (vect_pattern_recog_1): Likewise.
  18043. * tree-vect-stmts.c (process_use): Likewise.
  18044. (vect_init_vector): Add new statements in the beginning of the basic
  18045. block in case of basic block SLP.
  18046. (vect_get_vec_def_for_operand): Adjust function calls.
  18047. (vect_finish_stmt_generation): Likewise.
  18048. (vectorizable_call): Add assert that it is loop vectorization, adjust
  18049. function calls.
  18050. (vectorizable_conversion, vectorizable_assignment): Likewise.
  18051. (vectorizable_operation): In case of basic block SLP, take
  18052. vectorization factor from statement's type and skip the relevance
  18053. check. Adjust function calls.
  18054. (vectorizable_type_demotion): Add assert that it is loop
  18055. vectorization, adjust function calls.
  18056. (vectorizable_type_promotion): Likewise.
  18057. (vectorizable_store): Check for outer loop only in case of loop
  18058. vectorization. Adjust function calls. For basic blocks, skip the
  18059. relevance check and don't advance pointers.
  18060. (vectorizable_load): Likewise.
  18061. (vectorizable_condition): Add assert that it is loop vectorization,
  18062. adjust function calls.
  18063. (vect_analyze_stmt): Add argument. In case of basic block SLP, check
  18064. that it is not reduction, get vector type, call only supported
  18065. functions, skip loop specific parts.
  18066. (vect_transform_stmt): Check for outer loop only in case of loop
  18067. vectorization.
  18068. (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
  18069. (vect_is_simple_use): Fix comment, add new argument, fix conditions
  18070. for external definition.
  18071. * passes.c (pass_slp_vectorize): New pass.
  18072. * tree-vect-slp.c (find_bb_location): New function.
  18073. (vect_get_and_check_slp_defs): Add argument, adjust function calls,
  18074. check for patterns only in loops.
  18075. (vect_build_slp_tree): Add argument, adjust function calls, fail in
  18076. case of multiple types in basic block SLP.
  18077. (vect_mark_slp_stmts_relevant): New function.
  18078. (vect_supported_load_permutation_p): Fix comment.
  18079. (vect_analyze_slp_instance): Add argument. In case of basic block
  18080. SLP, take vectorization factor from statement's type, check that
  18081. unrolling factor is 1. Adjust function call. Save SLP instance in
  18082. either loop or basic block vectorization structure. Return FALSE,
  18083. if SLP failed.
  18084. (vect_analyze_slp): Add argument. Get strided stores groups from
  18085. either loop or basic block vectorization structure. Return FALSE
  18086. if basic block SLP failed.
  18087. (new_bb_vec_info): New function.
  18088. (destroy_bb_vec_info, vect_slp_analyze_node_operations,
  18089. vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
  18090. (vect_schedule_slp): Add argument. Get SLP instances from either
  18091. loop or basic block vectorization structure. Set vectorization factor
  18092. to be 1 for basic block SLP.
  18093. (vect_slp_transform_bb): New function.
  18094. * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
  18095. 2009-05-23 Mark Mitchell <mark@codesourcery.com>
  18096. * final.c (shorten_branches): Do not align labels for jump tables.
  18097. (final_scan_insn): Use JUMP_TABLE_DATA_P.
  18098. 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
  18099. * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
  18100. Remove outdated reference to flow.c and fix nits.
  18101. * doc/gccint.texi: Tweak RTL description.
  18102. * doc/rtl.texi: Likewise.
  18103. 2009-05-23 Denis Chertykov <chertykov@gmail.com>
  18104. * config/avr/avr.c: Change my email address.
  18105. * config/avr/avr.h: Likewise.
  18106. * config/avr/avr.md: Likewise.
  18107. * config/avr/avr-protos.h: Likewise.
  18108. * config/avr/libgcc.S: Likewise.
  18109. 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
  18110. * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
  18111. (spu_split_load, spu_split_store): Change return type to int.
  18112. (spu_split_convert): Declare.
  18113. * config/spu/predicates.md (spu_mem_operand): Remove.
  18114. (spu_mov_operand): Update.
  18115. (spu_dest_operand, shiftrt_operator, extend_operator): Define.
  18116. * config/spu/spu.c (regno_aligned_for_load): Remove.
  18117. (reg_aligned_for_addr, spu_expand_load): Define.
  18118. (spu_expand_extv): Reimplement and handle MEM.
  18119. (spu_expand_insv): Handle MEM.
  18120. (spu_sched_reorder): Handle insn's with length 0.
  18121. (spu_legitimate_address_p): Reimplement.
  18122. (store_with_one_insn_p): Return TRUE for any mode with size
  18123. larger than 16 bytes.
  18124. (address_needs_split): Define.
  18125. (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
  18126. operands.
  18127. (spu_convert_move): Define.
  18128. (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
  18129. (spu_split_store): Change all MEM's to TImode.
  18130. (spu_init_expanders): Preallocate registers that correspond to
  18131. LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
  18132. mark_reg_pointer.
  18133. (spu_split_convert): Define.
  18134. * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
  18135. (_move<mode>, _movdi, _movti): Update predicate and condition.
  18136. (load, store): Change to define_split.
  18137. (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
  18138. extend<mode>ti2.
  18139. (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
  18140. (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
  18141. define_insn_and_split of lshr<mode>3.
  18142. (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
  18143. (<v>ashr<mode>3_imm): Define.
  18144. (extv, extzv, insv): Allow MEM operands.
  18145. (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
  18146. shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
  18147. sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
  18148. (_spu_convert2): Change to define_insn_and_split and remove the
  18149. corresponding define_peephole2.
  18150. (stack_protect_set, stack_protect_test, stack_protect_test_si):
  18151. Change predicates to memory_operand.
  18152. 2009-05-22 Mark Mitchell <mark@codesourcery.com>
  18153. * config/arm/thumb2.md: Add 16-bit multiply instructions.
  18154. 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
  18155. PR tree-optimization/40219
  18156. * tree.c (iterative_hash_expr): Make sure the builtin function is
  18157. a normal builtin function and not a front end or back end builtin
  18158. before indexing into the built_in_decls array.
  18159. 2009-05-22 Richard Guenther <rguenther@suse.de>
  18160. PR middle-end/38964
  18161. * alias.c (write_dependence_p): Do not use TBAA for answering
  18162. anti-dependence or output-dependence.
  18163. * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
  18164. (emit_pointer_definition): Remove.
  18165. (emit_alias_warning): Likewise.
  18166. (find_what_var_points_to): Remove TBAA pruning code.
  18167. (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
  18168. violations.
  18169. (compute_points_to_sets): Remove code computing the set of
  18170. dereferenced pointers.
  18171. * tree-data-ref.c (dr_may_alias_p): Properly use the split
  18172. oracle for querying anti and output dependencies.
  18173. * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
  18174. if TBAA may be applied.
  18175. (refs_anti_dependent_p): New function.
  18176. (refs_output_dependent_p): Likewise.
  18177. * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
  18178. (refs_output_dependent_p): Likewise.
  18179. * doc/tree-ssa.texi (Memory model): New section.
  18180. * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
  18181. * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
  18182. * cfgexpand.c (expand_gimple_basic_block): Do not handle
  18183. GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
  18184. * expr.c (expand_expr_real_1): Likewise.
  18185. * gimple-low.c (lower_stmt): Likewise.
  18186. * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
  18187. (dump_gimple_cdt): Remove.
  18188. * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
  18189. (gimple_size): Likewise.
  18190. (walk_gimple_op): Likewise.
  18191. (is_gimple_stmt): Likewise.
  18192. (walk_stmt_load_store_addr_ops): Likewise.
  18193. (gimple_build_cdt): Remove.
  18194. * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
  18195. * gimple.h (gimple_cdt_new_type): Remove.
  18196. (gimple_cdt_new_type_ptr): Likewise.
  18197. (gimple_cdt_set_new_type): Likewise.
  18198. (gimple_cdt_location): Likewise.
  18199. (gimple_cdt_location_ptr): Likewise.
  18200. (gimple_cdt_set_location): Likewise.
  18201. * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
  18202. * tree-cfg.c (remove_useless_stmts_1): Do not handle
  18203. GIMPLE_CHANGE_DYNAMIC_TYPE.
  18204. (verify_types_in_gimple_stmt): Likewise.
  18205. * tree-inline.c (estimate_num_insns): Likewise.
  18206. (expand_call_inline): Do not copy DECL_NO_TBAA_P.
  18207. (copy_decl_to_var): Likewise.
  18208. (copy_result_decl_to_var): Likewise.
  18209. * tree-pretty-print.c (dump_generic_node): Do not handle
  18210. CHANGE_DYNAMIC_TYPE_EXPR.
  18211. * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
  18212. * tree-ssa-operands.c (get_expr_operands): Likewise.
  18213. * tree-ssa-structalias.c (struct variable_info): Remove
  18214. no_tbaa_pruning member.
  18215. (new_var_info): Do not set it based on DECL_NO_TBAA_P.
  18216. (unify_nodes): Do not copy it.
  18217. (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
  18218. (dump_solution_for_var): Do not dump no_tbaa_pruning state.
  18219. (set_uids_in_ptset): Do not check it.
  18220. (find_what_var_points_to): Likewise.
  18221. (compute_tbaa_pruning): Remove.
  18222. (compute_points_to_sets): Do not call it.
  18223. * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
  18224. * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
  18225. * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
  18226. (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
  18227. (DECL_NO_TBAA_P): Likewise.
  18228. (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
  18229. * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
  18230. (expand_omp_atomic_pipeline): Do not set it.
  18231. * print-tree.c (print_node): Do not dump it.
  18232. * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
  18233. redundant check.
  18234. 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
  18235. PR target/39856
  18236. * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
  18237. for clobber.
  18238. 2009-05-22 Mark Mitchell <mark@codesourcery.com>
  18239. * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
  18240. non-external.
  18241. 2009-05-22 Ben Elliston <bje@au.ibm.com>
  18242. * Makefile.in (bversion.h, s-bversion): New targets.
  18243. (TOPLEV_H): Add bversion.h.
  18244. * toplev.h: Include "bversion.h".
  18245. (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
  18246. the __format__ attribute only if compiling with the same version
  18247. of GCC as the sources (the "build version").
  18248. 2009-05-22 Ben Elliston <bje@au.ibm.com>
  18249. * c-format.c (handle_format_attribute): Fix comment typo.
  18250. 2009-05-21 Steve Ellcey <sje@cup.hp.com>
  18251. PR target/37846
  18252. * config/ia64/ia64.opt (mfused-madd): New.
  18253. * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
  18254. * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
  18255. * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
  18256. madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
  18257. nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
  18258. msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
  18259. nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
  18260. * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
  18261. instruction if !TARGET_FUSED_MADD.
  18262. (fpma, fpms): Remove colon from name.
  18263. 2009-05-22 Richard Guenther <rguenther@suse.de>
  18264. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
  18265. TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
  18266. * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
  18267. TARGET_MEM_REF.
  18268. (create_expression_by_pieces): Only convert if necessary.
  18269. * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
  18270. * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
  18271. 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
  18272. * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
  18273. regular pattern from a template and rename it ...
  18274. (*extzv_truncsi_exts): ... to this.
  18275. 2009-05-21 Richard Guenther <rguenther@suse.de>
  18276. * cgraph.h (struct cgraph_node): Remove inline_decl member.
  18277. * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
  18278. (cgraph_default_inline_p): Likewise.
  18279. (cgraph_decide_inlining_incrementally): Likewise.
  18280. 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
  18281. Uros Bizjak <ubizjak@gmail.com>
  18282. * config/i386/cpuid.h (bit_MOVBE): New.
  18283. * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
  18284. * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
  18285. (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
  18286. (ix86_handle_option): Handle OPT_mmovbe.
  18287. (ix86_target_string): Add -mmovbe.
  18288. (pta_flags): Add PTA_MOVBE.
  18289. (processor_alias_table): Add PTA_MOVBE to "atom".
  18290. (override_options): Handle PTA_MOVBE.
  18291. * config/i386/i386.h (TARGET_MOVBE): New.
  18292. * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
  18293. (*bswapsi_movbe): New.
  18294. (*bswapdi_movbe): Likewise.
  18295. (bswapdi2): Renamed to ...
  18296. (*bswapdi_1): This.
  18297. (bswapdi2): New expander.
  18298. * config/i386/i386.opt (mmovbe): New.
  18299. * doc/invoke.texi: Document -mmovbe.
  18300. 2009-05-21 Taras Glek <tglek@mozilla.com>
  18301. * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
  18302. * gcc-plugin.h (plugin_init): Updated signature.
  18303. * gcc-plugin.h (plugin_name_args): Moved to this header.
  18304. * doc/plugins.texi (plugin_init): Updated documention to reflect
  18305. API change.
  18306. * doc/plugins.texi (plugin_name_args): Added to documention.
  18307. 2009-05-21 Mark Mitchell <mark@codesourcery.com>
  18308. * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
  18309. (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
  18310. 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
  18311. * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
  18312. JUMP_TABLE_DATA_P predicates where applicable.
  18313. * config/i386/predicates.md: Ditto.
  18314. * config/i386/sse.md: Ditto.
  18315. 2009-05-21 Jakub Jelinek <jakub@redhat.com>
  18316. * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
  18317. operand2 -128 override length_immediate attribute to 1.
  18318. * config/i386/predicates.md (constm128_operand): New predicate.
  18319. * config/i386/i386.c (memory_address_length): Handle %r12
  18320. the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
  18321. also check REGNO.
  18322. (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
  18323. mode look through optional ZERO_EXTEND and SUBREG.
  18324. * config/i386/i386.md (R12_REG): New define_constant.
  18325. (prefix_data16): For sse unit set also for MODE_TI insns.
  18326. (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
  18327. insns set if operand 1 is ext_QIreg_operand.
  18328. (modrm): For TYPE_IMOV clear only if not MODE_DI. For
  18329. TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
  18330. immediate.
  18331. (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
  18332. mode from MODE_DI to MODE_SI.
  18333. (movdi_1_rex64): Override modrm and length_immediate attributes
  18334. only for movabs (TYPE_IMOV, alternative 2).
  18335. (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
  18336. (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
  18337. *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
  18338. *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
  18339. *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
  18340. prefix_rex attribute if DImode.
  18341. (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
  18342. *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
  18343. *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
  18344. *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
  18345. attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
  18346. (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
  18347. Likewise. For TYPE_IMOV clear length_immediate attribute.
  18348. (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
  18349. *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
  18350. *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
  18351. *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
  18352. *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
  18353. or one operand TYPE_ISHIFT.
  18354. (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
  18355. *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
  18356. *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
  18357. *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
  18358. *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
  18359. *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
  18360. *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
  18361. *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
  18362. *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
  18363. *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
  18364. *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
  18365. *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
  18366. *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
  18367. *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
  18368. *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
  18369. *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
  18370. *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
  18371. set mode attribute, don't override length attribute.
  18372. (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
  18373. to 1.
  18374. (return_internal_long): Set length attribute to 2 instead of 1.
  18375. (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
  18376. *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
  18377. prefix_rex attribute.
  18378. * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
  18379. New predicates.
  18380. (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
  18381. 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  18382. * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
  18383. 2009-05-20 Ian Lance Taylor <iant@google.com>
  18384. * tree.c (build_tree_list_vec_stat): New function.
  18385. (ctor_to_vec): New function.
  18386. (build_nt_call_vec): New function.
  18387. (build_call_array): Change args to be a const pointer.
  18388. (build_call_vec): New function.
  18389. * tree.h (build_nt_call_vec): Declare.
  18390. (build_tree_list_vec_stat): Declare.
  18391. (build_tree_list_vec): Define.
  18392. (build_call_array): Update declaration.
  18393. (build_call_vec): Declare.
  18394. (ctor_to_vec): Declare.
  18395. * c-common.c (tree_vector_cache): New static variable.
  18396. (make_tree_vector): New function.
  18397. (release_tree_vector): New function.
  18398. (make_tree_vector_single): New function.
  18399. (make_tree_vector_copy): New function.
  18400. * c-common.h (tree_vector_cache, make_tree_vector): Declare.
  18401. (make_tree_vector_single, make_tree_vector_copy): Declare.
  18402. * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
  18403. (c_parser_expr_list): Don't manage cache here, instead call
  18404. make_tree_vector.
  18405. (c_parser_release_expr_list): Remove static function.
  18406. (c_parser_vec_to_tree_list): Remove static function.
  18407. (c_parser_attributes): Call build_tree_list_vec instead of
  18408. c_parser_vec_to_tree_list. Call release_tree_vector instead of
  18409. c_parser_release_expr_list.
  18410. (c_parser_postfix_expression_after_primary): Likewise.
  18411. (c_parser_objc_keywordexpr): Likewise.
  18412. 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
  18413. * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
  18414. TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
  18415. TARGET_CONVERT_TO_TYPE.
  18416. * hooks.c (hook_tree_const_tree_null): Define.
  18417. * hooks.h (hook_tree_const_tree_null): Declare.
  18418. * target.h (struct gcc_target): Add invalid_parameter_type,
  18419. invalid_return_type, promoted_type, and convert_to_type fields.
  18420. * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
  18421. (TARGET_INVALID_RETURN_TYPE): Define.
  18422. (TARGET_PROMOTED_TYPE): Define.
  18423. (TARGET_CONVERT_TO_TYPE): Define.
  18424. (TARGET_INITIALIZER): Update for new fields.
  18425. * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
  18426. (grokparms): Check targetm.invalid_parameter_type.
  18427. * c-typeck.c (default_conversion): Check targetm.promoted_type.
  18428. * c-convert.c (convert): Check targetm.convert_to_type.
  18429. 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
  18430. * config/mips/mips.md (*extenddi_truncate<mode>,
  18431. *extendsi_truncate<mode>): Emit exts if supported. Add attribute
  18432. defintions.
  18433. (*extendhi_truncateqi): New define_insn_and_sptit.
  18434. 2009-05-20 Jakub Jelinek <jakub@redhat.com>
  18435. PR middle-end/40204
  18436. * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
  18437. recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
  18438. 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
  18439. * fold-const.c (build_fold_addr_expr_with_type): Take the address of
  18440. the operand of VIEW_CONVERT_EXPR.
  18441. 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
  18442. * config/i386/driver-i386.c (host_detect_local_cpu): Check
  18443. extended family and model for Intel processors. Support Intel Atom.
  18444. 2009-05-20 Olivier Hainque <hainque@adacore.com>
  18445. * gstab.h (stab_code_type): Define, to be used instead of the
  18446. __stab_debug_code enum, made anonymous. Add 2009 to the copyright
  18447. notice.
  18448. * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
  18449. occurrences by stab_code_type.
  18450. * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
  18451. 2009-05-20 Martin Jambor <mjambor@suse.cz>
  18452. * tree-flow.h (insert_edge_copies_seq): Undeclare.
  18453. (sra_insert_before): Likewise.
  18454. (sra_insert_after): Likewise.
  18455. (sra_init_cache): Likewise.
  18456. (sra_type_can_be_decomposed_p): Likewise.
  18457. * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
  18458. * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
  18459. (sra_insert_before): Likewise.
  18460. (sra_insert_after): Likewise.
  18461. (sra_init_cache): Likewise.
  18462. (insert_edge_copies_seq): Made static and moved upwards.
  18463. * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
  18464. case.
  18465. * tree-flow-inline.h (contains_view_convert_expr_p): New function.
  18466. * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
  18467. (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
  18468. simple copies.
  18469. 2009-05-20 Richard Guenther <rguenther@suse.de>
  18470. * expr.c (expand_expr_real_1): Avoid calling do_store_flag
  18471. with mismatched comparison modes.
  18472. 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  18473. * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
  18474. (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
  18475. * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
  18476. with shifts for Thumb2.
  18477. (orsi_notsi): New for orn.
  18478. (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
  18479. (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
  18480. * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
  18481. (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
  18482. Don't invert remainder for IOR.
  18483. 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
  18484. PR tree-optimization/40087
  18485. * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
  18486. number_of_iterations_ne): Rename never_infinite argument.
  18487. (number_of_iterations_lt_to_ne, number_of_iterations_lt,
  18488. number_of_iterations_le): Handle pointer-type ivs when
  18489. exit_must_be_taken is false.
  18490. (number_of_iterations_cond): Do not always assume that
  18491. exit_must_be_taken if the control variable is a pointer.
  18492. 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
  18493. * c-typeck.c (build_binary_op): Allow % on integal vectors.
  18494. * doc/extend.texi (Vector Extension): Document that % is allowed too.
  18495. 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
  18496. * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
  18497. ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
  18498. 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
  18499. PR c/40172
  18500. * c.opt (Wlogical-op): Disabled by default.
  18501. * c-opt (c_common_post_options): Do not enable Wlogical-op with
  18502. Wextra.
  18503. * doc/invoke.texi (Wlogical-op): Likewise.
  18504. 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
  18505. * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
  18506. into CASE_CONVERT.
  18507. <PLUS_EXPR>: Strip useless type conversions instead of type nops.
  18508. Propagate the type of the first operand.
  18509. <ASSERT_EXPR>: Simplify.
  18510. (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
  18511. Rewrite using the RHS code as discriminant.
  18512. <NOP_EXPR>: Turn into CASE_CONVERT.
  18513. <PLUS_EXPR>: Propagate the type of the first operand.
  18514. 2009-05-19 Steve Ellcey <sje@cup.hp.com>
  18515. * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
  18516. (ia64_dconst_0_375): New.
  18517. * config/ia64/ia64.c (ia64_override_options): Remove
  18518. -minline-sqrt-min-latency warning.
  18519. (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
  18520. (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
  18521. * config/ia64/ia64.md (*sqrt_approx): Remove.
  18522. (sqrtsf2): Remove #if 0.
  18523. (sqrtsf2_internal_thr): Rewrite and move to div.md.
  18524. (sqrtdf): Remove assert.
  18525. (sqrtdf2_internal_thr): Rewrite and move to div.md.
  18526. (sqrtxf2): Remove #if 0.
  18527. (sqrtxf2_internal_thr): Rewrite and move to div.md.
  18528. * div.md (sqrt_approx_rf): New.
  18529. (sqrtsf2_internal_thr): New implementation.
  18530. (sqrtsf2_internal_lat): New.
  18531. (sqrtdf2_internal_thr: New implementation.
  18532. (sqrtxf2_internal): New implementation.
  18533. 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
  18534. Hans-Peter Nilsson <hp@axis.com>
  18535. * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
  18536. (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
  18537. (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
  18538. (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
  18539. (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
  18540. (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
  18541. (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
  18542. (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
  18543. (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
  18544. (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
  18545. * c-common.c: ...from here.
  18546. 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
  18547. * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
  18548. 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  18549. * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
  18550. 2009-05-19 Ben Elliston <bje@au.ibm.com>
  18551. * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
  18552. assignments with memcpy calls.
  18553. (add_fdes): Likewise.
  18554. (binary_search_unencoded_fdes): Likewise.
  18555. (linear_search_fdes): Eliminate type puns.
  18556. 2009-05-19 Richard Guenther <rguenther@suse.de>
  18557. * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
  18558. not falsely claim to have propagated into all uses.
  18559. 2009-05-19 Ben Elliston <bje@au.ibm.com>
  18560. * doc/invoke.texi (C Dialect Options): Update OpenMP specification
  18561. version to v3.0.
  18562. 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
  18563. * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
  18564. * config/sh/sh.c (sh_legitimate_address_p): Make static.
  18565. (TARGET_LEGITIMATE_ADDRESS_P): New.
  18566. * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  18567. * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
  18568. 2009-05-18 Dodji Seketeli <dodji@redhat.com>
  18569. PR debug/40109
  18570. * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
  18571. child of the containing namespace's DIE.
  18572. 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
  18573. * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
  18574. *zero_extendhi_truncqi): Move after the zero_extend patterns.
  18575. (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
  18576. extend patterns.
  18577. 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
  18578. PR target/39942
  18579. * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
  18580. gen_align with gen_pad.
  18581. (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
  18582. #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
  18583. * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
  18584. * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
  18585. * config/i386/i386.md (align): Renamed to ...
  18586. (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
  18587. ASM_OUTPUT_MAX_SKIP_PAD.
  18588. 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
  18589. * config.gcc: Fix variable syntax.
  18590. PR target/39531
  18591. * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
  18592. before calling exact_log2.
  18593. (output_iorsi3): Likewise.
  18594. (output_xorsi3): Likewise.
  18595. 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
  18596. * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
  18597. for the none zero constant operand except for EQ and NE
  18598. comprisons even when the first operand is R0.
  18599. 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
  18600. * config/s390/2064.md: Remove trailing whitespaces.
  18601. * config/s390/2084.md: Likewise.
  18602. * config/s390/constraints.md: Likewise.
  18603. * config/s390/fixdfdi.h: Likewise.
  18604. * config/s390/libgcc-glibc.ver: Likewise.
  18605. * config/s390/s390-modes.def: Likewise.
  18606. * config/s390/s390-protos.h: Likewise.
  18607. * config/s390/s390.c: Likewise.
  18608. * config/s390/s390.h: Likewise.
  18609. * config/s390/s390.md: Likewise.
  18610. * config/s390/tpf-unwind.h: Likewise.
  18611. 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
  18612. * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
  18613. 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
  18614. M68K TLS support.
  18615. * configure.ac (m68k-*-*): Check if binutils support TLS.
  18616. * configure: Regenerate.
  18617. * config/m68k/predicates.md (symbolic_operand): Extend comment.
  18618. * config/m68k/constraints.md (Cu): New constraint.
  18619. * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
  18620. (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
  18621. (movsi): Handle TLS symbols.
  18622. (addsi3_5200): Handle XTLS symbols, indent.
  18623. * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
  18624. (m68k_tls_reference_p): Declare.
  18625. (m68k_legitimize_address): Declare.
  18626. (m68k_unwrap_symbol): Declare.
  18627. * config/m68k/m68k.opt (mxtls): New option.
  18628. * config/m68k/m68k.c (ggc.h): Include.
  18629. (m68k_output_dwarf_dtprel): Implement hook.
  18630. (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
  18631. (m68k_expand_prologue): Load GOT pointer when function needs it.
  18632. (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
  18633. (m68k_legitimate_constant_address_p): Same.
  18634. (m68k_decompose_address): Handle TLS references.
  18635. (m68k_get_gp): New static function.
  18636. (enum m68k_reloc): New contants.
  18637. (TLS_RELOC_P): New macro.
  18638. (m68k_wrap_symbol): New static function.
  18639. (m68k_unwrap_symbol): New function.
  18640. (m68k_final_prescan_insn_1): New static function.
  18641. (m68k_final_prescan_insn): New function.
  18642. (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
  18643. functions.
  18644. (legitimize_pic_address): Handle TLS references..
  18645. (m68k_tls_get_addr, m68k_get_tls_get_addr)
  18646. (m68k_libcall_value_in_a0_p)
  18647. (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
  18648. (m68k_call_m68k_read_tp): Helper variables and functions for ...
  18649. (m68k_legitimize_tls_address): Handle TLS references.
  18650. (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
  18651. New functions.
  18652. (m68k_legitimize_address): Handle TLS symbols.
  18653. (m68k_get_reloc_decoration): New static function.
  18654. (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
  18655. UNSPEC_RELOC32.
  18656. (m68k_output_dwarf_dtprel): Implement hook.
  18657. (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
  18658. (m68k_libcall_value): Return result in A0 instead of D0 when asked by
  18659. m68k_call_* routines.
  18660. (sched_attr_op_type): Handle TLS symbols.
  18661. (gt-m68k.h): Include.
  18662. * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
  18663. (LEGITIMATE_PIC_OPERAND_P): Support TLS.
  18664. 2009-05-18 Martin Jambor <mjambor@suse.cz>
  18665. * ipa-prop.c (ipa_check_stmt_modifications): Removed.
  18666. (visit_store_addr_for_mod_analysis): New function.
  18667. (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
  18668. (determine_cst_member_ptr): Use gimple_assign_single_p.
  18669. (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
  18670. (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
  18671. operands. Don't check number of operands of a NOP_EXPR.
  18672. 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
  18673. * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
  18674. 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
  18675. PR c/40172
  18676. * c-common.c (warn_logical_operator): Don't warn if one of
  18677. expression isn't always true or false.
  18678. 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
  18679. * config/i386/biarch32.h: New file.
  18680. * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
  18681. 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
  18682. * config/mips/mips.md (*zero_extend<mode>_trunchi,
  18683. *zero_extend<mode>_truncqi): Merge these into ...
  18684. (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
  18685. Name the pattern following this as *zero_extendhi_truncqi.
  18686. 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
  18687. PR middle-end/39301
  18688. * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
  18689. * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
  18690. (output_info): Make field HOST_WIDEST_INT.
  18691. (print_statistics): Use HOST_WIDEST_INT_PRINT.
  18692. (dump_bitmat_statistics): Same.
  18693. 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
  18694. * config.gcc (use_gcc_stdint): Set to wrap.
  18695. * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
  18696. INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
  18697. UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
  18698. INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
  18699. UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
  18700. INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
  18701. UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
  18702. UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
  18703. 2009-05-16 Joseph Myers <joseph@codesourcery.com>
  18704. * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
  18705. tune_64.
  18706. * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
  18707. Move definitions earlier.
  18708. (OPT_ARCH64, OPT_ARCH32): Define.
  18709. (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
  18710. and tune_64.
  18711. 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
  18712. PR target/40153
  18713. * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
  18714. implies.
  18715. 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
  18716. * arm.md (movdi2): Copy non-reg values to DImode registers.
  18717. 2009-05-16 Jakub Jelinek <jakub@redhat.com>
  18718. PR target/39942
  18719. * final.c (label_to_max_skip): New function.
  18720. (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
  18721. CODE_LABEL_NUMBER <= max_labelno.
  18722. * output.h (label_to_max_skip): New prototype.
  18723. * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
  18724. (ix86_avoid_jump_mispredicts): ... this. Don't define if
  18725. ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
  18726. Handle CODE_LABELs with >= 16 byte alignment or with
  18727. max_skip == (1 << align) - 1.
  18728. (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
  18729. ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
  18730. PR target/39942
  18731. * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
  18732. .p2align 3 if MAX_SKIP is smaller than 7.
  18733. * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
  18734. 2009-05-15 Ian Lance Taylor <iant@google.com>
  18735. * alias.c (struct alias_set_entry_d): Rename from struct
  18736. alias_set_entry. Change all uses.
  18737. * except.c (struct call_site_record_d): Rename from struct
  18738. call_site_record. Change all uses.
  18739. * except.h (struct eh_region_d): Rename from struct eh_region.
  18740. Change all uses.
  18741. * gcse.c (struct hash_table_d): Rename from struct hash_table.
  18742. Change all uses.
  18743. * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
  18744. ivtype_map_elt. Change all uses.
  18745. (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
  18746. Change all uses.
  18747. (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
  18748. * graphite.h (struct name_tree_d): Rename from struct name_tree.
  18749. Change all uses.
  18750. (struct sese_d): Rename from struct sese. Change all uses.
  18751. * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
  18752. (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
  18753. * optabs.h (struct optab_d): Rename from struct optab. Change all
  18754. uses.
  18755. (struct convert_optab_d): Rename from struct convert_optab.
  18756. Change all uses.
  18757. * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
  18758. ipa_opt_pass. Change all uses.
  18759. * tree-predcom.c (struct dref_d): Rename from struct dref. Change
  18760. all uses.
  18761. * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
  18762. defined as a typedef.
  18763. (grokdeclarator): If -Wc++-compat, warn if a typedef is already
  18764. defined as a tag.
  18765. 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
  18766. PR 16302
  18767. * fold-const.c (make_range,build_range_check,merge_ranges): Move
  18768. declaration to...
  18769. (merge_ranges): Returns bool.
  18770. * tree.h (make_range): .. to here.
  18771. (build_range_check): Likewise.
  18772. (merge_ranges): Likewise. Renamed from merge_ranges.
  18773. * c-typeck.c (parser_build_binary_op): Update calls to
  18774. warn_logical_operator.
  18775. * c-common.c (warn_logical_operator): Add new warning.
  18776. * c-common.h (warn_logical_operator): Update declaration.
  18777. 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
  18778. * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
  18779. 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  18780. * doc/install.texi: Document MPC requirements, flags etc.
  18781. * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
  18782. (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
  18783. Evaluate constant arguments.
  18784. (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
  18785. (fold_builtin_1): Likewise, also evaluate constant arguments.
  18786. Remove superfluous break.
  18787. (do_mpc_ckconv): New.
  18788. * real.h: Include mpc.h.
  18789. * toplev.c (print_version): Output MPC version info if available.
  18790. 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
  18791. * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
  18792. 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
  18793. * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
  18794. only once.
  18795. 2009-05-15 Jan Hubicka <jh@suse.cz>
  18796. * doc/invoke.texi (max-early-inliner-iterations): New flag.
  18797. * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
  18798. (try_inline): Fix return value.
  18799. (cgraph_decide_inlining_incrementally): Honor new value.
  18800. (cgraph_early_inlining): Handle indirect inlining.
  18801. * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
  18802. 2009-05-15 Jan Hubicka <jh@suse.cz>
  18803. * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
  18804. * cgraphunit.c (cgraph_finalize_function): Set it.
  18805. (cgraph_expand_function): Use it.
  18806. 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
  18807. * real.c (encode_ieee_half): Define.
  18808. (decode_ieee_half): Define.
  18809. (ieee_half_format): Define.
  18810. (arm_half_format): Define.
  18811. * real.h (ieee_half_format): Declare.
  18812. (arm_half_format): Declare.
  18813. 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
  18814. * optabs.c (prepare_float_lib_cmp): Test that the comparison,
  18815. swapped, and reversed optabs exist before trying to use them.
  18816. 2009-05-15 Paul Brook <paul@codesourcery.com>
  18817. Sandra Loosemore <sandra@codesourcery.com>
  18818. * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
  18819. loads. Allow PRE_DEC.
  18820. (output_move_neon): Handle PRE_DEC.
  18821. (arm_print_operand): Add 'A' for neon structure loads.
  18822. * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
  18823. * config/arm/neon.md (neon_mov): Update comment.
  18824. * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
  18825. calls.
  18826. (Um): New constraint.
  18827. 2009-05-15 Jan Hubicka <jh@suse.cz>
  18828. Revert the following patch until testsuite fallout is fixed:
  18829. * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
  18830. * cgraph.h (struct inline_summary): New filed self_wize,
  18831. size_inlining_benefit, self_time and time_inlining_benefit.
  18832. (struct cgraph_global_info): Replace insns by time ans size fields.
  18833. * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
  18834. (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
  18835. (ipcp_update_callgraph): Do not touch function bodies.
  18836. * ipa-inline.c: Include except.h
  18837. (MAX_TIME): New constant.
  18838. (overall_insns): Remove
  18839. (overall_size, max_benefit): New static variables.
  18840. (cgraph_estimate_time_after_inlining): New function.
  18841. (cgraph_estimate_size_after_inlining): Rewrite using benefits.
  18842. (cgraph_clone_inlined_nodes): Update size.
  18843. (cgraph_mark_inline_edge): Update size.
  18844. (cgraph_estimate_growth): Use size info.
  18845. (cgraph_check_inline_limits): Check size.
  18846. (cgraph_default_inline_p): Likewise.
  18847. (cgraph_edge_badness): Compute badness based on benefit and size cost.
  18848. (cgraph_decide_recursive_inlining): Check size.
  18849. (cgraph_decide_inlining_of_small_function): Update size; dump sizes
  18850. and times.
  18851. (cgraph_decide_inlining): Likewise.
  18852. (cgraph_decide_inlining_incrementally): Likewise; honor
  18853. PARAM_EARLY_INLINING_INSNS.
  18854. (likely_eliminated_by_inlining_p): New predicate.
  18855. (estimate_function_body_sizes): New function.
  18856. (compute_inline_parameters): Use it.
  18857. * except.c (must_not_throw_labels): New function.
  18858. * except.h (must_not_throw_labels): Declare.
  18859. * tree-inline.c (init_inline_once): Kill inlining_weigths
  18860. * tree-ssa-structalias.c: Avoid uninitialized warning.
  18861. * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
  18862. (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
  18863. (PARAM_INLINE_CALL_COST): Remove.
  18864. (PARAM_EARLY_INLINING_INSNS): New.
  18865. 2009-05-15 Richard Guenther <rguenther@suse.de>
  18866. * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
  18867. not TODO_update_ssa.
  18868. 2009-05-15 Richard Guenther <rguenther@suse.de>
  18869. PR tree-optimization/39999
  18870. * gimple.h (gimple_expr_type): Use the expression type looking
  18871. through useless conversions.
  18872. * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
  18873. (vn_nary_op_insert_stmt): Likewise.
  18874. (simplify_binary_expression): Likewise.
  18875. 2009-05-15 Richard Guenther <rguenther@suse.de>
  18876. * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
  18877. New options, enabled by default.
  18878. * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
  18879. Document.
  18880. * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
  18881. * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
  18882. * tree-ssa-structalias.c (gate_tree_pta): New function.
  18883. (pass_build_alias): Use it.
  18884. 2009-05-15 Joseph Myers <joseph@codesourcery.com>
  18885. * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
  18886. recurse on an invariant address if a conversion from a pointer
  18887. type to a wider integer type is involved.
  18888. 2009-05-15 Jan Hubicka <jh@suse.cz>
  18889. * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
  18890. * cgraph.h (struct inline_summary): New filed self_wize,
  18891. size_inlining_benefit, self_time and time_inlining_benefit.
  18892. (struct cgraph_global_info): Replace insns by time ans size fields.
  18893. * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
  18894. (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
  18895. (ipcp_update_callgraph): Do not touch function bodies.
  18896. * ipa-inline.c: Include except.h
  18897. (MAX_TIME): New constant.
  18898. (overall_insns): Remove
  18899. (overall_size, max_benefit): New static variables.
  18900. (cgraph_estimate_time_after_inlining): New function.
  18901. (cgraph_estimate_size_after_inlining): Rewrite using benefits.
  18902. (cgraph_clone_inlined_nodes): Update size.
  18903. (cgraph_mark_inline_edge): Update size.
  18904. (cgraph_estimate_growth): Use size info.
  18905. (cgraph_check_inline_limits): Check size.
  18906. (cgraph_default_inline_p): Likewise.
  18907. (cgraph_edge_badness): Compute badness based on benefit and size cost.
  18908. (cgraph_decide_recursive_inlining): Check size.
  18909. (cgraph_decide_inlining_of_small_function): Update size; dump sizes
  18910. and times.
  18911. (cgraph_decide_inlining): Likewise.
  18912. (cgraph_decide_inlining_incrementally): Likewise; honor
  18913. PARAM_EARLY_INLINING_INSNS.
  18914. (likely_eliminated_by_inlining_p): New predicate.
  18915. (estimate_function_body_sizes): New function.
  18916. (compute_inline_parameters): Use it.
  18917. * except.c (must_not_throw_labels): New function.
  18918. * except.h (must_not_throw_labels): Declare.
  18919. * tree-inline.c (init_inline_once): Kill inlining_weigths
  18920. * tree-ssa-structalias.c: Avoid uninitialized warning.
  18921. * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
  18922. (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
  18923. (PARAM_INLINE_CALL_COST): Remove.
  18924. (PARAM_EARLY_INLINING_INSNS): New.
  18925. doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
  18926. (inline-call-cost): Remove.
  18927. (early-inlining-insns): New.
  18928. 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
  18929. * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
  18930. for bounds.
  18931. (print_int_cst_bounds_in_octal_p): Likewise.
  18932. (dbxout_type): Adjust calls to above functions. Be prepared to deal
  18933. with subtypes.
  18934. * dwarf2out.c (base_type_die): Likewise.
  18935. (is_subrange_type): Delete.
  18936. (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
  18937. (modified_type_die): Call subrange_type_for_debug_p on subtypes.
  18938. * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
  18939. if the destination type is boolean.
  18940. (build_range_check): Do not special-case subtypes.
  18941. (fold_sign_changed_comparison): Likewise.
  18942. (fold_unary): Likewise.
  18943. * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
  18944. (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
  18945. * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
  18946. * tree.c (subrange_type_for_debug_p): New predicate based on the
  18947. former is_subrange_type.
  18948. * tree.h (subrange_type_for_debug_p): Declare.
  18949. * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
  18950. (convert_affine_scev): Remove call to above function.
  18951. (chrec_convert_aggressive): Likewise.
  18952. * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
  18953. false for conversions involving subtypes.
  18954. * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
  18955. (vrp_val_min): Likewise.
  18956. (needs_overflow_infinity): Likewise.
  18957. (extract_range_from_unary_expr): Likewise.
  18958. 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
  18959. * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
  18960. * config/frv/frv.c: Likewise.
  18961. * config/s390/s390.c: Likewise.
  18962. * config/sparc/sparc.h: Likewise.
  18963. * config/i386/i386.h: Likewise.
  18964. * config/i386/i386.c: Likewise.
  18965. * config/crx/crx.c: Likewise.
  18966. * config/m68hc11/m68hc11.h: Likewise.
  18967. * config/iq2000/iq2000.c: Likewise.
  18968. * config/mn10300/mn10300.h: Likewise.
  18969. * config/mn10300/mn10300.c: Likewise.
  18970. * config/m68k/m68k.c: Likewise.
  18971. * config/rs6000/rs6000.c: Likewise.
  18972. * config/rs6000/xcoff.h: Likewise.
  18973. * config/rs6000/linux64.h: Likewise.
  18974. * config/rs6000/sysv4.h: Likewise.
  18975. * config/score/score3.c: Likewise.
  18976. * config/score/score7.c: Likewise.
  18977. * config/score/score.c: Likewise.
  18978. * config/arm/arm.md: Likewise.
  18979. * config/mips/mips.c: Likewise.
  18980. * config/mips/mips.md: Likewise.
  18981. * config/bfin/bfin.h: Likewise.
  18982. * config/pa/pa.c: Likewise.
  18983. * config/pa/constraints.md: Likewise.
  18984. * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
  18985. * config/pdp11/pdp11.c (legitimate_address_p): Delete.
  18986. * config/pdp11/pdp11.h: Use memory_address_p instead.
  18987. 2009-05-14 Ian Lance Taylor <iant@google.com>
  18988. * passes.c (finish_optimization_passes): Change i to int.
  18989. * plugin.c (plugins_active_p): Change event to int.
  18990. (dump_active_plugins): Likewise.
  18991. * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
  18992. Add cast.
  18993. * tree.c (tree_range_check_failed): Change c to unsigned int.
  18994. (omp_clause_range_check_failed): Likewise.
  18995. (build_common_builtin_nodes): Change mode to int. Add cast.
  18996. * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
  18997. (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
  18998. * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
  18999. ++ or -- with a variable of enum type.
  19000. 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
  19001. PR driver/40144
  19002. * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
  19003. 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
  19004. * store-motion.c: Do not include params.h
  19005. * Makefile.in: Fix dependencies for various files.
  19006. 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
  19007. * auto-inc-dec.c: Fix pass description, remove apparent
  19008. accidental duplication.
  19009. 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
  19010. PR middle-end/40147
  19011. * ipa-utils.h (memory_identifier_string): Moved to ...
  19012. * tree.h (memory_identifier_string): Here. Add GTY(()).
  19013. 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
  19014. * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
  19015. in the former documentation of...
  19016. (GO_IF_LEGITIMATE_ADDRESS): ... this.
  19017. * ira-conflicts.c (get_dup_num): Use address_operand.
  19018. * targhooks.c (default_legitimate_address_p): New.
  19019. * targhooks.h (default_legitimate_address_p): New.
  19020. * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
  19021. Call hook.
  19022. * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
  19023. * target.h (struct target): Add legitimate_address_p.
  19024. * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
  19025. (TARGET_INITIALIZER): Include it.
  19026. * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19027. * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
  19028. * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
  19029. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19030. * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19031. (REG_OK_STRICT_P): Delete.
  19032. * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
  19033. (frv_legitimate_address_p_1): ... this.
  19034. * config/frv/frv.c (frv_legitimate_address_p): Forward to...
  19035. (frv_legitimate_address_p_1): ... the renamed old
  19036. frv_legitimate_address_p.
  19037. * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
  19038. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19039. * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19040. * config/s390/s390-protos.h (legitimate_address_p): Remove.
  19041. * config/s390/s390.c (legitimate_address_p): Rename to...
  19042. (s390_legitimate_address_p): ... this, make static.
  19043. (legitimize_address): Adjust call.
  19044. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19045. * config/s390/constraints.md ("e"): Call strict_memory_address_p.
  19046. * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19047. * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
  19048. * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
  19049. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19050. * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19051. * config/spu/spu-protos.h (spu_legitimate_address): Remove.
  19052. * config/spu/spu.c (spu_legitimate_address): Rename to...
  19053. (spu_legitimate_address_p): ... this, make static.
  19054. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19055. * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19056. * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
  19057. * config/sparc/sparc.c (legitimate_address_p): Rename to...
  19058. (sparc_legitimate_address_p): ... this, make static and return bool.
  19059. (legitimize_address): Adjust call.
  19060. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19061. * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19062. * config/i386/i386-protos.h (legitimate_address_p): Remove.
  19063. * config/i386/i386.c (legitimate_address_p): Rename to...
  19064. (ix86_legitimate_address_p): ... this, make static.
  19065. (constant_address_p): Move after it, adjust call.
  19066. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19067. * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19068. * config/avr/avr-protos.h (legitimate_address_p): Remove.
  19069. * config/avr/avr.c (legitimate_address_p): Rename to...
  19070. (avr_legitimate_address_p): ... this, make static.
  19071. (legitimize_address): Adjust call.
  19072. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19073. * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19074. * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
  19075. * config/crx/crx.c (crx_legitimate_address_p): Make static.
  19076. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19077. * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19078. * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
  19079. * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
  19080. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19081. * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19082. * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
  19083. Remove.
  19084. * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
  19085. Make static.
  19086. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19087. * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19088. * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
  19089. Remove.
  19090. * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
  19091. Rename to...
  19092. (m68hc11_legitimate_address_p): ... this, make static.
  19093. (go_if_legitimate_address_internal): Rename to...
  19094. (m68hc11_legitimate_address_p_1): ... this.
  19095. (legitimize_address): Adjust call.
  19096. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19097. * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19098. * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
  19099. * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
  19100. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19101. * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19102. * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
  19103. * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
  19104. (mn10300_legitimate_address_p): ... this, make static.
  19105. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19106. * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19107. * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
  19108. * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
  19109. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19110. * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19111. (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
  19112. (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
  19113. * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19114. * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
  19115. * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
  19116. (rs6000_legitimate_address_p): ... this, make static.
  19117. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19118. (REG_MODE_OK_FOR_BASE_P): Delete.
  19119. (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
  19120. * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19121. * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
  19122. Delete.
  19123. * config/picochip/picochip.c (picochip_legitimate_address_p): Make
  19124. static, adjust types.
  19125. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19126. * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19127. * config/score/score.c (score_address_p): Rename to...
  19128. (score_legitimate_address_p): ... this.
  19129. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19130. * config/score/score3.c (score3_address_p): Rename to...
  19131. (score3_legitimate_address_p): ... this.
  19132. * config/score/score7.c (score7_address_p): Rename to...
  19133. (score7_legitimate_address_p): ... this.
  19134. * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
  19135. THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
  19136. GO_IF_LEGITIMATE_ADDRESS): Delete.
  19137. * config/arm/arm-protos.h (thumb1_legitimate_address_p,
  19138. thumb2_legitimate_address_p): Delete.
  19139. (arm_legitimate_address_p): Rename to...
  19140. (arm_legitimate_address_outer_p): ... this.
  19141. * config/arm/constraints.md ("Uq"): Adjust call.
  19142. * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
  19143. * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
  19144. to...
  19145. (arm_legitimate_address_outer_p): ... this.
  19146. (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
  19147. static.
  19148. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19149. * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19150. * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
  19151. * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
  19152. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19153. * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19154. * config/vax/vax-protos.h (legitimate_address_p): Remove.
  19155. * config/vax/vax.c (legitimate_address_p): Rename to...
  19156. (vax_legitimate_address_p): ... this, make static.
  19157. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19158. * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19159. * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
  19160. * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
  19161. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19162. * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19163. * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
  19164. * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
  19165. (mmix_legitimate_address_p): ... this, make static.
  19166. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19167. * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
  19168. * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
  19169. * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
  19170. (TARGET_LEGITIMATE_ADDRESS_P): New.
  19171. 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
  19172. * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
  19173. of MODE_COMPLEX_INT.
  19174. 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  19175. * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
  19176. LCT_NORMAL in function call.
  19177. * mips-tdump.c (print_file_desc): Add cast to enum type.
  19178. * mips-tfile.c (add_ext_symbol): Add casts to enum types.
  19179. (mark_stabs): Add casts to enum types.
  19180. (parse_stabs_common): Add casts to enum types.
  19181. 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
  19182. * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
  19183. Check for invalid values of LETTER.
  19184. 2009-05-13 Taras Glek <tglek@mozilla.com>
  19185. * attribs.c (register_attribute): moved out attribute registration
  19186. into register_attribute.
  19187. * doc/plugins.texi: Documented register_attribute and
  19188. PLUGIN_ATTRIBUTES.
  19189. * gcc-plugin.h: Added forward decl for register_attribute.
  19190. * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
  19191. * plugin.c (register_callback, invoke_plugin_callbacks): Added
  19192. PLUGIN_ATTRIBUTES boilerplate.
  19193. 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
  19194. * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
  19195. values even in sentinel and empty entries.
  19196. (ms_printf_flag_specs): Likewise.
  19197. (ms_scanf_flag_specs): Likewise.
  19198. (ms_strftime_flag_specs): Likewise.
  19199. (ms_print_char_table): Likewise.
  19200. (ms_scan_char_table): Likewise.
  19201. (ms_time_char_table): Likewise.
  19202. 2009-05-13 Doug Kwan <dougkwan@google.com>
  19203. * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
  19204. 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
  19205. * config/mips/mips.md (store): Add attributes for QI and HI.
  19206. Update comment.
  19207. (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
  19208. (truncdi<mode>2): ... this new pattern.
  19209. 2009-05-13 Brad Hards <bradh@kde.org>
  19210. * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
  19211. 2009-05-14 Jakub Jelinek <jakub@redhat.com>
  19212. Ben Elliston <bje@au.ibm.com>
  19213. PR middle-end/40035
  19214. * dse.c (check_mem_read_rtx): Guard against width == -1.
  19215. 2009-05-13 Michael Matz <matz@suse.de>
  19216. PR middle-end/39976
  19217. * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
  19218. (trivially_conflicts_p): New function.
  19219. (insert_backedge_copies): Use it.
  19220. 2009-05-13 Janis Johnson <janis187@us.ibm.com>
  19221. * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
  19222. (handle_stdc_pragma): Use new enum constant names.
  19223. (handle_pragma_float_const_decimal64): Ditto.
  19224. 2009-05-13 Ian Lance Taylor <iant@google.com>
  19225. * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
  19226. tree.def.
  19227. 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
  19228. * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
  19229. * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
  19230. multilibs.
  19231. * config/m68k/m68k.h (FL_UCLINUX): Define.
  19232. 2009-05-13 Jan Hubicka <jh@suse.cz>
  19233. * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
  19234. 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
  19235. * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
  19236. unless -fschedule-insns is specified.
  19237. 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
  19238. PR target/39561
  19239. * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
  19240. TARGET_EXPAND_CBRANCHDI4.
  19241. * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
  19242. * config/sh/sh.opt (mexpand-cbranchdi): Remove.
  19243. (cmpeqdi): Fix comment.
  19244. 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
  19245. * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
  19246. (sh_legitimate_address_p): Likewise.
  19247. * config/sh/sh.c (sh_legitimate_index_p): New.
  19248. (sh_legitimate_address_p): Likewise.
  19249. * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
  19250. (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
  19251. (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
  19252. (MAYBE_BASE_REGISTER_RTX_P): New macro.
  19253. (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
  19254. (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
  19255. (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
  19256. (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
  19257. (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
  19258. 2009-05-12 Jan Hubicka <jh@suse.cz>
  19259. * tree-inline.c (estimate_operator_cost): Add operands;
  19260. when division happens by constant, it is cheap.
  19261. (estimate_num_insns): Loads and stores are not having cost of 0;
  19262. EH magic stuff is cheap; when computing runtime cost of switch,
  19263. use log2 base of amount of its cases; builtin_expect has cost of 0;
  19264. compute cost for moving return value of call.
  19265. (init_inline_once): Initialize time_based flags.
  19266. * tree-inline.h (eni_weights_d): Add time_based flag.
  19267. 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
  19268. * df-core.c: Update head documentation.
  19269. 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
  19270. PR bootstrap/40118
  19271. * rs6000.c (rs6000_generate_compare): Use op1b instead of
  19272. shadowing exisiting variable op1.
  19273. 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
  19274. PR target/37179
  19275. * config/i386/driver-i386.c (processor_signatures): New enum.
  19276. (SIG_GEODE): Move from vendor_signatures to processor_signatures.
  19277. (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
  19278. processor signature to detect geode processor.
  19279. 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
  19280. Revert:
  19281. 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
  19282. * optabs.c (prepare_cmp_insn): Temporarily disable test that
  19283. causes spurious differences between trunk and cond-optab branch.
  19284. 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
  19285. * dojump.c (compare_from_rtx): Delete.
  19286. * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
  19287. any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
  19288. if the comparison does not satisfy the predicate; test predicates for
  19289. operands 2 and 3 of a cstore pattern. Don't try cstore optab
  19290. further if one existing pattern fails.
  19291. * expr.h (compare_from_rtx): Delete.
  19292. (prepare_operand): Declare it.
  19293. * optabs.c: Change "lib call" to "libcall" throughout.
  19294. (bcc_gen_fctn, setcc_gen_code, trap_rtx,
  19295. HAVE_conditional_trap, emit_cmp_insn): Delete.
  19296. (can_compare_p): Delete cmp_optab case.
  19297. (prepare_float_lib_cmp): Return an rtx and a machine mode.
  19298. Accept other parameters by value.
  19299. (prepare_operand): Make non-static.
  19300. (prepare_cmp_insn): Return an rtx and a machine mode. Accept
  19301. other parameters by value. Try to widen operands here based on
  19302. an optab_methods argument and looking at cbranch_optab.
  19303. (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
  19304. loop. Use cbranch_optab directly.
  19305. (emit_cmp_and_jump_insns): Fix comment. Adjust call to
  19306. prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
  19307. assertion.
  19308. (emit_conditional_move, emit_conditional_add): Inline what's needed
  19309. of compare_from_rtx, using new prepare_cmp_insn for the rest.
  19310. (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
  19311. with COMPARE. Move cmov_optab and cstore_optab above
  19312. with cbranch_optab, move cmp_optab down with ucmp_optab,
  19313. remove tst_otpab. Do not initialize trap_rtx.
  19314. (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
  19315. for trap code. Do not check HAVE_conditional_trap. Use
  19316. prepare_cmp_insn. Accept no predicate for operand 3.
  19317. * optabs.h (OTI_cmp): Mark as used only for libcalls.
  19318. (OTI_ctrap, ctrap_optab): New.
  19319. (tst_optab): Delete.
  19320. (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
  19321. * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
  19322. with lookup of ctrap_optab.
  19323. * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
  19324. Delete.
  19325. (ctrap_optab): New.
  19326. * combine.c (combine_simplify_rtx, simplify_set): Do not
  19327. special case comparing against zero for cc0 machines.
  19328. * simplify-rtx.c (simplify_binary_operation_1): Never remove
  19329. COMPARE on cc0 machines.
  19330. (simplify_relational_operation): Return a new expression when
  19331. a COMPARE could be removed.
  19332. * final.c (final_scan_insn): Compare cc_status values
  19333. against LHS of a (compare FOO (const_int 0)) cc0 source.
  19334. Also check if cc_status.value is the full compare.
  19335. * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
  19336. (cstoreMM4): Document.
  19337. (conditional_trap): Document ctrapMM4 instead.
  19338. (sync_compare_and_swapMM): Refer to cbranchcc4.
  19339. (Dependent Patterns): Eliminate obsolete information referring to
  19340. the old jump optimization phase.
  19341. (Canonicalization): Include cbranchcc4 case, omit canonicalization
  19342. of compares with 0 on cc0 machines.
  19343. (Jump Patterns): Refer to MODE_CC jump patterns preferably,
  19344. avoiding references to cc0. Remove text about storing operands
  19345. in cmpMM.
  19346. * doc/tm.texi (Condition Codes): Include blurb on different
  19347. condition code representations, separate into subsections for
  19348. CC0, MODE_CC and conditional execution.
  19349. * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
  19350. alpha_emit_setcc): Accept operands and a machine mode.
  19351. * config/alpha/alpha.c (alpha_emit_conditional_branch):
  19352. Get code/op0/op1 from operands, use machine mode argument
  19353. instead of alpha_compare.fp_p. Emit the branch here.
  19354. (alpha_emit_setcc): Likewise, and return boolean.
  19355. (alpha_emit_conditional_move): Likewise. Assert that
  19356. cmp_op_mode == cmp_mode, and simplify accordingly.
  19357. * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
  19358. * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
  19359. (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
  19360. Delete.
  19361. (stack probe test): Use cbranchdi4.
  19362. * config/alpha/predicates.md (alpha_cbranch_operator): New.
  19363. * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
  19364. * config/arc/arc.h (movsicc, movsfcc): Use it.
  19365. (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
  19366. (cbranchsi4, cstoresi4): New.
  19367. (cmpsi, bCC and sCC expanders): Remove.
  19368. * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
  19369. * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
  19370. * config/arm/predicates.md (arm_comparison_operator): Only include
  19371. floating-point operators if there is a hardware floating-point unit.
  19372. * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
  19373. deferring to cbranch_cc and cstore_cc respectively.
  19374. (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
  19375. cbranch_cc, cstore_cc): New.
  19376. (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
  19377. arm_compare_op1.
  19378. (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
  19379. * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
  19380. * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
  19381. as an argument.
  19382. (adjust_insn_length): Adjust calls.
  19383. (avr_reorg): Handle (compare (foo) (const_int 0)).
  19384. * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
  19385. (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
  19386. (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
  19387. (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
  19388. (bCC): Remove.
  19389. (cbranchqi4, cbranchhi4, cbranchsi4): New.
  19390. (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
  19391. * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
  19392. (cbranchsi4, cstorebi4, cstoresi4): New.
  19393. (movbisi): This insn is duplicate, split it to zero_extend.
  19394. * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
  19395. (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
  19396. (bfin_optimize_loop): Use cbranch expander.
  19397. * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
  19398. * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
  19399. (bfin_bimode_comparison_operator): ... this.
  19400. (bfin_direct_comparison_operator): New.
  19401. * config/cris/cris.c (cris_normal_notice_update_cc): Look
  19402. inside (compare FOO (const_int 0)).
  19403. (cris_rtx_costs): Handle ZERO_EXTRACT.
  19404. * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
  19405. (*tstdi_non_v32): Fold in *cmpdi_non_v32.
  19406. (*tstdi_v32): Delete.
  19407. (*cmpdi_non_v32): Add M alternative for operand 1.
  19408. (cmpsi, cmp<mode>): Make private.
  19409. (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
  19410. with COMPARE.
  19411. (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
  19412. * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
  19413. (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
  19414. (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
  19415. (cc_reg_operand): New.
  19416. (any_cond): Delete.
  19417. * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
  19418. crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
  19419. * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
  19420. * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
  19421. crx_expand_scond): Delete.
  19422. * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
  19423. (cbranchsi4): New.
  19424. * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
  19425. * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
  19426. * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
  19427. cstoresi4, cstoresf4, cstoredf4): New.
  19428. (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
  19429. * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
  19430. Receive the entire operands array.
  19431. * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
  19432. * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
  19433. * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
  19434. Get test/op0/op1 from the operands array.
  19435. (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
  19436. * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
  19437. (h8300_expand_store): New.
  19438. * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
  19439. (const_int 0)).
  19440. (h8300_expand_branch): Emit compare here. Adjust for new arguments.
  19441. (h8300_expand_store): New.
  19442. * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
  19443. or do not try to produce (set (cc0) REG).
  19444. (peepholes): Wrap arguments with COMPARE. Add a peephole to
  19445. change a compare into a move to a scratch register. Disable some
  19446. peepholes when comparing with zero.
  19447. (tstsi, tsthi, tstsi, cmpqi): Make private.
  19448. (cmphi): Delete.
  19449. (bCC, sCC): Delete.
  19450. (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
  19451. cstoresi4): New.
  19452. * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
  19453. ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
  19454. (ix86_emit_i387_log1p): Use gen_cbranchxf4.
  19455. (ix86_emit_i387_log1p): Use cbranchxf2.
  19456. (ix86_expand_setcc): Return void.
  19457. * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
  19458. * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
  19459. cmp<MODEF>, cmpcc): Remove.
  19460. (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
  19461. cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
  19462. cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
  19463. (sCC and bCC expanders): Remove.
  19464. (stack_protect_test): Use cbranchcc4.
  19465. * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
  19466. Delete.
  19467. (ia64_expand_compare): Accept three rtx by reference and return void.
  19468. * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
  19469. (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
  19470. from *expr. Update *expr with the BImode comparison to do.
  19471. * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
  19472. cmptf, bCC, sCC, conditional_trap): Delete.
  19473. (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
  19474. cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
  19475. cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
  19476. ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
  19477. * config/ia64/predicates.md (ia64_cbranch_operator): New.
  19478. * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
  19479. type of last argument.
  19480. * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
  19481. (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
  19482. use machine mode argument instead of branch_type. Remove dead
  19483. code for floating-point comparisons.
  19484. * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
  19485. * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
  19486. Remove.
  19487. (cbranchsi4, cstoresi4): New.
  19488. * config/iq2000/predicates.md (reg_or_const_operand): New.
  19489. * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
  19490. * config/m32c/m32c.md (any_cond, gl_cond): Delete.
  19491. (b<code>_op): Rewrite to...
  19492. (bcc_op): ... this, using match_operator.
  19493. (s<code>_op): Rewrite to...
  19494. (scc_op): ... this, using match_operator.
  19495. (s<code>_24_op): Rewrite to...
  19496. (scc_op_24): ... this, using match_operator.
  19497. (s<code>_<mode>): Rewrite to...
  19498. (cstore<mode>4): ... this, using match_operator.
  19499. (s<code>_<mode>_24): Rewrite to...
  19500. (cstore<mode>4_24): ... this, using match_operator.
  19501. * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
  19502. m32c_unpend_compare, m32c_expand_scc): Delete.
  19503. * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
  19504. m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
  19505. (m32c_expand_movcc): Change NE to EQ if necessary.
  19506. (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
  19507. * config/m32r/m32r-protos.h (gen_cond_store): New.
  19508. * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
  19509. (gen_cond_store): New, from sCC patterns.
  19510. (m32r_expand_block_move): Use cbranchsi4.
  19511. * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
  19512. * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
  19513. (cbranchsi4, cstoresi4): New.
  19514. * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
  19515. Delete.
  19516. (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
  19517. (m68hc11_notice_update_cc): Look into a compare with 0.
  19518. * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
  19519. Delete.
  19520. * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
  19521. cmphi, cmpqi, bCC): Delete.
  19522. (cbranchsi4, cbranchhi4, cbranchqi4): New.
  19523. (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
  19524. bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
  19525. sets with COMPARE.
  19526. * config/m68k/predicates.md (m68k_cstore_comparison_operator,
  19527. const0_operand, const1_operand, m68k_subword_comparison_operand): New.
  19528. * config/m68k/constraints.md (H): New.
  19529. * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
  19530. the define_insn below.
  19531. (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
  19532. (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
  19533. *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
  19534. patterns): Wrap RHS with COMPARE.
  19535. (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
  19536. (*cmpdi_internal): Name this pattern.
  19537. (cmpdi): Change to define_insn.
  19538. (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
  19539. cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
  19540. (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
  19541. predicate.
  19542. (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
  19543. sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
  19544. (conditional_trap): Change to...
  19545. (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
  19546. (*conditional_trap): Use the ordered_comparison_operator and
  19547. const1_operand predicates.
  19548. * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
  19549. (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
  19550. (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
  19551. * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
  19552. * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
  19553. mcore_modify_comparison, mcore_gen_compare_reg): Remove.
  19554. (mcore_gen_compare): New.
  19555. * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
  19556. (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
  19557. (mcore_gen_compare): ... this.
  19558. * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
  19559. (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
  19560. (stack probe pattern): Use cbranchsi4.
  19561. * config/mips/predicates.md (mips_cstore_operator): New.
  19562. * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
  19563. * config/mips/mips.md (any_cond): Delete.
  19564. (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
  19565. always succeed.
  19566. (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
  19567. fixuns_truncsfdi2): Use cbranch patterns.
  19568. (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
  19569. (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
  19570. Adjust call to mips_expand_conditional_branch.
  19571. (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
  19572. cstore<GPR:mode>4.
  19573. * config/mips/mips-protos.h (mips_expand_conditional_branch,
  19574. mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
  19575. * config/mips/mips.c (cmp_operands): Delete.
  19576. (mips_emit_compare): Get comparison operands from *op0/*op1.
  19577. (mips_expand_scc): Get code/op0/op1/target from operands. Assert
  19578. that it succeeds. Use op0/op1 instead of cmp_operands.
  19579. (mips_expand_conditional_branch, mips_expand_conditional_move,
  19580. mips_expand_conditional_trap): Likewise.
  19581. (mips_block_move_loop): Use cbranch patterns.
  19582. * config/mips/mips.h (cmp_operands): Delete.
  19583. * config/mmix/mmix.c (mmix_valid_comparison): Delete.
  19584. (mmix_gen_compare_reg): Just return a register in the right CC mode.
  19585. * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
  19586. * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
  19587. (*cmpcc_folded): Rename to...
  19588. (*cmpdi_folded): this.
  19589. (*cmpcc): Rename to...
  19590. (*cmps): ... this.
  19591. (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
  19592. (bCC): Remove.
  19593. (cbranchdi4): New.
  19594. (cbranchdf4): New. Handle invalid comparisons here.
  19595. * config/mmix/predicates.md (float_comparison_operator): New.
  19596. * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
  19597. zero_extract to be cheap in (compare (zero_extract) (const_int 0).
  19598. * config/mn10300/mn10300.md (tst): Delete.
  19599. (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
  19600. Name these patterns and wrap RHS in a compare.
  19601. (*cmpsi): Make this pattern private. Include tst.
  19602. (*cmpsf): Make this pattern private.
  19603. (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
  19604. (compare with zero peepholes): Likewise.
  19605. (bCC): Remove.
  19606. (cbranchsi4, cbranchsf4): New.
  19607. (casesi): Use cbranchsi4.
  19608. * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
  19609. hppa_branch_type): Delete.
  19610. (return_addr_rtx): Use cbranchsi4.
  19611. (emit_bcond_fp): Accept all operands. Replace CODE with NE.
  19612. Emit CCFPmode comparison here.
  19613. (gen_cmp_fp): Delete, now part of emit_bcond_fp.
  19614. * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
  19615. hppa_branch_type): Delete.
  19616. * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
  19617. (movsicc, movdicc): Remove references to hppa_compare_op0,
  19618. hppa_compare_op1 and compare_from_rtx.
  19619. (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
  19620. (casesi): Use cbranchsi4.
  19621. * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
  19622. * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
  19623. * config/pdp11/pdp11.md (register_or_const0_operand): New.
  19624. (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
  19625. (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
  19626. (bCC): Delete.
  19627. (cbranchdf4, cbranchhi4, cbranchqi4): New.
  19628. (*branch, *branch_inverted): New.
  19629. * config/picochip/picochip.md (cbranchhi4): Use
  19630. ordered_comparison_operator.
  19631. (cmphi, bCC): Remove.
  19632. * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
  19633. (trap_comparison_operator): Delete.
  19634. * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
  19635. rs6000_emit_cbranch): Accept mode and operands.
  19636. * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
  19637. rs6000_compare_fp_p): Delete.
  19638. (rs6000_generate_compare): Accept mode and comparison. Extract code
  19639. and op0/op1 from there. Replace references to rs6000_compare_op0
  19640. and rs6000_compare_op1.
  19641. (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
  19642. extract result from passed operands.
  19643. (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
  19644. extract loc from passed operands.
  19645. (rs6000_emit_cmove): Likewise.
  19646. * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
  19647. rs6000_compare_fp_p): Delete.
  19648. * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
  19649. (cbranch<GPR>4, cbranch<FP>4): New.
  19650. (cstore<mode>4): New. Consolidate here all choices about when to use
  19651. portable or specialized sCC sequences.
  19652. (stack_protect_test): Use cbranchsi4.
  19653. (conditional_trap): Replace with ctrap<GPR>4.
  19654. (conditional trap insn): Replace trap_comparison_operator with
  19655. ordered_comparison_operator.
  19656. * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
  19657. (s390_emit_prologue): Use ctrap.
  19658. * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
  19659. * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
  19660. New predicates replacing...
  19661. * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
  19662. (cmp<GPR>, cmp<FP>, cmpcc): Delete.
  19663. (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
  19664. (add<mode>cc): Do not use s390_compare_op0/op1.
  19665. (s<code>): Change to...
  19666. (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
  19667. (seq): Change to...
  19668. (cstorecc4): ... this. Handle EQ or NE equally.
  19669. (*sne): Un-privatize for use in cstorecc4.
  19670. (b<code>): Change to...
  19671. (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
  19672. (conditional_trap): Replace with...
  19673. (ctrap<GPR>4, ctrap<FP>4): ... these.
  19674. (stack_protect): Use cbranchcc4.
  19675. * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
  19676. * config/score/score-protos.h (score_gen_cmp): Delete.
  19677. * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
  19678. (score_block_move-loop): Use cbranchsi4.
  19679. * config/score/score.md (cbranchsi4): New.
  19680. (cmpsi, bCC): Delete.
  19681. * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
  19682. (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
  19683. * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
  19684. (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
  19685. * config/score/score3.h (score3_gen_cmp): Delete.
  19686. * config/score/score7.h (score7_gen_cmp): Delete.
  19687. * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
  19688. (sh_emit_scc_to_t): ... this. Return void.
  19689. (from_compare): Rename to...
  19690. (sh_emit_compare_and_branch): ... this.
  19691. (sh_emit_compare_and_set): New.
  19692. (sh_expand_t_scc): Accept operands.
  19693. * config/sh/predicates.md (sh_float_comparison_operator): New.
  19694. * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
  19695. (prepare_scc_operands): Rename to...
  19696. (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
  19697. arguments.
  19698. (sh_emit_cheap_store_flag): New.
  19699. (sh_emit_set_t_insn): New.
  19700. (from_compare): Rename to...
  19701. (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
  19702. handling of TARGET_SH2E floating point to avoid recursive call.
  19703. Generate branch here.
  19704. (sh_emit_compare_and_set): New.
  19705. (sh_expand_t_scc): Get op0/op1 from arguments.
  19706. (sh_emit_cheap_store_flag): New.
  19707. * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
  19708. cases.
  19709. (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
  19710. (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
  19711. (movsicc, movdicc): Do nothing when it recreated operands from
  19712. sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
  19713. prepare_scc_operands (now sh_emit_scc_to_t).
  19714. (udivdi3): Use cstoresi4.
  19715. (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
  19716. bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
  19717. (cbranchint4_media, cbranchfp4_media): New.
  19718. (casesi): Use cbranchdi4.
  19719. (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
  19720. Delete.
  19721. (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
  19722. (movnegt): Remove second operand.
  19723. (cbranchsf4, cbranchdf4): New.
  19724. (stack_protect): Use cbranchdi4/cbranchsi4.
  19725. * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
  19726. (gen_compare_reg): Accept comparison, extract part of it to...
  19727. (gen_compare_reg_1): ... this.
  19728. (gen_compare_operator): Delete.
  19729. (gen_v9_scc): Accept separate destination, comparison code and arms.
  19730. Do not use sparc_compare_op0/sparc_compare_op1.
  19731. (emit_scc_insn, emit_conditional_branch_insn): New.
  19732. (emit_v9_brxx): Make static. Remove useless assertion.
  19733. (sparc_emit_float_lib_cmp): Return RTL instead of calling
  19734. emit_cmp_insn.
  19735. (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
  19736. * config/sparc/sparc-protos.h (gen_compare_reg,
  19737. sparc_emit_float_lib_cmp): Adjust prototype.
  19738. (emit_scc_insn, emit_conditional_branch_insn): New.
  19739. (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
  19740. * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
  19741. * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
  19742. iterators to the top.
  19743. (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
  19744. snesi_special_extend, sCC, bCC, seqdi_special_trunc,
  19745. snedi_special_trunc): Delete.
  19746. (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
  19747. and snedi_special_trunc.
  19748. (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
  19749. cbranchdi4, cbranch<F:mode>4): New.
  19750. (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
  19751. here. Use gen_compare_reg instead of gen_compare_operator.
  19752. (conditional_trap): Replace with...
  19753. (ctrapsi4, ctrapdi4): ... this.
  19754. (stack_protect_test): Use cbranchcc4.
  19755. * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
  19756. argument to rtx.
  19757. * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
  19758. (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
  19759. Change spu_compare_op0/op1 to op0/op1 throughout. Get target
  19760. from operands[0] or operands[3] depending on is_set.
  19761. * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
  19762. * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
  19763. cmpdf, bCC), sCC: Remove.
  19764. (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
  19765. cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
  19766. cstoredf4): New.
  19767. (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
  19768. spu_emit_branch_or_set.
  19769. * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
  19770. Add two arguments.
  19771. * config/stormy16/stormy16.h (xstormy16_compare_op0,
  19772. xstormy16_compare_op1): Delete.
  19773. * config/stormy16/stormy16.c (xstormy16_compare_op0,
  19774. xstormy16_compare_op1): Delete.
  19775. (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
  19776. Adjust calls.
  19777. * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
  19778. (cmphi, cmpsi, bCC): Remove.
  19779. * config/v850/v850.md (tstsi, cmpsi): Fold into...
  19780. (*cmpsi): ... this one.
  19781. (cbranchsi4, cstoresi4): New.
  19782. (bCC expanders): Delete.
  19783. (sCC insns): Fold into...
  19784. (*setcc): ... this one.
  19785. (casesi): Do not use gen_cmpsi and gen_bgtu.
  19786. (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
  19787. (movsicc): Simplify.
  19788. * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
  19789. * config/vax/vax-protos.h (cond_name): New.
  19790. (vax_output_conditional_branch): Remove.
  19791. * config/vax/vax.c (cond_name): New.
  19792. (vax_output_conditional_branch): Remove.
  19793. * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
  19794. * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
  19795. (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
  19796. (bit<VAXint>): Wrap source with (compare).
  19797. (b<code> and following unnamed pattern): Rename to *branch and
  19798. *branch_reversed. Change macroization to match_operator.
  19799. (cbranch<VAXint>4, cbranch<VAXfp>4): New.
  19800. * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
  19801. * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
  19802. Change last argument to machine_mode.
  19803. (xtensa_expand_scc): Add machine_mode argument.
  19804. * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
  19805. (gen_conditional_move, xtensa_expand_conditional_branch,
  19806. xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
  19807. instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
  19808. Adjust operand numbers.
  19809. * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
  19810. Delete.
  19811. * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
  19812. (cmpsi, cmpsf, b<code>, s<code>): Delete.
  19813. (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
  19814. 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
  19815. * optabs.c (prepare_cmp_insn): Temporarily disable test that
  19816. causes spurious differences between trunk and cond-optab branch.
  19817. 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
  19818. PR target/37137
  19819. * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
  19820. 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
  19821. * tree.c (iterative_hash_pointer): Delete.
  19822. (iterative_hash_expr): Short-circuit handling of NULL pointer.
  19823. Hash UIDs and versions of SSA names. Don't special-case built-in
  19824. function declarations.
  19825. 2009-05-11 Ian Lance Taylor <iant@google.com>
  19826. PR bootstrap/40103
  19827. * graphite.c: Force -Wc++-compat to only be a warning before
  19828. #including "cloog/cloog.h".
  19829. 2009-05-11 Martin Jambor <mjambor@suse.cz>
  19830. * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
  19831. 2009-05-11 Jan Hubicka <jh@suse.cz>
  19832. * tree-ssa-loop-ivcanon.c: Include target.h
  19833. (struct loop_size): new structure.
  19834. (constant_after_peeling): New predicate.
  19835. (tree_estimate_loop_size): New function.
  19836. (estimated_unrolled_size): Rewrite for new estimates.
  19837. (try_unroll_loop_completely): Use new estimates.
  19838. * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
  19839. 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
  19840. * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
  19841. libcpp interface change.
  19842. (spu_macro_to_expand): Likewise.
  19843. 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
  19844. PR tree-optimization/40026
  19845. * gimplify.c (gimplify_init_constructor): Change initial conditional
  19846. to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
  19847. optimize_compound_literals_in_ctor.
  19848. 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
  19849. * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
  19850. New devices.
  19851. * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
  19852. 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
  19853. * tree-vect-data-refs.c (vect_analyze_group_access): Use
  19854. HOST_WIDE_INT for gap.
  19855. 2009-05-11 Ira Rosen <irar@il.ibm.com>
  19856. PR tree-optimization/40074
  19857. * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
  19858. account in group size and step comparison.
  19859. 2009-05-11 Richard Guenther <rguenther@suse.de>
  19860. * passes.c (init_optimization_passes): Strip now incorrect comment.
  19861. (execute_function_todo): Do not set PROP_alias.
  19862. * tree-pass.h (PROP_alias): Remove.
  19863. * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
  19864. * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
  19865. * tree-nrv.c (pass_return_slot): Likewise.
  19866. * tree-object-size.c (pass_object_sizes): Likewise.
  19867. * tree-ssa-dom.c (pass_dominator): Likewise.
  19868. (pass_phi_only_cprop): Likewise.
  19869. * tree-ssa-dse.c (pass_dse): Likewise.
  19870. * tree-ssa-phiopt.c (pass_phiopt): Likewise.
  19871. (pass_cselim): Likewise.
  19872. * tree-ssa-pre.c (pass_pre): Likewise.
  19873. (pass_fre): Likewise.
  19874. * tree-ssa-reassoc.c (pass_reassoc): Likewise.
  19875. * tree-ssa-sink.c (pass_sink_code): Likewise.
  19876. * tree-stdarg.c (pass_stdarg): Likewise.
  19877. * tree-tailcall.c (pass_tail_calls): Likewise.
  19878. * tree-vrp.c (pass_vrp): Likewise.
  19879. 2009-05-10 Ian Lance Taylor <iant@google.com>
  19880. * basic-block.h (enum profile_status): Break out of struct
  19881. control_flow_graph.
  19882. * cgraph.h (struct inline_summary): Break out of struct
  19883. cgraph_local_info.
  19884. * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
  19885. of struct cgraph_order_sort.
  19886. * combine.c (enum undo_kind): New enum, broken out of struct undo.
  19887. * cse.c (struct branch_path): Break out of struct
  19888. cse_basic_block_data.
  19889. * except.h (enum eh_region_type): Break out of struct eh_region.
  19890. * gcc.c (enum add_del): Break out of struct modify_target.
  19891. * genrecog.c (enum decision_type): Break out of struct decision_test.
  19892. * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
  19893. ggc_pch_data.
  19894. * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
  19895. * regmove.c (enum match_use): New enum, broken out of struct match.
  19896. * sched-int.h (enum post_call_group): New enum, broken out of
  19897. struct deps.
  19898. (struct deps_reg): Break out of struct deps.
  19899. * target.h (struct asm_int_op): Break out of struct gcc_target.
  19900. * tree-eh.c (struct goto_queue_node): Break out of struct
  19901. leh_tf_state.
  19902. * tree-inline.h (enum copy_body_cge_which): Break out of
  19903. copy_body_data.
  19904. * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
  19905. * c-decl.c (in_struct, struct_types): New static variables.
  19906. (pushtag): Add loc parameter. Change all callers.
  19907. (lookup_tag): Add ploc parameter. Change all callers.
  19908. (check_compound_literal_type): New function.
  19909. (parser_xref_tag): Add loc parameter. Change all callers. If
  19910. -Wc++-compat, warn about struct/union/enum types defined within a
  19911. struct or union.
  19912. (start_struct): Add enclosing_in_struct, enclosing_struct_types,
  19913. and loc parameters. Change all callers. Change error calls to
  19914. error_at, using loc. For a redefinition, if the location of the
  19915. original definition is known, report it. Set in_struct and
  19916. struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
  19917. (finish_struct): Add new parameters enclosing_in_struct and
  19918. enclosing_struct_types. Change all callers. Set
  19919. C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
  19920. in the struct. If in a struct, add this struct to struct_types.
  19921. (start_enum): Add loc parameter. Change all callers. Use
  19922. error_at for errors, using loc. For a redefinition, if the
  19923. location of the original definition is known, report it. If in a
  19924. struct, add this enum type to struct_types. If -Wc++-compat warn
  19925. if in sizeof, typeof, or alignof.
  19926. * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
  19927. (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
  19928. (c_parser_enum_specifier): Get enum location for start_enum.
  19929. (c_parser_struct_or_union_specifier): Get struct location for
  19930. start_struct. Save in_struct and struct_types status between
  19931. start_struct and finish_struct.
  19932. (c_parser_cast_expression): Get location of cast.
  19933. (c_parser_alignof_expression): Get location of type.
  19934. (c_parser_postfix_expression): Likewise.
  19935. (c_parser_postfix_expression_after_paren_type): Add type_loc
  19936. parameter. Change all callers. Call check_compound_literal_type.
  19937. Use type_loc for error about variable size type.
  19938. * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
  19939. of an enum constant from an enum type defined in a struct or union.
  19940. (c_cast_expr): Add loc parameter. Change all callers. If
  19941. -Wc++-compat, warn about defining a type in a cast.
  19942. * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
  19943. (start_enum, start_struct, finish_struct): Update declarations.
  19944. (parser_xref_tag, c_cast_expr): Update declarations.
  19945. (check_compound_literal_type): Declare.
  19946. 2009-05-11 Ben Elliston <bje@au.ibm.com>
  19947. * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
  19948. for recent libcpp interface change.
  19949. (rs6000_macro_to_expand): Likewise.
  19950. 2009-05-10 Michael Matz <matz@suse.de>
  19951. PR target/40031
  19952. * config/arm/arm.c (require_pic_register): Emit on entry edge,
  19953. not at entry of function.
  19954. 2009-05-10 Richard Guenther <rguenther@suse.de>
  19955. PR tree-optimization/40081
  19956. Revert
  19957. * tree-sra.c (instantiate_element): Instantiate scalar replacements
  19958. using the main variant of the element type. Do not fiddle with
  19959. TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
  19960. * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
  19961. structs with volatile fields.
  19962. 2009-05-10 Jan Hubicka <jh@suse.cz>
  19963. * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
  19964. (estimate_move_cost): Assert that it does not get called for
  19965. VOID_TYPE_P.
  19966. (estimate_num_insns): Skip VOID types in argument handling.
  19967. (optimize_inline_calls): Delete unreachable blocks and verify that
  19968. callgraph is valid.
  19969. 2009-05-10 Jan Hubicka <jh@suse.cz>
  19970. * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
  19971. * cgraph.c (cgraph_mark_address_taken_node): New function.
  19972. (dump_cgraph_node): Dump new flag.
  19973. * cgraph.h (struct cgraph_node): Add address_taken.
  19974. (cgraph_mark_address_taken_node): New function.
  19975. * ipa.c (cgraph_postorder): Prioritize functions with address taken
  19976. since new direct calls can be born.
  19977. 2009-05-10 Joseph Myers <joseph@codesourcery.com>
  19978. * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
  19979. tok->val.node.node.
  19980. 2009-05-10 Jan Hubicka <jh@suse.cz>
  19981. PR middle-end/40084
  19982. * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
  19983. argument; rewrite.
  19984. (cgraph_update_edges_for_call_stmt): Take old_decl argument.
  19985. * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
  19986. * tree-inline.c (copy_bb): Set frequency correctly.
  19987. (fold_marked_statements): Update call to
  19988. cgraph_update_edges_for_call_stmt.
  19989. 2009-05-10 Joseph Myers <joseph@codesourcery.com>
  19990. * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
  19991. identifiers in diagnostics.
  19992. * config/arm/arm.c (arm_handle_fndecl_attribute,
  19993. arm_handle_isr_attribute): Likewise.
  19994. * config/avr/avr.c (avr_handle_progmem_attribute,
  19995. avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
  19996. * config/bfin/bfin.c (handle_int_attribute,
  19997. bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
  19998. bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
  19999. bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
  20000. Likewise.
  20001. * config/darwin.c (darwin_handle_kext_attribute,
  20002. darwin_handle_weak_import_attribute): Likewise.
  20003. * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
  20004. h8300_handle_eightbit_data_attribute,
  20005. h8300_handle_tiny_data_attribute): Likewise.
  20006. * config/i386/i386.c (ix86_handle_cconv_attribute,
  20007. ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
  20008. * config/i386/winnt.c (ix86_handle_shared_attribute,
  20009. ix86_handle_selectany_attribute): Likewise.
  20010. * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
  20011. * config/m32c/m32c.c (function_vector_handler): Likewise.
  20012. * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
  20013. m68hc11_handle_fntype_attribute): Likewise.
  20014. * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
  20015. * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
  20016. * config/mips/mips.c (mips_insert_attributes,
  20017. mips_merge_decl_attributes, mips_expand_builtin): Likewise.
  20018. * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
  20019. rs6000_handle_struct_attribute): Likewise.
  20020. * config/sh/sh.c (sh_insert_attributes,
  20021. sh_handle_resbank_handler_attribute,
  20022. sh_handle_interrupt_handler_attribute,
  20023. sh2a_handle_function_vector_handler_attribute,
  20024. sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
  20025. Likewise.
  20026. * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
  20027. * config/spu/spu.c (spu_handle_fndecl_attribute,
  20028. spu_handle_vector_attribute): Likewise.
  20029. * config/stormy16/stormy16.c
  20030. (xstormy16_handle_interrupt_attribute): Likewise.
  20031. * config/v850/v850-c.c (ghs_pragma_section): Likewise.
  20032. * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
  20033. 2009-05-10 Joseph Myers <joseph@codesourcery.com>
  20034. * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
  20035. (pp_translate_identifiers): New.
  20036. (pp_identifier): Only conditionally translate identifier to locale
  20037. character set.
  20038. * pretty-print.c (pp_construct): Set pp_translate_identifiers.
  20039. (pp_base_tree_identifier): Only conditionally translate identifier
  20040. to locale character set.
  20041. * c-pretty-print.c (M_): Define.
  20042. (pp_c_type_specifier, pp_c_primary_expression): Mark English
  20043. fragments for conditional translation with M_.
  20044. * tree-pretty-print.c (maybe_init_pretty_print): Disable
  20045. identifier translation.
  20046. 2009-05-10 Richard Guenther <rguenther@suse.de>
  20047. PR tree-optimization/40081
  20048. * tree-sra.c (instantiate_element): Instantiate scalar replacements
  20049. using the main variant of the element type. Do not fiddle with
  20050. TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
  20051. 2009-05-09 Jan Hubicka <jh@suse.cz>
  20052. PR middle-end/40080
  20053. * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
  20054. indirect calls; verify cgraph afterwards.
  20055. 2009-05-09 Jan Hubicka <jh@suse.cz>
  20056. PR bootstrap/40082
  20057. * ipa.c (update_inlined_to_pointer): New function.
  20058. (cgraph_remove_unreachable_nodes): Use it.
  20059. 2009-05-09 Jan Hubicka <jh@suse.cz>
  20060. * tree-eh.c (struct leh_state): Remove prev_try.
  20061. (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
  20062. not track prev_try.
  20063. * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
  20064. copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
  20065. remove_eh_handler_and_replace, foreach_reachable_handler,
  20066. verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
  20067. * except.h (struct eh_region): Remove eh_region_u_cleanup.
  20068. (gen_eh_region_cleanup): Update prototype.
  20069. 2009-05-09 Jan Hubicka <jh@suse.cz>
  20070. PR middle-end/40043
  20071. * except.c (copy_eh_region): Always set prev_try.
  20072. (redirect_eh_edge_to_label): Find outer try.
  20073. (foreach_reachable_handler): When looking for prev try
  20074. handle case where previous try is not going to be taken.
  20075. 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
  20076. PR tree-optimization/40049
  20077. * tree-vect-stmts.c (vectorizable_operation): If the machine has
  20078. only vector/vector shifts, convert the type of the constant to the
  20079. appropriate type to avoid building incorrect trees, which
  20080. eventually have problems with garbage collection.
  20081. 2009-05-08 Joseph Myers <joseph@codesourcery.com>
  20082. * fold-const.c (fold_binary): Do not fold multiplication by 1 or
  20083. -1 for complex floating-point types if honoring signed zeros.
  20084. 2009-05-08 Jan Hubicka <jh@suse.cz>
  20085. * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
  20086. argument; handle correctly when profile is absent.
  20087. (build_cgraph_edges): Update.
  20088. (rebuild_cgraph_edges): Update.
  20089. * cgraph.c: Do not include varray.h.
  20090. (cgraph_set_call_stmt_including_clones): New function.
  20091. (cgraph_create_edge_including_clones): Likewise
  20092. (cgraph_update_edges_for_call_stmt_node): New static cfunction.
  20093. (cgraph_update_edges_for_call_stmt): Handle clones.
  20094. (cgraph_remove_node): Handle clone tree.
  20095. (cgraph_remove_node_and_inline_clones): New function.
  20096. (dump_cgraph_node): Dump clone tree.
  20097. (cgraph_clone_node): Handle clone tree.
  20098. (clone_function_name): Bring here from tree-inline.c.
  20099. (cgraph_create_virtual_clone): New function.
  20100. * cgraph.h (ipa_replace_map): Move here from ipa.h.
  20101. (cgraph_clone_info): New function.
  20102. (strut cgraph_node): Add clone_info and new clone tree pointers.
  20103. (cgraph_remove_node_and_inline_clones,
  20104. cgraph_set_call_stmt_including_clones,
  20105. cgraph_create_edge_including_clones,
  20106. cgraph_create_virtual_clone): Declare.
  20107. (cgraph_function_versioning): Use VEC argument.
  20108. (compute_call_stmt_bb_frequency): Update prototype.
  20109. (cgraph_materialize_all_clones): New function.
  20110. * ipa-cp.c (ipcp_update_cloned_node): Remove.
  20111. (ipcp_create_replace_map): Update to VECtors.
  20112. (ipcp_update_callgraph): Use virtual clones.
  20113. (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
  20114. (ipcp_update_profiling): Do not update local profiling.
  20115. (ipcp_insert_stage): Use VECtors and virtual clones.
  20116. * cgraphunit.c (verify_cgraph_node): Verify clone tree.
  20117. (clone_of_p): New function.
  20118. (cgraph_preserve_function_body_p): Use clone tree.
  20119. (cgraph_optimize): Materialize clones.
  20120. (cgraph_function_versioning): Update for VECtors.
  20121. (save_inline_function_body): Use clone tree.
  20122. (cgraph_materialize_clone): New function.
  20123. (cgraph_materialize_all_clones): Likewise.
  20124. * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
  20125. * ipa.c: Include gimple.h.
  20126. (cgraph_remove_unreachable_nodes): Use clone tree.
  20127. * ipa-prop.c (ipa_note_param_call): Update call to
  20128. compute_call_stmt_bb_frequencycall.
  20129. * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
  20130. * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
  20131. (copy_bb): Handle updating of clone tree; add new edge when new call
  20132. appears.
  20133. (expand_call_inline): Be strict about every call having edge.
  20134. (clone_fn_id_num, clone_function_name): Move to cgraph.c.
  20135. (delete_unreachable_blocks_update_callgraph): New function.
  20136. (tree_function_versioning): Use VECtors; always remove unreachable
  20137. blocks and fold conditionals.
  20138. * tree-inline.h: Do not include varray.h.
  20139. (tree_function_versioning): Remove.
  20140. * Makefile.in (GTFILES): Remove tree-inline.c
  20141. * passes.c (do_per_function): Do only functions having body.
  20142. * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
  20143. tree.
  20144. 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
  20145. Andrew Morrow <acm@google.com>
  20146. PR c/36892
  20147. * c-common.c (c_common_attribute_table): Permit deprecated
  20148. attribute to take an optional argument.
  20149. (handle_deprecated_attribute): If the optional argument to
  20150. __attribute__((deprecated)) is not a string ignore the attribute
  20151. and emit a warning.
  20152. * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
  20153. * c-typeck.c (build_component_ref): Likewise.
  20154. (build_external_ref): Likewise.
  20155. * toplev.c (warn_deprecated_use): Add an attribute argument.
  20156. Emit the message associated with __attribute__((deprecated)).
  20157. * toplev.h (warn_deprecated_use): Updated.
  20158. * doc/extend.texi: Document new optional parameter to
  20159. __attribute__((deprecated))
  20160. 2009-05-08 Michael Eager <eager@eagercon.com>
  20161. * config/rs6000/rs6000.md (*movdf_softfloat32): replace
  20162. !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
  20163. 2009-05-08 Richard Guenther <rguenther@suse.de>
  20164. PR tree-optimization/40062
  20165. * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
  20166. Avoid exponential behavior.
  20167. 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
  20168. PR rtl-optimization/33928
  20169. PR 26854
  20170. * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
  20171. process_uses, build_single_def_use_links): New.
  20172. (update_df): Update use_def_ref.
  20173. (forward_propagate_into): Use get_def_for_use instead of use-def
  20174. chains.
  20175. (fwprop_init): Call build_single_def_use_links and let it initialize
  20176. dataflow.
  20177. (fwprop_done): Free use_def_ref.
  20178. (fwprop_addr): Eliminate duplicate call to df_set_flags.
  20179. * df-problems.c (df_rd_simulate_artificial_defs_at_top,
  20180. df_rd_simulate_one_insn): New.
  20181. (df_rd_bb_local_compute_process_def): Update head comment.
  20182. (df_chain_create_bb): Use the new RD simulation functions.
  20183. * df.h (df_rd_simulate_artificial_defs_at_top,
  20184. df_rd_simulate_one_insn): New.
  20185. * opts.c (decode_options): Enable fwprop at -O1.
  20186. * doc/invoke.texi (-fforward-propagate): Document this.
  20187. 2009-05-08 Joseph Myers <joseph@codesourcery.com>
  20188. PR c/24581
  20189. * c-typeck.c (build_binary_op): Handle arithmetic between one real
  20190. and one complex operand specially.
  20191. * tree-complex.c (some_nonzerop): Do not identify a real value as
  20192. zero if flag_signed_zeros.
  20193. 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
  20194. PR rtl-optimization/33928
  20195. * loop-invariant.c (record_use): Fix && vs. || mishap.
  20196. 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
  20197. PR rtl-optimization/33928
  20198. * loop-invariant.c (struct use): Add addr_use_p.
  20199. (struct def): Add n_addr_uses.
  20200. (struct invariant): Add cheap_address.
  20201. (create_new_invariant): Set cheap_address.
  20202. (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
  20203. (record_uses): Pass df_ref to record_use.
  20204. (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
  20205. used only as such.
  20206. 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
  20207. * config/sh/sh.c: Do not include c-pragma.h.
  20208. 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
  20209. * config/spu/spu.c: Remove include of c-common.h.
  20210. 2009-05-07 Janis Johnson <janis187@us.ibm.com>
  20211. PR c/39037
  20212. * c-common.h (mark_valid_location_for_stdc_pragma,
  20213. valid_location_for_stdc_pragma_p, set_float_const_decimal64,
  20214. clear_float_const_decimal64, float_const_decimal64_p): New.
  20215. * c.opt (Wunsuffixed-float-constants): New.
  20216. * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
  20217. unsuffixed float constant, handle new warning.
  20218. * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
  20219. * c-decl.c (c_scope): New flag float_const_decimal64.
  20220. (set_float_const_decimal64, clear_float_const_decimal64,
  20221. float_const_decimal64_p): New.
  20222. (push_scope): Set new flag.
  20223. * c-parser.c (c_parser_translation_unit): Mark when it's valid
  20224. to use STDC pragmas.
  20225. (c_parser_external_declaration): Ditto.
  20226. (c_parser_compound_statement_nostart): Ditto.
  20227. * c-pragma.c (valid_location_for_stdc_pragma,
  20228. mark_valid_location_for_stdc_pragma,
  20229. valid_location_for_stdc_pragma_p, handle_stdc_pragma,
  20230. handle_pragma_float_const_decimal64): New.
  20231. (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
  20232. * cp/semantics.c (valid_location_for_stdc_pragma_p,
  20233. set_float_const_decimal64, clear_float_const_decimal64,
  20234. float_const_decimal64_p): New dummy functions.
  20235. * doc/extend.texi (Decimal Float): Remove statement that the
  20236. pragma, and suffix for double constants, are not supported.
  20237. * doc/invoke.texi (Warning Options): List new option.
  20238. (-Wunsuffixed-float-constants): New.
  20239. 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
  20240. * config/i386/i386.c: Do not include c-common.h.
  20241. 2009-05-07 Mark Heffernan <meheff@google.com>
  20242. * doc/invoke.texi (Debugging Options): Document change of debugging
  20243. dump location.
  20244. * opts.c (decode_options): Make dump_base_name relative to
  20245. aux_base_name directory.
  20246. 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
  20247. * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
  20248. * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
  20249. 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
  20250. * Makefile.in (install-plugin): Simplify a bit.
  20251. 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
  20252. * Makefile.in (OBJS-common): Add regcprop.o.
  20253. (regcprop.o): New.
  20254. * timevar.def (TV_CPROP_REGISTERS): New.
  20255. * regrename.c (regrename_optimize): Return 0.
  20256. (rest_of_handle_regrename): Delete.
  20257. (pass_rename_registers): Point to regrename_optimize.
  20258. (struct value_data_entry, struct value_data,
  20259. kill_value_one_regno, kill_value_regno, kill_value,
  20260. set_value_regno, init_value_data, kill_clobbered_value,
  20261. kill_set_value, kill_autoinc_value, copy_value,
  20262. mode_change_ok, maybe_mode_change, find_oldest_value_reg,
  20263. replace_oldest_value_reg, replace_oldest_value_addr,
  20264. replace_oldest_value_mem, copyprop_hardreg_forward_1,
  20265. debug_value_data, validate_value_data): Move...
  20266. * regcprop.c: ... here.
  20267. (rest_of_handle_cprop): Delete.
  20268. (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
  20269. 2009-05-07 Jakub Jelinek <jakub@redhat.com>
  20270. PR middle-end/40057
  20271. * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
  20272. GEN_INT for 1 << bitnum.
  20273. (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
  20274. build_int_cst_type.
  20275. 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
  20276. * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
  20277. Remove wrong description of "nand" operation.
  20278. 2009-05-06 Richard Guenther <rguenther@suse.de>
  20279. Adam Nemet <anemet@caviumnetworks.com>
  20280. * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
  20281. comment. Add that if LHS is not a gimple register, then RHS1 has
  20282. to be a single object (GIMPLE_SINGLE_RHS).
  20283. 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
  20284. * expr.c (get_def_for_expr): Move it up in the file.
  20285. (store_field): When expanding a bit-field store, look at the
  20286. defining gimple stmt for the masking conversion.
  20287. 2009-05-06 Janis Johnson <janis187@us.ibm.com>
  20288. PR middle-end/39986
  20289. * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
  20290. decode_decimal64, encode_decimal128, decode_decimal128): Avoid
  20291. 32-bit memcpy into long.
  20292. 2009-05-06 Jakub Jelinek <jakub@redhat.com>
  20293. * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
  20294. (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
  20295. new_reg_loc_descr.
  20296. (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
  20297. instead of appending DW_OP_deref*.
  20298. 2009-05-06 Michael Matz <matz@suse.de>
  20299. PR middle-end/40021
  20300. * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
  20301. (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
  20302. 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
  20303. * Makefile.in (install-plugin): Fix srcdir handling.
  20304. 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
  20305. * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
  20306. when processing for not_regs_needed bitmap.
  20307. * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
  20308. handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
  20309. handling it for rhs.
  20310. 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
  20311. * config/i386/i386.md (unnamed inc/dec peephole): Use
  20312. optimize_insn_for_size_p instead of optimize_size.
  20313. * config/i386/predicates.md (incdec_operand): Likewise.
  20314. (aligned_operand): Likewise.
  20315. * config/i386/sse.md (divv8sf3): Likewise.
  20316. (sqrtv8sf2): Likewise.
  20317. 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
  20318. * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
  20319. * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
  20320. 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
  20321. * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
  20322. ssemodesuffixf2c with avxmodesuffixf2c.
  20323. 2009-05-06 Joseph Myers <joseph@codesourcery.com>
  20324. PR c/40032
  20325. * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
  20326. 2009-05-05 Jakub Jelinek <jakub@redhat.com>
  20327. * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
  20328. (struct tree_base): Adjust spacing for 8 bit boundaries.
  20329. (struct tree_decl_common): Add decl_by_reference_flag bit.
  20330. (DECL_BY_REFERENCE): Adjust.
  20331. * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
  20332. print DECL_BY_REFERENCE bit.
  20333. * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
  20334. * dwarf2out.c (loc_by_reference, gen_decl_die): Check
  20335. DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
  20336. (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
  20337. unconditionally.
  20338. PR middle-end/39666
  20339. * gimplify.c (gimplify_switch_expr): If case labels cover the whole
  20340. range of the type, but default label is missing, add it with one
  20341. of the existing labels instead of adding a new label for it.
  20342. 2009-05-05 Joseph Myers <joseph@codesourcery.com>
  20343. * dwarf.h: Remove.
  20344. 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
  20345. * Makefile.in (enable_plugin, plugin_includedir): New.
  20346. (install): Depend on install-plugin.
  20347. (PLUGIN_HEADERS): New.
  20348. (install-plugin): New.
  20349. * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
  20350. 2009-05-05 Richard Guenther <rguenther@suse.de>
  20351. PR tree-optimization/40022
  20352. * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
  20353. the only vuse.
  20354. (phivn_valid_p): Fix tuplification error, simplify.
  20355. (phiprop_insert_phi): Add dumps.
  20356. (propagate_with_phi): Simplify.
  20357. 2009-05-05 Richard Guenther <rguenther@suse.de>
  20358. PR middle-end/40023
  20359. * builtins.c (gimplify_va_arg_expr): Properly build the address.
  20360. 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
  20361. * tree.h (strip_float_extensions): Remove duplicate declaration.
  20362. (build_low_bits_mask, debug_fold_checksum, expand_function_end,
  20363. expand_function_start, stack_protect_prologue, stack_protect_epilogue,
  20364. block_ultimate_origin): Rearrange the declarations line to match the
  20365. comment that indicates the .c file which the functions are defined.
  20366. (dwarf2out_*, set_decl_rtl): Add comment.
  20367. (get_base_address): Adjust comment.
  20368. (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
  20369. declarations line and add comment.
  20370. (is_builtin_name): Add blank after function name, for clarity.
  20371. 2009-05-04 Joseph Myers <joseph@codesourcery.com>
  20372. * attribs.c (decl_attributes): Use %qE for identifiers in
  20373. diagnostics.
  20374. * cgraphunit.c (verify_cgraph_node): Translate function names to
  20375. locale character set in diagnostics.
  20376. * coverage.c (get_coverage_counts): Use %qE for identifiers in
  20377. diagnostics.
  20378. * doc/invoke.texi (-finstrument-functions-exclude-function-list):
  20379. Document that functions are named in UTF-8.
  20380. * expr.c (expand_expr_real_1): Translate function names to locale
  20381. character set in diagnostics.
  20382. * gimplify.c (omp_notice_variable, omp_is_private,
  20383. gimplify_scan_omp_clauses): Use %qE for identifiers in
  20384. diagnostics.
  20385. * langhooks.c (lhd_print_error_function): Translate function names
  20386. to locale character set.
  20387. * langhooks.h (decl_printable_name): Document that return value is
  20388. in internal character set.
  20389. * stmt.c: Include pretty-print.h
  20390. (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
  20391. diagnostics.
  20392. (resolve_operand_name_1): Translate named operand name to locale
  20393. character set.
  20394. * stor-layout.c (finalize_record_size): Use %qE for identifiers in
  20395. diagnostics.
  20396. * toplev.c (announce_function): Translate function names to locale
  20397. character set.
  20398. (warn_deprecated_use): Use %qE for identifiers in diagnostics.
  20399. (default_tree_printer): Use pp_identifier or translate identifiers
  20400. to locale character set. Mark "<anonymous>" for translation.
  20401. * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
  20402. for identifiers in diagnostics.
  20403. * tree.c (handle_dll_attribute): Use %qE for identifiers in
  20404. diagnostics.
  20405. * varasm.c (output_constructor): Use %qE for identifiers in
  20406. diagnostics.
  20407. 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
  20408. * configure.ac: use ` ` instead of $()
  20409. * configure: Regenerate.
  20410. 2009-05-05 Ben Elliston <bje@au.ibm.com>
  20411. * config/pa/linux-atomic.c: Eliminate conditional include of
  20412. errno.h on non-LP64 systems to simplify build requirements.
  20413. 2009-05-04 Joseph Myers <joseph@codesourcery.com>
  20414. * c-common.c (handle_mode_attribute): Use %qE for identifiers in
  20415. diagnostics.
  20416. * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
  20417. and pass value to identifier_to_locale.
  20418. (warn_variable_length_array): Make name a tree.
  20419. (grokdeclarator): Separate diagnostic texts for named and unnamed
  20420. declarators. Use %qE for named declarators.
  20421. * c-parser.c (c_lex_one_token): Use %qE for identifiers in
  20422. diagnostics.
  20423. * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
  20424. identifiers in diagnostics.
  20425. * c-typeck.c (push_member_name, start_init): Pass identifiers to
  20426. identifier_to_locale. Mark "anonymous" strings for translation.
  20427. 2009-05-04 Michael Eager <eager@eagercon.com>
  20428. * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
  20429. address for DImode/DFmode only if double-precision FP regs.
  20430. 2009-05-04 Michael Eager <eager@eagercon.com>
  20431. * config/rs6000/rs6000.c (rs6000_libcall_value): Add
  20432. TARGET_SINGLE_FLOAT check.
  20433. 2009-05-04 Michael Eager <eager@eagercon.com>
  20434. * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
  20435. 2009-05-04 Michael Eager <eager@eagercon.com>
  20436. * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
  20437. * config/rs6000/t-xilinx: New
  20438. 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
  20439. * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
  20440. * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
  20441. * gcc/explow.c (memory_address): Use target hook.
  20442. * gcc/targhooks.c (default_legitimize_address): New.
  20443. * gcc/targhooks.h (default_legitimize_address): New.
  20444. * gcc/target.h (legitimize_address): New.
  20445. * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
  20446. (TARGET_INITIALIZER): Include it.
  20447. * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
  20448. * config/bfin/bfin-protos.h (legitimize_address): Remove.
  20449. * config/bfin/bfin.c (legitimize_address): Remove.
  20450. * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
  20451. * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
  20452. Remove.
  20453. * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
  20454. * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
  20455. * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
  20456. THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
  20457. * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
  20458. * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
  20459. * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
  20460. * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
  20461. * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
  20462. * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
  20463. * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
  20464. * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
  20465. * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
  20466. * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
  20467. * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
  20468. * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
  20469. * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
  20470. * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
  20471. * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
  20472. * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
  20473. * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
  20474. * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
  20475. * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
  20476. * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
  20477. * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
  20478. * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
  20479. * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
  20480. * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
  20481. * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
  20482. * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
  20483. * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
  20484. * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
  20485. * gcc/config/arm/arm-protos.h (arm_legitimize_address,
  20486. (thumb_legitimize_address): Delete.
  20487. * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
  20488. * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
  20489. * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
  20490. * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
  20491. * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
  20492. * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
  20493. Delete.
  20494. * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
  20495. Delete.
  20496. * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
  20497. * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
  20498. * config/m32r/m32r.c (m32r_legitimize_address): New.
  20499. * config/m68k/m68k.c (m68k_legitimize_address): New.
  20500. * config/score/score.c (score_legitimize_address): Standardize.
  20501. * config/score/score3.c (score3_legitimize_address): Standardize.
  20502. * config/score/score3.h (score3_legitimize_address): Adjust.
  20503. * config/score/score7.c (score7_legitimize_address): Standardize.
  20504. * config/score/score7.h (score7_legitimize_address): Adjust.
  20505. * config/sh/sh.c (sh_legitimize_address): New.
  20506. * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
  20507. * gcc/config/s390/s390.c (legitimize_address): Rename to...
  20508. (s390_legitimize_address): ... this.
  20509. * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
  20510. (sparc_legitimize_address): ... this.
  20511. * gcc/config/i386/i386.c (legitimize_address): Rename to...
  20512. (ix86_legitimize_address): ... this.
  20513. * gcc/config/avr/avr.c (legitimize_address): Rename to...
  20514. (avr_legitimize_address): ... this.
  20515. * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
  20516. (mn10300_legitimize_address): ... this.
  20517. * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
  20518. (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
  20519. (alpha_expand_mov): Adjust call.
  20520. * config/frv/frv.c (frv_legitimize_address): Return x on failure.
  20521. * config/spu/spu.c (spu_legitimize_address): Likewise.
  20522. * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
  20523. * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
  20524. 2009-05-04 Joseph Myers <joseph@codesourcery.com>
  20525. * intl.c (locale_encoding, locale_utf8): New.
  20526. (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
  20527. * intl.h (locale_encoding, locale_utf8): Declare.
  20528. * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
  20529. (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
  20530. New.
  20531. * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
  20532. argument.
  20533. (pp_tree_identifier): Define to call pp_base_tree_identifier.
  20534. (pp_base_tree_identifier): Declare as function.
  20535. (identifier_to_locale): Declare.
  20536. * Makefile.in (pretty-print.o): Update dependencies.
  20537. * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
  20538. 2009-05-04 Richard Guenther <rguenther@suse.de>
  20539. PR middle-end/40015
  20540. * builtins.c (fold_builtin_memory_op): Do not decay to element
  20541. type if the size matches the whole array.
  20542. 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
  20543. * expmed.c (synth_mult): When trying out a shift, pass the result
  20544. of a signed shift.
  20545. 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
  20546. * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
  20547. (shiftsub1_cost): New.
  20548. (init_expmed): Compute shiftsub1_cost.
  20549. (synth_mult): Optimize multiplications by constants of the form
  20550. -(2^^m-1) for some constant positive integer m.
  20551. 2009-05-03 Richard Guenther <rguenther@suse.de>
  20552. PR c/39983
  20553. * c-typeck.c (array_to_pointer_conversion): Do not built
  20554. ADDR_EXPRs of arrays of pointer-to-element type.
  20555. * c-gimplify.c (c_gimplify_expr): Revert change fixing
  20556. up wrong ADDR_EXPRs after-the-fact.
  20557. * c-common.c (strict_aliasing_warning): Strip pointer
  20558. conversions for obtaining the original type.
  20559. * builtins.c (fold_builtin_memset): Handle array types.
  20560. (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
  20561. and array types
  20562. 2009-05-03 Richard Guenther <rguenther@suse.de>
  20563. PR middle-end/23329
  20564. * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
  20565. Do not lose casts from array types with unknown extent to array
  20566. types with known extent.
  20567. * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
  20568. alias set compatibility.
  20569. 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
  20570. * flags.h (extra_warnings): Delete.
  20571. * toplev.c (process_options): Handle Wuninitialized here.
  20572. * opts.c (extra_warnings): Delete.
  20573. (set_Wextra): Delete.
  20574. (common_handle_option): -Wextra can be handled automatically.
  20575. * c-opts.c (c_common_handle_option): Delete obsolete code.
  20576. (c_common_post_options): Simplify comment.
  20577. * common.opt (W): Add Var.
  20578. (Wextra): Add Var.
  20579. (Wuninitialized): Initialize to -1.
  20580. 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
  20581. Richard Guenther <rguenther@suse.de>
  20582. * expr.c (get_def_for_expr): New function.
  20583. (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
  20584. SSA rather than trees.
  20585. <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
  20586. TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
  20587. 2009-05-03 Joseph Myers <joseph@codesourcery.com>
  20588. * c-common.c (reswords): Add _Imaginary.
  20589. * c-common.c (enum rid): Add RID_IMAGINARY.
  20590. 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
  20591. * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
  20592. Patch by Richard Guenther.
  20593. 2009-05-03 Anatoly Sokolov <aesok@post.ru>
  20594. * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
  20595. * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
  20596. * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
  20597. * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
  20598. * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
  20599. * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
  20600. * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
  20601. * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
  20602. * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
  20603. * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
  20604. * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
  20605. * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
  20606. * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
  20607. * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
  20608. * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
  20609. * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
  20610. * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
  20611. * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
  20612. 2009-05-02 Richard Guenther <rguenther@suse.de>
  20613. PR tree-optimization/39940
  20614. * tree-ssa-pre.c (eliminate): Make sure we may propagate before
  20615. doing so.
  20616. 2009-05-02 Richard Guenther <rguenther@suse.de>
  20617. PR middle-end/40001
  20618. * tree-ssa.c (execute_update_addresses_taken): Properly check
  20619. if we can mark a variable DECL_GIMPLE_REG_P.
  20620. * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
  20621. back to the end of the function.
  20622. (is_gimple_reg_type): Remove complex type special casing.
  20623. * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
  20624. if not optimizing.
  20625. 2009-05-02 Ben Elliston <bje@au.ibm.com>
  20626. * doc/collect2.texi (Collect2): Document search path behaviour
  20627. when configured with --with-ld.
  20628. 2009-05-02 Jan Hubicka <jh@suse.cz>
  20629. * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
  20630. parameter; update callers.
  20631. (coalesce_cost_edge): EH edges are costier because they needs
  20632. splitting even if not critical and even more costier when there are
  20633. multiple EH predecestors.
  20634. 2009-05-02 Jan Hubicka <jh@suse.cz>
  20635. * except.c (remove_eh_handler_and_replace): Handle updating after
  20636. removing TRY blocks.
  20637. 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
  20638. * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
  20639. 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
  20640. * varasm.c: Do not include c-pragma.h.
  20641. * attribs.c: Do not incude c-common.h.
  20642. 2009-05-01 Michael Matz <matz@suse.de>
  20643. * calls.c (initialize_argument_information): Handle SSA names like
  20644. decls with a non MEM_P DECL_RTL.
  20645. 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
  20646. * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
  20647. * ipa-utils.c: Likewise.
  20648. * ipa-type-escape.c: Likewise.
  20649. * cgraphunit.c Do not include c-common.h.
  20650. * ipa-pure-const.c: Likewise.
  20651. * tree-if-conv.c: Likewise.
  20652. * matrix-reorg.c: Do not include c-common.h and c-tree.h.
  20653. * ipa-struct-reorg.c: Likewise.
  20654. * tree-nomudflap.c: Likewise.
  20655. * tree-ssa-structalias.c: Likewise.
  20656. 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
  20657. * store-motion.c: Many cleanups to make this pass a first-class
  20658. citizen instead of an appendix to gcse load motion. Add TODO list
  20659. to make this pass faster/cleaner/better.
  20660. (struct ls_expr): Post gcse.c-split cleanups.
  20661. Rename to st_expr. Rename "loads" field to "antic_stores". Rename
  20662. "stores" field to "avail_stores".
  20663. (pre_ldst_mems): Rename to store_motion_mems.
  20664. (pre_ldst_table): Rename to store_motion_mems_table.
  20665. (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
  20666. (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
  20667. (ldst_entry): Rename to st_expr_entry, update users.
  20668. (free_ldst_entry): Rename to free_st_expr_entry, update users.
  20669. (free_ldst_mems): Rename to free_store_motion_mems, update users.
  20670. (enumerate_ldsts): Rename to enumerate_store_motion_mems,
  20671. update caller.
  20672. (first_ls_expr): Rename to first_st_expr, update users.
  20673. (next_ls_expr): Rename to next_st_expr, update users.
  20674. (print_ldst_list): Rename to print_store_motion_mems. Print names of
  20675. fields properly for store motion instead of names inherited from load
  20676. motion in gcse.c.
  20677. (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
  20678. (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
  20679. are done with it.
  20680. (ae_kill): Rename to st_kill, update users.
  20681. (ae_gen): Rename to st_avloc, update users.
  20682. (transp): Rename to st_transp, update users.
  20683. (pre_insert_map): Rename to st_insert_map, update users.
  20684. (pre_delete_map): Rename to st_delete_map, update users.
  20685. (insert_store, build_store_vectors, free_store_memory,
  20686. one_store_motion_pass): Update for abovementioned changes.
  20687. (gcse_subst_count, gcse_create_count): Remove.
  20688. (one_store_motion_pass): New statistics counters "n_stores_deleted"
  20689. and "n_stores_created", local variables.
  20690. (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
  20691. use for_each_rtx.
  20692. (regvec, compute_store_table_current_insn): Remove.
  20693. (reg_set_info, reg_clear_last_set): Remove.
  20694. (compute_store_table): Use DF caches instead of local dataflow
  20695. solvers.
  20696. 2009-05-01 Joseph Myers <joseph@codesourcery.com>
  20697. * c-objc-common.c (c_tree_printer): Print identifiers with
  20698. pp_identifier, not pp_string. Mark "({anonymous})" for
  20699. translation.
  20700. * c-pretty-print.c (pp_c_ws_string): New.
  20701. (pp_c_cv_qualifier, pp_c_type_specifier,
  20702. pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
  20703. pp_c_storage_class_specifier, pp_c_function_specifier,
  20704. pp_c_attributes, pp_c_bool_constant, pp_c_constant,
  20705. pp_c_primary_expression, pp_c_postfix_expression,
  20706. pp_c_unary_expression, pp_c_shift_expression,
  20707. pp_c_relational_expression, pp_c_equality_expression,
  20708. pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
  20709. use pp_string and pp_c_ws_string in place of pp_identifier and
  20710. pp_c_identifier for non-identifiers. Mark English strings for
  20711. translation.
  20712. * c-pretty-print.h (pp_c_ws_string): Declare.
  20713. 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
  20714. Roland McGrath <roland@redhat.com>
  20715. * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
  20716. (ENABLE_LD_BUILDID): New configuration option.
  20717. * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
  20718. (LINK_BUILDID_SPEC): New macro.
  20719. (init_spec): If defined, prepend it between LINK_EH_SPEC and
  20720. link_spec.
  20721. * doc/install.texi: Document --enable-linker-build-id option.
  20722. * configure: Rebuild.
  20723. * config.in: Rebuild.
  20724. 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
  20725. * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
  20726. MIPS_GP_SAVE_AREA_SIZE): Define new macros.
  20727. (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
  20728. MIPS_GP_SAVE_AREA_SIZE.
  20729. * config/mips/mips.c (struct mips_frame_info): Update comment
  20730. before arg_pointer_offset and hard_frame_pointer_offset.
  20731. (mips_compute_frame_info): Update diagram before function: to
  20732. correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
  20733. indicate the position of frame_pointer_rtx with -fstack-protector and
  20734. to show args_size. Don't allocate cprestore area for leaf functions
  20735. if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
  20736. cprestore_size.
  20737. (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
  20738. 2009-04-30 Michael Matz <matz@suse.de>
  20739. PR tree-optimization/39955
  20740. * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
  20741. 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
  20742. * ira.c (setup_cover_and_important_classes): Use safe macro
  20743. REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
  20744. directly.
  20745. * genpreds.c (write_tm_preds_h): Output suitable definition of
  20746. REG_CLASS_FOR_CONSTRAINT.
  20747. 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
  20748. * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
  20749. instead of an int.
  20750. * bitmap.c (bitmap_descriptor): Likewise.
  20751. * ggc-common.c (loc_descriptor): Likewise.
  20752. * varray.c (varray_descriptor): Likewise.
  20753. * vec.c (vec_descriptor): Likewise.
  20754. 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
  20755. * Makefile.in (dce.o): Add $(EXCEPT_H).
  20756. * dce.c: Include except.h and delete redundant vector definitions.
  20757. (deletable_insn_p): Return false for non-call insns that can throw
  20758. if DF is running.
  20759. 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
  20760. * gcse.c (ae_gen): Remove.
  20761. (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
  20762. and make non-static function to make it available in store-motion.c.
  20763. Update call sites with search-and-replace.
  20764. (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
  20765. extract_mentioned_regs, extract_mentioned_regs_helper,
  20766. find_moveable_store, compute_store_table, load_kills_store, find_loads,
  20767. store_killed_in_insn, store_killed_after, store_killed_before,
  20768. build_store_vectors, insert_insn_start_basic_block, insert-store,
  20769. remove_reachable_equiv_notes, replace_store_insn, delete_store,
  20770. free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
  20771. execute_rtl_store_motion, pass_rtl_store_motion): Move to...
  20772. * store-motion.c: ...new file. Also copy data structures from gcse.c
  20773. and clean up to remove parts not used by store motion.
  20774. * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
  20775. * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
  20776. 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  20777. PR target/38571
  20778. * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
  20779. when optimizing for size.
  20780. 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
  20781. * gcse.c (gcse_constant_p): Fix typo in last change.
  20782. 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
  20783. * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
  20784. 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
  20785. * gcse.c (gcse_constant_p): Make sure the constant is sharable.
  20786. 2009-04-29 James E. Wilson <wilson@codesourcery.com>
  20787. * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
  20788. CONST_HIGH_PART result.
  20789. 2009-04-29 Anatoly Sokolov <aesok@post.ru>
  20790. * config/avr/avr.c (initial_elimination_offset): Rename to
  20791. avr_initial_elimination_offset.
  20792. (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
  20793. change return type to bool.
  20794. (avr_can_eliminate): New function.
  20795. * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
  20796. (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
  20797. (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
  20798. * config/avr/avr-protos.h (initial_elimination_offset): Rename to
  20799. avr_initial_elimination_offset.
  20800. (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
  20801. (avr_initial_elimination_offset): Define.
  20802. 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
  20803. Steven Bosscher <steven@gcc.gnu.org>
  20804. PR rtl-optimization/39938
  20805. * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
  20806. * cfgrtl.c: Include insn-attr.h.
  20807. (rest_of_pass_free_cfg): New function.
  20808. (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
  20809. * resource.c (init_resource_info): Remove call to df_analyze.
  20810. 2009-04-29 Richard Guenther <rguenther@suse.de>
  20811. PR target/39943
  20812. * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
  20813. allow conversion to signed integers.
  20814. 2009-04-29 Richard Guenther <rguenther@suse.de>
  20815. * tree-cfg.c (verify_gimple_assign_binary): Allow vector
  20816. shifts of floating point vectors if the shift amount is
  20817. a constant multiple of the element size.
  20818. 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
  20819. Michael Matz <matz@suse.de>
  20820. PR middle-end/39927
  20821. PR bootstrap/39929
  20822. * tree-outof-ssa.c (emit_partition_copy): New function.
  20823. (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
  20824. insert_part_to_rtx_on_edge): Perform the partition base var
  20825. copy using emit_partition_copy.
  20826. (insert_value_copy_on_edge): Convert constants to the right mode.
  20827. (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
  20828. (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
  20829. 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
  20830. * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
  20831. scan backwards to try to find a constant to initialize it.
  20832. * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
  20833. insn before the loop_end instruction, don't look past labels.
  20834. 2009-04-29 Richard Guenther <rguenther@suse.de>
  20835. PR middle-end/39937
  20836. * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
  20837. loose type conversions.
  20838. (forward_propagate_addr_expr): Fix tuplification bug. Remove
  20839. stmts only if there are no uses of its definition.
  20840. 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
  20841. * config/bfin/bfin.h (splitting_loops): Declare.
  20842. * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
  20843. Reorder bit definitions to be ascending.
  20844. (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
  20845. * config/bfin/bfin.c (splitting_loops): New variable.
  20846. (bfin_cpus): Add WA_LOAD_LCREGS as needed.
  20847. (struct loop_info): Remove members INIT and LOOP_INIT.
  20848. (bfin_optimize_loop): Don't set them. Reorder the code that generates
  20849. the LSETUP sequence. Allow LC to be loaded from any register, but
  20850. also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
  20851. (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
  20852. set to 1.
  20853. * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
  20854. of reload_completed.
  20855. From Jie Zhang:
  20856. * config/bfin/bfin.md (movsi_insn): Refine constraints.
  20857. 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
  20858. * Makefile.in (PLUGIN_VERSION_H): New.
  20859. (OBJS-common): Remove plugin-version.o.
  20860. (plugin.o): Depend on (PLUGIN_VERSION_H).
  20861. (plugin-version.o): Remove.
  20862. * configure: Regenerate
  20863. * configure.ac: Create plugin-version.h.
  20864. * gcc-plugin.h (plugin_gcc_version): Remove.
  20865. (plugin_default_version_check): Change signature.
  20866. * plugin-version.c: Remove.
  20867. * plugin.c: Include plugin-version.h.
  20868. (str_plugin_gcc_version_name): Remove.
  20869. (try_init_one_plugin): Pass gcc version to plugin_init.
  20870. (plugin_default_version_check): Both gcc and plugin versions are now
  20871. arguments.
  20872. 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
  20873. * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
  20874. problematic last insns. Test for TYPE_CALL rather than CALL_P.
  20875. Remove special case testing for last insn of inner loops. Don't fail
  20876. if the loop ends with a jump, emit an extra nop instead.
  20877. * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
  20878. DREGS rather than comparing directly. Remove code that tries to
  20879. account for latencies.
  20880. 2009-04-29 Richard Guenther <rguenther@suse.de>
  20881. PR tree-optimization/39941
  20882. * tree-ssa-pre.c (eliminate): Schedule update-ssa after
  20883. eliminating an indirect call.
  20884. 2009-04-29 Richard Guenther <rguenther@suse.de>
  20885. * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
  20886. parameter. Allow invariants as base if !require_lvalue.
  20887. (verify_gimple_assign_single): Adjust.
  20888. 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
  20889. * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
  20890. (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
  20891. ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
  20892. ssubhi3, ssaddhi3_parts and sssubhi3_parts.
  20893. (flag_mulhi3_parts): Produce a HImode output rather than trying to set
  20894. a VEC_SELECT.
  20895. * config/bfin/bfin.c (bfin_expand_builtin,
  20896. case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
  20897. 2009-04-28 Richard Guenther <rguenther@suse.de>
  20898. * tree-vect-loop.c (get_initial_def_for_induction): Use
  20899. correct types for pointer increment.
  20900. 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  20901. * toplev.c (print_version): Update GMP version string calculation.
  20902. 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
  20903. PR rtl-optimization/39938
  20904. * resource.c (init_resource_info): Add call to df_analyze.
  20905. 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
  20906. * config/alpha/alpha.md (usegp): Cast the result of
  20907. alpha_find_lo_sum_using_gp to enum attr_usegp.
  20908. * config/alpha/alpha.c (override_options): Remove end-of-structure
  20909. marker element from cpu_table. Use array size of cpu_table to handle
  20910. -mcpu and -mtune options.
  20911. (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
  20912. 2009-04-28 Joseph Myers <joseph@codesourcery.com>
  20913. * config.gcc (powerpc*-*-* | rs6000-*-*): Add
  20914. rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
  20915. tune_32 and tune_64.
  20916. * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
  20917. support on PowerPC.
  20918. * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
  20919. * config/rs6000/option-defaults.h: ... here. New file.
  20920. (OPT_64, OPT_32): Define.
  20921. (MASK_64BIT): Define to 0 if not already defined.
  20922. (OPT_ARCH64, OPT_ARCH32): Define.
  20923. (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
  20924. and tune_64.
  20925. 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  20926. * config/arm/arm.c (arm_override_options): Emit error on using
  20927. fpa with AAPCS.
  20928. 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
  20929. PR rtl-optimization/39914
  20930. * ira-conflicts.c (ira_build_conflicts): Prohibit call used
  20931. registers for allocnos created from user-defined variables only
  20932. when not optimizing.
  20933. 2009-04-28 Richard Guenther <rguenther@suse.de>
  20934. PR middle-end/39937
  20935. * fold-const.c (fold_binary): Use distribute_real_division only
  20936. on float types.
  20937. 2009-04-28 Steve Ellcey <sje@cup.hp.com>
  20938. * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
  20939. add hpux-stdint.h to tm_file.
  20940. (hppa[12]*-*-hpux11*): Ditto.
  20941. (ia64*-*-hpux*): Ditto.
  20942. * config/hpux-stdint.h: New.
  20943. * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
  20944. __STDC_EXT__ for all compiles.
  20945. * config/pa/pa-hpux.h: Ditto.
  20946. * config/pa/pa-hpux10.h: Ditto.
  20947. * config/pa/pa-hpux11.h: Ditto.
  20948. 2009-04-28 Catherine Moore <clm@codesourcery.com>
  20949. * debug.h (set_name): Add comment.
  20950. 2009-04-28 Andrew Pinski <pinskia@gmail.com>
  20951. PR target/39929
  20952. * config/darwin.c (machopic_gen_offset): Check
  20953. currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
  20954. * config/arm/arm.c (require_pic_register): Likewise.
  20955. 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
  20956. * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
  20957. m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
  20958. m32c_promote_prototypes): Delete.
  20959. 2009-04-28 Michael Matz <matz@suse.de>
  20960. PR middle-end/39922
  20961. * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
  20962. constants.
  20963. 2009-04-28 Richard Guenther <rguenther@suse.de>
  20964. * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
  20965. 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  20966. * config/arm/arm-cores.def: Add support for arm1156t2f-s.
  20967. * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
  20968. * config/arm/arm-tune.md: Regenerate.
  20969. 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
  20970. * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
  20971. block if there are complex incoming edges.
  20972. (sel_merge_blocks): Remove useless assert.
  20973. (sel_redirect_edge_and_branch): Check that edge was redirected.
  20974. * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
  20975. (sel_find_rgns): Delete declaration.
  20976. * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
  20977. the region when it is not a preheader.
  20978. 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
  20979. PR c/39323
  20980. * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
  20981. 2009-04-28 Richard Guenther <rguenther@suse.de>
  20982. * tree.h (SSA_NAME_VALUE): Remove.
  20983. (struct tree_ssa_name): Remove value_handle member.
  20984. * tree-vrp.c (execute_vrp): Initialize/free the value-handle
  20985. array for jump threading.
  20986. * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
  20987. SSA_NAME_VALUEs.
  20988. * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
  20989. * tree-flow.h (threadedge_initialize_values): Declare.
  20990. (threadedge_finalize_values): Likewise.
  20991. * tree-ssa-threadedge.c (ssa_name_values): New global variable.
  20992. (SSA_NAME_VALUE): Define.
  20993. (threadedge_initialize_values): New function.
  20994. (threadedge_finalize_values): Likewise.
  20995. * tree-ssa-dom.c (ssa_name_values): New global variable.
  20996. (SSA_NAME_VALUE): Define.
  20997. (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
  20998. 2009-04-28 Ira Rosen <irar@il.ibm.com>
  20999. * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
  21000. Use REPORT_VECTORIZED_LOCATIONS instead
  21001. REPORT_VECTORIZED_LOOPS.
  21002. * tree-vectorizer.c (vect_verbosity_level): Make static.
  21003. (vect_loop_location): Rename to vect_location.
  21004. (vect_set_verbosity_level): Update comment.
  21005. (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
  21006. and vect_location.
  21007. (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
  21008. and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
  21009. instead REPORT_UNVECTORIZED_LOOPS.
  21010. * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
  21011. and vect_loop_def to vect_external_def and vect_internal_def.
  21012. (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
  21013. and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
  21014. REPORT_UNVECTORIZED_LOCATIONS.
  21015. (enum vect_relevant): Update comment. Rename vect_unused_in_loop
  21016. and vect_used_in_loop and to vect_unused_in_scope and
  21017. vect_used_in_scope.
  21018. (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
  21019. (vect_verbosity_level): Remove declaration.
  21020. (vect_analyze_operations): Likewise.
  21021. (vect_analyze_stmt): Declare.
  21022. * tree-vect-loop.c (vect_determine_vectorization_factor): Use
  21023. REPORT_UNVECTORIZED_LOCATIONS.
  21024. (vect_get_loop_niters): Fix indentation.
  21025. (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
  21026. (vect_analyze_loop_operations): New function.
  21027. (vect_analyze_loop): Call vect_analyze_loop_operations instead of
  21028. vect_analyze_operations.
  21029. (vect_is_simple_reduction): Use new names.
  21030. (vectorizable_live_operation, vect_transform_loop): Likewise.
  21031. * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
  21032. to specify whether the data references can be a part of interleaving
  21033. chain.
  21034. (vect_analyze_data_ref_dependence): Use new names.
  21035. (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
  21036. (vect_create_addr_base_for_vector_ref): Remove redundant code.
  21037. * tree-vect-patterns.c (widened_name_p): Use new names.
  21038. (vect_recog_dot_prod_pattern): Likewise.
  21039. * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
  21040. (process_use, vect_mark_stmts_to_be_vectorized,
  21041. vect_model_simple_cost, vect_model_store_cost,
  21042. vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
  21043. vectorizable_call, vectorizable_conversion, vectorizable_assignment,
  21044. vectorizable_operation, vectorizable_type_demotion,
  21045. vectorizable_type_promotion, vectorizable_store, vectorizable_load,
  21046. vectorizable_condition): Likewise.
  21047. (vect_analyze_operations): Split into vect_analyze_loop_operations
  21048. and ...
  21049. (vect_analyze_stmt): ... new function.
  21050. (new_stmt_vec_info): Use new names.
  21051. (vect_is_simple_use): Use new names and fix comment.
  21052. * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
  21053. (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
  21054. 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
  21055. PR target/39911
  21056. * config/i386/i386.c (print_operand) ['Z']: Handle floating point
  21057. and integer modes for x87 operands. Do not ICE for unsupported size,
  21058. generate error instead. Generate error for unsupported operand types.
  21059. ['z']: Do not handle HImode memory operands specially. Warning
  21060. for floating-point operands. Fallthru to 'Z' for unsupported operand
  21061. types. Do not ICE for unsupported size, generate error instead.
  21062. (output_387_binary_op): Use %Z to output operands.
  21063. (output_fp_compare): Ditto.
  21064. (output_387_reg_move): Ditto.
  21065. 2009-04-28 Ben Elliston <bje@au.ibm.com>
  21066. PR c++/35652
  21067. Revert:
  21068. 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
  21069. * builtins.c (c_strlen): Do not warn here.
  21070. * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
  21071. * c-common.c (pointer_int_sum): Take an explicit location.
  21072. Warn about offsets out of bounds.
  21073. * c-common.h (pointer_int_sum): Adjust declaration.
  21074. 2009-04-27 Ian Lance Taylor <iant@google.com>
  21075. * collect2.c (is_ctor_dtor): Change type of ret field in struct
  21076. names to symkind.
  21077. * dce.c (run_fast_df_dce): Change type of old_flags to int.
  21078. * df-core.c (df_set_flags): Change return type to int. Change
  21079. type of old_flags to int.
  21080. (df_clear_flags): Likewise.
  21081. * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
  21082. (df_get_conditional_uses): Likewise.
  21083. * df.h (df_set_flags, df_clear_flags): Update declarations.
  21084. * dwarf2out.c (struct indirect_string_node): Change type of form
  21085. field to enum dwarf_form.
  21086. (AT_string_form): Change return type to enum dwarf_form.
  21087. * fixed-value.c (fixed_compare): Add cast to enum type.
  21088. * fwprop.c (update_df): Change 0 to VOIDmode.
  21089. * gensupport.c: Change 0 to UNKNOWN.
  21090. * gimple.h (gimple_cond_code): Add cast to enum type.
  21091. * haifa-sched.c (reemit_notes): Add cast to enum type.
  21092. * hooks.c (hook_int_void_no_regs): Remove function.
  21093. * hooks.h (hook_int_void_no_regs): Remove declaration.
  21094. * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
  21095. * predict.c (combine_predictions_for_insn): Add casts to enum type.
  21096. * real.c (real_arithmetic): Add cast to enum type.
  21097. (real_compare): Likewise.
  21098. * target.h (struct gcc_target): Change return type of
  21099. branch_target_register_class to enum reg_class.
  21100. * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
  21101. default_branch_target_register_class.
  21102. * targhooks.c (default_branch_target_register_class): New function.
  21103. * targhooks.h (default_branch_target_register_class): Declare.
  21104. * tree-data-ref.c (print_direction_vector): Add cast to enum type.
  21105. * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
  21106. cast to int.
  21107. * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
  21108. ERROR_MARK.
  21109. * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
  21110. vect_uninitialized_def. Change 0 to ERROR_MARK.
  21111. * tree-vect-stmts.c (supportable_widening_operation): Don't
  21112. initialize icode1 and icode2.
  21113. * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
  21114. * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
  21115. and to STD_C89.
  21116. (cmn_err_flag_specs): Change 0 to STD_C89.
  21117. (cmn_err_char_table): Likewise.
  21118. * config/arm/arm.c (get_arm_condition_code): Change type of code
  21119. to enum arm_cond_code.
  21120. (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
  21121. (IWMMXT_BUILTIN2): Likewise.
  21122. (neon_builtin_type_bits): Don't define typedef.
  21123. (neon_builtin_datum): Change type of bits field to int.
  21124. (arm_expand_neon_args): Add cast to enum type.
  21125. * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
  21126. TLS_MODEL_NONE.
  21127. * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
  21128. casts to enum type.
  21129. * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
  21130. MIPS_FP_COND_f.
  21131. * config/mips/mips.md (jal_macro): Return enum constant.
  21132. (single_insn): Likewise.
  21133. * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
  21134. CODE_FOR_nothing.
  21135. * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
  21136. casts to enum type.
  21137. * config/s390/s390.c (s390_tune_flags): Change type to int.
  21138. (s390_arch_flags): Likewise.
  21139. (s390_handle_arch_option): Change flags field of struct pta to int.
  21140. * config/s390/s390.h (s390_tune_flags): Update declaration.
  21141. (s390_arch_flags): Likewise.
  21142. * config/sh/sh.c (prepare_move_operands): Compare
  21143. tls_symbolic_operand result with enum constant.
  21144. (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
  21145. (sh_expand_prologue): Add cast to enum type.
  21146. (sh_expand_epilogue): Likewise.
  21147. (tls_symbolic_operand): Change return type to enum tls_model.
  21148. (fpscr_set_from_mem): Add cast to enum type.
  21149. (legitimize_pic_address): Compare tls_symbolic_operand result with
  21150. enum constant.
  21151. (sh_target_reg_class): Change return type to enum reg_class.
  21152. * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
  21153. PROCESSOR_xxx.
  21154. * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
  21155. * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
  21156. * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
  21157. (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
  21158. (delayed_branch, tls_call_delay): Likewise.
  21159. (eligible_for_sibcall_delay): Likewise.
  21160. (eligible_for_return_delay): Likewise.
  21161. * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
  21162. (spu_expand_builtin_1): Likewise.
  21163. * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
  21164. for all types of conversions.
  21165. (output_init_element): Issue -Wc++-compat warning if needed when
  21166. initializing a bitfield with enum type.
  21167. * c-parser.c (c_parser_expression): Set original_type to
  21168. original_type of right hand operand of comma operator.
  21169. 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  21170. * doc/c-tree.texi (Types, Functions, Expression trees): Fix
  21171. grammar nits.
  21172. * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
  21173. * doc/cpp.texi (Standard Predefined Macros)
  21174. (Implementation-defined behavior): Likewise.
  21175. * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
  21176. * doc/gimple.texi (GIMPLE Exception Handling)
  21177. (@code{GIMPLE_ASSIGN}): Likewise.
  21178. * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
  21179. * doc/invoke.texi (Warning Options, Optimize Options)
  21180. (AVR Options, Darwin Options): Likewise.
  21181. (Optimize Options): Reformulate -fwhole-program description.
  21182. * doc/loop.texi (Lambda): Likewise.
  21183. * doc/md.texi (Output Template, Define Constraints)
  21184. (Standard Names, Insn Splitting): Likewise.
  21185. * doc/options.texi (Option properties): Likewise.
  21186. * doc/passes.texi (Tree-SSA passes): Likewise.
  21187. * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
  21188. * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
  21189. (File Names and DBX): Likewise.
  21190. * doc/trouble.texi (Incompatibilities): Likewise.
  21191. 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
  21192. * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
  21193. instruction is correct.
  21194. 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
  21195. Allow non-constant arguments to conversion intrinsics.
  21196. * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
  21197. * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
  21198. * spu.c (print_operand): Handle 'v' and 'w'.
  21199. (exp2_immediate_p, spu_gen_exp2): Define.
  21200. * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
  21201. spu_convtf_1): Update parameter descriptions.
  21202. * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
  21203. * constraints.md ('v', 'w'): New.
  21204. * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
  21205. Remove.
  21206. (i2f, I2F): New define_mode_attr.
  21207. (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
  21208. floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
  21209. fixuns_truncv4sfv4si2): Update to use mode attribute.
  21210. (float<mode><i2f>2_mul, float<mode><i2f>2_div,
  21211. fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
  21212. floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
  21213. patterns for combine.
  21214. 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
  21215. * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
  21216. (cprop, hoist, pre, store_motion): New debug counters.
  21217. * tree-pass.h (pass_tracer): Move to list of gimple passes, it
  21218. is not an RTL pass anymore.
  21219. (pass_profiling): Remove extern decl for pass removed in 2005.
  21220. (pass_gcse, pass_jump_bypass): Remove.
  21221. * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
  21222. to 0 for clean state.
  21223. * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
  21224. * cse.c (gate_handle_cse_after_global_opts,
  21225. rest_of_handle_cse_after_global_opts): New functions.
  21226. (pass_cse_after_global_opts): New pass, does local CSE.
  21227. * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
  21228. (TV_CPROP): New timevar.
  21229. * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
  21230. (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
  21231. (gcse_main, recompute_all_luids): Remove.
  21232. (compute_hash_table_work): Call max_reg_num instead of reading
  21233. max_gcse_regno.
  21234. (cprop_jump): Don't set run_jump_opt_after_gcse.
  21235. (constprop_register): Always allow to alter jumps.
  21236. (cprop_insn): Likewise.
  21237. (do_local_cprop): Likewise.
  21238. (local_cprop_pass): Likewise. Return non-zero if something changed.
  21239. (cprop): Remove function, fold interesting bits into one_cprop_pass.
  21240. (find_implicit_sets): Add note about missed optimization opportunity.
  21241. (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
  21242. pass_rtl_cprop execute function.
  21243. Don't bother tracking the pass number, each pass gets its own dumpfile
  21244. now anyway.
  21245. Always allow to alter jumpsand bypass jumps.
  21246. (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
  21247. will just find no suitable set.
  21248. (pre_edge_insert): Fix dumping, this function is for PRE only.
  21249. (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
  21250. pass_rtl_pre execute function.
  21251. (hoist_code): Return non-zero if something changed. Keep track of
  21252. substitutions and insertions for statistics gathering similar to PRE.
  21253. (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
  21254. called from the pass_rtl_hoist execute function. Show pass statistics.
  21255. (compute_store_table): Use max_reg_num directly instead of using the
  21256. formerly global max_gcse_regno.
  21257. (build_store_vectors): Likewise.
  21258. (replace_store_insn): Fix dumping.
  21259. (store_motion): Rename to ...
  21260. (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
  21261. pass, called from the pass_rtl_store_motion execute function. Keep
  21262. track of substitutions and insertions for statistics gathering similar
  21263. to PRE.
  21264. (bypass_jumps): Remove, fold interesting bits into ...
  21265. (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
  21266. from the pass_rtl_cprop execute function.
  21267. (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
  21268. pass_jump_bypass): Remove.
  21269. (gate_handle_gcse, rest_of_handle_gcse): Remove.
  21270. (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
  21271. (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
  21272. (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
  21273. (gate_rtl_store_motion, execute_rtl_store_motion,
  21274. pass_rtl_store_motion): New.
  21275. * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
  21276. make it clear that -fcse-skip-blocks is a no-op for backward compat.
  21277. * passes.c (init_optimization_passes): Remove pass_gcse and
  21278. pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
  21279. and cse_after_global_opts in place of pass_gcse. Schedule cprop
  21280. instead of pass_jump_bypass.
  21281. 2009-04-27 Richard Guenther <rguenther@suse.de>
  21282. PR middle-end/39928
  21283. * gimplify.c (gimplify_expr): If we are required to create
  21284. a temporary make sure it ends up as register.
  21285. 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
  21286. PR target/39903
  21287. * config/i386/i386.c (construct_container): Don't call
  21288. gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
  21289. X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
  21290. 2009-04-27 Michael Matz <matz@suse.de>
  21291. * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
  21292. (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
  21293. * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
  21294. (dump_replaceable_exprs): Take a bitmap.
  21295. * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
  21296. array.
  21297. (expand_gimple_basic_block): Likewise.
  21298. * tree-ssa-ter.c (struct temp_expr_table_d): Make
  21299. replaceable_expressions member a bitmap.
  21300. (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
  21301. (mark_replaceable): Likewise.
  21302. (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
  21303. * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
  21304. 2009-04-27 Richard Guenther <rguenther@suse.de>
  21305. * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
  21306. (verify_stmts): Dispatch to gimple/type verification code.
  21307. * tree-inline.c (remap_gimple_op_r): Work around C++ FE
  21308. issue with call argument types.
  21309. 2009-04-27 Michael Matz <matz@suse.de>
  21310. * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
  21311. (init_update_ssa, delete_update_ssa, update_ssa): Remove references
  21312. to above.
  21313. 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
  21314. Eric Botcazou <ebotcazou@adacore.com>
  21315. * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
  21316. a label's basic block.
  21317. (mark_target_live_regs): Tidy and rework obsolete comments.
  21318. Change back DF problem to LIVE. If a label starts a basic block,
  21319. assume that all registers that used to be live then still are.
  21320. (init_resource_info): If a label starts a basic block, set its
  21321. BLOCK_FOR_INSN accordingly.
  21322. (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
  21323. 2009-04-27 Richard Guenther <rguenther@suse.de>
  21324. * tree-flow-inline.h (function_ann): Remove.
  21325. (get_function_ann): Likewise.
  21326. * tree-dfa.c (create_function_ann): Remove.
  21327. * tree-flow.h (struct static_var_ann_d): Remove.
  21328. (struct function_ann_d): Likewise.
  21329. (union tree_ann_d): Remove fdecl member.
  21330. (function_ann_t): Remove.
  21331. (function_ann, get_function_ann, create_function_ann): Remove
  21332. declarations.
  21333. 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
  21334. * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
  21335. 2009-04-27 Jan Hubicka <jh@suse.cz>
  21336. * ipa-pure-const.c (struct funct_state_d): New fields
  21337. state_previously_known, looping_previously_known; remove
  21338. state_set_in_source.
  21339. (analyze_function): Use new fields.
  21340. (propagate): Avoid assumption that state_set_in_source imply
  21341. nonlooping.
  21342. * tree-ssa-loop-niter.c (finite_loop_p): New function.
  21343. * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
  21344. * cfgloop.h (finite_loop_p): Declare.
  21345. 2009-04-26 Michael Matz <matz@suse.de>
  21346. * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
  21347. 2009-04-26 Michael Matz <matz@suse.de>
  21348. * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
  21349. pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
  21350. * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
  21351. pass_mark_used_blocks): Remove.
  21352. * tree-optimize.c (pass_free_datastructures,
  21353. execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
  21354. * passes.c (init_optimization_passes): Don't call
  21355. pass_mark_used_blocks, remove dead code.
  21356. 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
  21357. * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
  21358. * tree-ssa-live.h (register_ssa_partition): Likewise.
  21359. 2009-04-26 Michael Matz <matz@suse.de>
  21360. Expand from SSA.
  21361. * builtins.c (fold_builtin_next_arg): Handle SSA names.
  21362. * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
  21363. * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
  21364. SSA names.
  21365. (compare_pairs): Swap cost comparison.
  21366. (coalesce_ssa_name): Don't use change_partition_var.
  21367. * tree-nrv.c (struct nrv_data): Add modified member.
  21368. (finalize_nrv_r): Set it.
  21369. (tree_nrv): Use it to update statements.
  21370. (pass_nrv): Require PROP_ssa.
  21371. * tree-mudflap.c (mf_decl_cache_locals,
  21372. mf_build_check_statement_for): Use make_rename_temp.
  21373. (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
  21374. * alias.c (find_base_decl): Handle SSA names.
  21375. * emit-rtl (set_reg_attrs_for_parm): Make non-static.
  21376. (component_ref_for_mem_expr): Don't leak SSA names into RTL.
  21377. * rtl.h (set_reg_attrs_for_parm): Declare.
  21378. * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
  21379. to "optimized", remove unused locals at finish.
  21380. (execute_free_datastructures): Make global, call
  21381. delete_tree_cfg_annotations.
  21382. (execute_free_cfg_annotations): Don't call
  21383. delete_tree_cfg_annotations.
  21384. * ssaexpand.h: New file.
  21385. * expr.c (toplevel): Include ssaexpand.h.
  21386. (expand_assignment): Handle SSA names the same as register variables.
  21387. (expand_expr_real_1): Expand SSA names.
  21388. * cfgexpand.c (toplevel): Include ssaexpand.h.
  21389. (SA): New global variable.
  21390. (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
  21391. (SSAVAR): New macro.
  21392. (set_rtl): New helper function.
  21393. (add_stack_var): Deal with SSA names, use set_rtl.
  21394. (expand_one_stack_var_at): Likewise.
  21395. (expand_one_stack_var): Deal with SSA names.
  21396. (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
  21397. before unique numbers.
  21398. (expand_stack_vars): Use set_rtl.
  21399. (expand_one_var): Accept SSA names, add asserts for them, feed them
  21400. to above subroutines.
  21401. (expand_used_vars): Expand all partitions (without default defs),
  21402. then only the local decls (ignoring those expanded already).
  21403. (expand_gimple_cond): Remove edges when jumpif() expands an
  21404. unconditional jump.
  21405. (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
  21406. or remove abnormal edges. Ignore insns setting the LHS of a TERed
  21407. SSA name.
  21408. (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
  21409. members of SA; deal with PARM_DECL partitions here; expand
  21410. all PHI nodes, free tree datastructures and SA. Commit instructions
  21411. on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
  21412. (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
  21413. info and statements at start, collect garbage at finish.
  21414. * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
  21415. (VAR_ANN_PARTITION) Remove.
  21416. (change_partition_var): Don't declare.
  21417. (partition_to_var): Always return SSA names.
  21418. (var_to_partition): Only accept SSA names.
  21419. (register_ssa_partition): Only check argument.
  21420. * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
  21421. member.
  21422. (delete_var_map): Don't free it.
  21423. (var_union): Only accept SSA names, simplify.
  21424. (partition_view_init): Mark only useful SSA names as used.
  21425. (partition_view_fini): Only deal with SSA names.
  21426. (change_partition_var): Remove.
  21427. (dump_var_map): Use ssa_name instead of partition_to_var member.
  21428. * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
  21429. basic blocks.
  21430. * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
  21431. (struct _elim_graph): New member const_dests; nodes member vector of
  21432. ints.
  21433. (set_location_for_edge): New static helper.
  21434. (create_temp): Remove.
  21435. (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
  21436. insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
  21437. (new_elim_graph): Allocate const_dests member.
  21438. (clean_elim_graph): Truncate const_dests member.
  21439. (delete_elim_graph): Free const_dests member.
  21440. (elim_graph_size): Adapt to new type of nodes member.
  21441. (elim_graph_add_node): Likewise.
  21442. (eliminate_name): Likewise.
  21443. (eliminate_build): Don't take basic block argument, deal only with
  21444. partition numbers, not variables.
  21445. (get_temp_reg): New static helper.
  21446. (elim_create): Use it, deal with RTL temporaries instead of trees.
  21447. (eliminate_phi): Adjust all calls to new signature.
  21448. (assign_vars, replace_use_variable, replace_def_variable): Remove.
  21449. (rewrite_trees): Only do checking.
  21450. (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
  21451. (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
  21452. init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
  21453. contains_tree_r, MAX_STMTS_IN_LATCH,
  21454. process_single_block_loop_latch, analyze_edges_for_bb,
  21455. perform_edge_inserts): Remove.
  21456. (expand_phi_nodes): New global function.
  21457. (remove_ssa_form): Take ssaexpand parameter. Don't call removed
  21458. functions, initialize new parameter, remember partitions having a
  21459. default def.
  21460. (finish_out_of_ssa): New global function.
  21461. (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
  21462. don't reset in_ssa_p here, don't disable TER when mudflap.
  21463. (pass_del_ssa): Remove.
  21464. * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
  21465. partition members.
  21466. (execute_free_datastructures): Declare.
  21467. * Makefile.in (SSAEXPAND_H): New variable.
  21468. (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
  21469. * basic-block.h (commit_one_edge_insertion): Declare.
  21470. * passes.c (init_optimization_passes): Move pass_nrv and
  21471. pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
  21472. pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
  21473. * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
  21474. (redirect_branch_edge): Deal with super block when expanding, split
  21475. out jump patching itself into ...
  21476. (patch_jump_insn): ... here, new static helper.
  21477. 2009-04-26 Michael Matz <matz@suse.de>
  21478. * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
  21479. beyond num_ssa_names.
  21480. * tree-ssa-ter.c (free_temp_expr_table): Likewise.
  21481. * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
  21482. 2009-04-26 Jakub Jelinek <jakub@redhat.com>
  21483. PR inline-asm/39543
  21484. * fwprop.c (forward_propagate_asm): New function.
  21485. (forward_propagate_and_simplify): Propagate also into __asm, if it
  21486. doesn't increase the number of referenced registers.
  21487. PR c/39889
  21488. * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
  21489. 2009-04-26 Jakub Jelinek <jakub@redhat.com>
  21490. * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
  21491. note_nonlocal_vla_type for nonlocal VLAs.
  21492. (note_nonlocal_vla_type, note_nonlocal_block_vlas,
  21493. contains_remapped_vars, remap_vla_decls): New functions.
  21494. (convert_nonlocal_reference_stmt): If not optimizing, call
  21495. note_nonlocal_block_vlas on GIMPLE_BIND block vars.
  21496. (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
  21497. if it wasn't found in var_map.
  21498. (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
  21499. GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
  21500. to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
  21501. declare_vars.
  21502. * gimplify.c (nonlocal_vlas): New variable.
  21503. (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
  21504. referenced VLAs.
  21505. (gimplify_body): Create and destroy nonlocal_vlas.
  21506. * dwarf2out.c (loc_descr_plus_const): New function.
  21507. (build_cfa_aligned_loc, tls_mem_loc_descriptor,
  21508. mem_loc_descriptor, loc_descriptor_from_tree_1,
  21509. descr_info_loc, gen_variable_die): Use it.
  21510. * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
  21511. !TREE_STATIC VAR_DECLs.
  21512. * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
  21513. DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
  21514. (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
  21515. DECL_BY_REFERENCE is valid.
  21516. * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
  21517. for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
  21518. * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
  21519. Copy DECL_BY_REFERENCE.
  21520. (struct nesting_copy_body_data): New type.
  21521. (nesting_copy_decl): New function.
  21522. (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
  21523. if they have variable length.
  21524. 2009-04-26 Michael Matz <matz@suse.de>
  21525. * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
  21526. mark new temporaries for renaming.
  21527. 2009-04-26 Joseph Myers <joseph@codesourcery.com>
  21528. PR c/39581
  21529. * c-decl.c (global_bindings_p): Return negative value.
  21530. (c_variable_size): New. Based on variable_size from
  21531. stor-layout.c.
  21532. (grokdeclarator): Call c_variable_size not variable_size.
  21533. 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
  21534. * config/i386/i386.c (print_operand) ['z']: Fix typo.
  21535. 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
  21536. * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
  21537. Redefine it to just use mingw/include.
  21538. (ASM_SPEC): Rules for -m32 and -m64.
  21539. (LINK_SPEC): Use Likewise.
  21540. (SPEC_32): New define.
  21541. (SPEC_64): Likewise.
  21542. (SUB_LINK_SPEC): Likewise.
  21543. (MULTILIB_DEFAULTS): New define.
  21544. * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
  21545. Add multilib options.
  21546. (MULTILIB_DIRNAMES): Likewise.
  21547. (MULTILIB_OSDIRNAMES): Likewise.
  21548. (LIBGCC): Likewise.
  21549. (INSTALL_LIBGCC): Likewise.
  21550. 2009-04-26 Joseph Myers <joseph@codesourcery.com>
  21551. PR c/39556
  21552. * c-tree.h (enum c_inline_static_type): New.
  21553. (record_inline_static): Declare.
  21554. * c-decl.c (struct c_inline_static, c_inline_statics,
  21555. record_inline_static, check_inline_statics): New.
  21556. (pop_file_scope): Call check_inline_statics.
  21557. (start_decl): Call record_inline_static instead of pedwarning
  21558. directly for static in inline function.
  21559. * c-typeck.c (build_external_ref): Call record_inline_static
  21560. instead of pedwarning directly for static referenced in inline
  21561. function.
  21562. 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
  21563. * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
  21564. not new but only being rescanned.
  21565. * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
  21566. reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
  21567. alloc_reg_set_mem, free_reg_set_mem, record_one_set,
  21568. record_set_info, compute_set, grealloc): Remove.
  21569. (recompute_all_luids): New function.
  21570. (gcse_main): Don't compute sets, and don't do related memory
  21571. allocations/free-ing. If something changed before the end of the
  21572. pass, update LUIDs using recompute_all_luids.
  21573. (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
  21574. (free_gcse_mem): Don't free it either.
  21575. (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
  21576. Use the df insn LUIDs.
  21577. (load_killed_in_block): Likewise.
  21578. (compute_hash_table_work): Don't compute reg_set_in_block.
  21579. (compute_transp): Use DF_REG_DEF_CHAINs.
  21580. (local_cprop_pass): Don't use compute_sets and related functions.
  21581. (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
  21582. Use get_max_uid() instead of max_cuid.
  21583. (insert_insn_end_basic_block, pre_insert_copy_insn,
  21584. update_ld_motion_stores): Don't try to
  21585. keep reg_set tables up to date.
  21586. (pre_insert_copies): Use df insn LUIDs.
  21587. (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
  21588. (reg_set_info): Don't use extra bitmap argument.
  21589. (compute_store_table): Don't compute reg_set_in_block. Use DF scan
  21590. information to compute regs_set_in_block.
  21591. (free_store_memory, store_motion): Don't nullify reg_set_in_block.
  21592. (bypass_jumps): Don't use compute_sets and friends.
  21593. 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  21594. PR testsuite/39710
  21595. * opts.c (undocumented_msg): Do not leave blank even with
  21596. ENABLE_CHECKING.
  21597. 2009-04-25 Joseph Myers <joseph@codesourcery.com>
  21598. * c-decl.c (build_enumerator): Allow values folding to integer
  21599. constants but not integer constant expressions with a pedwarn if
  21600. pedantic.
  21601. 2009-04-25 Joseph Myers <joseph@codesourcery.com>
  21602. PR c/39582
  21603. * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
  21604. with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
  21605. type is an integer constant.
  21606. 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
  21607. PR target/39897
  21608. * config/i386/i386.c (print_operand) ['z']: Revert handling of
  21609. HImode operands.
  21610. 2009-04-25 Joseph Myers <joseph@codesourcery.com>
  21611. PR c/39564
  21612. * c-decl.c (grokdeclarator): Diagnose declarations of functions
  21613. with variably modified return type and no storage class
  21614. specifiers, except for the case of nested functions. Distinguish
  21615. extern declarations of functions with variably modified return
  21616. types from those of objects with variably modified types.
  21617. 2009-04-25 Jan Hubicka <jh@suse.cz>
  21618. * tree.c (list_equal_p): New function.
  21619. * tree.h (list_equal_p): Declare.
  21620. * coretypes.h (edge_def, edge, const_edge, basic_block_def
  21621. basic_block_def, basic_block, const_basic_block): New.
  21622. * tree-eh.c (make_eh_edge): EH edges are not abnormal.
  21623. (redirect_eh_edge): New function.
  21624. (make_eh_edge_update_phi): EH edges are not abnormal.
  21625. * except.c: Include tree-flow.h.
  21626. (list_match): New function.
  21627. (eh_region_replaceable_by_p): New function.
  21628. (replace_region): New function.
  21629. (hash_type_list): New function.
  21630. (hash_eh_region): New function.
  21631. (eh_regions_equal_p): New function.
  21632. (merge_peers): New function.
  21633. (remove_unreachable_regions): Verify EH tree when checking;
  21634. merge peers.
  21635. (copy_eh_region_1): New function.
  21636. (copy_eh_region): New function.
  21637. (push_reachable_handler): New function.
  21638. (build_post_landing_pads, dw2_build_landing_pads): Be ready for
  21639. regions without label but with live RESX.
  21640. * except.h (redirect_eh_edge_to_label): New.
  21641. * tree-flow.h (redirect_eh_edge): New.
  21642. * coretypes.h (edge_def, edge, const_edge, basic_block_def
  21643. basic_block_def, basic_block, const_basic_block): Remove.
  21644. * Makefile.in (except.o): Add dependency on tree-flow.h
  21645. * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
  21646. * basic-block.h (edge, const_edge, basic_block, const_basic_block):
  21647. Remove.
  21648. 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
  21649. PR bootstrap/39645
  21650. * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
  21651. on the destination of memcpy.
  21652. 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
  21653. * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
  21654. REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
  21655. REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
  21656. 2009-04-25 Jan Hubicka <jh@suse.cz>
  21657. * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
  21658. (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
  21659. to be reached by different label than left.
  21660. (update_eh_edges): Update comment; remove edge_to_remove if possible
  21661. and return true if suceeded.
  21662. (cleanup_empty_eh): Accept sharing map; handle shared regions.
  21663. (cleanup_eh): Compute sharing map.
  21664. * except.c (remove_eh_handler_and_replace): Add argument if we should
  21665. update regions.
  21666. (remove_unreachable_regions): Update for label sharing.
  21667. (label_to_region_map): Likewise.
  21668. (get_next_region_sharing_label): New function.
  21669. (remove_eh_handler_and_replace): Add update_catch_try parameter; update
  21670. prev_try pointers.
  21671. (remove_eh_handler): Update.
  21672. (remove_eh_region_and_replace_by_outer_of): New function.
  21673. * except.h (struct eh_region): Add next_region_sharing_label.
  21674. (remove_eh_region_and_replace_by_outer_of,
  21675. get_next_region_sharing_label): Declare.
  21676. * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
  21677. 2009-04-25 Jan Hubicka <jh@suse.cz>
  21678. * tree-cfg.c (split_critical_edges): Split also edges where we can't
  21679. insert code even if they are not critical.
  21680. 2009-04-25 Jan Hubicka <jh@suse.cz>
  21681. * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
  21682. (gimple_can_remove_branch_p): EH edges won't remove branch by
  21683. redirection.
  21684. * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
  21685. updating of non-abnormal EH edges.
  21686. * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
  21687. (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
  21688. (split_critical_edges): Split also edges where emitting code on them
  21689. will lead to splitting later.
  21690. 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
  21691. H.J. Lu <hongjiu.lu@intel.com>
  21692. PR target/39590
  21693. * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
  21694. the configured assembler supports fildq and fistpq mnemonics.
  21695. (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
  21696. * configure: Regenerated.
  21697. * config.in: Ditto.
  21698. * config/i386/i386.c (print_operand): Handle 'Z'.
  21699. ['z']: Remove handling of special fild/fist suffixes.
  21700. (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
  21701. * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
  21702. suffix of fild insn.
  21703. (*floatsi<mode>2_vector_mixed): Ditto.
  21704. (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
  21705. (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
  21706. (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
  21707. (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
  21708. * config/i386/gas.h (GAS_MNEMONICS): Remove.
  21709. 2009-04-25 Ben Elliston <bje@au.ibm.com>
  21710. * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
  21711. the source of a set operation.
  21712. 2009-04-25 Anatoly Sokolov <aesok@post.ru>
  21713. * target.h (struct gcc_target): Add case_values_threshold field.
  21714. * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
  21715. (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
  21716. * targhooks.c (default_case_values_threshold): New function.
  21717. * targhooks.h (default_case_values_threshold): Declare function.
  21718. * stmt.c (expand_case): Use case_values_threshold target hook.
  21719. * expr.h (case_values_threshold): Remove declartation.
  21720. * expr.c (case_values_threshold): Remove function.
  21721. * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
  21722. * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
  21723. * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
  21724. (avr_case_values_threshold): Declare as static.
  21725. * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
  21726. * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
  21727. * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
  21728. (mn10300_case_values_threshold): New function.
  21729. 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
  21730. * ira.c (setup_cover_and_important_classes): Add enum cast.
  21731. 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
  21732. * genpreds.c (write_enum_constraint_num): Output definition of
  21733. CONSTRAINT_NUM_DEFINED_P macro.
  21734. * ira.c (setup_cover_and_important_classes): Use
  21735. CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
  21736. 2009-04-24 DJ Delorie <dj@redhat.com>
  21737. * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
  21738. __SH2A_SINGLE_ONLY__ also.
  21739. 2009-04-24 Steve Ellcey <sje@cup.hp.com>
  21740. * config/ia64/ia64.md (movfs_internal): Allow flt constants.
  21741. (movdf_internal): Ditto.
  21742. * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
  21743. SFmode and DFmode constants.
  21744. (ia64_print_operand): Add 'G' format for printing
  21745. floating point constants.
  21746. 2009-04-24 Richard Guenther <rguenther@suse.de>
  21747. * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
  21748. from unsigned additions.
  21749. 2009-04-24 Joseph Myers <joseph@codesourcery.com>
  21750. * c-typeck.c (set_init_index): Allow array designators that are
  21751. not integer constant expressions with a pedwarn if pedantic.
  21752. 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
  21753. * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
  21754. zero if no overlap in nonzero bits between the operands.
  21755. 2009-04-24 Ian Lance Taylor <iant@google.com>
  21756. * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
  21757. (record_dead_and_set_regs): Likewise.
  21758. * df.h (struct df_mw_hardreg): Change flags field to int.
  21759. (struct df_base_ref): Likewise.
  21760. (struct df): Change changeable_flags field to int.
  21761. * df-scan.c (df_defs_record): Change clobber_flags to int.
  21762. * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
  21763. constants rather than #define macros.
  21764. (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
  21765. (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
  21766. (enum dwarf_calling_convention): Likewise.
  21767. (enum dwarf_line_number_x_ops): Likewise.
  21768. (enum dwarf_call_frame_info): Likewise.
  21769. (enum dwarf_source_language): Likewise.
  21770. * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
  21771. (add_calling_convention_attribute): Likewise.
  21772. * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
  21773. (combine_comparisons): Change compcode to int. Add cast to enum type.
  21774. * genrecog.c (maybe_both_true_2): Change c to int.
  21775. (write_switch): Likewise. Add cast to enum type.
  21776. * gimplify.c (gimplify_omp_for): Handle return values from
  21777. gimplify_expr using MIN rather than bitwise or.
  21778. (gimplify_expr): Add cast to enum type.
  21779. * ipa-prop.c (update_jump_functions_after_inlining): Change
  21780. IPA_BOTTOM to IPA_JF_UNKNOWN.
  21781. * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
  21782. Add casts to enum type.
  21783. (setup_cover_and_important_classes): Change cl to int. Add casts
  21784. to enum type.
  21785. (setup_class_translate): Change cl and mode to int.
  21786. (ira_init_once): Change mode to int.
  21787. (free_register_move_costs): Likewise.
  21788. (setup_prohibited_mode_move_regs): Add casts to enum type.
  21789. * langhooks.c (add_builtin_function_common): Rework assertion that
  21790. value fits bitfield.
  21791. * mcf.c (add_fixup_edge): Change type parameter to edge_type.
  21792. * omega.c (omega_do_elimination): Avoid math on enum types.
  21793. * optabs.c (expand_vec_shift_expr): Remove casts to int.
  21794. * opts.c (set_debug_level): Change 2 to enum constant. Use new
  21795. int local to handle integral_argment value.
  21796. * regmove.c (try_auto_increment): Change PUT_MODE to
  21797. PUT_REG_NOTE_KIND.
  21798. * reload.c (push_secondary_reload): Add casts to enum type.
  21799. (secondary_reload_class, find_valid_class): Likewise.
  21800. * reload1.c (emit_input_reload_insns): Likewise.
  21801. * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
  21802. * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
  21803. * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
  21804. constant.
  21805. * tree.c (build_common_builtin_nodes): Add casts to enum type.
  21806. * tree-complex.c (complex_lattice_t): Typedef to int rather than
  21807. enum type.
  21808. (expand_complex_libcall): Add casts to enum type.
  21809. * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
  21810. * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
  21811. with ERROR_MARK, not NUM_TREE_CODES.
  21812. (vect_create_epilog_for_reduction): Likewise.
  21813. (vectorizable_reduction): Don't initialize epiloc_reduc_code.
  21814. When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
  21815. * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
  21816. enum machine_mode.
  21817. * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
  21818. vect_unused_in_loop. Change 0 to loop_vect.
  21819. * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
  21820. * var-tracking.c (get_init_value): Change return type to enum
  21821. var_init_status.
  21822. * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
  21823. * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
  21824. arm_fp_model.
  21825. (arm_override_options): Add casts to enum type.
  21826. (arm_emit_tls_decoration): Likewise.
  21827. * config/i386/i386.c (ix86_function_specific_restore): Add casts
  21828. to enum type.
  21829. * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
  21830. * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
  21831. * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
  21832. enum type.
  21833. * config/s390/s390.c (code_for_builtin_64): Change to array of
  21834. enum insn_code.
  21835. (code_for_builtin_31): Likewise.
  21836. (s390_expand_builtin): Change code_for_builtin to enum insn_code
  21837. const *.
  21838. * config/sparc/sparc.c (sparc_override_options): Change value
  21839. field in struct code_model to enum cmodel. In initializer change
  21840. 0 to NULL and add cast to enum type.
  21841. * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
  21842. Change all callers. Issue a -Wc++-compat warning using
  21843. lhs_origtype if necessary.
  21844. (convert_for_assignment): Issue -Wc++-compat warnings about
  21845. invalid conversions to enum type on assignment.
  21846. * c-common.h (build_modify_expr): Update declaration.
  21847. 2009-04-24 Nick Clifton <nickc@redhat.com>
  21848. * config/iq2000/iq2000.c (function_arg): Handle TImode values.
  21849. (function_arg_advance): Likewise.
  21850. * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
  21851. 5th alternative.
  21852. 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
  21853. * config/s390/constraints.md ('I', 'J'): Fix condition.
  21854. 2009-04-24 Diego Novillo <dnovillo@google.com>
  21855. * gengtype-parse.c (parse_error): Add newline after message.
  21856. 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
  21857. * config/i386/sse.md (avxmodesuffixs): Removed.
  21858. (*avx_pinsr<avxmodesuffixs>): Renamed to ...
  21859. (*avx_pinsr<ssevecsize>): This.
  21860. 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
  21861. * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
  21862. follow chains of regs with a single definition, and allow expressions
  21863. that are function_invariant_p.
  21864. (simple_rhs_p): Allow expressions that are function_invariant_p.
  21865. 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
  21866. PR middle-end/39867
  21867. * fold-const.c (fold_cond_expr_with_comparison): When folding
  21868. > and >= to MAX, make sure the MAX uses the same type as the
  21869. comparison's operands.
  21870. 2009-04-24 Nick Clifton <nickc@redhat.com>
  21871. * config/frv/frv.c (frv_frame_access): Do not use reg+reg
  21872. addressing for DImode accesses.
  21873. (frv_print_operand_address): Handle PLUS case.
  21874. * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
  21875. 2009-04-24 Jakub Jelinek <jakub@redhat.com>
  21876. PR rtl-optimization/39794
  21877. * alias.c (canon_true_dependence): Add x_addr argument.
  21878. * rtl.h (canon_true_dependence): Adjust prototype.
  21879. * cse.c (check_dependence): Adjust canon_true_dependence callers.
  21880. * cselib.c (cselib_invalidate_mem): Likewise.
  21881. * gcse.c (compute_transp): Likewise.
  21882. * dse.c (scan_reads_nospill): Likewise.
  21883. (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
  21884. addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
  21885. canon_base_addr of the group, plus optional offset.
  21886. (struct group_info): Rename canon_base_mem to
  21887. canon_base_addr.
  21888. (get_group_info): Set canon_base_addr to canon_rtx of base, not
  21889. canon_rtx of base_mem.
  21890. 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
  21891. * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
  21892. Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
  21893. 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  21894. * config/spu/spu-builtins.h: Delete file.
  21895. * config/spu/spu.h (enum spu_builtin_type): Move here from
  21896. spu-builtins.h.
  21897. (struct spu_builtin_description): Likewise. Add GTY marker.
  21898. Do not use enum spu_function_code or enum insn_code.
  21899. (spu_builtins): Add extern declaration.
  21900. * config/spu/spu.c: Do not include "spu-builtins.h".
  21901. (enum spu_function_code, enum spu_builtin_type_index,
  21902. V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
  21903. V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
  21904. unsigned_V8HI_type_node, unsigned_V4SI_type_node,
  21905. unsigned_V2DI_type_node): Move here from spu-builtins.h.
  21906. (spu_builtin_types): Make static. Add GTY marker.
  21907. (spu_builtins): Add extern declaration with GTY marker.
  21908. Include "gt-spu.h".
  21909. * config/spu/spu-c.c: Do not include "spu-builtins.h".
  21910. (spu_resolve_overloaded_builtin): Do not use spu_function_code.
  21911. Check programmatically whether all parameters are scalar.
  21912. * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
  21913. 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
  21914. * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
  21915. assignment from the constructor either if the target is volatile.
  21916. 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
  21917. * config/arm/arm.md (insv): Do not share operands[0].
  21918. 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
  21919. * config/vxlib-tls.c (active_tls_threads): Delete.
  21920. (delete_hook_installed): New.
  21921. (tls_delete_hook): Don't delete the delete hook.
  21922. (tls_destructor): Delete it here.
  21923. (__gthread_set_specific): Adjust installing the delete hook.
  21924. (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
  21925. __gthread_leave_tsd_dtor_context.
  21926. 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
  21927. * c-format.c (gcc_tdiag_char_table): Add support for %E.
  21928. 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
  21929. * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
  21930. enum type.
  21931. (alpha_rtx_costs): Ditto.
  21932. (emit_unlikely_jump): Use add_reg_note.
  21933. (emit_frame_store_1): Ditto.
  21934. (alpha_expand_prologue): Ditto.
  21935. (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
  21936. * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
  21937. 2009-04-23 Nick Clifton <nickc@redhat.com>
  21938. * config/v850/v850.md (epilogue): Remove suppressed code.
  21939. (return): Rename to return_simple and remove test of frame size.
  21940. * config/v850/v850.c (expand_epilogue): Rename call to gen_return
  21941. to gen_return_simple.
  21942. 2009-04-22 Jing Yu <jingyu@google.com>
  21943. PR testsuite/39781
  21944. * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
  21945. 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
  21946. PR C/31499
  21947. * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
  21948. and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
  21949. value is a VECTOR_CST, the element type is the element type of the
  21950. vector.
  21951. 2009-04-22 DJ Delorie <dj@redhat.com>
  21952. * config/m32c/m32c.h: Update GTY annotations to new syntax.
  21953. 2009-04-22 Jakub Jelinek <jakub@redhat.com>
  21954. * alias.c (find_base_term): Move around LO_SUM case, so that
  21955. CONST falls through into PLUS/MINUS handling.
  21956. PR c/39855
  21957. * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
  21958. into 0, use omit_one_operand.
  21959. 2009-04-23 Ben Elliston <bje@au.ibm.com>
  21960. * config/rs6000/linux-unwind.h (get_regs): Remove type
  21961. puns. Change the type of `pc' to an array of unsigned ints and
  21962. update all users. Constify frame24.
  21963. 2009-04-22 DJ Delorie <dj@redhat.com>
  21964. * config/m32c/m32c.c (m32c_special_page_vector_p): Move
  21965. declarations before code.
  21966. (current_function_special_page_vector): Likewise.
  21967. (m32c_expand_insv): Silence a warning.
  21968. 2009-04-21 Taras Glek <tglek@mozilla.com>
  21969. * alias.c: Update GTY annotations to new syntax.
  21970. * basic-block.h: Likewise.
  21971. * bitmap.h: Likewise.
  21972. * c-common.h: Likewise.
  21973. * c-decl.c: Likewise.
  21974. * c-parser.c: Likewise.
  21975. * c-pragma.c: Likewise.
  21976. * c-tree.h: Likewise.
  21977. * cfgloop.h: Likewise.
  21978. * cgraph.h: Likewise.
  21979. * config/alpha/alpha.c: Likewise.
  21980. * config/arm/arm.h: Likewise.
  21981. * config/avr/avr.h: Likewise.
  21982. * config/bfin/bfin.c: Likewise.
  21983. * config/cris/cris.c: Likewise.
  21984. * config/darwin.c: Likewise.
  21985. * config/frv/frv.c: Likewise.
  21986. * config/i386/i386.c: Likewise.
  21987. * config/i386/i386.h: Likewise.
  21988. * config/i386/winnt.c: Likewise.
  21989. * config/ia64/ia64.h: Likewise.
  21990. * config/iq2000/iq2000.c: Likewise.
  21991. * config/mips/mips.c: Likewise.
  21992. * config/mmix/mmix.h: Likewise.
  21993. * config/pa/pa.c: Likewise.
  21994. * config/pa/pa.h: Likewise.
  21995. * config/rs6000/rs6000.c: Likewise.
  21996. * config/s390/s390.c: Likewise.
  21997. * config/sparc/sparc.c: Likewise.
  21998. * config/xtensa/xtensa.c: Likewise.
  21999. * cselib.h: Likewise.
  22000. * dbxout.c: Likewise.
  22001. * dwarf2out.c: Likewise.
  22002. * except.c: Likewise.
  22003. * except.h: Likewise.
  22004. * fixed-value.h: Likewise.
  22005. * function.c: Likewise.
  22006. * function.h: Likewise.
  22007. * gimple.h: Likewise.
  22008. * integrate.c: Likewise.
  22009. * optabs.c: Likewise.
  22010. * output.h: Likewise.
  22011. * real.h: Likewise.
  22012. * rtl.h: Likewise.
  22013. * stringpool.c: Likewise.
  22014. * tree-data-ref.c: Likewise.
  22015. * tree-flow.h: Likewise.
  22016. * tree-scalar-evolution.c: Likewise.
  22017. * tree-ssa-address.c: Likewise.
  22018. * tree-ssa-alias.h: Likewise.
  22019. * tree-ssa-operands.h: Likewise.
  22020. * tree.c: Likewise.
  22021. * tree.h: Likewise.
  22022. * varasm.c: Likewise.
  22023. * varray.h: Likewise.
  22024. * vec.h: Likewise.
  22025. * coretypes.h: Do not define GTY macro if it is already defined.
  22026. * doc/gty.texi: Update GTY documentation to new syntax.
  22027. * gengtype-lex.l: Enforce attribute-like syntax for GTY
  22028. annotations on structs.
  22029. * gengtype-parse.c: Likewise.
  22030. 2009-04-22 Mark Heffernan <meheff@google.com>
  22031. * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
  22032. 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
  22033. * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
  22034. where appropriate.
  22035. 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
  22036. * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
  22037. the same as a PLUS without a shift. Increase the cost of a
  22038. CONST_INT in MULT.
  22039. 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
  22040. * Makefile.in: Update dependencies.
  22041. * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
  22042. * errors.h: Remove bogus comment about compatibility.
  22043. (warning): Update declaration.
  22044. * genautomata.c: Update all calls to warning.
  22045. * gimple.c: Do not include errors.h. Include toplev.h.
  22046. * tree-ssa-structalias.c: Do not include errors.h.
  22047. * omega.c: Likewise.
  22048. * tree-ssa-reassoc.c: Likewise.
  22049. * config/spu/spu-c.c: Likewise.
  22050. * config/spu/t-spu-elf: Update dependencies.
  22051. 2009-04-22 Richard Guenther <rguenther@suse.de>
  22052. PR tree-optimization/39824
  22053. * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
  22054. make sure the types are compatible.
  22055. 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
  22056. PR c++/14875
  22057. * c-common.c (c_parse_error): Take a token_flags parameter.
  22058. Use token_type for the token type instead.
  22059. Pass token_flags to cpp_type2name.
  22060. * c-common.h (c_parse_error): Update declaration.
  22061. * c-parser.c (c_parser_error): Pass 0 as token flags.
  22062. 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
  22063. PR rtl-optimization/39580
  22064. * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
  22065. 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  22066. * function.c (expand_function_end): Do not emit a jump to the "naked"
  22067. return label for fall-through returns.
  22068. * except.c (sjlj_emit_function_exit): Always place the call to the
  22069. unregister function at the location installed by expand_function_end.
  22070. 2009-04-22 Richard Guenther <rguenther@suse.de>
  22071. PR tree-optimization/39845
  22072. * tree-switch-conversion.c (build_arrays): Add new referenced vars.
  22073. (gen_inbound_check): Likewise.
  22074. 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
  22075. * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
  22076. padding for PPC.
  22077. (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
  22078. * config/vxlib.c (__gthread_once): Add race guard for PPC.
  22079. 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
  22080. * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
  22081. sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
  22082. shift counts to avoid out-of-bounds array accesses.
  22083. 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
  22084. * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
  22085. (Pmode): Move above.
  22086. 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
  22087. * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
  22088. NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
  22089. GET_CODE macro. Use IN_RANGE macro where appropriate.
  22090. * config/alpha/alpha.h: Ditto.
  22091. * config/alpha/alpha.md: Ditto.
  22092. * config/alpha/constraints.md: Ditto.
  22093. * config/alpha/predicates.md: Ditto.
  22094. 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
  22095. * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
  22096. * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22097. * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22098. * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22099. * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22100. * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22101. * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22102. * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22103. * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22104. * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22105. * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22106. * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22107. * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22108. * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22109. * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22110. * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22111. * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22112. * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22113. * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22114. * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22115. * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22116. * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22117. * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22118. * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22119. * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22120. * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22121. * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
  22122. 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
  22123. * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
  22124. references from comments.
  22125. * cfgbuild.c (count_basic_blocks): Delete.
  22126. (find_basic_blocks_1): Delete.
  22127. (find_basic_blocks): Delete.
  22128. * except.c (finish_eh_generation): Make static. Move comment from
  22129. except.h here. Remove find_basic_blocks references from comments.
  22130. * except.h (finish_eh_generation): Delete.
  22131. * basic-block.h (find_basic_blocks): Delete.
  22132. * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
  22133. 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
  22134. * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
  22135. (sdbout_parms): Likewise.
  22136. 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
  22137. * config/sh/sh.c (prepare_cbranch_operands): Use
  22138. LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
  22139. (expand_cbranchdi4): Likewise.
  22140. (from_compare): Add cast to enum type.
  22141. (expand_cbranchsi4): Use add_reg_note.
  22142. (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
  22143. (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
  22144. (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
  22145. (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
  22146. * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
  22147. instead of CODE_FOR_nothing.
  22148. (cbranchdi4): Likewise. Fix the order of arguments for
  22149. gen_rtx_fmt_ee.
  22150. (push_fpscr): Use add_reg_note.
  22151. (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
  22152. reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
  22153. 2009-04-21 Joseph Myers <joseph@codesourcery.com>
  22154. * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
  22155. ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
  22156. ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
  22157. ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
  22158. ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
  22159. FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
  22160. config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
  22161. config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
  22162. config/alpha/x-vms, config/arc/t-arc,
  22163. config/arm/README-interworking, config/arm/arm-c.c,
  22164. config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
  22165. config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
  22166. config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
  22167. config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
  22168. config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
  22169. config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
  22170. config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
  22171. config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
  22172. config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
  22173. config/cris/t-elfmulti, config/crx/t-crx,
  22174. config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
  22175. config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
  22176. config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
  22177. config/h8300/t-h8300, config/i386/athlon.md,
  22178. config/i386/darwin-libgcc.10.4.ver,
  22179. config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
  22180. config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
  22181. config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
  22182. config/i386/t-linux64, config/i386/t-nwld,
  22183. config/i386/t-rtems-i386, config/i386/t-sol2-10,
  22184. config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
  22185. config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
  22186. config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
  22187. config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
  22188. config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
  22189. config/iq2000/t-iq2000, config/libgcc-glibc.ver,
  22190. config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
  22191. config/m32r/t-m32r, config/m68hc11/t-m68hc11,
  22192. config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
  22193. config/m68k/t-uclinux, config/mcore/t-mcore,
  22194. config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
  22195. config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
  22196. config/mips/crtn.asm, config/mips/irix-crti.asm,
  22197. config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
  22198. config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
  22199. config/mips/mips-fixed.md, config/mips/sb1.md,
  22200. config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
  22201. config/mips/t-iris6, config/mips/t-isa3264,
  22202. config/mips/t-libgcc-mips16, config/mips/t-linux64,
  22203. config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
  22204. config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
  22205. config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
  22206. config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
  22207. config/mn10300/t-linux, config/mn10300/t-mn10300,
  22208. config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
  22209. config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
  22210. config/picochip/libgccExtras/clzsi2.asm,
  22211. config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
  22212. config/rs6000/darwin-libgcc.10.4.ver,
  22213. config/rs6000/darwin-libgcc.10.5.ver,
  22214. config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
  22215. config/rs6000/t-aix43, config/rs6000/t-aix52,
  22216. config/rs6000/t-darwin, config/rs6000/t-fprules,
  22217. config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
  22218. config/rs6000/t-lynx, config/rs6000/t-netbsd,
  22219. config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
  22220. config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
  22221. config/rs6000/t-rtems, config/rs6000/t-spe,
  22222. config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
  22223. config/score/t-score-elf, config/sh/divcost-analysis,
  22224. config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
  22225. config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
  22226. config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
  22227. config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
  22228. config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
  22229. config/stormy16/stormy-abi, config/stormy16/t-stormy16,
  22230. config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
  22231. config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
  22232. config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
  22233. config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
  22234. config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
  22235. gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
  22236. java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
  22237. limitx.h, version.c, xcoff.h: Add copyright and license notices.
  22238. * config/h8300/genmova.sh: Include copyright and license notices
  22239. in generated output.
  22240. * config/h8300/mova.md: Regenerate.
  22241. * doc/install.texi2html: Include word "Copyright" in copyright
  22242. notice and use name "Free Software Foundation, Inc.".
  22243. * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
  22244. ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
  22245. ChangeLog-2007, ChangeLog-2008: Correct dates.
  22246. 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
  22247. * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
  22248. NE_EXPR operations as well.
  22249. * c-parser.c (c_parser_condition): Do not set location information on
  22250. the condition.
  22251. (c_parser_conditional_expression): Likewise.
  22252. (c_parser_binary_expression): Set location information on operators.
  22253. * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
  22254. TRUTH_NOT_EXPR has been folded.
  22255. * fold-const.c (fold_truth_not_expr): Copy location information from
  22256. the incoming expression to the outgoing one.
  22257. * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
  22258. recursive calls on the LHS of the operator but pass that of the
  22259. operator to recursive calls on the RHS of the operator. Set it
  22260. on the COND_EXPR.
  22261. (shortcut_cond_expr): Set the locus of the operator on the second
  22262. COND_EXPR and that of the expression on the first in degenerate cases.
  22263. Pass the locus of the expression to calls to shortcut_cond_r.
  22264. Set the locus of the 'then' block on the associated jump, if any.
  22265. (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
  22266. (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
  22267. expression to call to gimplify_boolean_expr.
  22268. 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
  22269. * config.gcc: Add additional configuration for
  22270. i686-w64-mingw* and x86_64-w64-mingw* triplet.
  22271. * config/i386/mingw-w64.h: New mingw-w64 specific header.
  22272. (CPP_SPEC): Redefine for allowing -municode option.
  22273. (STARTFILE_SPEC): Likewise.
  22274. * config/i386/t-mingw-w64: New.
  22275. * config/i386/mingw-w64.opt: New.
  22276. (municode): Add new target option.
  22277. * doc/invoke.texi (municode): Add documentation for new option.
  22278. 2009-04-21 Ian Lance Taylor <iant@google.com>
  22279. * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
  22280. Correct test for number of arguments.
  22281. * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
  22282. 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
  22283. * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
  22284. argument of emit_library_call.
  22285. 2009-04-21 Richard Guenther <rguenther@suse.de>
  22286. PR middle-end/39829
  22287. * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
  22288. inside VIEW_CONVERT_EXPRs.
  22289. 2009-04-21 Martin Jambor <mjambor@suse.cz>
  22290. * tree-switch-conversion.c (build_constructors): Split a long line.
  22291. (constructor_contains_same_values_p): New function.
  22292. (build_one_array): Create assigns of constants if possible, do not
  22293. call mark_sym_for_renaming, call update_stmt.
  22294. (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
  22295. make_rename_temp. Do not call mark_symbols_for_renaming, call
  22296. update_stmt.
  22297. (gen_def_assigns): Do not call mark_symbols_for_renaming or
  22298. find_new_referenced_vars, call update_stmt.
  22299. (gen_inbound_check): Use create_tmp_var and create ssa names manually
  22300. instead of calling make_rename_temp. Do not call
  22301. find_new_referenced_vars or mark_symbols_for_renaming, call
  22302. update_stmt.
  22303. 2009-04-21 Richard Guenther <rguenther@suse.de>
  22304. PR tree-optimization/39827
  22305. * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
  22306. (tree_ssa_phiprop): Pass the correct array size.
  22307. 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
  22308. * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
  22309. 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
  22310. PR 16202
  22311. * c-typeck.c (lvalue_p): Move declaration ...
  22312. * c-common.h (lvalue_p): ... to here.
  22313. * c-common.c (candidate_equal_p): New.
  22314. (add_tlist): Use it.
  22315. (merge_tlist): Use it.
  22316. (warn_for_collisions_1): Likewise.
  22317. (warning_candidate_p): Accept more candidates.
  22318. (verify_tree): A warning candidate can be an expression. Use
  22319. candidate_equal_p.
  22320. 2009-04-21 Ben Elliston <bje@au.ibm.com>
  22321. PR target/5267
  22322. * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
  22323. for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
  22324. options. Remove -mcall-solaris documentation.
  22325. 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
  22326. PR c++/13358
  22327. * doc/invoke.texi (-Wlong-long): Update description.
  22328. * c-lex (interpret_integer): Only warn if there was no previous
  22329. overflow and -Wlong-long is enabled.
  22330. * c-decl.c (declspecs_add_type): Drop redundant flags.
  22331. * c.opt (Wlong-long): Init to -1.
  22332. * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
  22333. and front-end warn_long_long. Wlong-long only depends on other
  22334. flags if it is uninitialized.
  22335. * c-parser.c (disable_extension_diagnostics): warn_long_long is
  22336. the same for CPP and FE.
  22337. (restore_extension_diagnostics): Likewise.
  22338. 2009-04-20 Ian Lance Taylor <iant@google.com>
  22339. Fix enum conversions which are invalid in C++:
  22340. * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
  22341. * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
  22342. * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
  22343. * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
  22344. * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
  22345. (dbxout_parms): Likewise.
  22346. * df-core.c (df_set_flags): Change changeable_flags parameter to int.
  22347. (df_clear_flags): Likewise.
  22348. * df-problems.c (df_rd_bb_local_compute_process_def): Change
  22349. top_flag parameter to int.
  22350. (df_chain_create_bb_process_use): Likewise.
  22351. (df_chain_add_problem): Change chain_flags parameter to unsigned int.
  22352. Remove cast.
  22353. * df-scan.c (df_ref_create): Change ref_flags parameter to int.
  22354. (df_ref_create_structure, df_def_record_1): Likewise.
  22355. (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
  22356. (df_notes_rescan): Change 0 to VOIDmode in function call.
  22357. (df_get_call_refs, df_insn_refs_collect): Likewise.
  22358. (df_bb_regs_collect): Likewise.
  22359. (df_entry_block_defs_collect): Likewise.
  22360. (df_exit_block_uses_collect): Likewise.
  22361. * df.h: Update declarations.
  22362. * double-int.c (double_int_divmod): Add cast to enum type.
  22363. * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
  22364. * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
  22365. (based_loc_descr): Likewise.
  22366. (loc_descriptor_from_tree_1): Change first_op and second_op to
  22367. enum dwarf_location_atom. Add cast to enum type.
  22368. * expmed.c (init_expmed): Change 0 to SET in function call.
  22369. * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
  22370. (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
  22371. (do_store_flag): Likewise.
  22372. * fixed-value.h (struct fixed_value): Change mode to enum
  22373. machine_mode.
  22374. * function.c (assign_parms): Change 0 to VOIDmode in function call.
  22375. * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
  22376. function call.
  22377. (insert_insn_decl, insert_decl, insert_state): Likewise.
  22378. (automata_list_finish): Likewise.
  22379. * genrecog.c (process_define_predicate): Add cast to enum type.
  22380. * gensupport.c (init_predicate_table): Add cast to enum type.
  22381. * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
  22382. function call.
  22383. (gimple_build_call_1, gimple_build_label): Likewise.
  22384. (gimple_build_goto, gimple_build_asm_1): Likewise.
  22385. (gimple_build_switch_1, gimple_build_cdt): Likewise.
  22386. * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
  22387. (enum fallback): Rename from enum fallback_t.
  22388. (fallback_t): Typedef as int.
  22389. * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
  22390. GSI_SAME_STMT in function call.
  22391. * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
  22392. enum type.
  22393. (setup_reg_class_relations): Likewise.
  22394. (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
  22395. (setup_prohibited_class_mode_regs): Add cast to enum type.
  22396. (setup_prohibited_mode_move_regs): Likewise.
  22397. * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
  22398. (record_address_regs): Change i to enum reg_class.
  22399. * lists.c (alloc_EXPR_LIST): Add cast to enum type.
  22400. * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
  22401. (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
  22402. (GET_MODE_2XWIDER_MODE): Likewise.
  22403. (GET_CLASS_NARROWEST_MODE): Likewise.
  22404. * omp-low.c (expand_omp_for): Add cast to enum type.
  22405. * optabs.c (debug_optab_libfuncs): Add casts to enum type.
  22406. * opts.c (enable_warning_as_error): Change kind to diagostic_t.
  22407. * postreload.c (reload_cse_simplify_operands): Change rclass local
  22408. to enum reg_class.
  22409. * predict.c (combine_predictions_for_insn): Change best_predictor
  22410. and predictor to enum br_predictor.
  22411. (combine_predictions_for_bb): Likewise.
  22412. (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
  22413. use SET_PREDICT_EXPR_OUTCOME.
  22414. * real.c (real_arithmetic): Change icode to code in function call.
  22415. * reginfo.c (init_move_cost): Add casts to enum type.
  22416. (init_reg_sets_1, init_fake_stack_mems): Likewise.
  22417. * regmove.c (regclass_compatible_p): Change class0 and class1 to
  22418. enum reg_class.
  22419. * reload.c (find_valid_class): Add casts to enum type.
  22420. (push_reload): Change 0 to NO_REGS in function call.
  22421. (find_reloads): Change this_alternative to array of enum
  22422. reg_class. Remove some now-unnecessary casts.
  22423. (make_memloc): Change 0 to VOIDmode in function call.
  22424. * reload1.c (reload): Change 0 to VOIDmode in function call.
  22425. (eliminate_regs_1, elimination_effects): Likewise.
  22426. (eliminate_regs_in_insn): Likewise.
  22427. (emit_input_reload_insns): Add cast to enum type.
  22428. (delete_output_reload): Change 0 to VOIDmode in function call.
  22429. * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
  22430. to enum type in function call.
  22431. * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
  22432. (SET_PREDICT_EXPR_OUTCOME): Define.
  22433. * tree-dump.c (get_dump_file_info): Change phase parameter to int.
  22434. (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
  22435. (dump_initialized_p, dump_flag_name, dump_end): Likewise.
  22436. (dump_function): Likewise.
  22437. * tree-dump.h: Update declarations.
  22438. * tree-pass.h: Update declarations.
  22439. * varasm.c (assemble_integer): Change mclass to enum mode_class.
  22440. * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
  22441. enum type.
  22442. (arm_rtx_costs_1): Correct parenthesization.
  22443. (arm_rtx_costs): Add casts to enum type.
  22444. (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
  22445. (vfp_emit_fstmd): Use add_rg_note.
  22446. (emit_multi_reg_push, emit_sfm): Likewise.
  22447. (thumb_set_frame_pointer): Likewise.
  22448. (arm_expand_prologue): Likewise.
  22449. (arm_regno_class): Change return type to enum reg_class.
  22450. (thumb1_expand_prologue): Use add_reg_note.
  22451. * config/arm/arm-protos.h (arm_regno_class): Update declaration.
  22452. * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
  22453. in function call.
  22454. * config/arm/gentune.sh: Add cast to enum type.
  22455. * config/arm/arm-tune.md: Rebuild.
  22456. * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
  22457. (ix86_split_fp_branch, predict_jump): Likewise.
  22458. (ix86_expand_multi_arg_builtin): Change sub_code from enum
  22459. insn_code to enum rtx_code.
  22460. (ix86_builtin_vectorized_function): Add cast to enum type.
  22461. * config/i386/i386.md (truncdfsf2): Change slot to enum
  22462. ix86_stack_slot.
  22463. (truncxf<mode>2, isinf<mode>2): Likewise.
  22464. * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
  22465. enum type.
  22466. * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
  22467. (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
  22468. (insert_bundle_state): Change 1 to INSERT in function call.
  22469. (ia64_add_bundle_selector_before): Likewise.
  22470. * config/ia64/ia64.md (cpu attr): Add cast to enum type.
  22471. (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
  22472. (restore_stack_nonlocal): Likewise.
  22473. * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
  22474. function call.
  22475. * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
  22476. function call.
  22477. (mips_rtx_costs): Likewise.
  22478. (mips_override_options): Add casts to enum type.
  22479. * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
  22480. in function call.
  22481. * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
  22482. (store_reg, set_reg_plus_d): Likewise.
  22483. (hppa_expand_prologue, hppa_profile_hook): Likewise.
  22484. * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
  22485. cast to enum type.
  22486. (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
  22487. function call.
  22488. (emit_unlikely_jump): Use add_reg_note.
  22489. (rs6000_emit_allocate_stack): Likewise.
  22490. (rs6000_frame_related, rs6000_emit_prologue): Likewise.
  22491. (output_toc): Change 1 to INSERT in function call.
  22492. (output_profile_hook): Change 0 to LCT_NORMAL in function call.
  22493. (rs6000_initialize_trampoline): Likewise.
  22494. (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
  22495. function call.
  22496. * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
  22497. (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
  22498. (s390_expand_setmem, s390_expand_cmpmem): Likewise.
  22499. (save_gprs): Use add_reg_note.
  22500. (s390_emit_prologue): Likewise.
  22501. (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
  22502. * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
  22503. (sparc_fold_builtin): Add cast to enum type.
  22504. * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
  22505. enum insn_code.
  22506. (spu_expand_prologue): Use add_reg_note.
  22507. (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
  22508. 2009-04-20 Ian Lance Taylor <iant@google.com>
  22509. * c-parser.c (c_parser_attributes): Change VEC back to tree list.
  22510. (c_parser_postfix_expression_after_primary): Get VEC for list of
  22511. arguments. Get original types of arguments. Call
  22512. build_function_call_vec.
  22513. (cached_expr_list_1, cached_expr_list_2): New static variables.
  22514. (c_parser_expr_list): Change return type to VEC *. Add
  22515. p_orig_types parameter. Change all callers.
  22516. (c_parser_release_expr): New static function.
  22517. (c_parser_vec_to_tree_list): New static function.
  22518. * c-typeck.c (build_function_call): Rewrite to build a VEC and
  22519. call build_function_call_vec.
  22520. (build_function_call_vec): New function, based on old
  22521. build_function_call.
  22522. (convert_arguments): Remove nargs and argarray parameters. Change
  22523. values to a VEC. Add origtypes parameter.
  22524. (build_modify_expr): Add rhs_origtype parameter. Change all callers.
  22525. (convert_for_assignment): Add origtype parameter. Change all
  22526. callers. If warn_cxx_compat, check for conversion to an enum
  22527. type when calling a function.
  22528. (store_init_value): Add origtype parameter. Change all callers.
  22529. (digest_init): Likewise.
  22530. (struct init_node): Add origtype field.
  22531. (add_pending_init): Add origtype parameter. Change all callers.
  22532. (output_init_element): Likewise.
  22533. (output_pending_init_elements): Pass origtype from init_node to
  22534. output_init_element.
  22535. (process_init_element): Pass origtype from c_expr to
  22536. output_init_element.
  22537. (c_finish_return): Add origtype parameter. Change all callers.
  22538. * c-common.c (sync_resolve_size): Change params to VEC *. Change
  22539. caller.
  22540. (sync_resolve_params): Likewise.
  22541. (sync_resolve_return): Change params to first_param. Change caller.
  22542. (resolve_overloaded_builtins): Change params to VEC *. Change
  22543. callers. Save first parameter around call to build_function_call_vec.
  22544. * c-decl.c (finish_decl): Add origtype parameter. Change all
  22545. callers. Call build_function_call_vec rather than
  22546. build_function_call for cleanup.
  22547. * c-tree.h: Update declarations.
  22548. * c-common.h: Update declarations.
  22549. * stub-objc.c (objc_rewrite_function_call): Change parameter from
  22550. params to first_param.
  22551. * target.h (struct gcc_target): Change resolve_overloaded_builtin
  22552. params parameter from tree to void *.
  22553. * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
  22554. Change arglist parameter to have type void *, and to be a pointer
  22555. to a VEC.
  22556. * config/rs6000/rs6000-protos.h
  22557. (altivec_resolve_overloaded_builtin): Update declaration.
  22558. * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
  22559. fnargs parameter to have type void *, and to be a pointer to a
  22560. VEC. Call build_function_call_vec instead of
  22561. build_function_call.
  22562. * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
  22563. 2009-04-20 Joey Ye <joey.ye@intel.com>
  22564. Xuepeng Guo <xuepeng.guo@intel.com>
  22565. H.J. Lu <hongjiu.lu@intel.com>
  22566. * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
  22567. * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
  22568. (IX86_LEA_PRIORITY): Likewise.
  22569. (distance_non_agu_define): New function.
  22570. (distance_agu_use): Likewise.
  22571. (ix86_lea_for_add_ok): Likewise.
  22572. (ix86_dep_by_shift_count): Likewise.
  22573. * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
  22574. should split for LEA.
  22575. * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
  22576. function.
  22577. (ix86_dep_by_shift_count): Likewise.
  22578. 2009-04-20 Richard Guenther <rguenther@suse.de>
  22579. * expr.c (handled_component_p): Move ...
  22580. * tree.h (handled_component_p): ... here.
  22581. * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
  22582. ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
  22583. and REALPART_EXPR to be in one group.
  22584. 2009-04-20 Richard Guenther <rguenther@suse.de>
  22585. * basic-block.h (get_all_dominated_blocks): Declare.
  22586. * dominance.c (get_all_dominated_blocks): New function.
  22587. * tree-cfg.c (get_all_dominated_blocks): Remove.
  22588. (remove_edge_and_dominated_blocks): Adjust.
  22589. * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
  22590. (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
  22591. instead of recursing.
  22592. 2009-04-20 Doug Kwan <dougkwan@google.com>
  22593. * cgraph.h (cgraph_node_ptr): New type for vector functions.
  22594. (struct cgraph_node_set_def): New type.
  22595. (cgraph_node_set) New type. Also declare vector functions.
  22596. (struct cgraph_node_set_element_def): New type.
  22597. (cgraph_node_set_element): Ditto.
  22598. (cgraph_node_set_iterator): New iterator type.
  22599. (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
  22600. cgraph_node_set_remove, dump_cgraph_node_set,
  22601. debug_cgraph_node_set): New prototypes.
  22602. (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
  22603. cgraph_node_set_size): New inlines.
  22604. * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
  22605. including cgraph.h.
  22606. (struct ipa_opt_pass): Add struct cgraph_node_set_def
  22607. argument to function 'write_summary'.
  22608. * ipa.c: Include ggc.h.
  22609. (hash_cgraph_node_set_element,
  22610. eq_cgraph_node_set_element, cgraph_node_set_new,
  22611. cgraph_node_set_add, cgraph_node_set_remove,
  22612. cgraph_node_set_find, dump_cgraph_node_set,
  22613. debug_cgraph_node_set): New functions.
  22614. * Makefile.in (ipa.o): Add dependency on GGC_H.
  22615. 2009-04-20 Ira Rosen <irar@il.ibm.com>
  22616. PR tree-optimization/39675
  22617. * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
  22618. check of the return code of vect_schedule_slp. Check that
  22619. stmt_vec_info still exists for the statement, before checking its
  22620. vectorization type.
  22621. 2009-04-20 Michael Matz <matz@suse.de>
  22622. * Makefile.in (generated_files): Take out $(simple_generated_c).
  22623. 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
  22624. * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
  22625. (UINTPTR_TYPE): Likewise.
  22626. 2009-04-19 Joseph Myers <joseph@codesourcery.com>
  22627. PR c/37481
  22628. * c-typeck.c (digest_init): Check for initializing an array with a
  22629. string literal.
  22630. 2009-04-19 Joseph Myers <joseph@codesourcery.com>
  22631. PR c/19771
  22632. * c-semantics.c (pop_stmt_list): Propagate
  22633. STATEMENT_LIST_HAS_LABEL to parent statement list.
  22634. 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
  22635. * config/mips/mips.h (mips_tune_attr): New macro.
  22636. * config/mips/mips.md (cpu): Use it.
  22637. 2009-04-19 Joseph Myers <joseph@codesourcery.com>
  22638. PR c/38243
  22639. * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
  22640. declaring a tag.
  22641. 2009-04-19 Diego Novillo <dnovillo@google.com>
  22642. * toplev.c (compile_file): Move call to coverage_finish ...
  22643. * cgraphunit.c (ipa_passes): ... here.
  22644. Call cgraph_process_new_functions.
  22645. * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
  22646. * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
  22647. 2009-04-19 Jan Hubicka <jh@suse.cz>
  22648. * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
  22649. cfun.
  22650. (dump_cgraph_node): Dump can throw external flag.
  22651. * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
  22652. 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
  22653. PR c/32061
  22654. PR c++/36954
  22655. * doc/invoke.texi: Add -Wlogical-op to -Wextra.
  22656. * common.opt (Wlogical-op): Move from here...
  22657. * c.opt (Wlogical-op): ... to here.
  22658. * c-typeck.c (parser_build_binary_op): Update call to
  22659. warn_logical_operator.
  22660. * c-opts.c (c_common_post_options): Enable warn_logical_op with
  22661. extra_warnings.
  22662. * c-common.c (warn_logical_op): Update.
  22663. * c-common.h (warn_logical_op): Update declaration.
  22664. 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
  22665. * tree.c (protected_set_expr_location): Fix formatting.
  22666. 2009-04-18 Joseph Myers <joseph@codesourcery.com>
  22667. PR c/27676
  22668. * c-typeck.c (readonly_warning): new.
  22669. (build_unary_op, build_modify_expr): Use readonly_warning for
  22670. storing into something readonly but not const-qualified.
  22671. 2009-04-18 Joseph Myers <joseph@codesourcery.com>
  22672. PR c/22367
  22673. * c-typeck.c (build_unary_op): Check for taking address of
  22674. expression of type void.
  22675. 2009-04-18 Joseph Myers <joseph@codesourcery.com>
  22676. PR c/35210
  22677. * c-typeck.c (build_function_call): Check for calling a function
  22678. with qualified void return types. Call require_complete_type when
  22679. generating a trap.
  22680. 2009-04-18 Jan Hubicka <jh@suse.cz>
  22681. * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
  22682. Set nothrow flag.
  22683. * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
  22684. can_throw_external flag.
  22685. * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
  22686. * ipa-pure-const.c (ignore_edge): New function.
  22687. (propagate): Compute order for NOTHROW computation; set NOTHROWs
  22688. only over can_throw_external edges.
  22689. (local_pure_const): Add nothrow flag.
  22690. * ipa-utils.c (searchc): Add ignore_edge callback.
  22691. (ipa_utils_reduced_inorder): Add ignore_edge callback.
  22692. * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
  22693. (set_nothrow_function_flags): Update cgraph.
  22694. * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
  22695. 2009-04-18 Richard Guenther <rguenther@suse.de>
  22696. PR middle-end/39804
  22697. * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
  22698. (fold_stmt): ... this and ...
  22699. (fold_stmt_inplace): ... this.
  22700. (fold_stmt_1): Fold references in calls and asms.
  22701. * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
  22702. 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
  22703. * tree-vrp.c (ssa_name_nonzero_p): Remove.
  22704. * tree.h: Remove the prototype for ssa_name_nonzero_p.
  22705. 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
  22706. * tree.c (function_args_count): Remove.
  22707. * tree.h: Remove the prototype for function_args_count.
  22708. 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
  22709. * tree-iterator.c (expr_only): Remove.
  22710. * tree.h: Remove the prototype for expr_only.
  22711. 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
  22712. * reginfo.c (cannot_change_mode_set_regs): Remove.
  22713. * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
  22714. 2009-04-08 Anatoly Sokolov <aesok@post.ru>
  22715. * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
  22716. whether operands 0 and 1 overlaps.
  22717. 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
  22718. PR middle-end/36902
  22719. * tree-vrp.c (check_array_ref): Pass a location_t instead of a
  22720. pointer. Use warning_at instead of warning.
  22721. (search_for_addr_array): Likewise.
  22722. (check_array_bounds): Likewise.
  22723. (check_all_array_refs): Check that the incoming edge is not in the
  22724. list of edges to be removed.
  22725. (check_all_array_refs): Avoid the temporal pointer.
  22726. (vrp_visit_cond_stmt): Fix typo.
  22727. (simplify_switch_using_ranges): Handle the case where the switch
  22728. index is an integer constant.
  22729. 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
  22730. * config/mips/mips.c (mips_final_postscan_insn): Make it static.
  22731. 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
  22732. * doc/extend.texi, doc/invoke.texi: Fix typos.
  22733. 2009-04-17 Cary Coutant <ccoutant@google.com>
  22734. * tree-flow-inline.h (get_lineno): Fix inverted test.
  22735. 2009-04-17 Diego Novillo <dnovillo@google.com>
  22736. * tree-ssa-pre.c (create_expression_by_pieces): Remove
  22737. assertion for AVAIL_OUT.
  22738. 2009-04-17 Mike Frysinger <vapier@gentoo.org>
  22739. PR target/38627
  22740. * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
  22741. * config/sh/linux-atomic.asm: Likewise.
  22742. 2009-04-17 Diego Novillo <dnovillo@google.com>
  22743. * except.c (debug_eh_tree): New.
  22744. (struct eh_region, struct eh_status): Move ...
  22745. * except.h: ... here.
  22746. (add_type_for_runtime): Declare extern.
  22747. (lookup_type_for_runtime): Likewise.
  22748. (debug_eh_tree): Declare.
  22749. * Makefile.in (GTFILES): List except.h before except.c
  22750. 2009-04-17 Diego Novillo <dnovillo@google.com>
  22751. * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
  22752. * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
  22753. * tree-dfa.c (find_referenced_vars_in): Factor out of ...
  22754. (find_vars_r): ... here.
  22755. * tree-flow.h (find_referenced_vars_in): Declare.
  22756. * tree-ssa-pre.c (create_expression_by_pieces): Assert
  22757. that AVAIL_OUT exists for BLOCK.
  22758. * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
  22759. (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
  22760. (tree-parloops.o): Likewise.
  22761. 2009-04-17 Simon Baldwin <simonb@google.com>
  22762. * toplev.c (default_tree_printer): Add handling for %E format.
  22763. 2009-04-17 Diego Novillo <dnovillo@google.com>
  22764. * tree-pretty-print.c (dump_generic_node): Add break after
  22765. TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
  22766. FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
  22767. FUNCTION_TYPE together. Call print_struct_decl when printing
  22768. structures and TDF_SLIM is not given.
  22769. (print_struct_decl): Fix logic for detecting recursion.
  22770. 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
  22771. PR 31567
  22772. * gcc.c (create_at_file): New.
  22773. (compile_input_file_p): New.
  22774. (do_spec_1): Use @args files for %i. Use create_at_file for %o.
  22775. * main.c (main): Update call to toplev_main.
  22776. * toplev.c (toplev_main): Change signature. Call expandargv.
  22777. * toplev.h (toplev_main): Change signature.
  22778. 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
  22779. * dwarf2out.c (field_byte_offset): Use the type size as the field size
  22780. if the latter is not constant.
  22781. 2009-04-17 David Edelsohn <edelsohn@gnu.org>
  22782. * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
  22783. 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
  22784. * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
  22785. * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
  22786. 2009-04-17 Richard Guenther <rguenther@suse.de>
  22787. * tree-ssa-structalias.c (get_constraint_for_component_ref):
  22788. Handle component references view-converting an invariant address.
  22789. 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
  22790. * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
  22791. TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
  22792. TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
  22793. TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
  22794. Use @deftypevr rather than @deftypevar.
  22795. 2009-04-17 Richard Guenther <rguenther@suse.de>
  22796. * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
  22797. (get_prop_source_stmt): Likewise.
  22798. (can_propagate_from): Likewise.
  22799. 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
  22800. * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
  22801. TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
  22802. (--with-multilib-list): Add default value.
  22803. * configure: Regenerate.
  22804. * Makefile.in (TM_ENDIAN_CONFIG): Define.
  22805. (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
  22806. * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
  22807. TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
  22808. Don't add default cpu to multilib list unnecessarily, but do enable
  22809. the relevant compiler option..
  22810. Add support for --with-multilib-list=<blank> and
  22811. --with-multilib-list=!<somelib> to supress unwanted multilibs.
  22812. * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
  22813. (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
  22814. (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
  22815. TM_MULTILIB_CONFIG.
  22816. (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
  22817. (MULTILIB_OSDIRNAMES): New variable.
  22818. * config/sh/t-1e: Delete file.
  22819. * config/sh/t-mlib-sh1: Delete file.
  22820. * config/sh/t-mlib-sh2: Delete file.
  22821. * config/sh/t-mlib-sh2a: Delete file.
  22822. * config/sh/t-mlib-sh2a-nofpu: Delete file.
  22823. * config/sh/t-mlib-sh2a-single: Delete file.
  22824. * config/sh/t-mlib-sh2a-single-only: Delete file.
  22825. * config/sh/t-mlib-sh2e: Delete file.
  22826. * config/sh/t-mlib-sh3e: Delete file.
  22827. * config/sh/t-mlib-sh4: Delete file.
  22828. * config/sh/t-mlib-sh4-nofpu: Delete file.
  22829. * config/sh/t-mlib-sh4-single: Delete file.
  22830. * config/sh/t-mlib-sh4-single-only: Delete file.
  22831. * config/sh/t-mlib-sh4a: Delete file.
  22832. * config/sh/t-mlib-sh4a-nofpu: Delete file.
  22833. * config/sh/t-mlib-sh4a-single: Delete file.
  22834. * config/sh/t-mlib-sh4a-single-only: Delete file.
  22835. * config/sh/t-mlib-sh4al: Delete file.
  22836. * config/sh/t-mlib-sh5-32media: Delete file.
  22837. * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
  22838. * config/sh/t-mlib-sh5-64media: Delete file.
  22839. * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
  22840. * config/sh/t-mlib-sh5-compact: Delete file.
  22841. * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
  22842. * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
  22843. * doc/install.texi (Options specification): Add
  22844. --with-multilib-list and --with-endian.
  22845. 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
  22846. * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
  22847. REVISION_c.
  22848. (OBJS-common): Add plugin-version.o.
  22849. (plugin-version.o): New.
  22850. * gcc-plugin.h (plugin_gcc_version): New.
  22851. (plugin_default_version_check): New.
  22852. (plugin_init_func, plugin_init): Add version argument.
  22853. * plugin-version.c: New.
  22854. * plugin.c (str_plugin_gcc_version_name): New.
  22855. (try_init_one_plugin): Read plugin_gcc_version from the plugin and
  22856. pass it to the init function.
  22857. (plugin_default_version_check): New.
  22858. 2009-04-17 Richard Guenther <rguenther@suse.de>
  22859. * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
  22860. for decl-vs-decl disambiguation.
  22861. 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
  22862. * config/s390/s390.h (s390_tune_attr): New macro definition.
  22863. * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
  22864. 2009-04-17 Richard Guenther <rguenther@suse.de>
  22865. * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
  22866. (fold_stmt_r): Likewise.
  22867. (maybe_fold_reference): New function.
  22868. (fold_gimple_assign): Handle cases fold_stmt_r did.
  22869. (fold_stmt): Do not use fold_stmt_r.
  22870. (fold_stmt_inplace): Likewise.
  22871. 2009-04-17 Richard Guenther <rguenther@suse.de>
  22872. * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
  22873. (record_equivalences_from_stmt): Remove useless checks and
  22874. simplifications.
  22875. * tree-ssa-pre.c (eliminate): Avoid converting a constant if
  22876. the type is already suitable.
  22877. 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
  22878. * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
  22879. 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
  22880. * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
  22881. (CMPtype): Define as __gcc_CMPtype.
  22882. 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
  22883. * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
  22884. for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
  22885. 2009-04-17 Richard Guenther <rguenther@suse.de>
  22886. PR tree-optimization/39746
  22887. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
  22888. special-casing for builtins and static variable use/def.
  22889. (call_may_clobber_ref_p_1): Likewise.
  22890. 2009-04-16 Ian Lance Taylor <iant@google.com>
  22891. * df.h: Include "timevar.h".
  22892. (struct df_problem): Change tv_id field to timevar_id_t.
  22893. * tree-pass.h: Include "timevar.h".
  22894. (struct opt_pass): Change tv_id field to timevar_id_t.
  22895. * timevar.h (timevar_id_t): Define TV_NONE.
  22896. * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
  22897. TV_NONE rather than tv_id != 0.
  22898. (execute_one_pass): Likewise.
  22899. * Makefile.in (DF_H): Add $(TIMEVAR_H).
  22900. (TREE_PASS_H): Define. Change all instances of tree-pass.h in
  22901. dependencies to $(TREE_PASS_H).
  22902. * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
  22903. to TV_NONE.
  22904. (pass_branch_target_load_optimize2): Likewise.
  22905. * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
  22906. (pass_outof_cfg_layout_mode): Likewise.
  22907. * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
  22908. (pass_rebuild_cgraph_edges): Likewise.
  22909. (pass_remove_cgraph_callee_edges): Likewise.
  22910. * df-core.c (pass_df_initialize_opt): Likewise.
  22911. (pass_df_initialize_no_opt): Likewise.
  22912. (pass_df_finish): Likewise.
  22913. * emit-rtl.c (pass_unshare_all_rtl): Likewise.
  22914. * except.c (pass_set_nothrow_function_flags): Likewise.
  22915. (pass_convert_to_eh_region_ranges): Likewise.
  22916. * final.c (pass_compute_alignments): Likewise.
  22917. * function.c (pass_instantiate_virtual_regs): Likewise.
  22918. (pass_init_function): Likewise.
  22919. (pass_leaf_regs): Likewise.
  22920. (pass_match_asm_constraints): Likewise.
  22921. * gimple-low.c (pass_lower_cf): Likewise.
  22922. (pass_mark_used_blocks): Likewise.
  22923. * init-regs.c (pass_initialize_regs): Likewise.
  22924. * integrate.c (pass_initial_value_sets): Likewise.
  22925. * ira.c (pass_ira): Likewise.
  22926. * jump.c (pass_cleanup_barriers): Likewise.
  22927. * omp-low.c (pass_expand_omp): Likewise.
  22928. (pass_lower_omp): Likewise.
  22929. * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
  22930. * recog.c (pass_split_all_insns): Likewise.
  22931. (pass_split_after_reload): Likewise.
  22932. (pass_split_before_regstack): Likewise.
  22933. (pass_split_before_sched2): Likewise.
  22934. (pass_split_for_shorten_branches): Likewise.
  22935. * reginfo.c (pass_reginfo_init): Likewise.
  22936. (pass_subregs_of_mode_init): Likewise.
  22937. (pass_subregs_of_mode_finish): Likewise.
  22938. * passes.c (pass_postreload): Likewise.
  22939. * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
  22940. * tree-cfg.c (pass_remove_useless_stmts): Likewise.
  22941. (pass_warn_function_return): Likewise.
  22942. (pass_warn_function_noreturn): Likewise.
  22943. * tree-complex.c (pass_lower_complex): Likewise.
  22944. (pass_lower_complex_O0): Likewise.
  22945. * tree-if-conv.c (pass_if_conversion): Likewise.
  22946. * tree-into-ssa.c (pass_build_ssa): Likewise.
  22947. * tree-mudflap.c (pass_mudflap_1): Likewise.
  22948. (pass_mudflap_2): Likewise.
  22949. * tree-nomudflap.c (pass_mudflap_1): Likewise.
  22950. (pass_mudflap_2): Likewise.
  22951. * tree-nrv.c (pass_return_slot): Likewise.
  22952. * tree-object-size.c (pass_object_sizes): Likewise.
  22953. * tree-optimize.c (pass_all_optimizations): Likewise.
  22954. (pass_early_local_passes): Likewise.
  22955. (pass_all_early_optimizations): Likewise.
  22956. (pass_cleanup_cfg): Likewise.
  22957. (pass_cleanup_cfg_post_optimizing): Likewise.
  22958. (pass_free_datastructures): Likewise.
  22959. (pass_free_cfg_annotations): Likewise.
  22960. (pass_fixup_cfg): Likewise.
  22961. (pass_init_datastructures): Likewise.
  22962. * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
  22963. (pass_late_warn_uninitialized): Likewise.
  22964. (pass_update_address_taken): Likewise.
  22965. * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
  22966. * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
  22967. (pass_cse_sincos): Likewise.
  22968. (pass_convert_to_rsqrt): Likewise.
  22969. * tree-ssa-structalias.c (pass_build_alias): Likewise.
  22970. * tree-stdarg.c (pass_stdarg): Likewise.
  22971. * tree-tailcall.c (pass_tail_recursion): Likewise.
  22972. (pass_tail_calls): Likewise.
  22973. * tree-vect-generic.c (pass_lower_vector): Likewise.
  22974. (pass_lower_vector_ssa): Likewise.
  22975. * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
  22976. 2009-04-16 Joseph Myers <joseph@codesourcery.com>
  22977. * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
  22978. XLR entry.
  22979. * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
  22980. Handle -march=xlr.
  22981. * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
  22982. logical and signext.
  22983. 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
  22984. PR target/39767
  22985. * config/sh/predicates.md (arith_operand): Check if the operand
  22986. of TRUNCATE is a REG.
  22987. 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
  22988. * cfgrtl.c (delete_insn_chain_and_edges): Remove.
  22989. * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
  22990. 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
  22991. * tree-iterator.c (tsi_split_statement_list_after,
  22992. tsi_split_statement_list_before): Remove.
  22993. * tree-iterator.h: Remove the prototypes for
  22994. tsi_split_statement_list_after and tsi_split_statement_list_before.
  22995. 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
  22996. * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
  22997. * tree-ssa-propagate.h: Remove the prototype for
  22998. stmt_makes_single_load.
  22999. 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
  23000. * emit-rtl.c (set_mem_attrs_from_reg): Remove.
  23001. * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
  23002. 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
  23003. * tree-iterator.c (EXPR_LAST_BODY): Remove.
  23004. 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
  23005. * except.c (eh_region_outer_p): Remove.
  23006. * except.h: Remove the prototype for eh_region_outer_p.
  23007. 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
  23008. * function.c (current_function_assembler_name): Remove.
  23009. * function.h: Remove the prototype for
  23010. current_function_assembler_name.
  23011. 2009-04-16 Ian Lance Taylor <iant@google.com>
  23012. * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
  23013. (add_reg_note): Call alloc_reg_note.
  23014. * rtl.h (alloc_reg_note): Declare.
  23015. * combine.c (try_combine): Use alloc_reg_note.
  23016. (recog_for_combine, move_deaths): Likewise.
  23017. (distribute_notes): Use alloc_reg_note and add_reg_note.
  23018. * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
  23019. * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
  23020. * reload1.c (eliminate_regs_1): Use alloc_reg_note.
  23021. 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
  23022. PR rtl-optimization/39762
  23023. * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
  23024. ira_may_move_out_cost): Add comments about way of their usage.
  23025. (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
  23026. * ira-conflicts.c (process_regs_for_copy): Use function
  23027. ira_get_register_move_cost instead of global
  23028. ira_register_move_cost.
  23029. * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
  23030. color_pass, move_spill_restore, update_curr_costs): Ditto.
  23031. * ira-lives.c (process_single_reg_class_operands): Ditto.
  23032. * ira-emit.c (emit_move_list): Ditto.
  23033. * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
  23034. (record_reg_classes): Ditto. Use functions
  23035. ira_get_register_move_cost and ira_get_may_move_cost instead of
  23036. global vars ira_register_move_cost, ira_may_move_out_cost and
  23037. ira_may_move_in_cost.
  23038. (record_address_regs): Don't call ira_init_register_move_cost.
  23039. Use function ira_get_may_move_cost instead of global
  23040. ira_may_move_in_cost.
  23041. (process_bb_node_for_hard_reg_moves): Use function
  23042. ira_get_register_move_cost instead of global ira_register_move_cost.
  23043. (ira_costs): Don't call ira_init_register_move_cost.
  23044. 2009-04-16 Richard Guenther <rguenther@suse.de>
  23045. * tree-cfg.c (verify_gimple_assign_binary):
  23046. Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
  23047. * ipa-struct-reorg.c (gen_size): Fold the built expressions.
  23048. (create_general_new_stmt): Note that this function is broken.
  23049. 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
  23050. * common.opt (fhelp): Add Var(help_flag).
  23051. * gcc-plugin.h (plugin_info): Add help.
  23052. * plugin.c (plugin_name_args): Add help.
  23053. (register_plugin_info): Set plugin->help.
  23054. (print_help_one_plugin): New.
  23055. (print_plugins_help): New.
  23056. * plugin.h (print_plugins_help): New.
  23057. * toplev.c (toplev_main): Call print_plugins_help if needed.
  23058. 2009-04-16 Richard Guenther <rguenther@suse.de>
  23059. * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
  23060. (gimple_ior_addresses_taken_1): New function.
  23061. (gimple_ior_addresses_taken): Likewise.
  23062. * gimple.h (struct gimple_statement_with_ops_base): Remove
  23063. addresses_taken member.
  23064. (gimple_ior_addresses_taken): Declare.
  23065. (gimple_addresses_taken, gimple_addresses_taken_ptr,
  23066. gimple_set_addresses_taken): Remove.
  23067. * ipa-reference.c (mark_address): New function.
  23068. (scan_stmt_for_static_refs): Use it for marking addresses taken.
  23069. * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
  23070. (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
  23071. (gimple_add_to_addresses_taken): Remove.
  23072. (get_tmr_operands): Call mark_address_taken.
  23073. (get_asm_expr_operands): Likewise.
  23074. (get_expr_operands): Likewise.
  23075. (build_ssa_operands): Do not clear the addresses_taken bitmap.
  23076. (free_stmt_operands): Do not free it.
  23077. * tree-ssa.c (delete_tree_ssa): Likewise.
  23078. (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
  23079. 2009-04-16 Richard Guenther <rguenther@suse.de>
  23080. * gimple.h (walk_stmt_load_store_addr_ops): Declare.
  23081. (walk_stmt_load_store_ops): Likewise.
  23082. * gimple.c (get_base_loadstore): New function.
  23083. (walk_stmt_load_store_addr_ops): Likewise.
  23084. (walk_stmt_load_store_ops): Likewise.
  23085. * ipa-pure-const.c (check_op): Simplify.
  23086. (check_load, check_store): New functions.
  23087. (check_stmt): Use walk_stmt_load_store_ops.
  23088. * ipa-reference.c (mark_load): Adjust signature.
  23089. (mark_store): Likewise.
  23090. (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
  23091. 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
  23092. * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
  23093. (plugin_info): New.
  23094. * opts.c (common_handle_option): Don't call print_version.
  23095. * plugin.c (plugin_name_args): Add version.
  23096. (register_plugin_info): New.
  23097. (register_callback): Handle PLUGIN_INFO.
  23098. (try_init_one_plugin): New.
  23099. (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
  23100. if failed to init.
  23101. (finalize_one_plugin): New.
  23102. (finalize_plugins): New.
  23103. (print_one_plugin): New.
  23104. (print_plugins_versions): New.
  23105. * plugin.h (print_plugins_versions): New.
  23106. (finalize_plugins): New.
  23107. * toplev.c (compile_file): Don't call initialize_plugins.
  23108. (print_version): Call print_plugins_versions.
  23109. (toplev_main): Call initialize_plugins. Print version if needed.
  23110. Call finalize_plugins.
  23111. 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
  23112. * common.opt (fversion): New.
  23113. * gcc.c (print_version): New.
  23114. (process_command): Don't print the version. Just set print_version.
  23115. (main): Print version. Call subprocesses if print_version and
  23116. verbose_flag are set.
  23117. * opts.c (common_handle_option): Handle OPT_fversion.
  23118. 2009-04-16 Richard Guenther <rguenther@suse.de>
  23119. Ira Rosen <irar@il.ibm.com>
  23120. PR tree-optimization/39698
  23121. * tree-vect-loop.c (get_initial_def_for_reduction): Use the
  23122. type of the reduction variable. Only generate the def if
  23123. it is needed.
  23124. * omp-low.c (expand_omp_for_generic): When converting to a pointer
  23125. make sure to first convert to an integer of the same precision.
  23126. * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
  23127. the type of the evolution correctly in computing the new
  23128. induction variable base.
  23129. 2009-04-16 Richard Guenther <rguenther@suse.de>
  23130. PR middle-end/39625
  23131. * tree-cfg.c (make_blocks): Split statements with to-be
  23132. abnormal SSA names on the lhs.
  23133. 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
  23134. * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
  23135. Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
  23136. * c-typeck.c (really_start_incremental_init): Likewise.
  23137. * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
  23138. (TARGET_INITIALIZER): Remove it.
  23139. * target.h (struct target): Remove vector_opaque_p.
  23140. * tree.c (build_opaque_vector_type): New.
  23141. * tree.h (TYPE_VECTOR_OPAQUE): New.
  23142. (build_opaque_vector_type): Declare.
  23143. * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
  23144. * config/rs6000/rs6000.c (build_opaque_vector_type,
  23145. rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
  23146. (rs6000_init_builtins): Use build_opaque_vector_type for
  23147. opaque_V4SI_type_node.
  23148. 2009-04-15 Catherine Moore <clm@codesourcery.com>
  23149. * debug.h (set_name): Declare.
  23150. * dwarf2out.c (dwarf2out_set_name): Declare.
  23151. (dwarf2_debug_hooks): Add set_name.
  23152. (find_AT_string): New.
  23153. (add_AT_string): Call find_AT_string.
  23154. (dwarf2out_set_name): New.
  23155. * cp/decl.c (grokdeclarator): Call set_name.
  23156. * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
  23157. * debug.c (do_nothing_debug_hooks): Likewise.
  23158. * dbxout.c (dbx_debug_hooks): Likewise.
  23159. * sdbout.c (sdb_debug_hooks): Likewise.
  23160. 2009-04-15 Michael Eager <eager@eagercon.com>
  23161. * config/rs6000/rs6000.c (rs6000_function_value): Set function return
  23162. reg for single-precision FPU.
  23163. * config/rs6000/rs6000.md (movsi_internal1): Only for
  23164. !TARGET_SINGLE_FPU.
  23165. (movsi_internal1_single): New. Add pattern to move SI values to/from
  23166. single-precision FP regs.
  23167. 2009-04-15 Richard Guenther <rguenther@suse.de>
  23168. * omp-low.c (lower_rec_input_clauses): Build correct address
  23169. expressions.
  23170. (expand_omp_for_generic): Fix multiplication type.
  23171. * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
  23172. (generate_memset_zero): Fix types.
  23173. * tree-profile.c (prepare_instrumented_value): Correctly
  23174. widen a pointer.
  23175. 2009-04-15 Ian Lance Taylor <iant@google.com>
  23176. * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
  23177. * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
  23178. for -Wall and for -Wc++-compat.
  23179. (c_common_post_options): For C++, set warn_enum_compare if not
  23180. already set.
  23181. * c-tree.h (struct c_expr): Add field original_type.
  23182. (build_external_ref): Update declaration.
  23183. * c-parser.c (c_parser_braced_init): Set original_type.
  23184. (c_parser_initelt): Likewise.
  23185. (c_parser_expr_no_commas): Likewise.
  23186. (c_parser_conditional_expression): Likewise.
  23187. (c_parser_cast_expression): Likewise.
  23188. (c_parser_unary_expression): Likewise. Pull setting of
  23189. original_code to top of function.
  23190. (c_parser_sizeof_expression): Set original_type.
  23191. (c_parser_alignof_expression): Likewise.
  23192. (c_parser_postfix_expression): Likewise. Pull setting of
  23193. original_code to top of function.
  23194. (c_parser_postfix_expression_after_paren_type): Set original_type.
  23195. (c_parser_postfix_expression_after_primary): Likewise.
  23196. (c_parser_expression): Likewise.
  23197. * c-typeck.c (build_external_ref): Add type parameter. Change all
  23198. callers.
  23199. (c_expr_sizeof_expr): Set original_type field.
  23200. (parser_build_unary_op): Likewise.
  23201. (parser_build_binary_op): Likewise. Optionally warn about
  23202. comparisons of enums of different types.
  23203. (digest_init): Set original_type field.
  23204. (really_start_incremental_init): Likewise.
  23205. (push_init_level, pop_init_level): Likewise.
  23206. * doc/invoke.texi (Warning Options): -Wenum-compare now
  23207. supported in C.
  23208. 2009-04-15 Richard Guenther <rguenther@suse.de>
  23209. * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
  23210. out a necessary conversion.
  23211. * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
  23212. names we didn't value number.
  23213. * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
  23214. 2009-04-15 Richard Guenther <rguenther@suse.de>
  23215. PR tree-optimization/39764
  23216. * tree-ssa-ccp.c (get_value): Canonicalize value with
  23217. canonicalize_float_value.
  23218. 2009-04-15 Jan Hubicka <jh@suse.cz>
  23219. * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
  23220. Wrong version of patch.
  23221. 2009-04-15 Jan Hubicka <jh@suse.cz>
  23222. * builtins.def (va_start, va_end, va_copy): Mark nothrow.
  23223. 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
  23224. * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
  23225. our distinct integral and vector types.
  23226. 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
  23227. * class.c (build_vtbl_ref_1): Remove call to assemble_external.
  23228. * init.c (build_vtbl_address): Remove call to assemble_external.
  23229. 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
  23230. * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
  23231. output for other floating point modes.
  23232. 2009-04-14 Diego Novillo <dnovillo@google.com>
  23233. * diagnostic.c (diagnostic_report_diagnostic): Do not
  23234. warn about loaded plugins for DK_ERROR and DK_WARNING.
  23235. * c-decl.c (declspecs_add_type): Move call to
  23236. invoke_plugin_callbacks ...
  23237. * c-parser.c (c_parser_declspecs): ... here.
  23238. * plugin.c (dump_active_plugins): Tidy output.
  23239. 2009-04-14 Diego Novillo <dnovillo@google.com>
  23240. Le-Chun Wu <lcwu@google.com>
  23241. * configure.ac: Add --enable-plugin support.
  23242. Define ENABLE_PLUGIN and PLUGINLIBS when specified.
  23243. * Makefile.in (PLUGIN_H): Define.
  23244. Export ENABLE_PLUGIN and GMPINC to site.exp.
  23245. Add PLUGINLIBS to link command.
  23246. Add/modify dependencies for plugin.o and files including plugin.h.
  23247. (plugin.o): New.
  23248. * config.in: Regenerate.
  23249. * opts.c (common_handle_option): Handle OPT_fplugin_ and
  23250. OPT_fplugin_arg_.
  23251. 2009-04-14 Le-Chun Wu <lcwu@google.com>
  23252. * tree-pass.h (register_one_dump_file): Add a prototype for
  23253. register_one_dump_file.
  23254. * toplev.c (compile_file): Call initialize_plugins.
  23255. (do_compile): Call invoke_plugin_callbacks.
  23256. (toplev_main): Call invoke_plugin_callbacks.
  23257. * common.opt: Add -fplugin= and -fplugin-arg-.
  23258. * gcc-plugin.h: New public header file for plugins to include.
  23259. * plugin.c: New source file.
  23260. * plugin.h: New internal header file.
  23261. * passes.c (register_one_dump_file): Make it external.
  23262. * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
  23263. 2009-04-14 Diego Novillo <dnovillo@google.com>
  23264. * doc/plugins.texi: New.
  23265. * doc/gccint.texi: Add reference to Plugins chapter.
  23266. * doc/invoke.texi: Document -fplugin and -fplugin-arg
  23267. * diagnostic.c (diagnostic_report_diagnostic): Warn about
  23268. loaded plugins, if any.
  23269. * timevar.def (TV_PLUGIN_INIT): Define.
  23270. (TV_PLUGIN_RUN): Define.
  23271. * plugin.c: Include timevar.h
  23272. (plugins_active_p): New.
  23273. (dump_active_plugins): New.
  23274. (debug_active_plugins): New.
  23275. 2009-04-14 Joseph Myers <joseph@codesourcery.com>
  23276. * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
  23277. library paths.
  23278. * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
  23279. 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
  23280. * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
  23281. the same as a minus without a shift.
  23282. 2009-04-14 Nick Clifton <nickc@redhat.com>
  23283. * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
  23284. comparisons with small integers will always produce a short
  23285. branch.
  23286. 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
  23287. Merge:
  23288. 2008-12-19 Diego Novillo <dnovillo@google.com>
  23289. * cgraph.c (dump_cgraph_node): Show memory address of NODE.
  23290. 2009-04-14 Richard Guenther <rguenther@suse.de>
  23291. * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
  23292. verification.
  23293. (verify_gimple_assign_binary): Likewise. Handle shifts and
  23294. rotates correctly.
  23295. (verify_gimple_phi): Print the mismatched argument position.
  23296. * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
  23297. Fix types.
  23298. (vect_update_init_of_dr): Likewise.
  23299. * matrix-reorg.c (transform_access_sites): Do what the
  23300. comment suggests.
  23301. * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
  23302. 2009-04-13 Michael Eager <eager@eagercon.com>
  23303. * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
  23304. _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
  23305. * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
  23306. * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
  23307. remove duplicate config
  23308. 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  23309. * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
  23310. file_name:line_number type locator of the call site.
  23311. 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
  23312. * genautomata.c: Put blank after comma.
  23313. (automaton_decls): New.
  23314. (struct unit_usage): Add comments to member next.
  23315. (store_alt_unit_usage): Keep the list ordered.
  23316. (unit_present_on_list_p, equal_alternatives_p): New.
  23317. (check_regexp_units_distribution): Check units distribution
  23318. correctness correctly.
  23319. (main): Don't write automata if error is found. Return correct
  23320. exit code.
  23321. * config/m68k/cf.md (cfv4_ds): Remove.
  23322. (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
  23323. cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
  23324. * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
  23325. power4-load-ext, power4-store, power4-store-update,
  23326. power4-fpstore, power4-fpstore-update, power4-two, power4-three,
  23327. power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
  23328. power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
  23329. power4-sqrt, power4-isync): Modify reservation to make correct
  23330. unit distribution to automata.
  23331. * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
  23332. power5-store-update, power5-two, power5-three, power5-lmul,
  23333. power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
  23334. 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
  23335. * except.c (pass_set_nothrow_function_flags): Set name and add
  23336. TODO_dump_func.
  23337. (set_nothrow_function_flags): Mention in the dump file when
  23338. changing a function to nothrow.
  23339. 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
  23340. PR/39066
  23341. * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
  23342. instead of unsigned long.
  23343. 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  23344. * config/arm/arm.c (return_used_this_function): Remove.
  23345. (arm_output_function_prologue): Remove use of
  23346. return_used_this_function.
  23347. (output_return_instruction): Replace use of
  23348. return_used_this_function
  23349. by cfun->machine->return_used_this_function.
  23350. (arm_output_epilogue): Likewise.
  23351. (arm_output_function_epilogue): Likewise.
  23352. (thumb_unexpanded_epilogue): Likewise.
  23353. * config/arm/arm.h (struct machine_function):
  23354. New member return_used_this_function.
  23355. 2009-04-12 Mark Mitchell <mark@codesourcery.com>
  23356. * doc/install.texi: Correct description of default directory for
  23357. --with-gxx-include-dir.
  23358. 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
  23359. * fold-const.c (build_range_check): Properly deal with enumeral and
  23360. boolean base types.
  23361. 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
  23362. * doc/invoke.texi (max_gcse_passes): Remove documentation.
  23363. * params.def (PARAM_MAX_GCSE_PASSES): Remove.
  23364. * params.h (MAX_GCSE_PASSES): Remove.
  23365. * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
  23366. in sequence. Remove ability to run multiple passes.
  23367. (bypass_jumps): Report run as third CPROP pass.
  23368. 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
  23369. PR middle-end/39651
  23370. * except.c (can_throw_external): Look at each insn in a SEQUENCE
  23371. when deciding whether the whole SEQUENCE can throw.
  23372. 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
  23373. PR target/39740
  23374. * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
  23375. offseted label references.
  23376. 2009-04-11 Jan Hubicka <jh@suse.cz>
  23377. * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
  23378. 2009-04-11 Richard Guenther <rguenther@suse.de>
  23379. PR middle-end/39732
  23380. * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
  23381. return variables as TREE_ADDRESSABLE.
  23382. 2009-04-11 Richard Guenther <rguenther@suse.de>
  23383. PR tree-optimization/39713
  23384. * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
  23385. reference trees have SSA_NAME operands.
  23386. 2009-04-11 Richard Guenther <rguenther@suse.de>
  23387. PR c/39712
  23388. * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
  23389. address expressions.
  23390. 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
  23391. * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
  23392. match changes in Cygwin 1.7
  23393. (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
  23394. UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
  23395. 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
  23396. PR tree-optimization/39701
  23397. * doc/invoke.texi (Optimization Options): Document change in
  23398. meaning and initialization of -fdelete-null-pointer-checks.
  23399. 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
  23400. PR middle-end/39701
  23401. * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
  23402. * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
  23403. here.
  23404. * doc/invoke.texi: Update -fdelete-null-pointer-checks.
  23405. 2009-04-10 Chao-ying Fu <fu@mips.com>
  23406. * doc/tm.texi (Instruction Output): Document
  23407. TARGET_ASM_FINAL_POSTSCAN_INSN.
  23408. * target.h (final_postscan_insn): New field in asm_out.
  23409. * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
  23410. (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
  23411. * final.c (final_scan_insn): Call
  23412. targetm.asm_out.final_postscan_insn after outputting
  23413. an asm macro and a normal instruction.
  23414. * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
  23415. * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
  23416. * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
  23417. (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
  23418. (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
  23419. 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
  23420. PR middle-end/39701
  23421. * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
  23422. variables as non-NULL even with -fdelete-null-pointer-checks.
  23423. 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
  23424. * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
  23425. 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
  23426. PR target/39678
  23427. * config/i386/i386.c (classify_argument): Handle SCmode with
  23428. (bit_offset % 64) != 0.
  23429. 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
  23430. * doc/invoke.texi (Optimize Options): Add cross-reference to
  23431. -Q --help=optimizers examples.
  23432. 2009-04-10 Ben Elliston <bje@au.ibm.com>
  23433. PR target/36800
  23434. * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
  23435. regalign for the reg == fpr and TDmode case.
  23436. 2009-04-09 David Ayers <ayers@fsfe.org>
  23437. PR objc/29200
  23438. * objc/objc-act.c (warn_with_method): Remove helper function.
  23439. (check_duplicates): Call warning and inform directly.
  23440. (really_start_method): Likewise.
  23441. 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
  23442. * expmed.c (expand_divmod): Always use a comparison for a division
  23443. by a large unsigned integer.
  23444. * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
  23445. for things others than variables or functions as nonzero.
  23446. 2009-04-09 Nick Clifton <nickc@redhat.com>
  23447. * unwind-compat.c: Change copyright header to refer to version
  23448. 3 of the GNU General Public License with version 3.1 of the
  23449. GCC Runtime Library Exception and to point readers at the
  23450. COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
  23451. * config/alpha/crtfastmath.c: Likewise.
  23452. * config/alpha/linux-unwind.h: Likewise.
  23453. * config/alpha/qrnnd.asm: Likewise.
  23454. * config/alpha/vms-crt0-64.c: Likewise.
  23455. * config/alpha/vms-crt0.c: Likewise.
  23456. * config/alpha/vms-dwarf2.asm: Likewise.
  23457. * config/alpha/vms-dwarf2eh.asm: Likewise.
  23458. * config/alpha/vms-psxcrt0-64.c: Likewise.
  23459. * config/alpha/vms-psxcrt0.c: Likewise.
  23460. * config/alpha/vms_tramp.asm: Likewise.
  23461. * config/arc/initfini.c: Likewise.
  23462. * config/arc/lib1funcs.asm: Likewise.
  23463. * config/arm/bpabi-v6m.S: Likewise.
  23464. * config/arm/bpabi.S: Likewise.
  23465. * config/arm/bpabi.c: Likewise.
  23466. * config/arm/crti.asm: Likewise.
  23467. * config/arm/crtn.asm: Likewise.
  23468. * config/arm/ieee754-df.S: Likewise.
  23469. * config/arm/ieee754-sf.S: Likewise.
  23470. * config/arm/lib1funcs.asm: Likewise.
  23471. * config/arm/libunwind.S: Likewise.
  23472. * config/arm/linux-atomic.c: Likewise.
  23473. * config/arm/mmintrin.h: Likewise.
  23474. * config/arm/pr-support.c: Likewise.
  23475. * config/arm/unaligned-funcs.c: Likewise.
  23476. * config/arm/unwind-arm.c: Likewise.
  23477. * config/arm/unwind-arm.h: Likewise.
  23478. * config/avr/libgcc.S: Likewise.
  23479. * config/bfin/crti.s: Likewise.
  23480. * config/bfin/crtlibid.s: Likewise.
  23481. * config/bfin/crtn.s: Likewise.
  23482. * config/bfin/lib1funcs.asm: Likewise.
  23483. * config/bfin/linux-unwind.h: Likewise.
  23484. * config/cris/arit.c: Likewise.
  23485. * config/cris/cris_abi_symbol.c: Likewise.
  23486. * config/darwin-64.c: Likewise.
  23487. * config/darwin-crt2.c: Likewise.
  23488. * config/darwin-crt3.c: Likewise.
  23489. * config/darwin.h: Likewise.
  23490. * config/dbxelf.h: Likewise.
  23491. * config/dfp-bit.c: Likewise.
  23492. * config/dfp-bit.h: Likewise.
  23493. * config/elfos.h: Likewise.
  23494. * config/fixed-bit.c: Likewise.
  23495. * config/fixed-bit.h: Likewise.
  23496. * config/fp-bit.c: Likewise.
  23497. * config/fp-bit.h: Likewise.
  23498. * config/fr30/crti.asm: Likewise.
  23499. * config/fr30/crtn.asm: Likewise.
  23500. * config/fr30/lib1funcs.asm: Likewise.
  23501. * config/freebsd-spec.h: Likewise.
  23502. * config/frv/cmovd.c: Likewise.
  23503. * config/frv/cmovh.c: Likewise.
  23504. * config/frv/cmovw.c: Likewise.
  23505. * config/frv/frvbegin.c: Likewise.
  23506. * config/frv/frvend.c: Likewise.
  23507. * config/frv/lib1funcs.asm: Likewise.
  23508. * config/glibc-stdint.h: Likewise.
  23509. * config/h8300/clzhi2.c: Likewise.
  23510. * config/h8300/crti.asm: Likewise.
  23511. * config/h8300/crtn.asm: Likewise.
  23512. * config/h8300/ctzhi2.c: Likewise.
  23513. * config/h8300/fixunssfsi.c: Likewise.
  23514. * config/h8300/lib1funcs.asm: Likewise.
  23515. * config/h8300/parityhi2.c: Likewise.
  23516. * config/h8300/popcounthi2.c: Likewise.
  23517. * config/i386/ammintrin.h: Likewise.
  23518. * config/i386/att.h: Likewise.
  23519. * config/i386/avxintrin.h: Likewise.
  23520. * config/i386/biarch64.h: Likewise.
  23521. * config/i386/bmmintrin.h: Likewise.
  23522. * config/i386/cpuid.h: Likewise.
  23523. * config/i386/cross-stdarg.h: Likewise.
  23524. * config/i386/crtfastmath.c: Likewise.
  23525. * config/i386/crtprec.c: Likewise.
  23526. * config/i386/cygming-crtbegin.c: Likewise.
  23527. * config/i386/cygming-crtend.c: Likewise.
  23528. * config/i386/cygwin.asm: Likewise.
  23529. * config/i386/emmintrin.h: Likewise.
  23530. * config/i386/gmm_malloc.h: Likewise.
  23531. * config/i386/gthr-win32.c: Likewise.
  23532. * config/i386/i386.h: Likewise.
  23533. * config/i386/immintrin.h: Likewise.
  23534. * config/i386/linux-unwind.h: Likewise.
  23535. * config/i386/linux64.h: Likewise.
  23536. * config/i386/mm3dnow.h: Likewise.
  23537. * config/i386/mmintrin-common.h: Likewise.
  23538. * config/i386/mmintrin.h: Likewise.
  23539. * config/i386/nmmintrin.h: Likewise.
  23540. * config/i386/pmm_malloc.h: Likewise.
  23541. * config/i386/pmmintrin.h: Likewise.
  23542. * config/i386/smmintrin.h: Likewise.
  23543. * config/i386/sol2-c1.asm: Likewise.
  23544. * config/i386/sol2-ci.asm: Likewise.
  23545. * config/i386/sol2-cn.asm: Likewise.
  23546. * config/i386/sol2-gc1.asm: Likewise.
  23547. * config/i386/tmmintrin.h: Likewise.
  23548. * config/i386/unix.h: Likewise.
  23549. * config/i386/w32-unwind.h: Likewise.
  23550. * config/i386/wmmintrin.h: Likewise.
  23551. * config/i386/x86-64.h: Likewise.
  23552. * config/i386/x86intrin.h: Likewise.
  23553. * config/i386/xmmintrin.h: Likewise.
  23554. * config/ia64/crtbegin.asm: Likewise.
  23555. * config/ia64/crtend.asm: Likewise.
  23556. * config/ia64/crtfastmath.c: Likewise.
  23557. * config/ia64/crti.asm: Likewise.
  23558. * config/ia64/crtn.asm: Likewise.
  23559. * config/ia64/fde-glibc.c: Likewise.
  23560. * config/ia64/lib1funcs.asm: Likewise.
  23561. * config/ia64/linux-unwind.h: Likewise.
  23562. * config/ia64/quadlib.c: Likewise.
  23563. * config/ia64/unwind-ia64.c: Likewise.
  23564. * config/linux.h: Likewise.
  23565. * config/m32c/m32c-lib1.S: Likewise.
  23566. * config/m32c/m32c-lib2-trapv.c: Likewise.
  23567. * config/m32c/m32c-lib2.c: Likewise.
  23568. * config/m32r/initfini.c: Likewise.
  23569. * config/m68hc11/larith.asm: Likewise.
  23570. * config/m68hc11/m68hc11-crt0.S: Likewise.
  23571. * config/m68k/cf.md: Likewise.
  23572. * config/m68k/crti.s: Likewise.
  23573. * config/m68k/crtn.s: Likewise.
  23574. * config/m68k/lb1sf68.asm: Likewise.
  23575. * config/m68k/linux-unwind.h: Likewise.
  23576. * config/mcore/crti.asm: Likewise.
  23577. * config/mcore/crtn.asm: Likewise.
  23578. * config/mcore/lib1.asm: Likewise.
  23579. * config/mips/linux-unwind.h: Likewise.
  23580. * config/mips/loongson.h: Likewise.
  23581. * config/mips/mips16.S: Likewise.
  23582. * config/mmix/crti.asm: Likewise.
  23583. * config/mmix/crtn.asm: Likewise.
  23584. * config/pa/fptr.c: Likewise.
  23585. * config/pa/hpux-unwind.h: Likewise.
  23586. * config/pa/lib2funcs.asm: Likewise.
  23587. * config/pa/linux-atomic.c: Likewise.
  23588. * config/pa/linux-unwind.h: Likewise.
  23589. * config/pa/milli64.S: Likewise.
  23590. * config/pa/quadlib.c: Likewise.
  23591. * config/pa/stublib.c: Likewise.
  23592. * config/picochip/libgccExtras/adddi3.asm: Likewise.
  23593. * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
  23594. * config/picochip/libgccExtras/ashlsi3.c: Likewise.
  23595. * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
  23596. * config/picochip/libgccExtras/ashrsi3.c: Likewise.
  23597. * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
  23598. * config/picochip/libgccExtras/divmod15.asm: Likewise.
  23599. * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
  23600. * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
  23601. * config/picochip/libgccExtras/longjmp.asm: Likewise.
  23602. * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
  23603. * config/picochip/libgccExtras/lshrsi3.c: Likewise.
  23604. * config/picochip/libgccExtras/parityhi2.asm: Likewise.
  23605. * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
  23606. * config/picochip/libgccExtras/setjmp.asm: Likewise.
  23607. * config/picochip/libgccExtras/subdi3.asm: Likewise.
  23608. * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
  23609. * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
  23610. * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
  23611. * config/rs6000/750cl.h: Likewise.
  23612. * config/rs6000/altivec.h: Likewise.
  23613. * config/rs6000/biarch64.h: Likewise.
  23614. * config/rs6000/crtresfpr.asm: Likewise.
  23615. * config/rs6000/crtresgpr.asm: Likewise.
  23616. * config/rs6000/crtresxfpr.asm: Likewise.
  23617. * config/rs6000/crtresxgpr.asm: Likewise.
  23618. * config/rs6000/crtsavfpr.asm: Likewise.
  23619. * config/rs6000/crtsavgpr.asm: Likewise.
  23620. * config/rs6000/darwin-asm.h: Likewise.
  23621. * config/rs6000/darwin-fallback.c: Likewise.
  23622. * config/rs6000/darwin-fpsave.asm: Likewise.
  23623. * config/rs6000/darwin-ldouble.c: Likewise.
  23624. * config/rs6000/darwin-tramp.asm: Likewise.
  23625. * config/rs6000/darwin-unwind.h: Likewise.
  23626. * config/rs6000/darwin-vecsave.asm: Likewise.
  23627. * config/rs6000/darwin-world.asm: Likewise.
  23628. * config/rs6000/e500crtres32gpr.asm: Likewise.
  23629. * config/rs6000/e500crtres64gpr.asm: Likewise.
  23630. * config/rs6000/e500crtres64gprctr.asm: Likewise.
  23631. * config/rs6000/e500crtrest32gpr.asm: Likewise.
  23632. * config/rs6000/e500crtrest64gpr.asm: Likewise.
  23633. * config/rs6000/e500crtresx32gpr.asm: Likewise.
  23634. * config/rs6000/e500crtresx64gpr.asm: Likewise.
  23635. * config/rs6000/e500crtsav32gpr.asm: Likewise.
  23636. * config/rs6000/e500crtsav64gpr.asm: Likewise.
  23637. * config/rs6000/e500crtsav64gprctr.asm: Likewise.
  23638. * config/rs6000/e500crtsavg32gpr.asm: Likewise.
  23639. * config/rs6000/e500crtsavg64gpr.asm: Likewise.
  23640. * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
  23641. * config/rs6000/eabi-ci.asm: Likewise.
  23642. * config/rs6000/eabi-cn.asm: Likewise.
  23643. * config/rs6000/eabi.asm: Likewise.
  23644. * config/rs6000/linux-unwind.h: Likewise.
  23645. * config/rs6000/linux64.h: Likewise.
  23646. * config/rs6000/paired.h: Likewise.
  23647. * config/rs6000/paired.md: Likewise.
  23648. * config/rs6000/ppc64-fp.c: Likewise.
  23649. * config/rs6000/ppu_intrinsics.h: Likewise.
  23650. * config/rs6000/rs6000.h: Likewise.
  23651. * config/rs6000/si2vmx.h: Likewise.
  23652. * config/rs6000/sol-ci.asm: Likewise.
  23653. * config/rs6000/sol-cn.asm: Likewise.
  23654. * config/rs6000/spe.h: Likewise.
  23655. * config/rs6000/spu2vmx.h: Likewise.
  23656. * config/rs6000/sysv4.h: Likewise.
  23657. * config/rs6000/tramp.asm: Likewise.
  23658. * config/rs6000/vec_types.h: Likewise.
  23659. * config/s390/linux-unwind.h: Likewise.
  23660. * config/s390/tpf-unwind.h: Likewise.
  23661. * config/score/crti.asm: Likewise.
  23662. * config/score/crtn.asm: Likewise.
  23663. * config/sh/crt1.asm: Likewise.
  23664. * config/sh/crti.asm: Likewise.
  23665. * config/sh/crtn.asm: Likewise.
  23666. * config/sh/divtab-sh4-300.c: Likewise.
  23667. * config/sh/divtab-sh4.c: Likewise.
  23668. * config/sh/divtab.c: Likewise.
  23669. * config/sh/lib1funcs-4-300.asm: Likewise.
  23670. * config/sh/lib1funcs-Os-4-200.asm: Likewise.
  23671. * config/sh/lib1funcs.asm: Likewise.
  23672. * config/sh/lib1funcs.h: Likewise.
  23673. * config/sh/linux-atomic.asm: Likewise.
  23674. * config/sh/linux-unwind.h: Likewise.
  23675. * config/sh/shmedia.h: Likewise.
  23676. * config/sh/sshmedia.h: Likewise.
  23677. * config/sh/ushmedia.h: Likewise.
  23678. * config/sparc/crtfastmath.c: Likewise.
  23679. * config/sparc/linux-unwind.h: Likewise.
  23680. * config/sparc/sol2-c1.asm: Likewise.
  23681. * config/sparc/sol2-ci.asm: Likewise.
  23682. * config/sparc/sol2-cn.asm: Likewise.
  23683. * config/spu/divmodti4.c: Likewise.
  23684. * config/spu/divv2df3.c: Likewise.
  23685. * config/spu/float_disf.c: Likewise.
  23686. * config/spu/float_unsdidf.c: Likewise.
  23687. * config/spu/float_unsdisf.c: Likewise.
  23688. * config/spu/float_unssidf.c: Likewise.
  23689. * config/spu/mfc_multi_tag_release.c: Likewise.
  23690. * config/spu/mfc_multi_tag_reserve.c: Likewise.
  23691. * config/spu/mfc_tag_release.c: Likewise.
  23692. * config/spu/mfc_tag_reserve.c: Likewise.
  23693. * config/spu/mfc_tag_table.c: Likewise.
  23694. * config/spu/multi3.c: Likewise.
  23695. * config/spu/spu_internals.h: Likewise.
  23696. * config/spu/spu_intrinsics.h: Likewise.
  23697. * config/spu/spu_mfcio.h: Likewise.
  23698. * config/spu/vec_types.h: Likewise.
  23699. * config/spu/vmx2spu.h: Likewise.
  23700. * config/stormy16/stormy16-lib2.c: Likewise.
  23701. * config/svr4.h: Likewise.
  23702. * config/sync.c: Likewise.
  23703. * config/v850/lib1funcs.asm: Likewise.
  23704. * config/vxlib-tls.c: Likewise.
  23705. * config/vxlib.c: Likewise.
  23706. * config/vxworks-dummy.h: Likewise.
  23707. * config/xtensa/crti.asm: Likewise.
  23708. * config/xtensa/crtn.asm: Likewise.
  23709. * config/xtensa/ieee754-df.S: Likewise.
  23710. * config/xtensa/ieee754-sf.S: Likewise.
  23711. * config/xtensa/lib1funcs.asm: Likewise.
  23712. * config/xtensa/lib2funcs.S: Likewise.
  23713. * config/xtensa/linux-unwind.h: Likewise.
  23714. * config/xtensa/unwind-dw2-xtensa.c: Likewise.
  23715. * config/xtensa/unwind-dw2-xtensa.h: Likewise.
  23716. * coretypes.h: Likewise.
  23717. * crtstuff.c: Likewise.
  23718. * defaults.h: Likewise.
  23719. * dwarf2.h: Likewise.
  23720. * emutls.c: Likewise.
  23721. * gbl-ctors.h: Likewise.
  23722. * gcov-io.h: Likewise.
  23723. * ginclude/float.h: Likewise.
  23724. * ginclude/iso646.h: Likewise.
  23725. * ginclude/stdarg.h: Likewise.
  23726. * ginclude/stdbool.h: Likewise.
  23727. * ginclude/stddef.h: Likewise.
  23728. * ginclude/stdfix.h: Likewise.
  23729. * ginclude/stdint-gcc.h: Likewise.
  23730. * ginclude/tgmath.h: Likewise.
  23731. * gthr-aix.h: Likewise.
  23732. * gthr-dce.h: Likewise.
  23733. * gthr-gnat.c: Likewise.
  23734. * gthr-gnat.h: Likewise.
  23735. * gthr-lynx.h: Likewise.
  23736. * gthr-mipssde.h: Likewise.
  23737. * gthr-nks.h: Likewise.
  23738. * gthr-posix.c: Likewise.
  23739. * gthr-posix.h: Likewise.
  23740. * gthr-posix95.h: Likewise.
  23741. * gthr-rtems.h: Likewise.
  23742. * gthr-single.h: Likewise.
  23743. * gthr-solaris.h: Likewise.
  23744. * gthr-tpf.h: Likewise.
  23745. * gthr-vxworks.h: Likewise.
  23746. * gthr-win32.h: Likewise.
  23747. * gthr.h: Likewise.
  23748. * libgcc2.c: Likewise.
  23749. * libgcc2.h: Likewise.
  23750. * libgcov.c: Likewise.
  23751. * tsystem.h: Likewise.
  23752. * typeclass.h: Likewise.
  23753. * unwind-c.c: Likewise.
  23754. * unwind-compat.h: Likewise.
  23755. * unwind-dw2-fde-compat.c: Likewise.
  23756. * unwind-dw2-fde-darwin.c: Likewise.
  23757. * unwind-dw2-fde-glibc.c: Likewise.
  23758. * unwind-dw2-fde.c: Likewise.
  23759. * unwind-dw2-fde.h: Likewise.
  23760. * unwind-dw2.c: Likewise.
  23761. * unwind-dw2.h: Likewise.
  23762. * unwind-generic.h: Likewise.
  23763. * unwind-pe.h: Likewise.
  23764. * unwind-sjlj.c: Likewise.
  23765. * unwind.inc: Likewise.
  23766. * config/arm/neon-gen.ml: Change generated copyright header to
  23767. refer to version 3 of the GNU General Public License with
  23768. version 3.1 of the GCC Runtime Library Exception and to point
  23769. readers at the COPYING3 and COPYING3.RUNTIME files and the
  23770. FSF's license web page.
  23771. * config/arm/arm_neon.h: Regenerate.
  23772. 2009-04-09 Jakub Jelinek <jakub@redhat.com>
  23773. * config/cris/cris.md: Change copyright header to refer to version
  23774. 3 of the GNU General Public License.
  23775. * doc/install.texi2html: Change copyright header to refer to version
  23776. 3 of the GNU General Public License and to point readers at the
  23777. COPYING3 file and the FSF's license web page.
  23778. * config/vax/linux.h: Likewise.
  23779. 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
  23780. * config/i386/i386.md (cmpcc): New.
  23781. * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
  23782. (sync_compare_and_swap_cc*): Delete.
  23783. * config/s390/s390.c (s390_compare_emitted): Remove.
  23784. (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
  23785. s390_compare_emitted used to be handled. Assert that modes match.
  23786. (s390_emit_compare_and_swap): Use s390_emit_compare, do not
  23787. refer to sync_compare_and_swap_ccsi.
  23788. * config/s390/s390.h (s390_compare_emitted): Remove.
  23789. * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
  23790. instead of s390_compare_emitted.
  23791. (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
  23792. instead of s390_compare_emitted.
  23793. * config/s390/s390.md (cmpcc): New.
  23794. (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
  23795. CC_REGNUM, do not pretend it's set.
  23796. (sync_compare_and_swap_cc*): Delete.
  23797. * config/s390/predicates.md (cc_reg_operand): New.
  23798. * expr.c (sync_compare_and_swap_cc): Delete.
  23799. * optabs.h (sync_compare_and_swap_cc): Delete.
  23800. * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
  23801. is being used with can_compare_p.
  23802. (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
  23803. (find_cc_set): New.
  23804. (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
  23805. look for a MODE_CC set instead. Use emit_store_flag.
  23806. (expand_compare_and_swap_loop): Likewise, with some additional
  23807. complication to avoid a force_reg when useless. Use
  23808. emit_cmp_and_jump_insns.
  23809. * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
  23810. * doc/md.texi (sync_compare_and_swap_cc): Merge with
  23811. sync_compare_and_swap documentation.
  23812. 2009-04-09 Jan Hubicka <jh@suse.cz>
  23813. * except.c (find_prev_try): Break out from ....
  23814. (duplicate_eh_regions): ... here; properly update prev_try pointers
  23815. when duplication part of tree.
  23816. (dump_eh_tree): Improve dumping.
  23817. (verify_eh_region): New.
  23818. (verify_eh_tree): Use it.
  23819. 2009-04-06 Richard Guenther <rguenther@suse.de>
  23820. * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
  23821. &ARRAY addresses by adjusting their types and prepending
  23822. a conversion.
  23823. * tree-cfg.c (verify_gimple_assign_single): Verify that
  23824. addresses are correct.
  23825. 2009-04-09 Richard Guenther <rguenther@suse.de>
  23826. * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
  23827. indices into an array reference if possible.
  23828. * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
  23829. Fold POINTER_PLUS_EXPR statements with invariant address.
  23830. 2009-04-09 Alan Modra <amodra@bigpond.net.au>
  23831. PR target/39634
  23832. * config.gcc (powerpc64-*-linux*): Always build biarch.
  23833. 2009-04-09 Joseph Myers <joseph@codesourcery.com>
  23834. PR c/39613
  23835. * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
  23836. it and pedwarn if this results in an INTEGER_CST.
  23837. 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  23838. * doc/install.texi: Update minimum GMP version. Remove obsolete
  23839. text in MPFR section.
  23840. 2009-04-08 Jakub Jelinek <jakub@redhat.com>
  23841. * dwarf2out.c (class_scope_p): New static inline.
  23842. (class_or_namespace_scope_p): Use it.
  23843. (gen_variable_die): Use DW_TAG_member tag for static data member
  23844. declarations instead of DW_TAG_variable.
  23845. PR middle-end/39573
  23846. * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
  23847. variables.
  23848. 2009-04-08 Richard Guenther <rguenther@suse.de>
  23849. * tree-ssa-sccvn.c (valueize_refs): Do not continue to
  23850. valueize random data.
  23851. 2009-04-08 David Edelsohn <edelsohn@gnu.org>
  23852. * config.gcc (aix tm_file): Add aix-stdint.h.
  23853. (aix tm clause use_gcc_stdint): Set to wrap.
  23854. * config/rs6000/aix-stdint.h: New file.
  23855. 2009-04-08 Richard Guenther <rguenther@suse.de>
  23856. PR middle-end/36291
  23857. * tree-dfa.c (add_referenced_var): Do not recurse into
  23858. global initializers.
  23859. * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
  23860. exposed variables.
  23861. (fold_const_aggregate_ref): Likewise.
  23862. 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
  23863. * recog.c (ordered_comparison_operator): New.
  23864. * gensupport.c (std_preds): Add it.
  23865. * doc/md.texi (Machine-Independent Predicates): Document it.
  23866. 2009-04-08 Jan Hubicka <jh@suse.cz>
  23867. * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
  23868. * function.h (rtl_eh): Remove exception_handler_label_map.
  23869. * except.c (ehl_hash, ehl_eq, add_ehl_entry,
  23870. remove_exception_handler_label, for_each_eh_label_1): Remove.
  23871. (rtl_remove_unreachable_regions): Remove.
  23872. (convert_from_eh_region_ranges): Do not remove unreachable regions.
  23873. (find_exception_handler_labels): Don't build the hashtable.
  23874. (maybe_remove_eh_handler): Remove.
  23875. (for_each_eh_label): Rewrite to walk the tree.
  23876. (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
  23877. * except.h (maybe_remove_eh_handler): Remove.
  23878. * passes.c (init_optimization_passes): Schedule second EH cleanup
  23879. before out-of-ssa.
  23880. * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
  23881. cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
  23882. 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
  23883. * genoutput.c (validate_optab_operands): New.
  23884. (gen_insn, gen_expand): Call it.
  23885. * genflags.c (gen_insn): Detect misused iterators.
  23886. (main): Pass line_no to gen_insn, exit with status 1 on error.
  23887. * genextract.c (line_no): Make global.
  23888. (VEC_safe_set_locstr): Change assertion to error message.
  23889. (main): Exit with status 1 on error.
  23890. 2009-04-08 Joseph Myers <joseph@codesourcery.com>
  23891. PR c/39614
  23892. PR c/39673
  23893. * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
  23894. C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
  23895. EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
  23896. * c-convert.c (convert): Do not call fold on results of conversion
  23897. functions when the result is a C_MAYBE_CONST_EXPR.
  23898. * c-parser.c (c_parser_postfix_expression): Do not fold condition
  23899. of __builtin_choose_expr.
  23900. * c-typeck.c (remove_c_maybe_const_expr): New.
  23901. (build_unary_op, build_conditional_expr, build_compound_expr,
  23902. build_binary_op, c_objc_common_truthvalue_conversion): Call
  23903. remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
  23904. integer operands.
  23905. 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
  23906. * fold-const.c (const_binop): Combine two VECTOR_CST under operation
  23907. CODE to produce a new one. Add a prototype to use fold_convert_const
  23908. 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
  23909. PR bootstrap/39660
  23910. * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
  23911. mix declarations and code.
  23912. 2009-04-08 Ben Elliston <bje@au.ibm.com>
  23913. * gcc.c: Replace `CC' with `GCC' throughout.
  23914. 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
  23915. * doc/invoke.texi: Document Atom support.
  23916. 2009-04-07 Jason Merrill <jason@redhat.com>
  23917. PR c++/25185
  23918. * c-common.h, c-common.c: Add flag_pretty_templates.
  23919. * c-opts.c (c_common_handle_option): Set it.
  23920. * c.opt: Add -fno-pretty-templates.
  23921. * doc/invoke.texi (C++ Dialect Options): Likewise.
  23922. 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
  23923. * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
  23924. (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
  23925. (ia64_expand_builtin): Likewise.
  23926. 2009-04-07 Martin Jambor <mjambor@suse.cz>
  23927. * tree-ssa-alias.c (refs_may_alias_p_1): Check for
  23928. is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
  23929. ADDR_EXPRS are include too.
  23930. 2009-04-07 Richard Guenther <rguenther@suse.de>
  23931. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
  23932. decls are only used if passes as parameters or if they are
  23933. local statics and the call is not to a builtin.
  23934. (call_may_clobber_ref_p_1): Likewise.
  23935. 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
  23936. * expr.c (do_store_flag): Remove last argument. Simplify code
  23937. to avoid duplication of tests already done by can_compare_p.
  23938. (expand_expr_real_1): Adjust caller.
  23939. 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
  23940. * optabs.c (can_compare_p): Test the predicate of a
  23941. cbranch and cstore pattern.
  23942. 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
  23943. * expr.c (convert_move): Use emit_store_flag instead of
  23944. "emulating" it.
  23945. 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
  23946. * config/i386/i386.c (ix86_compare_emitted): Remove.
  23947. (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
  23948. ix86_compare_op0 like ix86_compare_emitted used to be handled.
  23949. * config/i386/i386.h (ix86_compare_emitted): Remove.
  23950. * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
  23951. instead of ix86_compare_emitted.
  23952. * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
  23953. 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
  23954. * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
  23955. Add t-sysroot-suffix to tmake_file.
  23956. * config/print-sysroot-suffix.sh: New file.
  23957. * config/t-sysroot-suffix: New file.
  23958. 2009-04-07 Ben Elliston <bje@au.ibm.com>
  23959. * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
  23960. as the latter produces a warning when the target does not support
  23961. infinity.
  23962. 2009-04-07 Ben Elliston <bje@au.ibm.com>
  23963. * dfp.c: Replace type punning assignments with memcpy throughout.
  23964. * Makefile.in (dfp.o-warn): Remove.
  23965. 2009-04-07 Alan Modra <amodra@bigpond.net.au>
  23966. PR target/39634
  23967. * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
  23968. Include soft-fp/t-softfp after rs6000/t-linux64.
  23969. 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
  23970. * stor-layout.c (set_sizetype): Use the full precision of their
  23971. machine mode for bitsize types.
  23972. 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
  23973. * config/i386/i386.md: Revert 2 accidental checkins.
  23974. 2009-04-06 Joey Ye <joey.ye@intel.com>
  23975. Xuepeng Guo <xuepeng.guo@intel.com>
  23976. H.J. Lu <hongjiu.lu@intel.com>
  23977. Atom pipeline model, tuning and insn selection.
  23978. * config.gcc (atom): Add atom config options and target.
  23979. * config/i386/atom.md: New.
  23980. * config/i386/i386.c (atom_cost): New cost.
  23981. (m_ATOM): New macro flag.
  23982. (initial_ix86_tune_features): Set m_ATOM.
  23983. (x86_accumulate_outgoing_args): Likewise.
  23984. (x86_arch_always_fancy_math_387): Likewise.
  23985. (processor_target): Add Atom cost.
  23986. (cpu_names): Add Atom cpu name.
  23987. (override_options): Set Atom ISA.
  23988. (ix86_issue_rate): New case PROCESSOR_ATOM.
  23989. (ix86_adjust_cost): Likewise.
  23990. * config/i386/i386.h (TARGET_ATOM): New target macro.
  23991. (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
  23992. (TARGET_OPT_AGU): New target option.
  23993. (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
  23994. (processor_type): Add PROCESSOR_ATOM.
  23995. * config/i386/i386.md (cpu): Add new value "atom".
  23996. (use_carry, movu): New attr.
  23997. (atom.md): Include atom.md.
  23998. (adddi3_carry_rex64): Set attr "use_carry".
  23999. (addqi3_carry): Likewise.
  24000. (addhi3_carry): Likewise.
  24001. (addsi3_carry): Likewise.
  24002. (*addsi3_carry_zext): Likewise.
  24003. (subdi3_carry_rex64): Likewise.
  24004. (subqi3_carry): Likewise.
  24005. (subhi3_carry): Likewise.
  24006. (subsi3_carry): Likewise.
  24007. (x86_movdicc_0_m1_rex64): Likewise.
  24008. (*x86_movdicc_0_m1_se): Likewise.
  24009. (x86_movsicc_0_m1): Likewise.
  24010. (*x86_movsicc_0_m1_se): Likewise.
  24011. (*adddi_1_rex64): Emit add insn as much as possible.
  24012. (*addsi_1): Likewise.
  24013. (return_internal): Set atom_unit.
  24014. (return_internal_long): Likewise.
  24015. (return_pop_internal): Likewise.
  24016. (*rcpsf2_sse): Set atom_sse_attr attr.
  24017. (*qrt<mode>2_sse): Likewise.
  24018. (*prefetch_sse): Likewise.
  24019. * config/i386/i386-c.c (ix86_target_macros_internal): New case
  24020. PROCESSOR_ATOM.
  24021. (ix86_target_macros_internal): Likewise.
  24022. * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
  24023. (*prefetch_sse_rex): Likewise.
  24024. (sse_rcpv4sf2): Likewise.
  24025. (sse_vmrcpv4sf2): Likewise.
  24026. (sse_sqrtv4sf2): Likewise.
  24027. (<sse>_vmsqrt<mode>2): Likewise.
  24028. (sse_ldmxcsr): Likewise.
  24029. (sse_stmxcsr): Likewise.
  24030. (*sse_sfence): Likewise.
  24031. (sse2_clflush): Likewise.
  24032. (*sse2_mfence): Likewise.
  24033. (*sse2_lfence): Likewise.
  24034. (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
  24035. (<sse>_movup<ssemodesuffixf2c>): Likewise.
  24036. (avx_movdqu<avxmodesuffix>): Likewise.
  24037. (avx_lddqu<avxmodesuffix>): Likewise.
  24038. (sse2_movntv2di): Change attr "type" to "ssemov".
  24039. (sse2_movntsi): Likewise.
  24040. (rsqrtv8sf2): Change attr "type" to "sseadd".
  24041. (sse3_addsubv2df3): Set attr "atom_unit".
  24042. (sse3_h<plusminus_insn>v4sf3): Likewise.
  24043. (*sse2_pmaddwd): Likewise.
  24044. (*vec_extractv2di_1_rex64): Likewise.
  24045. (*vec_extractv2di_1_avx): Likewise.
  24046. (sse2_psadbw): Likewise.
  24047. (ssse3_phaddwv8hi3): Likewise.
  24048. (ssse3_phaddwv4hi3): Likewise.
  24049. (ssse3_phadddv4si3): Likewise.
  24050. (ssse3_phadddv2si3): Likewise.
  24051. (ssse3_phaddswv8hi3): Likewise.
  24052. (ssse3_phaddswv4hi3): Likewise.
  24053. (ssse3_phsubwv8hi3): Likewise.
  24054. (ssse3_phsubwv4hi3): Likewise.
  24055. (ssse3_phsubdv4si3): Likewise.
  24056. (ssse3_phsubdv2si3): Likewise.
  24057. (ssse3_phsubswv8hi3): Likewise.
  24058. (ssse3_phsubswv4hi3): Likewise.
  24059. (ssse3_pmaddubsw128): Likewise.
  24060. (sse3_pmaddubsw: Likewise.
  24061. (ssse3_palignrti): Likewise.
  24062. (ssse3_palignrdi): Likewise.
  24063. 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
  24064. * doc/install.texi (Specific): Fix two cross-references to MinGW.
  24065. 2009-04-06 Richard Guenther <rguenther@suse.de>
  24066. PR tree-optimization/28868
  24067. * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
  24068. of which PHI results we inserted.
  24069. (insert_into_preds_of_block): Record inserted PHIs.
  24070. (eliminate): Eliminate redundant PHI nodes.
  24071. (init_pre): Init inserted_phi_names.
  24072. 2009-04-06 Richard Guenther <rguenther@suse.de>
  24073. PR tree-optimization/39643
  24074. * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
  24075. IMAGPART_EXPRs of complex constants.
  24076. (execute_fold_all_builtins): If we folded a call queue
  24077. TODO_update_address_taken.
  24078. 2009-04-06 Jan Hubicka <jh@suse.cz>
  24079. PR middle-end/39659
  24080. * except.c (remove_unreachable_regions): Propagate may_contain_throw
  24081. flag.
  24082. 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
  24083. * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
  24084. delay slot.
  24085. (ic_invalidate_array): Likewise.
  24086. 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
  24087. * calls.c (emit_library_call_value_1): Fix a problem with parameter
  24088. alignment for library calls.
  24089. 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
  24090. * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
  24091. (mingw32 tm clause use_gcc_stdint): Set to wrap.
  24092. * config/i386/mingw-stdint.h: New file.
  24093. 2009-04-05 Richard Guenther <rguenther@suse.de>
  24094. PR tree-optimization/39648
  24095. * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
  24096. our &A vs. &A[0] IL deficiencies.
  24097. 2009-04-04 Jan Hubicka <jh@suse.cz>
  24098. * except.c (sjlj_find_directly_reachable_regions): Be ready for
  24099. removed toplevel regions.
  24100. (sjlj_mark_call_sites): Likewise.
  24101. 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
  24102. * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
  24103. (cygwin tm clause use_gcc_stdint): Set to wrap.
  24104. * config/i386/cygwin-stdint.h: New file.
  24105. 2009-04-04 Richard Guenther <rguenther@suse.de>
  24106. * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
  24107. * tree-ssa-copy.c (init_copy_prop): Do not propagate through
  24108. single-argument PHIs if we are in loop-closed SSA form.
  24109. * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
  24110. for the pre-condition.
  24111. (slpeel_tree_peel_loop_to_edge): Likewise.
  24112. (vect_build_loop_niters): Take an optional sequence to append stmts.
  24113. (vect_generate_tmps_on_preheader): Likewise.
  24114. (vect_do_peeling_for_loop_bound): Take extra guards for the
  24115. pre-condition.
  24116. (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
  24117. the cost model check.
  24118. (vect_loop_versioning): Take stmt and stmt list to put pre-condition
  24119. guards if we are going to peel. Do not apply versioning in that case.
  24120. * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
  24121. (vect_do_peeling_for_loop_bound): Likewise.
  24122. * tree-vect-loop.c (vect_transform_loop): If we are peeling for
  24123. loop bound only record extra pre-conditions, do not apply loop
  24124. versioning.
  24125. 2009-04-04 Richard Guenther <rguenther@suse.de>
  24126. * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
  24127. renaming code.
  24128. 2009-04-04 Jan Hubicka <jh@suse.cz>
  24129. * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
  24130. last_basic_block for size of bb->index indexed array.
  24131. * bt-load.c (compute_defs_uses_and_gen, compute_kill,
  24132. compute_out, link_btr_uses, build_btr_def_use_webs,
  24133. build_btr_def_use_webs, migrate_btr_defs): Likewise.
  24134. 2009-04-04 Jan Hubicka <jh@suse.cz>
  24135. * except.c (remove_eh_handler_and_replace): Break out from ...
  24136. (remove_eh_handler): ... here.
  24137. (bring_to_root): New function.
  24138. (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
  24139. handled ones, bring others to root of tree.
  24140. 2009-04-04 Jan Hubicka <jh@suse.cz>
  24141. * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
  24142. (all_phis_safe_to_merge): New function.
  24143. (update_info): New structure.
  24144. (make_eh_edge_and_update_phi, update_eh_edges): New functions.
  24145. (cleanup_empty_eh): Update SSA if possible.
  24146. 2009-04-04 Richard Guenther <rguenther@suse.de>
  24147. * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
  24148. * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
  24149. (append_vuse): Likewise.
  24150. 2009-04-04 Jakub Jelinek <jakub@redhat.com>
  24151. * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
  24152. * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
  24153. instead of REG_UNSAVED for DW_CFA_undefined.
  24154. (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
  24155. (uw_update_context): If RA column is REG_UNDEFINED, mark it as
  24156. outermost frame.
  24157. 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
  24158. PR target/39501
  24159. * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
  24160. 2009-04-04 Richard Guenther <rguenther@suse.de>
  24161. PR tree-optimization/8781
  24162. PR tree-optimization/37892
  24163. * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
  24164. * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
  24165. (valueize_refs): Call it for *& valueizations.
  24166. (shared_reference_ops_from_ref): Rename to ...
  24167. (valueize_shared_reference_ops_from_ref): ... this and valueize.
  24168. (shared_reference_ops_from_call): Rename to ...
  24169. (valueize_shared_reference_ops_from_call): ... this and valueize.
  24170. (vn_reference_lookup): Update.
  24171. (visit_reference_op_call): Likewise.
  24172. * tree-ssa-pre.c (phi_translate_1): Fold *&.
  24173. (eliminate): Value-replace the call address in call statements.
  24174. 2009-04-04 Richard Guenther <rguenther@suse.de>
  24175. PR tree-optimization/39636
  24176. * tree-ssa-forwprop.c
  24177. (forward_propagate_addr_into_variable_array_index): Check for
  24178. GIMPLE_ASSIGN before accessing the rhs code.
  24179. 2009-04-03 Jason Merrill <jason@redhat.com>
  24180. * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
  24181. 2009-04-03 Steve Ellcey <sje@cup.hp.com>
  24182. * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
  24183. truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
  24184. fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
  24185. floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
  24186. fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
  24187. smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
  24188. divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
  24189. umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
  24190. *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
  24191. *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
  24192. adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
  24193. smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
  24194. *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
  24195. *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
  24196. sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
  24197. Use fr_reg_or_fp01_operand instead of fr_register_operand
  24198. * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
  24199. recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
  24200. divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
  24201. 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
  24202. PR rtl-optimization/39607
  24203. PR rtl-optimization/39631
  24204. Revert:
  24205. 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
  24206. * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
  24207. instead of DF_LR_OUT.
  24208. * ira-lives.c (process_bb_node_lives): Ditto.
  24209. * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
  24210. instead of DF_LR_{OUT,IN}.
  24211. * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
  24212. * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
  24213. 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
  24214. * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
  24215. (execute_lower_omp): Always run but take the short way out if -fopenmp
  24216. is not given.
  24217. (gate_lower_omp): Remove, forcing the pass manager to always run the
  24218. pass and always set PROP_gimple_lomp.
  24219. (pass_lower_omp): Remove gate function.
  24220. * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
  24221. PROP_trees. Instead, require it.
  24222. * ipa-cp.c (pass_ipa_cp): Likewise.
  24223. * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
  24224. (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
  24225. * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
  24226. and PROP_gimple_leh.
  24227. 2009-04-03 Richard Guenther <rguenther@suse.de>
  24228. PR middle-end/13146
  24229. PR tree-optimization/23940
  24230. PR tree-optimization/33237
  24231. PR middle-end/33974
  24232. PR middle-end/34093
  24233. PR tree-optimization/36201
  24234. PR tree-optimization/36230
  24235. PR tree-optimization/38049
  24236. PR tree-optimization/38207
  24237. PR tree-optimization/38230
  24238. PR tree-optimization/38301
  24239. PR tree-optimization/38585
  24240. PR middle-end/38895
  24241. PR tree-optimization/38985
  24242. PR tree-optimization/39299
  24243. * tree-ssa-structalias.h: Remove.
  24244. * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
  24245. (NULL_DEF_OPERAND_P): Make of type def_operand_p.
  24246. (struct vuse_element_d): Remove.
  24247. (struct vuse_vec_d): Likewise.
  24248. (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
  24249. VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
  24250. SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
  24251. VUSE_ELEMENT_VAR): Likewise.
  24252. (struct voptype_d): Likewise.
  24253. (NUM_VOP_FREE_BUCKETS): Likewise.
  24254. (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
  24255. (struct stmt_operands_d): Remove.
  24256. (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
  24257. VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
  24258. VDEF_NUM, VDEF_VECT): Likewise.
  24259. (copy_virtual_operands): Remove.
  24260. (operand_build_cmp): Likewise.
  24261. (create_ssa_artificial_load_stmt): Likewise.
  24262. (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
  24263. (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
  24264. vuse_index and mayuse_index members. Pack and move done and iter_type
  24265. members to the front.
  24266. (SSA_OP_VMAYUSE): Remove.
  24267. (SSA_OP_VIRTUAL_USES): Adjust.
  24268. (FOR_EACH_SSA_VDEF_OPERAND): Remove.
  24269. (unlink_stmt_vdef): Declare.
  24270. (add_to_addressable_set): Remove.
  24271. * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
  24272. (vrp_visit_stmt): Likewise.
  24273. * doc/tree-ssa.texi (Alias analysis): Update.
  24274. * doc/invoke.texi (max-aliased-vops): Remove docs.
  24275. (avg-aliased-vops): Likewise.
  24276. * tree-into-ssa.c (syms_to_rename): Remove.
  24277. (need_to_update_vops_p): Likewise.
  24278. (need_to_initialize_update_ssa_p): Rename to ...
  24279. (update_ssa_initialized_fn): ... this. Track function we are
  24280. initialized for.
  24281. (symbol_marked_for_renaming): Simplify.
  24282. (add_new_name_mapping): Do not set need_to_update_vops_p.
  24283. (dump_currdefs): Use SYMS_TO_RENAME.
  24284. (rewrite_update_stmt): Always walk all uses/defs.
  24285. (dump_update_ssa): Adjust.
  24286. (init_update_ssa): Take function argument. Track what we are
  24287. initialized for.
  24288. (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
  24289. (create_new_def_for): Initialize for cfun, assert we are initialized
  24290. for cfun.
  24291. (mark_sym_for_renaming): Simplify.
  24292. (mark_set_for_renaming): Do not initialize update-ssa.
  24293. (need_ssa_update_p): Simplify. Take function argument.
  24294. (name_mappings_registered_p): Assert we ask for the correct function.
  24295. (name_registered_for_update_p): Likewise.
  24296. (ssa_names_to_replace): Likewise.
  24297. (release_ssa_name_after_update_ssa): Likewise.
  24298. (update_ssa): Likewise. Use SYMS_TO_RENAME.
  24299. (dump_decl_set): Do not print a newline.
  24300. (debug_decl_set): Do it here.
  24301. (dump_update_ssa): And here.
  24302. * tree-ssa-loop-im.c (move_computations): Adjust.
  24303. (movement_possibility): Likewise.
  24304. (determine_max_movement): Likewise.
  24305. (gather_mem_refs_stmt): Likewise.
  24306. * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
  24307. or NAME_MEMORY_TAG.
  24308. * tree-complex.c (update_all_vops): Remove.
  24309. (expand_complex_move): Adjust.
  24310. * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
  24311. Simplify test for memory referencing statement. Exclude
  24312. non-invariant ADDR_EXPRs.
  24313. * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
  24314. * tree-loop-distribution.c (generate_memset_zero): Adjust.
  24315. (rdg_flag_uses): Likewise.
  24316. * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
  24317. related code.
  24318. (tree_optimize_tail_calls_1): Also split the
  24319. edge from the entry block if we have degenerate PHI nodes in
  24320. the first basic block.
  24321. * tree.c (init_ttree): Remove memory-tag related code.
  24322. (tree_code_size): Likewise.
  24323. (tree_node_structure): Likewise.
  24324. (build7_stat): Re-write to be build6_stat.
  24325. * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
  24326. (SSA_VAR_P): Adjust.
  24327. (struct tree_memory_tag): Remove.
  24328. (struct tree_memory_partition_tag): Likewise.
  24329. (union tree_node): Adjust.
  24330. (build7): Re-write to be build6.
  24331. * tree-pass.h (pass_reset_cc_flags): Remove.
  24332. (TODO_update_address_taken): New flag.
  24333. (pass_simple_dse): Remove.
  24334. * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
  24335. * params.h (MAX_ALIASED_VOPS): Remove.
  24336. (AVG_ALIASED_VOPS): Likewise.
  24337. * omp-low.c (expand_omp_taskreg): Update SSA form.
  24338. * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
  24339. aliases the lhs in a copy stmt.
  24340. * tree-ssa-dse.c (struct address_walk_data): Remove.
  24341. (memory_ssa_name_same): Likewise.
  24342. (memory_address_same): Likewise.
  24343. (get_kill_of_stmt_lhs): Likewise.
  24344. (dse_possible_dead_store_p): Simplify, use the oracle. Handle
  24345. unused stores. Look through PHI nodes into post-dominated regions.
  24346. (dse_optimize_stmt): Simplify. Properly remove stores.
  24347. (tree_ssa_dse): Compute dominators.
  24348. (execute_simple_dse): Remove.
  24349. (pass_simple_dse): Likewise.
  24350. * ipa-reference.c (scan_stmt_for_static_refs): Open-code
  24351. gimple_loaded_syms and gimple_stored_syms computation.
  24352. * toplev.c (dump_memory_report): Dump alias and pta stats.
  24353. * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
  24354. (vn_reference_eq): Likewise.
  24355. (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
  24356. copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
  24357. valueize_vuses): Remove.
  24358. (get_def_ref_stmt_vuses): Simplify. Rename to ...
  24359. (get_def_ref_stmt_vuse): ... this.
  24360. (vn_reference_lookup_2): New function.
  24361. (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
  24362. walking equivalent vuses. Simplify.
  24363. (vn_reference_lookup): Likewise.
  24364. (vn_reference_insert): Likewise.
  24365. (vn_reference_insert_pieces): Likewise.
  24366. (visit_reference_op_call): Simplify.
  24367. (visit_reference_op_load): Likewise.
  24368. (visit_reference_op_store): Likewise.
  24369. (init_scc_vn): Remove shared_lookup_vuses initialization.
  24370. (free_scc_vn): Remove shared_lookup_vuses freeing.
  24371. (sort_vuses, sort_vuses_heap): Remove.
  24372. (get_ref_from_reference_ops): Export.
  24373. * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
  24374. vector with single vuse pointer.
  24375. (vn_reference_lookup_pieces, vn_reference_lookup,
  24376. vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
  24377. (shared_vuses_from_stmt): Remove.
  24378. (get_ref_from_reference_ops): Declare.
  24379. * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
  24380. * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
  24381. memory-tag related code.
  24382. * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
  24383. (likely_value): Add comment, skip static-chain of call statements.
  24384. (surely_varying_stmt_p): Adjust.
  24385. (gimplify_and_update_call_from_tree): Likewise.
  24386. (execute_fold_all_builtins): Do not rebuild alias info.
  24387. (gimplify_and_update_call_from_tree): Properly update VOPs.
  24388. * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
  24389. (copy_ref_info): Remove memory-tag related code.
  24390. * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
  24391. * ipa-pure-const.c (check_decl): Remove memory-tag related code.
  24392. (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
  24393. computation.
  24394. * tree-ssa-dom.c (gimple_p): Remove typedef.
  24395. (eliminate_redundant_computations): Adjust.
  24396. (record_equivalences_from_stmt): Likewise.
  24397. (avail_expr_hash): Likewise.
  24398. (avail_expr_eq): Likewise.
  24399. * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
  24400. (stmt_makes_single_load): Likewise.
  24401. (stmt_makes_single_store): Likewise.
  24402. * tree-ssa-alias.c: Rewrite completely.
  24403. (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
  24404. debug_mem_sym_stats, dump_mem_sym_stats_for_var,
  24405. debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
  24406. delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
  24407. dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
  24408. Remove public functions.
  24409. (pass_reset_cc_flags): Remove.
  24410. (pass_build_alias): Move ...
  24411. * tree-ssa-structalias.c (pass_build_alias): ... here.
  24412. * tree-ssa-alias.c (may_be_aliased): Move ...
  24413. * tree-flow-inline.h (may_be_aliased): ... here.
  24414. tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
  24415. count_uses_and_derefs): Move ...
  24416. * gimple.c: ... here.
  24417. * gimple.h (count_uses_and_derefs): Declare.
  24418. * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
  24419. ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
  24420. same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
  24421. indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
  24422. ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
  24423. call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
  24424. get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
  24425. New functions.
  24426. * tree-dfa.c (refs_may_alias_p): Move ...
  24427. * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
  24428. * tree-ssa-alias.h: New file.
  24429. * tree-ssa-sink.c (is_hidden_global_store): Adjust.
  24430. (statement_sink_location): Likewise.
  24431. * opts.c (decode_options): Do not adjust max-aliased-vops or
  24432. avg-aliased-vops values.
  24433. * timevar.def (TV_TREE_MAY_ALIAS): Remove.
  24434. (TV_CALL_CLOBBER): Likewise.
  24435. (TV_FLOW_SENSITIVE): Likewise.
  24436. (TV_FLOW_INSENSITIVE): Likewise.
  24437. (TV_MEMORY_PARTITIONING): Likewise.
  24438. (TV_ALIAS_STMT_WALK): New timevar.
  24439. * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
  24440. * tree-ssa-address.c (create_mem_ref_raw): Use build6.
  24441. (get_address_description): Remove memory-tag related code.
  24442. * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
  24443. * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
  24444. * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
  24445. and immediate uses in statements. Document.
  24446. * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
  24447. (dump_symbols): Remove.
  24448. (dump_gimple_mem_ops): Do not dump loaded or stored syms.
  24449. * alias.c (get_deref_alias_set): New function split out from ...
  24450. (get_alias_set): ... here.
  24451. * alias.h (get_deref_alias_set): Declare.
  24452. * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
  24453. type parameter. Remove restrict pointer handling. Create a
  24454. ref-all pointer in case type-based alias sets do not conflict.
  24455. (vect_analyze_data_refs): Remove SMT related code.
  24456. * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
  24457. (vectorizable_load): Likewise.
  24458. * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
  24459. (DR_SYMBOL_TAG, DR_VOPS): Remove.
  24460. * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
  24461. Ignore vops and SMTs.
  24462. (dr_analyze_alias): Likewise..
  24463. (free_data_ref): Likewise.
  24464. (create_data_ref): Likewise.
  24465. (analyze_all_data_dependences): Likewise.
  24466. (get_references_in_stmt): Adjust.
  24467. * tree-flow-inline.h (gimple_aliases_computed_p,
  24468. gimple_addressable_vars, gimple_call_clobbered_vars,
  24469. gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
  24470. factoring_name_p, mark_call_clobbered, clear_call_clobbered,
  24471. compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
  24472. gimple_mem_ref_stats): Remove.
  24473. (gimple_vop): New function.
  24474. (op_iter_next_use): Remove vuses and mayuses cases.
  24475. (op_iter_next_def): Remove vdefs case.
  24476. (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
  24477. (clear_and_done_ssa_iter): Do not set removed fields.
  24478. (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
  24479. Assert we are not iterating over vuses or vdefs if not also
  24480. iterating over uses or defs.
  24481. (op_iter_init_use): Likewise.
  24482. (op_iter_init_def): Likewise.
  24483. (op_iter_next_vdef): Remove.
  24484. (op_iter_next_mustdef): Likewise.
  24485. (op_iter_init_vdef): Likewise.
  24486. (compare_ssa_operands_equal): Likewise.
  24487. (link_use_stmts_after): Handle vuse operand.
  24488. (is_call_used): Use is_call_clobbered.
  24489. (is_call_clobbered): Global variables are always call clobbered,
  24490. query the call-clobbers bitmap.
  24491. (mark_call_clobbered): Ignore global variables.
  24492. (clear_call_clobbered): Likewise.
  24493. * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
  24494. virtual operands sanity check.
  24495. * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
  24496. Remove.
  24497. (TARGET_MEM_REF): Remove TMR_TAG operand.
  24498. * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
  24499. Remove call-clobber related code.
  24500. (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
  24501. (dump_variable): Do not dump SMTs, memory stats, may-aliases or
  24502. partitions or escape reason.
  24503. (get_single_def_stmt, get_single_def_stmt_from_phi,
  24504. get_single_def_stmt_with_phi): Remove.
  24505. (dump_referenced_vars): Tidy.
  24506. (get_ref_base_and_extent): Allow bare decls.
  24507. (collect_dfa_stats): Adjust.
  24508. * graphite.c (rename_variables_in_stmt): Adjust.
  24509. (graphite_copy_stmts_from_block): Likewise.
  24510. (translate_clast): Likewise.
  24511. * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
  24512. (EXPR_DIES): New.
  24513. (translate_vuse_through_block): Use the oracle.
  24514. (phi_translate_1): Adjust.
  24515. (value_dies_in_block_x): Use the oracle. Cache the outcome
  24516. in EXPR_DIES.
  24517. (valid_in_sets): Check if the VUSE for
  24518. a REFERENCE is available.
  24519. (eliminate): Do not remove stmts during elimination,
  24520. instead queue and remove them afterwards.
  24521. (do_pre): Do not rebuild alias info.
  24522. (pass_pre): Run TODO_rebuild_alias before PRE.
  24523. * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
  24524. * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
  24525. (mark_all_v_defs_stmt): Remove.
  24526. (mark_all_v_defs_seq): Adjust.
  24527. (sra_replace): Likewise.
  24528. (scalarize_use): Likewise.
  24529. (scalarize_copy): Likewise.
  24530. (scalarize_init): Likewise.
  24531. (scalarize_ldst): Likewise.
  24532. (todoflags): Remove.
  24533. (tree_sra): Do not rebuild alias info.
  24534. (tree_sra_early): Adjust.
  24535. (pass_sra): Run TODO_update_address_taken before SRA.
  24536. * tree-predcom.c (set_alias_info): Remove.
  24537. (prepare_initializers_chain): Do not call it.
  24538. (mark_virtual_ops_for_renaming): Adjust.
  24539. (mark_virtual_ops_for_renaming_list): Remove.
  24540. (initialize_root_vars): Adjust.
  24541. (initialize_root_vars_lm): Likewise.
  24542. (prepare_initializers_chain): Likewise.
  24543. * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
  24544. (may_propagate_copy_into_stmt): Likewise.
  24545. (merge_alias_info): Do nothing for now.
  24546. (propagate_tree_value_into_stmt): Adjust.
  24547. (stmt_may_generate_copy): Likewise.
  24548. * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
  24549. not mark symbols for renaming.
  24550. (forward_propagate_addr_expr): Match up push/pop_stmt_changes
  24551. with the same statement, make sure to update the new pointed-to one.
  24552. * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
  24553. call statements, do not mark symbols for renaming.
  24554. (mark_operand_necessary): Dump something.
  24555. (ref_may_be_aliased): New function.
  24556. (mark_aliased_reaching_defs_necessary_1): New helper function.
  24557. (mark_aliased_reaching_defs_necessary): Likewise.
  24558. (mark_all_reaching_defs_necessary_1): Likewise.
  24559. (mark_all_reaching_defs_necessary): Likewise.
  24560. (propagate_necessity): Do not process virtual PHIs. For
  24561. non-aliased loads mark all reaching definitions as necessary.
  24562. For aliased loads and stores mark the immediate dominating
  24563. aliased clobbers as necessary.
  24564. (visited): New global static.
  24565. (perform_tree_ssa_dce): Free visited bitmap after propagating
  24566. necessity.
  24567. (remove_dead_phis): Perform simple dead virtual PHI removal.
  24568. (remove_dead_stmt): Properly unlink virtual operands when
  24569. removing stores.
  24570. (eliminate_unnecessary_stmts): Schedule PHI removal after
  24571. stmt removal.
  24572. * tree-ssa-ter.c (is_replaceable_p): Adjust.
  24573. (process_replaceable): Likewise.
  24574. (find_replaceable_in_bb): Likewise.
  24575. * tree-ssa.c (verify_ssa_name): Verify all VOPs are
  24576. based on the single gimple vop.
  24577. (verify_flow_insensitive_alias_info): Remove.
  24578. (verify_flow_sensitive_alias_info): Likewise.
  24579. (verify_call_clobbering): Likewise.
  24580. (verify_memory_partitions): Likewise.
  24581. (verify_alias_info): Likewise.
  24582. (verify_ssa): Adjust..
  24583. (execute_update_addresses_taken): Export. Update SSA
  24584. manually. Optimize only when optimizing. Use a local bitmap.
  24585. (pass_update_address_taken): Remove TODO_update_ssa, add
  24586. TODO_dump_func.
  24587. (pass_update_address_taken): Just use TODO_update_address_taken.
  24588. (init_tree_ssa): Do not initialize addressable_vars.
  24589. (verify_ssa): Verify new VUSE / VDEF properties.
  24590. Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
  24591. Do not call verify_alias_info.
  24592. (delete_tree_ssa): Clear the VUSE, VDEF operands.
  24593. Do not free the loaded and stored syms bitmaps. Reset the escaped
  24594. and callused solutions. Do not free addressable_vars.
  24595. Remove memory-tag related code.
  24596. (warn_uninitialized_var): Aliases are always available.
  24597. * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
  24598. * lambda-code.c (can_put_in_inner_loop): Adjust.
  24599. (can_put_after_inner_loop): Likewise.
  24600. (perfect_nestify): Likewise.
  24601. * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
  24602. (vect_gen_widened_results_half): Remove CALL_EXPR handling.
  24603. (vectorizable_conversion): Do not mark symbols for renaming.
  24604. * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
  24605. (expand_call_inline): Unlink the calls virtual operands before
  24606. replacing it.
  24607. (tree_function_versioning): Do not call update_ssa if we are not
  24608. updating clones. Simplify.
  24609. * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
  24610. (propagate_with_phi): Likewise..
  24611. * tree-outof-ssa.c (create_temp): Remove memory tag and call
  24612. clobber code. Assert we are not aliased or global.
  24613. * tree-flow.h: Include tree-ssa-alias.h
  24614. (enum escape_type): Remove.
  24615. (struct mem_sym_stats_d): Likewise.
  24616. (struct mem_ref_stats_d): Likewise.
  24617. (struct gimple_df): Add vop member. Remove global_var,
  24618. call_clobbered_vars, call_used_vars, addressable_vars,
  24619. aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
  24620. escaped and callused members.
  24621. (struct ptr_info_def): Remove all members, add points-to solution
  24622. member pt.
  24623. (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
  24624. call_clobbered, escape_mask, mpt and symbol_mem_tag members.
  24625. * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
  24626. (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
  24627. (tree-ssa-alias.o): Likewise.
  24628. (toplev.o): Add tree-ssa-alias.h
  24629. (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
  24630. * gimple.c (gimple_set_bb): Fix off-by-one error.
  24631. (is_gimple_reg): Do not handle memory tags.
  24632. (gimple_copy): Also copy virtual operands.
  24633. Delay updating the statement. Do not reset loaded and stored syms.
  24634. (gimple_set_stored_syms): Remove.
  24635. (gimple_set_loaded_syms): Likewise.
  24636. (gimple_call_copy_skip_args): Copy the virtual operands
  24637. and mark the new statement modified.
  24638. * tree-ssa-structalias.c (may_alias_p): Remove.
  24639. (set_uids_in_ptset): Take the alias set to prune with as
  24640. parameter. Fold in the alias test of may_alias_p.
  24641. (compute_points_to_sets): Compute whether a ptr is dereferenced
  24642. in a local sbitmap.
  24643. (process_constraint): Deal with &ANYTHING on the lhs, reject all
  24644. other ADDRESSOF constraints on the lhs.
  24645. (get_constraint_for_component_ref): Assert that we don't get
  24646. ADDRESSOF constraints from the base of the reference.
  24647. Properly generate UNKNOWN_OFFSET for DEREF if needed.
  24648. (struct variable_info): Remove collapsed_to member.
  24649. (get_varinfo_fc): Remove.
  24650. (new_var_info): Do not set collapsed_to.
  24651. (dump_constraint): Do not follow cycles.
  24652. (dump_constraint_graph): Likewise.
  24653. (build_pred_graph): Likewise.
  24654. (build_succ_graph): Likewise.
  24655. (rewrite_constraints): Likewise.
  24656. (do_simple_structure_copy): Remove.
  24657. (do_rhs_deref_structure_copy): Remove.
  24658. (do_lhs_deref_structure_copy): Remove.
  24659. (collapse_rest_of_var): Remove.
  24660. (do_structure_copy): Re-implement.
  24661. (pta_stats): New global variable.
  24662. (dump_pta_stats): New function.
  24663. (struct constraint_expr): Make offset signed.
  24664. (UNKNOWN_OFFSET): Define special value.
  24665. (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
  24666. (solution_set_expand): New helper function split out from ...
  24667. (do_sd_constraint): ... here.
  24668. (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
  24669. (do_ds_constraint): Likewise.
  24670. (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
  24671. and CALLUSED = *CALLUSED.
  24672. (set_union_with_increment): Make inc argument signed.
  24673. (type_safe): Remove.
  24674. (get_constraint_for_ptr_offset): Handle unknown and negative
  24675. constant offsets.
  24676. (first_vi_for_offset): Handle offsets before start. Bail
  24677. out early for offsets beyond the variable extent.
  24678. (first_or_preceding_vi_for_offset): New function.
  24679. (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
  24680. Together with ESCAPED = *ESCAPED this properly computes reachability.
  24681. (find_what_var_points_to): New function.
  24682. (find_what_p_points_to): Implement in terms of find_what_var_points_to.
  24683. (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
  24684. pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
  24685. pt_solutions_intersect): New functions.
  24686. (compute_call_used_vars): Remove.
  24687. (compute_may_aliases): New main entry into PTA computation.
  24688. * gimple.h (gimple_p): New typedef.
  24689. (struct gimple_statement_base): Remove references_memory_p.
  24690. (struct gimple_statement_with_memory_ops_base): Remove
  24691. vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
  24692. members.
  24693. (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
  24694. gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
  24695. gimple_set_references_memory): Remove.
  24696. (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
  24697. gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
  24698. New functions.
  24699. * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
  24700. (verify_expr): Allow RESULT_DECL.
  24701. (gimple_duplicate_bb): Do not copy virtual operands.
  24702. (gimple_duplicate_sese_region): Adjust.
  24703. (gimple_duplicate_sese_tail): Likewise.
  24704. (mark_virtual_ops_in_region): Remove.
  24705. (move_sese_region_to_fn): Do not call it.
  24706. * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
  24707. and pass_simple_dse.
  24708. (execute_function_todo): Handle TODO_update_address_taken,
  24709. call execute_update_addresses_taken for TODO_rebuild_alias.
  24710. (execute_todo): Adjust.
  24711. (execute_one_pass): Init dump files early.
  24712. * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
  24713. call-clobbered.
  24714. (create_general_new_stmt): Clear vops.
  24715. * tree-ssa-reassoc.c (get_rank): Adjust.
  24716. * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
  24717. symbols for renaming.
  24718. * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
  24719. (PARAM_AVG_ALIASED_VOPS): Likewise.
  24720. * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
  24721. (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
  24722. * tree-ssa-operands.c: Simplify for new virtual operand representation.
  24723. (operand_build_cmp, copy_virtual_operands,
  24724. create_ssa_artificial_load_stmt, add_to_addressable_set,
  24725. gimple_add_to_addresses_taken): Remove public functions.
  24726. (unlink_stmt_vdef): New function.
  24727. 2009-04-03 Alan Modra <amodra@bigpond.net.au>
  24728. * config.gcc (powerpc-*-linux*): Merge variants.
  24729. 2009-04-02 Chao-ying Fu <fu@mips.com>
  24730. James Grosbach <james.grosbach@microchip.com>
  24731. * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
  24732. num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
  24733. cop0_sp_offset.
  24734. (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
  24735. keep_interrupts_masked_p, use_debug_exception_return_p.
  24736. (mips_attribute_table): Add interrupt, use_shadow_register_set,
  24737. keep_interrupts_masked, use_debug_exception_return.
  24738. (mips_interrupt_type_p, mips_use_shadow_register_set_p,
  24739. mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
  24740. New functions.
  24741. (mips_function_ok_for_sibcall): Return false for interrupt handlers.
  24742. (mips_print_operand): Process COP0 registers to print $0 .. $31
  24743. correctly for GAS to process.
  24744. (mips_interrupt_extra_call_saved_reg_p): New function.
  24745. (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
  24746. extra registers.
  24747. (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
  24748. (mips_compute_frame_info): Add supports for interrupt context that
  24749. includes doubleword accumulators and COP0 registers.
  24750. (mips_for_each_saved_acc): New function.
  24751. (mips_for_each_saved_gpr_and_fpr): Change the function name from
  24752. mips_for_each_saved_reg.
  24753. (mips_save_reg): Save accumulators.
  24754. (mips_kernel_reg_p): A new for_each_rtx callback.
  24755. (mips_expand_prologue): Support interrupt handlers.
  24756. (mips_restore_reg): Restore accumulators.
  24757. (mips_expand_epilogue): Support interrupt handlers.
  24758. (mips_can_use_return_insn): Return false for interrupt handlers.
  24759. (mips_epilogue_uses): New function.
  24760. * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
  24761. UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
  24762. (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
  24763. cop0_move): New instructions.
  24764. * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
  24765. * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
  24766. defines.
  24767. (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
  24768. New defines.
  24769. (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
  24770. (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
  24771. interrupt handlers, we use K0 as the temporary register.
  24772. (EPILOGUE_USES): Change to a function call.
  24773. * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
  24774. handlers, we use K0 as the temporary register.
  24775. * doc/extend.texi (Function Attributes): Document interrupt,
  24776. use_shadow_register_set, keep_interrupts_masked,
  24777. use_debug_exception_return for MIPS attributes.
  24778. 2009-04-03 Alan Modra <amodra@bigpond.net.au>
  24779. * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
  24780. Remove a number of t-files from tmake_file.
  24781. * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
  24782. * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
  24783. * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
  24784. target_prototype, not TARGET_PROTOTYPE.
  24785. (LINK_OS_GNU_SPEC): Define.
  24786. * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
  24787. and darwin-ldoubdle.c.
  24788. 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
  24789. PR driver/39293
  24790. * gcc.c (save_temps_flag): Add support for -save-temps=obj.
  24791. (cpp_options): Ditto.
  24792. (default_compilers): Ditto.
  24793. (display_help): Ditto.
  24794. (process_command): Ditto.
  24795. (do_spec_1): Ditto.
  24796. (set_input): Use lbasename instead of duplicate code.
  24797. (save_temps_prefix): New static for -save-temps=obj.
  24798. (save_temps_length): Ditto.
  24799. * doc/invoke.texi (-save-temps=obj): Document new variant to
  24800. -save-temps switch.
  24801. 2009-04-02 Jeff Law <law@redhat.com>
  24802. * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
  24803. variable.
  24804. 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
  24805. * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
  24806. * configure: Regenerated.
  24807. 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
  24808. * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
  24809. share the argument list.
  24810. 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
  24811. Merge
  24812. 2009-02-12 Diego Novillo <dnovillo@google.com>
  24813. * varpool.c (debug_varpool): New.
  24814. * cgraph.h (debug_varpool): Declare.
  24815. 2009-04-02 Jan Hubicka <jh@suse.cz>
  24816. * passes.c (init_optimization_passes): Remove two copies of ehcleanup
  24817. pass.
  24818. 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
  24819. * config/i386/i386.c (ix86_abi): Move initialization to ...
  24820. (override_options): Here.
  24821. 2009-04-02 Christian Bruel <christian.bruel@st.com>
  24822. * config/sh/sh.c (sh_dwarf_register_span): New function.
  24823. (TARGET_DWARF_REGISTER_SPAN): Define.
  24824. * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
  24825. 2009-04-02 Ira Rosen <irar@il.ibm.com>
  24826. PR tree-optimization/39595
  24827. * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
  24828. interleaved loads group is not greater than the SLP group size.
  24829. 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
  24830. * builtins.c (is_builtin_name): New.
  24831. (called_as_built_in): Use is_builtin_name.
  24832. * tree.h (is_builtin_name): New.
  24833. * varasm.c (incorporeal_function_p): Use is_builtin_name
  24834. 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
  24835. * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
  24836. 2009-04-02 Dodji Seketeli <dodji@redhat.com>
  24837. PR c++/26693
  24838. * c-decl.c (clone_underlying_type): Move this ...
  24839. * c-common.c (set_underlying_type): ... here.
  24840. Also, make sure the function properly sets TYPE_STUB_DECL() on
  24841. the newly created typedef variant type.
  24842. * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
  24843. * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
  24844. points.
  24845. 2009-04-02 Richard Guenther <rguenther@suse.de>
  24846. PR tree-optimization/37221
  24847. * tree-flow.h (degenerate_phi_result): Declare.
  24848. * tree-ssa-dom.c (degenerate_phi_result): Export.
  24849. * tree-scalar-evolution.c (analyze_initial_condition): If
  24850. the initial condition is defined by a degenerate PHI node
  24851. use the degenerate value.
  24852. 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
  24853. PR rtl-optimization/39588
  24854. * combine.c (merge_outer_ops): Do not set the constant when this
  24855. is not necessary.
  24856. (simplify_shift_const_1): Do not modify it either in this case.
  24857. 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
  24858. * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
  24859. tuning is deprecated if -mtune value is set to an Itanium1 variant.
  24860. 2009-04-01 Janis Johnson <janis187@us.ibm.com>
  24861. PR c/29027
  24862. * c-lex.c (interpret_float): Default (no suffix) is double.
  24863. 2009-04-1 Xinliang David Li <davidxl@google.com>
  24864. * config/i386/i386.c (legitimate_constant_p): Recognize
  24865. all one vector constant.
  24866. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24867. * config/vax/vax.c: Add #includes to silence warnings.
  24868. Change #include order to silence two warnings.
  24869. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24870. * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
  24871. (ASM_SPEC): Pass -k to the assembler for PIC code.
  24872. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24873. * config.gcc: Add vax-*-linux* to the switch.
  24874. * config/vax/linux.h: New file. (TARGET_VERSION,
  24875. TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
  24876. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24877. * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
  24878. Use predicate macros instead of GET_CODE() == foo.
  24879. * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
  24880. ashlsi3, rotrsi3, <unnamed>): Likewise.
  24881. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24882. * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
  24883. jbbccihi, jbbccisi): Remova trailing whitespace.
  24884. * config/vax/constraints.md: Likewise.
  24885. * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
  24886. * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
  24887. * config/vax/predicates.md: Likewise.
  24888. * config/vax/vax.c (print_operand_address, vax_output_int_move,
  24889. vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
  24890. * config/vax/vax.h: Likewise.
  24891. * config/vax/vax.md (nonlocal_goto): Likewise.
  24892. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24893. * config/vax/vax.c (vax_float_literal, vax_output_int_move)
  24894. (indirectable_address_p, adjacent_operands_p): Add spaces around
  24895. braces.
  24896. * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
  24897. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24898. * config/vax/vax.c (legitimate_constant_address_p,
  24899. legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
  24900. index_term_p, reg_plus_index_p, legitimate_address_p,
  24901. vax_mode_dependent_address_p): Update comments to match functions
  24902. modified by the recent int->bool conversion.
  24903. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24904. * config/vax/builtins.md: Update copyright message.
  24905. * config/vax/constraints.md: Likewise.
  24906. * config/vax/netbsd-elf.h: Likewise.
  24907. * config/vax/predicates.md: Likewise.
  24908. * config/vax/vax-protos.h: Likewise.
  24909. * config/vax/vax.c: Likewise.
  24910. * config/vax/vax.h: Likewise.
  24911. * config/vax/vax.md: Likewise.
  24912. * config/vax/vax.opt: Likewise.
  24913. 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
  24914. * config/vax/builtins.md (ffssi2, ffssi2_internal,
  24915. sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
  24916. * config/vax/constraints.md (B, R): Likewise.
  24917. * config/vax/predicates.md (external_memory_operand,
  24918. nonimmediate_addsub_di_operand): Likewise.
  24919. * config/vax/vax.c (vax_output_int_add): Likewise.
  24920. * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
  24921. untyped_call): Likewise.
  24922. 2009-04-01 Matt Thomas <matt@3am-software.com>
  24923. * config/vax/predicates.md: New file.
  24924. (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
  24925. external_const_operand, nonsymbolic_operand, external_memory_operand,
  24926. indirect_memory_operand, indexed_memory_operand,
  24927. illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
  24928. nonimmediate_addsub_di_operand, general_addsub_di_operand): New
  24929. predicate.
  24930. * config/vax/constraints.md: New file.
  24931. (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
  24932. New constraint.
  24933. * config/vax/builtins.md: New file.
  24934. (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
  24935. jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
  24936. jbbccisi): Define.
  24937. * config/vax/vax.opt (mqmath): Add option.
  24938. * config/vax/vax.md (isfx): Extend with DI.
  24939. (VAXintQH, VAXintQHSD): Define.
  24940. (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
  24941. mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
  24942. and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
  24943. one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
  24944. (movdi): Update constraints and use vax_output_int_move().
  24945. (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
  24946. movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
  24947. pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
  24948. nonlocal_goto): New.
  24949. (mov<mode>): Extend accepted operand types.
  24950. (subdi3_old): Rename from subdi3, change update constraints and use
  24951. a new implementation.
  24952. * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
  24953. (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
  24954. MOVE_RATIO, CLEAR_RATIO): Define.
  24955. (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
  24956. CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
  24957. (PRINT_OPERAND): Redefine using a function instead of inlined code.
  24958. * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
  24959. (split_quadword_operands): Make static and really allow variable
  24960. splitting.
  24961. (print_operand_address): Update for PIC generation.
  24962. (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
  24963. indexable_address_p, fixup_mathdi_operand,
  24964. vax_expand_addsub_di_operands, adjacent_operands_p): New.
  24965. (vax_float_literal, legitimate_constant_p,
  24966. indirectable_constant_address_p, index_term_p,
  24967. reg_plus_index_p): Return bool instead of int.
  24968. (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
  24969. where needed.
  24970. (vax_output_int_move, vax_output_int_add): Extend to allow PIC
  24971. generation.
  24972. (vax_output_conditional_branch): Indent.
  24973. (legitimate_constant_address_p, indirectable_constant_address_p,
  24974. indirectable_address_p, nonindexed_address_p, legitimate_address_p,
  24975. vax_mode_dependent_address_p): Return bool instead of int, update for
  24976. PIC generation.
  24977. * config/vax/vax-protos.h (legitimate_constant_address_p,
  24978. legitimate_constant_p, legitimate_address_p,
  24979. vax_mode_dependent_address_p): Change declaration to bool.
  24980. (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
  24981. vax_expand_addsub_di_operands, vax_output_int_subtract,
  24982. vax_output_movmemsi): Declare.
  24983. (split_quadword_operands, vax_float_literal): Delete declaration.
  24984. * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
  24985. * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
  24986. VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
  24987. ASM_OUTPUT_DWARF_PCREL): Define.
  24988. (ASM_SPEC): Change definition to allow PIC generation.
  24989. 2009-04-01 Steve Ellcey <sje@cup.hp.com>
  24990. * doc/sourcebuild.texi: Update front-end requirements.
  24991. 2009-04-01 Jakub Jelinek <jakub@redhat.com>
  24992. PR target/39226
  24993. * config/rs6000/rs6000.md (andsi3_internal5_nomc,
  24994. anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
  24995. (booldi3_internal3): Use boolean_or_operator instead of
  24996. boolean_operator.
  24997. 2009-04-01 Joseph Myers <joseph@codesourcery.com>
  24998. PR c/39605
  24999. * c-decl.c (grokdeclarator): Pedwarn for file-scope array
  25000. declarator whose size is not an integer constant expression but
  25001. folds to an integer constant, then treat it as a constant
  25002. subsequently.
  25003. 2009-04-01 Richard Guenther <rguenther@suse.de>
  25004. * fold-const.c (fold_plusminus_mult_expr): Do not fold
  25005. i * 4 + 2 to (i * 2 + 1) * 2.
  25006. 2009-04-01 Jakub Jelinek <jakub@redhat.com>
  25007. PR c/37772
  25008. * c-parser.c (c_parser_asm_statement): Skip until close paren and
  25009. return if c_parser_asm_string_literal returned NULL.
  25010. 2009-04-01 Nick Clifton <nickc@redhat.com>
  25011. * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
  25012. already defined.
  25013. * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
  25014. * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
  25015. other typedefs to avoid conflicts with libgcc2.c. Define labels
  25016. to gain 16-bit bit-manipulation functions from libgcc2.c and then
  25017. include it.
  25018. * config/m32c/m32c-lib2-trapv.c: New file. Define labels
  25019. to gain 16-bit trapping arithmetic functions from libgcc2.c and
  25020. then include it.
  25021. 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
  25022. * varasm.c (default_function_rodata_section): Declare DOT as
  25023. const char*.
  25024. 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
  25025. Andrey Galkin <agalkin@hypercom.com>
  25026. PR/39492
  25027. * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
  25028. Make object_name unique for each process.
  25029. 2009-04-01 Jakub Jelinek <jakub@redhat.com>
  25030. PR other/39591
  25031. * omp-low.c (remove_exit_barrier): Don't optimize if there are any
  25032. addressable variables in the parallel that could go out of scope while
  25033. running queued tasks.
  25034. 2009-04-01 Anatoly Sokolov <aesok@post.ru>
  25035. * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
  25036. (CASE_VALUES_THRESHOLD): Redefine.
  25037. * config/avr/avr.c (avr_override_options): Remove initialization of
  25038. avr_case_values_threshold variable.
  25039. (avr_case_values_threshold): Remove variable. Add new function.
  25040. * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
  25041. * config/avr/avr.opt (mno-tablejump): Remove option.
  25042. * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
  25043. 2009-04-01 DJ Delorie <dj@redhat.com>
  25044. * varasm.c (default_function_rodata_section): Don't assume
  25045. anything about where the first '.' in the section name is.
  25046. 2009-04-01 Alan Modra <amodra@bigpond.net.au>
  25047. * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
  25048. rs6000_emit_stack_tie.
  25049. 2009-03-31 Ian Lance Taylor <iant@google.com>
  25050. * tree-eh.c (tree_remove_unreachable_handlers): Compare
  25051. gimple_code with GIMPLE_RESX, not RESX.
  25052. 2009-03-31 Joseph Myers <joseph@codesourcery.com>
  25053. * c-common.c (c_get_ident): New.
  25054. (c_common_nodes_and_builtins): Call it for type names that may be NULL.
  25055. 2009-04-01 Ben Elliston <bje@au.ibm.com>
  25056. * config/rs6000/sysv4.opt (msdata): Improve option description.
  25057. 2009-03-31 Steve Ellcey <sje@cup.hp.com>
  25058. * config/ia64/ia64.md (divsf3_internal_lat): Remove.
  25059. (divdf3_internal_lat): Remove.
  25060. (divxf3_internal_lat): Remove.
  25061. (divxf3_internal_thr): Remove.
  25062. (divxf): Use divxf3_internal.
  25063. * config/ia64/div.md (divsf3_internal_lat): New.
  25064. (divdf3_internal_lat): New.
  25065. (divxf3_internal): New.
  25066. 2009-03-31 Joseph Myers <joseph@codesourcery.com>
  25067. PR c/448
  25068. * Makefile.in (USE_GCC_STDINT): Define.
  25069. (stmp-int-hdrs): Install stdint.h if applicable.
  25070. * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
  25071. if known.
  25072. (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
  25073. (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
  25074. UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
  25075. INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
  25076. INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
  25077. UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
  25078. INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
  25079. UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
  25080. UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
  25081. (c_common_nodes_and_builtins): Initialize
  25082. underlying_wchar_type_node. Do not initialize
  25083. signed_wchar_type_node or unsigned_wchar_type_node. Initialize
  25084. nodes for new types.
  25085. (c_stddef_cpp_builtins): Define macros for new types.
  25086. * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
  25087. Remove.
  25088. (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
  25089. CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
  25090. CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
  25091. CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
  25092. CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
  25093. CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
  25094. CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
  25095. CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
  25096. CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
  25097. (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
  25098. (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
  25099. int16_type_node, int32_type_node, int64_type_node,
  25100. uint8_type_node, uint16_type_node, c_uint32_type_node,
  25101. c_uint64_type_node, int_least8_type_node, int_least16_type_node,
  25102. int_least32_type_node, int_least64_type_node,
  25103. uint_least8_type_node, uint_least16_type_node,
  25104. uint_least32_type_node, uint_least64_type_node,
  25105. int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
  25106. int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
  25107. uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
  25108. uintptr_type_node): Define.
  25109. * c-cppbuiltin.c (builtin_define_constants,
  25110. builtin_define_type_minmax): New.
  25111. (builtin_define_stdint_macros): Define more macros.
  25112. (c_cpp_builtins): Define more limit macros.
  25113. (type_suffix): New.
  25114. (builtin_define_type_max): Define in terms of
  25115. builtin_define_type_minmax. Remove is_long parameter. All
  25116. callers changed.
  25117. * config.gcc (use_gcc_stdint): Define.
  25118. (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
  25119. Add newlib-stdint.h for generic targets.
  25120. * config/glibc-stdint.h, config/newlib-stdint.h,
  25121. ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
  25122. * config/m32c/m32c.h (UINTPTR_TYPE): Define.
  25123. * config/score/score.h (UINTPTR_TYPE): Define.
  25124. * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
  25125. INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
  25126. UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
  25127. INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
  25128. UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
  25129. INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
  25130. UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
  25131. UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
  25132. * config/spu/spu.h (STDINT_LONG32): Define.
  25133. * configure.ac (use_gcc_stdint): Substitute.
  25134. * configure: Regenerate.
  25135. * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
  25136. __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
  25137. __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
  25138. __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
  25139. __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
  25140. __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
  25141. __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
  25142. __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
  25143. __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
  25144. __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
  25145. __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
  25146. __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
  25147. __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
  25148. __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
  25149. __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
  25150. __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
  25151. __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
  25152. __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
  25153. __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
  25154. __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
  25155. __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
  25156. * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
  25157. INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
  25158. INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
  25159. INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
  25160. UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
  25161. INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
  25162. UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
  25163. UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
  25164. 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
  25165. * loop-iv.c (suitable_set_for_replacement): Renamed from
  25166. simplify_using_assignment; changed to return bool and to accept new
  25167. args DEST and SRC. Return true iff we find a source/destination pair
  25168. that can be used to make a replacement, and fill SRC and DEST if so.
  25169. Remove arg ALTERED. Don't deal with altered regs here. All callers
  25170. changed.
  25171. (simplify_using_initial_values): Deal with altered regs here and track
  25172. more precisely the effect they have on the validity of our expression.
  25173. * loop-iv.c (simplify_using_condition): A condition of the form
  25174. (EQ REG CONST) can be used to simply make a substitution.
  25175. (simplify_using_initial_values): Keep track of conditions we have seen
  25176. and keep using them to simplify new expressions, while applying the
  25177. same substitutions to them as to the expression.
  25178. * simplify-rtx.c (simplify_relational_operation_1): Simplify
  25179. (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
  25180. GEU/LTU reversed.
  25181. * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
  25182. changed. Use this when trying to improve the upper bound.
  25183. Generate the comparison by using simplify_gen_relational.
  25184. * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
  25185. * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
  25186. functions.
  25187. (simplify_using_assignment, simplify_using_initial_values): Call
  25188. replace_in_expr to make replacements. Call replace_single_def_regs
  25189. once on the initial version of the expression.
  25190. 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  25191. PR target/27237
  25192. * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
  25193. 2009-03-31 Richard Guenther <rguenther@suse.de>
  25194. PR middle-end/31029
  25195. * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
  25196. equality comparisons. Fold C - X CMP X if C % 2 == 1.
  25197. 2009-03-31 Richard Guenther <rguenther@suse.de>
  25198. * tree.h (div_if_zero_remainder): Declare.
  25199. * fold-const.c (div_if_zero_remainder): Export.
  25200. * tree-ssa-forwprop.c
  25201. (forward_propagate_addr_into_variable_array_index): Handle
  25202. constant array index addition outside of the variable index.
  25203. 2009-03-31 Joseph Myers <joseph@codesourcery.com>
  25204. PR target/39592
  25205. * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
  25206. define_splits, floatunssi<mode>2): Require x87 conversions from
  25207. DImode to be permitted.
  25208. 2009-03-31 Joseph Myers <joseph@codesourcery.com>
  25209. PR preprocessor/15638
  25210. * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
  25211. 2009-03-31 Richard Guenther <rguenther@suse.de>
  25212. PR middle-end/23401
  25213. PR middle-end/27810
  25214. * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
  25215. (struct tree_decl_with_vis): Remove gimple_formal_temp member.
  25216. * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
  25217. a separate statement.
  25218. * gimplify.c (pop_gimplify_context): Remove formal temp handling.
  25219. (lookup_tmp_var): Likewise.
  25220. (is_gimple_formal_tmp_or_call_rhs): Remove.
  25221. (is_gimple_reg_or_call_rhs): Rename to ...
  25222. (is_gimple_reg_rhs_or_call): ... this.
  25223. (is_gimple_mem_or_call_rhs): Rename to ...
  25224. (is_gimple_mem_rhs_or_call): ... this.
  25225. (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
  25226. DECL_GIMPLE_REG_P only if is_formal is true.
  25227. (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
  25228. for non-proper post-modify expression gimplification.
  25229. (gimplify_self_mod_expr): For post-modify expressions gimplify
  25230. the lvalue to a minimal lvalue.
  25231. (rhs_predicate_for): Remove formal temp case.
  25232. (gimplify_modify_expr_rhs): Likewise.
  25233. (gimplify_addr_expr): Use is_gimple_reg.
  25234. (gimplify_expr): Remove formal temp cases.
  25235. (gimple_regimplify_operands): Likewise.
  25236. * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
  25237. and FILTER_EXPR like constants.
  25238. * gimple.c (walk_gimple_op): Fix val_only initialization, use
  25239. is_gimple_reg.
  25240. (is_gimple_formal_tmp_rhs): Remove.
  25241. (is_gimple_reg_rhs): Remove special casing.
  25242. (is_gimple_mem_rhs): Fix.
  25243. (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
  25244. (is_gimple_formal_tmp_var): Remove.
  25245. (is_gimple_formal_tmp_reg): Likewise.
  25246. (is_gimple_min_lval): Allow invariant component ref parts.
  25247. * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
  25248. is_gimple_formal_tmp_reg): Remove declarations.
  25249. * tree-cfg.c (verify_expr): Verify that variables with address
  25250. taken do not have DECL_GIMPLE_REG_P set.
  25251. * tree-mudflap.c (mf_build_check_statement_for): Use
  25252. force_gimple_operand instead of gimplify_expr.
  25253. 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
  25254. * modulo-sched.c (sms_schedule_by_order): Pass the actual
  25255. schedulable rows to compute_split_row.
  25256. 2009-03-31 Ben Elliston <bje@au.ibm.com>
  25257. PR target/31635
  25258. * config/rs6000/rs6000.c (rs6000_handle_option): Handle
  25259. OPT_mvrsave.
  25260. 2009-03-31 Alan Modra <amodra@bigpond.net.au>
  25261. * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
  25262. * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
  25263. * configure: Regenerate.
  25264. * config.in: Regenerate.
  25265. * config/rs6000/rs6000.opt (mtls-markers): Add.
  25266. * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
  25267. * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
  25268. (tls_ld_aix, tls_ld_sysv): Likewise.
  25269. (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
  25270. (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
  25271. 2009-03-31 Alan Modra <amodra@bigpond.net.au>
  25272. * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
  25273. 2009-03-30 Jan Hubicka <jh@suse.cz>
  25274. * tree-eh.c (make_eh_edges): Set probability 100% to first edge
  25275. out of RESX.
  25276. (tree_remove_unreachable_handlers): Cleanup EH predecestor
  25277. detection and label handling.
  25278. 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
  25279. * ira-int.h (ira_allocno): Rename left_conflicts_num to
  25280. left_conflicts_size.
  25281. (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
  25282. ALLOCNO_LEFT_CONFLICTS_SIZE.
  25283. * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
  25284. remove_allocno_from_bucket_and_push,
  25285. allocno_spill_priority_compare, push_allocnos_to_stack,
  25286. setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
  25287. instead of ALLOCNO_LEFT_CONFLICTS_NUM.
  25288. (setup_allocno_left_conflicts_num): Ditto. Rename to
  25289. setup_allocno_left_conflicts_size.
  25290. (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
  25291. instead of ALLOCNO_LEFT_CONFLICTS_NUM and
  25292. setup_allocno_left_conflicts_size instead of
  25293. setup_allocno_left_conflicts_num.
  25294. * ira-build.c (ira_create_allocno): Use
  25295. ALLOCNO_LEFT_CONFLICTS_SIZE instead of
  25296. ALLOCNO_LEFT_CONFLICTS_NUM.
  25297. 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
  25298. * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
  25299. instead of DF_LR_OUT.
  25300. * ira-lives.c (process_bb_node_lives): Ditto.
  25301. * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
  25302. instead of DF_LR_{OUT,IN}.
  25303. * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
  25304. * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
  25305. 2009-03-30 Jan Hubicka <jh@suse.cz>
  25306. * except.c (label_to_region_map): Fix thinko.
  25307. 2009-03-30 Steve Ellcey <sje@cup.hp.com>
  25308. PR middle-end/38237
  25309. * tree.h (tree_find_value): New declaration.
  25310. * tree.c (tree_find_value): New function.
  25311. * varasm.c (assemble_external): Avoid duplicate entries on lists.
  25312. 2009-03-30 Jakub Jelinek <jakub@redhat.com>
  25313. PR debug/39563
  25314. * c-decl.c (struct c_binding): Add locus field.
  25315. (bind): Add locus argument, set locus field from it.
  25316. (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
  25317. add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
  25318. (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
  25319. implicitly_declare, undeclared_variable, lookup_label,
  25320. declare_label, c_make_fname_decl, c_builtin_function,
  25321. c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
  25322. bind callers.
  25323. 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
  25324. PR target/38781
  25325. * config/i386/i386.c (classify_argument): Check total size of
  25326. structure.
  25327. 2009-03-30 Martin Jambor <mjambor@suse.cz>
  25328. * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
  25329. IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
  25330. IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
  25331. respectively.
  25332. * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
  25333. seen_variable_array_ref while also traversing a union.
  25334. * tree-inline.c (optimize_inline_calls): Do not call
  25335. cgraph_node_remove_callees.
  25336. * cgraphbuild.c (remove_cgraph_callee_edges): New function.
  25337. (pass_remove_cgraph_callee_edges): New variable.
  25338. * passes.c (init_optimization_passes): Add
  25339. pass_remove_cgraph_callee_edges after early inlining and before all
  25340. late intraprocedural passes.
  25341. * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
  25342. 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
  25343. * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
  25344. Fix typos in names.
  25345. 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
  25346. * combine.c (simplify_comparison): Use have_insn_for.
  25347. * dojump.c (do_jump): Likewise.
  25348. 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
  25349. * config/sparc/sparc.c (sparc_compare_emitted): Remove.
  25350. (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
  25351. sparc_compare_op0 like sparc_compare_emitted used to be handled.
  25352. (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
  25353. instead of sparc_compare_emitted.
  25354. * config/sparc/sparc.h (sparc_compare_emitted): Remove.
  25355. * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
  25356. instead of sparc_compare_emitted.
  25357. 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
  25358. * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
  25359. enter/exit cfglayout mode.
  25360. (pass_partition_block): Require it.
  25361. * combine.c (find_single_use, reg_dead_at_p): Use CFG.
  25362. (combine_instructions): Track basic blocks instead of labels.
  25363. (update_cfg_for_uncondjump): New.
  25364. (try_combine): Use it. Update jumps after rescanning.
  25365. (pass_combine): Require PROP_cfglayout.
  25366. * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
  25367. 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
  25368. * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
  25369. Provide/destroy PROP_cfglayout respectively.
  25370. * gcse.c (pass_jump_bypass, pass_gcse): Require it.
  25371. * tree-pass.h (PROP_cfglayout): New.
  25372. 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
  25373. * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
  25374. fold_convert_const_fixed_from_fixed,
  25375. fold_convert_const_fixed_from_int,
  25376. fold_convert_const_fixed_from_real, fold_negate_const): Do not
  25377. set TREE_CONSTANT_OVERFLOW.
  25378. * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
  25379. * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
  25380. 2009-03-30 Ira Rosen <irar@il.ibm.com>
  25381. * tree-vect-loop-manip.c: New file.
  25382. * tree-vectorizer.c: Update documentation and included files.
  25383. (vect_loop_location): Make extern.
  25384. (rename_use_op): Move to tree-vect-loop-manip.c
  25385. (rename_variables_in_bb, rename_variables_in_loop,
  25386. slpeel_update_phis_for_duplicate_loop,
  25387. slpeel_update_phi_nodes_for_guard1,
  25388. slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
  25389. slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
  25390. slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
  25391. set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
  25392. find_loop_location): Likewise.
  25393. (new_stmt_vec_info): Move to tree-vect-stmts.c.
  25394. (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
  25395. get_vectype_for_scalar_type, vect_is_simple_use,
  25396. supportable_widening_operation, supportable_narrowing_operation):
  25397. Likewise.
  25398. (bb_in_loop_p): Move to tree-vect-loop.c.
  25399. (new_loop_vec_info, destroy_loop_vec_info,
  25400. reduction_code_for_scalar_code, report_vect_op,
  25401. vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
  25402. (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
  25403. (vect_supportable_dr_alignment): Likewise.
  25404. * tree-vectorizer.h (tree-data-ref.h): Include.
  25405. (vect_loop_location): Declare.
  25406. Reorganize function declarations according to the new file structure.
  25407. * tree-vect-loop.c: New file.
  25408. * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
  25409. tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
  25410. * tree-vect-data-refs.c: New file.
  25411. * tree-vect-patterns.c (timevar.h): Don't include.
  25412. * tree-vect-stmts.c: New file.
  25413. * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
  25414. tree-vect-slp.c, tree-vect-loop.c.
  25415. * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
  25416. tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
  25417. tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
  25418. (tree-vect-analyze.o): Remove.
  25419. (tree-vect-transform.o): Likewise.
  25420. (tree-vect-data-refs.o): Add rule.
  25421. (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
  25422. tree-vect-slp.o): Likewise.
  25423. (tree-vect-patterns.o): Remove redundant dependencies.
  25424. (tree-vectorizer.o): Likewise.
  25425. * tree-vect-slp.c: New file.
  25426. 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  25427. * optc-gen.awk: Warn if an option flag has multiple different
  25428. help strings.
  25429. 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
  25430. * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
  25431. -floop-block): Document dependences on PPL, CLooG and Graphite.
  25432. 2009-03-30 Joseph Myers <joseph@codesourcery.com>
  25433. PR rtl-optimization/323
  25434. * c-common.c (c_fully_fold, convert_and_check,
  25435. c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
  25436. (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
  25437. * c-common.def (EXCESS_PRECISION_EXPR): New.
  25438. * c-cppbuiltin.c (builtin_define_float_constants): Define
  25439. constants with enough digits for long double.
  25440. * c-lex.c (interpret_float): Interpret constant with excess
  25441. precision where appropriate.
  25442. * c-opts.c (c_common_post_options): Set
  25443. flag_excess_precision_cmdline. Give an error for
  25444. -fexcess-precision=standard for C++ for processors where the
  25445. option is significant.
  25446. * c-parser.c (c_parser_conditional_expression): Handle excess
  25447. precision in condition.
  25448. * c-typeck.c (convert_arguments): Handle arguments with excess
  25449. precision.
  25450. (build_unary_op): Move excess precision outside operation.
  25451. (build_conditional_expr): Likewise.
  25452. (build_compound_expr): Likewise.
  25453. (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
  25454. (build_modify_expr): Handle excess precision in RHS.
  25455. (convert_for_assignment): Handle excess precision in converted
  25456. value.
  25457. (digest_init, output_init_element, process_init_element): Handle
  25458. excess precision in initializer.
  25459. (c_finish_return): Handle excess precision in return value.
  25460. (build_binary_op): Handle excess precision in operands and add
  25461. excess precision as needed for operation.
  25462. * common.opt (-fexcess-precision=): New option.
  25463. * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
  25464. * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
  25465. For standard excess precision, output explicit conversion to and
  25466. truncation from XFmode.
  25467. (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
  25468. *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
  25469. *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
  25470. define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
  25471. define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
  25472. floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
  25473. divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
  25474. *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
  25475. *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
  25476. define_splits, sqrt<mode>2): Disable where appropriate for
  25477. standard excess precision.
  25478. * convert.c (convert_to_real): Do not shorten arithmetic to type
  25479. for which excess precision would be used.
  25480. * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
  25481. * doc/invoke.texi (-fexcess-precision=): Document option.
  25482. (-mfpmath=): Correct index entry.
  25483. * flags.h (enum excess_precision, flag_excess_precision_cmdline,
  25484. flag_excess_precision): New.
  25485. * langhooks.c (lhd_post_options): Set
  25486. flag_excess_precision_cmdline.
  25487. * opts.c (common_handle_option): Handle -fexcess-precision=.
  25488. * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
  25489. init_excess_precision): New.
  25490. (lang_dependent_init_target): Call init_excess_precision.
  25491. * tree.c (excess_precision_type): New.
  25492. * tree.h (excess_precision_type): Declare.
  25493. 2009-03-30 Joseph Myers <joseph@codesourcery.com>
  25494. PR c/35235
  25495. * c-typeck.c (build_component_ref): Do not copy qualifiers from
  25496. non-lvalue to component.
  25497. 2009-03-29 Joseph Myers <joseph@codesourcery.com>
  25498. PR preprocessor/34695
  25499. * Makefile.in (c-opts.o): Depend on c-tree.h.
  25500. * c-common.c: Move down include of diagnostic.h.
  25501. (done_lexing, c_cpp_error): New.
  25502. * c-common.h (done_lexing): Declare.
  25503. * c-decl.c (c_write_global_declarations): Don't check cpp_errors
  25504. (parse_in).
  25505. * c-opts.c: Include c-tree.h.
  25506. (c_common_init_options): Set preprocessor error callback.
  25507. (c_common_handle_option): Do not set preprocessor
  25508. inhibit_warnings, warnings_are_errors, warn_system_headers,
  25509. pedantic_errors or inhibit_warnings flags.
  25510. (c_common_post_options): Do not check cpp_errors (parse_in).
  25511. (c_common_finish): Do not output dependencies if there were
  25512. errors. Do not check return value of cpp_finish.
  25513. * c-ppoutput.c (pp_file_change): Set input_location.
  25514. * c-tree.h (c_cpp_error): Declare.
  25515. * diagnostic.c (diagnostic_set_info_translated): Also initialize
  25516. override_column.
  25517. (diagnostic_build_prefix): Check override_column.
  25518. * diagnostic.h (diagnostic_info): Add override_column field.
  25519. (diagnostic_override_column): Define.
  25520. 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
  25521. * c-common.c (c_expand_expr, c_staticp): Remove.
  25522. * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
  25523. * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
  25524. COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
  25525. * c-gimplify.c (gimplify_compound_literal_expr,
  25526. optimize_compound_literals_in_ctor): Remove.
  25527. (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
  25528. * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
  25529. * c-semantics.c (emit_local_var): Remove.
  25530. * langhooks-def.h (lhd_expand_expr): Remove.
  25531. * langhooks.c (lhd_expand_expr): Remove.
  25532. * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
  25533. * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
  25534. handling from c-semantics.c; don't call into langhook.
  25535. (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
  25536. * gimplify.c (gimplify_compound_literal_expr,
  25537. optimize_compound_literals_in_ctor): Move from c-gimplify.c.
  25538. (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
  25539. (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
  25540. as was done in c-gimplify.c.
  25541. * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
  25542. * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
  25543. Move from c-common.h.
  25544. * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
  25545. * tree.c (staticp): Do not call langhook.
  25546. * langhooks.c (lhd_staticp): Delete.
  25547. * langhooks-def.h (lhd_staticp): Delete prototype.
  25548. (LANG_HOOKS_STATICP): Delete.
  25549. (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
  25550. * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
  25551. instead of DECL_STMTs.
  25552. 2009-03-29 Joseph Myers <joseph@codesourcery.com>
  25553. PR c/456
  25554. PR c/5675
  25555. PR c/19976
  25556. PR c/29116
  25557. PR c/31871
  25558. PR c/35198
  25559. * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
  25560. void_type_node.
  25561. (fold_call_expr): Return a NOP_EXPR from folding rather than the
  25562. contained expression.
  25563. * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
  25564. (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
  25565. conditional expressions for C.
  25566. (decl_constant_value_for_optimization): Move from
  25567. decl_constant_value_for_broken_optimization in c-typeck.c. Check
  25568. whether optimizing and that the expression is a VAR_DECL not of
  25569. array type instead of doing such checks in the caller. Do not
  25570. check pedantic. Call gcc_unreachable for C++.
  25571. * c-common.def (C_MAYBE_CONST_EXPR): New.
  25572. * c-common.h (c_fully_fold, c_save_expr,
  25573. decl_constant_value_for_optimization): New prototypes.
  25574. (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
  25575. C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
  25576. EXPR_INT_CONST_OPERANDS): Define.
  25577. * c-convert.c (convert): Strip nops from expression.
  25578. * c-decl.c (groktypename): Take extra parameters expr and
  25579. expr_const_operands. Update call to grokdeclarator.
  25580. (start_decl): Update call to grokdeclarator. Add statement for
  25581. expressions used in type of decl.
  25582. (grokparm): Update call to grokdeclarator.
  25583. (push_parm_decl): Update call to grokdeclarator.
  25584. (build_compound_literal): Add parameter non_const and build a
  25585. C_MAYBE_COSNT_EXPR if applicable.
  25586. (grokdeclarator): Take extra parameters expr and
  25587. expr_const_operands. Track expressions used in declaration
  25588. specifiers and declarators. Fold array sizes and track whether
  25589. they are constant expressions and whether they are integer
  25590. constant expressions.
  25591. (parser_xref_tag): Set expr and expr_const_operands fields in
  25592. return value.
  25593. (grokfield): Update call to grokdeclarator.
  25594. (start_function): Update call to grokdeclarator.
  25595. (build_null_declspecs): Set expr and expr_const_operands fields in
  25596. return value.
  25597. (declspecs_add_type): Handle expressions in typeof specifiers.
  25598. * c-parser.c (c_parser_declspecs): Set expr and
  25599. expr_const_operands fields for declaration specifiers.
  25600. (c_parser_enum_specifier): Likewise.
  25601. (c_parser_struct_or_union_specifier): Likewise.
  25602. (c_parser_typeof_specifier): Likewise. Update call to
  25603. groktypename. Fold expression as needed. Return expressions with
  25604. type instead of adding statements.
  25605. (c_parser_attributes): Update calls to c_parser_expr_list.
  25606. (c_parser_statement_after_labels): Fold expression before passing
  25607. to objc_build_throw_stmt.
  25608. (c_parser_condition): Fold expression.
  25609. (c_parser_asm_operands): Fold expression.
  25610. (c_parser_conditional_expression): Use c_save_expr. Update call
  25611. to build_conditional_expr.
  25612. (c_parser_alignof_expression): Update call to groktypename.
  25613. (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
  25614. original_code. Fold expression argument of va_arg. Create
  25615. C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
  25616. argument to va_arg. Update calls to groktypename. Fold array
  25617. index for offsetof. Verify that first argument to
  25618. __builtin_choose_expr has integer type.
  25619. (c_parser_postfix_expression_after_paren_type): Update calls to
  25620. groktypename and build_compound_literal. Handle expressions with
  25621. side effects in type name.
  25622. (c_parser_postfix_expression_after_primary): Update call to
  25623. c_parser_expr_list. Set original_code for calls to
  25624. __builtin_constant_p.
  25625. (c_parser_expr_list): Take extra parameter fold_p. Fold
  25626. expressions if requested.
  25627. (c_parser_objc_type_name): Update call to groktypename.
  25628. (c_parser_objc_synchronized_statement): Fold expression.
  25629. (c_parser_objc_receiver): Fold expression.
  25630. (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
  25631. (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
  25632. c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
  25633. * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
  25634. (struct c_typespec): Add elements expr and expr_const_operands.
  25635. (struct c_declspecs): Add elements expr and expr_const_operands.
  25636. (groktypename, build_conditional_expr, build_compound_literal):
  25637. Update prototypes.
  25638. (in_late_binary_op): Declare.
  25639. * c-typeck.c (note_integer_operands): New function.
  25640. (in_late_binary_op): New variable.
  25641. (decl_constant_value_for_broken_optimization): Move to c-common.c
  25642. and rename to decl_constant_value_for_optimization.
  25643. (default_function_array_conversion): Do not strip nops.
  25644. (default_conversion): Do not call
  25645. decl_constant_value_for_broken_optimization.
  25646. (build_array_ref): Do not fold result.
  25647. (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
  25648. result when operand is a VLA.
  25649. (c_expr_sizeof_type): Update call to groktypename. Handle
  25650. expressions included in type name. Use C_MAYBE_CONST_EXPR for
  25651. result when operand names a VLA type.
  25652. (build_function_call): Update call to build_compound_literal.
  25653. Only fold result for calls to __builtin_* functions. Strip
  25654. NOP_EXPR from INTEGER_CST returned from such functions. Fold
  25655. the function designator.
  25656. (convert_arguments): Fold arguments. Update call to
  25657. convert_for_assignment.
  25658. (build_unary_op): Handle increment and decrement of
  25659. C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
  25660. decrement earlier. Fold operand of increment and decrement.
  25661. Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
  25662. built for integer operand. Wrap returns that are INTEGER_CSTs
  25663. without being integer constant expressions or that have integer
  25664. constant operands without being INTEGER_CSTs.
  25665. (lvalue_p): Handle C_MAYBE_CONST_EXPR.
  25666. (build_conditional_expr): Add operand ifexp_bcp. Track whether
  25667. result is an integer constant expression or can be used in
  25668. unevaluated parts of one and avoid folding and wrap as
  25669. appropriate. Fold operands before possibly doing -Wsign-compare
  25670. warnings.
  25671. (build_compound_expr): Wrap result for C99 if operands can be used
  25672. in integer constant expressions.
  25673. (build_c_cast): Update call to digest_init. Do not ignore
  25674. overflow from casting floating-point constants to integers. Wrap
  25675. results that could be confused with integer constant expressions,
  25676. null pointer constants or floating-point constants.
  25677. (c_cast_expr): Update call to groktypename. Handle expressions
  25678. included in type name.
  25679. (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
  25680. lhs inside possible SAVE_EXPR. Fold RHS before assignment.
  25681. Update calls to convert_for_assignment.
  25682. (convert_for_assignment): Take new parameter
  25683. null_pointer_constant. Do not strip nops or call
  25684. decl_constant_value_for_broken_optimization. Set
  25685. in_late_binary_op for conversions to boolean.
  25686. (store_init_value): Update call to digest_init.
  25687. (digest_init): Take new parameter null_pointer_constant. Do not
  25688. call decl_constant_value_for_broken_optimization. pedwarn for
  25689. initializers not constant expressions. Update calls to
  25690. convert_for_assignment.
  25691. (constructor_nonconst): New.
  25692. (struct constructor_stack): Add nonconst element.
  25693. (really_start_incremental_init, push_init_level, pop_init_level):
  25694. Handle constructor_nonconst and nonconst element.
  25695. (set_init_index): Call constant_expression_warning for array
  25696. designators.
  25697. (output_init_element): Fold value. Set constructor_nonconst as
  25698. applicable. pedwarn for initializers not constant expressions.
  25699. Update call to digest_init. Call constant_expression_warning
  25700. where constant initializers are required.
  25701. (process_init_element): Use c_save_expr.
  25702. (c_finish_goto_ptr): Fold expression.
  25703. (c_finish_return): Fold return value. Update call to
  25704. convert_for_assignment.
  25705. (c_start_case): Fold switch expression.
  25706. (c_process_expr_stmt): Fold expression.
  25707. (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
  25708. ensure statement expression is not evaluated in constant expression.
  25709. (build_binary_op): Track whether results are integer constant
  25710. expressions or may occur in such, disable folding and wrap results
  25711. as applicable. Fold operands for -Wsign-compare warnings unless
  25712. in_late_binary_op.
  25713. (c_objc_common_truthvalue_conversion): Handle results folded to
  25714. integer constants that are not integer constant expressions.
  25715. * doc/extend.texi: Document when typeof operands are evaluated,
  25716. that condition of __builtin_choose_expr is an integer constant
  25717. expression, and more about use of __builtin_constant_p in
  25718. initializers.
  25719. 2009-03-29 Richard Guenther <rguenther@suse.de>
  25720. * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
  25721. propagate addresses of array references.
  25722. 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
  25723. * regmove.c (perhaps_ends_bb_p): Remove.
  25724. (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
  25725. from INSN and check that the main loop stays within that basic block.
  25726. (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
  25727. (regmove_forward_pass): Split out from regmove_optimize. Use
  25728. FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
  25729. (regmove_backward_pass): Split out from regmove_optimize. Use
  25730. FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
  25731. (regmove_optimize): Simplify.
  25732. 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
  25733. PR target/39545
  25734. * config/i386/i386.c (classify_argument): Ignore flexible array
  25735. member in struct and warn ABI change.
  25736. 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
  25737. * config/i386/i386-protos.h (ix86_agi_dependent): New.
  25738. * config/i386/i386.c (ix86_agi_dependent): Rewrite.
  25739. (ix86_adjust_cost): Updated.
  25740. 2009-03-29 Jan Hubicka <jh@suse.cz>
  25741. PR middle-end/28850
  25742. * tree-pass.h (pass_cleanup_eh): New function.
  25743. (remove_unreachable_regions): Break code handling RTL
  25744. to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
  25745. that can not be reached by runtime.
  25746. (can_be_reached_by_runtime): New function.
  25747. (label_to_region_map): New function.
  25748. (num_eh_regions): New function.
  25749. (rtl_remove_unreachable_regions): New function.
  25750. (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
  25751. (remove_eh_region): New function.
  25752. * except.h: Include sbitmap and vecprim.
  25753. (remove_eh_region, remove_unreachable_regions, label_to_region_map,
  25754. num_eh_regions): Declare.
  25755. * passes.c (init_optimization_passes): Schedule cleanup_eh.
  25756. * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
  25757. * tree-eh.c (tree_remove_unreachable_handlers): New function.
  25758. (tree_empty_eh_handler_p): New function.
  25759. (cleanup_empty_eh): New function.
  25760. (cleanup_eh): New function.
  25761. (pass_cleanup_eh): New function.
  25762. 2009-03-29 Jan Hubicka <jh@suse.cz>
  25763. * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
  25764. for removed regions.
  25765. 2009-03-29 Jan Hubicka <jh@suse.cz>
  25766. * except.c (dump_eh_tree): Dump all datastructures.
  25767. 2009-03-29 Jan Hubicka <jh@suse.cz>
  25768. * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
  25769. (duplicate_eh_regions_1): Likewise.
  25770. (duplicate_eh_regions): Likewise; cleanup code gorwing the region
  25771. vector; call EH verification.
  25772. (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
  25773. Be ready for region being removed.
  25774. 2009-03-29 Jan Hubicka <jh@suse.cz>
  25775. * bitmap.c (bitmap_last_set_bit): New function.
  25776. * bitmap.h (bitmap_last_set_bit): Declare.
  25777. 2009-03-29 David Ayers <ayers@fsfe.org>
  25778. PR objc/27377
  25779. * c-typeck.c (build_conditional_expr): Emit ObjC warnings
  25780. by calling objc_compare_types and surpress warnings about
  25781. incompatible C pointers that are compatible ObjC pointers.
  25782. 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
  25783. * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
  25784. call initialize_inline_failed.
  25785. (initialize_inline_failed): Move it from here ...
  25786. * cgraph.c (initialize_inline_failed): ... to here.
  25787. (cgraph_create_edge): Call initialize_inline_failed rather than
  25788. setting inline_failed directly.
  25789. 2009-03-29 Ben Elliston <bje@au.ibm.com>
  25790. PR target/32542
  25791. * sysv4.opt (msdata): Improve comment.
  25792. * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
  25793. * sysv4.h (SVR4_ASM_SPEC): Likewise.
  25794. 2009-03-29 Ben Elliston <bje@au.ibm.com>
  25795. PR target/30451
  25796. * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
  25797. load and store attributes.
  25798. 2009-03-29 Ben Elliston <bje@au.ibm.com>
  25799. * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
  25800. (ix86_init_builtins): Add built-in function __builtin_huge_valq.
  25801. (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
  25802. * doc/extend.texi (X86 Built-in Functions): Add index entries for
  25803. __builtin_infq and __builtin_huge_valq.
  25804. 2009-03-28 Anatoly Sokolov <aesok@post.ru>
  25805. * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
  25806. atmega8m1 devices.
  25807. * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
  25808. * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
  25809. 2009-03-28 Xinliang David Li <davidxl@google.com>
  25810. * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
  25811. (do_dbg_cnt): New function.
  25812. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25813. Merge from pretty-ipa:
  25814. 2009-03-27 Jan Hubicka <jh@suse.cz>
  25815. * cgraph.c (dump_cgraph_node): Add replace output flag by process.
  25816. * tree-pass.h (function_called_by_processed_nodes_p): Declare.
  25817. * passes.c (function_called_by_processed_nodes_p): New.
  25818. * ipa-pure-const.c (check_call): Fix handling of operands.
  25819. (analyze_function): Dump debug output for skipped bodies.
  25820. (local_pure_const): Use function_called_by_processed_nodes_p.
  25821. * dwarf2out.c (reference_to_unused): Use output.
  25822. * passes.c (do_per_function_toporder): Likewise.
  25823. 2008-11-12 Jan Hubicka <jh@suse.cz>
  25824. * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
  25825. * ipa-pure-const.c (funct_state_d): Add can throw field; make
  25826. state_set_in_source enum
  25827. (check_decl): Ignore memory tags; do not set fake looping flags;
  25828. dump diagnostics.
  25829. (check_operand, check_tree, check_rhs_var, check_lhs_var,
  25830. get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
  25831. (check_call, analyze_function): Rewrite.
  25832. (check_stmt): New.
  25833. (add_new_function): Update call of analyze_function.
  25834. (generate_summary): Add call of analyze_function.
  25835. (propagate): Propagate can_throw; handle state_set_in_source correctly.
  25836. (local_pure_const): New function.
  25837. (pass_local_pure_const): New pass.
  25838. * ipa-inline.c (inline_transform): Set after_inlining.
  25839. * tree-eh.c (stmt_can_throw_external): New.
  25840. * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
  25841. work with aliasing built.
  25842. * tree-flow.h (stmt_can_throw_external): New.
  25843. * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
  25844. and local pure/const pass in early and late optimization queue.
  25845. 2009-03-28 Martin Jambor <mjambor@suse.cz>
  25846. * fold-const.c (get_pointer_modulus_and_residue): New parameter
  25847. allow_func_align.
  25848. (fold_binary): Allow function decl aligment consideration is the
  25849. second argument is integer constant one.
  25850. * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
  25851. (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
  25852. with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
  25853. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25854. * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
  25855. * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
  25856. * function.h (rtl_data): Add nothrow flag.
  25857. * except.c (set_nothrow_function_flags): Use crtl->nothrow;
  25858. set DECL_NOTHROW for AVAILABLE functions.
  25859. 2009-03-28 Jakub Jelinek <jakub@redhat.com>
  25860. * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
  25861. following vector keyword has expansion starting with pixel or bool
  25862. keyword, expand vector to __vector and pixel or bool to __pixel or
  25863. __bool.
  25864. PR c++/39554
  25865. * opts.c (warning_disallowed_functions, warn_disallowed_functions,
  25866. warn_if_disallowed_function_p): Removed.
  25867. (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
  25868. * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
  25869. warning_if_disallowed_function_p.
  25870. * flags.h (warn_if_disallowed_function_p,
  25871. warn_disallowed_functions): Removed.
  25872. * common.opt (Wdisallowed-function-list=): Removed.
  25873. * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
  25874. 2009-03-28 Richard Guenther <rguenther@suse.de>
  25875. PR tree-optimization/38723
  25876. * tree-ssa-pre.c (compute_avail): Add all default definitions to
  25877. the entry block.
  25878. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25879. * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
  25880. test introduced by my previous patch.
  25881. 2009-03-28 Richard Guenther <rguenther@suse.de>
  25882. * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
  25883. the PHIs value undefined.
  25884. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25885. * tree-pass.h (pass_fixup_cfg): New pass.
  25886. * ipa-inline.c (inline_transform): Set
  25887. always_inline_functions_inlined/after_inlining.
  25888. * tree-optimize.c (execute_fixup_cfg): Do not set them here.
  25889. (pass_fixup_cfg): New pass.
  25890. * passes.c (init_optimization_passes): Add fixup_cfg.
  25891. 2009-03-28 Richard Guenther <rguenther@suse.de>
  25892. PR tree-optimization/38458
  25893. * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
  25894. argument use the arguments copy-of value.
  25895. 2009-03-28 Richard Guenther <rguenther@suse.de>
  25896. PR tree-optimization/38180
  25897. * tree-ssa-ccp.c (get_default_value): Simplify.
  25898. (likely_value): Likewise.
  25899. (surely_varying_stmt_p): Properly handle VOP case.
  25900. (ccp_initialize): Likewise.
  25901. (ccp_fold): Handle propagating through *&.
  25902. (fold_const_aggregate_ref): Also handle decls.
  25903. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25904. * cgraph.c (dump_cgraph_node): Add replace output flag by process.
  25905. * cgraph.h (cgraph_node): Likewise.
  25906. * cgraphunit.c (cgraph_process_new_functions): Set process flag.
  25907. (cgraph_reset_node): Use process flag.
  25908. (cgraph_mark_functions_to_output): Likewise.
  25909. (cgraph_expand_function): Likewise.
  25910. (cgraph_expand_all_functions): Likewise.
  25911. (cgraph_output_in_order): Likewise.
  25912. * dwarf2out.c (reference_to_unused): Likewise.
  25913. * passes.c do_per_function_toporder): Likewise.
  25914. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25915. Bring from lto-branch:
  25916. 2008-09-03 Doug Kwan <dougkwan@google.com>
  25917. * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
  25918. enums instead of reason strings.
  25919. * cgraph.c (cgraph_create_edge): Same.
  25920. (cgraph_inline_failed_string): New function.
  25921. * cgraph.h (cgraph_inline_failed_t): New enum type.
  25922. (cgraph_inline_failed_string): New prototype.
  25923. (struct cgraph_edge): Change type of INLINED_FAILED from constant
  25924. char pointer to cgraph_inline_failed_t.
  25925. (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
  25926. (cgraph_default_inline_p): Ditto.
  25927. * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
  25928. to cgraph_inline_failed_t pointer.
  25929. * cif-code.def: New file.
  25930. * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
  25931. reason string.
  25932. (cgraph_check_inline_limits): Change type of REASON to pointer to
  25933. cgraph_inline_failed_t. Replace reason strings with enums.
  25934. (cgraph_default_inline_p): Ditto.
  25935. (cgraph_recursive_inlining_p): Ditto.
  25936. (update_caller_keys): Change type of FAILED_REASON to
  25937. cgraph_inline_failed_t.
  25938. (cgraph_set_inline_failed): Change type of REASON to pointer to
  25939. cgraph_inline_failed_t. Call cgraph_inline_failed_string to
  25940. convert enums to strings for text output.
  25941. (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
  25942. to be of type cgraph_inline_failed_t. Replace reason strings with
  25943. enums. Call cgraph_inline_failed_string to covert enums
  25944. to strings for text output.
  25945. (cgraph_decide_inlining): Replace reason strings with enums.
  25946. (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
  25947. to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
  25948. for text output.
  25949. * tree-inline.c (expand_call_inline): Change type of REASON
  25950. to cgraph_inline_failed_t. Replace reason strings with enums.
  25951. Call cgraph_inline_failed_string for text output.
  25952. * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
  25953. (cgraph.o): Ditto.
  25954. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25955. * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
  25956. cgraph_clone_node): Remove master clone handling.
  25957. (cgraph_is_master_clone, cgraph_master_clone): Remove.
  25958. * cgraph.h (master_clone): Remove.
  25959. (cgraph_is_master_clone, cgraph_master_clone): Remove.
  25960. * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
  25961. (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
  25962. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25963. * cgraph.c (cgraph_function_body_availability): Functions declared
  25964. inline are always safe to assume that it is not going to be replaced.
  25965. 2009-03-28 Richard Guenther <rguenther@suse.de>
  25966. PR tree-optimization/38513
  25967. * tree-ssa-pre.c (eliminate): Remove redundant stores.
  25968. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
  25969. EXC_PTR_EXPR and FILTER_EXPR.
  25970. (get_ref_from_reference_ops): Likewise.
  25971. 2009-03-28 Richard Guenther <rguenther@suse.de>
  25972. PR tree-optimization/38968
  25973. * tree-vect-analyze.c (vect_compute_data_ref_alignment):
  25974. Use FLOOR_MOD_EXPR to compute misalignment.
  25975. 2009-03-28 Richard Guenther <rguenther@suse.de>
  25976. PR tree-optimization/37795
  25977. * tree.h (combine_comparisons): Declare.
  25978. * fold-const.c (combine_comparisons): Export.
  25979. * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
  25980. comparisons.
  25981. (ifcombine_iforif): Use combine_comparisons.
  25982. 2009-03-28 Jan Hubicka <jh@suse.cz>
  25983. * tree-eh.c (inlinable_call_p): New function.
  25984. (make_eh_edges): Use it.
  25985. (verify_eh_edges): Use it.
  25986. (stmt_can_throw_external, stmt_can_throw_internal): Use it.
  25987. * except.c (reachable_next_level): Add inlinable_function argument
  25988. (sjlj_find_directly_reachable_regions): Update.
  25989. (add_reachable_handler): Do not set saw_any_handlers.
  25990. (reachable_next_level): Handle MUST_NOT_THROW more curefully.
  25991. (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
  25992. Add new inlinable call parameter.
  25993. (can_throw_internal, can_throw_external): Update.
  25994. * except.h (can_throw_internal_1, can_throw_external_1,
  25995. foreach_reachable_handler): Update declaration.
  25996. 2009-03-28 Joseph Myers <joseph@codesourcery.com>
  25997. * config/arm/t-arm-coff, config/h8300/coff.h,
  25998. config/i386/i386-aout.h, config/i386/i386-coff.h,
  25999. config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
  26000. config/pdp11/2bsd.h, config/rs6000/aix41.h,
  26001. config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
  26002. fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
  26003. scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
  26004. sys-types.h: Remove.
  26005. * Makefile.in: Remove protoize and fixproto support and references
  26006. in comments.
  26007. (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
  26008. PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
  26009. Remove.
  26010. (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
  26011. (MOSTLYCLEANFILES): Remove protoize$(exeext) and
  26012. unprotoize$(exeext).
  26013. (rest.encap): Don't depend on $(STMP_FIXPROTO)
  26014. (.PHONY): Don't depend on proto.
  26015. (libgcc-support): Don't depend on $(STMP_FIXPROTO).
  26016. (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
  26017. protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
  26018. deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
  26019. build/gen-protos.o, build/scan.o, xsys-protos.h,
  26020. build/fix-header$(build_exeext), build/fix-header.o,
  26021. build/scan-decls.o, fixhdr.ready, stmp-fixproto,
  26022. stmp-install-fixproto): Remove.
  26023. (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
  26024. SYSCALLS.c or fixproto files.
  26025. (install-common): Don't install protoize.
  26026. (install-headers-tar, install-headers-cpio, install-headers-cp):
  26027. Don't depend on $(STMP_FIXPROTO).
  26028. (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
  26029. install fixproto files or write out fixproto settings.
  26030. (uninstall): Don't uninstall protoize.
  26031. * config.gcc (use_fixproto): Remove.
  26032. (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
  26033. i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
  26034. rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
  26035. * config/m32r/t-linux (STMP_FIXPROTO): Remove.
  26036. * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
  26037. * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
  26038. * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
  26039. * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
  26040. * config/t-svr4 (FIXPROTO_DEFINES): Remove.
  26041. * config/t-vxworks (STMP_FIXPROTO): Remove.
  26042. * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
  26043. STMP_FIXPROTO): Remove.
  26044. * config.in, configure: Regenerate.
  26045. * crtstuff.c (gid_t, uid_t): Don't undefine.
  26046. * doc/install.texi: Change m68k-coff to m68k-elf in example.
  26047. (arm-*-coff, arm-*-aout: Remove target entries.
  26048. (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
  26049. Remove mention of AIX 4.1.
  26050. (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
  26051. * doc/invoke.texi (Running Protoize): Remove.
  26052. * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
  26053. (Protoize Caveats): Remove.
  26054. * tsystem.h: Update comments on headers assumed to exist.
  26055. 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
  26056. * genautomata.c: Add a new year to the copyright. Add a new
  26057. reference.
  26058. (struct insn_reserv_decl): Add comments for member bypass_list.
  26059. (find_bypass): Remove.
  26060. (insert_bypass): New.
  26061. (process_decls): Use insert_bypass.
  26062. (output_internal_insn_latency_func): Output all bypasses with the
  26063. same input insn in one switch case.
  26064. * rtl.def (define_bypass): Describe bypass choice.
  26065. * doc/md.texi (define_bypass): Ditto.
  26066. 2009-03-27 Richard Guenther <rguenther@suse.de>
  26067. * gimplify.c (mark_addressable): Export.
  26068. * tree-flow.h (mark_addressable): Declare.
  26069. * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
  26070. * tree-ssa.c (verify_phi_args): Verify that address taken
  26071. variables have TREE_ADDRESSABLE set.
  26072. 2009-03-27 Richard Guenther <rguenther@suse.de>
  26073. * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
  26074. (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
  26075. Do not mark decls TREE_ADDRESSABLE.
  26076. (build_fold_addr_expr): Adjust.
  26077. (fold_addr_expr): Remove.
  26078. (fold_unary): Use build_fold_addr_expr.
  26079. (fold_comparison): Likewise.
  26080. (split_address_to_core_and_offset): Likewise.
  26081. * coverage.c (tree_coverage_counter_addr): Mark the array decl
  26082. TREE_ADDRESSABLE.
  26083. * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
  26084. (gimplify_modify_expr_to_memcpy): Mark source and destination
  26085. addressable.
  26086. * omp-low.c (create_omp_child_function): Mark the object decl
  26087. TREE_ADDRESSABLE.
  26088. (lower_rec_input_clauses): Mark the var we take the address of
  26089. TREE_ADDRESSABLE.
  26090. (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
  26091. 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
  26092. PR middle-end/39315
  26093. * cfgexpand.c (expand_one_stack_var_at): Change alignment
  26094. limit to MAX_SUPPORTED_STACK_ALIGNMENT.
  26095. 2009-03-27 Richard Guenther <rguenther@suse.de>
  26096. PR tree-optimization/39120
  26097. * tree-ssa-structalias.c (handle_rhs_call): Fill out return
  26098. constraints.
  26099. (handle_lhs_call): Process return constraints. Add escape
  26100. constraints if necessary.
  26101. (handle_const_call): Fill out return constraints. Make nested
  26102. case more precise. Avoid consttmp if possible.
  26103. (handle_pure_call): Fill out return constraints. Avoid
  26104. callused if possible.
  26105. (find_func_aliases): Simplify call handling.
  26106. 2009-03-27 Richard Guenther <rguenther@suse.de>
  26107. PR tree-optimization/39120
  26108. * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
  26109. as a representative.
  26110. (solve_graph): Do propagate CALLUSED.
  26111. (handle_pure_call): Use a scalar constraint from CALLUSED for
  26112. the return value.
  26113. (find_what_p_points_to): CALLUSED shall not appear in poins-to
  26114. solutions.
  26115. 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
  26116. PR c/39323
  26117. * c-common.c (handle_aligned_attribute): Properly check alignment
  26118. overflow. Use (1U << i) instead of (1 << i).
  26119. * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
  26120. * expr.h (get_mem_align_offset): Updated.
  26121. * tree.h (tree_decl_common): Change align to "unsigned int" and
  26122. move it before pointer_alias_set.
  26123. 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
  26124. Jakub Jelinek <jakub@redhat.com>
  26125. PR target/38034
  26126. * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
  26127. gr_register_operand with gr_reg_or_0_operand.
  26128. (cmpxchg_rel_di): Likewise.
  26129. (sync_lock_test_and_set<mode>): Likewise.
  26130. 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
  26131. * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
  26132. (true_regnum): Likewise.
  26133. * rtlanal.c (subreg_info): Moved to ...
  26134. * rtl.h (subreg_info): Here. New.
  26135. (subreg_get_info): New.
  26136. * rtlanal.c (subreg_get_info): Make it extern.
  26137. 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
  26138. PR target/39472
  26139. * config/i386/i386.c (ix86_abi): New.
  26140. (override_options): Handle -mabi=.
  26141. (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
  26142. (ix86_call_abi_override): Likewise.
  26143. (init_cumulative_args): Likewise.
  26144. (function_arg_advance): Likewise.
  26145. (function_arg_64): Likewise.
  26146. (function_arg): Likewise.
  26147. (ix86_pass_by_reference): Likewise.
  26148. (ix86_function_value_regno_p): Likewise.
  26149. (ix86_build_builtin_va_list_abi): Likewise.
  26150. (setup_incoming_varargs_64): Likewise.
  26151. (is_va_list_char_pointer): Likewise.
  26152. (ix86_init_machine_status): Likewise.
  26153. (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
  26154. (ix86_function_type_abi): Return enum calling_abi. Rewrite
  26155. for 64bit. Replace DEFAULT_ABI with ix86_abi.
  26156. (ix86_function_abi): Make it static and return enum calling_abi.
  26157. (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
  26158. with ix86_abi.
  26159. (ix86_fn_abi_va_list): Updated.
  26160. * config/i386/i386.h (ix86_abi): New.
  26161. (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
  26162. (CONDITIONAL_REGISTER_USAGE): Likewise.
  26163. (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
  26164. (machine_function): Likewise.
  26165. * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
  26166. with ix86_abi.
  26167. * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
  26168. (STACK_BOUNDARY): Likewise.
  26169. * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
  26170. * config/i386/i386.opt (mabi=): New.
  26171. * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
  26172. return enum calling_abi.
  26173. (ix86_function_type_abi): Likewise.
  26174. (ix86_function_abi): Removed.
  26175. * doc/invoke.texi: Document -mabi= option for x86.
  26176. 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  26177. * builtins.c (real_dconstp): Delete.
  26178. (fold_builtin_logarithm): Remove inaccurate log(e) special case.
  26179. 2009-03-27 Dodji Seketeli <dodji@redhat.com>
  26180. Jakub Jelinek <jakub@redhat.com>
  26181. PR debug/37959
  26182. * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
  26183. (gen_subprogram_die): When a function is explicit, generate the
  26184. DW_AT_explicit attribute.
  26185. * langhooks.h (struct lang_hooks_for_decls): Add
  26186. function_decl_explicit_p langhook.
  26187. * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
  26188. (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
  26189. 2009-03-27 Jakub Jelinek <jakub@redhat.com>
  26190. * builtins.c (fold_builtin_memory_op): Optimize memmove
  26191. into memcpy if we can prove source and destination don't overlap.
  26192. * tree-inline.c: Include gt-tree-inline.h.
  26193. (clone_fn_id_num): New variable.
  26194. (clone_function_name): New function.
  26195. (tree_function_versioning): Use it.
  26196. * Makefile.in (GTFILES): Add tree-inline.c.
  26197. 2009-03-27 Mark Mitchell <mark@codesourcery.com>
  26198. * BASE-VER: Change to 4.5.0.
  26199. 2009-03-27 Xinliang David Li <davidxl@google.com>
  26200. PR tree-optimization/39557
  26201. * tree-ssa.c (warn_uninitialized_vars): free postdom info.
  26202. 2009-03-27 Xinliang David Li <davidxl@google.com>
  26203. PR tree-optimization/39548
  26204. * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
  26205. candidate check.
  26206. 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
  26207. * c-common.c (pointer_int_sum): Use %wd on return from
  26208. tree_low_cst.
  26209. 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
  26210. * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
  26211. on return from tree_low_cst.
  26212. 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
  26213. PR c++/36799
  26214. * ginclude/stdarg.h (va_copy): Define also for
  26215. __GXX_EXPERIMENTAL_CXX0X__.
  26216. 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
  26217. PR c++/35652
  26218. * builtins.h (c_strlen): Do not warn here.
  26219. * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
  26220. * c-common.c (pointer_int_sum): Take an explicit location.
  26221. Warn about offsets out of bounds.
  26222. * c-common.h (pointer_int_sum): Adjust declaration.
  26223. 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  26224. * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
  26225. markup glitch.
  26226. 2009-03-26 Jakub Jelinek <jakub@redhat.com>
  26227. PR c++/39554
  26228. * opts.c (warn_if_disallowed_function_p): Don't assume
  26229. get_callee_fndecl must return non-NULL.
  26230. 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
  26231. PR rtl-optimization/39522
  26232. * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
  26233. when reg_reloaded_valid is set.
  26234. 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  26235. * config/spu/divv2df3.c: New file.
  26236. * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
  26237. (DPBIT_FUNCS): Filter out _div_df.
  26238. 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
  26239. * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
  26240. a jump insn, count that jump in the distance to the loop start.
  26241. 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
  26242. PR target/39523
  26243. * config/sh/sh.c (calc_live_regs): Fix condition for global
  26244. registers except PIC_OFFSET_TABLE_REGNUM.
  26245. 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
  26246. PR/39518
  26247. * doc/invoke.texi (-mconsole): New.
  26248. (-mcygwin): New.
  26249. (-mno-cygwin): New.
  26250. (-mdll): New.
  26251. (-mnop-fun-dllimport): New.
  26252. (-mthread): New.
  26253. (-mwin32): New.
  26254. (-mwindows): New.
  26255. (sub section "i386 and x86-64 Windows Options"): New.
  26256. 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
  26257. * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
  26258. * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
  26259. 2009-03-25 Richard Guenther <rguenther@suse.de>
  26260. PR middle-end/39497
  26261. * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
  26262. of -Wno-error.
  26263. 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
  26264. * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
  26265. neither of haifa/selective schedulers are working.
  26266. 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  26267. * doc/invoke.texi (Debugging Options): Fix description of
  26268. -fno-merge-debug-strings.
  26269. 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
  26270. * config/cris/libgcc.ver: New version-script.
  26271. * config/cris/t-linux (SHLIB_MAPFILES): Use it.
  26272. * configure.ac <GAS features, nop mnemonic>: Add pattern
  26273. crisv32-*-* for "nop".
  26274. <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
  26275. * configure: Regenerate.
  26276. 2009-03-24 Ira Rosen <irar@il.ibm.com>
  26277. PR tree-optimization/39529
  26278. * tree-vect-transform.c (vect_create_data_ref_ptr): Call
  26279. mark_sym_for_renaming for the tag copied to the new vector
  26280. pointer.
  26281. 2009-03-24 Arthur Loiret <aloiret@debian.org>
  26282. * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
  26283. * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
  26284. EXTRA_SPEC_FUNCTIONS.
  26285. (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
  26286. * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
  26287. * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
  26288. -march and -mtune options.
  26289. 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
  26290. * config/m68k/t-rtems: Add m5329 multilib.
  26291. 2009-03-24 Dodji Seketeli <dodji@redhat.com>
  26292. Jakub Jelinek <jakub@redhat.com>
  26293. PR debug/39524
  26294. * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
  26295. nodes.
  26296. 2009-03-23 Jakub Jelinek <jakub@redhat.com>
  26297. PR c/39495
  26298. * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
  26299. instead of c_parser_expression_conv, if original_code isn't one of the
  26300. 4 allowed comparison codes, fail.
  26301. 2009-03-23 Richard Guenther <rguenther@suse.de>
  26302. * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
  26303. * tree.h (struct tree_type): Likewise.
  26304. * reload.h (struct insn_chain): Likewise.
  26305. * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
  26306. * function.h (struct function): Likewise.
  26307. * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
  26308. 2009-03-23 Jakub Jelinek <jakub@redhat.com>
  26309. PR tree-optimization/39516
  26310. * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
  26311. 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
  26312. * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
  26313. should be set true if BITS_PER_WORD of target is bigger than 32
  26314. 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
  26315. * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
  26316. Translate -B-options to -rpath-link. Correct existing
  26317. rpath-link and conditionalize on !nostdlib.
  26318. 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  26319. * doc/extend.texi (Function Attributes, Variable Attributes):
  26320. Fix typos.
  26321. * doc/invoke.texi (Debugging Options, Optimize Options)
  26322. (i386 and x86-64 Options, MCore Options): Likewise.
  26323. 2009-03-20 Jakub Jelinek <jakub@redhat.com>
  26324. PR debug/37890
  26325. * dwarf2out.c (gen_namespace_die): Add context_die argument and use
  26326. it for block local namespace aliases.
  26327. (gen_decl_die): Pass context_die to gen_namespace_die.
  26328. 2009-03-19 Jakub Jelinek <jakub@redhat.com>
  26329. PR c/39495
  26330. * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
  26331. minimum or maximum value.
  26332. 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
  26333. * reginfo.c (globalize_reg): Recompute derived reg sets.
  26334. 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
  26335. PR target/39063
  26336. * libgcc2.c (mprotect): Do not use signed arguments for
  26337. VirtualProtect, use DWORD arguments. Also fix the 'may
  26338. be used uninitialized' warning for the np variable.
  26339. 2009-03-19 Jakub Jelinek <jakub@redhat.com>
  26340. PR target/39496
  26341. * config/i386/i386.c (ix86_function_regparm): Don't optimize local
  26342. functions using regparm calling conventions when not optimizing.
  26343. (ix86_function_sseregparm): Similarly for sseregparm calling
  26344. conventions.
  26345. 2009-03-19 Li Feng <nemokingdom@gmail.com>
  26346. PR middle-end/39500
  26347. * tree-data-ref.c (analyze_subscript_affine_affine): There is no
  26348. dependence if the first conflict is after niter iterations.
  26349. 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
  26350. PR middle-end/38609
  26351. * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
  26352. functions with dynamic stack-pointer adjustments.
  26353. 2009-03-19 Ben Elliston <bje@au.ibm.com>
  26354. * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
  26355. option; change to -msdata=data.
  26356. 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  26357. * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
  26358. and -fopenmp.
  26359. 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
  26360. PR target/35180
  26361. * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
  26362. 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
  26363. * doc/invoke.texi (Code Gen Options): Expand discussion of
  26364. -fno-common.
  26365. 2009-03-18 Jakub Jelinek <jakub@redhat.com>
  26366. * dse.c (struct group_info): Reorder fields for 64-bit hosts.
  26367. * matrix-reorg.c (struct matrix_info): Likewise.
  26368. * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
  26369. * rtl.h (struct mem_attrs): Likewise.
  26370. * df.h (struct df): Likewise.
  26371. * tree-data-ref.h (struct data_dependence_relation): Likewise.
  26372. * ira-int.h (struct ira_allocno): Likewise.
  26373. * df-scan.c (struct df_collection_rec): Likewise.
  26374. * ira.c (struct equivalence): Likewise.
  26375. * function.c (struct temp_slot): Likewise.
  26376. * cfgloop.h (struct loop): Likewise.
  26377. PR debug/39485
  26378. * function.c (use_register_for_decl): When not optimizing, disregard
  26379. register keyword for variables with types containing methods.
  26380. 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
  26381. PR middle-end/39447
  26382. * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
  26383. (is_simple_operand): Call contains_component_ref_p before calling data
  26384. reference analysis that would fail on COMPONENT_REFs.
  26385. * tree-vrp.c (search_for_addr_array): Fix formatting.
  26386. 2009-03-18 Richard Guenther <rguenther@suse.de>
  26387. * tree-vect-transform.c (vect_loop_versioning): Fold the
  26388. generated comparisons.
  26389. * tree-vectorizer.c (set_prologue_iterations): Likewise.
  26390. (slpeel_tree_peel_loop_to_edge): Likewise.
  26391. 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  26392. PR middle-end/37805
  26393. * opts.c (print_specific_help): In addition to `undocumented',
  26394. accept `separate' and `joined' flags if passed alone. Describe
  26395. output by the first matched one of those.
  26396. (common_handle_option): Skip over empty strings.
  26397. * gcc.c (display_help): Fix help string for `--help='.
  26398. * doc/invoke.texi (Option Summary, Overall Options): With
  26399. `--help=', classes and qualifiers can both be repeated, but
  26400. only the latter can be negated. One should not pass only
  26401. negated qualifiers. Fix markup and examples.
  26402. Revert
  26403. 2008-10-14 Jakub Jelinek <jakub@redhat.com>
  26404. PR middle-end/37805
  26405. * opts.c (common_handle_option): Don't ICE on -fhelp=joined
  26406. and -fhelp=separate.
  26407. 2009-03-17 Jing Yu <jingyu@google.com>
  26408. PR middle-end/39378
  26409. * function.h (struct rtl_data): Move is_thunk from here...
  26410. (struct function): ...to here.
  26411. * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
  26412. * varasm.c (assemble_start_function): Change is_thunk from crtl to
  26413. cfun.
  26414. * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
  26415. cfun.
  26416. (alpha_does_function_need_gp, alpha_start_function): Likewise.
  26417. (alpha_output_function_end_prologue): Likewise.
  26418. (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
  26419. * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
  26420. (rs6000_output_function_epilogue): Likewise.
  26421. * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
  26422. 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
  26423. PR target/39482
  26424. * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
  26425. from different units in a single alternative.
  26426. (*truncdfsf_i387): Ditto.
  26427. (*truncxfsf2_mixed): Ditto.
  26428. (*truncxfdf2_mixed): Ditto.
  26429. 2009-03-17 Jakub Jelinek <jakub@redhat.com>
  26430. * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
  26431. non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
  26432. PR debug/39474
  26433. * tree-ssa-live.c (remove_unused_locals): Don't remove local
  26434. unused non-artificial variables when not optimizing.
  26435. PR debug/39471
  26436. * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
  26437. DW_TAG_imported_module even if decl is IMPORTED_DECL with
  26438. NAMESPACE_DECL in its DECL_INITIAL.
  26439. PR middle-end/39443
  26440. * optabs.c (set_user_assembler_libfunc): New function.
  26441. * expr.h (set_user_assembler_libfunc): New prototype.
  26442. * c-common.c: Include libfuncs.h.
  26443. (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
  26444. for memcmp, memset, memcpy, memmove and abort.
  26445. * Makefile.in (c-common.o): Depend on libfuncs.h.
  26446. PR debug/39412
  26447. * dwarf2out.c (gen_inlined_enumeration_type_die,
  26448. gen_inlined_structure_type_die, gen_inlined_union_type_die,
  26449. gen_tagged_type_instantiation_die): Removed.
  26450. (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
  26451. do nothing.
  26452. 2009-03-17 Janis Johnson <janis187@us.ibm.com>
  26453. PR testsuite/38526
  26454. * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
  26455. its use.
  26456. (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
  26457. (check-parallel-%): Ditto.
  26458. (check-consistency): Ditto.
  26459. 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
  26460. * ipa-struct-reorg.c (create_general_new_stmt): Initialize
  26461. local variable rhs by NULL_TREE.
  26462. 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
  26463. PR target/39477
  26464. * doc/extend.texi: Correct register behavior for regparm on Intel 386.
  26465. 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
  26466. PR target/39476
  26467. * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
  26468. 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
  26469. PR target/39473
  26470. * config/i386/i386.c (ix86_expand_call): Check extra clobbers
  26471. for ms->sysv ABI calls only in 64bit mode.
  26472. * config/i386/i386.md (untyped_call): Support 32bit.
  26473. 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
  26474. * doc/extend.texi: Replace x86_65 with x86_64.
  26475. 2009-03-16 Jakub Jelinek <jakub@redhat.com>
  26476. PR tree-optimization/39455
  26477. * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
  26478. mismatches for POINTER_TYPE_P (type).
  26479. (number_of_iterations_le): Likewise.
  26480. 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
  26481. * config/picochip/picochip.c: Removed profiling support.
  26482. * config/picochip/picochip.md: Removed profiling instruction.
  26483. * config/picochip/picochip.h: Removed profiling builtin.
  26484. 2009-03-16 Joseph Myers <joseph@codesourcery.com>
  26485. * doc/install.texi (--with-host-libstdcxx): Document.
  26486. 2009-03-14 Anatoly Sokolov <aesok@post.ru>
  26487. PR target/34299
  26488. * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
  26489. generate a warning if the function name does not begin with
  26490. "__vector" and the function has either the 'signal' or 'interrupt'
  26491. attribute, from here to ...
  26492. (avr_declare_function_name): ...here. New function.
  26493. * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
  26494. * config/avr/avr-protos.h (avr_declare_function_name): Declare.
  26495. 2009-03-14 Jakub Jelinek <jakub@redhat.com>
  26496. PR bootstrap/39454
  26497. * cse.c (fold_rtx): Don't modify original const_arg1 when
  26498. canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
  26499. separate variable instead.
  26500. * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
  26501. from out of range shift counts.
  26502. (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
  26503. 2009-03-13 Catherine Moore <clm@codesourcery.com>
  26504. * config/i386/x-mingw32 (host-mingw32.o): Replace
  26505. diagnostic.h with $(DIAGNOSTIC_H).
  26506. 2009-03-12 Jakub Jelinek <jakub@redhat.com>
  26507. PR target/39431
  26508. * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
  26509. predicate.
  26510. * config/i386/sync.md (sync_compare_and_swap<mode>,
  26511. sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
  26512. if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
  26513. into a register.
  26514. (sync_double_compare_and_swapdi_pic,
  26515. sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
  26516. cmpxchg8b_pic_memory_operand instead of just memory_operand.
  26517. 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
  26518. PR target/39445
  26519. * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
  26520. 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
  26521. PR target/39327
  26522. * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
  26523. (avx_addsubv4df3): Likewise.
  26524. (*avx_addsubv4sf3): Likewise.
  26525. (sse3_addsubv4sf3): Likewise.
  26526. 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
  26527. PR target/38824
  26528. * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
  26529. 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
  26530. PR debug/39432
  26531. * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
  26532. * ira-conflicts.c (ira_build_conflicts): Prohibit call used
  26533. registers for allocnos created from user-defined variables.
  26534. 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  26535. PR target/39181
  26536. * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
  26537. of non-integer mode as well.
  26538. 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
  26539. * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
  26540. for functions for which the parameter types are unknown.
  26541. 2009-03-11 Jakub Jelinek <jakub@redhat.com>
  26542. PR target/39137
  26543. * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
  26544. * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
  26545. * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
  26546. * config/i386/i386.c (ix86_local_alignment): For
  26547. -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
  26548. long long variables on the stack to avoid dynamic realignment.
  26549. Allow the first argument to be a decl rather than type.
  26550. * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
  26551. 2009-03-11 Nick Clifton <nickc@redhat.com>
  26552. PR target/5362
  26553. * config/mcore/mcore.opt: Remove deprecated m4align and m8align
  26554. options.
  26555. Add description to mno-lsim option.
  26556. * config/mcore/mcore.h: Remove comment about deprecated m4align
  26557. option.
  26558. (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
  26559. * doc/invoke.texi: Add description of mno-lsim and
  26560. mstack-increment options.
  26561. * config/fr30/fr30.opt: Document the -mno-lsim option.
  26562. * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
  26563. and -mno-lsim options.
  26564. 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  26565. * fold-const.c (fold_comparison): Only call fold_inf_compare
  26566. if the mode supports infinities.
  26567. 2009-03-11 Jason Merrill <jason@redhat.com>
  26568. PR debug/39086
  26569. * tree-nrv.c (tree_nrv): Don't do this optimization if the front
  26570. end already did. Notice GIMPLE_CALL modifications of the result.
  26571. Don't copy debug information from an ignored decl or a decl from
  26572. another function.
  26573. 2009-03-10 Richard Guenther <rguenther@suse.de>
  26574. Nathan Froyd <froydnj@codesourcery.com>
  26575. PR middle-end/37850
  26576. * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
  26577. (__divMODE3): Likewise.
  26578. 2009-03-09 Jakub Jelinek <jakub@redhat.com>
  26579. PR tree-optimization/39394
  26580. * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
  26581. DECL_SIZE_UNIT of variable length FIELD_DECLs.
  26582. 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  26583. * recog.c (verfiy_changes): Disallow renaming of hard regs in
  26584. inline asms for register asm ("") declarations.
  26585. 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
  26586. * fold-const.c (fold_unary): Fix comment.
  26587. 2009-03-07 Jan Hubicka <jh@suse.cz>
  26588. PR target/39361
  26589. * tree-inline.c (setup_one_parameter): Do replacement of const
  26590. argument by constant in SSA form.
  26591. 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  26592. PR middle-end/38028
  26593. * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
  26594. determine alignment passed to assign_stack_local.
  26595. (assign_parms_unsplit_complex): Likewise.
  26596. * except.c (sjlj_build_landing_pads): Likewise.
  26597. 2009-03-06 Jakub Jelinek <jakub@redhat.com>
  26598. PR middle-end/39360
  26599. * tree-flow.h (add_referenced_var): Return bool instead of void.
  26600. * tree-dfa.c (add_referenced_var): Return result of
  26601. referenced_var_check_and_insert call.
  26602. * tree-inline.c (expand_call_inline): Call add_referenced_var instead
  26603. of referenced_var_check_and_insert.
  26604. PR debug/39372
  26605. * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
  26606. (gen_variable_die): Emit DW_AT_location on abstract static variable's
  26607. DIE, don't emit it if abstract origin already has it.
  26608. * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
  26609. BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
  26610. 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
  26611. * genpreds.c (needs_variable): Fix parentheses at variable name
  26612. detection.
  26613. (write_tm_constrs_h): Indent generated code.
  26614. 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  26615. * doc/extend.texi (Function Attributes): Add documentation
  26616. for isr attributes.
  26617. 2009-03-06 Jakub Jelinek <jakub@redhat.com>
  26618. PR debug/39387
  26619. * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
  26620. take locus from its DECL_SOURCE_LOCATION instead of input_location.
  26621. 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
  26622. * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
  26623. the loop as bad.
  26624. 2009-03-05 Jakub Jelinek <jakub@redhat.com>
  26625. PR debug/39379
  26626. * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
  26627. with blocks containing IMPORTED_DECLs in BLOCK_VARS.
  26628. 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
  26629. * config/i386/i386.md (R8_REG, R9_REG): New constants.
  26630. * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
  26631. constants instead of magic numbers.
  26632. (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
  26633. (QI_REG_P): Ditto.
  26634. * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
  26635. (x86_64_ms_abi_int_parameter_registers): Ditto.
  26636. (x86_64_int_return_registers): Ditto.
  26637. (ix86_maybe_switch_abi): Ditto.
  26638. (ix86_expand_call): Ditto for clobbered_registers array.
  26639. (ix86_hard_regno_mode_ok): Ditto.
  26640. (x86_extended_QIreg_mentioned_p): Ditto.
  26641. 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
  26642. PR tree-optimization/39349
  26643. * cse.c (cse_insn): Fix loop to stop at VOIDmode.
  26644. * combine.c (gen_lowpart_for_combine): Use omode when generating
  26645. clobber.
  26646. 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
  26647. PR rtl-optimization/39235
  26648. * loop-iv.c (get_simple_loop_desc): Use XCNEW.
  26649. 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
  26650. * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
  26651. 2009-03-04 Richard Guenther <rguenther@suse.de>
  26652. PR tree-optimization/39362
  26653. * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
  26654. that occur in abnormal PHIs should be varying.
  26655. 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
  26656. * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
  26657. Extend comments.
  26658. (simple_iv): Take loop as an argument instead of statement.
  26659. * tree-scalar-evolution.h (simple_iv): Declaration changed.
  26660. * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
  26661. to simple_iv.
  26662. * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
  26663. Ditto.
  26664. * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
  26665. * matrix-reorg.c (analyze_transpose): Ditto.
  26666. * tree-data-ref.c (dr_analyze_innermost): Ditto.
  26667. * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
  26668. * tree-predcom.c (ref_at_iteration): Ditto.
  26669. * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
  26670. 2009-03-04 Richard Guenther <rguenther@suse.de>
  26671. PR tree-optimization/39358
  26672. * tree-ssa-structalias.c (do_sd_constraint): Fix check for
  26673. escaped_id and callused_id.
  26674. (solve_graph): Likewise.
  26675. 2009-03-04 Richard Guenther <rguenther@suse.de>
  26676. PR tree-optimization/39339
  26677. * tree-sra.c (try_instantiate_multiple_fields): Make it
  26678. no longer ICE on the above.
  26679. 2009-03-03 Joseph Myers <joseph@codesourcery.com>
  26680. * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
  26681. that fits within Pmode.
  26682. 2009-03-03 Steve Ellcey <sje@cup.hp.com>
  26683. PR middle-end/10109
  26684. * tm.texi (LIBCALL_VALUE): Update description.
  26685. 2009-03-03 Steve Ellcey <sje@cup.hp.com>
  26686. PR middle-end/34443
  26687. * doc/extend.texi (section): Update description.
  26688. 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
  26689. PR middle-end/39345
  26690. * tree-inline.c (remapped_type): New.
  26691. (can_be_nonlocal): Call remapped_type instead of remap_type.
  26692. 2009-03-03 Jakub Jelinek <jakub@redhat.com>
  26693. PR fortran/39354
  26694. * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
  26695. TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
  26696. 2009-03-03 Richard Guenther <rguenther@suse.de>
  26697. PR middle-end/39272
  26698. * tree.c (tree_nonartificial_location): New function.
  26699. * tree.h (tree_nonartificial_location): Declare.
  26700. * builtins.c (expand_builtin_memory_chk): Provide location
  26701. of the call location for artificial function pieces.
  26702. (maybe_emit_chk_warning): Likewise.
  26703. (maybe_emit_sprintf_chk_warning): Likewise.
  26704. (maybe_emit_free_warning): Likewise.
  26705. * expr.c (expand_expr_real_1): Likewise.
  26706. 2009-03-03 Jakub Jelinek <jakub@redhat.com>
  26707. PR tree-optimization/39343
  26708. * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
  26709. COMPONENT_REF t has ARRAY_TYPE.
  26710. 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
  26711. PR middle-end/39335
  26712. * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
  26713. when the type precision of the induction variable should be
  26714. larger than the type precision of nit.
  26715. (gen_parallel_loop): Update use of canonicalize_loop_ivs.
  26716. * graphite.c (graphite_loop_normal_form): Same.
  26717. * tree-flow.h (canonicalize_loop_ivs): Update declaration.
  26718. 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
  26719. * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
  26720. (*call_1_rex64_ms_sysv): Use named constants instead of magic
  26721. numbers to describe clobbered registers.
  26722. (*call_value_0_rex64_ms_sysv): Ditto.
  26723. * config/i386/mmx.md (mmx_emms): Ditto.
  26724. (mmx_femms): Ditto.
  26725. 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
  26726. * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
  26727. of ABI_64.
  26728. 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  26729. * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
  26730. (spu_section_type_flags): New function.
  26731. 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
  26732. * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
  26733. reg_class_contents of FLOAT_REGS into a temporary.
  26734. 2009-03-02 Richard Guenther <rguenther@suse.de>
  26735. Ira Rosen <irar@il.ibm.com>
  26736. PR tree-optimization/39318
  26737. * tree-vect-transform.c (vectorizable_call): Transfer the EH region
  26738. information to the vectorized statement.
  26739. 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
  26740. * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
  26741. variable. Use defined names instead of magic constants for REX SSE
  26742. registers.
  26743. 2009-03-01 Richard Guenther <rguenther@suse.de>
  26744. PR tree-optimization/39331
  26745. * omp-low.c (lower_send_shared_vars): Do not receive new
  26746. values for the reference of DECL_BY_REFERENCE parms or results.
  26747. 2009-03-01 Jan Hubicka <jh@suse.cz>
  26748. PR debug/39267
  26749. * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
  26750. BLOCK_NONLOCALIZED_VAR): New macros.
  26751. (tree_block): Add nonlocalized_vars.
  26752. * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
  26753. gen_decl_die): Add origin argument. Allow generation of die with
  26754. origin at hand only.
  26755. (gen_member_die, gen_type_die_with_usage, force_decl_die,
  26756. declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
  26757. of gen_*.
  26758. (gen_block_die): Fix checking for unused blocks.
  26759. (process_scope_var): Break out from .... ; work with origins only.
  26760. (decls_for_scope) ... here; process nonlocalized list.
  26761. (dwarf2out_ignore_block): Look for nonlocalized vars.
  26762. * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
  26763. vars.
  26764. (dump_scope_block): Dump them.
  26765. * tree-inline.c (remap_decls): Handle nonlocalized vars.
  26766. (remap_block): Likewise.
  26767. (can_be_nonlocal): New predicate.
  26768. (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
  26769. 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  26770. * configure: Regenerate.
  26771. 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  26772. * optc-gen.awk: No need to duplicate option flags twice.
  26773. Reuse help texts for duplicate options which do not have any.
  26774. * gcc.c (display_help): Document --version.
  26775. * gcc.c (main): If print_help_list and verbose_flag, ensure
  26776. driver output comes before subprocess output.
  26777. * optc-gen.awk: Assign all remaining fields to help string,
  26778. space-separated, for multi-line help in *.opt.
  26779. * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
  26780. -Wno-pedantic-ms-format is for MinGW targets only.
  26781. * doc/options.texi (Option file format): Fix bad indentation,
  26782. restoring dropped sentence.
  26783. 2009-02-28 Jan Hubicka <jh@suse.cz>
  26784. * tree-inline.c (tree_function_versioning): Output debug info.
  26785. 2009-02-28 Jan Hubicka <jh@suse.cz>
  26786. PR debug/39267
  26787. * tree-inline.c (setup_one_parameter): Do not copy propagate
  26788. arguments when not optimizing.
  26789. 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
  26790. PR target/39327
  26791. * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
  26792. (avx_addsubv4df3): Likewise.
  26793. (*avx_addsubv4sf3): Likewise.
  26794. (sse3_addsubv4sf3): Likewise.
  26795. (*avx_addsubv2df3): Likewise.
  26796. (sse3_addsubv2df3): Likewise.
  26797. (avx_unpckhps256): Correct item selectors.
  26798. (avx_unpcklps256): Likewise.
  26799. (avx_unpckhpd256): Likewise.
  26800. (avx_unpcklpd256): Likewise.
  26801. 2009-02-28 Jan Hubicka <jh@suse.cz>
  26802. * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
  26803. static vars.
  26804. (copy_arguments_for_versioning): If var is declared don't declare it.
  26805. (tree_function_versioning): First setup substitutions and then copy
  26806. args.
  26807. 2009-02-27 Jan Hubicka <jh@suse.cz>
  26808. PR debug/39267
  26809. * cgraph.h (varpool_output_debug_info): Remove.
  26810. * cgraphunit.c (varpool_output_debug_info): Remove.
  26811. * dwarf2out.c (deferred_locations_struct): New struct
  26812. (deferred_locations): New type.
  26813. (deferred_locations_list): New static var.
  26814. (deffer_location): New function.
  26815. (gen_variable_die): Use it.
  26816. (decls_for_scope): Output info on local static vars.
  26817. (dwarf2out_finish): Process deferred locations.
  26818. * varpool.c (varpool_output_debug_info): Remove.
  26819. 2009-02-27 Jan Hubicka <jh@suse.cz>
  26820. PR debug/39267
  26821. * tree.h (TREE_PROTECTED): Fix comment.
  26822. (BLOCK_HANDLER_BLOCK): Remove.
  26823. (struct tree_block): Remove handler_block add body_block.
  26824. (inlined_function_outer_scope_p): New.
  26825. (is_body_block): Remove.
  26826. * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
  26827. * dwarf2out.c (is_inlined_entry_point): Remove.
  26828. (add_high_low_attributes): Use inlined_function_outer_scope_p.
  26829. (gen_block_die): Use is_inlined_entry_point check. Remove body block
  26830. code.
  26831. * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
  26832. * gimplify.c (gimplify_expr): Gimplify body blocks.
  26833. * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
  26834. block with multiple subblocks.
  26835. (dump_scope_block): Prettier output; dump more flags and info.
  26836. (dump_scope_blocks): New.
  26837. (remove_unused_locals): Use dump_scope_blocks.
  26838. * tree-flow.h (dump_scope_blocks): Declare.
  26839. * tree-cfg.c (execute_build_cfg): Dump scope blocks.
  26840. * stmt.c (is_body_block): Remove.
  26841. * tree-inline.c (remap_block): Copy BODY_BLOCK info.
  26842. * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
  26843. 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
  26844. PR middle-end/39308
  26845. * graphite.c (graphite_loop_normal_form): Do not call
  26846. number_of_iterations_exit from a gcc_assert.
  26847. 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  26848. * config/s390/s390.c (s390_swap_cmp): Look for conditional
  26849. jumps if COND is NULL.
  26850. (find_cond_jump): New function.
  26851. (s390_z10_optimize_cmp): Handling for reg-reg compares added.
  26852. * config/s390/s390.md: Remove z10_cobra attribute value.
  26853. 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
  26854. * config/alpha/alpha.h (alpha_expand_mov): Return false if
  26855. force_const_mem returns NULL_RTX.
  26856. 2009-02-26 Jan Hubicka <jh@suse.cz>
  26857. PR debug/39267
  26858. * cgraph.h (varpool_output_debug_info): Remove.
  26859. * cgraphunit.c (varpool_output_debug_info): Remove.
  26860. * dwarf2out.c (deferred_locations_struct): New struct
  26861. (deferred_locations): New type.
  26862. (deferred_locations_list): New static var.
  26863. (deffer_location): New function.
  26864. (gen_variable_die): Use it.
  26865. (decls_for_scope): Output info on local static vars.
  26866. (dwarf2out_finish): Process deferred locations.
  26867. * varpool.c (varpool_output_debug_info): Remove.
  26868. 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
  26869. PR rtl-optimization/39241
  26870. * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
  26871. to subreg_offset_representable_p.
  26872. 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
  26873. * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
  26874. execute function prototype. Get f and nregs from max_reg_num
  26875. and get_insns. Remove the first backward pass as it's dead,
  26876. guard the forward pass by flag_expensive_optimizations.
  26877. (rest_of_handle_regmove): Delete.
  26878. (pass_regmove): Replace it with regmove_optimize.
  26879. 2009-02-25 Martin Jambor <mjambor@suse.cz>
  26880. PR tree-optimization/39259
  26881. * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
  26882. calls_alloca function flags.
  26883. (copy_bb): Set calls_setjmp and alls_alloca function flags if such
  26884. calls are detected.
  26885. 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
  26886. * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
  26887. flags_set_1_rtx, flags_set_1_set): Delete.
  26888. (regmove_optimize): Do not call mark_flags_life_zones.
  26889. 2009-02-24 Julian Brown <julian@codesourcery.com>
  26890. PR target/35965
  26891. * config/arm/arm.c (require_pic_register): Only set
  26892. cfun->machine->pic_reg once per function.
  26893. 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
  26894. * doc/invoke.texi (Link Options): Document an easier way to pass
  26895. options that take arguments to the GNU linker using -Xlinker and -Wl.
  26896. 2009-02-24 Steve Ellcey <sje@cup.hp.com>
  26897. PR target/33785
  26898. * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
  26899. 2009-02-24 Richard Guenther <rguenther@suse.de>
  26900. PR debug/39285
  26901. * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
  26902. 2009-02-24 Richard Guenther <rguenther@suse.de>
  26903. Zdenek Dvorak <ook@ucw.cz>
  26904. PR tree-optimization/39233
  26905. * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
  26906. from converting them to a generic type.
  26907. 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
  26908. PR tree-optimization/39260
  26909. * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
  26910. contains a condition with a real type.
  26911. (build_scop_conditions_1): Conditions are always last_stmt of a bb.
  26912. 2009-02-23 Jason Merrill <jason@redhat.com>
  26913. PR c++/38880
  26914. * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
  26915. narrowing_initializer_constant_valid_p.
  26916. (narrowing_initializer_constant_valid_p): Don't return
  26917. null_pointer_node for adding a pointer to itself.
  26918. 2009-02-23 Jan Hubicka <jh@suse.cz>
  26919. PR c/12245
  26920. * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
  26921. resizing.
  26922. 2009-02-23 Jan Hubicka <jh@suse.cz>
  26923. PR tree-optimization/37709
  26924. * tree.c (block_ultimate_origin): Move here from dwarf2out.
  26925. * tree.h (block_ultimate_origin): Declare.
  26926. * dwarf2out.c (block_ultimate_origin): Move to tree.c
  26927. * tree-ssa-live.c (remove_unused_scope_block_p):
  26928. Eliminate blocks containig no instructions nor live variables nor
  26929. nested blocks.
  26930. (dump_scope_block): New function.
  26931. (remove_unused_locals): Enable removal of dead blocks by default;
  26932. enable dumping at TDF_DETAILS.
  26933. 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
  26934. * config/i386/i386.c (classify_argument): Don't allow COImode
  26935. and OImode.
  26936. (function_arg_advance_32): Don't allow OImode.
  26937. (function_arg_32): Likewise.
  26938. (function_value_32): Likewise.
  26939. (return_in_memory_32): Likewise.
  26940. (function_arg_64): Remove OImode comment.
  26941. 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
  26942. PR target/39261
  26943. * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
  26944. ix86_expand_vector_set for V4DImode in 64bit mode only.
  26945. (ix86_expand_vector_init_one_var): Likewise.
  26946. 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
  26947. * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
  26948. 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
  26949. PR bootstrap/39257
  26950. * loop-iv.c: Revert last change.
  26951. * emit-rtl.c: Likewise.
  26952. 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
  26953. PR target/39256
  26954. * config/i386/i386.c (type_natural_mode): Remove an extra
  26955. space in the warning message.
  26956. (function_value_32): Handle 32-byte vector modes.
  26957. (return_in_memory_32): Likewise.
  26958. 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
  26959. * loop-iv.c (truncate_value): New function.
  26960. (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
  26961. of lowpart_subreg.
  26962. (lowpart_subreg): Move to...
  26963. * emit-rtl.c: ...here.
  26964. 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
  26965. * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
  26966. accidental and undocumented change at revision 140860.
  26967. 2009-02-21 Joseph Myers <joseph@codesourcery.com>
  26968. * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
  26969. take gimple_seq * arguments.
  26970. (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
  26971. types_compatible_p langhook.
  26972. 2009-02-20 Mark Mitchell <mark@codesourcery.com>
  26973. Joseph Myers <joseph@codesourcery.com>
  26974. * config/arm/arm.c (arm_builtin_va_list): New function.
  26975. (arm_expand_builtin_va_start): Likewise.
  26976. (arm_gimplify_va_arg_expr): Likewise.
  26977. (TARGET_BUILD_BUILTIN_VA_LIST): Define.
  26978. (TARGET_BUILD_BUILTIN_VA_START): Likewise.
  26979. (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
  26980. (va_list_type): New variable.
  26981. (arm_mangle_type): Mangle va_list_type appropriately.
  26982. 2009-02-20 Jakub Jelinek <jakub@redhat.com>
  26983. PR middle-end/39157
  26984. * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
  26985. * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
  26986. * params.def (loop-invariant-max-bbs-in-loop): New parameter.
  26987. * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
  26988. parameter to 1000 for -O1 by default.
  26989. * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
  26990. parameter.
  26991. * loop-invariant.c: Include params.h.
  26992. (move_loop_invariants): Don't call move_single_loop_invariants on
  26993. very large loops.
  26994. 2009-02-20 Jaka Mocnik <jaka@xlab.si>
  26995. * calls.c (emit_library_call_value_1): Use slot_offset instead of
  26996. offset when calculating bounds for indexing stack_usage_map. Fixes
  26997. a buffer overflow with certain target setups.
  26998. 2009-02-20 Jakub Jelinek <jakub@redhat.com>
  26999. PR target/39240
  27000. * calls.c (expand_call): Clear try_tail_call if caller and callee
  27001. disagree in promotion of function return value.
  27002. 2009-02-19 Jakub Jelinek <jakub@redhat.com>
  27003. PR target/39175
  27004. * c-common.c (c_determine_visibility): If visibility changed and
  27005. DECL_RTL has been already set, call make_decl_rtl to update symbol
  27006. flags.
  27007. 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
  27008. PR c++/39188
  27009. * varasm.c (assemble_variable): Don't check DECL_NAME when
  27010. globalizing a variable.
  27011. 2009-02-19 Joseph Myers <joseph@codesourcery.com>
  27012. PR c/38483
  27013. * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
  27014. expression before any __builtin_trap call.
  27015. * c-typeck.c (build_function_call): Convert and check function
  27016. arguments before generating a call to a trap. Evaluate the
  27017. function arguments before the trap.
  27018. 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
  27019. PR target/39228
  27020. * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
  27021. (UNSPEC_FXAM_MEM): New unspec.
  27022. (fxam<mode>2_i387_with_temp): New insn and split pattern.
  27023. (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
  27024. memory using fxam<mode>2_i387_with_temp to remove excess precision.
  27025. 2009-02-19 Richard Guenther <rguenther@suse.de>
  27026. PR tree-optimization/39207
  27027. PR tree-optimization/39074
  27028. * tree-ssa-structalias.c (storedanything_id, var_storedanything,
  27029. storedanything_tree): New.
  27030. (do_ds_constraint): Simplify ANYTHING shortcutting. Update
  27031. the STOREDANYTHING solution if the lhs solution contains ANYTHING.
  27032. (build_succ_graph): Add edges from STOREDANYTHING to all
  27033. non-direct nodes.
  27034. (init_base_vars): Initialize STOREDANYTHING.
  27035. (compute_points_to_sets): Free substitution info after
  27036. building the succ graph.
  27037. (ipa_pta_execute): Likewise.
  27038. * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
  27039. field.
  27040. (do_ds_constraint): Do not add to special var or non-pointer
  27041. field solutions.
  27042. (type_could_have_pointers): Split out from ...
  27043. (could_have_pointers): ... here. For arrays use the element type.
  27044. (create_variable_info_for): Initialize may_have_pointers.
  27045. (new_var_info): Likewise.
  27046. (handle_lhs_call): Make the HEAP variable unknown-sized.
  27047. (intra_create_variable_infos): Use a type with pointers for
  27048. PARM_NOALIAS, make it unknown-sized.
  27049. 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
  27050. PR target/39224
  27051. * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
  27052. 2009-02-18 Jason Merrill <jason@redhat.com>
  27053. PR target/39179
  27054. * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
  27055. value if DECL_EXTERNAL.
  27056. * tree-sra.c (sra_walk_gimple_assign): Likewise.
  27057. * target.h (gcc_target::binds_local_p): Clarify "module".
  27058. * tree.h (TREE_PUBLIC): Clarify "module".
  27059. 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
  27060. PR target/38891
  27061. * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
  27062. initialization for MS_ABI prior to the hunk of !TARGET_MMX.
  27063. 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
  27064. PR target/39082
  27065. * c.opt (Wabi): Support C and ObjC.
  27066. (Wpsabi): New.
  27067. * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
  27068. * config/i386/i386.c (classify_argument): Warn once about the ABI
  27069. change when passing union with long double.
  27070. * doc/invoke.texi: Update -Wabi for warning psABI changes.
  27071. 2009-02-18 Joseph Myers <joseph@codesourcery.com>
  27072. PR c/35447
  27073. * c-parser.c (c_parser_compound_statement): Always enter and leave
  27074. a scope.
  27075. 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  27076. PR target/34587
  27077. * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
  27078. 2009-02-18 Jakub Jelinek <jakub@redhat.com>
  27079. PR tree-optimization/36922
  27080. * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
  27081. * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
  27082. Likewise.
  27083. 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
  27084. * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
  27085. to 0 for EABI64.
  27086. 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
  27087. * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
  27088. 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
  27089. * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
  27090. tree sharing.
  27091. 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
  27092. Richard Sandiford <rdsandiford@googlemail.com>
  27093. * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
  27094. * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
  27095. (loongson_biadd): ...this.
  27096. 2009-02-17 Richard Guenther <rguenther@suse.de>
  27097. PR tree-optimization/39202
  27098. * tree-ssa-structalias.c (do_structure_copy): Before collapsing
  27099. a var make sure to follow existing collapses.
  27100. 2009-02-17 Richard Guenther <rguenther@suse.de>
  27101. PR middle-end/39214
  27102. * langhooks.c (lhd_print_error_function): Check for NULL block.
  27103. 2009-02-17 Richard Guenther <rguenther@suse.de>
  27104. PR tree-optimization/39204
  27105. * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
  27106. of the PHI arg.
  27107. 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
  27108. * config/soft-fp/double.h: Update from glibc CVS.
  27109. 2009-02-17 Richard Guenther <rguenther@suse.de>
  27110. PR tree-optimization/39207
  27111. * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
  27112. strict-aliasing warnings for pointers pointing to NULL.
  27113. 2009-02-16 Joseph Myers <joseph@codesourcery.com>
  27114. PR c/35446
  27115. * c-parser.c (c_parser_braced_init): Call pop_init_level when
  27116. skipping until next close brace.
  27117. 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
  27118. PR target/37049
  27119. * config/i386/i386.c (ix86_expand_push): Set memory alignment
  27120. to function argument boundary.
  27121. 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
  27122. * config/picochip/picochip.md (lea_add): Allow any nonimmediate
  27123. in the lea_add. Reload eventually constraints it properly.
  27124. * config/picochip/constraints.md: Remove the target constraint
  27125. "b", since it is not needed anymore.
  27126. 2009-02-16 Jakub Jelinek <jakub@redhat.com>
  27127. * gthr-dce.h: Uglify function parameter and local variable names.
  27128. * gthr-gnat.h: Likewise.
  27129. * gthr-mipssde.h: Likewise.
  27130. * gthr-nks.h: Likewise.
  27131. * gthr-posix95.h: Likewise.
  27132. * gthr-posix.h: Likewise.
  27133. * gthr-rtems.h: Likewise.
  27134. * gthr-single.h: Likewise.
  27135. * gthr-solaris.h: Likewise.
  27136. * gthr-tpf.h: Likewise.
  27137. * gthr-vxworks.h: Likewise.
  27138. * gthr-win32.h: Likewise.
  27139. 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
  27140. PR target/39196
  27141. * config/i386/i386.md: Restrict the new peephole2 to move
  27142. between MMX/SSE registers.
  27143. 2009-02-15 Richard Guenther <rguenther@suse.de>
  27144. Revert
  27145. 2009-02-13 Richard Guenther <rguenther@suse.de>
  27146. * configure.ac: Enable LFS.
  27147. * configure: Re-generate.
  27148. * config.in: Likewise.
  27149. 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  27150. * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
  27151. spu_srqwbyte, spu_srqwbytebc): Define.
  27152. * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
  27153. spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
  27154. * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
  27155. "shrqby_<mode>"): New insn-and-split patterns.
  27156. * config/spu/spu.c (expand_builtin_args): Determine and return
  27157. number of operands using spu_builtin_description data.
  27158. (spu_expand_builtin_1): Use it.
  27159. 2009-02-13 Steve Ellcey <sje@cup.hp.com>
  27160. PR target/38056
  27161. * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
  27162. TARGET_CONST_GP.
  27163. 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
  27164. PR target/39149
  27165. * config/i386/i386.c (override_options): Correct warning
  27166. messages for -malign-loops, -malign-jumps and -malign-functions.
  27167. 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
  27168. PR target/39152
  27169. * config/i386/i386.md: Restrict the new peephole2 to move
  27170. between the general purpose registers.
  27171. 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
  27172. PR target/39162
  27173. * config/i386/i386.c (type_natural_mode): Add a new argument.
  27174. Return the original mode and warn ABI change if vector size is 32byte.
  27175. (function_arg_advance): Updated.
  27176. (function_arg): Likewise.
  27177. (ix86_function_value): Likewise.
  27178. (ix86_return_in_memory): Likewise.
  27179. (ix86_sol10_return_in_memory): Likewise.
  27180. (ix86_gimplify_va_arg): Likewise.
  27181. (function_arg_32): Don't warn ABX ABI change here.
  27182. (function_arg_64): Likewise.
  27183. 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
  27184. * loop-iv.c (implies_p): In the final case, test that operands 0
  27185. of the two comparisons match.
  27186. * config/bfin/bfin.c (find_prev_insn_start): New function.
  27187. (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
  27188. (find_next_insn_start): Move.
  27189. 2009-02-13 Richard Guenther <rguenther@suse.de>
  27190. * configure.ac: Enable LFS.
  27191. * configure: Re-generate.
  27192. * config.in: Likewise.
  27193. 2009-02-13 Joseph Myers <joseph@codesourcery.com>
  27194. PR c/35444
  27195. * c-parser.c (c_parser_parms_list_declarator): Discard pending
  27196. sizes on syntax error after some arguments have been parsed.
  27197. 2009-02-12 Jakub Jelinek <jakub@redhat.com>
  27198. * doc/invoke.texi (-fira): Remove.
  27199. 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
  27200. * caller-save.c: Replace regclass.c with reginfo.c in comments.
  27201. * recog.c: Likewise.
  27202. * rtl.h: Likewise.
  27203. 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
  27204. * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
  27205. (umul_ppmm): Likewise.
  27206. (count_leading_zeros): Likewise.
  27207. (count_trailing_zeros): Likewise.
  27208. (UMUL_TIME): Likewise.
  27209. 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
  27210. * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
  27211. soft-fp/t-softfp to tmake_file.
  27212. * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
  27213. (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
  27214. (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
  27215. IA64_BUILTIN_INFQ]: New.
  27216. (ia64_init_builtins): Initialize __builtin_infq,
  27217. __builtin_fabsq and __builtin_copysignq if not HPUX.
  27218. (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
  27219. IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
  27220. * config/ia64/lib1funcs.asm (__divtf3): Define only if
  27221. SHARED is defined.
  27222. (__fixtfti): Likewise.
  27223. (__fixunstfti): Likewise.
  27224. (__floattitf): Likewise.
  27225. * config/ia64/libgcc-glibc.ver: New.
  27226. * config/ia64/t-fprules-softfp: Likewise.
  27227. * config/ia64/sfp-machine.h: Likewise.
  27228. * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
  27229. (LIBGCC2_TF_CEXT): Likewise.
  27230. (TF_SIZE): Likewise.
  27231. (TARGET_INIT_LIBFUNCS): Likewise.
  27232. * config/ia64/t-glibc (SHLINB_MAPFILES):
  27233. Add $(srcdir)/config/ia64/libgcc-glibc.ver.
  27234. 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
  27235. * config/i386/i386.c (construct_container): Rewrite processing
  27236. BLKmode with X86_64_SSE_CLASS.
  27237. 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
  27238. PR target/39152
  27239. * config/i386/i386.md: Replace simplify_replace_rtx with
  27240. replace_rtx in the new peephole2.
  27241. 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
  27242. * doc/invoke.texi (Optimize Options): Stop claiming inlining and
  27243. loop unrolling do not happen at -O2.
  27244. 2009-02-12 Michael Matz <matz@suse.de>
  27245. * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
  27246. 2009-02-12 Jakub Jelinek <jakub@redhat.com>
  27247. * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
  27248. for -g3.
  27249. 2009-02-12 Ben Elliston <bje@au.ibm.com>
  27250. * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
  27251. patterns when updating the back chain. Missed in the 2009-02-10
  27252. change.
  27253. 2009-02-11 Janis Johnson <janis187@us.ibm.com>
  27254. * doc/extend.texi (Decimal Floating Types): Update identifier of
  27255. draft TR and list of missing support.
  27256. 2009-02-11 Jakub Jelinek <jakub@redhat.com>
  27257. PR middle-end/39154
  27258. * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
  27259. bit to variable length decl's flags, add it also to its
  27260. pointer replacement variable.
  27261. 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
  27262. Jakub Jelinek <jakub@redhat.com>
  27263. PR target/39118
  27264. * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
  27265. (memory_blockage): New expander.
  27266. (*memory_blockage): New insn pattern.
  27267. * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
  27268. instead of general blockage at the end of function prologue when
  27269. frame pointer is used to access red zone area. Do not emit blockage
  27270. when profiling, it is emitted in generic code.
  27271. (ix86_expand_epilogue): Emit memory_blockage at the beginning of
  27272. function epilogue when frame pointer is used to access red zone area.
  27273. 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
  27274. PR target/38824
  27275. * config/i386/i386.md: Add two new peephole2 to avoid mov followed
  27276. by arithmetic with memory operands.
  27277. * config/i386/predicates.md (commutative_operator): New.
  27278. 2009-02-10 Janis Johnson <janis187@us.ibm.com>
  27279. * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
  27280. bulleted lists.
  27281. 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
  27282. * alias.h (record_alias_subset): Declare.
  27283. * alias.c (record_alias_subset): Make global.
  27284. 2009-02-10 Nick Clifton <nickc@redhat.com>
  27285. * tree-parloops.c: Change license to GPLv3.
  27286. * ipa-struct-reorg.c: Change license to GPLv3.
  27287. * ipa-struct-reorg.h: Change license to GPLv3.
  27288. 2009-02-10 Steve Ellcey <sje@cup.hp.com>
  27289. PR c/39084
  27290. * c-decl.c (start_struct): Return NULL on error.
  27291. 2009-02-10 Jakub Jelinek <jakub@redhat.com>
  27292. PR middle-end/39124
  27293. * cfgloopmanip.c (remove_path): Call remove_bbs after
  27294. cancel_loop_tree, not before it.
  27295. PR target/39139
  27296. * function.h (struct function): Add has_local_explicit_reg_vars bit.
  27297. * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
  27298. VAR_DECLs were seen.
  27299. * tree-ssa-live.c (remove_unused_locals): Recompute
  27300. cfun->has_local_explicit_reg_vars.
  27301. * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
  27302. copies or clearings if cfun->has_local_explicit_reg_vars.
  27303. 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
  27304. PR target/39118
  27305. * config/i386/i386.c (expand_prologue): Emit blockage at the end
  27306. of function prologue when frame pointer is used to access
  27307. red zone area.
  27308. 2009-02-10 Richard Guenther <rguenther@suse.de>
  27309. PR middle-end/39127
  27310. * gimplify.c (gimple_regimplify_operands): Always look if
  27311. we need to create a temporary.
  27312. 2009-02-10 Richard Guenther <rguenther@suse.de>
  27313. PR tree-optimization/39132
  27314. * tree-loop-distribution.c (todo): New global var.
  27315. (generate_memset_zero): Trigger TODO_rebuild_alias.
  27316. (tree_loop_distribution): Return todo.
  27317. 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
  27318. PR target/39119
  27319. * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
  27320. (x86_64_reg_class_name): Removed.
  27321. (classify_argument): Return 0 if bytes > 32. Return 0 if the
  27322. first one isn't X86_64_SSE_CLASS or any other ones aren't
  27323. X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
  27324. X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
  27325. is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
  27326. and 3 X86_64_SSEUP_CLASS.
  27327. (construct_container): Remove X86_64_AVX_CLASS. Handle 4
  27328. registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
  27329. 2009-02-10 Ben Elliston <bje@au.ibm.com>
  27330. * config/rs6000/rs6000.md (allocate_stack): Always use an update
  27331. form instruction to update the stack back chain word, even if the
  27332. user has disabled the generation of update instructions.
  27333. (movdi_<mode>_update_stack): New.
  27334. (movsi_update_stack): Likewise.
  27335. * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
  27336. always use an update form instruction to update the stack back
  27337. chain word.
  27338. 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
  27339. PR middle-end/38953
  27340. * graphite.c (if_region_set_false_region): After moving a region in
  27341. the false branch of a condition, remove the empty dummy basic block.
  27342. (gloog): Remove wrong fix for PR38953.
  27343. 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  27344. * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
  27345. generation due to implicit sign extension.
  27346. 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
  27347. PR middle-end/38981
  27348. * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
  27349. at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
  27350. 2009-02-09 Richard Guenther <rguenther@suse.de>
  27351. PR middle-end/35202
  27352. * convert.c (convert_to_real): Disable (float)fn((double)x)
  27353. to fnf(x) conversion if errno differences may occur and
  27354. -fmath-errno is set.
  27355. 2009-02-07 Anatoly Sokolov <aesok@post.ru>
  27356. * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
  27357. * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
  27358. * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
  27359. 2009-02-06 Joseph Myers <joseph@codesourcery.com>
  27360. PR c/35434
  27361. * c-common.c (handle_alias_attribute): Disallow attribute for
  27362. anything not a FUNCTION_DECL or VAR_DECL.
  27363. 2009-02-06 Janis Johnson <janis187@us.ibm.com>
  27364. PR c/39035
  27365. * real.c (do_compare): Special-case compare of zero against
  27366. decimal float value.
  27367. 2009-02-06 Joseph Myers <joseph@codesourcery.com>
  27368. PR c/36432
  27369. * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
  27370. as indicating flexible array members unless the field itself is
  27371. being declarared as the incomplete array.
  27372. 2009-02-06 Jan Hubicka <jh@suse.cz>
  27373. PR tree-optimization/38844
  27374. * ipa-inline.c (try_inline): Stop inlining recursion when edge
  27375. is already inlined.
  27376. 2009-02-06 Richard Guenther <rguenther@suse.de>
  27377. PR middle-end/38977
  27378. * tree-cfg.c (need_fake_edge_p): Force a fake edge for
  27379. fork because we may expand it as __gcov_fork.
  27380. 2009-02-06 Nick Clifton <nickc@redhat.com>
  27381. * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
  27382. 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
  27383. PR tree-optimization/35659
  27384. * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
  27385. vn_phi_eq): Shortcut if hashcode does not match.
  27386. (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
  27387. NULL operands.
  27388. * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
  27389. and avoid iterative_hash_expr.
  27390. (FOR_EACH_VALUE_ID_IN_SET): New.
  27391. (value_id_compare): Remove.
  27392. (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
  27393. sort expressions by value id.
  27394. 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
  27395. PR target/38991
  27396. * config/sh/predicates.md (general_movsrc_operand): Don't check
  27397. the subreg of system registers here.
  27398. 2009-02-05 Jakub Jelinek <jakub@redhat.com>
  27399. PR c++/39106
  27400. * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
  27401. on the copied decl.
  27402. 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
  27403. PR rtl-optimization/39110
  27404. * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
  27405. addresses, not aligned ones.
  27406. 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
  27407. Richard Guenther <rguenther@suse.de>
  27408. PR tree-optimization/39100
  27409. * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
  27410. comment says and add edges.
  27411. 2009-02-05 Joseph Myers <joseph@codesourcery.com>
  27412. PR c/35435
  27413. * c-common.c (handle_tls_model_attribute): Ignore attribute for
  27414. non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
  27415. 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
  27416. * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
  27417. sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
  27418. register_bb_in_sese, new_sese, free_sese): Moved.
  27419. (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
  27420. outermost_loop_in_scop, build_scop_iteration_domain,
  27421. expand_scalar_variables_ssa_name, get_vdef_before_scop,
  27422. limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
  27423. Use loop_in_sese_p instead of loop_in_scop_p.
  27424. (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
  27425. (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
  27426. (scopdet_basic_block_info): Fix bug in scop detection.
  27427. (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
  27428. eq_loop_to_cloog_loop): Remove.
  27429. (nb_loops_around_loop_in_scop, nb_loop
  27430. ref_nb_loops): Moved here...
  27431. * graphite.h (ref_nb_loops): ... from here.
  27432. (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
  27433. (loop_domain_dim, loop_iteration_vector_dim): Remove.
  27434. (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
  27435. 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
  27436. Hans-Peter Nilsson <hp@axis.com>
  27437. PR rtl-optimization/37889
  27438. * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
  27439. Move offset handling from PLUS to before the switch. Use new
  27440. arguments when considering SYMBOL_REFs too.
  27441. (rtx_addr_can_trap_p): Pass dummy offset and size.
  27442. (enum may_trap_p_flags): Remove.
  27443. (may_trap_p_1): Pass size from MEM_SIZE.
  27444. PR rtl-optimization/38921
  27445. * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
  27446. * rtl.h (may_trap_after_code_motion_p): Delete prototype.
  27447. * rtlanal.c (may_trap_after_code_motion_p): Delete.
  27448. (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
  27449. 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
  27450. AVX Programming Reference (January, 2009)
  27451. * config/i386/sse.md (*vpclmulqdq): New.
  27452. 2009-02-04 Jakub Jelinek <jakub@redhat.com>
  27453. PR tree-optimization/38977
  27454. PR gcov-profile/38292
  27455. * calls.c (special_function_p): Disregard __builtin_ prefix.
  27456. 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
  27457. * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
  27458. non-indexable addresses even before reload.
  27459. 2009-02-03 Joseph Myers <joseph@codesourcery.com>
  27460. PR c/29129
  27461. * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
  27462. as having variable size. Do not give an error for unnamed
  27463. parameters with [*] declarators. Give a warning for type names
  27464. with [*] declarators and mark them as variable size.
  27465. * c-parser.c (c_parser_sizeof_expression): Do not give an error
  27466. for sizeof applied to [*] type names.
  27467. 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
  27468. PR C++/36607
  27469. * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
  27470. 2009-02-03 Jakub Jelinek <jakub@redhat.com>
  27471. * gcc.c (process_command): Update copyright notice dates.
  27472. * gcov.c (print_version): Likewise.
  27473. * gcov-dump.c (print_version): Likewise.
  27474. * mips-tfile.c (main): Likewise.
  27475. * mips-tdump.c (main): Likewise.
  27476. 2009-02-03 Joseph Myers <joseph@codesourcery.com>
  27477. PR c/35433
  27478. * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
  27479. for composite type involving a zero-length array type.
  27480. 2009-02-03 Jakub Jelinek <jakub@redhat.com>
  27481. PR target/35318
  27482. * function.c (match_asm_constraints_1): Skip over
  27483. initial optional % in the constraint.
  27484. PR inline-asm/39059
  27485. * c-parser.c (c_parser_postfix_expression): If fixed point is not
  27486. supported, don't accept FIXED_CSTs.
  27487. * c-decl.c (finish_declspecs): Error if fixed point is not supported
  27488. and _Sat is used without _Fract/_Accum. Set specs->type to
  27489. integer_type_node for cts_fract/cts_accum if fixed point is not
  27490. supported.
  27491. 2009-02-02 Catherine Moore <clm@codesourcery.com>
  27492. * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
  27493. 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
  27494. * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
  27495. (ABI_HAS_64BIT_SYMBOLS): Use it.
  27496. (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
  27497. 2009-02-02 Paul Brook <paul@codesourcery.com>
  27498. * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
  27499. 2009-02-02 Jakub Jelinek <jakub@redhat.com>
  27500. PR inline-asm/39058
  27501. * recog.h (asm_operand_ok): Add constraints argument.
  27502. * recog.c (asm_operand_ok): Likewise. If it is set, for digits
  27503. recurse on matching constraint.
  27504. (check_asm_operands): Pass constraints as 3rd argument to
  27505. asm_operand_ok. Don't look up matching constraint here.
  27506. * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
  27507. to asm_operand_ok.
  27508. 2009-02-02 Ben Elliston <bje@au.ibm.com>
  27509. * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
  27510. TARGET_NARROW_VOLATILE_BITFIELD macro names.
  27511. 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  27512. * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
  27513. information. Remove some obsolete information. Reorganize.
  27514. * config/pa/fptr.c: Revert license to GPL 2.
  27515. * config/pa/milli64.S: Likewise.
  27516. 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
  27517. PR target/38904
  27518. * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
  27519. LIBRARY name in, instead of hard-coding it.
  27520. * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
  27521. extra target make frag to tmake_files according to EH model.
  27522. (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
  27523. * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
  27524. frags that define makefile variable EH_MODEL appropriately.
  27525. * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
  27526. * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
  27527. to "-sjlj" according to type of EH configured.
  27528. (LIBGCC_SONAME): Concatenate it to shared library base name.
  27529. * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
  27530. to "_sjlj" according to type of EH configured.
  27531. (LIBGCC_SONAME): Concatenate it to shared library base name.
  27532. * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
  27533. (SHLIB_LINK): Add missing semicolon to if-else construct.
  27534. (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
  27535. string value of "pe_dll" command-line option.
  27536. * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
  27537. (SHLIB_SONAME): Use it when overriding t-cygming default.
  27538. (SHLIB_IMPLIB): Override t-cygming default.
  27539. (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
  27540. string value of "pe_dll" command-line option.
  27541. 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
  27542. PR target/38952
  27543. * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
  27544. (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
  27545. 2009-01-31 Richard Guenther <rguenther@suse.de>
  27546. PR tree-optimization/38937
  27547. * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
  27548. computing the transitive closure.
  27549. 2009-01-30 Richard Guenther <rguenther@suse.de>
  27550. PR tree-optimization/39041
  27551. * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
  27552. Propagate variable indices only if the types match for this stmt.
  27553. 2009-01-30 Jakub Jelinek <jakub@redhat.com>
  27554. PR target/39013
  27555. * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
  27556. inline but never defined.
  27557. 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
  27558. * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
  27559. (*insv_h_di_reg_extimm): New insn.
  27560. (*insv_l<mode>_reg_extimm): New insn.
  27561. 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
  27562. * config/picochip/picochip.c (flag_conserve_stack): set
  27563. PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
  27564. fconserve-stack. Reduce call-overhead used by inliner.
  27565. 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
  27566. PR/38157
  27567. * common.opt (flag_conserve_stack): Initialised to zero.
  27568. 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
  27569. PR/39002
  27570. * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
  27571. (ix86_expand_epilogue): Take nsseregs in account to use proper restore
  27572. method.
  27573. 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
  27574. * ira-color.c (allocno_reload_assign): Update comments.
  27575. * regmove.c (regmove_optimize): Likewise.
  27576. * ra.h: Removed.
  27577. 2009-01-29 Robert Millan <rmh@aybabtu.com>
  27578. * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
  27579. * config/i386/kopensolaris-gnu.h: New file. Undefine
  27580. `MD_UNWIND_SUPPORT'.
  27581. * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
  27582. 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
  27583. PR tree-optimization/39007
  27584. * tree-loop-distribution.c (generate_builtin): Use
  27585. recompute_dominator to compute the immediate dominator of the
  27586. basic block just after the loop.
  27587. 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  27588. * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
  27589. (ASM_OUTPUT_DWARF_PCREL): Define.
  27590. 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
  27591. * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
  27592. * doc/passes.texi: Remove entries about regclass, local-alloc, and
  27593. global. Modify entries about regmove and IRA.
  27594. * ra-conflict.c: Remove the file.
  27595. * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
  27596. * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
  27597. (pass_regclass_init): Rename to pass_reginfo_init.
  27598. * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
  27599. * toplev.h (flag_ira): Remove.
  27600. * caller-save.c (setup_save_areas): Remove flag_ira.
  27601. * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
  27602. * global.c: Remove the file.
  27603. * opts.c (decode_options): Remove flag_ira.
  27604. * hard-reg-set.h (losing_caller_save_reg_set): Remove.
  27605. * regmove.c: Modify file description.
  27606. (find_use_as_address, try_auto_increment): Define them only if
  27607. AUTO_INC_DEC is defined.
  27608. (replacement_quality, replace_in_call_usage, fixup_match_1,
  27609. stable_and_no_regs_but_for_p): Remove.
  27610. (reg_set_in_bb): Make it static.
  27611. (regmove_optimize): Remove flag_ira and code which worked for
  27612. !flag_ira.
  27613. * local-alloc.c: Remove the file.
  27614. * common.opt (fira): Remove.
  27615. * ira.c: Include except.h.
  27616. (eliminable_regset): Move from global.c.
  27617. (mark_elimination): Ditto. Remove flag_ira.
  27618. (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
  27619. equiv_mem_modified, validate_equiv_mem_from_store,
  27620. validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
  27621. contains_replace_regs, memref_referenced_p, memref_used_between_p,
  27622. no_equiv, recorded_label_ref): Move from local-alloc.c.
  27623. (update_equiv_regs): Ditto. Make it static.
  27624. (print_insn_chain, print_insn_chains): Move it from global.c.
  27625. (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
  27626. (build_insn_chain): Ditto. Make it static.
  27627. (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
  27628. Rename to init_live_subregs.
  27629. (gate_ira): Remove flag_ira.
  27630. * regclass.c: Rename reginfo.c. Change file description.
  27631. (FORBIDDEN_INC_DEC_CLASSES): Remove.
  27632. (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
  27633. (init_reg_sets_1): Remove code for evaluation of
  27634. reg_class_superclasses and losing_caller_save_reg_set.
  27635. (init_regs): Remove init_reg_autoinc.
  27636. (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
  27637. ok_for_base_p_nonstrict): Remove.
  27638. (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
  27639. (pass_regclass_init): Rename to pass_reginfo_init. Modify
  27640. corresponding entries.
  27641. (dump_regclass, record_operand_costs, scan_one_insn,
  27642. init_reg_autoinc, regclass, record_reg_classes, copy_cost,
  27643. record_address_regs, auto_inc_dec_reg_p): Remove.
  27644. (gt-regclass.h): Rename to gt-reginfo.h.
  27645. * rtl.h (dump_global_regs, retry_global_alloc,
  27646. build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
  27647. * Makefile.in (RA_H): Remove.
  27648. (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
  27649. Rename regclass.o to reginfo.o.
  27650. (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
  27651. gt-reginfo.h.
  27652. (global.o, local-alloc.o, ra-conflict.o): Remove entries.
  27653. (GTFILES): Rename regclass.c to reginfo.c.
  27654. * passes.c (init_optimization_passes): Remove pass_local_alloc and
  27655. pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
  27656. * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
  27657. count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
  27658. Remove flag_ira.
  27659. (finish_spills): Ditto. Remove code for !flag_ira.
  27660. 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
  27661. PR middle-end/35854
  27662. * doc/invoke.texi (rtl debug options): Complete rewrite.
  27663. * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
  27664. to auto_inc_dec".
  27665. * mode-switching.c (pass_mode_switching): Rename pass from
  27666. "mode-sw" to "mode_sw".
  27667. * except.c (pass_convert_to_eh_ranges): Rename pass from
  27668. "eh-ranges" to "eh_ranges".
  27669. * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
  27670. to "subreg1".
  27671. 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
  27672. Alexander Monakov <amonakov@ispras.ru>
  27673. PR middle-end/38857
  27674. * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
  27675. register.
  27676. (move_exprs_to_boundary): Change return type and pass through
  27677. should_move from move_op. Relax assert. Update usage ...
  27678. (schedule_expr_on_boundary): ... here. Use should_move instead of
  27679. cant_move.
  27680. (move_op_orig_expr_found): Indicate that insn was disconnected from
  27681. stream.
  27682. (code_motion_process_successors): Do not call after_merge_succs
  27683. callback if original expression was not found when traversing any of
  27684. the branches.
  27685. (code_motion_path_driver): Change return type. Update prototype.
  27686. (move_op): Update comment. Add a new parameter (should_move). Update
  27687. prototype. Set *should_move based on indication provided by
  27688. move_op_orig_expr_found.
  27689. 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
  27690. * doc/invoke.texi (avoid-indexed-addresses): Document new option.
  27691. * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
  27692. * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
  27693. * config/rs6000/rs6000.c (rs6000_override_options): Default
  27694. avoid-indexed-addresses on for Power6, off for everything else.
  27695. (avoiding_indexed_address_p): New function.
  27696. (rs6000_legitimize_address): Use it.
  27697. (rs6000_legitimate_address): Likewise.
  27698. * config/rs6000/rs6000.md (movXX_updateX): Likewise
  27699. 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
  27700. PR tree-optimization/38997
  27701. * tree-loop-distribution.c (generate_memset_zero): Use
  27702. POINTER_PLUS_EXPR for a pointer addition.
  27703. 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
  27704. * config/s390/s390.md (bswap<mode>2): New pattern added.
  27705. 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
  27706. * config/s390/s390.md (*tls_load_31): Added type attribute.
  27707. 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
  27708. * config/s390/s390.md: Fix a few comments.
  27709. 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
  27710. * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
  27711. (*tm<mode>_full): Fixed z10prop attribute.
  27712. (*tst<mode>_extimm): Fixed z10prop attribute.
  27713. (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
  27714. (*tstqiCCT_cconly): Fixed z10prop attribute.
  27715. (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
  27716. (*movsi_larl): Fixed z10prop attribute.
  27717. (*movsi_zarch): Fixed z10prop attribute.
  27718. (*movsi_eas): Fixed z10prop attribute.
  27719. (*movhi): Fixed z10prop attribute.
  27720. (*movqi): Fixed z10prop attribute.
  27721. (*movstrictqi): Fixed z10prop attribute.
  27722. (*mov<mode>): Fixed z10prop attribute.
  27723. (*movcc): Fixed z10prop attribute.
  27724. (*sethighpartdi_64): Fixed z10prop attribute.
  27725. (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
  27726. (*negdi2_sign_cc): Fixed z10prop attribute.
  27727. (*negdi2_sign): Fixed z10prop attribute.
  27728. (*absdi2_sign_cc): Fixed z10prop attribute.
  27729. (*absdi2_sign): Fixed z10prop attribute.
  27730. (*negabsdi2_sign_cc): Fixed z10prop attribute.
  27731. (*negabsdi2_sign): Fixed z10prop attribute.
  27732. (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
  27733. (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
  27734. (doloop_si64): Fixed z10prop attribute.
  27735. (doloop_si31): Fixed z10prop attribute.
  27736. (doloop_long): Fixed z10prop attribute.
  27737. (indirect_jump): Fixed z10prop attribute.
  27738. (nop): Fixed z10prop attribute.
  27739. (main_base_64): Fixed z10prop attribute.
  27740. (reload_base_64): Fixed z10prop attribute.
  27741. 2009-01-28 Jakub Jelinek <jakub@redhat.com>
  27742. PR rtl-optimization/38740
  27743. * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
  27744. if !optimize.
  27745. * config/mips/mips.c (mips_reorg): Likewise.
  27746. 2009-01-28 Richard Guenther <rguenther@suse.de>
  27747. PR tree-optimization/38926
  27748. * tree-ssa-pre.c (add_to_value): Assert we add only expressions
  27749. with the correct value id to a value.
  27750. (do_regular_insertion): Use the value number of edoubleprime
  27751. for the value number of the expr.
  27752. Revert
  27753. 2008-08-21 Richard Guenther <rguenther@suse.de>
  27754. * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
  27755. a PHI ask VN if it is already available.
  27756. * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
  27757. * tree-ssa-sccvn.c (vn_phi_lookup): Export.
  27758. 2009-01-28 Jakub Jelinek <jakub@redhat.com>
  27759. PR middle-end/38934
  27760. * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
  27761. set to varying whenever max has TREE_OVERFLOW set, similarly
  27762. for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
  27763. 2009-01-28 Richard Guenther <rguenther@suse.de>
  27764. PR middle-end/38908
  27765. * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
  27766. uninitialized aggregate uses in call arguments.
  27767. 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
  27768. PR tree-optimization/38984
  27769. * tree-ssa-structalias.c (get_constraints_for_1): Do not use
  27770. the nothing_id variable if -fno-delete-null-pointer-checks.
  27771. 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
  27772. PR target/38988
  27773. * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
  27774. (set_got_offset_rex64): Ditto.
  27775. 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
  27776. PR target/38941
  27777. * doc/extend.texi: Improve local variable with asm reg.
  27778. 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
  27779. * c.opt (Wpacked-bitfield-compat): Change init value to -1.
  27780. * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
  27781. was not supplied then set warn_packed_bitfield_compat to the
  27782. default value of 1.
  27783. * stor-layout.c (place_field): Check warn_packed_bitfield_compat
  27784. against 1.
  27785. 2009-01-27 Richard Guenther <rguenther@suse.de>
  27786. PR tree-optimization/38503
  27787. * cfgexpand.c (expand_gimple_basic_block): Ignore
  27788. GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
  27789. * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
  27790. variables that cannot have TBAA applied.
  27791. (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
  27792. statements.
  27793. 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
  27794. PR middle-end/38969
  27795. * calls.c (initialize_argument_information): Do not wrap complex
  27796. arguments in SAVE_EXPR.
  27797. 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
  27798. * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
  27799. (INSTALL_LIBGCC): Revert typo commit.
  27800. 2009-01-26 Richard Guenther <rguenther@suse.de>
  27801. PR tree-optimization/38745
  27802. * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
  27803. from special handling.
  27804. 2009-01-26 Richard Guenther <rguenther@suse.de>
  27805. PR tree-optimization/38745
  27806. * tree-ssa.c (execute_update_addresses_taken): Do not include
  27807. variables that cannot possibly be a register in not_reg_needs.
  27808. Do not clear TREE_ADDRESSABLE on vars that may not become
  27809. registers.
  27810. * tree-ssa.c (update_alias_info_1): Include those in the set
  27811. of addressable vars.
  27812. 2009-01-26 Richard Guenther <rguenther@suse.de>
  27813. PR middle-end/38851
  27814. * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
  27815. * tree-ssa-dse.c: Include langhooks.h
  27816. (execute_simple_dse): Remove stores with zero size.
  27817. 2009-01-24 Jakub Jelinek <jakub@redhat.com>
  27818. PR c/38957
  27819. * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
  27820. as PLUS_EXPR.
  27821. 2009-01-24 Julian Brown <julian@codesourcery.com>
  27822. * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
  27823. config/arm/linux-atomic.c.
  27824. * config/arm/linux-atomic.c: New.
  27825. 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
  27826. * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
  27827. * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
  27828. * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
  27829. 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
  27830. PR c/38938
  27831. * c-opts.c (c_common_handle_option): Update warn_pointer_sign
  27832. properly.
  27833. 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
  27834. PR tree-optimization/38953
  27835. * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
  27836. (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
  27837. (gloog): Split the exit of the scop when the scop exit is a loop exit.
  27838. (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
  27839. changed the CFG.
  27840. 2009-01-24 Paul Brook <paul@codesourcery.com>
  27841. * config/arm/neon.md (neon_type): Move to arm.md.
  27842. (neon_mov<VSTRUCT>): Add neon_type attribute.
  27843. * config/arm/arm.md (neon_type): Move to here.
  27844. (conds): Add "unconditioal" and use as default for NEON insns.
  27845. 2009-01-24 Ben Elliston <bje@au.ibm.com>
  27846. * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
  27847. void *' warning from -Wc++-compat.
  27848. * Makefile.in (dominance.o-warn): Remove.
  27849. 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
  27850. PR tree-optimization/38932
  27851. * fold-const.c (fold_unary_ignore_overflow): New.
  27852. * tree.h (fold_unary_ignore_overflow): Declare.
  27853. * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
  27854. * tree-ssa-sccvn.c (visit_reference_op_load,
  27855. simplify_unary_expression): Likewise.
  27856. 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
  27857. * c-decl.c (finish_struct): Move code to set DECL_PACKED after
  27858. DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
  27859. regardless of their type.
  27860. * c-common.c (handle_packed_attribute): Don't ignore packed on
  27861. bitfields.
  27862. * c.opt (Wpacked-bitfield-compat): New warning option.
  27863. * stor-layout.c (place_field): Warn if offset of a field changed.
  27864. * doc/extend.texi (packed): Mention the ABI change.
  27865. * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
  27866. (Warning Options): Add it to the list.
  27867. 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
  27868. * c-opts.c (c_common_post_options): Fix a typo in comments.
  27869. 2009-01-22 Steve Ellcey <sje@cup.hp.com>
  27870. PR middle-end/38615
  27871. * gimplify.c (gimplify_init_constructor): Fix promotion of const
  27872. variables to static.
  27873. * doc/invoke.texi (-fmerge-all-constants): Update description.
  27874. 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
  27875. PR target/38931
  27876. * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
  27877. (*movdi_1_rex64): Use type "mmx" for alternative 5.
  27878. 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
  27879. * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
  27880. a word boundary.
  27881. (LOCAL_ALIGNMENT): Similarly.
  27882. 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
  27883. Joseph Myers <joseph@codesourcery.com>
  27884. * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
  27885. * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
  27886. * config/arm/arm-tune.md: Regenerate.
  27887. * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
  27888. -march=iwmmxt2.
  27889. 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
  27890. * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
  27891. version number to five.
  27892. 2009-01-22 Dodji Seketeli <dodji@redhat.com>
  27893. PR c++/38930
  27894. * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
  27895. * c-common.c (set_underlying_type): Likewise.
  27896. (is_typedef_decl ): Likewise
  27897. * tree.h: Likewise
  27898. (set_underlying_type): Likewise.
  27899. (is_typedef_type): Likewise.
  27900. 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
  27901. PR middle-end/38587
  27902. * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
  27903. crossing setjmps.
  27904. 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
  27905. PR bootstrap/37660
  27906. * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
  27907. (LIBGCC_SPEC): Don't define.
  27908. (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
  27909. 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
  27910. PR rtl-optimization/38879
  27911. * alias.c (base_alias_check): Unaligned access via AND address can
  27912. alias all surrounding object types except those with sizes equal
  27913. or wider than the size of unaligned access.
  27914. 2009-01-21 Dodji Seketeli <dodji@redhat.com>
  27915. PR c++/26693
  27916. * c-decl.c (clone_underlying_type): Move this ...
  27917. * c-common.c (set_underlying_type): ... here.
  27918. Also, make sure the function properly sets TYPE_STUB_DECL() on
  27919. the newly created typedef variant type.
  27920. (is_typedef_decl ): New entry point.
  27921. * tree.h: Added a new member member_types_needing_access_check to
  27922. struct tree_decl_non_common.
  27923. (set_underlying_type): New entry point.
  27924. (is_typedef_type): Likewise.
  27925. 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
  27926. * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
  27927. Check whether two instructions have memory references that
  27928. belong to conflicting alias sets. walk_mems_1 and walk_mems_2
  27929. are helper functions for traversing.
  27930. * alias.h (insn_alias_sets_confilict_p): New prototypes.
  27931. * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
  27932. not to draw dependency edge for instructions with non-conflicting
  27933. alias sets.
  27934. 2009-01-20 Joseph Myers <joseph@codesourcery.com>
  27935. PR other/38758
  27936. * longlong.h: Update copyright years. Use soft-fp license notice.
  27937. Sync __clz_tab declaration with glibc.
  27938. 2009-01-20 Steve Ellcey <sje@cup.hp.com>
  27939. PR target/30687
  27940. * doc/extend.texi (syscall_linkage): New.
  27941. (version_id): Modify.
  27942. 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
  27943. Richard Guenther <rguenther@suse.de>
  27944. PR tree-optimization/38747
  27945. PR tree-optimization/38748
  27946. * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
  27947. conversion if the base address is an indirect reference and the
  27948. aliasing sets could cause issues.
  27949. 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
  27950. * common.opt (fgraphite, fgraphite-identity): Add comment for
  27951. explaining why these options are not documented.
  27952. 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
  27953. * graphite.c (stmt_simple_for_scop_p): Also handle cases when
  27954. gimple_call_lhs is NULL.
  27955. 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
  27956. PR target/38868
  27957. * emit-rtl.c (adjust_address_1): Make sure memref is never
  27958. overwritten.
  27959. 2009-01-20 Ben Elliston <bje@au.ibm.com>
  27960. * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
  27961. const qualifier from arg parameter. Remove unnecessary cast to char *.
  27962. * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
  27963. const qualifier from arg 2.
  27964. 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
  27965. * config/darwin.h: Add static-libgfortran to LINK_SPEC.
  27966. 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
  27967. PR c/38869
  27968. * rtl.h (reinit_regs): New prototype.
  27969. * regclass.c: Include ira.h.
  27970. (reinit_regs): New.
  27971. * Makefile.in (regclass.o): Add ira.h.
  27972. * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
  27973. 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
  27974. PR target/38736
  27975. * c-common.c (handle_aligned_attribute): Use
  27976. ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
  27977. default alignment value.
  27978. * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
  27979. * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
  27980. * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
  27981. * doc/extend.texi: Update __attribute__ ((aligned)). Document
  27982. __BIGGEST_ALIGNMENT__.
  27983. * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
  27984. 2009-01-18 Richard Guenther <rguenther@suse.de>
  27985. PR tree-optimization/38819
  27986. * tree-flow.h (operation_could_trap_helper_p): Declare.
  27987. * tree-eh.c (operation_could_trap_helper_p): Export.
  27988. * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
  27989. * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
  27990. * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
  27991. are about to insert a possibly trapping instruction and fail
  27992. in this case.
  27993. 2009-01-18 Andreas Schwab <schwab@suse.de>
  27994. * doc/install.texi (Configuration): Remove obsolete paragraph
  27995. about use of --with-gnu-ld with --with-gnu-as.
  27996. 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
  27997. * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
  27998. doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
  27999. Follow spelling conventions.
  28000. 2009-01-18 Ben Elliston <bje@au.ibm.com>
  28001. * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
  28002. C++ warning about implicit conversion from void * to struct
  28003. bitmap_head_def *.
  28004. (bitmap_obstack_free): Likewise for bitmap_element *.
  28005. * Makefile.in (bitmap.o-warn): Remove.
  28006. 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
  28007. * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
  28008. 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
  28009. Tobias Grosser <tobi.grosser@amd.com>
  28010. * graphite.c (graphite_trans_scop_block): Do not block single
  28011. nested loops.
  28012. 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
  28013. * ebitmap.h (ebitmap_iter_init): Initialize all fields.
  28014. * ipa-struct-reorg.c (gen_struct_type): Replace known-true
  28015. test with assertion.
  28016. 2009-01-16 Richard Guenther <rguenther@suse.de>
  28017. PR tree-optimization/38835
  28018. PR middle-end/36227
  28019. * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
  28020. and INT + PTR -> (INT)(PTR p+ INT) folding.
  28021. * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
  28022. 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
  28023. PR target/38554
  28024. * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
  28025. the subreg from a lowpart subreg if it is also casting the value.
  28026. 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
  28027. Tobias Grosser <tobi.grosser@amd.com>
  28028. * graphite.c (compare_prefix_loops): New.
  28029. (build_scop_canonical_schedules): Rewritten.
  28030. (graphite_transform_loops): Move build_scop_canonical_schedules
  28031. after build_scop_iteration_domain.
  28032. 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
  28033. Tobias Grosser <tobi.grosser@amd.com>
  28034. * graphite.c (add_conditions_to_domain): Add the loops to
  28035. the dimension of the iteration domain. Do copy the domain
  28036. only when it exists.
  28037. (build_scop_conditions_1): Do not call add_conditions_to_domain.
  28038. (add_conditions_to_constraints): New.
  28039. (can_generate_code_stmt, can_generate_code): Removed.
  28040. (gloog): Do not call can_generate_code.
  28041. (graphite_transform_loops): Call add_conditions_to_constraints
  28042. after building the iteration domain.
  28043. 2009-01-16 Jakub Jelinek <jakub@redhat.com>
  28044. PR tree-optimization/38789
  28045. * tree-ssa-threadedge.c
  28046. (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
  28047. __builtin_constant_p.
  28048. 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
  28049. * dce.c (delete_unmarked_insns): Reversed the order that insns are
  28050. examined before deleting them.
  28051. 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
  28052. * function.c (aggregate_value_p): Correctly extract the function
  28053. type from CALL_EXPR_FN lookup.
  28054. 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
  28055. * config/picochip/picochip.c (picochip_override_options): Revert
  28056. CFI asm flag disable commited previously.
  28057. 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
  28058. Tobias Grosser <tobi.grosser@amd.com>
  28059. Jan Sjodin <jan.sjodin@amd.com>
  28060. * graphite.c (scan_tree_for_params): On substractions negate
  28061. all the coefficients of the term.
  28062. (clast_to_gcc_expression_red): New. Handle reduction expressions
  28063. of more than two operands.
  28064. (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
  28065. (get_vdef_before_scop): Handle also the case of default definitions.
  28066. 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
  28067. * caller-save.c (add_used_regs_1, add_used_regs): New functions.
  28068. (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
  28069. Also use them when walking CALL_INSN_FUNCTION_USAGE.
  28070. 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
  28071. Joey Ye <joey.ye@intel.com>
  28072. PR middle-end/37843
  28073. * cfgexpand.c (expand_stack_alignment): Don't update stack
  28074. boundary nor check incoming stack boundary here.
  28075. (gimple_expand_cfg): Update stack boundary and check incoming
  28076. stack boundary here.
  28077. 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
  28078. * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
  28079. 2009-01-14 Jakub Jelinek <jakub@redhat.com>
  28080. PR rtl-optimization/38245
  28081. * calls.c (expand_call): Add stack arguments to
  28082. CALL_INSN_FUNCTION_USAGE even for pure calls (when
  28083. ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
  28084. in regs and partially in memory or BLKmode arguments.
  28085. (emit_library_call_value_1): Add stack arguments to
  28086. CALL_INSN_FUNCTION_USAGE even for pure calls (when
  28087. ACCUMULATE_OUTGOING_ARGS).
  28088. * dce.c: Include tm_p.h.
  28089. (find_call_stack_args): New function.
  28090. (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
  28091. argument.
  28092. (mark_insn): Call find_call_stack_args for CALL_Ps.
  28093. (prescan_insns_for_dce): Walk insns backwards in bb rather than
  28094. forwards. Allocate and free arg_stores bitmap if needed, pass it
  28095. down to deletable_insn_p, don't mark stores set in arg_stores
  28096. bitmap, clear the bitmap at the beginning of each bb.
  28097. * Makefile.in (dce.o): Depend on $(TM_P_H).
  28098. 2009-01-14 Michael Meissner <gnu@the-meissners.org>
  28099. PR target/22599
  28100. * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
  28101. to make sure the insn is a conditional test (bug 22599). Reformat a
  28102. few long lines.
  28103. 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
  28104. PR middle-end/38431
  28105. * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
  28106. (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
  28107. (gloog): Do not call cleanup_tree_cfg.
  28108. (graphite_transform_loops): Call cleanup_tree_cfg after all
  28109. scops have been code generated.
  28110. 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
  28111. * doc/gty.texi (Invoking the garbage collector): Added new node
  28112. and section documenting ggc_collect.
  28113. 2009-01-14 Richard Guenther <rguenther@suse.de>
  28114. PR tree-optimization/38826
  28115. PR middle-end/38477
  28116. * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
  28117. initialization notes only if we actually emitted a warning.
  28118. (intra_create_variable_infos): Add constraints for a result decl
  28119. that is passed by hidden reference.
  28120. (build_pred_graph): Mark all related variables non-direct on
  28121. address-taking.
  28122. 2009-01-14 Nick Clifton <nickc@redhat.com>
  28123. * ira-conflicts.c: Include addresses.h for the definition of
  28124. base_reg_class.
  28125. (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
  28126. * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
  28127. 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
  28128. PR target/38811
  28129. * Makefile.in (ira-lives.o): Add except.h.
  28130. * ira-lives.c: Include except.h.
  28131. (process_bb_node_lives): Process can_throw_internal.
  28132. 2009-01-13 Jakub Jelinek <jakub@redhat.com>
  28133. PR rtl-optimization/38774
  28134. * combine.c (simplify_set): When undoing cc_use change, don't do
  28135. PUT_CODE on the newly created comparison, but instead put back the
  28136. old comparison.
  28137. 2009-01-13 Joseph Myers <joseph@codesourcery.com>
  28138. * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
  28139. values. Remove duplicate arm8 entry.
  28140. 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
  28141. PR tree-optimization/38786
  28142. * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
  28143. the SSA_NAME case of expand_scalar_variables_expr.
  28144. Set the type of an expression to the type of its assign statement.
  28145. (expand_scalar_variables_expr): Also gather the scalar computation
  28146. used to index the memory access. Do not pass loop_p.
  28147. Fix comment. Stop recursion on tcc_constant or tcc_declaration.
  28148. (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
  28149. the gimple_stmt_iterator where it inserts new code.
  28150. Do not pass loop_p.
  28151. (copy_bb_and_scalar_dependences): Do not pass loop_p.
  28152. (translate_clast): Update call to copy_bb_and_scalar_dependences.
  28153. 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
  28154. * graphite.h (debug_value): Removed.
  28155. * graphite.c (debug_value): Removed.
  28156. 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
  28157. * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
  28158. ldrd/strd with two 32-bit instructions.
  28159. 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
  28160. * config/arm/arm.c (struct processors): Pass for speed down into
  28161. cost helper functions.
  28162. (const_ok_for_op): Handle COMPARE and inequality nodes.
  28163. (arm_rtx_costs_1): Rewrite.
  28164. (arm_size_rtx_costs): Update prototype.
  28165. (arm_rtx_costs): Pass speed down to helper functions.
  28166. (arm_slowmul_rtx_costs): Rework cost calculations.
  28167. (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
  28168. (arm_9e_rtx_costs): Likewise.
  28169. 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
  28170. * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
  28171. relocations of local symbols wider than UNITS_PER_WORD are not valid.
  28172. (alpha_legitimize_address): Do not split local symbols wider than
  28173. UNITS_PER_WORD into HIGH/LO_SUM parts.
  28174. 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
  28175. PR bootstrap/38580
  28176. * gcc.c (process_command): Replace call to execvp with calls
  28177. to pex_one and exit.
  28178. 2009-01-03 Anatoly Sokolov <aesok@post.ru>
  28179. PR target/29141
  28180. * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
  28181. * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
  28182. variant for devices with 3-byte PC.
  28183. (__tablejump_elpm__): New.
  28184. 2009-01-12 Jakub Jelinek <jakub@redhat.com>
  28185. PR c/32041
  28186. * c-parser.c (c_parser_postfix_expression): Allow `->' in
  28187. offsetof member-designator, handle it as `[0].'.
  28188. 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  28189. * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
  28190. function when not using named sections on targets with named sections
  28191. if branch distance is less than 262132.
  28192. 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
  28193. * combine.c (combine_instructions): Recompute
  28194. optimize_this_for_speed_p for each BB in the main combine loop.
  28195. 2009-01-12 Tomas Bily <tbily@suse.cz>
  28196. PR middlend/38385
  28197. * tree-loop-distribution.c (prop_phis): New function.
  28198. (generate_builtin): Call prop_phis.
  28199. 2009-01-12 Jakub Jelinek <jakub@redhat.com>
  28200. PR tree-optimization/38807
  28201. * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
  28202. gimple_visited_p unless stmt is GIMPLE_ASSIGN.
  28203. 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
  28204. * expmed.c (store_bit_field_1): Properly truncate the paradoxical
  28205. subreg of op0 to the original op0.
  28206. 2009-01-11 Laurent GUERBY <laurent@guerby.net>
  28207. * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
  28208. 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
  28209. PR debug/7055
  28210. * mips-tfile.c (parse_def): Fix parsing of def strings
  28211. starting with digits.
  28212. 2009-01-10 Jakub Jelinek <jakub@redhat.com>
  28213. PR target/38695
  28214. * config/arm/arm.c (arm_is_long_call_p): Don't call
  28215. arm_function_in_section_p if decl isn't a FUNCTION_DECL.
  28216. 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
  28217. * regrename.c (regrename_optimize): Fix dumping.
  28218. (find_oldest_value_reg): Preserve REG_POINTER.
  28219. (copy_hardreg_forward_1): Likewise.
  28220. 2009-01-09 Diego Novillo <dnovillo@google.com>
  28221. * gimple.h (struct gimple_statement_base) <uid>: Document
  28222. the restrictions on its use.
  28223. (gimple_uid): Tidy.
  28224. (gimple_set_uid): Tidy.
  28225. 2009-01-09 Jakub Jelinek <jakub@redhat.com>
  28226. * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
  28227. zero guard even if align_bytes != 0 and count is smaller than
  28228. size_needed.
  28229. 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
  28230. PR rtl-optimization/38495
  28231. * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
  28232. (add_range_and_copies_from_move_list): Print all added ranges.
  28233. Add ranges to memory optimized destination.
  28234. 2009-01-09 Jakub Jelinek <jakub@redhat.com>
  28235. PR target/38686
  28236. PR target/38708
  28237. * config/i386/i386.c (override_options): Reject
  28238. -mstringop-strategy=rep_8byte with -m32.
  28239. (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
  28240. to 1. Do count comparison against epilogue_size_needed at compile
  28241. time even when count_exp was constant forced into register. For
  28242. size_needed don't jump to epilogue, instead just avoid aligning
  28243. and invoke the body algorithm. If need_zero_guard, add zero guard
  28244. even if count is non-zero, but smaller than size_needed + number of
  28245. bytes that could be stored for alignment.
  28246. (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
  28247. to 1. If need_zero_guard, add zero guard even if count is non-zero,
  28248. but smaller than size_needed + number of bytes that could be stored
  28249. for alignment. Compare size_needed with epilogue_size_needed instead
  28250. of desired_align - align, don't adjust size_needed, pass
  28251. epilogue_size_needed to the epilogue expanders.
  28252. PR c/35742
  28253. * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
  28254. 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  28255. * pa.c (last_address): Change to unsigned.
  28256. (update_total_code_bytes): Change argument to unsigned. Don't
  28257. check if insn addresses are set.
  28258. (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
  28259. addresses are not set.
  28260. (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
  28261. 2009-01-09 Nick Clifton <nickc@redhat.com>
  28262. * config/sh/symbian.c: Replace uses of DECL_INLINE with
  28263. DECL_DECLARED_INLINE_P.
  28264. 2009-01-09 Jakub Jelinek <jakub@redhat.com>
  28265. PR middle-end/38347
  28266. * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
  28267. GET_MODE (op0) in operand_subword_force calls.
  28268. PR middle-end/38771
  28269. * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
  28270. fold_convert arg0 operands to TREE_TYPE (op0) first.
  28271. 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
  28272. * params.def (ira-max-conflict-table-size): Decrease default value
  28273. to 1000.
  28274. 2009-01-08 Jakub Jelinek <jakub@redhat.com>
  28275. PR tree-optimization/37031
  28276. * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
  28277. on parameter_set.
  28278. (build_access_matrix): Reserve correct size for AM_MATRIX vector,
  28279. allocate it using gc instead of heap, use VEC_quick_push instead of
  28280. VEC_safe_push.
  28281. * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
  28282. instead of heap, use VEC_quick_push instead of VEC_safe_push.
  28283. * tree-data-ref.h (struct access_matrix): Change matrix to gc
  28284. allocated vector from heap allocated.
  28285. * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
  28286. * tree-loop-linear.c (linear_transform_loops): Allocate nest
  28287. vector only after perfect_loop_nest_depth call.
  28288. 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
  28289. Jan Sjodin <jan.sjodin@amd.com>
  28290. PR tree-optimization/38559
  28291. * graphite.c (debug_value, copy_constraint,
  28292. swap_constraint_variables, scale_constraint_variable, ): New.
  28293. (get_lower_bound, get_upper_bound): Removed.
  28294. (graphite_trans_bb_strip_mine): Clean up this code that works
  28295. only for constant number of iterations. Fully copy upper and
  28296. lower bound constraints, not only the constant part of them.
  28297. * graphite.h (debug_value): Declared.
  28298. 2009-01-08 Ira Rosen <irar@il.ibm.com>
  28299. PR tree-optimization/37194
  28300. * tree-vect-transform.c (vect_estimate_min_profitable_iters):
  28301. Don't add the cost of cost model guard in prologue to scalar
  28302. outside cost in case of known number of iterations.
  28303. 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
  28304. Alan Modra <amodra@bigpond.net.au>
  28305. * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
  28306. non-word-aligned REG+CONST addressing.
  28307. 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
  28308. PR target/38706
  28309. * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
  28310. free_after_compilation when outputting a thunk.
  28311. (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
  28312. Do not call free_after_compilation here.
  28313. 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
  28314. * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
  28315. (ix86_valid_target_attribute_inner_p): Ditto.
  28316. 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
  28317. PR tree-optimization/38492
  28318. PR tree-optimization/38498
  28319. * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
  28320. * tree-chrec.h (scev_is_linear_expression): Declared.
  28321. * graphite.c (graphite_cannot_represent_loop_niter): New.
  28322. (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
  28323. (graphite_loop_normal_form): Use gcc_assert.
  28324. (scan_tree_for_params): Use CASE_CONVERT.
  28325. (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
  28326. (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
  28327. Use gcc_assert. Discard scops that contain unhandled cases.
  28328. (build_scop_conditions): Return a boolean status for unhandled cases.
  28329. (strip_mine_profitable_p): Print the loop number, not its depth.
  28330. (is_interchange_valid): Pass the depth of the loop nest, don't
  28331. recompute it wrongly.
  28332. (graphite_trans_bb_block): Same.
  28333. (graphite_trans_bb_block): Print tentative of loop blocking.
  28334. (graphite_trans_scop_block): Do not print that the loop has been
  28335. blocked.
  28336. (graphite_transform_loops): Do not handle scops that contain condition
  28337. scalar phi nodes.
  28338. 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
  28339. AVX Programming Reference (December, 2008)
  28340. * config/i386/avxintrin.h (_mm256_stream_si256): New.
  28341. (_mm256_stream_pd): Likewise.
  28342. (_mm256_stream_ps): Likewise.
  28343. * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
  28344. IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
  28345. (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
  28346. (bdesc_special_args): Add __builtin_ia32_movntdq256,
  28347. __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
  28348. (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
  28349. (ix86_expand_special_args_builtin): Likewise.
  28350. * config/i386/sse.md (AVXMODEDI): New.
  28351. (avx_movnt<mode>): Likewise.
  28352. (avx_movnt<mode>): Likewise.
  28353. (<sse>_movnt<mode>): Remove AVX support.
  28354. (sse2_movntv2di): Likewise.
  28355. 2009-01-07 Richard Guenther <rguenther@suse.de>
  28356. PR middle-end/38751
  28357. * fold-const.c (extract_muldiv): Remove obsolete comment.
  28358. (fold_plusminus_mult_expr): Undo MINUS_EXPR
  28359. to PLUS_EXPR canonicalization for the canonicalization.
  28360. 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
  28361. * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
  28362. hosted cross-compilers generating less efficient code.
  28363. 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
  28364. * function.h (rtl_data): Add a dbr_scheduled_p field.
  28365. * reorg.c (dbr_schedule): Set it.
  28366. (gate_handle_delay_slots): Check it.
  28367. * config/mips/mips.c (mips_base_delayed_branch): Delete.
  28368. (mips_reorg): Check flag_delayed_branch instead of
  28369. mips_base_delayed_branch.
  28370. (mips_override_options): Don't set mips_base_delayed_branch
  28371. or flag_delayed_branch.
  28372. 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
  28373. PR rtl-optimization/38426.
  28374. * ira.c (ira): Set current_function_is_leaf earlier.
  28375. 2009-01-06 Jakub Jelinek <jakub@redhat.com>
  28376. PR rtl-optimization/38722
  28377. * combine.c (try_combine): Don't modify PATTERN (i3) and notes
  28378. too early, only set a flag and modify after last possible
  28379. undo_all point.
  28380. 2009-01-06 Janis Johnson <janis187@us.ibm.com>
  28381. PR c/34252
  28382. * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
  28383. * real.c (decimal_single_format): Correct values of emin and emax.
  28384. (decimal_double_format): Ditto.
  28385. (decimal_quad_format): Ditto.
  28386. * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
  28387. computation of DECnn_MIN and DECnn_MAX for corrected values of
  28388. emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
  28389. __DECnn_MIN__, and adjust its computation for the corrected value
  28390. of emin.
  28391. 2009-01-06 Jan Hubicka <jh@suse.cz>
  28392. PR target/38744
  28393. * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
  28394. 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
  28395. * doc/contrib.texi (Contributors): Slightly adjust the end note.
  28396. Add Robert Clark to the list of testers.
  28397. 2009-01-06 Jan Hubicka <jh@suse.cz>
  28398. Kai Tietz <kai.tietz@onevision.com>
  28399. * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
  28400. * config/i386/i386.c (ix86_expand_call): Add clobbers.
  28401. 2009-01-06 Jan Hubicka <jh@suse.cz>
  28402. Kai Tietz <kai.tietz@onevision.com>
  28403. * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
  28404. for w64 ABI.
  28405. * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
  28406. (ix86_nsaved_regs): Count only general purpose regs.
  28407. (ix86_nsaved_sseregs): New.
  28408. (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
  28409. to 16 for w64; compute padding and size of sse reg save area.
  28410. (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
  28411. general purpose regs.
  28412. (ix86_emit_save_sse_regs_using_mov): New.
  28413. (ix86_expand_prologue): Save SSE regs if needed.
  28414. (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
  28415. (ix86_emit_restore_sse_regs_using_mov): New.
  28416. (ix86_expand_epilogue): Save SSE regs if needed.
  28417. 2009-01-06 Jan Hubicka <jh@suse.cz>
  28418. Kai Tietz <kai.tietz@onevision.com>
  28419. * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
  28420. * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
  28421. functions when accumulate outgoing args is off.
  28422. 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
  28423. PR bootstrap/38742
  28424. * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
  28425. before using pseudos_have_intersected_live_ranges_p.
  28426. * ira-int.h (ira_assert): Always define.
  28427. 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
  28428. AVX Programming Reference (December, 2008)
  28429. * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
  28430. (_mm256_permute2_pd): Likewise.
  28431. (_mm_permute2_ps): Likewise.
  28432. (_mm256_permute2_ps): Likewise.
  28433. * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
  28434. * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
  28435. * config/i386/i386.c (ix86_builtins): Remove
  28436. IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
  28437. IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
  28438. (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
  28439. V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
  28440. and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
  28441. (bdesc_args): Remove __builtin_ia32_vpermil2pd,
  28442. __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
  28443. __builtin_ia32_vpermil2ps256.
  28444. (ix86_init_mmx_sse_builtins): Updated.
  28445. (ix86_expand_args_builtin): Likewise.
  28446. 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  28447. * pa.c (output_call): Relocate non-jump insns in the delay slot of
  28448. long absolute calls when generating PA 2.0 code.
  28449. 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
  28450. PR rtl-optimization/38583
  28451. * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
  28452. * params.def (ira-max-conflict-table-size): New.
  28453. * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
  28454. * ira.h (ira_conflicts_p): New external definition.
  28455. * ira-conflicts.c (build_conflict_bit_table): Do not build too big
  28456. table. Report this. Return result of building.
  28457. (ira_build_conflicts): Use ira_conflicts_p. Check result of
  28458. building conflict table.
  28459. * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
  28460. (ira_color): Use ira_conflicts_p.
  28461. * global.c: Include ira.h.
  28462. (pseudo_for_reload_consideration_p, build_insn_chain): Use
  28463. ira_conflicts_p.
  28464. * Makefile.in (global.o): Add ira.h.
  28465. * ira-build.c (mark_all_loops_for_removal,
  28466. propagate_some_info_from_allocno): New.
  28467. (remove_unnecessary_allocnos): Call
  28468. propagate_some_info_from_allocno.
  28469. (remove_low_level_allocnos): New.
  28470. (remove_unnecessary_regions): Add parameter. Call
  28471. mark_all_loops_for_removal and remove_low_level_allocnos. Pass
  28472. parameter to remove_unnecessary_regions.
  28473. (ira_build): Remove all regions but root if the conflict table was
  28474. not built. Update conflict hard regs for allocnos crossing calls.
  28475. * ira.c (ira_conflicts_p): New global.
  28476. (ira): Define and use ira_conflicts_p.
  28477. * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
  28478. count_spilled_pseudo, find_reg, alter_reg, finish_spills,
  28479. emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
  28480. 2009-01-06 Ben Elliston <bje@au.ibm.com>
  28481. * gengtype-lex.l (YY_NO_INPUT): Define.
  28482. 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
  28483. PR c/34911
  28484. * c-common.c (handle_vector_size_attribute): Also reject
  28485. BOOLEAN_TYPE types.
  28486. 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
  28487. PR tree-optimization/38492
  28488. * graphite.c (rename_map_elt, debug_rename_elt,
  28489. debug_rename_map_1, debug_rename_map, new_rename_map_elt,
  28490. rename_map_elt_info, eq_rename_map_elts,
  28491. get_new_name_from_old_name, bb_in_sese_p): Moved around.
  28492. (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
  28493. (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
  28494. (sese_build_livein_liveouts): New.
  28495. (new_sese, free_sese): New.
  28496. (new_scop): Call new_sese.
  28497. (free_scop): Call free_sese.
  28498. (rename_variables_from_edge, rename_phis_end_scop): Removed.
  28499. (register_old_new_names): Renamed register_old_and_new_names.
  28500. (register_scop_liveout_renames, add_loop_exit_phis,
  28501. insert_loop_close_phis, struct igp,
  28502. default_liveout_before_guard, add_guard_exit_phis,
  28503. insert_guard_phis, copy_renames): New.
  28504. (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
  28505. (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
  28506. (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
  28507. (scop_adjust_phis_for_liveouts): New.
  28508. (gloog): Call scop_adjust_phis_for_liveouts.
  28509. * graphite.h (struct sese): Documented. Added fields liveout,
  28510. num_ver and livein.
  28511. (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
  28512. (new_sese, free_sese, sese_build_livein_liveouts): Declared.
  28513. (struct scop): Added field liveout_renames.
  28514. (SCOP_LIVEOUT_RENAMES): New.
  28515. 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
  28516. PR tree-optimization/38510
  28517. * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
  28518. (translate_clast): Call recompute_all_dominators before
  28519. graphite_verify.
  28520. (gloog): Call recompute_all_dominators before graphite_verify.
  28521. 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
  28522. Jan Sjodin <jan.sjodin@amd.com>
  28523. PR tree-optimization/38500
  28524. * graphite.c (create_sese_edges): Call fix_loop_structure after
  28525. splitting blocks.
  28526. 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
  28527. * config.gcc: Add m32r*-*-rtems*.
  28528. * config/m32r/rtems.h: New file.
  28529. 2009-01-05 Ben Elliston <bje@au.ibm.com>
  28530. * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
  28531. (.po.pox): Likewise.
  28532. (po/gcc.pot): Likewise.
  28533. 2009-01-04 David S. Miller <davem@davemloft.net>
  28534. * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
  28535. (STARTING_FRAME_OFFSET): Always set to zero.
  28536. 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
  28537. * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
  28538. * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
  28539. fixed-point types, and vectors of the same.
  28540. 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
  28541. * config/mips/sync.md (*mb_barrier): Rename to...
  28542. (*memory_barrier): ...this.
  28543. 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
  28544. * doc/extend.texi (Function Attributes): Move @cindex after @item
  28545. for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
  28546. and put in alphabetical order. Fix 'target' name and put in order.
  28547. * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
  28548. typos.
  28549. 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
  28550. * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
  28551. (memory_barrier): Expand as unspec instead of unspec_volatile.
  28552. Remove mem:BLK from insn operands. Use Pmode scratch register.
  28553. (*memory_barrier): Define as unspec instead of unspec_volatile.
  28554. Use (match_dup 0) as input operand.
  28555. * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
  28556. * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
  28557. unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
  28558. scratch register. Remove operand 1.
  28559. (*stbar): Define as unspec instead of unspec_volatile.
  28560. Use (match_dup 0) as input operand, remove (const_int 8).
  28561. (*membar): Define as unspec instead of unspec_volatile.
  28562. Use (match_dup 0) as input operand, remove input operand 2.
  28563. * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
  28564. (memory_barrier): Expand as unspec instead of unspec_volatile.
  28565. Remove mem:BLK from insn operands. Use Pmode scratch register.
  28566. (*memory_barrier): Define as unspec instead of unspec_volatile.
  28567. Use (match_dup 0) as input operand.
  28568. * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
  28569. Remove mem:BLK from insn operands. Use Pmode scratch register.
  28570. Set volatile flag on operand 0.
  28571. (*memory_barrier): New insn pattern.
  28572. * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
  28573. insn operands.
  28574. (*memory_barrier): Use (match_dup 0) as input operand.
  28575. * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
  28576. Remove mem:BLK from insn operands. Use Pmode scratch register.
  28577. Set volatile flag on operand 0.
  28578. (*mb_internal): New insn pattern.
  28579. * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
  28580. 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
  28581. PR middle-end/38586
  28582. * function.c (struct temp_slot): Move to the section of the file
  28583. that deals with temp slots. Remove field 'address'.
  28584. (temp_slot_address_table): New hash table of address -> temp slot.
  28585. (struct temp_slot_address_entry): New struct, items for the table.
  28586. (temp_slot_address_compute_hash, temp_slot_address_hash,
  28587. temp_slot_address_eq, insert_temp_slot_address): Support functions
  28588. for the new table.
  28589. (find_temp_slot_from_address): Rewrite to use the new hash table.
  28590. (remove_unused_temp_slot_addresses): Remove addresses of temp
  28591. slots that have been made available.
  28592. (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
  28593. worker function for remove_unused_temp_slot_addresses.
  28594. (assign_stack_temp_for_type): Don't clear the temp slot address list.
  28595. Add the temp slot address to the address -> temp slot map.
  28596. (update_temp_slot_address): Update via insert_temp_slot_address.
  28597. (free_temp_slots): Call remove_unused_temp_slot_addresses.
  28598. (pop_temp_slots): Likewise.
  28599. (init_temp_slots): Allocate the address -> temp slot map, or empty
  28600. the map if it is already allocated.
  28601. (prepare_function_start): Initialize temp slot processing.
  28602. 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
  28603. PR middle-end/38584
  28604. * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
  28605. Calculate the size of all stack vars assuming no packing of stack
  28606. vars will happen, replacing a quadratic algorithm with a linear one.
  28607. 2009-01-03 Jakub Jelinek <jakub@redhat.com>
  28608. PR target/38707
  28609. * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
  28610. can't be used.
  28611. 2009-01-03 Diego Novillo <dnovillo@google.com>
  28612. * doc/contrib.texi: Update contributions.
  28613. 2009-01-03 Jakub Jelinek <jakub@redhat.com>
  28614. PR c++/38705
  28615. * builtins.c (fold_builtin_memory_op): Give up if either operand
  28616. is volatile. Set srctype or desttype to non-qualified version
  28617. of the other type.
  28618. PR c/38700
  28619. * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
  28620. and FUNCTION_DECLs.
  28621. 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
  28622. PR rtl-optimization/35805
  28623. * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
  28624. problem if fast dce is able to remove any instructions.
  28625. * dce.c (dce_process_block): Fix dump message.
  28626. 2009-01-02 Mark Mitchell <mark@codesourcery.com>
  28627. PR 33649
  28628. * tree-ssa-pre.c (compute_antic): Correct loop bounds.
  28629. 2009-01-02 Jakub Jelinek <jakub@redhat.com>
  28630. PR middle-end/38690
  28631. * tree-flow.h (op_code_prio, op_prio): New prototypes.
  28632. * tree-pretty-print.c (op_code_prio): New function.
  28633. (op_prio): No longer static. Use op_code_prio.
  28634. * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
  28635. Use op_prio and op_code_prio to determine if () should be
  28636. printed around operand(s) or not.
  28637. * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
  28638. dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
  28639. dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
  28640. dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
  28641. pp_character instead of pp_string for single letter printing.
  28642. 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
  28643. * doc/extend.texi: Fix '#pragma GCC option' typo.
  28644. 2009-01-02 Richard Guenther <rguenther@suse.de>
  28645. * doc/install.texi (--enable-checking): Mention different
  28646. default for stage1.
  28647. (--enable-stage1-checking): Document.
  28648. 2009-01-01 Andrew Pinski <pinskia@gmail.com>
  28649. PR middle-end/30142
  28650. * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
  28651. case to be an error.
  28652. 2009-01-02 Ben Elliston <bje@au.ibm.com>
  28653. * config/fp-bit.h (pack_d): Constify argument.
  28654. * config/fp-bit.c (makenan): Constify return type. Remove casts.
  28655. (isnan): Constify argument.
  28656. (isinf): Likewise.
  28657. (iszero): Likewise.
  28658. (pack_d): Likewise.
  28659. (_fpadd_parts): Constify return type.
  28660. (_fpmul_parts): Likewise.
  28661. (_fpdiv_parts): Likewise.
  28662. 2009-01-01 Jakub Jelinek <jakub@redhat.com>
  28663. PR c/36489
  28664. * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
  28665. warn about overwriting initializer with side-effects or
  28666. -Woverride-init if !IMPLICIT.
  28667. (output_init_element): Likewise. Pass IMPLICIT down to
  28668. add_pending_init.
  28669. (process_init_element): Add IMPLICIT argument. Pass it down
  28670. to output_init_element.
  28671. (push_init_element, pop_init_level, set_designator): Adjust
  28672. process_init_element callers.
  28673. (set_nonincremental_init, set_nonincremental_init_from_string):
  28674. Adjust add_pending_init callers.
  28675. (output_pending_init_elements): Adjust output_init_element callers.
  28676. * c-tree.h (process_init_element): Adjust prototype.
  28677. * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
  28678. process_init_element callers.
  28679. Copyright (C) 2009 Free Software Foundation, Inc.
  28680. Copying and distribution of this file, with or without modification,
  28681. are permitted in any medium without royalty provided the copyright
  28682. notice and this notice are preserved.