ChangeLog 105 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700
  1. Sun May 1 07:20:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  2. * Version 1.21 released.
  3. * expr.c (expand_call): Merge duplicate code for structure_value_addr.
  4. * emit-rtl.c (restore_reg_data): Delete error check; it's legit for
  5. a pseudo reg to appear nowhere in the rtl.
  6. Sat Apr 30 07:35:31 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  7. * integrate.c (copy_rtx_and_substitute): Fix typo for arg_pointer_rtx.
  8. * decl.c (poplevel): Undo previous change with #if 0.
  9. * stmt.c: `struct nesting' now records the depth on the stack.
  10. Each expand_start... must update and record the depth;
  11. each expand_end... uses macro POPSTACK to pop.
  12. This way, if a level isn't explicitly popped, it won't cause
  13. circular structure.
  14. * dbxout.c (dbxout_type): Replace with main variant only if incomplete.
  15. * typecheck.c (build_unary_op): Test of `pedantic' was backwards.
  16. * expr.c (STACK_BYTES): Typo in definition.
  17. * typecheck.c (build_binary_op_nodefault): Rename code1 to code0,
  18. and likewise for code2, tt1, tt2.
  19. * expr.c (expand_call): Wrong arg order for warning_with_decl.
  20. Fri Apr 29 08:41:06 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  21. * integrate.c (copy_decl_tree): New arg is depth in recursion.
  22. Always discard the outermost LET_STMT being copied; never discard any
  23. others. This way the copied LET_STMTs correspond to the copied NOTEs.
  24. * varasm.c (decode_rtx_const): For SYMBOL_REF, use string address
  25. not address of the rtx. Library fns have only one copy of the name
  26. but many copies of the SYMBOL_REF.
  27. * expr.c (emit_call_1): New arg OLD_ARGS_SIZE is used to reset
  28. current_args_size.
  29. (emit_library_call, expand_call): Pass new arg; don't restore it here.
  30. * flow.c (life_analysis): Don't mark sp live at end if fn is empty.
  31. * parse.y (parse_or_identifiers_1): Handle `error' in here, not in
  32. callers notype_declarator etc. Also read the closeparen here.
  33. Thu Apr 28 12:43:52 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  34. * expmed.c (expand_shift): In extzv strategy, handle the operand
  35. predicates for operands 0, 1 and 3. (Not needed for 2.)
  36. * vax.md: extzv pattern for SImode op1 must recognize general_operand
  37. since the pattern named "extzv" allows them.
  38. Wed Apr 27 00:52:44 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  39. * expr.c (emit_call_1): New arg NEXT_ARG_REG describes # regs
  40. used for passing args.
  41. (emit_library_call, expand_call): Provide that argument.
  42. * explow.c (round_push): New fn: round arg up to STACK_BOUNDARY.
  43. * expr.c (expand_builtin): Use round_push on size for __builtin_alloca.
  44. * stmt.c (expand_decl): Likewise for variable-size objects.
  45. * expr.c (expand_call): Likewise for args_size.var.
  46. Also use STACK_BOUNDARY to round a constant arg-block size.
  47. Pass emit_call_1 that rounded value.
  48. (emit_library_call): Round arg_size with STACK_BOUNDARY.
  49. * tm-spur.h: Define STACK_BOUNDARY instead of ROUND_CALL_BLOCK_SIZE.
  50. * tm-m68k.h: Define STACK_BOUNDARY as 16.
  51. * expr.c (emit_call_1): Don't change current_args_size.
  52. (emit_library_call, expand_call): Always restore current_args_size
  53. to ambient value, after calling emit_call_1.
  54. * tm-hp9k320.h: Don't define USG here.
  55. * config-hp9k3.h: New file. USG defined here.
  56. * tm-3b1.h: #undef ASM_OUTPUT_ASCII (a defn came from tm-hp9k320.h).
  57. * decl.c (grokdeclarator primarily): Cast all RID_... to (int) before
  58. using them in arithmetic. Placates CC on Sequent.
  59. * emit-rtl.c (emit_jump_insn): Return proper value, for a SEQUENCE.
  60. * emit-rtl.c (emit_call_insn): Handle SEQUENCE like emit_jump_insn.
  61. Tue Apr 26 02:41:26 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu)
  62. * cccp.c (macroexpand): If traditional, don't disable called macro.
  63. (macarg1): Was failing to count backslash-newline inside a string
  64. in a macro arg as part of file's linenumber.
  65. Mon Apr 25 18:46:53 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu)
  66. * jump.c (jump_optimize): Don't do April 20 optimization on first
  67. iteration; let other simpler opts be done before this is considered.
  68. Sun Apr 24 02:45:28 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  69. * tree.c (staticp): a CONSTRUCTOR can be static.
  70. * varasm.c (output_constant_def): Always return memref, not address.
  71. * decl.c (complete_array_type): New fn, make an array type complete
  72. based on an initializer.
  73. (finish_decl): Use complete_array_type.
  74. * parse.y (expr_no_commas): When parsing a constructor,
  75. Use complete_array_type on constructors for incomplete array types.
  76. * typecheck.c (digest_init, store_init_value,process_init_constructor):
  77. It's now TREE_STATIC, not TREE_ADDRESSABLE, that records that all elts
  78. in a CONSTRUCTOR are simple constants.
  79. (digest_init): A CONSTRUCTOR with non-null type is treated as ordinary
  80. expression, not as a braced initializer.
  81. Allow init of an array from an array-valued expr; warn if pedantic.
  82. * expr.c (expand_expr, CONSTRUCTOR case): Put in memory only if static.
  83. Was making an extraneous level of MEM; output_constant_def does it all.
  84. * typecheck.c (build_unary_op): Allow ADDR_EXPR of static CONSTRUCTOR.
  85. (default_conversion): Likewise.
  86. (initializer_constant_valid_p): Constructor is ok if static.
  87. * gcc.c: Change -fnostd... to -nostd...
  88. * cccp.c (main): Likewise.
  89. * Everywhere: Use REG_NOTE_KIND to get the kind of a reg note.
  90. * rtl.c (find_regno_note): New function.
  91. * flow.c (flow_deadp): Deleted; caller uses find_regno_note.
  92. * global-alloc.c (reg_dead_p): Deleted.
  93. (global_conflicts): Use find_regno_note instead of reg_dead_p.
  94. * final.c (final) Use find_reg_note to look for a REG_INC.
  95. * combine.c (insn_has_inc_p): deleted; callers use find_reg_note.
  96. (try_combine): Use find_reg_note whenever looking for a REG_INC.
  97. (regno_dead_p, remove_death): Check the REG_NOTE_KIND before assuming
  98. that the datum in it is a REG.
  99. * reload1.c (reload): Use find_reg_note to find a REG_EQUIV.
  100. * gcc.c: Don't delete .o files if not all compilations succeed.
  101. (record_temp_file): New arg SUCCESS_ONLY--delete file only if succeed.
  102. (delete_temp_files): New arg SUCCESS says compilation succeeded.
  103. (store_arg): Now 3 possibilities for arg TEMPNAMEP; 2 = del on success.
  104. (do_spec_1): For %d, set delete_this_arg to 2.
  105. * decl.c (poplevel): Warn about any still-incomplete type-tags.
  106. Sat Apr 23 02:54:16 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
  107. * expr.c (expand_builtin): For alloca, round arg up to multiple
  108. of PARM_BOUNDARY. Also to convert it to Pmode unless it already is.
  109. * stor-layout.c (layout_union): Bug in 14 April change:
  110. use caller-specified alignment as minimum, not as maximum.
  111. * parse.y (skip_white_space): Avoid infinite loop on unterm. comment.
  112. Fri Apr 22 00:22:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  113. * cccp.c: Text following #else or #endif is just a warning.
  114. (rescan): Digit-case was dropping into the $-case; reorder.
  115. * cccp.c (rescan): Comment start when -traditional was output as
  116. `/*'; should be nothing.
  117. * jump.c (jump_optimize): Fix prev change:
  118. do nothing if range1end == range2end;
  119. don't lose any NOTEs when splicing.
  120. * flow.c (propagate-block): For CALL_INSN, clobber the call-used regs
  121. only after mark_set_regs is done; avoids confusion about lifespan
  122. of function value reg.
  123. * gcc.c: Pass -Wcomment to cpp.
  124. * cccp.c (main, rescan): If -Wcomment, warn if `/*' inside comment.
  125. * decl.c (duplicate_decls): Ignore `inline' decl following definition.
  126. * m68k.md (casesi): Split it up into subroutines, so insns emitted
  127. by the call to memory_address (on 68000) come in the right place.
  128. * combine.c (record_dead_and_set_regs): Notice storing in a SUBREG.
  129. * integrate.c (expand_inline_function): Insn to copy a subroutine's
  130. return-value was being output twice, once incorrectly.
  131. * reload.c (find_equiv_reg): A stack-push insn does not invalidate
  132. an equiv for a goal in memory.
  133. Any other write to memory does invalidate any goal in memory
  134. (PARALLEL case failed to check for this).
  135. * expmed.c (expand_shift): In the extzv clause, force shifted value
  136. out of memory if -fforce-mem.
  137. * print-tree.c (prtypeinfo): Some attributes were missing.
  138. (dump): In ..._TYPE nodes, ignore the TREE_CHAIN field.
  139. * cse.c (note_mem_written): Pushing on stack does not invalidate mem.
  140. * vax.md (extv/andl peephole opt): Made incorrect code if output was
  141. pushed on stack. Added special case code.
  142. (extv, extzv for SImode operand): Require register_operand.
  143. Thu Apr 21 00:24:52 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
  144. * stmt.c (assign_parms): Round current_function_pretend_args_size up.
  145. * integrate.c: `pushlevel' arg was missing.
  146. * dbxout.c (dbxout_type): Undo rest of March 29 change:
  147. When a named type is first seen inside another type, output an xref
  148. and let the real definition come out later.
  149. It is strange that Sun dbx has sometimes appeared to demand
  150. one strategy and sometimes appeared to demand the other.
  151. * typecheck.c (convert_for_assignment): Allow conversion to or from
  152. `const void *', etc., unless pedantic.
  153. * decl.c (get_parm_types): For `foo (void){}', set last_function_parms
  154. to nil so store_parm_decls won't lose.
  155. * combine.c (subst): (plus (plus X N) -N) => X.
  156. * explow.c ({anti_,}adjust_stack): Don't make a copy of
  157. `stack_pointer_rtx'.
  158. * integrate.c (expand_inline_function): Typo testing for the
  159. USE that indicates a CALL_INSN's value is being returned.
  160. * expr.c (expand_builtin, alloca case): Copy arg to reg before
  161. adjusting stack, to avoid invalid insns on some machines.
  162. Wed Apr 20 00:15:14 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
  163. * typecheck.c (build_binary_op_nodefault): When shortening,
  164. get_narrower may make no change because ARGn is already narrow.
  165. In this case, set UNSIGNEPn from ARGn's type.
  166. * typecheck.c: Rename ARG1,ARG2 to ARG0,ARG1, etc. in several fns.
  167. * tm-vax.h: Turn off continuation on DBX output.
  168. * typecheck.c (build_function_call): Don't change __builtin_ffs to an
  169. FFS_EXPR. Note that __builtin_alloca has always made a CALL_EXPR.
  170. * expr.c (expand_builtin): New function expands all CALL_EXPRs that
  171. are really built-in functions.
  172. (preexpand_calls): Do nothing to a CALL_EXPR for a built-in function.
  173. * loop.c (count_loop_regs_set): Don't move a reg that is in a CLOBBER.
  174. * stupid.c (stupid_mark_refs): Was getting hard reg's mode from
  175. the wrong place.
  176. * rtl.c (note_stores): Typo in checking vector elt for SET vs CLOBBER.
  177. * stmt.c (expand_end_bindings): If restoring stack level,
  178. first do pending stack adjust (so it won't be done erroneously after).
  179. (expand_goto): likewise.
  180. * rtl.h: LABEL_NUSES was an rtx. It should be an int.
  181. * stmt.c (expand_label, expand_goto): Delete frobbing with LABEL_NUSES;
  182. the value stored there was the same as the CODE_LABEL rtx.
  183. * jump.c (jump_optimize): Detect if (foo) ...; else { ... break;}
  184. and change to if (! foo) { ... break;} else ...; so can drop out.
  185. (next_label): New fn returns the next label after given insn.
  186. Tue Apr 19 21:30:05 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  187. * flow.c (insn_dead_p): Delete special handling for stack ptr.
  188. (mark_set_regs, mark_used_regs): Likewise.
  189. (life_analysis): Mark stack ptr live at end of fn if necessary.
  190. (propagate_block): Mark stack ptr live leading up to a CALL_INSN.
  191. * jump.c (jump_optimize): #if 0 around stack-adjust-deletion code.
  192. * cse.c (fold_rtx): Change const_arg from an array to 3 separate
  193. scalars for the first three operands.
  194. Handle SIGN_EXTEND and ZERO_EXTEND.
  195. * integrate.c (copy_rtx_and_substitute): If arg is 0, return 0.
  196. (expand_inline_function): Separate vars for old pattern and new insn.
  197. * expr.c (expand_call): Set TREE_ADDRESSABLE if call is not inlined.
  198. Tue Apr 19 02:25:22 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  199. * Version 1.20 released.
  200. * tm-ns32k.h: Define new reg class GEN_OR_FLOAT_REGS
  201. so that GENERAL_REGS and FLOAT_REGS have a union.
  202. * tm-ns32k.h (GO_IF_LEGITIMATE_ADDRESS): Recognize a stack-push.
  203. * ns32k.md: Many constraints must now allow or reject pushes.
  204. Delete the special patterns for pushing.
  205. Mon Apr 18 06:02:39 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
  206. * reload1.c (forget_old_reloads): For a multiword hard reg,
  207. forget old reloads for each word.
  208. * reload.c (find_reloads): Typo in calling push_replacement.
  209. * tm-ns32k.h (HARD_REGNO_MODE_OK): Failed to allow fp regs for SFmode.
  210. Sun Apr 17 01:21:35 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  211. * tm-sequent.h (PRINT_OPERAND): Handle absolute integer memaddress.
  212. * ns32k.md: Add DImode push insns. Add QImode and HImode push insns.
  213. Supply missing statement in movsf.
  214. * dbxout.c (dbxout_type): Don't contin before 1st field of struct.
  215. * dbxout.c (dbx_continue): Use DBX_CONTIN_CHAR instead of backslash.
  216. * loop.c (scan_loop): Ov vax, the "loop-entry jump" can be a return,
  217. in which case perhaps there is no label following it.
  218. Detect phoniness of loop before looking for that label.
  219. * decl.c (init_decl_processing): Builtin fn names start with `__'.
  220. * typecheck.c (shorten_compare): Warn about constant result only in
  221. cases like (char)x < 0x80, where old C compilers made it -0x80.
  222. * vax.md: All jbs/jbc/jlbs/jlbc patters with op0 in SImode
  223. must reject mode-dependent memory addresses.
  224. * recog.c (mode_independent_operand): Test for general operand
  225. that doesn't have a mode-dependent memory address.
  226. * varasm.c (assemble_function): ASM_DECLARE_FUNCTION_NAME, if def,
  227. is now responsible for outputting the function name as a label.
  228. Sat Apr 16 05:02:55 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  229. * cccp.c (do_xifdef): Warn about punctuation or other junk in argument.
  230. Warn about no argument. If pedantic, warn if arg starts with digit.
  231. If traditional, ignore all after first non-idchar and never warn.
  232. Thu Apr 14 01:12:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  233. * integrate.c (expand_inline_function): Typo for addressable parms.
  234. * cse.c (insert_regs): Copying half a DImode into half of another
  235. does not make the two DImode regs equivalent.
  236. * recog.c (general_operand): Was failing to accept symbol_ref:SI
  237. when MODE arg was VOIDmode.
  238. * expr.c (preexpand_calls): For RTL_EXPR, do nothing.
  239. * decl.c (start_enum, build_enumerator): Remember default for next one
  240. as a tree node (so the high-half isn't lost in a negative one).
  241. * stor-layout.c (layout_{record,union}): Pay attn to initial value
  242. of TYPE_ALIGN in computing final alignment.
  243. (layout_union): Round size up to multiple of the alignment.
  244. * decl.c (finish_struct): Don't alter size after type is laid out.
  245. Instead, set TYPE_ALIGN before layout_type.
  246. * reload1.c (choose_reload_targets): Introduce reg_has_output_reload.
  247. If there are two separate reloads (one in and one out)
  248. for the same (hard or pseudo) reg, always set reg_last_reload_reg
  249. based on the output reload.
  250. Wed Apr 13 21:26:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  251. * reload.c (find_reloads_address_1): Always barf if a "constant"
  252. register is autoincremented.
  253. * parse.y (structsp): suspend_momentary before start_enum;
  254. else some nodes made by start_enum might be momentary.
  255. * stmt.c (expand_start_case): New arg is nominal type for comparison
  256. (which is the promoted type of the index expression).
  257. (pushcase): Always convert VALUE to that nominal type
  258. before validating it.
  259. * parse.y (case stmt): Promote each case-value before pushcase.
  260. * typecheck.c (c_expand_start_case): Promote the index-expr
  261. to determine the nominal type, before get_narrower.
  262. Wed Apr 13 12:43:08 1988 Chris Hanson (cph at kleph)
  263. * tm-hp9k320.h: Define ASM_FORMAT_PRIVATE_NAME. HPUX asm forbids
  264. `.' in identifiers, so use `___' (there is some danger in this choice).
  265. Tue Apr 12 23:26:48 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  266. * local-alloc.c (block_alloc): Make 1 extra slot in regs_live_at.
  267. * stmt.c (optimize_bit_field): Function moved from reload1.c.
  268. When need to generate a SIGN_EXTEND or ZERO_EXTEND, make it a separate
  269. insn and use gen_extend_insn to make it.
  270. * optabs.c (gen_extend_insn): New fn, construct body of an insn
  271. to extend Y and store in X.
  272. Mon Apr 11 19:20:57 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
  273. * decl.c (finish_decl): Error if static var has variable size.
  274. * parse.y (yylex): Warn if int const is out of range.
  275. * parse.y: New keyword __alignof.
  276. * typecheck.c (c_alignof): Given a type, return its alignment in bytes.
  277. * typecheck.c (c_sizeof{,_nowarn)): Don't return integer_one_node;
  278. use build_int to make sure we get something with type `sizetype'.
  279. * Support variable-sized structures (containing var-sized arrays).
  280. * stmt.c (assign_parms): Handle parms whose size varies.
  281. Use `memory_address' when constructing memrefs to args;
  282. no need to set `invalid_stack_slot'.
  283. Don't make a REG_EQUIV note for a scalar arg at variable offset.
  284. * stor-layout.c (genop, build_int): No longer `static'.
  285. * stor-layout.c (convert_units): Optimize ceil (ceil(x,2)*2, 4) etc.
  286. * stmt.c (expand_decl): Don't abort if var-sized object has init.
  287. Convert variable size from units of DECL_SIZE_UNIT to units of bytes.
  288. * expr.c (emit_push_insn): Arg ARGS_SO_FAR is now an rtx.
  289. Pay attention to ARGS_ADDR even if machine has push insns.
  290. (expand_call): Handle variable-sized arguments.
  291. If have any such, push entire arg-block in advance.
  292. Record each arg's offset during first loop and don't change args_size
  293. during the actual pushing loop; this way the actual pushing loop
  294. works regardless of arg-order if arg-block was pushed in advance.
  295. (push_block): Copy SIZE to reg unless it's a reg or constant.
  296. * expmed.c (expand_divmod): If converting CEIL_DIV to FLOOR_DIV,
  297. make new pseudo for incremented value, to help cse understand.
  298. Sun Apr 10 00:07:45 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  299. * expr.c (emit_library_call): Two dumb bugs calling emit_call_1.
  300. * dbxout.c (dbxout_symbol): Handle case of (MEM (REG frameptr)).
  301. * cccp.c (skip_if_group): Ignore quote-chars if -traditional.
  302. (rescan): If -traditional, don't output a space for a comment.
  303. (handle_directive): If not -traditional, output a space for a comment.
  304. Sat Apr 9 21:26:51 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  305. * decl.c (get_parm_types): `void' type is error, except as entire list.
  306. * parse.y (parmlist_1): `void,...' is error.
  307. * typecheck.c (pointer_int_sum, pointer_diff):
  308. Use an integer type with at least POINTER_SIZE bits.
  309. * expr.c (expand_expr, ARRAY_REF): Likewise.
  310. * tree.c (type_precision): Prec of a pointer is POINTER_SIZE.
  311. (convert_to_pointer): Directly convert any int w/ width==POINTER_SIZE.
  312. Other int types convert via an int of that width.
  313. (convert_to_integer): Pointers convert via an int of that width.
  314. * decl.c (init_decl_processing): Use INT_TYPE_SIZE, if def,
  315. to set width of `int' and `unsigned int'.
  316. (make_index_type): Give new type the width of a long int.
  317. * tm-m68k.h: Add new -mshort which controls TARGET_SHORT.
  318. * tm-m68k.h: Define INT_TYPE_SIZE depending on TARGET_SHORT.
  319. Fri Apr 8 05:02:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  320. * typecheck.c (require_complete_type): Fix typo in detection of `void'.
  321. (build_function_call): Fix backward test to allow `void' values.
  322. * dbxout.c (dbxout_tags): Output each tag once even if type is defined.
  323. * m68k.md (movstrictqi): Reject addr-reg always, for both operands.
  324. * tm-vax.h (STRUCTURE_SIZE_BOUNDARY): Make this always 8, for BSD.
  325. * tm-ultrix.h: New file, overriding STRUCTURE_SIZE_BOUNDARY.
  326. [This change has been taken out; tm-ultrix.h is now equivalent to
  327. tm-vax.h. I must have been confused when testing PCC.]
  328. * integrate.c (expand_inline_function): Don't let inline_target
  329. be nonzero in BLKmode.
  330. * decl.c (grokdeclarator): Const array parm becomes ptr-to-const.
  331. Thu Apr 7 05:02:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  332. * genoutput.c (bcopy, bzero): Renamed to mybcopy, mybzero
  333. so variation in C library and config.h won't affect the results.
  334. * genrecog.c (bzero): likewise.
  335. * genextract.c (bcopy): Fn deleted; used only in a string constant.
  336. * varasm.c (force_const_mem): Fix typo in arg decl.
  337. * toplev.c (compile_file): init_file with main_input_filename
  338. so dbx output doesn't lack N_SOL symbols.
  339. * cccp.c (rescan) [CPLUSPLUS]: Put out // comments as // comments.
  340. Wed Apr 6 14:06:38 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  341. * expr.c: Delete SLOW_ZERO_EXTEND conditionals added March 3.
  342. Now that enums types can be unsigned, this isn't needed.
  343. * emit-rtl.c (emit_jump_insn): Handle SEQUENCEs.
  344. * genemit.c (gen_expand): Use emit_jump_insn, emit_label, emit_barrier
  345. when the insn rtl requires it.
  346. * m68k.md (subsi3): Prefer to avoid reverse-subtraction alternative.
  347. * stmt.c (expand_end_case): Let CASE_DROPS_THROUGH control what to
  348. emit after the table.
  349. * tm-vax.h: Define CASE_DROPS_THROUGH.
  350. Tue Apr 5 15:47:10 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  351. * genemit.c (gen_exp): Handle vectors within exprs.
  352. * stmt.c (expand_end_case): Pass 5th arg (default_label) to gen_casesi.
  353. * m68k.md: Define casesi insn rather than tablejump insn.
  354. * cccp.c (skip_if_group): For validate_else, pass BP (end of cmd name).
  355. Don't call validate_else if do_else or do_endif will detect error.
  356. * Bug: inline fcns can refer to the return reg with a strict_low_part
  357. which confuses expand_inline_function. Fix is to change return reg
  358. into inline_target *everywhere* except in or right after a call.
  359. * integrate.c (copy_rtx_and_substitute): Delete special case for SET.
  360. Replace return-value hard regs with INLINE_TARGET in all contexts.
  361. (expand_inline_function): special handling for insn after a CALL_INSN
  362. if it copies the function value out.
  363. Allow notes and stack adjust insns to intervene
  364. between the CALL_INSN and the value-copy.
  365. * expr.c (emit_call_1): New name for gen_call_1.
  366. * Bug: ({...}) insns were in wrong place for a subexpression
  367. after a sequence point, as in x ? y : ({...}).
  368. * tree.def: New tree-code RTL_EXPR holds a sequence.
  369. * expr.c (expand_expr): Handle RTL_EXPR by emitting the sequence.
  370. * stmt.c (expand_{start,end}_stmt_expr): Use emit_to_sequence
  371. to make a sequence from everything within the ({...}).
  372. (expand_{start,end,emit}_delayed_expr): Delete these functions.
  373. * parse.y (`for'-statements): Don't call them; nothing special needed.
  374. * parse.y (yylex): Handle syntax L"..." and L'...'
  375. (combine_strings): Handle wide strings being combined.
  376. * typecheck.c (digest_init): Reject wide string as init for char array.
  377. Allow it for an int array, but don't allow a narrow string.
  378. * decl.c (init_decl_processing): New var int_array_type_node.
  379. * parse.y: Define keyword `noalias'.
  380. * parse.h: Define RID_NOALIAS.
  381. * typecheck.c (compparms): Not all parmlists match an empty one;
  382. call `compparms1' to filter them.
  383. * decl.c (groktypename): Remove special case for `void' as parameter.
  384. (get_parm_types): Special case for list of one decl with type void.
  385. * decl.c (build_enumerator): Give enum constants the type `int'.
  386. Variable `current_enum_type' eliminated.
  387. (finish_enum): No need to repeat `fixup_unsigned_type'
  388. since the precision has not changed.
  389. * stor-layout.c (layout_type): Allow enum types to be unsigned.
  390. * emit-rtl.c (unshare_all_rtl): Unshare contents of all reg-notes.
  391. * parse.y (check_newline): filename is optional in #-lines.
  392. Mon Apr 4 14:36:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  393. * typecheck.c (shorten_compare): When data type determines the value,
  394. eval the nonconstant arg anyway if it has side effects.
  395. (build_conditional_expr): When merging `foo *' with `void *',
  396. also allow `const void *'. Result type has merged set of qualifiers.
  397. (qualify_type): Merge qualifiers of two types.
  398. * decl.c (get_parm_types): Store any tags defined in parmlist
  399. into `last_function_parm_types'.
  400. (store_parm_decls): Add those tags into the current binding level.
  401. * parse.y (parmlist, parmlist_or_identifier): Pass 0 to pushlevel;
  402. no binding levels in C should be transparent to tags.
  403. * 3b1 support:
  404. * tm-3b1.h: New file.
  405. * m68k.md: Add HPUX_ASM conditionals for shift-by-24-and-compare.
  406. In one of the dbra patterns, a HPUX_ASM conditional was backwards.
  407. (movhi) [SGS_3B1]: Define the LI... label as in MIT syntax.
  408. (addsi3) [SGS]: Syntax for base-displacement differs from MOTOROLA.
  409. (subsi3) [SGS]: likewise.
  410. (tablejump) [ASM_OUTPUT_CASE_LABEL]: Use 6, not 2, as displacement.
  411. This assumes ASM_OUTPUT_CASE_LABEL on 68k is used for a `swbeg'.
  412. * final.c (final): Use ASM_OUTPUT_CASE_LABEL (if defined) to output
  413. any CODE_LABEL followed by an ADDR_VEC or ADDR_DIFF_VEC.
  414. It has 4 args; 4th is the insn which is the ADDR_VEC or ADDR_DIFF_VEC.
  415. * tm-*.h for 68000 (PRINT_OPERAND_ADDRESS): For unscaled indexing in
  416. fetch from a branch table, use L and LI symbols as in the scaled case.
  417. * cccp.c: If SCCS_DIRECTIVE, define #sccs as no-op.
  418. * integrate.c (output_inline_function): Real start of function
  419. is FIRST_PARM_INSN, not FIRST_FUNCTION_INSN.
  420. * tree.c (build_string): String contents must be saveable (for
  421. inline fcn).
  422. * cse.c (cse_insn): Don't forget to set dest_hash_code when dest
  423. is a stack slot (and so its address is not being optimized).
  424. * emit-rtl.c (restore_reg_data_1): reg_rtx_no must be 1+ largest REGNO.
  425. * m68k.md (non-SImode bit-field insns): Change constraint to "o,d"
  426. so a nonoffsetable memref is handled by reloading its address
  427. but a register can still be handled.
  428. * toplev.c (main): Execute OVERRIDE_OPTIONS, if it's defined.
  429. Sat Apr 2 00:55:21 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  430. * expr.c (convert_move): Handle a SUBREG in direct truncation case.
  431. * cse.c (lookup_for_remove): Don't test machine mode of registers:
  432. Storing in (REG:SI 0) invalidates (REG:DF 0).
  433. * decl.c (pushlevel): New arg, nonzero means this level is for
  434. variables only, not for tags. All calls changed.
  435. (lookup_tag): Even if THIS_LEVEL_ONLY, skip variables-only levels.
  436. (pushtag): Define it in the first non-variables-only level.
  437. * dbxout.c (dbxout_type): Undo Mar 29 change, in the DBX_NO_XREFS case.
  438. So now each struct or union will contain only nameless cross-refs
  439. to any others it uses. The prior change is still in effect when
  440. DBX_NO_XREFS is not defined.
  441. * Implement variable array bounds for parameters.
  442. * decl.c (poplevel): Don't crash if DECL_NAME gives 0.
  443. * typecheck.c (comptypes): A variable array bound matches anything.
  444. * parse.y (parmlist): Call pushlevel, then pushdecl each parm as it
  445. is parsed; then poplevel after using get_parm_types to extract the
  446. results of the parmlist.
  447. * decl.c (get_parm_types): New function; reverse the current decls,
  448. put them in last_function_parms, and return a list of their types.
  449. (grokparms): Arg is now an idlist or a typelist. Do nothing if latter.
  450. (push_parm_decl): New function, like {start,finish}_decl combined
  451. for a parm in a parmlist.
  452. * dbxout.c (dbxout_symbol): Ignore sym if its DECL_RTL is 0.
  453. * symout.c (symout_block_symbols): Ignore sym if type is error_mark.
  454. Fri Apr 1 11:41:21 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  455. * expr.c (prepare_call_address): New function; given two rtx's
  456. for function and context, copy the context to the right hard reg,
  457. put the function address in the right place and return an rtx for it.
  458. (gen_call_1): No longer do those things. Delete args CONTEXT, PROTECT.
  459. (emit_library_call, expand_call): Call `prepare_call_address'.
  460. In between that and `gen_call_1', USE the parm registers.
  461. * tm-hp9k320.h (ASM_OUTPUT_*): Flush uses of output_arith_constant.
  462. * varasm.c (assemble_variable): Use ASM_FORMAT_PRIVATE_NAME
  463. to make the name for a local static variable.
  464. * tm-m68k.h, tm-vax.h, tm-ns32k.h, tm-spur.h:
  465. Define ASM_FORMAT_PRIVATE_NAME. Use `.', not `$', to separate.
  466. * tm-m68k.h, tm-ns32k.h (FIX_FRAME_POINTER_ADDRESS):
  467. To refer to stack ptr, use stack_pointer_rtx, not a copy.
  468. * tree.c (build_real_from_string): Function deleted.
  469. * parse.y (yylex): Use build_real and atof.
  470. * parse.y: Allow string concatenation in arg of asm.
  471. * parse.y (yylex): Always allow `$' in ident, but warn if pedantic.
  472. * tm-vms.h: Delete DOLLARS_IN_IDENTIFIERS (no longer tested).
  473. * cccp.c (rescan, do_define, initialize_random_junk):
  474. Always allow `$', but warn if pedantic.
  475. (main): If -t, set `traditional'.
  476. (collect_expansion): If `traditional', no special handling for quotes
  477. and no whitespace added at end of macro definition.
  478. * expr.c (compare, compare1): Last arg to compare_constants
  479. must be a size in bits.
  480. Thu Mar 31 00:31:52 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  481. * expmed.c (expand_mult, expand_divmod, extract_fixed_bit_field):
  482. Reject function return register as target if may need to read it.
  483. (Reading the return register in an inline function doesn't work.)
  484. * decl.c (start_function): Delete extra arg to `error'.
  485. * emit-rtl.c (last_parm_insn): Delete this unused var.
  486. * make-cc1.com: New version from Kashtan.
  487. * integrate.c (expand_inline_function): Always set up an INLINE_TARGET
  488. for a function that returns a nonvoid nonBLK value.
  489. Since `pushlevel' and `poplevel' are called, must also call
  490. `expand_{start,end}_bindings' to make a pair of NOTEs.
  491. Let them handle USEs at end of scope of formal parameter copies.
  492. * integrate.c (expand_inline_function): In a new-style CALL_INSN,
  493. don't change the result reg into INLINE_TARGET. Also,
  494. generate a move insn after the call only if INLINE_TARGET is non-0.
  495. * integrate.c (copy_decl_tree): Don't crash if DECL_RTL is 0.
  496. * integrate.c (copy_for_inline): Don't treat `return' rtx's specially.
  497. * stmt.c (expand_{start,end,emit}_delayed_expr):
  498. New fns to handle ({...})'s in expressions output not where parsed
  499. (such as third expression in a `for' statement).
  500. * parse.y: Call them to handle third expression in a `for'.
  501. * decl.c (duplicate_decls): Result is `inline' if either OLD or NEW is.
  502. * emit-rtl.c (emit_note): Return the note, or 0 if none.
  503. * stmt.c (expand_start_bindings): Use emit_note's value.
  504. Wed Mar 30 12:48:22 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  505. * obstack.c (_obstack_begin): If ALIGNMENT is 0, use default.
  506. Compute default for the alignment of a `double'.
  507. * obstack.h (obstack_{begin,init}): Pass 0 for the alignment.
  508. * flow.c (mark_used_regs): Discard multiple SUBREGs, STRICT_LOW_PARTs.
  509. ** Call insns that return values are now represented as
  510. (set (reg ...) (call ...)), not just (call ...).
  511. * *.md: Define a "call_value" insn pattern.
  512. * tm-m68k.h, tm-vax.h, tm-ns32k.h: (NOTICE_UPDATE_CC):
  513. These insns invalidate the CC.
  514. * local-alloc.c (combine_regs): #if 0 special treatment of
  515. function value hard reg.
  516. (wipe_dead_reg): If hard reg, call reg_is_born so that the death
  517. will not be ignored.
  518. (reg_is_set): For reg that dies in this insn, mark it dead from now on
  519. and post_mark it live after this insn only.
  520. * combine.c (try_combine): Don't allow a call insn as I1 or I2.
  521. * loop.c (count_loop_regs_set): Move CALL_INSN into a separate
  522. clause. When finding regs that are function addresses, handle
  523. both old and new format call insns.
  524. * flow.c (insn_dead_p): A SET that contains a CALL can't be dead.
  525. (volatile_refs_p): Any CALL constitutes a volatile ref.
  526. (mark_used_regs): If setting a reg from a volatile ref,
  527. treat it like setting a reg whose value will be used.
  528. * expr.c (gen_call_1): New arg VALREG if nonzero means generate
  529. a call_value insn which stores in VALREG.
  530. (expand_call): Use `hard_function_value' to make the VALREG arg
  531. unless expression has type `void'.
  532. * expr.c (emit_library_call): New 2nd arg OUTMODE is mode of result.
  533. (So can give gen_call_1 the proper value-register.)
  534. All callers (here and optabs.c) pass this arg.
  535. * cse.c (canon_hash): Consider all CALL rtx's volatile.
  536. ** end of change in representation of call insns.
  537. * stmt.c (expand_asm_operands): Replace complex lvalues with
  538. SAVE_EXPRs here
  539. * typecheck.c (c_expand_asm_operands): rather than here.
  540. * typecheck.c (pointer_diff): Fix typo preventing use of FLOOR_DIV_EXPR
  541. when dividing by power of 2.
  542. (build_c_cast): Flush unused locals.
  543. (store_init_value): likewise.
  544. (process_init_constructor): Delete unused 4th arg `for_static'.
  545. * toplev.c (fatal_io_error): Arg to fprintf was missing.
  546. * tm-m68k.h (LEGITIMIZE_ADDRESS): Flush extra arg to `emit_move_insn'.
  547. * decl.c: Delete some unused local vars.
  548. * stor-layout.c (layout_decl): `packed_size' now unsigned.
  549. Tue Mar 29 14:47:07 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  550. * Version 1.19 released.
  551. * loop.c (may_trap_p): Nonzero if X is a division that might trap.
  552. (scan_loop): If insn might trap, move only if loop always executes it.
  553. * dbxout.c (dbxout_type): Never output a cross-ref for
  554. a type whose definition is known. Sun dbx won't accept them.
  555. Mon Mar 28 12:34:46 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  556. * tm-vms.h (TARGET_DEFAULT): Default is PCC alignment.
  557. The VMS compile driver controls the real default.
  558. * typecheck.c (c_expand_return): Don't ignore return value
  559. when its type is void.
  560. * final.c (final): Forget the condition codes after an `asm'.
  561. * typecheck.c (build_binary_op_nodefault): Warn about ptr < 0
  562. even if not pedantic, but not if traditional.
  563. * typecheck.c (convert_for_assignment): Don't warn about
  564. pointers volatile * vs nonvolatile * if -fvolatile specified.
  565. * decl.c (store_parm_decls): Among the old-style parm decls
  566. there can legitiately be other decls! For example, if a parm
  567. is declared `enum {foo, bar} x;', there are decls for `foo' and `bar'.
  568. Don't let anything but a PARM_DECL match a parm name;
  569. pass all the other decls through into the lexical context.
  570. * jump.c (jump_optimize): When deleting stack adjusts before a
  571. jump-to-return, don't be fooled by intervening NOTEs.
  572. * tm-sequent.h (PRINT_OPERAND): Output (MEM (MEM (REG))) properly.
  573. * output-ns32k.c (print_operand_address): Output (MEM (REG))
  574. properly; output stack-pointer as `tos'.
  575. * flow.c (find_use_as_address): Reject uses within operand 0
  576. of a ZERO_EXTRACT or SIGN_EXTRACT reference. It's hard to reload
  577. an autoincrement inside these because they can refer to multiple bytes.
  578. * reload.c (find_reloads): `o' in constraint means any memref
  579. (except auto-increment) is acceptable with reloading.
  580. Braino: Clear BADOP, not BAD.
  581. * reload.c (push_reloads): Use rtx_equal_p (via macro MATCHES)
  582. when considering reuse of an old reload. Otherwise equal values
  583. may get reloaded into different registers, and two MEMs that
  584. originally matched may fail to match once reloaded.
  585. * m68k.md (sign_extract and zero_extract insns):
  586. If operand 0 is QI or HImode, don't allow register--only `o'
  587. (except in some bftst patterns where bitpos is < 8).
  588. And change `m' to `o' in all these patterns.
  589. Sun Mar 27 15:32:54 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  590. * expr.c (expand_expr, case CONSTRUCTOR):
  591. Not all aggregates are BLKmode; use the type's mode.
  592. * gcc.c: Pass -y* to ld.
  593. * cse.c (struct hash): New member `equivalence_only'.
  594. (insert): Initialize it.
  595. (cse_insn): Set it to 1 when src_eqv is inserted.
  596. When finding cheapest equivalent of something,
  597. skip elts that are marked with `equivalence_only'.
  598. * decl.c (duplicate_decls): Don't call `layout_type'
  599. if the type is `error_mark_node'.
  600. * decl.c (implicitly_declare): If decl will be file-scope,
  601. make sure it's a permanent node, and its associated data too.
  602. Sat Mar 26 15:48:50 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  603. * flow.c (insn_dead_p, mark_used_regs): Storing a reg via a
  604. ZERO_EXTRACT or SIGN_EXTRACT is dead if the reg isn't needed afterward.
  605. * stmt.c (expand_start_function): Set current_function_name
  606. to the name of this function.
  607. * tm-vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Use current_function_name.
  608. * expr.c (expand_increment): A SUBREG in op0 can also a be a copy.
  609. * ns32k.md: Correct range of args for `adjspb' insn.
  610. Use `adjspw' when appropriate.
  611. New pattern for `lprd' insn.
  612. Change some `const_int' predicates to GET_CODE tests.
  613. * expr.c (expand_call): Eval function before copying args to hard regs.
  614. * tree.c (make_node, copy_node): Don't get length of a REAL_CST
  615. from tree_code_length.
  616. * expmed.c (extract_fixed_bit_field): In memory-word case, abort
  617. if tm.h parms say word could fail to be well-aligned.
  618. * tm-ns32k.h: Define STRUCTURE_SIZE_BOUNDARY so they will be aligned.
  619. * tm-vax.h: Define STRUCTURE_SIZE_BOUNDARY since Unix CC seems to.
  620. * tm-vms.h (CPP_PREDEFINES): Predefine __GNU__ and __GNUC__.
  621. Fri Mar 25 13:23:27 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  622. * gcc.c (main): Handle SIGHUP, SIGTERM.
  623. * expmed.c (expand_bit_and): Don't clobber OP1 when trying andcb.
  624. Thu Mar 24 21:59:09 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  625. * stmt.c (assign_parms): Get size of BLKmode local from the type,
  626. not the mode.
  627. (expand_function_start): Init frame_offset before calling assign_parms.
  628. Wed Mar 23 23:50:37 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  629. * expr.c (emit_push_insn): When making a move insn,
  630. go via emit_move_insn; else fails to put constants into memory.
  631. Tue Mar 22 15:45:10 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  632. * expr.c (expand_increment): Flush special case for register_operand;
  633. actually call the predicate whatever it is.
  634. * genemit.c (gen_expand): Make `operands' a local variable,
  635. not a global static one, in the `gen_...' function.
  636. Avoids lossage when one `gen_...' fcn calls another indirectly.
  637. * genoutput.c (output_epilogue): Don't give printf a null string.
  638. Mon Mar 21 15:41:42 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  639. * expmed.c (store_bit_field) [HAVE_insv]:
  640. Force VALUE1, not VALUE, into a register.
  641. * expmed.c (store_fixed_bit_field): Width of mask for clearing
  642. the bit-field depends on mode of OP0.
  643. * ns32k.md (branch and store-flag insns):
  644. Test cc_prev_status, not cc_status.
  645. * expmed.c (extract_bit_field): Delete unused var `omode'.
  646. * dbxout.c (dbxout_type, dbxout_tag): Use the main variant
  647. of the specified type.
  648. * reload.c (find_reloads): When an alternative succeeds without reload,
  649. initialize goal_alternative_matches from this_alternative_matches.
  650. Sun Mar 20 17:58:00 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  651. * tm-sun*.h: Don't predefine `m68k'; Sun's compiler does not.
  652. Fri Mar 18 13:48:29 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  653. * reload.c (find_reloads): Set up goal_alternative_matches
  654. *after* the label `finish'.
  655. * stmt.c (assign_parms): GET_MODE_SIZE needs a mode, not an rtx.
  656. * recog.c (constrain_operands): Set global var `which_alternative'
  657. to indicate which of the alternatives this insn matches.
  658. * typecheck.c (commontype): long int vs unsigned int
  659. gives long unsigned, if long and int are the same width.
  660. Thu Mar 17 15:39:45 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  661. * emit-rtl.c, tree.c: include local version of varargs.h.
  662. * decl.c (start_function): Clear TREE_EXTERNAL and set TREE_STATIC
  663. here rather than in finish_function. Affects the case of
  664. `extern foo (); static foo (a) {...}'
  665. * gcc.c: Handle -fnostdinc and -fnostdlib switches in specs.
  666. * cccp.c (main): Handle -fnostdinc: don't put default dirs
  667. on the chain to be searched.
  668. * cccp.c (error, warning, error_with_line): No longer print
  669. charpos within file; lineno is enough.
  670. Wed Mar 16 16:56:36 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  671. * expmed.c (expand_inc, expand_dec): Handy new subroutines
  672. to generate x+=y or x-=y, given x and y as rtl.
  673. * expmed.c (expand_divmod): Use them instead of gen_{add2,sub2}_insn.
  674. * expr.c (emit_move_insn): Return the move insn emitted.
  675. Eliminate the code here to move a DImode or DFmode by pieces.
  676. * emit-rtl.c (emit_insn): Return-value was wrong if emit_to_sequence;
  677. cannot use `last_insn' in that case.
  678. * regclass.c, stupid.c, local-alloc.c, global-alloc.c:
  679. Some vars of type HARD_REG_SET should be `register' only
  680. if HARD_REG_SET is a macro (ie a scalar).
  681. * expr.c (move_block_from_reg): New function, converse of
  682. move_block_from_reg.
  683. * stmt.c (assign_parms): If a BLKmode arrives in regs,
  684. copy to a stack slot using move_block_from_reg.
  685. Tue Mar 15 17:33:22 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  686. * regclass.c (regclass): Don't convert to two-operand insns
  687. unless optimizing.
  688. * varasm.c (decode_rtx_const, const_hash_rtx): Fix typos.
  689. * stmt.c (fixup_var_1): Don't alter insn moving VAR to or from
  690. a subreg of a register.
  691. * cse.c (fold_rtx): Don't fold if result is not LEGITIMATE_CONSTANT_P.
  692. Construct all results in new local variable NEW; then test that
  693. and decide whether to return it or the original rtx.
  694. * cse.c (cse_insn): When SRC_EQV is non-0 but set[0] has been
  695. cleared, don't insert SRC_EQV in hash table.
  696. * All insns emitted by a define_expand become part of the SEQUENCE:
  697. * SEQUENCE now contains a vector of insns, not of bodies.
  698. * insn-emit.c (add_insn): If `emit_to_sequence' nonzero, add the
  699. insn to a separate chain, `sequence_first_insn'.
  700. (gen_sequence): Take everything on that chain and make a SEQUENCE.
  701. (emit_insn): Handle SEQUENCE differently since elts are now insns.
  702. (emit_insn_{before,after}): Handle SEQUENCE.
  703. (classify_insn): #if 0.
  704. * genemit.c (gen_expand): emit all the insns, then call gen_sequence
  705. to make the return value.
  706. Define two macros DONE and FAIL for use in a DEFINE_EXPAND:
  707. Use DONE to inhibit emission of the pattern of the DEFINE_EXPAND.
  708. Use FAIL to make the gen_... function return 0.
  709. Mon Mar 14 12:47:28 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  710. * expr.c (expand_expr): Extend the don't-sign-extend-enums hack
  711. to COMPONENT_REF. (See 3 March.)
  712. * tm-*.h (FUNCTION_ARG, etc.) New argument NAMED
  713. is nonzero for a named arg, zero for an anonymous extra arg.
  714. * expr.c (expand_call): Pass 1 for NAMED if appropriate.
  715. * expr.c (emit_library_call): Pass 1 for NAMED.
  716. * stmt.c (assign_parms): Pass 1 for NAMED.
  717. * cccp.c: Test __GNUC__, not __GNU__.
  718. * integrate.c (copy_and_substitute_rtx):
  719. Replacing a MEM parm with the parm value, convert mode if mismatch.
  720. Always use VOIDmode when generating SETs.
  721. Take heed of FIRST_PARM_OFFSET and distinguish arg-pointer
  722. from frame-pointer when they are different.
  723. (expand_inline_function): Handle (RETURN) insns, by creating a
  724. return_label which is output after the integrated code.
  725. * parse.y (yylex): Condition for ignoring `inline' was backwards.
  726. * flow.c (mark_used_regs): Ignore STRICT_LOW_PART, so that
  727. an insn that sets STRICT_LOW_PART (and its source values) may be dead.
  728. (propagate_block): Always pass 1 for strict_low_ok to insn_dead_p.
  729. * optabs.c (emit_unop_insn): Don't make a REG_RETVAL note.
  730. Change above deletes dead STRICT_LOW_PART stores without one.
  731. * optabs.c (expand_binop, expand_unop): If the library address
  732. is to be put in a pseudoreg, do it here, and make the REG_RETVAL
  733. note point after that.
  734. * expr.c (emit_library_call): Never defer stack-pops.
  735. Deletion of the library call by flow.c loses if they are deferred.
  736. * cse.c (cse_insn): Handling of 68k's zero-extend was broken:
  737. it made the actual source and the REG_EQUAL source equivalent.
  738. * If dest is a STRICT_LOW_PART, ignore the actual source and use
  739. the REG_EQUAL source in its place. src_eqv's mode may be different
  740. from src's, so use proper mode in lookups or inserts for src_eqv.
  741. * Don't forget to set src_eqv_elt if src_eqv already has an elt.
  742. * On use_related_value for src_eqv, use src_eqv_elt.
  743. * toplev.c (main_input_filename): Name of file mentioned in first
  744. #-line in the input.
  745. (compile_file): Pass it to dbxout_init as 2nd arg.
  746. * dbxout.c (dbxout_init): Use 2nd arg to make the N_SO symbol.
  747. * parse.y (check_newline): Store main_input_filename.
  748. * expr.c (move_block_to_reg): New function, copies a MEM:BLK
  749. to consecutive registers.
  750. (use_regs): New function to emit a USE for each reg in a series.
  751. (expand_call): Use the two new functions when a precomputed BLKmode
  752. arg is passed entirely in regs.
  753. (emit_push_insn): Use move_block_to_reg when PARTIAL > 0.
  754. Also, don't subtract USED from SIZE twice.
  755. Use plus_constant to add ARGS_SO_FAR so can use indexing on stack ptr.
  756. * varasm.c (assemble_integer_zero): Use rtx 0, not tree 0,
  757. to go with prev change in ASM_OUTPUT_INT.
  758. Sun Mar 13 01:16:17 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  759. * varasm.c (const_hash, compare_constant_1, record_constant_1):
  760. Handle NOP_EXPR and CONVERT_EXPR in constant expressions.
  761. * optabs.c (expand_binop, expand_unop): When widening operands,
  762. those with VOIDmode (like CONST_INT) may be left alone.
  763. Sat Mar 12 01:09:24 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  764. * varasm.c (assemble_variable): When making a .comm or .lcomm,
  765. round size up to multiple of BIGGEST_ALIGNMENT.
  766. * obstack.c (_obstack_newchunk): Eliminate fencepost causing copying
  767. to access the word past the end of the existing object.
  768. * tm-vax.h, tm-ns32k.h: Define {INIT_,}CUMULATIVE_ARGS
  769. and upgrade FUNCTION_ARGS for new calling convention.
  770. * gcc.c: If -O, define __OPTIMIZE__.
  771. (do_spec_1): %c now scans SIGNED_CHAR_SPEC: define __CHAR_UNSIGNED__
  772. when appropriate whether or not it is the default.
  773. Fri Mar 11 16:49:25 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  774. * parse.y: Define YYDEBUG.
  775. * rtl.c (rtx_unstable_p): New function, same as old rtx_varies_p.
  776. * explow.c (stabilize): Use rtx_unstable_p.
  777. * rtl.c (rtx_varies_p): Ignore `unchanging' (undoing previous change
  778. in this function) because `unchanging' doesn't enable cse to compare
  779. the value with any particular constant value.
  780. * rtl.c (insn_store_addr_varies_p): Delete, since not used.
  781. * hard-reg-set.h (COPY_HARD_REG_SET, etc.) non-scalar case:
  782. Rename and rearrange temp variables to avoid name conflicts with args.
  783. * regclass.c (reg_class_record): Don't smash class to GENERAL_REGS
  784. and don't exit prematurely, when `r' or `g' is seen. Must merge
  785. GENERAL_REGS with previously determined desired class.
  786. * expr.c (expand_call) [no PUSH_ROUNDING]: When pushing the arg
  787. block, try to reuse some of the pending_stack_adjust.
  788. * cse.c: qty_const can now hold values (PLUS frame_pointer integer).
  789. Effect is that storing into a structure doesn't invalidate
  790. mem refs to scalar stack variables via addresses in registers.
  791. (insert): Load such values into qty_const, like true constants.
  792. (fold_rtx): Ignore qty_const if it isn't really a constant.
  793. * expr.c (expand_expr) VAR_DECL: Copy DECL_RTL before calling
  794. change_address, so it isn't permanently clobbered.
  795. * stmt.c (fixup_var_refs_1): Make sure the stack slot address
  796. is valid by calling fixup_stack_1 each time it is substituted.
  797. * stmt.c (fixup_stack_1): Return the altered rtx.
  798. If it's a MEM in the stack, return a copy of it.
  799. * stmt.c (fixup_stack_slots): #if 0.
  800. * stmt.c (expand_finish_function): Don't call fixup_stack_slots
  801. because fixup_stack_1 is called elsewhere when necessary.
  802. * reload.c (find_reloads_address): New arg is location of the MEM
  803. whose address is being reloaded. So we copy the MEM if it
  804. is one that can be shared. New arg 0 means no need to copy the MEM.
  805. All callers pass the new arg.
  806. * stmt.c (assign_parms): Determine parm stack-size from
  807. the DECL_ARG_TYPE, not from the TREE_TYPE.
  808. Else loses when parm is declared `float' but passed as `double'.
  809. * emit-rtl.c (make_safe_from): Constants are already safe.
  810. Use proper machine mode for temp reg when needed.
  811. Thu Mar 10 14:35:14 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  812. * expr.c (emit_push_insn): Don't pass wrong type to plus_constant
  813. (case where there is no PUSH_ROUNDING).
  814. * expr.c (expand_call): Round partial[i] down to multiple of
  815. PARM_BOUNDARY before subtracting it from arg size on stack.
  816. Compute these sizes just once and keep them in vector `arg_size'.
  817. * expr.c (emit_push_insn): Handle `partial' uniformly, in accord
  818. with this new convention for how it affects the stack size.
  819. * stmt.c (assign_parms): Round NREGS down to PARM_BOUNDARY likewise.
  820. * obstack.h (obstack_free macro) [Not __GNUC__ but __STDC__]:
  821. Don't cast result of (obstack_free) to (int); just ignore it.
  822. * reload.c (find_reloads): Initialize operand_reloadnum.
  823. * optabs.c (emit_unop_insn): New argument CODE, used to make
  824. a REG_EQUAL note from operand OP0 if more than one insn results.
  825. Also a REG_RETVAL note.
  826. * expr.c (convert_move): Pass CODE arg to emit_unop_insn.
  827. * flow.c (propagate_block): Use insn_dead_p to decide whether
  828. to handle a REG_RETVAL note by skipping some insns.
  829. Always pass 1 for STRICT_LOW_OK for an insn that has a REG_RETVAL note.
  830. Handle case where REG_RETVAL points at an insn that's deleted.
  831. * flow.c (insn_dead_p): New operand STRICT_LOW_OK says an insn
  832. that sets STRICT_LOW_PART may be considered dead.
  833. * expr.c (expand_expr): Once again canonicalize X-C to X+(-C).
  834. Change on March 1 made it stop doing this.
  835. Wed Mar 9 01:25:35 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  836. * loop.c (move_movables): Don't always mark the moved reg
  837. as equivalent to a constant value: not if it is being cleared
  838. to zero-extend something or if it is used outside the loop.
  839. * expr.c (move_by_pieces_1): Finish last change.
  840. * stmt.c (assign_parms): Update stack_args_size properly.
  841. Figure FIRST_PARM_OFFSET when making the stack mem refs.
  842. * cse.c (insert): Build the related_value lists in the opposite order
  843. so that the oldest element in the chain is the one that follows
  844. the most basic element.
  845. * expr.c (expand_expr): COMPONENT_REF case: criterion for
  846. converting the the result is if MODE1 (its mode of arrival) isn't
  847. a mode we want.
  848. * toplev.c (rest_of_compilation): Fix typo setting TREE_ASM_WRITTEN.
  849. Tue Mar 8 13:18:37 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  850. * cse'ing of library calls.
  851. * expr.h: type `optab' is now a ptr to a struct.
  852. The old contents are now the `handlers' element.
  853. The `code' element gives the RTL code for the kind of expression
  854. this optab makes (PLUS for add_optab, etc.)
  855. Every var formerly declared `struct optab *' is now just `optab'.
  856. * optabs.c (init_optab, init_optabs): New function to init an optab
  857. and set its `code'. Used in init_optabs.
  858. * optabs.c (expand_binop, expand_unop): Use the `code' field
  859. to add a REG_EQUAL note to the insn that copies a libcall's
  860. value into a pseudo. Also a REG_RETVAL note pointing at the
  861. first insn for setting up args for the call.
  862. * cse.c (cse_insn): Process REG_EQUIV and REG_EQUAL datum almost like
  863. another set-src; put the actual src into the equivalence class of that.
  864. * flow.c (propagate_block): If a dead insn has a REG_RETVAL reg-note,
  865. either ignore or delete all the insns back to the insn the REG_ARG
  866. note points to.
  867. * local-alloc.c (block_alloc): Don't refrain from allocating a
  868. "constant" register if the constant value isn't ok for an immediate op.
  869. * dbxout.c (CONTIN): If DBX_CONTIN_LENGTH is <= 0, do nothing.
  870. * cccp.c: Extra default include dirs for C++.
  871. * cccp.c (main): For -M, strip dirs from object file name.
  872. * rtl.c (find_reg_note): New function.
  873. * expmed.c (store_fixed_bit_field): Don't AND with VALUE
  874. if VALUE's original mode had no more bits than we want.
  875. * expr.c (emit_library_call): Use varargs.
  876. * integrate.c (copy_and_substitute_rtx): Recognize arg_pointer_rtx
  877. and translate it just like frame_pointer_rtx.
  878. Mon Mar 7 00:48:33 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  879. * expmed.c (extract_fixed_bit_field):
  880. Shift counts were wrong for narrow MODE in signed case.
  881. Do the sign-extending shifts in the narrowest mode possible.
  882. Reduce big-endian case to little-endian case.
  883. Delete SLOW_ZERO_EXTEND conditional.
  884. * Implement constants in memory for RISC machines
  885. with limited abilities for immediate args and constant addresses.
  886. * genoutput.c (output_epilogue): Empty predicate-name
  887. is output as 0 in insn_operand_predicate.
  888. * expr.c (expand_expr): Change 4th arg to an `enum expand_modifier'
  889. Value EXPAND_SUM corresponds to old nonzero 4th arg.
  890. Value EXPAND_CONST_ADDRESS means ok to return an invalid MEM
  891. whose address is a constant. Changes for this case in ADDR_EXPR,
  892. COMPONENT_REF and ..._DECL.
  893. * varasm.c (output_arith_constant): Function deleted.
  894. * tm-*.h: (ASM_OUTPUT_{INT,SHORT,CHAR}): 2nd arg is now an RTX
  895. and output it using `output_addr_const'.
  896. * varasm.c (output_constant): Change uses of those macros.
  897. * varasm.c (init_const_rtx_hash_table): Initialize constant pool
  898. for a new function. Called from `expand_function_start'.
  899. * varasm.c (force_const_mem): Turn a constant rtx into a MEM rtx
  900. which refers to the constant pool. Other new subroutines too.
  901. (force_const_double_mem): Use force_const_mem to make the MEM.
  902. (immed_real_const): No longer record the REAL_CST node in the rtx.
  903. * explow.c (force_reg): If arg is a constant and not legitimate,
  904. put it in the constant pool with force_const_mem.
  905. Mark the register as equivalent to the constant value.
  906. * expr.c (emit_move_insn): Likewise.
  907. * explow.c (break_out_mem_refs): Use force_reg to put into a reg.
  908. * explow.c (memory_address): Likewise.
  909. * expr.c (expand_expr): ADDR_EXPR case: likewise.
  910. * expr.c (expand_call): Do force_reg on each register-operand
  911. so it will go through a pseudo and can be cse'd.
  912. * recog.c (immediate_operand, nonmemory_operand, general_operand):
  913. For constant operands, use LEGITIMATE_CONSTANT_P to decide value.
  914. * tm-*.h: Define LEGITIMATE_CONSTANT_P.
  915. * reload1.c (reload): Invalid constants can't go in reg_equiv_constant.
  916. Sun Mar 6 22:49:06 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  917. * reload.c (push_reloads): If IN occurs within OUT,
  918. don't reuse an existing input-only reload. Otherwise would lose on
  919. (set (mem (plus R C)) (plus R C1)) if R is available in a spill reg.
  920. * reload1.c (choose_reload_targets): Don't choose an inherited
  921. reload register that's in use for another reload.
  922. Without this, above change doesn't have an effect.
  923. * Implement the `unchanging' flag in MEM and REG rtx's.
  924. Also simplify code with a new subroutine `change_address'.
  925. * emit-rtl.c (change_address): Return new memory ref like an old
  926. one but with specified mode and address.
  927. * expmed.c (extract{,_split,_fixed}_bit_field): Use change_address.
  928. (store{,_split,_fixed}_bit_field): Likewise.
  929. * expr.c (store_expr, expand_expr): Likewise.
  930. * expr.c (move_by_pieces): Args now memrefs, not addresses.
  931. Eliminate the FROM_VOL and TO_VOL args since the memrefs indicate.
  932. Change the structure `struct move_by_pieces' similarly.
  933. (move_by_pieces_1): Same changes; use change_address.
  934. (emit_block_move, emit_push_insn): Calls to move_by_pieces changed.
  935. * integrate.c (copy_rtx_and_substitute): Use change_address;
  936. handle ->unchanging field.
  937. * rtl.c (rtx_varies_p): Regs or memrefs with ->unchanging don't vary.
  938. (copy_rtx): Perserve ->unchanging.
  939. (print_rtx): Print ->unchanging as /u.
  940. * stmt.c (expand_decl): Set ->unchanging on `const' decls.
  941. (fixup_memory_subreg): Use change_address.
  942. (assign_parms): Record in the rtl which parms are volatile or const.
  943. * varasm.c (assemble_variable): Set ->unchanging on `const' decls.
  944. (output_constant_def): Always set ->unchanging for constant refs.
  945. * cse.c (canon_hash): Don't treat a MEM as "in memory"
  946. if its ->unchanging bit is set.
  947. * loop.c (invariant_p): A REG or MEM with ->unchanging is invariant
  948. (for a MEM, the address must be invariant).
  949. Sat Mar 5 13:22:11 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  950. * genconfig.c (walk_insn_part): DO consider MATCH_DUPs
  951. when calculating MAX_RECOG_OPERANDS.
  952. (gen_expand): define_expand is now different from define_insn.
  953. Compute max # SETs or CLOBBERs for any one sub-insn in a define_expand,
  954. instead of summing them all. And don't count the MATCH_DUPs at all.
  955. * genemit.c (max_operand_1): Record largest opno in a MATCH_DUP
  956. separately from largest in a MATCH_OPERAND.
  957. (gen_expand): An operand # with only MATCH_DUPs gets
  958. a local variable in the gen_ function we output.
  959. * integrate.c (save_for_inline): Delete vestige of NOTE_INSN_IS_DECL.
  960. * cse.c (invalidate): Handle subregs.
  961. (cse_ins, invalidate_from_clobbers): Do call `invalidate' for subregs.
  962. (insert_regs): When assigning one subreg from a like one,
  963. make the two regs equivalent.
  964. (cse_insn): Do call insert_regs when dest is a subreg.
  965. * expr.c (expand_call): Precompute all args going via hard regs
  966. since even arithmetic could require a library call.
  967. Fri Mar 4 15:48:17 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  968. * stor-layout.c (layout_parms): Function deleted.
  969. * stmt.c (expand_function_start): Don't call it.
  970. * stmt.c (assign_parms):
  971. stack_args_size counts size of args so far passed on stack.
  972. Use PARM_BOUNDARY when counting it; derive stack offsets from it.
  973. Set current_function_args_size from it.
  974. When an arg is split between regs and stack, make stack space
  975. for the rest of it, and count it.
  976. In a varargs function, push the last arg onto the stack.
  977. When an arg is passed in regs alone, don't remember a stack slot
  978. for it, and if it needs one, use assign_stack_local.
  979. Set DECL_OFFSET to the stack offset, or -1 if parm came in regs.
  980. * expr.c (expand_call): Anonymous args of a varargs function
  981. are always passed on the stack.
  982. * varasm.c (force_const_double_mem): Copy the MEM rtx
  983. if it may need to be smashed by reloading.
  984. * genemit.c (gen_expand): define_expand must have nonempty pattern
  985. even though, due to `return' statements in the code-to-run,
  986. that pattern may not be used to generate code.
  987. Thu Mar 3 17:08:43 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  988. * expr.c (expand_expr): If supposed to sign-extend an enum
  989. which is never negative, zero-extend instead (unless SLOW_ZERO_EXTEND).
  990. (store_expr): Likewise.
  991. * reload.c (find_reloads): 'm' for CONST_DOUBLE: clear BADOP, not BAD.
  992. After force_const_double_mem, do find_reloads_toplev on the MEM.
  993. (find_reloads_address): Handle constant addresses (on machines
  994. that don't allow them).
  995. * final.c (set_current_gdbfile): New fn, get the gdbfile structure
  996. for specified filename.
  997. (output_source_line): Use set_current_gdbfile for the file.
  998. * varasm.c (assemble_variable): Call set_current_gdbfile
  999. for the declaration's source file, so GDB won't ignore the file.
  1000. * varasm.c (force_const_double_mem): Build a new REAL_CST node
  1001. and get its data type from the machine mode of the CONST_DOUBLE.
  1002. (immed_real_const): Don't save the REAL_CST tree node.
  1003. * typecheck.c (get_floating_type): Return float type for given mode.
  1004. * integrate.c (expand_inline_function): Ignore the (USE (REG...))
  1005. (for the return-register) at the end of the inline function.
  1006. After a CALL_INSN, imagine the (SET (REG ...) (REG ...)) for
  1007. the return-register if the return-register isn't explicitly used.
  1008. Wed Mar 2 22:08:49 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1009. * typecheck.c (build_array_ref): Do default_conversion on INDEX.
  1010. Tue Mar 1 15:49:34 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1011. * expr.c (expand_call): Always get a SYMBOL_REF for a fixed function.
  1012. If may be alloca, set may_call_alloca.
  1013. (gen_call_1): Never put a SYMBOL_REF through `memory_address';
  1014. but if function cse is wanted, just copy it to a register.
  1015. If NO_FUNCTION_CSE is defined, never do function cse.
  1016. * expr.c (init_expr): New function, does init_queue and inits
  1017. other things.
  1018. * stmt.c (expand_function_start): Call init_expr, not init_queue.
  1019. * optabs.c (expand_binop): Don't clobber OP0 and OP1
  1020. if may call delete_insns_since later.
  1021. * expr.c (emit_library_call): PUSH_ARGS_REVERSE test was backwards.
  1022. * cse.c (cse_insn): Do canon_reg on the size and position operands
  1023. in a ZERO_EXTEND or SIGN_EXTEND that is a destination.
  1024. * tm-*.h: Define SLOW_BYTE_ACCESS.
  1025. * expmed.c ({store,extract}_fixed_bit_field):
  1026. If SLOW_BYTE_ACCESS, get/set all bit fields from full words.
  1027. * combine.c (subst): Simplify
  1028. (zero_extend:SI (subreg:QI (zero_extract ...))).
  1029. * combine.c (simplify_and_const_int): Simplify
  1030. (and (zero_extract ...) (const_int ...)).
  1031. * local-alloc.c (qty_compare{,_1}): Test of qty_phys_sugg was reversed.
  1032. (combine_regs): If one pseudo gets two suggested hard regs
  1033. (one at birth and one at death), prefer the one from birth
  1034. unless we see at death that it's no good.
  1035. * expr.c (expand_expr): Ignore sum_ok unless mode is Pmode.
  1036. Don't use force_operand unless sum_ok is set.
  1037. Mon Feb 29 19:23:50 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1038. * expr.c (emit_move_insn): When a CONST_DOUBLE needs moving
  1039. by pieces, force it into memory, unless it is dconst0_rtx,
  1040. in which case each piece is const0_rtx.
  1041. (emit_push_insn): Likewise. Also, write code for pushing a
  1042. non-BLK mode which has no "mov" insn defined, but only
  1043. in the case where there is no PUSH_ROUNDING.
  1044. * expr.c (do_tablejump): Put constant term in address last.
  1045. * toplev.c (xrealloc): On error, call fatal instead of abort.
  1046. * optabs.c (emit_cmp_insn): If genning from tst_optab,
  1047. make the operand fit its predicate.
  1048. * optabs.c (expand_float): Don't adjust stack between cmp and jump.
  1049. * optabs.c (expand_binop): Recursive calls can return 0; handle
  1050. that event by deleting any preparatory insns. Also don't smash
  1051. TARGET when this happens.
  1052. * reload.c (push_reload): If IN != *INLOC, set reload_nocombine.
  1053. (combine_reloads): Don't combine an input reload with reload_nocombine.
  1054. * jump.c (jump_optimize): Don't delete stack adjusts unless
  1055. EXIT_IGNORE_STACK is nonzero.
  1056. * expr.c (clear_pending_stack_adjust): Likewise.
  1057. * tm-*.h: When EXIT_IGNORE_STACK is defined, give it `1' as defn.
  1058. * expr.c (expand_call): Initialize args_size.
  1059. Don't push a block if args_size is 0.
  1060. (emit_library_call): Don't include register-args (or reg-parts
  1061. of partial ones) in args_size.
  1062. Don't push a block if args_size is 0.
  1063. * expr.c (expand_expr): For DECLs in memory, check the address
  1064. validity with memory_address_p, and preserve volatility info.
  1065. * stmt.c (expand_function_end): fixup_gotos needs 2 args.
  1066. * jump.c (mark_jump_label): If INSN is 0, don't set its JUMP_LABEL.
  1067. Inside an ADDR_VEC or ADDR_DIFF_VEC, recurse with 0 for INSN.
  1068. * varasm.c (force_const_double_mem): Must zero TREE_CST_RTL
  1069. before output, or nothing will happen.
  1070. Sun Feb 28 01:08:53 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1071. * optabs.c (emit_unop_insn): Generate and emit an insn
  1072. given the insn-code and the two operands (one out, one in).
  1073. Can move the operands into registers when needed for various
  1074. reasons.
  1075. * expr.c (convert_move): Use emit_unop_insn for outputting the
  1076. conversion insns.
  1077. * expr.c (emit_library_call): Use arg's nominal mode to choose
  1078. a reg to pass it in, not actual mode (which can be VOIDmode).
  1079. * insn-emit.c (emit_insn): If arg is empty SEQUENCE, do nothing.
  1080. * genemit.c (gen_expand): Scan the rtl-pattern for predicates
  1081. and machine modes of the operands.
  1082. * m68k.d (dbra patterns): Add HPUX_ASM conditionals.
  1083. * rtl.c (reg_mentioned_p): Use "equal", not "eq", when
  1084. REG isn't a register.
  1085. * reload.c (combine_reloads): Verify not reg_mentioned_p even if
  1086. the input reload's value isn't a register.
  1087. * reload.c (operands_match_p): If successful and 2nd arg
  1088. has a pre-increment that matches a non-increment, return 2.
  1089. * reload1.c (reload): At end, clobber a pseudoreg to a MEM
  1090. even if it's an out-of-range address. It doesn't affect the
  1091. assembler code in this case, but it makes the dbx output correct.
  1092. * recog.c (constrain_operands): When operands_match_p returns 2,
  1093. in the constraint alternative that is ultimately successful,
  1094. copy the output operand from the input that it matched
  1095. so that the assembler insn that is output shows the pre-increment.
  1096. Sat Feb 27 15:16:47 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1097. * combine.c (subst): When optimizing
  1098. (set (zero_extract ...) (and (zero_extract ...) const))
  1099. must arrange to have 1's, not 0's, shifted into low bits of const.
  1100. * decl.c (grokdeclarator): When return-type defaults to int,
  1101. don't warn, just set warn_about_return_type.
  1102. (start_function): See that variable and warn, after starting function.
  1103. * toplev.c (count_error): No longer print newline if not quiet.
  1104. (report_error_function): If not quiet, print a newline if
  1105. printing anything, and don't print the function name.
  1106. * reload1.c (choose_reload_targets):
  1107. Fix the loop that checks for consecutive available spill regs.
  1108. Set `have_groups' nonzero if any reload wants a group.
  1109. In that case, for non-group reloads, prefer a reg that can't be in
  1110. group, or else one that has only one available neighbor.
  1111. * reload1.c (reload): Find separately the max need for each class
  1112. for single registers, groups of registers, and single registers
  1113. not in any group. (The last one counts non-group reloads
  1114. in insns that have at least one group reload.)
  1115. Then make sure enough of each kind are found.
  1116. * expmed.c: Now needs flags.h and recog.h (therefore insn-config.h).
  1117. * expmed.c (store_bit_field):
  1118. Delete redundant protect_from_queue.
  1119. Force VALUE out of memory if -fforce-mem.
  1120. If insv's predicate for VALUE wants a register, put it there.
  1121. * expmed.c (extract_bit_field):
  1122. Force TARGET out of memory if -fforce-mem.
  1123. If insv's predicate for TARGET wants a register, put it there.
  1124. Fri Feb 26 00:12:48 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1125. * reload1.c (eliminate_frame_pointer): Don't check for pushes
  1126. unless PUSH_ROUNDING is defined.
  1127. * reload.c: Don't define REG_OK_FOR_{INDEX,BASE}_P
  1128. (since the tm file is supposed to do it).
  1129. * expr.c (emit_push_insn, expand_call):
  1130. Don't use PUSH_ROUNDING if it's not defined.
  1131. * expr.c (preexpand_calls): Do nothing for constants and decls.
  1132. * expr.c (expand_call, emit_library_call): When PUSH_ROUNDING
  1133. is not defined, use ROUND_CALL_BLOCK_SIZE to round the size
  1134. of the block of arguments.
  1135. * expr.c (expand_call): Don't count register-args in ARGS_SIZE.
  1136. * rtl.h, emit-rtl.c: Create static_chain_incoming_rtx
  1137. and struct_value_incoming_rtx.
  1138. * stmt.c (expand_function_start): Use ..._incoming_rtx where needed.
  1139. * expr.c (expand_call): Use new macros INIT_CUMULATIVE_ARGS,
  1140. CUMULATIVE_ARGS and FUNCTION_ARG_ADVANCE to update data
  1141. on args scanned so far.
  1142. (emit_library_call): Likewise.
  1143. * stmt.c (assign_parms): Likewise.
  1144. * tm-spur.h, tm-m68k.h: Define these macros.
  1145. * rtl.h (NUM_MACHINE_MODES): NUM_MACHINE_MODE renamed.
  1146. * rtl.c, genrecog.c: Change places it is used.
  1147. * cccp.c (output_line_command): line_cmd_buf should be chars, not ints.
  1148. Thu Feb 25 13:33:29 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1149. * genemit.c (gen_expand): Don't lose if pattern is empty-vector.
  1150. * genconfig.c (gen_insn): Don't lose if pattern is empty-vector.
  1151. * expr.c (expand_expr): For COMPONENT_REF, don't convert to tmode
  1152. unless the mode we get is unacceptable.
  1153. * loop.c (scan_loop, move_movables): New field `partial' is 1 for
  1154. zero-extending clr insn; don't make the reg invariant when it's moved.
  1155. * optabs.c (expand_unop, expand_binop, emit_cmp_insn):
  1156. mode-argument to predicates was missing.
  1157. * optabs.c (expand_binop): If gen-function returns 0, this means
  1158. the insn wasn't available.
  1159. * reload.c (find_reloads): Don't make optional reloads for operands
  1160. that match other operands.
  1161. * reload.c (combine_reloads): Reject optional output reload.
  1162. * reload.c (find_equiv_reg): Know that CALL_INSNs clobber memory.
  1163. * typecheck.c (build_binary_op_nodefault):
  1164. If doing a short shift, leave the shift-count as a fullword.
  1165. Tue Feb 23 14:43:46 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1166. * combine.c (subst): Count, in n_occurrences, # times FROM is seen.
  1167. (try_combine): Refuse to combine x=*y++ into z = x*x.
  1168. * loop.c (invariant_p): Frame pointer and arg pointer are invariant.
  1169. (move_movables): Don't forget to set ->done!
  1170. When moving the matching movables, don't forget to set n_times_set.
  1171. * expmed.c (expand_shift): Reorder strategies for logical shift;
  1172. if widening, try all ashift strategies before extzv.
  1173. * typecheck.c (build_binary_op_nodefault):
  1174. Always return error_mark if either operand is one.
  1175. * recog.c (nonmemory_operand): New predicate.
  1176. * optabs.c (expand_unop, expand_binop, emit_cmp_insn):
  1177. Don't treat `register_operand' as special. Apply the predicate
  1178. to the rtx; if the predicate fails, use a register instead.
  1179. Mon Feb 22 22:37:32 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1180. * expr.c (expand_calls): Preexpand all calls in arguments
  1181. that are passed in regs before copying any of them into the regs.
  1182. * expr.c (emit_push_insn): Three more args.
  1183. EXTRA for extra space to leave.
  1184. ARGS_ADDR and ARGS_SO_FAR for using move-insns on machines
  1185. that lack true push insns.
  1186. * expr.c (emit_library_call, expand_call):
  1187. Use the new arguments of `emit_push_insn'.
  1188. * expr.c (PUSH_ARGS_REVERSED): defined if handle args last-to-firs.
  1189. Sun Feb 21 12:17:59 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1190. * toplev.c (rest_of_compilation): Set TREE_ASM_WRITTEN
  1191. when a function is really output as assembler code.
  1192. Don't do inlining of a function that is already made inline;
  1193. instead, output it as assembler code, because this must be
  1194. the second call for that function.
  1195. * decl.c (finish_compilation): Delete it.
  1196. * toplev.c (compile_file): Output pending inline functions at the end
  1197. in the same way tentative-defined variables are output.
  1198. * emit-rtl.c (restore_reg_data): New fn: given chain of insns,
  1199. restore emit-rtl's data on registers from the regs they use.
  1200. * integrate.c (output_inline_function): Use restore_reg_data.
  1201. (fill_regno_reg_rtx_as_needed): Now restore_reg_data_1 in emit-rtl.c.
  1202. * tree.c (build_decl): Function moved from decl.c.
  1203. No longer set attributes of function decls specially.
  1204. * decl.c (implicitly_declare, builtin_function, grokdeclarator):
  1205. Don't expect build_decl to set attributes of FUNCTION_DECL.
  1206. * tree.c (preserve_data): New fn, make all data now on
  1207. maybepermanent_obstack last permanently.
  1208. * cse.c (cse_insn): Remove a STRICT_LOW_PART from the dest rtx
  1209. before putting it in the hash table.
  1210. * symout.c (symout_block): Fix the args to `symout_block_symbols'.
  1211. Sat Feb 20 00:07:52 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1212. Start of changes for inline functions.
  1213. Changes received from Tiemann, then slightly rearranged for simplicity.
  1214. * integrate.c: New file (Tiemann's rtl2.c).
  1215. * integrate.c (function_cannot_integrate_p):
  1216. New fn, only checks whether current fn is safe and good to inline.
  1217. Returns an error message string if not.
  1218. * expr.c (current_args_size): Var made static.
  1219. (store_expr): Fn no longer static.
  1220. (stack_pointer_rtx): Use this var for all refs to the stack pointer.
  1221. (struct_value_rtx, static_chain_rtx): Likewise
  1222. * expr.c (expand_call): Detect calls to integrable functions
  1223. and integrate them.
  1224. **If fn is not named "alloca" then assume it is not `alloca'. **
  1225. * emit-rtl.c (max_label_num): New fn, returns number for next label.
  1226. (get_first_label_num): New fn, returns first label of current fn.
  1227. (init_emit): Save first label number of this fn.
  1228. * emit-rtl.c (gen_inline_header_rtx): New fn, make an INLINE_HEADER.
  1229. * emit-rtl.c (emit_declaration): New fn to emit new kind of NOTE.
  1230. * emit-rtl.c (init_emit_once): New fn.
  1231. Move inits of unique rtl objects here, from init_emit.
  1232. * decl.c (finish_compilation): New fn to compile separately
  1233. any nonglobal inline functions that need to be addressable.
  1234. * decl.c (grokdeclarator): Handle `inline' kwd among the declspecs.
  1235. Set TREE_INLINE if it's safe.
  1236. * decl.c (finish_function): If fn was inlined, don't clear
  1237. the DECL_ARGUMENTS or DECL_RESULT or DECL_INITIAL.
  1238. * gen*.c: Provide rtl_obstack, not current_obstack.
  1239. * rtl.c (rtl_obstack): Variable: ptr to obstack to use for making rtl.
  1240. * rtl.c (rtx_alloc, rtvec_alloc): Use that obstack.
  1241. * rtl.c (copy_rtx): Copy the `integrated' flag.
  1242. * rtl.c (print_rtx): Print that flag as `/i'.
  1243. * rtl.def: New rtx code INLINE_HEADER.
  1244. * rtl.h (struct rtx_def): Add `integrated' field.
  1245. * rtl.h: Define macros for fields in an inline_header rtx.
  1246. * stmt.c (max_parm_reg_num, get_first_function_insn):
  1247. New fns, return info on parm regs and the insns that init them.
  1248. * stmt.c (expand_decl): Simplify with new local `type'.
  1249. * stmt.c (stack_pointer_rtx): Replace all refs to stack pointer
  1250. with this shared rtx.
  1251. * stmt.c (struct_value_rtx): Likewise.
  1252. * stmt.c (expand_start_function): Call init_pending_stack_adjust
  1253. instead of clear_pending_stack_adjust.
  1254. If not using a return-label, set `return_label' to 0.
  1255. * stmt.c (expand_null_return, expand_end_function):
  1256. Call clear_pending_stack_adjust unconditionally.
  1257. * expr.c (clear_pending_stack_adjust): Move the conditionals here.
  1258. For now, this fn is a no-op, since it's not safe in an inline fn
  1259. and the stack adjusts are deleted by jump.c in if optimizing.
  1260. * expr.c (init_pending_stack_adjust): New fn.
  1261. Fri Feb 19 14:30:13 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1262. * toplev.c (main): Decode -finline-functions, -fkeep-inline-functions.
  1263. * toplev.c (rest_of_compilation):
  1264. At start, save the rtl if function should be inline.
  1265. For inline function, if we don't yet know whether it should be
  1266. compiled on its own, don't do so.
  1267. * toplev.c (compile_file): Clear, and later print, `integration_time'.
  1268. Call `init_emit_rtl' when starting.
  1269. Call `finish_compilation' at the end.
  1270. [Add an extra arg to the error and warning functions?]
  1271. * tree.c ({push,pop,clear}_momentary):
  1272. Change momentary_stack from a char ** to a struct momentary_level *.
  1273. * tree.c (build_pointer_type): Put temporary type in `saveable_obstack'
  1274. * tree.c (build_type_variant): Likewise.
  1275. * tree.c (make_node): Likewise. Also put decls and LET_STMTs there.
  1276. * tree.c (type_hash_canon): Free a temporary type in `saveable_obstack'
  1277. * tree.c (perm_tree_cons): Like `tree_cons' but on perm. obstack.
  1278. * tree.c (init_tree, {{end_,}temporary,permanent}_allocation):
  1279. Handle `maybepermanent_obstack' and `saveable_obstack' and
  1280. `rtl_obstack'.
  1281. * tree.h (TREE_INLINE): New attribute macro.
  1282. * tree.h (DECL_SAVED_INSNS, DECL_FRAME_SIZE):
  1283. New components in a FUNCTION_DECL.
  1284. Delete the `unused` slot in a `struct tree_decl'.
  1285. * typecheck.c (mark_addressable): Set TREE_ADDRESSABLE
  1286. even in FUNCTION_DECLs.
  1287. * typecheck.c (build_function_call):
  1288. If function is a FUNCTION_DECL, avoid setting TREE_ADDRESSABLE
  1289. when taking its address.
  1290. * parse.h: Define RID_INLINE.
  1291. * parse.y: Define keyword `inline'; set up ridpointers for it.
  1292. (yylex): Don't recognize `inline' of -fno-asm or -ftraditional.
  1293. * flags.h: New vars flag_inline_functions
  1294. and flag_keep_inline_functions.
  1295. End of changes for inline functions.
  1296. * tree.c (convert): If EXPR's type is an error_mark, return error_mark.
  1297. * Makefile (install): Don't strip the executables.
  1298. * jump.c (delete_insn): Deleting a label's target
  1299. can delete either NEXT and PREV! So must search for a
  1300. following nondeleted insn to return.
  1301. * typecheck.c (build_function_call): Typo in validating
  1302. data type of function.
  1303. * genoutput.c (gen_expand): Must create a `struct data' even
  1304. for a define_expand, so we can output the proper insn_gen_function
  1305. and leave zeros in the other tables.
  1306. * loop.c (scan_loop): Replace the code for handling zero-extends
  1307. with unconditional code that checks for a pair of insns.
  1308. * m68k.md: Do zero-extend using define_expand to generate
  1309. a pair of insns, to set all to zero and then copy the low part.
  1310. Thu Feb 18 15:54:00 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1311. * emit-rtl.c (emit_insn): If arg is a SEQUENCE, emit several insns.
  1312. * emit-rtl.c (classify_insn): Given an RTX, return the rtx-code for
  1313. an insn containing it: CODE_LABEL, INSN, JUMP_INSN or CALL_INSN.
  1314. * rtl.def: New RTX types DEFINE_EXPAND and SEQUENCE.
  1315. * gen*.c: Handle DEFINE_EXPAND. Only genemit.c does real work.
  1316. * make.com, make-cc1.com, make-cccp.com: New, VMS command files.
  1317. * tm-vms.h: New file, used as tm.h to generate VMS code.
  1318. * tm-vax.h (FUNCTION_PROLOGUE): Turn off no bits in the mask;
  1319. let call_used_registers alone control this.
  1320. Call MAYBE_VMS_FUNCTION_PROLOGUE, and define that as no-op.
  1321. * tm-vax.h (TARGET_VAXC_ALIGNMENT): New target-flag bit.
  1322. BIGGEST_ALIGNMENT, EMPTY_FIELD_BOUNDARY and POINTER_BOUNDARY use it.
  1323. * varasm.c (assemble_function): Use ASM_DECLARE_FUNCTION_NAME
  1324. if it is defined.
  1325. * varasm.c (assemble_variable): On an external,
  1326. use ASM_OUTPUT_EXTERNAL if defined. Default is do nothing, as before.
  1327. * toplev.c:
  1328. Use FATAL_EXIT_CODE and SUCCESS_EXIT_CODE.
  1329. Don't include time.h and resource.h on VMS.
  1330. (main) Define __VERSION__ if not already defined.
  1331. Conditionalize setrlimit on RLIMIT_STACK.
  1332. Test __GNUC__, not __GNU__.
  1333. Don't do `ps v' on VMS.
  1334. (gettime): Conditional code for VMS.
  1335. * gcc.c: Define __GNUC__ as well as __GNU__.
  1336. __GNU__ will be deleted in a future version.
  1337. * symout.c (symout_finish) [VMS]: Don't refer to `getwd' on VMS.
  1338. * symout.c (symout_init) [VMS]: Fatal error; GDB syms not supported.
  1339. * parse.y (yylex): Handle DOLLARS_IN_IDENTIFIERS.
  1340. * genoutput.c (gen_insn): Workaround for VMS printf %s bug.
  1341. * gen*.c: Include config.h. Whenever exiting, use
  1342. SUCCESS_EXIT_CODE or FATAL_EXIT_CODE.
  1343. * config-*.h: Define SUCCESS_EXIT_CODE and FATAL_EXIT_CODE.
  1344. * config-vms.h: New file, mostly like config-vax.h.
  1345. Wed Feb 17 13:35:34 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1346. * cccp.c: VMS support from Kashtan.
  1347. Some #include files are conditional.
  1348. Use file_size_and_mode instead of fstat.
  1349. When reading file contents, the size we get from that
  1350. is just an upper bound; don't assume it must match.
  1351. Replacement definitions of read and write for VMS.
  1352. Different default include directories.
  1353. Conditionalize the setrlimit code on RLIMIT_STACK.
  1354. Use SUCCESS_EXIT_CODE when exiting if no errors;
  1355. both that and FATAL_EXIT_CODE are not #defined if already defined.
  1356. Treat $ as an identifier-character if DOLLARS_IN_IDENTIFIERS.
  1357. Rename the `delete' function as `delete_macro'
  1358. to avoid VMS name conflict.
  1359. * cexp.y: Treat $ as an identifier-character if DOLLARS_IN_IDENTIFIERS.
  1360. * stmt.c (fixup_memory_offset): Do big-endian compensation
  1361. only within a word, not for DImode vs SImode.
  1362. * stmt.c (fixup_var_refs): Don't fix up the insn to load the var
  1363. from its own stack slot; delete it instead.
  1364. * tm-ns32k.h (MODES_TIEABLE_P): DImode is like DFmode.
  1365. * tree.c (MAX_HASH_TABLE): 1009 (more prime) instead of 1008.
  1366. * decl.c (duplicate_decls): If merged type is OLD's type,
  1367. keep OLD's DECL_SIZE and DECL_SIZE_UNIT.
  1368. * gen*.c (xmalloc, xrealloc): Call `fatal' if memory is full.
  1369. * reload1.c (choose_reload_targets): If a mode doesn't fit the
  1370. reload register, and the insn is an ASM_OPERANDS, ignore the reload.
  1371. Otherwise, final would crash.
  1372. * expmed.c (expand_shift): Two new strategies for lshr on short/char:
  1373. widen and do ashr, or widen and do extzv.
  1374. * vax.md (peepholes): Use dead_or_set_p to check for eliminable
  1375. intermediate result, rather than requiring a match with final result.
  1376. * local-alloc.c (block_alloc): Testing frame_pointer_needed is
  1377. enough; no need to test FRAME_POINTER_REQUIRED, etc.
  1378. * global-alloc.c (find_reg): Likewise.
  1379. * reload1.c (reload): Likewise for flag_omit_frame_pointer
  1380. * jump.c (delete_insn): If not `optimize', don't complain
  1381. about finding an already-deleted insn in the chain.
  1382. Tue Feb 16 17:14:54 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
  1383. * final.c: Don't define N_SOL and N_SLINE if already defined.
  1384. * final.c (output_source_line):
  1385. Typo calling ASM_OUTPUT_SOURCE_FILENAME.
  1386. * flow.c (INSN_VOLATILE): fix a typo.
  1387. Fri Feb 12 16:48:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1388. * final.c (final): for `asm' without operands, output literally.
  1389. Thu Feb 11 12:44:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1390. * symout.c (symout_record_fields): Handle nameless fields.
  1391. * symout.c (symout_record_field_names): Likewise.
  1392. * typecheck.c (require_complete_type): `void' is a complete type.
  1393. * typecheck.c (build_function_call): Don't complain if result is void.
  1394. * tm-hp9k320.h: Change definition of ASM_SPEC to +X, not -X.
  1395. * cccp.c (main): Expected object file name for foo.cc is foo.o.
  1396. Wed Feb 10 16:04:58 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1397. * reload1.c (reload): Initialize `regmask' to zero.
  1398. Class number is in I, not in CLASS, when setting its elements.
  1399. Don't let J+K be too large.
  1400. * reload1.c (potential_reload_regs): Make it a `short'
  1401. since that can't be unsigned.
  1402. * cccp.c (warning): New function, called like `error'.
  1403. * cccp.c (do_define): Make redefinition just a warning.
  1404. Tue Feb 9 13:28:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1405. * decl.c (grokdeclarator): Don't be fooled by ERROR_MARK as a declspec.
  1406. * toplev.c (compile_file): Strip final .c or .co from .sym file name.
  1407. * gcc.c: When running `as', specify the .sym file if -gg.
  1408. Mon Feb 8 11:26:26 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1409. * expmed.c (store_fixed_bit_field): Don't try gen_lowpart on VALUE
  1410. if it's a subreg since it might lose; use convert_to_mode instead.
  1411. * tm-hp9k320.h: Define TARGET_MEM_FUNCTIONS.
  1412. * expr.c (emit_block_move, emit_push_insn, clear_storage):
  1413. If TARGET_MEM_FUNCTIONS, generate calls to memcpy and memset
  1414. instead of bcopy and bzero.
  1415. * optabs.c (emit_cmp_insn): Likewise for memcmp vs bcmp.
  1416. * stmt.c (expand_goto): New temp var to avoid RT/PC compiler bug.
  1417. Sun Feb 7 12:20:23 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1418. * flow.c (mark_used_regs, mark_set_regs):
  1419. Handle hard regs in multiword modes: set the bits for each
  1420. distinct register-number that makes up the multiword mode.
  1421. Necessary because function arg registers can inevitably
  1422. live across basic blocks.
  1423. * cse.c (canon_hash): Function arg and value registers no longer
  1424. considered volatile, because flow should now handle the code that
  1425. can result from cse'ing them.
  1426. * cse.c (make_regs_eqv): Abort if OLD is invalid.
  1427. * cse.c (reg_invalidate): Abort if reg already invalid has eqvs.
  1428. Sat Feb 6 16:25:32 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1429. * gcc.c (main): Specific error msg if no input files.
  1430. Fri Feb 5 17:56:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1431. * stmt.c (expand_decl, put_var_into_stack, assign_parms):
  1432. Set in_struct on a MEM if the variable is an aggregate or union.
  1433. * varasm.c (assemble_variable): Set in_struct on aggregate vars.
  1434. Thu Feb 4 11:52:30 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1435. * m68k.md (movsf): Correct two fmove.x to fmove.s.
  1436. * expmed.c (extract_fixed_bit_field):
  1437. Must always generate an `and' to mask the bitfield
  1438. unless its width is the same as the output machine mode.
  1439. * version 1.18 released.
  1440. Wed Feb 3 08:41:20 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1441. * fold-const.c (fold): Convert EXPR's operands before returning them.
  1442. Tue Feb 2 15:35:18 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1443. * reload.c (find_reloads_address_1):
  1444. * typecheck.c (default_conversion): Handle COMPOUND_EXPR arrays.
  1445. Mon Feb 1 18:53:05 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1446. * ns32k.md: operand 0 of all unsigned divide/modulus insns
  1447. is now register_operand.
  1448. * stdarg.h: Make va_list be char *, not char *[1].
  1449. Latest draft doesn't say it must be an array type.
  1450. Sun Jan 31 11:14:07 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1451. * flow.c (find_basic_blocks): Add temp var to avoid Sequent
  1452. compiler bug.
  1453. * tm-ns32k.h (GO_IF_LEGITIMATE_ADDRESS): Don't allow pushes or pops
  1454. since there are special insn patterns for them.
  1455. Resubroutinize and add temp vars to make expressions smaller.
  1456. * ns32k.md: Add a few more special stack insns; now there are enough.
  1457. * tm-sequent.h: Definitions of DBX_NO_XREFS and DBX_CONTIN_LENGTH.
  1458. * reload1.c (choose_reload_targets): Handling of reload_strict_low
  1459. is needed for input reloads as well as output, since a strict_low_part
  1460. operand is normally a read-write operand.
  1461. * reload1.c (reload): The mode a reload needs is the wider of
  1462. the input and output modes--just as it is in choose_reload_targets.
  1463. * reload.c (find_dummy_reload): If IN and OUT have different widths
  1464. and one of them exceeds a word, don't find any dummy reload.
  1465. * toplev.c (compile_file): Allocate enough space for .jump2 filename.
  1466. Sat Jan 30 10:35:46 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1467. * output-ns32k.c (print_operand_address):
  1468. Print addresses of the form C1+(N*REG+C2) which currently
  1469. are accepted as legitimate memory addresses.
  1470. * tm-sequent.h: Simple bugs in PRINT_OPERAND, TARGET_DEFAULT
  1471. and SEQUENT_ADDRESS_BUG.
  1472. * gen*.c: Must explicitly exit; returning from `main' fails
  1473. to indicate nonzero status due to bug in Unix.
  1474. * parse.y (check_line_number): Ignore entire line of unrecognized
  1475. #-directive; no error if it is `pragma'.
  1476. Fri Jan 29 06:46:01 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1477. * genrecog.c, genextract.c, genoutput.c: Define bcopy and/or bzero.
  1478. * cccp.c (do_define): Make defn->argnames long enough in no-args case.
  1479. * reload1.c (reload): Make basic_block_needs 0 until after the
  1480. frame pointer reg is spilled, so that ALL pseudos in it are spilled.
  1481. * typecheck.c (truthvalue_conversion):
  1482. Strip a NOP_EXPR only if it extends, not if it truncates.
  1483. * Fixes for HPUX support from cph:
  1484. * tm-hp9k320.h: Correct names of floating-point registers.
  1485. Fix typos in ASM_OUTPUT_OPCODE; also convert `fmove' to `fmov'.
  1486. * Makefile (comments for HPUX):
  1487. cph says -Wd,-X isn't needed in CFLAGS, nor -lBSD in CLIB.
  1488. Also that -g can't be used in CFLAGS with HP's pcc.
  1489. * conf-hp9k320.h: New file, like config-m68k.h but with
  1490. #defines for the bstring functions.
  1491. * m68k.md: Add else-clauses to the HPUX_ASM conditionals on cmp insns.
  1492. Reinsert mistakenly-deleted MOTOROLA conditionals around
  1493. some OUTPUT_JUMPs.
  1494. Thu Jan 28 09:51:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1495. * jump.c (jump_back_p): If TARGET is unconditional, return 0.
  1496. Wed Jan 27 04:18:29 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1497. * combine.c (subst): Simplify (plus (plus x c1) c2).
  1498. * expr.c (emit_push_insn): Don't use small-block push-insns for BLKmode
  1499. when one of them would be affected by PUSH_ROUNDING.
  1500. Instead, make all the space and then copy.
  1501. * expr.c (expand_call): Don't apply PUSH_ROUNDING if BLKmode.
  1502. * Allow `asm' with operands to be marked volatile.
  1503. * cse.c (canon_hash): Don't record ASM_OPERANDS that has `volatil'.
  1504. * loop.c (invariant_p): ASM_OPERANDS with `volatil' can't be invariant.
  1505. * flow.c (volatile_refs_p): Note ASM_OPERANDS that are volatile.
  1506. * stmt.c (expand_asm_operands): New arg VOL; mark ASM_OPERANDS as vol.
  1507. * typecheck.c (c_expand_asm_operands): New arg VOL.
  1508. * parse.y: allow a TYPE_QUAL after ASM.
  1509. * Make cse handle `asm' with operands:
  1510. * cse.c (canon_hash): Hash string operands by contents, not address.
  1511. * cse.c (exp_equiv_p): Compare string operands with strcmp.
  1512. * rtl.c (rtx_equal_p): Compare string operands with strcmp.
  1513. * decl.c (init_decl_processing): Once sizetype is set,
  1514. correct the type of the sizes of types already made.
  1515. * cccp.c (do_defines): Don't reject #define foo{a}.
  1516. Tue Jan 26 04:53:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1517. * reload.c (find_reloads): Now that `asm' is limited to
  1518. MAX_RECOG_OPERANDS, eliminate dynamic allocation of `constraints'
  1519. and `constraints1', and go back to `recog_operand' instead of
  1520. `operands'.
  1521. * typecheck.c (c_expand_asm_operands): New fn to handle `asm' for C.
  1522. Calls expand_asm_operands, and handles output operands that
  1523. the other function cannot handle.
  1524. * parse.y: Call that function.
  1525. * stmt.c (expand_asm_operands): Error if too many operands.
  1526. #include insn-config.h to get MAX_RECOG_OPERANDS.
  1527. * expr.c (expand_assignment): Use store_field to handle
  1528. structure fields and array elements.
  1529. * output-m68k.c (output_move_double): PUSHOP and POPOP were swapped.
  1530. Handle insns that push an sp-relative address onto sp;
  1531. these can arise with -fomit-frame-pointer.
  1532. BUG? Do unoffsetable mem refs using sp and fp lose?
  1533. * m68k.md (movdi,movdf): Allow unoffsetable mem refs
  1534. only if the other operand is a register.
  1535. * m68k.md (zero_extendqisi2): SGS conditionals deleted.
  1536. Supposedly the MOTOROLA syntax works for those addresses.
  1537. * typecheck.c (default_conversion):
  1538. If flag_traditional, preserve unsignedness when promoting ints,
  1539. and promote float to double.
  1540. * typecheck.c (build_binary_op_nodefault):
  1541. Allow comparisons between pointers and ints.
  1542. If not -traditional, warn about them.
  1543. Mon Jan 25 02:11:18 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1544. * expmed.c ({extract,store}_split_bit_field):
  1545. Functions {extract,store}_split_reg_bit_field now work for memory
  1546. also, and therefore are renamed.
  1547. * ({extract,store}_fixed_bit_field): Call those fns when a field
  1548. is split across two words.
  1549. Also, preserve the `volatil' bit on memory refs.
  1550. * output-m68k.c (output_move_double): Handle nonoffsetable mem refs.
  1551. * m68k.md: Relax constraints on movdi, movdf.
  1552. * decl.c (init_decl_processing): Define `int' and `char' first.
  1553. Set `sizetype' explicitly.
  1554. * stmt.c (fixup_var_refs_1): May not just return when a SET
  1555. doesn't have VAR as its src or dest.
  1556. * varasm.c: Don't include c-tree.h.
  1557. * decl.c (build_struct): Split this function into three:
  1558. `xref_tag', `start_struct' and `finish_struct'.
  1559. `xref_tag' subsumes `xref_enum'.
  1560. * parse.y (structsp): When parsing `struct foo {...}', define the tag
  1561. as a cross-ref before parsing the components. Use the three new fns.
  1562. * regclass.c (regclass): Recognize new-format ASM_OPERANDS insns
  1563. with `asm_noperands', and scan their operands as usual.
  1564. * cse.c: In numerous functions such as canon_hash, rtx_cost, etc.
  1565. that do tree-walk on rtx, handle vectors of subexpressions.
  1566. * loop.c (invariant_p): Likewise.
  1567. * jump.c (delete_insn): Two bugs:
  1568. If insn already deleted, return the first following nondeleted.
  1569. Deleting a jump's label can delete NEXT. Make sure return value
  1570. is always the first insn following INSN and not yet deleted.
  1571. Sun Jan 24 02:27:49 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1572. * rtl.def (ASM_OPERANDS): Change the rtl expression of an
  1573. `asm' with operands so it looks like this for one output operand:
  1574. (set OUTPUT (asm_operands:OUTPUTMODE INSNSTRING OUTPUTCONSTRAINT
  1575. 0 INPUTS INPUTCONSTRAINTS)).
  1576. and like this for multiple outputs:
  1577. (PARALLEL [
  1578. (set OUTPUT0 (asm_operands:OUTPUTMODE INSNSTRING OUTPUTCONSTRAINT
  1579. 0 INPUTS INPUTCONSTRAINTS)).
  1580. (set OUTPUT1 (asm_operands:OUTPUTMODE1 INSNSTRING OUTPUTCONSTRAINT1
  1581. 1 INPUTS INPUTCONSTRAINTS))])
  1582. * parse.y: Change parsing of `asm' to distinguish input and output
  1583. operands. Separate them with colon; separate the string with colon.
  1584. * stmt.c (expand_asm_operands): Receive inputs and outputs separately.
  1585. Generate the new rtl format.
  1586. * recog.c (asm_noperands, decode_asm_operands): New fns
  1587. for extracting the operands and constraints from these insns.
  1588. * final.c (final): Recognize and output the new rtl format
  1589. using those new functions.
  1590. * reload.c (find_reloads): Recognize and get constraints
  1591. from the new rtl format using those new functions.
  1592. New variable `operand_modes' holds the machine modes of the
  1593. operands, obtained one way for ASM_OPERANDS insns and another
  1594. for other insns.
  1595. * rtl.c (note_stores): Calling convention
  1596. is changed: the first arg FUNCTION now receives as its 2nd arg
  1597. 1 if clobbering, 0 if setting. Used to be the CLOBBER or SET rtx.
  1598. * local-alloc.c (reg_is_set): This fn is called from note_stores;
  1599. change its arguments.
  1600. * tm-m68k.h (FIXUP_FRAME_POINTER_ADDRESSES):
  1601. Use frame_pointer_rtx to recognize intended frame-pointer refs
  1602. and not recognize pseudo-regs that were allocated to the frame
  1603. pointer register.
  1604. * emit-rtl.c: All refs to frame pointer use a single rtx, in
  1605. frame_pointer_rtx. Likewise arg_pointer_rtx for the arg pointer.
  1606. If they are the same register, these are the same rtx.
  1607. Initialize them in init_emit.
  1608. * rtl.h: Declare these vars.
  1609. * stmt.c (assign_parms, assign_stack_local): Use those rtx's.
  1610. Sat Jan 23 00:32:10 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
  1611. * reload.c (find_reloads): Don't combine_reloads if `&' constraint
  1612. was used.
  1613. * parse.y: Parse `asm' with operands.
  1614. * stmt.c (expand_asm_params): New fn: generate an ASM_OPERANDS for
  1615. `asm' with operands.
  1616. * final.c (final): Output an ASM_OPERANDS insn-body.
  1617. * regclass.c (regclass): Ignore ASM_OPERANDS, like ASM_INPUT.
  1618. * reload.c (find_reloads): Handle reloading of ASM_OPERANDS.
  1619. The number of operands can no longer be bounded.
  1620. For example we can't always put the operands in recog_operands.
  1621. New locals OPERANDS and OPERAND_LOCS point to alloca'd vectors of
  1622. operands and their locations. New locals CONSTRAINTS and CONSTRAINTS1
  1623. hold alloca'd vectors of constraints.
  1624. Unfortunately this isn't enough; every vector with length
  1625. MAX_RECOG_OPERANDS needs to be dynamically allocated.
  1626. Would this be too slow? For now, a cheap "solution" is to delete
  1627. any insn that has too many operands.
  1628. * rtl.def: Delete VOLATILE, UNCHANGING and UNDESCRIBED.
  1629. Add ASM_OPERANDS.
  1630. * regclass.c (reg_class_record): Delete ref to UNCHANGING.
  1631. * loop.c (invariant_p):
  1632. * rtl.c (rtx_varies_p):
  1633. * cccp.c: Define __VERSION__.
  1634. * decl.c (shadow_tag): TYPE_NAME doesn't work to get the tag-name
  1635. of a struct, so use new function lookup_tag_reverse.
  1636. * decl.c (lookup_tag_reverse): Given a type, return its tag name.
  1637. * symout.c (symout_source_file): Output one `struct source'.
  1638. * symout.c (symout_lines): Output all of them, and the sourcevector.
  1639. * gdbfiles.h: New file for communication between final.c and symout.c.
  1640. * final.c (output_source_line): New arg WRITE_SYMBOLS says write
  1641. new GDB-format linenumber info. Assigns a filenum to each source
  1642. file name and keeps track of the correspondence.
  1643. * cccp.c (do_include): Output the -M info after searching the dirs;
  1644. include the actual dir name. Don't generate "./" for current dir.
  1645. Fri Jan 22 04:10:10 1988 Richard Stallman (rms at frosted-flakes)
  1646. * tm-news800.h: Delete override of INDIRECTABLE_1_ADDRESS.
  1647. Output is faster if it doesn't use 32-bit displacements.
  1648. * reload.c (combine_reloads): New function.
  1649. If possible, find an input reload
  1650. and an output reload that can be turned into one input-output reload.
  1651. The old output-reload is marked as inoperative: reload_out
  1652. and reload_in both zero. This is called from find_reloads.
  1653. * reload1.c (reload, choose_reload_targets): Ignore inoperative
  1654. reloads.
  1655. * Print warnings for variables that could be clobbered by `longjmp'.
  1656. * expr.c (expand_call): Generate a NOTE_INSN_SETJMP whenever
  1657. `setjmp' or `_setjmp' is called.
  1658. * flow.c (propagate_block): When NOTE_INSN_SETJMP is seen,
  1659. record the live regs in `regs_live_at_setjmp'.
  1660. * stmt.c (uninitialized_vars_warning): Warn about vars that have regs
  1661. that are set more than once and are marked in `regs_live_at_setjmp'.
  1662. Works through function `regno_clobbered_by_longjmp'.
  1663. * rtl.h: Define NOTE_INSN_SETJMP.
  1664. * genrecog.c (try_merge_2): When enforce_modes, keep all the
  1665. alternatives segregated by modes and keep the modes in numerical order.
  1666. * genrecog.c (write_tree): Make conditions for switch-on-modes
  1667. know what difference enforce_mode makes.
  1668. Thu Jan 21 00:12:35 1988 Richard Stallman (rms at frosted-flakes)
  1669. * tm-ns32k.h: Use Stein's definitions of PRINT_OPERAND{,_ADDRESS};
  1670. move the Sequent definitions info tm-sequent.h.
  1671. Handle %$ in both old and new PRINT_OPERAND.
  1672. Define CPP_PREDEFINES.
  1673. * ns32k.md: Merge some features from Jan Stein's port:
  1674. strict_low_part insns, smart output of booleans with small
  1675. constant args, acbd insns generalized for other increments.
  1676. Use %$ wherever there is an explicit immediate.
  1677. Fix shortcomings of adjsp insns: use adjspd in general,
  1678. and use adjspb in all the cases that allow it.
  1679. Don't bother explicitly clearing CC_REVERSED.
  1680. For tstsf/tstdf, output the floating-zero constants
  1681. using {f,d}const0_rtx.
  1682. A problem still remains, which is that the Sequent and the
  1683. other ns32k assembler syntax require different
  1684. * typecheck.c (unary_complex_value): Use correct datatype for
  1685. compound-exprs.
  1686. * gen*.c (main): Use obstack_init instead of obstack_begin.
  1687. * vax.md: define_peephole for andl3 x,y,z; extzv z,....,z
  1688. * m68k.md (tstsi): Use cmpw instead of cmpl to test addr reg.
  1689. * tm-m68k.h: Bugs for 68000 when frame size is over 64k.
  1690. For FUNCTION_PROLOGUE, just subtract from sp instead of fp.
  1691. For FUNCTION_EPILOGUE, must put the size into a0 and then
  1692. all insns must be indexed by a0. And do this even on 68020.
  1693. * tm-isi68.h: Similar changes.
  1694. * tm-news800.h, tm-hp9k320.h: Similar changes.
  1695. Wed Jan 20 04:38:21 1988 Richard Stallman (rms at frosted-flakes)
  1696. * cccp.c (error_with_line): New function.
  1697. Use it to report the "unterminated whatever" errors.
  1698. * typecheck.c (build_unary_op): Recursive call had missing arg.
  1699. * m68k.md (movhi): If MOTOROLA, the insn that fetches from a
  1700. case-dispatch table now defines the LI label as .+2.
  1701. * tm-news800.el, tm-hp9k320.h (PRINT_OPERAND_ADDRESS):
  1702. Don't subtract 2 when outputting the address in that insn.
  1703. Tue Jan 19 00:02:33 1988 Richard Stallman (rms at frosted-flakes)
  1704. * cse.c (cse_basic_block): Abort if more qtys were used than allocated.
  1705. Mon Jan 18 04:44:28 1988 Richard Stallman (rms at frosted-flakes)
  1706. * cccp.c (special_symbol): tm_mon is origin-0, not origin-1.
  1707. * final.c (output_asm_insn): If %LETTER with no digits,
  1708. pass null pointer as the operand.
  1709. * output-m68k.c (singlemove_string): Get rid of %e.
  1710. * stmt.c (fixup_memory_subreg): Convert (SUBREG (MEM a)) to (MEM a').
  1711. * stmt.c (fixup_var_ref_1): Use that fn for operands of
  1712. SIGN_EXTRACT and ZERO_EXTRACT, since (SUBREG:SI (REG:QI...))
  1713. could have turned into (SUBREG:SI (MEM:QI...)), which is unsafe.
  1714. * rtl.c (debug_rtx): Print an rtx on stderr, for debugging.
  1715. Sun Jan 17 04:37:20 1988 Richard Stallman (rms at frosted-flakes)
  1716. * gcc.c: options -M* treated like -M.
  1717. * stmt.c (pushcase): Do nothing if the case index has error_mark type.
  1718. * expr.c (expand_increment): Don't use queue for post-inc on memory
  1719. if the add insn requires register args. (Better code for RISCs.)
  1720. Sat Jan 16 02:10:22 1988 Richard Stallman (rms at frosted-flakes)
  1721. * ns32k.md: Change register_operand to general_operand.
  1722. * ns32k.md (udivmoddisi4): Use match_dup where required.
  1723. Comment it out because it can't accept two independent output args.
  1724. Fri Jan 15 00:02:35 1988 Richard Stallman (rms at frosted-flakes)
  1725. * toplev.c: Include sys/time.h only for BSD. For USG, use time.h.
  1726. This is correct for HPUX; don't know about others.
  1727. * gcc.c (execute): Eliminate `union wait'. Make `status' an int.
  1728. * gcc.c (execute) [USG]: Use fork instead of vfork.
  1729. * final.c (output_source_line): Use ASM_OUTPUT_SOURCE_{FILENAME,LINE}
  1730. if they are defined.
  1731. * tm-hp9k320.h: New name for tm-hpux.h.
  1732. * tm-hp9k320.h (ASM_OUTPUT_LOCAL): Add 3rd arg to `lcomm' statements.
  1733. * tm-hp9k320.h (ASM_OUTPUT_{DOUBLE,FLOAT}): Use `double' and `float'.
  1734. * tm-hp9k320.h (CALL_USED_REGISTERS): Don't save any 68881 regs.
  1735. * tm-hp9k320.h (CPP_PREDEFINES): different names defined.
  1736. * tm-hp9k320.h (HPUX_ASM, NO_DBX_FORMAT, ASM_SPEC): define these.
  1737. * tm-hp9k320.h (ASM_OUTPUT_OPCODE): Convert `ftst' to `ftest'.
  1738. * tm-hp9k320.h: Define ASM_OUTPUT_SOURCE_{FILENAME,LINE}.
  1739. * m68k.md: Rename `hpux' conditionals to `HPUX_ASM'.
  1740. * m68k.md: Reverse `fcmp' args if HPUX_ASM.
  1741. * cccp.c (print_deps): 2 means give all files, 1 means only user files.
  1742. * cccp.c (do_include): Support that.
  1743. * cccp.c (main): -MM sets 1, -M alone sets 2.
  1744. * cccp.c (main): Give fatal error if I/O error in writing.
  1745. * toplev.c (fatal_io_error): Report I/O error on given filename,
  1746. and exit.
  1747. * toplev.c (compile_file): Detect error writing asm_out_file.
  1748. Always put asm file's name in asm_file_name for err msg.
  1749. * symout.c (symout_finish): Detect error writing symfile.
  1750. * symout.c (symout_init): Save filename in symfile_name for err msg.
  1751. * gen*.c: Return 1 if ferror (stdout)--in case disk is full.
  1752. * local-alloc.c (block_alloc): Don't crash if 1st rtx
  1753. in a PARALLEL is not a SET.
  1754. * tm-m68k.h, tm-news800.h (PRINT_OPERAND). Eliminate code `%e'.
  1755. * m68k.md: Change `%e' to `e' everywhere.
  1756. * tm-hpux.h (ASM_OUTPUT_OPCODE): Output `move' as `mov'.
  1757. * tm-m68k.h, tm-news800.h, tm-hpux.h (PRINT_OPERAND):
  1758. New code `%!' is output as the name for the cc register.
  1759. * m68k.md (insns that use andi to ccr): Use `%!' to avoid
  1760. conditionals.
  1761. * cse.c: Record in qty_const_insn the insn that stored the
  1762. constant value of a qty. When making a REG_WAS_0 note,
  1763. store in it the insn that established the value 0.
  1764. * vax.md (movsi): When checking a REG_WAS_0 note,
  1765. verify that the insn it points to hasn't been deleted or made a NOTE.
  1766. Thu Jan 14 00:01:35 1988 Richard Stallman (rms at frosted-flakes)
  1767. * toplev.c: Eliminate error_with_line and warning_with_line.
  1768. * parse.y, decl.c: Change remaining calls to those two.
  1769. * tree.c (get_unwidened, get_narrower): To see if a COMPONENT_REF
  1770. is unsigned, look at the FIELD_DECL, not at the COMPONENT_REF.
  1771. * rtl.c (print_rtx): Print /v for the `volatil' bit.
  1772. * expr.c (expand_assignment expand_expr): If handling a COMPONENT_REF,
  1773. note whether it is volatile.
  1774. * fold-const.c (fold): a call to split_tree missed an argument.
  1775. * flow.c (volatile_refs_p): Scan an rtx for volatile mem refs.
  1776. * flow.c (life_analysis): Record in INSN_VOLATILE which insns
  1777. have any volatile mem refs.
  1778. * flow.c (mark_used_regs): Always mark an insn with volatile mem refs.
  1779. Always pass INSN as an arg. New arg FINAL now says whether
  1780. this is the last time scanning.
  1781. * flow.c (propagate_block): Don't delete insns with volatile mem refs.
  1782. * flow.c: Remove all refs to `obey_regdecls'.
  1783. Calling this with -noreg just doesn't help -W.
  1784. Wed Jan 13 01:13:07 1988 Richard Stallman (rms at frosted-flakes)
  1785. * decl.c (finish_decl): Error if auto var's size isn't known.
  1786. Change type to error_mark_node to avoid crash if the var
  1787. is used in an expression, since it has no DECL_RTL.
  1788. * output-m68k.c (output_move_const_single): % -> %% for sprintf.
  1789. * parse.y (yylex): Store token_buffer properly after ellipsis.
  1790. * decl.c (duplicate_decls): Don't call layout_decl
  1791. for FUNCTION_DECL or TYPE_DECL.
  1792. * toplev.c (warning_with_decl): New warning function with decl as arg.
  1793. * (error_with_decl): similar.
  1794. * decl.c: Replace most `yylinerror' calls with `error_with_decl'.
  1795. * decl.c (build_struct): Reform code to detect erroneous bit-fields.
  1796. All such errors are now detected here.
  1797. Promote bit-fields to int if appropriate.
  1798. If traditional, make all int bit-fields unsigned.
  1799. Set DECL_ALIGN for members that are not bit-fields.
  1800. * decl.c (grokfield): Don't set DECL_ALIGN here.
  1801. * stor-layout.c (layout_decl): Don't promote the type of a bit-field.
  1802. Use TREE_PACKED to distinguish a bit-field.
  1803. Don't check the width because build_struct did that.
  1804. * m68k.md (cmpm): Reject if either operand (address) is a constant.
  1805. Tue Jan 12 15:11:20 1988 Richard Stallman (rms at frosted-flakes)
  1806. * cse.c (canon_reg): Never replace ANY hard reg from reg_rtx
  1807. because that could alter the machine mode.
  1808. * tm-news800.h: Redefine INDIRECTABLE_1_ADDRESS only if MOTOROLA.
  1809. Mon Jan 11 13:15:45 1988 Richard Stallman (rms at frosted-flakes)
  1810. * jump.c (follow_jumps): If we find a cycle, make it a jump to self.
  1811. * cse.c (predecide_loop_entry): Give up if chase more than 10 jumps.
  1812. Sun Jan 10 14:52:42 1988 Richard Stallman (rms at frosted-flakes)
  1813. * reload1.c (reload): basic_block_needs (new vector) gets 1
  1814. for each basic block that needs a reload.
  1815. * reload1.c (spill_hard_reg): Don't spill pseudos that are
  1816. confined to a basic block which has no need for any reloads.
  1817. * reload1.c (reload): Each cycle that any element of basic_block_needs
  1818. changes from 0 to 1, must re-spill all previously spilled regs.
  1819. * regclass.c (record_address_regs):
  1820. Skip the charging of ICOST if it is 0.
  1821. * flags.h, toplev.c: New flag -fvolatile.
  1822. * typecheck.c (build_indirect_ref): If flag_volatile,
  1823. every INDIRECT_REF is marked with TREE_THIS_VOLATILE.
  1824. * fold-const.c (fold): Test in TRUTH_NOT_EXPR case was backward.
  1825. Also result type is always `int'.
  1826. Sat Jan 9 04:16:11 1988 Richard Stallman (rms at rice-krispies)
  1827. * flags.h (flag_traditional): New flag.
  1828. * toplev.c: recognize -ftraditional and -traditional.
  1829. * parse.y (yylex): If flag_traditional, don't recognize
  1830. `signed', `const' or `volatile'.
  1831. * decl.c (pushdecl): If flag_traditional, any extern decl
  1832. takes effect at top level.
  1833. * tree.c (lvalue_or_else): New 2nd arg for use in error message.
  1834. * typecheck.c: All callers pass 2nd arg.
  1835. * global-alloc.c: allocno_preferred_reg can specify a preferred
  1836. hard reg for each allocno. If so, try it first (new call to find_reg).
  1837. * global-alloc.c (find_reg): New arg PREFREG specifies reg to try
  1838. first.
  1839. * decl.c (build_struct): if :0 bit field at the end, round the
  1840. structure size to multiple of EMPTY_FIELD_BOUNDARY.
  1841. * cse.c (make_regs_eqv): Was testing for reg_next_eqv[lastr] == 0
  1842. and should be == -1.
  1843. * reload1.c (reload_as_needed): Fix invalid optimization deleting
  1844. the previous store into a pseudo-reg that feeds an input-reload.
  1845. It is not safe because a later insn may look in the pseudo's stack
  1846. slot for the value. Delete the store only if we can eliminate the
  1847. pseudo entirely or if the current insn stores a new value there.
  1848. Also verify that reload_in[j] is a REG.
  1849. * reload1.c (reload_as_needed): When doing an input reload from a
  1850. pseudo that was stored by the previous insn (not as a reload),
  1851. redirect the previous insn into the reload register, if this lets
  1852. us eliminate the pseudo entirely.
  1853. * reload1.c (reload_as_needed): In both of the above cases, it's
  1854. impossible to prevent a stack slot since one was already assigned,
  1855. so don't alter reg_n_refs. Instead, set reg_renumber to record
  1856. that this pseudo did get a hard reg.
  1857. * stmt.c: Set `volatil' in pseudo-regs for the user's variables.
  1858. * jump.c (delete_insn): Do nothing if insn already deleted.
  1859. * tm-sun{2,3}.h: #define STRUCTURE_SIZE_BOUNDARY 2
  1860. for compatibility with Sun PCC. Note that 4.3 vax PCC
  1861. does not want this.
  1862. * fold-const.c: Replace truncate_unsigned with force_fit_type
  1863. which truncates unsigned types and sign-extends signed types.
  1864. * expr.c (do_jump): emit_queue before outputting the jump insns
  1865. that use the comparison.
  1866. * stmt.c: Error message for any goto that jumps into a
  1867. binding contour that restores a stack level.
  1868. TREE_PACKED (label) means label was defined inside
  1869. such a binding contour that is now exited. Using such a label
  1870. is an error.
  1871. TREE_ADDRESSABLE (label) means label was used from a place
  1872. outside all such binding contours. If this is 1 when
  1873. TREE_PACKED is set to 1, it is an error.
  1874. Any other invalid goto must have a fixup. fixup_gotos detects
  1875. such invalid gotos. fixup_gotos takes a second arg, which
  1876. is the first insn of the contour now being exited.
  1877. * GNU C version 1.17.
  1878. Local Variables:
  1879. mode: indented-text
  1880. left-margin: 8
  1881. fill-column: 76
  1882. version-control: never
  1883. End: