1 Wed Dec 21 02:46:34 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3 * Version 1.32 released.
5 * toplev.c (main): Vax pcc enforces goto-less programming
8 * stmt.c (fixup_memory_subreg): New arg INSN says where to emit insns.
9 (walk_fixup_memory_subreg): Likewise. All callers changed.
11 Tue Dec 20 01:26:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
13 * c-decl.c (start_function): Don't clear TREE_PERMANENT in fn decl.
14 Make the result decl a permanent node.
15 (finish_function): Don't clear DECL_RESULT in an inline function.
16 (duplicate_decls): Don't lose DECL_RESULT or DECL_SAVED_INSNS
17 or old decl, when defn is followed by redeclaration.
18 Likewise DECL_ARGUMENTS and DECL_RESULT_TYPE.
20 * stmt.c (expand_function_end): End any sequences left unterminated.
22 * cse.c (predecide_loop_entry): If "loop" has no label, do nothing.
24 * recog.c (asm_noperands): Now return -1 if not that kind of insn.
26 * combine.c (check_asm_operands): Calling changes not quite trivial.
27 * final.c (final): Likewise.
28 * reload.c (find_reloads): Likewise.
29 * recog.c (asm_noperands): Other changes:
30 Loop computing # of SETs in a PARALLEL was off by 1.
31 Validate all elts of any PARALLEL, to block invalid combinations.
33 * ns32k.md (andsi3, andhi3): Make new CONST_INTs; don't clobber old.
35 * integrate.c (copy_rtx_and_substitute): When looking in `parm_map',
36 if our mode mismatches parm's mode, use change_address to extract part.
37 On BYTES_BIG_ENDIAN machines, adjust the offset.
39 Mon Dec 19 23:50:14 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
41 * cexp.y ('/' and '%' ops): If divide by 0, print error, don't die.
43 Sun Dec 18 14:03:02 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
45 * toplev.c (main): Avoid shadowing I in inner block.
47 * flow.c (propagate_block): The insn at the end of a libcall
48 may be dead, but the libcall might still be needed if the
49 hard return reg is used later. Detect this case.
50 (libcall_dead_p): New fn used to check that the libcall is dead.
52 * output-m68k.c, tm-m68k.h (standard_sun_fpa_constant_p): Fn renamed.
54 Sat Dec 17 13:23:51 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
56 * stmt.c (expand_end_bindings): error_with_file_and_line => ..._decl.
58 * combine.o (try_combine): Accept combination making a valid
60 (check_asm_operands): Recognize asm with operands that are valid.
62 * loop.c (strength_reduce): Don't accept a reg as a giv
63 if the reg was made by loop-optimize.
65 * stmt.c (balance_case_nodes): A list of 3 always splits in middle.
67 Fri Dec 16 17:22:07 1988 Tiemann (rms at sugar-bombs.ai.mit.edu)
69 * sparc.md (fetch from constant address): Split into two patterns,
70 one fixed point and one floating.
71 (store at constant address): Handle remembered hi-half differently.
73 (fix_truncsfsi2): Use f1, not f0, as temp.
74 (fix_truncdfsi2): Don't clear CC_F1_IS_0.
76 * output-sparc.c (singlemove_string): Changed handling of case
77 where op1 is not memory and op0 has varying address.
78 (output_fp_move_double): Avoid reloading high half address
79 in the ldd and std cases with constant address.
80 (make_f0_contain_0): Handle f0 and f1 individually.
82 * tm-sparc.h (GO_IF_LEGITIMATE_ADDRESS): CONST is now illegitimate.
84 * rtl.c (note_stores): Pass entire SET rtx, not flag, as 2nd arg to FN.
85 * local-alloc.c (reg_is_set): New type for 2nd arg.
87 * Makefile: Comment out cc1plus, since not ready for release.
89 Thu Dec 15 16:39:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
91 * local-alloc.c (reg_is_set): If a hard reg is clobbered, make it free
92 before and after the insn.
93 * stupid.c (stupid_mark_refs): Likewise.
94 * global-alloc.c (global_conflicts): Likewise.
95 Use note_stores to call mark_reg_{store,clobber}.
96 (mark_reg_store): Changed calling conventions
97 All work done on set/clobbered regs is now done here.
99 (mark_reg_clobber): Similar fn, but ignore SETs and handle CLOBBERs.
100 (regs_set, n_regs_set): New static vars for comm. among the above.
102 * stmt.c (expand_asm_operands): call protect_from_queue on operands.
103 This requires preexpanding the outputs into a vector of rtx's.
105 * Makefile (install): cd to $(libdir) before ranlib.
107 * c-typeck.c (c_expand_asm_operands): emit_queue at the end.
109 * reload.c (find_reloads): Count # alternatives properly for
110 an asm insn, and check that all operands correspond.
112 * loop.c (verify_loop): Reject loops containg setjmps.
113 * cse.c (cse_main): Don't cse across a call to setjmp.
115 * expr.c (expand_expr): Permit any non0 DECL_RTL for a VAR_DECL.
117 * stmt.c (balance_case_nodes): Count ranges double when balancing.
119 Wed Dec 14 13:50:45 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
121 * final.c (output_addr_const): Output just `-', not `+-'.
123 * make-cc1.com: Update filenames changed to `c-'.
124 * make-cccp.com: Pass needed -D options when compiling cccp.c.
125 Use /nomap when linking.
127 * loop.c (strength_reduce): Paraphrase setting NEW_REG, for Iris cc.
129 * output-m68k.c (output_move_const_single): %'s must be doubled twice.
131 * loop.c (record_giv): A giv can be replaceable if its uses are
132 all in the same basic block as its sole setting.
133 (last_use_this_basic_block): Subroutine to test that.
135 Tue Dec 13 13:41:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
137 * expr.c (do_store_flag): Allow for COMPARISON to be a const_int.
139 * c-decl.c (pushdecl): Warn if type mismatch with another external decl
142 * fixincludes: Fix typo in msg of deleting unchanged file.
144 * Makefile (insn-*): Use two-step rules with a separate time-stamp file
145 to avoid rerunning gen* unless md has changed again.
147 Mon Dec 12 13:32:05 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
149 * i386.md (tstsf, tstdf, cmpsf, cmpdf): Use fnstsw, not fstsw. Faster.
151 * tm-vax.h (ASM_OUTPUT_REG_POP): Use correct asm syntax for pop insn.
153 * combine.c (subst): Handle (subreg (mem)) by making a changed mem.
154 This avoids producing any (subreg (mem))s except in the special
155 case they are supposed to be made here.
156 Also set undo_storage in a couple of cases that forgot to.
158 * reload.c (push_reload): When handling (SUBREG (MEM)) for IN,
159 if there is an OUT, make that a separate reload.
160 Return its number in `output_reloadnum'
161 (find_reloads): When pushing matching-reloads, note that the
162 two operands can have different reload-numbers.
164 * tm-3b1.h (ASM_OUTPUT_CASE_END): Test flag on TABLE, not its pattern.
165 (ASM_OUTPUT_CASE_LABEL): If /i flag set, don't output the dummy entry
166 since the fetcher-insn will not be off by 2 in this case.
167 * m68k.md (casesi_2 recognizer): For 3b1 syntax, compensate for that.
169 Sun Dec 11 12:51:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
171 * genrecog.c (try_merge_2): No longer put all explicit decompositions
172 before all predicates. Patterns are now tested in the order written.
173 * vax.md: Move the push-or-move-address patterns to the end.
174 * m68k.md: Move load-address pattern to end.
175 Rearrange the special-case movsi patterns.
176 * ns32k.md: Move special load-reg-17 pattern before movsi.
177 * i386.md: Move the QI and DI push patterns to logical places.
178 This should not actually change anything.
180 * stmt.c: Add Andy Hitchins's binary-tree case statement code.
181 (struct case_stmt): case_list field is now a case_node chain.
182 Replace has_default field with default_label field.
183 (pushcase, pushcase_range): Build case_list in its new type,
185 (expand_end_case): Use case_list in its new type.
186 Count a range of > 1 as two cases, when choosing strategy.
187 (group_case_nodes, balance_case_nodes): New fns, rearrange case_list.
188 (node_has_{low,high}_bound, node_is_bounded): New fns test
189 relationships of values of various case_list tree nodes.
190 (emit_jump_if_reachable): New fn.
191 (emit_case_nodes): Emit compares and jumps based on tree of case_list.
193 * cccp.c (finclude): Handle nonordinary files (stat doesn't give size).
195 * tm-3b1.h (PRINT_OPERAND_ADDRESS): Handle case of breg and no ireg.
197 Sat Dec 10 16:30:32 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
199 * sparc.md (movstrsi): Separate define_expand and define_insn;
200 clobber some pseudos to get temp regs to use in the output.
201 * output-sparc.c (output_block_move): Use those temp regs,
202 guaranteed to be free.
204 * sparc.md (andcc patterns for bitfields from memory):
205 Test immed. arg for being in range.
206 (load DFmode constant): Use %m for output in one case.
207 * output-sparc.c (singlemove_string, output_move_double): Likewise.
209 * output-sparc.c (singlemove_string): New case for mem-to-mem move.
211 Fri Dec 9 11:42:15 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
213 * stupid.c (stupid_mark_refs): for CLOBBER of a pseudo,
214 it is born just before this insn and dies just after.
216 * tm-vax.h (NOTICE_UPDATE_CC): For aob, sob insns, forget the cc's.
218 * basic-block.h (REG_BLOCK_UNKNOWN, REG_BLOCK_GLOBAL): Move defn here.
219 * local-alloc.c: Use them.
221 * c-decl.c (store_parm_decls): Additional explanatory message
222 for some prototype mismatches.
224 * gnulib.c (SItype): New macro used instead of `int'
225 for SImode operands and values. Definition is `long int'.
227 Thu Dec 8 18:45:48 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
229 * reload.c (operands_match_p): Move the label `slow' so that
230 it doesn't cause a REG and a SUBREG to be compared wrong.
232 * toplev.c (compile_file): Output a label `gcc_compiled.' for GDB.
233 If new macro ASM_IDENTIFY_GCC is defined, run that instead.
234 * tm-3b1.h (ASM_IDENTIFY_GCC): Define this as no-op.
236 Wed Dec 7 12:20:42 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
238 * i386.md (adddf3): Typo: paren was in a constraint.
240 * c-decl.c (grokparms): Avoid duplicate msgs for incomplete type ptrs.
242 * gnulib.c: Rename all fns to start with `__'.
243 * optabs.c, expr.c: Rename all references.
245 * gnulib.c (__cmpdi2, __ucmpdi2): New fns.
246 * optabs.c (emit_cmp_insn): Use them.
248 * Makefile (stage*): Ignore errors on the main `mv' (for cc1plus).
249 Run ranlib if we have to copy gnulib.
251 * expmed.c (expand_divmod): Split `label' into several local vars.
253 * jump.c (jump_back_p): Do nothing unless cc's were set from integers.
255 Tue Dec 6 12:00:21 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
257 * c-parse.y (extend_token_buffer): Use xrealloc, not realloc.
259 * integrate.c (output_inline_function): fix args of expand_function_end
260 (expand_inline_function): Add missing arg to expand_end_bindings.
262 * cse.c (cse_insn): Add missing MODE arg to canon_hash.
264 * reload1.c (reload_as_needed): Del. extra arg of choose_reload_targets
265 (reload): Add missing MODE arg to immediate_operand.
267 * expmed.c (expand_mult): Delete extra arg to expand_unop.
269 * c-typeck.c (default_conversion):
270 Add missing NOCONVERT arg to build_unary_op.
272 * c-decl.c (duplicate_decls, finish_struct): Add missing arg
273 KNOWN_ALIGMENT to layout_decl.
274 * stor-layout.c (layout_record): Likewise.
275 * varasm.c (assemble_variable): Likewise.
277 * dbxout.c (dbxout_init): Add missing LOCAL arg to dbxout_symbol.
279 * expr.c (clear_storage): Remove excess arg to emit_move_insn.
281 * loop.c (consec_sets_invariant_p): Add parens in hairy if-condition.
283 * fold-const.c (fold): Typo, missing `case'.
285 * cccp.c (main): Typo handling `-I-' option.
287 * tm-i386.h (NO_FUNCTION_CSE): Define this; cse is said to slow
288 things down with less than 7 calls.
290 * stmt.c (fixup_var_refs_insn): When scanning the reg-notes,
291 don't touch other insns they point at.
293 * expr.c (do_jump): Use invert_exp, not reverse_condition,
294 to invert sense of a jump.
295 * jump.c reverse_condition now static, invert_exp now global.
297 Mon Dec 5 10:51:39 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
299 * tm-sun386.h (ASM_FILE_START): In the .file arg, exclude directories.
301 * stmt.c (expand_expr_stmt): If -W, warn if stmt has no side effect.
303 * cccp.c (monthnames): Capitalize each name.
305 * rtl.def: New code MATCH_OPERATOR.
306 * genconfig.c (walk_insn_part): Handle it.
307 * genextract.c (walk_rtx): Handle it.
308 * genpeep.c (match_rtx): Handle it.
309 * genrecog.c (add_to_sequence): Handle it.
310 * genemit.c (max_operand_1, gen_exp, gen_expand): Handle it.
311 * genoutput.c (scan_operands): Handle it.
312 (insn_n_alternatives): New array in the output.
313 (struct data): New slots n_alternatives and op_n_alternatives.
314 (scan_operands, gen_insn, gen_peephole):
315 Record op_n_alternatives for each operand.
316 (output_epilogue): Verify that all operands have same # of alternatives
317 Also output insn_n_alternatives.
319 * reload.c (find_reloads): use insn_n_alternatives to control
320 the loop over all alternatives.
321 An empty constraint or empty alternative in a constraint
323 * recog.c (constrain_operands): Likewise.
325 * c-decl.c (lang_decode_option): For each -f option, recognize a form
326 with `no-' and a form without, as contraries.
328 * toplev.c (main): Decode -f options using a table
329 so that each option automatically has a `no-' variant.
331 * combine.c (try_combine): Give up if I1 or I2 follows a compare insn.
333 Sun Dec 4 12:00:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
335 * varasm.c (data_section): If flag_shared, use SHARED_SECTION_ASM_OP
338 * cccp.c (include_default): Add /usr/local/include.
340 * Makefile (install): Install the makefile.
342 * varasm.c (assemble_external): New fn to declare an external.
343 (assemble_variable): Output nothing for externals.
344 * c-parse.y (primary => identifier): Call assemble_variable on 1st use.
346 * toplev.c (main): Print version info on stderr, not stdout.
347 * tm-*.h (TARGET_VERSION): Likewise.
349 * tm-isi68.h, tm-news800.h: Rename __HAVE_FPU__ to __HAVE_68881__.
351 * sparc.md (seq, etc): Entire page rewritten by Tiemann
352 to avoid incorrect use of PARALLEL.
353 * output-sparc.c (gen_scc_insn): Corresponding changes.
355 Sat Dec 3 00:03:19 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
357 * gcc.c (do_spec_1): %P is an ANSIfied form of %p:
358 put __ at beg and end of each predefined macro name.
360 * tm-sun3.h (CPP_SPEC): Don't define -Dmc68010, etc., if -ansi.
361 * tm-sun2.h (CPP_SPEC): Likewise.
363 * c-decl.c (shadow_tag): Don't complain if declare a new tag
364 at top level, or if redeclare a tag.
366 * c-decl.c (grokparms): Warn if parm points to incomplete type.
367 (We already err if its own type is incomplete.)
369 * stmt.c (fixup_var_refs_insns): Fix any (SUBREG (MEM)) in REG_NOTES.
370 (walk_fixup_memory_subreg): New subroutine used for this.
372 * integrate.c (copy_rtx_and_substitute): Handle MEM refs to the middle
373 of a stack-parm--at least in the case of reading the parm.
375 * rtl.c (rtx_equal_p): REG_FUNCTION_VALUE_P is significant
376 only until end of reload pass.
377 * toplev.c (rest_of_compilation):
378 Control that by setting new var rtx_equal_function_value_matters.
380 * c-decl.c (init_decl_processing): Don't declare the builtins
381 that aren't really implemented.
383 * output-sparc.c (output_move_double): "in structure" implies
384 8-byte alignment only for DFmode, not for DImode.
386 * final.c (output_operand_lossage): Cleaner text for error msg.
387 No longer need to write text into .s file, now that linenum is correct.
389 * c-decl.c (pushdecl): -traditional stops warning
390 about "declared extern, later static".
392 * c-typeck.c (build_indirect_ref): Don't handle flag_volatile here.
393 * expr.c (expand_expr): Handle it here, in INDIRECT_REF case.
394 This prevents -fvolatile from causing additional warnings.
396 * output-sparc.c (output_load_address): Allow REG+REG for operands[3].
398 * m68k.md (movsi): If we output the label LIn,
399 set the RTL_INTEGRATED flag in the switch table's pattern.
400 * tm-3b1.h (ASM_OUTPUT_CASE_END): Define LD%n only if LI%n was output.
402 * i386.md (push-and-add pattern): Comment it out.
403 It's said to result in slower code.
405 * i386.md (tstqi, tsthi, tstsi): Output real `test' insn if op is reg.
407 * i386.md (push for DI): Allow `oiF' for 2nd operand.
409 Fri Dec 2 13:57:35 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
411 * i386.md (movdi): Allow F constraint for 2nd operand.
413 * i386.md (push for QI): define pattern to push a QImode
414 which really uses pushw and therefore really pushes a halfword.
415 * tm-i386.h (PUSH_ROUNDING): Round up to multiple of 2.
417 * gcc.c (do_spec_1): Handle %e, which means report an error.
418 Use it to prohibit -pg with -fomit-frame-pointer.
420 * tree.h (DECL_RESULT_TYPE): New field in FUNCTION_DECL holds the type
421 of the widened returned value (not nec. the declared return type).
422 * c-decl.c (start_function): Set DECL_RESULT_TYPE.
423 * integrate.c (expan_inline_function): Use that, not DECL_RESULT.
425 Thu Dec 1 16:44:10 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
427 * cse.c (fold_rtx): When reordering constant args, insist on
428 manifest constants; regs with known contents won't do.
430 * i386.md (mulsi3): Don't use rtx_equal_p to compare regs.
432 * expr.c (move_by_pieces_1): Don't call change_address
433 if address is autoinc, since that may not be memory_address_p.
434 Subroutine-macro add_offset deleted.
436 * optabs.c (bcc_gen_fctn, setcc_gen_fctn): Moved to this file.
437 (init_optabs): Init those tables here.
438 * expr.c (init_conditions): Not here.
440 * stmt.c (assign_stack_local): Make a list of all stack slots.
441 * emit-rtl.c (unshare_all_rtl): Unshare all the stack slots.
443 * final.c (final): Handle BARRIER with ASM_OUTPUT_ALIGN_CODE.
444 * tm-ns32k.h (ASM_OUTPUT_ALIGN_CODE): Align to 4-byte bdry.
445 ?? * tm-sequent.h (ASM_OUTPUT_ALIGN_CODE): Override: just 2-byte bdry.
447 * tm-m68k.h (PRINT_OPERAND): use new macros to print floats.
448 (ASM_OUTPUT_FLOAT_OPERAND): New macro.
449 (ASM_OUTPUT_DOUBLE_OPERAND): New macro.
450 * tm-sun3.h: Override those macros, to check for infinities.
452 Wed Nov 30 06:35:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
454 * tm-ns32k.h (FUNCTION_{PRO,EPI}LOGUE): if no frame pointer,
455 do explicit push or pop insns.
457 * tm-genix.h (PRINT_OPERAND): Fix typo `file'.
458 Extedn decl for paren_base_reg_printed.
459 (MAIN_FUNCTION_PROLOGUE): Deleted.
460 (ASM_OUTPUT_EXTERNAL): Defined.
462 * c-parse.y (yyerror): Better error msg for unprintable char in token.
463 (primary => identifier): Set TREE_USED if implicit decl made.
465 * Makefile (cleanlinks): New target.
466 (INSTALL): New variable, has program used for installing files in sys.
468 * output-ns32k.c (print_operand_address): If addr is sum of 2 consts,
469 output ADDR first, then OFFSET.
471 * ns32k.md (addsi3): Allow adding const+reg with result in another reg.
473 * tm-seq386.h (FUNCTION_PROFILER): Provide overriding definition.
475 * tm-hp9k320.h: Alternate ASM_SPEC if using GAS.
476 Define STANDARD_STARTFILE_PREFIX if using GAS.
477 (FUNCTION_PROLOGUE): on 68020 for big stack frame use link.l.
479 * gcc.c (STANDARD_STARTFILE_PREFIX): New cust. macro replaces `/lib/'.
481 * va-sparc.h, va-spur.h: Prefix non-interface identifiers with `__'.
483 * optabs.c (init_optabs): Don't set up libcalls for ftrunc_optab
484 because (1) they aren't supported and (2) they are never used.
486 * gnulib.c (__builtin_saveregs): If not sparc, define the symbol anyway
487 to avoid a warning in ranlib.
489 Mon Nov 28 01:46:12 1988 Michael Tiemann (mdt at choctaw)
491 * c-parse.y (yylex): Typo, `=' for `==' making wide strings.
493 * sparc.md (various places): make sure that all patterns which store
494 can store using const0_rtx (i.e., make all operands to `st' %rx).
496 * output-sparc.c (various places): changed dispatches on SYMBOL_REF
497 to dispatches on CONSTANT_ADDRESS_P since we now recognize any CONST
498 (and not just SYMBOL_REFs). Don't recognize special case CONST for
499 output_block_move. Compiler doesn't have enough information to use
502 * stmt.c (expand_fixup): If the control stack is nested within the
503 nesting stack, then no fixup is needed. Otherwise, compiler must
504 check for possible fixups between the current nesting stack and the
505 nesting stack that immediately contains the control stack.
507 * stmt.c (expand_function_start): functions which are nested use
508 DECL_CONTEXT. For these functions, test that their DECL_CONTEXT is
511 * tree.h: declare `build_offset_type'.
513 Sun Nov 27 10:34:53 1988 Richard Stallman (mdt at yahi)
515 * output-sparc.c (output_move_double):
516 Don't try to use ldd/std if OP1 is a constant.
517 * sparc.md (movdi): Allow immediate args moved into general regs.
519 * c-decl.c (grokparms): Reject incomplete parm types even if just
520 declarating, not defining. Change types to error_mark_node
521 in both the PARM_DECL and the list of types.
523 * dbxout.c (dbxout_type): It's not a bug if a RECORD_TYPE
524 has a typedef as its TYPE_NAME. That happens in C++.
526 * Make each `asm' with operands record its source file/line
527 with reg-notes. It doesn't work to emit a special note before the insn
528 because the insn can be moved by loop_optimize.
529 * stmt.c (expand_asm_operands): New args FILENAME, LINE.
530 Record them in the insn, in reg notes.
531 * c-typeck.c (c_expand_asm_operands): New args, passed along.
532 * c-parse.y: Pass those args.
533 (maybe_type_qual): Line #s for asm stmts emitted like all others.
534 * rtl.h (REG_ASM_FILE, REG_ASM_LINE): New kinds of reg notes.
535 * toplev.c (error_for_asm): Get the info from those notes.
537 * reload.c (find_reloads): Don't clear BADOP for a reg letter
538 if the alternative ultimately doesn't allow any regs.
540 * reload.c (find_reloads): If an `asm' insn gets an error,
541 change it to a USE to avoid duplicate error msgs or later trouble.
543 * reload.c (find_reloads_address): Reloading a constant address,
544 specify Pmode as the mode for push_reloads, in case of CONST_INT.
546 * expr.c (emit_push_insn): Fix calc. of space needed when PARTIAL > 0.
547 Both scalar case and BLKmode case needed fixing.
549 * sparc.md (load/store constant address):
550 Moving DF from mem to cpu regs, don't go via %f0.
551 Don't use std/ltd if alignment is wrong or uncertain.
553 Sun Nov 27 10:34:53 1988 Michael Tiemann (mdt at yahi)
555 * reload.c (push_reload): Allow VOIDmode for INMODE, OUTMODE;
556 default the mode from the operand values.
558 * sparc.md: remove patterns which generate annulled branch insns.
559 They are correct, but those insns confuse GDB.
561 * tm-sparc.h (GO_IF_LEGITIMATE_ADDRESS):
562 Treat any constant address like a SYMBOL_REF.
563 * sparc.md: Check for CONSTANT_ADDRESS_P rather than SYMBOL_REF.
565 * sparc.md: Peepholes now accept SYMBOL_REF addresses.
566 The output routine can now split them properly even as delay insns.
568 * print-tree.c (dump): added entry for METHOD_TYPE and
569 METHOD_CALL_EXPR. Also added entry for WITH_CLEANUP_EXPR. Suggest
570 that we make first_rtl of WITH_CLEANUP_EXPR 2 instead of 1.
572 Sun Nov 27 00:15:33 1988 Michael Tiemann (mdt at yahi)
574 * print-tree.c (dump): added entry for OP_IDENTIFIER.
576 * tree.c (build_op_identifier): new function. Needed because
577 `build_nt' expects an "e" node, but OP_IDENTIFIER is an "x" node.
579 * store_layout.c (layout_record): use DECL_FIELD_CONTEXT instead of
582 * tree.h (DECL_FIELD_CONTEXT): new macro. Points to the type that a
583 FIELD_DECL is a member of. For C, this is just DECL_CONTEXT.
585 * tree.c (build_method_type): typo used "==" to assign basetype to
586 TYPE_METHOD_BASETYPE with predictably poor results.
588 Sat Nov 26 22:55:32 1988 Michael Tiemann (mdt at yahi)
590 * output-sparc.c (output_sized_memop): new function to output a load
591 or store insn based on the size of the operand loaded or stored.
592 (make_f0_contain_0): use info from condition codes to decide whether
593 the register %f0 needs to have 0 loaded from memory or not in order
595 (gen_scc_insn): new function used by define_expands for
596 set-on-condition-code insns.
597 (output_delay_insn): now knows how to handle load and store
598 scheduling when the load or store operation takes two insns instead
599 of one. The rewrite is now understands is this:
601 sethi %hi(address),%g1 -> sethi %hi(address),%g1
602 ld/st [%g1+%lo(address)],%reg -> b target
603 b target -> ld/st [%g1+%lo(address)],%reg
606 * jump.c (reverse_condition): make this function publicly visible,
607 now needed in expr.c.
609 * output-sparc.c (reg_or_0_operand): new function, returns nonzero
610 if operand is const0_rtx or a register of specified mode.
613 * expr.c, stmt.c: fixed random syntax errors.
615 * tree.c (build_method_type): now corresponds to defn in tree.def
616 expr.c (expand_call): removed code to get FUNCTION_TYPE from
617 METHOD_TYPE. This should probably be looked at harder.
619 * tree.def (METHOD_TYPE): Changed definition so that TREE_TYPE (m)
620 (where m is a METHOD_TYPE) is the type of the return value of the
621 method, not the FUNCTION_TYPE from which the METHOD_TYPE is derived.
623 * Makefile: Changed target of BINDIR from /usr/local to
626 Sat Nov 26 16:29:22 1988 Michael Tiemann (mdt at chickasaw)
628 * tm-sparc.h (GO_IF_LEGITIMATE_ADDRESS): Allow any SYMBOL_REF.
629 (NOTICE_UPDATE_CC): Remember high half of %g1 as a "condition code"
630 to avoid reloading it if it does not change.
631 (NOTICE_UPDATE_CC): Test SET_SRC, not SET_DEST, for a CALL rtx.
632 (PRINT_OPERAND): New code-letter `m' says output operand as an address.
634 * toplev.c (flag_syntax_only): New flag variable.
637 * toplev.c (error_with_decl): Extra arg, passed to fprintf.
638 (warning_with_decl): Likewise.
640 * tree.c (build_offset_type): New function.
642 * tree.h (TYPE_METHOD_BASETYPE): New name for TYPE_METHOD_CLASS.
643 Uses in tree.c and... renamed.
645 * combine.c (SUBST_INT): New macro, for replacing an int.
646 (subst): Collapse nested SUBREGs even if SUBREG_WORDs are not 0.
648 * expr.c (bcc_gen_fctn, setcc_gen_fctn): new tables,
649 initialized in init_comparisons.
650 Used in expand_expr, do_jump, do_store_flag
651 instead of explicit construction of a jump.
653 * expr.c (save_noncopied_parts): New function.
655 * expr.c (expand_expr):
656 ARRAY_REF: Special case for array of constants.
657 WITH_CLEANUP_EXPR: Handle it.
658 INIT_EXPR: Case deleted.
659 MODIFY_EXPR: Use save_noncopied_parts.
661 * expr.c (expand_call): blkmode_parms_forced can be >0
662 even when no stack arg space otherwise needed.
663 Don't use a hard reg as a target if there are cleanups.
665 * stmt.c (struct block): New elt. outer_cleanups.
666 (struct case): New elt. num_ranges.
667 (struct fixup): Changed meaning of cleanup_list_list.
668 Changes in expand_fixup, fixup_gotos.
669 (expand_fixup): Detect some internal forward-jumps
670 that need no fixups--for speed.
671 (fixup_gotos): New arg THISBLOCK.
672 (expand_expr_stmt): Handle flag_syntax_only.
673 (use_variable): No longer static.
674 (use_variable_after): new fn.
675 (expand_end_bindings): handle cleanups like a stack level.
676 (expand_decl): Handle a cleanup with no decl.
677 (move_cleanups_up): Preserve relative order of cleanups.
678 (expand_anon_union_decl): New fn.
679 (pushcase): New fast clause if no ranges yet.
680 (pushcase_range): Turned on.
681 (expand_function_start): New temp var `fntype'.
682 Set TREE_USED for a parm we are ignoring.
683 (expand_function_end): Really use the `filename' arg.
684 Use use_variable_after for SAVE_EXPR regs.
686 * dbxout.c (dbxout_type): Handle OFFSET_TYPE.
688 * gnulib.c (__builtin_new, etc.): Support for C++.
690 * emit-rtl.c (next_insn, prev_insn): New fns.
692 Sat Nov 26 16:29:22 1988 Richard Stallman (mdt at chickasaw)
694 * tree.h (TREE_LANG_FLAG_[1234]): New attributes.
695 (TYPE_METHOD_BASETYPE): New name for TYPE_METHOD_CLASS.
696 (TYPE_OFFSET_BASETYPE): New macro.
697 (NUM_TREE_CODE): New macro.
698 (TYPE_NONCOPIED_PARTS): new field in a type-node.
700 * varasm.c (make_decl_rtl): Split out from assemble_variable.
701 (assemble_variable): No longer creates the rtl.
702 No longer handles policy of whether to output tentative decl yet.
703 (output_constant_def): Don't lose if wasn't temp allocation
704 when this was called.
705 (output_constant): Handle REFERENCE_EXPR.
707 * Makefile (BISONFLAGS): new variable.
708 (prefix): New variable, used in bindir and libdir.
709 (C_OBJS, CPLUS_OBJS): New vars, split off from OBJS.
710 (LIBFUNCS): C++ support functions added.
711 (CPLUS_TREE_H): New variable.
712 (cc1plus): New target.
713 (lang_c, lang_cplus): Combines all targets for one language.
714 (gplus.info): New target.
715 (cplus-*.o): New targets.
716 (realclean): Handle new C++ files and recent renamings.
717 (install, TAGS): Likewise.
719 * print-tree.c (prtypeinfo): Handle TREE_LANG_FLAG_[1-4].
721 * tm-sparc.h (ASM_OUTPUT_DOUBLE): Special case for infinity.
722 (ASM_OUTPUT_FLOAT): Likewise.
724 * gcc.c: Don't define __GNU__.
725 For .cc files, pass -+ to cpp, and don't handle -ansi.
726 Use cc1plus as name of compiler for .cc files.
728 * stor-layout.c (layout_type): abort if given a LANG_TYPE node.
729 (layout_union): Complain if union has basetypes or static members.
730 (layout_record): Handle anonymous union members.
732 * tree.def (LANG_TYPE): New tree code for language-specific purposes.
733 (WITH_CLEANUP_EXPR): New tree code for expressions whose values
734 need to be cleaned up when they are deallocated.
735 (OP_IDENTIFIER): New tree code for certain C++ purposes.
737 * toplev.c (rest_of_decl_compilation): Call make_var_rtl
738 before assemble_variable.
740 Wed Nov 23 02:15:45 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
742 * xm-sunos4.h: Rename included config files to xm-*.
745 * fixincludes: Avoid altering args to names other than CTRL
747 If a file isn't actually changed, delete the copy.
749 Mon Nov 21 12:48:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
751 * loop.c (move_movables): Never move a reg w/ # > old_max_reg.
752 (strength_reduce): For nonreplaceable giv, put insn to load it
753 after the insn that used to compute it, in case the latter
754 is the last of a libcall sequence.
756 * stmt.c (expand_function_end): If returning BLKmode, also copy
757 address where value is returned to the place that GDB will
758 expect to see it after the return.
760 * c-parse.y (readescape): Warn about hex constant out of range
761 for a target integer.
762 (yylex): Warn about escape out of range for non-wide char or string.
763 Use a buffer of ints to read a wide string.
765 Sat Nov 19 02:18:02 1988 Richard Stallman (rms at apple-gunkies.ai.mit.edu)
767 * Version 1.31 released.
769 * sparc.md: Change `K' to `I' in all constraints.
771 * loop.c (gen_iv_mult): Handle TARGET==0.
773 * c-decl.c (duplicate_decls): Undo last change.
775 * c-decl.c (pushdecl): Instead of that change,
776 save old-decl's file/line before calling duplicate_decls,
777 and pass them later to warning_with_file_and_line.
778 * toplev.c (warning_with_file_and_line): New fn.
780 Fri Nov 18 13:07:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
782 * stmt.c (fixup_var_refs_1): (SUBREG (MEM)) was slipping through
783 in case where a SET was writing in the variable being fixed.
785 * recog.c (register_operand, nonmemory_operand, memory_operand):
786 Changes to handle new var reload_completed: 1 means that
787 (SUBREG (MEM)) now counts as a mem-ref, since alter_subreg
789 * toplev.c (rest_of_compilation): Set and clear reload_completed.
791 * sparc.md (call patterns): If TARGET_SUN_ASM, and address in reg,
792 output a jmpl rather than a call.
793 * tm-sun4os3.h: Like tm-sparc.h but turn on TARGET_SUN_ASM.
795 * reload.c (push_reloads): Reinstate handling of reg_equiv_constant.
797 Thu Nov 17 09:48:14 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
799 * reload1.c (constraint_accepts_reg_p): Name changed from
800 constraint_all_regs_p; new arg is reg we are concerned with,
801 and condition tested takes some advantage of that reg.
803 * gcc.c (main): Rename var `error' to `error_count' for name conflict.
805 * emit-rtl.c (emit_note): Output line #s even if no debug info wanted.
806 (emit_line_note): New fn, does what emit_note did.
807 (emit_line_note_force): New name for emit_note_force.
808 * stmt.c, c-parse.y: Call emit_line_note instead of emit_note.
810 * c-parse.y (maybe_type_qual): Call emit_note instead of emit_line_note
811 Now we can find the line # of every `asm' from the RTL.
812 * toplev.c (error_for_asm): New fn, gets line # by searching for NOTE.
813 * reload.c (find_reloads): Use error_for_asm.
814 * reload1.c (choose_reload_targets): Likewise.
815 * final.c (output_operand_lossage): Likewise.
816 Variable this_is_asm_operands is now current insn if it's nonzero.
818 * loop.c (move_movables): When a reg is moved, update regno_first_uid
819 and regno_last_uid; say life span includes entire loop.
820 * Decrement THRESHOLD per reg moved, not per insn moved.
822 Wed Nov 16 08:41:32 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
824 * gnulib.c (___builtin_saveregs): New fn, for sparc.
826 * tm-sparc.h (GO_IF_LEGITIMATE_ADDRESS): Don't recognize
827 SYMBOL_REFs, except for the constants pool.
828 But do recognize REG+REG and SMALLINT+REG.
829 * sparc.md: New patterns for fetching and storing memory
830 whose address is symbolic and not "legitimate".
832 * sparc.md (movsi): Add `f' to op1 constraint.
833 New output clause for result in fp reg.
834 (Floating point fetch patterns): Output sethi insns.
835 (call_value, related patterns): value-register has `register_operand'.
837 * output-sparc.c (hardreg): New function.
838 (COMPATIBLE): Clause added for n_regs == 2.
839 (single_insn_src_p): Return 0 for MEM whose address is absolute.
841 * tm-genix.h (GO_IF_LEGITIMATE_ADDRESS subroutines):
842 Redefine, to exclude any possibility of SB-referencing addresses.
844 * loop.c (strength_reduce): Can't eliminate a biv if used before
845 start of the loop. Used before is same as used after, if contained
848 * recog.c (asm_noperands, decode_asm_operands):
849 Handle case of no outputs, but some clobbers.
850 * stmt.c (expand_asm_operands): Generate right stuff for that case.
852 * tm-sun3.h (CPP_SPEC): Don't define __HAVE_68881__ if using fpa.
854 Tue Nov 15 00:10:26 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
856 * loop.c (gen_iv_mult): Arg OP0 may not be a constant.
857 Pay attention to return value of expand_mult.
858 (eliminate_biv): Call changed.
860 * output-m88k.c, output-sparc.c (output_move_double):
861 Fix typo `optype0' for `optype1'.
863 * c-decl.c (duplicate_decls): Don't alter file, line of old decl.
865 * c-parse.y (skip_white_space): Don't recognize comments; rely on cpp.
867 * rtl.c (rtx_equal_p): Handle vectors.
869 * loop.c (scan_loop): Change elts of n_times_set back to positive
870 for candidates that weren't moved, before doing strength reduction.
872 * ns32k.md (movdi, movdf): Use `&' constraint for first operand.
874 * reload1.c (reload): Initialize spill_indirect_ok here.
876 * config-sun4.h: Recognize `-static' switch.
878 * global-alloc.c (set_preference): Avoid using nonsense hard reg #s
879 that result from adding OFFSET.
881 * sdbout.c (sdbout_end_function): Line # in .ef should be relative.
883 * final.c (output_source_line): For SDB, don't output negative #s.
885 * tm-encore.h (ASM_OUTPUT_LOCAL): Don't ignore SIZE arg.
887 Mon Nov 14 11:03:16 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
889 * reload.c: Don't declare refers_to_regno_p.
891 * gcc.c (main): Warn if any input files are for the linker
892 but the linker is not being run.
894 * jump.c (sets_cc0_p): Dumb bug fetching elts of a PARALLEL.
896 * local-alloc.c: qty_birth, qty_death elements are now -1, not 0,
897 when the value is not known.
899 * expmed.c (extract_bit_field): Bug computing xbitpos, xoffset
900 when changing units from bytes to words.
902 * loop.c: Rename `times_used' field in `struct movable' to `savings'.
903 (scan_loop): When scanning the consecutive sets, for each libcall,
904 increment `savings'--leave `consec'.
905 When making movable for (SET (REG) 0) which is part of zero-extension,
906 set `savings' to 1 initially, since only 1 insn will be moved.
907 And don't let any other reg force that insn.
908 Reduce initial THRESHOLDs.
909 (move_movables): Don't add `consec' into `savings'
910 since the initial `savings' was proportional to `consec'.
911 Decrement THRESHOLD by 3 (not 2) for each move done.
913 * reload1.c (choose_reload_targets): Strip subregs from OLD
914 before writing the output-reload move-insn.
916 * reload1.c (reload): counted_for_groups and counted_for_nongroups
917 are now file-scope. Update them both when spilling.
918 (new_spill_reg): No need for counted_for_nongroups as arg.
919 (choose_reload_targets): Don't use for a group
920 any spill regs for which counted_for_nongroups is set.
922 * dbxout.c (dbxout_symbol): Indirect-symbol case checked erroneously
925 Sun Nov 13 08:13:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
927 * cse.c (fold_rtx): Don't alter MULT by -1 if arg mode != result mode.
929 * loop.c (move_movables): If moving a CALL_INSN, make a new CALL_INSN.
930 * emit-rtl.c (emit_call_insn_before): New fn.
932 * config-sun4.h (LINK_SPEC): Avoid shared libraries if -g.
934 * expr.c (store_one_arg): Stabilize ARG->stack so it doesn't use SP
935 before computing the arg value.
937 * combine.c (use_crosses_set_p): Moving a ref to stack ptr
938 is always forbidden if machine has push insns, since might cross one.
940 * vax.md (movqi): Avoid out-of-range immed ops in mcomb.
942 * expmed.c (extract_bit_field): Don't say `extzv' in the
945 * emit-rtl.c (copy_rtx_if_shared): Even if a MEM can be shared,
946 unshare its address from everything outside that MEM.
948 * expr.c (expand_builtin): Fix omitted arg to `convert_to_mode'.
950 * expr.c (store_expr): In case where will not return TARGET
951 and must do type conversion, don't fail to store into TARGET.
953 * dbxout.c (FORCE_TEXT): New macro used before output `.stabs'
954 to go to the text section on targets that require it.
955 (DEBUG_SYMS_TEXT): Target macro which turns on that feature.
957 * reload1.c (reload): Index in spill_regs was wrong
958 when checking counted_for_groups.
959 (choose_reload_targets): When calling find_equiv_reg looking for
960 a reload reg, reject all spill regs, even those not in use now.
962 * tm-sun386.h, tm-sun386i.h, config-sun386i.h: New files.
964 * cccp.c (main): Don't die if no output file arg given.
966 * fixincludes: Tell `find' to find only ordinary files.
968 * config.gcc: If symlink fails, make a hard link.
970 Sat Nov 12 20:43:20 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
972 * Makefile (gnulib): Use cp to make the temporary .c files;
973 less likely to fail than ln.
975 Sat Nov 5 12:46:39 1988 Randall Smith (randy at sugar-bombs.ai.mit.edu)
977 * tm-m68k.h (HARD_REGNO_MODE_OK): Disallowed d7:a0 as an allowable
978 pair of registers to hold a double value. This is correct for the
979 fpa but incorrect for the 68881. It was, however, simpler than
980 defining a new regclass.
982 Tue Oct 25 12:03:49 1988 Randall Smith (randy at gluteus.ai.mit.edu)
984 * m68k.md: Added some thoughts (comments) on best method to allow
985 68881 code with fpa code.
987 Thu Oct 13 14:19:17 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
989 * Version 1.30 released.
991 * stupid.c (stupid_life_analysis): Init last_call_suid with
992 largest possible value, not 0.
994 Wed Oct 12 04:40:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
996 * output-i386.c (output_asm_insn_double_reg_op): Compensate for
997 assembler bug that interchanges fsub and fsubr.
999 * reload1.c (order_regs_for_reload): Undo 29 Sept change.
1002 * varasm.c (decode_rtx_const): Don't example value->addr
1003 if what was stored in was value->d.
1005 * toplev.c (set_float_handler): New fn, specify where to jump
1006 on floating exception signal.
1007 * fold-const.c (combine): Use that to handle overflow in arithmetic.
1009 * c-decl.c (grokdeclarator): Don't clear CONSTP, VOLATILEP
1010 when making an array type.
1012 * dbxout.c (dbxout_symbol): Ignore VAR_DECLs in memory whose
1013 addresses we can't represent.
1015 * fold-const.c (fold): don't convert >= to > if both args are constant.
1016 When converting >= to >, don't fail to change CODE.
1018 Tue Oct 11 04:13:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1020 * vax.md (movhi): Error in truncating mcomw, addh3 args to 16 bits.
1022 * final.c: Better error checking for %-specs in templates.
1023 (output_operand_lossage): new fn to report errors.
1024 (insn_noperands): new var: # operands in current fn.
1025 (this_insn_asm_operands): new var: 1 for `asm', 0 otherwise.
1026 (output_asm_insn): Check for operand # out of range.
1027 (output_asm_label, output_operand): Call new fn to report errors.
1029 * reload.c (push_reloads): An input reload for (REG N) can match one
1030 for (POST_INC (REG N)) or (PRE_INC (REG N)), since the value
1031 reloaded is the same in any case.
1033 Mon Oct 10 06:19:05 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1035 * recog.c (next_insns_test_no_inequality): Like next_insn_tests...
1036 but check all insns that follow this one and can use it's cc's.
1037 * output-m68k.c (output_btst): Use that.
1039 * vax.md (movsf, movdf): Undo last change; movq/movl set the cc wrong.
1041 * expr.c (expand_call): Set current_function_calls_setjmp if appro.
1042 * stmt.c (setjmp_protect): New fn: move all vars into stack
1043 unless declared `register'.
1044 * c-decl.c (finish_function): Call it if -traditional and setjmp used.
1046 * cccp.c (main): Open output after the input.
1049 Sun Oct 9 00:28:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1051 * tm-sun3.h (CPP_SPEC): Define __HAVE_FPA__ if appropriate.
1053 * c-decl.c (pushdecl): After duplicate_decls, maybe warn about
1054 "declared extern and later static".
1056 * expmed.c (store_bit_field): In insv case, avoid turning
1057 VALUE into a subreg of a subreg.
1059 * loop.c (move_movables): When moving a libcall,
1060 un-cse the function address; put it into the call insn.
1062 Sat Oct 8 01:48:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1064 * cse.c (equiv_constant): Subroutine to find the constant equivalent
1065 of a reg. Now handles SUBREGs too.
1066 (fold_rtx, fold_cc0): Use that function.
1067 Don't handle SUBREGs like arithmetic.
1069 * reload1.c (choose_reload_targets): Don't call reg_overlap_mentioned_p
1072 Fri Oct 7 01:00:19 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1074 * assert.h: Typo declaring __eprintf.
1076 * config.gcc: New file for making the links.
1077 Fixed bugs for sun-[23]-os4. Added sun-[234] for sunos 3.
1080 * emit-rtl.c (gen_rtx): Return const0_rtx for 0 in DImode.
1081 * varasm.c (immed_double_const): Don't be confused by this.
1083 * expmed.c (negate_rtx): New 1st arg MODE.
1084 * expr.c (push_block): Calls changed.
1085 * m68k.md, ns32k.md, vax.md: Calls changed.
1087 * c-decl.c (duplicate_decls): Don't discard DECL_BLOCK_SYMTAB_ADDRESS.
1089 * tree.c (staticp): INDIRECT_REF with constant address is static.
1090 COMPONENT_REF may not be, if component offset isn't constant.
1092 * c-typeck.c (default_conversion): Converting array to ptr, if array
1093 isn't a VAR_DECL, go through build_unary_op so that COMPONENT_REFs
1094 will be simplified away.
1096 * ns32k.md (tbitd patterns): op 0 constraint: reject constants.
1097 * ns32k.md (extzv for SImode and HImode):
1098 Use adj_offsetable_operand; plus_constant was the wrong thing.
1100 Thu Oct 6 00:10:41 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1102 * Version 1.29 released.
1104 * loop.c (scan_loop): Don't think a `return' insn enters the loop.
1106 * ns32k.md (ashrsi3, etc): New define_expands for right shift.
1108 * reload1.c (choose_reload_targets): Change in the `force_group'
1109 logic to avoid crashes.
1111 Wed Oct 5 04:09:19 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
1113 * expr.c (expand_expr, MINUS_EXPR): When negating integer op1,
1114 truncate it to its mode.
1116 * expmed.c (extract_bit_field): SUBREG error check was wrong;
1117 SImode SUBREGs are possible and ok in extzv, extv.
1119 * tm-ns32k.h (REGISTER_NAMES): Had two excess elements; deleted.
1121 Mon Oct 3 01:15:51 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
1123 * toplev.c (main, compile_file): If no files spec'd, use stdin, stdout.
1125 * flow.c (propagate_block): When checking for stack-adjust insns,
1126 exclude non-SET patterns.
1128 * jump.c (jump_optimize): When changing jump=>return to return,
1129 must rerecognize the insn.
1131 * toplev.c (compile_file): Allow `-' for main input or output filename.
1133 Sun Oct 2 10:30:09 1988 Richard Stallman (rms at apple-gunkies.ai.mit.edu)
1135 * final.c (final): NOTICE_UPDATE_CC has extra arg, INSN.
1136 * tm-*.h: Change definitions.
1138 * stmt.c (optimize_bit_field): Use gen_lowpart to make subregs.
1140 * stmt.c (assign_parms): Don't obey regdecls in inline function.
1141 Don't lose existing REG_NOTES when adding one.
1143 * stmt.c (expand_function_start): Make return rtx before
1145 (expand_function_end): Use use_variable to emit USEs for SAVE_EXPRs.
1147 * stmt.c (expand_return): Handle TRUTH_AND_EXPR like ANDIF; OR also.
1149 * stmt.c (expand_end_stmt_expr): Always set TREE_VOLATILE,
1150 sometimes TREE_THIS_VOLATILE.
1152 * jump.c (delete_insn): When finding PREV, skip deleted insns.
1154 * varasm.c (output_constant): WORDS_BIG_ENDIAN test was backwards.
1156 * emit-rtl.c (gen_lowpart): Allow MODE > 1 word if X is same size.
1158 * final.c (final): Don't delete no-op moves (jump did it if appro.).
1160 * final.c: Support prescan pass.
1161 (final_start_function): init_recog and CC_STATUS_INIT mvd to `final'.
1162 (final): New arg PRESCAN. Do no output if prescanning.
1163 Don't alter conditionals if PRESCAN < 0 (prescan already done).
1164 If jump becomes no-op, change it to a NOTE.
1165 Remember to free the temp space for ASM_OPERANDS.
1167 * final.c (final): Altering store-flag must check STORE_FLAG_VALUE.
1168 Don't try to do it if that isn't defined.
1169 Don't try it if condition doesn't test CC0.
1170 (alter_cond): No need to check COND != 0.
1171 Handle CC_Z_IN_NOT_N and CC_Z_IN_N.
1172 (m68k.md): Delete code that handled CC_Z_IN_NOT_N.
1174 * conditions.h: New flag CC_Z_IN_N.
1175 * tm-*.h: Renumber all CC_... flags to make room.
1177 * combine.c (use_crosses_set_p): Loop start was 1 off.
1179 * local-alloc.c (reg_is_set): When a reg is CLOBBERed and dies in
1180 one insn, make it live immediately before and after that insn.
1182 * global-alloc.c: Hard reg preferences for global pseudos.
1183 Var allocno_preferred_reg deleted; new vars hard_reg_preferences
1184 and regs_someone_prefers.
1185 (global_alloc): Init those vars. Pass hard_reg_preferences elt
1187 (set_preference): New function makes entries in those vars.
1188 (global_conflicts): new arg to mark_reg_store. Call set_preference.
1189 (find_reg): Last arg now a preferred hard_reg_set.
1190 Scan that set first of all.
1191 (mark_reg_store): New arg is offset for renumbered regno.
1192 But the code to use it is turned off.
1194 * global_alloc (check_frame_pointer_required): Handle reg_equiv_address
1195 like reg_equiv_mem. Don't try to allocate pseudos with equiv mems
1196 that don't use the frame pointer.
1197 * reload1.c (reload): Call changed.
1199 * jump.c (sets_cc0_p): Tests whether rtx sets cc0, and whether
1200 it does nothing but set cc0.
1201 (find_cross_jump, delete_jump): Use that fn for these tests.
1202 * loop.c (loop_skip_over): Likewise.
1203 * reload.c (push_reload): Likewise.
1205 * genoutput.c: Output `const' before the data arrays.
1206 Define it as nothing if not __STDC__.
1208 Sat Oct 1 02:19:29 1988 Richard Stallman (rms at apple-gunkies.ai.mit.edu)
1210 * expr.c (store_one_arg): 3rd arg to emit_block_move is in bytes.
1212 * cse.c (fold_rtx): Handling ZERO_EXTEND or SIGN_EXTEND of constant,
1213 if the arg width is too wide to handle, return safely.
1215 * combine.c (FAKE_EXTEND_SAFE_P): Don't allow extend to > 1 word.
1217 * rtl.c (refers_to_regno_p): Moved from reload.c. Not static.
1218 (reg_overlap_mentioned_p): New function, calls the above.
1219 * output-*.c: Use that instead of reg_mentioned_p.
1220 * tm-*.h (NOTICE_UPDATE_CC): Likewise.
1221 * reload.c (push_reload, combine_reloads): Likewise.
1222 * reload1.c (choose_reload_targets): Use it to check earlyclobbers.
1224 * reload1.c (choose_reload_targets): Elimination of previous
1225 output-reload feeding our input now limited to pseudo-regs.
1227 * flow.c (life_analysis): Delete any insn copying reg to itself.
1228 (propagate_block): Move update of OLD after special life and death
1231 * vax.md (ashrsi3, ashrdi3, rotrsi3): define_expands to negate
1233 * expmed.c (expand_shift): Eliminate negate-the-shift-count feature.
1235 * vax.md (and*i3): define_expands which use complement and bit-clear.
1236 * expmed.c (expand_bit_and): Eliminate feature to do that.
1237 This function could be eliminated.
1239 * expmed.c (store_bit_field): Handle nested subregs.
1240 Allow gen_insv to fail; if it does, delete what we did and then
1241 use store_fixed_bit_field.
1242 (store_fixed_bit_field): Use gen_lowpart to make SUBREGs.
1243 Do that for SUBREGs just as for REGs.
1244 Error check OFFSET must be 0 for REGs.
1245 (store_split_bit_field): Error check OP0 is a SUBREG when expected.
1246 (extract_bit_field): Allow gen_ext{,z}v to fail.
1247 Use gen_lowpart to make subregs.
1248 (expand_shift): If a try fails, delete any insns it made.
1250 * expmed.c (expand_mult): Use expand_unop to negate.
1251 When adding 2 powers of 2, do serial shifts, not parallel.
1252 Handle absval==1 like other powers of 2.
1254 * explow.c (force_reg): Don't lose any existing reg notes.
1256 * stmt.c (expand_start_stmt_expr): Eliminate return value.
1257 (expand_end_stmt_expr): No need for argument.
1258 * c-parse.y (primary): Change calls.
1260 Fri Sep 30 01:50:22 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
1262 * integrate.c (copy_rtx_and_substitute, copy_address):
1263 'u' case erroneously returned the translated single element.
1264 (copy_address): Special cases for frame-ptr and sums containing it.
1265 MEM and LABEL_REF cases passed wrong arg to copy_rtx_and_substitute.
1266 (copy_rtx_and_substitute): adjust mode of inline_target for context.
1268 * jump.c (true_regnum): For SUBREG of pseudo, use pseudo's # unchanged.
1270 Thu Sep 29 02:50:46 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
1272 * i386.md (movsi, mov{q,h}i): Use find_reg_note to look for REG_WAS_0.
1273 * vax.md (movsi, movhi): Likewise.
1275 * varasm.c (decode_rtx_const): Was setting un.addr.base wrong
1276 for a CONST. Should be symbol name, not the SYMBOL_REF.
1278 * rtl.c (rtx_equal_p): When comparing registers, check
1279 REG_FUNCTION_VALUE_P. If there are `u'-slots in the rtx, ignore them.
1281 * rtl.c (reg_mentioned_p): Some rtx types were mistakenly treated
1282 as uniquified (various constants).
1284 * rtl.c (read_rtx): Element type 'S' is string that may be omitted.
1285 * rtl.def (define_insn, define_peephole): Add a last element, type 'S'.
1286 * genoutput.c: Collect these optional last elements and output as
1287 array `insn_machine_info' of structs `INSN_MACHINE_INFO'.
1288 The last must be defined as a macro.
1289 * recog.h (insn_machine_info): Declare it if appropriate.
1291 * regclass.c (record_address_regs): In PLUS case, look inside SUBREGs.
1293 * reload1.c (reload): Use reg_equiv_address for REG_EQUIVs with
1294 invalid memory addresses.
1295 When changing pseudos to mem refs at end, do FIX_FRAME_POINTER_ADDRESS
1297 (alter_reg): Check that with reg_equiv_mem.
1298 (spill_hard_reg): If fp reg, spill regardless of basic_block_needs.
1300 * reload1.c (order_regs_for_reload): Don't put invalid regs into
1301 potential_reload_regs at all. (They used to go at the end.)
1303 * reload.c (find_reloads): Store all earlyclobber operand in
1304 reload_earlyclobbers (# in n_earlyclobbers):
1305 * reload1.c (choose_reload_targets): Don't use value of find_equiv_reg
1306 if it matches an earlyclobber operand.
1308 * reload.c (find_reloads_address for REG):
1309 No need for explicitly excluding hard regs in these tests.
1310 (find_reloads, find_reloads_address_1 for REG): likewise.
1312 * reload.c (push_reload): Code testing reg_equiv_constant should
1313 be obsolete; add error check to verify this.
1315 * reload.c (hard_reg_set_here_p): Handle CLOBBERs, SUBREGs, overlap.
1316 (refers_to_regno_p): Handle CLOBBERS. Handle overlap.
1317 New arg ENDREGNO specs end of range to check for;
1318 all callers changed (all in this file).
1320 * reload.c (find_reloads): SUBREG like REG in alternate recovery
1321 for earlyclobber conflict.
1322 The operands to unswap are those that are supposed to commute.
1323 When operands match, copy the regclass of earlier one for later one.
1325 * stmt.c (optimize_bit_field): Don't use gen_extend_insn;
1326 use convert_move, then reorder the insns.
1327 * optabs.c (gen_extend_insn): Deleted.
1329 * optabs.c (emit_cmp_insn): Don't emit queue before recursion.
1330 Don't convert size to SImode for cmpstrqi.
1332 * optabs.c (expand_binop): Keep any old REG_NOTES when adding them.
1333 Always delete_insns_since if returning failure.
1334 (expand_unop, emit_unop_insn): Keep any old REG_NOTES when adding them.
1335 * spur.md (movhi): likewise.
1337 * RTL_EXPR_SEQUENCE is now a chain of insns, not a SEQUENCE.
1338 * emit-rtl.c (emit_insns): New fn, emit a chain of insns.
1339 * expr.c (expand_expr): Use that.
1340 Also put const0_rtx in the RTL_EXPR_SEQUENCE (mark RTL_EXPR as output).
1341 * stmt.c (expand_end_stmt_expr): Use get_insns to get the chain.
1343 * stmt.c (expand_end_stmt_expr): Put the RTL_EXPR on rtl_expr_chain.
1344 (fixup_var_refs): Scan all waiting RTL_EXPRs not yet output.
1345 Also scan all stacked sequences on sequence_stack.
1347 * genemit.c (gen_expand): Generate calls to {start,end}_sequence.
1348 Use `emit' to handle a PARALLEL.
1349 (FAIL, DONE): Change to fit gen_expand changes.
1351 * emit-rtl.c (change_address): abort if arg isn't a MEM.
1353 * emit-rtl.c: Sequences work now by saving and restoring first_insn
1354 and last_insn. So these variables are used even when in a sequence.
1355 emit_to_sequence has been deleted.
1356 (start_sequence, end_sequence): Save and restore first_insn, last_insn.
1357 (get_last_insn, add_insn): Sequences no longer need special treatment.
1358 (delete_insns_since, reorder_insns): likewise.
1359 (push_to_sequence): Set up to emit to a given existing insn chain.
1361 * emit-rtl.c (copy_rtx_if_shared): Don't copy INSNs.
1362 Insert missing return stmt in MEM case (for MEMs ok to share).
1363 (unshare_all_rtx): Now can copy the REG_NOTES simply.
1364 Copy the LOG_LINKS too.
1366 * emit-rtl.c (make_safe_from): Treat SUBREG as X like a REG.
1367 (delete_insns_since): Don't lose if FROM is the first insn.
1368 (emit): Declare void, since no useful value.
1369 Call simplejump_p properly.
1370 (restore_reg_data_1): When a reg is an address, do mark_reg_pointer.
1372 * dbxout.c (dbxout_types): Call dbxout_symbol to do the work.
1373 (dbxout_type_def): Deleted.
1374 (dbxout_symbol): Set TREE_ASM_WRITTEN when a TYPE_DECL is output.
1375 Don't output the same one twice.
1377 * cse.c (fold_cc0): LABEL_REF is not zero.
1379 * cse.c (cse_insn): Don't insert src, dest if they are the same place.
1381 * cse.c (lookup_as_function): Return entire rtx, not just operand.
1382 (cse_insn): Caller changed. Also, copy the result before inserting it.
1384 * cse.c (fold_rtx): Put constant arg last if commutative op.
1385 Handle idempotents and identities for mult, div, booleans, shifts.
1387 * cse.c (canon_hash): Parens were missing around shifts in "rotates".
1389 * c-convert.c (convert_to_integer): Truncate TRUTH_ANDIF_EXPR
1390 like TRUTH_AND_EXPR; OR also.
1392 * c-typeck.c (build_binary_op_nodefault): Do truthvalue_conversion
1393 for TRUTH_ANDIF, etc.
1394 (build_unary_op): More simplifications for TRUTH_NOT_EXPR;
1395 uses new fn `invert_truthvalue'.
1397 * recog.c (reg_fits_class_p): New name for reg_renumbered_fits_class_p
1398 since it no longer needs to renumber. Also it now really assumes
1399 arg is a REG. Callers changed.
1400 * reload.c: Callers changed.
1402 * recog.c (general_operand): (SUBREG (MEM...)) need not alter mode.
1403 (register_operand, nonmemory_operand): (SUBREG (MEM...)) is allowed.
1404 (memory_operand): (SUBREG (MEM...)) is *not* allowed.
1405 (mode_independent_operand): Operand names were backwards!
1406 (No change in effect of this function.)
1408 * print-tree.c (dump): Some expr nodes contain rtx's. Print as rtx's.
1410 Wed Sep 28 18:51:12 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1412 * reload1.c (choose_reload_targets): If a reload wanted a group,
1413 don't allow a single register for it.
1415 Tue Sep 27 11:43:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1417 * final.c (output_addr_const): Handle DImode CONST_DOUBLEs.
1418 * tm-*.h (PRINT_OPERAND): Treat DImode CONST_DOUBLE like a CONST_INT.
1420 * vax.md (rotldi3): Insn deleted; it doesn't really exist.
1422 * toplev.c (report_error_function): Also mention the file name,
1423 for parallel makes. New arg FILE; all callers changed.
1425 Mon Sep 26 15:44:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1427 * expmed.c (expand_shift): When using extzv, convert OP1 to SImode.
1428 * c-typeck.c (build_binary_op_nodefault): Convert shift-count
1429 to int regardless of result type.
1431 * output-spur.c (output_move_double): Fix typo, optype0=>optype1.
1433 * expr.c (expand_call): Avoid null deref on result of FUNCTION_ARG.
1435 * tm-i386.h (FUNCTION_PROFILER): Use correct assembler syntax.
1437 Sun Sep 25 12:13:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1439 * fixincludes: Handle some files in netdnet, netdna, vaxif, vaxuba.
1441 * reload.c (find_reloads): Make no optional reloads if not -O.
1443 * loop.c (strength_reduce): Can't eliminate a biv if it's used
1444 to compute a DEST_ADDR giv. Only DEST_REG givs are safe.
1446 * loop.c (general_induction_var): Shift & divide ops are linear
1447 only in 1st operand; don't look for biv or giv in 2nd operand.
1449 * vax.md (fix_truncdfqi2): Use `%#'.
1451 Sat Sep 24 00:25:48 1988 Richard Stallman (rms at gluteus.ai.mit.edu)
1453 * loop.c (n_times_set, n_times_used): Now file-scope;
1454 no longer passed as args to several functions.
1456 * loop.c (basic_induction_var): Accept reg as source value
1457 only if it's invariant.
1458 (strength_reduce): Benefit calculation and threshold changed.
1459 Check reducibility of givs before trying to reduce them.
1460 Check eliminability of biv before considering the givs;
1461 let this affect the threshold.
1462 (record_giv): New subroutine adds a giv to the chain.
1464 * ns32k.md (incrementing sp): Use cmpd insns to increment by 4 or 8.
1466 * integrate.c (expand_inline_function): Rename return_label
1467 to local_return_label; avoid shadowing.
1469 Fri Sep 23 13:57:52 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1471 * loop.c (loop_skip_over): Put the new label after the note that ends
1474 * loop.c: New function strength_reduce and subroutines.
1475 * toplev.c: New var flag_strength_reduce, set from -fstrength-reduce.
1477 * vax.md (sob insns): They were broken, with plus in one place
1478 and minus in another. Use plus consistently.
1480 * rtl.h (REG_LIBCALL, REG_NONNEG): Two new kinds of reg-note.
1481 * optabs.c (expand_binop, expand_unop): Make REG_LIBCALL notes.
1482 * loop.c (scan_loop, move_movables): Move entire library calls.
1483 Use m->set_src to get the expression, in case it's from a REG_EQUAL.
1484 (consec_sets_invariant_p): Likewise.
1486 * loop.c (scan_loop): Start scan from loop_top, if entry is rearranged.
1487 Watch out for pseudo regs created by strength_reduce;
1488 they can't index regno_last_uid.
1489 (replace_regs): # regs mapped is now an arg.
1491 * loop.c (count_loop_regs_set): Don't increment n_times_set past 127.
1492 (consec_sets_invariant_p): Reject if N_SETS arg is 127.
1494 * toplev.c (rest_of_compilation): NREGS arg of loop_optimize deleted.
1496 * c-decl.c (store_parm_decls): Anything but an IDENTIFIER_NODE
1497 in SPECPARMS indicates a parmlist, not an identifier list.
1498 (get_parm_info): Use only PARM_DECLs when making the list of arg types.
1500 * combine.c (try_distrib): Boolean ops can't distribute through PLUS.
1501 MULT can distribute through PLUS and only PLUS.
1503 Thu Sep 22 15:57:41 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1505 * jump.c (jump_optimize): uncond jump to a return becomes a return.
1507 * integrate.c (copy_parm_decls, copy_decl_tree): Set TREE_USED.
1508 Avoid inevitable "unused" warning for these decls.
1510 * c-typeck.c (comptypes): When comparing array types,
1511 ignore qualifiers of element type.
1513 * tm-*.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Define new macros.
1514 * final.c (final_start_function): Use them to protect around
1515 the call to the profiling function.
1516 * stmt.c (expand_function_start): Set current_function_needs_context
1517 and current_function_returns_struct.
1519 * stmt.c (expand_null_return_1): If clear_pending_stack_adjust
1520 doesn't clear it, do the adjust now.
1521 * expr.c (clear_pending_stack_adjust): No-op if -finline-functions.
1523 * cccp.c (macarg1, skip_if_group): Backslash makes next char ordinary.
1525 * reload.c (find_reloads): Delete code to look for an equiv reg
1526 for a reg being input-reloaded. This isn't safe.
1527 * reload1.c (choose_reload_targets): Do it here.
1529 Wed Sep 21 00:36:22 1988 Richard Stallman (rms at hobbes.ai.mit.edu)
1531 * tm-sun3.h (CPP_SPEC): Define it based on TARGET_DEFAULT.
1532 (STARTFILE_SPEC): Likewise.
1534 * reload1.c (choose_reload_targets): When redirecting prev insn
1535 into this insn's reload-reg, check this doesn't break the prev insn
1536 by giving it a reg it can't accept. Use new fn constraint_all_regs_p.
1538 * tm-sparc.h (ASM_OUTPUT_LOCAL): Use .reserve, not .common.
1540 * tree.h (TREE_USED): New attribute macro.
1541 * c-parse.y (primary): Set TREE_USED in ..._DECL nodes.
1542 * toplev.c, flags.h: Define and set warn_unused.
1543 * stmt.c (expand_end_bindings): Warn if any var is unused.
1544 * print-tree.c (prtypeinfo): Print this attribute.
1546 Tue Sep 20 15:29:01 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1548 * assert.h: `assert' must expand to an expression.
1549 Error message should show arg before expansion, not after.
1551 * c-decl.c (implicitly_declare): Make decl perm if !warn_implicit
1552 since start_function needs to look inside it in that case.
1554 * toplev.c (announce_function): If we don't print, don't record we did.
1556 Mon Sep 19 15:21:11 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1558 * c-parse.y (structsp): If pedantic, warn if comma at end of enumlist.
1560 * reload.c (find_reloads): Check insn_code_number >= 0 when
1561 looking in insn_operand_strict_low.
1563 * tm-sun[23].h (CPP_SPEC): Rename __HAVE_FPU__ to __HAVE_68881__
1564 and put a space after that option.
1566 Sun Sep 18 01:12:56 1988 Richard Stallman (rms at hobbes.ai.mit.edu)
1568 * reload.c (find_reloads): Make optional reloads for explicit MEMs.
1570 * tm-m68k.h (MODES_TIEABLE_P): If no 68881, can tie fixed to floating.
1571 * m68k.md (movdi): Allow F's (can be DImode now).
1572 Don't allow f-regs (experiment). Don't preference x-regs.
1573 (DImode push): Allow y-regs.
1574 (DFmode push): Allow y-regs, not x-regs.
1576 * reload1.c (modes_equiv_for_class_p): New function.
1577 (reload): Compare multiple modes for reg group with that function.
1578 Allows differing modes in some cases when not tieable.
1580 * c-parse.y (check_newline): Let ASM_OUTPUT_IDENT override .ident.
1581 * tm-3b1.h (ASM_OUTPUT_IDENT): Define this as no-op.
1583 * emit-rtl.c (reorder_insns): Update sequence_{first,last}_insn if nec.
1584 (get_last_insn): If in a sequence, return last insn of sequence.
1585 (delete_insns_since): If in a sequence, set sequence_last_insn.
1587 * spur.md (CONST_DOUBLE load insn): Use & for most dests.
1588 (cond branches): pass additional args to output_compare.
1589 (movdf, movdi): Use & loading reg from mem.
1590 (trunc*): Enable these.
1591 (add): New pattern for adding large immediate operand.
1592 (shifts): A define_expand for each kind of shift,
1593 plus a recognizer which outputs repeated insns if necessary.
1594 (call*): Use r9 as temp, not r2.
1596 * output-spur.c (output_compare): New args NEG_{EXCHANGE_,}OPCODE.
1597 (singlemove_string): Handle reg as operand 1.
1598 (output_add_large_offset): Fake add insn with large immediate arg.
1599 (big_immediate_operand): Match such an arg.
1601 * tm-spur.h (FUNCTION_PROLOGUE): Align the stack pointer.
1602 Handle bigger frames.
1603 (TARGET_LONG_JUMP, TARGET_EXPAND_SHIFT): New target flags.
1605 * va-spur.h: Track position in regs and stack separately.
1607 * c-decl.c (duplicate_decls): Warn if prototype follows
1608 non-prototype definition.
1610 Sat Sep 17 14:30:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1612 * expr.c (expand_builtin): Avoid crash if arg isn't integer type.
1614 * c-decl.c (duplicate_decls): Just warn if redeclaring a builtin,
1615 and leave it built in unless it is redefined.
1617 * vax.md (ashlsi3): Use addl3, moval or movad when useful.
1618 (addsi3): Avoid pushab, movab for constants < 64.
1619 Do use movab when > 64 when operands match.
1620 (mov*i): Use mcom* rather than mneg*.
1621 Use add*3 with two quick immediate args when useful.
1622 (movhi): Don't use movzbw or cvtbw; said to be slow.
1624 * rtl.h: New macros MEM_VOLATILE_P, MEM_IN_STRUCT_P,
1625 INSN_DELETED_P, REG_USER_VAR_P, RTX_UNCHANGING_P, RTX_INTEGRATED_P,
1626 CONSTANT_POOL_ADDRESS_P.
1627 Most places changed to use them.
1629 Fri Sep 16 11:50:15 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1631 * jump.c (jump_optimize): Was testing volatil on non-MEMs erroneously
1632 when looking for no-op move insns.
1634 * cccp.c (handle_directive): Ignore comments between # and directive.
1636 * integrate.c (copy_rtx_and_substitute): Stack-push memrefs need
1639 * tm-bsd386.h (ASM_OUTPUT_DOUBLE): Undef previous def.
1641 * reload1.c (alter_reg): Don't reuse spill_stack_slot
1642 if it isn't big enough for this reg's mode.
1644 * expr.c (emit_move_insn): After force_const_mem, ensure
1645 mem address is valid.
1646 (move_block_to_reg, move_block_from_reg): Likewise.
1648 * expr.c (expand_call): Spurious TREE_VALUE on args[i].tree_value.
1650 * m68k.md (zero_extend*): Require register_operand for operand 0.
1652 * stdarg.h (va_start): Alternate defn for sparc.
1654 Thu Sep 15 11:39:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1656 * c-parse.y (yylex): When atof gives ERANGE, check for "0.0", etc.
1658 * assert.h (__assert): Alternative definition for -traditional.
1660 * output-sparc.c (output_block_move): Initialize xoperands.
1662 * combine.c (try_combine): Never subst for a reg that is incremented.
1664 * m68k.md (cmpm pattern): Make the match_operands match memrefs
1665 and check that they are pushes in the extra condition.
1666 This makes reloading handle the pushes properly.
1668 * expr.c (MOVE_RATIO): Make it 15. Allow overriding it.
1670 Wed Sep 14 09:50:08 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1672 * c-decl.c (build_enumerator): Use saveable_tree_cons.
1674 * vax.md (movdf): Use movq when safe.
1676 * Version 1.28 released.
1678 * tm-sparc.h (FIRST_PARM_CALLER_OFFSET): Defined.
1680 Tue Sep 13 00:11:37 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
1682 * tree.c (saveable_tree_cons): New function.
1683 * c-decl.c (pushtag): Use it; lists of tags needed for inlining.
1684 (get_parm_info): Likewise.
1686 * print-tree.c (dump): Handle each kind of statement node individually.
1688 * integrate.c (copy_decl_tree): Don't pass DECL_RTL through
1689 copy_rtx_and_substitute if it's a memref with constant address.
1691 * sdbout.c (sdbout_symbol): Don't output garbage when DECL_RTL
1692 has a form we don't understand.
1694 * reload.c (find_reloads_address_1): Don't reload an autoincrement
1695 if it has a suitable hard reg already.
1697 * c-typeck.c (process_init_constructor): Error check after digest_init.
1699 * c-parse.y (is_reserved_word): Now static.
1701 Mon Sep 12 19:19:28 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1703 * i386.md (all push insns): Use `<' for the constraint,
1704 since a push_operand won't fit an `m' constraint on this machine.
1706 * expr.c (expand_call): If fn name is `__builtin_alloca',
1707 it may be alloca. This case arises if the user redeclares
1710 Sun Sep 11 01:47:01 1988 Richard Stallman (rms at gluteus.ai.mit.edu)
1712 * Eliminate MAX_SETS_PER_INSN.
1713 * cse.c (cse_insn): Combine all the tables and dynamically allocate.
1714 (cse_main): Count the actual number of SETs; don't estimate.
1715 * genconfig.c: Don't calculate MAX_SETS_PER_INSN.
1716 * stmt.c (expand_asm_operands): No limit on # of output operands.
1718 * expr.c (expand_call):
1719 Store all non-reg parms first, then store all partially-in-reg
1720 parms, then all the (precomputed) wholly-in-reg parms.
1721 Special hair for BLKmode parms which must be passed entirely
1722 in memory; also for BLKmode parms initialized from function calls,
1723 for which it is best to allocate the space before computing value.
1724 Use macro FIRST_PARM_CALLER_OFFSET to handle machines where reg
1725 parms "take up space" on the stack below the stack pointer.
1726 (store_one_arg): Handle case of preallocated stack loc for BLKmode.
1727 Update current_args_size here, not in caller.
1729 Sat Sep 10 19:58:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1731 * output-sparc.c (output_scc_insn): Changed asm templates.
1732 Use common code to emit the move insns and label at the end of fn.
1733 (output_mul_by_constant): Use %g1 as temporary reg.
1735 * sparc.md (indexed load pattern): Deleted.
1736 (fix_truncdfsi2): Don't ignore value of output_fp_move_double.
1737 (cse'd multiply): Operand 1 predicate is general_operand.
1738 (return peepholes): Conditionalize on ! TARGET_EPILOGUE.
1740 * tm-sparc.h (INIT_CUMULATIVE_ARGS,FUNCTION_ARG...):
1741 Use partial regs for args that start in regs but won't entirely fit.
1743 * tm-sparc.h (CONST_COSTS): 0 for args that can be immediate.
1744 (STRUCTURE_SIZE_BOUNDARY): Now 8.
1745 (STRUCT_VALUE_OFFSET): Defined as symbolic name for `64'.
1747 * expr.c (struct arg_data): New component `stack' says where in the
1748 stack to put a BLKmode arg (if it's nonzero).
1749 (store_one_arg): Handle case where it's nonzero.
1750 (target_for_arg): New fn, precompute stack locn for BLKmode arg.
1752 Fri Sep 9 01:41:13 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
1754 * cse.c (fold_rtx): Misnested ifs screwed SUBREG case.
1756 * reload.c (find_reloads_toplev): Special case for (SUBREG REG)
1757 where REG is equivalent to a CONST_INT.
1758 (find_reloads): Don't ignore the value returned by find_reloads_toplev.
1759 Treat a (SUBREG constant) like a (SUBREG MEM): set force_reload.
1761 * reload.c (push_reload): Abort if memory subreg is not
1762 paradoxical; the MEM mode should be narrower than the SUBREG.
1764 * stmt.c (fixup_var_ref_1): Fixup memory subregs in an insn
1765 copying VAR to or from a register.
1767 * m68k.md (movdi, movdf): the x-reg constraint accidentally allowed
1768 moving rm to rm with no &.
1770 * vax.md (call_value): Typo.
1772 * expr.c (emit_block_move, emit_push_insn): prefer movstrqi to movstrsi
1774 * m68k.md (FPA multiply): bad opcodes for 3-operand multiply insns.
1776 Thu Sep 8 18:22:14 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1778 * c-parse.y: Use YYERROR instead of synonym YYFAIL.
1779 BISON VERSIONS PRIOR TO THIS DATE WON'T WORK!
1781 * c-typeck.c (digest_init): Use TYPE_MAIN_VARIANT of array elt type.
1783 * tm-sun[23].h (CPP_SPEC, ASM_SPEC): Let -m(c|)680[12]0 control
1784 options for CPP and assembler.
1786 Wed Sep 7 13:44:59 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1788 * New handling of reloading of PRE_DEC, etc.
1789 Now reload_in is the PRE_DEC, etc, and reload_inc is always positive.
1790 * reload.c (push_reloads): Old code to set reload_inc deleted.
1791 (find_reloads_address_1): Call push_reload the new way.
1792 (find_inc_amount): Value always positive.
1793 * reload1.c (choose_reload_targets): Detect this case.
1794 (inc_for_reload): New fn; does the real work for this case.
1795 * m68k.md (call, call_value): Fn address must be offsetable.
1797 * combine.c (try_distrib): Reject strange cases such as if
1798 result of PREV1 or PREV2 is used in a memory address in INSN.
1800 * vax.md (movsf): Generate movl instead of movf.
1802 * expr.c (expand_call): If have regparms, store all BLKmode args
1803 before all the other args.
1804 (store_one_arg): New subroutine broken out.
1806 * output-sparc.c (output_block_move): Complete rewrite.
1808 * sparc.md (cse'd multiply insn): Typo in asm-output code.
1810 Tue Sep 6 20:05:48 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1812 * c-parse.y (yylex, etc.) Install Schmidt's perfect hash table.
1814 * gcc.c: handle extension `.cc'.
1816 Mon Sep 5 12:09:58 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1818 * Version 1.27 released.
1820 * tm-i386.h (PREFERRED_RELOAD_REG): When reloading a QImode,
1821 make sure the class doesn't include %esi or %edi.
1822 * i386.md (movqi): Eliminate only use of the class `x',
1823 for which PREFERRED_RELOAD_REG cannot work.
1824 (In next version, get rid of INDEX_CLASS).
1825 Also use `*' to cause preferencing of Q_REGS.
1826 * tm-m68k.h (PREFERRED_RELOAD_REG): When reloading a QImode,
1829 * reload.c (push_reloads): Braino in last change when IN == 0.
1831 * flow.c (mark_used_regs, mark_set_1): Bug if HARD_REGNO_NREGS
1832 returns 0 for VOIDmode reg (inside a CLOBBER).
1834 * c-parse.y (asm_operand): Handle `("REGNAME")' as an operand.
1835 * recog.c (decode_asm_operands, asm_noperands): Ignore any CLOBBERs.
1836 * regclass.c (reg_names): Variable now global.
1837 * stmt.c (expand_asm_operands): Generate CLOBBERS when appropriate.
1839 * stmt.c (assign_parms): Ignore parms that aren't PARM_DECLs.
1841 * varasm.c (assemble_variable): Do ASM_OUTPUT_EXTERNAL for functions.
1843 * c-parse.y (yylex): floatflag is now an enum.
1844 Detect invalid use of decimal points (> 1, or in exponent)
1845 and multiple exponent letters.
1847 * expr.c (expand_call): If inlining fails, set TREE_ADDRESSABLE.
1849 Sun Sep 4 00:36:30 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
1851 * c-decl.c (grokdeclarator): A const array becomes an array of consts.
1852 * c-typeck.c (build_array_ref): Array ref is const if array elts are.
1854 * output-sparc.c (output_move_double): Change criteria for ldd, std.
1855 (output_fp_move_double): New alternatives avoid ldd, std for
1856 stack refs that aren't aligned.
1857 (output_block_move): Use %g1 as temp reg.
1859 * sparc.md (floating point load from constant mem address):
1860 Use %g1 as temp reg. Use output_move_double in DF case, not ldd.
1861 (movsf): Asm insn typo in FPreg to FPreg case.
1862 (floatsi{s,d}f2): Constraint changed.
1863 Also new special case pattern in front of it.
1864 (fix_truncdfsi2): Use output_move_double, not ldd.
1865 (addsi3, subsi3): Use %g1 as temp reg.
1866 (cse-optimized multiply): Constraint now `g'; output generalized.
1867 (andsi3, orsi3, xorsi3): Use %g1 as temp reg.
1869 * reload.c (find_reloads): Force int constants into memory just
1870 like floating ones, if memory is allowed and no regs are.
1872 * expr.c (expand_call): Don't treat structure_value_addr like a parm
1873 if the first parm would be passed in a register.
1874 Also, write comments for all local vars.
1876 * tm-386v.h (START_SPEC): Use {g,m}crt1.o, not {g,m}crt0.o.
1877 (LIB_SPEC): Always use crtn.o.
1879 Sat Sep 3 13:05:50 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1881 * explow.c (plus_constant): Don't put CONST around lone SYMBOL_REF.
1883 * combine.c (subst): Simplify zero- or sign-extend of a constant.
1885 * expr.c (expand_expr): for REAL_CST, etc., check for invalid
1886 memory addresses and copy into registers.
1888 * integrate.c (expand_inline_function): If incoming struct value addr
1889 is in memory, map it like a memory parameter.
1891 * tm-*.h (FIRST_PARM_OFFSET): Now takes fndecl as argument.
1892 * integrate.c (expand_inline_function): Calc., use and save
1893 this fns value of FIRST_PARM_OFFSET.
1894 (copy_rtx_and_substitute): Use that value.
1895 * stmt.c (assign_parms): Likewise.
1897 * tm-sparc.h (FIRST_PARM_OFFSET): Make it 64 if value is BLKmode.
1898 (STRUCT_VALUE{,_INCOMING}): Put the value in 64(fp).
1900 * tm-sparc.h (PRINT_OPERAND_ADDRESS): Print offsets in decimal.
1901 Avoid excess `+' before a negative offset.
1903 * stmt.c (expand_function_start): Create the return value rtl
1904 before making the tail-recursion loop point.
1906 * combine.c (gen_lowpart_for_combine): Generate a paradoxical subreg
1907 rather than a wider memref.
1909 * reload.c (push_reload): Extend last change to case where OUT != 0.
1911 Fri Sep 2 11:43:20 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1913 * stmt.c (fixup_var_refs): Adjust last_parm_insn when deleting insns.
1915 * expr.c (emit_push_insn): calling memcpy, bump TEMP 2 pointers worth.
1917 Thu Sep 1 16:39:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1919 * reload1.c (choose_reload_targets): Test for canceled reload
1920 before looking inside reload_out.
1922 * jump.c (jump_optimize): Bug in last change.
1924 * m68k.md (return): Pattern disabled; confuses Aug 29 stmt.c change.
1925 * ns32k.md, i386.md: likewise.
1927 * emit-rtl.c (emit_note_force): New, like emit_note but always do it.
1928 * stmt.c (expand_function_end): Use emit_note_force.
1930 Wed Aug 31 11:34:08 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1932 * reload1.c (alter_reg): New arg FROM_REG is hard reg that the pseudo
1933 was spilled from. Works with spill_stack_slot. Callers changed.
1934 Now all pseudos spilled from one hard reg get the same slot.
1935 (reload): Initialize new variable spill_stack_slot.
1937 * cse.c (cse_insn): Don't insert floating point mems if -ffloat-store.
1939 * reload.c (find_equiv_reg): Allow no equivs for volatile memrefs.
1940 Also none for floating mem refs if -ffloat-store.
1942 * output-sparc.c (output_mul_by_constant): make `p' and `log' unsigned.
1944 Tue Aug 30 13:47:12 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1946 * jump.c (jump_optimize): Ignore other NOTEs while looking for
1947 a NOTE_INSN_FUNCTION_END.
1949 * integrate.c (save_for_inline): Flush extra call to max_reg_num.
1950 Don't copy NOTEs that are NOTE_INSN_FUNCTION_END.
1951 (copy_for_inline): Don't copy NOTEs that are NOTE_INSN_FUNCTION_END.
1953 * stmt.c (optimize_bit_field): If bit field is SRC, strip subregs
1956 * expmed.c (expand_mult): Special case for -1 as one operand.
1958 Mon Aug 29 12:14:51 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1960 * stmt.c (expand_goto_internal, expand_fixup): New arg LAST_INSN.
1961 (expand_return): Pass that arg in tail-recursive case.
1962 (other callers): Pass 0 for that arg.
1963 (expand_null_return): Handle HAVE_return nonzero w/ FUNCTION_EPILOGUE.
1964 (expand_null_return_1): New fn, has guts of old expand_null_return.
1965 (expand_return): Call expand_null_return_1 to pass LAST_INSN arg.
1966 (expand_return): Handle HAVE_return nonzero w/ FUNCTION_EPILOGUE.
1967 (expand_function_{start,end}): Likewise.
1968 (expand_cleanups): Fix typo in recursive-list case.
1969 (move_cleanups_up): New fn.
1971 * expr.c (expand_call): Execute cleanups_of_this_call on exiting.
1972 Notice calls to __builtin_new (but don't do anything about them yet).
1974 * reload.c (push_reload): If reloading a (SUBREG (MEM ...) ...),
1975 really reload just the MEM in the MEM's own mode.
1977 * sparc.md: Define patterns for insns that set the ccs.
1978 Define set-flag insns.
1979 New patterns for indexed load, and for optimizing signed bit fields.
1980 (mulsi3, umulsi3): Give "r" constraint to operand 0.
1981 Peephole optimizers recognize some cases where delay insns are safe.
1982 Changed patterns for call and return insns as well.
1984 * output-sparc.c (single_insn_src_p): New fn.
1985 (output_delay_insn): New fn.
1987 * tm-sparc.h (TARGET_EPILOGUE): New target flag.
1988 (NOTICE_UPDATE_CC): New clause for funny PARALLEL with a REG in it.
1990 * m68k.md (movqi): Use *'s to ensure preferencing d-regs.
1992 * c-parse.y (datadef): If traditional, no warning about no specs.
1994 Sun Aug 28 14:34:33 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
1996 * tm-i386.h: Define PROMOTE_PROTOTYPES.
1997 POINTER_BOUNDARY now 32.
1999 * regclass.c (reg_scan): Compute `max_parallel', max # of sets and
2000 clobbers in any insn in this function.
2001 * global-alloc.c (global_conflicts): Use that, not MAX_SETS_PER_INSN.
2003 * stmt.c (expand_asm_operands): MAX_SETS_PER_INSN limits # output ops.
2005 * emit-rtl.c (init_emit_once): Make elt 2 of {f,d}const0_rtx nonzero.
2007 * c-decl.c (lang_decode_option): Handle -Wwrite-string.
2008 * c-parse.y (combine_strings): If that flag, make array of const char.
2010 * expr.c (expand_expr): for INTEGER_CST, always use immed_double_const;
2011 never do output_constant_def (it didn't work).
2012 Also heed WORDS_BIG_ENDIAN.
2014 * varasm.c (output_constant): Handle integer CONST_DOUBLEs.
2015 (output_constant_def): Abort if arg is an INTEGER_CST.
2017 * emit-rtl.c (gen_rtx): Don't return {f,d}const0_rtx for DImode.
2019 Sat Aug 27 12:37:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2021 * c-decl.c (pushdecl): Global extern decls set TREE_PUBLIC
2024 * integrate.c (expand_inline_function): Handle parms that were
2025 passed in registers but whose homes are on the stack.
2027 * varasm.c (force_const_mem): Output ints according to spec'd mode.
2028 ({record,compare}_constant_rtx,const_hash_rtx,decode_rtx_const):
2029 Take mode as argument; pass it along.
2031 * c-parse.y (read_escape): No warning for `\{' or `\['.
2033 Fri Aug 26 12:23:07 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2035 * stmt.c (fixup_memory_subreg): Typo calculating big-endian adjust.
2037 * vax.md (call_value): Handle >255 args as in `call'.
2039 Thu Aug 25 16:00:51 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2041 * jump.c (delete_jump): Don't delete the cc-setter if it has autoinc.
2043 Wed Aug 24 16:33:37 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2045 * expr.c (expand_expr): For sun with a COND_EXPR, use SUBTARGET
2046 if validate_subtarget says ok.
2048 * tree.c (build_index_type): make_index_type moved here and renamed.
2050 * combine.c (move_deaths_2): New function.
2051 (try_distrib): Use that, not move_deaths.
2053 * tm-sparc.h (SHIFT_COUNT_TRUNCATED, STORE_FLAG_VALUE): Define them.
2055 * tm-sparc.h: FUNCTION_{PRO,EPI}LOGUE: Save room for ins and
2056 locals to spill to the frame if any ins *or* locals are live.
2058 * tm-sparc.h (NOTICE_UPDATE_CC): Delete the clause that always
2059 cleared the cc's for unrecognized insns.
2061 * reload1.c (reload_as_needed): Don't try to use a spill-reg
2062 in a basic block that wasn't spilled: ignore optional reloads.
2064 Tue Aug 23 09:45:05 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2066 * output-sparc.c (output_scc_insn): New function.
2068 * expr.c (expand_builtin, alloca): Round result of alloca
2069 up to a multiple of STACK_BYTES.
2071 * toplev.c (compile_file): Default main_input_filename is cc1 input.
2073 * tm-i386.h (FUNCTION_BOUNDARY): 32 avoids extra prefetch.
2075 * i386.md (movdi, movdf): Add `&' where needed in constraints.
2077 Mon Aug 22 11:57:51 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2079 * symout.c (symout_finish): Allocate typevector after the symout_types.
2081 Sun Aug 21 16:10:54 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2083 * tm-3b1.h (ASM_FORMAT_PRIVATE_NAME): Use a `_' as well as `%'.
2085 * expr.c (expand_expr): Typo setting MODE for MAX_EXPR.
2087 * Makefile (stage*): If ln fails, copy gnulib to stage*.
2088 (realclean): Do `clean' and then some.
2089 (install): new var USER_H specifies headers to copy.
2091 * c-typeck.c (build_binary_op_nodefault): LT_EXPR, etc.
2092 on ptr vs int failed to set result_type.
2093 (build_conditional_expr): Don't replace nonzero int
2094 with null_pointer_node.
2096 * combine.c (remove_links, try_distrib): New fns.
2097 (subst): New simplifications for ZERO_EXTEND, SIGN_EXTEND.
2098 (combine_instructions): Call try_distrib.
2099 (FAKE_EXTEND_SAFE_P): Allow SUBREGs.
2101 * m68k.md (non-FPA pattern for floatsisf2): Typo, had DF for SF.
2103 Sat Aug 20 12:04:37 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2105 * integrate.c (copy_address): Variant of copy_rtx_and_substitute.
2106 (copy_rtx_and_substitute): Use copy_address for MEM address that
2107 doesn't satisfy memory_address_p.
2109 * reload.c (find_reloads): If force_reload set, don't set WIN
2110 for a MEM even if `m', `o' or `g' in constraint.
2112 * i386.md (expendqihi2): Typo in asm template.
2114 * toplev.c (rest_of_compilation): Call clear_const_double_mem.
2115 * varasm.c (init_const_rtx_hash_table): Don't call it here.
2116 (immed_real_const): Don't record the rtx in the REAL_CST node.
2117 (force_const_double_mem, clear_const_double_mem): Use cc0_rtx, not 0,
2118 as flag for a CONST_DOUBLE not on the chain.
2120 * cccp.c (handle_directive): If traditional, do scan strings
2121 but accept unterminated ones.
2122 (collect_expansion): -traditional: Don't recognize comments in strings.
2123 Stringify arguments that appear within strings.
2124 (skip_quoted_string): -traditional: Always exit at newline.
2125 (macroexpand): -traditional: Don't put `"'s around stringified arg.
2126 (macarg): Set stringified_length accordingly.
2128 * c-decl.c (duplicate_decls): Avoid error redeclaring fcn after
2129 implicit decl if -traditional.
2131 * toplev.c (announce_function, report_error_function):
2132 Change communication logic between these fcns.
2134 * c-decl.c (lang_decode_options): Handle -Wall here.
2135 * toplev.c (main): not here.
2137 * tm-bsd386.h: Don't include tm-i386.h--be like tm-att386.h
2139 Fri Aug 19 11:08:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2141 * config-sun4.h: If sparc, include config-sparc.h.
2142 Never include alloca.h.
2144 * tm-m68k.h (TARGET_SWITCHES): Define `-mc68020', `-mc68000'.
2146 * c-decl.c (init_decl_processing): If traditional, use signed sizetype.
2148 * gcc.c (main): Use stderr for printing version.
2150 Thu Aug 18 14:42:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2152 * Version 1.26 released.
2154 * m68k.md (movsi): Constraint change for fpa regs.
2156 * reload1.c (choose_reload_targets): Clear reg_reloaded_contents
2157 for all regs of a multi-reg group.
2159 * reload.c (find_equiv_reg): HARD_REGNO_NREGS wants mode, not size.
2160 Check properly for overlap against multiword reload regs.
2162 Tue Aug 16 14:54:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2164 * varasm.c, expr.c (immed_double_const): immed_real_const_2 renamed.
2166 * tm-i386.h (SFVALUE): Should be `double'.
2167 * tm-i386v.h (SFVALUE): Don't override it.
2169 * tm-i386.h (ASM_OUTPUT_ASCII): Don't define it.
2170 * tm-att386.h: Definition moved here.
2172 * tm-bsd386.h: New file, for Sequent.
2173 * tm-seq386.h: New file, for Sequent.
2174 * config-i386.h: New file, for Sequent.
2176 * expr.c (push_block): Take account of STACK_POINTER_OFFSET.
2177 (expand_call): Therefore need not do so here.
2179 * optabs.c (expand_fix): Typo if going via DImode.
2181 * reload1.c (choose_reload_targets): Don't * reload_reg_rtx if 0.
2183 Mon Aug 15 01:11:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2185 * integrate.c (copy_for_inline): Don't try copying 0-length vector.
2186 (copy_rtx_and_substitute): Likewise.
2188 * m68k.md (andsi3): use clrw instead of andw #0.
2190 * print-tree.c (walk): Don't omit permanent nodes reach from temps.
2192 * m68k.md (zero_extend...): Reinstall the old zero-extend insns
2193 without names, so they can help the combiner.
2195 * expr.c (expand_expr): Don't use hard regs as subtargets.
2196 * combine.c (FAKE_EXTEND_SAFE_P): Always consider MEMs safe.
2197 * reload.c (find_reloads): For (SUBREG (MEM ...)) set force_reload.
2199 * c-parse.y (redescape): Don't warn for `\('.
2201 * reload.c (find_reloads_address): #if was backwards.
2203 Sun Aug 14 16:52:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2205 * c-typeck.c (shorten_compare): Change switch to chain of ifs.
2207 * tm-ns32k.h (PRINT_OPERAND): CONST_DOUBLE contains a double
2208 even if it's SFmode.
2209 (FUNCTION_PROLOGUE): If MAIN_FUNCTION_PROLOGUE defined, run it.
2211 * cccp.c (file_buf): Rename field `free' to `free_ptr'.
2213 * Makefile (ALLOCA, MALLOC, LIBDEPS): New variables for easier
2214 customization. Executables depend on LIBDEPS instead of OBSTACK1.
2215 (cccp): Deps and libs now work like the others.
2217 * output-i386.c (notice_update_cc): Rewritten for clarity.
2219 * tm-i386.h (OUTPUT_JUMP): If CC_IN_OVERFLOW, abort.
2221 * recog.c (push_operand): Test for stack_pointer_rtx.
2223 * integrate.c (copy_rtx_and_substitute): Don't submit push-operands
2224 to `memory_address'--it would lose on machines where pushing is
2225 a special insn, not an addressing mode.
2227 * output-i386.c (top_dead_p): No more redundancy--that didn't work.
2228 Now one method if optimized, one for call_insns if noopt, one for
2229 other insns if noopt.
2230 (call_top_dead_p): fp_top_dead_p renamed
2231 and only the call-insn clause remains.
2233 * i386.md (cmpsf, cmpdf): Output was backwards.
2234 (", tstsf, tstdf): Set CC_IN_80387.
2235 (incb pattern): Restrict allowable registers.
2236 (movsf, movdf): Call top_dead_p only when absolutely necessary.
2237 (call_value): Use top_dead_p, not subroutine.
2239 Sat Aug 13 15:19:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2241 * stupid.c (stupid_life_analysis): If only 1 reg class,
2242 call stupid_find_reg only once.
2244 * stmt.c (expand_function_start):
2245 Clear current_function_pretend_args_size.
2247 * expr.c (store_constructor): If target is hard reg, go via a pseudo.
2249 * varasm.c (real_constant_chain): Now static in this file.
2250 (force_const_double_mem): Put R on chain if not already on.
2251 (clear_const_double_mem): Set XEXP (,2) to 0;
2252 also clear real_constant_chain and the chain links.
2253 * emit-rtl.c (init_emit_once): Put 0 in XEXP (,2) of {d,f}const0_rtx.
2254 * cse.c (canon_hash): For CONST_DOUBLE, ignore elts other than 0,1.
2256 Fri Aug 12 11:48:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2258 * reload1.c (order_regs_for_reload): Handle REG_ALLOC_ORDER more spots.
2260 * global-alloc.c (find_reg): error handling REG_ALLOC_ORDER;
2261 also error skipping regs known to be hopeless.
2262 * local-alloc.c (find_free_reg): error skipping hopeless regs.
2263 * stupid.c (stupid_find_reg): likewise.
2265 * local-alloc.c (qty_compare_1): typo, had q1 for q2.
2267 * expr.c (expand_expr): Don't use supplied target when optimizing
2268 arithmetic using a comparison or conditional; that target could be
2269 needed for the result of the comparison.
2271 * reload1.c (reload): Don't set reg_equiv_constant for hard regs.
2273 * stupid.c (stupid_life_analysis): Ignore reg R if regno_reg_rtx[R]==0.
2275 * symout.c (symout_finish): Use perm. links in permanent_fwd_refs.
2277 * i386.md (movhi, movqi): Check no_labels_between_p.
2279 Thu Aug 11 10:44:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2281 * c-parse.y (yylex): Out-of-range float is just a warning.
2283 * tm-gnx-v3.h: New file for Genix.
2284 * ns32k.md (movsi, call, call_value): GNX_V3 conditionals.
2285 * tm-ns32k.h (PRINT_OPERAND_ADDRESS): Changes for Genix.
2287 * ns32k.md (insv patterns): Operand 0 is read-write.
2289 * i386.md (tstsf, tstdf): Don't push the arg if already in st(0).
2291 * varasm.c (output_constant_def): If EXP is permanent, the rtl is too.
2293 * tm-*.h (ASM_OUTPUT_{LOCAL,COMMON}): New 4th arg, rounded size
2295 * varasm.c (assemble_variable): Pass new arg.
2296 * symout.c (symout_init): Likewise.
2298 * cccp.c (rescan): Don't let char const cross lines.
2299 (skip_quoted_string, macarg1, discard_comments): Likewise.
2301 * expr.c (expand_expr, VAR_DECL case): handle flag_force_addr.
2303 * tm-i386v.h (TAREGT_DEFAULT): Assume 80387.
2304 * config-i386v.h (alloca): Use __builtin_alloca under GNU C.
2306 Wed Aug 10 11:23:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2308 * reload.c (find_reloads): Alternative loses
2309 if it has no regs for a reg operand.
2311 * tm-sun3.h (STARTFILE_SPEC): Define, for fpa's sake.
2312 * tm-m68k.h: New hard regs, reg classes, reg class letters,
2313 target flag and switch, operand syntax and CC handling for fpa.
2314 * m68k.md: Add fpa insn patterns.
2315 * output-m68k.c (standard_SunFPA_constant_p): New fn.
2316 (output_move_const_{single,double}): Handle fpa regs.
2317 (singlemove_string): Handle fpa regs.
2319 * stmt.c (fixup_memory_subreg): Result had wrong mode.
2321 * ns32k.md (insv patterns): Adjust bit-number along with address.
2323 * sparc.md (negdf2, absdf2): Order of the words was backwards.
2325 * reload1.c (new_spill_reg): End confusion about meaning of 1st arg.
2326 Arg counted_for_nongroups had wrong type.
2328 * tm-m68k.h (FUNCTION_{PRO,EPI}LOGUE): Round frame size to word bdry.
2330 Tue Aug 9 07:53:59 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2332 * tm-i386.h (ASM_OUTPUT_ASCII): Don't lose the sign bit.
2334 * tm-i386v.h (STARTFILE_SPEC, LIB_SPEC): Use crt1.o, crtn.o.
2336 * stmt.c (fixup_var_refs_1): fixup all memory subregs.
2338 * reload1.c (choose_reload_targets): Don't strip paradoxical
2339 subregs from values to be reloaded.
2341 * cccp.c: Comment out text after #endif.
2343 * c-parse.y (init): Allow empty braces as init; warn if pedantic.
2345 * c-decl.c: Move C-specific options from toplev.c.
2346 * c-tree.h: Move their externs from flags.h.
2347 * c-decl.c (lang_decode_option): New fn called by `main'.
2348 * toplev.c (sorry, really_sorry): New error reporting fns.
2349 * c-decl.c (language_string): New var, name of this language.
2351 * c-parse.y: Don't include flags.h.
2352 * dbxout.c: Do include it.
2354 * dbxout.c (dbxout_type): Handle function fields and static fields
2355 and basetypes. Handle METHOD_TYPE and REFERENCE_TYPE.
2356 Abort on unexpected tree code.
2357 (dbxout_args): New fn to output prototype arg types.
2358 (everywhere): Use IDENTIFIER_LENGTH instead of strlen.
2359 (dbxout_type_name): Cleanup; avoid strlen.
2361 * local-alloc.c (reg_is_set): Don't call {post_,}mark_life for pseudos.
2363 * tree.h (TYPE_BASECLASSES): New field in type nodes.
2365 * ns32k.md (insv patterns): Was adjusting the address wrong.
2367 * c-decl.c (grokdeclarator): Just a warning for inline varargs fn.
2369 Mon Aug 8 08:16:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2371 * varasm.c (immed_real_const_2): Guts of creating a CONST_DOUBLE.
2372 * expr.c (expand_expr): Use that for 64-bit int constants.
2374 * loop.c (invariant_p): Don't check x->unchanging; it's not safe.
2376 * c-typeck.c (build_indirect_ref): Handle flag_volatile here
2377 so that it propagates to component_refs.
2378 * expr.c (expand_expr): No need to handle it here.
2380 * integrate.c (save_for_inline, expand_inline_function):
2381 Set up insn_map to record mapping of old uids to copied insns.
2382 (copy_for_inline, copy_rtx_and_substitute): Map 'u' refs via insn_map.
2384 * emit-rtl (emit_label, emit_barrier): Return what was emitted.
2386 * sdbout.c (sdbout_filename): Split off from sdbout_init.
2387 * tm-encore.h, tm-3b1.h, tm-vaxv.h, tm-att386.h (ASM_FILE_START):
2388 Call sdbout_filename.
2390 * toplev.c: Better messages for invalid options.
2392 * tm-m68k.h (PRINT_OPERAND_ADDRESS): Handle labelref+basereg.
2394 * tm-3b1.h (PUT_SDB_DIM): Override sdbout's definition.
2395 (ASM_FORMAT_PRIVATE_NAME): Override tm-hp...s definition.
2396 (PUT_SDB_PLAIN_DEF): Prepend `~' to specified name.
2397 (SDB_GENERATE_FAKE): Prepend `~'.
2399 * gcc.c: Include config.h before obstack.h.
2401 Sun Aug 7 11:17:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2403 * stor-layout.c (layout_decl): Do nothing with CONST_DECL.
2404 Treat FRIEND_DECLs like variables.
2405 (layout_record): Handle VAR_DECLs and FUNCTION_DECLs in the fieldlist.
2406 Handle basetypes (almost like fields).
2407 (layout_type): Handle REFERENCE_TYPE and METHOD_TYPE.
2409 * tree.c (temp_tree_cons): New fn.
2410 (array_type_nelts, simple_cst_equal): New fns.
2411 (lvalue_p): CALL_EXPR is an lvalue if it returns REFERENCE_TYPE.
2412 () Manage TYPE_REFERENCE_TO.
2413 (TYPE_HASH_SIZE): Bigger.
2414 (type_list_equal): Compare the TREE_PURPOSE fields.
2415 (build_reference_type, build_method_type): New fns.
2417 * stmt.c (block_stack): Add field `cleanups' to each element.
2418 (expand_{start,end}_bindings, expand_decl): Update that field.
2419 (stack_block_stack): Now includes blocks that have cleanups.
2420 (goto_fixup_chain): Add field `cleanup_list_list'.
2421 (expand_goto_internal): Execute cleanups for blocks being exited.
2422 (expand_fixup): Make a fixup if any block has cleanups.
2423 (fixup_gotos): New args CLEANUPS and DONT_JUMP_IN.
2424 Execute cleanups for blocks being exited, or add to cleanup_list_list.
2425 (expand_end_bindings): New arg DONT_JUMP_IN. Execute any cleanups.
2426 (expand_decl): New arg CLEANUP.
2427 (expand_cleanups, fixup_cleanups): New functions.
2428 * c-decl.c: Calls to expand_decl pass new arg.
2429 * c-parse.y: Calls to expand_end_bindings pass new arg.
2431 * stmt.c (expand_return): Handle INIT_EXPR, or bare RESULT_DECL.
2433 * stmt.c (case_stack): Add field `has_default' to each element.
2434 (pushcase,expand_end_case): Maintain and use that field.
2436 * stmt.c (pushcase): Handle RANGE_EXPR cases.
2437 (pushcase_range): Create RANGE_EXPR cases.
2439 * final.c (final): Always pass 3 args to ASM_OUTPUT_CASE_END.
2440 * tm-3b1.h: Delete offending spaces.
2442 Fri Aug 5 16:17:16 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2444 * integrate.c (copy_rtx_and_substitute): Don't make fp+reg+const
2445 without an intermediate temporary reg.
2447 * print-tree.c (dump): Don't print an identifier's chain.
2449 * toplev.c (compile_file): Treat `.i' suffix like `.co'.
2451 * gcc.c: New config macro CC1_SPEC: extra switches for cc1.
2452 Make a new spec for `.i' files.
2454 * c-decl.c (pushdecl, finish_decl): Delete duplicate tests.
2456 * varargs.h: Maybe include va-sparc.h or va-spur.h.
2457 * va-sparc.h: New file.
2458 * va-spur.h: renamed file.
2460 * tree.h ({TYPE,DECL}_LANG_SPECIFIC): Types and decls can point to
2461 language-specific structures containing other info.
2462 * print-tree.c (dump): Hooks for printing the language-specific
2463 data in types and decls.
2465 Thu Aug 4 08:54:30 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2467 * tree.def: Add some tree codes for C++.
2469 * Rename files: parse.[yh] -> c-parse.[yh], decl.c -> c-decl.c,
2470 typecheck.c -> c-typeck.c.
2471 Part of tree.c split out to c-convert.c.
2473 * expr.c (push_block): No longer static.
2474 (expand_expr): Handle REFERENCE_EXPR and INIT_EXPR.
2475 (expand_call): Turn a METHOD_TYPE to a FUNCTION_TYPE.
2476 This is probably not all that is required.
2478 * parse.y (yylex): Use p->rid to check for `signed' and `inline'.
2480 * tm-sparc.h (ASM_OUTPUT_SOURCE_LINE): typo.
2482 * sparc.md: Add a pattern for andcc.
2483 (cmpsf): Clobber reg 32 in DFmode.
2484 (branches): There are no unsigned floating branches; abort.
2485 (bgt): Correct name of floating variant.
2486 (mov?i): Load small constants via mov.
2487 (movdf for constants): Use mov, not add, to move regs.
2488 (movsf, floatsi*, fix*): Simplify reg-to-reg-via-mem move generation.
2489 (trunc*): Use mov, not or, to move regs.
2490 (negsi2, one_cmplsi2): Avoid "neg" and "not" assembler syntax.
2491 (call...): Generate "call" insns; handle #-reg-parms value.
2492 * Define some peepholes for return insns.
2494 * tm-sparc.h (TARGET_SUN_ASM): New target flag.
2495 (TARGET_DEFAULT): Now 1.
2496 (FRAME_POINTER_REQUIRED): Now 1.
2497 (STARTING_FRAME_OFFSET): Now -16.
2498 (LEGITIMATE_CONSTANT_P): Only CONST_DOUBLEs fail.
2499 (FUNCTION_{PROLOGUE,EPILOGUE}): Rewritten.
2501 * output-sparc.c (small_int): Test for int that mov can load.
2502 (singlemove_string): Use mov, not add.
2503 (output_move_double): Changes for overlap and for use of ldd, std.
2504 (output_fp_move_double): Use ldd, std when safe.
2505 (make_f0_contain_0): Simplify.
2507 * integrate.c (expand_inline_function): Some special CALL_INSN
2508 handling no longer needed due to REG_FUNCTION_VALUE_P.
2510 * m68k.md (movqi): Constraints allow moving areg to areg.
2512 Wed Aug 3 08:29:31 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2514 * Version 1.25 released.
2516 * integrate.c (expand_inline_function): Don't let MEM be inline_target.
2518 Tue Aug 2 09:13:37 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2520 * integrate.c (INTEGRATE_THRESHOLD): New macro, default dfn here.
2521 (function_cannot_inline_p): Use it.
2523 * rtl.h (REG_FUNCTION_VALUE_P): New macro.
2524 * stmt.c (expand_function_start): Set that flag in the return reg.
2525 * integrate.c (expand_inline_function, copy_rtx_and_substitute):
2526 Test that flag to test for the return value.
2527 * expmed.c (expand_fixed_bit_field, expand_mult, expand_divmod): ditto.
2528 FUNCTION_VALUE_OUTGOING_REGNO_P no longer needed.
2530 Mon Aug 1 02:46:08 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2532 * integrate.c (copy_rtx_and_substitute): If NO_FUNCTION_CSE,
2533 don't break out constant fcn addresses here.
2535 * expmed.c (expand_fixed_bit_field): Tests of FUNCTION_VALUE_REGNO_P
2538 Sun Jul 31 13:10:07 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
2540 * recog.c (indirect_operand): New function.
2542 * output-i386.c (print_operand): define %*. eliminate %s.
2543 (fp_top_dead_p): In nonopt case, skip stack-adjusts while looking
2544 for the insn that uses the function value.
2546 * varasm.c (text_section, data_section): New functions.
2547 Replaced explicit printfs elsewhere with calls to them.
2548 * final.c (final_start_function): Use these fns.
2549 * sdbout.c (sdbout_one_type): Use text_section.
2550 * tm-att386.h (ASM_OUTPUT_LOCAL): Use data_section.
2552 * expr.c (prepare_call_address): Don't pass const via reg if no -O.
2554 * tm-sparc.h (FUNCTION_{PROLOGUE,EPILOGUE}) Round the size of saved
2555 registers. Fix bug counting saved registers.
2557 * tm-sparc.h (ASM_OUTPUT_SOURCE_LINE): Define this macro.
2559 * tm-sparc.h (DEFAULT_SIGNED_CHAR): Now 1.
2561 * expr.c (expand_builtin, alloca case): Adding stack offset needs
2562 special code if TARGET is a MEM.
2564 * dbxout.c (dbxout_init): Define Ltext: after the reference to it.
2566 * tm-3b1.h (ASM_OUTPUT_CASE_LABEL): `short 0' triggers assembler bug;
2567 `short L%nn-L%nn' supposedly works.
2569 Sat Jul 30 00:25:52 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2571 * sparc.md (floatsidf2): Minor change in output.
2572 (fix_trunc{sf,df}si2): Similar.
2574 * output-sparc.c (output_fp_move_double): Minor change in output.
2576 * stmt.c (assign_parms): Don't count stack space for struct value
2577 address if the function does not have one.
2579 * sdbout.c: Output .dim's and total size for arrays.
2580 Detect bit-fields properly.
2581 Changed handling of structure tags.
2583 * reload1.c (new_spill_reg): counted_for_nongroups is a new arg;
2584 store 1 in it if this reg is needed for max_nongroups.
2586 * reload1.c (choose_reload_targets): Allow inheritance of DFmode
2587 if it needs only one register.
2589 * reload1.c (choose_reload_targets): Delete the death-note from the
2590 store-insn of an inherited reload if PRESERVE_DEATH_INFO_REGNO_P.
2592 * reload.c (push_reload): Crash if PREFERRED_RELOAD_CLASS is NO_REGS.
2593 (find_reloads): Smarter handling of forcing CONST_DOUBLE into mem.
2594 Check PREFERRED_RELOAD_CLASS & do this if it says NO_REGS.
2596 * reload.c (subst_indexed_address): Handle case with 2 regs
2597 and no constant term.
2599 * local-alloc.c: New variable qty_n_refs, set from reg_n_refs
2600 and tested in qty_compare{,_1}.
2601 (combine_regs): Update qty_n_refs.
2602 Update qty_preferred_or_nothing more intelligently.
2604 * regclass.c (regclass, reg_class_record, record_address_regs):
2605 Count the number of refs to each reg along with the costs,
2606 and use it when computing the preferred_or_nothing flag.
2607 (Can't use reg_n_refs since that is weighted by loop depth).
2609 * global-alloc.c (global_alloc): Enable test of OVERLAPPING_REGNO_P
2610 for setting no_global_alloc_regs.
2612 * expr.c (prepare_call_address): Use force_reg, so it gets a REG_EQUIV.
2614 * optabs.c (can_{fix,float}_p): Return enum insn_code, not a function.
2615 (init_{fix,float}_tab): Store enum insn_code's in fixtab and floattab.
2616 (expand_{fix,float}): Change calls to can_{fix,float}_p.
2617 Also, use emit_unop_insn to make the actual insns.
2619 Fri Jul 29 02:42:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2621 * cccp.c (initialize_char_syntax): If dollars_in_identifiers is 0,
2622 set entries for `$' to 0.
2623 Set entries to 1 rather than incrementing them.
2625 Tue Jul 26 11:14:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2627 * varasm.c (assemble_variable): Make SDB output only if top-level.
2629 * local-alloc.c (reg_is_set): Arg to mark_life is regno, not qty.
2631 * output-ns32k.c (print_operand_address): New flag SEQUENT_BASE_REGS
2632 * tm-sequent.h: Define that flag.
2634 * Makefile: add some missing deps.
2636 * tm-encore.h (ASM_FILE_START): Changed to do nothing.
2638 * sdbout.c (sdbout_init): Fix two dumb errors.
2640 * sdbout.c (sdbout_end_epilogue): No longer takes arg.
2641 Examine current_function_decl here, not in caller.
2642 * final.c: Call changed.
2644 Mon Jul 25 01:32:54 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2646 * stor-layout.c (layout_record): Handle PCC_BITFIELD_TYPE_MATTERS.
2648 * tm-3b1.h (__PTR_TO_INT, __INT_TO_PTR): Define these, to alter
2651 Sun Jul 24 17:56:53 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2653 * Padding for an arg may now go below or above it; new macro
2654 FUNCTION_ARG_PADDING can now choose which, or can inhibit padding.
2655 This makes for compatibility with PCC.
2656 * expr.h: Default definition of that macro.
2657 * expr.c (emit_push_insn): Put the padding above or below.
2658 (expand_call): Don't count the padding if none wanted.
2659 * stmt.c (assign_parms): Adjust parm stack addr if padded below.
2660 Don't count the padding if none wanted.
2661 * tm-3b1.h: Define FUNCTION_ARG_PADDING: no padding for > 4 bytes.
2663 * final.c (alter_subreg): Now returns the altered value
2664 (but may still modify the original structure).
2665 Handles (SUBREG:DI (CONST_DOUBLE:DF...)) by returning the CONST_DOUBLE.
2667 * m68k.md (DImode push): now allows `F'.
2668 * ns32k.md (movdi): now allows `F'.
2670 * tm-m68k.h (FIX_FRAME_POINTER_ADDRESS):
2671 Handle indexed references to frame pointer.
2672 * tm-i386.h, tm-m88k.h, tm-sparc.h: Likewise.
2674 * cse.c (predecide_loop_entry): Must search for the loop top label.
2676 Sat Jul 23 08:53:01 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
2678 * parse.y (yylex): typo in wide strings.
2680 * tm-vaxv.h, config-vaxv.h: New files for sysV on vax.
2682 * config-sun4.h: If sparc and not compiling with GCC, include alloca.h.
2684 Fri Jul 22 02:38:02 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
2686 * tree.c (build_real_from_int_cst): CHECK_FLOAT_VALUE at proper place.
2688 * tm-hp9k320.h ({TEXT,DATA}_SECTION_ASM_OP): Should not include a tab.
2689 * final.c (final_start_function): Don't output a tab before those.
2691 * sdbout.c (PUT_SDB_EPILOGUE_END): New macro.
2692 * sdbout.c (sdbout_end_epilogue): New function to output the C_EFCN.
2693 Like former sdbout_mark_end_function. Uses that macro.
2694 * final.c (final_end_function): Call that function.
2695 * tm-3b1.h: Override PUT_SDB_EPILOGUE_END like the other PUT_SDB...
2697 * tm-3b1.h (PRINT_OPERAND_ADDRESS, ASM_OUTPUT_INTERNAL_LABEL,
2698 ASM_OUTPUT_CASE_{LABEL,END}): Put a % in names of internal labels.
2699 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_ADDR_{VEC,DIFF}_ELT):
2700 New macros, for same reason.
2701 (FUNCTION_PROFILER): New macro, for % and also to put addr in a0.
2703 * final.c (output_source_line): For fcn's first line, use lineno 1.
2704 * sdbout.c (sdbout_end_function): Clear sdb_begin_function_line
2705 so can recognize first line of next function.
2707 * sdbout.c (sdbout_init): Output the .file pseudo here.
2708 * tm-3b1.h, tm-att386.h (ASM_FILE_START): Don't do it here.
2710 * sdbout.c (PUT_SDB_VAL): Output leading tab, like the other macros.
2711 * tm-3b1.h (PUT_SDB_VAL): Likewise.
2713 * regclass.c (regclass): Cast enums to int, not char.
2714 * varasm.c (record_constant): Likewise. Avoids 3b1 PCC bug.
2716 * decl.c (pushdecl): Better choice of error message for extern/static.
2718 * emit-rtl.c: Do look for STRUCT_VALUE_INCOMING_REGNUM.
2720 Thu Jul 21 02:13:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2722 * cse.c (canon_hash): CONST_INT case failed to add to prev. value
2723 of HASH; was inconsistent with cse_insn mem address hashing.
2725 * m68k.md (divide insns): Alternate 3B1 syntax for `swap' insn.
2727 Wed Jul 20 18:27:10 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2729 * m68k.md: In shift-by-24 patterns, rejects autoincrement memrefs
2730 since they are mode-dependent.
2732 Tue Jul 19 13:01:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2734 * parse.y (check_newline): Handle #ident by writing .ident to output.
2735 * cccp.c: Don't handle #ident; delete IDENT_DIRECTIVE conditionals.
2737 * stmt.c (expand_end_case): In compares, put constant arg second.
2739 * jump.c (jump_optimize): Delete conditional jump if followed by
2740 an unconditional jump to the same place.
2742 Mon Jul 18 17:49:13 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2744 * emit-rtl.c (init_emit_once): Now STRUCT_VALUE_INCOMING is an
2745 expression for an rtx. It can make a MEM. Likewise STRUCT_VALUE
2746 for outgoing structure value addresses.
2748 * stmt.c (assign_parms): If incoming struct addr on stack, leave room.
2749 * expr.c (expand_call): If outgoing addr on stack, push it like an arg.
2751 * PROMOTE_PROTOTYPES means if proto says `char', pass `int'.
2752 * decl.c (get_parm_info): Alter DECL_ARG_TYPE to do this.
2753 * typecheck.c (actualparameterlist): Convert value for this.
2754 * tm-m68k.h: Define PROMOTE_PROTOTYPES.
2756 Sun Jul 17 14:25:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2758 * jump.c (jump_optimize): peephole can delete insns following INSN.
2759 Set NEXT after peephole.
2761 * decl.c (finish_decl): Always restart perm alloc if global.
2763 * stmt.c (assign_parms): When a float is passed as double, store the
2764 float in low-numbered word. Avoids trouble with parm_map in integrate.
2766 * vax.md: New pattern for decrement and compare against -1.
2768 Sat Jul 16 14:18:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2770 * decl.c (pushdecl): Ignore previous decl if it's really an error_mark.
2772 * stmt.c (expand_start_case): Make sure case_stmt.start is a NOTE.
2774 * combine.c (subst): In the simplification for
2775 (set (zero_extract ...) (and/or/xor (zero_extract ...) const)),
2776 require same memory location in both extracts.
2780 * cse.c (fold_rtx): Save time in memory address if it didn't change.
2781 Don't replace cheaper expression with coslier one.
2782 (cse_insn): Reenable generation of REG_WAS_0. It wasn't obsolete.
2784 * cccp.c: `ident' has 5 letters.
2786 * final.c (output_source_line): SDB can't handle multiple source
2787 files, so ignore line-NOTEs for other files.
2789 * hard-reg-set.h: New var reg_class_size (# regs in the class).
2790 * regclass.c (init_reg_class): Set it up.
2792 * reload.c (find_reloads): If an earlyclobber is in a class of size 1
2793 as an output, reload it as input instead of as output.
2795 * reload1.c (choose_reload_targets): Improve elimimation of spilled
2796 pseudos made dead by reloading: if pseudo is limited to one block
2797 and that block contains just stores, delete all the stores.
2799 * reload1.c (choose_reload_targets): reg_has_output_reload is now
2800 static and survives through reload pass.
2801 (forget_old_reloads): Don't cancel data on spilled regs of output
2802 reloads of the insn just made.
2804 * sdbout.c (sdbout_one_type): Go to .text before defining a type.
2805 (sdbout_block): Test against do_block was backwards.
2807 * stmt.c (expand_end_function): New args to make a NOTE for last line.
2808 * decl.c (finish_function): Pass the args.
2810 * rtl.c (no_labels_between): New function.
2811 * vax.md (movsi): Call it.
2813 * print-tree.c (dump): Don't follow chain of a decl.
2815 * rtl.c (volatile_refs_p): Moved from flow.c.
2817 Fri Jul 15 13:36:20 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
2819 * sdbout.c (PUT_SDB...): Allow config to override any of them.
2820 * sdbout.c (PUT_SDB_{BLOCK,FUNCTION}_{START,END}): New macros.
2821 * tm-3b1.h: Override all of them.
2822 * sdbout.c (SDB_GENERATE_FAKE): New macro to create dummy tag name.
2823 (gen_fake_label): Use SDB_GENERATE_FAKE.
2824 * tm-3b1.h: Override its defn.
2826 * sdbout.c (sdbout_mark_function_end): Unused; deleted.
2828 * tm-3b1.h: Define SDB_DEBUGGING_INFO.
2830 Thu Jul 14 01:55:15 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
2832 * config-sunv4.h: New file for Sunos version 4.
2834 * tm-sun3.h (CPP_SPEC): Define mc68010 or mc68020, depending.
2836 Tue Jul 12 15:31:30 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2838 * stmt.c (expand_fixup, expand_goto_internal): New functions to
2839 emit a jump that can restore the stack level, even without tree node.
2840 (expand_null_return, expand_exit_loop, etc.): Use expand_goto_internal.
2841 (expand_end_function): Do fixup_gotos after emitting return_label.
2843 * cse.c (predecide_loop_entry): Avoid using JUMP_LABEL.
2844 * flow.c (find_basic_blocks): Avoid using JUMP_LABEL.
2846 * flow.c (insn_dead_p): Delete special case for stack-adjust insns.
2847 (life_analysis): Mark those insns with INSN_VOLATILE here.
2848 (mark_used_regs): a SET of a hard reg, in a volatile insn,
2849 always makes its source live.
2851 Mon Jul 11 10:46:26 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2853 * ns32k.md (floatqidf2): Commented out since assemblers warn about it.
2855 Sun Jul 10 11:49:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2857 * decl.c (xref_tag): Default the TYPE_MODE of enum xrefs
2858 to avoid making MEM and REG with VOIDmode.
2860 * vax.md (call): If > 255 args, pop them explicitly.
2862 Sat Jul 9 10:53:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2864 * symout.c (symout_types): Fix up forward refs to previously
2865 undefined structure types.
2866 (filter_undefined_types): New function.
2867 (symout_finish, symout_function_end): Output any never-defined structs.
2868 * toplev.c (rest_of_compilation): call symout_function_end.
2870 * parse.y: Don't declare errno if it's a macro.
2872 * tm-hp9k320 (FUNCTION_PROFILER): Pass ptr in a0, not d0.
2874 * typecheck.c (truthvalue_conversion): Flush unnec recursive call.
2875 (build_cond_expr): Bug testing zeroness of IFEXP with TREE_LITERAL.
2877 * cse.c (fold_cc0): Constants not CONST_INT are certainly nonzero.
2878 * fold-const.c (fold): ADDR_EXPR is not equal to zero.
2880 * cccp.c (macroexpand): Disable the macro even if traditional.
2881 (rescan): Error if use a disabled macro.
2883 * combine.c (try_combine): Don't substitute a different reg into
2884 an auto-increment. Handle multiple REG_INC notes in I1 or I2.
2886 * decl.c (implicitly_declare): Don't reuse old implicit decl.
2888 * varasm.c (assemble_variable): Avoid syntax err if no DBX and no SDB.
2889 * final.c (output_source_line): likewise.
2891 * fold-const.c (fold): PLUS/MINUS_EXPR: in case of cancellation,
2892 convert result to original type.
2894 * regclass.c (reg_class_record): Changed arguments include address
2895 of entire vector of constraints.
2897 Fri Jul 8 07:59:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2899 * reload1.c (reload): Find groups of more than 2 registers.
2901 Thu Jul 7 08:33:07 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2903 * expr.c (emit_push_insn): Typo adjusting arg for bcopy
2904 if not STACK_GROWS_DOWNWARD.
2906 * gnulib.c (_cmpsf2): Value is int, not SFVALUE.
2908 Wed Jul 6 11:53:46 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2910 * tm-encore.h, tm-3b1.h: Replace ASM_FILE_START; output a .file.
2912 * *m88*: New files for Motorola 88000. They don't really work.
2914 Tue Jul 5 14:40:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2916 * local-alloc.c (combine_regs): Don't tie a reg to itself.
2918 * finxincludes: Make a variable LIB for the target dir.
2920 * m68k.md (movhi, addhi3, addsi3): Micro-optimize choice of asm insns.
2922 * expr.c (expand_expr): Use new macros NO_DEFER_POP, OK_DEFER_POP
2923 in several places, to keep stack predictable.
2925 Mon Jul 4 09:50:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2927 * integrate.c (function_cannot_inline_p): Increase threshold size.
2929 * flags.h (use_gdb_dbx_extensions): New variable.
2932 * sdbout.c (PUT_SDB_TAG): Delete duplicate defn.
2934 * expr.c (expand_expr): For FIX_TRUNC_EXPR to unsigned short/char,
2935 REALLY go via signed int.
2937 * loop.c (may_trap_p): Was detecting floating arithmetic incorrectly.
2939 * tm-news800.h (CPP_PREDEFINES): Add sony and sony_news.
2941 * parse.y (check_newline): Avoid infinite loop at eof.
2943 Sat Jul 2 10:35:17 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2945 * Version 1.24 released.
2947 * stmt.c (expand_asm_operands): Produce proper no-outputs insn.
2948 * recog.c (asm_noperands): Detect no-outputs insns.
2949 (decode_asm_operands): Likewise.
2950 * reload.c (find_reloads): Likewise (add case ASM_OPERANDS:).
2952 * local-alloc.c (block_alloc): Tests of qty_compare were backwards.
2954 * flow.c (life_analysis): Turn off code that finds regs live at
2955 function start and marks them not local to any basic block.
2957 * cse.c (insert_regs): Fix typo (UNITS_PER_WORD).
2959 * cccp.c: Define max.
2961 * expr.c (expand_expr): Put each SAVE_EXPR's reg on save_expr_regs,
2963 * stmt.c (expand_function_end): Mark each of those regs live
2964 at the end and also retroactively at the beginning of the function.
2966 * output-vax.c (print_operand_address): New function from old macro.
2967 * tm-vax.h (PRINT_OPERAND_ADDRESS): Call that function.
2969 * config-vms.h: If not under GNU C, define X_OK, etc.
2971 * expr.c (move_by_pieces_1): Use * to call GENFUN.
2972 (expand_expr): Compare DECL_FUNCTION_CODE against an enum const.
2973 (preexpand_calls): Likewise.
2974 * genrecog.c (write_tree): Likewise.
2975 * final.c (final): Use * to call the output function.
2976 * reload.c (push_reload): Rename `noshare' to `dont_share'.
2978 * genoutput.c (output_epilogue): Put more newlines in insn_outfun.
2979 * genemit (gen_exp): Put in more newlines.
2981 Fri Jul 1 00:23:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2983 * global-alloc.c (allocno_compare): Avoid comparisons of floats
2984 since that is sensitive to roundoff errors.
2986 Thu Jun 30 09:25:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
2988 * sdbout.c (PUT_SDB_{DEF,TAG}): Use ASM_OUTPUT_LABELREF.
2989 (PUT_SDB_PLAIN_DEF): New name for old defn of PUT_SDB_DEF
2990 (sdbout_one_type): Use PUT_SDB_PLAIN_DEF for `.eos'.
2992 * tree.c (allocation_temporary_p): New fcn.
2993 (all_types_permanent): New variable.
2994 (make_node): If that's set, make each ...TYPE node permanent.
2995 * decl.c (grokdeclarator): If traditional, make decl data permanent.
2996 (finish_decl): Make the rtl permanent too.
2997 * stor-layout.c (layout_type): If type is permanent,
2998 make its layout data permanent too.
3000 * cccp.c: Choose C++ or C at run time via var `cplusplus'.
3001 Separate cplusplus_include_default from include_default.
3002 Get GNU-specific include directory names from macros
3003 GCC_INCLUDE_DIR and GPLUSPLUS_INCLUDE_DIR.
3004 (main): Initialize based on CPLUSPLUS; `-+' sets it.
3005 * Makefile: Set *_INCLUDE_DIR based on $(libdir).
3007 Tue Jun 28 09:25:49 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3009 * tree.c (copy_node): Round LENGTH up to multiple of sizeof (int).
3011 * expr.c (emit_push_insn): Avoid using PUSH_ROUNDING if not defined.
3013 * sparc.md (floatsisf2): Insert missing brace.
3014 (mulsi3): Replace reg_o0_rtx, reg_o1_rtx.
3016 * tm-sparc.h: Define DBX_DEBUGGING_INFO.
3018 * parse.y (yylex): If traditional, no error for out-of-range float.
3020 * Makefile: Comment saying how to compile on an Apollo.
3022 * tm-sparc.h (ASM_FILE_START): Switch to new calling convention.
3024 * decl.c (init_decl_processing): Create type nodes for 64-bit ints.
3025 (grokdeclarator): use them for `long long'. Warn only if pedantic.
3027 * optabs.c (init_optabs): Add missing DImode insn names.
3029 * expr.c (emit_block_move, emit_push_insn): Use movstrqi if appro.
3031 * expr.c (convert_move): use extendsidi if appropriate.
3033 * cccp.c (initialize_builtins): Don't install __STDC__ if traditional.
3034 (main): Call initialize_builtins after option processing.
3036 * integrate.c (output_inline_function): Set current_function_decl.
3038 * cse.c (fold_rtx): Typo in avoiding 32-bit shifts.
3040 * cccp.c: Add forward-decl.
3042 Mon Jun 27 18:06:42 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3044 * hard-reg-set.h (reg_alloc_order): New variable
3045 based on REG_ALLOC_ORDER, a new machine-description macro.
3046 * regclass.c (reg_alloc_order): Define it.
3047 * local-alloc.c (find_free_reg): Handle reg_alloc_order.
3048 * global-alloc.c (find_reg): Likewise.
3049 * stupid.c (stupid_find_reg): Likewise.
3051 Sun Jun 26 10:47:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3053 * Version 1.23 released.
3055 * tm-3b1.h: Define IDENT_DIRECTIVE.
3057 * tm-encore.h: Define SDB_DEBUGGING_INFO.
3058 Define SCCS_DIRECTIVE and IDENT_DIRECTIVE.
3060 * output-ns32k.c: Decl of paren_base_reg_printed must be outside fcns.
3062 * tm-encore.h (ASM_OUTPUT_DOUBLE): Do 0f, not 0l.
3063 (CPP_PREDEFINES): No -Dns32032.
3065 * sdbout.c: Include syms.h, not storclass.h.
3066 (unnamed_struct_member): Decl was missing.
3067 (PUT_SDB_INT_VAL, PUT_SDB_VAL): Fix typos.
3068 (sdbout_types, sdbout_one_type, sdbout_parms): Fix typos.
3070 * Makefile: Add file sdbout.o.
3071 Changed comments pertaining to sysV.
3072 Make a separate target `doc' to make the info files.
3074 * m68k.md (bit-field insns): Use nonimmediate_operand for the thing
3076 * vax.md (QImode bit-field insns): Likewise.
3078 * recog.c (nonimmediate_operand): Accept any nonconst general operand.
3080 Sat Jun 25 07:54:42 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3082 * cse.c (lookup_as_function): arg to exp_equiv_p was missing.
3084 Fri Jun 24 09:14:47 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3086 * recog.c (memory_operand): Allow (subreg (mem...)).
3088 Thu Jun 23 07:34:07 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3090 * decl.c (finish_enum): Compute minimum value like maximum.
3091 If minimum is negative, install it in the type and make it signed.
3093 * stor-layout.c (layout_record): STRUCTURE_SIZE_BOUNDARY is minimum.
3094 (layout_type): A RECORD_TYPE or UNION_TYPE must be BLKmode if
3095 any member is BLKmode. This is to prevent putting it in a register.
3096 (layout_decl): If decl's type is BLKmode, the decl *must* be BLKmode.
3098 * local-alloc.c (find_free_reg): Never allocate the frame pointer reg.
3100 * tm-sequent.h (PRINT_OPERAND): Bug in SFmode CONST_DOUBLE.
3101 * tm-encore.h: Likewise.
3103 * flow.c (flow_analysis): Bug in n_basic_blocks error check.
3105 * stmt.c (expand_asm_operands): Emit no insn if an arg is erroneous.
3107 Tue Jun 21 08:34:24 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3109 * reload.c (find_reloads_address): Write back *loc even if
3110 subst_reg_equivs makes no change, in case subst_index_address did.
3112 * flow.c: Define macros for -1 and -2 as values of reg_basic_block.
3113 (mark_used_regs): Add an `else'; no change in behavior.
3114 (mark_label_ref): Abort if LABEL_REF doesn't contain a CODE_LABEL.
3115 (find_basic_blocks): Extra error check.
3117 * output-ns32k.c (print_operand_address): Changes in handling of
3118 register-indirect, and of indexing by sb register.
3120 Mon Jun 20 04:55:38 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3122 * cccp.c (collect_definition): Compute needed space more accurately.
3123 Abort if use more space than was allocated.
3124 (rescan) [USE_C_ALLOCA]: Do alloca (0) after handle_directive.
3126 * genflags.c (gen_insn): Put parens around defns of HAVE_... macros.
3128 Sun Jun 19 02:52:53 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3130 * expr.c (emit_push_insn): Consider PARM_BOUNDARY when compensating
3131 for size of a pushed arg to bcopy.
3133 Sat Jun 18 07:20:54 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3135 * New files sparc.md, tm-sparc.h, config-sparc.h, output-sparc.c.
3137 * final.c (final): After an ADDR_{,DIFF_}VEC, do ASM_OUTPUT_CASE_END.
3138 * tm-3b1.h: Define ASM_OUTPUT_CASE_END.
3139 (PRINT_OPERAND_ADDRESS): Ref the case tables via an intermediate symbol
3140 `LDnnn' whose def. is output by ASM_OUTPUT_CASE_END.
3141 (ASM_OUTPUT_CASE_LABEL): Add missing newline.
3143 * reload.c (find_equiv_reg): Reject a MEM containing an autoincrement.
3145 Fri Jun 17 06:58:37 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3147 * genpeep.c (main): Write `extern' in the decl for `peep_operand'.
3149 * flow.c (propagate_block): When a dead insn has a REG_RETVAL note,
3150 call mark_set_regs anyway, so that `significant' is updated.
3152 * jump.c (follow_jumps): New arg IGNORE_LOOPS. If 0, don't follow
3153 the insn at the beginning of a loop that enters the loop; this avoids
3154 interference with loop optimizer.
3155 (jump_optimize, tension_vector_labels): Pass that arg.
3157 * loop.c (loop_optimize): Mention invalid multiple-entry loops in log.
3159 * m68k.md (extv, extzv): Fix # of alternatives mismatch in constraints.
3161 Thu Jun 16 03:06:48 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
3163 * genrecog.c (change_state): Was mishandling printing XVECEXP indices
3166 * combine.c (subst, simplify_and_const_int): Avoid making SUBREG
3169 * expr.c (expand_expr): For FIX_TRUNC_EXPR to unsigned short/char,
3172 * optabs.c (expand_fix): Copy hard_libcall_value reg only once.
3174 * reload1.c (order_regs_for_reload): Init all elements
3175 of potential_reload_regs to -1.
3177 * Prevent generation of (set (reg) (plus ... (label_ref ...))).
3178 * explow.c (memory_address_noforce): Like `memory_address' but
3179 never force it into a register.
3180 * expr.c (do_tablejump): Use that.
3181 * m68k.md (casesi): Use that.
3183 * rtl.h (struct rtx_def, GET_CODE, PUT_CODE): If SHORT_ENUM_BUG,
3184 define the `code' field as a short.
3186 Wed Jun 15 01:25:57 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3188 * gcc.c (CPP_SPEC): New spec set by config.h gives flags to cpp.
3189 * tm-*.h for m68k: Define CPP_SPEC to define __HAVE_FPU__ on
3190 appropriate conditions.
3192 * combine.c (subst): Simplify (not (minus x 1)) and (neg (minus x y)).
3194 Mon Jun 13 02:22:43 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
3196 * typecheck.c (build_array_ref): Avoid duplicate errmsg if index
3199 Sun Jun 12 23:04:39 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
3201 * cccp.c (handle_directive): If -traditional, quotes aren't special.
3202 (rescan): Assume newline ends a string constant.
3204 * cccp.c, cexp.y: Make all fcns non-static; add some forward decls.
3206 * various: add static forward-decls for various functions.
3208 Fri Jun 10 00:25:18 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3210 * reload1.c (choose_reload_targets): When writing back an incremented
3211 value (handling reload_inc), write back to the real place, not to
3212 OLDEQUIV (a register that holds the same value).
3214 * tm-m68k.h (LEGITIMIZE_ADDRESS): Don't give force_operand a target.
3215 This can cause the use of multiple insns with same output reg,
3216 which can confuse cse.
3218 * loop.c (consec_sets_invariant_p):
3219 If invariant_p ever returns 2, we return 2.
3220 New arg is # of consecutive sets to look for,
3221 since this info is no longer in n_times_set at move_movables.
3222 (scan_loop): If consec_sets_invariant_p returns 2, set m->cond.
3223 (move_movables): check consecutive insns if m->consec && m->cond.
3225 * tm*.h: ASM_DECLARE_FUNCTION_NAME now takes 3rd arg,
3226 the FUNCTION_DECL node.
3227 * varasm.c (assemble_function): Pass this arg.
3229 * expr.c (expand_call, expand_builtin [alloca]):
3230 If STACK_POINTER_OFFSET is defined, add it to stack pointer contents
3231 before using it as address of actual data on the stack.
3232 * stmt.c (expand_decl): Likewise.
3234 * stmt.c (assign_parms): If 1st parm named `__builtin_va_alist'
3235 came in regs, pretend it came on stack.
3236 Handle pretending a BLKmode var came on the stack.
3237 If REG_PARM_STACK_SLOT, count stack space for each parm
3238 even if the parm came in a register; and use that stack space
3239 if the parm needs to be addressable or is BLKmode.
3240 Rearrange to simplify conditionals.
3242 Thu Jun 9 01:21:29 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3245 `qty_...' vectors' elements for hard-reg-numbers now aren't used.
3246 `reg_qty' elements for hard-reg numbers now aren't used,
3247 and the element for a pseudo is never a hard-reg number.
3248 (local_alloc): No need to reset those elements.
3249 No need to reset elements out of range of prev block's NEXT_QTY.
3250 (reg_is_born, reg_is_set, wipe_dead_reg):
3251 Divide labor in same way for hard regs and pseudos;
3252 simplify using fact that locality-to-basic-block has been precomputed
3253 and recorded in reg_qty; avoid refs to reg_qty[HARDREG].
3254 (reg_is_born, wipe_dead_regs): Block-number arg no longer needed.
3256 * local-alloc.c (combine_regs): Remove old code for tying hard regs
3257 to pseudos; great simplification results.
3258 Use find_regno_note, not regno_dead_p.
3260 Wed Jun 8 00:18:04 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3262 * reload.c (subst_reg_equivs): Set a flag if anything is changed.
3263 (find_reloads_address): Check that flag to avoid extra work.
3264 Also check early for safe reg+const address and avoid work.
3266 * reload.c (find_reloads): Use loops instead of bcopy.
3267 Check early for insn with no real constraints, and return.
3268 Also check for move from hard reg to hard reg and return.
3270 * cse.c (canon_reg): Rewrite for speed; use a switch.
3271 (cse_insn): Don't call find_reg_note if REG_NOTES is 0.
3273 * cse.c (cse_insn): Store modified SET_SRC even if there's a REG_EQUIV.
3274 Inhibition was needed when the SET_SRC was the only place to find the
3275 equivalent value; now it is in the REG_EQUIV note.
3277 * stmt.c (expand_asm_operands): If NINPUTS is 0, make vec of no elts.
3278 * regclass.c (reg_scan_mark_refs): Don't lose if XVEC (x,i) is 0.
3280 Tue Jun 7 03:51:28 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3282 * stmt.c (assign_stack_local): If big-endian and MODE is narrow,
3283 the bytes actually used are the least significant.
3285 * parse.y (skip_white_space): Accept char as arg; let caller read it.
3286 (yylex): Change call.
3287 (check_newline): Return 1st nonwhite char after skipping lines.
3288 (skip_white_space): Change call.
3289 * toplev.c (compile_file): Change call.
3291 * gcc.c: Pass -traditional to cc1.
3293 * cse.c (cse_insn): Return very early for (set (reg) (call...)).
3294 Mainly to save time.
3295 (cse-insn) Old code to add REG_WAS_0 note wasted time but did nothing.
3297 * expr.c (clear_pending_stack_adjust): Really do clear it,
3298 if current fcn doesn't want to be inline.
3300 * cse.c (cse_insn): Speedup: instead of safe_hash, use canon_hash
3303 Mon Jun 6 21:47:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3305 * jump.c (rtx_renumbered_equal_p): Reject ADDR_VEC fast.
3307 * cse.c (cse_insn): Ignore a REG_EQUIV or REG_EQUAL note if the
3308 equivalent value is the same as the SET_SRC of the insn.
3310 * flow.c (life_analysis): Don't call volatile_refs_p for a CALL_INSN;
3311 just assume value is 1.
3312 (propagate_block): Don't call mark_{used,set}_regs for a stack-pop
3313 since if it isn't dead it has no effect on any useful life data.
3314 (mark_set_1): Return quickly if setting stack-ptr, and almost as
3315 quickly if setting any hard reg.
3316 (mark_used_regs): Likewise for refs.
3317 Also don't scan the vector of an ADDR_VEC or ADDR_DIFF_VEC.
3318 (volatile_refs_p): Likewise.
3320 * varasm.c (output_constant): Discard NOP_EXPR and CONVERT_EXPR
3321 in integer case (they were for casting a pointer).
3323 * parse.y (compstmt_or_error): Parse a compstmt after ignoring error.
3324 Use this for fctn body so that an error after store_parm_decls
3325 won't recover to xdecls and call store_parm_decls again.
3326 Typical cause was missing semi at end of last parmdecl.
3328 * parse.y: Add missing semicolons in actions.
3329 (yylex): Don't use yylloc.
3331 Sun Jun 5 16:14:40 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3333 * typecheck.c (build_array_ref): Check arg types here, to make
3334 error message more accurate (not about "addition").
3336 Thu Jun 2 02:41:40 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
3338 * cccp.c (collect_expansion): `#' isn't special if -traditional.
3340 * dbxout.c (dbxout_parms): Don't output a regparm symbol
3341 unless the parm got a hard reg assigned.
3343 * tm-encore.h (ASM_OUTPUT_DOUBLE): Use 0f... not 0d...
3345 * tm-vax.h (CHECK_FLOAT_VALUE): Define this.
3347 Wed Jun 1 17:13:00 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3349 * expr.c (expand_call): Have sequence points between args.
3351 Tue May 31 00:27:06 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3353 * expmed.c (store_fixed_bit_field): Avoid shifting by 32.
3355 * symout.c (subrange_p): likewise.
3357 * local-alloc.c (block_alloc): If operands 1 and 2 commute,
3358 try tying output to operand 2 if operand 1 won't do.
3360 * toplev.c (compile_file): Pass main_input_file to symout_init.
3362 * tree.c (build_real, build_real_from_int_cst):
3363 Call CHECK_FLOAT_VALUE if it's defined, to report out-of-range values.
3365 * tree.c (build_real, build_real_from_int_cst): New 1st arg TYPE.
3366 * parse.y (yylex): Pass this arg; requires parsing suffixes first.
3367 * fold-const.c (fold, combine, fold_convert): Pass this arg.
3368 Handling of float binops in `combine' simplified.
3370 * tm-encore.h (CPP_PREDEFINES): Remove -Dencore since CC lacks it.
3372 * final.c (output_source_line): Let ASM_OUTPUT_SOURCE_LINE
3373 be used for SDB also.
3375 Mon May 30 00:21:15 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3377 * cse.c (insert): Was inserting in wrong place in list.
3378 (exp_equiv_p): Was failing to check validity when x == y.
3380 * tree.c (build_pointer_type): Handle saveable_obstack
3381 like current_obstack.
3383 * decl.c (finish_decl): Error in test for zero-size array warning.
3385 * reload.c (find_equiv_reg): New arg MODE specifies mode in which
3386 an equivalent value is needed. Equivalence must be good in that mode.
3387 In addition, notice overlap with multiword register modes.
3388 Simplify, knowing that registers have already been renumbered.
3389 It was invalidating memory-goals too easily; setting a reg
3390 only invalidates memory-goal if its address varies.
3391 * reload.c, reload1.c, jump.c: Calls pass the new argument.
3393 * cccp.c: For correct ANSI, must reject `$' in identifiers.
3394 (dollars_in_ident): Variable says whether to allow them.
3395 (rescan): Handle `$' as randomchar if that's 0.
3396 (main): dollars_in_ident is set to 0 by -$, to 1 by -traditional.
3397 (rescan, do_define): Delete former pedantic warnings for `$'.
3398 (initialize_char_syntax, initialize_builtins): Inits split to two
3399 functions; former is called after options are scanned
3400 so `$' is in is_idchar conditionally.
3401 * gcc.c: For -ansi, pass -$ to cccp.
3402 * toplev.c, flags.h: Define dollars_in_ident.
3403 * parse.y (yylex): Treat $ as punctuation unless dollars_in_ident.
3404 Delete old pedantic warning about $.
3405 * tm-vms.h: Define DOLLARS_IN_IDENTIFIERS as 1.
3407 * cccp.c (rescan): Preprocessing numbers can have signs, after `e'.
3409 * integrate.c (expand_inline_function): Abort, don't return failure,
3410 if max_regno is too low. I believe this can't happen.
3412 * typecheck.c (build_binary_op_nodefault):
3413 For ordered comparisons, no pedantic warning about void *.
3414 For MAX, MIN, ditto, and also don't allow pointer vs 0.
3416 * typecheck.c (build_unary_op): Don't allow pointer for +.
3418 * typecheck.c (convert_for_assignment):
3419 Add missing warning for case of unrelated pointer types.
3420 Change criteria for new ANSI C draft.
3422 * optabs.c (expand_binop): Don't set unused target_is_not_an_operand.
3424 * fold-const.c (fold_convert): Don't set unused inprec, outprec.
3426 * emit-rtl.c, parse.y: Delete unused var.
3428 * stor-layout.c (add_vc_sizes): Unused function deleted.
3429 * loop.c (constant_high_bytes): #if 0 this unused function.
3431 * gcc.c (fatal): Add missing arg to delete_temp_files.
3433 * cccp.c (dump_defn_1): Add missing arg to skip_quoted_string.
3435 * reload.c (find_reloads): If constraints don't fit in an `asm',
3436 print error instead of aborting.
3438 * regclass.c (reg_class_record): Ignore `&' in constraint.
3440 Sun May 29 00:20:23 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3442 * Makefile: Run ranlib only if /usr/bin/ranlib exists.
3443 Add comment saying what to do on system V.
3445 * tree.c (suspend_momentary): Switch to the saveable_obstack
3446 for the sake of inline functions.
3448 * flags.h (enum debugger): New enum for write_symbols.
3449 * toplev.c, varasm.c, final.c: Use the enum constants where appro.
3450 Add calls to sdbout paralleling the calls to dbxout;
3451 put each in the appropriate conditional {SDB,DBX}_DEBUGGING_INFO.
3453 * toplev.c (main): Delete -noreg option; it's now the default.
3454 Make -O an alias for -opt. Rename -g to -gg. -g is alias for -G.
3455 Accept and ignore -Wtrigraphs.
3456 * gcc.c: Simplify the specs.
3458 * toplev.c (compile_file), tm-*.h:
3459 ASM_FILE_START is now a statement, not just a string to be output.
3460 Output it *after* determining the real source file name.
3462 * fold-const.c (fold): Simplify x >= CST to x > CST-1 (CST positive).
3463 To simplify this, canonicalize relationals to put constat last.
3465 * decl.c (duplicate_decls): Make a 2nd errmsg to show previous decl.
3467 * cccp.c (file_size_and_mode): Delete temporary VMS bootstrap patch.
3469 * tm-att386.h: New file.
3471 * decl.c (pushdecl): Warn if a local `extern' decl precedes
3472 a file-scope `static' decl.
3474 * expr.c (expand_call): No warning for failure to inline.
3476 * expmed.c (extract_bit_field): copy operand 1 of extv or extzv
3477 into register if memory isn't allowed.
3479 Sat May 28 02:10:56 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3481 * gnulib.c, Makefile: Delete va_end.
3483 * final.c, symout.c: Check DBX_DEBUGGING_INFO, not NO_DBX_FORMAT.
3485 * genemit.c (gen_expand): Notice a CALL inside a PARALLEL.
3487 * regclass.c (init_reg_sets_1): Part of init_reg_set is put in this
3488 new fn which is called after options are scanned.
3489 Now CONDITIONAL_REGISTER_USAGE can depend on the options.
3490 (fix_register): Just alter the data that init_reg_sets_1 will look at.
3492 * reload1.c (reload): Don't complain if two different but tieable
3493 modes require groups of the same regclass (assuming same size group).
3495 * cccp.c: Add 3rd arg to all `open' calls.
3497 * parse.y (check_newline): Typo prevented ignoring whitespace.
3499 * cccp.c (perror_with_name): fprintf had harmful extra arg.
3501 * cccp.c (main, trigraph_pcp): -Wtrigraphs means warn if any trigraphs.
3503 * emit-rtl.c (gen_sequence): If LEN is 1, avoid looking at PATTERN
3504 of something that doesn't have one.
3506 * reload1.c (alter_frame_pointer_addresses): frame pointer can
3507 occur by itself, not just inside a PLUS.
3508 (reload): Call eliminate_frame_pointer before reload_as_needed.
3509 Otherwise the latter can make reload insns that copy the frame ptr
3510 to a data reg, but 68k can't copy sp+const to a data reg.
3512 * decl.c (implicitly_declare): Always save the implicit decl
3513 permanently. Reuse an old one if it exists.
3514 * tree.c (resume_temporary_allocation): Used after `end_temporary...'
3515 to go back to temporary allocation.
3517 * stor-layout (layout_{type,decl}): Call variable_size.
3518 (variable_size): Turn a size into a SAVE_EXPR and either compute
3519 it right away or put it on a list to be computed later.
3520 (get_pending_sizes): Return that list and clear it out.
3521 * stmt.c (expand_start_function): Tell `variable_size' to compute
3522 sizes right away, and compute those saved on the list.
3523 (expand_end_function): Tell it to put them on a list.
3525 Fri May 27 00:02:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3527 * dbxout.c (dbxout_symbol): For local static var, use 'V', not 'v'.
3529 * gcc.c (main): Don't handle SIGHUP or SIGTERM if shell ignored it.
3531 * Makefile, gcc.c: Propagate Make var `libdir' to gcc search path.
3533 * expr.c (expand_expr): a PARM_DECL with no rtl can occur in size of
3534 `a' in `foo (a,i) int i; struct {int x[i];} a;', so report an error.
3536 * flow.c (insn_dead_p): insn that makes stack bigger is never dead.
3537 * combine.c (try_combine): Don't splice out stores into stack ptr.
3539 * reload.c (find_equiv_reg): Test given regno for OVERLAPPING_REGNO_P.
3541 * varasm.c (assemble_variable): Use saveable_obstack for allocation.
3543 Thu May 26 01:17:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3545 * integrate.c (save_for_inline): Clear unused slots in parmdecl_map.
3546 (There may be some non-parm regs below max_parm_regno.)
3547 * integrate.c (copy_for_inline): Don't crash if parmdecl_map elt is 0.
3549 * Don't fail to output a static inline function that was referenced
3550 via a local extern decl before its definition.
3551 * expr.c (expand_call): If need to mark a fcn decl addressable,
3552 mark the identifier addressable also.
3553 * typecheck.c (mark_addressable): If marking fcn addressable,
3554 mark the identifier as well.
3555 * decl.c (start_function): If identifier was marked addressable,
3556 propagate it to the function.
3558 * parse.y (yylex): Check for ERANGE after atof is called.
3559 (Sun doesn't report ERANGE.)
3561 * loop.c (may_trap_p): Any floating arithmetic may trap.
3563 Wed May 25 00:03:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3565 * parse.y: Delete `noalias'.
3566 (asm_operand): Don't allow this to be empty.
3567 (asm_operands): Do allow this to be empty.
3569 * reload.c (operands_match_p): Don't let REG and SUBREG match
3570 if the reg isn't a hard reg.
3571 No longer nec. to check reg_renumber, now that reload
3572 substitutes the hard regno.
3574 * reload1.c (reload): Counting existing spilled groups,
3575 check HARD_REGNO_MODE_OK so we don't get fooled by an odd-even pair.
3576 Spill entire need for new groups before spilling any solitary regs.
3577 Reg already counted against max_nongroups can't become part of a group.
3578 (new_spill_reg): Do bookkeeping associated with a new spill-reg.
3579 (n_spills): This var is now static, no longer passed as arg
3582 (reload_reg_class_lower): Handle all group-reloads before solitaries.
3583 (choose_reload_targets): therefore #if 0 the special code for
3584 finding solitary registers that aren't suitable for groups.
3585 But fix two bugs in it: braino deciding whether a reload
3586 is looking for 1 register (not a group). Use CLASS_MAX_NREGS.
3587 Also braino deciding whether a spill reg can be in a group.
3588 Did not fix bug that it fails to test HARD_REGNO_MODE_OK,
3589 so it might split up an even-odd pair.
3591 * vax.md: Special patterns for 8 and 16-bit fields, to make
3592 move-insns (like the ones for the 68k).
3594 * tree.c (convert_to_integer): Pass truncation down thru COND_EXPR
3595 as through a binary operator.
3597 * typecheck.c (build_cond_expr): If unpromoted operand types match,
3598 don't promote them--let containing expression promote (just once).
3600 Tue May 24 14:46:26 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3602 * combine.c (subst): Simplify (subreg (sign_extend X) 0).
3604 * tm-hp9k320.h: Delete NO_DBX_FORMAT.
3605 * Most tm...h files: Define DBX_DEBUGGING_INFO.
3606 * dbxout.c: Change conditional to DBX_DEBUGGING_INFO.
3608 * integrate.c (expand_inline_function): If inline fcn was declared to
3609 return QI, but actually computes an SI, use SImode for INLINE_TARGET
3610 but actually return a QI.
3612 * varasm.c (force_const_mem): Failed to determine alignment bdry
3615 * jump.c (jump_optimize): Don't delete (move X Y) if X or Y is a
3616 PRESERVE_DEATH_INFO_REGNO_P register.
3618 * final.c (output_addr_const): In PLUS, output constant term last.
3620 * final.c (final): Before outputting an insn, do FINAL_PRESCAN_INSN.
3622 * final.c (next_block_index): No longer static.
3623 (final): Add SDB_DEBUGGING_INFO cases for outputing NOTEs
3624 for beginning and end of a block.
3625 (output_source_line): Add SDB_DEBUGGING_INFO case for line number.
3626 * varasm.c (assemble_function): Add code for SDB symbol output.
3628 * gnulib.c: Allow config to override INTIFY.
3629 New macro SFVALUE for data type to return a single-float in.
3631 * combine.c (remove_death): No longer `static'.
3633 * reload1. (choose_reload_targets): PRESERVE_DEATH_INFO_REGNO_P
3634 selects hard regs for which death info should be updated for final.
3636 * reload1.c (reload_as_needed): Let INSN_CLOBBERS_REGNO_P
3637 prevent inheritance of certain reloads.
3639 * reload.c (find_equiv_reg): Let OVERLAPPING_REGNO_P reject
3640 an equiv reg. Needed for funny float regs on 80387.
3642 * cccp.c (do_ident): Define #ident as a no-op if IDENT_DIRECTIVE.
3644 (do_sccs): Warn if pedantic.
3646 * emit-rtl.c (restore_reg_data): Set cur_insn_uid--prevent duplicates.
3648 Sun May 22 12:25:06 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3650 * Version 1.22 released.
3652 * reload1.c (reload): Spilling isn't finished till max_nongroups is 0.
3654 * tm-encore.h (PRINT_OPERAND): No `$' before a CONST.
3656 Sat May 21 13:08:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3658 * fold-const.c (combine): Typo in MIN_EXPR, MAX_EXPR.
3660 * reload1.c (reload): Was counting insn_groups as total size of groups,
3661 not number of groups.
3662 A new spilled group counts against group-needs of superclasses.
3664 * parse.y (parmlist{,_or_identifiers}_1): In error case,
3665 return a tree list just as in the other cases.
3667 Fri May 20 02:14:51 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3669 * config-vax.h, config-m68k.h: If __GNUC__, use builtin-alloca.
3671 * genpeep.c (match_rtx): Generated code was testing the wrong rtx
3672 when testing an int or string at a nonzero index in the rtx.
3674 * reload.c (find_reloads): Typo checking `modified' for conflict
3675 with an earlyclobber.
3677 * reload.c (find_equiv_reg): Reject stack ptr as return value.
3679 * expr.c (expand_builtin): Alloca must do pending stack adjust.
3681 Thu May 19 13:01:01 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3683 * flow.c (propagate_block): Skipping back across libcall didn't happen
3684 due to failing to set PREV.
3686 * expr.c (emit_library_call): Code to increment and decrement
3687 current_args_size broke since emit_call_1 was changed to restore it.
3689 * combine.c (try_combine): When i1 or i2 auto-incs a reg, don't combine
3690 if i3 uses that reg.
3692 * config-hp9k3.h: #define bcopy, bcmp, bzero here.
3693 * conf-hp9k320.h: Delete file.
3695 * integrate.c: Don't include strings.h--no need.
3697 * stmt.c (expand_asm_operands): Don't make zero-length vectors.
3699 * loop.c (scan_loop): After a fcn call, maybe-trap insns can't move.
3700 The fcn call might exit and that would prevent the trap.
3702 * reload1.c (reload): Set reload_first_uid to next uid to be used.
3703 * reload.c (find_equiv_reg): Use reload_first_uid to ignore insns
3704 that are due to reloading--only if reload_reg_p is not 0 or 1.
3706 Wed May 18 22:11:20 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3708 * typecheck.c (build_unary_op): Don't complain about array
3711 * decl.c (pushdecl): If locally declaring an extern function,
3712 check the identifier's global value in case it's an inline function.
3714 Mon May 16 03:06:08 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3716 * output-ns32k.c (output_shift_insn): New fn, maybe turn shift to adds.
3717 (reg_or_mem_operand): Predicate for a non-immediate general_operand.
3718 * tm-ns32k.h (CONST_OK_FOR_LETTER_P): Define letter K.
3719 * ns32k.md: Use output_shift_insn for various addr insns that shift.
3720 Don't allow nonexplicit constants in lprd, multiply or truncate insns.
3721 Use reg_or_mem_operand for constraint in op1 of divide insns;
3722 a constant there causes regclass to screw up.
3723 Split alternative constraints on the bit-field insns to avoid
3724 out-of-range operands in exts, inss. Some cases of extraction
3725 can be done faster via memory.
3727 * flow.c (mark_set_1): When adding a REG_DEAD note, inc reg_n_deaths.
3729 * dbxout.c (dbxout_type_def): Do nothing for {integer,char}_type_node.
3731 Sun May 15 00:56:44 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3733 * tm-sequent.h, tm-ns32k.h, tm-encore.h (PRINT_OPERAND):
3734 Was treating SF's as SI's.
3736 * expr.c (emit_move_insn): Check all CONST_DOUBLEs for
3737 LEGITIMATE_CONSTANT_P and put them in memory if not.
3739 * local-alloc.c (combine_regs): Allow a reg to be tied to a qty
3740 if the reg's class is contained in the qty's class
3741 (as well as if the reg's class contains the qty's class as before).
3742 Rename qty_reg_class to qty_min_class and make it the smallest
3743 class of any reg tied to the qty.
3744 (reg_class_subset_p, reg_meets_class_p, update_qty_class):
3745 New subroutines to implement this.
3746 (local_alloc): Init reg_qty to -1 for pseudos not in cur. basic block.
3747 (reg_is_born): Abort if pseudo not in basic block has -2 in reg_qty.
3749 * jump.c (rtx_renumbered_equal_p): Insist that modes of REGs match.
3751 Sat May 14 01:05:35 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu)
3753 * stmt.c (expand_return): Empty frame frame_offset isn't nec. 0.
3755 * expr.c (emit_call_1): Use stack_size_rtx everywhere appropriate.
3757 * decl.c (init_decl_processing): Set sizetype to `unsigned long'
3758 if `int' is less than a word.
3760 * stddef.h (size_t, ptrdiff_t): Both are now long.
3762 Fri May 13 01:06:00 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu)
3764 * emit-rtl.c (gen_lowpart): Handle non-lowpart subreg as arg.
3766 * recog.c (register_operand): VOIDmode means allow any mode.
3767 (immediate_operand, nonmemory_operand): Likewise.
3769 * emit-rtl.c (classify_insn): Update for changed CALL_INSN format.
3770 (emit): New function to emit an rtl pattern as the right kind of insn.
3771 * jump.c (simplejump_p): No longer static.
3773 * genemit.c (gen_expand): For match_operand at top level, call `emit'.
3774 Use `emit_call_insn' when appropriate.
3775 (gen_exp): Handle rtx's that contain strings.
3777 * final.c, symout.c: If not NO_DBX_FORMAT, include stab.h to get the
3778 N_... symbols. Use their default definitions only if they're undef.
3780 * expr.c (expand_call) [no PUSH_ROUNDING]: Always set argblock
3781 if there are any stack-passed arguments.
3783 * typecheck.c (build_unary_op): Mark all increment-exprs volatile.
3785 * recog.c (reg_renumbered_fits_class_p): Delete private copy of
3788 * reload1.c (forget_old_reloads): Handle PARALLEL case by recursion.
3789 Explicit store into a spilled reg invalidates old reloaded contents;
3790 this can occur when we drop through into a basic block whose need was 0
3791 (and so whose local pseudos were not spilled).
3793 * gcc.c (main): If -v, print gcc's own version; also no error msg
3796 * loop.c (may_trap_p): Mem ref to nonconstant address may trap.
3797 (scan_loop): Check may_trap_p only when insn is in other respects ok.
3799 * cexp.y: #include config.h (for decl of alloca on some machines).
3801 Thu May 12 17:24:19 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3803 * regclass.c (regclass): When inserting an insn at start of block,
3804 update basic_block_head.
3806 Wed May 11 00:47:09 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
3808 * stmt.c (assign_parms): DECL_OFFSET should be offset as passed
3809 (not including big-endian width-change correction).
3811 * typecheck.c (shorten_compare): Set unsignedp[01] right in case
3812 where get_narrower makes no change.
3813 (build_binary_op_nodefault): Likewise for shortening shifts.
3815 * stmt.c (expand_end_case): Use type_for_size to get the type
3816 to convert the index to, since `int' is wrong if -mshort.
3818 * decl.c (grokdeclarator): Don't check PARM type for completeness.
3819 (grokparms): If fn definition, check all parm types for completeness.
3820 (store_parm_decls): Likewise.
3822 Tue May 10 22:42:13 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
3824 * typecheck.c (store_init): For invalid init, store error_mark_node.
3825 * varasm.c (assemble_variable): Ignore error_mark as an init.
3826 * stmt.c (expand_decl): If init is error_mark, init to 0 if possible.
3827 This avoids a spurious "uninitialized variable" warning.
3829 Sun May 8 17:08:07 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu)
3831 * tm-hp9k320.h: Define STRUCTURE_SIZE_BOUNDARY.
3833 * decl.c (get_parm_info): Replaces get_parm_types. Returns a tree_list
3834 containing parmdecls and tag list as well as type list.
3835 (grokparms): Accept that tree_list as argument.
3836 (grokdeclarator): Calling grokparms, say "not a definition" for the
3837 function declarators for arg or value types within a definition.
3839 * parse.y: Call get_parm_info.
3840 (parmlist_or_identifiers): If identifiers, make a tree_list
3841 like the one get_parm_info returns.
3843 Fri May 6 16:44:19 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3845 * m68k.md (casesi): Delete template aside from match_operand's.
3847 * tm-encore.h: New file from Robert Brown.
3849 * ns32k.md: Use %c in some addr insns.
3850 (tst*): Use {d,f,}const0_rtx to make the constant 0; OS-independent.
3851 (call, call_value): Use %? before address in a bsr.
3853 * output-ns32k.c (print_operand_address): To output a local label,
3854 use `output_asm_label'.
3855 Make SEQUENT_ADDRESS_BUG conditionals happen at compile time.
3857 * tm-ns32k.h: Delete SEQUENT_HAS_FIXED_THEIR_BUG.
3858 (PRINT_OPERAND): Output nothing for `%?'.
3859 * tm-sequent.h: (PRINT_OPERAND): Output nothing for `%?'.
3861 * final.c (output_asm_label): No longer `static'.
3863 Thu May 5 09:03:37 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3865 * explow.c (memory_address): Ignore flag_force_reg unless optimize.
3866 Also ignore it for addresses of stack slots (avoid invalid REG_EQUIVs).
3868 * typecheck.c (digest_init): If traditional, allow `char x[100]=0;'.
3870 * tree.c (get_unwidened): Don't alter a COMPONENT_REF if
3871 innerprec equals the precision of the existing type.
3872 It was changing pointers to integers.
3874 * m68k.md (movdi): Put all fpregs in separate constraint alternatives
3875 and handicap them so spill reg won't be an fp reg.
3877 * parse.y (yyerror): Use the arg as part of the error message.
3879 * decl.c (start_function): Give the RESULT_DECL type int rather
3881 * typecheck.c (c_expand_return): Convert value from fn's return type
3882 to the RESULT_DECL's type.
3884 * Avoid generating dbx xrefs to enums, since dbx loses on them.
3885 Do this by outputting all types in order of definition.
3886 This is done only for top-level types; problem remains for local ones.
3888 * decl.c (finish_decl): Do rest_of_decl_compilation for TYPE_DECLs.
3889 * toplev.c (rest_of_decl_compilation): Do dbxout_symbol for them.
3891 * dbxout.c (dbxout_symbol): Check DECL_RTL only for fns and variables.
3892 For a TYPE_DECL, ignore it if the type was already output
3893 and its preferred name is the TYPE_DECL. Else output type in full.
3895 * decl.c (pushdecl): Don't prefer typedef names to type tag names.
3897 * stor-layout.c (chain_type): Build chain in forward order.
3900 * tm-3b1.h (ASM_OUTPUT_CASE_LABEL): Error getting length of table.
3902 * tm-3b1.h: #define SGS_3B1 was missing.
3904 * typecheck.c (build_compound_expr): Ignore non-volatile subexprs.
3906 * fold-const.c (fold): Simplify (unsigned) foo >= 0, etc.
3908 * stor-layout.c (layout_type): Set TYPE_PRECISION of ptr types.
3910 Wed May 4 08:06:25 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3912 * parse.y: Don't use the Bison @ construct, since it makes parser slow.
3914 * decl.c (finish_function): Delete FILENAME and LINE args.
3916 * typecheck.c (digest_init): No pedantic warning for array="string".
3918 Tue May 3 09:09:30 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3920 * toplev.c (main): Ignore `-Wcomment'.
3921 * gcc.c: Pass -Wall to cpp (which treats it like -Wcomment).
3923 * tm-isi68.h: Greatly simplified; now works only with GAS.
3925 * tm-m68k.h (EMPTY_FIELD_BOUNDARY): now 16 (right on Sun, ISI and HP).
3926 * tm-sun3.h: No need to redefine it.
3928 * decl.c (finish_struct): Don't ever make DECL_ALIGN smaller.
3930 * decl.c: Rename min, max to MIN, MAX.
3932 * typecheck.c (convert_for_assignment): Avoid warning if assigning
3933 a `void *' from a `const void *'.
3935 * combine.c (FAKE_EXTEND_SAFE_P): Turn off for mem refs; avoid faults.
3937 Mon May 2 07:28:27 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3939 * tm-vax.h: Support -mg switch to use g-float instead of d-float.
3940 New macros TARGET_G_SWITCH, ASM_DOUBLE_CHAR.
3941 Changes in TARGET_SWITCHES, ASM_OUTPUT_DOUBLE.
3942 Define code `#' for PRINT_OPERAND.
3943 * vax.md: use `#' in opcodes for doubleword float.
3945 * tm-vax.h: Define UDIVSI3_LIBCALL and UMODSI3_LIBCALL.
3947 * cccp.c (main, do_include): Implement -I- switch.
3949 * jump.c (jump_optimize): When hunting NOTE_INSN_FUNCTION_END,
3950 skip final RETURN (found on the vax).
3952 * toplev.c (main): -Wall is equiv to all -W switches combined.
3954 * stmt.c (expand_decl, expand_end_bindings,
3955 expand_{start,end}_function). The -noreg treatment of `register' vars
3956 is extended to vars used as addresses of vars in memory (varying-size
3958 (use_variable): Emit USE for regs used in specified rtx.
3960 * cse.c (fold_cc0): Stack-frame addresses are always nonzero.
3961 (fold_rtx): 0200 bit in prev_insn_cc0 means only zeroness is known.
3963 * parse.y (parmlist): poplevel needs 3 args.
3965 Sun May 1 07:20:34 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3967 * decl.c (start_function): typo checking for incomplete return type.
3969 * emit-rtl.c (restore_reg_data): If a pseudo appears nowhere,
3970 don't leave its slot empty; create a pseudo for that slot.
3972 * Version 1.21 released.
3974 * expr.c (expand_call): Merge duplicate code for structure_value_addr.
3976 * emit-rtl.c (restore_reg_data): Delete error check; it's legit for
3977 a pseudo reg to appear nowhere in the rtl.
3979 Sat Apr 30 07:35:31 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
3981 * integrate.c (copy_rtx_and_substitute): Fix typo for arg_pointer_rtx.
3983 * decl.c (poplevel): Undo previous change with #if 0.
3985 * stmt.c: `struct nesting' now records the depth on the stack.
3986 Each expand_start... must update and record the depth;
3987 each expand_end... uses macro POPSTACK to pop.
3988 This way, if a level isn't explicitly popped, it won't cause
3991 * dbxout.c (dbxout_type): Replace with main variant only if incomplete.
3993 * typecheck.c (build_unary_op): Test of `pedantic' was backwards.
3995 * expr.c (STACK_BYTES): Typo in definition.
3997 * typecheck.c (build_binary_op_nodefault): Rename code1 to code0,
3998 and likewise for code2, tt1, tt2.
4000 * expr.c (expand_call): Wrong arg order for warning_with_decl.
4002 Fri Apr 29 08:41:06 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4004 * integrate.c (copy_decl_tree): New arg is depth in recursion.
4005 Always discard the outermost LET_STMT being copied; never discard any
4006 others. This way the copied LET_STMTs correspond to the copied NOTEs.
4008 * varasm.c (decode_rtx_const): For SYMBOL_REF, use string address
4009 not address of the rtx. Library fns have only one copy of the name
4010 but many copies of the SYMBOL_REF.
4012 * expr.c (emit_call_1): New arg OLD_ARGS_SIZE is used to reset
4014 (emit_library_call, expand_call): Pass new arg; don't restore it here.
4016 * flow.c (life_analysis): Don't mark sp live at end if fn is empty.
4018 * parse.y (parse_or_identifiers_1): Handle `error' in here, not in
4019 callers notype_declarator etc. Also read the closeparen here.
4021 Thu Apr 28 12:43:52 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4023 * expmed.c (expand_shift): In extzv strategy, handle the operand
4024 predicates for operands 0, 1 and 3. (Not needed for 2.)
4025 * vax.md: extzv pattern for SImode op1 must recognize general_operand
4026 since the pattern named "extzv" allows them.
4028 Wed Apr 27 00:52:44 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4030 * expr.c (emit_call_1): New arg NEXT_ARG_REG describes # regs
4031 used for passing args.
4032 (emit_library_call, expand_call): Provide that argument.
4034 * explow.c (round_push): New fn: round arg up to STACK_BOUNDARY.
4035 * expr.c (expand_builtin): Use round_push on size for __builtin_alloca.
4036 * stmt.c (expand_decl): Likewise for variable-size objects.
4037 * expr.c (expand_call): Likewise for args_size.var.
4038 Also use STACK_BOUNDARY to round a constant arg-block size.
4039 Pass emit_call_1 that rounded value.
4040 (emit_library_call): Round arg_size with STACK_BOUNDARY.
4041 * tm-spur.h: Define STACK_BOUNDARY instead of ROUND_CALL_BLOCK_SIZE.
4042 * tm-m68k.h: Define STACK_BOUNDARY as 16.
4044 * expr.c (emit_call_1): Don't change current_args_size.
4045 (emit_library_call, expand_call): Always restore current_args_size
4046 to ambient value, after calling emit_call_1.
4048 * tm-hp9k320.h: Don't define USG here.
4049 * config-hp9k3.h: New file. USG defined here.
4051 * tm-3b1.h: #undef ASM_OUTPUT_ASCII (a defn came from tm-hp9k320.h).
4053 * decl.c (grokdeclarator primarily): Cast all RID_... to (int) before
4054 using them in arithmetic. Placates CC on Sequent.
4056 * emit-rtl.c (emit_jump_insn): Return proper value, for a SEQUENCE.
4057 * emit-rtl.c (emit_call_insn): Handle SEQUENCE like emit_jump_insn.
4059 Tue Apr 26 02:41:26 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu)
4061 * cccp.c (macroexpand): If traditional, don't disable called macro.
4062 (macarg1): Was failing to count backslash-newline inside a string
4063 in a macro arg as part of file's linenumber.
4065 Mon Apr 25 18:46:53 1988 Richard Stallman (rms at lucky-charms.ai.mit.edu)
4067 * jump.c (jump_optimize): Don't do April 20 optimization on first
4068 iteration; let other simpler opts be done before this is considered.
4070 Sun Apr 24 02:45:28 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4072 * tree.c (staticp): a CONSTRUCTOR can be static.
4074 * varasm.c (output_constant_def): Always return memref, not address.
4076 * decl.c (complete_array_type): New fn, make an array type complete
4077 based on an initializer.
4078 (finish_decl): Use complete_array_type.
4079 * parse.y (expr_no_commas): When parsing a constructor,
4080 Use complete_array_type on constructors for incomplete array types.
4082 * typecheck.c (digest_init, store_init_value,process_init_constructor):
4083 It's now TREE_STATIC, not TREE_ADDRESSABLE, that records that all elts
4084 in a CONSTRUCTOR are simple constants.
4085 (digest_init): A CONSTRUCTOR with non-null type is treated as ordinary
4086 expression, not as a braced initializer.
4087 Allow init of an array from an array-valued expr; warn if pedantic.
4088 * expr.c (expand_expr, CONSTRUCTOR case): Put in memory only if static.
4089 Was making an extraneous level of MEM; output_constant_def does it all.
4091 * typecheck.c (build_unary_op): Allow ADDR_EXPR of static CONSTRUCTOR.
4092 (default_conversion): Likewise.
4093 (initializer_constant_valid_p): Constructor is ok if static.
4095 * gcc.c: Change -fnostd... to -nostd...
4096 * cccp.c (main): Likewise.
4098 * Everywhere: Use REG_NOTE_KIND to get the kind of a reg note.
4100 * rtl.c (find_regno_note): New function.
4101 * flow.c (flow_deadp): Deleted; caller uses find_regno_note.
4102 * global-alloc.c (reg_dead_p): Deleted.
4103 (global_conflicts): Use find_regno_note instead of reg_dead_p.
4105 * final.c (final) Use find_reg_note to look for a REG_INC.
4106 * combine.c (insn_has_inc_p): deleted; callers use find_reg_note.
4107 (try_combine): Use find_reg_note whenever looking for a REG_INC.
4108 (regno_dead_p, remove_death): Check the REG_NOTE_KIND before assuming
4109 that the datum in it is a REG.
4110 * reload1.c (reload): Use find_reg_note to find a REG_EQUIV.
4112 * gcc.c: Don't delete .o files if not all compilations succeed.
4113 (record_temp_file): New arg SUCCESS_ONLY--delete file only if succeed.
4114 (delete_temp_files): New arg SUCCESS says compilation succeeded.
4115 (store_arg): Now 3 possibilities for arg TEMPNAMEP; 2 = del on success.
4116 (do_spec_1): For %d, set delete_this_arg to 2.
4118 * decl.c (poplevel): Warn about any still-incomplete type-tags.
4120 Sat Apr 23 02:54:16 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
4122 * expr.c (expand_builtin): For alloca, round arg up to multiple
4123 of PARM_BOUNDARY. Also to convert it to Pmode unless it already is.
4125 * stor-layout.c (layout_union): Bug in 14 April change:
4126 use caller-specified alignment as minimum, not as maximum.
4128 * parse.y (skip_white_space): Avoid infinite loop on unterm. comment.
4130 Fri Apr 22 00:22:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4132 * cccp.c: Text following #else or #endif is just a warning.
4133 (rescan): Digit-case was dropping into the $-case; reorder.
4135 * cccp.c (rescan): Comment start when -traditional was output as
4136 `/*'; should be nothing.
4138 * jump.c (jump_optimize): Fix prev change:
4139 do nothing if range1end == range2end;
4140 don't lose any NOTEs when splicing.
4142 * flow.c (propagate-block): For CALL_INSN, clobber the call-used regs
4143 only after mark_set_regs is done; avoids confusion about lifespan
4144 of function value reg.
4146 * gcc.c: Pass -Wcomment to cpp.
4148 * cccp.c (main, rescan): If -Wcomment, warn if `/*' inside comment.
4150 * decl.c (duplicate_decls): Ignore `inline' decl following definition.
4152 * m68k.md (casesi): Split it up into subroutines, so insns emitted
4153 by the call to memory_address (on 68000) come in the right place.
4155 * combine.c (record_dead_and_set_regs): Notice storing in a SUBREG.
4157 * integrate.c (expand_inline_function): Insn to copy a subroutine's
4158 return-value was being output twice, once incorrectly.
4160 * reload.c (find_equiv_reg): A stack-push insn does not invalidate
4161 an equiv for a goal in memory.
4162 Any other write to memory does invalidate any goal in memory
4163 (PARALLEL case failed to check for this).
4165 * expmed.c (expand_shift): In the extzv clause, force shifted value
4166 out of memory if -fforce-mem.
4168 * print-tree.c (prtypeinfo): Some attributes were missing.
4169 (dump): In ..._TYPE nodes, ignore the TREE_CHAIN field.
4171 * cse.c (note_mem_written): Pushing on stack does not invalidate mem.
4173 * vax.md (extv/andl peephole opt): Made incorrect code if output was
4174 pushed on stack. Added special case code.
4175 (extv, extzv for SImode operand): Require register_operand.
4177 Thu Apr 21 00:24:52 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
4179 * stmt.c (assign_parms): Round current_function_pretend_args_size up.
4181 * integrate.c: `pushlevel' arg was missing.
4183 * dbxout.c (dbxout_type): Undo rest of March 29 change:
4184 When a named type is first seen inside another type, output an xref
4185 and let the real definition come out later.
4186 It is strange that Sun dbx has sometimes appeared to demand
4187 one strategy and sometimes appeared to demand the other.
4189 * typecheck.c (convert_for_assignment): Allow conversion to or from
4190 `const void *', etc., unless pedantic.
4192 * decl.c (get_parm_types): For `foo (void){}', set last_function_parms
4193 to nil so store_parm_decls won't lose.
4195 * combine.c (subst): (plus (plus X N) -N) => X.
4197 * explow.c ({anti_,}adjust_stack): Don't make a copy of
4198 `stack_pointer_rtx'.
4200 * integrate.c (expand_inline_function): Typo testing for the
4201 USE that indicates a CALL_INSN's value is being returned.
4203 * expr.c (expand_builtin, alloca case): Copy arg to reg before
4204 adjusting stack, to avoid invalid insns on some machines.
4206 Wed Apr 20 00:15:14 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
4208 * typecheck.c (build_binary_op_nodefault): When shortening,
4209 get_narrower may make no change because ARGn is already narrow.
4210 In this case, set UNSIGNEPn from ARGn's type.
4212 * typecheck.c: Rename ARG1,ARG2 to ARG0,ARG1, etc. in several fns.
4214 * tm-vax.h: Turn off continuation on DBX output.
4216 * typecheck.c (build_function_call): Don't change __builtin_ffs to an
4217 FFS_EXPR. Note that __builtin_alloca has always made a CALL_EXPR.
4218 * expr.c (expand_builtin): New function expands all CALL_EXPRs that
4219 are really built-in functions.
4220 (preexpand_calls): Do nothing to a CALL_EXPR for a built-in function.
4222 * loop.c (count_loop_regs_set): Don't move a reg that is in a CLOBBER.
4224 * stupid.c (stupid_mark_refs): Was getting hard reg's mode from
4227 * rtl.c (note_stores): Typo in checking vector elt for SET vs CLOBBER.
4229 * stmt.c (expand_end_bindings): If restoring stack level,
4230 first do pending stack adjust (so it won't be done erroneously after).
4231 (expand_goto): likewise.
4233 * rtl.h: LABEL_NUSES was an rtx. It should be an int.
4234 * stmt.c (expand_label, expand_goto): Delete frobbing with LABEL_NUSES;
4235 the value stored there was the same as the CODE_LABEL rtx.
4237 * jump.c (jump_optimize): Detect if (foo) ...; else { ... break;}
4238 and change to if (! foo) { ... break;} else ...; so can drop out.
4239 (next_label): New fn returns the next label after given insn.
4241 Tue Apr 19 21:30:05 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4243 * flow.c (insn_dead_p): Delete special handling for stack ptr.
4244 (mark_set_regs, mark_used_regs): Likewise.
4245 (life_analysis): Mark stack ptr live at end of fn if necessary.
4246 (propagate_block): Mark stack ptr live leading up to a CALL_INSN.
4248 * jump.c (jump_optimize): #if 0 around stack-adjust-deletion code.
4250 * cse.c (fold_rtx): Change const_arg from an array to 3 separate
4251 scalars for the first three operands.
4252 Handle SIGN_EXTEND and ZERO_EXTEND.
4254 * integrate.c (copy_rtx_and_substitute): If arg is 0, return 0.
4255 (expand_inline_function): Separate vars for old pattern and new insn.
4257 * expr.c (expand_call): Set TREE_ADDRESSABLE if call is not inlined.
4259 Tue Apr 19 02:25:22 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4261 * Version 1.20 released.
4263 * tm-ns32k.h: Define new reg class GEN_OR_FLOAT_REGS
4264 so that GENERAL_REGS and FLOAT_REGS have a union.
4266 * tm-ns32k.h (GO_IF_LEGITIMATE_ADDRESS): Recognize a stack-push.
4267 * ns32k.md: Many constraints must now allow or reject pushes.
4268 Delete the special patterns for pushing.
4270 Mon Apr 18 06:02:39 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
4272 * reload1.c (forget_old_reloads): For a multiword hard reg,
4273 forget old reloads for each word.
4275 * reload.c (find_reloads): Typo in calling push_replacement.
4277 * tm-ns32k.h (HARD_REGNO_MODE_OK): Failed to allow fp regs for SFmode.
4279 Sun Apr 17 01:21:35 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4281 * tm-sequent.h (PRINT_OPERAND): Handle absolute integer memaddress.
4283 * ns32k.md: Add DImode push insns. Add QImode and HImode push insns.
4284 Supply missing statement in movsf.
4286 * dbxout.c (dbxout_type): Don't contin before 1st field of struct.
4288 * dbxout.c (dbx_continue): Use DBX_CONTIN_CHAR instead of backslash.
4290 * loop.c (scan_loop): Ov vax, the "loop-entry jump" can be a return,
4291 in which case perhaps there is no label following it.
4292 Detect phoniness of loop before looking for that label.
4294 * decl.c (init_decl_processing): Builtin fn names start with `__'.
4296 * typecheck.c (shorten_compare): Warn about constant result only in
4297 cases like (char)x < 0x80, where old C compilers made it -0x80.
4299 * vax.md: All jbs/jbc/jlbs/jlbc patters with op0 in SImode
4300 must reject mode-dependent memory addresses.
4302 * recog.c (mode_independent_operand): Test for general operand
4303 that doesn't have a mode-dependent memory address.
4305 * varasm.c (assemble_function): ASM_DECLARE_FUNCTION_NAME, if def,
4306 is now responsible for outputting the function name as a label.
4308 Sat Apr 16 05:02:55 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4310 * cccp.c (do_xifdef): Warn about punctuation or other junk in argument.
4311 Warn about no argument. If pedantic, warn if arg starts with digit.
4312 If traditional, ignore all after first non-idchar and never warn.
4314 Thu Apr 14 01:12:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4316 * integrate.c (expand_inline_function): Typo for addressable parms.
4318 * cse.c (insert_regs): Copying half a DImode into half of another
4319 does not make the two DImode regs equivalent.
4321 * recog.c (general_operand): Was failing to accept symbol_ref:SI
4322 when MODE arg was VOIDmode.
4324 * expr.c (preexpand_calls): For RTL_EXPR, do nothing.
4326 * decl.c (start_enum, build_enumerator): Remember default for next one
4327 as a tree node (so the high-half isn't lost in a negative one).
4329 * stor-layout.c (layout_{record,union}): Pay attn to initial value
4330 of TYPE_ALIGN in computing final alignment.
4331 (layout_union): Round size up to multiple of the alignment.
4333 * decl.c (finish_struct): Don't alter size after type is laid out.
4334 Instead, set TYPE_ALIGN before layout_type.
4336 * reload1.c (choose_reload_targets): Introduce reg_has_output_reload.
4337 If there are two separate reloads (one in and one out)
4338 for the same (hard or pseudo) reg, always set reg_last_reload_reg
4339 based on the output reload.
4341 Wed Apr 13 21:26:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4343 * reload.c (find_reloads_address_1): Always barf if a "constant"
4344 register is autoincremented.
4346 * parse.y (structsp): suspend_momentary before start_enum;
4347 else some nodes made by start_enum might be momentary.
4349 * stmt.c (expand_start_case): New arg is nominal type for comparison
4350 (which is the promoted type of the index expression).
4351 (pushcase): Always convert VALUE to that nominal type
4352 before validating it.
4353 * parse.y (case stmt): Promote each case-value before pushcase.
4354 * typecheck.c (c_expand_start_case): Promote the index-expr
4355 to determine the nominal type, before get_narrower.
4357 Wed Apr 13 12:43:08 1988 Chris Hanson (cph at kleph)
4359 * tm-hp9k320.h: Define ASM_FORMAT_PRIVATE_NAME. HPUX asm forbids
4360 `.' in identifiers, so use `___' (there is some danger in this choice).
4362 Tue Apr 12 23:26:48 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4364 * local-alloc.c (block_alloc): Make 1 extra slot in regs_live_at.
4366 * stmt.c (optimize_bit_field): Function moved from reload1.c.
4367 When need to generate a SIGN_EXTEND or ZERO_EXTEND, make it a separate
4368 insn and use gen_extend_insn to make it.
4369 * optabs.c (gen_extend_insn): New fn, construct body of an insn
4370 to extend Y and store in X.
4372 Mon Apr 11 19:20:57 1988 Richard Stallman (rms at rice-krispies.ai.mit.edu)
4374 * decl.c (finish_decl): Error if static var has variable size.
4376 * parse.y (yylex): Warn if int const is out of range.
4378 * parse.y: New keyword __alignof.
4379 * typecheck.c (c_alignof): Given a type, return its alignment in bytes.
4381 * typecheck.c (c_sizeof{,_nowarn)): Don't return integer_one_node;
4382 use build_int to make sure we get something with type `sizetype'.
4384 * Support variable-sized structures (containing var-sized arrays).
4386 * stmt.c (assign_parms): Handle parms whose size varies.
4387 Use `memory_address' when constructing memrefs to args;
4388 no need to set `invalid_stack_slot'.
4389 Don't make a REG_EQUIV note for a scalar arg at variable offset.
4390 * stor-layout.c (genop, build_int): No longer `static'.
4392 * stor-layout.c (convert_units): Optimize ceil (ceil(x,2)*2, 4) etc.
4394 * stmt.c (expand_decl): Don't abort if var-sized object has init.
4395 Convert variable size from units of DECL_SIZE_UNIT to units of bytes.
4397 * expr.c (emit_push_insn): Arg ARGS_SO_FAR is now an rtx.
4398 Pay attention to ARGS_ADDR even if machine has push insns.
4399 (expand_call): Handle variable-sized arguments.
4400 If have any such, push entire arg-block in advance.
4401 Record each arg's offset during first loop and don't change args_size
4402 during the actual pushing loop; this way the actual pushing loop
4403 works regardless of arg-order if arg-block was pushed in advance.
4404 (push_block): Copy SIZE to reg unless it's a reg or constant.
4406 * expmed.c (expand_divmod): If converting CEIL_DIV to FLOOR_DIV,
4407 make new pseudo for incremented value, to help cse understand.
4409 Sun Apr 10 00:07:45 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4411 * expr.c (emit_library_call): Two dumb bugs calling emit_call_1.
4413 * dbxout.c (dbxout_symbol): Handle case of (MEM (REG frameptr)).
4415 * cccp.c (skip_if_group): Ignore quote-chars if -traditional.
4416 (rescan): If -traditional, don't output a space for a comment.
4417 (handle_directive): If not -traditional, output a space for a comment.
4419 Sat Apr 9 21:26:51 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4421 * decl.c (get_parm_types): `void' type is error, except as entire list.
4422 * parse.y (parmlist_1): `void,...' is error.
4424 * typecheck.c (pointer_int_sum, pointer_diff):
4425 Use an integer type with at least POINTER_SIZE bits.
4426 * expr.c (expand_expr, ARRAY_REF): Likewise.
4427 * tree.c (type_precision): Prec of a pointer is POINTER_SIZE.
4428 (convert_to_pointer): Directly convert any int w/ width==POINTER_SIZE.
4429 Other int types convert via an int of that width.
4430 (convert_to_integer): Pointers convert via an int of that width.
4432 * decl.c (init_decl_processing): Use INT_TYPE_SIZE, if def,
4433 to set width of `int' and `unsigned int'.
4434 (make_index_type): Give new type the width of a long int.
4436 * tm-m68k.h: Add new -mshort which controls TARGET_SHORT.
4437 * tm-m68k.h: Define INT_TYPE_SIZE depending on TARGET_SHORT.
4439 Fri Apr 8 05:02:59 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4441 * typecheck.c (require_complete_type): Fix typo in detection of `void'.
4442 (build_function_call): Fix backward test to allow `void' values.
4444 * dbxout.c (dbxout_tags): Output each tag once even if type is defined.
4446 * m68k.md (movstrictqi): Reject addr-reg always, for both operands.
4448 * tm-vax.h (STRUCTURE_SIZE_BOUNDARY): Make this always 8, for BSD.
4449 * tm-ultrix.h: New file, overriding STRUCTURE_SIZE_BOUNDARY.
4450 [This change has been taken out; tm-ultrix.h is now equivalent to
4451 tm-vax.h. I must have been confused when testing PCC.]
4453 * integrate.c (expand_inline_function): Don't let inline_target
4454 be nonzero in BLKmode.
4456 * decl.c (grokdeclarator): Const array parm becomes ptr-to-const.
4458 Thu Apr 7 05:02:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4460 * genoutput.c (bcopy, bzero): Renamed to mybcopy, mybzero
4461 so variation in C library and config.h won't affect the results.
4462 * genrecog.c (bzero): likewise.
4463 * genextract.c (bcopy): Fn deleted; used only in a string constant.
4465 * varasm.c (force_const_mem): Fix typo in arg decl.
4467 * toplev.c (compile_file): init_file with main_input_filename
4468 so dbx output doesn't lack N_SOL symbols.
4470 * cccp.c (rescan) [CPLUSPLUS]: Put out // comments as // comments.
4472 Wed Apr 6 14:06:38 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4474 * expr.c: Delete SLOW_ZERO_EXTEND conditionals added March 3.
4475 Now that enums types can be unsigned, this isn't needed.
4477 * emit-rtl.c (emit_jump_insn): Handle SEQUENCEs.
4479 * genemit.c (gen_expand): Use emit_jump_insn, emit_label, emit_barrier
4480 when the insn rtl requires it.
4482 * m68k.md (subsi3): Prefer to avoid reverse-subtraction alternative.
4484 * stmt.c (expand_end_case): Let CASE_DROPS_THROUGH control what to
4485 emit after the table.
4486 * tm-vax.h: Define CASE_DROPS_THROUGH.
4488 Tue Apr 5 15:47:10 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4490 * genemit.c (gen_exp): Handle vectors within exprs.
4492 * stmt.c (expand_end_case): Pass 5th arg (default_label) to gen_casesi.
4493 * m68k.md: Define casesi insn rather than tablejump insn.
4495 * cccp.c (skip_if_group): For validate_else, pass BP (end of cmd name).
4496 Don't call validate_else if do_else or do_endif will detect error.
4498 * Bug: inline fcns can refer to the return reg with a strict_low_part
4499 which confuses expand_inline_function. Fix is to change return reg
4500 into inline_target *everywhere* except in or right after a call.
4501 * integrate.c (copy_rtx_and_substitute): Delete special case for SET.
4502 Replace return-value hard regs with INLINE_TARGET in all contexts.
4503 (expand_inline_function): special handling for insn after a CALL_INSN
4504 if it copies the function value out.
4505 Allow notes and stack adjust insns to intervene
4506 between the CALL_INSN and the value-copy.
4508 * expr.c (emit_call_1): New name for gen_call_1.
4510 * Bug: ({...}) insns were in wrong place for a subexpression
4511 after a sequence point, as in x ? y : ({...}).
4512 * tree.def: New tree-code RTL_EXPR holds a sequence.
4513 * expr.c (expand_expr): Handle RTL_EXPR by emitting the sequence.
4514 * stmt.c (expand_{start,end}_stmt_expr): Use emit_to_sequence
4515 to make a sequence from everything within the ({...}).
4516 (expand_{start,end,emit}_delayed_expr): Delete these functions.
4517 * parse.y (`for'-statements): Don't call them; nothing special needed.
4519 * parse.y (yylex): Handle syntax L"..." and L'...'
4520 (combine_strings): Handle wide strings being combined.
4521 * typecheck.c (digest_init): Reject wide string as init for char array.
4522 Allow it for an int array, but don't allow a narrow string.
4523 * decl.c (init_decl_processing): New var int_array_type_node.
4525 * parse.y: Define keyword `noalias'.
4526 * parse.h: Define RID_NOALIAS.
4528 * typecheck.c (compparms): Not all parmlists match an empty one;
4529 call `compparms1' to filter them.
4531 * decl.c (groktypename): Remove special case for `void' as parameter.
4532 (get_parm_types): Special case for list of one decl with type void.
4534 * decl.c (build_enumerator): Give enum constants the type `int'.
4535 Variable `current_enum_type' eliminated.
4536 (finish_enum): No need to repeat `fixup_unsigned_type'
4537 since the precision has not changed.
4538 * stor-layout.c (layout_type): Allow enum types to be unsigned.
4540 * emit-rtl.c (unshare_all_rtl): Unshare contents of all reg-notes.
4542 * parse.y (check_newline): filename is optional in #-lines.
4544 Mon Apr 4 14:36:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
4546 * typecheck.c (shorten_compare): When data type determines the value,
4547 eval the nonconstant arg anyway if it has side effects.
4548 (build_conditional_expr): When merging `foo *' with `void *',
4549 also allow `const void *'. Result type has merged set of qualifiers.
4550 (qualify_type): Merge qualifiers of two types.
4552 * decl.c (get_parm_types): Store any tags defined in parmlist
4553 into `last_function_parm_types'.
4554 (store_parm_decls): Add those tags into the current binding level.
4556 * parse.y (parmlist, parmlist_or_identifier): Pass 0 to pushlevel;
4557 no binding levels in C should be transparent to tags.
4560 * tm-3b1.h: New file.
4562 * m68k.md: Add HPUX_ASM conditionals for shift-by-24-and-compare.
4563 In one of the dbra patterns, a HPUX_ASM conditional was backwards.
4564 (movhi) [SGS_3B1]: Define the LI... label as in MIT syntax.
4565 (addsi3) [SGS]: Syntax for base-displacement differs from MOTOROLA.
4566 (subsi3) [SGS]: likewise.
4567 (tablejump) [ASM_OUTPUT_CASE_LABEL]: Use 6, not 2, as displacement.
4568 This assumes ASM_OUTPUT_CASE_LABEL on 68k is used for a `swbeg'.
4570 * final.c (final): Use ASM_OUTPUT_CASE_LABEL (if defined) to output
4571 any CODE_LABEL followed by an ADDR_VEC or ADDR_DIFF_VEC.
4572 It has 4 args; 4th is the insn which is the ADDR_VEC or ADDR_DIFF_VEC.
4574 * tm-*.h for 68000 (PRINT_OPERAND_ADDRESS): For unscaled indexing in
4575 fetch from a branch table, use L and LI symbols as in the scaled case.
4577 * cccp.c: If SCCS_DIRECTIVE, define #sccs as no-op.
4579 * integrate.c (output_inline_function): Real start of function
4580 is FIRST_PARM_INSN, not FIRST_FUNCTION_INSN.
4582 * tree.c (build_string): String contents must be saveable (for
4585 * cse.c (cse_insn): Don't forget to set dest_hash_code when dest
4586 is a stack slot (and so its address is not being optimized).
4588 * emit-rtl.c (restore_reg_data_1): reg_rtx_no must be 1+ largest REGNO.
4590 * m68k.md (non-SImode bit-field insns): Change constraint to "o,d"
4591 so a nonoffsetable memref is handled by reloading its address
4592 but a register can still be handled.
4594 * toplev.c (main): Execute OVERRIDE_OPTIONS, if it's defined.
4596 Sat Apr 2 00:55:21 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4598 * expr.c (convert_move): Handle a SUBREG in direct truncation case.
4600 * cse.c (lookup_for_remove): Don't test machine mode of registers:
4601 Storing in (REG:SI 0) invalidates (REG:DF 0).
4603 * decl.c (pushlevel): New arg, nonzero means this level is for
4604 variables only, not for tags. All calls changed.
4605 (lookup_tag): Even if THIS_LEVEL_ONLY, skip variables-only levels.
4606 (pushtag): Define it in the first non-variables-only level.
4608 * dbxout.c (dbxout_type): Undo Mar 29 change, in the DBX_NO_XREFS case.
4609 So now each struct or union will contain only nameless cross-refs
4610 to any others it uses. The prior change is still in effect when
4611 DBX_NO_XREFS is not defined.
4613 * Implement variable array bounds for parameters.
4614 * decl.c (poplevel): Don't crash if DECL_NAME gives 0.
4615 * typecheck.c (comptypes): A variable array bound matches anything.
4616 * parse.y (parmlist): Call pushlevel, then pushdecl each parm as it
4617 is parsed; then poplevel after using get_parm_types to extract the
4618 results of the parmlist.
4619 * decl.c (get_parm_types): New function; reverse the current decls,
4620 put them in last_function_parms, and return a list of their types.
4621 (grokparms): Arg is now an idlist or a typelist. Do nothing if latter.
4622 (push_parm_decl): New function, like {start,finish}_decl combined
4623 for a parm in a parmlist.
4625 * dbxout.c (dbxout_symbol): Ignore sym if its DECL_RTL is 0.
4627 * symout.c (symout_block_symbols): Ignore sym if type is error_mark.
4629 Fri Apr 1 11:41:21 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4631 * expr.c (prepare_call_address): New function; given two rtx's
4632 for function and context, copy the context to the right hard reg,
4633 put the function address in the right place and return an rtx for it.
4634 (gen_call_1): No longer do those things. Delete args CONTEXT, PROTECT.
4635 (emit_library_call, expand_call): Call `prepare_call_address'.
4636 In between that and `gen_call_1', USE the parm registers.
4638 * tm-hp9k320.h (ASM_OUTPUT_*): Flush uses of output_arith_constant.
4640 * varasm.c (assemble_variable): Use ASM_FORMAT_PRIVATE_NAME
4641 to make the name for a local static variable.
4642 * tm-m68k.h, tm-vax.h, tm-ns32k.h, tm-spur.h:
4643 Define ASM_FORMAT_PRIVATE_NAME. Use `.', not `$', to separate.
4645 * tm-m68k.h, tm-ns32k.h (FIX_FRAME_POINTER_ADDRESS):
4646 To refer to stack ptr, use stack_pointer_rtx, not a copy.
4648 * tree.c (build_real_from_string): Function deleted.
4649 * parse.y (yylex): Use build_real and atof.
4651 * parse.y: Allow string concatenation in arg of asm.
4653 * parse.y (yylex): Always allow `$' in ident, but warn if pedantic.
4654 * tm-vms.h: Delete DOLLARS_IN_IDENTIFIERS (no longer tested).
4656 * cccp.c (rescan, do_define, initialize_random_junk):
4657 Always allow `$', but warn if pedantic.
4658 (main): If -t, set `traditional'.
4659 (collect_expansion): If `traditional', no special handling for quotes
4660 and no whitespace added at end of macro definition.
4662 * expr.c (compare, compare1): Last arg to compare_constants
4663 must be a size in bits.
4665 Thu Mar 31 00:31:52 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4667 * expmed.c (expand_mult, expand_divmod, extract_fixed_bit_field):
4668 Reject function return register as target if may need to read it.
4669 (Reading the return register in an inline function doesn't work.)
4671 * decl.c (start_function): Delete extra arg to `error'.
4673 * emit-rtl.c (last_parm_insn): Delete this unused var.
4675 * make-cc1.com: New version from Kashtan.
4677 * integrate.c (expand_inline_function): Always set up an INLINE_TARGET
4678 for a function that returns a nonvoid nonBLK value.
4679 Since `pushlevel' and `poplevel' are called, must also call
4680 `expand_{start,end}_bindings' to make a pair of NOTEs.
4681 Let them handle USEs at end of scope of formal parameter copies.
4683 * integrate.c (expand_inline_function): In a new-style CALL_INSN,
4684 don't change the result reg into INLINE_TARGET. Also,
4685 generate a move insn after the call only if INLINE_TARGET is non-0.
4687 * integrate.c (copy_decl_tree): Don't crash if DECL_RTL is 0.
4689 * integrate.c (copy_for_inline): Don't treat `return' rtx's specially.
4691 * stmt.c (expand_{start,end,emit}_delayed_expr):
4692 New fns to handle ({...})'s in expressions output not where parsed
4693 (such as third expression in a `for' statement).
4694 * parse.y: Call them to handle third expression in a `for'.
4696 * decl.c (duplicate_decls): Result is `inline' if either OLD or NEW is.
4698 * emit-rtl.c (emit_note): Return the note, or 0 if none.
4699 * stmt.c (expand_start_bindings): Use emit_note's value.
4701 Wed Mar 30 12:48:22 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4703 * obstack.c (_obstack_begin): If ALIGNMENT is 0, use default.
4704 Compute default for the alignment of a `double'.
4705 * obstack.h (obstack_{begin,init}): Pass 0 for the alignment.
4707 * flow.c (mark_used_regs): Discard multiple SUBREGs, STRICT_LOW_PARTs.
4709 ** Call insns that return values are now represented as
4710 (set (reg ...) (call ...)), not just (call ...).
4712 * *.md: Define a "call_value" insn pattern.
4714 * tm-m68k.h, tm-vax.h, tm-ns32k.h: (NOTICE_UPDATE_CC):
4715 These insns invalidate the CC.
4717 * local-alloc.c (combine_regs): #if 0 special treatment of
4718 function value hard reg.
4719 (wipe_dead_reg): If hard reg, call reg_is_born so that the death
4720 will not be ignored.
4721 (reg_is_set): For reg that dies in this insn, mark it dead from now on
4722 and post_mark it live after this insn only.
4724 * combine.c (try_combine): Don't allow a call insn as I1 or I2.
4726 * loop.c (count_loop_regs_set): Move CALL_INSN into a separate
4727 clause. When finding regs that are function addresses, handle
4728 both old and new format call insns.
4730 * flow.c (insn_dead_p): A SET that contains a CALL can't be dead.
4731 (volatile_refs_p): Any CALL constitutes a volatile ref.
4732 (mark_used_regs): If setting a reg from a volatile ref,
4733 treat it like setting a reg whose value will be used.
4735 * expr.c (gen_call_1): New arg VALREG if nonzero means generate
4736 a call_value insn which stores in VALREG.
4737 (expand_call): Use `hard_function_value' to make the VALREG arg
4738 unless expression has type `void'.
4740 * expr.c (emit_library_call): New 2nd arg OUTMODE is mode of result.
4741 (So can give gen_call_1 the proper value-register.)
4742 All callers (here and optabs.c) pass this arg.
4744 * cse.c (canon_hash): Consider all CALL rtx's volatile.
4746 ** end of change in representation of call insns.
4748 * stmt.c (expand_asm_operands): Replace complex lvalues with
4750 * typecheck.c (c_expand_asm_operands): rather than here.
4752 * typecheck.c (pointer_diff): Fix typo preventing use of FLOOR_DIV_EXPR
4753 when dividing by power of 2.
4754 (build_c_cast): Flush unused locals.
4755 (store_init_value): likewise.
4756 (process_init_constructor): Delete unused 4th arg `for_static'.
4758 * toplev.c (fatal_io_error): Arg to fprintf was missing.
4760 * tm-m68k.h (LEGITIMIZE_ADDRESS): Flush extra arg to `emit_move_insn'.
4762 * decl.c: Delete some unused local vars.
4764 * stor-layout.c (layout_decl): `packed_size' now unsigned.
4766 Tue Mar 29 14:47:07 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4768 * Version 1.19 released.
4770 * loop.c (may_trap_p): Nonzero if X is a division that might trap.
4771 (scan_loop): If insn might trap, move only if loop always executes it.
4773 * dbxout.c (dbxout_type): Never output a cross-ref for
4774 a type whose definition is known. Sun dbx won't accept them.
4776 Mon Mar 28 12:34:46 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4778 * tm-vms.h (TARGET_DEFAULT): Default is PCC alignment.
4779 The VMS compile driver controls the real default.
4781 * typecheck.c (c_expand_return): Don't ignore return value
4782 when its type is void.
4784 * final.c (final): Forget the condition codes after an `asm'.
4786 * typecheck.c (build_binary_op_nodefault): Warn about ptr < 0
4787 even if not pedantic, but not if traditional.
4789 * typecheck.c (convert_for_assignment): Don't warn about
4790 pointers volatile * vs nonvolatile * if -fvolatile specified.
4792 * decl.c (store_parm_decls): Among the old-style parm decls
4793 there can legitiately be other decls! For example, if a parm
4794 is declared `enum {foo, bar} x;', there are decls for `foo' and `bar'.
4795 Don't let anything but a PARM_DECL match a parm name;
4796 pass all the other decls through into the lexical context.
4798 * jump.c (jump_optimize): When deleting stack adjusts before a
4799 jump-to-return, don't be fooled by intervening NOTEs.
4801 * tm-sequent.h (PRINT_OPERAND): Output (MEM (MEM (REG))) properly.
4802 * output-ns32k.c (print_operand_address): Output (MEM (REG))
4803 properly; output stack-pointer as `tos'.
4805 * flow.c (find_use_as_address): Reject uses within operand 0
4806 of a ZERO_EXTRACT or SIGN_EXTRACT reference. It's hard to reload
4807 an autoincrement inside these because they can refer to multiple bytes.
4809 * reload.c (find_reloads): `o' in constraint means any memref
4810 (except auto-increment) is acceptable with reloading.
4811 Braino: Clear BADOP, not BAD.
4813 * reload.c (push_reloads): Use rtx_equal_p (via macro MATCHES)
4814 when considering reuse of an old reload. Otherwise equal values
4815 may get reloaded into different registers, and two MEMs that
4816 originally matched may fail to match once reloaded.
4818 * m68k.md (sign_extract and zero_extract insns):
4819 If operand 0 is QI or HImode, don't allow register--only `o'
4820 (except in some bftst patterns where bitpos is < 8).
4821 And change `m' to `o' in all these patterns.
4823 Sun Mar 27 15:32:54 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4825 * expr.c (expand_expr, case CONSTRUCTOR):
4826 Not all aggregates are BLKmode; use the type's mode.
4828 * gcc.c: Pass -y* to ld.
4830 * cse.c (struct hash): New member `equivalence_only'.
4831 (insert): Initialize it.
4832 (cse_insn): Set it to 1 when src_eqv is inserted.
4833 When finding cheapest equivalent of something,
4834 skip elts that are marked with `equivalence_only'.
4836 * decl.c (duplicate_decls): Don't call `layout_type'
4837 if the type is `error_mark_node'.
4839 * decl.c (implicitly_declare): If decl will be file-scope,
4840 make sure it's a permanent node, and its associated data too.
4842 Sat Mar 26 15:48:50 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4844 * flow.c (insn_dead_p, mark_used_regs): Storing a reg via a
4845 ZERO_EXTRACT or SIGN_EXTRACT is dead if the reg isn't needed afterward.
4847 * stmt.c (expand_start_function): Set current_function_name
4848 to the name of this function.
4849 * tm-vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Use current_function_name.
4851 * expr.c (expand_increment): A SUBREG in op0 can also a be a copy.
4853 * ns32k.md: Correct range of args for `adjspb' insn.
4854 Use `adjspw' when appropriate.
4855 New pattern for `lprd' insn.
4856 Change some `const_int' predicates to GET_CODE tests.
4858 * expr.c (expand_call): Eval function before copying args to hard regs.
4860 * tree.c (make_node, copy_node): Don't get length of a REAL_CST
4861 from tree_code_length.
4863 * expmed.c (extract_fixed_bit_field): In memory-word case, abort
4864 if tm.h parms say word could fail to be well-aligned.
4865 * tm-ns32k.h: Define STRUCTURE_SIZE_BOUNDARY so they will be aligned.
4866 * tm-vax.h: Define STRUCTURE_SIZE_BOUNDARY since Unix CC seems to.
4868 * tm-vms.h (CPP_PREDEFINES): Predefine __GNU__ and __GNUC__.
4870 Fri Mar 25 13:23:27 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4872 * gcc.c (main): Handle SIGHUP, SIGTERM.
4874 * expmed.c (expand_bit_and): Don't clobber OP1 when trying andcb.
4876 Thu Mar 24 21:59:09 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4878 * stmt.c (assign_parms): Get size of BLKmode local from the type,
4880 (expand_function_start): Init frame_offset before calling assign_parms.
4882 Wed Mar 23 23:50:37 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4884 * expr.c (emit_push_insn): When making a move insn,
4885 go via emit_move_insn; else fails to put constants into memory.
4887 Tue Mar 22 15:45:10 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4889 * expr.c (expand_increment): Flush special case for register_operand;
4890 actually call the predicate whatever it is.
4892 * genemit.c (gen_expand): Make `operands' a local variable,
4893 not a global static one, in the `gen_...' function.
4894 Avoids lossage when one `gen_...' fcn calls another indirectly.
4896 * genoutput.c (output_epilogue): Don't give printf a null string.
4898 Mon Mar 21 15:41:42 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4900 * expmed.c (store_bit_field) [HAVE_insv]:
4901 Force VALUE1, not VALUE, into a register.
4903 * expmed.c (store_fixed_bit_field): Width of mask for clearing
4904 the bit-field depends on mode of OP0.
4906 * ns32k.md (branch and store-flag insns):
4907 Test cc_prev_status, not cc_status.
4909 * expmed.c (extract_bit_field): Delete unused var `omode'.
4911 * dbxout.c (dbxout_type, dbxout_tag): Use the main variant
4912 of the specified type.
4914 * reload.c (find_reloads): When an alternative succeeds without reload,
4915 initialize goal_alternative_matches from this_alternative_matches.
4917 Sun Mar 20 17:58:00 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4919 * tm-sun*.h: Don't predefine `m68k'; Sun's compiler does not.
4921 Fri Mar 18 13:48:29 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4923 * reload.c (find_reloads): Set up goal_alternative_matches
4924 *after* the label `finish'.
4926 * stmt.c (assign_parms): GET_MODE_SIZE needs a mode, not an rtx.
4928 * recog.c (constrain_operands): Set global var `which_alternative'
4929 to indicate which of the alternatives this insn matches.
4931 * typecheck.c (commontype): long int vs unsigned int
4932 gives long unsigned, if long and int are the same width.
4934 Thu Mar 17 15:39:45 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4936 * emit-rtl.c, tree.c: include local version of varargs.h.
4938 * decl.c (start_function): Clear TREE_EXTERNAL and set TREE_STATIC
4939 here rather than in finish_function. Affects the case of
4940 `extern foo (); static foo (a) {...}'
4942 * gcc.c: Handle -fnostdinc and -fnostdlib switches in specs.
4944 * cccp.c (main): Handle -fnostdinc: don't put default dirs
4945 on the chain to be searched.
4947 * cccp.c (error, warning, error_with_line): No longer print
4948 charpos within file; lineno is enough.
4950 Wed Mar 16 16:56:36 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4952 * expmed.c (expand_inc, expand_dec): Handy new subroutines
4953 to generate x+=y or x-=y, given x and y as rtl.
4954 * expmed.c (expand_divmod): Use them instead of gen_{add2,sub2}_insn.
4956 * expr.c (emit_move_insn): Return the move insn emitted.
4957 Eliminate the code here to move a DImode or DFmode by pieces.
4959 * emit-rtl.c (emit_insn): Return-value was wrong if emit_to_sequence;
4960 cannot use `last_insn' in that case.
4962 * regclass.c, stupid.c, local-alloc.c, global-alloc.c:
4963 Some vars of type HARD_REG_SET should be `register' only
4964 if HARD_REG_SET is a macro (ie a scalar).
4966 * expr.c (move_block_from_reg): New function, converse of
4967 move_block_from_reg.
4968 * stmt.c (assign_parms): If a BLKmode arrives in regs,
4969 copy to a stack slot using move_block_from_reg.
4971 Tue Mar 15 17:33:22 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
4973 * regclass.c (regclass): Don't convert to two-operand insns
4976 * varasm.c (decode_rtx_const, const_hash_rtx): Fix typos.
4978 * stmt.c (fixup_var_1): Don't alter insn moving VAR to or from
4979 a subreg of a register.
4981 * cse.c (fold_rtx): Don't fold if result is not LEGITIMATE_CONSTANT_P.
4982 Construct all results in new local variable NEW; then test that
4983 and decide whether to return it or the original rtx.
4985 * cse.c (cse_insn): When SRC_EQV is non-0 but set[0] has been
4986 cleared, don't insert SRC_EQV in hash table.
4988 * All insns emitted by a define_expand become part of the SEQUENCE:
4989 * SEQUENCE now contains a vector of insns, not of bodies.
4990 * insn-emit.c (add_insn): If `emit_to_sequence' nonzero, add the
4991 insn to a separate chain, `sequence_first_insn'.
4992 (gen_sequence): Take everything on that chain and make a SEQUENCE.
4993 (emit_insn): Handle SEQUENCE differently since elts are now insns.
4994 (emit_insn_{before,after}): Handle SEQUENCE.
4995 (classify_insn): #if 0.
4996 * genemit.c (gen_expand): emit all the insns, then call gen_sequence
4997 to make the return value.
4998 Define two macros DONE and FAIL for use in a DEFINE_EXPAND:
4999 Use DONE to inhibit emission of the pattern of the DEFINE_EXPAND.
5000 Use FAIL to make the gen_... function return 0.
5002 Mon Mar 14 12:47:28 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5004 * expr.c (expand_expr): Extend the don't-sign-extend-enums hack
5005 to COMPONENT_REF. (See 3 March.)
5007 * tm-*.h (FUNCTION_ARG, etc.) New argument NAMED
5008 is nonzero for a named arg, zero for an anonymous extra arg.
5009 * expr.c (expand_call): Pass 1 for NAMED if appropriate.
5010 * expr.c (emit_library_call): Pass 1 for NAMED.
5011 * stmt.c (assign_parms): Pass 1 for NAMED.
5013 * cccp.c: Test __GNUC__, not __GNU__.
5015 * integrate.c (copy_and_substitute_rtx):
5016 Replacing a MEM parm with the parm value, convert mode if mismatch.
5017 Always use VOIDmode when generating SETs.
5018 Take heed of FIRST_PARM_OFFSET and distinguish arg-pointer
5019 from frame-pointer when they are different.
5020 (expand_inline_function): Handle (RETURN) insns, by creating a
5021 return_label which is output after the integrated code.
5023 * parse.y (yylex): Condition for ignoring `inline' was backwards.
5025 * flow.c (mark_used_regs): Ignore STRICT_LOW_PART, so that
5026 an insn that sets STRICT_LOW_PART (and its source values) may be dead.
5027 (propagate_block): Always pass 1 for strict_low_ok to insn_dead_p.
5029 * optabs.c (emit_unop_insn): Don't make a REG_RETVAL note.
5030 Change above deletes dead STRICT_LOW_PART stores without one.
5032 * optabs.c (expand_binop, expand_unop): If the library address
5033 is to be put in a pseudoreg, do it here, and make the REG_RETVAL
5034 note point after that.
5036 * expr.c (emit_library_call): Never defer stack-pops.
5037 Deletion of the library call by flow.c loses if they are deferred.
5039 * cse.c (cse_insn): Handling of 68k's zero-extend was broken:
5040 it made the actual source and the REG_EQUAL source equivalent.
5041 * If dest is a STRICT_LOW_PART, ignore the actual source and use
5042 the REG_EQUAL source in its place. src_eqv's mode may be different
5043 from src's, so use proper mode in lookups or inserts for src_eqv.
5044 * Don't forget to set src_eqv_elt if src_eqv already has an elt.
5045 * On use_related_value for src_eqv, use src_eqv_elt.
5047 * toplev.c (main_input_filename): Name of file mentioned in first
5048 #-line in the input.
5049 (compile_file): Pass it to dbxout_init as 2nd arg.
5050 * dbxout.c (dbxout_init): Use 2nd arg to make the N_SO symbol.
5051 * parse.y (check_newline): Store main_input_filename.
5053 * expr.c (move_block_to_reg): New function, copies a MEM:BLK
5054 to consecutive registers.
5055 (use_regs): New function to emit a USE for each reg in a series.
5056 (expand_call): Use the two new functions when a precomputed BLKmode
5057 arg is passed entirely in regs.
5058 (emit_push_insn): Use move_block_to_reg when PARTIAL > 0.
5059 Also, don't subtract USED from SIZE twice.
5060 Use plus_constant to add ARGS_SO_FAR so can use indexing on stack ptr.
5062 * varasm.c (assemble_integer_zero): Use rtx 0, not tree 0,
5063 to go with prev change in ASM_OUTPUT_INT.
5065 Sun Mar 13 01:16:17 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5067 * varasm.c (const_hash, compare_constant_1, record_constant_1):
5068 Handle NOP_EXPR and CONVERT_EXPR in constant expressions.
5070 * optabs.c (expand_binop, expand_unop): When widening operands,
5071 those with VOIDmode (like CONST_INT) may be left alone.
5073 Sat Mar 12 01:09:24 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5075 * varasm.c (assemble_variable): When making a .comm or .lcomm,
5076 round size up to multiple of BIGGEST_ALIGNMENT.
5078 * obstack.c (_obstack_newchunk): Eliminate fencepost causing copying
5079 to access the word past the end of the existing object.
5081 * tm-vax.h, tm-ns32k.h: Define {INIT_,}CUMULATIVE_ARGS
5082 and upgrade FUNCTION_ARGS for new calling convention.
5084 * gcc.c: If -O, define __OPTIMIZE__.
5085 (do_spec_1): %c now scans SIGNED_CHAR_SPEC: define __CHAR_UNSIGNED__
5086 when appropriate whether or not it is the default.
5088 Fri Mar 11 16:49:25 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5090 * parse.y: Define YYDEBUG.
5092 * rtl.c (rtx_unstable_p): New function, same as old rtx_varies_p.
5093 * explow.c (stabilize): Use rtx_unstable_p.
5094 * rtl.c (rtx_varies_p): Ignore `unchanging' (undoing previous change
5095 in this function) because `unchanging' doesn't enable cse to compare
5096 the value with any particular constant value.
5097 * rtl.c (insn_store_addr_varies_p): Delete, since not used.
5099 * hard-reg-set.h (COPY_HARD_REG_SET, etc.) non-scalar case:
5100 Rename and rearrange temp variables to avoid name conflicts with args.
5102 * regclass.c (reg_class_record): Don't smash class to GENERAL_REGS
5103 and don't exit prematurely, when `r' or `g' is seen. Must merge
5104 GENERAL_REGS with previously determined desired class.
5106 * expr.c (expand_call) [no PUSH_ROUNDING]: When pushing the arg
5107 block, try to reuse some of the pending_stack_adjust.
5109 * cse.c: qty_const can now hold values (PLUS frame_pointer integer).
5110 Effect is that storing into a structure doesn't invalidate
5111 mem refs to scalar stack variables via addresses in registers.
5112 (insert): Load such values into qty_const, like true constants.
5113 (fold_rtx): Ignore qty_const if it isn't really a constant.
5115 * expr.c (expand_expr) VAR_DECL: Copy DECL_RTL before calling
5116 change_address, so it isn't permanently clobbered.
5118 * stmt.c (fixup_var_refs_1): Make sure the stack slot address
5119 is valid by calling fixup_stack_1 each time it is substituted.
5121 * stmt.c (fixup_stack_1): Return the altered rtx.
5122 If it's a MEM in the stack, return a copy of it.
5124 * stmt.c (fixup_stack_slots): #if 0.
5125 * stmt.c (expand_finish_function): Don't call fixup_stack_slots
5126 because fixup_stack_1 is called elsewhere when necessary.
5128 * reload.c (find_reloads_address): New arg is location of the MEM
5129 whose address is being reloaded. So we copy the MEM if it
5130 is one that can be shared. New arg 0 means no need to copy the MEM.
5131 All callers pass the new arg.
5133 * stmt.c (assign_parms): Determine parm stack-size from
5134 the DECL_ARG_TYPE, not from the TREE_TYPE.
5135 Else loses when parm is declared `float' but passed as `double'.
5137 * emit-rtl.c (make_safe_from): Constants are already safe.
5138 Use proper machine mode for temp reg when needed.
5140 Thu Mar 10 14:35:14 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5142 * expr.c (emit_push_insn): Don't pass wrong type to plus_constant
5143 (case where there is no PUSH_ROUNDING).
5145 * expr.c (expand_call): Round partial[i] down to multiple of
5146 PARM_BOUNDARY before subtracting it from arg size on stack.
5147 Compute these sizes just once and keep them in vector `arg_size'.
5148 * expr.c (emit_push_insn): Handle `partial' uniformly, in accord
5149 with this new convention for how it affects the stack size.
5150 * stmt.c (assign_parms): Round NREGS down to PARM_BOUNDARY likewise.
5152 * obstack.h (obstack_free macro) [Not __GNUC__ but __STDC__]:
5153 Don't cast result of (obstack_free) to (int); just ignore it.
5155 * reload.c (find_reloads): Initialize operand_reloadnum.
5157 * optabs.c (emit_unop_insn): New argument CODE, used to make
5158 a REG_EQUAL note from operand OP0 if more than one insn results.
5159 Also a REG_RETVAL note.
5160 * expr.c (convert_move): Pass CODE arg to emit_unop_insn.
5161 * flow.c (propagate_block): Use insn_dead_p to decide whether
5162 to handle a REG_RETVAL note by skipping some insns.
5163 Always pass 1 for STRICT_LOW_OK for an insn that has a REG_RETVAL note.
5164 Handle case where REG_RETVAL points at an insn that's deleted.
5165 * flow.c (insn_dead_p): New operand STRICT_LOW_OK says an insn
5166 that sets STRICT_LOW_PART may be considered dead.
5168 * expr.c (expand_expr): Once again canonicalize X-C to X+(-C).
5169 Change on March 1 made it stop doing this.
5171 Wed Mar 9 01:25:35 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5173 * loop.c (move_movables): Don't always mark the moved reg
5174 as equivalent to a constant value: not if it is being cleared
5175 to zero-extend something or if it is used outside the loop.
5177 * expr.c (move_by_pieces_1): Finish last change.
5179 * stmt.c (assign_parms): Update stack_args_size properly.
5180 Figure FIRST_PARM_OFFSET when making the stack mem refs.
5182 * cse.c (insert): Build the related_value lists in the opposite order
5183 so that the oldest element in the chain is the one that follows
5184 the most basic element.
5186 * expr.c (expand_expr): COMPONENT_REF case: criterion for
5187 converting the the result is if MODE1 (its mode of arrival) isn't
5190 * toplev.c (rest_of_compilation): Fix typo setting TREE_ASM_WRITTEN.
5192 Tue Mar 8 13:18:37 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5194 * cse'ing of library calls.
5196 * expr.h: type `optab' is now a ptr to a struct.
5197 The old contents are now the `handlers' element.
5198 The `code' element gives the RTL code for the kind of expression
5199 this optab makes (PLUS for add_optab, etc.)
5200 Every var formerly declared `struct optab *' is now just `optab'.
5202 * optabs.c (init_optab, init_optabs): New function to init an optab
5203 and set its `code'. Used in init_optabs.
5205 * optabs.c (expand_binop, expand_unop): Use the `code' field
5206 to add a REG_EQUAL note to the insn that copies a libcall's
5207 value into a pseudo. Also a REG_RETVAL note pointing at the
5208 first insn for setting up args for the call.
5210 * cse.c (cse_insn): Process REG_EQUIV and REG_EQUAL datum almost like
5211 another set-src; put the actual src into the equivalence class of that.
5213 * flow.c (propagate_block): If a dead insn has a REG_RETVAL reg-note,
5214 either ignore or delete all the insns back to the insn the REG_ARG
5217 * local-alloc.c (block_alloc): Don't refrain from allocating a
5218 "constant" register if the constant value isn't ok for an immediate op.
5221 * dbxout.c (CONTIN): If DBX_CONTIN_LENGTH is <= 0, do nothing.
5223 * cccp.c: Extra default include dirs for C++.
5224 * cccp.c (main): For -M, strip dirs from object file name.
5226 * rtl.c (find_reg_note): New function.
5228 * expmed.c (store_fixed_bit_field): Don't AND with VALUE
5229 if VALUE's original mode had no more bits than we want.
5231 * expr.c (emit_library_call): Use varargs.
5233 * integrate.c (copy_and_substitute_rtx): Recognize arg_pointer_rtx
5234 and translate it just like frame_pointer_rtx.
5236 Mon Mar 7 00:48:33 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5238 * expmed.c (extract_fixed_bit_field):
5239 Shift counts were wrong for narrow MODE in signed case.
5240 Do the sign-extending shifts in the narrowest mode possible.
5241 Reduce big-endian case to little-endian case.
5242 Delete SLOW_ZERO_EXTEND conditional.
5244 * Implement constants in memory for RISC machines
5245 with limited abilities for immediate args and constant addresses.
5247 * genoutput.c (output_epilogue): Empty predicate-name
5248 is output as 0 in insn_operand_predicate.
5250 * expr.c (expand_expr): Change 4th arg to an `enum expand_modifier'
5251 Value EXPAND_SUM corresponds to old nonzero 4th arg.
5252 Value EXPAND_CONST_ADDRESS means ok to return an invalid MEM
5253 whose address is a constant. Changes for this case in ADDR_EXPR,
5254 COMPONENT_REF and ..._DECL.
5256 * varasm.c (output_arith_constant): Function deleted.
5257 * tm-*.h: (ASM_OUTPUT_{INT,SHORT,CHAR}): 2nd arg is now an RTX
5258 and output it using `output_addr_const'.
5259 * varasm.c (output_constant): Change uses of those macros.
5261 * varasm.c (init_const_rtx_hash_table): Initialize constant pool
5262 for a new function. Called from `expand_function_start'.
5263 * varasm.c (force_const_mem): Turn a constant rtx into a MEM rtx
5264 which refers to the constant pool. Other new subroutines too.
5265 (force_const_double_mem): Use force_const_mem to make the MEM.
5266 (immed_real_const): No longer record the REAL_CST node in the rtx.
5268 * explow.c (force_reg): If arg is a constant and not legitimate,
5269 put it in the constant pool with force_const_mem.
5270 Mark the register as equivalent to the constant value.
5271 * expr.c (emit_move_insn): Likewise.
5272 * explow.c (break_out_mem_refs): Use force_reg to put into a reg.
5273 * explow.c (memory_address): Likewise.
5274 * expr.c (expand_expr): ADDR_EXPR case: likewise.
5276 * expr.c (expand_call): Do force_reg on each register-operand
5277 so it will go through a pseudo and can be cse'd.
5279 * recog.c (immediate_operand, nonmemory_operand, general_operand):
5280 For constant operands, use LEGITIMATE_CONSTANT_P to decide value.
5281 * tm-*.h: Define LEGITIMATE_CONSTANT_P.
5283 * reload1.c (reload): Invalid constants can't go in reg_equiv_constant.
5285 Sun Mar 6 22:49:06 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5287 * reload.c (push_reloads): If IN occurs within OUT,
5288 don't reuse an existing input-only reload. Otherwise would lose on
5289 (set (mem (plus R C)) (plus R C1)) if R is available in a spill reg.
5291 * reload1.c (choose_reload_targets): Don't choose an inherited
5292 reload register that's in use for another reload.
5293 Without this, above change doesn't have an effect.
5295 * Implement the `unchanging' flag in MEM and REG rtx's.
5296 Also simplify code with a new subroutine `change_address'.
5298 * emit-rtl.c (change_address): Return new memory ref like an old
5299 one but with specified mode and address.
5300 * expmed.c (extract{,_split,_fixed}_bit_field): Use change_address.
5301 (store{,_split,_fixed}_bit_field): Likewise.
5302 * expr.c (store_expr, expand_expr): Likewise.
5304 * expr.c (move_by_pieces): Args now memrefs, not addresses.
5305 Eliminate the FROM_VOL and TO_VOL args since the memrefs indicate.
5306 Change the structure `struct move_by_pieces' similarly.
5307 (move_by_pieces_1): Same changes; use change_address.
5308 (emit_block_move, emit_push_insn): Calls to move_by_pieces changed.
5310 * integrate.c (copy_rtx_and_substitute): Use change_address;
5311 handle ->unchanging field.
5313 * rtl.c (rtx_varies_p): Regs or memrefs with ->unchanging don't vary.
5314 (copy_rtx): Perserve ->unchanging.
5315 (print_rtx): Print ->unchanging as /u.
5317 * stmt.c (expand_decl): Set ->unchanging on `const' decls.
5318 (fixup_memory_subreg): Use change_address.
5319 (assign_parms): Record in the rtl which parms are volatile or const.
5321 * varasm.c (assemble_variable): Set ->unchanging on `const' decls.
5322 (output_constant_def): Always set ->unchanging for constant refs.
5324 * cse.c (canon_hash): Don't treat a MEM as "in memory"
5325 if its ->unchanging bit is set.
5327 * loop.c (invariant_p): A REG or MEM with ->unchanging is invariant
5328 (for a MEM, the address must be invariant).
5330 Sat Mar 5 13:22:11 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5332 * genconfig.c (walk_insn_part): DO consider MATCH_DUPs
5333 when calculating MAX_RECOG_OPERANDS.
5334 (gen_expand): define_expand is now different from define_insn.
5335 Compute max # SETs or CLOBBERs for any one sub-insn in a define_expand,
5336 instead of summing them all. And don't count the MATCH_DUPs at all.
5338 * genemit.c (max_operand_1): Record largest opno in a MATCH_DUP
5339 separately from largest in a MATCH_OPERAND.
5340 (gen_expand): An operand # with only MATCH_DUPs gets
5341 a local variable in the gen_ function we output.
5343 * integrate.c (save_for_inline): Delete vestige of NOTE_INSN_IS_DECL.
5345 * cse.c (invalidate): Handle subregs.
5346 (cse_ins, invalidate_from_clobbers): Do call `invalidate' for subregs.
5347 (insert_regs): When assigning one subreg from a like one,
5348 make the two regs equivalent.
5349 (cse_insn): Do call insert_regs when dest is a subreg.
5351 * expr.c (expand_call): Precompute all args going via hard regs
5352 since even arithmetic could require a library call.
5354 Fri Mar 4 15:48:17 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5356 * stor-layout.c (layout_parms): Function deleted.
5357 * stmt.c (expand_function_start): Don't call it.
5359 * stmt.c (assign_parms):
5360 stack_args_size counts size of args so far passed on stack.
5361 Use PARM_BOUNDARY when counting it; derive stack offsets from it.
5362 Set current_function_args_size from it.
5364 When an arg is split between regs and stack, make stack space
5365 for the rest of it, and count it.
5366 In a varargs function, push the last arg onto the stack.
5367 When an arg is passed in regs alone, don't remember a stack slot
5368 for it, and if it needs one, use assign_stack_local.
5370 Set DECL_OFFSET to the stack offset, or -1 if parm came in regs.
5372 * expr.c (expand_call): Anonymous args of a varargs function
5373 are always passed on the stack.
5375 * varasm.c (force_const_double_mem): Copy the MEM rtx
5376 if it may need to be smashed by reloading.
5378 * genemit.c (gen_expand): define_expand must have nonempty pattern
5379 even though, due to `return' statements in the code-to-run,
5380 that pattern may not be used to generate code.
5382 Thu Mar 3 17:08:43 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5384 * expr.c (expand_expr): If supposed to sign-extend an enum
5385 which is never negative, zero-extend instead (unless SLOW_ZERO_EXTEND).
5386 (store_expr): Likewise.
5388 * reload.c (find_reloads): 'm' for CONST_DOUBLE: clear BADOP, not BAD.
5389 After force_const_double_mem, do find_reloads_toplev on the MEM.
5390 (find_reloads_address): Handle constant addresses (on machines
5391 that don't allow them).
5393 * final.c (set_current_gdbfile): New fn, get the gdbfile structure
5394 for specified filename.
5395 (output_source_line): Use set_current_gdbfile for the file.
5396 * varasm.c (assemble_variable): Call set_current_gdbfile
5397 for the declaration's source file, so GDB won't ignore the file.
5399 * varasm.c (force_const_double_mem): Build a new REAL_CST node
5400 and get its data type from the machine mode of the CONST_DOUBLE.
5401 (immed_real_const): Don't save the REAL_CST tree node.
5402 * typecheck.c (get_floating_type): Return float type for given mode.
5404 * integrate.c (expand_inline_function): Ignore the (USE (REG...))
5405 (for the return-register) at the end of the inline function.
5406 After a CALL_INSN, imagine the (SET (REG ...) (REG ...)) for
5407 the return-register if the return-register isn't explicitly used.
5409 Wed Mar 2 22:08:49 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5411 * typecheck.c (build_array_ref): Do default_conversion on INDEX.
5413 Tue Mar 1 15:49:34 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5415 * expr.c (expand_call): Always get a SYMBOL_REF for a fixed function.
5416 If may be alloca, set may_call_alloca.
5417 (gen_call_1): Never put a SYMBOL_REF through `memory_address';
5418 but if function cse is wanted, just copy it to a register.
5419 If NO_FUNCTION_CSE is defined, never do function cse.
5421 * expr.c (init_expr): New function, does init_queue and inits
5424 * stmt.c (expand_function_start): Call init_expr, not init_queue.
5426 * optabs.c (expand_binop): Don't clobber OP0 and OP1
5427 if may call delete_insns_since later.
5429 * expr.c (emit_library_call): PUSH_ARGS_REVERSE test was backwards.
5431 * cse.c (cse_insn): Do canon_reg on the size and position operands
5432 in a ZERO_EXTEND or SIGN_EXTEND that is a destination.
5434 * tm-*.h: Define SLOW_BYTE_ACCESS.
5435 * expmed.c ({store,extract}_fixed_bit_field):
5436 If SLOW_BYTE_ACCESS, get/set all bit fields from full words.
5438 * combine.c (subst): Simplify
5439 (zero_extend:SI (subreg:QI (zero_extract ...))).
5440 * combine.c (simplify_and_const_int): Simplify
5441 (and (zero_extract ...) (const_int ...)).
5443 * local-alloc.c (qty_compare{,_1}): Test of qty_phys_sugg was reversed.
5444 (combine_regs): If one pseudo gets two suggested hard regs
5445 (one at birth and one at death), prefer the one from birth
5446 unless we see at death that it's no good.
5448 * expr.c (expand_expr): Ignore sum_ok unless mode is Pmode.
5449 Don't use force_operand unless sum_ok is set.
5451 Mon Feb 29 19:23:50 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5453 * expr.c (emit_move_insn): When a CONST_DOUBLE needs moving
5454 by pieces, force it into memory, unless it is dconst0_rtx,
5455 in which case each piece is const0_rtx.
5456 (emit_push_insn): Likewise. Also, write code for pushing a
5457 non-BLK mode which has no "mov" insn defined, but only
5458 in the case where there is no PUSH_ROUNDING.
5460 * expr.c (do_tablejump): Put constant term in address last.
5462 * toplev.c (xrealloc): On error, call fatal instead of abort.
5464 * optabs.c (emit_cmp_insn): If genning from tst_optab,
5465 make the operand fit its predicate.
5467 * optabs.c (expand_float): Don't adjust stack between cmp and jump.
5469 * optabs.c (expand_binop): Recursive calls can return 0; handle
5470 that event by deleting any preparatory insns. Also don't smash
5471 TARGET when this happens.
5473 * reload.c (push_reload): If IN != *INLOC, set reload_nocombine.
5474 (combine_reloads): Don't combine an input reload with reload_nocombine.
5476 * jump.c (jump_optimize): Don't delete stack adjusts unless
5477 EXIT_IGNORE_STACK is nonzero.
5478 * expr.c (clear_pending_stack_adjust): Likewise.
5479 * tm-*.h: When EXIT_IGNORE_STACK is defined, give it `1' as defn.
5481 * expr.c (expand_call): Initialize args_size.
5482 Don't push a block if args_size is 0.
5483 (emit_library_call): Don't include register-args (or reg-parts
5484 of partial ones) in args_size.
5485 Don't push a block if args_size is 0.
5487 * expr.c (expand_expr): For DECLs in memory, check the address
5488 validity with memory_address_p, and preserve volatility info.
5490 * stmt.c (expand_function_end): fixup_gotos needs 2 args.
5492 * jump.c (mark_jump_label): If INSN is 0, don't set its JUMP_LABEL.
5493 Inside an ADDR_VEC or ADDR_DIFF_VEC, recurse with 0 for INSN.
5495 * varasm.c (force_const_double_mem): Must zero TREE_CST_RTL
5496 before output, or nothing will happen.
5498 Sun Feb 28 01:08:53 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5500 * optabs.c (emit_unop_insn): Generate and emit an insn
5501 given the insn-code and the two operands (one out, one in).
5502 Can move the operands into registers when needed for various
5504 * expr.c (convert_move): Use emit_unop_insn for outputting the
5507 * expr.c (emit_library_call): Use arg's nominal mode to choose
5508 a reg to pass it in, not actual mode (which can be VOIDmode).
5510 * insn-emit.c (emit_insn): If arg is empty SEQUENCE, do nothing.
5512 * genemit.c (gen_expand): Scan the rtl-pattern for predicates
5513 and machine modes of the operands.
5515 * m68k.d (dbra patterns): Add HPUX_ASM conditionals.
5517 * rtl.c (reg_mentioned_p): Use "equal", not "eq", when
5518 REG isn't a register.
5519 * reload.c (combine_reloads): Verify not reg_mentioned_p even if
5520 the input reload's value isn't a register.
5522 * reload.c (operands_match_p): If successful and 2nd arg
5523 has a pre-increment that matches a non-increment, return 2.
5525 * reload1.c (reload): At end, clobber a pseudoreg to a MEM
5526 even if it's an out-of-range address. It doesn't affect the
5527 assembler code in this case, but it makes the dbx output correct.
5529 * recog.c (constrain_operands): When operands_match_p returns 2,
5530 in the constraint alternative that is ultimately successful,
5531 copy the output operand from the input that it matched
5532 so that the assembler insn that is output shows the pre-increment.
5534 Sat Feb 27 15:16:47 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5536 * combine.c (subst): When optimizing
5537 (set (zero_extract ...) (and (zero_extract ...) const))
5538 must arrange to have 1's, not 0's, shifted into low bits of const.
5540 * decl.c (grokdeclarator): When return-type defaults to int,
5541 don't warn, just set warn_about_return_type.
5542 (start_function): See that variable and warn, after starting function.
5544 * toplev.c (count_error): No longer print newline if not quiet.
5545 (report_error_function): If not quiet, print a newline if
5546 printing anything, and don't print the function name.
5548 * reload1.c (choose_reload_targets):
5549 Fix the loop that checks for consecutive available spill regs.
5550 Set `have_groups' nonzero if any reload wants a group.
5551 In that case, for non-group reloads, prefer a reg that can't be in
5552 group, or else one that has only one available neighbor.
5554 * reload1.c (reload): Find separately the max need for each class
5555 for single registers, groups of registers, and single registers
5556 not in any group. (The last one counts non-group reloads
5557 in insns that have at least one group reload.)
5558 Then make sure enough of each kind are found.
5560 * expmed.c: Now needs flags.h and recog.h (therefore insn-config.h).
5562 * expmed.c (store_bit_field):
5563 Delete redundant protect_from_queue.
5564 Force VALUE out of memory if -fforce-mem.
5565 If insv's predicate for VALUE wants a register, put it there.
5567 * expmed.c (extract_bit_field):
5568 Force TARGET out of memory if -fforce-mem.
5569 If insv's predicate for TARGET wants a register, put it there.
5571 Fri Feb 26 00:12:48 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5573 * reload1.c (eliminate_frame_pointer): Don't check for pushes
5574 unless PUSH_ROUNDING is defined.
5576 * reload.c: Don't define REG_OK_FOR_{INDEX,BASE}_P
5577 (since the tm file is supposed to do it).
5579 * expr.c (emit_push_insn, expand_call):
5580 Don't use PUSH_ROUNDING if it's not defined.
5582 * expr.c (preexpand_calls): Do nothing for constants and decls.
5584 * expr.c (expand_call, emit_library_call): When PUSH_ROUNDING
5585 is not defined, use ROUND_CALL_BLOCK_SIZE to round the size
5586 of the block of arguments.
5588 * expr.c (expand_call): Don't count register-args in ARGS_SIZE.
5590 * rtl.h, emit-rtl.c: Create static_chain_incoming_rtx
5591 and struct_value_incoming_rtx.
5592 * stmt.c (expand_function_start): Use ..._incoming_rtx where needed.
5594 * expr.c (expand_call): Use new macros INIT_CUMULATIVE_ARGS,
5595 CUMULATIVE_ARGS and FUNCTION_ARG_ADVANCE to update data
5596 on args scanned so far.
5597 (emit_library_call): Likewise.
5598 * stmt.c (assign_parms): Likewise.
5599 * tm-spur.h, tm-m68k.h: Define these macros.
5601 * rtl.h (NUM_MACHINE_MODES): NUM_MACHINE_MODE renamed.
5602 * rtl.c, genrecog.c: Change places it is used.
5604 * cccp.c (output_line_command): line_cmd_buf should be chars, not ints.
5606 Thu Feb 25 13:33:29 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5608 * genemit.c (gen_expand): Don't lose if pattern is empty-vector.
5610 * genconfig.c (gen_insn): Don't lose if pattern is empty-vector.
5612 * expr.c (expand_expr): For COMPONENT_REF, don't convert to tmode
5613 unless the mode we get is unacceptable.
5615 * loop.c (scan_loop, move_movables): New field `partial' is 1 for
5616 zero-extending clr insn; don't make the reg invariant when it's moved.
5618 * optabs.c (expand_unop, expand_binop, emit_cmp_insn):
5619 mode-argument to predicates was missing.
5621 * optabs.c (expand_binop): If gen-function returns 0, this means
5622 the insn wasn't available.
5624 * reload.c (find_reloads): Don't make optional reloads for operands
5625 that match other operands.
5627 * reload.c (combine_reloads): Reject optional output reload.
5629 * reload.c (find_equiv_reg): Know that CALL_INSNs clobber memory.
5631 * typecheck.c (build_binary_op_nodefault):
5632 If doing a short shift, leave the shift-count as a fullword.
5634 Tue Feb 23 14:43:46 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5636 * combine.c (subst): Count, in n_occurrences, # times FROM is seen.
5637 (try_combine): Refuse to combine x=*y++ into z = x*x.
5639 * loop.c (invariant_p): Frame pointer and arg pointer are invariant.
5640 (move_movables): Don't forget to set ->done!
5641 When moving the matching movables, don't forget to set n_times_set.
5643 * expmed.c (expand_shift): Reorder strategies for logical shift;
5644 if widening, try all ashift strategies before extzv.
5646 * typecheck.c (build_binary_op_nodefault):
5647 Always return error_mark if either operand is one.
5649 * recog.c (nonmemory_operand): New predicate.
5651 * optabs.c (expand_unop, expand_binop, emit_cmp_insn):
5652 Don't treat `register_operand' as special. Apply the predicate
5653 to the rtx; if the predicate fails, use a register instead.
5655 Mon Feb 22 22:37:32 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5657 * expr.c (expand_calls): Preexpand all calls in arguments
5658 that are passed in regs before copying any of them into the regs.
5660 * expr.c (emit_push_insn): Three more args.
5661 EXTRA for extra space to leave.
5662 ARGS_ADDR and ARGS_SO_FAR for using move-insns on machines
5663 that lack true push insns.
5665 * expr.c (emit_library_call, expand_call):
5666 Use the new arguments of `emit_push_insn'.
5668 * expr.c (PUSH_ARGS_REVERSED): defined if handle args last-to-firs.
5670 Sun Feb 21 12:17:59 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5672 * toplev.c (rest_of_compilation): Set TREE_ASM_WRITTEN
5673 when a function is really output as assembler code.
5674 Don't do inlining of a function that is already made inline;
5675 instead, output it as assembler code, because this must be
5676 the second call for that function.
5678 * decl.c (finish_compilation): Delete it.
5679 * toplev.c (compile_file): Output pending inline functions at the end
5680 in the same way tentative-defined variables are output.
5682 * emit-rtl.c (restore_reg_data): New fn: given chain of insns,
5683 restore emit-rtl's data on registers from the regs they use.
5685 * integrate.c (output_inline_function): Use restore_reg_data.
5686 (fill_regno_reg_rtx_as_needed): Now restore_reg_data_1 in emit-rtl.c.
5688 * tree.c (build_decl): Function moved from decl.c.
5689 No longer set attributes of function decls specially.
5691 * decl.c (implicitly_declare, builtin_function, grokdeclarator):
5692 Don't expect build_decl to set attributes of FUNCTION_DECL.
5694 * tree.c (preserve_data): New fn, make all data now on
5695 maybepermanent_obstack last permanently.
5697 * cse.c (cse_insn): Remove a STRICT_LOW_PART from the dest rtx
5698 before putting it in the hash table.
5700 * symout.c (symout_block): Fix the args to `symout_block_symbols'.
5702 Sat Feb 20 00:07:52 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5704 Start of changes for inline functions.
5705 Changes received from Tiemann, then slightly rearranged for simplicity.
5707 * integrate.c: New file (Tiemann's rtl2.c).
5708 * integrate.c (function_cannot_integrate_p):
5709 New fn, only checks whether current fn is safe and good to inline.
5710 Returns an error message string if not.
5712 * expr.c (current_args_size): Var made static.
5713 (store_expr): Fn no longer static.
5714 (stack_pointer_rtx): Use this var for all refs to the stack pointer.
5715 (struct_value_rtx, static_chain_rtx): Likewise
5717 * expr.c (expand_call): Detect calls to integrable functions
5719 **If fn is not named "alloca" then assume it is not `alloca'. **
5721 * emit-rtl.c (max_label_num): New fn, returns number for next label.
5722 (get_first_label_num): New fn, returns first label of current fn.
5723 (init_emit): Save first label number of this fn.
5725 * emit-rtl.c (gen_inline_header_rtx): New fn, make an INLINE_HEADER.
5727 * emit-rtl.c (emit_declaration): New fn to emit new kind of NOTE.
5729 * emit-rtl.c (init_emit_once): New fn.
5730 Move inits of unique rtl objects here, from init_emit.
5732 * decl.c (finish_compilation): New fn to compile separately
5733 any nonglobal inline functions that need to be addressable.
5735 * decl.c (grokdeclarator): Handle `inline' kwd among the declspecs.
5736 Set TREE_INLINE if it's safe.
5738 * decl.c (finish_function): If fn was inlined, don't clear
5739 the DECL_ARGUMENTS or DECL_RESULT or DECL_INITIAL.
5741 * gen*.c: Provide rtl_obstack, not current_obstack.
5743 * rtl.c (rtl_obstack): Variable: ptr to obstack to use for making rtl.
5744 * rtl.c (rtx_alloc, rtvec_alloc): Use that obstack.
5745 * rtl.c (copy_rtx): Copy the `integrated' flag.
5746 * rtl.c (print_rtx): Print that flag as `/i'.
5748 * rtl.def: New rtx code INLINE_HEADER.
5750 * rtl.h (struct rtx_def): Add `integrated' field.
5751 * rtl.h: Define macros for fields in an inline_header rtx.
5753 * stmt.c (max_parm_reg_num, get_first_function_insn):
5754 New fns, return info on parm regs and the insns that init them.
5756 * stmt.c (expand_decl): Simplify with new local `type'.
5758 * stmt.c (stack_pointer_rtx): Replace all refs to stack pointer
5759 with this shared rtx.
5760 * stmt.c (struct_value_rtx): Likewise.
5762 * stmt.c (expand_start_function): Call init_pending_stack_adjust
5763 instead of clear_pending_stack_adjust.
5764 If not using a return-label, set `return_label' to 0.
5766 * stmt.c (expand_null_return, expand_end_function):
5767 Call clear_pending_stack_adjust unconditionally.
5769 * expr.c (clear_pending_stack_adjust): Move the conditionals here.
5770 For now, this fn is a no-op, since it's not safe in an inline fn
5771 and the stack adjusts are deleted by jump.c in if optimizing.
5773 * expr.c (init_pending_stack_adjust): New fn.
5775 Fri Feb 19 14:30:13 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5777 * toplev.c (main): Decode -finline-functions, -fkeep-inline-functions.
5779 * toplev.c (rest_of_compilation):
5780 At start, save the rtl if function should be inline.
5781 For inline function, if we don't yet know whether it should be
5782 compiled on its own, don't do so.
5784 * toplev.c (compile_file): Clear, and later print, `integration_time'.
5785 Call `init_emit_rtl' when starting.
5786 Call `finish_compilation' at the end.
5788 [Add an extra arg to the error and warning functions?]
5790 * tree.c ({push,pop,clear}_momentary):
5791 Change momentary_stack from a char ** to a struct momentary_level *.
5793 * tree.c (build_pointer_type): Put temporary type in `saveable_obstack'
5794 * tree.c (build_type_variant): Likewise.
5795 * tree.c (make_node): Likewise. Also put decls and LET_STMTs there.
5796 * tree.c (type_hash_canon): Free a temporary type in `saveable_obstack'
5798 * tree.c (perm_tree_cons): Like `tree_cons' but on perm. obstack.
5800 * tree.c (init_tree, {{end_,}temporary,permanent}_allocation):
5801 Handle `maybepermanent_obstack' and `saveable_obstack' and
5804 * tree.h (TREE_INLINE): New attribute macro.
5805 * tree.h (DECL_SAVED_INSNS, DECL_FRAME_SIZE):
5806 New components in a FUNCTION_DECL.
5807 Delete the `unused` slot in a `struct tree_decl'.
5809 * typecheck.c (mark_addressable): Set TREE_ADDRESSABLE
5810 even in FUNCTION_DECLs.
5812 * typecheck.c (build_function_call):
5813 If function is a FUNCTION_DECL, avoid setting TREE_ADDRESSABLE
5814 when taking its address.
5816 * parse.h: Define RID_INLINE.
5817 * parse.y: Define keyword `inline'; set up ridpointers for it.
5818 (yylex): Don't recognize `inline' of -fno-asm or -ftraditional.
5820 * flags.h: New vars flag_inline_functions
5821 and flag_keep_inline_functions.
5823 End of changes for inline functions.
5825 * tree.c (convert): If EXPR's type is an error_mark, return error_mark.
5827 * Makefile (install): Don't strip the executables.
5829 * jump.c (delete_insn): Deleting a label's target
5830 can delete either NEXT and PREV! So must search for a
5831 following nondeleted insn to return.
5833 * typecheck.c (build_function_call): Typo in validating
5834 data type of function.
5836 * genoutput.c (gen_expand): Must create a `struct data' even
5837 for a define_expand, so we can output the proper insn_gen_function
5838 and leave zeros in the other tables.
5840 * loop.c (scan_loop): Replace the code for handling zero-extends
5841 with unconditional code that checks for a pair of insns.
5843 * m68k.md: Do zero-extend using define_expand to generate
5844 a pair of insns, to set all to zero and then copy the low part.
5846 Thu Feb 18 15:54:00 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5848 * emit-rtl.c (emit_insn): If arg is a SEQUENCE, emit several insns.
5849 * emit-rtl.c (classify_insn): Given an RTX, return the rtx-code for
5850 an insn containing it: CODE_LABEL, INSN, JUMP_INSN or CALL_INSN.
5852 * rtl.def: New RTX types DEFINE_EXPAND and SEQUENCE.
5853 * gen*.c: Handle DEFINE_EXPAND. Only genemit.c does real work.
5855 * make.com, make-cc1.com, make-cccp.com: New, VMS command files.
5857 * tm-vms.h: New file, used as tm.h to generate VMS code.
5859 * tm-vax.h (FUNCTION_PROLOGUE): Turn off no bits in the mask;
5860 let call_used_registers alone control this.
5861 Call MAYBE_VMS_FUNCTION_PROLOGUE, and define that as no-op.
5863 * tm-vax.h (TARGET_VAXC_ALIGNMENT): New target-flag bit.
5864 BIGGEST_ALIGNMENT, EMPTY_FIELD_BOUNDARY and POINTER_BOUNDARY use it.
5866 * varasm.c (assemble_function): Use ASM_DECLARE_FUNCTION_NAME
5869 * varasm.c (assemble_variable): On an external,
5870 use ASM_OUTPUT_EXTERNAL if defined. Default is do nothing, as before.
5873 Use FATAL_EXIT_CODE and SUCCESS_EXIT_CODE.
5874 Don't include time.h and resource.h on VMS.
5875 (main) Define __VERSION__ if not already defined.
5876 Conditionalize setrlimit on RLIMIT_STACK.
5877 Test __GNUC__, not __GNU__.
5878 Don't do `ps v' on VMS.
5879 (gettime): Conditional code for VMS.
5881 * gcc.c: Define __GNUC__ as well as __GNU__.
5882 __GNU__ will be deleted in a future version.
5884 * symout.c (symout_finish) [VMS]: Don't refer to `getwd' on VMS.
5885 * symout.c (symout_init) [VMS]: Fatal error; GDB syms not supported.
5887 * parse.y (yylex): Handle DOLLARS_IN_IDENTIFIERS.
5889 * genoutput.c (gen_insn): Workaround for VMS printf %s bug.
5891 * gen*.c: Include config.h. Whenever exiting, use
5892 SUCCESS_EXIT_CODE or FATAL_EXIT_CODE.
5894 * config-*.h: Define SUCCESS_EXIT_CODE and FATAL_EXIT_CODE.
5895 * config-vms.h: New file, mostly like config-vax.h.
5897 Wed Feb 17 13:35:34 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5899 * cccp.c: VMS support from Kashtan.
5900 Some #include files are conditional.
5901 Use file_size_and_mode instead of fstat.
5902 When reading file contents, the size we get from that
5903 is just an upper bound; don't assume it must match.
5904 Replacement definitions of read and write for VMS.
5905 Different default include directories.
5906 Conditionalize the setrlimit code on RLIMIT_STACK.
5907 Use SUCCESS_EXIT_CODE when exiting if no errors;
5908 both that and FATAL_EXIT_CODE are not #defined if already defined.
5910 Treat $ as an identifier-character if DOLLARS_IN_IDENTIFIERS.
5911 Rename the `delete' function as `delete_macro'
5912 to avoid VMS name conflict.
5914 * cexp.y: Treat $ as an identifier-character if DOLLARS_IN_IDENTIFIERS.
5916 * stmt.c (fixup_memory_offset): Do big-endian compensation
5917 only within a word, not for DImode vs SImode.
5919 * stmt.c (fixup_var_refs): Don't fix up the insn to load the var
5920 from its own stack slot; delete it instead.
5922 * tm-ns32k.h (MODES_TIEABLE_P): DImode is like DFmode.
5924 * tree.c (MAX_HASH_TABLE): 1009 (more prime) instead of 1008.
5926 * decl.c (duplicate_decls): If merged type is OLD's type,
5927 keep OLD's DECL_SIZE and DECL_SIZE_UNIT.
5929 * gen*.c (xmalloc, xrealloc): Call `fatal' if memory is full.
5931 * reload1.c (choose_reload_targets): If a mode doesn't fit the
5932 reload register, and the insn is an ASM_OPERANDS, ignore the reload.
5933 Otherwise, final would crash.
5935 * expmed.c (expand_shift): Two new strategies for lshr on short/char:
5936 widen and do ashr, or widen and do extzv.
5938 * vax.md (peepholes): Use dead_or_set_p to check for eliminable
5939 intermediate result, rather than requiring a match with final result.
5941 * local-alloc.c (block_alloc): Testing frame_pointer_needed is
5942 enough; no need to test FRAME_POINTER_REQUIRED, etc.
5943 * global-alloc.c (find_reg): Likewise.
5944 * reload1.c (reload): Likewise for flag_omit_frame_pointer
5946 * jump.c (delete_insn): If not `optimize', don't complain
5947 about finding an already-deleted insn in the chain.
5949 Tue Feb 16 17:14:54 1988 Richard Stallman (rms at wheaties.ai.mit.edu)
5951 * final.c: Don't define N_SOL and N_SLINE if already defined.
5953 * final.c (output_source_line):
5954 Typo calling ASM_OUTPUT_SOURCE_FILENAME.
5956 * flow.c (INSN_VOLATILE): fix a typo.
5958 Fri Feb 12 16:48:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
5960 * final.c (final): for `asm' without operands, output literally.
5962 Thu Feb 11 12:44:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
5964 * symout.c (symout_record_fields): Handle nameless fields.
5965 * symout.c (symout_record_field_names): Likewise.
5967 * typecheck.c (require_complete_type): `void' is a complete type.
5968 * typecheck.c (build_function_call): Don't complain if result is void.
5970 * tm-hp9k320.h: Change definition of ASM_SPEC to +X, not -X.
5972 * cccp.c (main): Expected object file name for foo.cc is foo.o.
5974 Wed Feb 10 16:04:58 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
5976 * reload1.c (reload): Initialize `regmask' to zero.
5977 Class number is in I, not in CLASS, when setting its elements.
5978 Don't let J+K be too large.
5980 * reload1.c (potential_reload_regs): Make it a `short'
5981 since that can't be unsigned.
5983 * cccp.c (warning): New function, called like `error'.
5984 * cccp.c (do_define): Make redefinition just a warning.
5986 Tue Feb 9 13:28:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
5988 * decl.c (grokdeclarator): Don't be fooled by ERROR_MARK as a declspec.
5990 * toplev.c (compile_file): Strip final .c or .co from .sym file name.
5992 * gcc.c: When running `as', specify the .sym file if -gg.
5994 Mon Feb 8 11:26:26 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
5996 * expmed.c (store_fixed_bit_field): Don't try gen_lowpart on VALUE
5997 if it's a subreg since it might lose; use convert_to_mode instead.
5999 * tm-hp9k320.h: Define TARGET_MEM_FUNCTIONS.
6000 * expr.c (emit_block_move, emit_push_insn, clear_storage):
6001 If TARGET_MEM_FUNCTIONS, generate calls to memcpy and memset
6002 instead of bcopy and bzero.
6003 * optabs.c (emit_cmp_insn): Likewise for memcmp vs bcmp.
6005 * stmt.c (expand_goto): New temp var to avoid RT/PC compiler bug.
6007 Sun Feb 7 12:20:23 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6009 * flow.c (mark_used_regs, mark_set_regs):
6010 Handle hard regs in multiword modes: set the bits for each
6011 distinct register-number that makes up the multiword mode.
6012 Necessary because function arg registers can inevitably
6013 live across basic blocks.
6015 * cse.c (canon_hash): Function arg and value registers no longer
6016 considered volatile, because flow should now handle the code that
6017 can result from cse'ing them.
6019 * cse.c (make_regs_eqv): Abort if OLD is invalid.
6020 * cse.c (reg_invalidate): Abort if reg already invalid has eqvs.
6022 Sat Feb 6 16:25:32 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6024 * gcc.c (main): Specific error msg if no input files.
6026 Fri Feb 5 17:56:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6028 * stmt.c (expand_decl, put_var_into_stack, assign_parms):
6029 Set in_struct on a MEM if the variable is an aggregate or union.
6030 * varasm.c (assemble_variable): Set in_struct on aggregate vars.
6032 Thu Feb 4 11:52:30 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6034 * m68k.md (movsf): Correct two fmove.x to fmove.s.
6036 * expmed.c (extract_fixed_bit_field):
6037 Must always generate an `and' to mask the bitfield
6038 unless its width is the same as the output machine mode.
6040 * version 1.18 released.
6042 Wed Feb 3 08:41:20 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6044 * fold-const.c (fold): Convert EXPR's operands before returning them.
6046 Tue Feb 2 15:35:18 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6048 * reload.c (find_reloads_address_1):
6050 * typecheck.c (default_conversion): Handle COMPOUND_EXPR arrays.
6052 Mon Feb 1 18:53:05 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6054 * ns32k.md: operand 0 of all unsigned divide/modulus insns
6055 is now register_operand.
6057 * stdarg.h: Make va_list be char *, not char *[1].
6058 Latest draft doesn't say it must be an array type.
6060 Sun Jan 31 11:14:07 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6062 * flow.c (find_basic_blocks): Add temp var to avoid Sequent
6065 * tm-ns32k.h (GO_IF_LEGITIMATE_ADDRESS): Don't allow pushes or pops
6066 since there are special insn patterns for them.
6067 Resubroutinize and add temp vars to make expressions smaller.
6068 * ns32k.md: Add a few more special stack insns; now there are enough.
6070 * tm-sequent.h: Definitions of DBX_NO_XREFS and DBX_CONTIN_LENGTH.
6072 * reload1.c (choose_reload_targets): Handling of reload_strict_low
6073 is needed for input reloads as well as output, since a strict_low_part
6074 operand is normally a read-write operand.
6076 * reload1.c (reload): The mode a reload needs is the wider of
6077 the input and output modes--just as it is in choose_reload_targets.
6079 * reload.c (find_dummy_reload): If IN and OUT have different widths
6080 and one of them exceeds a word, don't find any dummy reload.
6082 * toplev.c (compile_file): Allocate enough space for .jump2 filename.
6084 Sat Jan 30 10:35:46 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6086 * output-ns32k.c (print_operand_address):
6087 Print addresses of the form C1+(N*REG+C2) which currently
6088 are accepted as legitimate memory addresses.
6090 * tm-sequent.h: Simple bugs in PRINT_OPERAND, TARGET_DEFAULT
6091 and SEQUENT_ADDRESS_BUG.
6093 * gen*.c: Must explicitly exit; returning from `main' fails
6094 to indicate nonzero status due to bug in Unix.
6096 * parse.y (check_line_number): Ignore entire line of unrecognized
6097 #-directive; no error if it is `pragma'.
6099 Fri Jan 29 06:46:01 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6101 * genrecog.c, genextract.c, genoutput.c: Define bcopy and/or bzero.
6103 * cccp.c (do_define): Make defn->argnames long enough in no-args case.
6105 * reload1.c (reload): Make basic_block_needs 0 until after the
6106 frame pointer reg is spilled, so that ALL pseudos in it are spilled.
6108 * typecheck.c (truthvalue_conversion):
6109 Strip a NOP_EXPR only if it extends, not if it truncates.
6110 (build_unary_op): For TRUTH_NOT_EXPR, call invert_truthvalue
6113 * Fixes for HPUX support from cph:
6114 * tm-hp9k320.h: Correct names of floating-point registers.
6115 Fix typos in ASM_OUTPUT_OPCODE; also convert `fmove' to `fmov'.
6116 * Makefile (comments for HPUX):
6117 cph says -Wd,-X isn't needed in CFLAGS, nor -lBSD in CLIB.
6118 Also that -g can't be used in CFLAGS with HP's pcc.
6119 * conf-hp9k320.h: New file, like config-m68k.h but with
6120 #defines for the bstring functions.
6121 * m68k.md: Add else-clauses to the HPUX_ASM conditionals on cmp insns.
6122 Reinsert mistakenly-deleted MOTOROLA conditionals around
6125 Thu Jan 28 09:51:41 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6127 * jump.c (jump_back_p): If TARGET is unconditional, return 0.
6129 Wed Jan 27 04:18:29 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6131 * combine.c (subst): Simplify (plus (plus x c1) c2).
6133 * expr.c (emit_push_insn): Don't use small-block push-insns for BLKmode
6134 when one of them would be affected by PUSH_ROUNDING.
6135 Instead, make all the space and then copy.
6136 * expr.c (expand_call): Don't apply PUSH_ROUNDING if BLKmode.
6138 * Allow `asm' with operands to be marked volatile.
6139 * cse.c (canon_hash): Don't record ASM_OPERANDS that has `volatil'.
6140 * loop.c (invariant_p): ASM_OPERANDS with `volatil' can't be invariant.
6141 * flow.c (volatile_refs_p): Note ASM_OPERANDS that are volatile.
6142 * stmt.c (expand_asm_operands): New arg VOL; mark ASM_OPERANDS as vol.
6143 * typecheck.c (c_expand_asm_operands): New arg VOL.
6144 * parse.y: allow a TYPE_QUAL after ASM.
6146 * Make cse handle `asm' with operands:
6147 * cse.c (canon_hash): Hash string operands by contents, not address.
6148 * cse.c (exp_equiv_p): Compare string operands with strcmp.
6149 * rtl.c (rtx_equal_p): Compare string operands with strcmp.
6151 * decl.c (init_decl_processing): Once sizetype is set,
6152 correct the type of the sizes of types already made.
6154 * cccp.c (do_defines): Don't reject #define foo{a}.
6156 Tue Jan 26 04:53:16 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6158 * reload.c (find_reloads): Now that `asm' is limited to
6159 MAX_RECOG_OPERANDS, eliminate dynamic allocation of `constraints'
6160 and `constraints1', and go back to `recog_operand' instead of
6163 * typecheck.c (c_expand_asm_operands): New fn to handle `asm' for C.
6164 Calls expand_asm_operands, and handles output operands that
6165 the other function cannot handle.
6167 * parse.y: Call that function.
6169 * stmt.c (expand_asm_operands): Error if too many operands.
6170 #include insn-config.h to get MAX_RECOG_OPERANDS.
6172 * expr.c (expand_assignment): Use store_field to handle
6173 structure fields and array elements.
6175 * output-m68k.c (output_move_double): PUSHOP and POPOP were swapped.
6176 Handle insns that push an sp-relative address onto sp;
6177 these can arise with -fomit-frame-pointer.
6178 BUG? Do unoffsetable mem refs using sp and fp lose?
6180 * m68k.md (movdi,movdf): Allow unoffsetable mem refs
6181 only if the other operand is a register.
6183 * m68k.md (zero_extendqisi2): SGS conditionals deleted.
6184 Supposedly the MOTOROLA syntax works for those addresses.
6186 * typecheck.c (default_conversion):
6187 If flag_traditional, preserve unsignedness when promoting ints,
6188 and promote float to double.
6190 * typecheck.c (build_binary_op_nodefault):
6191 Allow comparisons between pointers and ints.
6192 If not -traditional, warn about them.
6194 Mon Jan 25 02:11:18 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6196 * expmed.c ({extract,store}_split_bit_field):
6197 Functions {extract,store}_split_reg_bit_field now work for memory
6198 also, and therefore are renamed.
6199 * ({extract,store}_fixed_bit_field): Call those fns when a field
6200 is split across two words.
6201 Also, preserve the `volatil' bit on memory refs.
6203 * output-m68k.c (output_move_double): Handle nonoffsetable mem refs.
6204 * m68k.md: Relax constraints on movdi, movdf.
6206 * decl.c (init_decl_processing): Define `int' and `char' first.
6207 Set `sizetype' explicitly.
6209 * stmt.c (fixup_var_refs_1): May not just return when a SET
6210 doesn't have VAR as its src or dest.
6212 * varasm.c: Don't include c-tree.h.
6214 * decl.c (build_struct): Split this function into three:
6215 `xref_tag', `start_struct' and `finish_struct'.
6216 `xref_tag' subsumes `xref_enum'.
6218 * parse.y (structsp): When parsing `struct foo {...}', define the tag
6219 as a cross-ref before parsing the components. Use the three new fns.
6221 * regclass.c (regclass): Recognize new-format ASM_OPERANDS insns
6222 with `asm_noperands', and scan their operands as usual.
6224 * cse.c: In numerous functions such as canon_hash, rtx_cost, etc.
6225 that do tree-walk on rtx, handle vectors of subexpressions.
6227 * loop.c (invariant_p): Likewise.
6229 * jump.c (delete_insn): Two bugs:
6230 If insn already deleted, return the first following nondeleted.
6231 Deleting a jump's label can delete NEXT. Make sure return value
6232 is always the first insn following INSN and not yet deleted.
6234 Sun Jan 24 02:27:49 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6236 * rtl.def (ASM_OPERANDS): Change the rtl expression of an
6237 `asm' with operands so it looks like this for one output operand:
6238 (set OUTPUT (asm_operands:OUTPUTMODE INSNSTRING OUTPUTCONSTRAINT
6239 0 INPUTS INPUTCONSTRAINTS)).
6240 and like this for multiple outputs:
6242 (set OUTPUT0 (asm_operands:OUTPUTMODE INSNSTRING OUTPUTCONSTRAINT
6243 0 INPUTS INPUTCONSTRAINTS)).
6244 (set OUTPUT1 (asm_operands:OUTPUTMODE1 INSNSTRING OUTPUTCONSTRAINT1
6245 1 INPUTS INPUTCONSTRAINTS))])
6247 * parse.y: Change parsing of `asm' to distinguish input and output
6248 operands. Separate them with colon; separate the string with colon.
6250 * stmt.c (expand_asm_operands): Receive inputs and outputs separately.
6251 Generate the new rtl format.
6253 * recog.c (asm_noperands, decode_asm_operands): New fns
6254 for extracting the operands and constraints from these insns.
6256 * final.c (final): Recognize and output the new rtl format
6257 using those new functions.
6259 * reload.c (find_reloads): Recognize and get constraints
6260 from the new rtl format using those new functions.
6261 New variable `operand_modes' holds the machine modes of the
6262 operands, obtained one way for ASM_OPERANDS insns and another
6265 * rtl.c (note_stores): Calling convention
6266 is changed: the first arg FUNCTION now receives as its 2nd arg
6267 1 if clobbering, 0 if setting. Used to be the CLOBBER or SET rtx.
6269 * local-alloc.c (reg_is_set): This fn is called from note_stores;
6270 change its arguments.
6272 * tm-m68k.h (FIXUP_FRAME_POINTER_ADDRESSES):
6273 Use frame_pointer_rtx to recognize intended frame-pointer refs
6274 and not recognize pseudo-regs that were allocated to the frame
6277 * emit-rtl.c: All refs to frame pointer use a single rtx, in
6278 frame_pointer_rtx. Likewise arg_pointer_rtx for the arg pointer.
6279 If they are the same register, these are the same rtx.
6280 Initialize them in init_emit.
6281 * rtl.h: Declare these vars.
6283 * stmt.c (assign_parms, assign_stack_local): Use those rtx's.
6285 Sat Jan 23 00:32:10 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
6287 * reload.c (find_reloads): Don't combine_reloads if `&' constraint
6290 * parse.y: Parse `asm' with operands.
6291 * stmt.c (expand_asm_params): New fn: generate an ASM_OPERANDS for
6292 `asm' with operands.
6293 * final.c (final): Output an ASM_OPERANDS insn-body.
6294 * regclass.c (regclass): Ignore ASM_OPERANDS, like ASM_INPUT.
6296 * reload.c (find_reloads): Handle reloading of ASM_OPERANDS.
6297 The number of operands can no longer be bounded.
6298 For example we can't always put the operands in recog_operands.
6300 New locals OPERANDS and OPERAND_LOCS point to alloca'd vectors of
6301 operands and their locations. New locals CONSTRAINTS and CONSTRAINTS1
6302 hold alloca'd vectors of constraints.
6304 Unfortunately this isn't enough; every vector with length
6305 MAX_RECOG_OPERANDS needs to be dynamically allocated.
6306 Would this be too slow? For now, a cheap "solution" is to delete
6307 any insn that has too many operands.
6309 * rtl.def: Delete VOLATILE, UNCHANGING and UNDESCRIBED.
6312 * regclass.c (reg_class_record): Delete ref to UNCHANGING.
6313 * loop.c (invariant_p):
6314 * rtl.c (rtx_varies_p):
6316 * cccp.c: Define __VERSION__.
6318 * decl.c (shadow_tag): TYPE_NAME doesn't work to get the tag-name
6319 of a struct, so use new function lookup_tag_reverse.
6320 * decl.c (lookup_tag_reverse): Given a type, return its tag name.
6322 * symout.c (symout_source_file): Output one `struct source'.
6323 * symout.c (symout_lines): Output all of them, and the sourcevector.
6324 * gdbfiles.h: New file for communication between final.c and symout.c.
6326 * final.c (output_source_line): New arg WRITE_SYMBOLS says write
6327 new GDB-format linenumber info. Assigns a filenum to each source
6328 file name and keeps track of the correspondence.
6330 * cccp.c (do_include): Output the -M info after searching the dirs;
6331 include the actual dir name. Don't generate "./" for current dir.
6333 Fri Jan 22 04:10:10 1988 Richard Stallman (rms at frosted-flakes)
6335 * tm-news800.h: Delete override of INDIRECTABLE_1_ADDRESS.
6336 Output is faster if it doesn't use 32-bit displacements.
6338 * reload.c (combine_reloads): New function.
6339 If possible, find an input reload
6340 and an output reload that can be turned into one input-output reload.
6341 The old output-reload is marked as inoperative: reload_out
6342 and reload_in both zero. This is called from find_reloads.
6344 * reload1.c (reload, choose_reload_targets): Ignore inoperative
6347 * Print warnings for variables that could be clobbered by `longjmp'.
6348 * expr.c (expand_call): Generate a NOTE_INSN_SETJMP whenever
6349 `setjmp' or `_setjmp' is called.
6350 * flow.c (propagate_block): When NOTE_INSN_SETJMP is seen,
6351 record the live regs in `regs_live_at_setjmp'.
6352 * stmt.c (uninitialized_vars_warning): Warn about vars that have regs
6353 that are set more than once and are marked in `regs_live_at_setjmp'.
6354 Works through function `regno_clobbered_by_longjmp'.
6355 * rtl.h: Define NOTE_INSN_SETJMP.
6357 * genrecog.c (try_merge_2): When enforce_modes, keep all the
6358 alternatives segregated by modes and keep the modes in numerical order.
6359 * genrecog.c (write_tree): Make conditions for switch-on-modes
6360 know what difference enforce_mode makes.
6362 Thu Jan 21 00:12:35 1988 Richard Stallman (rms at frosted-flakes)
6364 * tm-ns32k.h: Use Stein's definitions of PRINT_OPERAND{,_ADDRESS};
6365 move the Sequent definitions info tm-sequent.h.
6366 Handle %$ in both old and new PRINT_OPERAND.
6367 Define CPP_PREDEFINES.
6369 * ns32k.md: Merge some features from Jan Stein's port:
6370 strict_low_part insns, smart output of booleans with small
6371 constant args, acbd insns generalized for other increments.
6372 Use %$ wherever there is an explicit immediate.
6373 Fix shortcomings of adjsp insns: use adjspd in general,
6374 and use adjspb in all the cases that allow it.
6375 Don't bother explicitly clearing CC_REVERSED.
6376 For tstsf/tstdf, output the floating-zero constants
6377 using {f,d}const0_rtx.
6379 A problem still remains, which is that the Sequent and the
6380 other ns32k assembler syntax require different
6382 * typecheck.c (unary_complex_value): Use correct datatype for
6385 * gen*.c (main): Use obstack_init instead of obstack_begin.
6387 * vax.md: define_peephole for andl3 x,y,z; extzv z,....,z
6389 * m68k.md (tstsi): Use cmpw instead of cmpl to test addr reg.
6391 * tm-m68k.h: Bugs for 68000 when frame size is over 64k.
6392 For FUNCTION_PROLOGUE, just subtract from sp instead of fp.
6393 For FUNCTION_EPILOGUE, must put the size into a0 and then
6394 all insns must be indexed by a0. And do this even on 68020.
6396 * tm-isi68.h: Similar changes.
6397 * tm-news800.h, tm-hp9k320.h: Similar changes.
6399 Wed Jan 20 04:38:21 1988 Richard Stallman (rms at frosted-flakes)
6401 * cccp.c (error_with_line): New function.
6402 Use it to report the "unterminated whatever" errors.
6404 * typecheck.c (build_unary_op): Recursive call had missing arg.
6406 * m68k.md (movhi): If MOTOROLA, the insn that fetches from a
6407 case-dispatch table now defines the LI label as .+2.
6408 * tm-news800.el, tm-hp9k320.h (PRINT_OPERAND_ADDRESS):
6409 Don't subtract 2 when outputting the address in that insn.
6411 Tue Jan 19 00:02:33 1988 Richard Stallman (rms at frosted-flakes)
6413 * cse.c (cse_basic_block): Abort if more qtys were used than allocated.
6415 Mon Jan 18 04:44:28 1988 Richard Stallman (rms at frosted-flakes)
6417 * cccp.c (special_symbol): tm_mon is origin-0, not origin-1.
6419 * final.c (output_asm_insn): If %LETTER with no digits,
6420 pass null pointer as the operand.
6422 * output-m68k.c (singlemove_string): Get rid of %e.
6424 * stmt.c (fixup_memory_subreg): Convert (SUBREG (MEM a)) to (MEM a').
6425 * stmt.c (fixup_var_ref_1): Use that fn for operands of
6426 SIGN_EXTRACT and ZERO_EXTRACT, since (SUBREG:SI (REG:QI...))
6427 could have turned into (SUBREG:SI (MEM:QI...)), which is unsafe.
6429 * rtl.c (debug_rtx): Print an rtx on stderr, for debugging.
6431 Sun Jan 17 04:37:20 1988 Richard Stallman (rms at frosted-flakes)
6433 * gcc.c: options -M* treated like -M.
6435 * stmt.c (pushcase): Do nothing if the case index has error_mark type.
6437 * expr.c (expand_increment): Don't use queue for post-inc on memory
6438 if the add insn requires register args. (Better code for RISCs.)
6440 Sat Jan 16 02:10:22 1988 Richard Stallman (rms at frosted-flakes)
6442 * ns32k.md: Change register_operand to general_operand.
6443 * ns32k.md (udivmoddisi4): Use match_dup where required.
6444 Comment it out because it can't accept two independent output args.
6446 Fri Jan 15 00:02:35 1988 Richard Stallman (rms at frosted-flakes)
6448 * toplev.c: Include sys/time.h only for BSD. For USG, use time.h.
6449 This is correct for HPUX; don't know about others.
6451 * gcc.c (execute): Eliminate `union wait'. Make `status' an int.
6452 * gcc.c (execute) [USG]: Use fork instead of vfork.
6454 * final.c (output_source_line): Use ASM_OUTPUT_SOURCE_{FILENAME,LINE}
6455 if they are defined.
6457 * tm-hp9k320.h: New name for tm-hpux.h.
6458 * tm-hp9k320.h (ASM_OUTPUT_LOCAL): Add 3rd arg to `lcomm' statements.
6459 * tm-hp9k320.h (ASM_OUTPUT_{DOUBLE,FLOAT}): Use `double' and `float'.
6460 * tm-hp9k320.h (CALL_USED_REGISTERS): Don't save any 68881 regs.
6461 * tm-hp9k320.h (CPP_PREDEFINES): different names defined.
6462 * tm-hp9k320.h (HPUX_ASM, NO_DBX_FORMAT, ASM_SPEC): define these.
6463 * tm-hp9k320.h (ASM_OUTPUT_OPCODE): Convert `ftst' to `ftest'.
6464 * tm-hp9k320.h: Define ASM_OUTPUT_SOURCE_{FILENAME,LINE}.
6466 * m68k.md: Rename `hpux' conditionals to `HPUX_ASM'.
6467 * m68k.md: Reverse `fcmp' args if HPUX_ASM.
6469 * cccp.c (print_deps): 2 means give all files, 1 means only user files.
6470 * cccp.c (do_include): Support that.
6471 * cccp.c (main): -MM sets 1, -M alone sets 2.
6472 * cccp.c (main): Give fatal error if I/O error in writing.
6474 * toplev.c (fatal_io_error): Report I/O error on given filename,
6477 * toplev.c (compile_file): Detect error writing asm_out_file.
6478 Always put asm file's name in asm_file_name for err msg.
6479 * symout.c (symout_finish): Detect error writing symfile.
6480 * symout.c (symout_init): Save filename in symfile_name for err msg.
6482 * gen*.c: Return 1 if ferror (stdout)--in case disk is full.
6484 * local-alloc.c (block_alloc): Don't crash if 1st rtx
6485 in a PARALLEL is not a SET.
6487 * tm-m68k.h, tm-news800.h (PRINT_OPERAND). Eliminate code `%e'.
6488 * m68k.md: Change `%e' to `e' everywhere.
6489 * tm-hpux.h (ASM_OUTPUT_OPCODE): Output `move' as `mov'.
6491 * tm-m68k.h, tm-news800.h, tm-hpux.h (PRINT_OPERAND):
6492 New code `%!' is output as the name for the cc register.
6493 * m68k.md (insns that use andi to ccr): Use `%!' to avoid
6496 * cse.c: Record in qty_const_insn the insn that stored the
6497 constant value of a qty. When making a REG_WAS_0 note,
6498 store in it the insn that established the value 0.
6500 * vax.md (movsi): When checking a REG_WAS_0 note,
6501 verify that the insn it points to hasn't been deleted or made a NOTE.
6503 Thu Jan 14 00:01:35 1988 Richard Stallman (rms at frosted-flakes)
6505 * toplev.c: Eliminate error_with_line and warning_with_line.
6506 * parse.y, decl.c: Change remaining calls to those two.
6508 * tree.c (get_unwidened, get_narrower): To see if a COMPONENT_REF
6509 is unsigned, look at the FIELD_DECL, not at the COMPONENT_REF.
6511 * rtl.c (print_rtx): Print /v for the `volatil' bit.
6512 * expr.c (expand_assignment expand_expr): If handling a COMPONENT_REF,
6513 note whether it is volatile.
6515 * fold-const.c (fold): a call to split_tree missed an argument.
6517 * flow.c (volatile_refs_p): Scan an rtx for volatile mem refs.
6518 * flow.c (life_analysis): Record in INSN_VOLATILE which insns
6519 have any volatile mem refs.
6520 * flow.c (mark_used_regs): Always mark an insn with volatile mem refs.
6521 Always pass INSN as an arg. New arg FINAL now says whether
6522 this is the last time scanning.
6523 * flow.c (propagate_block): Don't delete insns with volatile mem refs.
6525 * flow.c: Remove all refs to `obey_regdecls'.
6526 Calling this with -noreg just doesn't help -W.
6528 Wed Jan 13 01:13:07 1988 Richard Stallman (rms at frosted-flakes)
6530 * decl.c (finish_decl): Error if auto var's size isn't known.
6531 Change type to error_mark_node to avoid crash if the var
6532 is used in an expression, since it has no DECL_RTL.
6534 * output-m68k.c (output_move_const_single): % -> %% for sprintf.
6536 * parse.y (yylex): Store token_buffer properly after ellipsis.
6538 * decl.c (duplicate_decls): Don't call layout_decl
6539 for FUNCTION_DECL or TYPE_DECL.
6541 * toplev.c (warning_with_decl): New warning function with decl as arg.
6542 * (error_with_decl): similar.
6544 * decl.c: Replace most `yylinerror' calls with `error_with_decl'.
6546 * decl.c (build_struct): Reform code to detect erroneous bit-fields.
6547 All such errors are now detected here.
6548 Promote bit-fields to int if appropriate.
6549 If traditional, make all int bit-fields unsigned.
6550 Set DECL_ALIGN for members that are not bit-fields.
6552 * decl.c (grokfield): Don't set DECL_ALIGN here.
6554 * stor-layout.c (layout_decl): Don't promote the type of a bit-field.
6555 Use TREE_PACKED to distinguish a bit-field.
6556 Don't check the width because build_struct did that.
6558 * m68k.md (cmpm): Reject if either operand (address) is a constant.
6560 Tue Jan 12 15:11:20 1988 Richard Stallman (rms at frosted-flakes)
6562 * cse.c (canon_reg): Never replace ANY hard reg from reg_rtx
6563 because that could alter the machine mode.
6565 * tm-news800.h: Redefine INDIRECTABLE_1_ADDRESS only if MOTOROLA.
6567 Mon Jan 11 13:15:45 1988 Richard Stallman (rms at frosted-flakes)
6569 * jump.c (follow_jumps): If we find a cycle, make it a jump to self.
6571 * cse.c (predecide_loop_entry): Give up if chase more than 10 jumps.
6573 Sun Jan 10 14:52:42 1988 Richard Stallman (rms at frosted-flakes)
6575 * reload1.c (reload): basic_block_needs (new vector) gets 1
6576 for each basic block that needs a reload.
6577 * reload1.c (spill_hard_reg): Don't spill pseudos that are
6578 confined to a basic block which has no need for any reloads.
6579 * reload1.c (reload): Each cycle that any element of basic_block_needs
6580 changes from 0 to 1, must re-spill all previously spilled regs.
6582 * regclass.c (record_address_regs):
6583 Skip the charging of ICOST if it is 0.
6585 * flags.h, toplev.c: New flag -fvolatile.
6586 * typecheck.c (build_indirect_ref): If flag_volatile,
6587 every INDIRECT_REF is marked with TREE_THIS_VOLATILE.
6589 * fold-const.c (fold): Test in TRUTH_NOT_EXPR case was backward.
6590 Also result type is always `int'.
6592 Sat Jan 9 04:16:11 1988 Richard Stallman (rms at rice-krispies)
6594 * flags.h (flag_traditional): New flag.
6595 * toplev.c: recognize -ftraditional and -traditional.
6596 * parse.y (yylex): If flag_traditional, don't recognize
6597 `signed', `const' or `volatile'.
6599 * decl.c (pushdecl): If flag_traditional, any extern decl
6600 takes effect at top level.
6602 * tree.c (lvalue_or_else): New 2nd arg for use in error message.
6603 * typecheck.c: All callers pass 2nd arg.
6605 * global-alloc.c: allocno_preferred_reg can specify a preferred
6606 hard reg for each allocno. If so, try it first (new call to find_reg).
6608 * global-alloc.c (find_reg): New arg PREFREG specifies reg to try
6611 * decl.c (build_struct): if :0 bit field at the end, round the
6612 structure size to multiple of EMPTY_FIELD_BOUNDARY.
6614 * cse.c (make_regs_eqv): Was testing for reg_next_eqv[lastr] == 0
6615 and should be == -1.
6617 * reload1.c (reload_as_needed): Fix invalid optimization deleting
6618 the previous store into a pseudo-reg that feeds an input-reload.
6619 It is not safe because a later insn may look in the pseudo's stack
6620 slot for the value. Delete the store only if we can eliminate the
6621 pseudo entirely or if the current insn stores a new value there.
6622 Also verify that reload_in[j] is a REG.
6624 * reload1.c (reload_as_needed): When doing an input reload from a
6625 pseudo that was stored by the previous insn (not as a reload),
6626 redirect the previous insn into the reload register, if this lets
6627 us eliminate the pseudo entirely.
6629 * reload1.c (reload_as_needed): In both of the above cases, it's
6630 impossible to prevent a stack slot since one was already assigned,
6631 so don't alter reg_n_refs. Instead, set reg_renumber to record
6632 that this pseudo did get a hard reg.
6634 * stmt.c: Set `volatil' in pseudo-regs for the user's variables.
6636 * jump.c (delete_insn): Do nothing if insn already deleted.
6638 * tm-sun{2,3}.h: #define STRUCTURE_SIZE_BOUNDARY 2
6639 for compatibility with Sun PCC. Note that 4.3 vax PCC
6642 * fold-const.c: Replace truncate_unsigned with force_fit_type
6643 which truncates unsigned types and sign-extends signed types.
6645 * expr.c (do_jump): emit_queue before outputting the jump insns
6646 that use the comparison.
6648 * stmt.c: Error message for any goto that jumps into a
6649 binding contour that restores a stack level.
6651 TREE_PACKED (label) means label was defined inside
6652 such a binding contour that is now exited. Using such a label
6655 TREE_ADDRESSABLE (label) means label was used from a place
6656 outside all such binding contours. If this is 1 when
6657 TREE_PACKED is set to 1, it is an error.
6659 Any other invalid goto must have a fixup. fixup_gotos detects
6660 such invalid gotos. fixup_gotos takes a second arg, which
6661 is the first insn of the contour now being exited.
6663 * GNU C version 1.17.
6669 version-control: never