|
|
1.1.1.6 ! root 1: Thu Aug 18 14:42:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 2: ! 3: * Version 1.26 released. ! 4: ! 5: * m68k.md (movsi): Constraint change for fpa regs. ! 6: ! 7: * reload1.c (choose_reload_targets): Clear reg_reloaded_contents ! 8: for all regs of a multi-reg group. ! 9: ! 10: * reload.c (find_equiv_reg): HARD_REGNO_NREGS wants mode, not size. ! 11: Check properly for overlap against multiword reload regs. ! 12: ! 13: Tue Aug 16 14:54:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 14: ! 15: * varasm.c, expr.c (immed_double_const): immed_real_const_2 renamed. ! 16: ! 17: * tm-i386.h (SFVALUE): Should be `double'. ! 18: * tm-i386v.h (SFVALUE): Don't override it. ! 19: ! 20: * tm-i386.h (ASM_OUTPUT_ASCII): Don't define it. ! 21: * tm-att386.h: Definition moved here. ! 22: ! 23: * tm-bsd386.h: New file, for Sequent. ! 24: * tm-seq386.h: New file, for Sequent. ! 25: * config-i386.h: New file, for Sequent. ! 26: ! 27: * expr.c (push_block): Take account of STACK_POINTER_OFFSET. ! 28: (expand_call): Therefore need not do so here. ! 29: ! 30: * optabs.c (expand_fix): Typo if going via DImode. ! 31: ! 32: * reload1.c (choose_reload_targets): Don't * reload_reg_rtx if 0. ! 33: ! 34: Mon Aug 15 01:11:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 35: ! 36: * integrate.c (copy_for_inline): Don't try copying 0-length vector. ! 37: (copy_rtx_and_substitute): Likewise. ! 38: ! 39: * m68k.md (andsi3): use clrw instead of andw #0. ! 40: ! 41: * print-tree.c (walk): Don't omit permanent nodes reach from temps. ! 42: ! 43: * m68k.md (zero_extend...): Reinstall the old zero-extend insns ! 44: without names, so they can help the combiner. ! 45: ! 46: * expr.c (expand_expr): Don't use hard regs as subtargets. ! 47: * combine.c (FAKE_EXTEND_SAFE_P): Always consider MEMs safe. ! 48: * reload.c (find_reloads): For (SUBREG (MEM ...)) set force_reload. ! 49: ! 50: * c-parse.y (redescape): Don't warn for `\('. ! 51: ! 52: * reload.c (find_reloads_address): #if was backwards. ! 53: ! 54: Sun Aug 14 16:52:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 55: ! 56: * c-typeck.c (shorten_compare): Change switch to chain of ifs. ! 57: ! 58: * tm-ns32k.h (PRINT_OPERAND): CONST_DOUBLE contains a double ! 59: even if it's SFmode. ! 60: (FUNCTION_PROLOGUE): If MAIN_FUNCTION_PROLOGUE defined, run it. ! 61: ! 62: * cccp.c (file_buf): Rename field `free' to `free_ptr'. ! 63: ! 64: * Makefile (ALLOCA, MALLOC, LIBDEPS): New variables for easier ! 65: customization. Executables depend on LIBDEPS instead of OBSTACK1. ! 66: (cccp): Deps and libs now work like the others. ! 67: ! 68: * output-i386.c (notice_update_cc): Rewritten for clarity. ! 69: ! 70: * tm-i386.h (OUTPUT_JUMP): If CC_IN_OVERFLOW, abort. ! 71: ! 72: * recog.c (push_operand): Test for stack_pointer_rtx. ! 73: ! 74: * integrate.c (copy_rtx_and_substitute): Don't submit push-operands ! 75: to `memory_address'--it would lose on machines where pushing is ! 76: a special insn, not an addressing mode. ! 77: ! 78: * output-i386.c (top_dead_p): No more redundancy--that didn't work. ! 79: Now one method if optimized, one for call_insns if noopt, one for ! 80: other insns if noopt. ! 81: (call_top_dead_p): fp_top_dead_p renamed ! 82: and only the call-insn clause remains. ! 83: ! 84: * i386.md (cmpsf, cmpdf): Output was backwards. ! 85: (", tstsf, tstdf): Set CC_IN_80387. ! 86: (incb pattern): Restrict allowable registers. ! 87: (movsf, movdf): Call top_dead_p only when absolutely necessary. ! 88: (call_value): Use top_dead_p, not subroutine. ! 89: ! 90: Sat Aug 13 15:19:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 91: ! 92: * stupid.c (stupid_life_analysis): If only 1 reg class, ! 93: call stupid_find_reg only once. ! 94: ! 95: * stmt.c (expand_function_start): ! 96: Clear current_function_pretend_args_size. ! 97: ! 98: * expr.c (store_constructor): If target is hard reg, go via a pseudo. ! 99: ! 100: * varasm.c (real_constant_chain): Now static in this file. ! 101: (force_const_double_mem): Put R on chain if not already on. ! 102: (clear_const_double_mem): Set XEXP (,2) to 0; ! 103: also clear real_constant_chain and the chain links. ! 104: * emit-rtl.c (init_emit_once): Put 0 in XEXP (,2) of {d,f}const0_rtx. ! 105: * cse.c (canon_hash): For CONST_DOUBLE, ignore elts other than 0,1. ! 106: ! 107: Fri Aug 12 11:48:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 108: ! 109: * reload1.c (order_regs_for_reload): Handle REG_ALLOC_ORDER more spots. ! 110: ! 111: * global-alloc.c (find_reg): error handling REG_ALLOC_ORDER; ! 112: also error skipping regs known to be hopeless. ! 113: * local-alloc.c (find_free_reg): error skipping hopeless regs. ! 114: * stupid.c (stupid_find_reg): likewise. ! 115: ! 116: * local-alloc.c (qty_compare_1): typo, had q1 for q2. ! 117: ! 118: * expr.c (expand_expr): Don't use supplied target when optimizing ! 119: arithmetic using a comparison or conditional; that target could be ! 120: needed for the result of the comparison. ! 121: ! 122: * reload1.c (reload): Don't set reg_equiv_constant for hard regs. ! 123: ! 124: * stupid.c (stupid_life_analysis): Ignore reg R if regno_reg_rtx[R]==0. ! 125: ! 126: * symout.c (symout_finish): Use perm. links in permanent_fwd_refs. ! 127: ! 128: * i386.md (movhi, movqi): Check no_labels_between_p. ! 129: ! 130: Thu Aug 11 10:44:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 131: ! 132: * c-parse.y (yylex): Out-of-range float is just a warning. ! 133: ! 134: * tm-gnx-v3.h: New file for Genix. ! 135: * ns32k.md (movsi, call, call_value): GNX_V3 conditionals. ! 136: * tm-ns32k.h (PRINT_OPERAND_ADDRESS): Changes for Genix. ! 137: ! 138: * ns32k.md (insv patterns): Operand 0 is read-write. ! 139: ! 140: * i386.md (tstsf, tstdf): Don't push the arg if already in st(0). ! 141: ! 142: * varasm.c (output_constant_def): If EXP is permanent, the rtl is too. ! 143: ! 144: * tm-*.h (ASM_OUTPUT_{LOCAL,COMMON}): New 4th arg, rounded size ! 145: vs unrounded size. ! 146: * varasm.c (assemble_variable): Pass new arg. ! 147: * symout.c (symout_init): Likewise. ! 148: ! 149: * cccp.c (rescan): Don't let char const cross lines. ! 150: (skip_quoted_string, macarg1, discard_comments): Likewise. ! 151: ! 152: * expr.c (expand_expr, VAR_DECL case): handle flag_force_addr. ! 153: ! 154: * tm-i386v.h (TAREGT_DEFAULT): Assume 80387. ! 155: * config-i386v.h (alloca): Use __builtin_alloca under GNU C. ! 156: ! 157: Wed Aug 10 11:23:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 158: ! 159: * reload.c (find_reloads): Alternative loses ! 160: if it has no regs for a reg operand. ! 161: ! 162: * tm-sun3.h (STARTFILE_SPEC): Define, for fpa's sake. ! 163: * tm-m68k.h: New hard regs, reg classes, reg class letters, ! 164: target flag and switch, operand syntax and CC handling for fpa. ! 165: * m68k.md: Add fpa insn patterns. ! 166: * output-m68k.c (standard_SunFPA_constant_p): New fn. ! 167: (output_move_const_{single,double}): Handle fpa regs. ! 168: (singlemove_string): Handle fpa regs. ! 169: ! 170: * stmt.c (fixup_memory_subreg): Result had wrong mode. ! 171: ! 172: * ns32k.md (insv patterns): Adjust bit-number along with address. ! 173: ! 174: * sparc.md (negdf2, absdf2): Order of the words was backwards. ! 175: ! 176: * reload1.c (new_spill_reg): End confusion about meaning of 1st arg. ! 177: Arg counted_for_nongroups had wrong type. ! 178: ! 179: * tm-m68k.h (FUNCTION_{PRO,EPI}LOGUE): Round frame size to word bdry. ! 180: ! 181: Tue Aug 9 07:53:59 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 182: ! 183: * tm-i386.h (ASM_OUTPUT_ASCII): Don't lose the sign bit. ! 184: ! 185: * tm-i386v.h (STARTFILE_SPEC, LIB_SPEC): Use crt1.o, crtn.o. ! 186: ! 187: * stmt.c (fixup_var_refs_1): fixup all memory subregs. ! 188: ! 189: * reload1.c (choose_reload_targets): Don't strip paradoxical ! 190: subregs from values to be reloaded. ! 191: ! 192: * cccp.c: Comment out text after #endif. ! 193: ! 194: * c-parse.y (init): Allow empty braces as init; warn if pedantic. ! 195: ! 196: * c-decl.c: Move C-specific options from toplev.c. ! 197: * c-tree.h: Move their externs from flags.h. ! 198: * c-decl.c (lang_decode_option): New fn called by `main'. ! 199: * toplev.c (sorry, really_sorry): New error reporting fns. ! 200: * c-decl.c (language_string): New var, name of this language. ! 201: ! 202: * c-parse.y: Don't include flags.h. ! 203: * dbxout.c: Do include it. ! 204: ! 205: * dbxout.c (dbxout_type): Handle function fields and static fields ! 206: and basetypes. Handle METHOD_TYPE and REFERENCE_TYPE. ! 207: Abort on unexpected tree code. ! 208: (dbxout_args): New fn to output prototype arg types. ! 209: (everywhere): Use IDENTIFIER_LENGTH instead of strlen. ! 210: (dbxout_type_name): Cleanup; avoid strlen. ! 211: ! 212: * local-alloc.c (reg_is_set): Don't call {post_,}mark_life for pseudos. ! 213: ! 214: * tree.h (TYPE_BASECLASSES): New field in type nodes. ! 215: ! 216: * ns32k.md (insv patterns): Was adjusting the address wrong. ! 217: ! 218: * c-decl.c (grokdeclarator): Just a warning for inline varargs fn. ! 219: ! 220: Mon Aug 8 08:16:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 221: ! 222: * varasm.c (immed_real_const_2): Guts of creating a CONST_DOUBLE. ! 223: * expr.c (expand_expr): Use that for 64-bit int constants. ! 224: ! 225: * loop.c (invariant_p): Don't check x->unchanging; it's not safe. ! 226: ! 227: * c-typeck.c (build_indirect_ref): Handle flag_volatile here ! 228: so that it propagates to component_refs. ! 229: * expr.c (expand_expr): No need to handle it here. ! 230: ! 231: * integrate.c (save_for_inline, expand_inline_function): ! 232: Set up insn_map to record mapping of old uids to copied insns. ! 233: (copy_for_inline, copy_rtx_and_substitute): Map 'u' refs via insn_map. ! 234: ! 235: * emit-rtl (emit_label, emit_barrier): Return what was emitted. ! 236: ! 237: * sdbout.c (sdbout_filename): Split off from sdbout_init. ! 238: * tm-encore.h, tm-3b1.h, tm-vaxv.h, tm-att386.h (ASM_FILE_START): ! 239: Call sdbout_filename. ! 240: ! 241: * toplev.c: Better messages for invalid options. ! 242: ! 243: * tm-m68k.h (PRINT_OPERAND_ADDRESS): Handle labelref+basereg. ! 244: ! 245: * tm-3b1.h (PUT_SDB_DIM): Override sdbout's definition. ! 246: (ASM_FORMAT_PRIVATE_NAME): Override tm-hp...s definition. ! 247: (PUT_SDB_PLAIN_DEF): Prepend `~' to specified name. ! 248: (SDB_GENERATE_FAKE): Prepend `~'. ! 249: ! 250: * gcc.c: Include config.h before obstack.h. ! 251: ! 252: Sun Aug 7 11:17:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 253: ! 254: * stor-layout.c (layout_decl): Do nothing with CONST_DECL. ! 255: Treat FRIEND_DECLs like variables. ! 256: (layout_record): Handle VAR_DECLs and FUNCTION_DECLs in the fieldlist. ! 257: Handle basetypes (almost like fields). ! 258: (layout_type): Handle REFERENCE_TYPE and METHOD_TYPE. ! 259: ! 260: * tree.c (temp_tree_cons): New fn. ! 261: (array_type_nelts, simple_cst_equal): New fns. ! 262: (lvalue_p): CALL_EXPR is an lvalue if it returns REFERENCE_TYPE. ! 263: () Manage TYPE_REFERENCE_TO. ! 264: (TYPE_HASH_SIZE): Bigger. ! 265: (type_list_equal): Compare the TREE_PURPOSE fields. ! 266: (build_reference_type, build_method_type): New fns. ! 267: ! 268: * stmt.c (block_stack): Add field `cleanups' to each element. ! 269: (expand_{start,end}_bindings, expand_decl): Update that field. ! 270: (stack_block_stack): Now includes blocks that have cleanups. ! 271: (goto_fixup_chain): Add field `cleanup_list_list'. ! 272: (expand_goto_internal): Execute cleanups for blocks being exited. ! 273: (expand_fixup): Make a fixup if any block has cleanups. ! 274: (fixup_gotos): New args CLEANUPS and DONT_JUMP_IN. ! 275: Execute cleanups for blocks being exited, or add to cleanup_list_list. ! 276: (expand_end_bindings): New arg DONT_JUMP_IN. Execute any cleanups. ! 277: (expand_decl): New arg CLEANUP. ! 278: (expand_cleanups, fixup_cleanups): New functions. ! 279: * c-decl.c: Calls to expand_decl pass new arg. ! 280: * c-parse.y: Calls to expand_end_bindings pass new arg. ! 281: ! 282: * stmt.c (expand_return): Handle INIT_EXPR, or bare RESULT_DECL. ! 283: ! 284: * stmt.c (case_stack): Add field `has_default' to each element. ! 285: (pushcase,expand_end_case): Maintain and use that field. ! 286: ! 287: * stmt.c (pushcase): Handle RANGE_EXPR cases. ! 288: (pushcase_range): Create RANGE_EXPR cases. ! 289: ! 290: * final.c (final): Always pass 3 args to ASM_OUTPUT_CASE_END. ! 291: * tm-3b1.h: Delete offending spaces. ! 292: ! 293: Fri Aug 5 16:17:16 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 294: ! 295: * integrate.c (copy_rtx_and_substitute): Don't make fp+reg+const ! 296: without an intermediate temporary reg. ! 297: ! 298: * print-tree.c (dump): Don't print an identifier's chain. ! 299: ! 300: * toplev.c (compile_file): Treat `.i' suffix like `.co'. ! 301: ! 302: * gcc.c: New config macro CC1_SPEC: extra switches for cc1. ! 303: Make a new spec for `.i' files. ! 304: ! 305: * c-decl.c (pushdecl, finish_decl): Delete duplicate tests. ! 306: ! 307: * varargs.h: Maybe include va-sparc.h or va-spur.h. ! 308: * va-sparc.h: New file. ! 309: * va-spur.h: renamed file. ! 310: ! 311: * tree.h ({TYPE,DECL}_LANG_SPECIFIC): Types and decls can point to ! 312: language-specific structures containing other info. ! 313: * print-tree.c (dump): Hooks for printing the language-specific ! 314: data in types and decls. ! 315: ! 316: Thu Aug 4 08:54:30 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 317: ! 318: * tree.def: Add some tree codes for C++. ! 319: ! 320: * Rename files: parse.[yh] -> c-parse.[yh], decl.c -> c-decl.c, ! 321: typecheck.c -> c-typeck.c. ! 322: Part of tree.c split out to c-convert.c. ! 323: ! 324: * expr.c (push_block): No longer static. ! 325: (expand_expr): Handle REFERENCE_EXPR and INIT_EXPR. ! 326: (expand_call): Turn a METHOD_TYPE to a FUNCTION_TYPE. ! 327: This is probably not all that is required. ! 328: ! 329: * parse.y (yylex): Use p->rid to check for `signed' and `inline'. ! 330: ! 331: * tm-sparc.h (ASM_OUTPUT_SOURCE_LINE): typo. ! 332: ! 333: * sparc.md: Add a pattern for andcc. ! 334: (cmpsf): Clobber reg 32 in DFmode. ! 335: (branches): There are no unsigned floating branches; abort. ! 336: (bgt): Correct name of floating variant. ! 337: (mov?i): Load small constants via mov. ! 338: (movdf for constants): Use mov, not add, to move regs. ! 339: (movsf, floatsi*, fix*): Simplify reg-to-reg-via-mem move generation. ! 340: (trunc*): Use mov, not or, to move regs. ! 341: (negsi2, one_cmplsi2): Avoid "neg" and "not" assembler syntax. ! 342: (call...): Generate "call" insns; handle #-reg-parms value. ! 343: * Define some peepholes for return insns. ! 344: ! 345: * tm-sparc.h (TARGET_SUN_ASM): New target flag. ! 346: (TARGET_DEFAULT): Now 1. ! 347: (FRAME_POINTER_REQUIRED): Now 1. ! 348: (STARTING_FRAME_OFFSET): Now -16. ! 349: (LEGITIMATE_CONSTANT_P): Only CONST_DOUBLEs fail. ! 350: (FUNCTION_{PROLOGUE,EPILOGUE}): Rewritten. ! 351: ! 352: * output-sparc.c (small_int): Test for int that mov can load. ! 353: (singlemove_string): Use mov, not add. ! 354: (output_move_double): Changes for overlap and for use of ldd, std. ! 355: (output_fp_move_double): Use ldd, std when safe. ! 356: (make_f0_contain_0): Simplify. ! 357: ! 358: * integrate.c (expand_inline_function): Some special CALL_INSN ! 359: handling no longer needed due to REG_FUNCTION_VALUE_P. ! 360: ! 361: * m68k.md (movqi): Constraints allow moving areg to areg. ! 362: 1.1.1.5 root 363: Wed Aug 3 08:29:31 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 364: 1.1.1.6 ! root 365: * Version 1.25 released. ! 366: 1.1.1.5 root 367: * integrate.c (expand_inline_function): Don't let MEM be inline_target. 368: 369: Tue Aug 2 09:13:37 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 370: 371: * integrate.c (INTEGRATE_THRESHOLD): New macro, default dfn here. 372: (function_cannot_inline_p): Use it. 373: 374: * rtl.h (REG_FUNCTION_VALUE_P): New macro. 375: * stmt.c (expand_function_start): Set that flag in the return reg. 376: * integrate.c (expand_inline_function, copy_rtx_and_substitute): 377: Test that flag to test for the return value. 378: * expmed.c (expand_fixed_bit_field, expand_mult, expand_divmod): ditto. 379: FUNCTION_VALUE_OUTGOING_REGNO_P no longer needed. 380: 381: Mon Aug 1 02:46:08 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 382: 383: * integrate.c (copy_rtx_and_substitute): If NO_FUNCTION_CSE, 384: don't break out constant fcn addresses here. 385: 386: * expmed.c (expand_fixed_bit_field): Tests of FUNCTION_VALUE_REGNO_P 387: were backwards. 388: 389: Sun Jul 31 13:10:07 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 390: 391: * recog.c (indirect_operand): New function. 392: 393: * output-i386.c (print_operand): define %*. eliminate %s. 394: (fp_top_dead_p): In nonopt case, skip stack-adjusts while looking 395: for the insn that uses the function value. 396: 397: * varasm.c (text_section, data_section): New functions. 398: Replaced explicit printfs elsewhere with calls to them. 399: * final.c (final_start_function): Use these fns. 400: * sdbout.c (sdbout_one_type): Use text_section. 401: * tm-att386.h (ASM_OUTPUT_LOCAL): Use data_section. 402: 403: * expr.c (prepare_call_address): Don't pass const via reg if no -O. 404: 405: * tm-sparc.h (FUNCTION_{PROLOGUE,EPILOGUE}) Round the size of saved 406: registers. Fix bug counting saved registers. 407: 408: * tm-sparc.h (ASM_OUTPUT_SOURCE_LINE): Define this macro. 409: 410: * tm-sparc.h (DEFAULT_SIGNED_CHAR): Now 1. 411: 412: * expr.c (expand_builtin, alloca case): Adding stack offset needs 413: special code if TARGET is a MEM. 414: 415: * dbxout.c (dbxout_init): Define Ltext: after the reference to it. 416: 417: * tm-3b1.h (ASM_OUTPUT_CASE_LABEL): `short 0' triggers assembler bug; 418: `short L%nn-L%nn' supposedly works. 419: 420: Sat Jul 30 00:25:52 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 421: 422: * sparc.md (floatsidf2): Minor change in output. 423: (fix_trunc{sf,df}si2): Similar. 424: 425: * output-sparc.c (output_fp_move_double): Minor change in output. 426: 427: * stmt.c (assign_parms): Don't count stack space for struct value 428: address if the function does not have one. 429: 430: * sdbout.c: Output .dim's and total size for arrays. 431: Detect bit-fields properly. 432: Changed handling of structure tags. 433: 434: * reload1.c (new_spill_reg): counted_for_nongroups is a new arg; 435: store 1 in it if this reg is needed for max_nongroups. 436: 437: * reload1.c (choose_reload_targets): Allow inheritance of DFmode 438: if it needs only one register. 439: 440: * reload1.c (choose_reload_targets): Delete the death-note from the 441: store-insn of an inherited reload if PRESERVE_DEATH_INFO_REGNO_P. 442: 443: * reload.c (push_reload): Crash if PREFERRED_RELOAD_CLASS is NO_REGS. 444: (find_reloads): Smarter handling of forcing CONST_DOUBLE into mem. 445: Check PREFERRED_RELOAD_CLASS & do this if it says NO_REGS. 446: 447: * reload.c (subst_indexed_address): Handle case with 2 regs 448: and no constant term. 449: 450: * local-alloc.c: New variable qty_n_refs, set from reg_n_refs 451: and tested in qty_compare{,_1}. 452: (combine_regs): Update qty_n_refs. 453: Update qty_preferred_or_nothing more intelligently. 454: 455: * regclass.c (regclass, reg_class_record, record_address_regs): 456: Count the number of refs to each reg along with the costs, 457: and use it when computing the preferred_or_nothing flag. 458: (Can't use reg_n_refs since that is weighted by loop depth). 459: 460: * global-alloc.c (global_alloc): Enable test of OVERLAPPING_REGNO_P 461: for setting no_global_alloc_regs. 462: 463: * expr.c (prepare_call_address): Use force_reg, so it gets a REG_EQUIV. 464: 465: * optabs.c (can_{fix,float}_p): Return enum insn_code, not a function. 466: (init_{fix,float}_tab): Store enum insn_code's in fixtab and floattab. 467: (expand_{fix,float}): Change calls to can_{fix,float}_p. 468: Also, use emit_unop_insn to make the actual insns. 469: 470: Fri Jul 29 02:42:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 471: 472: * cccp.c (initialize_char_syntax): If dollars_in_identifiers is 0, 473: set entries for `$' to 0. 474: Set entries to 1 rather than incrementing them. 475: 476: Tue Jul 26 11:14:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 477: 478: * varasm.c (assemble_variable): Make SDB output only if top-level. 479: 480: * local-alloc.c (reg_is_set): Arg to mark_life is regno, not qty. 481: 482: * output-ns32k.c (print_operand_address): New flag SEQUENT_BASE_REGS 483: * tm-sequent.h: Define that flag. 484: 485: * Makefile: add some missing deps. 486: 487: * tm-encore.h (ASM_FILE_START): Changed to do nothing. 488: 489: * sdbout.c (sdbout_init): Fix two dumb errors. 490: 491: * sdbout.c (sdbout_end_epilogue): No longer takes arg. 492: Examine current_function_decl here, not in caller. 493: * final.c: Call changed. 494: 495: Mon Jul 25 01:32:54 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 496: 497: * stor-layout.c (layout_record): Handle PCC_BITFIELD_TYPE_MATTERS. 498: 499: * tm-3b1.h (__PTR_TO_INT, __INT_TO_PTR): Define these, to alter 500: parts of obstack.h. 501: 502: Sun Jul 24 17:56:53 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 503: 504: * Padding for an arg may now go below or above it; new macro 505: FUNCTION_ARG_PADDING can now choose which, or can inhibit padding. 506: This makes for compatibility with PCC. 507: * expr.h: Default definition of that macro. 508: * expr.c (emit_push_insn): Put the padding above or below. 509: (expand_call): Don't count the padding if none wanted. 510: * stmt.c (assign_parms): Adjust parm stack addr if padded below. 511: Don't count the padding if none wanted. 512: * tm-3b1.h: Define FUNCTION_ARG_PADDING: no padding for > 4 bytes. 513: 514: * final.c (alter_subreg): Now returns the altered value 515: (but may still modify the original structure). 516: Handles (SUBREG:DI (CONST_DOUBLE:DF...)) by returning the CONST_DOUBLE. 517: 518: * m68k.md (DImode push): now allows `F'. 519: * ns32k.md (movdi): now allows `F'. 520: 521: * tm-m68k.h (FIX_FRAME_POINTER_ADDRESS): 522: Handle indexed references to frame pointer. 523: * tm-i386.h, tm-m88k.h, tm-sparc.h: Likewise. 524: 525: * cse.c (predecide_loop_entry): Must search for the loop top label. 526: 527: Sat Jul 23 08:53:01 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 528: 529: * parse.y (yylex): typo in wide strings. 530: 531: * tm-vaxv.h, config-vaxv.h: New files for sysV on vax. 532: 533: * config-sun4.h: If sparc and not compiling with GCC, include alloca.h. 534: 535: Fri Jul 22 02:38:02 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 536: 537: * tree.c (build_real_from_int_cst): CHECK_FLOAT_VALUE at proper place. 538: 539: * tm-hp9k320.h ({TEXT,DATA}_SECTION_ASM_OP): Should not include a tab. 540: * final.c (final_start_function): Don't output a tab before those. 541: 542: * sdbout.c (PUT_SDB_EPILOGUE_END): New macro. 543: * sdbout.c (sdbout_end_epilogue): New function to output the C_EFCN. 544: Like former sdbout_mark_end_function. Uses that macro. 545: * final.c (final_end_function): Call that function. 546: * tm-3b1.h: Override PUT_SDB_EPILOGUE_END like the other PUT_SDB... 547: 548: * tm-3b1.h (PRINT_OPERAND_ADDRESS, ASM_OUTPUT_INTERNAL_LABEL, 549: ASM_OUTPUT_CASE_{LABEL,END}): Put a % in names of internal labels. 550: (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_ADDR_{VEC,DIFF}_ELT): 551: New macros, for same reason. 552: (FUNCTION_PROFILER): New macro, for % and also to put addr in a0. 553: 554: * final.c (output_source_line): For fcn's first line, use lineno 1. 555: * sdbout.c (sdbout_end_function): Clear sdb_begin_function_line 556: so can recognize first line of next function. 557: 558: * sdbout.c (sdbout_init): Output the .file pseudo here. 559: * tm-3b1.h, tm-att386.h (ASM_FILE_START): Don't do it here. 560: 561: * sdbout.c (PUT_SDB_VAL): Output leading tab, like the other macros. 562: * tm-3b1.h (PUT_SDB_VAL): Likewise. 563: 564: * regclass.c (regclass): Cast enums to int, not char. 565: * varasm.c (record_constant): Likewise. Avoids 3b1 PCC bug. 566: 567: * decl.c (pushdecl): Better choice of error message for extern/static. 568: 569: * emit-rtl.c: Do look for STRUCT_VALUE_INCOMING_REGNUM. 570: 571: Thu Jul 21 02:13:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 572: 573: * cse.c (canon_hash): CONST_INT case failed to add to prev. value 574: of HASH; was inconsistent with cse_insn mem address hashing. 575: 576: * m68k.md (divide insns): Alternate 3B1 syntax for `swap' insn. 577: 578: Wed Jul 20 18:27:10 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 579: 580: * m68k.md: In shift-by-24 patterns, rejects autoincrement memrefs 581: since they are mode-dependent. 582: 583: Tue Jul 19 13:01:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 584: 585: * parse.y (check_newline): Handle #ident by writing .ident to output. 586: * cccp.c: Don't handle #ident; delete IDENT_DIRECTIVE conditionals. 587: 588: * stmt.c (expand_end_case): In compares, put constant arg second. 589: 590: * jump.c (jump_optimize): Delete conditional jump if followed by 591: an unconditional jump to the same place. 592: 593: Mon Jul 18 17:49:13 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 594: 595: * emit-rtl.c (init_emit_once): Now STRUCT_VALUE_INCOMING is an 596: expression for an rtx. It can make a MEM. Likewise STRUCT_VALUE 597: for outgoing structure value addresses. 598: 599: * stmt.c (assign_parms): If incoming struct addr on stack, leave room. 600: * expr.c (expand_call): If outgoing addr on stack, push it like an arg. 601: 602: * PROMOTE_PROTOTYPES means if proto says `char', pass `int'. 603: * decl.c (get_parm_info): Alter DECL_ARG_TYPE to do this. 604: * typecheck.c (actualparameterlist): Convert value for this. 605: * tm-m68k.h: Define PROMOTE_PROTOTYPES. 606: 607: Sun Jul 17 14:25:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 608: 609: * jump.c (jump_optimize): peephole can delete insns following INSN. 610: Set NEXT after peephole. 611: 612: * decl.c (finish_decl): Always restart perm alloc if global. 613: 614: * stmt.c (assign_parms): When a float is passed as double, store the 615: float in low-numbered word. Avoids trouble with parm_map in integrate. 616: 617: * vax.md: New pattern for decrement and compare against -1. 618: 619: Sat Jul 16 14:18:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 620: 621: * decl.c (pushdecl): Ignore previous decl if it's really an error_mark. 622: 623: * stmt.c (expand_start_case): Make sure case_stmt.start is a NOTE. 624: 625: * combine.c (subst): In the simplification for 626: (set (zero_extract ...) (and/or/xor (zero_extract ...) const)), 627: require same memory location in both extracts. 628: 629: * *386*: New files. 630: 631: * cse.c (fold_rtx): Save time in memory address if it didn't change. 632: Don't replace cheaper expression with coslier one. 633: (cse_insn): Reenable generation of REG_WAS_0. It wasn't obsolete. 634: 635: * cccp.c: `ident' has 5 letters. 636: 637: * final.c (output_source_line): SDB can't handle multiple source 638: files, so ignore line-NOTEs for other files. 639: 640: * hard-reg-set.h: New var reg_class_size (# regs in the class). 641: * regclass.c (init_reg_class): Set it up. 642: 643: * reload.c (find_reloads): If an earlyclobber is in a class of size 1 644: as an output, reload it as input instead of as output. 645: 646: * reload1.c (choose_reload_targets): Improve elimimation of spilled 647: pseudos made dead by reloading: if pseudo is limited to one block 648: and that block contains just stores, delete all the stores. 649: 650: * reload1.c (choose_reload_targets): reg_has_output_reload is now 651: static and survives through reload pass. 652: (forget_old_reloads): Don't cancel data on spilled regs of output 653: reloads of the insn just made. 654: 655: * sdbout.c (sdbout_one_type): Go to .text before defining a type. 656: (sdbout_block): Test against do_block was backwards. 657: 658: * stmt.c (expand_end_function): New args to make a NOTE for last line. 659: * decl.c (finish_function): Pass the args. 660: 661: * rtl.c (no_labels_between): New function. 662: * vax.md (movsi): Call it. 663: 664: * print-tree.c (dump): Don't follow chain of a decl. 665: 666: * rtl.c (volatile_refs_p): Moved from flow.c. 667: 668: Fri Jul 15 13:36:20 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 669: 670: * sdbout.c (PUT_SDB...): Allow config to override any of them. 671: * sdbout.c (PUT_SDB_{BLOCK,FUNCTION}_{START,END}): New macros. 672: * tm-3b1.h: Override all of them. 673: * sdbout.c (SDB_GENERATE_FAKE): New macro to create dummy tag name. 674: (gen_fake_label): Use SDB_GENERATE_FAKE. 675: * tm-3b1.h: Override its defn. 676: 677: * sdbout.c (sdbout_mark_function_end): Unused; deleted. 678: 679: * tm-3b1.h: Define SDB_DEBUGGING_INFO. 680: 681: Thu Jul 14 01:55:15 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 682: 683: * config-sunv4.h: New file for Sunos version 4. 684: 685: * tm-sun3.h (CPP_SPEC): Define mc68010 or mc68020, depending. 686: 687: Tue Jul 12 15:31:30 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 688: 689: * stmt.c (expand_fixup, expand_goto_internal): New functions to 690: emit a jump that can restore the stack level, even without tree node. 691: (expand_null_return, expand_exit_loop, etc.): Use expand_goto_internal. 692: (expand_end_function): Do fixup_gotos after emitting return_label. 693: 694: * cse.c (predecide_loop_entry): Avoid using JUMP_LABEL. 695: * flow.c (find_basic_blocks): Avoid using JUMP_LABEL. 696: 697: * flow.c (insn_dead_p): Delete special case for stack-adjust insns. 698: (life_analysis): Mark those insns with INSN_VOLATILE here. 699: (mark_used_regs): a SET of a hard reg, in a volatile insn, 700: always makes its source live. 701: 702: Mon Jul 11 10:46:26 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 703: 704: * ns32k.md (floatqidf2): Commented out since assemblers warn about it. 705: 706: Sun Jul 10 11:49:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 707: 708: * decl.c (xref_tag): Default the TYPE_MODE of enum xrefs 709: to avoid making MEM and REG with VOIDmode. 710: 711: * vax.md (call): If > 255 args, pop them explicitly. 712: 713: Sat Jul 9 10:53:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 714: 715: * symout.c (symout_types): Fix up forward refs to previously 716: undefined structure types. 717: (filter_undefined_types): New function. 718: (symout_finish, symout_function_end): Output any never-defined structs. 719: * toplev.c (rest_of_compilation): call symout_function_end. 720: 721: * parse.y: Don't declare errno if it's a macro. 722: 723: * tm-hp9k320 (FUNCTION_PROFILER): Pass ptr in a0, not d0. 724: 725: * typecheck.c (truthvalue_conversion): Flush unnec recursive call. 726: (build_cond_expr): Bug testing zeroness of IFEXP with TREE_LITERAL. 727: 728: * cse.c (fold_cc0): Constants not CONST_INT are certainly nonzero. 729: * fold-const.c (fold): ADDR_EXPR is not equal to zero. 730: 731: * cccp.c (macroexpand): Disable the macro even if traditional. 732: (rescan): Error if use a disabled macro. 733: 734: * combine.c (try_combine): Don't substitute a different reg into 735: an auto-increment. Handle multiple REG_INC notes in I1 or I2. 736: 737: * decl.c (implicitly_declare): Don't reuse old implicit decl. 738: 739: * varasm.c (assemble_variable): Avoid syntax err if no DBX and no SDB. 740: * final.c (output_source_line): likewise. 741: 742: * fold-const.c (fold): PLUS/MINUS_EXPR: in case of cancellation, 743: convert result to original type. 744: 745: * regclass.c (reg_class_record): Changed arguments include address 746: of entire vector of constraints. 747: 748: Fri Jul 8 07:59:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 749: 750: * reload1.c (reload): Find groups of more than 2 registers. 751: 752: Thu Jul 7 08:33:07 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 753: 754: * expr.c (emit_push_insn): Typo adjusting arg for bcopy 755: if not STACK_GROWS_DOWNWARD. 756: 757: * gnulib.c (_cmpsf2): Value is int, not SFVALUE. 758: 759: Wed Jul 6 11:53:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 760: 761: * tm-encore.h, tm-3b1.h: Replace ASM_FILE_START; output a .file. 762: 763: * *m88*: New files for Motorola 88000. They don't really work. 764: 765: Tue Jul 5 14:40:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 766: 767: * local-alloc.c (combine_regs): Don't tie a reg to itself. 768: 769: * finxincludes: Make a variable LIB for the target dir. 770: 771: * m68k.md (movhi, addhi3, addsi3): Micro-optimize choice of asm insns. 772: 773: * expr.c (expand_expr): Use new macros NO_DEFER_POP, OK_DEFER_POP 774: in several places, to keep stack predictable. 775: 776: Mon Jul 4 09:50:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 777: 778: * integrate.c (function_cannot_inline_p): Increase threshold size. 779: 780: * flags.h (use_gdb_dbx_extensions): New variable. 781: * toplev.c: 782: 783: * sdbout.c (PUT_SDB_TAG): Delete duplicate defn. 784: 785: * expr.c (expand_expr): For FIX_TRUNC_EXPR to unsigned short/char, 786: REALLY go via signed int. 787: 788: * loop.c (may_trap_p): Was detecting floating arithmetic incorrectly. 789: 790: * tm-news800.h (CPP_PREDEFINES): Add sony and sony_news. 791: 792: * parse.y (check_newline): Avoid infinite loop at eof. 793: 1.1.1.4 root 794: Sat Jul 2 10:35:17 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 795: 796: * Version 1.24 released. 797: 798: * stmt.c (expand_asm_operands): Produce proper no-outputs insn. 799: * recog.c (asm_noperands): Detect no-outputs insns. 800: (decode_asm_operands): Likewise. 801: * reload.c (find_reloads): Likewise (add case ASM_OPERANDS:). 802: 803: * local-alloc.c (block_alloc): Tests of qty_compare were backwards. 804: 805: * flow.c (life_analysis): Turn off code that finds regs live at 806: function start and marks them not local to any basic block. 807: 808: * cse.c (insert_regs): Fix typo (UNITS_PER_WORD). 809: 810: * cccp.c: Define max. 811: 812: * expr.c (expand_expr): Put each SAVE_EXPR's reg on save_expr_regs, 813: if not optimizing. 814: * stmt.c (expand_function_end): Mark each of those regs live 815: at the end and also retroactively at the beginning of the function. 816: 817: * output-vax.c (print_operand_address): New function from old macro. 818: * tm-vax.h (PRINT_OPERAND_ADDRESS): Call that function. 819: 820: * config-vms.h: If not under GNU C, define X_OK, etc. 821: 822: * expr.c (move_by_pieces_1): Use * to call GENFUN. 823: (expand_expr): Compare DECL_FUNCTION_CODE against an enum const. 824: (preexpand_calls): Likewise. 825: * genrecog.c (write_tree): Likewise. 826: * final.c (final): Use * to call the output function. 827: * reload.c (push_reload): Rename `noshare' to `dont_share'. 828: 829: * genoutput.c (output_epilogue): Put more newlines in insn_outfun. 830: * genemit (gen_exp): Put in more newlines. 831: 832: Fri Jul 1 00:23:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 833: 834: * global-alloc.c (allocno_compare): Avoid comparisons of floats 835: since that is sensitive to roundoff errors. 836: 837: Thu Jun 30 09:25:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 838: 839: * sdbout.c (PUT_SDB_{DEF,TAG}): Use ASM_OUTPUT_LABELREF. 840: (PUT_SDB_PLAIN_DEF): New name for old defn of PUT_SDB_DEF 841: (sdbout_one_type): Use PUT_SDB_PLAIN_DEF for `.eos'. 842: 843: * tree.c (allocation_temporary_p): New fcn. 844: (all_types_permanent): New variable. 845: (make_node): If that's set, make each ...TYPE node permanent. 846: * decl.c (grokdeclarator): If traditional, make decl data permanent. 847: (finish_decl): Make the rtl permanent too. 848: * stor-layout.c (layout_type): If type is permanent, 849: make its layout data permanent too. 850: 851: * cccp.c: Choose C++ or C at run time via var `cplusplus'. 852: Separate cplusplus_include_default from include_default. 853: Get GNU-specific include directory names from macros 854: GCC_INCLUDE_DIR and GPLUSPLUS_INCLUDE_DIR. 855: (main): Initialize based on CPLUSPLUS; `-+' sets it. 856: * Makefile: Set *_INCLUDE_DIR based on $(libdir). 857: 858: Tue Jun 28 09:25:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 859: 860: * tree.c (copy_node): Round LENGTH up to multiple of sizeof (int). 861: 862: * expr.c (emit_push_insn): Avoid using PUSH_ROUNDING if not defined. 863: 864: * sparc.md (floatsisf2): Insert missing brace. 865: (mulsi3): Replace reg_o0_rtx, reg_o1_rtx. 866: 867: * tm-sparc.h: Define DBX_DEBUGGING_INFO. 868: 869: * parse.y (yylex): If traditional, no error for out-of-range float. 870: 871: * Makefile: Comment saying how to compile on an Apollo. 872: 873: * tm-sparc.h (ASM_FILE_START): Switch to new calling convention. 874: 875: * decl.c (init_decl_processing): Create type nodes for 64-bit ints. 876: (grokdeclarator): use them for `long long'. Warn only if pedantic. 877: 878: * optabs.c (init_optabs): Add missing DImode insn names. 879: 880: * expr.c (emit_block_move, emit_push_insn): Use movstrqi if appro. 881: 882: * expr.c (convert_move): use extendsidi if appropriate. 883: 884: * cccp.c (initialize_builtins): Don't install __STDC__ if traditional. 885: (main): Call initialize_builtins after option processing. 886: 887: * integrate.c (output_inline_function): Set current_function_decl. 888: 889: * cse.c (fold_rtx): Typo in avoiding 32-bit shifts. 890: 891: * cccp.c: Add forward-decl. 892: 1.1.1.3 root 893: Mon Jun 27 18:06:42 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 894: 895: * hard-reg-set.h (reg_alloc_order): New variable 896: based on REG_ALLOC_ORDER, a new machine-description macro. 897: * regclass.c (reg_alloc_order): Define it. 898: * local-alloc.c (find_free_reg): Handle reg_alloc_order. 899: * global-alloc.c (find_reg): Likewise. 900: * stupid.c (stupid_find_reg): Likewise. 901: 902: Sun Jun 26 10:47:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 903: 904: * Version 1.23 released. 905: 906: * tm-3b1.h: Define IDENT_DIRECTIVE. 907: 908: * tm-encore.h: Define SDB_DEBUGGING_INFO. 909: Define SCCS_DIRECTIVE and IDENT_DIRECTIVE. 910: 911: * output-ns32k.c: Decl of paren_base_reg_printed must be outside fcns. 912: 913: * tm-encore.h (ASM_OUTPUT_DOUBLE): Do 0f, not 0l. 914: (CPP_PREDEFINES): No -Dns32032. 915: 916: * sdbout.c: Include syms.h, not storclass.h. 917: (unnamed_struct_member): Decl was missing. 918: (PUT_SDB_INT_VAL, PUT_SDB_VAL): Fix typos. 919: (sdbout_types, sdbout_one_type, sdbout_parms): Fix typos. 920: 921: * Makefile: Add file sdbout.o. 922: Changed comments pertaining to sysV. 923: Make a separate target `doc' to make the info files. 924: 925: * m68k.md (bit-field insns): Use nonimmediate_operand for the thing 926: to extract from. 927: * vax.md (QImode bit-field insns): Likewise. 928: 929: * recog.c (nonimmediate_operand): Accept any nonconst general operand. 930: 931: Sat Jun 25 07:54:42 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 932: 933: * cse.c (lookup_as_function): arg to exp_equiv_p was missing. 934: 935: Fri Jun 24 09:14:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 936: 937: * recog.c (memory_operand): Allow (subreg (mem...)). 938: 939: Thu Jun 23 07:34:07 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 940: 941: * decl.c (finish_enum): Compute minimum value like maximum. 942: If minimum is negative, install it in the type and make it signed. 943: 944: * stor-layout.c (layout_record): STRUCTURE_SIZE_BOUNDARY is minimum. 945: (layout_type): A RECORD_TYPE or UNION_TYPE must be BLKmode if 946: any member is BLKmode. This is to prevent putting it in a register. 947: (layout_decl): If decl's type is BLKmode, the decl *must* be BLKmode. 948: 949: * local-alloc.c (find_free_reg): Never allocate the frame pointer reg. 950: 951: * tm-sequent.h (PRINT_OPERAND): Bug in SFmode CONST_DOUBLE. 952: * tm-encore.h: Likewise. 953: 954: * flow.c (flow_analysis): Bug in n_basic_blocks error check. 955: 956: * stmt.c (expand_asm_operands): Emit no insn if an arg is erroneous. 957: 958: Tue Jun 21 08:34:24 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 959: 960: * reload.c (find_reloads_address): Write back *loc even if 961: subst_reg_equivs makes no change, in case subst_index_address did. 962: 963: * flow.c: Define macros for -1 and -2 as values of reg_basic_block. 964: (mark_used_regs): Add an `else'; no change in behavior. 965: (mark_label_ref): Abort if LABEL_REF doesn't contain a CODE_LABEL. 966: (find_basic_blocks): Extra error check. 967: 968: * output-ns32k.c (print_operand_address): Changes in handling of 969: register-indirect, and of indexing by sb register. 970: 971: Mon Jun 20 04:55:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 972: 973: * cccp.c (collect_definition): Compute needed space more accurately. 974: Abort if use more space than was allocated. 975: (rescan) [USE_C_ALLOCA]: Do alloca (0) after handle_directive. 976: 977: * genflags.c (gen_insn): Put parens around defns of HAVE_... macros. 978: 979: Sun Jun 19 02:52:53 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 980: 981: * expr.c (emit_push_insn): Consider PARM_BOUNDARY when compensating 982: for size of a pushed arg to bcopy. 983: 984: Sat Jun 18 07:20:54 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 985: 986: * New files sparc.md, tm-sparc.h, config-sparc.h, output-sparc.c. 987: 988: * final.c (final): After an ADDR_{,DIFF_}VEC, do ASM_OUTPUT_CASE_END. 989: * tm-3b1.h: Define ASM_OUTPUT_CASE_END. 990: (PRINT_OPERAND_ADDRESS): Ref the case tables via an intermediate symbol 991: `LDnnn' whose def. is output by ASM_OUTPUT_CASE_END. 992: (ASM_OUTPUT_CASE_LABEL): Add missing newline. 993: 994: * reload.c (find_equiv_reg): Reject a MEM containing an autoincrement. 995: 996: Fri Jun 17 06:58:37 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 997: 998: * genpeep.c (main): Write `extern' in the decl for `peep_operand'. 999: 1000: * flow.c (propagate_block): When a dead insn has a REG_RETVAL note, 1001: call mark_set_regs anyway, so that `significant' is updated. 1002: 1003: * jump.c (follow_jumps): New arg IGNORE_LOOPS. If 0, don't follow 1004: the insn at the beginning of a loop that enters the loop; this avoids 1005: interference with loop optimizer. 1006: (jump_optimize, tension_vector_labels): Pass that arg. 1007: 1008: * loop.c (loop_optimize): Mention invalid multiple-entry loops in log. 1009: 1010: * m68k.md (extv, extzv): Fix # of alternatives mismatch in constraints. 1011: 1012: Thu Jun 16 03:06:48 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 1013: 1014: * genrecog.c (change_state): Was mishandling printing XVECEXP indices 1015: greater than 9. 1016: 1017: * combine.c (subst, simplify_and_const_int): Avoid making SUBREG 1018: of a non-REG. 1019: 1020: * expr.c (expand_expr): For FIX_TRUNC_EXPR to unsigned short/char, 1021: go via signed int. 1022: 1023: * optabs.c (expand_fix): Copy hard_libcall_value reg only once. 1024: 1025: * reload1.c (order_regs_for_reload): Init all elements 1026: of potential_reload_regs to -1. 1027: 1028: * Prevent generation of (set (reg) (plus ... (label_ref ...))). 1029: * explow.c (memory_address_noforce): Like `memory_address' but 1030: never force it into a register. 1031: * expr.c (do_tablejump): Use that. 1032: * m68k.md (casesi): Use that. 1033: 1034: * rtl.h (struct rtx_def, GET_CODE, PUT_CODE): If SHORT_ENUM_BUG, 1035: define the `code' field as a short. 1036: 1037: Wed Jun 15 01:25:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1038: 1039: * gcc.c (CPP_SPEC): New spec set by config.h gives flags to cpp. 1040: * tm-*.h for m68k: Define CPP_SPEC to define __HAVE_FPU__ on 1041: appropriate conditions. 1042: 1043: * combine.c (subst): Simplify (not (minus x 1)) and (neg (minus x y)). 1044: 1045: Mon Jun 13 02:22:43 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 1046: 1047: * typecheck.c (build_array_ref): Avoid duplicate errmsg if index 1048: is an error-mark. 1049: 1050: Sun Jun 12 23:04:39 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 1051: 1052: * cccp.c (handle_directive): If -traditional, quotes aren't special. 1053: (rescan): Assume newline ends a string constant. 1054: 1055: * cccp.c, cexp.y: Make all fcns non-static; add some forward decls. 1056: 1057: * various: add static forward-decls for various functions. 1058: 1059: Fri Jun 10 00:25:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1060: 1061: * reload1.c (choose_reload_targets): When writing back an incremented 1062: value (handling reload_inc), write back to the real place, not to 1063: OLDEQUIV (a register that holds the same value). 1064: 1065: * tm-m68k.h (LEGITIMIZE_ADDRESS): Don't give force_operand a target. 1066: This can cause the use of multiple insns with same output reg, 1067: which can confuse cse. 1068: 1069: * loop.c (consec_sets_invariant_p): 1070: If invariant_p ever returns 2, we return 2. 1071: New arg is # of consecutive sets to look for, 1072: since this info is no longer in n_times_set at move_movables. 1073: (scan_loop): If consec_sets_invariant_p returns 2, set m->cond. 1074: (move_movables): check consecutive insns if m->consec && m->cond. 1075: 1076: * tm*.h: ASM_DECLARE_FUNCTION_NAME now takes 3rd arg, 1077: the FUNCTION_DECL node. 1078: * varasm.c (assemble_function): Pass this arg. 1079: 1080: * expr.c (expand_call, expand_builtin [alloca]): 1081: If STACK_POINTER_OFFSET is defined, add it to stack pointer contents 1082: before using it as address of actual data on the stack. 1083: * stmt.c (expand_decl): Likewise. 1084: 1085: * stmt.c (assign_parms): If 1st parm named `__builtin_va_alist' 1086: came in regs, pretend it came on stack. 1087: Handle pretending a BLKmode var came on the stack. 1088: If REG_PARM_STACK_SLOT, count stack space for each parm 1089: even if the parm came in a register; and use that stack space 1090: if the parm needs to be addressable or is BLKmode. 1091: Rearrange to simplify conditionals. 1092: 1093: Thu Jun 9 01:21:29 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1094: 1095: * local-alloc.c: 1096: `qty_...' vectors' elements for hard-reg-numbers now aren't used. 1097: `reg_qty' elements for hard-reg numbers now aren't used, 1098: and the element for a pseudo is never a hard-reg number. 1099: (local_alloc): No need to reset those elements. 1100: No need to reset elements out of range of prev block's NEXT_QTY. 1101: (reg_is_born, reg_is_set, wipe_dead_reg): 1102: Divide labor in same way for hard regs and pseudos; 1103: simplify using fact that locality-to-basic-block has been precomputed 1104: and recorded in reg_qty; avoid refs to reg_qty[HARDREG]. 1105: (reg_is_born, wipe_dead_regs): Block-number arg no longer needed. 1106: 1107: * local-alloc.c (combine_regs): Remove old code for tying hard regs 1108: to pseudos; great simplification results. 1109: Use find_regno_note, not regno_dead_p. 1110: 1111: Wed Jun 8 00:18:04 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1112: 1113: * reload.c (subst_reg_equivs): Set a flag if anything is changed. 1114: (find_reloads_address): Check that flag to avoid extra work. 1115: Also check early for safe reg+const address and avoid work. 1116: 1117: * reload.c (find_reloads): Use loops instead of bcopy. 1118: Check early for insn with no real constraints, and return. 1119: Also check for move from hard reg to hard reg and return. 1120: 1121: * cse.c (canon_reg): Rewrite for speed; use a switch. 1122: (cse_insn): Don't call find_reg_note if REG_NOTES is 0. 1123: 1124: * cse.c (cse_insn): Store modified SET_SRC even if there's a REG_EQUIV. 1125: Inhibition was needed when the SET_SRC was the only place to find the 1126: equivalent value; now it is in the REG_EQUIV note. 1127: 1128: * stmt.c (expand_asm_operands): If NINPUTS is 0, make vec of no elts. 1129: * regclass.c (reg_scan_mark_refs): Don't lose if XVEC (x,i) is 0. 1130: 1131: Tue Jun 7 03:51:28 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1132: 1133: * stmt.c (assign_stack_local): If big-endian and MODE is narrow, 1134: the bytes actually used are the least significant. 1135: 1136: * parse.y (skip_white_space): Accept char as arg; let caller read it. 1137: (yylex): Change call. 1138: (check_newline): Return 1st nonwhite char after skipping lines. 1139: (skip_white_space): Change call. 1140: * toplev.c (compile_file): Change call. 1141: 1142: * gcc.c: Pass -traditional to cc1. 1143: 1144: * cse.c (cse_insn): Return very early for (set (reg) (call...)). 1145: Mainly to save time. 1146: (cse-insn) Old code to add REG_WAS_0 note wasted time but did nothing. 1147: 1148: * expr.c (clear_pending_stack_adjust): Really do clear it, 1149: if current fcn doesn't want to be inline. 1150: 1151: * cse.c (cse_insn): Speedup: instead of safe_hash, use canon_hash 1152: or HASHREG. 1153: 1154: Mon Jun 6 21:47:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1155: 1156: * jump.c (rtx_renumbered_equal_p): Reject ADDR_VEC fast. 1157: 1158: * cse.c (cse_insn): Ignore a REG_EQUIV or REG_EQUAL note if the 1159: equivalent value is the same as the SET_SRC of the insn. 1160: 1161: * flow.c (life_analysis): Don't call volatile_refs_p for a CALL_INSN; 1162: just assume value is 1. 1163: (propagate_block): Don't call mark_{used,set}_regs for a stack-pop 1164: since if it isn't dead it has no effect on any useful life data. 1165: (mark_set_1): Return quickly if setting stack-ptr, and almost as 1166: quickly if setting any hard reg. 1167: (mark_used_regs): Likewise for refs. 1168: Also don't scan the vector of an ADDR_VEC or ADDR_DIFF_VEC. 1169: (volatile_refs_p): Likewise. 1170: 1171: * varasm.c (output_constant): Discard NOP_EXPR and CONVERT_EXPR 1172: in integer case (they were for casting a pointer). 1173: 1174: * parse.y (compstmt_or_error): Parse a compstmt after ignoring error. 1175: Use this for fctn body so that an error after store_parm_decls 1176: won't recover to xdecls and call store_parm_decls again. 1177: Typical cause was missing semi at end of last parmdecl. 1178: 1179: * parse.y: Add missing semicolons in actions. 1180: (yylex): Don't use yylloc. 1181: 1182: Sun Jun 5 16:14:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1183: 1184: * typecheck.c (build_array_ref): Check arg types here, to make 1185: error message more accurate (not about "addition"). 1186: 1187: Thu Jun 2 02:41:40 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu) 1188: 1189: * cccp.c (collect_expansion): `#' isn't special if -traditional. 1190: 1191: * dbxout.c (dbxout_parms): Don't output a regparm symbol 1192: unless the parm got a hard reg assigned. 1193: 1194: * tm-encore.h (ASM_OUTPUT_DOUBLE): Use 0f... not 0d... 1195: 1196: * tm-vax.h (CHECK_FLOAT_VALUE): Define this. 1197: 1198: Wed Jun 1 17:13:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1199: 1200: * expr.c (expand_call): Have sequence points between args. 1201: 1202: Tue May 31 00:27:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1203: 1204: * expmed.c (store_fixed_bit_field): Avoid shifting by 32. 1205: * cse.c (fold_rtx): 1206: * symout.c (subrange_p): likewise. 1207: 1208: * local-alloc.c (block_alloc): If operands 1 and 2 commute, 1209: try tying output to operand 2 if operand 1 won't do. 1210: 1211: * toplev.c (compile_file): Pass main_input_file to symout_init. 1212: 1213: * tree.c (build_real, build_real_from_int_cst): 1214: Call CHECK_FLOAT_VALUE if it's defined, to report out-of-range values. 1215: 1216: * tree.c (build_real, build_real_from_int_cst): New 1st arg TYPE. 1217: * parse.y (yylex): Pass this arg; requires parsing suffixes first. 1218: * fold-const.c (fold, combine, fold_convert): Pass this arg. 1219: Handling of float binops in `combine' simplified. 1220: 1221: * tm-encore.h (CPP_PREDEFINES): Remove -Dencore since CC lacks it. 1222: 1223: * final.c (output_source_line): Let ASM_OUTPUT_SOURCE_LINE 1224: be used for SDB also. 1225: 1226: Mon May 30 00:21:15 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1227: 1228: * cse.c (insert): Was inserting in wrong place in list. 1229: (exp_equiv_p): Was failing to check validity when x == y. 1230: 1231: * tree.c (build_pointer_type): Handle saveable_obstack 1232: like current_obstack. 1233: 1234: * decl.c (finish_decl): Error in test for zero-size array warning. 1235: 1236: * reload.c (find_equiv_reg): New arg MODE specifies mode in which 1237: an equivalent value is needed. Equivalence must be good in that mode. 1238: In addition, notice overlap with multiword register modes. 1239: Simplify, knowing that registers have already been renumbered. 1240: It was invalidating memory-goals too easily; setting a reg 1241: only invalidates memory-goal if its address varies. 1242: * reload.c, reload1.c, jump.c: Calls pass the new argument. 1243: 1244: * cccp.c: For correct ANSI, must reject `$' in identifiers. 1245: (dollars_in_ident): Variable says whether to allow them. 1246: (rescan): Handle `$' as randomchar if that's 0. 1247: (main): dollars_in_ident is set to 0 by -$, to 1 by -traditional. 1248: (rescan, do_define): Delete former pedantic warnings for `$'. 1249: (initialize_char_syntax, initialize_builtins): Inits split to two 1250: functions; former is called after options are scanned 1251: so `$' is in is_idchar conditionally. 1252: * gcc.c: For -ansi, pass -$ to cccp. 1253: * toplev.c, flags.h: Define dollars_in_ident. 1254: * parse.y (yylex): Treat $ as punctuation unless dollars_in_ident. 1255: Delete old pedantic warning about $. 1256: * tm-vms.h: Define DOLLARS_IN_IDENTIFIERS as 1. 1257: 1258: * cccp.c (rescan): Preprocessing numbers can have signs, after `e'. 1259: 1260: * integrate.c (expand_inline_function): Abort, don't return failure, 1261: if max_regno is too low. I believe this can't happen. 1262: 1263: * typecheck.c (build_binary_op_nodefault): 1264: For ordered comparisons, no pedantic warning about void *. 1265: For MAX, MIN, ditto, and also don't allow pointer vs 0. 1266: 1267: * typecheck.c (build_unary_op): Don't allow pointer for +. 1268: 1269: * typecheck.c (convert_for_assignment): 1270: Add missing warning for case of unrelated pointer types. 1271: Change criteria for new ANSI C draft. 1272: 1273: * optabs.c (expand_binop): Don't set unused target_is_not_an_operand. 1274: 1275: * fold-const.c (fold_convert): Don't set unused inprec, outprec. 1276: 1277: * emit-rtl.c, parse.y: Delete unused var. 1278: 1279: * stor-layout.c (add_vc_sizes): Unused function deleted. 1280: * loop.c (constant_high_bytes): #if 0 this unused function. 1281: 1282: * gcc.c (fatal): Add missing arg to delete_temp_files. 1283: 1284: * cccp.c (dump_defn_1): Add missing arg to skip_quoted_string. 1285: 1286: * reload.c (find_reloads): If constraints don't fit in an `asm', 1287: print error instead of aborting. 1288: 1289: * regclass.c (reg_class_record): Ignore `&' in constraint. 1290: 1291: Sun May 29 00:20:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1292: 1293: * Makefile: Run ranlib only if /usr/bin/ranlib exists. 1294: Add comment saying what to do on system V. 1295: 1296: * tree.c (suspend_momentary): Switch to the saveable_obstack 1297: for the sake of inline functions. 1298: 1299: * flags.h (enum debugger): New enum for write_symbols. 1300: * toplev.c, varasm.c, final.c: Use the enum constants where appro. 1301: Add calls to sdbout paralleling the calls to dbxout; 1302: put each in the appropriate conditional {SDB,DBX}_DEBUGGING_INFO. 1303: 1304: * toplev.c (main): Delete -noreg option; it's now the default. 1305: Make -O an alias for -opt. Rename -g to -gg. -g is alias for -G. 1306: Accept and ignore -Wtrigraphs. 1307: * gcc.c: Simplify the specs. 1308: 1309: * toplev.c (compile_file), tm-*.h: 1310: ASM_FILE_START is now a statement, not just a string to be output. 1311: Output it *after* determining the real source file name. 1312: 1313: * fold-const.c (fold): Simplify x >= CST to x > CST-1 (CST positive). 1314: To simplify this, canonicalize relationals to put constat last. 1315: 1316: * decl.c (duplicate_decls): Make a 2nd errmsg to show previous decl. 1317: 1318: * cccp.c (file_size_and_mode): Delete temporary VMS bootstrap patch. 1319: 1320: * tm-att386.h: New file. 1321: 1322: * decl.c (pushdecl): Warn if a local `extern' decl precedes 1323: a file-scope `static' decl. 1324: 1325: * expr.c (expand_call): No warning for failure to inline. 1326: 1327: * expmed.c (extract_bit_field): copy operand 1 of extv or extzv 1328: into register if memory isn't allowed. 1329: 1330: Sat May 28 02:10:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1331: 1332: * gnulib.c, Makefile: Delete va_end. 1333: 1334: * final.c, symout.c: Check DBX_DEBUGGING_INFO, not NO_DBX_FORMAT. 1335: 1336: * genemit.c (gen_expand): Notice a CALL inside a PARALLEL. 1337: 1338: * regclass.c (init_reg_sets_1): Part of init_reg_set is put in this 1339: new fn which is called after options are scanned. 1340: Now CONDITIONAL_REGISTER_USAGE can depend on the options. 1341: (fix_register): Just alter the data that init_reg_sets_1 will look at. 1342: 1343: * reload1.c (reload): Don't complain if two different but tieable 1344: modes require groups of the same regclass (assuming same size group). 1345: 1346: * cccp.c: Add 3rd arg to all `open' calls. 1347: 1348: * parse.y (check_newline): Typo prevented ignoring whitespace. 1349: 1350: * cccp.c (perror_with_name): fprintf had harmful extra arg. 1351: 1352: * cccp.c (main, trigraph_pcp): -Wtrigraphs means warn if any trigraphs. 1353: 1354: * emit-rtl.c (gen_sequence): If LEN is 1, avoid looking at PATTERN 1355: of something that doesn't have one. 1356: 1357: * reload1.c (alter_frame_pointer_addresses): frame pointer can 1358: occur by itself, not just inside a PLUS. 1359: (reload): Call eliminate_frame_pointer before reload_as_needed. 1360: Otherwise the latter can make reload insns that copy the frame ptr 1361: to a data reg, but 68k can't copy sp+const to a data reg. 1362: 1363: * decl.c (implicitly_declare): Always save the implicit decl 1364: permanently. Reuse an old one if it exists. 1365: * tree.c (resume_temporary_allocation): Used after `end_temporary...' 1366: to go back to temporary allocation. 1367: 1368: * stor-layout (layout_{type,decl}): Call variable_size. 1369: (variable_size): Turn a size into a SAVE_EXPR and either compute 1370: it right away or put it on a list to be computed later. 1371: (get_pending_sizes): Return that list and clear it out. 1372: * stmt.c (expand_start_function): Tell `variable_size' to compute 1373: sizes right away, and compute those saved on the list. 1374: (expand_end_function): Tell it to put them on a list. 1375: 1376: Fri May 27 00:02:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1377: 1378: * dbxout.c (dbxout_symbol): For local static var, use 'V', not 'v'. 1379: 1380: * gcc.c (main): Don't handle SIGHUP or SIGTERM if shell ignored it. 1381: 1382: * Makefile, gcc.c: Propagate Make var `libdir' to gcc search path. 1383: 1384: * expr.c (expand_expr): a PARM_DECL with no rtl can occur in size of 1385: `a' in `foo (a,i) int i; struct {int x[i];} a;', so report an error. 1386: 1387: * flow.c (insn_dead_p): insn that makes stack bigger is never dead. 1388: * combine.c (try_combine): Don't splice out stores into stack ptr. 1389: 1390: * reload.c (find_equiv_reg): Test given regno for OVERLAPPING_REGNO_P. 1391: 1392: * varasm.c (assemble_variable): Use saveable_obstack for allocation. 1393: 1394: Thu May 26 01:17:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1395: 1396: * integrate.c (save_for_inline): Clear unused slots in parmdecl_map. 1397: (There may be some non-parm regs below max_parm_regno.) 1398: * integrate.c (copy_for_inline): Don't crash if parmdecl_map elt is 0. 1399: 1400: * Don't fail to output a static inline function that was referenced 1401: via a local extern decl before its definition. 1402: * expr.c (expand_call): If need to mark a fcn decl addressable, 1403: mark the identifier addressable also. 1404: * typecheck.c (mark_addressable): If marking fcn addressable, 1405: mark the identifier as well. 1406: * decl.c (start_function): If identifier was marked addressable, 1407: propagate it to the function. 1408: 1409: * parse.y (yylex): Check for ERANGE after atof is called. 1410: (Sun doesn't report ERANGE.) 1411: 1412: * loop.c (may_trap_p): Any floating arithmetic may trap. 1413: 1414: Wed May 25 00:03:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1415: 1416: * parse.y: Delete `noalias'. 1417: (asm_operand): Don't allow this to be empty. 1418: (asm_operands): Do allow this to be empty. 1419: 1420: * reload.c (operands_match_p): Don't let REG and SUBREG match 1421: if the reg isn't a hard reg. 1422: No longer nec. to check reg_renumber, now that reload 1423: substitutes the hard regno. 1424: 1425: * reload1.c (reload): Counting existing spilled groups, 1426: check HARD_REGNO_MODE_OK so we don't get fooled by an odd-even pair. 1427: Spill entire need for new groups before spilling any solitary regs. 1428: Reg already counted against max_nongroups can't become part of a group. 1429: (new_spill_reg): Do bookkeeping associated with a new spill-reg. 1430: (n_spills): This var is now static, no longer passed as arg 1431: within the file. 1432: 1433: (reload_reg_class_lower): Handle all group-reloads before solitaries. 1434: (choose_reload_targets): therefore #if 0 the special code for 1435: finding solitary registers that aren't suitable for groups. 1436: But fix two bugs in it: braino deciding whether a reload 1437: is looking for 1 register (not a group). Use CLASS_MAX_NREGS. 1438: Also braino deciding whether a spill reg can be in a group. 1439: Did not fix bug that it fails to test HARD_REGNO_MODE_OK, 1440: so it might split up an even-odd pair. 1441: 1442: * vax.md: Special patterns for 8 and 16-bit fields, to make 1443: move-insns (like the ones for the 68k). 1444: 1445: * tree.c (convert_to_integer): Pass truncation down thru COND_EXPR 1446: as through a binary operator. 1447: 1448: * typecheck.c (build_cond_expr): If unpromoted operand types match, 1449: don't promote them--let containing expression promote (just once). 1450: 1451: Tue May 24 14:46:26 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1452: 1453: * combine.c (subst): Simplify (subreg (sign_extend X) 0). 1454: 1455: * tm-hp9k320.h: Delete NO_DBX_FORMAT. 1456: * Most tm...h files: Define DBX_DEBUGGING_INFO. 1457: * dbxout.c: Change conditional to DBX_DEBUGGING_INFO. 1458: 1459: * integrate.c (expand_inline_function): If inline fcn was declared to 1460: return QI, but actually computes an SI, use SImode for INLINE_TARGET 1461: but actually return a QI. 1462: 1463: * varasm.c (force_const_mem): Failed to determine alignment bdry 1464: from machine mode. 1465: 1466: * jump.c (jump_optimize): Don't delete (move X Y) if X or Y is a 1467: PRESERVE_DEATH_INFO_REGNO_P register. 1468: 1469: * final.c (output_addr_const): In PLUS, output constant term last. 1470: 1471: * final.c (final): Before outputting an insn, do FINAL_PRESCAN_INSN. 1472: 1473: * final.c (next_block_index): No longer static. 1474: (final): Add SDB_DEBUGGING_INFO cases for outputing NOTEs 1475: for beginning and end of a block. 1476: (output_source_line): Add SDB_DEBUGGING_INFO case for line number. 1477: * varasm.c (assemble_function): Add code for SDB symbol output. 1478: 1479: * gnulib.c: Allow config to override INTIFY. 1480: New macro SFVALUE for data type to return a single-float in. 1481: 1482: * combine.c (remove_death): No longer `static'. 1483: 1484: * reload1. (choose_reload_targets): PRESERVE_DEATH_INFO_REGNO_P 1485: selects hard regs for which death info should be updated for final. 1486: 1487: * reload1.c (reload_as_needed): Let INSN_CLOBBERS_REGNO_P 1488: prevent inheritance of certain reloads. 1489: 1490: * reload.c (find_equiv_reg): Let OVERLAPPING_REGNO_P reject 1491: an equiv reg. Needed for funny float regs on 80387. 1492: 1493: * cccp.c (do_ident): Define #ident as a no-op if IDENT_DIRECTIVE. 1494: Warn if pedantic. 1495: (do_sccs): Warn if pedantic. 1496: 1497: * emit-rtl.c (restore_reg_data): Set cur_insn_uid--prevent duplicates. 1498: 1.1.1.2 root 1499: Sun May 22 12:25:06 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1500: 1501: * Version 1.22 released. 1502: 1503: * reload1.c (reload): Spilling isn't finished till max_nongroups is 0. 1504: 1505: * tm-encore.h (PRINT_OPERAND): No `$' before a CONST. 1506: 1507: Sat May 21 13:08:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1508: 1509: * fold-const.c (combine): Typo in MIN_EXPR, MAX_EXPR. 1510: 1511: * reload1.c (reload): Was counting insn_groups as total size of groups, 1512: not number of groups. 1513: A new spilled group counts against group-needs of superclasses. 1514: 1515: * parse.y (parmlist{,_or_identifiers}_1): In error case, 1516: return a tree list just as in the other cases. 1517: 1518: Fri May 20 02:14:51 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1519: 1520: * config-vax.h, config-m68k.h: If __GNUC__, use builtin-alloca. 1521: 1522: * genpeep.c (match_rtx): Generated code was testing the wrong rtx 1523: when testing an int or string at a nonzero index in the rtx. 1524: 1525: * reload.c (find_reloads): Typo checking `modified' for conflict 1526: with an earlyclobber. 1527: 1528: * reload.c (find_equiv_reg): Reject stack ptr as return value. 1529: 1530: * expr.c (expand_builtin): Alloca must do pending stack adjust. 1531: 1532: Thu May 19 13:01:01 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1533: 1534: * flow.c (propagate_block): Skipping back across libcall didn't happen 1535: due to failing to set PREV. 1536: 1537: * expr.c (emit_library_call): Code to increment and decrement 1538: current_args_size broke since emit_call_1 was changed to restore it. 1539: 1540: * combine.c (try_combine): When i1 or i2 auto-incs a reg, don't combine 1541: if i3 uses that reg. 1542: 1543: * config-hp9k3.h: #define bcopy, bcmp, bzero here. 1544: * conf-hp9k320.h: Delete file. 1545: 1546: * integrate.c: Don't include strings.h--no need. 1547: 1548: * stmt.c (expand_asm_operands): Don't make zero-length vectors. 1549: 1550: * loop.c (scan_loop): After a fcn call, maybe-trap insns can't move. 1551: The fcn call might exit and that would prevent the trap. 1552: 1553: * reload1.c (reload): Set reload_first_uid to next uid to be used. 1554: * reload.c (find_equiv_reg): Use reload_first_uid to ignore insns 1555: that are due to reloading--only if reload_reg_p is not 0 or 1. 1556: 1557: Wed May 18 22:11:20 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1558: 1559: * typecheck.c (build_unary_op): Don't complain about array 1560: as argument to `!'. 1561: 1562: * decl.c (pushdecl): If locally declaring an extern function, 1563: check the identifier's global value in case it's an inline function. 1564: 1565: Mon May 16 03:06:08 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1566: 1567: * output-ns32k.c (output_shift_insn): New fn, maybe turn shift to adds. 1568: (reg_or_mem_operand): Predicate for a non-immediate general_operand. 1569: * tm-ns32k.h (CONST_OK_FOR_LETTER_P): Define letter K. 1570: * ns32k.md: Use output_shift_insn for various addr insns that shift. 1571: Don't allow nonexplicit constants in lprd, multiply or truncate insns. 1572: Use reg_or_mem_operand for constraint in op1 of divide insns; 1573: a constant there causes regclass to screw up. 1574: Split alternative constraints on the bit-field insns to avoid 1575: out-of-range operands in exts, inss. Some cases of extraction 1576: can be done faster via memory. 1577: 1578: * flow.c (mark_set_1): When adding a REG_DEAD note, inc reg_n_deaths. 1579: 1580: * dbxout.c (dbxout_type_def): Do nothing for {integer,char}_type_node. 1581: 1582: Sun May 15 00:56:44 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1583: 1584: * tm-sequent.h, tm-ns32k.h, tm-encore.h (PRINT_OPERAND): 1585: Was treating SF's as SI's. 1586: 1587: * expr.c (emit_move_insn): Check all CONST_DOUBLEs for 1588: LEGITIMATE_CONSTANT_P and put them in memory if not. 1589: 1590: * local-alloc.c (combine_regs): Allow a reg to be tied to a qty 1591: if the reg's class is contained in the qty's class 1592: (as well as if the reg's class contains the qty's class as before). 1593: Rename qty_reg_class to qty_min_class and make it the smallest 1594: class of any reg tied to the qty. 1595: (reg_class_subset_p, reg_meets_class_p, update_qty_class): 1596: New subroutines to implement this. 1597: (local_alloc): Init reg_qty to -1 for pseudos not in cur. basic block. 1598: (reg_is_born): Abort if pseudo not in basic block has -2 in reg_qty. 1599: 1600: * jump.c (rtx_renumbered_equal_p): Insist that modes of REGs match. 1601: 1602: Sat May 14 01:05:35 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu) 1603: 1604: * stmt.c (expand_return): Empty frame frame_offset isn't nec. 0. 1605: 1606: * expr.c (emit_call_1): Use stack_size_rtx everywhere appropriate. 1607: 1608: * decl.c (init_decl_processing): Set sizetype to `unsigned long' 1609: if `int' is less than a word. 1610: 1611: * stddef.h (size_t, ptrdiff_t): Both are now long. 1612: 1613: Fri May 13 01:06:00 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu) 1614: 1615: * emit-rtl.c (gen_lowpart): Handle non-lowpart subreg as arg. 1616: 1617: * recog.c (register_operand): VOIDmode means allow any mode. 1618: (immediate_operand, nonmemory_operand): Likewise. 1619: 1620: * emit-rtl.c (classify_insn): Update for changed CALL_INSN format. 1621: (emit): New function to emit an rtl pattern as the right kind of insn. 1622: * jump.c (simplejump_p): No longer static. 1623: 1624: * genemit.c (gen_expand): For match_operand at top level, call `emit'. 1625: Use `emit_call_insn' when appropriate. 1626: (gen_exp): Handle rtx's that contain strings. 1627: 1628: * final.c, symout.c: If not NO_DBX_FORMAT, include stab.h to get the 1629: N_... symbols. Use their default definitions only if they're undef. 1630: 1631: * expr.c (expand_call) [no PUSH_ROUNDING]: Always set argblock 1632: if there are any stack-passed arguments. 1633: 1634: * typecheck.c (build_unary_op): Mark all increment-exprs volatile. 1635: 1636: * recog.c (reg_renumbered_fits_class_p): Delete private copy of 1637: reg_class_contents. 1638: 1639: * reload1.c (forget_old_reloads): Handle PARALLEL case by recursion. 1640: Explicit store into a spilled reg invalidates old reloaded contents; 1641: this can occur when we drop through into a basic block whose need was 0 1642: (and so whose local pseudos were not spilled). 1643: 1644: * gcc.c (main): If -v, print gcc's own version; also no error msg 1645: if no input files. 1646: 1647: * loop.c (may_trap_p): Mem ref to nonconstant address may trap. 1648: (scan_loop): Check may_trap_p only when insn is in other respects ok. 1649: 1650: * cexp.y: #include config.h (for decl of alloca on some machines). 1651: 1652: Thu May 12 17:24:19 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1653: 1654: * regclass.c (regclass): When inserting an insn at start of block, 1655: update basic_block_head. 1656: 1657: Wed May 11 00:47:09 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 1658: 1659: * stmt.c (assign_parms): DECL_OFFSET should be offset as passed 1660: (not including big-endian width-change correction). 1661: 1662: * typecheck.c (shorten_compare): Set unsignedp[01] right in case 1663: where get_narrower makes no change. 1664: (build_binary_op_nodefault): Likewise for shortening shifts. 1665: 1666: * stmt.c (expand_end_case): Use type_for_size to get the type 1667: to convert the index to, since `int' is wrong if -mshort. 1668: 1669: * decl.c (grokdeclarator): Don't check PARM type for completeness. 1670: (grokparms): If fn definition, check all parm types for completeness. 1671: (store_parm_decls): Likewise. 1672: 1673: Tue May 10 22:42:13 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 1674: 1675: * typecheck.c (store_init): For invalid init, store error_mark_node. 1676: * varasm.c (assemble_variable): Ignore error_mark as an init. 1677: * stmt.c (expand_decl): If init is error_mark, init to 0 if possible. 1678: This avoids a spurious "uninitialized variable" warning. 1679: 1680: Sun May 8 17:08:07 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu) 1681: 1682: * tm-hp9k320.h: Define STRUCTURE_SIZE_BOUNDARY. 1683: 1684: * decl.c (get_parm_info): Replaces get_parm_types. Returns a tree_list 1685: containing parmdecls and tag list as well as type list. 1686: (grokparms): Accept that tree_list as argument. 1687: (grokdeclarator): Calling grokparms, say "not a definition" for the 1688: function declarators for arg or value types within a definition. 1689: 1690: * parse.y: Call get_parm_info. 1691: (parmlist_or_identifiers): If identifiers, make a tree_list 1692: like the one get_parm_info returns. 1693: 1694: Fri May 6 16:44:19 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1695: 1696: * m68k.md (casesi): Delete template aside from match_operand's. 1697: 1698: * tm-encore.h: New file from Robert Brown. 1699: 1700: * ns32k.md: Use %c in some addr insns. 1701: (tst*): Use {d,f,}const0_rtx to make the constant 0; OS-independent. 1702: (call, call_value): Use %? before address in a bsr. 1703: 1704: * output-ns32k.c (print_operand_address): To output a local label, 1705: use `output_asm_label'. 1706: Make SEQUENT_ADDRESS_BUG conditionals happen at compile time. 1707: 1708: * tm-ns32k.h: Delete SEQUENT_HAS_FIXED_THEIR_BUG. 1709: (PRINT_OPERAND): Output nothing for `%?'. 1710: * tm-sequent.h: (PRINT_OPERAND): Output nothing for `%?'. 1711: 1712: * final.c (output_asm_label): No longer `static'. 1713: 1714: Thu May 5 09:03:37 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1715: 1716: * explow.c (memory_address): Ignore flag_force_reg unless optimize. 1717: Also ignore it for addresses of stack slots (avoid invalid REG_EQUIVs). 1718: 1719: * typecheck.c (digest_init): If traditional, allow `char x[100]=0;'. 1720: 1721: * tree.c (get_unwidened): Don't alter a COMPONENT_REF if 1722: innerprec equals the precision of the existing type. 1723: It was changing pointers to integers. 1724: 1725: * m68k.md (movdi): Put all fpregs in separate constraint alternatives 1726: and handicap them so spill reg won't be an fp reg. 1727: 1728: * parse.y (yyerror): Use the arg as part of the error message. 1729: 1730: * decl.c (start_function): Give the RESULT_DECL type int rather 1731: than char or short. 1732: * typecheck.c (c_expand_return): Convert value from fn's return type 1733: to the RESULT_DECL's type. 1734: 1735: * Avoid generating dbx xrefs to enums, since dbx loses on them. 1736: Do this by outputting all types in order of definition. 1737: This is done only for top-level types; problem remains for local ones. 1738: 1739: * decl.c (finish_decl): Do rest_of_decl_compilation for TYPE_DECLs. 1740: * toplev.c (rest_of_decl_compilation): Do dbxout_symbol for them. 1741: 1742: * dbxout.c (dbxout_symbol): Check DECL_RTL only for fns and variables. 1743: For a TYPE_DECL, ignore it if the type was already output 1744: and its preferred name is the TYPE_DECL. Else output type in full. 1745: 1746: * decl.c (pushdecl): Don't prefer typedef names to type tag names. 1747: 1748: * stor-layout.c (chain_type): Build chain in forward order. 1749: 1750: 1751: * tm-3b1.h (ASM_OUTPUT_CASE_LABEL): Error getting length of table. 1752: 1753: * tm-3b1.h: #define SGS_3B1 was missing. 1754: 1755: * typecheck.c (build_compound_expr): Ignore non-volatile subexprs. 1756: 1757: * fold-const.c (fold): Simplify (unsigned) foo >= 0, etc. 1758: 1759: * stor-layout.c (layout_type): Set TYPE_PRECISION of ptr types. 1760: 1761: Wed May 4 08:06:25 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1762: 1763: * parse.y: Don't use the Bison @ construct, since it makes parser slow. 1764: 1765: * decl.c (finish_function): Delete FILENAME and LINE args. 1766: 1767: * typecheck.c (digest_init): No pedantic warning for array="string". 1768: 1769: Tue May 3 09:09:30 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1770: 1771: * toplev.c (main): Ignore `-Wcomment'. 1772: * gcc.c: Pass -Wall to cpp (which treats it like -Wcomment). 1773: 1774: * tm-isi68.h: Greatly simplified; now works only with GAS. 1775: 1776: * tm-m68k.h (EMPTY_FIELD_BOUNDARY): now 16 (right on Sun, ISI and HP). 1777: * tm-sun3.h: No need to redefine it. 1778: 1779: * decl.c (finish_struct): Don't ever make DECL_ALIGN smaller. 1780: 1781: * decl.c: Rename min, max to MIN, MAX. 1782: 1783: * typecheck.c (convert_for_assignment): Avoid warning if assigning 1784: a `void *' from a `const void *'. 1785: 1786: * combine.c (FAKE_EXTEND_SAFE_P): Turn off for mem refs; avoid faults. 1787: 1788: Mon May 2 07:28:27 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1789: 1790: * tm-vax.h: Support -mg switch to use g-float instead of d-float. 1791: New macros TARGET_G_SWITCH, ASM_DOUBLE_CHAR. 1792: Changes in TARGET_SWITCHES, ASM_OUTPUT_DOUBLE. 1793: Define code `#' for PRINT_OPERAND. 1794: * vax.md: use `#' in opcodes for doubleword float. 1795: 1796: * tm-vax.h: Define UDIVSI3_LIBCALL and UMODSI3_LIBCALL. 1797: 1798: * cccp.c (main, do_include): Implement -I- switch. 1799: 1800: * jump.c (jump_optimize): When hunting NOTE_INSN_FUNCTION_END, 1801: skip final RETURN (found on the vax). 1802: 1803: * toplev.c (main): -Wall is equiv to all -W switches combined. 1804: 1805: * stmt.c (expand_decl, expand_end_bindings, 1806: expand_{start,end}_function). The -noreg treatment of `register' vars 1807: is extended to vars used as addresses of vars in memory (varying-size 1808: structures). 1809: (use_variable): Emit USE for regs used in specified rtx. 1810: 1811: * cse.c (fold_cc0): Stack-frame addresses are always nonzero. 1812: (fold_rtx): 0200 bit in prev_insn_cc0 means only zeroness is known. 1813: 1814: * parse.y (parmlist): poplevel needs 3 args. 1815: 1.1 root 1816: Sun May 1 07:20:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1817: 1.1.1.2 root 1818: * decl.c (start_function): typo checking for incomplete return type. 1819: 1820: * emit-rtl.c (restore_reg_data): If a pseudo appears nowhere, 1821: don't leave its slot empty; create a pseudo for that slot. 1822: 1.1 root 1823: * Version 1.21 released. 1824: 1825: * expr.c (expand_call): Merge duplicate code for structure_value_addr. 1826: 1827: * emit-rtl.c (restore_reg_data): Delete error check; it's legit for 1828: a pseudo reg to appear nowhere in the rtl. 1829: 1830: Sat Apr 30 07:35:31 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1831: 1832: * integrate.c (copy_rtx_and_substitute): Fix typo for arg_pointer_rtx. 1833: 1834: * decl.c (poplevel): Undo previous change with #if 0. 1835: 1836: * stmt.c: `struct nesting' now records the depth on the stack. 1837: Each expand_start... must update and record the depth; 1838: each expand_end... uses macro POPSTACK to pop. 1839: This way, if a level isn't explicitly popped, it won't cause 1840: circular structure. 1841: 1842: * dbxout.c (dbxout_type): Replace with main variant only if incomplete. 1843: 1844: * typecheck.c (build_unary_op): Test of `pedantic' was backwards. 1845: 1846: * expr.c (STACK_BYTES): Typo in definition. 1847: 1848: * typecheck.c (build_binary_op_nodefault): Rename code1 to code0, 1849: and likewise for code2, tt1, tt2. 1850: 1851: * expr.c (expand_call): Wrong arg order for warning_with_decl. 1852: 1853: Fri Apr 29 08:41:06 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1854: 1855: * integrate.c (copy_decl_tree): New arg is depth in recursion. 1856: Always discard the outermost LET_STMT being copied; never discard any 1857: others. This way the copied LET_STMTs correspond to the copied NOTEs. 1858: 1859: * varasm.c (decode_rtx_const): For SYMBOL_REF, use string address 1860: not address of the rtx. Library fns have only one copy of the name 1861: but many copies of the SYMBOL_REF. 1862: 1863: * expr.c (emit_call_1): New arg OLD_ARGS_SIZE is used to reset 1864: current_args_size. 1865: (emit_library_call, expand_call): Pass new arg; don't restore it here. 1866: 1867: * flow.c (life_analysis): Don't mark sp live at end if fn is empty. 1868: 1869: * parse.y (parse_or_identifiers_1): Handle `error' in here, not in 1870: callers notype_declarator etc. Also read the closeparen here. 1871: 1872: Thu Apr 28 12:43:52 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1873: 1874: * expmed.c (expand_shift): In extzv strategy, handle the operand 1875: predicates for operands 0, 1 and 3. (Not needed for 2.) 1876: * vax.md: extzv pattern for SImode op1 must recognize general_operand 1877: since the pattern named "extzv" allows them. 1878: 1879: Wed Apr 27 00:52:44 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1880: 1881: * expr.c (emit_call_1): New arg NEXT_ARG_REG describes # regs 1882: used for passing args. 1883: (emit_library_call, expand_call): Provide that argument. 1884: 1885: * explow.c (round_push): New fn: round arg up to STACK_BOUNDARY. 1886: * expr.c (expand_builtin): Use round_push on size for __builtin_alloca. 1887: * stmt.c (expand_decl): Likewise for variable-size objects. 1888: * expr.c (expand_call): Likewise for args_size.var. 1889: Also use STACK_BOUNDARY to round a constant arg-block size. 1890: Pass emit_call_1 that rounded value. 1891: (emit_library_call): Round arg_size with STACK_BOUNDARY. 1892: * tm-spur.h: Define STACK_BOUNDARY instead of ROUND_CALL_BLOCK_SIZE. 1893: * tm-m68k.h: Define STACK_BOUNDARY as 16. 1894: 1895: * expr.c (emit_call_1): Don't change current_args_size. 1896: (emit_library_call, expand_call): Always restore current_args_size 1897: to ambient value, after calling emit_call_1. 1898: 1899: * tm-hp9k320.h: Don't define USG here. 1900: * config-hp9k3.h: New file. USG defined here. 1901: 1902: * tm-3b1.h: #undef ASM_OUTPUT_ASCII (a defn came from tm-hp9k320.h). 1903: 1904: * decl.c (grokdeclarator primarily): Cast all RID_... to (int) before 1905: using them in arithmetic. Placates CC on Sequent. 1906: 1907: * emit-rtl.c (emit_jump_insn): Return proper value, for a SEQUENCE. 1908: * emit-rtl.c (emit_call_insn): Handle SEQUENCE like emit_jump_insn. 1909: 1910: Tue Apr 26 02:41:26 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu) 1911: 1912: * cccp.c (macroexpand): If traditional, don't disable called macro. 1913: (macarg1): Was failing to count backslash-newline inside a string 1914: in a macro arg as part of file's linenumber. 1915: 1916: Mon Apr 25 18:46:53 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu) 1917: 1918: * jump.c (jump_optimize): Don't do April 20 optimization on first 1919: iteration; let other simpler opts be done before this is considered. 1920: 1921: Sun Apr 24 02:45:28 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1922: 1923: * tree.c (staticp): a CONSTRUCTOR can be static. 1924: 1925: * varasm.c (output_constant_def): Always return memref, not address. 1926: 1927: * decl.c (complete_array_type): New fn, make an array type complete 1928: based on an initializer. 1929: (finish_decl): Use complete_array_type. 1930: * parse.y (expr_no_commas): When parsing a constructor, 1931: Use complete_array_type on constructors for incomplete array types. 1932: 1933: * typecheck.c (digest_init, store_init_value,process_init_constructor): 1934: It's now TREE_STATIC, not TREE_ADDRESSABLE, that records that all elts 1935: in a CONSTRUCTOR are simple constants. 1936: (digest_init): A CONSTRUCTOR with non-null type is treated as ordinary 1937: expression, not as a braced initializer. 1938: Allow init of an array from an array-valued expr; warn if pedantic. 1939: * expr.c (expand_expr, CONSTRUCTOR case): Put in memory only if static. 1940: Was making an extraneous level of MEM; output_constant_def does it all. 1941: 1942: * typecheck.c (build_unary_op): Allow ADDR_EXPR of static CONSTRUCTOR. 1943: (default_conversion): Likewise. 1944: (initializer_constant_valid_p): Constructor is ok if static. 1945: 1946: * gcc.c: Change -fnostd... to -nostd... 1947: * cccp.c (main): Likewise. 1948: 1949: * Everywhere: Use REG_NOTE_KIND to get the kind of a reg note. 1950: 1951: * rtl.c (find_regno_note): New function. 1952: * flow.c (flow_deadp): Deleted; caller uses find_regno_note. 1953: * global-alloc.c (reg_dead_p): Deleted. 1954: (global_conflicts): Use find_regno_note instead of reg_dead_p. 1955: 1956: * final.c (final) Use find_reg_note to look for a REG_INC. 1957: * combine.c (insn_has_inc_p): deleted; callers use find_reg_note. 1958: (try_combine): Use find_reg_note whenever looking for a REG_INC. 1959: (regno_dead_p, remove_death): Check the REG_NOTE_KIND before assuming 1960: that the datum in it is a REG. 1961: * reload1.c (reload): Use find_reg_note to find a REG_EQUIV. 1962: 1963: * gcc.c: Don't delete .o files if not all compilations succeed. 1964: (record_temp_file): New arg SUCCESS_ONLY--delete file only if succeed. 1965: (delete_temp_files): New arg SUCCESS says compilation succeeded. 1966: (store_arg): Now 3 possibilities for arg TEMPNAMEP; 2 = del on success. 1967: (do_spec_1): For %d, set delete_this_arg to 2. 1968: 1969: * decl.c (poplevel): Warn about any still-incomplete type-tags. 1970: 1971: Sat Apr 23 02:54:16 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu) 1972: 1973: * expr.c (expand_builtin): For alloca, round arg up to multiple 1974: of PARM_BOUNDARY. Also to convert it to Pmode unless it already is. 1975: 1976: * stor-layout.c (layout_union): Bug in 14 April change: 1977: use caller-specified alignment as minimum, not as maximum. 1978: 1979: * parse.y (skip_white_space): Avoid infinite loop on unterm. comment. 1980: 1981: Fri Apr 22 00:22:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1982: 1983: * cccp.c: Text following #else or #endif is just a warning. 1984: (rescan): Digit-case was dropping into the $-case; reorder. 1985: 1986: * cccp.c (rescan): Comment start when -traditional was output as 1987: `/*'; should be nothing. 1988: 1989: * jump.c (jump_optimize): Fix prev change: 1990: do nothing if range1end == range2end; 1991: don't lose any NOTEs when splicing. 1992: 1993: * flow.c (propagate-block): For CALL_INSN, clobber the call-used regs 1994: only after mark_set_regs is done; avoids confusion about lifespan 1995: of function value reg. 1996: 1997: * gcc.c: Pass -Wcomment to cpp. 1998: 1999: * cccp.c (main, rescan): If -Wcomment, warn if `/*' inside comment. 2000: 2001: * decl.c (duplicate_decls): Ignore `inline' decl following definition. 2002: 2003: * m68k.md (casesi): Split it up into subroutines, so insns emitted 2004: by the call to memory_address (on 68000) come in the right place. 2005: 2006: * combine.c (record_dead_and_set_regs): Notice storing in a SUBREG. 2007: 2008: * integrate.c (expand_inline_function): Insn to copy a subroutine's 2009: return-value was being output twice, once incorrectly. 2010: 2011: * reload.c (find_equiv_reg): A stack-push insn does not invalidate 2012: an equiv for a goal in memory. 2013: Any other write to memory does invalidate any goal in memory 2014: (PARALLEL case failed to check for this). 2015: 2016: * expmed.c (expand_shift): In the extzv clause, force shifted value 2017: out of memory if -fforce-mem. 2018: 2019: * print-tree.c (prtypeinfo): Some attributes were missing. 2020: (dump): In ..._TYPE nodes, ignore the TREE_CHAIN field. 2021: 2022: * cse.c (note_mem_written): Pushing on stack does not invalidate mem. 2023: 2024: * vax.md (extv/andl peephole opt): Made incorrect code if output was 2025: pushed on stack. Added special case code. 2026: (extv, extzv for SImode operand): Require register_operand. 2027: 2028: Thu Apr 21 00:24:52 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 2029: 2030: * stmt.c (assign_parms): Round current_function_pretend_args_size up. 2031: 2032: * integrate.c: `pushlevel' arg was missing. 2033: 2034: * dbxout.c (dbxout_type): Undo rest of March 29 change: 2035: When a named type is first seen inside another type, output an xref 2036: and let the real definition come out later. 2037: It is strange that Sun dbx has sometimes appeared to demand 2038: one strategy and sometimes appeared to demand the other. 2039: 2040: * typecheck.c (convert_for_assignment): Allow conversion to or from 2041: `const void *', etc., unless pedantic. 2042: 2043: * decl.c (get_parm_types): For `foo (void){}', set last_function_parms 2044: to nil so store_parm_decls won't lose. 2045: 2046: * combine.c (subst): (plus (plus X N) -N) => X. 2047: 2048: * explow.c ({anti_,}adjust_stack): Don't make a copy of 2049: `stack_pointer_rtx'. 2050: 2051: * integrate.c (expand_inline_function): Typo testing for the 2052: USE that indicates a CALL_INSN's value is being returned. 2053: 2054: * expr.c (expand_builtin, alloca case): Copy arg to reg before 2055: adjusting stack, to avoid invalid insns on some machines. 2056: 2057: Wed Apr 20 00:15:14 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu) 2058: 2059: * typecheck.c (build_binary_op_nodefault): When shortening, 2060: get_narrower may make no change because ARGn is already narrow. 2061: In this case, set UNSIGNEPn from ARGn's type. 2062: 2063: * typecheck.c: Rename ARG1,ARG2 to ARG0,ARG1, etc. in several fns. 2064: 2065: * tm-vax.h: Turn off continuation on DBX output. 2066: 2067: * typecheck.c (build_function_call): Don't change __builtin_ffs to an 2068: FFS_EXPR. Note that __builtin_alloca has always made a CALL_EXPR. 2069: * expr.c (expand_builtin): New function expands all CALL_EXPRs that 2070: are really built-in functions. 2071: (preexpand_calls): Do nothing to a CALL_EXPR for a built-in function. 2072: 2073: * loop.c (count_loop_regs_set): Don't move a reg that is in a CLOBBER. 2074: 2075: * stupid.c (stupid_mark_refs): Was getting hard reg's mode from 2076: the wrong place. 2077: 2078: * rtl.c (note_stores): Typo in checking vector elt for SET vs CLOBBER. 2079: 2080: * stmt.c (expand_end_bindings): If restoring stack level, 2081: first do pending stack adjust (so it won't be done erroneously after). 2082: (expand_goto): likewise. 2083: 2084: * rtl.h: LABEL_NUSES was an rtx. It should be an int. 2085: * stmt.c (expand_label, expand_goto): Delete frobbing with LABEL_NUSES; 2086: the value stored there was the same as the CODE_LABEL rtx. 2087: 2088: * jump.c (jump_optimize): Detect if (foo) ...; else { ... break;} 2089: and change to if (! foo) { ... break;} else ...; so can drop out. 2090: (next_label): New fn returns the next label after given insn. 2091: 2092: Tue Apr 19 21:30:05 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2093: 2094: * flow.c (insn_dead_p): Delete special handling for stack ptr. 2095: (mark_set_regs, mark_used_regs): Likewise. 2096: (life_analysis): Mark stack ptr live at end of fn if necessary. 2097: (propagate_block): Mark stack ptr live leading up to a CALL_INSN. 2098: 2099: * jump.c (jump_optimize): #if 0 around stack-adjust-deletion code. 2100: 2101: * cse.c (fold_rtx): Change const_arg from an array to 3 separate 2102: scalars for the first three operands. 2103: Handle SIGN_EXTEND and ZERO_EXTEND. 2104: 2105: * integrate.c (copy_rtx_and_substitute): If arg is 0, return 0. 2106: (expand_inline_function): Separate vars for old pattern and new insn. 2107: 2108: * expr.c (expand_call): Set TREE_ADDRESSABLE if call is not inlined. 2109: 2110: Tue Apr 19 02:25:22 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2111: 2112: * Version 1.20 released. 2113: 2114: * tm-ns32k.h: Define new reg class GEN_OR_FLOAT_REGS 2115: so that GENERAL_REGS and FLOAT_REGS have a union. 2116: 2117: * tm-ns32k.h (GO_IF_LEGITIMATE_ADDRESS): Recognize a stack-push. 2118: * ns32k.md: Many constraints must now allow or reject pushes. 2119: Delete the special patterns for pushing. 2120: 2121: Mon Apr 18 06:02:39 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu) 2122: 2123: * reload1.c (forget_old_reloads): For a multiword hard reg, 2124: forget old reloads for each word. 2125: 2126: * reload.c (find_reloads): Typo in calling push_replacement. 2127: 2128: * tm-ns32k.h (HARD_REGNO_MODE_OK): Failed to allow fp regs for SFmode. 2129: 2130: Sun Apr 17 01:21:35 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2131: 2132: * tm-sequent.h (PRINT_OPERAND): Handle absolute integer memaddress. 2133: 2134: * ns32k.md: Add DImode push insns. Add QImode and HImode push insns. 2135: Supply missing statement in movsf. 2136: 2137: * dbxout.c (dbxout_type): Don't contin before 1st field of struct. 2138: 2139: * dbxout.c (dbx_continue): Use DBX_CONTIN_CHAR instead of backslash. 2140: 2141: * loop.c (scan_loop): Ov vax, the "loop-entry jump" can be a return, 2142: in which case perhaps there is no label following it. 2143: Detect phoniness of loop before looking for that label. 2144: 2145: * decl.c (init_decl_processing): Builtin fn names start with `__'. 2146: 2147: * typecheck.c (shorten_compare): Warn about constant result only in 2148: cases like (char)x < 0x80, where old C compilers made it -0x80. 2149: 2150: * vax.md: All jbs/jbc/jlbs/jlbc patters with op0 in SImode 2151: must reject mode-dependent memory addresses. 2152: 2153: * recog.c (mode_independent_operand): Test for general operand 2154: that doesn't have a mode-dependent memory address. 2155: 2156: * varasm.c (assemble_function): ASM_DECLARE_FUNCTION_NAME, if def, 2157: is now responsible for outputting the function name as a label. 2158: 2159: Sat Apr 16 05:02:55 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2160: 2161: * cccp.c (do_xifdef): Warn about punctuation or other junk in argument. 2162: Warn about no argument. If pedantic, warn if arg starts with digit. 2163: If traditional, ignore all after first non-idchar and never warn. 2164: 2165: Thu Apr 14 01:12:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2166: 2167: * integrate.c (expand_inline_function): Typo for addressable parms. 2168: 2169: * cse.c (insert_regs): Copying half a DImode into half of another 2170: does not make the two DImode regs equivalent. 2171: 2172: * recog.c (general_operand): Was failing to accept symbol_ref:SI 2173: when MODE arg was VOIDmode. 2174: 2175: * expr.c (preexpand_calls): For RTL_EXPR, do nothing. 2176: 2177: * decl.c (start_enum, build_enumerator): Remember default for next one 2178: as a tree node (so the high-half isn't lost in a negative one). 2179: 2180: * stor-layout.c (layout_{record,union}): Pay attn to initial value 2181: of TYPE_ALIGN in computing final alignment. 2182: (layout_union): Round size up to multiple of the alignment. 2183: 2184: * decl.c (finish_struct): Don't alter size after type is laid out. 2185: Instead, set TYPE_ALIGN before layout_type. 2186: 2187: * reload1.c (choose_reload_targets): Introduce reg_has_output_reload. 2188: If there are two separate reloads (one in and one out) 2189: for the same (hard or pseudo) reg, always set reg_last_reload_reg 2190: based on the output reload. 2191: 2192: Wed Apr 13 21:26:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2193: 2194: * reload.c (find_reloads_address_1): Always barf if a "constant" 2195: register is autoincremented. 2196: 2197: * parse.y (structsp): suspend_momentary before start_enum; 2198: else some nodes made by start_enum might be momentary. 2199: 2200: * stmt.c (expand_start_case): New arg is nominal type for comparison 2201: (which is the promoted type of the index expression). 2202: (pushcase): Always convert VALUE to that nominal type 2203: before validating it. 2204: * parse.y (case stmt): Promote each case-value before pushcase. 2205: * typecheck.c (c_expand_start_case): Promote the index-expr 2206: to determine the nominal type, before get_narrower. 2207: 2208: Wed Apr 13 12:43:08 1988 Chris Hanson (cph at kleph) 2209: 2210: * tm-hp9k320.h: Define ASM_FORMAT_PRIVATE_NAME. HPUX asm forbids 2211: `.' in identifiers, so use `___' (there is some danger in this choice). 2212: 2213: Tue Apr 12 23:26:48 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2214: 2215: * local-alloc.c (block_alloc): Make 1 extra slot in regs_live_at. 2216: 2217: * stmt.c (optimize_bit_field): Function moved from reload1.c. 2218: When need to generate a SIGN_EXTEND or ZERO_EXTEND, make it a separate 2219: insn and use gen_extend_insn to make it. 2220: * optabs.c (gen_extend_insn): New fn, construct body of an insn 2221: to extend Y and store in X. 2222: 2223: Mon Apr 11 19:20:57 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu) 2224: 2225: * decl.c (finish_decl): Error if static var has variable size. 2226: 2227: * parse.y (yylex): Warn if int const is out of range. 2228: 2229: * parse.y: New keyword __alignof. 2230: * typecheck.c (c_alignof): Given a type, return its alignment in bytes. 2231: 2232: * typecheck.c (c_sizeof{,_nowarn)): Don't return integer_one_node; 2233: use build_int to make sure we get something with type `sizetype'. 2234: 2235: * Support variable-sized structures (containing var-sized arrays). 2236: 2237: * stmt.c (assign_parms): Handle parms whose size varies. 2238: Use `memory_address' when constructing memrefs to args; 2239: no need to set `invalid_stack_slot'. 2240: Don't make a REG_EQUIV note for a scalar arg at variable offset. 2241: * stor-layout.c (genop, build_int): No longer `static'. 2242: 2243: * stor-layout.c (convert_units): Optimize ceil (ceil(x,2)*2, 4) etc. 2244: 2245: * stmt.c (expand_decl): Don't abort if var-sized object has init. 2246: Convert variable size from units of DECL_SIZE_UNIT to units of bytes. 2247: 2248: * expr.c (emit_push_insn): Arg ARGS_SO_FAR is now an rtx. 2249: Pay attention to ARGS_ADDR even if machine has push insns. 2250: (expand_call): Handle variable-sized arguments. 2251: If have any such, push entire arg-block in advance. 2252: Record each arg's offset during first loop and don't change args_size 2253: during the actual pushing loop; this way the actual pushing loop 2254: works regardless of arg-order if arg-block was pushed in advance. 2255: (push_block): Copy SIZE to reg unless it's a reg or constant. 2256: 2257: * expmed.c (expand_divmod): If converting CEIL_DIV to FLOOR_DIV, 2258: make new pseudo for incremented value, to help cse understand. 2259: 2260: Sun Apr 10 00:07:45 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2261: 2262: * expr.c (emit_library_call): Two dumb bugs calling emit_call_1. 2263: 2264: * dbxout.c (dbxout_symbol): Handle case of (MEM (REG frameptr)). 2265: 2266: * cccp.c (skip_if_group): Ignore quote-chars if -traditional. 2267: (rescan): If -traditional, don't output a space for a comment. 2268: (handle_directive): If not -traditional, output a space for a comment. 2269: 2270: Sat Apr 9 21:26:51 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2271: 2272: * decl.c (get_parm_types): `void' type is error, except as entire list. 2273: * parse.y (parmlist_1): `void,...' is error. 2274: 2275: * typecheck.c (pointer_int_sum, pointer_diff): 2276: Use an integer type with at least POINTER_SIZE bits. 2277: * expr.c (expand_expr, ARRAY_REF): Likewise. 2278: * tree.c (type_precision): Prec of a pointer is POINTER_SIZE. 2279: (convert_to_pointer): Directly convert any int w/ width==POINTER_SIZE. 2280: Other int types convert via an int of that width. 2281: (convert_to_integer): Pointers convert via an int of that width. 2282: 2283: * decl.c (init_decl_processing): Use INT_TYPE_SIZE, if def, 2284: to set width of `int' and `unsigned int'. 2285: (make_index_type): Give new type the width of a long int. 2286: 2287: * tm-m68k.h: Add new -mshort which controls TARGET_SHORT. 2288: * tm-m68k.h: Define INT_TYPE_SIZE depending on TARGET_SHORT. 2289: 2290: Fri Apr 8 05:02:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2291: 2292: * typecheck.c (require_complete_type): Fix typo in detection of `void'. 2293: (build_function_call): Fix backward test to allow `void' values. 2294: 2295: * dbxout.c (dbxout_tags): Output each tag once even if type is defined. 2296: 2297: * m68k.md (movstrictqi): Reject addr-reg always, for both operands. 2298: 2299: * tm-vax.h (STRUCTURE_SIZE_BOUNDARY): Make this always 8, for BSD. 2300: * tm-ultrix.h: New file, overriding STRUCTURE_SIZE_BOUNDARY. 2301: [This change has been taken out; tm-ultrix.h is now equivalent to 2302: tm-vax.h. I must have been confused when testing PCC.] 2303: 2304: * integrate.c (expand_inline_function): Don't let inline_target 2305: be nonzero in BLKmode. 2306: 2307: * decl.c (grokdeclarator): Const array parm becomes ptr-to-const. 2308: 2309: Thu Apr 7 05:02:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2310: 2311: * genoutput.c (bcopy, bzero): Renamed to mybcopy, mybzero 2312: so variation in C library and config.h won't affect the results. 2313: * genrecog.c (bzero): likewise. 2314: * genextract.c (bcopy): Fn deleted; used only in a string constant. 2315: 2316: * varasm.c (force_const_mem): Fix typo in arg decl. 2317: 2318: * toplev.c (compile_file): init_file with main_input_filename 2319: so dbx output doesn't lack N_SOL symbols. 2320: 2321: * cccp.c (rescan) [CPLUSPLUS]: Put out // comments as // comments. 2322: 2323: Wed Apr 6 14:06:38 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2324: 2325: * expr.c: Delete SLOW_ZERO_EXTEND conditionals added March 3. 2326: Now that enums types can be unsigned, this isn't needed. 2327: 2328: * emit-rtl.c (emit_jump_insn): Handle SEQUENCEs. 2329: 2330: * genemit.c (gen_expand): Use emit_jump_insn, emit_label, emit_barrier 2331: when the insn rtl requires it. 2332: 2333: * m68k.md (subsi3): Prefer to avoid reverse-subtraction alternative. 2334: 2335: * stmt.c (expand_end_case): Let CASE_DROPS_THROUGH control what to 2336: emit after the table. 2337: * tm-vax.h: Define CASE_DROPS_THROUGH. 2338: 2339: Tue Apr 5 15:47:10 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2340: 2341: * genemit.c (gen_exp): Handle vectors within exprs. 2342: 2343: * stmt.c (expand_end_case): Pass 5th arg (default_label) to gen_casesi. 2344: * m68k.md: Define casesi insn rather than tablejump insn. 2345: 2346: * cccp.c (skip_if_group): For validate_else, pass BP (end of cmd name). 2347: Don't call validate_else if do_else or do_endif will detect error. 2348: 2349: * Bug: inline fcns can refer to the return reg with a strict_low_part 2350: which confuses expand_inline_function. Fix is to change return reg 2351: into inline_target *everywhere* except in or right after a call. 2352: * integrate.c (copy_rtx_and_substitute): Delete special case for SET. 2353: Replace return-value hard regs with INLINE_TARGET in all contexts. 2354: (expand_inline_function): special handling for insn after a CALL_INSN 2355: if it copies the function value out. 2356: Allow notes and stack adjust insns to intervene 2357: between the CALL_INSN and the value-copy. 2358: 2359: * expr.c (emit_call_1): New name for gen_call_1. 2360: 2361: * Bug: ({...}) insns were in wrong place for a subexpression 2362: after a sequence point, as in x ? y : ({...}). 2363: * tree.def: New tree-code RTL_EXPR holds a sequence. 2364: * expr.c (expand_expr): Handle RTL_EXPR by emitting the sequence. 2365: * stmt.c (expand_{start,end}_stmt_expr): Use emit_to_sequence 2366: to make a sequence from everything within the ({...}). 2367: (expand_{start,end,emit}_delayed_expr): Delete these functions. 2368: * parse.y (`for'-statements): Don't call them; nothing special needed. 2369: 2370: * parse.y (yylex): Handle syntax L"..." and L'...' 2371: (combine_strings): Handle wide strings being combined. 2372: * typecheck.c (digest_init): Reject wide string as init for char array. 2373: Allow it for an int array, but don't allow a narrow string. 2374: * decl.c (init_decl_processing): New var int_array_type_node. 2375: 2376: * parse.y: Define keyword `noalias'. 2377: * parse.h: Define RID_NOALIAS. 2378: 2379: * typecheck.c (compparms): Not all parmlists match an empty one; 2380: call `compparms1' to filter them. 2381: 2382: * decl.c (groktypename): Remove special case for `void' as parameter. 2383: (get_parm_types): Special case for list of one decl with type void. 2384: 2385: * decl.c (build_enumerator): Give enum constants the type `int'. 2386: Variable `current_enum_type' eliminated. 2387: (finish_enum): No need to repeat `fixup_unsigned_type' 2388: since the precision has not changed. 2389: * stor-layout.c (layout_type): Allow enum types to be unsigned. 2390: 2391: * emit-rtl.c (unshare_all_rtl): Unshare contents of all reg-notes. 2392: 2393: * parse.y (check_newline): filename is optional in #-lines. 2394: 2395: Mon Apr 4 14:36:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2396: 2397: * typecheck.c (shorten_compare): When data type determines the value, 2398: eval the nonconstant arg anyway if it has side effects. 2399: (build_conditional_expr): When merging `foo *' with `void *', 2400: also allow `const void *'. Result type has merged set of qualifiers. 2401: (qualify_type): Merge qualifiers of two types. 2402: 2403: * decl.c (get_parm_types): Store any tags defined in parmlist 2404: into `last_function_parm_types'. 2405: (store_parm_decls): Add those tags into the current binding level. 2406: 2407: * parse.y (parmlist, parmlist_or_identifier): Pass 0 to pushlevel; 2408: no binding levels in C should be transparent to tags. 2409: 2410: * 3b1 support: 2411: * tm-3b1.h: New file. 2412: 2413: * m68k.md: Add HPUX_ASM conditionals for shift-by-24-and-compare. 2414: In one of the dbra patterns, a HPUX_ASM conditional was backwards. 2415: (movhi) [SGS_3B1]: Define the LI... label as in MIT syntax. 2416: (addsi3) [SGS]: Syntax for base-displacement differs from MOTOROLA. 2417: (subsi3) [SGS]: likewise. 2418: (tablejump) [ASM_OUTPUT_CASE_LABEL]: Use 6, not 2, as displacement. 2419: This assumes ASM_OUTPUT_CASE_LABEL on 68k is used for a `swbeg'. 2420: 2421: * final.c (final): Use ASM_OUTPUT_CASE_LABEL (if defined) to output 2422: any CODE_LABEL followed by an ADDR_VEC or ADDR_DIFF_VEC. 2423: It has 4 args; 4th is the insn which is the ADDR_VEC or ADDR_DIFF_VEC. 2424: 2425: * tm-*.h for 68000 (PRINT_OPERAND_ADDRESS): For unscaled indexing in 2426: fetch from a branch table, use L and LI symbols as in the scaled case. 2427: 2428: * cccp.c: If SCCS_DIRECTIVE, define #sccs as no-op. 2429: 2430: * integrate.c (output_inline_function): Real start of function 2431: is FIRST_PARM_INSN, not FIRST_FUNCTION_INSN. 2432: 2433: * tree.c (build_string): String contents must be saveable (for 2434: inline fcn). 2435: 2436: * cse.c (cse_insn): Don't forget to set dest_hash_code when dest 2437: is a stack slot (and so its address is not being optimized). 2438: 2439: * emit-rtl.c (restore_reg_data_1): reg_rtx_no must be 1+ largest REGNO. 2440: 2441: * m68k.md (non-SImode bit-field insns): Change constraint to "o,d" 2442: so a nonoffsetable memref is handled by reloading its address 2443: but a register can still be handled. 2444: 2445: * toplev.c (main): Execute OVERRIDE_OPTIONS, if it's defined. 2446: 2447: Sat Apr 2 00:55:21 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2448: 2449: * expr.c (convert_move): Handle a SUBREG in direct truncation case. 2450: 2451: * cse.c (lookup_for_remove): Don't test machine mode of registers: 2452: Storing in (REG:SI 0) invalidates (REG:DF 0). 2453: 2454: * decl.c (pushlevel): New arg, nonzero means this level is for 2455: variables only, not for tags. All calls changed. 2456: (lookup_tag): Even if THIS_LEVEL_ONLY, skip variables-only levels. 2457: (pushtag): Define it in the first non-variables-only level. 2458: 2459: * dbxout.c (dbxout_type): Undo Mar 29 change, in the DBX_NO_XREFS case. 2460: So now each struct or union will contain only nameless cross-refs 2461: to any others it uses. The prior change is still in effect when 2462: DBX_NO_XREFS is not defined. 2463: 2464: * Implement variable array bounds for parameters. 2465: * decl.c (poplevel): Don't crash if DECL_NAME gives 0. 2466: * typecheck.c (comptypes): A variable array bound matches anything. 2467: * parse.y (parmlist): Call pushlevel, then pushdecl each parm as it 2468: is parsed; then poplevel after using get_parm_types to extract the 2469: results of the parmlist. 2470: * decl.c (get_parm_types): New function; reverse the current decls, 2471: put them in last_function_parms, and return a list of their types. 2472: (grokparms): Arg is now an idlist or a typelist. Do nothing if latter. 2473: (push_parm_decl): New function, like {start,finish}_decl combined 2474: for a parm in a parmlist. 2475: 2476: * dbxout.c (dbxout_symbol): Ignore sym if its DECL_RTL is 0. 2477: 2478: * symout.c (symout_block_symbols): Ignore sym if type is error_mark. 2479: 2480: Fri Apr 1 11:41:21 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2481: 2482: * expr.c (prepare_call_address): New function; given two rtx's 2483: for function and context, copy the context to the right hard reg, 2484: put the function address in the right place and return an rtx for it. 2485: (gen_call_1): No longer do those things. Delete args CONTEXT, PROTECT. 2486: (emit_library_call, expand_call): Call `prepare_call_address'. 2487: In between that and `gen_call_1', USE the parm registers. 2488: 2489: * tm-hp9k320.h (ASM_OUTPUT_*): Flush uses of output_arith_constant. 2490: 2491: * varasm.c (assemble_variable): Use ASM_FORMAT_PRIVATE_NAME 2492: to make the name for a local static variable. 2493: * tm-m68k.h, tm-vax.h, tm-ns32k.h, tm-spur.h: 2494: Define ASM_FORMAT_PRIVATE_NAME. Use `.', not `$', to separate. 2495: 2496: * tm-m68k.h, tm-ns32k.h (FIX_FRAME_POINTER_ADDRESS): 2497: To refer to stack ptr, use stack_pointer_rtx, not a copy. 2498: 2499: * tree.c (build_real_from_string): Function deleted. 2500: * parse.y (yylex): Use build_real and atof. 2501: 2502: * parse.y: Allow string concatenation in arg of asm. 2503: 2504: * parse.y (yylex): Always allow `$' in ident, but warn if pedantic. 2505: * tm-vms.h: Delete DOLLARS_IN_IDENTIFIERS (no longer tested). 2506: 2507: * cccp.c (rescan, do_define, initialize_random_junk): 2508: Always allow `$', but warn if pedantic. 2509: (main): If -t, set `traditional'. 2510: (collect_expansion): If `traditional', no special handling for quotes 2511: and no whitespace added at end of macro definition. 2512: 2513: * expr.c (compare, compare1): Last arg to compare_constants 2514: must be a size in bits. 2515: 2516: Thu Mar 31 00:31:52 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2517: 2518: * expmed.c (expand_mult, expand_divmod, extract_fixed_bit_field): 2519: Reject function return register as target if may need to read it. 2520: (Reading the return register in an inline function doesn't work.) 2521: 2522: * decl.c (start_function): Delete extra arg to `error'. 2523: 2524: * emit-rtl.c (last_parm_insn): Delete this unused var. 2525: 2526: * make-cc1.com: New version from Kashtan. 2527: 2528: * integrate.c (expand_inline_function): Always set up an INLINE_TARGET 2529: for a function that returns a nonvoid nonBLK value. 2530: Since `pushlevel' and `poplevel' are called, must also call 2531: `expand_{start,end}_bindings' to make a pair of NOTEs. 2532: Let them handle USEs at end of scope of formal parameter copies. 2533: 2534: * integrate.c (expand_inline_function): In a new-style CALL_INSN, 2535: don't change the result reg into INLINE_TARGET. Also, 2536: generate a move insn after the call only if INLINE_TARGET is non-0. 2537: 2538: * integrate.c (copy_decl_tree): Don't crash if DECL_RTL is 0. 2539: 2540: * integrate.c (copy_for_inline): Don't treat `return' rtx's specially. 2541: 2542: * stmt.c (expand_{start,end,emit}_delayed_expr): 2543: New fns to handle ({...})'s in expressions output not where parsed 2544: (such as third expression in a `for' statement). 2545: * parse.y: Call them to handle third expression in a `for'. 2546: 2547: * decl.c (duplicate_decls): Result is `inline' if either OLD or NEW is. 2548: 2549: * emit-rtl.c (emit_note): Return the note, or 0 if none. 2550: * stmt.c (expand_start_bindings): Use emit_note's value. 2551: 2552: Wed Mar 30 12:48:22 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2553: 2554: * obstack.c (_obstack_begin): If ALIGNMENT is 0, use default. 2555: Compute default for the alignment of a `double'. 2556: * obstack.h (obstack_{begin,init}): Pass 0 for the alignment. 2557: 2558: * flow.c (mark_used_regs): Discard multiple SUBREGs, STRICT_LOW_PARTs. 2559: 2560: ** Call insns that return values are now represented as 2561: (set (reg ...) (call ...)), not just (call ...). 2562: 2563: * *.md: Define a "call_value" insn pattern. 2564: 2565: * tm-m68k.h, tm-vax.h, tm-ns32k.h: (NOTICE_UPDATE_CC): 2566: These insns invalidate the CC. 2567: 2568: * local-alloc.c (combine_regs): #if 0 special treatment of 2569: function value hard reg. 2570: (wipe_dead_reg): If hard reg, call reg_is_born so that the death 2571: will not be ignored. 2572: (reg_is_set): For reg that dies in this insn, mark it dead from now on 2573: and post_mark it live after this insn only. 2574: 2575: * combine.c (try_combine): Don't allow a call insn as I1 or I2. 2576: 2577: * loop.c (count_loop_regs_set): Move CALL_INSN into a separate 2578: clause. When finding regs that are function addresses, handle 2579: both old and new format call insns. 2580: 2581: * flow.c (insn_dead_p): A SET that contains a CALL can't be dead. 2582: (volatile_refs_p): Any CALL constitutes a volatile ref. 2583: (mark_used_regs): If setting a reg from a volatile ref, 2584: treat it like setting a reg whose value will be used. 2585: 2586: * expr.c (gen_call_1): New arg VALREG if nonzero means generate 2587: a call_value insn which stores in VALREG. 2588: (expand_call): Use `hard_function_value' to make the VALREG arg 2589: unless expression has type `void'. 2590: 2591: * expr.c (emit_library_call): New 2nd arg OUTMODE is mode of result. 2592: (So can give gen_call_1 the proper value-register.) 2593: All callers (here and optabs.c) pass this arg. 2594: 2595: * cse.c (canon_hash): Consider all CALL rtx's volatile. 2596: 2597: ** end of change in representation of call insns. 2598: 2599: * stmt.c (expand_asm_operands): Replace complex lvalues with 2600: SAVE_EXPRs here 2601: * typecheck.c (c_expand_asm_operands): rather than here. 2602: 2603: * typecheck.c (pointer_diff): Fix typo preventing use of FLOOR_DIV_EXPR 2604: when dividing by power of 2. 2605: (build_c_cast): Flush unused locals. 2606: (store_init_value): likewise. 2607: (process_init_constructor): Delete unused 4th arg `for_static'. 2608: 2609: * toplev.c (fatal_io_error): Arg to fprintf was missing. 2610: 2611: * tm-m68k.h (LEGITIMIZE_ADDRESS): Flush extra arg to `emit_move_insn'. 2612: 2613: * decl.c: Delete some unused local vars. 2614: 2615: * stor-layout.c (layout_decl): `packed_size' now unsigned. 2616: 2617: Tue Mar 29 14:47:07 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2618: 2619: * Version 1.19 released. 2620: 2621: * loop.c (may_trap_p): Nonzero if X is a division that might trap. 2622: (scan_loop): If insn might trap, move only if loop always executes it. 2623: 2624: * dbxout.c (dbxout_type): Never output a cross-ref for 2625: a type whose definition is known. Sun dbx won't accept them. 2626: 2627: Mon Mar 28 12:34:46 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2628: 2629: * tm-vms.h (TARGET_DEFAULT): Default is PCC alignment. 2630: The VMS compile driver controls the real default. 2631: 2632: * typecheck.c (c_expand_return): Don't ignore return value 2633: when its type is void. 2634: 2635: * final.c (final): Forget the condition codes after an `asm'. 2636: 2637: * typecheck.c (build_binary_op_nodefault): Warn about ptr < 0 2638: even if not pedantic, but not if traditional. 2639: 2640: * typecheck.c (convert_for_assignment): Don't warn about 2641: pointers volatile * vs nonvolatile * if -fvolatile specified. 2642: 2643: * decl.c (store_parm_decls): Among the old-style parm decls 2644: there can legitiately be other decls! For example, if a parm 2645: is declared `enum {foo, bar} x;', there are decls for `foo' and `bar'. 2646: Don't let anything but a PARM_DECL match a parm name; 2647: pass all the other decls through into the lexical context. 2648: 2649: * jump.c (jump_optimize): When deleting stack adjusts before a 2650: jump-to-return, don't be fooled by intervening NOTEs. 2651: 2652: * tm-sequent.h (PRINT_OPERAND): Output (MEM (MEM (REG))) properly. 2653: * output-ns32k.c (print_operand_address): Output (MEM (REG)) 2654: properly; output stack-pointer as `tos'. 2655: 2656: * flow.c (find_use_as_address): Reject uses within operand 0 2657: of a ZERO_EXTRACT or SIGN_EXTRACT reference. It's hard to reload 2658: an autoincrement inside these because they can refer to multiple bytes. 2659: 2660: * reload.c (find_reloads): `o' in constraint means any memref 2661: (except auto-increment) is acceptable with reloading. 2662: Braino: Clear BADOP, not BAD. 2663: 2664: * reload.c (push_reloads): Use rtx_equal_p (via macro MATCHES) 2665: when considering reuse of an old reload. Otherwise equal values 2666: may get reloaded into different registers, and two MEMs that 2667: originally matched may fail to match once reloaded. 2668: 2669: * m68k.md (sign_extract and zero_extract insns): 2670: If operand 0 is QI or HImode, don't allow register--only `o' 2671: (except in some bftst patterns where bitpos is < 8). 2672: And change `m' to `o' in all these patterns. 2673: 2674: Sun Mar 27 15:32:54 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2675: 2676: * expr.c (expand_expr, case CONSTRUCTOR): 2677: Not all aggregates are BLKmode; use the type's mode. 2678: 2679: * gcc.c: Pass -y* to ld. 2680: 2681: * cse.c (struct hash): New member `equivalence_only'. 2682: (insert): Initialize it. 2683: (cse_insn): Set it to 1 when src_eqv is inserted. 2684: When finding cheapest equivalent of something, 2685: skip elts that are marked with `equivalence_only'. 2686: 2687: * decl.c (duplicate_decls): Don't call `layout_type' 2688: if the type is `error_mark_node'. 2689: 2690: * decl.c (implicitly_declare): If decl will be file-scope, 2691: make sure it's a permanent node, and its associated data too. 2692: 2693: Sat Mar 26 15:48:50 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2694: 2695: * flow.c (insn_dead_p, mark_used_regs): Storing a reg via a 2696: ZERO_EXTRACT or SIGN_EXTRACT is dead if the reg isn't needed afterward. 2697: 2698: * stmt.c (expand_start_function): Set current_function_name 2699: to the name of this function. 2700: * tm-vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Use current_function_name. 2701: 2702: * expr.c (expand_increment): A SUBREG in op0 can also a be a copy. 2703: 2704: * ns32k.md: Correct range of args for `adjspb' insn. 2705: Use `adjspw' when appropriate. 2706: New pattern for `lprd' insn. 2707: Change some `const_int' predicates to GET_CODE tests. 2708: 2709: * expr.c (expand_call): Eval function before copying args to hard regs. 2710: 2711: * tree.c (make_node, copy_node): Don't get length of a REAL_CST 2712: from tree_code_length. 2713: 2714: * expmed.c (extract_fixed_bit_field): In memory-word case, abort 2715: if tm.h parms say word could fail to be well-aligned. 2716: * tm-ns32k.h: Define STRUCTURE_SIZE_BOUNDARY so they will be aligned. 2717: * tm-vax.h: Define STRUCTURE_SIZE_BOUNDARY since Unix CC seems to. 2718: 2719: * tm-vms.h (CPP_PREDEFINES): Predefine __GNU__ and __GNUC__. 2720: 2721: Fri Mar 25 13:23:27 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2722: 2723: * gcc.c (main): Handle SIGHUP, SIGTERM. 2724: 2725: * expmed.c (expand_bit_and): Don't clobber OP1 when trying andcb. 2726: 2727: Thu Mar 24 21:59:09 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2728: 2729: * stmt.c (assign_parms): Get size of BLKmode local from the type, 2730: not the mode. 2731: (expand_function_start): Init frame_offset before calling assign_parms. 2732: 2733: Wed Mar 23 23:50:37 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2734: 2735: * expr.c (emit_push_insn): When making a move insn, 2736: go via emit_move_insn; else fails to put constants into memory. 2737: 2738: Tue Mar 22 15:45:10 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2739: 2740: * expr.c (expand_increment): Flush special case for register_operand; 2741: actually call the predicate whatever it is. 2742: 2743: * genemit.c (gen_expand): Make `operands' a local variable, 2744: not a global static one, in the `gen_...' function. 2745: Avoids lossage when one `gen_...' fcn calls another indirectly. 2746: 2747: * genoutput.c (output_epilogue): Don't give printf a null string. 2748: 2749: Mon Mar 21 15:41:42 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2750: 2751: * expmed.c (store_bit_field) [HAVE_insv]: 2752: Force VALUE1, not VALUE, into a register. 2753: 2754: * expmed.c (store_fixed_bit_field): Width of mask for clearing 2755: the bit-field depends on mode of OP0. 2756: 2757: * ns32k.md (branch and store-flag insns): 2758: Test cc_prev_status, not cc_status. 2759: 2760: * expmed.c (extract_bit_field): Delete unused var `omode'. 2761: 2762: * dbxout.c (dbxout_type, dbxout_tag): Use the main variant 2763: of the specified type. 2764: 2765: * reload.c (find_reloads): When an alternative succeeds without reload, 2766: initialize goal_alternative_matches from this_alternative_matches. 2767: 2768: Sun Mar 20 17:58:00 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2769: 2770: * tm-sun*.h: Don't predefine `m68k'; Sun's compiler does not. 2771: 2772: Fri Mar 18 13:48:29 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2773: 2774: * reload.c (find_reloads): Set up goal_alternative_matches 2775: *after* the label `finish'. 2776: 2777: * stmt.c (assign_parms): GET_MODE_SIZE needs a mode, not an rtx. 2778: 2779: * recog.c (constrain_operands): Set global var `which_alternative' 2780: to indicate which of the alternatives this insn matches. 2781: 2782: * typecheck.c (commontype): long int vs unsigned int 2783: gives long unsigned, if long and int are the same width. 2784: 2785: Thu Mar 17 15:39:45 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2786: 2787: * emit-rtl.c, tree.c: include local version of varargs.h. 2788: 2789: * decl.c (start_function): Clear TREE_EXTERNAL and set TREE_STATIC 2790: here rather than in finish_function. Affects the case of 2791: `extern foo (); static foo (a) {...}' 2792: 2793: * gcc.c: Handle -fnostdinc and -fnostdlib switches in specs. 2794: 2795: * cccp.c (main): Handle -fnostdinc: don't put default dirs 2796: on the chain to be searched. 2797: 2798: * cccp.c (error, warning, error_with_line): No longer print 2799: charpos within file; lineno is enough. 2800: 2801: Wed Mar 16 16:56:36 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2802: 2803: * expmed.c (expand_inc, expand_dec): Handy new subroutines 2804: to generate x+=y or x-=y, given x and y as rtl. 2805: * expmed.c (expand_divmod): Use them instead of gen_{add2,sub2}_insn. 2806: 2807: * expr.c (emit_move_insn): Return the move insn emitted. 2808: Eliminate the code here to move a DImode or DFmode by pieces. 2809: 2810: * emit-rtl.c (emit_insn): Return-value was wrong if emit_to_sequence; 2811: cannot use `last_insn' in that case. 2812: 2813: * regclass.c, stupid.c, local-alloc.c, global-alloc.c: 2814: Some vars of type HARD_REG_SET should be `register' only 2815: if HARD_REG_SET is a macro (ie a scalar). 2816: 2817: * expr.c (move_block_from_reg): New function, converse of 2818: move_block_from_reg. 2819: * stmt.c (assign_parms): If a BLKmode arrives in regs, 2820: copy to a stack slot using move_block_from_reg. 2821: 2822: Tue Mar 15 17:33:22 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2823: 2824: * regclass.c (regclass): Don't convert to two-operand insns 2825: unless optimizing. 2826: 2827: * varasm.c (decode_rtx_const, const_hash_rtx): Fix typos. 2828: 2829: * stmt.c (fixup_var_1): Don't alter insn moving VAR to or from 2830: a subreg of a register. 2831: 2832: * cse.c (fold_rtx): Don't fold if result is not LEGITIMATE_CONSTANT_P. 2833: Construct all results in new local variable NEW; then test that 2834: and decide whether to return it or the original rtx. 2835: 2836: * cse.c (cse_insn): When SRC_EQV is non-0 but set[0] has been 2837: cleared, don't insert SRC_EQV in hash table. 2838: 2839: * All insns emitted by a define_expand become part of the SEQUENCE: 2840: * SEQUENCE now contains a vector of insns, not of bodies. 2841: * insn-emit.c (add_insn): If `emit_to_sequence' nonzero, add the 2842: insn to a separate chain, `sequence_first_insn'. 2843: (gen_sequence): Take everything on that chain and make a SEQUENCE. 2844: (emit_insn): Handle SEQUENCE differently since elts are now insns. 2845: (emit_insn_{before,after}): Handle SEQUENCE. 2846: (classify_insn): #if 0. 2847: * genemit.c (gen_expand): emit all the insns, then call gen_sequence 2848: to make the return value. 2849: Define two macros DONE and FAIL for use in a DEFINE_EXPAND: 2850: Use DONE to inhibit emission of the pattern of the DEFINE_EXPAND. 2851: Use FAIL to make the gen_... function return 0. 2852: 2853: Mon Mar 14 12:47:28 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2854: 2855: * expr.c (expand_expr): Extend the don't-sign-extend-enums hack 2856: to COMPONENT_REF. (See 3 March.) 2857: 2858: * tm-*.h (FUNCTION_ARG, etc.) New argument NAMED 2859: is nonzero for a named arg, zero for an anonymous extra arg. 2860: * expr.c (expand_call): Pass 1 for NAMED if appropriate. 2861: * expr.c (emit_library_call): Pass 1 for NAMED. 2862: * stmt.c (assign_parms): Pass 1 for NAMED. 2863: 2864: * cccp.c: Test __GNUC__, not __GNU__. 2865: 2866: * integrate.c (copy_and_substitute_rtx): 2867: Replacing a MEM parm with the parm value, convert mode if mismatch. 2868: Always use VOIDmode when generating SETs. 2869: Take heed of FIRST_PARM_OFFSET and distinguish arg-pointer 2870: from frame-pointer when they are different. 2871: (expand_inline_function): Handle (RETURN) insns, by creating a 2872: return_label which is output after the integrated code. 2873: 2874: * parse.y (yylex): Condition for ignoring `inline' was backwards. 2875: 2876: * flow.c (mark_used_regs): Ignore STRICT_LOW_PART, so that 2877: an insn that sets STRICT_LOW_PART (and its source values) may be dead. 2878: (propagate_block): Always pass 1 for strict_low_ok to insn_dead_p. 2879: 2880: * optabs.c (emit_unop_insn): Don't make a REG_RETVAL note. 2881: Change above deletes dead STRICT_LOW_PART stores without one. 2882: 2883: * optabs.c (expand_binop, expand_unop): If the library address 2884: is to be put in a pseudoreg, do it here, and make the REG_RETVAL 2885: note point after that. 2886: 2887: * expr.c (emit_library_call): Never defer stack-pops. 2888: Deletion of the library call by flow.c loses if they are deferred. 2889: 2890: * cse.c (cse_insn): Handling of 68k's zero-extend was broken: 2891: it made the actual source and the REG_EQUAL source equivalent. 2892: * If dest is a STRICT_LOW_PART, ignore the actual source and use 2893: the REG_EQUAL source in its place. src_eqv's mode may be different 2894: from src's, so use proper mode in lookups or inserts for src_eqv. 2895: * Don't forget to set src_eqv_elt if src_eqv already has an elt. 2896: * On use_related_value for src_eqv, use src_eqv_elt. 2897: 2898: * toplev.c (main_input_filename): Name of file mentioned in first 2899: #-line in the input. 2900: (compile_file): Pass it to dbxout_init as 2nd arg. 2901: * dbxout.c (dbxout_init): Use 2nd arg to make the N_SO symbol. 2902: * parse.y (check_newline): Store main_input_filename. 2903: 2904: * expr.c (move_block_to_reg): New function, copies a MEM:BLK 2905: to consecutive registers. 2906: (use_regs): New function to emit a USE for each reg in a series. 2907: (expand_call): Use the two new functions when a precomputed BLKmode 2908: arg is passed entirely in regs. 2909: (emit_push_insn): Use move_block_to_reg when PARTIAL > 0. 2910: Also, don't subtract USED from SIZE twice. 2911: Use plus_constant to add ARGS_SO_FAR so can use indexing on stack ptr. 2912: 2913: * varasm.c (assemble_integer_zero): Use rtx 0, not tree 0, 2914: to go with prev change in ASM_OUTPUT_INT. 2915: 2916: Sun Mar 13 01:16:17 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2917: 2918: * varasm.c (const_hash, compare_constant_1, record_constant_1): 2919: Handle NOP_EXPR and CONVERT_EXPR in constant expressions. 2920: 2921: * optabs.c (expand_binop, expand_unop): When widening operands, 2922: those with VOIDmode (like CONST_INT) may be left alone. 2923: 2924: Sat Mar 12 01:09:24 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2925: 2926: * varasm.c (assemble_variable): When making a .comm or .lcomm, 2927: round size up to multiple of BIGGEST_ALIGNMENT. 2928: 2929: * obstack.c (_obstack_newchunk): Eliminate fencepost causing copying 2930: to access the word past the end of the existing object. 2931: 2932: * tm-vax.h, tm-ns32k.h: Define {INIT_,}CUMULATIVE_ARGS 2933: and upgrade FUNCTION_ARGS for new calling convention. 2934: 2935: * gcc.c: If -O, define __OPTIMIZE__. 2936: (do_spec_1): %c now scans SIGNED_CHAR_SPEC: define __CHAR_UNSIGNED__ 2937: when appropriate whether or not it is the default. 2938: 2939: Fri Mar 11 16:49:25 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2940: 2941: * parse.y: Define YYDEBUG. 2942: 2943: * rtl.c (rtx_unstable_p): New function, same as old rtx_varies_p. 2944: * explow.c (stabilize): Use rtx_unstable_p. 2945: * rtl.c (rtx_varies_p): Ignore `unchanging' (undoing previous change 2946: in this function) because `unchanging' doesn't enable cse to compare 2947: the value with any particular constant value. 2948: * rtl.c (insn_store_addr_varies_p): Delete, since not used. 2949: 2950: * hard-reg-set.h (COPY_HARD_REG_SET, etc.) non-scalar case: 2951: Rename and rearrange temp variables to avoid name conflicts with args. 2952: 2953: * regclass.c (reg_class_record): Don't smash class to GENERAL_REGS 2954: and don't exit prematurely, when `r' or `g' is seen. Must merge 2955: GENERAL_REGS with previously determined desired class. 2956: 2957: * expr.c (expand_call) [no PUSH_ROUNDING]: When pushing the arg 2958: block, try to reuse some of the pending_stack_adjust. 2959: 2960: * cse.c: qty_const can now hold values (PLUS frame_pointer integer). 2961: Effect is that storing into a structure doesn't invalidate 2962: mem refs to scalar stack variables via addresses in registers. 2963: (insert): Load such values into qty_const, like true constants. 2964: (fold_rtx): Ignore qty_const if it isn't really a constant. 2965: 2966: * expr.c (expand_expr) VAR_DECL: Copy DECL_RTL before calling 2967: change_address, so it isn't permanently clobbered. 2968: 2969: * stmt.c (fixup_var_refs_1): Make sure the stack slot address 2970: is valid by calling fixup_stack_1 each time it is substituted. 2971: 2972: * stmt.c (fixup_stack_1): Return the altered rtx. 2973: If it's a MEM in the stack, return a copy of it. 2974: 2975: * stmt.c (fixup_stack_slots): #if 0. 2976: * stmt.c (expand_finish_function): Don't call fixup_stack_slots 2977: because fixup_stack_1 is called elsewhere when necessary. 2978: 2979: * reload.c (find_reloads_address): New arg is location of the MEM 2980: whose address is being reloaded. So we copy the MEM if it 2981: is one that can be shared. New arg 0 means no need to copy the MEM. 2982: All callers pass the new arg. 2983: 2984: * stmt.c (assign_parms): Determine parm stack-size from 2985: the DECL_ARG_TYPE, not from the TREE_TYPE. 2986: Else loses when parm is declared `float' but passed as `double'. 2987: 2988: * emit-rtl.c (make_safe_from): Constants are already safe. 2989: Use proper machine mode for temp reg when needed. 2990: 2991: Thu Mar 10 14:35:14 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 2992: 2993: * expr.c (emit_push_insn): Don't pass wrong type to plus_constant 2994: (case where there is no PUSH_ROUNDING). 2995: 2996: * expr.c (expand_call): Round partial[i] down to multiple of 2997: PARM_BOUNDARY before subtracting it from arg size on stack. 2998: Compute these sizes just once and keep them in vector `arg_size'. 2999: * expr.c (emit_push_insn): Handle `partial' uniformly, in accord 3000: with this new convention for how it affects the stack size. 3001: * stmt.c (assign_parms): Round NREGS down to PARM_BOUNDARY likewise. 3002: 3003: * obstack.h (obstack_free macro) [Not __GNUC__ but __STDC__]: 3004: Don't cast result of (obstack_free) to (int); just ignore it. 3005: 3006: * reload.c (find_reloads): Initialize operand_reloadnum. 3007: 3008: * optabs.c (emit_unop_insn): New argument CODE, used to make 3009: a REG_EQUAL note from operand OP0 if more than one insn results. 3010: Also a REG_RETVAL note. 3011: * expr.c (convert_move): Pass CODE arg to emit_unop_insn. 3012: * flow.c (propagate_block): Use insn_dead_p to decide whether 3013: to handle a REG_RETVAL note by skipping some insns. 3014: Always pass 1 for STRICT_LOW_OK for an insn that has a REG_RETVAL note. 3015: Handle case where REG_RETVAL points at an insn that's deleted. 3016: * flow.c (insn_dead_p): New operand STRICT_LOW_OK says an insn 3017: that sets STRICT_LOW_PART may be considered dead. 3018: 3019: * expr.c (expand_expr): Once again canonicalize X-C to X+(-C). 3020: Change on March 1 made it stop doing this. 3021: 3022: Wed Mar 9 01:25:35 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3023: 3024: * loop.c (move_movables): Don't always mark the moved reg 3025: as equivalent to a constant value: not if it is being cleared 3026: to zero-extend something or if it is used outside the loop. 3027: 3028: * expr.c (move_by_pieces_1): Finish last change. 3029: 3030: * stmt.c (assign_parms): Update stack_args_size properly. 3031: Figure FIRST_PARM_OFFSET when making the stack mem refs. 3032: 3033: * cse.c (insert): Build the related_value lists in the opposite order 3034: so that the oldest element in the chain is the one that follows 3035: the most basic element. 3036: 3037: * expr.c (expand_expr): COMPONENT_REF case: criterion for 3038: converting the the result is if MODE1 (its mode of arrival) isn't 3039: a mode we want. 3040: 3041: * toplev.c (rest_of_compilation): Fix typo setting TREE_ASM_WRITTEN. 3042: 3043: Tue Mar 8 13:18:37 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3044: 3045: * cse'ing of library calls. 3046: 3047: * expr.h: type `optab' is now a ptr to a struct. 3048: The old contents are now the `handlers' element. 3049: The `code' element gives the RTL code for the kind of expression 3050: this optab makes (PLUS for add_optab, etc.) 3051: Every var formerly declared `struct optab *' is now just `optab'. 3052: 3053: * optabs.c (init_optab, init_optabs): New function to init an optab 3054: and set its `code'. Used in init_optabs. 3055: 3056: * optabs.c (expand_binop, expand_unop): Use the `code' field 3057: to add a REG_EQUAL note to the insn that copies a libcall's 3058: value into a pseudo. Also a REG_RETVAL note pointing at the 3059: first insn for setting up args for the call. 3060: 3061: * cse.c (cse_insn): Process REG_EQUIV and REG_EQUAL datum almost like 3062: another set-src; put the actual src into the equivalence class of that. 3063: 3064: * flow.c (propagate_block): If a dead insn has a REG_RETVAL reg-note, 3065: either ignore or delete all the insns back to the insn the REG_ARG 3066: note points to. 3067: 3068: * local-alloc.c (block_alloc): Don't refrain from allocating a 3069: "constant" register if the constant value isn't ok for an immediate op. 3070: 3071: 3072: * dbxout.c (CONTIN): If DBX_CONTIN_LENGTH is <= 0, do nothing. 3073: 3074: * cccp.c: Extra default include dirs for C++. 3075: * cccp.c (main): For -M, strip dirs from object file name. 3076: 3077: * rtl.c (find_reg_note): New function. 3078: 3079: * expmed.c (store_fixed_bit_field): Don't AND with VALUE 3080: if VALUE's original mode had no more bits than we want. 3081: 3082: * expr.c (emit_library_call): Use varargs. 3083: 3084: * integrate.c (copy_and_substitute_rtx): Recognize arg_pointer_rtx 3085: and translate it just like frame_pointer_rtx. 3086: 3087: Mon Mar 7 00:48:33 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3088: 3089: * expmed.c (extract_fixed_bit_field): 3090: Shift counts were wrong for narrow MODE in signed case. 3091: Do the sign-extending shifts in the narrowest mode possible. 3092: Reduce big-endian case to little-endian case. 3093: Delete SLOW_ZERO_EXTEND conditional. 3094: 3095: * Implement constants in memory for RISC machines 3096: with limited abilities for immediate args and constant addresses. 3097: 3098: * genoutput.c (output_epilogue): Empty predicate-name 3099: is output as 0 in insn_operand_predicate. 3100: 3101: * expr.c (expand_expr): Change 4th arg to an `enum expand_modifier' 3102: Value EXPAND_SUM corresponds to old nonzero 4th arg. 3103: Value EXPAND_CONST_ADDRESS means ok to return an invalid MEM 3104: whose address is a constant. Changes for this case in ADDR_EXPR, 3105: COMPONENT_REF and ..._DECL. 3106: 3107: * varasm.c (output_arith_constant): Function deleted. 3108: * tm-*.h: (ASM_OUTPUT_{INT,SHORT,CHAR}): 2nd arg is now an RTX 3109: and output it using `output_addr_const'. 3110: * varasm.c (output_constant): Change uses of those macros. 3111: 3112: * varasm.c (init_const_rtx_hash_table): Initialize constant pool 3113: for a new function. Called from `expand_function_start'. 3114: * varasm.c (force_const_mem): Turn a constant rtx into a MEM rtx 3115: which refers to the constant pool. Other new subroutines too. 3116: (force_const_double_mem): Use force_const_mem to make the MEM. 3117: (immed_real_const): No longer record the REAL_CST node in the rtx. 3118: 3119: * explow.c (force_reg): If arg is a constant and not legitimate, 3120: put it in the constant pool with force_const_mem. 3121: Mark the register as equivalent to the constant value. 3122: * expr.c (emit_move_insn): Likewise. 3123: * explow.c (break_out_mem_refs): Use force_reg to put into a reg. 3124: * explow.c (memory_address): Likewise. 3125: * expr.c (expand_expr): ADDR_EXPR case: likewise. 3126: 3127: * expr.c (expand_call): Do force_reg on each register-operand 3128: so it will go through a pseudo and can be cse'd. 3129: 3130: * recog.c (immediate_operand, nonmemory_operand, general_operand): 3131: For constant operands, use LEGITIMATE_CONSTANT_P to decide value. 3132: * tm-*.h: Define LEGITIMATE_CONSTANT_P. 3133: 3134: * reload1.c (reload): Invalid constants can't go in reg_equiv_constant. 3135: 3136: Sun Mar 6 22:49:06 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3137: 3138: * reload.c (push_reloads): If IN occurs within OUT, 3139: don't reuse an existing input-only reload. Otherwise would lose on 3140: (set (mem (plus R C)) (plus R C1)) if R is available in a spill reg. 3141: 3142: * reload1.c (choose_reload_targets): Don't choose an inherited 3143: reload register that's in use for another reload. 3144: Without this, above change doesn't have an effect. 3145: 3146: * Implement the `unchanging' flag in MEM and REG rtx's. 3147: Also simplify code with a new subroutine `change_address'. 3148: 3149: * emit-rtl.c (change_address): Return new memory ref like an old 3150: one but with specified mode and address. 3151: * expmed.c (extract{,_split,_fixed}_bit_field): Use change_address. 3152: (store{,_split,_fixed}_bit_field): Likewise. 3153: * expr.c (store_expr, expand_expr): Likewise. 3154: 3155: * expr.c (move_by_pieces): Args now memrefs, not addresses. 3156: Eliminate the FROM_VOL and TO_VOL args since the memrefs indicate. 3157: Change the structure `struct move_by_pieces' similarly. 3158: (move_by_pieces_1): Same changes; use change_address. 3159: (emit_block_move, emit_push_insn): Calls to move_by_pieces changed. 3160: 3161: * integrate.c (copy_rtx_and_substitute): Use change_address; 3162: handle ->unchanging field. 3163: 3164: * rtl.c (rtx_varies_p): Regs or memrefs with ->unchanging don't vary. 3165: (copy_rtx): Perserve ->unchanging. 3166: (print_rtx): Print ->unchanging as /u. 3167: 3168: * stmt.c (expand_decl): Set ->unchanging on `const' decls. 3169: (fixup_memory_subreg): Use change_address. 3170: (assign_parms): Record in the rtl which parms are volatile or const. 3171: 3172: * varasm.c (assemble_variable): Set ->unchanging on `const' decls. 3173: (output_constant_def): Always set ->unchanging for constant refs. 3174: 3175: * cse.c (canon_hash): Don't treat a MEM as "in memory" 3176: if its ->unchanging bit is set. 3177: 3178: * loop.c (invariant_p): A REG or MEM with ->unchanging is invariant 3179: (for a MEM, the address must be invariant). 3180: 3181: Sat Mar 5 13:22:11 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3182: 3183: * genconfig.c (walk_insn_part): DO consider MATCH_DUPs 3184: when calculating MAX_RECOG_OPERANDS. 3185: (gen_expand): define_expand is now different from define_insn. 3186: Compute max # SETs or CLOBBERs for any one sub-insn in a define_expand, 3187: instead of summing them all. And don't count the MATCH_DUPs at all. 3188: 3189: * genemit.c (max_operand_1): Record largest opno in a MATCH_DUP 3190: separately from largest in a MATCH_OPERAND. 3191: (gen_expand): An operand # with only MATCH_DUPs gets 3192: a local variable in the gen_ function we output. 3193: 3194: * integrate.c (save_for_inline): Delete vestige of NOTE_INSN_IS_DECL. 3195: 3196: * cse.c (invalidate): Handle subregs. 3197: (cse_ins, invalidate_from_clobbers): Do call `invalidate' for subregs. 3198: (insert_regs): When assigning one subreg from a like one, 3199: make the two regs equivalent. 3200: (cse_insn): Do call insert_regs when dest is a subreg. 3201: 3202: * expr.c (expand_call): Precompute all args going via hard regs 3203: since even arithmetic could require a library call. 3204: 3205: Fri Mar 4 15:48:17 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3206: 3207: * stor-layout.c (layout_parms): Function deleted. 3208: * stmt.c (expand_function_start): Don't call it. 3209: 3210: * stmt.c (assign_parms): 3211: stack_args_size counts size of args so far passed on stack. 3212: Use PARM_BOUNDARY when counting it; derive stack offsets from it. 3213: Set current_function_args_size from it. 3214: 3215: When an arg is split between regs and stack, make stack space 3216: for the rest of it, and count it. 3217: In a varargs function, push the last arg onto the stack. 3218: When an arg is passed in regs alone, don't remember a stack slot 3219: for it, and if it needs one, use assign_stack_local. 3220: 3221: Set DECL_OFFSET to the stack offset, or -1 if parm came in regs. 3222: 3223: * expr.c (expand_call): Anonymous args of a varargs function 3224: are always passed on the stack. 3225: 3226: * varasm.c (force_const_double_mem): Copy the MEM rtx 3227: if it may need to be smashed by reloading. 3228: 3229: * genemit.c (gen_expand): define_expand must have nonempty pattern 3230: even though, due to `return' statements in the code-to-run, 3231: that pattern may not be used to generate code. 3232: 3233: Thu Mar 3 17:08:43 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3234: 3235: * expr.c (expand_expr): If supposed to sign-extend an enum 3236: which is never negative, zero-extend instead (unless SLOW_ZERO_EXTEND). 3237: (store_expr): Likewise. 3238: 3239: * reload.c (find_reloads): 'm' for CONST_DOUBLE: clear BADOP, not BAD. 3240: After force_const_double_mem, do find_reloads_toplev on the MEM. 3241: (find_reloads_address): Handle constant addresses (on machines 3242: that don't allow them). 3243: 3244: * final.c (set_current_gdbfile): New fn, get the gdbfile structure 3245: for specified filename. 3246: (output_source_line): Use set_current_gdbfile for the file. 3247: * varasm.c (assemble_variable): Call set_current_gdbfile 3248: for the declaration's source file, so GDB won't ignore the file. 3249: 3250: * varasm.c (force_const_double_mem): Build a new REAL_CST node 3251: and get its data type from the machine mode of the CONST_DOUBLE. 3252: (immed_real_const): Don't save the REAL_CST tree node. 3253: * typecheck.c (get_floating_type): Return float type for given mode. 3254: 3255: * integrate.c (expand_inline_function): Ignore the (USE (REG...)) 3256: (for the return-register) at the end of the inline function. 3257: After a CALL_INSN, imagine the (SET (REG ...) (REG ...)) for 3258: the return-register if the return-register isn't explicitly used. 3259: 3260: Wed Mar 2 22:08:49 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3261: 3262: * typecheck.c (build_array_ref): Do default_conversion on INDEX. 3263: 3264: Tue Mar 1 15:49:34 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3265: 3266: * expr.c (expand_call): Always get a SYMBOL_REF for a fixed function. 3267: If may be alloca, set may_call_alloca. 3268: (gen_call_1): Never put a SYMBOL_REF through `memory_address'; 3269: but if function cse is wanted, just copy it to a register. 3270: If NO_FUNCTION_CSE is defined, never do function cse. 3271: 3272: * expr.c (init_expr): New function, does init_queue and inits 3273: other things. 3274: 3275: * stmt.c (expand_function_start): Call init_expr, not init_queue. 3276: 3277: * optabs.c (expand_binop): Don't clobber OP0 and OP1 3278: if may call delete_insns_since later. 3279: 3280: * expr.c (emit_library_call): PUSH_ARGS_REVERSE test was backwards. 3281: 3282: * cse.c (cse_insn): Do canon_reg on the size and position operands 3283: in a ZERO_EXTEND or SIGN_EXTEND that is a destination. 3284: 3285: * tm-*.h: Define SLOW_BYTE_ACCESS. 3286: * expmed.c ({store,extract}_fixed_bit_field): 3287: If SLOW_BYTE_ACCESS, get/set all bit fields from full words. 3288: 3289: * combine.c (subst): Simplify 3290: (zero_extend:SI (subreg:QI (zero_extract ...))). 3291: * combine.c (simplify_and_const_int): Simplify 3292: (and (zero_extract ...) (const_int ...)). 3293: 3294: * local-alloc.c (qty_compare{,_1}): Test of qty_phys_sugg was reversed. 3295: (combine_regs): If one pseudo gets two suggested hard regs 3296: (one at birth and one at death), prefer the one from birth 3297: unless we see at death that it's no good. 3298: 3299: * expr.c (expand_expr): Ignore sum_ok unless mode is Pmode. 3300: Don't use force_operand unless sum_ok is set. 3301: 3302: Mon Feb 29 19:23:50 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3303: 3304: * expr.c (emit_move_insn): When a CONST_DOUBLE needs moving 3305: by pieces, force it into memory, unless it is dconst0_rtx, 3306: in which case each piece is const0_rtx. 3307: (emit_push_insn): Likewise. Also, write code for pushing a 3308: non-BLK mode which has no "mov" insn defined, but only 3309: in the case where there is no PUSH_ROUNDING. 3310: 3311: * expr.c (do_tablejump): Put constant term in address last. 3312: 3313: * toplev.c (xrealloc): On error, call fatal instead of abort. 3314: 3315: * optabs.c (emit_cmp_insn): If genning from tst_optab, 3316: make the operand fit its predicate. 3317: 3318: * optabs.c (expand_float): Don't adjust stack between cmp and jump. 3319: 3320: * optabs.c (expand_binop): Recursive calls can return 0; handle 3321: that event by deleting any preparatory insns. Also don't smash 3322: TARGET when this happens. 3323: 3324: * reload.c (push_reload): If IN != *INLOC, set reload_nocombine. 3325: (combine_reloads): Don't combine an input reload with reload_nocombine. 3326: 3327: * jump.c (jump_optimize): Don't delete stack adjusts unless 3328: EXIT_IGNORE_STACK is nonzero. 3329: * expr.c (clear_pending_stack_adjust): Likewise. 3330: * tm-*.h: When EXIT_IGNORE_STACK is defined, give it `1' as defn. 3331: 3332: * expr.c (expand_call): Initialize args_size. 3333: Don't push a block if args_size is 0. 3334: (emit_library_call): Don't include register-args (or reg-parts 3335: of partial ones) in args_size. 3336: Don't push a block if args_size is 0. 3337: 3338: * expr.c (expand_expr): For DECLs in memory, check the address 3339: validity with memory_address_p, and preserve volatility info. 3340: 3341: * stmt.c (expand_function_end): fixup_gotos needs 2 args. 3342: 3343: * jump.c (mark_jump_label): If INSN is 0, don't set its JUMP_LABEL. 3344: Inside an ADDR_VEC or ADDR_DIFF_VEC, recurse with 0 for INSN. 3345: 3346: * varasm.c (force_const_double_mem): Must zero TREE_CST_RTL 3347: before output, or nothing will happen. 3348: 3349: Sun Feb 28 01:08:53 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3350: 3351: * optabs.c (emit_unop_insn): Generate and emit an insn 3352: given the insn-code and the two operands (one out, one in). 3353: Can move the operands into registers when needed for various 3354: reasons. 3355: * expr.c (convert_move): Use emit_unop_insn for outputting the 3356: conversion insns. 3357: 3358: * expr.c (emit_library_call): Use arg's nominal mode to choose 3359: a reg to pass it in, not actual mode (which can be VOIDmode). 3360: 3361: * insn-emit.c (emit_insn): If arg is empty SEQUENCE, do nothing. 3362: 3363: * genemit.c (gen_expand): Scan the rtl-pattern for predicates 3364: and machine modes of the operands. 3365: 3366: * m68k.d (dbra patterns): Add HPUX_ASM conditionals. 3367: 3368: * rtl.c (reg_mentioned_p): Use "equal", not "eq", when 3369: REG isn't a register. 3370: * reload.c (combine_reloads): Verify not reg_mentioned_p even if 3371: the input reload's value isn't a register. 3372: 3373: * reload.c (operands_match_p): If successful and 2nd arg 3374: has a pre-increment that matches a non-increment, return 2. 3375: 3376: * reload1.c (reload): At end, clobber a pseudoreg to a MEM 3377: even if it's an out-of-range address. It doesn't affect the 3378: assembler code in this case, but it makes the dbx output correct. 3379: 3380: * recog.c (constrain_operands): When operands_match_p returns 2, 3381: in the constraint alternative that is ultimately successful, 3382: copy the output operand from the input that it matched 3383: so that the assembler insn that is output shows the pre-increment. 3384: 3385: Sat Feb 27 15:16:47 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3386: 3387: * combine.c (subst): When optimizing 3388: (set (zero_extract ...) (and (zero_extract ...) const)) 3389: must arrange to have 1's, not 0's, shifted into low bits of const. 3390: 3391: * decl.c (grokdeclarator): When return-type defaults to int, 3392: don't warn, just set warn_about_return_type. 3393: (start_function): See that variable and warn, after starting function. 3394: 3395: * toplev.c (count_error): No longer print newline if not quiet. 3396: (report_error_function): If not quiet, print a newline if 3397: printing anything, and don't print the function name. 3398: 3399: * reload1.c (choose_reload_targets): 3400: Fix the loop that checks for consecutive available spill regs. 3401: Set `have_groups' nonzero if any reload wants a group. 3402: In that case, for non-group reloads, prefer a reg that can't be in 3403: group, or else one that has only one available neighbor. 3404: 3405: * reload1.c (reload): Find separately the max need for each class 3406: for single registers, groups of registers, and single registers 3407: not in any group. (The last one counts non-group reloads 3408: in insns that have at least one group reload.) 3409: Then make sure enough of each kind are found. 3410: 3411: * expmed.c: Now needs flags.h and recog.h (therefore insn-config.h). 3412: 3413: * expmed.c (store_bit_field): 3414: Delete redundant protect_from_queue. 3415: Force VALUE out of memory if -fforce-mem. 3416: If insv's predicate for VALUE wants a register, put it there. 3417: 3418: * expmed.c (extract_bit_field): 3419: Force TARGET out of memory if -fforce-mem. 3420: If insv's predicate for TARGET wants a register, put it there. 3421: 3422: Fri Feb 26 00:12:48 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3423: 3424: * reload1.c (eliminate_frame_pointer): Don't check for pushes 3425: unless PUSH_ROUNDING is defined. 3426: 3427: * reload.c: Don't define REG_OK_FOR_{INDEX,BASE}_P 3428: (since the tm file is supposed to do it). 3429: 3430: * expr.c (emit_push_insn, expand_call): 3431: Don't use PUSH_ROUNDING if it's not defined. 3432: 3433: * expr.c (preexpand_calls): Do nothing for constants and decls. 3434: 3435: * expr.c (expand_call, emit_library_call): When PUSH_ROUNDING 3436: is not defined, use ROUND_CALL_BLOCK_SIZE to round the size 3437: of the block of arguments. 3438: 3439: * expr.c (expand_call): Don't count register-args in ARGS_SIZE. 3440: 3441: * rtl.h, emit-rtl.c: Create static_chain_incoming_rtx 3442: and struct_value_incoming_rtx. 3443: * stmt.c (expand_function_start): Use ..._incoming_rtx where needed. 3444: 3445: * expr.c (expand_call): Use new macros INIT_CUMULATIVE_ARGS, 3446: CUMULATIVE_ARGS and FUNCTION_ARG_ADVANCE to update data 3447: on args scanned so far. 3448: (emit_library_call): Likewise. 3449: * stmt.c (assign_parms): Likewise. 3450: * tm-spur.h, tm-m68k.h: Define these macros. 3451: 3452: * rtl.h (NUM_MACHINE_MODES): NUM_MACHINE_MODE renamed. 3453: * rtl.c, genrecog.c: Change places it is used. 3454: 3455: * cccp.c (output_line_command): line_cmd_buf should be chars, not ints. 3456: 3457: Thu Feb 25 13:33:29 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3458: 3459: * genemit.c (gen_expand): Don't lose if pattern is empty-vector. 3460: 3461: * genconfig.c (gen_insn): Don't lose if pattern is empty-vector. 3462: 3463: * expr.c (expand_expr): For COMPONENT_REF, don't convert to tmode 3464: unless the mode we get is unacceptable. 3465: 3466: * loop.c (scan_loop, move_movables): New field `partial' is 1 for 3467: zero-extending clr insn; don't make the reg invariant when it's moved. 3468: 3469: * optabs.c (expand_unop, expand_binop, emit_cmp_insn): 3470: mode-argument to predicates was missing. 3471: 3472: * optabs.c (expand_binop): If gen-function returns 0, this means 3473: the insn wasn't available. 3474: 3475: * reload.c (find_reloads): Don't make optional reloads for operands 3476: that match other operands. 3477: 3478: * reload.c (combine_reloads): Reject optional output reload. 3479: 3480: * reload.c (find_equiv_reg): Know that CALL_INSNs clobber memory. 3481: 3482: * typecheck.c (build_binary_op_nodefault): 3483: If doing a short shift, leave the shift-count as a fullword. 3484: 3485: Tue Feb 23 14:43:46 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3486: 3487: * combine.c (subst): Count, in n_occurrences, # times FROM is seen. 3488: (try_combine): Refuse to combine x=*y++ into z = x*x. 3489: 3490: * loop.c (invariant_p): Frame pointer and arg pointer are invariant. 3491: (move_movables): Don't forget to set ->done! 3492: When moving the matching movables, don't forget to set n_times_set. 3493: 3494: * expmed.c (expand_shift): Reorder strategies for logical shift; 3495: if widening, try all ashift strategies before extzv. 3496: 3497: * typecheck.c (build_binary_op_nodefault): 3498: Always return error_mark if either operand is one. 3499: 3500: * recog.c (nonmemory_operand): New predicate. 3501: 3502: * optabs.c (expand_unop, expand_binop, emit_cmp_insn): 3503: Don't treat `register_operand' as special. Apply the predicate 3504: to the rtx; if the predicate fails, use a register instead. 3505: 3506: Mon Feb 22 22:37:32 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3507: 3508: * expr.c (expand_calls): Preexpand all calls in arguments 3509: that are passed in regs before copying any of them into the regs. 3510: 3511: * expr.c (emit_push_insn): Three more args. 3512: EXTRA for extra space to leave. 3513: ARGS_ADDR and ARGS_SO_FAR for using move-insns on machines 3514: that lack true push insns. 3515: 3516: * expr.c (emit_library_call, expand_call): 3517: Use the new arguments of `emit_push_insn'. 3518: 3519: * expr.c (PUSH_ARGS_REVERSED): defined if handle args last-to-firs. 3520: 3521: Sun Feb 21 12:17:59 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3522: 3523: * toplev.c (rest_of_compilation): Set TREE_ASM_WRITTEN 3524: when a function is really output as assembler code. 3525: Don't do inlining of a function that is already made inline; 3526: instead, output it as assembler code, because this must be 3527: the second call for that function. 3528: 3529: * decl.c (finish_compilation): Delete it. 3530: * toplev.c (compile_file): Output pending inline functions at the end 3531: in the same way tentative-defined variables are output. 3532: 3533: * emit-rtl.c (restore_reg_data): New fn: given chain of insns, 3534: restore emit-rtl's data on registers from the regs they use. 3535: 3536: * integrate.c (output_inline_function): Use restore_reg_data. 3537: (fill_regno_reg_rtx_as_needed): Now restore_reg_data_1 in emit-rtl.c. 3538: 3539: * tree.c (build_decl): Function moved from decl.c. 3540: No longer set attributes of function decls specially. 3541: 3542: * decl.c (implicitly_declare, builtin_function, grokdeclarator): 3543: Don't expect build_decl to set attributes of FUNCTION_DECL. 3544: 3545: * tree.c (preserve_data): New fn, make all data now on 3546: maybepermanent_obstack last permanently. 3547: 3548: * cse.c (cse_insn): Remove a STRICT_LOW_PART from the dest rtx 3549: before putting it in the hash table. 3550: 3551: * symout.c (symout_block): Fix the args to `symout_block_symbols'. 3552: 3553: Sat Feb 20 00:07:52 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3554: 3555: Start of changes for inline functions. 3556: Changes received from Tiemann, then slightly rearranged for simplicity. 3557: 3558: * integrate.c: New file (Tiemann's rtl2.c). 3559: * integrate.c (function_cannot_integrate_p): 3560: New fn, only checks whether current fn is safe and good to inline. 3561: Returns an error message string if not. 3562: 3563: * expr.c (current_args_size): Var made static. 3564: (store_expr): Fn no longer static. 3565: (stack_pointer_rtx): Use this var for all refs to the stack pointer. 3566: (struct_value_rtx, static_chain_rtx): Likewise 3567: 3568: * expr.c (expand_call): Detect calls to integrable functions 3569: and integrate them. 3570: **If fn is not named "alloca" then assume it is not `alloca'. ** 3571: 3572: * emit-rtl.c (max_label_num): New fn, returns number for next label. 3573: (get_first_label_num): New fn, returns first label of current fn. 3574: (init_emit): Save first label number of this fn. 3575: 3576: * emit-rtl.c (gen_inline_header_rtx): New fn, make an INLINE_HEADER. 3577: 3578: * emit-rtl.c (emit_declaration): New fn to emit new kind of NOTE. 3579: 3580: * emit-rtl.c (init_emit_once): New fn. 3581: Move inits of unique rtl objects here, from init_emit. 3582: 3583: * decl.c (finish_compilation): New fn to compile separately 3584: any nonglobal inline functions that need to be addressable. 3585: 3586: * decl.c (grokdeclarator): Handle `inline' kwd among the declspecs. 3587: Set TREE_INLINE if it's safe. 3588: 3589: * decl.c (finish_function): If fn was inlined, don't clear 3590: the DECL_ARGUMENTS or DECL_RESULT or DECL_INITIAL. 3591: 3592: * gen*.c: Provide rtl_obstack, not current_obstack. 3593: 3594: * rtl.c (rtl_obstack): Variable: ptr to obstack to use for making rtl. 3595: * rtl.c (rtx_alloc, rtvec_alloc): Use that obstack. 3596: * rtl.c (copy_rtx): Copy the `integrated' flag. 3597: * rtl.c (print_rtx): Print that flag as `/i'. 3598: 3599: * rtl.def: New rtx code INLINE_HEADER. 3600: 3601: * rtl.h (struct rtx_def): Add `integrated' field. 3602: * rtl.h: Define macros for fields in an inline_header rtx. 3603: 3604: * stmt.c (max_parm_reg_num, get_first_function_insn): 3605: New fns, return info on parm regs and the insns that init them. 3606: 3607: * stmt.c (expand_decl): Simplify with new local `type'. 3608: 3609: * stmt.c (stack_pointer_rtx): Replace all refs to stack pointer 3610: with this shared rtx. 3611: * stmt.c (struct_value_rtx): Likewise. 3612: 3613: * stmt.c (expand_start_function): Call init_pending_stack_adjust 3614: instead of clear_pending_stack_adjust. 3615: If not using a return-label, set `return_label' to 0. 3616: 3617: * stmt.c (expand_null_return, expand_end_function): 3618: Call clear_pending_stack_adjust unconditionally. 3619: 3620: * expr.c (clear_pending_stack_adjust): Move the conditionals here. 3621: For now, this fn is a no-op, since it's not safe in an inline fn 3622: and the stack adjusts are deleted by jump.c in if optimizing. 3623: 3624: * expr.c (init_pending_stack_adjust): New fn. 3625: 3626: Fri Feb 19 14:30:13 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3627: 3628: * toplev.c (main): Decode -finline-functions, -fkeep-inline-functions. 3629: 3630: * toplev.c (rest_of_compilation): 3631: At start, save the rtl if function should be inline. 3632: For inline function, if we don't yet know whether it should be 3633: compiled on its own, don't do so. 3634: 3635: * toplev.c (compile_file): Clear, and later print, `integration_time'. 3636: Call `init_emit_rtl' when starting. 3637: Call `finish_compilation' at the end. 3638: 3639: [Add an extra arg to the error and warning functions?] 3640: 3641: * tree.c ({push,pop,clear}_momentary): 3642: Change momentary_stack from a char ** to a struct momentary_level *. 3643: 3644: * tree.c (build_pointer_type): Put temporary type in `saveable_obstack' 3645: * tree.c (build_type_variant): Likewise. 3646: * tree.c (make_node): Likewise. Also put decls and LET_STMTs there. 3647: * tree.c (type_hash_canon): Free a temporary type in `saveable_obstack' 3648: 3649: * tree.c (perm_tree_cons): Like `tree_cons' but on perm. obstack. 3650: 3651: * tree.c (init_tree, {{end_,}temporary,permanent}_allocation): 3652: Handle `maybepermanent_obstack' and `saveable_obstack' and 3653: `rtl_obstack'. 3654: 3655: * tree.h (TREE_INLINE): New attribute macro. 3656: * tree.h (DECL_SAVED_INSNS, DECL_FRAME_SIZE): 3657: New components in a FUNCTION_DECL. 3658: Delete the `unused` slot in a `struct tree_decl'. 3659: 3660: * typecheck.c (mark_addressable): Set TREE_ADDRESSABLE 3661: even in FUNCTION_DECLs. 3662: 3663: * typecheck.c (build_function_call): 3664: If function is a FUNCTION_DECL, avoid setting TREE_ADDRESSABLE 3665: when taking its address. 3666: 3667: * parse.h: Define RID_INLINE. 3668: * parse.y: Define keyword `inline'; set up ridpointers for it. 3669: (yylex): Don't recognize `inline' of -fno-asm or -ftraditional. 3670: 3671: * flags.h: New vars flag_inline_functions 3672: and flag_keep_inline_functions. 3673: 3674: End of changes for inline functions. 3675: 3676: * tree.c (convert): If EXPR's type is an error_mark, return error_mark. 3677: 3678: * Makefile (install): Don't strip the executables. 3679: 3680: * jump.c (delete_insn): Deleting a label's target 3681: can delete either NEXT and PREV! So must search for a 3682: following nondeleted insn to return. 3683: 3684: * typecheck.c (build_function_call): Typo in validating 3685: data type of function. 3686: 3687: * genoutput.c (gen_expand): Must create a `struct data' even 3688: for a define_expand, so we can output the proper insn_gen_function 3689: and leave zeros in the other tables. 3690: 3691: * loop.c (scan_loop): Replace the code for handling zero-extends 3692: with unconditional code that checks for a pair of insns. 3693: 3694: * m68k.md: Do zero-extend using define_expand to generate 3695: a pair of insns, to set all to zero and then copy the low part. 3696: 3697: Thu Feb 18 15:54:00 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3698: 3699: * emit-rtl.c (emit_insn): If arg is a SEQUENCE, emit several insns. 3700: * emit-rtl.c (classify_insn): Given an RTX, return the rtx-code for 3701: an insn containing it: CODE_LABEL, INSN, JUMP_INSN or CALL_INSN. 3702: 3703: * rtl.def: New RTX types DEFINE_EXPAND and SEQUENCE. 3704: * gen*.c: Handle DEFINE_EXPAND. Only genemit.c does real work. 3705: 3706: * make.com, make-cc1.com, make-cccp.com: New, VMS command files. 3707: 3708: * tm-vms.h: New file, used as tm.h to generate VMS code. 3709: 3710: * tm-vax.h (FUNCTION_PROLOGUE): Turn off no bits in the mask; 3711: let call_used_registers alone control this. 3712: Call MAYBE_VMS_FUNCTION_PROLOGUE, and define that as no-op. 3713: 3714: * tm-vax.h (TARGET_VAXC_ALIGNMENT): New target-flag bit. 3715: BIGGEST_ALIGNMENT, EMPTY_FIELD_BOUNDARY and POINTER_BOUNDARY use it. 3716: 3717: * varasm.c (assemble_function): Use ASM_DECLARE_FUNCTION_NAME 3718: if it is defined. 3719: 3720: * varasm.c (assemble_variable): On an external, 3721: use ASM_OUTPUT_EXTERNAL if defined. Default is do nothing, as before. 3722: 3723: * toplev.c: 3724: Use FATAL_EXIT_CODE and SUCCESS_EXIT_CODE. 3725: Don't include time.h and resource.h on VMS. 3726: (main) Define __VERSION__ if not already defined. 3727: Conditionalize setrlimit on RLIMIT_STACK. 3728: Test __GNUC__, not __GNU__. 3729: Don't do `ps v' on VMS. 3730: (gettime): Conditional code for VMS. 3731: 3732: * gcc.c: Define __GNUC__ as well as __GNU__. 3733: __GNU__ will be deleted in a future version. 3734: 3735: * symout.c (symout_finish) [VMS]: Don't refer to `getwd' on VMS. 3736: * symout.c (symout_init) [VMS]: Fatal error; GDB syms not supported. 3737: 3738: * parse.y (yylex): Handle DOLLARS_IN_IDENTIFIERS. 3739: 3740: * genoutput.c (gen_insn): Workaround for VMS printf %s bug. 3741: 3742: * gen*.c: Include config.h. Whenever exiting, use 3743: SUCCESS_EXIT_CODE or FATAL_EXIT_CODE. 3744: 3745: * config-*.h: Define SUCCESS_EXIT_CODE and FATAL_EXIT_CODE. 3746: * config-vms.h: New file, mostly like config-vax.h. 3747: 3748: Wed Feb 17 13:35:34 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3749: 3750: * cccp.c: VMS support from Kashtan. 3751: Some #include files are conditional. 3752: Use file_size_and_mode instead of fstat. 3753: When reading file contents, the size we get from that 3754: is just an upper bound; don't assume it must match. 3755: Replacement definitions of read and write for VMS. 3756: Different default include directories. 3757: Conditionalize the setrlimit code on RLIMIT_STACK. 3758: Use SUCCESS_EXIT_CODE when exiting if no errors; 3759: both that and FATAL_EXIT_CODE are not #defined if already defined. 3760: 3761: Treat $ as an identifier-character if DOLLARS_IN_IDENTIFIERS. 3762: Rename the `delete' function as `delete_macro' 3763: to avoid VMS name conflict. 3764: 3765: * cexp.y: Treat $ as an identifier-character if DOLLARS_IN_IDENTIFIERS. 3766: 3767: * stmt.c (fixup_memory_offset): Do big-endian compensation 3768: only within a word, not for DImode vs SImode. 3769: 3770: * stmt.c (fixup_var_refs): Don't fix up the insn to load the var 3771: from its own stack slot; delete it instead. 3772: 3773: * tm-ns32k.h (MODES_TIEABLE_P): DImode is like DFmode. 3774: 3775: * tree.c (MAX_HASH_TABLE): 1009 (more prime) instead of 1008. 3776: 3777: * decl.c (duplicate_decls): If merged type is OLD's type, 3778: keep OLD's DECL_SIZE and DECL_SIZE_UNIT. 3779: 3780: * gen*.c (xmalloc, xrealloc): Call `fatal' if memory is full. 3781: 3782: * reload1.c (choose_reload_targets): If a mode doesn't fit the 3783: reload register, and the insn is an ASM_OPERANDS, ignore the reload. 3784: Otherwise, final would crash. 3785: 3786: * expmed.c (expand_shift): Two new strategies for lshr on short/char: 3787: widen and do ashr, or widen and do extzv. 3788: 3789: * vax.md (peepholes): Use dead_or_set_p to check for eliminable 3790: intermediate result, rather than requiring a match with final result. 3791: 3792: * local-alloc.c (block_alloc): Testing frame_pointer_needed is 3793: enough; no need to test FRAME_POINTER_REQUIRED, etc. 3794: * global-alloc.c (find_reg): Likewise. 3795: * reload1.c (reload): Likewise for flag_omit_frame_pointer 3796: 3797: * jump.c (delete_insn): If not `optimize', don't complain 3798: about finding an already-deleted insn in the chain. 3799: 3800: Tue Feb 16 17:14:54 1988 Richard Stallman (rms at wheaties.ai.mit.edu) 3801: 3802: * final.c: Don't define N_SOL and N_SLINE if already defined. 3803: 3804: * final.c (output_source_line): 3805: Typo calling ASM_OUTPUT_SOURCE_FILENAME. 3806: 3807: * flow.c (INSN_VOLATILE): fix a typo. 3808: 3809: Fri Feb 12 16:48:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3810: 3811: * final.c (final): for `asm' without operands, output literally. 3812: 3813: Thu Feb 11 12:44:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3814: 3815: * symout.c (symout_record_fields): Handle nameless fields. 3816: * symout.c (symout_record_field_names): Likewise. 3817: 3818: * typecheck.c (require_complete_type): `void' is a complete type. 3819: * typecheck.c (build_function_call): Don't complain if result is void. 3820: 3821: * tm-hp9k320.h: Change definition of ASM_SPEC to +X, not -X. 3822: 3823: * cccp.c (main): Expected object file name for foo.cc is foo.o. 3824: 3825: Wed Feb 10 16:04:58 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3826: 3827: * reload1.c (reload): Initialize `regmask' to zero. 3828: Class number is in I, not in CLASS, when setting its elements. 3829: Don't let J+K be too large. 3830: 3831: * reload1.c (potential_reload_regs): Make it a `short' 3832: since that can't be unsigned. 3833: 3834: * cccp.c (warning): New function, called like `error'. 3835: * cccp.c (do_define): Make redefinition just a warning. 3836: 3837: Tue Feb 9 13:28:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3838: 3839: * decl.c (grokdeclarator): Don't be fooled by ERROR_MARK as a declspec. 3840: 3841: * toplev.c (compile_file): Strip final .c or .co from .sym file name. 3842: 3843: * gcc.c: When running `as', specify the .sym file if -gg. 3844: 3845: Mon Feb 8 11:26:26 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3846: 3847: * expmed.c (store_fixed_bit_field): Don't try gen_lowpart on VALUE 3848: if it's a subreg since it might lose; use convert_to_mode instead. 3849: 3850: * tm-hp9k320.h: Define TARGET_MEM_FUNCTIONS. 3851: * expr.c (emit_block_move, emit_push_insn, clear_storage): 3852: If TARGET_MEM_FUNCTIONS, generate calls to memcpy and memset 3853: instead of bcopy and bzero. 3854: * optabs.c (emit_cmp_insn): Likewise for memcmp vs bcmp. 3855: 3856: * stmt.c (expand_goto): New temp var to avoid RT/PC compiler bug. 3857: 3858: Sun Feb 7 12:20:23 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3859: 3860: * flow.c (mark_used_regs, mark_set_regs): 3861: Handle hard regs in multiword modes: set the bits for each 3862: distinct register-number that makes up the multiword mode. 3863: Necessary because function arg registers can inevitably 3864: live across basic blocks. 3865: 3866: * cse.c (canon_hash): Function arg and value registers no longer 3867: considered volatile, because flow should now handle the code that 3868: can result from cse'ing them. 3869: 3870: * cse.c (make_regs_eqv): Abort if OLD is invalid. 3871: * cse.c (reg_invalidate): Abort if reg already invalid has eqvs. 3872: 3873: Sat Feb 6 16:25:32 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3874: 3875: * gcc.c (main): Specific error msg if no input files. 3876: 3877: Fri Feb 5 17:56:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3878: 3879: * stmt.c (expand_decl, put_var_into_stack, assign_parms): 3880: Set in_struct on a MEM if the variable is an aggregate or union. 3881: * varasm.c (assemble_variable): Set in_struct on aggregate vars. 3882: 3883: Thu Feb 4 11:52:30 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3884: 3885: * m68k.md (movsf): Correct two fmove.x to fmove.s. 3886: 3887: * expmed.c (extract_fixed_bit_field): 3888: Must always generate an `and' to mask the bitfield 3889: unless its width is the same as the output machine mode. 3890: 3891: * version 1.18 released. 3892: 3893: Wed Feb 3 08:41:20 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3894: 3895: * fold-const.c (fold): Convert EXPR's operands before returning them. 3896: 3897: Tue Feb 2 15:35:18 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3898: 3899: * reload.c (find_reloads_address_1): 3900: 3901: * typecheck.c (default_conversion): Handle COMPOUND_EXPR arrays. 3902: 3903: Mon Feb 1 18:53:05 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3904: 3905: * ns32k.md: operand 0 of all unsigned divide/modulus insns 3906: is now register_operand. 3907: 3908: * stdarg.h: Make va_list be char *, not char *[1]. 3909: Latest draft doesn't say it must be an array type. 3910: 3911: Sun Jan 31 11:14:07 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3912: 3913: * flow.c (find_basic_blocks): Add temp var to avoid Sequent 3914: compiler bug. 3915: 3916: * tm-ns32k.h (GO_IF_LEGITIMATE_ADDRESS): Don't allow pushes or pops 3917: since there are special insn patterns for them. 3918: Resubroutinize and add temp vars to make expressions smaller. 3919: * ns32k.md: Add a few more special stack insns; now there are enough. 3920: 3921: * tm-sequent.h: Definitions of DBX_NO_XREFS and DBX_CONTIN_LENGTH. 3922: 3923: * reload1.c (choose_reload_targets): Handling of reload_strict_low 3924: is needed for input reloads as well as output, since a strict_low_part 3925: operand is normally a read-write operand. 3926: 3927: * reload1.c (reload): The mode a reload needs is the wider of 3928: the input and output modes--just as it is in choose_reload_targets. 3929: 3930: * reload.c (find_dummy_reload): If IN and OUT have different widths 3931: and one of them exceeds a word, don't find any dummy reload. 3932: 3933: * toplev.c (compile_file): Allocate enough space for .jump2 filename. 3934: 3935: Sat Jan 30 10:35:46 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3936: 3937: * output-ns32k.c (print_operand_address): 3938: Print addresses of the form C1+(N*REG+C2) which currently 3939: are accepted as legitimate memory addresses. 3940: 3941: * tm-sequent.h: Simple bugs in PRINT_OPERAND, TARGET_DEFAULT 3942: and SEQUENT_ADDRESS_BUG. 3943: 3944: * gen*.c: Must explicitly exit; returning from `main' fails 3945: to indicate nonzero status due to bug in Unix. 3946: 3947: * parse.y (check_line_number): Ignore entire line of unrecognized 3948: #-directive; no error if it is `pragma'. 3949: 3950: Fri Jan 29 06:46:01 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3951: 3952: * genrecog.c, genextract.c, genoutput.c: Define bcopy and/or bzero. 3953: 3954: * cccp.c (do_define): Make defn->argnames long enough in no-args case. 3955: 3956: * reload1.c (reload): Make basic_block_needs 0 until after the 3957: frame pointer reg is spilled, so that ALL pseudos in it are spilled. 3958: 3959: * typecheck.c (truthvalue_conversion): 3960: Strip a NOP_EXPR only if it extends, not if it truncates. 3961: 3962: * Fixes for HPUX support from cph: 3963: * tm-hp9k320.h: Correct names of floating-point registers. 3964: Fix typos in ASM_OUTPUT_OPCODE; also convert `fmove' to `fmov'. 3965: * Makefile (comments for HPUX): 3966: cph says -Wd,-X isn't needed in CFLAGS, nor -lBSD in CLIB. 3967: Also that -g can't be used in CFLAGS with HP's pcc. 3968: * conf-hp9k320.h: New file, like config-m68k.h but with 3969: #defines for the bstring functions. 3970: * m68k.md: Add else-clauses to the HPUX_ASM conditionals on cmp insns. 3971: Reinsert mistakenly-deleted MOTOROLA conditionals around 3972: some OUTPUT_JUMPs. 3973: 3974: Thu Jan 28 09:51:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3975: 3976: * jump.c (jump_back_p): If TARGET is unconditional, return 0. 3977: 3978: Wed Jan 27 04:18:29 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 3979: 3980: * combine.c (subst): Simplify (plus (plus x c1) c2). 3981: 3982: * expr.c (emit_push_insn): Don't use small-block push-insns for BLKmode 3983: when one of them would be affected by PUSH_ROUNDING. 3984: Instead, make all the space and then copy. 3985: * expr.c (expand_call): Don't apply PUSH_ROUNDING if BLKmode. 3986: 3987: * Allow `asm' with operands to be marked volatile. 3988: * cse.c (canon_hash): Don't record ASM_OPERANDS that has `volatil'. 3989: * loop.c (invariant_p): ASM_OPERANDS with `volatil' can't be invariant. 3990: * flow.c (volatile_refs_p): Note ASM_OPERANDS that are volatile. 3991: * stmt.c (expand_asm_operands): New arg VOL; mark ASM_OPERANDS as vol. 3992: * typecheck.c (c_expand_asm_operands): New arg VOL. 3993: * parse.y: allow a TYPE_QUAL after ASM. 3994: 3995: * Make cse handle `asm' with operands: 3996: * cse.c (canon_hash): Hash string operands by contents, not address. 3997: * cse.c (exp_equiv_p): Compare string operands with strcmp. 3998: * rtl.c (rtx_equal_p): Compare string operands with strcmp. 3999: 4000: * decl.c (init_decl_processing): Once sizetype is set, 4001: correct the type of the sizes of types already made. 4002: 4003: * cccp.c (do_defines): Don't reject #define foo{a}. 4004: 4005: Tue Jan 26 04:53:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 4006: 4007: * reload.c (find_reloads): Now that `asm' is limited to 4008: MAX_RECOG_OPERANDS, eliminate dynamic allocation of `constraints' 4009: and `constraints1', and go back to `recog_operand' instead of 4010: `operands'. 4011: 4012: * typecheck.c (c_expand_asm_operands): New fn to handle `asm' for C. 4013: Calls expand_asm_operands, and handles output operands that 4014: the other function cannot handle. 4015: 4016: * parse.y: Call that function. 4017: 4018: * stmt.c (expand_asm_operands): Error if too many operands. 4019: #include insn-config.h to get MAX_RECOG_OPERANDS. 4020: 4021: * expr.c (expand_assignment): Use store_field to handle 4022: structure fields and array elements. 4023: 4024: * output-m68k.c (output_move_double): PUSHOP and POPOP were swapped. 4025: Handle insns that push an sp-relative address onto sp; 4026: these can arise with -fomit-frame-pointer. 4027: BUG? Do unoffsetable mem refs using sp and fp lose? 4028: 4029: * m68k.md (movdi,movdf): Allow unoffsetable mem refs 4030: only if the other operand is a register. 4031: 4032: * m68k.md (zero_extendqisi2): SGS conditionals deleted. 4033: Supposedly the MOTOROLA syntax works for those addresses. 4034: 4035: * typecheck.c (default_conversion): 4036: If flag_traditional, preserve unsignedness when promoting ints, 4037: and promote float to double. 4038: 4039: * typecheck.c (build_binary_op_nodefault): 4040: Allow comparisons between pointers and ints. 4041: If not -traditional, warn about them. 4042: 4043: Mon Jan 25 02:11:18 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 4044: 4045: * expmed.c ({extract,store}_split_bit_field): 4046: Functions {extract,store}_split_reg_bit_field now work for memory 4047: also, and therefore are renamed. 4048: * ({extract,store}_fixed_bit_field): Call those fns when a field 4049: is split across two words. 4050: Also, preserve the `volatil' bit on memory refs. 4051: 4052: * output-m68k.c (output_move_double): Handle nonoffsetable mem refs. 4053: * m68k.md: Relax constraints on movdi, movdf. 4054: 4055: * decl.c (init_decl_processing): Define `int' and `char' first. 4056: Set `sizetype' explicitly. 4057: 4058: * stmt.c (fixup_var_refs_1): May not just return when a SET 4059: doesn't have VAR as its src or dest. 4060: 4061: * varasm.c: Don't include c-tree.h. 4062: 4063: * decl.c (build_struct): Split this function into three: 4064: `xref_tag', `start_struct' and `finish_struct'. 4065: `xref_tag' subsumes `xref_enum'. 4066: 4067: * parse.y (structsp): When parsing `struct foo {...}', define the tag 4068: as a cross-ref before parsing the components. Use the three new fns. 4069: 4070: * regclass.c (regclass): Recognize new-format ASM_OPERANDS insns 4071: with `asm_noperands', and scan their operands as usual. 4072: 4073: * cse.c: In numerous functions such as canon_hash, rtx_cost, etc. 4074: that do tree-walk on rtx, handle vectors of subexpressions. 4075: 4076: * loop.c (invariant_p): Likewise. 4077: 4078: * jump.c (delete_insn): Two bugs: 4079: If insn already deleted, return the first following nondeleted. 4080: Deleting a jump's label can delete NEXT. Make sure return value 4081: is always the first insn following INSN and not yet deleted. 4082: 4083: Sun Jan 24 02:27:49 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 4084: 4085: * rtl.def (ASM_OPERANDS): Change the rtl expression of an 4086: `asm' with operands so it looks like this for one output operand: 4087: (set OUTPUT (asm_operands:OUTPUTMODE INSNSTRING OUTPUTCONSTRAINT 4088: 0 INPUTS INPUTCONSTRAINTS)). 4089: and like this for multiple outputs: 4090: (PARALLEL [ 4091: (set OUTPUT0 (asm_operands:OUTPUTMODE INSNSTRING OUTPUTCONSTRAINT 4092: 0 INPUTS INPUTCONSTRAINTS)). 4093: (set OUTPUT1 (asm_operands:OUTPUTMODE1 INSNSTRING OUTPUTCONSTRAINT1 4094: 1 INPUTS INPUTCONSTRAINTS))]) 4095: 4096: * parse.y: Change parsing of `asm' to distinguish input and output 4097: operands. Separate them with colon; separate the string with colon. 4098: 4099: * stmt.c (expand_asm_operands): Receive inputs and outputs separately. 4100: Generate the new rtl format. 4101: 4102: * recog.c (asm_noperands, decode_asm_operands): New fns 4103: for extracting the operands and constraints from these insns. 4104: 4105: * final.c (final): Recognize and output the new rtl format 4106: using those new functions. 4107: 4108: * reload.c (find_reloads): Recognize and get constraints 4109: from the new rtl format using those new functions. 4110: New variable `operand_modes' holds the machine modes of the 4111: operands, obtained one way for ASM_OPERANDS insns and another 4112: for other insns. 4113: 4114: * rtl.c (note_stores): Calling convention 4115: is changed: the first arg FUNCTION now receives as its 2nd arg 4116: 1 if clobbering, 0 if setting. Used to be the CLOBBER or SET rtx. 4117: 4118: * local-alloc.c (reg_is_set): This fn is called from note_stores; 4119: change its arguments. 4120: 4121: * tm-m68k.h (FIXUP_FRAME_POINTER_ADDRESSES): 4122: Use frame_pointer_rtx to recognize intended frame-pointer refs 4123: and not recognize pseudo-regs that were allocated to the frame 4124: pointer register. 4125: 4126: * emit-rtl.c: All refs to frame pointer use a single rtx, in 4127: frame_pointer_rtx. Likewise arg_pointer_rtx for the arg pointer. 4128: If they are the same register, these are the same rtx. 4129: Initialize them in init_emit. 4130: * rtl.h: Declare these vars. 4131: 4132: * stmt.c (assign_parms, assign_stack_local): Use those rtx's. 4133: 4134: Sat Jan 23 00:32:10 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 4135: 4136: * reload.c (find_reloads): Don't combine_reloads if `&' constraint 4137: was used. 4138: 4139: * parse.y: Parse `asm' with operands. 4140: * stmt.c (expand_asm_params): New fn: generate an ASM_OPERANDS for 4141: `asm' with operands. 4142: * final.c (final): Output an ASM_OPERANDS insn-body. 4143: * regclass.c (regclass): Ignore ASM_OPERANDS, like ASM_INPUT. 4144: 4145: * reload.c (find_reloads): Handle reloading of ASM_OPERANDS. 4146: The number of operands can no longer be bounded. 4147: For example we can't always put the operands in recog_operands. 4148: 4149: New locals OPERANDS and OPERAND_LOCS point to alloca'd vectors of 4150: operands and their locations. New locals CONSTRAINTS and CONSTRAINTS1 4151: hold alloca'd vectors of constraints. 4152: 4153: Unfortunately this isn't enough; every vector with length 4154: MAX_RECOG_OPERANDS needs to be dynamically allocated. 4155: Would this be too slow? For now, a cheap "solution" is to delete 4156: any insn that has too many operands. 4157: 4158: * rtl.def: Delete VOLATILE, UNCHANGING and UNDESCRIBED. 4159: Add ASM_OPERANDS. 4160: 4161: * regclass.c (reg_class_record): Delete ref to UNCHANGING. 4162: * loop.c (invariant_p): 4163: * rtl.c (rtx_varies_p): 4164: 4165: * cccp.c: Define __VERSION__. 4166: 4167: * decl.c (shadow_tag): TYPE_NAME doesn't work to get the tag-name 4168: of a struct, so use new function lookup_tag_reverse. 4169: * decl.c (lookup_tag_reverse): Given a type, return its tag name. 4170: 4171: * symout.c (symout_source_file): Output one `struct source'. 4172: * symout.c (symout_lines): Output all of them, and the sourcevector. 4173: * gdbfiles.h: New file for communication between final.c and symout.c. 4174: 4175: * final.c (output_source_line): New arg WRITE_SYMBOLS says write 4176: new GDB-format linenumber info. Assigns a filenum to each source 4177: file name and keeps track of the correspondence. 4178: 4179: * cccp.c (do_include): Output the -M info after searching the dirs; 4180: include the actual dir name. Don't generate "./" for current dir. 4181: 4182: Fri Jan 22 04:10:10 1988 Richard Stallman (rms at frosted-flakes) 4183: 4184: * tm-news800.h: Delete override of INDIRECTABLE_1_ADDRESS. 4185: Output is faster if it doesn't use 32-bit displacements. 4186: 4187: * reload.c (combine_reloads): New function. 4188: If possible, find an input reload 4189: and an output reload that can be turned into one input-output reload. 4190: The old output-reload is marked as inoperative: reload_out 4191: and reload_in both zero. This is called from find_reloads. 4192: 4193: * reload1.c (reload, choose_reload_targets): Ignore inoperative 4194: reloads. 4195: 4196: * Print warnings for variables that could be clobbered by `longjmp'. 4197: * expr.c (expand_call): Generate a NOTE_INSN_SETJMP whenever 4198: `setjmp' or `_setjmp' is called. 4199: * flow.c (propagate_block): When NOTE_INSN_SETJMP is seen, 4200: record the live regs in `regs_live_at_setjmp'. 4201: * stmt.c (uninitialized_vars_warning): Warn about vars that have regs 4202: that are set more than once and are marked in `regs_live_at_setjmp'. 4203: Works through function `regno_clobbered_by_longjmp'. 4204: * rtl.h: Define NOTE_INSN_SETJMP. 4205: 4206: * genrecog.c (try_merge_2): When enforce_modes, keep all the 4207: alternatives segregated by modes and keep the modes in numerical order. 4208: * genrecog.c (write_tree): Make conditions for switch-on-modes 4209: know what difference enforce_mode makes. 4210: 4211: Thu Jan 21 00:12:35 1988 Richard Stallman (rms at frosted-flakes) 4212: 4213: * tm-ns32k.h: Use Stein's definitions of PRINT_OPERAND{,_ADDRESS}; 4214: move the Sequent definitions info tm-sequent.h. 4215: Handle %$ in both old and new PRINT_OPERAND. 4216: Define CPP_PREDEFINES. 4217: 4218: * ns32k.md: Merge some features from Jan Stein's port: 4219: strict_low_part insns, smart output of booleans with small 4220: constant args, acbd insns generalized for other increments. 4221: Use %$ wherever there is an explicit immediate. 4222: Fix shortcomings of adjsp insns: use adjspd in general, 4223: and use adjspb in all the cases that allow it. 4224: Don't bother explicitly clearing CC_REVERSED. 4225: For tstsf/tstdf, output the floating-zero constants 4226: using {f,d}const0_rtx. 4227: 4228: A problem still remains, which is that the Sequent and the 4229: other ns32k assembler syntax require different 4230: 4231: * typecheck.c (unary_complex_value): Use correct datatype for 4232: compound-exprs. 4233: 4234: * gen*.c (main): Use obstack_init instead of obstack_begin. 4235: 4236: * vax.md: define_peephole for andl3 x,y,z; extzv z,....,z 4237: 4238: * m68k.md (tstsi): Use cmpw instead of cmpl to test addr reg. 4239: 4240: * tm-m68k.h: Bugs for 68000 when frame size is over 64k. 4241: For FUNCTION_PROLOGUE, just subtract from sp instead of fp. 4242: For FUNCTION_EPILOGUE, must put the size into a0 and then 4243: all insns must be indexed by a0. And do this even on 68020. 4244: 4245: * tm-isi68.h: Similar changes. 4246: * tm-news800.h, tm-hp9k320.h: Similar changes. 4247: 4248: Wed Jan 20 04:38:21 1988 Richard Stallman (rms at frosted-flakes) 4249: 4250: * cccp.c (error_with_line): New function. 4251: Use it to report the "unterminated whatever" errors. 4252: 4253: * typecheck.c (build_unary_op): Recursive call had missing arg. 4254: 4255: * m68k.md (movhi): If MOTOROLA, the insn that fetches from a 4256: case-dispatch table now defines the LI label as .+2. 4257: * tm-news800.el, tm-hp9k320.h (PRINT_OPERAND_ADDRESS): 4258: Don't subtract 2 when outputting the address in that insn. 4259: 4260: Tue Jan 19 00:02:33 1988 Richard Stallman (rms at frosted-flakes) 4261: 4262: * cse.c (cse_basic_block): Abort if more qtys were used than allocated. 4263: 4264: Mon Jan 18 04:44:28 1988 Richard Stallman (rms at frosted-flakes) 4265: 4266: * cccp.c (special_symbol): tm_mon is origin-0, not origin-1. 4267: 4268: * final.c (output_asm_insn): If %LETTER with no digits, 4269: pass null pointer as the operand. 4270: 4271: * output-m68k.c (singlemove_string): Get rid of %e. 4272: 4273: * stmt.c (fixup_memory_subreg): Convert (SUBREG (MEM a)) to (MEM a'). 4274: * stmt.c (fixup_var_ref_1): Use that fn for operands of 4275: SIGN_EXTRACT and ZERO_EXTRACT, since (SUBREG:SI (REG:QI...)) 4276: could have turned into (SUBREG:SI (MEM:QI...)), which is unsafe. 4277: 4278: * rtl.c (debug_rtx): Print an rtx on stderr, for debugging. 4279: 4280: Sun Jan 17 04:37:20 1988 Richard Stallman (rms at frosted-flakes) 4281: 4282: * gcc.c: options -M* treated like -M. 4283: 4284: * stmt.c (pushcase): Do nothing if the case index has error_mark type. 4285: 4286: * expr.c (expand_increment): Don't use queue for post-inc on memory 4287: if the add insn requires register args. (Better code for RISCs.) 4288: 4289: Sat Jan 16 02:10:22 1988 Richard Stallman (rms at frosted-flakes) 4290: 4291: * ns32k.md: Change register_operand to general_operand. 4292: * ns32k.md (udivmoddisi4): Use match_dup where required. 4293: Comment it out because it can't accept two independent output args. 4294: 4295: Fri Jan 15 00:02:35 1988 Richard Stallman (rms at frosted-flakes) 4296: 4297: * toplev.c: Include sys/time.h only for BSD. For USG, use time.h. 4298: This is correct for HPUX; don't know about others. 4299: 4300: * gcc.c (execute): Eliminate `union wait'. Make `status' an int. 4301: * gcc.c (execute) [USG]: Use fork instead of vfork. 4302: 4303: * final.c (output_source_line): Use ASM_OUTPUT_SOURCE_{FILENAME,LINE} 4304: if they are defined. 4305: 4306: * tm-hp9k320.h: New name for tm-hpux.h. 4307: * tm-hp9k320.h (ASM_OUTPUT_LOCAL): Add 3rd arg to `lcomm' statements. 4308: * tm-hp9k320.h (ASM_OUTPUT_{DOUBLE,FLOAT}): Use `double' and `float'. 4309: * tm-hp9k320.h (CALL_USED_REGISTERS): Don't save any 68881 regs. 4310: * tm-hp9k320.h (CPP_PREDEFINES): different names defined. 4311: * tm-hp9k320.h (HPUX_ASM, NO_DBX_FORMAT, ASM_SPEC): define these. 4312: * tm-hp9k320.h (ASM_OUTPUT_OPCODE): Convert `ftst' to `ftest'. 4313: * tm-hp9k320.h: Define ASM_OUTPUT_SOURCE_{FILENAME,LINE}. 4314: 4315: * m68k.md: Rename `hpux' conditionals to `HPUX_ASM'. 4316: * m68k.md: Reverse `fcmp' args if HPUX_ASM. 4317: 4318: * cccp.c (print_deps): 2 means give all files, 1 means only user files. 4319: * cccp.c (do_include): Support that. 4320: * cccp.c (main): -MM sets 1, -M alone sets 2. 4321: * cccp.c (main): Give fatal error if I/O error in writing. 4322: 4323: * toplev.c (fatal_io_error): Report I/O error on given filename, 4324: and exit. 4325: 4326: * toplev.c (compile_file): Detect error writing asm_out_file. 4327: Always put asm file's name in asm_file_name for err msg. 4328: * symout.c (symout_finish): Detect error writing symfile. 4329: * symout.c (symout_init): Save filename in symfile_name for err msg. 4330: 4331: * gen*.c: Return 1 if ferror (stdout)--in case disk is full. 4332: 4333: * local-alloc.c (block_alloc): Don't crash if 1st rtx 4334: in a PARALLEL is not a SET. 4335: 4336: * tm-m68k.h, tm-news800.h (PRINT_OPERAND). Eliminate code `%e'. 4337: * m68k.md: Change `%e' to `e' everywhere. 4338: * tm-hpux.h (ASM_OUTPUT_OPCODE): Output `move' as `mov'. 4339: 4340: * tm-m68k.h, tm-news800.h, tm-hpux.h (PRINT_OPERAND): 4341: New code `%!' is output as the name for the cc register. 4342: * m68k.md (insns that use andi to ccr): Use `%!' to avoid 4343: conditionals. 4344: 4345: * cse.c: Record in qty_const_insn the insn that stored the 4346: constant value of a qty. When making a REG_WAS_0 note, 4347: store in it the insn that established the value 0. 4348: 4349: * vax.md (movsi): When checking a REG_WAS_0 note, 4350: verify that the insn it points to hasn't been deleted or made a NOTE. 4351: 4352: Thu Jan 14 00:01:35 1988 Richard Stallman (rms at frosted-flakes) 4353: 4354: * toplev.c: Eliminate error_with_line and warning_with_line. 4355: * parse.y, decl.c: Change remaining calls to those two. 4356: 4357: * tree.c (get_unwidened, get_narrower): To see if a COMPONENT_REF 4358: is unsigned, look at the FIELD_DECL, not at the COMPONENT_REF. 4359: 4360: * rtl.c (print_rtx): Print /v for the `volatil' bit. 4361: * expr.c (expand_assignment expand_expr): If handling a COMPONENT_REF, 4362: note whether it is volatile. 4363: 4364: * fold-const.c (fold): a call to split_tree missed an argument. 4365: 4366: * flow.c (volatile_refs_p): Scan an rtx for volatile mem refs. 4367: * flow.c (life_analysis): Record in INSN_VOLATILE which insns 4368: have any volatile mem refs. 4369: * flow.c (mark_used_regs): Always mark an insn with volatile mem refs. 4370: Always pass INSN as an arg. New arg FINAL now says whether 4371: this is the last time scanning. 4372: * flow.c (propagate_block): Don't delete insns with volatile mem refs. 4373: 4374: * flow.c: Remove all refs to `obey_regdecls'. 4375: Calling this with -noreg just doesn't help -W. 4376: 4377: Wed Jan 13 01:13:07 1988 Richard Stallman (rms at frosted-flakes) 4378: 4379: * decl.c (finish_decl): Error if auto var's size isn't known. 4380: Change type to error_mark_node to avoid crash if the var 4381: is used in an expression, since it has no DECL_RTL. 4382: 4383: * output-m68k.c (output_move_const_single): % -> %% for sprintf. 4384: 4385: * parse.y (yylex): Store token_buffer properly after ellipsis. 4386: 4387: * decl.c (duplicate_decls): Don't call layout_decl 4388: for FUNCTION_DECL or TYPE_DECL. 4389: 4390: * toplev.c (warning_with_decl): New warning function with decl as arg. 4391: * (error_with_decl): similar. 4392: 4393: * decl.c: Replace most `yylinerror' calls with `error_with_decl'. 4394: 4395: * decl.c (build_struct): Reform code to detect erroneous bit-fields. 4396: All such errors are now detected here. 4397: Promote bit-fields to int if appropriate. 4398: If traditional, make all int bit-fields unsigned. 4399: Set DECL_ALIGN for members that are not bit-fields. 4400: 4401: * decl.c (grokfield): Don't set DECL_ALIGN here. 4402: 4403: * stor-layout.c (layout_decl): Don't promote the type of a bit-field. 4404: Use TREE_PACKED to distinguish a bit-field. 4405: Don't check the width because build_struct did that. 4406: 4407: * m68k.md (cmpm): Reject if either operand (address) is a constant. 4408: 4409: Tue Jan 12 15:11:20 1988 Richard Stallman (rms at frosted-flakes) 4410: 4411: * cse.c (canon_reg): Never replace ANY hard reg from reg_rtx 4412: because that could alter the machine mode. 4413: 4414: * tm-news800.h: Redefine INDIRECTABLE_1_ADDRESS only if MOTOROLA. 4415: 4416: Mon Jan 11 13:15:45 1988 Richard Stallman (rms at frosted-flakes) 4417: 4418: * jump.c (follow_jumps): If we find a cycle, make it a jump to self. 4419: 4420: * cse.c (predecide_loop_entry): Give up if chase more than 10 jumps. 4421: 4422: Sun Jan 10 14:52:42 1988 Richard Stallman (rms at frosted-flakes) 4423: 4424: * reload1.c (reload): basic_block_needs (new vector) gets 1 4425: for each basic block that needs a reload. 4426: * reload1.c (spill_hard_reg): Don't spill pseudos that are 4427: confined to a basic block which has no need for any reloads. 4428: * reload1.c (reload): Each cycle that any element of basic_block_needs 4429: changes from 0 to 1, must re-spill all previously spilled regs. 4430: 4431: * regclass.c (record_address_regs): 4432: Skip the charging of ICOST if it is 0. 4433: 4434: * flags.h, toplev.c: New flag -fvolatile. 4435: * typecheck.c (build_indirect_ref): If flag_volatile, 4436: every INDIRECT_REF is marked with TREE_THIS_VOLATILE. 4437: 4438: * fold-const.c (fold): Test in TRUTH_NOT_EXPR case was backward. 4439: Also result type is always `int'. 4440: 4441: Sat Jan 9 04:16:11 1988 Richard Stallman (rms at rice-krispies) 4442: 4443: * flags.h (flag_traditional): New flag. 4444: * toplev.c: recognize -ftraditional and -traditional. 4445: * parse.y (yylex): If flag_traditional, don't recognize 4446: `signed', `const' or `volatile'. 4447: 4448: * decl.c (pushdecl): If flag_traditional, any extern decl 4449: takes effect at top level. 4450: 4451: * tree.c (lvalue_or_else): New 2nd arg for use in error message. 4452: * typecheck.c: All callers pass 2nd arg. 4453: 4454: * global-alloc.c: allocno_preferred_reg can specify a preferred 4455: hard reg for each allocno. If so, try it first (new call to find_reg). 4456: 4457: * global-alloc.c (find_reg): New arg PREFREG specifies reg to try 4458: first. 4459: 4460: * decl.c (build_struct): if :0 bit field at the end, round the 4461: structure size to multiple of EMPTY_FIELD_BOUNDARY. 4462: 4463: * cse.c (make_regs_eqv): Was testing for reg_next_eqv[lastr] == 0 4464: and should be == -1. 4465: 4466: * reload1.c (reload_as_needed): Fix invalid optimization deleting 4467: the previous store into a pseudo-reg that feeds an input-reload. 4468: It is not safe because a later insn may look in the pseudo's stack 4469: slot for the value. Delete the store only if we can eliminate the 4470: pseudo entirely or if the current insn stores a new value there. 4471: Also verify that reload_in[j] is a REG. 4472: 4473: * reload1.c (reload_as_needed): When doing an input reload from a 4474: pseudo that was stored by the previous insn (not as a reload), 4475: redirect the previous insn into the reload register, if this lets 4476: us eliminate the pseudo entirely. 4477: 4478: * reload1.c (reload_as_needed): In both of the above cases, it's 4479: impossible to prevent a stack slot since one was already assigned, 4480: so don't alter reg_n_refs. Instead, set reg_renumber to record 4481: that this pseudo did get a hard reg. 4482: 4483: * stmt.c: Set `volatil' in pseudo-regs for the user's variables. 4484: 4485: * jump.c (delete_insn): Do nothing if insn already deleted. 4486: 4487: * tm-sun{2,3}.h: #define STRUCTURE_SIZE_BOUNDARY 2 4488: for compatibility with Sun PCC. Note that 4.3 vax PCC 4489: does not want this. 4490: 4491: * fold-const.c: Replace truncate_unsigned with force_fit_type 4492: which truncates unsigned types and sign-extends signed types. 4493: 4494: * expr.c (do_jump): emit_queue before outputting the jump insns 4495: that use the comparison. 4496: 4497: * stmt.c: Error message for any goto that jumps into a 4498: binding contour that restores a stack level. 4499: 4500: TREE_PACKED (label) means label was defined inside 4501: such a binding contour that is now exited. Using such a label 4502: is an error. 4503: 4504: TREE_ADDRESSABLE (label) means label was used from a place 4505: outside all such binding contours. If this is 1 when 4506: TREE_PACKED is set to 1, it is an error. 4507: 4508: Any other invalid goto must have a fixup. fixup_gotos detects 4509: such invalid gotos. fixup_gotos takes a second arg, which 4510: is the first insn of the contour now being exited. 4511: 4512: * GNU C version 1.17. 4513: 4514: Local Variables: 4515: mode: indented-text 4516: left-margin: 8 4517: fill-column: 76 4518: version-control: never 4519: End:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.