ChangeLog 157 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818
  1. 2015-07-16 Release Manager
  2. * GCC 5.2.0 released.
  3. 2015-07-10 Jakub Jelinek <jakub@redhat.com>
  4. Backported from mainline
  5. 2015-07-08 Jakub Jelinek <jakub@redhat.com>
  6. * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
  7. are to be removed, return NULL rather than original clauses list.
  8. 2015-07-01 Jason Merrill <jason@redhat.com>
  9. * c-opts.c (c_common_post_options): Highest ABI version is 9.
  10. 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
  11. Pierre-Marie de Rodat <derodat@adacore.com>
  12. * c-ada-spec.c (in_function): Delete.
  13. (dump_generic_ada_node): Do not change in_function and remove the
  14. redundant code dealing with it.
  15. (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
  16. (print_ada_methods): Output the static member functions in a nested
  17. package after the regular methods as well as associated renamings.
  18. 2015-04-22 Release Manager
  19. * GCC 5.1.0 released.
  20. 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  21. PR target/55143
  22. * c-common.c (c_default_pointer_mode): Add definition.
  23. * c-common.h (c_default_pointer_mode): Add declaration.
  24. 2015-03-11 Jakub Jelinek <jakub@redhat.com>
  25. * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
  26. on record_builtin_type argument.
  27. 2015-03-10 Jakub Jelinek <jakub@redhat.com>
  28. PR c/65120
  29. * c-common.c (warn_logical_not_parentheses): Don't warn for
  30. !x == 0 or !x != 0.
  31. 2015-03-07 Marek Polacek <polacek@redhat.com>
  32. PR sanitizer/65280
  33. * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
  34. before trying to figure out whether we have a flexible array member.
  35. 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
  36. Jonathan Wakely <jwakely.gcc@gmail.com>
  37. * c-ada-spec.c (dump_ada_double_name): Fix pasto.
  38. 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
  39. PR ada/65319
  40. * c-ada-spec.c (print_destructor): Remove obsolete code.
  41. 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
  42. * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
  43. (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
  44. DECL_TEMPLATE_RESULT emulations.
  45. (dump_ada_template)): Add guard for TYPE_METHODS.
  46. 2015-02-27 Marek Polacek <polacek@redhat.com>
  47. PR c/65040
  48. * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
  49. 2015-02-27 Kai Tietz <ktietz@redhat.com>
  50. PR c/35330
  51. * c-pragma.c (handle_pragma_weak): Do not try to create
  52. weak/alias of declarations not being function, or variable
  53. declarations.
  54. 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
  55. PR libgomp/64625
  56. * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
  57. Remove macros.
  58. (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
  59. 2015-02-16 Marek Polacek <polacek@redhat.com>
  60. PR c/65066
  61. * c-format.c (check_format_types): Handle null param.
  62. 2015-02-13 Marek Polacek <polacek@redhat.com>
  63. PR c/65040
  64. * c-format.c (check_format_types): Don't warn about different
  65. signedness if the original value is in the range of WANTED_TYPE.
  66. 2015-02-12 Jason Merrill <jason@redhat.com>
  67. PR c++/64956
  68. * c-opts.c (c_common_post_options): Change flag_abi_version from 0
  69. to the current highest version.
  70. * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
  71. 2015-02-04 Jakub Jelinek <jakub@redhat.com>
  72. PR c/64824
  73. PR c/64868
  74. * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
  75. instead of RDIV_EXPR. Use build_binary_op instead of
  76. build2_loc.
  77. 2015-01-30 Joseph Myers <joseph@codesourcery.com>
  78. * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
  79. to pass input_location as first argument.
  80. 2015-01-23 Tom de Vries <tom@codesourcery.com>
  81. PR libgomp/64672
  82. * c.opt (fopenacc): Mark as LTO option.
  83. 2015-01-23 Tom de Vries <tom@codesourcery.com>
  84. PR libgomp/64707
  85. * c.opt (fopenmp): Mark as LTO option.
  86. 2015-01-21 Jakub Jelinek <jakub@redhat.com>
  87. PR c/63307
  88. * cilk.c (fill_decls_vec): Only put decls into vector v.
  89. (compare_decls): Fix up formatting.
  90. 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
  91. PR c/63307
  92. * cilk.c: Include vec.h.
  93. (struct cilk_decls): New structure.
  94. (wrapper_parm_cb): Split this function to...
  95. (fill_decls_vec): ...this...
  96. (create_parm_list): ...and this.
  97. (compare_decls): New function.
  98. (for_local_cb): Remove.
  99. (wrapper_local_cb): Ditto.
  100. (build_wrapper_type): For now first traverse and fill vector of
  101. declarations then sort it and then deal with sorted vector.
  102. (cilk_outline): Ditto.
  103. (declare_one_free_variable): Ditto.
  104. 2015-01-21 Jason Merrill <jason@redhat.com>
  105. PR c++/64629
  106. * c-format.c (check_format_arg): Call decl_constant_value.
  107. 2015-01-19 Martin Liska <mliska@suse.cz>
  108. * c-common.c (handle_noicf_attribute): New function.
  109. 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
  110. Bernd Schmidt <bernds@codesourcery.com>
  111. James Norris <jnorris@codesourcery.com>
  112. Cesar Philippidis <cesar@codesourcery.com>
  113. Ilmir Usmanov <i.usmanov@samsung.com>
  114. Jakub Jelinek <jakub@redhat.com>
  115. * c.opt (fopenacc): New option.
  116. * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
  117. * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
  118. New macros.
  119. * c-common.h (c_finish_oacc_wait): New prototype.
  120. * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
  121. (c_finish_oacc_wait): New function.
  122. * c-pragma.c (oacc_pragmas): New variable.
  123. (c_pp_lookup_pragma, init_pragma): Handle it.
  124. * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
  125. PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
  126. PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
  127. PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
  128. (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
  129. PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
  130. PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
  131. PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
  132. PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
  133. PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
  134. PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
  135. PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
  136. PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
  137. PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
  138. PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
  139. PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
  140. PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
  141. PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
  142. PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
  143. PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
  144. PRAGMA_OACC_CLAUSE_WORKER.
  145. 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
  146. * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
  147. for the new option fstack-protector_explicit.
  148. * c-common.c (c_common_attribute_table): Add stack_protect attribute.
  149. (handle_stack_protect_attribute): New function.
  150. 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
  151. * c.opt: New option -Warray-bounds=.
  152. 2015-01-09 Michael Collison <michael.collison@linaro.org>
  153. * array-notation-common.c: Include hash-set.h, machmode.h,
  154. vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
  155. fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
  156. * c-ada-spec.c: Ditto.
  157. * c-cilkplus.c: Ditto.
  158. * c-common.c: Include input.h due to flattening of tree.h.
  159. Define macro GCC_C_COMMON_C.
  160. * c-common.h: Flatten tree.h header files into c-common.h.
  161. Remove include of tree-core.h.
  162. * c-cppbuiltin.c: Include hash-set.h, machmode.h,
  163. vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
  164. fold-const.h, wide-int.h, and inchash.h due to
  165. flattening of tree.h.
  166. * c-dump.c: Ditto.
  167. * c-format.c: Flatten tree.h header files into c-common.h.
  168. * c-cppbuiltin.c: Include hash-set.h, machmode.h,
  169. vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
  170. fold-const.h, wide-int.h, and inchash.h due to
  171. flattening of tree.h.
  172. * c-dump.c: Include hash-set.h, machmode.h,
  173. vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
  174. fold-const.h, wide-int.h, and inchash.h due to
  175. flattening of tree.h.
  176. * c-format.c: Include hash-set.h, machmode.h,
  177. vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
  178. fold-const.h, wide-int.h, inchash.h and real.h due to
  179. flattening of tree.h.
  180. * c-gimplify.c: Include hash-set.h, machmode.h,
  181. vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
  182. fold-const.h, wide-int.h, and inchash.h due to
  183. flattening of tree.h.
  184. * cilk.c: Ditto.
  185. * c-lex.c: Ditto.
  186. * c-omp.c: Ditto.
  187. * c-opts.c: Ditto.
  188. * c-pch.c: Ditto.
  189. * c-ppoutput.c: Ditto.
  190. * c-pragma.c: Ditto.
  191. * c-pretty-print.c: Ditto.
  192. * c-semantics.c: Ditto.
  193. * c-ubsan.c: Ditto.
  194. * stub-objc.c: Ditto.
  195. 2015-01-08 Jason Merrill <jason@redhat.com>
  196. * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
  197. do_ubsan_in_current_function.
  198. (ubsan_maybe_instrument_reference_or_call): Likewise.
  199. * c-ubsan.h: Declare it.
  200. 2015-01-08 Mike Stump <mikestump@comcast.net>
  201. * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
  202. 2015-01-07 Marek Polacek <polacek@redhat.com>
  203. PR c/64440
  204. * c-common.c (c_fully_fold_internal): Warn for division and modulo
  205. if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
  206. 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
  207. PR c++/31397
  208. * c.opt (Wsuggest-override): New option.
  209. 2015-01-05 Jakub Jelinek <jakub@redhat.com>
  210. Update copyright years.
  211. 2015-01-05 Marek Polacek <polacek@redhat.com>
  212. PR c/64423
  213. * c-common.c (warn_array_subscript_with_type_char): Add location_t
  214. parameter. Use it.
  215. * c-common.h (warn_array_subscript_with_type_char): Update
  216. declaration.
  217. 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
  218. * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
  219. Control macro with flag_sized_deallocation.
  220. 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
  221. * c.opt (Wdiscarded-array-qualifiers): New option.
  222. 2014-12-19 Jakub Jelinek <jakub@redhat.com>
  223. PR preprocessor/63831
  224. * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
  225. and __has_cpp_attribute here.
  226. * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
  227. c_common_has_attribute.
  228. * c-common.h (c_common_has_attribute): New prototype.
  229. * c-lex.c (init_c_lex): Set cb->has_attribute to
  230. c_common_has_attribute instead of cb_has_attribute.
  231. (get_token_no_padding): New function.
  232. (cb_has_attribute): Renamed to ...
  233. (c_common_has_attribute): ... this. No longer static. Use
  234. get_token_no_padding, require ()s, don't build TREE_LIST
  235. unnecessarily, fix up formatting, adjust diagnostics, call
  236. init_attributes.
  237. 2014-12-15 Jason Merrill <jason@redhat.com>
  238. * c.opt (-fsized-deallocation, -Wc++14-compat): New.
  239. (-Wsized-deallocation): New.
  240. * c-opts.c (c_common_post_options): -fsized-deallocation defaults
  241. to on in C++14 and up.
  242. 2014-12-11 Jason Merrill <jason@redhat.com>
  243. * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
  244. * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
  245. we aren't complaining about VLAs.
  246. 2014-12-06 Marek Polacek <polacek@redhat.com>
  247. PR tree-optimization/64183
  248. * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
  249. shift-expression if it is integer_type_node. Use types_compatible_p.
  250. 2014-11-29 Jakub Jelinek <jakub@redhat.com>
  251. * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
  252. last argument from create_tmp_var_raw and create_tmp_var calls.
  253. * cilk.c (gimplify_cilk_spawn): Likewise.
  254. * c-omp.c (c_finish_omp_atomic): Likewise.
  255. 2014-11-28 Marek Polacek <polacek@redhat.com>
  256. * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
  257. instead of unsigned_type_node.
  258. 2014-11-28 Marek Polacek <polacek@redhat.com>
  259. PR c/63862
  260. * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
  261. to op1_utype.
  262. * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
  263. expression to unsigned_type_node.
  264. 2014-11-20 Mark Wielaard <mjw@redhat.com>
  265. PR debug/38757
  266. * c-opts.c (set_std_c89): Set lang_hooks.name.
  267. (set_std_c99): Likewise.
  268. (set_std_c11): Likewise.
  269. (set_std_cxx98): Likewise.
  270. (set_std_cxx11): Likewise.
  271. (set_std_cxx14): Likewise.
  272. (set_std_cxx1z): Likewise.
  273. 2014-11-21 Jakub Jelinek <jakub@redhat.com>
  274. PR target/63764
  275. * c-common.h (convert_vector_to_pointer_for_subscript): Change
  276. return type to bool.
  277. * c-common.c: Include gimple-expr.h.
  278. (convert_vector_to_pointer_for_subscript): Change return type to
  279. bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
  280. and copy it into a TARGET_EXPR and use that instead of *vecp
  281. directly.
  282. 2014-11-19 David Malcolm <dmalcolm@redhat.com>
  283. Merger of git branch "gimple-classes-v2-option-3".
  284. * ChangeLog.gimple-classes: New.
  285. * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
  286. from being just a vec<gimple> to a vec<gbind *>.
  287. 2014-11-18 Jakub Jelinek <jakub@redhat.com>
  288. PR sanitizer/63813
  289. * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
  290. argument to ptype, set type to TREE_TYPE (ptype). Don't call
  291. get_pointer_alignment for non-pointers. Use ptype, or if it is
  292. reference type, corresponding pointer type, as type of kind
  293. argument.
  294. (ubsan_maybe_instrument_reference,
  295. ubsan_maybe_instrument_member_call): Adjust callers.
  296. 2014-11-15 Marek Polacek <polacek@redhat.com>
  297. PR middle-end/63884
  298. * array-notation-common.c (is_sec_implicit_index_fn): Return false
  299. for NULL fndecl.
  300. (extract_array_notation_exprs): Return for NULL node.
  301. 2014-11-12 Joseph Myers <joseph@codesourcery.com>
  302. * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
  303. undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
  304. 2014-11-12 Jakub Jelinek <jakub@redhat.com>
  305. PR c/59708
  306. * c-common.c (check_builtin_function_arguments): Handle
  307. BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
  308. 2014-11-10 Andi Kleen <ak@linux.intel.com>
  309. PR c/60804
  310. * c-common.h (check_no_cilk): Declare.
  311. * cilk.c (get_error_location): New function.
  312. (check_no_cilk): Dito.
  313. 2014-11-10 Andi Kleen <ak@linux.intel.com>
  314. * cilk.c (recognize_spawn): Use expression location
  315. for error message.
  316. 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
  317. * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
  318. 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
  319. * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
  320. (__cpp_rtti, __cpp_exceptions): New macros for C++98;
  321. (__cpp_range_based_for, __cpp_initializer_lists,
  322. __cpp_delegating_constructors, __cpp_nsdmi,
  323. __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
  324. for C++11; (__cpp_attribute_deprecated): Remove in favor of
  325. __has_cpp_attribute.
  326. * c-lex.c (cb_has_attribute): New callback CPP function;
  327. (init_c_lex): Set has_attribute callback.
  328. 2014-11-04 Richard Biener <rguenther@suse.de>
  329. * c-common.c (shorten_compare): Do not shorten mixed
  330. DFP and non-DFP compares.
  331. 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
  332. * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
  333. * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
  334. Commentary and rearrangement of tests.
  335. * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
  336. Commentary and rearrangement of tests.
  337. * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
  338. * g++.dg/cpp1y/feat-cxx98.C: Commentary.
  339. 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
  340. * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
  341. enum from machine_mode.
  342. 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
  343. * c-common.c: Adjust include files.
  344. * c-gimplify.c: Ditto.
  345. * cilk.c: Ditto.
  346. * c-pragma.c: Ditto.
  347. * c-ubsan.c: Ditto.
  348. 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
  349. * c-gimplify.c: Adjust include files.
  350. 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
  351. PR c++/53061
  352. * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
  353. c_common_initialize_diagnostics.
  354. * c-common.h: Likewise.
  355. 2014-10-24 Marek Polacek <polacek@redhat.com>
  356. PR c/56980
  357. * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
  358. print "struct"/"union"/"enum" for typedefed names.
  359. 2014-10-23 Marek Polacek <polacek@redhat.com>
  360. * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
  361. in unsigned type.
  362. 2014-10-22 Jakub Jelinek <jakub@redhat.com>
  363. Yury Gribov <y.gribov@samsung.com>
  364. * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
  365. ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
  366. instead of flag_sanitize_recover as bool flag.
  367. 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
  368. * cilk.c: Revert previous change.
  369. 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
  370. PR c/63307
  371. * cilk.c: Include vec.h.
  372. (struct cilk_decls): New structure.
  373. (wrapper_parm_cb): Split this function to...
  374. (fill_decls_vec): ...this...
  375. (create_parm_list): ...and this.
  376. (compare_decls): New function.
  377. (for_local_cb): Remove.
  378. (wrapper_local_cb): Ditto.
  379. (build_wrapper_type): For now first traverse and fill vector of
  380. declarations then sort it and then deal with sorted vector.
  381. (cilk_outline): Ditto.
  382. (declare_one_free_variable): Ditto.
  383. 2014-10-17 Marek Polacek <polacek@redhat.com>
  384. * c-opts.c (c_common_post_options): Set warn_implicit_int.
  385. * c.opt (Wimplicit-int): Initialize to -1.
  386. 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
  387. * c-pragma.c: Adjust include files.
  388. * c-semantics.c: Likewise.
  389. 2014-10-16 DJ Delorie <dj@redhat.com>
  390. * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
  391. multiples of bytes.
  392. 2014-10-14 Jason Merrill <jason@redhat.com>
  393. PR c++/63455
  394. * c-common.h (CPP_PREPARSED_EXPR): New.
  395. (N_CP_TTYPES): Adjust.
  396. 2014-10-15 Marek Polacek <polacek@redhat.com>
  397. * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
  398. 2014-10-14 DJ Delorie <dj@redhat.com>
  399. * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
  400. types, not just __int128.
  401. * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
  402. types, not just __int128.
  403. (cpp_atomic_builtins): Round pointer sizes up.
  404. (type_suffix): Use type precision, not specific types.
  405. * c-common.c (c_common_reswords): Remove __int128 special case.
  406. (c_common_type_for_size): Check for all __intN types, not just
  407. __int128.
  408. (c_common_type_for_mode): Likewise.
  409. (c_common_signed_or_unsigned_type): Likewise.
  410. (c_build_bitfield_integer_type): Likewise.
  411. (c_common_nodes_and_builtins): Likewise.
  412. (keyword_begins_type_specifier): Likewise.
  413. * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
  414. __intN variants.
  415. 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
  416. * c-common.c: Use hash_table instead of hashtab.
  417. 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
  418. * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
  419. C++11 section.
  420. 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
  421. PR c++/54427
  422. PR c++/57198
  423. PR c++/58845
  424. * c-common.c (warn_logical_operator): Punt for vectors.
  425. 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
  426. Implement SD-6: SG10 Feature Test Recommendations
  427. * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
  428. macros and the __has_header macro.
  429. 2014-09-30 Jason Merrill <jason@redhat.com>
  430. * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
  431. RID_IS_TRIVIALLY_CONSTRUCTIBLE.
  432. * c-common.c (c_common_reswords): Add __is_trivially_copyable.
  433. * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
  434. * c-common.c (c_common_reswords): Add __is_trivially_copyable.
  435. * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
  436. * c-common.c (c_common_reswords): Remove __is_convertible_to.
  437. 2014-09-24 Marek Polacek <polacek@redhat.com>
  438. PR c/61405
  439. PR c/53874
  440. * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
  441. 2014-09-23 Andi Kleen <ak@linux.intel.com>
  442. * c-common.c (handle_no_reorder_attribute): New function.
  443. (c_common_attribute_table): Add no_reorder attribute.
  444. 2014-09-22 Joseph Myers <joseph@codesourcery.com>
  445. * c-cppbuiltin.c (c_cpp_builtins): Define
  446. __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
  447. modes.
  448. 2014-09-18 Joseph Myers <joseph@codesourcery.com>
  449. * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
  450. for supported floating-point modes.
  451. 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
  452. * c.opt (Wpsabi): Use LangEnabledBy.
  453. * c-opts.c (c_common_handle_option): Do not handle here.
  454. 2014-09-12 Joseph Myers <joseph@codesourcery.com>
  455. * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
  456. macros for floating-point modes.
  457. 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
  458. PR target/58757
  459. * c-cppbuiltin.c (builtin_define_float_constants): Correct
  460. __*_DENORM_MIN__ without denormals.
  461. 2014-09-10 Jakub Jelinek <jakub@redhat.com>
  462. * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
  463. ubsan_instrument_vla, ubsan_instrument_return): Adjust
  464. ubsan_create_data callers.
  465. (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
  466. index is constant or BIT_AND_EXPR with constant mask and is
  467. small enough for the bound.
  468. * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
  469. ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
  470. 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
  471. * c.opt: Add CppReason to various flags.
  472. (Wdate-time): Re-sort.
  473. * c-common.c: Include c-common.h earlier.
  474. (struct reason_option_codes_t): Delete.
  475. (c_option_controlling_cpp_error): Prefix global type and struct
  476. with cpp_.
  477. 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
  478. * c.opt (Wnormalized): New.
  479. (Wnormalized=): Use Enum and Reject Negative.
  480. * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
  481. 2014-09-08 Joseph Myers <joseph@codesourcery.com>
  482. * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
  483. digits of floating-point modes if -fbuilding-libgcc.
  484. 2014-09-05 Joseph Myers <joseph@codesourcery.com>
  485. * c-cppbuiltin.c (c_cpp_builtins): Also define
  486. __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
  487. __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
  488. __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
  489. __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
  490. __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
  491. __LIBGCC_STACK_GROWS_DOWNWARD__,
  492. __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
  493. __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
  494. __LIBGCC_DWARF_FRAME_REGISTERS__,
  495. __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
  496. __LIBGCC_STACK_POINTER_REGNUM__ and
  497. __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
  498. (builtin_define_with_value): Handle backslash-escaping in string
  499. macro values.
  500. 2014-09-05 Richard Biener <rguenther@suse.de>
  501. PR middle-end/63148
  502. * c-format.c (check_format_arg): Properly handle
  503. effectively signed POINTER_PLUS_EXPR offset.
  504. 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
  505. * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
  506. Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
  507. (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
  508. and Init.
  509. * c-opts.c (c_common_handle_option): Do not handle here.
  510. (sanitize_cpp_opts): Likewise.
  511. * c-common.c (struct reason_option_codes_t): Handle
  512. CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
  513. 2014-09-03 Marek Polacek <polacek@redhat.com>
  514. * c.opt (Wlogical-not-parentheses): Enable by -Wall.
  515. 2014-09-02 Jakub Jelinek <jakub@redhat.com>
  516. Balaji V. Iyer <balaji.v.iyer@intel.com>
  517. Igor Zamyatin <igor.zamyatin@intel.com>
  518. * c-cilkplus.c (cilk_for_number_of_iterations): New function.
  519. * c-common.c (c_common_reswords): Added _Cilk_for.
  520. * c-common.h (enum rid): Added RID_CILK_FOR.
  521. (cilk_for_number_of_iterations): Add declaration.
  522. * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
  523. CILK_FOR.
  524. * c-pragma.c (init_pragma): Register "grainsize" pragma.
  525. * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
  526. 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
  527. * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
  528. Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
  529. Wundef): Use CPP, Var and Init.
  530. * c-opts.c (c_common_handle_option): Do not handle the above flags here.
  531. 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
  532. * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
  533. * c-opts.c (c_common_handle_option): Do not handle here.
  534. 2014-08-25 Jason Merrill <jason@redhat.com>
  535. * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
  536. -std=c++14 and -std=gnu++14, rather than the reverse.
  537. * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
  538. OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
  539. * c-common.h (cxx_dialect): Remove cxx1y.
  540. 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
  541. * c-common.h (enum cxx_dialect): Add cxx14.
  542. * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
  543. * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
  544. cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
  545. 2014-08-22 Jason Merrill <jason@redhat.com>
  546. * c.opt (std=gnu++17): Fix alias.
  547. 2014-08-22 Marek Polacek <polacek@redhat.com>
  548. PR c++/62199
  549. * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
  550. check for vector types. Drop LHS argument.
  551. * c-common.h (warn_logical_not_parentheses): Adjust.
  552. 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
  553. * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
  554. (Wmultichar): Likewise.
  555. (Wdate-time): Use C-family languages instead of Common. Use CPP
  556. and Var.
  557. * c-opts.c (c_common_handle_option): Do not handle the above
  558. options here.
  559. (sanitize_cpp_opts): Likewise.
  560. 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
  561. PR fortran/44054
  562. * c-opts.c: Include tree-diagnostics.h.
  563. (c_diagnostic_finalizer): New.
  564. (c_common_initialize_diagnostics): Use it.
  565. 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
  566. PR preprocessor/51303
  567. * c-common.c (struct reason_option_codes_t option_codes):
  568. Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
  569. 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
  570. PR c/60975
  571. PR c/53063
  572. * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
  573. * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
  574. (c_common_post_options): Call init_global_opts_from_cpp.
  575. (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
  576. 2014-08-19 Marek Polacek <polacek@redhat.com>
  577. PR c++/62153
  578. * c-common.c (maybe_warn_bool_compare): New function.
  579. * c-common.h (maybe_warn_bool_compare): Declare.
  580. * c.opt (Wbool-compare): New option.
  581. 2014-08-19 Marek Polacek <polacek@redhat.com>
  582. * c.opt (Wc99-c11-compat): New option.
  583. 2014-08-19 Marek Polacek <polacek@redhat.com>
  584. * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
  585. to warn_c90_c99_compat.
  586. * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
  587. to -1.
  588. 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
  589. Steven Bosscher <steven@gcc.gnu.org>
  590. PR c/52952
  591. * c-format.c: Add extra_arg_loc and format_string_loc to struct
  592. format_check_results.
  593. (check_function_format): Use true and add comment for boolean
  594. argument.
  595. (finish_dollar_format_checking): Use explicit location when warning.
  596. (check_format_info): Likewise.
  597. (check_format_arg): Set extra_arg_loc and format_string_loc.
  598. (check_format_info_main): Use explicit location when warning.
  599. (check_format_types): Pass explicit location.
  600. (format_type_warning): Likewise.
  601. 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
  602. PR fortran/44054
  603. * c-format.c: Handle Fortran flags.
  604. 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
  605. PR other/61962
  606. * array-notation-common.c (find_rank): Added handling for other
  607. types of references.
  608. 2014-08-10 Marek Polacek <polacek@redhat.com>
  609. PR c/51849
  610. * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
  611. * c.opt (Wc90-c99-compat): Add option.
  612. 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
  613. * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
  614. 2014-08-03 Marek Polacek <polacek@redhat.com>
  615. * c-common.c (check_case_value): Add location_t parameter. Use it.
  616. (c_add_case_label): Pass loc to check_case_value.
  617. 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
  618. * cilk.c: Use hash_map instead of pointer_map.
  619. 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
  620. * c-gimplify.c: Use hash_set instead of pointer_set.
  621. 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
  622. PR middle-end/61455
  623. * array-notation-common.c (extract_array_notation_exprs): Handling
  624. of DECL_EXPR added.
  625. 2014-08-01 Jakub Jelinek <jakub@redhat.com>
  626. * c-common.h (min_align_of_type): Removed prototype.
  627. * c-common.c (min_align_of_type): Removed.
  628. * c-ubsan.h (ubsan_maybe_instrument_reference,
  629. ubsan_maybe_instrument_member_call): New prototypes.
  630. * c-ubsan.c: Include stor-layout.h and builtins.h.
  631. (ubsan_maybe_instrument_reference_or_call,
  632. ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
  633. functions.
  634. 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
  635. PR c++/60517
  636. * c.opt (-Wreturn-local-addr): Move to common.opt.
  637. 2014-07-30 Jason Merrill <jason@redhat.com>
  638. PR c++/61659
  639. PR c++/61687
  640. Revert:
  641. * c.opt (-fuse-all-virtuals): New.
  642. 2014-07-30 Tom Tromey <tromey@redhat.com>
  643. PR c/59855
  644. * c.opt (Wdesignated-init): New option.
  645. * c-common.c (c_common_attribute_table): Add "designated_init".
  646. (handle_designated_init): New function.
  647. 2014-07-24 Marek Polacek <polacek@redhat.com>
  648. PR c/57653
  649. * c-opts.c (c_finish_options): If -imacros is in effect, return.
  650. 2014-07-16 Dodji Seketeli <dodji@redhat.com>
  651. PR preprocessor/60723 - missing system-ness marks for macro tokens
  652. * c-ppoutput.c (struct print::prev_was_system_token): New data
  653. member.
  654. (init_pp_output): Initialize it.
  655. (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
  656. (do_line_change): Return a flag saying if a line marker was
  657. emitted or not.
  658. (scan_translation_unit): Detect if the system-ness of the token we
  659. are about to emit is different from the one of the previously
  660. emitted token. If so, emit a line marker. Avoid emitting useless
  661. adjacent line markers. Avoid emitting line markers for tokens
  662. originating from the expansion of built-in macros.
  663. (scan_translation_unit_directives_only): Adjust.
  664. 2014-07-15 Marek Polacek <polacek@redhat.com>
  665. * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
  666. TYPE_MAX_VALUE is NULL.
  667. 2014-07-14 Jakub Jelinek <jakub@redhat.com>
  668. PR middle-end/61294
  669. * c.opt (Wmemset-transposed-args): New warning.
  670. 2014-07-10 Jason Merrill <jason@redhat.com>
  671. PR c++/61659
  672. PR c++/61687
  673. * c.opt (-fuse-all-virtuals): New.
  674. 2014-07-09 Richard Biener <rguenther@suse.de>
  675. PR c-family/61741
  676. * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
  677. using unsigned arithmetic if overflow does not wrap instead of
  678. if overflow is undefined.
  679. 2014-07-06 Marek Polacek <polacek@redhat.com>
  680. PR c/6940
  681. * c.opt (Wsizeof-array-argument): New option.
  682. 2014-07-03 Jakub Jelinek <jakub@redhat.com>
  683. * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
  684. comments->count <= 1, as comments->entries might be NULL.
  685. 2014-07-01 Marek Polacek <polacek@redhat.com>
  686. * c.opt (Wint-conversion): New option.
  687. 2014-07-01 Marek Polacek <polacek@redhat.com>
  688. PR c/58286
  689. * c.opt (Wincompatible-pointer-types): New option.
  690. 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
  691. PR c++/51400
  692. * c-common.c (handle_noreturn_attribute, handle_const_attribute):
  693. Do not discard TYPE_QUALS of type.
  694. 2014-06-26 Jason Merrill <jason@redhat.com>
  695. * c-common.h (enum cxx_dialect): Add cxx1z.
  696. * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
  697. * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
  698. 2014-06-26 Teresa Johnson <tejohnson@google.com>
  699. * c-common.h (get_dump_info): Declare.
  700. * c-gimplify.c (c_genericize): Use saved dump files.
  701. * c-opts.c (c_common_parse_file): Begin and end dumps
  702. once around parsing invocation.
  703. (get_dump_info): New function.
  704. 2014-06-23 Marek Polacek <polacek@redhat.com>
  705. Andrew MacLeod <amacleod@redhat.com>
  706. PR c/61553
  707. * c-common.c (get_atomic_generic_size): Don't segfault if the
  708. type doesn't have a size.
  709. 2014-06-20 Marek Polacek <polacek@redhat.com>
  710. * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
  711. (ubsan_walk_array_refs_r): New function.
  712. (c_genericize): Instrument array bounds.
  713. * c-ubsan.c: Include "internal-fn.h".
  714. (ubsan_instrument_division): Mark instrumented arrays as having
  715. side effects. Adjust ubsan_type_descriptor call.
  716. (ubsan_instrument_shift): Likewise.
  717. (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
  718. (ubsan_instrument_bounds): New function.
  719. (ubsan_array_ref_instrumented_p): New function.
  720. (ubsan_maybe_instrument_array_ref): New function.
  721. * c-ubsan.h (ubsan_instrument_bounds): Declare.
  722. (ubsan_array_ref_instrumented_p): Declare.
  723. (ubsan_maybe_instrument_array_ref): Declare.
  724. 2014-06-20 Hale Wang <hale.wang@arm.com>
  725. PR lto/61123
  726. * c.opt (fshort-enums): Add to LTO.
  727. * c.opt (fshort-wchar): Likewise.
  728. 2014-06-16 Marek Polacek <polacek@redhat.com>
  729. PR c/60439
  730. * c.opt (Wswitch-bool): Add Var.
  731. 2014-06-12 Jakub Jelinek <jakub@redhat.com>
  732. PR middle-end/61486
  733. * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
  734. #pragma omp target teams or
  735. #pragma omp {,target }teams distribute simd.
  736. 2014-06-12 Jason Merrill <jason@redhat.com>
  737. * c.opt (Wabi=, fabi-compat-version): New.
  738. * c-opts.c (c_common_handle_option): Handle -Wabi=.
  739. (c_common_post_options): Handle flag_abi_compat_version default.
  740. Disallow -fabi-compat-version=1.
  741. * c-common.h (abi_version_crosses): New.
  742. 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
  743. * c-common.c (handle_section_attribute): Update handling for
  744. section names that are no longer trees.
  745. 2014-06-10 Jakub Jelinek <jakub@redhat.com>
  746. PR fortran/60928
  747. * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
  748. (omp_pragmas): ... back here.
  749. 2014-06-05 Marek Polacek <polacek@redhat.com>
  750. PR c/49706
  751. * c-common.c (warn_logical_not_parentheses): New function.
  752. * c-common.h (warn_logical_not_parentheses): Declare.
  753. * c.opt (Wlogical-not-parentheses): New option.
  754. 2014-06-04 Marek Polacek <polacek@redhat.com>
  755. PR c/30020
  756. * c-common.c (check_case_bounds): Add location parameter.
  757. Use it.
  758. (c_add_case_label): Pass loc to check_case_bounds.
  759. 2014-06-03 Marek Polacek <polacek@redhat.com>
  760. PR c/60439
  761. * c.opt (Wswitch-bool): New option.
  762. 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
  763. * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
  764. Remove prototypes.
  765. (record_types_used_by_current_var_decl): Move prototype to where
  766. it belongs.
  767. * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
  768. (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
  769. (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
  770. 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
  771. * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
  772. * c-common.c (c_common_nodes_and_builtins): Don't initialize
  773. void_zero_node.
  774. * c-pretty-print.c (pp_c_void_constant): New function.
  775. (c_pretty_printer::constant, c_pretty_printer::primary_expression)
  776. (c_pretty_printer::expression): Handle VOID_CST.
  777. * cilk.c (extract_free_variables): Likewise.
  778. * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
  779. (ubsan_instrument_vla): Use void_node instead of void_zero_node.
  780. 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
  781. * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
  782. * c-pragma.c (push_alignment): Adjust.
  783. (handle_pragma_push_options): Likewise.
  784. 2014-05-09 Marek Polacek <polacek@redhat.com>
  785. PR c/50459
  786. * c-common.c (check_user_alignment): Return -1 if alignment is error
  787. node.
  788. (handle_aligned_attribute): Don't call default_conversion on
  789. FUNCTION_DECLs.
  790. (handle_vector_size_attribute): Likewise.
  791. (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
  792. (handle_sentinel_attribute): Call default_conversion and allow even
  793. integral types as an argument.
  794. 2014-05-08 Marek Polacek <polacek@redhat.com>
  795. PR c/61053
  796. * c-common.c (min_align_of_type): New function factored out from...
  797. (c_sizeof_or_alignof_type): ...here.
  798. * c-common.h (min_align_of_type): Declare.
  799. 2014-05-08 Marek Polacek <polacek@redhat.com>
  800. PR c/61077
  801. * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
  802. parameter type of main.
  803. 2014-05-07 DJ Delorie <dj@redhat.com>
  804. * c-cppbuiltin.c (print_bits_of_hex): New.
  805. (builtin_define_type_minmax): Print values using hex so as not to
  806. require a pre-computed list of string values.
  807. 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
  808. Mike Stump <mikestump@comcast.net>
  809. Richard Sandiford <rdsandiford@googlemail.com>
  810. * c-ada-spec.c: Include wide-int.h.
  811. (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
  812. (dump_generic_ada_node): Use wide-int interfaces.
  813. * c-common.c: Include wide-int-print.h.
  814. (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
  815. (pointer_int_sum): Use wide-int interfaces.
  816. (c_common_nodes_and_builtins): Use make_int_cst.
  817. (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
  818. (handle_alloc_size_attribute): Use wide-int interfaces.
  819. (get_nonnull_operand): Likewise.
  820. * c-format.c (get_constant): Use tree_fits_uhwi_p.
  821. * c-lex.c: Include wide-int.h.
  822. (narrowest_unsigned_type): Take a widest_int rather than two
  823. HOST_WIDE_INTs.
  824. (narrowest_signed_type): Likewise.
  825. (interpret_integer): Update accordingly. Use wide-int interfaces.
  826. (lex_charconst): Use wide-int interfaces.
  827. * c-pretty-print.c: Include wide-int.h.
  828. (pp_c_integer_constant): Use wide-int interfaces.
  829. * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
  830. INT_CST_LT_UNSIGNED.
  831. 2014-05-06 Richard Biener <rguenther@suse.de>
  832. * c-opts.c (c_common_post_options): For -freestanding,
  833. -fno-hosted and -fno-builtin disable pattern recognition
  834. if not enabled explicitely.
  835. 2014-05-02 Marek Polacek <polacek@redhat.com>
  836. * c.opt (Wsizeof-pointer-memaccess): Describe option.
  837. 2014-05-01 Marek Polacek <polacek@redhat.com>
  838. PR c/43245
  839. * c.opt (Wdiscarded-qualifiers): Add.
  840. 2014-04-30 Marek Polacek <polacek@redhat.com>
  841. * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
  842. INT_MIN / -1 sanitization only for integer types.
  843. 2014-04-25 Marek Polacek <polacek@redhat.com>
  844. PR c/18079
  845. * c-common.c (handle_noinline_attribute): Warn if the attribute
  846. conflicts with always_inline attribute.
  847. (handle_always_inline_attribute): Warn if the attribute conflicts
  848. with noinline attribute.
  849. 2014-04-25 Marek Polacek <polacek@redhat.com>
  850. PR c/60156
  851. * c-common.c (check_main_parameter_types): Warn about variadic main.
  852. 2014-04-24 Mike Stump <mikestump@comcast.net>
  853. * c.opt (Wshadow-ivar): Default to on.
  854. 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
  855. * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
  856. 2014-04-23 Marek Polacek <polacek@redhat.com>
  857. * c-common.c (handle_tm_wrap_attribute): Tweak error message.
  858. 2014-04-22 Jakub Jelinek <jakub@redhat.com>
  859. PR sanitizer/60275
  860. * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
  861. if flag_sanitize_undefined_trap_on_error.
  862. (ubsan_instrument_division, ubsan_instrument_shift,
  863. ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
  864. if !flag_sanitize_recover.
  865. 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
  866. PR libstdc++/43622
  867. * c-common.c (registered_builtin_types): Make non-static.
  868. * c-common.h (registered_builtin_types): Declare.
  869. 2014-04-14 Richard Biener <rguenther@suse.de>
  870. Marc Glisse <marc.glisse@inria.fr>
  871. PR c/60819
  872. * c-common.c (convert_vector_to_pointer_for_subscript): Properly
  873. apply may-alias the scalar pointer type when applicable.
  874. 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
  875. PR middle-end/60467
  876. * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
  877. as possible argument for Cilk_spawn.
  878. 2014-04-11 Tobias Burnus <burnus@net-b.de>
  879. PR c/60194
  880. * c.opt (Wformat-signedness): Add
  881. * c-format.c(check_format_types): Use it.
  882. 2014-04-11 Jason Merrill <jason@redhat.com>
  883. PR c++/57926
  884. * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
  885. default_conversion for an array argument.
  886. 2014-04-08 Marek Polacek <polacek@redhat.com>
  887. PR sanitizer/60745
  888. * c-ubsan.c: Include asan.h.
  889. (ubsan_instrument_return): Call initialize_sanitizer_builtins.
  890. 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
  891. * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
  892. 2014-04-02 Marek Polacek <polacek@redhat.com>
  893. * c-common.h (c_expand_expr): Remove declaration.
  894. 2014-03-28 Jakub Jelinek <jakub@redhat.com>
  895. PR c++/60689
  896. * c-common.c (add_atomic_size_parameter): When creating new
  897. params vector, push the size argument first.
  898. 2014-03-26 Jakub Jelinek <jakub@redhat.com>
  899. * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
  900. ubsan_instrument_vla, ubsan_instrument_return): Adjust
  901. ubsan_create_data callers.
  902. 2014-03-22 Jakub Jelinek <jakub@redhat.com>
  903. PR debug/60603
  904. * c-opts.c (c_finish_options): Restore cb_file_change call to
  905. <built-in>.
  906. 2014-03-13 Jakub Jelinek <jakub@redhat.com>
  907. PR middle-end/36282
  908. * c-pragma.c (apply_pragma_weak): Only look at
  909. TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
  910. DECL_ASSEMBLER_NAME_SET_P (decl).
  911. (maybe_apply_pending_pragma_weaks): Exit early if
  912. vec_safe_is_empty (pending_weaks) rather than only when
  913. !pending_weaks.
  914. (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
  915. set assembler name back to NULL afterwards.
  916. 2014-03-11 Jason Merrill <jason@redhat.com>
  917. * c.opt: Add -std=gnu++14.
  918. 2014-03-11 Ian Bolton <ian.bolton@arm.com>
  919. * c-opts.c (c_common_post_options): Don't override
  920. -ffp-contract=fast if unsafe-math-optimizations is on.
  921. 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
  922. * c.opt: Enable LTO FE for fshort-double.
  923. 2014-03-07 Jason Merrill <jason@redhat.com>
  924. * c.opt: Add -std=c++14.
  925. 2014-03-06 Marek Polacek <polacek@redhat.com>
  926. PR c/60197
  927. * cilk.c (contains_cilk_spawn_stmt): New function.
  928. (contains_cilk_spawn_stmt_walker): Likewise.
  929. (recognize_spawn): Give error on invalid use of _Cilk_spawn.
  930. * c-common.h (contains_cilk_spawn_stmt): Add declaration.
  931. 2014-03-03 Jakub Jelinek <jakub@redhat.com>
  932. * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
  933. (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
  934. even when flag_preprocess_only.
  935. 2014-02-26 Jason Merrill <jason@redhat.com>
  936. PR c++/59231
  937. PR c++/11586
  938. * c-common.c (shorten_compare): Don't check
  939. c_inhibit_evaluation_warnings.
  940. 2014-02-19 Jakub Jelinek <jakub@redhat.com>
  941. PR c/37743
  942. * c-common.c (c_common_nodes_and_builtins): When initializing
  943. c_uint{16,32,64}_type_node, also set corresponding
  944. uint{16,32,64}_type_node to the same value.
  945. PR c++/60267
  946. * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
  947. for PRAGMA_IVDEP if flag_preprocess_only.
  948. 2014-02-12 Jakub Jelinek <jakub@redhat.com>
  949. PR c/60101
  950. * c-common.c (merge_tlist): If copy is true, call new_tlist,
  951. if false, add ADD itself, rather than vice versa.
  952. (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
  953. copy. For SAVE_EXPR, only call merge_tlist once.
  954. 2014-02-08 Jakub Jelinek <jakub@redhat.com>
  955. PR middle-end/60092
  956. * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
  957. and tree_to_uhwi.
  958. (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
  959. functions.
  960. (c_common_attribute_table): Add alloc_align and assume_aligned
  961. attributes.
  962. 2014-02-06 Marek Polacek <polacek@redhat.com>
  963. PR c/60087
  964. * c-common.c (warn_for_sign_compare): Call warning_at with location
  965. instead of warning.
  966. 2014-02-05 Marek Polacek <polacek@redhat.com>
  967. PR c/53123
  968. * c-omp.c (c_finish_omp_atomic): Remove unreachable return
  969. statement.
  970. 2014-02-04 Marek Polacek <polacek@redhat.com>
  971. PR c/60036
  972. * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
  973. SAVE_EXPR.
  974. 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
  975. PR c++/53017
  976. PR c++/59211
  977. * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
  978. handle_vector_size_attribute, handle_nonnull_attribute): Call
  979. default_conversion on the attribute argument.
  980. (handle_nonnull_attribute): Increment the argument number.
  981. 2014-01-31 Marek Polacek <polacek@redhat.com>
  982. PR c/59963
  983. * c-common.c (add_atomic_size_parameter): Pass vNULL to
  984. build_function_call_vec.
  985. (resolve_overloaded_builtin): Likewise.
  986. * c-common.h (build_function_call_vec): Adjust declaration.
  987. 2014-01-30 Marek Polacek <polacek@redhat.com>
  988. PR c/59940
  989. * c-common.h (unsafe_conversion_p): Adjust declaration.
  990. (warnings_for_convert_and_check): Likewise.
  991. (convert_and_check): Likewise.
  992. * c-common.c (unsafe_conversion_p): Add location parameter. Call
  993. expansion_point_location_if_in_system_header on it.
  994. (warnings_for_convert_and_check): Add location parameter. Call
  995. expansion_point_location_if_in_system_header on it. Use it.
  996. (convert_and_check): Add location parameter. Use it.
  997. (conversion_warning): Likewise.
  998. (c_add_case_label): Adjust convert_and_check calls.
  999. (scalar_to_vector): Adjust unsafe_conversion_p calls.
  1000. 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1001. * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
  1002. flag_cilkplus.
  1003. * c-pragma.c (init_pragma): Likewise.
  1004. * c.opt: Likewise.
  1005. 2014-01-23 Marek Polacek <polacek@redhat.com>
  1006. PR c/59846
  1007. * c-common.c (shorten_compare): Add location_t parameter.
  1008. * c-common.h (shorten_binary_op): Adjust declaration.
  1009. 2014-01-23 Marek Polacek <polacek@redhat.com>
  1010. PR c/58346
  1011. * c-common.c (pointer_to_zero_sized_aggr_p): New function.
  1012. * c-common.h: Declare it.
  1013. 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
  1014. * c-ada-spec.h (dump_ada_specs): Revert prototype change.
  1015. * c-ada-spec.c (dump_ads): Likewise.
  1016. (cpp_check): Likewise.
  1017. (dump_ada_specs): Likewise.
  1018. 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
  1019. PR c++/49718
  1020. * c-common.c (handle_no_instrument_function_attribute): Allow
  1021. no_instrument_function attribute in class member
  1022. definition/declaration.
  1023. 2014-01-15 Jakub Jelinek <jakub@redhat.com>
  1024. PR c/58943
  1025. * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
  1026. build_modify_expr with non-NOP_EXPR opcode. Handle return from it
  1027. being COMPOUND_EXPR.
  1028. (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
  1029. operand a SAVE_EXPR and second MODIFY_EXPR.
  1030. 2014-01-09 Jakub Jelinek <jakub@redhat.com>
  1031. PR target/58115
  1032. * c-pch.c (c_common_write_pch): Call
  1033. prepare_target_option_nodes_for_pch.
  1034. 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
  1035. Update copyright years
  1036. 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
  1037. * array-notation-common.c, c-cilkplus.c: Use the standard form for
  1038. the copyright notice.
  1039. 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
  1040. * c-ada-spec.c (print_constructor): New function.
  1041. (print_destructor): Retrieve the origin of the destructor.
  1042. (print_ada_declaration): Revamp handling of constructors/destructors.
  1043. 2013-12-23 Stuart Hastings <stuart@apple.com>
  1044. Bill Maddox <maddox@google.com>
  1045. Jason Merrill <jason@redhat.com>
  1046. * c.opt: Add -fdeclone-ctor-dtor.
  1047. * c-opts.c (c_common_post_options): Default to on iff -Os.
  1048. 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1049. * c-common.c (c_common_attribute_table): Added "cilk simd function"
  1050. attribute.
  1051. * c-pragma.h (enum pragma_cilk_clause): Remove.
  1052. (enum pragma_omp_clause): Added the following fields:
  1053. PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
  1054. PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
  1055. PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
  1056. PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
  1057. PRAGMA_CILK_CLAUSE_UNIFORM.
  1058. 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1059. * cilk.c (cilk_outline): Made this function non-static.
  1060. (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
  1061. (create_cilk_wrapper): Added a new parameter: a function pointer.
  1062. (c_install_body_w_frame_cleanup): Remove
  1063. (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
  1064. * c-common.h (cilk_outline): New prototype.
  1065. (gimplify_cilk_spawn): Removed two parameters.
  1066. (cilk_install_body_with_frame_cleanup): New prototype.
  1067. * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
  1068. CILK_SPAWN_STMT case.
  1069. 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
  1070. * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
  1071. * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
  1072. (int_array_type_node): Remove.
  1073. * c-common.c (c_common_nodes_and_builtins): Don't build it.
  1074. 2013-12-05 Marek Polacek <polacek@redhat.com>
  1075. PR c/52023
  1076. * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
  1077. [ADJUST_FIELD_ALIGN].
  1078. 2013-12-04 Joseph Myers <joseph@codesourcery.com>
  1079. PR c/52023
  1080. * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
  1081. and check field alignment if set.
  1082. * c-common.h (c_sizeof_or_alignof_type): Update prototype.
  1083. (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
  1084. 2013-12-04 Jakub Jelinek <jakub@redhat.com>
  1085. Marek Polacek <polacek@redhat.com>
  1086. * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
  1087. sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
  1088. 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
  1089. PR c/59309
  1090. * cilk.c (gimplify_cilk_spawn): Properly handle function without
  1091. arguments.
  1092. 2013-11-29 Jakub Jelinek <jakub@redhat.com>
  1093. PR c/59280
  1094. * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
  1095. goto invalid. If it is error_mark_node, don't issue further
  1096. diagnostics.
  1097. 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
  1098. * c.opt (Wopenmp-simd): New.
  1099. 2013-11-22 Jakub Jelinek <jakub@redhat.com>
  1100. * c-ubsan.h (ubsan_instrument_return): New prototype.
  1101. * c-ubsan.c (ubsan_instrument_return): New function.
  1102. 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
  1103. * c-common.c: Add required include files from gimple.h.
  1104. * c-gimplify.c: Likewise
  1105. * cilk.c: Likewise
  1106. 2013-11-22 David Malcolm <dmalcolm@redhat.com>
  1107. * c-common.c (unsafe_conversion_p): Remove use of
  1108. EXPR_LOC_OR_HERE macro.
  1109. (conversion_warning): Likewise.
  1110. (warnings_for_convert_and_check): Likewise.
  1111. (warn_for_collisions_1): Likewise.
  1112. (shorten_compare): Likewise, and remove use of in_system_header
  1113. macro, using the location from the former.
  1114. * c-lex.c (dump_one_header): Remove use of input_filename macro.
  1115. (cb_def_pragma): Remove use of in_system_header macro.
  1116. (lex_string): Likewise.
  1117. * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
  1118. 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
  1119. Mike Stump <mikestump@comcast.net>
  1120. Richard Sandiford <rdsandiford@googlemail.com>
  1121. * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
  1122. instead of TREE_INT_CST_LOW, in cases where there is a protecting
  1123. tree_fits_shwi_p or tree_fits_uhwi_p.
  1124. (dump_generic_ada_node): Likewise.
  1125. * c-format.c (check_format_arg): Likewise.
  1126. * c-pretty-print.c (pp_c_integer_constant): Likewise.
  1127. 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
  1128. * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
  1129. 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
  1130. PR c/53001
  1131. * c-common.c (unsafe_conversion_p): Make this function
  1132. return an enumeration with more detail.
  1133. (conversion_warning): Use the new return type of
  1134. unsafe_conversion_p to separately warn either about conversions
  1135. that lower floating point number precision or about the other
  1136. kinds of conversions.
  1137. * c-common.h (enum conversion_safety): New enumeration.
  1138. (unsafe_conversion_p): switching return type to
  1139. conversion_safety enumeration.
  1140. * c.opt: Adding new warning -Wfloat-conversion and
  1141. enabling it with -Wconversion.
  1142. 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
  1143. * c-opts.c: Include plugin.h.
  1144. (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
  1145. 2013-11-19 Marek Polacek <polacek@redhat.com>
  1146. * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
  1147. call.
  1148. (ubsan_instrument_shift): Likewise.
  1149. (ubsan_instrument_vla): Likewise.
  1150. 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
  1151. * c-common.c (convert_vector_to_pointer_for_subscript): Remove
  1152. cast to unsigned type.
  1153. 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
  1154. * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
  1155. tree_low_cst.
  1156. (complete_array_type): Update comment to refer to tree_to_[su]hwi
  1157. rather than tree_low_cst.
  1158. 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
  1159. * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
  1160. tree_to_uhwi throughout.
  1161. 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
  1162. * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
  1163. tree_low_cst (..., 0) with tree_to_shwi throughout.
  1164. 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
  1165. * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
  1166. host_integerp (..., 1) with tree_fits_uhwi_p throughout.
  1167. 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
  1168. * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
  1169. host_integerp (..., 0) with tree_fits_shwi_p throughout.
  1170. 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
  1171. * c-cilkplus.c: New file.
  1172. * c-common.c (readonly_error): Add location argument.
  1173. * c-common.h (readonly_error): Same.
  1174. (c_finish_cilk_clauses): Protoize.
  1175. (c_check_cilk_loop): Same.
  1176. c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
  1177. Do not fail on error_mark_node.
  1178. Abstract increment canonicalization to here...
  1179. (c_omp_for_incr_canonicalize_ptr): New.
  1180. c-pragma.c (init_pragma): Register "simd" pragma.
  1181. c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
  1182. (enum pragma_cilk_clause): New.
  1183. 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
  1184. * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
  1185. wchar_type and host_integerp checks.
  1186. 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
  1187. * c-common.c: Likewise.
  1188. * c-gimplify.c: Likewise.
  1189. * cilk.c: Likewise.
  1190. 2013-11-14 Diego Novillo <dnovillo@google.com>
  1191. * c-common.c: Include fold-const.h.
  1192. Include stor-layout.h.
  1193. Include calls.h.
  1194. Include stringpool.h.
  1195. Include attribs.h.
  1196. Include varasm.h.
  1197. Include trans-mem.h.
  1198. * c-cppbuiltin.c: Include stor-layout.h.
  1199. Include stringpool.h.
  1200. * c-format.c: Include stringpool.h.
  1201. * c-lex.c: Include stringpool.h.
  1202. Include stor-layout.h.
  1203. * c-pragma.c: Include stringpool.h.
  1204. Include attribs.h.
  1205. Include varasm.h.
  1206. Include gcc-symtab.h.
  1207. * c-pretty-print.c: Include stor-layout.h.
  1208. Include attribs.h.
  1209. * cilk.c: Include stringpool.h.
  1210. Include calls.h.
  1211. 2013-11-13 Joseph Myers <joseph@codesourcery.com>
  1212. * c-common.h (enum rid): Add RID_AUTO_TYPE.
  1213. * c-common.c (c_common_reswords): Add __auto_type.
  1214. (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
  1215. 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
  1216. * c-common.c: Include gimplify.h.
  1217. * c-gimplify.c: Likewise.
  1218. * cilk.c: Likewise.
  1219. * c-omp.c: Include gimple-expr.h instead of gimple.h.
  1220. * c-ubsan.c: Don't include gimple.h.
  1221. 2013-11-12 Joseph Myers <joseph@codesourcery.com>
  1222. * c-common.c (c_common_reswords): Add _Thread_local.
  1223. 2013-11-09 Joseph Myers <joseph@codesourcery.com>
  1224. * c-common.c (atomic_size_supported_p): New function.
  1225. (resolve_overloaded_atomic_exchange)
  1226. (resolve_overloaded_atomic_compare_exchange)
  1227. (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
  1228. Use it instead of comparing size with a local list of sizes.
  1229. 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
  1230. Joseph Myers <joseph@codesourcery.com>
  1231. * c-common.h (enum rid): Add RID_ATOMIC.
  1232. * c-common.c (c_common_reswords): Add _Atomic.
  1233. (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
  1234. (keyword_is_type_qualifier): Accept RID_ATOMIC.
  1235. * c-format.c (check_format_types): Check for extra _Atomic
  1236. qualifiers in format argument.
  1237. * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
  1238. (pp_c_type_qualifier_list): Mention _Atomic in comment.
  1239. 2013-11-06 Tobias Burnus <burnus@net-b.de>
  1240. * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
  1241. 2013-11-06 Joseph Myers <joseph@codesourcery.com>
  1242. * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
  1243. standards modes.
  1244. * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
  1245. to mean lack of IEEE 754 support.
  1246. 2013-11-05 Tobias Burnus <burnus@net-b.de>
  1247. * c.opt (-Wdate-time): New option
  1248. * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
  1249. 2013-11-05 Joseph Myers <joseph@codesourcery.com>
  1250. * c-cppbuiltin.c (cpp_iec_559_value): Test
  1251. flag_excess_precision_cmdline not flag_excess_precision.
  1252. 2013-11-05 Tobias Burnus <burnus@net-b.de>
  1253. * c.opt (fopenmp-simd): New option.
  1254. * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
  1255. (omp_pragmas): ... this new struct.
  1256. (c_pp_lookup_pragma): Also walk omp_pragmas.
  1257. (init_pragma): Init pragmas for -fopenmp-simd.
  1258. 2013-11-04 Marek Polacek <polacek@redhat.com>
  1259. PR c++/58979
  1260. * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
  1261. 2013-11-04 Joseph Myers <joseph@codesourcery.com>
  1262. * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
  1263. New functions.
  1264. (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
  1265. 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
  1266. * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
  1267. (dump_ada_specs): Adjust prototype of second callback.
  1268. * c-ada-spec.c (cpp_check): New global variable.
  1269. (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
  1270. (print_generic_ada_decl): Likewise.
  1271. (has_static_fields): Change return type to bool and add guard.
  1272. (has_nontrivial_methods): New predicate.
  1273. (is_tagged_type): Change return type to bool.
  1274. (separate_class_package): Call has_nontrivial_methods.
  1275. (pp_ada_tree_identifier): Minor tweaks.
  1276. (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
  1277. (dump_ada_array_domains): Likewise.
  1278. (dump_ada_array_type): Likewise.
  1279. (dump_template_types): Remove cpp_check parameter and do not pass it to
  1280. dump_generic_ada_node.
  1281. (dump_ada_template): Likewise.
  1282. (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
  1283. recursively.
  1284. (print_ada_methods): Change return type to integer. Remove cpp_check
  1285. parameter and do not pass it down.
  1286. (dump_nested_types): Remove cpp_check parameter and do not pass it to
  1287. dump_generic_ada_node.
  1288. (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
  1289. accessing methods.
  1290. (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
  1291. down. Use has_nontrivial_methods to recognize C++ classes. Use return
  1292. value of print_ada_methods.
  1293. (dump_ads): Rename cpp_check parameter to check and adjust prototype.
  1294. Set cpp_check to it before invoking dump_ada_nodes.
  1295. (dump_ada_specs): Likewise.
  1296. 2013-11-03 Marek Polacek <polacek@redhat.com>
  1297. * c-ubsan.c: Don't include hash-table.h.
  1298. (ubsan_instrument_vla): New function.
  1299. * c-ubsan.h: Declare it.
  1300. 2013-10-31 David Malcolm <dmalcolm@redhat.com>
  1301. Automated part of renaming of symtab_node_base to symtab_node.
  1302. Patch autogenerated by rename_symtab.py from
  1303. https://github.com/davidmalcolm/gcc-refactoring-scripts
  1304. revision 58bb219cc090b2f4516a9297d868c245495ee622
  1305. * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
  1306. symtab_node_base to symtab_node.
  1307. 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
  1308. Implement C++14 digit separators.
  1309. * c-lex.c (interpret_float): Remove digit separators from scratch string
  1310. before building real literal.
  1311. 2013-10-30 Jakub Jelinek <jakub@redhat.com>
  1312. * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
  1313. 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1314. * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
  1315. fields.
  1316. (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
  1317. enabled.
  1318. * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
  1319. (insert_cilk_frame): New prototype.
  1320. (cilk_init_builtins): Likewise.
  1321. (gimplify_cilk_spawn): Likewise.
  1322. (c_cilk_install_body_w_frame_cleanup): Likewise.
  1323. (cilk_detect_spawn_and_unwrap): Likewise.
  1324. (cilk_set_spawn_marker): Likewise.
  1325. (build_cilk_sync): Likewise.
  1326. (build_cilk_spawn): Likewise.
  1327. * cilk.c: New file.
  1328. 2013-10-29 David Malcolm <dmalcolm@redhat.com>
  1329. Patch autogenerated by refactor_symtab.py from
  1330. https://github.com/davidmalcolm/gcc-refactoring-scripts
  1331. revision 58bb219cc090b2f4516a9297d868c245495ee622
  1332. * c-gimplify.c (c_genericize): Update for conversion of symtab types
  1333. to a true class hierarchy.
  1334. * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
  1335. 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
  1336. * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
  1337. 2013-10-26 Jeff Law <law@redhat.com>
  1338. * c-common.c (c_define_builtins): Remove mudflap support.
  1339. * c.opt: Ignore and warn for mudflap options.
  1340. 2013-10-24 Tobias Burnus <burnus@net-b.de>
  1341. PR other/33426
  1342. * c-pragma.c (init_pragma) Add #pragma ivdep handling.
  1343. * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
  1344. 2013-10-23 Jason Merrill <jason@redhat.com>
  1345. * c-format.c (gcc_cxxdiag_char_table): Add %X.
  1346. 2013-10-11 Jakub Jelinek <jakub@redhat.com>
  1347. * c-common.h (omp_clause_mask::operator !=): New method.
  1348. * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
  1349. instead of if (mask & something) tests everywhere.
  1350. * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
  1351. 201307 instead of 201107.
  1352. * c-common.c (DEF_FUNCTION_TYPE_8): Define.
  1353. (c_common_attribute_table): Add "omp declare target" and
  1354. "omp declare simd" attributes.
  1355. (handle_omp_declare_target_attribute,
  1356. handle_omp_declare_simd_attribute): New functions.
  1357. * c-omp.c: Include c-pragma.h.
  1358. (c_finish_omp_taskgroup): New function.
  1359. (c_finish_omp_atomic): Add swapped argument, if true,
  1360. build the operation first with rhs, lhs arguments and use NOP_EXPR
  1361. build_modify_expr.
  1362. (c_finish_omp_for): Add code argument, pass it down to make_code.
  1363. (c_omp_split_clauses): New function.
  1364. (c_split_parallel_clauses): Removed.
  1365. (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
  1366. c_omp_declare_simd_clauses_to_decls): New functions.
  1367. * c-common.h (omp_clause_mask): New type.
  1368. (OMP_CLAUSE_MASK_1): Define.
  1369. (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
  1370. omp_clause_mask::operator |=, omp_clause_mask::operator ~,
  1371. omp_clause_mask::operator |, omp_clause_mask::operator &,
  1372. omp_clause_mask::operator <<, omp_clause_mask::operator >>,
  1373. omp_clause_mask::operator ==): New methods.
  1374. (enum c_omp_clause_split): New.
  1375. (c_finish_omp_taskgroup): New prototype.
  1376. (c_finish_omp_atomic): Add swapped argument.
  1377. (c_finish_omp_for): Add code argument.
  1378. (c_omp_split_clauses): New prototype.
  1379. (c_split_parallel_clauses): Removed.
  1380. (c_omp_declare_simd_clauses_to_numbers,
  1381. c_omp_declare_simd_clauses_to_decls): New prototypes.
  1382. * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
  1383. * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
  1384. PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
  1385. PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
  1386. PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
  1387. Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
  1388. (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
  1389. PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
  1390. PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
  1391. PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
  1392. PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
  1393. PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
  1394. PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
  1395. PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
  1396. PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
  1397. PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
  1398. PRAGMA_OMP_CLAUSE_UNIFORM.
  1399. 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
  1400. PR tree-optimization/20318
  1401. * c-common.c (handle_returns_nonnull_attribute): New function.
  1402. (c_common_attribute_table): Add returns_nonnull.
  1403. 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
  1404. PR c++/19476
  1405. * c.opt (fcheck-new): Move to common.opt.
  1406. 2013-09-25 Marek Polacek <polacek@redhat.com>
  1407. Jakub Jelinek <jakub@redhat.com>
  1408. PR sanitizer/58413
  1409. * c-ubsan.c (ubsan_instrument_shift): Don't instrument
  1410. an expression if we can prove it is correct.
  1411. (ubsan_instrument_division): Likewise. Remove unnecessary
  1412. check.
  1413. 2013-09-18 Marek Polacek <polacek@redhat.com>
  1414. PR sanitizer/58411
  1415. * c-common.c (handle_no_sanitize_undefined_attribute): New function.
  1416. Declare it.
  1417. (struct attribute_spec c_common_att): Add no_sanitize_undefined.
  1418. 2013-09-14 Iain Sandoe <iain@codesourcery.com>
  1419. PR target/48094
  1420. * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
  1421. fobjc-gc, freplace-objc-classes): Accept for LTO.
  1422. 2013-09-13 Jacek Caban <jacek@codeweavers.com>
  1423. * c-target.def: New hook
  1424. 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
  1425. PR c++/43452
  1426. * c.opt (Wdelete-incomplete): Add.
  1427. 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
  1428. * c-common.c (same_scalar_type_ignoring_signedness): Delete.
  1429. (vector_types_compatible_elements_p): New function.
  1430. * c-common.h: (same_scalar_type_ignoring_signedness): Delete
  1431. declaration.
  1432. (vector_types_compatible_elements_p): Declare.
  1433. 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1434. * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
  1435. a virtual member function.
  1436. (pp_simple_type_specifier): Remove.
  1437. (pp_c_type_specifier): Likewise.
  1438. * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
  1439. Rename from pp_c_type_specifier. Adjust.
  1440. (c_pretty_printer::c_pretty_printer): Do not assign to
  1441. simple_type_specifier.
  1442. 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1443. * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
  1444. member function.
  1445. (c_pretty_printer::storage_class_specifier): Likewise.
  1446. (c_pretty_printer::initializer): Likewise.
  1447. (pp_declaration): Remove.
  1448. (pp_declaration_specifiers): Likewise.
  1449. (pp_abstract_declarator): Likewise.
  1450. (pp_declarator): Likewise.
  1451. (pp_type_id): Likewise.
  1452. (pp_statement): Likewise.
  1453. (pp_constant): Likewise.
  1454. (pp_id_expression): Likewise.
  1455. (pp_primary_expression): Likewise.
  1456. (pp_unary_expression): Likewise.
  1457. (pp_multiplicative_expression): Likewise.
  1458. (pp_conditional_expression): Likewise.
  1459. (pp_assignment_expression): Likewise.
  1460. (pp_expression): Likewise.
  1461. (pp_c_type_id): Likewise.
  1462. (pp_c_storage_class_specifier): Likewise.
  1463. * c-pretty-print.c (pp_c_type_cast): Tidy.
  1464. (pp_c_pointer): Likewise.
  1465. (pp_c_type_specifier): Likewise.
  1466. (pp_c_parameter_type_list): Likewise.
  1467. (pp_c_function_definition): Likewise.
  1468. (pp_c_init_declarator): Likewise.
  1469. (pp_c_initializer_list): Likewise.
  1470. (pp_c_constructor_elts): Likewise.
  1471. (c_pretty_printer::direct_abstract_declarator): Likewise.
  1472. (c_pretty_printer::declaration_specifiers): Likewise.
  1473. (c_pretty_printer::primary_expression): Likewise.
  1474. (c_pretty_printer::postfix_expression): Likewise.
  1475. (c_pretty_printer::type_id): Rename from pp_c_type_id.
  1476. (c_pretty_printer::storage_class_specifier): Rename from
  1477. pp_c_storage_class_specifier.
  1478. (c_pretty_printer::initializer): Rename from pp_c_initializer.
  1479. (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
  1480. storage_class_specifier, initializer, offset_list, flags.
  1481. 2013-08-30 Marek Polacek <polacek@redhat.com>
  1482. * c-ubsan.c: New file.
  1483. * c-ubsan.h: New file.
  1484. 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1485. * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
  1486. member function.
  1487. (c_pretty_printer::declaration_specifiers): Likewise.
  1488. (c_pretty_printer::declarator): Likewise.
  1489. (c_pretty_printer::abstract_declarator): Likewise.
  1490. (c_pretty_printer::direct_abstract_declarator): Likewise.
  1491. (c_pretty_printer::direct_declarator): Likewise.
  1492. (c_pretty_printer::function_specifier): Likewise.
  1493. (pp_declaration): Adjust.
  1494. (pp_declaration_specifiers): Likewise.
  1495. (pp_abstract_declarator): Likewise.
  1496. (pp_direct_declarator): Likewise.
  1497. (pp_function_specifier): Likewise.
  1498. (pp_direct_abstract_declarator): Remove as unused.
  1499. (pp_c_declaration): Remove.
  1500. (pp_c_declaration_specifiers): Likewise.
  1501. (pp_c_declarator): Likewise.
  1502. (pp_c_direct_declarator): Likewise.
  1503. (pp_c_function_specifier): Likewise.
  1504. (pp_c_direct_abstract_declarator): Likewise.
  1505. * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
  1506. from pp_c_abstract_declarator. Adjust.
  1507. (c_pretty_printer::direct_abstract_declarator): Rename from
  1508. pp_c_direct_abstract_declarator. Adjust.
  1509. (c_pretty_printer::function_specifier): Rename from
  1510. pp_c_function_specifier. Adjust.
  1511. (c_pretty_printer::declaration_specifiers): Rename from
  1512. pp_c_declaration_specifiers. Adjust.
  1513. (c_pretty_printer::direct_declarator): Rename from
  1514. pp_c_direct_declarator. Adjust.
  1515. (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
  1516. (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
  1517. (c_pretty_printer::c_pretty_printer): Do not assign to
  1518. declaration, declaration_specifiers, declarator,
  1519. direct_declarator, direct_abstract_declarator, function_specifier.
  1520. 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
  1521. * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
  1522. virtual member function.
  1523. (c_pretty_printer::multiplicative_expression): Likewise.
  1524. (c_pretty_printer::conditional_expression): Likewise.
  1525. (c_pretty_printer::assignment_expression): Likewise.
  1526. (c_pretty_printer::expression): Likewise.
  1527. (pp_unary_expression): Adjust.
  1528. (pp_multiplicative_expression): Likewise.
  1529. (pp_assignment_expression): Likewise.
  1530. (pp_conditional_expression): Likewise.
  1531. (pp_expression): Likewise.
  1532. * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
  1533. from pp_c_unary_expression. Adjust.
  1534. (c_pretty_printer::multiplicative_expression): Rename from
  1535. pp_c_multiplicative_expression. Adjust.
  1536. (c_pretty_printer::conditional_expression): Rename from
  1537. pp_c_conditional_expression. Adjust.
  1538. (c_pretty_printer::assignment_expression): Rename from
  1539. pp_c_assignment_expression. Adjust.
  1540. (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
  1541. (c_pretty_printer::c_pretty_printer): Do not assign to
  1542. unary_expression, multiplicative_expression,
  1543. conditional_expression, expression.
  1544. 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1545. * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
  1546. virtual member function.
  1547. (pp_postfix_expression): Adjust.
  1548. (pp_c_postfix_expression): Remove.
  1549. * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
  1550. from pp_c_postfix_expression. Adjust.
  1551. (c_pretty_printer::c_pretty_printer): Do not assign to
  1552. postfix_expression.
  1553. 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1554. * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
  1555. virtua member function.
  1556. (pp_primary_expression): Adjust.
  1557. (pp_c_primary_expression): Remove.
  1558. * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
  1559. from pp_c_primary_expression. Adjust.
  1560. (pp_c_initializer_list): Use pp_primary_expression.
  1561. (c_pretty_printer::c_pretty_printer): Do not assign to
  1562. primary_expression.
  1563. 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1564. * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
  1565. * c-pretty-print.c (M_): Remove.
  1566. (c_pretty_printer::translate_string): Define.
  1567. (pp_c_type_specifier): Use it.
  1568. (pp_c_primary_expression): Likewise.
  1569. (pp_c_expression): Likewise.
  1570. 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1571. * c-pretty-print.h (c_pretty_printer::id_expression): Now a
  1572. virtual function.
  1573. (pp_c_id_expression): Remove.
  1574. (pp_id_expression): Adjust.
  1575. * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
  1576. pp_c_id_expression. Adjust.
  1577. (pp_c_postfix_expression): Use pp_id_expression.
  1578. (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
  1579. 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1580. * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
  1581. member function.
  1582. (pp_constant): Adjust.
  1583. (pp_c_constant): Remove.
  1584. * c-pretty-print.c (c_pretty_printer::constant): Rename from
  1585. pp_c_constant. Adjust.
  1586. (pp_c_constant)
  1587. (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
  1588. (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
  1589. 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1590. * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
  1591. (c_pretty_printer::c_pretty_printer): Declare.
  1592. * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
  1593. c_pretty_printer_init. Adjust.
  1594. (print_c_tree): Do not call c_pretty_printer_init.
  1595. * c-ada-spec.c (dump_ads): Remove call to pp_construct.
  1596. 2013-08-09 Arnaud Charlet <charlet@adacore.com>
  1597. * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
  1598. 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
  1599. PR c++/58080
  1600. * c-common.c (pointer_int_sum): Add bool parameter.
  1601. * c-common.h (pointer_int_sum): Adjust declaration.
  1602. 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1603. * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
  1604. c_pretty_printer variable.
  1605. 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1606. * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
  1607. (pp_base): Remove.
  1608. (pp_c_base): Likewise. Adjust users.
  1609. * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
  1610. (pp_c_whitespace): Do not call pp_base.
  1611. (pp_c_left_paren): Likewise.
  1612. (pp_c_right_paren): Likewise.
  1613. (pp_c_left_brace): Likewise.
  1614. (pp_c_right_brace): Likewise.
  1615. (pp_c_left_bracket): Likewise.
  1616. (pp_c_right_bracket): Likewise.
  1617. (pp_c_dot): Likewise.
  1618. (pp_c_ampersand): Likewise.
  1619. (pp_c_star): Likewise.
  1620. (pp_c_arrow): Likewise.
  1621. (pp_c_semicolon): Likewise.
  1622. (pp_c_complement): Likewise.
  1623. (pp_c_exclamation): Likewise.
  1624. (pp_c_direct_declarator): Likewise.
  1625. (pp_c_ws_string): Likewise.
  1626. (pp_c_identifier): Likewise.
  1627. (pp_c_statement): Likewise.
  1628. (print_c_tree): Likewise.
  1629. 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
  1630. PR c++/58072
  1631. * c-common.c (c_parse_error): Catch user-defined literal tokens and
  1632. provide useful error strings.
  1633. 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1634. * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
  1635. printer functions instead of pp_string or operators and punctuators.
  1636. (dump_generic_ada_node): Likewise.
  1637. * c-pretty-print.c (pp_c_type_specifier): Likewise.
  1638. (pp_c_relational_expression): Likewise.
  1639. (pp_c_logical_or_expression): Likewise.
  1640. 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1641. * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
  1642. functions instead of pp_character.
  1643. (pp_ada_tree_identifier): Likewise.
  1644. (dump_ada_double_name): Likewise.
  1645. (dump_ada_function_declaration): Likewise.
  1646. (dump_ada_array_domains): Likewise.
  1647. (dump_template_types): Likewise.
  1648. (dump_generic_ada_node): Likewise.
  1649. (print_ada_declaration): Likewise.
  1650. (print_ada_struct_decl): Likewise.
  1651. * c-pretty-print.c (pp_c_integer_constant): Likewise.
  1652. 2013-07-23 Tom Tromey <tromey@redhat.com>
  1653. * c-common.h (enum rid) <RID_GENERIC>: New constant.
  1654. * c-common.c (c_common_reswords): Add _Generic.
  1655. 2013-07-21 Ondřej Bílka <neleai@seznam.cz>
  1656. * c-common.c: Fix typos.
  1657. * c-common.h: Likewise.
  1658. 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
  1659. PR c++/55203
  1660. * c-common.c (c_common_attribute_table): Add warn_unused.
  1661. (handle_warn_unused_attribute): New.
  1662. 2013-07-10 Jakub Jelinek <jakub@redhat.com>
  1663. * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
  1664. for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
  1665. 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
  1666. PR c++/57869
  1667. * c.opt: Add Wconditionally-supported.
  1668. 2013-07-08 Graham Stott <graham.stott@btinternet.com>
  1669. * array-notation-common.c (length_mismatch_in_expr_p): Delete
  1670. unused variables l_length and l_node.
  1671. 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
  1672. PR c/57821
  1673. * c-common.c (complete_array_type): Delay folding first index
  1674. like other indices. When folding, check for index overflow.
  1675. 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
  1676. PR c++/57509
  1677. * c-common.h (c_build_vec_perm_expr): New complain argument.
  1678. * c-common.c (c_build_vec_perm_expr): Likewise.
  1679. Use save_expr also in C++.
  1680. 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
  1681. * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
  1682. * c-cppbuiltin.c (c_cpp_builtins): Likewise.
  1683. * c-opts.c (c_common_post_options): Likewise.
  1684. 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1685. * array-notation-common.c (length_mismatch_in_expr): Changed the
  1686. parameter type's from a dynamic array to a vec_tree. Also removed
  1687. the size parameters.
  1688. * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
  1689. the change above.
  1690. 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1691. * c-common.h (struct cilkplus_an_parts): New structure.
  1692. (struct cilkplus_an_loop_parts): Likewise.
  1693. (cilkplus_extract_an_triplets): New prototype.
  1694. (fix_sec_implicit_args): Likewise.
  1695. * array-notation-common.c (cilkplus_extract_an_triplets): New function.
  1696. (fix_sec_implicit_args): Likewise.
  1697. 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1698. * array-notation-common.c (find_inv_trees): Removed an unwanted
  1699. typecasting.
  1700. * c-common.h (struct inv_list::additional_tcodes): Changed type from
  1701. enum rid to enum tree_code.
  1702. 2013-06-11 Jan Hubicka <jh@suse.cz>
  1703. * c-common.c (handle_alias_ifunc_attribute): Do not set
  1704. DECL_EXTERNAL for weakref variables.
  1705. * c-pragma.c (handle_pragma_weak): Make sure aliases
  1706. are not declared as external.
  1707. 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1708. * array-notation-common.c (length_mismatch_in_expr_p): Moved this
  1709. function from c/c-array-notation.c.
  1710. (is_cilkplus_reduce_builtin): Likewise.
  1711. (find_rank): Likewise.
  1712. (extract_array_notation_exprs): Likewise.
  1713. (replace_array_notations): Likewise.
  1714. (find_inv_trees): Likewise.
  1715. (replace_inv_trees): Likewise.
  1716. (contains_array_notation_expr): Likewise.
  1717. (find_correct_array_notation_type): Likewise.
  1718. * c-common.h (struct inv_list): Moved this struct from the file
  1719. c/c-array-notation.c and added a new field called additional tcodes.
  1720. (length_mismatch_in_expr_p): New prototype.
  1721. (is_cilkplus_reduce_builtin): Likewise.
  1722. (find_rank): Likewise.
  1723. (extract_array_notation_exprs): Likewise.
  1724. (replace_array_notation): Likewise.
  1725. (find_inv_trees): Likewise.
  1726. (replace_inv_trees): Likewise.
  1727. (find_correct_array_notation_type): Likewise.
  1728. 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
  1729. * c-common.c (c_define_builtins): When cilkplus is enabled, the
  1730. function array_notation_init_builtins is called.
  1731. (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
  1732. * c-common.def (ARRAY_NOTATION_REF): New tree.
  1733. * c-common.h (build_array_notation_expr): New function declaration.
  1734. (build_array_notation_ref): Likewise.
  1735. (extract_sec_implicit_index_arg): New extern declaration.
  1736. (is_sec_implicit_index_fn): Likewise.
  1737. (ARRAY_NOTATION_CHECK): New define.
  1738. (ARRAY_NOTATION_ARRAY): Likewise.
  1739. (ARRAY_NOTATION_START): Likewise.
  1740. (ARRAY_NOTATION_LENGTH): Likewise.
  1741. (ARRAY_NOTATION_STRIDE): Likewise.
  1742. * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
  1743. ARRAY_NOTATION_REF.
  1744. (pp_c_expression): Likewise.
  1745. * c.opt (flag_enable_cilkplus): New flag.
  1746. * array-notation-common.c: New file.
  1747. 2013-05-14 Jakub Jelinek <jakub@redhat.com>
  1748. PR c++/57274
  1749. * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
  1750. 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
  1751. * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
  1752. vectors.
  1753. 2013-05-07 Han Shen <shenhan@google.com>
  1754. * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
  1755. 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
  1756. * c-common.c (check_user_alignment): Emit error for negative values.
  1757. 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
  1758. * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
  1759. 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
  1760. * c-cppbuiltin.c (c_cpp_builtins): Do not define
  1761. __GXX_EXPERIMENTAL_CXX1Y__.
  1762. 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
  1763. Manuel Lopez-Ibanez <manu@gcc.gnu.org>
  1764. * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
  1765. * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
  1766. to simply use OPT_Wpointer_arith.
  1767. (c_sizeof_or_alignof_type): Likewise.
  1768. 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
  1769. * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
  1770. 2013-04-12 Jakub Jelinek <jakub@redhat.com>
  1771. * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
  1772. gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
  1773. specifiers.
  1774. 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
  1775. * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
  1776. 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
  1777. * c-common.c (pointer_int_sum): Remove dead code.
  1778. 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
  1779. PR middle-end/56524
  1780. * c-common.c (handle_optimize_attribute): Don't call
  1781. save_optabs_if_changed.
  1782. 2013-03-05 Jakub Jelinek <jakub@redhat.com>
  1783. PR middle-end/56461
  1784. * c-pch.c (pch_init): Free target_validity at the end.
  1785. 2013-03-04 Jakub Jelinek <jakub@redhat.com>
  1786. * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
  1787. 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
  1788. Jakub Jelinek <jakub@redhat.com>
  1789. PR sanitizer/56454
  1790. * c-common.c (handle_no_sanitize_address_attribute): New function.
  1791. (c_common_attribute_table): Add no_sanitize_address attribute.
  1792. (handle_no_address_safety_analysis_attribute): Add
  1793. no_sanitize_address attribute, not no_address_safety_analysis
  1794. attribute.
  1795. 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
  1796. PR target/52555
  1797. * c-common.c (handle_optimize_attribute): Call
  1798. save_optabs_if_changed.
  1799. 2013-02-18 Jakub Jelinek <jakub@redhat.com>
  1800. Steven Bosscher <steven@gcc.gnu.org>
  1801. PR pch/54117
  1802. * c-opts.c (c_common_post_options): If debug info is enabled
  1803. and non-dwarf*, refuse to load PCH files and when writing PCH
  1804. file warn.
  1805. 2013-02-05 Jakub Jelinek <jakub@redhat.com>
  1806. PR middle-end/56167
  1807. * c-common.c (handle_error_attribute): Fix condition.
  1808. 2013-01-30 Jakub Jelinek <jakub@redhat.com>
  1809. PR c++/55742
  1810. * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
  1811. 2013-01-18 Jason Merrill <jason@redhat.com>
  1812. PR target/54908
  1813. * c.opt (-fextern-tls-init): New.
  1814. * c-opts.c (c_common_post_options): Handle it.
  1815. 2013-01-09 Jakub Jelinek <jakub@redhat.com>
  1816. PR c/48418
  1817. * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
  1818. RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
  1819. and is either negative or bigger or equal to type precision
  1820. of the first operand.
  1821. 2012-12-03 Marek Polacek <polacek@redhat.com>
  1822. PR c/55570
  1823. * c-common.c (check_user_alignment): Swap order of tests,
  1824. check TREE_CODE first.
  1825. 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
  1826. PR c++/52654
  1827. * c-common.h (overflow_type): New enum.
  1828. (build_userdef_literal): Add overflow_type argument.
  1829. (tree_userdef_literal): Add overflow_type.
  1830. (USERDEF_LITERAL_OVERFLOW): New access macro.
  1831. * c-common.c (build_userdef_literal): Add overflow_type
  1832. argument.
  1833. * c-lex.c (c_lex_with_flags): Add overflow_type to
  1834. build_userdef_literal calls.
  1835. (interpret_integer, interpret_float): Add overflow_type argument.
  1836. 2012-11-28 Richard Biener <rguenther@suse.de>
  1837. PR c/35634
  1838. * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
  1839. here and use a type with proper overflow behavior for types that would
  1840. need to be promoted for the arithmetic.
  1841. 2012-11-23 Jakub Jelinek <jakub@redhat.com>
  1842. PR sanitizer/55435
  1843. * c-common.c (handle_no_address_safety_analysis_attribute): New
  1844. function.
  1845. (c_common_attribute_table): Add no_address_safety_analysis.
  1846. 2012-11-16 Simon Baldwin <simonb@google.com>
  1847. * c.opt: Add f[no-]canonical-system-headers.
  1848. * c-opts.c (c_common_handle_option): Handle
  1849. OPT_fcanonical_system_headers.
  1850. 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
  1851. PR c++/54413
  1852. * c-opts.c (c_common_handle_option): Set new flags.
  1853. * c.opt: Describe new flags.
  1854. 2012-11-09 Jason Merrill <jason@redhat.com>
  1855. * c.opt (Wabi-tag): New.
  1856. 2012-11-09 Andi Kleen <ak@linux.intel.com>
  1857. PR 55139
  1858. * c-common.c (get_atomic_generic_size): Mask with
  1859. MEMMODEL_MASK
  1860. 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
  1861. PR c/53063
  1862. * c.opt (Wformat): Make it Alias Wformat=1.
  1863. (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
  1864. Wformat-security,Wformat-y2k,Wformat-zero-length): Use
  1865. LangEnabledBy.
  1866. (Wformat=): RejectNegative. Use LangEnabledBy.
  1867. (Wnonnull): Use LangEnabledBy.
  1868. * c-opts.c (c_common_handle_option): Do not handle Wformat here.
  1869. * c-format.c (set_Wformat): Delete.
  1870. (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
  1871. (maybe_read_dollar_number): Likewise.
  1872. (avoid_dollar_number): Likewise.
  1873. (finish_dollar_format_checking): Likewise.
  1874. (check_format_info): Likewise.
  1875. (check_format_info_main): Likewise.
  1876. (check_format_types): Likewise.
  1877. (format_type_warning): Likewise.
  1878. * c-common.c (int): Likewise.
  1879. (check_function_sentinel): Likewise.
  1880. * c-common.h (warn_format,set_Wformat): Do not declare here.
  1881. 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
  1882. PR c/53063
  1883. * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
  1884. Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
  1885. Use LangEnabledBy.
  1886. (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
  1887. common.opt.
  1888. (Wvariadic-macros): Init(1).
  1889. * c-opts.c (c_common_handle_option): Do not handle them
  1890. explicitly.
  1891. (c_common_post_options): Likewise.
  1892. (sanitize_cpp_opts): warn_unused_macros is now
  1893. cpp_warn_unused_macros.
  1894. (push_command_line_include): Likewise.
  1895. * c-common.c (warn_unknown_pragmas): Do not define.
  1896. * c-common.h (warn_unknown_pragmas): Do not declare.
  1897. 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
  1898. PR c/51294
  1899. * c-common.c (conversion_warning): Handle conditional expressions.
  1900. 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
  1901. PR c++/54930
  1902. * c.opt (Wreturn_local_addr): Define new option.
  1903. 2012-10-25 Jason Merrill <jason@redhat.com>
  1904. * c.opt (Wvirtual-move-assign): New.
  1905. * c.opt (Winherited-variadic-ctor): New.
  1906. 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
  1907. PR c++/54427
  1908. * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
  1909. 2012-10-23 Joseph Myers <joseph@codesourcery.com>
  1910. * c-common.h (pch_cpp_save_state): Declare.
  1911. * c-target.def (c_preinclude): New hook.
  1912. * c-opts.c (done_preinclude): New.
  1913. (push_command_line_include): Handle default preincluded header.
  1914. (cb_file_change): Call pch_cpp_save_state when calling
  1915. push_command_line_include.
  1916. * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
  1917. (pch_cpp_save_state): New.
  1918. (pch_init): Call pch_cpp_save_state conditionally, instead of
  1919. calling cpp_save_state.
  1920. 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
  1921. PR c/53063
  1922. PR c/40989
  1923. * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
  1924. Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
  1925. Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
  1926. Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
  1927. Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
  1928. * c-opts.c (c_common_handle_option): Remove explicit handling from
  1929. here.
  1930. (c_common_post_options): Likewise.
  1931. 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
  1932. * c-ada-spec.c (LOCATION_COL): Delete.
  1933. (compare_location): New function.
  1934. (compare_node): Use it.
  1935. (compare_comment): Likewise.
  1936. 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
  1937. PR c/53063
  1938. PR c/40989
  1939. * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
  1940. * c-opts.c (c_common_handle_option): Do not set them here. Add
  1941. comment.
  1942. (c_common_post_options): Likewise.
  1943. 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
  1944. * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
  1945. (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
  1946. Remove POINTER_TYPE handling, add large unsigned handling and use
  1947. ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
  1948. 2012-10-12 Jakub Jelinek <jakub@redhat.com>
  1949. PR c/54381
  1950. * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
  1951. * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
  1952. locs and array of 3 trees instead of just single loc and single
  1953. sizeof_arg tree. Handle __builtin___*_chk builtins too, and
  1954. also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
  1955. For *cmp* builtins that take two sources strings report warnings
  1956. about first and second source, not about destination and source.
  1957. 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
  1958. PR c++/53055
  1959. * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
  1960. 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
  1961. * c-ada-spec.c (dump_ada_template): Bail out for template declarations
  1962. declaring something coming from another file.
  1963. 2012-10-10 Arnaud Charlet <charlet@adacore.com>
  1964. PR ada/54845
  1965. * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
  1966. 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
  1967. PR c++/54194
  1968. * c-common.c (warn_about_parentheses): Add location_t parameter;
  1969. use EXPR_LOC_OR_LOC.
  1970. * c-common.h: Update declaration.
  1971. 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
  1972. PR c++/54427
  1973. * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
  1974. more operations. Make error messages optional.
  1975. * c-common.h (enum stv_conv): Moved from c-typeck.c.
  1976. (scalar_to_vector): Declare.
  1977. 2012-10-08 Jason Merrill <jason@redhat.com>
  1978. * c-common.c (c_common_reswords): Add thread_local.
  1979. 2012-10-08 Dodji Seketeli <dodji@redhat.com>
  1980. PR c++/53528 C++11 attribute support
  1981. * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
  1982. new functions.
  1983. * c-common.c (check_cxx_fundamental_alignment_constraints): New
  1984. static function.
  1985. (handle_aligned_attribute): In choose strictest alignment
  1986. among many. Use new check_cxx_fundamental_alignment_constraints.
  1987. (handle_transparent_union_attribute): In c++11 attribute syntax,
  1988. don't look through typedefs.
  1989. 2012-10-04 Arnaud Charlet <charlet@adacore.com>
  1990. * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
  1991. * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
  1992. out of dumpfile.h.
  1993. 2012-09-25 Dehao Chen <dehao@google.com>
  1994. PR middle-end/54645
  1995. * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
  1996. map when read in the pch.
  1997. 2012-09-18 Arnaud Charlet <charlet@adacore.com>
  1998. * c-ada-spec.c: Style fixes.
  1999. 2012-09-18 Thomas Quinot <quinot@adacore.com>
  2000. * c.opt (-fada-spec-parent): Define new command line switch.
  2001. * c-ada-spec.c (get_ada_package): When -fada-spec-parent
  2002. is specified, generate binding spec as a child of the specified unit.
  2003. 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
  2004. Manuel López-Ibáñez <manu@gcc.gnu.org>
  2005. PR c++/53210
  2006. * c.opt ([Winit-self]): Enabled by -Wall in C++.
  2007. 2012-08-23 Arnaud Charlet <charlet@adacore.com>
  2008. * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
  2009. for pointers, and add missing Convention C pragma.
  2010. (print_ada_struct_decl): Add missing aliased keyword.
  2011. (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
  2012. 2012-08-17 Jakub Jelinek <jakub@redhat.com>
  2013. * c-common.c (sizeof_pointer_memaccess_warning): New function.
  2014. * c.opt (-Wsizeof-pointer-memaccess): Add new option.
  2015. * c-opts.c (c_common_handle_option): Enable it for -Wall.
  2016. * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
  2017. * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
  2018. 2012-08-10 Richard Guenther <rguenther@suse.de>
  2019. * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
  2020. 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
  2021. * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
  2022. instead of separate pp_newline and pp_flush.
  2023. (print_c_tree): Likewise.
  2024. 2012-07-26 Richard Henderson <rth@redhat.com>
  2025. * c-common.c (handle_hot_attribute): Allow labels.
  2026. (handle_cold_attribute): Likewise.
  2027. 2012-07-20 Jakub Jelinek <jakub@redhat.com>
  2028. PR c++/28656
  2029. * c-common.c (check_function_nonnull): Handle multiple nonnull
  2030. attributes properly.
  2031. 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
  2032. * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
  2033. * c-ada-spec.c: Likewise.
  2034. * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
  2035. 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
  2036. * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
  2037. Remove code conditional on it.
  2038. 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
  2039. * c-gimplify.c: Do not include basic-block.h.
  2040. * c-common.c: Do not include linfuncs.h.
  2041. 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
  2042. * c-common.h: Include tree.h.
  2043. 2012-07-02 Jason Merrill <jason@redhat.com>
  2044. PR c++/53524
  2045. * c-common.c (get_priority): Call default_conversion.
  2046. 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
  2047. * c-pch.c (c_common_write_pch): Remove unused variables.
  2048. 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
  2049. * cppspec.c: Moved from gcc/ to here.
  2050. 2012-06-27 Kai Tietz <ktietz@redhat.com>
  2051. PR preprocessor/37215
  2052. * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
  2053. 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
  2054. * c-common.h (c_common_print_pch_checksum): Remove.
  2055. * c-pch.c: Do not include output.h.
  2056. (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
  2057. (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
  2058. (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
  2059. (struct c_pch_header): Remove.
  2060. (get_ident): Update gpch version.
  2061. (pch_init): Do not print executable_checksum to asm_out_file.
  2062. Do not fail if there is no asm_out_file to read back from. Set
  2063. asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
  2064. (c_common_write_pch): Verify that nothing was written to asm_out_file
  2065. since pch_init was called. Do not write a c_pch_header, and do not
  2066. copy from asm_out_file to the PCH.
  2067. (c_common_read_pch): Do not read a c_pch_header, and do not restore
  2068. the content of asm_out_file from the PCH.
  2069. (c_common_print_pch_checksum): Remove.
  2070. * c-opts.c (c_common_init): Print out executable_checksum directly.
  2071. 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
  2072. * c-target.def (objc_declare_unresolved_class_reference,
  2073. objc_declare_class_definition): Add new hooks.
  2074. 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
  2075. * c-lex.c: Do not include output.h.
  2076. (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
  2077. Remove uses of ASM_OUTPUT_IDENT.
  2078. 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
  2079. PR c++/51033
  2080. * c-common.h (c_build_vec_perm_expr): Move decl here.
  2081. * c-common.c (c_build_vec_perm_expr): Move definition
  2082. here.
  2083. 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
  2084. * c.opt (fconserve-space): Turn into a no-op.
  2085. 2012-06-04 Sterling Augustine <saugustine@google.com>
  2086. * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
  2087. * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
  2088. both the start and end of the function.
  2089. 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
  2090. * c-common.c: Do not include output.h.
  2091. * c-pragma.c: Likewise.
  2092. 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
  2093. * error.c (dump_decl): Check pp_c_flag_gnu_v3.
  2094. (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
  2095. (lang_decl_name): Handle namespace decls.
  2096. 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
  2097. * c-ada-spec.c: Do not include output.h.
  2098. * c-semantics.c: Likewise.
  2099. 2012-05-29 Joseph Myers <joseph@codesourcery.com>
  2100. * c-common.c: Fix typo.
  2101. 2012-05-29 Michael Matz <matz@suse.de>
  2102. * c-common.h (c_expand_decl): Remove prototype.
  2103. 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2104. * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
  2105. * c-opts.c (c_common_handle_option): Remove code handling
  2106. warn_missing_braces.
  2107. 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
  2108. PR c++/25137
  2109. * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
  2110. -Wmissing_braces.
  2111. 2012-05-22 Dodji Seketeli <dodji@redhat.com>
  2112. PR c++/53322
  2113. * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
  2114. 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2115. * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
  2116. * c-opts.c (c_common_handle_option): Do not handle explicitly
  2117. Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
  2118. 2012-05-16 Dodji Seketeli <dodji@redhat.com>
  2119. PR preprocessor/7263
  2120. * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
  2121. to cpp_classify_number. For diagnostics, use the precise location
  2122. instead of the global input_location.
  2123. 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
  2124. PR c++/11856
  2125. * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
  2126. 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
  2127. * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
  2128. 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2129. PR 53063
  2130. * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
  2131. Wreorder): Use LangEnabledBy.
  2132. * c-opts.c (c_common_handle_option): Do not enable them
  2133. explicitly. Call lang-specific generated functions.
  2134. (c_common_post_options): Do not set them here.
  2135. 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2136. * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
  2137. Wmissing-field-initializers,Wmissing-parameter-type,
  2138. Wold-style-declaration,Woverride-init): Use EnabledBy.
  2139. * c-opts.c (c_common_post_options): Do not set here explicitly.
  2140. 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2141. PR 53063
  2142. * c-opts.c (c_common_handle_option): Use handle_generated_option
  2143. to enable sub-options.
  2144. 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
  2145. PR c++/53158
  2146. * c-common.c (warnings_for_convert_and_check): Use warning_at.
  2147. 2012-05-10 Richard Guenther <rguenther@suse.de>
  2148. * c-common.c (c_sizeof_or_alignof_type): Remove assert and
  2149. adjust commentary about TYPE_IS_SIZETYPE types.
  2150. 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2151. PR c++/53261
  2152. * c-common.c (warn_logical_operator): Check that argument of
  2153. integer_zerop is not NULL.
  2154. 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2155. PR c/43772
  2156. * c-common.c (warn_logical_operator): Do not warn if either side
  2157. is already true or false.
  2158. 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2159. PR c/51712
  2160. * c-common.c (expr_original_type): New.
  2161. (shorten_compare): Do not warn for enumeration types.
  2162. 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2163. * c.opt (fpermissive): Add Var(flag_permissive).
  2164. 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
  2165. PR c++/51033
  2166. * c-common.c (convert_vector_to_pointer_for_subscript): New function.
  2167. * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
  2168. 2012-04-30 Dodji Seketeli <dodji@redhat.com>
  2169. Add -Wvarargs option
  2170. * c.opt (Wvarargs): Define new option.
  2171. 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2172. * c-common.c (check_function_arguments): Replace
  2173. Wmissing-format-attribute with Wsuggest-attribute=format.
  2174. 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2175. * c.opt (Wsuggest-attribute=format): New. Alias of
  2176. Wmissing-format-attribute.
  2177. * c-format.c (decode_format_type): Replace
  2178. Wmissing-format-attribute with Wsuggest-attribute=format.
  2179. (check_function_format): Likewise.
  2180. 2012-04-27 Ollie Wild <aaw@google.com>
  2181. * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
  2182. * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
  2183. * c.opt: Add Wliteral-suffix.
  2184. 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2185. PR c/44774
  2186. * c.opt (Wpedantic): New.
  2187. (pedantic): Alias Wpedantic.
  2188. * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
  2189. (c_common_post_options): Likewise.
  2190. (sanitize_cpp_opts): Likewise.
  2191. * c-lex.c (interpret_float): Likewise.
  2192. * c-format.c (check_format_types): Likewise.
  2193. * c-common.c (pointer_int_sum): Likewise.
  2194. (c_sizeof_or_alignof_type): Likewise.
  2195. (c_add_case_label): Likewise.
  2196. (c_do_switch_warnings): Likewise.
  2197. * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
  2198. 2012-04-15 Jason Merrill <jason@redhat.com>
  2199. PR c++/52818
  2200. * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
  2201. (C_STD_NAME): Distinguish between C++98 and C++11.
  2202. 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
  2203. PR target/52624
  2204. * c-common.h (uint16_type_node): Rename into...
  2205. (c_uint16_type_node): ...this.
  2206. * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
  2207. * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
  2208. 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2209. * c-common.c (warn_if_unused_value): Move definition to here.
  2210. * c-common.h (warn_if_unused_value): Move declaration to here.
  2211. 2012-03-23 William Bader <williambader@hotmail.com>
  2212. * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
  2213. 2012-03-20 Jason Merrill <jason@redhat.com>
  2214. * c-common.h (enum cxx_dialect): Add cxx1y.
  2215. * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
  2216. test.
  2217. * c-cppbuiltin.c (c_cpp_builtins): Likewise.
  2218. * c-opts.c (c_common_post_options): Likewise.
  2219. (set_std_cxx1y): New.
  2220. (c_common_handle_option): Call it.
  2221. * c.opt (-std=c++1y, -std=gnu++1y): New flags.
  2222. 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
  2223. PR c++/14710
  2224. * c.opt ([Wuseless-cast]): Add.
  2225. 2012-03-16 Richard Guenther <rguenther@suse.de>
  2226. * c-pretty-print.c (pp_c_initializer_list): Adjust.
  2227. 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2228. PR c++/44783
  2229. * c.opt (ftemplate-backtrace-limit) Add.
  2230. 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2231. * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
  2232. handling.
  2233. * c-pragma.c (handle_pragma_extern_prefix): Remove.
  2234. (init_pragma): Don't register extern_prefix.
  2235. 2012-03-12 Richard Guenther <rguenther@suse.de>
  2236. * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
  2237. (builtin_type_for_size): Likewise.
  2238. 2012-02-13 Jakub Jelinek <jakub@redhat.com>
  2239. PR c++/52215
  2240. * c-common.c (sync_resolve_params): Don't decide whether to convert
  2241. or not based on TYPE_SIZE comparison, convert whenever arg_type
  2242. is unsigned INTEGER_TYPE.
  2243. 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
  2244. PR c/52118
  2245. * c.opt ([Wunused-local-typedefs]): Fix description.
  2246. 2012-01-24 Mike Stump <mikestump@comcast.net>
  2247. * c-common.c (c_common_type_for_mode): Match signed/unsigned types
  2248. exactly.
  2249. 2012-01-18 Richard Guenther <rguenther@suse.de>
  2250. * c-opts.c (c_common_post_options): Reset LTO flags if
  2251. we are about to generate a PCH.
  2252. 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
  2253. PR c++/51777
  2254. * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
  2255. use pp_unsigned_wide_integer.
  2256. 2012-01-10 Richard Guenther <rguenther@suse.de>
  2257. PR middle-end/51806
  2258. * c-opts.c (c_common_handle_option): Move -Werror handling
  2259. to language independent code.
  2260. 2012-01-05 Richard Guenther <rguenther@suse.de>
  2261. PR middle-end/51764
  2262. * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
  2263. from common.opt.
  2264. 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
  2265. PR c++/51316
  2266. * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
  2267. of array types with an unknown bound.
  2268. 2011-12-20 Joseph Myers <joseph@codesourcery.com>
  2269. * c-common.c (flag_isoc99): Update comment to refer to C11.
  2270. (flag_isoc1x): Change to flag_isoc11.
  2271. * c-common.h (flag_isoc99): Update comment to refer to C11.
  2272. (flag_isoc1x): Change to flag_isoc11.
  2273. * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
  2274. C11.
  2275. * c-opts.c (set_std_c1x): Change to set_std_c11.
  2276. (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
  2277. Call set_std_c11.
  2278. (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
  2279. (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
  2280. * c.opt (std=c1x): Change to std=c11. Document as non-draft
  2281. standard.
  2282. (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
  2283. (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
  2284. (std=gnu1x): Make alias of std=gnu11.
  2285. 2011-12-19 Jason Merrill <jason@redhat.com>
  2286. PR c++/51228
  2287. * c-common.c (handle_transparent_union_attribute): Check the first
  2288. field if the type is complete.
  2289. 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
  2290. PR libstdc++/51365
  2291. * c-common.c (RID_IS_FINAL): Add.
  2292. * c-common.h (RID_IS_FINAL): Add.
  2293. 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
  2294. * c.opt (fgnu-runtime): Provide full description.
  2295. (fnext-runtime): Likewise.
  2296. * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
  2297. 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
  2298. * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
  2299. predefines in one place. Add LOCK_FREE predefines.
  2300. (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
  2301. new func.
  2302. 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
  2303. PR c/51256
  2304. * c-common.c (get_atomic_generic_size): Check for various error
  2305. conditions
  2306. (resolve_overloaded_atomic_exchange,
  2307. resolve_overloaded_atomic_compare_exchange,
  2308. resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
  2309. error_mark_node for error conditions.
  2310. 2011-11-08 Richard Guenther <rguenther@suse.de>
  2311. PR middle-end/51010
  2312. c-family/
  2313. 2011-11-07 Richard Henderson <rth@redhat.com>
  2314. Aldy Hernandez <aldyh@redhat.com>
  2315. Torvald Riegel <triegel@redhat.com>
  2316. Merged from transactional-memory.
  2317. * c-common.c (handle_tm_wrap_attribute,
  2318. handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
  2319. (struct c_common_reswords): Added __transaction* keywords.
  2320. (struct c_common_attribute_table): Added transaction* and tm_regparm
  2321. attributes.
  2322. * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
  2323. masks.
  2324. (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
  2325. find_tm_attribute): Declare.
  2326. 2011-11-07 Jason Merrill <jason@redhat.com>
  2327. PR c++/35688
  2328. * c-common.c, c-common.h: Revert yesterday's changes.
  2329. 2011-11-06 Jason Merrill <jason@redhat.com>
  2330. PR c++/35688
  2331. * c-common.c (decl_has_visibility_attr): Split out from...
  2332. (c_determine_visibility): ...here.
  2333. * c-common.h: Declare it.
  2334. 2011-11-06 Joseph Myers <joseph@codesourcery.com>
  2335. * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
  2336. (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
  2337. type.
  2338. (check_user_alignment): New. Split out of
  2339. handle_aligned_attribute. Disallow integer constants with
  2340. noninteger types. Conditionally allow zero.
  2341. (handle_aligned_attribute): Use check_user_alignment.
  2342. * c-common.h (RID_ALIGNAS, check_user_alignment): New.
  2343. 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
  2344. Richard Henderson <rth@redhat.com>
  2345. Merged from cxx-mem-model.
  2346. * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
  2347. * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
  2348. parameters that are the same type size.
  2349. (get_atomic_generic_size): New. Find size of generic
  2350. atomic function parameters and do typechecking.
  2351. (add_atomic_size_parameter): New. Insert size into parameter list.
  2352. (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
  2353. either __atomic_exchange_n or external library call.
  2354. (resolve_overloaded_atomic_compare_exchange): Restructure
  2355. __atomic_compare_exchange to either _n variant or external library call.
  2356. (resolve_overloaded_atomic_load): Restructure __atomic_load to either
  2357. __atomic_load_n or an external library call.
  2358. (resolve_overloaded_atomic_store): Restructure __atomic_store to either
  2359. __atomic_store_n or an external library call.
  2360. (resolve_overloaded_builtin): Handle new __atomic builtins.
  2361. 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
  2362. PR c++/50608
  2363. * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
  2364. (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
  2365. <INDIRECT_REF>: Return the argument.
  2366. <ARRAY_REF>: Remove special code for negative offset.
  2367. Call fold_build_pointer_plus instead of size_binop.
  2368. (fold_offsetof): Remove STOP_REF argument and adjust.
  2369. * c-common.h (fold_offsetof_1): Declare.
  2370. (fold_offsetof): Remove STOP_REF argument.
  2371. 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
  2372. PR c++/50810
  2373. * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
  2374. of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
  2375. Wnarrowing for C++0x and C++98.
  2376. * c.opt ([Wnarrowing]): Update.
  2377. 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
  2378. PR c++/44277
  2379. * c.opt: Add Wzero-as-null-pointer-constant.
  2380. 2011-10-31 Jason Merrill <jason@redhat.com>
  2381. * c.opt (-fdeduce-init-list): Off by default.
  2382. PR c++/50920
  2383. * c-common.h (cxx_dialect): Add cxx11 and cxx03.
  2384. * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
  2385. and -Wc++11-compat.
  2386. * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
  2387. 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
  2388. PR c++/30066
  2389. * c.opt (fvisibility-inlines-hidden): Description change.
  2390. 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
  2391. Implement C++11 user-defined literals.
  2392. * c-common.c (build_userdef_literal): New.
  2393. * c-common.def: New tree code.
  2394. * c-common.h (tree_userdef_literal): New tree struct and accessors.
  2395. * c-lex.c (interpret_float): Add suffix parm.
  2396. (c_lex_with_flags): Build literal tokens.
  2397. 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
  2398. PR c++/50841
  2399. Revert:
  2400. 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
  2401. PR c++/50810
  2402. * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
  2403. of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
  2404. Wnarrowing for C++0x and C++98.
  2405. * c.opt ([Wnarrowing]): Update.
  2406. 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
  2407. PR c++/50810
  2408. * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
  2409. of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
  2410. Wnarrowing for C++0x and C++98.
  2411. * c.opt ([Wnarrowing]): Update.
  2412. 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
  2413. PR c++/45385
  2414. * c-common.c (conversion_warning): Remove code looking for
  2415. artificial operands.
  2416. 2011-10-18 Dodji Seketeli <dodji@redhat.com>
  2417. PR bootstrap/50760
  2418. * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
  2419. !NO_IMPLICIT_EXTERN_C.
  2420. 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
  2421. * c-common.c (c_common_reswords): Add __bases,
  2422. __direct_bases.
  2423. * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
  2424. 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
  2425. PR c++/50757
  2426. * c.opt ([Wnonnull]): Add C++ and Objective-C++.
  2427. 2011-10-15 Tom Tromey <tromey@redhat.com>
  2428. Dodji Seketeli <dodji@redhat.com>
  2429. * c.opt (fdebug-cpp): New option.
  2430. * c-opts.c (c_common_handle_option): Handle the option.
  2431. * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
  2432. output stream in parameter. Factorized from ...
  2433. (maybe_print_line): ... this. Dump location debug information when
  2434. -fdebug-cpp is in effect.
  2435. (print_line_1): New static function. Takes an output stream in
  2436. parameter. Factorized from ...
  2437. (print_line): ... here. Dump location information when -fdebug-cpp
  2438. is in effect.
  2439. (scan_translation_unit): Dump location information when
  2440. -fdebug-cpp is in effect.
  2441. 2011-10-15 Tom Tromey <tromey@redhat.com>
  2442. Dodji Seketeli <dodji@redhat.com>
  2443. * c.opt (ftrack-macro-expansion): New option. Handle it with and
  2444. without argument.
  2445. * c-opts.c (c_common_handle_option)<case
  2446. OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
  2447. cases. Handle -ftrack-macro-expansion with and without argument.
  2448. 2011-10-15 Tom Tromey <tromey@redhat.com>
  2449. Dodji Seketeli <dodji@redhat.com>
  2450. * c-ppoutput.c (scan_translation_unit, maybe_print_line)
  2451. (print_line, cb_define, do_line_change): Adjust to avoid touching
  2452. the internals of struct line_map. Use the public API instead.
  2453. * c-pch.c (c_common_read_pch): Likewise.
  2454. * c-lex.c (fe_file_change): Likewise.
  2455. 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
  2456. PR c++/17212
  2457. * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
  2458. 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
  2459. PR c++/33067
  2460. * c-pretty-print.c (pp_c_floating_constant): Output
  2461. max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
  2462. 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
  2463. * c-common.c (def_builtin_1): Delete old interface with two
  2464. parallel arrays to hold standard builtin declarations, and replace
  2465. it with a function based interface that can support creating
  2466. builtins on the fly in the future. Change all uses, and poison
  2467. the old names. Make sure 0 is not a legitimate builtin index.
  2468. * c-omp.c (c_finish_omp_barrier): Ditto.
  2469. (c_finish_omp_taskwait): Ditto.
  2470. (c_finish_omp_flush): Ditto.
  2471. 2011-10-11 Tristan Gingold <gingold@adacore.com>
  2472. * c.opt: (fallow-parameterless-variadic-functions): New.
  2473. 2011-09-08 Dodji Seketeli <dodji@redhat.com>
  2474. PR c++/33255 - Support -Wunused-local-typedefs warning
  2475. * c-common.h (struct c_language_function::local_typedefs): New
  2476. field.
  2477. (record_locally_defined_typedef, maybe_record_typedef_use)
  2478. (maybe_warn_unused_local_typedefs): Declare new functions.
  2479. * c-common.c (record_locally_defined_typedef)
  2480. (maybe_record_typedef_use)
  2481. (maybe_warn_unused_local_typedefs): Define new functions.
  2482. * c.opt: Declare new -Wunused-local-typedefs flag.
  2483. 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
  2484. PR middle-end/50266
  2485. * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
  2486. computations.
  2487. 2011-09-05 Richard Guenther <rguenther@suse.de>
  2488. * c-common.c (complete_array_type): Use ssize_int (-1) instead
  2489. of integer_minus_one_node for empty array upper bounds.
  2490. 2011-08-28 Dodji Seketeli <dodji@redhat.com>
  2491. * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
  2492. it's the first time it's being called on this main TU.
  2493. 2011-08-24 Richard Guenther <rguenther@suse.de>
  2494. PR c/49396
  2495. * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
  2496. 2011-08-22 Gabriel Charette <gchare@google.com>
  2497. * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
  2498. defined in cpp_init_builtins and c_cpp_builtins.
  2499. 2011-08-19 Joseph Myers <joseph@codesourcery.com>
  2500. * c-common.c (c_common_reswords): Add __builtin_complex.
  2501. * c-common.h (RID_BUILTIN_COMPLEX): New.
  2502. 2011-08-18 Joseph Myers <joseph@codesourcery.com>
  2503. * c-common.c (c_common_reswords): Add _Noreturn.
  2504. (keyword_is_function_specifier): Handle RID_NORETURN.
  2505. * c-common.h (RID_NORETURN): New.
  2506. 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
  2507. * c-common.c (unsafe_conversion_p): New function. Check if it is
  2508. unsafe to convert an expression to the type.
  2509. (conversion_warning): Adjust, use unsafe_conversion_p.
  2510. * c-common.h (unsafe_conversion_p): New function declaration.
  2511. 2011-08-02 Jakub Jelinek <jakub@redhat.com>
  2512. * c-common.h (c_finish_omp_atomic): Adjust prototype.
  2513. (c_finish_omp_taskyield): New prototype.
  2514. * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
  2515. arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
  2516. OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
  2517. or RHS1 have side-effects, evaluate those too in the right spot,
  2518. if it is a decl and LHS is also a decl, error out if they
  2519. aren't the same.
  2520. (c_finish_omp_taskyield): New function.
  2521. * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
  2522. * c-pragma.c (omp_pragmas): Add taskyield.
  2523. * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
  2524. (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
  2525. PRAGMA_OMP_CLAUSE_MERGEABLE.
  2526. 2011-07-25 Dodji Seketeli <dodji@redhat.com>
  2527. * c-common.h (set_underlying_type): Remove parm name from
  2528. declaration.
  2529. 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
  2530. * c-pretty-print.h: Search c-common.h in c-family.
  2531. 2011-07-22 Jason Merrill <jason@redhat.com>
  2532. PR c++/49793
  2533. * c.opt (Wnarrowing): New.
  2534. PR c++/30112
  2535. * c-common.h: Declare c_linkage_bindings.
  2536. * c-pragma.c (handle_pragma_redefine_extname): Use it.
  2537. PR c++/49813
  2538. * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
  2539. * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
  2540. as flag_isoc99 for 'restrict'.
  2541. (pp_c_specifier_qualifier_list): Likewise for _Complex.
  2542. 2011-07-21 Ian Lance Taylor <iant@google.com>
  2543. PR middle-end/49705
  2544. * c-common.c (c_disable_warnings): New static function.
  2545. (c_enable_warnings): New static function.
  2546. (c_fully_fold_internal): Change local unused_p to bool. Call
  2547. c_disable_warnings and c_enable_warnings rather than change
  2548. c_inhibit_evaluation_warnings.
  2549. 2011-07-20 Jason Merrill <jason@redhat.com>
  2550. PR c++/6709 (DR 743)
  2551. PR c++/42603 (DR 950)
  2552. * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
  2553. (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
  2554. (CPP_DECLTYPE): New.
  2555. * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
  2556. 2011-07-19 Richard Guenther <rguenther@suse.de>
  2557. * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
  2558. * c-omp.c (c_finish_omp_for): Likewise.
  2559. 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
  2560. * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
  2561. body on the next line.
  2562. 2011-07-08 Jason Merrill <jason@redhat.com>
  2563. PR c++/45437
  2564. * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
  2565. PR c++/49673
  2566. * c-common.c (c_apply_type_quals_to_decl): Don't check
  2567. TYPE_NEEDS_CONSTRUCTING.
  2568. 2011-07-06 Richard Guenther <rguenther@suse.de>
  2569. * c-common.c (c_common_nodes_and_builtins):
  2570. Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
  2571. 2011-07-05 Richard Guenther <rguenther@suse.de>
  2572. * c-common.c (c_common_nodes_and_builtins): Build all common
  2573. tree nodes first.
  2574. 2011-06-27 Jakub Jelinek <jakub@redhat.com>
  2575. * c-common.h (c_tree_chain_next): New static inline function.
  2576. * c-common.c (check_builtin_function_arguments): Handle
  2577. BUILT_IN_ASSUME_ALIGNED.
  2578. 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
  2579. * c-common.c: Add sync_ or SYNC__ to builtin names.
  2580. * c-omp.c: Add sync_ or SYNC__ to builtin names.
  2581. 2011-06-20 Pierre Vittet <piervit@pvittet.com>
  2582. * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
  2583. handler.
  2584. (gen_pragma_handler): New union.
  2585. (internal_pragma_handler): New type.
  2586. (c_register_pragma_with_data)
  2587. (c_register_pragma_with_expansion_and_data): New functions.
  2588. * c-pragma.c (registered_pragmas, c_register_pragma_1)
  2589. (c_register_pragma, c_register_pragma_with_expansion)
  2590. (c_invoke_pragma_handler): Changed to work with
  2591. internal_pragma_handler.
  2592. (c_register_pragma_with_data)
  2593. (c_register_pragma_with_expansion_and_data): New functions.
  2594. 2011-06-14 Joseph Myers <joseph@codesourcery.com>
  2595. * c-common.c: Include common/common-target.h.
  2596. (handle_section_attribute): Use
  2597. targetm_common.have_named_sections.
  2598. * c-cppbuiltin.c: Include common/common-target.h.
  2599. (c_cpp_builtins): Use targetm_common.except_unwind_info.
  2600. 2011-06-10 Richard Guenther <rguenther@suse.de>
  2601. * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
  2602. to print a IDENTIFIER_NODE.
  2603. 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2604. Joseph Myers <joseph@codesourcery.com>
  2605. * c.opt (fbuilding-libgcc): New option.
  2606. * c-cppbuiltin.c (c_cpp_builtins): Define
  2607. __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
  2608. 2011-06-07 Jason Merrill <jason@redhat.com>
  2609. * c-common.c (max_tinst_depth): Lower default to 900.
  2610. * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
  2611. 2011-06-07 Richard Guenther <rguenther@suse.de>
  2612. * c-common.c (c_common_nodes_and_builtins): Do not set
  2613. size_type_node or call set_sizetype.
  2614. 2011-06-07 Dodji Seketeli <dodji@redhat.com>
  2615. PR debug/49130
  2616. * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
  2617. type when using pointer comparison to compare types.
  2618. 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
  2619. * c.opt: Add -Wdelete-non-virtual-dtor.
  2620. * c-opts.c (c_common_handle_option): Include it in -Wall.
  2621. 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
  2622. PR bootstrap/49190
  2623. Revert:
  2624. 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
  2625. * c-common.h (struct c_common_identifier): Inherit from tree_typed,
  2626. not tree_common.
  2627. 2011-05-27 Jakub Jelinek <jakub@redhat.com>
  2628. PR c++/49165
  2629. * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
  2630. C++ don't call c_common_truthvalue_conversion on void type arms.
  2631. 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
  2632. * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
  2633. (stmt_list_stack): Define.
  2634. (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
  2635. * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
  2636. 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
  2637. * c-common.c (warning_candidate_p): Check for BLOCKs.
  2638. 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
  2639. * c-common.h (struct c_common_identifier): Inherit from tree_typed,
  2640. not tree_common.
  2641. 2011-05-25 Jakub Jelinek <jakub@redhat.com>
  2642. * c-common.c (def_fn_type): Remove extra va_end.
  2643. 2011-05-23 Jason Merrill <jason@redhat.com>
  2644. PR c++/48106
  2645. * c-common.c (c_common_get_narrower): New.
  2646. (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
  2647. 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
  2648. * c-common.h (check_function_arguments): Tweak prototype of
  2649. check_function_arguments.
  2650. * c-common.c (check_function_arguments): Likewise. Adjust
  2651. calls to check_function_nonnull, check_function_format, and
  2652. check_function_sentinel.
  2653. (check_function_sentinel): Take a FUNCTION_TYPE rather than
  2654. separate attributes and typelist arguments. Use
  2655. FOREACH_FUNCTION_ARGS to iterate over argument types.
  2656. 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
  2657. * c-common.c (c_common_reswords): Reorder.
  2658. * c-common.h (rid): Likewise.
  2659. 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
  2660. * c-common.c (def_fn_type): Don't call build_function_type, call
  2661. build_function_type_array or build_varargs_function_type_array
  2662. instead.
  2663. (c_common_nodes_and_builtins): Likewise.
  2664. 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
  2665. * c-common.c (c_add_case_label): Omit the loc argument to
  2666. build_case_label.
  2667. * c-common.h (build_case_label): Remove.
  2668. * c-semantics.c (build_case_label): Remove.
  2669. 2011-05-05 Joseph Myers <joseph@codesourcery.com>
  2670. * c-objc.h (objc_start_method_definition): Update prototype.
  2671. * stub-objc.c (objc_start_method_definition): Add extra parameter.
  2672. 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
  2673. * c-common.c (check_main_parameter_types): Reindent. Don't use
  2674. TYPE_ARG_TYPES directly.
  2675. (handle_nonnull_attribute): Likewise.
  2676. (sync_resolve_params): Likewise.
  2677. * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
  2678. to check_format_string.
  2679. (handle_format_attribute): Likewise.
  2680. (check_format_string): Take a function type to examine instead of
  2681. a type list. Use a function_arg_iterator to step through argument
  2682. types.
  2683. 2011-05-04 Richard Guenther <rguenther@suse.de>
  2684. * c-common.c (fix_string_type): Use size_int for index type bounds.
  2685. (start_fname_decls): Do not pass NULL to build_int_cst.
  2686. (c_init_attributes): Likewise.
  2687. * c-lex.c (c_lex_with_flags): Likewise.
  2688. 2011-04-27 Jason Merrill <jason@redhat.com>
  2689. * c-common.c (make_tree_vector_from_list): New.
  2690. * c-common.h: Declare it.
  2691. 2011-04-26 Richard Guenther <rguenther@suse.de>
  2692. PR preprocessor/48248
  2693. * c-ppoutput.c (maybe_print_line): Always optimize newlines
  2694. for output size with -P.
  2695. 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
  2696. * c-common.c (struct c_common_resword): Add __underlying_type.
  2697. * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
  2698. 2011-04-20 Jim Meyering <meyering@redhat.com>
  2699. * c-format.c (init_dollar_format_checking): Remove useless
  2700. if-before-free.
  2701. 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
  2702. * c-objc.h (objc_get_interface_ivars): Removed.
  2703. (objc_detect_field_duplicates): New.
  2704. * stub-objc.c: Likewise.
  2705. 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
  2706. * stub-objc.c (objc_declare_protocols): Renamed to
  2707. objc_declare_protocol.
  2708. * c-objc.h: Likewise.
  2709. 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
  2710. * stub-objc.c (objc_declare_class): Updated argument name.
  2711. 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
  2712. * c-common.h (c_common_init_ts): Declare.
  2713. * c-common.c (c_common_init_ts): Define.
  2714. 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
  2715. * c-objc.h (objc_build_message_expr): Updated prototype.
  2716. * stub-objc.c (objc_build_message_expr): Likewise.
  2717. 2011-04-12 Martin Jambor <mjambor@suse.cz>
  2718. * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
  2719. of cgraph_node.
  2720. 2011-04-11 Richard Guenther <rguenther@suse.de>
  2721. * c-common.c (complete_array_type): Build a range type of
  2722. proper type.
  2723. 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
  2724. * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
  2725. (handle_type_generic_attribute): Likewise.
  2726. 2011-04-07 Jason Merrill <jason@redhat.com>
  2727. PR c++/48450
  2728. * c-common.c (c_common_truthvalue_conversion): Don't ignore
  2729. conversion from C++0x scoped enum.
  2730. 2011-04-06 Joseph Myers <joseph@codesourcery.com>
  2731. * c-target-def.h: New file.
  2732. * c-target.def: New file.
  2733. * c-target.h: New file.
  2734. * c-common.c (targetcm): Don't define here.
  2735. * c-common.h (default_handle_c_option): Declare.
  2736. * c-format.c: Include c-target.h instead of target.h.
  2737. * c-opts.c: Include c-target.h instead of target.h. Explicitly
  2738. include tm.h.
  2739. (default_handle_c_option): Move from targhooks.c.
  2740. 2011-03-29 Jakub Jelinek <jakub@redhat.com>
  2741. PR preprocessor/48248
  2742. * c-ppoutput.c (print): Add src_file field.
  2743. (init_pp_output): Initialize it.
  2744. (maybe_print_line): Don't optimize by adding up to 8 newlines
  2745. if map->to_file and print.src_file are different file.
  2746. (print_line): Update print.src_file.
  2747. 2011-03-25 Kai Tietz <ktietz@redhat.com>
  2748. * c-ada-spec.c (compare_comment): Use filename_cmp
  2749. instead of strcmp for filename.
  2750. 2011-03-25 Jeff Law <law@redhat.com>
  2751. * c-common.c (def_fn_type): Add missing va_end.
  2752. 2011-03-25 Jason Merrill <jason@redhat.com>
  2753. * c.opt: Add -std=c++03.
  2754. 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
  2755. * c-ada-spec.c (dump_ada_template): Skip non-class instances.
  2756. 2011-03-17 Kai Tietz
  2757. PR target/12171
  2758. * c-pretty-print.c (pp_c_specifier_qualifier_list):
  2759. Display allowed attributes for function pointer types.
  2760. (pp_c_attributes_display): New function to display
  2761. attributes having affects_type_identity flag set to true.
  2762. * c-pretty-print.h (pp_c_attributes_display): New prototype.
  2763. * c-common.c (c_common_attribute_table):
  2764. Add new element.
  2765. (c_common_format_attribute_table): Likewise.
  2766. 2011-03-18 Jason Merrill <jason@redhat.com>
  2767. * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
  2768. * c-common.h: Don't declare it here.
  2769. * c-common.c: Or define it here.
  2770. * c-opts.c (c_common_handle_option): Or set it here.
  2771. PR c++/35315
  2772. * c-common.c (handle_transparent_union_attribute): Don't
  2773. make a duplicate type in C++.
  2774. 2011-03-15 Jason Merrill <jason@redhat.com>
  2775. * c-common.c (max_constexpr_depth): New.
  2776. * c-common.h: Declare it.
  2777. * c-opts.c (c_common_handle_option): Set it.
  2778. * c.opt (fconstexpr-depth): New option.
  2779. 2011-03-11 Jason Merrill <jason@redhat.com>
  2780. * c-common.c (attribute_takes_identifier_p): Add missing const.
  2781. PR c++/46803
  2782. * c-common.c (attribute_takes_identifier_p): Assume that an
  2783. unknown attribute takes an identifier.
  2784. 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
  2785. PR c/47786
  2786. * c-common.c (c_type_hash): Call list_length instead of iterating
  2787. through DECL_CHAIN. Rename 'i' to 'n_elements'.
  2788. 2011-02-19 Jakub Jelinek <jakub@redhat.com>
  2789. PR c/47809
  2790. * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
  2791. 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
  2792. * c.opt (fobjc-abi-version=) New.
  2793. (fobjc-nilcheck): New.
  2794. 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
  2795. PR c++/46890
  2796. * c-common.h (keyword_is_decl_specifier): Declare.
  2797. * c-common.c (keyword_is_decl_specifier): Define.
  2798. (keyword_is_function_specifier): New function.
  2799. 2011-01-26 Jakub Jelinek <jakub@redhat.com>
  2800. PR c/47473
  2801. * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
  2802. EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
  2803. REAL_TYPE.
  2804. 2011-01-26 Arnaud Charlet <charlet@adacore.com>
  2805. * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
  2806. 2011-01-26 Jakub Jelinek <jakub@redhat.com>
  2807. PR pch/47430
  2808. * c-opts.c (c_common_post_options): Call c_common_no_more_pch
  2809. after init_c_lex if pch_file is set.
  2810. 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
  2811. PR c++/43601
  2812. * c.opt (-fkeep-inline-dllexport): New switch.
  2813. 2011-01-12 Richard Guenther <rguenther@suse.de>
  2814. PR middle-end/32511
  2815. * c-common.c (handle_weak_attribute): Warn instead of error
  2816. on declaring an inline function weak.
  2817. 2011-01-05 Tom Tromey <tromey@redhat.com>
  2818. * c-common.h (lvalue_error): Update.
  2819. * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
  2820. not error.
  2821. 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
  2822. PR objc/47075
  2823. * c-objc.h (objc_finish_message_expr): Added argument to
  2824. prototype.
  2825. 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
  2826. * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
  2827. Use prototype_p.
  2828. 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
  2829. * c-objc.h (objc_maybe_warn_exceptions): New.
  2830. * stub-objc.c (objc_maybe_warn_exceptions): New.
  2831. 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
  2832. * c-common.h (readonly_error): Declare.
  2833. * c-common.c (readonly_error): Define.
  2834. 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
  2835. * c-common.h (invalid_indirection_error): Declare.
  2836. * c-common.c (invalid_indirection_error): Define.
  2837. 2010-12-03 Richard Guenther <rguenther@suse.de>
  2838. PR c/46745
  2839. * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
  2840. (pp_c_unary_expression): Likewise.
  2841. (pp_c_expression): Likewise.
  2842. 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
  2843. * c-common.h (objc_finish_function): New.
  2844. (objc_non_volatilized_type): Removed.
  2845. (objc_type_quals_match): Removed.
  2846. * stub-objc.c (objc_finish_function): New.
  2847. (objc_non_volatilized_type): Removed.
  2848. (objc_type_quals_match): Removed.
  2849. 2010-11-30 Joseph Myers <joseph@codesourcery.com>
  2850. * c-common.h (parse_optimize_options): Declare.
  2851. * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
  2852. c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
  2853. 2010-11-29 Joseph Myers <joseph@codesourcery.com>
  2854. * c-opts.c (check_deps_environment_vars): Use getenv instead of
  2855. GET_ENVIRONMENT.
  2856. * c-pch.c (O_BINARY): Don't define here.
  2857. * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
  2858. 2010-11-25 Joseph Myers <joseph@codesourcery.com>
  2859. * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
  2860. targetm.except_unwind_info.
  2861. 2010-11-23 Joseph Myers <joseph@codesourcery.com>
  2862. * c-opts.c (c_common_handle_option): Pass location to
  2863. set_struct_debug_option.
  2864. 2010-11-23 Joseph Myers <joseph@codesourcery.com>
  2865. * c-common.c (visibility_options): Move from ../opts.c.
  2866. * c-common.h (struct visibility_flags, visibility_options):
  2867. Declare here.
  2868. * c-opts.c (finish_options): Rename to c_finish_options.
  2869. (c_common_init): Update call to finish_options.
  2870. 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
  2871. PR objc/34033
  2872. * c-lex.c (lex_string): Check that each string in an Objective-C
  2873. string concat sequence starts with either one or zero '@', and
  2874. that there are no spurious '@' signs at the end.
  2875. 2010-11-20 Joseph Myers <joseph@codesourcery.com>
  2876. * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
  2877. HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
  2878. HANDLE_PRAGMA_VISIBILITY.
  2879. * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
  2880. HANDLE_PRAGMA_VISIBILITY): Don't define.
  2881. (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
  2882. 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
  2883. PR c++/16189
  2884. PR c++/36888
  2885. PR c++/45331
  2886. * c-common.h (keyword_begins_type_specifier): Declare.
  2887. (keyword_is_storage_class_specifier): Declare.
  2888. (keyword_is_type_qualifier): Declare.
  2889. * c-common.c (keyword_begins_type_specifier): New function.
  2890. (keyword_is_storage_class_specifier): New function.
  2891. (keyword_is_type_qualifier): Declare.
  2892. 2010-11-19 Joseph Myers <joseph@codesourcery.com>
  2893. PR c/46547
  2894. * c-common.c (in_late_binary_op): Define.
  2895. (c_common_truthvalue_conversion): Check in_late_binary_op before
  2896. calling c_save_expr.
  2897. * c-common.h (in_late_binary_op): Declare.
  2898. 2010-11-19 Joseph Myers <joseph@codesourcery.com>
  2899. * c-opts.c (c_common_handle_option): Update calls to
  2900. set_struct_debug_option.
  2901. 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
  2902. * c-common.h (objc_declare_protocols): Added additional argument.
  2903. * stub-objc.c (objc_declare_protocol): Same change.
  2904. 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
  2905. PR c/33193
  2906. * c-common.h (build_real_imag_expr): Declare.
  2907. * c-semantics.c (build_real_imag_expr): Define.
  2908. 2010-11-17 Joseph Myers <joseph@codesourcery.com>
  2909. * c-opts.c (c_common_parse_file): Take no arguments.
  2910. * c-common.h (c_common_parse_file): Update prototype.
  2911. 2010-11-16 Jakub Jelinek <jakub@redhat.com>
  2912. PR c++/46401
  2913. * c-common.c (warning_candidate_p): Don't track non-const calls
  2914. or STRING_CSTs.
  2915. 2010-11-15 Ian Lance Taylor <iant@google.com>
  2916. * c-lex.c (init_c_lex): Set macro debug callbacks if
  2917. flag_dump_go_spec is set.
  2918. 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
  2919. * c-common.h (objc_build_incr_expr_for_property_ref): New.
  2920. * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
  2921. 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
  2922. PR preprocessor/45038
  2923. * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
  2924. dialects.
  2925. 2010-11-12 Joseph Myers <joseph@codesourcery.com>
  2926. * c-common.h (c_family_lang_mask): Declare.
  2927. * c-opts.c (c_family_lang_mask): Make extern.
  2928. * c-pragma.c (handle_pragma_diagnostic): Use
  2929. control_warning_option.
  2930. 2010-11-12 Joseph Myers <joseph@codesourcery.com>
  2931. * c-common.c (parse_optimize_options): Update call to
  2932. decode_options.
  2933. * c-common.h (c_common_handle_option): Update prototype.
  2934. * c-opts.c (c_common_handle_option): Take location_t parameter and
  2935. pass it to other functions.
  2936. 2010-11-11 Joseph Myers <joseph@codesourcery.com>
  2937. * c-opts.c (warning_as_error_callback): Remove.
  2938. (c_common_initialize_diagnostics): Don't call
  2939. register_warning_as_error_callback.
  2940. (c_common_handle_option): Handle -Werror=normalized= here.
  2941. 2010-11-10 Joseph Myers <joseph@codesourcery.com>
  2942. * c-common.c (handle_mode_attribute): Use %' and word "signedness"
  2943. in diagnostic.
  2944. * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
  2945. letter.
  2946. * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
  2947. Remove trailing '.' from diagnostics.
  2948. * c.opt (Wwrite-strings_: Avoid '`' in help text.
  2949. 2010-11-10 Joseph Myers <joseph@codesourcery.com>
  2950. * c-common.c (parse_optimize_options): Pass global_dc to
  2951. decode_options.
  2952. * c-opts.c (c_common_handle_option): Pass &global_options to
  2953. set_Wstrict_aliasing.
  2954. * c.opt (v): Don't mark Common or document here.
  2955. 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
  2956. PR target/44981
  2957. * c-format.c (format_type): New type gcc_objc_string_format_type.
  2958. (valid_stringptr_type_p): New.
  2959. (handle_format_arg_attribute): Use valid_stringptr_type_p ().
  2960. (check_format_string): Pass expected type, use
  2961. valid_stringptr_type_p (), check that the format string types are
  2962. consistent with the format specification.
  2963. (decode_format_attr): Warn if NSString is used outside objective-c.
  2964. (format_types_orig): Add NSString.
  2965. (format_name): New.
  2966. (format_flags): New.
  2967. (check_format_arg): Handle format strings requiring an external parser.
  2968. first_target_format_type: New variable.
  2969. (handle_format_attribute): Set up first_target_format_type, pass the
  2970. expected format arg string type to check_format_string().
  2971. * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
  2972. * stub-objc.c (objc_string_ref_type_p): New.
  2973. (objc_check_format_arg): New.
  2974. 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
  2975. Fixed using the Objective-C 2.0 dot-syntax with class names.
  2976. * c-common.h (objc_build_class_component_ref): New.
  2977. * stub-objc.c (objc_build_class_component_ref): New.
  2978. 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
  2979. * c.opt (Wproperty-assign-default): New option.
  2980. 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
  2981. Implemented -fobjc-std=objc1 flag.
  2982. * c.opt (fobjc-std=objc1): New option.
  2983. 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
  2984. Implemented format and noreturn attributes for Objective-C methods.
  2985. * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
  2986. attribute for Objective-C methods.
  2987. 2010-10-31 Jason Merrill <jason@redhat.com>
  2988. * c-common.c (conversion_warning, warn_for_collisions_1): Use
  2989. EXPR_LOC_OR_HERE.
  2990. 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
  2991. Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
  2992. * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
  2993. (objc_add_property_declaration): Removed arguments for copies and
  2994. ivar.
  2995. (objc_build_getter_call): Renamed to
  2996. objc_maybe_build_component_ref.
  2997. (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
  2998. (objc_is_property_ref): New.
  2999. * c-common.c (c_common_reswords): Removed copies and ivar.
  3000. * stub-objc.c (objc_add_property_declaration): Removed arguments
  3001. for copies and ivar.
  3002. (objc_build_getter_call): Renamed to
  3003. objc_maybe_build_component_ref.
  3004. (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
  3005. (objc_is_property_ref): New.
  3006. 2010-10-29 Arnaud Charlet <charlet@adacore.com>
  3007. Matthew Gingell <gingell@adacore.com>
  3008. * c-ada-spec.c (separate_class_package): New function.
  3009. (pp_ada_tree_identifier): Prefix references to C++ classes with the
  3010. name of their enclosing package.
  3011. (print_ada_declaration): Use separate_class_package.
  3012. 2010-10-27 Jason Merrill <jason@redhat.com>
  3013. * c-common.c (c_common_reswords): Add __is_literal_type.
  3014. * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
  3015. * c-common.c (check_case_value): Remove special C++ code.
  3016. 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
  3017. * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
  3018. RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
  3019. and RID_LAST_PATTR.
  3020. (objc_add_property_declaration): Added additional arguments.
  3021. (objc_property_attribute_kind): Removed.
  3022. (objc_set_property_attr): Removed.
  3023. * c-common.c (c_common_reswords): Added readwrite, assign, retain,
  3024. copy and nonatomic.
  3025. * stub-objc.c (objc_add_property_declaration): Added additional
  3026. arguments.
  3027. (objc_set_property_attr): Removed.
  3028. 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
  3029. * c-common.h (objc_add_property_variable): Renamed to
  3030. objc_add_property_declaration. Added location argument.
  3031. * stub-objc.c (objc_add_property_variable): Same change.
  3032. 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
  3033. * c-common.h (objc_maybe_printable_name): New.
  3034. * stub-objc.c (objc_maybe_printable_name): New.
  3035. 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
  3036. Andrew Pinski <pinskia@gmail.com>
  3037. * c-common.h (c_common_mark_addressable_vec): Declare.
  3038. * c-common.c (c_common_mark_addressable_vec): New function.
  3039. 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
  3040. * c-common.h (objc_set_method_type): Removed.
  3041. (objc_add_method_declaration): Added boolean argument.
  3042. (objc_start_method_definition): Same change.
  3043. (objc_build_method_signature): Same change.
  3044. * stub-objc.c (objc_set_method_type): Removed.
  3045. (objc_add_method_declaration): Added boolean argument.
  3046. (objc_start_method_definition): Same change.
  3047. (objc_build_method_signature): Same change.
  3048. 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
  3049. * c-common.h (finish_file): Removed.
  3050. (objc_write_global_declarations): New.
  3051. * c-opts.c (c_common_parse_file): Do not call finish_file.
  3052. * stub-objc.c (objc_write_global_declarations): New.
  3053. 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
  3054. Implemented parsing @synthesize and @dynamic for
  3055. Objective-C/Objective-C++.
  3056. * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
  3057. (objc_add_synthesize_declaration): New.
  3058. (objc_add_dynamic_declaration): New.
  3059. * c-common.c (c_common_reswords): Add synthesize and dynamic.
  3060. * stub-objc.c (objc_add_synthesize_declaration): New.
  3061. (objc_add_dynamic_declaration): New.
  3062. 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
  3063. PR target/46041
  3064. * c-cppbuiltin.c (mode_has_fma): Move function here from
  3065. builtins.c. Don't use the fma optab, instead just use the
  3066. HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
  3067. using -save-temps.
  3068. 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
  3069. Merge from 'apple/trunk' branch on FSF servers.
  3070. 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
  3071. Radar 4330422
  3072. * c-common.h (objc_non_volatilized_type): New declaration
  3073. * stub-objc.c (objc_non_volatilized_type): New stub.
  3074. 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
  3075. Merge from 'apple/trunk' branch on FSF servers.
  3076. 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
  3077. Radar 4133425
  3078. * c-common.h (objc_diagnose_private_ivar): New decl.
  3079. * stub-objc.c (objc_diagnose_private_ivar): New stub.
  3080. 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
  3081. * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
  3082. * c-common.h (enum rid): Add RID_AT_PACKAGE.
  3083. (objc_ivar_visibility_kind): New enum.
  3084. (objc_set_visibility): Adjust prototype to use visibility enum.
  3085. * stub-objc.c (objc_set_visibility): Adjust stub to use
  3086. visibility enum.
  3087. 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
  3088. * c-cppbuiltin.c (builtin_define_float_constants): Emit
  3089. __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
  3090. has the appropriate fma builtins.
  3091. (c_cpp_builtins): Adjust call to builtin_define_float_constants.
  3092. 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
  3093. merge from FSF apple 'trunk' branch.
  3094. 2006 Fariborz Jahanian <fjahanian@apple.com>
  3095. Radars 4436866, 4505126, 4506903, 4517826
  3096. * c-common.c (c_common_resword): Define @property and its attributes.
  3097. * c-common.h: Define property attribute enum entries.
  3098. (OBJC_IS_PATTR_KEYWORD): New.
  3099. (objc_property_attribute_kind): New enum.
  3100. Declare objc_set_property_attr (), objc_add_property_variable (),
  3101. objc_build_getter_call () and objc_build_setter_call ().
  3102. * stub-objc.c (objc_set_property_attr): New stub.
  3103. (objc_add_property_variable): Likewise.
  3104. (objc_build_getter_call): Likewise.
  3105. (objc_build_setter_call) Likewise.
  3106. 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
  3107. merge from FSF apple 'trunk' branch.
  3108. 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
  3109. Radar 3803157 (method attributes)
  3110. * c-common.c (handle_deprecated_attribute): Recognize
  3111. objc methods as valid declarations.
  3112. * c-common.h: Declare objc_method_decl ().
  3113. * stub-objc.c (objc_method_decl): New stub.
  3114. 2010-10-08 Joseph Myers <joseph@codesourcery.com>
  3115. * c-common.c (parse_optimize_options): Call
  3116. decode_cmdline_options_to_array_default_mask before
  3117. decode_options. Update arguments to decode_options.
  3118. * c-common.h (c_common_init_options_struct): Declare.
  3119. * c-opts.c (c_common_init_options_struct): New. Split out from
  3120. c_common_init_options.
  3121. 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
  3122. Implemented fast enumeration for Objective-C.
  3123. * c-common.h (objc_finish_foreach_loop): New.
  3124. * stub-objc.c (objc_finish_foreach_loop): New.
  3125. 2010-10-05 Joseph Myers <joseph@codesourcery.com>
  3126. * c-common.h (struct diagnostic_context): Don't declare here.
  3127. (c_common_initialize_diagnostics): Declare using
  3128. diagnostic_context typedef.
  3129. * c-opts.c (c_common_handle_option): Pass global_dc to
  3130. handle_generated_option.
  3131. 2010-10-04 Joseph Myers <joseph@codesourcery.com>
  3132. * c-opts.c (c_common_handle_option): Pass &global_options_set to
  3133. handle_generated_option.
  3134. 2010-10-03 Ian Lance Taylor <iant@google.com>
  3135. * c.opt (-fplan9-extensions): New option.
  3136. 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  3137. * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
  3138. Remove.
  3139. (c_cpp_builtins): Call functions from cppbuiltin.c instead
  3140. of duplicating code.
  3141. 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
  3142. * c-common.c: Add two new entries for @optional
  3143. and @required keywords.
  3144. merge from FSF 'apple/trunk' branch.
  3145. 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
  3146. Radar 4386773
  3147. * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
  3148. objective-c keywords.
  3149. (objc_set_method_opt): New declaration.
  3150. * stub-objc.c (objc_set_method_opt): New stub.
  3151. 2010-09-30 Joseph Myers <joseph@codesourcery.com>
  3152. * c-common.c (handle_optimize_attribute): Pass &global_options to
  3153. cl_optimization_save and cl_optimization_restore.
  3154. * c-opts.c (c_common_handle_option): Pass &global_options to
  3155. handle_generated_option.
  3156. * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
  3157. (handle_pragma_pop_options, handle_pragma_reset_options): Pass
  3158. &global_options to cl_optimization_restore.
  3159. 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
  3160. * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
  3161. Objective-C/Objective-C++ keywords.
  3162. 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
  3163. Merge from 'apple/trunk' branch on FSF servers.
  3164. 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
  3165. Radar 4281748
  3166. * c-common.h (objc_check_global_decl): New declaration.
  3167. * stub-objc.c (objc_check_global_decl): New stub.
  3168. 2010-09-29 Joseph Myers <joseph@codesourcery.com>
  3169. * c.opt: Don't use VarExists.
  3170. 2010-09-29 Joseph Myers <joseph@codesourcery.com>
  3171. * c-common.c (c_cpp_error): Update names of diagnostic_context
  3172. members.
  3173. * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
  3174. cl_optimization members.
  3175. * c-opts.c (warning_as_error_callback, c_common_handle_option,
  3176. sanitize_cpp_opts, finish_options): Update names of cpp_options
  3177. members.
  3178. 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
  3179. * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
  3180. (objc_is_reserved_word): Removed.
  3181. * c-common.c: Updated comments.
  3182. * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
  3183. objc_is_reserved_word.
  3184. * stub-objc.c (objc_is_reserved_word): Removed.
  3185. 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
  3186. * c-common.h (objc_add_method_declaration): Adjust prototype to
  3187. include attributes.
  3188. (objc_start_method_definition): Likewise.
  3189. (objc_build_keyword_decl): Likewise.
  3190. * stub-objc.c:(objc_add_method_declaration): Handle attributes.
  3191. (objc_start_method_definition): Likewise.
  3192. (objc_build_keyword_decl): Likewise.
  3193. 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
  3194. * c-common.h (objc_start_class_interface): Adjust prototype.
  3195. (objc_start_category_interface): Likewise.
  3196. (objc_start_protocol): Likewise.
  3197. * stub-objc.c (objc_start_protocol): Adjust for extra argument.
  3198. (objc_start_class_interface): Likewise.
  3199. (objc_start_category_interface): Likewise.
  3200. 2010-09-27 Ian Lance Taylor <iant@google.com>
  3201. * c-common.c (c_common_attribute_table): Add no_split_stack.
  3202. (handle_no_split_stack_attribute): New static function.
  3203. 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
  3204. Merge from 'apple/trunk' branch on FSF servers.
  3205. 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
  3206. Radar 4229905
  3207. * c-common.h (objc_have_common_type): New declaration.
  3208. * stub-objc.c (objc_have_common_type): New stub.
  3209. 2005-06-22 Ziemowit Laski <zlaski@apple.com>
  3210. Radar 4154928
  3211. * c-common.h (objc_common_type): New prototype.
  3212. * stub-objc.c (objc_common_type): New stub.
  3213. 2010-09-24 Jan Hubicka <jh@suse.cz>
  3214. * c-common.c (handle_leaf_attribute): New function.
  3215. (struct attribute_spec c_common_att): Add leaf.
  3216. 2010-09-22 Joseph Myers <joseph@codesourcery.com>
  3217. * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
  3218. -comments-in-macros, -define-macro, -define-macro=, -dependencies,
  3219. -dump, -dump=, -imacros, -imacros=, -include, -include=,
  3220. -include-barrier, -include-directory, -include-directory=,
  3221. -include-directory-after, -include-directory-after=,
  3222. -include-prefix, -include-prefix=, -include-with-prefix,
  3223. -include-with-prefix=, -include-with-prefix-after,
  3224. -include-with-prefix-after=, -include-with-prefix-before,
  3225. -include-with-prefix-before=, -no-integrated-cpp,
  3226. -no-line-commands, -no-standard-includes, -no-warnings, -output,
  3227. -output=, -pedantic, -pedantic-errors, -preprocess,
  3228. -print-missing-file-dependencies, -trace-includes, -traditional,
  3229. -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
  3230. -user-dependencies, -verbose, -write-dependencies,
  3231. -write-user-dependencies, no-integrated-cpp, traditional): New.
  3232. 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
  3233. PR objc/23710
  3234. * c-common.h (objc_start_method_definition): Return bool instead
  3235. of void.
  3236. * stub-objc.c (objc_start_method_definition): Return bool instead
  3237. of void.
  3238. 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
  3239. PR objc/25965
  3240. * c-common.h (objc_get_interface_ivars): New declaration.
  3241. * stub-objc.c (objc_get_interface_ivars): New stub.
  3242. 2010-09-15 Ian Lance Taylor <iant@google.com>
  3243. * c-common.c (parse_optimize_options): Do not capitalize warning
  3244. messages. Remove period at end of warning message.
  3245. 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
  3246. * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
  3247. (handle_alias_attribute): ... here.
  3248. (handle_ifunc_attribute): New.
  3249. 2010-09-06 Mark Mitchell <mark@codesourcery.com>
  3250. * c-common.h (do_warn_double_promotion): Declare.
  3251. * c-common.c (do_warn_double_promotion): Define.
  3252. 2010-09-05 Mark Mitchell <mark@codesourcery.com>
  3253. * c.opt (Wdouble-promotion): New.
  3254. 2010-09-02 Joseph Myers <joseph@codesourcery.com>
  3255. * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
  3256. fvtable-thunks, fxref): Mark no longer supported in help text.
  3257. 2010-09-02 Joseph Myers <joseph@codesourcery.com>
  3258. * c.opt (Wimport, fall-virtual, falt-external-templates,
  3259. fdefault-inline, fenum-int-equiv, fexternal-templates,
  3260. fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
  3261. fname-mangling-version-, fnew-abi, fnonnull-objects,
  3262. foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
  3263. fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
  3264. applicable.
  3265. (fhandle-exceptions): Mark with Alias and Warn.
  3266. * c-opts.c (c_common_handle_option): Don't handle options marked
  3267. as ignored.
  3268. 2010-09-02 Joseph Myers <joseph@codesourcery.com>
  3269. * c.opt (Wcomments, Werror-implicit-function-declaration,
  3270. ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
  3271. std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
  3272. aliases.
  3273. * c-common.c (option_codes): Use OPT_Wcomment instead of
  3274. OPT_Wcomments.
  3275. * c-opts.c (warning_as_error_callback, c_common_handle_option):
  3276. Don't handle options marked as aliases.
  3277. 2010-08-25 Richard Guenther <rguenther@suse.de>
  3278. * c-common.c (c_common_get_alias_set): Remove special
  3279. handling for pointers.
  3280. 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
  3281. * c-common.c: Use FOR_EACH_VEC_ELT.
  3282. * c-gimplify.c: Likewise.
  3283. * c-pragma.c: Likewise.
  3284. 2010-08-16 Joseph Myers <joseph@codesourcery.com>
  3285. * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
  3286. RejectDriver.
  3287. (MMDX): Change back to MMD. Mark NoDriverArg instead of
  3288. RejectDriver.
  3289. * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
  3290. instead of OPT_MDX and OPT_MMDX.
  3291. 2010-08-16 Joseph Myers <joseph@codesourcery.com>
  3292. * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
  3293. 2010-08-12 Joseph Myers <joseph@codesourcery.com>
  3294. * c.opt (MD, MMD): Change to MDX and MMDX.
  3295. * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
  3296. 2010-08-11 Joseph Myers <joseph@codesourcery.com>
  3297. * c-opts.c (c_common_handle_option): Call handle_generated_option
  3298. instead of handle_option.
  3299. 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
  3300. * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
  3301. (maybe_apply_renaming_pragma): Delete unneeded declarations.
  3302. 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
  3303. * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
  3304. (pending_redefine_extname): Change type to a VEC.
  3305. (add_to_renaming_pragma_list): Update for new type of
  3306. pending_redefine_extname.
  3307. (maybe_apply_renaming_pragma): Likewise.
  3308. 2010-08-04 Arnaud Charlet <charlet@adacore.com>
  3309. * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
  3310. visited.
  3311. (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
  3312. decide whether a type has already been declared/seen.
  3313. Do not go to the original type.
  3314. (dump_nested_types): New parameter forward.
  3315. Generate forward declaration if needed and mark type as visited.
  3316. (print_ada_declaration): Call dump_nested_types if not already done.
  3317. Mark types as visited.
  3318. 2010-08-03 Joseph Myers <joseph@codesourcery.com>
  3319. * c.opt (-print-pch-checksum): Remove option.
  3320. * c-opts.c (c_common_handle_option): Don't handle
  3321. OPT_print_pch_checksum.
  3322. 2010-07-27 Joseph Myers <joseph@codesourcery.com>
  3323. * c-common.h (c_common_handle_option): Update prototype and return
  3324. value type.
  3325. * c-opts.c (c_common_handle_option): Update prototype and return
  3326. value type. Update calls to handle_option and
  3327. enable_warning_as_error.
  3328. 2010-07-27 Jakub Jelinek <jakub@redhat.com>
  3329. PR c/45079
  3330. * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
  3331. 2010-07-27 Joseph Myers <joseph@codesourcery.com>
  3332. * c-common.h (c_common_missing_argument): Remove.
  3333. * c-opts.c (c_common_missing_argument): Remove.
  3334. * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
  3335. idirafter, imacros, include, isysroot, isystem, iquote): Add
  3336. MissingArgError.
  3337. * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
  3338. 2010-07-27 Joseph Myers <joseph@codesourcery.com>
  3339. * c-common.h (c_common_option_lang_mask,
  3340. c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
  3341. New.
  3342. (c_common_init_options): Update prototype.
  3343. * c-opts.c (c_common_option_lang_mask): New.
  3344. (c_common_initialize_diagnostics): Split out of
  3345. c_common_init_options.
  3346. (accept_all_c_family_options, c_common_complain_wrong_lang_p):
  3347. New.
  3348. (c_common_init_options): Update prototype. Use decoded options in
  3349. search for -lang-asm.
  3350. 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
  3351. * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
  3352. * c-format.c: Likewise.
  3353. 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
  3354. * c-common.h: Include diagnostic-core.h. Error if already
  3355. included.
  3356. * c-semantics.c: Do not define GCC_DIAG_STYLE here.
  3357. 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
  3358. * c-common.c (IN_GCC_FRONTEND): Do not undef.
  3359. Do not include expr.h
  3360. (vector_mode_valid_p): Move here.
  3361. 2010-06-21 DJ Delorie <dj@redhat.com>
  3362. * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
  3363. allow these pragmas anywhere.
  3364. 2010-06-14 Jakub Jelinek <jakub@redhat.com>
  3365. PR bootstrap/44509
  3366. * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
  3367. (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
  3368. (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
  3369. ggc_strdup instead of xstrdup.
  3370. 2010-06-10 Jakub Jelinek <jakub@redhat.com>
  3371. * c-cppbuiltin.c: Include cpp-id-data.h.
  3372. (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
  3373. (lazy_hex_fp_value): New function.
  3374. (builtin_define_with_hex_fp_value): Provide definitions lazily.
  3375. 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
  3376. * c-gimplify.c: Do not include tree-flow.h
  3377. 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
  3378. PR other/44034
  3379. * c-common.c: Rename targetm member:
  3380. targetm.enum_va_list -> targetm.enum_va_list_p
  3381. 2010-06-28 Anatoly Sokolov <aesok@post.ru>
  3382. * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
  3383. 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
  3384. * c-cppbuiltin.c: Do not include except.h.
  3385. 2010-06-24 Andi Kleen <ak@linux.intel.com>
  3386. * c-common.c (warn_for_omitted_condop): New.
  3387. * c-common.h (warn_for_omitted_condop): Add prototype.
  3388. 2010-06-21 Joseph Myers <joseph@codesourcery.com>
  3389. * c.opt (lang-objc): Remove.
  3390. * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
  3391. 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
  3392. * c-opts.c: Include "tm_p.h".
  3393. 2010-06-20 Joseph Myers <joseph@codesourcery.com>
  3394. * c-common.c (parse_optimize_options): Update call to
  3395. decode_options.
  3396. 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
  3397. * c-common.c (record_types_used_by_current_var_decl): Adjust for
  3398. new type of types_used_by_cur_var_decl.
  3399. 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
  3400. PR bootstrap/44512
  3401. * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
  3402. for C++ standard compliance.
  3403. 2010-06-16 Jason Merrill <jason@redhat.com>
  3404. * c.opt: Add -Wnoexcept.
  3405. 2010-06-16 Richard Guenther <rguenther@suse.de>
  3406. PR c/44555
  3407. * c-common.c (c_common_truthvalue_conversion): Remove
  3408. premature and wrong optimization concering ADDR_EXPRs.
  3409. 2010-06-15 Arnaud Charlet <charlet@adacore.com>
  3410. * c-ada-spec.c (dump_sloc): Remove column info.
  3411. (is_simple_enum): New function.
  3412. (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
  3413. enum types when relevant.
  3414. 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
  3415. * c-common.c (conversion_warning): Warn at expression
  3416. location.
  3417. 2010-06-10 Joseph Myers <joseph@codesourcery.com>
  3418. * c-opts.c (c_common_handle_option): Don't handle
  3419. OPT_fshow_column.
  3420. 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
  3421. * c-pragma.c (push_alignment): Use typed GC allocation.
  3422. (handle_pragma_push_options): Likewise.
  3423. * c-common.c (parse_optimize_options): Likewise.
  3424. * c-common.h (struct sorted_fields_type): Add variable_size GTY
  3425. option.
  3426. 2010-06-07 Joseph Myers <joseph@codesourcery.com>
  3427. * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
  3428. flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
  3429. flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
  3430. flag_signed_bitfields, warn_strict_null_sentinel,
  3431. flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
  3432. flag_gen_declaration, flag_no_gnu_keywords,
  3433. flag_implement_inlines, flag_implicit_templates,
  3434. flag_implicit_inline_templates, flag_optional_diags,
  3435. flag_elide_constructors, flag_default_inline, flag_rtti,
  3436. flag_conserve_space, flag_access_control, flag_check_new,
  3437. flag_new_for_scope, flag_weak, flag_working_directory,
  3438. flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
  3439. flag_enforce_eh_specs, flag_threadsafe_statics,
  3440. flag_pretty_templates): Remove.
  3441. * c-common.h (flag_preprocess_only, flag_nil_receivers,
  3442. flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
  3443. flag_replace_objc_classes, flag_undef, flag_no_builtin,
  3444. flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
  3445. flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
  3446. flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
  3447. flag_no_gnu_keywords, flag_implement_inlines,
  3448. flag_implicit_templates, flag_implicit_inline_templates,
  3449. flag_optional_diags, flag_elide_constructors, flag_default_inline,
  3450. flag_rtti, flag_conserve_space, flag_access_control,
  3451. flag_check_new, flag_new_for_scope, flag_weak,
  3452. flag_working_directory, flag_use_cxa_atexit,
  3453. flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
  3454. flag_threadsafe_statics, flag_pretty_templates,
  3455. warn_strict_null_sentinel): Remove.
  3456. * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
  3457. fbuiltin, fcheck-new, fconserve-space, felide-constructors,
  3458. fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
  3459. fimplicit-inline-templates, fimplicit-templates,
  3460. flax-vector-conversions, fms-extensions, fnil-receivers,
  3461. fnonansi-builtins, fpretty-templates, freplace-objc-classes,
  3462. frtti, fshort-double, fshort-enums, fshort-wchar,
  3463. fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
  3464. funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
  3465. fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
  3466. gen-decls, undef): Use Var.
  3467. (fdefault-inline, foptional-diags): Document as doing nothing.
  3468. * c-opts.c (c_common_handle_option): Remove cases for options now
  3469. using Var. Mark ignored options as such.
  3470. 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
  3471. * c-common.c: Moved to here from parent directory.
  3472. * c-common.def: Likewise.
  3473. * c-common.h: Likewise.
  3474. * c-cppbuiltin.c: Likewise.
  3475. * c-dump.c: Likewise.
  3476. * c-format.c: Likewise.
  3477. * c-format.h : Likewise.
  3478. * c-gimplify.c: Likewise.
  3479. * c-lex.c: Likewise.
  3480. * c-omp.c: Likewise.
  3481. * c.opt: Likewise.
  3482. * c-opts.c: Likewise.
  3483. * c-pch.c: Likewise.
  3484. * c-ppoutput.c: Likewise.
  3485. * c-pragma.c: Likewise.
  3486. * c-pragma.h: Likewise.
  3487. * c-pretty-print.c: Likewise.
  3488. * c-pretty-print.h: Likewise.
  3489. * c-semantics.c: Likewise.
  3490. * stub-objc.c: Likewise.
  3491. * c-common.c: Include gt-c-family-c-common.h.
  3492. * c-pragma.c: Include gt-c-family-c-pragma.h.
  3493. Copyright (C) 2010-2015 Free Software Foundation, Inc.
  3494. Copying and distribution of this file, with or without modification,
  3495. are permitted in any medium without royalty provided the copyright
  3496. notice and this notice are preserved.