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