ChangeLog-2000 260 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282
  1. 2000-12-29 Jakub Jelinek <jakub@redhat.com>
  2. * decl.c (init_decl_processing): Fix sign of wchar_type_node.
  3. 2000-12-29 Mark Mitchell <mark@codesourcery.com>
  4. * class.c (pushclass): Remove #if 0'd code.
  5. * cp-tree.h (overload_template_name): Remove.
  6. * decl.c (store_bindings): Simplify.
  7. (pop_from_top_level): Likewise.
  8. * pt.c (overload_template_name): Remove.
  9. (instantiate_decl): Don't call push_to_top_level if it's not
  10. needed.
  11. 2000-12-28 Mark Mitchell <mark@codesourcery.com>
  12. * pt.c (register_local_specialization): Don't return a value.
  13. (lookup_template_class): Use move-to-front heuristic when looking
  14. up template instantiations.
  15. (instantiate_decl): Only push_to_top_level when we're actually
  16. going to instantiate the template.
  17. 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
  18. * search.c (binfo_for_vtable): Return least derived class, not
  19. most. Handle secondary vtables.
  20. 2000-12-22 Jason Merrill <jason@redhat.com>
  21. * pt.c (more_specialized): Don't optimize len==0.
  22. (fn_type_unification): If we're adding the return type, increase len.
  23. * typeck.c (build_binary_op): Fix pmf comparison logic.
  24. * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
  25. DECL_STATIC_FUNCTION_P.
  26. * semantics.c (genrtl_finish_function): Don't try to jump to
  27. return_label unless it exists.
  28. In partial ordering for a call, ignore parms for which we don't have
  29. a real argument.
  30. * call.c (joust): Pass len to more_specialized.
  31. (add_template_candidate_real): Strip 'this', pass len.
  32. * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
  33. (get_bindings_order): New fn. Pass len down.
  34. (get_bindings_real): Strip 'this', pass len.
  35. (fn_type_unification): Likewise.
  36. (type_unification_real): Succeed after checking 'len' args.
  37. (most_specialized_instantiation): Lose explicit_args parm.
  38. * class.c (resolve_address_of_overloaded_function): Strip 'this',
  39. pass len.
  40. 2000-12-21 Jason Merrill <jason@redhat.com>
  41. * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
  42. DECL_TEMPLATE_RESULT.
  43. * search.c (lookup_field_r): Call lookup_fnfields_1, not
  44. lookup_fnfields_here.
  45. * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
  46. * call.c (build_object_call): Also allow conversions that return
  47. reference to pointer to function.
  48. (add_conv_candidate): Handle totype being ref to ptr to fn.
  49. (build_field_call): Also allow members of type reference to function.
  50. Lose support for calling pointer to METHOD_TYPE fields.
  51. * error.c (dump_expr): Handle *_CAST_EXPR.
  52. * typeck2.c (build_scoped_ref): Always convert to the naming class.
  53. * tree.c (break_out_cleanups): Lose.
  54. * cp-tree.h: Remove prototype.
  55. * typeck.c (build_component_ref): Don't break_out_cleanups.
  56. (build_compound_expr): Likewise.
  57. * semantics.c (finish_expr_stmt): Likewise.
  58. 2000-12-20 Richard Henderson <rth@redhat.com>
  59. * cp-tree.h: Update declarations.
  60. * decl.c (finish_case_label): Return the new stmt node.
  61. * semantics.c (finish_goto_stmt): Likewise.
  62. (finish_expr_stmt, finish_return_stmt): Likewise.
  63. (finish_break_stmt, finish_continue_stmt): Likewise.
  64. (finish_asm_stmt): Likewise.
  65. * parse.y (already_scoped_stmt): Set STMT_LINENO.
  66. (compstmt, implicitly_scoped_stmt, stmt): Likewise.
  67. (simple_if, simple_stmt): Return the new stmt node.
  68. (save_lineno): New.
  69. 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
  70. * cp-tree.h: Don't declare warn_long_long.
  71. 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
  72. * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
  73. IS_AGGR_TYPE.
  74. 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
  75. * pt.c (unify): Handle when both ARG and PARM are
  76. BOUND_TEMPLATE_TEMPLATE_PARM.
  77. 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
  78. * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
  79. DECL_TEMPLATE_PARM_P.
  80. 2000-12-15 Jason Merrill <jason@redhat.com>
  81. * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
  82. * init.c (build_new_1): Don't strip quals from type.
  83. * decl.c (pushdecl): Don't check for linkage on a non-decl.
  84. * call.c (build_op_delete_call): See through ARRAY_TYPEs.
  85. * call.c (build_new_function_call): Lose space before paren in
  86. error message.
  87. (build_new_method_call): Likewise.
  88. * typeck2.c (build_m_component_ref): Propagate quals from datum.
  89. 2000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
  90. * pt.c (check_explicit_specialization): Propagate default
  91. function arguments to explicit specializations.
  92. 2000-12-13 DJ Delorie <dj@redhat.com>
  93. * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
  94. and <? operators.
  95. 2000-12-08 Jason Merrill <jason@redhat.com>
  96. * error.c (dump_function_name): Don't let the user see __comp_ctor.
  97. Clean up copy-initialization in overloading code.
  98. * call.c (build_user_type_conversion_1): Die if we are asked to
  99. convert to the same or a base type.
  100. (implicit_conversion): Avoid doing so. Lose reference binding code.
  101. (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
  102. direct-initialization. Also do direct-init part of copy-init.
  103. (build_user_type_conversion): Don't provide context to convert_like.
  104. * cvt.c (ocp_convert): build_user_type_conversion will now provide
  105. the constructor call for copy-init.
  106. * pt.c (tsubst_decl): Call clone_function_decl here if this is an
  107. instantiation of a member template.
  108. (do_decl_instantiation): Not here.
  109. 2000-12-07 Nathan Sidwell <nathan@codesourcery.com>
  110. * class.c (check_field_decls): Don't special case anonymous
  111. fields in error messages.
  112. (note_name_declared_in_class): Use %D on diagnostic.
  113. * tree.c (pod_type_p): Use strip_array_types.
  114. (cp_valid_lang_attribute): Likewise.
  115. * typeck.c (cp_type_quals): Strip arrays separately, to avoid
  116. multiple evaluations.
  117. (cp_has_mutable_p): Use strip_array_types.
  118. 2000-12-07 Nathan Sidwell <nathan@codesourcery.com>
  119. * cp-tree.h (sufficient_parms_p): Declare new function.
  120. * call.c (sufficient_parms_p): New function, broken out of ...
  121. (add_function_candidate): ... here. Use it.
  122. (add_conv_candidate): Use it.
  123. * decl.c (grok_ctor_properties): Use it.
  124. 2000-12-07 Jakub Jelinek <jakub@redhat.com>
  125. * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
  126. 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
  127. * decl2.c (lang_decode_option): Handle -Wformat-security.
  128. 2000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
  129. * pt.c (verify_class_unification): New function.
  130. (get_class_bindings): Use it.
  131. (try_class_unification): Tidy.
  132. (unify): Handle when argument of a template-id is not
  133. template parameter dependent.
  134. (template_args_equal): Handle when TREE_CODE's do not match.
  135. 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
  136. * lang-specs.h (c++): When invoking the stand-alone preprocessor
  137. for -save-temps, pass all relevant -Defines to it, and then don't
  138. pass them to cc1plus.
  139. 2000-12-05 Will Cohen <wcohen@redhat.com>
  140. * decl.c (finish_case_label): Cleared
  141. more_cleanups_ok in surrounding function scopes.
  142. (define_label): Likewise.
  143. 2000-12-05 Nathan Sidwell <nathan@codesourcery.com>
  144. * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
  145. (get_matching_virtual): Remove.
  146. (look_for_overrides): Declare new function.
  147. * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
  148. DECL_VINDEX here.
  149. * class.c (check_for_override): Move base class iteration code
  150. to look_for_overrides.
  151. * search.c (next_baselink): Remove.
  152. (get_virtuals_named_this): Remove.
  153. (get_virtual_destructor): Remove.
  154. (tree_has_any_destructors_p): Remove.
  155. (struct gvnt_info): Remove.
  156. (check_final_overrider): Remove `virtual' from error messages.
  157. (get_matching_virtuals): Remove. Move functionality to ...
  158. (look_for_overrides): ... here, and ...
  159. (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
  160. to be overriding.
  161. 2000-12-05 Nathan Sidwell <nathan@codesourcery.com>
  162. * typeck.c (get_delta_difference): If via a virtual base,
  163. return zero.
  164. * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
  165. adjustment.
  166. 2000-12-04 Richard Henderson <rth@redhat.com>
  167. * error.c (dump_tree): Use output_add_string not OB_PUTS.
  168. 2000-12-04 Jason Merrill <jason@redhat.com>
  169. * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
  170. (write_builtin_type): Pass intSI_type_node and the like through
  171. type_for_mode.
  172. * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
  173. Pass intSI_type_node and the like through type_for_mode.
  174. * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
  175. * pt.c (tsubst, unify): Likewise.
  176. * tree.c (walk_tree): Likewise.
  177. * error.c (dump_type): Likewise.
  178. (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
  179. * Make-lang.in: Tweak top comment for emacs.
  180. (cp/TAGS): Restore.
  181. * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
  182. * class.c (clone_function_decl): Robustify.
  183. 2000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
  184. * decl.c (store_bindings): Only search in the non modified
  185. old_bindings for duplicates.
  186. 2000-12-04 Nathan Sidwell <nathan@codesourcery.com>
  187. * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
  188. TYPE_POLYMORPHIC_P.
  189. * typeck.c (build_static_cast): Remove unused variable.
  190. 2000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
  191. * pt.c: Fix typo in comment.
  192. 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
  193. * decl2.c (warn_format): Remove definition.
  194. (lang_decode_option): Handle -Wformat-nonliteral,
  195. -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
  196. 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
  197. * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
  198. (init_decl_processing): Don't create string_type_node,
  199. const_string_type_node, wint_type_node, intmax_type_node,
  200. uintmax_type_node, default_function_type, ptrdiff_type_node and
  201. unsigned_ptrdiff_type_node. Adjust position of call to
  202. c_common_nodes_and_builtins.
  203. (identifier_global_value): New function.
  204. 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>
  205. * call.c (standard_conversion): Reject pointer to member
  206. conversions from ambiguous, inaccessible or virtual bases.
  207. * typeck.c (build_static_cast): Don't check pointers to members
  208. specially.
  209. 2000-11-30 Nathan Sidwell <nathan@codesourcery.com>
  210. * method.c (do_build_copy_constructor): Preserve cv
  211. qualifications when accessing source object members.
  212. (do_build_assign_ref): Likewise. Remove separate diagnostics for
  213. unnamed fields.
  214. 2000-11-30 Nathan Sidwell <nathan@codesourcery.com>
  215. * method.c (do_build_assign_ref): Construct appropriately
  216. CV-qualified base reference. Don't allow const casts in base
  217. conversion.
  218. 2000-11-30 Nathan Sidwell <nathan@codesourcery.com>
  219. * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
  220. incomplete return type.
  221. 2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
  222. * parse.y (base_class.1): Produce a _TYPE not a _DECL.
  223. * semantics.c (finish_base_specifier): Accept a _TYPE not a
  224. _DECL.
  225. 2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
  226. * spew.c (yyerror): Cope if yylval.ttype is NULL.
  227. 2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
  228. * decl.c (grokdeclarator): Diagnose undefined template contexts.
  229. 2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
  230. * decl.c (grokdeclarator): Do type access control on friend
  231. class.
  232. 2000-11-27 Nathan Sidwell <nathan@codesourcery.com>
  233. * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
  234. bison parser ickiness.
  235. * pt.c (tsubst_friend_function): Enter namespace scope when
  236. tsubsting the function name.
  237. * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
  238. 2000-11-27 Nathan Sidwell <nathan@codesourcery.com>
  239. * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
  240. * cvt.c (cp_convert_to_pointer): Add force parameter.
  241. Allow conversions via virtual base if forced.
  242. (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
  243. (ocp_convert): Likewise.
  244. * search.c (binfo_from_vbase): Return the virtual base's binfo.
  245. * typeck.c (get_delta_difference): Adjust handling of virtual
  246. bases.
  247. 2000-11-26 Mark Mitchell <mark@codesourcery.com>
  248. * tree.c (struct list_hash): Remove.
  249. (list_hash_table): Make it be an htab.
  250. (struct list_proxy): New type.
  251. (list_hash_eq): New function.
  252. (list_hash_pieces): Renamed from ...
  253. (list_hash): ... this.
  254. (list_hash_lookup): Remove.
  255. (list_hash_add): Remove.
  256. (hash_tree_cons): Use the generic hashtable.
  257. (mark_list_hash): Remove.
  258. (init_tree): Create the hashtable.
  259. 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
  260. * method.c (build_mangled_C9x_name): Rename to
  261. build_mangled_C99_name. Change C9X references in comments to
  262. refer to C99.
  263. 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
  264. * parse.y (unary_expr): Move VA_ARG from here ...
  265. (primary): ... to here.
  266. 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
  267. * semantics.c (finish_id_expr): If type is error_mark, return
  268. error_mark.
  269. 2000-11-23 Nathan Sidwell <nathan@codesourcery.com>
  270. * pt.c (lookup_template_class): Simplify loop exit constructs.
  271. Cope when there is no partial instantiation of a template
  272. template member.
  273. 2000-11-23 J"orn Rennecke <amylaar@redhat.com>
  274. * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
  275. 2000-11-22 Mark Mitchell <mark@codesourcery.com>
  276. * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
  277. prefix.
  278. * pt.c (do_decl_instantiate): Explicitly clone constructors and
  279. destructors that haven't already been cloned.
  280. 2000-11-20 Richard Henderson <rth@redhat.com>
  281. * parse.y (yyparse_1): Rename the parser entry point.
  282. 2000-11-20 Alex Samuel <samuel@codesourcery.com>
  283. * mangle.c (write_name): Use <unscoped-name> for names directly in
  284. function scope.
  285. (write_unscoped_name): Accept names directly in function scope.
  286. 2000-11-20 Nathan Sidwell <nathan@codesourcery.com>
  287. * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
  288. * parse.y (extdef): Add EXPORT reduction.
  289. * spew.c (yylex): Don't skip export here.
  290. 2000-11-19 Mark Mitchell <mark@codesourcery.com>
  291. * decl.c (init_decl_processing): Correct name of pure virtual
  292. function under the new ABI.
  293. * rtti.c (throw_bad_cast): Likewise, for bad cast function.
  294. (throw_bad_typeid): Likewise for bad typeid function.
  295. 2000-11-18 Mark Mitchell <mark@codesourcery.com>
  296. * decl.c (grokparms): Don't even function types of `void' type,
  297. either.
  298. * mangle.c (write_type): Don't crash when confronted with the
  299. error_mark_node.
  300. * decl.c (grokparms): Don't create parameters of `void' type.
  301. 2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
  302. * lex.c (mark_impl_file_chain): Delete.
  303. (init_parse): Remove call to ggc_add_string_root. No need to
  304. ggc_strdup a string constant. Do not add impl_file_chain to GC
  305. roots.
  306. (handle_pragma_implementation): No need to ggc_strdup main_filename.
  307. 2000-11-17 Nathan Sidwell <nathan@codesourcery.com>
  308. * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
  309. 2000-11-17 Nathan Sidwell <nathan@codesourcery.com>
  310. * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
  311. * decl.c (grokdeclarator): Don't reject void parms here.
  312. (require_complete_types_for_parms): Simplify, use
  313. complete_type_or_else.
  314. (grokparms): Remove bitrot. Remove funcdef parm.
  315. Deal with ellipsis parm lists here.
  316. * semantics.c (finish_parmlist): Don't append void_list_node
  317. here. Set PARMLIST_ELLIPSIS_P.
  318. 2000-11-17 Nathan Sidwell <nathan@codesourcery.com>
  319. * typeck2.c (incomplete_type_error): Reorganize to avoid
  320. excessive diagnostics.
  321. 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
  322. * lex.c (struct impl_files, internal_filename): Constify a char *.
  323. 2000-11-16 Mark Mitchell <mark@codesourcery.com>
  324. * mangle.c (write_special_name_constructor): Don't generate
  325. assembler junk when confronted with an old-style constructor.
  326. (write_special_name_destructor): Likewise.
  327. (mangle_decl_string): Do it here instead.
  328. 2000-11-16 Nathan Sidwell <nathan@codesourcery.com>
  329. * call.c (op_error): Make error messages clearer.
  330. 2000-11-15 Mark Mitchell <mark@codesourcery.com>
  331. * decl.c (wrapup_globals_for_namespace): Don't mark things
  332. TREE_ASM_WRITTEN when they're not.
  333. 2000-11-15 Jason Merrill <jason@redhat.com>
  334. * typeck2.c (friendly_abort): Uncount the error before handing
  335. off to fancy_abort.
  336. 2000-11-15 Nathan Sidwell <nathan@codesourcery.com>
  337. * typeck.c (lookup_anon_field): Cope with qv qualifiers.
  338. 2000-11-14 Mark Mitchell <mark@codesourcery.com>
  339. * class.c (build_vtbl_initializer): Fix typo in comment.
  340. * typeck.c (expr_sizeof): Don't crash on errors.
  341. 2000-11-14 Jim Wilson <wilson@redhat.com>
  342. * lang-specs.h: Add %2 after %(cc1_options).
  343. 2000-11-14 Richard Henderson <rth@redhat.com>
  344. * typeck.c (c_sizeof): Be strict about casting result value
  345. back to c_size_type_node.
  346. (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
  347. 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
  348. * typeck.c (build_unary_op): Use boolean_increment from
  349. c-common.c, moving the relevant code there.
  350. 2000-11-11 Jason Merrill <jason@redhat.com>
  351. * typeck.c (mark_addressable): Don't call put_var_into_stack.
  352. * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
  353. in inlines.
  354. 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  355. * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
  356. * lex.c (copy_lang_decl): Likewise.
  357. 2000-11-09 Mark Mitchell <mark@codesourcery.com>
  358. * dump.c (cp_dump_tree): Don't dump function bodies here.
  359. * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
  360. (dump.o): Update dependency list.
  361. * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
  362. (flag_dump_translation_unit): Likewise.
  363. (CP_TYPE_QUALS): Adjust definition.
  364. (DECL_C_BIT_FIELD): Remove.
  365. (SET_DECL_C_BIT_FIELD): Likewise.
  366. (CLEAR_DECL_C_BIT_FIELD): Likewise.
  367. (add_maybe_template): Likewise.
  368. (strip_array_types): Likewise.
  369. (dump_node_to_file): Likewise.
  370. (cp_dump_tree): New function.
  371. * decl.c (init_decl_processing): Set lang_dump_tree.
  372. * decl2.c (flag_dump_translation_unit): Remove.
  373. * dump.c: Move most of it to ../c-dump.c.
  374. (cp_dump_tree): New function.
  375. * pt.c (add_maybe_template): Remove.
  376. * typeck.c (strip_array_types): Likewise.
  377. 2000-11-07 Eric Christopher <echristo@redhat.com>
  378. * decl.c (init_decl_processing): Change definition of
  379. __wchar_t to wchar_t. Remove artificial declaration of
  380. wchar_t.
  381. * lex.c: Change instances of __wchar_t to wchar_t.
  382. 2000-11-09 Nathan Sidwell <nathan@codesourcery.com>
  383. * lex.c (do_identifier): Don't lookup_name for operators.
  384. * parse.y (operator): Save looking_for_typename.
  385. (unoperator): Restore it.
  386. * spew.c (frob_opname): Use nth_token for lookahead.
  387. 2000-11-08 Nathan Sidwell <nathan@codesourcery.com>
  388. * decl.c (grok_op_properties): Always use coerce_new_type and
  389. coerce_delete_type.
  390. * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
  391. exception specification. Tidy up.
  392. (coerce_delete_type): Preserve exception specification. Tidy up.
  393. 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
  394. * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
  395. (push_binding_level), error.c (cp_tree_printer), pt.c
  396. (process_partial_specialization, tsubst_template_arg_vector),
  397. search.c (lookup_member): Use memset () instead of bzero ().
  398. 2000-11-07 Nathan Sidwell <nathan@codesourcery.com>
  399. * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
  400. 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
  401. * Make-lang.in (c++.distdir): Remove.
  402. 2000-11-04 Mark Mitchell <mark@codesourcery.com>
  403. * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
  404. declarations from different namespaces to be combined.
  405. 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
  406. * decl.c: Include tm_p.h.
  407. 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
  408. * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
  409. 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
  410. * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
  411. (build_overload_value), repo.c (open_repo_file), xref.c
  412. (open_xref_file): Use strchr () and strrchr () instead of index ()
  413. and rindex ().
  414. 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
  415. * call.c (build_over_call): Call fold on the CALL_EXPR.
  416. 2000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
  417. * error.c (dump_template_decl): Separate template hearders with
  418. space not comma.
  419. 2000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
  420. * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
  421. TS_* flags with corresponding TFF_*. Adjust prototypes of
  422. functions (which used to take a tree_string_flags) to take an int.
  423. * cp-tree.h (enum tree_string_flags): Remove
  424. (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
  425. TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
  426. TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
  427. TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
  428. TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
  429. TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
  430. (type_as_string, decl_as_string, expr_as_string,
  431. context_as_string): Adjust prototype.
  432. * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
  433. instead of TS_PLAIN.
  434. * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
  435. instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
  436. plain `0'.
  437. 2000-10-30 Mark Mitchell <mark@codesourcery.com>
  438. * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
  439. (linkage_kind): New enumeration.
  440. (decl_linkage): New function.
  441. * decl2.c (comdat_linkage): Extend comment.
  442. * error.c (dump_function_decl): Print the arguments used to
  443. instantiate a template, even when not printing the type of the
  444. function.
  445. * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
  446. not TREE_PUBLIC, to test for external linkage.
  447. * tree.c (decl_linkage): New function.
  448. 2000-10-28 Mark Mitchell <mark@codesourcery.com>
  449. * pt.c (instantiate_decl): Always instantiate static data members
  450. initialized in-class.
  451. 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
  452. * Make-lang.in: Move all build rules here from Makefile.in,
  453. adapt to new context. Wrap all rules that change the current
  454. directory in parentheses. Expunge all references to $(P).
  455. When one command depends on another and they're run all at
  456. once, use && to separate them, not ;. Add OUTPUT_OPTION to
  457. all object-file generation rules. Delete obsolete variables.
  458. * Makefile.in: Delete.
  459. * config-lang.in: Delete outputs= line.
  460. 2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
  461. * error.c (dump_function_decl): Print no space between
  462. `ptr-operator' the `type-specifier' of the return type.
  463. (dump_type_prefix): Make sure we put space at the appropriate
  464. place.
  465. 2000-10-23 Jason Merrill <jason@redhat.com>
  466. * call.c (equal_functions): Also call decls_match for extern "C" fns.
  467. 2000-10-22 Jason Merrill <jason@redhat.com>
  468. * call.c (build_conditional_expr): Use ocp_convert to force
  469. rvalue conversion.
  470. 2000-10-22 Mark Mitchell <mark@codesourcery.com>
  471. * call.c (standard_conversion): Use RVALUE_CONVs for all
  472. expressions that satisfy lvalue_p, not just those that satisfy
  473. real_lvalue_p.
  474. * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
  475. * typeck.c (c_sizeof): Return an expression of `size_t' type,
  476. not one with TYPE_IS_SIZETYPE set.
  477. (dubious_conversion_warnings): Remove special-case code.
  478. 2000-10-21 Geoffrey Keating <geoffk@cygnus.com>
  479. * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
  480. * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
  481. (dump_type_prefix): Print vector-of-int as 'int vector'.
  482. (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
  483. * tree.c (walk_tree): Handle VECTOR_TYPE.
  484. * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
  485. 2000-10-21 Jason Merrill <jason@redhat.com>
  486. * parse.y (operator): Set got_object from got_scope.
  487. Set looking_for_typename.
  488. * decl.c (lookup_name_real): Clear val after setting from_obj.
  489. Reorganize diagnostic.
  490. 2000-10-20 Jason Merrill <jason@redhat.com>
  491. * tree.c (walk_tree): Don't walk into default args.
  492. * error.c (dump_expr): Use host_integerp.
  493. 2000-10-20 David Edelsohn <edelsohn@gnu.org>
  494. * typeck2.c (abstract_virtuals_error): Use "because" instead of
  495. "since" in error message.
  496. 2000-10-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  497. * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
  498. 2000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
  499. * decl.c (revert_static_member_fn): Fixed typo.
  500. 2000-10-19 Mark Mitchell <mark@codesourcery.com>
  501. * class.c (subobject_offset_fn): New type.
  502. (dfs_record_base_offsets): Remove.
  503. (record_base_offsets): Likewise.
  504. (dfs_search_base_offsets): Likewise.
  505. (record_subobject_offset): New function.
  506. (check_subobject_offset): Likewise.
  507. (walk_subobject_offsets): Likewise.
  508. (record_subobject_offsets): Likewise.
  509. (layout_conflict_p): Reimplement.
  510. (layout_nonempty_base_or_field): Correct handling of type
  511. conflicts during layout.
  512. (layout_empty_base): Likewise.
  513. (build_base_field): Adjust to handle new representation of empty
  514. base offset table.
  515. (build_base_fields): Likewise.
  516. (layout_virtual_bases): Likewise.
  517. (splay_tree_compare_integer_csts): New function.
  518. (layout_class_type): Use a splay_tree, rather than a varray, to
  519. represent the offsets of empty bases.
  520. * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
  521. * decl.c (select_decl): Don't return declarations that are
  522. DECL_ANTICIPATED.
  523. 2000-10-18 Mark Mitchell <mark@codesourcery.com>
  524. * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
  525. (fake_std_node): New macro.
  526. * decl.c (in_std): Rename to ...
  527. (in_fake_std): ... this.
  528. (flag_no_builtin): Remove.
  529. (flag_no_nonansi_builtin): Likewise.
  530. (walk_namespaces_r): Use fake_std_node.
  531. (push_namespace): Use std_identifier.
  532. (pop_namespace): Use in_fake_std.
  533. (lookup_name_real): Use fake_std_node.
  534. (init_decl_processing): When -fhonor-std, create the `std'
  535. namespace. Don't create a dummy fake_std_node in that case.
  536. Adjust call to c_common_nodes_and_builtins. Use std_identifier.
  537. (builtin_function): Put builtins whose names don't begin
  538. with `_' in the std namespace.
  539. * decl2.c (flag_no_builtin): Remove.
  540. (flag_no_nonansi_builtin): Likewise.
  541. (set_decl_namespace): Use fake_std_node.
  542. (validate_nonmember_using_decl): Likewise.
  543. (do_using_directive): Likewise.
  544. (handle_class_head): Likewise.
  545. * dump.c (dequeue_and_dump): Likewise.
  546. * except.c (init_exception_processing): Use std_identifier.
  547. * init.c (build_member_call): Use fake_std_node.
  548. * rtti.c (init_rtti_processing): Use std_identifier.
  549. 2000-10-17 Mark Mitchell <mark@codesourcery.com>
  550. * cp-tree.h (back_end_hook): Remove declaration.
  551. * decl2.c (back_end_hook): Remove definition.
  552. * dump.c (dequeue_and_dump): Dump TREE_USED.
  553. 2000-10-17 Brad Lucier <lucier@math.purdue.edu>
  554. * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
  555. 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
  556. * decl.c (WINT_TYPE): Define.
  557. (init_decl_processing): Create types unsigned_ptrdiff_type_node,
  558. c_size_type_node, signed_size_type_node and wint_type_node.
  559. 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
  560. * decl2.c (warn_missing_format_attribute): New variable.
  561. (lang_decode_option): Decode -Wmissing-format-attribute.
  562. 2000-10-16 Mark Mitchell <mark@codesourcery.com>
  563. * typeck.c (qualify_type): Remove.
  564. (composite_pointer_type): Fix handling of conversions to `cv void*'.
  565. 2000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  566. * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
  567. 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  568. * Makefile.in (parse.c, parse.h): Create atomically.
  569. 2000-10-12 Mark Mitchell <mark@codesourcery.com>
  570. * class.c (current_obstack): Remove.
  571. * decl.c (ggc_p): Remove.
  572. (start_decl): Don't use decl_tree_cons.
  573. (grokdeclarator): Don't use build_decl_list.
  574. (start_function): Don't use decl_tree_cons.
  575. (finish_function): Don't mess with obstacks.
  576. * decl2.c (grok_x_components): Don't use build_decl_list.
  577. * lex.c (make_call_declarator): Don't call decl_tree_cons.
  578. (implicitly_declare_fn): Don't call build_decl_list.
  579. * parse.y (frob_specs): Don't call build_decl_list or
  580. decl_tree_cons.
  581. (expr_or_declarator_intern): Don't call decl_tree_cons.
  582. (primary): Don't call build_decl_list.
  583. (fcast_or_absdcl): Likewise.
  584. (typed_declspecs): Don't call decl_tree_cons.
  585. (reserved_declspecs): Don't call build_decl_list.
  586. (declmods): Likewise.
  587. (reserved_typespecquals): Likewise.
  588. (aggr): Likewise.
  589. (new_type_id): Likewise.
  590. (cv_qualifiers): Likewise.
  591. (after_type_declarator_intern): Likewise.
  592. (notype_declarator_intern): Likewise.
  593. (absdcl_intern): Likewise.
  594. (named_parm): Likewise.
  595. * pt.c (most_specialized_class): Likewise.
  596. * repo.c (temporary_obstack): Make it a structure, not a pointer.
  597. (init_repo): Initialize it.
  598. * search.c (current_obstack): Remove.
  599. * typeck2.c (add_exception_specifier): Don't call build_decl_list.
  600. 2000-10-09 Richard Henderson <rth@cygnus.com>
  601. * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
  602. (c++ language support bits for libgcc): Remove.
  603. (c++.clean): Remove cplib2.txt cleanup.
  604. * config-lang.in (headers, lib2funcs): Remove.
  605. * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
  606. * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
  607. * inc/cxxabi.h, inc/exception, inc/new: Remove files.
  608. * inc/new.h, inc/typeinfo: Remove files.
  609. 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
  610. * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
  611. defined.
  612. (init_decl_processing): Initialize intmax_type_node and
  613. uintmax_type_node.
  614. 2000-10-06 Richard Henderson <rth@cygnus.com>
  615. * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
  616. (original_result_rtx): Remove.
  617. * decl.c (save_function_data): Don't clear x_result_rtx.
  618. (mark_lang_function): Don't mark it either.
  619. * expr.c (fixup_result_decl): Remove.
  620. * semantics.c (genrtl_named_return_value): Frob the return decl
  621. before calling emit_local_var.
  622. (genrtl_finish_function): Don't call fixup_result_decl.
  623. Always emit the jump to return_label.
  624. 2000-10-06 Nathan Sidwell <nathan@codesourcery.com>
  625. * pt.c (lookup_template_class): Set current access for enum.
  626. (tsubst_enum): Set file & line for enum decl.
  627. * spew.c (yylex): Remove unused variable.
  628. 2000-10-05 Richard Henderson <rth@cygnus.com>
  629. * semantics.c (genrtl_finish_function): Don't init or check
  630. can_reach_end; remove noreturn and return value checks.
  631. 2000-10-05 Tom Tromey <tromey@cygnus.com>
  632. * init.c (build_java_class_ref): Use `build_static_name' with a
  633. suffix, not a prefix, to build the class object's name.
  634. 2000-10-05 Nathan Sidwell <nathan@codesourcery.com>
  635. * cp-tree.h (access_kind): Fix comment typo.
  636. * decl2.c (grokfield): Fix diagnostic typo.
  637. * semantics.c (finish_template_type): Fix comment typo.
  638. (finish_qualified_object_call_expr): Likewise.
  639. 2000-10-05 Nathan Sidwell <nathan@codesourcery.com>
  640. * pt.c (tsubst_expr, DECL_STMT case): Don't process if
  641. tsubsting fails.
  642. 2000-10-05 Nathan Sidwell <nathan@codesourcery.com>
  643. * spew.c (frob_id): New static function.
  644. (frob_opname): Use it.
  645. (yylex): Use it.
  646. 2000-10-01 Mark Mitchell <mark@codesourcery.com>
  647. * decl.c (lang_mark_false_label_stack): Remove.
  648. * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
  649. 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
  650. * gxxint.texi: Use @email for formatting email addresses.
  651. 2000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
  652. * error.c: Remove direct obstack manipulation. Replace with
  653. output_buffer-based formatting. Adjust calls to removed macros.
  654. (obstack_chunk_alloc, obstack_chunk_free): Remove.
  655. (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
  656. OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
  657. 2000-09-24 Mark Mitchell <mark@codesourcery.com>
  658. * ir.texi: Move to ../c-tree.texi.
  659. 2000-09-20 Jason Merrill <jason@redhat.com>
  660. * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
  661. 2000-09-21 Andreas Jaeger <aj@suse.de>
  662. * errfn.c: Move declaration of cp_printer and cp_printers to ...
  663. * cp-tree.h: ... here.
  664. * error.c: Remove declaration of cp_printer.
  665. 2000-09-20 Mark Mitchell <mark@codesourcery.com>
  666. * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
  667. 2000-09-20 Hans-Peter Nilsson <hp@axis.com>
  668. * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
  669. users.
  670. 2000-09-18 Mark Mitchell <mark@codesourcery.com>
  671. * decl.c (start_function): Robustify.
  672. 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  673. * cp-tree.h (check_function_format): Accept a `status' parameter.
  674. * call.c, typeck.c: Updates calls to `check_function_format'.
  675. 2000-09-17 Geoffrey Keating <geoffk@cygnus.com>
  676. * decl2.c (handle_class_head): Always push some scope even
  677. in the error case.
  678. 2000-09-16 Mark Mitchell <mark@codesourcery.com>
  679. * cp-tree.h (struct cp_language_function): Remove
  680. x_scope_stmt_stack and name_declared.
  681. (current_scope_stmt_stack): Remove.
  682. (function_name_declared_p): New macro.
  683. (struct lang_decl_flags): Use c_lang_decl as a base class.
  684. (context): Remove.
  685. (struct lang_decl): Replace saved_tree with context.
  686. (DECL_FRIEND_CONTEXT): Adjust accordingly.
  687. (SET_DECL_FRIEND_CONTEXT): Likewise.
  688. (DECL_VIRTUAL_CONTEXT): Likewise.
  689. (DECL_SAVED_TREE): Remove.
  690. (C_DECLARED_LABEL_FLAG): Likewise.
  691. (cplus_expand_expr_stmt): Don't declare.
  692. (add_decl_stmt): Likewise.
  693. (add_scope_stmt): Likewise.
  694. * decl.c (mark_stmt_tree): Remove.
  695. (case_compare): Likewise.
  696. (finish_case_label): Use c_add_case_label.
  697. (init_decl_processing): Set more language-specific hooks.
  698. (build_enumerator): Fix typo in comment.
  699. (cplus_expand_expr_stmt): Remove.
  700. (mark_lang_function): Use mark_c_language_function.
  701. (lang_mark_tree): Use c_mark_lang_decl.
  702. * decl2.c: Change order of inclusion.
  703. * except.c: Likewise.
  704. * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
  705. back on c_expand_expr.
  706. * friend.c: Include expr.h.
  707. * init.c: Change order of inclusion.
  708. * Makefile.in: Update dependencies.
  709. * lex.h (free_lang_decl_chain): Remove.
  710. * optimize.c (maybe_clone_body): Use function_name_declared_p.
  711. * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
  712. it doesn't exist.
  713. (instantiate_decl): Use function_name_declared_p.
  714. * semantics.c (lang_expand_expr_stmt): Remove.
  715. (set_current_function_name_declared): Likewise.
  716. (current_function_name_declared): Likewise.
  717. (begin_compound_stmt): Use function_name_declared_p.
  718. (add_decl_stmt): Remove.
  719. (setup_vtbl_ptr): Use function_name_declared_p.
  720. (add_scope_stmt): Remove.
  721. (current_scope_stmt_stack): New function.
  722. (cp_expand_stmt): Don't handle SCOPE_STMTs.
  723. (expand_body): Use function_name_declared_p.
  724. * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
  725. * typeck.c: Change order of includes.
  726. (convert_sequence): Remove.
  727. 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
  728. * lex.c (reswords): Add _Complex.
  729. 2000-09-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  730. * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
  731. 2000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
  732. * init.c (begin_init_stmts): Don't use // comments.
  733. 2000-09-12 Jason Merrill <jason@redhat.com>
  734. * decl.c (maybe_deduce_size_from_array_init): Set do_default for
  735. all non-extern arrays.
  736. * decl.c (grokdeclarator): Complain about 'friend T' for implicit
  737. typenames, too. Downgrade complaint to pedwarn.
  738. (xref_tag): Warn about surprising behavior of 'friend struct T'.
  739. * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
  740. 'class This::Inherited'.
  741. 2000-09-12 Mark Mitchell <mark@codesourcery.com>
  742. * decl.c (finish_case_label): Given the LABEL_DECL a
  743. DECL_CONTEXT.
  744. 2000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
  745. * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
  746. TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
  747. TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
  748. TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
  749. TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
  750. New macros.
  751. (sorry_for_unsupported_tree, print_scope_operator,
  752. print_left_paren, print_right_paren, print_left_bracket,
  753. print_right_bracket, print_whitespace): Likewise.
  754. (aggr_variety): Rename to class_key_or_enum.
  755. (print_type): Rename to print_type_id.
  756. (print_type_specifier_seq, print_simple_type_specifier,
  757. print_elaborated_type_specifier,
  758. print_rest_of_abstract_declarator,
  759. print_parameter_declaration_clause, print_exception_specification,
  760. print_nested_name_specifier, print_template_id,
  761. typedef_original_name, print_template_argument_list_start,
  762. print_template_argument_list_end): New functions.
  763. 2000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
  764. * ir.texi: Add more documentation.
  765. 2000-09-11 Mark Mitchell <mark@codesourcery.com>
  766. * cp-tree.h (struct saved_scope): Remove x_function_parms.
  767. (current_function_parms): Don't define.
  768. (struct cp_language_function): Remove parms_stored.
  769. (current_function_just_assigned_this): Don't define.
  770. (current_function_parms_stored): Likewise.
  771. (static_ctors): Declare.
  772. (static_dtors): Likewise.
  773. (SF_EXPAND): Don't define.
  774. (expand_start_early_try_stmts): Remove declaration.
  775. (store_parm_decls): Likewise.
  776. * decl.c (static_ctors): Don't declare.
  777. (static_dtors): Likewise.
  778. (struct binding_level): Remove this_block.
  779. (poplevel): Remove dead code.
  780. (set_block): Likewise.
  781. (mark_binding_level): Don't mark this_block.
  782. (mark_saved_scope): Don't mark x_function_parms.
  783. (init_decl_processing): Don't add current_function_parms as a GC
  784. root.
  785. (check_function_type): Change prototype.
  786. (start_function): Remove RTL-generation code.
  787. (expand_start_early_try_stmts): Remove.
  788. (store_parm_decls): Give it internal linkage. Remove
  789. RTL-generation code.
  790. (finish_function): Remove RTL-generation code.
  791. * decl2.c (static_ctors): Fix formatting.
  792. (static_dtors): Likewise.
  793. * method.c (use_thunk): Don't call store_parm_decls.
  794. (synthesize_method): Likewise.
  795. * optimize.c (maybe_clone_body): Likewise.
  796. * parse.y (fn.def2): Likewise.
  797. (.set_base_init): Likewise.
  798. (nodecls): Likewise.
  799. * pt.c (instantiate_decl): Likewise.
  800. * rtti.c (synthesize_tinfo_fn): Likewise.
  801. * semantics.c (genrtl_try_block): Simplify.
  802. (expand_body): Use genrtl_start_function and
  803. genrtl_finish_function.
  804. (genrtl_start_function): New function.
  805. (genrtl_finish_function): Likewise.
  806. 2000-09-11 Nathan Sidwell <nathan@codesourcery.com>
  807. * error.c (cp_tree_printer, case 'P'): Append break.
  808. 2000-09-11 Nathan Sidwell <nathan@codesourcery.com>
  809. * cp-tree.h (frob_opname): Declare.
  810. * parse.y (saved_scopes): New static variable.
  811. (cp_parse_init): Adjust.
  812. (do_id): If lastiddecl is NULL, do do_identifier.
  813. (operator): Save scope information.
  814. (unoperator): New reduction. Restore scope information.
  815. (operator_name): Append unoperator. Call frob_opname.
  816. * spew.c (frob_opname): Define.
  817. 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
  818. * decl.c, rtti.c: Include defaults.h if not already included.
  819. Don't define the *_TYPE_SIZE macros.
  820. 2000-09-09 Mark Mitchell <mark@codesourcery.com>
  821. * cp-tree.h (push_switch): Change prototype.
  822. (check_cp_case_value): Remove declaration.
  823. (decl_constant_value): Likewise.
  824. * decl.c (struct cp_switch): Add switch_stmt and cases.
  825. (case_compare): New function.
  826. (push_switch): Set switch_stmt. Initialize cases.
  827. (pop_switch): Clean up cases.
  828. (define_case_label): Rename to ...
  829. (finish_case_label): ... this. Do semantic analysis for case
  830. labels here.
  831. (start_function): Correct comment.
  832. * decl2.c (check_cp_case_value): Remove.
  833. * expr.c (do_case): Remove.
  834. * pt.c (tsubst_expr): Adjust call to finish_case_label.
  835. * semantics.c (genrtl_do_poplevel): Remove declaration.
  836. (RECHAIN_STMTS): Remove.
  837. (finish_break_stmt): Use build_break_stmt.
  838. (finish_continue_stmt): Use build_continue_stmt.
  839. (finish_switch_cond): Adjust condition here, rater than in
  840. c_expand_start_case.
  841. (finish_case_label): Remove.
  842. * typeck.c (c_expand_return): Remove.
  843. (c_expand_start_case): Likewise.
  844. 2000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
  845. * ir.texi: Document type nodes.
  846. 2000-09-06 Mark Mitchell <mark@codesourcery.com>
  847. * cp-tree.h (init_cp_semantics): Declare.
  848. (genrtl_try_block): Don't declare.
  849. (genrtl_handler): Likewise.
  850. (genrtl_catch_block): Likewise.
  851. (genrtl_ctor_stmt): Likewise.
  852. (genrtl_subobject): Likewise.
  853. (genrtl_do_poplevel): Likewise.
  854. (genrtl_named_return_value): Likewise.
  855. * lex.c (init_parse): Call init_cp_semantics.
  856. * semantics.c (genrtl_try_block): Give it internal linkage.
  857. (genrtl_handler): Likewise.
  858. (genrtl_catch_block): Likewise.
  859. (genrtl_ctor_stmt): Likewise.
  860. (genrtl_subobject): Likewise.
  861. (genrtl_do_poplevel): Likewise.
  862. (genrtl_named_return_value): Likewise.
  863. (lang_expand_stmt): Rename to ...
  864. (cp_expand_stmt): ... this. Only handle C++-specific nodes.
  865. (init_cp_semantics): Define.
  866. * decl.c (initialize_local_var): Remove RTL-generating code.
  867. * semantics.c (genrtl_try_block): Fix formatting.
  868. Move statement-tree facilities from C++ to C front-end.
  869. * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
  870. (void_zero_node): Remove.
  871. (stmt_tree): Likewise.
  872. (scope_chain): Adjust.
  873. (language_function): Rename to cp_language_function.
  874. (cp_function_chain): Adjust.
  875. (current_stmt_tree): Remove.
  876. (last_tree): Likewise.
  877. (last_expr_type): Likewise.
  878. (struct lang_decl): Adjust.
  879. (STMT_IS_FULL_EXPR_P): Remove.
  880. (add_tree): Remove.
  881. (begin_stmt_tree): Likewise.
  882. (finish_stmt_tree): Likewise.
  883. (walk_tree_fn): Likewise.
  884. (walk_stmt_tree): Likewise.
  885. * class.c (finish_struct): Replace use of add_tree with add_stmt.
  886. * decl.c (mark_stmt_tree): Adjust type.
  887. (init_decl_processing): Don't build void_zero_node.
  888. (initialize_local_var): Adjust usage of current_stmt_tree.
  889. (finish_enum): Use add_stmt, not add_tree.
  890. (save_function_data): Adjust use of language_function.
  891. (finish_constructor_body): Use add_stmt, not add_tree.
  892. (finish_destructor_body): Likewise.
  893. (push_cp_function_context): Adjust use of language_function.
  894. (pop_cp_function_context): Likewise.
  895. (mark_lang_function): Likewise.
  896. (mark_cp_function_context): Likewise.
  897. * init.c (build_aggr_init): Adjust use of current_stmt_tree.
  898. (build_vec_init): Likewise.
  899. * semantics.c (SET_LAST_STMT): Remove.
  900. (RECHAIN_STMTS): Don't use it.
  901. (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
  902. (current_stmt_tree): Define.
  903. (add_tree): Remove.
  904. (finish_goto_stmt): Use add_stmt, not add_tree.
  905. (finish_expr_stmt): Likewise.
  906. (begin_if_stmt): Likewise.
  907. (finish_then_clause): Likewise.
  908. (begin_while_stmt): Likewise.
  909. (begin_do_stmt): Likewise.
  910. (finish_return_stmt): Likewise.
  911. (begin_for_stmt): Likewise.
  912. (finish_break_stmt): Likewise.
  913. (finish_continue_stmt): Likewise.
  914. (begin_switch_stmt): Likewise.
  915. (finish_case_label): Likewise.
  916. (begin_try_block): Likewise.
  917. (begin_function_try_block): Likewise.
  918. (begin_handler): Likewise.
  919. (begin_catch_block): Likewise.
  920. (begin_compound_stmt): Likewise.
  921. (begin_asm_stmt): Likewise.
  922. (finish_asm_stmt): Likewise.
  923. (finish_label_stmt): Likewise.
  924. (add_decl_stmt): Likewise.
  925. (finish_subobject): Likewise.
  926. (finish_decl_cleanup): Likewise.
  927. (finish_named_return_value): Likewise.
  928. (setup_vtbl_ptr): Likewise.
  929. (add_scope_stmt): Likewise.
  930. (finish_stmt_expr): Likewise.
  931. (prune_unused_decls): Remove.
  932. (begin_stmt_tree): Likewise.
  933. (finish_stmt_tree): Likewise.
  934. (prep_stmt): Adjust use of current_stmt_tree.
  935. (lang_expand_stmt): Likewise.
  936. * tree.c (statement_code_p): Remove.
  937. (cp_statement_code_p): New function.
  938. (walk_stmt_tree): Remove.
  939. (init_tree): Set lang_statement_code_p.
  940. 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
  941. Integrated preprocessor.
  942. * Make-lang.in, Makefile.in: Remove all references to input.c,
  943. gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
  944. * gxx.gperf, hash.h, input.c: Delete.
  945. * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
  946. initialized properly.
  947. * class.c (fixup_pending_inline): Take a tree, not a
  948. struct pending_inline *. All callers changed.
  949. (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
  950. RID_PROTECTED entries in ridpointers[] array here.
  951. * decl.c (duplicate_decls): Do not refer to struct
  952. pending_inline.
  953. (record_builtin_type, init_decl_processing): Use RID_MAX not
  954. CP_RID_MAX.
  955. (grokdeclarator): Use C_IS_RESERVED_WORD.
  956. * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
  957. cpplib.
  958. (grok_x_components): Do not inspect pending_inlines chain.
  959. * cp-tree.h (struct lang_identifier): Add rid_code entry.
  960. (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
  961. (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
  962. (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
  963. TIME_IDENTIFIER_FILEINFO): Kill.
  964. Update prototypes.
  965. * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
  966. single 32-bit word.
  967. * parse.y: Call do_pending_inlines unconditionally.
  968. reinit_parse_for_method is now snarf_method. fn.defpen is no
  969. longer necessary. Remove unnecessary <itype> annotation on
  970. SCOPE. Do not refer to end_of_file or struct pending_inline.
  971. * semantics.c (begin_inline_definitions): Call
  972. do_pending_inlines unconditionally.
  973. * lex.c: Remove all code now shared with C front end.
  974. Initialize cpplib properly if USE_CPPLIB. Put reserved words
  975. into the get_identifier table. Rewrite pragma handling to
  976. work with the registry. Move code to save tokens for later
  977. processing to spew.c.
  978. * spew.c: Rewrite everything in terms of token streams instead
  979. of text. Move routines here from lex.c / input.c as
  980. appropriate. GC-mark trees hanging off the pending inlines
  981. chain.
  982. 2000-09-06 Mark Mitchell <mark@codesourcery.com>
  983. * NEWS: Mention that the named return value extension has been
  984. deprecated.
  985. * cp-tree.h (original_result_rtx): Define.
  986. (TREE_REFERENCE_EXPR): Remove.
  987. (DECL_VPARENT): Likewise.
  988. (pushdecl_nonclass_level): Likewise.
  989. (store_return_init): Likewise.
  990. (reinit_lang_specific): Likewise.
  991. (genrtl_named_return_value): Change prototype.
  992. * decl.c (original_result_rtx): Remove.
  993. (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
  994. Do not generate RTL for local variables here.
  995. (store_return_init): Remove.
  996. * semantics.c (genrtl_named_return_value): Simplify. Fold in
  997. store_return_init.
  998. (finish_named_return_value): Adjust accordingly. Warn that this
  999. extension is deprecated.
  1000. (lang_expand_stmt): Adjust call to genrtl_named_return_value.
  1001. 2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
  1002. * pt.c (type_unification_real): Replace switch with if.
  1003. (unify): Tsubst non-type parms before comparing.
  1004. 2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
  1005. * error.c (dump_typename): New function, broken out of ...
  1006. (dump_type): ... here. Use it.
  1007. * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
  1008. 2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
  1009. * init.c (build_offset_ref): Deal with namespace scoped
  1010. TEMPLATE_ID_EXPRs.
  1011. 2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
  1012. * class.c (resolve_address_of_overloaded_function): Add
  1013. explanation message.
  1014. * decl.c (define_case_label): Reformat explanation.
  1015. * decl2.c (finish_static_data_member_decl): Likewise.
  1016. (grokfield): Likewise.
  1017. * friend.c (do_friend): Likewise.
  1018. 2000-09-05 Zack Weinberg <zack@wolery.cumb.org>
  1019. * tree.c (walk_tree): Expose tail recursion.
  1020. (walk_stmt_tree): New function.
  1021. * cp-tree.h: Prototype walk_stmt_tree.
  1022. * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
  1023. the BLOCKs directly. If a BLOCK has no variables after
  1024. pruning, discard it.
  1025. (finish_stmt_tree): Use walk_stmt_tree. No need to save and
  1026. restore the line number.
  1027. 2000-09-05 Mark Mitchell <mark@codesourcery.com>
  1028. * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
  1029. (pt.o): Remove dependency on HTAB_H.
  1030. * cp-tree.h: Include hashtab.h.
  1031. (walk_tree): Change prototype.
  1032. (walk_tree_without_duplicates): New function.
  1033. * decl.c (check_default_argument): Use it.
  1034. * optimize.c (remap_decl): Adjust calls to walk_tree.
  1035. (copy_body): Likewise.
  1036. (expand_calls_inline): Likewise.
  1037. (calls_setjmp_p): Use walk_tree_without_duplicates.
  1038. * pt.c: Don't include hashtab.h.
  1039. (for_each_template_parm): Use walk_tree_without_duplicates.
  1040. * semantics.c (finish-stmt_tree): Likewise.
  1041. (expand_body): Likewise.
  1042. * tree.c (walk_tree): Add additional parameter.
  1043. (walk_tree_without_duplicates): New function.
  1044. (count_trees): Use it.
  1045. (verify_stmt_tree): Adjust call to walk_tree.
  1046. (find_tree): Use walk_tree_without_duplicates.
  1047. (no_linkage_check): Likewise.
  1048. (break_out_target_exprs): Adjust call to walk_tree.
  1049. (cp_unsave): Likewise.
  1050. 2000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
  1051. * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
  1052. (TEMPLATE_TEMPLATE_PARM): Adjust comment.
  1053. * cp-tree.h (TYPE_BINFO): Adjust comment.
  1054. (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
  1055. (TEMPLATE_TYPE_PARM_INDEX): Likewise.
  1056. (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
  1057. (TYPE_TEMPLATE_INFO): Likewise.
  1058. (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
  1059. * class.c (push_nested_class): Likewise.
  1060. * decl.c (lookup_name_real): Likewise.
  1061. (grokdeclarator): Likewise.
  1062. (grok_op_properties): Likewise.
  1063. (xref_tag): Likewise.
  1064. (xref_basetypes): Likewise.
  1065. * decl2.c (constructor_name_full): Likewise.
  1066. (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
  1067. (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
  1068. * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
  1069. (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
  1070. (dump_type_suffix): Likewise.
  1071. * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
  1072. instead.
  1073. (get_aggr_from_typedef): Likewise.
  1074. * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
  1075. (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
  1076. (write_template_parm): Likewise.
  1077. (write_template_template_parm): Check tree code instead of
  1078. using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
  1079. * method.c (build_overload_nested_name): Add
  1080. BOUND_TEMPLATE_TEMPLATE_PARM.
  1081. (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
  1082. * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
  1083. * pt.c (convert_template_argument): Check tree code instead of
  1084. using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
  1085. (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
  1086. (for_each_template_parm): Adjust comment.
  1087. (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
  1088. (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
  1089. (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
  1090. template_args_equal to compare template template parameter cases.
  1091. * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
  1092. * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
  1093. instead.
  1094. * tree.c (copy_template_template_parm): Decide whether to create
  1095. a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
  1096. (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
  1097. (copy_tree_r): Likewise.
  1098. * typeck.c (comptypes): Likewise. Check tree code instead of
  1099. using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
  1100. 2000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
  1101. * decl.c (finish_function): Move the code for handling functions
  1102. marked with the constructor and destructor attributes inside the
  1103. expand_p block.
  1104. 2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
  1105. * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
  1106. 2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
  1107. * pt.c (lookup_template_class): Remove abort.
  1108. * tree.c (get_type_decl): Allow error_mark_node.
  1109. 2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
  1110. * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
  1111. TEMPLATE_ID_EXPRs.
  1112. 2000-09-03 Mark Mitchell <mark@codesourcery.com>
  1113. * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
  1114. new ABI mangling.
  1115. 2000-09-01 Nathan Sidwell <nathan@codesourcery.com>
  1116. * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
  1117. union tag mismatch error reporting.
  1118. 2000-09-01 Nathan Sidwell <nathan@codesourcery.com>
  1119. * call.c (build_scoped_method_call): Check it is not a namespace.
  1120. 2000-08-30 Jason Merrill <jason@redhat.com>
  1121. * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
  1122. * tree.c (bot_manip): Check TREE_CONSTANT rather than
  1123. !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
  1124. build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
  1125. * decl.c (start_function): Always call make_function_rtl.
  1126. 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
  1127. * semantics.c (prune_unused_decls): New function.
  1128. (finish_stmt_tree): Call it via walk_tree.
  1129. 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
  1130. * class.c (build_secondary_vtable): Constify a char *.
  1131. * decl.c (init_decl_processing): Initialize function_id_node,
  1132. pretty_function_id_node, and func_id_node.
  1133. * input.c (struct input_source): Constify 'str'.
  1134. (feed_input): Constify first argument.
  1135. * mangle.c (write_identifier): Constify argument.
  1136. * pt.c (mangle_class_name_for_template): Constify argument.
  1137. 2000-08-29 Mark Mitchell <mark@codesourcery.com>
  1138. * typeck.c (mark_addressable): Remove code that pokes around in
  1139. RTL.
  1140. 2000-08-28 Jason Merrill <jason@redhat.com>
  1141. * lex.c (file_name_nondirectory): Move to toplev.c.
  1142. * cp-tree.h (LOCAL_CLASS_P): New macro.
  1143. * class.c (finish_struct_1): Use it.
  1144. 2000-08-27 Alex Samuel <samuel@codesourcery.com>
  1145. * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
  1146. (write_encoding): Pass another argument to write_name.
  1147. (write_name): Add ignore_local_scope parameter. Fix handling of
  1148. local names.
  1149. (write_nested_name): Use write_unqualified_name.
  1150. (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
  1151. (write_template_prefix): Use write_unqualified_name.
  1152. (write_component): Remove.
  1153. (write_local_name): Add parameter. Use direct local entity to
  1154. discriminator calculation.
  1155. (write_class_enum_type): Pass another argument to write_name.
  1156. (write_template_template_arg): Likewise.
  1157. (make_guard_variable): Likewise.
  1158. 2000-08-27 Jason Merrill <jason@redhat.com>
  1159. * decl.c (pushdecl): Matching decls for local externs are found in
  1160. the current level. Propagate linkage information from previous
  1161. declarations.
  1162. 2000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
  1163. * ir.texi (Expressions): Fix typo.
  1164. 2000-08-25 Greg McGary <greg@mcgary.org>
  1165. * tree.c (init_tree): Use ARRAY_SIZE.
  1166. 2000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
  1167. * error.c (cp_tree_printer): Rework.
  1168. 2000-08-25 Mark Mitchell <mark@codesourcery.com>
  1169. * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
  1170. dyn-string.o.
  1171. (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
  1172. (cp-demangle.o): Remove target.
  1173. (dyn-string.o): Likewise.
  1174. * decl.c (grokfndecl): Require that `main' return an `int'.
  1175. * mangle.c (write_encoding): Don't mangle return types for
  1176. conversion functions.
  1177. 2000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
  1178. * error.c (tree_formatting_info): New data type.
  1179. (tree_being_formatted): New macro.
  1180. (tree_formatting_flags): Likewise.
  1181. (put_whitespace): Likewise.
  1182. (print_tree_identifier): Likewise.
  1183. (print_identifier): Likewise.
  1184. (cp_tree_printer, print_function_argument_list, print_declaration,
  1185. print_expression, print_function_declaration,
  1186. print_function_parameter, print_type, print_cv_qualifier): New
  1187. functions.
  1188. (init_error): Initialize lang_printer.
  1189. 2000-08-24 Jason Merrill <jason@redhat.com>
  1190. * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
  1191. adjustment necessary.
  1192. 2000-08-24 Greg McGary <greg@mcgary.org>
  1193. * cp-tree.h (MAIN_NAME_P): Remove macro.
  1194. 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
  1195. * error.c (print_instantiation_context): Don't forget to flush the
  1196. buffer.
  1197. 2000-08-23 Jason Merrill <jason@redhat.com>
  1198. * typeck.c (build_ptrmemfunc): Save the input pmf.
  1199. * method.c (process_modifiers): Use same_type_p.
  1200. 2000-08-23 Mark Mitchell <mark@codesourcery.com>
  1201. * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
  1202. * mangle.c (write_function_type): Change prototype.
  1203. (write_encoding): Don't mangle return types for
  1204. constructors or destructors.
  1205. (write_type): Adjust call to write_function_type.
  1206. * pt.c (instantiate_template): Instantiate alternate entry points
  1207. when instantiating the main function.
  1208. 2000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
  1209. * error.c (cp_print_error_function): Don't use embedded '\n' in
  1210. output_printf.
  1211. 2000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
  1212. * decl.c (init_decl_processing): Remove bogus initialization.
  1213. * error.c (lang_print_error_function): Restore here.
  1214. (init_error): Initialize print_error_function.
  1215. 2000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
  1216. * decl2.c (arg_assoc): Revert my 2000-08-11 change.
  1217. 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
  1218. * Makefile.in (error.o): Depends on diagnostic.h
  1219. * cp-tree.h (problematic_instantiation_changed,
  1220. record_last_problematic_instantiation, current_instantiation,
  1221. print_instantiation_context): Declare.
  1222. (maybe_print_template_context): Remove.
  1223. * decl.c (init_decl_processing): Set print_error_function to NULL.
  1224. (lang_print_error_function): Remove, since we're using a new
  1225. machinery.
  1226. * error.c: #include diagnostic.h
  1227. (function_category): New function.
  1228. (cp_diagnostic_starter): Likewise.
  1229. (cp_diagnostic_finalizer): Likewise.
  1230. (cp_print_error_function): Likewise.
  1231. (maybe_print_instantiation_context): Likewise.
  1232. (print_instantiation_full_context): Likewise.
  1233. (print_instantiation_partial_context): Likewise.
  1234. (print_instantiation_context): Define.
  1235. (init_error): Initialize diagnostic pager and finalizer.
  1236. * pt.c (problematic_instantiation_changed): Define.
  1237. (record_last_problematic_instantiation): Likewise.
  1238. (current_instantiation): Likewise.
  1239. (maybe_print_template_context): Remove.
  1240. (print_template_context): Likewise.
  1241. (current_tinst_level): Make static to reflect Brendan Kehoe's
  1242. change of 1995-04-13.
  1243. (push_tinst_level): Call print_instantiation_context.
  1244. 2000-08-21 Nix <nix@esperi.demon.co.uk>
  1245. * lang-specs.h: Do not process -o or run the assembler if
  1246. -fsyntax-only.
  1247. 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
  1248. * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
  1249. variables.
  1250. * decl2.c (lang_decode_option): Disable gettext attributes for
  1251. -ansi.
  1252. 2000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
  1253. * lex.c (lang_init_options): Default diagnostic message maximum
  1254. length to 80, when line-wrapping.
  1255. 2000-08-20 Mark Mitchell <mark@codesourcery.com>
  1256. * class.c (build_vtbl_initializer): Clear the entire
  1257. vtbl_init_data. Start keeping track of the functions for which we
  1258. have created vcall offsets here.
  1259. (dfs_build_vcall_offset_vtbl_entries): Remove.
  1260. (build_vcall_offset_vtbl_entries): Reimplement.
  1261. (add_vcall_offset_vtbl_entries_r): New function.
  1262. (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
  1263. computing when vcall offsets are necessary.
  1264. 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
  1265. * decl.c (member_function_or_else): Use cp_error ... %T.
  1266. (grokdeclarator): Likewise.
  1267. (start_method): Likewise.
  1268. * friend.c (make_friend_class): Use cp_pedwarn ... %T.
  1269. 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
  1270. * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
  1271. TYPE_DECLs.
  1272. 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
  1273. * cp-tree.h (PTRMEM_OK_P): New macro.
  1274. (itf_ptrmem_ok): New enumeration value.
  1275. * class.c (resolve_address_of_overloaded_function): Add PTRMEM
  1276. argument. Diagnose implicit pointer to member.
  1277. (instantiate_type): Don't diagnose implicit pointer to member
  1278. here. Pass itf_ptrmem_ok if ok. Adjust calls to
  1279. resolve_address_of_overloaded_function.
  1280. * init.c (build_offset_ref): Set PTRMEM_OK_P.
  1281. (resolve_offset_ref): Don't diagnose implicit pointer to member here.
  1282. * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
  1283. * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
  1284. (build_unary_op): Deal with single non-static member in
  1285. microsoft-land.
  1286. 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
  1287. * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
  1288. 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
  1289. * cp-tree.h (enum_name_string): Remove prototype.
  1290. (report_case_error): Remove prototype.
  1291. * cp/typeck2.c (enum_name_string): Remove.
  1292. (report_case_error): Remove.
  1293. * error.c (dump_expr): Deal with enum values directly.
  1294. Correctly negate integer constant.
  1295. 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
  1296. * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
  1297. (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
  1298. * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
  1299. (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
  1300. (__cxa_vec_new): Use __cxa_vec_new2.
  1301. (__cxa_vec_delete): Use __cxa_vec_delete2.
  1302. 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
  1303. * vec.cc (__cxa_vec_new): Set "C" linkage.
  1304. (__cxa_vec_ctor): Likewise.
  1305. (__cxa_vec_cctor): Likewise.
  1306. (__cxa_vec_dtor): Likewise.
  1307. (__cxa_vec_delete): Likewise.
  1308. * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
  1309. (__cxa_vec_ctor): Likewise.
  1310. (__cxa_vec_cctor): Likewise.
  1311. (__cxa_vec_dtor): Likewise.
  1312. (__cxa_vec_delete): Likewise.
  1313. 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
  1314. * class.c (instantiate_type): Reinstate local variable
  1315. deleted in previous change.
  1316. * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
  1317. itf_no_attributes.
  1318. 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
  1319. * cp-tree.h (instantiate_type_flags): New enumeration.
  1320. (instantiate_type): Change parameter.
  1321. * class.c (instantiate_type): Adjust prototype. Adjust.
  1322. * call.c (standard_conversion): Adjust instantiate_type call.
  1323. (reference_binding): Likewise.
  1324. (build_op_delete_call): Likewise.
  1325. (convert_like_real): Likewise.
  1326. * cvt.c (cp_convert_to_pointer): Likewise.
  1327. (convert_to_reference): Likewise.
  1328. * pt.c (convert_nontype_argument): Likewise.
  1329. * typeck.c (build_binary_op): Likewise.
  1330. (build_ptrmemfunc): Likewise.
  1331. (convert_for_assignment): Likewise.
  1332. 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
  1333. * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
  1334. (current_aggr): Define.
  1335. * decl.c (grokdeclarator): Make sure a friend class is an
  1336. elaborated type specifier.
  1337. * parse.y (current_aggr): Remove static definition.
  1338. (cp_parse_init): Adjust.
  1339. (structsp): Clear and restore current_aggr.
  1340. (component_decl_list): Clear current_aggr.
  1341. * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
  1342. aggregate tag on the typename's context.
  1343. * pt.c (tsubst_friend_class): Return error_mark_node, if
  1344. parms becomes NULL.
  1345. (instantiate_class_template): Ignore error_mark_node friend types.
  1346. 2000-08-14 Nathan Sidwell <nathan@codesourcery.com>
  1347. * cvt.c (warn_ref_binding): New static function, broken out of ...
  1348. (convert_to_reference): ... here. Use it.
  1349. 2000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
  1350. * parse.y (template_arg): Add rule for template qualified with
  1351. global scope.
  1352. 2000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
  1353. * decl2.c (add_function): Reorganize.
  1354. (arg_assoc): Do not consider function template decls.
  1355. 2000-08-11 Jason Merrill <jason@redhat.com>
  1356. * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
  1357. looking inside.
  1358. 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
  1359. * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
  1360. (lookup_nested_tag): Likewise.
  1361. * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
  1362. can be produced.
  1363. 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
  1364. * parse.y (named_complex_class_head_sans_basetype): Remove
  1365. always true if.
  1366. 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
  1367. * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
  1368. explicit TEMPLATE_ID_EXPR args.
  1369. (build_expr_from_tree, case CALL_EXPR): Likewise.
  1370. 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
  1371. * decl.c (check_tag_decl): Diagnose typename's which don't
  1372. declare anything.
  1373. 2000-08-10 Nathan Sidwell <nathan@codesourcery.com>
  1374. * init.c (build_aggr_init): Reject bogus array initializers
  1375. early.
  1376. 2000-08-09 Nathan Sidwell <nathan@codesourcery.com>
  1377. * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
  1378. runtime.
  1379. * cp/tinfo.cc (__dynamic_cast): Likewise.
  1380. * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
  1381. 2000-08-09 Nathan Sidwell <nathan@codesourcery.com>
  1382. * cvt.c (convert_to_pointer_force): Fix error message when
  1383. attempting to cast from ambiguous base.
  1384. 2000-08-08 Jason Merrill <jason@redhat.com>
  1385. * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
  1386. (tsubst_template_arg_vector): Likewise.
  1387. * decl2.c (build_anon_union_vars): Choose the largest field; don't
  1388. assume that one will be as large as the union.
  1389. 2000-08-07 Kazu Hirata <kazu@hxi.com>
  1390. * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
  1391. * decl.c (pop_labels): Likewise.
  1392. 2000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
  1393. * inc/cxxabi.h (__pbase_type_info): Changed member names to match
  1394. specifications.
  1395. (__pointer_to_member_type_info): Likewise.
  1396. (__base_class_info): Likewise.
  1397. (__class_type_info): Likewise.
  1398. (__si_class_type_info): Likewise.
  1399. (__vmi_class_type_info): Likewise.
  1400. * tinfo.cc (__si_class_type_info::__do_find_public_src):
  1401. Changed member names to match specifications.
  1402. (__vmi_class_type_info::__do_find_public_src): Likewise.
  1403. (__si_class_type_info::__do_dyncast): Likewise.
  1404. (__vmi_class_type_info::__do_dyncast): Likewise.
  1405. (__si_class_type_info::__do_upcast): Likewise.
  1406. (__vmi_class_type_info::__do_upcast): Likewise.
  1407. * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
  1408. (__pbase_type_info::__pointer_catch): Likewise.
  1409. (__pointer_type_info::__pointer_catch): Likewise.
  1410. (__pointer_to_member_type_info::__pointer_catch): Likewise.
  1411. 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
  1412. * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
  1413. * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
  1414. (cc1plus): Link with $(BACKEND) and $(C_OBJS).
  1415. 2000-08-04 Mark Mitchell <mark@codesourcery.com>
  1416. * cp-tree.h (add_method): Change prototype.
  1417. * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
  1418. Don't double the size of the method vector in the error case.
  1419. (handle_using_decl): Adjust call to add_method.
  1420. (add_implicitly_declared_members): Likewise.
  1421. (clone_function_decl): Likewise.
  1422. * decl2.c (check_classfn): Likewise.
  1423. * semantics.c (finish_member_declaration): Likewise.
  1424. 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
  1425. * decl.c (flag_isoc94): New variable.
  1426. 2000-08-02 Jason Merrill <jason@redhat.com>
  1427. * pt.c (do_type_instantiation): Add complain parm; don't complain
  1428. if called recursively.
  1429. * cp-tree.h, parse.y: Adjust.
  1430. 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
  1431. * decl2.c: Silently ignore -Wstrict-prototypes; warn about
  1432. -Wno-strict-prototypes.
  1433. * g++spec.c: Adjust type of second argument to
  1434. lang_specific_driver, and update code as necessary.
  1435. * cp-tree.h: Don't prototype min_precision here.
  1436. (my_friendly_assert): Cast expression to void.
  1437. * semantics.c (do_poplevel): Initialize scope_stmts.
  1438. 2000-08-02 Mark Mitchell <mark@codesourcery.com>
  1439. * cp-tree.h (DECL_NEEDED_P): Tweak.
  1440. 2000-07-28 Jason Merrill <jason@redhat.com>
  1441. * lang-specs.h: Use %i in rule for .ii files.
  1442. 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
  1443. * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
  1444. 2000-07-30 Mark Mitchell <mark@codesourcery.com>
  1445. Allow indirect primary bases.
  1446. * cp-tree.h (struct lang_type): Remove vfield_parent. Add
  1447. primary_base.
  1448. (CLASSTYPE_VFIELD_PARENT): Remove.
  1449. (CLASSTYPE_PRIMARY_BINFO): Reimplement.
  1450. (BINFO_PRIMARY_BINFO): Remove.
  1451. (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
  1452. (BINFO_VBASE_PRIMARY_P): Likewise.
  1453. (BINFO_PRIMARY_BASE_OF): New macro.
  1454. (BINFO_INDIRECT_PRIMARY_P): Likewise.
  1455. (get_primary_binfo): New function.
  1456. * decl.c (lang_mark_tree): Make lang_type::primary_base.
  1457. * class.c (vcall_offset_data_s): Rename to ...
  1458. (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
  1459. and add ctor_vtbl_p.
  1460. (get_derived_offset): Use get_primary_binfo.
  1461. (dfs_mark_primary_bases): Adjust handling of virtual primary
  1462. bases.
  1463. (mark_primary_bases): Likewise.
  1464. (set_primary_base): Take a binfo, not an integer, as a
  1465. representation of the primary base.
  1466. (indirect_primary_base_p): Remove.
  1467. (determine_primary_base): Adjust for indirect primary bases.
  1468. (dfs_find_final_overrider): Fix typo in coment.
  1469. (update_vtable_entry_for_fn): Use get_primary_binfo.
  1470. (layout_nonempty_base_or_field): Tweak.
  1471. (build_base_fields): Adjust for new primary base semantics.
  1472. (dfs_propagate_binfo_offsets): Remove.
  1473. (propagate_binfo_offsets): Rewrite.
  1474. (dfs_set_offset_for_shared_vbases): Remove.
  1475. (layout_virtual_bases): Don't use it.
  1476. (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
  1477. ABI.
  1478. (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
  1479. CLASSTYPE_VFIELD_PARENT.
  1480. (dfs_get_primary_binfo): New function.
  1481. (get_primary_binfo): Likewise.
  1482. (dump_class_hierarchy_r): Tweak printing of primary bases.
  1483. (build_vtbl_initializer): Fix typo in comments. Use
  1484. vtbl_init_data.
  1485. (build_vcall_and_vbase_vtbl_entries): Likewise.
  1486. (build_vbaes_offset_vtbl_entries): Likewise.
  1487. (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
  1488. BV_VCALL_INDEX to handle indirect primary bases.
  1489. (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
  1490. (build_rtti_vtbl_entries): Likewise.
  1491. * search.c (get_shared_vbase_if_not_primary): Tweak.
  1492. (find_vbase_instance): Likewise.
  1493. (binfo_for_vtable): Simplify.
  1494. * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
  1495. (make_binfo): Make it have 11 entries.
  1496. 2000-07-30 Alex Samuel <samuel@codesourcery.com>
  1497. * mangle.c (DECL_TEMPLATE_ID_P): Remove.
  1498. (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
  1499. ascertaining primaryness.
  1500. (G): Remove template_args.
  1501. (decl_is_template_id): New function.
  1502. (write_encoding): Use decl_is_template_id.
  1503. (write_name): Likewise. Handle type_decls. Get main variant of
  1504. type decls.
  1505. (write_nested_name): Likewise.
  1506. (write_prefix): Likewise.
  1507. (write_template_prefix): Likewise.
  1508. (write_special_name_constructor): Remove defunct production from
  1509. comment.
  1510. (write_bare_function_type): Remove comment about absent parameter.
  1511. (write_template_template_arg): Add missing grammar production to
  1512. comment.
  1513. 2000-07-27 Jason Merrill <jason@redhat.com>
  1514. * decl.c (duplicate_decls): If common_type produces a non-typedef
  1515. type for a typedef, just use the old type.
  1516. 2000-07-27 Mark Mitchell <mark@codesourcery.com>
  1517. * cp-tree.h (function_depth): Declare.
  1518. (verify_stmt_tree): Likewise.
  1519. (find_tree): Likewise.
  1520. * decl.c (function_depth): Give it external linkage.
  1521. * optimize.c (optimize_function): Increment and decrement it.
  1522. * tree.c (verify_stmt_tree_r): New function.
  1523. (verify_stmt_tree): Likewise.
  1524. (find_tree_r): Likewise.
  1525. (find_tree): Likewise.
  1526. 2000-07-27 Jason Merrill <jason@redhat.com>
  1527. * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
  1528. TYPE_PTRMEMFUNC_P.
  1529. * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
  1530. 2000-07-26 Mark Mitchell <mark@codesourcery.com>
  1531. * decl.c (start_cleanup_fn): Mark the function as `inline'.
  1532. * decl2.c (get_guard): Call cp_finish_decl, not
  1533. rest_of_decl_compilation, for local guards.
  1534. * lex.c (do_identifier): Remove unused variable.
  1535. 2000-07-26 Marc Espie <espie@cvs.openbsd.org>
  1536. * parse.y: Add missing ';'.
  1537. 2000-07-26 Mark Mitchell <mark@codesourcery.com>
  1538. * parse.y (empty_parms): Use `()', not `(...)', when in the scope
  1539. of `extern "C++"'.
  1540. 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
  1541. Kill strict_prototype. Backwards compatibility only for
  1542. non NO_IMPLICIT_EXTERN_C systems.
  1543. * cp-tree.h (flag_strict_prototype): Remove.
  1544. (strict_prototype): Remove.
  1545. (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
  1546. * decl.c (maybe_push_to_top_level): Adjust.
  1547. (pop_from_top_level): Adjust.
  1548. (decls_match): Only allow sloppy parm matching for ancient
  1549. system headers.
  1550. (init_decl_processing): Adjust.
  1551. (grokdeclarator): Adjust.
  1552. * decl2.c (flag_strict_prototype): Remove.
  1553. (strict_prototype): Remove.
  1554. (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
  1555. (lang_f_options): Remove "strict-prototype".
  1556. (unsupported-options): Add "strict-prototype".
  1557. * lex.c (do_identifier): Adjust.
  1558. (do_scoped_id): Adjust.
  1559. * parse.y (empty_parms): Adjust.
  1560. * class.c (push_lang_context): Adjust.
  1561. (pop_lang_context): Adjust.
  1562. * typeck.c (comp_target_parms): Adjust.
  1563. 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
  1564. * decl.c (poplevel): Deal with anonymous variables at for scope.
  1565. (maybe_inject_for_scope_var): Likewise.
  1566. 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
  1567. * decl.c: Remove all signal handling code, now done in toplev.c.
  1568. 2000-07-23 Mark Mitchell <mark@codesourcery.com>
  1569. * decl.c (make_rtl_for_nonlocal_decl): Rework.
  1570. * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
  1571. correctly.
  1572. 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
  1573. * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
  1574. Define my_friendly_assert and my_friendly_abort as macros
  1575. which may call friendly_abort. Prototype friendly abort, not
  1576. my_friendly_abort or my_friendly_assert.
  1577. * decl.c (signal_catch): Report the signal caught in the error
  1578. message. Call fatal directly.
  1579. * typeck2.c (ack, my_friendly_assert): Delete.
  1580. (my_friendly_abort): Rename to friendly_abort. Expect file,
  1581. line, and function parameters. Report the abort code, then
  1582. call fancy_abort. Do not mask an abort if errors have
  1583. already occurred.
  1584. 2000-07-18 Nathan Sidwell <nathan@codesourcery.com>
  1585. * typeck.c (comp_target_parms): Remove obsolete parameter.
  1586. (comp_target_types): Adjust.
  1587. 2000-07-17 Jason Merrill <jason@redhat.com>
  1588. * typeck.c (mark_addressable): Never set TREE_USED.
  1589. * call.c (build_call): Don't abort on calls to library functions
  1590. that have been declared normally.
  1591. * typeck.c (build_binary_op): Fix grammar in warning.
  1592. * exception.cc (__eh_free): Fix prototype.
  1593. * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
  1594. * decl.c (pushdecl): Handle seeing an OVERLOAD in
  1595. IDENTIFIER_NAMESPACE_VALUE.
  1596. 2000-07-16 Mark Mitchell <mark@codesourcery.com>
  1597. * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
  1598. * method.c (use_thunk): Correct handling of vcall offsets.
  1599. 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
  1600. * .cvsignore: parse.h and parse.c have no cp- prefix.
  1601. 2000-07-13 Mark Mitchell <mark@codesourcery.com>
  1602. * .cvsignore: New file.
  1603. 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
  1604. * lang-specs.h: Use the new named specs. Remove unnecessary braces.
  1605. 2000-07-12 Mark Mitchell <mark@codesourcery.com>
  1606. * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
  1607. * parse.c: Remove.
  1608. * parse.h: Likewise.
  1609. 2000-07-11 Mark Mitchell <mark@codesourcery.com>
  1610. * class.c (layout_class_type): Add pointers to virtual bases after
  1611. base classes under the old ABI.
  1612. 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
  1613. * semantics.c (finish_for_stmt): Remove call to emit_line_note.
  1614. (finish_continue_stmt): Likewise.
  1615. (begin_for_stmt): Remove call to note_level_for_for.
  1616. (finish_goto_stmt): Change call from build_min_nt
  1617. to build_stmt.
  1618. (finish_expr_stmt): Likewise.
  1619. (begin_if_stmt): Likewise.
  1620. (begin_while_stmt): Likewise.
  1621. (finish_while_stmt): Likewise.
  1622. (finish_return_stmt): Likewise.
  1623. (begin_for_stmt): Likewise.
  1624. (finish_for_stmt): Likewise.
  1625. (finish_break_stmt): Likewise.
  1626. (begin_switch_stmt): Likewise.
  1627. (finish_case_label): Likewise.
  1628. (genrtl_try_block): Likewise.
  1629. (begin_try_block): Likewise.
  1630. (begin_handler): Likewise.
  1631. (begin_compound_stmt): Likewise.
  1632. (finish_asm_stmt): Likewise.
  1633. (finish_label_stmt): Likewise.
  1634. (add_decl_stmt): Likewise.
  1635. (finish_subobject): Likewise.
  1636. (finish_decl_cleanup): Likewise.
  1637. (finish_named_return_value): Likewise.
  1638. (setup_vtbl_ptr): Likewise.
  1639. (add_scope_stmt): Likewise.
  1640. * decl.c (finish_constructor_body): Likewise.
  1641. (finish_destructor_body): Likewise.
  1642. * optimize.c (copy_body_r): Likewise.
  1643. (initialize_inlined_parameters): Likewise.
  1644. (declare_return_variable): Likewise.
  1645. (expand_call_inline): Likewise.
  1646. 2000-07-10 Jakub Jelinek <jakub@redhat.com>
  1647. * semantics.c (expand_body): Sync interface information
  1648. at the end of function body expansion.
  1649. 2000-07-09 Jason Merrill <jason@redhat.com>
  1650. * init.c (build_new_1): Bail early if the call to new fails.
  1651. * decl.c (compute_array_index_type): Check specifically for
  1652. an INTEGER_CST, not just TREE_CONSTANT.
  1653. * decl.c (duplicate_decls): Don't call duplicate_decls on
  1654. the DECL_TEMPLATE_RESULT.
  1655. (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
  1656. codes.
  1657. * error.c (dump_template_bindings): Don't crash if we had an
  1658. invalid argument list.
  1659. * typeck.c (c_expand_start_case): Do narrowing here.
  1660. * semantics.c (finish_switch_cond): Not here.
  1661. 2000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
  1662. * parse.y (asm_clobbers): Do string concatenation.
  1663. 2000-07-09 Mark Mitchell <mark@codesourcery.com>
  1664. * decl.c (pushtag): Don't put local classes in template functions
  1665. on the local_classes list.
  1666. 2000-07-04 Scott Snyder <snyder@fnal.gov>
  1667. * decl2.c (get_guard): Add missing return for old ABI local
  1668. variable case.
  1669. 2000-07-09 Mark Mitchell <mark@codesourcery.com>
  1670. * cp-tree.h (char_type_p): New function.
  1671. * decl.c (init_decl_processing): Don't initialize
  1672. signed_wchar_type_node or unsigned_wchar_type_node.
  1673. (complete_array_type): Handle brace-enclosed string-constants.
  1674. * rtti.c (emit_support_tinfos): Remove #if 0'd code.
  1675. * tree.c (char_type_p): New function.
  1676. * typeck2.c (digest_init): Use char_type_p.
  1677. 2000-07-06 Nathan Sidwell <nathan@codesourcery.com>
  1678. * pt.c (tsubst): Don't layout type, if it's error_mark.
  1679. 2000-07-06 Nathan Sidwell <nathan@codesourcery.com>
  1680. * pt.c (instantiate_pending_templates): Reset template level.
  1681. 2000-07-05 Jason Merrill <jason@redhat.com>
  1682. * call.c (joust): Don't complain about `operator char *()' beating
  1683. `operator const char *() const'.
  1684. 2000-07-04 scott snyder <snyder@fnal.gov>
  1685. Jason Merrill <jason@redhat.com>
  1686. * repo.c (repo_get_id): Handle the case where a class with virtual
  1687. bases has a null TYPE_BINFO_VTABLE.
  1688. 2000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
  1689. Jason Merrill <jason@redhat.com>
  1690. * parse.y (member_init): Just pass in the type.
  1691. * init.c (expand_member_init): Handle getting a type.
  1692. 2000-07-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  1693. Jason Merrill <jason@redhat.com>
  1694. * decl.c (finish_function): Warn if a function has no return
  1695. statement.
  1696. Suggested by Andrew Koenig.
  1697. * typeck.c (check_return_expr): Do set current_function_returns_value
  1698. if we got an error_mark_node.
  1699. 2000-07-03 Nathan Sidwell <nathan@codesourcery.com>
  1700. * decl2.c (push_decl_namespace): Push the original namespace.
  1701. 2000-07-03 Nathan Sidwell <nathan@codesourcery.com>
  1702. * pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.
  1703. * semantics.c (begin_class_definition): Clear it.
  1704. 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
  1705. * cp-tree.h (genrtl_goto_stmt): Remove declaration.
  1706. (genrtl_expr_stmt): Likewise.
  1707. (genrtl_decl_stmt): Likewise.
  1708. (genrtl_if_stmt): Likewise.
  1709. (genrtl_while_stmt): Likewise.
  1710. (genrtl_do_stmt): Likewise.
  1711. (genrtl_return_stmt): Likewise.
  1712. (genrtl_for_stmt): Likewise.
  1713. (genrtl_break_stmt): Likewise.
  1714. (genrtl_continue_stmt): Likewise.
  1715. (genrtl_scope_stmt): Likewise.
  1716. (genrtl_switch_stmt): Likewise.
  1717. (genrtl_case_label): Likewise.
  1718. (genrtl_begin_compound_stmt): Likewise.
  1719. (genrtl_finish_compound_stmt): Likewise.
  1720. (genrtl_compound_stmt): Likewise.
  1721. (genrtl_asm_stmt): Likewise.
  1722. * init.c (begin_init_stmts): Remove call to
  1723. genrtl_begin_compound_stmt.
  1724. (finish_init_stmts): Remove call to genrtl_finish_compound_stmt.
  1725. * semantics.c (lang_expand_stmt): Changed call to
  1726. genrtl_compound_stmt to ignore return value.
  1727. 2000-07-02 Mark Mitchell <mark@codesourcery.com>
  1728. * mangle.c (canonicalize_for_substitution): Return the canonical
  1729. variant of a type.
  1730. * decl.c (duplicate_decls): Preserve DECL_ORIGINAL_TYPE for a
  1731. TYPE_DECL.
  1732. * typeck.c (commonparms): Remove obstack manipulations.
  1733. 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
  1734. * Make-lang.in (cc1plus$(exeext)): Added c-semantics.o.
  1735. * Makefile.in (OBJS): Added ../c-semantics.o.
  1736. (OBJDEPS): Likewise.
  1737. * cp-tree.h (TREE_LANG_FLAG_?): Moved common documentation to
  1738. ../c-common.h.
  1739. (struct stmt_tree): Added comment.
  1740. (current_function_name_declared): Removed.
  1741. (stmts_are_full_exprs_p): Likewise.
  1742. (genrtl_do_pushlevel): Likewise.
  1743. (genrtl_clear_out_block): Likewise.
  1744. (COMPOUND_STMT_NO_SCOPE): Moved to ../c-common.h.
  1745. (DECL_ANON_UNION_ELEMS): Likewise.
  1746. (emit_local_var): Likewise.
  1747. (make_rtl_for_local_static): Likewise.
  1748. (do_case): Likewise.
  1749. (expand_stmt): Likewise.
  1750. (genrtl_decl_cleanup): Likewise.
  1751. (c_expand_asm_operands): Likewise.
  1752. (c_expand_return): Likewise.
  1753. (c_expand_start_case): Likewise.
  1754. * decl.c (make_rtl_for_local_static): Moved to c-semantics.c.
  1755. (emit_local_var): Likewise.
  1756. (initialize_local_var): Change reference to
  1757. stmts_are_full_exprs_p to call to stmts_are_full_exprs_p().
  1758. Change reference to stmts_are_full_exprs_p to
  1759. current_stmt_tree->stmts_are_full_exprs_p.
  1760. (push_cp_function_context): Likewise.
  1761. * expect.c (expand_throw): Change reference to
  1762. stmts_are_full_exprs_p.
  1763. * init.c (build_aggr_init): Change reference to
  1764. stmts_are_full_exprs_p.
  1765. (build_vec_init): Likewise.
  1766. * optimize.c (maybe_clone_body): Change reference to
  1767. current_function_name_declared to
  1768. cp_function_chain->name_declared.
  1769. * pt.c (instantiate_decl): Change reference to
  1770. current_function_name_declared to
  1771. cp_function_chain->name_declared.
  1772. * semantics.c (expand_cond): Moved declaration to c-common.h.
  1773. (genrtl_do_pushlevel): Moved to c-semantics.c.
  1774. (genrtl_clear_out_block): Likewise.
  1775. (genrtl_goto_stmt): Likewise.
  1776. (genrtl_expr_stmt): Likewise.
  1777. (genrtl_decl_stmt): Likewise.
  1778. (gerntl_if_stmt): Likewise.
  1779. (genrtl_while_stmt): Likewise.
  1780. (genrtl_do_stmt): Likewise.
  1781. (genrtl_return_stmt): Likewise.
  1782. (genrtl_for_stmt): Likewise.
  1783. (genrtl_break_stmt): Likewise.
  1784. (genrtl_continue_stmt): Likewise.
  1785. (genrtl_scope_stmt): Likewise.
  1786. (genrtl_switch_stmt): Likewise.
  1787. (genrtl_case_label): Likewise.
  1788. (genrtl_begin_compound_stmt): Likewise.
  1789. (genrtl_finish_compound_stmt): Likewise.
  1790. (genrtl_compound_stmt): Likewise.
  1791. (genrtl_asm_stmt): Likewise.
  1792. (genrtl_decl_cleanup): Likewise.
  1793. (expand_cond): Likewise.
  1794. (expand_stmt): Renamed to ...
  1795. (lang_expand_stmt): ... this.
  1796. (lang_expand_expr_stmt): Initialize.
  1797. (set_current_function_name_declared): Likewise.
  1798. (stmts_are_full_exprs_p): Likewise.
  1799. (current_function_name_declared): Likewise.
  1800. (anon_aggr_type_p): Likewise.
  1801. (do_poplevel): Change reference to
  1802. stmts_are_full_exprs_p to call to stmts_are_full_exprs_p().
  1803. Change reference to stmts_are_full_exprs_p to
  1804. current_stmt_tree->stmts_are_full_exprs_p.
  1805. (add_tree): Likewise.
  1806. (finish_expr_stmt): Likewise.
  1807. (prep_stmt): Likewise.
  1808. (lang_expand_stmt): Likewise.
  1809. (begin_compound_stmt): Change reference to
  1810. current_function_name_declared to
  1811. cp_function_chain->name_declared and call to
  1812. current_function_name_declared().
  1813. (setup_vtbl_ptr): Likewise.
  1814. (genrtl_do_poplevel): Removed.
  1815. 2000-06-30 Jason Merrill <jason@redhat.com>
  1816. * init.c (init_init_processing): Go back to aligning like
  1817. double_type_node for old ABI.
  1818. (get_cookie_size): Make cookie larger if we get a type that needs
  1819. more alignment.
  1820. (build_vec_delete): Call it.
  1821. * typeck.c (qualify_type_recursive): New fn.
  1822. (composite_pointer_type): Use it.
  1823. (build_binary_op): Use composite_pointer_type.
  1824. 2000-06-24 Carlos O'Ryan <coryan@cs.wustl.edu>
  1825. Jason Merrill <jason@redhat.com>
  1826. * typeck.c (check_return_expr): Don't complain about returning
  1827. NULL from operator new if -fcheck-new.
  1828. * cp-tree.h: Declare flag_check_new here.
  1829. * init.c: Not here.
  1830. 2000-06-28 Alex Samuel <samuel@codesourcery.com>
  1831. * mangle.c (find_substitution): Use same_type_p.
  1832. (write_encoding): Don't check for substitutions.
  1833. 2000-06-30 Nathan Sidwell <nathan@codesourcery.com>
  1834. * parse.y (expr_no_comma_rangle): New non-terminal.
  1835. (template_parm): Use it for default parameter case.
  1836. (template_arg): Use it.
  1837. (expr_no_commas): Remove commented out undefined extensions.
  1838. * Makefile.in (CONFLICTS): Adjust to 33 s/r & 48 r/r.
  1839. * parse.h, parse.c: Rebuilt.
  1840. 2000-06-30 Mark Mitchell <mark@codesourcery.com>
  1841. * semantics.c (genrtl_asm_stmt): Don't decay input operands here.
  1842. (finish_asm_stmt): Do it here, instead.
  1843. * cp-tree.h (ridpointers): Don't declare.
  1844. * decl.c (record_builtin_type): Use CP_RID_MAX instead of RID_MAX.
  1845. (record_builtin_java_type): Likewise.
  1846. (init_decl_processing): Likewise.
  1847. * lex.c: Move inclusion of lex.h.
  1848. (ridpointers): Don't define.
  1849. (init_parse): Initialize ripdointers. Use CP_RID_MAX instead of
  1850. RID_MAX.
  1851. * lex.h (enum rid): Rename to ...
  1852. (enum cp_rid): ... this.
  1853. (ridpointers): Don't declare.
  1854. * parse.y: Move inclusion of lex.h.
  1855. * parse.c: Regenerated.
  1856. * spew.c: Move inclusion of lex.h.
  1857. * cp-tree.h (struct language_function): Remove temp_name_counter.
  1858. (temp_name_counter): Remove.
  1859. (get_temp_name): Change prototype.
  1860. (get_guard): New function.
  1861. (get_guard_cond): Likewise.
  1862. (set_guard): Likewise.
  1863. * cvt.c (build_up_reference): Adjust call to get_temp_name.
  1864. * decl.c (expand_static_init): Use get_guard and friends to
  1865. implement guard variables.
  1866. * decl2.c (get_temp_name): Assume that the variables created are
  1867. always static.
  1868. (get_sentry): Rename to ...
  1869. (get_guard): ... this. Implement new ABI guard variables.
  1870. (get_guard_bits): New function.
  1871. (get_guard_cond): Likewise.
  1872. (set_guard): Likewise.
  1873. (start_static_initialization_or_destruction): Use them.
  1874. (do_static_initialization): Replace sentry with guard throughout.
  1875. (do_static_destruction): Likewise.
  1876. * init.c (create_temporary_var): Add comment.
  1877. 2000-06-28 Alex Samuel <samuel@codesourcery.com>
  1878. * mangle.c (find_substitution): Use same_type_p.
  1879. (write_encoding): Don't check for substitutions.
  1880. 2000-06-30 Nathan Sidwell <nathan@codesourcery.com>
  1881. * parse.y (expr_no_comma_rangle): New non-terminal.
  1882. (template_parm): Use it for default parameter case.
  1883. (template_arg): Use it.
  1884. (expr_no_commas): Remove commented out undefined extensions.
  1885. * Makefile.in (CONFLICTS): Adjust to 33 s/r & 48 r/r.
  1886. * parse.h, parse.c: Rebuilt.
  1887. 2000-06-29 Mark Mitchell <mark@codesourcery.com>
  1888. * cp-tree.h (flag_const_strings): Remove.
  1889. (warn_parentheses): Likewise.
  1890. (warn_format): Likewise.
  1891. (common_type): Likewise.
  1892. (default_conversion): Likewise.
  1893. (build_binary_op): Likewise.
  1894. (cp_build_binary_op): New macro.
  1895. * call.c (build_new_op): Use cp_build_binary_op instead of
  1896. build_binary_op.
  1897. * class.c (build_vtable_entry_ref): Likewise.
  1898. * decl.c (expand_static_init): Likewise.
  1899. (compute_array_index_type): Likewise.
  1900. (build_enumerator): Likewise.
  1901. * decl2.c (delete_sanity): Likewise.
  1902. (start_static_initialization_or_destruction): Likewise.
  1903. * error.c (dump_type_suffix): Likewise.
  1904. * init.c (resolve_offset_ref): Likewise.
  1905. (build_new): Likewise.
  1906. (build_new_1): Likewise.
  1907. (build_vec_delete_1): Likewise.
  1908. (build_vec_init): Likewise.
  1909. (build_delete): Likewise.
  1910. * rtti.c (synthesize_tinfo_fn): Likewise.
  1911. (synthesize_tinfo_var): Likewise.
  1912. * search.c (expand_upcast_fixups): Likewise.
  1913. (fixup_all_virtual_upcast_offsets): Likewise.
  1914. * typeck.c (build_array_ref): Likewise.
  1915. (get_member_function_from_ptrfunc): Likewise.
  1916. (build_binary_op): Add parameter.
  1917. (pointer_int_sum): Use cp_build_binary_op.
  1918. (pointer_diff): Likewise.
  1919. (build_modify_expr): Likewise.
  1920. (get_delta_difference): Likewise.
  1921. (build_ptrmemfunc): Likewise.
  1922. 2000-06-29 Nathan Sidwell <nathan@codesourcery.com>
  1923. * cp-tree.h (SET_DECL_ARTIFICIAL): Remove.
  1924. * decl.c (create_implicit_typedef): Adjust.
  1925. * decl2.c (build_artificial_parm): Adjust.
  1926. * method.c (implicitly_declare_fn): Adjust.
  1927. * pt.c (push_inline_template_parms_recursive): Adjust.
  1928. (process_template_parm): Adjust.
  1929. (overloaded_template_name): Adjust.
  1930. * semantics.c (finish_template_template_parm): Adjust.
  1931. 2000-06-28 Mark Mitchell <mark@codesourcery.com>
  1932. * cp-tree.h (CLEAR_BINFO_NEW_VTABLE_MARKED): Remove.
  1933. * class.c (update_vtable_entry_for_fn): Correct logic for deciding
  1934. where to emit thunks.
  1935. (build_vtt): Adjust call to build_vtt_inits.
  1936. (build_vtt_inits): Add parameter to indicate whether or not
  1937. sub-VTTs for virtual bases should be included. Adjust handling of
  1938. construction vtables.
  1939. (get_matching_base): New function.
  1940. (dfs_build_vtt_inits): Rename to ...
  1941. (dfs_build_secondary_vptr_vtt_inits): Adjust handling of
  1942. construction vtables.
  1943. (dfs_fixup_binfo_vtbls): Likewise.
  1944. (build_ctor_vtbl_groups): Build construction vtables for virtual
  1945. bases, too.
  1946. (accumulate_vtbl_inits): Tweak logic for deciding whether or not
  1947. to build construction vtbls.
  1948. (dfs_accumulate_vtbl_inits): Adjust handling of
  1949. construction vtables.
  1950. * pt.c (tsubst, case TEMPLATE_TEMPLATE_PARM): Handle cv-qualified
  1951. types correctly.
  1952. 2000-06-27 Mark Mitchell <mark@codesourcery.com>
  1953. * decl.c (grokfndecl): Set DECL_CONTEXT for static functions too.
  1954. 2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
  1955. * search.c (hides): Remove.
  1956. (is_subobject_of_p): Add most_derived parameter. Use
  1957. CANONICAL_BINFO.
  1958. (lookup_field_queue_p): Adjust.
  1959. (lookup_field_r): Adjust.
  1960. 2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
  1961. * decl2.c (handle_class_head): Bash typedefs to the type's main
  1962. decl.
  1963. 2000-06-25 Mark Mitchell <mark@codesourcery.com>
  1964. * cp-tree.h (genrtl_begin_stmt_expr): Rename to ...
  1965. (begin_global_stmt_expr): ... this.
  1966. (genrtl_finish_stmt_expr): Rename to ...
  1967. (finish_global_stmt_expr): ... this.
  1968. * init.c (begin_init_stmts): Adjust calls.
  1969. (finish_init_stmts): Likewise.
  1970. * semantics.c (genrtl_begin_stmt_expr): Rename to ...
  1971. (begin_global_stmt_expr): ... this.
  1972. (genrtl_finish_stmt_expr): Rename to ...
  1973. (finish_global_stmt_expr): ... this.
  1974. 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
  1975. * search.c (lookup_member): Fix typo in comment.
  1976. 2000-06-24 Jason Merrill <jason@redhat.com>
  1977. * decl.c (pushdecl): Don't set DECL_CONTEXT from current_namespace.
  1978. (push_namespace): Set DECL_CONTEXT for a new NAMESPACE_DECL.
  1979. 2000-06-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  1980. * parse.y (complex_direct_notype_declarator): Support global_scope.
  1981. * Makefile.in: Adjust conflict count.
  1982. 2000-06-23 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
  1983. * parse.y (template_arg): Convert TEMPLATE_DECL
  1984. that is a template template parameter to
  1985. TEMPLATE_TEMPLATE_PARM here.
  1986. * cp-tree.def (TEMPLATE_TEMPLATE_PARM): Adjust comment.
  1987. * cp-tree.h (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): New macro.
  1988. (copy_template_template_parm): Adjust prototype.
  1989. * decl.c (grokdeclarator): Remove dead code.
  1990. * pt.c (process_template_parm): Tidy.
  1991. (lookup_template_class): Construct nodes in
  1992. copy_template_template_parm.
  1993. (tsubst): Pass TEMPLATE_DECL rather than IDENTIFIER_NODE to
  1994. lookup_template_class. Use TYPE_TI_TEMPLATE.
  1995. * tree.c (copy_template_template_parm): Add NEWARGS
  1996. parameter.
  1997. (mapcar): Adjust call to copy_template_template_parm.
  1998. * typeck.c (comptypes): Use TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL.
  1999. * method.c (build_template_template_parm_names): Change error
  2000. code to avoid compilation warning.
  2001. * gxxint.texi: Document template template parameter
  2002. name mangling.
  2003. 2000-06-21 Alex Samuel <samuel@codesourcery.com>
  2004. * Make-lang.in (CXX_LIB2FUNCS): Add cp-demangle.o and dyn-string.o.
  2005. (CXX_LIB2SRCS): Add cp-demangle.c and dyn-string.c.
  2006. (cp-demangle.o): New rule.
  2007. (dyn-string.o): Likewise.
  2008. * inc/cxxabi.h (__cxa_demangle): New declaration.
  2009. 2000-06-22 Mark Mitchell <mark@codesourcery.com>
  2010. * cp-tree.h (BV_USE_VCALL_INDEX_P): New macro.
  2011. (BV_GENERATE_THUNK_WITH_VTABLE_P): Likewise.
  2012. (lang_decl_flags): Add generate_with_vtable_p. Make vcall_offset
  2013. a tree, not an int.
  2014. (THUNK_GENERATE_WITH_VTABLE_P): New macro.
  2015. (make_thunk): Change prototype.
  2016. (emit_thunk): Rename to use_thunk.
  2017. (mangle_thunk): Change prototype.
  2018. * class.c (get_derived_offset): Simplify.
  2019. (copy_virtuals): Clear BV_USE_VCALL_INDEX_P and
  2020. BV_GENERATE_THUNK_WITH_VTABLE_P.
  2021. (build_primary_vtable): Simplify.
  2022. (add_virtual_function): Use BV_FN, rather than TREE_VALUE.
  2023. (dfs_find_base): Remove.
  2024. (update_vtable_entry_for_fn): Correct bug in finding the base
  2025. where a virtual function was first declared. Figure out whether
  2026. or not to emit a vcall-thunk with the vtables in which it appears.
  2027. Correct logic for deciding whether to use an ordinary thunk, or a
  2028. vcall thunk.
  2029. (finish_struct_1): Remove unnecssary code.
  2030. (build_vtbl_initializer): Use ssize_int for the running counter of
  2031. negative indices.
  2032. (build_vtbl_initializer): Only use vcall thunks where necessary.
  2033. Mark thunks as needing to be emitted with their vtables, or not.
  2034. (build_vbase_offset_vtbl_entries): Adjust for use of ssize_int in
  2035. indices. Use size_binop.
  2036. (dfs_build_vcall_offset_vtbl_entries): Don't rely on
  2037. BINFO_PRIMARY_MARKED_P here. Use BV_FN consistently. Use
  2038. size_binop.
  2039. (build_rtti_vtbl_entries): Adjust call to build_vtable_entry.
  2040. (build_vtable_entry): Mark thunks as needing to be emitted with
  2041. their vtables, or not.
  2042. * decl.c (lang_mark_tree): Mark the vcall_offset in a thunk.
  2043. * decl2.c (mark_vtable_entries): Use use_thunk instead of
  2044. emit_thunk.
  2045. * dump.c (dequeue_and_dump): Remove dead code. Dump new thunk
  2046. information.
  2047. * error.c (dump_expr): Use BV_FN.
  2048. * mangle.c (mangle_thunk): Adjust now that vcall_offset is a tree,
  2049. not an int.
  2050. * method.c (make_thunk): Likewise.
  2051. (emit_thunk): Rename to use_thunk. Allow callers to decide
  2052. whether or not to actually emit the thunk. Adjust for changes in
  2053. representation of vcall offsets.
  2054. * search.c (dfs_get_pure_virtuals): Use BV_FN.
  2055. * semantics.c (emit_associated_thunks): New function.
  2056. (expand_body): Use it.
  2057. * ir.texi: Adjust descriptions of thunks.
  2058. 2000-06-22 Jason Merrill <jason@redhat.com>
  2059. * pt.c (tsubst_decl, case FUNCTION_DECL): Clear DECL_SAVED_TREE.
  2060. (tsubst_friend_function): Copy it here.
  2061. * decl.c (grok_op_properties): Fix typo.
  2062. * decl2.c (delete_sanity): Clarify warning, avoid failure on
  2063. deleting void*.
  2064. * pt.c (check_explicit_specialization): Clarify error.
  2065. * decl.c (pushdecl): Also pull out one of the FUNCTION_DECLs from
  2066. an old OVERLOAD when we're declaring a non-function.
  2067. (pushdecl, destroy_local_var): Check for error_mark_node.
  2068. (warn_extern_redeclared_static): Also bail early if
  2069. we're a CONST_DECL.
  2070. (push_overloaded_decl): Ignore an old error_mark_node.
  2071. 2000-06-22 Nathan Sidwell <nathan@codesourcery.com>
  2072. * call.c (build_x_va_arg): Check if in a template decl.
  2073. * pt.c (tsubst_copy, case VA_ARG_EXPR): Use build_x_va_arg.
  2074. 2000-06-20 Alexandre Petit-Bianco <apbianco@cygnus.com>
  2075. * class.c (push_lang_context): TYPE_NAME gets you to the Java
  2076. types DECLs.
  2077. * decl.c (check_goto): Computed gotos assumed OK.
  2078. 2000-06-20 Jason Merrill <jason@redhat.com>
  2079. * pt.c (tsubst_decl, case TYPE_DECL): Fix test for TYPE_DECLs
  2080. for which we don't need to look for instantiations.
  2081. 2000-06-21 Nathan Sidwell <nathan@codesourcery.com>
  2082. * parse.y (program): Always call finish_translation_unit.
  2083. * parse.c, parse.h: Rebuilt.
  2084. 2000-06-20 Zack Weinberg <zack@wolery.cumb.org>
  2085. * method.c: Don't include hard-reg-set.h.
  2086. 2000-06-20 Nathan Sidwell <nathan@codesourcery.com>
  2087. * rtti.c (get_base_offset): Cope when vbase field is in a base.
  2088. 2000-06-20 Nathan Sidwell <nathan@codesourcery.com>
  2089. * call.c (build_conditional_expr): Use VOID_TYPE_P.
  2090. * cvt.c (cp_convert_to_pointer): Likewise.
  2091. (convert_to_void): Likewise.
  2092. * error.c (dump_expr): Likewise.
  2093. * except.c (complete_ptr_ref_or_void_ptr_p): Likewise.
  2094. * init.c (build_delete): Likewise.
  2095. * method.c (emit_thunk): Likewise.
  2096. * optmize.c (declare_return_variable): Likewise.
  2097. * rtti.c (get_tinfo_decl_dynamic): Likewise.
  2098. (get_typeid): Likewise.
  2099. (build_dynamic_cast_1): Likewise.
  2100. * typeck.c (composite_pointer_type): Likewise.
  2101. (common_type): Likewise.
  2102. (build_indirect_ref): Likewise.
  2103. (build_binary_op): Likewise.
  2104. (build_x_compound_expr): Likewise.
  2105. (check_return_expr): Likewise.
  2106. * typeck2.c (add_exception_specifier): Likewise.
  2107. * mangle.c (write_method_parms): Use direct comparison for end
  2108. of parmlist.
  2109. 2000-06-19 Benjamin Chelf <chelf@codesourcery.com>
  2110. * cp-tree.h (genrtl_try_block): Declare function.
  2111. (genrtl_handler): Likewise.
  2112. (genrtl_catch_block): Likewise.
  2113. (genrtl_ctor_stmt): Likewise.
  2114. (genrtl_subobject): Likewise.
  2115. (genrtl_decl_cleanup): Likewise.
  2116. (genrtl_do_poplevel): Likewise.
  2117. (genrtl_do_pushlevel): Likewise.
  2118. (genrtl_clear_out_block): Likewise.
  2119. (genrtl_goto_stmt): Likewise.
  2120. (genrtl_expr_stmt): Likewise.
  2121. (genrtl_decl_stmt): Likewise.
  2122. (genrtl_if_stmt): Likewise.
  2123. (genrtl_while_stmt): Likewise.
  2124. (genrtl_do_stmt): Likewise.
  2125. (genrtl_return_stmt): Likewise.
  2126. (genrtl_for_stmt): Likewise.
  2127. (genrtl_break_stmt): Likewise.
  2128. (genrtl_continue_stmt): Likewise.
  2129. (genrtl_scope_stmt): Likewise.
  2130. (genrtl_switch_stmt): Likewise.
  2131. (genrtl_case_label): Likewise.
  2132. (genrtl_begin_compound_stmt): Likewise.
  2133. (genrtl_finish_compound_stmt): Likewise.
  2134. (genrtl_compound_stmt): Likewise.
  2135. (genrtl_asm_stmt): Likewise.
  2136. (genrtl_named_return_value): Likewise.
  2137. (genrtl_begin_stmt_expr): Likewise.
  2138. (genrtl_finish_stmt_expr): Likewise.
  2139. (finish_for_stmt): Removed first argument.
  2140. (finish_switch_stmt): Likewise.
  2141. * semantics.c (genrtl_try_block): Define function.
  2142. (genrtl_handler): Likewise.
  2143. (genrtl_catch_block): Likewise.
  2144. (genrtl_ctor_stmt): Likewise.
  2145. (genrtl_subobject): Likewise.
  2146. (genrtl_decl_cleanup): Likewise.
  2147. (genrtl_do_poplevel): Likewise.
  2148. (genrtl_do_pushlevel): Likewise.
  2149. (genrtl_clear_out_block): Likewise.
  2150. (genrtl_goto_stmt): Likewise.
  2151. (genrtl_expr_stmt): Likewise.
  2152. (genrtl_decl_stmt): Likewise.
  2153. (genrtl_if_stmt): Likewise.
  2154. (genrtl_while_stmt): Likewise.
  2155. (genrtl_do_stmt): Likewise.
  2156. (genrtl_return_stmt): Likewise.
  2157. (genrtl_for_stmt): Likewise.
  2158. (genrtl_break_stmt): Likewise.
  2159. (genrtl_continue_stmt): Likewise.
  2160. (genrtl_scope_stmt): Likewise.
  2161. (genrtl_switch_stmt): Likewise.
  2162. (genrtl_case_label): Likewise.
  2163. (genrtl_begin_compound_stmt): Likewise.
  2164. (genrtl_finish_compound_stmt): Likewise.
  2165. (genrtl_compound_stmt): Likewise.
  2166. (genrtl_asm_stmt): Likewise.
  2167. (genrtl_named_return_value): Likewise.
  2168. (genrtl_begin_stmt_expr): Likewise.
  2169. (genrtl_finish_stmt_expr): Likewise.
  2170. (finish_for_stmt): Removed first argument and generate rtl
  2171. specific code.
  2172. (finish_switch_stmt): Likewise.
  2173. (do_poplevel): Removed generate rtl specific code.
  2174. (do_pushlevel): Likewise.
  2175. (add_tree): Likewise.
  2176. (finish_goto_stmt): Likewise.
  2177. (finish_expr_stmt): Likewise.
  2178. (begin_if_stmt): Likewise.
  2179. (finish_if_stmt_cond): Likewise.
  2180. (finish_then_clause): Likewise.
  2181. (begin_else_clause): Likewise.
  2182. (finish_else_clause): Likewise.
  2183. (finish_if_stmt): Likewise.
  2184. (clear_out_block): Likewise.
  2185. (begin_while_stmt): Likewise.
  2186. (finish_while_stmt_cond): Likewise.
  2187. (finish_while_stmt): Likewise.
  2188. (begin_do_stmt): Likewise.
  2189. (finish_do_body): Likewise.
  2190. (finish_do_stmt): Likewise.
  2191. (finish_return_stmt): Likewise.
  2192. (begin_for_stmt): Likewise.
  2193. (finish_for_init_stmt): Likewise.
  2194. (finish_for_cond): Likewise.
  2195. (finish_for_expr): Likewise.
  2196. (finish_break_stmt): Likewise.
  2197. (finish_continue_stmt): Likewise.
  2198. (begin_switch_stmt): Likewise.
  2199. (finish_switch_cond): Likewise.
  2200. (finish_case_label): Likewise.
  2201. (begin_try_block): Likewise.
  2202. (begin_function_try_block): Likewise.
  2203. (finish_try_block): Likewise.
  2204. (finish_cleanup_try_block): Likewise.
  2205. (finish_cleanup): Likewise.
  2206. (finish_function_try_block): Likewise.
  2207. (finish_handler_sequence): Likewise.
  2208. (finish_function_handler_sequence): Likewise.
  2209. (begin_handler): Likewise.
  2210. (finish_handler_parms): Likewise.
  2211. (begin_catch_block): Likewise.
  2212. (finish_handler): Likewise.
  2213. (begin_compound_stmt): Likewise.
  2214. (finish_compound_stmt): Likewise.
  2215. (finish_asm_stmt): Likewise.
  2216. (finish_label_stmt): Likewise.
  2217. (finish_label_decl): Likewise.
  2218. (finish_subobject): Likewise.
  2219. (finish_decl_cleanup): Likewise.
  2220. (finish_named_return_value): Likewise.
  2221. (begin_stmt_expr): Likewise.
  2222. (finish_stmt_expr): Likewise.
  2223. * decl.c (initialize_local_var): Changed call to finish_expr_stmt
  2224. to call genrtl_expr_stmt when appropriate.
  2225. * init.c (begin_init_stmts): Changed calls to begin_stmt_expr and
  2226. begin_compound_expr to call genrtl_begin_stmt_expr and
  2227. genrtl_begin_compound_expr when appropriate.
  2228. (finish_init_stmts): Changed calls to finish_compound_expr and
  2229. finish_stmt_expr to call genrtl_finish_compound_expr and
  2230. genrtl_finish_stmt_expr when appropriate.
  2231. (expand_default_init): Changed call to finish_expr_stmt to call
  2232. genrtl_expr_stmt when appropriate.
  2233. (build_vec_init): Likewise.
  2234. * parse.y (simple_stmt): Removed first argument from call to
  2235. finish_for_stmt. Removed first argument from call to
  2236. finish_switch_stmt.
  2237. * parse.c: Regenerated.
  2238. * pt.c (tsubst_expr): Removed first argument from call to
  2239. finish_for_stmt. Removed first argument from call to
  2240. finish_switch_stmt.
  2241. 2000-06-16 Benjamin Chelf <chelf@codesourcery.com>
  2242. * cp-tree.h (enum cplus_tree_code): Changed __DUMMY to
  2243. CP_DUMMY_TREE_CODE. Remove #include "c-common.def".
  2244. * lex.c (cplus_tree_code_type[]): Removed #include "c-common.def".
  2245. (cplus_tree_code_length[]): Likewise.
  2246. (cplus_tree_code_name[]): Likewise.
  2247. (init_parse): Added call to add_c_tree_codes. Changed
  2248. LAST_AND_UNUSED_TREE_CODE to LAST_C_TREE_CODE.
  2249. 2000-06-16 Mark Mitchell <mark@codesourcery.com>
  2250. * cp-tree.h (finish_mem_initializers): Declare.
  2251. (count_trees): Likewise.
  2252. * parse.y (base_init): Use finish_mem_initializers.
  2253. * semantics.c (finish_mem_initializers): New function.
  2254. * tree.c (count_trees_r): Prototype. Use DATA parameter to store
  2255. the number of trees.
  2256. (n_trees): Remove.
  2257. (count_trees): Don't use it.
  2258. 2000-06-15 Jason Merrill <jason@redhat.com>
  2259. * tree.c (count_trees): New debugging function.
  2260. * typeck.c (build_x_function_call): Use DECL_FUNCTION_TEMPLATE_P.
  2261. * init.c (build_member_call): Pull out the name of a DECL.
  2262. * Makefile.in (semantics.o, pt.o): Depend on TIMEVAR_H.
  2263. * semantics.c (expand_body): Push to TV_INTEGRATION here.
  2264. * optimize.c (optimize_function): Not here.
  2265. * pt.c (instantiate_decl): Push to TV_PARSE.
  2266. 2000-06-15 Mark Mitchell <mark@codesourcery.com>
  2267. * cp-tree.h (struct language_function): Remove x_base_init_list
  2268. and x_member_init_list.
  2269. (current_base_init_list): Remove.
  2270. (current_member_init_list): Likewise.
  2271. (setup_vtbl_ptr): Change prototype.
  2272. (emit_base_init): Likewise.
  2273. (expand_member_init): Likewise.
  2274. (reinit_parse_for_function): Remove.
  2275. * decl.c (save_function_data): Don't clear x_base_init_list and
  2276. x_member_init_list.
  2277. (mark_language_function): Don't mark them.
  2278. * init.c (perform_member_init): Tweak comment.
  2279. (sort_member_init): Take the list of initializers as an argument.
  2280. (sort_base_init): Likewise.
  2281. (emit_base_init): Likewise.
  2282. (expand_member_init): Return the initializer. Don't use global
  2283. variables.
  2284. * lex.c (reinit_parse_for_function): Remove.
  2285. * method.c (build_template_parm_names): Correct substitution.
  2286. (do_build_copy_constructor): Don't use current_member_init_list
  2287. and current_base_init_list.
  2288. (synthesize_method): Likewise.
  2289. * parse.y (base_init): Split mem-initializers into
  2290. base-initializers and field-initializers.
  2291. (member_init_list): Build up the list here.
  2292. (member_init): Return the initializer.
  2293. (fn.depfn): Don't use reinit_parse_for_function.
  2294. * parse.c: Regenerated.
  2295. * pt.c (convert_nontype_argument): Don't make an ADDR_EXPR of the
  2296. ERROR_MARK.
  2297. (tsubst_expr): Don't use current_member_init_list
  2298. and current_base_init_list.
  2299. (tsubst_expr_values): Rename to ...
  2300. (tsubst_initializer_list): ... this. Use convert_from_reference.
  2301. * semantics.c (setup_vtbl_ptr): Don't use current_member_init_list
  2302. and current_base_init_list.
  2303. (begin_function_definition): Don't call reinit_parse_for_function.
  2304. * dump.c (dequeue_and_dump): Use TREE_VEC_LENGTH with vectors.
  2305. * error.c (dump_expr): Handle ADDR_EXPRs with REFERENCE_TYPE
  2306. correctly.
  2307. * cp-tree.h (DECL_PENDING_INLINE_P): Relax checking.
  2308. 2000-06-14 Benjamin Chelf <chelf@codesourcery.com>
  2309. * cp-tree.h (IF_COND): Move to c-common.h.
  2310. (THEN_CLAUSE): Likewise.
  2311. (ELSE_CLAUSE): Likewise.
  2312. (WHILE_COND): Likewise.
  2313. (WHILE_BODY): Likewise.
  2314. (DO_COND): Likewise.
  2315. (DO_BODY): Likewise.
  2316. (RETURN_EXPR): Likewise.
  2317. (EXPR_STMT_EXPR): Likewise.
  2318. (FOR_INIT_STMT): Likewise.
  2319. (FOR_COND): Likewise.
  2320. (FOR_EXPR): Likewise.
  2321. (FOR_BODY): Likewise.
  2322. (SWITCH_COND): Likewise.
  2323. (SWITCH_BODY): Likewise.
  2324. (CASE_LOW): Likewise.
  2325. (CASE_HIGH): Likewise.
  2326. (GOTO_DESTINATION): Likewise.
  2327. (COMPOUND_BODY): Likewise.
  2328. (ASM_CV_QUAL): Likewise.
  2329. (ASM_STRING): Likewise.
  2330. (ASM_OUTPUTS): Likewise.
  2331. (ASM_INPUTS): Likewise.
  2332. (ASM_CLOBBERS): Likewise.
  2333. (DECL_STMT_DECL): Likewise.
  2334. (STMT_EXPR_STMT): Likewise.
  2335. (LABEL_STMT_LABEL): Likewise.
  2336. (SCOPE_BEGIN_P): Likewise.
  2337. (SCOPE_END_P): Likewise.
  2338. (SCOPE_STMT_BLOCK): Likewise.
  2339. (SCOPE_NULLIFIED_P): Likewise.
  2340. (SCOPE_NO_CLEANUPS_P): Likewise.
  2341. (SCOPE_PARTIAL_P): Likewise.
  2342. (ASM_VOLATILE_P): Likewise.
  2343. (STMT_LINENO): Likewise.
  2344. (STMT_LINENO_FOR_FN_P): Likewise.
  2345. * cp-tree.def: Removed SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
  2346. ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
  2347. FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
  2348. CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
  2349. SCOPE_STMT, CASE_LABEL, STMT_EXPR.
  2350. * Makefile.in (CXX_TREE_H): Added $(srcdir)/../c-common.def.
  2351. * Make-lang.in (CXX_SRCS): Added $(srcdir)/c-common.def.
  2352. (cc1plus$(exeext)): Added $(srcdir)/c-common.def.
  2353. * lex.c (cplus_tree_code_type[]): Added '#include "c-common.def"'.
  2354. (cplus_tree_code_length[]): Added '#include "c-common.def"'.
  2355. (cplus_tree_code_name[]): Added '#include "c-common.def"'.
  2356. 2000-06-14 Mark Mitchell <mark@codesourcery.com>
  2357. * cp-tree.h (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH): New macro.
  2358. * class.c (dfs_find_final_overrider): Set it appropriately.
  2359. (dfs_built_vtt_inits): Check BINFO_OVERRIDE_ALONG_VIRTUAL_PATH to
  2360. avoid unneeded secondary vptrs.
  2361. 2000-06-13 Jakub Jelinek <jakub@redhat.com>
  2362. * class.c (build_secondary_vtable): Set DECL_USER_ALIGN.
  2363. (check_bitfield_decl, check_field_decl): Likewise.
  2364. (build_vtbl_or_vbase_field, build_base_field): Likewise.
  2365. (layout_class_type): Set DECL_USER_ALIGN resp. CLASSTYPE_USER_ALIGN.
  2366. * decl.c (record_unknown_type): Set TYPE_USER_ALIGN.
  2367. (xfer_tag, finish_enum): Likewise.
  2368. * decl2.c (finish_builtin_type): Likewise.
  2369. * init.c (init_init_processing): Likewise.
  2370. * pt.c (instantiate_class_template): Likewise.
  2371. * rtti.c (get_tinfo_decl, synthesize_tinfo_fn): Set DECL_USER_ALIGN.
  2372. * cp-tree.h (struct lang_type): Add user_align member.
  2373. (CLASSTYPE_USER_ALIGN): Define.
  2374. 2000-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  2375. * Make-lang.in (c++.install-common): Install g++-cross in
  2376. $(gcc_tooldir)/bin as g++ and c++; g++ in $(bindir) as
  2377. $(target_alias)-g++ and $(target_alias)-c++.
  2378. 2000-06-12 Mark Mitchell <mark@codesourcery.com>
  2379. * class.c (vcall_offset_data_s): Add last_init and fns.
  2380. (overrides): Rename to same_signature_p.
  2381. (dfs_find_final_overrider): Adjust accordingly.
  2382. (mark_overriders): Likewise.
  2383. (warn_hidden): Likewise.
  2384. (build_vtbl_initializer): Reorganize machinery for building things
  2385. at negative offsets.
  2386. (build_vcall_and_vbase_vtbl_entries): Likewise.
  2387. (build_vbase_offset_vtbl_entries): Likewise.
  2388. (dfs_build_vcall_offset_vtbl_entries): Correct order of vcall
  2389. offset entries. Do not create two entries for functions with the
  2390. same signature.
  2391. (build_vcall_offset_vtbl_entries): Initialize vod->fns.
  2392. (build_rtti_vtbl_entries): Reorganize machinery for building things
  2393. at negative offsets.
  2394. * optimize.c (expand_call_inline): Don't recurse into the code
  2395. used to initialize the parameters more than once.
  2396. 2000-06-11 Mark Mitchell <mark@codesourcery.com>
  2397. * mangle.c (NESTED_TEMPLATE_MATCH): Fix typo in comment.
  2398. (is_std_substitution): Don't check CLASSTYPE_USE_TEMPLATE here.
  2399. (find_substitution): Only use the `Sa' substitution for
  2400. std::allocator, not instantiations of it.
  2401. (write_template_prefix): Move comment. Only use a TREE_LIST to
  2402. represent substitutions for a member template.
  2403. (write_array_type): Mangle array dimensions correctly.
  2404. * optimize.c (maybe_clone_body): Copy more information from the
  2405. cloned function.
  2406. * pt.c (regenerate_decl_from_template): Preserve DECL_USE_TEMPLATE
  2407. on the regenerated declaration.
  2408. 2000-06-11 Chip Salzenberg <chip@valinux.com>
  2409. Mark Mitchell <mark@codesourcery.com>
  2410. * class.c (build_vtable): Clarify comment.
  2411. (build_ctor_vtbl_group): Pass the most derived type to
  2412. build_vtable.
  2413. 2000-06-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  2414. * decl2.c (compare_options): Don't needlessly cast away const-ness.
  2415. 2000-06-10 Mark Mitchell <mark@codesourcery.com>
  2416. * decl.c (add_binding): Handle duplicate declarations of external
  2417. variables.
  2418. 2000-06-09 Chip Salzenberg <chip@valinux.com>
  2419. Mark Mitchell <mark@codesourcery.com>
  2420. * mangle.c (write_number): Take an unsigned HOST_WIDE_INT as an
  2421. argument.
  2422. (write_signed_number): New macro.
  2423. (write_unsigned_number): Likewise.
  2424. (write_source_name): Use them.
  2425. (write_number): Handle signed and unsigned values.
  2426. (write_integer_cst): Use tree_int_cst_sgn, and use
  2427. write_unsigned_number or write_signed_number as appropriate.
  2428. (write_discriminator): Use write_unsigned_number or
  2429. write_signed_number as appropriate.
  2430. (write_template_arg_literal): Likewise.
  2431. (write_array_type): Use tree_low_cst.
  2432. (write_template_parm): Use write_unsigned_number or
  2433. write_signed_number as appropriate.
  2434. (write_substitution): Adjust call to write_number.
  2435. (write_type): Get the TYPE_MAIN_VARIANT before mangling it.
  2436. (write_expression): Handle non-type template arguments of
  2437. reference type correctly.
  2438. (mangle_thunk): Use write_signed_number.
  2439. 2000-06-09 Chip Salzenberg <chip@valinux.com>
  2440. * mangle.c (find_substition): Don't mangle objects with typename
  2441. substitutions (e.g. "cin" as "Si").
  2442. 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
  2443. * call.c (add_candidate): Use ggc_alloc_cleared.
  2444. * decl.c (lookup_label): Likewise.
  2445. * lex.c (retrofit_lang_decl): Likewise.
  2446. 2000-06-09 Jason Merrill <jason@casey.soma.redhat.com>
  2447. * semantics.c (expand_body): Push to TV_EXPAND.
  2448. * optimize.c (optimize_function): Push to TV_INTEGRATION.
  2449. * decl.c (start_function): Always call announce_function.
  2450. * tinfo2.cc: Just declare abort.
  2451. 2000-06-09 Gabriel Dos Reis <gdr@codesourcery.com>
  2452. * lex.c (DEF_OPERATOR): Say `operator@' -not- `operator @'
  2453. whenever @ is a symbolic name.
  2454. 2000-06-08 Jakub Jelinek <jakub@redhat.com>
  2455. * method.c (make_thunk): Clear DECL_VTT_PARM in thunk.
  2456. 2000-06-07 Mark Mitchell <mark@codesourcery.com>
  2457. * decl.c (pushdecl): Look up functions by DECL_NAME, not
  2458. DECL_ASSEMBLER_NAME.
  2459. 2000-06-06 Mark Mitchell <mark@codesourcery.com>
  2460. * decl2.c (c_language): Define.
  2461. 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
  2462. * lex.c (lang_init_options): Tweak.
  2463. * decl2.c: Remove #inclusion of diagnostic.h
  2464. (lang_decode_option): Move diagnostic formatting options to
  2465. toplevel.
  2466. * lang-options.h: Remove documentation for diagnostic options.
  2467. * Makefile.in (lex.o): Depends upon diagnostic.h
  2468. 2000-06-06 Mark Mitchell <mark@codesourcery.com>
  2469. * decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have
  2470. the same DECL_RESULT, it's not a redefinition.
  2471. * pt.c (tsubst_decl): Remove code to handle illegal
  2472. specializations.
  2473. 2000-06-06 Nathan Sidwell <nathan@codesourcery.com>
  2474. * exception.cc: (__eh_alloc, __eh_free): Moved to libgcc2.c
  2475. 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
  2476. * search.c (maybe_suppress_debug_info): Don't check
  2477. CLASSTYPE_INTERFACE_ONLY if CLASSTYPE_INTERFACE_KNOWN isn't set.
  2478. * pt.c (mark_decl_instantiated): Do SET_DECL_EXPLICIT_INSTANTIATION
  2479. here if extern_p.
  2480. Remember instantiation context in deferred instantiations.
  2481. * cp-tree.h (struct tinst_level): Remove.
  2482. (TINST_DECL, TINST_LINE, TINST_FILE): New macros.
  2483. * pt.c (current_tinst_level): Now a tree.
  2484. (print_template_context, push_tinst_level, pop_tinst_level,
  2485. tinst_for_decl): Adjust.
  2486. (reopen_tinst_level): New fn.
  2487. (init_pt): Register current_tinst_level as a root.
  2488. (add_pending_template): Put current_tinst_level in TREE_PURPOSE
  2489. of the pending templates list.
  2490. (instantiate_pending_templates): Adjust. Call reopen_tinst_level.
  2491. * lex.c (extract_interface_info): Adjust.
  2492. * decl2.c (warn_if_unknown_interface): Adjust.
  2493. 2000-06-05 Mark Mitchell <mark@codesourcery.com>
  2494. * class.c (indirect_primary_base_p): New function.
  2495. (determine_primary_base): Use it.
  2496. 2000-06-05 Nathan Sidwell <nathan@codesourcery.com>
  2497. Update new-abi dynamic cast algorithm.
  2498. * tinfo.cc (__class_type_info::__dyncast_result): Add
  2499. whole_details. Adjust constructor.
  2500. (__vmi_class_type_info::__do_dyncast): Adjust for vmi_flags.
  2501. Avoid unnecessary searching.
  2502. (__dynamic_cast): Adjust for __dyncast_result::whole_details.
  2503. 2000-06-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  2504. * decl.c (init_decl_processing): Don't call record_component_aliases.
  2505. * tree.c (build_cplus_array_type_1): Likewise.
  2506. 2000-06-04 Mark Mitchell <mark@codesourcery.com>
  2507. * ir.texi: Correct typo.
  2508. * mangle.c (write_expression): Handle non-type template arguments
  2509. with reference type.
  2510. * method.c (build_overload_value): Likewise.
  2511. * pt.c (convert_nontype_argument): Explicitly represent conversion
  2512. to a reference with an ADDR_EXPR.
  2513. (unify): Always unify arguments in left-to-right order.
  2514. 2000-06-03 Alex Samuel <samuel@codesourcery.com>
  2515. Mark Mitchell <mark@codesourcery.com>
  2516. * Make-lang.in (CXX_SRCS): Add mangle.c.
  2517. * Makefile.in (CXX_OBJS): Add mangle.o.
  2518. (mangle.o): New rule.
  2519. * class.c (local_classes): New variable.
  2520. * class.c (get_vtable_name): Use mangle_vtable_for_type for new ABI.
  2521. (get_vtt_name): Use mangle_vtt_name for new ABI.
  2522. (init_class_processing): Initialize local_classes.
  2523. (build_ctor_vtbl_group): Use mangle_ctor_vtbl_for_type for new ABI.
  2524. * cp-tree.h (cp_tree_index): Add CPTI_STD_IDENTIFIER.
  2525. (std_identifier): New macro.
  2526. (DECL_VOLATILE_MEMFUNC_P): New macro.
  2527. (DECL_NAMESPACE_STD_P): Likewise.
  2528. (local_classes): Declare.
  2529. (get_mostly_instantiated_function_type): Declare.
  2530. (init_mangle): Declare.
  2531. (mangle_decl): Likewise.
  2532. (mangle_type_string): Likewise.
  2533. (mangle_type): Likewise.
  2534. (mangle_typeinfo_for_type): Likewise.
  2535. (mangle_typeinfo_string_for_type): Likewise.
  2536. (mangle_vtbl_for_type): Likewise.
  2537. (mangle_vtt_for_type): Likewise.
  2538. (mangle_ctor_vtbl_for_type): Likewise.
  2539. (mangle_thunk): Likewise.
  2540. (mangle_conv_op_name_for_type): Likewise.
  2541. (mangle_guard_variable): Likewise.
  2542. * decl.c (pushtag): Keep track of local classes.
  2543. (initialize_predefined_identifiers): Initialize std_identifier.
  2544. (init_decl_processing): Use std_identifier.
  2545. (start_decl): Don't treat instantiations as specializations.
  2546. (grokdeclarator): Likewise.
  2547. (grokvardecl): Call mangle_decl for new ABI. Only set mangled
  2548. name for fully-instantiated templates.
  2549. * decl2.c (grokclassfn): Use set_mangled_name_for_decl for
  2550. destructors with the new ABI.
  2551. (finish_static_data_member_decl): Use mangle_decl under the new ABI.
  2552. (grokfield): Use mangle_type for new ABI.
  2553. (grokoptypename): Use mangle_conv_op_for_type for new ABI.
  2554. (get_sentry): Use mangle_guard_variable for new ABI.
  2555. (start_static_initialization_or_destruction): Likewise.
  2556. * expr.c (extract_aggr_init): Remove.
  2557. (extract_scalar_init): Likewise.
  2558. (extract_init): Remove #if 0'd code.
  2559. * mangle.c: New function.
  2560. * method.c (build_mangled_name): Assert not flag_new_abi.
  2561. (build_static_name): Likewise.
  2562. (build_decl_overload_real): Likewise.
  2563. (build_typename_overload): Likewise.
  2564. (build_overload_with_type): Likewise.
  2565. (build_overload_name): Likewise.
  2566. (get_ctor_vtbl_name): Likewise.
  2567. (start_squangling): Likewise.
  2568. (get_id_2): Likewise.
  2569. (set_mangled_name_for_decl): Call mangle_decl for new ABI.
  2570. (init_method): Call init_mangle for new ABI.
  2571. (make_thunk): Call mangle_thunk for new ABI.
  2572. * operators.def: Correct new ABI manglings for the `%' operator.
  2573. Add `::' operator.
  2574. * pt.c (build_template_decl): Copy DECL_OVERLOADED_OPERATOR_P and
  2575. DECL_ASSIGNMENT_OPERATOR_P to the TEMPLATE_DECL.
  2576. (lookup_template_class): Call mangle_decl for new ABI.
  2577. (get_mostly_instantiated_function_type): New function.
  2578. (set_mangled_name_for_template_decl): Use it.
  2579. (tsubst_decl): Use set_mangled_name_for_decl for destructors with
  2580. the new ABI. Use mangle_conv_op_name_for_type for instantiated
  2581. conversion op names.
  2582. * rtti.c (tinfo_name): Call mangle_type_string for new ABI.
  2583. (get_tinfo_decl): Call mangle_typeinfo_for_type for new ABI.
  2584. (tinfo_base_init): Likewise. Mangle typeinfo string name with
  2585. mangle_typeinfo_string_for_type.
  2586. 2000-06-03 Mark Mitchell <mark@codesourcery.com>
  2587. * cp-tree.h (TMPL_ARGS_LEVEL): Clarify comment.
  2588. (INNERMOST_TEMPLATE_ARGS): New macro.
  2589. (innermost_args): Remove.
  2590. (get_innermost_template_args): New function.
  2591. * decl2.c (arg_assoc_class): Use INNERMOST_TEMPLATE_ARGS.
  2592. * error.c (dump_function_decl): Be caution when using
  2593. most_general_template.
  2594. * method.c (build_template_parm_names): Use
  2595. INNERMOST_TEMPLATE_ARGS.
  2596. * pt.c (add_to_template_args): Tidy comment
  2597. (get_innermost_template_args): New function.
  2598. (check_explicit_specialization): Clear DECL_INITIAL for a new
  2599. specialization.
  2600. (process_partial_specialization): Use INNERMOST_TEMPLATE_ARGS.
  2601. Tidy.
  2602. (push_template_decl): Always register specializations of the most
  2603. general template.
  2604. (convert_template_argument): Use INNERMOST_TEMPLATE_ARGS.
  2605. (coerce_template_parms): Likewise.
  2606. (lookup_template_class): Likewise.
  2607. (innermost_args): Remove.
  2608. (tsubst_decl): Use INNERMOST_TEMPLATE_ARGS.
  2609. (tsubst_decl): Handle tricky specializations. Use
  2610. get_innermost_template_args.
  2611. (instantiate_template): Simplify handling of partial
  2612. instantiations.
  2613. (get_class_bindings): Use INNERMOST_TEMPLATE_ARGS.
  2614. (most_general_template): Reimplement, in a more straightforward
  2615. manner.
  2616. (regenerate_decl_from_template): Tweak formatting. Use
  2617. TMPL_ARGS_DEPTH for clarity.
  2618. (set_mangled_name_for_template_decl): Use INNERMOST_ARGS.
  2619. * dump.c (dequeue_and_dump): Dump information about thunks.
  2620. 2000-06-01 Richard Henderson <rth@cygnus.com>
  2621. * decl.c (init_decl_processing): Set lang_get_alias_set first thing.
  2622. 2000-06-01 Richard Henderson <rth@cygnus.com>
  2623. * decl2.c (unsupported_options): Fix typo, make const.
  2624. (lang_decode_option): Fix bsearch argument order.
  2625. 2000-06-01 Mark Mitchell <mark@codesourcery.com>
  2626. * init.c (resolve_offset_ref): Remove check for TREE_ADDRESSABLE
  2627. on FIELD_DECLs.
  2628. 2000-05-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  2629. * cp-tree.h (c_get_alias_set): Deleted.
  2630. * Makefile.in (decl.o): Include ../expr.h.
  2631. * decl.c (expr.h): Include.
  2632. (init_decl_processing): Call record_component_aliases for arrays.
  2633. (grokdeclarator): Likewise.
  2634. Set TREE_ADDRESSABLE for fields that aren't bitfields.
  2635. * tree.c (build_cplus_array_type_1): Call record_component_aliases.
  2636. 2000-05-31 Mark Mitchell <mark@codesourcery.com>
  2637. Remove guiding declaration support.
  2638. * cp/cp-tree.h (flag_dump_translation_unit): Make it const.
  2639. (flag_guiding_decls): Remove.
  2640. * call.c (build_user_type_conversion_1): Remove support for
  2641. guiding decls.
  2642. (build_new_function_call): Likewise.
  2643. (build_new_op): Likewise.
  2644. (build_new_method_call): Likewise.
  2645. * decl.c (start_function): Likewise.
  2646. * friend.c (is_friend): Likewise.
  2647. (do_friend): Likewise.
  2648. * decl2.c ((flag_dump_translation_unit): Make it const.
  2649. (flag_guiding_decls): Remove.
  2650. (unsupported_options): New variable
  2651. (compare_options): New function.
  2652. (lang_decode_option): Use them.
  2653. * decl.c (build_cp_library_fn): Set DECL_CONTEXT.
  2654. * method.c (mangle_expression): Adjust test for legal expression
  2655. operators.
  2656. * pt.c (instantiate_decl): Save and restore the local
  2657. specializations list.
  2658. 2000-05-30 Jason Merrill <jason@decepticon.cygnus.com>
  2659. * decl.c (grok_reference_init): Pass LOOKUP_ONLYCONVERTING.
  2660. 2000-05-30 Mark Mitchell <mark@codesourcery.com>
  2661. * call.c (add_template_candidate_real): Handle member template
  2662. constructors for classes with virtual bases.
  2663. (build_user_type_conversion_1): Use in_charge_arg_for_name.
  2664. (build_new_method_call): Use DECL_NONSTATIC_MEMBER_FUNCTION_P.
  2665. * ir.texi: Update thunk documentation.
  2666. * call.c (joust): Fix handling of overloaded builtin operators.
  2667. 2000-05-30 Zack Weinberg <zack@wolery.cumb.org>
  2668. * cp-tree.h (DECL_ANTICIPATED): New macro.
  2669. Document new use of DECL_LANG_FLAG_7.
  2670. * decl.c (builtin_function): Set DECL_ANTICIPATED on builtins
  2671. in the user namespace.
  2672. * lex.c (do_identifier): If the identifier's declaration has
  2673. DECL_ANTICIPATED on, it has not yet been declared. But do not
  2674. replace it with an ordinary implicit declaration.
  2675. * tinfo2.cc: Include stdlib.h.
  2676. 2000-05-29 Mark Mitchell <mark@codesourcery.com>
  2677. * cp-tree.h (CLASSTYPE_ALIGN_UNIT): New macro.
  2678. * class.c (layout_empty_base): Use CLASSTYPE_ALIGN_UNIT, not
  2679. CLASSTYPE_ALIGN.
  2680. 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
  2681. * decl2.c (lang_decode_option): Use skip_leading_substring instead
  2682. of plain strncmp.
  2683. 2000-05-28 Alexandre Oliva <aoliva@cygnus.com>
  2684. * operators.def (<?): Duplicated, should have been...
  2685. (>?): this. Fixed.
  2686. 2000-05-27 Alex Samuel <samuel@codesourcery.com>
  2687. Mark Mitchell <mark@codesourcery.com>
  2688. * cp-tree.h (ansi_opname): Make it a macro.
  2689. (ansi_assopname): Likewise.
  2690. (struct lang_decl_flags): Add assignment_operator_p.
  2691. (struct lang_decl): Add operator_code.
  2692. (DECL_VTT_PARM): Adjust.
  2693. (DECL_OVERLOADED_OPERATOR_P): Return the operator_code for an
  2694. overloaded operator.
  2695. (SET_OVERLOADED_OPERATOR_CODE): New macro.
  2696. (DECL_ASSIGNMENT_OPERATOR_P): New macro.
  2697. (DECL_ARRAY_DELETE_OPERATOR_P): Adjust.
  2698. (opname_tab): Remove.
  2699. (assignop_tab): Likewise.
  2700. (operator_name_info_t): New type.
  2701. (operator_name_info): New variable.
  2702. (assignment_operator_name_info): Likewise.
  2703. (build_cp_library_fn): Remove declaration.
  2704. (push_cp_library_fn): Likewise.
  2705. (operator_name_string): Likewise.
  2706. (build_decl_overload): Likewise.
  2707. * call.c (print_z_candidates): Simplify.
  2708. (build_object_call): Adjust usage of ansi_opname. Use
  2709. DECL_OVERLOADED_OPERATOR_P.
  2710. (op_error): Adjust operator name lookup.
  2711. (build_conditional_expr): Adjust usage of ansi_opname.
  2712. (build_new_op): Likewise.
  2713. (build_op_delete_call): Likewise.
  2714. (build_over_call): Likewise.
  2715. (joust): Use DECL_OVERLOADED_OPERATOR_P.
  2716. * decl.c (duplicate_decls): Copy operator_code.
  2717. (init_decl_processing): Adjust parameters to push_cp_library_fn.
  2718. (builtin_function): Adjust parameters to build_library_fn_1.
  2719. (build_library_fn_1): Accept an overloaded operator code.
  2720. (build_library_fn): Pass ERROR_MARK.
  2721. (build_cp_library_fn): Accept an overloaded operator code.
  2722. (push_cp_library_fn): Likewise.
  2723. (grokfndecl): Tweak.
  2724. (grokdeclarator): Simplify code to compute names of overloaded
  2725. operators. Adjust use of ansi_opname.
  2726. (ambi_op_p): Work on tree_codes, not identifiers.
  2727. (unary_op_p): Likewise.
  2728. (grok_op_properties): Likewise.
  2729. (start_function): Use DECL_OVERLOADED_OPERATOR_P.
  2730. (lang_mark_tree): Don't try to mark the operator_code.
  2731. * decl2.c (grok_function_init): Use DECL_OVERLOADED_OPERATOR_P.
  2732. * error.c (dump_decl): Remove special handling for operator
  2733. names.
  2734. (dump_function_name): Likewise.
  2735. (dump_expr): Adjust name lookup of operators.
  2736. (op_to_string): Simplify.
  2737. (assop_to_string): Likewise.
  2738. * init.c (build_new_1): Adjust use of ansi_opname.
  2739. * lex.c (opname_tab): Remove.
  2740. (assignop_tab): Likewise.
  2741. (ansi_opname): Likewise.
  2742. (ansi_assopname): Likewise.
  2743. (operator_name_string): Likewise.
  2744. (reinit_lang_specific): Likewise.
  2745. (operator_name_info): New variable.
  2746. (assignment_operator_name_info): Likewise.
  2747. (init_operators): New function.
  2748. (init_parse): Use it.
  2749. (do_identifier): Adjust use of ansi_opname.
  2750. * method.c (mangle_expression): Don't use ansi_opname for
  2751. mangling.
  2752. (build_decl_overload_real): Use DECL_OVERLOADED_OPERATOR_P.
  2753. (build_decl_overload): Remove.
  2754. (build_typename_overload): Use OPERATOR_TYPENAME_FORMAT directly.
  2755. (do_build_assign_ref): Adjust use of ansi_opname.
  2756. (synthesize_method): Likewise.
  2757. (implicitly_declare_fn): Likewise.
  2758. * operators.def: New file.
  2759. * parse.y (operator): Adjust use of ansi_opname.
  2760. * pt.c (tsubst_decl): Use IDENTIFIER_OPNAME_P.
  2761. (set_mangled_name_for_template_decl): Don't play games with
  2762. current_namespace.
  2763. (special_function_p): Adjust use of ansi_opname.
  2764. * typeck.c (check_return_expr): Likewise.
  2765. * Make-lang.in (cc1plus): Depend on operators.def.
  2766. * Makefile.in (lex.o): Likewise.
  2767. (decl.o): Likewise.
  2768. 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
  2769. * Make-lang.in (cplib2.ready): Eradicate.
  2770. 2000-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  2771. * method.c (mangle_expression): Use TREE_CODE_LENGTH.
  2772. * tree.c (break_out_calls, build_min_nt): Use TREE_CODE_LENGTH.
  2773. (built_min, cp_tree_equal): Likewise.
  2774. 2000-05-26 Mark Mitchell <mark@codesourcery.com>
  2775. * class.c (layout_nonempty_base_or_field): Replace
  2776. `record_layout_info' with `record_layout_info_s'.
  2777. 2000-05-26 Jason Merrill <jason@casey.soma.redhat.com>
  2778. Fix goto checking.
  2779. * cp-tree.h (struct language_function): x_named_labels is now
  2780. a struct named_label_list*.
  2781. * decl.c (struct named_label_use_list): Renamed from...
  2782. (struct named_label_list): ...this. New struct.
  2783. (push_binding_level): Don't set eh_region.
  2784. (note_level_for_eh): New fn.
  2785. (pop_label): Take label and old value directly.
  2786. (pop_labels): Adjust for new named_labels format.
  2787. (lookup_label): Likewise.
  2788. (poplevel): Note characteristics of a binding level containing a
  2789. named label. Mess with named label lists earlier.
  2790. (mark_named_label_lists): New fn.
  2791. (mark_lang_function): Call it.
  2792. (use_label): New fn, split out from...
  2793. (make_label_decl): ...here. Don't call it.
  2794. (decl_jump_unsafe, check_previous_goto, check_previous_goto_1,
  2795. check_previous_gotos): New fns, split out from...
  2796. (define_label): ...here.
  2797. (check_switch_goto): New fn.
  2798. (define_case_label): Call it.
  2799. (check_goto): New fn.
  2800. * semantics.c (finish_goto_stmt): Call it and use_label.
  2801. (begin_compound_stmt): If we're a try block, call note_level_for_eh.
  2802. (expand_stmt): Never pass 1 as DONT_JUMP_IN to expand_end_bindings.
  2803. 2000-05-26 Mark Mitchell <mark@codesourcery.com>
  2804. * class.c (build_vtable_entry_ref): Correct usage of
  2805. get_vtbl_decl_for_binfo.
  2806. * decl2.c (grokclassfn): Set DECL_LANGUAGE here.
  2807. * method.c (implicitly_declare_fn): Not here.
  2808. 2000-05-26 Nathan Sidwell <nathan@codesourcery.com>
  2809. * cp-tree.h (CPTI_PTMD_DESC_TYPE): Rename to ...
  2810. (CPTI_PTMD_DESC_TYPE): ... here.
  2811. (ptmd_desc_type_node): Rename to ...
  2812. (ptm_desc_type_node): ... here.
  2813. * decl.c: Likewise.
  2814. * rtti.c (ptmd_initializer): Rename to ...
  2815. (ptm_initializer): ... here.
  2816. (sythesize_tinfo_var): Adjust. Deal with pointer to member
  2817. function.
  2818. (create_tinfo_types): Adjust.
  2819. 2000-05-25 Mark Mitchell <mark@codesourcery.com>
  2820. Finish implementation of VTTs.
  2821. * cp-tree.h (cp_tree_index): Add CPTI_VTT_PARM_TYPE and
  2822. CPTI_VTT_PARM_IDENTIFIER.
  2823. (vtt_parm_identifier): New macro.
  2824. (vtt_parm_type): Likewise.
  2825. (BINFO_SUBVTT_INDEX): Likewise.
  2826. (BINFO_VPTR_INDEX): Likewise.
  2827. (struct lang_decl): Add vtt_parm.
  2828. (DECL_VTT_PARM): New macro.
  2829. (DECL_USE_VTT_PARM): Likewise.
  2830. (DECL_NEEDS_VTT_PARM_P): Likewise.
  2831. (get_vtt_name): Declare.
  2832. (build_artificial_parm): Likewise.
  2833. (fixup_all_virtual_upcast_offsets): Likewise.
  2834. (expand_indirect_vtbls_init): Remove.
  2835. * call.c (build_new_method_call): Pass the vtt to subobject
  2836. constructors and destructors.
  2837. * class.c (get_vtt_name): Give it external linkage.
  2838. (build_clone): Handle the magic VTT parameters for clones.
  2839. (clone_function_decl): Fix typo in comment.
  2840. (build_vtt): Keep track of the indices in the VTTs where various
  2841. entities are stored.
  2842. (build_vtt_inits): Likewise.
  2843. (dfs_build_vtt_inits): Likewise.
  2844. (build_ctor_vtbl_group): Tweak type of construction vtables.
  2845. (dfs_accumulate_vtbl_inits): Build vtables for all bases, even
  2846. primary bases, when building construction vtables.
  2847. * decl.c (duplicate_decls): Handle DECL_VTT_PARM.
  2848. (initialize_predefined_identifiers): Add vtt_parm_identifier.
  2849. (init_decl_processing): Initialize vtt_parm_type.
  2850. (grokfndecl): Use DECL_OVERLOADED_OPERATOR_P.
  2851. (lang_mark_tree): Make vtt_parm.
  2852. * decl2.c (build_artificial_parm): New function.
  2853. (maybe_retrofit_in_chrg): Use it. Add VTT parameters.
  2854. (grokclassfn): Use build_artificial_parm.
  2855. * init.c (initialize_vtbl_ptrs): Call
  2856. fixup_all_virtual_upcast_offsets directly.
  2857. (perform_member_init): Use the complete subobject destructor for
  2858. member cleanups.
  2859. (build_vtbl_address): New function.
  2860. (expand_virtual_init): Handle VTTs.
  2861. * optimize (maybe_clone_body): Likewise.
  2862. * search.c (fixup_all_virtual_upcast_offsets): Give it external
  2863. linkage.
  2864. (expand_indirect_vtbls_init): Remove.
  2865. * semantics.c (setup_vtbl_ptr): Fix typos in comment.
  2866. * tree.c (make_binfo): Make them bigger.
  2867. 2000-05-25 Nathan Sidwell <nathan@codesourcery.com>
  2868. * inc/cxxabi.h (__pbase_type_info): Define, based on
  2869. __pointer_type_info.
  2870. (__pointer_type_info): Derive from __pbase_type_info. Adjust.
  2871. (__pointer_to_member_type_info): Likewise.
  2872. * tinfo2.cc (__pbase_type_info::~__pbase_type_info): Implement.
  2873. (__pointer_to_member_type_info::__is_pointer_p): Remove.
  2874. (__pointer_type_info::__do_catch): Rename to ...
  2875. (__pbase_type_info::__do_catch): ... here. Adjust.
  2876. (__pbase_type_info::__pointer_catch): Implement.
  2877. (__pointer_type_info::__pointer_catch): Adjust.
  2878. (__pointer_to_member_type_info::__pointer_catch): Adjust.
  2879. 2000-05-25 Nathan Sidwell <nathan@codesourcery.com>
  2880. * tinfo.h (__user_type_info::contained_virtual_p): New
  2881. predicate.
  2882. * tinfo.cc (__user_type_info::do_upcast): Fix bug with diamond
  2883. shaped hierarchy.
  2884. (__vmi_class_type_info::__do_upcast): Fix bug with NULL pointer to
  2885. diamond shaped hierarchy. Add early out for mixed diamond and
  2886. duplicate shaped hierarchy.
  2887. 2000-05-24 Mark Mitchell <mark@codesourcery.com>
  2888. * cp-tree.h (build_delete): Change prototype.
  2889. (build_vec_delete): Likewise.
  2890. * call.c (build_scoped_method_call): Use special_function_kind
  2891. values to indicate the kind of destruction to be done.
  2892. (build_method_call): Likewise.
  2893. * decl.c (finish_destructor_body): Likewise.
  2894. (maybe_build_cleanup_1): Likewise. Rename to ...
  2895. (maybe_build_cleanup): ... this.
  2896. * decl2.c (delete_sanity): Use special_function_kind
  2897. values to indicate the kind of destruction to be done.
  2898. (build_cleanup): Likewise.
  2899. * init.c (perform_member_init): Likewise.
  2900. (build_vec_delete_1): Likewise.
  2901. (build_dtor_call): Simplify.
  2902. (build_delete): Use special_function_kind
  2903. values to indicate the kind of destruction to be done.
  2904. (build_vbase_delete): Likewise.
  2905. (build_vec_delete): Likewise.
  2906. * init.c (sort_member_init): Fix typo in error message generation
  2907. code.
  2908. 2000-05-15 Donald Lindsay <dlindsay@cygnus.com>
  2909. * semantics.c (begin_class_definition): make the packed
  2910. attribute be sensitive to the "-fpack-struct" command line flag
  2911. 2000-05-24 Nathan Sidwell <nathan@codesourcery.com>
  2912. Update new-abi upcast algorithm.
  2913. * inc/cxxabi.h (__class_type_info::__do_upcast): Change
  2914. prototype and meaning of return value.
  2915. (__si_class_type_info::__do_upcast): Likewise.
  2916. (__vmi_class_type_info::__do_upcast): Likewise.
  2917. * tinfo.cc (__class_type_info::__upcast_result): Replace
  2918. whole2dst with part2dst. Adjust ctor.
  2919. (__class_type_info::__do_upcast): Adjust call of worker function.
  2920. (__class_type_info::__do_upcast): Adjust.
  2921. (__si_class_type_info::__do_upcast): Adjust. Use parent's
  2922. __do_upcast.
  2923. (__vmi_class_type_info::__do_upcast): Likewise. Fix private
  2924. virtual base in diamond hierarchy bug.
  2925. 2000-05-23 Mark Mitchell <mark@codesourcery.com>
  2926. * cp-tree.h (lang_decl_flags): Rename mutable_flag to uninlinable
  2927. and bitfield to tinfo_fn_p.
  2928. (DECL_TINFO_FN_P): Adjust.
  2929. (SET_DECL_TINFO_FN_P): Likewise.
  2930. (DECL_MUTABLE_P): Likewise.
  2931. (DECL_C_BIT_FIELD): Likewise.
  2932. (SET_DECL_C_BIT_FIELD): Likewise.
  2933. (CLEAR_DECL_C_BIT_FIELD): Likewise.
  2934. (DECL_UNINLINABLE): Likewise.
  2935. * class.c (alter_access): Call retrofit_lang_decl if ncessary.
  2936. (handle_using_decl): Remove assertion.
  2937. (build_vtbl_or_vbase_field): Use build_decl, not build_lang_decl,
  2938. to build FIELD_DECLs.
  2939. (build_base_field): Likewise.
  2940. (layout_class_type): Likewise.
  2941. * decl.c (init_decl_processing): Likewise.
  2942. (build_ptrmemfunc_type): Likewise.
  2943. (grokdeclarator): Likewise.
  2944. * decl2.c (grok_x_components): Likewise.
  2945. * except.c (call_eh_info): Likewise.
  2946. * init.c (init_init_processing): Likewise.
  2947. * rtti.c (expand_class_desc): Likewise.
  2948. (create_pseudo_type_info): Likewise.
  2949. (get_vmi_pseudo_type_info): Likewise.
  2950. (create_tinfo_types): Likewise.
  2951. * ptree.c (print_lang_decl): Adjust.
  2952. * typeck.c (build_component_ref): Don't check DECL_LANG_SPECIFIC
  2953. before checking DECL_MUTABLE_P.
  2954. * decl2.c (maybe_retrofit_in_chrg): Don't create in-charge
  2955. parameters for template functions.
  2956. * pt.c (tsubst_decl): Make sure we call maybe_retrofit_in_chrg for
  2957. destructors as well as constructors.
  2958. 2000-05-22 Mark Mitchell <mark@codesourcery.com>
  2959. * class.c (build_ctor_vtbl_group): Set inits.
  2960. * optimize.c (maybe_clone_body): Set DECL_INLINE and
  2961. DECL_THIS_INLINE appropriately for clones.
  2962. * cp-tree.h (IDENTIFIER_TYPENAME_P): Use a flag, not strncmp.
  2963. (DECL_CONV_FN_P): Simplify.
  2964. (DECL_OPERATOR): Remove.
  2965. (language_to_string): Declare.
  2966. * decl.c (duplicate_decls): Fix typo in comment.
  2967. (grokdeclarator): Adjust use of IDENTIFIER_TYPENAME_P.
  2968. (grok_op_properties): Use DECL_CONV_FN_P instead of
  2969. IDENTIFIER_TYPENAME_P.
  2970. * dump.c (dequeue_and_dump): Dump the language linkage of
  2971. declarations.
  2972. * error.c (language_to_string): Give it external linkage.
  2973. * method.c (build_typename_overload): Set IDENTIFIER_TYPENAME_P.
  2974. (implicitly_declare_fn): Set DECL_LANGUAGE.
  2975. * pt.c (check_explicit_specialization): Use DECL_CONV_FN_P, not
  2976. IDENTIFIER_TYPENAME_P.
  2977. (tsubst_decl): Likewise.
  2978. (tsubst_copy): Adjust use of IDENTIFIER_TYPENAME_P.
  2979. * semantics.c (finish_member_declaration): Don't mark members of
  2980. classes declared in an extern "C" region as extern "C".
  2981. 2000-05-22 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  2982. * decl2.c (qualified_lookup_using_namespace): Look through
  2983. namespace aliases.
  2984. * decl.c (push_using_decl): Return the old decl on namespace level.
  2985. 2000-05-21 Mark Mitchell <mark@codesourcery.com>
  2986. * cp-tree.h (SET_BINFO_NEW_VTABLE_MARKED): Add sanity checks.
  2987. (VTT_NAME_PREFIX): New macro.
  2988. (CTOR_VTBL_NAME_PREFIX): Likewise.
  2989. (get_ctor_vtbl_name): New function.
  2990. * class.c (get_vtable_name): Simplify.
  2991. (get_vtt_name): New function.
  2992. (get_vtable_decl): Don't set IDENTIFIER_GLOBAL_VALUE.
  2993. (dfs_mark_primary_bases): Update the CLASSTYPE_VBASECLASSES list
  2994. when a virtual base becomes primary.
  2995. (finish_struct_1): Set CLASSTYPE_VFIELDS a little earlier. Build
  2996. VTTs.
  2997. (finish_vtbls): Adjust calls to accumulate_vtbl_inits to pass in
  2998. additional parameters.
  2999. (dfs_finish_vtbls): Don't clear BINFO_NEW_VTABLE_MARKED.
  3000. (initialize_array): New function.
  3001. (build_vtt): Likewise.
  3002. (build_vtt_inits): Likewise.
  3003. (dfs_build_vtt_inits): Likewise.
  3004. (dfs_fixup_binfo_vtbls): Likewise.
  3005. (build_ctor_vtbl_group): Likewise.
  3006. (initialize_vtable): Use initialize_array.
  3007. (accumulate_vtbl_inits): Reimplement to handle construction
  3008. vtables.
  3009. (dfs_accumulate_vtbl_inits): Likewise.
  3010. (bulid_vtbl_initializer): Adjust parameter name.
  3011. * method.c (build_typename_overload): Remove #if 0'd code.
  3012. (get_ctor_vtbl_name): New function.
  3013. * search.c (dfs_walk_real): Use BINFO_N_BASETYPES.
  3014. (init_vbase_pointers): Don't mess with the TREE_CHAIN of a binfo.
  3015. * cp-tree.h (struct lang_type): Remove search_slot.
  3016. (CLASSTYPE_SEARCH_SLOT): Remove.
  3017. (emit_base_init): Change prototype.
  3018. (initialize_vtbl_ptrs): Likewise.
  3019. (expand_indirect_vtbls_init): Likewise.
  3020. (clear_search_slots): Remove.
  3021. * decl.c (lang_mark_tree): Don't mark search_slot.
  3022. * init.c (initialize_vtbl_ptrs): Simplify.
  3023. (emit_base_init): Likewise.
  3024. * search.c (struct vbase_info): Document decl_ptr.
  3025. (convert_pointer_to_single_level): Remove.
  3026. (dfs_find_vbases): Remove.
  3027. (dfs_init_base_pointers): Simplify.
  3028. (dfs_clear_vbase_slots): Remove.
  3029. (dfs_vtable_path_unmark): New function.
  3030. (init_vbase_pointers): Simplify.
  3031. (expand_upcast_fixups): Don't rely on CLASSTYPE_SEARCH_SLOT.
  3032. (expand_indirect_vtbls_init): Simplify. Don't call
  3033. mark_all_temps_used.
  3034. * semantics.c (setup_vtbl_ptr): Adjust calls to emit_base_init and
  3035. initialize_vtbl_ptrs.
  3036. 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
  3037. * except.c: Add static prototypes.
  3038. 2000-05-20 H.J. Lu <hjl@gnu.org>
  3039. * Make-lang.in (cplib2.ready): Also depend on cc1plus$(exeext).
  3040. 2000-05-19 Mark Mitchell <mark@codesourcery.com>
  3041. Don't create a separate copy of virtual bases for the
  3042. CLASSTYPE_VBASECLASSES list.
  3043. * cp-tree.h (CLASSTYPE_VBASECLASSES): Change documentation.
  3044. (BINFO_FOR_VBASE): Remove.
  3045. (CANONICAL_BINFO): Adjust.
  3046. (binfo_for_vbase): New function.
  3047. * class.c (build_vbase_pointer_fields): Use binfo_for_vbase
  3048. instead of BINFO_FOR_VBASE.
  3049. (build_vbase_pointer): Likewise.
  3050. (build_secondary_vtable): Likewise.
  3051. (dfs_mark_primary_bases): Likewise.
  3052. (mark_primary_bases): Likewise.
  3053. (layout_nonempty_base_or_field): Likewise.
  3054. (dfs_set_offset_for_shared_vbases): Likewise.
  3055. (dfs_set_offset_for_unshared_vbases): Likewise.
  3056. (layout_virtual_bases): Likewise. Adjust for changes to the
  3057. CLASSTYPE_VBASECLASSES list.
  3058. (dump_class_hierarchy_r): Use binfo_for_vbase
  3059. instead of BINFO_FOR_VBASE.
  3060. (dump_class_hierarchy): Likewise.
  3061. (finish_vtbls): Likewise.
  3062. (build_vtbl_initializer): Adjust for changes to the
  3063. CLASSTYPE_VBASECLASSES list.
  3064. (build_vbase_offset_vtbl_entries): Use binfo_for_vbase.
  3065. * decl.c (finish_destructor_body): Adjust for changes to the
  3066. CLASSTYPE_VBASECLASSES list.
  3067. * init.c (sort_base_init): Use binfo_for_vbase.
  3068. (construct_virtual_bases): Adjust for changes to the
  3069. CLASSTYPE_VBASECLASSES list.
  3070. (expand_member_init): Use binfo_for_vbase.
  3071. (build_vbase_delete): Adjust for changes to the
  3072. CLASSTYPE_VBASECLASSES list.
  3073. * method.c (do_build_copy_constructor): Likewise.
  3074. * rtti.c (get_base_offset): Use binfo_for_vbase.
  3075. (expand_class_desc): Remove #if 0'd code.
  3076. * search.c (struct vbase_info): Remove vbase_types.
  3077. (get_base_distance): Use binfo_for_vbase.
  3078. (lookup_field_queue_p): Use CANONICAL_BINFO.
  3079. (get_shared_vbase_if_not_primary): Use binfo_for_vbase.
  3080. (get_pure_virtuals): Adjust for changes to the
  3081. CLASSTYPE_VBASECLASSES list.
  3082. (dfs_find_vbases): Use binfo_for_vbase.
  3083. (dfs_init_vbase_pointers): Likewise.
  3084. (init_vbase_pointers): Don't initialize vi.vbase_types.
  3085. (virtual_context): Use binfo_for_vbase.
  3086. (fixup_all_virtual_upcast_offsets): Adjust for changes to the
  3087. CLASSTYPE_VBASECLASSES list.
  3088. (expand_indirect_vtbls_init): Simplify.
  3089. (dfs_get_vbase_types): Don't replicate virtual bases.
  3090. (find_vbase_instance): Use binfo_for_vbase.
  3091. (binfo_for_vbase): New function.
  3092. * typeck.c (get_delta_difference): Use binfo_for_vbase.
  3093. 2000-05-17 Mark Mitchell <mark@codesourcery.com>
  3094. * decl2.c (finish_anon_union): Generalize error messages to handle
  3095. anonymous structures.
  3096. * init.c (perform_member_init): Remove `name' parameter.
  3097. (build_field_list): New function.
  3098. (sort_member_init): Handle anonymous union initialization order
  3099. correctly. Check for multiple initializations of the same union.
  3100. (emit_base_init): Don't look up fields by name here.
  3101. (expand_member_init): Record the result of name lookup for future
  3102. reference.
  3103. * typeck.c (build_component_ref): Fix formatting.
  3104. 2000-05-17 Andrew Cagney <cagney@b1.cygnus.com>
  3105. * decl.c (pop_label): Replace warn_unused with warn_unused_label.
  3106. * typeck.c (build_x_compound_expr): Replace warn_unused with
  3107. warn_unused_value.
  3108. * decl2.c (lang_decode_option): Update -Wall unused flags by
  3109. calling set_Wunused.
  3110. 2000-05-16 Mark Mitchell <mark@codesourcery.com>
  3111. * cp-treeh (BINFO_NEW_VTABLE_MARKED): Update documentation.
  3112. * init.c (dfs_vtable_path_unmark): Remove.
  3113. * search.c (marked_new_vtable_p): Likewise.
  3114. (unmarked_new_vtable_p): Likewise.
  3115. (dfs_search_slot_nonempty_p): Likewise.
  3116. (dfs_mark): Likewise.
  3117. (dfs_vtable_path_unmark): Likewise.
  3118. (dfs_find_vbases): Don't set BINFO_NEW_VTABLE_MARKED.
  3119. (dfs_int_vbase_pointers): Don't clear BINFO_VTABLE_PATH_MARKED.
  3120. (dfs_init_vbase_pointers): Remove special-case new ABI code.
  3121. (dfs_clear_vbase_slots): Don't clear BINFO_NEW_VTABLE_MARKED.
  3122. (init_vbase_pointers): Simplify.
  3123. (expand_indirect_vtbls_init): Likewise.
  3124. * class.c (copy_virtuals): New function.
  3125. (build_primary_table): Use it.
  3126. (build_secondary_vtable): Likewise.
  3127. (modify_vtable_entry): Use NULL_TREE, not integer_zero_node, to
  3128. indicate that no vcall offset is required.
  3129. (add_virtual_function): Likewise.
  3130. (modify_all_vtables): Likewise.
  3131. (dfs_finish_vtbls): Adjust call to build_vtbl_initializer.
  3132. (dfs_accumulate_vtbl_inits): Likewise.
  3133. (build_vtbl_initializer): Make changes to handle construction
  3134. vtables.
  3135. (dfs_build_vcall_offset_vtbl_entries): Likewise.
  3136. (build_rtti_vtbl_entries): Likewise.
  3137. (build_vtable_entries): Handle a NULL vcall_index.
  3138. 2000-05-15 Gabriel Dos Reis <gdr@codesourcery.com>
  3139. * decl2.c (lang_decode_option): Fix thinko.
  3140. 2000-05-14 Jason Merrill <jason@casey.cygnus.com>
  3141. * except.c (check_handlers): New fn.
  3142. * cp-tree.h: Declare it.
  3143. * semantics.c (finish_handler_sequence): Call it.
  3144. (finish_function_handler_sequence): Likewise.
  3145. (finish_handler_parms): Set TREE_TYPE on the handler.
  3146. * cp-tree.h (PUBLICLY_UNIQUELY_DERIVED_P): New macro.
  3147. * search.c (get_base_distance_recursive): If protect>1, ignore
  3148. special access.
  3149. (get_base_distance): Don't reduce watch_access.
  3150. 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
  3151. * lex.c: #include diagnostic.h.
  3152. (lang_init_options): Set default prefixing rules.
  3153. * lang-options.h: Add -fdiagnostics-show-location=.
  3154. * decl2.c: #include diagnostic.h.
  3155. (lang_decode_option): Handle -fdiagnostics-show-location=.
  3156. 2000-05-12 Nathan Sidwell <nathan@codesourcery.com>
  3157. * tinfo.cc: Revert my 2000-05-08 and 2000-05-07 changes.
  3158. * vec.cc: Revert my 2000-05-07 change.
  3159. 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
  3160. * class.c (check_field_decls): Complain about non-static data
  3161. members with same name as class in class with constructor.
  3162. 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
  3163. * decl.c (grokdeclarator): Allow non-static data members with
  3164. same name as class.
  3165. 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
  3166. * cp-tree.h: Constify tree_srcloc.filename, tinst_level.file,
  3167. and pending_inline.filename. Update prototypes.
  3168. * decl.c (define_label): Constify filename parameter.
  3169. * decl2.c (warn_if_unknown_interface): Constify local char *.
  3170. * input.c Constify input_source.filename. Don't declare
  3171. input_filename or lineno. Constify filename parameter to feed_input.
  3172. * lex.c (init_parse): Constify parameter and return value.
  3173. (cp_pragma_interface, cp_pragma_implementation): Constify
  3174. filename argument.
  3175. (reinit_parse_for_method, reinit_parse_for_block,
  3176. reinit_parse_for_expr, feed_defarg, handle_cp_pragma):
  3177. Constify local char *.
  3178. * pt.c: Don't declare lineno or input_filename.
  3179. (print_template_context, tsubst_friend_function, tsubst_decl,
  3180. tsubst, instantiate_decl): Constify local char *.
  3181. * semantics.c (expand_body): Constify local char *.
  3182. * tree.c (build_srcloc): Constify filename parameter.
  3183. * typeck.c (c_expand_asm_operands): Constify filename
  3184. parameter.
  3185. 2000-05-08 Nathan Sidwell <nathan@codesourcery.com>
  3186. * tinfo.cc (__dynamic_cast): Use a reinterpret_cast. Fix
  3187. offsetof expansion.
  3188. 2000-05-08 Branko Cibej <branko.cibej@hermes.si>
  3189. * inc/cxxabi.h: Fix typos in comment.
  3190. (__base_class_info::__offset): Use a static_cast.
  3191. 2000-05-07 Nathan Sidwell <nathan@codesourcery.com>
  3192. * inc/cxxabi.h: Use __SIZE_TYPE_ and __PTRDIFF_TYPE__ in place
  3193. of std::size_t and std::ptrdiff_t respectively.
  3194. * tinfo.cc: Likewise.
  3195. * vec.cc: Likewise.
  3196. 2000-05-06 Richard Henderson <rth@cygnus.com>
  3197. * typeck.c (build_c_cast): Don't warn integer->pointer size
  3198. mismatch for constants.
  3199. 2000-05-06 Nathan Sidwell <nathan@codesourcery.com>
  3200. * rtti.c (ptmd_initializer): Set non-public, if class is
  3201. incomplete.
  3202. * inc/cxxabi.h (__dynamic_cast): Explicitly say extern "C++".
  3203. (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
  3204. __cxa_vec_delete): Likewise.
  3205. * tinfo.cc (__dynamic_cast): Likewise.
  3206. * vec.cc (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
  3207. __cxa_vec_delete): Likewise.
  3208. 2000-05-04 Mark Mitchell <mark@codesourcery.com>
  3209. * cp-tree.h (DELTA_FROM_VTABLE_ENTRY): Remove.
  3210. (SET_FNADDR_FROM_VTABLE_ENTRY): Likewise.
  3211. (lang_decl_flags): Add vcall_offset.
  3212. (THUNK_VCALL_OFFSET): Use it.
  3213. * decl.c (lang_mark_tree): Don't mark DECL_ACCESS for a thunk.
  3214. * method.c (make_thunk): Create the lang_decl here, not in
  3215. emit_thunk.
  3216. (emit_thunk): Make generic thunks into ordinary functions once
  3217. they have been fed to expand_body.
  3218. * semantics.c (expand_body): Set current_function_is_thunk here.
  3219. 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  3220. * class.c (update_vtable_entry_for_fn): Prototype.
  3221. * pt.c (tsubst_decl): Initialize variables `argvec', `gen_tmpl'
  3222. and `tmpl'.
  3223. * search.c (dfs_build_inheritance_graph_order): Prototype.
  3224. 2000-05-04 Mark Mitchell <mark@codesourcery.com>
  3225. * cp-tree.h (special_function_kind): Add various kinds of
  3226. destructors.
  3227. (special_function_p): New function.
  3228. * class.c (overrides): Don't let one kind of destructor override
  3229. another.
  3230. * decl2.c (mark_used): Use DECL_NON_THUNK_FUNCTION_P when deciding
  3231. whether or not to instantiate a template.
  3232. * tree.c (special_function_p): Define.
  3233. 2000-05-03 Mark Mitchell <mark@codesourcery.com>
  3234. * cp-tree.def (THUNK_DECL): Remove.
  3235. * cp-tree.h (DECL_THUNK_P): New macro.
  3236. (DECL_NON_THUNK_FUNCTION_P): Likewise.
  3237. (DECL_EXTERN_C_FUNCTION_P): Likewise.
  3238. (SET_DECL_THUNK_P): Likewise.
  3239. (DELTA_FROM_VTABLE_ENTRY): Use DECL_THUNK_P.
  3240. (FNADDR_FROM_VTABLE_ENTRY): Likewise.
  3241. (DECL_MAIN_P): Use DECL_EXTERN_C_FUNCTION_P.
  3242. * decl.c (decls_match): Use DECL_EXTERN_C_P.
  3243. (duplicate_decls): Likewise.
  3244. (pushdecl): Likewise. Adjust thunk handling.
  3245. (grokfndecl): Use DECL_EXTERN_C_P.
  3246. * decl2.c (mark_vtable_entries): Use DECL_THUNK_P.
  3247. * dump.c (dequeue_and_dump): Remove THUNK_DECL handling.
  3248. * except.c (nothrow_libfn_p): Use DECL_EXTERN_C_P.
  3249. * expr.c (cplus_expand_expr): Remove THUNK_DECL handling.
  3250. * method.c (make_thunk): Use SET_DECL_THUNK_P. Set
  3251. DECL_NO_STATIC_CHAIN.
  3252. (emit_thunk): Don't play games with TREE_CODE on thunks. Don't
  3253. set DECL_DESTRUCTOR_P or DECL_CONSTRUCTOR_P on a thunk.
  3254. * search.c (covariant_return_p): Remove THUNK_DECL handling.
  3255. * ir.texi: Update.
  3256. 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
  3257. * tree.c (walk_tree): Set lineno.
  3258. 2000-05-01 Mark Mitchell <mark@codesourcery.com>
  3259. * exception.cc: Update license notice.
  3260. * new.cc: Likewise.
  3261. * new1.cc: Likewise.
  3262. * new2.cc: Likewise.
  3263. * tinfo.cc: Likewise.
  3264. * tinfo2.cc: Likewise.
  3265. * vec.cc: Likewise.
  3266. * inc/cxxabi.h: Likewise.
  3267. * inc/exception: Likewise.
  3268. * inc/new: Likewise.
  3269. * inc/new.h: Likewise.
  3270. * inc/typeinfo: Likewise.
  3271. 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
  3272. * tree.c (build_target_expr_with_type): If we already have a
  3273. TARGET_EXPR, just return it.
  3274. * optimize.c (initialize_inlined_parameters): Don't generate an
  3275. EXPR_STMT if we can just use DECL_INITIAL.
  3276. * decl.c (emit_local_var): Only make the initialization a
  3277. full-expression if stmts_are_full_exprs_p.
  3278. 2000-05-01 Mark Mitchell <mark@codesourcery.com>
  3279. * cp-tree.h (same_type_ignoring_top_level_qualifiers_p): New
  3280. macro.
  3281. * call.c (standard_conversion): Use it.
  3282. (direct_reference_binding): Likewise.
  3283. (build_over_call): Likewise.
  3284. (is_properly_derived_from): Likewise.
  3285. (compare_ics): Likewise.
  3286. * class.c (resolves_to_fixed_type_p): Likewise.
  3287. * optimize.c (declare_return_variable): Likewise.
  3288. * pt.c (is_specialization_of): Likewise.
  3289. (unify): Likewise.
  3290. * typeck.c (comp_target_parms): Likeiwse.
  3291. (build_static_cast): Likewise.
  3292. (build_reinterpret_cast): Likewise.
  3293. (build_const_cast): Likewise.
  3294. (comp_ptr_ttypes_real): Likewise.
  3295. (comp_ptr_ttypes_const): Likewise.
  3296. * typeck2.c (process_init_constructor): Likewise.
  3297. 2000-04-30 Scott Snyder <snyder@fnal.gov>
  3298. * decl.c (finish_destructor_body): Use the base destructor when
  3299. destroying virtual bases.
  3300. 2000-04-30 Mark Mitchell <mark@codesourcery.com>
  3301. * expr.c (cplus_expand_expr): Preserve temporaries when expanding
  3302. STMT_EXPRs.
  3303. * optimize.c (struct inline_data): Add target_exprs field.
  3304. (declare_return_variable): When a function returns an aggregate,
  3305. use the variable declared in the TARGET_EXPR as the remapped
  3306. DECL_RESULT.
  3307. (expand_call_inline): Update the pending target_exprs stack.
  3308. (optimize_function): Initialize the stack.
  3309. * decl2.c (finish_file): Fix typo in comment.
  3310. * method.c (emit_thunk): Don't try to return a `void' value.
  3311. * optimize.c (initialize_inlined_parameters): If the parameter is
  3312. addressable, we need to make a new VAR_DECL, even if the
  3313. initializer is constant.
  3314. 2000-04-28 Cosmin Truta <cosmint@cs.ubbcluj.ro>
  3315. * decl.c (grok_op_properties): Add an extra check of argtypes.
  3316. 2000-04-27 Mark Mitchell <mark@codesourcery.com>
  3317. * optimize.c (copy_body_r): Use STRIP_TYPE_NOPS when copying
  3318. variables.
  3319. (initialize_inlined_parameters): Try to avoid creating new
  3320. VAR_DECLs.
  3321. 2000-04-27 Alex Samuel <samuel@codesourcery.com>
  3322. * lex.c (my_get_run_time): Remove.
  3323. (init_filename_times): Use get_run_time instead of my_get_run_time.
  3324. (check_newline): Likewise.
  3325. (dump_time_statistics): Likewise.
  3326. * decl2.c (finish_file): Push and pop timevar TV_VARCONST instead
  3327. of computing elapsed time explicitly.
  3328. 2000-04-26 Mark Mitchell <mark@codesourcery.com>
  3329. * cp-tree.h (TREE_READONLY_DECL_P): Use DECL_P.
  3330. * init.c (decl_constant_value): Check TREE_READONLY_DECL_P.
  3331. * call.c (convert_like_real): Don't test TREE_READONLY_DECL_P
  3332. before calling decl_constant_value.
  3333. * class.c (check_bitfield_decl): Likewise.
  3334. * cvt.c (ocp_convert): Likewise.
  3335. (convert): Likewise.
  3336. * decl.c (compute_array_index_type): Likewise.
  3337. (build_enumerator): Likewise.
  3338. * decl2.c (check_cp_case_value): Likewise.
  3339. * pt.c (convert_nontype_argument): Likewise.
  3340. (tsubst): Likewise.
  3341. * typeck.c (decay_conversion): Likewise.
  3342. (build_compound_expr): Likewise.
  3343. (build_reinterpret_cast): Likewise.
  3344. (build_c_cast): Likewise.
  3345. (convert_for_assignment): Likewise.
  3346. 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
  3347. * decl.c (finish_function): Don't play games with DECL_INLINE.
  3348. 2000-04-25 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
  3349. * ir.texi: Correct typo.
  3350. 2000-04-25 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  3351. * decl.c (grokdeclarator): Reject VLAs as members.
  3352. 2000-04-24 Gabriel Dos Reis <gdr@codesourcery.com>
  3353. * call.c (standard_conversion): Accept conversion between
  3354. COMPLEX_TYPEs.
  3355. * cvt.c (ocp_convert): Handle conversion to COMPLEX_TYPE.
  3356. 2000-04-24 Zack Weinberg <zack@wolery.cumb.org>
  3357. * decl2.c (finish_file): Remove double setup for accounting
  3358. compile time.
  3359. 2000-04-24 Robert Lipe <robertlipe@usa.net>
  3360. * cp-tree.h (lang_type): Member `language' now ENUM_BITFIELD.
  3361. 2000-04-23 Benjamin Kosnik <bkoz@cygnus.com>
  3362. * new.cc (set_new_handler): Needs to be in std::.
  3363. 2000-04-23 Mark Mitchell <mark@codesourcery.com>
  3364. * cp-tree.h (lang_decl): Remove pretty_function_p.
  3365. (DECL_PRETTY_FUNCTION_P): Use TREE_LANG_FLAG_0, not a bit in the
  3366. language-specific node.
  3367. * decl.c (cp_make_fname_decl): Use build_decl, not
  3368. build_lang_decl, to build the variables.
  3369. (grokvardecl): Don't call build_lang_decl for local variables in
  3370. templates.
  3371. (grokdeclarator): Don't call build_lang_decl for local type
  3372. declarations in templates.
  3373. * lex.c (retrofit_lang_decl): Use ggc_alloc_obj to allocated
  3374. zero'd memory, rather than calling memset.
  3375. * pt.c: Include hashtab.h.
  3376. (local_specializations): New variable.
  3377. (retrieve_local_specialization): Use it.
  3378. (register_local_specialization): Likewise.
  3379. (tsubst_decl): Don't assume local variables have
  3380. DECL_LANG_SPECIFIC.
  3381. (instantiate_decl): Set up local_specializations.
  3382. * Makefile.in (HTAB_H): New variable.
  3383. 2000-04-23 Richard Henderson <rth@cygnus.com>
  3384. * typeck.c (c_expand_asm_operands): Restore the original
  3385. contents of the output list.
  3386. 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
  3387. * ir.texi: Document complex number representation.
  3388. 2000-04-20 Nathan Sidwell <nathan@codesourcery.com>
  3389. * rtti.c (init_rtti_processing): Set tinfo_var_id in new-abi.
  3390. (target_incomplete_p): New function.
  3391. (tinfo_base_init): Create comdat NTBS name variable.
  3392. (ptr_initializer): Add non_public parameter. Calculate it.
  3393. (ptmd_initializer): Likewise.
  3394. (synthesize_tinfo_var): Adjust. Emit incomplete class tinfo.
  3395. (create_real_tinfo_var): Add non_public parameter. Use it.
  3396. Push proxy into global namespace.
  3397. * inc/cxxabi.h (__pointer_type_info::incomplete_class_mask):
  3398. New enumeration.
  3399. * inc/typeinfo (type_info::before, type_info::operator==):
  3400. Compare __name addresses.
  3401. * tinfo2.cc: Remove new-abi builtins comment.
  3402. 2000-04-20 Jason Merrill <jason@casey.cygnus.com>
  3403. * typeck.c (build_x_function_call): Resolve an OFFSET_REF.
  3404. * call.c (joust): Exit early if we get the same function, too.
  3405. * decl2.c (key_method): Return NULL_TREE for template classes.
  3406. (import_export_class): Don't need to check for template classes.
  3407. 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
  3408. * lex.c: Remove references to cccp.c.
  3409. 2000-04-18 Mark Mitchell <mark@codesourcery.com>
  3410. * cp-tree.h (lang_decl_flags): Remove const_memfunc and
  3411. volatile_memfunc. Add destructor_attr. Adjust dummy.
  3412. (DECL_DESTRUCTOR_P): Use destructor_attr.
  3413. (DECL_CONST_MEMFUNC_P): Reimplement.
  3414. (DECL_VOLATILE_MEMFUNC_P): Remove.
  3415. * class.c (finish_struct_methods): Use CLASSTYPE_DESTRUCTORS.
  3416. (overrides): Use DECL_DESTRUCTOR_P.
  3417. (check_for_override): Likewise.
  3418. * decl.c (start_function): Likewise.
  3419. * decl2.c (grokfclassfn): Likewise.
  3420. (check_classfn): Likewise.
  3421. (grok_function_init): Likewise.
  3422. 2000-04-17 Mark Mitchell <mark@codesourcery.com>
  3423. * decl2.c (grokfield): Issue error on illegal data member
  3424. declaration.
  3425. 2000-04-17 Mark P Mitchell <mark@codesourcery.com>
  3426. * method.c (make_thunk): Set DECL_CONTEXT for a THUNK_DECL.
  3427. 2000-04-16 Mark Mitchell <mark@codesourcery.com>
  3428. * class.c (build_vtable_entry): Don't build thunks for type-info
  3429. functions.
  3430. 2000-04-16 Jason Merrill <jason@casey.cygnus.com>
  3431. * decl.c (decls_match): Allow a redeclaration of a builtin to
  3432. specify args while the builtin did not.
  3433. 2000-04-15 Mark Mitchell <mark@codesourcery.com>
  3434. * cp-tree.def (THUNK_DECL): Add to documentation.
  3435. * cp-tree.h (flag_huge_objects): Declare.
  3436. * class.c (modify_vtable_entry): Tidy.
  3437. (update_vtable_entry_for_fn): Split out from dfs_modify_vtables.
  3438. Calculate delta appropriately for the new ABI.
  3439. (dfs_modify_vtables): Use it.
  3440. (modify_all_vtables): Fix thinko in code to add overriding copies
  3441. of functions to primary vtables.
  3442. (build_clone): Fix typo in comment.
  3443. (clone_function_decl): Correct order of destructors in vtable.
  3444. (build_vbase_offset_vtbl_entries): Adjust comment.
  3445. (dfs_vcall_offset_queue_p): Remove.
  3446. (dfs_build_vcall_offset_vtbl_entries): Update BV_VCALL_INDEX.
  3447. (build_vcall_offset_vtbl_entries): Juse use dfs_skip_vbases.
  3448. (build_vtable_entry): Correct check for pure virtual functions.
  3449. Don't declare flag_huge_objects.
  3450. * decl.c (flag_huge_objects): Remove declaration.
  3451. * method.c (make_thunk): Tweak mangling for vcall offset thunks.
  3452. Use int_size_in_bytes.
  3453. (emit_thunk): Handle vcall offset thunks.
  3454. 2000-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  3455. * decl2.c (parse_time, varconst_time): Delete declarations.
  3456. (finish_file): Delete LINENO declaration.
  3457. START_TIME and THIS_TIME now long.
  3458. 2000-04-13 Nathan Sidwell <nathan@codesourcery.com>
  3459. * class.c (build_base_field): Reformat comment.
  3460. * inc/cxxabi.h (stddef.h): Comment inclusion.
  3461. (__base_class_info::__offset): Comment shift.
  3462. 2000-04-12 Mark Mitchell <mark@codesourcery.com>
  3463. * cp-tree.h (IDENTIFIER_CTOR_OR_DTOR_P): New macro.
  3464. (cp_tree_index): Add CPTI_PUSH_EXCEPTION_IDENTIFIER.
  3465. (cp_push_exception_identifier): New macro.
  3466. (DECL_COMPLETE_DESTRUCTOR_P): New macro.
  3467. (DECL_BASE_DESTRUCTOR_P): Likewise.
  3468. (DECL_DELETING_DESTRUCTOR_P): Likewise.
  3469. (get_vtbl_decl_for_binfo): Fix formatting.
  3470. (in_charge_arg_for_name): New macro.
  3471. (maybe_build_cleanup_and_delete): Remove declaration.
  3472. * call.c (build_field_call): Use IDENTIFIER_CTOR_OR_DTOR_P.
  3473. (in_charge_arg_for_name): New function.
  3474. (build_new_method_call): Use it. Handle cloned destructors.
  3475. (build_clone): Don't make the base constructor virtual.
  3476. Automatically defer generated functions.
  3477. (clone_function_decl): Handle destructors, too.
  3478. (clone_constructors_and_destructors): Likewise.
  3479. (create_vtable_ptr): Don't create a vtable entry for a cloned
  3480. function.
  3481. * decl.c (predefined_identifier): Add ctor_or_dtor_p.
  3482. (initialize_predefined_identifiers): Update appropriately.
  3483. (finish_destructor_body): Simplify.
  3484. (maybe_build_cleanup_and_delete): Remove.
  3485. * except.c (expand_throw): Handle new-ABI destructors.
  3486. * init.c (expand_cleanup_for_base): Use base_dtor_identifier.
  3487. (build_dtor_call): New function.
  3488. (build_delete): Use it. Simplify.
  3489. * optimize.c (maybe_clone_body): Handle destructors.
  3490. * search.c (lookup_field_queue_p): Use IDENTIFIER_CTOR_OR_DTOR_P.
  3491. * exception.cc (cleanup_fn): New typedef.
  3492. (CALL_CLEANUP): New macro.
  3493. (cp_eh_info): Use them.
  3494. (__cp_push_exception): Likewise.
  3495. (__cp_pop_exception): Likewise.
  3496. 2000-04-11 Mark Mitchell <mark@codesourcery.com>
  3497. * cp-tree.h (cp_tree_index): Add CPTI_DTOR_IDENTIFIER.
  3498. (complete_dtor_identifier): New macro.
  3499. (CLASSTYPE_FIRST_CONVERSION): Remove.
  3500. (CLASSTYPE_CONSTRUCTOR_SLOT): New macro.
  3501. (CLASSTYPE_DESTRUCTOR_SLOT): Likewise.
  3502. (CLASSTYPE_FIRST_CONVERSION_SLOT): Likewise.
  3503. (CLASSTYPE_CONSTRUCTORS): Likewise.
  3504. (CLASSTYPE_DESTRUCTORS): Likewise.
  3505. (lang_decl): Add cloned_function.
  3506. (DECL_COMPLETE_CONSTRUCTOR_P): New macro.
  3507. (DECL_BASE_CONSTRUCTOR_P): Likewise.
  3508. (DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P): Likewise.
  3509. (DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P): Likewise.
  3510. (DECL_CLONED_FUNCTION_P): Likewise.
  3511. (DECL_CLONED_FUNCTION): Likewise.
  3512. (clone_function_decl): Declare.
  3513. (maybe_clone_body): Likewise.
  3514. * call.c (build_user_type_conversion_1): Call complete object
  3515. constructors in the new ABI.
  3516. (build_new_method_call): Don't add in-charge parameters under the
  3517. new ABI.
  3518. * class.c (add_method): Use DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P,
  3519. DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P, CLASSTYPE_CONSTRUCTOR_SLOT, and
  3520. CLASSTYPE_DESTRUCTOR_SLOT.
  3521. (build_clone): New function.
  3522. (clone_function_decl): Likewise.
  3523. (clone_constructors_and_destructors): Likewise.
  3524. (check_bases_and_members): Use it.
  3525. * decl.c (iniitialize_predefined_identifiers): Initialize
  3526. complete_dtor_identifier.
  3527. (finish_function): Don't add extra code to a clone.
  3528. (lang_mark_tree): Mark cloned_function.
  3529. * decl2.c (mark_used): Don't bother trying to instantiate things
  3530. we synthesized.
  3531. * dump.c (dequeue_and_dump): Don't dump CP_DECL_CONTEXT twice.
  3532. * method.c (set_mangled_name_for_decl): Don't treat clones as
  3533. constructors.
  3534. (synthesize_method): Sythesize cloned functions, not the clones.
  3535. * optimize.c (inline_data): Update comment on ret_label.
  3536. (remap_block): Don't assume DECL_INITIAL exists.
  3537. (copy_body_r): Allow ret_label to be NULL.
  3538. (maybe_clone_body): Define.
  3539. * pt.c (tsubst_decl): Handle clones.
  3540. (instantiate_clone): New function.
  3541. (instantiate_template): Use it.
  3542. (set_mangled_name_for_template_decl): Don't treat clones as
  3543. constructors.
  3544. * search.c (lookup_fnfields_1): Use CLASSTYPE_CONSTRUCTOR_SLOT,
  3545. CLASSTYPE_DESTRUCTOR_SLOT, and CLASSTYPE_FIRST_CONVERSION_SLOT.
  3546. * semantics.c (expand_body): Clone function bodies as necessary.
  3547. * optimize.c (remap_decl): Avoid sharing structure for arrays
  3548. whose size is only known at run-time.
  3549. * tree.c (copy_tree_r): Don't copy PARM_DECLs.
  3550. * cp-tree.h (lang_decl_flags): Rename constructor_for_vbase_attr
  3551. to has_in_charge_parm_p.
  3552. (DECL_CONSTRUCTOR_FOR_VBASE_P): Rename to ...
  3553. (DECL_HAS_IN_CHARGE_PARM_P): ... this.
  3554. (DECL_COPY_CONSTRUCTOR_P): New macro.
  3555. * call.c (add_function_candidate): Use DECL_HAS_IN_CHARGE_PARM_P.
  3556. (build_user_type_conversion_1): Likewise.
  3557. (convert_like_real): Likewise.
  3558. (build_over_call): Likeiwse. Use DECL_COPY_CONSTRUCTOR_P.
  3559. * decl.c (grokdeclarator): Use DECL_HAS_IN_CHARGE_PARM_P.
  3560. (copy_args_p): Likewise.
  3561. (grok_ctor_properties): Likewise.
  3562. (start_function): Likewise.
  3563. * decl2.c (maybe_retrofit_in_charge): Likewise. Set it.
  3564. * error.c (dump_function_decl): Use DECL_HAS_IN_CHARGE_PARM_P.
  3565. * init.c (emit_base_init): Use DECL_COPY_CONSTRUCTOR_P.
  3566. * method.c (do_build_copy_constructor): Use
  3567. DECL_HAS_IN_CHARGE_PARM_P.
  3568. (synthesize_method): Likewise.
  3569. * pt.c (instantiate_template): Remove goto.
  3570. * tree.c (build_cplus_method_type): Remove mention of obstacks in
  3571. comment.
  3572. * cp-tre.h (finish_function): Change prototype.
  3573. * decl.c (end_cleanup_fn): Adjust caller.
  3574. (finish_function): Take only one parameter.
  3575. * decl2.c (finish_objects): Adjust caller.
  3576. (finish_static_storage_duration_function): Likewise.
  3577. * method.c (emit_thunk): Likewise.
  3578. * parse.y: Likewise.
  3579. * parse.c: Regenerated.
  3580. * pt.c (instantiate_decl): Likewise.
  3581. * rtti.c (synthesize_tinfo_fn): Likewise.
  3582. * semantics.c (expand_body): Likewise.
  3583. * cp-tree.h (copy_decl): New function.
  3584. * class.c (finish_struct_1): Use it.
  3585. * lex.c (copy_decl): Define it.
  3586. * pt.c (tsubst_decl): Likewise.
  3587. * tree.c (copy_template_template_parm): Likewise.
  3588. * cp-tree.h (lang_type): Remove has_nonpublic_ctor and
  3589. has_nonpublic_assign_ref.
  3590. (TYPE_HAS_NONPUBLIC_CTOR): Don't declare.
  3591. (TYPE_HAS_NONPUBLIC_ASSIGN_REF): Likewise.
  3592. * class.c (finish_struct_methods): Don't set
  3593. TYPE_HAS_NONPUBLIC_CTOR or TYPE_HAS_NONPUBLIC_ASSIGN_REF.
  3594. (interface_only): Don't declare.
  3595. (interface_unknown): Likewise.
  3596. 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  3597. * tree.h (HAVE_TEMPLATES): Remove definition.
  3598. * lang-options.h (-fthis-is-variable): Remove documentation.
  3599. 2000-04-10 Jason Merrill <jason@casey.cygnus.com>
  3600. * class.c (instantiate_type): Handle object-relative template-id.
  3601. * semantics.c (finish_expr_stmt): Call convert_to_void here.
  3602. * decl.c (cplus_expand_expr_stmt): Not here.
  3603. * rtti.c (build_dynamic_cast_1): Call non_lvalue.
  3604. Initialize exprtype earlier.
  3605. * parse.y (fn.def1): Check for defining types in return types.
  3606. * decl.c (check_tag_decl): Notice extra fundamental types.
  3607. Diagnose empty decls in classes, too.
  3608. * decl.c (grokdeclarator): Don't override an anonymous name if no
  3609. declarator was given.
  3610. * cvt.c (convert_to_void): Call resolve_offset_ref.
  3611. * typeck.c (build_x_function_call): Abort if we get an OFFSET_REF.
  3612. * decl2.c (decl_namespace): Handle getting a type.
  3613. * typeck.c (build_c_cast): Re-enable warning for cast between
  3614. pointer and integer of different size.
  3615. 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
  3616. * inc/cxxabi.h (__pointer_type_info): Add restrict and
  3617. incomplete flags.
  3618. (__pointer_type_info::__pointer_catch): New virtual function.
  3619. (__pointer_to_member_type_info): Derive from
  3620. __pointer_type_info. Adjust.
  3621. (__pointer_to_member_type_info::__do_catch): Remove.
  3622. (__pointer_to_member_type_info::__is_pointer_p): Declare.
  3623. (__pointer_to_member_type_info::__pointer_catch): Declare.
  3624. * rtti.c (qualifier_flags): Add restrict flag.
  3625. (ptmd_initializer): Reorder members.
  3626. (create_tinfo_types): Expand comments. Reorder
  3627. ptmd_desc_type_node members.
  3628. * tinfo2.cc (__pointer_to_member_type_info::__is_pointer_p):
  3629. Implement.
  3630. (__pointer_type_info::__do_catch): Move specific code into
  3631. __pointer_catch. Call it.
  3632. (__pointer_type_info::__pointer_catch): Non-pointer-to-member
  3633. specific catch checking. Fix void conversion check.
  3634. (__pointer_to_member_type_info::__do_catch): Remove.
  3635. (__pointer_to_member_type_info::__pointer_catch): Implement.
  3636. 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  3637. * lex.c (init_parse): Remove traces of classof and headof.
  3638. * decl2.c (flag_operator_names): Default to 1.
  3639. (lang_decode_option): Do not set it for -ansi.
  3640. 2000-04-09 Mark Mitchell <mark@codesourcery.com>
  3641. * cp-tree.h (struct lang_decl): Remove main_decl_variant.
  3642. (DECL_MAIN_VARIANT): Remove.
  3643. * decl.c (duplicate_decls): Don't set it.
  3644. (start_function): Likewise.
  3645. (lang_mark_tree): Don't mark it.
  3646. * decl2.c (defer_fn): Don't use it.
  3647. * lex.c (retrofit_lang_decl): Don't set it.
  3648. * pt.c (tsubst_decl): Likewise.
  3649. * ptree.c (print_lang_decl): Don't print it.
  3650. * typeck.c (mark_addressable): Don't use it.
  3651. 2000-04-09 Nathan Sidwell <nathan@codesourcery.com>
  3652. * vec.cc: Include <new> and <exception>.
  3653. (__cxa_vec_ctor): Use __cxa_vec_dtor for cleanup.
  3654. (__cxa_vec_dtor): Catch dtor exceptions, and rethrow or
  3655. terminate.
  3656. (__cxa_vec_delete): Catch dtor exceptions.
  3657. 2000-04-09 Nathan Sidwell <nathan@codesourcery.com>
  3658. Prepend __ to implementation defined names.
  3659. * inc/typeinfo (type_info): Rename _name to __name.
  3660. (type_info::type_info): Rename parameter.
  3661. (type_info::operator==, type_info::operator!=,
  3662. type_info::before): Likewise.
  3663. (type_info::is_pointer_p, type_info::is_function_p,
  3664. type_info::do_catch, type_info::do_upcast): Prepend __. Rename
  3665. parameters.
  3666. * inc/cxxabi.h
  3667. (__fundamental_type_info::__fundamental_type_info) Rename parameters.
  3668. (__pointer_type_info::__pointer_type_info): Likewise.
  3669. (__pointer_type_info::is_pointer_p,
  3670. __pointer_type_info::do_catch): Prepend __. Rename parameters.
  3671. (__array_type_info::__array_type_info): Rename parameters.
  3672. (__function_type_info::__function_type_info): Likewise.
  3673. (__function_type_info::is_function_p): Prepend __.
  3674. (__enum_type_info::__enum_type_info): Rename parameters.
  3675. (__pointer_to_member_type_info::__pointer_to_member_type_info):
  3676. Likewise.
  3677. (__pointer_to_member_type_info::do_catch): Prepend __. Rename
  3678. parameters.
  3679. (__base_class_info::is_virtual_p, is_public_p, offset): Prepend __.
  3680. (__class_type_info::__class_type_info): Rename parameters.
  3681. (__class_type_info::sub_kind): Prepend __. Adjust member names.
  3682. (__class_type_info::upcast_result,
  3683. __class_type_info::dyncast_result): Prepend __. Move definition
  3684. into tinfo.cc.
  3685. (__class_type_info::do_upcast, __class_type_info::do_catch,
  3686. __class_type_info::find_public_src,
  3687. __class_type_info::do_dyncast,
  3688. __class_type_info::do_find_public_src): Prepend __. Rename
  3689. parameters.
  3690. (__si_class_type_info::__si_class_type_info): Rename parameters.
  3691. (__si_class_type_info::do_upcast, __si_class_type_info::do_dyncast,
  3692. __si_class_type_info::do_find_public_src): Prepent __. Rename
  3693. parameters.
  3694. (__vmi_class_type_info::__vmi_class_type_info): Rename parameters.
  3695. (__vmi_class_type_info::do_upcast, __vmi_class_type_info::do_dyncast,
  3696. __vmi_class_type_info::do_find_public_src): Prepent __. Rename
  3697. parameters.
  3698. (__dynamic_cast): Rename parameters.
  3699. * tinfo.cc (type_info::is_pointer_p, type_info::is_function_p,
  3700. type_info::do_catch, type_info::do_upcast): Prepend __.
  3701. (contained_p, public_p, virtual_p, contained_public_p,
  3702. contained_nonpublic_p, contained_nonvirtual_p): Adjust.
  3703. (__class_type_info::do_catch,
  3704. __class_type_info::do_upcast): Prepend __. Adjust.
  3705. (__class_type_info::__upcast_result,
  3706. __class_type_info::__dyncast_result): Move from inc/cxxabi.h.
  3707. Adjust.
  3708. (__class_type_info::find_public_src): Prepend __. Adjust.
  3709. (__class_type_info::do_find_public_src,
  3710. __si_class_type_info::do_find_public_src,
  3711. __vmi_class_type_info::do_find_public_src): Likewise.
  3712. (__class_type_info::do_dyncast,
  3713. __si_class_type_info::do_dyncast,
  3714. __vmi_class_type_info::do_dyncast): Likewise.
  3715. (__class_type_info::do_upcast,
  3716. __si_class_type_info::do_upcast,
  3717. __vmi_class_type_info::do_upcast): Likewise.
  3718. (__dynamic_cast): Adjust.
  3719. * tinfo2.cc (__pointer_type_info::is_pointer_p): Prepend __.
  3720. (__function_type_info::is_function_p): Likewise.
  3721. (__pointer_type_info::do_catch): Likewise. Adjust.
  3722. (__pointer_to_member_type_info::do_catch): Likewise. Adjust.
  3723. (__throw_type_match_rtti_2): Adjust.
  3724. (__is_pointer): Adjust.
  3725. 2000-04-08 Mark Mitchell <mark@codesourcery.com>
  3726. * cp-tree.h (cp_tree_index): Add CPTI_COMPLETE_CTOR_IDENTIFIER.
  3727. (complete_ctor_identifier): New macro.
  3728. (special_function_kind): Add sfk_copy_constructor and
  3729. sfk_assignment_operator.
  3730. (LOOKUP_HAS_IN_CHARGE): Remove.
  3731. (cons_up_default_function): Rename to ...
  3732. (implicitly_declare_fn): ... this.
  3733. * call.c (build_new_method_call): Add in-charge parameters for
  3734. constructors here.
  3735. * class.c (add_implicitly_declared_members): Change parameter name
  3736. from cant_have_assignment to cant_have_const_assignment.
  3737. Replace calls to cons_up_default_function to implicitly_declare_fn.
  3738. * cvt.c (ocp_convert): Use complete_ctor_identifier.
  3739. * decl.c (initialize_predefined_identifiers): Initialize it.
  3740. (start_function): Use DECL_CONSTRUCTOR_FOR_VBASE_P instead of
  3741. complex expression.
  3742. * init.c (expand_default_init): Don't calculate the in-charge
  3743. parameter here.
  3744. (build_new_1): Likewise.
  3745. * lex.c (cons_up_default_function): Move to method.c.
  3746. * method.c (synthesize_method): Use DECL_DESTRUCTOR_P.
  3747. (implicitly_declare_fn): New function.
  3748. * typeck.c (build_static_cast): Use complete_ctor_identifier.
  3749. (build_modify_expr): Likewise.
  3750. * typeck2.c (build_functional_cast): Likewise.
  3751. Under the new ABI, constructors don't return `this'.
  3752. * cp-tree.h (warn_reorder): Declare.
  3753. (special_function_kind): New enum.
  3754. (global_base_init_list): Remove declaration.
  3755. (emit_base_init): Don't return a value.
  3756. (check_base_init): Don't declare.
  3757. (is_aggr_typedef): Likewise.
  3758. * decl.c (check_special_function_return_type): New function.
  3759. (return_types): Remove.
  3760. (grokdeclarator): Use check_special_function_return_type.
  3761. (start_function): Don't initialize ctor_label under the new ABI.
  3762. (finish_construtor_body): Don't create a corresponding LABEL_STMT.
  3763. * init.c (begin_init_stmts): Move to top of file.
  3764. (finish_init_stmts): Likewise.
  3765. (warn_reorder): Don't declare.
  3766. (emit_base_init): Don't create a STMT_EXPR here. Don't return a
  3767. value.
  3768. (check_base_init): Remove.
  3769. (is_aggr_typedef): Likewise.
  3770. (build_new_1): Don't use the return value of a constructor.
  3771. * semantics.c (setup_vtbl_ptr): Don't use the return value
  3772. of emit_base_init.
  3773. * typeck.c (check_return_expr): Don't magically convert return
  3774. statements into `return this' in constructors under the new ABI.
  3775. * cp-tree.h (cp_tree_index): Add CPTI_BASE_CTOR_IDENTIFIER,
  3776. CPTI_BASE_DTOR_IDENTIFIER, and CPTI_DELETING_DTOR_IDENTIFIER.
  3777. (base_ctor_identifier): New macro.
  3778. (base_dtor_identifier): Likewise.
  3779. (deleting_dtor_identifier): Likewise.
  3780. * decl.c: Don't include obstack.h.
  3781. (obstack_chunk_alloc): Don't define.
  3782. (obstack_chunk_free): Likewise.
  3783. (struct predefined_identifier): New type.
  3784. (initialize_predefined_identifiers): New function.
  3785. (init_decl_processing): Use it.
  3786. (debug_temp_inits): Remove.
  3787. (start_method): Don't call preserve_data.
  3788. (hack_incomplete_structures): Update comment.
  3789. * init.c (init_init_processing): Don't initialize
  3790. nelts_identifier.
  3791. (build_offset_rf): Remove dead code.
  3792. (build_delete): Use CLASSTYPE_N_BASECLASSES.
  3793. * search.c (init_search_processing): Don't initialize
  3794. vptr_identifier.
  3795. 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  3796. * typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to elide
  3797. some sign_compare warnings.
  3798. 2000-04-07 Nathan Sidwell <nathan@codesourcery.com>
  3799. Rename abi::__vmi_class_type_info members.
  3800. * inc/cxxabi.h (__vmi_class_type_info): Rename details, n_bases,
  3801. base_list, detail_masks members to vmi_flags, vmi_base_count,
  3802. vmi_bases and vmi_flags_masks respectively.
  3803. (__vmi_class_type_info::vmi_flags_masks): Rename
  3804. details_unknown_mask to flags_unknown_mask.
  3805. * tinfo.cc (__class_type_info::do_upcast): Adjust.
  3806. (__vmi_class_type_info::do_find_public_src): Adjust.
  3807. (__vmi_class_type_info::do_dyncast): Adjust.
  3808. (__vmi_class_type_info::do_upcast): Adjust.
  3809. 2000-04-07 Nathan Sidwell <nathan@codesourcery.com>
  3810. * tinfo.cc (convert_to_base): New function.
  3811. (get_vbase_offset): Remove. Move into convert_to_base.
  3812. (__vmi_class_type_info::do_find_public_src): Adjust.
  3813. (__vmi_class_type_info::do_dyncast): Adjust.
  3814. (__vmi_class_type_info::do_upcast): Adjust.
  3815. 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
  3816. * tinfo.cc (operator=): Use __builtin_strcmp.
  3817. * tinfo2.cc (before): Likewise.
  3818. 2000-04-06 Mark Mitchell <mark@codesourcery.com>
  3819. * cp-tree.h (lang_decl_flags): Rename saved_inline to deferred.
  3820. (DECL_SAVED_INLINE): Rename to ...
  3821. (DECL_DEFERRED_FN): ... this.
  3822. (in_function_p): Remove declaration.
  3823. (mark_inline_for_output): Rename to ...
  3824. (defer_fn): ... this.
  3825. * decl.c (finish_function): Adjust call to mark_inline_for_output.
  3826. (in_function_p): Remove definition.
  3827. * decl2.c (saved_inlines): Rename to ...
  3828. (deferred_fns): ... this.
  3829. (saved_inlines_used): Rename to ...
  3830. (deferred_fns_used): ... this.
  3831. (mark_inline_for_output): Rename to ...
  3832. (defer_fn): ... this.
  3833. (finish_file): Adjust accordingly.
  3834. (init_decl2): Likewise.
  3835. * lex.c (cons_up_default_function): Likewise.
  3836. * pt.c (mark_decl_instantiated): Likewise.
  3837. (instantiate_decl): Don't set DECL_DEFER_OUTPUT under any
  3838. circumstances.
  3839. * rtti.c (get_tinfo_decl): Adjust call to mark_inline_for_output.
  3840. * semantics.c (expand_body): Defer more functions.
  3841. 2000-04-06 Nathan Sidwell <nathan@codesourcery.com>
  3842. * vec.cc: New file.
  3843. * Make-lang.in (CXX_LIB2FUNCS): Add it.
  3844. (vec.o): Build it.
  3845. * inc/cxxabi.h (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
  3846. __cxa_vec_delete): Declare.
  3847. 2000-04-06 Nathan Sidwell <nathan@codesourcery.com>
  3848. * rtti.c (dfs_class_hint_mark): New static function.
  3849. (dfs_class_hint_unmark): New static function.
  3850. (class_hint_flags): Use them.
  3851. 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
  3852. * decl2.c: Make flag_honor_std dependent on ENABLE_STD_NAMESPACE.
  3853. 2000-04-05 Mark Mitchell <mark@codesourcery.com>
  3854. * cp-tree.h (instantiate_decl): Change prototype.
  3855. * decl2.c (mark_used): Adjust call.
  3856. * optimize.c (inlinable_function_p): Adjust handling of templates.
  3857. * pt.c (do_decl_instantiation): Adjust call to instantiate_decl.
  3858. (do_type_instantiation): Likewise.
  3859. (instantiate_decl): Defer more templates.
  3860. (instantiate_pending_templates): Adjust logic to handle inline
  3861. friend functions.
  3862. * Makefile.in (GGC_H): New variable. Use it throughout in place
  3863. of ggc.h.
  3864. * call.c: Don't include obstack.h. Include ggc.h.
  3865. (obstack_chunk_alloc): Don't define.
  3866. (obstack_chunk_free): Likewise.
  3867. (add_candidate): Allocate the z_candidate with ggc_alloc_obj.
  3868. * decl.c (push_switch): Use xmalloc to allocate the cp_switch.
  3869. (pop_switch): Free it.
  3870. * decl2.c (grokclassfn): Set TREE_READONLY for PARM_DECLs.
  3871. * dump.c (dequeue_and_dump): Don't try to print the bit_position
  3872. if we don't have a DECL_FIELD_OFFSET.
  3873. Wed Apr 5 15:12:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
  3874. * optimize.c (calls_setjmp_r): Use setjmp_call_p instead of
  3875. special_function_p.
  3876. 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  3877. * cfns.gperf (hash, libc_name_p): Prototype.
  3878. * rtti.c (build_dynamic_cast_1): Constification.
  3879. * search.c (dfs_debug_unmarkedp, dfs_debug_mark): Unhide prototypes.
  3880. * semantics.c (deferred_type_access_control): Prototype.
  3881. 2000-04-04 Mark Mitchell <mark@codesourcery.com>
  3882. Correct many new ABI issues regarding vbase and vcall offset
  3883. layout.
  3884. * cp-tree.h (BINFO_VTABLE): Document.
  3885. (struct lang_type): Tweak formatting.
  3886. (BINFO_PRIMARY_BINFO): Add to documentation.
  3887. (CLASSTYPE_VSIZE): Fix typo in comment.
  3888. (CLASSTYPE_VBASECLASSES): Update documentation.
  3889. (BINFO_VBASE_MARKED): Remove.
  3890. (SET_BINFO_VBASE_MARKED): Likewise.
  3891. (CLEAR_BINFO_VBASE_MARKED): Likewise.
  3892. (BINFO_FIELDS_MARKED): Remove.
  3893. (SET_BINFO_FIELDS_MARKED): Likewise.
  3894. (CLEAR_BINFO_FIELDS_MARKED): Likewise.
  3895. (enum access_kind): New enumeration.
  3896. (num_extra_vtbl_entries): Remove declaration.
  3897. (size_extra_vtbl_entries): Likewise.
  3898. (get_vtbl_decl_for_binfo): New function.
  3899. (dfs_vbase_unmark): Remove declaration.
  3900. (mark_primary_bases): Likewise.
  3901. * class.c (SAME_FN): Remove.
  3902. (struct vcall_offset_data_s): Move definition.
  3903. (build_vbase_pointer): Use `build', not `build_binary_op', to
  3904. access the vbase pointer under the new ABI.
  3905. (build_vtable_entry_ref): Use get_vtbl_decl_for_binfo.
  3906. (build_primary_vtable): Likewise.
  3907. (dfs_mark_primary_bases): Move here from search.c.
  3908. (mark_primary_bases): Likewise.
  3909. (determine_primary_bases): Under the new ABI, don't make a base
  3910. class a primary base just because we don't yet have any virtual
  3911. functions.
  3912. (layout_vtable_decl): Use get_vtbl_decl_for_binfo.
  3913. (num_vfun_entries): Remove.
  3914. (dfs_count_virtuals): Likewise.
  3915. (num_extra_vtbl_entries): Likewise.
  3916. (size_extra_vtbl_entries): Likewise.
  3917. (layout_virtual_bases): Iterate in inheritance graph order under
  3918. the new ABI.
  3919. (finish_struct_1): Use TYPE_VFIELD, not CLASSTYPE_VSIZE, to
  3920. indicate that a vfield is present.
  3921. (init_class_processing): Initialize access_public_node, etc., from
  3922. ak_public, etc.
  3923. (get_vtbl_decl_for_binfo): New function.
  3924. (dump_class_hierarchy_r): Likewise.
  3925. (dump_class_hierarchy): Use it.
  3926. (finish_vtbls): Build the vtbls in inheritance graph order.
  3927. (dfs_finish_vtbls): Adjust call to build_vtbl_initializer.
  3928. (initialize_vtable): Use get_vtbl_decl_for_binfo.
  3929. (accumulate_vtbl_inits): Add comments explaining why a pre-order
  3930. walk is required.
  3931. (dfs_accumulate_vtbl_inits): Set BINFO_VTABLE to the location
  3932. where the vptr points, even for primary vtables.
  3933. (build_vtbl_initializer): Adjust handling of vbase and vcall
  3934. offsets.
  3935. (build_vcall_and_vbase_vtable_entries): New function.
  3936. (dfs_build_vbase_offset_vtbl_entries): Remove.
  3937. (build_vbase_offset_vtbl_entries): Reimplement.
  3938. (dfs_build_vcall_offset_vtbl_entries): Don't include virtuals that
  3939. were already handled in a primary base class vtable.
  3940. (build_vcall_offset_vtbl_entries): Adjust.
  3941. (build_rtti_vtbl_entries): Adjust.
  3942. * decl2.c (output_vtable_inherit): Use get_vtbl_decl_for_binfo.
  3943. * init.c (expand_virtual_init): Simplify.
  3944. * repo.c (repo_get_id): Use get_vtbl_decl_for_binfo.
  3945. * rtti.c (create_pseudo_type_info): Adjust calculation of vptr.
  3946. * search.c (BINFO_ACCESS): New macro.
  3947. (SET_BINFO_ACCESS): Likewise.
  3948. (dfs_access_in_type): Manipulate access_kinds, not access nodes.
  3949. (access_in_type): Likewise.
  3950. (dfs_accessible_p): Likewise.
  3951. (protected_accessible_p): Likewise.
  3952. (lookup_fnfields_1): Adjust documentation.
  3953. (dfs_mark_primary_bases): Move to class.c
  3954. (mark_primary_bases): Likewise.
  3955. (dfs_vbase_unmark): Remove.
  3956. (virtual_context): Use BINFO_FOR_VBASE.
  3957. (dfs_get_vbase_types): Simplify.
  3958. (dfs_build_inheritance_graph_order): New function.
  3959. (get_vbase_types): Use it.
  3960. * tree.c (debug_binfo): Use get_vtbl_decl_for_binfo.
  3961. * tinfo.cc (get_vbase_offset): New function.
  3962. (__vmi_class_type_info::do_find_public_src): Use it.
  3963. (__vmi_class_type_info::do_dyncast): Likewise.
  3964. (__vmi_class_type_info::do_upcast): Likewise.
  3965. 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
  3966. * lang-specs.h: Pass -fno-show-column to the preprocessor.
  3967. 2000-03-30 Nathan Sidwell <nathan@codesourcery.com>
  3968. * rtti.c (class_hint_flags): Rename flags.
  3969. (class_initializer): Remove flags.
  3970. (synthesize_tinfo_var): Combine offset and flags. Add flags
  3971. for __vmi_class_type_info.
  3972. (create_tinfo_types): Remove flags from __class_type_info and
  3973. __si_class_type_info. Merge flags and offset from
  3974. base_class_type_info.
  3975. * inc/cxxabi.h (__base_class_info): Merge offset and vmi_flags.
  3976. (__base_class_info::is_virtual_p): Adjust.
  3977. (__base_class_info::is_public_p): Adjust.
  3978. (__base_class_info::offset): New accessor.
  3979. (__class_type_info::details): Remove member.
  3980. (__class_type_info::__class_type_info): Lose details.
  3981. (__class_type_info::detail_masks): Remove.
  3982. (__si_class_type_info::__si_class_type_info): Lose details.
  3983. (__vmi_class_type_info::details): New member.
  3984. (__vmi_class_type_info::__vmi_class_type_info): Adjust.
  3985. (__vmi_class_type_info::detail_masks): New member.
  3986. * tinfo.cc (__class_type_info::do_upcast): Initialize result
  3987. with unknown_details_mask.
  3988. (__vmi_class_type_info::do_find_public_src): Adjust
  3989. (__vmi_class_type_info::do_dyncast): Adjust.
  3990. (__vmi_class_type_info::do_upcast): Set result details, if
  3991. needed. Adjust.
  3992. (__dynamic_cast): Temporarily #if out optimization.
  3993. 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
  3994. * rtti.c (get_tinfo_decl): Mark used.
  3995. (emit_tinfo_decl): Don't optimize polymorphic type_info. Only
  3996. mark as dealt with, if we output it.
  3997. 2000-03-28 Mark Mitchell <mark@codesourcery.com>
  3998. * class.c: Reorganize to put virtual function table initialization
  3999. machinery at the end of the file.
  4000. 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
  4001. * class.c (finish_struct): Use bitsize_zero_node.
  4002. * pt.c (instantiate_class_template): Likewise.
  4003. 2000-03-28 Mark Mitchell <mark@codesourcery.com>
  4004. Put RTTI entries at negative offsets in new ABI.
  4005. * class.c (dfs_build_vbase_offset_vtbl_entries): Put the first
  4006. vbase offset at index -3, not -1.
  4007. (build_vtabe_offset_vtbl_entries): Use unmarked_vtable_pathp, not
  4008. dfs_vtable_path_unmarked_real_bases_queue_p to walk bases.
  4009. (dfs_build_vcall_offset_vtbl_entries): Don't use skip_rtti_stuff.
  4010. (build_rtti_vtbl_entries): New function.
  4011. (set_rtti_entry): Remove.
  4012. (build_primary_vtable): Don't use it.
  4013. (build_secondary_vtable): Likewise.
  4014. (start_vtable): Remove.
  4015. (first_vfun_index): New function.
  4016. (set_vindex): Likewise.
  4017. (add_virtual_function): Don't call start_vtable. Do call
  4018. set_vindex.
  4019. (set_primary_base): Rename parameter.
  4020. (determine_primary_base): Likewise.
  4021. (num_vfun_entries): Don't use skip_rtti_stuff.
  4022. (num_extra_vtbl_entries): Include RTTI information.
  4023. (build_vtbl_initializer): Use build_rtti_vtbl_entries.
  4024. (skip_rtti_stuff): Remove.
  4025. (dfs_modify_vtables): Don't use it.
  4026. (modify_all_vtables): Don't use start_vtable. Do use set_vindex.
  4027. (layout_nonempty_base_or_field): Update size handling.
  4028. (create_vtable_ptr): Tweak.
  4029. (layout_class_type): Adjust parameter names.
  4030. (finish_struct_1): Simplify.
  4031. * cp-tree.h (CLASSTYPE_VSIZE): Tweak documentation.
  4032. (skip_rtti_stuff): Remove.
  4033. (first_vfun_index): New function.
  4034. (dfs_vtable_path_unmarked_real_bases_queue_p): Remove.
  4035. (dfs_vtable_path_marked_real_bases_queue_p): Remove.
  4036. (marked_vtable_pathp): Declare.
  4037. (unmarked_vtable_pathp): Likewise.
  4038. * error.c (dump_expr): Use first_vfun_index to calculate vtable
  4039. offsets.
  4040. * rtti.c (build_headof): Look for RTTI at negative offsets.
  4041. (get_tinfo_decl_dynamic): Likewise.
  4042. (tinfo_base_init): Don't take the address of the TINFO_VTABLE_DECL
  4043. here.
  4044. (create_pseudo_type_info): Do it here instead. Adjust so that
  4045. vptr points at first virtual function.
  4046. * search.c (marked_vtable_pathp): Make it global.
  4047. (unmarked_vtable_pathp): Likewise.
  4048. (dfs_vtable_path_unmarked_real_bases_queue_p): Remove.
  4049. (dfs_vtable_path_marked_real_bases_queue_p): Likewise.
  4050. (dfs_get_pure_virtuals): Don't use skip_rtti_stuff.
  4051. (get_pure_virtuals): Likewise.
  4052. (expand_upcast_fixups): Likewise.
  4053. * tree.c (debug_binfo): Likewise.
  4054. * tinfo.cc (__dynamic_cast): Look for vtable_prefix at appropriate
  4055. negative offset.
  4056. 2000-03-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4057. * class.c (check_field_decl): Fix typo.
  4058. (build_vtbl_or_vbase_field): Don't clear DECL_SAVED_INSNS.
  4059. (check_methods): Likewise.
  4060. (check_field_decls): Likewise.
  4061. Use DECL_CONTEXT, not DECL_FIELD_CONTEXT.
  4062. * cp-tree.h (DECL_SHADOWED_FOR_VAR, DECL_TEMPLATE_RESULT):
  4063. Use DECL_RESULT_FLD, not DECL_RESULT.
  4064. * decl.c (xref_tag): Use DECL_TEMPLATE_RESULT.
  4065. * lex.c (identifier_type): Likewise.
  4066. * pt.c (determine_specialization, lookup_template_class): Likewise.
  4067. (tsubst_friend_function, tsubst_decl, instantiate_template): Likewise.
  4068. (resolve_overloaded_unification, more_specialized): Likewise.
  4069. * semantics.c (finish_member_declaration): Likewise.
  4070. * typeck.c (build_x_function_call): Likewise.
  4071. 2000-03-26 Mark Mitchell <mark@codesourcery.com>
  4072. * class.c (layout_empty_base): Handle empty bases with non-byte
  4073. alignment.
  4074. (build_base_field): Likewise.
  4075. (layout_virtual_bases): Likewise.
  4076. * class.c (finish_struct_1): Fix typo in this change:
  4077. Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4078. 2000-03-25 Mark Mitchell <mark@codesourcery.com>
  4079. * decl.c (grokdeclarator): Count partial specializations when
  4080. keeping track of how many template classes have been seen.
  4081. * dump.c (dequeue_and_dump): Dump DECL_TEMPLATE_RESULT.
  4082. 2000-03-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4083. * class.c (build_vbase_pointer_fields): layout_field now place_field.
  4084. (get_vfield_offset): Use byte_position.
  4085. (set_rtti_entry): Set OFFSET to ssizetype zero.
  4086. (get_binfo_offset_as_int): Deleted.
  4087. (dfs_record_base_offsets): Use tree_low_cst.
  4088. (dfs_search_base_offsets): Likewise.
  4089. (layout_nonempty_base_or_field): Reflect changes in RLI format
  4090. and call byte_position.
  4091. (layout_empty_base): Convert offset to ssizetype.
  4092. (build_base_field): use rli_size_unit_so_far.
  4093. (dfs_propagate_binfo_offsets): Do computation in proper type.
  4094. (layout_virtual_bases): Pass ssizetype to propagate_binfo_offsets.
  4095. (layout_class_type): Reflect changes in RLI names and fields.
  4096. (finish_struct_1): Set DECL_FIELD_OFFSET.
  4097. * dump.c (dequeue_and_dump): Call bit_position.
  4098. * expr.c (cplus_expand_constant): Use byte_position.
  4099. * rtti.c (expand_class_desc): Use bitsize_one_node.
  4100. * typeck.c (build_component_addr): Use byte_position and don't
  4101. special case for zero offset.
  4102. 2000-03-24 Nathan Sidwell <nathan@codesourcery.com>
  4103. * decl.c (vtype_decl_p): Use TYPE_POLYMORPHIC_P.
  4104. * rtti.c (get_tinfo_decl): Set comdat linkage on new-abi
  4105. tinfo object.
  4106. (emit_tinfo_decl): Only emit polymorphic tinfo's when emitting
  4107. vtable.
  4108. 2000-03-20 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
  4109. * call.c (check_dtor_name, build_new_method_call): Use TYPE_P and
  4110. DECL_P macros.
  4111. * decl.c (push_class_binding, poplevel, pushtag, lookup_namespace_name,
  4112. make_typename_type, check_initializer, cp_finish_decl,
  4113. xref_tag): Likewise.
  4114. * decl2.c (grokfield, build_expr_from_tree, build_expr_from_tree,
  4115. decl_namespace, arg_assoc_template_arg, arg_assoc,
  4116. validate_nonmember_using_decl, do_class_using_decl): Likewise.
  4117. * error.c (dump_template_argument, dump_expr, cp_file_of, cp_line_of,
  4118. args_to_string): Likewise.
  4119. * friend.c (is_friend): Likewise.
  4120. * lex.c (note_got_semicolon, note_list_got_semicolon,
  4121. is_global): Likewise.
  4122. * method.c (build_overload_nested_name, build_overload_value,
  4123. build_qualified_name, build_qualified_name, hack_identifier): Likewise.
  4124. * parse.y (typename_sub, typename_sub1): Likewise.
  4125. * pt.c (push_inline_template_parms_recursive, check_template_shadow,
  4126. process_partial_specialization, convert_template_argument,
  4127. template_args_equal, add_pending_template, lookup_template_class,
  4128. for_each_template_parm_r, maybe_fold_nontype_arg,
  4129. tsubst, instantiate_template, type_unification_real, unify,
  4130. instantiate_pending_templates, set_mangled_name_for_template_decl):
  4131. Likewise.
  4132. * repo.c (repo_get_id, repo_template_used): Likewise.
  4133. * search.c (lookup_field_1): Likewise.
  4134. * tree.c (walk_tree, get_type_decl, cp_tree_equal, member_p): Likewise.
  4135. * xref.c (classname): Likewise.
  4136. 2000-03-22 Mark Mitchell <mark@codesourcery.com>
  4137. * cp-tree.h (BINFO_FOR_VBASE): Adjust documentation.
  4138. (CANONICAL_BINFO): New macro.
  4139. (BINFO_NEW_VTABLE_MARKED): Use it.
  4140. (SET_BINFO_NEW_VTABLE_MARKED): Likewise.
  4141. (CLEAR_BINFO_NEW_VTABLE_MARKED): Likewise.
  4142. * class.c (dfs_build_vbase_offset_vtbl_entries): Use BINFO_TYPE,
  4143. not TREE_TYPE.
  4144. (build_primary_vtable): Adjust usage of BINFO_NEW_VTABLE_MARKED.
  4145. (build_secondary_vtable): Likewise.
  4146. (dfs_finish_vtbls): Likewise.
  4147. (dfs_accumulate_vtbl_inits): Likewise.
  4148. (accumulate_vtbl_inits): New function.
  4149. (finish_vtbls): Make sure that virtual bases come after
  4150. non-virtual bases in the vtable group.
  4151. (record_base_offsets): Don't save and restore TREE_VIA_VIRTUAL.
  4152. (finish_struct_1): Adjust usage of BINFO_NEW_VTABLE_MARKED.
  4153. * search.c (struct vbase_info): Move definition.
  4154. (marked_new_vtable_p): Adjust usage of BINFO_NEW_VTABLE_MARKED.
  4155. (unmarked_new_vtable_p): Likewise.
  4156. (dfs_mark_vtable_path): Remove.
  4157. (dfs_mark_new_vtable): Remove.
  4158. (dfs_unmark_new_vtable): Likewise.
  4159. (dfs_clear_search_slot): Likewise.
  4160. (dfs_find_vbases): Adjust usage of BINFO_NEW_VTABLE_MARKED.
  4161. (dfs_clear_vbase_slots): Likewise.
  4162. (init_vbase_pointers): LIkewise.
  4163. 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
  4164. * typeck.c (type_after_usual_arithmetic_conversions): Prefer a
  4165. SIZETYPE to a non-SIZETYPE.
  4166. 2000-03-21 Mark Mitchell <mark@codesourcery.com>
  4167. * class.c (layout_virtual_bases): Adjust names in conditionally
  4168. compiled code.
  4169. * class.c (record_base_offsets): New function.
  4170. (layout_conflict_p): Likewise.
  4171. (layout_nonempty_base_or_field): Use it.
  4172. (layout_empty_base): New function.
  4173. (build_base_field): Use it.
  4174. (build_base_fields): Update comment.
  4175. (layout_virtual_bases): Fold in a little code form
  4176. layout_basetypes. Use layout_empty_base.
  4177. (layout_basetypes): Remove.
  4178. (end_of_class): New function.
  4179. (layout_class_type): Use it. Adjust.
  4180. * cp-tree.h (CLASSTYPE_VBASECLASSES): Fix typo in comment.
  4181. (fntype_p): Remove.
  4182. * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Fix typo in
  4183. comment.
  4184. (dfs_skip_nonprimary_vbases_markedp): Likewise.
  4185. * typeck.c (fntype_p): Remove.
  4186. * cp-tree.h (TI_SPEC_INFO): Remove.
  4187. (CLASSTYPE_TI_SPEC_INFO): Likewise.
  4188. * pt.c (process_partial_specialization): Likewise.
  4189. * class.c (build_base_field): Fix thinko in computation of binfo
  4190. offsets.
  4191. * tree.c (mark_local_for_remap_p): Mark variables declared in
  4192. TARGET_EXPRs as well.
  4193. 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
  4194. * typeck.c (require_complete_type, complete_type,
  4195. complete_type_or_else, c_sizeof, c_sizeof_nowarn,
  4196. build_array_ref, convert_arguments, pointer_diff,
  4197. build_x_unary_op, build_unary_op, build_c_cast,
  4198. build_modify_expr): Use COMPLETE_TYPE_P etc.
  4199. * call.c (is_complete, convert_like_real,
  4200. build_new_method_call): Likewise.
  4201. * class.c (build_vbase_pointer_fields, check_bases,
  4202. build_base_field, finish_struct_1, pushclass): Likewise.
  4203. * cvt.c (cp_convert_to_pointer, convert_to_void): Likewise.
  4204. * decl.c (maybe_process_template_type_declaration, pushtag,
  4205. pushdecl, redeclaration_error_message, start_decl, start_decl_1,
  4206. layout_var_decl, check_initializer, cp_finish_decl,
  4207. grokdeclarator, require_complete_types_for_parms,
  4208. grok_op_properties, xref_tag, xref_basetypes,
  4209. check_function_type): Likewise.
  4210. * decl2.c (check_classfn, reparse_absdcl_as_casts): Likewise.
  4211. * friend.c (do_friend): Likewise.
  4212. * init.c (build_offset_ref): Likewise.
  4213. * parse.y (structsp): Likewise.
  4214. * pt.c (maybe_process_partial_specialization,
  4215. tsubst_friend_function, instantiate_class_template, tsubst,
  4216. do_type_instantiation, instantiate_pending_templates): Likewise.
  4217. * repo.c (repo_get_id): Likewise.
  4218. * rtti.c (build_typeid, get_typeid, build_dynamic_cast_1,
  4219. synthesize_tinfo_var, emit_support_tinfos): Likewise.
  4220. * search.c (lookup_fnfields_1, lookup_conversions): Likewise.
  4221. * semantics.c (begin_class_definition): Likewise.
  4222. * tree.c (build_cplus_method_type): Likewise.
  4223. * typeck2.c (digest_init, build_functional_cast,
  4224. add_exception_specifier): Likewise.
  4225. * parse.h, parse.c: Regenerated.
  4226. 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
  4227. * inc/cxxabi.h: New header file. Define new-abi entry points.
  4228. (__pointer_type_info::target): Rename member to ...
  4229. (__pointer_type_info::type): ... here.
  4230. (__base_class_info::type): Rename member to ...
  4231. (__base_class_info::base): ... here.
  4232. * Make-lang.in (CXX_EXTRA_HEADERS): Add cxxabi.h
  4233. * cp-tree.h (CPTI_ABI): New global tree enumeration.
  4234. (abi_node): New global tree node.
  4235. * decl.c (abi_node): Document.
  4236. (init_decl_processing): Initialize abi_node.
  4237. * rtti.c (build_dynamic_cast_1): Use abi_node for new-abi.
  4238. (get_vmi_pseudo_type_info): Likewise.
  4239. (create_tinfo_types): Likewise.
  4240. (emit_support_tinfos): Likewise.
  4241. * tinfo.h (cxxabi.h): Include for new-abi.
  4242. Move rtti class definitions to new header file.
  4243. * tinfo.cc (abi): Use the namespace.
  4244. (std): Move new abi rtti classes from here ...
  4245. (__cxxabiv1): ... to here.
  4246. * tinfo2.cc (cxxabi.h): Include for new-abi.
  4247. Move rtti class definitions to new header file.
  4248. (std): Move new abi rtti classes from here ...
  4249. (__cxxabiv1): ... to here.
  4250. * inc/typeinfo (__class_type_info): Move into __cxxabiv1
  4251. namespace.
  4252. 2000-03-20 Jed Wing <jedwin@zloty.ugcs.caltech.edu>
  4253. Jason Merrill <jason@casey.cygnus.com>
  4254. * method.c (build_overload_int): Use host_integerp.
  4255. 2000-03-20 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
  4256. * init.c (build_offset_ref): Handle the case of a templated member
  4257. function.
  4258. 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  4259. * except.c (expand_exception_blocks): Clear catch_clauses_last.
  4260. 2000-03-18 Mark Mitchell <mark@codesourcery.com>
  4261. * cp-tree.h (CLEAR_DECL_C_BIT_FIELD): New macro.
  4262. * class.c (check_bitfield_decl): Turn illegal bitfields into
  4263. non-bitfields.
  4264. (dfs_propagate_binfo_offsets): Adjust for new size_binop
  4265. semantics.
  4266. (dfs_offset_for_unshared_vbases): Likewise.
  4267. * cvt.c (cp_convert_to_pointer): Convert NULL to a
  4268. pointer-to-member correctly under the new ABI.
  4269. * expr.c (cplus_expand_constant): Don't use cp_convert when
  4270. turning an offset into a pointer-to-member.
  4271. * init.c (resolve_offset_ref): Don't adjust pointers-to-members
  4272. when dereferencing them under the new ABI.
  4273. * typeck.c (get_member_function_from_ptrfunc): Tweak calculation
  4274. of pointers-to-members under the new ABI.
  4275. * class.c (check_bitfield_decl): Remove restriction on really long
  4276. bitfields.
  4277. (layout_class_type): Implement new ABI handling of bitfields
  4278. longer than their types.
  4279. 2000-03-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  4280. * parse.y (extdefs): Call ggc_collect.
  4281. * parse.c: Regenerated.
  4282. 2000-03-18 Nathan Sidwell <nathan@codesourcery.com>
  4283. * class.c (build_base_field): Use TYPE_ALIGN to examine a type.
  4284. (note_name_declared_in_class): Use OVL_CURRENT to get at a
  4285. potential overload.
  4286. 2000-03-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4287. * class.c (build_vbase_path): Use integer_zerop.
  4288. (build_vtable_entry): Use tree_low_cst.
  4289. (get_vfield_offset): Use bit_position.
  4290. (dfs_modify_vtables): New variable vindex_val; `i' is HOST_WIDE_INT.
  4291. Use tree_low_cst.
  4292. (check_bitfield_decl): Set DECL_SIZE using convert.
  4293. (build_base_field): Set DECL_SIZE and DECL_SIZE_UNIT using size_binop.
  4294. (layout_virtual_bases): DSIZE is unsigned HOST_WIDE_INT.
  4295. Use tree_low_cst.
  4296. (finish_struct_1): Use bit_position.
  4297. (dump_class_hierarchy): Use tree_low_cst.
  4298. * cp-tree.h (min_precision): Add declaration.
  4299. * decl.c (xref_tag, xref_basetypes): Use tree_low_cst.
  4300. * error.c (dump_type_suffix): Use host_integerp and tree_low_cst.
  4301. (dump_expr): Use integer_zerop, host_integerp, and tree_low_cst.
  4302. * expr.c (cplus_expand_constant): Use bit_position.
  4303. * init.c (build_vec_init): Use host_integerp and tree_low_cst.
  4304. * rtti.c (get_base_offset): Use bit_position.
  4305. * typeck.c (build_binary_op): Use integer_zerop, compare_tree_int,
  4306. host_integerp, and tree_low_cst.
  4307. (pointer_int_sum): Use integer_zerop.
  4308. (build_component_addr): Use bit_position.
  4309. 2000-03-17 Nathan Sidwell <nathan@codesourcery.com>
  4310. * typeck.c (require_complete_type): Don't assume size_zero_node.
  4311. (complete_type_or_else): Likewise.
  4312. 2000-03-16 Steven Grady <grady@digitaldeck.com>
  4313. Jason Merrill <jason@casey.cygnus.com>
  4314. * rtti.c (build_dynamic_cast_1): Improve diagnostics.
  4315. 2000-03-16 Nathan Sidwell <nathan@codesourcery.com>
  4316. * decl2.c (grokfield): Bail out if type is error_mark_node.
  4317. 2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
  4318. * tinfo2.cc (__ptr_to_member_data): Rename to ...
  4319. (__pointer_to_member_data): ... here. Adjust.
  4320. * rtti.c (create_tinfo_types): Adjust.
  4321. 2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
  4322. * cp-tree.h (CPTI_REF_DESC_TYPE, ref_desc_type_node): Remove.
  4323. * decl.c (ref_desc_type_node): Undocument.
  4324. * rtti.c (ptr_ref_initializer): Rename to ...
  4325. (ptr_initializer): ... here. Adjust comments.
  4326. (ptmd_initializer): Fix comment thinko.
  4327. (synthesize_tinfo_var): Remove REFERENCE_TYPE case.
  4328. (create_tinfo_types): Remove ref_desc_type_node init.
  4329. * tinfo2.cc (__reference_type_info): Remove.
  4330. 2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
  4331. * decl.c (cp_finish_decl): Remove obsolete comment.
  4332. * typeck.c (build_ptrmemfunc1): Kill uninitialized warning.
  4333. 2000-03-14 Mark Mitchell <mark@codesourcery.com>
  4334. * cp-tree.h: Tweak documentation.
  4335. * class.c (build_vbase_pointer_fields): Layout the fields, too.
  4336. (avoid_overlap): Remove.
  4337. (get_binfo_offset_as_int): New function.
  4338. (dfs_serach_base_offsets): Likewise.
  4339. (layout_nonempty_base_or_field): Likewise.
  4340. (build_base_field): Layout fields here. Avoid placing two objects
  4341. of the same type at the same address, under the new ABI.
  4342. (build_base_fields): Adjust accordingly.
  4343. (create_vtable_ptr): Return the new field, but don't attach it to
  4344. TYPE_FIELDS.
  4345. (remove_base_field): Remove.
  4346. (remove_base_fields): Remove.
  4347. (layout_basetypes): Adjust accordingly.
  4348. (layout_class_type): Call layout_field for each field, rather than
  4349. just making a wholesale call to layout_type.
  4350. 2000-03-14 Jeff Sturm <jsturm@sigma6.com>
  4351. * except.c (expand_throw): Fix typo in _Jv_Sjlj_Throw.
  4352. 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
  4353. * decl.c (grokfndecl): Set TREE_NOTHROW if TYPE_NOTHROW_P.
  4354. * except.c (dtor_nothrow): New fn.
  4355. (do_pop_exception): Use it. Take type parm.
  4356. (push_eh_cleanup): Take type parm.
  4357. (expand_start_catch_block): Pass it.
  4358. (build_eh_type_type_ref): Accept null type.
  4359. 2000-03-12 Mark Mitchell <mark@codesourcery.com>
  4360. * cp-tree.h (revert_static_member_fn): Change prototype.
  4361. * decl.c (grokfndecl): Adjust call to revert_static_member_fn.
  4362. (grok_op_properties): Likewise.
  4363. (start_function): Likewise.
  4364. (revert_static_member_fn): Simplify.
  4365. * pt.c (check_explicit_specialization): Adjust call to
  4366. revert_static_member_fn.
  4367. 2000-03-11 Mark Mitchell <mark@codesourcery.com>
  4368. * cp-tree.h (scope_kind): New type.
  4369. (tmpl_spec_kind): Likewise.
  4370. (declare_pseudo_global_level): Remove.
  4371. (pseudo_global_level_p): Rename to template_parm_scope_p.
  4372. (pushlevel): Remove declaration.
  4373. (begin_scope): New function.
  4374. (finish_scope): Likewise.
  4375. (current_tmpl_spec_kind): Likewise.
  4376. * decl.c (struct binding_level): Shorten parm_flag to 2 bits.
  4377. Shorten keep to 2 bits. Rename pseudo_global to template_parms_p.
  4378. Add template_spec_p.
  4379. (toplevel_bindings_p): Adjust.
  4380. (declare_pseudo_global_level): Remove.
  4381. (pseudo_global_level_p): Rename to template_parm_scope_p.
  4382. (current_tmpl_spec_kind): New function.
  4383. (begin_scope): Likewise.
  4384. (finish_scope): Likewise.
  4385. (maybe_push_to_top_level): Adjust.
  4386. (maybe_process_template_type_declaration): Likewise.
  4387. (pushtag): Likewise.
  4388. (pushdecl_nonclass_level): Likewise.
  4389. (lookup_tag): Likewise.
  4390. (grokfndecl): Handle member template specializations. Share
  4391. constructor and non-constructor code.
  4392. * decl2.c (check_classfn): Handle member template specializations.
  4393. * pt.c (begin_template_parm_list): Use begin_scope.
  4394. (begin_specialization): Likewise.
  4395. (end_specialization): Likewise.
  4396. (check_explicit_specialization): Use current_tmpl_spec_kind.
  4397. Handle member template specializations.
  4398. (end_template_decl): Use finish_scope. Remove call to
  4399. get_pending_sizes.
  4400. (push_template_decl_real): Remove bogus error message.
  4401. (tsubst_decl): Fix typo in code contained in comment.
  4402. (instantiate_template): Handle member template specializations.
  4403. (most_general_template): Likewise.
  4404. 2000-03-11 Gabriel Dos Reis <gdr@codesourcery.com>
  4405. * lex.c (whitespace_cr): Compress consecutive calls to warning().
  4406. (do_identifier): Ditto for error().
  4407. * pt.c (convert_nontype_argument): Ditto for cp_error().
  4408. (convert_template_argument): Ditto for cp_pedwarn().
  4409. 2000-03-11 Jason Merrill <jason@casey.cygnus.com>
  4410. * exception.cc (__check_null_eh_spec): New fn.
  4411. * except.c (expand_end_eh_spec): Call it if the spec is throw().
  4412. 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
  4413. * decl.c (push_throw_library_fn): Take the FUNCTION_TYPE.
  4414. * except.c (expand_end_eh_spec): Add the return type.
  4415. * rtti.c (throw_bad_cast): Add the parmtypes.
  4416. (throw_bad_typeid): Likewise.
  4417. * semantics.c (expand_stmt): Only leave out rtl for unused
  4418. artificials, and set DECL_IGNORED_P on them as well.
  4419. * decl.c (wrapup_globals_for_namespace): Likewise.
  4420. 2000-03-09 Nathan Sidwell <nathan@codesourcery.com>
  4421. * decl.c (maybe_commonize_var): Skip all artificial decls.
  4422. * pt.c (tsubst_decl): Don't copy TREE_ASM_WRITTEN.
  4423. 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
  4424. * lang-options.h, decl2.c: Add -fno-enforce-eh-specs.
  4425. * cp-tree.h: Declare flag_enforce_eh_specs.
  4426. * decl.c (store_parm_decls, finish_function): Check it.
  4427. C library functions don't throw.
  4428. * Makefile.in (cfns.h): New target.
  4429. (except.o): Depend on it.
  4430. * Make-lang.in (cc1plus): Depend on cfns.gperf.
  4431. * cfns.gperf: New file.
  4432. * cfns.h: Generated.
  4433. * except.c: Include it.
  4434. (nothrow_libfn_p): New fn.
  4435. * decl.c (grokfndecl): Use it.
  4436. * cp-tree.h: Declare it.
  4437. * decl.c (push_overloaded_decl_1, auto_function,
  4438. define_function): Lose.
  4439. (build_library_fn_1): New static fn.
  4440. (builtin_function): Use it.
  4441. (get_atexit_node): Use build_library_fn_ptr.
  4442. (build_library_fn, build_cp_library_fn, build_library_fn_ptr,
  4443. build_cp_library_fn_ptr, push_library_fn, push_cp_library_fn,
  4444. push_void_library_fn, push_throw_library_fn): New fns.
  4445. * cp-tree.h: Declare them.
  4446. (cp_tree_index): Remove CPTI_BAD_CAST, CPTI_BAD_TYPEID.
  4447. (throw_bad_cast_node, throw_bad_typeid_node): Lose.
  4448. * except.c (init_exception_processing, call_eh_info, do_pop_exception,
  4449. (expand_end_eh_spec, alloc_eh_object, expand_throw): Use above fns.
  4450. * rtti.c (build_runtime_decl): Lose.
  4451. (throw_bad_cast, throw_bad_typeid, get_tinfo_decl,
  4452. build_dynamic_cast_1, expand_si_desc, expand_class_desc,
  4453. expand_ptr_desc, expand_attr_desc, expand_generic_desc): Use above fns.
  4454. * call.c (build_call): Remove result_type parm.
  4455. Call mark_used on unused artificial fns.
  4456. * init.c, method.c, typeck.c, except.c, rtti.c: Adjust.
  4457. 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
  4458. * call.c (build_call): Set TREE_NOTHROW on the CALL_EXPR as
  4459. appropriate.
  4460. * decl.c (define_function): Set TREE_NOTHROW on the FUNCTION_DECL.
  4461. * except.c (call_eh_info, alloc_eh_object, expand_throw): Set
  4462. TREE_NOTHROW or TREE_THIS_VOLATILE on the function as appropriate.
  4463. * rtti.c (build_runtime_decl, get_tinfo_decl, build_dynamic_cast_1,
  4464. expand_si_desc, expand_class_desc, expand_ptr_desc, expand_attr_desc,
  4465. expand_generic_desc): Likewise.
  4466. 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
  4467. * exception.cc (__cp_pop_exception): Cleanup the original object.
  4468. 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
  4469. * decl.c (grok_op_properties): Merge conversion to void warning
  4470. with other silly op warnings.
  4471. 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
  4472. * typeck2.c (process_init_constructor): Set TREE_PURPOSE of
  4473. array CONSTRUCTOR elements. Don't use expr_tree_cons.
  4474. 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
  4475. * decl.c (cp_make_fname_decl): New function.
  4476. (wrapup_globals_for_namespace): Don't emit unused static vars.
  4477. (init_decl_processing): Remove comment about use of
  4478. array_domain_type. Set make_fname_decl.
  4479. (cp_finish_decl): Remove __FUNCTION__ nadgering.
  4480. * semantics.c (begin_compound_stmt): Remove
  4481. current_function_name_declared flagging.
  4482. (expand_stmt): Don't emit unused local statics.
  4483. * typeck.c (decay_conversion): Don't treat __FUNCTION__ decls
  4484. specially.
  4485. 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
  4486. * typeck.c (convert_for_assignment): Don't look at array
  4487. initializer.
  4488. * call.c (convert_like_real): Likewise.
  4489. 2000-03-07 Jason Merrill <jason@casey.cygnus.com>
  4490. Add initial support for '\uNNNN' specifier.
  4491. * lex.c (read_ucs): New fn.
  4492. (readescape, skip_white_space): Call it.
  4493. (is_extended_char, is_extended_char_1): New fns.
  4494. (utf8_extend_token): New fn, #if 0'd out.
  4495. (real_yylex): Treat extended chars like letters.
  4496. * search.c (note_debug_info_needed): Walk the bases even if we
  4497. weren't deferring the type itself.
  4498. 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  4499. * decl2.c (finish_objects): Constify a char*.
  4500. * method.c (emit_thunk): Likewise.
  4501. 2000-03-06 Nathan Sidwell <nathan@codesourcery.com>
  4502. * typeck.c (dubious_conversion_warnings): Look through
  4503. REFERENCE_TYPE.
  4504. 2000-03-06 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4505. * class.c (dfs_modify_vtables): I is now unsigned.
  4506. (check_bitfield_decl): Use tree_int_cst_sgn and compare_tree_int.
  4507. (build_base_field): Add casts of TREE_INT_CST_LOW to HOST_WIDE_INT.
  4508. * error.c (dump_expr): Cast TREE_INT_CST_HIGH to unsigned.
  4509. * init.c (build_vec_init): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
  4510. * method.c (build_overload_int): Cast TREE_INT_CST_HIGH to unsigned.
  4511. * typeck.c (build_binary_op, case TRUNC_DIV_EXPR):
  4512. Call integer_all_onesp.
  4513. * typeck2.c (process_init_constructor): Use compare_tree_int.
  4514. * lang-specs.h (as): Don't call if -syntax-only.
  4515. 2000-03-06 Mark Mitchell <mark@codesourcery.com>
  4516. * expr.c (cplus_expand_expr, case STMT_EXPR): Don't set
  4517. RTL_EXPR_HAS_NO_SCOPE after all.
  4518. 2000-03-05 Mark Mitchell <mark@codesourcery.com>
  4519. * expr.c (cplus_expand_expr, case STMT_EXPR): Use
  4520. expand_start_stmt_expr and expand_end_stmt_expr directly. Set
  4521. RTL_EXPR_HAS_NO_SCOPE.
  4522. * pt.c (instantiate_decl): Clear TI_PENDING_TEMPLATE_FLAG a little
  4523. later.
  4524. * dump.c (dequeue_and_dump): Dump SCOPE_NO_CLEANUPS_P.
  4525. 2000-03-05 Nathan Sidwell <nathan@codesourcery.com>
  4526. * call.c (convert_like): Macrofy.
  4527. (convert_like_with_context): New macro.
  4528. (convert_like_real): Renamed from convert_like. Add calling
  4529. context parameters, for diagnostics. Add recursive flag. Call
  4530. dubious_conversion_warnings for outer conversion.
  4531. (build_user_type_conversion): Use convert_like_with_context.
  4532. (build_over_call): Likewise. Don't warn about dubious
  4533. conversions here. Adjust convert_default_arg calls.
  4534. (convert_default_arg): Add context parameters for diagnostics.
  4535. Pass through to convert_like_with_context.
  4536. * cp-tree.h (convert_default_arg): Add context parameters.
  4537. (dubious_conversion_warnings): Prototype new function.
  4538. * typeck.c (convert_arguments): Adjust convert_default_arg call.
  4539. (dubious_conversion_warnings): New function, broken
  4540. out of convert_for_assignment.
  4541. (convert_for_assignment): Adjust.
  4542. 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
  4543. * decl2.c (key_method): Break out from...
  4544. (import_export_vtable, import_export_class): ...here.
  4545. * decl.c (finish_function): Don't mess with flag_keep_inline_functions.
  4546. * decl2.c (finish_vtable_vardecl): Don't check decl_function_context.
  4547. * search.c (note_debug_info_needed, dfs_debug_mark,
  4548. dfs_debug_unmarkedp): Uncomment. Adjust for new scheme.
  4549. * decl2.c (finish_vtable_vardecl): Call note_debug_info_needed.
  4550. 2000-03-03 Nathan Sidwell <nathan@codesourcery.com>
  4551. * decl.c (cp_finish_decl): Remove obsolete obstack comments, fix
  4552. typos.
  4553. 2000-03-02 Mark Mitchell <mark@codesourcery.com>
  4554. * cp-tree.h (TYPE_NEEDS_DESTRUCTOR): Rename to ...
  4555. (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): ... this.
  4556. (TYPE_HAS_TRIVIAL_DESTRUCTOR): New macro.
  4557. (lang_type): Split gets_new into has_new and has_array_new.
  4558. (TYPE_VEC_NEW_USES_COOKIE): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
  4559. (TYPE_GETS_NEW): Split into ...
  4560. (TYPE_HAS_NEW_OPERATOR): ... this, and ...
  4561. (TYPE_HAS_ARRAY_NEW_OPERATOR): ... this.
  4562. (DECL_ARRAY_DELETE_OPERATOR_P): New macro
  4563. (build_op_new_call): Don't declare.
  4564. (build_new_1): Likewise.
  4565. * call.c (build_op_new_call): Remove.
  4566. * class.c (check_bases): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR
  4567. instead of TYPE_NEEDS_DESTRUCTOR.
  4568. (finish_struct_bits): Likewise.
  4569. (add_implicitly_declared_members): Likewise.
  4570. (check_field_decl): Likewise.
  4571. (check_methods): Set TYPE_VEC_DELETE_TAKES_SIZE here, and set it
  4572. correctly under the new ABI.
  4573. * decl.c (start_decl_1): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR
  4574. instead of TYPE_NEEDS_DESTRUCTOR.
  4575. (initialize_local_var): Likewise.
  4576. (destroy_local_var): Likewise.
  4577. (cp_finish_decl): Likewise.
  4578. (register_dtor_fn): Likewise.
  4579. (grok_op_properties): Set TYPE_HAS_NEW_OPERATOR and
  4580. TYPE_HAS_ARRAY_NEW_OPERATOR, not TYPE_HAS_NEW. Don't set
  4581. TYPE_VEC_DELETE_TAKES_SIZE here.
  4582. (xref_basetypes): Set TYPE_HAS_NEW_OPERATOR and
  4583. TYPE_HAS_ARRAY_NEW_OPERATOR, not TYPE_HAS_NEW.
  4584. (store_parm_decls): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
  4585. (finish_destructor_body): Likewise.
  4586. (maybe_build_cleanup_1): Likewise.
  4587. * decl2.c (do_static_destruction): Likewise.
  4588. * init.c (build_new_1): Make it static.
  4589. (perform_member_init): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
  4590. (expand_cleanup_for_base): Likewise.
  4591. (get_cookie_size): New function.
  4592. (build_new_1): Handle array-new cookies correctly under the new
  4593. ABI.
  4594. (build_vec_delete_1): Likewise.
  4595. (build_vec_init): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
  4596. (build_delete): Likewise.
  4597. (build_vec_delete): Handle array-new cookies correctly under the new
  4598. ABI.
  4599. * lex.c (do_identifier): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
  4600. * pt.c (instantiate_class_template): Set TYPE_HAS_NEW_OPERATOR and
  4601. TYPE_HAS_ARRAY_NEW_OPERATOR.
  4602. * ptree.c (print_lang_type): Check them.
  4603. * search.c (context_for_name_lookup): Fix typo in comment.
  4604. (tree_has_any_destructor_p): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
  4605. * tree.c (break_out_cleanups): Likewise.
  4606. (build_cplus_array_test_1): Likewise.
  4607. (cp_build_qualified_type_real): Likewise.
  4608. * typeck.c (complete_type): Likewise.
  4609. * g++spec.c (lang_specific_driver): Add -fnew-abi at the start of
  4610. the command-line, not the end.
  4611. 2000-03-01 Jason Merrill <jason@casey.cygnus.com>
  4612. * pt.c (instantiate_decl): Clear TI_PENDING_TEMPLATE_FLAG.
  4613. 2000-03-02 Tom Tromey <tromey@cygnus.com>
  4614. * cp-tree.h (build_java_class_ref): Declare.
  4615. * init.c (build_java_class_ref): No longer static.
  4616. * except.c (expand_throw): Generate a Java-style `throw' if the
  4617. thrown object is a "Java" object.
  4618. (initialize_handler_parm): Generate a Java-style lookup of
  4619. exception info if the caught object is a "Java" object.
  4620. (catch_language, catch_language_init): New globals.
  4621. (decl_is_java_type): New function.
  4622. (expand_start_catch_block): Don't call push_eh_info() or
  4623. push_eh_cleanup() when handling a Java-style "catch". Pass Java
  4624. class reference to build_catch_block.
  4625. 2000-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4626. * typeck.c (comptypes): Treat sizetype like its language equivalent.
  4627. 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
  4628. * typeck.c (maybe_warn_about_returning_address_of_local): Reorganize
  4629. to merge reference/pointer code and fix incorrect warnings.
  4630. 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
  4631. * search.c (protected_accessible_p): Use context_for_name_lookup.
  4632. * init.c (construct_virtual_bases): Fix thinko.
  4633. * typeck.c (expand_ptrmemfunc_cst): Fix thinko.
  4634. 2000-03-01 Martin von Löwis <loewis@informatik.hu-berlin.de>
  4635. * decl.c (current_function_decl): Move to toplev.c.
  4636. 2000-02-29 Nathan Sidwell <nathan@codesourcery.com>
  4637. * pt.c (fn_type_unification): Unify return type, whenever
  4638. provided.
  4639. (get_bindings_real): Only pass return type when necessary.
  4640. Remove explicit return type check.
  4641. * class.c (resolve_address_of_overloaded_function): Pass desired
  4642. return type to fn_type_unification.
  4643. 2000-02-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4644. * class.c (build_vtbl_or_vbase_field, check_methods): Don't clear
  4645. DECL_FIELD_SIZE.
  4646. (check_bitfield_decl, check_field_decls): Set DECL_SIZE, not
  4647. DECL_FIELD_SIZE.
  4648. * rtti.c (expand_class_desc): Likewise.
  4649. * cp-tree.h (DECL_INIT_PRIORITY): Use underlying union name.
  4650. (THUNK_VCALL_OFFSET): Likewise.
  4651. (THUNK_DELTA): Reflect changes in ../tree.h.
  4652. 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
  4653. * search.c (protected_accessible_p): Also allow the access if
  4654. the member is public in DERIVED. Lose TYPE parm.
  4655. (friend_accessible_p): Lose TYPE parm.
  4656. (accessible_p): Adjust.
  4657. 2000-02-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4658. * class.c (dfs_build_vtable_offset_vtbl_entries): Don't use size_binop
  4659. on things that are not sizes; ssize_binop deleted.
  4660. Call size_diffop when appropriate.
  4661. (dfs_build_vcall_offset_vtbl_entries): Likewise.
  4662. (build_primary_vtable, build_secondary_vtable): Likewise.
  4663. (dfs_set_offset_for_unshared_vbases, dfs_modify_vtables): Likewise.
  4664. Variable I is HOST_WIDE_INT.
  4665. (get_vfield_offset): Pass proper types to size_binop.
  4666. (size_extra_vtbl_entries, layout_virtual_bases): Likewise.
  4667. (finish_struct_1): Likewise.
  4668. (skip_rtti_stuff): Arg N is now pointer to signed.
  4669. (layout_class_type): Use size_zero_node.
  4670. * cp-tree.h (skip_rtti_stuff): Arg N is pointer to signed.
  4671. * cvt.c (cp_convert_to_pointer): Pass proper types to size_binop.
  4672. * decl.c (complete_arry_type): Pass proper types to size_binop.
  4673. (xref_basetypes): BINFO_OFFSET is sizetype.
  4674. * error.c (dump_expr): Don't use size_binop non-sizes.
  4675. * expr.c (cplus_expand_constant): Pass proper types to size_binop.
  4676. * init.c (construct_virtual_bases): Fix type error.
  4677. (build_vec_delete_1): Pass proper type to size_binop and don't
  4678. fold result.
  4679. * lex.c (cp_make_lang_type): BINFO_OFFSET is sizetype.
  4680. * rtti.c (get_base_offset): Pass proper type to size_binop.
  4681. * search.c (dfs_find_vbases): Fix type error.
  4682. (expand_upcast_fixups): Arg to skip_rtti_stuff is pointer to signed.
  4683. (dfs_get_vbase_types): BINFO_OFFSET is sizetype.
  4684. * tree.c (debug_binfo): Variable N is signed.
  4685. Use HOST_WIDE_INT_PRINT_DEC.
  4686. * typeck.c (comptypes): sizetype is same as equivalent integer type.
  4687. (c_sizeof, c_sizeof_nowarn, expr_sizeof): Use TYPE_SIZE_UNIT,
  4688. size_one_node and size_zero_node.
  4689. (c_alignof): Use size_one_node.
  4690. (build_component_addr): Pass proper types to size_binop.
  4691. (expand_ptrmemfunc_cst): Don't use size_binop on non-sizes.
  4692. 2000-02-26 Jason Merrill <jason@casey.cygnus.com>
  4693. Implement class scope using-declarations for functions.
  4694. * class.c (handle_using_decl): Call add_method for used functions.
  4695. Use IDENTIFIER_CLASS_VALUE to check for conflicts.
  4696. (add_method): Used functions are hidden by local functions.
  4697. (check_bases_and_members): Handle using-decls before finalizing
  4698. CLASSTYPE_METHOD_VEC.
  4699. * call.c (add_function_candidate): Add ctype parm; if nonzero,
  4700. override the type of 'this' accordingly.
  4701. (add_template_candidate, add_template_candidate_real): Add ctype parm.
  4702. (convert_class_to_reference, build_user_type_conversion_1,
  4703. build_new_function_call, build_object_call, build_new_op,
  4704. build_new_method_call): Pass ctype parm.
  4705. * search.c (lookup_member): Put rval_binfo, not basetype_path, in
  4706. the baselink.
  4707. * call.c (convert_class_to_reference, build_user_type_conversion_1,
  4708. build_new_function_call, build_object_call, build_new_op,
  4709. build_new_method_call, build_op_delete_call): Don't get basetype_path
  4710. from a baselink.
  4711. * typeck.c (build_component_ref): Likewise.
  4712. * init.c (build_offset_ref): Likewise.
  4713. (resolve_offset_ref): Don't call enforce_access.
  4714. Call build_scoped_ref.
  4715. * typeck2.c (build_scoped_ref): Simplify. Do nothing if it
  4716. would cause an error or if -pedantic.
  4717. * class.c (alter_access): Lose binfo parm.
  4718. 2000-02-26 Mark Mitchell <mark@codesourcery.com>
  4719. * semantics.c (simplify_aggr_init_exprs_p): Don't walk into
  4720. types.
  4721. 2000-02-25 Alfred Minarik <a8601248@unet.univie.ac.at>
  4722. * rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info
  4723. pseudo_type_info creation into the std namespace
  4724. 2000-02-26 Mark Mitchell <mark@codesourcery.com>
  4725. * cp-tree.h (DECL_NEEDED_P): Tweak to correct usage before EOF.
  4726. (import_export_class): Remove declaration.
  4727. * decl2.c (import_export_class): Make it static.
  4728. * dump.c (dequeue_and_dump): Handle PREDECREMENT_EXPR,
  4729. PREINCREMENT_EXPR, POSTDECREMENT_EXPR, POSTINCREMENT_EXPR,
  4730. EXPR_WITH_FILE_LOCATION.
  4731. * lex.c (check_newline): Tweak filename/lineno setting.
  4732. * semantics.c (begin_while_stmt): Fix typo in comment.
  4733. 2000-02-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4734. * lang-options.h (-fmessage-length=): Add missing option.
  4735. * Make-lang.in (CXX_SRCS): Add .h files and sort list.
  4736. 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
  4737. * Make-lang.in: Delete refs to LIBGCC2_DEPS.
  4738. 2000-02-25 Jim Wilson <wilson@cygnus.com>
  4739. * optimize.c (expand_call_inline): Emit the return label before
  4740. evaluating the return value.
  4741. 2000-02-24 Mark Mitchell <mark@codesourcery.com>
  4742. * lex.c (check_newline): Use push_srcloc and pop_srcloc, rather
  4743. than duplicating functionality here.
  4744. * optimize.c: Include input.h.
  4745. (expand_call_inline): Use push_srcloc and pop_srcloc.
  4746. * parse.y (maybe_cv_qualifier): Remove calls to emit_line_note.
  4747. * parse.c: Regenerated.
  4748. * Makefile.in (lex.o): Depend on input.h.
  4749. (optimize.o): Likewise.
  4750. 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
  4751. * decl.c (grokdeclarator): Diagnose qualifiers on non-member
  4752. function type, rather than ICE.
  4753. 2000-02-23 Jason Merrill <jason@casey.cygnus.com>
  4754. * decl.c (grokdeclarator): Call decl_type_access_control.
  4755. * parse.y (parse_end_decl): Don't call decl_type_access_control if
  4756. decl is null.
  4757. 2000-02-23 Nathan Sidwell <nathan@codesourcery.com>
  4758. * decl.c (decls_match): Remove obsolete static member nadgering.
  4759. 2000-02-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  4760. * decl.c (grokdeclarator): Change ANSI to ISO.
  4761. * lex.c (consume_string, readescape, do_identifier): Likewise.
  4762. (parse_float, real_yylex): Likewise.
  4763. * parse.y (paren_expr_or_null, paren_cond_or_null): Likewise.
  4764. (unary_expr, new_initializer, cast_expr, primary, primary_no_id,
  4765. new_type_id, maybe_label_decls, simple_stmt,
  4766. for.init.statement): Likewise.
  4767. * pt.c (do_decl_instantiation, do_type_instantiation): Likewise.
  4768. * semantics.c (finish_named_return_value): Likewise.
  4769. * parse.c: Regenerate.
  4770. 2000-02-21 Mark Mitchell <mark@codesourcery.com>
  4771. * cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
  4772. (CPTI_CLASS_STAR_TYPE): Remove.
  4773. (vtable_index_type): Likewise.
  4774. (class_star_type_node): Remove.
  4775. (TYPE_PTRMEMFUNC_FN_TYPE): Adjust for the new ABI.
  4776. (build_binary_op_nodefault): Remove.
  4777. * call.c (build_new_op): Use build_binary_op instead of
  4778. build_binary_op_nodefault.
  4779. * decl.c (init_decl_processing): Remove class_star_type_node
  4780. initialization. Make delta_type_node ptrdiff_type_node under the
  4781. new ABI. Initialize vtable_index_type.
  4782. (build_ptrmemfunc_type): Build different structures for the new
  4783. ABI.
  4784. (build_enumerator): Use build_binary_op instead of
  4785. build_binary_op_nodefault.
  4786. * method.c (build_overload_value): Mangle pointers-to-members
  4787. appropriately under the new ABI.
  4788. * typeck.c (build_array_ref): Use build_binary_op instead of
  4789. build_binary_op_nodefault.
  4790. (get_member_function_from_ptrfunc): Adjust for the new ABI.
  4791. (build_binary_op_nodefault): Rename to ...
  4792. (build_binary_op): ... this. Remove old version. Adjust for
  4793. pointer-to-member comparisons under the new ABI.
  4794. (build_ptrmemfunc1): Remove dead code. Adjust for the new ABI.
  4795. (build_ptrmemfunc): Adjust for the new ABI.
  4796. (expand_ptrmemfunc_cst): Likewise.
  4797. (delta2_from_ptrmemfunc): Assert that we're not using the new ABI.
  4798. (pfn_from_ptrmemfunc): Adjust for the new ABI.
  4799. 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
  4800. * call.c (build_object_call): Compress consecutive calls to
  4801. cp_error.
  4802. (build_conditional_expr): Say 'ISO C++' not 'ANSI C++'.
  4803. (build_op_delete_call): Adjust message formatting.
  4804. * class.c (check_bases): Compress consecutive calls to
  4805. cp_pedwarn.
  4806. (finish_struct_anon): Say 'ISO C++'.
  4807. * decl.c (start_decl): Same here.
  4808. (grok_reference_init): Likewise.
  4809. (grokfndecl): Correct message formatting.
  4810. (grokfndecl): Improve diagnostic.
  4811. (check_static_variable_definition): Likewise. Say 'ISO C++'
  4812. (compute_array_index_type): Say 'ISO C++'
  4813. (create_array_type_for_decl): Compress consecutive calls to
  4814. cp_error.
  4815. (grokdeclarator): Say 'ISO C++'
  4816. (grok_op_properties): Likewise.
  4817. * decl2.c (delete_sanity): Clairify diagnostic.
  4818. (check_member_template): Same here.
  4819. (grok_function_init): Use consistent terminology.
  4820. * expr.c (do_case): Say 'ISO C++'
  4821. * friend.c (do_friend): Compress consecutive calls to warning.
  4822. 2000-02-20 Mark Mitchell <mark@codesourcery.com>
  4823. * cp-tree.h (merge_primary_and_secondary_vtables_p): New macro.
  4824. * class.c (build_secondary_vtable): Reorganize. Don't create a
  4825. new vtable under the new ABI.
  4826. (layout_vtable_decl): Don't add num_extra_vtbl_entries when
  4827. computing the size.
  4828. (build_vtbl_initializer): Don't return a CONSTRUCTOR; just return
  4829. the initializing elements.
  4830. (initialize_vtable): New function.
  4831. (dfs_finish_vtbls): Use it.
  4832. (dfs_accumulate_vtbl_inits): New function.
  4833. (finish_vtbls): Merge primary and secondary vtables under the new
  4834. ABI.
  4835. (finish_struct_1): Remove redundant call to layout_vtable_decl.
  4836. * init.c (expand_virtual_init): Deal with BINFO_VTABLEs that
  4837. aren't VAR_DECLs.
  4838. * class.c (build_vtable): New function, split out from ...
  4839. (get_vtable_decl): ... here, and ...
  4840. (build_secondary_vtable): ... here.
  4841. * pt.c (tsubst_decl): Fix formatting.
  4842. 2000-02-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
  4843. * class.c (build_primary_vtable, layout_vtable_decl): Likewise.
  4844. (avoid_overlap, build_base_field): Likewise.
  4845. (build_base_field, build_base_fields, is_empty_class):
  4846. Test DECL_SIZE with integer_zero.
  4847. (layout_class_type): Set CLASSTYPE_SIZE_UNIT.
  4848. * cp-tree.h (struct lang_type): New field size_unit.
  4849. (CLASSTYPE_SIZE_UNIT): New macro.
  4850. * decl.c (init_decl_processing): Set DECL_SIZE_UNIT.
  4851. (cp_finish_decl): Delete -Wlarger-than processing.
  4852. * optimize.c (remap_decl): Walk DECL_SIZE_UNIT.
  4853. * pt.c (tsubst_decl): Set DECL_SIZE_UNIT.
  4854. * tree.c (make_binfo): binfo vector is one entry longer.
  4855. (walk_tree): Walk DECL_SIZE_UNIT.
  4856. 2000-02-19 Mark Mitchell <mark@codesourcery.com>
  4857. * class.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in
  4858. comment.
  4859. (build_vtable_entry): Don't assume all vtable entries are
  4860. functions.
  4861. (build_vtbl_initializer): Adjust accordingly.
  4862. (get_vtable_decl): Fix formatting.
  4863. 2000-02-18 Jason Merrill <jason@casey.cygnus.com>
  4864. * semantics.c (deferred_type_access_control): Walk the entire
  4865. type_lookups list.
  4866. (save_type_access_control): Rename from
  4867. initial_deferred_type_access_control. Just remember the value.
  4868. (decl_type_access_control): New fn.
  4869. (begin_function_definition): Use deferred_type_access_control, after
  4870. we've started the function. Set type_lookups to error_mark_node.
  4871. * parse.y (frob_specs, fn.def1): Adjust.
  4872. (parse_decl0, parse_field, parse_field0, parse_bitfield): New fns.
  4873. (parse_end_decl, parse_bitfield0, parse_method): New fns.
  4874. (fn.def2, initdcl, initdcl0_innards, nomods_initdcl0): Use them.
  4875. (after_type_component_declarator0): Likewise.
  4876. (after_type_component_declarator): Likewise.
  4877. (notype_component_declarator): Likewise.
  4878. * cp-tree.h: Adjust.
  4879. * decl.c (redeclaration_error_message): Allow redeclaration of
  4880. namespace-scope decls.
  4881. 2000-02-18 Martin von Löwis <loewis@informatik.hu-berlin.de>
  4882. * typeck2.c (my_friendly_abort): Use GCCBUGURL.
  4883. 2000-02-17 Mark Mitchell <mark@codesourcery.com>
  4884. * class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
  4885. * decl2.c (grokclassfn): Likewise.
  4886. * ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
  4887. * decl2.c (lang_decode_option): Don't set default message length
  4888. here.
  4889. * lex.c (lang_init_options): Set it here.
  4890. 2000-02-16 Mark Mitchell <mark@codesourcery.com>
  4891. Make DECL_CONTEXT mean the class in which a member function was
  4892. declared, even for a virtual function.
  4893. * cp-tree.h (DECL_CLASS_CONTEXT): Adjust.
  4894. (DECL_FRIEND_CONTEXT): New macro.
  4895. (DECL_REAL_CONTEXT): Remove.
  4896. (SET_DECL_FRIEND_CONTEXT): Likewise.
  4897. (DECL_VIRTUAL_CONTEXT): Adjust.
  4898. (DECL_CLASS_SCOPE_P): Use TYPE_P.
  4899. (add_friends): Remove.
  4900. (hack_decl_function_context): Likewise.
  4901. * call.c (build_new_function_call): Replace DECL_REAL_CONTEXT with
  4902. CP_DECL_CONTEXT.
  4903. (build_over_call): Fix indentation. Use DECL_CONTEXT
  4904. instead of DECL_CLASS_CONTEXT.
  4905. * class.c (dfs_build_vcall_offset_vtbl_entries): Likewise.
  4906. (add_method): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
  4907. (strictly_overrides): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
  4908. (build_vtbl_or_vbase_field): Don't set DECL_CLASS_CONTEXT.
  4909. (build_base_field): Likewise.
  4910. (finish_struct_1): Likewise.
  4911. (build_self_reference): Likewise.
  4912. * decl.c (push_class_binding): Use CP_DECL_CONTEXT, not
  4913. DECL_REAL_CONTEXT.
  4914. (pushtag): Use decl_function_context, not
  4915. hack_decl_function_context.
  4916. (decls_match): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
  4917. (duplicate_decls): Use DECL_VIRTUAL_CONTEXT.
  4918. (pushdecl): Remove bogus code.
  4919. (start_decl): Use DECL_CONTEXT rather than DECL_CLASS_CONTEXT.
  4920. (cp_finish_decl): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
  4921. (grokfndecl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
  4922. Use decl_function_context, nothack_decl_function_context.
  4923. (grokvardecl): Don't set DECL_CLASS_CONTEXT.
  4924. (grokdeclarator): Likewise. Use decl_function_context, not
  4925. hack_decl_function_context.
  4926. (copy_args_p): Document. Don't use DECL_CLASS_CONTEXT.
  4927. (start_function): Use DECL_FRIEND_CONTEXT, not
  4928. DECL_CLASS_CONTEXT. Use decl_function_context, not
  4929. hack_decl_function_context.
  4930. (finish_function): Use decl_function_context, not
  4931. hack_decl_function_context.
  4932. (maybe_retrofit_in_chrg): Use DECL_CONTEXT, not
  4933. DECL_CLASS_CONTEXT.
  4934. (grokclassfn): Set DECL_VIRTUAL_CONTEXT, not DECL_CONTEXT.
  4935. (finish_static_data_member_decl): Don't set DECL_CLASS_CONTEXT.
  4936. (grokfield): Likewise.
  4937. (finish_builtin_type): Likewise.
  4938. (finish_vtable_vardec): Use decl_function_context, not
  4939. hack_decl_function_context.
  4940. (import_export_decl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
  4941. (start_static_initialization_or_destruction): Likewise.
  4942. (finish_static_initialization_or_destruction): Likewise.
  4943. (mark_used): Adjust logic for deciding when to synthesize methods.
  4944. * dump.c (dequeue_and_dump): Use CP_DECL_CONTEXT, not
  4945. DECL_REAL_CONTEXT.
  4946. * error.c (dump_function_decl): Use DECL_CONTEXT, not
  4947. DECL_CLASS_CONTEXT.
  4948. * friend.c (is_friend): Likewise.
  4949. (add_friends): Remove.
  4950. (do_friend): Use SET_DECL_FRIEND_CONTEXT.
  4951. * lex.c (begin_definition_of_inclass_inline): Use
  4952. decl_function_context, not hack_decl_function_context.
  4953. (process_next_inline): Likewise.
  4954. (do_identifier): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
  4955. * method.c (set_mangled_name_for_decl): Use DECL_CONTEXT, not
  4956. DECL_CLASSS_CONTEXT.
  4957. (hack_identifier): Likewise.
  4958. (synthesize_method): Use decl_function_context, not
  4959. hack_decl_function_context.
  4960. * pt.c (template_class_depth_real): Use CP_DECL_CONTEXT, not
  4961. DECL_REAL_CONTEXT.
  4962. (is_member_template): Use decl_function_context, not
  4963. hack_decl_function_context. Use DECL_CONTEXT, not
  4964. DECL_CLASS_CONTEXT.
  4965. (build_template_decl): Set DECL_VIRTUAL_CONTEXT, not
  4966. DECL_CLASS_CONTEXT.
  4967. (check_default_tmpl_args): Use CP_DECL_CONTEXT, not
  4968. DECL_REAL_CONTEXT.
  4969. (push_template_decl_real): Likewise.
  4970. (instantiate_class_template): Don't call add_friends.
  4971. (tsubst_default_argument): Use DECL_CONTEXT, not
  4972. DECL_REAL_CONTEXT.
  4973. (tsubst_decl): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
  4974. Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
  4975. (set_meangled_name_for_template_decl): Use DECL_CONTEXT, not
  4976. DECL_CLASS_CONTEXT.
  4977. * repo.c (repo_inline_used): Likewise.
  4978. * search.c (current_scope): Adjust for new _CONTEXT macros.
  4979. (context_for_name_lookup): Use CP_DECL_CONTEXT, not
  4980. DECL_REAL_CONTEXT.
  4981. (friend_accessible_p): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
  4982. (lookup_fnfields_here):Likewise.
  4983. (check_final_overrider): Likewise.
  4984. (init_vbase_pointers): Likewise.
  4985. (virtual_context): Likewise.
  4986. * semantics.c (finish_member_declaration): Just set DECL_CONTEXT.
  4987. (expand_body): Use decl_function_context, not
  4988. hack_decl_function_context.
  4989. * tree.c (hack_decl_function_context): Remove.
  4990. * typeck.c (build_x_function_call): Use DECL_CONTEXT, not
  4991. DECL_CLASS_CONTEXT.
  4992. * typeck2.c (error_not_base_type): Likewise.
  4993. 2000-02-15 Jason Merrill <jason@casey.cygnus.com>
  4994. * decl.c (xref_tag): Don't SET_IDENTIFIER_NAMESPACE_VALUE.
  4995. 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  4996. * Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
  4997. 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
  4998. * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
  4999. 2000-01-16 Gabriel Dos Reis <gdr@codesourcery.com>
  5000. * decl2.c (lang_decode_option): Enable automatic line wrapping.
  5001. 2000-02-13 Jason Merrill <jason@casey.cygnus.com>
  5002. * parse.y (frob_specs): Split out...
  5003. (parse_decl): From here.
  5004. (fn.def2): Call initial_deferred_type_access_control.
  5005. (after_type_component_declarator0): Call frob_specs.
  5006. (notype_component_declarator0): Likewise.
  5007. * search.c (friend_accessible_p): Nested classes are friends of their
  5008. enclosing classes.
  5009. 2000-02-10 Mark Mitchell <mark@codesourcery.com>
  5010. * ir.texi (ADDR_EXPR): Document the fact that an ADDR_EXPR can be
  5011. used to create an implicit temporary.
  5012. * class.c (dfs_modify_vtables): Tweak calculation of functions to
  5013. override.
  5014. 2000-02-08 Nathan Sidwell <nathan@acm.org>
  5015. * typeck.c (strip_all_pointer_quals): Use TYPE_MAIN_VARIANT, to
  5016. strip array element qualifiers too.
  5017. 2000-02-07 Mark Mitchell <mark@codesourcery.com>
  5018. * decl.c (store_parm_decls): Don't build cleanups for parameters
  5019. while processing_template_decl.
  5020. 2000-02-07 Jason Merrill <jason@casey.cygnus.com>
  5021. * cp-tree.h (struct saved_scope): Add incomplete field.
  5022. (namespace_scope_incomplete): New macro.
  5023. * decl.c (pushdecl): Use it.
  5024. (hack_incomplete_structures): Use it. See through artificial
  5025. binding levels.
  5026. (mark_saved_scope): Mark it.
  5027. Implement access control for nested types.
  5028. * search.c (type_access_control): New fn.
  5029. (accessible_p): Now we do perform access control for types.
  5030. * semantics.c (deferred_type_access_control): New fn.
  5031. (initial_deferred_type_access_control): New fn.
  5032. (begin_function_definition): Call it. Add lookups parm.
  5033. * decl.c (struct binding_level): Add this_class field.
  5034. (pushlevel_class): Set it.
  5035. (mark_binding_level): Mark it.
  5036. (lookup_name_real): Use it. Call type_access_control.
  5037. (mark_saved_scope): Mark lookups field.
  5038. * cp-tree.h (flagged_type_tree): Add lookups field.
  5039. (struct saved_scope): Add lookups field.
  5040. (type_lookups): New macro.
  5041. * parse.y (declmods): Now <ftype>.
  5042. (parse_decl): Add lookups parm. Call
  5043. initial_deferred_type_access_control.
  5044. (lang_extdef): Clear type_lookups.
  5045. (typed_declspecs, declmods, typespec): Set lookups field.
  5046. (initdcl): Call deferred_type_access_control.
  5047. (fn.def1, fn.def2, typed_declspecs1, initdcl0_innards, nomods_initdcl0,
  5048. component_decl_1, named_parm): Adjust.
  5049. * friend.c (is_friend): Nested classes are friends of their
  5050. enclosing classes.
  5051. * class.c (currently_open_derived_class): New fn.
  5052. * method.c (hack_identifier): Use it.
  5053. * lex.c (do_identifier): Remove obsolete code.
  5054. * parse.y (typed_typespecs): Propagate new_type_flag properly.
  5055. 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
  5056. * tinfo.h: Remove apostrophes from C++ comment (xgettext
  5057. thinks this file is plain C).
  5058. 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  5059. * Makefile.in (call.o): Depend on $(EXPR_H).
  5060. * call.c: Include "expr.h".
  5061. * class.c (dump_class_hierarchy): Add prototype.
  5062. * search.c (dfs_get_pure_virtuals): Likewise.
  5063. 2000-02-1 Ulrich Drepper <drepper@redhat.com>
  5064. * parse.y (simple_stmt): Allow :: token in asm parameter list.
  5065. * parse.c: Rebuilt.
  5066. 2000-01-31 Jim Wilson <wilson@cygnus.com>
  5067. * class.c (build_vtbl_or_vbase_field): New parameter fcontext.
  5068. Store it in DECL_FCONTEXT.
  5069. (build_vbase_pointer_fields, create_vtable_ptr): Fix callers.
  5070. 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
  5071. * tinfo.h (old abi): #include "tconfig.h".
  5072. * tinfo.cc (convert_to_base): Move into old abi section.
  5073. 2000-01-31 Mark Mitchell <mark@codesourcery.com>
  5074. * cp-tree.h (BINFO_VIRTUALS): Tweak documentation.
  5075. (CLASSTYPE_PRIMARY_BINFO): Use BINFO_PRIMARY_BINFO.
  5076. (BINFO_PRIMARY_BINFO): New macro.
  5077. (BF_DELTA): Rename to ...
  5078. (BV_DELTA): ... this.
  5079. (BF_VCALL_INDEX): Rename to ...
  5080. (BV_VCALL_INDEX): ... this.
  5081. (BF_FN): Rename to ...
  5082. (BV_FN): ... this.
  5083. * class.c (build_vbase_path): Adjust for changes to reverse_path.
  5084. (set_rtti_entry): Rename BF_ macros to BV_ variants.
  5085. (modify_vtable_entry): Simplify.
  5086. (add_virtual_function): Rename BF_ macros to BV_ variants.
  5087. (build_vtable_initializer): Likewise.
  5088. (get_class_offset_1): Remove.
  5089. (dfs_get_class_offset): Likewise.
  5090. (get_class_offset): Likewise.
  5091. (dfs_find_final_overrider): New function.
  5092. (find_final_overrider): Likewise.
  5093. (modify_one_vtable): Remove.
  5094. (dfs_find_base): New function.
  5095. (dfs_modify_vtables): Fold modify_one_vtable in here. Use
  5096. find_final_overrider.
  5097. (modify_all_vtables): Adjust. Set BV_VCALL_INDEX on new
  5098. virtuals.
  5099. (dfs_fixup_vtable_deltas): Remove.
  5100. (override_one_vtable): Remove.
  5101. (merge_overrides): Likewise.
  5102. (layout_virtual_bases): Make sure BINFO_OFFSET is set right for
  5103. unreal chilren of virtual bases.
  5104. (finish_struct_1): Don't use merge_overrides. Don't use
  5105. dfs_fixup_vtable_deltas.
  5106. * tree.c (reverse_path): Return a TREE_LIST, not a chain of
  5107. BINFOs.
  5108. 2000-01-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
  5109. Jason Merrill <jason@yorick.cygnus.com>
  5110. * tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.
  5111. 2000-01-31 Alfred Minarik <a8601248@unet.univie.ac.at>
  5112. * exception.cc (__throw_bad_typeid): Add missing std::.
  5113. 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  5114. * cp-tree.h (make_thunk): PROTO -> PARAMS.
  5115. 2000-01-31 Nathan Sidwell <sidwell@codesourcery.com>
  5116. * cp-tree.h (new_abi_rtti_p): Use flag_new_abi.
  5117. Runtime support for new-abi rtti.
  5118. * inc/typeinfo (type_info::operator!=): Define in class.
  5119. (type_info::before, type_info::name, type_info::operator==,
  5120. type_info::operator!=): Define new ABI implementations.
  5121. (type_info::is_pointer_p, type_info::is_function_p): Declare
  5122. new virtual functions.
  5123. (type_info::do_catch, type_info::do_upcast): Likewise.
  5124. * tinfo.h (__base_class_info): Define new class.
  5125. (__class_type_info): Likewise.
  5126. (__si_class_type_info): Likewise.
  5127. (__vmi_class_type_info): Likewise.
  5128. (__dynamic_cast): Prototype.
  5129. * tinfo.cc: Conditionalize old and new rtti mechanisms.
  5130. (type_info::is_pointer_p): Define new function.
  5131. (type_info::is_function_p): Likewise.
  5132. (type_info::do_catch): Likewise.
  5133. (type_info::do_upcast): Likewise.
  5134. (vtable_prefix): New structure for vtable access.
  5135. (adjust_pointer): Define new template function.
  5136. (contained_p, public_p, virtual_p, contained_public_p,
  5137. contained_nonpublic_p, contained_nonvirtual_p): Define new
  5138. functions.
  5139. (nonvirtual_base_type): New local variable.
  5140. (__class_type_info::~__class_type_info): Define.
  5141. (__si_class_type_info::~__si_class_type_info): Likewise.
  5142. (__vmi_class_type_info::~__vmi_class_type_info): Likewise.
  5143. (__class_type_info::do_catch): Define new function.
  5144. (__class_type_info::do_upcast): Likewise.
  5145. (__class_type_info::find_public_src): Likewise.
  5146. (__class_type_info::do_find_public_src): Likewise.
  5147. (__si_class_type_info::do_find_public_src): Likewise.
  5148. (__vmi_class_type_info::do_find_public_src): Likewise.
  5149. (__class_type_info::do_dyncast): Likewise.
  5150. (__si_class_type_info::do_dyncast): Likewise.
  5151. (__vmi_class_type_info::do_dyncast): Likewise.
  5152. (__class_type_info::do_upcast): Likewise.
  5153. (__si_class_type_info::do_upcast): Likewise.
  5154. (__vmi_class_type_info::do_upcast): Likewise.
  5155. (__dynamic_cast): Likewise.
  5156. * tinfo2.cc (__fundamental_type_info): Define new class.
  5157. (__pointer_type_info): Likewise.
  5158. (__reference_type_info): Likewise.
  5159. (__array_type_info): Likewise.
  5160. (__function_type_info): Likewise.
  5161. (__enum_type_info): Likewise.
  5162. (__ptr_to_member_type_info): Likewise.
  5163. (__fundamental_type_info::~__fundamental_type_info): Define.
  5164. (__pointer_type_info::~__pointer_type_info): Likewise.
  5165. (__reference_type_info::~__reference_type_info): Likewise.
  5166. (__array_type_info::~__array_type_info): Likewise.
  5167. (__function_type_info::~__function_type_info): Likewise.
  5168. (__enum_type_info::~__enum_type_info): Likewise.
  5169. (__ptr_to_member_type_info::~__ptr_to_member_type_info): Likewise.
  5170. (__pointer_type_info::do_catch): Define new function.
  5171. (__ptr_to_member_type_info::do_catch): Define new function.
  5172. (__throw_type_match_rtti_2): Use new ABI interface, if enabled.
  5173. (__is_pointer): Likewise.
  5174. * exception.cc (__cplus_type_matcher): Deal with new-abi rtti.
  5175. 2000-01-30 Mark Mitchell <mark@codesourcery.com>
  5176. * cp/class.c (build_vtable): Rename to build_primary_vtable.
  5177. (prepare_fresh_vtable): Rename to build_secondary_vtable.
  5178. (make_new_vtable): New function.
  5179. (modify_vtable_entry): Handle generation of new vtables correctly.
  5180. (modify_one_vtable): Remove unused parameter.
  5181. (dfs_fixup_vtable_deltas): Likewise.
  5182. (override_one_vtable): Use build_secondary_vtable.
  5183. (finish_struct_1): Use build_primary_vtable and
  5184. build_secondary_vtable.
  5185. 2000-01-28 Ulrich Drepper <drepper@redhat.com>
  5186. * cp/decl.c: Adjust variable names, comments, help strings.
  5187. 2000-01-29 Nathan Sidwell <nathan@acm.org>
  5188. * new2.cc (operator delete[]): Use operator delete, don't assume
  5189. implementation.
  5190. 2000-01-29 Nathan Sidwell <sidwell@codesourcery.com>
  5191. * class.c (build_vtbl_initializer): Add argument to
  5192. build_vtable_entry call.
  5193. 2000-01-27 Mark Mitchell <mark@codesourcery.com>
  5194. * cp-tree.def (THUNK_DECL): Discuss vcall indices.
  5195. * cp-tree.h (BINFO_VIRTUALS): Update documentation.
  5196. (BF_DELTA): New macro.
  5197. (BF_VCALL_INDEX): Likewise.
  5198. (BF_FN): Likewise.
  5199. (THUNK_VCALL_OFFSET): Likewise.
  5200. (make_thunk): Change prototype.
  5201. * class.c (build_vtable_entry): Integrate
  5202. build_vtable_entry_for_fn. Handle vcall indices.
  5203. (build_vtable_entry_for_fn): Remove.
  5204. (set_rtti_entry): Handle vcall indices. Use BF_DELTA,
  5205. BF_VCALL_INDEX, BF_FN.
  5206. (modify_vtable_entry): Integrate common code from
  5207. modify_one_vtable and dfs_fixup_vtable_deltas.
  5208. (add_virtual_function): Set BF_VCALL_INDEX.
  5209. (build_vtbl_initializer): Simplify. Use BF_DELTA, BF_VCALL_INDEX,
  5210. and BF_FN.
  5211. (modify_one_vtable): Simplify.
  5212. (dfs_fixup_vtable_deltas): Likewise.
  5213. (override_one_vtable): Use BF_DELTA, BF_VCALL_INDEX, BF_FN.
  5214. * method.c (make_thunk): Handle vcall indices.
  5215. 2000-01-28 Nathan Sidwell <sidwell@codesourcery.com>
  5216. Compiler side new abi rtti (not enabled).
  5217. * cp-tree.h (new_abi_rtti_p): New macro.
  5218. (emit_support_tinfos): Prototype new function.
  5219. (tinfo_decl_p): Likewise.
  5220. (emit_tinfo_decl): Likwise.
  5221. * rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL): New accessor
  5222. macros.
  5223. (doing_runtime): New local static.
  5224. (init_rtti_processing): Add new-abi initializer.
  5225. (get_tinfo_decl): Add new-abi logic.
  5226. (tinfo_from_decl): Likewise.
  5227. (build_dynamic_cast_1): Likewise.
  5228. (qualifier_flags): New static function.
  5229. (tinfo_base_init): Likewise.
  5230. (generic_initializer): Likewise.
  5231. (ptr_ref_initializer): Likewise.
  5232. (ptmd_initializer): Likewise.
  5233. (class_hint_flags): Likewise.
  5234. (class_initializer): Likewise.
  5235. (synthesize_tinfo_var): Likewise.
  5236. (create_real_tinfo_var): Likewise.
  5237. (create_pseudo_type_info): Likewise.
  5238. (get_vmi_pseudo_type_info): Likewise.
  5239. (create_tinfo_types): Likewise.
  5240. (emit_support_tinfos): New global function.
  5241. (tinfo_decl_p): New global predicate.
  5242. (emit_tinfo_decl): New global function.
  5243. * class.c (set_rtti_entry): Generalize for old and new rtti.
  5244. (build_vtbl_initializer): Likewise.
  5245. * decl2.c (finish_file): Likewise.
  5246. 2000-01-27 Jim Wilson <wilson@cygnus.com>
  5247. * optimize.c (remap_decl): Add walk_tree calls for DECL_SIZE (t)
  5248. and TYPE_MAX_VALUE (TYPE_DOMAIN (TREE_TYPE (t))).
  5249. 2000-01-27 Mike Stump <mrs@wrs.com>
  5250. * decl.c (pushdecl): Fix up shadow warnings with respect to implicit
  5251. for scopes.
  5252. 2000-01-26 Jason Merrill <jason@casey.cygnus.com>
  5253. * pt.c (unify): Use fold, not maybe_fold_nontype_arg.
  5254. 2000-01-26 J"orn Rennecke <amylaar@cygnus.co.uk>
  5255. * optimize.c (calls_setjmp_r): Supply new argument
  5256. to special_function_p.
  5257. 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  5258. * call.c: PROTO -> PARAMS.
  5259. * class.c: Likewise.
  5260. * cp-tree.h: Likewise.
  5261. * cvt.c: Likewise.
  5262. * decl.c: Likewise.
  5263. * decl.h: Likewise.
  5264. * decl2.c: Likewise.
  5265. * dump.c: Likewise.
  5266. * errfn.c: Likewise.
  5267. * error.c: Likewise.
  5268. * except.c: Likewise.
  5269. * expr.c: Likewise.
  5270. * init.c: Likewise.
  5271. * input.c: Likewise.
  5272. * lex.c: Likewise.
  5273. * lex.h: Likewise.
  5274. * method.c: Likewise.
  5275. * optimize.c: Likewise.
  5276. * parse.y: Likewise.
  5277. * pt.c: Likewise.
  5278. * repo.c: Likewise.
  5279. * rtti.c: Likewise.
  5280. * search.c: Likewise.
  5281. * semantics.c: Likewise.
  5282. * spew.c: Likewise.
  5283. * tree.c: Likewise.
  5284. * typeck.c: Likewise.
  5285. * typeck2.c: Likewise.
  5286. * xref.c: Likewise.
  5287. 2000-01-25 Richard Henderson <rth@cygnus.com>
  5288. * typeck.c (build_binary_op_nodefault): Remove UNNE_EXPR.
  5289. 2000-01-25 Mark Mitchell <mark@codesourcery.com>
  5290. * cp-tree.h (vcall_offset_in_vtable_p): New macro.
  5291. * class.c (build_vbase_offset_vtbl_entries): Fix typo in commment.
  5292. (struct vcall_offset_data_s): New type.
  5293. (dfs_vcall_offset_queue_p): New function.
  5294. (dfs_build_vcall_offset_vtbl_entries): Likewise.
  5295. (build_vcall_offset_vtbl_entries): Likewise.
  5296. (layout_vtable_decl): Likewise.
  5297. (num_vfun_entries): Likewise.
  5298. (num_extra_vtbl_entries): Add the entries for vcall offsets.
  5299. (build_vtbl_initializer): Likewise.
  5300. (dfs_finish_vtabls): Use layout_vtable_decl.
  5301. (modify_one_vtables): Always duplicate vtables under the new ABI.
  5302. (finish_struct_1): Use layout_vtable_decl.
  5303. 2000-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  5304. * decl.c (member_function_or_else): Change third arg from a format
  5305. specifier to an `enum overload_flags'. Callers changed.
  5306. 2000-01-25 Gabriel Dos Reis <gdr@codesourcery.com>
  5307. * typeck.c (composite_pointer_type, c_sizeof, expr_sizeof,
  5308. build_binary_op_nodefault, build_unary_op, build_reinterpret_cast,
  5309. build_const_cast, get_delta_difference, check_return_expr): Avoid
  5310. ANSI string concatenation usage.
  5311. 2000-01-24 Mark Mitchell <mark@codesourcery.com>
  5312. * class.c (layout_class_type): Put the fields required to make a
  5313. class non-empty at the end, not the beginning, of the TYPE_FIELDs
  5314. list.
  5315. 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
  5316. * pt.c (maybe_fold_nontype_arg): Do nothing if we're not in a
  5317. template.
  5318. * decl2.c (mark_used): Do instantiate inlines that have been
  5319. explicitly instantiated.
  5320. 2000-01-24 Richard Henderson <rth@cygnus.com>
  5321. * call.c (build_over_call): Use expand_tree_builtin.
  5322. * typeck.c (build_function_call_real): Likewise.
  5323. (build_binary_op_nodefault): Handle unordered compares.
  5324. 2000-01-24 Nathan Sidwell <sidwell@codesourcery.com>
  5325. * cp-tree.h (CPTI_BAD_CAST, CPTI_BAD_TYPEID, CPTI_DCAST): New
  5326. cp_tree_index values.
  5327. (throw_bad_cast_node, throw_bad_typeid_node, dynamic_cast_node):
  5328. New global node #defines for them.
  5329. * rtti.c (call_void_fn): Replace with ...
  5330. (build_runtime_decl): ... new static function.
  5331. (throw_bad_cast): Use throw_bad_cast_node and build_runtime_decl.
  5332. (throw_bad_typeid): Use throw_bad_typeid_node and build_runtime_decl.
  5333. (build_dynamic_cast_1): Always produce correctly typed result.
  5334. Explicitly produce type_info addresses. Use dynamic_cast_node.
  5335. * exception.cc (__throw_bad_cast): Return `void *'.
  5336. (__throw_bad_typeid): Return `const type_info &'.
  5337. 2000-01-24 Nathan Sidwell <sidwell@codesourcery.com>
  5338. * cp-tree.h (get_vtable_decl): Prototype new function.
  5339. * class.c (get_vtable_decl): New function. Broken out from ...
  5340. (build_vtable): ... here. Use it.
  5341. * decl2.c (finish_vtable_vardecl): Ignore dummy vtables created
  5342. by get_vtable_decl.
  5343. 2000-01-24 Nathan Sidwell <sidwell@codesourcery.com>
  5344. * cp-tree.h (CPTI_TP_DESC_TYPE, CPTI_ACCESS_MODE_TYPE,
  5345. CPTI_USER_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_ATTR_DESC_TYPE,
  5346. CPTI_PTMF_DESC_TYPE): Remove cp_tree_index enumerations.
  5347. (CPTI_TI_DESC_TYPE, CPTI_REF_DESC_TYPE, CPTI_ARY_DESC_TYPE,
  5348. CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_SI_CLASS_DESC_TYPE,
  5349. CPTI_VMI_CLASS_DESC_TYPE, CPTI_BASE_DESC_TYPE): New enumerations.
  5350. (CPTI_TINFO_FN_ID, CPTI_TINFO_FN_TYPE): Rename to ...
  5351. (CPTI_TINFO_DECL_ID, CPTI_TINFO_DECL_TYPE): ... here.
  5352. (CPTI_TINFO_VAR_ID): New enumeration.
  5353. (__tp_desc_type_node, __access_mode_type_node,
  5354. __bltn_desc_type_node, __user_desc_type_node,
  5355. __class_desc_type_node, __ptr_desc_type_node,
  5356. __attr_desc_type_node, __func_desc_type_node,
  5357. __ptmf_desc_type_node, __ptmd_desc_type_node): Remove #defines.
  5358. (ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
  5359. ref_desc_type_node, ary_desc_type_node, func_desc_type_node,
  5360. enum_desc_type_node, class_desc_type_node,
  5361. si_class_desc_type_node, vmi_class_desc_type_node,
  5362. ptmd_desc_type_node, base_desc_type_node): New #defines.
  5363. (tinfo_fn_id, tinfo_fn_type): Rename to ...
  5364. (tinfo_decl_id, tinfo_decl_type): ... here. Adjust.
  5365. (tinfo_var_id): New enumeration.
  5366. (DECL_TINFO_FN_P): Augment comment.
  5367. * decl.c (cp_global_trees): Adjust documentation.
  5368. * rtti.c (init_rtti_processing): Adjust for tinfo_decl_id,
  5369. tinfo_decl_type and tinfo_var_id.
  5370. (get_tinfo_decl_dynamic): Adjust for tinfo_decl_type.
  5371. (build_typeid): Remove unused variable.
  5372. (get_tinfo_var): Use tinfo_var_id.
  5373. (tinfo_name): New static function.
  5374. (get_tinfo_decl): Adjust for tinfo_decl_id and tinfo_decl_type.
  5375. (tinfo_from_decl): Likewise.
  5376. (get_base_offset): New static function, broken out of
  5377. expand_class_desc.
  5378. (expand_si_desc): Use tinfo_name.
  5379. (expand_class_desc): Likewise. Lose local static variable.
  5380. Use base_desc_type_node. Use get_base_offset.
  5381. (expand_ptr_desc): Use tinfo_name.
  5382. (expand_attr_desc): Likewise.
  5383. (expand_generic_desc): Likewise.
  5384. * tinfo.cc (__GXX_ABI_VERSION): Test value and existence.
  5385. * tinfo.h (__GXX_ABI_VERSION): Test value and existence.
  5386. 2000-01-23 Mark Mitchell <mark@codesourcery.com>
  5387. * cp-tree.h (__eprintf): Remove declaration.
  5388. * tree.c (__eprintf): Remove definition.
  5389. 2000-01-23 Zack Weinberg <zack@rabi.columbia.edu>
  5390. Mark Mitchell <mark@codesourcery.com>
  5391. * cp-tree.h (CLASSTYPE_MARKED_N, SET_CLASSTYPE_MARKED_N,
  5392. CLEAR_CLASSTYPE_MARKED_N): Avoid signed vs. unsigned warnings.
  5393. 2000-01-23 Brad Lucier <lucier@math.purdue.edu>
  5394. * class.c (dump_class_hierarchy): Print HOST_WIDE_INT properly.
  5395. 2000-01-23 Mark Mitchell <mark@codesourcery.com>
  5396. * cp-tree.h (register_dtor_fn): New function.
  5397. * decl.c (destroy_local_static): Rename to ...
  5398. (register_dtor_fn): ... this. Give it external linkage.
  5399. (expand_static_init): Use it.
  5400. * decl2.c (do_static_initialization): Likewise, if using
  5401. __cxa_atexit.
  5402. (do_static_destruction): Check that __cxa_atexit is not in use.
  5403. (finish_file): Don't call do_static_destruction if using
  5404. __cxa_atexit.
  5405. * typeck.c (convert_arguments): Restore two-message error
  5406. reporting.
  5407. 2000-01-20 Nathan Sidwell <sidwell@codesourcery.com>
  5408. Remap dynamic cast hint values to be consistent across ABIs.
  5409. * search.c (dynamic_cast_base_recurse): Remap generated value.
  5410. (get_dynamic_cast_base_type): Adjust documentation.
  5411. * tinfo.h (__user_type_info::dyncast): Likewise.
  5412. (__user_type_info::find_public_subobj): Remap BOFF meaning.
  5413. * tinfo.cc (__si_type_info::do_dyncast): Remap BOFF meaning.
  5414. (__class_type_info::do_dyncast): Likewise.
  5415. (__class_type_info::do_find_public_subobj): Likewise.
  5416. * tinfo2.cc (__dynamic_cast): Remap BOFF parameter.
  5417. 2000-01-19 Gabriel Dos Reis <gdr@codesourcery.com>
  5418. * typeck.c (build_unary_op): Use cp_pedwarn, not pedwarn.
  5419. * typeck2.c (incomplete_type_error): Restore previous
  5420. cp_error and cp_error_at call sequence.
  5421. 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
  5422. * class.c (dump_class_hierarchy): Make format agree with argument;
  5423. cast pointer to unsigned long and print with %lx.
  5424. 2000-01-19 Gabriel Dos Reis <gdr@codesourcery.com>
  5425. * decl2.c (lang_decode_option): Set default line-wrap length to 72.
  5426. * typeck.c (composite_pointer_type, common_type,
  5427. comp_target_parms, c_sizeof, expr_sizeof, build_array_ref,
  5428. build_function_call_real, convert_arguments,
  5429. build_binary_op_nodefault, pointer_int_sum, pointer_diff,
  5430. build_unary_op, mark_addressable, build_compound_expr,
  5431. build_static_cast, build_reinterpret_cast, build_const_cast,
  5432. build_c_cast, build_modify_expr, get_delta_difference,
  5433. build_ptrmemfunc, check_return_expr): Replace 'ANSI C++' with
  5434. 'ISO C++'. Fusion consecutive calls to diagnostic message routines
  5435. into a single one.
  5436. * typeck2.c (readonly_error, abstract_virtuals_error,
  5437. process_init_constructor, check_for_new_type): Likewise.
  5438. 2000-01-19 Mark Mitchell <mark@codesourcery.com>
  5439. * tree.c (bot_manip): Set DECL_CONTEXT for newly created
  5440. VAR_DECLs.
  5441. 2000-01-18 Nathan Sidwell <sidwell@codesourcery.com>
  5442. * cp-tree.h (get_tinfo_fn_dynamic): Remove prototype.
  5443. (build_x_typeid): Likewise.
  5444. (get_tinfo_fn): Likewise.
  5445. (get_tinfo_fn_unused): Rename to ...
  5446. (get_tinfo_decl): ... here.
  5447. * rtti.c (build_headof): Replace logic error with assertion.
  5448. (get_tinfo_fn_dynamic): Rename to ...
  5449. (get_tinfo_decl_dynamic): ... here. Make static. Use
  5450. complete_type_or_else.
  5451. (build_x_typeid): Move into ...
  5452. (build_typeid): ... here. Adjust call to
  5453. get_tinfo_decl_dynamic. Use tinfo_from_decl. Simplify
  5454. throw_bad_typeid expression.
  5455. (get_tinfo_fn_unused): Rename to ...
  5456. (get_tinfo_decl): ... here. Adjust comment.
  5457. (get_tinfo_fn): Delete.
  5458. (tinfo_from_decl): New static function.
  5459. (get_typeid_1): Call get_tinfo_decl and tinfo_from_decl.
  5460. (get_typeid): Use complete_type_or_else.
  5461. (build_dynamic_cast_1): Adjust calls to
  5462. get_tinfo_decl_dynamic. Simplify throw_bad_cast expression.
  5463. * parse.y (primary): Adjust call to build_typeid.
  5464. * except.c (build_eh_type_type_ref): Adjust call to
  5465. get_tinfo_decl. Mark as used.
  5466. * class.c (set_rtti_entry): Adjust call to get_tinfo_decl.
  5467. * decl2.c (build_expr_from_tree): Adjust call to build_typeid.
  5468. * parse.c: Regenerated.
  5469. 2000-01-17 Mark Mitchell <mark@codesourcery.com>
  5470. * class.c (fixed_type_or_null): Don't clear NONNULL. Document
  5471. calling convention.
  5472. (resolves_to_fixed_type_p): Document calling convention.
  5473. * rtti.c (build_x_typeid): Initialize NONNULL.
  5474. * cp-tree.h (build_shared_int_cst): New function.
  5475. * call.c (build_over_call): Use DECL_VIRTUAL_CONTEXT, for clarity.
  5476. * class.c (modify_vtable_entry): Likewise.
  5477. (add_virtual_function): Split out code to generated shared
  5478. INTEGER_CSTs to build_share_int_cst.
  5479. (modify_all_vtables): Handle all the overridden functions here.
  5480. Add overridden functions from non-primary virtual bases to the
  5481. primary vtable.
  5482. (finish_struct_1): Adjust call to modify_all_vtables. Add
  5483. overridden functions from non-primary bases to the vtable.
  5484. * tree.c (build_shared_int_cst): New function.
  5485. * cp-tree.h (scratchalloc): Remove.
  5486. (build_scratch_list): Likewise.
  5487. * call.c (convert_class_to_reference): Replace build_scratch_list
  5488. and build_expr_list with build_tree_list.
  5489. (add_candidate): Replace scratchalloc with expralloc. Note memory
  5490. leak.
  5491. (build_user_type_conversion_1): Replace build_scratch_list
  5492. and build_expr_list with build_tree_list.
  5493. (build_new_op): Likewise.
  5494. (build_op_delete_call): Likewise.
  5495. (convert_like): Likewise.
  5496. * cvt.c (ocp_convert): Likewise.
  5497. * decl.c (start_decl): Likewise.
  5498. (start_function): Likewise.
  5499. (finish_destructor_body): Likewise.
  5500. (maybe_build_cleanup_1): Likewise.
  5501. * decl2.c (reparse_decl_as_expr): Likewise.
  5502. * init.c (perform_member_init): Likewise.
  5503. (expand_cleanup_for_base): Likewise.
  5504. (build_builtin_delete_call): Likewise.
  5505. (build_new_1): Likewise.
  5506. (build_delete): Likewise.
  5507. * method.c (do_build_assign_ref): Likewise.
  5508. * parse.y (already_scoped_stmt): Likewise.
  5509. (nontrivial_exprlist): Likewise.
  5510. (net_initializer): Likewise.
  5511. (initlist): Likewise.
  5512. * parse.c: Regenerated.
  5513. * rtti.c (build_x_typeid): Likewise.
  5514. (build_dynamic_cast_1): Likewise.
  5515. * typeck.c (build_x_compound_expr): Likewise.
  5516. (build_static_cast): Likewise.
  5517. (build_modify_expr): Likewise.
  5518. * cp-tree.h (DECL_VINDEX): Add documentation.
  5519. * class.c (build_vtable_entry): Likewise.
  5520. (start_vtable): Add comment.
  5521. (add_virtual_function): Replace pending_hard_virtuals with
  5522. overridden_virtuals and pending_virtuals with new_virtuals.
  5523. Replace redundant assignments with assertions.
  5524. (check_for_override): Add comment.
  5525. (check_bases_and_members): Replace pending_hard_virtuals with
  5526. overridden_virtuals and pending_virtuals with new_virtuals.
  5527. (create_vtbl_ptr): Likewise.
  5528. (layout_class_type): Likewise.
  5529. (finish_struct_1): Likewise. Add comments.
  5530. 2000-01-16 Mark Mitchell <mark@codesourcery.com>
  5531. * class.c (finish_struct_1): Replace redundant code with
  5532. assertions.
  5533. * cp-tree.h (flag_new_abi): Move.
  5534. (flag_use_cxa_atexit): Likewise.
  5535. (flag_honor_std): Likewise.
  5536. (flag_rtti): Likewise.
  5537. (vbase_offsets_in_vtable_p): Define.
  5538. (vptrs_present_everywhere_p): Likewise.
  5539. (TYPE_CONTAINS_VPTR_P): Likewise.
  5540. (dfs_walk_real): Declare.
  5541. * class.c (build_vbase_pointer_fields): Check
  5542. vbase_offsets_in_vtable_p.
  5543. (dfs_build_vbase_offset_vtbl_entries): Record the vbase indices in
  5544. BINFO_VPTR_FIELD.
  5545. (build_vbase_offset_vtbl_entries): Simplify.
  5546. (build_vbase_offset_vtbl_entries): Adjust.
  5547. (build_vbase_pointer): Add ability to look up vbase offsets in
  5548. vtable.
  5549. (start_vtable): New function.
  5550. (add_virtual_function): Use it.
  5551. (determine_primary_base): Use TYPE_CONTAINS_VPTR_P.
  5552. (num_extra_vtbl_entries): Use vbase_offsets_in_vtable_p.
  5553. (build_vtbl_initializer): Take the type of the complete object as
  5554. input. Use it to correctly calculate vbase offsets.
  5555. (dfs_finish_vtbls): Pass the complete type to
  5556. build_vtbl_initializer.
  5557. (check_bases_and_members): Use TYPE_CONTAINS_VPTR_P.
  5558. (create_vtable_ptr): Create a vtable even if there are no
  5559. new virtual functions, under the new ABI.
  5560. (finish_struct_1): Likewise.
  5561. (get_vfield_name): Use TYPE_CONTAINS_VPTR_P.
  5562. * decl.c (exapnd_static_init): Remove call to
  5563. preserve_initializer.
  5564. * decl2.c (mark_vtable_entries): Tweak to handle vbase offsets in
  5565. vtables.
  5566. * init.c (initialize_vtbl_ptrs): Initialize them in pre-order.
  5567. (expand_virtual_init): Use vbase_offsets_in_vtable_p.
  5568. (construct_virtual_bases): Don't initialize virtual base pointers
  5569. under the new ABI.
  5570. (build_aggr_init): Clean up comment.
  5571. (expand_aggr_init_1): Likewise.
  5572. * rtti.c (expand_class_desc): Store the virtual function table
  5573. index where the vbase offset lives in the offset field.
  5574. * search.c (dfs_walk_real): Make it global.
  5575. (dfs_debug_mark): Use TYPE_CONTAINS_VPTR_P.
  5576. * tree.c (make_binfo): Don't clear BINFO_VPTR_FIELD.
  5577. * tinfo.h (USItype): Make it signed under the new ABI.
  5578. * tinfo.cc (convert_to_base): New function. Encapsulate base
  5579. conversion logic here.
  5580. (__class_type_info::do_upcast): Use it.
  5581. (__class_type_info::do_dyncast): Likewise.
  5582. (__class_type_info::do_find_public_subobj): Likewise.
  5583. * init.c (construct_virtual_bases): Don't look up the addresses of
  5584. virtual bases at run-time.
  5585. * class.c (build_vbase_pointer): Relocate.
  5586. (build_vbase_pointer_fields): Likewise.
  5587. (dfs_build_vbase_offset_vtbl_entries): Likewise.
  5588. (build_vbase_offset_vtbl_entries): Likewise.
  5589. * decl.c (init_decl_processing): Complain if -fnew-abi
  5590. -fno-vtable-thunks is used.
  5591. * decl2.c (lang_decode_option): Don't couple flag_honor_std to
  5592. flag_new_abi.
  5593. 2000-01-15 Mark Mitchell <mark@codesourcery.com>
  5594. * cp-tree.h (num_extra_vtbl_entries): New function.
  5595. (size_extra_vtbl_entries): Likewise.
  5596. (dfs_vtable_path_unmark): Likewise.
  5597. (dfs_vtable_path_unmarked_real_bases_queue_p): Likewise.
  5598. (dfs_vtable_path_marked_real_bases_queue_p): Likewise.
  5599. * class.c (num_extra_vtbl_entries): New function.
  5600. (size_extra_vtbl_entries): Likewise.
  5601. (dfs_build_vbase_offset_vtbl_entries): New function.
  5602. (build_vbase_offset_vtbl_entries): Likewise.
  5603. (build_vtbl_initializer): Use it.
  5604. (finish_struct_1): Adjust vtable sizes (using
  5605. num_extra_vtbl_entries).
  5606. * expr.c (cplus_expand_expr): Assert that the DECL_RTL for a
  5607. THUNK_DECL is non-NULL before expanding it.
  5608. * init.c (expand_virtual_init): Adjust the vtable pointer by
  5609. size_extra_vtbl_entries before storing it.
  5610. * search.c (get_shared_vase_if_not_primary): Adjust prototype.
  5611. Handle TREE_LIST parameters here, not in the dfs_* functions.
  5612. (dfs_unmarked_real_bases_queue_p): Adjust.
  5613. (dfs_marked_real_bases_queue_p): Likewise.
  5614. (dfs_vtable_path_unmarked_real_bases_queue_p): New function.
  5615. (dfs_vtable_path_marked_real_bases_queue_p): New function.
  5616. (dfs_vtable_path_unmark): Likewise.
  5617. 2000-01-14 Mark Mitchell <mark@codesourcery.com>
  5618. * optimize.c (copy_body_r): Clear the operand three of a
  5619. TARGET_EXPR when copying it.
  5620. 2000-01-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  5621. * method.c (build_decl_overload_real): Check whether we are in ::
  5622. before returning __builtin_new/delete.
  5623. 2000-01-13 Mark Mitchell <mark@codesourcery.com>
  5624. * pt.c (tsubst_friend_function): Improve comment.
  5625. (instantiate_decl): Avoid crashing when a "nested" function is
  5626. instantiated from the top level.
  5627. * dump.c (dqeueue_and_dump): Dump
  5628. DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION.
  5629. 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  5630. * call.c: If GATHER_STATISTICS, declare `n_build_method_call'.
  5631. 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
  5632. * g++spec.c (lang_specific_driver): Add -fnew-abi if
  5633. ENABLE_NEW_GXX_ABI defined.
  5634. * Make-lang.in (tinfo.o, tinfo2.o, exception.o, new.o,
  5635. opnew.o, opnewnt.o, opvnew.o, opvnewnt.o, opdel.o, opdelnt.o,
  5636. opvdel.o, opvdelnt.o): Use GXX_ABI_FLAG switch.
  5637. 2000-01-12 Mark Mitchell <mark@codesourcery.com>
  5638. * decl.c (start_cleanup_fn): Call pushdecl.
  5639. * call.c (convert_class_to_reference): Fix typos.
  5640. (build_conditional_expr): Handle errors gracefully.
  5641. * class.c (push_nested_class): Likewise.
  5642. * cp-tree.h (VAR_FUNCTION_OR_PARM_DECL_CHECK): New macro.
  5643. (DECL_THIS_EXTERN): Use it.
  5644. (DECL_THIS_STATIC): Likewise.
  5645. * cvt.c (convert_to_void): Handle errors gracefully.
  5646. (build_expr_type_conversion): Likewise.
  5647. * decl.c (maybe_push_decl): Likewise.
  5648. (start_decl_1): Likewise.
  5649. (require_complete_types_for_parms): Likewise.
  5650. * parse.y (structsp): Likewise.
  5651. (base_class): Likewise.
  5652. * parse.c: Regenerated.
  5653. * pt.c (finish_member_template_decl): Likewise.
  5654. * typeck.c (decay_conversion): Likewise.
  5655. * cp-tree.h (dfs_skip_vbases): New function.
  5656. (find_vbase_instance): Likewise.
  5657. * class.c (determine_primary_base): Allow a nearly empty base to
  5658. serve as a primary base class under the new ABI.
  5659. (get_class_offset_1): Rename to ...
  5660. (dfs_get_class_offset): ... this. Simplify. Don't issue error
  5661. messages here.
  5662. (get_class_offset): Use it. Issue error messages here.
  5663. (dfs_modify_vtables): Rely on dfs_unmarked_real_bases_queue_p to
  5664. find the right copies of virtual bases.
  5665. (fixup_vtable_deltas1): Rename to ...
  5666. (dfs_fixup_vtable_deltas): ... this. Adjust to handle virtual
  5667. bases as primary bases.
  5668. (fixup_vtable_deltas): Remove.
  5669. (override_one_vtable): Handle virtual bases as primary bases.
  5670. (merge_overrides): Likewise.
  5671. (finish_struct_1): Likewise.
  5672. (dump_class_hierarchy): Dump primary-ness of bases as well.
  5673. * search.c (mark_primary_bases): Use a pre-order traversal to
  5674. handle primary virtual bases.
  5675. (dfs_skip_vbases): New fiunction.
  5676. (expand_upcast_fixups): Adjust to handle primary virtual bases.
  5677. (fixup_virtual_upcast_offsets): Likewise.
  5678. (fixup_all_virtual_upcast_offsets): Likewise.
  5679. (dfs_find_vbase_instances): New function.
  5680. (find_vbase_instance): Likewise.
  5681. 2000-01-11 Mumit Khan <khan@xraylith.wisc.edu>
  5682. * lex.c (DIR_SEPARATOR): Delete macro.
  5683. 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
  5684. * decl2.c (lang_decode_option): Handle automatic line wrapping
  5685. option.
  5686. 2000-01-11 Mark Mitchell <mark@codesourcery.com>
  5687. * friend.c (do_friend): Don't resolve scopes when processing
  5688. template declarations, even if the qualifying scope doesn't
  5689. involve template parameters.
  5690. 2000-01-10 Mark Mitchell <mitchell@dumbledore.codesourcery.com>
  5691. * class.c (dfs_modify_vtables_queue_p): Remove.
  5692. (modify_all_vtables): Use dfs_unmarked_real_bases_queue_p
  5693. and dfs_marked_real_bases_queue_p instead of
  5694. dfs_modify_vtables_queue_p.
  5695. * class.c (build_vbase_path): Simplify.
  5696. (dfs_propagate_binfo_offsets): New function.
  5697. (propagate_binfo_offsets): Use it.
  5698. (remove_base_field): Simplify.
  5699. (dfs_set_offset_for_vbases): Remove.
  5700. (dfs_set_offset_for_shared_vbases): New function.
  5701. (dfs_set_offset_for_unshared_vbases): Likewise.
  5702. (layout_virtual_bases): Use them.
  5703. (layout_basetypes): Don't call propagate_binfo_offsets.
  5704. * search.c (dfs_get_vbase_types): Clone completely fresh binfos
  5705. for the vbases.
  5706. * class.c (build_base_field): New function, split out from ...
  5707. (build_base_fields): ... here. Use it. Allocate primary bases
  5708. first, under the new ABI.
  5709. (get_vtable_entry): Remove.
  5710. (remove_base_field): New function, split out from ...
  5711. (remove_base_fields): ... here. Adjust since primary bases come
  5712. first under the new ABI.
  5713. * cp-tree.h (expand_direct_vtbls_init): Remove declaration.
  5714. (initialize_vtbl_ptrs): New function.
  5715. (expand_indirect_vtbls_init): Change prototype.
  5716. (convert_pointer_to_vbase): Declare.
  5717. * init.c (expand_direct_vtbls_init): Remove.
  5718. (dfs_initialize_vtbl_ptrs): New function.
  5719. (initialize_vtbl_ptrs): Likewise.
  5720. (emit_base_init): Use initialize_vtbl_ptrs.
  5721. * search.c (convert_pointer_to_vbase): Make it global.
  5722. (expand_indirect_vtbls_init): Remove vtable initialization code.
  5723. * semantics.c (setup_vtbl_ptr): Use initialize_vtbl_ptrs.
  5724. * class.c (dfs_finish_vtbls): New function.
  5725. (finish_vtbls): Use it.
  5726. (dump_class_hierarchy): New function.
  5727. * cp-tree.h (BINFO_PRIMARY_MARKED_P): Change definition.
  5728. (BINFO_VBASE_PRIMARY_P): New macro.
  5729. (BINFO_VIRTUALS): Add to documentation.
  5730. (SET_BINFO_PRIMARY_MARKED_P): Remove.
  5731. (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
  5732. (dfs_mark_primary_bases_queue_p): Likewise.
  5733. (dfs_unmarked_real_bases_queue_p): New function.
  5734. (dfs_marked_real_bases_queue_p): Likewise.
  5735. * search.c (dfs_mark_primary_bases): Adjust.
  5736. (mark_primary_bases): Likewise.
  5737. (get_shared_vbase_if_not_primary): New function.
  5738. (dfs_unmarked_real_bases_queue_p): Likewise.
  5739. (dfs_marked_real_bases_queue_p): Likewise.
  5740. (dfs_get_pure_virtuals): Simplify.
  5741. (get_pure_virtuals): Likewise.
  5742. 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  5743. * lex.c: Include tm_p.h.
  5744. 2000-01-07 Nathan Sidwell <sidwell@codesourcery.com>
  5745. * lang-specs.h (__GXX_ABI_VERSION): New preprocessor macro.
  5746. 2000-01-06 Jason Merrill <jason@casey.cygnus.com>
  5747. * decl2.c (comdat_linkage): Don't set DECL_DEFER_OUTPUT.
  5748. * pt.c (instantiate_decl): Defer comdat templates that might not be
  5749. needed.
  5750. * cp-tree.h (DECL_NEEDED_P): Also true if !DECL_COMDAT.
  5751. * decl2.c (finish_vtable_vardecl): Don't check !DECL_COMDAT.
  5752. (finish_file): Likewise.
  5753. * decl2.c (import_export_class): Undo 12/14 change.
  5754. * error.c (dump_decl): operator new, not operatornew.
  5755. * class.c (field_decl_cmp): A nontype is "greater" than a type.
  5756. * search.c (lookup_field_1): Look for the last field with the
  5757. desired name.
  5758. 2000-01-05 Nathan Sidwell <nathan@acm.org>
  5759. * decl2.c (lookup_arg_dependent): Deal with FNS not being a
  5760. FUNCTION_DECL.
  5761. 2000-01-05 Nathan Sidwell <nathan@acm.org>
  5762. * typeck.c (build_static_cast): Don't strip target qualifiers
  5763. when casting from a class.
  5764. 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  5765. * class.c (warn_hidden): Initialize variable `fndecl'.
  5766. 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
  5767. * decl.c (flag_isoc9x): New variable to be able to use code in
  5768. c-common.c. For now always zero.
  5769. 2000-01-03 Mark Mitchell <mark@codesourcery.com>
  5770. * cp-tree.h (CLASSTYPE_VBASECLASSES): Improve documentation.
  5771. * class.c (layout_basetypes): Don't set BINFO_INHERITANCE_CHAIN
  5772. or unshare_base_binfos for virtual bases here.
  5773. * search.c (dfs_get_vbase_types): Do it here.
  5774. (get_vbase_types): Adjust.
  5775. 2000-01-02 Mark Mitchell <mark@codesourcery.com>
  5776. * cp-tree.h (CLASSTYPE_VFIELDS): Move definition.
  5777. (BINFO_PRIMARY_MARKED_P): Use flag 5.
  5778. (SET_BINFO_PRIMARY_MARKED_P): Likewise.
  5779. (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
  5780. (unmark_primary_bases): Remove declaration.
  5781. (unmarkedp): Declare.
  5782. (dfs_vbase_unmark): Likewise.
  5783. * class.c (determine_primary_base): Return immediately if there
  5784. are no base classes. Call mark_primary_bases here.
  5785. (modify_all_direct_vtables): Remove.
  5786. (modify_all_indirect_vtables): Remove.
  5787. (dfs_modify_vtables_queue_p): New function.
  5788. (dfs_modify_vtables): New function.
  5789. (modify_all_vtables): Use them.
  5790. (build_base_fields): Build FIELD_DECLs for primary virtual base
  5791. classes.
  5792. (create_vtable_ptr): Don't call determine_primary_base here.
  5793. (dfs_mark_primary_bases_and_set_vbase_offsets): Rename to ...
  5794. (dfs_set_offset_for_vbases): ... this.
  5795. (layout_virtual_bases): Use it.
  5796. (layout_class_type): Call determine_primary_base here.
  5797. * search.c (unmarkedp): Make it global.
  5798. (shared_marked_p): Simplify.
  5799. (shared_unmarked_p): Likewise.
  5800. (dfs_primary_bases_queue_p): Remove.
  5801. (dfs_unmark_primary_bases): Likewise.
  5802. (unmark_primary_bases): Likewise.
  5803. (mark_primary_bases): Simplify.
  5804. (get_pure_virtuals): Don't call mark_primary_bases here.
  5805. (dfs_vbase_unmark): New function.
  5806. (get_vbase_types): Simplify.
  5807. * class.c (struct base_info): Remove.
  5808. (determine_primary_base): Take has_virtual_p rather than a
  5809. base_info as input. Don't calculate max_has_virtual.
  5810. (finish_struct_bits): Remove max_has_virtual argument.
  5811. (create_vtable_ptr): Remove max_has_virtual_p argument.
  5812. (layout_virtual_bases): Remove max argument.
  5813. (layout_basetypes): Likewise.
  5814. (layout_class_type): Remove max_has_virtual_p argument.
  5815. (finish_struct_1): Remove max_has_virtual.
  5816. * cp-tree.h (dfs_mark_primary_bases_queue_p): New function.
  5817. (layout_basetypes): Remove.
  5818. * class.c (propagate_binfo_offsets): Moved here from tree.c.
  5819. Update to handle primary virtual bases.
  5820. (remove_base_fields): New function, split out from
  5821. layout_basetypes.
  5822. (dfs_mark_primary_bases_and_set_vbase_offsets): New function.
  5823. (layout_virtual_bases): New function, split out from
  5824. layout_basetypes. Update to handle primary virtual bases.
  5825. (layout_basetypes): Moved here from tree.c. Use
  5826. remove_base_fields and layout_virtual_bases.
  5827. * search.c (dfs_mark_primary_bases_queue_p): New function.
  5828. (mark_primary_bases): Use it.
  5829. * tree.c (CEIL): Remove.
  5830. (propagate_binfo_offsets): Remove.
  5831. (layout_basetypes): Remove.
  5832. 2000-01-01 Mark Mitchell <mark@codesourcery.com>
  5833. * cp-tree.h (CLASSTYPE_N_BASECLASSES): Use BINFO_N_BASETYPES.
  5834. (BINFO_PRIMARY_MARKED_P): New macro.
  5835. (SET_BINFO_PRIMARY_MARKED_P): Likewise.
  5836. (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
  5837. (mark_primary_bases): New function.
  5838. (unmark_primary_bases): Likewise.
  5839. * search.c (get_abstract_virtuals_1): Remove.
  5840. (dfs_mark_primary_bases): New function.
  5841. (mark_primary_bases): Likewise.
  5842. (dfs_unmark_primary_bases): Likewise.
  5843. (unmark_primary_bases): Likewise.
  5844. (dfs_get_pure_virtuals): Likewise.
  5845. 2000-01-01 Mark Mitchell <mark@codesourcery.com>
  5846. * cp-tree.h (skip_rtti_stuff): Adjust prototype.
  5847. * class.c (skip_rtti_stuff): Reorganize parameters and return value.
  5848. (modify_one_vtable): Adjust.
  5849. (fixup_vtable_deltas1): Likewise.
  5850. (override_one_vtable): Likewise.
  5851. * search.c (get_abstract_virtuals_1): Likewise.
  5852. (get_pure_virtuals): Likewise.
  5853. (expand_upcast_fixups): Likewise.
  5854. * tree.c (debug_binfo): Likewise.
  5855. * class.c (build_vtable): Don't return a value. Don't rebuild
  5856. vtables for bases that have already been handled.
  5857. (prepare_fresh_vtable): Don't rebuild vtables for bases that have
  5858. already been handled.
  5859. (modify_one_vtable): Adjust accordingly.
  5860. (fixup_vtable_deltas1): Likewise.
  5861. (finish_struct_1): Likewise.
  5862. 2000-01-01 Martin v. Löwis <loewis@informatik.hu-berlin.de>
  5863. * call.c (build_new_method_call): Also check destructors.
  5864. Copyright (C) 2000 Free Software Foundation, Inc.
  5865. Copying and distribution of this file, with or without modification,
  5866. are permitted in any medium without royalty provided the copyright
  5867. notice and this notice are preserved.