ChangeLog-1994 194 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413
  1. Fri Dec 30 17:57:30 1994 Mike Stump <mrs@cygnus.com>
  2. * gc.c (build_bltn_desc): Handle bool as a built-in type.
  3. Fri Dec 30 14:20:21 1994 Mike Stump <mrs@cygnus.com>
  4. * tree.c (layout_vbasetypes): Ensure that we don't loose alignment
  5. on the complete type because of small virtual bases.
  6. Fri Dec 30 12:22:29 1994 Mike Stump <mrs@cygnus.com>
  7. * decl.c (n_incomplete): Bump n_incomplete up to int to match C
  8. front end.
  9. (pushdecl): Also count decls pushed that are of a type being defined
  10. as incomplete things.
  11. * class.c (finish_struct): Move hack_incomplete_structures up to
  12. just after we set it as not being defined, so that the decls we
  13. build for RTTI don't count as incomplete.
  14. Thu Dec 29 18:20:57 1994 Mike Stump <mrs@cygnus.com>
  15. * pt.c (tsubst): Fix problem with defining constructors in templated
  16. classes with virtual bases.
  17. Wed Dec 28 08:31:00 1994 Mike Stump <mrs@cygnus.com>
  18. * parse.y (TYPEID): Strip top-level cv-qualifiers on typeid
  19. expressions.
  20. * gc.c (build_typeid): Likewise.
  21. Thu Dec 22 17:26:33 1994 Mike Stump <mrs@cygnus.com>
  22. * cvt.c (build_up_reference): Fix breakage introduced on Nov 29,
  23. don't assert on complex AGGR inits.
  24. Thu Dec 22 14:32:31 1994 Mike Stump <mrs@cygnus.com>
  25. * method.c (build_overload_value): Handle pointer to members as
  26. template arguments.
  27. Thu Dec 22 13:09:07 1994 Mike Stump <mrs@cygnus.com>
  28. * typeck.c (unary_complex_lvalue): Don't call sorry if we know how
  29. to do take the address of a data member for a pointer to data
  30. member.
  31. Thu Dec 22 10:04:19 1994 Mike Stump <mrs@cygnus.com>
  32. * decl.c (grokdeclarator): Use the typedef name for linkage if the
  33. type doesn't otherwise have a name.
  34. * decl2.c (grokfield): Likewise.
  35. * class.c (finish_struct): Since we reuse the TYPE_DECL for the
  36. DECL_NAME of enums, structs and classes, we have to avoid trying to
  37. put it in the TYPE_FIELDS again.
  38. Wed Dec 21 11:07:05 1994 Mike Stump <mrs@cygnus.com>
  39. * decl2.c (check_classfn): Ignore this parameter on static functions
  40. when checking to see if we match.
  41. Tue Dec 20 17:47:02 1994 Mike Stump <mrs@cygnus.com>
  42. * typeck.c (unary_complex_lvalue): Handle address of non-left most
  43. pointers to members by calling get_delta_difference.
  44. Mon Dec 19 22:40:53 1994 Mike Stump <mrs@cygnus.com>
  45. * decl2.c (check_classfn): Don't use decls_match yet, as it modifies
  46. static functions to early.
  47. Thu Dec 19 22:37:48 1994 Mike Stump <mrs@cygnus.com>
  48. * method.c (make_thunk): Handle encoding of positive thunk offsets.
  49. Sat Dec 17 13:29:50 1994 Doug Evans <dje@canuck.cygnus.com>
  50. * Make-lang.in (.PHONY): Tell GNU make C++ and c++ are phony targets.
  51. Thu Dec 15 16:32:12 1994 Mike Stump <mrs@cygnus.com>
  52. * decl2.c (check_classfn): Use decls_match to check if this has
  53. already been declared, as the DECL_ASSEMBLER_NAME may have been
  54. changed via asm("new_name").
  55. * decl.c (decls_match): Make public.
  56. Thu Dec 15 15:17:55 1994 Mike Stump <mrs@cygnus.com>
  57. * *.[chy] (expand_aggr_init): Add fourth argument to handle
  58. distinction between = init and (init) style of initializations.
  59. * *.[chy] (finish_decl): Add fifth argument to handle
  60. distinction between = init and (init) style of initializations.
  61. Tue Dec 13 19:16:05 1994 Mike Stump <mrs@cygnus.com>
  62. Fix some random `explicit' bugs.
  63. * cvt.c (convert_to_reference): Add third parameter to
  64. convert_force.
  65. (convert_force): Likewise.
  66. * call.c (build_method_call): Likewise.
  67. * decl2.c (setup_vtbl_ptr): Likewise.
  68. * init.c (expand_virtual_init): Likewise.
  69. (build_member_call): Likewise.
  70. (build_delete): Likewise.
  71. (build_vbase_delete): Likewise.
  72. * typeck.c (build_component_addr): Likewise.
  73. (build_c_cast): Likewise.
  74. (build_modify_expr): Likewise.
  75. * cp-tree.h (CONV_NONCONVERTING): Likewise. Add so that we can
  76. distinguish the context in which the conversion appears. Add thrid
  77. argument to build_c_cast.
  78. * cvt.c (cp_convert): Pass whether or not we want to consider
  79. non-converting constructors down to build_method_call.
  80. * decl2.c (reparse_absdcl_as_casts): Add third argument to
  81. build_c_cast.
  82. * gc.c (build_m_desc): Likewise.
  83. * init.c (build_new): Likewise.
  84. * parse.y (expr_no_commas): Likewise.
  85. (primary): Likewise.
  86. * typeck.c (build_x_function_call): Likewise.
  87. (build_static_cast): Likewise.
  88. (build_reinterpret_cast): Likewise.
  89. (build_const_cast): Likewise.
  90. (build_c_cast): Likewise.
  91. (build_ptrmemfunc): Likewise.
  92. * typeck2.c (build_functional_cast): Likewise.
  93. * init.c (expand_aggr_init): Added LOOKUP_ONLYCONVERTING to
  94. expand_aggr_init_1 as inits are converted to the destination type.
  95. Tue Dec 13 16:18:57 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  96. * Make-lang.in (cc1plus): Depends on c-pragma.o.
  97. * Makefile.in (OBJ{DEP,}S): Add ../c-pragma.o.
  98. * lex.c (check_newline): If the #pragma is not recognized by g++,
  99. try machine-specific ones too.
  100. (handle_sysv_pragma): Copied from c-lex.c.
  101. Mon Dec 12 23:53:06 1994 Mike Stump <mrs@cygnus.com>
  102. * except.c (expand_throw): Fix Dec 6th change, build_new likes a
  103. reference better.
  104. Mon Dec 12 18:01:00 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  105. * typeck.c (build_binary_op): Lose checks on TYPE_PTRMEMFUNC_P with
  106. IS_AGGR_TYPE, since now they will not both be set on the same type.
  107. * pt.c (do_pending_expansions): Don't clear TREE_PUBLIC on
  108. instantiations controlled by -fexternal-templates.
  109. * decl.c (duplicate_decls): Don't complain about different values of
  110. __attribute__ ((const)) and ((noreturn)).
  111. Fri Dec 9 18:17:37 1994 Doug Evans <dje@cygnus.com>
  112. * Makefile.in (BISONFLAGS): Delete --yacc.
  113. (PARSE_H): Depend on $(PARSE_C), for parallel makes.
  114. (PARSE_C): Undo last patch.
  115. Fri Dec 2 10:44:36 1994 Mike Stump <mrs@cygnus.com>
  116. * Makefile.in (BISONFLAGS): Add --yacc so that output winds up in
  117. y.tab.c.
  118. Thu Dec 8 17:39:46 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  119. * decl.c (finish_decl): Don't call obscure_complex_init for decls
  120. of indeterminate size.
  121. Wed Dec 7 16:49:22 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  122. * decl.c (obscure_complex_init): Function to tweak the decl to
  123. prevent expand_decl from tring to initialize it.
  124. (finish_decl): Use it rather than writing the same code in three
  125. different places.
  126. * parse.y (bad_parm): Stop trying to support parms without types.
  127. Wed Dec 7 12:06:56 1994 Mike Stump <mrs@cygnus.com>
  128. * decl2.c (grokfield): Make asm specs on static member functions
  129. work.
  130. Tue Dec 6 15:43:20 1994 Mike Stump <mrs@cygnus.com>
  131. * except.c (expand_throw): Make a copy of the thrown object.
  132. Tue Dec 6 14:16:34 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  133. * parse.y: : Has lower precedence than =.
  134. Tue Dec 6 12:46:17 1994 Mike Stump <mrs@cygnus.com>
  135. * decl.c (pushdecl): Use DECL_NAME of VAR_DECLs to avoid namespace
  136. manglings.
  137. (grokvardecl): Add namespace into variable name.
  138. Tue Dec 6 11:26:55 1994 Mike Stump <mrs@cygnus.com>
  139. * decl2.c (current_namespace_id): New routine to transform a simple
  140. name into a name in a namespace.
  141. * decl.c (grokdeclarator): Use it.
  142. * decl2.c (get_namespace_id): Find the name of the current
  143. namespace.
  144. (push_namespace, pop_namespace): Complete out missing
  145. functionality.
  146. Mon Dec 5 17:11:51 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  147. * class.c (finish_struct): Don't use LONG_LONG_TYPE_SIZE, as it may
  148. not be defined. Fix warning message for enums and restore warning
  149. for non-enums.
  150. * decl2.c (push_namespace): Dummy function.
  151. (pop_namespace): Likewise.
  152. (do_namespace_alias): Likewise.
  153. (do_using_decl): Likewise.
  154. (do_using_directive): Likewise.
  155. * parse.y: New token NSNAME for namespace names.
  156. (extdef): Add namespace, using definitions.
  157. (using_decl): New rule for using declarations.
  158. (any_id): New rule for identifiers with any degree of scoping.
  159. (identifier): Add NSNAME.
  160. (notype_identifier): Likewise.
  161. (component_decl): Add using_decl.
  162. (nested_name_specifier): Add NSNAME SCOPE.
  163. * typeck.c (convert_for_assignment): Handle conversions between
  164. enums and bool.
  165. * decl.c (duplicate_decls): Only propagate DECL_MAIN_VARIANT on
  166. FUNCTION_DECLs.
  167. Mon Dec 5 13:03:16 1994 Mike Stump <mrs@cygnus.com>
  168. * class.c (finish_struct): Give an error if one tries to declare a
  169. bit-field's size greater than a long long, as the backend will dump.
  170. It is not an error to declare an enum bit-field greater than its
  171. precision. Warn if an enum bit-field is too small to hold all
  172. its values.
  173. Mon Dec 5 11:41:50 1994 Mike Stump <mrs@cygnus.com>
  174. * typeck.c (convert_for_assignment): Use cp_convert instead of
  175. convert so that we don't get static casts.
  176. Sun Dec 4 11:59:01 1994 Mike Stump <mrs@cygnus.com>
  177. * cvt.c (cp_convert): Don't complain about int->enum conversion if
  178. we are doing static casts.
  179. Fri Dec 2 18:32:41 1994 Mike Stump <mrs@cygnus.com>
  180. * error.c (dump_expr): Do something more intelligent with SAVE_EXPRs
  181. when dumping expressions in error messages.
  182. Fri Dec 2 17:04:27 1994 Mike Stump <mrs@cygnus.com>
  183. * gc.c (build_dynamic_cast): Change interface to libg++, ensure that
  184. the return type is the right type, and make references work.
  185. Fri Dec 2 16:36:43 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  186. * decl.c (poplevel): Don't be confused by function-scope
  187. declarations of non-nested functions.
  188. (duplicate_decls): Propagate DECL_MAIN_VARIANT.
  189. (pushdecl): Use duplicate_decls to copy info from old decl into new
  190. function-scope one rather than doing it here.
  191. * decl2.c (mark_inline_for_output): Deal with the DECL_MAIN_VARIANT
  192. of this decl, in case this is a function-scope declaration.
  193. * decl.c (finish_enum): Make sure that the type has the right
  194. precision when we call fixup_*_type.
  195. Tue Nov 29 19:12:07 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  196. * cvt.c (build_up_reference): Strip superfluous NOP_EXPRs; we do
  197. want to build up references to rvalues if possible.
  198. (cp_convert): Stick on a NOP_EXPR when converting to the same type.
  199. Tue Nov 29 11:28:59 1994 Mike Stump <mrs@cygnus.com>
  200. * parse.y (maybe_raises): Handle throw ().
  201. * parse.y (ansi_raise_identifier): Grok type-ids in exception
  202. specifications.
  203. * tree.c (build_exception_variant): Use list compare to check if
  204. two exception specifications match.
  205. * decl.c (duplicate_decls, bad_specifiers): Enhance wording on error
  206. messages.
  207. * call.c (build_method_call): Remove TREE_RAISES.
  208. * cvt.c (convert_to_aggr): Likewise.
  209. * typeck.c (build_function_call_real, convert_arguments): Likewise.
  210. * init.c (expand_aggr_init_1): Likewise.
  211. Tue Nov 29 09:50:39 1994 Mike Stump <mrs@cygnus.com>
  212. * except.c: Add support for m68k and mips exception handling
  213. support.
  214. Tue Nov 29 08:48:33 1994 Mike Stump <mrs@cygnus.com>
  215. * except.c (expand_end_all_catch): Throw into outer context, if we
  216. fall off end of catch handlers.
  217. Mon Nov 28 16:44:41 1994 Mike Stump <mrs@cygnus.com>
  218. * Makefile.in: Make is easier to decide where parse.[ch] will be
  219. built.
  220. Thu Nov 17 20:11:24 1994 Doug Evans <dje@cygnus.com>
  221. * cp/Make-lang.in (CXX_INSTALL_NAME): Use program_transform_name.
  222. (GXX_INSTALL_NAME): Likewise.
  223. (CXX_CROSS_NAME): Use program_transform_cross_name.
  224. (GXX_CROSS_NAME): Likewise.
  225. (c++.install-man): Use program_transform_name on g++.1.
  226. (c++.uninstall): Likewise.
  227. Mon Nov 28 13:53:03 1994 Mike Stump <mrs@cygnus.com>
  228. * parse.y (THROW): Fix precedence of throw expressions.
  229. Mon Nov 28 13:15:16 1994 Mike Stump <mrs@cygnus.com>
  230. * typeck.c (build_unary_op): Allow promotions from bool to int on
  231. unary ~.
  232. Sun Nov 27 00:16:21 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  233. * method.c (build_overload_name): Use DECL_ASSEMBLER_NAME for
  234. classes when appropriate.
  235. (build_overload_nested_name): When dealing with a function context,
  236. use ASM_FORMAT_PRIVATE_NAME to tweak the name of the function to
  237. avoid conflicts between local classes of the same name.
  238. Wed Nov 23 17:59:42 1994 Mike Stump <mrs@cygnus.com>
  239. * gxx.gperf, parse.y, lex.h, hash.h, lex.c (init_lex), delc.c
  240. (duplicate_decls, grokdeclarator), cp-tree.h: Add support for
  241. `explicit'.
  242. * cvt.c (convert_to_reference, cp_convert, build_type_conversion_1,
  243. build_type_conversion): Use LOOKUP_ONLYCONVERTING in
  244. build_method_calls so that non-converting constructors are not used.
  245. * call.c (build_method_call): If we shouldn't use a non-converting
  246. constructor, then don't.
  247. Wed Nov 23 14:46:56 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  248. * call.c (build_method_call): Don't try to synthesize methods yet.
  249. Tue Nov 22 12:45:21 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  250. * pt.c (push_template_decls): Create CONST_DECLs for template
  251. constant parameters, not VAR_DECLs.
  252. Sat Nov 19 15:28:31 1994 Jim Wilson <wilson@chestnut.cygnus.com>
  253. * typeck.c (build_binary_op_nodefault): Can shorten shift only if
  254. shift count is less than size in bits of arg0.
  255. Thu Nov 17 15:30:50 1994 Mike Stump <mrs@cygnus.com>
  256. * gxx.gperf, hash.h, lex.c (init_lex, real_yylex), parse.y: Add new
  257. ANSI keywords and, and_eq, bitand, bitor, explicit, namespace, not,
  258. not_eq, or, or_eq, typename, using, xor, xor_eq to g++. Still need
  259. to add support for explicit, namespace, typename, and using, support
  260. for the rest is already in.
  261. Fri Nov 4 19:04:18 1994 Mike Stump <mrs@cygnus.com>
  262. * gc.c (get_bad_cast_node): New routine to support compile time
  263. throws of bad_cast.
  264. * gc.c (build_dynamic_cast): Support throwing of bad_cast at compile
  265. time.
  266. Fri Nov 4 11:12:00 1994 Mike Stump <mrs@cygnus.com>
  267. * except.c: Add hppa support.
  268. Fri Nov 4 10:50:50 1994 Mike Stump <mrs@cygnus.com>
  269. * except.c: Add rs6000 support.
  270. Thu Nov 3 14:24:23 1994 Mike Stump <mrs@cygnus.com>
  271. * except.c (do_unwind): Add i[34]86 support.
  272. Thu Nov 3 00:10:46 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  273. * pt.c (do_pending_expansions): Unset TREE_PUBLIC on implicit
  274. instantiations.
  275. Wed Nov 2 15:08:24 1994 Kung Hsu <kung@mexican.cygnus.com>
  276. * decl.c (finish_function): Emit types used in method parameters
  277. into symbol table.
  278. Wed Nov 2 15:05:47 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  279. * pt.c (process_template_parm): Allow pointer to member function
  280. template parameter types.
  281. (uses_template_parms): Handle pointer to member function
  282. CONSTRUCTORs.
  283. * g++.c (main): Cast first argument of bzero to (char *).
  284. Pass -lstdc++ instead of -lg++ unless we are invoked as 'g++'.
  285. Mon Oct 31 14:50:48 1994 Kung Hsu <kung@mexican.cygnus.com>
  286. * gc.c (build_dynamic_cast): Rewrite to make it work.
  287. * class.c (finish_vtbls): Build more vtables if flag_rtti is on.
  288. * class.c (modify_all_direct_vtables): Likewise.
  289. * init.c (expand_direct_vtbls_init): Expand more vtables if
  290. flag_rtti is on.
  291. * decl.c (init_type_desc): Add default return.
  292. Tue Oct 25 17:13:09 1994 Kung Hsu <kung@mexican.cygnus.com>
  293. * tree.c (debug_binfo): Get rid of the initial size entry of
  294. vtable.
  295. * cp-tree.h: Change flag_dossier to flag rtti, define type
  296. descriptor type nodes.
  297. * decl.c (init_type_desc): New function to initialize type
  298. descriptor type nodes.
  299. * decl.c (record_builtin_type): Change flag_dossier to flag_rtti.
  300. * lex.c (init_lex): Likewise.
  301. * decl.c: Change variable flag_dossier to flag_rtti.
  302. * decl.c (duplicate_decls): Get rid initial size entry of vtable.
  303. * decl.c (hack_incomplete_structures): Take out assert 164.
  304. * search.c (get_abstract_virtuals_1): Likewise.
  305. * search.c (dfs_init_vbase_pointers): Change CLASSTYPE_DOSSIER to
  306. CLASSTYPE_RTTI.
  307. * parse.y: Likewise.
  308. * class.c (prepare_fresh_vtable): For virtual bases, get right
  309. offset.
  310. * class.c (add_virtual_function): Change flag_dossier to
  311. flag_rtti.
  312. * class.c (modify_one_vtable): Modify the right rtti entry.
  313. * class.c (override_one_vtable): Get rid of size entry.
  314. * class.c (finish_struct): Change flag_dossier to flag_rtti, and
  315. build extra vtables, build type descriptors for polymorphic
  316. classes.
  317. * gc.c (build_headof): Make headof() works correctly with new
  318. rtti.
  319. * gc.c (build_typeid): Make this function work with new rtti.
  320. * gc.c (get_typeid): Make this function work with new rtti.
  321. * gc.c (build_bltn_desc): New function for new rtti.
  322. * gc.c (build_user_desc): Likewise.
  323. * gc.c (build_class_desc): Ditto.
  324. * gc.c (build_ptr_desc): Ditto.
  325. * gc.c (build_attr_desc): Ditto.
  326. * gc.c (build_func_desc): Ditto.
  327. * gc.c (build_ptmf_desc): Ditto.
  328. * gc.c (build_ptmd_desc): Ditto.
  329. * gc.c (build_t_desc): Ditto.
  330. * gc.c: Comment out old build_t_desc, build_i_desc, build_m_desc.
  331. Tue Oct 25 13:37:41 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  332. * call.c (convert_harshness): Check for TREE_UNSIGNED differences
  333. after checking for integral conversions.
  334. Wed Nov 30 19:13:50 1994 Mike Stump <mrs@cygnus.com>
  335. * Version 2.6.3 released.
  336. Thu Nov 17 10:56:50 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  337. * typeck2.c (build_m_component_ref): Check the basetype of the
  338. member pointer against the main variant of the object type.
  339. Mon Nov 14 14:21:52 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  340. * cvt.c (convert_to_reference): Make sure that the original expr
  341. gets its type back when converting a reference.
  342. * method.c (build_overload_name): Clear numeric_outputed_need_bar here.
  343. (build_decl_overload): Instead of here.
  344. Tue Nov 8 17:11:24 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  345. * cvt.c (cp_convert): Don't build a TARGET_EXPR if we're not in a
  346. function.
  347. * typeck.c (convert_for_initialization): Handle initialization from
  348. a TARGET_EXPR.
  349. Sun Nov 6 01:34:24 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  350. * pt.c (lookup_nested_type_by_name): Fix list-walking logic.
  351. (tsubst): When replacing a TEMPLATE_TYPE_PARM, propagate
  352. TYPE_READONLY and TYPE_VOLATILE from the argument.
  353. (unify): When unifying with a TEMPLATE_TYPE_PARM, remove cv-quals
  354. present in parm from arg.
  355. (type_unification): Strip REFERENCE_TYPE from the argument type.
  356. (unify): Don't strip REFERENCE_TYPE from the argument type.
  357. Sat Nov 5 22:42:15 1994 Greg McGary <gkm@magilla.cichlid.com>
  358. * pt.c (do_type_instantiation): Check to see if there's a
  359. IDENTIFIER_TEMPLATE on a class before calling
  360. instantiate_member_templates().
  361. Sat Nov 12 06:35:42 1994 Mike Stump <mrs@cygnus.com>
  362. * Version 2.6.2 released.
  363. Thu Nov 3 18:48:19 1994 Paul Eggert <eggert@twinsun.com>
  364. * Makefile.in (spew.o, lex.o, pt.o):
  365. Depend on $(srcdir)/parse.h, not parse.h.
  366. Tue Nov 1 19:19:41 1994 Mike Stump <mrs@cygnus.com>
  367. * Version 2.6.1 released.
  368. Sun Oct 23 13:19:55 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  369. * decl2.c: Declare flag_access_control.
  370. (struct lang_f_options): Add access-control.
  371. * expr.c (cplus_expand_expr, NEW_EXPR): Unset flag_access_control
  372. for the call to expand_aggr_init to copy the object out of the
  373. pcc_struct_return slot.
  374. * search.c (compute_access): if (!flag_access_control) return
  375. access_public.
  376. Fri Oct 21 00:32:54 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  377. * lex.c (cons_up_default_function): Don't try to defer method
  378. synthesis now.
  379. * decl.c (init_decl_processing): Use __pure_virtual for abort_fndecl
  380. instead of abort, since the OSF/1 dynamic linker doesn't like to see
  381. relocation entries for abort.
  382. * tree.c (array_type_nelts_total): Use sizetype, not
  383. integer_type_node.
  384. (array_type_nelts_top): Likewise.
  385. Thu Oct 20 15:48:27 1994 Mike Stump <mrs@cygnus.com>
  386. * decl.c (grokdeclarator): Added handling for catch parameters
  387. (CATCHPARM).
  388. * except.c (expand_start_catch_block): Use the new CATCHPARM context
  389. instead of NORMAL.
  390. * except.c (expand_throw): Don't let convert_to_reference complain
  391. about what we are doing.
  392. Thu Oct 20 12:55:24 1994 Jim Wilson <wilson@cygnus.com>
  393. * method.c (emit_thunk): Call instantiate_virtual_regs.
  394. Wed Oct 19 14:15:33 1994 Mike Stump <mrs@cygnus.com>
  395. * except.c (expand_exception_blocks): Make sure throw code doesn't
  396. get put in function that won't be output.
  397. Mon Oct 17 18:03:15 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  398. * decl.c (init_decl_processing): Make alloca a builtin.
  399. Thu Oct 27 21:10:25 1994 Craig Burley <craig@burley>
  400. * g++.c (main): Only decrement "added" and set "library" to
  401. NULL when "library" != NULL (just like 940829 fix).
  402. Mon Oct 17 15:56:11 1994 Mike Stump <mrs@cygnus.com>
  403. * except.c (expand_start_catch_block): Make sure the false label
  404. gets onto the permanent obstack, as it is used for the exception
  405. table.
  406. Fri Oct 14 18:54:48 1994 Mike Stump <mrs@cygnus.com>
  407. * class.c (modify_one_vtable): Since the DECL_CONTEXT of fndecl can
  408. be set just below, use current_fndecl instead.
  409. Fri Oct 14 15:12:22 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  410. * init.c (expand_aggr_vbase_init_1): Don't call expand_aggr_init_1
  411. with LOOKUP_SPECULATIVELY.
  412. (expand_default_init): Abort if build_method_call returns NULL_TREE.
  413. * typeck.c (build_modify_expr): Don't just build a MODIFY_EXPR if
  414. the rhs is a TARGET_EXPR.
  415. * parse.y (left_curly): Anonymous types are not affected by #pragma
  416. interface/implementation.
  417. * method.c (synthesize_method): Don't call setup_vtbl_ptr for the
  418. default constructor if it isn't needed.
  419. * lex.c (cons_up_default_function): Do synthesize methods for
  420. anonymous types if necessary.
  421. Thu Oct 13 17:44:55 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  422. * method.c (build_decl_overload): Set numeric_outputed_need_bar to 0.
  423. Wed Oct 12 13:27:57 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  424. * typeck.c (build_modify_expr): Understand how to copy an aggregate.
  425. * init.c (expand_default_init): Likewise. Also remove some of the
  426. crufty code that assumes methods will not be synthesized properly.
  427. * lex.c (cons_up_default_function): If the containing type has no
  428. name, these functions should never need to be called, so just
  429. declare them.
  430. * lex.c (real_yylex): Use HOST_BITS_PER_WIDE_INT to determine the
  431. bitmask for lexing character constants.
  432. * call.c (build_method_call): Disable code that tries to do tricky
  433. stuff with a default parameter that is a constructor call, but
  434. actually does other tricky stuff that breaks things.
  435. Wed Oct 12 16:14:01 1994 Benoit Belley <belley@cae.ca>
  436. * decl.c (finish_enum): Disable code which forces enums to be signed,
  437. since this conflicts with their use as bitfields. type_promotes_to
  438. handles promotion of enums of underlying unsigned types to signed
  439. integer types.
  440. Wed Oct 12 13:24:03 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  441. * cvt.c (type_promotes_to): Also promote enums to long if
  442. appropriate.
  443. * typeck.c (default_conversion): Don't expect type_promotes_to to
  444. return a main variant.
  445. Wed Oct 12 12:19:45 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  446. * call.c (build_scoped_method_call): Don't lose side effects in the
  447. object expression when calling a non-existent destructor.
  448. Fri Sep 2 19:05:21 1994 Rohan Lenard <rjl@iassf.easams.com.au>
  449. * call.c (build_scoped_method_call): Remove erroneous error message
  450. when destructor call is written as a scoped call.
  451. Tue Oct 11 23:48:31 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  452. * various: Cast pointer arguments to bzero and bcopy to char *.
  453. Tue Oct 11 19:34:32 1994 Mike Stump <mrs@cygnus.com>
  454. * class.c (get_derived_offset): Added a type parameter to limit how
  455. far up the CLASSTYPE_VFIELD_PARENT chain we search.
  456. * class.c (modify_one_vtable, fixup_vtable_deltas): When forming the
  457. offset to put into the vtable for the this parameter, make sure we
  458. don't offset from a parent of the DECL_CONTEXT of the function.
  459. Tue Oct 11 16:10:52 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  460. * pt.c (do_function_instantiation): Set DECL_EXTERNAL and
  461. TREE_STATIC when setting DECL_INTERFACE_KNOWN.
  462. (do_type_instantiation): Likewise.
  463. * lex.c (cons_up_default_function): Set DECL_INTERFACE_KNOWN,
  464. DECL_EXTERNAL and TREE_STATIC as appropriate.
  465. * decl2.c (finish_file): Also synthesize methods that don't have
  466. DECL_EXTERNAL set. Set interface_unknown before doing so.
  467. * decl.c (start_function): If DECL_INTERFACE_KNOWN is set on the
  468. function decl, don't muck with TREE_PUBLIC and DECL_EXTERNAL.
  469. Mon Oct 10 00:56:53 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  470. * lex.c (cons_up_default_function): Mark methods in a template class
  471. as template instances. Store the values of interface_unknown and
  472. interface_only for do_pending_inlines.
  473. (do_pending_inlines): Use them.
  474. * decl2.c (finish_file): If we haven't seen a definition of a
  475. function declared static, make the decl non-PUBLIC so compile_file
  476. can give an error.
  477. Sun Oct 9 02:42:29 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  478. * method.c (do_build_copy_constructor): Handle anonymous unions.
  479. (do_build_assign_ref): Likewise.
  480. (largest_union_member): Move from lex.c.
  481. Sat Oct 8 14:59:43 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  482. Re-implement g++'s vague linkage independent of TREE_PUBLIC.
  483. * pt.c (instantiate_member_templates): Lose redundant
  484. -fexternal-templates handling.
  485. (tsubst): Set TREE_PUBLIC and DECL_EXTERNAL on new decls. Don't set
  486. TREE_STATIC or DECL_INTERFACE_KNOWN.
  487. (do_pending_expansions): Predicate on DECL_INTERFACE_KNOWN instead
  488. of DECL_EXTERNAL for explicit instantiations.
  489. (do_function_instantiation): Do the new thing.
  490. (do_type_instantiation): Likewise.
  491. (instantiate_template): Deal with member templates defined in a .cc
  492. file with -fexternal-templates.
  493. * except.c (expand_exception_blocks): Use DECL_LINKAGE_KNOWN to
  494. decide whether to stick builtin_throw here.
  495. * decl2.c (import_export_inline): Predicate on DECL_INTERFACE_KNOWN
  496. rather than TREE_PUBLIC. Generally fix rules.
  497. (finish_file): Use DECL_INITIAL to determine whether or not a method
  498. has been synthesized, rather than TREE_ASM_WRITTEN.
  499. * decl.c (warn_extern_redeclared_static): Use DECL_PUBLIC instead of
  500. TREE_PUBLIC.
  501. (pushdecl): Likewise.
  502. (duplicate_decls): Likewise. Deal with DECL_DECLARED_STATIC and
  503. DECL_INTERFACE_KNOWN.
  504. (redeclaration_error_message): Fix checking for conflicting linkage.
  505. (define_function): Set DECL_INTERFACE_KNOWN.
  506. (grokfndecl): Function decls are PUBLIC until we are sure about
  507. their linkage. Set DECL_DECLARED_STATIC as needed.
  508. (start_function): Deal with linkage. Move pushdecl after linkage
  509. magic.
  510. (finish_function): Don't set TREE_ASM_WRITTEN on discarded inlines.
  511. * cp-tree.h (lang_decl_flags): Add interface_known and
  512. declared_static.
  513. (DECL_INTERFACE_KNOWN): New macro.
  514. (DECL_DECLARED_STATIC): New macro.
  515. (DECL_PUBLIC): New macro.
  516. Clean up bogus use of TREE_PUBLIC.
  517. * class.c (alter_access): Fix mistaken use of TREE_PUBLIC (it
  518. doesn't correspond to TREE_PROTECTED and TREE_PRIVATE).
  519. * init.c (do_friend): Don't arbitrarily set TREE_PUBLIC.
  520. Wed Oct 5 13:44:41 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  521. * call.c (build_overload_call_real): Don't immediately do
  522. array->pointer conversion.
  523. * pt.c (type_unification): If not passing to a reference, strip
  524. cv-quals. Also handle array->pointer conversion.
  525. Tue Oct 4 17:45:37 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  526. * decl.c (grokdeclarator): Don't warn about applying const to a
  527. const typedef or template type parameter.
  528. * decl2.c (finish_file): Also synthesize methods after walking the
  529. vtables. Ugly ugly ugly.
  530. Mon Oct 3 15:02:41 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  531. * various: Remove lingering remnants of old exception handling code.
  532. * decl2.c (finish_file): Synthesize methods before walking the
  533. vtables, so that the vtables get emitted as needed.
  534. * decl.c (shadow_tag): Remove obsolete code for pushing tags and
  535. dealing with exceptions.
  536. Mon Oct 3 13:05:27 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
  537. * Make-lang.in (g++-cross): Depend upon version.o and $(LIBDEPS).
  538. Mon Oct 3 02:59:28 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  539. * decl2.c (finish_file): Fix inline handling.
  540. Sun Oct 2 00:21:56 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  541. * decl.c (grokdeclarator): Handle redundant scope even better.
  542. ({push,pop}_cp_function_context): Take toplev parameter.
  543. * method.c (synthesize_method): Pass toplev parameter to
  544. {push,pop}_cp_function_context depending on decl_function_context
  545. (fndecl).
  546. * typeck.c (build_x_unary_op): Unary & on OFFSET_REFs is always the
  547. built-in version.
  548. * method.c (synthesize_method): Don't be confused by __in_chrg
  549. parameter.
  550. * class.c (popclass): Set C_C_D like start_function does.
  551. * decl.c (grokdeclarator): Handle redundant scope better.
  552. * parse.y (expr_or_declarator): Add '(' expr_or_declarator ')' rule.
  553. (direct_notype_declarator): Likewise.
  554. (complex_direct_notype_declarator): Remove it here.
  555. Sat Oct 1 21:42:18 1994 Jason Merrill <jason@deneb.cygnus.com>
  556. * init.c (resolve_offset_ref): Fix types used in resolving .*
  557. expressions.
  558. Sat Oct 1 15:18:49 1994 Jason Merrill <jason@phydeaux.cygnus.com>
  559. Beginnings of work to synthesize methods only when needed.
  560. * call.c (build_method_call): Synthesize methods as necessary
  561. (currently never necessary).
  562. * class.c (popclass): Don't try to set C_C_D here, as it'll end up
  563. on the wrong obstack.
  564. * decl.c (push_cp_function_context): Mostly copied from
  565. push_c_function_context.
  566. (pop_cp_function_context): Similarly.
  567. (finish_function): Reverse order of poplevel and pop_nested_class so
  568. that current_class_decl is restored properly.
  569. (start_function): Likewise.
  570. (finish_function): Add parameter 'nested'. Don't call
  571. permanent_allocation if (nested).
  572. * various: Pass extra parameter to finish_function.
  573. * decl2.c (finish_file): Reorganize end-of-file inline handling,
  574. synthesizing methods as necessary.
  575. * lex.c (cons_up_default_function): Call mark_inline_for_output.
  576. Only synthesize methods immediately if #pragma implementation
  577. (currently disabled).
  578. (do_pending_inlines): Call synthesize_method.
  579. * method.c (synthesize_method): New function; all method synthesis
  580. goes through here. Calls do_build_assign_ref and
  581. do_build_copy_constructor.
  582. (build_default_constructor): Remove.
  583. (build_dtor): Likewise.
  584. (build_assign_ref): Rename to do_build_assign_ref and remove stuff
  585. done by synthesize_method.
  586. (build_copy_constructor): Similarly.
  587. Thu Sep 29 16:58:52 1994 Mike Stump <mrs@cygnus.com>
  588. * typeck.c (c_expand_return): Use magic so the backend can fixup the
  589. assignment into the return register, so cleanups won't clobber it.
  590. Thu Sep 29 13:08:50 1994 Jason Merrill <jason@deneb.cygnus.com>
  591. * method.c (hack_identifier): Don't call assemble_external for
  592. template decls.
  593. * decl.c (finish_decl): Also end temporary allocation if the decl in
  594. question has a type of error_mark_node.
  595. Wed Sep 28 21:45:00 1994 Mike Stump <mrs@cygnus.com>
  596. * typeck.c (build_modify_expr): When optimizing ?: on lhs, make sure
  597. that if the ?: was a reference type, that the subparts will be also.
  598. Wed Sep 28 16:14:04 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  599. * except.c (register_exception_table): Use Pmode, not PTRmode.
  600. Fri Sep 23 13:54:27 1994 Jason Merrill <jason@deneb.cygnus.com>
  601. * lex.c (do_pending_inlines): Do method synthesis after the
  602. pending_inlines have been reversed.
  603. Thu Sep 22 12:53:03 1994 Per Bothner <bothner@kalessin.cygnus.com>
  604. * decl2.c (finish_file): Fix Brendan's fix: Only call
  605. register_exception_table if there is a non-empty exception table.
  606. Thu Sep 22 12:03:46 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  607. * decl2.c (finish_file): Only do register_exception_table if
  608. -fhandle-exceptions is being used.
  609. Wed Sep 21 19:01:51 1994 Per Bothner <bothner@kalessin.cygnus.com>
  610. * except.c (output_exception_table_entry): Simplify
  611. by using assemble_integer.
  612. (build_exception_table): Change to return a count.
  613. Cleanup to use standard macros, instead of hard-wired
  614. sparc asm format. Don't make __EXCEPTION_TABLE__ global.
  615. (register_exception_table): New function. Generate call to builtin.
  616. * decl2.c (finish_file): Call register_exception_table.
  617. * cp-tree.h (build_exception_table): Fix prototype.
  618. Wed Sep 21 13:20:42 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  619. * tree.c (break_out_calls): Don't try to duplicate the DECL_INITIAL.
  620. * decl2.c (delete_sanity): Give an error at trying to delete a
  621. function.
  622. Wed Sep 21 11:47:10 1994 Jason Merrill <jason@deneb.cygnus.com>
  623. * lex.c (cons_up_default_function): Mark synthesized destructors
  624. inline.
  625. * decl.c (duplicate_decls): Ignore redeclarations of wchar_t as
  626. something other than __wchar_t, complaining if -pedantic and not in
  627. a system header.
  628. Tue Sep 20 09:43:28 1994 Jason Merrill <jason@deneb.cygnus.com>
  629. * decl.c (xref_tag): Set up BINFO_INHERITANCE_CHAIN on base binfos
  630. here.
  631. * typeck.c (build_modify_expr): Require complete type after checking
  632. for error_mark_node.
  633. * call.c (build_method_call): Print parmtypes when complaining of
  634. ambiguous call.
  635. * typeck.c (build_modify_expr): Handle assignment to array from
  636. non-array.
  637. * decl.c (lookup_name_real): Deal with got_scope == error_mark_node.
  638. * call.c (build_method_call): Don't bother with the exact match.
  639. Mon Sep 19 00:51:39 1994 Jason Merrill <jason@deneb.cygnus.com>
  640. * init.c (expand_aggr_init): If we munge the type of the variable,
  641. also munge the type of the initializer.
  642. * decl.c (grokdeclarator): Use <= when comparing to RID_LAST_MODIFIER.
  643. (init_decl_processing): Push artificial declaration of wchar_t so
  644. people don't have to declare it before they can use it.
  645. * error.c (cp_line_of): Return lineno in lieu of 0.
  646. * typeck.c (convert_for_assignment): Handle conversion of pmfs to
  647. int and bool.
  648. (build_component_ref): Fold the COMPONENT_REF in case it can be
  649. reduced.
  650. * typeck2.c (store_init_value): Don't pedwarn about non-constant
  651. bracketed initializers for automatic variables.
  652. Sun Sep 18 10:12:12 1994 Jason Merrill <jason@deneb.cygnus.com>
  653. * error.c (dump_decl): Don't say `typedef enum foo foo'.
  654. * decl.c (start_decl): Don't set TREE_PUBLIC on template decls just
  655. because they're affected by #pragma i/i. We'll deal with that when
  656. they get instantiated.
  657. * typeck.c (build_unary_op): Clean up cruft in ADDR_EXPR case.
  658. * class.c (instantiate_type): Set TREE_CONSTANT on instantiated
  659. ADDR_EXPRs if appropriate.
  660. * decl.c (build_ptrmemfunc_type): Unset IS_AGGR_TYPE on pmf types.
  661. * typeck.c (build_ptrmemfunc): Handle &overloaded_method as an
  662. initializer properly.
  663. * typeck2.c (digest_init): Likewise.
  664. * tree.c (cp_build_type_variant): Like c_build_type_variant, except
  665. it uses build_cplus_array_type.
  666. * *.c: Use cp_build_type_variant instead of c_build_type_variant.
  667. * pt.c (do_type_instantiation): Don't try to instantiate nested
  668. enums.
  669. Tue Sep 13 10:56:58 1994 Jason Merrill <jason@deneb.cygnus.com>
  670. * cvt.c (build_up_reference): Handle preincrement and predecrement
  671. properly.
  672. Tue Sep 13 09:51:59 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  673. * decl.c (finish_decl): Only lay out the rtl for DECL if it is, in
  674. fact, static.
  675. Mon Sep 12 14:40:30 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  676. * decl.c (finish_decl): Lay out the rtl for DECL before doing
  677. grok_reference_init, in case it's static.
  678. Mon Sep 12 12:45:38 1994 Jason Merrill <jason@deneb.cygnus.com>
  679. * class.c (finish_struct): Don't synthesize constructors if the
  680. class has a field with the same name as the class. Don't die on
  681. classes with no constructors or destructors. Don't die if the head
  682. and tail of the class are in different files.
  683. * decl.c (grokdeclarator): Don't treat a function pointer field
  684. with the same name as the class as a constructor.
  685. Fri Sep 9 13:17:00 1994 Jason Merrill <jason@deneb.cygnus.com>
  686. * typeck.c (build_c_cast): Pull constant values out of their
  687. variables here.
  688. * decl.c (duplicate_decls): Only propagate DECL_CHAIN in
  689. FUNCTION_DECLs and TEMPLATE_DECLs.
  690. Thu Sep 8 10:07:48 1994 Jason Merrill <jason@deneb.cygnus.com>
  691. * decl.c (duplicate_decls): Propagate DECL_CHAIN in all DECLs that
  692. have it.
  693. * pt.c (unify): REALs and INTEGERs only unify with their own genus.
  694. (instantiate_member_templates): Don't muck with DECL_EXTERNAL and
  695. TREE_PUBLIC unless -fexternal-templates.
  696. Wed Sep 7 13:17:10 1994 Jason Merrill <jason@deneb.cygnus.com>
  697. * pt.c (do_type_instantiation): Call instantiate_member_templates.
  698. Deal with specializations.
  699. (tsubst): Don't stick the mangled name in DECL_NAME for function
  700. instantiations. Don't push them, either.
  701. * decl2.c (grokfield): Move code for generating the
  702. DECL_ASSEMBLER_NAME for static members from here.
  703. * method.c (build_static_name): To here.
  704. * decl.c (grokvardecl): Call build_static_name.
  705. (duplicate_decls): Keep old DECL_ASSEMBLER_NAME.
  706. Mon Sep 5 12:49:18 1994 Jason Merrill <jason@deneb.cygnus.com>
  707. * call.c (build_method_call): If -Wsynth, warn when selecting
  708. synthesized op= over user-supplied one cfront would select.
  709. * decl2.c (lang_decode_option): Handle -Wsynth.
  710. Fri Sep 2 15:11:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  711. * decl.c (finish_enum): Overhaul to fix several bugs.
  712. (start_enum): Disable useless code.
  713. Thu Sep 1 16:04:54 1994 Jason Merrill <jason@deneb.cygnus.com>
  714. * typeck.c (c_expand_return): Warn about returning a reference to a
  715. temporary.
  716. (convert_arguments): Increment argument counter when using default
  717. arguments, too.
  718. Wed Aug 31 14:29:22 1994 Jason Merrill <jason@deneb.cygnus.com>
  719. * decl.c (finish_decl): If the type of decl is error_mark_node,
  720. don't bother trying to do anything.
  721. * typeck.c (convert_for_initialization): If the rhs contains a
  722. constructor call, pretend the lhs type needs to be constructed.
  723. * init.c (expand_default_init): If we stick the object inside the
  724. initializer, mark the initializer used.
  725. Tue Aug 30 13:50:18 1994 Jason Merrill <jason@deneb.cygnus.com>
  726. * method.c (build_assign_ref): Return *this;
  727. (build_assign_ref): Fix base assignment order.
  728. (build_copy_constructor): Fix member init order.
  729. Mon Aug 29 13:54:39 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  730. * g++.c (main): Remember to clear out SAW_SPECLANG after we see
  731. its argument.
  732. Sat Aug 27 09:36:03 1994 Jason Merrill <jason@deneb.cygnus.com>
  733. * method.c (build_copy_constructor): Also copy virtual bases.
  734. Fri Aug 26 17:05:15 1994 Jason Merrill <jason@deneb.cygnus.com>
  735. * lex.c (do_pending_inlines): Clear out pending_inlines before doing
  736. any synthesis. Also first set deja_vu on all pending_inlines.
  737. * method.c (build_assign_ref): Use build_member_call to invoke base
  738. operator=, rather than build_modify_expr. And use
  739. build_reference_type instead of TYPE_REFERENCE_TO.
  740. (build_copy_constructor): Use TYPE_NESTED_NAME to identify the
  741. basetype.
  742. * decl2.c (grokfield): Don't complain about undefined local class
  743. methods.
  744. * class.c (finish_struct): Don't try to synthesize methods here.
  745. * lex.c (do_pending_inlines): Instead, synthesize them here.
  746. (init_lex): Initialize synth_obstack.
  747. (cons_up_default_function): Stick synthesis request on
  748. pending_inlines.
  749. Fri Aug 26 12:24:14 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  750. * call.c (build_method_call) [PCC_STATIC_STRUCT_RETURN]: Also
  751. accept an RTL_EXPR in what we're about to use for the instance,
  752. since anything which would end up with pcc_struct_return set
  753. inside cplus_expand_expr.
  754. * cp-tree.h (cons_up_default_function): Note change of prototype.
  755. Thu Aug 25 23:05:30 1994 Gerald Baumgartner <gb@cs.purdue.edu>
  756. * class.c (finish_struct): Undid change from Aug 21 testing
  757. CLASSTYPE_INTERFACE and CLASSTYPE_VTABLE_NEEDS_WRITING.
  758. * parse.y (left_curly): Likewise, undid change from Aug 21.
  759. * decl.c (xref_tag): Undid change from Aug 21, set
  760. CLASSTYPE_INTERFACE correctly, and added comments.
  761. Thu Aug 25 00:36:31 1994 Jason Merrill <jason@deneb.cygnus.com>
  762. Rework approach to synthesized methods; don't go through the parser
  763. anymore.
  764. * class.c (finish_struct): Use new synthesis approach.
  765. * lex.c (cons_up_default_function): Now just creates declaration,
  766. not code.
  767. (largest_union_member): #if 0 out.
  768. (default_assign_ref_body): Likewise.
  769. (default_copy_constructor_body): Likewise.
  770. * method.c (build_default_constructor): New function to synthesize X().
  771. (build_copy_constructor): Synthesize X(X&).
  772. (build_assign_ref): Synthesize X::operator=(X&).
  773. (build_dtor): Synthesize ~X().
  774. * error.c (cp_line_of): If we're dealing with an artificial
  775. TYPE_DECL, look at the type instead.
  776. Wed Aug 24 11:11:50 1994 Jason Merrill <jason@deneb.cygnus.com>
  777. * init.c (sort_member_init): Check warn_reorder.
  778. * decl2.c (lang_decode_option): Handle -W{no-,}reorder.
  779. * cp-tree.h (CLASSTYPE_SOURCE_LINE): New macro.
  780. * error.c (cp_line_of): Use CLASSTYPE_SOURCE_LINE for aggregates.
  781. * class.c (finish_struct): Set CLASSTYPE_SOURCE_LINE.
  782. Tue Aug 23 09:28:35 1994 Mike Stump <mrs@cygnus.com>
  783. * error.c (dump_decl): Improve wording, so that error messages
  784. dont't read template<, class foo>...
  785. Mon Aug 22 15:30:51 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  786. * parse.y (label_colon): Also match a TYPENAME as a label name,
  787. since they may have declared a class by that name but have also
  788. tried to have a local label under the same name.
  789. * pt.c (coerce_template_parms): Call cp_error, not cp_error_at,
  790. for the message so they know at what point it was instantiated.
  791. Sun Aug 21 23:07:35 1994 Gerald Baumgartner <gb@cs.purdue.edu>
  792. * class.c (finish_struct): Move setting of CLASSTYPE_INTERFACE and
  793. CLASSTYPE_VTABLE_NEEDS_WRITING for signatures up to left_curly time.
  794. * decl.c (xref_tag): Move setting of CLASSTYPE_INTERFACE and
  795. CLASSTYPE_VTABLE_NEEDS_WRITING for signatures down to left_curly time.
  796. * parse.y (left_curly): New final resting place for setting
  797. CLASSTYPE_INTERFACE and CLASSTYPE_VTABLE_NEEDS_WRITING for signatures.
  798. * class.c (finish_struct): Don't test for function/field name
  799. conflicts in signatures, since all the fields are compiler-constructed.
  800. Fri Aug 19 14:04:47 1994 Kung Hsu <kung@mexican.cygnus.com>
  801. * method.c (build_overload_nested_name): In qualified name
  802. mangling, the template with value instantiation will have numeric
  803. at end and may mixed with the name length of next nested level.
  804. Add a '_' in between.
  805. * method.c (build_overload_name): Ditto.
  806. * method.c (build_overload_identifier): Ditto.
  807. Thu Aug 18 16:24:43 1994 Mike Stump <mrs@cygnus.com>
  808. * error.c (dump_decl): Handle NULL args.
  809. Thu Sep 29 16:15:36 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
  810. * g++.c: Rework last change so it's done like collect.c (and
  811. gcc.c).
  812. Wed Sep 14 10:17:27 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
  813. * g++.c: Include <sys/errno.h> in case `errno' is a macro
  814. as permitted by ANSI C.
  815. Thu Aug 18 12:48:09 1994 Mike Stump <mrs@cygnus.com>
  816. * class.c (finish_struct): Move setting of CLASSTYPE_INTERFACE and
  817. CLASSTYPE_VTABLE_NEEDS_WRITING up to left_curly time.
  818. * decl.c (xref_tag): Move setting of CLASSTYPE_INTERFACE and
  819. CLASSTYPE_VTABLE_NEEDS_WRITING down to left_curly time.
  820. * parse.y (left_curly): New final resting place for setting
  821. CLASSTYPE_INTERFACE and CLASSTYPE_VTABLE_NEEDS_WRITING.
  822. Thu Aug 11 11:32:42 1994 H.J. Lu <hjl@nynexst.com>
  823. * g++.c (main): Only decrement "added" and set "library" to
  824. NULL when "library" != NULL.
  825. Sat Aug 13 00:14:52 1994 Jason Merrill <jason@deneb.cygnus.com>
  826. * decl.c (grokdeclarator): Don't set TREE_PUBLIC on a function decl
  827. just because its class has a known interface.
  828. (decls_match): Deal with new format of template parms.
  829. * lex.c (cons_up_default_function): Don't play with TREE_PUBLIC and
  830. DECL_EXTERNAL here.
  831. Fri Aug 12 01:55:15 1994 Jason Merrill <jason@deneb.cygnus.com>
  832. * decl.c (pushtag): SET_DECL_ARTIFICIAL on gratuitous typedefs.
  833. (xref_defn_tag): Likewise.
  834. (pushdecl): Only allow artificial typedefs to be shadowed.
  835. * init.c (emit_base_init): Pass the right binfos to
  836. expand_aggr_init_1.
  837. * class.c (delete_duplicate_fields_1): Make it work right.
  838. (finish_struct): Catch function/field name conflict.
  839. * decl2.c (check_classfn): Pass the function to cp_error, not just
  840. the name.
  841. * init.c (sort_member_init): Warn when order of member initializers
  842. does not match order of member declarations.
  843. (emit_base_init): Call expand_aggr_init_1 with LOOKUP_PROTECT.
  844. * error.c (dump_expr): Handle lists of functions.
  845. * decl.c (start_function): #pragma interface only affects functions
  846. that would otherwise be static.
  847. (finish_decl): Don't warn about an unused variable if it has both
  848. constructor and destructor, since the 'resource allocation is
  849. initialization' idiom is relatively common.
  850. * typeck.c (comp_target_types): Don't handle TEMPLATE_TYPE_PARMs.
  851. (comp_target_parms): Likewise.
  852. (compparms): Never consider default parms.
  853. (common_base_type): Don't choose a virtual baseclass if there is a
  854. more derived class in common.
  855. (build_conditional_expr): If pedantic, pedwarn about conversion to
  856. common base in conditional expr.
  857. * class.c (instantiate_type): Handle template instantiation better.
  858. * typeck.c (convert_arguments): Don't try to get tricky and convert
  859. to int directly when PROMOTE_PROTOTYPES is set, as it breaks
  860. user-defined conversions.
  861. * lex.c (check_for_missing_semicolon): Also give error at end of
  862. file.
  863. * call.c (build_method_call): Don't promote arrays to pointers here.
  864. * typeck.c (convert_arguments): Don't require the actual parameter
  865. to be of a complete type if the formal parameter is a reference.
  866. Thu Aug 11 15:21:40 1994 Jason Merrill <jason@deneb.cygnus.com>
  867. * decl.c (grokdeclarator): Soften 'static' on member function error
  868. to pedwarn.
  869. * init.c (build_new): Don't automatically save rval.
  870. (build_offset_ref): Do field lookup with proper basetype_path.
  871. Thu Aug 11 12:46:54 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  872. * errfn.c (cp_silent): Declare to mark when we should avoid
  873. emitting warnings and errors.
  874. (cp_error): Check it.
  875. (cp_warning): Likewise.
  876. (cp_pedwarn): Likewise.
  877. (cp_compiler_error): Likewise.
  878. (cp_error_at): Likewise.
  879. (cp_warning_at): Likewise.
  880. (cp_pedwarn_at): Likewise.
  881. * call.c (compute_conversion_costs): Set CP_SILENT when we start
  882. out, and make sure we turn it off before we leave.
  883. Thu Aug 11 00:02:54 1994 Jason Merrill <jason@deneb.cygnus.com>
  884. * decl2.c (grok_array_decl): Try computing *(A+B) if neither
  885. argument is obviously an array.
  886. Wed Aug 10 15:32:04 1994 Jason Merrill <jason@deneb.cygnus.com>
  887. * typeck.c (c_expand_start_case): Do cleanups here.
  888. * parse.y (xcond): Do bool conversion here, too.
  889. (simple_stmt, SWITCH case): Don't do cleanups here.
  890. * decl.c (duplicate_decls): Don't treat builtins that have been
  891. explicitly declared specially.
  892. Tue Aug 9 01:16:09 1994 Jason Merrill <jason@deneb.cygnus.com>
  893. * tree.c (make_deep_copy): Support copying pointer, reference,
  894. function, array, offset and method types.
  895. * decl.c (init_decl_processing): Mark exit and abort as
  896. BUILT_IN_NONANSI so that duplicate_decls is kinder about
  897. redeclaration.
  898. (duplicate_decls): Don't give two errors for redeclaring a C
  899. function with the same parms but a different return type.
  900. * parse.y (paren_cond_or_null): Do cleanup and bool conversion here.
  901. (condition): Instead of here.
  902. (simple_stmt, SWITCH case): Also do cleanup here.
  903. * decl2.c (finish_anon_union): Only break out FIELD_DECLs.
  904. * call.c (build_method_call): Don't throw away the side effects of
  905. the object in a call to a non-existent constructor.
  906. * parse.y (primary): Likewise.
  907. * method.c (build_decl_overload): Oop.
  908. * decl2.c (lang_decode_option): Deal with flag_no_nonansi_builtin,
  909. warn about uselessness of specifying -fansi-overloading.
  910. * method.c (build_decl_overload): Treat any non-member new with one
  911. parameter as __builtin_new.
  912. * decl.c (init_decl_processing): Setup built-in meanings of exit,
  913. _exit and abort.
  914. Mon Aug 8 15:03:30 1994 Jason Merrill <jason@deneb.cygnus.com>
  915. * error.c (dump_readonly_or_volatile): Put a space between const and
  916. volatile if both apply.
  917. * init.c (perform_member_init): Clean up after this initialization.
  918. (emit_base_init): Clean up after each base init, not after all have
  919. been done.
  920. (expand_aggr_vbase_init_1): Clean up after this init.
  921. Sun Aug 7 14:55:05 1994 Jason Merrill <jason@deneb.cygnus.com>
  922. * call.c (build_method_call): Deal with destroying references.
  923. * parse.y (condition): Do bool_truthvalue_conversion here.
  924. (paren_expr_or_null): And here.
  925. (simple_if): Not here.
  926. (simple_stmt): Or here.
  927. Sat Aug 6 22:29:45 1994 Jason Merrill <jason@deneb.cygnus.com>
  928. * parse.y (paren_expr_or_null): Wrap the expression in a
  929. CLEANUP_POINT_EXPR.
  930. (condition): Likewise.
  931. Sat Aug 6 19:46:37 1994 Rohan Lenard <rjl@easams.com.au>
  932. * call.c (build_scoped_method_call): Fix error message when
  933. destructor call refers to a nonexistent type.
  934. Sat Apr 16 22:43:30 1993 Gerald Baumgartner <gb@cs.purdue.edu>
  935. * lex.h (rid): Deleted RID_RAISES, it's never used.
  936. Moved RID_PUBLIC, RID_PRIVATE, RID_PROTECTED, RID_EXCEPTION,
  937. RID_TEMPLATE and RID_SIGNATURE to the end of the enumeration,
  938. they don't need to be touched in `grokdeclarator.'
  939. (RID_LAST_MODIFIER): Defined macro to be RID_MUTABLE.
  940. * decl.c (grokdeclarator): Use RID_LAST_MODIFIER instead of
  941. RID_MAX as loop limit for finding declaration specifiers.
  942. Sat Apr 3 21:59:07 1993 Gerald Baumgartner <gb@cs.purdue.edu>
  943. * lex.c (debug_yytranslate): Moved to parse.y since it needs to
  944. access `yytname,' which is static in parse.c.
  945. Fri Apr 2 23:36:57 1993 Gerald Baumgarnter <gb@cs.purdue.edu>
  946. * cp-tree.h (GNU_xref_ref): Fixed typo in extern declaration, it
  947. was `GNU_xref_def' instead of `GNU_xref_ref.'
  948. Fri Aug 5 14:20:16 1994 Jason Merrill <jason@deneb.cygnus.com>
  949. * pt.c (do_function_instantiation): Don't set TREE_PUBLIC and
  950. DECL_EXTERNAL on 'extern' instantiations; wait until EOF to do that.
  951. (do_type_instantiation): Likewise.
  952. * decl2.c (import_export_inline): Decides at EOF what an inline's
  953. linkage should be.
  954. (finish_file): Call it.
  955. * decl.c (start_function): Don't rely on the settings of TREE_PUBLIC
  956. and DECL_EXTERNAL from do_*_instantiation. Only set
  957. DECL_DEFER_OUTPUT on inlines whose linkage might actually change.
  958. (finish_function): Use DECL_DEFER_OUTPUT to decide which inlines to
  959. mark for later consideration, rather than DECL_FUNCTION_MEMBER_P.
  960. Fri Aug 5 01:12:20 1994 Mike Stump <mrs@cygnus.com>
  961. * class.c (get_class_offset_1, get_class_offset): New routine to
  962. find the offset of the class where a virtual function is defined,
  963. from the complete type.
  964. * class.c (modify_one_vtable, fixup_vtable_deltas): Use
  965. get_class_offset instead of virtual_offset as get_class_offset will
  966. always provide the right answer.
  967. * tree.c (virtual_offset): Remove. It only ever worked some of the
  968. time.
  969. Tue Aug 2 12:44:21 1994 Jason Merrill <jason@deneb.cygnus.com>
  970. * call.c (build_method_call): Put back unary_complex_lvalue call
  971. that I thought was redundant.
  972. * typeck.c (c_expand_return): Fix a case I missed before.
  973. Sun Jul 31 17:54:02 1994 Jason Merrill <jason@deneb.cygnus.com>
  974. * pt.c (unify): Strip cv-quals from template type arguments (when
  975. 'const T*' is matched to 'const char*', that does not mean that T is
  976. 'const char').
  977. Fri Jul 29 01:03:06 1994 Jason Merrill <jason@deneb.cygnus.com>
  978. * pt.c (do_type_instantiation): Instantiate nested TAGS, not
  979. typedefs. Third time's the charm?
  980. * parse.y (template_parm): Support default template parms.
  981. * pt.c (process_template_parm): Likewise.
  982. (end_template_parm_list): Likewise.
  983. (coerce_template_parms): Likewise.
  984. (mangle_class_name_for_template): Likewise.
  985. (push_template_decls): Likewise.
  986. (unify): Likewise.
  987. * method.c (build_overload_identifier): Likewise.
  988. * error.c (dump_decl): Likewise.
  989. Wed Jul 27 17:47:00 1994 Jason Merrill <jason@deneb.cygnus.com>
  990. * pt.c (do_type_instantiation): Only instantiate nested *classes*.
  991. Tue Jul 26 13:22:40 1994 Jason Merrill <jason@deneb.cygnus.com>
  992. * search.c (note_debug_info_needed): Also emit debugging information
  993. for the types of fields.
  994. Mon Jul 25 00:34:44 1994 Jason Merrill <jason@deneb.cygnus.com>
  995. * pt.c (lookup_template_class): Pass 'template' to
  996. coerce_template_parms instead of 'in_decl', since it's a more
  997. meaningful context.
  998. * typeck.c (c_expand_return): Make sure any cleanups for the return
  999. expression get run.
  1000. (build_c_cast): Use CONVERT_EXPR for conversion to void.
  1001. * pt.c (do_type_instantiation): Also instantiate nested types.
  1002. * typeck.c (convert_for_assignment): Don't die when comparing
  1003. pointers with different levels of indirection.
  1004. * decl.c (grokdeclarator): The sub-call to grokdeclarator for
  1005. class-local typedefs sets DECL_ARGUMENTS, so we need to clear it
  1006. out.
  1007. * decl2.c (finish_anon_union): Don't die if the union has no
  1008. members.
  1009. * decl.c (grokdeclarator): Undo changes to declspecs when we're done
  1010. so that 'typedef int foo, bar;' will work.
  1011. * decl2.c (finish_file): Don't call expand_aggr_init for
  1012. non-aggregates.
  1013. Mon Jul 25 00:03:10 1994 Teemu Torma <tot@trema.fi>
  1014. * decl.c (finish_function): We can't inline constructors and
  1015. destructors under some conditions with -fpic, but don't unset
  1016. DECL_INLINE.
  1017. Mon Jul 25 00:03:10 1994 Jason Merrill <jason@deneb.cygnus.com>
  1018. * typeck.c (build_object_ref): Make sure 'datum' is a valid object.
  1019. Sun Jul 24 14:19:31 1994 Jason Merrill <jason@deneb.cygnus.com>
  1020. * class.c (finish_struct): Don't set DECL_FIELD_BITPOS on
  1021. non-fields.
  1022. (finish_struct_methods): Use copy_assignment_arg_p.
  1023. * cvt.c (cp_convert): If expr is an OFFSET_REF, resolve it instead
  1024. of giving an error.
  1025. * typeck.c (build_binary_op_nodefault): Don't set result_type if we
  1026. don't know how to compare the operands.
  1027. * decl.c (grokdeclarator): Avoid seg fault when someone uses '__op'
  1028. as a declarator-id in their program. Like the Linux headers do.
  1029. Arrgh.
  1030. * tree.c (lvalue_p): Treat calls to functions returning objects by
  1031. value as lvalues again.
  1032. * typeck.c (build_component_addr): Use convert_force to convert the
  1033. pointer in case the component type is also a private base class.
  1034. * search.c (get_matching_virtual): Fix bogus warning of overloaded
  1035. virtual.
  1036. * pt.c (overload_template_name): Set DECL_ARTIFICIAL on the created
  1037. TYPE_DECL to fix bogus shadowing warnings.
  1038. Fri Jul 22 01:15:32 1994 Jason Merrill <jason@deneb.cygnus.com>
  1039. * init.c (expand_aggr_init_1): const and volatile mismatches do not
  1040. prevent a TARGET_EXPR from initializing an object directly.
  1041. Tue Jul 19 17:55:37 1994 Jason Merrill <jason@deneb.cygnus.com>
  1042. * cvt.c (build_up_reference): Allow building up references to
  1043. `this', don't warn about making references to artificial variables
  1044. (like `this').
  1045. * tree.c (lvalue_p): `this' is not an lvalue.
  1046. * call.c (build_method_call): Accept using a typedef name (or
  1047. template type parameter) for explicit destructor calls.
  1048. Thu Jul 14 09:42:23 1994 Mike Stump <mrs@cygnus.com>
  1049. * Version 2.6.0 released.
  1050. Wed Jul 13 03:57:54 1994 Jason Merrill <jason@deneb.cygnus.com>
  1051. * method.c (hack_identifier): Put back old code so lists of
  1052. non-functions will be handled properly.
  1053. * cp-tree.h (TYPE_NEEDS_CONSTRUCTING): #if 0 out; this macro is now
  1054. defined in the language-independent tree.h.
  1055. * tree.c (count_functions): Avoid bogus warning when compiling this
  1056. function.
  1057. Mon Jul 11 18:37:20 1994 Jason Merrill <jason@deneb.cygnus.com>
  1058. * decl.c (grok_reference_init): Always save the initializer of a
  1059. reference.
  1060. Fri Jul 8 17:41:46 1994 Mike Stump <mrs@cygnus.com>
  1061. * decl.c (cplus_expand_expr_stmt): Wrap statement expressions inside
  1062. CLEANUP_POINT_EXPRs so that the stack slots can be reused.
  1063. (disabled for now)
  1064. Fri Jul 8 12:59:38 1994 Jason Merrill <jason@deneb.cygnus.com>
  1065. * method.c (hack_identifier): Fix for new overloading.
  1066. * typeck.c (build_binary_op_nodefault): Don't mess with division by
  1067. zero.
  1068. Fri Jul 8 13:20:28 1994 Gerald Baumgartner <gb@cs.purdue.edu>
  1069. * decl2.c (finish_file): Only call walk_sigtables, if
  1070. flag_handle_signatures is turned on, don't waste time otherwise.
  1071. Fri Jul 8 02:27:41 1994 Jason Merrill <jason@deneb.cygnus.com>
  1072. * decl.c (push_overloaded_decl): Don't create overloads of one when
  1073. shadowing a class type.
  1074. * typeck.c (build_x_function_call): Complain about overloads of one.
  1075. * decl.c (grokdeclarator): Don't try to treat a char* as a tree.
  1076. (grokdeclarator): Fix setting of TREE_STATIC.
  1077. (start_decl): Clear DECL_IN_AGGR_P after calling duplicate_decls.
  1078. Thu Jul 7 22:20:46 1994 Gerald Baumgartner <gb@andros.cygnus.com>
  1079. * cp-tree.h (walk_sigtables): Created extern declaration.
  1080. * decl2.c (walk_sigtables): Created function, patterned after
  1081. walk_vtables, even though we only need it to write out sigtables.
  1082. (finish_sigtable_vardecl): Created function.
  1083. (finish_vtable_vardecl): Changed 0 to NULL_PTR.
  1084. (finish_file): Call walk_sigtables.
  1085. * sig.c (build_signature_table_constructor): Mark class member
  1086. function pointed to from signature table entry as addressable.
  1087. Thu Jul 7 13:39:37 1994 Jason Merrill <jason@deneb.cygnus.com>
  1088. * decl.c (start_decl): Check new decl of static member variable
  1089. against the declaration in the class here.
  1090. (grokvardecl): Instead of here.
  1091. * class.c (prepare_fresh_vtable): Call import_export_vtable if not
  1092. -fvtable-thunks.
  1093. (build_vtable): Likewise.
  1094. * decl2.c (import_export_vtable): Move logic for deciding the
  1095. interface of a template class from here.
  1096. (import_export_template): To here.
  1097. (finish_vtable_vardecl): Call import_export_template before
  1098. import_export_vtable.
  1099. Wed Jul 6 20:25:48 1994 Mike Stump <mrs@cygnus.com>
  1100. * except.c (init_exception_processing): Setup interim_eh_hook to
  1101. call lang_interim_eh.
  1102. * except.c (do_unwind): Propagate throw object value across
  1103. stack unwinding.
  1104. * except.c (saved_throw_value): Used to hold the value of the object
  1105. being thrown. It is always a reference to the real value.
  1106. * except.c (expand_start_catch_block): Add handling for the
  1107. value of the exception object.
  1108. * except.c (expand_start_catch_block): Add handler for the handler,
  1109. so that throws inside the handler go to the outer block.
  1110. * except.c (expand_end_catch_block): Likewise.
  1111. * parse.y (handler_args): Use parm instead, as the other doesn't yet
  1112. handle references correctly.
  1113. Wed Jul 6 17:55:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
  1114. * decl2.c (mark_vtable_entries): If -ftable-thunks, set the
  1115. vtable entry properly to abort.
  1116. Tue Jul 5 14:07:54 1994 Jason Merrill <jason@deneb.cygnus.com>
  1117. * typeck.c (build_binary_op_nodefault): Downgrade division by zero
  1118. errors to warnings.
  1119. * call.c (build_overload_call_real): Handle fnname being a list of
  1120. functions.
  1121. * typeck.c (build_x_function_call): Pass list of functions to
  1122. build_overload_call, not just the name.
  1123. * tree.c (count_functions): Complain when called for invalid
  1124. argument.
  1125. * decl.c (grokdeclarator): Fix settings of TREE_STATIC, TREE_PUBLIC
  1126. and DECL_EXTERNAL on static members and initialized const members.
  1127. * decl2.c (grokfield): Reflect this change.
  1128. Fri Jul 1 09:35:51 1994 Jason Merrill <jason@deneb.cygnus.com>
  1129. * parse.y (init): ANSI C++ does not forbid { }.
  1130. Thu Jun 30 00:35:22 1994 Jason Merrill <jason@deneb.cygnus.com>
  1131. * decl2.c (lang_decode_option): Set warn_nonvdtor along with -Wall.
  1132. warn_nonvdtor defaults to off.
  1133. * class.c (instantiate_type): Use comptypes rather than relying on
  1134. types to satisfy ==.
  1135. * decl.c (start_function): Set DECL_DEFER_OUTPUT on all inlines that
  1136. might be static.
  1137. * tree.c (build_cplus_new): Never build WITH_CLEANUP_EXPRs.
  1138. * decl.c (grok_reference_init): Deal with ADDR_EXPRs of TARGET_EXPRs.
  1139. * cvt.c (cp_convert): Pass 0 to with_cleanup_p arg of
  1140. build_cplus_new.
  1141. Wed Jun 29 22:31:09 1994 Jason Merrill <jason@deneb.cygnus.com>
  1142. * decl2.c (finish_file): Maybe consider static inlines multiple
  1143. times, in case they reference each other.
  1144. Tue Jun 28 11:58:38 1994 Gerald Baumgartner <gb@cs.purdue.edu>
  1145. * class.c (finish_struct): Don't `cons_up_default_function's
  1146. for signatures.
  1147. (finish_struct): Handle an empty method_vec correctly.
  1148. * decl.c (grokdeclarator): Don't warn about a signature being
  1149. empty in a signature pointer declaration if we only saw a
  1150. forward declaration of the signature. Changed `warning's into
  1151. `cp_warning's.
  1152. * sig.c (build_sigtable): Don't die if a null signature table
  1153. constructor is returned.
  1154. (build_signature_pointer_constructor): If the signature table
  1155. constructor is null, the _sptr field is set to a null pointer
  1156. and cast to the appropriate type. Make copies of all null
  1157. pointers so that the type null_pointer_node doesn't get changed.
  1158. (build_signature_table_constructor): Added comments.
  1159. * sig.c (build_signature_pointer_constructor): Complain if we
  1160. try to assign to/initialize a signature pointer/reference of
  1161. an undefined signature.
  1162. Mon Jun 27 14:05:16 1994 Gerald Baumgartner <gb@cs.purdue.edu>
  1163. * typeck2.c (store_init_value): Don't be pedantic about
  1164. non-constant initializers of signature tables/pointers/references.
  1165. Fri Jun 24 16:49:41 1994 Gerald Baumgartner <gb@cs.purdue.edu>
  1166. * decl.c (grokdeclarator): If we are grokking an opaque typedef
  1167. in a signature, don't complain about it begin static.
  1168. Wed Jun 29 16:44:45 1994 Mike Stump <mrs@cygnus.com>
  1169. Fixes a problem of the this pointer being wrong in virtual calls to
  1170. methods that are not overridden in more derived classes.
  1171. * class.c (fixup_vtable_delta): New routine. It will fixup the
  1172. delta entries in vtables, wheever they need updating.
  1173. * class.c (finish_struct): Call the new routine for all virtual
  1174. bases, as they can have different offsets, than those used in base
  1175. classes that we derive our vtable from.
  1176. Tue Jun 28 23:49:28 1994 Jason Merrill <jason@deneb.cygnus.com>
  1177. * typeck.c (build_binary_op): Use the types before default
  1178. conversions in the error message.
  1179. * *.c: Use c_build_type_variant instead of build_type_variant where
  1180. the type might be an array.
  1181. * call.c (build_method_call): Call build_type_variant and
  1182. build_reference_type in the right order.
  1183. * decl.c (record_builtin_type): Likewise.
  1184. Wed Jun 29 16:58:53 1994 Jason Merrill <jason@deneb.cygnus.com>
  1185. * call.c (build_method_call): Call build_type_variant and
  1186. build_reference_type in the right order.
  1187. * decl.c (record_builtin_type): Likewise.
  1188. Tue Jun 28 23:49:28 1994 Jason Merrill <jason@deneb.cygnus.com>
  1189. * typeck.c (build_binary_op): Use the types before default
  1190. conversions in the error message.
  1191. * *.c: Use c_build_type_variant instead of build_type_variant where
  1192. the type might be an array.
  1193. Sat Jun 25 11:50:54 1994 Jason Merrill <jason@deneb.cygnus.com>
  1194. * cvt.c (convert_to_reference): Try UDC's before doing the
  1195. reinterpret_cast thang, though.
  1196. Fri Jun 24 01:24:01 1994 Jason Merrill <jason@deneb.cygnus.com>
  1197. * typeck.c (c_expand_return): Don't USE the return value location
  1198. after we've expanded the jump.
  1199. * decl2.c (finish_file): Make sure DECL_SAVED_INSNS is not 0 before
  1200. trying to write out an inline.
  1201. * cvt.c (build_up_reference): Also do address adjustment when the
  1202. target type uses MI.
  1203. (convert_to_reference): Try UDCs only after built-in conversions.
  1204. (build_type_conversion_1): Don't play games with the argument to the
  1205. method.
  1206. (build_type_conversion): #if 0 out code for binding to reference.
  1207. Thu Jun 23 00:22:28 1994 Jason Merrill <jason@deneb.cygnus.com>
  1208. * decl2.c (finish_file): Use TREE_SYMBOL_REFERENCED to decide
  1209. whether to emit inlines.
  1210. * decl.c (grokdeclarator): Set explicit_int for decls that just
  1211. specify, say, 'long'.
  1212. * init.c (do_friend): Do overload C functions (or call pushdecl,
  1213. anyaway).
  1214. Wed Jun 22 13:40:49 1994 Jason Merrill <jason@deneb.cygnus.com>
  1215. * cvt.c (build_up_reference): Don't call readonly_error.
  1216. (convert_to_reference): Propagate const and volatile from expr to
  1217. its type.
  1218. * tree.c (lvalue_p): Random CALL_EXPRs are not lvalues.
  1219. * cvt.c (build_up_reference): Break out WITH_CLEANUP_EXPR when
  1220. creating a temporary.
  1221. (convert_to_reference): Lose excessive and incorrect trickiness.
  1222. (cp_convert): Call build_cplus_new with with_cleanup_p set.
  1223. * typeck2.c (build_functional_cast): Likewise.
  1224. Tue Jun 21 17:38:38 1994 Jason Merrill <jason@deneb.cygnus.com>
  1225. * decl.c (grokdeclarator): signed, unsigned, long and short all
  1226. imply 'int'.
  1227. * decl.c (grokdeclarator): Allow "this is a type" syntax.
  1228. (grok_reference_init): Simplify and fix.
  1229. Sun Jun 19 17:08:48 1994 Jason Merrill <jason@deneb.cygnus.com>
  1230. * decl.c (grokdeclarator): pedwarn about a typedef that specifies no
  1231. type.
  1232. Sat Jun 18 04:16:50 1994 Jason Merrill <jason@deneb.cygnus.com>
  1233. * decl.c (start_function): Move TREE_PUBLIC and DECL_EXTERNAL
  1234. tinkering to after call to pushdecl.
  1235. Fri Jun 17 14:48:28 1994 Jason Merrill <jason@deneb.cygnus.com>
  1236. * call.c (build_method_call): Handle destructors for non-aggregate
  1237. types properly.
  1238. Thu Jun 16 16:48:05 1994 Jason Merrill <jason@deneb.cygnus.com>
  1239. * call.c (build_method_call): Make sure that the name given for the
  1240. destructor matches the constructor_name of the instance.
  1241. * pt.c (do_function_instantiation): A non-extern instantiation
  1242. overrides a later extern one.
  1243. (do_type_instantiation): Likewise.
  1244. Wed Jun 15 19:34:54 1994 Jason Merrill <jason@deneb.cygnus.com>
  1245. * init.c (expand_aggr_init): Use TYPE_MAIN_VARIANT to get the
  1246. unqualified array type.
  1247. * cp-tree.h (EMPTY_CONSTRUCTOR_P): Tests whether NODE is a
  1248. CONSTRUCTOR with no elements.
  1249. * decl.c (various): Lose empty_init_node.
  1250. (finish_decl): Use EMPTY_CONSTRUCTOR_P, do the empty CONSTRUCTOR
  1251. thing depending on the value of DECL_COMMON instead of
  1252. flag_conserve_space, do the empty CONSTRUCTOR thing for types that
  1253. don't have constructors, don't treat a real empty CONSTRUCTOR
  1254. specially.
  1255. * typeck2.c (process_init_constructor): Don't treat empty_init_node
  1256. specially.
  1257. Wed Jun 15 19:05:25 1994 Mike Stump <mrs@cygnus.com>
  1258. * class.c (override_one_vtable): Don't forget to merge in an old
  1259. overrider when we wanted to reuse a vtable, but couldn't.
  1260. Wed Jun 15 15:03:16 1994 Jason Merrill <jason@deneb.cygnus.com>
  1261. * decl.c (start_decl): Put statics in common again.
  1262. * decl.c (grokdeclarator): Return NULL_TREE for an error rather than
  1263. setting the type to error_mark_node.
  1264. * typeck.c (build_modify_expr): Build up a COMPOUND_EXPR for enum
  1265. bitfield assignments.
  1266. Tue Jun 14 12:23:38 1994 Jason Merrill <jason@deneb.cygnus.com>
  1267. * decl.c (grok_op_properties): Const objects can be passed by value.
  1268. Mon Jun 13 03:10:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  1269. * decl2.c (import_export_vtable): Force implicit instantiations to
  1270. be interface_only when -fno-implicit-templates.
  1271. * decl.c (duplicate_decls): Redeclaring a class template name is an
  1272. error.
  1273. * pt.c (end_template_decl): Call GNU_xref_decl for class templates.
  1274. * xref.c (GNU_xref_decl): Support templates.
  1275. Sat Jun 11 17:09:05 1994 Jason Merrill <jason@deneb.cygnus.com>
  1276. * decl.c (grok_op_properties): Split out checking for whether this
  1277. function should suppress the default assignment operator.
  1278. * decl2.c (grok_function_init): Likewise.
  1279. (copy_assignment_arg_p): New function to do just that.
  1280. Now considers virtual assignment operators that take a base as an
  1281. argument to count as copy assignment operators.
  1282. * search.c (dfs_debug_mark): Lose checks for DWARF_DEBUG and
  1283. TREE_ASM_WRITTEN, as they are redundant.
  1284. * pt.c (end_template_decl): Don't try to set DECL_CLASS_CONTEXT on a
  1285. decl that has no LANG_SPECIFIC part.
  1286. (do_type_instantiation): Force the debugging information for this
  1287. type to be emitted.
  1288. * decl.c (start_decl): Clear up uses of various types of templates
  1289. (say sorry for static data members, rather than "invalid template").
  1290. (expand_static_init): Fix initialization of static data members of
  1291. template classes.
  1292. Fri Jun 10 00:41:19 1994 Jason Merrill <jason@deneb.cygnus.com>
  1293. * decl.c (grokdeclarator): Set DECL_CONTEXT on static data members.
  1294. * g++.c (main): Use -xc++-cpp-output for .i files.
  1295. * pt.c (tsubst): Give meaningful error about declaring template for
  1296. a copy constructor which was not declared in the class template.
  1297. (do_type_instantiation): Explicit instantiation before the class
  1298. template is an error.
  1299. (instantiate_template): Don't die if tsubst returns error_mark_node.
  1300. Thu Jun 9 19:04:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  1301. Don't synthesize the copy assignment operator if the one in a base
  1302. class is pure virtual.
  1303. * cp-tree.h (TYPE_HAS_ABSTRACT_ASSIGN_REF): New macro to indicate
  1304. whether the type has a pure virtual copy assignment operator.
  1305. * class.c (finish_base_struct): Don't generate the copy assignment
  1306. operator if a base class has a pure virtual one.
  1307. * decl.c (grok_op_properties): Add disabled code to set
  1308. TYPE_HAS_ABSTRACT_ASSIGN_REF with comment pointing to where it is
  1309. actually set.
  1310. * decl2.c (grok_function_init): Set TYPE_HAS_ABSTRACT_ASSIGN_REF.
  1311. * decl2.c (import_export_vtable): Always treat template
  1312. instantiations as if write_virtuals >= 2, and treat implicit
  1313. instantiations as external if -fno-implicit-templates.
  1314. (finish_file): Output all pending inlines if
  1315. flag_keep_inline_functions.
  1316. Wed Jun 8 20:48:02 1994 Mike Stump <mrs@cygnus.com>
  1317. * tree.c (layout_vbasetypes): Align virtual base classes inside
  1318. complete objects, so that we don't core dump on machines such as
  1319. SPARCs when we access members that require larger than normal
  1320. alignments, such as a double. Also, we bump up the total alignment
  1321. on the complete type, as necessary.
  1322. Wed Jun 8 16:18:14 1994 Jason Merrill <jason@deneb.cygnus.com>
  1323. * gxxint.texi (Free Store): New section with code for examining
  1324. cookie.
  1325. (Limitations of g++): Remove operator delete entry, since it is no
  1326. longer accurate. Fix access control entry.
  1327. * typeck.c (build_unary_op): Pedwarn about taking the address of or
  1328. incrementing a cast to non-reference type.
  1329. (build_modify_expr): Use convert instead of convert_force again.
  1330. * search.c (get_base_distance): Use IS_AGGR_TYPE_CODE to check for
  1331. class type, not == RECORD_TYPE.
  1332. * decl.c (grokdeclarator): Cope with grokfndecl returning NULL_TREE.
  1333. * typeck2.c (report_case_error): #if 0 out.
  1334. * lex.c (real_yylex): Lose RANGE.
  1335. * parse.y: Likewise.
  1336. Tue Jun 7 18:17:35 1994 Jason Merrill <jason@deneb.cygnus.com>
  1337. * parse.y (simple_stmt, case ranges): Use ELLIPSIS instead of RANGE.
  1338. Mon Jun 6 19:39:57 1994 Jason Merrill <jason@deneb.cygnus.com>
  1339. * typeck.c (build_c_cast): Don't shortcut conversions to the same
  1340. type. Don't replace consts with their values here, since that's now
  1341. done in cp_convert.
  1342. * cvt.c (cp_convert): When converting to bool, take
  1343. integer_zero_node to false_node and all other INTEGER_CSTs to
  1344. true_node.
  1345. (build_type_conversion): Don't complain about multiple conversions
  1346. to float if we're not really converting.
  1347. Fri Jun 3 02:10:56 1994 Jason Merrill <jason@deneb.cygnus.com>
  1348. Implement 'extern template class A<int>;' syntax for suppressing
  1349. specific implicit instantiations.
  1350. * cp-tree.h: Update prototypes for do_*_instantiation.
  1351. * pt.c (do_pending_expansions): Don't compile 'extern' explicit
  1352. instantiations.
  1353. (do_function_instantiation): Set DECL_EXTERNAL on 'extern' explicit
  1354. instantiations.
  1355. (do_type_instantiation): Likewise.
  1356. * parse.y (explicit_instantiation): Support 'extern template class
  1357. A<int>;' syntax.
  1358. * decl.c (start_function): Don't modify the settings of TREE_PUBLIC
  1359. and DECL_EXTERNAL on explicit instantiations.
  1360. * cvt.c (cp_convert): Replace constants with their values before
  1361. converting.
  1362. (cp_convert): Consistently use 'e' instead of 'expr'.
  1363. Thu Jun 2 03:53:30 1994 Jason Merrill <jason@deneb.cygnus.com>
  1364. * typeck2.c (build_x_arrow): Resolve OFFSET_REFs first.
  1365. Wed Jun 1 18:57:35 1994 Jason Merrill <jason@deneb.cygnus.com>
  1366. * typeck2.c (digest_init): Handle initializing a pmf with an
  1367. overloaded method.
  1368. * typeck.c (build_ptrmemfunc): Handle overloaded methods.
  1369. * decl.c (pushtag): Use build_decl to make TYPE_DECLs.
  1370. (xref_defn_tag): Likewise.
  1371. * pt.c (process_template_parm): Likewise.
  1372. (lookup_template_class): Likewise.
  1373. (push_template_decls): Likewise.
  1374. (instantiate_class_template): Likewise.
  1375. (create_nested_upt): Likewise.
  1376. * class.c (finish_struct): Don't try to set DECL_CLASS_CONTEXT on
  1377. TYPE_DECLs.
  1378. * typeck.c (convert_arguments): Make sure type is not NULL before
  1379. checking its TREE_CODE.
  1380. Wed Jun 1 17:40:39 1994 Mike Stump <mrs@cygnus.com>
  1381. * class.c (get_derived_offset): New routine.
  1382. * class.c (finish_base_struct): Make sure we set BINFO_VTABLE and
  1383. BINFO_VIRTUALS when we choose a new base class to inherit from.
  1384. * class.c (modify_one_vtable): Use get_derived_offset to get the
  1385. offset to the most base class subobject that we derived this binfo
  1386. from.
  1387. * class.c (finish_struct): Move code to calculate the
  1388. DECL_FIELD_BITPOS of the vfield up, as we need might need it for
  1389. new calls to get_derived_offset in modify_one_vtable.
  1390. Wed Jun 1 16:50:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  1391. * init.c (build_member_call): Use build_pointer_type instead of
  1392. TYPE_POINTER_TO.
  1393. Wed Jun 1 11:11:15 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  1394. * decl.c (grokdeclarator): Make sure we have a DNAME set before we
  1395. try to use it in an error.
  1396. Wed Jun 1 09:48:49 1994 Mike Stump <mrs@cygnus.com>
  1397. * typeck.c (convert_arguments, convert_for_initialization): Don't
  1398. strip NOP_EXPRs, when we are converting to a reference.
  1399. Wed Jun 1 01:11:38 1994 Jason Merrill <jason@deneb.cygnus.com>
  1400. * typeck.c (build_modify_expr): Don't dereference references when
  1401. initializing them.
  1402. * decl2.c (grokfield): Don't check for grokdeclarator returning
  1403. error_mark_node any more.
  1404. * decl.c (grokfndecl): Return NULL_TREE instead of error_mark_node.
  1405. (start_method): Return void_type_node instead of error_mark_node.
  1406. * typeck.c (build_modify_expr): Resolve offset refs earlier.
  1407. Tue May 31 16:06:58 1994 Jason Merrill <jason@deneb.cygnus.com>
  1408. * call.c (build_method_call): Resolve OFFSET_REFs in the object.
  1409. * typeck.c (build_modify_expr): Dereference references before trying
  1410. to assign to them.
  1411. * call.c (build_method_call): Don't confuse type conversion
  1412. operators with constructors.
  1413. * typeck2.c (build_functional_cast): Just call build_c_cast if there
  1414. was only one parameter.
  1415. * method.c (build_typename_overload): Don't set
  1416. IDENTIFIER_GLOBAL_VALUE on these identifiers.
  1417. * decl.c (grok_op_properties): Warn about defining a type conversion
  1418. operator that converts to a base class (or reference to it).
  1419. * cvt.c (cp_convert): Don't try to use a type conversion operator
  1420. when converting to a base class.
  1421. (build_type_conversion_1): Don't call constructor_name_full on an
  1422. identifier.
  1423. * cp-tree.h (DERIVED_FROM_P): Should be self-explanatory.
  1424. * decl.c (start_decl): Don't complain that error_mark_node is an
  1425. incomplete type.
  1426. (finish_decl): Check for type == error_mark_node.
  1427. Mon May 30 23:38:55 1994 Jason Merrill <jason@deneb.cygnus.com>
  1428. * decl.c (start_function): Set DECL_DEFER_OUTPUT on implicit
  1429. instantiations and inline members.
  1430. * spew.c (yylex): Set looking_for_template if the next token is a '<'.
  1431. * lex.h: Declare looking_for_template.
  1432. * decl.c (lookup_name_real): Use looking_for_template to arbitrate
  1433. between type and template interpretations of an identifier.
  1434. Sat May 28 04:07:40 1994 Jason Merrill <jason@deneb.cygnus.com>
  1435. * pt.c (instantiate_template): Zero out p if we found a
  1436. specialization.
  1437. * decl.c (grokdeclarator): Elucidate warning.
  1438. (grokdeclarator): If pedantic AND -ansi, complain about long long.
  1439. Make explicit instantiation work reasonably. It is now appropriate
  1440. to deprecate the use of -fexternal-templates.
  1441. * pt.c (instantiate_template): Set DECL_TEMPLATE_SPECIALIZATION or
  1442. DECL_IMPLICIT_INSTANTIATION on fndecl as appropriate.
  1443. (end_template_instantiation): Reflect changes in USE_TEMPLATE
  1444. semantics.
  1445. (do_pending_expansions): if (!flag_implicit_templates) DECIDE(0);
  1446. (do_function_instantiation): Don't set EXPLICIT_INST if
  1447. flag_external_templates is set. Do set TREE_PUBLIC and DECL_EXTERN
  1448. appropriately otherwise.
  1449. (do_type_instantiation): Set interface info for class. Set
  1450. TREE_PUBLIC and DECL_EXTERN for methods. Do none of this if
  1451. flag_external_templates is set.
  1452. * parse.y: Reflect changes in USE_TEMPLATE semantics.
  1453. * decl2.c: New flag flag_implicit_templates determines whether or
  1454. not implicit instantiations get emitted. This flag currently
  1455. defaults to true, and must be true for -fexternal-templates to work.
  1456. (finish_file): Consider flag_implement_inlines when
  1457. setting DECL_EXTERNAL. Consider flag_implicit_templates when
  1458. deciding whether or not to emit a static copy.
  1459. * decl.c (start_function): Set TREE_PUBLIC and DECL_EXTERNAL
  1460. properly for template instantiations.
  1461. (start_method): Set DECL_IMPLICIT_INSTANTIATION on methods of a
  1462. template class.
  1463. * cp-tree.h (CLASSTYPE_USE_TEMPLATE): Change semantics.
  1464. (DECL_USE_TEMPLATE): Parallel macro for FUNCTION and VAR_DECLs.
  1465. (various others): Accessor macros for the above.
  1466. Fri May 27 13:57:40 1994 Jason Merrill <jason@deneb.cygnus.com>
  1467. * typeck.c (build_binary_op_nodefault): Division by constant zero is
  1468. an error.
  1469. Fri May 27 13:50:15 1994 Mike Stump <mrs@cygnus.com>
  1470. * class.c (override_one_vtable): Don't modify things we don't own.
  1471. Fri May 27 01:42:58 1994 Jason Merrill <jason@deneb.cygnus.com>
  1472. * decl.c (finish_decl): Don't postpone processing the initializer of
  1473. a decl with DECL_EXTERNAL set, and do call rest_of_compilation for a
  1474. PUBLIC const at toplevel.
  1475. (grokdeclarator): pedwarn about initializing non-const or
  1476. non-integral statics in the class body.
  1477. * decl.c (pushtag): Don't try to set DECL_CLASS_CONTEXT on a
  1478. TYPE_DECL.
  1479. * call.c (convert_harshness): Dereference reference on rhs before
  1480. proceeding, properly grok passing const things to non-const
  1481. references.
  1482. * typeck.c (build_unary_op): Soften error about taking the address
  1483. of main() to a pedwarn.
  1484. * lex.c (default_copy_constructor_body): Unambiguously specify base
  1485. classes (i.e. A((const class ::A&)_ctor_arg) ).
  1486. (default_assign_ref_body): Likewise.
  1487. Thu May 26 13:13:55 1994 Gerald Baumgartner <gb@mexican.cygnus.com>
  1488. * decl2.c (grokfield): Don't complain about local signature
  1489. method declaration without definition.
  1490. * call.c (convert_harshness): If `type' is a signature pointer
  1491. and `parmtype' is a pointer to a signature, just return 0. We
  1492. don't really convert in this case; it's a result of making the
  1493. `this' parameter of a signature method a signature pointer.
  1494. * call.c (build_method_call): Distinguish calling the default copy
  1495. constructor of a signature pointer/reference from a signature
  1496. member function call.
  1497. Thu May 26 12:56:25 1994 Jason Merrill <jason@deneb.cygnus.com>
  1498. * decl2.c (grokfield): Don't set TREE_PUBLIC on member function
  1499. declarations.
  1500. * decl.c (duplicate_decls): A previous function declaration as
  1501. static overrides a subsequent non-static definition.
  1502. (grokdeclarator): Don't set TREE_PUBLIC on inline method
  1503. declarations.
  1504. Wed May 25 14:36:38 1994 Jason Merrill <jason@deneb.cygnus.com>
  1505. * decl.c (grokdeclarator): Handle initialization of static const
  1506. members.
  1507. (finish_decl): Likewise.
  1508. * decl2.c (grokfield): Allow initialization of static const members
  1509. even when pedantic.
  1510. * decl2.c (grokfield): Deal with grokdeclarator returning
  1511. error_mark_node.
  1512. * decl.c (grok_ctor_properties): Return 0 for A(A) constructor.
  1513. (grokfndecl): Check the return value of grok_ctor_properties.
  1514. (start_method): Likewise.
  1515. * parse.y (absdcl): Expand type_quals inline.
  1516. Tue May 24 19:10:32 1994 Jason Merrill <jason@deneb.cygnus.com>
  1517. * decl.c (pushtag): Use IS_AGGR_TYPE rather than checking for a
  1518. RECORD_TYPE.
  1519. Tue May 24 18:09:16 1994 Per Bothner <bothner@kalessin.cygnus.com>
  1520. * cp-tree.h (VTABLE_NAME_FORMAT): If flag_vtable_thunks,
  1521. always use "__vt_%s".
  1522. * decl2.c (finish_vtable_vardecl): Don't consider abstract virtuals
  1523. when looking for a "sentinal" method (to decide on emitting vtables).
  1524. * decl2.c (finish_file): Scan all decls for thunks that need
  1525. to be emitted.
  1526. * decl2.c (finish_vtable_vardecl): Don't bother calling emit_thunk.
  1527. * method.c (make_thunk): Use a more meaningful label. If there
  1528. exists a matching top-level THUNK_DECL re-use it; otherwise
  1529. create a new THUNK_DECL (and declare it).
  1530. * method.c (emit_thunk): Make thunk external/public depending
  1531. on the underlying method.
  1532. Tue May 24 00:22:04 1994 Jason Merrill <jason@deneb.cygnus.com>
  1533. * pt.c (tsubst): Use lookup_name_nonclass to find guiding decls, not
  1534. lookup_name.
  1535. * call.c (build_overload_call_real): Don't immediately pick a
  1536. function which matches perfectly.
  1537. * decl.c (grokdeclarator): Use c_build_type_variant for arrays.
  1538. (grokdeclarator): Warn about, and throw away, cv-quals attached to a
  1539. reference (like 'int &const j').
  1540. * typeck.c (convert_arguments): Don't mess with i for methods.
  1541. * call.c (build_method_call): Pass the function decl to
  1542. convert_arguments.
  1543. * typeck.c (comp_ptr_ttypes_real): New function. Implements the
  1544. checking for which multi-level pointer conversions are allowed.
  1545. (comp_target_types): Call it.
  1546. (convert_for_assignment): Check const parity on the ultimate target
  1547. type, too. And make those warnings pedwarns.
  1548. Mon May 23 14:11:24 1994 Jason Merrill <jason@deneb.cygnus.com>
  1549. * error.c (dump_char): Use TARGET_* for character constants.
  1550. Mon May 23 13:03:03 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  1551. * tree.c (debug_no_list_hash): Make static.
  1552. * decl.c (decls_match): Say the types don't match if newdecl ends up
  1553. with a null type, after we've checked if olddecl does.
  1554. (pushdecl): Check if the decls themselves match before looking for
  1555. an extern redeclared as static, to avoid inappropriate and incorrect
  1556. warnings.
  1557. Fri May 20 14:04:34 1994 Jason Merrill <jason@deneb.cygnus.com>
  1558. * decl.c (grokdeclarator): Make warning about duplicate short, etc.
  1559. a pedwarn.
  1560. * typeck.c (build_c_cast): Casting to function or method type is an
  1561. error.
  1562. * class.c (finish_struct): Make warning for anonymous class with no
  1563. instances a pedwarn.
  1564. * Makefile.in (stamp-parse): Expect a s/r conflict.
  1565. * typeck.c (build_modify_expr): pedwarn about using a non-lvalue
  1566. cast as an lvalue.
  1567. Thu May 19 12:08:48 1994 Jason Merrill <jason@deneb.cygnus.com>
  1568. * cvt.c (type_promotes_to): Make sure bool promotes to int rather
  1569. than unsigned on platforms where sizeof(char)==sizeof(int).
  1570. Wed May 18 14:27:06 1994 Jason Merrill <jason@deneb.cygnus.com>
  1571. * typeck.c (build_c_cast): Tack on a NOP_EXPR when casting to
  1572. another variant.
  1573. (build_modify_expr): Don't strip NOP_EXPRs, and don't get tricky
  1574. and treat them as lvalues.
  1575. * decl.c (shadow_tag): Do complain about forward declarations of
  1576. enums and empty declarations.
  1577. * parse.y: Don't complain about forward declarations of enums and
  1578. empty declarations.
  1579. * typeck.c (convert_for_assignment): Complain about changing
  1580. the signedness of a pointer's target type.
  1581. * parse.y (stmt): Move duplicated code for checking case values from
  1582. here.
  1583. * decl2.c (check_cp_case_value): To here. And add a call to
  1584. constant_expression_warning.
  1585. * typeck.c (convert_for_assignment): Don't complain about assigning
  1586. a negative value to bool.
  1587. * decl.c (init_decl_processing): Make bool unsigned.
  1588. * class.c (finish_struct): Allow bool bitfields.
  1589. Wed May 18 12:35:27 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
  1590. * Make-lang.in (c++.install-man): Get g++.1 from $(srcdir)/cp.
  1591. Wed May 18 03:28:35 1994 Jason Merrill <jason@deneb.cygnus.com>
  1592. * cvt.c (build_type_conversion): Lose special handling of
  1593. truthvalues.
  1594. * search.c (dfs_pushdecls): Improve shadowing warning.
  1595. Tue May 17 13:34:46 1994 Jason Merrill <jason@deneb.cygnus.com>
  1596. * init.c (build_delete): Throw away const and volatile on `this'.
  1597. * decl.c (finish_enum): Put the constants in TYPE_VALUES again,
  1598. rather than the enumerators.
  1599. (pushtag): s/cdecl/c_decl/g
  1600. Mon May 16 23:04:01 1994 Stephen R. van den Berg <berg@pool.informatik.rwth-aachen.de>
  1601. * cp/typeck.c (common_type): Attribute merging.
  1602. (comp_types): Utilize COMP_TYPE_ATTRIBUTES macro.
  1603. * cp/parse.y: Revamp attribute parsing.
  1604. Mon May 16 01:40:34 1994 Jason Merrill <jason@deneb.cygnus.com>
  1605. * decl.c (shadow_tag): Also check for inappropriate use of auto and
  1606. register.
  1607. * method.c (build_overload_name): Clarify that the illegal case is a
  1608. pointer or reference to array of unknown bound.
  1609. * error.c (dump_type_prefix): Print references to arrays properly.
  1610. * typeck.c (various): Be more helpful in pointer
  1611. comparison diagnostics.
  1612. * tree.c (lvalue_p): MODIFY_EXPRs are lvalues again. Isn't this
  1613. fun?
  1614. * parse.y: Also catch an error after valid stmts.
  1615. * search.c (dfs_init_vbase_pointers): Don't abort because `this' is
  1616. const.
  1617. * typeck.c (convert_for_initialization): If call to
  1618. convert_to_reference generated a diagnostic, print out the parm
  1619. number and function decl if any.
  1620. * errfn.c (cp_thing): Check atarg1 to determine whether or not we're
  1621. specifying a line, not atarg.
  1622. * tree.c (build_cplus_method_type): Always make `this' const.
  1623. * decl2.c (grokclassfn): If -fthis-is-variable and this function is
  1624. a constructor or destructor, make `this' non-const.
  1625. * typeck.c (build_modify_expr): Don't warn specially about
  1626. assignment to `this' here anymore, since it will be caught by the
  1627. usual machinery.
  1628. * various: Disallow specific GNU extensions (variable-size arrays,
  1629. etc.) when flag_ansi is set, not necessarily when pedantic is set,
  1630. so that people can compile with -pedantic-errors for tighter const
  1631. checking and such without losing desirable extensions.
  1632. * typeck2.c (build_functional_cast): Call build_method_call with
  1633. LOOKUP_PROTECT.
  1634. (process_init_constructor): Only process FIELD_DECLs.
  1635. * decl.c (finish_decl): Also force static consts with no explicit
  1636. initializer that need constructing into the data segment.
  1637. * init.c (build_delete): Undo last patch, as it interferes with
  1638. automatic cleanups.
  1639. Sat May 14 01:59:31 1994 Jason Merrill <jason@deneb.cygnus.com>
  1640. * call.c, class.h, cp-tree.h, cvt.c, decl2.c: Lose old overloading
  1641. code.
  1642. * init.c (build_delete): pedwarn about using plain delete to delete
  1643. an array.
  1644. Fri May 13 16:45:07 1994 Jason Merrill <jason@deneb.cygnus.com>
  1645. * typeck.c (comp_target_types): Be more helpful in contravariance
  1646. warnings, and make them pedwarns.
  1647. * decl.c (grokdeclarator): Use decl_context to decide whether or not
  1648. this is an access declaration.
  1649. * class.c (finish_struct_bits): Set TYPE_HAS_INT_CONVERSION if it
  1650. has a conversion to enum or bool, too.
  1651. Fri May 13 16:31:27 1994 Mike Stump <mrs@cygnus.com>
  1652. * method.c (emit_thunk): Make declaration for
  1653. current_call_is_indirect local (needed for hppa).
  1654. Fri May 13 16:16:37 1994 Jason Merrill <jason@deneb.cygnus.com>
  1655. * pt.c (uses_template_parms): Grok BOOLEAN_TYPE.
  1656. (tsubst): Likewise.
  1657. Fri May 13 16:23:32 1994 Mike Stump <mrs@cygnus.com>
  1658. * pt.c (tsubst): If there is already a function for this expansion,
  1659. use it.
  1660. * pt.c (instantiate_template): Likewise.
  1661. Fri May 13 10:30:42 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  1662. * parse.y (implicitly_scoped_stmt, simple_stmt case): Use
  1663. kept_level_p for MARK_ENDS argument to expand_end_bindings, to avoid
  1664. generating debug info for unemitted symbols on some systems.
  1665. * cp-tree.h (build_static_cast, build_reinterpret_cast,
  1666. build_const_cast): Add declarations.
  1667. Fri May 13 09:50:31 1994 Mike Stump <mrs@cygnus.com>
  1668. * search.c (expand_indirect_vtbls_init): Fix breakage from Apr 27
  1669. fix. We now try get_binfo, and if that doesn't find what we want,
  1670. we go back to the old method, which still sometimes fails.
  1671. Fri May 13 01:43:18 1994 Jason Merrill <jason@deneb.cygnus.com>
  1672. * parse.y (initdcl): Call cplus_decl_attributes on the right
  1673. variable.
  1674. * decl2.c (cplus_decl_attributes): Don't call decl_attributes for
  1675. void_type_node.
  1676. * typeck.c (build_binary_op_nodefault): Change result_type for
  1677. comparison ops to bool.
  1678. (build_binary_op): Convert args of && and || to bool.
  1679. * cvt.c (build_default_binary_type_conversion): Convert args of &&
  1680. and || to bool.
  1681. (build_default_unary_type_conversion): Convert arg of ! to bool.
  1682. (type_promotes_to): bool promotes to int.
  1683. Fri May 13 01:43:18 1994 Mike Stump <mrs@cygnus.com>
  1684. Implement the new builtin `bool' type.
  1685. * typeck.c (build_binary_op_nodefault): Convert args of && and || to
  1686. bool.
  1687. (build_unary_op): Convert arg of ! to bool.
  1688. * parse.y: Know true and false. Use bool_truthvalue_conversion.
  1689. * method.c (build_overload_value): Know bool.
  1690. (build_overload_name): Likewise.
  1691. * lex.c (init_lex): Set up RID_BOOL.
  1692. * gxx.gperf: Add bool, true, false.
  1693. * error.c (*): Know bool.
  1694. * decl.c (init_decl_processing): Set up bool, true, false.
  1695. * cvt.c (cp_convert): Handle conversion to bool.
  1696. (build_type_conversion): Likewise.
  1697. * *.c: Accept bool where integers and enums are accepted (use
  1698. INTEGRAL_CODE_P macro).
  1699. Thu May 12 19:13:54 1994 Richard Earnshaw <rwe11@cl.cam.ac.uk>
  1700. * g++.c: Use #ifdef for __MSDOS__, not #if.
  1701. Thu May 12 18:05:18 1994 Mike Stump <mrs@cygnus.com>
  1702. * decl2.c (lang_f_options): Handle -fshort-temps. -fshort-temps
  1703. gives old behavior , and destroys temporaries earlier. Default
  1704. behavior now conforms to the ANSI working paper.
  1705. Thu May 12 14:45:35 1994 Jason Merrill <jason@deneb.cygnus.com>
  1706. * typeck.c (build_modify_expr): Understand MODIFY_EXPR as an lvalue.
  1707. Use convert_force to convert the result of a recursive call when we
  1708. are dealing with a NOP_EXPR. Don't automatically wrap MODIFY_EXPRs
  1709. in COMPOUND_EXPRs any more.
  1710. (various): Lose pedantic_lvalue_warning.
  1711. (unary_complex_lvalue): Understand MODIFY_EXPR.
  1712. * cvt.c (convert_to_reference): Allow DECL to be error_mark_node if
  1713. we don't know what we're initializing.
  1714. Wed May 11 01:59:36 1994 Jason Merrill <jason@deneb.cygnus.com>
  1715. * cvt.c (convert_to_reference): Modify to use convtype parameter.
  1716. Only create temporaries when initializing a reference, not when
  1717. casting.
  1718. (cp_convert): New main function.
  1719. (convert): Call cp_convert.
  1720. * cvt.c, decl.c, typeck.c: Fix calls to convert_to_reference.
  1721. * cp-tree.h (CONV_*): New constants used by conversion code for
  1722. selecting conversions to perform.
  1723. * tree.c (lvalue_p): MODIFY_EXPRs are no longer lvalues.
  1724. * typeck.c (build_{static,reinterpret,const_cast): Stubs that just
  1725. call build_c_cast.
  1726. * parse.y: Add {static,reinterpret,const}_cast.
  1727. * gxx.gperf: Likewise.
  1728. * typeck.c (common_type): Allow methods with basetypes of different
  1729. UPTs.
  1730. (comptypes): Deal with UPTs.
  1731. (build_modify_expr): Wrap all MODIFY_EXPRs in a COMPOUND_EXPR.
  1732. * pt.c (end_template_decl): Check for multiple definitions of member
  1733. templates.
  1734. * call.c (build_method_call): Complain about calling an abstract
  1735. virtual from a constructor.
  1736. * typeck.c (pointer_int_sum): Check for the integer operand being 0
  1737. after checking the validity of the pointer operand.
  1738. * typeck2.c (digest_init): Pedwarn about string initializer being
  1739. too long.
  1740. Tue May 10 12:10:28 1994 Jason Merrill <jason@deneb.cygnus.com>
  1741. * decl.c (push_overloaded_decl): Only throw away a builtin if the
  1742. decl in question is the artificial one.
  1743. * parse.y (simple_stmt, switch): Use implicitly_scoped_stmt because
  1744. expand_{start,end}_case cannot happen in the middle of a block.
  1745. * cvt.c (build_type_conversion_1): Use convert again.
  1746. Tue May 10 11:52:04 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  1747. * typeck2.c (digest_init): Make sure we check for signed and
  1748. unsigned chars as well when warning about string initializers.
  1749. * init.c (emit_base_init): Check if there's a DECL_NAME on the
  1750. member before trying to do an initialization for it.
  1751. Tue May 10 11:34:37 1994 Mike Stump <mrs@cygnus.com>
  1752. * except.c: Don't do anything useful when cross compiling.
  1753. Tue May 10 03:04:13 1994 Jason Merrill <jason@deneb.cygnus.com>
  1754. * decl.c (duplicate_decls): Fix up handling of builtins yet again.
  1755. (push_overloaded_decl): Likewise.
  1756. * cvt.c (convert): Don't look for void type conversion.
  1757. Mon May 9 18:05:41 1994 Jason Merrill <jason@deneb.cygnus.com>
  1758. * init.c (do_friend): Only do a pushdecl for friends, not
  1759. pushdecl_top_level.
  1760. Mon May 9 13:36:34 1994 Jim Wilson <wilson@sphagnum.cygnus.com>
  1761. * decl.c (lookup_name_current_level): Put empty statement after
  1762. the label OUT to make the code valid C.
  1763. Mon May 9 12:20:57 1994 Jason Merrill <jason@deneb.cygnus.com>
  1764. * typeck.c (build_binary_op_nodefault): Only complain about
  1765. comparing void * and a function pointer if void * is smaller.
  1766. Sun May 8 01:29:13 1994 Jason Merrill <jason@deneb.cygnus.com>
  1767. * decl.c (lookup_name_current_level): Move through temporary binding
  1768. levels.
  1769. * parse.y (already_scoped_stmt): Revive.
  1770. (simple_stmt): Use it again.
  1771. * decl.c (poplevel): Always call poplevel recursively if we're
  1772. dealing with a temporary binding level.
  1773. Sat May 7 10:52:28 1994 Mike Stump <mrs@cygnus.com>
  1774. * decl.c (finish_decl): Make sure we run cleanups for initial values
  1775. of decls. Cures memory leak.
  1776. * decl.c (expand_static_init): Likewise for static variables.
  1777. * decl2.c (finish_file): Likewise for globals.
  1778. Sat May 7 03:57:44 1994 Jason Merrill <jason@deneb.cygnus.com>
  1779. * typeck.c (commonparms): Don't complain about redefining default
  1780. args.
  1781. * decl.c (duplicate_decls): Don't complain twice about conflicting
  1782. function decls.
  1783. (decls_match): Don't look at default args.
  1784. (redeclaration_error_message): Complain about redefining default
  1785. args.
  1786. * call.c (build_overload_call_real): Also deal with guiding
  1787. declarations coming BEFORE the template decl.
  1788. * pt.c (unify): Allow different parms to have different
  1789. cv-qualifiers.
  1790. (unify): Allow trivial conversions on non-template parms.
  1791. Fri May 6 03:53:23 1994 Jason Merrill <jason@deneb.cygnus.com>
  1792. * pt.c (tsubst): Support OFFSET_TYPEs.
  1793. (unify): Likewise.
  1794. * decl2.c (finish_decl_parsing): Call push_nested_class with a type.
  1795. * init.c (build_offset_ref): Fix error message.
  1796. * search.c (lookup_field): Likewise.
  1797. * call.c (build_scoped_method_call): Pass binfo to
  1798. build_method_call.
  1799. * typeck.c (build_object_ref): Likewise.
  1800. * typeck2.c (binfo_or_else): Don't return a _TYPE.
  1801. * class.c (finish_struct): Don't complain about re-use of inherited
  1802. names or shadowing of type decls.
  1803. * decl.c (pushdecl_class_level): Likewise.
  1804. * decl.c (finish_enum): Set the type of all the enums.
  1805. * class.c (finish_struct): Don't get confused by access decls.
  1806. * cp-tree.h (TYPE_MAIN_DECL): New macro to get the _DECL for a
  1807. _TYPE. You can stop using TYPE_NAME for that now.
  1808. * parse.y: Lose doing_explicit (check $0 instead).
  1809. * gxx.gperf: 'template' now has a RID.
  1810. * lex.h (rid): Likewise.
  1811. * lex.c (init_lex): Set up the RID for 'template'.
  1812. * parse.y (type_specifier_seq): typed_typespecs or
  1813. nonempty_type_quals. Use it.
  1814. (handler_args): Fix bogus syntax.
  1815. (raise_identifier{,s}, optional_identifier): Lose.
  1816. * except.c (expand_start_catch_block): Use grokdeclarator to parse
  1817. the catch variable.
  1818. (init_exception_processing): The second argument to
  1819. __throw_type_match is ptr_type_node.
  1820. Fri May 6 07:18:54 1994 Chip Salzenberg <chip@fin.uucp>
  1821. [ change propagated from c-decl.c of snapshot 940429 ]
  1822. * cp/decl.c (finish_decl): Setting asmspec_tree should not
  1823. zero out the old RTL.
  1824. Fri May 6 01:25:38 1994 Mike Stump <mrs@cygnus.com>
  1825. Add alpha exception handling support to the compiler.
  1826. Quick and dirty backend in except.c.
  1827. * cp/*: Remove most remnants of old exception handling support.
  1828. * decl.c (finish_function): Call expand_exception_blocks to put
  1829. the exception hanlding blocks at the end of the function.
  1830. * dec.c (hack_incomplete_structures): Make sure expand_decl_cleanup
  1831. comes after expand_decl_init.
  1832. * except.c: Reimplementation.
  1833. * expr.c (cplus_expand_expr): Handle THROW_EXPRs.
  1834. * lex.c (init_lex): Always have catch, try and throw be reserved
  1835. words, so that we may always parse exception handling.
  1836. * parse.y: Cleanup to support new interface into exception handling.
  1837. * tree.def (THROW_EXPR): Add.
  1838. Thu May 5 17:35:37 1994 Jason Merrill <jason@deneb.cygnus.com>
  1839. * parse.y (simple_stmt, for loops): Use implicitly_scoped_stmt.
  1840. (various): Lose .kindof_pushlevel and partially_scoped_stmt.
  1841. Thu May 5 16:17:27 1994 Kung Hsu <kung@mexican.cygnus.com>
  1842. * parse.y (already_scoped_stmt): Move expand_end_binding() to
  1843. fix the unmatched LBB/LBE in stabs.
  1844. Thu May 5 14:36:17 1994 Jason Merrill <jason@deneb.cygnus.com>
  1845. * decl.c (set_nested_typename): Set TREE_MANGLED on the new
  1846. identifiers.
  1847. (pushdecl): Check TREE_MANGLED.
  1848. (xref_tag): Likewise.
  1849. * cp-tree.h (TREE_MANGLED): This identifier is a
  1850. DECL_NESTED_TYPENAME (named to allow for future use to denote
  1851. mangled function names as well).
  1852. Implement inconsistency checking specified in [class.scope0].
  1853. * decl.c (lookup_name_real): Don't set ICV here after all.
  1854. (finish_enum): Also set the type of the enumerators themselves.
  1855. (build_enumerator): Put the CONST_DECL in the list instead of its
  1856. initial value.
  1857. (pushdecl_class_level): Check inconsistent use of a name in the
  1858. class body.
  1859. * class.c (finish_struct): Check inconsistent use of a name in the
  1860. class body. Don't set DECL_CONTEXT on types here anymore.
  1861. * parse.y (qualified_type_name): Note that the identifier has now
  1862. been used (as a type) in the class body.
  1863. * lex.c (do_identifier): Note that the identifier has now been used
  1864. (as a constant) in the class body.
  1865. * error.c (dump_decl): Print type and enum decls better.
  1866. Thu May 5 09:35:35 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  1867. * typeck.c (build_modify_expr): Warn about assignment to `this'.
  1868. Wed May 4 15:55:49 1994 Jason Merrill <jason@deneb.cygnus.com>
  1869. * init.c (build_delete): Use the global operator delete when
  1870. requested.
  1871. * decl.c (lookup_name_real): If we find the type we're looking in a
  1872. base class while defining a class, set IDENTIFIER_CLASS_VALUE for
  1873. the type.
  1874. * class.c (finish_struct): Remove a couple of dependencies on
  1875. language linkage.
  1876. * decl.c (pushtag): Classes do nest in extern "C" blocks.
  1877. (pushdecl): Only set DECL_NESTED_TYPENAME on the canonical one for
  1878. the type.
  1879. (pushtag): Remove another dependency on the language linkage.
  1880. * lex.c (cons_up_default_function): Don't set DECL_CLASS_CONTEXT to
  1881. a const-qualified type.
  1882. * decl.c (push_overloaded_decl): Throw away built-in decls here.
  1883. (duplicate_decls): Instead of here.
  1884. Wed May 4 15:27:40 1994 Per Bothner <bothner@kalessin.cygnus.com>
  1885. * typeck.c (get_member_function_from_ptrfunc): Do The Right
  1886. Thing (I hope) if we're using thunks.
  1887. Wed May 4 13:52:38 1994 Jason Merrill <jason@deneb.cygnus.com>
  1888. * parse.y (specialization): aggr template_type_name ';'.
  1889. (named_class_head_sans_basetype): Use it.
  1890. (explicit_instantiation): Likewise.
  1891. (tmpl.2): Revert.
  1892. * cvt.c (build_type_conversion_1): Use convert_for_initialization,
  1893. rather than convert, to do conversions after the UDC.
  1894. * cp-tree.h (SHARED_MEMBER_P): This member is shared between all
  1895. instances of the class.
  1896. * search.c (lookup_field): If the entity found by two routes is the
  1897. same, it's not ambiguous.
  1898. Wed May 4 12:10:00 1994 Per Bothner <bothner@kalessin.cygnus.com>
  1899. * decl.c (lookup_name_real): Check for a NULL TREE_VALUE,
  1900. to prevent the compiler from crashing ...
  1901. Wed May 4 11:19:45 1994 Jason Merrill <jason@deneb.cygnus.com>
  1902. * call.c (build_method_call): If we don't have an object, check
  1903. basetype_path to figure out where to look up the function.
  1904. * typeck.c (convert_for_initialization): Pass TYPE_BINFO (type) to
  1905. build_method_call in case exp is NULL_TREE.
  1906. Tue May 3 16:02:53 1994 Per Bothner <bothner@kalessin.cygnus.com>
  1907. Give a vtable entries a unique named type, for the sake of gdb.
  1908. * class.c (build_vtable_entry): The address of a thunk now has
  1909. type vtable_entry_type, not ptr_type_node.
  1910. * method.c (make_thunk): Fix type of THUNK_DECL.
  1911. * class.c (add_virtual_function, override_one_vtable): Use
  1912. vfunc_ptr_type_node, instead of ptr_type_node.
  1913. * cp-tree.h (vfunc_ptr_type_node): New macro.
  1914. * decl.c (init_decl_processing): Make vtable_entry_type
  1915. be a unique type of pointer to a unique function type.
  1916. Tue May 3 09:20:44 1994 Jason Merrill <jason@deneb.cygnus.com>
  1917. * parse.y (do_explicit): Sets doing_explicit to 1.
  1918. (explicit_instantiation): Use do_explicit rather than TEMPLATE
  1919. directly, add "do_explicit error" rule.
  1920. (datadef): Set doing_explicit to 0 after an explicit instantiation.
  1921. (tmpl.2): Don't instantiate if we see a ';' unless we're doing an
  1922. explicit instantiation.
  1923. (named_class_head_sans_basetype): Remove aggr template_type_name
  1924. ';' again.
  1925. Mon May 2 23:17:21 1994 Jason Merrill <jason@deneb.cygnus.com>
  1926. * search.c (lookup_nested_tag): Lose.
  1927. * decl2.c (grokfield): Set DECL_CONTEXT on TYPE_DECLs.
  1928. (lookup_name_nonclass): Lose.
  1929. * decl.c (poplevel_class): Add force parameter.
  1930. (lookup_name_real): Fix handling of explicit scoping which specifies
  1931. a class currently being defined. Add 'nonclass' argument.
  1932. (lookup_name, lookup_name_nonclass): Shells for lookup_name_real.
  1933. * class.c (finish_struct): Don't unset IDENTIFIER_CLASS_VALUEs here.
  1934. (popclass): Force clearing of IDENTIFIER_CLASS_VALUEs if we're being
  1935. called from finish_struct.
  1936. Mon May 2 19:06:21 1994 Per Bothner <bothner@kalessin.cygnus.com>
  1937. * decl.c (init_decl_processing), cp-tree.h: Removed memptr_type.
  1938. (It seeems redundant, given build_ptrmemfunc_type.)
  1939. * typeck.c (get_member_function_from_ptrfunc), gc.c (build_headof,
  1940. build_classof): Use vtable_entry_type instead of memptr_type.
  1941. * method.c (emit_thunk): Call poplevel with functionbody==0
  1942. to prevent DECL_INITIAL being set to a BLOCK.
  1943. Mon May 2 15:02:11 1994 Jason Merrill <jason@deneb.cygnus.com>
  1944. * parse.y (named_class_head_sans_basetype): Add "aggr
  1945. template_type_name ';'" rule for forward declaration of
  1946. specializations.
  1947. Mon May 2 15:02:11 1994 Jason Merrill <jason@deneb.cygnus.com>
  1948. * class.c (instantiate_type): Deal with pmf's.
  1949. * Make-lang.in (cc1plus): Don't depend on OBJS or BC_OBJS, since
  1950. stamp-objlist does.
  1951. * Makefile.in (../cc1plus): Depend on OBJDEPS.
  1952. (OBJDEPS): Dependency version of OBJS.
  1953. Mon May 2 12:51:31 1994 Kung Hsu <kung@mexican.cygnus.com>
  1954. * search.c (dfs_debug_mark): Unmark TYPE_DECL_SUPPRESS_DEBUG, not
  1955. DECL_IGNORED_P.
  1956. Fri Apr 29 12:29:56 1994 Jason Merrill <jason@deneb.cygnus.com>
  1957. * class.c (finish_struct): Clear out memory of local tags. And
  1958. typedefs.
  1959. * decl2.c (grokclassfn): Don't set DECL_CONTEXT to a cv-qualified
  1960. type.
  1961. * search.c (get_matching_virtual): Be more helpful in error message.
  1962. * *: Use DECL_ARTIFICIAL (renamed from DECL_SYNTHESIZED).
  1963. * lex.c (default_assign_ref_body): Expect TYPE_NESTED_NAME to work.
  1964. (default_copy_constructor_body): Likewise.
  1965. * class.c (finish_struct): Don't gratuitously create multiple decls
  1966. for nested classes.
  1967. Thu Apr 28 23:39:38 1994 Jason Merrill <jason@deneb.cygnus.com>
  1968. Avoid clobbering the arg types of other functions when reverting
  1969. static member functions.
  1970. * decl.c (revert_static_member_fn): Rearrange arguments, don't
  1971. require values for 'fn' and 'argtypes', add warning to comment
  1972. above.
  1973. (decls_match): Rearrange arguments in call to rsmf.
  1974. (grok_op_properties): Don't pass values for fn and argtypes.
  1975. * pt.c (instantiate_template): Don't pass values for fn and argtypes.
  1976. Thu Apr 28 16:29:11 1994 Doug Evans <dje@canuck.cygnus.com>
  1977. * Make-lang.in (cc1plus): Depend on stamp-objlist.
  1978. * Makefile.in (BC_OBJS): Delete.
  1979. (OBJS): Cat ../stamp-objlist to get language independent files.
  1980. Include ../c-common.o.
  1981. (../cc1plus): Delete reference to BC_OBJS.
  1982. Thu Apr 28 02:12:08 1994 Jason Merrill <jason@deneb.cygnus.com>
  1983. * search.c (compute_access): No really, deal with static members
  1984. properly. Would I lie to you?
  1985. Implement lexical hiding of function declarations.
  1986. * pt.c (tsubst): Use lookup_name to look for function decls to guide
  1987. instantiation.
  1988. * method.c (build_opfncall): Use lookup_name_nonclass to look for
  1989. non-member functions.
  1990. * init.c (do_friend): Use lookup_name_nonclass to look for
  1991. functions.
  1992. * error.c (ident_fndecl): Use lookup_name to look for functions.
  1993. * decl2.c (lookup_name_nonclass): New function, skips over
  1994. CLASS_VALUE.
  1995. * decl.c (struct binding_level): Lose overloads_shadowed field.
  1996. (poplevel): Don't deal with overloads_shadowed.
  1997. (push_overloaded_decl): Do lexical hiding for functions.
  1998. * class.c (instantiate_type): Don't check non-members if we have
  1999. members with the same name.
  2000. * call.c (build_method_call): Use lookup_name_nonclass instead of
  2001. IDENTIFIER_GLOBAL_VALUE to check for non-member functions.
  2002. (build_overload_call_real): Likewise.
  2003. * decl.c (duplicate_decls): Check for ambiguous overloads here.
  2004. (push_overloaded_decl): Instead of here.
  2005. * decl.c (pushdecl): Back out Chip's last change.
  2006. * decl.c (grok_op_properties): Operators cannot be static members.
  2007. * cp-tree.h (DECL_SYNTHESIZED): DECL_SOURCE_LINE == 0
  2008. (SET_DECL_SYNTHESIZED): DECL_SOURCE_LINE = 0
  2009. * lex.c (cons_up_default_function): Use SET_DECL_SYNTHESIZED.
  2010. * method.c (do_inline_function_hair): Don't put friends of local
  2011. classes into global scope, either.
  2012. * typeck2.c (build_functional_cast): Don't look for a function call
  2013. interpretation.
  2014. Thu Apr 28 15:19:46 1994 Mike Stump <mrs@cygnus.com>
  2015. * cp-tree.h: Disable use of backend EH.
  2016. Wed Apr 27 21:01:24 1994 Doug Evans <dje@canuck.cygnus.com>
  2017. * Make-lang.in (c++.distdir): mkdir tmp/cp first.
  2018. * Makefile.in (INCLUDES): Move definition to same place as
  2019. parent makefile.
  2020. (ALLOCA): Define.
  2021. (OLDAR_FLAGS): Delete.
  2022. (OLDCC): Define.
  2023. (DIR): Delete.
  2024. (CLIB): Define.
  2025. (####site): Delete.
  2026. (SUBDIR_USE_ALLOCA): Don't use ALLOCA if compiling with gcc.
  2027. Wed Apr 27 19:10:04 1994 Kung Hsu <kung@mexican.cygnus.com>
  2028. * decl.c (xref_tag): Not to use strstr(), it's not available on
  2029. all platforms.
  2030. Wed Apr 27 18:10:12 1994 Jason Merrill <jason@deneb.cygnus.com>
  2031. * class.c (finish_struct): Resolve yet another class/pmf confusion.
  2032. * call.c (build_overload_call_real): Don't take the single-function
  2033. shortcut if we're dealing with an overloaded operator.
  2034. Wed Apr 27 17:35:37 1994 Mike Stump <mrs@cygnus.com>
  2035. * search.c (get_base_distance): Search the virtual base class
  2036. binfos, incase someone wants to convert to a real virtual base
  2037. class.
  2038. * search.c (expand_indirect_vtbls_init): Use convert_pointer_to_real
  2039. instead of convert_pointer_to, as it now will work.
  2040. Wed Apr 27 15:36:49 1994 Jason Merrill <jason@deneb.cygnus.com>
  2041. * cvt.c (convert_to_reference): Don't complain about casting away
  2042. const and volatile.
  2043. * typeck.c (build_unary_op): References are too lvalues.
  2044. Wed Apr 27 13:58:05 1994 Mike Stump <mrs@cygnus.com>
  2045. * class.c (override_one_vtable): We have to prepare_fresh_vtable
  2046. before we modify it, not after, also, we cannot reuse an old vtable,
  2047. once we commit to a new vtable. Implement ambiguous overrides in
  2048. virtual bases as abstract. Hack until we make the class
  2049. ill-formed.
  2050. Wed Apr 27 01:17:08 1994 Jason Merrill <jason@deneb.cygnus.com>
  2051. * parse.y (unary_expr): Expand new_placement[opt] and
  2052. new_initializer[opt] inline.
  2053. * search.c (lookup_fnfields): Don't throw away the inheritance
  2054. information here, either.
  2055. (compute_access): Handle static members properly.
  2056. * init.c (build_member_call): Always set basetype_path, and pass it
  2057. to lookup_fnfields.
  2058. * search.c (lookup_field): Deal properly with the case where
  2059. xbasetype is a chain of binfos; don't throw away the inheritance
  2060. information.
  2061. (compute_access): protected_ok always starts out at 0.
  2062. * init.c (resolve_offset_ref): Don't cast `this' to the base type
  2063. until we've got our basetype_path.
  2064. * cp-tree.h (IS_OVERLOAD_TYPE): aggregate or enum.
  2065. * cvt.c (build_up_reference): Use build_pointer_type rather than
  2066. TYPE_POINTER_TO.
  2067. * call.c (convert_harshness_ansi): Call type_promotes_to for reals
  2068. as well.
  2069. * cvt.c (type_promotes_to): Retain const and volatile, add
  2070. float->double promotion.
  2071. * decl.c (grokdeclarator): Don't bash references to arrays into
  2072. references to pointers in function parms. Use type_promotes_to.
  2073. Tue Apr 26 23:44:36 1994 Mike Stump <mrs@cygnus.com>
  2074. Finish off Apr 19th work.
  2075. * class.c (finish_struct_bits): Rename has_abstract_virtuals to
  2076. might_have_abstract_virtuals.
  2077. * class.c (strictly_overrides, override_one_vtable,
  2078. merge_overrides): New routines to handle virtual base overrides.
  2079. * class.c (finish_struct): Call merge_overrides to handle overrides
  2080. in virtual bases.
  2081. Tue Apr 26 12:45:53 1994 Jason Merrill <jason@deneb.cygnus.com>
  2082. * typeck.c (build_function_call): Call build_function_call_real with
  2083. LOOKUP_NORMAL.
  2084. * *: Don't deal with TYPE_EXPRs.
  2085. * tree.c (lvalue_p): If the type of the expression is a reference,
  2086. it's an lvalue.
  2087. * cvt.c (convert_to_reference): Complain about passing const
  2088. lvalues to non-const references.
  2089. (convert_from_reference): Don't arbitrarily throw away const and
  2090. volatile on the target type.
  2091. * parse.y: Simplify and fix rules for `new'.
  2092. * decl.c (grok_op_properties): operator void is illegal.
  2093. Mon Apr 25 02:36:28 1994 Jason Merrill <jason@deneb.cygnus.com>
  2094. * parse.y (components): Anonymous bitfields can still have declspecs.
  2095. * decl.c (pushdecl): Postpone handling of function templates like we
  2096. do C functions.
  2097. * search.c (expand_indirect_vtbls_init): Fix infinite loop when
  2098. convert_pointer_to fails.
  2099. * call.c (compute_conversion_costs_ansi): A user-defined conversion
  2100. by itself is better than that UDC followed by standard conversions.
  2101. Don't treat integers and reals specially.
  2102. * cp-tree.h: Declare flag_ansi.
  2103. * typeck.c (c_expand_return): pedwarn on return in void function
  2104. even if the expression is of type void.
  2105. (build_c_cast): Don't do as much checking for casts to void.
  2106. (build_modify_expr): pedwarn about array assignment if this code
  2107. wasn't generated by the compiler.
  2108. * tree.c (lvalue_p): A comma expression is an lvalue if its second
  2109. operand is.
  2110. * typeck.c (default_conversion): Move code for promoting enums and
  2111. ints from here.
  2112. * cvt.c (type_promotes_to): To here.
  2113. * call.c (convert_harshness_ansi): Use type_promotes_to. Also fix
  2114. promotion semantics for reals.
  2115. Sun Apr 24 16:52:51 1994 Doug Evans <dje@canuck.cygnus.com>
  2116. * Make-lang.in (c++.install-common): Check for g++-cross.
  2117. * Makefile.in: Remove Cygnus cruft.
  2118. (config.status): Delete.
  2119. (RTL_H): Define.
  2120. (TREE_H): Use complete pathname, some native makes have minimal
  2121. VPATH support.
  2122. (*.o): Use complete pathname to headers in parent dir.
  2123. (doc, info, dvi): Delete.
  2124. Sun Apr 24 16:52:51 1994 Doug Evans <dje@canuck.cygnus.com>
  2125. * Make-lang.in (c++.install-common): Check for g++-cross.
  2126. * Makefile.in: Remove Cygnus cruft.
  2127. (config.status): Delete.
  2128. (RTL_H): Define.
  2129. (TREE_H): Use complete pathname, some native makes have minimal
  2130. VPATH support.
  2131. (*.o): Use complete pathname to headers in parent dir.
  2132. (doc, info, dvi): Delete.
  2133. Sun Apr 24 00:47:49 1994 Jason Merrill <jason@deneb.cygnus.com>
  2134. * decl.c (pushdecl): Avoid redundant warning on redeclaring function
  2135. with different return type.
  2136. (decls_match): Compare return types strictly.
  2137. Fri Apr 22 12:55:42 1994 Jason Merrill <jason@deneb.cygnus.com>
  2138. * cvt.c (build_type_conversion): Do try to convert through other
  2139. pointers. This will fail if the class defines multiple pointer
  2140. conversions.
  2141. * error.c (dump_type_prefix): Print out pointers to arrays properly.
  2142. (dump_type_suffix): Likewise. (was 'int *[]', now 'int (*)[]')
  2143. * typeck.c (build_unary_op): Disallow ++/-- on pointers to
  2144. incomplete type.
  2145. * decl.c (duplicate_decls): Check mismatched TREE_CODES after
  2146. checking for shadowing a builtin. If we're redeclaring a builtin
  2147. function, bash the old decl to avoid an ambiguous overload.
  2148. * cvt.c (convert_to_reference): Don't force arrays to decay here.
  2149. * tree.c (lvalue_p): A MODIFY_EXPR is an lvalue.
  2150. * decl.c (duplicate_decls): Don't assume that the decls will have
  2151. types.
  2152. Mon Apr 18 11:35:32 1994 Chip Salzenberg <chip@fin.uucp>
  2153. [ cp/* changes propagated from c-* changes in 940318 snapshot ]
  2154. * c-decl.c (pushdecl): Warn if type mismatch with another external decl
  2155. in a global scope.
  2156. Fri Apr 22 06:38:56 1994 Chip Salzenberg <chip@fin.uucp>
  2157. * cp/typeck2.c (signature_error): Use cp_error for "%T".
  2158. Mon Apr 18 11:59:59 1994 Chip Salzenberg <chip@fin.uucp>
  2159. [ cp/* changes propagated from c-* changes in 940415 snapshot ]
  2160. * cp/decl.c (duplicate_decls, pushdecl, builtin_function):
  2161. Use DECL_FUNCTION_CODE instead of DECL_SET_FUNCTION_CODE.
  2162. Mon Apr 18 11:55:18 1994 Chip Salzenberg <chip@fin.uucp>
  2163. [ cp/* changes propagated from c-* changes in 940409 snapshot ]
  2164. * cp/decl.c (duplicate_decls): Put new type in same obstack as
  2165. old ones, or permanent if old ones in different obstacks.
  2166. Mon Apr 18 11:48:49 1994 Chip Salzenberg <chip@fin.uucp>
  2167. [ cp/* changes propagated from c-* changes in 940401 snapshot ]
  2168. * cp/parse.y (attrib): Handle string args as expressions,
  2169. merging the two rules. `mode' attribute now takes a string arg.
  2170. Delete the rule for an identifier as arg.
  2171. Mon Apr 18 11:24:00 1994 Chip Salzenberg <chip@fin.uucp>
  2172. [ cp/* changes propagated from c-* changes in 940312 snapshot ]
  2173. * cp/typeck.c (pointer_int_sum): Multiplication should be done signed.
  2174. (pointer_diff): Likewise the division.
  2175. Sun Mar 6 19:43:39 1994 Chip Salzenberg <chip@fin.uucp>
  2176. [ cp/* changes propagated from c-* changes in 940304 snapshot ]
  2177. * cp/decl.c (finish_decl): Issue warning for large objects,
  2178. if requested.
  2179. Sat Feb 19 22:20:32 1994 Chip Salzenberg <chip@fin.uucp>
  2180. [ cp/* changes propagated from c-* changes in 940218 snapshot ]
  2181. * cp/parse.y (attrib): Handle attribute ((section ("string"))).
  2182. * cp/decl.c (duplicate_decls): Merge section name into new decl.
  2183. Tue Feb 8 09:49:17 1994 Chip Salzenberg <chip@fin.uucp>
  2184. [ cp/* changes propagated from c-* changes in 940206 snapshot ]
  2185. * cp/typeck.c (signed_or_unsigned_type): Check for any
  2186. INTEGRAL_TYPE_P not just INTEGER_TYPE.
  2187. Mon Dec 6 13:35:31 1993 Norbert Kiesel <norbert@i3.INformatik.rwth-aachen.DE>
  2188. * cp/decl.c (finish_enum): Start from 0 when determining precision
  2189. for short enums.
  2190. Fri Dec 3 17:07:58 1993 Ralph Campbell <ralphc@pyramid.COM>
  2191. * cp/parse.y (unary_expr): Look at $1 for tree_code rather than
  2192. casting $$.
  2193. Wed Nov 17 19:22:09 1993 Chip Salzenberg <chip@fin.uucp>
  2194. * cp/typeck.c (build_binary_op_nodefault): Propagate code
  2195. from C front-end to optimize unsigned short division.
  2196. (build_conditional_expr): Fix bug in "1 ? 42 : (void *) 8".
  2197. Wed Nov 17 19:17:18 1993 Chip Salzenberg <chip@fin.uucp>
  2198. * cp/call.c (convert_harshness_ansi): Given an (e.g.) char
  2199. constant, prefer 'const char &' to 'int'.
  2200. Wed Feb 3 13:11:48 1993 Chip Salzenberg <chip@fin.uucp>
  2201. * cp/class.c (finish_struct_methods): Handle multiple
  2202. constructors in fn_fields list.
  2203. Fri Apr 22 12:48:10 1994 Kung Hsu <kung@mexican.cygnus.com>
  2204. * class.c (finish_struct): Use TYPE_DECL_SUPPRESS_DEBUG to flag
  2205. types not to be dumped in stabs, like types in #pragma interface.
  2206. * decl.c (init_decl_processing): Use TYPE_DECL_SUPPRESS_DEBUG to
  2207. mark unknown type.
  2208. Fri Apr 22 03:27:26 1994 Doug Evans <dje@cygnus.com>
  2209. * Language directory reorganization.
  2210. See parent makefile.
  2211. Thu Apr 21 18:27:57 1994 Per Bothner <bothner@kalessin.cygnus.com>
  2212. * cp-tree.h (THUNK_DELTA): It is normally negative, so
  2213. use signed .i variant of frame_size rather than unsigned .u.
  2214. * cp-tree.h (VTABLE_NAME_FORMAT): If flag_vtable_thunks,
  2215. use "VT" rather than "vt" due to binary incompatibility.
  2216. * class.c (get_vtable_name): Use strlen of VTABLE_NAME_FORMAT,
  2217. rather than sizeof, since it is now an expression.
  2218. * class.c (modify_one_vtable): Modify to skip initial element
  2219. containing a count of the vtable.
  2220. Thu Apr 21 00:09:02 1994 Jason Merrill <jason@deneb.cygnus.com>
  2221. * lex.c (check_newline): Force interface_unknown on main input file.
  2222. * pt.c (do_pending_expansions): Always emit functions that have been
  2223. explicitly instantiated.
  2224. (do_function_instantiation): Set DECL_EXPLICITLY_INSTANTIATED.
  2225. (do_type_instantiation): Set CLASSTYPE_VTABLE_NEEDS_WRITING and
  2226. DECL_EXPLICITLY_INSTANTIATED on all my methods.
  2227. * parse.y (explicit_instantiation): Call do_type_instantiation for
  2228. types.
  2229. * decl2.c (finish_vtable_vardecl): Call import_export_vtable.
  2230. * decl.c (start_function): Don't set DECL_EXTERNAL on a function
  2231. that has been explicitly instantiated.
  2232. * cp-tree.h (DECL_EXPLICITLY_INSTANTIATED): Alias for
  2233. DECL_LANG_FLAG_4.
  2234. * class.c: Move import_export_vtable to decl2.c, and comment out all
  2235. uses.
  2236. Wed Apr 20 16:51:06 1994 Jason Merrill <jason@deneb.cygnus.com>
  2237. * lex.c (process_next_inline): Don't muck with DECL_INLINE.
  2238. (do_pending_inlines): Likewise.
  2239. Tue Apr 19 22:25:41 1994 Mike Stump <mrs@cygnus.com>
  2240. Reimplement vtable building, and most vtable pointer setting.
  2241. Allows for earier maintenance, easier understandability, and most
  2242. importantly, correct semantics.
  2243. * class.c (build_vtable): Removed unneeded
  2244. SET_BINFO_VTABLE_PATH_MARKED.
  2245. * class.c (prepare_fresh_vtable): Likewise. Added argument.
  2246. * class.c (modify_vtable_entry): General cleanup.
  2247. * class.c (related_vslot, is_normal, modify_other_vtable_entries,
  2248. modify_vtable_entries): Removed.
  2249. * class.c (add_virtual_function): General cleanup.
  2250. * class.c (finish_base_struct): Setup BINFO_VTABLE and
  2251. BINFO_VIRTUALS as early as we can, so that modify_all_vtables can
  2252. work.
  2253. * class.c (finish_vtbls): New routine, mostly from
  2254. unmark_finished_struct.
  2255. * class.c (overrides): New routine.
  2256. * class.c (modify_one_vtable): New routine, mostly from
  2257. modify_other_vtable_entries and modify_vtable_entries.
  2258. * class.c (modify_all_direct_vtables, modify_all_indirect_vtables,
  2259. modify_all_vtables): New routines.
  2260. * class.c (finish_struct): Added arguemnt to prepare_fresh_vtable
  2261. call. General cleanup on how pending_hard_virtuals are handled.
  2262. General cleanup on modifying vtables. Use finish_vtbls, instead of
  2263. unmark_finished_struct.
  2264. * cp-tree.h (init_vtbl_ptrs, expand_direct_vtbls_init,
  2265. get_first_matching_virtual, get_matching_virtual,
  2266. expand_vbase_vtables_init, expand_indirect_vtbls_init): Update.
  2267. * cvt.c (convert_pointer_to_real): Cleanup error message.
  2268. * decl.c (grokfndecl): General cleanup.
  2269. * decl.c (finish_function): Change init_vtbl_ptrs call to
  2270. expand_direct_vtbls_init. Change expand_vbase_vtables_init call to
  2271. expand_indirect_vtbls_init.
  2272. * init.c (expand_virtual_init): Remove unneeded argument.
  2273. * init.c (init_vtbl_ptrs): Rename to expand_direct_vtbls_init, added
  2274. two arguments to make more general. Made more general. Now can be
  2275. used for vtable pointer initialization from virtual bases.
  2276. * init.c (emit_base_init): Change expand_vbase_vtables_init call to
  2277. expand_indirect_vtbls_init. Change init_vtbl_ptrs call to
  2278. expand_direct_vtbls_init.
  2279. * init.c (expand_virtual_init): General cleanup.
  2280. * init.c (expand_default_init): Change expand_vbase_vtables_init
  2281. call to expand_indirect_vtbls_init.
  2282. * init.c (expand_recursive_init_1): Change expand_vbase_vtables_init
  2283. call to expand_indirect_vtbls_init.
  2284. * init.c (expand_recursive_init): Change expand_vbase_vtables_init
  2285. call to expand_indirect_vtbls_init.
  2286. * search.c (get_first_matching_virtual): Rename to
  2287. get_matching_virtual. General cleanup and remove setting of
  2288. DECL_CONTEXT. That is now done in a cleaner way in
  2289. modify_vtable_entry and add_virtual_function.
  2290. * search.c (expand_vbase_vtables_init): Rename to
  2291. expand_indirect_vtbls_init. General cleanup. Use
  2292. expand_direct_vtbls_init to do hard work. Ensures that _all_ vtable
  2293. pointers from virtual bases are set up.
  2294. * search.c (bfs_unmark_finished_struct, unmark_finished_struct):
  2295. Removed.
  2296. * *.[chy]: Remove support for VTABLE_USES_MASK.
  2297. Tue Apr 19 12:51:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  2298. * cvt.c (convert_to_reference): Use NOP_EXPRs to switch between
  2299. reference and pointer types instead of bashing the types directly.
  2300. * call.c (build_overload_call_real): Use the TREE_CODE to determine
  2301. whether the function is overloaded or not, rather than
  2302. TREE_OVERLOADED.
  2303. * *: Remove all uses of TREE_OVERLOADED.
  2304. * decl.c (grokdeclarator): Only complain about initializing const
  2305. fields when -ansi or -pedantic.
  2306. Tue Apr 19 12:42:42 1994 Doug Evans <dje@canuck.cygnus.com>
  2307. * cp-tree.h (THUNK_DELTA): frame_size is now a union.
  2308. Mon Apr 18 00:17:13 1994 Jason Merrill <jason@deneb.cygnus.com>
  2309. Do overloading on a block-by-block basis, not function-by-function.
  2310. * decl.c: Lose overloads_to_forget.
  2311. (struct binding_level): Add overloads_shadowed field.
  2312. (poplevel): Restore overloads_shadowed.
  2313. (push_overloaded_decl): Use overloads_shadowed instead of
  2314. overloads_to_forget.
  2315. (finish_function): Don't look at overloads_to_forget.
  2316. Copy enum_overflow logic from c-decl.c.
  2317. * decl.c (start_enum): Initialize enum_overflow.
  2318. (build_enumerator): Use enum_overflow. Also use current_scope().
  2319. * search.c (current_scope): Move Brendan's comment from
  2320. build_enumerator here.
  2321. * typeck.c (convert_for_assignment): Change warnings to pedwarns for
  2322. discarding const/volatile.
  2323. Sat Apr 16 01:18:21 1994 Jason Merrill <jason@deneb.cygnus.com>
  2324. * typeck.c (comp_target_parms): Accept TEMPLATE_TYPE_PARMs on the rhs.
  2325. (comp_target_types): Likewise.
  2326. * decl.c (lookup_name): Don't unset got_scope here.
  2327. * spew.c (yylex): Only replace yylval with the TYPE_NESTED_NAME if
  2328. got_scope != NULL_TREE.
  2329. Fri Apr 15 16:36:33 1994 Jason Merrill <jason@deneb.cygnus.com>
  2330. Horrible kludge to prevent templates from being instantiated by
  2331. their base classes.
  2332. * parse.y (template_instantiate_once): Unset TYPE_BEING_DEFINED
  2333. before we get to left_curly.
  2334. * pt.c (instantiate_class_template): Set TYPE_BEING_DEFINED.
  2335. * error.c (dump_decl): If it's a typedef, print out the name of the
  2336. decl, not just the underlying type.
  2337. * decl.c (pushdecl): If the old duplicate decl was a TYPE_DECL,
  2338. update the IDENTIFIER_TYPE_VALUE of its name.
  2339. * decl2.c (finish_file): When processing the initializer for a
  2340. static member, pretend that the dummy function is a member of the
  2341. same class.
  2342. Fri Apr 15 15:56:35 1994 Kung Hsu <kung@mexican.cygnus.com>
  2343. * class.c (build_vtable_entry): Revert Apr 4 change.
  2344. * decl2.c (mark_vtable_entries): Replace pure virtual function
  2345. decl with abort's.
  2346. Fri Apr 15 13:49:33 1994 Jason Merrill <jason@deneb.cygnus.com>
  2347. * typeck.c (build_conditional_expr): Pedwarn on pointer/integer
  2348. mismatch, and don't pedwarn on 0/function pointer mismatch.
  2349. * typeck2.c (digest_init): Lose code for special handling of unions.
  2350. (process_init_constructor): Since they're handled just fine here.
  2351. Pedwarn on excess elements.
  2352. * decl2.c (grokfield): Complain about local class method declaration
  2353. without definition.
  2354. Fri Apr 15 13:19:40 1994 Per Bothner <bothner@kalessin.cygnus.com>
  2355. * method.c (emit_thunk): Add extern declaration for
  2356. current_call_is_indirect (needed for hppa).
  2357. Thu Apr 14 16:12:31 1994 Jason Merrill <jason@deneb.cygnus.com>
  2358. Improve local class support; allow classes in different blocks to
  2359. have the same name.
  2360. * decl.c (pushtag): Support local classes better.
  2361. (pushdecl_nonclass_level): New function for pushing mangled decls of
  2362. nested types into the appropriate scope.
  2363. (xref_defn_tag): Use pushdecl_nonclass_level instead of
  2364. pushdecl_top_level.
  2365. (grokfndecl): Don't mess with IDENTIFIER_GLOBAL_VALUE for local
  2366. class methods.
  2367. * method.c (do_inline_function_hair): Likewise.
  2368. * class.c (finish_struct): It is legal for a class with no
  2369. constructors to have nonstatic const and reference members.
  2370. Thu Apr 14 07:15:11 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  2371. * decl.c (push_overloaded_decl): Avoid giving errors about
  2372. built-ins, since duplicate_decls will have given warnings/errors
  2373. for them.
  2374. Thu Apr 14 03:45:12 1994 Jason Merrill <jason@deneb.cygnus.com>
  2375. * cvt.c (convert_to_reference): Warn about casting pointer type to
  2376. reference type when this is probably not what they wanted.
  2377. Wed Apr 13 13:12:35 1994 Per Bothner <bothner@kalessin.cygnus.com>
  2378. * decl.c (finish_decl): Don't mindlessly set TREE_USED for
  2379. static consts any more (toplev.c has now been modified to
  2380. not emit warnings if they are unused).
  2381. Wed Apr 13 00:22:35 1994 Jason Merrill <jason@deneb.cygnus.com>
  2382. * decl.c (grok_op_properties): If op new/delete get here with
  2383. METHOD_TYPEs, do a revert_static_member_fn.
  2384. * cp-tree.h (IDENTIFIER_CLASS_TYPE_VALUE): Lose.
  2385. * init.c (is_aggr_typedef): Don't look at
  2386. IDENTIFIER_CLASS_TYPE_VALUE.
  2387. (get_aggr_from_typedef): Likewise.
  2388. (get_type_value): Likewise.
  2389. * call.c (build_scoped_method_call): Don't rely on overloaded
  2390. template names having IDENTIFIER_CLASS_VALUE set.
  2391. * parse.y (component_decl_1, fn.def2): Revert rules for
  2392. constructors.
  2393. (component_decl_1, fn.def2): Use $1 instead of $$, since $$ is being
  2394. clobbered.
  2395. * decl.c (start_function): Only warn about `void main()' if pedantic
  2396. || warn_return_type.
  2397. Tue Apr 12 02:14:17 1994 Jason Merrill <jason@deneb.cygnus.com>
  2398. Clean up overloading of the template name.
  2399. * class.c (pushclass): Overload the template name whenever pushing
  2400. into the scope of a template class, not just if it is
  2401. uninstantiated.
  2402. (popclass): Correspondingly.
  2403. * search.c (push_class_decls): Don't overload_template_name.
  2404. * pt.c (overload_template_name): Don't set IDENTIFIER_LOCAL_VALUE or
  2405. DECL_CONTEXT on things.
  2406. * parse.y (left_curly): Don't overload_template_name.
  2407. * class.c (finish_struct): Don't undo_template_name_overload.
  2408. * method.c (build_opfncall): Only pass one argument to global op
  2409. delete.
  2410. * call.c (build_method_call): Use TYPE_VEC_DELETE_TAKES_SIZE to
  2411. decide how many arguments to use for vec delete.
  2412. * decl.c (grok_op_properties): Be consistent in modifying
  2413. current_class_type.
  2414. (grokdeclarator): Only complain about function decls with no return
  2415. type if we're being pedantic.
  2416. Mon Apr 11 00:10:53 1994 Jason Merrill <jason@deneb.cygnus.com>
  2417. Add support for operator new [] and operator delete [].
  2418. * tree.def: Add VEC_NEW_EXPR and VEC_DELETE_EXPR.
  2419. * ptree.c (print_lang_type): Indicate vec new/delete.
  2420. * parse.y: Support vec new/delete.
  2421. * method.c (build_decl_overload): Deal with vec new/delete.
  2422. (build_opfncall): Likewise.
  2423. * lex.c (init_lex): Set up values of ansi_opname and opname_tab for
  2424. vec new/delete. vec new uses "__vn", and vec delete uses "__vd".
  2425. * init.c (init_init_processing): Set up BIVN and BIVD.
  2426. (do_friend): Don't clean up after mistaken setting of TREE_GETS_NEW,
  2427. since it doesn't happen any more.
  2428. (build_new): Support vec new. Always call something.
  2429. (build_x_delete): Support vec delete.
  2430. (build_vec_delete): Lose dtor_dummy argument, add use_global_delete,
  2431. and pass it to build_x_delete.
  2432. * decl2.c (delete_sanity): Don't change behavior by whether or not
  2433. the type has a destructor. Pass use_global_delete to
  2434. build_vec_delete.
  2435. (coerce_delete_type): Make sure that the type returned has a first
  2436. argument of ptr_type_node.
  2437. * decl.c (init_decl_processing): Also declare the global vec
  2438. new/delete.
  2439. (grokdeclarator): Also force vec new/delete to be static.
  2440. (grok_op_properties): Note presence of vec new/delete, and play with
  2441. their args. If vec delete takes the optional size_t argument, set
  2442. TYPE_VEC_DELETE_TAKES_SIZE.
  2443. * cp-tree.h (TYPE_GETS_{REG,VEC}_DELETE): New macros to simplify
  2444. checking for one delete or the other.
  2445. (lang_type): gets_new and gets_delete are now two bits long. The
  2446. low bit is for the non-array version. Lose gets_placed_new.
  2447. (TYPE_VEC_DELETE_TAKES_SIZE): New macro indicating that the vec
  2448. delete defined by this class wants to know how much space it is
  2449. deleting.
  2450. (TYPE_VEC_NEW_USES_COOKIE): New macro to indicate when vec new must
  2451. add a header containing the number of elements in the vector; i.e.
  2452. when the elements need to be destroyed or vec delete wants to know
  2453. the size.
  2454. * class.c (finish_struct_methods): Also check for overloading vec
  2455. delete.
  2456. * call.c (build_method_call): Also delete second argument for vec
  2457. delete.
  2458. * decl.c (grokdeclarator): Correct complaints again.
  2459. (grokdeclarator): Fix segfault on null declarator.
  2460. (decls_match): Also accept redeclaration with no arguments if both
  2461. declarations were in C context. Bash TREE_TYPE (newdecl) here.
  2462. (duplicate_decls): Instead of here.
  2463. * parse.y (nested_name_specifier_1): Lose rules for dealing with
  2464. syntax errors nicely, since they break parsing of 'const i;'.
  2465. * decl.c (lookup_name): if (got_scope == current_class_type)
  2466. val = IDENTIFIER_CLASS_VALUE (name).
  2467. * search.c (lookup_nested_tag): Look in enclosing classes, too.
  2468. * spew.c (yylex): Only look one character ahead when checking for a
  2469. SCOPE.
  2470. * lex.c (check_newline): Read first nonwhite char before
  2471. incrementing lineno.
  2472. * decl.c (grokdeclarator): Don't claim that typedefs are variables
  2473. in warning.
  2474. * parse.y: Divide up uses of unqualified_id into
  2475. notype_unqualified_id and unqualified_id, so that TYPENAME can be
  2476. used as an identifier after an object.
  2477. * class.c (push_nested_class): Don't push into non-class scope.
  2478. * decl.c (grokdeclarator): If an identifier could be a type
  2479. conversion operator, but has no associated type, it's not a type
  2480. conversion operator.
  2481. * pt.c (unify): Check for equality of constants better.
  2482. * decl.c (grokdeclarator): Don't complain about access decls.
  2483. Sun Apr 10 02:39:55 1994 Jason Merrill <jason@deneb.cygnus.com>
  2484. * decl.c (grokdeclarator): pedwarn about data definitions without
  2485. types here.
  2486. * parse.y (datadef): Don't pedwarn about decls without types here,
  2487. since that is valid for functions.
  2488. (fn.def2, component_decl): Support constructors with declmods again.
  2489. (nomods_initdecls): For decls without any mods, so that we don't try
  2490. to get declspecs from some arbitrary $0.
  2491. * search.c (lookup_field): Use cp_error.
  2492. * parse.y (nested_name_specifier_1): Don't check aggr/non-aggr type
  2493. here; it breaks destructors for non-aggr types.
  2494. * decl.c (lookup_name): Only look for TYPE_DECLs in base classes of
  2495. a type being defined, like the comment says.
  2496. If got_scope is not an aggregate, just return NULL_TREE.
  2497. * pt.c (create_nested_upt): Kung's code for creating types nested
  2498. within uninstantiated templates now lives here (it used to live in
  2499. hack_more_ids). It needs to be expanded.
  2500. * parse.y: Stop calling see_typename so much.
  2501. * decl.c (lookup_name): Deal with TTPs and UPTs.
  2502. * lex.c (real_yylex): Don't set looking_for_typename just because we
  2503. saw a 'new'.
  2504. (dont_see_typename): #if 0 out.
  2505. * spew.c (yylex): Increment looking_for_typename if the next
  2506. character is SCOPE, rather than setting it to 1; this way, the value
  2507. from seeing an aggr specifier will not be lost. This kinda relies
  2508. on looking_for_typename never being < 0, which is now true.
  2509. * parse.y (nested_name_specifier_1): Accept TEMPLATE_TYPE_PARMs,
  2510. too.
  2511. (named_class_head_sans_basetype): Accept template types, too. Oops.
  2512. Fri Apr 8 16:39:35 1994 Jason Merrill <jason@deneb.cygnus.com>
  2513. * decl2.c (reparse_decl_as_expr1): Handle SCOPE_REFs.
  2514. * parse.y: Lose START_DECLARATOR.
  2515. * search.c (lookup_nested_tag): New function to scan CLASSTYPE_TAGS
  2516. for a class.
  2517. * parse.y: Simplify fn.def2 and component_decl. Support 'enum
  2518. A::foo' syntax. Catch invalid scopes better.
  2519. * parse.y, lex.c: Lose TYPENAME_COLON.
  2520. * decl2.c (groktypefield): #if 0 out.
  2521. * decl.c (lookup_name): If the type denoted by got_scope is
  2522. currently being defined, look in CLASSTYPE_TAGS rather than FIELDS.
  2523. * class.c (push_nested_class): Don't try to push into
  2524. error_mark_node.
  2525. Fri Apr 8 07:26:36 1994 Brendan Kehoe <brendan@lisa.cygnus.com>
  2526. * Makefile.in (stamp-parse): Update count of conflicts to 33.
  2527. Thu Apr 7 17:47:53 1994 Jason Merrill <jason@deneb.cygnus.com>
  2528. A saner implementation of nested types that treats template types
  2529. no differently from non-template types. There are still some
  2530. shortcomings of our system; most notably, it is difficult to look
  2531. for a nested type that is hidden by another name, because of the way
  2532. we keep track of hidden types. But this shouldn't be a problem for
  2533. just about anyone. Perhaps lookup_field should be fixed up a bit.
  2534. * spew.c: Moved handling of nested types/scoping from the lexer
  2535. into the parser. Removed variable template_type_seen_before_scope.
  2536. Removed functions frob_identifier, hack_more_ids, and various cruft
  2537. that was #if 0'd out in the past, reducing the size of the file from
  2538. 1146 lines to 450 lines. We can't quite do away with spew.c yet,
  2539. though; we still need it for do_aggr () and checking for SCOPE after
  2540. the current identifier. And setting lastiddecl.
  2541. * parse.y: Moved handling of nested types/scoping from the lexer
  2542. into the parser, using a new global variable `got_scope'. Reduced
  2543. the number of states by 53. Implemented all uses of explicit global
  2544. scope. Removed terminals SCOPED_TYPENAME and SCOPED_NAME. Removed
  2545. nonterminals tmpl.1, scoped_base_class, id_scope, typename_scope,
  2546. scoped_typename. Added nonterminals nested_type,
  2547. qualified_type_name, complete_type_name, qualified_id, ptr_to_mem,
  2548. nested_name_specifier, global_scope, overqualified_id, type_name.
  2549. Changed many others. Added 9 new reduce/reduce conflicts, which are
  2550. nested type parallels of 9 that were already in the grammar for
  2551. non-nested types. Eight of the now 33 conflicts should be removed
  2552. in the process of resolving the late binding between variable and
  2553. function decls.
  2554. * gxxint.texi (Parser): Update.
  2555. * cp-tree.h (IS_AGGR_TYPE_CODE): Add UNINSTANTIATED_P_TYPE.
  2556. * lex.h: Add decl for got_scope.
  2557. * lex.c (see_typename): Claim to be the lexer when calling
  2558. lookup_name.
  2559. * decl.c (lookup_name): When called from the lexer, look at
  2560. got_scope and looking_at_typename; otherwise don't.
  2561. Thu Apr 7 22:05:47 1994 Mike Stump <mrs@cygnus.com>
  2562. 31th Cygnus<->FSF merge.
  2563. Thu Apr 7 17:47:53 1994 Jason Merrill <jason@deneb.cygnus.com>
  2564. * decl2.c (mark_vtable_entries): Call this to mark all the
  2565. entries in the vtable addressable.
  2566. (finish_decl_parsing): Handle SCOPE_REFs.
  2567. * decl.c (decls_match): Always call compparms with strict == 1.
  2568. Handle the special case of C function redecl here.
  2569. (duplicate_decls): Only keep the old type if the new decl takes no
  2570. arguments.
  2571. * typeck.c (compparms): Also allow t1 to be ... if strict == 0.
  2572. Thu Apr 7 16:17:50 1994 Mike Stump <mrs@cygnus.com>
  2573. * class.c (build_vtable_entry): Fix breakage introduced Apr 5
  2574. 17:48:41.
  2575. Wed Apr 6 16:05:10 1994 Per Bothner <bothner@kalessin.cygnus.com>
  2576. * init.c (build_virtual_init), search.c (build_vbase_vtables_init),
  2577. ch-tree.h: Every place these functions were called, the result was
  2578. immediately passed to expand_expr_stmt. Reduce redundancy by
  2579. calling expand_expr_init *inside* these functions. These
  2580. makes for a simpler interface, and we don't have to build
  2581. compound expressions. Hence, rename these function to:
  2582. expand_virtual_init and expand_vbase_vtables_init respectively.
  2583. * init.c, decl.c: Change callers of these functions.
  2584. * init.c, cp-tree.h (expand_virtual_init): Make static.
  2585. * decl2.c (finish_file): Check TREE_PUBLIC||TREE_ADDRESSABLE
  2586. rather than DECL_SAVED_INSNS before emitting inlines.
  2587. Wed Apr 6 13:06:39 1994 Jason Merrill <jason@deneb.cygnus.com>
  2588. * spew.c (init_spew): #if 0 out stuff used by arbitrate_lookup.
  2589. * decl.c (duplicate_decls): If this is a new declaration of an
  2590. extern "C" function, keep the type (for the argtypes).
  2591. (redeclaration_error_message): Don't check DECL_LANGUAGE here.
  2592. (decls_match): Call compparms with a value of strict dependent on
  2593. the value of strict_prototypes for DECL_LANGUAGE (oldecl).
  2594. * typeck.c (compparms): ... is only equivalent to non-promoting
  2595. parms if we're not being strict.
  2596. * parse.y (empty_parms): Don't check flag_ansi || pedantic here.
  2597. * decl.c (init_decl_processing): if (flag_ansi || pedantic)
  2598. strict_prototypes_lang_c = strict_prototypes_lang_cplusplus;
  2599. * decl2.c (grok_function_init): Don't set DECL_INITIAL on pure
  2600. virtuals.
  2601. Tue Apr 5 17:48:41 1994 Per Bothner <bothner@kalessin.cygnus.com>
  2602. Support for implementing vtables with thunks.
  2603. * tree.def (THUNK_DECL): New TREE_CODE.
  2604. * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY), tree.c
  2605. (fnaddr_from_vtable_entry): Handle flag_vtable_thunks case.
  2606. * cp-tree.h (memptr_type): New variable.
  2607. * class.c (build_vtable_entry): Build thunk if necessary.
  2608. * class.c (build_vfn_ref): If using thunks, don't need
  2609. to add delta field from vtable (there is none!).
  2610. * decl.c: Add memptr_type as well as vtable_entry_type.
  2611. If using thunks, the latter is just ptr_type_node.
  2612. * gc.c, typeck.c: Use memptr_typeChange, not vtable_entry_type.
  2613. * decl2.c (finish_vtable_vardecl): Handle thunks.
  2614. * expr.c (cplus_expand_expr): Support THUNK_DECL.
  2615. * decl.c (grokdeclarator): Set DECL_THIS_EXTERN if "extern".
  2616. * decl.c (start_function): Set current_extern_inline based on
  2617. DECL_THIS_EXTERN, not TREE_PUBLIC.
  2618. * decl.c (finish_function): Call mark_inline_for_output if needed,
  2619. Improve intelligence about when to emit inlines.
  2620. * cp-tree.h (lang_decl_flags): New field saved_inline.
  2621. * cp-tree.h (DECL_SAVED_INLINE): New macro.
  2622. * class.c (add_virtual_function): Don't set TREE_ADDRESSABLE.
  2623. * decl.h, decl.c (pending_addressable_inlines): Removed.
  2624. * decl2.c (pending_addressable_inlines): Renamed to saved_inlines.
  2625. * decl2.c (mark_inline_for_output): Do nothing if
  2626. DECL_SAVED_INLINE; otherwise set it (and add to saved_inlines list).
  2627. * decl2.c (finish_vtable_vardecl): SET_CLASSTYPE_INTERFACE_KNOWN
  2628. and set CLASSTYPE_INTERFACE_ONLY if there is a non-inline virtual.
  2629. * decl2.c (finish_file): Writing out inlines later, so we can
  2630. also handle the ones needed for vtbales.
  2631. * decl2.c (write_vtable_entries, finish_vtable_typedecl): Removed.
  2632. * cp-tree.h, class.c, decl2.c, search.c: Remove -fvtable-hack
  2633. and flag_vtable_hack. Use -fvtable-thunks and flag_vtable_thunks
  2634. instead. (The rationale is that these optimizations both break binary
  2635. compatibility, but should become the default in a future release.)
  2636. Wed Apr 6 10:53:56 1994 Mike Stump <mrs@cygnus.com>
  2637. * class.c (modify_vtable_entries): Never reset the DECL_CONTEXT
  2638. of a fndecl, as we might not be from that vfield.
  2639. Tue Apr 5 17:43:35 1994 Kung Hsu <kung@mexican.cygnus.com>
  2640. * class.c (add_virtual_function): Fix bug for pure virtual, so
  2641. that DECL_VINDEX of the dummy decl copied won't be error.
  2642. (see also Apr 4 change)
  2643. Tue Apr 5 17:23:45 1994 Per Bothner <bothner@kalessin.cygnus.com>
  2644. * typeck.c (c_expand_return): Before checking that we're not
  2645. returning the address of a local, make sure it's a VAR_DECL.
  2646. (And don't worry about it being a TREE_LIST.)
  2647. Tue Apr 5 13:26:42 1994 Jason Merrill <jason@deneb.cygnus.com>
  2648. * parse.y (YYDEBUG): Always define.
  2649. * lex.c (YYDEBUG): Likewise.
  2650. Mon Apr 4 11:28:17 1994 Kung Hsu <kung@mexican.cygnus.com>
  2651. * class.c (finish_struct): Backup out the change below, put the
  2652. new change for the same purpose. The change below breaks code.
  2653. * class.c (finish_struct): If pure virtual, copy node and make
  2654. RTL point to abort, then put in virtual table.
  2655. * decl2.c (grok_function_iit): Reinstate Mar 31 change.
  2656. Sat Apr 2 03:12:58 1994 Jason Merrill <jason@deneb.cygnus.com>
  2657. * init.c (build_new): pedwarn about newing const and volatile
  2658. types.
  2659. * tree.c (get_identifier_list): Only do the special handling
  2660. thing if we're dealing with the main variant of the record type.
  2661. * cvt.c (convert_to_reference): When converting between
  2662. compatible reference types, use the pointer conversion machinery.
  2663. Don't just blindly overwrite the old type.
  2664. Fri Apr 1 17:14:42 1994 Jason Merrill <jason@deneb.cygnus.com>
  2665. * call.c (build_method_call): When looking at global functions,
  2666. be sure to use instance_ptr for the first argument, not some version
  2667. of it that has been cast to a base class. Also do this before
  2668. comparing candidates.
  2669. Thu Mar 31 19:50:35 1994 Jason Merrill <jason@deneb.cygnus.com>
  2670. * call.c (build_method_call): Constructors can be called for
  2671. const objects.
  2672. Thu Mar 31 16:20:16 1994 Kung Hsu <kung@mexican.cygnus.com>
  2673. * decl2.c (grok_func_init): Do not abort as rtl for pur virtual
  2674. functions. They can be defined somewhere else.
  2675. Sat Jan 23 23:23:26 1994 Stephen R. van den Berg <berg@pool.informatik.rwth-aachen.de>
  2676. * decl.c (init_decl_processing): Declare __builtin_return_address
  2677. and __builtin_frame_address for C++ as well.
  2678. Thu Mar 31 12:35:49 1994 Mike Stump <mrs@cygnus.com>
  2679. * typeck2.c (store_init_value): Integral constant variables are
  2680. always constant, even when doing -fpic.
  2681. Sat Jan 23 23:23:26 1994 Stephen R. van den Berg <berg@pool.informatik.rwth-aachen.de>
  2682. * decl.c (redeclaration_error_message): Pass the types to
  2683. comptypes.
  2684. Wed Mar 30 21:29:25 1994 Mike Stump <mrs@cygnus.com>
  2685. Cures incorrect errors about pure virtuals in a class, when they
  2686. have been overridden in a derived class.
  2687. * search.c (get_abstract_virtuals): Reimplement.
  2688. * search.c (get_abstract_virtuals_1): New routine.
  2689. Wed Mar 30 14:10:04 1994 Jason Merrill <jason@deneb.cygnus.com>
  2690. * pt.c (push_template_decls): Make the pushed level pseudo
  2691. global.
  2692. * parse.y (extdefs): Don't pop everything if the current binding
  2693. level is pseudo_global.
  2694. * decl.c (pop_everything): Stop on reaching a pseudo-global
  2695. binding level.
  2696. * cp-tree.h (DECL_FUNCTION_MEMBER_P): Change to more reliable test.
  2697. * decl.c (duplicate_decls): Only copy DECL_SOURCE_{FILE_LINE} if
  2698. the old decl actually had an initializer.
  2699. * {various}: Clean up gcc -W complaints.
  2700. * cp-tree.h (DECL_FUNCTION_MEMBER_P): Currently defined to be
  2701. (DECL_CONTEXT (NODE) != NULL_TREE).
  2702. * parse.y (lang_extdef): Call pop_everything if necessary.
  2703. * decl.c (pop_everything): New function for popping binding
  2704. levels left over after a syntax error.
  2705. (pushdecl): Use DECL_FUNCTION_MEMBER_P to decide whether or not
  2706. a function is a member.
  2707. Wed Mar 30 14:20:50 1994 Mike Stump <mrs@cygnus.com>
  2708. Cures calling a more base base class function, when a more derived
  2709. base class member should be called in some MI situations.
  2710. * search.c (make_binfo): Use more the more specialized base
  2711. binfos from the binfo given as the second argument to make_binfo,
  2712. instead of the unspecialized ones from the TYPE_BINFO.
  2713. * class.c (finish_base_struct): Likewise, update callers.
  2714. * search.c (dfs_get_vbase_types): Likewise.
  2715. * tree.c (propagate_binfo_offsets, layout_vbasetypes): Likewise.
  2716. * decl.c (xref_tag): Use NULL_TREE instead of 0.
  2717. * lex.c (make_lang_type): Likewise.
  2718. Wed Mar 30 14:10:04 1994 Jason Merrill <jason@deneb.cygnus.com>
  2719. * decl.c (pushdecl): If pushing a C-linkage function, only do a
  2720. push_overloaded_decl.
  2721. (duplicate_decls): Standard overloading does not shadow built-ins.
  2722. Tue Mar 29 00:54:18 1994 Jason Merrill <jason@deneb.cygnus.com>
  2723. * pt.c (end_template_decl): Don't call push_overloaded_decl.
  2724. * init.c (do_friend): Don't call push_overloaded_decl.
  2725. * decl.c (pushdecl): Call push_overloaded_decl for functions and
  2726. function templates.
  2727. (duplicate_decls): Functions and function templates are not
  2728. duplicates, but don't complain about calling this function to
  2729. compare them.
  2730. (push_overloaded_decl): Don't deal with linkage. Call
  2731. duplicate_decls.
  2732. (redeclaration_error_message): Deal with linkage.
  2733. * decl.c (start_function): If push_overloaded_decl returns an
  2734. older version of the function, deal with it.
  2735. * decl.c (start_function): Be sure only to push_overloaded_decl
  2736. for non-members.
  2737. * decl.c (grokfndecl): Put back clearing of DECL_CHAIN for
  2738. methods.
  2739. (start_function): Lose broken and redundant code for checking old
  2740. decl.
  2741. * init.c (add_friend): Give line numbers of both friend decls
  2742. when warning about re-friending.
  2743. * pt.c (tsubst): Use comptypes rather than == to compare the
  2744. types of the method as declared and as defined, since default
  2745. parameters may be different.
  2746. * call.c (build_method_call): Use brendan's candidate printing
  2747. routine.
  2748. * decl.c (start_method): Methods defined in the class body are
  2749. inline whether or not it's a template class.
  2750. Mon Mar 28 16:39:26 1994 Jason Merrill <jason@deneb.cygnus.com>
  2751. * parse.y (initdcl0): Add "extern" to current_declspecs if
  2752. have_extern_spec && ! used_extern_spcec.
  2753. * tree.c (really_overloaded_fn): A fn with more than one
  2754. overload.
  2755. * pt.c (end_template_decl): Use really_overloaded_fn.
  2756. * decl.c (duplicate_decls): When smashing a decl into a previous
  2757. definition, keep the old file and line.
  2758. Don't deal with overloaded functions.
  2759. Lose old code for checking arg types of functions.
  2760. Check for overloaded C functions.
  2761. (pushdecl): Deal with overloaded functions.
  2762. (start_decl): Expect pushdecl to return an appropriate function decl.
  2763. (start_function): Likewise.
  2764. (push_overloaded_decl): Don't check for overloaded C functions.
  2765. * *.c: Stop using DECL_OVERLOADED, it being archaic.
  2766. TREE_OVERLOADED should probably go, too.
  2767. Mon Mar 28 14:00:45 1994 Ron Guilmette <rfg@netcom.com>
  2768. * typeck.c (comp_target_types): Call comp_target_parms with
  2769. strict == 1.
  2770. Sun Mar 27 00:07:45 1994 Jason Merrill <jason@deneb.cygnus.com>
  2771. * parse.y (empty_parms): Don't parse () as (...) in extern "C"
  2772. sections if we're compiling with -ansi or -pedantic.
  2773. * decl.c (decls_match): Don't treat (int) and (int&) as matching.
  2774. * decl2.c (grokfield): Don't pedwarn twice about initializing
  2775. field.
  2776. * decl.c (push_overloaded_decl): Warn about shadowing
  2777. constructor.
  2778. (redeclaration_error_message): Don't allow 'int a; int a;'
  2779. * cvt.c (build_up_reference): Only check for valid upcast if
  2780. LOOKUP_PROTECT is set, not just any flag.
  2781. Fri Mar 25 01:22:31 1994 Jason Merrill <jason@deneb.cygnus.com>
  2782. * lex.c (check_newline): When we see a #pragma implementation,
  2783. also set it for the main input file.
  2784. * init.c (build_new): Convert array size argument to size_t.
  2785. * parse.y (primary): If we're doing a parenthesized type-id, call
  2786. groktypename before passing it to build_new.
  2787. * call.c (build_method_call): Deal properly with const and
  2788. volatile for instances of reference type.
  2789. * decl.c (store_return_init): Change 'if (pedantic) error' to 'if
  2790. (pedantic) pedwarn'.
  2791. * decl.c (grokdeclarator): Don't complain about putting `static'
  2792. and `inline' on template function decls.
  2793. Thu Mar 24 23:18:19 1994 Jason Merrill <jason@deneb.cygnus.com>
  2794. * call.c (build_method_call): Preserve const & volatile on
  2795. `this'.
  2796. Thu Mar 24 16:21:52 1994 Mike Stump <mrs@cygnus.com>
  2797. * init.c (build_new, build_vec_delete): Use global new and delete
  2798. for arrays.
  2799. * decl2.c (delete_sanity): Likewise.
  2800. Thu Mar 24 02:10:46 1994 Jason Merrill <jason@deneb.cygnus.com>
  2801. * cvt.c (convert_to_reference): If i is an lvalue,
  2802. (int &)i -> *(int*)&i, as per 5.2.8p9 of the latest WP.
  2803. (convert_force): Call convert_to_reference with LOOKUP_COMPLAIN.
  2804. Wed Mar 23 17:45:37 1994 Jason Merrill <jason@deneb.cygnus.com>
  2805. * decl.c (duplicate_decls): Also propagate DECL_TEMPLATE_MEMBERS
  2806. and DECL_TEMPLATE_INSTANTIATIONS.
  2807. * init.c (build_new): Handle array typedefs properly.
  2808. Wed Mar 23 18:23:33 1994 Mike Stump <mrs@cygnus.com>
  2809. 30th Cygnus<->FSF merge.
  2810. Wed Mar 23 00:46:24 1994 Mike Stump <mrs@cygnus.com>
  2811. * class.c (modify_vtable_entries): Avoid running off the end of the
  2812. virtuals list when processing a virtual destructor.
  2813. * class.c (get_vtable_entry): Likewise.
  2814. Wed Mar 23 00:23:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  2815. * decl.c (duplicate_decls): If two template decls don't match,
  2816. just return 0.
  2817. Tue Mar 22 23:49:41 1994 Jason Merrill <jason@deneb.cygnus.com>
  2818. * typeck.c (convert_for_assignment): Don't pedwarn about
  2819. converting function pointer to void *.
  2820. Tue Mar 22 22:23:19 1994 Mike Stump <mrs@cygnus.com>
  2821. Major revamp of pointer to member functions. Cures major
  2822. nonfunctionality when used in casts, and MI situations.
  2823. * cvt.c (convert_force): Update call site of build_ptrmemfunc.
  2824. * typeck.c (convert_for_assignment): Likewise.
  2825. * typeck2.c (digest_init): Likewise.
  2826. * typeck2.c (process_init_constructor): Simplify by moving code into
  2827. digest_init.
  2828. * typeck2.c (digest_init): Do default_conversions on init value, if
  2829. we are processing pointer to member functions.
  2830. * class.c (get_vfield_offset): Now non-static. Convert bit offset
  2831. into byte offset.
  2832. * cp-tree.h (get_vfield_offset): Likewise.
  2833. * typeck.c (get_member_function_from_ptrfunc): Convert down to right
  2834. instance, before fetching vtable pointer.
  2835. * typeck.c (get_delta_difference): New routine.
  2836. * typeck.c (build_ptrmemfunc): Revamp to handle casting better, also
  2837. get vtable pointer out of right subobject.
  2838. Tue Mar 22 17:56:48 1994 Mike Stump <mrs@cygnus.com>
  2839. * search.c (get_binfo): Return NULL instead of aborting, when
  2840. passed a UNION_TYPE.
  2841. Tue Mar 22 12:44:54 1994 Jason Merrill <jason@deneb.cygnus.com>
  2842. These patches implement handling of redefinition/redeclaration of
  2843. templates.
  2844. * typeck.c (comptypes): Simplify. All TEMPLATE_TYPE_PARMs are
  2845. considered compatible.
  2846. * parse.y (template_def): Pass defn argument to end_template_decl.
  2847. * pt.c (end_template_decl): Add defn argument. Check for
  2848. redefinition. Simplify.
  2849. * error.c (OB_UNPUT): New macro, to remove mistakes.
  2850. (aggr_variety): Subroutine of dump_aggr_type.
  2851. * decl.c (decls_match): Support templates.
  2852. (duplicate_decls): No longer static. Don't try to lay out template
  2853. decls.
  2854. (pushdecl): Simplify.
  2855. * cp-tree.h (DECL_TEMPLATE_MEMBERS): Use DECL_SIZE instead of
  2856. DECL_INITIAL.
  2857. Mon Mar 21 11:46:55 1994 Jason Merrill <jason@deneb.cygnus.com>
  2858. * error.c (dump_decl): Support class template decls.
  2859. (dump_type): Don't adorn template type parms.
  2860. * decl.c (duplicate_decls): Save DECL_TEMPLATE_INFO from old decl
  2861. if it was a definition.
  2862. (redeclaration_error_message): Do the cp_error thang, and reject
  2863. redefinition of templates.
  2864. Mon Mar 21 19:36:06 1994 Per Bothner <bothner@kalessin.cygnus.com>
  2865. * decl.c (grokdeclarator): Set TREE_PUBLIC for METHOD_TYPE
  2866. in FIELD context, when appropriate. Also,
  2867. CLASSTYPE_INTERFACE_ONLY is irrelevant to setting TREE_PUBLIC.
  2868. Also, simplify check for bogus return specifiers.
  2869. Mon Mar 21 11:46:55 1994 Jason Merrill <jason@deneb.cygnus.com>
  2870. * parse.y (after_type_declarator1): Expand type_quals.
  2871. (notype_declarator1): Likewise.
  2872. (absdcl1): Likewise.
  2873. Sat Mar 19 01:05:17 1994 Jason Merrill <jason@deneb.cygnus.com>
  2874. * decl.c (grokdeclarator): Treat class-local typedefs like static
  2875. members; i.e. 'typedef int f();' means that f is a function type,
  2876. not a method type.
  2877. * parse.y (decl): Change direct_* back to *.
  2878. (type_id): Change direct_abstract_declarator to absdcl.
  2879. (direct_declarator, direct_initdecls, direct_initdcl0): Remove again.
  2880. Fri Mar 18 12:47:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  2881. These two patches fix crashes on instantiating a template inside a
  2882. function with C linkage or containing labels.
  2883. * class.c (current_lang_stacksize): No longer static.
  2884. * decl.c (struct saved_scope): Add lang_base, lang_stack,
  2885. lang_name, lang_stacksize, and named_labels.
  2886. (push_to_top_level): Save them.
  2887. (pop_from_top_level): Restore them.
  2888. * gxxint.texi (Parser): Update.
  2889. These two patches finish moving the task of expr/declarator
  2890. ambiguity resolution from the lexer to the parser, and add one more
  2891. r/r conflict. START_DECLARATOR can now be nuked.
  2892. * parse.y (decl): Add "direct_" in typespec X rules.
  2893. (direct_declarator): New nonterminal for
  2894. direct_after_type_declarator and direct_notype_declarator.
  2895. (direct_initdecls): Like initdecls, but uses direct_initdcl0.
  2896. (direct_initdcl0): Like initdcl0, but uses direct_declarator.
  2897. (named_parm): Add typespec direct_declarator rule.
  2898. * spew.c (yylex): #if 0 out START_DECLARATOR insertion.
  2899. These two patches disable some excessive cleverness on the part of
  2900. g++; a non-class declaration always hides a class declaration in the
  2901. same scope, and g++ was trying to unhide it depending on the
  2902. enclosing expression.
  2903. * spew.c (arbitrate_lookup): #if 0 out.
  2904. * decl.c (lookup_name): Never call arbitrate_lookup.
  2905. * parse.y (complex_notype_declarator1): Add '*'
  2906. complex_notype_declarator1 and '&' complex_notype_declarator1 rules.
  2907. * parse.y (complex_direct_notype_declarator): Restore id_scope
  2908. see_typename TYPENAME rule, remove all other rules beginning with
  2909. those tokens.
  2910. (notype_unqualified_id): Add '~' see_typename IDENTIFIER rule.
  2911. Thu Mar 17 17:30:01 1994 Jason Merrill <jason@deneb.cygnus.com>
  2912. These changes fix the compiler's handling of the functional cast/
  2913. object declaration ambiguities in section 6.8 of the ARM. They also
  2914. add 11 reduce/reduce conflicts. Sigh.
  2915. * parse.y: Add precedence decls for OPERATOR and '~'.
  2916. (notype_unqualified_id): New nonterminal, encompasses all of the
  2917. ANSI unqualified-id nonterminal except TYPENAMEs.
  2918. (expr_or_declarator): New nonterminal to delay parsing of code like
  2919. `int (*a)'.
  2920. (primary): Use notype_unqualified_id.
  2921. (decl): Add typespec initdecls ';' and typespec declarator ';'
  2922. rules.
  2923. (initdcl0): Deal with the above.
  2924. (complex_notype_declarator1): A notype_declarator that is not also
  2925. an expr_or_declarator.
  2926. (complex_direct_notype_declarator): A direct_notype_declarator that
  2927. doesn't conflict with expr_or_declarator. Use
  2928. notype_unqualified_id. Remove id_scope see_typename TYPENAME rule.
  2929. (functional_cast): New nonterminal, for the three functional cast
  2930. rules. So that they can be moved after
  2931. complex_direct_notype_declarator.
  2932. (see_typename): Don't accept type_quals any more.
  2933. * decl2.c (reparse_decl_as_expr): New function to deal with parse
  2934. nodes for code like `int (*a)++;'.
  2935. (reparse_decl_as_expr1): Recursive subroutine of the above.
  2936. (finish_decl_parsing): New function to deal with parse nodes for
  2937. code like `int (*a);'. See the difference?
  2938. Thu Mar 17 12:16:10 1994 Mike Stump <mrs@cygnus.com>
  2939. These changes break binary compatibility in code with classes
  2940. that use virtual bases.
  2941. * search.c (dfs_get_vbase_types): Simplify and correct to make
  2942. sure virtual bases are initialized in dfs ordering.
  2943. * search.c (get_vbase_types): Simplify and make readable.
  2944. Thu Mar 17 12:01:10 1994 Jason Merrill <jason@deneb.cygnus.com>
  2945. * parse.y: s/ typename / type_id /g
  2946. Wed Mar 16 17:42:52 1994 Kung Hsu <kung@mexican.cygnus.com>
  2947. * parse.y (typespec): Add SCOPE TYPENAME for global scoped
  2948. type. e.g. ::B x.
  2949. * decl.c (complete_array_type): Fix a bug that in -pendantic
  2950. mode even there's no initializer, it will continue to build
  2951. default index.
  2952. Wed Mar 16 17:43:07 1994 Jason Merrill <jason@deneb.cygnus.com>
  2953. * parse.y (direct_notype_declarator): Add PTYPENAME rule, remove
  2954. all of the scoped PTYPENAME rules.
  2955. Wed Mar 16 16:39:02 1994 Mike Stump <mrs@cygnus.com>
  2956. * init.c (build_offset_ref): The value of A::typedef_name is
  2957. always the TYPE_DECL, and never an error.
  2958. Tue Mar 15 20:02:35 1994 Jason Merrill <jason@deneb.cygnus.com>
  2959. * search.c (get_base_distance_recursive): Two binfos can only
  2960. represent the same object if they are both via_virtual.
  2961. * class.c (finish_base_struct): Check vbases for ambiguity, too.
  2962. * search.c (get_vbase_types): Accept binfo argument, too.
  2963. Tue Mar 15 19:22:05 1994 Kung Hsu <kung@mexican.cygnus.com>
  2964. * decl.c (complete_array_type): Complete TYPE_DOMAIN of the
  2965. initializer also, because back-end requires it.
  2966. Tue Mar 15 15:33:31 1994 Jason Merrill <jason@deneb.cygnus.com>
  2967. * error.c (dump_expr): Support member functions (which show up as
  2968. OFFSET_REFs).
  2969. Mon Mar 14 16:24:36 1994 Mike Stump <mrs@cygnus.com>
  2970. * init.c (build_new): Set the return type of multidimensional
  2971. news correctly.
  2972. Fri Mar 11 15:35:39 1994 Kung Hsu <kung@mexican.cygnus.com>
  2973. * call.c (build_method_call): If basetype not equal to type
  2974. of the instance, use the type of the instance in building
  2975. destructor.
  2976. Thu Mar 10 17:07:10 1994 Kung Hsu <kung@mexican.cygnus.com>
  2977. * parse.y (direct_notype_declarator): Add push_nested_type for
  2978. 'template_type SCOPED_NAME' rule.
  2979. Tue Mar 8 00:19:58 1994 Jason Merrill <jason@deneb.cygnus.com>
  2980. * parse.y (parm): Add typed_declspec1 {absdcl, epsilon} rules.
  2981. Sat Mar 5 04:47:48 1994 Jason Merrill <jason@deneb.cygnus.com>
  2982. * parse.y (regcast_or_absdcl): New nonterminal to implement late
  2983. reduction of constructs like `int ((int)(int)(int))'.
  2984. (cast_expr): Use it.
  2985. (sub_cast_expr): Everything that can come after a cast.
  2986. (typed_declspecs1): typed_declspecs that are not typed_typespecs.
  2987. (direct_after_type_declarator): Lose PAREN_STAR_PAREN rule.
  2988. (direct_abstract_declarator): Replace '(' parmlist ')' rule with
  2989. '(' complex_parmlist ')' and regcast_or_absdcl.
  2990. (parmlist): Split
  2991. (complex_parmlist): Parmlists that are not also typenames.
  2992. (parms_comma): Enabler.
  2993. (named_parm): A parm that is not also a typename. Use declarator
  2994. rather than dont_see_typename abs_or_notype_decl. Expand
  2995. typed_declspecs inline.
  2996. (abs_or_notype_decl): Lose.
  2997. (dont_see_typename): Comment out.
  2998. (bad_parm): Break out abs_or_notype_decl into two rules.
  2999. Fri Mar 4 18:22:39 1994 Jason Merrill <jason@deneb.cygnus.com>
  3000. * decl2.c (reparse_decl_as_casts): New function to change parse
  3001. nodes for `(int)(int)(int)' from "function taking int and returning
  3002. function taking int and returning function taking int" to "... cast
  3003. to int, cast to int, cast to int".
  3004. * decl2.c (reparse_decl_as_expr): Recursive function to change
  3005. parse nodes for `A()()' from "function returning function returning
  3006. A" to "A().operator()".
  3007. * parse.y (primary): Replace `typespec LEFT_RIGHT' rule with
  3008. `typespec fcast_or_absdcl' rule.
  3009. (fcast_or_absdcl): New nonterminal to implement late reduction of
  3010. constructs like `A()()()()'.
  3011. (typename): Replace `typespec absdcl1' rule with
  3012. `typespec direct_abstract_declarator' rule.
  3013. (direct_abstract_declarator): Replace `LEFT_RIGHT type_quals' rule
  3014. with `fcast_or_absdcl type_quals' rule.
  3015. Fri Mar 4 16:18:03 1994 Mike Stump <mrs@cygnus.com>
  3016. * tree.c (lvalue_p): Improve OFFSET_REF handling, so that it
  3017. matches Section 5.5.
  3018. Fri Mar 4 14:01:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  3019. * error.c (dump_type_prefix): Don't print basetype twice for
  3020. pmfs.
  3021. Fri Mar 4 13:24:33 1994 Mike Stump <mrs@cygnus.com>
  3022. * typeck.c (convert_arguments): Handle setHandler(A::handlerFn)
  3023. so that it is like setHandler(&A::handlerFn). Cures an `invalid
  3024. lvalue in unary `&''.
  3025. Fri Mar 4 11:15:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  3026. * gxxint.texi (Copying Objects): New section discussing default
  3027. op= problems with virtual inheritance.
  3028. * decl2.c (grokoptypename): Just does grokdeclarator and
  3029. build_typename_overload, since the parser can't call grokdeclarator
  3030. directly.
  3031. * method.c (build_typename_overload): Set IDENTIFIER_GLOBAL_VALUE
  3032. and TREE_TYPE on generated identifiers.
  3033. * decl.c (grokdeclarator): Don't deal with TYPE_EXPRs anymore.
  3034. * parse.y (parm): Convert `const char *' to `__opPCc' here.
  3035. * error.c (dump_decl): Say sorry rather than my_friendly_aborting
  3036. if we can't figure out what to do.
  3037. (dump_type*): Likewise.
  3038. * typeck2.c (build_m_component_ref): 'component' is an expr, not
  3039. a decl. Also move the IS_AGGR_TYPE check after the stripping of
  3040. REFERENCE_TYPE.
  3041. Fri Mar 4 04:46:05 1994 Mike Stump <mrs@cygnus.com>
  3042. * call.c (build_method_call): Handle b->setHandler(A::handlerFn)
  3043. so that it is like b->setHandler(&A::handlerFn). Cures an `invalid
  3044. lvalue in unary `&''.
  3045. Thu Mar 3 12:38:15 1994 Jason Merrill <jason@deneb.cygnus.com>
  3046. * parse.y: Add precedence specification for START_DECLARATOR.
  3047. (type_quals): Move before primary.
  3048. (typename): Move before typed_declspecs, add 'typespec absdcl1' rule.
  3049. * decl2.c (grokoptypename): Lose.
  3050. * decl.c (grokdeclarator): Parse TYPE_EXPRs in the initial scan,
  3051. rather than waiting until later.
  3052. Wed Mar 2 14:12:23 1994 Jason Merrill <jason@deneb.cygnus.com>
  3053. * parse.y (unary_expr): Use 'typename' in 'new' rules, rather
  3054. than expanding it inline.
  3055. (typename): Expand empty option of (former) absdcl inline.
  3056. (abs_or_notype_decl): Likewise.
  3057. (absdcl): Lose empty rule.
  3058. (conversion_declarator): New nonterminal for 'typename' of 'operator
  3059. typename'.
  3060. (operator_name): Use it instead of absdcl.
  3061. * parse.y: Add precedence declarations for SCOPED_TYPENAME,
  3062. TYPEOF, and SIGOF.
  3063. (typed_declspecs): Accept typed_typespecs, rather than typespec
  3064. directly. Add rules with reserved_typespecquals.
  3065. (reserved_declspecs): Don't accept typespecqual_reserved at the
  3066. beginning of the list. The typed_declspecs rule will deal with this
  3067. omission.
  3068. (declmods): Accept nonempty_type_quals, rather than TYPE_QUAL
  3069. directly.
  3070. * parse.y (direct_notype_declarator,
  3071. direct_after_type_declarator, direct_abstract_declarator): Split up
  3072. the declarator1 nonterminals to match the draft standard and avoid
  3073. ambiguities.
  3074. (new_type_id, new_declarator, direct_new_declarator,
  3075. new_member_declarator): New nonterminals to implement the subset of
  3076. 'typename' allowed in new expressions.
  3077. (unary_expr): Use new_type_id instead of typename.
  3078. (after_type_declarator1, absdcl1): Fix semantics of member pointers.
  3079. (abs_member_declarator, after_type_member_declarator): Lose.
  3080. * parse.y (absdcl1): Don't require parens around
  3081. abs_member_declarator.
  3082. (abs_member_declarator): Lose see_typename from rules.
  3083. (after_type_member_declarator): Likewise.
  3084. * tree.c (get_identifier_list): New function, containing code
  3085. previously duplicated in get_decl_list and list_hash_lookup_or_cons.
  3086. (get_decl_list): Use it.
  3087. (list_hash_lookup_or_cons): Likewise.
  3088. * parse.y (typed_declspecs, declmods): It's not necessary to hash
  3089. the declspecs on class_obstack, so don't. This way typed_typespecs
  3090. can reduce to typed_declspecs.
  3091. Wed Mar 2 14:29:18 1994 Jason Merrill <jason@cygnus.com>
  3092. * cvt.c (build_up_reference): If we aren't checking visibility,
  3093. also allow base->derived conversions.
  3094. Mon Feb 28 15:14:29 1994 Per Bothner <bothner@kalessin.cygnus.com>
  3095. * typeck.c (build_c_cast): Remove bogus hack when converting
  3096. to a reference type.
  3097. * cp-tree.h (lang_decl::vbase_init_list, DECL_VBASE_INIT_LIST):
  3098. Removed, not used.
  3099. (lang_stype::methods, lang_decl::next_method): New fields.
  3100. (CLASSTYPE_METHODS, DECL_NEXT_METHOD): New macros.
  3101. * decl.c (duplicate_decls): Preserve DECL_NEXT_METHOD.
  3102. * cp-tree.h, decl2.c (flag_vtable_hack): New flag.
  3103. * decl2.c (finish_vtable_vardecl): If flag_vtable_hack,
  3104. and !CLASSTYPE_INTERFACE_KNOWN, try to use the presence of
  3105. a non-inline virtual function to control emitting of vtables.
  3106. * class.c (finish_struct): Build CLASSTYPE_METHODS list.
  3107. * search.c (build_vbase_vtables_init): Don't assemble_external
  3108. (yet) if flag_vtable_hack.
  3109. * class.c (build_vfn_ref): Likewise.
  3110. Mon Feb 28 14:54:13 1994 Jason Merrill <jason@deneb.cygnus.com>
  3111. * parse.y (component_decl): Don't include "typed_declspecs
  3112. declarator ';'" speedup, since it breaks enums.
  3113. Fri Feb 25 15:43:44 1994 Per Bothner <bothner@kalessin.cygnus.com>
  3114. * class.c (finish_struct): Minor optimization for building
  3115. fn_fields list.
  3116. Fri Feb 25 15:23:42 1994 Jason Merrill <jason@deneb.cygnus.com>
  3117. * decl.c (start_function): Fix detection of function overloading.
  3118. Thu Feb 24 22:26:19 1994 Mike Stump <mrs@cygnus.com>
  3119. * lex.c (check_newline): #pragma interface can take a string
  3120. argument, just like #pragma implementation. #pragma implementation
  3121. checks for garbage on the line, line #pragma interface does. Main
  3122. input files do not auto implement like named files, #pragma
  3123. implementation must be used explicitly.
  3124. Thu Feb 24 17:09:01 1994 Jason Merrill <jason@deneb.cygnus.com>
  3125. * parse.y (components): Handle list of one again.
  3126. (notype_components): Likewise.
  3127. (after_type_declarator1): Take maybe_raises out again.
  3128. * gxxint.texi (Parser): Document additional r/r conflict.
  3129. Wed Feb 23 14:42:55 1994 Jason Merrill <jason@deneb.cygnus.com>
  3130. * gxxint.texi (Parser): Add node.
  3131. * Makefile.in (stamp-parse): Update expected conflict count.
  3132. * parse.y (various): Replace "declmods declarator" with "declmods
  3133. notype_declarator". The comment saying that "declmods declarator ';'"
  3134. corresponds to "int i;" was wrong; it corresponds to "const i;".
  3135. (component_decl): Add "typed_declspecs declarator ';'" rule; this
  3136. *does* correspond to "int i;". Change "declmods components" to
  3137. "declmods notype_components".
  3138. (components): Don't deal with a list of one anymore.
  3139. (notype_components): New nonterminal, corresponds to notype_declarator.
  3140. ({after_,no}type_component_decl{,0}): More new nonterminals.
  3141. ({after_,no}type_declarator): Fold in START_DECLARATOR token.
  3142. Eliminates four reduce/reduce conflicts.
  3143. (expr): Depend on nontrivial_exprlist instead of nonnull_exprlist.
  3144. (nontrivial_exprlist): New nonterminal: A list of at least two
  3145. expr_no_commas's.
  3146. (nonnull_exprlist): Depend on nontrival_exprlist.
  3147. Eliminates four reduce/reduce conflicts.
  3148. (named_class_head): Move intermediate code block into separate
  3149. nonterminal so that we can stick %prec EMPTY on it.
  3150. Add more %prec EMPTY's to eliminate remaining shift/reduce
  3151. conflicts.
  3152. (after_type_declarator): Add maybe_raises to fndecl rules.
  3153. (after_type_declarator_no_typename): Remove.
  3154. For correctness.
  3155. Document remaining reduce/reduce conflicts.
  3156. Tue Feb 22 12:10:32 1994 Jason Merrill <jason@deneb.cygnus.com>
  3157. * search.c (get_base_distance): Only bash BINFO_INHERITANCE_CHAIN
  3158. (TYPE_BINFO (type)) if we care about the path.
  3159. * tree.c (lvalue_p): A COND_EXPR is an lvalue if both of the
  3160. options are.
  3161. Mon Feb 21 19:59:40 1994 Mike Stump <mrs@cygnus.com>
  3162. * Makefile.in (mostlyclean): lex.c is a source file, don't
  3163. remove.
  3164. Sat Feb 19 01:27:14 1994 Jason Merrill <jason@deneb.cygnus.com>
  3165. * parse.y: Eliminate 20 shift/reduce conflicts.
  3166. Fri Feb 18 11:49:42 1994 Jason Merrill <jason@deneb.cygnus.com>
  3167. * pt.c (type_unification): Add subr argument; if set, it means
  3168. that we are calling ourselves recursively, so a partial match is OK.
  3169. (unify): Support pointers to methods and functions.
  3170. (tsubst): Support method pointers.
  3171. * decl.c (build_ptrmemfunc_type): No longer static, so that
  3172. tsubst can get at it.
  3173. * init.c (is_aggr_typedef): Pretend template type parms are
  3174. aggregates.
  3175. * decl2.c (build_push_scope): If cname refers to a template type
  3176. parm, just grin and nod.
  3177. * call.c (build_overload_call_real): Pass subr argument to
  3178. type_unification.
  3179. * pt.c (do_function_instantiation): Likewise.
  3180. * class.c (instantiate_type): Likewise.
  3181. * search.c (get_base_distance): If BINFO is a binfo, use it and
  3182. don't mess with its BINFO_INHERITANCE_CHAIN.
  3183. * cvt.c (convert_to_reference): Fix temporary generation.
  3184. If ambiguous, return error_mark_node.
  3185. * init.c (build_new): Put back some necessary code.
  3186. Thu Feb 17 15:39:47 1994 Jason Merrill <jason@deneb.cygnus.com>
  3187. * init.c (build_new): Deal with array types properly.
  3188. * search.c (get_binfo): Become a shell for get_base_distance.
  3189. (get_binfo_recursive): Lose.
  3190. (get_base_distance_recursive): Find the path to the via_virtual base
  3191. that provides the most access.
  3192. (get_base_distance): Likewise.
  3193. * parse.y (explicit_instantiation): Syntax is 'template class
  3194. A<int>', not 'template A<int>'.
  3195. * typeck.c (convert_for_initialization): Remove bogus warning.
  3196. * parse.y (datadef): Revert patch of Oct 27.
  3197. Thu Feb 17 15:12:29 1994 Per Bothner <bothner@kalessin.cygnus.com>
  3198. * class.c (build_vfn_ref): Cast delta field to ptrdiff_type_node,
  3199. rather than integer_type_node. Does wonders for the Alpha.
  3200. Thu Feb 17 13:36:21 1994 Jason Merrill <jason@deneb.cygnus.com>
  3201. * decl.c (build_ptrmemfunc_type): Make sure that the pmf type
  3202. goes onto the same obstack as its target type.
  3203. Wed Feb 16 00:34:46 1994 Jason Merrill <jason@deneb.cygnus.com>
  3204. * cvt.c (convert_to_reference): If converting via constructor
  3205. on local level, go back to build_cplus_new approach.
  3206. * tree.c (build_cplus_new): If with_cleanup_p, set cleanup slot
  3207. to error_mark_node to prevent expand_expr from building a cleanup
  3208. for this variable.
  3209. * lex.c (default_assign_ref_body): Return *this from the memcpy
  3210. version, too.
  3211. * decl.c (grok_reference_init): Just return if called with
  3212. error_mark_node, don't worry about initializing non-const reference
  3213. with temporary.
  3214. * cvt.c (convert_to_reference): Do the right thing for
  3215. non-aggregate reference conversions, pedwarn when generating a
  3216. non-const reference to a temporary.
  3217. * class.c (finish_struct): TYPE_HAS_COMPLEX_{INIT,ASSIGN}_REF and
  3218. TYPE_NEEDS_CONSTRUCTING all depend on TYPE_USES_VIRTUAL_BASECLASSES
  3219. again.
  3220. Tue Feb 15 19:47:19 1994 Jason Merrill <jason@deneb.cygnus.com>
  3221. * decl.c (grok_reference_init): Pawn off a lot of the work on
  3222. convert_to_reference. Generally do the right thing.
  3223. * cvt.c (convert_to_reference): Conform to the initial comment;
  3224. i.e. don't create temps if decl != error_mark_node. Handle
  3225. cleanups better for temps that do get created. Don't pretend
  3226. that we can use an 'A' to initialize a 'const double &' just by
  3227. tacking on a NOP_EXPR. Support LOOKUP_SPECULATIVELY.
  3228. * call.c (build_method_call): Set TREE_HAS_CONSTRUCTOR on
  3229. constructor calls.
  3230. Mon Feb 14 14:50:17 1994 Jason Merrill <jason@deneb.cygnus.com>
  3231. * decl.c (grok_reference_init): Make a temporary for initializing
  3232. const reference from constant expression.
  3233. Mon Feb 14 11:31:31 1994 Per Bothner <bothner@kalessin.cygnus.com>
  3234. * cp-tree.h, decl.c (set_identifier_local_value): Deleted function.
  3235. * decl.c (pushdecl): Define decl in correct binding_level
  3236. (which isn't always the inner_binding_level).
  3237. * cvt.c (build_up_reference): Don't ever call expand_aggr_init.
  3238. It's ugly, and I don't think it's the right thing to do.
  3239. * cp-tree.h, class.c, decl.c, decl2.c, sp/search.c:
  3240. Remove NEW_CLASS_SCOPING, assuming it is always 1.
  3241. * decl.c (pop_decl_level): Removed; manually inlined.
  3242. Sun Feb 13 19:04:56 1994 Jason Merrill <jason@deneb.cygnus.com>
  3243. * class.h (candidate): Add basetypes field.
  3244. * call.c (build_method_call): Do access checking after choosing a
  3245. function, not before.
  3246. * Makefile.in (cvt.o, call.o, method.o): Depend on class.h.
  3247. (mostlyclean): Remove ../cc1plus.
  3248. Fri Feb 11 11:52:26 1994 Jason Merrill <jason@deneb.cygnus.com>
  3249. * class.c (finish_struct): Don't allow adjusting access to a field
  3250. of a base class if a local field has the same name.
  3251. * error.c (dump_type_prefix): Output basetype for METHOD_TYPEs.
  3252. Thu Jan 13 17:55:51 1994 Gnanasekaran Swaminathan <gs4t@virginia.edu>
  3253. * cp-tree.h (DESTRUCTOR_NAME_P): Do not confuse AUTO_TEMP names
  3254. with destructor names when either NO_DOLLAR_IN_LABEL or
  3255. NO_DOT_IN_LABEL are not defined.
  3256. Now `template <class T, T f(T&), const T*> class A {...}' works.
  3257. * pt.c (grok_template_type): Substitute template parm types
  3258. with actual types in complex type as well.
  3259. (coerce_template_parms): Update the grok_template_type ()
  3260. function call.
  3261. * pt.c (tsubst): Traverse method list using DECL_CHAIN.
  3262. * decl.c (grok_op_properties): Allow operator++/-- to have
  3263. default arguments.
  3264. * typeck2.c (store_init_value): Don't abort when called to
  3265. initialize a type that needs constructing with a CONSTRUCTOR.
  3266. * init.c (expand_aggr_init_1, CONSTRUCTOR case): If
  3267. store_init_value fails, build and expand an INIT_EXPR. If
  3268. store_init_value succeeds, call expand_decl_init.
  3269. Fri Feb 11 02:49:23 1994 Mike Stump <mrs@cygnus.com>
  3270. * class.c (build_vbase_path): Use complete_type_p instead of
  3271. resolves_to_fixed_type_p to determine if the virtual bases are in
  3272. their right place for the type of expr. Cures problem of thinking a
  3273. virtual base class is one place, when it is in fact someplace else.
  3274. Fri Feb 11 00:26:46 1994 Mike Stump <mrs@cygnus.com>
  3275. * init.c (resolve_offset_ref): Make sure we first convert to
  3276. intermediate type, if given, when dealing with members off `this'.
  3277. Solves an incorrrect `type `foo' is not a base type for type
  3278. `multiple'' when it is infact, a base type.
  3279. Thu Feb 10 21:49:35 1994 Mike Stump <mrs@cygnus.com>
  3280. * class.c (modify_other_vtable_entries): Use get_binfo, instead
  3281. of binfo_value. Solves problem with compiler giving a `base class
  3282. `B' ambiguous in binfo_value (compiler error)' on complex MI
  3283. herarchies, when a virtual function is first defied in a virtual
  3284. base class.
  3285. Thu Feb 10 17:19:32 1994 Mike Stump <mrs@cygnus.com>
  3286. * class.c (build_vbase_path): Don't complain about ambiguous
  3287. intermediate conversion when converting down to a virtual base
  3288. class, even if they might seem to be ambiguous.
  3289. Thu Feb 10 12:18:26 1994 Jason Merrill <jason@deneb.cygnus.com>
  3290. * typeck2.c (build_functional_cast): #if 0 out constructor
  3291. inheritance code, improve error messages.
  3292. * class.c (finish_base_struct): Complain about base with only
  3293. non-default constructors in derived class with no constructors.
  3294. * decl.c (grokdeclarator): Fix detection of virtual new/delete.
  3295. Wed Feb 9 22:02:32 1994 Mike Stump <mrs@cygnus.com>
  3296. * search.c (build_mi_virtuals, add_mi_virtuals,
  3297. report_ambiguous_mi_virtuals): Removed unneeded code.
  3298. * class.c (finish_struct_bits): Likewise.
  3299. Wed Feb 9 11:27:17 1994 Jason Merrill <jason@deneb.cygnus.com>
  3300. * pt.c (end_template_instantiation): Push decl before
  3301. pop_from_top_level.
  3302. * typeck2.c (build_m_component_ref): Make sure datum is of
  3303. aggregate type.
  3304. * init.c (get_type_value): New function, returns
  3305. IDENTIFIER_TYPE_VALUE or IDENTIFIER_CLASS_TYPE_VALUE or NULL_TREE.
  3306. * call.c (build_method_call): Don't die on call to destructor for
  3307. non-type.
  3308. * decl.c (grokdeclarator): Complain about virtual op new and op
  3309. delete, make static virtuals unvirtual instead of unstatic.
  3310. * typeck.c (build_c_cast): Also call default_conversion on
  3311. methods.
  3312. * decl.c (grokdeclarator): Don't complain about anonymous
  3313. bitfields.
  3314. * parse.y (simple_stmt, for loops): Move the continue point after
  3315. the cleanups.
  3316. * class.c (finish_struct): Fix setting of
  3317. TYPE_HAS_COMPLEX_INIT_REF.
  3318. Tue Feb 8 13:21:40 1994 Jason Merrill <jason@deneb.cygnus.com>
  3319. * init.c (build_new): Deal with `new double (1)'.
  3320. * class.c (finish_struct): TYPE_HAS_COMPLEX_*_REF are supersets of
  3321. TYPE_HAS_REAL_*_REF, but TYPE_HAS_COMPLEX_INIT_REF is independent of
  3322. TYPE_NEEDS_CONSTRUCTING.
  3323. * decl.c (duplicate_decls): Propagate access decls.
  3324. * typeck2.c (process_init_constructor): Accept empty_init_node
  3325. for initializing unions.
  3326. * class.c, lex.c, cp-tree.h: Use
  3327. TYPE_HAS_COMPLEX_ASSIGN_REF where TYPE_HAS_REAL_ASSIGN_REF was used
  3328. before, use TYPE_HAS_COMPLEX_INIT_REF for TYPE_NEEDS_CONSTRUCTING in
  3329. some places.
  3330. * decl.c (finish_decl): Don't complain about uninitialized const
  3331. if it was initialized before.
  3332. Mon Feb 7 18:12:34 1994 Jason Merrill <jason@deneb.cygnus.com>
  3333. * lex.c (default_assign_ref_body): Don't deal with vbases for
  3334. now.
  3335. * decl.c (finish_decl): Fix reversed logic for objects and other
  3336. things that need to be constructed but have no initializer.
  3337. * class.c (finish_struct): Don't set TYPE_HAS_* flags that are
  3338. set by grok_op_properties or finish_decl.
  3339. * decl.c: Don't warn about extern redeclared inline unless
  3340. -Wextern-inline is given.
  3341. * decl2.c (lang_decode_option): Likewise.
  3342. * cp-tree.h: Likewise.
  3343. Mon Feb 7 17:29:24 1994 Per Bothner <bothner@kalessin.cygnus.com>
  3344. * decl.c (pushdecl_with_scope): Fix thinko. Add forward
  3345. declaration.
  3346. * decl.c (pushdecl_with_scope): New function.
  3347. * decl.c (pushdecl_top_level): Use new function.
  3348. * decl.c (pushtag): Initialize newdecl.
  3349. * decl.c (pushtag): Push new type decl into correct scope.
  3350. Mon Feb 7 14:42:03 1994 Jason Merrill <jason@deneb.cygnus.com>
  3351. * call.c, cvt.c, init.c, search.c, cp-tree.h:
  3352. Eradicate LOOKUP_PROTECTED_OK.
  3353. Mon Feb 7 13:57:19 1994 Per Bothner <bothner@kalessin.cygnus.com>
  3354. * decl.c (pushtag, xref_tag), cp-tree.h: Add extra parameter
  3355. 'globalize' to signify implicit declarations.
  3356. * decl.c (globalize_nested_type, maybe_globalize_type): Removed.
  3357. * decl.c (set_identifier_type_value_with_scope): New function.
  3358. * decl.c (set_identifier_local_value): Simplify.
  3359. * spew.c (yylex, do_addr): Modify to return a _DEFN if a
  3360. forward declaration (followed by ';' and not preceded by 'friend').
  3361. * class.c, decl.c, except.c, init.c, parse.y,
  3362. pt.c, search.c: Add new argument to calls to xref_tag and
  3363. pushtag.
  3364. Mon Feb 7 00:22:59 1994 Jason Merrill <jason@deneb.cygnus.com>
  3365. * cp-tree.h (ACCESSIBLY_UNIQUELY_DERIVED_P): New macro, means what
  3366. ACCESSIBLY_DERIVED_FROM_P meant before.
  3367. (ACCESSIBLY_DERIVED_FROM_P): Now disregards ambiguity.
  3368. * cvt.c (build_up_reference): Call get_binfo with PROTECT == 1.
  3369. * search.c (get_base_distance_recursive): Members and friends of
  3370. a class X can implicitly convert an X* to a pointer to a private or
  3371. protected immediate base class of X.
  3372. (get_binfo_recursive): Likewise.
  3373. (get_base_distance): Ignore ambiguity if PROTECT < 0.
  3374. (get_binfo): Lose multiple values of PROTECT.
  3375. (compute_access): Protected is OK if the start of the
  3376. search is an accessible base class of current_class_type.
  3377. * method.c (build_opfncall): Do check access on operator new here.
  3378. * decl.c (finish_function): Don't check access on operator new
  3379. here.
  3380. Sun Feb 6 14:06:58 1994 Jason Merrill <jason@deneb.cygnus.com>
  3381. * decl.c (xref_tag): The base of a derived struct is NOT always
  3382. public. Duh.
  3383. * pt.c (do_explicit_instantiation): New function, called from
  3384. parser to do explicit function instantiation.
  3385. (type_unification): Allow the args list to be terminated with
  3386. void_list_node.
  3387. (do_pending_expansions): Look at i->interface for non-member
  3388. templates.
  3389. * parse.y (datadef): Move explicit_instantiation here.
  3390. (structsp): From here.
  3391. (datadef): Complain about `int;'.
  3392. Sun Feb 6 12:33:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
  3393. * pt.c (end_template_instantiation), cp-tree.h: Remove unused
  3394. second parameter, and simplify first from a TREE_LIST where
  3395. we only care about its TREE_VALUE to just the value (an IDENTIFIER).
  3396. * pt.c (instantiate_member_templates): Simplify argument list
  3397. from a TREE_LIST to just an IDENTIFIER.
  3398. * lex.c (yyprint): PRE_PARSED_CLASS_DECL is now just an IDENTIFIER.
  3399. * parse.y (template_instantiate_once): Simplify accordingly.
  3400. * decl.c (inner_binding_level): New. Use various places to
  3401. simplify.
  3402. Sun Feb 6 02:49:37 1994 Jason Merrill <jason@deneb.cygnus.com>
  3403. * typeck2.c (build_functional_cast): int() -> int(0).
  3404. Sat Feb 5 00:53:21 1994 Jason Merrill <jason@deneb.cygnus.com>
  3405. * class.c (finish_struct): Don't do a bitwise copy for op= if the
  3406. class has a virtual function table.
  3407. * typeck.c (convert_for_initialization): Restore warnings about
  3408. not using defined op=. Should really be my_friendly_aborts, I
  3409. s'pose.
  3410. Fri Feb 4 14:21:00 1994 Jason Merrill <jason@deneb.cygnus.com>
  3411. * class.c (finish_struct): Tidy up conditions for doing bitwise
  3412. copies of objects.
  3413. * decl.c (build_default_constructor): #if 0 out.
  3414. * *: Eradicate TYPE_GETS_{ASSIGNMENT,ASSIGN_REF,CONST_ASSIGN_REF,
  3415. CONST_INIT_REF}, TYPE_HAS_REAL_CONSTRUCTOR.
  3416. * decl.c (grokdeclarator): Don't return void_type_node for
  3417. friends being defined here.
  3418. * init.c (perform_member_init): Only do the init if it's useful.
  3419. * lex.c (default_copy_constructor_body): If we don't need to do
  3420. memberwise init, just call __builtin_memcpy.
  3421. (default_assign_ref_body): Likewise.
  3422. * decl.c (grokdeclarator): If friendp && virtualp, friendp = 0.
  3423. Fri Feb 4 13:02:56 1994 Mike Stump <mrs@cygnus.com>
  3424. * lex.c (reinit_parse_for_method, cons_up_default_function):
  3425. Don't give warn_if_unknown_interface warning when it came from a
  3426. system header file.
  3427. * pt.c (end_template_decl, instantiate_template): Likewise.
  3428. * decl.c (start_decl): Likewise.
  3429. Fri Feb 4 00:41:21 1994 Jason Merrill <jason@deneb.cygnus.com>
  3430. * decl.c (grokdeclarator): Don't try to set TYPE_WAS_ANONYMOUS on
  3431. enums.
  3432. * decl2.c (constructor_name_full): Use IS_AGGR_TYPE_CODE instead of
  3433. IS_AGGR_TYPE, since we don't know it's a type.
  3434. Thu Feb 3 11:36:46 1994 Jason Merrill <jason@deneb.cygnus.com>
  3435. * decl.c (grokdeclarator): Don't complain about anonymous unions.
  3436. * cp-tree.h (TYPE_WAS_ANONYMOUS): This struct was originally
  3437. anonymous, but had a name given to it by a typedef.
  3438. * decl.c (grokdeclarator): When renaming an anonymous struct, set
  3439. TYPE_WAS_ANONYMOUS.
  3440. * decl2.c (constructor_name_full): Use TYPE_WAS_ANONYMOUS.
  3441. * cp-tree.h (DECL_UNDEFINED_FRIENDS): #if 0 out.
  3442. * init.c (xref_friend): Don't set up DECL_UNDEFINED_FRIENDS.
  3443. (embrace_waiting_friends): Don't use DECL_UNDEFINED_FRIENDS.
  3444. * decl.c (grokdeclarator): Set TYPE_NESTED_NAME properly on nested
  3445. anonymous structs that get typedef'd.
  3446. * decl.c (grokdeclarator): Always return void_type_node for
  3447. friends.
  3448. * error.c (dump_function_decl): Don't use DECL_CLASS_CONTEXT for
  3449. friends.
  3450. (dump_function_decl): Don't print out default args for
  3451. a function used in an expression.
  3452. * decl.c (grokdeclarator): Give error on abstract declarator used
  3453. in an invalid context (i.e. `void (*)();').
  3454. * error.c (cp_line_of): Support _TYPE nodes.
  3455. (cp_file_of): Likewise.
  3456. * cvt.c (build_up_reference): Don't abort if passed a SAVE_EXPR;
  3457. it can happen for the RHS of an assignment stmt where the LHS is
  3458. a COND_EXPR.
  3459. * init.c (expand_aggr_init_1): Deal with bracketed initializer
  3460. lists properly.
  3461. * class.c (finish_struct): Deal with enumerators and typedefs
  3462. again.
  3463. Wed Feb 2 11:30:22 1994 Jason Merrill <jason@deneb.cygnus.com>
  3464. * class.c (finish_struct): Tidy up loop over fields.
  3465. * errfn.c (cp_thing): Don't advance twice after a format.
  3466. * class.c (finish_struct): Complain about needing a constructor
  3467. if a member has only non-default constructors, and don't try to
  3468. generate a default constructor.
  3469. * decl.c (finish_decl): Also do the constructor thing if
  3470. TYPE_NEEDS_CONSTRUCTING is set (for arrays).
  3471. * search.c (unuse_fields): New function: mark all fields in this
  3472. type unused.
  3473. (dfs_unuse_fields): Helper function.
  3474. * class.c (pushclass): If the new class is the same as the old
  3475. class, still unuse the fields.
  3476. (unuse_fields): Move to search.c.
  3477. * decl.c (grok_op_properties): Add friendp argument.
  3478. (grokfndecl): Pass it.
  3479. (start_method): Likewise.
  3480. * decl2.c (delete_sanity): Add use_global_delete parameter to catch
  3481. ::delete calls.
  3482. * parse.y (unary_expr): Pass new parameter to delete_sanity.
  3483. * lex.c (default_copy_constructor_body): Don't choke if the union
  3484. has no fields.
  3485. (default_assign_ref_body): Likewise.
  3486. * call.c (compute_conversion_costs_ansi): Do the right thing for
  3487. ellipsis matches.
  3488. * decl.c (push_to_top_level): Optimize.
  3489. * decl.c (start_function): Look for the lexical scope of a friend
  3490. in DECL_CLASS_CONTEXT.
  3491. * init.c (do_friend): Set DECL_CLASS_CONTEXT on global friends.
  3492. Tue Feb 1 15:59:24 1994 Jason Merrill <jason@deneb.cygnus.com>
  3493. * cp-tree.h (TREE_GETS_PLACED_NEW): New macro.
  3494. * init.c (init_init_processing): Don't assign BIN/BID to the
  3495. IDENTIFIER_GLOBAL_VALUEs of their respective operators.
  3496. (build_new): Check TREE_GETS_PLACED_NEW.
  3497. * decl.c (grok_op_properties): Don't set TREE_GETS_NEW for a decl of
  3498. op new with placement, set TREE_GETS_PLACED_NEW.
  3499. * cp-tree.h (ANON_UNION_P): New macro. Applies to decls.
  3500. * class.c (finish_struct): Don't treat anonymous unions like
  3501. other aggregate members. Do synthesize methods for unions without
  3502. a name, since they may or may not be "anonymous unions".
  3503. * decl2.c (grok_x_components): Wipe out memory of synthesized methods
  3504. in anonymous unions.
  3505. * lex.c (default_copy_constructor_body): Support unions.
  3506. (default_assign_ref_body): Likewise.
  3507. Mon Jan 31 12:07:30 1994 Jason Merrill <jason@deneb.cygnus.com>
  3508. * cp-tree.h: Fix documentation of LOOKUP_GLOBAL, add prototypes.
  3509. * error.c (args_as_string): New function (%A), like type_as_string
  3510. except NULL_TREE -> "..."
  3511. * call.c (build_overload_call_real): Fix for new overloading.
  3512. * decl.c (grok_op_properties): Set all of the TYPE_OVERLOADS_* flags
  3513. here.
  3514. * parse.y (operator_name): Instead of here.
  3515. * typeck2.c (build_functional_cast): Treat a TREE_LIST as a list
  3516. of functions.
  3517. * call.c (build_overload_call_real): Support LOOKUP_SPECULATIVELY.
  3518. * method.c (build_opfncall): Don't need to massage return value
  3519. any more, call build_overload_call with all flags.
  3520. * typeck.c (build_x_binary_op): Put back speculative call to
  3521. build_opfncall.
  3522. (build_x_unary_op): Likewise.
  3523. (build_x_conditional_expr): Likewise.
  3524. Mon Jan 31 10:00:30 1994 Mike Stump <mrs@cygnus.com>
  3525. * cvt.c (build_type_conversion_1): Change call to pedwarn into
  3526. warning, and conditionalize upon warn_cast_qual.
  3527. Fri Jan 28 11:48:15 1994 Jason Merrill <jason@deneb.cygnus.com>
  3528. * search.c (lookup_field): If xbasetype is a binfo, copy it to
  3529. avoid clobbering its inheritance info.
  3530. * call.c (build_method_call): Don't overwrite basetype_path with
  3531. TYPE_BINFO (inst_ptr_basetype) if they have the same type.
  3532. * search.c (compute_access): Fix handling of protected inheritance
  3533. and friendship with the enclosing class.
  3534. * typeck2.c (store_init_value): Allow passing of TREE_CHAIN for
  3535. initialization of arbitrary variable.
  3536. * typeck2.c (build_functional_cast): Only try calling a method if
  3537. one exists.
  3538. * decl.c (grokdeclarator): Move handling of constructor syntax
  3539. initialization into first loop for generality.
  3540. (parmlist_is_random): Lose.
  3541. * lex.c (cons_up_default_function): Set TREE_PARMLIST on arguments
  3542. to default function.
  3543. Thu Jan 27 19:26:51 1994 Jason Merrill <jason@deneb.cygnus.com>
  3544. * decl.c (grokparms): Abort if we get called with something we don't
  3545. expect.
  3546. Thu Jan 27 17:37:25 1994 Mike Stump <mrs@cygnus.com>
  3547. * call.c (build_overload_call_real): Change argument complain to
  3548. flags to match style of rest of code. Pass it down to
  3549. build_function_call_real as necessary.
  3550. * call.c (build_overload_call, build_overload_call_maybe): Change
  3551. argument complain to flags to match style of rest of code.
  3552. * cp-tree.h (build_function_call_real): Added fourth flags
  3553. argument.
  3554. * cvt.c (convert_to_reference): Only give warning messages, if
  3555. LOOKUP_COMPLAIN is set.
  3556. * typeck.c (build_x_function_call): Change simple complain
  3557. argument to build_overload_call_maybe and build_overload_call, to
  3558. LOOKUP_COMPLAIN to match style of rest of code.
  3559. * typeck2.c (build_functional_cast): Likewise.
  3560. * typeck.c (build_function_call_real): Add flags, so that we can
  3561. not complain, if we don't want to complain. Complain about
  3562. arguments, if we are complaining, otherwise don't.
  3563. * typeck.c (build_function_call, build_function_call_maybe):
  3564. Stick in flags argument.
  3565. * typeck.c (build_x_binary_op, build_x_unary_op,
  3566. build_x_conditional_expr, build_x_compound_expr): Follow style of
  3567. build_x_indirect_ref, as it is more correct and more common.
  3568. Thu Jan 27 14:36:20 1994 Jason Merrill <jason@deneb.cygnus.com>
  3569. * call.c (build_method_call): Don't check for being called with
  3570. a pointer.
  3571. * decl2.c (finish_file): Don't play with DECL_CLASS_CONTEXT for the
  3572. static initializer function.
  3573. * init.c (build_member_call): Use convert_force here, too.
  3574. * search.c (compute_access): Only treat static members specially
  3575. if they are referenced directly.
  3576. Wed Jan 26 18:28:14 1994 Jason Merrill <jason@deneb.cygnus.com>
  3577. * gxxint.texi (Access Control): New node.
  3578. * search.c (current_scope): New function; returns whichever of
  3579. current_class_type and current_function_decl is the most nested.
  3580. (compute_access): Total overhaul to make it clearer and more
  3581. correct. Don't use the cache for now; in the only situation where
  3582. it was used before, it gained nothing. This frees up three of the
  3583. DECL_LANG_FLAGs for possible other use!
  3584. * cp-tree.h: #if 0 out DECL_PUBLIC & friends.
  3585. * typeck.c (build_component_ref_1): Don't check DECL_PUBLIC.
  3586. * call.c (build_method_call): Use convert_force to cast `this' --
  3587. rely on the access checking for the method itself.
  3588. * init.c (is_friend): Do the nesting thing, handle types. I am
  3589. my own friend.
  3590. (is_friend_type): Become a shell for is_friend.
  3591. (add_friend): Never stick in ctype.
  3592. Why are the friendship functions in init.c, anyway?
  3593. Wed Jan 26 17:50:00 1994 Mike Stump <mrs@cygnus.com>
  3594. * cvt.c (build_type_conversion_1): Don't conditionalize call to
  3595. pedwarn upon pedantic.
  3596. Wed Jan 26 17:20:46 1994 Mike Stump <mrs@cygnus.com>
  3597. * cvt.c (convert_to_reference): Add 8.4.3 checking so that one
  3598. gets a warning if one tries to initialize a non-const & from a
  3599. non-lvalue.
  3600. * cvt.c (convert_to_reference): Use %P format for argument
  3601. numbers in warnings.
  3602. Wed Jan 26 14:35:06 1994 Mike Stump <mrs@cygnus.com>
  3603. * init.c (build_delete): Follow style in call.c to construct the
  3604. virtual call to the desctructor, as that code is right. Fixes a
  3605. problem of the compiler saying a pointer conversion is ambiguous.
  3606. Wed Jan 26 11:28:14 1994 Jason Merrill <jason@deneb.cygnus.com>
  3607. * cp-tree.h (VTABLE_NAME_P): Change other occurrence of
  3608. VTABLE_NAME_FORMAT to VTABLE_NAME.
  3609. * *: s/visibility/access/g
  3610. Tue Jan 25 18:39:12 1994 Jason Merrill <jason@deneb.cygnus.com>
  3611. * typeck.c (build_modify_expr): Don't smash references if INIT_EXPR.
  3612. Tue Jan 25 13:54:29 1994 Mike Stump <mrs@cygnus.com>
  3613. * init.c (build_delete): Back out Jan 17th & 18th pacthes, as
  3614. they break libg++.
  3615. Tue Jan 25 13:11:45 1994 Jason Merrill <jason@deneb.cygnus.com>
  3616. * decl.c (duplicate_decls): Fix pointer arithmetic.
  3617. Mon Jan 24 15:50:06 1994 Chip Salzenberg <chip@fin.uucp>
  3618. [ cp-* changes propagated from c-* changes in 940114 snapshot ]
  3619. * cp-parse.y (maybe_attribute): Allow multiple __attribute__
  3620. clauses on a declaration.
  3621. Mon Jan 24 17:06:23 1994 Jason Merrill <jason@deneb.cygnus.com>
  3622. * class.c (finish_struct): Do synthesize methods for anon
  3623. structs, just not unions.
  3624. Mon Jan 24 13:50:13 1994 Kung Hsu <kung@mexican.cygnus.com>
  3625. * decl.c (xref_tag): Handle anonymous nested type.
  3626. * decl.c (globalize_nested_type): Add no globalize bit check.
  3627. * spew.c (hack_more_ids): Templated nested decl not push top
  3628. level.
  3629. * parse.y: Get rid of 'goto do_components'. It is much better
  3630. for debugging.
  3631. * decl.c (is_anon_name): Get rid of the function and use the
  3632. macro ANON_AGGRNAME_P.
  3633. * pt.c: Ditto.
  3634. Fri Jan 21 14:06:02 1994 Jason Merrill <jason@deneb.cygnus.com>
  3635. * class.c (finish_struct): Don't synthesize any methods for
  3636. anonymous structs/unions.
  3637. * typeck.c (build_modify_expr): Don't treat pmf's as class objects.
  3638. Thu Jan 20 18:56:46 1994 Jason Merrill <jason@deneb.cygnus.com>
  3639. * method.c (build_opfncall): Call build_indirect_ref on
  3640. synthesized instance for operator delete.
  3641. * pt.c (type_unification): Don't abort if called with a list of
  3642. types in ARGS.
  3643. * class.c (instantiate_type): Deal with function templates.
  3644. Thu Jan 20 16:55:35 1994 Jim Wilson <wilson@sphagnum.cygnus.com>
  3645. * Makefile.in (CC): Default to cc not gcc.
  3646. Thu Jan 20 13:47:54 1994 Jason Merrill <jason@deneb.cygnus.com>
  3647. * typeck.c (build_modify_expr): Call constructor if appropriate.
  3648. * decl.c (push_to_top_level): Clear out class-level bindings cache.
  3649. Wed Jan 19 13:51:22 1994 Jason Merrill <jason@deneb.cygnus.com>
  3650. * call.c (resolve_scope_to_name): Work recursively (previously only
  3651. looked down one level).
  3652. * lex.c (do_pending_inlines): If we're still dealing with the last
  3653. batch of inlines, don't start working on a new one.
  3654. * Makefile.in (stamp-parse): Update conflict count.
  3655. (TAGS): Fix.
  3656. * parse.y (explicit_instantiation): New rule; implements
  3657. 'template A<int>' syntax (though not 'template foo(int)' yet).
  3658. (structsp): Add explicit_instantiation.
  3659. Tue Jan 18 13:53:05 1994 Jason Merrill <jason@deneb.cygnus.com>
  3660. * class.c (finish_struct, etc.): Simplify decision to synthesize
  3661. a destructor.
  3662. * call.c, class.c, cp-tree.h, decl.c, init.c,
  3663. ptree.c, search.c, typeck.c, typeck2.c: Nuke
  3664. TYPE_NEEDS_CONSTRUCTOR (change all calls to TYPE_NEEDS_CONSTRUCTING).
  3665. * init.c (expand_aggr_init_1): Don't try non-constructor methods
  3666. of initializing objects.
  3667. (build_new): Don't try other methods if the constructor lookup fails.
  3668. * class.c (finish_base_struct): Set cant_have_default_ctor and
  3669. cant_synth_copy_ctor properly.
  3670. (finish_struct): Likewise.
  3671. Mon Jan 17 13:58:18 1994 Jason Merrill <jason@deneb.cygnus.com>
  3672. * typeck.c (build_modify_expr_1): #if 0 out again.
  3673. (build_modify_expr): #if 0 out memberwise init code again.
  3674. * lex.c (default_copy_constructor_body): Be const-correct.
  3675. (default_assign_ref_body): Likewise.
  3676. * init.c (perform_member_init): Use TYPE_HAS_CONSTRUCTOR to decide
  3677. whether or not to use it, rather than TYPE_NEEDS_CONSTRUCTING.
  3678. (expand_aggr_init): Disable silent conversion from initializer list
  3679. to list of args for a constructor.
  3680. * class.c (base_info): Lose needs_default_ctor.
  3681. (finish_base_struct): Likewise.
  3682. (finish_struct): Likewise.
  3683. * decl.c (init_decl_processing): Don't turn off flag_default_inline
  3684. just because flag_no_inline is on.
  3685. (finish_decl): Use TYPE_HAS_CONSTRUCTOR to decide to use
  3686. constructor.
  3687. * class.c (finish_struct): Synthesize default ctor whenever
  3688. allowed.
  3689. * Makefile.in (TAGS): Don't try to run etags on cp-parse.y.
  3690. Sat Jan 15 18:34:33 1994 Mike Stump <mrs@cygnus.com>
  3691. * Makefile.in, configure: Handle the C++ front-end in a
  3692. subdirectory.
  3693. * cp-*: Move C++ front-end to cp/*.
  3694. Fri Jan 14 14:09:37 1994 Jason Merrill <jason@deneb.cygnus.com>
  3695. * cp-typeck.c (build_function_call_real): Modify to match other
  3696. instances of taking the address of the function.
  3697. * cp-class.c (finish_struct): Set TYPE_HAS_REAL_CONSTRUCTOR to 1 if
  3698. there are non-synthesized constructors.
  3699. Only set TYPE_NEEDS_CONSTRUCTOR if TYPE_HAS_REAL_CONSTRUCTOR.
  3700. Always generate copy constructor if possible.
  3701. * cp-tree.h (lang_type): Add has_real_constructor bitfield.
  3702. (TYPE_HAS_REAL_CONSTRUCTOR): Define.
  3703. * cp-lex.c (default_copy_constructor_body): Use init syntax
  3704. for all bases.
  3705. * cp-type2.c (store_init_value): Only give error for initializer list
  3706. if TYPE_HAS_REAL_CONSTRUCTOR.
  3707. Thu Jan 13 15:38:29 1994 Jason Merrill <jason@deneb.cygnus.com>
  3708. * cp-tree.h (DECL_SYNTHESIZED): Add defn.
  3709. (lang_decl): Add synthesized bitfield to decl_flags.
  3710. * cp-lex.c (cons_up_default_function): Use DECL_SYNTHESIZED to mark
  3711. artificial methods, rather than a line # of 0.
  3712. Fri Jan 14 18:25:29 1994 Kung Hsu <kung@mexican.cygnus.com>
  3713. * cp-decl (xref_tag): Fix a bug in conflict type.
  3714. * cp-parse.y: Add SCOPED_NAME for uninstantiated template nested
  3715. type reference.
  3716. * cp-spew.c (yylex): Generated SCOPED_NAME token.
  3717. * cp-lex.c (yyprint): Handle SCOPED_NAME.
  3718. Fri Jan 14 17:00:29 1994 Mike Stump <mrs@cygnus.com>
  3719. * cp-decl.c (pushdecl): Revert patch from Jan 11 19:33:03, as it is
  3720. not right.
  3721. Thu Jan 13 14:00:35 1994 Kung Hsu <kung@mexican.cygnus.com>
  3722. * cp-decl2.c (grok_x_components): Fix a bug that enum type does not
  3723. have type_flags.
  3724. Thu Jan 13 11:39:34 1994 Mike Stump <mrs@cygnus.com>
  3725. Ensure that all vtable pointers are initialized with all the right
  3726. values.
  3727. * cp-class.c (is_normal): Changed to reflect new meaning of
  3728. CLASSTYPE_VFIELD_PARENT.
  3729. * cp-class.c (maybe_fixup_vptrs): Use of
  3730. CLASSTYPE_NEEDS_VIRTUAL_REINIT here is misguided. Use
  3731. BINFO_MODIFIED instead.
  3732. * cp-class.c (finish_struct): Changed to reflect new meaning of
  3733. CLASSTYPE_VFIELD_PARENT.
  3734. * cp-decl.c (get_binfo_from_vfield): Removed, unneeded now.
  3735. * cp-decl.c (finish_function): Use init_vtbl_ptrs, instead of open
  3736. coding it here.
  3737. * cp-init.c (init_vfields): Changed name to init_vtbl_ptrs, and
  3738. re-implement.
  3739. * cp-init.c (emit_base_init): Use new name init_vtbl_ptrs.
  3740. * cp-tree.h (vfield_parent): Changed to integer.
  3741. * cp-tree.h (CLASSTYPE_VFIELD_PARENT): Changed docs to reflect new
  3742. meaning.
  3743. * cp-tree.h (init_vtbl_ptrs): Added init_vtbl_ptrs.
  3744. Wed Jan 12 18:24:16 1994 Kung Hsu <kung@mexican.cygnus.com>
  3745. * cp-decl.c (xref_tag): Re-implement globalize nested type.
  3746. * cp-decl2.c (grok_x_components): Ditto.
  3747. * cp-parse.y: Ditto.
  3748. * cp-tree.h (lang_type): Add no_globalize bit in type_flags.
  3749. Wed Jan 12 14:08:09 1994 Jason Merrill <jason@deneb.cygnus.com>
  3750. * cp-decl.c (grokdeclarator): Don't set TREE_PUBLIC on friend
  3751. decls with a definition attached.
  3752. * cp-typeck.c (build_modify_expr): Undo previous change in the case
  3753. of INIT_EXPRs.
  3754. Tue Jan 11 19:33:03 1994 Jason Merrill <jason@deneb.cygnus.com>
  3755. * cp-typeck.c (build_modify_expr): Replace code for generating
  3756. assignment semantics for classes with an error.
  3757. (build_modify_expr_1): #if 0 out.
  3758. * cp-decl.c (pushdecl): Patch bogus design of pushdecl
  3759. behavior for overloaded functions (it doesn't push anything).
  3760. * cp-class.c (finish_struct): When generating default op=,
  3761. set TYPE_HAS_ASSIGNMENT.
  3762. Mon Jan 10 18:48:06 1994 Mike Stump <mrs@cygnus.com>
  3763. * cp-cvt.c (convert): Make {double, clashing enum} -> enum
  3764. invalid.
  3765. * cp-typeck.c (convert_for_assignment): Simplify.
  3766. * cp-decl2.c (warn_enum_clash): Removed.
  3767. * invoke.texi (-Wenum-clash): Removed.
  3768. * toplev.c (-Wenum-clash): Removed.
  3769. Mon Jan 10 17:48:37 1994 Kung Hsu <kung@mexican.cygnus.com>
  3770. * cp-decl.c (finish_decl): Fix incorrect popclass call.
  3771. * cp-decl.c (is_anon_name): New function, check whether the name
  3772. is anonymous name generated by compiler.
  3773. * cp-decl.c (grokdeclarator): Allow nested SCOPE_REF
  3774. * cp-spew.c (hack_more_ids): Handle nested type in template.
  3775. * cp-parse.y: Handle nested type reference in uninstantiated
  3776. template.
  3777. * cp-call.c (build_method_call): Handle uninstantiated template
  3778. case.
  3779. * cp-pt.c (search_nested_type_in_tmpl): New function, search nested
  3780. type in template.
  3781. * cp-pt.c (lookup_nested_type_by_name): New function, lookup nested
  3782. type by name.
  3783. * cp-pt.c (tsubst): Handle nested type search by name.
  3784. Mon Jan 10 14:32:18 1994 Jason Merrill <jason@deneb.cygnus.com>
  3785. * cp-init.c (build_member_call): Propagate qualifiers to new type.
  3786. * cp-call.c (build_method_call): Count functions the new way.
  3787. Fri Jan 7 19:03:26 1994 Jason Merrill <jason@deneb.cygnus.com>
  3788. * cp-decl.c (pushtag): Set DECL_ASSEMBLER_NAME for nested classes,
  3789. too.
  3790. Tue Jan 4 16:45:51 1994 Kung Hsu <kung@cirdan.cygnus.com>
  3791. * cp-parse.y: Change to handle whether to globalize nested class.
  3792. * cp-decl.c (xref_tag, maybe_globalize_type): Likewise.
  3793. Mon Jan 3 22:22:32 1994 Gerald Baumgartner <gb@cygnus.com>
  3794. * Makefile.in cp-call.c cp-class.c cp-cvt.c cp-decl.c cp-decl2.c
  3795. cp-error.c cp-init.c cp-lex.c cp-lex.h cp-method.c cp-parse.y
  3796. cp-spew.c cp-tree.c cp-tree.h cp-type2.c cp-typeck.c cp-xref.c
  3797. gplus.gperf toplev.c: Incorporated C++ signature extension.
  3798. * cp-sig.c: New file, contains most of signature processing.
  3799. * cp-hash.h: Regenerated from gplus.gperf.
  3800. * gcc.1 g++.1: Added explanation for the `-fhandle-signatures'
  3801. and `-fno-handle-signatures' command line flags.
  3802. * gcc.texi: Changed the last-modification date.
  3803. * invoke.texi: Added `-fhandle-signatures' in the list of
  3804. C++ language options. Added explanation for this option.
  3805. Copyright (C) 1994 Free Software Foundation, Inc.
  3806. Copying and distribution of this file, with or without modification,
  3807. are permitted in any medium without royalty provided the copyright
  3808. notice and this notice are preserved.