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