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