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