ChangeLog.old 249 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407
  1. Libffi change logs used to be maintained in separate ChangeLog files.
  2. These days we generate them directly from the git commit messages.
  3. The old ChangeLog files are saved here in order to maintain the historical
  4. record.
  5. =============================================================================
  6. From the old ChangeLog.libffi-3.1 file...
  7. 2014-03-16 Josh Triplett <josh@joshtriplett.org>
  8. * ChangeLog: Archive to ChangeLog.libffi-3.1 and delete. Future
  9. changelogs will come from git, with autogenerated snapshots shipped in
  10. distributed tarballs.
  11. 2014-03-16 Josh Triplett <josh@joshtriplett.org>
  12. Add support for stdcall, thiscall, and fastcall on non-Windows
  13. x86-32.
  14. Linux supports the stdcall calling convention, either via
  15. functions explicitly declared with the stdcall attribute, or via
  16. code compiled with -mrtd which effectively makes stdcall the
  17. default.
  18. This introduces FFI_STDCALL, FFI_THISCALL, and FFI_FASTCALL on
  19. non-Windows x86-32 platforms, as non-default calling conventions.
  20. * Makefile.am: Compile in src/x86/win32.S on non-Windows x86-32.
  21. * src/x86/ffitarget.h: Add FFI_STDCALL, FFI_THISCALL, and
  22. FFI_FASTCALL on non-Windows x86-32. Increase trampoline size to
  23. accomodate these calling conventions, and unify some ifdeffery.
  24. * src/x86/ffi.c: Add support for FFI_STDCALL, FFI_THISCALL, and
  25. FFI_FASTCALL on non-Windows x86-32 platforms; update ifdeffery.
  26. * src/x86/win32.S: Support compiling on non-Windows x86-32
  27. platforms. On those platforms, avoid redefining the SYSV symbols
  28. already provided by src/x86/sysv.S.
  29. * testsuite/libffi.call/closure_stdcall.c: Run on non-Windows.
  30. #define __stdcall if needed.
  31. * testsuite/libffi.call/closure_thiscall.c: Run on non-Windows.
  32. #define __fastcall if needed.
  33. * testsuite/libffi.call/fastthis1_win32.c: Run on non-Windows.
  34. * testsuite/libffi.call/fastthis2_win32.c: Ditto.
  35. * testsuite/libffi.call/fastthis3_win32.c: Ditto.
  36. * testsuite/libffi.call/many2_win32.c: Ditto.
  37. * testsuite/libffi.call/many_win32.c: Ditto.
  38. * testsuite/libffi.call/strlen2_win32.c: Ditto.
  39. * testsuite/libffi.call/strlen_win32.c: Ditto.
  40. * testsuite/libffi.call/struct1_win32.c: Ditto.
  41. * testsuite/libffi.call/struct2_win32.c: Ditto.
  42. 2014-03-16 Josh Triplett <josh@joshtriplett.org>
  43. * prep_cif.c: Remove unnecessary ifdef for X86_WIN32.
  44. ffi_prep_cif_core had a special case for X86_WIN32, checking for
  45. FFI_THISCALL in addition to the FFI_FIRST_ABI-to-FFI_LAST_ABI
  46. range before returning FFI_BAD_ABI. However, on X86_WIN32,
  47. FFI_THISCALL already falls in that range, making the special case
  48. unnecessary. Remove it.
  49. 2014-03-16 Josh Triplett <josh@joshtriplett.org>
  50. * testsuite/libffi.call/closure_stdcall.c,
  51. testsuite/libffi.call/closure_thiscall.c: Remove fragile stack
  52. pointer checks. These files included inline assembly to save the
  53. stack pointer before and after the call, and compare the values.
  54. However, compilers can and do leave the stack in different states
  55. for these two pieces of inline assembly, such as by saving a
  56. temporary value on the stack across the call; observed with gcc
  57. -Os, and verified as spurious through careful inspection of
  58. disassembly.
  59. 2014-03-16 Josh Triplett <josh@joshtriplett.org>
  60. * testsuite/libffi.call/many.c: Avoid spurious failure due to
  61. excess floating-point precision.
  62. * testsuite/libffi.call/many_win32.c: Ditto.
  63. 2014-03-16 Josh Triplett <josh@joshtriplett.org>
  64. * libtool-ldflags: Re-add.
  65. 2014-03-16 Josh Triplett <josh@joshtriplett.org>
  66. * Makefile.in, aclocal.m4, compile, config.guess, config.sub,
  67. configure, depcomp, include/Makefile.in, install-sh,
  68. libtool-ldflags, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4,
  69. m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4,
  70. man/Makefile.in, mdate-sh, missing, testsuite/Makefile.in: Delete
  71. autogenerated files from version control.
  72. * .gitignore: Add autogenerated files.
  73. * autogen.sh: New script to generate the autogenerated files.
  74. * README: Document requirement to run autogen.sh when building
  75. directly from version control.
  76. * .travis.yml: Run autogen.sh
  77. 2014-03-14 Anthony Green <green@moxielogic.com>
  78. * configure, Makefile.in: Rebuilt.
  79. 2014-03-10 Mike Hommey <mh+mozilla@glandium.org>
  80. * configure.ac: Allow building for mipsel with Android NDK r8.
  81. * Makefile.am (AM_MAKEFLAGS): Replace double quotes with single
  82. quotes.
  83. 2014-03-10 Landry Breuil <landry@openbsd.org>
  84. * configure.ac: Ensure the linker supports @unwind sections in libffi.
  85. 2014-03-01 Anthony Green <green@moxielogic.com>
  86. * Makefile.am (EXTRA_DIST): Replace old scripts with
  87. generate-darwin-source-and-headers.py.
  88. * Makefile.in: Rebuilt.
  89. 2014-02-28 Anthony Green <green@moxielogic.com>
  90. * Makefile.am (AM_CFLAGS): Reintroduce missing -DFFI_DEBUG for
  91. --enable-debug builds.
  92. * Makefile.in: Rebuilt.
  93. 2014-02-28 Makoto Kato <m_kato@ga2.so-net.ne.jp>
  94. * src/closures.c: Fix build failure when using clang for Android.
  95. 2014-02-28 Marcin Wojdyr <wojdyr@gmail.com>
  96. * libffi.pc.in (toolexeclibdir): use -L${toolexeclibdir} instead
  97. of -L${libdir}.
  98. 2014-02-28 Paulo Pizarro <paulo.pizarro@gmail.com>
  99. * src/bfin/sysv.S: Calling functions in shared libraries requires
  100. considering the GOT.
  101. 2014-02-28 Josh Triplett <josh@joshtriplett.org>
  102. * src/x86/ffi64.c (classify_argument): Handle case where
  103. FFI_TYPE_LONGDOUBLE == FFI_TYPE_DOUBLE.
  104. 2014-02-28 Anthony Green <green@moxielogic.com>
  105. * ltmain.sh: Generate with libtool-2.4.2.418.
  106. * m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4: Ditto.
  107. * configure: Rebuilt.
  108. 2014-02-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
  109. * configure.ac (AC_ARG_ENABLE struct): Fix typo in help
  110. message.
  111. (AC_ARG_ENABLE raw_api): Ditto.
  112. * configure, fficonfig.h.in: Rebuilt.
  113. 2014-02-28 Will Newton <will.newton@linaro.org>
  114. * src/arm/sysv.S: Initialize IP register with FP.
  115. 2014-02-28 Yufeng Zhang <yufeng.zhang@arm.com>
  116. * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
  117. main CFA reg; update cfi_rel_offset.
  118. 2014-02-15 Marcus Comstedt <marcus@mc.pp.se>
  119. * src/powerpc/ffi_linux64.c, src/powerpc/linux64_closure.S: Remove
  120. assumption on contents of r11 in closure.
  121. 2014-02-09 Heiher <r@hev.cc>
  122. * src/mips/n32.S: Fix call floating point va function.
  123. 2014-01-21 Zachary Waldowski <zach@waldowski.me>
  124. * src/aarch64/ffi.c: Fix missing semicolons on assertions under
  125. debug mode.
  126. 2013-12-30 Zachary Waldowski <zach@waldowski.me>
  127. * .gitignore: Exclude darwin_* generated source and build_* trees.
  128. * src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
  129. previous prototype warnings.
  130. * src/arm/ffi.c: Prevent NULL dereference, fix short type warning
  131. * src/dlmalloc.c: Fix warnings from set_segment_flags return type,
  132. and the native use of size_t for malloc on platforms
  133. * src/arm/sysv.S: Use unified syntax. Clang clean-ups for
  134. ARM_FUNC_START.
  135. * generate-osx-source-and-headers.py: Remove.
  136. * build-ios.sh: Remove.
  137. * libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
  138. x86_64+aarch64 pieces in library. Export headers properly.
  139. * src/x86/ffi64.c: More Clang warning clean-ups.
  140. * src/closures.c (open_temp_exec_file_dir): Use size_t.
  141. * src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
  142. * src/aarch64/sysv.S: Use CNAME for global symbols. Only use
  143. .size for ELF targets.
  144. * src/aarch64/ffi.c: Clean up for double == long double. Clean up
  145. from Clang warnings. Use Clang cache invalidation builtin. Use
  146. size_t in place of unsigned in many places. Accommodate for
  147. differences in Apple AArch64 ABI.
  148. 2013-12-02 Daniel Rodríguez Troitiño <drodrigueztroitino@yahoo.es>
  149. * generate-darwin-source-and-headers.py: Clean up, modernize,
  150. merged version of previous scripts.
  151. 2013-11-21 Anthony Green <green@moxielogic.com>
  152. * configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
  153. man/Makefile.in, testsuite/Makefile.in, fficonfig.h.in: Rebuilt.
  154. 2013-11-21 Alan Modra <amodra@gmail.com>
  155. * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
  156. (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
  157. * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
  158. * include/ffi.h.in (ffi_prep_types): Declare.
  159. * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
  160. * src/types.c (FFI_NONCONST_TYPEDEF): Define and use for
  161. HAVE_LONG_DOUBLE_VARIANT.
  162. * src/powerpc/ffi_powerpc.h: New file.
  163. * src/powerpc/ffi.c: Split into..
  164. * src/powerpc/ffi_sysv.c: ..new file, and..
  165. * src/powerpc/ffi_linux64.c: ..new file, rewriting parts.
  166. * src/powerpc/ffitarget.h (enum ffi_abi): Rewrite powerpc ABI
  167. selection as bits controlling features.
  168. * src/powerpc/linux64.S: For consistency, use POWERPC64 rather
  169. than __powerpc64__.
  170. * src/powerpc/linux64_closure.S: Likewise.
  171. * src/powerpc/ppc_closure.S: Likewise. Move .note.FNU-stack
  172. inside guard.
  173. * src/powerpc/sysv.S: Likewise.
  174. * configure: Regenerate.
  175. * fficonfig.h.in: Regenerate.
  176. * Makefile.in: Regenerate.
  177. 2013-11-20 Alan Modra <amodra@gmail.com>
  178. * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use
  179. NUM_FPR_ARG_REGISTERS64 and NUM_GPR_ARG_REGISTERS64 not their
  180. 32-bit versions for 64-bit code.
  181. * src/powerpc/linux64_closure.S: Don't use the return value area
  182. as a parameter save area on ELFv2.
  183. 2013-11-18 Iain Sandoe <iain@codesourcery.com>
  184. * src/powerpc/darwin.S (EH): Correct use of pcrel FDE encoding.
  185. * src/powerpc/darwin_closure.S (EH): Likewise. Modernise picbase
  186. labels.
  187. 2013-11-18 Anthony Green <green@moxielogic.com>
  188. * src/arm/ffi.c (ffi_call): Hoist declaration of temp to top of
  189. function.
  190. * src/arm/ffi.c (ffi_closure_inner): Moderize function declaration
  191. to appease compiler.
  192. Thanks for Gregory P. Smith <greg@krypto.org>.
  193. 2013-11-18 Anthony Green <green@moxielogic.com>
  194. * README (tested): Mention PowerPC ELFv2.
  195. 2013-11-16 Alan Modra <amodra@gmail.com>
  196. * src/powerpc/ppc_closure.S: Move errant #endif to where it belongs.
  197. Don't bl .Luint128.
  198. 2013-11-16 Alan Modra <amodra@gmail.com>
  199. * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use #if _CALL_ELF
  200. test to select parameter save sizing for ELFv2 vs. ELFv1.
  201. * src/powerpc/ffitarget.h (FFI_V2_TYPE_FLOAT_HOMOG,
  202. FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Define.
  203. (FFI_TRAMPOLINE_SIZE): Define variant for ELFv2.
  204. * src/powerpc/ffi.c (FLAG_ARG_NEEDS_PSAVE): Define.
  205. (discover_homogeneous_aggregate): New function.
  206. (ffi_prep_args64): Adjust start of param save area for ELFv2.
  207. Handle homogenous floating point struct parms.
  208. (ffi_prep_cif_machdep_core): Adjust space calculation for ELFv2.
  209. Handle ELFv2 return values. Set FLAG_ARG_NEEDS_PSAVE. Handle
  210. homogenous floating point structs.
  211. (ffi_call): Increase size of smst_buffer for ELFv2. Handle ELFv2.
  212. (flush_icache): Compile for ELFv2.
  213. (ffi_prep_closure_loc): Set up ELFv2 trampoline.
  214. (ffi_closure_helper_LINUX64): Don't return all structs directly
  215. to caller. Handle homogenous floating point structs. Handle
  216. ELFv2 struct return values.
  217. * src/powerpc/linux64.S (ffi_call_LINUX64): Set up r2 for
  218. ELFv2. Adjust toc save location. Call function pointer using
  219. r12. Handle FLAG_RETURNS_SMST. Don't predict branches.
  220. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Set up r2
  221. for ELFv2. Define ELFv2 versions of STACKFRAME, PARMSAVE, and
  222. RETVAL. Handle possibly missing parameter save area. Handle
  223. ELFv2 return values.
  224. (.note.GNU-stack): Move inside outer #ifdef.
  225. 2013-11-16 Alan Modra <amodra@gmail.com>
  226. * src/powerpc/ffi.c (ffi_prep_cif_machdep): Revert 2013-02-08
  227. change. Do not consume an int arg when returning a small struct
  228. for FFI_SYSV ABI.
  229. (ffi_call): Only use bounce buffer when FLAG_RETURNS_SMST.
  230. Properly copy bounce buffer to destination.
  231. * src/powerpc/sysv.S: Revert 2013-02-08 change.
  232. * src/powerpc/ppc_closure.S: Remove stray '+'.
  233. 2013-11-16 Alan Modra <amodra@gmail.com>
  234. * src/powerpc/ffi.c (ffi_prep_args64): Align struct parameters
  235. according to __STRUCT_PARM_ALIGN__.
  236. (ffi_prep_cif_machdep_core): Likewise.
  237. (ffi_closure_helper_LINUX64): Likewise.
  238. 2013-11-16 Alan Modra <amodra@gmail.com>
  239. * src/powerpc/linux64.S (ffi_call_LINUX64): Tweak restore of r28.
  240. (.note.GNU-stack): Move inside outer #ifdef.
  241. * src/powerpc/linux64_closure.S (STACKFRAME, PARMSAVE,
  242. RETVAL): Define and use throughout.
  243. (ffi_closure_LINUX64): Save fprs before buying stack.
  244. (.note.GNU-stack): Move inside outer #ifdef.
  245. 2013-11-16 Alan Modra <amodra@gmail.com>
  246. * src/powerpc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
  247. (FFI_EXTRA_CIF_FIELDS): Define.
  248. * src/powerpc/ffi.c (ffi_prep_args64): Save fprs as per the
  249. ABI, not to both fpr and param save area.
  250. (ffi_prep_cif_machdep_core): Renamed from ffi_prep_cif_machdep.
  251. Keep initial flags. Formatting. Remove dead FFI_LINUX_SOFT_FLOAT
  252. code.
  253. (ffi_prep_cif_machdep, ffi_prep_cif_machdep_var): New functions.
  254. (ffi_closure_helper_LINUX64): Pass floating point as per ABI,
  255. not to both fpr and parameter save areas.
  256. * libffi/testsuite/libffi.call/cls_double_va.c (main): Correct
  257. function cast and don't call ffi_prep_cif.
  258. * libffi/testsuite/libffi.call/cls_longdouble_va.c (main): Likewise.
  259. 2013-11-15 Andrew Haley <aph@redhat.com>
  260. * doc/libffi.texi (Closure Example): Fix the sample code.
  261. * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
  262. 2013-11-15 Andrew Haley <aph@redhat.com>
  263. * testsuite/libffi.call/va_struct1.c (main): Fix broken test.
  264. * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise
  265. * testsuite/libffi.call/cls_struct_va1.c (test_fn): Likewise.
  266. * testsuite/libffi.call/va_1.c (main): Likewise.
  267. 2013-11-14 David Schneider <david.schneider@bivab.de>
  268. * src/arm/ffi.c: Fix register allocation for mixed float and
  269. doubles.
  270. * testsuite/libffi.call/cls_many_mixed_float_double.c: Testcase
  271. for many mixed float and double arguments.
  272. 2013-11-13 Alan Modra <amodra@gmail.com>
  273. * doc/libffi.texi (Simple Example): Correct example code.
  274. * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
  275. 2013-11-13 Anthony Green <green@moxielogic.com>
  276. * include/ffi_common.h: Respect HAVE_ALLOCA_H for GNU compiler
  277. based build. (Thanks to tmr111116 on github)
  278. 2013-11-09 Anthony Green <green@moxielogic.com>
  279. * m4/libtool.m4: Refresh.
  280. * configure, Makefile.in: Rebuilt.
  281. * README: Add more notes about next release.
  282. 2013-11-09 Shigeharu TAKENO <shige@iee.niit.ac.jp>
  283. * m4/ax_gcc_archflag.m4 (ax_gcc_arch): Don't recognize
  284. UltraSPARC-IIi as ultrasparc3.
  285. 2013-11-06 Mark Kettenis <kettenis@gnu.org>
  286. * src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
  287. 16-bytes.
  288. 2013-11-06 Konstantin Belousov <kib@freebsd.org>
  289. * src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
  290. source as not requiring executable stack.
  291. 2013-11-02 Anthony Green <green@moxielogic.com>
  292. * doc/libffi.texi (The Basics): Clarify return value buffer size
  293. requirements. Also, NULL result buffer pointers are no longer
  294. supported.
  295. * doc/libffi.info: Rebuilt.
  296. 2013-11-02 Mischa Jonker <mjonker@synopsys.com>
  297. * Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
  298. * Makefile.in: Rebuilt.
  299. 2013-11-02 David Schneider <david.schneider@bivab.de>
  300. * src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
  301. * testsuite/libffi.call/many_mixed.c: New file.
  302. * testsuite/libffi.call/cls_many_mixed_args.c: More tests.
  303. 2013-11-02 Vitaly Budovski
  304. * src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
  305. 2013-10-23 Mark H Weaver <mhw@netris.org>
  306. * src/mips/ffi.c: Fix handling of uint32_t arguments on the
  307. MIPS N32 ABI.
  308. 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
  309. * README: Add Nios II to table of supported platforms.
  310. * Makefile.am (EXTRA_DIST): Add nios2 files.
  311. (nodist_libffi_la_SOURCES): Likewise.
  312. * Makefile.in: Regenerated.
  313. * configure.ac (nios2*-linux*): New host.
  314. (NIOS2): Add AM_CONDITIONAL.
  315. * configure: Regenerated.
  316. * src/nios2/ffi.c: New.
  317. * src/nios2/ffitarget.h: New.
  318. * src/nios2/sysv.S: New.
  319. * src/prep_cif.c (initialize_aggregate): Handle extra structure
  320. alignment via FFI_AGGREGATE_ALIGNMENT.
  321. (ffi_prep_cif_core): Conditionalize structure return for NIOS2.
  322. 2013-10-10 Sandra Loosemore <sandra@codesourcery.com>
  323. * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
  324. Fix uninitialized variable.
  325. 2013-10-11 Marcus Shawcroft <marcus.shawcroft@arm.com>
  326. * testsuite/libffi.call/many.c (many): Replace * with +.
  327. 2013-10-08 Ondřej Bílka <neleai@seznam.cz>
  328. * src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
  329. src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
  330. src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
  331. src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
  332. src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
  333. src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
  334. spelling errors.
  335. 2013-10-08 Anthony Green <green@moxielogic.com>
  336. * aclocal.m4, compile, config.guess, config.sub, depcomp,
  337. install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
  338. * configure.ac: Update version to 3.0.14-rc0.
  339. * Makefile.in, configure, Makefile.in, include/Makefile.in,
  340. man/Makefile.in, testsuite/Makefile.in: Rebuilt.
  341. * README: Mention M88K and VAX.
  342. 2013-07-15 Miod Vallat <miod@openbsd.org>
  343. * Makefile.am,
  344. configure.ac,
  345. src/m88k/ffi.c,
  346. src/m88k/ffitarget.h,
  347. src/m88k/obsd.S,
  348. src/vax/elfbsd.S,
  349. src/vax/ffi.c,
  350. src/vax/ffitarget.h: Add m88k and vax support.
  351. 2013-06-24 Alan Modra <amodra@gmail.com>
  352. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
  353. before statements.
  354. (ffi_prep_args64): Support little-endian.
  355. (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
  356. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
  357. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
  358. 2013-06-12 Mischa Jonker <mjonker@synopsys.com>
  359. * configure.ac: Add support for ARC.
  360. * Makefile.am: Likewise.
  361. * README: Add ARC details.
  362. * src/arc/arcompact.S: New.
  363. * src/arc/ffi.c: Likewise.
  364. * src/arc/ffitarget.h: Likewise.
  365. 2013-03-28 David Schneider <david.schneider@bivab.de>
  366. * src/arm/ffi.c: Fix support for ARM hard-float calling convention.
  367. * src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
  368. * testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
  369. mixed arguments, many doubles.
  370. * testsuite/libffi.call/many_double.c: testcase for calling a function using
  371. more than 8 doubles.
  372. * testcase/libffi.call/many.c: use absolute value to check result against an
  373. epsilon
  374. 2013-03-17 Anthony Green <green@moxielogic.com>
  375. * README: Update for 3.0.13.
  376. * configure.ac: Ditto.
  377. * configure: Rebuilt.
  378. * doc/*: Update version.
  379. 2013-03-17 Dave Korn <dave.korn.cygwin@gmail.com>
  380. * src/closures.c (is_emutramp_enabled
  381. [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
  382. enclosing #if scope.
  383. 2013-03-17 Anthony Green <green@moxielogic.com>
  384. * configure.ac: Only modify toolexecdir in certain cases.
  385. * configure: Rebuilt.
  386. 2013-03-16 Gilles Talis <gilles.talis@gmail.com>
  387. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
  388. fparg_count,etc on __NO_FPRS__ targets.
  389. 2013-03-16 Alan Hourihane <alanh@fairlite.co.uk>
  390. * src/m68k/sysv.S (epilogue): Don't use extb instruction on
  391. m680000 machines.
  392. 2013-03-16 Alex Gaynor <alex.gaynor@gmail.com>
  393. * src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
  394. 2013-03-13 Markos Chandras <markos.chandras@imgtec.com>
  395. * configure.ac: Add support for Imagination Technologies Meta.
  396. * Makefile.am: Likewise.
  397. * README: Add Imagination Technologies Meta details.
  398. * src/metag/ffi.c: New.
  399. * src/metag/ffitarget.h: Likewise.
  400. * src/metag/sysv.S: Likewise.
  401. 2013-02-24 Andreas Schwab <schwab@linux-m68k.org>
  402. * doc/libffi.texi (Structures): Fix missing category argument of
  403. @deftp.
  404. 2013-02-11 Anthony Green <green@moxielogic.com>
  405. * configure.ac: Update release number to 3.0.12.
  406. * configure: Rebuilt.
  407. * README: Update release info.
  408. 2013-02-10 Anthony Green <green@moxielogic.com>
  409. * README: Add Moxie.
  410. * src/moxie/ffi.c: Created.
  411. * src/moxie/eabi.S: Created.
  412. * src/moxie/ffitarget.h: Created.
  413. * Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
  414. * Makefile.in: Rebuilt.
  415. * configure.ac: Add Moxie.
  416. * configure: Rebuilt.
  417. * testsuite/libffi.call/huge_struct.c: Disable format string
  418. warnings for moxie*-*-elf tests.
  419. 2013-02-10 Anthony Green <green@moxielogic.com>
  420. * Makefile.am (LTLDFLAGS): Fix reference.
  421. * Makefile.in: Rebuilt.
  422. 2013-02-10 Anthony Green <green@moxielogic.com>
  423. * README: Update supported platforms. Update test results link.
  424. 2013-02-09 Anthony Green <green@moxielogic.com>
  425. * testsuite/libffi.call/negint.c: Remove forced -O2.
  426. * testsuite/libffi.call/many2.c (foo): Remove GCCism.
  427. * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
  428. * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
  429. closure return type fix developed by Martin v. Löwis for cpython
  430. fork.
  431. 2013-02-08 Andreas Tobler <andreast@fgznet.ch>
  432. * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
  433. support.
  434. * src/powerpc/sysv.S: Ditto.
  435. 2013-02-08 Anthony Green <green@moxielogic.com>
  436. * testsuite/libffi.call/cls_longdouble.c: Remove xfail for
  437. arm*-*-*.
  438. 2013-02-08 Anthony Green <green@moxielogic.com>
  439. * src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
  440. 2013-02-08 Matthias Klose <doko@ubuntu.com>
  441. * man/ffi_prep_cif.3: Clean up for debian linter.
  442. 2013-02-08 Peter Bergner <bergner@vnet.ibm.com>
  443. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
  444. on the stack.
  445. 2013-02-08 Anthony Green <green@moxielogic.com>
  446. * Makefile.am (EXTRA_DIST): Add missing files.
  447. * testsuite/Makefile.am (EXTRA_DIST): Ditto.
  448. * Makefile.in: Rebuilt.
  449. 2013-02-08 Anthony Green <green@moxielogic.com>
  450. * configure.ac: Move sparc asm config checks to within functions
  451. for compatibility with sun tools.
  452. * configure: Rebuilt.
  453. * src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
  454. systems.
  455. * src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
  456. flusher.
  457. 2013-02-08 Nathan Rossi <nathan.rossi@xilinx.com>
  458. * src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
  459. small big-endian structures.
  460. (ffi_prep_args): Ditto.
  461. 2013-02-07 Anthony Green <green@moxielogic.com>
  462. * src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
  463. (effectively hiding ffi_call_v8).
  464. 2013-02-07 Anthony Green <green@moxielogic.com>
  465. * configure.ac: Update bug reporting address.
  466. * configure.in: Rebuild.
  467. * src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
  468. Sun compiler.
  469. * src/sparc/ffi.c (ffi_call): Remove warning.
  470. Call ffi_flush_icache for non-GCC builds.
  471. (ffi_prep_closure_loc): Use ffi_flush_icache.
  472. * Makefile.am (EXTRA_DIST): Add libtool-ldflags.
  473. * Makefile.in: Rebuilt.
  474. * libtool-ldflags: New file.
  475. 2013-02-07 Daniel Schepler <dschepler@gmail.com>
  476. * configure.ac: Correctly identify x32 systems as 64-bit.
  477. * m4/libtool.m4: Remove libtool expr error.
  478. * aclocal.m4, configure: Rebuilt.
  479. 2013-02-07 Anthony Green <green@moxielogic.com>
  480. * configure.ac: Fix GCC usage test.
  481. * configure: Rebuilt.
  482. * README: Mention LLVM/GCC x86_64 issue.
  483. * testsuite/Makefile.in: Rebuilt.
  484. 2013-02-07 Anthony Green <green@moxielogic.com>
  485. * testsuite/libffi.call/cls_double_va.c (main): Replace // style
  486. comments with /* */ for xlc compiler.
  487. * testsuite/libffi.call/stret_large.c (main): Ditto.
  488. * testsuite/libffi.call/stret_large2.c (main): Ditto.
  489. * testsuite/libffi.call/nested_struct1.c (main): Ditto.
  490. * testsuite/libffi.call/huge_struct.c (main): Ditto.
  491. * testsuite/libffi.call/float_va.c (main): Ditto.
  492. * testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
  493. * testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
  494. * testsuite/libffi.call/cls_pointer.c (main): Ditto.
  495. * testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
  496. 2013-02-06 Anthony Green <green@moxielogic.com>
  497. * man/ffi_prep_cif.3: Clean up for debian lintian checker.
  498. 2013-02-06 Anthony Green <green@moxielogic.com>
  499. * Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
  500. * Makefile.in: Rebuild.
  501. 2013-02-02 Mark H Weaver <mhw@netris.org>
  502. * src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
  503. via general purpose registers.
  504. 2013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
  505. * README: Add MicroBlaze details.
  506. * Makefile.am: Add MicroBlaze support.
  507. * configure.ac: Likewise.
  508. * src/microblaze/ffi.c: New.
  509. * src/microblaze/ffitarget.h: Likewise.
  510. * src/microblaze/sysv.S: Likewise.
  511. 2013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
  512. * testsuite/libffi.call/return_uc.c: Fixed issue.
  513. 2013-01-21 Chris Zankel <chris@zankel.net>
  514. * README: Add Xtensa support.
  515. * Makefile.am: Likewise.
  516. * configure.ac: Likewise.
  517. * Makefile.in Regenerate.
  518. * configure: Likewise.
  519. * src/prep_cif.c: Handle Xtensa.
  520. * src/xtensa: New directory.
  521. * src/xtensa/ffi.c: New file.
  522. * src/xtensa/ffitarget.h: Ditto.
  523. * src/xtensa/sysv.S: Ditto.
  524. 2013-01-11 Anthony Green <green@moxielogic.com>
  525. * src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
  526. comments with /* */ for xlc compiler.
  527. * src/powerpc/aix.S (ffi_call_AIX): Ditto.
  528. * testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
  529. deprecated inline function.
  530. * testsuite/libffi.special/ffitestcxx.h: Ditto.
  531. * README: Add update for AIX support.
  532. 2013-01-11 Anthony Green <green@moxielogic.com>
  533. * configure.ac: Robustify pc relative reloc check.
  534. * m4/ax_cc_maxopt.m4: Don't -malign-double. This is an ABI
  535. changing option for 32-bit x86.
  536. * aclocal.m4, configure: Rebuilt.
  537. * README: Update supported target list.
  538. 2013-01-10 Anthony Green <green@moxielogic.com>
  539. * README (tested): Add Compiler column to table.
  540. 2013-01-10 Anthony Green <green@moxielogic.com>
  541. * src/x86/ffi64.c (struct register_args): Make sse array and array
  542. of unions for sunpro compiler compatibility.
  543. 2013-01-10 Anthony Green <green@moxielogic.com>
  544. * configure.ac: Test target platform size_t size. Handle both 32
  545. and 64-bit builds for x86_64-* and i?86-* targets (allowing for
  546. CFLAG option to change default settings).
  547. * configure, aclocal.m4: Rebuilt.
  548. 2013-01-10 Anthony Green <green@moxielogic.com>
  549. * testsuite/libffi.special/special.exp: Only run exception
  550. handling tests when using GNU compiler.
  551. * m4/ax_compiler_vendor.m4: New file.
  552. * configure.ac: Test for compiler vendor and don't use
  553. AX_CFLAGS_WARN_ALL with the sun compiler.
  554. * aclocal.m4, configure: Rebuilt.
  555. 2013-01-10 Anthony Green <green@moxielogic.com>
  556. * include/ffi_common.h: Don't use GCCisms to define types when
  557. building with the SUNPRO compiler.
  558. 2013-01-10 Anthony Green <green@moxielogic.com>
  559. * configure.ac: Put local.exp in the right place.
  560. * configure: Rebuilt.
  561. * src/x86/ffi.c: Update comment about regparm function attributes.
  562. * src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
  563. that all function arguments be passed on the stack (no regparm
  564. support).
  565. 2013-01-08 Anthony Green <green@moxielogic.com>
  566. * configure.ac: Generate local.exp. This sets CC_FOR_TARGET
  567. when we are using the vendor compiler.
  568. * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
  569. ../local.exp.
  570. * configure, testsuite/Makefile.in: Rebuilt.
  571. * testsuite/libffi.call/call.exp: Run tests with different
  572. options, depending on whether or not we are using gcc or the
  573. vendor compiler.
  574. * testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
  575. whether or not we are building/testing with gcc.
  576. 2013-01-08 Anthony Green <green@moxielogic.com>
  577. * configure.ac: Switch x86 solaris target to X86 by default.
  578. * configure: Rebuilt.
  579. 2013-01-08 Anthony Green <green@moxielogic.com>
  580. * configure.ac: Fix test for read-only eh_frame.
  581. * configure: Rebuilt.
  582. 2013-01-08 Anthony Green <green@moxielogic.com>
  583. * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
  584. when building with the GNU toolchain.
  585. * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
  586. compiler.
  587. 2013-01-07 Thorsten Glaser <tg@mirbsd.org>
  588. * testsuite/libffi.call/cls_uchar_va.c,
  589. testsuite/libffi.call/cls_ushort_va.c,
  590. testsuite/libffi.call/va_1.c: Testsuite fixes.
  591. 2013-01-07 Thorsten Glaser <tg@mirbsd.org>
  592. * src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
  593. (ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
  594. * src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
  595. 2013-01-04 Anthony Green <green@moxielogic.com>
  596. * Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
  597. and -Wall. This is set in the configure script after testing for
  598. GCC.
  599. * Makefile.in: Rebuilt.
  600. 2013-01-02 rofl0r <https://github.com/rofl0r>
  601. * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
  602. when long double == double.
  603. 2013-01-02 Reini Urban <rurban@x-ray.at>
  604. * Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
  605. (required for shared libs on cygwin/mingw).
  606. * Makefile.in: Rebuilt.
  607. 2012-10-31 Alan Modra <amodra@gmail.co>
  608. * src/powerpc/linux64_closure.S: Add new ABI support.
  609. * src/powerpc/linux64.S: Likewise.
  610. 2012-10-30 Magnus Granberg <zorry@gentoo.org>
  611. Pavel Labushev <pavel.labushev@runbox.ru>
  612. * configure.ac: New options pax_emutramp
  613. * configure, fficonfig.h.in: Regenerated
  614. * src/closures.c: New function emutramp_enabled_check() and
  615. checks.
  616. 2012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
  617. * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
  618. lion) and future version.
  619. * configure: Rebuild.
  620. 2012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
  621. Marcus Shawcroft <marcus.shawcroft at arm.com>
  622. * README: Add details of aarch64 port.
  623. * src/aarch64/ffi.c: New.
  624. * src/aarch64/ffitarget.h: Likewise.
  625. * src/aarch64/sysv.S: Likewise.
  626. * Makefile.am: Support aarch64.
  627. * configure.ac: Support aarch64.
  628. * Makefile.in, configure: Rebuilt.
  629. 2012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
  630. Marcus Shawcroft <marcus.shawcroft at arm.com>
  631. * testsuite/lib/libffi.exp: Add support for aarch64.
  632. * testsuite/libffi.call/cls_struct_va1.c: New.
  633. * testsuite/libffi.call/cls_uchar_va.c: Likewise.
  634. * testsuite/libffi.call/cls_uint_va.c: Likewise.
  635. * testsuite/libffi.call/cls_ulong_va.c: Likewise.
  636. * testsuite/libffi.call/cls_ushort_va.c: Likewise.
  637. * testsuite/libffi.call/nested_struct11.c: Likewise.
  638. * testsuite/libffi.call/uninitialized.c: Likewise.
  639. * testsuite/libffi.call/va_1.c: Likewise.
  640. * testsuite/libffi.call/va_struct1.c: Likewise.
  641. * testsuite/libffi.call/va_struct2.c: Likewise.
  642. * testsuite/libffi.call/va_struct3.c: Likewise.
  643. 2012-10-12 Walter Lee <walt@tilera.com>
  644. * Makefile.am: Add TILE-Gx/TILEPro support.
  645. * configure.ac: Likewise.
  646. * Makefile.in: Regenerate.
  647. * configure: Likewise.
  648. * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
  649. * src/tile: New directory.
  650. * src/tile/ffi.c: New file.
  651. * src/tile/ffitarget.h: Ditto.
  652. * src/tile/tile.S: Ditto.
  653. 2012-10-12 Matthias Klose <doko@ubuntu.com>
  654. * generate-osx-source-and-headers.py: Normalize whitespace.
  655. 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
  656. * configure: Regenerated.
  657. 2012-08-26 Andrew Pinski <apinski@cavium.com>
  658. PR libffi/53014
  659. * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
  660. soft-float.
  661. 2012-08-08 Uros Bizjak <ubizjak@gmail.com>
  662. * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
  663. just return FFI_BAD_ABI when things are wrong.
  664. 2012-07-18 H.J. Lu <hongjiu.lu@intel.com>
  665. PR libffi/53982
  666. PR libffi/53973
  667. * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
  668. (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
  669. 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
  670. * configure: Regenerated.
  671. 2012-05-05 Nicolas Lelong
  672. * libffi.xcodeproj/project.pbxproj: Fixes.
  673. * README: Update for iOS builds.
  674. 2012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
  675. * configure.ac: Add Blackfin/sysv support
  676. * Makefile.am: Add Blackfin/sysv support
  677. * src/bfin/ffi.c: Add Blackfin/sysv support
  678. * src/bfin/ffitarget.h: Add Blackfin/sysv support
  679. 2012-04-11 Anthony Green <green@moxielogic.com>
  680. * Makefile.am (EXTRA_DIST): Add new script.
  681. * Makefile.in: Rebuilt.
  682. 2012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
  683. * generate-ios-source-and-headers.py,
  684. libffi.xcodeproj/project.pbxproj: Support a Mac static library via
  685. Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
  686. generation into an Xcode "run script" phase. Include both as
  687. Xcode build scripts. Don't always regenerate config files.
  688. 2012-04-10 Anthony Green <green@moxielogic.com>
  689. * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
  690. 2012-04-06 Anthony Green <green@moxielogic.com>
  691. * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
  692. * Makefile.in: Rebuilt.
  693. 2012-04-06 Mike Lewis <mikelikespie@gmail.com>
  694. * generate-ios-source-and-headers.py: New file.
  695. * libffi.xcodeproj/project.pbxproj: New file.
  696. * README: Update instructions on building iOS binary.
  697. * build-ios.sh: Delete.
  698. 2012-04-06 Anthony Green <green@moxielogic.com>
  699. * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
  700. compilers, then use it.
  701. 2012-04-06 H.J. Lu <hongjiu.lu@intel.com>
  702. * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
  703. 2012-04-06 Anthony Green <green@moxielogic.com>
  704. * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
  705. * testsuite/Makefile.in: Rebuilt.
  706. 2012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
  707. * include/ffi.h.in: Add missing trampoline table fields.
  708. * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
  709. in CNAME.
  710. * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
  711. 2012-04-02 Peter Bergner <bergner@vnet.ibm.com>
  712. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
  713. Silence casting pointer to integer of different size warning.
  714. Delete goto to previously deleted label.
  715. (ffi_call): Silence possibly undefined warning.
  716. (ffi_closure_helper_SYSV): Declare variable type.
  717. 2012-04-02 Peter Rosin <peda@lysator.liu.se>
  718. * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
  719. value in the Intel version as is already done for the AT&T version.
  720. (ffi_closure_SYSV): Likewise.
  721. (ffi_closure_raw_SYSV): Likewise.
  722. (ffi_closure_STDCALL): Likewise.
  723. 2012-03-29 Peter Rosin <peda@lysator.liu.se>
  724. * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
  725. generation, fix the ENDP label and remove the surplus third arg
  726. from the 'lea' insn.
  727. 2012-03-29 Peter Rosin <peda@lysator.liu.se>
  728. * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
  729. visible outside the PROC, so that ffi_closure_raw_THISCALL can see
  730. it. Also instruct the assembler to add a frame to the function.
  731. 2012-03-23 Peter Rosin <peda@lysator.liu.se>
  732. * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
  733. * Makefile.in: Rebuilt.
  734. * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
  735. to all data exports, when compiling libffi clients using MSVC.
  736. 2012-03-29 Peter Rosin <peda@lysator.liu.se>
  737. * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
  738. make it the default for MSVC.
  739. (FFI_TYPE_MS_STRUCT): New structure return convention.
  740. * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
  741. return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
  742. instead of an ordinary FFI_TYPE_STRUCT.
  743. (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
  744. (ffi_call): Likewise.
  745. (ffi_prep_incoming_args_SYSV): Likewise.
  746. (ffi_raw_call): Likewise.
  747. (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
  748. * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
  749. return a pointer to the result structure in eax and don't pop
  750. that pointer from the stack, the caller takes care of it.
  751. (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
  752. (ffi_closure_raw_SYSV): Likewise.
  753. 2012-03-22 Peter Rosin <peda@lysator.liu.se>
  754. * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
  755. assembly version with Intel syntax.
  756. * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
  757. 2012-03-23 Peter Rosin <peda@lysator.liu.se>
  758. * testsuite/libffi.call/ffitest.h: Provide abstration of
  759. __attribute__((fastcall)) in the form of a __FASTCALL__
  760. define. Define it to __fastcall for MSVC.
  761. * testsuite/libffi.call/fastthis1_win32.c: Use the above.
  762. * testsuite/libffi.call/fastthis2_win32.c: Likewise.
  763. * testsuite/libffi.call/fastthis3_win32.c: Likewise.
  764. * testsuite/libffi.call/strlen2_win32.c: Likewise.
  765. * testsuite/libffi.call/struct1_win32.c: Likewise.
  766. * testsuite/libffi.call/struct2_win32.c: Likewise.
  767. 2012-03-22 Peter Rosin <peda@lysator.liu.se>
  768. * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
  769. frame on function entry, MASM adds one automatically.
  770. 2012-03-22 Peter Rosin <peda@lysator.liu.se>
  771. * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
  772. bits in the MSVC headers.
  773. 2012-03-22 Peter Rosin <peda@lysator.liu.se>
  774. * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
  775. with no declarations after statements.
  776. * testsuite/libffi.call/cls_16byte.c: Likewise.
  777. * testsuite/libffi.call/cls_18byte.c: Likewise.
  778. * testsuite/libffi.call/cls_19byte.c: Likewise.
  779. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  780. * testsuite/libffi.call/cls_20byte.c: Likewise.
  781. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  782. * testsuite/libffi.call/cls_24byte.c: Likewise.
  783. * testsuite/libffi.call/cls_2byte.c: Likewise.
  784. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  785. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  786. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  787. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  788. * testsuite/libffi.call/cls_4byte.c: Likewise.
  789. * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
  790. * testsuite/libffi.call/cls_5byte.c: Likewise.
  791. * testsuite/libffi.call/cls_64byte.c: Likewise.
  792. * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
  793. * testsuite/libffi.call/cls_6byte.c: Likewise.
  794. * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
  795. * testsuite/libffi.call/cls_7byte.c: Likewise.
  796. * testsuite/libffi.call/cls_8byte.c: Likewise.
  797. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  798. * testsuite/libffi.call/cls_9byte2.c: Likewise.
  799. * testsuite/libffi.call/cls_align_double.c: Likewise.
  800. * testsuite/libffi.call/cls_align_float.c: Likewise.
  801. * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
  802. * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
  803. * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
  804. * testsuite/libffi.call/cls_align_pointer.c: Likewise.
  805. * testsuite/libffi.call/cls_align_sint16.c: Likewise.
  806. * testsuite/libffi.call/cls_align_sint32.c: Likewise.
  807. * testsuite/libffi.call/cls_align_sint64.c: Likewise.
  808. * testsuite/libffi.call/cls_align_uint16.c: Likewise.
  809. * testsuite/libffi.call/cls_align_uint32.c: Likewise.
  810. * testsuite/libffi.call/cls_align_uint64.c: Likewise.
  811. * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
  812. * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
  813. * testsuite/libffi.call/err_bad_typedef.c: Likewise.
  814. * testsuite/libffi.call/huge_struct.c: Likewise.
  815. * testsuite/libffi.call/nested_struct.c: Likewise.
  816. * testsuite/libffi.call/nested_struct1.c: Likewise.
  817. * testsuite/libffi.call/nested_struct10.c: Likewise.
  818. * testsuite/libffi.call/nested_struct2.c: Likewise.
  819. * testsuite/libffi.call/nested_struct3.c: Likewise.
  820. * testsuite/libffi.call/nested_struct4.c: Likewise.
  821. * testsuite/libffi.call/nested_struct5.c: Likewise.
  822. * testsuite/libffi.call/nested_struct6.c: Likewise.
  823. * testsuite/libffi.call/nested_struct7.c: Likewise.
  824. * testsuite/libffi.call/nested_struct8.c: Likewise.
  825. * testsuite/libffi.call/nested_struct9.c: Likewise.
  826. * testsuite/libffi.call/stret_large.c: Likewise.
  827. * testsuite/libffi.call/stret_large2.c: Likewise.
  828. * testsuite/libffi.call/stret_medium.c: Likewise.
  829. * testsuite/libffi.call/stret_medium2.c: Likewise.
  830. * testsuite/libffi.call/struct1.c: Likewise.
  831. * testsuite/libffi.call/struct1_win32.c: Likewise.
  832. * testsuite/libffi.call/struct2.c: Likewise.
  833. * testsuite/libffi.call/struct2_win32.c: Likewise.
  834. * testsuite/libffi.call/struct3.c: Likewise.
  835. * testsuite/libffi.call/struct4.c: Likewise.
  836. * testsuite/libffi.call/struct5.c: Likewise.
  837. * testsuite/libffi.call/struct6.c: Likewise.
  838. * testsuite/libffi.call/struct7.c: Likewise.
  839. * testsuite/libffi.call/struct8.c: Likewise.
  840. * testsuite/libffi.call/struct9.c: Likewise.
  841. * testsuite/libffi.call/testclosure.c: Likewise.
  842. 2012-03-21 Peter Rosin <peda@lysator.liu.se>
  843. * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
  844. printing doubles (%lf is for long doubles).
  845. (main): Likewise.
  846. 2012-03-21 Peter Rosin <peda@lysator.liu.se>
  847. * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
  848. (set_ld_library_path_env_vars): Add the library search dir to PATH
  849. (and save PATH for later).
  850. (restore_ld_library_path_env_vars): Restore PATH.
  851. 2012-03-21 Peter Rosin <peda@lysator.liu.se>
  852. * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
  853. (set_ld_library_path_env_vars): Add the library search dir to PATH
  854. (and save PATH for later).
  855. (restore_ld_library_path_env_vars): Restore PATH.
  856. 2012-03-20 Peter Rosin <peda@lysator.liu.se>
  857. * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
  858. * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
  859. visible outside the PROC, so that ffi_closure_THISCALL can see it.
  860. 2012-03-20 Peter Rosin <peda@lysator.liu.se>
  861. * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
  862. * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
  863. visible outside the PROC, so that ffi_closure_THISCALL can see it.
  864. 2012-03-19 Alan Hourihane <alanh@fairlite.co.uk>
  865. * src/m68k/ffi.c: Add MINT support.
  866. * src/m68k/sysv.S: Ditto.
  867. 2012-03-06 Chung-Lin Tang <cltang@codesourcery.com>
  868. * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
  869. ffi_call_VFP().
  870. (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
  871. ffi_closure_VFP.
  872. * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
  873. 2012-03-19 chennam <csit@axway.com>
  874. * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
  875. support.
  876. 2012-03-13 Kaz Kojima <kkojima@gcc.gnu.org>
  877. * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
  878. just return FFI_BAD_ABI when things are wrong.
  879. * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
  880. 2012-03-09 David Edelsohn <dje.gcc@gmail.com>
  881. * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
  882. change to return value of ffi_closure_helper_DARWIN and load type
  883. from return type.
  884. 2012-03-03 H.J. Lu <hongjiu.lu@intel.com>
  885. * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
  886. long.
  887. (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
  888. (ffi_closure_unix64_inner): Cast return pointer to unsigned long
  889. first.
  890. * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
  891. (ffi_arg): Set to unsigned long long for x32.
  892. (ffi_sarg): Set to long long for x32.
  893. 2012-03-03 H.J. Lu <hongjiu.lu@intel.com>
  894. * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
  895. 2012-03-03 Andoni Morales Alastruey <ylatuya@gmail.com>
  896. * configure.ac: Add -no-undefined for both 32- and 64-bit x86
  897. windows-like hosts.
  898. * configure: Rebuilt.
  899. 2012-02-27 Mikael Pettersson <mikpe@it.uu.se>
  900. PR libffi/52223
  901. * Makefile.am (FLAGS_TO_PASS): Define.
  902. * Makefile.in: Regenerate.
  903. 2012-02-23 Anthony Green <green@moxielogic.com>
  904. * src/*/ffitarget.h: Ensure that users never include ffitarget.h
  905. directly.
  906. 2012-02-23 Kai Tietz <ktietz@redhat.com>
  907. PR libffi/52221
  908. * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
  909. prototype.
  910. (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
  911. thiscall-convention.
  912. (ffi_raw_call): Use ffi_prep_args_raw.
  913. * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
  914. implementation for stub.
  915. 2012-02-10 Kai Tietz <ktietz@redhat.com>
  916. * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
  917. windows target.
  918. * configure: Regenerated.
  919. 2012-02-08 Kai Tietz <ktietz@redhat.com>
  920. * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
  921. also FFI_THISCALL.
  922. * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
  923. (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
  924. (ffi_prep_closure_loc): Add FFI_THISCALL support.
  925. * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
  926. * src/x86/win32.S (ffi_closure_THISCALL): New closure code
  927. for thiscall-calling convention.
  928. * testsuite/libffi.call/closure_thiscall.c: New test.
  929. 2012-01-28 Kai Tietz <ktietz@redhat.com>
  930. * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
  931. argument to prototype for specify calling-convention.
  932. (ffi_call): Add support for stdcall/thiscall convention.
  933. (ffi_prep_args): Likewise.
  934. (ffi_raw_call): Likewise.
  935. * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
  936. FFI_FASTCALL.
  937. * src/x86/win32.S (_ffi_call_win32): Add support for
  938. fastcall/thiscall calling-convention calls.
  939. * testsuite/libffi.call/fastthis1_win32.c: New test.
  940. * testsuite/libffi.call/fastthis2_win32.c: New test.
  941. * testsuite/libffi.call/fastthis3_win32.c: New test.
  942. * testsuite/libffi.call/strlen2_win32.c: New test.
  943. * testsuite/libffi.call/many2_win32.c: New test.
  944. * testsuite/libffi.call/struct1_win32.c: New test.
  945. * testsuite/libffi.call/struct2_win32.c: New test.
  946. 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
  947. * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
  948. 2012-01-23 Anthony Green <green@moxielogic.com>
  949. Chris Young <cdyoung@ntlworld.com>
  950. * configure.ac: Add Amiga support.
  951. * configure: Rebuilt.
  952. 2012-01-23 Dmitry Nadezhin <dmitry.nadezhin@gmail.com>
  953. * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
  954. 2012-01-23 Andreas Schwab <schwab@linux-m68k.org>
  955. * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
  956. mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
  957. 2012-01-19 Jakub Jelinek <jakub@redhat.com>
  958. PR rtl-optimization/48496
  959. * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
  960. 2012-01-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  961. * configure.ac (i?86-*-*): Set TARGET to X86_64.
  962. * configure: Regenerate.
  963. 2011-12-07 Andrew Pinski <apinski@cavium.com>
  964. PR libffi/50051
  965. * src/mips/n32.S: Add ".set mips4".
  966. 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
  967. * configure: Regenerate.
  968. 2011-11-12 David Gilbert <david.gilbert@linaro.org>
  969. * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
  970. man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
  971. man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
  972. src/cris/ffi.c, src/prep_cif.c,
  973. testsuite/libffi.call/cls_double_va.c,
  974. testsuite/libffi.call/cls_longdouble_va.c,
  975. testsuite/libffi.call/float_va.c: Many changes to support variadic
  976. function calls.
  977. 2011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
  978. * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
  979. src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
  980. softfloat powerpc variants.
  981. 2011-11-12 Petr Salinger <Petr.Salinger@seznam.cz>
  982. * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
  983. * configure: Rebuilt.
  984. 2011-11-12 Timothy Wall <twall@users.sf.net>
  985. * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
  986. alignment of 4 for wince on ARM.
  987. 2011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
  988. Anthony Green <green@moxielogic.com>
  989. * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
  990. instructions (not available on some cores, like the PPC440).
  991. 2011-11-12 Kimura Wataru <kimuraw@i.nifty.jp>
  992. * m4/ax_enable_builddir: Change from string comparison to numeric
  993. comparison for wc output.
  994. * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
  995. X 10.7.
  996. * configure: Rebuilt.
  997. 2011-11-12 Anthony Green <green@moxielogic.com>
  998. * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
  999. files with debug info.
  1000. * Makefile.in: Rebuilt.
  1001. 2011-11-12 Jasper Lievisse Adriaanse <jasper@openbsd.org>
  1002. * README: Update list of supported OpenBSD systems.
  1003. 2011-11-12 Anthony Green <green@moxielogic.com>
  1004. * libtool-version: Update.
  1005. * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
  1006. FFI_DEBUG.
  1007. (libffi_la_SOURCES): Remove src/debug.c
  1008. (EXTRA_DIST): Add src/debug.c
  1009. * Makefile.in: Rebuilt.
  1010. * README: Update for 3.0.11.
  1011. 2011-11-10 Richard Henderson <rth@redhat.com>
  1012. * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
  1013. * configure, aclocal.m4: Rebuild.
  1014. 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
  1015. PR libffi/49594
  1016. * src/powerpc/darwin_closure.S (stubs): Make the stub binding
  1017. helper reference track the architecture pointer size.
  1018. 2011-08-25 Andrew Haley <aph@redhat.com>
  1019. * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
  1020. instructions.
  1021. * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
  1022. 2011-07-11 Andrew Haley <aph@redhat.com>
  1023. * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
  1024. 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1025. * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
  1026. * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
  1027. 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1028. PR libffi/46660
  1029. * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
  1030. mips-sgi-irix6*.
  1031. * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
  1032. 2011-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1033. * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
  1034. PRId8 instead of %hhu, %hhd.
  1035. * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
  1036. PRIu8): Define.
  1037. [__sgi__] (PRId8, PRIu8): Define.
  1038. 2011-04-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1039. * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
  1040. Define.
  1041. Use them to handle ELF vs. ECOFF differences.
  1042. [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
  1043. 2011-03-30 Timothy Wall <twall@users.sf.net>
  1044. * src/powerpc/darwin.S: Fix unknown FDE encoding.
  1045. * src/powerpc/darwin_closure.S: ditto.
  1046. 2011-02-25 Anthony Green <green@moxielogic.com>
  1047. * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
  1048. 32-bit ABIs.
  1049. 2011-02-15 Anthony Green <green@moxielogic.com>
  1050. * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
  1051. * configure: Rebuilt.
  1052. 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1053. * configure: Regenerate.
  1054. 2011-02-13 Anthony Green <green@moxielogic.com>
  1055. * include/ffi_common.h (UNLIKELY, LIKELY): Define.
  1056. * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
  1057. * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
  1058. * src/prep_cif.c (initialize_aggregate): Convert assertion into
  1059. FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
  1060. * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
  1061. just return FFI_BAD_ABI when things are wrong.
  1062. * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
  1063. * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
  1064. * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
  1065. * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
  1066. * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
  1067. 2011-02-11 Anthony Green <green@moxielogic.com>
  1068. * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
  1069. just return FFI_BAD_ABI when things are wrong.
  1070. 2012-02-11 Eric Botcazou <ebotcazou@adacore.com>
  1071. * src/sparc/v9.S (STACKFRAME): Bump to 176.
  1072. 2011-02-09 Stuart Shelton <srcshelton@gmail.com>
  1073. http://bugs.gentoo.org/show_bug.cgi?id=286911
  1074. * src/mips/ffitarget.h: Clean up error messages.
  1075. * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
  1076. ffi_raw*.
  1077. * include/ffi.h.in: Add pragma for SGI compiler.
  1078. 2011-02-09 Anthony Green <green@moxielogic.com>
  1079. * configure.ac: Add powerpc64-*-darwin* support.
  1080. 2011-02-09 Anthony Green <green@moxielogic.com>
  1081. * README: Mention Interix.
  1082. 2011-02-09 Jonathan Callen <abcd@gentoo.org>
  1083. * configure.ac: Add Interix to win32/cygwin/mingw case.
  1084. * configure: Ditto.
  1085. * src/closures.c: Treat Interix like Cygwin, instead of as a
  1086. generic win32.
  1087. 2011-02-09 Anthony Green <green@moxielogic.com>
  1088. * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
  1089. * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
  1090. * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
  1091. (ffi_prep_closure_loc): Check for bad ABI.
  1092. * src/prep_cif.c (UNLIKELY, LIKELY): Define.
  1093. (initialize_aggregate): Check for bad types.
  1094. 2011-02-09 Landon Fuller <landonf@plausible.coop>
  1095. * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
  1096. src/arm/trampoline.S.
  1097. (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
  1098. * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
  1099. * src/arm/ffi.c (ffi_trampoline_table)
  1100. (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
  1101. (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
  1102. (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
  1103. (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
  1104. Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
  1105. (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
  1106. separately.
  1107. * src/arm/sysv.S: Handle Apple iOS host.
  1108. * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
  1109. * build-ios.sh: New file.
  1110. * fficonfig.h.in, configure, Makefile.in: Rebuilt.
  1111. * README: Mention ARM iOS.
  1112. 2011-02-08 Oren Held <orenhe@il.ibm.com>
  1113. * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
  1114. redefinition of mallinfo on HP-UX.
  1115. 2011-02-08 Ginn Chen <ginn.chen@oracle.com>
  1116. * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
  1117. aggregate return ABI. Flush cache.
  1118. (ffi_prep_closure_loc): Flush cache.
  1119. 2011-02-11 Anthony Green <green@moxielogic.com>
  1120. From Tom Honermann <tom.honermann@oracle.com>:
  1121. * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
  1122. AIX. Declare .ffi_prep_args. Insert nops after branch
  1123. instructions so that the AIX linker can insert TOC reload
  1124. instructions.
  1125. * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
  1126. 2011-02-08 Ed <ed@kdtc.net>
  1127. * src/powerpc/asm.h: Fix grammar nit in comment.
  1128. 2011-02-08 Uli Link <ul.mcamafia@linkitup.de>
  1129. * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
  1130. 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1131. PR libffi/46661
  1132. * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
  1133. uintptr_t first.
  1134. * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
  1135. 2011-02-08 Rafael Avila de Espindola <respindola@mozilla.com>
  1136. * configure.ac: Fix x86 test for pc related relocs.
  1137. * configure: Rebuilt.
  1138. 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
  1139. * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
  1140. Handle case when CPU variant does not have long double support.
  1141. * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
  1142. and cores with soft floating point.
  1143. 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
  1144. * configure.ac: Add mips*-*-rtems* support.
  1145. * configure: Regenerate.
  1146. * src/mips/ffitarget.h: Ensure needed constants are available
  1147. for targets which do not have sgidefs.h.
  1148. 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
  1149. PR target/40125
  1150. * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
  1151. * configure: Regenerate.
  1152. 2010-12-18 Iain Sandoe <iains@gcc.gnu.org>
  1153. PR libffi/29152
  1154. PR libffi/42378
  1155. * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
  1156. update comments.
  1157. * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
  1158. (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
  1159. * src/powerpc/darwin.S: Provide Darwin64 implementation,
  1160. update comments.
  1161. * src/powerpc/ffi_darwin.c: Likewise.
  1162. 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1163. * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
  1164. backslashes.
  1165. (libffi_cv_as_string_pseudo_op): Likewise.
  1166. * configure: Regenerate.
  1167. 2010-12-03 Chung-Lin Tang <cltang@codesourcery.com>
  1168. * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
  1169. (ffi_closure_VFP): Same.
  1170. (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
  1171. directive.
  1172. 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1173. * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
  1174. (PRIuPTR): Define.
  1175. 2010-11-29 Richard Henderson <rth@redhat.com>
  1176. Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1177. * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
  1178. (.eh_frame): Use FDE_ENCODING.
  1179. (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
  1180. 2010-11-22 Jacek Caban <jacek@codeweavers.com>
  1181. * configure.ac: Check for symbol underscores on mingw-w64.
  1182. * configure: Rebuilt.
  1183. * src/x86/win64.S: Correctly access extern symbols in respect to
  1184. underscores.
  1185. 2010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1186. * testsuite/lib/libffi-dg.exp: Rename ...
  1187. * testsuite/lib/libffi.exp: ... to this.
  1188. * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
  1189. * libffi/testsuite/libffi.special/special.exp: Likewise.
  1190. 2010-10-28 Chung-Lin Tang <cltang@codesourcery.com>
  1191. * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
  1192. code, new parameter, and return value. Update comments.
  1193. (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
  1194. call to layout_vfp_args().
  1195. (ffi_call_SYSV): Update declaration.
  1196. (ffi_call_VFP): New declaration.
  1197. (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
  1198. when ABI is FFI_VFP.
  1199. (ffi_closure_VFP): New declaration.
  1200. (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
  1201. ffi_prep_incoming_args_SYSV().
  1202. (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
  1203. case handling.
  1204. (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
  1205. construction under VFP hard-float.
  1206. (rec_vfp_type_p): New function.
  1207. (vfp_type_p): Same.
  1208. (place_vfp_arg): Same.
  1209. (layout_vfp_args): Same.
  1210. * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
  1211. based on __ARM_PCS_VFP.
  1212. (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
  1213. fields.
  1214. (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
  1215. (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
  1216. * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
  1217. direct call. Move function pointer load upwards.
  1218. (ffi_call_VFP): New function.
  1219. (ffi_closure_VFP): Same.
  1220. * testsuite/lib/libffi-dg.exp (check-flags): New function.
  1221. (dg-skip-if): New function.
  1222. * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
  1223. and compiler options include -mfloat-abi=hard.
  1224. * testsuite/libffi.call/cls_longdouble_va.c: Same.
  1225. 2010-10-01 Jakub Jelinek <jakub@redhat.com>
  1226. PR libffi/45677
  1227. * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
  1228. a multiple of 8.
  1229. * testsuite/libffi.call/many2.c: New test.
  1230. 2010-08-20 Mark Wielaard <mjw@redhat.com>
  1231. * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
  1232. returns NULL.
  1233. 2010-08-09 Andreas Tobler <andreast@fgznet.ch>
  1234. * configure.ac: Add target powerpc64-*-freebsd*.
  1235. * configure: Regenerate.
  1236. * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
  1237. -mlong-double-128 only to linux targets.
  1238. * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
  1239. * testsuite/libffi.call/cls_longdouble.c: Likewise.
  1240. * testsuite/libffi.call/huge_struct.c: Likewise.
  1241. 2010-08-05 Dan Witte <dwitte@mozilla.com>
  1242. * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
  1243. debug CRT when --enable-debug is given.
  1244. * configure.ac: Define it.
  1245. * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
  1246. 2010-08-04 Dan Witte <dwitte@mozilla.com>
  1247. * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
  1248. platforms.
  1249. * src/x86/ffi.c: Remove redundant ifdef checks.
  1250. * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
  1251. for X86_ANY so return value space doesn't get added twice.
  1252. 2010-08-03 Neil Rashbrooke <neil@parkwaycc.co.uk>
  1253. * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
  1254. 2010-07-22 Dan Witte <dwitte@mozilla.com>
  1255. * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
  1256. * src/prep_cif.c: Fix ABI assertion.
  1257. * src/cris/ffi.c: Ditto.
  1258. 2010-07-10 Evan Phoenix <evan@fallingsnow.net>
  1259. * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
  1260. 2010-07-07 Dan Horák <dan@danny.cz>
  1261. * include/ffi.h.in: Protect #define with #ifndef.
  1262. * src/powerpc/ffitarget.h: Ditto.
  1263. * src/s390/ffitarget.h: Ditto.
  1264. * src/sparc/ffitarget.h: Ditto.
  1265. 2010-07-07 Neil Roberts <neil@linux.intel.com>
  1266. * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
  1267. 16-bytes.
  1268. 2010-07-02 Jakub Jelinek <jakub@redhat.com>
  1269. * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
  1270. * Makefile.in: Regenerated.
  1271. 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1272. * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
  1273. output, too.
  1274. (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
  1275. (libffi_cv_as_string_pseudo_op): Check for .string.
  1276. * configure: Regenerate.
  1277. * fficonfig.h.in: Regenerate.
  1278. * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
  1279. 2010-05-11 Dan Witte <dwitte@mozilla.com>
  1280. * doc/libffi.tex: Document previous change.
  1281. 2010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
  1282. * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
  1283. 2010-05-05 Michael Kohler <michaelkohler@live.com>
  1284. * src/dlmalloc.c (dlfree): Fix spelling.
  1285. * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
  1286. * configure.ac: Ditto.
  1287. * configure: Rebuilt.
  1288. 2010-04-13 Dan Witte <dwitte@mozilla.com>
  1289. * msvcc.sh: Build with -W3 instead of -Wall.
  1290. * src/powerpc/ffi_darwin.c: Remove build warnings.
  1291. * src/x86/ffi.c: Ditto.
  1292. * src/x86/ffitarget.h: Ditto.
  1293. 2010-04-12 Dan Witte <dwitte@mozilla.com>
  1294. Walter Meinl <wuno@lsvw.de>
  1295. * configure.ac: Add OS/2 support.
  1296. * configure: Rebuilt.
  1297. * src/closures.c: Ditto.
  1298. * src/dlmalloc.c: Ditto.
  1299. * src/x86/win32.S: Ditto.
  1300. 2010-04-07 Jakub Jelinek <jakub@redhat.com>
  1301. * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
  1302. 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1303. * Makefile.in: Regenerate.
  1304. * aclocal.m4: Regenerate.
  1305. * include/Makefile.in: Regenerate.
  1306. * man/Makefile.in: Regenerate.
  1307. * testsuite/Makefile.in: Regenerate.
  1308. 2010-03-30 Dan Witte <dwitte@mozilla.com>
  1309. * msvcc.sh: Disable build warnings.
  1310. * README (tested): Clarify windows build procedure.
  1311. 2010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1312. * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
  1313. * configure: Regenerate.
  1314. * fficonfig.h.in: Regenerate.
  1315. * libffi/src/x86/unix64.S (.eh_frame)
  1316. [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
  1317. 2010-03-14 Matthias Klose <doko@ubuntu.com>
  1318. * src/x86/ffi64.c: Fix typo in comment.
  1319. * src/x86/ffi.c: Use /* ... */ comment style.
  1320. 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1321. * doc/libffi.texi (The Closure API): Fix typo.
  1322. * doc/libffi.info: Remove.
  1323. 2010-02-15 Matthias Klose <doko@ubuntu.com>
  1324. * src/arm/sysv.S (__ARM_ARCH__): Define for processor
  1325. __ARM_ARCH_7EM__.
  1326. 2010-01-15 Anthony Green <green@redhat.com>
  1327. * README: Add notes on building with Microsoft Visual C++.
  1328. 2010-01-15 Daniel Witte <dwitte@mozilla.com>
  1329. * msvcc.sh: New file.
  1330. * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
  1331. * src/x86/ffi.c: Tweak function declaration and remove excess
  1332. parens.
  1333. * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
  1334. ffi_closure.
  1335. * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
  1336. function ffi_call_win32 on X86_WIN32.
  1337. * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
  1338. (ffi_call_STDCALL): Remove.
  1339. * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
  1340. to ffi_prep_cif_machdep for x86.
  1341. * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
  1342. 2010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
  1343. * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
  1344. Sun Studio compiler compatibility.
  1345. 2010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
  1346. * doc/libffi.texi: Add closure example.
  1347. 2010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1348. PR libffi/40701
  1349. * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
  1350. PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
  1351. * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
  1352. alpha*-dec-osf*.
  1353. * testsuite/libffi.call/cls_align_uint64.c: Likewise.
  1354. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  1355. * testsuite/libffi.call/return_ll1.c: Likewise.
  1356. * testsuite/libffi.call/stret_medium2.c: Likewise.
  1357. * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
  1358. MAP_FAILED to char *.
  1359. 2010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1360. * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
  1361. 2009-12-31 Anthony Green <green@redhat.com>
  1362. * README: Update for libffi 3.0.9.
  1363. 2009-12-27 Matthias Klose <doko@ubuntu.com>
  1364. * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
  1365. appropriate.
  1366. * configure: Rebuilt.
  1367. 2009-12-26 Anthony Green <green@redhat.com>
  1368. * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
  1369. avr32*-*-*.
  1370. * testsuite/libffi.call/cls_double_va.c: Ditto.
  1371. 2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
  1372. * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
  1373. and inttypes.h.
  1374. * testsuite/libffi.special/unwindtest.cc: Ditto.
  1375. 2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
  1376. * configure.ac: Add amd64-*-openbsd*.
  1377. * configure: Rebuilt.
  1378. * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
  1379. openbsd programs with -lpthread.
  1380. 2009-12-26 Anthony Green <green@redhat.com>
  1381. * testsuite/libffi.call/cls_double_va.c,
  1382. testsuite/libffi.call/cls_longdouble.c,
  1383. testsuite/libffi.call/cls_longdouble_va.c,
  1384. testsuite/libffi.call/cls_pointer.c,
  1385. testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
  1386. mips*-*-* and arm*-*-*.
  1387. * testsuite/libffi.call/cls_align_longdouble_split.c,
  1388. testsuite/libffi.call/cls_align_longdouble_split2.c,
  1389. testsuite/libffi.call/stret_medium2.c,
  1390. testsuite/libffi.call/stret_medium.c,
  1391. testsuite/libffi.call/stret_large.c,
  1392. testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
  1393. 2009-12-31 Kay Tietz <ktietz70@googlemail.com>
  1394. * testsuite/libffi.call/ffitest.h,
  1395. testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
  1396. definitions.
  1397. 2009-12-31 Carlo Bramini <carlo.bramix@libero.it>
  1398. * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
  1399. * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
  1400. * configure: Rebuilt.
  1401. * Makefile.in: Rebuilt.
  1402. 2009-12-31 Anthony Green <green@redhat.com>
  1403. Blake Chaffin.
  1404. * testsuite/libffi.call/huge_struct.c: New test case from Blake
  1405. Chaffin @ Apple.
  1406. 2009-12-28 David Edelsohn <edelsohn@gnu.org>
  1407. * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
  1408. local variables.
  1409. (aix_adjust_aggregate_sizes): New function.
  1410. (ffi_prep_cif_machdep): Call it.
  1411. 2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
  1412. * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
  1413. * configure: Regenerate.
  1414. * fficonfig.h.in: Likewise.
  1415. * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
  1416. Solaris/x86.
  1417. 2009-12-26 Andreas Schwab <schwab@linux-m68k.org>
  1418. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
  1419. when a float arguments is passed in memory.
  1420. (ffi_closure_helper_SYSV): Mark general registers as used up when
  1421. a 64bit or soft-float long double argument is passed in memory.
  1422. 2009-12-25 Matthias Klose <doko@ubuntu.com>
  1423. * man/ffi_call.3: Fix #include in examples.
  1424. * doc/libffi.texi: Add dircategory.
  1425. 2009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
  1426. * include/ffi.h.in: Placed '__GNUC__' ifdef around
  1427. '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
  1428. IRIX MIPSPro c99.
  1429. * include/ffi_common.h: Added '__sgi' define to non
  1430. '__attribute__((__mode__()))' integer typedefs.
  1431. * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
  1432. ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
  1433. (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
  1434. FFI_LONGDOUBLE support and alignment(N32 only).
  1435. * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
  1436. fixed non '__attribute__((__mode__()))' integer typedefs.
  1437. * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
  1438. since they are Linux/GNU Assembler specific.
  1439. 2009-12-25 Bradley Smith <brad@brad-smith.co.uk>
  1440. * configure.ac, Makefile.am, src/avr32/ffi.c,
  1441. src/avr32/ffitarget.h,
  1442. src/avr32/sysv.S: Add AVR32 port.
  1443. * configure, Makefile.in: Rebuilt.
  1444. 2009-12-21 Andreas Tobler <a.tobler@schweiz.org>
  1445. * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
  1446. * configure: Regenerate.
  1447. 2009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1448. * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
  1449. 2009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1450. * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
  1451. type on HP-UX.
  1452. 2012-02-13 Kai Tietz <ktietz@redhat.com>
  1453. PR libffi/52221
  1454. * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
  1455. support for X86_WIN32.
  1456. (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
  1457. 2009-12-11 Eric Botcazou <ebotcazou@adacore.com>
  1458. * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
  1459. double' arguments.
  1460. 2009-12-11 Eric Botcazou <ebotcazou@adacore.com>
  1461. * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
  1462. 2009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1463. PR libffi/40700
  1464. * src/closures.c [X86_64 && __sun__ && __svr4__]
  1465. (FFI_MMAP_EXEC_WRIT): Define.
  1466. 2009-12-08 David Daney <ddaney@caviumnetworks.com>
  1467. * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
  1468. * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
  1469. * testsuite/libffi.call/stret_large.c: Same.
  1470. * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
  1471. * testsuite/libffi.call/stret_large2.c: Same.
  1472. * testsuite/libffi.call/stret_medium2.c: Same.
  1473. 2009-12-07 David Edelsohn <edelsohn@gnu.org>
  1474. * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
  1475. typo.
  1476. 2009-12-05 David Edelsohn <edelsohn@gnu.org>
  1477. * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
  1478. code.
  1479. * src/powerpc/aix_closure.S: Same.
  1480. 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1481. * Makefile.in: Regenerate.
  1482. * configure: Regenerate.
  1483. * include/Makefile.in: Regenerate.
  1484. * man/Makefile.in: Regenerate.
  1485. * testsuite/Makefile.in: Regenerate.
  1486. 2009-12-04 David Edelsohn <edelsohn@gnu.org>
  1487. * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
  1488. linux64_closure.S.
  1489. 2009-12-04 Uros Bizjak <ubizjak@gmail.com>
  1490. PR libffi/41908
  1491. * src/x86/ffi64.c (classify_argument): Update from
  1492. gcc/config/i386/i386.c.
  1493. (ffi_closure_unix64_inner): Do not use the address of two consecutive
  1494. SSE registers directly.
  1495. * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
  1496. for x86_64 linux targets.
  1497. 2009-12-04 David Edelsohn <edelsohn@gnu.org>
  1498. * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
  1499. pfr for long double split between fpr13 and stack.
  1500. 2009-12-03 David Edelsohn <edelsohn@gnu.org>
  1501. * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
  1502. fparg_count twice for long double.
  1503. 2009-12-03 David Edelsohn <edelsohn@gnu.org>
  1504. PR libffi/42243
  1505. * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
  1506. 2009-12-03 Uros Bizjak <ubizjak@gmail.com>
  1507. * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
  1508. Remove xfails for x86 linux targets.
  1509. 2009-12-02 David Edelsohn <edelsohn@gnu.org>
  1510. * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
  1511. case.
  1512. 2009-12-01 David Edelsohn <edelsohn@gnu.org>
  1513. * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
  1514. register usage. Call ffi_prep_args directly. Add long double
  1515. return value support.
  1516. * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
  1517. applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
  1518. Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
  1519. (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
  1520. mode.
  1521. (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
  1522. into case.
  1523. * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
  1524. Allocate result area between params and FPRs.
  1525. 2009-11-30 David Edelsohn <edelsohn@gnu.org>
  1526. PR target/35484
  1527. * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
  1528. AIX64.
  1529. * src/powerpc/aix.S: Implement AIX64 version.
  1530. * src/powerpc/aix_closure.S: Implement AIX64 version.
  1531. (ffi_closure_ASM): Use extsb, lha and displament addresses.
  1532. * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
  1533. support.
  1534. (ffi_prep_cif_machdep): Same.
  1535. (ffi_call): Same.
  1536. (ffi_closure_helper_DARWIN): Same.
  1537. 2009-11-02 Andreas Tobler <a.tobler@schweiz.org>
  1538. PR libffi/41908
  1539. * testsuite/libffi.call/testclosure.c: New test.
  1540. 2009-09-28 Kai Tietz <kai.tietz@onevision.com>
  1541. * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
  1542. assembly version use of ___chkstk.
  1543. 2009-09-23 Matthias Klose <doko@ubuntu.com>
  1544. PR libffi/40242, PR libffi/41443
  1545. * src/arm/sysv.S (__ARM_ARCH__): Define for processors
  1546. __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
  1547. __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
  1548. Change the conditionals to __SOFTFP__ || __ARM_EABI__
  1549. for -mfloat-abi=softfp to work.
  1550. 2009-09-17 Loren J. Rittle <ljrittle@acm.org>
  1551. PR testsuite/32843 (strikes again)
  1552. * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
  1553. enable proper extension on char and short.
  1554. 2009-09-15 David Daney <ddaney@caviumnetworks.com>
  1555. * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
  1556. handling for FFI_TYPE_POINTER.
  1557. * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
  1558. FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
  1559. FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
  1560. FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
  1561. (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
  1562. (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
  1563. * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
  1564. structure and pointer returns.
  1565. (ffi_closure_N32): Add handling for pointer returns.
  1566. * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
  1567. calc_n32_return_struct_flags): Handle soft-float.
  1568. (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
  1569. (ffi_call_N32): Declare proper argument types.
  1570. (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
  1571. soft-float.
  1572. 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1573. * configure.ac (AC_PREREQ): Bump to 2.64.
  1574. 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1575. * Makefile.am (install-html, install-pdf): Remove.
  1576. * Makefile.in: Regenerate.
  1577. * Makefile.in: Regenerate.
  1578. * aclocal.m4: Regenerate.
  1579. * configure: Regenerate.
  1580. * fficonfig.h.in: Regenerate.
  1581. * include/Makefile.in: Regenerate.
  1582. * man/Makefile.in: Regenerate.
  1583. * testsuite/Makefile.in: Regenerate.
  1584. 2011-08-22 Jasper Lievisse Adriaanse <jasper@openbsd.org>
  1585. * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
  1586. * configure: Rebuilt.
  1587. 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1588. * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
  1589. 2009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
  1590. PR libffi/40807
  1591. * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
  1592. return types for X86_WIN32.
  1593. * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
  1594. (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
  1595. _ffi_closure_STDCALL): Likewise.
  1596. * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
  1597. (dlmmap, dlmunmap): Also use these functions on Cygwin.
  1598. 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
  1599. PR testsuite/40699
  1600. PR testsuite/40707
  1601. PR testsuite/40709
  1602. * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
  1603. 2009-06-30 commits.
  1604. 2009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  1605. * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
  1606. to "" before adding paths. (This reinstates an assignment that
  1607. was removed by my 2009-06-30 commit, but changes the initial
  1608. value from "." to "".)
  1609. 2009-07-01 H.J. Lu <hongjiu.lu@intel.com>
  1610. PR testsuite/40601
  1611. * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
  1612. gccdir. Adjust ld_library_path for gcc only if gccdir isn't
  1613. empty.
  1614. 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
  1615. * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
  1616. to ld_library_path. Use add_path. Add just find_libgcc_s
  1617. to ld_library_path, not every libgcc multilib directory.
  1618. 2009-06-16 Wim Lewis <wiml@hhhh.org>
  1619. * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
  1620. supposed to be callee-saved.
  1621. * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
  1622. return buffer for odd-size structs.
  1623. 2009-06-16 Andreas Tobler <a.tobler@schweiz.org>
  1624. PR libffi/40444
  1625. * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
  1626. allow_stack_execute for Darwin.
  1627. 2009-06-16 Andrew Haley <aph@redhat.com>
  1628. * configure.ac (TARGETDIR): Add missing blank lines.
  1629. * configure: Regenerate.
  1630. 2009-06-16 Andrew Haley <aph@redhat.com>
  1631. * testsuite/libffi.call/cls_align_sint64.c,
  1632. testsuite/libffi.call/cls_align_uint64.c,
  1633. testsuite/libffi.call/cls_longdouble_va.c,
  1634. testsuite/libffi.call/cls_ulonglong.c,
  1635. testsuite/libffi.call/return_ll1.c,
  1636. testsuite/libffi.call/stret_medium2.c: Fix printf format
  1637. specifiers.
  1638. * testsuite/libffi.call/ffitest.h,
  1639. testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
  1640. 2009-06-15 Andrew Haley <aph@redhat.com>
  1641. * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
  1642. * testsuite/libffi.call/err_bad_abi.c: Likewise.
  1643. 2009-06-12 Andrew Haley <aph@redhat.com>
  1644. * Makefile.am: Remove info_TEXINFOS.
  1645. 2009-06-12 Andrew Haley <aph@redhat.com>
  1646. * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
  1647. testsuite/libffi.call/cls_align_uint64.c,
  1648. testsuite/libffi.call/cls_ulonglong.c,
  1649. testsuite/libffi.call/return_ll1.c,
  1650. testsuite/libffi.call/stret_medium2.c: Fix printf format
  1651. specifiers.
  1652. testsuite/libffi.special/unwindtest.cc: include stdint.h.
  1653. 2009-06-11 Timothy Wall <twall@users.sf.net>
  1654. * Makefile.am,
  1655. configure.ac,
  1656. include/ffi.h.in,
  1657. include/ffi_common.h,
  1658. src/closures.c,
  1659. src/dlmalloc.c,
  1660. src/x86/ffi.c,
  1661. src/x86/ffitarget.h,
  1662. src/x86/win64.S (new),
  1663. README: Added win64 support (mingw or MSVC)
  1664. * Makefile.in,
  1665. include/Makefile.in,
  1666. man/Makefile.in,
  1667. testsuite/Makefile.in,
  1668. configure,
  1669. aclocal.m4: Regenerated
  1670. * ltcf-c.sh: properly escape cygwin/w32 path
  1671. * man/ffi_call.3: Clarify size requirements for return value.
  1672. * src/x86/ffi64.c: Fix filename in comment.
  1673. * src/x86/win32.S: Remove unused extern.
  1674. * testsuite/libffi.call/closure_fn0.c,
  1675. testsuite/libffi.call/closure_fn1.c,
  1676. testsuite/libffi.call/closure_fn2.c,
  1677. testsuite/libffi.call/closure_fn3.c,
  1678. testsuite/libffi.call/closure_fn4.c,
  1679. testsuite/libffi.call/closure_fn5.c,
  1680. testsuite/libffi.call/closure_fn6.c,
  1681. testsuite/libffi.call/closure_stdcall.c,
  1682. testsuite/libffi.call/cls_12byte.c,
  1683. testsuite/libffi.call/cls_16byte.c,
  1684. testsuite/libffi.call/cls_18byte.c,
  1685. testsuite/libffi.call/cls_19byte.c,
  1686. testsuite/libffi.call/cls_1_1byte.c,
  1687. testsuite/libffi.call/cls_20byte.c,
  1688. testsuite/libffi.call/cls_20byte1.c,
  1689. testsuite/libffi.call/cls_24byte.c,
  1690. testsuite/libffi.call/cls_2byte.c,
  1691. testsuite/libffi.call/cls_3_1byte.c,
  1692. testsuite/libffi.call/cls_3byte1.c,
  1693. testsuite/libffi.call/cls_3byte2.c,
  1694. testsuite/libffi.call/cls_4_1byte.c,
  1695. testsuite/libffi.call/cls_4byte.c,
  1696. testsuite/libffi.call/cls_5_1_byte.c,
  1697. testsuite/libffi.call/cls_5byte.c,
  1698. testsuite/libffi.call/cls_64byte.c,
  1699. testsuite/libffi.call/cls_6_1_byte.c,
  1700. testsuite/libffi.call/cls_6byte.c,
  1701. testsuite/libffi.call/cls_7_1_byte.c,
  1702. testsuite/libffi.call/cls_7byte.c,
  1703. testsuite/libffi.call/cls_8byte.c,
  1704. testsuite/libffi.call/cls_9byte1.c,
  1705. testsuite/libffi.call/cls_9byte2.c,
  1706. testsuite/libffi.call/cls_align_double.c,
  1707. testsuite/libffi.call/cls_align_float.c,
  1708. testsuite/libffi.call/cls_align_longdouble.c,
  1709. testsuite/libffi.call/cls_align_longdouble_split.c,
  1710. testsuite/libffi.call/cls_align_longdouble_split2.c,
  1711. testsuite/libffi.call/cls_align_pointer.c,
  1712. testsuite/libffi.call/cls_align_sint16.c,
  1713. testsuite/libffi.call/cls_align_sint32.c,
  1714. testsuite/libffi.call/cls_align_sint64.c,
  1715. testsuite/libffi.call/cls_align_uint16.c,
  1716. testsuite/libffi.call/cls_align_uint32.c,
  1717. testsuite/libffi.call/cls_align_uint64.c,
  1718. testsuite/libffi.call/cls_dbls_struct.c,
  1719. testsuite/libffi.call/cls_double.c,
  1720. testsuite/libffi.call/cls_double_va.c,
  1721. testsuite/libffi.call/cls_float.c,
  1722. testsuite/libffi.call/cls_longdouble.c,
  1723. testsuite/libffi.call/cls_longdouble_va.c,
  1724. testsuite/libffi.call/cls_multi_schar.c,
  1725. testsuite/libffi.call/cls_multi_sshort.c,
  1726. testsuite/libffi.call/cls_multi_sshortchar.c,
  1727. testsuite/libffi.call/cls_multi_uchar.c,
  1728. testsuite/libffi.call/cls_multi_ushort.c,
  1729. testsuite/libffi.call/cls_multi_ushortchar.c,
  1730. testsuite/libffi.call/cls_pointer.c,
  1731. testsuite/libffi.call/cls_pointer_stack.c,
  1732. testsuite/libffi.call/cls_schar.c,
  1733. testsuite/libffi.call/cls_sint.c,
  1734. testsuite/libffi.call/cls_sshort.c,
  1735. testsuite/libffi.call/cls_uchar.c,
  1736. testsuite/libffi.call/cls_uint.c,
  1737. testsuite/libffi.call/cls_ulonglong.c,
  1738. testsuite/libffi.call/cls_ushort.c,
  1739. testsuite/libffi.call/err_bad_abi.c,
  1740. testsuite/libffi.call/err_bad_typedef.c,
  1741. testsuite/libffi.call/float2.c,
  1742. testsuite/libffi.call/huge_struct.c,
  1743. testsuite/libffi.call/nested_struct.c,
  1744. testsuite/libffi.call/nested_struct1.c,
  1745. testsuite/libffi.call/nested_struct10.c,
  1746. testsuite/libffi.call/nested_struct2.c,
  1747. testsuite/libffi.call/nested_struct3.c,
  1748. testsuite/libffi.call/nested_struct4.c,
  1749. testsuite/libffi.call/nested_struct5.c,
  1750. testsuite/libffi.call/nested_struct6.c,
  1751. testsuite/libffi.call/nested_struct7.c,
  1752. testsuite/libffi.call/nested_struct8.c,
  1753. testsuite/libffi.call/nested_struct9.c,
  1754. testsuite/libffi.call/problem1.c,
  1755. testsuite/libffi.call/return_ldl.c,
  1756. testsuite/libffi.call/return_ll1.c,
  1757. testsuite/libffi.call/stret_large.c,
  1758. testsuite/libffi.call/stret_large2.c,
  1759. testsuite/libffi.call/stret_medium.c,
  1760. testsuite/libffi.call/stret_medium2.c,
  1761. testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
  1762. of checking for MMAP. Use intptr_t instead of long casts.
  1763. 2009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
  1764. * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
  1765. * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
  1766. * testsuite/libffi.call/err_bad_typedef.c: Likewise.
  1767. 2009-06-09 Andrew Haley <aph@redhat.com>
  1768. * src/x86/freebsd.S: Add missing file.
  1769. 2009-06-08 Andrew Haley <aph@redhat.com>
  1770. Import from libffi 3.0.8:
  1771. * doc/libffi.texi: New file.
  1772. * doc/libffi.info: Likewise.
  1773. * doc/stamp-vti: Likewise.
  1774. * man/Makefile.am: New file.
  1775. * man/ffi_call.3: New file.
  1776. * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
  1777. src/dlmalloc.c.
  1778. (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
  1779. * configure.ac: Bump version to 3.0.8.
  1780. parisc*-*-linux*: Add.
  1781. i386-*-freebsd* | i386-*-openbsd*: Add.
  1782. powerpc-*-beos*: Add.
  1783. AM_CONDITIONAL X86_FREEBSD: Add.
  1784. AC_CONFIG_FILES: Add man/Makefile.
  1785. * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
  1786. 2009-06-08 Andrew Haley <aph@redhat.com>
  1787. * README: Import from libffi 3.0.8.
  1788. 2009-06-08 Andrew Haley <aph@redhat.com>
  1789. * testsuite/libffi.call/err_bad_abi.c: Add xfails.
  1790. * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
  1791. * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
  1792. * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
  1793. * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
  1794. * testsuite/libffi.call/stret_medium.c: Likewise.
  1795. * testsuite/libffi.call/stret_large2.c: Likewise.
  1796. * testsuite/libffi.call/stret_large.c: Likewise.
  1797. 2008-12-26 Timothy Wall <twall@users.sf.net>
  1798. * testsuite/libffi.call/cls_longdouble.c,
  1799. testsuite/libffi.call/cls_longdouble_va.c,
  1800. testsuite/libffi.call/cls_align_longdouble.c,
  1801. testsuite/libffi.call/cls_align_longdouble_split.c,
  1802. testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
  1803. failures on x86_64 cygwin/mingw.
  1804. 2008-12-22 Timothy Wall <twall@users.sf.net>
  1805. * testsuite/libffi.call/closure_fn0.c,
  1806. testsuite/libffi.call/closure_fn1.c,
  1807. testsuite/libffi.call/closure_fn2.c,
  1808. testsuite/libffi.call/closure_fn3.c,
  1809. testsuite/libffi.call/closure_fn4.c,
  1810. testsuite/libffi.call/closure_fn5.c,
  1811. testsuite/libffi.call/closure_fn6.c,
  1812. testsuite/libffi.call/closure_loc_fn0.c,
  1813. testsuite/libffi.call/closure_stdcall.c,
  1814. testsuite/libffi.call/cls_align_pointer.c,
  1815. testsuite/libffi.call/cls_pointer.c,
  1816. testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
  1817. pointer to integer (intptr_t).
  1818. * testsuite/libffi.call/cls_longdouble.c: disable for win64.
  1819. 2008-07-24 Anthony Green <green@redhat.com>
  1820. * testsuite/libffi.call/cls_dbls_struct.c,
  1821. testsuite/libffi.call/cls_double_va.c,
  1822. testsuite/libffi.call/cls_longdouble.c,
  1823. testsuite/libffi.call/cls_longdouble_va.c,
  1824. testsuite/libffi.call/cls_pointer.c,
  1825. testsuite/libffi.call/cls_pointer_stack.c,
  1826. testsuite/libffi.call/err_bad_abi.c: Clean up failures from
  1827. compiler warnings.
  1828. 2008-03-04 Anthony Green <green@redhat.com>
  1829. Blake Chaffin
  1830. hos@tamanegi.org
  1831. * testsuite/libffi.call/cls_align_longdouble_split2.c
  1832. testsuite/libffi.call/cls_align_longdouble_split.c
  1833. testsuite/libffi.call/cls_dbls_struct.c
  1834. testsuite/libffi.call/cls_double_va.c
  1835. testsuite/libffi.call/cls_longdouble.c
  1836. testsuite/libffi.call/cls_longdouble_va.c
  1837. testsuite/libffi.call/cls_pointer.c
  1838. testsuite/libffi.call/cls_pointer_stack.c
  1839. testsuite/libffi.call/err_bad_abi.c
  1840. testsuite/libffi.call/err_bad_typedef.c
  1841. testsuite/libffi.call/stret_large2.c
  1842. testsuite/libffi.call/stret_large.c
  1843. testsuite/libffi.call/stret_medium2.c
  1844. testsuite/libffi.call/stret_medium.c: New tests from Apple.
  1845. 2009-06-05 Andrew Haley <aph@redhat.com>
  1846. * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
  1847. libffi.
  1848. 2009-06-04 Andrew Haley <aph@redhat.com>
  1849. * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
  1850. stdcall changes.
  1851. 2008-02-26 Anthony Green <green@redhat.com>
  1852. Thomas Heller <theller@ctypes.org>
  1853. * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
  1854. comment.
  1855. 2008-02-03 Timothy Wall <twall@users.sf.net>
  1856. * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
  1857. offset based on code pointer, not data pointer.
  1858. 2008-01-31 Timothy Wall <twall@users.sf.net>
  1859. * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
  1860. closures.
  1861. * src/x86/ffitarget.h: Increase size of trampoline for stdcall
  1862. closures.
  1863. * src/x86/win32.S: Add assembly for stdcall closure.
  1864. * src/x86/ffi.c: Initialize stdcall closure trampoline.
  1865. 2009-06-04 Andrew Haley <aph@redhat.com>
  1866. * include/ffi.h.in: Change void (*)() to void (*)(void).
  1867. * src/x86/ffi.c: Likewise.
  1868. 2009-06-04 Andrew Haley <aph@redhat.com>
  1869. * src/powerpc/ppc_closure.S: Insert licence header.
  1870. * src/powerpc/linux64_closure.S: Likewise.
  1871. * src/m68k/sysv.S: Likewise.
  1872. * src/sh64/ffi.c: Change void (*)() to void (*)(void).
  1873. * src/powerpc/ffi.c: Likewise.
  1874. * src/powerpc/ffi_darwin.c: Likewise.
  1875. * src/m32r/ffi.c: Likewise.
  1876. * src/sh64/ffi.c: Likewise.
  1877. * src/x86/ffi64.c: Likewise.
  1878. * src/alpha/ffi.c: Likewise.
  1879. * src/alpha/osf.S: Likewise.
  1880. * src/frv/ffi.c: Likewise.
  1881. * src/s390/ffi.c: Likewise.
  1882. * src/pa/ffi.c: Likewise.
  1883. * src/pa/hpux32.S: Likewise.
  1884. * src/ia64/unix.S: Likewise.
  1885. * src/ia64/ffi.c: Likewise.
  1886. * src/sparc/ffi.c: Likewise.
  1887. * src/mips/ffi.c: Likewise.
  1888. * src/sh/ffi.c: Likewise.
  1889. 2008-02-15 David Daney <ddaney@avtrex.com>
  1890. * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
  1891. Define (conditionally), and use it to include cachectl.h.
  1892. (ffi_prep_closure_loc): Fix cache flushing.
  1893. * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
  1894. 2009-06-04 Andrew Haley <aph@redhat.com>
  1895. include/ffi.h.in,
  1896. src/arm/ffitarget.h,
  1897. src/arm/ffi.c,
  1898. src/arm/sysv.S,
  1899. src/powerpc/ffitarget.h,
  1900. src/closures.c,
  1901. src/sh64/ffitarget.h,
  1902. src/sh64/ffi.c,
  1903. src/sh64/sysv.S,
  1904. src/types.c,
  1905. src/x86/ffi64.c,
  1906. src/x86/ffitarget.h,
  1907. src/x86/win32.S,
  1908. src/x86/darwin.S,
  1909. src/x86/ffi.c,
  1910. src/x86/sysv.S,
  1911. src/x86/unix64.S,
  1912. src/alpha/ffitarget.h,
  1913. src/alpha/ffi.c,
  1914. src/alpha/osf.S,
  1915. src/m68k/ffitarget.h,
  1916. src/frv/ffitarget.h,
  1917. src/frv/ffi.c,
  1918. src/s390/ffitarget.h,
  1919. src/s390/sysv.S,
  1920. src/cris/ffitarget.h,
  1921. src/pa/linux.S,
  1922. src/pa/ffitarget.h,
  1923. src/pa/ffi.c,
  1924. src/raw_api.c,
  1925. src/ia64/ffitarget.h,
  1926. src/ia64/unix.S,
  1927. src/ia64/ffi.c,
  1928. src/ia64/ia64_flags.h,
  1929. src/java_raw_api.c,
  1930. src/debug.c,
  1931. src/sparc/v9.S,
  1932. src/sparc/ffitarget.h,
  1933. src/sparc/ffi.c,
  1934. src/sparc/v8.S,
  1935. src/mips/ffitarget.h,
  1936. src/mips/n32.S,
  1937. src/mips/o32.S,
  1938. src/mips/ffi.c,
  1939. src/prep_cif.c,
  1940. src/sh/ffitarget.h,
  1941. src/sh/ffi.c,
  1942. src/sh/sysv.S: Update license text.
  1943. 2009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
  1944. * src/x86/win32.S (_ffi_closure_STDCALL): New function.
  1945. (.eh_frame): Add FDE for it.
  1946. 2009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
  1947. * configure.ac: Also check if assembler supports pc-relative
  1948. relocs on X86_WIN32 targets.
  1949. * configure: Regenerate.
  1950. * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
  1951. (_ffi_call_SYSV): Add missing function type symbol .def and
  1952. add EH markup labels.
  1953. (_ffi_call_STDCALL): Likewise.
  1954. (_ffi_closure_SYSV): Likewise.
  1955. (_ffi_closure_raw_SYSV): Likewise.
  1956. (.eh_frame): Add hand-crafted EH data.
  1957. 2009-04-09 Jakub Jelinek <jakub@redhat.com>
  1958. * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
  1959. version 3 of the GNU General Public License and to point readers
  1960. at the COPYING3 file and the FSF's license web page.
  1961. * testsuite/libffi.call/call.exp: Likewise.
  1962. * testsuite/libffi.special/special.exp: Likewise.
  1963. 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1964. * configure: Regenerate.
  1965. 2008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  1966. PR libffi/26048
  1967. * configure.ac (HAVE_AS_X86_PCREL): New test.
  1968. * configure: Regenerate.
  1969. * fficonfig.h.in: Regenerate.
  1970. * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
  1971. RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
  1972. RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
  1973. (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
  1974. * src/x86/unix64.S (.Lstore_table): Move to .text section.
  1975. (.Lload_table): Likewise.
  1976. (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
  1977. 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1978. * configure: Regenerate.
  1979. 2008-11-21 Eric Botcazou <ebotcazou@adacore.com>
  1980. * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
  1981. signed/unsigned int8/16 return values.
  1982. * src/sparc/v8.S (ffi_call_v8): Likewise.
  1983. (ffi_closure_v8): Likewise.
  1984. 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
  1985. Steve Ellcey <sje@cup.hp.com>
  1986. * configure: Regenerate for new libtool.
  1987. * Makefile.in: Ditto.
  1988. * include/Makefile.in: Ditto.
  1989. * aclocal.m4: Ditto.
  1990. 2008-08-25 Andreas Tobler <a.tobler@schweiz.org>
  1991. * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
  1992. FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
  1993. Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
  1994. Adjust copyright notice.
  1995. * src/powerpc/ffi.c: Add two new flags to indicate if we have one
  1996. register or two register to use for FFI_SYSV structs.
  1997. (ffi_prep_cif_machdep): Pass the right register flag introduced above.
  1998. (ffi_closure_helper_SYSV): Fix the return type for
  1999. FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
  2000. Adjust copyright notice.
  2001. 2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
  2002. * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
  2003. int.
  2004. 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  2005. * configure: Regenerate.
  2006. * include/Makefile.in: Regenerate.
  2007. * testsuite/Makefile.in: Regenerate.
  2008. 2008-06-07 Joseph Myers <joseph@codesourcery.com>
  2009. * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
  2010. powerpc-*-beos*): Remove.
  2011. * configure: Regenerate.
  2012. 2008-05-09 Julian Brown <julian@codesourcery.com>
  2013. * Makefile.am (LTLDFLAGS): New.
  2014. (libffi_la_LDFLAGS): Use above.
  2015. * Makefile.in: Regenerate.
  2016. 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
  2017. PR bootstrap/35457
  2018. * aclocal.m4: Regenerate.
  2019. * configure: Regenerate.
  2020. 2008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
  2021. * src/sh/sysv.S: Add .note.GNU-stack on Linux.
  2022. * src/sh64/sysv.S: Likewise.
  2023. 2008-03-26 Daniel Jacobowitz <dan@debian.org>
  2024. * src/arm/sysv.S: Fix ARM comment marker.
  2025. 2008-03-26 Jakub Jelinek <jakub@redhat.com>
  2026. * src/alpha/osf.S: Add .note.GNU-stack on Linux.
  2027. * src/s390/sysv.S: Likewise.
  2028. * src/powerpc/ppc_closure.S: Likewise.
  2029. * src/powerpc/sysv.S: Likewise.
  2030. * src/x86/unix64.S: Likewise.
  2031. * src/x86/sysv.S: Likewise.
  2032. * src/sparc/v8.S: Likewise.
  2033. * src/sparc/v9.S: Likewise.
  2034. * src/m68k/sysv.S: Likewise.
  2035. * src/arm/sysv.S: Likewise.
  2036. 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  2037. * aclocal.m4: Regenerate.
  2038. * configure: Likewise.
  2039. * Makefile.in: Likewise.
  2040. * include/Makefile.in: Likewise.
  2041. * testsuite/Makefile.in: Likewise.
  2042. 2008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
  2043. Andreas Tobler <a.tobler@schweiz.org>
  2044. * configure.ac: Add amd64-*-freebsd* target.
  2045. * configure: Regenerate.
  2046. 2008-01-30 H.J. Lu <hongjiu.lu@intel.com>
  2047. PR libffi/34612
  2048. * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
  2049. returning struct.
  2050. * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
  2051. tests.
  2052. 2008-01-24 David Edelsohn <edelsohn@gnu.org>
  2053. * configure: Regenerate.
  2054. 2008-01-06 Andreas Tobler <a.tobler@schweiz.org>
  2055. * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
  2056. 2008-01-05 Andreas Tobler <a.tobler@schweiz.org>
  2057. PR testsuite/32843
  2058. * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
  2059. signed/unsigned int8/16 for X86_DARWIN.
  2060. Updated copyright info.
  2061. Handle one and two byte structs with special cif->flags.
  2062. * src/x86/ffitarget.h: Add special types for one and two byte structs.
  2063. Updated copyright info.
  2064. * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
  2065. sysv.S
  2066. Remove code to pop args from the stack after call.
  2067. Special-case signed/unsigned for int8/16, one and two byte structs.
  2068. (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
  2069. FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
  2070. FFI_TYPE_SINT32.
  2071. Updated copyright info.
  2072. 2007-12-08 David Daney <ddaney@avtrex.com>
  2073. * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
  2074. SUBU, add with ADDU and use smaller code sequences.
  2075. 2007-12-07 David Daney <ddaney@avtrex.com>
  2076. * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
  2077. type.
  2078. 2007-12-06 David Daney <ddaney@avtrex.com>
  2079. * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
  2080. defined.
  2081. (ffi_java_raw): New typedef.
  2082. (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
  2083. ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
  2084. ffi_java_raw.
  2085. (ffi_java_raw_closure) : Same.
  2086. (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
  2087. parameter types.
  2088. * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
  2089. FFI_SIZEOF_JAVA_RAW.
  2090. (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
  2091. Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
  2092. sizeof(ffi_java_raw) for alignment calculations.
  2093. (ffi_java_ptrarray_to_raw): Same.
  2094. (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
  2095. if FFI_SIZEOF_JAVA_RAW == 4.
  2096. (ffi_java_raw_to_rvalue): Same.
  2097. (ffi_java_raw_call): Change type of raw to ffi_java_raw.
  2098. (ffi_java_translate_args): Same.
  2099. (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
  2100. parameter types.
  2101. * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
  2102. 2007-12-06 David Daney <ddaney@avtrex.com>
  2103. * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
  2104. pointer values.
  2105. 2007-12-01 Andreas Tobler <a.tobler@schweiz.org>
  2106. PR libffi/31937
  2107. * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
  2108. Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
  2109. * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
  2110. set the NUM_FPR_ARG_REGISTERS according to.
  2111. Add support for potential soft-float support under hard-float
  2112. architecture.
  2113. (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
  2114. FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
  2115. to the FFI_LINUX_SOFT_FLOAT ABI.
  2116. (ffi_prep_cif_machdep): Likewise.
  2117. (ffi_closure_helper_SYSV): Likewise.
  2118. * src/powerpc/ppc_closure.S: Make sure not to store float/double
  2119. on archs where __NO_FPRS__ is true.
  2120. Add FFI_TYPE_UINT128 support.
  2121. * src/powerpc/sysv.S: Add support for soft-float long-double-128.
  2122. Adjust copyright notice.
  2123. 2007-11-25 Andreas Tobler <a.tobler@schweiz.org>
  2124. * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
  2125. * include/ffi_common.h: ... here.
  2126. Update copyright.
  2127. 2007-11-17 Andreas Tobler <a.tobler@schweiz.org>
  2128. * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
  2129. * src/powerpc/linux64.S: Likewise.
  2130. * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
  2131. * testsuite/libffi.call/return_ldl.c: New test.
  2132. 2007-09-04 <aph@redhat.com>
  2133. * src/arm/sysv.S (UNWIND): New.
  2134. (Whole file): Conditionally compile unwinder directives.
  2135. * src/arm/sysv.S: Add unwinder directives.
  2136. * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
  2137. Only treat r0 as a struct address if we're actually returning a
  2138. struct by address.
  2139. Only copy the bytes that are actually within a struct.
  2140. (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
  2141. is returned in r0, not passed by address.
  2142. (ffi_call): Allocate a word-sized temporary for the case where
  2143. a composite is returned in r0.
  2144. (ffi_prep_incoming_args_SYSV): Align as necessary.
  2145. 2007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
  2146. * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
  2147. directly using the sys_cacheflush syscall.
  2148. 2007-07-27 Andrew Haley <aph@redhat.com>
  2149. * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
  2150. 2007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
  2151. * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
  2152. * configure.ac: Likewise.
  2153. * Makefile.in: Regenerate.
  2154. * include/Makefile.in: Likewise.
  2155. * testsuite/Makefile.in: Likewise.
  2156. * configure: Likewise.
  2157. 2007-08-24 David Daney <ddaney@avtrex.com>
  2158. * testsuite/libffi.call/return_sl.c: New test.
  2159. 2007-08-10 David Daney <ddaney@avtrex.com>
  2160. * testsuite/libffi.call/cls_multi_ushort.c,
  2161. testsuite/libffi.call/cls_align_uint16.c,
  2162. testsuite/libffi.call/nested_struct1.c,
  2163. testsuite/libffi.call/nested_struct3.c,
  2164. testsuite/libffi.call/cls_7_1_byte.c,
  2165. testsuite/libffi.call/nested_struct5.c,
  2166. testsuite/libffi.call/cls_double.c,
  2167. testsuite/libffi.call/nested_struct7.c,
  2168. testsuite/libffi.call/cls_sint.c,
  2169. testsuite/libffi.call/nested_struct9.c,
  2170. testsuite/libffi.call/cls_20byte1.c,
  2171. testsuite/libffi.call/cls_multi_sshortchar.c,
  2172. testsuite/libffi.call/cls_align_sint64.c,
  2173. testsuite/libffi.call/cls_3byte2.c,
  2174. testsuite/libffi.call/cls_multi_schar.c,
  2175. testsuite/libffi.call/cls_multi_uchar.c,
  2176. testsuite/libffi.call/cls_19byte.c,
  2177. testsuite/libffi.call/cls_9byte1.c,
  2178. testsuite/libffi.call/cls_align_float.c,
  2179. testsuite/libffi.call/closure_fn1.c,
  2180. testsuite/libffi.call/problem1.c,
  2181. testsuite/libffi.call/closure_fn3.c,
  2182. testsuite/libffi.call/cls_sshort.c,
  2183. testsuite/libffi.call/closure_fn5.c,
  2184. testsuite/libffi.call/cls_align_double.c,
  2185. testsuite/libffi.call/nested_struct.c,
  2186. testsuite/libffi.call/cls_2byte.c,
  2187. testsuite/libffi.call/nested_struct10.c,
  2188. testsuite/libffi.call/cls_4byte.c,
  2189. testsuite/libffi.call/cls_6byte.c,
  2190. testsuite/libffi.call/cls_8byte.c,
  2191. testsuite/libffi.call/cls_multi_sshort.c,
  2192. testsuite/libffi.call/cls_align_sint16.c,
  2193. testsuite/libffi.call/cls_align_uint32.c,
  2194. testsuite/libffi.call/cls_20byte.c,
  2195. testsuite/libffi.call/cls_float.c,
  2196. testsuite/libffi.call/nested_struct2.c,
  2197. testsuite/libffi.call/cls_5_1_byte.c,
  2198. testsuite/libffi.call/nested_struct4.c,
  2199. testsuite/libffi.call/cls_24byte.c,
  2200. testsuite/libffi.call/nested_struct6.c,
  2201. testsuite/libffi.call/cls_64byte.c,
  2202. testsuite/libffi.call/nested_struct8.c,
  2203. testsuite/libffi.call/cls_uint.c,
  2204. testsuite/libffi.call/cls_multi_ushortchar.c,
  2205. testsuite/libffi.call/cls_schar.c,
  2206. testsuite/libffi.call/cls_uchar.c,
  2207. testsuite/libffi.call/cls_align_uint64.c,
  2208. testsuite/libffi.call/cls_ulonglong.c,
  2209. testsuite/libffi.call/cls_align_longdouble.c,
  2210. testsuite/libffi.call/cls_1_1byte.c,
  2211. testsuite/libffi.call/cls_12byte.c,
  2212. testsuite/libffi.call/cls_3_1byte.c,
  2213. testsuite/libffi.call/cls_3byte1.c,
  2214. testsuite/libffi.call/cls_4_1byte.c,
  2215. testsuite/libffi.call/cls_6_1_byte.c,
  2216. testsuite/libffi.call/cls_16byte.c,
  2217. testsuite/libffi.call/cls_18byte.c,
  2218. testsuite/libffi.call/closure_fn0.c,
  2219. testsuite/libffi.call/cls_9byte2.c,
  2220. testsuite/libffi.call/closure_fn2.c,
  2221. testsuite/libffi.call/closure_fn4.c,
  2222. testsuite/libffi.call/cls_ushort.c,
  2223. testsuite/libffi.call/closure_fn6.c,
  2224. testsuite/libffi.call/cls_5byte.c,
  2225. testsuite/libffi.call/cls_align_pointer.c,
  2226. testsuite/libffi.call/cls_7byte.c,
  2227. testsuite/libffi.call/cls_align_sint32.c,
  2228. testsuite/libffi.special/unwindtest_ffi_call.cc,
  2229. testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
  2230. 2007-08-10 David Daney <ddaney@avtrex.com>
  2231. PR libffi/28313
  2232. * configure.ac: Don't treat mips64 as a special case.
  2233. * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
  2234. * configure: Regenerate
  2235. * Makefile.in: Ditto.
  2236. * fficonfig.h.in: Ditto.
  2237. * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
  2238. (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
  2239. (FFI_DEFAULT_ABI): Set for n64 case.
  2240. (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
  2241. * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
  2242. (ffi_closure_N32): New function.
  2243. (.eh_frame): New section
  2244. * src/mips/o32.S: Clean up comments.
  2245. (ffi_closure_O32): Pass ffi_closure parameter in $12.
  2246. * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
  2247. _MIPS_SIM == _ABIN32 throughout.
  2248. (FFI_MIPS_STOP_HERE): New, use in place of
  2249. ffi_stop_here.
  2250. (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
  2251. to support n32/n64 ABIs.
  2252. (calc_n32_struct_flags): Rewrite.
  2253. (calc_n32_return_struct_flags): Remove unused variable. Reverse
  2254. position of flag bits.
  2255. (ffi_prep_cif_machdep): Rewrite n32 portion.
  2256. (ffi_call): Enable for n64. Add special handling for small structure
  2257. return values.
  2258. (ffi_prep_closure_loc): Add n32 and n64 support.
  2259. (ffi_closure_mips_inner_O32): Add cast to silence warning.
  2260. (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
  2261. 2007-08-08 David Daney <ddaney@avtrex.com>
  2262. * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
  2263. * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
  2264. specifiers.
  2265. * testsuite/libffi.call/nested_struct1.c (main): Ditto.
  2266. * testsuite/libffi.call/cls_sint.c (main): Ditto.
  2267. * testsuite/libffi.call/nested_struct9.c (main): Ditto.
  2268. * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
  2269. * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
  2270. * testsuite/libffi.call/closure_fn1.c (main): Ditto.
  2271. * testsuite/libffi.call/closure_fn3.c (main): Ditto.
  2272. * testsuite/libffi.call/return_dbl2.c (main): Ditto.
  2273. * testsuite/libffi.call/cls_sshort.c (main): Ditto.
  2274. * testsuite/libffi.call/return_fl3.c (main): Ditto.
  2275. * testsuite/libffi.call/closure_fn5.c (main): Ditto.
  2276. * testsuite/libffi.call/nested_struct.c (main): Ditto.
  2277. * testsuite/libffi.call/nested_struct10.c (main): Ditto.
  2278. * testsuite/libffi.call/return_ll1.c (main): Ditto.
  2279. * testsuite/libffi.call/cls_8byte.c (main): Ditto.
  2280. * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
  2281. * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
  2282. * testsuite/libffi.call/cls_20byte.c (main): Ditto.
  2283. * testsuite/libffi.call/nested_struct2.c (main): Ditto.
  2284. * testsuite/libffi.call/cls_24byte.c (main): Ditto.
  2285. * testsuite/libffi.call/nested_struct6.c (main): Ditto.
  2286. * testsuite/libffi.call/cls_uint.c (main): Ditto.
  2287. * testsuite/libffi.call/cls_12byte.c (main): Ditto.
  2288. * testsuite/libffi.call/cls_16byte.c (main): Ditto.
  2289. * testsuite/libffi.call/closure_fn0.c (main): Ditto.
  2290. * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
  2291. * testsuite/libffi.call/closure_fn2.c (main): Ditto.
  2292. * testsuite/libffi.call/return_dbl1.c (main): Ditto.
  2293. * testsuite/libffi.call/closure_fn4.c (main): Ditto.
  2294. * testsuite/libffi.call/closure_fn6.c (main): Ditto.
  2295. * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
  2296. 2007-08-07 Andrew Haley <aph@redhat.com>
  2297. * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
  2298. checkin.
  2299. 2007-08-06 Andrew Haley <aph@redhat.com>
  2300. PR testsuite/32843
  2301. * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
  2302. FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
  2303. FFI_TYPE_SINT32.
  2304. 2007-08-02 David Daney <ddaney@avtrex.com>
  2305. * testsuite/libffi.call/return_ul.c (main): Define return type as
  2306. ffi_arg. Use proper printf conversion specifier.
  2307. 2007-07-30 Andrew Haley <aph@redhat.com>
  2308. PR testsuite/32843
  2309. * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
  2310. signed/unsigned int8/16.
  2311. * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
  2312. Use a jump table.
  2313. Remove code to pop args from the stack after call.
  2314. Special-case signed/unsigned int8/16.
  2315. * testsuite/libffi.call/return_sc.c (main): Revert.
  2316. 2007-07-26 Richard Guenther <rguenther@suse.de>
  2317. PR testsuite/32843
  2318. * testsuite/libffi.call/return_sc.c (main): Verify call
  2319. result as signed char, not ffi_arg.
  2320. 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  2321. * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
  2322. * configure: Regenerate.
  2323. 2007-07-11 David Daney <ddaney@avtrex.com>
  2324. * src/mips/ffi.c: Don't include sys/cachectl.h.
  2325. (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
  2326. cacheflush().
  2327. 2007-05-18 Aurelien Jarno <aurelien@aurel32.net>
  2328. * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
  2329. from (ffi_prep_closure): ... this.
  2330. (FFI_INIT_TRAMPOLINE): Adjust.
  2331. 2005-12-31 Phil Blundell <pb@reciva.com>
  2332. * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
  2333. ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
  2334. * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
  2335. * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
  2336. (FFI_CLOSURES): Enable closure support.
  2337. 2007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
  2338. * testsuite/libffi.call/cls_multi_ushort.c,
  2339. testsuite/libffi.call/cls_align_uint16.c,
  2340. testsuite/libffi.call/nested_struct1.c,
  2341. testsuite/libffi.call/nested_struct3.c,
  2342. testsuite/libffi.call/cls_7_1_byte.c,
  2343. testsuite/libffi.call/cls_double.c,
  2344. testsuite/libffi.call/nested_struct5.c,
  2345. testsuite/libffi.call/nested_struct7.c,
  2346. testsuite/libffi.call/cls_sint.c,
  2347. testsuite/libffi.call/nested_struct9.c,
  2348. testsuite/libffi.call/cls_20byte1.c,
  2349. testsuite/libffi.call/cls_multi_sshortchar.c,
  2350. testsuite/libffi.call/cls_align_sint64.c,
  2351. testsuite/libffi.call/cls_3byte2.c,
  2352. testsuite/libffi.call/cls_multi_schar.c,
  2353. testsuite/libffi.call/cls_multi_uchar.c,
  2354. testsuite/libffi.call/cls_19byte.c,
  2355. testsuite/libffi.call/cls_9byte1.c,
  2356. testsuite/libffi.call/cls_align_float.c,
  2357. testsuite/libffi.call/closure_fn1.c,
  2358. testsuite/libffi.call/problem1.c,
  2359. testsuite/libffi.call/closure_fn3.c,
  2360. testsuite/libffi.call/cls_sshort.c,
  2361. testsuite/libffi.call/closure_fn5.c,
  2362. testsuite/libffi.call/cls_align_double.c,
  2363. testsuite/libffi.call/cls_2byte.c,
  2364. testsuite/libffi.call/nested_struct.c,
  2365. testsuite/libffi.call/nested_struct10.c,
  2366. testsuite/libffi.call/cls_4byte.c,
  2367. testsuite/libffi.call/cls_6byte.c,
  2368. testsuite/libffi.call/cls_8byte.c,
  2369. testsuite/libffi.call/cls_multi_sshort.c,
  2370. testsuite/libffi.call/cls_align_uint32.c,
  2371. testsuite/libffi.call/cls_align_sint16.c,
  2372. testsuite/libffi.call/cls_float.c,
  2373. testsuite/libffi.call/cls_20byte.c,
  2374. testsuite/libffi.call/cls_5_1_byte.c,
  2375. testsuite/libffi.call/nested_struct2.c,
  2376. testsuite/libffi.call/cls_24byte.c,
  2377. testsuite/libffi.call/nested_struct4.c,
  2378. testsuite/libffi.call/nested_struct6.c,
  2379. testsuite/libffi.call/cls_64byte.c,
  2380. testsuite/libffi.call/nested_struct8.c,
  2381. testsuite/libffi.call/cls_uint.c,
  2382. testsuite/libffi.call/cls_multi_ushortchar.c,
  2383. testsuite/libffi.call/cls_schar.c,
  2384. testsuite/libffi.call/cls_uchar.c,
  2385. testsuite/libffi.call/cls_align_uint64.c,
  2386. testsuite/libffi.call/cls_ulonglong.c,
  2387. testsuite/libffi.call/cls_align_longdouble.c,
  2388. testsuite/libffi.call/cls_1_1byte.c,
  2389. testsuite/libffi.call/cls_12byte.c,
  2390. testsuite/libffi.call/cls_3_1byte.c,
  2391. testsuite/libffi.call/cls_3byte1.c,
  2392. testsuite/libffi.call/cls_4_1byte.c,
  2393. testsuite/libffi.call/cls_6_1_byte.c,
  2394. testsuite/libffi.call/cls_16byte.c,
  2395. testsuite/libffi.call/cls_18byte.c,
  2396. testsuite/libffi.call/closure_fn0.c,
  2397. testsuite/libffi.call/cls_9byte2.c,
  2398. testsuite/libffi.call/closure_fn2.c,
  2399. testsuite/libffi.call/closure_fn4.c,
  2400. testsuite/libffi.call/cls_ushort.c,
  2401. testsuite/libffi.call/closure_fn6.c,
  2402. testsuite/libffi.call/cls_5byte.c,
  2403. testsuite/libffi.call/cls_align_pointer.c,
  2404. testsuite/libffi.call/cls_7byte.c,
  2405. testsuite/libffi.call/cls_align_sint32.c,
  2406. testsuite/libffi.special/unwindtest_ffi_call.cc,
  2407. testsuite/libffi.special/unwindtest.cc: Enable for ARM.
  2408. 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
  2409. * aclocal.m4: Regenerated.
  2410. 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
  2411. * configure: Regenerate.
  2412. 2007-05-23 Steve Ellcey <sje@cup.hp.com>
  2413. * Makefile.in: Regenerate.
  2414. * configure: Regenerate.
  2415. * aclocal.m4: Regenerate.
  2416. * include/Makefile.in: Regenerate.
  2417. * testsuite/Makefile.in: Regenerate.
  2418. 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
  2419. * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
  2420. ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
  2421. * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
  2422. * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
  2423. (FFI_CLOSURES): Enable closure support.
  2424. 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
  2425. * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
  2426. * configure: Regenerate.
  2427. * fficonfig.h.in: Regenerate.
  2428. * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
  2429. CFI_OFFSET,CFI_DEF_CFA): New macros.
  2430. (ffi_call_SYSV): Add callframe annotation.
  2431. 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
  2432. * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
  2433. numerous test suite failures.
  2434. * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
  2435. 2007-04-11 Paolo Bonzini <bonzini@gnu.org>
  2436. * Makefile.am (EXTRA_DIST): Bring up to date.
  2437. * Makefile.in: Regenerate.
  2438. * src/frv/eabi.S: Remove RCS keyword.
  2439. 2007-04-06 Richard Henderson <rth@redhat.com>
  2440. * configure.ac: Tidy target case.
  2441. (HAVE_LONG_DOUBLE): Allow the target to override.
  2442. * configure: Regenerate.
  2443. * include/ffi.h.in: Don't define ffi_type_foo if
  2444. LIBFFI_HIDE_BASIC_TYPES is defined.
  2445. (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
  2446. to ffi_type_double.
  2447. * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
  2448. (FFI_TYPEDEF, ffi_type_void): Mark the data const.
  2449. (ffi_type_longdouble): Special case for Alpha. Don't define
  2450. if long double == double.
  2451. * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
  2452. (ffi_prep_cif_machdep): Handle it as the 128-bit type.
  2453. (ffi_call, ffi_closure_osf_inner): Likewise.
  2454. (ffi_closure_osf_inner): Likewise. Mark hidden.
  2455. (ffi_call_osf, ffi_closure_osf): Mark hidden.
  2456. * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
  2457. * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
  2458. (load_table): Handle 128-bit long double.
  2459. * testsuite/libffi.call/float4.c: Add -mieee for alpha.
  2460. 2007-04-06 Tom Tromey <tromey@redhat.com>
  2461. PR libffi/31491:
  2462. * README: Fixed bug in example.
  2463. 2007-04-03 Jakub Jelinek <jakub@redhat.com>
  2464. * src/closures.c: Include sys/statfs.h.
  2465. (_GNU_SOURCE): Define on Linux.
  2466. (FFI_MMAP_EXEC_SELINUX): Define.
  2467. (selinux_enabled): New variable.
  2468. (selinux_enabled_check): New function.
  2469. (is_selinux_enabled): Define.
  2470. (dlmmap): Use it.
  2471. 2007-03-24 Uros Bizjak <ubizjak@gmail.com>
  2472. * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
  2473. Use 'volatile float sum' to create sum of floats to avoid false
  2474. negative due to excess precision on ix86 targets.
  2475. (main): Ditto.
  2476. 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
  2477. * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
  2478. patch.
  2479. (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
  2480. 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
  2481. * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
  2482. (ffi_prep_closure_loc): New.
  2483. (ffi_prep_raw_closure_loc): New.
  2484. (ffi_prep_java_raw_closure_loc): New.
  2485. * src/closures.c: New file.
  2486. * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
  2487. Replace sflags with exec_offset.
  2488. [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
  2489. sub_segment_exec_offset): New macros.
  2490. (get_segment_flags, set_segment_flags, check_segment_merge): New
  2491. macros.
  2492. (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
  2493. (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
  2494. destroy_mspace): Use new macros.
  2495. (sys_alloc): Silence warning.
  2496. * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
  2497. * Makefile.in: Rebuilt.
  2498. * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
  2499. terms of ffi_prep_closure_loc.
  2500. * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
  2501. from...
  2502. (ffi_prep_raw_closure): ... this. Re-implement in terms of the
  2503. renamed version.
  2504. * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
  2505. adjusted from...
  2506. (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
  2507. the renamed version.
  2508. * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
  2509. (ffi_prep_closure): ... this.
  2510. * src/pa/ffi.c: Likewise.
  2511. * src/cris/ffi.c: Likewise. Adjust.
  2512. * src/frv/ffi.c: Likewise.
  2513. * src/ia64/ffi.c: Likewise.
  2514. * src/mips/ffi.c: Likewise.
  2515. * src/powerpc/ffi_darwin.c: Likewise.
  2516. * src/s390/ffi.c: Likewise.
  2517. * src/sh/ffi.c: Likewise.
  2518. * src/sh64/ffi.c: Likewise.
  2519. * src/sparc/ffi.c: Likewise.
  2520. * src/x86/ffi64.c: Likewise.
  2521. * src/x86/ffi.c: Likewise.
  2522. (FFI_INIT_TRAMPOLINE): Adjust.
  2523. (ffi_prep_raw_closure_loc): Renamed and adjusted from...
  2524. (ffi_prep_raw_closure): ... this.
  2525. * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
  2526. (ffi_prep_closure): ... this.
  2527. (flush_icache): Adjust.
  2528. 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
  2529. * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
  2530. Lea's malloc.
  2531. 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
  2532. * Makefile.am: Add dummy install-pdf target.
  2533. * Makefile.in: Regenerate
  2534. 2007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
  2535. * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
  2536. ffi_closure_helper_SYSV): Add long double handling.
  2537. 2007-02-02 Jakub Jelinek <jakub@redhat.com>
  2538. * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
  2539. immediately after bctrl instruction.
  2540. 2007-01-18 Alexandre Oliva <aoliva@redhat.com>
  2541. * Makefile.am (all-recursive, install-recursive,
  2542. mostlyclean-recursive, clean-recursive, distclean-recursive,
  2543. maintainer-clean-recursive): Add missing targets.
  2544. * Makefile.in: Rebuilt.
  2545. 2006-12-14 Andreas Tobler <a.tobler@schweiz.org>
  2546. * configure.ac: Add TARGET for x86_64-*-darwin*.
  2547. * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
  2548. for X86_DARWIN.
  2549. * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
  2550. * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
  2551. * configure: Regenerate.
  2552. * Makefile.in: Regenerate.
  2553. * include/Makefile.in: Regenerate.
  2554. * testsuite/Makefile.in: Regenerate.
  2555. * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
  2556. ffi_call only.
  2557. 2006-12-13 Andreas Tobler <a.tobler@schweiz.org>
  2558. * aclocal.m4: Regenerate with aclocal -I .. as written in the
  2559. Makefile.am.
  2560. 2006-10-31 Geoffrey Keating <geoffk@apple.com>
  2561. * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
  2562. (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
  2563. Darwin.
  2564. * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
  2565. * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
  2566. 2006-10-10 Paolo Bonzini <bonzini@gnu.org>
  2567. Sandro Tolaini <tolaini@libero.it>
  2568. * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
  2569. conditional.
  2570. * configure: Regenerated.
  2571. * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
  2572. (EXTRA_DIST): Add src/x86/darwin.S.
  2573. * Makefile.in: Regenerated.
  2574. * include/Makefile.in: Regenerated.
  2575. * testsuite/Makefile.in: Regenerated.
  2576. * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
  2577. X86_WIN32, and additionally align stack to 16 bytes.
  2578. * src/x86/darwin.S: New, based on sysv.S.
  2579. * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
  2580. 2006-09-12 David Daney <ddaney@avtrex.com>
  2581. PR libffi/23935
  2582. * include/Makefile.am: Install both ffi.h and ffitarget.h in
  2583. $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
  2584. * aclocal.m4: Regenerated for automake 1.9.6.
  2585. * Makefile.in: Regenerated.
  2586. * include/Makefile.in: Regenerated.
  2587. * testsuite/Makefile.in: Regenerated.
  2588. 2006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
  2589. * include/ffi_common.h (struct): Revert accidental commit.
  2590. 2006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
  2591. * include/ffi_common.h: Remove lint directives.
  2592. * include/ffi.h.in: Likewise.
  2593. 2006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
  2594. * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
  2595. for 32-bit architectures.
  2596. * testsuite/libffi.call/return_ul.c: New test case.
  2597. 2006-07-19 David Daney <ddaney@avtrex.com>
  2598. * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
  2599. xfail remains for mips64.
  2600. 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
  2601. * Makefile.am: Add install-html target. Add install-html to .PHONY
  2602. * Makefile.in: Regenerate.
  2603. * aclocal.m4: Regenerate.
  2604. * include/Makefile.in: Regenerate.
  2605. * testsuite/Makefile.in: Regenerate.
  2606. 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2607. * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
  2608. stack slot.
  2609. 2006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
  2610. * README: Remove notice about 'Crazy Comments'.
  2611. * src/debug.c: Remove lint directives. Cleanup white spaces.
  2612. * src/java_raw_api.c: Likewise.
  2613. * src/prep_cif.c: Likewise.
  2614. * src/raw_api.c: Likewise.
  2615. * src/ffitest.c: Delete. No longer needed, all test cases migrated
  2616. to the testsuite.
  2617. * src/arm/ffi.c: Remove lint directives.
  2618. * src/m32r/ffi.c: Likewise.
  2619. * src/pa/ffi.c: Likewise.
  2620. * src/powerpc/ffi.c: Likewise.
  2621. * src/powerpc/ffi_darwin.c: Likewise.
  2622. * src/sh/ffi.c: Likewise.
  2623. * src/sh64/ffi.c: Likewise.
  2624. * src/x86/ffi.c: Likewise.
  2625. * testsuite/libffi.call/float2.c: Likewise.
  2626. * testsuite/libffi.call/promotion.c: Likewise.
  2627. * testsuite/libffi.call/struct1.c: Likewise.
  2628. 2006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
  2629. * src/pa/hpux32.S: Correct unwind offset calculation for
  2630. ffi_closure_pa32.
  2631. * src/pa/linux.S: Likewise.
  2632. 2006-04-12 James E Wilson <wilson@specifix.com>
  2633. PR libgcj/26483
  2634. * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
  2635. (hfa_type_load): Call stf_spill.
  2636. (hfa_type_store): Call ldf_fill.
  2637. (ffi_call): Adjust calls to above routines. Add local temps for
  2638. macro result.
  2639. 2006-04-10 Matthias Klose <doko@debian.org>
  2640. * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
  2641. directory names containing underscores.
  2642. 2006-04-07 James E Wilson <wilson@specifix.com>
  2643. * testsuite/libffi.call/float4.c: New testcase.
  2644. 2006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2645. Andreas Tobler <a.tobler@schweiz.ch>
  2646. * Makefile.am: Add PA_HPUX port.
  2647. * Makefile.in: Regenerate.
  2648. * include/Makefile.in: Likewise.
  2649. * testsuite/Makefile.in: Likewise.
  2650. * configure.ac: Add PA_HPUX rules.
  2651. * configure: Regenerate.
  2652. * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
  2653. Add PA_HPUX and PA64_HPUX.
  2654. Rename FFI_LINUX ABI to FFI_PA32 ABI.
  2655. (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
  2656. (FFI_TYPE_SMALL_STRUCT2): Define.
  2657. (FFI_TYPE_SMALL_STRUCT4): Likewise.
  2658. (FFI_TYPE_SMALL_STRUCT8): Likewise.
  2659. (FFI_TYPE_SMALL_STRUCT3): Redefine.
  2660. (FFI_TYPE_SMALL_STRUCT5): Likewise.
  2661. (FFI_TYPE_SMALL_STRUCT6): Likewise.
  2662. (FFI_TYPE_SMALL_STRUCT7): Likewise.
  2663. * src/pa/ffi.c (ROUND_DOWN): Delete.
  2664. (fldw, fstw, fldd, fstd): Use '__asm__'.
  2665. (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
  2666. FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
  2667. (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
  2668. Simplify incrementing of stack slot variable. Change type of local
  2669. 'n' to unsigned int.
  2670. (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
  2671. double on PA_HPUX.
  2672. (ffi_prep_cif_machdep): Likewise.
  2673. (ffi_call): Likewise.
  2674. (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
  2675. return type to ffi_status. Simplify incrementing of stack slot
  2676. variable. Only copy floating point argument registers when PA_LINUX
  2677. is true. Reformat debug statement.
  2678. Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
  2679. FFI_TYPE_SMALL_STRUCT8.
  2680. (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
  2681. declaration.
  2682. (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
  2683. Add nops to cache flush. Add trampoline for PA_HPUX.
  2684. * src/pa/hpux32.S: New file.
  2685. * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
  2686. ffi_prep_args_LINUX to ffi_prep_args_pa32.
  2687. Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
  2688. unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
  2689. argument type checks so that common argument types appear first.
  2690. (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
  2691. ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
  2692. 2006-03-24 Alan Modra <amodra@bigpond.net.au>
  2693. * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
  2694. for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
  2695. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
  2696. FFI_TYPE_LONGDOUBLE.
  2697. (ffi_prep_args64): Assert using IBM extended double.
  2698. (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
  2699. Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
  2700. (ffi_call): Handle FFI_LINUX.
  2701. (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
  2702. gpr3 return pointer as for struct return. Handle FFI_LINUX
  2703. FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
  2704. unnecessarily.
  2705. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
  2706. for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
  2707. Don't use r6 as pointer to results, instead use sp offset. Don't
  2708. make a special call to load lr with case table address, instead
  2709. use offset from previous call.
  2710. * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
  2711. * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
  2712. return.
  2713. 2006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
  2714. * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
  2715. passed with FP registers correctly.
  2716. (ffi_closure_helper_SYSV): Likewise.
  2717. * src/sh64/sysv.S: Likewise.
  2718. 2006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
  2719. * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
  2720. args and userdata unused.
  2721. (closure_test_fn1): Mark cif and userdata unused.
  2722. (main): Remove unused res.
  2723. 2006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
  2724. * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
  2725. -O2, -O3, -Os and the warning flags -W -Wall.
  2726. * testsuite/libffi.special/special.exp: Likewise.
  2727. * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
  2728. unused parameter unused for gcc or else do nothing.
  2729. * testsuite/libffi.special/ffitestcxx.h: Likewise.
  2730. * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
  2731. and userdata unused.
  2732. * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
  2733. * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
  2734. * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
  2735. * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
  2736. * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
  2737. * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
  2738. * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
  2739. * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
  2740. * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
  2741. * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
  2742. * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
  2743. * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
  2744. * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
  2745. * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
  2746. * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
  2747. * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
  2748. * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
  2749. * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
  2750. * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
  2751. * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
  2752. * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
  2753. * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
  2754. * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
  2755. * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
  2756. Likewise.
  2757. * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
  2758. Likewise.
  2759. * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
  2760. Likewise.
  2761. * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
  2762. void* to avoid compiler warning.
  2763. (main): Likewise.
  2764. (cls_struct_align_gn): Mark cif and userdata unused.
  2765. * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
  2766. Likewise.
  2767. * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
  2768. Likewise.
  2769. * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
  2770. Likewise.
  2771. * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
  2772. Likewise.
  2773. * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
  2774. Likewise.
  2775. * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
  2776. * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
  2777. * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
  2778. data unused.
  2779. (main): Cast res_call to silence gcc.
  2780. * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
  2781. data unused.
  2782. (main): Cast res_call to silence gcc.
  2783. * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
  2784. and data unused.
  2785. (main): Cast res_call to silence gcc.
  2786. * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
  2787. data unused.
  2788. (main): Cast res_call to silence gcc.
  2789. * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
  2790. data unused.
  2791. (main): Cast res_call to silence gcc.
  2792. * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
  2793. and data unused.
  2794. (main): Cast res_call to silence gcc.
  2795. * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
  2796. userdata unused.
  2797. (cls_ret_schar_fn): Cast printf parameter to silence gcc.
  2798. * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
  2799. userdata unused.
  2800. (cls_ret_sint_fn): Cast printf parameter to silence gcc.
  2801. * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
  2802. userdata unused.
  2803. (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
  2804. * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
  2805. userdata unused.
  2806. (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
  2807. * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
  2808. userdata unused.
  2809. (cls_ret_uint_fn): Cast printf parameter to silence gcc.
  2810. * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
  2811. and userdata unused.
  2812. * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
  2813. userdata unused.
  2814. (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
  2815. * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
  2816. * testsuite/libffi.call/float1.c (main): Remove unused variable i.
  2817. Cleanup white spaces.
  2818. * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
  2819. * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
  2820. cif and userdata unused.
  2821. * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
  2822. Likewise.
  2823. * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
  2824. * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
  2825. formatters to silence gcc.
  2826. (B_gn): Mark cif and userdata unused.
  2827. * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
  2828. unused.
  2829. * testsuite/libffi.call/nested_struct4.c: Mention related PR.
  2830. (B_gn): Mark cif and userdata unused.
  2831. * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
  2832. unused.
  2833. * testsuite/libffi.call/nested_struct6.c: Mention related PR.
  2834. (B_gn): Mark cif and userdata unused.
  2835. * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
  2836. unused.
  2837. * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
  2838. * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
  2839. * testsuite/libffi.call/problem1.c (stub): Likewise.
  2840. * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
  2841. gcc.
  2842. * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
  2843. in the last commit for this test case in the test case itself.
  2844. * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
  2845. unused.
  2846. * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
  2847. * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
  2848. * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
  2849. * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
  2850. * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
  2851. * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
  2852. 2006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
  2853. * src/sh/sysv.S: Fix register numbers in the FDE for
  2854. ffi_closure_SYSV.
  2855. 2006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
  2856. * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
  2857. declaration to avoid a false negative on ix86. See PR323.
  2858. 2006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
  2859. * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
  2860. and cast integer to void * if needed. Update the pointer to
  2861. the FP register saved area correctly.
  2862. 2006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
  2863. * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
  2864. is fixed.
  2865. * testsuite/libffi.call/nested_struct4.c: Likewise.
  2866. 2006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
  2867. * testsuite/libffi.call/return_dbl.c: New test case.
  2868. * testsuite/libffi.call/return_dbl1.c: Likewise.
  2869. * testsuite/libffi.call/return_dbl2.c: Likewise.
  2870. * testsuite/libffi.call/return_fl.c: Likewise.
  2871. * testsuite/libffi.call/return_fl1.c: Likewise.
  2872. * testsuite/libffi.call/return_fl2.c: Likewise.
  2873. * testsuite/libffi.call/return_fl3.c: Likewise.
  2874. * testsuite/libffi.call/closure_fn6.c: Likewise.
  2875. * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
  2876. definition.
  2877. * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
  2878. here to be used by other test cases too.
  2879. * testsuite/libffi.call/nested_struct10.c: New test case.
  2880. * testsuite/libffi.call/nested_struct9.c: Likewise.
  2881. * testsuite/libffi.call/nested_struct8.c: Likewise.
  2882. * testsuite/libffi.call/nested_struct7.c: Likewise.
  2883. * testsuite/libffi.call/nested_struct6.c: Likewise.
  2884. * testsuite/libffi.call/nested_struct5.c: Likewise.
  2885. * testsuite/libffi.call/nested_struct4.c: Likewise.
  2886. 2006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
  2887. * configure.ac: Enable libffi for sparc64-*-freebsd*.
  2888. * configure: Rebuilt.
  2889. 2006-01-18 Jakub Jelinek <jakub@redhat.com>
  2890. * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
  2891. instead do the shifting inline.
  2892. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
  2893. shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
  2894. and 8 byte structs, for the remaining struct sizes don't call
  2895. __lshrdi3, instead do the shifting inline.
  2896. 2005-12-07 Thiemo Seufer <ths@networkno.de>
  2897. * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
  2898. missing parentheses.
  2899. * src/mips/o32.S (ffi_call_O32): Code formatting. Define
  2900. and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
  2901. (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
  2902. A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
  2903. V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
  2904. FA_0_0_OFF2.
  2905. * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
  2906. endianness bugs.
  2907. (ffi_prep_closure): Improve trampoline instruction scheduling.
  2908. (ffi_closure_mips_inner_O32): Fix endianness bugs.
  2909. 2005-12-03 Alan Modra <amodra@bigpond.net.au>
  2910. * src/powerpc/ffi.c: Formatting.
  2911. (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
  2912. (ffi_prep_args64): Likewise.
  2913. 2005-09-30 Geoffrey Keating <geoffk@apple.com>
  2914. * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
  2915. darwin, use -shared-libgcc not -lgcc_s, and explain why.
  2916. 2005-09-26 Tom Tromey <tromey@redhat.com>
  2917. * testsuite/libffi.call/float1.c (value_type): New typedef.
  2918. (CANARY): New define.
  2919. (main): Check for result buffer overflow.
  2920. * src/powerpc/linux64.S: Handle linux64 long double returns.
  2921. * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
  2922. (ffi_prep_cif_machdep): Handle linux64 long double returns.
  2923. 2005-08-25 Alan Modra <amodra@bigpond.net.au>
  2924. PR target/23404
  2925. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
  2926. homed fp args.
  2927. (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
  2928. 2005-08-11 Jakub Jelinek <jakub@redhat.com>
  2929. * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
  2930. (AH_BOTTOM): Add FFI_HIDDEN definition.
  2931. * configure: Rebuilt.
  2932. * fficonfig.h.in: Rebuilt.
  2933. * src/powerpc/ffi.c (hidden): Remove.
  2934. (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
  2935. ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
  2936. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
  2937. .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
  2938. * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
  2939. add FFI_HIDDEN to its prototype.
  2940. (ffi_closure_SYSV_inner): New.
  2941. * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
  2942. * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
  2943. 2005-08-10 Alfred M. Szmidt <ams@gnu.org>
  2944. PR libffi/21819:
  2945. * configure: Rebuilt.
  2946. * configure.ac: Handle i*86-*-gnu*.
  2947. 2005-08-09 Jakub Jelinek <jakub@redhat.com>
  2948. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
  2949. DW_CFA_offset_extended_sf rather than
  2950. DW_CFA_GNU_negative_offset_extended.
  2951. * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
  2952. 2005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
  2953. * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
  2954. on sh3.
  2955. (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
  2956. * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
  2957. partially on register.
  2958. (ffi_closure_helper_SYSV): Likewise.
  2959. (ffi_prep_cif_machdep): Don't set too many cif->flags.
  2960. 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
  2961. * src/sh/ffi.c (ffi_call): Handle small structures correctly.
  2962. Remove empty line.
  2963. * src/sh64/ffi.c (simple_type): Remove.
  2964. (return_type): Handle small structures correctly.
  2965. (ffi_prep_args): Likewise.
  2966. (ffi_call): Likewise.
  2967. (ffi_closure_helper_SYSV): Likewise.
  2968. * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
  2969. Emit position independent code if PIC and remove wrong datalabel
  2970. prefixes from EH data.
  2971. 2005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
  2972. * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
  2973. * Makefile.in: Regenerate.
  2974. * include/Makefile.in: Likewise.
  2975. * testsuite/Makefile.in: Likewise.
  2976. * configure.ac: Add POWERPC_FREEBSD rules.
  2977. * configure: Regenerate.
  2978. * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
  2979. (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
  2980. * src/powerpc/ffi.c: Add flags to handle small structure returns
  2981. in ffi_call_SYSV.
  2982. (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
  2983. Aka FFI_SYSV.
  2984. (ffi_closure_helper_SYSV): Likewise.
  2985. * src/powerpc/ppc_closure.S: Add return types for small structures.
  2986. * src/powerpc/sysv.S: Add bits to handle small structures for
  2987. final SYSV 4 ABI.
  2988. 2005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
  2989. * testsuite/libffi.call/cls_5_1_byte.c: New test file.
  2990. * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
  2991. * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
  2992. 2005-07-05 Randolph Chung <tausq@debian.org>
  2993. * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
  2994. as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
  2995. structures. Kill compilation warnings.
  2996. (ffi_closure_inner_LINUX): Print return values as hex in debug
  2997. message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
  2998. Properly handle 5-7 byte structure returns.
  2999. * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
  3000. (FFI_TYPE_SMALL_STRUCT2): Remove.
  3001. (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
  3002. (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
  3003. * src/pa/linux.S: Mark source file as using PA1.1 assembly.
  3004. (checksmst1, checksmst2): Remove.
  3005. (checksmst3): Optimize handling of 3-byte struct returns.
  3006. (checksmst567): Properly handle 5-7 byte struct returns.
  3007. 2005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3008. PR libgcj/21943
  3009. * src/mips/n32.S: Enforce PIC code.
  3010. * src/mips/o32.S: Likewise.
  3011. 2005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3012. * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
  3013. * configure: Regenerate.
  3014. 2005-06-01 Alan Modra <amodra@bigpond.net.au>
  3015. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
  3016. to call ffi_closure_helper_SYSV. Append @local instead.
  3017. * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
  3018. 2005-05-17 Kelley Cook <kcook@gcc.gnu.org>
  3019. * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
  3020. Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
  3021. * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
  3022. * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
  3023. include/Makefile.in, testsuite/Makefile.in: Regenerate.
  3024. 2005-05-09 Mike Stump <mrs@apple.com>
  3025. * configure: Regenerate.
  3026. 2005-05-08 Richard Henderson <rth@redhat.com>
  3027. PR libffi/21285
  3028. * src/alpha/osf.S: Update unwind into to match code.
  3029. 2005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
  3030. Richard Henderson <rth@redhat.com>
  3031. * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
  3032. bit 11 of flags.
  3033. (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
  3034. (ffi_prep_closure): Set carry bit if sse-used flag set.
  3035. * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
  3036. Only load sse registers if ssecount non-zero.
  3037. (ffi_closure_unix64): Only save sse registers if carry set on entry.
  3038. 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
  3039. * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
  3040. powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
  3041. * configure: Regenerate.
  3042. 2005-04-20 Hans-Peter Nilsson <hp@axis.com>
  3043. * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
  3044. have Tcl8.3-compatible intermediate variable.
  3045. 2005-04-18 Simon Posnjak <simon.posnjak@siol.net>
  3046. Hans-Peter Nilsson <hp@axis.com>
  3047. * Makefile.am: Add CRIS support.
  3048. * configure.ac: Likewise.
  3049. * Makefile.in, configure, testsuite/Makefile.in,
  3050. include/Makefile.in: Regenerate.
  3051. * src/cris: New directory.
  3052. * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
  3053. * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
  3054. * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
  3055. \r?\n in output tests.
  3056. 2005-04-12 Mike Stump <mrs@apple.com>
  3057. * configure: Regenerate.
  3058. 2005-03-30 Hans Boehm <Hans.Boehm@hp.com>
  3059. * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
  3060. 2005-03-30 Steve Ellcey <sje@cup.hp.com>
  3061. * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
  3062. (ffi_sarg) Ditto.
  3063. * src/ia64/unix.S (ffi_closure_unix): Extend gp
  3064. to 64 bits in ILP32 mode.
  3065. Load 64 bits even for short data.
  3066. 2005-03-23 Mike Stump <mrs@apple.com>
  3067. * src/powerpc/darwin.S: Update for -m64 multilib.
  3068. * src/powerpc/darwin_closure.S: Likewise.
  3069. 2005-03-21 Zack Weinberg <zack@codesourcery.com>
  3070. * configure.ac: Do not invoke TL_AC_GCC_VERSION.
  3071. Do not set tool_include_dir.
  3072. * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
  3073. Regenerate.
  3074. * include/Makefile.am: Set gcc_version and toollibffidir.
  3075. * include/Makefile.in: Regenerate.
  3076. 2005-02-22 Andrew Haley <aph@redhat.com>
  3077. * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
  3078. odd-numbered register pairs for 64-bit integer types.
  3079. 2005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
  3080. PR libffi/20104
  3081. * testsuite/libffi.call/return_ll1.c: New test case.
  3082. 2005-02-11 Janis Johnson <janis187@us.ibm.com>
  3083. * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
  3084. * testsuite/libffi.call/float.c: Ditto.
  3085. * testsuite/libffi.call/float2.c: Ditto.
  3086. * testsuite/libffi.call/float3.c: Ditto.
  3087. 2005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
  3088. * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
  3089. 2005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
  3090. * testsuite/libffi.special/special.exp (cxx_options): Add
  3091. -shared-libgcc.
  3092. 2004-12-31 Richard Henderson <rth@redhat.com>
  3093. * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
  3094. (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
  3095. offset parameters with a type parameter; deduce size and structure
  3096. alignment. Update all users.
  3097. 2004-12-31 Richard Henderson <rth@redhat.com>
  3098. * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
  3099. (FFI_TYPE_LONGDOUBLE): Fix for ia64.
  3100. * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
  3101. into ffi_prep_closure.
  3102. * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
  3103. from scratch.
  3104. 2004-12-27 Richard Henderson <rth@redhat.com>
  3105. * src/x86/unix64.S: Fix typo in unwind info.
  3106. 2004-12-25 Richard Henderson <rth@redhat.com>
  3107. * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
  3108. (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
  3109. (merge_classes): Check for it.
  3110. (SSE_CLASS_P): New.
  3111. (classify_argument): Pass byte_offset by value; perform all updates
  3112. inside struct case.
  3113. (examine_argument): Add classes argument; handle
  3114. X86_64_COMPLEX_X87_CLASS.
  3115. (ffi_prep_args): Merge into ...
  3116. (ffi_call): ... here. Share stack frame with ffi_call_unix64.
  3117. (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
  3118. (ffi_fill_return_value): Remove.
  3119. (ffi_prep_closure): Remove dead assert.
  3120. (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
  3121. Rewrite to use struct register_args instead of va_list. Create
  3122. flags for handling structure returns.
  3123. * src/x86/unix64.S: Remove dead strings.
  3124. (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
  3125. stack frame with ffi_call. Handle structure returns properly.
  3126. (float2sse, floatfloat2sse, double2sse): Remove.
  3127. (sse2float, sse2double, sse2floatfloat): Remove.
  3128. (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
  3129. to handle structure returns properly.
  3130. 2004-12-08 David Edelsohn <edelsohn@gnu.org>
  3131. * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
  3132. PICFLAG.
  3133. * Makefile.in: Regenerated.
  3134. 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
  3135. * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
  3136. * configure, aclocal.m4, Makefile.in: Regenerate.
  3137. * include/Makefile.in, testsuite/Makefile.in: Regenerate.
  3138. 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
  3139. * configure: Regenerate for libtool change.
  3140. 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
  3141. * configure: Regenerate for libtool reversion.
  3142. 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
  3143. * configure: Regenerate for libtool change.
  3144. 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3145. * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
  3146. 2004-11-23 Richard Sandiford <rsandifo@redhat.com>
  3147. * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
  3148. of jal. Use an absolute encoding for the frame information.
  3149. 2004-11-23 Kelley Cook <kcook@gcc.gnu.org>
  3150. * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
  3151. * acinclude.m4: Delete logic for sincludes.
  3152. * aclocal.m4, Makefile.in, configure: Regenerate.
  3153. * include/Makefile: Likewise.
  3154. * testsuite/Makefile: Likewise.
  3155. 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
  3156. * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
  3157. on a 8-byte boundary.
  3158. * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
  3159. 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
  3160. * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
  3161. long long values. Round stack allocation to a multiple of 8 bytes
  3162. for ATPCS compatibility.
  3163. * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
  3164. names. Handle returning long long types. Add Thumb and interworking
  3165. support. Improve soft-float code.
  3166. 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
  3167. * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
  3168. (libffi_exit): New function.
  3169. (libffi_init): Build the testglue wrapper if needed.
  3170. 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
  3171. PR other/18138
  3172. * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
  3173. 2004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  3174. * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
  3175. 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
  3176. * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
  3177. * testsuite/libffi.call/float3.c: New test case.
  3178. 2004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
  3179. * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
  3180. the function returning a structure pointed with R2.
  3181. * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
  3182. the structure return value if T bit set. Emit position
  3183. independent code and EH data if PIC.
  3184. 2004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  3185. * Makefile.am: Add m32r support.
  3186. * configure.ac: Likewise.
  3187. * Makefile.in: Regenerate.
  3188. * confiugre: Regenerate.
  3189. * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
  3190. (uint64, sint64, double, longdouble)
  3191. * src/m32r: New directory.
  3192. * src/m32r/ffi.c: New file.
  3193. * src/m32r/sysv.S: Likewise.
  3194. * src/m32r/ffitarget.h: Likewise.
  3195. 2004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
  3196. * testsuite/libffi.call/negint.c: New test case.
  3197. 2004-09-14 H.J. Lu <hongjiu.lu@intel.com>
  3198. PR libgcj/17465
  3199. * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
  3200. Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
  3201. LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
  3202. DYLD_LIBRARY_PATH.
  3203. 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
  3204. * testsuite/libffi.call/many_win32.c: Remove whitespaces.
  3205. * testsuite/libffi.call/promotion.c: Likewise.
  3206. * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
  3207. whitespaces.
  3208. * testsuite/libffi.call/return_sc.c: Likewise.
  3209. * testsuite/libffi.call/return_uc.c: Likewise.
  3210. 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
  3211. * src/powerpc/darwin.S: Fix comments and identation.
  3212. * src/powerpc/darwin_closure.S: Likewise.
  3213. 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
  3214. * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
  3215. (ffi_prep_args): Handle longdouble arguments.
  3216. (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
  3217. longdouble.
  3218. (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
  3219. * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
  3220. values.
  3221. * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
  3222. * src/types.c: Defined longdouble size and alignment for darwin.
  3223. 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
  3224. * src/powerpc/aix.S: Remove whitespaces.
  3225. * src/powerpc/aix_closure.S: Likewise.
  3226. * src/powerpc/asm.h: Likewise.
  3227. * src/powerpc/ffi.c: Likewise.
  3228. * src/powerpc/ffitarget.h: Likewise.
  3229. * src/powerpc/linux64.S: Likewise.
  3230. * src/powerpc/linux64_closure.S: Likewise.
  3231. * src/powerpc/ppc_closure.S: Likewise.
  3232. * src/powerpc/sysv.S: Likewise.
  3233. 2004-08-30 Anthony Green <green@redhat.com>
  3234. * Makefile.am: Add frv support.
  3235. * Makefile.in, testsuite/Makefile.in: Rebuilt.
  3236. * configure.ac: Read configure.host.
  3237. * configure.in: Read configure.host.
  3238. * configure.host: New file. frv-elf needs libgloss.
  3239. * include/ffi.h.in: Force ffi_closure to have a nice big (8)
  3240. alignment. This is needed to frv and shouldn't harm the others.
  3241. * include/ffi_common.h (ALIGN_DOWN): New macro.
  3242. * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
  3243. 2004-08-24 David Daney <daney@avtrex.com>
  3244. * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
  3245. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3246. * testsuite/libffi.call/closure_fn2.c Likewise.
  3247. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3248. * testsuite/libffi.call/closure_fn4.c: Likewise.
  3249. * testsuite/libffi.call/closure_fn5.c: Likewise.
  3250. * testsuite/libffi.call/cls_18byte.c: Likewise.
  3251. * testsuite/libffi.call/cls_19byte.c: Likewise.
  3252. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3253. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3254. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  3255. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3256. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3257. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3258. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3259. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3260. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3261. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3262. * testsuite/libffi.call/cls_64byte.c: Likewise.
  3263. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3264. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3265. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3266. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  3267. * testsuite/libffi.call/cls_9byte2.c: Likewise.
  3268. * testsuite/libffi.call/cls_align_double.c: Likewise.
  3269. * testsuite/libffi.call/cls_align_float.c: Likewise.
  3270. * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
  3271. * testsuite/libffi.call/cls_align_pointer.c: Likewise.
  3272. * testsuite/libffi.call/cls_align_sint16.c: Likewise.
  3273. * testsuite/libffi.call/cls_align_sint32.c: Likewise.
  3274. * testsuite/libffi.call/cls_align_sint64.c: Likewise.
  3275. * testsuite/libffi.call/cls_align_uint16.c: Likewise.
  3276. * testsuite/libffi.call/cls_align_uint32.c: Likewise.
  3277. * testsuite/libffi.call/cls_align_uint64.c: Likewise.
  3278. * testsuite/libffi.call/cls_double.c: Likewise.
  3279. * testsuite/libffi.call/cls_float.c: Likewise.
  3280. * testsuite/libffi.call/cls_multi_schar.c: Likewise.
  3281. * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
  3282. * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
  3283. * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
  3284. * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
  3285. * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
  3286. * testsuite/libffi.call/cls_schar.c: Likewise.
  3287. * testsuite/libffi.call/cls_sint.c: Likewise.
  3288. * testsuite/libffi.call/cls_sshort.c: Likewise.
  3289. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3290. * testsuite/libffi.call/cls_uint.c: Likewise.
  3291. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3292. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3293. * testsuite/libffi.call/nested_struct.c: Likewise.
  3294. * testsuite/libffi.call/nested_struct1.c: Likewise.
  3295. * testsuite/libffi.call/nested_struct2.c: Likewise.
  3296. * testsuite/libffi.call/nested_struct3.c: Likewise.
  3297. * testsuite/libffi.call/problem1.c: Likewise.
  3298. * testsuite/libffi.special/unwindtest.cc: Likewise.
  3299. * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
  3300. to zero.
  3301. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3302. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3303. 2004-08-23 David Daney <daney@avtrex.com>
  3304. PR libgcj/13141
  3305. * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
  3306. * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
  3307. (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
  3308. parameters and return types.
  3309. (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
  3310. (ffi_prep_closure): Ditto.
  3311. (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
  3312. alignment calculations.
  3313. * src/mips/o32.S (ffi_closure_O32): Don't use floating point
  3314. instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
  3315. 2004-08-14 Casey Marshall <csm@gnu.org>
  3316. * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
  3317. contain `FFI_TYPE_UINT64' as return type for any 64-bit
  3318. integer (O32 ABI only).
  3319. (ffi_prep_closure): new function.
  3320. (ffi_closure_mips_inner_O32): new function.
  3321. * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
  3322. `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
  3323. * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
  3324. 64 bit integers correctly.
  3325. (ffi_closure_O32): new function.
  3326. Added DWARF-2 unwind info for both functions.
  3327. 2004-08-10 Andrew Haley <aph@redhat.com>
  3328. * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
  3329. 2004-08-01 Robert Millan <robertmh@gnu.org>
  3330. * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
  3331. * configure: Regenerate.
  3332. 2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
  3333. * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
  3334. and mmap() explicitly instead of relying on preset autoconf cache
  3335. variables.
  3336. * aclocal.m4: Regenerate.
  3337. * configure: Regenerate.
  3338. 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
  3339. * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
  3340. (ffi_check_float_struct): Remove unused prototype.
  3341. 2004-06-30 Geoffrey Keating <geoffk@apple.com>
  3342. * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
  3343. character on Darwin, use '\n\t' instead.
  3344. 2004-06-26 Matthias Klose <doko@debian.org>
  3345. * libtool-version: Fix typo in revision/age.
  3346. 2004-06-17 Matthias Klose <doko@debian.org>
  3347. * libtool-version: New.
  3348. * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
  3349. * Makefile.in: Regenerate.
  3350. 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
  3351. * Makefile.am: Remove useless multilib rules.
  3352. * Makefile.in: Regenerate.
  3353. * aclocal.m4: Regenerate with automake 1.8.5.
  3354. * configure.ac: Remove useless multilib configury.
  3355. * configure: Regenerate.
  3356. 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
  3357. * .cvsignore: New file.
  3358. 2004-06-10 Jakub Jelinek <jakub@redhat.com>
  3359. * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
  3360. fp_done.
  3361. (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
  3362. changed from 8.
  3363. 2004-06-06 Sean McNeil <sean@mcneil.com>
  3364. * configure.ac: Add x86_64-*-freebsd* support.
  3365. * configure: Regenerate.
  3366. 2004-04-26 Joe Buck <jbuck@welsh-buck.org>
  3367. Bug 15093
  3368. * configure.ac: Test for existence of mmap and sys/mman.h before
  3369. checking blacklist. Fix suggested by Jim Wilson.
  3370. * configure: Regenerate.
  3371. 2004-04-26 Matt Austern <austern@apple.com>
  3372. * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
  3373. FDE location.
  3374. * src/powerpc/darwin_closure.S: Likewise.
  3375. 2004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
  3376. * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
  3377. error. Reported by Thomas Heller <theller@python.net>.
  3378. * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
  3379. * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
  3380. 2004-03-20 Matthias Klose <doko@debian.org>
  3381. * src/pa/linux.S: Fix typo.
  3382. 2004-03-19 Matthias Klose <doko@debian.org>
  3383. * Makefile.am: Update.
  3384. * Makefile.in: Regenerate.
  3385. * src/pa/ffi.h.in: Remove.
  3386. * src/pa/ffitarget.h: New file.
  3387. 2004-02-10 Randolph Chung <tausq@debian.org>
  3388. * Makefile.am: Add PA support.
  3389. * Makefile.in: Regenerate.
  3390. * include/Makefile.in: Regenerate.
  3391. * configure.ac: Add PA target.
  3392. * configure: Regenerate.
  3393. * src/pa/ffi.c: New file.
  3394. * src/pa/ffi.h.in: Add PA support.
  3395. * src/pa/linux.S: New file.
  3396. * prep_cif.c: Add PA support.
  3397. 2004-03-16 Hosaka Yuji <hos@tamanegi.org>
  3398. * src/types.c: Fix alignment size of X86_WIN32 case int64 and
  3399. double.
  3400. * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
  3401. with ecif->cif->flags.
  3402. (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
  3403. with cif->flags.
  3404. (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
  3405. (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
  3406. * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
  3407. sc_retstruct2b): Add for 1 or 2-bytes struct case.
  3408. 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
  3409. * configure.in: Rename file to ...
  3410. * configure.ac: ... this.
  3411. * fficonfig.h.in: Regenerate.
  3412. * Makefile.in: Regenerate.
  3413. * include/Makefile.in: Regenerate.
  3414. * testsuite/Makefile.in: Regenerate.
  3415. 2004-03-12 Matt Austern <austern@apple.com>
  3416. * src/powerpc/darwin.S: Fix EH information so it corresponds to
  3417. changes in EH format resulting from addition of linkonce support.
  3418. * src/powerpc/darwin_closure.S: Likewise.
  3419. 2004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
  3420. Paolo Bonzini <bonzini@gnu.org>
  3421. * Makefile.am (AUTOMAKE_OPTIONS): Set them.
  3422. Remove VPATH. Remove rules for object files. Remove multilib support.
  3423. (AM_CCASFLAGS): Add.
  3424. * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
  3425. (AC_PREREQ): Bump version to 2.59.
  3426. (AC_INIT): Fill with version info and bug address.
  3427. (ORIGINAL_LD_FOR_MULTILIBS): Remove.
  3428. (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
  3429. De-precious CC so that the right flags are passed down to multilibs.
  3430. (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
  3431. (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
  3432. (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
  3433. * configure: Rebuilt.
  3434. * aclocal.m4: Likewise.
  3435. * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
  3436. * fficonfig.h.in: Likewise.
  3437. 2004-03-11 Andreas Schwab <schwab@suse.de>
  3438. * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
  3439. arguments from fp registers only for the first 8 parameter slots.
  3440. Don't convert a float parameter when passed in memory.
  3441. 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
  3442. * configure: Regenerate for config/accross.m4 correction.
  3443. 2004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
  3444. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
  3445. ecif->cif->bytes to bytes.
  3446. (ffi_prep_cif_machdep): Add braces around nested if statement.
  3447. 2004-02-09 Alan Modra <amodra@bigpond.net.au>
  3448. * src/types.c (pointer): POWERPC64 has 8 byte pointers.
  3449. * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
  3450. (ffi_closure_helper_LINUX64): Fix typo.
  3451. * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
  3452. for powerpc64-*-*.
  3453. * testsuite/libffi.call/float.c: Likewise.
  3454. * testsuite/libffi.call/float2.c: Likewise.
  3455. 2004-02-08 Alan Modra <amodra@bigpond.net.au>
  3456. * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
  3457. long double function return and long double arg handling.
  3458. (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
  3459. Use "end_pfr" instead of "nf". Correct long double handling.
  3460. Localise "temp".
  3461. * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
  3462. return value.
  3463. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
  3464. space for long double return value. Adjust stack frame and offsets.
  3465. Load f2 long double return.
  3466. 2004-02-07 Alan Modra <amodra@bigpond.net.au>
  3467. * src/types.c: Use 16 byte long double for POWERPC64.
  3468. 2004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
  3469. * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
  3470. when the structure return address is passed in %o0.
  3471. (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
  3472. (ffi_v9_layout_struct): Align the field following a nested structure
  3473. on a word boundary. Use memmove instead of memcpy.
  3474. (ffi_call): Update call to ffi_V9_return_struct.
  3475. (ffi_prep_closure): Define 'ctx' only for V8.
  3476. (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
  3477. and ffi_closure_sparc_inner_v9.
  3478. (ffi_closure_sparc_inner_v8): Return long doubles by reference.
  3479. Always skip the structure return address. For structures and long
  3480. doubles, copy the argument directly.
  3481. (ffi_closure_sparc_inner_v9): Skip the structure return address only
  3482. if required. Shift the maximum floating-point slot accordingly. For
  3483. big structures, copy the argument directly; otherwise, left-justify the
  3484. argument and call ffi_v9_layout_struct to lay out the structure on
  3485. the stack.
  3486. * src/sparc/v8.S: Undef STACKFRAME before defining it.
  3487. (ffi_closure_v8): Pass the structure return address. Update call to
  3488. ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
  3489. Skip the 'unimp' insn when returning long doubles and structures.
  3490. * src/sparc/v9.S: Undef STACKFRAME before defining it.
  3491. (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
  3492. FFI_TYPE_INT handling. Load structures both in integers and
  3493. floating-point registers on return.
  3494. * README: Update status of the SPARC port.
  3495. 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
  3496. * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
  3497. as of type ffi_arg.
  3498. * testsuite/libffi.call/struct3.c (main): Fix CHECK.
  3499. 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
  3500. * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
  3501. value as of type ffi_arg, not unsigned int.
  3502. 2004-01-21 Michael Ritzert <ritzert@t-online.de>
  3503. * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
  3504. of the LHS.
  3505. 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
  3506. * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
  3507. Solaris.
  3508. 2004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3509. * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
  3510. to void *.
  3511. 2003-12-10 Richard Henderson <rth@redhat.com>
  3512. * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
  3513. size_t instead of int.
  3514. 2003-12-04 Hosaka Yuji <hos@tamanegi.org>
  3515. * testsuite/libffi.call/many_win32.c: Include <float.h>.
  3516. * testsuite/libffi.call/many_win32.c (main): Replace variable
  3517. int i with unsigned long ul.
  3518. * testsuite/libffi.call/cls_align_uint64.c: New test case.
  3519. * testsuite/libffi.call/cls_align_sint64.c: Likewise.
  3520. * testsuite/libffi.call/cls_align_uint32.c: Likewise.
  3521. * testsuite/libffi.call/cls_align_sint32.c: Likewise.
  3522. * testsuite/libffi.call/cls_align_uint16.c: Likewise.
  3523. * testsuite/libffi.call/cls_align_sint16.c: Likewise.
  3524. * testsuite/libffi.call/cls_align_float.c: Likewise.
  3525. * testsuite/libffi.call/cls_align_double.c: Likewise.
  3526. * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
  3527. * testsuite/libffi.call/cls_align_pointer.c: Likewise.
  3528. 2003-12-02 Hosaka Yuji <hos@tamanegi.org>
  3529. PR other/13221
  3530. * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
  3531. Align arguments to 32 bits.
  3532. 2003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
  3533. PR other/13221
  3534. * testsuite/libffi.call/cls_multi_sshort.c: New test case.
  3535. * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
  3536. * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
  3537. * testsuite/libffi.call/cls_multi_schar.c: Likewise.
  3538. * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
  3539. * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
  3540. * testsuite/libffi.special/unwindtest.cc: Cosmetics.
  3541. 2003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  3542. * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
  3543. * testsuite/libffi.special/ffitestcxx.h: Likewise.
  3544. 2003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
  3545. * Makefile.in: Rebuilt.
  3546. * configure: Likewise.
  3547. * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
  3548. the right type.
  3549. 2003-11-21 Andreas Jaeger <aj@suse.de>
  3550. Andreas Tobler <a.tobler@schweiz.ch>
  3551. * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
  3552. * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
  3553. * Makefile.in: Rebuilt.
  3554. * aclocal.m4: Likewise.
  3555. * configure: Likewise.
  3556. * fficonfig.h.in: Likewise.
  3557. * testsuite/lib/libffi-dg.exp: Add include dir.
  3558. * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
  3559. * testsuite/libffi.special/ffitestcxx.h: Likewise.
  3560. * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
  3561. for ffi_closure if available.
  3562. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3563. * testsuite/libffi.call/closure_fn2.c: Likewise.
  3564. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3565. * testsuite/libffi.call/closure_fn4.c: Likewise.
  3566. * testsuite/libffi.call/closure_fn5.c: Likewise.
  3567. * testsuite/libffi.call/cls_12byte.c: Likewise.
  3568. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3569. * testsuite/libffi.call/cls_18byte.c: Likewise.
  3570. * testsuite/libffi.call/cls_19byte.c: Likewise.
  3571. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3572. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3573. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  3574. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3575. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3576. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3577. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3578. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3579. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3580. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3581. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3582. * testsuite/libffi.call/cls_64byte.c: Likewise.
  3583. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3584. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3585. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3586. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  3587. * testsuite/libffi.call/cls_9byte2.c: Likewise.
  3588. * testsuite/libffi.call/cls_double.c: Likewise.
  3589. * testsuite/libffi.call/cls_float.c: Likewise.
  3590. * testsuite/libffi.call/cls_schar.c: Likewise.
  3591. * testsuite/libffi.call/cls_sint.c: Likewise.
  3592. * testsuite/libffi.call/cls_sshort.c: Likewise.
  3593. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3594. * testsuite/libffi.call/cls_uint.c: Likewise.
  3595. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3596. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3597. * testsuite/libffi.call/nested_struct.c: Likewise.
  3598. * testsuite/libffi.call/nested_struct1.c: Likewise.
  3599. * testsuite/libffi.call/nested_struct2.c: Likewise.
  3600. * testsuite/libffi.call/nested_struct3.c: Likewise.
  3601. * testsuite/libffi.call/problem1.c: Likewise.
  3602. * testsuite/libffi.special/unwindtest.cc: Likewise.
  3603. 2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
  3604. * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
  3605. 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
  3606. * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
  3607. Add -lgcc_s to additional flags.
  3608. 2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
  3609. * configure.in, include/Makefile.am: PR libgcj/11147, install
  3610. the ffitarget.h header file in a gcc versioned and target
  3611. dependent place.
  3612. * configure: Regenerated.
  3613. * Makefile.in, include/Makefile.in: Likewise.
  3614. * testsuite/Makefile.in: Likewise.
  3615. 2003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
  3616. * testsuite/libffi.call/closure_fn0.c: Print result and check
  3617. with dg-output to make debugging easier.
  3618. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3619. * testsuite/libffi.call/closure_fn2.c: Likewise.
  3620. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3621. * testsuite/libffi.call/closure_fn4.c: Likewise.
  3622. * testsuite/libffi.call/closure_fn5.c: Likewise.
  3623. * testsuite/libffi.call/cls_12byte.c: Likewise.
  3624. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3625. * testsuite/libffi.call/cls_18byte.c: Likewise.
  3626. * testsuite/libffi.call/cls_19byte.c: Likewise.
  3627. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3628. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3629. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  3630. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3631. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3632. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3633. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3634. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3635. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3636. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3637. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3638. * testsuite/libffi.call/cls_64byte.c: Likewise.
  3639. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3640. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3641. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3642. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  3643. * testsuite/libffi.call/cls_9byte2.c: Likewise.
  3644. * testsuite/libffi.call/cls_double.c: Likewise.
  3645. * testsuite/libffi.call/cls_float.c: Likewise.
  3646. * testsuite/libffi.call/cls_schar.c: Likewise.
  3647. * testsuite/libffi.call/cls_sint.c: Likewise.
  3648. * testsuite/libffi.call/cls_sshort.c: Likewise.
  3649. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3650. * testsuite/libffi.call/cls_uint.c: Likewise.
  3651. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3652. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3653. * testsuite/libffi.call/problem1.c: Likewise.
  3654. * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
  3655. static.
  3656. 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
  3657. * testsuite/libffi.call/cls_9byte2.c: New test case.
  3658. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  3659. * testsuite/libffi.call/cls_64byte.c: Likewise.
  3660. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  3661. * testsuite/libffi.call/cls_19byte.c: Likewise.
  3662. * testsuite/libffi.call/cls_18byte.c: Likewise.
  3663. * testsuite/libffi.call/closure_fn4.c: Likewise.
  3664. * testsuite/libffi.call/closure_fn5.c: Likewise.
  3665. * testsuite/libffi.call/cls_schar.c: Likewise.
  3666. * testsuite/libffi.call/cls_sint.c: Likewise.
  3667. * testsuite/libffi.call/cls_sshort.c: Likewise.
  3668. * testsuite/libffi.call/nested_struct2.c: Likewise.
  3669. * testsuite/libffi.call/nested_struct3.c: Likewise.
  3670. 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
  3671. * testsuite/libffi.call/cls_double.c: Do a check on the result.
  3672. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3673. * testsuite/libffi.call/cls_uint.c: Likewise.
  3674. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3675. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3676. * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
  3677. 2003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
  3678. * src/prep_cif.c (ffi_prep_cif): Move the validity check after
  3679. the initialization.
  3680. 2003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
  3681. * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
  3682. FFI_ASSERT(FALSE) with FFI_ASSERT(0).
  3683. 2003-10-22 David Daney <ddaney@avtrex.com>
  3684. * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
  3685. __attribute__((__mode__(__SI__))) and friends.
  3686. 2003-10-22 Andreas Schwab <schwab@suse.de>
  3687. * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
  3688. 2003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
  3689. * configure.in: AC_LINK_FILES(ffitarget.h).
  3690. * configure: Regenerate.
  3691. * Makefile.in: Likewise.
  3692. * include/Makefile.in: Likewise.
  3693. * testsuite/Makefile.in: Likewise.
  3694. * fficonfig.h.in: Likewise.
  3695. 2003-10-21 Paolo Bonzini <bonzini@gnu.org>
  3696. Richard Henderson <rth@redhat.com>
  3697. Avoid that ffi.h includes fficonfig.h.
  3698. * Makefile.am (EXTRA_DIST): Include ffitarget.h files
  3699. (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
  3700. (TARGET_SRC_MIPS_SGI): Removed.
  3701. (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
  3702. (MIPS_SGI): Removed.
  3703. (CLEANFILES): Removed.
  3704. (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
  3705. targets.
  3706. * acconfig.h: Removed.
  3707. * configure.in: Compute sizeofs only for double and long double.
  3708. Use them to define and subst HAVE_LONG_DOUBLE. Include comments
  3709. into AC_DEFINE instead of using acconfig.h. Create
  3710. include/ffitarget.h instead of include/fficonfig.h. Rename
  3711. MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
  3712. AC_DEFINE EH_FRAME_FLAGS.
  3713. * include/Makefile.am (DISTCLEANFILES): New automake macro.
  3714. (hack_DATA): Add ffitarget.h.
  3715. * include/ffi.h.in: Remove all system specific definitions.
  3716. Declare raw API even if it is not installed, why bother?
  3717. Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
  3718. not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
  3719. ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
  3720. (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
  3721. * include/ffi_common.h (bool): Do not define.
  3722. (ffi_assert): Accept failed assertion.
  3723. (ffi_type_test): Return void and accept file/line.
  3724. (FFI_ASSERT): Pass stringized failed assertion.
  3725. (FFI_ASSERT_AT): New macro.
  3726. (FFI_ASSERT_VALID_TYPE): New macro.
  3727. (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
  3728. UINT64, SINT64): Define here with gcc's __attribute__ macro
  3729. instead of in ffi.h
  3730. (FLOAT32, ALIGN): Define here instead of in ffi.h
  3731. * include/ffi-mips.h: Removed. Its content moved to
  3732. src/mips/ffitarget.h after separating assembly and C sections.
  3733. * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
  3734. src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
  3735. src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
  3736. src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
  3737. SIZEOF_ARG -> FFI_SIZEOF_ARG.
  3738. * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
  3739. * src/debug.c (ffi_assert): Accept stringized failed assertion.
  3740. (ffi_type_test): Rewritten.
  3741. * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
  3742. FFI_ASSERT_VALID_TYPE.
  3743. * src/alpha/ffitarget.h, src/arm/ffitarget.h,
  3744. src/ia64/ffitarget.h, src/m68k/ffitarget.h,
  3745. src/mips/ffitarget.h, src/powerpc/ffitarget.h,
  3746. src/s390/ffitarget.h, src/sh/ffitarget.h,
  3747. src/sh64/ffitarget.h, src/sparc/ffitarget.h,
  3748. src/x86/ffitarget.h: New files.
  3749. * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
  3750. src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
  3751. src/powerpc/aix.S, src/powerpc/darwin.S,
  3752. src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
  3753. src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
  3754. src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
  3755. src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
  3756. src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
  3757. include fficonfig.h
  3758. 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3759. * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
  3760. _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
  3761. 2003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
  3762. * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
  3763. Used when FFI_DEBUG = 1.
  3764. 2003-10-14 Alan Modra <amodra@bigpond.net.au>
  3765. * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
  3766. and align.
  3767. 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3768. * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
  3769. FFI_MIPS_O32 for O32 ABI.
  3770. 2003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
  3771. * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
  3772. SPARC64. Cleanup whitespaces.
  3773. 2003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
  3774. * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
  3775. strongarm, xscale. Cleanup whitespaces.
  3776. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3777. * testsuite/libffi.call/closure_fn2.c: Likewise.
  3778. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3779. * testsuite/libffi.call/cls_12byte.c: Likewise.
  3780. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3781. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3782. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3783. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3784. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3785. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3786. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3787. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3788. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3789. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3790. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3791. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3792. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3793. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3794. * testsuite/libffi.call/cls_double.c: Likewise.
  3795. * testsuite/libffi.call/cls_float.c: Likewise.
  3796. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3797. * testsuite/libffi.call/cls_uint.c: Likewise.
  3798. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3799. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3800. * testsuite/libffi.call/nested_struct.c: Likewise.
  3801. * testsuite/libffi.call/nested_struct1.c: Likewise.
  3802. * testsuite/libffi.call/problem1.c: Likewise.
  3803. * testsuite/libffi.special/unwindtest.cc: Likewise.
  3804. * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
  3805. 2003-09-18 David Edelsohn <edelsohn@gnu.org>
  3806. * src/powerpc/aix.S: Cleanup whitespaces.
  3807. * src/powerpc/aix_closure.S: Likewise.
  3808. 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
  3809. * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
  3810. * src/powerpc/darwin_closure.S: Likewise.
  3811. * src/powerpc/ffi_darwin.c: Likewise.
  3812. 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
  3813. David Edelsohn <edelsohn@gnu.org>
  3814. * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
  3815. * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
  3816. parameter stack.
  3817. * src/powerpc/darwin_closure.S: Likewise.
  3818. * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
  3819. according to the Darwin/AIX ABI.
  3820. (ffi_prep_cif_machdep): Likewise.
  3821. (ffi_closure_helper_DARWIN): Likewise.
  3822. Remove the outgoing parameter stack logic. Simplify the evaluation
  3823. of the different CASE types.
  3824. (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
  3825. statement in the trampoline code.
  3826. 2003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
  3827. * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
  3828. for the register size.
  3829. (ffi_closure_helper_SYSV): Handle the structure return value
  3830. address correctly.
  3831. (ffi_closure_helper_SYSV): Return the appropriate type when
  3832. the registers are used for the structure return value.
  3833. * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
  3834. the 64-bit return value. Update copyright years.
  3835. 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3836. * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
  3837. srcdir for ffi_mips.h.
  3838. 2003-09-12 Alan Modra <amodra@bigpond.net.au>
  3839. * src/prep_cif.c (initialize_aggregate): Include tail padding in
  3840. structure size.
  3841. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
  3842. placement of float result.
  3843. * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
  3844. cast of "resp" for big-endian 64 bit machines.
  3845. 2003-09-11 Alan Modra <amodra@bigpond.net.au>
  3846. * src/types.c (double, longdouble): Merge identical SH and ARM
  3847. typedefs, and add POWERPC64.
  3848. * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
  3849. struct split over gpr and rest.
  3850. (ffi_prep_cif_machdep): Correct intarg_count for structures.
  3851. * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
  3852. 2003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
  3853. * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
  3854. passing correctly.
  3855. 2003-09-09 Alan Modra <amodra@bigpond.net.au>
  3856. * configure: Regenerate.
  3857. 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
  3858. * Makefile.am: Remove build rules for ffitest.
  3859. * Makefile.in: Rebuilt.
  3860. 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
  3861. * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
  3862. about implicit declaration of abort().
  3863. 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
  3864. * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
  3865. * Makefile.in: Rebuilt.
  3866. * configure.in: Add dejagnu test framework.
  3867. * configure: Rebuilt.
  3868. * testsuite/Makefile.am: New file.
  3869. * testsuite/Makefile.in: Built
  3870. * testsuite/lib/libffi-dg.exp: New file.
  3871. * testsuite/config/default.exp: Likewise.
  3872. * testsuite/libffi.call/call.exp: Likewise.
  3873. * testsuite/libffi.call/ffitest.h: Likewise.
  3874. * testsuite/libffi.call/closure_fn0.c: Likewise.
  3875. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3876. * testsuite/libffi.call/closure_fn2.c: Likewise.
  3877. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3878. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3879. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3880. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3881. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3882. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3883. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3884. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3885. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3886. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3887. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3888. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3889. * testsuite/libffi.call/cls_12byte.c: Likewise.
  3890. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3891. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3892. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3893. * testsuite/libffi.call/cls_double.c: Likewise.
  3894. * testsuite/libffi.call/cls_float.c: Likewise.
  3895. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3896. * testsuite/libffi.call/cls_uint.c: Likewise.
  3897. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3898. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3899. * testsuite/libffi.call/float.c: Likewise.
  3900. * testsuite/libffi.call/float1.c: Likewise.
  3901. * testsuite/libffi.call/float2.c: Likewise.
  3902. * testsuite/libffi.call/many.c: Likewise.
  3903. * testsuite/libffi.call/many_win32.c: Likewise.
  3904. * testsuite/libffi.call/nested_struct.c: Likewise.
  3905. * testsuite/libffi.call/nested_struct1.c: Likewise.
  3906. * testsuite/libffi.call/pyobjc-tc.c: Likewise.
  3907. * testsuite/libffi.call/problem1.c: Likewise.
  3908. * testsuite/libffi.call/promotion.c: Likewise.
  3909. * testsuite/libffi.call/return_ll.c: Likewise.
  3910. * testsuite/libffi.call/return_sc.c: Likewise.
  3911. * testsuite/libffi.call/return_uc.c: Likewise.
  3912. * testsuite/libffi.call/strlen.c: Likewise.
  3913. * testsuite/libffi.call/strlen_win32.c: Likewise.
  3914. * testsuite/libffi.call/struct1.c: Likewise.
  3915. * testsuite/libffi.call/struct2.c: Likewise.
  3916. * testsuite/libffi.call/struct3.c: Likewise.
  3917. * testsuite/libffi.call/struct4.c: Likewise.
  3918. * testsuite/libffi.call/struct5.c: Likewise.
  3919. * testsuite/libffi.call/struct6.c: Likewise.
  3920. * testsuite/libffi.call/struct7.c: Likewise.
  3921. * testsuite/libffi.call/struct8.c: Likewise.
  3922. * testsuite/libffi.call/struct9.c: Likewise.
  3923. * testsuite/libffi.special/special.exp: New file.
  3924. * testsuite/libffi.special/ffitestcxx.h: Likewise.
  3925. * testsuite/libffi.special/unwindtest.cc: Likewise.
  3926. 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
  3927. * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
  3928. copyright years.
  3929. 2003-08-02 Alan Modra <amodra@bigpond.net.au>
  3930. * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
  3931. structure passing.
  3932. (ffi_closure_helper_LINUX64): Likewise.
  3933. * src/powerpc/linux64.S: Remove code writing to parm save area.
  3934. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
  3935. address in lr from ffi_closure_helper_LINUX64 call to calculate
  3936. table address. Optimize function tail.
  3937. 2003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
  3938. * src/sparc/ffi.c: Handle all floating point registers.
  3939. * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
  3940. 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
  3941. * README: Note that libffi is not part of GCC. Update the project
  3942. URL and status.
  3943. 2003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
  3944. * src/powerpc/ppc_closure.S: Include ffi.h.
  3945. 2003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3946. * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
  3947. Use C style comments.
  3948. 2003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3949. * Makefile.am: Add SHmedia support. Fix a typo of SH support.
  3950. * Makefile.in: Regenerate.
  3951. * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
  3952. * configure: Regenerate.
  3953. * include/ffi.h.in: Add SHmedia support.
  3954. * src/sh64/ffi.c: New file.
  3955. * src/sh64/sysv.S: New file.
  3956. 2003-05-16 Jakub Jelinek <jakub@redhat.com>
  3957. * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
  3958. should be read-only.
  3959. * configure: Rebuilt.
  3960. * fficonfig.h.in: Rebuilt.
  3961. * include/ffi.h.in (EH_FRAME_FLAGS): Define.
  3962. * src/alpha/osf.S: Use EH_FRAME_FLAGS.
  3963. * src/powerpc/linux64.S: Likewise.
  3964. * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
  3965. * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
  3966. if -fpic/-fPIC/-mrelocatable.
  3967. * src/powerpc/powerpc_closure.S: Likewise.
  3968. * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
  3969. #write in .eh_frame flags.
  3970. * src/sparc/v9.S: Likewise.
  3971. * src/x86/unix64.S: Use EH_FRAME_FLAGS.
  3972. * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
  3973. * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
  3974. 2003-05-07 Jeff Sturm <jsturm@one-point.com>
  3975. Fixes PR bootstrap/10656
  3976. * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
  3977. support for .register pseudo-op.
  3978. * src/sparc/v8.S: Use it.
  3979. * fficonfig.h.in: Rebuilt.
  3980. * configure: Rebuilt.
  3981. 2003-04-18 Jakub Jelinek <jakub@redhat.com>
  3982. * include/ffi.h.in (POWERPC64): Define if 64-bit.
  3983. (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
  3984. Make it the default on POWERPC64.
  3985. (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
  3986. * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
  3987. * configure: Rebuilt.
  3988. * src/powerpc/ffi.c (hidden): Define.
  3989. (ffi_prep_args_SYSV): Renamed from
  3990. ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
  3991. (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
  3992. ASM_NEEDS_REGISTERS64): New.
  3993. (ffi_prep_args64): New function.
  3994. (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
  3995. (ffi_call): Likewise.
  3996. (ffi_prep_closure): Likewise.
  3997. (flush_icache): Surround by #ifndef POWERPC64.
  3998. (ffi_dblfl): New union type.
  3999. (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
  4000. (ffi_closure_helper_LINUX64): New function.
  4001. * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
  4002. __powerpc64__.
  4003. * src/powerpc/sysv.S: Likewise.
  4004. (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
  4005. * src/powerpc/linux64.S: New file.
  4006. * src/powerpc/linux64_closure.S: New file.
  4007. * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
  4008. src/powerpc/linux64_closure.S.
  4009. (TARGET_SRC_POWERPC): Likewise.
  4010. * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
  4011. closure_test_fn3): Fix result printing on big-endian 64-bit
  4012. machines.
  4013. (main): Print tst2_arg instead of uninitialized tst2_result.
  4014. * src/ffitest.c (main): Hide what closure pointer really points to
  4015. from the compiler.
  4016. 2003-04-16 Richard Earnshaw <rearnsha@arm.com>
  4017. * configure.in (arm-*-netbsdelf*): Add configuration.
  4018. (configure): Regenerated.
  4019. 2003-04-04 Loren J. Rittle <ljrittle@acm.org>
  4020. * include/Makefile.in: Regenerate.
  4021. 2003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
  4022. * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
  4023. bit mode.
  4024. * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
  4025. Receive closure pointer through parameter, read args using
  4026. __builtin_dwarf_cfa.
  4027. (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
  4028. 2003-03-12 Andreas Schwab <schwab@suse.de>
  4029. * configure.in: Avoid trailing /. in toolexeclibdir.
  4030. * configure: Rebuilt.
  4031. 2003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
  4032. * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
  4033. 2003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
  4034. * libffi/src/powerpc/darwin_closure.S:
  4035. Fix alignement bug, allocate 8 bytes for the result.
  4036. * libffi/src/powerpc/aix_closure.S:
  4037. Likewise.
  4038. * libffi/src/powerpc/ffi_darwin.c:
  4039. Update stackframe description for aix/darwin_closure.S.
  4040. 2003-02-06 Jakub Jelinek <jakub@redhat.com>
  4041. * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
  4042. attribute.
  4043. 2003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
  4044. Andreas Schwab <schwab@suse.de>
  4045. * configure.in: Adjust command to source config-ml.in to account
  4046. for changes to the libffi_basedir definition.
  4047. (libffi_basedir): Remove ${srcdir} from value and include trailing
  4048. slash if nonempty.
  4049. * configure: Regenerate.
  4050. 2003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
  4051. * src/powerpc/ppc_closure.S: Recode to fit shared libs.
  4052. 2003-01-28 Andrew Haley <aph@redhat.com>
  4053. * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
  4054. * src/x86/ffi64.c (ffi_prep_closure): New.
  4055. (ffi_closure_UNIX64_inner): New.
  4056. * src/x86/unix64.S (ffi_closure_UNIX64): New.
  4057. 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
  4058. * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
  4059. Remove USE_LIBDIR conditional.
  4060. * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
  4061. * Makefile.in, configure: Rebuilt.
  4062. 2003-01027 David Edelsohn <edelsohn@gnu.org>
  4063. * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
  4064. * Makefile.in: Regenerate.
  4065. 2003-01-22 Andrew Haley <aph@redhat.com>
  4066. * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
  4067. unwind info.
  4068. 2003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
  4069. * src/powerpc/darwin.S: Add unwind info.
  4070. * src/powerpc/darwin_closure.S: Likewise.
  4071. 2003-01-14 Andrew Haley <aph@redhat.com>
  4072. * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
  4073. (ffi_prep_cif_machdep): Likewise.
  4074. * src/x86/unix64.S: Add unwind info.
  4075. 2003-01-14 Andreas Jaeger <aj@suse.de>
  4076. * src/ffitest.c (main): Only use ffi_closures if those are
  4077. supported.
  4078. 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
  4079. * libffi/src/ffitest.c
  4080. add closure testcases
  4081. 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
  4082. * libffi/src/powerpc/ffi.c
  4083. fix alignment bug for float (4 byte aligned iso 8 byte)
  4084. 2003-01-09 Geoffrey Keating <geoffk@apple.com>
  4085. * src/powerpc/ffi_darwin.c: Remove RCS version string.
  4086. * src/powerpc/darwin.S: Remove RCS version string.
  4087. 2003-01-03 Jeff Sturm <jsturm@one-point.com>
  4088. * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
  4089. * src/ffitest.c (main): Use static storage for closure.
  4090. * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
  4091. * src/sparc/v8.S (ffi_closure_v8): New.
  4092. * src/sparc/v9.S (ffi_closure_v9): New.
  4093. 2002-11-10 Ranjit Mathew <rmathew@hotmail.com>
  4094. * include/ffi.h.in: Added FFI_STDCALL ffi_type
  4095. enumeration for X86_WIN32.
  4096. * src/x86/win32.S: Added ffi_call_STDCALL function
  4097. definition.
  4098. * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
  4099. switch cases for recognising FFI_STDCALL and
  4100. calling ffi_call_STDCALL if target is X86_WIN32.
  4101. * src/ffitest.c (my_stdcall_strlen/stdcall_many):
  4102. stdcall versions of the "my_strlen" and "many"
  4103. test functions (for X86_WIN32).
  4104. Added test cases to test stdcall invocation using
  4105. these functions.
  4106. 2002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
  4107. * src/sh/sysv.S: Add DWARF2 unwind info.
  4108. 2002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
  4109. * src/s390/sysv.S (.eh_frame section): Make section read-only.
  4110. 2002-11-26 Jim Wilson <wilson@redhat.com>
  4111. * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
  4112. 2002-11-23 H.J. Lu <hjl@gnu.org>
  4113. * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
  4114. Include ../config/accross.m4.
  4115. * aclocal.m4; Rebuild.
  4116. * configure: Likewise.
  4117. 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
  4118. * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
  4119. 2002-11-11 DJ Delorie <dj@redhat.com>
  4120. * configure.in: Look for common files in the right place.
  4121. 2002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
  4122. * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
  4123. raw data as _Jv_word values, not ffi_raw.
  4124. (ffi_java_ptrarray_to_raw): Likewise.
  4125. (ffi_java_rvalue_to_raw): New function.
  4126. (ffi_java_raw_call): Call it.
  4127. (ffi_java_raw_to_rvalue): New function.
  4128. (ffi_java_translate_args): Call it.
  4129. * src/ffitest.c (closure_test_fn): Interpret return value
  4130. as ffi_arg, not int.
  4131. * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
  4132. FFI_TYPE_POINTER case.
  4133. (ffi_closure_helper_SYSV): Likewise. Also, assume return
  4134. values extended to word size.
  4135. 2002-10-02 Andreas Jaeger <aj@suse.de>
  4136. * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
  4137. 2002-10-01 Bo Thorsen <bo@smetana.suse.de>
  4138. * include/ffi.h.in: Fix i386 win32 compilation.
  4139. 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
  4140. * configure.in: Add s390x-*-linux-* target.
  4141. * configure: Regenerate.
  4142. * include/ffi.h.in: Define S390X for s390x targets.
  4143. (FFI_CLOSURES): Define for s390/s390x.
  4144. (FFI_TRAMPOLINE_SIZE): Likewise.
  4145. (FFI_NATIVE_RAW_API): Likewise.
  4146. * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
  4147. * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
  4148. * src/s390/ffi.c: Major rework of existing code. Add support for
  4149. s390x targets. Add closure support.
  4150. * src/s390/sysv.S: Likewise.
  4151. 2002-09-29 Richard Earnshaw <rearnsha@arm.com>
  4152. * src/arm/sysv.S: Fix typo.
  4153. 2002-09-28 Richard Earnshaw <rearnsha@arm.com>
  4154. * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
  4155. has defined __USER_LABEL_PREFIX__, then use it in CNAME.
  4156. (ffi_call_SYSV): Handle soft-float.
  4157. 2002-09-27 Bo Thorsen <bo@suse.de>
  4158. * include/ffi.h.in: Fix multilib x86-64 support.
  4159. 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  4160. * Makefile.am (all-multi): Fix multilib parallel build.
  4161. 2002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
  4162. * configure.in (sh[34]*-*-linux*): Add brackets.
  4163. * configure: Regenerate.
  4164. 2002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
  4165. * Makefile.am: Add SH support.
  4166. * Makefile.in: Regenerate.
  4167. * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
  4168. * configure: Regenerate.
  4169. * include/ffi.h.in: Add SH support.
  4170. * src/sh/ffi.c: New file.
  4171. * src/sh/sysv.S: New file.
  4172. * src/types.c: Add SH support.
  4173. 2002-07-16 Bo Thorsen <bo@suse.de>
  4174. * src/x86/ffi64.c: New file that adds x86-64 support.
  4175. * src/x86/unix64.S: New file that handles argument setup for
  4176. x86-64.
  4177. * src/x86/sysv.S: Don't use this on x86-64.
  4178. * src/x86/ffi.c: Don't use this on x86-64.
  4179. Remove unused vars.
  4180. * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
  4181. for x86-64.
  4182. * src/ffitest.c (struct6): New test that tests a special case in
  4183. the x86-64 ABI.
  4184. (struct7): Likewise.
  4185. (struct8): Likewise.
  4186. (struct9): Likewise.
  4187. (closure_test_fn): Silence warning about this when it's not used.
  4188. (main): Add the new tests.
  4189. (main): Fix a couple of wrong casts and silence some compiler warnings.
  4190. * include/ffi.h.in: Add x86-64 ABI definition.
  4191. * fficonfig.h.in: Regenerate.
  4192. * Makefile.am: Add x86-64 support.
  4193. * configure.in: Likewise.
  4194. * Makefile.in: Regenerate.
  4195. * configure: Likewise.
  4196. 2002-06-24 Bo Thorsen <bo@suse.de>
  4197. * src/types.c: Merge settings for similar architectures.
  4198. Add x86-64 sizes and alignments.
  4199. 2002-06-23 Bo Thorsen <bo@suse.de>
  4200. * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
  4201. * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
  4202. * src/mips/ffi.c (ffi_prep_args): Likewise.
  4203. * src/m68k/ffi.c (ffi_prep_args): Likewise.
  4204. 2002-07-18 H.J. Lu (hjl@gnu.org)
  4205. * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
  4206. (libffi_la_SOURCES): Support MIPS_LINUX.
  4207. (libffi_convenience_la_SOURCES): Likewise.
  4208. * Makefile.in: Regenerated.
  4209. * configure.in (mips64*-*): Skip.
  4210. (mips*-*-linux*): New.
  4211. * configure: Regenerated.
  4212. * src/mips/ffi.c: Include <sgidefs.h>.
  4213. 2002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
  4214. * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
  4215. 2002-05-27 Roger Sayle <roger@eyesopen.com>
  4216. * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
  4217. 2002-05-27 Bo Thorsen <bo@suse.de>
  4218. * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
  4219. fix formatting.
  4220. 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
  4221. * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
  4222. beginning of function (for older apple cc).
  4223. 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
  4224. * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
  4225. script entry, and set LD to it when configuring multilibs.
  4226. * configure: Rebuilt.
  4227. 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
  4228. * configure.in (sparc64-*-netbsd*): Add target.
  4229. (sparc-*-netbsdelf*): Likewise.
  4230. * configure: Regenerate.
  4231. 2002-04-28 David S. Miller <davem@redhat.com>
  4232. * configure.in, configure: Fix SPARC test in previous change.
  4233. 2002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
  4234. * Makefile.am: Add Linux for S/390 support.
  4235. * Makefile.in: Regenerate.
  4236. * configure.in: Add Linux for S/390 support.
  4237. * configure: Regenerate.
  4238. * include/ffi.h.in: Add Linux for S/390 support.
  4239. * src/s390/ffi.c: New file from libffi CVS tree.
  4240. * src/s390/sysv.S: New file from libffi CVS tree.
  4241. 2002-04-28 Jakub Jelinek <jakub@redhat.com>
  4242. * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
  4243. %r_disp32().
  4244. * src/sparc/v8.S: Use it.
  4245. * src/sparc/v9.S: Likewise.
  4246. * fficonfig.h.in: Rebuilt.
  4247. * configure: Rebuilt.
  4248. 2002-04-08 Hans Boehm <Hans_Boehm@hp.com>
  4249. * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
  4250. correctly.
  4251. * src/ia64/unix.S: Add unwind information. Fix comments.
  4252. Save sp in a way that's compatible with unwind info.
  4253. (ffi_call_unix): Correctly restore sp in all cases.
  4254. * src/ia64/ffi.c: Add, fix comments.
  4255. 2002-04-08 Jakub Jelinek <jakub@redhat.com>
  4256. * src/sparc/v8.S: Make .eh_frame dependent on target word size.
  4257. 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
  4258. * configure.in (alpha*-*-netbsd*): Add target.
  4259. * configure: Regenerate.
  4260. 2002-04-04 Jeff Sturm <jsturm@one-point.com>
  4261. * src/sparc/v8.S: Add unwind info.
  4262. * src/sparc/v9.S: Likewise.
  4263. 2002-03-30 Krister Walfridsson <cato@df.lth.se>
  4264. * configure.in: Enable i*86-*-netbsdelf*.
  4265. * configure: Rebuilt.
  4266. 2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
  4267. PR other/2620
  4268. * src/mips/n32.s: Delete
  4269. * src/mips/o32.s: Delete
  4270. 2002-03-21 Loren J. Rittle <ljrittle@acm.org>
  4271. * configure.in: Enable alpha*-*-freebsd*.
  4272. * configure: Rebuilt.
  4273. 2002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
  4274. * Makefile.am: libfficonvenience -> libffi_convenience.
  4275. * Makefile.in: Rebuilt.
  4276. * Makefile.am: Define ffitest_OBJECTS.
  4277. * Makefile.in: Rebuilt.
  4278. 2002-03-07 Andreas Tobler <toa@pop.agri.ch>
  4279. David Edelsohn <edelsohn@gnu.org>
  4280. * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
  4281. (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
  4282. (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
  4283. * Makefile.in: Regenerate.
  4284. * include/ffi.h.in: Add AIX and Darwin closure definitions.
  4285. * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
  4286. (flush_icache, flush_range): New functions.
  4287. (ffi_closure_helper_DARWIN): New function.
  4288. * src/powerpc/aix_closure.S: New file.
  4289. * src/powerpc/darwin_closure.S: New file.
  4290. 2002-02-24 Jeff Sturm <jsturm@one-point.com>
  4291. * include/ffi.h.in: Add typedef for ffi_arg.
  4292. * src/ffitest.c (main): Declare rint with ffi_arg.
  4293. 2002-02-21 Andreas Tobler <toa@pop.agri.ch>
  4294. * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
  4295. number of GPRs for floating-point arguments.
  4296. 2002-01-31 Anthony Green <green@redhat.com>
  4297. * configure: Rebuilt.
  4298. * configure.in: Replace CHECK_SIZEOF and endian tests with
  4299. cross-compiler friendly macros.
  4300. * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
  4301. macros.
  4302. 2002-01-18 David Edelsohn <edelsohn@gnu.org>
  4303. * src/powerpc/darwin.S (_ffi_call_AIX): New.
  4304. * src/powerpc/aix.S (ffi_call_DARWIN): New.
  4305. 2002-01-17 David Edelsohn <edelsohn@gnu.org>
  4306. * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
  4307. (TARGET_SRC_POWERPC_AIX): New.
  4308. (POWERPC_AIX): New stanza.
  4309. * Makefile.in: Regenerate.
  4310. * configure.in: Add AIX case.
  4311. * configure: Regenerate.
  4312. * include/ffi.h.in (ffi_abi): Add FFI_AIX.
  4313. * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
  4314. size. Fix "long double" support.
  4315. (ffi_call): Add FFI_AIX case.
  4316. * src/powerpc/aix.S: New.
  4317. 2001-10-09 John Hornkvist <john@toastedmarshmallow.com>
  4318. Implement Darwin PowerPC ABI.
  4319. * configure.in: Handle powerpc-*-darwin*.
  4320. * Makefile.am: Set source files for POWERPC_DARWIN.
  4321. * configure: Rebuilt.
  4322. * Makefile.in: Rebuilt.
  4323. * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
  4324. POWERPC_DARWIN.
  4325. * src/powerpc/darwin.S: New file.
  4326. * src/powerpc/ffi_darwin.c: New file.
  4327. 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
  4328. * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
  4329. 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  4330. * src/x86/sysv.S: Avoid gas-only .balign directive.
  4331. Use C style comments.
  4332. 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  4333. * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
  4334. Fixes PR bootstrap/3563.
  4335. 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  4336. * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
  4337. 2001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  4338. * configure.in: Recognize sparc*-sun-* host.
  4339. * configure: Regenerate.
  4340. 2001-06-06 Andrew Haley <aph@redhat.com>
  4341. * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
  4342. 2001-06-03 Andrew Haley <aph@redhat.com>
  4343. * src/alpha/osf.S: Add unwind info.
  4344. * src/powerpc/sysv.S: Add unwind info.
  4345. * src/powerpc/ppc_closure.S: Likewise.
  4346. 2000-05-31 Jeff Sturm <jsturm@one-point.com>
  4347. * configure.in: Fix AC_ARG_ENABLE usage.
  4348. * configure: Rebuilt.
  4349. 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
  4350. * configure.in: Remove warning about beta code.
  4351. * configure: Rebuilt.
  4352. 2001-04-25 Hans Boehm <Hans_Boehm@hp.com>
  4353. * src/ia64/unix.S: Restore stack pointer when returning from
  4354. ffi_closure_UNIX.
  4355. * src/ia64/ffi.c: Fix typo in comment.
  4356. 2001-04-18 Jim Wilson <wilson@redhat.com>
  4357. * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
  4358. to eliminate RAW DV.
  4359. 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
  4360. * Makefile.am: Make a libtool convenience library.
  4361. * Makefile.in: Rebuilt.
  4362. 2001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
  4363. * configure.in: Use different syntax for subdirectory creation.
  4364. * configure: Rebuilt.
  4365. 2001-03-27 Jon Beniston <jon@beniston.com>
  4366. * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
  4367. * configure: Rebuilt.
  4368. * Makefile.am: Added X86_WIN32 target support.
  4369. * Makefile.in: Rebuilt.
  4370. * include/ffi.h.in: Added X86_WIN32 target support.
  4371. * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
  4372. * src/types.c: Added X86_WIN32 target support.
  4373. * src/x86/win32.S: New file. Based on sysv.S, but with EH
  4374. stuff removed and made to work with CygWin's gas.
  4375. 2001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
  4376. * configure.in: Make target subdirectory in build dir.
  4377. * Makefile.am: Override suffix based rules to specify correct output
  4378. subdirectory.
  4379. * Makefile.in: Rebuilt.
  4380. * configure: Rebuilt.
  4381. 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
  4382. * src/powerpc/ppc_closure.S: New file.
  4383. * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
  4384. involving long long and register pairs.
  4385. (ffi_prep_closure): New function.
  4386. (flush_icache): Likewise.
  4387. (ffi_closure_helper_SYSV): Likewise.
  4388. * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
  4389. (FFI_TRAMPOLINE_SIZE): Likewise.
  4390. (FFI_NATIVE_RAW_API): Likewise.
  4391. * Makefile.in: Rebuilt.
  4392. * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
  4393. (TARGET_SRC_POWERPC): Likewise.
  4394. 2001-03-19 Tom Tromey <tromey@redhat.com>
  4395. * Makefile.in: Rebuilt.
  4396. * Makefile.am (ffitest_LDFLAGS): New macro.
  4397. 2001-03-02 Nick Clifton <nickc@redhat.com>
  4398. * include/ffi.h.in: Remove RCS ident string.
  4399. * include/ffi_mips.h: Remove RCS ident string.
  4400. * src/debug.c: Remove RCS ident string.
  4401. * src/ffitest.c: Remove RCS ident string.
  4402. * src/prep_cif.c: Remove RCS ident string.
  4403. * src/types.c: Remove RCS ident string.
  4404. * src/alpha/ffi.c: Remove RCS ident string.
  4405. * src/alpha/osf.S: Remove RCS ident string.
  4406. * src/arm/ffi.c: Remove RCS ident string.
  4407. * src/arm/sysv.S: Remove RCS ident string.
  4408. * src/mips/ffi.c: Remove RCS ident string.
  4409. * src/mips/n32.S: Remove RCS ident string.
  4410. * src/mips/o32.S: Remove RCS ident string.
  4411. * src/sparc/ffi.c: Remove RCS ident string.
  4412. * src/sparc/v8.S: Remove RCS ident string.
  4413. * src/sparc/v9.S: Remove RCS ident string.
  4414. * src/x86/ffi.c: Remove RCS ident string.
  4415. * src/x86/sysv.S: Remove RCS ident string.
  4416. 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
  4417. * include/ffi.h.in: Change sourceware.cygnus.com references to
  4418. gcc.gnu.org.
  4419. 2000-12-09 Richard Henderson <rth@redhat.com>
  4420. * src/alpha/ffi.c (ffi_call): Simplify struct return test.
  4421. (ffi_closure_osf_inner): Index rather than increment avalue
  4422. and arg_types. Give ffi_closure_osf the raw return value type.
  4423. * src/alpha/osf.S (ffi_closure_osf): Handle return value type
  4424. promotion.
  4425. 2000-12-07 Richard Henderson <rth@redhat.com>
  4426. * src/raw_api.c (ffi_translate_args): Fix typo.
  4427. (ffi_prep_closure): Likewise.
  4428. * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
  4429. FFI_TRAMPOLINE_SIZE.
  4430. * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
  4431. cif->bytes for new ffi_call_osf implementation.
  4432. (ffi_prep_args): Absorb into ...
  4433. (ffi_call): ... here. Do all stack allocation here and
  4434. avoid a callback function.
  4435. (ffi_prep_closure, ffi_closure_osf_inner): New.
  4436. * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
  4437. (ffi_closure_osf): New.
  4438. 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
  4439. * config.guess, config.sub, install-sh: Removed.
  4440. * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
  4441. * Makefile.in: Rebuilt.
  4442. * acinclude.m4: Include libtool macros from the top level.
  4443. * aclocal.m4, configure: Rebuilt.
  4444. 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
  4445. * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
  4446. * configure: Rebuilt.
  4447. 2000-05-11 Scott Bambrough <scottb@netwinder.org>
  4448. * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
  4449. memory correctly. Use conditional instructions, not branches where
  4450. possible.
  4451. 2000-05-04 Tom Tromey <tromey@cygnus.com>
  4452. * configure: Rebuilt.
  4453. * configure.in: Match `arm*-*-linux-*'.
  4454. From Chris Dornan <cdornan@arm.com>.
  4455. 2000-04-28 Jakub Jelinek <jakub@redhat.com>
  4456. * Makefile.am (SUBDIRS): Define.
  4457. (AM_MAKEFLAGS): Likewise.
  4458. (Multilib support.): Add section.
  4459. * Makefile.in: Rebuilt.
  4460. * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
  4461. New variables. Set for gcc using -print-multi-lib. Export them
  4462. to libtool.
  4463. (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
  4464. * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
  4465. for -shared links.
  4466. (extra_compiler_flags_value, extra_compiler_flags): Check these
  4467. for extra compiler options which need to be passed down in
  4468. compiler_flags.
  4469. 2000-04-16 Anthony Green <green@redhat.com>
  4470. * configure: Rebuilt.
  4471. * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
  4472. 2000-04-14 Jakub Jelinek <jakub@redhat.com>
  4473. * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
  4474. Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
  4475. * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
  4476. Replace all void * sizeofs with sizeof(int).
  4477. Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
  4478. different than DOUBLE.
  4479. Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
  4480. (ffi_prep_args_v9): New function.
  4481. (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
  4482. (ffi_V9_return_struct): New function.
  4483. (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
  4484. 32bit code (not yet cross-arch calls).
  4485. * src/sparc/v8.S: Add struct return delay nop.
  4486. Handle long long.
  4487. * src/sparc/v9.S: New file.
  4488. * src/prep_cif.c (ffi_prep_cif): Return structure pointer
  4489. is used on sparc64 only for structures larger than 32 bytes.
  4490. Pass by reference for structures is done for structure arguments
  4491. larger than 16 bytes.
  4492. * src/ffitest.c (main): Use 64bit rint on sparc64.
  4493. Run long long tests on sparc.
  4494. * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
  4495. sparc64.
  4496. (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
  4497. on sparc64.
  4498. * configure.in (sparc-*-linux*): New supported target.
  4499. (sparc64-*-linux*): Likewise.
  4500. * configure: Rebuilt.
  4501. * Makefile.am: Add v9.S to SPARC files.
  4502. * Makefile.in: Likewise.
  4503. (LINK): Surround $(CCLD) into double quotes, so that multilib
  4504. compiles work correctly.
  4505. 2000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
  4506. * configure: Rebuilt.
  4507. * configure.in: (i*86-*-solaris*): New libffi target. Patch
  4508. proposed by Bryce McKinlay.
  4509. 2000-03-20 Tom Tromey <tromey@cygnus.com>
  4510. * Makefile.in: Hand edit for java_raw_api.lo.
  4511. 2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
  4512. * config.guess, config.sub: Update from the gcc tree.
  4513. Fix for PR libgcj/168.
  4514. 2000-03-03 Tom Tromey <tromey@cygnus.com>
  4515. * Makefile.in: Fixed ia64 by hand.
  4516. * configure: Rebuilt.
  4517. * configure.in (--enable-multilib): New option.
  4518. (libffi_basedir): New subst.
  4519. (AC_OUTPUT): Added multilib code.
  4520. 2000-03-02 Tom Tromey <tromey@cygnus.com>
  4521. * Makefile.in: Rebuilt.
  4522. * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
  4523. directory name.
  4524. 2000-02-25 Hans Boehm <boehm@acm.org>
  4525. * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
  4526. files.
  4527. * src/raw_api.c (ffi_translate_args): Fixed typo in argument
  4528. list.
  4529. (ffi_prep_raw_closure): Use ffi_translate_args, not
  4530. ffi_closure_translate.
  4531. * src/java_raw_api.c: New file.
  4532. * src/ffitest.c (closure_test_fn): New function.
  4533. (main): Define `rint' as long long on IA64. Added new test when
  4534. FFI_CLOSURES is defined.
  4535. * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
  4536. (ffi_abi): Recognize IA64.
  4537. (ffi_raw): Added `flt' field.
  4538. Added "Java raw API" code.
  4539. * configure.in: Recognize ia64.
  4540. * Makefile.am (TARGET_SRC_IA64): New macro.
  4541. (libffi_la_common_SOURCES): Added java_raw_api.c.
  4542. (libffi_la_SOURCES): Define in IA64 case.
  4543. 2000-01-04 Tom Tromey <tromey@cygnus.com>
  4544. * Makefile.in: Rebuilt with newer automake.
  4545. 1999-12-31 Tom Tromey <tromey@cygnus.com>
  4546. * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
  4547. 1999-09-01 Tom Tromey <tromey@cygnus.com>
  4548. * include/ffi.h.in: Removed PACKAGE and VERSION defines and
  4549. undefs.
  4550. * fficonfig.h.in: Rebuilt.
  4551. * configure: Rebuilt.
  4552. * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
  4553. Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
  4554. * acconfig.h: Don't #undef PACKAGE or VERSION.
  4555. 1999-08-09 Anthony Green <green@cygnus.com>
  4556. * include/ffi.h.in: Try to work around messy header problem
  4557. with PACKAGE and VERSION.
  4558. * configure: Rebuilt.
  4559. * configure.in: Change version to 2.00-beta.
  4560. * fficonfig.h.in: Rebuilt.
  4561. * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
  4562. * src/x86/ffi.c (ffi_raw_call): Rename.
  4563. 1999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
  4564. * src/x86/ffi.c (ffi_closure_SYSV): New function.
  4565. (ffi_prep_incoming_args_SYSV): Ditto.
  4566. (ffi_prep_closure): Ditto.
  4567. (ffi_closure_raw_SYSV): Ditto.
  4568. (ffi_prep_raw_closure): More ditto.
  4569. (ffi_call_raw): Final ditto.
  4570. * include/ffi.h.in: Add definitions for closure and raw API.
  4571. * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
  4572. FFI_TYPE_UINT64.
  4573. * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
  4574. * src/raw_api.c: New file.
  4575. * include/ffi.h.in (ffi_raw): New type.
  4576. (UINT_ARG, SINT_ARG): New defines.
  4577. (ffi_closure, ffi_raw_closure): New types.
  4578. (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
  4579. * configure.in: Add check for endianness and sizeof void*.
  4580. * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
  4581. instead of directly.
  4582. * configure: Rebuilt.
  4583. Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
  4584. * configure.in: Add x86 and powerpc BeOS configurations.
  4585. From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
  4586. 1999-05-09 Anthony Green <green@cygnus.com>
  4587. * configure.in: Add warning about this being beta code.
  4588. Remove src/Makefile.am from the picture.
  4589. * configure: Rebuilt.
  4590. * Makefile.am: Move logic from src/Makefile.am. Add changes
  4591. to support libffi as a target library.
  4592. * Makefile.in: Rebuilt.
  4593. * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
  4594. Upgraded to new autoconf, automake, libtool.
  4595. * README: Tweaks.
  4596. * LICENSE: Update copyright date.
  4597. * src/Makefile.am, src/Makefile.in: Removed.
  4598. 1998-11-29 Anthony Green <green@cygnus.com>
  4599. * include/ChangeLog: Removed.
  4600. * src/ChangeLog: Removed.
  4601. * src/mips/ChangeLog: Removed.
  4602. * src/sparc/ChangeLog: Remboved.
  4603. * src/x86/ChangeLog: Removed.
  4604. * ChangeLog.v1: Created.
  4605. =============================================================================
  4606. From the old ChangeLog.libffi file....
  4607. 2011-02-08 Andreas Tobler <andreast@fgznet.ch>
  4608. * testsuite/lib/libffi.exp: Tweak for stand-alone mode.
  4609. 2009-12-25 Samuli Suominen <ssuominen@gentoo.org>
  4610. * configure.ac: Undefine _AC_ARG_VAR_PRECIOUS for autoconf 2.64.
  4611. * configure: Rebuilt.
  4612. * fficonfig.h.in: Rebuilt.
  4613. 2009-06-16 Andrew Haley <aph@redhat.com>
  4614. * testsuite/libffi.call/cls_align_sint64.c,
  4615. testsuite/libffi.call/cls_align_uint64.c,
  4616. testsuite/libffi.call/cls_longdouble_va.c,
  4617. testsuite/libffi.call/cls_ulonglong.c,
  4618. testsuite/libffi.call/return_ll1.c,
  4619. testsuite/libffi.call/stret_medium2.c: Fix printf format
  4620. specifiers.
  4621. * testsuite/libffi.call/huge_struct.c: Ad x86 XFAILs.
  4622. * testsuite/libffi.call/float2.c: Fix dg-excess-errors.
  4623. * testsuite/libffi.call/ffitest.h,
  4624. testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
  4625. 2009-06-12 Andrew Haley <aph@redhat.com>
  4626. * testsuite/libffi.call/cls_align_sint64.c,
  4627. testsuite/libffi.call/cls_align_uint64.c,
  4628. testsuite/libffi.call/cls_ulonglong.c,
  4629. testsuite/libffi.call/return_ll1.c,
  4630. testsuite/libffi.call/stret_medium2.c: Fix printf format
  4631. specifiers.
  4632. testsuite/libffi.special/unwindtest.cc: include stdint.h.
  4633. 2009-06-11 Timothy Wall <twall@users.sf.net>
  4634. * Makefile.am,
  4635. configure.ac,
  4636. include/ffi.h.in,
  4637. include/ffi_common.h,
  4638. src/closures.c,
  4639. src/dlmalloc.c,
  4640. src/x86/ffi.c,
  4641. src/x86/ffitarget.h,
  4642. src/x86/win64.S (new),
  4643. README: Added win64 support (mingw or MSVC)
  4644. * Makefile.in,
  4645. include/Makefile.in,
  4646. man/Makefile.in,
  4647. testsuite/Makefile.in,
  4648. configure,
  4649. aclocal.m4: Regenerated
  4650. * ltcf-c.sh: properly escape cygwin/w32 path
  4651. * man/ffi_call.3: Clarify size requirements for return value.
  4652. * src/x86/ffi64.c: Fix filename in comment.
  4653. * src/x86/win32.S: Remove unused extern.
  4654. * testsuite/libffi.call/closure_fn0.c,
  4655. testsuite/libffi.call/closure_fn1.c,
  4656. testsuite/libffi.call/closure_fn2.c,
  4657. testsuite/libffi.call/closure_fn3.c,
  4658. testsuite/libffi.call/closure_fn4.c,
  4659. testsuite/libffi.call/closure_fn5.c,
  4660. testsuite/libffi.call/closure_fn6.c,
  4661. testsuite/libffi.call/closure_stdcall.c,
  4662. testsuite/libffi.call/cls_12byte.c,
  4663. testsuite/libffi.call/cls_16byte.c,
  4664. testsuite/libffi.call/cls_18byte.c,
  4665. testsuite/libffi.call/cls_19byte.c,
  4666. testsuite/libffi.call/cls_1_1byte.c,
  4667. testsuite/libffi.call/cls_20byte.c,
  4668. testsuite/libffi.call/cls_20byte1.c,
  4669. testsuite/libffi.call/cls_24byte.c,
  4670. testsuite/libffi.call/cls_2byte.c,
  4671. testsuite/libffi.call/cls_3_1byte.c,
  4672. testsuite/libffi.call/cls_3byte1.c,
  4673. testsuite/libffi.call/cls_3byte2.c,
  4674. testsuite/libffi.call/cls_4_1byte.c,
  4675. testsuite/libffi.call/cls_4byte.c,
  4676. testsuite/libffi.call/cls_5_1_byte.c,
  4677. testsuite/libffi.call/cls_5byte.c,
  4678. testsuite/libffi.call/cls_64byte.c,
  4679. testsuite/libffi.call/cls_6_1_byte.c,
  4680. testsuite/libffi.call/cls_6byte.c,
  4681. testsuite/libffi.call/cls_7_1_byte.c,
  4682. testsuite/libffi.call/cls_7byte.c,
  4683. testsuite/libffi.call/cls_8byte.c,
  4684. testsuite/libffi.call/cls_9byte1.c,
  4685. testsuite/libffi.call/cls_9byte2.c,
  4686. testsuite/libffi.call/cls_align_double.c,
  4687. testsuite/libffi.call/cls_align_float.c,
  4688. testsuite/libffi.call/cls_align_longdouble.c,
  4689. testsuite/libffi.call/cls_align_longdouble_split.c,
  4690. testsuite/libffi.call/cls_align_longdouble_split2.c,
  4691. testsuite/libffi.call/cls_align_pointer.c,
  4692. testsuite/libffi.call/cls_align_sint16.c,
  4693. testsuite/libffi.call/cls_align_sint32.c,
  4694. testsuite/libffi.call/cls_align_sint64.c,
  4695. testsuite/libffi.call/cls_align_uint16.c,
  4696. testsuite/libffi.call/cls_align_uint32.c,
  4697. testsuite/libffi.call/cls_align_uint64.c,
  4698. testsuite/libffi.call/cls_dbls_struct.c,
  4699. testsuite/libffi.call/cls_double.c,
  4700. testsuite/libffi.call/cls_double_va.c,
  4701. testsuite/libffi.call/cls_float.c,
  4702. testsuite/libffi.call/cls_longdouble.c,
  4703. testsuite/libffi.call/cls_longdouble_va.c,
  4704. testsuite/libffi.call/cls_multi_schar.c,
  4705. testsuite/libffi.call/cls_multi_sshort.c,
  4706. testsuite/libffi.call/cls_multi_sshortchar.c,
  4707. testsuite/libffi.call/cls_multi_uchar.c,
  4708. testsuite/libffi.call/cls_multi_ushort.c,
  4709. testsuite/libffi.call/cls_multi_ushortchar.c,
  4710. testsuite/libffi.call/cls_pointer.c,
  4711. testsuite/libffi.call/cls_pointer_stack.c,
  4712. testsuite/libffi.call/cls_schar.c,
  4713. testsuite/libffi.call/cls_sint.c,
  4714. testsuite/libffi.call/cls_sshort.c,
  4715. testsuite/libffi.call/cls_uchar.c,
  4716. testsuite/libffi.call/cls_uint.c,
  4717. testsuite/libffi.call/cls_ulonglong.c,
  4718. testsuite/libffi.call/cls_ushort.c,
  4719. testsuite/libffi.call/err_bad_abi.c,
  4720. testsuite/libffi.call/err_bad_typedef.c,
  4721. testsuite/libffi.call/float2.c,
  4722. testsuite/libffi.call/huge_struct.c,
  4723. testsuite/libffi.call/nested_struct.c,
  4724. testsuite/libffi.call/nested_struct1.c,
  4725. testsuite/libffi.call/nested_struct10.c,
  4726. testsuite/libffi.call/nested_struct2.c,
  4727. testsuite/libffi.call/nested_struct3.c,
  4728. testsuite/libffi.call/nested_struct4.c,
  4729. testsuite/libffi.call/nested_struct5.c,
  4730. testsuite/libffi.call/nested_struct6.c,
  4731. testsuite/libffi.call/nested_struct7.c,
  4732. testsuite/libffi.call/nested_struct8.c,
  4733. testsuite/libffi.call/nested_struct9.c,
  4734. testsuite/libffi.call/problem1.c,
  4735. testsuite/libffi.call/return_ldl.c,
  4736. testsuite/libffi.call/return_ll1.c,
  4737. testsuite/libffi.call/stret_large.c,
  4738. testsuite/libffi.call/stret_large2.c,
  4739. testsuite/libffi.call/stret_medium.c,
  4740. testsuite/libffi.call/stret_medium2.c,
  4741. testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
  4742. of checking for MMAP. Use intptr_t instead of long casts.
  4743. 2009-06-04 Andrew Haley <aph@redhat.com>
  4744. * src/powerpc/ffitarget.h: Fix misapplied merge from gcc.
  4745. 2009-06-04 Andrew Haley <aph@redhat.com>
  4746. * src/mips/o32.S,
  4747. src/mips/n32.S: Fix licence formatting.
  4748. 2009-06-04 Andrew Haley <aph@redhat.com>
  4749. * src/x86/darwin.S: Fix licence formatting.
  4750. src/x86/win32.S: Likewise.
  4751. src/sh64/sysv.S: Likewise.
  4752. src/sh/sysv.S: Likewise.
  4753. 2009-06-04 Andrew Haley <aph@redhat.com>
  4754. * src/sh64/ffi.c: Remove lint directives. Was missing from merge
  4755. of Andreas Tobler's patch from 2006-04-22.
  4756. 2009-06-04 Andrew Haley <aph@redhat.com>
  4757. * src/sh/ffi.c: Apply missing hunk from Alexandre Oliva's patch of
  4758. 2007-03-07.
  4759. 2008-12-26 Timothy Wall <twall@users.sf.net>
  4760. * testsuite/libffi.call/cls_longdouble.c,
  4761. testsuite/libffi.call/cls_longdouble_va.c,
  4762. testsuite/libffi.call/cls_align_longdouble.c,
  4763. testsuite/libffi.call/cls_align_longdouble_split.c,
  4764. testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
  4765. failures on x86_64 cygwin/mingw.
  4766. 2008-12-22 Timothy Wall <twall@users.sf.net>
  4767. * testsuite/libffi.call/closure_fn0.c,
  4768. testsuite/libffi.call/closure_fn1.c,
  4769. testsuite/libffi.call/closure_fn2.c,
  4770. testsuite/libffi.call/closure_fn3.c,
  4771. testsuite/libffi.call/closure_fn4.c,
  4772. testsuite/libffi.call/closure_fn5.c,
  4773. testsuite/libffi.call/closure_fn6.c,
  4774. testsuite/libffi.call/closure_loc_fn0.c,
  4775. testsuite/libffi.call/closure_stdcall.c,
  4776. testsuite/libffi.call/cls_align_pointer.c,
  4777. testsuite/libffi.call/cls_pointer.c,
  4778. testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
  4779. pointer to integer (intptr_t).
  4780. * testsuite/libffi.call/cls_longdouble.c: disable for win64.
  4781. 2008-12-19 Anthony Green <green@redhat.com>
  4782. * configure.ac: Bump version to 3.0.8.
  4783. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4784. * libtool-version: Increment revision.
  4785. * README: Update for new release.
  4786. 2008-11-11 Anthony Green <green@redhat.com>
  4787. * configure.ac: Bump version to 3.0.7.
  4788. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4789. * libtool-version: Increment revision.
  4790. * README: Update for new release.
  4791. 2008-08-25 Andreas Tobler <a.tobler@schweiz.org>
  4792. * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
  4793. FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
  4794. Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
  4795. Adjust copyright notice.
  4796. * src/powerpc/ffi.c: Add two new flags to indicate if we have one
  4797. register or two register to use for FFI_SYSV structs.
  4798. (ffi_prep_cif_machdep): Pass the right register flag introduced above.
  4799. (ffi_closure_helper_SYSV): Fix the return type for
  4800. FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
  4801. Adjust copyright notice.
  4802. 2008-07-24 Anthony Green <green@redhat.com>
  4803. * testsuite/libffi.call/cls_dbls_struct.c,
  4804. testsuite/libffi.call/cls_double_va.c,
  4805. testsuite/libffi.call/cls_longdouble.c,
  4806. testsuite/libffi.call/cls_longdouble_va.c,
  4807. testsuite/libffi.call/cls_pointer.c,
  4808. testsuite/libffi.call/cls_pointer_stack.c,
  4809. testsuite/libffi.call/err_bad_abi.c: Clean up failures from
  4810. compiler warnings.
  4811. 2008-07-17 Anthony Green <green@redhat.com>
  4812. * configure.ac: Bump version to 3.0.6.
  4813. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4814. * libtool-version: Increment revision. Add documentation.
  4815. * README: Update for new release.
  4816. 2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
  4817. * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
  4818. int.
  4819. 2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
  4820. * src/sh/sysv.S: Add .note.GNU-stack on Linux.
  4821. * src/sh64/sysv.S: Likewise.
  4822. 2008-04-03 Anthony Green <green@redhat.com>
  4823. * libffi.pc.in (Libs): Add -L${libdir}.
  4824. * configure.ac: Bump version to 3.0.5.
  4825. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4826. * libtool-version: Increment revision.
  4827. * README: Update for new release.
  4828. 2008-04-03 Anthony Green <green@redhat.com>
  4829. Xerces Ranby <xerxes@zafena.se>
  4830. * include/ffi.h.in: Wrap definition of target architecture to
  4831. protect from double definitions.
  4832. 2008-03-22 Moriyoshi Koizumi <moriyoshi@gmail.com>
  4833. * src/x86/ffi.c (ffi_prep_closure_loc): Fix for bug revealed in
  4834. closure_loc_fn0.c.
  4835. * testsuite/libffi.call/closure_loc_fn0.c (closure_loc_test_fn0):
  4836. New test.
  4837. 2008-03-04 Anthony Green <green@redhat.com>
  4838. Blake Chaffin
  4839. hos@tamanegi.org
  4840. * testsuite/libffi.call/cls_align_longdouble_split2.c
  4841. testsuite/libffi.call/cls_align_longdouble_split.c
  4842. testsuite/libffi.call/cls_dbls_struct.c
  4843. testsuite/libffi.call/cls_double_va.c
  4844. testsuite/libffi.call/cls_longdouble.c
  4845. testsuite/libffi.call/cls_longdouble_va.c
  4846. testsuite/libffi.call/cls_pointer.c
  4847. testsuite/libffi.call/cls_pointer_stack.c
  4848. testsuite/libffi.call/err_bad_abi.c
  4849. testsuite/libffi.call/err_bad_typedef.c
  4850. testsuite/libffi.call/huge_struct.c
  4851. testsuite/libffi.call/stret_large2.c
  4852. testsuite/libffi.call/stret_large.c
  4853. testsuite/libffi.call/stret_medium2.c
  4854. testsuite/libffi.call/stret_medium.c: New tests from Apple.
  4855. 2008-02-26 Jakub Jelinek <jakub@redhat.com>
  4856. Anthony Green <green@redhat.com>
  4857. * src/alpha/osf.S: Add .note.GNU-stack on Linux.
  4858. * src/s390/sysv.S: Likewise.
  4859. * src/powerpc/linux64.S: Likewise.
  4860. * src/powerpc/linux64_closure.S: Likewise.
  4861. * src/powerpc/ppc_closure.S: Likewise.
  4862. * src/powerpc/sysv.S: Likewise.
  4863. * src/x86/unix64.S: Likewise.
  4864. * src/x86/sysv.S: Likewise.
  4865. * src/sparc/v8.S: Likewise.
  4866. * src/sparc/v9.S: Likewise.
  4867. * src/m68k/sysv.S: Likewise.
  4868. * src/ia64/unix.S: Likewise.
  4869. * src/arm/sysv.S: Likewise.
  4870. 2008-02-26 Anthony Green <green@redhat.com>
  4871. Thomas Heller <theller@ctypes.org>
  4872. * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
  4873. comment.
  4874. 2008-02-26 Anthony Green <green@redhat.org>
  4875. Thomas Heller <theller@ctypes.org>
  4876. * include/ffi.h.in: Change void (*)() to void (*)(void).
  4877. 2008-02-26 Anthony Green <green@redhat.org>
  4878. Thomas Heller <theller@ctypes.org>
  4879. * src/alpha/ffi.c: Change void (*)() to void (*)(void).
  4880. src/alpha/osf.S, src/arm/ffi.c, src/frv/ffi.c, src/ia64/ffi.c,
  4881. src/ia64/unix.S, src/java_raw_api.c, src/m32r/ffi.c,
  4882. src/mips/ffi.c, src/pa/ffi.c, src/pa/hpux32.S, src/pa/linux.S,
  4883. src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/raw_api.c,
  4884. src/s390/ffi.c, src/sh/ffi.c, src/sh64/ffi.c, src/sparc/ffi.c,
  4885. src/x86/ffi.c, src/x86/unix64.S, src/x86/darwin64.S,
  4886. src/x86/ffi64.c: Ditto.
  4887. 2008-02-24 Anthony Green <green@redhat.org>
  4888. * configure.ac: Accept openbsd*, not just openbsd.
  4889. Bump version to 3.0.4.
  4890. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4891. * libtool-version: Increment revision.
  4892. * README: Update for new release.
  4893. 2008-02-22 Anthony Green <green@redhat.com>
  4894. * README: Clean up list of tested platforms.
  4895. 2008-02-22 Anthony Green <green@redhat.com>
  4896. * configure.ac: Bump version to 3.0.3.
  4897. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4898. * libtool-version: Increment revision.
  4899. * README: Update for new release. Clean up test docs.
  4900. 2008-02-22 Bjoern Koenig <bkoenig@alpha-tierchen.de>
  4901. Andreas Tobler <a.tobler@schweiz.org>
  4902. * configure.ac: Add amd64-*-freebsd* target.
  4903. * configure: Regenerate.
  4904. 2008-02-22 Thomas Heller <theller@ctypes.org>
  4905. * configure.ac: Add x86 OpenBSD support.
  4906. * configure: Rebuilt.
  4907. 2008-02-21 Thomas Heller <theller@ctypes.org>
  4908. * README: Change "make test" to "make check".
  4909. 2008-02-21 Anthony Green <green@redhat.com>
  4910. * configure.ac: Bump version to 3.0.2.
  4911. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4912. * libtool-version: Increment revision.
  4913. * README: Update for new release.
  4914. 2008-02-21 Björn König <bkoenig@alpha-tierchen.de>
  4915. * src/x86/freebsd.S: New file.
  4916. * configure.ac: Add x86 FreeBSD support.
  4917. * Makefile.am: Ditto.
  4918. 2008-02-15 Anthony Green <green@redhat.com>
  4919. * configure.ac: Bump version to 3.0.1.
  4920. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4921. * libtool-version: Increment revision.
  4922. * README: Update for new release.
  4923. 2008-02-15 David Daney <ddaney@avtrex.com>
  4924. * src/mips/ffi.c: Remove extra '>' from include directive.
  4925. (ffi_prep_closure_loc): Use clear_location instead of tramp.
  4926. 2008-02-15 Anthony Green <green@redhat.com>
  4927. * configure.ac: Bump version to 3.0.0.
  4928. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4929. 2008-02-15 David Daney <ddaney@avtrex.com>
  4930. * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
  4931. Define (conditionally), and use it to include cachectl.h.
  4932. (ffi_prep_closure_loc): Fix cache flushing.
  4933. * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
  4934. 2008-02-15 Anthony Green <green@redhat.com>
  4935. * man/ffi_call.3, man/ffi_prep_cif.3, man/ffi.3:
  4936. Update dates and remove all references to ffi_prep_closure.
  4937. * configure.ac: Bump version to 2.99.9.
  4938. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4939. 2008-02-15 Anthony Green <green@redhat.com>
  4940. * man/ffi_prep_closure.3: Delete.
  4941. * man/Makefile.am (EXTRA_DIST): Remove ffi_prep_closure.3.
  4942. (man_MANS): Ditto.
  4943. * man/Makefile.in: Rebuilt.
  4944. * configure.ac: Bump version to 2.99.8.
  4945. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4946. 2008-02-14 Anthony Green <green@redhat.com>
  4947. * configure.ac: Bump version to 2.99.7.
  4948. * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
  4949. * include/ffi.h.in LICENSE src/debug.c src/closures.c
  4950. src/ffitest.c src/s390/sysv.S src/s390/ffitarget.h
  4951. src/types.c src/m68k/ffitarget.h src/raw_api.c src/frv/ffi.c
  4952. src/frv/ffitarget.h src/sh/ffi.c src/sh/sysv.S
  4953. src/sh/ffitarget.h src/powerpc/ffitarget.h src/pa/ffi.c
  4954. src/pa/ffitarget.h src/pa/linux.S src/java_raw_api.c
  4955. src/cris/ffitarget.h src/x86/ffi.c src/x86/sysv.S
  4956. src/x86/unix64.S src/x86/win32.S src/x86/ffitarget.h
  4957. src/x86/ffi64.c src/x86/darwin.S src/ia64/ffi.c
  4958. src/ia64/ffitarget.h src/ia64/ia64_flags.h src/ia64/unix.S
  4959. src/sparc/ffi.c src/sparc/v9.S src/sparc/ffitarget.h
  4960. src/sparc/v8.S src/alpha/ffi.c src/alpha/ffitarget.h
  4961. src/alpha/osf.S src/sh64/ffi.c src/sh64/sysv.S
  4962. src/sh64/ffitarget.h src/mips/ffi.c src/mips/ffitarget.h
  4963. src/mips/n32.S src/mips/o32.S src/arm/ffi.c src/arm/sysv.S
  4964. src/arm/ffitarget.h src/prep_cif.c: Update license text.
  4965. 2008-02-14 Anthony Green <green@redhat.com>
  4966. * README: Update tested platforms.
  4967. * configure.ac: Bump version to 2.99.6.
  4968. * configure: Rebuilt.
  4969. 2008-02-14 Anthony Green <green@redhat.com>
  4970. * configure.ac: Bump version to 2.99.5.
  4971. * configure: Rebuilt.
  4972. * Makefile.am (EXTRA_DIST): Add darwin64.S
  4973. * Makefile.in: Rebuilt.
  4974. * testsuite/lib/libffi-dg.exp: Remove libstdc++ bits from GCC tree.
  4975. * LICENSE: Update WARRANTY.
  4976. 2008-02-14 Anthony Green <green@redhat.com>
  4977. * libffi.pc.in (libdir): Fix libdir definition.
  4978. * configure.ac: Bump version to 2.99.4.
  4979. * configure: Rebuilt.
  4980. 2008-02-14 Anthony Green <green@redhat.com>
  4981. * README: Update.
  4982. * libffi.info: New file.
  4983. * doc/stamp-vti: New file.
  4984. * configure.ac: Bump version to 2.99.3.
  4985. * configure: Rebuilt.
  4986. 2008-02-14 Anthony Green <green@redhat.com>
  4987. * Makefile.am (SUBDIRS): Add man dir.
  4988. * Makefile.in: Rebuilt.
  4989. * configure.ac: Create Makefile.
  4990. * configure: Rebuilt.
  4991. * man/ffi_call.3 man/ffi_prep_cif.3 man/ffi_prep_closure.3
  4992. man/Makefile.am man/Makefile.in: New files.
  4993. 2008-02-14 Tom Tromey <tromey@redhat.com>
  4994. * aclocal.m4, Makefile.in, configure, fficonfig.h.in: Rebuilt.
  4995. * mdate-sh, texinfo.tex: New files.
  4996. * Makefile.am (info_TEXINFOS): New variable.
  4997. * doc/libffi.texi: New file.
  4998. * doc/version.texi: Likewise.
  4999. 2008-02-14 Anthony Green <green@redhat.com>
  5000. * Makefile.am (AM_CFLAGS): Don't compile with -D$(TARGET).
  5001. (lib_LTLIBRARIES): Define.
  5002. (toolexeclib_LIBRARIES): Undefine.
  5003. * Makefile.in: Rebuilt.
  5004. * configure.ac: Reset version to 2.99.1.
  5005. * configure.in: Rebuilt.
  5006. 2008-02-14 Anthony Green <green@redhat.com>
  5007. * libffi.pc.in: Use @PACKAGE_NAME@ and @PACKAGE_VERSION@.
  5008. * configure.ac: Reset version to 2.99.1.
  5009. * configure.in: Rebuilt.
  5010. * Makefile.am (EXTRA_DIST): Add ChangeLog.libffi.
  5011. * Makefile.in: Rebuilt.
  5012. * LICENSE: Update copyright notice.
  5013. 2008-02-14 Anthony Green <green@redhat.com>
  5014. * include/Makefile.am (nodist_includes_HEADERS): Define. Don't
  5015. distribute ffitarget.h or ffi.h from the build include dir.
  5016. * Makefile.in: Rebuilt.
  5017. 2008-02-14 Anthony Green <green@redhat.com>
  5018. * include/Makefile.am (includesdir): Install headers under libdir.
  5019. (pkgconfigdir): Define. Install libffi.pc.
  5020. * include/Makefile.in: Rebuilt.
  5021. * libffi.pc.in: Create.
  5022. * libtool-version: Increment CURRENT
  5023. * configure.ac: Add libffi.pc.in
  5024. * configure: Rebuilt.
  5025. 2008-02-03 Anthony Green <green@redhat.com>
  5026. * include/Makefile.am (includesdir): Fix header install with
  5027. DESTDIR.
  5028. * include/Makefile.in: Rebuilt.
  5029. 2008-02-03 Timothy Wall <twall@users.sf.net>
  5030. * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
  5031. offset based on code pointer, not data pointer.
  5032. 2008-02-01 Anthony Green <green@redhat.com>
  5033. * include/Makefile.am: Fix header installs.
  5034. * Makefile.am: Ditto.
  5035. * include/Makefile.in: Rebuilt.
  5036. * Makefile.in: Ditto.
  5037. 2008-02-01 Anthony Green <green@redhat.com>
  5038. * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL,
  5039. FFI_INIT_TRAMPOLINE): Revert my broken changes to twall's last
  5040. patch.
  5041. 2008-01-31 Anthony Green <green@redhat.com>
  5042. * Makefile.am (EXTRA_DIST): Add missing files.
  5043. * testsuite/Makefile.am: Ditto.
  5044. * Makefile.in, testsuite/Makefile.in: Rebuilt.
  5045. 2008-01-31 Timothy Wall <twall@users.sf.net>
  5046. * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
  5047. closures.
  5048. * src/x86/ffitarget.h: Increase size of trampoline for stdcall
  5049. closures.
  5050. * src/x86/win32.S: Add assembly for stdcall closure.
  5051. * src/x86/ffi.c: Initialize stdcall closure trampoline.
  5052. 2008-01-30 H.J. Lu <hongjiu.lu@intel.com>
  5053. PR libffi/34612
  5054. * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
  5055. returning struct.
  5056. * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
  5057. tests.
  5058. 2008-01-30 Anthony Green <green@redhat.com>
  5059. * Makefile.am, include/Makefile.am: Move headers to
  5060. libffi_la_SOURCES for new automake.
  5061. * Makefile.in, include/Makefile.in: Rebuilt.
  5062. * testsuite/lib/wrapper.exp: Copied from gcc tree to allow for
  5063. execution outside of gcc tree.
  5064. * testsuite/lib/target-libpath.exp: Ditto.
  5065. * testsuite/lib/libffi-dg.exp: Many changes to allow for execution
  5066. outside of gcc tree.
  5067. =============================================================================
  5068. From the old ChangeLog.libgcj file....
  5069. 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
  5070. * configure.in: Add in AC_PREREQ(2.13)
  5071. 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
  5072. * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
  5073. config.status.
  5074. * configure: Rebuilt.
  5075. 2002-01-27 Alexandre Oliva <aoliva@redhat.com>
  5076. * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
  5077. Remove USE_LIBDIR conditional.
  5078. * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
  5079. * Makefile.in, configure: Rebuilt.
  5080. Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  5081. * include/Makefile.in: Rebuilt.
  5082. * Makefile.in: Rebuilt
  5083. * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
  5084. builds.
  5085. Use USE_LIBDIR.
  5086. * configure: Rebuilt.
  5087. * configure.in (USE_LIBDIR): Define for native builds.
  5088. Use lowercase in configure --help explanations.
  5089. 1999-08-08 Anthony Green <green@cygnus.com>
  5090. * include/ffi.h.in (FFI_FN): Remove `...'.
  5091. 1999-08-08 Anthony Green <green@cygnus.com>
  5092. * Makefile.in: Rebuilt.
  5093. * Makefile.am (AM_CFLAGS): Compile with -fexceptions.
  5094. * src/x86/sysv.S: Add exception handling metadata.
  5095. =============================================================================
  5096. The libffi version 1 ChangeLog archive.
  5097. Version 1 of libffi had per-directory ChangeLogs. Current and future
  5098. versions have a single ChangeLog file in the root directory. The
  5099. version 1 ChangeLogs have all been concatenated into this file for
  5100. future reference only.
  5101. --- libffi ----------------------------------------------------------------
  5102. Mon Oct 5 02:17:50 1998 Anthony Green <green@cygnus.com>
  5103. * configure.in: Boosted rev.
  5104. * configure, Makefile.in, aclocal.m4: Rebuilt.
  5105. * README: Boosted rev and updated release notes.
  5106. Mon Oct 5 01:03:03 1998 Anthony Green <green@cygnus.com>
  5107. * configure.in: Boosted rev.
  5108. * configure, Makefile.in, aclocal.m4: Rebuilt.
  5109. * README: Boosted rev and updated release notes.
  5110. 1998-07-25 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  5111. * m68k/ffi.c (ffi_prep_cif_machdep): Use bitmask for cif->flags.
  5112. Correctly handle small structures.
  5113. (ffi_prep_args): Also handle small structures.
  5114. (ffi_call): Pass size of return type to ffi_call_SYSV.
  5115. * m68k/sysv.S: Adjust for above changes. Correctly align small
  5116. structures in the return value.
  5117. * types.c (uint64, sint64) [M68K]: Change alignment to 4.
  5118. Fri Apr 17 17:26:58 1998 Anthony Green <green@hoser.cygnus.com>
  5119. * configure.in: Boosted rev.
  5120. * configure,Makefile.in,aclocal.m4: Rebuilt.
  5121. * README: Boosted rev and added release notes.
  5122. Sun Feb 22 00:50:41 1998 Geoff Keating <geoffk@ozemail.com.au>
  5123. * configure.in: Add PowerPC config bits.
  5124. 1998-02-14 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  5125. * configure.in: Add m68k config bits. Change AC_CANONICAL_SYSTEM
  5126. to AC_CANONICAL_HOST, this is not a compiler. Use $host instead
  5127. of $target. Remove AC_CHECK_SIZEOF(char), we already know the
  5128. result. Fix argument of AC_ARG_ENABLE.
  5129. * configure, fficonfig.h.in: Rebuilt.
  5130. Tue Feb 10 20:53:40 1998 Richard Henderson <rth@cygnus.com>
  5131. * configure.in: Add Alpha config bits.
  5132. Tue May 13 13:39:20 1997 Anthony Green <green@hoser.cygnus.com>
  5133. * README: Updated dates and reworded Irix comments.
  5134. * configure.in: Removed AC_PROG_RANLIB.
  5135. * Makefile.in, aclocal.m4, config.guess, config.sub, configure,
  5136. ltmain.sh, */Makefile.in: libtoolized again and rebuilt with
  5137. automake and autoconf.
  5138. Sat May 10 18:44:50 1997 Tom Tromey <tromey@cygnus.com>
  5139. * configure, aclocal.m4: Rebuilt.
  5140. * configure.in: Don't compute EXTRADIST; now handled in
  5141. src/Makefile.in. Removed macros implied by AM_INIT_AUTOMAKE.
  5142. Don't run AM_MAINTAINER_MODE.
  5143. Thu May 8 14:34:05 1997 Anthony Green <green@hoser.cygnus.com>
  5144. * missing, ltmain.sh, ltconfig.sh: Created. These are new files
  5145. required by automake and libtool.
  5146. * README: Boosted rev to 1.14. Added notes.
  5147. * acconfig.h: Moved PACKAGE and VERSION for new automake.
  5148. * configure.in: Changes for libtool.
  5149. * Makefile.am (check): make test now make check. Uses libtool now.
  5150. * Makefile.in, configure.in, aclocal.h, fficonfig.h.in: Rebuilt.
  5151. Thu May 1 16:27:07 1997 Anthony Green <green@hoser.cygnus.com>
  5152. * missing: Added file required by new automake.
  5153. Tue Nov 26 14:10:42 1996 Anthony Green <green@csk3.cygnus.com>
  5154. * acconfig.h: Added USING_PURIFY flag. This is defined when
  5155. --enable-purify-safety was used at configure time.
  5156. * configure.in (allsources): Added --enable-purify-safety switch.
  5157. (VERSION): Boosted rev to 1.13.
  5158. * configure: Rebuilt.
  5159. Fri Nov 22 06:46:12 1996 Anthony Green <green@rtl.cygnus.com>
  5160. * configure.in (VERSION): Boosted rev to 1.12.
  5161. Removed special CFLAGS hack for gcc.
  5162. * configure: Rebuilt.
  5163. * README: Boosted rev to 1.12. Added notes.
  5164. * Many files: Cygnus Support changed to Cygnus Solutions.
  5165. Wed Oct 30 11:15:25 1996 Anthony Green <green@rtl.cygnus.com>
  5166. * configure.in (VERSION): Boosted rev to 1.11.
  5167. * configure: Rebuilt.
  5168. * README: Boosted rev to 1.11. Added notes about GNU make.
  5169. Tue Oct 29 12:25:12 1996 Anthony Green <green@rtl.cygnus.com>
  5170. * configure.in: Fixed -Wall trick.
  5171. (VERSION): Boosted rev.
  5172. * configure: Rebuilt
  5173. * acconfig.h: Needed for --enable-debug configure switch.
  5174. * README: Boosted rev to 1.09. Added more notes on building
  5175. libffi, and LCLint.
  5176. * configure.in: Added --enable-debug switch. Boosted rev to
  5177. 1.09.
  5178. * configure: Rebuilt
  5179. Tue Oct 15 13:11:28 1996 Anthony Green <green@hoser.cygnus.com>
  5180. * configure.in (VERSION): Boosted rev to 1.08
  5181. * configure: Rebuilt.
  5182. * README: Added n32 bug fix notes.
  5183. * Makefile.am: Added "make lint" production.
  5184. * Makefile.in: Rebuilt.
  5185. Mon Oct 14 10:54:46 1996 Anthony Green <green@rtl.cygnus.com>
  5186. * README: Added web page reference.
  5187. * configure.in, README: Boosted rev to 1.05
  5188. * configure: Rebuilt.
  5189. * README: Fixed n32 sample code.
  5190. Fri Oct 11 17:09:28 1996 Anthony Green <green@rtl.cygnus.com>
  5191. * README: Added sparc notes.
  5192. * configure.in, README: Boosted rev to 1.04.
  5193. * configure: Rebuilt.
  5194. Thu Oct 10 10:31:03 1996 Anthony Green <green@rtl.cygnus.com>
  5195. * configure.in, README: Boosted rev to 1.03.
  5196. * configure: Rebuilt.
  5197. * README: Added struct notes.
  5198. * Makefile.am (EXTRA_DIST): Added LICENSE to distribution.
  5199. * Makefile.in: Rebuilt.
  5200. * README: Removed Linux section. No special notes now
  5201. because aggregates arg/return types work.
  5202. Wed Oct 9 16:16:42 1996 Anthony Green <green@rtl.cygnus.com>
  5203. * README, configure.in (VERSION): Boosted rev to 1.02
  5204. * configure: Rebuilt.
  5205. Tue Oct 8 11:56:33 1996 Anthony Green <green@rtl.cygnus.com>
  5206. * README (NOTE): Added n32 notes.
  5207. * Makefile.am: Added test production.
  5208. * Makefile: Rebuilt
  5209. * README: spell checked!
  5210. * configure.in (VERSION): Boosted rev to 1.01
  5211. * configure: Rebuilt.
  5212. Mon Oct 7 15:50:22 1996 Anthony Green <green@rtl.cygnus.com>
  5213. * configure.in: Added nasty bit to support SGI tools.
  5214. * configure: Rebuilt.
  5215. * README: Added SGI notes. Added note about automake bug.
  5216. Mon Oct 7 11:00:28 1996 Anthony Green <green@hoser.cygnus.com>
  5217. * README: Rewrote intro, and fixed examples.
  5218. Fri Oct 4 10:19:55 1996 Anthony Green <green@hoser.cygnus.com>
  5219. * configure.in: -D$TARGET is no longer used as a compiler switch.
  5220. It is now inserted into ffi.h at configure time.
  5221. * configure: Rebuilt.
  5222. * FFI_ABI and FFI_STATUS are now ffi_abi and ffi_status.
  5223. Thu Oct 3 13:47:34 1996 Anthony Green <green@hoser.cygnus.com>
  5224. * README, LICENSE: Created. Wrote some docs.
  5225. * configure.in: Don't barf on i586-unknown-linuxaout.
  5226. Added EXTRADIST code for "make dist".
  5227. * configure: Rebuilt.
  5228. * */Makefile.in: Rebuilt with patched automake.
  5229. Tue Oct 1 17:12:25 1996 Anthony Green <green@rtl.cygnus.com>
  5230. * Makefile.am, aclocal.m4, config.guess, config.sub,
  5231. configure.in, fficonfig.h.in, install-sh, mkinstalldirs,
  5232. stamp-h.in: Created
  5233. * Makefile.in, configure: Generated
  5234. --- libffi/include --------------------------------------------------------
  5235. Tue Feb 24 13:09:36 1998 Anthony Green <green@gerbil.cygnus.com>
  5236. * ffi_mips.h: Updated FFI_TYPE_STRUCT_* values based on
  5237. ffi.h.in changes. This is a work-around for SGI's "simple"
  5238. assembler.
  5239. Sun Feb 22 00:51:55 1998 Geoff Keating <geoffk@ozemail.com.au>
  5240. * ffi.h.in: PowerPC support.
  5241. 1998-02-14 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  5242. * ffi.h.in: Add m68k support.
  5243. (FFI_TYPE_LONGDOUBLE): Make it a separate value.
  5244. Tue Feb 10 20:55:16 1998 Richard Henderson <rth@cygnus.com>
  5245. * ffi.h.in (SIZEOF_ARG): Use a pointer type by default.
  5246. * ffi.h.in: Alpha support.
  5247. Fri Nov 22 06:48:45 1996 Anthony Green <green@rtl.cygnus.com>
  5248. * ffi.h.in, ffi_common.h: Cygnus Support -> Cygnus Solutions.
  5249. Wed Nov 20 22:31:01 1996 Anthony Green <green@hoser.cygnus.com>
  5250. * ffi.h.in: Added ffi_type_void definition.
  5251. Tue Oct 29 12:22:40 1996 Anthony Green <green@rtl.cygnus.com>
  5252. * Makefile.am (hack_DATA): Always install ffi_mips.h.
  5253. * ffi.h.in: Removed FFI_DEBUG. It's now in the correct
  5254. place (acconfig.h).
  5255. Added #include <stddef.h> for size_t definition.
  5256. Tue Oct 15 17:23:35 1996 Anthony Green <green@hoser.cygnus.com>
  5257. * ffi.h.in, ffi_common.h, ffi_mips.h: More clean up.
  5258. Commented out #define of FFI_DEBUG.
  5259. Tue Oct 15 13:01:06 1996 Anthony Green <green@rtl.cygnus.com>
  5260. * ffi_common.h: Added bool definition.
  5261. * ffi.h.in, ffi_common.h: Clean up based on LCLint output.
  5262. Added funny /*@...@*/ comments to annotate source.
  5263. Mon Oct 14 12:29:23 1996 Anthony Green <green@rtl.cygnus.com>
  5264. * ffi.h.in: Interface changes based on feedback from Jim
  5265. Blandy.
  5266. Fri Oct 11 16:49:35 1996 Anthony Green <green@rtl.cygnus.com>
  5267. * ffi.h.in: Small change for sparc support.
  5268. Thu Oct 10 14:53:37 1996 Anthony Green <green@rtl.cygnus.com>
  5269. * ffi_mips.h: Added FFI_TYPE_STRUCT_* definitions for
  5270. special structure return types.
  5271. Wed Oct 9 13:55:57 1996 Anthony Green <green@rtl.cygnus.com>
  5272. * ffi.h.in: Added SIZEOF_ARG definition for X86
  5273. Tue Oct 8 11:40:36 1996 Anthony Green <green@rtl.cygnus.com>
  5274. * ffi.h.in (FFI_FN): Added macro for eliminating compiler warnings.
  5275. Use it to case your function pointers to the proper type.
  5276. * ffi_mips.h (SIZEOF_ARG): Added magic to fix type promotion bug.
  5277. * Makefile.am (EXTRA_DIST): Added ffi_mips.h to EXTRA_DIST.
  5278. * Makefile: Rebuilt.
  5279. * ffi_mips.h: Created. Moved all common mips definitions here.
  5280. Mon Oct 7 10:58:12 1996 Anthony Green <green@hoser.cygnus.com>
  5281. * ffi.h.in: The SGI assember is very picky about parens. Redefined
  5282. some macros to avoid problems.
  5283. * ffi.h.in: Added FFI_DEFAULT_ABI definitions. Also added
  5284. externs for pointer, and 64bit integral ffi_types.
  5285. Fri Oct 4 09:51:37 1996 Anthony Green <green@hoser.cygnus.com>
  5286. * ffi.h.in: Added FFI_ABI member to ffi_cif and changed
  5287. function prototypes accordingly.
  5288. Added #define @TARGET@. Now programs including ffi.h don't
  5289. have to specify this themselves.
  5290. Thu Oct 3 15:36:44 1996 Anthony Green <green@hoser.cygnus.com>
  5291. * ffi.h.in: Changed ffi_prep_cif's values from void* to void**
  5292. * Makefile.am (EXTRA_DIST): Added EXTRA_DIST for "make dist"
  5293. to work.
  5294. * Makefile.in: Regenerated.
  5295. Wed Oct 2 10:16:59 1996 Anthony Green <green@hoser.cygnus.com>
  5296. * Makefile.am: Created
  5297. * Makefile.in: Generated
  5298. * ffi_common.h: Added rcsid comment
  5299. Tue Oct 1 17:13:51 1996 Anthony Green <green@rtl.cygnus.com>
  5300. * ffi.h.in, ffi_common.h: Created
  5301. --- libffi/src ------------------------------------------------------------
  5302. Mon Oct 5 02:17:50 1998 Anthony Green <green@cygnus.com>
  5303. * arm/ffi.c, arm/sysv.S: Created.
  5304. * Makefile.am: Added arm files.
  5305. * Makefile.in: Rebuilt.
  5306. Mon Oct 5 01:41:38 1998 Anthony Green <green@rtl.cygnus.com>
  5307. * Makefile.am (libffi_la_LDFLAGS): Incremented revision.
  5308. Sun Oct 4 16:27:17 1998 Anthony Green <green@cygnus.com>
  5309. * alpha/osf.S (ffi_call_osf): Patch for DU assembler.
  5310. * ffitest.c (main): long long and long double return values work
  5311. for x86.
  5312. Fri Apr 17 11:50:58 1998 Anthony Green <green@hoser.cygnus.com>
  5313. * Makefile.in: Rebuilt.
  5314. * ffitest.c (main): Floating point tests not executed for systems
  5315. with broken lond double (SunOS 4 w/ GCC).
  5316. * types.c: Fixed x86 alignment info for long long types.
  5317. Thu Apr 16 07:15:28 1998 Anthony Green <green@ada.cygnus.com>
  5318. * ffitest.c: Added more notes about GCC bugs under Irix 6.
  5319. Wed Apr 15 08:42:22 1998 Anthony Green <green@hoser.cygnus.com>
  5320. * ffitest.c (struct5): New test function.
  5321. (main): New test with struct5.
  5322. Thu Mar 5 10:48:11 1998 Anthony Green <green@tootie.to.cygnus.com>
  5323. * prep_cif.c (initialize_aggregate): Fix assertion for
  5324. nested structures.
  5325. Tue Feb 24 16:33:41 1998 Anthony Green <green@hoser.cygnus.com>
  5326. * prep_cif.c (ffi_prep_cif): Added long double support for sparc.
  5327. Sun Feb 22 00:52:18 1998 Geoff Keating <geoffk@ozemail.com.au>
  5328. * powerpc/asm.h: New file.
  5329. * powerpc/ffi.c: New file.
  5330. * powerpc/sysv.S: New file.
  5331. * Makefile.am: PowerPC port.
  5332. * ffitest.c (main): Allow all tests to run even in presence of gcc
  5333. bug on PowerPC.
  5334. 1998-02-17 Anthony Green <green@hoser.cygnus.com>
  5335. * mips/ffi.c: Fixed comment typo.
  5336. * x86/ffi.c (ffi_prep_cif_machdep), x86/sysv.S (retfloat):
  5337. Fixed x86 long double return handling.
  5338. * types.c: Fixed x86 long double alignment info.
  5339. 1998-02-14 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  5340. * types.c: Add m68k support.
  5341. * ffitest.c (floating): Add long double parameter.
  5342. (return_ll, ldblit): New functions to test long long and long
  5343. double return value.
  5344. (main): Fix type error in assignment of ts[1-4]_type.elements.
  5345. Add tests for long long and long double arguments and return
  5346. values.
  5347. * prep_cif.c (ffi_prep_cif) [M68K]: Don't allocate argument for
  5348. struct value pointer.
  5349. * m68k/ffi.c, m68k/sysv.S: New files.
  5350. * Makefile.am: Add bits for m68k port. Add kludge to work around
  5351. automake deficiency.
  5352. (test): Don't require "." in $PATH.
  5353. * Makefile.in: Rebuilt.
  5354. Wed Feb 11 07:36:50 1998 Anthony Green <green@hoser.cygnus.com>
  5355. * Makefile.in: Rebuilt.
  5356. Tue Feb 10 20:56:00 1998 Richard Henderson <rth@cygnus.com>
  5357. * alpha/ffi.c, alpha/osf.S: New files.
  5358. * Makefile.am: Alpha port.
  5359. Tue Nov 18 14:12:07 1997 Anthony Green <green@hoser.cygnus.com>
  5360. * mips/ffi.c (ffi_prep_cif_machdep): Initialize rstruct_flag
  5361. for n32.
  5362. Tue Jun 3 17:18:20 1997 Anthony Green <green@hoser.cygnus.com>
  5363. * ffitest.c (main): Added hack to get structure tests working
  5364. correctly.
  5365. Sat May 10 19:06:42 1997 Tom Tromey <tromey@cygnus.com>
  5366. * Makefile.in: Rebuilt.
  5367. * Makefile.am (EXTRA_DIST): Explicitly list all distributable
  5368. files in subdirs.
  5369. (VERSION, CC): Removed.
  5370. Thu May 8 17:19:01 1997 Anthony Green <green@hoser.cygnus.com>
  5371. * Makefile.am: Many changes for new automake and libtool.
  5372. * Makefile.in: Rebuilt.
  5373. Fri Nov 22 06:57:56 1996 Anthony Green <green@rtl.cygnus.com>
  5374. * ffitest.c (main): Fixed test case for non mips machines.
  5375. Wed Nov 20 22:31:59 1996 Anthony Green <green@hoser.cygnus.com>
  5376. * types.c: Added ffi_type_void declaration.
  5377. Tue Oct 29 13:07:19 1996 Anthony Green <green@rtl.cygnus.com>
  5378. * ffitest.c (main): Fixed character constants.
  5379. (main): Emit warning for structure test 3 failure on Sun.
  5380. * Makefile.am (VPATH): Fixed VPATH def'n so automake won't
  5381. strip it out.
  5382. Moved distdir hack from libffi to automake.
  5383. (ffitest): Added missing -c for $(COMPILE) (change in automake).
  5384. * Makefile.in: Rebuilt.
  5385. Tue Oct 15 13:08:20 1996 Anthony Green <green@hoser.cygnus.com>
  5386. * Makefile.am: Added "make lint" production.
  5387. * Makefile.in: Rebuilt.
  5388. * prep_cif.c (STACK_ARG_SIZE): Improved STACK_ARG_SIZE macro.
  5389. Clean up based on LCLint output. Added funny /*@...@*/ comments to
  5390. annotate source.
  5391. * ffitest.c, debug.c: Cleaned up code.
  5392. Mon Oct 14 12:26:56 1996 Anthony Green <green@rtl.cygnus.com>
  5393. * ffitest.c: Changes based on interface changes.
  5394. * prep_cif.c (ffi_prep_cif): Cleaned up interface based on
  5395. feedback from Jim Blandy.
  5396. Fri Oct 11 15:53:18 1996 Anthony Green <green@rtl.cygnus.com>
  5397. * ffitest.c: Reordered tests while porting to sparc.
  5398. Made changes to handle lame structure passing for sparc.
  5399. Removed calls to fflush().
  5400. * prep_cif.c (ffi_prep_cif): Added special case for sparc
  5401. aggregate type arguments.
  5402. Thu Oct 10 09:56:51 1996 Anthony Green <green@rtl.cygnus.com>
  5403. * ffitest.c (main): Added structure passing/returning tests.
  5404. * prep_cif.c (ffi_prep_cif): Perform proper initialization
  5405. of structure return types if needed.
  5406. (initialize_aggregate): Bug fix
  5407. Wed Oct 9 16:04:20 1996 Anthony Green <green@rtl.cygnus.com>
  5408. * types.c: Added special definitions for x86 (double doesn't
  5409. need double word alignment).
  5410. * ffitest.c: Added many tests
  5411. Tue Oct 8 09:19:22 1996 Anthony Green <green@rtl.cygnus.com>
  5412. * prep_cif.c (ffi_prep_cif): Fixed assertion.
  5413. * debug.c (ffi_assert): Must return a non void now.
  5414. * Makefile.am: Added test production.
  5415. * Makefile: Rebuilt.
  5416. * ffitest.c (main): Created.
  5417. * types.c: Created. Stripped common code out of */ffi.c.
  5418. * prep_cif.c: Added missing stdlib.h include.
  5419. * debug.c (ffi_type_test): Used "a" to eliminate compiler
  5420. warnings in non-debug builds. Included ffi_common.h.
  5421. Mon Oct 7 15:36:42 1996 Anthony Green <green@rtl.cygnus.com>
  5422. * Makefile.am: Added a rule for .s -> .o
  5423. This is required by the SGI compiler.
  5424. * Makefile: Rebuilt.
  5425. Fri Oct 4 09:51:08 1996 Anthony Green <green@hoser.cygnus.com>
  5426. * prep_cif.c (initialize_aggregate): Moved abi specification
  5427. to ffi_prep_cif().
  5428. Thu Oct 3 15:37:37 1996 Anthony Green <green@hoser.cygnus.com>
  5429. * prep_cif.c (ffi_prep_cif): Changed values from void* to void**.
  5430. (initialize_aggregate): Fixed aggregate type initialization.
  5431. * Makefile.am (EXTRA_DIST): Added support code for "make dist".
  5432. * Makefile.in: Regenerated.
  5433. Wed Oct 2 11:41:57 1996 Anthony Green <green@hoser.cygnus.com>
  5434. * debug.c, prep_cif: Created.
  5435. * Makefile.am: Added debug.o and prep_cif.o to OBJ.
  5436. * Makefile.in: Regenerated.
  5437. * Makefile.am (INCLUDES): Added missing -I../include
  5438. * Makefile.in: Regenerated.
  5439. Tue Oct 1 17:11:51 1996 Anthony Green <green@rtl.cygnus.com>
  5440. * error.c, Makefile.am: Created.
  5441. * Makefile.in: Generated.
  5442. --- libffi/src/x86 --------------------------------------------------------
  5443. Sun Oct 4 16:27:17 1998 Anthony Green <green@cygnus.com>
  5444. * sysv.S (retlongdouble): Fixed long long return value support.
  5445. * ffi.c (ffi_prep_cif_machdep): Ditto.
  5446. Wed May 13 04:30:33 1998 Anthony Green <green@raft.ppp.tsoft.net>
  5447. * ffi.c (ffi_prep_cif_machdep): Fixed long double return value
  5448. support.
  5449. Wed Apr 15 08:43:20 1998 Anthony Green <green@hoser.cygnus.com>
  5450. * ffi.c (ffi_prep_args): small struct support was missing.
  5451. Thu May 8 16:53:58 1997 Anthony Green <green@hoser.cygnus.com>
  5452. * objects.mak: Removed.
  5453. Mon Dec 2 15:12:58 1996 Tom Tromey <tromey@cygnus.com>
  5454. * sysv.S: Use .balign, for a.out Linux boxes.
  5455. Tue Oct 15 13:06:50 1996 Anthony Green <green@hoser.cygnus.com>
  5456. * ffi.c: Clean up based on LCLint output.
  5457. Added funny /*@...@*/ comments to annotate source.
  5458. Fri Oct 11 16:43:38 1996 Anthony Green <green@rtl.cygnus.com>
  5459. * ffi.c (ffi_call): Added assertion for bad ABIs.
  5460. Wed Oct 9 13:57:27 1996 Anthony Green <green@rtl.cygnus.com>
  5461. * sysv.S (retdouble): Fixed double return problems.
  5462. * ffi.c (ffi_call): Corrected fn arg definition.
  5463. (ffi_prep_cif_machdep): Fixed double return problems
  5464. Tue Oct 8 12:12:49 1996 Anthony Green <green@rtl.cygnus.com>
  5465. * ffi.c: Moved ffi_type definitions to types.c.
  5466. (ffi_prep_args): Fixed type promotion bug.
  5467. Mon Oct 7 15:53:06 1996 Anthony Green <green@rtl.cygnus.com>
  5468. * ffi.c (FFI_*_TYPEDEF): Removed redundant ';'
  5469. Fri Oct 4 09:54:53 1996 Anthony Green <green@hoser.cygnus.com>
  5470. * ffi.c (ffi_call): Removed FFI_ABI arg, and swapped
  5471. remaining args.
  5472. Wed Oct 2 10:07:05 1996 Anthony Green <green@hoser.cygnus.com>
  5473. * ffi.c, sysv.S, objects.mak: Created.
  5474. (ffi_prep_cif): cif->rvalue no longer initialized to NULL.
  5475. (ffi_prep_cif_machdep): Moved machine independent cif processing
  5476. to src/prep_cif.c. Introduced ffi_prep_cif_machdep().
  5477. --- libffi/src/mips -------------------------------------------------------
  5478. Tue Feb 17 17:18:07 1998 Anthony Green <green@hoser.cygnus.com>
  5479. * o32.S: Fixed typo in comment.
  5480. * ffi.c (ffi_prep_cif_machdep): Fixed argument processing.
  5481. Thu May 8 16:53:58 1997 Anthony Green <green@hoser.cygnus.com>
  5482. * o32.s, n32.s: Wrappers for SGI tool support.
  5483. * objects.mak: Removed.
  5484. Tue Oct 29 14:37:45 1996 Anthony Green <green@rtl.cygnus.com>
  5485. * ffi.c (ffi_prep_args): Changed int z to size_t z.
  5486. Tue Oct 15 13:17:25 1996 Anthony Green <green@hoser.cygnus.com>
  5487. * n32.S: Fixed bad stack munging.
  5488. * ffi.c: Moved prototypes for ffi_call_?32() to here from
  5489. ffi_mips.h because extended_cif is not defined in ffi_mips.h.
  5490. Mon Oct 14 12:42:02 1996 Anthony Green <green@rtl.cygnus.com>
  5491. * ffi.c: Interface changes based on feedback from Jim Blandy.
  5492. Thu Oct 10 11:22:16 1996 Anthony Green <green@rtl.cygnus.com>
  5493. * n32.S, ffi.c: Lots of changes to support passing and
  5494. returning structures with the n32 calling convention.
  5495. * n32.S: Fixed fn pointer bug.
  5496. * ffi.c (ffi_prep_cif_machdep): Fix for o32 structure
  5497. return values.
  5498. (ffi_prep_args): Fixed n32 structure passing when structures
  5499. partially fit in registers.
  5500. Wed Oct 9 13:49:25 1996 Anthony Green <green@rtl.cygnus.com>
  5501. * objects.mak: Added n32.o.
  5502. * n32.S: Created.
  5503. * ffi.c (ffi_prep_args): Added magic to support proper
  5504. n32 processing.
  5505. Tue Oct 8 10:37:35 1996 Anthony Green <green@rtl.cygnus.com>
  5506. * ffi.c: Moved ffi_type definitions to types.c.
  5507. (ffi_prep_args): Fixed type promotion bug.
  5508. * o32.S: This code is only built for o32 compiles.
  5509. A lot of the #define cruft has moved to ffi_mips.h.
  5510. * ffi.c (ffi_prep_cif_machdep): Fixed arg flags. Second arg
  5511. is only processed if the first is either a float or double.
  5512. Mon Oct 7 15:33:59 1996 Anthony Green <green@rtl.cygnus.com>
  5513. * o32.S: Modified to compile under each of o32, n32 and n64.
  5514. * ffi.c (FFI_*_TYPEDEF): Removed redundant ';'
  5515. Fri Oct 4 09:53:25 1996 Anthony Green <green@hoser.cygnus.com>
  5516. * ffi.c (ffi_call): Removed FFI_ABI arg, and swapped
  5517. remaining args.
  5518. Wed Oct 2 17:41:22 1996 Anthony Green <green@rtl.cygnus.com>
  5519. * o32.S: Removed crufty definitions.
  5520. Wed Oct 2 12:53:42 1996 Anthony Green <green@hoser.cygnus.com>
  5521. * ffi.c (ffi_prep_cif): cif->rvalue no longer initialized to NULL.
  5522. (ffi_prep_cif_machdep): Moved all machine independent cif processing
  5523. to src/prep_cif.c. Introduced ffi_prep_cif_machdep. Return types
  5524. of FFI_TYPE_STRUCT are no different than FFI_TYPE_INT.
  5525. Tue Oct 1 17:11:02 1996 Anthony Green <green@rtl.cygnus.com>
  5526. * ffi.c, o32.S, object.mak: Created
  5527. --- libffi/src/sparc ------------------------------------------------------
  5528. Tue Feb 24 16:33:18 1998 Anthony Green <green@hoser.cygnus.com>
  5529. * ffi.c (ffi_prep_args): Added long double support.
  5530. Thu May 8 16:53:58 1997 Anthony Green <green@hoser.cygnus.com>
  5531. * objects.mak: Removed.
  5532. Thu May 1 16:07:56 1997 Anthony Green <green@hoser.cygnus.com>
  5533. * v8.S: Fixed minor portability problem reported by
  5534. Russ McManus <mcmanr@eq.gs.com>.
  5535. Tue Nov 26 14:12:43 1996 Anthony Green <green@csk3.cygnus.com>
  5536. * v8.S: Used STACKFRAME define elsewhere.
  5537. * ffi.c (ffi_prep_args): Zero out space when USING_PURIFY
  5538. is set.
  5539. (ffi_prep_cif_machdep): Allocate the correct stack frame
  5540. space for functions with < 6 args.
  5541. Tue Oct 29 15:08:55 1996 Anthony Green <green@rtl.cygnus.com>
  5542. * ffi.c (ffi_prep_args): int z is now size_t z.
  5543. Mon Oct 14 13:31:24 1996 Anthony Green <green@rtl.cygnus.com>
  5544. * v8.S (ffi_call_V8): Gordon rewrites this again. It looks
  5545. great now.
  5546. * ffi.c (ffi_call): The comment about hijacked registers
  5547. is no longer valid after gordoni hacked v8.S.
  5548. * v8.S (ffi_call_V8): Rewrote with gordoni. Much simpler.
  5549. * v8.S, ffi.c: ffi_call() had changed to accept more than
  5550. two args, so v8.S had to change (because it hijacks incoming
  5551. arg registers).
  5552. * ffi.c: Interface changes based on feedback from Jim Blandy.
  5553. Thu Oct 10 17:48:16 1996 Anthony Green <green@rtl.cygnus.com>
  5554. * ffi.c, v8.S, objects.mak: Created.