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