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