|
|
1.1.1.11! root 1: Sat Nov 19 02:18:02 1988 Richard Stallman (rms at apple-gunkies.ai.mit.edu) ! 2: ! 3: * Version 1.31 released. ! 4: ! 5: * sparc.md: Change `K' to `I' in all constraints. ! 6: ! 7: * loop.c (gen_iv_mult): Handle TARGET==0. ! 8: ! 9: * c-decl.c (duplicate_decls): Undo last change. ! 10: ! 11: * c-decl.c (pushdecl): Instead of that change, ! 12: save old-decl's file/line before calling duplicate_decls, ! 13: and pass them later to warning_with_file_and_line. ! 14: * toplev.c (warning_with_file_and_line): New fn. ! 15: ! 16: Fri Nov 18 13:07:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 17: ! 18: * stmt.c (fixup_var_refs_1): (SUBREG (MEM)) was slipping through ! 19: in case where a SET was writing in the variable being fixed. ! 20: ! 21: * recog.c (register_operand, nonmemory_operand, memory_operand): ! 22: Changes to handle new var reload_completed: 1 means that ! 23: (SUBREG (MEM)) now counts as a mem-ref, since alter_subreg ! 24: will make it one. ! 25: * toplev.c (rest_of_compilation): Set and clear reload_completed. ! 26: ! 27: * sparc.md (call patterns): If TARGET_SUN_ASM, and address in reg, ! 28: output a jmpl rather than a call. ! 29: * tm-sun4os3.h: Like tm-sparc.h but turn on TARGET_SUN_ASM. ! 30: ! 31: * reload.c (push_reloads): Reinstate handling of reg_equiv_constant. ! 32: ! 33: Thu Nov 17 09:48:14 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 34: ! 35: * reload1.c (constraint_accepts_reg_p): Name changed from ! 36: constraint_all_regs_p; new arg is reg we are concerned with, ! 37: and condition tested takes some advantage of that reg. ! 38: ! 39: * gcc.c (main): Rename var `error' to `error_count' for name conflict. ! 40: ! 41: * emit-rtl.c (emit_note): Output line #s even if no debug info wanted. ! 42: (emit_line_note): New fn, does what emit_note did. ! 43: (emit_line_note_force): New name for emit_note_force. ! 44: * stmt.c, c-parse.y: Call emit_line_note instead of emit_note. ! 45: ! 46: * c-parse.y (maybe_type_qual): Call emit_note instead of emit_line_note ! 47: Now we can find the line # of every `asm' from the RTL. ! 48: * toplev.c (error_for_asm): New fn, gets line # by searching for NOTE. ! 49: * reload.c (find_reloads): Use error_for_asm. ! 50: * reload1.c (choose_reload_targets): Likewise. ! 51: * final.c (output_operand_lossage): Likewise. ! 52: Variable this_is_asm_operands is now current insn if it's nonzero. ! 53: ! 54: * loop.c (move_movables): When a reg is moved, update regno_first_uid ! 55: and regno_last_uid; say life span includes entire loop. ! 56: * Decrement THRESHOLD per reg moved, not per insn moved. ! 57: ! 58: Wed Nov 16 08:41:32 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 59: ! 60: * gnulib.c (___builtin_saveregs): New fn, for sparc. ! 61: ! 62: * tm-sparc.h (GO_IF_LEGITIMATE_ADDRESS): Don't recognize ! 63: SYMBOL_REFs, except for the constants pool. ! 64: But do recognize REG+REG and SMALLINT+REG. ! 65: * sparc.md: New patterns for fetching and storing memory ! 66: whose address is symbolic and not "legitimate". ! 67: ! 68: * sparc.md (movsi): Add `f' to op1 constraint. ! 69: New output clause for result in fp reg. ! 70: (Floating point fetch patterns): Output sethi insns. ! 71: (call_value, related patterns): value-register has `register_operand'. ! 72: ! 73: * output-sparc.c (hardreg): New function. ! 74: (COMPATIBLE): Clause added for n_regs == 2. ! 75: (single_insn_src_p): Return 0 for MEM whose address is absolute. ! 76: ! 77: * tm-genix.h (GO_IF_LEGITIMATE_ADDRESS subroutines): ! 78: Redefine, to exclude any possibility of SB-referencing addresses. ! 79: ! 80: * loop.c (strength_reduce): Can't eliminate a biv if used before ! 81: start of the loop. Used before is same as used after, if contained ! 82: in another loop. ! 83: ! 84: * recog.c (asm_noperands, decode_asm_operands): ! 85: Handle case of no outputs, but some clobbers. ! 86: * stmt.c (expand_asm_operands): Generate right stuff for that case. ! 87: ! 88: * tm-sun3.h (CPP_SPEC): Don't define __HAVE_68881__ if using fpa. ! 89: ! 90: Tue Nov 15 00:10:26 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 91: ! 92: * loop.c (gen_iv_mult): Arg OP0 may not be a constant. ! 93: Pay attention to return value of expand_mult. ! 94: (eliminate_biv): Call changed. ! 95: ! 96: * output-m88k.c, output-sparc.c (output_move_double): ! 97: Fix typo `optype0' for `optype1'. ! 98: ! 99: * c-decl.c (duplicate_decls): Don't alter file, line of old decl. ! 100: ! 101: * c-parse.y (skip_white_space): Don't recognize comments; rely on cpp. ! 102: ! 103: * rtl.c (rtx_equal_p): Handle vectors. ! 104: ! 105: * loop.c (scan_loop): Change elts of n_times_set back to positive ! 106: for candidates that weren't moved, before doing strength reduction. ! 107: ! 108: * ns32k.md (movdi, movdf): Use `&' constraint for first operand. ! 109: ! 110: * reload1.c (reload): Initialize spill_indirect_ok here. ! 111: ! 112: * config-sun4.h: Recognize `-static' switch. ! 113: ! 114: * global-alloc.c (set_preference): Avoid using nonsense hard reg #s ! 115: that result from adding OFFSET. ! 116: ! 117: * sdbout.c (sdbout_end_function): Line # in .ef should be relative. ! 118: ! 119: * final.c (output_source_line): For SDB, don't output negative #s. ! 120: ! 121: * tm-encore.h (ASM_OUTPUT_LOCAL): Don't ignore SIZE arg. ! 122: ! 123: Mon Nov 14 11:03:16 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 124: ! 125: * reload.c: Don't declare refers_to_regno_p. ! 126: ! 127: * gcc.c (main): Warn if any input files are for the linker ! 128: but the linker is not being run. ! 129: ! 130: * jump.c (sets_cc0_p): Dumb bug fetching elts of a PARALLEL. ! 131: ! 132: * local-alloc.c: qty_birth, qty_death elements are now -1, not 0, ! 133: when the value is not known. ! 134: ! 135: * expmed.c (extract_bit_field): Bug computing xbitpos, xoffset ! 136: when changing units from bytes to words. ! 137: ! 138: * loop.c: Rename `times_used' field in `struct movable' to `savings'. ! 139: (scan_loop): When scanning the consecutive sets, for each libcall, ! 140: increment `savings'--leave `consec'. ! 141: When making movable for (SET (REG) 0) which is part of zero-extension, ! 142: set `savings' to 1 initially, since only 1 insn will be moved. ! 143: And don't let any other reg force that insn. ! 144: Reduce initial THRESHOLDs. ! 145: (move_movables): Don't add `consec' into `savings' ! 146: since the initial `savings' was proportional to `consec'. ! 147: Decrement THRESHOLD by 3 (not 2) for each move done. ! 148: ! 149: * reload1.c (choose_reload_targets): Strip subregs from OLD ! 150: before writing the output-reload move-insn. ! 151: ! 152: * reload1.c (reload): counted_for_groups and counted_for_nongroups ! 153: are now file-scope. Update them both when spilling. ! 154: (new_spill_reg): No need for counted_for_nongroups as arg. ! 155: (choose_reload_targets): Don't use for a group ! 156: any spill regs for which counted_for_nongroups is set. ! 157: ! 158: * dbxout.c (dbxout_symbol): Indirect-symbol case checked erroneously ! 159: for PARM_DECL. ! 160: ! 161: Sun Nov 13 08:13:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 162: ! 163: * cse.c (fold_rtx): Don't alter MULT by -1 if arg mode != result mode. ! 164: ! 165: * loop.c (move_movables): If moving a CALL_INSN, make a new CALL_INSN. ! 166: * emit-rtl.c (emit_call_insn_before): New fn. ! 167: ! 168: * config-sun4.h (LINK_SPEC): Avoid shared libraries if -g. ! 169: ! 170: * expr.c (store_one_arg): Stabilize ARG->stack so it doesn't use SP ! 171: before computing the arg value. ! 172: ! 173: * combine.c (use_crosses_set_p): Moving a ref to stack ptr ! 174: is always forbidden if machine has push insns, since might cross one. ! 175: ! 176: * vax.md (movqi): Avoid out-of-range immed ops in mcomb. ! 177: ! 178: * expmed.c (extract_bit_field): Don't say `extzv' in the ! 179: clause for `extv'. ! 180: ! 181: * emit-rtl.c (copy_rtx_if_shared): Even if a MEM can be shared, ! 182: unshare its address from everything outside that MEM. ! 183: ! 184: * expr.c (expand_builtin): Fix omitted arg to `convert_to_mode'. ! 185: ! 186: * expr.c (store_expr): In case where will not return TARGET ! 187: and must do type conversion, don't fail to store into TARGET. ! 188: ! 189: * dbxout.c (FORCE_TEXT): New macro used before output `.stabs' ! 190: to go to the text section on targets that require it. ! 191: (DEBUG_SYMS_TEXT): Target macro which turns on that feature. ! 192: ! 193: * reload1.c (reload): Index in spill_regs was wrong ! 194: when checking counted_for_groups. ! 195: (choose_reload_targets): When calling find_equiv_reg looking for ! 196: a reload reg, reject all spill regs, even those not in use now. ! 197: ! 198: * tm-sun386.h, tm-sun386i.h, config-sun386i.h: New files. ! 199: ! 200: * cccp.c (main): Don't die if no output file arg given. ! 201: ! 202: * fixincludes: Tell `find' to find only ordinary files. ! 203: ! 204: Sat Nov 12 20:43:20 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) ! 205: ! 206: * Makefile (gnulib): Use cp to make the temporary .c files; ! 207: less likely to fail than ln. ! 208: ! 209: Sat Nov 5 12:46:39 1988 Randall Smith (randy at sugar-bombs.ai.mit.edu) ! 210: ! 211: * tm-m68k.h (HARD_REGNO_MODE_OK): Disallowed d7:a0 as an allowable ! 212: pair of registers to hold a double value. This is correct for the ! 213: fpa but incorrect for the 68881. It was, however, simpler than ! 214: defining a new regclass. ! 215: ! 216: Tue Oct 25 12:03:49 1988 Randall Smith (randy at gluteus.ai.mit.edu) ! 217: ! 218: * m68k.md: Added some thoughts (comments) on best method to allow ! 219: 68881 code with fpa code. ! 220: 1.1.1.10 root 221: Thu Oct 13 14:19:17 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 222: 1.1.1.11! root 223: * Version 1.30 released. ! 224: 1.1.1.10 root 225: * stupid.c (stupid_life_analysis): Init last_call_suid with 226: largest possible value, not 0. 227: 228: Wed Oct 12 04:40:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 229: 230: * output-i386.c (output_asm_insn_double_reg_op): Compensate for 231: assembler bug that interchanges fsub and fsubr. 232: 233: * reload1.c (order_regs_for_reload): Undo 29 Sept change. 234: It breaks the 386. 235: 236: * varasm.c (decode_rtx_const): Don't example value->addr 237: if what was stored in was value->d. 238: 239: * toplev.c (set_float_handler): New fn, specify where to jump 240: on floating exception signal. 241: * fold-const.c (combine): Use that to handle overflow in arithmetic. 242: 243: * c-decl.c (grokdeclarator): Don't clear CONSTP, VOLATILEP 244: when making an array type. 245: 246: * dbxout.c (dbxout_symbol): Ignore VAR_DECLs in memory whose 247: addresses we can't represent. 248: 249: * fold-const.c (fold): don't convert >= to > if both args are constant. 250: When converting >= to >, don't fail to change CODE. 251: 252: Tue Oct 11 04:13:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 253: 254: * vax.md (movhi): Error in truncating mcomw, addh3 args to 16 bits. 255: 256: * final.c: Better error checking for %-specs in templates. 257: (output_operand_lossage): new fn to report errors. 258: (insn_noperands): new var: # operands in current fn. 259: (this_insn_asm_operands): new var: 1 for `asm', 0 otherwise. 260: (output_asm_insn): Check for operand # out of range. 261: (output_asm_label, output_operand): Call new fn to report errors. 262: 263: * reload.c (push_reloads): An input reload for (REG N) can match one 264: for (POST_INC (REG N)) or (PRE_INC (REG N)), since the value 265: reloaded is the same in any case. 266: 267: Mon Oct 10 06:19:05 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 268: 269: * recog.c (next_insns_test_no_inequality): Like next_insn_tests... 270: but check all insns that follow this one and can use it's cc's. 271: * output-m68k.c (output_btst): Use that. 272: 273: * vax.md (movsf, movdf): Undo last change; movq/movl set the cc wrong. 274: 275: * expr.c (expand_call): Set current_function_calls_setjmp if appro. 276: * stmt.c (setjmp_protect): New fn: move all vars into stack 277: unless declared `register'. 278: * c-decl.c (finish_function): Call it if -traditional and setjmp used. 279: 280: * cccp.c (main): Open output after the input. 281: Handle `-o -'. 282: 283: Sun Oct 9 00:28:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 284: 285: * tm-sun3.h (CPP_SPEC): Define __HAVE_FPA__ if appropriate. 286: 287: * c-decl.c (pushdecl): After duplicate_decls, maybe warn about 288: "declared extern and later static". 289: 290: * expmed.c (store_bit_field): In insv case, avoid turning 291: VALUE into a subreg of a subreg. 292: 293: * loop.c (move_movables): When moving a libcall, 294: un-cse the function address; put it into the call insn. 295: 296: Sat Oct 8 01:48:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 297: 298: * cse.c (equiv_constant): Subroutine to find the constant equivalent 299: of a reg. Now handles SUBREGs too. 300: (fold_rtx, fold_cc0): Use that function. 301: Don't handle SUBREGs like arithmetic. 302: 303: * reload1.c (choose_reload_targets): Don't call reg_overlap_mentioned_p 304: if arg is 0. 305: 306: Fri Oct 7 01:00:19 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 307: 308: * assert.h: Typo declaring __eprintf. 309: 310: * config.gcc: New file for making the links. 311: Fixed bugs for sun-[23]-os4. Added sun-[234] for sunos 3. 312: Added sequent-i386. 313: 314: * emit-rtl.c (gen_rtx): Return const0_rtx for 0 in DImode. 315: * varasm.c (immed_double_const): Don't be confused by this. 316: 317: * expmed.c (negate_rtx): New 1st arg MODE. 318: * expr.c (push_block): Calls changed. 319: * m68k.md, ns32k.md, vax.md: Calls changed. 320: 321: * c-decl.c (duplicate_decls): Don't discard DECL_BLOCK_SYMTAB_ADDRESS. 322: 323: * tree.c (staticp): INDIRECT_REF with constant address is static. 324: COMPONENT_REF may not be, if component offset isn't constant. 325: 326: * c-typeck.c (default_conversion): Converting array to ptr, if array 327: isn't a VAR_DECL, go through build_unary_op so that COMPONENT_REFs 328: will be simplified away. 329: 330: * ns32k.md (tbitd patterns): op 0 constraint: reject constants. 331: * ns32k.md (extzv for SImode and HImode): 332: Use adj_offsetable_operand; plus_constant was the wrong thing. 333: 1.1.1.9 root 334: Thu Oct 6 00:10:41 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 335: 336: * Version 1.29 released. 337: 338: * loop.c (scan_loop): Don't think a `return' insn enters the loop. 339: 340: * ns32k.md (ashrsi3, etc): New define_expands for right shift. 341: 342: * reload1.c (choose_reload_targets): Change in the `force_group' 343: logic to avoid crashes. 344: 345: Wed Oct 5 04:09:19 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 346: 347: * expr.c (expand_expr, MINUS_EXPR): When negating integer op1, 348: truncate it to its mode. 349: 350: * expmed.c (extract_bit_field): SUBREG error check was wrong; 351: SImode SUBREGs are possible and ok in extzv, extv. 352: 353: * tm-ns32k.md (REGISTER_NAMES): Had two excess elements; deleted. 354: 355: Mon Oct 3 01:15:51 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 356: 357: * toplev.c (main, compile_file): If no files spec'd, use stdin, stdout. 358: 359: * flow.c (propagate_block): When checking for stack-adjust insns, 360: exclude non-SET patterns. 361: 362: * jump.c (jump_optimize): When changing jump=>return to return, 363: must rerecognize the insn. 364: 365: * toplev.c (compile_file): Allow `-' for main input or output filename. 366: 367: Sun Oct 2 10:30:09 1988 Richard Stallman (rms at apple-gunkies.ai.mit.edu) 368: 369: * final.c (final): NOTICE_UPDATE_CC has extra arg, INSN. 370: * tm-*.h: Change definitions. 371: 372: * stmt.c (optimize_bit_field): Use gen_lowpart to make subregs. 373: 374: * stmt.c (assign_parms): Don't obey regdecls in inline function. 375: Don't lose existing REG_NOTES when adding one. 376: 377: * stmt.c (expand_function_start): Make return rtx before 378: marking parms live. 379: (expand_function_end): Use use_variable to emit USEs for SAVE_EXPRs. 380: 381: * stmt.c (expand_return): Handle TRUTH_AND_EXPR like ANDIF; OR also. 382: 383: * stmt.c (expand_end_stmt_expr): Always set TREE_VOLATILE, 384: sometimes TREE_THIS_VOLATILE. 385: 386: * jump.c (delete_insn): When finding PREV, skip deleted insns. 387: 388: * varasm.c (output_constant): WORDS_BIG_ENDIAN test was backwards. 389: 390: * emit-rtl.c (gen_lowpart): Allow MODE > 1 word if X is same size. 391: 392: * final.c (final): Don't delete no-op moves (jump did it if appro.). 393: 394: * final.c: Support prescan pass. 395: (final_start_function): init_recog and CC_STATUS_INIT mvd to `final'. 396: (final): New arg PRESCAN. Do no output if prescanning. 397: Don't alter conditionals if PRESCAN < 0 (prescan already done). 398: If jump becomes no-op, change it to a NOTE. 399: Remember to free the temp space for ASM_OPERANDS. 400: 401: * final.c (final): Altering store-flag must check STORE_FLAG_VALUE. 402: Don't try to do it if that isn't defined. 403: Don't try it if condition doesn't test CC0. 404: (alter_cond): No need to check COND != 0. 405: Handle CC_Z_IN_NOT_N and CC_Z_IN_N. 406: (m68k.md): Delete code that handled CC_Z_IN_NOT_N. 407: 408: * conditions.h: New flag CC_Z_IN_N. 409: * tm-*.h: Renumber all CC_... flags to make room. 410: 411: * combine.c (use_crosses_set_p): Loop start was 1 off. 412: 413: * local-alloc.c (reg_is_set): When a reg is CLOBBERed and dies in 414: one insn, make it live immediately before and after that insn. 415: 416: * global-alloc.c: Hard reg preferences for global pseudos. 417: Var allocno_preferred_reg deleted; new vars hard_reg_preferences 418: and regs_someone_prefers. 419: (global_alloc): Init those vars. Pass hard_reg_preferences elt 420: to find_reg. 421: (set_preference): New function makes entries in those vars. 422: (global_conflicts): new arg to mark_reg_store. Call set_preference. 423: (find_reg): Last arg now a preferred hard_reg_set. 424: Scan that set first of all. 425: (mark_reg_store): New arg is offset for renumbered regno. 426: But the code to use it is turned off. 427: 428: * global_alloc (check_frame_pointer_required): Handle reg_equiv_address 429: like reg_equiv_mem. Don't try to allocate pseudos with equiv mems 430: that don't use the frame pointer. 431: * reload1.c (reload): Call changed. 432: 433: * jump.c (sets_cc0_p): Tests whether rtx sets cc0, and whether 434: it does nothing but set cc0. 435: (find_cross_jump, delete_jump): Use that fn for these tests. 436: * loop.c (loop_skip_over): Likewise. 437: * reload.c (push_reload): Likewise. 438: 439: * genoutput.c: Output `const' before the data arrays. 440: Define it as nothing if not __STDC__. 441: 442: Sat Oct 1 02:19:29 1988 Richard Stallman (rms at apple-gunkies.ai.mit.edu) 443: 444: * expr.c (store_one_arg): 3rd arg to emit_block_move is in bytes. 445: 446: * cse.c (fold_rtx): Handling ZERO_EXTEND or SIGN_EXTEND of constant, 447: if the arg width is too wide to handle, return safely. 448: 449: * combine.c (FAKE_EXTEND_SAFE_P): Don't allow extend to > 1 word. 450: 451: * rtl.c (refers_to_regno_p): Moved from reload.c. Not static. 452: (reg_overlap_mentioned_p): New function, calls the above. 453: * output-*.c: Use that instead of reg_mentioned_p. 454: * tm-*.h (NOTICE_UPDATE_CC): Likewise. 455: * reload.c (push_reload, combine_reloads): Likewise. 456: * reload1.c (choose_reload_targets): Use it to check earlyclobbers. 457: 458: * reload1.c (choose_reload_targets): Elimination of previous 459: output-reload feeding our input now limited to pseudo-regs. 460: 461: * flow.c (life_analysis): Delete any insn copying reg to itself. 462: (propagate_block): Move update of OLD after special life and death 463: for CALL_INSNs. 464: 465: * vax.md (ashrsi3, ashrdi3, rotrsi3): define_expands to negate 466: the shift count. 467: * expmed.c (expand_shift): Eliminate negate-the-shift-count feature. 468: 469: * vax.md (and*i3): define_expands which use complement and bit-clear. 470: * expmed.c (expand_bit_and): Eliminate feature to do that. 471: This function could be eliminated. 472: 473: * expmed.c (store_bit_field): Handle nested subregs. 474: Allow gen_insv to fail; if it does, delete what we did and then 475: use store_fixed_bit_field. 476: (store_fixed_bit_field): Use gen_lowpart to make SUBREGs. 477: Do that for SUBREGs just as for REGs. 478: Error check OFFSET must be 0 for REGs. 479: (store_split_bit_field): Error check OP0 is a SUBREG when expected. 480: (extract_bit_field): Allow gen_ext{,z}v to fail. 481: Use gen_lowpart to make subregs. 482: (expand_shift): If a try fails, delete any insns it made. 483: 484: * expmed.c (expand_mult): Use expand_unop to negate. 485: When adding 2 powers of 2, do serial shifts, not parallel. 486: Handle absval==1 like other powers of 2. 487: 488: * explow.c (force_reg): Don't lose any existing reg notes. 489: 490: * stmt.c (expand_start_stmt_expr): Eliminate return value. 491: (expand_end_stmt_expr): No need for argument. 492: * c-parse.y (primary): Change calls. 493: 494: Fri Sep 30 01:50:22 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 495: 496: * integrate.c (copy_rtx_and_substitute, copy_address): 497: 'u' case erroneously returned the translated single element. 498: (copy_address): Special cases for frame-ptr and sums containing it. 499: MEM and LABEL_REF cases passed wrong arg to copy_rtx_and_substitute. 500: (copy_rtx_and_substitute): adjust mode of inline_target for context. 501: 502: * jump.c (true_regnum): For SUBREG of pseudo, use pseudo's # unchanged. 503: 504: Thu Sep 29 02:50:46 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 505: 506: * i386.md (movsi, mov{q,h}i): Use find_reg_note to look for REG_WAS_0. 507: * vax.md (movsi, movhi): Likewise. 508: 509: * varasm.c (decode_rtx_const): Was setting un.addr.base wrong 510: for a CONST. Should be symbol name, not the SYMBOL_REF. 511: 512: * rtl.c (rtx_equal_p): When comparing registers, check 513: REG_FUNCTION_VALUE_P. If there are `u'-slots in the rtx, ignore them. 514: 515: * rtl.c (reg_mentioned_p): Some rtx types were mistakenly treated 516: as uniquified (various constants). 517: 518: * rtl.c (read_rtx): Element type 'S' is string that may be omitted. 519: * rtl.def (define_insn, define_peephole): Add a last element, type 'S'. 520: * genoutput.c: Collect these optional last elements and output as 521: array `insn_machine_info' of structs `INSN_MACHINE_INFO'. 522: The last must be defined as a macro. 523: * recog.h (insn_machine_info): Declare it if appropriate. 524: 525: * regclass.c (record_address_regs): In PLUS case, look inside SUBREGs. 526: 527: * reload1.c (reload): Use reg_equiv_address for REG_EQUIVs with 528: invalid memory addresses. 529: When changing pseudos to mem refs at end, do FIX_FRAME_POINTER_ADDRESS 530: on their addresses. 531: (alter_reg): Check that with reg_equiv_mem. 532: (spill_hard_reg): If fp reg, spill regardless of basic_block_needs. 533: 534: * reload1.c (order_regs_for_reload): Don't put invalid regs into 535: potential_reload_regs at all. (They used to go at the end.) 536: 537: * reload.c (find_reloads): Store all earlyclobber operand in 538: reload_earlyclobbers (# in n_earlyclobbers): 539: * reload.1 (choose_reload_targets): Don't use value of find_equiv_reg 540: if it matches an earlyclobber operand. 541: 542: * reload.c (find_reloads_address for REG): 543: No need for explicitly excluding hard regs in these tests. 544: (find_reloads, find_reloads_address_1 for REG): likewise. 545: 546: * reload.c (push_reload): Code testing reg_equiv_constant should 547: be obsolete; add error check to verify this. 548: 549: * reload.c (hard_reg_set_here_p): Handle CLOBBERs, SUBREGs, overlap. 550: (refers_to_regno_p): Handle CLOBBERS. Handle overlap. 551: New arg ENDREGNO specs end of range to check for; 552: all callers changed (all in this file). 553: 554: * reload.c (find_reloads): SUBREG like REG in alternate recovery 555: for earlyclobber conflict. 556: The operands to unswap are those that are supposed to commute. 557: When operands match, copy the regclass of earlier one for later one. 558: 559: * stmt.c (optimize_bit_field): Don't use gen_extend_insn; 560: use convert_move, then reorder the insns. 561: * optabs.c (gen_extend_insn): Deleted. 562: 563: * optabs.c (emit_cmp_insn): Don't emit queue before recursion. 564: Don't convert size to SImode for cmpstrqi. 565: 566: * optabs.c (expand_binop): Keep any old REG_NOTES when adding them. 567: Always delete_insns_since if returning failure. 568: (expand_unop, emit_unop_insn): Keep any old REG_NOTES when adding them. 569: * spur.md (movhi): likewise. 570: 571: * RTL_EXPR_SEQUENCE is now a chain of insns, not a SEQUENCE. 572: * emit-rtl.c (emit_insns): New fn, emit a chain of insns. 573: * expr.c (expand_expr): Use that. 574: Also put const0_rtx in the RTL_EXPR_SEQUENCE (mark RTL_EXPR as output). 575: * stmt.c (expand_end_stmt_expr): Use get_insns to get the chain. 576: 577: * stmt.c (expand_end_stmt_expr): Put the RTL_EXPR on rtl_expr_chain. 578: (fixup_var_refs): Scan all waiting RTL_EXPRs not yet output. 579: Also scan all stacked sequences on sequence_stack. 580: 581: * genemit.c (gen_expand): Generate calls to {start,end}_sequence. 582: Use `emit' to handle a PARALLEL. 583: (FAIL, DONE): Change to fit gen_expand changes. 584: 585: * emit-rtl.c (change_address): abort if arg isn't a MEM. 586: 587: * emit-rtl.c: Sequences work now by saving and restoring first_insn 588: and last_insn. So these variables are used even when in a sequence. 589: emit_to_sequence has been deleted. 590: (start_sequence, end_sequence): Save and restore first_insn, last_insn. 591: (get_last_insn, add_insn): Sequences no longer need special treatment. 592: (delete_insns_since, reorder_insns): likewise. 593: (push_to_sequence): Set up to emit to a given existing insn chain. 594: 595: * emit-rtl.c (copy_rtx_if_shared): Don't copy INSNs. 596: Insert missing return stmt in MEM case (for MEMs ok to share). 597: (unshare_all_rtx): Now can copy the REG_NOTES simply. 598: Copy the LOG_LINKS too. 599: 600: * emit-rtl.c (make_safe_from): Treat SUBREG as X like a REG. 601: (delete_insns_since): Don't lose if FROM is the first insn. 602: (emit): Declare void, since no useful value. 603: Call simplejump_p properly. 604: (restore_reg_data_1): When a reg is an address, do mark_reg_pointer. 605: 606: * dbxout.c (dbxout_types): Call dbxout_symbol to do the work. 607: (dbxout_type_def): Deleted. 608: (dbxout_symbol): Set TREE_ASM_WRITTEN when a TYPE_DECL is output. 609: Don't output the same one twice. 610: 611: * cse.c (fold_cc0): LABEL_REF is not zero. 612: 613: * cse.c (cse_insn): Don't insert src, dest if they are the same place. 614: 615: * cse.c (lookup_as_function): Return entire rtx, not just operand. 616: (cse_insn): Caller changed. Also, copy the result before inserting it. 617: 618: * cse.c (fold_rtx): Put constant arg last if commutative op. 619: Handle idempotents and identities for mult, div, booleans, shifts. 620: 621: * cse.c (canon_hash): Parens were missing around shifts in "rotates". 622: 623: * c-convert.c (convert_to_integer): Truncate TRUTH_ANDIF_EXPR 624: like TRUTH_AND_EXPR; OR also. 625: 626: * c-typeck.c (build_binary_op_nodefault): Do truthvalue_conversion 627: for TRUTH_ANDIF, etc. 628: (build_unary_op): More simplifications for TRUTH_NOT_EXPR; 629: uses new fn `invert_truthvalue'. 630: 631: * recog.c (reg_fits_class_p): New name for reg_renumbered_fits_class_p 632: since it no longer needs to renumber. Also it now really assumes 633: arg is a REG. Callers changed. 634: * reload.c: Callers changed. 635: 636: * recog.c (general_operand): (SUBREG (MEM...)) need not alter mode. 637: (register_operand, nonmemory_operand): (SUBREG (MEM...)) is allowed. 638: (memory_operand): (SUBREG (MEM...)) is *not* allowed. 639: (mode_independent_operand): Operand names were backwards! 640: (No change in effect of this function.) 641: 642: * print-tree.c (dump): Some expr nodes contain rtx's. Print as rtx's. 643: 644: Wed Sep 28 18:51:12 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 645: 646: * reload1.c (choose_reload_targets): If a reload wanted a group, 647: don't allow a single register for it. 648: 649: Tue Sep 27 11:43:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 650: 651: * final.c (output_addr_const): Handle DImode CONST_DOUBLEs. 652: * tm-*.h (PRINT_OPERAND): Treat DImode CONST_DOUBLE like a CONST_INT. 653: 654: * vax.md (rotldi3): Insn deleted; it doesn't really exist. 655: 656: * toplev.c (report_error_function): Also mention the file name, 657: for parallel makes. New arg FILE; all callers changed. 658: 659: Mon Sep 26 15:44:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 660: 661: * expmed.c (expand_shift): When using extzv, convert OP1 to SImode. 662: * c-typeck.c (build_binary_op_nodefault): Convert shift-count 663: to int regardless of result type. 664: 665: * output-spur.c (output_move_double): Fix typo, optype0=>optype1. 666: 667: * expr.c (expand_call): Avoid null deref on result of FUNCTION_ARG. 668: 669: * tm-i386.h (FUNCTION_PROFILER): Use correct assembler syntax. 670: 671: Sun Sep 25 12:13:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 672: 673: * fixincludes: Handle some files in netdnet, netdna, vaxif, vaxuba. 674: 675: * reload.c (find_reloads): Make no optional reloads if not -O. 676: 677: * loop.c (strength_reduce): Can't eliminate a biv if it's used 678: to compute a DEST_ADDR giv. Only DEST_REG givs are safe. 679: 680: * loop.c (general_induction_var): Shift & divide ops are linear 681: only in 1st operand; don't look for biv or giv in 2nd operand. 682: 683: * vax.md (fix_truncdfqi2): Use `%#'. 684: 685: Sat Sep 24 00:25:48 1988 Richard Stallman (rms at gluteus.ai.mit.edu) 686: 687: * loop.c (n_times_set, n_times_used): Now file-scope; 688: no longer passed as args to several functions. 689: 690: * loop.c (basic_induction_var): Accept reg as source value 691: only if it's invariant. 692: (strength_reduce): Benefit calculation and threshold changed. 693: Check reducibility of givs before trying to reduce them. 694: Check eliminability of biv before considering the givs; 695: let this affect the threshold. 696: (record_giv): New subroutine adds a giv to the chain. 697: 698: * ns32k.md (incrementing sp): Use cmpd insns to increment by 4 or 8. 699: 700: * integrate.c (expand_inline_function): Rename return_label 701: to local_return_label; avoid shadowing. 702: 703: Fri Sep 23 13:57:52 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 704: 705: * loop.c (loop_skip_over): Put the new label after the note that ends 706: the loop. 707: 708: * loop.c: New function strength_reduce and subroutines. 709: * toplev.c: New var flag_strength_reduce, set from -fstrength-reduce. 710: 711: * vax.md (sob insns): They were broken, with plus in one place 712: and minus in another. Use plus consistently. 713: 714: * rtl.h (REG_LIBCALL, REG_NONNEG): Two new kinds of reg-note. 715: * optabs.c (expand_binop, expand_unop): Make REG_LIBCALL notes. 716: * loop.c (scan_loop, move_movables): Move entire library calls. 717: Use m->set_src to get the expression, in case it's from a REG_EQUAL. 718: (consec_sets_invariant_p): Likewise. 719: 720: * loop.c (scan_loop): Start scan from loop_top, if entry is rearranged. 721: Watch out for pseudo regs created by strength_reduce; 722: they can't index regno_last_uid. 723: (replace_regs): # regs mapped is now an arg. 724: 725: * loop.c (count_loop_regs_set): Don't increment n_times_set past 127. 726: (consec_sets_invariant_p): Reject if N_SETS arg is 127. 727: 728: * toplev.c (rest_of_compilation): NREGS arg of loop_optimize deleted. 729: 730: * c-decl.c (store_parm_decls): Anything but an IDENTIFIER_NODE 731: in SPECPARMS indicates a parmlist, not an identifier list. 732: (get_parm_info): Use only PARM_DECLs when making the list of arg types. 733: 734: * combine.c (try_distrib): Boolean ops can't distribute through PLUS. 735: MULT can distribute through PLUS and only PLUS. 736: 737: Thu Sep 22 15:57:41 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 738: 739: * jump.c (jump_optimize): uncond jump to a return becomes a return. 740: 741: * integrate.c (copy_parm_decls, copy_decl_tree): Set TREE_USED. 742: Avoid inevitable "unused" warning for these decls. 743: 744: * c-typeck.c (comptypes): When comparing array types, 745: ignore qualifiers of element type. 746: 747: * tm-*.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Define new macros. 748: * final.c (final_start_function): Use them to protect around 749: the call to the profiling function. 750: * stmt.c (expand_function_start): Set current_function_needs_context 751: and current_function_returns_struct. 752: 753: * stmt.c (expand_null_return_1): If clear_pending_stack_adjust 754: doesn't clear it, do the adjust now. 755: * expr.c (clear_pending_stack_adjust): No-op if -finline-functions. 756: 757: * cccp.c (macarg1, skip_if_group): Backslash makes next char ordinary. 758: 759: * reload.c (find_reloads): Delete code to look for an equiv reg 760: for a reg being input-reloaded. This isn't safe. 761: * reload1.c (choose_reload_targets): Do it here. 762: 763: Wed Sep 21 00:36:22 1988 Richard Stallman (rms at hobbes.ai.mit.edu) 764: 765: * tm-sun3.h (CPP_SPEC): Define it based on TARGET_DEFAULT. 766: (STARTFILE_SPEC): Likewise. 767: 768: * reload1.c (choose_reload_targets): When redirecting prev insn 769: into this insn's reload-reg, check this doesn't break the prev insn 770: by giving it a reg it can't accept. Use new fn constraint_all_regs_p. 771: 772: * tm-sparc.h (ASM_OUTPUT_LOCAL): Use .reserve, not .common. 773: 774: * tree.h (TREE_USED): New attribute macro. 775: * c-parse.y (primary): Set TREE_USED in ..._DECL nodes. 776: * toplev.c, flags.h: Define and set warn_unused. 777: * stmt.c (expand_end_bindings): Warn if any var is unused. 778: * print-tree.c (prtypeinfo): Print this attribute. 779: 780: Tue Sep 20 15:29:01 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 781: 782: * assert.h: `assert' must expand to an expression. 783: Error message should show arg before expansion, not after. 784: 785: * c-decl.c (implicitly_declare): Make decl perm if !warn_implicit 786: since start_function needs to look inside it in that case. 787: 788: * toplev.c (announce_function): If we don't print, don't record we did. 789: 790: Mon Sep 19 15:21:11 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 791: 792: * c-parse.y (structsp): If pedantic, warn if comma at end of enumlist. 793: 794: * reload.c (find_reloads): Check insn_code_number >= 0 when 795: looking in insn_operand_strict_low. 796: 797: * tm-sun[23].h (CPP_SPEC): Rename __HAVE_FPU__ to __HAVE_68881__ 798: and put a space after that option. 799: 800: Sun Sep 18 01:12:56 1988 Richard Stallman (rms at hobbes.ai.mit.edu) 801: 802: * reload.c (find_reloads): Make optional reloads for explicit MEMs. 803: 804: * tm-m68k.h (MODES_TIEABLE_P): If no 68881, can tie fixed to floating. 805: * m68k.md (movdi): Allow F's (can be DImode now). 806: Don't allow f-regs (experiment). Don't preference x-regs. 807: (DImode push): Allow y-regs. 808: (DFmode push): Allow y-regs, not x-regs. 809: 810: * reload1.c (modes_equiv_for_class_p): New function. 811: (reload): Compare multiple modes for reg group with that function. 812: Allows differing modes in some cases when not tieable. 813: 814: * c-parse.y (check_newline): Let ASM_OUTPUT_IDENT override .ident. 815: * tm-3b1.h (ASM_OUTPUT_IDENT): Define this as no-op. 816: 817: * emit-rtl.c (reorder_insns): Update sequence_{first,last}_insn if nec. 818: (get_last_insn): If in a sequence, return last insn of sequence. 819: (delete_insns_since): If in a sequence, set sequence_last_insn. 820: 821: * spur.md (CONST_DOUBLE load insn): Use & for most dests. 822: (cond branches): pass additional args to output_compare. 823: (movdf, movdi): Use & loading reg from mem. 824: (trunc*): Enable these. 825: (add): New pattern for adding large immediate operand. 826: (shifts): A define_expand for each kind of shift, 827: plus a recognizer which outputs repeated insns if necessary. 828: (call*): Use r9 as temp, not r2. 829: 830: * output-spur.c (output_compare): New args NEG_{EXCHANGE_,}OPCODE. 831: (singlemove_string): Handle reg as operand 1. 832: (output_add_large_offset): Fake add insn with large immediate arg. 833: (big_immediate_operand): Match such an arg. 834: 835: * tm-spur.h (FUNCTION_PROLOGUE): Align the stack pointer. 836: Handle bigger frames. 837: (TARGET_LONG_JUMP, TARGET_EXPAND_SHIFT): New target flags. 838: 839: * va-spur.h: Track position in regs and stack separately. 840: 841: * c-decl.c (duplicate_decls): Warn if prototype follows 842: non-prototype definition. 843: 844: Sat Sep 17 14:30:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 845: 846: * expr.c (expand_builtin): Avoid crash if arg isn't integer type. 847: 848: * c-decl.c (duplicate_decls): Just warn if redeclaring a builtin, 849: and leave it built in unless it is redefined. 850: 851: * vax.md (ashlsi3): Use addl3, moval or movad when useful. 852: (addsi3): Avoid pushab, movab for constants < 64. 853: Do use movab when > 64 when operands match. 854: (mov*i): Use mcom* rather than mneg*. 855: Use add*3 with two quick immediate args when useful. 856: (movhi): Don't use movzbw or cvtbw; said to be slow. 857: 858: * rtl.h: New macros MEM_VOLATILE_P, MEM_IN_STRUCT_P, 859: INSN_DELETED_P, REG_USER_VAR_P, RTX_UNCHANGING_P, RTX_INTEGRATED_P, 860: CONSTANT_POOL_ADDRESS_P. 861: Most places changed to use them. 862: 863: Fri Sep 16 11:50:15 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 864: 865: * jump.c (jump_optimize): Was testing volatil on non-MEMs erroneously 866: when looking for no-op move insns. 867: 868: * cccp.c (handle_directive): Ignore comments between # and directive. 869: 870: * integrate.c (copy_rtx_and_substitute): Stack-push memrefs need 871: to be copied. 872: 873: * tm-bsd386.h (ASM_OUTPUT_DOUBLE): Undef previous def. 874: 875: * reload1.c (alter_reg): Don't reuse spill_stack_slot 876: if it isn't big enough for this reg's mode. 877: 878: * expr.c (emit_move_insn): After force_const_mem, ensure 879: mem address is valid. 880: (move_block_to_reg, move_block_from_reg): Likewise. 881: 882: * expr.c (expand_call): Spurious TREE_VALUE on args[i].tree_value. 883: 884: * m68k.md (zero_extend*): Require register_operand for operand 0. 885: 886: * stdarg.h (va_start): Alternate defn for sparc. 887: 888: Thu Sep 15 11:39:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 889: 890: * c-parse.y (yylex): When atof gives ERANGE, check for "0.0", etc. 891: 892: * assert.h (__assert): Alternative definition for -traditional. 893: 894: * output-sparc.c (output_block_move): Initialize xoperands. 895: 896: * combine.c (try_combine): Never subst for a reg that is incremented. 897: 898: * m68k.md (cmpm pattern): Make the match_operands match memrefs 899: and check that they are pushes in the extra condition. 900: This makes reloading handle the pushes properly. 901: 902: * expr.c (MOVE_RATIO): Make it 15. Allow overriding it. 903: 1.1.1.8 root 904: Wed Sep 14 09:50:08 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 905: 1.1.1.9 root 906: * c-decl.c (build_enumerator): Use saveable_tree_cons. 907: 908: * vax.md (movdf): Use movq when safe. 909: 1.1.1.8 root 910: * Version 1.28 released. 911: 912: * tm-sparc.h (FIRST_PARM_CALLER_OFFSET): Defined. 913: 914: Tue Sep 13 00:11:37 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 915: 916: * tree.c (saveable_tree_cons): New function. 917: * c-decl.c (pushtag): Use it; lists of tags needed for inlining. 918: (get_parm_info): Likewise. 919: 920: * print-tree.c (dump): Handle each kind of statement node individually. 921: 922: * integrate.c (copy_decl_tree): Don't pass DECL_RTL through 923: copy_rtx_and_substitute if it's a memref with constant address. 924: 925: * sdbout.c (sdbout_symbol): Don't output garbage when DECL_RTL 926: has a form we don't understand. 927: 928: * reload.c (find_reloads_address_1): Don't reload an autoincrement 929: if it has a suitable hard reg already. 930: 931: * c-typeck.c (process_init_constructor): Error check after digest_init. 932: 933: * c-parse.y (is_reserved_word): Now static. 934: 935: Mon Sep 12 19:19:28 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 936: 937: * i386.md (all push insns): Use `<' for the constraint, 938: since a push_operand won't fit an `m' constraint on this machine. 939: 940: * expr.c (expand_call): If fn name is `__builtin_alloca', 941: it may be alloca. This case arises if the user redeclares 942: `__builtin_alloca'. 943: 944: Sun Sep 11 01:47:01 1988 Richard Stallman (rms at gluteus.ai.mit.edu) 945: 946: * Eliminate MAX_SETS_PER_INSN. 947: * cse.c (cse_insn): Combine all the tables and dynamically allocate. 948: (cse_main): Count the actual number of SETs; don't estimate. 949: * genconfig.c: Don't calculate MAX_SETS_PER_INSN. 950: * stmt.c (expand_asm_operands): No limit on # of output operands. 951: 952: * expr.c (expand_call): 953: Store all non-reg parms first, then store all partially-in-reg 954: parms, then all the (precomputed) wholly-in-reg parms. 955: Special hair for BLKmode parms which must be passed entirely 956: in memory; also for BLKmode parms initialized from function calls, 957: for which it is best to allocate the space before computing value. 958: Use macro FIRST_PARM_CALLER_OFFSET to handle machines where reg 959: parms "take up space" on the stack below the stack pointer. 960: (store_one_arg): Handle case of preallocated stack loc for BLKmode. 961: Update current_args_size here, not in caller. 962: 963: Sat Sep 10 19:58:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 964: 965: * output-sparc.c (output_scc_insn): Changed asm templates. 966: Use common code to emit the move insns and label at the end of fn. 967: (output_mul_by_constant): Use %g1 as temporary reg. 968: 969: * sparc.md (indexed load pattern): Deleted. 970: (fix_truncdfsi2): Don't ignore value of output_fp_move_double. 971: (cse'd multiply): Operand 1 predicate is general_operand. 972: (return peepholes): Conditionalize on ! TARGET_EPILOGUE. 973: 974: * tm-sparc.h (INIT_CUMULATIVE_ARGS,FUNCTION_ARG...): 975: Use partial regs for args that start in regs but won't entirely fit. 976: 977: * tm-sparc.h (CONST_COSTS): 0 for args that can be immediate. 978: (STRUCTURE_SIZE_BOUNDARY): Now 8. 979: (STRUCT_VALUE_OFFSET): Defined as symbolic name for `64'. 980: 981: * expr.c (struct arg_data): New component `stack' says where in the 982: stack to put a BLKmode arg (if it's nonzero). 983: (store_one_arg): Handle case where it's nonzero. 984: (target_for_arg): New fn, precompute stack locn for BLKmode arg. 985: 986: Fri Sep 9 01:41:13 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 987: 988: * cse.c (fold_rtx): Misnested ifs screwed SUBREG case. 989: 990: * reload.c (find_reloads_toplev): Special case for (SUBREG REG) 991: where REG is equivalent to a CONST_INT. 992: (find_reloads): Don't ignore the value returned by find_reloads_toplev. 993: Treat a (SUBREG constant) like a (SUBREG MEM): set force_reload. 994: 995: * reload.c (push_reload): Abort if memory subreg is not 996: paradoxical; the MEM mode should be narrower than the SUBREG. 997: 998: * stmt.c (fixup_var_ref_1): Fixup memory subregs in an insn 999: copying VAR to or from a register. 1000: 1001: * m68k.md (movdi, movdf): the x-reg constraint accidentally allowed 1002: moving rm to rm with no &. 1003: 1004: * vax.md (call_value): Typo. 1005: 1006: * expr.c (emit_block_move, emit_push_insn): prefer movstrqi to movstrsi 1007: 1008: * m68k.md (FPA multiply): bad opcodes for 3-operand multiply insns. 1009: 1010: Thu Sep 8 18:22:14 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1011: 1012: * c-parse.y: Use YYERROR instead of synonym YYFAIL. 1013: BISON VERSIONS PRIOR TO THIS DATE WON'T WORK! 1014: 1015: * c-typeck.c (digest_init): Use TYPE_MAIN_VARIANT of array elt type. 1016: 1017: * tm-sun[23].h (CPP_SPEC, ASM_SPEC): Let -m(c|)680[12]0 control 1018: options for CPP and assembler. 1019: 1020: Wed Sep 7 13:44:59 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1021: 1022: * New handling of reloading of PRE_DEC, etc. 1023: Now reload_in is the PRE_DEC, etc, and reload_inc is always positive. 1024: * reload.c (push_reloads): Old code to set reload_inc deleted. 1025: (find_reloads_address_1): Call push_reload the new way. 1026: (find_inc_amount): Value always positive. 1027: * reload1.c (choose_reload_targets): Detect this case. 1028: (inc_for_reload): New fn; does the real work for this case. 1029: * m68k.md (call, call_value): Fn address must be offsetable. 1030: 1031: * combine.c (try_distrib): Reject strange cases such as if 1032: result of PREV1 or PREV2 is used in a memory address in INSN. 1033: 1034: * vax.md (movsf): Generate movl instead of movf. 1035: 1036: * expr.c (expand_call): If have regparms, store all BLKmode args 1037: before all the other args. 1038: (store_one_arg): New subroutine broken out. 1039: 1040: * output-sparc.c (output_block_move): Complete rewrite. 1041: 1042: * sparc.md (cse'd multiply insn): Typo in asm-output code. 1043: 1044: Tue Sep 6 20:05:48 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1045: 1046: * c-parse.y (yylex, etc.) Install Schmidt's perfect hash table. 1047: 1048: * gcc.c: handle extension `.cc'. 1049: 1.1.1.7 root 1050: Mon Sep 5 12:09:58 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1051: 1052: * Version 1.27 released. 1053: 1054: * tm-i386.md (PREFERRED_RELOAD_REG): When reloading a QImode, 1055: make sure the class doesn't include %esi or %edi. 1056: * i386.md (movqi): Eliminate only use of the class `x', 1057: for which PREFERRED_RELOAD_REG cannot work. 1058: (In next version, get rid of INDEX_CLASS). 1059: Also use `*' to cause preferencing of Q_REGS. 1060: * tm-m68k.md (PREFERRED_RELOAD_REG): When reloading a QImode, 1061: use DATA_REGS. 1062: 1063: * reload.c (push_reloads): Braino in last change when IN == 0. 1064: 1065: * flow.c (mark_used_regs, mark_set_1): Bug if HARD_REGNO_NREGS 1066: returns 0 for VOIDmode reg (inside a CLOBBER). 1067: 1068: * c-parse.y (asm_operand): Handle `("REGNAME")' as an operand. 1069: * recog.c (decode_asm_operands, asm_noperands): Ignore any CLOBBERs. 1070: * regclass.c (reg_names): Variable now global. 1071: * stmt.c (expand_asm_operands): Generate CLOBBERS when appropriate. 1072: 1073: * stmt.c (assign_parms): Ignore parms that aren't PARM_DECLs. 1074: 1075: * varasm.c (assemble_variable): Do ASM_OUTPUT_EXTERNAL for functions. 1076: 1077: * c-parse.y (yylex): floatflag is now an enum. 1078: Detect invalid use of decimal points (> 1, or in exponent) 1079: and multiple exponent letters. 1080: 1081: * expr.c (expand_call): If inlining fails, set TREE_ADDRESSABLE. 1082: 1083: Sun Sep 4 00:36:30 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 1084: 1085: * c-decl.c (grokdeclarator): A const array becomes an array of consts. 1086: * c-typeck.c (build_array_ref): Array ref is const if array elts are. 1087: 1088: * output-sparc.c (output_move_double): Change criteria for ldd, std. 1089: (output_fp_move_double): New alternatives avoid ldd, std for 1090: stack refs that aren't aligned. 1091: (output_block_move): Use %g1 as temp reg. 1092: 1093: * sparc.md (floating point load from constant mem address): 1094: Use %g1 as temp reg. Use output_move_double in DF case, not ldd. 1095: (movsf): Asm insn typo in FPreg to FPreg case. 1096: (floatsi{s,d}f2): Constraint changed. 1097: Also new special case pattern in front of it. 1098: (fix_truncdfsi2): Use output_move_double, not ldd. 1099: (addsi3, subsi3): Use %g1 as temp reg. 1100: (cse-optimized multiply): Constraint now `g'; output generalized. 1101: (andsi3, orsi3, xorsi3): Use %g1 as temp reg. 1102: 1103: * reload.c (find_reloads): Force int constants into memory just 1104: like floating ones, if memory is allowed and no regs are. 1105: 1106: * expr.c (expand_call): Don't treat structure_value_addr like a parm 1107: if the first parm would be passed in a register. 1108: Also, write comments for all local vars. 1109: 1110: * tm-386v.h (START_SPEC): Use {g,m}crt1.o, not {g,m}crt0.o. 1111: (LIB_SPEC): Always use crtn.o. 1112: 1113: Sat Sep 3 13:05:50 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1114: 1115: * explow.c (plus_constant): Don't put CONST around lone SYMBOL_REF. 1116: 1117: * combine.c (subst): Simplify zero- or sign-extend of a constant. 1118: 1119: * expr.c (expand_expr): for REAL_CST, etc., check for invalid 1120: memory addresses and copy into registers. 1121: 1122: * integrate.c (expand_inline_function): If incoming struct value addr 1123: is in memory, map it like a memory parameter. 1124: 1125: * tm-*.h (FIRST_PARM_OFFSET): Now takes fndecl as argument. 1126: * integrate.c (expand_inline_function): Calc., use and save 1127: this fns value of FIRST_PARM_OFFSET. 1128: (copy_rtx_and_substitute): Use that value. 1129: * stmt.c (assign_parms): Likewise. 1130: 1131: * tm-sparc.h (FIRST_PARM_OFFSET): Make it 64 if value is BLKmode. 1132: (STRUCT_VALUE{,_INCOMING}): Put the value in 64(fp). 1133: 1134: * tm-sparc.h (PRINT_OPERAND_ADDRESS): Print offsets in decimal. 1135: Avoid excess `+' before a negative offset. 1136: 1137: * stmt.c (expand_function_start): Create the return value rtl 1138: before making the tail-recursion loop point. 1139: 1140: * combine.c (gen_lowpart_for_combine): Generate a paradoxical subreg 1141: rather than a wider memref. 1142: 1143: * reload.c (push_reload): Extend last change to case where OUT != 0. 1144: 1145: Fri Sep 2 11:43:20 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1146: 1147: * stmt.c (fixup_var_refs): Adjust last_parm_insn when deleting insns. 1148: 1149: * expr.c (emit_push_insn): calling memcpy, bump TEMP 2 pointers worth. 1150: 1151: Thu Sep 1 16:39:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1152: 1153: * reload1.c (choose_reload_targets): Test for canceled reload 1154: before looking inside reload_out. 1155: 1156: * jump.c (jump_optimize): Bug in last change. 1157: 1158: * m68k.md (return): Pattern disabled; confuses Aug 29 stmt.c change. 1159: * ns32k.md, i386.md: likewise. 1160: 1161: * emit-rtl.c (emit_note_force): New, like emit_note but always do it. 1162: * stmt.c (expand_function_end): Use emit_note_force. 1163: 1164: Wed Aug 31 11:34:08 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1165: 1166: * reload1.c (alter_reg): New arg FROM_REG is hard reg that the pseudo 1167: was spilled from. Works with spill_stack_slot. Callers changed. 1168: Now all pseudos spilled from one hard reg get the same slot. 1169: (reload): Initialize new variable spill_stack_slot. 1170: 1171: * cse.c (cse_insn): Don't insert floating point mems if -ffloat-store. 1172: 1173: * reload.c (find_equiv_reg): Allow no equivs for volatile memrefs. 1174: Also none for floating mem refs if -ffloat-store. 1175: 1176: * output-sparc.c (output_mul_by_constant): make `p' and `log' unsigned. 1177: 1178: Tue Aug 30 13:47:12 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1179: 1180: * jump.c (jump_optimize): Ignore other NOTEs while looking for 1181: a NOTE_INSN_FUNCTION_END. 1182: 1183: * integrate.c (save_for_inline): Flush extra call to max_reg_num. 1184: Don't copy NOTEs that are NOTE_INSN_FUNCTION_END. 1185: (copy_for_inline): Don't copy NOTEs that are NOTE_INSN_FUNCTION_END. 1186: 1187: * stmt.c (optimize_bit_field): If bit field is SRC, strip subregs 1188: from the DEST. 1189: 1190: * expmed.c (expand_mult): Special case for -1 as one operand. 1191: 1192: Mon Aug 29 12:14:51 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1193: 1194: * stmt.c (expand_goto_internal, expand_fixup): New arg LAST_INSN. 1195: (expand_return): Pass that arg in tail-recursive case. 1196: (other callers): Pass 0 for that arg. 1197: (expand_null_return): Handle HAVE_return nonzero w/ FUNCTION_EPILOGUE. 1198: (expand_null_return_1): New fn, has guts of old expand_null_return. 1199: (expand_return): Call expand_null_return_1 to pass LAST_INSN arg. 1200: (expand_return): Handle HAVE_return nonzero w/ FUNCTION_EPILOGUE. 1201: (expand_function_{start,end}): Likewise. 1202: (expand_cleanups): Fix typo in recursive-list case. 1203: (move_cleanups_up): New fn. 1204: 1205: * expr.c (expand_call): Execute cleanups_of_this_call on exiting. 1206: Notice calls to __builtin_new (but don't do anything about them yet). 1207: 1208: * reload.c (push_reload): If reloading a (SUBREG (MEM ...) ...), 1209: really reload just the MEM in the MEM's own mode. 1210: 1211: * sparc.md: Define patterns for insns that set the ccs. 1212: Define set-flag insns. 1213: New patterns for indexed load, and for optimizing signed bit fields. 1214: (mulsi3, umulsi3): Give "r" constraint to operand 0. 1215: Peephole optimizers recognize some cases where delay insns are safe. 1216: Changed patterns for call and return insns as well. 1217: 1218: * output-sparc.c (single_insn_src_p): New fn. 1219: (output_delay_insn): New fn. 1220: 1221: * tm-sparc.h (TARGET_EPILOGUE): New target flag. 1222: (NOTICE_UPDATE_CC): New clause for funny PARALLEL with a REG in it. 1223: 1224: * m68k.md (movqi): Use *'s to ensure preferencing d-regs. 1225: 1226: * c-parse.y (datadef): If traditional, no warning about no specs. 1227: 1228: Sun Aug 28 14:34:33 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1229: 1230: * tm-i386.h: Define PROMOTE_PROTOTYPES. 1231: POINTER_BOUNDARY now 32. 1232: 1233: * regclass.c (reg_scan): Compute `max_parallel', max # of sets and 1234: clobbers in any insn in this function. 1235: * global-alloc.c (global_conflicts): Use that, not MAX_SETS_PER_INSN. 1236: 1237: * stmt.c (expand_asm_operands): MAX_SETS_PER_INSN limits # output ops. 1238: 1239: * emit-rtl.c (init_emit_once): Make elt 2 of {f,d}const0_rtx nonzero. 1240: 1241: * c-decl.c (lang_decode_option): Handle -Wwrite-string. 1242: * c-parse.y (combine_strings): If that flag, make array of const char. 1243: 1244: * expr.c (expand_expr): for INTEGER_CST, always use immed_double_const; 1245: never do output_constant_def (it didn't work). 1246: Also heed WORDS_BIG_ENDIAN. 1247: 1248: * varasm.c (output_constant): Handle integer CONST_DOUBLEs. 1249: (output_constant_def): Abort if arg is an INTEGER_CST. 1250: 1251: * emit-rtl.c (gen_rtx): Don't return {f,d}const0_rtx for DImode. 1252: 1253: Sat Aug 27 12:37:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1254: 1255: * c-decl.c (pushdecl): Global extern decls set TREE_PUBLIC 1256: like local ones. 1257: 1258: * integrate.c (expand_inline_function): Handle parms that were 1259: passed in registers but whose homes are on the stack. 1260: 1261: * varasm.c (force_const_mem): Output ints according to spec'd mode. 1262: ({record,compare}_constant_rtx,const_hash_rtx,decode_rtx_const): 1263: Take mode as argument; pass it along. 1264: 1265: * c-parse.y (read_escape): No warning for `\{' or `\['. 1266: 1267: Fri Aug 26 12:23:07 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1268: 1269: * stmt.c (fixup_memory_subreg): Typo calculating big-endian adjust. 1270: 1271: * vax.md (call_value): Handle >255 args as in `call'. 1272: 1273: Thu Aug 25 16:00:51 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1274: 1275: * jump.c (delete_jump): Don't delete the cc-setter if it has autoinc. 1276: 1277: Wed Aug 24 16:33:37 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1278: 1279: * expr.c (expand_expr): For sun with a COND_EXPR, use SUBTARGET 1280: if validate_subtarget says ok. 1281: 1282: * tree.c (build_index_type): make_index_type moved here and renamed. 1283: 1284: * combine.c (move_deaths_2): New function. 1285: (try_distrib): Use that, not move_deaths. 1286: 1287: * tm-sparc.h (SHIFT_COUNT_TRUNCATED, STORE_FLAG_VALUE): Define them. 1288: 1289: * tm-sparc.h: FUNCTION_{PRO,EPI}LOGUE: Save room for ins and 1290: locals to spill to the frame if any ins *or* locals are live. 1291: 1292: * tm-sparc.h (NOTICE_UPDATE_CC): Delete the clause that always 1293: cleared the cc's for unrecognized insns. 1294: 1295: * reload1.c (reload_as_needed): Don't try to use a spill-reg 1296: in a basic block that wasn't spilled: ignore optional reloads. 1297: 1298: Tue Aug 23 09:45:05 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1299: 1300: * output-sparc.c (output_scc_insn): New function. 1301: 1302: * expr.c (expand_builtin, alloca): Round result of alloca 1303: up to a multiple of STACK_BYTES. 1304: 1305: * toplev.c (compile_file): Default main_input_filename is cc1 input. 1306: 1307: * tm-i386.h (FUNCTION_BOUNDARY): 32 avoids extra prefetch. 1308: 1309: * i386.md (movdi, movdf): Add `&' where needed in constraints. 1310: 1311: Mon Aug 22 11:57:51 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1312: 1313: * symout.c (symout_finish): Allocate typevector after the symout_types. 1314: 1315: Sun Aug 21 16:10:54 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1316: 1317: * tm-3b1.h (ASM_FORMAT_PRIVATE_NAME): Use a `_' as well as `%'. 1318: 1319: * expr.c (expand_expr): Typo setting MODE for MAX_EXPR. 1320: 1321: * Makefile (stage*): If ln fails, copy gnulib to stage*. 1322: (realclean): Do `clean' and then some. 1323: (install): new var USER_H specifies headers to copy. 1324: 1325: * c-typeck.c (build_binary_op_nodefault): LT_EXPR, etc. 1326: on ptr vs int failed to set result_type. 1327: (build_conditional_expr): Don't replace nonzero int 1328: with null_pointer_node. 1329: 1330: * combine.c (remove_links, try_distrib): New fns. 1331: (subst): New simplifications for ZERO_EXTEND, SIGN_EXTEND. 1332: (combine_instructions): Call try_distrib. 1333: (FAKE_EXTEND_SAFE_P): Allow SUBREGs. 1334: 1335: * m68k.md (non-FPA pattern for floatsisf2): Typo, had DF for SF. 1336: 1337: Sat Aug 20 12:04:37 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1338: 1339: * integrate.c (copy_address): Variant of copy_rtx_and_substitute. 1340: (copy_rtx_and_substitute): Use copy_address for MEM address that 1341: doesn't satisfy memory_address_p. 1342: 1343: * reload.c (find_reloads): If force_reload set, don't set WIN 1344: for a MEM even if `m', `o' or `g' in constraint. 1345: 1346: * i386.md (expendqihi2): Typo in asm template. 1347: 1348: * toplev.c (rest_of_compilation): Call clear_const_double_mem. 1349: * varasm.c (init_const_rtx_hash_table): Don't call it here. 1350: (immed_real_const): Don't record the rtx in the REAL_CST node. 1351: (force_const_double_mem, clear_const_double_mem): Use cc0_rtx, not 0, 1352: as flag for a CONST_DOUBLE not on the chain. 1353: 1354: * cccp.c (handle_directive): If traditional, do scan strings 1355: but accept unterminated ones. 1356: (collect_expansion): -traditional: Don't recognize comments in strings. 1357: Stringify arguments that appear within strings. 1358: (skip_quoted_string): -traditional: Always exit at newline. 1359: (macroexpand): -traditional: Don't put `"'s around stringified arg. 1360: (macarg): Set stringified_length accordingly. 1361: 1362: * c-decl.c (duplicate_decls): Avoid error redeclaring fcn after 1363: implicit decl if -traditional. 1364: 1365: * toplev.c (announce_function, report_error_function): 1366: Change communication logic between these fcns. 1367: 1368: * c-decl.c (lang_decode_options): Handle -Wall here. 1369: * toplev.c (main): not here. 1370: 1371: * tm-bsd386.h: Don't include tm-i386.h--be like tm-att386.h 1372: 1373: Fri Aug 19 11:08:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1374: 1375: * config-sun4.h: If sparc, include config-sparc.h. 1376: Never include alloca.h. 1377: 1378: * tm-m68k.h (TARGET_SWITCHES): Define `-mc68020', `-mc68000'. 1379: 1380: * c-decl.c (init_decl_processing): If traditional, use signed sizetype. 1381: 1382: * gcc.c (main): Use stderr for printing version. 1383: 1.1.1.6 root 1384: Thu Aug 18 14:42:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1385: 1386: * Version 1.26 released. 1387: 1388: * m68k.md (movsi): Constraint change for fpa regs. 1389: 1390: * reload1.c (choose_reload_targets): Clear reg_reloaded_contents 1391: for all regs of a multi-reg group. 1392: 1393: * reload.c (find_equiv_reg): HARD_REGNO_NREGS wants mode, not size. 1394: Check properly for overlap against multiword reload regs. 1395: 1396: Tue Aug 16 14:54:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1397: 1398: * varasm.c, expr.c (immed_double_const): immed_real_const_2 renamed. 1399: 1400: * tm-i386.h (SFVALUE): Should be `double'. 1401: * tm-i386v.h (SFVALUE): Don't override it. 1402: 1403: * tm-i386.h (ASM_OUTPUT_ASCII): Don't define it. 1404: * tm-att386.h: Definition moved here. 1405: 1406: * tm-bsd386.h: New file, for Sequent. 1407: * tm-seq386.h: New file, for Sequent. 1408: * config-i386.h: New file, for Sequent. 1409: 1410: * expr.c (push_block): Take account of STACK_POINTER_OFFSET. 1411: (expand_call): Therefore need not do so here. 1412: 1413: * optabs.c (expand_fix): Typo if going via DImode. 1414: 1415: * reload1.c (choose_reload_targets): Don't * reload_reg_rtx if 0. 1416: 1417: Mon Aug 15 01:11:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1418: 1419: * integrate.c (copy_for_inline): Don't try copying 0-length vector. 1420: (copy_rtx_and_substitute): Likewise. 1421: 1422: * m68k.md (andsi3): use clrw instead of andw #0. 1423: 1424: * print-tree.c (walk): Don't omit permanent nodes reach from temps. 1425: 1426: * m68k.md (zero_extend...): Reinstall the old zero-extend insns 1427: without names, so they can help the combiner. 1428: 1429: * expr.c (expand_expr): Don't use hard regs as subtargets. 1430: * combine.c (FAKE_EXTEND_SAFE_P): Always consider MEMs safe. 1431: * reload.c (find_reloads): For (SUBREG (MEM ...)) set force_reload. 1432: 1433: * c-parse.y (redescape): Don't warn for `\('. 1434: 1435: * reload.c (find_reloads_address): #if was backwards. 1436: 1437: Sun Aug 14 16:52:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1438: 1439: * c-typeck.c (shorten_compare): Change switch to chain of ifs. 1440: 1441: * tm-ns32k.h (PRINT_OPERAND): CONST_DOUBLE contains a double 1442: even if it's SFmode. 1443: (FUNCTION_PROLOGUE): If MAIN_FUNCTION_PROLOGUE defined, run it. 1444: 1445: * cccp.c (file_buf): Rename field `free' to `free_ptr'. 1446: 1447: * Makefile (ALLOCA, MALLOC, LIBDEPS): New variables for easier 1448: customization. Executables depend on LIBDEPS instead of OBSTACK1. 1449: (cccp): Deps and libs now work like the others. 1450: 1451: * output-i386.c (notice_update_cc): Rewritten for clarity. 1452: 1453: * tm-i386.h (OUTPUT_JUMP): If CC_IN_OVERFLOW, abort. 1454: 1455: * recog.c (push_operand): Test for stack_pointer_rtx. 1456: 1457: * integrate.c (copy_rtx_and_substitute): Don't submit push-operands 1458: to `memory_address'--it would lose on machines where pushing is 1459: a special insn, not an addressing mode. 1460: 1461: * output-i386.c (top_dead_p): No more redundancy--that didn't work. 1462: Now one method if optimized, one for call_insns if noopt, one for 1463: other insns if noopt. 1464: (call_top_dead_p): fp_top_dead_p renamed 1465: and only the call-insn clause remains. 1466: 1467: * i386.md (cmpsf, cmpdf): Output was backwards. 1468: (", tstsf, tstdf): Set CC_IN_80387. 1469: (incb pattern): Restrict allowable registers. 1470: (movsf, movdf): Call top_dead_p only when absolutely necessary. 1471: (call_value): Use top_dead_p, not subroutine. 1472: 1473: Sat Aug 13 15:19:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1474: 1475: * stupid.c (stupid_life_analysis): If only 1 reg class, 1476: call stupid_find_reg only once. 1477: 1478: * stmt.c (expand_function_start): 1479: Clear current_function_pretend_args_size. 1480: 1481: * expr.c (store_constructor): If target is hard reg, go via a pseudo. 1482: 1483: * varasm.c (real_constant_chain): Now static in this file. 1484: (force_const_double_mem): Put R on chain if not already on. 1485: (clear_const_double_mem): Set XEXP (,2) to 0; 1486: also clear real_constant_chain and the chain links. 1487: * emit-rtl.c (init_emit_once): Put 0 in XEXP (,2) of {d,f}const0_rtx. 1488: * cse.c (canon_hash): For CONST_DOUBLE, ignore elts other than 0,1. 1489: 1490: Fri Aug 12 11:48:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1491: 1492: * reload1.c (order_regs_for_reload): Handle REG_ALLOC_ORDER more spots. 1493: 1494: * global-alloc.c (find_reg): error handling REG_ALLOC_ORDER; 1495: also error skipping regs known to be hopeless. 1496: * local-alloc.c (find_free_reg): error skipping hopeless regs. 1497: * stupid.c (stupid_find_reg): likewise. 1498: 1499: * local-alloc.c (qty_compare_1): typo, had q1 for q2. 1500: 1501: * expr.c (expand_expr): Don't use supplied target when optimizing 1502: arithmetic using a comparison or conditional; that target could be 1503: needed for the result of the comparison. 1504: 1505: * reload1.c (reload): Don't set reg_equiv_constant for hard regs. 1506: 1507: * stupid.c (stupid_life_analysis): Ignore reg R if regno_reg_rtx[R]==0. 1508: 1509: * symout.c (symout_finish): Use perm. links in permanent_fwd_refs. 1510: 1511: * i386.md (movhi, movqi): Check no_labels_between_p. 1512: 1513: Thu Aug 11 10:44:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1514: 1515: * c-parse.y (yylex): Out-of-range float is just a warning. 1516: 1517: * tm-gnx-v3.h: New file for Genix. 1518: * ns32k.md (movsi, call, call_value): GNX_V3 conditionals. 1519: * tm-ns32k.h (PRINT_OPERAND_ADDRESS): Changes for Genix. 1520: 1521: * ns32k.md (insv patterns): Operand 0 is read-write. 1522: 1523: * i386.md (tstsf, tstdf): Don't push the arg if already in st(0). 1524: 1525: * varasm.c (output_constant_def): If EXP is permanent, the rtl is too. 1526: 1527: * tm-*.h (ASM_OUTPUT_{LOCAL,COMMON}): New 4th arg, rounded size 1528: vs unrounded size. 1529: * varasm.c (assemble_variable): Pass new arg. 1530: * symout.c (symout_init): Likewise. 1531: 1532: * cccp.c (rescan): Don't let char const cross lines. 1533: (skip_quoted_string, macarg1, discard_comments): Likewise. 1534: 1535: * expr.c (expand_expr, VAR_DECL case): handle flag_force_addr. 1536: 1537: * tm-i386v.h (TAREGT_DEFAULT): Assume 80387. 1538: * config-i386v.h (alloca): Use __builtin_alloca under GNU C. 1539: 1540: Wed Aug 10 11:23:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1541: 1542: * reload.c (find_reloads): Alternative loses 1543: if it has no regs for a reg operand. 1544: 1545: * tm-sun3.h (STARTFILE_SPEC): Define, for fpa's sake. 1546: * tm-m68k.h: New hard regs, reg classes, reg class letters, 1547: target flag and switch, operand syntax and CC handling for fpa. 1548: * m68k.md: Add fpa insn patterns. 1549: * output-m68k.c (standard_SunFPA_constant_p): New fn. 1550: (output_move_const_{single,double}): Handle fpa regs. 1551: (singlemove_string): Handle fpa regs. 1552: 1553: * stmt.c (fixup_memory_subreg): Result had wrong mode. 1554: 1555: * ns32k.md (insv patterns): Adjust bit-number along with address. 1556: 1557: * sparc.md (negdf2, absdf2): Order of the words was backwards. 1558: 1559: * reload1.c (new_spill_reg): End confusion about meaning of 1st arg. 1560: Arg counted_for_nongroups had wrong type. 1561: 1562: * tm-m68k.h (FUNCTION_{PRO,EPI}LOGUE): Round frame size to word bdry. 1563: 1564: Tue Aug 9 07:53:59 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1565: 1566: * tm-i386.h (ASM_OUTPUT_ASCII): Don't lose the sign bit. 1567: 1568: * tm-i386v.h (STARTFILE_SPEC, LIB_SPEC): Use crt1.o, crtn.o. 1569: 1570: * stmt.c (fixup_var_refs_1): fixup all memory subregs. 1571: 1572: * reload1.c (choose_reload_targets): Don't strip paradoxical 1573: subregs from values to be reloaded. 1574: 1575: * cccp.c: Comment out text after #endif. 1576: 1577: * c-parse.y (init): Allow empty braces as init; warn if pedantic. 1578: 1579: * c-decl.c: Move C-specific options from toplev.c. 1580: * c-tree.h: Move their externs from flags.h. 1581: * c-decl.c (lang_decode_option): New fn called by `main'. 1582: * toplev.c (sorry, really_sorry): New error reporting fns. 1583: * c-decl.c (language_string): New var, name of this language. 1584: 1585: * c-parse.y: Don't include flags.h. 1586: * dbxout.c: Do include it. 1587: 1588: * dbxout.c (dbxout_type): Handle function fields and static fields 1589: and basetypes. Handle METHOD_TYPE and REFERENCE_TYPE. 1590: Abort on unexpected tree code. 1591: (dbxout_args): New fn to output prototype arg types. 1592: (everywhere): Use IDENTIFIER_LENGTH instead of strlen. 1593: (dbxout_type_name): Cleanup; avoid strlen. 1594: 1595: * local-alloc.c (reg_is_set): Don't call {post_,}mark_life for pseudos. 1596: 1597: * tree.h (TYPE_BASECLASSES): New field in type nodes. 1598: 1599: * ns32k.md (insv patterns): Was adjusting the address wrong. 1600: 1601: * c-decl.c (grokdeclarator): Just a warning for inline varargs fn. 1602: 1603: Mon Aug 8 08:16:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1604: 1605: * varasm.c (immed_real_const_2): Guts of creating a CONST_DOUBLE. 1606: * expr.c (expand_expr): Use that for 64-bit int constants. 1607: 1608: * loop.c (invariant_p): Don't check x->unchanging; it's not safe. 1609: 1610: * c-typeck.c (build_indirect_ref): Handle flag_volatile here 1611: so that it propagates to component_refs. 1612: * expr.c (expand_expr): No need to handle it here. 1613: 1614: * integrate.c (save_for_inline, expand_inline_function): 1615: Set up insn_map to record mapping of old uids to copied insns. 1616: (copy_for_inline, copy_rtx_and_substitute): Map 'u' refs via insn_map. 1617: 1618: * emit-rtl (emit_label, emit_barrier): Return what was emitted. 1619: 1620: * sdbout.c (sdbout_filename): Split off from sdbout_init. 1621: * tm-encore.h, tm-3b1.h, tm-vaxv.h, tm-att386.h (ASM_FILE_START): 1622: Call sdbout_filename. 1623: 1624: * toplev.c: Better messages for invalid options. 1625: 1626: * tm-m68k.h (PRINT_OPERAND_ADDRESS): Handle labelref+basereg. 1627: 1628: * tm-3b1.h (PUT_SDB_DIM): Override sdbout's definition. 1629: (ASM_FORMAT_PRIVATE_NAME): Override tm-hp...s definition. 1630: (PUT_SDB_PLAIN_DEF): Prepend `~' to specified name. 1631: (SDB_GENERATE_FAKE): Prepend `~'. 1632: 1633: * gcc.c: Include config.h before obstack.h. 1634: 1635: Sun Aug 7 11:17:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1636: 1637: * stor-layout.c (layout_decl): Do nothing with CONST_DECL. 1638: Treat FRIEND_DECLs like variables. 1639: (layout_record): Handle VAR_DECLs and FUNCTION_DECLs in the fieldlist. 1640: Handle basetypes (almost like fields). 1641: (layout_type): Handle REFERENCE_TYPE and METHOD_TYPE. 1642: 1643: * tree.c (temp_tree_cons): New fn. 1644: (array_type_nelts, simple_cst_equal): New fns. 1645: (lvalue_p): CALL_EXPR is an lvalue if it returns REFERENCE_TYPE. 1646: () Manage TYPE_REFERENCE_TO. 1647: (TYPE_HASH_SIZE): Bigger. 1648: (type_list_equal): Compare the TREE_PURPOSE fields. 1649: (build_reference_type, build_method_type): New fns. 1650: 1651: * stmt.c (block_stack): Add field `cleanups' to each element. 1652: (expand_{start,end}_bindings, expand_decl): Update that field. 1653: (stack_block_stack): Now includes blocks that have cleanups. 1654: (goto_fixup_chain): Add field `cleanup_list_list'. 1655: (expand_goto_internal): Execute cleanups for blocks being exited. 1656: (expand_fixup): Make a fixup if any block has cleanups. 1657: (fixup_gotos): New args CLEANUPS and DONT_JUMP_IN. 1658: Execute cleanups for blocks being exited, or add to cleanup_list_list. 1659: (expand_end_bindings): New arg DONT_JUMP_IN. Execute any cleanups. 1660: (expand_decl): New arg CLEANUP. 1661: (expand_cleanups, fixup_cleanups): New functions. 1662: * c-decl.c: Calls to expand_decl pass new arg. 1663: * c-parse.y: Calls to expand_end_bindings pass new arg. 1664: 1665: * stmt.c (expand_return): Handle INIT_EXPR, or bare RESULT_DECL. 1666: 1667: * stmt.c (case_stack): Add field `has_default' to each element. 1668: (pushcase,expand_end_case): Maintain and use that field. 1669: 1670: * stmt.c (pushcase): Handle RANGE_EXPR cases. 1671: (pushcase_range): Create RANGE_EXPR cases. 1672: 1673: * final.c (final): Always pass 3 args to ASM_OUTPUT_CASE_END. 1674: * tm-3b1.h: Delete offending spaces. 1675: 1676: Fri Aug 5 16:17:16 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1677: 1678: * integrate.c (copy_rtx_and_substitute): Don't make fp+reg+const 1679: without an intermediate temporary reg. 1680: 1681: * print-tree.c (dump): Don't print an identifier's chain. 1682: 1683: * toplev.c (compile_file): Treat `.i' suffix like `.co'. 1684: 1685: * gcc.c: New config macro CC1_SPEC: extra switches for cc1. 1686: Make a new spec for `.i' files. 1687: 1688: * c-decl.c (pushdecl, finish_decl): Delete duplicate tests. 1689: 1690: * varargs.h: Maybe include va-sparc.h or va-spur.h. 1691: * va-sparc.h: New file. 1692: * va-spur.h: renamed file. 1693: 1694: * tree.h ({TYPE,DECL}_LANG_SPECIFIC): Types and decls can point to 1695: language-specific structures containing other info. 1696: * print-tree.c (dump): Hooks for printing the language-specific 1697: data in types and decls. 1698: 1699: Thu Aug 4 08:54:30 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1700: 1701: * tree.def: Add some tree codes for C++. 1702: 1703: * Rename files: parse.[yh] -> c-parse.[yh], decl.c -> c-decl.c, 1704: typecheck.c -> c-typeck.c. 1705: Part of tree.c split out to c-convert.c. 1706: 1707: * expr.c (push_block): No longer static. 1708: (expand_expr): Handle REFERENCE_EXPR and INIT_EXPR. 1709: (expand_call): Turn a METHOD_TYPE to a FUNCTION_TYPE. 1710: This is probably not all that is required. 1711: 1712: * parse.y (yylex): Use p->rid to check for `signed' and `inline'. 1713: 1714: * tm-sparc.h (ASM_OUTPUT_SOURCE_LINE): typo. 1715: 1716: * sparc.md: Add a pattern for andcc. 1717: (cmpsf): Clobber reg 32 in DFmode. 1718: (branches): There are no unsigned floating branches; abort. 1719: (bgt): Correct name of floating variant. 1720: (mov?i): Load small constants via mov. 1721: (movdf for constants): Use mov, not add, to move regs. 1722: (movsf, floatsi*, fix*): Simplify reg-to-reg-via-mem move generation. 1723: (trunc*): Use mov, not or, to move regs. 1724: (negsi2, one_cmplsi2): Avoid "neg" and "not" assembler syntax. 1725: (call...): Generate "call" insns; handle #-reg-parms value. 1726: * Define some peepholes for return insns. 1727: 1728: * tm-sparc.h (TARGET_SUN_ASM): New target flag. 1729: (TARGET_DEFAULT): Now 1. 1730: (FRAME_POINTER_REQUIRED): Now 1. 1731: (STARTING_FRAME_OFFSET): Now -16. 1732: (LEGITIMATE_CONSTANT_P): Only CONST_DOUBLEs fail. 1733: (FUNCTION_{PROLOGUE,EPILOGUE}): Rewritten. 1734: 1735: * output-sparc.c (small_int): Test for int that mov can load. 1736: (singlemove_string): Use mov, not add. 1737: (output_move_double): Changes for overlap and for use of ldd, std. 1738: (output_fp_move_double): Use ldd, std when safe. 1739: (make_f0_contain_0): Simplify. 1740: 1741: * integrate.c (expand_inline_function): Some special CALL_INSN 1742: handling no longer needed due to REG_FUNCTION_VALUE_P. 1743: 1744: * m68k.md (movqi): Constraints allow moving areg to areg. 1745: 1.1.1.5 root 1746: Wed Aug 3 08:29:31 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1747: 1.1.1.6 root 1748: * Version 1.25 released. 1749: 1.1.1.5 root 1750: * integrate.c (expand_inline_function): Don't let MEM be inline_target. 1751: 1752: Tue Aug 2 09:13:37 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1753: 1754: * integrate.c (INTEGRATE_THRESHOLD): New macro, default dfn here. 1755: (function_cannot_inline_p): Use it. 1756: 1757: * rtl.h (REG_FUNCTION_VALUE_P): New macro. 1758: * stmt.c (expand_function_start): Set that flag in the return reg. 1759: * integrate.c (expand_inline_function, copy_rtx_and_substitute): 1760: Test that flag to test for the return value. 1761: * expmed.c (expand_fixed_bit_field, expand_mult, expand_divmod): ditto. 1762: FUNCTION_VALUE_OUTGOING_REGNO_P no longer needed. 1763: 1764: Mon Aug 1 02:46:08 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1765: 1766: * integrate.c (copy_rtx_and_substitute): If NO_FUNCTION_CSE, 1767: don't break out constant fcn addresses here. 1768: 1769: * expmed.c (expand_fixed_bit_field): Tests of FUNCTION_VALUE_REGNO_P 1770: were backwards. 1771: 1772: Sun Jul 31 13:10:07 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1773: 1774: * recog.c (indirect_operand): New function. 1775: 1776: * output-i386.c (print_operand): define %*. eliminate %s. 1777: (fp_top_dead_p): In nonopt case, skip stack-adjusts while looking 1778: for the insn that uses the function value. 1779: 1780: * varasm.c (text_section, data_section): New functions. 1781: Replaced explicit printfs elsewhere with calls to them. 1782: * final.c (final_start_function): Use these fns. 1783: * sdbout.c (sdbout_one_type): Use text_section. 1784: * tm-att386.h (ASM_OUTPUT_LOCAL): Use data_section. 1785: 1786: * expr.c (prepare_call_address): Don't pass const via reg if no -O. 1787: 1788: * tm-sparc.h (FUNCTION_{PROLOGUE,EPILOGUE}) Round the size of saved 1789: registers. Fix bug counting saved registers. 1790: 1791: * tm-sparc.h (ASM_OUTPUT_SOURCE_LINE): Define this macro. 1792: 1793: * tm-sparc.h (DEFAULT_SIGNED_CHAR): Now 1. 1794: 1795: * expr.c (expand_builtin, alloca case): Adding stack offset needs 1796: special code if TARGET is a MEM. 1797: 1798: * dbxout.c (dbxout_init): Define Ltext: after the reference to it. 1799: 1800: * tm-3b1.h (ASM_OUTPUT_CASE_LABEL): `short 0' triggers assembler bug; 1801: `short L%nn-L%nn' supposedly works. 1802: 1803: Sat Jul 30 00:25:52 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1804: 1805: * sparc.md (floatsidf2): Minor change in output. 1806: (fix_trunc{sf,df}si2): Similar. 1807: 1808: * output-sparc.c (output_fp_move_double): Minor change in output. 1809: 1810: * stmt.c (assign_parms): Don't count stack space for struct value 1811: address if the function does not have one. 1812: 1813: * sdbout.c: Output .dim's and total size for arrays. 1814: Detect bit-fields properly. 1815: Changed handling of structure tags. 1816: 1817: * reload1.c (new_spill_reg): counted_for_nongroups is a new arg; 1818: store 1 in it if this reg is needed for max_nongroups. 1819: 1820: * reload1.c (choose_reload_targets): Allow inheritance of DFmode 1821: if it needs only one register. 1822: 1823: * reload1.c (choose_reload_targets): Delete the death-note from the 1824: store-insn of an inherited reload if PRESERVE_DEATH_INFO_REGNO_P. 1825: 1826: * reload.c (push_reload): Crash if PREFERRED_RELOAD_CLASS is NO_REGS. 1827: (find_reloads): Smarter handling of forcing CONST_DOUBLE into mem. 1828: Check PREFERRED_RELOAD_CLASS & do this if it says NO_REGS. 1829: 1830: * reload.c (subst_indexed_address): Handle case with 2 regs 1831: and no constant term. 1832: 1833: * local-alloc.c: New variable qty_n_refs, set from reg_n_refs 1834: and tested in qty_compare{,_1}. 1835: (combine_regs): Update qty_n_refs. 1836: Update qty_preferred_or_nothing more intelligently. 1837: 1838: * regclass.c (regclass, reg_class_record, record_address_regs): 1839: Count the number of refs to each reg along with the costs, 1840: and use it when computing the preferred_or_nothing flag. 1841: (Can't use reg_n_refs since that is weighted by loop depth). 1842: 1843: * global-alloc.c (global_alloc): Enable test of OVERLAPPING_REGNO_P 1844: for setting no_global_alloc_regs. 1845: 1846: * expr.c (prepare_call_address): Use force_reg, so it gets a REG_EQUIV. 1847: 1848: * optabs.c (can_{fix,float}_p): Return enum insn_code, not a function. 1849: (init_{fix,float}_tab): Store enum insn_code's in fixtab and floattab. 1850: (expand_{fix,float}): Change calls to can_{fix,float}_p. 1851: Also, use emit_unop_insn to make the actual insns. 1852: 1853: Fri Jul 29 02:42:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1854: 1855: * cccp.c (initialize_char_syntax): If dollars_in_identifiers is 0, 1856: set entries for `$' to 0. 1857: Set entries to 1 rather than incrementing them. 1858: 1859: Tue Jul 26 11:14:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1860: 1861: * varasm.c (assemble_variable): Make SDB output only if top-level. 1862: 1863: * local-alloc.c (reg_is_set): Arg to mark_life is regno, not qty. 1864: 1865: * output-ns32k.c (print_operand_address): New flag SEQUENT_BASE_REGS 1866: * tm-sequent.h: Define that flag. 1867: 1868: * Makefile: add some missing deps. 1869: 1870: * tm-encore.h (ASM_FILE_START): Changed to do nothing. 1871: 1872: * sdbout.c (sdbout_init): Fix two dumb errors. 1873: 1874: * sdbout.c (sdbout_end_epilogue): No longer takes arg. 1875: Examine current_function_decl here, not in caller. 1876: * final.c: Call changed. 1877: 1878: Mon Jul 25 01:32:54 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1879: 1880: * stor-layout.c (layout_record): Handle PCC_BITFIELD_TYPE_MATTERS. 1881: 1882: * tm-3b1.h (__PTR_TO_INT, __INT_TO_PTR): Define these, to alter 1883: parts of obstack.h. 1884: 1885: Sun Jul 24 17:56:53 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1886: 1887: * Padding for an arg may now go below or above it; new macro 1888: FUNCTION_ARG_PADDING can now choose which, or can inhibit padding. 1889: This makes for compatibility with PCC. 1890: * expr.h: Default definition of that macro. 1891: * expr.c (emit_push_insn): Put the padding above or below. 1892: (expand_call): Don't count the padding if none wanted. 1893: * stmt.c (assign_parms): Adjust parm stack addr if padded below. 1894: Don't count the padding if none wanted. 1895: * tm-3b1.h: Define FUNCTION_ARG_PADDING: no padding for > 4 bytes. 1896: 1897: * final.c (alter_subreg): Now returns the altered value 1898: (but may still modify the original structure). 1899: Handles (SUBREG:DI (CONST_DOUBLE:DF...)) by returning the CONST_DOUBLE. 1900: 1901: * m68k.md (DImode push): now allows `F'. 1902: * ns32k.md (movdi): now allows `F'. 1903: 1904: * tm-m68k.h (FIX_FRAME_POINTER_ADDRESS): 1905: Handle indexed references to frame pointer. 1906: * tm-i386.h, tm-m88k.h, tm-sparc.h: Likewise. 1907: 1908: * cse.c (predecide_loop_entry): Must search for the loop top label. 1909: 1910: Sat Jul 23 08:53:01 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1911: 1912: * parse.y (yylex): typo in wide strings. 1913: 1914: * tm-vaxv.h, config-vaxv.h: New files for sysV on vax. 1915: 1916: * config-sun4.h: If sparc and not compiling with GCC, include alloca.h. 1917: 1918: Fri Jul 22 02:38:02 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 1919: 1920: * tree.c (build_real_from_int_cst): CHECK_FLOAT_VALUE at proper place. 1921: 1922: * tm-hp9k320.h ({TEXT,DATA}_SECTION_ASM_OP): Should not include a tab. 1923: * final.c (final_start_function): Don't output a tab before those. 1924: 1925: * sdbout.c (PUT_SDB_EPILOGUE_END): New macro. 1926: * sdbout.c (sdbout_end_epilogue): New function to output the C_EFCN. 1927: Like former sdbout_mark_end_function. Uses that macro. 1928: * final.c (final_end_function): Call that function. 1929: * tm-3b1.h: Override PUT_SDB_EPILOGUE_END like the other PUT_SDB... 1930: 1931: * tm-3b1.h (PRINT_OPERAND_ADDRESS, ASM_OUTPUT_INTERNAL_LABEL, 1932: ASM_OUTPUT_CASE_{LABEL,END}): Put a % in names of internal labels. 1933: (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_ADDR_{VEC,DIFF}_ELT): 1934: New macros, for same reason. 1935: (FUNCTION_PROFILER): New macro, for % and also to put addr in a0. 1936: 1937: * final.c (output_source_line): For fcn's first line, use lineno 1. 1938: * sdbout.c (sdbout_end_function): Clear sdb_begin_function_line 1939: so can recognize first line of next function. 1940: 1941: * sdbout.c (sdbout_init): Output the .file pseudo here. 1942: * tm-3b1.h, tm-att386.h (ASM_FILE_START): Don't do it here. 1943: 1944: * sdbout.c (PUT_SDB_VAL): Output leading tab, like the other macros. 1945: * tm-3b1.h (PUT_SDB_VAL): Likewise. 1946: 1947: * regclass.c (regclass): Cast enums to int, not char. 1948: * varasm.c (record_constant): Likewise. Avoids 3b1 PCC bug. 1949: 1950: * decl.c (pushdecl): Better choice of error message for extern/static. 1951: 1952: * emit-rtl.c: Do look for STRUCT_VALUE_INCOMING_REGNUM. 1953: 1954: Thu Jul 21 02:13:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1955: 1956: * cse.c (canon_hash): CONST_INT case failed to add to prev. value 1957: of HASH; was inconsistent with cse_insn mem address hashing. 1958: 1959: * m68k.md (divide insns): Alternate 3B1 syntax for `swap' insn. 1960: 1961: Wed Jul 20 18:27:10 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1962: 1963: * m68k.md: In shift-by-24 patterns, rejects autoincrement memrefs 1964: since they are mode-dependent. 1965: 1966: Tue Jul 19 13:01:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1967: 1968: * parse.y (check_newline): Handle #ident by writing .ident to output. 1969: * cccp.c: Don't handle #ident; delete IDENT_DIRECTIVE conditionals. 1970: 1971: * stmt.c (expand_end_case): In compares, put constant arg second. 1972: 1973: * jump.c (jump_optimize): Delete conditional jump if followed by 1974: an unconditional jump to the same place. 1975: 1976: Mon Jul 18 17:49:13 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1977: 1978: * emit-rtl.c (init_emit_once): Now STRUCT_VALUE_INCOMING is an 1979: expression for an rtx. It can make a MEM. Likewise STRUCT_VALUE 1980: for outgoing structure value addresses. 1981: 1982: * stmt.c (assign_parms): If incoming struct addr on stack, leave room. 1983: * expr.c (expand_call): If outgoing addr on stack, push it like an arg. 1984: 1985: * PROMOTE_PROTOTYPES means if proto says `char', pass `int'. 1986: * decl.c (get_parm_info): Alter DECL_ARG_TYPE to do this. 1987: * typecheck.c (actualparameterlist): Convert value for this. 1988: * tm-m68k.h: Define PROMOTE_PROTOTYPES. 1989: 1990: Sun Jul 17 14:25:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 1991: 1992: * jump.c (jump_optimize): peephole can delete insns following INSN. 1993: Set NEXT after peephole. 1994: 1995: * decl.c (finish_decl): Always restart perm alloc if global. 1996: 1997: * stmt.c (assign_parms): When a float is passed as double, store the 1998: float in low-numbered word. Avoids trouble with parm_map in integrate. 1999: 2000: * vax.md: New pattern for decrement and compare against -1. 2001: 2002: Sat Jul 16 14:18:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2003: 2004: * decl.c (pushdecl): Ignore previous decl if it's really an error_mark. 2005: 2006: * stmt.c (expand_start_case): Make sure case_stmt.start is a NOTE. 2007: 2008: * combine.c (subst): In the simplification for 2009: (set (zero_extract ...) (and/or/xor (zero_extract ...) const)), 2010: require same memory location in both extracts. 2011: 2012: * *386*: New files. 2013: 2014: * cse.c (fold_rtx): Save time in memory address if it didn't change. 2015: Don't replace cheaper expression with coslier one. 2016: (cse_insn): Reenable generation of REG_WAS_0. It wasn't obsolete. 2017: 2018: * cccp.c: `ident' has 5 letters. 2019: 2020: * final.c (output_source_line): SDB can't handle multiple source 2021: files, so ignore line-NOTEs for other files. 2022: 2023: * hard-reg-set.h: New var reg_class_size (# regs in the class). 2024: * regclass.c (init_reg_class): Set it up. 2025: 2026: * reload.c (find_reloads): If an earlyclobber is in a class of size 1 2027: as an output, reload it as input instead of as output. 2028: 2029: * reload1.c (choose_reload_targets): Improve elimimation of spilled 2030: pseudos made dead by reloading: if pseudo is limited to one block 2031: and that block contains just stores, delete all the stores. 2032: 2033: * reload1.c (choose_reload_targets): reg_has_output_reload is now 2034: static and survives through reload pass. 2035: (forget_old_reloads): Don't cancel data on spilled regs of output 2036: reloads of the insn just made. 2037: 2038: * sdbout.c (sdbout_one_type): Go to .text before defining a type. 2039: (sdbout_block): Test against do_block was backwards. 2040: 2041: * stmt.c (expand_end_function): New args to make a NOTE for last line. 2042: * decl.c (finish_function): Pass the args. 2043: 2044: * rtl.c (no_labels_between): New function. 2045: * vax.md (movsi): Call it. 2046: 2047: * print-tree.c (dump): Don't follow chain of a decl. 2048: 2049: * rtl.c (volatile_refs_p): Moved from flow.c. 2050: 2051: Fri Jul 15 13:36:20 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2052: 2053: * sdbout.c (PUT_SDB...): Allow config to override any of them. 2054: * sdbout.c (PUT_SDB_{BLOCK,FUNCTION}_{START,END}): New macros. 2055: * tm-3b1.h: Override all of them. 2056: * sdbout.c (SDB_GENERATE_FAKE): New macro to create dummy tag name. 2057: (gen_fake_label): Use SDB_GENERATE_FAKE. 2058: * tm-3b1.h: Override its defn. 2059: 2060: * sdbout.c (sdbout_mark_function_end): Unused; deleted. 2061: 2062: * tm-3b1.h: Define SDB_DEBUGGING_INFO. 2063: 2064: Thu Jul 14 01:55:15 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2065: 2066: * config-sunv4.h: New file for Sunos version 4. 2067: 2068: * tm-sun3.h (CPP_SPEC): Define mc68010 or mc68020, depending. 2069: 2070: Tue Jul 12 15:31:30 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2071: 2072: * stmt.c (expand_fixup, expand_goto_internal): New functions to 2073: emit a jump that can restore the stack level, even without tree node. 2074: (expand_null_return, expand_exit_loop, etc.): Use expand_goto_internal. 2075: (expand_end_function): Do fixup_gotos after emitting return_label. 2076: 2077: * cse.c (predecide_loop_entry): Avoid using JUMP_LABEL. 2078: * flow.c (find_basic_blocks): Avoid using JUMP_LABEL. 2079: 2080: * flow.c (insn_dead_p): Delete special case for stack-adjust insns. 2081: (life_analysis): Mark those insns with INSN_VOLATILE here. 2082: (mark_used_regs): a SET of a hard reg, in a volatile insn, 2083: always makes its source live. 2084: 2085: Mon Jul 11 10:46:26 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2086: 2087: * ns32k.md (floatqidf2): Commented out since assemblers warn about it. 2088: 2089: Sun Jul 10 11:49:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2090: 2091: * decl.c (xref_tag): Default the TYPE_MODE of enum xrefs 2092: to avoid making MEM and REG with VOIDmode. 2093: 2094: * vax.md (call): If > 255 args, pop them explicitly. 2095: 2096: Sat Jul 9 10:53:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2097: 2098: * symout.c (symout_types): Fix up forward refs to previously 2099: undefined structure types. 2100: (filter_undefined_types): New function. 2101: (symout_finish, symout_function_end): Output any never-defined structs. 2102: * toplev.c (rest_of_compilation): call symout_function_end. 2103: 2104: * parse.y: Don't declare errno if it's a macro. 2105: 2106: * tm-hp9k320 (FUNCTION_PROFILER): Pass ptr in a0, not d0. 2107: 2108: * typecheck.c (truthvalue_conversion): Flush unnec recursive call. 2109: (build_cond_expr): Bug testing zeroness of IFEXP with TREE_LITERAL. 2110: 2111: * cse.c (fold_cc0): Constants not CONST_INT are certainly nonzero. 2112: * fold-const.c (fold): ADDR_EXPR is not equal to zero. 2113: 2114: * cccp.c (macroexpand): Disable the macro even if traditional. 2115: (rescan): Error if use a disabled macro. 2116: 2117: * combine.c (try_combine): Don't substitute a different reg into 2118: an auto-increment. Handle multiple REG_INC notes in I1 or I2. 2119: 2120: * decl.c (implicitly_declare): Don't reuse old implicit decl. 2121: 2122: * varasm.c (assemble_variable): Avoid syntax err if no DBX and no SDB. 2123: * final.c (output_source_line): likewise. 2124: 2125: * fold-const.c (fold): PLUS/MINUS_EXPR: in case of cancellation, 2126: convert result to original type. 2127: 2128: * regclass.c (reg_class_record): Changed arguments include address 2129: of entire vector of constraints. 2130: 2131: Fri Jul 8 07:59:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2132: 2133: * reload1.c (reload): Find groups of more than 2 registers. 2134: 2135: Thu Jul 7 08:33:07 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2136: 2137: * expr.c (emit_push_insn): Typo adjusting arg for bcopy 2138: if not STACK_GROWS_DOWNWARD. 2139: 2140: * gnulib.c (_cmpsf2): Value is int, not SFVALUE. 2141: 2142: Wed Jul 6 11:53:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2143: 2144: * tm-encore.h, tm-3b1.h: Replace ASM_FILE_START; output a .file. 2145: 2146: * *m88*: New files for Motorola 88000. They don't really work. 2147: 2148: Tue Jul 5 14:40:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2149: 2150: * local-alloc.c (combine_regs): Don't tie a reg to itself. 2151: 2152: * finxincludes: Make a variable LIB for the target dir. 2153: 2154: * m68k.md (movhi, addhi3, addsi3): Micro-optimize choice of asm insns. 2155: 2156: * expr.c (expand_expr): Use new macros NO_DEFER_POP, OK_DEFER_POP 2157: in several places, to keep stack predictable. 2158: 2159: Mon Jul 4 09:50:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2160: 2161: * integrate.c (function_cannot_inline_p): Increase threshold size. 2162: 2163: * flags.h (use_gdb_dbx_extensions): New variable. 2164: * toplev.c: 2165: 2166: * sdbout.c (PUT_SDB_TAG): Delete duplicate defn. 2167: 2168: * expr.c (expand_expr): For FIX_TRUNC_EXPR to unsigned short/char, 2169: REALLY go via signed int. 2170: 2171: * loop.c (may_trap_p): Was detecting floating arithmetic incorrectly. 2172: 2173: * tm-news800.h (CPP_PREDEFINES): Add sony and sony_news. 2174: 2175: * parse.y (check_newline): Avoid infinite loop at eof. 2176: 1.1.1.4 root 2177: Sat Jul 2 10:35:17 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2178: 2179: * Version 1.24 released. 2180: 2181: * stmt.c (expand_asm_operands): Produce proper no-outputs insn. 2182: * recog.c (asm_noperands): Detect no-outputs insns. 2183: (decode_asm_operands): Likewise. 2184: * reload.c (find_reloads): Likewise (add case ASM_OPERANDS:). 2185: 2186: * local-alloc.c (block_alloc): Tests of qty_compare were backwards. 2187: 2188: * flow.c (life_analysis): Turn off code that finds regs live at 2189: function start and marks them not local to any basic block. 2190: 2191: * cse.c (insert_regs): Fix typo (UNITS_PER_WORD). 2192: 2193: * cccp.c: Define max. 2194: 2195: * expr.c (expand_expr): Put each SAVE_EXPR's reg on save_expr_regs, 2196: if not optimizing. 2197: * stmt.c (expand_function_end): Mark each of those regs live 2198: at the end and also retroactively at the beginning of the function. 2199: 2200: * output-vax.c (print_operand_address): New function from old macro. 2201: * tm-vax.h (PRINT_OPERAND_ADDRESS): Call that function. 2202: 2203: * config-vms.h: If not under GNU C, define X_OK, etc. 2204: 2205: * expr.c (move_by_pieces_1): Use * to call GENFUN. 2206: (expand_expr): Compare DECL_FUNCTION_CODE against an enum const. 2207: (preexpand_calls): Likewise. 2208: * genrecog.c (write_tree): Likewise. 2209: * final.c (final): Use * to call the output function. 2210: * reload.c (push_reload): Rename `noshare' to `dont_share'. 2211: 2212: * genoutput.c (output_epilogue): Put more newlines in insn_outfun. 2213: * genemit (gen_exp): Put in more newlines. 2214: 2215: Fri Jul 1 00:23:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2216: 2217: * global-alloc.c (allocno_compare): Avoid comparisons of floats 2218: since that is sensitive to roundoff errors. 2219: 2220: Thu Jun 30 09:25:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2221: 2222: * sdbout.c (PUT_SDB_{DEF,TAG}): Use ASM_OUTPUT_LABELREF. 2223: (PUT_SDB_PLAIN_DEF): New name for old defn of PUT_SDB_DEF 2224: (sdbout_one_type): Use PUT_SDB_PLAIN_DEF for `.eos'. 2225: 2226: * tree.c (allocation_temporary_p): New fcn. 2227: (all_types_permanent): New variable. 2228: (make_node): If that's set, make each ...TYPE node permanent. 2229: * decl.c (grokdeclarator): If traditional, make decl data permanent. 2230: (finish_decl): Make the rtl permanent too. 2231: * stor-layout.c (layout_type): If type is permanent, 2232: make its layout data permanent too. 2233: 2234: * cccp.c: Choose C++ or C at run time via var `cplusplus'. 2235: Separate cplusplus_include_default from include_default. 2236: Get GNU-specific include directory names from macros 2237: GCC_INCLUDE_DIR and GPLUSPLUS_INCLUDE_DIR. 2238: (main): Initialize based on CPLUSPLUS; `-+' sets it. 2239: * Makefile: Set *_INCLUDE_DIR based on $(libdir). 2240: 2241: Tue Jun 28 09:25:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2242: 2243: * tree.c (copy_node): Round LENGTH up to multiple of sizeof (int). 2244: 2245: * expr.c (emit_push_insn): Avoid using PUSH_ROUNDING if not defined. 2246: 2247: * sparc.md (floatsisf2): Insert missing brace. 2248: (mulsi3): Replace reg_o0_rtx, reg_o1_rtx. 2249: 2250: * tm-sparc.h: Define DBX_DEBUGGING_INFO. 2251: 2252: * parse.y (yylex): If traditional, no error for out-of-range float. 2253: 2254: * Makefile: Comment saying how to compile on an Apollo. 2255: 2256: * tm-sparc.h (ASM_FILE_START): Switch to new calling convention. 2257: 2258: * decl.c (init_decl_processing): Create type nodes for 64-bit ints. 2259: (grokdeclarator): use them for `long long'. Warn only if pedantic. 2260: 2261: * optabs.c (init_optabs): Add missing DImode insn names. 2262: 2263: * expr.c (emit_block_move, emit_push_insn): Use movstrqi if appro. 2264: 2265: * expr.c (convert_move): use extendsidi if appropriate. 2266: 2267: * cccp.c (initialize_builtins): Don't install __STDC__ if traditional. 2268: (main): Call initialize_builtins after option processing. 2269: 2270: * integrate.c (output_inline_function): Set current_function_decl. 2271: 2272: * cse.c (fold_rtx): Typo in avoiding 32-bit shifts. 2273: 2274: * cccp.c: Add forward-decl. 2275: 1.1.1.3 root 2276: Mon Jun 27 18:06:42 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2277: 2278: * hard-reg-set.h (reg_alloc_order): New variable 2279: based on REG_ALLOC_ORDER, a new machine-description macro. 2280: * regclass.c (reg_alloc_order): Define it. 2281: * local-alloc.c (find_free_reg): Handle reg_alloc_order. 2282: * global-alloc.c (find_reg): Likewise. 2283: * stupid.c (stupid_find_reg): Likewise. 2284: 2285: Sun Jun 26 10:47:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2286: 2287: * Version 1.23 released. 2288: 2289: * tm-3b1.h: Define IDENT_DIRECTIVE. 2290: 2291: * tm-encore.h: Define SDB_DEBUGGING_INFO. 2292: Define SCCS_DIRECTIVE and IDENT_DIRECTIVE. 2293: 2294: * output-ns32k.c: Decl of paren_base_reg_printed must be outside fcns. 2295: 2296: * tm-encore.h (ASM_OUTPUT_DOUBLE): Do 0f, not 0l. 2297: (CPP_PREDEFINES): No -Dns32032. 2298: 2299: * sdbout.c: Include syms.h, not storclass.h. 2300: (unnamed_struct_member): Decl was missing. 2301: (PUT_SDB_INT_VAL, PUT_SDB_VAL): Fix typos. 2302: (sdbout_types, sdbout_one_type, sdbout_parms): Fix typos. 2303: 2304: * Makefile: Add file sdbout.o. 2305: Changed comments pertaining to sysV. 2306: Make a separate target `doc' to make the info files. 2307: 2308: * m68k.md (bit-field insns): Use nonimmediate_operand for the thing 2309: to extract from. 2310: * vax.md (QImode bit-field insns): Likewise. 2311: 2312: * recog.c (nonimmediate_operand): Accept any nonconst general operand. 2313: 2314: Sat Jun 25 07:54:42 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2315: 2316: * cse.c (lookup_as_function): arg to exp_equiv_p was missing. 2317: 2318: Fri Jun 24 09:14:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2319: 2320: * recog.c (memory_operand): Allow (subreg (mem...)). 2321: 2322: Thu Jun 23 07:34:07 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2323: 2324: * decl.c (finish_enum): Compute minimum value like maximum. 2325: If minimum is negative, install it in the type and make it signed. 2326: 2327: * stor-layout.c (layout_record): STRUCTURE_SIZE_BOUNDARY is minimum. 2328: (layout_type): A RECORD_TYPE or UNION_TYPE must be BLKmode if 2329: any member is BLKmode. This is to prevent putting it in a register. 2330: (layout_decl): If decl's type is BLKmode, the decl *must* be BLKmode. 2331: 2332: * local-alloc.c (find_free_reg): Never allocate the frame pointer reg. 2333: 2334: * tm-sequent.h (PRINT_OPERAND): Bug in SFmode CONST_DOUBLE. 2335: * tm-encore.h: Likewise. 2336: 2337: * flow.c (flow_analysis): Bug in n_basic_blocks error check. 2338: 2339: * stmt.c (expand_asm_operands): Emit no insn if an arg is erroneous. 2340: 2341: Tue Jun 21 08:34:24 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2342: 2343: * reload.c (find_reloads_address): Write back *loc even if 2344: subst_reg_equivs makes no change, in case subst_index_address did. 2345: 2346: * flow.c: Define macros for -1 and -2 as values of reg_basic_block. 2347: (mark_used_regs): Add an `else'; no change in behavior. 2348: (mark_label_ref): Abort if LABEL_REF doesn't contain a CODE_LABEL. 2349: (find_basic_blocks): Extra error check. 2350: 2351: * output-ns32k.c (print_operand_address): Changes in handling of 2352: register-indirect, and of indexing by sb register. 2353: 2354: Mon Jun 20 04:55:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2355: 2356: * cccp.c (collect_definition): Compute needed space more accurately. 2357: Abort if use more space than was allocated. 2358: (rescan) [USE_C_ALLOCA]: Do alloca (0) after handle_directive. 2359: 2360: * genflags.c (gen_insn): Put parens around defns of HAVE_... macros. 2361: 2362: Sun Jun 19 02:52:53 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2363: 2364: * expr.c (emit_push_insn): Consider PARM_BOUNDARY when compensating 2365: for size of a pushed arg to bcopy. 2366: 2367: Sat Jun 18 07:20:54 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2368: 2369: * New files sparc.md, tm-sparc.h, config-sparc.h, output-sparc.c. 2370: 2371: * final.c (final): After an ADDR_{,DIFF_}VEC, do ASM_OUTPUT_CASE_END. 2372: * tm-3b1.h: Define ASM_OUTPUT_CASE_END. 2373: (PRINT_OPERAND_ADDRESS): Ref the case tables via an intermediate symbol 2374: `LDnnn' whose def. is output by ASM_OUTPUT_CASE_END. 2375: (ASM_OUTPUT_CASE_LABEL): Add missing newline. 2376: 2377: * reload.c (find_equiv_reg): Reject a MEM containing an autoincrement. 2378: 2379: Fri Jun 17 06:58:37 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2380: 2381: * genpeep.c (main): Write `extern' in the decl for `peep_operand'. 2382: 2383: * flow.c (propagate_block): When a dead insn has a REG_RETVAL note, 2384: call mark_set_regs anyway, so that `significant' is updated. 2385: 2386: * jump.c (follow_jumps): New arg IGNORE_LOOPS. If 0, don't follow 2387: the insn at the beginning of a loop that enters the loop; this avoids 2388: interference with loop optimizer. 2389: (jump_optimize, tension_vector_labels): Pass that arg. 2390: 2391: * loop.c (loop_optimize): Mention invalid multiple-entry loops in log. 2392: 2393: * m68k.md (extv, extzv): Fix # of alternatives mismatch in constraints. 2394: 2395: Thu Jun 16 03:06:48 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 2396: 2397: * genrecog.c (change_state): Was mishandling printing XVECEXP indices 2398: greater than 9. 2399: 2400: * combine.c (subst, simplify_and_const_int): Avoid making SUBREG 2401: of a non-REG. 2402: 2403: * expr.c (expand_expr): For FIX_TRUNC_EXPR to unsigned short/char, 2404: go via signed int. 2405: 2406: * optabs.c (expand_fix): Copy hard_libcall_value reg only once. 2407: 2408: * reload1.c (order_regs_for_reload): Init all elements 2409: of potential_reload_regs to -1. 2410: 2411: * Prevent generation of (set (reg) (plus ... (label_ref ...))). 2412: * explow.c (memory_address_noforce): Like `memory_address' but 2413: never force it into a register. 2414: * expr.c (do_tablejump): Use that. 2415: * m68k.md (casesi): Use that. 2416: 2417: * rtl.h (struct rtx_def, GET_CODE, PUT_CODE): If SHORT_ENUM_BUG, 2418: define the `code' field as a short. 2419: 2420: Wed Jun 15 01:25:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2421: 2422: * gcc.c (CPP_SPEC): New spec set by config.h gives flags to cpp. 2423: * tm-*.h for m68k: Define CPP_SPEC to define __HAVE_FPU__ on 2424: appropriate conditions. 2425: 2426: * combine.c (subst): Simplify (not (minus x 1)) and (neg (minus x y)). 2427: 2428: Mon Jun 13 02:22:43 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 2429: 2430: * typecheck.c (build_array_ref): Avoid duplicate errmsg if index 2431: is an error-mark. 2432: 2433: Sun Jun 12 23:04:39 1988 Richard Stallman (rms at corn-chex.ai.mit.edu) 2434: 2435: * cccp.c (handle_directive): If -traditional, quotes aren't special. 2436: (rescan): Assume newline ends a string constant. 2437: 2438: * cccp.c, cexp.y: Make all fcns non-static; add some forward decls. 2439: 2440: * various: add static forward-decls for various functions. 2441: 2442: Fri Jun 10 00:25:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2443: 2444: * reload1.c (choose_reload_targets): When writing back an incremented 2445: value (handling reload_inc), write back to the real place, not to 2446: OLDEQUIV (a register that holds the same value). 2447: 2448: * tm-m68k.h (LEGITIMIZE_ADDRESS): Don't give force_operand a target. 2449: This can cause the use of multiple insns with same output reg, 2450: which can confuse cse. 2451: 2452: * loop.c (consec_sets_invariant_p): 2453: If invariant_p ever returns 2, we return 2. 2454: New arg is # of consecutive sets to look for, 2455: since this info is no longer in n_times_set at move_movables. 2456: (scan_loop): If consec_sets_invariant_p returns 2, set m->cond. 2457: (move_movables): check consecutive insns if m->consec && m->cond. 2458: 2459: * tm*.h: ASM_DECLARE_FUNCTION_NAME now takes 3rd arg, 2460: the FUNCTION_DECL node. 2461: * varasm.c (assemble_function): Pass this arg. 2462: 2463: * expr.c (expand_call, expand_builtin [alloca]): 2464: If STACK_POINTER_OFFSET is defined, add it to stack pointer contents 2465: before using it as address of actual data on the stack. 2466: * stmt.c (expand_decl): Likewise. 2467: 2468: * stmt.c (assign_parms): If 1st parm named `__builtin_va_alist' 2469: came in regs, pretend it came on stack. 2470: Handle pretending a BLKmode var came on the stack. 2471: If REG_PARM_STACK_SLOT, count stack space for each parm 2472: even if the parm came in a register; and use that stack space 2473: if the parm needs to be addressable or is BLKmode. 2474: Rearrange to simplify conditionals. 2475: 2476: Thu Jun 9 01:21:29 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2477: 2478: * local-alloc.c: 2479: `qty_...' vectors' elements for hard-reg-numbers now aren't used. 2480: `reg_qty' elements for hard-reg numbers now aren't used, 2481: and the element for a pseudo is never a hard-reg number. 2482: (local_alloc): No need to reset those elements. 2483: No need to reset elements out of range of prev block's NEXT_QTY. 2484: (reg_is_born, reg_is_set, wipe_dead_reg): 2485: Divide labor in same way for hard regs and pseudos; 2486: simplify using fact that locality-to-basic-block has been precomputed 2487: and recorded in reg_qty; avoid refs to reg_qty[HARDREG]. 2488: (reg_is_born, wipe_dead_regs): Block-number arg no longer needed. 2489: 2490: * local-alloc.c (combine_regs): Remove old code for tying hard regs 2491: to pseudos; great simplification results. 2492: Use find_regno_note, not regno_dead_p. 2493: 2494: Wed Jun 8 00:18:04 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2495: 2496: * reload.c (subst_reg_equivs): Set a flag if anything is changed. 2497: (find_reloads_address): Check that flag to avoid extra work. 2498: Also check early for safe reg+const address and avoid work. 2499: 2500: * reload.c (find_reloads): Use loops instead of bcopy. 2501: Check early for insn with no real constraints, and return. 2502: Also check for move from hard reg to hard reg and return. 2503: 2504: * cse.c (canon_reg): Rewrite for speed; use a switch. 2505: (cse_insn): Don't call find_reg_note if REG_NOTES is 0. 2506: 2507: * cse.c (cse_insn): Store modified SET_SRC even if there's a REG_EQUIV. 2508: Inhibition was needed when the SET_SRC was the only place to find the 2509: equivalent value; now it is in the REG_EQUIV note. 2510: 2511: * stmt.c (expand_asm_operands): If NINPUTS is 0, make vec of no elts. 2512: * regclass.c (reg_scan_mark_refs): Don't lose if XVEC (x,i) is 0. 2513: 2514: Tue Jun 7 03:51:28 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2515: 2516: * stmt.c (assign_stack_local): If big-endian and MODE is narrow, 2517: the bytes actually used are the least significant. 2518: 2519: * parse.y (skip_white_space): Accept char as arg; let caller read it. 2520: (yylex): Change call. 2521: (check_newline): Return 1st nonwhite char after skipping lines. 2522: (skip_white_space): Change call. 2523: * toplev.c (compile_file): Change call. 2524: 2525: * gcc.c: Pass -traditional to cc1. 2526: 2527: * cse.c (cse_insn): Return very early for (set (reg) (call...)). 2528: Mainly to save time. 2529: (cse-insn) Old code to add REG_WAS_0 note wasted time but did nothing. 2530: 2531: * expr.c (clear_pending_stack_adjust): Really do clear it, 2532: if current fcn doesn't want to be inline. 2533: 2534: * cse.c (cse_insn): Speedup: instead of safe_hash, use canon_hash 2535: or HASHREG. 2536: 2537: Mon Jun 6 21:47:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2538: 2539: * jump.c (rtx_renumbered_equal_p): Reject ADDR_VEC fast. 2540: 2541: * cse.c (cse_insn): Ignore a REG_EQUIV or REG_EQUAL note if the 2542: equivalent value is the same as the SET_SRC of the insn. 2543: 2544: * flow.c (life_analysis): Don't call volatile_refs_p for a CALL_INSN; 2545: just assume value is 1. 2546: (propagate_block): Don't call mark_{used,set}_regs for a stack-pop 2547: since if it isn't dead it has no effect on any useful life data. 2548: (mark_set_1): Return quickly if setting stack-ptr, and almost as 2549: quickly if setting any hard reg. 2550: (mark_used_regs): Likewise for refs. 2551: Also don't scan the vector of an ADDR_VEC or ADDR_DIFF_VEC. 2552: (volatile_refs_p): Likewise. 2553: 2554: * varasm.c (output_constant): Discard NOP_EXPR and CONVERT_EXPR 2555: in integer case (they were for casting a pointer). 2556: 2557: * parse.y (compstmt_or_error): Parse a compstmt after ignoring error. 2558: Use this for fctn body so that an error after store_parm_decls 2559: won't recover to xdecls and call store_parm_decls again. 2560: Typical cause was missing semi at end of last parmdecl. 2561: 2562: * parse.y: Add missing semicolons in actions. 2563: (yylex): Don't use yylloc. 2564: 2565: Sun Jun 5 16:14:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2566: 2567: * typecheck.c (build_array_ref): Check arg types here, to make 2568: error message more accurate (not about "addition"). 2569: 2570: Thu Jun 2 02:41:40 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu) 2571: 2572: * cccp.c (collect_expansion): `#' isn't special if -traditional. 2573: 2574: * dbxout.c (dbxout_parms): Don't output a regparm symbol 2575: unless the parm got a hard reg assigned. 2576: 2577: * tm-encore.h (ASM_OUTPUT_DOUBLE): Use 0f... not 0d... 2578: 2579: * tm-vax.h (CHECK_FLOAT_VALUE): Define this. 2580: 2581: Wed Jun 1 17:13:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2582: 2583: * expr.c (expand_call): Have sequence points between args. 2584: 2585: Tue May 31 00:27:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2586: 2587: * expmed.c (store_fixed_bit_field): Avoid shifting by 32. 2588: * cse.c (fold_rtx): 2589: * symout.c (subrange_p): likewise. 2590: 2591: * local-alloc.c (block_alloc): If operands 1 and 2 commute, 2592: try tying output to operand 2 if operand 1 won't do. 2593: 2594: * toplev.c (compile_file): Pass main_input_file to symout_init. 2595: 2596: * tree.c (build_real, build_real_from_int_cst): 2597: Call CHECK_FLOAT_VALUE if it's defined, to report out-of-range values. 2598: 2599: * tree.c (build_real, build_real_from_int_cst): New 1st arg TYPE. 2600: * parse.y (yylex): Pass this arg; requires parsing suffixes first. 2601: * fold-const.c (fold, combine, fold_convert): Pass this arg. 2602: Handling of float binops in `combine' simplified. 2603: 2604: * tm-encore.h (CPP_PREDEFINES): Remove -Dencore since CC lacks it. 2605: 2606: * final.c (output_source_line): Let ASM_OUTPUT_SOURCE_LINE 2607: be used for SDB also. 2608: 2609: Mon May 30 00:21:15 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2610: 2611: * cse.c (insert): Was inserting in wrong place in list. 2612: (exp_equiv_p): Was failing to check validity when x == y. 2613: 2614: * tree.c (build_pointer_type): Handle saveable_obstack 2615: like current_obstack. 2616: 2617: * decl.c (finish_decl): Error in test for zero-size array warning. 2618: 2619: * reload.c (find_equiv_reg): New arg MODE specifies mode in which 2620: an equivalent value is needed. Equivalence must be good in that mode. 2621: In addition, notice overlap with multiword register modes. 2622: Simplify, knowing that registers have already been renumbered. 2623: It was invalidating memory-goals too easily; setting a reg 2624: only invalidates memory-goal if its address varies. 2625: * reload.c, reload1.c, jump.c: Calls pass the new argument. 2626: 2627: * cccp.c: For correct ANSI, must reject `$' in identifiers. 2628: (dollars_in_ident): Variable says whether to allow them. 2629: (rescan): Handle `$' as randomchar if that's 0. 2630: (main): dollars_in_ident is set to 0 by -$, to 1 by -traditional. 2631: (rescan, do_define): Delete former pedantic warnings for `$'. 2632: (initialize_char_syntax, initialize_builtins): Inits split to two 2633: functions; former is called after options are scanned 2634: so `$' is in is_idchar conditionally. 2635: * gcc.c: For -ansi, pass -$ to cccp. 2636: * toplev.c, flags.h: Define dollars_in_ident. 2637: * parse.y (yylex): Treat $ as punctuation unless dollars_in_ident. 2638: Delete old pedantic warning about $. 2639: * tm-vms.h: Define DOLLARS_IN_IDENTIFIERS as 1. 2640: 2641: * cccp.c (rescan): Preprocessing numbers can have signs, after `e'. 2642: 2643: * integrate.c (expand_inline_function): Abort, don't return failure, 2644: if max_regno is too low. I believe this can't happen. 2645: 2646: * typecheck.c (build_binary_op_nodefault): 2647: For ordered comparisons, no pedantic warning about void *. 2648: For MAX, MIN, ditto, and also don't allow pointer vs 0. 2649: 2650: * typecheck.c (build_unary_op): Don't allow pointer for +. 2651: 2652: * typecheck.c (convert_for_assignment): 2653: Add missing warning for case of unrelated pointer types. 2654: Change criteria for new ANSI C draft. 2655: 2656: * optabs.c (expand_binop): Don't set unused target_is_not_an_operand. 2657: 2658: * fold-const.c (fold_convert): Don't set unused inprec, outprec. 2659: 2660: * emit-rtl.c, parse.y: Delete unused var. 2661: 2662: * stor-layout.c (add_vc_sizes): Unused function deleted. 2663: * loop.c (constant_high_bytes): #if 0 this unused function. 2664: 2665: * gcc.c (fatal): Add missing arg to delete_temp_files. 2666: 2667: * cccp.c (dump_defn_1): Add missing arg to skip_quoted_string. 2668: 2669: * reload.c (find_reloads): If constraints don't fit in an `asm', 2670: print error instead of aborting. 2671: 2672: * regclass.c (reg_class_record): Ignore `&' in constraint. 2673: 2674: Sun May 29 00:20:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2675: 2676: * Makefile: Run ranlib only if /usr/bin/ranlib exists. 2677: Add comment saying what to do on system V. 2678: 2679: * tree.c (suspend_momentary): Switch to the saveable_obstack 2680: for the sake of inline functions. 2681: 2682: * flags.h (enum debugger): New enum for write_symbols. 2683: * toplev.c, varasm.c, final.c: Use the enum constants where appro. 2684: Add calls to sdbout paralleling the calls to dbxout; 2685: put each in the appropriate conditional {SDB,DBX}_DEBUGGING_INFO. 2686: 2687: * toplev.c (main): Delete -noreg option; it's now the default. 2688: Make -O an alias for -opt. Rename -g to -gg. -g is alias for -G. 2689: Accept and ignore -Wtrigraphs. 2690: * gcc.c: Simplify the specs. 2691: 2692: * toplev.c (compile_file), tm-*.h: 2693: ASM_FILE_START is now a statement, not just a string to be output. 2694: Output it *after* determining the real source file name. 2695: 2696: * fold-const.c (fold): Simplify x >= CST to x > CST-1 (CST positive). 2697: To simplify this, canonicalize relationals to put constat last. 2698: 2699: * decl.c (duplicate_decls): Make a 2nd errmsg to show previous decl. 2700: 2701: * cccp.c (file_size_and_mode): Delete temporary VMS bootstrap patch. 2702: 2703: * tm-att386.h: New file. 2704: 2705: * decl.c (pushdecl): Warn if a local `extern' decl precedes 2706: a file-scope `static' decl. 2707: 2708: * expr.c (expand_call): No warning for failure to inline. 2709: 2710: * expmed.c (extract_bit_field): copy operand 1 of extv or extzv 2711: into register if memory isn't allowed. 2712: 2713: Sat May 28 02:10:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu) 2714: 2715: * gnulib.c, Makefile: Delete va_end. 2716: 2717: * final.c, symout.c: Check DBX_DEBUGGING_INFO, not NO_DBX_FORMAT. 2718: 2719: * genemit.c (gen_expand): Notice a CALL inside a PARALLEL. 2720: 2721: * regclass.c (init_reg_sets_1): Part of init_reg_set is put in this 2722: new fn which is called after options are scanned. 2723: Now CONDITIONAL_REGISTER_USAGE can depend on the options. 2724: (fix_register): Just alter the data that init_reg_sets_1 will look at. 2725: 2726: * reload1.c (reload): Don't complain if two different but tieable 2727: modes require groups of the same regclass (assuming same size group). 2728: 2729: * cccp.c: Add 3rd arg to all `open' calls. 2730: 2731: * parse.y (check_newline): Typo prevented ignoring whitespace. 2732: 2733: * cccp.c (perror_with_name): fprintf had harmful extra arg. 2734: 2735: * cccp.c (main, trigraph_pcp): -Wtrigraphs means warn if any trigraphs. 2736: 2737: * emit-rtl.c (gen_sequence): If LEN is 1, avoid looking at PATTERN 2738: of something that doesn't have one. 2739: 2740: * reload1.c (alter_frame_pointer_addresses): frame pointer can 2741: occur by itself, not just inside a PLUS. 2742: (reload): Call eliminate_frame_pointer before reload_as_needed. 2743: Otherwise the latter can make reload insns that copy the frame ptr 2744: to a data reg, but 68k can't copy sp+const to a data reg. 2745: 2746: * decl.c (implicitly_declare): Always save the implicit decl 2747: permanently. Reuse an old one if it exists. 2748: * tree.c (resume_temporary_allocation): Used after `end_temporary...' 2749: to go back to temporary allocation. 2750: 2751: * stor-layout (layout_{type,decl}): Call variable_size. 2752: (variable_size): Turn a size into a SAVE_EXPR and either compute 2753: it right away or put it on a list to be computed later. 2754: (get_pending_sizes): Return that list and clear it out. 2755: * stmt.c (expand_start_function): Tell `variable_size' to compute 2756: sizes right away, and compute those saved on the list. 2757: (expand_end_function): Tell it to put them on a list. 2758: 2759: Fri May 27 00:02:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2760: 2761: * dbxout.c (dbxout_symbol): For local static var, use 'V', not 'v'. 2762: 2763: * gcc.c (main): Don't handle SIGHUP or SIGTERM if shell ignored it. 2764: 2765: * Makefile, gcc.c: Propagate Make var `libdir' to gcc search path. 2766: 2767: * expr.c (expand_expr): a PARM_DECL with no rtl can occur in size of 2768: `a' in `foo (a,i) int i; struct {int x[i];} a;', so report an error. 2769: 2770: * flow.c (insn_dead_p): insn that makes stack bigger is never dead. 2771: * combine.c (try_combine): Don't splice out stores into stack ptr. 2772: 2773: * reload.c (find_equiv_reg): Test given regno for OVERLAPPING_REGNO_P. 2774: 2775: * varasm.c (assemble_variable): Use saveable_obstack for allocation. 2776: 2777: Thu May 26 01:17:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2778: 2779: * integrate.c (save_for_inline): Clear unused slots in parmdecl_map. 2780: (There may be some non-parm regs below max_parm_regno.) 2781: * integrate.c (copy_for_inline): Don't crash if parmdecl_map elt is 0. 2782: 2783: * Don't fail to output a static inline function that was referenced 2784: via a local extern decl before its definition. 2785: * expr.c (expand_call): If need to mark a fcn decl addressable, 2786: mark the identifier addressable also. 2787: * typecheck.c (mark_addressable): If marking fcn addressable, 2788: mark the identifier as well. 2789: * decl.c (start_function): If identifier was marked addressable, 2790: propagate it to the function. 2791: 2792: * parse.y (yylex): Check for ERANGE after atof is called. 2793: (Sun doesn't report ERANGE.) 2794: 2795: * loop.c (may_trap_p): Any floating arithmetic may trap. 2796: 2797: Wed May 25 00:03:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2798: 2799: * parse.y: Delete `noalias'. 2800: (asm_operand): Don't allow this to be empty. 2801: (asm_operands): Do allow this to be empty. 2802: 2803: * reload.c (operands_match_p): Don't let REG and SUBREG match 2804: if the reg isn't a hard reg. 2805: No longer nec. to check reg_renumber, now that reload 2806: substitutes the hard regno. 2807: 2808: * reload1.c (reload): Counting existing spilled groups, 2809: check HARD_REGNO_MODE_OK so we don't get fooled by an odd-even pair. 2810: Spill entire need for new groups before spilling any solitary regs. 2811: Reg already counted against max_nongroups can't become part of a group. 2812: (new_spill_reg): Do bookkeeping associated with a new spill-reg. 2813: (n_spills): This var is now static, no longer passed as arg 2814: within the file. 2815: 2816: (reload_reg_class_lower): Handle all group-reloads before solitaries. 2817: (choose_reload_targets): therefore #if 0 the special code for 2818: finding solitary registers that aren't suitable for groups. 2819: But fix two bugs in it: braino deciding whether a reload 2820: is looking for 1 register (not a group). Use CLASS_MAX_NREGS. 2821: Also braino deciding whether a spill reg can be in a group. 2822: Did not fix bug that it fails to test HARD_REGNO_MODE_OK, 2823: so it might split up an even-odd pair. 2824: 2825: * vax.md: Special patterns for 8 and 16-bit fields, to make 2826: move-insns (like the ones for the 68k). 2827: 2828: * tree.c (convert_to_integer): Pass truncation down thru COND_EXPR 2829: as through a binary operator. 2830: 2831: * typecheck.c (build_cond_expr): If unpromoted operand types match, 2832: don't promote them--let containing expression promote (just once). 2833: 2834: Tue May 24 14:46:26 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu) 2835: 2836: * combine.c (subst): Simplify (subreg (sign_extend X) 0). 2837: 2838: * tm-hp9k320.h: Delete NO_DBX_FORMAT. 2839: * Most tm...h files: Define DBX_DEBUGGING_INFO. 2840: * dbxout.c: Change conditional to DBX_DEBUGGING_INFO. 2841: 2842: * integrate.c (expand_inline_function): If inline fcn was declared to 2843: return QI, but actually computes an SI, use SImode for INLINE_TARGET 2844: but actually return a QI. 2845: 2846: * varasm.c (force_const_mem): Failed to determine alignment bdry 2847: from machine mode. 2848: 2849: * jump.c (jump_optimize): Don't delete (move X Y) if X or Y is a 2850: PRESERVE_DEATH_INFO_REGNO_P register. 2851: 2852: * final.c (output_addr_const): In PLUS, output constant term last. 2853: 2854: * final.c (final): Before outputting an insn, do FINAL_PRESCAN_INSN. 2855: 2856: * final.c (next_block_index): No longer static. 2857: (final): Add SDB_DEBUGGING_INFO cases for outputing NOTEs 2858: for beginning and end of a block. 2859: (output_source_line): Add SDB_DEBUGGING_INFO case for line number. 2860: * varasm.c (assemble_function): Add code for SDB symbol output. 2861: 2862: * gnulib.c: Allow config to override INTIFY. 2863: New macro SFVALUE for data type to return a single-float in. 2864: 2865: * combine.c (remove_death): No longer `static'. 2866: 2867: * reload1. (choose_reload_targets): PRESERVE_DEATH_INFO_REGNO_P 2868: selects hard regs for which death info should be updated for final. 2869: 2870: * reload1.c (reload_as_needed): Let INSN_CLOBBERS_REGNO_P 2871: prevent inheritance of certain reloads. 2872: 2873: * reload.c (find_equiv_reg): Let OVERLAPPING_REGNO_P reject 2874: an equiv reg. Needed for funny float regs on 80387. 2875: 2876: * cccp.c (do_ident): Define #ident as a no-op if IDENT_DIRECTIVE. 2877: Warn if pedantic. 2878: (do_sccs): Warn if pedantic. 2879: 2880: * emit-rtl.c (restore_reg_data): Set cur_insn_uid--prevent duplicates. 2881: 1.1.1.9 root 2882: See file OChangeLog. 1.1 root 2883: 2884: Local Variables: 2885: mode: indented-text 2886: left-margin: 8 2887: fill-column: 76 2888: version-control: never 2889: End:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.