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