ChangeLog 186 KB

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