ChangeLog 198 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811
  1. 2021-11-15 H.J. Lu <hjl.tools@gmail.com>
  2. * LOCAL_PATCHES: Add commit a91f844ef44.
  3. 2021-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  4. PR libffi/102874
  5. * src/x86/win64.S (epilogue): Use #define instead of .macro.
  6. 2021-11-04 H.J. Lu <hjl.tools@gmail.com>
  7. * Makefile.am (AM_CFLAGS): Add $(CET_FLAGS).
  8. (AM_CCASFLAGS): Likewise.
  9. * configure.ac (CET_FLAGS): Add GCC_CET_FLAGS and AC_SUBST.
  10. * Makefile.in: Regenerate.
  11. * aclocal.m4: Likewise.
  12. * configure: Likewise.
  13. * include/Makefile.in: Likewise.
  14. * man/Makefile.in: Likewise.
  15. * testsuite/Makefile.in: Likewise.
  16. 2021-10-27 H.J. Lu <hjl.tools@gmail.com>
  17. * LOCAL_PATCHES: Add commit 90454a90082.
  18. 2021-10-25 Segher Boessenkool <segher@kernel.crashing.org>
  19. * src/powerpc/linux64.S: Enable AltiVec insns.
  20. * src/powerpc/linux64_closure.S: Ditto.
  21. 2021-10-20 H.J. Lu <hjl.tools@gmail.com>
  22. * LOCAL_PATCHES: New file.
  23. 2021-10-20 H.J. Lu <hjl.tools@gmail.com>
  24. * testsuite/lib/libffi.exp (load_gcc_lib): Load library from GCC
  25. testsuite.
  26. Load target-supports.exp and target-supports-dg.exp.
  27. (libffi-init): Use libraries in GCC build tree.
  28. (libffi_target_compile): Link with -shared-libgcc -lstdc++ for
  29. C++ sources.
  30. 2021-10-20 H.J. Lu <hjl.tools@gmail.com>
  31. * Makefile.am (AUTOMAKE_OPTIONS): Add info-in-builddir.
  32. (ACLOCAL_AMFLAGS): Set to -I .. -I ../config.
  33. (SUBDIRS): Don't add doc.
  34. (TEXINFO_TEX): New.
  35. (MAKEINFOFLAGS): Likewise.
  36. (info_TEXINFOS): Likewise.
  37. (STAMP_GENINSRC): Likewise.
  38. (STAMP_BUILD_INFO): Likewise.
  39. (all-local): Likewise.
  40. (stamp-geninsrc): Likewise.
  41. (doc/libffi.info): Likewise.
  42. (stamp-build-info:): Likewise.
  43. (CLEANFILES): Likewise.
  44. (MAINTAINERCLEANFILES): Likewise.
  45. (AM_MAKEFLAGS): Likewise.
  46. (all-recursive): Likewise.
  47. (install-recursive): Likewise.
  48. (mostlyclean-recursive): Likewise.
  49. (clean-recursive): Likewise.
  50. (distclean-recursive): Likewise.
  51. (maintainer-clean-recursive): Likewise.
  52. (LTLDFLAGS): Replace libtool-ldflags with ../libtool-ldflags.
  53. (AM_CFLAGS): Add -g -fexceptions.
  54. (libffi.map-sun): Replace make_sunver.pl with
  55. ../contrib/make_sunver.pl.
  56. (dist-hook): Removed.
  57. Include $(top_srcdir)/../multilib.am.
  58. * configure.ac: Add AM_ENABLE_MULTILIB.
  59. Remove the frv*-elf check.
  60. (AX_ENABLE_BUILDDIR): Removed.
  61. (AM_INIT_AUTOMAKE): Add [no-dist].
  62. Add --enable-generated-files-in-srcdir.
  63. (C_CONFIG_MACRO_DIR): Removed.
  64. (AX_COMPILER_VENDOR): Likewise.
  65. (AX_CC_MAXOPT): Likewise.
  66. (AX_CFLAGS_WARN_ALL): Likewise.
  67. Remove the GCC check.
  68. (SYMBOL_UNDERSCORE): Removed.
  69. (AX_CHECK_COMPILE_FLAG): Likewise.
  70. Remove --disable-docs.
  71. (ACX_CHECK_PROG_VER): Check makeinfo.
  72. (BUILD_DOCS): Updated.
  73. (exec-static-tramp): Don't enable use of static exec trampolines
  74. by default.
  75. Remove --disable-multi-os-directory.
  76. (GCC_WITH_TOOLEXECLIBDIR): New.
  77. Support cross host.
  78. Support --enable-multilib.
  79. * include/Makefile.am (nodist_include_HEADERS): Removed.
  80. (gcc_version): New.
  81. (toollibffidir): Likewise.
  82. (toollibffi_HEADERS): Likewise.
  83. * Makefile.in: Regenerate.
  84. (GCC_BASE_VER): New.
  85. (AC_CONFIG_FILES): Remove doc/Makefile.
  86. (AC_CONFIG_LINKS): New.
  87. * aclocal.m4: Likewise.
  88. * configure: Likewise.
  89. * fficonfig.h.in: Likewise.
  90. * mdate-sh: Likewise.
  91. * include/Makefile.in: Likewise.
  92. * man/Makefile.in: Likewise.
  93. * testsuite/Makefile.in: Likewise.
  94. 2021-10-20 H.J. Lu <hjl.tools@gmail.com>
  95. * HOWTO_MERGE: New file.
  96. * autogen.sh: Likewise.
  97. * merge.sh: Likewise.
  98. 2021-08-30 YunQiang Su <yunqiang.su@cipunited.com>
  99. PR libffi/83636
  100. * src/mips/n32.S: disable .set mips4
  101. * src/mips/ffi.c: use different JR encoding for r6.
  102. 2021-07-09 H.J. Lu <hjl.tools@gmail.com>
  103. PR libffi/101336
  104. * configure.host: Always check __x86_64__ for x86 hosts.
  105. 2021-06-16 Jakub Jelinek <jakub@redhat.com>
  106. * src/x86/ffi64.c (classify_argument): For FFI_TYPE_STRUCT set words
  107. to number of words needed for type->size + byte_offset bytes rather
  108. than just type->size bytes. Compute pos before the loop and check
  109. total size of the structure.
  110. * testsuite/libffi.call/nested_struct12.c: New test.
  111. 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
  112. * configure: Re-generate.
  113. 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
  114. PR target/97865
  115. * configure: Regenerate.
  116. 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
  117. * configure: Regenerate.
  118. 2020-09-24 Alan Modra <amodra@gmail.com>
  119. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
  120. location of .Lret.
  121. 2020-09-24 Alan Modra <amodra@gmail.com>
  122. * src/powerpc/linux64.S (ffi_call_LINUX64): Don't emit global
  123. entry when __PCREL__. Call using @notoc. Add nops.
  124. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
  125. (ffi_go_closure_linux64): Likewise.
  126. 2020-04-25 Maciej W. Rozycki <macro@wdc.com>
  127. * Makefile.am (DISTCLEANFILES): New variable.
  128. * configure.ac: Produce `local.exp'.
  129. * Makefile.in: Regenerate.
  130. * configure: Regenerate.
  131. * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
  132. variable.
  133. * testsuite/Makefile.in: Regenerate.
  134. 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
  135. * configure.ac: Handle `--with-toolexeclibdir='.
  136. * Makefile.in: Regenerate.
  137. * aclocal.m4: Regenerate.
  138. * configure: Regenerate.
  139. * include/Makefile.in: Regenerate.
  140. * man/Makefile.in: Regenerate.
  141. * testsuite/Makefile.in: Regenerate.
  142. 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
  143. * configure: Regenerate.
  144. 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
  145. PR other/79543
  146. * acinclude.m4 (LIBAT_CHECK_LINKER_FEATURES): Fix GNU ld --version
  147. scanning to conform to the GNU Coding Standards.
  148. * configure: Regenerate.
  149. 2018-10-31 Joseph Myers <joseph@codesourcery.com>
  150. PR bootstrap/82856
  151. * Makefile.am: Include multilib.am.
  152. (AUTOMAKE_OPTIONS): Add info-in-builddir.
  153. (CLEANFILES): Remove doc/libffi.info.
  154. * configure.ac: Remove AC_PREREQ.
  155. * Makefile.in, aclocal.m4, configure, fficonfig.h.in,
  156. include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
  157. Regenerate.
  158. 2018-08-15 Andreas Schwab <schwab@suse.de>
  159. Backport of RISC-V support for libffi go closures
  160. * src/riscv/ffi.c (ffi_call_go, ffi_prep_go_closure): New
  161. functions.
  162. (ffi_call_int): Renamed from ffi_call.
  163. (ffi_call_asm, ffi_closure_inner): Adjust interface.
  164. * src/riscv/ffitarget.h (FFI_GO_CLOSURES): Define.
  165. * src/riscv/sysv.S (ffi_go_closure_asm): New function.
  166. (ffi_closure_asm, ffi_call_asm): Update for adjusted interfaces.
  167. 2018-05-08 Andreas Schwab <schwab@suse.de>
  168. Backport of RISC-V support for libffi
  169. * configure.host: Add RISC-V support.
  170. * Makefile.am: Likewise.
  171. * Makefile.in: Regenerate.
  172. * src/riscv/ffi.c, src/riscv/ffitarget.h, src/riscv/sysv.S: New
  173. files.
  174. 2018-05-04 Alan Modra <amodra@gmail.com>
  175. Import from upstream
  176. * src/powerpc/ffi_linux64.c (discover_homogeneous_aggregate):
  177. Compile for ELFv1 too, handling single element aggregates.
  178. (ffi_prep_cif_linux64_core): Call discover_homogeneous_aggregate
  179. for ELFv1. Set FLAG_RETURNS_64BITS for FFI_TYPE_POINTER return.
  180. (ffi_prep_args64): Call discover_homogeneous_aggregate for ELFv1,
  181. and handle single element structs containing float or double
  182. as if the element wasn't wrapped in a struct. Store floats in
  183. second word of doubleword slot when big-endian.
  184. (ffi_closure_helper_LINUX64): Similarly.
  185. 2018-04-18 David Malcolm <dmalcolm@redhat.com>
  186. PR jit/85384
  187. * configure: Regenerate.
  188. 2017-08-31 Tony Reix <tony.reix@atos.net>
  189. * src/powerpc/aix.S (ffi_call_AIX): Add debugging pseudo-op and
  190. labels for EH.
  191. (ffi_call_go_AIX): New function.
  192. (_GLOBAL__F_libffi_src_powerpc_aix): New EH frame.
  193. * src/powerpc/aix_closure.S (ffi_closure_ASM): Add debugging
  194. pseudo-op and labels for EH.
  195. (ffi_go_closure_ASM): New function.
  196. (_GLOBAL__F_libffi_src_powerpc_aix_closure): New EH frame.
  197. * src/powrpc/ffi_darwin.c (ffi_call_go): New function.
  198. (ffi_prep_go_closure): New function.
  199. (ffi_closure_helper_common): Rename from ffi_closure_helper_DARWIN.
  200. (ffi_closure_helper_DARWIN): Call ffi_closure_helper_common.
  201. (ffi_go_closure_helper_DARWIN): Call ffi_closure_helper_common.
  202. * src/powerpc/ffitarget.h (FFI_GO_CLOSURES): Define.
  203. 2017-01-21 Jakub Jelinek <jakub@redhat.com>
  204. PR other/79046
  205. * configure.ac: Add GCC_BASE_VER.
  206. * include/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
  207. of cat to get version from BASE-VER file.
  208. * configure: Regenerated.
  209. * testsuite/Makefile.in: Regenerated.
  210. * include/Makefile.in: Regenerated.
  211. * Makefile.in: Regenerated.
  212. * man/Makefile.in: Regenerated.
  213. 2016-11-15 Matthias Klose <doko@ubuntu.com>
  214. * configure: Regenerate.
  215. 2016-09-04 John David Anglin <danglin@gcc.gnu.org>
  216. * src/pa/ffi.c (ffi_struct_type): Put type declaration on separate line.
  217. (ffi_prep_args_pa32): Likewise.
  218. (ffi_size_stack_pa32): Likewise.
  219. (ffi_prep_cif_machdep): Likewise.
  220. (ffi_call): Likewise. Rename to ffi_call_int. Add closure argument
  221. and update call to ffi_call_pa32.
  222. (ffi_call, ffi_call_go, ffi_prep_go_closure): New.
  223. (ffi_closure_inner_pa32): Update to handle go closures.
  224. * src/pa/ffitarget.h (FFI_GO_CLOSURES): Define.
  225. * src/pa/hpux32.S (ffi_call_pa32): Pass go closure argument in static
  226. chain register (%ret1).
  227. (ffi_closure_pa32): Set closure type argument to zero.
  228. (ffi_go_closure_pa32): New function. Add unwind data for it.
  229. * src/pa/linux.S: Likewise. Use cfi directives for unwind data.
  230. * testsuite/libffi.go/static-chain.h (STATIC_CHAIN_REG): Define for
  231. hppa.
  232. 2016-05-23 Thomas Schwinge <thomas@codesourcery.com>
  233. PR libffi/65567
  234. * testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.
  235. 2016-03-17 Andreas Schwab <schwab@suse.de>
  236. * src/aarch64/ffitarget.h (FFI_SIZEOF_JAVA_RAW) [__ILP32__]:
  237. Define.
  238. 2016-03-02 Richard Henderson <rth@redhat.com>
  239. * libtool-version: Increase to 7:0:0.
  240. * libffi.map.in: Increase version numbers to 7.0.
  241. 2016-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  242. * Makefile.am (libffi.map-sun): Properly convert
  243. $(libffi_la_OBJECTS) to object names.
  244. * Makefile.in: Regenerate.
  245. 2016-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  246. * Makefile.am (libffi.map-sun): Tabify:
  247. * Makefile.in: Regenerate.
  248. 2016-03-02 Richard Henderson <rth@redhat.com>
  249. PR libffi/70024
  250. * Makefile.am (libffi_version_script): New.
  251. (libffi_version_dep): New.
  252. (libffi_version_info): New.
  253. (libffi_la_LDFLAGS): Include libffi_version_info, libffi_version_script.
  254. (libffi_la_DEPENDENCIES): Include libffi_version_dep.
  255. * acinclude.m4 (LIBAT_ENABLE, LIBAT_CHECK_LINKER_FEATURES): New.
  256. (LIBAT_ENABLE_SYMVERS, LIBAT_BUILD_VERSIONED_SHLIB): New.
  257. (LIBAT_BUILD_VERSIONED_SHLIB_GNU): New.
  258. (LIBAT_BUILD_VERSIONED_SHLIB_SUN): New.
  259. * configure.ac: Invoke LIBAT_ENABLE_SYMVERS.
  260. * libffi.map: New file.
  261. * libtool-version: Increase to 5.0.0.
  262. * Makefile.in, configure: Rebuild.
  263. * man/Makefile.in, testsuite/Makefile.in: Rebuild.
  264. * Makefile.am (libffi_version_script): Look in cwd for libffi.map.
  265. (libffi_version_dep, libffi.map-sun): Likewise.
  266. (libffi.map): New target.
  267. * libffi.map.in: Rename from libffi.map. Add required defines,
  268. includes, and conditionals.
  269. 2015-10-26 John David Anglin <danglin@gcc.gnu.org>
  270. PR libffi/65441
  271. * testsuite/lib/libffi.exp: Load target-supports-dg.exp.
  272. * testsuite/libffi.call/float2.c: Don't run on hppa*-*-hpux*.
  273. 2015-10-01 Alan Modra <amodra@gmail.com>
  274. * src/powerpc/ffi_sysv.c (ffi_prep_cif_sysv_core): Count fprs,
  275. gprs, and stack words separately.
  276. (ffi_prep_args_SYSV): Similarly.
  277. 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
  278. * Makefile.in: Regenerated with automake-1.11.6.
  279. * aclocal.m4: Likewise.
  280. * configure: Likewise.
  281. * fficonfig.h.in: Likewise.
  282. * include/Makefile.in: Likewise.
  283. * man/Makefile.in: Likewise.
  284. * testsuite/Makefile.in: Likewise.
  285. 2015-03-29 John David Anglin <danglin@gcc.gnu.org>
  286. PR libffi/65567
  287. * testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
  288. lindex is applied to a list.
  289. 2015-02-10 Andrew Pinski <apinski@cavium.com>
  290. * src/aarch64/ffitarget.h (ffi_arg): Use unsigned long long for ILP32.
  291. (FFI_SIZEOF_ARG): Define to 64 for ILP32.
  292. (ffi_sarg): Use signed long long for ILP32.
  293. * src/aarch64/sysv.S (PTR_REG): New macro.
  294. (PTR_SIZE): New macro.
  295. (ffi_closure_SYSV): Load cif, fn and user_data using PTR_REG.
  296. (ffi_go_closure_SYSV): Load cif and fn using PTR_REG.
  297. 2015-01-29 Jack Howarth <howarth.at.gcc@gmail.com>
  298. PR libffi/64855
  299. * testsuite/lib/libffi.exp: Don't set targetabis on darwin.
  300. 2015-01-28 Richard Henderson <rth@redhat.com>
  301. PR libffi/64779
  302. PR libffi/64799
  303. * Merge to upstream commit db1b34b7e1f5e473d17557e454a29933dfecd1af.
  304. 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  305. * testsuite/lib/libffi.exp: Load target-supports.exp.
  306. (run-many-tests): Only set targetabis for ia32.
  307. 2015-01-19 Richard Henderson <rth@redhat.com>
  308. PR libffi/64581
  309. * testsuite/lib/libffi.exp (libffi_target_compile): Don't switch
  310. to C++ mode when compiling C++ source code.
  311. 2015-01-19 Richard Henderson <rth@redhat.com>
  312. * Merge to upstream commit 3ac1610aa33c887ea9b14935208943925714a33e.
  313. 2015-01-19 Richard Henderson <rth@redhat.com>
  314. PR libffi/64607
  315. * testsuite/lib/libffi.exp (libffi-init): Append -L for the
  316. just built libstdc++.
  317. 2015-01-15 Dominique d'Humieres <dominiq@lps.ens.fr>
  318. Richard Henderson <rth@redhat.com>
  319. PR libffi/64607
  320. * Makefile.am (AM_MAKEFLAGS): Use double quotes on subvariables.
  321. * Makefile.in: Rebuilt.
  322. 2015-01-15 Richard Henderson <rth@redhat.com>
  323. PR libffi/64572
  324. * include/ffi.h.in (FFI_TYPE_LAST): Set to COMPLEX only if complex
  325. numbers are supported by the backend.
  326. 2015-01-13 Kaz Kojima <kkojima@gcc.gnu.org>
  327. * configure.host: Remove extra brackets for sh.
  328. 2015-01-13 H.J. Lu <hongjiu.lu@intel.com>
  329. PR bootstrap/64575
  330. * configure.host (TARGET): Set to X86_64 if __x86_64__ is defined.
  331. 2015-01-12 Richard Henderson <rth@redhat.com>
  332. PR libffi/64572
  333. * src/x86/ffitarget.h (FFI_GO_CLOSURES): Do not define for darwin.
  334. (FFI_TARGET_HAS_COMPLEX_TYPE): Likewise.
  335. 2015-01-12 Richard Henderson <rth@redhat.com>
  336. * src/x86/ffi.c (ffi_raw_call): Fill in frame.
  337. 2015-01-12 Richard Henderson <rth@redhat.com>
  338. Merge to upstream commit c82cc159426d8d4402375fa1ae3f045b9cf82e16.
  339. 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
  340. PR bootstrap/63784
  341. * configure: Regenerated.
  342. 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  343. PR target/63610
  344. * configure: Regenerate.
  345. 2014-10-15 Ian Lance Taylor <iant@google.com>
  346. * configure.ac: If the compiler supports -Qunused-arguments, use
  347. it when running the compiler on .s files.
  348. * configure: Regenerated.
  349. 2014-09-11 Jakub Jelinek <jakub@redhat.com>
  350. * src/powerpc/linux64.S: Emit .note.GNU-stack even when
  351. POWERPC64 is not defined.
  352. * src/powerpc/linux64_closure.S: Likewise. Also test _CALL_ELF == 2.
  353. 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
  354. * src/alpha/ffi.c: Do not include stdlib.h.
  355. (ffi_closure_osf_inner) <default>: Use FFI_ASSERT instead of abort.
  356. 2014-07-04 Thomas Schwinge <thomas@codesourcery.com>
  357. * testsuite/lib/libffi.exp (libffi-dg-runtest): Change interface
  358. match to dg-runtest's.
  359. 2014-05-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
  360. * testsuite/lib/libffi.exp (load_gcc_lib): Register loaded libs.
  361. 2014-05-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
  362. Fix current cygwin-64 build problems.
  363. * src/java_raw_api.c: Remove if !defined(FFI_NO_RAW_API).
  364. * src/x86/ffi.c: Add if defined(__CYGWIN__).
  365. * src/x86/win64.S (ffi_closure_win64, ffi_call_win64): Added
  366. handling for FFI_TYPE_UINT64, FFI_TYPE_POINTER and FFI_TYPE_INT.
  367. Added SEH information. Fixed formatting.
  368. 2014-04-22 Jakub Jelinek <jakub@redhat.com>
  369. PR other/43620
  370. * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
  371. * Makefile.in: Regenerated.
  372. * include/Makefile.in: Regenerated.
  373. * man/Makefile.in: Regenerated.
  374. * testsuite/Makefile.in: Regenerated.
  375. 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
  376. * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
  377. main CFA reg; update cfi_rel_offset.
  378. 2014-02-17 Eric Botcazou <ebotcazou@adacore.com>
  379. PR libffi/60073
  380. * src/sparc/v8.S: Assemble only if !SPARC64.
  381. * src/sparc/v9.S: Remove obsolete comment.
  382. * src/sparc/ffitarget.h (enum ffi_abi): Add FFI_COMPAT_V9.
  383. (V8_ABI_P): New macro.
  384. (V9_ABI_P): Likewise.
  385. (FFI_EXTRA_CIF_FIELDS): Define only if SPARC64.
  386. * src/sparc/ffi.c (ffi_prep_args_v8): Compile only if !SPARC64.
  387. (ffi_prep_args_v9): Compile only if SPARC64.
  388. (ffi_prep_cif_machdep_core): Use V9_ABI_P predicate.
  389. (ffi_prep_cif_machdep): Guard access to nfixedargs field.
  390. (ffi_prep_cif_machdep_var): Likewise.
  391. (ffi_v9_layout_struct): Compile only if SPARC64.
  392. (ffi_call): Deal with FFI_V8PLUS and FFI_COMPAT_V9 and fix warnings.
  393. (ffi_prep_closure_loc): Use V9_ABI_P and V8_ABI_P predicates.
  394. (ffi_closure_sparc_inner_v8): Compile only if !SPARC64.
  395. (ffi_closure_sparc_inner_v9): Compile only if SPARC64. Guard access
  396. to nfixedargs field.
  397. 2014-02-13 Eric Botcazou <ebotcazou@adacore.com>
  398. PR libffi/60073
  399. * src/sparc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
  400. (FFI_EXTRA_CIF_FIELDS): Likewise.
  401. (FFI_NATIVE_RAW_API): Move around.
  402. * src/sparc/ffi.c (ffi_prep_cif_machdep_core): New function from...
  403. (ffi_prep_cif_machdep): ...here. Call ffi_prep_cif_machdep_core.
  404. (ffi_prep_cif_machdep_var): New function.
  405. (ffi_closure_sparc_inner_v9): Do not pass anonymous FP arguments in
  406. FP registers.
  407. * doc/libffi.texi (Introduction): Fix inaccuracy.
  408. 2013-12-10 Alan Modra <amodra@gmail.com>
  409. * src/powerpc/ffitarget.h: Import from upstream.
  410. * src/powerpc/ffi_powerpc.h: Likewise.
  411. * src/powerpc/ffi.c: Likewise.
  412. * src/powerpc/ffi_sysv.c: Likewise.
  413. * src/powerpc/ffi_linux64.c: Likewise.
  414. * src/powerpc/sysv.S: Likewise.
  415. * src/powerpc/ppc_closure.S: Likewise.
  416. * src/powerpc/linux64.S: Likewise.
  417. * src/powerpc/linux64_closure.S: Likewise.
  418. * src/types.c: Likewise.
  419. * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
  420. (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
  421. * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
  422. * include/ffi.h.in (ffi_prep_types): Declare.
  423. * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
  424. * configure: Regenerate.
  425. * fficonfig.h.in: Regenerate.
  426. * Makefile.in: Regenerate.
  427. * man/Makefile.in: Regenerate.
  428. * include/Makefile.in: Regenerate.
  429. * testsuite/Makefile.in: Regenerate.
  430. 2013-11-18 Alan Modra <amodra@gmail.com>
  431. * src/powerpc/ppc_closure.S: Don't bl .Luint128.
  432. * src/powerpc/ffitarget.h: Import from upstream.
  433. * src/powerpc/ffi.c: Likewise.
  434. * src/powerpc/linux64.S: Likewise.
  435. * src/powerpc/linux64_closure.S: Likewise.
  436. * doc/libffi.texi: Likewise.
  437. * testsuite/libffi.call/cls_double_va.c: Likewise.
  438. * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
  439. 2013-09-20 Alan Modra <amodra@gmail.com>
  440. * configure: Regenerate.
  441. 2013-06-25 Alan Modra <amodra@gmail.com>
  442. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
  443. before statements.
  444. (ffi_prep_args64): Support little-endian.
  445. (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
  446. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
  447. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
  448. 2013-05-22 Dominique d'Humieres <dominiq@lps.ens.fr>
  449. Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  450. PR libffi/56033
  451. * testsuite/libffi.call/cls_struct_va1.c (test_fn): Cast resp to
  452. ffi_arg *.
  453. * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise.
  454. * testsuite/libffi.call/va_1.c (main): Change res to ffi_arg.
  455. * testsuite/libffi.call/va_struct1.c (main): Likewise.
  456. 2013-03-22 Kai Tietz <ktietz@redhat.com>
  457. * src/x86/win64.S: Make use of ffi_closure_win64_inner
  458. symbol pc-relative.
  459. 2013-03-07 Dave Korn <dave.korn.cygwin@gmail.com>
  460. * src/closures.c (is_emutramp_enabled [!FFI_MMAP_EXEC_EMUTRAMP_PAX]):
  461. Move default definition outside enclosing #if scope.
  462. 2013-02-06 Andreas Tobler <andreast@fgznet.ch>
  463. * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
  464. DOUBLE equal LONGDOUBLE.
  465. 2013-01-07 Thorsten Glaser <tg@mirbsd.org>
  466. * testsuite/libffi.call/cls_uchar_va.c,
  467. testsuite/libffi.call/cls_ushort_va.c,
  468. testsuite/libffi.call/va_1.c: Testsuite fixes.
  469. 2012-12-29 Andreas Schwab <schwab@linux-m68k.org>
  470. * Makefile.am (ACLOCAL_AMFLAGS, TEXINFO_TEX, MAKEINFOFLAGS)
  471. (STAMP_GENINSRC, STAMP_BUILD_INFO, CLEANFILES)
  472. (MAINTAINERCLEANFILES): Define.
  473. (all-local, stamp-geninsrc, stamp-build-info): New targets.
  474. (doc/libffi.info): Depend on $(STAMP_BUILD_INFO)
  475. * configure.ac: Check for modern makeinfo. Add support for
  476. --enable-generated-files-in-srcdir.
  477. * libffi/mdate-sh: New file.
  478. * testsuite/lib/libffi.exp (load_gcc_lib): Load from gcc testsuite
  479. lib dir.
  480. (libffi-init): Properly set library paths for multilibs and add
  481. path to libstdc++.
  482. * configure: Regenerate.
  483. * aclocal.m4: Regenerate.
  484. * Makefile.in: Regenerate.
  485. * doc/stamp-vti: Regenerate.
  486. * doc/version.texi: Regenerate.
  487. * fficonfig.h.in: Regenerate.
  488. * include/Makefile.in: Regenerate.
  489. * man/Makefile.in: Regenerate.
  490. * testsuite/Makefile.in: Regenerate.
  491. 2012-10-31 Alan Modra <amodra@gmail.com>
  492. * src/powerpc/linux64_closure.S: Add new ABI support.
  493. * src/powerpc/linux64.S: Likewise.
  494. 2012-10-30 Magnus Granberg <zorry@gentoo.org>
  495. Pavel Labushev <pavel.labushev@runbox.ru>
  496. * configure.ac: New options pax_emutramp
  497. * configure, fficonfig.h.in: Regenerated
  498. * src/closures.c: New function emutramp_enabled_check() and
  499. checks.
  500. 2012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
  501. * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
  502. lion) and future version.
  503. * configure: Rebuild.
  504. 2012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
  505. Marcus Shawcroft <marcus.shawcroft at arm.com>
  506. * README: Add details of aarch64 port.
  507. * src/aarch64/ffi.c: New.
  508. * src/aarch64/ffitarget.h: Likewise.
  509. * src/aarch64/sysv.S: Likewise.
  510. * Makefile.am: Support aarch64.
  511. * configure.ac: Support aarch64.
  512. * Makefile.in, configure: Rebuilt.
  513. 2012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
  514. Marcus Shawcroft <marcus.shawcroft at arm.com>
  515. * testsuite/lib/libffi.exp: Add support for aarch64.
  516. * testsuite/libffi.call/cls_struct_va1.c: New.
  517. * testsuite/libffi.call/cls_uchar_va.c: Likewise.
  518. * testsuite/libffi.call/cls_uint_va.c: Likewise.
  519. * testsuite/libffi.call/cls_ulong_va.c: Likewise.
  520. * testsuite/libffi.call/cls_ushort_va.c: Likewise.
  521. * testsuite/libffi.call/nested_struct11.c: Likewise.
  522. * testsuite/libffi.call/uninitialized.c: Likewise.
  523. * testsuite/libffi.call/va_1.c: Likewise.
  524. * testsuite/libffi.call/va_struct1.c: Likewise.
  525. * testsuite/libffi.call/va_struct2.c: Likewise.
  526. * testsuite/libffi.call/va_struct3.c: Likewise.
  527. 2012-10-12 Walter Lee <walt@tilera.com>
  528. * Makefile.am: Add TILE-Gx/TILEPro support.
  529. * configure.ac: Likewise.
  530. * Makefile.in: Regenerate.
  531. * configure: Likewise.
  532. * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
  533. * src/tile: New directory.
  534. * src/tile/ffi.c: New file.
  535. * src/tile/ffitarget.h: Ditto.
  536. * src/tile/tile.S: Ditto.
  537. 2012-10-12 Matthias Klose <doko@ubuntu.com>
  538. * generate-osx-source-and-headers.py: Normalize whitespace.
  539. 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
  540. * configure: Regenerated.
  541. 2012-08-26 Andrew Pinski <apinski@cavium.com>
  542. PR libffi/53014
  543. * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
  544. soft-float.
  545. 2012-08-08 Uros Bizjak <ubizjak@gmail.com>
  546. * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
  547. just return FFI_BAD_ABI when things are wrong.
  548. 2012-07-18 H.J. Lu <hongjiu.lu@intel.com>
  549. PR libffi/53982
  550. PR libffi/53973
  551. * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
  552. (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
  553. 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
  554. * configure: Regenerated.
  555. 2012-05-05 Nicolas Lelong
  556. * libffi.xcodeproj/project.pbxproj: Fixes.
  557. * README: Update for iOS builds.
  558. 2012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
  559. * configure.ac: Add Blackfin/sysv support
  560. * Makefile.am: Add Blackfin/sysv support
  561. * src/bfin/ffi.c: Add Blackfin/sysv support
  562. * src/bfin/ffitarget.h: Add Blackfin/sysv support
  563. 2012-04-11 Anthony Green <green@moxielogic.com>
  564. * Makefile.am (EXTRA_DIST): Add new script.
  565. * Makefile.in: Rebuilt.
  566. 2012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
  567. * generate-ios-source-and-headers.py,
  568. libffi.xcodeproj/project.pbxproj: Support a Mac static library via
  569. Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
  570. generation into an Xcode "run script" phase. Include both as
  571. Xcode build scripts. Don't always regenerate config files.
  572. 2012-04-10 Anthony Green <green@moxielogic.com>
  573. * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
  574. 2012-04-06 Anthony Green <green@moxielogic.com>
  575. * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
  576. * Makefile.in: Rebuilt.
  577. 2012-04-06 Mike Lewis <mikelikespie@gmail.com>
  578. * generate-ios-source-and-headers.py: New file.
  579. * libffi.xcodeproj/project.pbxproj: New file.
  580. * README: Update instructions on building iOS binary.
  581. * build-ios.sh: Delete.
  582. 2012-04-06 Anthony Green <green@moxielogic.com>
  583. * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
  584. compilers, then use it.
  585. 2012-04-06 H.J. Lu <hongjiu.lu@intel.com>
  586. * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
  587. 2012-04-06 Anthony Green <green@moxielogic.com>
  588. * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
  589. * testsuite/Makefile.in: Rebuilt.
  590. 2012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
  591. * include/ffi.h.in: Add missing trampoline table fields.
  592. * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
  593. in CNAME.
  594. * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
  595. 2012-03-29 Peter Rosin <peda@lysator.liu.se>
  596. * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
  597. generation, fix the ENDP label and remove the surplus third arg
  598. from the 'lea' insn.
  599. 2012-03-29 Peter Rosin <peda@lysator.liu.se>
  600. * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
  601. visible outside the PROC, so that ffi_closure_raw_THISCALL can see
  602. it. Also instruct the assembler to add a frame to the function.
  603. 2012-03-23 Peter Rosin <peda@lysator.liu.se>
  604. * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
  605. * Makefile.in: Rebuilt.
  606. * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
  607. to all data exports, when compiling libffi clients using MSVC.
  608. 2012-03-29 Peter Rosin <peda@lysator.liu.se>
  609. * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
  610. make it the default for MSVC.
  611. (FFI_TYPE_MS_STRUCT): New structure return convention.
  612. * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
  613. return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
  614. instead of an ordinary FFI_TYPE_STRUCT.
  615. (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
  616. (ffi_call): Likewise.
  617. (ffi_prep_incoming_args_SYSV): Likewise.
  618. (ffi_raw_call): Likewise.
  619. (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
  620. * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
  621. return a pointer to the result structure in eax and don't pop
  622. that pointer from the stack, the caller takes care of it.
  623. (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
  624. (ffi_closure_raw_SYSV): Likewise.
  625. 2012-03-22 Peter Rosin <peda@lysator.liu.se>
  626. * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
  627. assembly version with Intel syntax.
  628. * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
  629. 2012-03-23 Peter Rosin <peda@lysator.liu.se>
  630. * testsuite/libffi.call/ffitest.h: Provide abstration of
  631. __attribute__((fastcall)) in the form of a __FASTCALL__
  632. define. Define it to __fastcall for MSVC.
  633. * testsuite/libffi.call/fastthis1_win32.c: Use the above.
  634. * testsuite/libffi.call/fastthis2_win32.c: Likewise.
  635. * testsuite/libffi.call/fastthis3_win32.c: Likewise.
  636. * testsuite/libffi.call/strlen2_win32.c: Likewise.
  637. * testsuite/libffi.call/struct1_win32.c: Likewise.
  638. * testsuite/libffi.call/struct2_win32.c: Likewise.
  639. 2012-03-22 Peter Rosin <peda@lysator.liu.se>
  640. * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
  641. frame on function entry, MASM adds one automatically.
  642. 2012-03-22 Peter Rosin <peda@lysator.liu.se>
  643. * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
  644. bits in the MSVC headers.
  645. 2012-03-22 Peter Rosin <peda@lysator.liu.se>
  646. * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
  647. with no declarations after statements.
  648. * testsuite/libffi.call/cls_16byte.c: Likewise.
  649. * testsuite/libffi.call/cls_18byte.c: Likewise.
  650. * testsuite/libffi.call/cls_19byte.c: Likewise.
  651. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  652. * testsuite/libffi.call/cls_20byte.c: Likewise.
  653. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  654. * testsuite/libffi.call/cls_24byte.c: Likewise.
  655. * testsuite/libffi.call/cls_2byte.c: Likewise.
  656. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  657. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  658. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  659. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  660. * testsuite/libffi.call/cls_4byte.c: Likewise.
  661. * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
  662. * testsuite/libffi.call/cls_5byte.c: Likewise.
  663. * testsuite/libffi.call/cls_64byte.c: Likewise.
  664. * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
  665. * testsuite/libffi.call/cls_6byte.c: Likewise.
  666. * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
  667. * testsuite/libffi.call/cls_7byte.c: Likewise.
  668. * testsuite/libffi.call/cls_8byte.c: Likewise.
  669. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  670. * testsuite/libffi.call/cls_9byte2.c: Likewise.
  671. * testsuite/libffi.call/cls_align_double.c: Likewise.
  672. * testsuite/libffi.call/cls_align_float.c: Likewise.
  673. * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
  674. * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
  675. * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
  676. * testsuite/libffi.call/cls_align_pointer.c: Likewise.
  677. * testsuite/libffi.call/cls_align_sint16.c: Likewise.
  678. * testsuite/libffi.call/cls_align_sint32.c: Likewise.
  679. * testsuite/libffi.call/cls_align_sint64.c: Likewise.
  680. * testsuite/libffi.call/cls_align_uint16.c: Likewise.
  681. * testsuite/libffi.call/cls_align_uint32.c: Likewise.
  682. * testsuite/libffi.call/cls_align_uint64.c: Likewise.
  683. * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
  684. * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
  685. * testsuite/libffi.call/err_bad_typedef.c: Likewise.
  686. * testsuite/libffi.call/huge_struct.c: Likewise.
  687. * testsuite/libffi.call/nested_struct.c: Likewise.
  688. * testsuite/libffi.call/nested_struct1.c: Likewise.
  689. * testsuite/libffi.call/nested_struct10.c: Likewise.
  690. * testsuite/libffi.call/nested_struct2.c: Likewise.
  691. * testsuite/libffi.call/nested_struct3.c: Likewise.
  692. * testsuite/libffi.call/nested_struct4.c: Likewise.
  693. * testsuite/libffi.call/nested_struct5.c: Likewise.
  694. * testsuite/libffi.call/nested_struct6.c: Likewise.
  695. * testsuite/libffi.call/nested_struct7.c: Likewise.
  696. * testsuite/libffi.call/nested_struct8.c: Likewise.
  697. * testsuite/libffi.call/nested_struct9.c: Likewise.
  698. * testsuite/libffi.call/stret_large.c: Likewise.
  699. * testsuite/libffi.call/stret_large2.c: Likewise.
  700. * testsuite/libffi.call/stret_medium.c: Likewise.
  701. * testsuite/libffi.call/stret_medium2.c: Likewise.
  702. * testsuite/libffi.call/struct1.c: Likewise.
  703. * testsuite/libffi.call/struct1_win32.c: Likewise.
  704. * testsuite/libffi.call/struct2.c: Likewise.
  705. * testsuite/libffi.call/struct2_win32.c: Likewise.
  706. * testsuite/libffi.call/struct3.c: Likewise.
  707. * testsuite/libffi.call/struct4.c: Likewise.
  708. * testsuite/libffi.call/struct5.c: Likewise.
  709. * testsuite/libffi.call/struct6.c: Likewise.
  710. * testsuite/libffi.call/struct7.c: Likewise.
  711. * testsuite/libffi.call/struct8.c: Likewise.
  712. * testsuite/libffi.call/struct9.c: Likewise.
  713. * testsuite/libffi.call/testclosure.c: Likewise.
  714. 2012-03-21 Peter Rosin <peda@lysator.liu.se>
  715. * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
  716. printing doubles (%lf is for long doubles).
  717. (main): Likewise.
  718. 2012-03-21 Peter Rosin <peda@lysator.liu.se>
  719. * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
  720. (set_ld_library_path_env_vars): Add the library search dir to PATH
  721. (and save PATH for later).
  722. (restore_ld_library_path_env_vars): Restore PATH.
  723. 2012-03-20 Peter Rosin <peda@lysator.liu.se>
  724. * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
  725. * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
  726. visible outside the PROC, so that ffi_closure_THISCALL can see it.
  727. 2012-03-20 Peter Rosin <peda@lysator.liu.se>
  728. * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
  729. * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
  730. visible outside the PROC, so that ffi_closure_THISCALL can see it.
  731. 2012-03-19 Alan Hourihane <alanh@fairlite.co.uk>
  732. * src/m68k/ffi.c: Add MINT support.
  733. * src/m68k/sysv.S: Ditto.
  734. 2012-03-19 chennam <csit@axway.com>
  735. * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
  736. support.
  737. 2012-03-06 Chung-Lin Tang <cltang@codesourcery.com>
  738. * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
  739. ffi_call_VFP().
  740. (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
  741. ffi_closure_VFP.
  742. * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
  743. 2012-04-02 Peter Bergner <bergner@vnet.ibm.com>
  744. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
  745. Silence casting pointer to integer of different size warning.
  746. Delete goto to previously deleted label.
  747. (ffi_call): Silence possibly undefined warning.
  748. (ffi_closure_helper_SYSV): Declare variable type.
  749. 2012-04-02 Peter Rosin <peda@lysator.liu.se>
  750. * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
  751. value in the Intel version as is already done for the AT&T version.
  752. (ffi_closure_SYSV): Likewise.
  753. (ffi_closure_raw_SYSV): Likewise.
  754. (ffi_closure_STDCALL): Likewise.
  755. 2012-03-13 Kaz Kojima <kkojima@gcc.gnu.org>
  756. * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
  757. just return FFI_BAD_ABI when things are wrong.
  758. * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
  759. 2012-03-09 David Edelsohn <dje.gcc@gmail.com>
  760. * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
  761. change to return value of ffi_closure_helper_DARWIN and load type
  762. from return type.
  763. 2012-03-03 H.J. Lu <hongjiu.lu@intel.com>
  764. * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
  765. long.
  766. (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
  767. (ffi_closure_unix64_inner): Cast return pointer to unsigned long
  768. first.
  769. * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
  770. (ffi_arg): Set to unsigned long long for x32.
  771. (ffi_sarg): Set to long long for x32.
  772. 2012-03-03 H.J. Lu <hongjiu.lu@intel.com>
  773. * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
  774. 2012-03-03 Andoni Morales Alastruey <ylatuya@gmail.com>
  775. * configure.ac: Add -no-undefined for both 32- and 64-bit x86
  776. windows-like hosts.
  777. * configure: Rebuilt.
  778. 2012-02-27 Mikael Pettersson <mikpe@it.uu.se>
  779. PR libffi/52223
  780. * Makefile.am (FLAGS_TO_PASS): Define.
  781. * Makefile.in: Regenerate.
  782. 2012-02-23 Anthony Green <green@moxielogic.com>
  783. * src/*/ffitarget.h: Ensure that users never include ffitarget.h
  784. directly.
  785. 2012-02-23 Kai Tietz <ktietz@redhat.com>
  786. PR libffi/52221
  787. * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
  788. prototype.
  789. (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
  790. thiscall-convention.
  791. (ffi_raw_call): Use ffi_prep_args_raw.
  792. * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
  793. implementation for stub.
  794. 2012-02-10 Kai Tietz <ktietz@redhat.com>
  795. * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
  796. windows target.
  797. * configure: Regenerated.
  798. 2012-02-08 Kai Tietz <ktietz@redhat.com>
  799. * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
  800. also FFI_THISCALL.
  801. * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
  802. (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
  803. (ffi_prep_closure_loc): Add FFI_THISCALL support.
  804. * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
  805. * src/x86/win32.S (ffi_closure_THISCALL): New closure code
  806. for thiscall-calling convention.
  807. * testsuite/libffi.call/closure_thiscall.c: New test.
  808. 2012-01-28 Kai Tietz <ktietz@redhat.com>
  809. * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
  810. argument to prototype for specify calling-convention.
  811. (ffi_call): Add support for stdcall/thiscall convention.
  812. (ffi_prep_args): Likewise.
  813. (ffi_raw_call): Likewise.
  814. * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
  815. FFI_FASTCALL.
  816. * src/x86/win32.S (_ffi_call_win32): Add support for
  817. fastcall/thiscall calling-convention calls.
  818. * testsuite/libffi.call/fastthis1_win32.c: New test.
  819. * testsuite/libffi.call/fastthis2_win32.c: New test.
  820. * testsuite/libffi.call/fastthis3_win32.c: New test.
  821. * testsuite/libffi.call/strlen2_win32.c: New test.
  822. * testsuite/libffi.call/many2_win32.c: New test.
  823. * testsuite/libffi.call/struct1_win32.c: New test.
  824. * testsuite/libffi.call/struct2_win32.c: New test.
  825. 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
  826. * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
  827. 2012-01-23 Anthony Green <green@moxielogic.com>
  828. Chris Young <cdyoung@ntlworld.com>
  829. * configure.ac: Add Amiga support.
  830. * configure: Rebuilt.
  831. 2012-01-23 Dmitry Nadezhin <dmitry.nadezhin@gmail.com>
  832. * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
  833. 2012-01-23 Andreas Schwab <schwab@linux-m68k.org>
  834. * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
  835. mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
  836. 2012-01-19 Jakub Jelinek <jakub@redhat.com>
  837. PR rtl-optimization/48496
  838. * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
  839. 2012-01-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  840. * configure.ac (i?86-*-*): Set TARGET to X86_64.
  841. * configure: Regenerate.
  842. 2011-12-07 Andrew Pinski <apinski@cavium.com>
  843. PR libffi/50051
  844. * src/mips/n32.S: Add ".set mips4".
  845. 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
  846. * configure: Regenerate.
  847. 2011-11-12 David Gilbert <david.gilbert@linaro.org>
  848. * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
  849. man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
  850. man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
  851. src/cris/ffi.c, src/prep_cif.c,
  852. testsuite/libffi.call/cls_double_va.c,
  853. testsuite/libffi.call/cls_longdouble_va.c,
  854. testsuite/libffi.call/float_va.c: Many changes to support variadic
  855. function calls.
  856. 2011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
  857. * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
  858. src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
  859. softfloat powerpc variants.
  860. 2011-11-12 Petr Salinger <Petr.Salinger@seznam.cz>
  861. * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
  862. * configure: Rebuilt.
  863. 2011-11-12 Timothy Wall <twall@users.sf.net>
  864. * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
  865. alignment of 4 for wince on ARM.
  866. 2011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
  867. Anthony Green <green@moxielogic.com>
  868. * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
  869. instructions (not available on some cores, like the PPC440).
  870. 2011-11-12 Kimura Wataru <kimuraw@i.nifty.jp>
  871. * m4/ax_enable_builddir: Change from string comparison to numeric
  872. comparison for wc output.
  873. * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
  874. X 10.7.
  875. * configure: Rebuilt.
  876. 2011-11-12 Anthony Green <green@moxielogic.com>
  877. * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
  878. files with debug info.
  879. * Makefile.in: Rebuilt.
  880. 2011-11-12 Jasper Lievisse Adriaanse <jasper@openbsd.org>
  881. * README: Update list of supported OpenBSD systems.
  882. 2011-11-12 Anthony Green <green@moxielogic.com>
  883. * libtool-version: Update.
  884. * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
  885. FFI_DEBUG.
  886. (libffi_la_SOURCES): Remove src/debug.c
  887. (EXTRA_DIST): Add src/debug.c
  888. * Makefile.in: Rebuilt.
  889. * README: Update for 3.0.11.
  890. 2011-11-10 Richard Henderson <rth@redhat.com>
  891. * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
  892. * configure, aclocal.m4: Rebuild.
  893. 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
  894. PR libffi/49594
  895. * src/powerpc/darwin_closure.S (stubs): Make the stub binding
  896. helper reference track the architecture pointer size.
  897. 2011-08-25 Andrew Haley <aph@redhat.com>
  898. * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
  899. instructions.
  900. * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
  901. 2011-07-11 Andrew Haley <aph@redhat.com>
  902. * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
  903. 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  904. * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
  905. * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
  906. 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  907. PR libffi/46660
  908. * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
  909. mips-sgi-irix6*.
  910. * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
  911. 2011-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  912. * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
  913. PRId8 instead of %hhu, %hhd.
  914. * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
  915. PRIu8): Define.
  916. [__sgi__] (PRId8, PRIu8): Define.
  917. 2011-04-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  918. * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
  919. Define.
  920. Use them to handle ELF vs. ECOFF differences.
  921. [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
  922. 2011-03-30 Timothy Wall <twall@users.sf.net>
  923. * src/powerpc/darwin.S: Fix unknown FDE encoding.
  924. * src/powerpc/darwin_closure.S: ditto.
  925. 2011-02-25 Anthony Green <green@moxielogic.com>
  926. * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
  927. 32-bit ABIs.
  928. 2011-02-15 Anthony Green <green@moxielogic.com>
  929. * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
  930. * configure: Rebuilt.
  931. 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  932. * configure: Regenerate.
  933. 2011-02-13 Anthony Green <green@moxielogic.com>
  934. * include/ffi_common.h (UNLIKELY, LIKELY): Define.
  935. * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
  936. * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
  937. * src/prep_cif.c (initialize_aggregate): Convert assertion into
  938. FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
  939. * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
  940. just return FFI_BAD_ABI when things are wrong.
  941. * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
  942. * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
  943. * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
  944. * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
  945. * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
  946. 2011-02-11 Anthony Green <green@moxielogic.com>
  947. * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
  948. just return FFI_BAD_ABI when things are wrong.
  949. 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
  950. * src/sparc/v9.S (STACKFRAME): Bump to 176.
  951. 2011-02-09 Stuart Shelton <srcshelton@gmail.com>
  952. http://bugs.gentoo.org/show_bug.cgi?id=286911
  953. * src/mips/ffitarget.h: Clean up error messages.
  954. * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
  955. ffi_raw*.
  956. * include/ffi.h.in: Add pragma for SGI compiler.
  957. 2011-02-09 Anthony Green <green@moxielogic.com>
  958. * configure.ac: Add powerpc64-*-darwin* support.
  959. 2011-02-09 Anthony Green <green@moxielogic.com>
  960. * README: Mention Interix.
  961. 2011-02-09 Jonathan Callen <abcd@gentoo.org>
  962. * configure.ac: Add Interix to win32/cygwin/mingw case.
  963. * configure: Ditto.
  964. * src/closures.c: Treat Interix like Cygwin, instead of as a
  965. generic win32.
  966. 2011-02-09 Anthony Green <green@moxielogic.com>
  967. * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
  968. * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
  969. * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
  970. (ffi_prep_closure_loc): Check for bad ABI.
  971. * src/prep_cif.c (UNLIKELY, LIKELY): Define.
  972. (initialize_aggregate): Check for bad types.
  973. 2011-02-09 Landon Fuller <landonf@plausible.coop>
  974. * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
  975. src/arm/trampoline.S.
  976. (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
  977. * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
  978. * src/arm/ffi.c (ffi_trampoline_table)
  979. (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
  980. (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
  981. (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
  982. (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
  983. Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
  984. (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
  985. separately.
  986. * src/arm/sysv.S: Handle Apple iOS host.
  987. * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
  988. * build-ios.sh: New file.
  989. * fficonfig.h.in, configure, Makefile.in: Rebuilt.
  990. * README: Mention ARM iOS.
  991. 2011-02-08 Oren Held <orenhe@il.ibm.com>
  992. * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
  993. redefinition of mallinfo on HP-UX.
  994. 2011-02-08 Ginn Chen <ginn.chen@oracle.com>
  995. * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
  996. aggregate return ABI. Flush cache.
  997. (ffi_prep_closure_loc): Flush cache.
  998. 2011-02-11 Anthony Green <green@moxielogic.com>
  999. From Tom Honermann <tom.honermann@oracle.com>:
  1000. * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
  1001. AIX. Declare .ffi_prep_args. Insert nops after branch
  1002. instructions so that the AIX linker can insert TOC reload
  1003. instructions.
  1004. * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
  1005. 2011-02-08 Ed <ed@kdtc.net>
  1006. * src/powerpc/asm.h: Fix grammar nit in comment.
  1007. 2011-02-08 Uli Link <ul.mcamafia@linkitup.de>
  1008. * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
  1009. 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1010. PR libffi/46661
  1011. * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
  1012. uintptr_t first.
  1013. * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
  1014. 2011-02-08 Rafael Avila de Espindola <respindola@mozilla.com>
  1015. * configure.ac: Fix x86 test for pc related relocs.
  1016. * configure: Rebuilt.
  1017. 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
  1018. * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
  1019. Handle case when CPU variant does not have long double support.
  1020. * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
  1021. and cores with soft floating point.
  1022. 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
  1023. * configure.ac: Add mips*-*-rtems* support.
  1024. * configure: Regenerate.
  1025. * src/mips/ffitarget.h: Ensure needed constants are available
  1026. for targets which do not have sgidefs.h.
  1027. 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
  1028. PR target/40125
  1029. * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
  1030. * configure: Regenerate.
  1031. 2010-12-18 Iain Sandoe <iains@gcc.gnu.org>
  1032. PR libffi/29152
  1033. PR libffi/42378
  1034. * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
  1035. update comments.
  1036. * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
  1037. (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
  1038. * src/powerpc/darwin.S: Provide Darwin64 implementation,
  1039. update comments.
  1040. * src/powerpc/ffi_darwin.c: Likewise.
  1041. 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1042. * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
  1043. backslashes.
  1044. (libffi_cv_as_string_pseudo_op): Likewise.
  1045. * configure: Regenerate.
  1046. 2010-12-03 Chung-Lin Tang <cltang@codesourcery.com>
  1047. * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
  1048. (ffi_closure_VFP): Same.
  1049. (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
  1050. directive.
  1051. 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1052. * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
  1053. (PRIuPTR): Define.
  1054. 2010-11-29 Richard Henderson <rth@redhat.com>
  1055. Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1056. * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
  1057. (.eh_frame): Use FDE_ENCODING.
  1058. (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
  1059. 2010-11-22 Jacek Caban <jacek@codeweavers.com>
  1060. * configure.ac: Check for symbol underscores on mingw-w64.
  1061. * configure: Rebuilt.
  1062. * src/x86/win64.S: Correctly access extern symbols in respect to
  1063. underscores.
  1064. 2010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1065. * testsuite/lib/libffi-dg.exp: Rename ...
  1066. * testsuite/lib/libffi.exp: ... to this.
  1067. * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
  1068. * libffi/testsuite/libffi.special/special.exp: Likewise.
  1069. 2010-10-28 Chung-Lin Tang <cltang@codesourcery.com>
  1070. * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
  1071. code, new parameter, and return value. Update comments.
  1072. (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
  1073. call to layout_vfp_args().
  1074. (ffi_call_SYSV): Update declaration.
  1075. (ffi_call_VFP): New declaration.
  1076. (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
  1077. when ABI is FFI_VFP.
  1078. (ffi_closure_VFP): New declaration.
  1079. (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
  1080. ffi_prep_incoming_args_SYSV().
  1081. (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
  1082. case handling.
  1083. (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
  1084. construction under VFP hard-float.
  1085. (rec_vfp_type_p): New function.
  1086. (vfp_type_p): Same.
  1087. (place_vfp_arg): Same.
  1088. (layout_vfp_args): Same.
  1089. * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
  1090. based on __ARM_PCS_VFP.
  1091. (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
  1092. fields.
  1093. (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
  1094. (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
  1095. * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
  1096. direct call. Move function pointer load upwards.
  1097. (ffi_call_VFP): New function.
  1098. (ffi_closure_VFP): Same.
  1099. * testsuite/lib/libffi-dg.exp (check-flags): New function.
  1100. (dg-skip-if): New function.
  1101. * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
  1102. and compiler options include -mfloat-abi=hard.
  1103. * testsuite/libffi.call/cls_longdouble_va.c: Same.
  1104. 2010-10-01 Jakub Jelinek <jakub@redhat.com>
  1105. PR libffi/45677
  1106. * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
  1107. a multiple of 8.
  1108. * testsuite/libffi.call/many2.c: New test.
  1109. 2010-08-20 Mark Wielaard <mjw@redhat.com>
  1110. * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
  1111. returns NULL.
  1112. 2010-08-09 Andreas Tobler <andreast@fgznet.ch>
  1113. * configure.ac: Add target powerpc64-*-freebsd*.
  1114. * configure: Regenerate.
  1115. * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
  1116. -mlong-double-128 only to linux targets.
  1117. * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
  1118. * testsuite/libffi.call/cls_longdouble.c: Likewise.
  1119. * testsuite/libffi.call/huge_struct.c: Likewise.
  1120. 2010-08-05 Dan Witte <dwitte@mozilla.com>
  1121. * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
  1122. debug CRT when --enable-debug is given.
  1123. * configure.ac: Define it.
  1124. * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
  1125. 2010-08-04 Dan Witte <dwitte@mozilla.com>
  1126. * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
  1127. platforms.
  1128. * src/x86/ffi.c: Remove redundant ifdef checks.
  1129. * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
  1130. for X86_ANY so return value space doesn't get added twice.
  1131. 2010-08-03 Neil Rashbrooke <neil@parkwaycc.co.uk>
  1132. * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
  1133. 2010-07-22 Dan Witte <dwitte@mozilla.com>
  1134. * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
  1135. * src/prep_cif.c: Fix ABI assertion.
  1136. * src/cris/ffi.c: Ditto.
  1137. 2010-07-10 Evan Phoenix <evan@fallingsnow.net>
  1138. * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
  1139. 2010-07-07 Dan Horák <dan@danny.cz>
  1140. * include/ffi.h.in: Protect #define with #ifndef.
  1141. * src/powerpc/ffitarget.h: Ditto.
  1142. * src/s390/ffitarget.h: Ditto.
  1143. * src/sparc/ffitarget.h: Ditto.
  1144. 2010-07-07 Neil Roberts <neil@linux.intel.com>
  1145. * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
  1146. 16-bytes.
  1147. 2010-07-02 Jakub Jelinek <jakub@redhat.com>
  1148. * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
  1149. * Makefile.in: Regenerated.
  1150. 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1151. * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
  1152. output, too.
  1153. (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
  1154. (libffi_cv_as_string_pseudo_op): Check for .string.
  1155. * configure: Regenerate.
  1156. * fficonfig.h.in: Regenerate.
  1157. * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
  1158. 2010-05-11 Dan Witte <dwitte@mozilla.com>
  1159. * doc/libffi.tex: Document previous change.
  1160. 2010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
  1161. * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
  1162. 2010-05-05 Michael Kohler <michaelkohler@live.com>
  1163. * src/dlmalloc.c (dlfree): Fix spelling.
  1164. * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
  1165. * configure.ac: Ditto.
  1166. * configure: Rebuilt.
  1167. 2010-04-13 Dan Witte <dwitte@mozilla.com>
  1168. * msvcc.sh: Build with -W3 instead of -Wall.
  1169. * src/powerpc/ffi_darwin.c: Remove build warnings.
  1170. * src/x86/ffi.c: Ditto.
  1171. * src/x86/ffitarget.h: Ditto.
  1172. 2010-04-12 Dan Witte <dwitte@mozilla.com>
  1173. Walter Meinl <wuno@lsvw.de>
  1174. * configure.ac: Add OS/2 support.
  1175. * configure: Rebuilt.
  1176. * src/closures.c: Ditto.
  1177. * src/dlmalloc.c: Ditto.
  1178. * src/x86/win32.S: Ditto.
  1179. 2010-04-07 Jakub Jelinek <jakub@redhat.com>
  1180. * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
  1181. 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1182. * Makefile.in: Regenerate.
  1183. * aclocal.m4: Regenerate.
  1184. * include/Makefile.in: Regenerate.
  1185. * man/Makefile.in: Regenerate.
  1186. * testsuite/Makefile.in: Regenerate.
  1187. 2010-03-30 Dan Witte <dwitte@mozilla.com>
  1188. * msvcc.sh: Disable build warnings.
  1189. * README (tested): Clarify windows build procedure.
  1190. 2010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1191. * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
  1192. * configure: Regenerate.
  1193. * fficonfig.h.in: Regenerate.
  1194. * libffi/src/x86/unix64.S (.eh_frame)
  1195. [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
  1196. 2010-03-14 Matthias Klose <doko@ubuntu.com>
  1197. * src/x86/ffi64.c: Fix typo in comment.
  1198. * src/x86/ffi.c: Use /* ... */ comment style.
  1199. 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1200. * doc/libffi.texi (The Closure API): Fix typo.
  1201. * doc/libffi.info: Remove.
  1202. 2010-02-15 Matthias Klose <doko@ubuntu.com>
  1203. * src/arm/sysv.S (__ARM_ARCH__): Define for processor
  1204. __ARM_ARCH_7EM__.
  1205. 2010-01-15 Anthony Green <green@redhat.com>
  1206. * README: Add notes on building with Microsoft Visual C++.
  1207. 2010-01-15 Daniel Witte <dwitte@mozilla.com>
  1208. * msvcc.sh: New file.
  1209. * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
  1210. * src/x86/ffi.c: Tweak function declaration and remove excess
  1211. parens.
  1212. * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
  1213. ffi_closure.
  1214. * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
  1215. function ffi_call_win32 on X86_WIN32.
  1216. * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
  1217. (ffi_call_STDCALL): Remove.
  1218. * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
  1219. to ffi_prep_cif_machdep for x86.
  1220. * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
  1221. 2010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
  1222. * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
  1223. Sun Studio compiler compatibility.
  1224. 2010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
  1225. * doc/libffi.texi: Add closure example.
  1226. 2010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1227. PR libffi/40701
  1228. * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
  1229. PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
  1230. * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
  1231. alpha*-dec-osf*.
  1232. * testsuite/libffi.call/cls_align_uint64.c: Likewise.
  1233. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  1234. * testsuite/libffi.call/return_ll1.c: Likewise.
  1235. * testsuite/libffi.call/stret_medium2.c: Likewise.
  1236. * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
  1237. MAP_FAILED to char *.
  1238. 2010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1239. * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
  1240. 2009-12-31 Anthony Green <green@redhat.com>
  1241. * README: Update for libffi 3.0.9.
  1242. 2009-12-27 Matthias Klose <doko@ubuntu.com>
  1243. * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
  1244. appropriate.
  1245. * configure: Rebuilt.
  1246. 2009-12-26 Anthony Green <green@redhat.com>
  1247. * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
  1248. avr32*-*-*.
  1249. * testsuite/libffi.call/cls_double_va.c: Ditto.
  1250. 2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
  1251. * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
  1252. and inttypes.h.
  1253. * testsuite/libffi.special/unwindtest.cc: Ditto.
  1254. 2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
  1255. * configure.ac: Add amd64-*-openbsd*.
  1256. * configure: Rebuilt.
  1257. * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
  1258. openbsd programs with -lpthread.
  1259. 2009-12-26 Anthony Green <green@redhat.com>
  1260. * testsuite/libffi.call/cls_double_va.c,
  1261. testsuite/libffi.call/cls_longdouble.c,
  1262. testsuite/libffi.call/cls_longdouble_va.c,
  1263. testsuite/libffi.call/cls_pointer.c,
  1264. testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
  1265. mips*-*-* and arm*-*-*.
  1266. * testsuite/libffi.call/cls_align_longdouble_split.c,
  1267. testsuite/libffi.call/cls_align_longdouble_split2.c,
  1268. testsuite/libffi.call/stret_medium2.c,
  1269. testsuite/libffi.call/stret_medium.c,
  1270. testsuite/libffi.call/stret_large.c,
  1271. testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
  1272. 2009-12-31 Kay Tietz <ktietz70@googlemail.com>
  1273. * testsuite/libffi.call/ffitest.h,
  1274. testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
  1275. definitions.
  1276. 2009-12-31 Carlo Bramini <carlo.bramix@libero.it>
  1277. * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
  1278. * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
  1279. * configure: Rebuilt.
  1280. * Makefile.in: Rebuilt.
  1281. 2009-12-31 Anthony Green <green@redhat.com>
  1282. Blake Chaffin.
  1283. * testsuite/libffi.call/huge_struct.c: New test case from Blake
  1284. Chaffin @ Apple.
  1285. 2009-12-28 David Edelsohn <edelsohn@gnu.org>
  1286. * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
  1287. local variables.
  1288. (aix_adjust_aggregate_sizes): New function.
  1289. (ffi_prep_cif_machdep): Call it.
  1290. 2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
  1291. * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
  1292. * configure: Regenerate.
  1293. * fficonfig.h.in: Likewise.
  1294. * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
  1295. Solaris/x86.
  1296. 2009-12-26 Andreas Schwab <schwab@linux-m68k.org>
  1297. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
  1298. when a float arguments is passed in memory.
  1299. (ffi_closure_helper_SYSV): Mark general registers as used up when
  1300. a 64bit or soft-float long double argument is passed in memory.
  1301. 2009-12-25 Matthias Klose <doko@ubuntu.com>
  1302. * man/ffi_call.3: Fix #include in examples.
  1303. * doc/libffi.texi: Add dircategory.
  1304. 2009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
  1305. * include/ffi.h.in: Placed '__GNUC__' ifdef around
  1306. '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
  1307. IRIX MIPSPro c99.
  1308. * include/ffi_common.h: Added '__sgi' define to non
  1309. '__attribute__((__mode__()))' integer typedefs.
  1310. * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
  1311. ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
  1312. (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
  1313. FFI_LONGDOUBLE support and alignment(N32 only).
  1314. * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
  1315. fixed non '__attribute__((__mode__()))' integer typedefs.
  1316. * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
  1317. since they are Linux/GNU Assembler specific.
  1318. 2009-12-25 Bradley Smith <brad@brad-smith.co.uk>
  1319. * configure.ac, Makefile.am, src/avr32/ffi.c,
  1320. src/avr32/ffitarget.h,
  1321. src/avr32/sysv.S: Add AVR32 port.
  1322. * configure, Makefile.in: Rebuilt.
  1323. 2009-12-21 Andreas Tobler <a.tobler@schweiz.org>
  1324. * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
  1325. * configure: Regenerate.
  1326. 2009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1327. * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
  1328. 2009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1329. * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
  1330. type on HP-UX.
  1331. 2012-02-13 Kai Tietz <ktietz@redhat.com>
  1332. PR libffi/52221
  1333. * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
  1334. support for X86_WIN32.
  1335. (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
  1336. 2009-12-11 Eric Botcazou <ebotcazou@adacore.com>
  1337. * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
  1338. double' arguments.
  1339. 2009-12-11 Eric Botcazou <ebotcazou@adacore.com>
  1340. * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
  1341. 2009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1342. PR libffi/40700
  1343. * src/closures.c [X86_64 && __sun__ && __svr4__]
  1344. (FFI_MMAP_EXEC_WRIT): Define.
  1345. 2009-12-08 David Daney <ddaney@caviumnetworks.com>
  1346. * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
  1347. * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
  1348. * testsuite/libffi.call/stret_large.c: Same.
  1349. * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
  1350. * testsuite/libffi.call/stret_large2.c: Same.
  1351. * testsuite/libffi.call/stret_medium2.c: Same.
  1352. 2009-12-07 David Edelsohn <edelsohn@gnu.org>
  1353. * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
  1354. typo.
  1355. 2009-12-05 David Edelsohn <edelsohn@gnu.org>
  1356. * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
  1357. code.
  1358. * src/powerpc/aix_closure.S: Same.
  1359. 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1360. * Makefile.in: Regenerate.
  1361. * configure: Regenerate.
  1362. * include/Makefile.in: Regenerate.
  1363. * man/Makefile.in: Regenerate.
  1364. * testsuite/Makefile.in: Regenerate.
  1365. 2009-12-04 David Edelsohn <edelsohn@gnu.org>
  1366. * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
  1367. linux64_closure.S.
  1368. 2009-12-04 Uros Bizjak <ubizjak@gmail.com>
  1369. PR libffi/41908
  1370. * src/x86/ffi64.c (classify_argument): Update from
  1371. gcc/config/i386/i386.c.
  1372. (ffi_closure_unix64_inner): Do not use the address of two consecutive
  1373. SSE registers directly.
  1374. * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
  1375. for x86_64 linux targets.
  1376. 2009-12-04 David Edelsohn <edelsohn@gnu.org>
  1377. * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
  1378. pfr for long double split between fpr13 and stack.
  1379. 2009-12-03 David Edelsohn <edelsohn@gnu.org>
  1380. * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
  1381. fparg_count twice for long double.
  1382. 2009-12-03 David Edelsohn <edelsohn@gnu.org>
  1383. PR libffi/42243
  1384. * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
  1385. 2009-12-03 Uros Bizjak <ubizjak@gmail.com>
  1386. * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
  1387. Remove xfails for x86 linux targets.
  1388. 2009-12-02 David Edelsohn <edelsohn@gnu.org>
  1389. * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
  1390. case.
  1391. 2009-12-01 David Edelsohn <edelsohn@gnu.org>
  1392. * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
  1393. register usage. Call ffi_prep_args directly. Add long double
  1394. return value support.
  1395. * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
  1396. applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
  1397. Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
  1398. (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
  1399. mode.
  1400. (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
  1401. into case.
  1402. * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
  1403. Allocate result area between params and FPRs.
  1404. 2009-11-30 David Edelsohn <edelsohn@gnu.org>
  1405. PR target/35484
  1406. * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
  1407. AIX64.
  1408. * src/powerpc/aix.S: Implement AIX64 version.
  1409. * src/powerpc/aix_closure.S: Implement AIX64 version.
  1410. (ffi_closure_ASM): Use extsb, lha and displament addresses.
  1411. * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
  1412. support.
  1413. (ffi_prep_cif_machdep): Same.
  1414. (ffi_call): Same.
  1415. (ffi_closure_helper_DARWIN): Same.
  1416. 2009-11-02 Andreas Tobler <a.tobler@schweiz.org>
  1417. PR libffi/41908
  1418. * testsuite/libffi.call/testclosure.c: New test.
  1419. 2009-09-28 Kai Tietz <kai.tietz@onevision.com>
  1420. * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
  1421. assembly version use of ___chkstk.
  1422. 2009-09-23 Matthias Klose <doko@ubuntu.com>
  1423. PR libffi/40242, PR libffi/41443
  1424. * src/arm/sysv.S (__ARM_ARCH__): Define for processors
  1425. __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
  1426. __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
  1427. Change the conditionals to __SOFTFP__ || __ARM_EABI__
  1428. for -mfloat-abi=softfp to work.
  1429. 2009-09-17 Loren J. Rittle <ljrittle@acm.org>
  1430. PR testsuite/32843 (strikes again)
  1431. * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
  1432. enable proper extension on char and short.
  1433. 2009-09-15 David Daney <ddaney@caviumnetworks.com>
  1434. * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
  1435. handling for FFI_TYPE_POINTER.
  1436. * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
  1437. FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
  1438. FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
  1439. FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
  1440. (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
  1441. (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
  1442. * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
  1443. structure and pointer returns.
  1444. (ffi_closure_N32): Add handling for pointer returns.
  1445. * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
  1446. calc_n32_return_struct_flags): Handle soft-float.
  1447. (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
  1448. (ffi_call_N32): Declare proper argument types.
  1449. (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
  1450. soft-float.
  1451. 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1452. * configure.ac (AC_PREREQ): Bump to 2.64.
  1453. 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1454. * Makefile.am (install-html, install-pdf): Remove.
  1455. * Makefile.in: Regenerate.
  1456. * Makefile.in: Regenerate.
  1457. * aclocal.m4: Regenerate.
  1458. * configure: Regenerate.
  1459. * fficonfig.h.in: Regenerate.
  1460. * include/Makefile.in: Regenerate.
  1461. * man/Makefile.in: Regenerate.
  1462. * testsuite/Makefile.in: Regenerate.
  1463. 2011-08-22 Jasper Lievisse Adriaanse <jasper@openbsd.org>
  1464. * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
  1465. * configure: Rebuilt.
  1466. 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1467. * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
  1468. 2009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
  1469. PR libffi/40807
  1470. * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
  1471. return types for X86_WIN32.
  1472. * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
  1473. (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
  1474. _ffi_closure_STDCALL): Likewise.
  1475. * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
  1476. (dlmmap, dlmunmap): Also use these functions on Cygwin.
  1477. 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
  1478. PR testsuite/40699
  1479. PR testsuite/40707
  1480. PR testsuite/40709
  1481. * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
  1482. 2009-06-30 commits.
  1483. 2009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  1484. * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
  1485. to "" before adding paths. (This reinstates an assignment that
  1486. was removed by my 2009-06-30 commit, but changes the initial
  1487. value from "." to "".)
  1488. 2009-07-01 H.J. Lu <hongjiu.lu@intel.com>
  1489. PR testsuite/40601
  1490. * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
  1491. gccdir. Adjust ld_library_path for gcc only if gccdir isn't
  1492. empty.
  1493. 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
  1494. * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
  1495. to ld_library_path. Use add_path. Add just find_libgcc_s
  1496. to ld_library_path, not every libgcc multilib directory.
  1497. 2009-06-16 Wim Lewis <wiml@hhhh.org>
  1498. * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
  1499. supposed to be callee-saved.
  1500. * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
  1501. return buffer for odd-size structs.
  1502. 2009-06-16 Andreas Tobler <a.tobler@schweiz.org>
  1503. PR libffi/40444
  1504. * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
  1505. allow_stack_execute for Darwin.
  1506. 2009-06-16 Andrew Haley <aph@redhat.com>
  1507. * configure.ac (TARGETDIR): Add missing blank lines.
  1508. * configure: Regenerate.
  1509. 2009-06-16 Andrew Haley <aph@redhat.com>
  1510. * testsuite/libffi.call/cls_align_sint64.c,
  1511. testsuite/libffi.call/cls_align_uint64.c,
  1512. testsuite/libffi.call/cls_longdouble_va.c,
  1513. testsuite/libffi.call/cls_ulonglong.c,
  1514. testsuite/libffi.call/return_ll1.c,
  1515. testsuite/libffi.call/stret_medium2.c: Fix printf format
  1516. specifiers.
  1517. * testsuite/libffi.call/ffitest.h,
  1518. testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
  1519. 2009-06-15 Andrew Haley <aph@redhat.com>
  1520. * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
  1521. * testsuite/libffi.call/err_bad_abi.c: Likewise.
  1522. 2009-06-12 Andrew Haley <aph@redhat.com>
  1523. * Makefile.am: Remove info_TEXINFOS.
  1524. 2009-06-12 Andrew Haley <aph@redhat.com>
  1525. * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
  1526. testsuite/libffi.call/cls_align_uint64.c,
  1527. testsuite/libffi.call/cls_ulonglong.c,
  1528. testsuite/libffi.call/return_ll1.c,
  1529. testsuite/libffi.call/stret_medium2.c: Fix printf format
  1530. specifiers.
  1531. testsuite/libffi.special/unwindtest.cc: include stdint.h.
  1532. 2009-06-11 Timothy Wall <twall@users.sf.net>
  1533. * Makefile.am,
  1534. configure.ac,
  1535. include/ffi.h.in,
  1536. include/ffi_common.h,
  1537. src/closures.c,
  1538. src/dlmalloc.c,
  1539. src/x86/ffi.c,
  1540. src/x86/ffitarget.h,
  1541. src/x86/win64.S (new),
  1542. README: Added win64 support (mingw or MSVC)
  1543. * Makefile.in,
  1544. include/Makefile.in,
  1545. man/Makefile.in,
  1546. testsuite/Makefile.in,
  1547. configure,
  1548. aclocal.m4: Regenerated
  1549. * ltcf-c.sh: properly escape cygwin/w32 path
  1550. * man/ffi_call.3: Clarify size requirements for return value.
  1551. * src/x86/ffi64.c: Fix filename in comment.
  1552. * src/x86/win32.S: Remove unused extern.
  1553. * testsuite/libffi.call/closure_fn0.c,
  1554. testsuite/libffi.call/closure_fn1.c,
  1555. testsuite/libffi.call/closure_fn2.c,
  1556. testsuite/libffi.call/closure_fn3.c,
  1557. testsuite/libffi.call/closure_fn4.c,
  1558. testsuite/libffi.call/closure_fn5.c,
  1559. testsuite/libffi.call/closure_fn6.c,
  1560. testsuite/libffi.call/closure_stdcall.c,
  1561. testsuite/libffi.call/cls_12byte.c,
  1562. testsuite/libffi.call/cls_16byte.c,
  1563. testsuite/libffi.call/cls_18byte.c,
  1564. testsuite/libffi.call/cls_19byte.c,
  1565. testsuite/libffi.call/cls_1_1byte.c,
  1566. testsuite/libffi.call/cls_20byte.c,
  1567. testsuite/libffi.call/cls_20byte1.c,
  1568. testsuite/libffi.call/cls_24byte.c,
  1569. testsuite/libffi.call/cls_2byte.c,
  1570. testsuite/libffi.call/cls_3_1byte.c,
  1571. testsuite/libffi.call/cls_3byte1.c,
  1572. testsuite/libffi.call/cls_3byte2.c,
  1573. testsuite/libffi.call/cls_4_1byte.c,
  1574. testsuite/libffi.call/cls_4byte.c,
  1575. testsuite/libffi.call/cls_5_1_byte.c,
  1576. testsuite/libffi.call/cls_5byte.c,
  1577. testsuite/libffi.call/cls_64byte.c,
  1578. testsuite/libffi.call/cls_6_1_byte.c,
  1579. testsuite/libffi.call/cls_6byte.c,
  1580. testsuite/libffi.call/cls_7_1_byte.c,
  1581. testsuite/libffi.call/cls_7byte.c,
  1582. testsuite/libffi.call/cls_8byte.c,
  1583. testsuite/libffi.call/cls_9byte1.c,
  1584. testsuite/libffi.call/cls_9byte2.c,
  1585. testsuite/libffi.call/cls_align_double.c,
  1586. testsuite/libffi.call/cls_align_float.c,
  1587. testsuite/libffi.call/cls_align_longdouble.c,
  1588. testsuite/libffi.call/cls_align_longdouble_split.c,
  1589. testsuite/libffi.call/cls_align_longdouble_split2.c,
  1590. testsuite/libffi.call/cls_align_pointer.c,
  1591. testsuite/libffi.call/cls_align_sint16.c,
  1592. testsuite/libffi.call/cls_align_sint32.c,
  1593. testsuite/libffi.call/cls_align_sint64.c,
  1594. testsuite/libffi.call/cls_align_uint16.c,
  1595. testsuite/libffi.call/cls_align_uint32.c,
  1596. testsuite/libffi.call/cls_align_uint64.c,
  1597. testsuite/libffi.call/cls_dbls_struct.c,
  1598. testsuite/libffi.call/cls_double.c,
  1599. testsuite/libffi.call/cls_double_va.c,
  1600. testsuite/libffi.call/cls_float.c,
  1601. testsuite/libffi.call/cls_longdouble.c,
  1602. testsuite/libffi.call/cls_longdouble_va.c,
  1603. testsuite/libffi.call/cls_multi_schar.c,
  1604. testsuite/libffi.call/cls_multi_sshort.c,
  1605. testsuite/libffi.call/cls_multi_sshortchar.c,
  1606. testsuite/libffi.call/cls_multi_uchar.c,
  1607. testsuite/libffi.call/cls_multi_ushort.c,
  1608. testsuite/libffi.call/cls_multi_ushortchar.c,
  1609. testsuite/libffi.call/cls_pointer.c,
  1610. testsuite/libffi.call/cls_pointer_stack.c,
  1611. testsuite/libffi.call/cls_schar.c,
  1612. testsuite/libffi.call/cls_sint.c,
  1613. testsuite/libffi.call/cls_sshort.c,
  1614. testsuite/libffi.call/cls_uchar.c,
  1615. testsuite/libffi.call/cls_uint.c,
  1616. testsuite/libffi.call/cls_ulonglong.c,
  1617. testsuite/libffi.call/cls_ushort.c,
  1618. testsuite/libffi.call/err_bad_abi.c,
  1619. testsuite/libffi.call/err_bad_typedef.c,
  1620. testsuite/libffi.call/float2.c,
  1621. testsuite/libffi.call/huge_struct.c,
  1622. testsuite/libffi.call/nested_struct.c,
  1623. testsuite/libffi.call/nested_struct1.c,
  1624. testsuite/libffi.call/nested_struct10.c,
  1625. testsuite/libffi.call/nested_struct2.c,
  1626. testsuite/libffi.call/nested_struct3.c,
  1627. testsuite/libffi.call/nested_struct4.c,
  1628. testsuite/libffi.call/nested_struct5.c,
  1629. testsuite/libffi.call/nested_struct6.c,
  1630. testsuite/libffi.call/nested_struct7.c,
  1631. testsuite/libffi.call/nested_struct8.c,
  1632. testsuite/libffi.call/nested_struct9.c,
  1633. testsuite/libffi.call/problem1.c,
  1634. testsuite/libffi.call/return_ldl.c,
  1635. testsuite/libffi.call/return_ll1.c,
  1636. testsuite/libffi.call/stret_large.c,
  1637. testsuite/libffi.call/stret_large2.c,
  1638. testsuite/libffi.call/stret_medium.c,
  1639. testsuite/libffi.call/stret_medium2.c,
  1640. testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
  1641. of checking for MMAP. Use intptr_t instead of long casts.
  1642. 2009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
  1643. * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
  1644. * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
  1645. * testsuite/libffi.call/err_bad_typedef.c: Likewise.
  1646. 2009-06-09 Andrew Haley <aph@redhat.com>
  1647. * src/x86/freebsd.S: Add missing file.
  1648. 2009-06-08 Andrew Haley <aph@redhat.com>
  1649. Import from libffi 3.0.8:
  1650. * doc/libffi.texi: New file.
  1651. * doc/libffi.info: Likewise.
  1652. * doc/stamp-vti: Likewise.
  1653. * man/Makefile.am: New file.
  1654. * man/ffi_call.3: New file.
  1655. * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
  1656. src/dlmalloc.c.
  1657. (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
  1658. * configure.ac: Bump version to 3.0.8.
  1659. parisc*-*-linux*: Add.
  1660. i386-*-freebsd* | i386-*-openbsd*: Add.
  1661. powerpc-*-beos*: Add.
  1662. AM_CONDITIONAL X86_FREEBSD: Add.
  1663. AC_CONFIG_FILES: Add man/Makefile.
  1664. * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
  1665. 2009-06-08 Andrew Haley <aph@redhat.com>
  1666. * README: Import from libffi 3.0.8.
  1667. 2009-06-08 Andrew Haley <aph@redhat.com>
  1668. * testsuite/libffi.call/err_bad_abi.c: Add xfails.
  1669. * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
  1670. * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
  1671. * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
  1672. * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
  1673. * testsuite/libffi.call/stret_medium.c: Likewise.
  1674. * testsuite/libffi.call/stret_large2.c: Likewise.
  1675. * testsuite/libffi.call/stret_large.c: Likewise.
  1676. 2008-12-26 Timothy Wall <twall@users.sf.net>
  1677. * testsuite/libffi.call/cls_longdouble.c,
  1678. testsuite/libffi.call/cls_longdouble_va.c,
  1679. testsuite/libffi.call/cls_align_longdouble.c,
  1680. testsuite/libffi.call/cls_align_longdouble_split.c,
  1681. testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
  1682. failures on x86_64 cygwin/mingw.
  1683. 2008-12-22 Timothy Wall <twall@users.sf.net>
  1684. * testsuite/libffi.call/closure_fn0.c,
  1685. testsuite/libffi.call/closure_fn1.c,
  1686. testsuite/libffi.call/closure_fn2.c,
  1687. testsuite/libffi.call/closure_fn3.c,
  1688. testsuite/libffi.call/closure_fn4.c,
  1689. testsuite/libffi.call/closure_fn5.c,
  1690. testsuite/libffi.call/closure_fn6.c,
  1691. testsuite/libffi.call/closure_loc_fn0.c,
  1692. testsuite/libffi.call/closure_stdcall.c,
  1693. testsuite/libffi.call/cls_align_pointer.c,
  1694. testsuite/libffi.call/cls_pointer.c,
  1695. testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
  1696. pointer to integer (intptr_t).
  1697. * testsuite/libffi.call/cls_longdouble.c: disable for win64.
  1698. 2008-07-24 Anthony Green <green@redhat.com>
  1699. * testsuite/libffi.call/cls_dbls_struct.c,
  1700. testsuite/libffi.call/cls_double_va.c,
  1701. testsuite/libffi.call/cls_longdouble.c,
  1702. testsuite/libffi.call/cls_longdouble_va.c,
  1703. testsuite/libffi.call/cls_pointer.c,
  1704. testsuite/libffi.call/cls_pointer_stack.c,
  1705. testsuite/libffi.call/err_bad_abi.c: Clean up failures from
  1706. compiler warnings.
  1707. 2008-03-04 Anthony Green <green@redhat.com>
  1708. Blake Chaffin
  1709. hos@tamanegi.org
  1710. * testsuite/libffi.call/cls_align_longdouble_split2.c
  1711. testsuite/libffi.call/cls_align_longdouble_split.c
  1712. testsuite/libffi.call/cls_dbls_struct.c
  1713. testsuite/libffi.call/cls_double_va.c
  1714. testsuite/libffi.call/cls_longdouble.c
  1715. testsuite/libffi.call/cls_longdouble_va.c
  1716. testsuite/libffi.call/cls_pointer.c
  1717. testsuite/libffi.call/cls_pointer_stack.c
  1718. testsuite/libffi.call/err_bad_abi.c
  1719. testsuite/libffi.call/err_bad_typedef.c
  1720. testsuite/libffi.call/stret_large2.c
  1721. testsuite/libffi.call/stret_large.c
  1722. testsuite/libffi.call/stret_medium2.c
  1723. testsuite/libffi.call/stret_medium.c: New tests from Apple.
  1724. 2009-06-05 Andrew Haley <aph@redhat.com>
  1725. * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
  1726. libffi.
  1727. 2009-06-04 Andrew Haley <aph@redhat.com>
  1728. * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
  1729. stdcall changes.
  1730. 2008-02-26 Anthony Green <green@redhat.com>
  1731. Thomas Heller <theller@ctypes.org>
  1732. * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
  1733. comment.
  1734. 2008-02-03 Timothy Wall <twall@users.sf.net>
  1735. * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
  1736. offset based on code pointer, not data pointer.
  1737. 2008-01-31 Timothy Wall <twall@users.sf.net>
  1738. * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
  1739. closures.
  1740. * src/x86/ffitarget.h: Increase size of trampoline for stdcall
  1741. closures.
  1742. * src/x86/win32.S: Add assembly for stdcall closure.
  1743. * src/x86/ffi.c: Initialize stdcall closure trampoline.
  1744. 2009-06-04 Andrew Haley <aph@redhat.com>
  1745. * include/ffi.h.in: Change void (*)() to void (*)(void).
  1746. * src/x86/ffi.c: Likewise.
  1747. 2009-06-04 Andrew Haley <aph@redhat.com>
  1748. * src/powerpc/ppc_closure.S: Insert licence header.
  1749. * src/powerpc/linux64_closure.S: Likewise.
  1750. * src/m68k/sysv.S: Likewise.
  1751. * src/sh64/ffi.c: Change void (*)() to void (*)(void).
  1752. * src/powerpc/ffi.c: Likewise.
  1753. * src/powerpc/ffi_darwin.c: Likewise.
  1754. * src/m32r/ffi.c: Likewise.
  1755. * src/sh64/ffi.c: Likewise.
  1756. * src/x86/ffi64.c: Likewise.
  1757. * src/alpha/ffi.c: Likewise.
  1758. * src/alpha/osf.S: Likewise.
  1759. * src/frv/ffi.c: Likewise.
  1760. * src/s390/ffi.c: Likewise.
  1761. * src/pa/ffi.c: Likewise.
  1762. * src/pa/hpux32.S: Likewise.
  1763. * src/ia64/unix.S: Likewise.
  1764. * src/ia64/ffi.c: Likewise.
  1765. * src/sparc/ffi.c: Likewise.
  1766. * src/mips/ffi.c: Likewise.
  1767. * src/sh/ffi.c: Likewise.
  1768. 2008-02-15 David Daney <ddaney@avtrex.com>
  1769. * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
  1770. Define (conditionally), and use it to include cachectl.h.
  1771. (ffi_prep_closure_loc): Fix cache flushing.
  1772. * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
  1773. 2009-06-04 Andrew Haley <aph@redhat.com>
  1774. include/ffi.h.in,
  1775. src/arm/ffitarget.h,
  1776. src/arm/ffi.c,
  1777. src/arm/sysv.S,
  1778. src/powerpc/ffitarget.h,
  1779. src/closures.c,
  1780. src/sh64/ffitarget.h,
  1781. src/sh64/ffi.c,
  1782. src/sh64/sysv.S,
  1783. src/types.c,
  1784. src/x86/ffi64.c,
  1785. src/x86/ffitarget.h,
  1786. src/x86/win32.S,
  1787. src/x86/darwin.S,
  1788. src/x86/ffi.c,
  1789. src/x86/sysv.S,
  1790. src/x86/unix64.S,
  1791. src/alpha/ffitarget.h,
  1792. src/alpha/ffi.c,
  1793. src/alpha/osf.S,
  1794. src/m68k/ffitarget.h,
  1795. src/frv/ffitarget.h,
  1796. src/frv/ffi.c,
  1797. src/s390/ffitarget.h,
  1798. src/s390/sysv.S,
  1799. src/cris/ffitarget.h,
  1800. src/pa/linux.S,
  1801. src/pa/ffitarget.h,
  1802. src/pa/ffi.c,
  1803. src/raw_api.c,
  1804. src/ia64/ffitarget.h,
  1805. src/ia64/unix.S,
  1806. src/ia64/ffi.c,
  1807. src/ia64/ia64_flags.h,
  1808. src/java_raw_api.c,
  1809. src/debug.c,
  1810. src/sparc/v9.S,
  1811. src/sparc/ffitarget.h,
  1812. src/sparc/ffi.c,
  1813. src/sparc/v8.S,
  1814. src/mips/ffitarget.h,
  1815. src/mips/n32.S,
  1816. src/mips/o32.S,
  1817. src/mips/ffi.c,
  1818. src/prep_cif.c,
  1819. src/sh/ffitarget.h,
  1820. src/sh/ffi.c,
  1821. src/sh/sysv.S: Update license text.
  1822. 2009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
  1823. * src/x86/win32.S (_ffi_closure_STDCALL): New function.
  1824. (.eh_frame): Add FDE for it.
  1825. 2009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
  1826. * configure.ac: Also check if assembler supports pc-relative
  1827. relocs on X86_WIN32 targets.
  1828. * configure: Regenerate.
  1829. * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
  1830. (_ffi_call_SYSV): Add missing function type symbol .def and
  1831. add EH markup labels.
  1832. (_ffi_call_STDCALL): Likewise.
  1833. (_ffi_closure_SYSV): Likewise.
  1834. (_ffi_closure_raw_SYSV): Likewise.
  1835. (.eh_frame): Add hand-crafted EH data.
  1836. 2009-04-09 Jakub Jelinek <jakub@redhat.com>
  1837. * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
  1838. version 3 of the GNU General Public License and to point readers
  1839. at the COPYING3 file and the FSF's license web page.
  1840. * testsuite/libffi.call/call.exp: Likewise.
  1841. * testsuite/libffi.special/special.exp: Likewise.
  1842. 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1843. * configure: Regenerate.
  1844. 2008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  1845. PR libffi/26048
  1846. * configure.ac (HAVE_AS_X86_PCREL): New test.
  1847. * configure: Regenerate.
  1848. * fficonfig.h.in: Regenerate.
  1849. * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
  1850. RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
  1851. RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
  1852. (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
  1853. * src/x86/unix64.S (.Lstore_table): Move to .text section.
  1854. (.Lload_table): Likewise.
  1855. (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
  1856. 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1857. * configure: Regenerate.
  1858. 2008-11-21 Eric Botcazou <ebotcazou@adacore.com>
  1859. * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
  1860. signed/unsigned int8/16 return values.
  1861. * src/sparc/v8.S (ffi_call_v8): Likewise.
  1862. (ffi_closure_v8): Likewise.
  1863. 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
  1864. Steve Ellcey <sje@cup.hp.com>
  1865. * configure: Regenerate for new libtool.
  1866. * Makefile.in: Ditto.
  1867. * include/Makefile.in: Ditto.
  1868. * aclocal.m4: Ditto.
  1869. 2008-08-25 Andreas Tobler <a.tobler@schweiz.org>
  1870. * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
  1871. FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
  1872. Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
  1873. Adjust copyright notice.
  1874. * src/powerpc/ffi.c: Add two new flags to indicate if we have one
  1875. register or two register to use for FFI_SYSV structs.
  1876. (ffi_prep_cif_machdep): Pass the right register flag introduced above.
  1877. (ffi_closure_helper_SYSV): Fix the return type for
  1878. FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
  1879. Adjust copyright notice.
  1880. 2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
  1881. * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
  1882. int.
  1883. 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1884. * configure: Regenerate.
  1885. * include/Makefile.in: Regenerate.
  1886. * testsuite/Makefile.in: Regenerate.
  1887. 2008-06-07 Joseph Myers <joseph@codesourcery.com>
  1888. * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
  1889. powerpc-*-beos*): Remove.
  1890. * configure: Regenerate.
  1891. 2008-05-09 Julian Brown <julian@codesourcery.com>
  1892. * Makefile.am (LTLDFLAGS): New.
  1893. (libffi_la_LDFLAGS): Use above.
  1894. * Makefile.in: Regenerate.
  1895. 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
  1896. PR bootstrap/35457
  1897. * aclocal.m4: Regenerate.
  1898. * configure: Regenerate.
  1899. 2008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
  1900. * src/sh/sysv.S: Add .note.GNU-stack on Linux.
  1901. * src/sh64/sysv.S: Likewise.
  1902. 2008-03-26 Daniel Jacobowitz <dan@debian.org>
  1903. * src/arm/sysv.S: Fix ARM comment marker.
  1904. 2008-03-26 Jakub Jelinek <jakub@redhat.com>
  1905. * src/alpha/osf.S: Add .note.GNU-stack on Linux.
  1906. * src/s390/sysv.S: Likewise.
  1907. * src/powerpc/ppc_closure.S: Likewise.
  1908. * src/powerpc/sysv.S: Likewise.
  1909. * src/x86/unix64.S: Likewise.
  1910. * src/x86/sysv.S: Likewise.
  1911. * src/sparc/v8.S: Likewise.
  1912. * src/sparc/v9.S: Likewise.
  1913. * src/m68k/sysv.S: Likewise.
  1914. * src/arm/sysv.S: Likewise.
  1915. 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1916. * aclocal.m4: Regenerate.
  1917. * configure: Likewise.
  1918. * Makefile.in: Likewise.
  1919. * include/Makefile.in: Likewise.
  1920. * testsuite/Makefile.in: Likewise.
  1921. 2008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
  1922. Andreas Tobler <a.tobler@schweiz.org>
  1923. * configure.ac: Add amd64-*-freebsd* target.
  1924. * configure: Regenerate.
  1925. 2008-01-30 H.J. Lu <hongjiu.lu@intel.com>
  1926. PR libffi/34612
  1927. * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
  1928. returning struct.
  1929. * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
  1930. tests.
  1931. 2008-01-24 David Edelsohn <edelsohn@gnu.org>
  1932. * configure: Regenerate.
  1933. 2008-01-06 Andreas Tobler <a.tobler@schweiz.org>
  1934. * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
  1935. 2008-01-05 Andreas Tobler <a.tobler@schweiz.org>
  1936. PR testsuite/32843
  1937. * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
  1938. signed/unsigned int8/16 for X86_DARWIN.
  1939. Updated copyright info.
  1940. Handle one and two byte structs with special cif->flags.
  1941. * src/x86/ffitarget.h: Add special types for one and two byte structs.
  1942. Updated copyright info.
  1943. * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
  1944. sysv.S
  1945. Remove code to pop args from the stack after call.
  1946. Special-case signed/unsigned for int8/16, one and two byte structs.
  1947. (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
  1948. FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
  1949. FFI_TYPE_SINT32.
  1950. Updated copyright info.
  1951. 2007-12-08 David Daney <ddaney@avtrex.com>
  1952. * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
  1953. SUBU, add with ADDU and use smaller code sequences.
  1954. 2007-12-07 David Daney <ddaney@avtrex.com>
  1955. * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
  1956. type.
  1957. 2007-12-06 David Daney <ddaney@avtrex.com>
  1958. * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
  1959. defined.
  1960. (ffi_java_raw): New typedef.
  1961. (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
  1962. ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
  1963. ffi_java_raw.
  1964. (ffi_java_raw_closure) : Same.
  1965. (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
  1966. parameter types.
  1967. * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
  1968. FFI_SIZEOF_JAVA_RAW.
  1969. (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
  1970. Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
  1971. sizeof(ffi_java_raw) for alignment calculations.
  1972. (ffi_java_ptrarray_to_raw): Same.
  1973. (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
  1974. if FFI_SIZEOF_JAVA_RAW == 4.
  1975. (ffi_java_raw_to_rvalue): Same.
  1976. (ffi_java_raw_call): Change type of raw to ffi_java_raw.
  1977. (ffi_java_translate_args): Same.
  1978. (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
  1979. parameter types.
  1980. * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
  1981. 2007-12-06 David Daney <ddaney@avtrex.com>
  1982. * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
  1983. pointer values.
  1984. 2007-12-01 Andreas Tobler <a.tobler@schweiz.org>
  1985. PR libffi/31937
  1986. * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
  1987. Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
  1988. * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
  1989. set the NUM_FPR_ARG_REGISTERS according to.
  1990. Add support for potential soft-float support under hard-float
  1991. architecture.
  1992. (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
  1993. FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
  1994. to the FFI_LINUX_SOFT_FLOAT ABI.
  1995. (ffi_prep_cif_machdep): Likewise.
  1996. (ffi_closure_helper_SYSV): Likewise.
  1997. * src/powerpc/ppc_closure.S: Make sure not to store float/double
  1998. on archs where __NO_FPRS__ is true.
  1999. Add FFI_TYPE_UINT128 support.
  2000. * src/powerpc/sysv.S: Add support for soft-float long-double-128.
  2001. Adjust copyright notice.
  2002. 2007-11-25 Andreas Tobler <a.tobler@schweiz.org>
  2003. * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
  2004. * include/ffi_common.h: ... here.
  2005. Update copyright.
  2006. 2007-11-17 Andreas Tobler <a.tobler@schweiz.org>
  2007. * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
  2008. * src/powerpc/linux64.S: Likewise.
  2009. * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
  2010. * testsuite/libffi.call/return_ldl.c: New test.
  2011. 2007-09-04 <aph@redhat.com>
  2012. * src/arm/sysv.S (UNWIND): New.
  2013. (Whole file): Conditionally compile unwinder directives.
  2014. * src/arm/sysv.S: Add unwinder directives.
  2015. * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
  2016. Only treat r0 as a struct address if we're actually returning a
  2017. struct by address.
  2018. Only copy the bytes that are actually within a struct.
  2019. (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
  2020. is returned in r0, not passed by address.
  2021. (ffi_call): Allocate a word-sized temporary for the case where
  2022. a composite is returned in r0.
  2023. (ffi_prep_incoming_args_SYSV): Align as necessary.
  2024. 2007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
  2025. * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
  2026. directly using the sys_cacheflush syscall.
  2027. 2007-07-27 Andrew Haley <aph@redhat.com>
  2028. * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
  2029. 2007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
  2030. * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
  2031. * configure.ac: Likewise.
  2032. * Makefile.in: Regenerate.
  2033. * include/Makefile.in: Likewise.
  2034. * testsuite/Makefile.in: Likewise.
  2035. * configure: Likewise.
  2036. 2007-08-24 David Daney <ddaney@avtrex.com>
  2037. * testsuite/libffi.call/return_sl.c: New test.
  2038. 2007-08-10 David Daney <ddaney@avtrex.com>
  2039. * testsuite/libffi.call/cls_multi_ushort.c,
  2040. testsuite/libffi.call/cls_align_uint16.c,
  2041. testsuite/libffi.call/nested_struct1.c,
  2042. testsuite/libffi.call/nested_struct3.c,
  2043. testsuite/libffi.call/cls_7_1_byte.c,
  2044. testsuite/libffi.call/nested_struct5.c,
  2045. testsuite/libffi.call/cls_double.c,
  2046. testsuite/libffi.call/nested_struct7.c,
  2047. testsuite/libffi.call/cls_sint.c,
  2048. testsuite/libffi.call/nested_struct9.c,
  2049. testsuite/libffi.call/cls_20byte1.c,
  2050. testsuite/libffi.call/cls_multi_sshortchar.c,
  2051. testsuite/libffi.call/cls_align_sint64.c,
  2052. testsuite/libffi.call/cls_3byte2.c,
  2053. testsuite/libffi.call/cls_multi_schar.c,
  2054. testsuite/libffi.call/cls_multi_uchar.c,
  2055. testsuite/libffi.call/cls_19byte.c,
  2056. testsuite/libffi.call/cls_9byte1.c,
  2057. testsuite/libffi.call/cls_align_float.c,
  2058. testsuite/libffi.call/closure_fn1.c,
  2059. testsuite/libffi.call/problem1.c,
  2060. testsuite/libffi.call/closure_fn3.c,
  2061. testsuite/libffi.call/cls_sshort.c,
  2062. testsuite/libffi.call/closure_fn5.c,
  2063. testsuite/libffi.call/cls_align_double.c,
  2064. testsuite/libffi.call/nested_struct.c,
  2065. testsuite/libffi.call/cls_2byte.c,
  2066. testsuite/libffi.call/nested_struct10.c,
  2067. testsuite/libffi.call/cls_4byte.c,
  2068. testsuite/libffi.call/cls_6byte.c,
  2069. testsuite/libffi.call/cls_8byte.c,
  2070. testsuite/libffi.call/cls_multi_sshort.c,
  2071. testsuite/libffi.call/cls_align_sint16.c,
  2072. testsuite/libffi.call/cls_align_uint32.c,
  2073. testsuite/libffi.call/cls_20byte.c,
  2074. testsuite/libffi.call/cls_float.c,
  2075. testsuite/libffi.call/nested_struct2.c,
  2076. testsuite/libffi.call/cls_5_1_byte.c,
  2077. testsuite/libffi.call/nested_struct4.c,
  2078. testsuite/libffi.call/cls_24byte.c,
  2079. testsuite/libffi.call/nested_struct6.c,
  2080. testsuite/libffi.call/cls_64byte.c,
  2081. testsuite/libffi.call/nested_struct8.c,
  2082. testsuite/libffi.call/cls_uint.c,
  2083. testsuite/libffi.call/cls_multi_ushortchar.c,
  2084. testsuite/libffi.call/cls_schar.c,
  2085. testsuite/libffi.call/cls_uchar.c,
  2086. testsuite/libffi.call/cls_align_uint64.c,
  2087. testsuite/libffi.call/cls_ulonglong.c,
  2088. testsuite/libffi.call/cls_align_longdouble.c,
  2089. testsuite/libffi.call/cls_1_1byte.c,
  2090. testsuite/libffi.call/cls_12byte.c,
  2091. testsuite/libffi.call/cls_3_1byte.c,
  2092. testsuite/libffi.call/cls_3byte1.c,
  2093. testsuite/libffi.call/cls_4_1byte.c,
  2094. testsuite/libffi.call/cls_6_1_byte.c,
  2095. testsuite/libffi.call/cls_16byte.c,
  2096. testsuite/libffi.call/cls_18byte.c,
  2097. testsuite/libffi.call/closure_fn0.c,
  2098. testsuite/libffi.call/cls_9byte2.c,
  2099. testsuite/libffi.call/closure_fn2.c,
  2100. testsuite/libffi.call/closure_fn4.c,
  2101. testsuite/libffi.call/cls_ushort.c,
  2102. testsuite/libffi.call/closure_fn6.c,
  2103. testsuite/libffi.call/cls_5byte.c,
  2104. testsuite/libffi.call/cls_align_pointer.c,
  2105. testsuite/libffi.call/cls_7byte.c,
  2106. testsuite/libffi.call/cls_align_sint32.c,
  2107. testsuite/libffi.special/unwindtest_ffi_call.cc,
  2108. testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
  2109. 2007-08-10 David Daney <ddaney@avtrex.com>
  2110. PR libffi/28313
  2111. * configure.ac: Don't treat mips64 as a special case.
  2112. * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
  2113. * configure: Regenerate
  2114. * Makefile.in: Ditto.
  2115. * fficonfig.h.in: Ditto.
  2116. * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
  2117. (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
  2118. (FFI_DEFAULT_ABI): Set for n64 case.
  2119. (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
  2120. * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
  2121. (ffi_closure_N32): New function.
  2122. (.eh_frame): New section
  2123. * src/mips/o32.S: Clean up comments.
  2124. (ffi_closure_O32): Pass ffi_closure parameter in $12.
  2125. * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
  2126. _MIPS_SIM == _ABIN32 throughout.
  2127. (FFI_MIPS_STOP_HERE): New, use in place of
  2128. ffi_stop_here.
  2129. (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
  2130. to support n32/n64 ABIs.
  2131. (calc_n32_struct_flags): Rewrite.
  2132. (calc_n32_return_struct_flags): Remove unused variable. Reverse
  2133. position of flag bits.
  2134. (ffi_prep_cif_machdep): Rewrite n32 portion.
  2135. (ffi_call): Enable for n64. Add special handling for small structure
  2136. return values.
  2137. (ffi_prep_closure_loc): Add n32 and n64 support.
  2138. (ffi_closure_mips_inner_O32): Add cast to silence warning.
  2139. (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
  2140. 2007-08-08 David Daney <ddaney@avtrex.com>
  2141. * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
  2142. * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
  2143. specifiers.
  2144. * testsuite/libffi.call/nested_struct1.c (main): Ditto.
  2145. * testsuite/libffi.call/cls_sint.c (main): Ditto.
  2146. * testsuite/libffi.call/nested_struct9.c (main): Ditto.
  2147. * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
  2148. * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
  2149. * testsuite/libffi.call/closure_fn1.c (main): Ditto.
  2150. * testsuite/libffi.call/closure_fn3.c (main): Ditto.
  2151. * testsuite/libffi.call/return_dbl2.c (main): Ditto.
  2152. * testsuite/libffi.call/cls_sshort.c (main): Ditto.
  2153. * testsuite/libffi.call/return_fl3.c (main): Ditto.
  2154. * testsuite/libffi.call/closure_fn5.c (main): Ditto.
  2155. * testsuite/libffi.call/nested_struct.c (main): Ditto.
  2156. * testsuite/libffi.call/nested_struct10.c (main): Ditto.
  2157. * testsuite/libffi.call/return_ll1.c (main): Ditto.
  2158. * testsuite/libffi.call/cls_8byte.c (main): Ditto.
  2159. * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
  2160. * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
  2161. * testsuite/libffi.call/cls_20byte.c (main): Ditto.
  2162. * testsuite/libffi.call/nested_struct2.c (main): Ditto.
  2163. * testsuite/libffi.call/cls_24byte.c (main): Ditto.
  2164. * testsuite/libffi.call/nested_struct6.c (main): Ditto.
  2165. * testsuite/libffi.call/cls_uint.c (main): Ditto.
  2166. * testsuite/libffi.call/cls_12byte.c (main): Ditto.
  2167. * testsuite/libffi.call/cls_16byte.c (main): Ditto.
  2168. * testsuite/libffi.call/closure_fn0.c (main): Ditto.
  2169. * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
  2170. * testsuite/libffi.call/closure_fn2.c (main): Ditto.
  2171. * testsuite/libffi.call/return_dbl1.c (main): Ditto.
  2172. * testsuite/libffi.call/closure_fn4.c (main): Ditto.
  2173. * testsuite/libffi.call/closure_fn6.c (main): Ditto.
  2174. * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
  2175. 2007-08-07 Andrew Haley <aph@redhat.com>
  2176. * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
  2177. checkin.
  2178. 2007-08-06 Andrew Haley <aph@redhat.com>
  2179. PR testsuite/32843
  2180. * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
  2181. FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
  2182. FFI_TYPE_SINT32.
  2183. 2007-08-02 David Daney <ddaney@avtrex.com>
  2184. * testsuite/libffi.call/return_ul.c (main): Define return type as
  2185. ffi_arg. Use proper printf conversion specifier.
  2186. 2007-07-30 Andrew Haley <aph@redhat.com>
  2187. PR testsuite/32843
  2188. * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
  2189. signed/unsigned int8/16.
  2190. * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
  2191. Use a jump table.
  2192. Remove code to pop args from the stack after call.
  2193. Special-case signed/unsigned int8/16.
  2194. * testsuite/libffi.call/return_sc.c (main): Revert.
  2195. 2007-07-26 Richard Guenther <rguenther@suse.de>
  2196. PR testsuite/32843
  2197. * testsuite/libffi.call/return_sc.c (main): Verify call
  2198. result as signed char, not ffi_arg.
  2199. 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  2200. * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
  2201. * configure: Regenerate.
  2202. 2007-07-11 David Daney <ddaney@avtrex.com>
  2203. * src/mips/ffi.c: Don't include sys/cachectl.h.
  2204. (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
  2205. cacheflush().
  2206. 2007-05-18 Aurelien Jarno <aurelien@aurel32.net>
  2207. * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
  2208. from (ffi_prep_closure): ... this.
  2209. (FFI_INIT_TRAMPOLINE): Adjust.
  2210. 2005-12-31 Phil Blundell <pb@reciva.com>
  2211. * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
  2212. ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
  2213. * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
  2214. * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
  2215. (FFI_CLOSURES): Enable closure support.
  2216. 2007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
  2217. * testsuite/libffi.call/cls_multi_ushort.c,
  2218. testsuite/libffi.call/cls_align_uint16.c,
  2219. testsuite/libffi.call/nested_struct1.c,
  2220. testsuite/libffi.call/nested_struct3.c,
  2221. testsuite/libffi.call/cls_7_1_byte.c,
  2222. testsuite/libffi.call/cls_double.c,
  2223. testsuite/libffi.call/nested_struct5.c,
  2224. testsuite/libffi.call/nested_struct7.c,
  2225. testsuite/libffi.call/cls_sint.c,
  2226. testsuite/libffi.call/nested_struct9.c,
  2227. testsuite/libffi.call/cls_20byte1.c,
  2228. testsuite/libffi.call/cls_multi_sshortchar.c,
  2229. testsuite/libffi.call/cls_align_sint64.c,
  2230. testsuite/libffi.call/cls_3byte2.c,
  2231. testsuite/libffi.call/cls_multi_schar.c,
  2232. testsuite/libffi.call/cls_multi_uchar.c,
  2233. testsuite/libffi.call/cls_19byte.c,
  2234. testsuite/libffi.call/cls_9byte1.c,
  2235. testsuite/libffi.call/cls_align_float.c,
  2236. testsuite/libffi.call/closure_fn1.c,
  2237. testsuite/libffi.call/problem1.c,
  2238. testsuite/libffi.call/closure_fn3.c,
  2239. testsuite/libffi.call/cls_sshort.c,
  2240. testsuite/libffi.call/closure_fn5.c,
  2241. testsuite/libffi.call/cls_align_double.c,
  2242. testsuite/libffi.call/cls_2byte.c,
  2243. testsuite/libffi.call/nested_struct.c,
  2244. testsuite/libffi.call/nested_struct10.c,
  2245. testsuite/libffi.call/cls_4byte.c,
  2246. testsuite/libffi.call/cls_6byte.c,
  2247. testsuite/libffi.call/cls_8byte.c,
  2248. testsuite/libffi.call/cls_multi_sshort.c,
  2249. testsuite/libffi.call/cls_align_uint32.c,
  2250. testsuite/libffi.call/cls_align_sint16.c,
  2251. testsuite/libffi.call/cls_float.c,
  2252. testsuite/libffi.call/cls_20byte.c,
  2253. testsuite/libffi.call/cls_5_1_byte.c,
  2254. testsuite/libffi.call/nested_struct2.c,
  2255. testsuite/libffi.call/cls_24byte.c,
  2256. testsuite/libffi.call/nested_struct4.c,
  2257. testsuite/libffi.call/nested_struct6.c,
  2258. testsuite/libffi.call/cls_64byte.c,
  2259. testsuite/libffi.call/nested_struct8.c,
  2260. testsuite/libffi.call/cls_uint.c,
  2261. testsuite/libffi.call/cls_multi_ushortchar.c,
  2262. testsuite/libffi.call/cls_schar.c,
  2263. testsuite/libffi.call/cls_uchar.c,
  2264. testsuite/libffi.call/cls_align_uint64.c,
  2265. testsuite/libffi.call/cls_ulonglong.c,
  2266. testsuite/libffi.call/cls_align_longdouble.c,
  2267. testsuite/libffi.call/cls_1_1byte.c,
  2268. testsuite/libffi.call/cls_12byte.c,
  2269. testsuite/libffi.call/cls_3_1byte.c,
  2270. testsuite/libffi.call/cls_3byte1.c,
  2271. testsuite/libffi.call/cls_4_1byte.c,
  2272. testsuite/libffi.call/cls_6_1_byte.c,
  2273. testsuite/libffi.call/cls_16byte.c,
  2274. testsuite/libffi.call/cls_18byte.c,
  2275. testsuite/libffi.call/closure_fn0.c,
  2276. testsuite/libffi.call/cls_9byte2.c,
  2277. testsuite/libffi.call/closure_fn2.c,
  2278. testsuite/libffi.call/closure_fn4.c,
  2279. testsuite/libffi.call/cls_ushort.c,
  2280. testsuite/libffi.call/closure_fn6.c,
  2281. testsuite/libffi.call/cls_5byte.c,
  2282. testsuite/libffi.call/cls_align_pointer.c,
  2283. testsuite/libffi.call/cls_7byte.c,
  2284. testsuite/libffi.call/cls_align_sint32.c,
  2285. testsuite/libffi.special/unwindtest_ffi_call.cc,
  2286. testsuite/libffi.special/unwindtest.cc: Enable for ARM.
  2287. 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
  2288. * aclocal.m4: Regenerated.
  2289. 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
  2290. * configure: Regenerate.
  2291. 2007-05-23 Steve Ellcey <sje@cup.hp.com>
  2292. * Makefile.in: Regenerate.
  2293. * configure: Regenerate.
  2294. * aclocal.m4: Regenerate.
  2295. * include/Makefile.in: Regenerate.
  2296. * testsuite/Makefile.in: Regenerate.
  2297. 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
  2298. * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
  2299. ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
  2300. * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
  2301. * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
  2302. (FFI_CLOSURES): Enable closure support.
  2303. 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
  2304. * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
  2305. * configure: Regenerate.
  2306. * fficonfig.h.in: Regenerate.
  2307. * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
  2308. CFI_OFFSET,CFI_DEF_CFA): New macros.
  2309. (ffi_call_SYSV): Add callframe annotation.
  2310. 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
  2311. * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
  2312. numerous test suite failures.
  2313. * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
  2314. 2007-04-11 Paolo Bonzini <bonzini@gnu.org>
  2315. * Makefile.am (EXTRA_DIST): Bring up to date.
  2316. * Makefile.in: Regenerate.
  2317. * src/frv/eabi.S: Remove RCS keyword.
  2318. 2007-04-06 Richard Henderson <rth@redhat.com>
  2319. * configure.ac: Tidy target case.
  2320. (HAVE_LONG_DOUBLE): Allow the target to override.
  2321. * configure: Regenerate.
  2322. * include/ffi.h.in: Don't define ffi_type_foo if
  2323. LIBFFI_HIDE_BASIC_TYPES is defined.
  2324. (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
  2325. to ffi_type_double.
  2326. * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
  2327. (FFI_TYPEDEF, ffi_type_void): Mark the data const.
  2328. (ffi_type_longdouble): Special case for Alpha. Don't define
  2329. if long double == double.
  2330. * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
  2331. (ffi_prep_cif_machdep): Handle it as the 128-bit type.
  2332. (ffi_call, ffi_closure_osf_inner): Likewise.
  2333. (ffi_closure_osf_inner): Likewise. Mark hidden.
  2334. (ffi_call_osf, ffi_closure_osf): Mark hidden.
  2335. * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
  2336. * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
  2337. (load_table): Handle 128-bit long double.
  2338. * testsuite/libffi.call/float4.c: Add -mieee for alpha.
  2339. 2007-04-06 Tom Tromey <tromey@redhat.com>
  2340. PR libffi/31491:
  2341. * README: Fixed bug in example.
  2342. 2007-04-03 Jakub Jelinek <jakub@redhat.com>
  2343. * src/closures.c: Include sys/statfs.h.
  2344. (_GNU_SOURCE): Define on Linux.
  2345. (FFI_MMAP_EXEC_SELINUX): Define.
  2346. (selinux_enabled): New variable.
  2347. (selinux_enabled_check): New function.
  2348. (is_selinux_enabled): Define.
  2349. (dlmmap): Use it.
  2350. 2007-03-24 Uros Bizjak <ubizjak@gmail.com>
  2351. * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
  2352. Use 'volatile float sum' to create sum of floats to avoid false
  2353. negative due to excess precision on ix86 targets.
  2354. (main): Ditto.
  2355. 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
  2356. * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
  2357. patch.
  2358. (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
  2359. 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
  2360. * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
  2361. (ffi_prep_closure_loc): New.
  2362. (ffi_prep_raw_closure_loc): New.
  2363. (ffi_prep_java_raw_closure_loc): New.
  2364. * src/closures.c: New file.
  2365. * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
  2366. Replace sflags with exec_offset.
  2367. [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
  2368. sub_segment_exec_offset): New macros.
  2369. (get_segment_flags, set_segment_flags, check_segment_merge): New
  2370. macros.
  2371. (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
  2372. (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
  2373. destroy_mspace): Use new macros.
  2374. (sys_alloc): Silence warning.
  2375. * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
  2376. * Makefile.in: Rebuilt.
  2377. * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
  2378. terms of ffi_prep_closure_loc.
  2379. * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
  2380. from...
  2381. (ffi_prep_raw_closure): ... this. Re-implement in terms of the
  2382. renamed version.
  2383. * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
  2384. adjusted from...
  2385. (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
  2386. the renamed version.
  2387. * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
  2388. (ffi_prep_closure): ... this.
  2389. * src/pa/ffi.c: Likewise.
  2390. * src/cris/ffi.c: Likewise. Adjust.
  2391. * src/frv/ffi.c: Likewise.
  2392. * src/ia64/ffi.c: Likewise.
  2393. * src/mips/ffi.c: Likewise.
  2394. * src/powerpc/ffi_darwin.c: Likewise.
  2395. * src/s390/ffi.c: Likewise.
  2396. * src/sh/ffi.c: Likewise.
  2397. * src/sh64/ffi.c: Likewise.
  2398. * src/sparc/ffi.c: Likewise.
  2399. * src/x86/ffi64.c: Likewise.
  2400. * src/x86/ffi.c: Likewise.
  2401. (FFI_INIT_TRAMPOLINE): Adjust.
  2402. (ffi_prep_raw_closure_loc): Renamed and adjusted from...
  2403. (ffi_prep_raw_closure): ... this.
  2404. * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
  2405. (ffi_prep_closure): ... this.
  2406. (flush_icache): Adjust.
  2407. 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
  2408. * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
  2409. Lea's malloc.
  2410. 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
  2411. * Makefile.am: Add dummy install-pdf target.
  2412. * Makefile.in: Regenerate
  2413. 2007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
  2414. * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
  2415. ffi_closure_helper_SYSV): Add long double handling.
  2416. 2007-02-02 Jakub Jelinek <jakub@redhat.com>
  2417. * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
  2418. immediately after bctrl instruction.
  2419. 2007-01-18 Alexandre Oliva <aoliva@redhat.com>
  2420. * Makefile.am (all-recursive, install-recursive,
  2421. mostlyclean-recursive, clean-recursive, distclean-recursive,
  2422. maintainer-clean-recursive): Add missing targets.
  2423. * Makefile.in: Rebuilt.
  2424. 2006-12-14 Andreas Tobler <a.tobler@schweiz.org>
  2425. * configure.ac: Add TARGET for x86_64-*-darwin*.
  2426. * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
  2427. for X86_DARWIN.
  2428. * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
  2429. * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
  2430. * configure: Regenerate.
  2431. * Makefile.in: Regenerate.
  2432. * include/Makefile.in: Regenerate.
  2433. * testsuite/Makefile.in: Regenerate.
  2434. * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
  2435. ffi_call only.
  2436. 2006-12-13 Andreas Tobler <a.tobler@schweiz.org>
  2437. * aclocal.m4: Regenerate with aclocal -I .. as written in the
  2438. Makefile.am.
  2439. 2006-10-31 Geoffrey Keating <geoffk@apple.com>
  2440. * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
  2441. (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
  2442. Darwin.
  2443. * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
  2444. * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
  2445. 2006-10-10 Paolo Bonzini <bonzini@gnu.org>
  2446. Sandro Tolaini <tolaini@libero.it>
  2447. * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
  2448. conditional.
  2449. * configure: Regenerated.
  2450. * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
  2451. (EXTRA_DIST): Add src/x86/darwin.S.
  2452. * Makefile.in: Regenerated.
  2453. * include/Makefile.in: Regenerated.
  2454. * testsuite/Makefile.in: Regenerated.
  2455. * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
  2456. X86_WIN32, and additionally align stack to 16 bytes.
  2457. * src/x86/darwin.S: New, based on sysv.S.
  2458. * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
  2459. 2006-09-12 David Daney <ddaney@avtrex.com>
  2460. PR libffi/23935
  2461. * include/Makefile.am: Install both ffi.h and ffitarget.h in
  2462. $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
  2463. * aclocal.m4: Regenerated for automake 1.9.6.
  2464. * Makefile.in: Regenerated.
  2465. * include/Makefile.in: Regenerated.
  2466. * testsuite/Makefile.in: Regenerated.
  2467. 2006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
  2468. * include/ffi_common.h (struct): Revert accidental commit.
  2469. 2006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
  2470. * include/ffi_common.h: Remove lint directives.
  2471. * include/ffi.h.in: Likewise.
  2472. 2006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
  2473. * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
  2474. for 32-bit architectures.
  2475. * testsuite/libffi.call/return_ul.c: New test case.
  2476. 2006-07-19 David Daney <ddaney@avtrex.com>
  2477. * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
  2478. xfail remains for mips64.
  2479. 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
  2480. * Makefile.am: Add install-html target. Add install-html to .PHONY
  2481. * Makefile.in: Regenerate.
  2482. * aclocal.m4: Regenerate.
  2483. * include/Makefile.in: Regenerate.
  2484. * testsuite/Makefile.in: Regenerate.
  2485. 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2486. * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
  2487. stack slot.
  2488. 2006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
  2489. * README: Remove notice about 'Crazy Comments'.
  2490. * src/debug.c: Remove lint directives. Cleanup white spaces.
  2491. * src/java_raw_api.c: Likewise.
  2492. * src/prep_cif.c: Likewise.
  2493. * src/raw_api.c: Likewise.
  2494. * src/ffitest.c: Delete. No longer needed, all test cases migrated
  2495. to the testsuite.
  2496. * src/arm/ffi.c: Remove lint directives.
  2497. * src/m32r/ffi.c: Likewise.
  2498. * src/pa/ffi.c: Likewise.
  2499. * src/powerpc/ffi.c: Likewise.
  2500. * src/powerpc/ffi_darwin.c: Likewise.
  2501. * src/sh/ffi.c: Likewise.
  2502. * src/sh64/ffi.c: Likewise.
  2503. * src/x86/ffi.c: Likewise.
  2504. * testsuite/libffi.call/float2.c: Likewise.
  2505. * testsuite/libffi.call/promotion.c: Likewise.
  2506. * testsuite/libffi.call/struct1.c: Likewise.
  2507. 2006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
  2508. * src/pa/hpux32.S: Correct unwind offset calculation for
  2509. ffi_closure_pa32.
  2510. * src/pa/linux.S: Likewise.
  2511. 2006-04-12 James E Wilson <wilson@specifix.com>
  2512. PR libgcj/26483
  2513. * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
  2514. (hfa_type_load): Call stf_spill.
  2515. (hfa_type_store): Call ldf_fill.
  2516. (ffi_call): Adjust calls to above routines. Add local temps for
  2517. macro result.
  2518. 2006-04-10 Matthias Klose <doko@debian.org>
  2519. * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
  2520. directory names containing underscores.
  2521. 2006-04-07 James E Wilson <wilson@specifix.com>
  2522. * testsuite/libffi.call/float4.c: New testcase.
  2523. 2006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2524. Andreas Tobler <a.tobler@schweiz.ch>
  2525. * Makefile.am: Add PA_HPUX port.
  2526. * Makefile.in: Regenerate.
  2527. * include/Makefile.in: Likewise.
  2528. * testsuite/Makefile.in: Likewise.
  2529. * configure.ac: Add PA_HPUX rules.
  2530. * configure: Regenerate.
  2531. * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
  2532. Add PA_HPUX and PA64_HPUX.
  2533. Rename FFI_LINUX ABI to FFI_PA32 ABI.
  2534. (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
  2535. (FFI_TYPE_SMALL_STRUCT2): Define.
  2536. (FFI_TYPE_SMALL_STRUCT4): Likewise.
  2537. (FFI_TYPE_SMALL_STRUCT8): Likewise.
  2538. (FFI_TYPE_SMALL_STRUCT3): Redefine.
  2539. (FFI_TYPE_SMALL_STRUCT5): Likewise.
  2540. (FFI_TYPE_SMALL_STRUCT6): Likewise.
  2541. (FFI_TYPE_SMALL_STRUCT7): Likewise.
  2542. * src/pa/ffi.c (ROUND_DOWN): Delete.
  2543. (fldw, fstw, fldd, fstd): Use '__asm__'.
  2544. (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
  2545. FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
  2546. (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
  2547. Simplify incrementing of stack slot variable. Change type of local
  2548. 'n' to unsigned int.
  2549. (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
  2550. double on PA_HPUX.
  2551. (ffi_prep_cif_machdep): Likewise.
  2552. (ffi_call): Likewise.
  2553. (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
  2554. return type to ffi_status. Simplify incrementing of stack slot
  2555. variable. Only copy floating point argument registers when PA_LINUX
  2556. is true. Reformat debug statement.
  2557. Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
  2558. FFI_TYPE_SMALL_STRUCT8.
  2559. (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
  2560. declaration.
  2561. (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
  2562. Add nops to cache flush. Add trampoline for PA_HPUX.
  2563. * src/pa/hpux32.S: New file.
  2564. * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
  2565. ffi_prep_args_LINUX to ffi_prep_args_pa32.
  2566. Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
  2567. unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
  2568. argument type checks so that common argument types appear first.
  2569. (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
  2570. ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
  2571. 2006-03-24 Alan Modra <amodra@bigpond.net.au>
  2572. * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
  2573. for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
  2574. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
  2575. FFI_TYPE_LONGDOUBLE.
  2576. (ffi_prep_args64): Assert using IBM extended double.
  2577. (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
  2578. Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
  2579. (ffi_call): Handle FFI_LINUX.
  2580. (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
  2581. gpr3 return pointer as for struct return. Handle FFI_LINUX
  2582. FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
  2583. unnecessarily.
  2584. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
  2585. for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
  2586. Don't use r6 as pointer to results, instead use sp offset. Don't
  2587. make a special call to load lr with case table address, instead
  2588. use offset from previous call.
  2589. * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
  2590. * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
  2591. return.
  2592. 2006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
  2593. * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
  2594. passed with FP registers correctly.
  2595. (ffi_closure_helper_SYSV): Likewise.
  2596. * src/sh64/sysv.S: Likewise.
  2597. 2006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
  2598. * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
  2599. args and userdata unused.
  2600. (closure_test_fn1): Mark cif and userdata unused.
  2601. (main): Remove unused res.
  2602. 2006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
  2603. * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
  2604. -O2, -O3, -Os and the warning flags -W -Wall.
  2605. * testsuite/libffi.special/special.exp: Likewise.
  2606. * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
  2607. unused parameter unused for gcc or else do nothing.
  2608. * testsuite/libffi.special/ffitestcxx.h: Likewise.
  2609. * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
  2610. and userdata unused.
  2611. * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
  2612. * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
  2613. * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
  2614. * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
  2615. * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
  2616. * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
  2617. * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
  2618. * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
  2619. * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
  2620. * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
  2621. * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
  2622. * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
  2623. * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
  2624. * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
  2625. * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
  2626. * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
  2627. * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
  2628. * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
  2629. * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
  2630. * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
  2631. * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
  2632. * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
  2633. * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
  2634. * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
  2635. Likewise.
  2636. * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
  2637. Likewise.
  2638. * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
  2639. Likewise.
  2640. * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
  2641. void* to avoid compiler warning.
  2642. (main): Likewise.
  2643. (cls_struct_align_gn): Mark cif and userdata unused.
  2644. * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
  2645. Likewise.
  2646. * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
  2647. Likewise.
  2648. * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
  2649. Likewise.
  2650. * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
  2651. Likewise.
  2652. * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
  2653. Likewise.
  2654. * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
  2655. * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
  2656. * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
  2657. data unused.
  2658. (main): Cast res_call to silence gcc.
  2659. * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
  2660. data unused.
  2661. (main): Cast res_call to silence gcc.
  2662. * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
  2663. and data unused.
  2664. (main): Cast res_call to silence gcc.
  2665. * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
  2666. data unused.
  2667. (main): Cast res_call to silence gcc.
  2668. * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
  2669. data unused.
  2670. (main): Cast res_call to silence gcc.
  2671. * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
  2672. and data unused.
  2673. (main): Cast res_call to silence gcc.
  2674. * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
  2675. userdata unused.
  2676. (cls_ret_schar_fn): Cast printf parameter to silence gcc.
  2677. * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
  2678. userdata unused.
  2679. (cls_ret_sint_fn): Cast printf parameter to silence gcc.
  2680. * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
  2681. userdata unused.
  2682. (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
  2683. * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
  2684. userdata unused.
  2685. (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
  2686. * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
  2687. userdata unused.
  2688. (cls_ret_uint_fn): Cast printf parameter to silence gcc.
  2689. * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
  2690. and userdata unused.
  2691. * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
  2692. userdata unused.
  2693. (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
  2694. * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
  2695. * testsuite/libffi.call/float1.c (main): Remove unused variable i.
  2696. Cleanup white spaces.
  2697. * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
  2698. * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
  2699. cif and userdata unused.
  2700. * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
  2701. Likewise.
  2702. * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
  2703. * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
  2704. formatters to silence gcc.
  2705. (B_gn): Mark cif and userdata unused.
  2706. * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
  2707. unused.
  2708. * testsuite/libffi.call/nested_struct4.c: Mention related PR.
  2709. (B_gn): Mark cif and userdata unused.
  2710. * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
  2711. unused.
  2712. * testsuite/libffi.call/nested_struct6.c: Mention related PR.
  2713. (B_gn): Mark cif and userdata unused.
  2714. * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
  2715. unused.
  2716. * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
  2717. * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
  2718. * testsuite/libffi.call/problem1.c (stub): Likewise.
  2719. * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
  2720. gcc.
  2721. * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
  2722. in the last commit for this test case in the test case itself.
  2723. * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
  2724. unused.
  2725. * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
  2726. * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
  2727. * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
  2728. * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
  2729. * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
  2730. * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
  2731. 2006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
  2732. * src/sh/sysv.S: Fix register numbers in the FDE for
  2733. ffi_closure_SYSV.
  2734. 2006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
  2735. * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
  2736. declaration to avoid a false negative on ix86. See PR323.
  2737. 2006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
  2738. * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
  2739. and cast integer to void * if needed. Update the pointer to
  2740. the FP register saved area correctly.
  2741. 2006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
  2742. * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
  2743. is fixed.
  2744. * testsuite/libffi.call/nested_struct4.c: Likewise.
  2745. 2006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
  2746. * testsuite/libffi.call/return_dbl.c: New test case.
  2747. * testsuite/libffi.call/return_dbl1.c: Likewise.
  2748. * testsuite/libffi.call/return_dbl2.c: Likewise.
  2749. * testsuite/libffi.call/return_fl.c: Likewise.
  2750. * testsuite/libffi.call/return_fl1.c: Likewise.
  2751. * testsuite/libffi.call/return_fl2.c: Likewise.
  2752. * testsuite/libffi.call/return_fl3.c: Likewise.
  2753. * testsuite/libffi.call/closure_fn6.c: Likewise.
  2754. * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
  2755. definition.
  2756. * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
  2757. here to be used by other test cases too.
  2758. * testsuite/libffi.call/nested_struct10.c: New test case.
  2759. * testsuite/libffi.call/nested_struct9.c: Likewise.
  2760. * testsuite/libffi.call/nested_struct8.c: Likewise.
  2761. * testsuite/libffi.call/nested_struct7.c: Likewise.
  2762. * testsuite/libffi.call/nested_struct6.c: Likewise.
  2763. * testsuite/libffi.call/nested_struct5.c: Likewise.
  2764. * testsuite/libffi.call/nested_struct4.c: Likewise.
  2765. 2006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
  2766. * configure.ac: Enable libffi for sparc64-*-freebsd*.
  2767. * configure: Rebuilt.
  2768. 2006-01-18 Jakub Jelinek <jakub@redhat.com>
  2769. * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
  2770. instead do the shifting inline.
  2771. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
  2772. shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
  2773. and 8 byte structs, for the remaining struct sizes don't call
  2774. __lshrdi3, instead do the shifting inline.
  2775. 2005-12-07 Thiemo Seufer <ths@networkno.de>
  2776. * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
  2777. missing parentheses.
  2778. * src/mips/o32.S (ffi_call_O32): Code formatting. Define
  2779. and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
  2780. (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
  2781. A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
  2782. V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
  2783. FA_0_0_OFF2.
  2784. * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
  2785. endianness bugs.
  2786. (ffi_prep_closure): Improve trampoline instruction scheduling.
  2787. (ffi_closure_mips_inner_O32): Fix endianness bugs.
  2788. 2005-12-03 Alan Modra <amodra@bigpond.net.au>
  2789. * src/powerpc/ffi.c: Formatting.
  2790. (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
  2791. (ffi_prep_args64): Likewise.
  2792. 2005-09-30 Geoffrey Keating <geoffk@apple.com>
  2793. * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
  2794. darwin, use -shared-libgcc not -lgcc_s, and explain why.
  2795. 2005-09-26 Tom Tromey <tromey@redhat.com>
  2796. * testsuite/libffi.call/float1.c (value_type): New typedef.
  2797. (CANARY): New define.
  2798. (main): Check for result buffer overflow.
  2799. * src/powerpc/linux64.S: Handle linux64 long double returns.
  2800. * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
  2801. (ffi_prep_cif_machdep): Handle linux64 long double returns.
  2802. 2005-08-25 Alan Modra <amodra@bigpond.net.au>
  2803. PR target/23404
  2804. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
  2805. homed fp args.
  2806. (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
  2807. 2005-08-11 Jakub Jelinek <jakub@redhat.com>
  2808. * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
  2809. (AH_BOTTOM): Add FFI_HIDDEN definition.
  2810. * configure: Rebuilt.
  2811. * fficonfig.h.in: Rebuilt.
  2812. * src/powerpc/ffi.c (hidden): Remove.
  2813. (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
  2814. ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
  2815. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
  2816. .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
  2817. * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
  2818. add FFI_HIDDEN to its prototype.
  2819. (ffi_closure_SYSV_inner): New.
  2820. * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
  2821. * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
  2822. 2005-08-10 Alfred M. Szmidt <ams@gnu.org>
  2823. PR libffi/21819:
  2824. * configure: Rebuilt.
  2825. * configure.ac: Handle i*86-*-gnu*.
  2826. 2005-08-09 Jakub Jelinek <jakub@redhat.com>
  2827. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
  2828. DW_CFA_offset_extended_sf rather than
  2829. DW_CFA_GNU_negative_offset_extended.
  2830. * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
  2831. 2005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
  2832. * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
  2833. on sh3.
  2834. (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
  2835. * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
  2836. partially on register.
  2837. (ffi_closure_helper_SYSV): Likewise.
  2838. (ffi_prep_cif_machdep): Don't set too many cif->flags.
  2839. 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
  2840. * src/sh/ffi.c (ffi_call): Handle small structures correctly.
  2841. Remove empty line.
  2842. * src/sh64/ffi.c (simple_type): Remove.
  2843. (return_type): Handle small structures correctly.
  2844. (ffi_prep_args): Likewise.
  2845. (ffi_call): Likewise.
  2846. (ffi_closure_helper_SYSV): Likewise.
  2847. * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
  2848. Emit position independent code if PIC and remove wrong datalabel
  2849. prefixes from EH data.
  2850. 2005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
  2851. * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
  2852. * Makefile.in: Regenerate.
  2853. * include/Makefile.in: Likewise.
  2854. * testsuite/Makefile.in: Likewise.
  2855. * configure.ac: Add POWERPC_FREEBSD rules.
  2856. * configure: Regenerate.
  2857. * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
  2858. (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
  2859. * src/powerpc/ffi.c: Add flags to handle small structure returns
  2860. in ffi_call_SYSV.
  2861. (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
  2862. Aka FFI_SYSV.
  2863. (ffi_closure_helper_SYSV): Likewise.
  2864. * src/powerpc/ppc_closure.S: Add return types for small structures.
  2865. * src/powerpc/sysv.S: Add bits to handle small structures for
  2866. final SYSV 4 ABI.
  2867. 2005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
  2868. * testsuite/libffi.call/cls_5_1_byte.c: New test file.
  2869. * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
  2870. * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
  2871. 2005-07-05 Randolph Chung <tausq@debian.org>
  2872. * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
  2873. as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
  2874. structures. Kill compilation warnings.
  2875. (ffi_closure_inner_LINUX): Print return values as hex in debug
  2876. message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
  2877. Properly handle 5-7 byte structure returns.
  2878. * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
  2879. (FFI_TYPE_SMALL_STRUCT2): Remove.
  2880. (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
  2881. (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
  2882. * src/pa/linux.S: Mark source file as using PA1.1 assembly.
  2883. (checksmst1, checksmst2): Remove.
  2884. (checksmst3): Optimize handling of 3-byte struct returns.
  2885. (checksmst567): Properly handle 5-7 byte struct returns.
  2886. 2005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  2887. PR libgcj/21943
  2888. * src/mips/n32.S: Enforce PIC code.
  2889. * src/mips/o32.S: Likewise.
  2890. 2005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  2891. * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
  2892. * configure: Regenerate.
  2893. 2005-06-01 Alan Modra <amodra@bigpond.net.au>
  2894. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
  2895. to call ffi_closure_helper_SYSV. Append @local instead.
  2896. * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
  2897. 2005-05-17 Kelley Cook <kcook@gcc.gnu.org>
  2898. * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
  2899. Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
  2900. * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
  2901. * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
  2902. include/Makefile.in, testsuite/Makefile.in: Regenerate.
  2903. 2005-05-09 Mike Stump <mrs@apple.com>
  2904. * configure: Regenerate.
  2905. 2005-05-08 Richard Henderson <rth@redhat.com>
  2906. PR libffi/21285
  2907. * src/alpha/osf.S: Update unwind into to match code.
  2908. 2005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
  2909. Richard Henderson <rth@redhat.com>
  2910. * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
  2911. bit 11 of flags.
  2912. (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
  2913. (ffi_prep_closure): Set carry bit if sse-used flag set.
  2914. * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
  2915. Only load sse registers if ssecount non-zero.
  2916. (ffi_closure_unix64): Only save sse registers if carry set on entry.
  2917. 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
  2918. * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
  2919. powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
  2920. * configure: Regenerate.
  2921. 2005-04-20 Hans-Peter Nilsson <hp@axis.com>
  2922. * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
  2923. have Tcl8.3-compatible intermediate variable.
  2924. 2005-04-18 Simon Posnjak <simon.posnjak@siol.net>
  2925. Hans-Peter Nilsson <hp@axis.com>
  2926. * Makefile.am: Add CRIS support.
  2927. * configure.ac: Likewise.
  2928. * Makefile.in, configure, testsuite/Makefile.in,
  2929. include/Makefile.in: Regenerate.
  2930. * src/cris: New directory.
  2931. * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
  2932. * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
  2933. * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
  2934. \r?\n in output tests.
  2935. 2005-04-12 Mike Stump <mrs@apple.com>
  2936. * configure: Regenerate.
  2937. 2005-03-30 Hans Boehm <Hans.Boehm@hp.com>
  2938. * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
  2939. 2005-03-30 Steve Ellcey <sje@cup.hp.com>
  2940. * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
  2941. (ffi_sarg) Ditto.
  2942. * src/ia64/unix.S (ffi_closure_unix): Extend gp
  2943. to 64 bits in ILP32 mode.
  2944. Load 64 bits even for short data.
  2945. 2005-03-23 Mike Stump <mrs@apple.com>
  2946. * src/powerpc/darwin.S: Update for -m64 multilib.
  2947. * src/powerpc/darwin_closure.S: Likewise.
  2948. 2005-03-21 Zack Weinberg <zack@codesourcery.com>
  2949. * configure.ac: Do not invoke TL_AC_GCC_VERSION.
  2950. Do not set tool_include_dir.
  2951. * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
  2952. Regenerate.
  2953. * include/Makefile.am: Set gcc_version and toollibffidir.
  2954. * include/Makefile.in: Regenerate.
  2955. 2005-02-22 Andrew Haley <aph@redhat.com>
  2956. * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
  2957. odd-numbered register pairs for 64-bit integer types.
  2958. 2005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
  2959. PR libffi/20104
  2960. * testsuite/libffi.call/return_ll1.c: New test case.
  2961. 2005-02-11 Janis Johnson <janis187@us.ibm.com>
  2962. * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
  2963. * testsuite/libffi.call/float.c: Ditto.
  2964. * testsuite/libffi.call/float2.c: Ditto.
  2965. * testsuite/libffi.call/float3.c: Ditto.
  2966. 2005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
  2967. * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
  2968. 2005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
  2969. * testsuite/libffi.special/special.exp (cxx_options): Add
  2970. -shared-libgcc.
  2971. 2004-12-31 Richard Henderson <rth@redhat.com>
  2972. * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
  2973. (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
  2974. offset parameters with a type parameter; deduce size and structure
  2975. alignment. Update all users.
  2976. 2004-12-31 Richard Henderson <rth@redhat.com>
  2977. * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
  2978. (FFI_TYPE_LONGDOUBLE): Fix for ia64.
  2979. * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
  2980. into ffi_prep_closure.
  2981. * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
  2982. from scratch.
  2983. 2004-12-27 Richard Henderson <rth@redhat.com>
  2984. * src/x86/unix64.S: Fix typo in unwind info.
  2985. 2004-12-25 Richard Henderson <rth@redhat.com>
  2986. * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
  2987. (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
  2988. (merge_classes): Check for it.
  2989. (SSE_CLASS_P): New.
  2990. (classify_argument): Pass byte_offset by value; perform all updates
  2991. inside struct case.
  2992. (examine_argument): Add classes argument; handle
  2993. X86_64_COMPLEX_X87_CLASS.
  2994. (ffi_prep_args): Merge into ...
  2995. (ffi_call): ... here. Share stack frame with ffi_call_unix64.
  2996. (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
  2997. (ffi_fill_return_value): Remove.
  2998. (ffi_prep_closure): Remove dead assert.
  2999. (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
  3000. Rewrite to use struct register_args instead of va_list. Create
  3001. flags for handling structure returns.
  3002. * src/x86/unix64.S: Remove dead strings.
  3003. (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
  3004. stack frame with ffi_call. Handle structure returns properly.
  3005. (float2sse, floatfloat2sse, double2sse): Remove.
  3006. (sse2float, sse2double, sse2floatfloat): Remove.
  3007. (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
  3008. to handle structure returns properly.
  3009. 2004-12-08 David Edelsohn <edelsohn@gnu.org>
  3010. * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
  3011. PICFLAG.
  3012. * Makefile.in: Regenerated.
  3013. 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
  3014. * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
  3015. * configure, aclocal.m4, Makefile.in: Regenerate.
  3016. * include/Makefile.in, testsuite/Makefile.in: Regenerate.
  3017. 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
  3018. * configure: Regenerate for libtool change.
  3019. 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
  3020. * configure: Regenerate for libtool reversion.
  3021. 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
  3022. * configure: Regenerate for libtool change.
  3023. 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3024. * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
  3025. 2004-11-23 Richard Sandiford <rsandifo@redhat.com>
  3026. * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
  3027. of jal. Use an absolute encoding for the frame information.
  3028. 2004-11-23 Kelley Cook <kcook@gcc.gnu.org>
  3029. * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
  3030. * acinclude.m4: Delete logic for sincludes.
  3031. * aclocal.m4, Makefile.in, configure: Regenerate.
  3032. * include/Makefile: Likewise.
  3033. * testsuite/Makefile: Likewise.
  3034. 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
  3035. * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
  3036. on a 8-byte boundary.
  3037. * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
  3038. 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
  3039. * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
  3040. long long values. Round stack allocation to a multiple of 8 bytes
  3041. for ATPCS compatibility.
  3042. * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
  3043. names. Handle returning long long types. Add Thumb and interworking
  3044. support. Improve soft-float code.
  3045. 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
  3046. * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
  3047. (libffi_exit): New function.
  3048. (libffi_init): Build the testglue wrapper if needed.
  3049. 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
  3050. PR other/18138
  3051. * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
  3052. 2004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  3053. * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
  3054. 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
  3055. * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
  3056. * testsuite/libffi.call/float3.c: New test case.
  3057. 2004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
  3058. * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
  3059. the function returning a structure pointed with R2.
  3060. * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
  3061. the structure return value if T bit set. Emit position
  3062. independent code and EH data if PIC.
  3063. 2004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  3064. * Makefile.am: Add m32r support.
  3065. * configure.ac: Likewise.
  3066. * Makefile.in: Regenerate.
  3067. * confiugre: Regenerate.
  3068. * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
  3069. (uint64, sint64, double, longdouble)
  3070. * src/m32r: New directory.
  3071. * src/m32r/ffi.c: New file.
  3072. * src/m32r/sysv.S: Likewise.
  3073. * src/m32r/ffitarget.h: Likewise.
  3074. 2004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
  3075. * testsuite/libffi.call/negint.c: New test case.
  3076. 2004-09-14 H.J. Lu <hongjiu.lu@intel.com>
  3077. PR libgcj/17465
  3078. * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
  3079. Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
  3080. LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
  3081. DYLD_LIBRARY_PATH.
  3082. 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
  3083. * testsuite/libffi.call/many_win32.c: Remove whitespaces.
  3084. * testsuite/libffi.call/promotion.c: Likewise.
  3085. * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
  3086. whitespaces.
  3087. * testsuite/libffi.call/return_sc.c: Likewise.
  3088. * testsuite/libffi.call/return_uc.c: Likewise.
  3089. 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
  3090. * src/powerpc/darwin.S: Fix comments and identation.
  3091. * src/powerpc/darwin_closure.S: Likewise.
  3092. 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
  3093. * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
  3094. (ffi_prep_args): Handle longdouble arguments.
  3095. (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
  3096. longdouble.
  3097. (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
  3098. * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
  3099. values.
  3100. * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
  3101. * src/types.c: Defined longdouble size and alignment for darwin.
  3102. 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
  3103. * src/powerpc/aix.S: Remove whitespaces.
  3104. * src/powerpc/aix_closure.S: Likewise.
  3105. * src/powerpc/asm.h: Likewise.
  3106. * src/powerpc/ffi.c: Likewise.
  3107. * src/powerpc/ffitarget.h: Likewise.
  3108. * src/powerpc/linux64.S: Likewise.
  3109. * src/powerpc/linux64_closure.S: Likewise.
  3110. * src/powerpc/ppc_closure.S: Likewise.
  3111. * src/powerpc/sysv.S: Likewise.
  3112. 2004-08-30 Anthony Green <green@redhat.com>
  3113. * Makefile.am: Add frv support.
  3114. * Makefile.in, testsuite/Makefile.in: Rebuilt.
  3115. * configure.ac: Read configure.host.
  3116. * configure.in: Read configure.host.
  3117. * configure.host: New file. frv-elf needs libgloss.
  3118. * include/ffi.h.in: Force ffi_closure to have a nice big (8)
  3119. alignment. This is needed to frv and shouldn't harm the others.
  3120. * include/ffi_common.h (ALIGN_DOWN): New macro.
  3121. * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
  3122. 2004-08-24 David Daney <daney@avtrex.com>
  3123. * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
  3124. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3125. * testsuite/libffi.call/closure_fn2.c Likewise.
  3126. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3127. * testsuite/libffi.call/closure_fn4.c: Likewise.
  3128. * testsuite/libffi.call/closure_fn5.c: Likewise.
  3129. * testsuite/libffi.call/cls_18byte.c: Likewise.
  3130. * testsuite/libffi.call/cls_19byte.c: Likewise.
  3131. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3132. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3133. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  3134. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3135. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3136. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3137. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3138. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3139. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3140. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3141. * testsuite/libffi.call/cls_64byte.c: Likewise.
  3142. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3143. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3144. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3145. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  3146. * testsuite/libffi.call/cls_9byte2.c: Likewise.
  3147. * testsuite/libffi.call/cls_align_double.c: Likewise.
  3148. * testsuite/libffi.call/cls_align_float.c: Likewise.
  3149. * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
  3150. * testsuite/libffi.call/cls_align_pointer.c: Likewise.
  3151. * testsuite/libffi.call/cls_align_sint16.c: Likewise.
  3152. * testsuite/libffi.call/cls_align_sint32.c: Likewise.
  3153. * testsuite/libffi.call/cls_align_sint64.c: Likewise.
  3154. * testsuite/libffi.call/cls_align_uint16.c: Likewise.
  3155. * testsuite/libffi.call/cls_align_uint32.c: Likewise.
  3156. * testsuite/libffi.call/cls_align_uint64.c: Likewise.
  3157. * testsuite/libffi.call/cls_double.c: Likewise.
  3158. * testsuite/libffi.call/cls_float.c: Likewise.
  3159. * testsuite/libffi.call/cls_multi_schar.c: Likewise.
  3160. * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
  3161. * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
  3162. * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
  3163. * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
  3164. * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
  3165. * testsuite/libffi.call/cls_schar.c: Likewise.
  3166. * testsuite/libffi.call/cls_sint.c: Likewise.
  3167. * testsuite/libffi.call/cls_sshort.c: Likewise.
  3168. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3169. * testsuite/libffi.call/cls_uint.c: Likewise.
  3170. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3171. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3172. * testsuite/libffi.call/nested_struct.c: Likewise.
  3173. * testsuite/libffi.call/nested_struct1.c: Likewise.
  3174. * testsuite/libffi.call/nested_struct2.c: Likewise.
  3175. * testsuite/libffi.call/nested_struct3.c: Likewise.
  3176. * testsuite/libffi.call/problem1.c: Likewise.
  3177. * testsuite/libffi.special/unwindtest.cc: Likewise.
  3178. * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
  3179. to zero.
  3180. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3181. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3182. 2004-08-23 David Daney <daney@avtrex.com>
  3183. PR libgcj/13141
  3184. * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
  3185. * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
  3186. (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
  3187. parameters and return types.
  3188. (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
  3189. (ffi_prep_closure): Ditto.
  3190. (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
  3191. alignment calculations.
  3192. * src/mips/o32.S (ffi_closure_O32): Don't use floating point
  3193. instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
  3194. 2004-08-14 Casey Marshall <csm@gnu.org>
  3195. * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
  3196. contain `FFI_TYPE_UINT64' as return type for any 64-bit
  3197. integer (O32 ABI only).
  3198. (ffi_prep_closure): new function.
  3199. (ffi_closure_mips_inner_O32): new function.
  3200. * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
  3201. `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
  3202. * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
  3203. 64 bit integers correctly.
  3204. (ffi_closure_O32): new function.
  3205. Added DWARF-2 unwind info for both functions.
  3206. 2004-08-10 Andrew Haley <aph@redhat.com>
  3207. * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
  3208. 2004-08-01 Robert Millan <robertmh@gnu.org>
  3209. * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
  3210. * configure: Regenerate.
  3211. 2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
  3212. * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
  3213. and mmap() explicitly instead of relying on preset autoconf cache
  3214. variables.
  3215. * aclocal.m4: Regenerate.
  3216. * configure: Regenerate.
  3217. 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
  3218. * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
  3219. (ffi_check_float_struct): Remove unused prototype.
  3220. 2004-06-30 Geoffrey Keating <geoffk@apple.com>
  3221. * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
  3222. character on Darwin, use '\n\t' instead.
  3223. 2004-06-26 Matthias Klose <doko@debian.org>
  3224. * libtool-version: Fix typo in revision/age.
  3225. 2004-06-17 Matthias Klose <doko@debian.org>
  3226. * libtool-version: New.
  3227. * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
  3228. * Makefile.in: Regenerate.
  3229. 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
  3230. * Makefile.am: Remove useless multilib rules.
  3231. * Makefile.in: Regenerate.
  3232. * aclocal.m4: Regenerate with automake 1.8.5.
  3233. * configure.ac: Remove useless multilib configury.
  3234. * configure: Regenerate.
  3235. 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
  3236. * .cvsignore: New file.
  3237. 2004-06-10 Jakub Jelinek <jakub@redhat.com>
  3238. * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
  3239. fp_done.
  3240. (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
  3241. changed from 8.
  3242. 2004-06-06 Sean McNeil <sean@mcneil.com>
  3243. * configure.ac: Add x86_64-*-freebsd* support.
  3244. * configure: Regenerate.
  3245. 2004-04-26 Joe Buck <jbuck@welsh-buck.org>
  3246. Bug 15093
  3247. * configure.ac: Test for existence of mmap and sys/mman.h before
  3248. checking blacklist. Fix suggested by Jim Wilson.
  3249. * configure: Regenerate.
  3250. 2004-04-26 Matt Austern <austern@apple.com>
  3251. * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
  3252. FDE location.
  3253. * src/powerpc/darwin_closure.S: Likewise.
  3254. 2004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
  3255. * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
  3256. error. Reported by Thomas Heller <theller@python.net>.
  3257. * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
  3258. * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
  3259. 2004-03-20 Matthias Klose <doko@debian.org>
  3260. * src/pa/linux.S: Fix typo.
  3261. 2004-03-19 Matthias Klose <doko@debian.org>
  3262. * Makefile.am: Update.
  3263. * Makefile.in: Regenerate.
  3264. * src/pa/ffi.h.in: Remove.
  3265. * src/pa/ffitarget.h: New file.
  3266. 2004-02-10 Randolph Chung <tausq@debian.org>
  3267. * Makefile.am: Add PA support.
  3268. * Makefile.in: Regenerate.
  3269. * include/Makefile.in: Regenerate.
  3270. * configure.ac: Add PA target.
  3271. * configure: Regenerate.
  3272. * src/pa/ffi.c: New file.
  3273. * src/pa/ffi.h.in: Add PA support.
  3274. * src/pa/linux.S: New file.
  3275. * prep_cif.c: Add PA support.
  3276. 2004-03-16 Hosaka Yuji <hos@tamanegi.org>
  3277. * src/types.c: Fix alignment size of X86_WIN32 case int64 and
  3278. double.
  3279. * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
  3280. with ecif->cif->flags.
  3281. (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
  3282. with cif->flags.
  3283. (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
  3284. (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
  3285. * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
  3286. sc_retstruct2b): Add for 1 or 2-bytes struct case.
  3287. 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
  3288. * configure.in: Rename file to ...
  3289. * configure.ac: ... this.
  3290. * fficonfig.h.in: Regenerate.
  3291. * Makefile.in: Regenerate.
  3292. * include/Makefile.in: Regenerate.
  3293. * testsuite/Makefile.in: Regenerate.
  3294. 2004-03-12 Matt Austern <austern@apple.com>
  3295. * src/powerpc/darwin.S: Fix EH information so it corresponds to
  3296. changes in EH format resulting from addition of linkonce support.
  3297. * src/powerpc/darwin_closure.S: Likewise.
  3298. 2004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
  3299. Paolo Bonzini <bonzini@gnu.org>
  3300. * Makefile.am (AUTOMAKE_OPTIONS): Set them.
  3301. Remove VPATH. Remove rules for object files. Remove multilib support.
  3302. (AM_CCASFLAGS): Add.
  3303. * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
  3304. (AC_PREREQ): Bump version to 2.59.
  3305. (AC_INIT): Fill with version info and bug address.
  3306. (ORIGINAL_LD_FOR_MULTILIBS): Remove.
  3307. (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
  3308. De-precious CC so that the right flags are passed down to multilibs.
  3309. (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
  3310. (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
  3311. (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
  3312. * configure: Rebuilt.
  3313. * aclocal.m4: Likewise.
  3314. * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
  3315. * fficonfig.h.in: Likewise.
  3316. 2004-03-11 Andreas Schwab <schwab@suse.de>
  3317. * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
  3318. arguments from fp registers only for the first 8 parameter slots.
  3319. Don't convert a float parameter when passed in memory.
  3320. 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
  3321. * configure: Regenerate for config/accross.m4 correction.
  3322. 2004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
  3323. * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
  3324. ecif->cif->bytes to bytes.
  3325. (ffi_prep_cif_machdep): Add braces around nested if statement.
  3326. 2004-02-09 Alan Modra <amodra@bigpond.net.au>
  3327. * src/types.c (pointer): POWERPC64 has 8 byte pointers.
  3328. * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
  3329. (ffi_closure_helper_LINUX64): Fix typo.
  3330. * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
  3331. for powerpc64-*-*.
  3332. * testsuite/libffi.call/float.c: Likewise.
  3333. * testsuite/libffi.call/float2.c: Likewise.
  3334. 2004-02-08 Alan Modra <amodra@bigpond.net.au>
  3335. * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
  3336. long double function return and long double arg handling.
  3337. (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
  3338. Use "end_pfr" instead of "nf". Correct long double handling.
  3339. Localise "temp".
  3340. * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
  3341. return value.
  3342. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
  3343. space for long double return value. Adjust stack frame and offsets.
  3344. Load f2 long double return.
  3345. 2004-02-07 Alan Modra <amodra@bigpond.net.au>
  3346. * src/types.c: Use 16 byte long double for POWERPC64.
  3347. 2004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
  3348. * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
  3349. when the structure return address is passed in %o0.
  3350. (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
  3351. (ffi_v9_layout_struct): Align the field following a nested structure
  3352. on a word boundary. Use memmove instead of memcpy.
  3353. (ffi_call): Update call to ffi_V9_return_struct.
  3354. (ffi_prep_closure): Define 'ctx' only for V8.
  3355. (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
  3356. and ffi_closure_sparc_inner_v9.
  3357. (ffi_closure_sparc_inner_v8): Return long doubles by reference.
  3358. Always skip the structure return address. For structures and long
  3359. doubles, copy the argument directly.
  3360. (ffi_closure_sparc_inner_v9): Skip the structure return address only
  3361. if required. Shift the maximum floating-point slot accordingly. For
  3362. big structures, copy the argument directly; otherwise, left-justify the
  3363. argument and call ffi_v9_layout_struct to lay out the structure on
  3364. the stack.
  3365. * src/sparc/v8.S: Undef STACKFRAME before defining it.
  3366. (ffi_closure_v8): Pass the structure return address. Update call to
  3367. ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
  3368. Skip the 'unimp' insn when returning long doubles and structures.
  3369. * src/sparc/v9.S: Undef STACKFRAME before defining it.
  3370. (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
  3371. FFI_TYPE_INT handling. Load structures both in integers and
  3372. floating-point registers on return.
  3373. * README: Update status of the SPARC port.
  3374. 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
  3375. * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
  3376. as of type ffi_arg.
  3377. * testsuite/libffi.call/struct3.c (main): Fix CHECK.
  3378. 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
  3379. * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
  3380. value as of type ffi_arg, not unsigned int.
  3381. 2004-01-21 Michael Ritzert <ritzert@t-online.de>
  3382. * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
  3383. of the LHS.
  3384. 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
  3385. * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
  3386. Solaris.
  3387. 2004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3388. * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
  3389. to void *.
  3390. 2003-12-10 Richard Henderson <rth@redhat.com>
  3391. * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
  3392. size_t instead of int.
  3393. 2003-12-04 Hosaka Yuji <hos@tamanegi.org>
  3394. * testsuite/libffi.call/many_win32.c: Include <float.h>.
  3395. * testsuite/libffi.call/many_win32.c (main): Replace variable
  3396. int i with unsigned long ul.
  3397. * testsuite/libffi.call/cls_align_uint64.c: New test case.
  3398. * testsuite/libffi.call/cls_align_sint64.c: Likewise.
  3399. * testsuite/libffi.call/cls_align_uint32.c: Likewise.
  3400. * testsuite/libffi.call/cls_align_sint32.c: Likewise.
  3401. * testsuite/libffi.call/cls_align_uint16.c: Likewise.
  3402. * testsuite/libffi.call/cls_align_sint16.c: Likewise.
  3403. * testsuite/libffi.call/cls_align_float.c: Likewise.
  3404. * testsuite/libffi.call/cls_align_double.c: Likewise.
  3405. * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
  3406. * testsuite/libffi.call/cls_align_pointer.c: Likewise.
  3407. 2003-12-02 Hosaka Yuji <hos@tamanegi.org>
  3408. PR other/13221
  3409. * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
  3410. Align arguments to 32 bits.
  3411. 2003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
  3412. PR other/13221
  3413. * testsuite/libffi.call/cls_multi_sshort.c: New test case.
  3414. * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
  3415. * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
  3416. * testsuite/libffi.call/cls_multi_schar.c: Likewise.
  3417. * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
  3418. * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
  3419. * testsuite/libffi.special/unwindtest.cc: Cosmetics.
  3420. 2003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  3421. * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
  3422. * testsuite/libffi.special/ffitestcxx.h: Likewise.
  3423. 2003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
  3424. * Makefile.in: Rebuilt.
  3425. * configure: Likewise.
  3426. * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
  3427. the right type.
  3428. 2003-11-21 Andreas Jaeger <aj@suse.de>
  3429. Andreas Tobler <a.tobler@schweiz.ch>
  3430. * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
  3431. * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
  3432. * Makefile.in: Rebuilt.
  3433. * aclocal.m4: Likewise.
  3434. * configure: Likewise.
  3435. * fficonfig.h.in: Likewise.
  3436. * testsuite/lib/libffi-dg.exp: Add include dir.
  3437. * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
  3438. * testsuite/libffi.special/ffitestcxx.h: Likewise.
  3439. * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
  3440. for ffi_closure if available.
  3441. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3442. * testsuite/libffi.call/closure_fn2.c: Likewise.
  3443. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3444. * testsuite/libffi.call/closure_fn4.c: Likewise.
  3445. * testsuite/libffi.call/closure_fn5.c: Likewise.
  3446. * testsuite/libffi.call/cls_12byte.c: Likewise.
  3447. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3448. * testsuite/libffi.call/cls_18byte.c: Likewise.
  3449. * testsuite/libffi.call/cls_19byte.c: Likewise.
  3450. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3451. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3452. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  3453. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3454. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3455. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3456. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3457. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3458. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3459. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3460. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3461. * testsuite/libffi.call/cls_64byte.c: Likewise.
  3462. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3463. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3464. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3465. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  3466. * testsuite/libffi.call/cls_9byte2.c: Likewise.
  3467. * testsuite/libffi.call/cls_double.c: Likewise.
  3468. * testsuite/libffi.call/cls_float.c: Likewise.
  3469. * testsuite/libffi.call/cls_schar.c: Likewise.
  3470. * testsuite/libffi.call/cls_sint.c: Likewise.
  3471. * testsuite/libffi.call/cls_sshort.c: Likewise.
  3472. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3473. * testsuite/libffi.call/cls_uint.c: Likewise.
  3474. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3475. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3476. * testsuite/libffi.call/nested_struct.c: Likewise.
  3477. * testsuite/libffi.call/nested_struct1.c: Likewise.
  3478. * testsuite/libffi.call/nested_struct2.c: Likewise.
  3479. * testsuite/libffi.call/nested_struct3.c: Likewise.
  3480. * testsuite/libffi.call/problem1.c: Likewise.
  3481. * testsuite/libffi.special/unwindtest.cc: Likewise.
  3482. 2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
  3483. * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
  3484. 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
  3485. * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
  3486. Add -lgcc_s to additional flags.
  3487. 2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
  3488. * configure.in, include/Makefile.am: PR libgcj/11147, install
  3489. the ffitarget.h header file in a gcc versioned and target
  3490. dependent place.
  3491. * configure: Regenerated.
  3492. * Makefile.in, include/Makefile.in: Likewise.
  3493. * testsuite/Makefile.in: Likewise.
  3494. 2003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
  3495. * testsuite/libffi.call/closure_fn0.c: Print result and check
  3496. with dg-output to make debugging easier.
  3497. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3498. * testsuite/libffi.call/closure_fn2.c: Likewise.
  3499. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3500. * testsuite/libffi.call/closure_fn4.c: Likewise.
  3501. * testsuite/libffi.call/closure_fn5.c: Likewise.
  3502. * testsuite/libffi.call/cls_12byte.c: Likewise.
  3503. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3504. * testsuite/libffi.call/cls_18byte.c: Likewise.
  3505. * testsuite/libffi.call/cls_19byte.c: Likewise.
  3506. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3507. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3508. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  3509. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3510. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3511. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3512. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3513. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3514. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3515. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3516. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3517. * testsuite/libffi.call/cls_64byte.c: Likewise.
  3518. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3519. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3520. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3521. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  3522. * testsuite/libffi.call/cls_9byte2.c: Likewise.
  3523. * testsuite/libffi.call/cls_double.c: Likewise.
  3524. * testsuite/libffi.call/cls_float.c: Likewise.
  3525. * testsuite/libffi.call/cls_schar.c: Likewise.
  3526. * testsuite/libffi.call/cls_sint.c: Likewise.
  3527. * testsuite/libffi.call/cls_sshort.c: Likewise.
  3528. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3529. * testsuite/libffi.call/cls_uint.c: Likewise.
  3530. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3531. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3532. * testsuite/libffi.call/problem1.c: Likewise.
  3533. * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
  3534. static.
  3535. 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
  3536. * testsuite/libffi.call/cls_9byte2.c: New test case.
  3537. * testsuite/libffi.call/cls_9byte1.c: Likewise.
  3538. * testsuite/libffi.call/cls_64byte.c: Likewise.
  3539. * testsuite/libffi.call/cls_20byte1.c: Likewise.
  3540. * testsuite/libffi.call/cls_19byte.c: Likewise.
  3541. * testsuite/libffi.call/cls_18byte.c: Likewise.
  3542. * testsuite/libffi.call/closure_fn4.c: Likewise.
  3543. * testsuite/libffi.call/closure_fn5.c: Likewise.
  3544. * testsuite/libffi.call/cls_schar.c: Likewise.
  3545. * testsuite/libffi.call/cls_sint.c: Likewise.
  3546. * testsuite/libffi.call/cls_sshort.c: Likewise.
  3547. * testsuite/libffi.call/nested_struct2.c: Likewise.
  3548. * testsuite/libffi.call/nested_struct3.c: Likewise.
  3549. 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
  3550. * testsuite/libffi.call/cls_double.c: Do a check on the result.
  3551. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3552. * testsuite/libffi.call/cls_uint.c: Likewise.
  3553. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3554. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3555. * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
  3556. 2003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
  3557. * src/prep_cif.c (ffi_prep_cif): Move the validity check after
  3558. the initialization.
  3559. 2003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
  3560. * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
  3561. FFI_ASSERT(FALSE) with FFI_ASSERT(0).
  3562. 2003-10-22 David Daney <ddaney@avtrex.com>
  3563. * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
  3564. __attribute__((__mode__(__SI__))) and friends.
  3565. 2003-10-22 Andreas Schwab <schwab@suse.de>
  3566. * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
  3567. 2003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
  3568. * configure.in: AC_LINK_FILES(ffitarget.h).
  3569. * configure: Regenerate.
  3570. * Makefile.in: Likewise.
  3571. * include/Makefile.in: Likewise.
  3572. * testsuite/Makefile.in: Likewise.
  3573. * fficonfig.h.in: Likewise.
  3574. 2003-10-21 Paolo Bonzini <bonzini@gnu.org>
  3575. Richard Henderson <rth@redhat.com>
  3576. Avoid that ffi.h includes fficonfig.h.
  3577. * Makefile.am (EXTRA_DIST): Include ffitarget.h files
  3578. (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
  3579. (TARGET_SRC_MIPS_SGI): Removed.
  3580. (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
  3581. (MIPS_SGI): Removed.
  3582. (CLEANFILES): Removed.
  3583. (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
  3584. targets.
  3585. * acconfig.h: Removed.
  3586. * configure.in: Compute sizeofs only for double and long double.
  3587. Use them to define and subst HAVE_LONG_DOUBLE. Include comments
  3588. into AC_DEFINE instead of using acconfig.h. Create
  3589. include/ffitarget.h instead of include/fficonfig.h. Rename
  3590. MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
  3591. AC_DEFINE EH_FRAME_FLAGS.
  3592. * include/Makefile.am (DISTCLEANFILES): New automake macro.
  3593. (hack_DATA): Add ffitarget.h.
  3594. * include/ffi.h.in: Remove all system specific definitions.
  3595. Declare raw API even if it is not installed, why bother?
  3596. Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
  3597. not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
  3598. ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
  3599. (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
  3600. * include/ffi_common.h (bool): Do not define.
  3601. (ffi_assert): Accept failed assertion.
  3602. (ffi_type_test): Return void and accept file/line.
  3603. (FFI_ASSERT): Pass stringized failed assertion.
  3604. (FFI_ASSERT_AT): New macro.
  3605. (FFI_ASSERT_VALID_TYPE): New macro.
  3606. (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
  3607. UINT64, SINT64): Define here with gcc's __attribute__ macro
  3608. instead of in ffi.h
  3609. (FLOAT32, ALIGN): Define here instead of in ffi.h
  3610. * include/ffi-mips.h: Removed. Its content moved to
  3611. src/mips/ffitarget.h after separating assembly and C sections.
  3612. * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
  3613. src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
  3614. src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
  3615. src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
  3616. SIZEOF_ARG -> FFI_SIZEOF_ARG.
  3617. * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
  3618. * src/debug.c (ffi_assert): Accept stringized failed assertion.
  3619. (ffi_type_test): Rewritten.
  3620. * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
  3621. FFI_ASSERT_VALID_TYPE.
  3622. * src/alpha/ffitarget.h, src/arm/ffitarget.h,
  3623. src/ia64/ffitarget.h, src/m68k/ffitarget.h,
  3624. src/mips/ffitarget.h, src/powerpc/ffitarget.h,
  3625. src/s390/ffitarget.h, src/sh/ffitarget.h,
  3626. src/sh64/ffitarget.h, src/sparc/ffitarget.h,
  3627. src/x86/ffitarget.h: New files.
  3628. * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
  3629. src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
  3630. src/powerpc/aix.S, src/powerpc/darwin.S,
  3631. src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
  3632. src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
  3633. src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
  3634. src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
  3635. src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
  3636. include fficonfig.h
  3637. 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3638. * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
  3639. _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
  3640. 2003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
  3641. * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
  3642. Used when FFI_DEBUG = 1.
  3643. 2003-10-14 Alan Modra <amodra@bigpond.net.au>
  3644. * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
  3645. and align.
  3646. 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3647. * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
  3648. FFI_MIPS_O32 for O32 ABI.
  3649. 2003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
  3650. * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
  3651. SPARC64. Cleanup whitespaces.
  3652. 2003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
  3653. * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
  3654. strongarm, xscale. Cleanup whitespaces.
  3655. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3656. * testsuite/libffi.call/closure_fn2.c: Likewise.
  3657. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3658. * testsuite/libffi.call/cls_12byte.c: Likewise.
  3659. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3660. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3661. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3662. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3663. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3664. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3665. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3666. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3667. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3668. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3669. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3670. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3671. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3672. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3673. * testsuite/libffi.call/cls_double.c: Likewise.
  3674. * testsuite/libffi.call/cls_float.c: Likewise.
  3675. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3676. * testsuite/libffi.call/cls_uint.c: Likewise.
  3677. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3678. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3679. * testsuite/libffi.call/nested_struct.c: Likewise.
  3680. * testsuite/libffi.call/nested_struct1.c: Likewise.
  3681. * testsuite/libffi.call/problem1.c: Likewise.
  3682. * testsuite/libffi.special/unwindtest.cc: Likewise.
  3683. * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
  3684. 2003-09-18 David Edelsohn <edelsohn@gnu.org>
  3685. * src/powerpc/aix.S: Cleanup whitespaces.
  3686. * src/powerpc/aix_closure.S: Likewise.
  3687. 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
  3688. * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
  3689. * src/powerpc/darwin_closure.S: Likewise.
  3690. * src/powerpc/ffi_darwin.c: Likewise.
  3691. 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
  3692. David Edelsohn <edelsohn@gnu.org>
  3693. * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
  3694. * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
  3695. parameter stack.
  3696. * src/powerpc/darwin_closure.S: Likewise.
  3697. * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
  3698. according to the Darwin/AIX ABI.
  3699. (ffi_prep_cif_machdep): Likewise.
  3700. (ffi_closure_helper_DARWIN): Likewise.
  3701. Remove the outgoing parameter stack logic. Simplify the evaluation
  3702. of the different CASE types.
  3703. (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
  3704. statement in the trampoline code.
  3705. 2003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
  3706. * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
  3707. for the register size.
  3708. (ffi_closure_helper_SYSV): Handle the structure return value
  3709. address correctly.
  3710. (ffi_closure_helper_SYSV): Return the appropriate type when
  3711. the registers are used for the structure return value.
  3712. * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
  3713. the 64-bit return value. Update copyright years.
  3714. 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3715. * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
  3716. srcdir for ffi_mips.h.
  3717. 2003-09-12 Alan Modra <amodra@bigpond.net.au>
  3718. * src/prep_cif.c (initialize_aggregate): Include tail padding in
  3719. structure size.
  3720. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
  3721. placement of float result.
  3722. * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
  3723. cast of "resp" for big-endian 64 bit machines.
  3724. 2003-09-11 Alan Modra <amodra@bigpond.net.au>
  3725. * src/types.c (double, longdouble): Merge identical SH and ARM
  3726. typedefs, and add POWERPC64.
  3727. * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
  3728. struct split over gpr and rest.
  3729. (ffi_prep_cif_machdep): Correct intarg_count for structures.
  3730. * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
  3731. 2003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
  3732. * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
  3733. passing correctly.
  3734. 2003-09-09 Alan Modra <amodra@bigpond.net.au>
  3735. * configure: Regenerate.
  3736. 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
  3737. * Makefile.am: Remove build rules for ffitest.
  3738. * Makefile.in: Rebuilt.
  3739. 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
  3740. * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
  3741. about implicit declaration of abort().
  3742. 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
  3743. * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
  3744. * Makefile.in: Rebuilt.
  3745. * configure.in: Add dejagnu test framework.
  3746. * configure: Rebuilt.
  3747. * testsuite/Makefile.am: New file.
  3748. * testsuite/Makefile.in: Built
  3749. * testsuite/lib/libffi-dg.exp: New file.
  3750. * testsuite/config/default.exp: Likewise.
  3751. * testsuite/libffi.call/call.exp: Likewise.
  3752. * testsuite/libffi.call/ffitest.h: Likewise.
  3753. * testsuite/libffi.call/closure_fn0.c: Likewise.
  3754. * testsuite/libffi.call/closure_fn1.c: Likewise.
  3755. * testsuite/libffi.call/closure_fn2.c: Likewise.
  3756. * testsuite/libffi.call/closure_fn3.c: Likewise.
  3757. * testsuite/libffi.call/cls_1_1byte.c: Likewise.
  3758. * testsuite/libffi.call/cls_3_1byte.c: Likewise.
  3759. * testsuite/libffi.call/cls_4_1byte.c: Likewise.
  3760. * testsuite/libffi.call/cls_2byte.c: Likewise.
  3761. * testsuite/libffi.call/cls_3byte1.c: Likewise.
  3762. * testsuite/libffi.call/cls_3byte2.c: Likewise.
  3763. * testsuite/libffi.call/cls_4byte.c: Likewise.
  3764. * testsuite/libffi.call/cls_5byte.c: Likewise.
  3765. * testsuite/libffi.call/cls_6byte.c: Likewise.
  3766. * testsuite/libffi.call/cls_7byte.c: Likewise.
  3767. * testsuite/libffi.call/cls_8byte.c: Likewise.
  3768. * testsuite/libffi.call/cls_12byte.c: Likewise.
  3769. * testsuite/libffi.call/cls_16byte.c: Likewise.
  3770. * testsuite/libffi.call/cls_20byte.c: Likewise.
  3771. * testsuite/libffi.call/cls_24byte.c: Likewise.
  3772. * testsuite/libffi.call/cls_double.c: Likewise.
  3773. * testsuite/libffi.call/cls_float.c: Likewise.
  3774. * testsuite/libffi.call/cls_uchar.c: Likewise.
  3775. * testsuite/libffi.call/cls_uint.c: Likewise.
  3776. * testsuite/libffi.call/cls_ulonglong.c: Likewise.
  3777. * testsuite/libffi.call/cls_ushort.c: Likewise.
  3778. * testsuite/libffi.call/float.c: Likewise.
  3779. * testsuite/libffi.call/float1.c: Likewise.
  3780. * testsuite/libffi.call/float2.c: Likewise.
  3781. * testsuite/libffi.call/many.c: Likewise.
  3782. * testsuite/libffi.call/many_win32.c: Likewise.
  3783. * testsuite/libffi.call/nested_struct.c: Likewise.
  3784. * testsuite/libffi.call/nested_struct1.c: Likewise.
  3785. * testsuite/libffi.call/pyobjc-tc.c: Likewise.
  3786. * testsuite/libffi.call/problem1.c: Likewise.
  3787. * testsuite/libffi.call/promotion.c: Likewise.
  3788. * testsuite/libffi.call/return_ll.c: Likewise.
  3789. * testsuite/libffi.call/return_sc.c: Likewise.
  3790. * testsuite/libffi.call/return_uc.c: Likewise.
  3791. * testsuite/libffi.call/strlen.c: Likewise.
  3792. * testsuite/libffi.call/strlen_win32.c: Likewise.
  3793. * testsuite/libffi.call/struct1.c: Likewise.
  3794. * testsuite/libffi.call/struct2.c: Likewise.
  3795. * testsuite/libffi.call/struct3.c: Likewise.
  3796. * testsuite/libffi.call/struct4.c: Likewise.
  3797. * testsuite/libffi.call/struct5.c: Likewise.
  3798. * testsuite/libffi.call/struct6.c: Likewise.
  3799. * testsuite/libffi.call/struct7.c: Likewise.
  3800. * testsuite/libffi.call/struct8.c: Likewise.
  3801. * testsuite/libffi.call/struct9.c: Likewise.
  3802. * testsuite/libffi.special/special.exp: New file.
  3803. * testsuite/libffi.special/ffitestcxx.h: Likewise.
  3804. * testsuite/libffi.special/unwindtest.cc: Likewise.
  3805. 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
  3806. * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
  3807. copyright years.
  3808. 2003-08-02 Alan Modra <amodra@bigpond.net.au>
  3809. * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
  3810. structure passing.
  3811. (ffi_closure_helper_LINUX64): Likewise.
  3812. * src/powerpc/linux64.S: Remove code writing to parm save area.
  3813. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
  3814. address in lr from ffi_closure_helper_LINUX64 call to calculate
  3815. table address. Optimize function tail.
  3816. 2003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
  3817. * src/sparc/ffi.c: Handle all floating point registers.
  3818. * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
  3819. 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
  3820. * README: Note that libffi is not part of GCC. Update the project
  3821. URL and status.
  3822. 2003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
  3823. * src/powerpc/ppc_closure.S: Include ffi.h.
  3824. 2003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3825. * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
  3826. Use C style comments.
  3827. 2003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3828. * Makefile.am: Add SHmedia support. Fix a typo of SH support.
  3829. * Makefile.in: Regenerate.
  3830. * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
  3831. * configure: Regenerate.
  3832. * include/ffi.h.in: Add SHmedia support.
  3833. * src/sh64/ffi.c: New file.
  3834. * src/sh64/sysv.S: New file.
  3835. 2003-05-16 Jakub Jelinek <jakub@redhat.com>
  3836. * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
  3837. should be read-only.
  3838. * configure: Rebuilt.
  3839. * fficonfig.h.in: Rebuilt.
  3840. * include/ffi.h.in (EH_FRAME_FLAGS): Define.
  3841. * src/alpha/osf.S: Use EH_FRAME_FLAGS.
  3842. * src/powerpc/linux64.S: Likewise.
  3843. * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
  3844. * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
  3845. if -fpic/-fPIC/-mrelocatable.
  3846. * src/powerpc/powerpc_closure.S: Likewise.
  3847. * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
  3848. #write in .eh_frame flags.
  3849. * src/sparc/v9.S: Likewise.
  3850. * src/x86/unix64.S: Use EH_FRAME_FLAGS.
  3851. * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
  3852. * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
  3853. 2003-05-07 Jeff Sturm <jsturm@one-point.com>
  3854. Fixes PR bootstrap/10656
  3855. * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
  3856. support for .register pseudo-op.
  3857. * src/sparc/v8.S: Use it.
  3858. * fficonfig.h.in: Rebuilt.
  3859. * configure: Rebuilt.
  3860. 2003-04-18 Jakub Jelinek <jakub@redhat.com>
  3861. * include/ffi.h.in (POWERPC64): Define if 64-bit.
  3862. (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
  3863. Make it the default on POWERPC64.
  3864. (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
  3865. * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
  3866. * configure: Rebuilt.
  3867. * src/powerpc/ffi.c (hidden): Define.
  3868. (ffi_prep_args_SYSV): Renamed from
  3869. ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
  3870. (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
  3871. ASM_NEEDS_REGISTERS64): New.
  3872. (ffi_prep_args64): New function.
  3873. (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
  3874. (ffi_call): Likewise.
  3875. (ffi_prep_closure): Likewise.
  3876. (flush_icache): Surround by #ifndef POWERPC64.
  3877. (ffi_dblfl): New union type.
  3878. (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
  3879. (ffi_closure_helper_LINUX64): New function.
  3880. * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
  3881. __powerpc64__.
  3882. * src/powerpc/sysv.S: Likewise.
  3883. (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
  3884. * src/powerpc/linux64.S: New file.
  3885. * src/powerpc/linux64_closure.S: New file.
  3886. * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
  3887. src/powerpc/linux64_closure.S.
  3888. (TARGET_SRC_POWERPC): Likewise.
  3889. * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
  3890. closure_test_fn3): Fix result printing on big-endian 64-bit
  3891. machines.
  3892. (main): Print tst2_arg instead of uninitialized tst2_result.
  3893. * src/ffitest.c (main): Hide what closure pointer really points to
  3894. from the compiler.
  3895. 2003-04-16 Richard Earnshaw <rearnsha@arm.com>
  3896. * configure.in (arm-*-netbsdelf*): Add configuration.
  3897. (configure): Regenerated.
  3898. 2003-04-04 Loren J. Rittle <ljrittle@acm.org>
  3899. * include/Makefile.in: Regenerate.
  3900. 2003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
  3901. * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
  3902. bit mode.
  3903. * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
  3904. Receive closure pointer through parameter, read args using
  3905. __builtin_dwarf_cfa.
  3906. (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
  3907. 2003-03-12 Andreas Schwab <schwab@suse.de>
  3908. * configure.in: Avoid trailing /. in toolexeclibdir.
  3909. * configure: Rebuilt.
  3910. 2003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
  3911. * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
  3912. 2003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
  3913. * libffi/src/powerpc/darwin_closure.S:
  3914. Fix alignement bug, allocate 8 bytes for the result.
  3915. * libffi/src/powerpc/aix_closure.S:
  3916. Likewise.
  3917. * libffi/src/powerpc/ffi_darwin.c:
  3918. Update stackframe description for aix/darwin_closure.S.
  3919. 2003-02-06 Jakub Jelinek <jakub@redhat.com>
  3920. * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
  3921. attribute.
  3922. 2003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
  3923. Andreas Schwab <schwab@suse.de>
  3924. * configure.in: Adjust command to source config-ml.in to account
  3925. for changes to the libffi_basedir definition.
  3926. (libffi_basedir): Remove ${srcdir} from value and include trailing
  3927. slash if nonempty.
  3928. * configure: Regenerate.
  3929. 2003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
  3930. * src/powerpc/ppc_closure.S: Recode to fit shared libs.
  3931. 2003-01-28 Andrew Haley <aph@redhat.com>
  3932. * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
  3933. * src/x86/ffi64.c (ffi_prep_closure): New.
  3934. (ffi_closure_UNIX64_inner): New.
  3935. * src/x86/unix64.S (ffi_closure_UNIX64): New.
  3936. 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
  3937. * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
  3938. Remove USE_LIBDIR conditional.
  3939. * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
  3940. * Makefile.in, configure: Rebuilt.
  3941. 2003-01027 David Edelsohn <edelsohn@gnu.org>
  3942. * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
  3943. * Makefile.in: Regenerate.
  3944. 2003-01-22 Andrew Haley <aph@redhat.com>
  3945. * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
  3946. unwind info.
  3947. 2003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
  3948. * src/powerpc/darwin.S: Add unwind info.
  3949. * src/powerpc/darwin_closure.S: Likewise.
  3950. 2003-01-14 Andrew Haley <aph@redhat.com>
  3951. * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
  3952. (ffi_prep_cif_machdep): Likewise.
  3953. * src/x86/unix64.S: Add unwind info.
  3954. 2003-01-14 Andreas Jaeger <aj@suse.de>
  3955. * src/ffitest.c (main): Only use ffi_closures if those are
  3956. supported.
  3957. 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
  3958. * libffi/src/ffitest.c
  3959. add closure testcases
  3960. 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
  3961. * libffi/src/powerpc/ffi.c
  3962. fix alignment bug for float (4 byte aligned iso 8 byte)
  3963. 2003-01-09 Geoffrey Keating <geoffk@apple.com>
  3964. * src/powerpc/ffi_darwin.c: Remove RCS version string.
  3965. * src/powerpc/darwin.S: Remove RCS version string.
  3966. 2003-01-03 Jeff Sturm <jsturm@one-point.com>
  3967. * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
  3968. * src/ffitest.c (main): Use static storage for closure.
  3969. * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
  3970. * src/sparc/v8.S (ffi_closure_v8): New.
  3971. * src/sparc/v9.S (ffi_closure_v9): New.
  3972. 2002-11-10 Ranjit Mathew <rmathew@hotmail.com>
  3973. * include/ffi.h.in: Added FFI_STDCALL ffi_type
  3974. enumeration for X86_WIN32.
  3975. * src/x86/win32.S: Added ffi_call_STDCALL function
  3976. definition.
  3977. * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
  3978. switch cases for recognising FFI_STDCALL and
  3979. calling ffi_call_STDCALL if target is X86_WIN32.
  3980. * src/ffitest.c (my_stdcall_strlen/stdcall_many):
  3981. stdcall versions of the "my_strlen" and "many"
  3982. test functions (for X86_WIN32).
  3983. Added test cases to test stdcall invocation using
  3984. these functions.
  3985. 2002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
  3986. * src/sh/sysv.S: Add DWARF2 unwind info.
  3987. 2002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
  3988. * src/s390/sysv.S (.eh_frame section): Make section read-only.
  3989. 2002-11-26 Jim Wilson <wilson@redhat.com>
  3990. * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
  3991. 2002-11-23 H.J. Lu <hjl@gnu.org>
  3992. * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
  3993. Include ../config/accross.m4.
  3994. * aclocal.m4; Rebuild.
  3995. * configure: Likewise.
  3996. 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
  3997. * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
  3998. 2002-11-11 DJ Delorie <dj@redhat.com>
  3999. * configure.in: Look for common files in the right place.
  4000. 2002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
  4001. * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
  4002. raw data as _Jv_word values, not ffi_raw.
  4003. (ffi_java_ptrarray_to_raw): Likewise.
  4004. (ffi_java_rvalue_to_raw): New function.
  4005. (ffi_java_raw_call): Call it.
  4006. (ffi_java_raw_to_rvalue): New function.
  4007. (ffi_java_translate_args): Call it.
  4008. * src/ffitest.c (closure_test_fn): Interpret return value
  4009. as ffi_arg, not int.
  4010. * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
  4011. FFI_TYPE_POINTER case.
  4012. (ffi_closure_helper_SYSV): Likewise. Also, assume return
  4013. values extended to word size.
  4014. 2002-10-02 Andreas Jaeger <aj@suse.de>
  4015. * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
  4016. 2002-10-01 Bo Thorsen <bo@smetana.suse.de>
  4017. * include/ffi.h.in: Fix i386 win32 compilation.
  4018. 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
  4019. * configure.in: Add s390x-*-linux-* target.
  4020. * configure: Regenerate.
  4021. * include/ffi.h.in: Define S390X for s390x targets.
  4022. (FFI_CLOSURES): Define for s390/s390x.
  4023. (FFI_TRAMPOLINE_SIZE): Likewise.
  4024. (FFI_NATIVE_RAW_API): Likewise.
  4025. * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
  4026. * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
  4027. * src/s390/ffi.c: Major rework of existing code. Add support for
  4028. s390x targets. Add closure support.
  4029. * src/s390/sysv.S: Likewise.
  4030. 2002-09-29 Richard Earnshaw <rearnsha@arm.com>
  4031. * src/arm/sysv.S: Fix typo.
  4032. 2002-09-28 Richard Earnshaw <rearnsha@arm.com>
  4033. * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
  4034. has defined __USER_LABEL_PREFIX__, then use it in CNAME.
  4035. (ffi_call_SYSV): Handle soft-float.
  4036. 2002-09-27 Bo Thorsen <bo@suse.de>
  4037. * include/ffi.h.in: Fix multilib x86-64 support.
  4038. 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  4039. * Makefile.am (all-multi): Fix multilib parallel build.
  4040. 2002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
  4041. * configure.in (sh[34]*-*-linux*): Add brackets.
  4042. * configure: Regenerate.
  4043. 2002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
  4044. * Makefile.am: Add SH support.
  4045. * Makefile.in: Regenerate.
  4046. * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
  4047. * configure: Regenerate.
  4048. * include/ffi.h.in: Add SH support.
  4049. * src/sh/ffi.c: New file.
  4050. * src/sh/sysv.S: New file.
  4051. * src/types.c: Add SH support.
  4052. 2002-07-16 Bo Thorsen <bo@suse.de>
  4053. * src/x86/ffi64.c: New file that adds x86-64 support.
  4054. * src/x86/unix64.S: New file that handles argument setup for
  4055. x86-64.
  4056. * src/x86/sysv.S: Don't use this on x86-64.
  4057. * src/x86/ffi.c: Don't use this on x86-64.
  4058. Remove unused vars.
  4059. * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
  4060. for x86-64.
  4061. * src/ffitest.c (struct6): New test that tests a special case in
  4062. the x86-64 ABI.
  4063. (struct7): Likewise.
  4064. (struct8): Likewise.
  4065. (struct9): Likewise.
  4066. (closure_test_fn): Silence warning about this when it's not used.
  4067. (main): Add the new tests.
  4068. (main): Fix a couple of wrong casts and silence some compiler warnings.
  4069. * include/ffi.h.in: Add x86-64 ABI definition.
  4070. * fficonfig.h.in: Regenerate.
  4071. * Makefile.am: Add x86-64 support.
  4072. * configure.in: Likewise.
  4073. * Makefile.in: Regenerate.
  4074. * configure: Likewise.
  4075. 2002-06-24 Bo Thorsen <bo@suse.de>
  4076. * src/types.c: Merge settings for similar architectures.
  4077. Add x86-64 sizes and alignments.
  4078. 2002-06-23 Bo Thorsen <bo@suse.de>
  4079. * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
  4080. * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
  4081. * src/mips/ffi.c (ffi_prep_args): Likewise.
  4082. * src/m68k/ffi.c (ffi_prep_args): Likewise.
  4083. 2002-07-18 H.J. Lu (hjl@gnu.org)
  4084. * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
  4085. (libffi_la_SOURCES): Support MIPS_LINUX.
  4086. (libffi_convenience_la_SOURCES): Likewise.
  4087. * Makefile.in: Regenerated.
  4088. * configure.in (mips64*-*): Skip.
  4089. (mips*-*-linux*): New.
  4090. * configure: Regenerated.
  4091. * src/mips/ffi.c: Include <sgidefs.h>.
  4092. 2002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
  4093. * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
  4094. 2002-05-27 Roger Sayle <roger@eyesopen.com>
  4095. * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
  4096. 2002-05-27 Bo Thorsen <bo@suse.de>
  4097. * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
  4098. fix formatting.
  4099. 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
  4100. * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
  4101. beginning of function (for older apple cc).
  4102. 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
  4103. * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
  4104. script entry, and set LD to it when configuring multilibs.
  4105. * configure: Rebuilt.
  4106. 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
  4107. * configure.in (sparc64-*-netbsd*): Add target.
  4108. (sparc-*-netbsdelf*): Likewise.
  4109. * configure: Regenerate.
  4110. 2002-04-28 David S. Miller <davem@redhat.com>
  4111. * configure.in, configure: Fix SPARC test in previous change.
  4112. 2002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
  4113. * Makefile.am: Add Linux for S/390 support.
  4114. * Makefile.in: Regenerate.
  4115. * configure.in: Add Linux for S/390 support.
  4116. * configure: Regenerate.
  4117. * include/ffi.h.in: Add Linux for S/390 support.
  4118. * src/s390/ffi.c: New file from libffi CVS tree.
  4119. * src/s390/sysv.S: New file from libffi CVS tree.
  4120. 2002-04-28 Jakub Jelinek <jakub@redhat.com>
  4121. * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
  4122. %r_disp32().
  4123. * src/sparc/v8.S: Use it.
  4124. * src/sparc/v9.S: Likewise.
  4125. * fficonfig.h.in: Rebuilt.
  4126. * configure: Rebuilt.
  4127. 2002-04-08 Hans Boehm <Hans_Boehm@hp.com>
  4128. * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
  4129. correctly.
  4130. * src/ia64/unix.S: Add unwind information. Fix comments.
  4131. Save sp in a way that's compatible with unwind info.
  4132. (ffi_call_unix): Correctly restore sp in all cases.
  4133. * src/ia64/ffi.c: Add, fix comments.
  4134. 2002-04-08 Jakub Jelinek <jakub@redhat.com>
  4135. * src/sparc/v8.S: Make .eh_frame dependent on target word size.
  4136. 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
  4137. * configure.in (alpha*-*-netbsd*): Add target.
  4138. * configure: Regenerate.
  4139. 2002-04-04 Jeff Sturm <jsturm@one-point.com>
  4140. * src/sparc/v8.S: Add unwind info.
  4141. * src/sparc/v9.S: Likewise.
  4142. 2002-03-30 Krister Walfridsson <cato@df.lth.se>
  4143. * configure.in: Enable i*86-*-netbsdelf*.
  4144. * configure: Rebuilt.
  4145. 2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
  4146. PR other/2620
  4147. * src/mips/n32.s: Delete
  4148. * src/mips/o32.s: Delete
  4149. 2002-03-21 Loren J. Rittle <ljrittle@acm.org>
  4150. * configure.in: Enable alpha*-*-freebsd*.
  4151. * configure: Rebuilt.
  4152. 2002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
  4153. * Makefile.am: libfficonvenience -> libffi_convenience.
  4154. * Makefile.in: Rebuilt.
  4155. * Makefile.am: Define ffitest_OBJECTS.
  4156. * Makefile.in: Rebuilt.
  4157. 2002-03-07 Andreas Tobler <toa@pop.agri.ch>
  4158. David Edelsohn <edelsohn@gnu.org>
  4159. * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
  4160. (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
  4161. (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
  4162. * Makefile.in: Regenerate.
  4163. * include/ffi.h.in: Add AIX and Darwin closure definitions.
  4164. * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
  4165. (flush_icache, flush_range): New functions.
  4166. (ffi_closure_helper_DARWIN): New function.
  4167. * src/powerpc/aix_closure.S: New file.
  4168. * src/powerpc/darwin_closure.S: New file.
  4169. 2002-02-24 Jeff Sturm <jsturm@one-point.com>
  4170. * include/ffi.h.in: Add typedef for ffi_arg.
  4171. * src/ffitest.c (main): Declare rint with ffi_arg.
  4172. 2002-02-21 Andreas Tobler <toa@pop.agri.ch>
  4173. * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
  4174. number of GPRs for floating-point arguments.
  4175. 2002-01-31 Anthony Green <green@redhat.com>
  4176. * configure: Rebuilt.
  4177. * configure.in: Replace CHECK_SIZEOF and endian tests with
  4178. cross-compiler friendly macros.
  4179. * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
  4180. macros.
  4181. 2002-01-18 David Edelsohn <edelsohn@gnu.org>
  4182. * src/powerpc/darwin.S (_ffi_call_AIX): New.
  4183. * src/powerpc/aix.S (ffi_call_DARWIN): New.
  4184. 2002-01-17 David Edelsohn <edelsohn@gnu.org>
  4185. * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
  4186. (TARGET_SRC_POWERPC_AIX): New.
  4187. (POWERPC_AIX): New stanza.
  4188. * Makefile.in: Regenerate.
  4189. * configure.in: Add AIX case.
  4190. * configure: Regenerate.
  4191. * include/ffi.h.in (ffi_abi): Add FFI_AIX.
  4192. * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
  4193. size. Fix "long double" support.
  4194. (ffi_call): Add FFI_AIX case.
  4195. * src/powerpc/aix.S: New.
  4196. 2001-10-09 John Hornkvist <john@toastedmarshmallow.com>
  4197. Implement Darwin PowerPC ABI.
  4198. * configure.in: Handle powerpc-*-darwin*.
  4199. * Makefile.am: Set source files for POWERPC_DARWIN.
  4200. * configure: Rebuilt.
  4201. * Makefile.in: Rebuilt.
  4202. * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
  4203. POWERPC_DARWIN.
  4204. * src/powerpc/darwin.S: New file.
  4205. * src/powerpc/ffi_darwin.c: New file.
  4206. 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
  4207. * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
  4208. 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  4209. * src/x86/sysv.S: Avoid gas-only .balign directive.
  4210. Use C style comments.
  4211. 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  4212. * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
  4213. Fixes PR bootstrap/3563.
  4214. 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  4215. * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
  4216. 2001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  4217. * configure.in: Recognize sparc*-sun-* host.
  4218. * configure: Regenerate.
  4219. 2001-06-06 Andrew Haley <aph@redhat.com>
  4220. * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
  4221. 2001-06-03 Andrew Haley <aph@redhat.com>
  4222. * src/alpha/osf.S: Add unwind info.
  4223. * src/powerpc/sysv.S: Add unwind info.
  4224. * src/powerpc/ppc_closure.S: Likewise.
  4225. 2000-05-31 Jeff Sturm <jsturm@one-point.com>
  4226. * configure.in: Fix AC_ARG_ENABLE usage.
  4227. * configure: Rebuilt.
  4228. 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
  4229. * configure.in: Remove warning about beta code.
  4230. * configure: Rebuilt.
  4231. 2001-04-25 Hans Boehm <Hans_Boehm@hp.com>
  4232. * src/ia64/unix.S: Restore stack pointer when returning from
  4233. ffi_closure_UNIX.
  4234. * src/ia64/ffi.c: Fix typo in comment.
  4235. 2001-04-18 Jim Wilson <wilson@redhat.com>
  4236. * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
  4237. to eliminate RAW DV.
  4238. 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
  4239. * Makefile.am: Make a libtool convenience library.
  4240. * Makefile.in: Rebuilt.
  4241. 2001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
  4242. * configure.in: Use different syntax for subdirectory creation.
  4243. * configure: Rebuilt.
  4244. 2001-03-27 Jon Beniston <jon@beniston.com>
  4245. * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
  4246. * configure: Rebuilt.
  4247. * Makefile.am: Added X86_WIN32 target support.
  4248. * Makefile.in: Rebuilt.
  4249. * include/ffi.h.in: Added X86_WIN32 target support.
  4250. * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
  4251. * src/types.c: Added X86_WIN32 target support.
  4252. * src/x86/win32.S: New file. Based on sysv.S, but with EH
  4253. stuff removed and made to work with CygWin's gas.
  4254. 2001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
  4255. * configure.in: Make target subdirectory in build dir.
  4256. * Makefile.am: Override suffix based rules to specify correct output
  4257. subdirectory.
  4258. * Makefile.in: Rebuilt.
  4259. * configure: Rebuilt.
  4260. 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
  4261. * src/powerpc/ppc_closure.S: New file.
  4262. * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
  4263. involving long long and register pairs.
  4264. (ffi_prep_closure): New function.
  4265. (flush_icache): Likewise.
  4266. (ffi_closure_helper_SYSV): Likewise.
  4267. * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
  4268. (FFI_TRAMPOLINE_SIZE): Likewise.
  4269. (FFI_NATIVE_RAW_API): Likewise.
  4270. * Makefile.in: Rebuilt.
  4271. * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
  4272. (TARGET_SRC_POWERPC): Likewise.
  4273. 2001-03-19 Tom Tromey <tromey@redhat.com>
  4274. * Makefile.in: Rebuilt.
  4275. * Makefile.am (ffitest_LDFLAGS): New macro.
  4276. 2001-03-02 Nick Clifton <nickc@redhat.com>
  4277. * include/ffi.h.in: Remove RCS ident string.
  4278. * include/ffi_mips.h: Remove RCS ident string.
  4279. * src/debug.c: Remove RCS ident string.
  4280. * src/ffitest.c: Remove RCS ident string.
  4281. * src/prep_cif.c: Remove RCS ident string.
  4282. * src/types.c: Remove RCS ident string.
  4283. * src/alpha/ffi.c: Remove RCS ident string.
  4284. * src/alpha/osf.S: Remove RCS ident string.
  4285. * src/arm/ffi.c: Remove RCS ident string.
  4286. * src/arm/sysv.S: Remove RCS ident string.
  4287. * src/mips/ffi.c: Remove RCS ident string.
  4288. * src/mips/n32.S: Remove RCS ident string.
  4289. * src/mips/o32.S: Remove RCS ident string.
  4290. * src/sparc/ffi.c: Remove RCS ident string.
  4291. * src/sparc/v8.S: Remove RCS ident string.
  4292. * src/sparc/v9.S: Remove RCS ident string.
  4293. * src/x86/ffi.c: Remove RCS ident string.
  4294. * src/x86/sysv.S: Remove RCS ident string.
  4295. 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
  4296. * include/ffi.h.in: Change sourceware.cygnus.com references to
  4297. gcc.gnu.org.
  4298. 2000-12-09 Richard Henderson <rth@redhat.com>
  4299. * src/alpha/ffi.c (ffi_call): Simplify struct return test.
  4300. (ffi_closure_osf_inner): Index rather than increment avalue
  4301. and arg_types. Give ffi_closure_osf the raw return value type.
  4302. * src/alpha/osf.S (ffi_closure_osf): Handle return value type
  4303. promotion.
  4304. 2000-12-07 Richard Henderson <rth@redhat.com>
  4305. * src/raw_api.c (ffi_translate_args): Fix typo.
  4306. (ffi_prep_closure): Likewise.
  4307. * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
  4308. FFI_TRAMPOLINE_SIZE.
  4309. * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
  4310. cif->bytes for new ffi_call_osf implementation.
  4311. (ffi_prep_args): Absorb into ...
  4312. (ffi_call): ... here. Do all stack allocation here and
  4313. avoid a callback function.
  4314. (ffi_prep_closure, ffi_closure_osf_inner): New.
  4315. * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
  4316. (ffi_closure_osf): New.
  4317. 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
  4318. * config.guess, config.sub, install-sh: Removed.
  4319. * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
  4320. * Makefile.in: Rebuilt.
  4321. * acinclude.m4: Include libtool macros from the top level.
  4322. * aclocal.m4, configure: Rebuilt.
  4323. 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
  4324. * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
  4325. * configure: Rebuilt.
  4326. 2000-05-11 Scott Bambrough <scottb@netwinder.org>
  4327. * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
  4328. memory correctly. Use conditional instructions, not branches where
  4329. possible.
  4330. 2000-05-04 Tom Tromey <tromey@cygnus.com>
  4331. * configure: Rebuilt.
  4332. * configure.in: Match `arm*-*-linux-*'.
  4333. From Chris Dornan <cdornan@arm.com>.
  4334. 2000-04-28 Jakub Jelinek <jakub@redhat.com>
  4335. * Makefile.am (SUBDIRS): Define.
  4336. (AM_MAKEFLAGS): Likewise.
  4337. (Multilib support.): Add section.
  4338. * Makefile.in: Rebuilt.
  4339. * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
  4340. New variables. Set for gcc using -print-multi-lib. Export them
  4341. to libtool.
  4342. (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
  4343. * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
  4344. for -shared links.
  4345. (extra_compiler_flags_value, extra_compiler_flags): Check these
  4346. for extra compiler options which need to be passed down in
  4347. compiler_flags.
  4348. 2000-04-16 Anthony Green <green@redhat.com>
  4349. * configure: Rebuilt.
  4350. * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
  4351. 2000-04-14 Jakub Jelinek <jakub@redhat.com>
  4352. * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
  4353. Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
  4354. * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
  4355. Replace all void * sizeofs with sizeof(int).
  4356. Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
  4357. different than DOUBLE.
  4358. Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
  4359. (ffi_prep_args_v9): New function.
  4360. (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
  4361. (ffi_V9_return_struct): New function.
  4362. (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
  4363. 32bit code (not yet cross-arch calls).
  4364. * src/sparc/v8.S: Add struct return delay nop.
  4365. Handle long long.
  4366. * src/sparc/v9.S: New file.
  4367. * src/prep_cif.c (ffi_prep_cif): Return structure pointer
  4368. is used on sparc64 only for structures larger than 32 bytes.
  4369. Pass by reference for structures is done for structure arguments
  4370. larger than 16 bytes.
  4371. * src/ffitest.c (main): Use 64bit rint on sparc64.
  4372. Run long long tests on sparc.
  4373. * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
  4374. sparc64.
  4375. (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
  4376. on sparc64.
  4377. * configure.in (sparc-*-linux*): New supported target.
  4378. (sparc64-*-linux*): Likewise.
  4379. * configure: Rebuilt.
  4380. * Makefile.am: Add v9.S to SPARC files.
  4381. * Makefile.in: Likewise.
  4382. (LINK): Surround $(CCLD) into double quotes, so that multilib
  4383. compiles work correctly.
  4384. 2000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
  4385. * configure: Rebuilt.
  4386. * configure.in: (i*86-*-solaris*): New libffi target. Patch
  4387. proposed by Bryce McKinlay.
  4388. 2000-03-20 Tom Tromey <tromey@cygnus.com>
  4389. * Makefile.in: Hand edit for java_raw_api.lo.
  4390. 2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
  4391. * config.guess, config.sub: Update from the gcc tree.
  4392. Fix for PR libgcj/168.
  4393. 2000-03-03 Tom Tromey <tromey@cygnus.com>
  4394. * Makefile.in: Fixed ia64 by hand.
  4395. * configure: Rebuilt.
  4396. * configure.in (--enable-multilib): New option.
  4397. (libffi_basedir): New subst.
  4398. (AC_OUTPUT): Added multilib code.
  4399. 2000-03-02 Tom Tromey <tromey@cygnus.com>
  4400. * Makefile.in: Rebuilt.
  4401. * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
  4402. directory name.
  4403. 2000-02-25 Hans Boehm <boehm@acm.org>
  4404. * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
  4405. files.
  4406. * src/raw_api.c (ffi_translate_args): Fixed typo in argument
  4407. list.
  4408. (ffi_prep_raw_closure): Use ffi_translate_args, not
  4409. ffi_closure_translate.
  4410. * src/java_raw_api.c: New file.
  4411. * src/ffitest.c (closure_test_fn): New function.
  4412. (main): Define `rint' as long long on IA64. Added new test when
  4413. FFI_CLOSURES is defined.
  4414. * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
  4415. (ffi_abi): Recognize IA64.
  4416. (ffi_raw): Added `flt' field.
  4417. Added "Java raw API" code.
  4418. * configure.in: Recognize ia64.
  4419. * Makefile.am (TARGET_SRC_IA64): New macro.
  4420. (libffi_la_common_SOURCES): Added java_raw_api.c.
  4421. (libffi_la_SOURCES): Define in IA64 case.
  4422. 2000-01-04 Tom Tromey <tromey@cygnus.com>
  4423. * Makefile.in: Rebuilt with newer automake.
  4424. 1999-12-31 Tom Tromey <tromey@cygnus.com>
  4425. * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
  4426. 1999-09-01 Tom Tromey <tromey@cygnus.com>
  4427. * include/ffi.h.in: Removed PACKAGE and VERSION defines and
  4428. undefs.
  4429. * fficonfig.h.in: Rebuilt.
  4430. * configure: Rebuilt.
  4431. * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
  4432. Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
  4433. * acconfig.h: Don't #undef PACKAGE or VERSION.
  4434. 1999-08-09 Anthony Green <green@cygnus.com>
  4435. * include/ffi.h.in: Try to work around messy header problem
  4436. with PACKAGE and VERSION.
  4437. * configure: Rebuilt.
  4438. * configure.in: Change version to 2.00-beta.
  4439. * fficonfig.h.in: Rebuilt.
  4440. * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
  4441. * src/x86/ffi.c (ffi_raw_call): Rename.
  4442. 1999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
  4443. * src/x86/ffi.c (ffi_closure_SYSV): New function.
  4444. (ffi_prep_incoming_args_SYSV): Ditto.
  4445. (ffi_prep_closure): Ditto.
  4446. (ffi_closure_raw_SYSV): Ditto.
  4447. (ffi_prep_raw_closure): More ditto.
  4448. (ffi_call_raw): Final ditto.
  4449. * include/ffi.h.in: Add definitions for closure and raw API.
  4450. * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
  4451. FFI_TYPE_UINT64.
  4452. * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
  4453. * src/raw_api.c: New file.
  4454. * include/ffi.h.in (ffi_raw): New type.
  4455. (UINT_ARG, SINT_ARG): New defines.
  4456. (ffi_closure, ffi_raw_closure): New types.
  4457. (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
  4458. * configure.in: Add check for endianness and sizeof void*.
  4459. * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
  4460. instead of directly.
  4461. * configure: Rebuilt.
  4462. Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
  4463. * configure.in: Add x86 and powerpc BeOS configurations.
  4464. From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
  4465. 1999-05-09 Anthony Green <green@cygnus.com>
  4466. * configure.in: Add warning about this being beta code.
  4467. Remove src/Makefile.am from the picture.
  4468. * configure: Rebuilt.
  4469. * Makefile.am: Move logic from src/Makefile.am. Add changes
  4470. to support libffi as a target library.
  4471. * Makefile.in: Rebuilt.
  4472. * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
  4473. Upgraded to new autoconf, automake, libtool.
  4474. * README: Tweaks.
  4475. * LICENSE: Update copyright date.
  4476. * src/Makefile.am, src/Makefile.in: Removed.
  4477. 1998-11-29 Anthony Green <green@cygnus.com>
  4478. * include/ChangeLog: Removed.
  4479. * src/ChangeLog: Removed.
  4480. * src/mips/ChangeLog: Removed.
  4481. * src/sparc/ChangeLog: Remboved.
  4482. * src/x86/ChangeLog: Removed.
  4483. * ChangeLog.v1: Created.