192d4d9621032b05b1bd78cd211dd8de9243325d
[gcc.git] / gcc / ChangeLog
1 2000-40-30 Bruce Korb <bkorb@gnu.org>
2
3 * fixinc/inclhack.def: Added definitions needed by OSR5,
4 removed two stale entries (defined away with OLD_CPP).
5 * fixinc/inclhack.sh: regen
6 * fixinc/fixincl.x: regen
7
8 2000-04-30 Richard Henderson <rth@cygnus.com>
9
10 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
11 from the last insn in the sequence.
12
13 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
14
15 * cpplex.c (cpp_idcmp): New function.
16 * cpplib.h: Prototype it.
17 * scan_decls.c (scan_decls): Use it to inspect token names.
18 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
19 the file being run through the preprocessor.
20 (check_macro_names): Provide length of token to cpp_defined.
21
22 * Makefile.in: Remove stale warning message.
23
24 * cppfiles.c (redundant_include_p): Provide length of token to
25 cpp_defined.
26 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
27 values are unsigned int.
28 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
29 (_cpp_lookup_slot): Do not calculate the hash, either.
30 * cpphash.h: Update prototypes.
31 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
32 Hashes are unsigned int. Calculate hash here, pass by value
33 to _cpp_lookup_slot.
34
35 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
36
37 * simplify-rtx.c (check_value_useless): Delete function.
38 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
39 by hand.
40 (cselib_invalidate_regno): Likewise.
41 (cselib_invalidate_mem_1): Likewise.
42 (references_value_p): Recognize useless values by the fact that they
43 have no locations.
44 (discard_useless_values): Likewise.
45 (cselib_record_set): This may turn a useless value
46 into a useful one.
47
48 2000-04-30 Richard Henderson <rth@cygnus.com>
49
50 * config/d30v: New port.
51
52 * configure.in (d30v-*): Set fp format.
53 * configure: Rebuild.
54
55 2000-04-30 Richard Henderson <rth@cygnus.com>
56
57 * ifcvt.c: New file.
58 * Makefile.in (OBJS): Add it.
59 (ifcvt.o): New target.
60 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
61 and conditional arithmetic.
62 (find_insert_position): Remove.
63 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
64 * toplev.c (DFI_ce, DFI_ce2): New.
65 (dump_file): Add ce and ce2 dumps.
66 (rest_of_compilation): Run if_convert a couple o times. Set
67 cse_not_expected after cse2. Don't set no_new_pseudos until
68 after sched1 or recompute_reg_usage.
69
70 2000-04-30 Richard Henderson <rth@cygnus.com>
71
72 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
73 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
74
75 2000-04-30 Richard Henderson <rth@cygnus.com>
76
77 * flow.c (struct reg_cond_life_info): New.
78 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
79 (init_propagate_block_info): Initialize them.
80 (free_propagate_block_info): Destruct them.
81 (mark_set_1): Consider conditional life before killing a register.
82 (mark_regno_cond_dead): New.
83 (free_reg_cond_life_info): New.
84 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
85 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
86 (mark_used_reg): Record conditional life.
87
88 * haifa-sched.c (schedule_insns): Disable death counting
89 sanity check for HAVE_conditional_execution.
90
91 2000-04-30 Richard Henderson <rth@cygnus.com>
92
93 * Makefile.in (TIMEVAR_H): New.
94 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
95 (timevar.h): Remove rule.
96
97 2000-04-29 Richard Henderson <rth@cygnus.com>
98
99 * config/alpha/crtend.asm: Use C comments instead of #.
100 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
101
102 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
103
104 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
105
106 * cpphash.h (enum node_type: Take out T_MCONST.
107 (union hashval): Move into struct hashnode.
108 (struct hashnode): Pack tighter. Remove file, line, col
109 members.
110 * cpphash.c: Constify most of the macro-definition structures.
111 (struct definition): Replace by struct object_defn
112 and struct funct_defn. Put file, line, column information
113 here. All users updated to match.
114 (_cpp_create_definition, _cpp_macroexpand): Remove special
115 case for #define WORD OTHERWORD.
116 * cpplib.c (do_undef): Remove T_MCONST case.
117
118 * cpphash.h: Move struct reflist, struct definition, and the
119 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
120 union hashval. _cpp_free_definition takes a HASHNODE pointer.
121 * cpphash.c (_cpp_free_definition): Free data pointed to by
122 MCONST, XCONST, MACRO, and FMACRO nodes properly.
123 (_cpp_create_definition, del_HASHNODE): Just call
124 _cpp_free_definition to clear out a hashnode.
125 * cpplib.c (do_pragma_poison): Likewise.
126
127 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
128
129 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
130 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
131 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
132 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
133 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
134 REGNO_AM33_P): Redefine in terms of the new macros.
135 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
136 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
137 STRUCT_VALUE): Likewise.
138 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
139 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
140
141 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
142
143 * regmove.c (struct record_stack_memrefs_data): New.
144 (record_stack_memrefs): New function.
145 (combine_stack_adjustments_for_block): Use it.
146
147 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
148
149 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
150 use special_function_p to detect alloca.
151
152 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
153
154 * gcc.texi: Fixes for makeinfo 4.0 --html.
155
156 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
157
158 * pcp.h: Delete file.
159
160 2000-04-28 Kazu Hirata <kazu@hxi.com>
161
162 * h8300.c (function_epilogue): Clean up flags when the last insn
163 in a function is a barrier.
164
165 2000-04-28 Chris Demetriou <cgd@sibyte.com>
166
167 * configure.in (sparc-hal-solaris2*): protect [] glob from
168 my expansion.
169 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
170 rather than hard-coded constants in target_cpu_default2.
171 * configure: Regenerate.
172
173 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
174
175 * tree.c (get_callee_fndecl): Extract the initial value from
176 a readonly decl.
177
178 2000-04-28 Richard Henderson <rth@cygnus.com>
179
180 * varasm.c (record_constant_1): Record the CODE_LABEL when
181 taking the address of a LABEL_REF.
182
183 2000-04-28 Richard Henderson <rth@cygnus.com>
184 Jan Hubicka <jh@suse.cz>
185
186 * calls.c (combine_pending_stack_adjustment_and_call): Return the
187 adjustment; don't do the stack adjust.
188 (expand_call): Call compute_argument_block_size right before
189 allocating the block; update comment; don't do alignment sanity
190 checking for sibling call; use args_size instead of
191 unadjusted_args_size before args_size is adjusted. Use
192 combine_pending_stack_adjustment_and_call to compute stack adjust
193 for must_preallocate case.
194
195 * expr.c (push_block): Remove shadow `temp' in inner scope.
196
197 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
198
199 * toplev.c (rest_of_compilation): Call
200 note_deferral_of_defined_inline_function even if the function
201 can't be inlined.
202
203 2000-04-28 Scott Bambrough <scottb@netwinder.org>
204
205 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
206
207 2000-04-28 Richard Henderson <rth@cygnus.com>
208
209 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
210
211 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
212
213 * timevar.c (init_timevar): DeANSIfy function definition.
214
215 2000-04-27 Alex Samuel <samuel@codesourcery.com>
216
217 * Makefile.in (timevar.o): Depend on flags.h.
218 * timevar.c (unused_stack_instances): New variable.
219 (timevar_push): Take a timevar_stack_def from
220 unused_stack_instances if available.
221 (timevar_pop): Push the popped timevar_stack_def onto
222 unused_stack_instances.
223 (TIMEVAR_ENABLE): New macro.
224 (timevar_def): Make standalone a 1-bit field. Add field used.
225 (get_time): Rename parameter to now. Return after clearing it if
226 not TIMEVAR_ENABLE.
227 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
228 (timevar_pop): Likewise.
229 (timevar_stop): Likewise.
230 (timevar_push): Likewise. Mark the timing variable as used.
231 (timevar_start): Likewise.
232 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
233 timevars that were never used.
234
235 2000-04-27 Mark Mitchell <mark@codesourcery.com>
236
237 * c-commom.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
238 always TREE_READONLY.
239
240 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
241
242 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
243 for call instruction with mode QImode.
244
245 2000-04-27 Alex Samuel <samuel@codesourcery.com>
246
247 * Makefile.in (OBJS): Add timevar.o.
248 (toplev.o): Depend on timevar.h.
249 (ggc-simple.o): Likewise.
250 (ggc-page.o): Likewise.
251 (timevar.o): New rule.
252 (timevar.h): New rule.
253
254 * timevar.h: New file.
255 * timevar.c: Likewise.
256 * timevar.def: Likewise.
257
258 * toplev.h (gc_time, parse_time, varconst_time): Remove.
259 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
260 throughout.
261 (TIMEVAR): Remove macro.
262 (gc_time, parse_time, varconst_time, integration_time, jump_time,
263 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
264 flow_time, combine_time, regmove_time, sched_time,
265 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
266 sched2_time, dbr_sched_time, reorder_blocks_time,
267 rename_registers_time, shorten_branch_time, stack_reg_time,
268 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
269 all_time): Remove.
270 (compile_file): Don't initialize time variables. Call
271 init_timevar and start TV_TOTAL timer. Call timevar_print instead
272 of many calls to print_time.
273 (rest_of_compilation): Add timing for reload_cse_regs.
274 (get_run_time): Removed to timevar.c.
275 (print_time): Likewise.
276 (get_run_time): Implement using TV_TOTAL time variable.
277 (print_time): Get total run time from get_run_time.
278 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
279 computing elapsed time explicitly.
280 * ggc-simple.c (ggc_collect): Likewise.
281 (gc_time): Remove declaration.
282
283 2000-04-27 Mark Mitchell <mark@codesourcery.com>
284
285 * calls.c (combine_pending_stack_adjustment_and_call): New function.
286 (expand_call): Use it.
287
288 2000-04-27 Jan Hubicka <jh@suse.cz>
289
290 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
291 fields.
292
293 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
294
295 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
296 registers.
297
298 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
299
300 * function.c (epilogue_done): Pass whole insn to record_insns.
301
302 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
303
304 * cse.c (CSE_ADDRESS_COST): Remove.
305 (find_best_addr): Add new parameter "MODE", use address_cost instead
306 of CSE_ADDRESS_COST
307 (address_cost): New.
308 (fold_rtx): Update call of find_best_addr.
309 * rtl.h (address_cost): Declare.
310 * loop.c (general_induction_var): Add new parameter "MODE", use
311 address_cost instead of ADDRESS_COST
312 (init_loop): Use address_cost instead of ADDRESS_COST.
313 (check_insn_for_givs): Update call of general_induction_var.
314 (find_mem_givs): Likewise.
315 (consec_sets_giv): Likewise.
316 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
317 * i386.c (ix86_address_cost): New.
318 * i386-protos.h (ix86_address_cost): Declare.
319
320 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
321
322 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
323 registers.
324
325 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
326
327 * expr.c (store_expr): Use clear_storage instead of direct memset
328 libcall.
329
330 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
331
332 * config/mn10300/mn10300.c (mn10300_address_cost): Test
333 ASHIFT, AND and LABEL_REF.
334
335 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
336
337 * invoke.texi (-foptimize-sibling-calls): Fix.
338
339 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
340
341 * loop.c (load_mems) Don't use hard registers for the hoisting.
342
343 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
344 calculation; rename const_equiv array in the preconditioning code
345 from loop_unroll to loop_unroll_precondition
346
347 2000-04-27 Richard Henderson <rth@cygnus.com>
348
349 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
350 add new_set.
351 (propagate_one_insn): Clear it. Don't update reg_live here.
352 (init_propagate_block_info): Update for pbi member changes.
353 (free_propagate_block_info): Likewise.
354 (mark_set_1): Know that zero_extract, sign_extract, and
355 strict_low_part don't kill their argument. Alter hard subregs.
356 Update new_set for non-CLOBBER sets. Update reg_live.
357 (find_auto_inc): Update reg_live, not new_dead.
358 (mark_used_reg): Update reg_live, not new_live. Examine new_set
359 to determine if the reg in question was set this insn. Only update
360 reg info with PROP_REG_INFO.
361
362 2000-04-26 Richard Henderson <rth@cygnus.com>
363
364 * flow.c (allocate_reg_life_data): Set max_regno here ...
365 (life_analysis): ... not here.
366
367 * flow.c (calculate_global_regs_live): Force stack pointer
368 live at end.
369
370 2000-04-26 Richard Henderson <rth@cygnus.com>
371
372 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
373 commit change group changes.
374 (invert_exp_1): Similarly.
375 (redirect_exp, invert_exp): Use them.
376 (redirect_jump_1): New.
377 (invert_jump_1): New.
378 (jump_optimize_1): Remove code subsumed by condexec.c.
379 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
380
381 2000-04-26 Richard Henderson <rth@cygnus.com>
382
383 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
384
385 * genconfig.c (main): Set all HAVE_foo to 1.
386
387 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
388
389 2000-04-26 Alex Samuel <samuel@codesourcery.com>
390
391 * invoke.texi: Document -fssa flag.
392
393 2000-04-26 Richard Henderson <rth@cygnus.com>
394
395 * flow.c (count_reg_sets_1): Remove.
396 (count_reg_sets, count_reg_references): Remove.
397 (recompute_reg_usage): Implement with update_life_info.
398 Reallocate life data.
399
400 2000-04-26 Richard Henderson <rth@cygnus.com>
401
402 * flow.c (update_life_info): Consider blocks null to mean the
403 universal set.
404 (calculate_global_regs_live): Likewise.
405 (life_analysis): Do that instead of collecting all_blocks.
406
407 2000-04-26 Richard Henderson <rth@cygnus.com>
408
409 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
410 a still-valid conditional jump.
411
412 2000-04-26 Richard Henderson <rth@cygnus.com>
413
414 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
415
416 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
417 * flow.c (calculate_loop_depth): Remove.
418 * output.h (calculate_loop_depth): Don't declare.
419 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
420 inline; run estimate_probability at the same time.
421
422 2000-04-26 Neil Booth <NeilB@earthling.net>
423
424 * cpplib.h: "~=" is not a single pp-token.
425 * cpplex.c: Correct commentary.
426
427 2000-04-26 Richard Henderson <rth@cygnus.com>
428
429 * flow.c (mark_set_1): New arguments code and flags; update all
430 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
431 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
432 loop_depth when optimizing for size. Do new_dead update after
433 emitting REG_UNUSED notes. Merge mark_set_reg code.
434 (mark_set_reg): Remove.
435 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
436 arrange to not emit REG_UNUSED notes.
437
438 2000-04-26 Richard Henderson <rth@cygnus.com>
439
440 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
441 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
442
443 2000-04-26 Richard Henderson <rth@cygnus.com>
444
445 * flow.c (propagate_one_insn): Break out from propagate_block.
446 (init_propagate_block_info): Likewise.
447 (free_propagate_block_info): Likewise.
448 (propagate_block): Use them. Export.
449 * basic-block.h: Declare them all.
450
451 2000-04-26 Richard Henderson <rth@cygnus.com>
452
453 * basic-block.h (life_analysis): Declare here ...
454 * output.h: ... not here.
455 * flow.c (life_analysis): Remove nregs parameter; replace
456 remove_dead_code with flags. Remove ssa dead code check.
457 Only init alias analysis if we'll use it.
458 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
459 * ssa.c (convert_to_ssa): Likewise.
460 (convert_from_ssa): Likewise.
461 * toplev.c (rest_of_compilation): Likewise.
462
463 2000-04-26 Richard Henderson <rth@cygnus.com>
464
465 * flow.c (flow_delete_block): Rename from delete_block. Export.
466 * basic-block.h (flow_delete_block): Declare.
467
468 2000-04-26 David S. Miller <davem@redhat.com>
469
470 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
471 taking a PATTERN of it.
472
473 2000-04-26 <NeilB@earthling.net>
474
475 * cpplex.c (spell_other, spell_char): Remove.
476 (SPELL_CHAR): New.
477 (token_spelling, trigraph_map): Use unsigned chars.
478 (_cpp_lex_line): Tidy up the switch statement.
479 * cpplib.h: Implement spell_char with spell_string.
480 (C): New.
481
482 2000-04-26 <RodneyBrown@pmsc.com>
483
484 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
485 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
486
487 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
488
489 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
490 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
491 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
492 dwarf2out_return_save, dwarf2out_return_reg,
493 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
494 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
495 gen_compile_unit_die, dwarf2out_init): Constify a char*.
496
497 * dwarf2out.h (dwarf2out_init): Likewise.
498
499 * dwarfout.c (filename_entry, primary_filename, last_filename,
500 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
501
502 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
503 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
504 dwarf2out_return_reg): Likewise.
505
506 2000-04-26 Andreas Jaeger <aj@suse.de>
507
508 * extend.texi (Function Attributes): Fix description of pure
509 attribute.
510
511 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
512
513 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
514 before calling rest_of_compilation.
515
516 2000-04-26 Andreas Jaeger <aj@suse.de>
517
518 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
519 last patch.
520
521 2000-04-25 Richard Henderson <rth@cygnus.com>
522
523 * cse.c (cse_insn): Emit barrier after unconditional jump.
524
525 * calls.c (expand_call): Disable tail call generation once
526 rtx_equal_function_value_matters is false.
527
528 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
529 like EDGE_EH edges.
530
531 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
532
533 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
534
535 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
536
537 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
538 is the primary DIE for a member function.
539 (gen_decl_die): Call set_decl_origin_self here.
540 * dwarfout.c (output_decl): And here.
541 * integrate.c (output_inline_function): Not here.
542 Don't clear DECL_INLINE until after calling rest_of_compilation.
543 (set_decl_origin_self): No longer static.
544 * tree.h: Add prototype.
545 * toplev.c (note_deferral_of_defined_inline_function): Only write
546 out abstract instance for actual inlines.
547
548 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
549
550 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
551 EXTENDED_REGS only if TARGET_AM33.
552 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
553 SP_REGS to register allocation and reloading unless absolutely
554 necessary.
555 (movsi3): Remove special-case of adding non-constants to SP.
556
557 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
558
559 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
560 INCLUDES to search and does not provide any of its own. Also it
561 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
562 parameters. Also it does not call AC_DEFINE.
563 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
564 AC_DEFINE and provides for automatic entries for autoheader.
565 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
566
567 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
568 so we can pass -I flags and include gansidecl.h/system.h in this
569 test.
570
571 * acconfig.h: Delete all NEED_DECLARATION_* entries.
572
573 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
574
575 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
576 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
577 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
578
579 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
580 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
581 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
582 for these macros. Clean up spacing and linewraps.
583
584 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
585
586 * calls.c (expand_call): Use get_callee_fndecl.
587
588 * print-tree.c (print_node): Print the chain of an _EXPR.
589
590 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
591 Jim Wilson <wilson@cygnus.com>
592 Andrew Haley <aph@cygnus.com>
593
594 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
595 and gp save/restore problems.
596 * config/ia64/crtend.asm: Add IA-64 unwind support.
597 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
598 in fr_pad_size calculation.
599 (save_restore_insns): Move PR save area. Correct uses of
600 RTX_FRAME_RELATED_P.
601 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
602 (ia64_expand_epilogue): Add eh_epilogue support.
603 (ia64_function_prologue): Emit .prologue directive.
604 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
605 (ia64_override_options): Set init_machine_status and
606 mark_machine_status.
607 (rtx_needs_barrier): Handle bsp reads and writes.
608 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
609 New static variables.
610 (process_set, process_for_unwind_directive): New functions.
611 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
612 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
613 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
614 macros.
615 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
616 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
617 (struct machine_function): Define.
618 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
619
620 2000-04-25 Bruce Korb <bkorb@gnu.org>
621
622 * fixinc/Makefile.in: make the removal of old programs more
623 robust
624 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
625 install-bin and install-sh
626
627 2000-04-25 Nick Clifton <nickc@cygnus.com>
628
629 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
630 defined, define to return zero.
631 (function_cannot_inline_p): If a function has any target
632 specific attributes, then use the macro
633 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
634 whether it can be inlined. If it cannot, issue a suitable
635 explanation.
636
637 * tm.texi: Add a new node 'Inlining' to document the new macro
638 FUNCTION_ATTRIBUTE_INLINABLE_P.
639
640 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
641
642 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
643 commentary.
644
645 2000-04-25 Neil Booth <NeilB@earthling.net>
646
647 Restore previous patch, plus the following fixes:
648
649 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
650 flags, not CPP_OPEN_PAREN.
651 * cpplex.c (expand_token_space, init_token_list,
652 cpp_free_token_list): Put the dummy token at list->tokens[-1].
653 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
654
655 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
656
657 * config/i386/freebsd.h (INT_ASM_OP): Define.
658
659 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
660
661 * loop.c (strength_reduce): Fix typo in the last checkin.
662
663 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
664
665 * stor-layout.c (finalize_record_size): Simplify to use existing
666 functions.
667 (compute_record_mode): No longer static.
668 * tree.h (compute_record_mode): New declaration.
669
670 2000-04-25 Neil Booth <NeilB@earthling.net>
671
672 * Revert my patch below until cause of build failures
673 determined.
674
675 2000-04-25 Richard Henderson <rth@cygnus.com>
676
677 * combine.c (combine_instructions): Add missing argument
678 to try_combine.
679
680 * toplev.c (rest_of_compilation): Delay sibcall optimization
681 until after emit_eh_context.
682
683 2000-04-24 Nick Clifton <nickc@redhat.com>
684
685 * combine.c (combine_instructions): Do not try to combine a
686 sequence of insns when the second insn has been replaced by a
687 note.
688
689 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
690
691 * gcc.c (load_specs): New static function.
692 (read_specs): Use it.
693
694 * gcc.c (lookup_compiler): Make multiple passes for case
695 insensitive filesystems.
696
697 2000-04-24 Neil Booth <NeilB@earthling.net>
698
699 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
700 * cpphash.h (_cpp_check_directive): new.
701 * cpplex.c (handle_newline, cpp_free_token_list,
702 init_trigraph_map, trigraph_ok, trigraph_replace,
703 backslash_start, skip_block_comment, skip_line_comment,
704 skip_whitespace, parse_name, parse_number, parse_string,
705 copy_comment, _cpp_lex_line, spell_char, spell_string,
706 spell_comment, spell_name, spell_other, _cpp_lex_file,
707 _cpp_output_list): new.
708 (expand_name_space): take length argument.
709 (init_token_list): add comment list initialisation.
710 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
711 instead of HSPACE_BEFORE.
712
713 * cpplib.c (_cpp_check_directive): new
714 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
715 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
716 (HSPACE_BEFORE): delete.
717 (TTYPE_TABLE): rearrange.
718 (struct cpp_toklist): update.
719
720 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
721
722 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
723 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
724 argument form of AC_DEFINE.
725
726 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
727 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
728 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
729 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
730 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
731
732 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
733
734 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
735
736 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
737 deduced.h): Use -isystem, not -I, for including system headers.
738
739 2000-04-24 Nick Clifton <nickc@cygnus.com>
740
741 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
742 the source register is the frame pointer or arg pointer.
743 (addsi3_small_int): Disallow if source register is the frame
744 pointer or arg pointer.
745
746 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
747
748 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
749 call to AC_MSG_RESULT.
750
751 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
752
753 * invoke.texi: Correct grammatical errors, document
754 -fno-gnu-keywords as identical to -fno-asm for C++.
755
756 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
757
758 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
759 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
760 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
761 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
762 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
763
764 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
765 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
766 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
767 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
768 new macros names.
769
770 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
771
772 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
773 (pop_alignment): Likewise.
774 (handle_pragma_token): Likewise.
775
776 2000-04-24 Robert Lipe <robertlipe@usa.net>
777
778 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
779
780 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
781
782 * combine.c (try_combine): Update reg_nonzero_bits of
783 newi2pat before newpat.
784
785 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
786
787 * loop.c (strength_reduce): Simplify test to INSN_P.
788 (record_giv): Attempt to simplify the add value, use CONSTANT_P
789 expressions instead of CONST_INT.
790 (express_from_1): Likewise.
791
792 2000-04-24 Mark Mitchell <mark@codesourcery.com>
793
794 * regs.h (reg_n_max): Don't declare.
795 * flow.c (reg_n_max): Don't define.
796 * regclass.c (renumber): Don't initialize to zero.
797 (regno_allocated): Likewise.
798 (reg_n_max): Define.
799 (allocate_reg_info): Don't initialize unnecessarily.
800
801 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
802
803 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
804 and blockage_p in the newly allocated attribute.
805
806 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
807
808 * config/mn10300/mn10300.md (addsi): `inc4' on address
809 registers does not modify cc, but `inc' on an extended
810 register does.
811
812 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
813
814 * reload.c (find_equiv_reg): Checks all valueno regs
815 as a reload_reg_p regs.
816
817 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
818
819 * cpphash.c (collect_objlike_expansion): Add sanity check.
820 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
821 the buffer is the empty string, return. Mark __DATE__ and
822 __TIME__ as XCONST nodes, not MCONST.
823 (_cpp_macroexpand): Avoid pushing an empty buffer.
824 (funlike_macroexpand): Don't pop token_buffer here.
825
826 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
827
828 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
829 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
830 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
831 (REGNO_OK_FOR_BASE_P): Define in terms of them.
832 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
833 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
834 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
835
836 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
837
838 * loop.c (simplify_giv_expr): Be more agressive on simplifying
839 constant MULT givs.
840
841 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
842
843 * cpphash.h (struct definition): Move file, line, col members...
844 (struct hashnode): ... here. Also add 'disabled' flag.
845 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
846 T_IDENTITY. Remove T_DISABLED.
847 Update prototypes.
848
849 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
850 (collect_expansion): Split into collect_objlike_expansion and
851 collect_funlike_expansion.
852 (_cpp_macroexpand): Split out scan_arguments, stringify, and
853 funlike_macroexpand.
854 (_cpp_compare_defs): Rename compare_defs, make static.
855 (_cpp_make_hashnode): Initialize hp->disabled.
856 (macro_cleanup): Adjust for new token types. Clear
857 m->disabled.
858 (_cpp_create_definition): Move code here to determine what
859 sort of macro it is, and code to check for redefinitions, from
860 do_define. Implement a few simple cases without creating a
861 full DEFINITION.
862 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
863 Handle the simple cases.
864 (push_macro_expansion): Set buf->has_escapes and hp->disabled
865 here.
866
867 * cppinit.c (builtin_array): Change MCONST to XCONST
868 everywhere.
869 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
870 fix check for disabled and function-like macros.
871 * cpplib.c (do_define): Move most logic to
872 _cpp_create_definition.
873 (do_undef): Handle new special token types.
874
875 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
876
877 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
878 of CONSTANT_P for mult_val; always use validate_change to update insn.
879
880 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
881
882 * cpphash.c (trad_stringify, add_pat): New functions.
883 (collect_expansion): Restore support for -traditional syntax.
884 Use trad_stringify and add_pat.
885 (_cpp_macroexpand): Restore support for -traditional semantics.
886 * cpplex.c (_cpp_scan_line): Don't change space_before if we
887 get a COMMENT token.
888 (_cpp_lex_token): Provide COMMENT tokens to caller if
889 traditional and parsing_define_directive.
890 (skip_comment): Warn about // comments if -Wtraditional.
891 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
892 proper node type.
893 (do_undef): Don't warn about undefining EMPTY nodes.
894
895 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
896
897 * loop.c (strength_reduce): Fix biv removal code.
898
899 2000-04-22 Richard Henderson <rth@cygnus.com>
900
901 * predict.c (estimate_probability): Examine both sides of
902 a branch for no exits. Use 90% not 50% for predict taken.
903 Reorg for one copy of note generation code.
904
905 2000-04-22 Richard Henderson <rth@cygnus.com>
906
907 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
908
909 2000-04-22 Richard Henderson <rth@cygnus.com>
910
911 * diagnostic.c (init_output_buffer): Don't initialize format_args.
912 (output_clear): Likewise.
913 (output_printf): Use va_copy.
914 (vline_wrapper_message_with_location): Likewise.
915 (v_message_with_decl): Likewise.
916 (line_wrapper_printf): VA_START infor buffer.format_args directly.
917 * system.h (va_copy): Provide default implementation.
918
919 2000-04-22 Richard Henderson <rth@cygnus.com>
920
921 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
922 the collected condition is not a constant.
923
924 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
925
926 * diagnostic.h: New file.
927
928 * Makefile.in (diagnostic.o): Depends on diagnostic.h
929
930 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
931 various function prototypes.
932 (diagnostic.h): #include.
933 (struct output_buffer): Move into diagnostic.h.
934 (get_output_prefix): Rename to output_get_prefix. Export.
935 (init_output_buffer): Export. Break out. Ajust intialization.
936 (output_space_left, output_append): Export.
937 (output_newline): Rename to output_add_newline. Export.
938 (output_clear): Nullify additional output_buffer fields.
939 (output_puts): Rename to output_add_string. Export.
940 (dump_output): Rename to output_flush_on. Export.
941 (build_location_prefix): Constify return-type.
942 (emit_output_prefix): Rename to output_emit_prefix. Export.
943 (set_real_maximum_length): New function.
944 (output_set_maximum_length): Ditto
945 (output_clear): Ditto.
946 (output_add_character): Ditto.
947 (output_add_integer): Ditto.
948 (output_add_space): Ditto.
949 (output_format): Ditto.
950 (output_printf): Adjust buffer initialization.
951 (vline_wrapper_message_with_location): Ditto.
952 (v_message_with_decl): Ditto. Adjust call to output_puts
953 and get_output_prefix.
954 (default_print_error_function): Adjust buffer intialization.
955
956 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
957
958 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
959 of VOID_TYPE.
960
961 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
962
963 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
964 of explicit 0.
965
966 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
967
968 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
969 accurate data about SP moves.
970
971 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
972
973 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
974 aliases to AM33 registers.
975
976 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
977
978 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
979 to all EXTENDED bitmaps.
980
981 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
982
983 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
984 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
985 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
986
987 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
988
989 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
990 the operand is not constant.
991
992 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
993
994 * reload.c (find_equiv_reg): Checks all valueno and regno regs
995 as a call-clobbered regs.
996
997 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
998
999 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
1000 * rtl.h: Likewise.
1001 * rtl.def: Update comment.
1002 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
1003 * integrate.c (expand_inline_function): Likewise.
1004 * profile.c (branch_prob): Likewise.
1005 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
1006 * print-rtl.c (print_rtx): Likewise.
1007 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
1008 (reemit_notes): Likewise; also use enum insn_note.
1009
1010 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
1011 (place_field): Properly compute know and actual alignment.
1012
1013 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
1014 in proper format.
1015
1016 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
1017 note for REG1.
1018
1019 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
1020
1021 * cpphash.c (struct arg, struct arglist): Const-ify strings.
1022 (warn_trad_stringify, duplicate_arg_p): New helper functions.
1023 (collect_expansion): Rewrite to scan over a token list.
1024 Remove -traditional support.
1025 (collect_formal_parameters): Rename to collect_params; rewrite
1026 to scan over a token list.
1027 (_cpp_create_definition): Adjust to scan a token list.
1028 (_cpp_macroexpand): Remove -traditional support.
1029 (_cpp_compare_defs): Whitespace is now canonicalized.
1030 (comp_def_part): Delete function.
1031
1032 * cpphash.h: Update prototypes.
1033 * cpplex.c (init_token_list): Don't set lineno if there is no
1034 buffer.
1035 (pedantic_whitespace): New function.
1036 (_cpp_scan_line): Mark tokens that had hspace before. Don't
1037 consume a newline. Use pedantic_whitespace.
1038 (_cpp_lex_token): Remove support for -traditional macros.
1039 (_cpp_get_define_token): Delete.
1040 (_cpp_get_directive_token): Do the real work here. Use
1041 pedantic_whitespace.
1042 (_cpp_init_input_buffer): Initialize pfile->directbuf.
1043
1044 * cpplib.c (get_macro_name): Delete.
1045 (do_define): Read the entire line into pfile->directbuf, then
1046 feed the token list to _cpp_create_definition.
1047 * cpplib.h (HSPACE_BEFORE): new define.
1048 (struct cpp_reader): Add a toklist member, "directbuf".
1049
1050 * predict.c (estimate_probability): New heuristic: if a jump
1051 branches around a block with no successors, predict it taken.
1052 Disentangle control flow.
1053
1054 2000-04-20 Richard Henderson <rth@cygnus.com>
1055
1056 * loop.c (emit_iv_add_mult): Revert last change.
1057
1058 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
1059
1060 * cpplib.h (enum cpp_ttype): Add token types for all
1061 punctuators. Distinguish pp-numbers from valid C numbers.
1062 Give some tokens better names. Initialize from macro.
1063 (struct cpp_name, cpp_token, cpp_toklist): New data
1064 structures.
1065 Update prototypes.
1066 * cpplex.c (bump_column, expand_name_space,
1067 expand_token_space, init_token_list, cpp_output_list,
1068 _cpp_scan_line): New functions.
1069 (output_line_command): Add third argument, new line number.
1070 * cpphash.h: Update prototypes.
1071 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
1072 token names.
1073
1074 2000-04-20 Richard Henderson <rth@cygnus.com>
1075
1076 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
1077
1078 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
1079
1080 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
1081 object pointed to.
1082
1083 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
1084
1085 * loop.c (emit_iv_add_mult): Simplify it's input and emit
1086 REG_EQUAL note explaining the calculated value.
1087
1088 * calls.c (expand_call): Avoid unnecesary precalculation
1089 and outgoing parameters space guarding for sibling calls.
1090 (store_one_arg): Likewise.
1091
1092 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1093
1094 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
1095 (rest_of_compilation): Write sibling dump file and account
1096 for time as jump time.
1097 * invoke.texi: Update documentation on dump flags.
1098
1099 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
1100
1101 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
1102
1103 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
1104
1105 * cpphash.c (special_symbol): Represent an empty macro with
1106 "\r \r " not just "\r ".
1107 (_cpp_macroexpand): Correct condition for the foo ( ) special
1108 case.
1109 (unsafe_chars): Handle EOF as second argument.
1110 (push_macro_expansion): Simplify test for removing escape at
1111 end. Do not trim both escapes if there is no text in between.
1112
1113 2000-04-19 Jim Blandy <jimb@redhat.com>
1114
1115 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
1116 of PTR_SIZE, when appropriate.
1117
1118 2000-04-19 Mark Mitchell <mark@codesourcery.com>
1119
1120 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
1121 (USE_ENUM_BITFIELDS): Fix typo.
1122
1123 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1124
1125 * stor-layout.c (place_field): Set rli->offset_align properly.
1126
1127 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1128
1129 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
1130 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
1131 PARM_BOUNDARY): Remove unnecessary casts.
1132
1133 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
1134
1135 * calls.c (precompute_arguments): Remove must_preallocate and
1136 args_size calls.
1137 (expand_call): Update call of precompute_arguments.
1138
1139 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
1140 check_insn_for_givs): Break out from ...
1141 (strength_reduce) ... here; use for_every_insn_in_loop to call
1142 check_insn_for_givs.
1143 * loop.h (for_every_insn_in_loop): Declare.
1144 (loop_insn_callback): New type.
1145
1146 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
1147
1148 * cpplib.c (do_pragma_poison): Strings in the token buffer are
1149 not nul-terminated.
1150
1151 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
1152
1153 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
1154 flag_pic and RELOC.
1155
1156 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
1157
1158 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
1159
1160 * configure.in: Delete --disable-cpplib option and all
1161 references to cpp_main.
1162 * configure: Regenerate.
1163 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
1164 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
1165 cccp.o, cccp, or cppmain. Link cppmain.o straight to
1166 cpp$(exeext). Add --no-headers to makeinfo command line when
1167 generating INSTALL. Install and uninstall cpp.1 manpage, not
1168 cccp.1.
1169 * install.texi: Delete all references to cexp.y/cexp.c.
1170 Delete ancient instructions for compiling GCC on 3b1.
1171 * INSTALL: Regenerate.
1172
1173 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
1174 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
1175 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
1176 cexp.c/cexp.y.
1177 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
1178 which is no longer tested anywhere.
1179
1180 * cppinit.c (handle_option): Don't run error message through
1181 gettext twice.
1182
1183 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1184
1185 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
1186 * cpperror.c (hashtab.h): Now include.
1187 * cppexp.c (hashtab.h): Likewise.
1188 * cpplex.c (hashtab.h): Likewise.
1189 * cppfiles.c (hashtab.h): Likewise.
1190 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
1191 to htab_find_slot_with_hash.
1192 * cpphash.c (hashtab.h): Now include.
1193 (_cpp_lookup_slot): INSERT is now enum insert_option.
1194 * cpphash.h (_cpp_lookup_slot): Likewise.
1195 * cppinit.c (hashtab.h): Include earlier.
1196 (initialize_builtins): Pass enum to htab_find_slot.
1197 * cpplib.c (hashtab.h): Now include.
1198 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
1199 (do_pragma_poison, do_assert): Likewise.
1200 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
1201 htab_find_slot_with_hash.
1202 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
1203 * tree.c (type_hash_add): Likewise.
1204 (build1): Minor cleanup.
1205
1206 * ggc-common.c: Add missing blanks.
1207 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
1208 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
1209
1210 * stmt.c (mark_case_node): New function.
1211 (mark_case_nesting): Call it.
1212
1213 * expmed.c (emit_store_flag): If comparing two-word integer
1214 with zero, can optimize NE, EQ, GE, and LT.
1215
1216 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
1217 * conflict.c: Minor cleanups.
1218 * optabs.c: Add blank line
1219 * simplify-rtx.c: Minor cleanups.
1220
1221 2000-04-18 Stan Cox <scox@cygnus.com>
1222
1223 * gengenrtl.c (genlegend): Fix misspelling.
1224
1225 2000-04-18 Robert Lipe <robertlipe@usa.net>
1226
1227 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
1228 bitfields of the host compiler are not signed quantities.
1229 * config.in: Regenerate.
1230 * configure: Regenerate.
1231 * system.h (USE_ENUM_BITFIELDS): Added.
1232 (ENUM_BITFIELDS): Added.
1233 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
1234 (SHORT_ENUM_BUG): Deleted.
1235 * tree.h (tree_common): Members `code', `mode', `built_in_class',
1236 now ENUM_BITFIELD.
1237 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
1238 (CODE_FIELD_BUG): Likewise.
1239 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
1240 (OLD_CC): Likewise.
1241 * config/m68k/x-ccur (X_CFLAGS): Likewise.
1242
1243 2000-04-18 Mark Mitchell <mark@codesourcery.com>
1244
1245 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
1246 mark is active.
1247
1248 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
1249
1250 * cppexp.c (lex): Don't assume tokens are NUL terminated.
1251 * cpplib.c (do_include, do_import, do_include_next,
1252 read_line_number, detect_if_not_defined): Likewise.
1253 * cpphash.c (collect_expansion): Likewise.
1254 (special_symbol, _cpp_macroexpand): Check return from
1255 cpp_file_buffer.
1256 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
1257 macros. Delete all uses.
1258
1259 * gcc.dg/cpp-mi.c: Add two more test cases.
1260 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
1261
1262 2000-04-17 Richard Henderson <rth@cygnus.com>
1263
1264 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
1265 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
1266
1267 2000-04-17 Mark Mitchell <mark@codesourcery.com>
1268
1269 * function.c (expand_function_start): Use hard_function_value to
1270 compute the RTL to use for DECL_RESULT.
1271
1272 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
1273
1274 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
1275 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
1276 x86_memory_mismatch_stall): New global variables.
1277 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
1278 alloved; fix load penalties for Athlon.
1279 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
1280 x86_memory_mismatch_stall): Declare.
1281 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
1282 TARGET_MEMORY_MISMATCH_STALL): New.
1283 * i386.md (athlon scheduling parameters): Fix latencies according to
1284 Athlon Optimization Manual.
1285 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
1286 vector.
1287 (fsqrt instruction patterns): Set athlon_decode to direct.
1288 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
1289 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
1290 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
1291 and TARGET_PARTIAL_REGISTER_STALL machines.
1292 (pushdf_nointeger): New pattern.
1293 (pushdf_integer): Rename from pushdf.
1294 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
1295 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
1296
1297 2000-04-17 Richard Henderson <rth@cygnus.com>
1298
1299 * loop.c (canonicalize_condition): Add WANT_REG argument.
1300 Stop the search if we match it.
1301 * expr.h (canonicalize_condition): Update decl.
1302 * predict.c (expected_value_to_br_prob): Use it. Track last
1303 expected value note.
1304 (find_expected_value): Remove.
1305
1306 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
1307
1308 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
1309
1310 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
1311 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
1312 a plain file.
1313 * configure.in: Call AC_FUNC_MMAP_FILE.
1314 * configure: Regenerate.
1315 * config.in: Regenerate.
1316
1317 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
1318 * fixinc/fixincl.c: Likewise.
1319
1320 2000-04-17 Richard Henderson <rth@cygnus.com>
1321
1322 * builtins.c (expand_builtin_expect): New.
1323 (expand_builtin): Call it.
1324 * builtins.def (BUILT_IN_EXPECT): New.
1325 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
1326 * extend.texi: Document it.
1327
1328 * predict.c (expected_value_to_br_prob): New.
1329 (find_expected_value): New.
1330 * basic-block.h (expected_value_to_br_prob): Declare.
1331 * toplev.c (rest_of_compilation): Invoke it.
1332
1333 * rtl.h (NOTE_EXPECTED_VALUE): New.
1334 (NOTE_INSN_EXPECTED_VALUE): New.
1335 * rtl.c (note_insn_name): Update.
1336 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
1337 cases; handle NOTE_INSN_EXPECTED_VALUE.
1338
1339 2000-04-17 Jakub Jelinek <jakub@redhat.com>
1340
1341 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
1342 leaf sibcall delay slot if flag_pic.
1343 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
1344
1345 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1346
1347 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
1348
1349 * fixproto: If fix-header fails, exit with an error.
1350
1351 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
1352
1353 * cse.c (struct check_depdendence_data): New.
1354 (check_dependence): New function.
1355 (invalidate): Use check_depdenence.
1356
1357 2000-04-16 Mark Mitchell <mark@codesourcery.com>
1358
1359 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
1360 UNITS_PER_WORD is unsigned.
1361
1362 * tree.h (struct tree_common): Remove misleading comment.
1363
1364 2000-04-16 Dave Pitts <dpitts@cozx.com>
1365
1366 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
1367 message in quotes. Otherwise, IBM's make program treats the '#' as the
1368 start of a comment and ignores the remainder of the line.
1369
1370 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
1371 upper case.
1372 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
1373 * cexp.y (initialize_random_junk): Likewise.
1374 * cppfiles.c (find_include_file): Cast alloca return value.
1375 * cppinit.c (initialize_standard_includes): Likewise.
1376 * cpplib.c (cpp_define, cpp_undef): Likewise.
1377 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
1378 * final.c (output_asm_insn): Allow for holes in EBCDIC.
1379 * fold-const.c (CHARMASK): New.
1380 (real_hex_to_f): Use it.
1381 * real.c (CHARMASK): New.
1382 (etoasc, asctoeg): Use it.
1383 (asctoeg): EBCDIC lower case characters preceed upper case.
1384
1385 * i370.c (mvs_add_label): Change spacing for coding conventions.
1386 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
1387 outputing case vectors.
1388 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
1389 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
1390 since vector in in the data CSECT.
1391 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
1392 * i370.md (Many patterns): Put the length in the XL directives.
1393 (movdi): Put back STM and MVC in definition.
1394 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
1395 pattern using the TCA.
1396 * oe.h (CPP_SPEC): Added to allow trigraphs.
1397 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
1398 not support the "long long" type.
1399
1400 2000-04-16 Mark Mitchell <mark@codesourcery.com>
1401
1402 * config/mips/mips-protos.h (mips_legitimate_address_p): New
1403 function.
1404 (mips_reg_mode_ok_for_base_p): Likewise.
1405 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
1406 (REG_OK_FOR_INDEX_P): Define unconditionally.
1407 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
1408 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
1409 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
1410 that GET_MODE_SIZE is unsigned.
1411 (mips_reg_mode_ok_for_base_p): Define.
1412 (mips_legitimate_address_p): Likewise. Adjust now
1413 that GET_MODE_SIZE is unsigned.
1414 (block_move_loop): Make the number of bytes unsigned.
1415 (expand_block_move): Likewise.
1416 (function_arg): Make the loop counter unsigned to match the
1417 boundary condition.
1418
1419 2000-04-16 Richard Henderson <rth@cygnus.com>
1420
1421 * rtl.h (enum insn_note): New enumeration. Subsume
1422 NOTE_INSN_DELETED and friends.
1423 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
1424 * rtl.c (note_insn_name): Tweak string order.
1425
1426 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
1427
1428 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
1429 to offset * 2.
1430
1431 * cpplex.c (output_line_command): Remove debugging prints.
1432 (cpp_output_tokens): Don't write out a zero-length buffer or
1433 try to see if it has a newline in it.
1434 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
1435 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
1436 the end of the loop. Use memmove. Don't read past the end of
1437 the buffer. Remove trailing newlines from error messages.
1438
1439 2004-04-16 Neil Booth <NeilB@earthling.net>
1440
1441 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
1442 * cpplib.c: Add new syntax flags to directive table, and
1443 supporting macros.
1444
1445 2000-04-15 Ulrich Drepper <drepper@redhat.com>
1446
1447 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
1448 using ret $N.
1449
1450 2000-04-15 David Edelsohn <edelsohn@gnu.org>
1451
1452 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
1453 * haifa-sched.c: Update -fsched-verbose comments to use "=".
1454
1455 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1456
1457 * Makefile.in (ggc-page.o): Now includes toplev.h.
1458 * ggc-page.c (toplev.h): Now included.
1459 (gc_time): Remove declaration.
1460 (ggc_collect): TIME now long.
1461 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
1462 others static.
1463 * toplev.h (gc_time, parse_time, gc_time): New declarations.
1464
1465 * toplev.c: Make *_time variable long to reduce chance of overflow.
1466 (TIMEVAR): Likewise for `otime'.
1467 (print_time): Arg is now long; compute percentage in FP and round.
1468 * toplev.h (print_time): Arg is long.
1469
1470 * tree.c: Minor whitespace changes.
1471
1472 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
1473 * configure: Rebuilt.
1474 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
1475 (__fixunsxfDI): Renamed from __fixunsxfdi.
1476 (__fixunsdfDI): Renamed from __fixunsdfdi.
1477 (__fixunssfDI): Renamed from __fixunssfdi.
1478 (__floatdisf): Use proper type in REP_BIT macro.
1479 (__fixunsxfSI): Renamed from __fixunsxfsi.
1480 (__fixunsdfSI): Renamed from __fixunsdfsi.
1481 (__fixunssfSI): Renamed from __fixunssfsi.
1482 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
1483 Change location of macros and upper-case some names as above.
1484 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
1485 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
1486
1487 * varasm.c (assemble_variable): Add cast to remove warning.
1488 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
1489
1490 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
1491 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
1492 region number to -1.
1493
1494 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
1495
1496 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
1497 call unshare_all_rtl.
1498
1499 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
1500
1501 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
1502
1503 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
1504 Use .s1 not .s0 for all FP instructions.
1505
1506 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
1507
1508 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
1509 interfaces.
1510 (safe_fwrite, output_line_command): New static functions.
1511 (cpp_expand_to_buffer): Now private to cpplib.
1512 (cpp_scan_buffer): Take a printer.
1513
1514 * cpphash.h: Update prototypes.
1515 * cpplib.h: Update prototypes.
1516 (cpp_printer): New.
1517 (cpp_buffer): Remove last_nominal_fname.
1518 (cpp_reader): Remove lineno.
1519
1520 * cppmain.c: Use a cpp_printer.
1521 * fix-header.c: No need to inhibit line commands. Call
1522 cpp_start_read with no printer.
1523
1524 * cpperror.c (cpp_notice_from_errno): Provide default name.
1525 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
1526 (find_include_file, cpp_read_file): Use make_IHASH.
1527 (file_cleanup): Set control_macro and clear
1528 input_stack_listing_current here.
1529 (_cpp_execute_include): Don't output entering-file marker.
1530 * cpphash.c (special_symbol): Look for the line number in the
1531 buffer, not the reader.
1532 (_cpp_macroexpand): No need to disable line commands.
1533 (_cpp_dump_definition): No need to generate line commands.
1534 (dump_hash_helper): Remove excess newline from output.
1535 * cppinit.c (dump_special_to_buffer): No need to generate line
1536 commands.
1537 (cpp_printer_init): New.
1538 (cpp_start_read): Take a printer, and start it up if it's not
1539 NULL. No need to generate line commands.
1540 (cpp_finish): Expect no buffers stacked at all. Take a
1541 printer argument, and flush the output buffer if it's not
1542 NULL.
1543 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
1544 Don't put two hashes at the beginning of an assertion.
1545 (cpp_get_token): Don't increment pfile->lineno or emit line
1546 commands here. Return EOF if there's no buffer when we get
1547 EOF.
1548 * cpplib.c (do_define, skip_if_group):
1549 No need to disable line commands.
1550 (_cpp_output_line_command): Delete function.
1551 (do_line): Don't emit line commands here, but set things up so
1552 they will be emitted if necessary. Use _cpp_fake_ihash to
1553 make unique nominal_fnames if necessary.
1554 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
1555 with 0 for column, not -1.
1556 (_cpp_handle_eof): Don't set the control macro here. Don't
1557 clear input_stack_listing_current here. Don't emit line
1558 commands.
1559
1560 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1561
1562 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
1563 always, use the default SVR4 start address.
1564
1565 * config/rs6000/linux.h (LINK_SPEC): Don't define.
1566 (LINK_SHLIB_SPEC): Define.
1567 (LINK_START_DEFAULT_SPEC): Define.
1568 (LINK_OS_DEFAULT_SPEC): Define.
1569
1570 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
1571
1572 * config/rs6000/eabi.asm (__eabi): Call __init rather than
1573 __do_global_ctors to handle constructors.
1574 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
1575 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
1576 (STARTFILE_MVME_SPEC): Likewise.
1577 (STARTFILE_SIM_SPEC): Likewise.
1578 (ENDFILE_ADS_SPEC): Use crtend.
1579 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
1580 (ENDFILE_MVME_SPEC): Likewise.
1581 (ENDFILE_SIM_SPEC): Likewise.
1582 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
1583 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
1584 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
1585 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
1586 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
1587 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
1588 (CRTSTUFF_T_CFLAGS_S): Define.
1589 * config/rs6000/eabi-ctors.c: Delete.
1590
1591 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
1592 boundary.
1593 (__fini): Likewise.
1594 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
1595 boundary.
1596 (__fini): Likewise.
1597
1598 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
1599
1600 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
1601 plus mask size is smaller or equal to the mode size.
1602
1603 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1604
1605 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
1606 not yet set.
1607
1608 * expr.c (reload.h): Now included.
1609 (emit_block_move): Set volatile_ok when checking for movstr.
1610 (emit_move_1): Check for replacements in addresses in multi-word case.
1611 * Makefile.in (expr.o): Now includes reload.h.
1612
1613 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
1614 Never have a LIBCALL end a basic block.
1615 (find_basic_blocks_1): Likewise.
1616 Reorganize CALL_INSN cases.
1617
1618 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
1619
1620 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
1621
1622 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
1623 completers from mov.ret instruction.
1624
1625 2000-04-14 Richard Henderson <rth@cygnus.com>
1626
1627 * fold-const.c (extract_muldiv): Don't distribute and widen
1628 multiply across plus for non-sizetype unsigned types.
1629
1630 2000-04-14 Richard Henderson <rth@cygnus.com>
1631
1632 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
1633 If the original source is dead in the incr insn, it's dead now.
1634
1635 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1636
1637 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
1638 see if DECL_BIT_FIELD needs to still be set.
1639
1640 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
1641
1642 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
1643 print_int_cst_octal with something that's not an INTEGER_CST.
1644
1645 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
1646 and not a SUBREG to a FLOAT rtl.
1647
1648 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
1649
1650 * emit-rtl.c (try_split): Avoid infinite loop if the split
1651 results in a sequence that contains the original insn.
1652
1653 2000-04-13 Andreas Jaeger <aj@suse.de>
1654
1655 * config/mips/mips.c (expand_block_move): Pass alignment
1656 argument to move_by_pieces in bits, not bytes.
1657
1658 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
1659 __pic__ for little endian.
1660
1661 2000-04-13 Andreas Jaeger <aj@suse.de>
1662
1663 * config/i386/i386-protos.h: Add prototype for
1664 uno_comparison_operator.
1665
1666 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
1667
1668 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
1669 * calls.c (ECF_PURE): New flag.
1670 (emit_call_1): Handle ECF_PURE calls.
1671 (initialize_argument_information): Unset ECF_PURE flag too.
1672 (precompute_arguments): Precompute for ECF_PURE too.
1673 (expand_call): Handle ECF_PURE calls too.
1674 (emit_library_call_value_1): Rename no_queue argument to fn_type,
1675 accept value of 2 as pure function.
1676 (emit_library_call_value, emit_library_call): Rename no_queue argument
1677 to fn_type.
1678 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
1679
1680 * tree.h (DECL_IS_PURE): New macro.
1681 (struct tree_decl): Add pure_flag.
1682 * c-common.c (enum attrs): Add attribute "pure".
1683 (init_attributes): Initialize attribute "pure"
1684 (decl_attributes): Handle attribute "pure".
1685 * extend.texi (Attribute "pure"): Document.
1686 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
1687 in pure function.
1688 (flags_from_decl_or_type): Support attribute "pure".
1689
1690 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
1691
1692 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
1693 the token except for numbers and identifiers.
1694
1695 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
1696
1697 * i386.c (ix86_expand_binary_operator,
1698 ix86_expand_unary_operator): Check no_new_pseudos
1699 instead of reload_in_progress and reload_completed.
1700 (ix86_split_ashldi, ix86_split_ashrdi,
1701 ix86_split_lshrdi): Check no_new_pseudos instead
1702 of reload_completed.
1703
1704 2000-04-12 Jeffrey A Law (law@cygnus.com)
1705
1706 * function.c (purge_addressof): Unshare any shared rtl created by
1707 purge_addressof and its children.
1708
1709 2000-04-12 Mark Mitchell <mark@codesourcery.com>
1710
1711 * function.c (aggregate_value_p): VOID_TYPE nodes are never
1712 aggregates.
1713
1714 2000-04-05 Andreas Jaeger <aj@suse.de>
1715
1716 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
1717 not compiling PIC code, add flags for mabi=64.
1718 (SUBTARGET_CPP_SIZE_SPEC): New.
1719 (SUBTARGET_CPP_SPEC): New.
1720 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
1721 for MIPS/Linux and lots of code needs these defines.
1722
1723 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
1724
1725 * reorg.c (fill_slots_from_thread): Check side_effects_p when
1726 trying the "opposite arithmetic" approach.
1727
1728 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1729
1730 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
1731 (struct sh_args): Add new field force_mem.
1732 (INIT_CUMULATIVE_ARGS): Initialize it.
1733 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
1734
1735 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
1736
1737 * calls.c (expand_call): Do not reverse args in "equal from" field.
1738 (emit_library_call_value_1): Emit_libcall_block for const and pure
1739 function.
1740
1741 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1742
1743 * reload1.c (reload_combine): Don't enable optimization for fixed
1744 registers when encountering a BARRIER.
1745
1746 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
1747
1748 * builtins.c (expand_builtin_memcmp): Do expansion even with
1749 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
1750
1751 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
1752 stack is propertly aligned; add sanity checking for aligned
1753 stack pointer.
1754 (expand_library_call_value_1): Add sanity checking for aligned
1755 stack pointer.
1756
1757 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
1758
1759 * calls.c (emit_library_call_value_1): Change 3rd arg to
1760 locate_and_pad_parm to disregard the setting of partial.
1761
1762 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1763
1764 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
1765
1766 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
1767 CALL_INSN from the normal case.
1768
1769 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
1770
1771 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
1772 New global variables.
1773 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
1774 adjustment.
1775 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
1776 Declare,
1777 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
1778 TARGET_ADD_ESP_8): New macros.
1779 * i386.md: Add peep2s to convert esp adjustments to push and pop
1780 instructions.
1781 (pushsi_prologue, popsi_epilogue): New patterns.
1782
1783 2000-04-12 Jakub Jelinek <jakub@redhat.com>
1784
1785 * real.c (toe64): Remove stale #endif from the last change.
1786
1787 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
1788
1789 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
1790 * real.c (toe64): Revert previous change.
1791
1792 2000-04-12 Jakub Jelinek <jakub@redhat.com>
1793
1794 * objc/objc-act.c: Include ggc.h.
1795 (objc_tree_index, objc_global_trees): Convert most of the
1796 static tree variables into a static array with previous names
1797 as defines.
1798 (objc_ellipsis_node): New variable.
1799 (lang_init): Call objc_act_parse_init and c_parse_init.
1800 Create objc_ellipsis_node.
1801 (build_selector_translation_table): Use objc_ellipsis_node instead
1802 of (tree)1.
1803 (hack_method_prototype): Likewise.
1804 (get_arg_type_list): Likewise.
1805 (start_method_def): Likewise.
1806 (continue_method_def): Likewise.
1807 (gen_method_decl): Likewise.
1808 (ggc_mark_imp_list): New function.
1809 (ggc_mark_hash_table): New function.
1810 (objc_act_parse_init): New function.
1811 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
1812 * c-parse.in (c_parse_init): For objc add roots of objc specific
1813 local tree variables.
1814 * objc/objc-parse.y: Rebuilt.
1815 * objc/objc-parse.c: Rebuilt.
1816 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
1817
1818 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
1819
1820 * cse.c (delete_trivially_dead_insns): Also delete insns
1821 that copy a register to itself where the destination is
1822 a strict_low_part.
1823
1824 2000-04-11 Richard Henderson <rth@cygnus.com>
1825
1826 * flow.c (struct propagate_block_info): Add new_dead, new_live.
1827 (propagate_block): Initialize them. Use them in parallel instead
1828 of one tmp variable, ie revert much of the 0408 and 0407 functional
1829 changes, but keep the structural changes.
1830 (mark_set_regs): Take new_dead from propagate_block_info instead.
1831 (mark_set_1, mark_set_reg): Likewise.
1832 (mark_used_regs): Likewise with new_live.
1833 (mark_used_reg): Likewise. Revert 0408 change.
1834
1835 2000-04-11 Nick Clifton <nickc@cygnus.com>
1836
1837 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
1838 restriction.
1839 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
1840
1841 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1842
1843 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
1844 const section to output a CONSTRUCTOR based on the same conditions
1845 used for VAR_DECLs.
1846
1847 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
1848
1849 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
1850 * pa/pa-protos.h (output_call): Add additional argument indicating
1851 if the call is a sibling/tail call.
1852 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
1853 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
1854 (function_arg, function_arg_partial_nregs): Likewise
1855 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
1856 (emit_move_sequence): Zero extend certain constants as needed
1857 for TARGET_64BIT.
1858 (compute_zdepdi_operands, output_64bit_and): New functions.
1859 (output_64bit_ior, function_arg): Likewise.
1860 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
1861 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
1862 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
1863 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
1864 (output_bvb): Likewise.
1865 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
1866 (output_call): New argument 'sibcall'. Generate sibcall sequences
1867 as needed.
1868 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
1869 (ouput_arg_descriptor): Do not emit argument descriptors for
1870 TARGET_64BIT.
1871 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
1872 defined.
1873 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
1874 (FUNCTION_OK_FOR_SIBALL): Define.
1875 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
1876 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
1877 (CPP_SPEC): Use new spec infrastructure.
1878 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
1879 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
1880 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
1881 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
1882 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
1883 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
1884 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
1885 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
1886 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
1887 (FUNCTION_ARG); Call out to C code.
1888 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
1889 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
1890 (MIN_UNITS_PER_WORD): Likewise.
1891 * pa/pa.md (cmpdi): New expander.
1892 (scc patterns, movstrsi): Not available for TARGET_64BIT.
1893 (64bit conditional arithmetic): New patterns.
1894 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
1895 (movsicc): Not available if modes on all the operands to not match.
1896 (movdicc): New expander and associated patterns.
1897 (64bit branches): New patterns.
1898 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
1899 (pre_ldd, post_std): New patterns.
1900 (64bit addil, load low part): New patterns.
1901 (special movsf constant): Not available for TARGET_64BIT.
1902 (movsf, movdf expanders): Force constants into memory.
1903 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
1904 (64bit movdf/movdi patterns): New patterns.
1905 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
1906 for TARGET_64BIT.
1907 (extendqidi2, extendhidi2, extendsidi2): Similarly.
1908 (adddi3 expander): Allow "arith_operand" for second input.
1909 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
1910 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
1911 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
1912 (muldi3): New expander for TARGET_64BIT.
1913 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
1914 for TARGET_64BIT.
1915 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
1916 patterns for TARGET_64BIT.
1917 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
1918 patterns for TARGET_64BIT.
1919 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
1920 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
1921 (sibcall_epilogue): New expander.
1922 (casesi): Tweak for TARGET_64BIT.
1923 (call expanders): Set & use the outgoing argument pointer. Use the
1924 64bit call patterns as needed. Add additional arg to output_call.
1925 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
1926 (sibcall, sibcall_internal_symref): New expanders.
1927 (sibcall_value, sibcall_value_internal_symref
1928 (interspace_jump): Turn into an expander + matching patterns.
1929 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
1930 * pa/pa64-regs.h: Eliminate trigraph sequences.
1931 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
1932
1933 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
1934
1935 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
1936 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
1937 cpp_token with cpp_ttype everywhere.
1938 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
1939 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
1940 CPP_BUF_COL. Line and column numbers are unsigned int, not
1941 long.
1942 * cpplex.c (cpp_buf_line_and_col): Delete.
1943 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
1944 'long lineno' to 'unsigned int lineno'.
1945 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
1946
1947 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1948
1949 * extend.texi: ISO C99 is not a draft anymore.
1950 * invoke.texi: ISO C++ is not a draft anymore.
1951 * cpp.texi: __cplusplus is required by the ISO standard.
1952
1953 * extend.texi (-fthis-is-variable): Undocument.
1954 * flags.h (warn_template_debugging): Remove declaration.
1955 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
1956 -Wenum-clash, -Wtemplate-debugging): Undocument.
1957
1958 2000-04-10 Nick Clifton <nickc@cygnus.com>
1959
1960 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
1961 integer.
1962 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
1963 integer.
1964 (ARM_SIGN_EXTEND): Use HOST_UINT.
1965 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
1966 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
1967 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
1968 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
1969
1970 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
1971 (arm_gen_constant): Use HOST_UINT.
1972 (arm_canonicalize_constant): Use HOST_UINT.
1973 (arm_reload_in_hi): Use HOST_UINT.
1974 (arm_reload_out_hi): Use HOST_UINT.
1975 (output_multi_immediate): Use HOST_UINT.
1976 (int_log2): Use HOST_UINT.
1977 (arm_poke_function_name): Use HOST_UINT.
1978 (arm_output_epilogue): Use arm_volatile_func().
1979 (output_thumb_prologue): Use arm_strip_name_encoding().
1980
1981 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1982
1983 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
1984 of sequence point problems.
1985
1986 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
1987
1988 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
1989 Recomment.
1990 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
1991
1992 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1993
1994 * sbitmap.h: Whitespace changes and use upper-case macro args.
1995 (struct simple_bitmap_def): All sizes now unsigned.
1996 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
1997 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
1998 (sbitmap_vector_alloc): Parms and local vars now unsigned.
1999 (sbitmap_zero): Cast bzero arg to PTR.
2000 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
2001 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
2002 loop to make structure clearer.
2003 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
2004 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
2005 (sbitmap_a_and_b_or_c): Likewise.
2006 (sbitmap_intersection_of_succs): Minor cleanups.
2007 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
2008 (sbitmap_union_of_preds): Likewise.
2009 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
2010 (debug_sbitmap): New function.
2011
2012 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
2013 * c-typeck.c (convert_for_assignment): Likewise.
2014
2015 * expmed.c (init_expmed): Don't free objects we make.
2016 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
2017
2018 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
2019 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
2020
2021 * gcse.c (expr_hash_table_size): Now unsigned.
2022 (compute_ae_gen): Local variable `i' now unsigned.
2023 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
2024 (compute_transout, hoist_code): Likewise.
2025 (compute_local_properties): Likewise, also hash_table_size.
2026 (alloc_expr_hash_table): N_INSNS now unsigned.
2027 (delete_null_pointer_checks): Mark arg F as unused.
2028
2029 * regrename.c: Minor cleanups, including chang some variables
2030 to unsigned int.
2031
2032 2000-04-10 Neil Booth <NeilB@earthling.net>
2033
2034 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
2035 than GETC ().
2036 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
2037
2038 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2039
2040 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
2041 __classof__, and __headof__ from the list of gnu keywords.
2042 (-ansi): Remove -foperator-names from list of implied options.
2043 Do not call it ANSI C++.
2044 (-foperator-names): Document as -fno-operator-names.
2045
2046 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
2047
2048 * cpphash.c (timestamp): Delete.
2049 (del_HASHNODE): If type is T_MCONST, free value.cpval.
2050 (special_symbol): Remove unnecessary braces. Remove
2051 T_VERSION. Treat T_STDC like T_CONST unless
2052 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
2053 when one is encountered, then convert them into T_MCONST
2054 nodes.
2055 * cppinit.c (builtin_array): version_string is T_MCONST.
2056 __STDC__ has a "1" in its cpval. Don't have a terminator
2057 entry. Clean up which entries are dumped.
2058 (initialize_builtins): Only __STDC__ gets the special
2059 -traditional treatment. Count the length of builtin_array.
2060 Render version_string here.
2061 * cpphash.h: Remove T_VERSION. Add T_MCONST.
2062 * cpplib.h (struct cpp_reader): Remove timebuf.
2063
2064 2000-04-09 Richard Henderson <rth@cygnus.com>
2065
2066 * genrecog.c (pred): Update comparison_operator for the unordered
2067 operators.
2068
2069 * config/i386/i386.c (no_comparison_operator): Disallow unordered
2070 operators.
2071 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
2072 (uno_comparison_operator): New.
2073 (put_condition_code): Handle UNORDERED/ORDERED.
2074 (unsigned_comparison): Likewise.
2075 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
2076 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
2077 (ix86_expand_fp_compare): Use them. Take scratch as argument,
2078 update all callers. Handle all 8 unordered operators.
2079 (ix86_expand_setcc): Lose the unordered argument, update all callers.
2080 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
2081 * config/i386/i386.h (PREDICATE_CODES): Update.
2082 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
2083 (ix86_expand_branch, ix86_expand_setcc): Update.
2084 * config/i386/i386.md (sunordered, sordered): New.
2085 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
2086 (bunordered, bordered): New.
2087 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
2088 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
2089 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
2090
2091 2000-04-09 Philip Blundell <philb@gnu.org>
2092
2093 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
2094
2095 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
2096
2097 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
2098 fix_truncxfhi2): New patterns.
2099 * i386.c (output_fix_trunc): Handle converting to HImode.
2100
2101 2000-04-08 Alex Samuel <samuel@codesourcery.com>
2102
2103 * ssa.c (convert_to_ssa): Eliminate dead code when calling
2104 life_analysis.
2105 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
2106 (for_each_successor_phi): Change parameter to basic_block.
2107 (coalesce_regs_in_successor_phi_nodes): Likewise.
2108 (coalesce_regs_in_copies): Likewise.
2109 (compute_coalesced_reg_partition): Use basic_block instead of index.
2110 * rtl.h (convert_to_ssa): Delete.
2111 (convert_from_ssa): Likewise.
2112 (successor_phi_fn): Likewise.
2113 (for_each_successor_phi): Likewise.
2114 (in_ssa_form): Likewise.
2115 * basic-block.h (convert_to_ssa): Moved from rtl.h.
2116 (convert_from_ssa): Likewise.
2117 (successor_phi_fn): Likewise.
2118 (in_ssa_form): Likewise.
2119 (for_each_successor_phi): Likewise. Change parameter to basic_block.
2120 * flow.c (calculate_global_regs_live): Pass a basic_block to
2121 for_each_successor_phi.
2122
2123 2000-04-08 Richard Henderson <rth@cygnus.com>
2124
2125 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
2126 was modified in the current insn.
2127
2128 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
2129
2130 * arm/thumb.md: Delete.
2131 * arm/thumb-protos.h: Delete.
2132
2133 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
2134
2135 Merge changes from merged-arm-thumb-backend-branch onto trunk.
2136
2137 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
2138
2139 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
2140 into branch.
2141
2142 * arm.md (nop): Use the standard RTL expression. Don't code as a
2143 define_expand.
2144 (*arm_nop, *thumb_nop): Delete.
2145
2146 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
2147 constants. Use casts instead.
2148 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
2149 output_multi_immediate, arm_poke_function_name): Likewise.
2150 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
2151 MASK_RETURN_ADDDR): Likewise.
2152
2153 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
2154
2155 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
2156 into branch.
2157
2158 * arm.md (eh_epilogue): New function.
2159 * arm.h (struct machine_function): Move to here ...
2160 * arm.c: ... from here.
2161 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
2162 (thumb_exit): Extra parameter eh_ofs. All callers changed.
2163 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
2164
2165 2000-03-30 Nick Clifton <nickc@cygnus.com>
2166
2167 * config/arm/semi.h (ASM_SPEC): Restore definition.
2168 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
2169
2170 * config/arm/elf.h (ASM_SPEC): Restore definition.
2171 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
2172
2173 * config/arm/arm.h (ASM_SPEC): Remove definition.
2174 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
2175
2176 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
2177
2178 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
2179
2180 2000-03-24 Nick Clifton <nickc@cygnus.com>
2181
2182 Various formating tidyups, elimination of compile time
2183 warnings and synchronisation with internal sources:
2184
2185 * config/arm/arm-protos.h (assemble_align): Add prototype.
2186 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
2187 (gen_comapre_reg): Rename to arm_gen_compare_reg.
2188 (arm_return_addr_rtx): Rename to arm_return_addr.
2189
2190 * config/arm/arm.c: Include except.h.
2191 Define shorter typenames for strict minipool_node and struct
2192 minipool_fix.
2193 (arm_return_in_memory): For WinCE return all structures <= 32 bits
2194 in memory.
2195 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
2196 (gen_comapre_reg): Rename to arm_gen_compare_reg.
2197
2198 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
2199 already defined.
2200 (ASM_SPEC): Define if not already defined.
2201 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
2202
2203 * config/arm/arm.md: Rename references to gen_rotated_half_load to
2204 arm_gen_rotated_half_load, and references to gen_comapre_reg to
2205 arm_gen_compare_reg.
2206 (indirect_jump): Only accept register operands.
2207 (load_indirect_jump): Keep this pattern since combine can generate
2208 it.
2209
2210 * config/arm/coff.h: Include aout.h.
2211 (MULTILIB_DEFAULTS): Only define if not already defined.
2212
2213 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
2214 into arm.h (so that COFF ports can support thumb based aliases).
2215 (ASM_SPEC): Move definition into arm.h
2216
2217 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
2218 redundant apcs spec.
2219 (ASM_SPEC): Move definition to arm.h
2220
2221 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
2222
2223 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
2224 for entries in the .bss section
2225
2226 2000-03-23 Nick Clifton <nickc@cygnus.com>
2227
2228 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
2229 to thumb_far_jump_used_p.
2230
2231 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
2232 single integer parameter.
2233
2234 * config/arm/arm.c (struct machine_function): Add two new
2235 fields, 'far_jump_used' and 'arg_pointer_live'.
2236 (thumb_far_jump_used_p): Once the decision has been made that
2237 far jumps might be used, always return true.
2238 If being called from the initial elimination offset macro then
2239 do not bother to perform the test if the arg pointer is not
2240 being used.
2241 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
2242 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
2243
2244 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
2245
2246 * arm.c (output_return_instruction): Handle more cases where we can
2247 return from a function with an ldr instruction.
2248 (arm_output_epilogue): Likewise.
2249
2250 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
2251 if we need to push a large stack frame and there are no callee-saved
2252 registers.
2253
2254 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
2255 in ARM code if the frame pointer has been eliminated.
2256
2257 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
2258 unspec_volatile arguments to avoid duplicates.
2259 (consttable_1, consttable_2): Fixes for big-endian mode.
2260
2261 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
2262 as appropriate.
2263
2264 Re-write constant pool code.
2265 * arm.c (minipool_node, minipool_fix): New types.
2266 (minifix): Delete type.
2267 (arm_add_minipool_constant): Delete.
2268 (arm_compute_minipool_offsets, arm_find_barrier,
2269 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
2270 (get_jump_table_size): Now returns HOST_WIDE_INT.
2271 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
2272 functions.
2273 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
2274 (assign_minipool_offsets, arm_print_value): Likewise.
2275 (dump_minipool): Rewrite.
2276 (arm_barrier_cost): New function.
2277 (create_fix_barrier): New function.
2278 (push_minipool_barrier): New function.
2279 (push_minipool_fix): Record additional information about the fixup
2280 required.
2281 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
2282 check the mode of what needs fixing.
2283 (arm_reorg): Rewrite.
2284
2285 2000-03-08 Nick Clifton <nickc@cygnus.com>
2286
2287 * config/arm/arm.md (indirect_jump): Force constant addresses into
2288 a register.
2289
2290 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
2291
2292 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
2293
2294 2000-02-24 Nick Clifton <nickc@cygnus.com>
2295
2296 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
2297 adjust is word aligned.
2298 (thumb_expand_epilogue): Make sure that stack adjust is word
2299 aligned.
2300
2301 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
2302
2303 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
2304
2305 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
2306 pointer relative addresses.
2307
2308 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
2309
2310 * arm.c (find_barrier): Find the last barrier within the allowed
2311 range.
2312
2313 2000-02-09 Nick Clifton <nickc@cygnus.com>
2314
2315 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
2316
2317 2000-02-09 Nick Clifton <nickc@cygnus.com>
2318
2319 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
2320 ARM_FUNCTION_PROFILER.
2321
2322 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
2323 ARM_FUNCTION_PROFILER.
2324
2325 * config/arm/linux-oldld.h: Imported from mainline sources.
2326
2327 2000-02-07 Nick Clifton <nickc@cygnus.com>
2328
2329 * config/arm/lib1funcs.asm: Merge in thumb functions from
2330 lib1thumb.asm.
2331
2332 * config/arm/lib1thumb.asm: Delete.
2333
2334 2000-02-04 Nick Clifton <nickc@cygnus.com>
2335
2336 * config/arm/arm.c: Sychronised with current Red hat local
2337 sources.
2338 * config/arm/arm.h: Ditto.
2339 * config/arm/arm-protos.h: Ditto.
2340
2341 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
2342
2343 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
2344
2345 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
2346 byte stores.
2347
2348 2000-02-02 Nick Clifton <nickc@cygnus.com>
2349
2350 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
2351
2352 * config/arm/arm.md (epilogue): Fix rtl checking abort because
2353 (return) was emited using an emit_insn() call.
2354
2355 2000-01-31 Nick Clifton <nickc@cygnus.com>
2356
2357 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
2358 thumb stack frame.
2359 (thumb_exit): Move frame pointer back into hard frame pointer
2360 register if backtracing is being used.
2361
2362 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
2363
2364 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
2365 into branch.
2366
2367 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
2368
2369 * config/arm/arm.md (neg_pool_offset): Provide default for new
2370 attribute.
2371 (arm_movsi_insn): Add neg_pool_offset attribute.
2372 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
2373 rtx for the insn that starts the scan and an unsigned long for its
2374 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
2375 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
2376 instructions in *PINSERTED.
2377 (struct minipool_fixup): Add MIN_ADDRESS elt.
2378 (sort_fixups): Compute it.
2379 (arm_reorg): Changes to support inserting pools before the insn to be
2380 fixed up.
2381
2382 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
2383
2384 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
2385 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
2386 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
2387
2388 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
2389
2390 * config/arm/semi.h (TARGET_VERSION): Do not define if already
2391 defined.
2392 (TARGET_DEFAULT): Do not define if already defined.
2393
2394 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
2395
2396 * config/arm/arm.md (anddi3): Allow disjoint source operands.
2397 (iordi3): Allow disjoint source operands.
2398 (xordi3): Allow disjoint source operands.
2399 (negdi2): Permit construction for ARM and Thumb.
2400 (arm_negdi2): Renamed version of old negdi2 pattern.
2401 (thumb_negdi2): New pattern: Only permit non-overlapping
2402 source and destination.
2403
2404 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
2405
2406 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
2407 scratch low register so that it will not be deleted.
2408
2409 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
2410
2411 * config/arm/pe.h (ARM_PE): Define.
2412
2413 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
2414 interfacearm attribute if this is a PE toolchain.
2415 (output_return_instruction): Do not emit anything if the function
2416 has the naked attribute set.
2417 (is_called_in_ARM_mode): If the function has the interfacearm
2418 attribute then return true.
2419 (thumb_expand_prologue): Do not generate a prologue for naked
2420 functions.
2421 (thumb_expand_epilogue): Do not generate an epilogie for a naked
2422 function.
2423 (output_thumb_prologue): Do not bother if the function is naked.
2424 Strip PE encoding from function name before emitting.
2425
2426 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
2427
2428 * arm.md (pic_load_addr): Fix constraints.
2429
2430 * arm.md (casesi_insn): Fix mis-applied patch.
2431
2432 * arm.md ("core" function unit): Add rules for single- and
2433 multi-cycle insns.
2434 (All TARGET_THUMB patterns): Add "type" attribute information
2435 where needed.
2436 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
2437 the following insn is a CALL.
2438
2439 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
2440 pointer.
2441 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
2442 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
2443 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
2444
2445 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
2446
2447 * config/arm/linux-gas.h: oops - this file was missed out when the
2448 branch was created...
2449
2450 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
2451
2452 * thumb.c: Deleted. Move contents to ...
2453 * arm.c: ... here.
2454 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
2455 rule for thumb.o
2456 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
2457 * configure: Regen.
2458
2459 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
2460 declare a prototype for asm_output_align();
2461
2462 * arm.c (thumb_condition_code): Delete.
2463 (arm_print_operand): Always use arm_condition_code array.
2464
2465 * arm.c (thumb_return_addr_rtx): Delete.
2466 (arm_save_machine_status, arm_restore_machine_status): Delete.
2467 (arm_init_machine_status, arm_mark_machine_status): New functions.
2468 (arm_init_expanders): Update accordingly.
2469 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
2470 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
2471 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
2472
2473 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
2474
2475 * configure.in : Fix arm-*-aout target to use new t-arm-aout
2476 script.
2477 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
2478 targets.
2479
2480 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
2481
2482 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
2483 stack backtrace structure.
2484
2485 * config/arm/arm-protos.h: Add prototypes for functions defined in
2486 arm/pe.h.
2487
2488 * config/arm/arm.c (arm_override_options): Fix selection of
2489 attributes of default processor.
2490
2491 * config/arm/coff.h: Delete needless #include.
2492
2493 * config/arm/pe.c: Delete unused code.
2494
2495 * config/arm/pe.h (CPP_DEFINES): Delete
2496 (SUBTARGET_CPP_SPEC): Define.
2497 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
2498
2499 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
2500
2501 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
2502
2503 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
2504 updated.
2505 (CAN_DEBUG_WITHOUT_FP): Define.
2506 (FIXED_REGISTERS): Make r11 call-saved.
2507 (CALL_USED_REGISTERS): Likewise.
2508 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
2509 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
2510 frame-pointer is required.
2511 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
2512 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
2513 if the target normally needs a stack frame in non-leaf functions.
2514 (use_return_insn): Correct logic for determining when a return
2515 instruction can be used.
2516 (output_return_instruction): Handle the frame-pointer register as
2517 a normal register when not TARGET_APCS_FRAME.
2518 (arm_output_prologue): Likewise.
2519 (arm_output_epilogue): Likewise.
2520 (output_func_epilogue): Likewise.
2521 (arm_expand_prologue): Likewise.
2522 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
2523
2524 * arm.c (use_return_insn): No need to check floating point regs if
2525 TARGET_SOFT_FLOAT.
2526 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
2527 the code of value stored in the minipool array.
2528 (arm_add_minipool_constant): Likewise.
2529
2530 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2531
2532 * basic-block.h (conflict_graph_enum_fn): K&R fix.
2533
2534 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2535
2536 * tree.c (tree_expr_nonnegative_p): New function.
2537
2538 * tree.h (tree_expr_nonnegative_p): Declare.
2539
2540 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
2541 elide some sign_compare warnings.
2542 (build_conditional_expr): Likewise.
2543
2544 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
2545
2546 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
2547
2548 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
2549 * i386.c (print_operand): Use the proper suffix for a 387 HImode
2550 operand. Abort if a 387 operand has an unsupported size.
2551
2552 2000-04-08 Neil Booth <NeilB@earthling.net>
2553
2554 * cppexp.c (parse_charconst): Null does not end character
2555 constants.
2556 * cppinit.c (ISTABLE): Null character handled as whitespace.
2557 * cpplex.c (null_warning): new function.
2558 (skip_string): Emit warning if nulls encountered.
2559 (_cpp_skip_hspace): Emit warning if nulls encountered.
2560 (_cpp_lex_token): Emit warning if nulls encountered. Drop
2561 them.
2562 * cpp.texi: Update.
2563
2564 2000-04-07 Richard Henderson <rth@cygnus.com>
2565
2566 * flow.c (loop_depth): Remove.
2567 (reg_next_use, cc0_live, mem_set_list): Replace with ...
2568 (struct propagate_block_info): New.
2569 (life_analysis): Don't allocate reg_next_use.
2570 (propagate_block_delete_insn): Break out of propagate_block.
2571 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
2572 (propagate_block_delete_libcall): Likewise.
2573 (propagate_block): Create a propagate_block_info struct to pass
2574 to subroutines. Allocate one not two temporary regsets. Don't
2575 clobber memory for const calls. Look for clobbers in
2576 CALL_INSN_FUNCTION_USAGE.
2577 (mark_set_regs): Recognize COND_EXEC.
2578 (mark_set_reg): Break out of mark_set_1.
2579 (mark_used_reg): Break out of mark_used_regs.
2580 (mark_used_regs): Recognize COND_EXEC.
2581 (insn_dead_p): Use propagate_block_info struct.
2582 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
2583 (find_auto_inc, try_pre_increment_1): Likewise.
2584 (print_rtl_with_bb): Dump regs live at end too.
2585 (count_reg_sets_1): Pass in loop_depth.
2586 (count_reg_sets, count_reg_references): Likewise.
2587 (recompute_reg_usage): Provide it.
2588
2589 2000-04-07 Richard Henderson <rth@cygnus.com>
2590
2591 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
2592 not the raw files.
2593
2594 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
2595
2596 * cpplib.c (do_elif): Skip the rest of the line if we're
2597 not going to bother evaluating it.
2598 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
2599 to avoid pointless calls to the lexer.
2600
2601 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
2602
2603 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
2604
2605 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
2606
2607 * calls.c (expand_call): emit_queue if we're trying a sibcall.
2608
2609 2000-04-07 Jakub Jelinek <jakub@redhat.com>
2610
2611 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
2612
2613 2000-04-06 Geoff Keating <geoffk@cygnus.com>
2614
2615 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
2616 crtend so they can be multilibbed.
2617 (STAGESTUFF): Remove s-crt and s-crtS.
2618
2619 2000-04-07 Richard Henderson <rth@cygnus.com>
2620
2621 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
2622 if we discover we need a pseudo and no_new_pseudos is true.
2623 * config/alpha/alpha.md (ne:DI insn): New.
2624 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
2625
2626 2000-04-07 Richard Henderson <rth@cygnus.com>
2627
2628 * rtl.def (COND_EXEC): New.
2629 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
2630 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
2631
2632 * genconfig.c (have_cond_arith_flag): Remove.
2633 (have_cond_exec_flag): New.
2634 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
2635 (main): Print HAVE_conditional_execution.
2636
2637 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
2638 (sched_analyze_insn, print_pattern): Likewise.
2639 * reload.c (find_equiv_reg): Likewise.
2640 * rtlanal.c (reg_referenced_p): Likewise.
2641 (note_stores, dead_or_set_regno_p): Likewise.
2642 (reg_overlap_mentioned_p): Rewrite to use a switch.
2643
2644 * ggc.h (struct rtx_def): Forward declare.
2645
2646 * print-rtl.c (debug_rtx_range): New.
2647 * rtl.h (debug_rtx_range): Declare.
2648
2649 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
2650
2651 * gcse.c (gcse_main): Don't rebuild the CFG here.
2652 (delete_null_pointer_checks): Likewise.
2653 * ssa.c (convert_to_ssa): Likewise.
2654 * toplev.c (rest_of_compilation): Do it here instead. Combine
2655 sequential calls to TIMEVAR. Consistently use `insns' instead of
2656 `get_insns()'. Always split insns after reload when optimizing.
2657
2658 * basic-block.h (merge_blocks_nomove): Declare.
2659 (tidy_fallthru_edge): Declare.
2660 * flow.c (merge_blocks_nomove): Document as merging into previous
2661 blocks. Remove cruft from between blocks; remove all edges out of A.
2662 (tidy_fallthru_edge): Export.
2663
2664 2000-04-06 Alex Samuel <samuel@codesourcery.com>
2665
2666 * ssa.c (compute_conservative_reg_partition): Declare with
2667 void arguments.
2668 * toplev.c (clean_dump_file): Remove previously-deleted function
2669 inadvertantly merged back in.
2670 * conflict.c (conflict_graph_add): Use a single call to
2671 htab_find_slot to look up and insert.
2672
2673 2000-04-06 Richard Henderson <rth@cygnus.com>
2674
2675 * genrecog.c (*): Rename _last_insn to last_insn.
2676 (make_insn_sequence): Set the position of the peephole2 C test
2677 to be at the last insn.
2678
2679 2000-04-06 Richard Henderson <rth@cygnus.com>
2680
2681 * flow.c (compute_flow_dominators): Free worklist.
2682
2683 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
2684
2685 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
2686
2687 2000-04-06 Alex Samuel <samuel@codesourcery.com>
2688
2689 * rtl.h (INSN_P): New macro.
2690 (successor_phi_fn): New typedef.
2691 (for_each_successor_phi): New prototype.
2692 (in_ssa_form): New variable.
2693 (PHI_NODE_P): Likewise.
2694 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
2695 phi nodes in successors.
2696 (mark_used_regs): Add PHI case.
2697 (set_phi_alternative_reg): New function.
2698 (life_analysis): Assert that dead code elimination is not selected
2699 when in SSA form.
2700 * toplev.c (to_ssa_time): New variable.
2701 (from_ssa_time): Likewise.
2702 (compile_file): Zero to_ssa_time and from_ssa_time.
2703 Print time to convert to and from SSA.
2704 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
2705 (print_time): Compute percent fraction as integer.
2706 * ssa.c (PHI_NODE_P): Moved to rtl.h.
2707 (convert_to_ssa): Check if we're already in SSA.
2708 Don't eliminate dead code in life_analysis.
2709 Rerun flow and life analysis at bottom.
2710 (eliminate_phi): Use canonical regnos when adding nodes.
2711 (mark_reg_in_phi): New function.
2712 (mark_phi_and_copy_regs): Likewise.
2713 (convert_from_ssa): Rerun life analysis at top.
2714 Use coalesced partition.
2715 Check for removing a phi node at the end of the block.
2716 (compute_coalesced_reg_partition): New function.
2717 (coalesce_regs_in_copies): Likewise.
2718 (coalesce_reg_in_phi): Likewise.
2719 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
2720 (for_each_successor_phi): Likewise.
2721 (rename_context): New struct.
2722 (rename_block): Use a rename_context with rename_insn_1. When
2723 renaming sets of a subreg, emit a copy of the entire reg first.
2724 (rename_insn_1): Treat data as a rename_context *. Save current
2725 insn in set_data.
2726 (rename_set_data): Add field set_insn.
2727 * Makefile.in (HASHTAB_H): Move up in file.
2728 (OBSTACK_H): New macro.
2729 (collect2.o): Use OBSTACK_H in dependencies.
2730 (sdbout.o): Likewise.
2731 (emit-rtl.o): Likewise.
2732 (simplify-rtx.o): Likewise.
2733 (fix-header.o): Likewise.
2734 (OBJS): Add conflict.o.
2735 (conflict.o): New rule.
2736 * basic-block.h: Include partition.h.
2737 (conflict_graph): New typedef.
2738 (conflict_graph_enum_fn): Likewise.
2739 (conflict_graph_new): New prototype.
2740 (conflict_graph_delete): Likewise.
2741 (conflict_graph_add): Likewise.
2742 (conflict_graph_conflict_p): Likewise.
2743 (conflict_graph_enum): Likewise.
2744 (conflict_graph_merge_regs): Likewise.
2745 (conflict_graph_print): Likewise.
2746 (conflict_graph_compute): Likewise.
2747 * conflict.c: New file.
2748
2749 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
2750
2751 * tlink.c (read_repo_files): Don't look for .rpo info for
2752 linker flags.
2753
2754 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2755
2756 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
2757
2758 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2759
2760 * config/sh/lib1funcs.asm (___udivsi3_i4):
2761 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
2762 only depends on FMOVD_WORKS.
2763
2764 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2765
2766 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
2767 make double constant 8-byte aligned.
2768
2769 2000-04-06 Jakub Jelinek <jakub@redhat.com>
2770
2771 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
2772 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
2773 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
2774 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
2775 Accept storing GENERAL_REGS into offsetable memory.
2776 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
2777 building a TFmode constant other than 0.0L into GENERAL_REGS.
2778
2779 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
2780
2781 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
2782
2783 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
2784
2785 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
2786 (macro_cleanup): No need to cast pbuf->macro.
2787 (collect_expansion): Use _cpp_get_define_token. Goto done if
2788 it returns VSPACE. Remove check for trailing space after
2789 CPP_COMMENT.
2790 (_cpp_create_definition): Don't diddle flags here. Return
2791 directly on error.
2792 (unsafe_chars): Handle c1 being EOF.
2793 (push_macro_expansion): Use unsafe_chars for both accidental-paste
2794 checks. Don't push the buffer till after we're done with
2795 them.
2796 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
2797 (PEEKN, FORWARD, GETC, PEEKC): Use them.
2798 (cpp_push_buffer): Don't set new->alimit. Set new->mark
2799 appropriately.
2800 (_cpp_parse_assertion): Don't NUL terminate.
2801 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
2802 hspace before calling _cpp_parse_assertion. Remove all sets
2803 of only_seen_white. Treat '\f' as hspace. Don't do anything
2804 special with '\n' here.
2805 (maybe_macroexpand): Handle T_EMPTY hash entries without
2806 pushing a buffer at all.
2807 (cpp_get_token): Handle clearing only_seen_white here. Handle
2808 incrementing the line number here. Clear
2809 potential_control_macro as well as only_seen_white, if
2810 appropriate.
2811 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
2812 (_cpp_get_define_token): New function, basically like
2813 _cpp_get_directive_token was but doesn't eat horizontal space.
2814 Don't do anything with only_seen_white here.
2815 (_cpp_get_directive_token): Just call _cpp_get_define_token
2816 repeatedly till it returns non-hspace.
2817
2818 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
2819 (conditional_skip, skip_if_group): Return int.
2820 (DIRECTIVE_TABLE): Change origin of all conditional directives
2821 to "COND".
2822 (TRAD_DIRECT_P): New macro.
2823 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
2824 an error for a bogus directive, unless -lang-asm. Use
2825 TRAD_DIRECT_P. Loop calling handler functions till one returns
2826 zero.
2827 (get_macro_name): Don't diddle flags here.
2828 (do_define): Diddle flags here. Use _cpp_get_directive_token.
2829 Create T_EMPTY nodes for #define macro /* nothing */.
2830 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
2831 Use hp->name when calling pass_thru_directive.
2832 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
2833 Return the result of conditional_skip and/or skip_if_group.
2834 Don't call _cpp_output_line_command.
2835 (consider_directive_while_skipping): Use _cpp_get_directive_token.
2836 Issue -Wtraditional warnings as appropriate. Don't complain
2837 about unrecognized directives. If we are to stop skipping,
2838 return the number of the directive that ended the skip.
2839 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
2840 expansion and line commands while skipping. Return the result
2841 of consider_directive_while_skipping, if nonzero.
2842 (do_endif): Just set potential_control_macro here.
2843 (validate_else): Use _cpp_get_directive_token.
2844 (do_assert, do_unassert): Don't save pointers into the
2845 token_buffer across calls to the lexer. Use
2846 _cpp_get_directive_token.
2847
2848 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
2849 pointer, not an offset. Replace 'data', which was a generic
2850 pointer, with 'macro', which points to a struct hashnode.
2851 (cpp_reader): Add 'potential_control_macro' pointer.
2852 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
2853 (CPP_BUF_GET, CPP_FORWARD): Delete.
2854 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
2855 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
2856 ACTIVE_MARK_P): Update.
2857 (_cpp_get_define_token): New internal function.
2858 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
2859
2860 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
2861
2862 * configure.in: And here.
2863 * configure: Regenerate.
2864 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
2865 --enable-libstdcxx-v3 is passed at configure time.
2866 * config.h.in: Regenerate.
2867
2868 2000-04-05 Mark Mitchell <mark@codesourcery.com>
2869
2870 * final.c (final): Use xcalloc to allocate line_note_exists.
2871 * function.c (free_after_compilation): Free the temp_slots.
2872 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
2873 (combine_temp_slot): Free temp_slots when they get combined.
2874 (purge_addressof): Fix typo in comment.
2875 * stmt.c (mark_goto_fixup): Mark the fixup itself.
2876 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
2877
2878 * ggc.h: Include varray.h.
2879 (ggc_pending_trees): Declare.
2880 (ggc_mark_tree_children): Remove declaration.
2881 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
2882 * ggc-common.c (ggc_pending_trees): New variable.
2883 (ggc_mark_roots): Call ggc_mark_trees.
2884 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
2885 the ggc_pending_trees.
2886 * Makefile.in (GGC_H): New variable. Use it throughout in place
2887 of ggc.h.
2888
2889 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2890
2891 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
2892 GET_MODE_SIZE.
2893
2894 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2895
2896 * sh.c (sh_insn_length_adjustment): New function.
2897 * sh-protos.h (sh_insn_length_adjustment): Declare.
2898 * sh.h (ADJUST_INSN_LENGTH): Use it.
2899
2900 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
2901
2902 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
2903 from the insn where REG_RETVAL is added.
2904 (emit_no_conflict_block): Ditto.
2905
2906 * md.texi (Standard Names): Clarify when movX is needed.
2907
2908 * combine.c (simplify_comparison) [MINUS]: Do not replace
2909 all (op (minus A B) 0) with (op A B).
2910
2911 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
2912 J"orn Rennecke <amylaar@cygnus.co.uk>
2913
2914 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
2915 (block_lump_real): Likewise.
2916
2917 2000-04-05 Chris Demetriou <cgd@netbsd.org>
2918
2919 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
2920 remaining non-zero debugging masks.
2921
2922 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
2923
2924 * basic-block.h (verify_flow_info): Declare.
2925 (flow_loop_outside_edge_p): Declare.
2926 * flow.c (verify_flow_info): Remove declaration.
2927 (clear_log_links, flow_loop_outside_edge_p): Likewise.
2928
2929 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
2930
2931 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
2932 not C++ comments.
2933
2934 2000-04-05 Jakub Jelinek <jakub@redhat.com>
2935
2936 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
2937 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
2938 seqdi_zero_trunc+1): Allow splits only if registers are
2939 different.
2940
2941 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
2942
2943 * acconfig.h: Add HAVE_GAS_HIDDEN.
2944 * config.in: Regenerated.
2945 * configure.in: Add test for .hidden pseudo-op in gas.
2946 * configure: Regenerated.
2947 * crtstuff.c: Include auto-host.h.
2948 Emit additional .hidden pseudo-op for __dso_handle if the
2949 assembler knows about it.
2950
2951 2000-04-04 Philippe De Muyter <phdm@macqel.be>
2952
2953 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
2954 before freeing argnames.
2955 * cpplib.c (do_ifndef): Cast return value of xstrdup.
2956
2957 2000-04-05 Michael Meissner <meissner@redhat.com>
2958
2959 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
2960 Walton <jonboy@gordian.com> to make memory references with update
2961 work wtih -mregnames.
2962
2963 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2964
2965 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
2966 (regrename_optimize): Rename variables `def_uses' and
2967 `ext_basic_blocks' to avoid conflicts with similarly named
2968 typedefs in traditional C.
2969
2970 * calls.c (initialize_argument_information): Fix typo in previous
2971 change.
2972
2973 2000-04-04 Richard Henderson <rth@cygnus.com>
2974
2975 * regrename.c (consider_available): Test fixed_regs not
2976 PIC_OFFSET_TABLE_REGNUM.
2977
2978 2000-04-04 Geoff Keating <geoffk@cygnus.com>
2979
2980 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
2981 crtend.
2982 (CRTSTUFF_T_CFLAGS_S): Delete definition.
2983 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
2984 (ENDFILE_LINUX_SPEC): Always use crtend.
2985 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
2986 (powerpc-*-linux-gnu): Likewise.
2987 * configure: Regenerate.
2988
2989 * config/rs6000/eabi.h: Don't include sysv4.h.
2990 (MULTILIB_DEFAULTS): Don't define.
2991 * config/rs6000/eabiaix.h: Don't include eabi.h.
2992 * config/rs6000/eabile.h: Delete.
2993 * config/rs6000/eabilesim.h: Delete.
2994 * config/rs6000/eabisim.h: Don't include eabi.h.
2995 * config/rs6000/linux.h: Don't include sysv4.h.
2996 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
2997 (MULTILIB_DEFAULTS): Don't redefine.
2998 * config/rs6000/rtems.h: Don't include eabi.h.
2999 * config/rs6000/sol2.h: Don't include sysv4le.h.
3000 * config/rs6000/sysv4le.h: Don't include sysv4.h.
3001 * config/rs6000/t-ppc: Delete.
3002 * config/rs6000/t-ppcgas: Correct comment.
3003 * config/rs6000/t-ppcos: Correct comment. Don't build
3004 multilibs for -fPIC, rather use -fPIC -mstrict-align
3005 as default.
3006 * config/rs6000/t-ppc: Delete.
3007 * config/rs6000/vxppc.h: Don't include sysv4.h.
3008 * config/rs6000/vxppcle.h: Delete.
3009 * configure.in: Use multiple header files for p2pc ELF targets
3010 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
3011 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
3012 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
3013 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
3014 always available for these platforms.
3015
3016 2000-04-04 Richard Henderson <rth@cygnus.com>
3017
3018 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
3019
3020 2000-04-04 Stan Cox <scox@cygnus.com>
3021
3022 * Makefile.in: Add rules for regrename.o
3023 * regrename.c: New file.
3024 * rtl.h (regrename_optimize): Add prototype.
3025 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
3026 (compile_file, decode_d_option): Add support for -frename-registers.
3027 (rest_of_compilation): Call regrename_optimize.
3028 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
3029 New macros.
3030
3031 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3032
3033 * Makefile (gccbug): New target.
3034 (doc): Depend on it.
3035 * gcc.texi (Bugs): Link subnodes.
3036 (gccbug): New node.
3037 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
3038 Document severities, priorities, and classes in bug form.
3039
3040 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
3041
3042 * cpplex.c (trigraph_map, speccase): Combine into single
3043 table, chartab.
3044 (NORMAL, NONTRI): New macros.
3045 (_cpp_read_and_prescan): Change to use unified table. Use
3046 is_hspace to test for whitespace.
3047
3048 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
3049 definition that doesn't provoke the "empty body in an
3050 if-statement" warning.
3051
3052 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
3053
3054 * builtins.c (expand_builtin_strlen): Force the source to
3055 be a memory address.
3056
3057 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3058
3059 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
3060
3061 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
3062
3063 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
3064 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
3065 (ECF_IS_CONST): Rename to ECF_CONST.
3066 (special_function_p): Make static, change interface.
3067 (flags_from_decl_or_type, try_to_integrate): Break out from ...
3068 (expand_call) ... here; convert number of variables to flags.
3069 (emit_library_call_vlue_1): Likewise.
3070 (setjmp_call_p): New function.
3071 (initialize_argument_information): Accepts flags as argument;
3072 return flags.
3073 (precompute_arguments): Likewise.
3074 * tree.h (special_function_p): Remove.
3075 (setjmp_call_p): Add prototype.
3076
3077 2000-04-04 Jakub Jelinek <jakub@redhat.com>
3078
3079 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
3080 so that addresses are offsetable by up to 16 bytes.
3081 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
3082 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
3083 offsetable.
3084
3085 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
3086 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
3087 (movsf): Don't force any constant to memory if target is integer
3088 hard register.
3089 Move fp_zero_operand check below the const0_rtx check.
3090 (movtf): Likewise. Also allow fp_zero_operand for stores into
3091 memory.
3092 (movdf): Likewise. Also allow fp_zero_operand for stores into
3093 memory and into integer hard registers.
3094 (clear_df, clear_dfp, movdf_const_intreg_sp32,
3095 movdf_const_intreg_sp64): Remove.
3096 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
3097 conditions.
3098 (movdf_no_e_insn_v9_sp32): New pattern.
3099 (movdf_insn_v9only): Remove.
3100 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
3101 (movdf_insn_sp64): Remove.
3102 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
3103 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
3104 (following splits): Rewrite conditions. Add two new splits
3105 for storing 0.0 into memory and registers.
3106 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
3107 (movtf_insn_sp32): Redo constraints and conditions.
3108 (movtf_insn_vis_sp32): New pattern.
3109 (movtf_no_e_insn_sp32): Redo constraints and conditions.
3110 (movtf_insn_hq_sp64): Likewise.
3111 (movtf_insn_hq_vis_sp64): New pattern.
3112 (movtf_insn_sp64): Redo constraints and conditions.
3113 (movtf_insn_vis_sp64): New pattern.
3114 (movtf_no_e_insn_sp64): Redo constraints and conditions.
3115 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
3116 or memory.
3117 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
3118 -mvis or -m64 to take down the number of various reload patterns.
3119
3120 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
3121
3122 * pa/pa-64.h: New file.
3123 * pa/pa64-regs.h: New file.
3124 * pa/pa64-start.h: New file.
3125 * pa/t-pa64: New file.
3126 * pa/xm-pa64hpux.h: New file.
3127
3128 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3129
3130 * sparc.c (output_restore_regs): Prototype.
3131 (sparc_emit_float_lib_cmp): Constification.
3132
3133 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
3134
3135 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
3136 Prototype.
3137
3138 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
3139 (get_value_hash, hash_rtx): Likewise.
3140
3141 * ssa.c (compute_conservative_reg_partition): Prototype.
3142
3143 * tree.c (mark_hash_entry): Prototype.
3144
3145 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
3146
3147 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
3148 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
3149 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
3150
3151 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
3152 * objc/lang-specs.h: Likewise.
3153
3154 2000-04-03 Neil Booth <NeilB@earthling.net>
3155
3156 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
3157 and SYNTAX_ERROR2. Replace `' in messages with ''.
3158 (op_to_str): Make re-entrant.
3159 (_cpp_parse_expr): Implement new error macros. Use | rather
3160 than || to logically or 2 boolean integers. Simply expression
3161 checking we have a left operand iff needed.
3162
3163 2000-04-03 Nick Clifton <nickc@cygnus.com>
3164
3165 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
3166
3167 2000-04-03 Philip Blundell <philb@gnu.org>
3168
3169 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
3170
3171 2000-04-03 Felix Lee <flee@cygnus.com>
3172
3173 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
3174 (run_shell): Use it.
3175
3176 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
3177
3178 * Makefile.in (stmp-int-hdrs): Make include subdir here...
3179 (stmp-fixproto): ...rather than here.
3180
3181 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
3182
3183 * pa.c (print_operand): Compute 'base' only inside the code paths
3184 that use it.
3185
3186 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
3187
3188 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
3189 CEIL_DIV_EXPR.
3190
3191 2000-04-03 Philipp Thomas <pthomas@suse.de>
3192
3193 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
3194
3195 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
3196
3197 * Makefile.in (alias.o): Depend on $(TREE_H).
3198
3199 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
3200
3201 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
3202 processing C++.
3203 * cpplib.c (_cpp_handle_directive): Improve warnings for
3204 traditional C and indented directives.
3205
3206 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
3207 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
3208 fixinc/inclhack.def: Indent the # of #include_next one space.
3209 * cp/rtti.c: Un-indent #if and #endif.
3210
3211 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
3212 syntax error, but an error has already been printed.
3213 * cpplex.c (_cpp_parse_assertion): Give a more specific error
3214 message when called with nothing remaining on the line.
3215 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
3216 OTHER token, not an ASSERTION.
3217 * cpplib.c (do_assert): When we create a 'base' node, clear
3218 its aschain pointer.
3219
3220 2000-04-02 Neil Booth <NeilB@earthling.net>
3221
3222 * cppexp.c: New typedef op_t. struct operation and struct
3223 token updated to use it.
3224 (op_to_str): New function.
3225 (_cpp_parse_expr): Error messages modified to use op_to_str.
3226
3227 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3228
3229 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
3230 before checking MUST_PASS_IN_STACK.
3231
3232 2000-04-02 Neil Booth <NeilB@earthling.net>
3233
3234 * cppexp.c: New FINISHED dummy token. Combine operator initial
3235 flags and initial priority into a single constant. New
3236 EQUALITY macro. New operator flag SHORT_CIRCUIT.
3237 (_parse_cpp_expr): Implement new constants. Take left operand
3238 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
3239 parse indicated by reducing FINISHED token. Remove new lines
3240 from cpp_error messages.
3241
3242 2000-04-01 Mark Mitchell <mark@codesourcery.com>
3243
3244 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
3245 permanent obstack.
3246
3247 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
3248
3249 * cpplib.c: Include symcat.h. Add 'origin' field to struct
3250 directive. Add origin values to DIRECTIVE_TABLE. Generate
3251 the strings and function names on the fly. Take the #sccs
3252 entry out of the table if SCCS_DIRECTIVE is not defined.
3253 (_cpp_handle_directive): Decide if the # was at the beginning
3254 of the line here. Issue -pedantic warnings for extended
3255 directives here. Warn about K+R directives with the #
3256 indented, and C89/extended directives with the # not indented,
3257 here.
3258 (do_import, do_include_next, do_warning, do_ident, do_sccs,
3259 do_assert, do_unassert): Don't issue pedantic warning here.
3260
3261 * cpphash.h: Add CPP_WTRADITIONAL macro.
3262 * cpplib.h (struct cpp_options): Rename warn_stringify to
3263 warn_traditional; update comments.
3264 * cppinit.c (handle_option): Set warn_traditional not
3265 warn_stringify.
3266 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
3267 CPP_WTRADITIONAL (pfile).
3268 * cpplex.c (_cpp_lex_token): Don't decide if directives should
3269 be ignored in -traditional mode here.
3270
3271 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
3272 to initialize speccase[] and trigraph_map[]. Delete all
3273 references to pfile->input_speccase. Always treat '?' as a
3274 special character. Remove table-initialization code from
3275 _cpp_init_input_buffer.
3276
3277 * cpplib.h (struct cpp_reader): Remove input_speccase field.
3278 * cppinit.c (cpp_cleanup): Don't free input_speccase.
3279
3280 2000-04-01 Richard Henderson <rth@cygnus.com>
3281
3282 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
3283 (mostlyclean): Likewise.
3284
3285 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
3286 (struct dump_file_info, enum dump_file_index, dump_file): New.
3287 (open_dump_file): Take a dump_file_index not a suffix, and a decl
3288 not a string. Clean out file if we havn't yet done so. Do nothing
3289 if the dump isn't enabled.
3290 (close_dump_file): Do nothing if the dump isn't open. Dump
3291 graph data if requested.
3292 (dump_rtl, clean_dump_file): Remove.
3293 (compile_file): Don't clean the dump files. Only finalize .bp dump
3294 if flag_test_coverage or flag_branch_probabilities. Only finalize
3295 .combine dump if optimizing. Iterate over dump_file to finalize the
3296 graph dumps.
3297 (rest_of_compilation): Update for open_dump_file/close_dump_file.
3298 Convert all uses of dump_rtl.
3299 (decode_d_option): Iterate over dump_file to implement 'a' and to
3300 locate pass-specific dumps.
3301
3302 2000-04-01 Neil Booth <NeilB@earthling.net>
3303
3304 * cppexp.c: Redefine priority constants.
3305 (_cpp_parse_expr): Replace left and right priority scheme with
3306 single priority logic. Move LOGICAL to same place as COMPARE.
3307 Remove bogus check for multiple unary +/- operators.
3308
3309 2000-04-01 Neil Booth <NeilB@earthling.net>
3310
3311 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
3312 within the switch statement. Binary operations break out of
3313 the switch naturally. '(' tokens handled by forcing
3314 immediate shift. ')' handled by forcing immediate reduce to
3315 the previous '('. New error messages.
3316
3317 2000-03-31 Geoff Keating <geoffk@cygnus.com>
3318
3319 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
3320 part', it's already in use. Use %K instead. Add a return at the
3321 end of what is now %K.
3322 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
3323
3324 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
3325
3326 * builtins.c (expand_builtin_apply): Pass proper parameters to
3327 allocate_dynamic_stack_space.
3328 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
3329 update stack_pointer_delta; do not update arg_size_so_far.
3330 (compute_argument_block_size): Use stack_delta instead of
3331 stack_pointer_pending and arg_size_so_far.
3332 (expand_call): Add sanity checking for stack_pointer_delta;
3333 save and restore stack_pointer_delta for SIB, use
3334 stack_pointer_delta for alignment; do not update arg_space_so_far.
3335 (emit_library_call_value): Use stack_pointer_delta for alignment.
3336 (store_one_arg): Do not update arg_space_so_far.
3337 * explow.c (adjust_stack, anti_adjust_stack): Update
3338 stack_pointer_delta.
3339 (allocate_dynamic_stack_space): Add sanity checking for
3340 stack_pointer_delta.
3341 * expr.c (init_expr, clear_pending_stack_adjust): Clear
3342 stack_pointer_delta.
3343 (emit_push_insn): Update stack_pointer_delta.
3344 * function.h (struct expr_status): Add x_stack_pointer_delta;
3345 remove x_arg_space_so_far.
3346 (arg_space_so_far): Remove.
3347 (stack_pointer_delta): New macro.
3348
3349 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
3350
3351 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
3352 Reorder struct cpp_options and struct cpp_reader for better
3353 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
3354 takes two args. Change all 'char' flags to 'unsigned char'.
3355 Move show_column flag into struct cpp_options. Don't
3356 prototype cpp_options_init.
3357 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
3358 cppinit.c, cpplex.c, cpplib.c:
3359 Replace CPP_OPTIONS (pfile)->whatever with
3360 CPP_OPTION (pfile, whatever), and likewise for
3361 opts = CPP_OPTIONS (pfile); ... opts->whatever;
3362
3363 * cppinit.c (merge_include_chains): Take a cpp_reader *.
3364 Extract CPP_OPTION (pfile, pending) and work with that
3365 directly.
3366 (cpp_options_init): Delete.
3367 (cpp_reader_init): Turn on on-by-default options here.
3368 Allocate the pending structure here.
3369 (cl_options, enum opt_code): Define these from the same table,
3370 kept in a large macro. Add -fshow-column and -fno-show-column
3371 options.
3372
3373 * cpperror.c (v_message): If show_column is off, don't print
3374 the column number.
3375
3376 * cppmain.c: Update for new interface.
3377 * fix-header.c: Likewise.
3378
3379 2000-03-30 Geoff Keating <geoffk@cygnus.com>
3380
3381 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
3382 definition.
3383 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
3384 are passed to any invocation of AR_FOR_TARGET.
3385 (AR_CREATE_FOR_TARGET): New macro.
3386 (AR_EXTRACT_FOR_TARGET): New macro.
3387 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
3388 AR_EXTRACT_FOR_TARGET.
3389 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
3390 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
3391 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
3392 AR_EXTRACT_FOR_TARGET to sub-makes.
3393
3394 2000-03-31 Neil Booth <NeilB@earthling.net>
3395
3396 * cppexp.c: Delete SKIP_OPERAND. Correct priority
3397 PAREN_INNER_PRIO.
3398 (_cpp_parse_expr): Check for multiple unary +/- operators.
3399 Correct priorities of ':' and '?'. Treat ')' as having a
3400 value. Ensure conditional expression is not void.
3401
3402 2000-03-31 Mark Mitchell <mark@codesourcery.com>
3403
3404 * alias.c (canon_rtx): Make it global.
3405 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
3406 equality.
3407 * cse.c (struct table_elt): Add canon_exp.
3408 (insert): Clear it.
3409 (invalidate): Canonicalize expressions only once.
3410 * rtl.h (canon_rtx): Declare.
3411
3412 2000-03-30 Mark Mitchell <mark@codesourcery.com>
3413
3414 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
3415 * alias.c (reg_known_value): Add comments.
3416 (init_alias_analysis): Likewise.
3417 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
3418 address.
3419 (cse_basic_block): Fix typo in comment.
3420 * emit-rtl.c: Include hashtab.h.
3421 (const_int_htab): New variable.
3422 (const_int_htab_hash): New function.
3423 (const_int_htab_eq): Likewise.
3424 (rtx_htab_mark_1): Likewise.
3425 (rtx_htab_mark): Likewise.
3426 (gen_rtx_CONST_INT): Cache all CONST_INTs.
3427 (unshare_all_rtx): Fix formatting.
3428 (init_emit_once): Initialize const_int_htab.
3429 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
3430 address.
3431 * rtl.texi: Document the fact that all CONST_INTs with the same
3432 value are shared.
3433
3434 2000-03-30 Richard Henderson <rth@cygnus.com>
3435
3436 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
3437
3438 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
3439
3440 * configure.in: Comment out --enable-c-cpplib stanza.
3441 * configure: Regenerate.
3442
3443 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3444
3445 * expr.c (store_constructor): Properly compute displacement and
3446 alignment when offset is variable.
3447
3448 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
3449 cases of alignment in bytes.
3450
3451 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
3452
3453 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
3454 since it is used to generate c-parse.y.
3455 * objc-parse.c, objc-parse.y: Regenerated.
3456
3457 * function.c (expand_function_end): Pass alignment argument to
3458 emit_block_move in bits, not bytes.
3459
3460 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3461
3462 * expr.c (move_by_pieces_ninsns): Fix one more missing align
3463 correction.
3464
3465 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
3466
3467 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
3468 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
3469 * function.c (assign_parms): Likewise.
3470 * integrate.c (expand_inline_function): Likewise.
3471 * stmt.c (expand_decl): Likewise.
3472 (copy_rtx_and_substitute): Likewise.
3473 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
3474 (clear_by_pieces): Fix error in last change.
3475 * emit-rtl.c (init_emit): Set known registers alignment in bits.
3476 * function.h (regno_pointer_align): Now unsigned.
3477 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
3478 is in bits.
3479 * config/i386/i386.c (aligned_operand): Likewise.
3480 * config/sparc/sparc.c (mem_min_alignment): Likewise.
3481 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
3482 (unaligned_memory_operand): Likewise.
3483 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
3484 Also make alignments and sizes unsigned and some whitespace cleanup.
3485 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
3486
3487 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
3488 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
3489 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3490 (expand_builtin_memset): Likewise, but to clear_storage.
3491 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
3492 (restore_fixed_argument_area): Likewise.
3493 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
3494 (load_register_parameters): Likewise, to emit_group_load.
3495 (expand_call): Likewise, to emit_group_store and emit_block_move.
3496 (emit_library_call_value_1): Likewise, to emit_block_move.
3497 (store_one_arg): Likewise, and to emit_push_insn.
3498 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
3499 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
3500 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
3501 (emit_block_move, emit_group_load, emit_group_store): Likewise.
3502 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
3503 (expand_assigment, store_expr, store_constructor_field): Likewise.
3504 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
3505 (store_constructor, store_field, get_inner_reference): Likewise.
3506 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
3507 (expand_expr, case COMPONENT_REF): Likewise.
3508 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
3509 and positions; reindent code.
3510 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
3511 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
3512 (assign_parms): Likewise to emit_group_store.
3513 * optabs.c (prepare_cmp_insn): Alignment is in bits.
3514 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
3515 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
3516 (expand_return): Likewise to {extract,store}_bit_field.
3517 * stor-layout.c (get_mode_alignment): Minor cleanup.
3518 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
3519 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
3520
3521 2000-03-29 Nick Clifton <nickc@cygnus.com>
3522
3523 * config/arm/arm.h: Undo effects of previous delta:
3524 (ASM_SPEC): Do not define.
3525 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
3526
3527 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
3528 typo.
3529
3530 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3531
3532 * cppinit.c (cpp_start_read): Call initialize_dependency_output
3533 only after reading in the primary source file.
3534
3535 2000-03-29 Geoff Keating <geoffk@cygnus.com>
3536
3537 * c-common.c (c_common_nodes_and_builtins): The first parameter to
3538 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
3539 or a reference to a va_list.
3540 * builtins.c (stabilize_va_list): Simplify now we don't have to
3541 work around C array address decay.
3542 * c-typeck.c (convert_for_assignment): Handle assignment to
3543 a reference parameter by taking the address of the RHS.
3544 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
3545 (va_copy): Likewise.
3546 (__va_copy): Likewise.
3547 * ginclude/varargs.h (va_start): Likewise.
3548 (__va_copy): Likewise.
3549
3550 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
3551
3552 * i386/djgpp.h: Remove extraneous "+".
3553
3554 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
3555
3556 * calls.c (expand_call): Fix typo in last change.
3557
3558 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
3559
3560 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
3561 been expanded.
3562
3563 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3564
3565 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
3566 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
3567 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
3568 * tree.c (bit_position, byte_position): Likewise.
3569 * tree.h: Declare new functions.
3570
3571 2000-03-29 Nick Clifton <nickc@cygnus.com>
3572
3573 * config/arm/arm.c: Minor formatting changes/
3574 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
3575 already defined.
3576 (ASM_SPEC): Define if not already defined.
3577
3578 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3579
3580 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
3581 _cpp_calc_hash.
3582
3583 2000-03-29 Jakub Jelinek <jakub@redhat.com>
3584
3585 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
3586 value, don't output it as unsigned.
3587
3588 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
3589
3590 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
3591
3592 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3593
3594 * c-common.c (c_common_nodes_and_builtins): Don't special case
3595 cplus_mode when declaring builtin bzero/bcmp, always avoid
3596 prototype arguments.
3597
3598 2000-03-29 Bruce Korb <bkorb@gnu.org>
3599
3600 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
3601 to a non-file
3602
3603 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
3604
3605 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
3606 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
3607 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
3608 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
3609 (save_fixed_argument_area, restore_fixed_argument_area):
3610 conditionize by #ifdef REG_PARM_STACK_SPACE only.
3611 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
3612 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
3613 (precompute_register_parameters): Avoid #ifdefs on
3614 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
3615 (stire_one_args): Likewise.
3616 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
3617 (emit_library_call_value_1): Likewise.
3618 (compute_argument_block_size): Align to STACK_BOUNDARY only for
3619 ACCUMULATE_OUTGOING_ARGS.
3620 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
3621 value.
3622 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
3623 (use_crosses_set_p): Likewise.
3624 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
3625 #define ACCUMULATE_OUTGOING_ARGS 1.
3626 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
3627 frames.
3628 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
3629 constants.
3630 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
3631 (TARGET_SWITCHES): Add push-args, no-push-args,
3632 accumulate-outgoing-args and no-accumulate-outgoing-args.
3633 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
3634 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
3635 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
3636 and PUSH_ROUNDING.
3637 (emit_push_insn): Likewise.
3638 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
3639 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
3640 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
3641 (STACK_DYNAMIC_OFFSET): Define correctly for both
3642 ACCUMULATE_OUTGOING_ARGS and normal mode.
3643 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
3644 * tm.texi (PUSH_ARGS): Document.
3645 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
3646
3647 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
3648
3649 * flags.h (flag_optimize_sibling_calls): Declare.
3650 * calls.c (expand_call): Fail sibcall when
3651 !flag_optimize_sibling_calls
3652 * invoke.texi (flag_optimize_sibling_calls): Document.
3653 * toplev.c (flag_optimize_sibling_calls): New global variable.
3654 (f_options): Add flag_optimize_sibling_calls.
3655 (rest_of_compilation): Conditionize
3656 optimize_sibling_and_tail_recursive_calls by
3657 flag_optimize_sibling_calls.
3658 (main): Set flag_optimize_sibling_calls for -O2.
3659 * stmt.c (expand_return): Conditionize tail recursion by
3660 flag_optimize_sibling_calls.
3661
3662 2000-03-29 Richard Henderson <rth@cygnus.com>
3663
3664 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
3665 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
3666
3667 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
3668
3669 * except.c (add_eh_table_entry): Mark type_info's as referenced.
3670
3671 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3672
3673 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
3674 is given.
3675 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
3676 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
3677 * config/rs6000/aix.h: then modified likewise.
3678
3679 2000-03-28 Richard Henderson <rth@cygnus.com>
3680
3681 * rtl.h: Redistribute enum reg_note documentation.
3682 Kill trailing whitespace.
3683 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
3684 Kill trailing whitespace.
3685
3686 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
3687
3688 * cppfiles.c (hash_IHASH): Just return i->hash.
3689 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
3690 htab_find_with_hash.
3691 (cpp_read_file): Likewise.
3692 (find_include_file): Likewise. Properly initialize
3693 ih->nshort. Share ih->name and ih->nshort if possible.
3694 * cpphash.c (_cpp_calc_hash): New function.
3695 (hash_HASHNODE): Just return h->hash.
3696 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
3697 htab_find_with_hash.
3698 * cpphash.h: Prototype _cpp_calc_hash.
3699 * cppinit.c (initialize_builtins): Provide a valid hash
3700 to _cpp_make_hashnode, using _cpp_calc_hash.
3701
3702 * cpphash.c (collect_expansion): # is not a special character
3703 in object-like macros. In -traditional mode, /**/ is not
3704 token paste at the beginning or end of the line.
3705 * cpplib.c (do_include, do_import, do_include_next): If
3706 parse_include fails, return immediately.
3707
3708 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
3709
3710 * config/arm/arm.md (return peepholes): Update to reflect the new
3711 call insn patterns.
3712 * config/arm/arm.c (arm_volatile_func): Also check
3713 current_function_nothrow.
3714 (output_return_instruction, output_func_prologue): Use it.
3715 (arm_output_epilogue, arm_expand_prologue): Likewise.
3716
3717 2000-03-27 Tom Tromey <tromey@cygnus.com>
3718
3719 * gcc.c (handle_braces): In {x*...} case, break out of loop if
3720 switch is found.
3721
3722 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3723
3724 * expr.c (store_constructor): SIZE now signed.
3725 For EXPR_SIZE, don't evaluate size; just needed if constant.
3726 * fold-const.c (fold): Fix a number of cases when folded tree is
3727 wrong type.
3728 * function.c (flush_addressof): Reenable.
3729 * tree.h (flush_addressof): Likewise.
3730 * toplev.c (independent_decode_option): Look at strings_processed.
3731 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
3732
3733 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
3734
3735 * sibcall.c (indentify_call_return_value): Find last call in the chain;
3736 Allow stack adjustment after function call.
3737
3738 * regmove.c (struct csa_memlist): Make mem field rtx *.
3739 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
3740 (try_apply_stack_adjustment): Replace whole MEM rtx.
3741 (combine_stack_adjustments_for_block): Update calls
3742 to record_one_stack_ref.
3743
3744 2000-03-28 Neil Booth <NeilB@earthling.net>
3745
3746 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
3747 '\\' rather than a null character, so nulls are not special. Fix
3748 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
3749 speed trigraph conversion.
3750 (_cpp_init_input_buffer): Initialize trigraph map.
3751
3752 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3753
3754 * config/i386/i386.c (output_387_binary_op): Correct intel
3755 mode assembly output, and add spaces after commas in AT&T
3756 output. Correct Unixware assembler comment. Document input
3757 constraints. Comment fp operations. Reduce profligate buffer
3758 size. Remove extraneous abort. Localize temp var.
3759 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
3760 (output_fix_trunc): Add spaces after commas in assembly output.
3761
3762 2000-03-27 Richard Henderson <rth@cygnus.com>
3763
3764 * i386-protos.h (ix86_match_ccmode): Declare.
3765 * i386.c (ix86_match_ccmode): New.
3766 (ix86_expand_fp_compare): Update for pattern renames.
3767 (ix86_expand_strlensi_unroll_1): Likewise.
3768 * i386.h (EXTRA_CC_MODES): Add CCZ.
3769 (SELECT_CC_MODE): Use it for EQ/NE zero.
3770 * i386.md (cmpsi_ccz_1): New.
3771 (cmpqi_ccz_1): New.
3772 (*testsi_ccz_1): New.
3773 (testqi_ccz_1): New.
3774 (cmpsi_ccno_1): Rename from cmpsi_0.
3775 (testsi_ccno_1): Rename from testsi_1.
3776 (testqi_ccno_1): Rename from testqi_1.
3777 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
3778 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
3779 (*cmphi_0): Use ix86_match_ccmode.
3780 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
3781 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
3782 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
3783 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
3784 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
3785 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
3786 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
3787 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
3788 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
3789 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
3790 (appropriate peepholes): Likewise.
3791 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
3792 (*subsi_3, *subhi_3, *subqi_3): Remove.
3793 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
3794 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
3795 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
3796 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
3797 (x86_shift_adj_1): Use CCZ.
3798 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
3799
3800 2000-03-27 Stan Cox <scox@cygnus.com>
3801
3802 * resource.h (mark_resource_type): New.
3803 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
3804 find_free_register): Use mark_resource_type.
3805 (mark_set_resources): Change include_delayed_effects
3806 to mark_resource_type.
3807 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
3808 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
3809 Use mark_resource_type.
3810
3811 2000-03-27 Richard Henderson <rth@cygnus.com>
3812
3813 * i386.md (call_pop_0, call_value_pop_0): New.
3814 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
3815 (call_value_pop_1): Likewise.
3816 (call_0, call_value_0): New.
3817 (call_1, call_value_1): Remove constraint from unused arg.
3818
3819 2000-03-27 Nick Clifton <nickc@cygnus.com>
3820
3821 * invoke.texi (Spec Files): Document new spec % command created by
3822 Tom Tromey's recent patch.
3823
3824 2000-03-27 Jakub Jelinek <jakub@redhat.com>
3825
3826 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
3827 if not defined.
3828
3829 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3830
3831 * expr.c (expand_assignment): Fix typo in last change.
3832
3833 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
3834
3835 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3836
3837 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
3838 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
3839 and DECL_INLINE if FUNCTION_DECL.
3840 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
3841 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
3842 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
3843 (combine_parm_decls): Likewise.
3844 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
3845 * print-tree.c (print_node): Likewise.
3846 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
3847 DECL_TRANSPARENT_UNION on proper decl types.
3848 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
3849 * stor-layout.c (layout_decl): Only check DECL_PACKED and
3850 DECL_BIT_FIELD of FIELD_DECL.
3851 * tree.h (DECL_RESULT_FLD): New macro.
3852
3853 * expr.c (expand_assignment): Add code to handle variable-sized
3854 BLKmode case.
3855
3856 2000-03-26 Richard Henderson <rth@cygnus.com>
3857
3858 * calls.c (expand_call): Pass parms not original exp to
3859 optimize_tail_recursion. Mind return value instead of looking
3860 for a barrier.
3861 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
3862 call_expr. Move checks for call_expr and current_function_decl ...
3863 (expand_return): ... here.
3864
3865 2000-03-26 Tom Tromey <tromey@cygnus.com>
3866
3867 * gcc.c (handle_braces): Recognize `%{<S}' construct.
3868 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
3869 defines.
3870 (process_command): Use them.
3871 (check_live_switch): Likewise.
3872 (give_switch): Skip ignored switches.
3873
3874 2000-03-26 Jan Hubicka <jh@suse.cz>
3875
3876 * jump.c (jump_optimize_1): Fix typo in elide optimizations
3877 for minimal jump pass test.
3878
3879 2000-03-26 Mark Mitchell <mark@codesourcery.com>
3880
3881 * integrate.c (function_cannot_inline_p): Do inline functions that
3882 return `void'.
3883
3884 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3885
3886 * stor-layout.c (layout_type, set_sizetype): early_type_list is
3887 now a list of TREE_LIST entries, not types.
3888 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
3889
3890 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
3891 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
3892 int_bit_position.
3893 * config/mips/mips.c (function_arg): Likewise; also remove cast
3894 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
3895 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
3896 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
3897 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
3898 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
3899 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
3900 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
3901 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
3902 num_adjusts now unsigned.
3903 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
3904 * config/sparc/sparc.c (struct function_arg_record_value_parms):
3905 NREGS now unsigned.
3906 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
3907 as is BITPOS variable; use host_integerp and int_bit_position.
3908 (function_arg_record_value_2): Likewise.
3909 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
3910 Variable REGNO now unsigned.
3911 (function_arg_record_value): NREGS now unsigned.
3912
3913 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
3914
3915 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
3916
3917 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3918
3919 * Rework fields used to describe positions of bitfields and
3920 modify sizes to be unsigned and use HOST_WIDE_INT.
3921 * alias.c (reg_known_value_size): Now unsigned.
3922 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
3923 (really_start_incremental_init): Use bitsize_zero_node.
3924 (push_init_level, pop_init_level, output_init_element): Likewise.
3925 Use bitsize_unit_node and bitsize_one_node.
3926 (output_pending_init_elements, process_init_element): Likewise.
3927 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
3928 (make_extraction): Position and length HOST_WIDE_INT and unsigned
3929 HOST_WIDE_INT, respectively.
3930 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
3931 (num_sign_bit_copies): Returns unsigned.
3932 BITWIDTH now unsigned; rework arithmetic.
3933 Remove recursive call from arg to MAX.
3934 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
3935 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
3936 REGNO now unsigned.
3937 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
3938 (find_split_point, expand_compound_operation, make_extraction): LEN
3939 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
3940 (make_field_assignment): Likewise.
3941 (combine_simplify_rtx): Add cast.
3942 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
3943 (force_to_mode): WIDTH now unsigned; add cast.
3944 (if_then_else_cond): SIZE now unsigned.
3945 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
3946 (extended_count): Now returns unsigned.
3947 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
3948 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
3949 (simplify_comparison): MODE_WIDTH now unsigned.
3950 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
3951 (mark_used_regs_combine): Likewise; rework arithmetic.
3952 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
3953 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
3954 (record_promoted_value): REGNO now unsigned.
3955 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
3956 (get_last_value): REGNO now unsigned.
3957 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
3958 (reg_dead_regno, reg_dead_endregno): Now unsigned.
3959 (remove_death): Arg REGNO now unsigned.
3960 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
3961 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
3962 now unsigned.
3963 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
3964 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
3965 (struct cse_reg_info): REGNO now unsigned.
3966 (cached_regno): Now unsigned.
3967 (REGNO_QTY_VALID_P): Add cast.
3968 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
3969 (remove_invalid_regs): Likewise.
3970 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
3971 as are variables END and I.
3972 (get_cse_reg_info, insert): Likewise.
3973 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
3974 (canon_hash): Likewise.
3975 (insert_regs, lookup_for_remove): REGNO now unsigned.
3976 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
3977 New variable RN.
3978 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
3979 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
3980 * emit-rtl.c (subreg_realpart_p): Add cast.
3981 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
3982 (operand_subword_force): Arg I is now unsigned.
3983 * except.c (eh_regs): Variable I is now unsigned.
3984 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
3985 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
3986 length is unsigned HOST_WIDE_INT; likewise for internal variables.
3987 (store_split_bit_field, extract_fixed_bit_field): Likewise.
3988 (extract_split_bit_field, store_bit_field, extract_bit_field):
3989 Likewise.
3990 * expr.c (store_constructor_fields, store_constructor, store_field):
3991 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
3992 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
3993 (do_jump): Likewise.
3994 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
3995 MAX_SIZE is now unsigned.
3996 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
3997 (emit_group_store): Likewise.
3998 (emit_move_insn): I now unsigned.
3999 (store_constructor): Use host_integerp, tree_low_cst, and
4000 bitsize_unit_node.
4001 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
4002 Rework all calculations to use trees and new fields.
4003 * expr.h (promoted_input_arg): Regno now unsigned.
4004 (store_bit_field, extract_bit_field): Adjust types of pos and size.
4005 (mark_seen_cases): Arg is HOST_WIDE_INT.
4006 * flow.c (verify_wide_reg_1): REGNO now unsigned.
4007 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
4008 precisions and alignments are unsigned.
4009 (optimize_bit_field_compare, fold_truthop): Likewise.
4010 (int_const_binop): Adjust threshold for size_int_type_wide call.
4011 (fold_convert): Likewise.
4012 (size_int_type_wide): Make table larger and fix thinko that only
4013 had half of table used.
4014 (all_ones_mask_p, fold): Precisions are unsigned.
4015 * function.c (put_reg_info_stack): REGNO is unsigned.
4016 (instantiate_decl): Size is HOST_WIDE_INT.
4017 (instantiate_virtual_regs): I is unsigned.
4018 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
4019 (promoted_input_arg): REGNO is unsigned.
4020 * function.h (struct function): x_max_parm_reg is now unsigned.
4021 * gcse.c (max_gcse_regno): Now unsigned.
4022 (struct null_pointer_info): min_reg and max_reg now unsigned.
4023 (lookup_set, next_set): REGNO arg now unsigned.
4024 (compute_hash_table): REGNO and I now unsigned.
4025 (handle_avail_expr): regnum_for_replacing now unsigned.
4026 (cprop_insn): REGNO now unsigned.
4027 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
4028 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
4029 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
4030 * hard-reg-set.h (reg_class_size): Now unsigned.
4031 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
4032 * jump.c (mark_modified_reg): I now unsigned; add cast.
4033 (rtx_equal_for_thread_p): Add cast.
4034 * loop.c (max_reg_before_loop): Now unsigned.
4035 (struct_movable): REGNO now unsigned.
4036 (try_copy_prop): REGNO arg unsigned.
4037 (regs_match_p): XN and YN now unsigned.
4038 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
4039 (strength_reduce): Likewise; NREGS also unsigned.
4040 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
4041 * loop.h (struct iv_class): REGNO now unsigned.
4042 (max_reg_before_loop, first_increment_giv, last_increment_giv):
4043 Now unsigned.
4044 * machmode.h (mode_size, mode_unit_size): Now unsigned.
4045 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
4046 * optabs.c (expand_binop): I and NWORDS now unsigned.
4047 (expand_unop): I now unsigned.
4048 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
4049 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
4050 * real.c (significand_size): Now returns unsigned.
4051 * real.h (significand_size): Likewise.
4052 * regclass.c (reg_class_size): Now unsigned.
4053 (choose_hard_reg_mode): Both operands now unsigned.
4054 (record_reg_classes): REGNO and NR now unsigned.
4055 (reg_scan): NREGS now unsigned.
4056 (reg_scan_update): old_max_regno now unsigned.
4057 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
4058 * reload.c (find_valid_class): BEST_SIZE now unsigned.
4059 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
4060 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
4061 Likewise for variable R.
4062 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
4063 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
4064 (find_equiv_reg): Add casts.
4065 (regno_clobbered_p): Arg REGNO now unsigned.
4066 * reload.h (struct reload): NREGS now unsigned.
4067 (refers_to_regno_for_reload_p): Regno args are unsigned.
4068 (regno_clobbered_p): Likewise.
4069 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
4070 (compute_use_by_pseudos): REGNO now unsigned.
4071 (find_reg): I and J now unsigned, new variable K, and change loop
4072 variables accordingly; THIS_NREGS now unsigned.
4073 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
4074 (spill_hard_reg): REGNO arg now unsigned; add casts.
4075 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
4076 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
4077 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
4078 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
4079 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
4080 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
4081 (emit_reload_insns): REGNO now unsigned.
4082 (reload_cse_move2add): Add cast.
4083 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
4084 and rework loop.
4085 * resource.c (mark_referenced_resources, mark_set_resources): New
4086 variable R; REGNO and LAST_REGNO now unsigned.
4087 (mark_target_live_regs): J and REGNO now unsigned.
4088 * rtl.c (mode_size, mode_unit_size): Now unsigned.
4089 * rtl.h (union rtunion_def): New field rtuint.
4090 (XCUINT): New macro.
4091 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
4092 (operand_subword, operand_subword_force): Word number is unsigned.
4093 (choose_hard_reg_mode): Operands are unsigned.
4094 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
4095 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
4096 (regno_use_in, combine_instructions, remove_death): Likewise.
4097 (reg_scan, reg_scan_update): Likewise.
4098 (extended_count): Return is unsigned.
4099 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
4100 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
4101 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
4102 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
4103 (reg_reg_last_1): FIRS and LAST now unsigned.
4104 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
4105 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
4106 now unsigned.
4107 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
4108 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
4109 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
4110 (replace_regs): Arg NREGS now unsigned.
4111 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
4112 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
4113 (simplify_binary_operation): Likewise.
4114 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
4115 THIS_LAST now unsigned.
4116 (cselib_record_set): Add cast.
4117 * ssa.c (ssa_max_reg_num): Now unsigned.
4118 (rename_block): REGNO now unsigned.
4119 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
4120 sizes now unsigned.
4121 (all_cases_count): Just return -1 not -2.
4122 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
4123 Rework tests to use trees whenever possible.
4124 Use host_integerp and tree_low_cst.
4125 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
4126 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
4127 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
4128 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
4129 (smallest_mode_for_size): Likewise.
4130 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
4131 KNOWN_ALIGN is now an alignment, so simplify code.
4132 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
4133 (start_record_layout): Renamed from new_record_layout_info.
4134 Update to new fields.
4135 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
4136 New functions.
4137 (place_union_field): Renamed from layout_union_field.
4138 Update to use new fields in rli.
4139 (place_field): Renamed from layout_field.
4140 Major rewrite to use new fields in rli; pass alignment to layout_decl.
4141 (finalize_record_size): Rework to use new fields in rli and handle
4142 union.
4143 (compute_record_mode): Rework to simplify and to use new DECL fields.
4144 (finalize_type_size): Make rounding more consistent.
4145 (finish_union_layout): Deleted.
4146 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
4147 (layout_type, case RECORD_TYPE): Call new function names.
4148 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
4149 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
4150 (get_best_mode): UNIT is now unsigned; remove casts.
4151 * tree.c (bit_position): Compute from new fields.
4152 (byte_position, int_byte_position): New functions.
4153 (print_type_hash_statistics): Cast to remove warning.
4154 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
4155 (build_index_type): Likewise; make subtype of sizetype.
4156 (build_index_2_type): Pass sizetype to build_range_type.
4157 (build_common_tree_nodes): Use size_int and bitsize_int to
4158 initialize nodes; add bitsize_{zero,one,unit}_node.
4159 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
4160 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
4161 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
4162 (DECL_FIELD_BITPOS): Deleted.
4163 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
4164 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
4165 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
4166 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
4167 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
4168 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
4169 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
4170 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
4171 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
4172 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
4173 (DECL_ALIGN): Adjust to new field in union.
4174 (DECL_OFFSET_ALIGN): New field.
4175 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
4176 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
4177 (union tree_decl): Add struct for both aligns.
4178 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
4179 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
4180 (struct record_layout_info): Rework fields to have offset
4181 alignment and byte and bit position.
4182 (start_record_layout, place_field): Renamed from old names.
4183 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
4184 (byte_position, int_byte_position): Likewise.
4185 (get_inner_reference): Change types of position and length.
4186 * unroll.c (unroll_loop): New variable R; use for some loops.
4187 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
4188 (calculate_giv_inc): Arg REGNO now unsigned.
4189 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
4190 * varasm.c (assemble_variable): Clean up handling of size using
4191 host_integerp and tree_low_cst.
4192 (decode_addr_const): Use byte, not bit, position.
4193 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
4194 use tree_low_cst and int_bit_position.
4195 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
4196
4197 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
4198
4199 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
4200 (reorder_block_def): New members eff_head and eff_end.
4201 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
4202 (verify_insn_chain): New function.
4203 (skip_insns_between_block): Add code to skip deleted insns.
4204 Check for note before using.
4205 (chain_reorder_blocks): Replace calls to skip_insns_between_block
4206 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
4207 Check for note before using.
4208 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
4209 (fixup_reorder_chain): Restructure, clean up, defect removal.
4210 (reorder_basic_blocks): Remove last_insn and references to it.
4211 Moved insn chain verification code into a new function (see above).
4212 Delete defective code that sets last insn.
4213 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
4214 all blocks.
4215
4216 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4217
4218 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
4219
4220 2000-03-24 Richard Henderson <rth@cygnus.com>
4221
4222 * tree.c (lang_safe_for_unsave): Remove.
4223 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
4224 allowing for two levels of unsafeness. Remove lang hook.
4225 * tree.h: Update declarations.
4226 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
4227 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
4228 Always fail sibcalls when there are pending cleanups.
4229
4230 2000-03-24 Geoff Keating <geoffk@cygnus.com>
4231
4232 * flow.c (propagate_block): When we delete an ADDR_VEC,
4233 also delete the BARRIER following it if there is one.
4234
4235 2000-03-24 Richard Henderson <rth@cygnus.com>
4236
4237 * builtins.c (expand_builtin_bzero): Convert `length' argument
4238 to sizetype.
4239
4240 2000-03-24 Jakub Jelinek <jakub@redhat.com>
4241
4242 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
4243 comparison if regno's are equal.
4244 * calls.c (initialize_argument_informat): Add ecf_flags argument.
4245 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
4246 (expand_call): Update caller.
4247 Avoid making a sibling call if argument size of the callee is larger
4248 than argument size of the caller.
4249 Call hard_function_value with outgoing set if in sibcall pass.
4250 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
4251
4252 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
4253 Change LEAF_REGISTERS from an array initializer to actual array
4254 identifier. Move static global variable into the function.
4255 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
4256 sequences for leaf functions.
4257 * global.c (global_alloc): Likewise.
4258 * tm.texi (LEAF_REGISTERS): Update documentation.
4259
4260 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
4261 TARGET_FLAT leaf disabling hack.
4262 (LEAF_REGISTERS): Changed from an array initializer to actual array
4263 identifier to avoid duplication and remove the above hack.
4264 (FUNCTION_OK_FOR_SIBCALL): Define.
4265 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
4266 always like call attribute.
4267 (eligible_for_sibcall_delay): New attribute.
4268 (sibcall): New delay type.
4269 (sibcall, sibcall_value, sibcall_epilogue): New expands.
4270 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
4271 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
4272 * config/sparc/sparc.c (sparc_leaf_regs): New array.
4273 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
4274 New functions.
4275 (output_function_epilogue): Move part of the code into
4276 output_restore_regs.
4277 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
4278 TYPE_SIBCALL.
4279 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
4280 prototypes.
4281
4282 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
4283 until infrastructure is finished.
4284
4285 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
4286
4287 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
4288 (save_parm_insns): Not here.
4289
4290 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4291
4292 * builtins.c (expand_builtin_bzero): New function.
4293 (expand_builtin): Handle bzero.
4294
4295 * builtins.def: Add BUILT_IN_BZERO.
4296
4297 * c-common.c (c_common_nodes_and_builtins): Provide builtin
4298 prototype & function for bzero.
4299
4300 2000-03-23 Michael Meissner <meissner@redhat.com>
4301
4302 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
4303 change adding TARGET_FP to the TF floating point insns, except for
4304 trunctfsf2, which generates direct calls to truncdfsf2.
4305
4306 2000-03-23 Geoff Keating <geoffk@cygnus.com>
4307
4308 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
4309 try to protect against middle-end changes that break binary
4310 compatibility.
4311 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
4312
4313 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4314
4315 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
4316
4317 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4318
4319 * calls.c (expand_call): If TARGET is passed by reference and
4320 is readonly, write a CLOBBER.
4321
4322 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4323
4324 * builtins.c (expand_builtin): Handle bcmp.
4325
4326 * builtins.def: Add BUILT_IN_BCMP.
4327
4328 * c-common.c (c_common_nodes_and_builtins): Provide builtin
4329 prototype & function for bcmp.
4330
4331 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
4332
4333 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
4334 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
4335 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
4336
4337 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
4338
4339 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
4340 alternative when using -fp64 -gp32.
4341
4342 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
4343
4344 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
4345 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
4346 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
4347
4348 * frame.h (frame_state): Revert last change.
4349 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
4350 * libgcc2.c (throw_helper): Revert last change.
4351
4352 2000-03-22 Richard Henderson <rth@cygnus.com>
4353
4354 * stmt.c (expand_asm_operands): Don't promote the temporary.
4355
4356 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4357
4358 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
4359 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
4360 c_get_alias_set): Likewise.
4361 * c-decl.c (duplicate_decls): Likewise.
4362 * c-typeck.c (default_conversion,build_unary_op): Likewise.
4363 * calls.c (initialize_argument_information): Likewise.
4364 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
4365 Likewise.
4366 * dwarfout.c (decl_class_context,output_type): Likewise.
4367 * expr.c (get_inner_reference): Likewise.
4368 * fold-const.c (simple_operand_p,fold): Likewise.
4369 * function.c (aggregate_value_p): Likewise.
4370 * stmt.c (expand_asm_operands): Likewise.
4371 * varasm.c (named_section): Likewise.
4372
4373 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
4374
4375 Implement dwarf2 exception handling for the ARM.
4376 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
4377 (DWARF_FRAME_RETURN_COLUMN): Define.
4378 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
4379 REG_FRAME_RELATED_EXPR note.
4380 (emit_sfm): Likewise.
4381 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
4382 * dwarf2out.c (reg_save): Handle saving a register to itself.
4383 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
4384 * except.c (eh_regs): Don't use the static chain reg if it's
4385 callee-saved.
4386 * frame.h (frame_state): Add cfa_saved field.
4387 * frame.c (execute_cfa_insn): Set it.
4388 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
4389 the epilogue.
4390 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
4391 Now takes a parm.
4392 (instantiate_virtual_regs): Adjust.
4393 * tm.texi: Adjust.
4394 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
4395 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
4396 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
4397
4398 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
4399 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
4400
4401 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4402
4403 * builtins.def: New file.
4404
4405 * Makefile.in (TREE_H): Depend on builtins.def.
4406
4407 * builtins.c (built_in_names): Use builtins.def.
4408
4409 * tree.h (built_in_function): Likewise.
4410
4411 2000-03-22 Mark Mitchell <mark@codesourcery.com>
4412
4413 * tree.c (size_in_bytes): Return size_zero_node, not
4414 integer_zero_node.
4415
4416 2000-03-22 Geoff Keating <geoffk@cygnus.com>
4417
4418 * config/fp-bit.c (pack_d): Correct the case when a denormal
4419 is rounded up and stops being denormal.
4420
4421 2000-03-21 Richard Henderson <rth@cygnus.com>
4422
4423 * config/alpha/alpha.c (function_arg): Check for void_type_node
4424 before using MUST_PASS_IN_STACK.
4425
4426 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
4427
4428 * regmove.c (combine_stack_adjustments_for_block): Check that
4429 the stack pointer is a valid memory address.
4430
4431 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
4432
4433 * calls.c: re-install Mar 16 emit_library_call merge.
4434
4435 2000-03-21 Jakub Jelinek <jakub@redhat.com>
4436
4437 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
4438 we cannot be sure that if reload_completed base register will
4439 be properly aligned.
4440
4441 2000-03-21 Richard Henderson <rth@cygnus.com>
4442
4443 * flow.c (delete_block): Fix typo last change.
4444
4445 2000-03-21 Mark Mitchell <mark@codesourcery.com>
4446
4447 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
4448 not COMPLETE_TYPE_P, to check the type of the expression.
4449
4450 2000-03-21 Michael Meissner <meissner@redhat.com>
4451
4452 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
4453 all floating point insns that just tested the macro
4454 TARGET_HAS_XFLOATING_LIBS.
4455 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
4456 used to only use the gprs.
4457
4458 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
4459
4460 * tree.h (COMPLETE_TYPE_P): New macro.
4461 (COMPLETE_OR_VOID_TYPE_P): New macro.
4462 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
4463 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
4464 * c-aux-info.c (gen_type): Use them.
4465 * c-common.c (c_expand_expr_stmt): Likewise.
4466 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
4467 grokdeclarator, grokparms, finish_struct, start_function,
4468 store_parm_decls, combine_parm_decls): Likewise.
4469 * c-parse.y (cast_expr): Likewise.
4470 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
4471 c_size_in_bytes, c_alignof, build_component_ref,
4472 build_indirect_ref, build_array_ref, convert_arguments,
4473 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
4474 * calls.c (initialize_argument_information): Likewise.
4475 * convert.c (convert_to_integer): Likewise.
4476 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
4477 * dwarfout.c (location_or_const_value_attribute,
4478 output_enumeration_type_die, output_structure_type_die,
4479 output_union_type_die, output_type): Likewise.
4480 * expr.c (safe_from_p, expand_expr): Likewise.
4481 * function.c (assign_parms): Likewise.
4482 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
4483 * tree.c (build_array_type, build_function_type,
4484 build_method_type, build_offset_type, build_complex_type): Likewise.
4485 * c-parse.c, c-parse.h: Regenerated.
4486
4487 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4488
4489 * config/c4x/rtems.h: Include config/rtems.h.
4490
4491 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
4492
4493 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
4494 decl is a FUNCTION_DECL
4495
4496 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
4497
4498 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
4499 function uses output registers. Don't save RP for leaf functions.
4500 Do save RP even if no epilogue.
4501 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
4502 (CALL_USED_REGISTERS): Unmark in registers.
4503 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
4504 to near the middle.
4505
4506 2000-03-20 Geoff Keating <geoffk@cygnus.com>
4507
4508 * config/rs6000/rs6000.md (bunordered): New expander.
4509 (bordered): New expander.
4510 (buneq): New expander.
4511 (bunge): New expander.
4512 (bungt): New expander.
4513 (bunle): New expander.
4514 (bunlt): New expander.
4515 (bltgt): New expander.
4516
4517 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
4518 (ccr_bit_negated_p): New function.
4519 (print_operand): For %C, generate appropriate cror for UNEQ,
4520 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
4521
4522 2000-03-20 Andreas Jaeger <aj@suse.de>
4523
4524 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
4525 warning.
4526
4527 * tree.h (safe_for_unsave): Prototype.
4528
4529 2000-03-20 Richard Henderson <rth@cygnus.com>
4530
4531 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
4532 (combine_stack_adjustments_for_block): Don't allow sp references
4533 in the side of a set we're not fixing up.
4534 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
4535 after life_analysis.
4536
4537 2000-03-20 Richard Henderson <rth@cygnus.com>
4538
4539 * calls.c (expand_call): Don't bother generating tail call
4540 sequences if there are pending cleanups. Use
4541 expand_start_target_temps/expand_end_target_temps to elide
4542 cleanups created during sibcall expansion.
4543
4544 2000-03-20 Geoff Keating <geoffk@cygnus.com>
4545
4546 * configure.in: Set $IFS to a value if it doesn't already have one
4547 in the --enable-checking handling.
4548 * configure: Regenerate.
4549
4550 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4551
4552 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
4553 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
4554 Regenerated.
4555
4556 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
4557
4558 * jump.c (delete_noop_moves): Remove code attempting to
4559 combine stack adjustments.
4560
4561 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4562
4563 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
4564 * except.c (emit_cleanup_handler): Use them.
4565 (expand_end_all_catch): Likewise.
4566 * function.c (fixup_var_refs): Likewise.
4567 (expand_function_end): Clear catch_clauses_last.
4568 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
4569 * except.h (struct eh_status): New field x_catch_clauses_last.
4570 (catch_clauses_last): New define.
4571
4572 * Makefile.in (tree.o): Depend on HASHTAB_H.
4573 * tree.c: Include hashtab.h.
4574 (struct type_hash): Remove next field.
4575 (TYPE_HASH_SIZE): Remove.
4576 (TYPE_HASH_INITIAL_SIZE): New define.
4577 (type_hash_table): Change type to htab_t.
4578 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
4579 mark_hash_entry): New functions.
4580 (init_obstacks): Allocate type hash.
4581 (type_hash_lookup): Use htab functions.
4582 (type_hash_add, mark_type_hash): Likewise.
4583 (dump_tree_statistics): Call print_type_hash_statistics.
4584
4585 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4586
4587 * rs6000/t-aix41: New file.
4588
4589 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
4590
4591 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
4592
4593 * tm.texi (Driver): Fix typos and tweak entry for
4594 INCLUDE_DEFAULTS.
4595 Move misplaced STRUCT_FORCE_BLK entry ...
4596 (Storage Layout): ... to here.
4597 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
4598
4599 2000-03-19 Richard Henderson <rth@cygnus.com>
4600
4601 * flow.c (delete_block): Delete the addr_vec along with the block.
4602 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
4603 reference labels.
4604
4605 * fold-const.c (extract_muldiv): Apply type check for defined
4606 overflow to multiply as well as divide.
4607
4608 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
4609
4610 2000-03-18 Mark Mitchell <mark@codesourcery.com>
4611
4612 * emit-rtl.c (remove_unncessary_notes): Check that all
4613 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
4614 associated NOTE_BLOCK.
4615 * function.h (identify_blocks): Update comments.
4616 (reorder_blocks): Declare.
4617 * function.c (identify_blocks): Don't take paramters.
4618 (reorder_blocks): Don't take parameters.
4619 * loop.h (find_loop_tree_blocks): Remove.
4620 (unroll_block_trees): Likewise.
4621 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
4622 reorder_blocks instead of unroll_block_trees.h
4623 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
4624 * stmt.c (find_loop_tree_blocks): Remove.
4625 (unroll_block_trees): Likewise.
4626 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
4627 in whole-function mode.
4628 * tree.h (reorder_blocks): Remove declaration.
4629
4630 * expr.c: Include intl.h.
4631 * Makefile.in (expr.o): Depend on intl.h.
4632
4633 2000-03-18 Richard Henderson <rth@cygnus.com>
4634
4635 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
4636
4637 2000-03-18 Mark Mitchell <mark@codesourcery.com>
4638
4639 * tree.h (tree_index): Remove enumerals for integer types.
4640 (integer_type_kind): New type.
4641 (integer_types): New variable.
4642 (char_type_node): Adjust.
4643 (signed_char_type_node): Likewise.
4644 (unsigned_char_type_node): Likewise.
4645 (short_integer_type_node): Likewise.
4646 (short_unsigned_type_node): Likewise.
4647 (integer_type_node): Likewise.
4648 (unsigned_type_node): Likewise.
4649 (long_integer_type_node): Likewise.
4650 (long_unsigned_type_node): Likewise.
4651 (long_long_integer_type_node): Likewise.
4652 (long_long_unsigned_type_node): Likewise.
4653 * tree.c (integer_types): New variable.
4654 (init_obstacks): Register it as a root.
4655
4656 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
4657
4658 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
4659 NEXT_INSN. Update last insn in chain.
4660
4661 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
4662
4663 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
4664 with TYPE_DECL_SUPPRESS_DEBUG set.
4665
4666 2000-03-18 Richard Henderson <rth@cygnus.com>
4667
4668 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
4669
4670 2000-03-18 Richard Henderson <rth@cygnus.com>
4671
4672 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
4673 care for HALF_PIC_P.
4674 (expander_call_insn_operand): Remove.
4675 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
4676 * i386.h (PREDICATE_CODES): Update.
4677 * i386.md (all call expanders): Remove predicates, remove special
4678 handling for half-pic.
4679 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
4680 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
4681 (sibcall_epilogue): New.
4682
4683 2000-03-17 Richard Henderson <rth@cygnus.com>
4684
4685 * rtlanal.c (single_set): Reject if the parallel has anything
4686 except SET or USE or CLOBBER.
4687
4688 2000-03-17 Jeff Law <law@cygnus.com>
4689 Richard Henderson <rth@cygnus.com>
4690
4691 * Makefile.in (OBJS): Add sibcall.o.
4692 (sibcall.o): New.
4693 * sibcall.c: New file.
4694 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
4695 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
4696 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
4697 Emit sibcall patterns when requested. Update all callers.
4698 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
4699 elimination seems feasable.
4700 * final.c (leaf_function_p): Sibling calls don't discount being
4701 a leaf function.
4702 * flow.c (HAVE_sibcall_epilogue): Provide default.
4703 (find_basic_blocks_1): Sibling calls don't throw.
4704 (make_edges): Make edge from sibling call to EXIT.
4705 (propagate_block): Don't remove sibcall_epilogue insns.
4706 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
4707 (sibcall_epilogue): New.
4708 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
4709 (identify_blocks_1): Likewise. Break out from ...
4710 (identify_blocks): ... here.
4711 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
4712 (reorder_blocks): ... here.
4713 (init_function_for_compilation): Zap prologue/epilogue as varrays.
4714 (record_insns): Extend a varray instead of mallocing new memory.
4715 (contains): Read a varray not array of ints.
4716 (sibcall_epilogue_contains): New.
4717 (thread_prologue_and_epilogue_insns): Emit and record
4718 sibcall_epilogue patterns.
4719 (init_function_once): Allocate prologue/epilogue varrays.
4720 * genflags.c (gen_insn): Treat sibcall patterns as calls.
4721 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
4722 Broken out from ...
4723 (save_for_inline_nocopy): ... here.
4724 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
4725 Broken out from ...
4726 (expand_inline_function): ... here.
4727 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
4728 (subst_constants): Handle 'n' formats.
4729 * jump.c (jump_optimize_minimal): New.
4730 (jump_optimize_1): New arg `minimal'; update callers. Elide most
4731 optimizations if it's set.
4732 * rtl.c (copy_rtx): Do copy jump & call for insns.
4733 * rtl.h (struct rtx_def): Document use of jump and call for insns.
4734 (SIBLING_CALL_P): New.
4735 (sibcall_use_t): New.
4736 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
4737 Invoke optimize_sibling_and_tail_recursive_calls.
4738 * tree.c (lang_safe_for_unsave): New.
4739 (safe_for_unsave): New.
4740 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
4741
4742 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
4743 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
4744 (*sibcall_osf_1, *sibcall_value_osf_1): New.
4745
4746 2000-03-17 Mark Mitchell <mark@codesourcery.com>
4747
4748 * objc/objc-act.c (encode_method_prototype): Pass types, not
4749 PARM_DECLs, to int_size_in_bytes.
4750
4751 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
4752
4753 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
4754
4755 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4756 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
4757
4758 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4759
4760 * Clean up usages of TREE_INT_CST_LOW.
4761 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
4762 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
4763 Regenerated.
4764 * c-tree.h (min_precision): Move declaration to here.
4765 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
4766 (build_unary_op, add_pending_init): Use bit_position.
4767 (pending_init_member, process_init_element): Likewise.
4768 (really_start_incremental_init, push_init_level, pop_init_level):
4769 Don't make copies of nodes or modify them in place, use consistent
4770 types when tracking positions, and use tree routines computations.
4771 (set_init_index, output_init_element): Likewise.
4772 (output_pending_init_elements, process_init_element): Likewise.
4773 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
4774 tree_low_cst and int_bit_position; also minor cleanup.
4775 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
4776 (print_cst_octal): Precision is unsigned.
4777 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
4778 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
4779 (simple_type_align_in_bits): Result is unsigned int.
4780 Use tree_int_low_cst and host_integerp.
4781 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
4782 (field_byte_offset): Result is HOST_WIDE_INT.
4783 Change types of internal variables so alignments are unsigned int,
4784 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
4785 Use host_integerp, tree_low_cst, and int_bit_position.
4786 (add_bit_offset_attribute): Likewise.
4787 (add_data_member_location_attribute): Use tree_cst_low.
4788 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
4789 (add_bit_size_attribute): Use tree_low_cst.
4790 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
4791 * dwarfout.c: Similar changes to dwarf2out.c.
4792 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
4793 * genoutput.c (n_occurences): Return -1 for null string.
4794 (strip_whitespace): Accept null string and make into function.
4795 (scan_operands): Reflect above changes.
4796 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
4797 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
4798 * ssa.c (rename_registers): Add missing cast of arg to bzero.
4799 * tree.c (int_size_in_bytes): Check for too big to represent.
4800 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
4801 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
4802 New declarations.
4803 (min_precision): Delete from here.
4804 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
4805 and int_bit_position.
4806 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
4807 (encode_method_def): Likewise.
4808 (build_ivar_list_initializer): Use int_bit_position.
4809 (generate_shared_structures): Convert size.
4810 (encode_type, encode_complete_bitfield): Use integer_zerop.
4811 (encode_bitfield): Use tree_low_cst and int_bit_position.
4812
4813 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4814
4815 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
4816
4817 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4818
4819 * call.c (special_function_p): It is only malloc if it returns
4820 Pmode.
4821
4822 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4823
4824 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
4825 (C33_FLAG, TARGET_C3X): Add macros.
4826 (TARGET_SWITCHES): Add -m33 option.
4827 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
4828
4829 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4830
4831 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
4832 (PARALLEL_PACK_FLAG): Delete.
4833 (TARGET_SWITCHES): Update.
4834 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
4835
4836 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4837
4838 * fold-const.c (fold): Fix a few cases when the returned result
4839 is not of the same type as the input.
4840
4841 2000-03-16 Nick Clifton <nickc@cygnus.com>
4842
4843 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
4844 warning.
4845
4846 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4847
4848 * libgcc2.h: Move prototypes above macros with the same name.
4849 Wrap some function prototypes in the conditional which indicates
4850 whether they are supported, i.e. "BITS_PER_UNIT == 8".
4851
4852 2000-03-16 Richard Henderson <rth@cygnus.com>
4853
4854 * calls.c: Revert last two changes.
4855
4856 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
4857
4858 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
4859 has exponent 0 is a zero.
4860
4861 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
4862 HASH may already be nonzero. Add code/mode into hash value
4863 immediately after repeat label.
4864 (cselib_lookup): Don't leave the hash table in an inconsistent
4865 state before a hash lookup operation.
4866
4867 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
4868
4869 * i386.md (all HI and QI mode non-move patterns): Conditionize
4870 by TARGET_[HQ]IMODE_MATH.
4871 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
4872 x86_promote_qi_regs): Declare.
4873 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
4874 TARGET_PROMOTE_QI_REGS): New macros.
4875 (PROMOTE_MODE): New macro.
4876 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
4877 x86_promote_qi_regs): New global variables.
4878
4879 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
4880
4881 * calls.c (emit_library_call_value_1): Break out from ...; handle
4882 VOIDmode function calls too.
4883 (emit_library_call_value): ... here.
4884 (emit_library_call): Implement by calling emit_library_call_value_1.
4885
4886 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
4887
4888 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
4889 Update arg_space_so_far on stack adjustments.
4890 (emit_library_call, emit_library_call_value): Likewise; take into
4891 account arg_space_so_far and pending_stack_adjust when calculcating
4892 the boundary.
4893
4894 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
4895
4896 * flow.c: Move all basic block reordering code into its own file.
4897 (create_basic_block): Externalize.
4898 * bb-reorder.c: New file. Copy all basic block reordering code from
4899 flow.c to this file.
4900 (reorder_basic_blocks): Fix fencepost error in for-loop.
4901 (reorder_basic_blocks): Remove braces from single statement for-loops.
4902 * basic-block.h: Add declaration for create_basic_block.
4903 * Makefile.in: Add rules for bb-reorder.o.
4904
4905 2000-03-16 Neil Booth <NeilB@earthling.net>
4906
4907 * cppinit.c (handle_option): Implement #unassert directive
4908 as -A- command line option.
4909 (print_help): Update.
4910 * cpptexi.c: Update.
4911
4912 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
4913
4914 * md.texi (Standard Names): Document `jump'.
4915
4916 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
4917
4918 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
4919 gotos.
4920
4921 2000-03-15 Geoff Keating <geoffk@cygnus.com>
4922
4923 Merge changes from newppc-branch onto trunk.
4924
4925 2000-03-15 Geoff Keating <geoffk@cygnus.com>
4926
4927 * rs6000.c (toc_hash_table): Update for new hash table functions.
4928 (toc_hash_function): Likewise.
4929 (toc_hash_eq): Likewise.
4930 (toc_hash_mark_entry): Likewise.
4931 (toc_hash_mark_table): Likewise.
4932 (output_toc): Likewise.
4933 (rs6000_add_gc_roots): Likewise.
4934
4935 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4936
4937 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
4938 (AR_FLAGS_FOR_TARGET): here. New macro.
4939
4940 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
4941
4942 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
4943 fpmem_operand) Delete.
4944 (xer_operand) New.
4945 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
4946 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
4947 (rs6000_save_machine_status, rs6000_restore_machine_status,
4948 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
4949 references to above variables.
4950 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
4951 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
4952 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
4953 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
4954 (XER_REGNO_P, XER_REGNO): New.
4955 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
4956 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
4957 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
4958 XER_REGNO_P.
4959 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
4960 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
4961 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
4962
4963 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4964
4965 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
4966 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
4967 * rs6000.h: from here.
4968
4969 * rs6000-protos.h (rs6000_select_section): Provide prototype.
4970 (rs6000_select_rtx_section): Likewise.
4971 (rs6000_encode_section_info): Likewise.
4972 (sdata_section): Likewise.
4973 (sdata2_section): Likewise.
4974 (sbss_section): Likewise.
4975 * sysv4.h (rs6000_select_section): Delete prototype.
4976 (rs6000_select_rtx_section): Likewise.
4977 (rs6000_encode_section_info): Likewise.
4978 (sdata_section): Likewise.
4979 (sdata2_section): Likewise.
4980 (sbss_section): Likewise.
4981 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
4982
4983 * sysv4.h: Delete various unnecessary #undef's and put a comment
4984 on the remaining ones.
4985 Change various comments according to coding standard.
4986
4987 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
4988
4989 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
4990 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
4991 (CR0_REGNO_P) Remove.
4992 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
4993 setup_incoming_varargs, mtcrf_operation, print_operand,
4994 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
4995 Use the above macros.
4996
4997 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
4998
4999 * config/rs6000/rs6000.md: Added a new alternative for each
5000 pattern that had a 'x' alternative but no 'y' alternative.
5001 Added a new split for each of the above patterns.
5002
5003 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5004
5005 * aix41.h (ASM_CPU_SPEC): Delete.
5006 (CPP_CPU_SPEC): Delete.
5007
5008 * aix.h (RS6000_OUTPUT_BASENAME): Define.
5009 (ASM_OUTPUT_LABEL): Define.
5010 (ASM_GLOBALIZE_LABEL): Define.
5011 (STRIP_NAME_ENCODING): Define.
5012 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
5013 (STRIP_NAME_ENCODING): Don't define.
5014 (ASM_OUTPUT_LABEL): Don't define.
5015 (ASM_GLOBALIZE_LABEL): Don't define.
5016 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
5017 names, and ASM_OUTPUT_LABEL to output labels, rather than
5018 asm_fprintf.
5019 (ASM_OUTPUT_LABEL): Define.
5020 (ASM_OUTPUT_INT): Use assemble_name.
5021 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
5022 (STRIP_NAME_ENCODING): Don't undefine first.
5023 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
5024 ELF.
5025 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
5026 specified with 'asm' even with -fleading-underscore.
5027 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
5028 (output_epilog): Likewise.
5029 (output_toc): Likewise.
5030 * tramp.asm: Handle -fleading-underscore correctly.
5031
5032 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
5033 -mminimal-toc.
5034 (nonlocal_goto_receiver): Delete.
5035 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
5036
5037 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
5038 (SET_ASM_OP): Define.
5039 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
5040
5041 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
5042 (ASM_LONG): Define.
5043
5044 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
5045 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
5046
5047 * rs6000.h: Add 'u' to more constants.
5048
5049 2000-02-18 David Edelsohn <edelsohn@gnu.org>
5050
5051 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
5052
5053 2000-02-15 David Edelsohn <edelsohn@gnu.org>
5054
5055 * rs6000.c (reg_or_u_cint_operand): New function.
5056 (logical_operand): Handle 64-bit hosts.
5057 (logical_u_operand): New function.
5058 (non_logical_cint_operand): Handle 64-bit hosts.
5059 (non_logical_u_cint_operand): New function.
5060 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
5061 (PREDICATE_CODES): Define new functions.
5062 * rs6000-protos.h: Declare new functions.
5063 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
5064 (movdi_64): Bracket code intended for 64-bit hosts. Create
5065 CONST_DOUBLE for 32-bit values.
5066 (scc insns): Generate DImode compares.
5067 (mfcr insns): Create DImode versions.
5068 (sge matchers): New patterns.
5069
5070 2000-02-15 Gabriel Paubert <paubert@iram.es>
5071
5072 * rs6000.md: Correct instructions length attributes and
5073 constraints on unsigned compare instructions.
5074 (*ne0): Disable for PowerPC64.
5075
5076 2000-02-11 Geoff Keating <geoffk@cygnus.com>
5077
5078 * rs6000.c (output_function_profiler): Use .long for a 32-bit
5079 quantity, fix profile1.C test failure under -fPIC.
5080
5081 * rs6000.c: Add 'u' to many constants to suppress warnings.
5082 (constant_pool_expr_1): Make static.
5083 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
5084 * rs6000.h: Add 'u' to many constants to suppress warnings.
5085
5086 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
5087 for the start of the TOC, instead of LCTOC..0.
5088 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
5089 of the TOC.
5090 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
5091 (load_toc_aix_di): Use LCTOC..1.
5092
5093 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
5094 * rs6000.c (rs6000_legitimize_address): New function from
5095 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
5096 symbols in the constant pool that really are TOC references.
5097 (print_operand_address): For ELF, write TOC offsets under
5098 -fPIC as subtractions in the insn.
5099 (output_toc): For ELF, define symbols in TOC as normal labels,
5100 to match RTL.
5101 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
5102 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
5103 (create_TOC_reference): Prototype only when RTX_CODE is defined.
5104 * rs6000.md (movsi): Only use create_TOC_reference on
5105 symbols in the constant pool that really are TOC references.
5106
5107 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
5108 * rs6000.c (rs6000_reorg): Delete.
5109 * rs6000-protos.h (rs6000_reorg): Delete.
5110
5111 2000-02-09 Geoff Keating <geoffk@cygnus.com>
5112
5113 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
5114
5115 * aix.h (SETUP_FRAME_ADDRESSES): Define.
5116 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
5117 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
5118 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
5119 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
5120 rs6000_aix_emit_builtin_unwind_init.
5121 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
5122 rs6000_emit_eh_toc_restore on AIX.
5123 (return_eh_si): Use r2.
5124 (return_eh_di): Use r2.
5125
5126 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
5127 since we're breaking binary compatibility anyway.
5128
5129 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
5130
5131 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
5132 constant_pool_expr_p): Declare them.
5133 (constant_pool_expr_p): Declare it.
5134 * config/rs6000/rs6000.c (toc_label_name): Define.
5135 (rs6000_override_options): Set toc_label_name.
5136 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
5137 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
5138 uses_TOC): New functions.
5139 (print_operand): Delete old '*' case.
5140 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
5141 and strip off rtl for TOC before calling output_addr_const.
5142 (rs6000_emit_load_toc_table): Use toc_label_name.
5143 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
5144 the default.
5145 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
5146 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
5147 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
5148 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
5149 into explicit TOC_REGISTER offsets.
5150 (TOC_REGISTER): New macro.
5151 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
5152 TARGET_TOC to reference TOC_REGISTER.
5153 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
5154 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
5155 uses_TOC before emitting label references.
5156
5157 2000-02-05 Geoff Keating <geoffk@cygnus.com>
5158
5159 * rs6000.md (stack_tie): Fix warning.
5160
5161 * eabi-ctors.c: Use 'asm' names for the start/end variables,
5162 to handle -fleading-underscore.
5163 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
5164 (USER_LABEL_PREFIX): New macro.
5165 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
5166 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
5167 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
5168 call-linux can use the same multilibs.
5169 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
5170 and call-linux multilibs. Do multilib with -fleading-underscore.
5171 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
5172 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
5173 to call-aix.
5174
5175 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
5176 have MASK_SOFT_FLOAT set.
5177 (CPP_FLOAT_DEFAULT_SPEC): New macro.
5178 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
5179 CPP_FLOAT_DEFAULT_SPEC.
5180
5181 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
5182 * rs6000.md: Whitespace change.
5183 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
5184 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
5185
5186 2000-02-05 Geoff Keating <geoffk@cygnus.com>
5187
5188 * rs6000.md (eh_epilogue): New expander.
5189 (eh_reg_restore): New expand/split/insn combination.
5190 (return_eh_si): New insn.
5191 (return_eh_di): New insn.
5192
5193 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
5194 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
5195 * eabi-ctors.c (__do_global_ctors): Register this object's
5196 frame. Clean up. Call atexit() after the constructors.
5197 (__do_global_dtors): Deregister this object's frame. Clean up.
5198 Allow for recursive calls to exit().
5199 * rs6000.c (fixuplabelno): New variable.
5200 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
5201 TARGET_RELOCATABLE, it slows down exec() under linux.
5202 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
5203
5204 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
5205 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
5206 (ASM_OUTPUT_DWARF_DELTA2): New macro.
5207 (ASM_OUTPUT_DWARF_DELTA4): New macro.
5208 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
5209 (ASM_OUTPUT_DWARF_ADDR): New macro.
5210 (ASM_OUTPUT_DWARF_DATA4): New macro.
5211 (ASM_OUTPUT_DWARF_DATA2): New macro.
5212 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
5213 (ASM_OUTPUT_DWARF_OFFSET): New macro.
5214 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
5215
5216 2000-02-03 Geoff Keating <geoffk@cygnus.com>
5217
5218 * rs6000.c (rs6000_sr_alias_set): New variable.
5219 (rs6000_override_options): Initialise rs6000_sr_alias_set.
5220 (rs6000_emit_stack_tie): New function.
5221 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
5222 in a way that dwarf2out can understand.
5223 (rs6000_frame_related): New function.
5224 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
5225 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
5226 Use rs6000_emit_stack_tie when needed.
5227 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
5228 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
5229 * rs6000.md (stack_tie): New insn.
5230 (return_internal_si): Allow return value to be in the count
5231 register.
5232 (return_internal_di): Likewise.
5233
5234 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
5235
5236 2000-02-03 Geoff Keating <geoffk@cygnus.com>
5237
5238 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
5239
5240 2000-01-31 Geoff Keating <geoffk@cygnus.com>
5241
5242 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
5243
5244 * rs6000.md (stmw): Use the right POWER opcode.
5245 (lmw): Likewise.
5246
5247 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5248
5249 * rs6000-protos.h: New file.
5250
5251 * rs6000.c: Include tm_p.h. Fix compile time warnings.
5252
5253 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
5254 warnings.
5255
5256 * sysv4.h: Likewise.
5257
5258 2000-01-28 Geoff Keating <geoffk@cygnus.com>
5259
5260 * ../../configure.in: Delete powerpcle-*-winnt*
5261 and powerpcle-*-pe|powerpcle-*-cygwin*.
5262 * ../../configure: Regenerated.
5263 * cygwin.h: Delete.
5264 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
5265 (TARGET_WINDOWS_NT): Delete.
5266 (ABI_NT): Delete.
5267 (CALL_NT_DLLIMPORT): Delete.
5268 Delete NT-specific code.
5269 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
5270 * win-nt.h: Delete.
5271 * t-winnt: Delete.
5272 * nt-ci.asm: Delete.
5273 * nt-cn.asm: Delete.
5274 * ntstack.asm: Delete.
5275
5276 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5277
5278 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
5279 (ASM_FILE_START): Likewise.
5280 (ASM_DECLARE_FUNCTION_NAME): Likewise.
5281 (ASM_OUTPUT_LABELREF): Likewise.
5282 (ASM_OUTPUT_SKIP): Likewise.
5283 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
5284 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5285 (ASM_OUTPUT_CASE_LABEL): Likewise.
5286 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5287 (ASM_OUTPUT_ASCII): Likewise.
5288
5289 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
5290
5291 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
5292 reload_toc_labelno for non-prologue TOC reloads. Also, don't
5293 increment rs6000_pic_labelno here.
5294 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
5295 and increment rs6000_pic_labelno here.
5296
5297 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
5298
5299 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
5300 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
5301 allocation knows (reg) is dead before the insn.
5302
5303 2000-01-21 Geoff Keating <geoffk@cygnus.com>
5304
5305 * rs6000.md (movsi_to_cr): Correct typo in output template.
5306
5307 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
5308
5309 * rs6000.c (rs6000_pic_labelno): Always define.
5310 (rs6000_pic_func_labelno): Delete.
5311 (lmw_operation): Check for a zero base register,
5312 which doesn't mean what we want.
5313 (stmw_operation): New function.
5314 (print_operand): Define new 'l' modifier.
5315 (rs6000_stack_info): We must save all 64 bits of the registers
5316 if TARGET_POWERPC64.
5317 (rs6000_output_load_toc_table): Delete.
5318 (rs6000_emit_load_toc_table): New function.
5319 (rs6000_allocate_stack_space): Delete.
5320 (rs6000_emit_allocate_stack): New function.
5321 (rs6000_emit_prologue): New function.
5322 (output_prolog): Use rs6000_emit_prologue.
5323 (rs6000_emit_epilogue): Change a few variable names to be
5324 more accurate. Restore all 64 bits of the registers if
5325 TARGET_POWERPC64. Only restore the FP registers which were used
5326 if they are being saved/restored one-at-a-time.
5327 (output_mi_thunk): Delete inefficient code generation.
5328 (output_function_profiler): Don't use rs6000_output_load_toc_table.
5329 * rs6000.h: Declare rs6000_emit_load_toc_table,
5330 rs6000_allocate_stack_space, stmw_operation. Don't declare
5331 rs6000_output_load_toc_table.
5332 * rs6000.md (elf_high): Allow register 0, but discourage it
5333 heavily.
5334 (elf_low): Support loading into register 0.
5335 (load_toc_aix_si): New pattern.
5336 (load_toc_aix_di): New pattern.
5337 (load_toc_v4_pic_si): New pattern.
5338 (load_toc_v4_pic_di): New pattern.
5339 (load_toc_v4_PIC_1): New pattern.
5340 (load_toc_v4_PIC_1b): New pattern.
5341 (load_toc_v4_PIC_2): New pattern.
5342 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
5343 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
5344 (prologue): New expander.
5345 (movesi_from_cr): New pattern.
5346 (stmw): New pattern.
5347 (save_fpregs_si): New pattern.
5348 (save_fpregs_di): New pattern.
5349
5350 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5351
5352 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
5353 (movdi): Likewise.
5354 (movhi): Likewise.
5355 (movqi): Likewise.
5356
5357 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5358
5359 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
5360 at present.
5361 (movsi_got_internal): Likewise.
5362 (movsi_got_internal+1): Likewise.
5363 (set_sp): 'unspec 7' does a SImode clobber.
5364
5365 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5366
5367 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
5368 allocate a stack temporary.
5369 (floatsidf2_internal): Likewise.
5370 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
5371 with unspec.
5372 (floatunssidf2): Don't use the fpmem "register", just
5373 allocate a stack temporary.
5374 (floatunssidf2_internal): Likewise.
5375 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
5376 with unspec.
5377 (floatsidf2_loadaddr): Delete.
5378 (floatsidf2_store1): Delete.
5379 (floatsidf2_store2): Delete.
5380 (floatsidf2_load): Delete.
5381 (fix_truncdfsi2): Don't use the fpmem "register", just
5382 allocate a stack temporary.
5383 (fix_truncdfsi2_internal_si): Delete.
5384 (fix_truncdfsi2_internal_di): Delete.
5385 (fix_truncdfsi2_internal): New insn.
5386 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
5387 (fix_truncdfsi2_store): Delete.
5388 (fix_truncdfsi2_load): Delete.
5389 (fctiwz): Produce gen_fctiwz.
5390
5391 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
5392
5393 * eabi.h (INVOKE__main): Define.
5394 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
5395 specially.
5396 (rs6000_emit_prologue): Likewise.
5397 * rs6000.h (struct rs6000_stack): Don't keep track of whether
5398 this is the main program.
5399
5400 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5401
5402 * rs6000.c (rs6000_va_arg): Delete some unused variables.
5403
5404 2000-01-19 Geoff Keating <geoffk@cygnus.com>
5405
5406 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
5407 goes after the argument.
5408
5409 2000-01-12 Geoff Keating <geoffk@cygnus.com>
5410
5411 * rs6000.md: Document 'unspec' values used.
5412 (epilogue): New expander.
5413 (movesi_to_cr_one): New expander.
5414 (movesi_to_cr and following): New pattern.
5415 (lmw): New pattern.
5416 (return_internal_si): New pattern.
5417 (return_internal_di): New pattern.
5418 (return_and_restore_fpregs_si): New pattern.
5419 (return_and_restore_fpregs_di): New pattern.
5420 * rs6000.h: Declare new functions.
5421 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
5422 rather than rs6000_calls_p.
5423 (rs6000_makes_calls): Delete.
5424 (lmw_operation): New function.
5425 (mtcrf_operation): New function.
5426 (rs6000_emit_epilogue): New function.
5427 (output_epilog): Call rs6000_emit_epilogue and final if
5428 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
5429
5430 2000-01-12 Geoff Keating <geoffk@cygnus.com>
5431
5432 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
5433 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
5434 * aix.h (SUBTARGET_SWITCHES): Document switches.
5435 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
5436 sched-prolog and sched-epilog the same. Document all the
5437 switches.
5438 (TARGET_OPTIONS): No longer allow -mdebug-.
5439
5440 2000-01-12 Geoff Keating <geoffk@cygnus.com>
5441
5442 * rs6000.h (ASM_FILE_END): Move to aix.h.
5443 (EXTRA_SECTIONS): Move to aix.h.
5444 (READONLY_DATA_SECTION): Move to aix.h.
5445 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
5446 (SELECT_SECTION): Move to aix.h.
5447 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
5448 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
5449 (LINK_REGISTER_REGNUM): New definition.
5450 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
5451 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
5452 AIX and SVR4.
5453 * sysv4.h: Delete the code between the inclusion of rs6000.h
5454 and svr4.h.
5455 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
5456 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
5457 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
5458 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
5459 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
5460 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
5461 (fix_truncdfsi2_internal_di): New pattern.
5462 (fix_truncdfsi2_store): The second arg here is Pmode too.
5463 (fix_truncdfsi2_load): The second arg here is Pmode too.
5464 (tablejumpdi): Now that switch tables hold only SImode values,
5465 gcc needs to know how to add them to the pc which is DImode.
5466 * rs6000.c (rs6000_stack_info): Use symbolic name for
5467 LINK_REGISTER_REGNUM.
5468 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
5469 (output_toc): Delete unused variables s1 and s2.
5470 (output_ascii): Use fputs not fprintf on a variable string.
5471
5472 2000-01-07 David Edelsohn <edelsohn@gnu.org>
5473
5474 * rs6000.c (processor_target_table): Add power3 as alias for 630.
5475 * aix43.h: Revert Aug 2 change.
5476 (HAS_INIT_SECTION): Define, not visible yet.
5477 (LD_INIT_SWITCH): Define, not visible yet.
5478 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
5479
5480 2000-01-04 Joel Sherrill (joel@OARcorp.com>
5481
5482 * config/rs6000/rtems.h: Include config/rtems.h.
5483
5484 2000-01-04 David Edelsohn <edelsohn@gnu.org>
5485
5486 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
5487 (SLOW_UNALIGNED_ACCESS): Define.
5488 (CASE_VECTOR_MODE): Always use 32-bit offsets.
5489 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
5490 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
5491 (toc_section): Likewise and .toc pseudo-op.
5492 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
5493 64-bit mode.
5494 (TEXT_SECTION_ASM_OP): Likewise.
5495 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
5496 32-bit offsets.
5497
5498 1999-12-17 Jakub Jelinek <jakub@redhat.com>
5499
5500 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
5501 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
5502 compiling libgcc2.
5503
5504 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5505
5506 * rs6000.h: Move more stuff from here...
5507 * aix.h: to here.
5508 * sysv4.h: Cleanup accordingly.
5509 * netware.h: Likewise
5510
5511 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5512
5513 * rs6000.h: Continue cleanup.
5514 * aix.h: Likewise.
5515 * lynx.h: Likewise.
5516 * netware.h: Likewise.
5517 * sol2.h: Likewise.
5518 * sysv4.h: Likewise.
5519 * win-nt.h: Likewise.
5520
5521 * rs6000.h (TARGET_SWITCHES): Add descriptions.
5522 (TARGET_OPTIONS): Likewise.
5523
5524 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
5525 (SUBTARGET_OPTIONS): Likewise.
5526
5527 * rs6000.md: Fix compile time warnings.
5528
5529 2000-01-04 Geoff Keating <geoffk@cygnus.com>
5530
5531 vxworks patches from the Cygnus tree originally by
5532 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
5533 <vmakarov@cygnus.com>.
5534 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
5535 (ENDFILE_SPEC): Likewise.
5536 (LIB_VXWORKS_SPEC): New macro.
5537 (STARTFILE_VXWORKS_SPEC): New macro.
5538 (ENDFILE_VXWORKS_SPEC): New macro.
5539 (LINK_START_VXWORKS_SPEC): New macro.
5540 (LINK_OS_VXWORKS_SPEC): New macro.
5541 (CPP_OS_VXWORKS_SPEC): New macro.
5542 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
5543 * vxppc.h: Rewrite to use proper configuration method.
5544 * vxppcle.h: New file.
5545 * ../../configure.in: Add powerpcle-wrs-vxworks*.
5546 * ../../configure: Rebuilt.
5547
5548 2000-01-04 Geoff Keating <geoffk@cygnus.com>
5549
5550 Lots of changes to rs6000.h, sysv4.h, aix.h,
5551 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
5552 with the aim that rs6000.h is the first header
5553 included and the others override it.
5554 * aix.h: New file.
5555
5556 * x-aix41-gld: Remove.
5557 * x-aix43: Remove.
5558 * x-aix41: Remove target-specific switches, and don't specify
5559 -Wl,-bbigtoc as we don't need it any more.
5560 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
5561 Use t-aix43 for AIX 4.3 and above.
5562 * ../../configure: Regenerated.
5563
5564 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
5565 options, that don't do anything yet.
5566 (MASK_SCHED_PROLOG): New macro.
5567 (MASK_SCHED_EPILOG): New macro.
5568 (TARGET_SCHED_PROLOG): New macro.
5569 (TARGET_SCHED_EPILOG): New macro.
5570
5571 2000-01-04 Geoff Keating <geoffk@cygnus.com>
5572
5573 * rs6000.c: Correct comment, the `minimal' TOCs are actually
5574 one per translation unit, not one per function.
5575 (output_toc): Also do duplicate constant elimination
5576 for per-translation-unit TOCs.
5577
5578 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
5579 a comment explaining _exactly_ when this pattern gets used.
5580 (builtin_setjmp_receiver): New pattern for better clarity.
5581 (init_v4_pic): Move it into a section dealing with TOC registers.
5582
5583 1999-12-30 Geoff Keating <geoffk@cygnus.com>
5584
5585 * rs6000.c (toc_hash_table): New variable.
5586 (rs6000_hash_constant): New function.
5587 (toc_hash_function): New function.
5588 (toc_hash_eq): New function.
5589 (toc_hash_mark_entry): New function.
5590 (toc_hash_mark_table): New function.
5591 (output_toc): Don't output duplicate TOC entries in
5592 a single file.
5593 (rs6000_add_gc_roots): Add the hash table as a GC root.
5594 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
5595 where they clearly shouldn't be. This may need to be fixed
5596 later when there is a GNU ar for AIX.
5597 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
5598 Don't define BOOT_LDFLAGS as it is now not necessary.
5599
5600 1999-12-29 Geoff Keating <geoffk@cygnus.com>
5601
5602 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
5603 for va_list on AIX. Use unsigned_char_type_node rather than
5604 constructing our own version on svr4.
5605
5606 1999-12-17 Geoff Keating <geoffk@cygnus.com>
5607
5608 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
5609 since patently it's not.
5610
5611 1999-12-08 Geoff Keating <geoffk@cygnus.com>
5612
5613 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
5614 define_expand/define_insn pair, and handle restore of the
5615 SVR4 -fpic register.
5616
5617 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
5618
5619 * acconfig.h (HAVE_GAS_WEAK): New define.
5620 * configure.in (assembler weak support): Check for .weak support.
5621 * config.in, configure: Rebuilt.
5622 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
5623 HAVE_GAS_WEAK is defined.
5624
5625 2000-03-15 Nick Clifton <nickc@cygnus.com>
5626
5627 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
5628 asm_fprintf().
5629
5630 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
5631
5632 * cppfiles.c (open_include_file): New function.
5633 (find_include_file, cpp_read_file): Use it.
5634
5635 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
5636
5637 * cpphash.c (dump_hash_helper): Take the slot, not the element.
5638
5639 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
5640
5641 * flow.c (verify_flow_info): Check for unconditional return.
5642
5643 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
5644
5645 * config/ia64/ia64.md (restore_stack_nonlocal): New.
5646 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
5647 (__ia64_restore_stack_nonlocal): New.
5648 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
5649
5650 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5651
5652 * cpphash.c (collect_formal_parameters): Do not complain about
5653 parameter names that just start with `__VA_ARGS__'.
5654
5655 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
5656
5657 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
5658 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
5659 * i386.c (pentiumpro_cost): Set mul cost to 4.
5660 (x86_use_movx): Set for PPro.
5661
5662 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
5663
5664 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
5665 STACK_BOUNDARY for empty frames now.
5666
5667 2000-03-14 Mark Mitchell <mark@codesourcery.com>
5668
5669 * stor-layout.c (layout_union): Remove.
5670 (layout_union_field): New function, split out from layout_union.
5671 (finish_union_layout): Likewise.
5672 (layout_field): Handle unions by calling layout_union_field.
5673 (finish_record_layout): Handle unions.
5674 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
5675 QUAL_UNION_TYPE handling.
5676
5677 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
5678
5679 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
5680 end of basic block is jump_insn, not barrier; use create_basic_block
5681 instead of creating basic block by hand.
5682
5683 2000-03-14 Jason Eckhardt <jle@cygnus.com>
5684
5685 * flow.c (reorder_basic_blocks): Account for barriers when writing
5686 over NEXT_INSN (last_bb->end).
5687 (verify_flow_info): Add check for missing barriers.
5688
5689 2000-03-14 Greg McGary <gkm@gnu.org>
5690
5691 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
5692 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
5693 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
5694 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
5695 __unbounded, __unbounded__): New keywords.
5696 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
5697 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
5698 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
5699
5700 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
5701
5702 * cselib.h: New file.
5703 * alias.c: Include "cselib.h".
5704 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
5705 MEMs as two new arguments.
5706 (get_addr): New static function.
5707 (find_base_term): Handle VALUEs.
5708 (memrefs_conflict_p): Likewise.
5709 (true_dependence): Call get_addr on the addresses.
5710 Call fixed_scalar_and_varying_struct_p with addresses that have been
5711 passed through get_addr and canon_rtx.
5712 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
5713 with true_dependence.
5714 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
5715 * loop.c: Include "cselib.h".
5716 (load_mems): Process extended basic block that enters the loop with
5717 cselib. Use that information to change initialization of the shadow
5718 register so that a constant equivalence is seen by later passes.
5719 * reload1.c: Include "cselib.h".
5720 (reload_cse_invalidate_regno): Delete function.
5721 (reload_cse_mem_conflict_p): Likewise.
5722 (reload_cse_invalidate_mem): Likewise.
5723 (reload_cse_invalidate_rtx): Likewise.
5724 (reload_cse_regno_equal_p): Likewise.
5725 (reload_cse_check_clobber): Likewise.
5726 (reload_cse_record_set): Likewise.
5727 (reg_values): Delete static variable.
5728 (invalidate_regno_rtx): Likewise.
5729 (reload_cse_delete_noop_set): New static function.
5730 (reload_cse_simplify): New static function, broken out of
5731 reload_cse_regs_1.
5732 (reload_cse_noop_set_p): Delete unused argument INSN.
5733 Just call rtx_equal_for_cselib_p on set source and destination.
5734 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
5735 reload_cse_delete_noop_set. Delete code to keep track of values; use
5736 cselib functions instead. Delete code to push/pop obstacks.
5737 (reload_cse_simplify_set): Use cselib to find equivalent values.
5738 Delete code to push/pop obstacks.
5739 (reload_cse_simplify_operands): Likewise.
5740 * rtl.def (VALUE): New rtx code.
5741 * rtl.h (union rtunion_def): New elt rt_cselib.
5742 (X0CSELIB, CSELIB_VAL_PTR): New macros.
5743 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
5744 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
5745 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
5746 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
5747 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
5748 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
5749 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
5750 cselib_record_set, cselib_record_sets): New static functions.
5751 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
5752 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
5753 references_value_p): New functions.
5754 (MAX_USELESS_VALUES, REG_VALUES): New macros.
5755 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
5756 n_useless_values, reg_values, callmem, cselib_obstack,
5757 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
5758 New static variables.
5759 * varray.h (union varray_data_tag): New elt te.
5760 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
5761 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
5762 dependencies.
5763
5764 2000-03-14 Nick Clifton <nickc@cygnus.com>
5765
5766 * gcc.c (do_spec_1): Catch the case where %* is used in a
5767 substitution pattern, but it has not been initialised.
5768 Issue a meaningful error message if an unrecognised operator
5769 is encountered in a spec string.
5770
5771 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
5772
5773 * function.c (prepare_function_start): Correctly initialize
5774 cfun->stack_alignment_needed.
5775
5776 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
5777
5778 * cppfiles.c (find_include_file): Don't assume nshort is a
5779 substring of name.
5780
5781 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
5782
5783 * configure.in (hppa configurations): Add pa32-regs.h to the
5784 list of tm files as appropriate.
5785 * configure: Rebuilt.
5786 * pa.c (compute_frame_size): Remove explicit knowledge about FP
5787 register numbering.
5788 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
5789 (fmpyaddoperands, fmpysuboperands): Likewise.
5790 * pa.h: Remove various definitions which depend on knowing
5791 how registers are numbered.
5792 * pa32-regs.h: New file with PA32 register numbering specific
5793 definitions.
5794
5795 2000-03-14 Richard Henderson <rth@cygnus.com>
5796
5797 * regmove.c (combine_stack_adjustments): New.
5798 (stack_memref_p, single_set_for_csa): New.
5799 (free_csa_memlist, record_one_stack_memref): New.
5800 (try_apply_stack_adjustment): New.
5801 (combine_stack_adjustments_for_block): New.
5802 * rtl.h (combine_stack_adjustments): Declare.
5803 * toplev.c (rest_of_compilation): Call it.
5804
5805 * i386.md: Revert 2000-01-16 change.
5806
5807 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5808
5809 * gccbug.in: Add web category, gcc specific classes.
5810
5811 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
5812
5813 * stor-layout.c (finalize_record_size): Fix typo.
5814
5815 2000-03-14 Stan Shebs <shebs@apple.com>
5816
5817 * c-typeck.c (c_alignof): Error on incomplete types.
5818 * extend.texi (Alignment): Document this.
5819
5820 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5821
5822 * cppfiles.c: Include mkdeps.h.
5823 (find_include_file, read_include_file): Remove _cpp_ prefix
5824 from name, make static.
5825 (_cpp_execute_include): New function, broken out of
5826 do_include.
5827
5828 * cpplib.c: Don't include mkdeps.h.
5829 (struct directive): Remove type field. Reorder entries. The
5830 function takes only one argument.
5831 (struct if_stack): Make type field an int.
5832 (directive_table): Rename to dtable. Generate it, the
5833 prototypes of the directive handlers, and the enum for the
5834 directive numbers, from a template macro.
5835 (do_ifndef, do_include_next, do_import): New functions.
5836 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
5837 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
5838 do_ident, do_assert, do_unassert, do_sccs): Take only one
5839 argument.
5840 (do_sccs): Define always, but alter behavior based on
5841 SCCS_DIRECTIVE.
5842 (_cpp_handle_directive, consider_directive_while_skipping):
5843 Restructure for new directive table layout.
5844
5845 (pass_thru_directive): Take a directive number, not a pointer
5846 to a struct directive.
5847 (parse_include): New function, broken out of do_include.
5848 (do_include, do_import, do_include_next): Use parse_include
5849 and _cpp_execute_include.
5850 (do_elif, do_else): Test for T_ELSE specifically when checking
5851 for #elif/#else after #else.
5852 (parse_ifdef): New function, broken out of do_ifdef.
5853 (validate_else): Expect a name arg without a leading #.
5854 (if_directive_name): Delete.
5855 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
5856 directive handlers with only one argument.
5857
5858 * cpphash.h: Update prototypes.
5859 (enum node_type): Remove entries for directives.
5860 * Makefile.in: Update dependencies.
5861
5862 * cpphash.c (dump_hash_helper): Only dump nodes of type
5863 T_MACRO. Emit a newline after each definition.
5864
5865 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5866
5867 * gccbug.in: New file.
5868 * configure.in (all_outputs): Add gccbug.
5869 * Makefile.in (install-common): Install gccbug.
5870 (GCCBUG_INSTALL_NAME): New variable.
5871 * configure: Rebuilt.
5872
5873 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
5874
5875 * function.c (put_var_into_stack): Use type_for_mode to calculate
5876 part_type. Use MEM_SET_IN_STRUCT_P.
5877 * expr.c (store_field): Handle CONCAT.
5878 (store_constructor): Use fields_length.
5879 * tree.c (fields_length): New fn.
5880 * tree.h: Declare it.
5881
5882 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5883
5884 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
5885 (cpplex.o): New target.
5886 * po/POTFILES.in: Add cpplex.c.
5887
5888 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
5889 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
5890 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
5891 skip_block_comment, skip_line_comment, skip_comment,
5892 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
5893 _cpp_parse_name, skip_string, parse_string,
5894 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
5895 _cpp_get_directive_token, find_position,
5896 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
5897 (maybe_macroexpand, _cpp_lex_token): New functions.
5898
5899 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
5900 parse_goto_mark): Delete.
5901 (_cpp_handle_eof): New function.
5902 (_cpp_handle_directive): Rename from handle_directive.
5903 (_cpp_output_line_command): Rename from output_line_command.
5904 (do_if, do_elif): Call _cpp_parse_expr directly.
5905 * cppfiles.c (_cpp_read_include_file): Don't call
5906 init_input_buffer here.
5907 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
5908 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
5909 here; pop the token_buffer and skip the rest of the line here.
5910 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
5911 here.
5912
5913 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
5914 Define here.
5915 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
5916 CPP_GOTO_MARK): New macros.
5917 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
5918 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
5919 _cpp_read_and_prescan, _cpp_init_input_buffer,
5920 _cpp_grow_token_buffer, _cpp_get_directive_token,
5921 _cpp_handle_directive, _cpp_handle_eof,
5922 _cpp_output_line_command): Prototype them here.
5923 * cpplib.h (enum cpp_token): Add CPP_MACRO.
5924 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
5925 quote_string, output_line_command): Remove.
5926
5927 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
5928
5929 * stmt.c (expand_end_case): RANGE may be signed, and when checking
5930 whether it is too large we must also verify that it isn't negative.
5931
5932 2000-03-13 Jakub Jelinek <jakub@redhat.com>
5933
5934 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
5935 (movsi_zero_liveg0): Remove.
5936 (movsf_insn_novis_liveg0): Remove.
5937 (negsi2): Remove.
5938 (negsi2_not_liveg0): Rename to negsi2.
5939 (one_cmplsi2): Remove.
5940 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
5941 (one_cmplsi2_liveg0): Remove.
5942 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
5943 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
5944 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
5945 (PREDICATE_CODES): Remove zero_operand.
5946 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
5947 TARGET_BROKEN_SAVERESTORE.
5948 (zero_operand): Remove.
5949 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
5950 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
5951 options.
5952 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5953 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
5954 TARGET_BROKEN_SAVERESTORE): Remove.
5955 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5956 Remove.
5957 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5958 Remove.
5959 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5960 Remove.
5961
5962 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
5963
5964 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5965
5966 * cpplib.c (do_pragma_implementation): Fix off-by-one error
5967 truncating a string. Don't assume tokens are nul terminated.
5968 Problem noted by Andreas Jaeger <aj@suse.de>
5969
5970 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
5971
5972 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
5973 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
5974 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
5975
5976 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
5977
5978 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
5979 STRUCTURE_SIZE_BOUNDARY.
5980
5981 2000-03-13 Mark Mitchell <mark@codesourcery.com>
5982
5983 * tree.h (record_layout_info_s): New structure.
5984 (record_layout_info): New type.
5985 (new_record_layout_info): New function.
5986 (layout_field): Likewise.
5987 (finish_record_layout): Likewise.
5988 * stor-layout.c (layout_record): Remove.
5989 (new_record_layout_info): New function.
5990 (layout_field): New function, broken out from layout_record.
5991 (finalize_record_size): Likewise.
5992 (compute_record_mode): Likewise.
5993 (finalize_type_size): New function, broken out from layout_type.
5994 (finish_record_layout): Likewise.
5995 (layout_type): Use them.
5996
5997 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
5998
5999 * cpphash.c: Don't include version.h.
6000 (special_symbol) [case T_VERSION]: Look for the string in
6001 hp->value.cpval; don't use version_string.
6002 * cppinit.c (initialize_builtins): Set hp->value.cpval for
6003 __VERSION__ to version_string.
6004 * Makefile.in (cpphash.o): Update deps.
6005
6006 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
6007
6008 Convert cpplib to use libiberty/hashtab.c.
6009
6010 * cpplib.h (struct cpp_reader): Make hashtab and
6011 all_include_files of type 'struct htab *'. Delete HASHSIZE
6012 and ALL_INCLUDE_HASHSIZE macros.
6013
6014 * cpphash.h: Update prototypes.
6015 (struct hashnode): Remove next, prev, and bucket_hdr members.
6016 Make length a size_t. Add hash member.
6017 (struct ihash): Remove next member. Add hash member. Make
6018 name a flexible array member.
6019
6020 * cppfiles.c: Include hashtab.h.
6021 (include_hash): Delete.
6022 (IHASHSIZE): New macro.
6023 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
6024 (cpp_included): Do the hash lookup here.
6025 (_cpp_find_include_file): Rewrite.
6026 (cpp_read_file): Put the "fake" hash entry into the hash
6027 table. Honor the control_macro, if it turns out we've seen
6028 the file before. Don't push the buffer here.
6029 (_cpp_read_include_file): Push the buffer here.
6030 (OMODES): New macro. Use it whenever we call open(2).
6031
6032 * cpphash.c: Include hashtab.h.
6033 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
6034 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
6035 _cpp_lookup_slot): New functions.
6036 (HASHSIZE): new macro.
6037 (hashf, _cpp_install, _cpp_delete_macro): Delete.
6038 (_cpp_lookup): Use hashtab.h routines.
6039
6040 * cppinit.c: Include hashtab.h.
6041 (cpp_reader_init): Call _cpp_init_macro_hash and
6042 _cpp_init_include_hash. Don't allocate hashtab directly.
6043 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
6044 pfile->all_include_files.
6045 (initialize_builtins): Use _cpp_make_hashnode and
6046 htab_find_slot to add hash entries.
6047 (cpp_finish): Just call _cpp_dump_macro_hash.
6048 * cpplib.c: Include hashtab.h.
6049 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
6050 create hash entries.
6051 (do_pragma_poison, do_assert): Likewise.
6052 (do_include): Don't push the buffer here. Don't increment
6053 system_include_depth unless _cpp_read_include_file succeeds.
6054 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
6055 or htab_remove_elt.
6056 (do_pragma_implementation): Use alloca to create copy.
6057
6058 * Makefile.in: Update dependencies.
6059
6060 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6061
6062 * cppinit.c (cl_directive_handler): More K&R fixing.
6063
6064 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
6065
6066 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
6067 STACK_BOUNDARY.
6068 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
6069
6070 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6071
6072 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
6073 Change from char[] to macros.
6074
6075 2000-03-12 Neil Booth <NeilB@earthling.net>
6076
6077 * cppinit.c (cpp_start_read): Update indirect function
6078 call to K&R C.
6079
6080 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
6081
6082 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
6083 entry.
6084
6085 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6086 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
6087
6088 2000-03-11 Neil Booth <NeilB@earthling.net>
6089
6090 * cppinit.c (struct pending option): Replace undef with a
6091 pointer to a directive handling routine.
6092 (struct cpp_pending): Replace separate assert_ and define_
6093 lists with one directive_ list.
6094 (new_pending_define): Rename new_pending_directive. Extra
6095 argument is the directive's handling routine.
6096 (handle_option): Update to use new_pending_directive.
6097
6098 2000-03-11 Neil Booth <NeilB@earthling.net>
6099
6100 * cppfiles.c (file_cleanup, _cpp_find_include_file,
6101 remap_filename, _cpp_read_include_file, actual_directory,
6102 hack_vms_include_specification): Replace bcopy(), index() etc
6103 calls. Add casts to some allocations. Make some variables
6104 pointers to const [unsigned] char.
6105 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
6106 collect_formal_parameters): Similarly.
6107 * cppinit.c (struct pending_option, append_include_chain,
6108 cpp_options_init, cpp_reader_init, initialize_standard_includes,
6109 cpp_start_read, new_pending_define, handle_option): Similarly.
6110 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
6111 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
6112 do_pragma_implementation, detect_if_not_defined,
6113 do_ifdef, skip_if_group, cpp_get_token, parse_string,
6114 do_assert, do_unassert): Similarly.
6115 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
6116 function prototypes.
6117 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
6118
6119 2000-03-10 Richard Henderson <rth@cygnus.com>
6120
6121 * builtins.c (expand_builtin_strlen): Revert last change.
6122 Use emit_insn_before if we're at the beginning of a sequence.
6123
6124 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
6125
6126 * builtins.c (expand_builtin_strlen): Make sure that we have something
6127 at the beginning of the sequence.
6128
6129 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
6130 deferred inlines.
6131
6132 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
6133
6134 2000-03-10 Richard Henderson <rth@cygnus.com>
6135
6136 * except.c (can_throw): Use INTVAL on a CONST_INT.
6137 (reachable_handlers): Likewise.
6138 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
6139
6140 2000-03-10 Andreas Jaeger <aj@suse.de>
6141
6142 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
6143 MD_STARTFILE_PREFIX since those are not needed on linux.
6144 (ASM_FILE_START): New, from mips/gnu.h.
6145
6146 2000-03-09 Richard Henderson <rth@cygnus.com>
6147 Alex Samuel <samuel@codesourcery.com> and others
6148
6149 * Makefile.in (ssa.o): New rule.
6150 (OBJS): Add ssa.o.
6151 (STAGESTUFF): Add *.ssa and *.ussa.
6152 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
6153 * rtl.def (PHI): New RTL expression.
6154 * rtl.h (clear_log_links): New declaration.
6155 (convert_to_ssa): Likewise.
6156 (convert_from_ssa): Likewise.
6157 * flow.c (split_edge): If the entry node falls through to the
6158 split edge's source block, split the entry edge.
6159 (clear_log_links): New function.
6160 * toplev.c (ssa_dump): New variable.
6161 (flag_ssa): Likewise.
6162 (f_options): Add "ssa".
6163 (compile_file): Create SSA dump files.
6164 (rest_of_compilation): Go to and from SSA if enabled.
6165 (decide_d_option): Handle -de for SSA dump files.
6166 * ssa.c: New file.
6167
6168 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
6169
6170 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
6171 same as VAR_DECL.
6172
6173 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
6174
6175 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
6176
6177 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
6178
6179 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
6180 (MD_STARTFILE_PREFIX_1): New macro.
6181
6182 2000-03-09 Robert Lipe <robertl@sco.com>
6183
6184 * config/ia64/ia64.c: Include system.h.
6185
6186 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
6187
6188 * except.c (nothrow_function_p): If -fno-exceptions, just return.
6189 (init_eh_nesting_info): Likewise.
6190
6191 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
6192 (TREE_NOTHROW): Rename from TREE_RAISES.
6193 * toplev.c (rest_of_compilation): Set it.
6194 * print-tree.c (print_node): Adjust.
6195 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
6196 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
6197 * calls.c (emit_call_1): Add 'nothrow' parm. Add
6198 REG_EH_REGION note as appropriate.
6199 (libfunc_nothrow): New fn.
6200 (emit_library_call, emit_library_call_value): Use it.
6201 (expand_call): Check TREE_NOTHROW.
6202
6203 * varasm.c (make_decl_rtl): Skip initial '*' when setting
6204 DECL_ASSEMBLER_NAME.
6205
6206 2000-03-09 Andreas Jaeger <aj@suse.de>
6207
6208 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
6209 (TARGET_MEM_FUNCTIONS): Define.
6210
6211 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
6212
6213 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
6214
6215 * except.c (can_throw): See through a SEQUENCE.
6216 (nothrow_function_p): New fn.
6217 * except.h: Declare it.
6218 * function.c (current_function_nothrow): New var.
6219 (prepare_function_start): Initialize it.
6220 * output.h: Declare it.
6221 * toplev.c (rest_of_compilation): Set it.
6222 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
6223
6224 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
6225
6226 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
6227 match. (cpp_compare_defs): Count the nul separator when
6228 advancing over argument names.
6229
6230 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
6231
6232 * recog.c (preprocess_constraints): Matching constraints affect
6233 same alternative/different operand, not same operand/different
6234 alternative.
6235
6236 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
6237 register and a constant specially.
6238
6239 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6240
6241 * libgcc2.h: New file.
6242 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
6243
6244 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
6245
6246 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
6247 * configure: Regenerate.
6248 * config/ia64: New.
6249
6250 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
6251
6252 * Makefile.in (LIBCPP_DEPS): New macro.
6253 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
6254 it to declare deps.
6255 * cpperror.c: Include cpphash.h.
6256 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
6257 dingleberry.
6258 (lex): Don't use CPP_WARN_UNDEF.
6259 (_cpp_parse_expr): Return an int, the truth value.
6260 * cppfiles.c: Include cpphash.h.
6261 (_cpp_merge_include_chains): Move to cppinit.c and make static.
6262 * cppinit.c (include_defaults_array): Disentangle.
6263 (cpp_cleanup): Don't free the if stack here.
6264 (cpp_finish): Pop off all buffers, not just one.
6265 * cpplib.c (eval_if_expr): Return int.
6266 (do_xifdef): Rename do_ifdef.
6267 (handle_directive): Don't use CPP_PREPROCESSED.
6268 (cpp_get_token): Don't use CPP_C89.
6269 * fix-header.c: Don't use CPP_OPTIONS.
6270
6271 * cpplib.h: Move U_CHAR, enum node_type, struct
6272 file_name_list, struct ihash, is_idchar, is_idstart,
6273 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
6274 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
6275 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
6276 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
6277 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
6278 of _cpp_simplify_pathname, _cpp_find_include_file,
6279 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
6280 Move struct if_stack to cpplib.c. Move struct cpp_pending to
6281 cppinit.c.
6282 Change all uses of U_CHAR to be unsigned char instead.
6283 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
6284
6285 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
6286
6287 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
6288 (dwarf2out_begin_prologue): Set it.
6289 (output_call_frame_info): Don't emit EH unwind info for leaves.
6290
6291 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
6292 can occur outside of an EH region.
6293 * except.c: Correct comments about rethrow behavior.
6294 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
6295
6296 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
6297
6298 * flow.c (make_edges): Always call make_eh_edge for calls.
6299
6300 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
6301
6302 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
6303 (struct cpp_buffer): Remove fname and underflow fields.
6304 (struct cpp_reader): Remove get_token field.
6305 (struct include_hash): Rename to struct ihash. Add typedef to
6306 IHASH.
6307 (struct if_stack): Remove fname field.
6308 (IF_STACK_FRAME): Rename to IF_STACK.
6309
6310 * cpperror.c (print_containing_files): Trust that there are no
6311 macro buffers below the top file buffer.
6312 * cppfiles.c: Replace all references to 'struct include_hash'
6313 with 'IHASH'. Rename initialize_input_buffer to
6314 init_input_buffer. Don't set or reference cpp_buffer->fname,
6315 use buffer->ihash->name instead.
6316 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
6317 not CPP_NULL_BUFFER.
6318 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
6319 IF_STACK_FRAME, IHASH not struct include_hash.
6320 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
6321 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
6322 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
6323 references to cpp_buffer->fname (delete entirely, or use
6324 ->ihash->name instead) and IF_STACK->fname.
6325 (cpp_push_buffer): Don't set new->underflow.
6326 (do_include): Use cpp_file_buffer.
6327
6328 * cpphash.c (collect_formal_parameters): Remove duplicate
6329 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
6330 used as a macro argument name. Don't append "..." to namebuf
6331 for varargs macros. After we're done scanning, go through
6332 namebuf and make it NUL separated, not comma separated.
6333 (_cpp_compare_defs): Remove register tag from variables.
6334 Expect defn->argnames to be NUL separated.
6335 (_cpp_dump_definition): Expect defn->argnames to be NUL
6336 separated and in forward order.
6337 * cpphash.h: Update documentation of argnames field.
6338
6339 2000-03-08 Richard Henderson <rth@cygnus.com>
6340
6341 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
6342 to fail. Don't pre-expand the source operand.
6343
6344 * i386.md (strlensi): Initialize eoschar and align before use.
6345
6346 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
6347
6348 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
6349 CONSTRUCTOR element.
6350
6351 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
6352
6353 * mips.c (mips_expand_prologue): If the last
6354 named argument is the vararg marker "va_list", treat it as
6355 an unnamed argument.
6356
6357 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
6358
6359 * dbxout.c (dbxout_parms): When correcting for promoted
6360 big-endian parameters, use the mode of the DECL_RTL rather
6361 than UNITS_PER_WORD.
6362
6363 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
6364
6365 * c-common.h (make_fname_decl): Declare.
6366 * c-common.c (make_fname_decl): Define.
6367 (declare_hidden_char_array): Remove.
6368 (declare_function_name): Use make_fname_decl.
6369 * c-decl.c (c_make_fname_decl): New function.
6370 (init_decl_processing): Set make_fname_decl.
6371
6372 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
6373
6374 * cccp.c (handle_directive): Initialize backslash_newlines_p.
6375
6376 2000-03-07 Philipp Thomas <pthomas@suse.de>
6377
6378 * po/POTFILES.in: Remove cppalloc.c from file list.
6379
6380 2000-03-07 Steve Chamberlain <sac@pobox.com>
6381
6382 * pj.c (pj_expand_prologue): current_function->args_info is
6383 now current_function_args_info.
6384
6385 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
6386 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
6387 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
6388
6389 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6390
6391 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
6392 output as hexadecimal rather than the default octal.
6393
6394 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
6395
6396 * cpphash.c (special_symbol): Fix thinko in previous commit.
6397
6398 2000-03-07 Neil Booth <NeilB@earthling.net>
6399
6400 * cppexp.c (struct operation, left_shift, right_shift,
6401 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
6402 "int"s to "unsigned int"s.
6403 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
6404 Similarly.
6405 * cpplib.h: Update for above.
6406 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
6407 returned from allocations.
6408
6409 * cppinit.c (opt_comp, parse_options): New functions.
6410 (handle_option): Use parse_option to parse a single command
6411 line option, that possibly takes an argument.
6412 (cpp_handle_options): Sort the array of command line options on
6413 first invocation (non-ASCII hosts only).
6414 (print_help): Update.
6415
6416 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
6417
6418 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
6419 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
6420
6421 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
6422 initialized.
6423 * cppinit.c (cpp_cleanup): Free imp->nshort also.
6424
6425 * cpperror.c (cpp_print_containing_files,
6426 cpp_print_file_and_line, v_cpp_message): Rename to
6427 print_containing_files, print_file_and_line, and v_message.
6428 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
6429 to _cpp_parse_expr, parse_escape, and lex.
6430 (parse_charconst): Remove broken multibyte support.
6431 * cppfiles.c (include_hash): Make static.
6432 (cpp_included): New function.
6433 (merge_include_chains, find_include_file, finclude,
6434 simplify_pathname): Rename to _cpp_merge_include_chains,
6435 _cpp_find_include_file, _cpp_read_include_file, and
6436 _cpp_simplify_pathname.
6437 * cpphash.c (cpp_lookup, free_definition, delete_macro,
6438 cpp_install, create_definition, macroexpand, compare_defs,
6439 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
6440 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
6441 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
6442 * cppinit.c (cpp_handle_option): Rename to handle_option, make
6443 static.
6444 * cpplib.c: Remove extern prototype of cpp_parse_expr.
6445
6446 * cpphash.h: Update prototypes.
6447 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
6448
6449 2000-03-07 Andrew Haley <aph@cygnus.com>
6450
6451 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
6452 PTRDIFF_TYPE should be based solely on Pmode.
6453 (SIZE_TYPE): ditto.
6454
6455 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6456
6457 * rtl.h (rtunion_def): Constify member `rtstr'.
6458 (emit_line_note_after, emit_line_note, emit_line_note_force,
6459 emit_note, decode_asm_operands): Constify.
6460
6461 * cse.c (canon_hash): Likewise.
6462
6463 * dbxout.c (dbxout_block): Likewise.
6464
6465 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
6466 v_warning_for_asm): Likewise.
6467
6468 * dwarfout.c (function_start_label): Likewise.
6469
6470 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
6471 emit_line_note_force): Likewise.
6472
6473 * final.c (last_filename, asm_insn_count, final_scan_insn,
6474 output_source_line): Likewise.
6475
6476 * function.h (struct emit_status): Likewise.
6477
6478 * gcse.c (hash_expr_1): Likewise.
6479
6480 * genattr.c (gen_attr, main): Likewise.
6481
6482 * genattrtab.c (struct function_unit, current_alternative_string,
6483 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
6484 attr_numeral, check_attr_test, check_attr_value,
6485 convert_set_attr_alternative, convert_set_attr,
6486 compute_alternative_mask, simplify_by_exploding, gen_attr,
6487 gen_unit): Likewise.
6488
6489 * genflags.c (gen_insn): Likewise.
6490
6491 * gengenrtl.c (type_from_format): Likewise.
6492
6493 * genopinit.c (gen_insn): Likewise.
6494
6495 * genoutput.c (n_occurrences, process_template, process_template):
6496 Likewise.
6497
6498 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
6499 Likewise.
6500
6501 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
6502 Likewise.
6503
6504 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
6505 ggc_set_mark, ggc_get_size): Likewise.
6506
6507 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
6508
6509 * optabs.c (init_one_libfunc): Likewise.
6510
6511 * output.h (assemble_start_function): Likewise.
6512
6513 * recog.c (decode_asm_operands): Likewise.
6514
6515 * toplev.c (rest_of_compilation): Likewise.
6516
6517 * tree.h (emit_line_note_after, emit_line_note,
6518 emit_line_note_force): Likewise.
6519
6520 * varasm.c (asm_output_bss, asm_output_aligned_bss,
6521 asm_emit_uninitialised, assemble_start_function,
6522 assemble_variable, const_hash, compare_constant_1,
6523 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
6524
6525 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
6526
6527 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
6528
6529 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
6530
6531 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
6532
6533 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
6534 arm_dllimport_name_p): Likewise.
6535
6536 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
6537 Likewise.
6538
6539 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
6540
6541 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6542
6543 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
6544 arm_mark_dllexport, arm_mark_dllimport,
6545 arm_pe_encode_section_info): Likewise.
6546
6547 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
6548 ASM_FINISH_DECLARE_OBJECT): Likewise.
6549
6550 * arm/thumb.c (thumb_function_prologue): Likewise.
6551
6552 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
6553
6554 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6555
6556 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
6557
6558 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
6559
6560 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
6561
6562 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6563
6564 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
6565 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
6566
6567 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
6568
6569 * i386/i386.c (asm_output_function_prefix): Likewise.
6570
6571 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
6572
6573 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6574
6575 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
6576
6577 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
6578 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
6579 ASM_OUTPUT_SECTION_NAME): Likewise.
6580
6581 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
6582
6583 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
6584
6585 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
6586
6587 * m32r/m32r.c (m32r_encode_section_info): Likewise.
6588
6589 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6590
6591 * mcore/mcore.c (mcore_encode_section_info): Likewise.
6592
6593 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6594
6595 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6596
6597 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6598
6599 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
6600
6601 * mips/mips.md (movdi, movsi): Likewise.
6602
6603 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6604
6605 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6606
6607 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6608
6609 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
6610 ASM_OUTPUT_ASCII): Likewise.
6611
6612 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
6613 output_mi_thunk, output_toc): Likewise.
6614
6615 * rs6000/rs6000.md (movsi): Likewise.
6616
6617 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
6618
6619 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
6620
6621 * v850/v850.c (print_operand, print_operand_address,
6622 v850_encode_data_area): Likewise.
6623
6624 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
6625
6626 * config/mips/mips.md (zero_extendsidi2): Always force operand
6627 one to memory for mips16.
6628
6629 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6630
6631 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
6632 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
6633 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
6634 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
6635 (min_precision): Result is unsigned.
6636 (add_double, neg_double, mul_double): Low word is unsigned.
6637 (lshift_double, rshift_double, lrotate_double): Likewise.
6638 (rrotate_double, div_and_round_double): Likewise.
6639 (tree_floor_log2, compare_tree_int): New functions.
6640 (preserve_rtl_expr_temps): New declaration.
6641 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
6642 (decl_attributes): Use tree_log2 to find alignment.
6643 Check for TREE_INT_CST_HIGH for format args.
6644 (min_precision): Now unsigned.
6645 Use tree_floor_log2.
6646 (truthvalue_conversion): Delete long-disabled code.
6647 * c-decl.c (finish_struct): Clean up tests on field width.
6648 (finish_function): Use compare_tree_int.
6649 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
6650 * c-typeck.c (comptypes): Use tree_int_cst_equal.
6651 (default_conversion, digest_init): Use compare_tree_int.
6652 (build_binary_op): Use integer_all_onesp and compare_tree_int.
6653 Fix type errors in forming masks.
6654 * calls.c (initialize_argument_information): Use compare_tree_int.
6655 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
6656 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
6657 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
6658 (store_field): Use compare_tree_int.
6659 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
6660 (expand_expr, case ARRAY_REF): Use compare_tree_int.
6661 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
6662 (do_store_flag): Use compare_tree_int.
6663 * fold-const.c (encode, decode): Low part is always unsigned.
6664 (force_fit_type, add_double, neg_double, mul_double): Likewise.
6665 (lshift_double, rshift_double, lrotate_double): Likewise.
6666 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
6667 (fold_convert): Use compare_tree_int.
6668 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
6669 (invert_truthvalue, case INTEGER_CST): Likewise.
6670 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
6671 * mkdeps.c (deps_dummy_targets): Make I unsigned.
6672 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
6673 (lshift_double, rshift_double, lrotate_double, rrotate_double):
6674 Likewise.
6675 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
6676 (expand_end_case): Use compare_tree_int.
6677 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
6678 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
6679 (layout_decl): Likewise.
6680 (layout_record, layout_union): Make sizes unsigned.
6681 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
6682 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
6683 * tree.c (struct type_hash): hashcode is unsigned.
6684 (build_type_attribute_variant, type_hash_list): Likewise.
6685 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
6686 (attribute_hash_list, build_array_type, build_method_type): Likewise.
6687 (build_complex_type): Likewise.
6688 (real_value_from_int_cst): Remove unneeded casts.
6689 (integer_all_onesp): Add casts.
6690 (tree_floor_log2, compare_tree_int): New functions.
6691 (build_index_type): Use tree_int_cst_sgn.
6692 * varasm.c (assemble_variable): Use compare_tree_int.
6693
6694 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
6695
6696 * cpphash.c (collect_expansion): Also catch ## at start of macro.
6697
6698 * varasm.c (make_decl_rtl): Don't add a number to members of
6699 local classes.
6700 (make_function_rtl): Likewise.
6701
6702 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6703
6704 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
6705 patch from 2000-01-28.
6706
6707 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
6708
6709 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
6710 filled with an insn from the jump target.
6711
6712 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6713
6714 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
6715 (c4x_external_ref): Likewise.
6716 * config/c4x/c4x.c (struct name_list): Likewise.
6717
6718 1999-12-16 Ben Collins <bcollins@debian.org>
6719
6720 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
6721 argument to genmultilib.
6722 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
6723 the contents into the multilib.h header.
6724 * gcc.c: Declare multilib_exclusions for the specs file.
6725 (set_multilib_dir): Use it.
6726 (print_multilib_info): Likewise.
6727 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
6728 to pass to genmultilib.
6729
6730 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6731
6732 * builtins.c (built_in_class_names, built_in_names): Constify a
6733 char*.
6734
6735 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
6736 int.
6737 (_mcleanup): Ensure value matches format specifier in sprintf.
6738
6739 * cpphash.c (special_symbol): Don't needlessly cast away
6740 const-ness.
6741
6742 * cppinit.c (base_name): Delete unused prototype.
6743
6744 * mkdeps.c (deps_init): Make definition K&R safe.
6745
6746 * tree.h (built_in_class_names, built_in_names): Constify a
6747 char*.
6748
6749 2000-03-06 Jakub Jelinek <jakub@redhat.com>
6750
6751 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
6752 floating point instructions for epilogue delay.
6753
6754 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
6755 to gas if it supports .register pseudo.
6756
6757 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
6758 LONG_DOUBLE_TYPE_SIZE if not defined.
6759 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
6760 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
6761 * real.c: Likewise.
6762 * gengenrtl.c: Likewise.
6763 * print-rtl.c: Likewise.
6764 * rtl.c: Likewise.
6765 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
6766 MASK_LONG_DOUBLE_128.
6767 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
6768 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
6769 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
6770 (SUBTARGET_SWITCHES): Define.
6771 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
6772 with -mlong-double-128.
6773 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
6774 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
6775 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
6776 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
6777 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
6778 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
6779 with -mlong-double-128.
6780 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
6781 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
6782 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
6783 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
6784 TARGET_LONG_DOUBLE_128): Define.
6785 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
6786 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
6787 long double on TARGET_ARCH64.
6788
6789 2000-03-06 Mark Mitchell <mark@codesourcery.com>
6790
6791 * function.c (free_temps_for_rtl_expr): Don't free slots
6792 that have been pushed into a higher level.
6793
6794 Revert this patch:
6795 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6796
6797 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6798
6799 * basic-block.h (ALLOCA_REG_SET): Remove.
6800 (INITIALIZE_REG_SET): New macro.
6801 * flow.c (update_life_info): Use it.
6802 (calculate_global_regs_live): Likewise.
6803 (propagate_block): Likewise.
6804 * global.c (build_insn_chain): Likewise.
6805 * haifa-sched.c (schedule_region): Likewise.
6806
6807 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
6808
6809 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
6810 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
6811 (DWARF_ARANGES_PAD_SIZE): New define.
6812 (output_aranges): Use it to pad the address range header.
6813 (DWARF_ROUND): Fix for non power of 2 rounding.
6814
6815 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
6816
6817 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
6818
6819 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6820
6821 * tree.def (RTL_EXPR): Update documentation.
6822 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
6823 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
6824 * function.c (preserve_rtl_expr_temp): New function.
6825 (preserve_rtl_expr_temps): Likewise.
6826 (preserve_rtl_expr_result): Use it.
6827
6828 Revert this patch:
6829 2000-03-04 Mark Mitchell <mark@codesourcery.com>
6830
6831 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
6832
6833 * regmove.c (copy_src_to_dest) Do not create src->dest move
6834 for unchanging destination.
6835
6836 2000-03-04 Mark Mitchell <mark@codesourcery.com>
6837
6838 * function.h (struct sequence_stack): Remove rtl_expr.
6839 (struct emit_staus): Likewise.
6840 (seq_rtl_expr): Remove.
6841 * tree.h (free_temps_for_rtl_expr): Don't declare.
6842 (start_sequence_for_rtl_expr): Likewise.
6843 * rtl.h (preserve_rtl_expr_result): Likewise.
6844 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
6845 (start_sequence_for_rtl_expr): Remove.
6846 (push_topmost_sequence): Don't save sequence_rtl_expr.
6847 (pop_topmost_sequence): Remove comment about not restoring it.
6848 (end_sequence): Don't set seq_rtl_expr.
6849 (init_emit): Don't initialize it.
6850 (mark_sequence_stack): Don't mark it.
6851 (mark_emit_status): Likewise.
6852 * except.c (protect_with_terminate): Use
6853 start_sequence_for_rtl_expr, not start_sequence.
6854 * expr.c (expand_expr, case RTL_EXPR): Don't call
6855 preserve_rtl_expr_result or free_temps_for_rtl_expr.
6856 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
6857 (preserve_rtl_expr_result): Remove.
6858 (free_temps_for_rtl_expr): Likewise.
6859 (pop_temp_slots): Likewise.
6860 (mark_temp_slot): Don't mark the rtl_expr.
6861 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
6862 start_sequence_for_rtl_expr.
6863
6864 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
6865
6866 * mkdeps.c, mkdeps.h: New files.
6867 * po/POTFILES.in: Add them.
6868 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
6869 (cpplib.o, cppinit.o): Depend on mkdeps.h.
6870 (mkdeps.o): New target.
6871
6872 * cppfiles.c: Delete deps_output.
6873 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
6874 OBJECT_SUFFIX, and base_name.
6875 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
6876 the include hash.
6877 (initialize_dependency_output): Use deps_init,
6878 deps_add_target, deps_calc_target, and deps_add_dep. Remove
6879 all the unnecessary string bashing.
6880 (cpp_finish): Use deps_write. Remove an unnecessary nesting
6881 level.
6882 * cpplib.c (do_include): Use deps_add_dep.
6883 * cpplib.h (struct cpp_reader): Replace deps_buffer,
6884 deps_allocated_size, deps_size, deps_column members with
6885 single pointer to a struct deps. Delete prototype of
6886 deps_output.
6887
6888 * cppinit.c: Fix thinko in previous patch.
6889
6890 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6891
6892 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
6893 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
6894 (mode_for_size_tree): New function.
6895 (layout_decl, layout_type): Call it and clean up BLKmode checks.
6896 * tree.h (mode_for_size_tree): New declaration.
6897
6898 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
6899
6900 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
6901
6902 * stmt.c (is_body_block): Move...
6903 * dwarfout.c, dwarf2out.c: ...from here.
6904 * tree.h: Declare it.
6905 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
6906 * final.c (final_start_function): Do call remove_unnecessary_notes
6907 when scheduling.
6908
6909 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
6910
6911 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
6912
6913 * cpplib.h (_dollar_ok): New macro.
6914 (is_idchar, is_idstart): Use it.
6915 (IStable): Rename to _cpp_IStable. Declare it const if
6916 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
6917 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
6918 is_space): Update for renamed IStable.
6919
6920 * cppinit.c: Delete all references to FAKE_CONST and CAT
6921 macros. Define init_IStable as empty macro if gcc >=2.7 or
6922 C99. Change TABLE() to ISTABLE and hardcode name of table.
6923 (cpp_start_read): Don't change the IStable based on
6924 dollars_in_ident.
6925
6926 * cpphash.c (unsafe_chars): Add pfile argument. All callers
6927 changed. Handle '$' for char1 correctly.
6928 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
6929
6930 * cppexp.c (tokentab2): Make const.
6931 (cpp_lex): Make toktab const.
6932 * cppinit.c (include_defaults_array): Make const.
6933 (initialize_standard_includes): Make default_include const.
6934
6935 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
6936
6937 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
6938 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
6939 (gen_decl_die): Likewise.
6940 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
6941 (output_decl): Likewise.
6942
6943 * varasm.c (make_function_rtl): If we change the name used in the
6944 rtl, update DECL_ASSEMBLER_NAME accordingly.
6945 (make_decl_rtl): Likewise.
6946
6947 * toplev.c (rest_of_compilation): Tweak formatting.
6948
6949 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
6950 remove_unnecessary_notes.
6951 (debug_ignore_block): New fn.
6952 * toplev.h: Declare it.
6953 * emit-rtl.c (remove_unncessary_notes): Call it.
6954 * dwarf2out.c (dwarf2out_ignore_block): New fn.
6955 * dwarf2out.h: Declare it.
6956 * final.c (final_start_function): Don't call remove_unnecessary_notes
6957 if we did insn scheduling.
6958
6959 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
6960
6961 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
6962 * cpplib.h: Delete SET_CPP_PEDANTIC.
6963
6964 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6965
6966 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
6967 result is a RECORD_TYPE.
6968
6969 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
6970
6971 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
6972
6973 2000-03-03 Richard Henderson <rth@cygnus.com>
6974
6975 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
6976 addition over compliments over shifts.
6977
6978 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6979
6980 * reload1.c (reload_combine_note_use): Handle return register USEs.
6981 REG case: Handle multi-hard-register hard regs.
6982
6983 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6984
6985 * md.texi: Document use of '*' in insn pattern name.
6986
6987 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
6988
6989 * calls.c (special_function_p): operator new may not be malloc-like.
6990
6991 * gcse.c (dump_hash_table): Really fix error in last change.
6992
6993 2000-03-02 Denis Chertykov <denisc@overta.ru>
6994
6995 * avr.c (print_operand): Use print_operand_address instead of
6996 output_addr_const.
6997 * avr/libgcc.S: Cleanup code.
6998
6999 2000-03-02 Richard Henderson <rth@cygnus.com>
7000
7001 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
7002
7003 2000-03-02 Mark Mitchell <mark@codesourcery.com>
7004
7005 * tree.h (TYPE_ALIGN_UNIT): New macro.
7006
7007 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
7008
7009 * i386.c: (constant_call_address_operand): Reject CONST_INT.
7010
7011 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
7012
7013 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
7014 for the buffer.
7015 (SET_CPP_PEDANTIC): New macro.
7016 * cpplib.c (do_include): Don't bother checking system_header_p.
7017 (do_warning, do_ident, do_assert, do_unassert): Likewise.
7018 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
7019
7020 * function.h (struct expr_status): Add x_arg_space_so_far.
7021 (arg_space_so_far): New macro.
7022 * expr.c (init_expr): Initialize it.
7023 * calls.c (emit_call_1): Reset it.
7024 (compute_argument_block_size, expand_call): Use it.
7025 (expand_call, store_one_arg): Increment it.
7026
7027 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7028
7029 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
7030 a UNION_TYPE.
7031
7032 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
7033
7034 * cppfiles.c (cpp_read_file): New function.
7035
7036 * cpphash.c (collect_expansion): Make sure to reset last_token
7037 to NORM when we hit a string. Handle trailing whitespace
7038 properly when the expansion is empty.
7039 (create_definition): Disable line commands while parsing the
7040 directive line.
7041 (dump_definition): If pfile->lineno == 0, output a line
7042 command ahead of the dump, and add a trailing newline.
7043
7044 * cppinit.c (append_include_chain): Add fifth argument, which
7045 indicates whether or not system headers are C++ aware.
7046 (initialize_standard_includes): New function,
7047 broken out of read_and_prescan. Pass 'cxx_aware' value from
7048 the include_defaults_array on to append_include_chain.
7049 (dump_special_to_buffer): Const-ify char array.
7050 (builtin_array): Don't dump __BASE_FILE__.
7051 (cpp_start_read): Use cpp_read_file. Reorder code for
7052 clarity. Don't output line commands here for -D/-A/-U
7053 switches. Don't call deps_output for files included with
7054 -include or -imacros.
7055
7056 * cpplib.c (do_define): Don't pay any attention to the second
7057 argument.
7058 (cpp_expand_to_buffer): Disable line commands while scanning.
7059 (output_line_command): Work in the file buffer.
7060 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
7061 Fix formatting of comments. Prototype cpp_read_file.
7062
7063 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7064
7065 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
7066 reference the language-equivalent of sizetype.
7067 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
7068 * fold-const.c (size_binop, size_diffop): Put back checks.
7069 * gcse.c (dump_hash_table): Fix minor error in last change.
7070 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
7071 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
7072 all sizetypes.
7073
7074 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
7075
7076 * calls.c (expand_call) Do not attempt to combine stack adjustments
7077 with inhibit_defer_pop set.
7078
7079 2000-03-01 Mark Mitchell <mark@codesourcery.com>
7080
7081 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
7082 the DECL_SIZE for a FIELD_DECL.
7083
7084 2000-03-01 Bruce Korb <bkorb@gnu.org>
7085
7086 * fixinc/inclhack.tpl: remove unused symlinks
7087 * fixinc/README: GCC Maintainer info
7088 * fixinc/inclhack.sh: regen
7089 * fixinc/fixincl.sh: regen
7090
7091 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
7092
7093 * cpphash.c (collect_expansion): Trim trailing white space
7094 from macro definitions, but don't go past the last insertion
7095 point.
7096
7097 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
7098
7099 * i386.md (mulqi3): New pattern.
7100
7101 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
7102
7103 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
7104 token types.
7105 (struct cpp_reader): Add parsing_if_directive and
7106 parsing_define_directive flags.
7107 (struct cpp_options): Remove output_conditionals flag.
7108 (check_macro_name): Delete prototype.
7109
7110 * cpphash.h (struct macrodef): Delete.
7111 (struct reflist): Separate from struct definition.
7112 (struct definition): Remove unused fields. Add column number.
7113 (create_definition): Returns a DEFINITION *. Takes a
7114 cpp_reader * and an int.
7115
7116 * cpphash.c (SKIP_WHITE_SPACE): Delete.
7117 (PEEKC): Copy defn from cpplib.c.
7118 (rest_extension, REST_EXTENSION_LENGTH): Delete.
7119 (struct arg): New.
7120 (struct arglist): Simplify.
7121 (collect_expansion): Rewrite. Get tokens by calling
7122 cpp_get_token. Add more error checking.
7123 (collect_formal_parameters): New function, broken out of
7124 create_definition and reworked to use get_directive_token.
7125 (create_definition): All real work is now in collect_expansion
7126 and collect_formal_parameters. do_define handles finding the
7127 macro name. Return a DEFINITION, not a MACRODEF.
7128 (macroexpand): Replace bcopy with memcpy throughout. Replace
7129 character-at-a-time copy loop with memcpy and pointer increments.
7130 (compare-defs): d1->argnames / d2->argnames might be null.
7131
7132 * cpplib.c (copy_rest_of_line): Delete function.
7133 (skip_rest_of_line): Do all the work ourselves.
7134 (skip_string): New function.
7135 (parse_string): Use skip_string.
7136 (get_macro_name): New function.
7137 (check_macro_name): Delete.
7138 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
7139 (cpp_skip_hspace): Use CPP_BUMP_LINE.
7140 (handle_directive): ICE if we're called on a macro buffer.
7141 (do_define): Determine macro name and type (funlike/objlike)
7142 here. Expunge all uses of MACRODEF.
7143 (cpp_push_buffer): Set line_base to NULL.
7144 (do_undef, read_line_number): Don't worry about getting a POP token.
7145 (eval_if_expression): Set/reset parsing_if_directive around
7146 cpp_parse_expr. Don't clear only_seen_white.
7147 (skip_if_group): Remove output_conditionals logic. Use
7148 skip_rest_of_line.
7149 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
7150 tokens under appropriate conditions.
7151 (cpp_unassert): Call do_unassert not do_assert. Oops.
7152
7153 * cppexp.c (parse_defined): New function, break out of
7154 cpp_lex.
7155 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
7156 ourselves, with cpp_defined.
7157 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
7158
7159 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
7160 * gcc.dg/strpaste-2.c: New.
7161
7162 2000-02-29 Mark Mitchell <mark@codesourcery.com>
7163
7164 * fold-const.c (size_binop): Don't asert inputs are the same and
7165 have TYPE_IS_SIZETYPE set.
7166 (size_diffop): Likewise.
7167
7168 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
7169
7170 * dwarfout.c (output_block): Output abstract blocks even if they
7171 don't have TREE_ASM_WRITTEN set.
7172
7173 * calls.c (emit_library_call): Check for null REG.
7174
7175 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
7176
7177 * c-decl.c (current_function_decl): Move to toplev.c.
7178 (init_decl_processing): Don't add current_function_decl as a ggc
7179 root here.
7180 * dbxout.c (dbxout_symbol): Change return type to int.
7181 (dbxout_symbol_location, dbxout_syms): Likewise.
7182 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
7183 any locals. Use current_function_func_begin_label if set.
7184 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
7185 * dwarf2out.c (dwarf2out_begin_prologue): Set
7186 current_function_func_begin_label.
7187 * final.c (final_start_function): Reset it.
7188 * toplev.c (current_function_decl): Define it here.
7189 (current_function_func_begin_label): New variable.
7190 (main): Add both as ggc roots.
7191 * tree.h (current_function_func_begin_label): Declare.
7192
7193 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7194
7195 * gcse.c: Cleanups throughout: mostly white-space, but also
7196 some minor rearrangement of code.
7197
7198 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
7199
7200 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
7201 returns a PARALLEL. Use emit_group_load and use_group_regs
7202 as needed.
7203 (emit_library_call_value): Similarly.
7204
7205 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
7206 * pa/quadlib.asm: Remove.
7207 * pa/quadlib.c: New file.
7208
7209 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
7210 * configure: Rebuilt.
7211
7212 2000-02-29 Philip Blundell <pb@futuretv.com>
7213
7214 * config/arm/conix-elf.h: New file.
7215 * configure.in (arm*-*-conix*): New configuration.
7216 * configure: Regenerate.
7217
7218 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
7219
7220 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
7221 don't have TREE_ASM_WRITTEN set.
7222
7223 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7224
7225 * Eliminate DECL_FIELD_SIZE.
7226 * builtins.c (built_in_class_names, built_in_names): New variables.
7227 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
7228 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
7229 DECL_SIZE, not DECL_FIELD_SIZE.
7230 * print-tree.c (print_node): Remove code that prints extra blank
7231 lines in some cases.
7232 Properly handle inline and builtin function cases.
7233 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
7234 * tree.h (built_in_class_named, built_in_names): New declarations.
7235 (union tree_decl): Rename internal unions to u1 and u2 and change
7236 some of their components.
7237 Add new field built_in_class.
7238 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
7239 Reflect above changes.
7240 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
7241 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
7242 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
7243 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
7244
7245 2000-02-28 Dmitri Makarov <dim@windriver.com>
7246
7247 * extend.texi: Document ARM's support for long/short calls.
7248
7249 * invoke.texi: Document ARM's -mlong-calls command line switch.
7250
7251 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
7252 (arm_encode_call_attribute): Add prototype.
7253 (arm_set_default_type_attribute): Add prototype.
7254 (arm_strip_name_encoding): Add prototype.
7255
7256 * config/arm/arm.c (arm_init_cumulative_args): replace
7257 initialisation og 'long_calls' field with initialisation of
7258 'call_cookie' field.
7259 (enum arm_pragma_enum): New enum.
7260 (arm_pragma_long_calls): New static variable.
7261 (arm_process_pragma): Also process "#pragma long_calls_off".
7262 (arm_valid_type_attribute_p): Accept short_call attribute.
7263 (arm_comp_type_attributes): Check long/short call attributes.
7264 (arm_encode_call_attribute): New function: Encode long_call
7265 or short_call attribute in function name.
7266 (arm_set_default_type_attributes): New function: Assign
7267 default attributes to newly defined type.
7268 (current_file_function_operand): New function: Return true if
7269 the symbol is a function which has already been compiled.
7270 (arm_is_longcall_p): New function: Return true if the
7271 indicated function should be called via a long call.
7272 (arm_get_strip_length): New function. Returns number of
7273 prefix characters to be stripped from a function's name.
7274 (arm_strip_name_encoding): New function. Strip prefix characters
7275 from a function's name.
7276
7277 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
7278 with 'call_cookie'.
7279 (SHORT_CALL_FAG_CHAR): Define.
7280 (LONG_CALL_FAG_CHAR): Define.
7281 (ENCODED_SHORT_CALL_ATTR_P): Define.
7282 (ENCODED_LONG_CALL_ATTR_P): Define.
7283 (ARM_NAME_ENCODING_LENGTHS): Define.
7284 (STRIP_NAME_ENCODING): Define.
7285 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
7286 (ARM_ENCODE_CALL_TYPE): Define.
7287 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
7288 (ARM_DECLARE_FUNCTION_SIZE): Define.
7289 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
7290
7291 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
7292 if a long call is needed.
7293 (call_value): Ditto.
7294 (call_symbol): Ditto.
7295
7296 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
7297 ARM_DECLARE_FUNCTION_SIZE.
7298
7299 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
7300 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
7301 (ARM_STRIP_NAME_ENCODING): Undefine.
7302 (STRIP_NAME_ENCODING): Undefine.
7303 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
7304 (ASM_DECLARE_FUNCTION_NAME): Ditto.
7305 (ASM_OUTPUT_COMMON): Ditto.
7306 (ASM_DECLARE_OBJECT_NAME): Ditto.
7307
7308 * config/arm/pe.c (arm_dllexport_name_p): Check for
7309 ARM_PE_FLAG_CHAR.
7310 (arm_dllimport_name_p): Ditto.
7311 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
7312 (arm_mark_dllimport): Ditto.
7313
7314 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7315
7316 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
7317
7318 2000-02-28 Mark Mitchell <mark@codesourcery.com>
7319
7320 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
7321
7322 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
7323
7324 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
7325 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
7326 NO_BUILTIN_WCHAR_TYPE is not defined.
7327 (CPP_WCHAR_TYPE): Delete.
7328 * cccp.c (main): Don't change wchar_type if cplusplus.
7329 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
7330
7331 2000-02-28 Nick Clifton <nickc@cygnus.com>
7332
7333 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
7334
7335 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
7336
7337 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
7338 (ASM_WEAKEN_LABEL): Define.
7339
7340 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
7341
7342 * expr.c (store_constructor): Do not emit USE.
7343 * rtl.h (stupid_life_analysis): Remove.
7344
7345 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7346
7347 * function.c (number_blocks): Reset next_block_index based on
7348 what debugging format is used, not what is defined.
7349
7350 * lcm.c: Minor reformatting throughout.
7351 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
7352
7353 * toplev.c (rest_of_compilation): Account for time in
7354 optimize_mode_switching.
7355
7356 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
7357 if only marking labels.
7358
7359 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
7360
7361 * calls.c (expand_call): Attempt to combine stack adjustments with
7362 pending stack adjustments.
7363
7364 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7365
7366 * loop.c (reg_in_basic_block_p): Don't abort when falling through
7367 to the end of the function.
7368
7369 2000-02-27 Mark Mitchell <mark@codesourcery.com>
7370
7371 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
7372 blocks.
7373 * final.c (next_block_index): Remove.
7374 (max_block_depth): Likewise.
7375 (pending_blocks): Likewise.
7376 (init_final): Don't initialize them.
7377 (final_start_function): Don't set next_block_index. Set up
7378 BLOCK_NUMBER.
7379 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
7380 * function.h (number_blocks): New function.
7381 * function.c (get_block_vector): New function.
7382 (identify_blocks): Use it.
7383 (reorder_blocks): Set NOTE_BLOCK.
7384 (number_blocks): New function.
7385 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
7386 * tree.h (BLOCK_NUMBER): New macro.
7387 (tree_block): Add block_num field.
7388 * dbxout.c (next_block_number): Remove.
7389 (dbxout_init): Don't set it.
7390 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
7391 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
7392 block numbers.
7393 * toplev.c (rest_of_compilation): Always call
7394 find_loop_tree_blocks. Fix indentation.
7395 * dwarf2out.c (next_block_number): Remove.
7396 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
7397 to determine block numbers.
7398 (gen_inlined_subroutine_die): Likewise.
7399 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
7400 (decls_for_scope): Don't increment next_block_number.
7401 * dwarfout.c (next_block_number): Remove.
7402 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
7403 to determine block numbers.
7404 (output_inlined_subroutine_die): Likewise.
7405 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
7406 (output_decls_for_scope): Don't increment next_block_number.
7407 * sdbout.c (next_block_number): Remove.
7408 (sdbout_block): Use BLOCK_NUMBER.
7409 (sdbout_begin_block): Simplify.
7410 * xcoffout.c (next_block_number): Remove.
7411 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
7412 (xcoffout_begin_block): Don't set next_block_number.
7413 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
7414 next_block_number.
7415
7416 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7417
7418 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
7419 (expand_builtin_strcpy): Pass correct type to size_binop.
7420 (expand_builtin_strcmp): Likewise.
7421 Clean up conditional structure.
7422 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
7423 (complete_array_type): Don't use size_binop for MAXINDEX.
7424 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
7425 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
7426 (c_alignof): Use size_one_node.
7427 (build_unary_op): Pass arg of proper type to size_binop.
7428 (really_start_incremental_init, push_init_level): Use sizetype for
7429 constructor{,_bit,_unfilled}_index.
7430 (pop_init_label, output_init_element): Likewise.
7431 (output_pending_init_elements, process_init_element): Likewise.
7432 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
7433 * expr.c (store_expr): Use size_int.
7434 (store_constructor): Use proper types for size_binop args.
7435 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
7436 (expand_expr_unaligned): Likewise.
7437 (string_contant): Return object of sizetype.
7438 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
7439 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
7440 (ARGS_SIZE_TREE): Pass proper types to size_binop.
7441 * fold-const.c (int_const_binop): Refine when size_int is called.
7442 (fold_convert): Likewise.
7443 (size_int_wide): Rework to take KIND as arg, only take low order
7444 bits, handle new sizetype_tab datatype, and chain entries in
7445 size_table.
7446 (size_int_type_wide): New function.
7447 (size_binop): Validate types of arguments.
7448 (ssize_binop): Deleted.
7449 (size_diffop): New function.
7450 (extract_muldiv): Only fold division into multiplication for sizetypes.
7451 * function.c (assign_parms): Use size_diffop and make sure
7452 VAR field is of ssizetype; also pass proper type to size_binop.
7453 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
7454 (round_down): Deleted from here.
7455 * store-layout.c (sizetype_tab): Now an array.
7456 (sizetype_set, early_root_list): New variables.
7457 (variable_size): Use size_one_node.
7458 (round_up): Pass proper type to size_binop.
7459 (round_down): Moved to here and corrected as above.
7460 (layout_record): Pass proper arg types to size_binop.
7461 (layout_type): Likewise.
7462 If sizetype_set is zero, record the type just laid out.
7463 (make_unsigned_type): Don't call set_sizetype;
7464 (make_signed_type): Likewise; also, call fixup_signed_type.
7465 (initialize_sizetypes): New function.
7466 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
7467 set name of bitsizetype to "bit_size_type".
7468 Fix up type of sizes of all types made before call.
7469 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
7470 * tree.c (fix_sizetype): Deleted.
7471 (build_common_tree_nodes): Call initialize_sizetypes.
7472 (build_common_tree_nodes_2): Don't call fix_sizetype.
7473 * tree.h (TYPE_IS_SIZETYPE): New macro.
7474 (initialize_sizetype): New declaration.
7475 (enum size_type_kind): New type.
7476 (struct sizetype_tab): Deleted.
7477 (sizetype_tab): Now array; adjust sizetype macros.
7478 (size_diffop, size_int_type_wide): New functions.
7479 (size_int_wide): Change number of args and type; access macros changed.
7480 (ssize_int, sbitsize_int): New macros.
7481 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
7482 (ROUND_TYPE_SIZE_UNIT): New macro.
7483
7484 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
7485
7486 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
7487
7488 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7489
7490 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
7491 Mark as possibly unused.
7492
7493 * cse.c (cse_insn): Delete dead code involving tablejump.
7494 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
7495
7496 * Makefile.in (libcpp.a): Start by deleting it.
7497
7498 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7499
7500 * cpplib.h (enum file_change_code): Added rename_file.
7501 * cpplib.c (do_line): If a filename is given, set file_change to
7502 rename_file.
7503 (output_line_command): If file_change is rename_file, always
7504 output a # directive with the file name.
7505
7506 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
7507
7508 2000-02-26 Mark Mitchell <mark@codesourcery.com>
7509
7510 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
7511 when copying a PARM_DECL or RESULT_DECL.
7512
7513 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7514
7515 * fix-header.c (recognized_function): Also fix prototypes for
7516 functions taking "void".
7517
7518 2000-02-26 Geoff Keating <geoffk@cygnus.com>
7519
7520 * reload1.c (do_output_reload): Check reg_reloaded_valid before
7521 looking at reg_reloaded_contents.
7522
7523 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
7524
7525 * Makefile.in (STMP_FIXINC): New toggle.
7526 (LIBGCC2_DEPS): Delete all references.
7527 (stmp-headers): Delete target. All references either deleted
7528 or changed to stmp-int-headers.
7529 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
7530 (LIBCPP_OBJS): Take out cppalloc.o.
7531 (cppalloc.o): Delete target.
7532 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
7533 (gen-protos, fix-header): Link with libiberty.a.
7534 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
7535 to empty.
7536
7537 * configure.in: Remove refs to strerror.
7538 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
7539 * system.h: Take out strerror stanza.
7540
7541 * cpperror.c (my_strerror): Delete function.
7542 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
7543 * cppmain.c (main): Call xmalloc_set_program_name first thing.
7544 * cppalloc.c: Delete file.
7545 * gen-protos.c: Don't provide xrealloc.
7546
7547 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
7548 xstrerror throughout.
7549
7550 2000-02-26 Bruce Korb <bkorb@gnu.org>
7551
7552 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
7553 match for DOS headers, too.
7554 * fixinc/inclhack.sh,fixincl.x: Regenerate.
7555
7556 2000-02-26 Geoff Keating <geoffk@cygnus.com>
7557
7558 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
7559 is right for most ELF targets.
7560 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
7561 Let the default file use %U properly.
7562 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
7563 default.
7564
7565 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
7566 numbers.
7567
7568 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7569
7570 * toplev.c (documented_lang_options): Correct spelling error.
7571 (decode_d_option, decode_f_option, main): Likewise.
7572
7573 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
7574
7575 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
7576 to tell assembler it is permitted to expand large constants.
7577
7578 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
7579
7580 * protoize.c: (AUX_INFO_SUFFIX): New macro.
7581 (aux_info_suffix): Use.
7582 (SAVE_SUFFIX): New macro.
7583 (save_suffix): Use.
7584 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
7585 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
7586 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
7587
7588 * invoke.texi (Running Protoize): Update documentation.
7589
7590 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
7591
7592 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
7593
7594 2000-02-25 John Wehle (john@feith.com)
7595
7596 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
7597
7598 2000-02-25 Anthony Green <green@cygnus.com>
7599
7600 * toplev.c (rest_of_compilation): Rebuild jump labels if
7601 combine_instructions has created a new direct jump.
7602 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
7603 when appropriate.
7604 (combine_instructions): Call try_combine with new argument.
7605 Return non-null value when new direct jump instruction is created.
7606 * rtl.h: combine_instructions returns an int.
7607
7608 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
7609
7610 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
7611 jump when changing a computed jump into a jump to a known
7612 target.
7613
7614 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
7615
7616 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
7617 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
7618
7619 * i386.md (define_expand "clrstrsi"): Fix typo.
7620
7621 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
7622
7623 * rtl.texi: Fix typo.
7624
7625 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7626
7627 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
7628 UNITS_PER_WORD. Change caller initial_elimination_offset.
7629 (rounded_frame_size): Take into account that argument pushed has
7630 changed. Fix TARGET_ALIGN_DOUBLE problem.
7631
7632 2000-02-25 Geoff Keating <geoffk@cygnus.com>
7633
7634 * haifa-sched.c (schedule_block): Explain the real reason
7635 we delete REG_SAVE_NOTEs on the first insn of a block.
7636 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
7637
7638 2000-02-24 Mark Mitchell <mark@codesourcery.com>
7639
7640 * input.h (push_srcloc): New function.
7641 (pop_srcloc): Likewise.
7642 * toplev.c (push_srcloc): Define it.
7643 (pop_srcloc): Likewise.
7644
7645 2000-02-24 Richard Henderson <rth@cygnus.com>
7646
7647 * flow.c (life_analysis): When collecting reg info, clear
7648 regs_ever_live.
7649
7650 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7651
7652 Fix bug exposed by reload.c no longer rounding the frame
7653 size to BIGGEST_ALIGNMENT:
7654 * sh.c (rounded_frame_size): New function.
7655 (sh_expand_prologue, sh_expand_epilogue): Use it.
7656 (initial_elimination_offset): Likewise.
7657
7658 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7659
7660 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
7661 * sh-protos.h (sh_need_epilogue): Declare.
7662 * sh.c (sh_need_epilogue_known): New static variable.
7663 (sh_need_epilogue): New function.
7664 (function_epilogue): Clear need_epilogue_known.
7665 * sh.md (return): Split into expander / insn pattern.
7666 Make the expander conditional on ! sh_need_epilogue ().
7667
7668 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
7669
7670 * machmode.h (get_mode_alignment): Declare.
7671 (GET_MODE_ALIGNMENT): Call it.
7672 * stor-layout.c (get_mode_alignment): New function. Make
7673 sure alignment is always power of 2.
7674
7675 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7676
7677 * i386.h: Remove useless definition of "I386" and misleading
7678 comment above it.
7679
7680 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7681
7682 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
7683 under which TREE_PERMANENT will be set.
7684 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
7685 build1): Use TREE_SET_PERMANENT.
7686 * print-tree.c (print_node): Don't report value of
7687 TREE_PERMANENT if ggc_p is true.
7688
7689 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
7690 decide whether to give a type a new alias set.
7691 * objc/objc-act.c (build_objc_string_object): Never copy the string.
7692 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
7693 of value of 'obstack'.
7694
7695
7696 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7697
7698 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
7699
7700 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7701
7702 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
7703 * cpplib.c (cpp_get_token): Produce them.
7704 * cppexp.c (cpp_lex): Handle them.
7705
7706 2000-02-23 Nick Clifton <nickc@cygnus.com>
7707
7708 * config/arm/arm.c (arm_comp_type_attributes): Simply and
7709 comment tests on type attributes.
7710
7711 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7712
7713 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
7714 conform to documentation.
7715 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
7716 to check for special cases.
7717 * sh-protos.h (sh_loop_align): Declare.
7718 * sh.c (sh_loop_align): Define.
7719
7720 2000-02-22 Andrew Haley <aph@cygnus.com>
7721
7722 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
7723 (SIZE_TYPE): Is 32 bits when using -mgp32.
7724 (PTRDIFF_TYPE): Ditto.
7725
7726 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7727
7728 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
7729
7730 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7731
7732 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
7733 BIGGEST_FIELD_ALIGNMENT a constant.
7734
7735 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
7736
7737 * dwarf2out.c (output_line_info): Put the marker for the end of
7738 the line number info at the actual end.
7739 (gen_struct_or_union_type_die): Use decl_function_context
7740 to check for local classes.
7741 * dwarfout.c (output_type): Likewise.
7742
7743 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
7744
7745 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
7746 for arguments with a mode, but no type.
7747 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
7748 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
7749 * pa/long_double.h: New file.
7750 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
7751 both have 128bit wide long doubles.
7752 * configure: Rebuilt.
7753
7754 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7755
7756 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
7757
7758 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
7759 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
7760 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
7761
7762 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
7763
7764 * integrate.c (compare_blocks, find_block): Likewise.
7765
7766 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
7767
7768 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
7769
7770 * stmt.c (stmt_status, set_file_and_line_for_stmt,
7771 expand_asm_operands): Likewise.
7772
7773 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
7774
7775 * predict.c (estimate_probability): Added the pointer heuristic to
7776 the collection of static branch predictors.
7777
7778 2000-02-21 Catherine Moore <clm@cygnus.com>
7779
7780 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
7781 * invoke.texi (-mfix7000): Document.
7782
7783 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
7784
7785 * diagnostic.c (init_output_buffer): Make it possible to output at
7786 least 32 characters if we're given a too long prefix.
7787
7788 2000-02-20 Mark Mitchell <mark@codesourcery.com>
7789
7790 * varasm.c (initializer_constant_valid_p): Call
7791 lang_expand_constant to simplify the constant.
7792
7793 2000-02-20 Bruce Korb <bkorb@gnu.org>
7794
7795 * fixinc/inclhack.def(stdio_va_list):
7796 typedef needs to be disabled.
7797 * fixinc/inclhack.sh: regen
7798 * fixinc/fixincl.x: regen
7799
7800 2000-02-20 Geoff Keating <geoffk@cygnus.com>
7801
7802 * print-rtl.c (print_rtx): Don't print addresses when
7803 flag_dump_unnumbered.
7804
7805 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7806
7807 * sparc.c (sparc_output_scratch_registers): Mark parameter with
7808 ATTRIBUTE_UNUSED.
7809 (sparc_va_arg, sparc_flat_output_function_prologue,
7810 sparc_flat_output_function_epilogue): Cast value to unsigned in
7811 comparison.
7812 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
7813
7814 * sparc.md: Add default case in switch.
7815
7816 2000-02-19 Richard Henderson <rth@cygnus.com>
7817
7818 * c-typeck.c (add_pending_init): Don't abort for multiple
7819 fields at the same offset.
7820 (pending_init_member): Test the correct member.
7821
7822 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7823
7824 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
7825 instead of SImode.
7826 (start_catch_handler) : Same.
7827
7828 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
7829
7830 * Makefile.in: Have flow.o depend on $(EXPR_H)
7831
7832 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7833
7834 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
7835 * c-decl.c (duplicate_decls, finish_enum): Likewise.
7836 (finish_decl): Remove -Wlarger-than code from here.
7837 * flags.h (id_clash_len): Now int.
7838 (larger_than_size): Now HOST_WIDE_INT.
7839 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
7840 Clean up checking to see if in table.
7841 (make_bit_field_ref): Remove extra parm to bitsize_int.
7842 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
7843 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
7844 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
7845 and for computing size of decl.
7846 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
7847 Move -Wlarger-than code to here.
7848 (layout_record): Remove extra arg to bitsize_int.
7849 Set TYPE_BINFO_SIZE_UNIT.
7850 (layout_union): Remove extra arg to bitsize_int.
7851 Use proper type for size of QUAL_UNION.
7852 (layout_type): Remove extra arg to bitsize_int.
7853 * toplev.c (id_clash_len): Now int.
7854 (larger_than_size): Now HOST_WIDE_INT.
7855 (decode_W_option): Clean up id-clash and larger-than- cases.
7856 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
7857 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
7858 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
7859 (struct tree_decl): New field size_unit.
7860 (size_int_wide): No HIGH operand; NUMBER is now signed.
7861 (size_int_2): Deleted.
7862 (size_int, bitsize_int): Don't use it and rework args.
7863 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
7864
7865 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
7866
7867 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
7868
7869 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7870
7871 * invoke.texi (Warning Options): Add an explanation of why
7872 you might want the -Wfloat-equal flag.
7873
7874 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7875
7876 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
7877 * cppinit.c (new_pending_define): Add cast to avoid warning.
7878 * expmed.c (extract_bit_field): Likewise.
7879 * flow.c (enum reorder_skip_type): New type.
7880 (skip_insns_between_blcok): New it.
7881 Rework to avoid warning about possibly undefined variable.
7882 * function.c (assign_parms): Make thisparm_boundary unsigned.
7883 * genrecog.c (write_switch): Cast XWINT result to int.
7884 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
7885 * mips-tfile.c (init_file): Make two versions of FDR intializer:
7886 one for MIPS and one for Alpha.
7887 (get_tag, copy_object): Add casts to avoid warnings.
7888 * optabs.c (init_one_libfunc): Cast NAME to (char *).
7889 * reload.c (find_reloads): Make TYPE enum reload_type.
7890 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
7891 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
7892 * varasm.c (compare_constant_1): Add cast to avoid warning.
7893 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
7894 to (char *).
7895 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
7896 Cast switch operand of size to int.
7897 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
7898 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
7899 in unhandled case.
7900
7901 2000-02-18 Nick Clifton <nickc@cygnus.com>
7902
7903 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
7904 anything for an alignment of zero.
7905
7906 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
7907 anything for an alignment of zero.
7908
7909 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
7910
7911 * gcc.texi (Bug Reporting): Refer to bugs.html.
7912 (Bug Lists): Likewise.
7913 * system.h (GCCBUGURL): New preprocessor define.
7914 * rtl.c (fancy_abort): Use it.
7915 * gcc.c (main): Likewise.
7916
7917 2000-02-18 Richard Henderson <rth@cygnus.com>
7918
7919 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
7920 (life_analysis_1): Subsume into ...
7921 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
7922 Use update_life_info for the relaxation.
7923 (update_life_info): Update REG_BASIC_BLOCK for registers live on
7924 entry and regs_live_at_setjmp.
7925 (set_noop_p): Simplify.
7926 (notice_stack_pointer_modification_1): Renamed from s/_1//.
7927 (record_volatile_insns): Split into ...
7928 (delete_noop_moves): ... here,
7929 (notice_stack_pointer_modification): ... here,
7930 (insn_dead_p): ... and here.
7931 (propagate_block): Don't query INSN_VOLATILE.
7932 (mark_used_regs): Mind !PROP_REG_INFO.
7933 * toplev.c (rest_of_compilation): Call mark_constant_function here,
7934 not in life_analysis.
7935
7936 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
7937
7938 * loop.c (canonicalize_condition): New function,
7939 broken out of get_condition.
7940 (get_condition): Use it.
7941 * expr.h (canonicalize_condition): Prototype it.
7942
7943 * tree.h (tree_int_cst_msb): Declare.
7944 * tree.c (tree_int_cst_msb): New function.
7945
7946 2000-02-17 Mark Mitchell <mark@codesourcery.com>
7947
7948 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
7949 isn't set.
7950
7951 * invoke.texi (-fmessage-length=n): Document.
7952
7953 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
7954
7955 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
7956
7957 2000-02-17 Mark Mitchell <mark@codesourcery.com>
7958
7959 * function.c (thread_prologue_and_epilogue_insns): Put a line note
7960 after the prologue.
7961
7962 2000-02-17 Nick Clifton <nickc@cygnus.com>
7963
7964 * config/arm/thumb.c: Replace includes of system headers with
7965 #include "system.h".
7966
7967 2000-02-16 Richard Henderson <rth@cygnus.com>
7968
7969 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
7970 Add crtbeginS.o and crtendS.o.
7971 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
7972 (ENDFILE_SPEC): Use crtendS.o.
7973 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
7974
7975 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
7976 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
7977 shared and present.
7978 (__dso_handle): New variable.
7979 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
7980 bias to __CTOR_END__.
7981
7982 2000-02-16 Richard Henderson <rth@cygnus.com>
7983
7984 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
7985
7986 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
7987
7988 * longlong.h (__clz_tab): Declare as static to match definition.
7989
7990 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
7991 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
7992 (XREF_FILE_NAME): Define.
7993
7994 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
7995 (EH_FRAME_SECTION_ASM_OP): Define.
7996 (IDENT_ASM_OP): Define.
7997 (TEXT_SECTION_ASM_OP): Define.
7998 (CPP_SPEC): Define.
7999 (CTORS_SECTION_ASM_OP): Define.
8000 (CTOR_SECTION_FUNCTION): Use it.
8001 (DTORS_SECTION_ASM_OP): Define.
8002 (DTOR_SECTION_FUNCTION): Use it.
8003
8004 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
8005
8006 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
8007 NOTE_BASIC_BLOCK.
8008
8009 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
8010 debug_bb_n): New functions.
8011 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
8012 * basic-block.h: Prototype new functions.
8013
8014 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
8015
8016 * configure.in: Add support for avr target.
8017 * configure: Rebuilt.
8018
8019 * invoke.texi: Add AVR invocation docs.
8020 * install.texi: Add information about AVR.
8021 * md.texi: Add AVR constraint letters description.
8022 * extend.texi: Add description for AVR specific attributes.
8023
8024 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
8025
8026 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
8027
8028 2000-02-16 Nick Clifton <nickc@cygnus.com>
8029
8030 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
8031 (make_insn_raw): Move RTL check here.
8032
8033 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8034
8035 * version.c: Include gansidecl.h and version.h.
8036
8037 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
8038
8039 * configure.in (gcc_version): When setting, narrow search to
8040 lines containing `version_string'.
8041
8042 * Makefile.in (mainversion): Likewise.
8043 (GCC_H): New variable.
8044 (gcc.h): Delete target.
8045 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
8046 (version.o): Depend on version.h.
8047 (dbxout.o): Don't depend on gcc.h.
8048
8049 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
8050 Michael Meissner <meissner@cygnus.com>
8051
8052 * md.texi (Simple Constraints): Add item about whitespace.
8053 * genoutput.c (strip_whitespace): New.
8054 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
8055 strip_whitespace for constraints.
8056 Test pointer using NULL, not 0.
8057
8058 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8059
8060 * cpplib.c (do_line): Pedwarn for #line > 32767.
8061
8062 * c-lex.c (readescape): Warn about '\x', but do not reject it.
8063
8064 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
8065
8066 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
8067 to default cpp spec.
8068 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
8069 * cpp.texi: Document __GNUC_PATCHLEVEL__.
8070 * cpp.1: Likewise.
8071
8072 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
8073 default spec.
8074
8075 2000-02-15 Denis Chertykov <denisc@overta.ru>
8076
8077 * configure.in: Add support for avr target.
8078
8079 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8080
8081 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
8082 (sh_addr_diff_vec_mode): Don't declare.
8083 * sh.c (sh_addr_diff_vec_mode): Delete.
8084
8085 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8086
8087 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
8088
8089 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8090
8091 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
8092 (smulsi3_highpart_i): Name.
8093 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
8094 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
8095 (smulsi3_highpart, umulsi3_highpart): Likewise.
8096
8097 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
8098 correctly independent of endianness.
8099 (mulsidi3, umulsidi3): Now define_insn. Hide details that
8100 confuse the optimizers.
8101 (mulsidi3+1, umulsidi3+1): New define_split.
8102
8103 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
8104
8105 * config/sh/sh.md: Guard insn splits against illegal registers.
8106 * config/sh/sh.h: Correct comment about macros.
8107
8108 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8109 Andrew MacLeod <amacleod@cygnus.com>
8110
8111 * Makefile.in (lcm.o): Depend on insn-attr.h.
8112 * basic-block.h (optimize_mode_switching): Declare.
8113 * lcm.c (tm_p.h, insn-attr.h): #include.
8114 (seginfo, bb_info): New structs.
8115 (antic, transp, comp, delete, insert) : New file-scope static variables.
8116 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
8117 (reg_becomes_live, optimize_mode_switching): Likewise.
8118 * tm.texi: Add description of mode switching macros.
8119 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
8120
8121 * sh-protos.h (remove_dead_before_cse): Remove prototype.
8122 (fldi_ok, fpscr_set_from_mem): New prototypes.
8123 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
8124 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
8125 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
8126 (sh_flag_remove_dead_before_cse): Remove declaration.
8127 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
8128 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
8129 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
8130 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
8131 (barrier_align): Allow for JUMP_INSNS containing a parallel.
8132 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
8133 (fldi_ok): New function.
8134 (get_fpscr_rtx): Add fpscr_rtx as GC root.
8135 (emit_sf_insn): Only generate fpu switches when optimize < 1.
8136 (emit_df_insn): Likewise.
8137 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
8138 (sh_flag_remove_dead_before_cse): Delete.
8139 (get_free_reg, fpscr_set_from_mem): New functions.
8140 * sh.md (movdf, movsf): Remove no_new_pseudos code.
8141 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
8142
8143 2000-02-15 Loren Rittle <ljrittle@acm.org>
8144
8145 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
8146
8147 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8148
8149 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
8150 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
8151
8152 * cccp.c: Include version.h and/or don't declare `version_string'.
8153 * collect2.c: Likewise.
8154 * alpha.c: Likewise.
8155 * arm/aof.h: Likewise.
8156 * arm/coff.h: Likewise.
8157 * arm/elf.h: Likewise.
8158 * arm/pe.h: Likewise.
8159 * arm/tcoff.h: Likewise.
8160 * arm/telf.h: Likewise.
8161 * arm/tpe.h: Likewise.
8162 * arm/vxarm.h: Likewise.
8163 * convex/convex.c: Likewise.
8164 * i386/dgux.c: Likewise.
8165 * i386/sun386.h: Likewise.
8166 * m88k/m88k.c: Likewise.
8167 * mcore/mcore-pe.h: Likewise.
8168 * mips/mips.h: Likewise.
8169 * romp/romp.h: Likewise.
8170 * sh/sh.c: Likewise.
8171 * cpphash.c: Likewise.
8172 * cppinit.c: Likewise.
8173 * dwarf2out.c: Likewise.
8174 * dwarfout.c: Likewise.
8175 * gcc.c: Likewise.
8176 * gcc.h: Likewise.
8177 * mips-tfile.c: Likewise.
8178 * protoize.c: Likewise.
8179 * toplev.c: Likewise.
8180 * tree.h: Likewise.
8181
8182 * version.c (version_string): Constify a char*.
8183
8184 * version.h: New file.
8185
8186 2000-02-14 Nick Clifton <nickc@cygnus.com>
8187
8188 * configure.in: Add mcore-elf and mcore-pe targets.
8189 * configure: Regenerate.
8190
8191 * NEWS: Add note that MCore port has been contributed.
8192
8193 * invoke.texi: Document command line switches for MCore port.
8194 * install.texi: Add MCore to list of supported targets.
8195
8196 2000-02-14 Geoff Keating <geoffk@cygnus.com>
8197
8198 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
8199 then we will need to import the frame handling functions.
8200 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
8201 to import the frames themselves.
8202
8203 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
8204 Jason Eckhardt <jle@cygnus.com>
8205
8206 * basic_block.h: Added prototype for reorder_basic_blocks.
8207 * toplev.c: Changes to add -freorder-blocks and graph dump after
8208 block reordering is done.
8209 * flow.c (reorder_block_def): New structure for use during block
8210 reordering.
8211 (REORDER_BLOCK_*): New macros to access members of above structure.
8212 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
8213 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
8214 functions for block reordering.
8215
8216 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
8217
8218 * gcc.texi (Passes): Fix typo.
8219 * md.texi (Standard Names): Ditto.
8220 * tm.texi (Storage Layout): Ditto.
8221
8222 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
8223
8224 * cpplib.c (do_define): Only free the old definition if it
8225 actually had one.
8226
8227 2000-02-13 Neil Booth <NeilB@earthling.net>
8228
8229 * cppfiles.c (read_and_prescan): When emitting deferred
8230 newlines, test speccase[] again instead of checking each
8231 possible whitespace character in turn. When we encounter \r,
8232 look behind for \n first, then ahead.
8233
8234 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
8235
8236 * cse.c (cse_altered): New internal flag.
8237 (cse_insn): Set it if we changed an insn.
8238 (cse_main): Clear cse_altered before each basic block.
8239 Only garbage collect if cse_altered is true afterward.
8240
8241 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8242
8243 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
8244
8245 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
8246
8247 * combine.c (simplify_comparison): Fix typo.
8248
8249 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
8250
8251 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
8252 consistently.
8253
8254 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8255
8256 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
8257 previously inserted node instead of root node. Caller changed.
8258
8259 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8260
8261 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
8262
8263 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8264
8265 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
8266 __dereg_frame_dtor): Add prototype argument.
8267
8268 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
8269
8270 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
8271
8272 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
8273
8274 * gthr-vxworks.h (__gthread_once): Likewise.
8275
8276 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
8277
8278 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
8279
8280 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
8281 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
8282 stack pointer in functions w/o saved registers, output LEAVE more often
8283 on TARGET_USE_LEAVE machines.
8284
8285 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
8286
8287 * config/arm/arm.c (arm_init_cumulative_args); New function:
8288 Initlaise the CUMULATIE_ARGS strcuture for a function
8289 defintion.
8290 (arm_function_arg): New function: Determine where to place a
8291 function's argument. Also handles deciding the function's
8292 call cookie.
8293 (current_file_function_operand): New function: Return true if
8294 the symbol is a function which has already been compiled.
8295 (arm_is_long_call_p): New function: Return true if the
8296 indicated function should be called via a long call.
8297 (arm_valid_type_attribute_p): New function: Return true if the
8298 attribute is a valid, arm specific, attribute.
8299 (arm_comp_type_attribute): New function: Return true if the
8300 two types have compatable, arm specific, attributes.
8301
8302 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
8303 structure.
8304 (FUNCTION_ARG): Redefine to call arm_function_arg.
8305 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
8306 structure field.
8307 (INIT_CUMULATIVE_ARGS): Redefine to call
8308 arm_init_cumulative_args.
8309 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
8310 field.
8311 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
8312 field.
8313 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
8314 functions.
8315 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
8316 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
8317 (COMP_TYPE_ATTRIBUTES): Define.
8318
8319 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
8320 if a long call is needed.
8321 (call_value): Call arm_is_long_call_p to decide if a long call
8322 is needed.
8323 (call_symbol): Call arm_is_long_call_p to decide if a long call
8324 is needed.
8325
8326 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
8327
8328 2000-02-11 Denis Chertykov <denisc@overta.ru>
8329
8330 * README.AVR: New file with information about the avr ports.
8331 * config/avr: New directory with avr port files.
8332
8333 2000-02-11 Andreas Jaeger <aj@suse.de>
8334
8335 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
8336
8337 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
8338
8339 * cpphash.c: Fix formatting, update commentary.
8340 (dump_definition): Take three separate arguments instead of a
8341 MACRODEF structure argument.
8342 * cpphash.h: Update prototype of dump_definition.
8343 * cppinit.c (cpp_finish): Update call of dump_definition.
8344
8345 * cpplib.c (do_define): Always create new hash entry with
8346 T_MACRO type. Remove redundant check for redefinition of
8347 poisoned identifier. Update call of dump_definition.
8348 (do_undef): Don't call check_macro_name. Rename sym_length to
8349 len.
8350 (do_error, do_warning): Don't use copy_rest_of_line or
8351 SKIP_WHITE_SPACE.
8352 (do_warning): Don't use pedwarn for the actual warning,
8353 only the notice about its not being in the standard. (Fixes
8354 bug with #warning in system headers.)
8355 (do_ident): Stricter argument checking - accept only a single
8356 string after #ident. Also, macro-expand the line.
8357 (do_xifdef): Use cpp_defined. De-obfuscate.
8358
8359 (do_pragma): Split out specific pragma handling to separate
8360 functions. Use get_directive_token. Update commentary. Do
8361 not pass on #pragma once or #pragma poison to the front end.
8362 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
8363 do_pragma_default): New.
8364
8365 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
8366
8367 * jump.c (jump_optimize_1): The first operand in a relational
8368 can be a CONST_INT.
8369 * optabs.c (emit_conditional_move): Handle relationals which
8370 have a known true/false result.
8371
8372 2000-02-11 Geoff Keating <geoffk@cygnus.com>
8373
8374 * function.c (thread_prologue_and_epilogue_insns): Don't insert
8375 a RETURN insn into a block which already ends with a jump.
8376
8377 2000-02-11 Geoff Keating <geoffk@cygnus.com>
8378
8379 * haifa-sched.c (BUF_LEN): Increase a lot.
8380
8381 2000-02-11 Nick Clifton <nickc@cygnus.com>
8382
8383 * configure.in: Add tm_p_file specification for thumb targets.
8384 * configure: Regenerate.
8385
8386 * config/arm/thumb-protos.h: New file: Prototypes for exported
8387 functions defined in thumb.c.
8388
8389 2000-02-11 Robert Lipe <robertl@sco.com>
8390
8391 * Makefile.in (bootstrap-lean): Remove additional files.
8392 (bootstrap2-lean): Likewise.
8393 (VOL_FILES): List of files for above.
8394
8395 2000-02-11 Nathan Sidwell <nathan@acm.org>
8396
8397 * cpphash.c (special_symbol): Remove spurious argument to
8398 cpp_lookup.
8399
8400 2000-02-11 Joel Sherrill (joel@OARcorp.com>
8401
8402 * configure.in: (i*86-*-rtems*): Swapped elf and coff
8403 stanzas.
8404 * configure: Rebuilt.
8405
8406 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
8407
8408 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
8409
8410 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
8411
8412 * pa.c, pa.h: Remove trigraph sequences within comments.
8413
8414 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
8415
8416 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
8417
8418 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
8419
8420 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
8421
8422 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8423
8424 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
8425
8426 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8427
8428 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
8429 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
8430 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8431 (ASM_FILE_END): Use c4x_file_end.
8432 * config/c4x/c4x.c (c4x_global_label): New function.
8433 (c4x_external_ref, c4x_file_end): Likewise.
8434
8435 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
8436 (c4x_external_ref, c4x_end_file): Likewise.
8437
8438 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
8439
8440 * cppexp.c: Don't include cpphash.h.
8441 (parse_charconst, cpp_lex): Use cpp_defined.
8442 (cpp_lex): Use get_directive_token throughout. Remove
8443 unnecessary cases from switch. Move assertion-handling code
8444 down to OTHER case.
8445 (cpp_parse_expr): If we see '+' or '-', check the context to
8446 determine if they are unary or binary operators. Streamline
8447 the jumps a bit. Do not call skip_rest_of_line.
8448
8449 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
8450 static. Export get_directive_token. Update commentary.
8451 (cpp_defined): New function.
8452 (do_define): Remove reference to T_PCSTRING. Call
8453 free_definition to release memory for old definition, when
8454 redefining a macro.
8455 (eval_if_expression): Set only_seen_white to 0 before calling
8456 cpp_parse_expr. Call skip_rest_of_line after it returns.
8457 (cpp_read_check_assertion): Don't preserve a pointer into the
8458 token buffer across a call to cpp_get_token.
8459
8460 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
8461 * cppfiles.c (redundant_include_p): Use cpp_defined.
8462 * cpphash.c (free_definition): New function.
8463 (delete_macro): Use it. Update commentary.
8464 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
8465 free_definition.
8466 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
8467 from enum node_type. Prototype cpp_defined and get_directive_token.
8468 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
8469
8470 * fix-header.c (check_macro_names): Use cpp_defined.
8471 (read_scan_file): Set inhibit_warnings and inhibit_errors in
8472 the options structure.
8473
8474 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8475
8476 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
8477
8478 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
8479
8480 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
8481 rather than die->die_tag.
8482
8483 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8484
8485 * combine.c (make_extraction, force_to_mode): Avoid warning on
8486 mixed-signedness conditionals.
8487 (make_field_assignment, nonzero_bits): Likewise.
8488 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
8489 (store_split_bit_field, extract_split_bit_field): Likewise.
8490 (extract_fixed_bit_field, store_bit_field,
8491 * expr.c: Change alignment to be unsigned everywhere.
8492 (move_by_pieces, store_constructor_field, store_constructor):
8493 Alignment parm is unsigned.
8494 (emit_block_move, emit_group_load, emit_group_store): Likewise.
8495 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
8496 (do_compare_rtx_and_jump): Likewise.
8497 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
8498 Compare align with GET_MODE_ALIGNMENT.
8499 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
8500 (get_inner_reference): Likewise.
8501 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
8502 (expand_assignment): Local vars for alignment now unsigned.
8503 (store_constructor, store_field, expand_expr, do_jump): Likewise.
8504 (do_compare_and_jump): Likewise.
8505 (store_field): Call new function expr_align.
8506 * expr.h (emit_block_move, emit_group_load, emit_group_store):
8507 Alignment arg now unsigned.
8508 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
8509 (do_compare_rtx_and_jump, store_bit_field): Likewise.
8510 (extract_bit_field): Likewise.
8511 * fold-const.c (add_double): Add cast to eliminate signedness warning.
8512 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
8513 (get_best_mode): Alignment arg is unsigned.
8514 * rtl.h (move_by_pieces): Likewise.
8515 * store-layout.c (maximum_field_alignment, set_alignment):
8516 Now unsigned.
8517 (layout_decl): Alignment arg is now unsigned.
8518 Remove unneeded casts.
8519 (layout_record, layout_union, layout_type): Remove unneeded casts.
8520 Local alignment variables now unsigned.
8521 (get_best_mode): Alignment arg now unsigned.
8522 * tree.c (expr_align): New function.
8523 * tree.h (expr_align): Likewise.
8524 (maximum_field_alignment, set_alignment): Now unsigned.
8525 (get_inner_reference): Alignment argument is now pointer to unsigned.
8526 * varasm.c (assemble_variable): Add cast to eliminate warning.
8527
8528 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
8529
8530 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
8531 then store directly into op0.
8532
8533 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
8534 the CALL_INSN, and emit the note immediately after it.
8535
8536 2000-02-10 Nick Clifton <nickc@cygnus.com>
8537
8538 * config/arm/thumb.md (epilogue): Include a (return) in the
8539 generated insn, and emit it using emit_jump_insn not
8540 emit_insn.
8541
8542 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
8543
8544 * function.c (assign_temp): Change zero-sized arrays to size 1.
8545 * integrate.c (expand_inline_function): Do not update
8546 stack_alignment_needed
8547 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
8548 add some sanity checking, remove optimization for function with
8549 zero frame size.
8550
8551 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8552
8553 * flow.c (mark_regs_live_at_end): Delete unused variables.
8554
8555 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
8556
8557 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
8558 in macro FRAME_GROWS_DOWNWARD.
8559
8560 * stmt.c (expand_end_bindings): Delete unused variable.
8561
8562 * unroll.c (iteration_info): Mark parameter `loop' with
8563 ATTRIBUTE_UNUSED.
8564
8565 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8566
8567 * fixinc/server.c (load_data): Return NULL if the marker line is
8568 not found.
8569 (run_shell): If load_data returns NULL, retry the command once, in
8570 a new shell.
8571
8572 * configure: Rebuilt.
8573
8574 2000-02-09 Bruce Korb <bkorb@gnu.org>
8575
8576 * gcc/fixincludes: ** DELETED **
8577 * gcc/fixcpp: ** DELETED **
8578 * gcc/fixinc-nt.sed: ** DELETED **
8579 * gcc/just-fixinc: ** DELETED **
8580 * gcc/Makefile.in: Removed out-dated commentary
8581 * gcc/configure.in: Removed fast-fixincludes disablement.
8582 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
8583
8584 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
8585 * function.c (thread_prologue_and_epilogue_insns): Uncomment
8586 last change.
8587
8588 2000-02-09 Richard Henderson <rth@cygnus.com>
8589
8590 * jump.c (delete_insn): Don't delete user labels at -O0.
8591
8592 2000-02-09 Robert Lipe <robertl@sco.com>
8593
8594 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
8595 Don't link with HOST_LIBS.
8596
8597 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
8598
8599 * configure.in: Correct --help text for --with-dwarf2.
8600 Put tm-dwarf2.h after other tm files, if it's requested.
8601 * configure: Regenerate.
8602 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
8603 defining it.
8604
8605 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
8606
8607 * cpplib.h: Provide HASHNODE typedef and forward decl of
8608 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
8609 DEFINITION, struct hashnode, struct macrodef, struct
8610 definition, scan_decls prototype, default defn of
8611 INCLUDE_LEN_FUDGE moved elsewhere.
8612
8613 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
8614 definition, and struct hashnode moved here. Remove the unused
8615 'predefined' field from struct definition. Replace the 'args'
8616 union with its sole member. All users updated (cpphash.c).
8617 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
8618 multiple include guard.
8619
8620 * cpphash.c (hashf): Make static; use better algorithm; drop
8621 HASHSIZE parameter; return an unsigned int.
8622 (cpp_lookup): Drop HASH parameter. PFILE parameter is
8623 used. Calculate HASHSIZE modulus here.
8624 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
8625 here.
8626 (create_definition): Drop PREDEFINITION parameter.
8627 * cpplib.c (do_define): Don't calculate a hash value here.
8628 Don't pass (keyword == NULL) to create_definition.
8629
8630 * scan.h: Prototype scan_decls here.
8631 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
8632 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
8633 callers of cpp_lookup and cpp_install updated.
8634
8635 * cpphash.c (macarg): Hoist all the flag diddling out of the
8636 function...
8637 (macroexpand): ... and out of the loop that calls macarg.
8638 Skip over the initial paren before macro arguments with
8639 cpp_get_non_space_token; point may be some distance before
8640 that paren. Abort if it's not there.
8641
8642 * cpplib.c (parse_clear_mark): Delete function.
8643 (parse_set_mark, parse_goto_mark): Make static.
8644 (ACTIVE_MARK_P): New macro.
8645 (skip_block_comment, skip_line_comment): Do not bump the line
8646 if ACTIVE_MARK_P is true.
8647 (cpp_pop_buffer): The buffer to be popped may not have an
8648 active mark.
8649 (cpp_get_token): When looking for the initial paren before
8650 macro arguments, only set a mark in a file buffer, Always
8651 return to that mark before proceeding to call macroexpand or
8652 return a NAME token.
8653
8654 * cpplib.h: Remove prototypes of parse_set_mark,
8655 parse_clear_mark, parse_goto_mark.
8656 (struct cpp_options): Rename 'put_out_comments' to
8657 'discard_comments' and invert its sense.
8658 * cppinit.c, cpphash.c, cpplib.c: All users of
8659 put_out_comments changed to use discard_comments, with
8660 opposite sense.
8661
8662 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
8663
8664 * function.c (thread_prologue_and_epilogue_insns): Don't delete
8665 the edge from a block that both jumps and falls through to the
8666 fallthru block.
8667
8668 2000-02-09 Scott Bambrough <scottb@netwinder.org>
8669
8670 * config/arm/arm.md (movsi): In PIC mode, make sure that a
8671 constant source address is legitimate.
8672
8673 2000-02-09 Philip Blundell <pb@futuretv.com>
8674
8675 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
8676 correctly.
8677
8678 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
8679 generating PIC.
8680 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
8681
8682 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
8683
8684 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
8685 ends with a newline and a NUL. Don't be so clever manipulating
8686 strings.
8687
8688 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
8689
8690 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
8691 not to BIGGEST_ALIGNMENT.
8692
8693 2000-02-08 Geoff Keating <geoffk@cygnus.com>
8694
8695 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
8696 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
8697 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
8698 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
8699 * frame.c (execute_cfa_insn): Handle
8700 DW_CFA_GNU_negative_offset_extended.
8701
8702 2000-02-08 Richard Henderson <rth@cygnus.com>
8703
8704 * flow.c (tidy_fallthru_edges): Split out from ...
8705 (delete_unreachable_blocks): ... here.
8706 (find_basic_blocks): Use it.
8707
8708 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8709
8710 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
8711
8712 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
8713
8714 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
8715 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
8716 (fix-header.o): Don't depend on cpphash.h.
8717
8718 * scan.c (hashstr): New function.
8719 * scan.h: Prototype it.
8720 * fix-header.c: Don't include cpphash.h. Use hashstr.
8721 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
8722 hashstr. Report hash table statistics. Add private
8723 definition of xrealloc.
8724
8725 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8726
8727 * i386.h (TARGET_SWITCHES): Fix typo in option name.
8728
8729 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
8730
8731 * function.c (thread_prologue_and_epilogue_insns): Don't replace
8732 jumps with returns unless they are jumps to the fallthru block.
8733
8734 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
8735
8736 * i386.md (addqi3_cc): Fix contraints.
8737
8738 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
8739
8740 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
8741
8742 2000-02-07 Mark Mitchell <mark@codesourcery.com>
8743
8744 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
8745 carriage return after a macro name.
8746
8747 2000-02-07 Fred Fish <fnf@be.com>
8748
8749 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
8750 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
8751
8752 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
8753
8754 * cppfiles.c (deps_output): Count spacers in deps_column.
8755
8756 2000-02-07 Neil Booth <NeilB@earthling.net>
8757
8758 * cppinit.c (initialize_dependency_output): If there is no
8759 suffix, don't try to look for known suffixes. Use strrchr.
8760 (cpp_start_read): Remove duplicate initialization.
8761
8762 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
8763
8764 * calls.c (compute_argument_block_size): New argument
8765 preferred_stack_boundary.
8766 (expand_call): update cfun->preferred_stack_boundary, update call of
8767 compute_argument_block_size
8768 (emit_library_call): Increate cfun->preferred_stack_boundary
8769 to PREFERRED_STACK_BOUNDARY
8770 (emit_library_call_value): Likewise.
8771 * explow.c (allocate_dynamic_stack_spave): Likewise.
8772 * function.c (prepare_function_start): Set
8773 cfun->preferred_stack_boundary
8774 * function.h (struct function): Add preferred_stack_boundary field.
8775 * integrate.c (expand_inline_function): Update
8776 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
8777 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
8778 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
8779
8780 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
8781
8782 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
8783 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
8784 cpp_pedwarn, cpp_pedwarn_with_line,
8785 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
8786 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
8787 v_cpp_error_with_line, v_cpp_warning_with_line,
8788 cpp_message_from_errno, cpp_perror_with_name): Delete.
8789
8790 * cpperror.c (cpp_print_containing_files): Take starting
8791 buffer as argument.
8792 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
8793 (v_cpp_message): Now called directly by all entry points.
8794 Remove -1 case.
8795 (cpp_pfatal_with_name, cpp_message): Delete.
8796 (cpp_notice_from_errno, cpp_ice): New functions.
8797 (cpp_notice): Is now for reporting error conditions, just
8798 without an associated file.
8799 (cpp_error, cpp_error_with_line): Don't do anything if
8800 opts->inhibit_errors is on.
8801 (cpp_pedwarn_with_file_and_line): Take column argument also.
8802
8803 * cpplib.h: Update prototypes of exported functions.
8804 (struct cpp_options): Add inhibit_errors.
8805
8806 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
8807 non-error messages. Include intl.h.
8808
8809 * cppinit.c, cppmain.c: Likewise. Also, use
8810 cpp_notice_from_errno instead of cpp_perror_with_name or
8811 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
8812
8813 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
8814 report internal errors.
8815
8816 * cpplib.c (do_define): Switch bcopy to memcpy.
8817 Give cpp_pedwarn_with_file_and_line a dummy column argument.
8818
8819 * cpplib.c (copy_rest_of_line): Revert previous change: don't
8820 bail out early if we hit a line comment.
8821
8822 2000-02-06 Richard Henderson <rth@cygnus.com>
8823
8824 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
8825 * basic-block.h: Declare them.
8826 * emit-rtl.h (active_insn_p): New.
8827 (next_active_insn, prev_active_insn): Use it.
8828 * rtl.h: Declare it.
8829 * function.c (emit_return_into_block): New.
8830 (thread_prologue_and_epilogue_insns): Insert return insns instead
8831 of epilogues when possible.
8832 * jump.c (jump_optimize_1): Remove code to insert a return insn
8833 on the fallthru to the exit block.
8834
8835 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
8836 and for non-empty stack frames.
8837 * i386.md (return): Expand to return-pop as needed.
8838
8839 2000-02-06 Richard Henderson <rth@cygnus.com>
8840
8841 * simplify-rtx.c (simplify_relational_operation): Canonicalize
8842 constant to op1 for testing.
8843
8844 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8845
8846 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
8847 (fixuns_truncqfqi2): Use it.
8848
8849 2000-02-06 Richard Henderson <rth@cygnus.com>
8850
8851 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
8852 as a TYPE_LEA insn.
8853
8854 * i386.md (widening and peepholes): Mask the constant instead of
8855 using gen_lowpart.
8856
8857 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
8858
8859 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
8860 input pointer before possibly branching off to the backslash
8861 code.
8862 * cpphash.c (macroexpand): Correctly delete \r escapes when
8863 stringifying parameters.
8864 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
8865 if we can; bail out early if we hit a line comment.
8866 (handle_directive): Treat '# 123' in an .S file just like
8867 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
8868 Return 1 for '# not_a_directive'.
8869 (get_directive_token): Pop macro buffers here, so that
8870 cpp_get_token can't sneakily move past a newline.
8871 Add sanity checks.
8872 (cpp_get_token): goto randomchar if handle_directive returns 0.
8873
8874 * cppalloc.c: Update copyright.
8875 * cpplib.c: Merge all the static function prototypes into one
8876 block.
8877 * cpplib.h: Remove #if 0 block.
8878
8879 * cpperror.c: Remove #ifdef EMACS block.
8880 * cppmain.c: Likewise.
8881 * cpphash.c: Remove #if 0 blocks.
8882 * cppinit.c: Remove #if 0 blocks, and the -lint option.
8883 * cpplib.c: Remove #if 0 blocks and code referencing
8884 pcp_inside_if or for_lint. Remove duplicate error message.
8885 Fix error messages for #else after #else or #elif. Reformat.
8886 Remove archaic TODO list.
8887 * cpplib.h: Remove pcp_inside_if and for_lint flags.
8888
8889 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
8890
8891 * i386/osf1elf.h: Add missing backslash to multiline string.
8892
8893 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8894
8895 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
8896
8897 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8898
8899 * Makefile.in (c-common.o): Depend on $(EXPR_H).
8900
8901 * c-common.c: Include expr.h.
8902
8903 * c-pragma.c (mark_align_stack): Add prototype.
8904
8905 * caller-save.c (add_stored_regs): Likewise.
8906
8907 * combine.c (record_promoted_value): Likewise.
8908
8909 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
8910 Likewise.
8911
8912 * cppinit.c (new_pending_define): Likewise.
8913
8914 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
8915
8916 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
8917 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
8918 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
8919 class_scope_p): Likewise.
8920
8921 * dwarf2out.h (dwarf2out_set_demangle_name_func,
8922 dwarf2out_add_library_unit_info): Likewise.
8923
8924 * ggc.h (ggc_page_print_statistics): Likewise.
8925
8926 * haifa-sched.c (propagate_deps): Likewise.
8927
8928 * reg-stack.c (next_flags_user, record_label_references): Likewise.
8929
8930 * rtl.h (set_stack_check_libfunc): Likewise.
8931
8932 * toplev.h (set_fatal_function): Likewise.
8933
8934 * toplev.c (set_fatal_function): Delete prototype.
8935
8936 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
8937
8938 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8939
8940 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
8941 (FUNC_END): Likewise.
8942
8943 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8944
8945 * caller-save.c: Include tm_p.h.
8946
8947 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8948
8949 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
8950
8951 2000-02-04 Neil Booth <NeilB@earthling.net>
8952
8953 * cccp.c (main): Check 'dir' for a NULL pointer before passing
8954 it to strcmp.
8955
8956 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
8957
8958 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
8959 * genflags.c: Use the max_operand_1 logic from genemit.c to
8960 calculate how many arguments gen_insn prototypes have. Remove
8961 NO_MD_PROTOTYPES ifdefs from the generated file.
8962 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
8963 file. Cast gen_insn initializers to insn_gen_fn.
8964 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
8965 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
8966
8967 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8968
8969 * fixinc/Makefile.in (HDR): Add machname.h.
8970 (clean): Likewise.
8971
8972 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8973
8974 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
8975 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
8976 (c4x_cpu_version): Ditto.
8977 * config/c4x/c4x-protos.h: ... here.
8978
8979 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
8980
8981 * dwarf2out.c (add_abstract_origin_attribute): Don't call
8982 gen_abstract_function on our context if we're a nested function.
8983
8984 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8985
8986 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
8987 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
8988
8989 2000-02-04 Bruce Korb <bkorb@gnu.org>
8990
8991 * fixinc/genfixes(machname.h):
8992 Move the functionality from gen-machine.h into this file.
8993 UNdef MN_NAME_PAT if there are no names to change.
8994 Also, be a little kinder when AutoGen is not present.
8995
8996 * fixinc/Makefile.in(machname.h):
8997 Change the generation rule to use genfixes.
8998
8999 * fixinc/fixfixes.c(machine_name):
9000 machine_name_fix's functionality now dependent upon whether
9001 MN_NAME_PAT is defined.
9002
9003 * fixinc/fixtests.c(machine_name):
9004 ditto.
9005
9006 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
9007 of MN_NAME_PAT.
9008
9009 * fixinc/fixlib.h(mn_get_regexps):
9010 ditto
9011
9012 * fixinc/gen-machine.h: DELETED
9013
9014 2000-02-04 Jan Hubicka <jh@suse.cz>
9015 Richard Henderson <rth@cygnus.com>
9016
9017 * i386.c (SAVE_REGS_FIRST): Remove.
9018 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
9019 (ix86_compute_frame_size): Likewise.
9020 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
9021 (ix86_emit_restore_regs): Remove.
9022 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
9023 when a frame pointer is in use.
9024 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
9025 instead of pop to restore a register when profitable; emit leave
9026 when profitable.
9027 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
9028 as a TYPE_LEA insn.
9029 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
9030 * i386.md (prologue_allocate_stack): Remove.
9031 (epilogue_deallocate_stack): Remove.
9032 (pro_epilogue_adjust_stack): New.
9033
9034 2000-02-04 Richard Henderson <rth@cygnus.com>
9035
9036 * function.c (diddle_return_value): Rework to use a callback function.
9037 Use current_function_return_rtx if it's been set up.
9038 (do_clobber_return_reg, clobber_return_register): New.
9039 (do_use_return_reg, use_return_register): New.
9040 (expand_function_end): Use them.
9041 * stmt.c (expand_null_return): Likewise.
9042 * function.h: Declare them.
9043 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
9044 (mark_reg): Change arguments as appropriate for callback.
9045 * integrate.c (expand_inline_function): Revert 19 Jan change.
9046
9047 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
9048
9049 * tm.texi (Values in Registers): Fix typo: "fo" "for".
9050 (Misc): Say the scheduler, not the Haifa scheduler.
9051
9052 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
9053
9054 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
9055 when in_mem is set. Update all callers.
9056
9057 2000-02-04 Richard Henderson <rth@cygnus.com>
9058
9059 * i386/openbsd.h (INT_ASM_OP): Define.
9060
9061 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
9062
9063 * tm.texi: Fix various typos.
9064
9065 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
9066
9067 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
9068 (MD_STARTFILE_PREFIX_1): New macro.
9069
9070 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
9071
9072 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
9073 destination when needed.
9074 (strmovsi, strsetsi): New expander.
9075 (strmovsi_1, strsetsi_1): New pattern.
9076 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
9077 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
9078 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
9079 * invoke.texi (align-stringops, inline-all-stringops): Document.
9080
9081 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
9082
9083 * i386/netbsd.h (INT_ASM_OP): Define.
9084
9085 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
9086
9087 * cpplib.h (cpp_reader): Add new flag, no_directives.
9088 * cpphash.c (macarg): Set it.
9089 * cpplib.c (handle_directive): If no_directives is on and we
9090 find a directive, issue an error and discard the line.
9091
9092 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
9093
9094 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
9095 FP constants. Add ! TARGET_FPU check for FP constants.
9096
9097 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
9098
9099 * flow.c (find_basic_blocks): Don't kill label_value_list
9100 here.
9101 (cleanup_cfg): Kill it here.
9102
9103 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9104
9105 * expr.c (store_field): Ensure ALIGN is no stricter than the
9106 alignment of EXP.
9107
9108 2000-02-02 Richard Henderson <rth@cygnus.com>
9109
9110 * jump.c (delete_insn): Partially revert 19 Jan change;
9111 don't convert unused code labels to notes at -O0.
9112
9113 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9114
9115 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
9116 split_all_insns to recreate REG_LABEL notes for flow2 pass.
9117
9118 2000-02-01 Richard Henderson <rth@cygnus.com>
9119
9120 * i386.c (general_no_elim_operand): New.
9121 (nonmemory_no_elim_operand): New.
9122 (ix86_expand_move): Copy eliminable operands before a push.
9123 * i386-protos.h: Declare new functions.
9124 * i386.h (CAN_ELIMINATE): Simplify.
9125 (PREDICATE_CODES): Update.
9126 * i386.md (push insns): Don't allow eliminable register operands.
9127
9128 2000-02-01 Richard Henderson <rth@cygnus.com>
9129
9130 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
9131 replace BLKmode with DECL_RTL's mode.
9132
9133 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
9134
9135 * frame.c (find_fde): Convert for loop to do-while so compiler
9136 sees it's always executed at least once.
9137 * libgcc2.c (BBINBUFSIZE): Kill.
9138 (__bb_init_prg): Use fgets.
9139 (__bb_exit_trace_func): Don't paste strings.
9140 * unroll.c (unroll_loop): Initialize unroll_type, not
9141 unroll_number, and tweak logic to match.
9142
9143 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
9144 all failure paths.
9145 (ix86_flags_dependant): Likewise. Disentangle control flow.
9146 (ix86_sched_reorder): Break guts out to
9147 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
9148 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
9149 any possible use.
9150
9151 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
9152 use string concatenation. Don't save and restore esi.
9153
9154 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
9155 (machname.h): Remove script to separate file. Use two-step
9156 sequence so target is not created if script fails.
9157 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
9158 identifiers are defined.
9159 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
9160 an empty string, machine_name doesn't need to do anything at
9161 all.
9162 (is_cxx_header): Add more cases to regexp.
9163 * fixinc/fixlib.h: Update prototype.
9164 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
9165 mn_get_regexps.
9166 * fixinc/fixincl.c: Define NO_BOGOSITY.
9167
9168 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
9169 (hp_sysfile): Add missing comma.
9170 (math_exception): Put the wrapper ifdefs at the beginning and
9171 the end of the file.
9172 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
9173
9174 2000-02-01 Richard Henderson <rth@cygnus.com>
9175
9176 * sparc.c (fp_zero_operand): Turn into a normal predicate.
9177 Use CONST0_RTX. Update all callers.
9178 * sparc.h, sparc-protos.h: Update accordingly.
9179 * sparc.md (fp mov insns): Use fp_zero_operand directly
9180 where applicable.
9181
9182 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
9183
9184 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
9185 example.
9186
9187 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9188
9189 * Makefile.in (specs.ready): New target.
9190 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
9191
9192 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9193
9194 * fixinc.irix: Use unique filenames for writing into /tmp,
9195 * fixinc.ptx: Likewise.
9196 * fixinc.sco: Likewise.
9197 * fixinc.svr4: Likewise.
9198 * fixinc.winnt: Likewise.
9199
9200 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9201
9202 * tsystem.h: New file.
9203
9204 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
9205 s-crtS): Depend on tsystem.h.
9206
9207 * crtstuff.c: Include tsystem.h.
9208 * frame.c: Likewise.
9209 * libgcc2.c: Likewise.
9210
9211 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
9212
9213 * builtins.c (expand_builtin_memset): Expand for variable sized
9214 lengths too.
9215
9216 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
9217
9218 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
9219 on ABI.
9220
9221 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
9222
9223 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
9224
9225 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
9226
9227 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
9228
9229 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
9230 case 3->2 combining (combining with splitting) in which 2 is CC0
9231 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
9232 checked at the begining of the function with the aid of calling
9233 function 'can_combine_p'.
9234
9235 2000-01-31 Dave Brolley <brolley@redhat.com>
9236
9237 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
9238
9239 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
9240
9241 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
9242 new label.
9243
9244 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9245
9246 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
9247
9248 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
9249 PROTO -> PARAMS.
9250
9251 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
9252
9253 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
9254 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
9255 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
9256 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
9257 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
9258 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
9259 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
9260 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
9261 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
9262 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
9263
9264 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
9265 Add %(cpp_cpu) to CPP_SPEC.
9266
9267 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
9268 Add %(cc1_cpu) to CC1_SPEC.
9269
9270 2000-01-28 Ulrich Drepper <drepper@redhat.com>
9271
9272 * c-decl.c (c_decode_option): Accept optional numeric argument to
9273 -Wformat and set warn_format.
9274 * c-common.c: Don't emit warning about non-constant printf format
9275 string unless warn_format > 1.
9276
9277 2000-01-30 Richard Henderson <rth@cygnus.com>
9278
9279 * alpha.md (return_internal): Allow after reload only.
9280
9281 2000-01-30 Richard Henderson <rth@cygnus.com>
9282
9283 * i386.c (ix86_compute_frame_size): Omit padding1 if the
9284 local frame size is zero.
9285
9286 2000-01-30 Richard Henderson <rth@cygnus.com>
9287
9288 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
9289 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
9290 * alpha.md (return): Turn into an expander.
9291 (return_internal): Don't use $26.
9292 (epilogue): Emit the return insn.
9293
9294 2000-01-30 Richard Henderson <rth@cygnus.com>
9295
9296 * alpha.md (negtf2, abstf2): Fix word order thinko.
9297 (extendsftf2): New.
9298 (trunctfsf2): Avoid intermediate rounding errors.
9299
9300 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
9301
9302 * cppfiles.c (find_position): Drop 'colp' argument, return the
9303 new line base.
9304 (read_and_prescan): Adjust to match. Don't ever manipulate
9305 line or line_base except via find_position.
9306
9307 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
9308
9309 * c-parse.in: Apply Ulrich's changes from c-parse.y.
9310 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
9311 Regenerate.
9312
9313 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
9314
9315 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
9316 just print "<command line>". If 'filename' is null or an
9317 empty string, print "<stdin>" for the filename.
9318 * cpplib.c (do_define): Don't print the 'location of the
9319 previous definition' message if we're still parsing the
9320 command line.
9321 (cpp_pedwarn_with_file_and_line): Always call
9322 cpp_file_line_for_message.
9323
9324 2000-01-29 Mark Mitchell <mark@codesourcery.com>
9325
9326 * flow.c (mark_regs_live_at_end): Fix typo.
9327
9328 2000-01-28 Ulrich Drepper <drepper@redhat.com>
9329
9330 * c-common.c: Adjust variable names, comments, help strings to c99.
9331 * c-lex.c: Likewise.
9332 * c-parse.y: Likewise.
9333 * c-tree.h: Likewise.
9334 * cccp.c: Likewise.
9335 * cpplib.h: Likewise.
9336 * c-decl.c: Likewise. Recognize options with names "*99" as well.
9337 * cppinit.c: Likewise.
9338
9339 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9340
9341 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
9342 * c4x.c: Define the optab rtx values.
9343 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
9344 (c4x_emit_libcall): Use new optab rtx values.
9345 (c4x_emit_libcall3): Likewise.
9346 (c4x_emit_libcall_mulhi): Likewise.
9347 * c4x-protos.h: Add prototypes for optab rtx values and change
9348 prototypes for above c4x_emit_libcall functions.
9349
9350 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9351
9352 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
9353 syntax is used.
9354 (c4x_function_prologue): Use regnames intead of float_reg_names when
9355 TI syntax is used.
9356 (c4x_function_epilogue): Likewise.
9357 (c4x_print_operand): Likewise.
9358 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
9359 * c4x.md (set_high): Disable for TARGET_TI.
9360
9361 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9362
9363 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
9364 of framepointer + constant to ADDR_REGS class.
9365 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
9366 * c4x.c (std_or_reg_operand): New function.
9367 * c4x-protos.h (std_or_reg_operand): Prototype it.
9368
9369 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9370
9371 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
9372 object names as libgcc2.c.
9373 * libgcc.S: Use newly defined names.
9374
9375 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
9376 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
9377 function.
9378 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
9379 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
9380 (FLOW_LOOP_LAST_BLOCK): Likewise.
9381
9382 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9383
9384 * basic-block.h (struct loop): New fields 'first' and 'last'.
9385 * flow.c (flow_loops_find): Compute loop->first and loop->last.
9386 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
9387 and loop->last to check for NOTE_INSN_LOOP_END.
9388
9389 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
9390
9391 * predict.c (estimate_probability): Use the new FIRST and LAST fields
9392 of the loop descriptor rather than HEADER and LATCH. Also added
9393 missing break statements as well making some coding style modifications
9394 as suggested by Michael Hayes.
9395
9396 2000-01-28 Richard Henderson <rth@cygnus.com>
9397
9398 * flow.c (find_basic_blocks): Remove do_cleanup argument.
9399 Break out that code ...
9400 (cleanup_cfg): ... here.
9401 (commit_one_edge_insertion): Detect a return instruction being
9402 emitted to an edge. Emit a barrier following; clear fallthru.
9403 (commit_edge_insertions): Verify CFG consistency.
9404 * function.c (expand_function_start): Kill unused variable.
9405 (expand_function_end): Likewise.
9406 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
9407 to insert the epilogue.
9408
9409 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
9410 (delete_null_pointer_checks): Likewise.
9411 * output.h: Likewise.
9412 * reg-stack.c (reg_to_stack): Likewise.
9413 * toplev.c (rest_of_compilation): Likewise. Run
9414 thread_prologue_and_epilogue_insns after rebuilding the CFG.
9415
9416 2000-01-28 Richard Henderson <rth@cygnus.com>
9417
9418 * Makefile.in (flow.o): Revert 24 Jan change.
9419 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
9420 FUNCTION_VALUE result to DECL_RESULT's mode.
9421
9422 * haifa-sched.c (schedule_insns): Don't recompute reg info
9423 after reload.
9424
9425 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
9426
9427 * configure.in: Make --enable-cpplib the default.
9428 * configure: Regenerate.
9429 * gcc.dg/990119-1.c: No longer expected to fail.
9430
9431 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
9432
9433 * jump.c (jump_optimize_1): Delete an optimization that is also done
9434 by merge_blocks in flow.
9435
9436 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9437
9438 * diagnostic.c (build_message_string, output_printf,
9439 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
9440 (build_location_prefix): Fix non-literal format string.
9441
9442 2000-01-27 Richard Henderson <rth@cygnus.com>
9443
9444 * alpha.md (trunctfsf2): New.
9445
9446 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
9447
9448 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
9449
9450 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
9451
9452 * cppinit.c (cpp_handle_option): Recognize C++ comments under
9453 -std=gnu89.
9454 * cpplib.c (skip_block_comment, skip_line_comment): Split code
9455 out of...
9456 (skip_comment) ... here. Permit C++ comments in system
9457 headers always. Warn about C++ comments in user code under
9458 -std=gnu89 -pedantic.
9459 (copy_comment): Use skip_comment.
9460 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
9461 return EOF.
9462 (consider_directive_while_skipping, do_else, do_endif): Call
9463 validate_else unconditionally.
9464 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
9465 text after the conditional in a system header.
9466 * cpplib.h (struct cpp_buffer): Add flag
9467 warned_cplusplus_comments.
9468
9469 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
9470
9471 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
9472 Use unshare_all_rtl_1.
9473 (unshare_all_rtl_again): New function.
9474 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
9475
9476 * function.c (purge_addressof_1): Use unshare_all_rtl_again
9477 rather than resetting the 'used' flags ourself.
9478
9479 * toplev.c (rest_of_compilation): Add current_function_decl
9480 to the unshare_all_rtl call.
9481 * tree.h: Prototype unshare_all_rtl.
9482 * rtl.h: Prototype unshare_all_rtl_again here.
9483
9484 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
9485
9486 * genoutput.c (output_prologue): Include ggc.h in generated
9487 files.
9488 * Makefile.in (insn-output.o): Depends on ggc.h.
9489
9490 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
9491 Hans-Peter Nilsson <hp@bitrange.com>
9492
9493 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
9494 Remove redundant include of xm-ns32k.h.
9495 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
9496 Remove redundant include of xm-ns32k.h.
9497 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
9498 Remove redundant include of xm-ns32k.h.
9499 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
9500
9501 * ns32k/ns32k.h: Update comment on multiply-add instructions.
9502 (TARGET_SWITCHES): Add documentation strings.
9503 (DWARF_FRAME_REGNUM): Override default definition.
9504 (REG_CLASS_CONTENTS): Add comments.
9505 (SUBSET_P): Format to reduce line length.
9506 (SMALL_REGISTER_CLASSES): Make a run time option.
9507 (GO_IF_NONINDEXED_ADDRESS): Reformat.
9508 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
9509 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
9510 (regclass_map): fix typo in comment.
9511 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
9512 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
9513 (trace, reg_or_mem_operand): Delete, unused function.
9514 (calc_address_cost): Small offsets are cheaper than large ones.
9515 (expand_block_move): Generate more efficient code when bytes is a
9516 known at compile time.
9517 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
9518 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
9519 instead of reg_or_mem_operand.
9520
9521 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
9522 not general_operand. Similarly use "=rm" or stricter, not "=g".
9523 For input operands, use stricter constraints than "g" if not
9524 general_operand. Similarly use stricter predicate than
9525 "general_operand" when stricter constraints than "g" are present,
9526 except for matching constraints.
9527 (movstrsi): Use "memory_operand" for operands 0 and 1.
9528 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
9529 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
9530 not reg_or_mem_operand.
9531 (udivmoddisi4): Ditto.
9532 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
9533 Use nonimmediate_operand for operand 3, not register_operand.
9534 (udivmoddiqi4_internal): Use register_operand for operand 1, not
9535 reg_or_mem_operand.
9536
9537 2000-01-27 Fred Fish <fnf@be.com>
9538
9539 * gthr-posix.h: Fix typo; compatibily -> compatibility.
9540 * gthr-single.h: Likewise.
9541 * gthr-solaris.h: Likewise.
9542 * gthr-vxworks.h: Likewise.
9543 * gthr-win32.h: Likewise.
9544 * gthr.h: Likewise.
9545
9546 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
9547
9548 * cppinit.c: Add " (cpplib)" to end of string printed by
9549 -v / --version.
9550
9551 2000-01-27 Richard Henderson <rth@cygnus.com>
9552
9553 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
9554 testing for a signed comparison.
9555 (alpha_emit_floatuns): New.
9556 * alpha-protos.h: Declare it.
9557 * alpha.md (floatunsdisf2, floatunsdidf2): New.
9558 (extendsfdf2): Tidy.
9559
9560 2000-01-27 Jakub Jelinek <jakub@redhat.com>
9561
9562 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
9563 no -g option specifying debugging format, default to -gstabs+.
9564
9565 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
9566
9567 * calls.c (special_function_p): New argument fork_or_exec.
9568 (expand_call): When profile_arc_flag is set and the function
9569 is in the fork_or_exec group, call __bb_fork_func first.
9570 * libgcc2.c, _bb module (__bb_fork_func): New function.
9571 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
9572 output file.
9573 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
9574 * tree.h (special_function_p): Update prototype.
9575
9576 2000-01-26 Richard Henderson <rth@cygnus.com>
9577
9578 * alpha.c (alpha_split_tfmode_pair): New.
9579 * alpha-protos.h: Declare it.
9580 * alpha.md (abstf2, negtf2): New.
9581 (movtf insn): Add input G constraint.
9582 (movtf splitter): Use alpha_split_tfmode_pair.
9583
9584 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9585
9586 * i386/cygwin.h: PROTO -> PARAMS.
9587
9588 2000-01-26 Jakub Jelinek <jakub@redhat.com>
9589
9590 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
9591 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
9592 using _Qp_cmp/_Q_cmp and testing the return value.
9593 (print_operand): Call reverse_condition_maybe_unordered if
9594 we are handling CCFPmode or CCFPEmode.
9595 Handle ORDERED, UN* and LTGT comparisons.
9596 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
9597 if not TARGET_HARD_QUAD.
9598 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
9599 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
9600 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
9601 Adjust gen_b* calls so that they reflect return comparison of
9602 sparc_emit_float_lib_cmp.
9603
9604 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9605
9606 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
9607 incoming operands array is large enough for one more operand.
9608 (alpha_emit_xfloating_arith): Likewise.
9609
9610 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
9611
9612 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
9613 file with one line and no trailing newline.
9614 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
9615 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
9616 checking if the match is on the line.
9617 * fixinc/gnu-regex.c: Provide regerror not __regerror.
9618
9619 2000-01-25 Richard Henderson <rth@cygnus.com>
9620
9621 * sparc.c (output_cbranch): Fix accidental squashing of the
9622 fp branch pre-delay nop.
9623
9624 2000-01-25 Richard Henderson <rth@cygnus.com>
9625
9626 * tree.def (UNNE_EXPR): Remove.
9627 * c-typeck.c (build_binary_op): Don't handle it.
9628 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
9629
9630 * rtl.def (UNNE): Remove.
9631 (LTGT): Add.
9632 * jump.c (reverse_condition): Update accordingly.
9633 (swap_condition): Likewise.
9634 (comparison_dominates_p): Handle unordered comparisons.
9635 (reverse_condition_maybe_unordered): New.
9636 * rtl.h (reverse_condition_maybe_unordered): Declare.
9637
9638 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
9639 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
9640 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
9641 * sparc.md (bltgt): New.
9642
9643 2000-01-25 Nick Clifton <nickc@redhat.com>
9644
9645 * emit-rtl.c (emit_insn): Only check machine class insns for
9646 improper emission of a RETURN.
9647
9648 2000-01-25 Richard Henderson <rth@cygnus.com>
9649
9650 * Makefile.in (flow.o): Depend on $(EXPR_H).
9651 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
9652 duplicate the structure of diddle_return_value for keeping regs live.
9653
9654 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9655
9656 * loop.c (current_loop_info): Delete.
9657 (consec_sets_invariant_p): Add loop argument, update callers.
9658 (get_condition_for_loop): Likewise.
9659 (count_nonfixed_reads, update_giv_derive): Likewise.
9660 (simplify_giv_expr, general_induction_var): Likewise.
9661 (consec_sets_giv, recombine_givs): Likewise.
9662 (move_movables): Delete loop_start and loop_end arguments,
9663 add loop argument, and update callers.
9664 (find_mem_givs, check_final_value): Likewise.
9665 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
9666 (loop_invariant_p): Rename from invariant_p, add loop argument, and
9667 update callers.
9668 (basic_induction_var): Add loop argument, delete loop_level argument,
9669 and update callers.
9670 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
9671 add loop argument, and update callers.
9672 (find_splittable_regs, find_splittable_givs): Likewise.
9673 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
9674 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
9675 (biv_total_increment): Delete loop_start and loop_end arguments;
9676 update callers.
9677 (precondition_loop_p): Delete loop_start and loop_info arguments;
9678 update callers.
9679 * loop.h (get_condition_for_loop): Add loop argument.
9680 (biv_total_increment): Delete loop_start and loop_end arguments.
9681 (precondition_loop_p): Delete loop_start and loop_info arguments;
9682 add loop argument.
9683 (final_biv_value): Delete loop_start and loop_end arguments;
9684 add loop argument.
9685 (final_giv_value, back_branch_in_range_p): Likewise.
9686
9687 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
9688
9689 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
9690
9691 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
9692
9693 * Makefile.in (c-gperf.h) : Change the "See" pointer to
9694 point to the new "generated_files" doc.
9695
9696 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
9697
9698 * config/fp-bit.c (_unord_f2): Fix typo.
9699
9700 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
9701
9702 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
9703 c-typeck.c, objc/objc-act.c: Remove all references to obstack
9704 functions obsoleted by GC, such as push_obstacks_nochange,
9705 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
9706 and code which existed only to decide whether or not to call
9707 them. Remove now-unused NESTED argument from start_function;
9708 all callers changed. Do not change behavior based on ggc_p.
9709 The use of the ixp_obstack in c-iterate.c and the util_obstack
9710 in objc/objc-act.c remain; these are not obsoleted by garbage
9711 collection.
9712 * c-tree.h: Update prototype for start_function.
9713
9714 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
9715
9716 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
9717
9718 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
9719 mips16.
9720
9721 2000-01-25 Richard Henderson <rth@cygnus.com>
9722
9723 * sparc-protos.h (select_cc_mode): Declare.
9724 * sparc.c (select_cc_mode): New. Handle unordered compares.
9725 (output_cbranch): Always reverse via code change. Handle
9726 unordered compares. Factor tests and string updates.
9727 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
9728 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
9729 * sparc.md (bunordered, bordered): New.
9730 (bungt, bunlt, buneq, bunge, bunle): New.
9731
9732 2000-01-25 Richard Henderson <rth@cygnus.com>
9733
9734 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
9735 * ggc-common.c (ggc_add_rtx_varray_root): New.
9736 (ggc_mark_rtx_varray): New.
9737 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
9738 functions down below ggc_mark_foo.
9739 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
9740
9741 2000-01-25 Richard Henderson <rth@cygnus.com>
9742
9743 * alpha.c (secondary_reload_class): Don't allocate a secondary
9744 for integral mode memories into FLOAT_REGS. Rearrange the more
9745 complicated memory expression inward.
9746
9747 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
9748
9749 * inclhack.def: Fixes to play nicer with FreeBSD, and
9750 corrections to comments.
9751 (cxx_unready): Add select expression.
9752 (irix_sockaddr): Add bypass expression.
9753 (machine_ansi_h_va_list): New fix.
9754 (stdio_va_list): No need to edit _BSD_VA_LIST_.
9755 Split out addition of "#include <stdarg.h>" to...
9756 (stdio_stdarg_h): ... here.
9757 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
9758 to stdlib.h also. Do not munge _BSD_SIZE_T_.
9759 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
9760 size_t.
9761 (ultrix_ifdef): Tighten up select expression.
9762
9763 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
9764 re_ct and max_mach to avoid use of shell. Make printed names
9765 match names in inclhack.def. Use static copyright date.
9766 Don't count c_test and test expressions as requiring regex_t
9767 slots. Add some commentary.
9768 * inclhack.tpl: Do not include the 'This script contains N
9769 fixup scripts' line if PROGRAM is defined. Use static
9770 copyright date.
9771
9772 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
9773
9774 * dwarf2out.c: include "varray.h", not dyn-string.h.
9775 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
9776 (addr_const_to_string, addr_to_string): Lose.
9777 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
9778 (struct dw_val_struct): val_addr is now an rtx.
9779 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
9780 (used_rtx_varray): New varray.
9781 (dwarf2out_init): Initialize it.
9782 (save_rtx): New fn.
9783 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
9784 addr_to_string.
9785 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
9786 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
9787 * Makefile.in (dwarf2out.o): Update dependencies.
9788
9789 2000-01-24 Richard Henderson <rth@cygnus.com>
9790
9791 * i386.c (i386_dwarf_output_addr_const): New.
9792 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
9793
9794 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
9795 if defined.
9796 * dwarfout.c (output_mem_loc_descriptor): Likewise.
9797 * i386.c (i386_simplify_dwarf_addr): New.
9798 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
9799
9800 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
9801
9802 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
9803 TYPE_STUB_DECL is NULL.
9804
9805 2000-01-24 Richard Henderson <rth@cygnus.com>
9806
9807 * builtins.c (expand_tree_builtin): Move ...
9808 * c-common.c (expand_tree_builtin): ... here.
9809
9810 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9811
9812 * loop.h (LOOP_INFO): New accessor macro.
9813 * basic-block.h (struct loop): Rename field `info' to `aux'.
9814 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
9815 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
9816 * unroll.c (loop_iterations, unroll_loop): Likewise.
9817
9818 2000-01-24 Christopher Faylor <cgf@cygnus.com>
9819
9820 * config/i386/t-cygwin: Accomodate new winsup directory layout
9821 when searching for include files.
9822
9823 2000-01-24 Richard Henderson <rth@cygnus.com>
9824
9825 * rtl.def: Add unordered fp comparisions.
9826 * tree.def: Likewise.
9827 * tree.h: Add ISO C 9x unordered fp comparision builtins.
9828
9829 * builtins.c (expand_tree_builtin): New function.
9830 * c-typeck.c (build_function_call): Use it.
9831 (build_binary_op): Support unordered compares.
9832 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
9833
9834 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
9835 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
9836 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
9837 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
9838 * jump.c (reverse_condition): Don't abort for UNLE etc, but
9839 return UNKNOWN.
9840 (swap_condition): Handle unordered compares.
9841 (thread_jumps): Check can_reverse before reversing.
9842 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
9843 reversed for FP.
9844
9845 * optabs.c (can_compare_p): New argument CODE. Verify branch or
9846 setcc is present before acking for cmp_optab. Update all callers.
9847 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
9848 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
9849 * expr.c (expand_expr): Likewise. Support unordered compares.
9850 (do_jump, do_store_flag): Likewise.
9851 * expr.h (enum libfunc_index): Add unordered compares.
9852
9853 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
9854 (DPBIT_FUNCS): Add _unord_df.
9855 * config/fp-bit.c (_unord_f2): New.
9856 * fp-test.c (main): Try unordered compare builtins.
9857
9858 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
9859 * alpha.c (alpha_comparison_operator): Check mode properly.
9860 (alpha_swapped_comparison_operator): Likewise.
9861 (signed_comparison_operator): Likewise.
9862 (alpha_fp_comparison_operator): New.
9863 (alpha_emit_conditional_branch): Handle unordered compares.
9864 * alpha.h (PREDICATE_CODES): Update.
9865 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
9866 (bunordered, bordered): New.
9867
9868 2000-01-24 Richard Henderson <rth@cygnus.com>
9869
9870 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
9871 * alpha.md (movtf): New expander, insn, and splitter.
9872
9873 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
9874
9875 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
9876 dead registers.
9877
9878 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
9879
9880 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
9881 (FIXED_REGISTERS, CALL_USED_REGISTERS,
9882 REG_ALLOC_ORDER): Add frame pointer
9883 (FRAME_POINTER_REGNUM): Set to 20
9884 (HARD_FRAME_POINTER_REGNUM): New macro.
9885 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
9886 to HARD_FRAME_POINTER.
9887 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
9888 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
9889 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
9890 (HI_REGISTER_NAMES): Add "frame".
9891 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
9892 (debug_reg): Handle FRAME_POINTER_REGNUM.
9893 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
9894 GENERAL_REGS and INDEX_REGS.
9895 * i386.c (SAVED_REGS_FIRST): new macro.
9896 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
9897 (ix86_decompose_address, memory_address_length): Likewise.
9898 (regclass_map): Add frame pointer.
9899 (call_insn_operand): Handle frame_pointer_rtx.
9900 (reg_no_sp_operand): Likewise.
9901 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
9902 (print_operand, legitimize_pic_address): Fix formating.
9903 (ix86_compute_frame_size): Make static, update prototype, new
9904 parameters padding1, padding2, use ix86_nsaved_regs, use
9905 stack_alignment_needed.
9906 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
9907 to HARD_FRAME_POINTER_REGNUM conversions.
9908 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
9909 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
9910 (print_reg): Abort on FRAME_POINTER_REGNUM
9911
9912 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
9913
9914 * i386.h (PREDICATE_CODES): Add aligned_operand.
9915 * i386.c (aligned_operand): New function.
9916 (ix86_aligned_p): Kill.
9917 * i386.md (movhi_1): Emit mov for aligned operands.
9918 (promoting peep2s): Use aligned_operand.
9919
9920 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
9921
9922 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
9923 expression to allow underscores in macro names.
9924 (fix_char_macro_defines): Increment scanning pointer.
9925
9926 2000-01-23 Richard Henderson <rth@cygnus.com>
9927
9928 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
9929 * alpha/osf5.h: New file.
9930 * configure.in (alpha-*-osf5): Add it to tm_file.
9931
9932 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
9933
9934 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
9935 (alpha_emit_xfloating_cvt, function_arg): Declare.
9936 * alpha.c (alpha_emit_conditional_branch): Call
9937 alpha_emit_xfloating_compare for TFmode compares.
9938 (alpha_lookup_xfloating_lib_func): New.
9939 (alpha_compute_xfloating_mode_arg): New.
9940 (alpha_emit_xfloating_libcall): New.
9941 (alpha_emit_xfloating_arith): New.
9942 (alpha_emit_xfloating_compare): New.
9943 (alpha_emit_xfloating_cvt): New.
9944 (print_operand): Add default abort case.
9945 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
9946 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
9947 (BIGGEST_ALIGNMENT): Increase to 128 bits.
9948 (RETURN_IN_MEMORY): True for TF/TCmode.
9949 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
9950 (FUNCTION_ARG): Move to function_arg.
9951 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
9952 (ASM_OUTPUT_LONG_DOUBLE): New.
9953 (ASM_OUTPUT_DOUBLE): Always output bits.
9954 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
9955 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
9956 (extenddftf2, trunctfdf2): New.
9957
9958 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9959
9960 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
9961 * config/sparc/sol2.h: ... here.
9962
9963 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9964
9965 * basic-block.h (struct loops): New field `levels'.
9966 * flow.c (flow_loops_level_compute): Traverse all outer loops.
9967 (flow_loop_level_compute): Initialise level to 1.
9968 (flow_loops_find): Set loops->levels.
9969 (flow_loops_dump): Print loops->levels.
9970
9971 2000-01-23 Richard Henderson <rth@cygnus.com>
9972
9973 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
9974 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
9975
9976 2000-01-23 Richard Henderson <rth@cygnus.com>
9977
9978 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
9979 * i386.h (DBX_REGISTER_NUMBER): Use them.
9980 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
9981 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
9982 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
9983 * i386/sequent.h: Kill incorrect comment.
9984
9985 2000-01-23 Mark Mitchell <mark@codesourcery.com>
9986
9987 * ggc-page.c (struct page_entry): Make `context_depth' an
9988 `unsigned short'.
9989 (struct globals): Likewise.
9990
9991 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
9992
9993 * loop.c (check_dbra_loop): When checking a loop for
9994 reversability, check the source of any stores to ensure
9995 they don't depend on an initial value.
9996
9997 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9998
9999 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
10000
10001 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
10002
10003 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
10004 'pz_scan' into scope of entire function. Only affects
10005 compiles with -DDEBUG.
10006
10007 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
10008
10009 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
10010 section naming to that prior to 2000-01-07 patch.
10011 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
10012 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
10013 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
10014 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
10015 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
10016
10017 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
10018
10019 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
10020 constant.
10021
10022 2000-01-21 Jim Wilson <wilson@cygnus.com>
10023
10024 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
10025 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
10026
10027 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
10028
10029 * cpphash.c (change_newlines): Delete function.
10030 (struct argdata): Delete 'newlines' and 'use_count' fields.
10031 (macroexpand): Remove code referencing those fields.
10032
10033 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10034
10035 * loop.c (loops_info): New variable.
10036 (loop_optimize): Allocate loops->array and free it on exit.
10037 Allocate memory for loops_info and assign to each loop,
10038 replacing alloca.
10039 (find_and_verify_loops): Do not allocate loops->array.
10040
10041 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
10042
10043 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
10044
10045 2000-01-21 Jakub Jelinek <jakub@redhat.com>
10046
10047 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
10048 pseudos if expanded after first flow.
10049 (movdi_pic_label_ref): Likewise.
10050
10051 2000-01-20 Richard Henderson <rth@cygnus.com>
10052
10053 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
10054
10055 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
10056
10057 * Makefile.in (fixinc.sh): Depend on specs.
10058 * fixinc/Makefile.in: Add rule to create machname.h.
10059 (fixlib.o): Depend on machname.h.
10060 * fixinc/fixtests.c (machine_name): New test.
10061 * fixinc/fixfixes.c (machine_name): New fix.
10062 * fixinc/fixlib.c (mn_get_regexps): New helper function for
10063 the machine_name test and fix.
10064 * fixinc/fixlib.h: Prototype it.
10065 * fixinc/inclhack.def (machine_name): Use the C test and fix.
10066 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
10067
10068 * gcc.c (do_spec_1) [case P]: Take care not to create
10069 identifiers with three leading or trailing underscores.
10070
10071 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
10072 (fixincl): Don't specify libraries twice on link line.
10073 (gnu-regex.o): Remove special rule.
10074 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
10075 defined by config.h. Do not define _REGEX_RE_COMP.
10076 (regcomp): Allocate and initialize a fastmap.
10077 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
10078
10079 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
10080
10081 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
10082
10083 2000-01-19 Richard Henderson <rth@cygnus.com>
10084
10085 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
10086 arguments with BB. Update all callers. Tidy line wrapping.
10087
10088 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
10089
10090 * emit-rtl.c (try_split): Return last_insn if we split the
10091 last_insn.
10092
10093 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
10094
10095 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
10096 (ix86_initial_elimination_offset): Declare.
10097 * i386.c (ix86_nsaved_regs): Break out from ...
10098 (ix86_can_use_return_insn_p): ... here.
10099 (ix86_emit_save_regs): Break out from ...
10100 (ix86_expand_prologue): ... here.
10101 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
10102 out from ...
10103 (ix86_expand_epilogue): ... here.
10104 (ix86_compute_frame_size): Make static, add prototype.
10105 (ix86_initial_elimination_offset): Break out from ...
10106 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
10107
10108 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10109
10110 * recog.h (OUT_FCN): Delete.
10111
10112 * vax.md: Call `get_insn_template' instead of OUT_FCN.
10113
10114 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10115
10116 * cppalloc.c: PROTO -> PARAMS.
10117 * cpperror.c: Likewise.
10118 * cppfiles.c: Likewise.
10119 * cpplib.c: Likewise.
10120 * cpplib.h: Likewise.
10121
10122 * config/arm/arm-protos.h: PROTO -> PARAMS.
10123 * config/arm/arm.c: Likewise.
10124 * config/c4x/c4x.c: Likewise.
10125 * config/fr30/fr30-protos.h: Likewise.
10126 * config/nextstep.c: Likewise.
10127 * config/pa/pa.c: Likewise.
10128 * config/pj/pj.c: Likewise.
10129 * config/rs6000/rs6000.c: Likewise.
10130 * config/v850/v850-protos.h: Likewise.
10131 * config/v850/v850.c: Likewise.
10132
10133 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10134
10135 * i370-protos.h: New file.
10136
10137 * i370.c: Include tm_p.h. Fix compile time warnings.
10138
10139 * i370.h: Move prototypes to i370-protos.h. Fix compile time
10140 warnings.
10141
10142 * i370.md: Likewise.
10143
10144 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10145
10146 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
10147 (target_isinf, target_isnan, eisnan): Mark parameter with
10148 ATTRIBUTE_UNUSED.
10149 (eiisinf): Wrap in INFINITY.
10150 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
10151 (ibmtoe): Remove unused variable `rndsav'.
10152
10153 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10154
10155 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
10156 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
10157
10158 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
10159
10160 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
10161 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
10162 (fix_char_macro_defines, fix_char_macro_uses): New functions.
10163
10164 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
10165 Recognize Emacs mode markers also.
10166 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
10167 C++ comments in C++ headers. Call is_cxx_header only if
10168 necessary.
10169
10170 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
10171 bypass for ncurses.
10172 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
10173 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
10174 ... these, which use the new C fixes.
10175 (math_exception): Escape literal '+' in bypass expression.
10176
10177 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
10178 Regenerate.
10179
10180 2000-01-19 Geoff Keating <geoffk@cygnus.com>
10181
10182 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
10183 inside the MEM.
10184
10185 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10186
10187 * loop.c (loop_optimize): Allocate loop_info structure for each loop
10188 prior to calling scan_loop.
10189
10190 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10191
10192 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
10193 (split_branches, calc_live_regs): Likewise.
10194
10195 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10196
10197 * sh.md (fpu_single, fp_mode): New attributes.
10198
10199 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10200
10201 * loop.c (current_loop_info): Renamed from loop_info_data
10202 and changed to a pointer.
10203 (loop_optimize): Allocate loop_info structure for each loop
10204 and initialise to zero.
10205 (scan_loop): Set current_loop_info.
10206
10207 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
10208 on iteration_var.
10209
10210 2000-01-19 Richard Henderson <rth@cygnus.com>
10211
10212 * stupid.c: Die die die.
10213 * Makefile.in (OBJS): Remove stupid.o.
10214 (stupid.o): Likewise.
10215
10216 * except.c (emit_eh_context): Don't emit USEs for stupid.
10217 * explow.c (probe_stack_range): Likewise.
10218 * flags.h (obey_regdecls): Remove.
10219 * flow.c (find_basic_blocks): Don't run try_merge_blocks
10220 when not optimizing.
10221 (life_analysis): Limit data collection when not optimizing.
10222 (mark_regs_live_at_end): Always mark the return value registers.
10223 (mark_used_regs): Remove dummy RETURN case.
10224 (print_rtl_with_bb): Don't consult obey_regdecls.
10225 * function.c (use_variable, use_variable_after): Remove.
10226 (assign_parms): Consult optimize not obey_regdecls.
10227 (expand_function_start): Don't emit USEs for stupid.
10228 (expand_function_end): Likewise.
10229 * global.c (build_insn_chain): Export.
10230 * integrate.c (expand_inline_function): Kill return-value USE
10231 handling code.
10232 * jump.c (jump_optimize_1): Do simple jump optimizations and
10233 dead code elimination.
10234 (calculate_can_reach_end): Remove check_deleted argument.
10235 (delete_insn): Patch out insns even when not optimizing.
10236 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
10237 * rtl.h (use_variable, use_variable_after): Remove declarations.
10238 (build_insn_chain): Declare.
10239 * stmt.c (expand_value_return): Don't emit USEs for stupid.
10240 (expand_end_bindings): Likewise.
10241 (expand_decl): Likewise. Consult optimize not obey_regdecls.
10242 * toplev.c (obey_regdecls): Remove.
10243 (rest_of_compilation): Don't set it. Kill stupid in favour of
10244 flow1, local-alloc, and reload.
10245 (main): Don't set obey_regdecls.
10246
10247 * config/nextstep.c (handle_pragma): Likewise.
10248
10249 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
10250
10251 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
10252
10253 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10254
10255 * alpha-protos.h: PROTO -> PARAMS.
10256 * alpha.c: Likewise.
10257 * elf.h: Likewise.
10258 * h8300.c: Likewise.
10259 * i386-protos.h: Likewise.
10260 * i386.c: Likewise.
10261 * m32r-protos.h: Likewise.
10262 * m32r.c: Likewise.
10263 * mips.c: Likewise.
10264 * mips.md: Likewise.
10265 * gmon-sol2.c: Likewise.
10266 * sparc.c: Likewise.
10267
10268 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10269
10270 * ns32k-protos.h: New file.
10271
10272 * ns32k.c: Fix compile time warnings.
10273
10274 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
10275 warnings.
10276
10277 * ns32k.md: Likewise.
10278
10279 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10280
10281 * vax-protos.h: New file.
10282
10283 * vax.c: Fix compile time warnings.
10284
10285 * vax.h: Move prototypes to vax-protos.h. Fix compile time
10286 warnings.
10287
10288 * vax.md: Likewise.
10289
10290 * vaxv.md: Likewise.
10291
10292 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10293
10294 * romp-protos.h: New file.
10295
10296 * romp.c: Fix compile time warnings.
10297
10298 * romp.h: Move prototypes to romp-protos.h. Fix compile time
10299 warnings.
10300
10301 * romp.md: Likewise.
10302
10303 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10304
10305 * we32k-protos.h: New file.
10306
10307 * we32k.c: Fix compile time warnings.
10308
10309 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
10310 warnings.
10311
10312 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10313
10314 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
10315
10316 * except.c (eh_regs): Likewise.
10317
10318 * final.c (output_operand): Likewise.
10319
10320 * fold-const.c (target_isinf, target_isnan): Likewise.
10321
10322 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
10323
10324 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
10325 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
10326
10327 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
10328 when optimize_size.
10329 (clrstrsi): Rewrite.
10330 (strsethi, strsetqi): New expanders.
10331 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
10332 (cmpstrsi): Emit compare insn before cmpstrsi_1
10333 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
10334 (strlensi_1): Likewise.
10335 (cmpstrsi_1): Likewise; do not output compare.
10336 (strlen expander): Do not unroll when optimizing for size.
10337 (*subsi3_carry): Rename to subsi3_carry
10338 (addqi3_cc): New pattern.
10339 * i386.h (processor_costs): Add move_ratio field.
10340 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
10341 * i386.c (*_cost): Set move_ratio.
10342 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
10343 (x86_expand_strlensi_1): Rewrite the main loop.
10344
10345 2000-01-17 Richard Henderson <rth@cygnus.com>
10346
10347 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
10348 * cse.c (find_comparison_args, fold_rtx): Likewise.
10349 * integrate.c (subst_constants): Likewise.
10350 * loop.c (get_condition): Likewise.
10351
10352 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
10353
10354 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
10355
10356 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10357
10358 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
10359 (RESTORE_WARN_FLAGS): Unpack it.
10360 Change semantic type of extension to ttype.
10361 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
10362 * c-parse.y, c-parse.c, objc/objc-parse.y,
10363 objc/objc-parse.c: Regenerate.
10364
10365 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
10366
10367 * fixinc/fixlib.c: Add copyright notice.
10368 (compile_re): New function.
10369 * fixinc/fixlib.h: Prototype compile_re.
10370
10371 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
10372 Use compile_re to compile regular expressions.
10373
10374 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
10375 where the pattern matched.
10376
10377 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
10378 use 'replace'.
10379 (ultrix_ansi_compat): Likewise.
10380 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
10381 add egrep test.
10382 (interactv_add2, interactv_add3): Delete.
10383 (x11_sprintf): Don't use filename glob.
10384 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
10385 Regenerate.
10386
10387 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10388
10389 * print-rtl.c: PROTO -> PARAMS.
10390 * real.c: Likewise.
10391 * reg-stack.c: Likewise.
10392 * resource.c: Likewise.
10393 * sdbout.h: Likewise.
10394 * simplify-rtx.c: Likewise.
10395 * stor-layout.c: Likewise.
10396 * stupid.c: Likewise.
10397 * xcoffout.c: Likewise.
10398 * xcoffout.h: Likewise.
10399
10400 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10401
10402 * toplev.c: PROTO -> PARAMS.
10403 * toplev.h: Likewise.
10404 * tree.c: Likewise.
10405 * tree.h: Likewise.
10406 * unroll.c: Likewise.
10407 * varasm.c: Likewise.
10408 * varray.c: Likewise.
10409 * varray.h: Likewise.
10410
10411 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10412
10413 * reload.c: PROTO -> PARAMS.
10414 * reload.h: Likewise.
10415 * reload1.c: Likewise.
10416 * reorg.c: Likewise.
10417 * resource.h: Likewise.
10418 * rtl.c: Likewise.
10419 * rtl.h: Likewise.
10420 * rtlanal.c: Likewise.
10421 * sbitmap.h: Likewise.
10422 * sdbout.c: Likewise.
10423 * stack.h: Likewise.
10424 * stmt.c: Likewise.
10425 * system.h: Likewise.
10426
10427 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10428
10429 * machmode.h: PROTO -> PARAMS.
10430 * mbchar.h: Likewise.
10431 * mips-tdump.c: Likewise.
10432 * mips-tfile.c: Likewise.
10433 * optabs.c: Likewise.
10434 * output.h: Likewise.
10435 * prefix.c: Likewise.
10436 * profile.c: Likewise.
10437 * protoize.c: Likewise.
10438 * real.h: Likewise.
10439 * recog.c: Likewise.
10440 * recog.h: Likewise.
10441 * regclass.c: Likewise.
10442 * regmove.c: Likewise.
10443 * regs.h: Likewise.
10444
10445 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10446
10447 * ggc-common.c: PROTO -> PARAMS.
10448 * ggc-page.c: Likewise.
10449 * ggc-simple.c: Likewise.
10450 * ggc.h: Likewise.
10451 * global.c: Likewise.
10452 * graph.c: Likewise.
10453 * gthr-win32.h: Likewise.
10454 * haifa-sched.c: Likewise.
10455 * halfpic.h: Likewise.
10456 * integrate.c: Likewise.
10457 * integrate.h: Likewise.
10458 * jump.c: Likewise.
10459 * lcm.c: Likewise.
10460 * local-alloc.c: Likewise.
10461 * loop.c: Likewise.
10462 * loop.h: Likewise.
10463
10464 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10465
10466 * genattr.c: PROTO -> PARAMS.
10467 * genattrtab.c: Likewise.
10468 * gencheck.c: Likewise.
10469 * gencodes.c: Likewise.
10470 * genconfig.c: Likewise.
10471 * genemit.c: Likewise.
10472 * genextract.c: Likewise.
10473 * genflags.c: Likewise.
10474 * gengenrtl.c: Likewise.
10475 * genopinit.c: Likewise.
10476 * genoutput.c: Likewise.
10477 * genpeep.c: Likewise.
10478 * genrecog.c: Likewise.
10479
10480 2000-01-16 Mark Mitchell <mark@codesourcery.com>
10481
10482 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
10483
10484 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10485
10486 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
10487 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
10488 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
10489 * configure, config.in: Rebuilt.
10490
10491 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
10492
10493 * config/i386/i386.md: Add peephole to merge successive stack
10494 adjusts.
10495
10496 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
10497
10498 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
10499 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
10500 when walking backwards to find all the parameter loads when
10501 the basic block ends in a call.
10502
10503 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10504
10505 * loop.c (this_loop_info): Delete.
10506 (uid_loop): Add in place of uid_loop_num. All uses updated.
10507 (loop_number_exit_count): Delete and replace with entry in loop
10508 structure. All uses updated.
10509 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
10510 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
10511 (loop_outer_loop): Likewise.
10512 (loop_invalid, loop_number_exit_labels): Likewise.
10513 (loop_used_count_register): Delete and replace with entry in
10514 loop_info structure.
10515 (find_and_verify_loops): Add loops argument.
10516 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
10517 loop_end, etc. arguments with loop structure pointer. All callers
10518 changed.
10519 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
10520 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
10521 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
10522 (insert_bct): Likewise.
10523 (basic_induction_var): New argument level.
10524 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
10525 vtop, and cont. Add used_count_register.
10526 (uid_loop): Delete declaration.
10527 (loop_number_exit_count): Likewise.
10528 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
10529 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
10530 (loop_outer_loop, loop_used_count_register): Likewise.
10531 (loop_invalid, loop_number_exit_labels): Likewise.
10532 (unroll_loop): Replace loop_start and loop_end arguments
10533 with loop structure pointer.
10534 (loop_precondition_p, loop_iterations): Likewise.
10535 Include basic-block.h.
10536 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
10537 with loop structure pointer.
10538 (loop_precondition_p, loop_iterations): Likewise.
10539 * basic-block.h (struct loop): New entries vtop, cont,
10540 cont_dominator, start, end, top, scan_start, exit_labels,
10541 exit_count.
10542 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
10543
10544 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10545
10546 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
10547
10548 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
10549
10550 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
10551
10552 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10553
10554 * pdp11-protos.h: New file.
10555
10556 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
10557 time warnings.
10558
10559 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
10560 warnings.
10561
10562 * pdp11.md: Likewise.
10563
10564 * 2bsd.h: Likewise.
10565
10566 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10567
10568 * mn10300-protos.h: New file.
10569
10570 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
10571 time warnings.
10572
10573 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
10574 warnings.
10575
10576 * mn10300.md: Likewise.
10577
10578 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10579
10580 * mn10200-protos.h: New file.
10581
10582 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
10583 time warnings.
10584
10585 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
10586 warnings.
10587
10588 * mn10200.md: Likewise.
10589
10590 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10591
10592 * h8300-protos.h: New file.
10593
10594 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
10595 time warnings.
10596
10597 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
10598 warnings.
10599
10600 * h8300.md: Likewise.
10601
10602 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10603
10604 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
10605 (asm_emit_uninitialised): Likewise.
10606
10607 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
10608
10609 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
10610 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
10611
10612 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10613
10614 * config/mips/mips.c (override_options): Don't turn on extra
10615 alignment for mips16.
10616
10617 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10618
10619 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
10620 eabi, and make sure queued POSTINCREMENT rtl is emitted at
10621 the right point.
10622
10623 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10624
10625 * builtins.c (PAD_VARARGS_DOWN): Define.
10626 (std_expand_builtin_va_arg): Use the above macro.
10627 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
10628 * tm.texi (Register Arguments): Document the above macro.
10629
10630 2000-01-14 Nick Clifton <nickc@cygnus.com>
10631
10632 * emit-rtl.c (emit_insn): If checking is enabled, make sure
10633 that this function has not been used to emit a jump
10634 instruction.
10635
10636 * jump.c (return_jump_1): Cope with being passed a null rtx.
10637
10638 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10639
10640 * eh-common.h: PROTO -> PARAMS.
10641 * emit-rtl.c: Likewise.
10642 * errors.c: Likewise.
10643 * errors.h: Likewise.
10644 * except.c: Likewise.
10645 * except.h: Likewise.
10646 * explow.c: Likewise.
10647 * expmed.c: Likewise.
10648 * expr.c: Likewise.
10649 * expr.h: Likewise.
10650 * final.c: Likewise.
10651 * fix-header.c: Likewise.
10652 * flow.c: Likewise.
10653 * fold-const.c: Likewise.
10654 * function.c: Likewise.
10655 * function.h: Likewise.
10656 * gcc.c: Likewise.
10657 * gcov-io.h: Likewise.
10658 * gcov.c: Likewise.
10659 * gcse.c: Likewise.
10660
10661 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10662
10663 * sh-protos.h: New file.
10664
10665 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
10666 Add static prototypes. Fix compile time warnings.
10667
10668 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
10669 * sh.md: Likewise.
10670 * elf.h: Likewise.
10671
10672 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10673
10674 * arc-protos.h: New file.
10675
10676 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
10677 time warnings.
10678
10679 * arc.h: Move prototypes to arc-protos.h. Fix compile time
10680 warnings.
10681
10682 * arc.md: Likewise.
10683
10684 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10685
10686 * dsp16xx-protos.h: New file.
10687
10688 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
10689 time warnings.
10690
10691 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
10692 warnings.
10693
10694 * dsp16xx.md: Likewise.
10695
10696 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10697
10698 * convex-protos.h: New file.
10699
10700 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
10701 time warnings.
10702
10703 * convex.h: Move prototypes to convex-protos.h. Fix compile time
10704 warnings.
10705
10706 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10707
10708 * elxsi-protos.h: New file.
10709
10710 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
10711 time warnings.
10712
10713 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
10714 warnings.
10715
10716 * elxsi.md: Likewise.
10717
10718 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10719
10720 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
10721 case for moving from HI/LO/HI_LO_REG. This makes the behavior
10722 match the comment for MIPS16.
10723
10724 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
10725
10726 * flow.c (split_edge): Do not call set_block_for_insn if we
10727 do not have a basic_block_for_insn structure.
10728
10729 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
10730 and destination functions are 32bit aligned within the trampoline.
10731 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
10732 (TRAMPOLINE_ALIGNMENT): Define.
10733
10734 * cse.c (cse_insn): When changing (set (pc) (reg)) to
10735 (set (pc) (label_ref)), verify the change creates a valid insn.
10736
10737 * fr30.c (call_operand): Tighten and rework to match rules for
10738 call RTL expressions.
10739 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
10740 * fr30.md (call patterns): Improve constraints.
10741
10742 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
10743
10744 * fr30.c (fr30_expand_epilogue): Revert last change.
10745 Use emit_jump_insn for the return insn.
10746
10747 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
10748 Stan Cox <scox@cygnus.com>
10749
10750 * predict.c: New file. Preliminary infrastructure work for static
10751 branch prediction and basic block reordering.
10752 * basic-block.h: Add prototype for estimate_probability.
10753 * Makefile.in: Add rules for predict.o.
10754
10755 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
10756
10757 * fixincludes (va_list): Use __not_va_list__ for the dummy.
10758 * fixinc/*: Likewise.
10759
10760 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10761
10762 * cccp.c: PROTO -> PARAMS.
10763 * cexp.y: Likewise.
10764 * collect2.c: Likewise.
10765 * combine.c: Likewise.
10766 * convert.h: Likewise.
10767 * cse.c: Likewise.
10768 * dbxout.c: Likewise.
10769 * dbxout.h: Likewise.
10770 * diagnostic.c: Likewise.
10771 * doprint.c: Likewise.
10772 * dwarf2out.c: Likewise.
10773 * dwarf2out.h: Likewise.
10774 * dwarfout.c: Likewise.
10775 * dwarfout.h: Likewise.
10776 * dyn-string.h: Likewise.
10777
10778 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10779
10780 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
10781 macro conditionals guarding use.
10782
10783 * dwarf2out.c: Include "tm_p.h".
10784
10785 * function.c (locate_and_pad_parm): Mark parameter with
10786 ATTRIBUTE_UNUSED.
10787 (expand_function_end): Likewise for variable `context'.
10788
10789 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
10790
10791 2000-01-13 Nick Clifton <nickc@cygnus.com>
10792
10793 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
10794 register to prevent compile time warnings.
10795
10796 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
10797
10798 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
10799 to avoid -Wtraditional warning.
10800
10801 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10802
10803 * 1750a-protos.h: New file.
10804
10805 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
10806 time warnings.
10807
10808 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
10809 warnings.
10810
10811 * 1750a.md: Likewise.
10812
10813 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10814
10815 * a29k-protos.h: New file.
10816
10817 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
10818 time warnings.
10819
10820 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
10821 warnings.
10822
10823 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10824
10825 * clipper-protos.h: New file.
10826
10827 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
10828 time warnings.
10829
10830 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
10831 warnings.
10832
10833 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10834
10835 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
10836
10837 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
10838
10839 * configure.in (--enable-new-gxx-abi): New option.
10840 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
10841 * Makefile.in (GXX_ABI_FLAG): New variable.
10842 * configure: Regenerate.
10843
10844 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10845
10846 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
10847 * tm.texi (FORCE_STRUCT_BLK): Document.
10848 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
10849
10850 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
10851
10852 * config/ns32k/ns32k.md: Revert Jan 9 change.
10853
10854 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
10855 to a mode-test, if the predicate is address_operand.
10856
10857 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
10858
10859 * combine.c (if_then_else_cond): Be careful about what kinds
10860 of RTL expressions are passed to operand_subword.
10861
10862 * flow.c (split_edge): If we have to insert a new jump, make
10863 sure to associate it with a basic block.
10864
10865 * flow.c (commit_one_edge_insertion): A block with one successor
10866 can end in a JUMP_INSN that is not a simplejump.
10867
10868 2000-01-12 Robert Lipe <robertl@sco.com>
10869
10870 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
10871 (BUILD_VA_LIST_TYPE): Define.
10872 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
10873 with crtstuff.c.
10874
10875 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
10876
10877 * cccp.c (do_pragma): Add cast to (char *).
10878
10879 2000-01-12 Richard Henderson <rth@cygnus.com>
10880 Fred Fish <fnf@be.com>
10881 Jason Merrill <jason@cygnus.com>
10882
10883 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
10884 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
10885 * i386/beos-elf.h, i386/beos-pe.h: New files.
10886
10887 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
10888 * cross-make (SYSTEM_HEADER_DIR): Define using
10889 CROSS_SYSTEM_HEADER_DIR.
10890
10891 * gcc.c (LIBRARY_PATH_ENV): Provide default.
10892 (process_command): Use it.
10893 (main): Likewise. Kill trailing = from env vars.
10894 (build_search_list): Put it back.
10895 * collect2.c (main): Use LIBRARY_PATH_ENV.
10896
10897 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
10898 * toplev.c: Use NEED_DECLARATION_ENVIRON.
10899
10900 * tm.texi (Frame Layout): Document SMALL_STACK.
10901 * c-common.c (c_common_nodes_and_builtins): Check it.
10902
10903 * system.h: Undef alloca after including glibc's <stdlib.h>,
10904 if USE_C_ALLOCA is defined.
10905
10906 * gcc.c (set_input): New fn.
10907 (main): After all input files are compiled, reset the input file
10908 info to the first.
10909
10910 * aclocal.m4 (rindex, index): If already defined, don't attempt
10911 to redefine.
10912
10913 * ginclude/varargs.h: (__va_list__): Define ifndef.
10914 * ginclude/stdarg.h: Likewise.
10915
10916 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
10917 instead of unsigned char.
10918
10919 * hash.h (true, false, boolean): Undef before enum.
10920
10921 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
10922 proper type of "HOST_WIDE_INT *", rather than their natural type of
10923 "unsigned HOST_WIDE_INT *".
10924
10925 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10926
10927 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
10928
10929 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
10930
10931 * regclass.c (choose_hard_reg_mode): Likewise.
10932
10933 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
10934
10935 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
10936
10937 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10938
10939 * c-common.c: PROTO -> PARAMS.
10940 * c-common.h: Likewise.
10941 * c-decl.c: Likewise.
10942 * c-iterate.c: Likewise.
10943 * c-lang.c: Likewise.
10944 * c-lex.c: Likewise.
10945 * c-lex.h: Likewise.
10946 * c-parse.in: Likewise.
10947 * c-pragma.c: Likewise.
10948 * c-pragma.h: Likewise.
10949 * c-tree.h: Likewise.
10950 * c-typeck.c: Likewise.
10951 * objc/objc-act.c: Likewise.
10952 * objc/objc-act.h: Likewise.
10953
10954 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10955
10956 * m88k-protos.h: New file.
10957
10958 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
10959 time warnings.
10960
10961 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
10962
10963 * m88k.md: Likewise.
10964
10965 * tekXD88.h: Likewise.
10966
10967 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10968
10969 * m68k-protos.h: New file.
10970
10971 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
10972 time warnings.
10973
10974 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
10975
10976 * mot3300.h: Likewise.
10977
10978 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
10979
10980 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
10981 extract_bitlst.
10982 (extract_bitlist): Declare bitlen.
10983
10984 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
10985
10986 * cccp.c: Accept and ignore -lang-fortran.
10987
10988 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
10989 qualifiers don't match at any level of pointerness.
10990
10991 2000-01-12 Robert Lipe <robertl@sco.com>
10992
10993 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
10994
10995 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
10996
10997 * reload1.c (reload_reg_unavailable): New static variable.
10998 (reload_reg_free_p): Test it.
10999 (reload_reg_free_for_value_p): Test it instead of
11000 reload_reg_used.
11001 (choose_reload_regs_init): Compute it.
11002
11003 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
11004
11005 * reorg.c (fill_slots_from_thread): Check modified_in_p
11006 before replacing.
11007
11008 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
11009
11010 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
11011 these nodes even if INTERNALS is not set.
11012
11013 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
11014
11015 * gcse.c (delete_null_pointer_checks_1): Cope when
11016 get_condition cannot determine the condition.
11017
11018 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
11019
11020 * toplev.h (set_message_length): Declare.
11021
11022 * diagnostic.c (obstack_chunk_alloc): Define macro.
11023 (obstack_chunk_free): Likewise.
11024 (struct output_buffer): New data structure.
11025 (vmessage): Remove.
11026 (output_maximum_width): New variable.
11027 (doing_line_wrapping, set_message_length, init_output_buffer,
11028 get_output_prefix, output_space_left, emit_output_prefix,
11029 output_newline, output_append, output_puts, dump_output,
11030 vbuild_message_string, build_message_string, build_location_prefix,
11031 voutput_notice, output_printf, line_wrapper_printf,
11032 vline_wrapper_message_with_location): New functions. Implement
11033 automatic line wrapping.
11034 (v_message_with_decl): Make it handle automatic line wrapping.
11035 (v_error_with_file_and_line): Likewise.
11036 (v_warning_with_file_and_line): Likewise.
11037 (announce_function): Likewise.
11038 (default_print_error_function): Likewise.
11039
11040 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
11041
11042 * cpplib.h (struct cpp_options): Change lang_asm to char.
11043 Add lang_fortran.
11044 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
11045 done in cpp_handle_option now.
11046 (initialize_builtins): Take out special case code used only by
11047 __STDC_VERSION__.
11048 (cpp_handle_option): Turn off trigraphs and trigraph warnings
11049 if -traditional. Recognize -lang-fortran and set
11050 lang_fortran, also turn off cplusplus_comments.
11051 (print_help): Document -lang-fortran.
11052 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
11053 lang_asm. Ignore all directives other than `# 123 "file"' if
11054 CPP_PREPROCESSED.
11055 (cpp_get_token): If -traditional, don't recognize directives
11056 unless the # is in column 1.
11057 (parse_string): If lang_fortran or lang_asm, silently
11058 terminate strings ('' or "") at end of line.
11059 Remove unnecessary braces.
11060
11061 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11062 Richard Henderson <rth@cygnus.com>
11063
11064 * resource.c (mark_referenced_resources): Mark a set strict_low_part
11065 as used.
11066 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
11067 strict_low_part when possible.
11068
11069 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11070
11071 * alias.c: PROTO -> PARAMS.
11072 * basic-block.h: Likewise.
11073 * bitmap.c: Likewise.
11074 * bitmap.h: Likewise.
11075 * builtins.c: Likewise.
11076 * c-aux-info.c: Likewise.
11077 * caller-save.c: Likewise.
11078 * calls.c: Likewise.
11079
11080 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11081
11082 * Makefile.in (toplev.o): Depend on regs.h.
11083
11084 * output.h (tdesc_section): Prototype.
11085
11086 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
11087
11088 * sdbout.c: Include "tm_p.h".
11089
11090 * toplev.c: Include "regs.h".
11091
11092 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
11093
11094 * unroll.c (unroll_loop): Add EH support.
11095
11096 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11097
11098 * pa-protos.h: New file.
11099
11100 * pa.c: Include recog.h and tm_p.h.
11101 (compute_zdepwi_operands, compute_movstrsi_length,
11102 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
11103 find_addr_reg, import_milli): Add static prototypes.
11104 (pa_cpu_string, pa_arch_string): Constify a char*.
11105 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
11106 (read_only_operand): Add argument `mode'.
11107 (singlemove_string, output_move_double, output_fp_move_double,
11108 output_block_move, output_and, output_ior, output_ascii,
11109 remove_useless_addtr_insns, milli_names, output_mul_insn,
11110 output_div_insn, output_mod_insn, output_arg_descriptor,
11111 output_cbranch, output_bb, output_bvb, output_dbra, ,
11112 output_millicode_call, output_call, hppa_encode_label,
11113 output_parallel_movb, output_parallel_addb): Constify a char*.
11114 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
11115 (output_parallel_addb): Remove extra arg to `constrain_operands'
11116
11117 * pa.h: Move all prototypes to pa-protos.h.
11118 (pa_cpu_string, pa_arch_string): Constify a char*.
11119 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
11120
11121 * pa.md: Call `function_label_operand' with mode argument.
11122 Likewise for `read_only_operand'.
11123 Fix nesting of parens in call to `symbolic_operand'.
11124
11125 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11126
11127 * i860-protos.h: New file.
11128
11129 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
11130 time warnings.
11131
11132 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
11133
11134 * i860.md: Likewise.
11135
11136 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
11137
11138 * i386.md (movstrsi expander): Rewrite.
11139 (movstrsi_1 insn): Deleted.
11140 (strmovhi, strmovqi expander): New expanders.
11141 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
11142 * i386.c (x86_single_stringop): New global variable.
11143 * i386.h (x86_single_stringop): Declare.
11144 (TARGET_SINGLE_STRINGOP): New macro.
11145
11146 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
11147
11148 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
11149 integer vararg POSTINCREMENT before the destination of the jump
11150 for the hard fp case.
11151 (function_arg_pass_by_reference): Pass a copy of CUM to
11152 FUNCTION_ARG.
11153
11154 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
11155 for CONSTANT_ADDRESS_P above while loop for subreg.
11156
11157 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
11158
11159 * flow.c (propagate_block): When a prologue/epilogue insn
11160 is marked dead, unconditionally clear libcall_is_dead and
11161 insn_is_dead, and only dump rtl if warnings aren't being
11162 suppressed.
11163
11164 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
11165
11166 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
11167 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
11168 (FIXED_REGISTERS): Set dirflag as fixed.
11169 (CALL_USED_REGISTERS): Set dirflag as used.
11170 (REG_ALLOC_ORDER): Set dirflag as last one.
11171 (DIRFLAG_REG): New macro.
11172 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
11173 (HI_REGISTER_NAMES): Add dirflag.
11174 (DEBUF_PRINT_REG): Handle dirflag.
11175 * i386.md (type attribute): New cld and str types.
11176 (length_opcode attribute): Set cld and str to 1.
11177 (memory attribute): Set str to unknown - it is not clear from the
11178 patterns.
11179 (pent_np function unit): Prefixed string operations takes 12 cycles
11180 minimally; cld takes 2 cycles.
11181 (ppro_uops attribute): Str is "many" and cld is "few".
11182 (ppro_p0 unit): Handle cld here.
11183 (k6_alux unit): Handle cld and str types.
11184 (k6_load unit): It is ocupied by str opcodes.
11185 (k6_store unit): It is ocupied by str opcodes.
11186 (athlon_decode): Str is vector decoded.
11187 (athlon_ieu): Handle str and cld.
11188 (cld pattern): New.
11189 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
11190 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
11191 cmpstrsi_nz_1 insn): Do not output cld instruction
11192
11193 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
11194
11195 * gcc.texi (G++ and GCC): Add Java and Chill.
11196 (Bug Critera): Don't list languages.
11197
11198 * gcc.texi (Incompatibilities): No longer claim most C compilers
11199 are K&R.
11200
11201 * gcc.texi (G++ and GCC): Update other front-ends list.
11202
11203 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
11204
11205 * i386.c (ix86_expand_setcc): Fix typo.
11206 (ix86_expand_movcc): Similarly.
11207
11208 * Band-aid until haifa's bitset implementation is nuked.
11209 * haifa-sched.c (extract_bitlst): New parameter for size of the
11210 bitset in bits. All callers changed. Avoid looking at undefined
11211 bits in the bitset.
11212 (edgeset_bitsize): New variable.
11213 (schedule_region): Initialize edgeset_bitsize.
11214
11215 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11216
11217 * Makefile.in (optabs.o): Depend on real.h
11218 (resource.o): Depend on insn-attr.h
11219
11220 * builtins.c (result_vector): Wrap prototype in macro conditions
11221 governing definition and use.
11222
11223 * c-common.c: Include tm_p.h.
11224
11225 * c-lex.c: Likewise.
11226
11227 * elfos.h: Constify a char*.
11228
11229 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
11230 (get_attr_length, shorten_branches, profile_after_prologue): Mark
11231 parameter with ATTRIBUTE_UNUSED.
11232
11233 * fold-const.c (exact_real_inverse): Wrap variable `i' in
11234 CHECK_FLOAT_VALUE.
11235
11236 * haifa-sched.c (schedule_insns): Mark parameter with
11237 ATTRIBUTE_UNUSED.
11238
11239 * optabs.c: Include real.h.
11240
11241 * real.h (ereal_atof): Add prototype arguments.
11242
11243 * resource.c: Include insn-attr.h.
11244
11245 * sdbout.c (sdbout_queue_anonymous_type,
11246 sdbout_dequeue_anonymous_types): Wrap in macro
11247 SDB_ALLOW_FORWARD_REFERENCES.
11248 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
11249 ATTRIBUTE_UNUSED.
11250
11251 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
11252
11253 * stupid.c: Include tm_p.h.
11254
11255 * tree.c (real_value_from_int_cst): Mark parameter with
11256 ATTRIBUTE_UNUSED.
11257
11258 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11259
11260 * i960-protos.h: New file.
11261
11262 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
11263 time warnings.
11264
11265 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
11266
11267 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11268
11269 * combine.c (expand_field_assignment): Do not discard SUBREGs
11270 while computing nonzero_bits.
11271
11272 2000-01-09 Nick Clifton <nickc@cygnus.com>
11273
11274 * config/arm/arm.c: Fix compile time warnings about signed vs
11275 unsigned constants.
11276 * config/arm/arm.h: Fix compile time warnings about signed vs
11277 unsigned constants.
11278
11279 2000-01-09 Philip Blundell <philb@gnu.org>
11280
11281 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
11282 than `ldm' with only one register.
11283 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
11284 only one register.
11285
11286 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
11287 clobbered.
11288
11289 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
11290
11291 * config/ns32k/ns32k.md (load or push effective address): Operand 1
11292 must have SImode.
11293
11294 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11295
11296 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
11297 assignment used as truth value.
11298
11299 * function.c (assign_temp): Mark parameter `dont_promote' with
11300 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
11301 PROMOTE_FOR_CALL_ONLY.
11302
11303 * genrecog.c (write_subroutine): Mark variable `operands' with
11304 ATTRIBUTE_UNUSED.
11305
11306 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
11307 ATTRIBUTE_UNUSED.
11308
11309 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
11310 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
11311
11312 * toplev.c (note_deferral_of_defined_inline_function): Likewise
11313 for `decl'.
11314
11315 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11316
11317 * config/c4x.h: Tidy up comments.
11318 * config/c4x.c: Likewise.
11319
11320 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
11321
11322 * fold-const.c (lshift_double, rshift_double): Handle
11323 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
11324
11325 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11326
11327 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
11328 in prepare_function_start().
11329
11330 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
11331
11332 * config/v850/v850.c (expand_epilogue): Interrupt functions no
11333 longer allocate extra stack for function calls.
11334
11335 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11336
11337 * config/c4x/c4x.md (*subqf3_set): Fix typo.
11338
11339 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11340
11341 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
11342
11343 2000-01-07 David Edelsohn <edelsohn@gnu.org>
11344
11345 * rs6000.c (processor_target_table): Add power3 as alias for 630.
11346 * aix43.h: Revert Aug 2 change.
11347 (HAS_INIT_SECTION): Define, not visible yet.
11348 (LD_INIT_SWITCH): Define, not visible yet.
11349 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
11350
11351 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
11352
11353 * collect2.c (main): Expand ld2 size further.
11354 (export_object_lst): Cast assignment to avoid warning.
11355 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
11356 (scan_prog_file, COFF): Do not collect initialization or
11357 finalization functions generated for entire shared object if
11358 init/fini support present.
11359
11360 2000-01-07 Nick Clifton <nickc@cygnus.com>
11361
11362 * config/elfos.h: Tidy up formatting of marcos. Make sure
11363 that .section directives are always prefixed by a tab.
11364
11365 * config/svr4.h: Add #include "elfos.h" and remove duplicate
11366 definitions.
11367
11368 2000-01-07 Matt Austern <austern@sgi.com>
11369
11370 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
11371 expon.
11372
11373 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
11374
11375 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
11376 crtstuff.c.
11377 (crtbegin.o, s-crtS): Likewise.
11378
11379 2000-01-06 Richard Henderson <rth@cygnus.com>
11380
11381 * alpha.md (adddi_2+1): Limit offset such that it will be
11382 loadable with a single ldah+lda pair.
11383 (adddi_2+2): Explicitly fail split if we can't make it work.
11384
11385 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
11386
11387 * protoize.c: Conditionally include unistd.h.
11388 (IS_SAME_PATH_CHAR): New macro.
11389 (IS_SAME_PATH): New macro.
11390 (CPLUS_FILE_SUFFIX): New macro.
11391 (cplus_suffix): New static variable.
11392 (is_abspath): New static function.
11393 (in_system_include_dir): Handle DOS style pathnames.
11394 (file_could_be_converted): Likewise.
11395 (file_normally_convertible): Likewise.
11396 (directory_specified_p): Likewise.
11397 (file_excluded_p): Likewise.
11398 (abspath): Likewise.
11399 (shortpath): Likewise.
11400 (referenced_file_is_newer): Likewise.
11401 (save_def_or_dec): Likewise.
11402 (do_processing): Likewise.
11403 (main): Likewise.
11404 (edit_file): Likewise. Use rename instead of link.
11405 (rename_c_file): Likewise. Don't rename syscalls file.
11406 (munge_compile_params): Define null device for DOS based systems.
11407 (process_aux_info_file): Use binary mode if appliable.
11408 (edit_file): Likewise.
11409 * invoke.texi (Running Protoize): Document C++ suffixes used.
11410
11411 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
11412 IS_DIR_SEPARATOR macros.
11413 * collect2.c: Likewise.
11414 * cppinit.c: Likewise.
11415 * dwarf2out.c: Likewise.
11416 * gcc.c: Likewise.
11417 * gcov.c: Likewise.
11418 * prefix.c: Likewise.
11419 * rtl.c: Likewise.
11420 * toplev.c: Likewise.
11421 * system.h: And move to here.
11422
11423 * prefix.c (update_path): Fix typo in variable name.
11424
11425 2000-01-06 Richard Henderson <rth@cygnus.com>
11426
11427 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
11428 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
11429 (count_reg_sets_1, count_reg_references): Likewise.
11430 (flow_loops_level_compute): Start counting actual loop depth at 1.
11431 (flow_loops_find): Likewise.
11432 * local-alloc.c (update_equiv_regs): Likewise.
11433 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
11434
11435 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
11436
11437 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
11438 FIRST_PSEUDO_REGISTER
11439 * dwarf2out.c: Don't include frame.h
11440 * dwarfout.c: Likewise
11441 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
11442 frame.h
11443
11444 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
11445
11446 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
11447 dead registers.
11448
11449 * i386.c (movsf splitter): Fix typo in my last checkin.
11450
11451 2000-01-05 Nick Clifton <nickc@cygnus.com>
11452
11453 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
11454 own definition of this macro.
11455 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
11456 flag_data_sections or UNIQUE_SECTION_P are true.
11457
11458 * tm.texi (UNIQUE_SECTION): Document that it can be called for
11459 unitialised data decls.
11460
11461 * config/i386/winnt.c (i386_pe_unique_section): Cope with
11462 being called for uninitialised data.
11463
11464 * config/i386/interix.c (i386_pe_unique_section): Cope with
11465 being called for uninitialised data.
11466
11467 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
11468 for uninitialised data.
11469
11470 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
11471 for uninitialised data.
11472
11473 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
11474 for uninitialised data.
11475
11476 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
11477 (UNIQUE_SECTION_P): Always generate a unique section if
11478 flag_data_sections is true.
11479 (UNIQUE_SECTION): Also generate unique sections for
11480 uninitialised data.
11481 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
11482 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
11483 named_section().
11484
11485 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11486
11487 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
11488 SI, or DI.
11489
11490 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11491
11492 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
11493 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
11494 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
11495 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
11496 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
11497
11498 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
11499
11500 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
11501
11502 * c-decl.c (finish_enum): Simplify code to determine minimum and
11503 maximum values of the enum, and calculate the type. Remove check
11504 for FUNCTION_DECLs in the values list, which cannot happen. Replace
11505 the DECL_INITIAL of each enumeration constant with a copy converted
11506 to the enumeration type. When updating variant types, don't bother
11507 updating the type itself.
11508
11509 * c-typeck.c (build_binary_op): Simplify conditional expressions
11510 when weeding out spurious signed-unsigned warnings. Add new
11511 spurious warning category: if the unsigned quantity is an enum
11512 and its maximum value fits in signed_type(result_type). Update
11513 commentary.
11514 (build_conditional_expr): Warn here if one alternative is signed
11515 and the other is unsigned.
11516
11517 2000-01-05 Nick Clifton <nickc@cygnus.com>
11518
11519 * config/fr30/fr30.h: Remove extraneous comments.
11520
11521 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
11522
11523 * reload1.c (choose_reload_regs): When disabling a reload, also
11524 set reload_spill_index to -1.
11525
11526 2000-01-04 Joel Sherrill (joel@OARcorp.com>
11527
11528 * configure.in (m68*-*-rtemscoff*): New target, formal name for
11529 old m68*-*-rtems*.
11530 (m68*-*-rtemself*): New target.
11531 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
11532 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
11533 (sparc*-*-rtemself*): New target.
11534 (sparc*-*-rtems*): Now elf not a.out.
11535 * config/i386/rtems.h: Include config/rtems.h.
11536 * config/i386/rtemself.h: Include config/rtems.h.
11537 * config/i960/rtems.h: Include config/rtems.h.
11538 * config/m68k/rtems.h: Include config/rtems.h.
11539 * config/m68k/rtemself.h: Include config/rtems.h.
11540 * config/mips/rtems64.h: Include config/rtems.h.
11541 * config/pa/rtems.h: Include config/rtems.h.
11542 * config/rs6000/rtems.h: Include config/rtems.h.
11543 * config/sh/rtems.h: Include config/rtems.h.
11544 * config/sh/rtemself.h: Include config/rtems.h.
11545 * config/sparc/rtems.h: Include config/rtems.h.
11546 * config/sparc/rtemself.h: Include config/rtems.h
11547
11548 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
11549
11550 * final.c (shorten_branches): Correctly compute length of
11551 asms without operands.
11552
11553 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
11554
11555 * configure.in: Add pj target.
11556 * configure: Regenerate.
11557 * config/pj: New directory.
11558 * config/pj/lib1funcs.S: New file.
11559 * config/pj/linux.h: New file.
11560 * config/pj/pj.c: New file.
11561 * config/pj/pj.md: New file.
11562 * config/pj/pjl.h: New file.
11563 * config/pj/t-pj: New file.
11564 * config/pj/xm-pj.h: New file
11565
11566 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
11567
11568 * toplev.c (rest_of_compilation): Run shorten-branches before
11569 reg-stack for now.
11570
11571 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11572
11573 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
11574 macros so that they're consistent with their names.
11575 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
11576 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
11577
11578 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11579
11580 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
11581 modified inadvertently.
11582
11583 2000-01-04 Joel Sherrill <joel@OARcorp.com>
11584
11585 * configure.in (v850*-*-rtems*): New target.
11586 * configure: Regenerate.
11587 * config/v850/rtems.h: New file.
11588
11589 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
11590
11591 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
11592 (__gthread_key_create): Likewise.
11593 (__gthread_key_dtor): Likewise.
11594 (__gthread_once): Fix logic.
11595 (__gthread_key_delete): Cast away constness.
11596
11597 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
11598 * invoke.texi: Document.
11599 * i386/mingw32.h (CPP_SPEC): Use.
11600 (LIBGCC_SPEC): Likewise.
11601 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
11602
11603 2000-01-04 David Edelsohn <edelsohn@gnu.org>
11604
11605 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
11606 (HANDLE_PRAGMA_PACK): Undefine.
11607 (SLOW_UNALIGNED_ACCESS): Define.
11608
11609 2000-01-04 David Edelsohn <edelsohn@gnu.org>
11610
11611 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
11612 to default definition.
11613 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
11614 (store_fixed_bit_field): Call macro with word_mode and alignment.
11615 (extract_bit_field): Call macro with relevant mode and alignment.
11616 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
11617 to default definition.
11618 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
11619 and alignment.
11620 (move_by_pieces_ninsns): Likewise.
11621 (clear_by_pieces): Likewise.
11622 (emit_push_insn): Likewise.
11623 (store_field): Call macro with relevant mode and alignment.
11624 (expand_expr): Likewise.
11625 (expand_expr_unaligned): Likewise.
11626
11627 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
11628 (SLOW_UNALIGNED_ACCESS): Define.
11629 (CASE_VECTOR_MODE): Always use 32-bit offsets.
11630 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
11631 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
11632 (toc_section): Likewise and .toc pseudo-op.
11633 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
11634 64-bit mode.
11635 (TEXT_SECTION_ASM_OP): Likewise.
11636 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
11637 32-bit offsets.
11638
11639 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
11640 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
11641 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
11642 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
11643 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
11644
11645 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
11646
11647 * regclass.c: Revert my Jan 4 change to loop cost computation.
11648
11649 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
11650
11651 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
11652 compilation.
11653
11654 2000-01-04 Stan Cox <scox@cygnus.com>
11655
11656 * haifa-sched.c (build_control_flow): Change unreachable simple
11657 loop test to check if current block has only one predecessor.
11658 (find_rgns): Initialize degree. Use dest as degree index, not src.
11659
11660 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11661
11662 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
11663
11664 * calls.c (expand_call): Likewise for
11665 `old_stack_arg_under_construction'.
11666
11667 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
11668
11669 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
11670 `save_constant'.
11671
11672 * gcc.c (execute): Likewise for `ut' and `st'.
11673
11674 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
11675
11676 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
11677
11678 * jump.c (jump_optimize_1): Likewise for `temp2'.
11679
11680 * local-alloc.c (block_alloc): Likewise for `r1'.
11681
11682 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
11683
11684 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
11685 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
11686
11687 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
11688 and `set2'.
11689
11690 * reload.c (find_reloads): Likewise for `goal_alternative_number'
11691 and `goal_earlyclobber'.
11692
11693 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
11694
11695 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
11696
11697 * stupid.c (stupid_life_analysis): Likewise for `chain'.
11698
11699 * unroll.c (copy_loop_body): Likewise for `copy'.
11700
11701 * varasm.c (output_constructor): Likewise for `byte'.
11702
11703 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
11704
11705 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
11706 all FP constants for constant->reg moves.
11707 (ix86_split_to_parts): Try to convert memory address into immediate
11708 when available in the constant pool.
11709 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
11710 moves.
11711 (LEGITIMATE_CONSTANT_P): Return 1.
11712 * i386.md (pushsf): New splitter to convert constant pool memory
11713 reference to immediate.
11714 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
11715 reload.
11716
11717 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
11718
11719 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
11720 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
11721 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
11722 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
11723 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
11724
11725 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
11726
11727 * ginclude/stdbool.h: Support compilation as C++.
11728
11729 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11730
11731 * fold-const.c (make_range): Don't try to reverse an unbounded range.
11732
11733 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
11734
11735 * regclass.c (regclass): Properly compute loop_cost. Adjust
11736 comments.
11737
11738 * regclass.c: Fix minor whitespace problems.
11739
11740 2000-01-03 Anthony Green <green@cygnus.com>
11741
11742 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
11743 Restore the pic register if required.
11744
11745 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
11746
11747 * c-common.c (format_char_info): Update comment.
11748 (check_format_info): Recognize 'z' modifier in the same way 'Z'
11749 was recognized. Emit warning for formats new in ISO C99 only
11750 if flag_isoc9x is not set.
11751
11752 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
11753
11754 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
11755
11756 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
11757
11758 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
11759 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
11760 (make_compound_operation): Choose cheaper alternative between
11761 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
11762
11763 * regclass.c (op_costs): Remove global variable.
11764 (record_reg_classes): New parameter "op_costs" and "reg_pref".
11765 (record_operand_costs): Break out from ...
11766 (scan_one_insn): ... here.
11767 (dump_regclass): Make dumps nicer.
11768 (regclass): Dump preferrences choosed and changes done during passes.
11769
11770 2000-01-03 Jakub Jelinek <jakub@redhat.com>
11771
11772 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
11773
11774 2000-01-03 Jakub Jelinek <jakub@redhat.com>
11775
11776 * config/sparc/sparc.c (gen_df_reg): New function.
11777 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
11778 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
11779 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
11780 movtf_cc_reg_sp64+1): Use it.
11781
11782 2000-01-02 Mark Mitchell <mark@codesourcery.com>
11783
11784 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
11785 copied LABEL_DECLs.
11786
11787 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
11788
11789 * config/i386/i386.c (ix86_expand_unary_operator): Function
11790 definition made void.
11791 (ix86_expand_binary_operator): Update outdated preceding comment.
11792 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
11793 prototype.
11794
11795 * config/i386/i386.c (override_options): Fix option-name typo.
11796
11797 2000-01-02 Mark Mitchell <mark@codesourcery.com>
11798
11799 * system.h (CEIL): Define.
11800 * builtins.c (CEIL): Remove.
11801 * expmed.c (CEIL): Likewise.
11802 * expr.c (CEIL): Likewise.
11803 * stor-layout.c (CEIL): Likewise.
11804
11805 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11806
11807 * expr.c (store_constructor_field): Fix typo introduced with last
11808 gcc2 merge.
11809
11810 2000-01-01 Mark Mitchell <mark@codesourcery.com>
11811
11812 * tree.h (BINFO_N_BASETYPES): New macro.
11813
11814 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
11815
11816 * expmed.c (emit_store_flag): Prevent losing a pending stack
11817 adjust the same way we prevent losing queued increments.
11818
11819 Fri Dec 31 19:10:31 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11820
11821 * function.c (update_temp_slot_address): Handle case where sum of
11822 temporary address plus offset in register is a valid address.
11823
11824 1999-12-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11825
11826 * genrecog.c (change_state) Corrected typo.
11827
11828 1999-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11829
11830 * system.h (bcopy, bcmp, bzero, index, rindex, atof, atol, free,
11831 getcwd, getenv, getwd, sbrk, strstr, malloc, calloc, realloc,
11832 strerror, getrlimit, setrlimit, abort): Add prototype arguments.
11833
11834 1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
11835
11836 * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE
11837 case, expand GT comparisons correctly. Fix a comment before this
11838 part of the code.
11839
11840 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
11841
11842 * dwarfout.c: Include "frame.h"
11843 * dwarf2out.c: Likewise.
11844 * Makefile.in (dwarfout.o): Depend on frame.h
11845 (dwarf2out.o): Likewise.
11846
11847 1999-12-29 "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
11848
11849 Restore i386 binary compatibility in Dwarf EH info.
11850 * config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old
11851 value of FIRST_PSEUDO_REGISTER.
11852 * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER.
11853 (struct frame_state): Use DWARF_FRAME_REGISTERS.
11854 * dwarfout.c (output_reg_number): Ditto.
11855 * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto.
11856 (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS.
11857
11858 1999-12-29 Bruce Korb <autogen@linuxbox.com>
11859
11860 * fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
11861 * fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
11862 (<hack>_RE_CT): not needed
11863 * fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
11864 rewritten to scan the file text once only
11865 "template<..." test added
11866 * fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
11867 (is_cxx_header): declaration added
11868 * fixinc/fixtests.c(is_cxx_header): removed
11869 (apply_fix_p_t): removed
11870 (double_slash_test): is_cxx_header is only called once now
11871 * fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
11872 * fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
11873 within the templates.
11874 The borken spelling of "broken" was fixed.
11875 * fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
11876 The default level depends on FIXINC_DEBUG.
11877
11878 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11879
11880 * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
11881 Otherwise provide a declaration for atexit.
11882 (init_dummy): Make sure dummy call to atexit is nevertheless
11883 called with correct number of args.
11884
11885 * frame.c: Update comments referring to other files.
11886
11887 * libgcc2.c: Likewise.
11888
11889 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11890
11891 * cse.c (free_element, get_element): Remove unused prototypes.
11892
11893 * fold-const.c (extract_muldiv): Initialize variables `op0' and
11894 `op1'.
11895
11896 * jump.c (invert_exp): Add explicit braces to avoid ambiguous
11897 `else' clauses.
11898
11899 Wed Dec 29 12:44:54 1999 Donald Lindsay <dlindsay@cygnus.com>
11900
11901 * configure.in,configure: case arm for mn10200-*-* now sets
11902 float_format=i32 so that float.h will correctly claim "double"
11903 to be 32 bits. Ran autoconf to generate configure from .in file.
11904
11905 Wed Dec 29 10:53:21 1999 Jeffrey A Law (law@cygnus.com)
11906
11907 * pa.md (conditional zero): If op1 is a register, force it into
11908 the same register as op0.
11909
11910 1999-12-28 Mark Mitchell <mark@codesourcery.com>
11911
11912 * tree.h (BINFO_BASETYPES): Improve documentation.
11913
11914 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11915
11916 * configure.in (--enable-checking): Use a more portable `for'
11917 loop syntax.
11918
11919 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11920
11921 * configure.in (AC_DECL_SYS_SIGLIST, xm-siglist.h,
11922 arm/xm-netbsd.h, NO_SYS_SIGLIST): Don't use.
11923
11924 * xm-siglist.h, arm/xm-netbsd.h, mips/xm-news.h, mips/xm-sysv4.h:
11925 Delete files.
11926
11927 * gcc.texi (NO_SYS_SIGLIST, sys_siglist, SYS_SIGLIST_DECLARED):
11928 Delete descriptions.
11929
11930 * i386/osf1elf.h, i386/xm-cygwin.h, i386/xm-mingw32.h, m68k/3b1.h,
11931 m68k/a-ux.h, m68k/dpx2.h, m68k/plexus.h, m68k/xm-hp320.h,
11932 m88k/xm-m88k.h, mips/x-sni-svr4, pa/xm-pa.h, pa/xm-pahpux.h,
11933 pa/xm-papro.h, we32k/xm-we32k.h, winnt/xm-winnt.h, xm-interix.h,
11934 xm-svr4.h: Remove all instances of sys_siglist handling.
11935
11936 1999-12-27 Jakub Jelinek <jakub@redhat.com>
11937
11938 * config/sparc/sparc.md (cmp_zero_qi,
11939 cmp_zero_extendqisi2_andcc_set, cmp_zero_qi_sp64,
11940 cmp_zero_extendqidi2_andcc_set): New patterns.
11941
11942 1999-12-28 Manfred Hollstein <mhollstein@cygnus.com>
11943
11944 * m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
11945 (LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
11946 (fpgnulib.c, xfgnulib.c): Add rules.
11947 * m68k/t-mot3300-gas: Likewise.
11948
11949 1999-12-27 Ian Lance Taylor <ian@zembu.com>
11950
11951 * configure.in: Avoid [[ by using test and changequote. Add
11952 changequote required by 1999-12-14 change.
11953 * configure: Rebuild.
11954
11955 1999-12-27 Clinton Popetz <cpopetz@cygnus.com>
11956
11957 * config/mips/mips.h: Fix typo from 12/17/99 libgcc2 fix.
11958
11959 1999-12-27 Christophe Jaillet <jaillet.christophe@caramail.com>
11960
11961 * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
11962 * flow.c (find_use_as_address): Likewise.
11963 * function.c (fixup_var_refs_1): Likewise.
11964 (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
11965 * jump.c (invert_exp, redirect_exp): Likewise.
11966 * loop.c (replace_call_address): Likewise.
11967 (count_nonfixed_reads): Likewise.
11968 * rtlanal.c (modified_between_p): Likewise.
11969 (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
11970 (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
11971 * unroll.c (remap_split_bivs): Likewise.
11972
11973 1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11974
11975 * diagnostic.c (v_message_with_decl): Use .* format specifier
11976 instead of building the format specifier width manually.
11977
11978 * system.h (strsignal): Don't check HAVE_STRSIGNAL when
11979 determining whether to provide a prototype. Remove the
11980 sys_siglist clause in the conditional.
11981
11982 1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11983
11984 * fold-const.c (operand_equal_p): Use memcmp to compare string
11985 constants.
11986 Suggested by D. J. Bernstein
11987
11988 1999-12-17 Jakub Jelinek <jakub@redhat.com>
11989
11990 * config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
11991 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
11992 compiling libgcc2.
11993 * config/mips/mips.h (TARGET_64BIT): Likewise.
11994 * config/rs6000/rs6000.h (TARGET_POWERPC64): Likewise.
11995 * libgcc2.c: Use {,U}{HW,W,DW}type and DWunion everywhere instead
11996 of {SI,DI}type and DIunion. Define these types to QI/HI modes on
11997 dsps. Give routines proper names if SI/DI modes are not used.
11998 * longlong.h: Use DWunion instead of DIunion.
11999
12000 1999-12-26 Zack Weinberg <zack@wolery.cumb.org>
12001
12002 * acconfig.h: New ENABLE flags: TREE_CHECKING, RTL_CHECKING,
12003 GC_CHECKING, GC_ALWAYS_COLLECT.
12004 * configure.in: Allow --enable-checking with an argument
12005 listing check modes to enable.
12006 * config.in, configure: Rebuilt.
12007 * ggc-page.c, ggc-simple.c: Define GGC_POISON (and
12008 GGC_ALWAYS_VERIFY for ggc-simple.c) only if
12009 ENABLE_GC_CHECKING. Define GGC_ALWAYS_COLLECT only if
12010 ENABLE_GC_ALWAYS_COLLECT.
12011 * rtl.h, rtl.c: Change ENABLE_CHECKING to ENABLE_RTL_CHECKING
12012 throughout.
12013 * tree.h, tree.c: Change ENABLE_CHECKING to
12014 ENABLE_TREE_CHECKING throughout.
12015
12016 Sun Dec 26 07:48:20 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12017
12018 * fold-const.c (fold_truthop): Properly check for FP RHS.
12019
12020 1999-12-24 Mark Mitchell <mark@codesourcery.com>
12021
12022 * toplev.h (note_deferall_of_defined_inline_function): Declare.
12023 * toplev.c (note_deferral_of_defined_inline_function): New
12024 function, split out from ...
12025 (rest_of_compilation): ... here. Use it.
12026
12027 Fri Dec 24 12:34:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12028
12029 * expr.c (store_constructor): Don't call clear_storage if size is
12030 variable.
12031
12032 1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12033
12034 * Makefile.in (toplev.o): Depend on loop.h.
12035
12036 * dwarfout.c: Include tm_p.h.
12037
12038 * emit-rtl.c (restore_emit_status): Mark parameter with
12039 ATTRIBUTE_UNUSED.
12040
12041 * final.c (final_scan_insn): Likewise.
12042
12043 * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
12044 flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
12045 flow_depth_first_order_compute, flow_loop_pre_header_find,
12046 flow_loop_tree_node_add, flow_loops_tree_build,
12047 flow_loop_level_compute, flow_loops_level_compute,
12048 flow_loop_outside_edge_p): Add prototypes.
12049 (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
12050
12051 * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
12052 Mark with ATTRIBUTE_NORETURN.
12053
12054 * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
12055
12056 * local-alloc.c (no_conflict_p): Likewise.
12057
12058 * loop.c (insert_bct): Hide definitions of variables with hidden
12059 usage.
12060 (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
12061
12062 * regclass.c (memory_move_secondary_cost): Mark variable `mem'
12063 with ATTRIBUTE_UNUSED.
12064 (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
12065 (reg_scan): Likewise.
12066
12067 * reload.c (find_reloads): Remove unused variables `changed'.
12068
12069 * reload1.c (reload_reg_class_lower): Don't unnecessarily cast
12070 away const-ness.
12071 (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
12072 Remove unused variable `insn'.
12073
12074 * toplev.c: Include loop.h.
12075 (report_file_and_line): Remove unnecessary prototype.
12076
12077 * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
12078
12079 * unroll.c (biv_total_increment): Likewise.
12080
12081 Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12082
12083 * reload1.c (emit_input_reload_insns): Restore old behaviour
12084 wrt. 'special' reloads.
12085
12086 1999-12-23 Zack Weinberg <zack@wolery.cumb.org>
12087
12088 * Makefile.in (ggc-simple.c, ggc-page.c): Don't depend on
12089 hash.h. (cse.c): Don't depend on hashtab.h.
12090
12091 * cse.c: Don't include hashtab.h.
12092 (hash_cse_reg_info, cse_reg_info_equal_p): Delete prototypes
12093 of dead functions.
12094 * ggc-simple.c: Don't include hash.h.
12095
12096 1999-12-22 Jason Merrill <jason@casey.cygnus.com>
12097
12098 * dwarf2out.c (add_abstract_origin_attribute): Call
12099 gen_abstract_function on our function context.
12100
12101 Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
12102
12103 * Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.
12104
12105 1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12106
12107 * config/c4x/c4x.c (c4x_address_cost): Add statement to default
12108 case in switch.
12109
12110 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12111
12112 * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0
12113 constraints to "a!r".
12114
12115 1999-12-21 Mark Mitchell <mark@codesourcery.com>
12116
12117 * Makefile.in (calls.o): Depend on function.h.
12118 (alias.o): Likewise.
12119
12120 1999-12-21 Bernd Schmidt <bernds@cygnus.co.uk>
12121
12122 * reload1.c (emit_reload_insns): Break out code and variables into...
12123 (input_reload_insns, other_input_address_reload_insns,
12124 other_input_reload_insns, input_address_reload_insns,
12125 inpaddr_address_reload_insns, output_reload_insns,
12126 output_address_reload_insns, outaddr_address_reload_insns,
12127 operand_reload_insns, other_operand_reload_insns,
12128 other_output_reload_insns): ... new static variables, and...
12129 (emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
12130 do_output_reload): ... new functions.
12131
12132 Tue Dec 21 07:06:36 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12133
12134 * pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
12135
12136 1999-12-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12137
12138 * md.texi: Add c4x constraints documentation.
12139
12140 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
12141
12142 * config/i386/dgux.c (struct option): Rename to
12143 lang_independent_option.
12144 (struct m_options): Add description field.
12145 (output_options): Rename option type, add sep declaration, output
12146 ix86_cpu_string and ix86_arch_string only if set.
12147 (output_file_start): Rename option type.
12148
12149 Mon Dec 20 23:15:36 1999 Mike Stump <mrs@wrs.com>
12150
12151 * Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
12152 stmp-int-hdrs.
12153 (libgcc2.a): Similarly.
12154
12155 Mon Dec 20 23:06:47 1999 David Edelsohn <edelsohn@gnu.org>
12156
12157 * longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
12158 with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
12159 for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
12160
12161 Mon Dec 20 23:02:03 1999 Jeffrey A Law (law@cygnus.com)
12162
12163 * fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
12164 Remove redundant initialization of "frexpon" and "expon".
12165
12166 Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12167
12168 * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
12169
12170 * expr.c (store_constructor): New argument SIZE; pass to clear_storage.
12171 (store_constructor_field, expand_expr): Pass new arg.
12172
12173 1999-12-20 Mark Mitchell <mark@codesourcery.com>
12174
12175 * Makefile.in (explow.o): Depend on function.h.
12176
12177 * stor-layout.c (set_sizetype): Fix typo.
12178
12179 1999-12-20 Bernd Schmidt <bernds@cygnus.co.uk>
12180
12181 * function.c (cfun): Renamed from current_function. All users
12182 changed.
12183 * function.h (cfun): Rename declaration as well.
12184
12185 * reload.h (struct insn_chain): Change live_throughout and dead_or_set
12186 to be of type regset_head, not regset. All users changed by adding
12187 address operator.
12188 * reload1.c (new_insn_chain): Don't allocate regsets, just clear them.
12189
12190 1999-12-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12191
12192 * config/c4x/rtems.h: New file.
12193
12194 1999-12-19 Bernd Schmidt <bernds@cygnus.co.uk>
12195
12196 * reload1.c (spill_failure): Take class of failed reload as argument
12197 and print it. Caller changed.
12198
12199 Sun Dec 19 07:50:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12200
12201 * rs6000.h (SUBTARGET_DEFAULT): New macro.
12202 (TARGET_SWITCHES): Allow subtargets to default switches.
12203 * rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
12204
12205 1999-12-18 Mark Mitchell <mark@codesourcery.com>
12206
12207 * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
12208 in a main program.
12209
12210 Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
12211
12212 * cccp.c (main): Define __STDC_VERSION__ as necessary.
12213 * cppinit.c (cpp_handle_option): Likewise.
12214
12215 * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
12216 determine when to define.
12217
12218 Sat Dec 18 20:34:00 1999 Richard Henderson <rth@cygnus.com>
12219
12220 * alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
12221 cmove with mismatched test and data modes.
12222
12223 Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
12224
12225 * c-typeck.c (c_expand_start_case): Don't warn for long switch
12226 in system headers.
12227
12228 Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12229
12230 * alias.c: Minor reformatting.
12231 * flow.c: Likewise.
12232 * regs.h: Likewise.
12233 * stor-layout.c: Likewise.
12234 * fold-const.c: Likewise.
12235 (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
12236 (struct cb_args, const_binop_1, const_binop): Pass type of arg,
12237 not arg itself.
12238 (size_int_wide): Cache nodes even if garbage collecting.
12239 (twoval_comparison_p): Reenable SAVE_EXPR case if operand
12240 of SAVE_EXPR has no side effects.
12241 * cse.c: Move a comment.
12242 * tree.c: Minor reformatting.
12243 (int_size_in_bytes): Return -1 if constant overflows.
12244
12245 Sat Dec 18 18:30:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12246
12247 * unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
12248
12249 1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
12250
12251 * objc/objc-parse.c: Regenerate. This file must be rebuilt
12252 after any change to c-parse.in, even if objc-parse.y didn't
12253 change. Oops.
12254
12255 1999-12-18 David S. Miller <davem@redhat.com>
12256
12257 * toplev.c (rest_of_compilation): Restore BLOCK tree
12258 reconstruction and branch shortening changes lost in
12259 December 18th change.
12260
12261 Sat Dec 18 05:29:29 1999 Scott Bambrough <scottb@netwinder.org>
12262
12263 * config/arm/linux-elf.h: Change all instances of
12264 ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
12265 * config/arm/uclinux-elf.h: Likewise.
12266
12267 1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
12268
12269 * toplev.c (notice, vmessage, v_message_with_file_and_line,
12270 v_message_with_decl, file_and_line_for_asm,
12271 v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
12272 verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
12273 v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
12274 v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
12275 pfatal_with_name, fatal_io_error, need_error_newline,
12276 last_error_function, last_error_tick, announce_function,
12277 default_print_error_function, print_error_function,
12278 report_error_function, fnotice, error_with_file_and_line,
12279 error_with_decl, error_for_asm, error, set_fatal_function, fatal,
12280 _fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
12281 warning_with_decl, warning_for_asm, warning, pedwarn,
12282 pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
12283 diagnostic.c
12284 (compile_file): Use fnotice instead of notice. Adjust call.
12285
12286 * diagnostic.c: New file.
12287
12288 * Makefile.in (OBJS): Include diagnostic.o
12289 (diagnostic.o): Define dependence.
12290
12291 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12292
12293 * config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
12294 Tweak formatting.
12295
12296 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12297
12298 * config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
12299
12300 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
12301
12302 * fixtests.c (is_cxx_header): New fn, split out of
12303 double_slash_test.
12304 (else_endif_label): Allow "#endif // comment" in C++ headers,
12305 as determined by is_cxx_header.
12306 * fixfixes.c (else_endif_label_fix): Update comment.
12307 * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
12308 a tty.
12309 * genfixes: Correct double thinko in commandline parsing.
12310 * hackshell.tpl: Generate correct sh syntax for bypass
12311 entries.
12312
12313 * inclhack.def (all): Whenever an inserted preprocessor
12314 conditional is split over multiple lines, use double
12315 backslashes in this file so the fixed header will be readable.
12316
12317 (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
12318 and add bypass entry for correct version of this header.
12319 (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
12320 (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
12321
12322 (hpux8_bogus_inlines): New fix, split from...
12323 (ultrix_atof_param) ... here.
12324 (math_expression): Add bypass entry keyed to glibc comment
12325 indicating the problem has been dealt with; disable
12326 unnecessary sed operations; update commentary.
12327 (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
12328 add select and bypass entries, simplify shell operation.
12329 (math_huge_val_ifndef): Split from math_gcc_ifndefs.
12330
12331 (ip_missing_semi, rs6000_param, tinfo_cplusplus,
12332 ultrix_atof_param): Add select entry.
12333 (stdio_va_list, sunos_mather_decl): Add bypass entry.
12334 (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
12335 comments with the fixes they describe.
12336
12337 * c-parse.in (string action): Do not warn about ANSI string
12338 concatenation in system headers. Affects C parser only.
12339 * c-parse.y, c-parse.c, c-parse.h: Rebuild.
12340
12341 1999-12-16 Jakub Jelinek <jakub@redhat.com>
12342
12343 * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
12344 compiling libgcc2 the macro depends always on arch cpp defines.
12345
12346 Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
12347
12348 * loop.c (insert_loop_mem): Don't record MEMs from inside
12349 EXPR_LISTs.
12350
12351 Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
12352
12353 * regclass.c (regclass): Do not use flowgraph when not optimizing.
12354
12355 * gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
12356 notes too, create one when replacement failed, attempt to simplify
12357 resulting notes.
12358 (cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
12359 or REG_EQUIV notes.
12360
12361 1999-12-16 Mark Mitchell <mark@codesourcery.com>
12362
12363 * crtstuff.c (__dso_handle): Declare.
12364 (__cxa_finalize): Likewise.
12365 (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
12366 non-NULL.
12367
12368 * invoke.texi: Document -fuse-cxa-atexit.
12369
12370 * tree.h (ptr_type_node): Document.
12371 (const_ptr_type_node): Likewise.
12372
12373 Fri Dec 17 01:32:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12374
12375 * regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
12376 (optimize_reg_copy_2): Likewise.
12377 (optimize_reg_copy_3): Likewise.
12378 (fixup_match_2): Likewise.
12379 (regmove_optimize): Likewise.
12380 (fixup_match_1): Liekwise.
12381
12382 * i386.md (HI to SImode promoting splitters): Rewrite.
12383 (pushsf mem peep2): New.
12384 (testhi to andhi peep2): Remove.
12385 * i386.h (x86_promote_QImode): New.
12386 (TARGET_PROMOTE_QImode): New.
12387 (PREDICATE_CODES): Add promotable_binary_operator.
12388 * i386.c (x86_promote_QImode0: New.
12389 (promotable_binary_operator): New.
12390 * i386-protos.h (promotable_binary_operator): New.
12391
12392 * i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
12393 condition.
12394 (one_cmpl?i*): Pass "NOT" to unary_operator_ok.
12395
12396 1999-12-16 Mark Mitchell <mark@codesourcery.com>
12397
12398 * Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
12399 * function.c (insert_block_after_note): Remove.
12400 (retrofit_block): Likewise.
12401 (identify_blocks): Fix indentation.
12402 (reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
12403 NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
12404 * function.h (insert_block_after_note): Remove prototype.
12405 (retrofit_block): Likewise.
12406 * integrate.c (expand_inline_function): Don't call
12407 find_loop_tree_blocks. Use expand_start_bindings_and_block, not
12408 just expand_start_bindings. Use the block_map to remap old
12409 NOTE_BLOCKs to new ones.
12410 (integrate_decl_tree): Keep track of remapped blocks.
12411 * integrate.h (struct inline_remap): Add block_map.
12412 * stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
12413 NOTE_BLOCK on the notes.
12414 (expand_start_bindings): Rename to ...
12415 (expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
12416 (expand_end_bindings): Set NOTE_BLOCK.
12417 * toplev.c (rest_of_compilation): In function-at-a-time-mode,
12418 reconstruct the BLOCK tree.
12419 * tree.h (expand_start_bindings): Macroize. Call ...
12420 (expand_start_bindings_and_block): New function.
12421
12422 1999-12-16 Jakub Jelinek <jakub@redhat.com>
12423
12424 * config/sparc/sparc.c (print_operand): Cast fprintf arguments
12425 to match the format.
12426
12427 1999-12-16 David S. Miller <davem@redhat.com>
12428
12429 * expr.c (emit_move_insn_1): Only emit clobbers if one of
12430 the outputs is a SUBREG.
12431 * rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
12432 change.
12433
12434 * config/sparc/sparc.c (epilogue_renumber): Add default case
12435 to switch stmt.
12436
12437 Thu Dec 16 11:33:57 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12438
12439 * toplev.c (rest_of_compilation): Run branch shortening after
12440 reg-stack.
12441
12442 * regclass.c (loop_depth): Remove
12443 (scan_one_insn): Do not handle LOOP_NOTE insns.
12444 (regclass): Go through basic blocks and set loop_cost
12445
12446 Thu Dec 16 02:56:25 1999 Zack Weinberg <zack@bitmover.com>
12447
12448 * tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
12449
12450 Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12451
12452 * i386.md (movqi): Use "nonimmediate_operand" for output operand.
12453 (movstrictqi, movdi, movsf, movdf, movxf): Likewise.
12454 (adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
12455
12456 Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
12457
12458 * loop.c (insert_loop_mem): Ignore memory clobbers.
12459
12460 * combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
12461 to (OP A B).
12462
12463 Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com)
12464
12465 * profile.c: Remove redundant #include "output.h".
12466
12467 * h8300.md (HImode preinc peephole): Fix typo.
12468
12469 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
12470
12471 * function.c (retrofit_block): Abort if we don't find a suitable insn.
12472 (insert_block_after_note): Abort if we don't have a previous block.
12473 Remove FN parameter.
12474 * function.h: Adjust.
12475
12476 1999-12-15 Mark Mitchell <mark@codesourcery.com>
12477
12478 * builtins.c (expand_builtin_mathfn): Make sure not to expand the
12479 argument more than once.
12480
12481 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
12482
12483 * stmt.c (expand_decl): Expand upper bound of a dynamic array.
12484
12485 1999-12-15 Jakub Jelinek <jakub@redhat.com>
12486
12487 * expr.c (emit_group_load): Use dst mode if src is VOIDmode.
12488
12489 Wed Dec 15 16:11:55 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12490
12491 * function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
12492 (assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
12493 update stack_alignment_needed.
12494 (prepare_function_start): Initialize stack_alignment_needed
12495 * function.h (struct function): Add field stack_alignment_needed.
12496
12497 Wed Dec 15 14:55:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12498
12499 * caller-save.c (insert_one_insn): Returns struct insn_chain *.
12500 Handle live_throughout / dead_or_set instead of live_before /
12501 live_after.
12502 (save_call_clobbered_regs): Get register livenessinformation from
12503 chain->live_throughout.
12504 (add_stored_regs): New function.
12505 (insert_restore, insert_save): Add restored / saved registers to
12506 dead_or_set.
12507 * global.c (reg_dies): New parameter chain.
12508 (reg_becomes_live): Third parameter is regs_set now.
12509 Changed all callers.
12510 (reg_dies): New parameter chain. Changed all callers.
12511 (build_insn_chain): Set live_throughout instead of
12512 live_before / live_after.
12513 * reload.h (struct insn_chain): Replace members live_before /
12514 live_after with live_throughout / dead_or_set.
12515 * reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
12516 instead of live_before / live_after.
12517 (maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
12518 (order_regs_for_reload, find_reg, finish_spills): Likewise.
12519 (choose_reload_regs_init): Likewise.
12520 * stupid.c (current_chain, find_clobbered_regs): Delete.
12521 (stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
12522 instead of chain->live_before / chain->live_after.
12523 (mark_hard_ref): New function.
12524 (stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
12525
12526 1999-12-15 David S. Miller <davem@redhat.com>
12527
12528 * rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
12529
12530 Wed Dec 15 15:05:30 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12531
12532 * flow.c (calculate_loop_depth): Make global, remove prototype,
12533 rewrite to use new loop infrastructure.
12534 (find_basic_block): Remove calculate_loop_depth call.
12535 * toplev.c (rest_of_compilation): Call find_basic_block.
12536 * output.h (calculate_loop_depth): Declare.
12537
12538 * flow.c (dump_flow_info): Dump loop_depth.
12539 (flow_loops_nodes_find): Increase loop_depth for basic block in the
12540 body.
12541 (flow_loops_find): Initialize the loop_depth for each basic block.
12542
12543 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
12544
12545 * tree.c (decl_function_context): Handle virtual functions.
12546
12547 * tlink.c (scan_linker_output): Don't look in demangled name when
12548 looking for linker output keywords.
12549
12550 * dwarfout.c (output_type): We can defer namespace-scope classes.
12551
12552 Wed Dec 15 01:23:29 1999 Jeffrey A Law (law@cygnus.com)
12553
12554 * regclass.c (record_reg_classes): Update comment for merging
12555 register class preferences in reg->reg copies. Tighten conditions
12556 for merging register class preferences in reg->reg copies.
12557
12558 Wed Dec 15 02:19:32 1999 David Edelsohn <edelsohn@gnu.org>
12559
12560 * rs6000.md (tablejumpdi): Generate DImode LABEL_REF.
12561
12562 1999-12-14 Geoff Keating <geoffk@cygnus.com>
12563
12564 * config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
12565 (INIT_SECTION_ASM_OP): Delete.
12566 (FINI_SECTION_ASM_OP): Delete.
12567 (STARTFILE_SPEC): Define to hold just crtbegin.o.
12568
12569 1999-12-14 Jason Merrill <jason@casey.cygnus.com>
12570
12571 * dwarf2out.c (add_abstract_origin_attribute): Do call abort if
12572 the abstract origin wasn't emitted.
12573
12574 * dwarf2out.c (class_scope_p): New fn.
12575 (gen_subprogram_die): Use it.
12576 (gen_variable_die): Use it. Tweak logic.
12577 (gen_struct_or_union_type_die): Check context_die to determine
12578 if we're function-local.
12579 (dwarf2out_decl): Check DECL_BUILT_IN, not DECL_FUNCTION_CODE.
12580
12581 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
12582
12583 * loop.c (check_dbra_loop): Can't reverse a biv that has
12584 maybe_multiple set.
12585
12586 1999-12-14 Nick Clifton <nickc@cygnus.com>
12587
12588 * config/arm/arm.c: Add support for -mcpu=arm720 command line
12589 switch.
12590
12591 Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12592
12593 * loop.c (strength_reduce): Fix sign of giv lifetime calculation
12594 for givs made from biv increments.
12595
12596 Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
12597
12598 * configure.in (alpha-osf, alpha-linux): Handle ev6[78].
12599 * alpha.c (override_options): Recognize -mcpu=ev67.
12600 * alpha.h (CPP_CPU_EV67_SPEC): New.
12601 (CPP_CPU_DEFAULT_SPEC): Examine TARGET_CPU_DEFAULT to use it.
12602 (EXTRA_SPECS): Update.
12603
12604 Tue Dec 14 08:04:28 1999 Richard Henderson <rth@cygnus.com>
12605
12606 * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
12607 appropriate for -lang-c89 and -std=*.
12608 * cppinit.c (cpp_handle_option): Likewise.
12609 (new_pending_define): New, split out from cpp_handle_option.
12610 * gcc.c (default_compilers): Don't define __STRICT_ANSI__
12611 or enable trigraphs for -ansi/-std=*.
12612
12613 * ginclude/stdarg.h (__va_copy): New.
12614 (va_copy): Don't define for C89.
12615
12616 Tue Dec 14 08:37:27 CST 1999 Clinton Popetz <cpopetz@cygnus.com>
12617
12618 * config/arm/arm.md (mulsidi3adddi, umulsidi3adddi): New patterns
12619 for long long multiply-accumulate.
12620
12621 Tue Dec 14 13:51:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12622
12623 * regclass.c (scan_one_insn): Set loop_cost to 1 when
12624 optimizing for size.
12625
12626 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
12627
12628 * reload1.c (reload): Can't avoid select_reload_regs/finish_spills
12629 if something changed. Back out that part of yesterday's changes.
12630
12631 * loop.c (loop_max_reg): New static variable.
12632 (loop_optimize): Initialize it. Eliminate one unnecessary call to
12633 max_reg_num.
12634 (scan_loop): Call reg_scan_update whenever we may have added new
12635 registers, and update loop_max_reg.
12636
12637 Tue Dec 14 12:07:29 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12638
12639 * regclass.c (record_reg_classes): Do not do the copying preferrencing
12640 when source does not die.
12641
12642 * regclass.c (record_reg_classes): Handle INOUT operands propertly.
12643
12644 1999-12-14 Jakub Jelinek <jakub@redhat.com>
12645
12646 * config/sparc/linux64.h (TARGET_LIVE_G0,
12647 TARGET_BROKEN_SAVERESTORE): Don't support weird SPARC
12648 variants on Linux.
12649 * config/sparc/linux.h (TARGET_LIVE_G0,
12650 TARGET_BROKEN_SAVERESTORE): Likewise.
12651 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
12652 TARGET_BROKEN_SAVERESTORE): Likewise.
12653
12654 * config/sparc/sparc.h (SPARC_DEFAULT_CMODEL): Default to CM_32.
12655 (CONDITIONAL_REGISTER_USAGE): For block profiling fix %g4 on sparc64,
12656 not %g2.
12657 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Use %g4 instead of %g2
12658 as sparc64 block profiling register.
12659 * config/sparc/sparc.c (sparc_override_options): Allow block
12660 profiling with -m32.
12661 (sparc_block_profiler): Use %g4 instead of %g2 as sparc64 block
12662 profiling register.
12663 * config/sparc/linux64.h (MACHINE_STATE_*): Only provide these
12664 macros on TARGET_ARCH32. sparc.h has macros good enough for sparc64.
12665 * config/sparc/sol2.h (MACHINE_STATE_*): Likewise.
12666
12667 * config/sparc/xm-sp64.h: Avoid using __sparc_v9__ when testing
12668 for sparc64.
12669 * config/sparc/sparc.h: Likewise.
12670 * config/sparc/xm-sysv4-64.h: Likewise.
12671 * config/float-sparc.h: Likewise.
12672 * glimits.h: Likewise.
12673 * longlong.h: Likewise.
12674
12675 * config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
12676 (ASM_IDENTIFY_GCC): Remove.
12677
12678 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
12679
12680 * combine.c (combine_simplify_rtx): Don't make shared rtl.
12681 (simplify_logical): Likewise.
12682
12683 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
12684
12685 * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
12686 * cppfiles.c (INO_T_EQ): Likewise.
12687
12688 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
12689
12690 * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
12691 * i386/mingw32.h (LIB_SPEC): Likewise.
12692 (STARTFILE_SPEC): Likewise.
12693 * i386/uwin.h (LIB_SPEC): Likewise.
12694 (STARTFILE_SPEC): Likewise.
12695
12696 * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition.
12697 * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise.
12698
12699 Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
12700
12701 * combine.c (combine_simplify_rtx): Fix order of checks for
12702 (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
12703
12704 1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
12705
12706 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
12707 12/10/99 change, reapplied to merged-arm-thumb-backend-branch.
12708
12709 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
12710
12711 * hard-reg-set.h (inv_reg_alloc_order): Declare if REG_ALLOC_ORDER is
12712 defined.
12713 * regclass.c (inv_reg_alloc_order): New array.
12714 (regclass_init): If REG_ALLOC_ORDER is defined, initialize it.
12715
12716 * reload.h (struct insn_chain): Delete fields group_size, group_mode,
12717 counted_for_groups, counted_for_nongroups. Add fields rld and
12718 n_reloads.
12719 * reload.c (push_secondary_reload): Don't set nongroup field of
12720 new reloads.
12721 (push_reload): Likewise.
12722 (find_reloads): Delete code to compute nongroup fields.
12723 * reload1.c (reload_insn_firstobj): New static variable.
12724 (pseudos_counted, spilled_pseudos): Now of type regset_head. All
12725 users changed.
12726 (calculate_needs, find_tworeg_group, find_group, possible_group_p,
12727 count_possible_groups, modes_equiv_for_class_p, new_spill_reg,
12728 dump_needs, maybe_mark_pseudo_spilled, hard_reg_use_compare): Delete
12729 functions.
12730 (count_pseudo, select_reload_regs, copy_reloads, find_reg): New
12731 functions.
12732 (struct hard_reg_n_uses): Deleted.
12733 (potential_reload_regs): Deleted.
12734 (init_reload): Initialize spilled_pseudos and pseudos_counted.
12735 (reload): Don't try to allocate reload registers if we already know
12736 we have to make another pass. Call select_reload_regs. Free memory
12737 starting with reload_firstobj when starting another pass.
12738 Don't allocate spilled_pseudos.
12739 (calculate_needs_all_insns): Call copy_reloads for an insn that
12740 needs reloads; don't call calculate_needs.
12741 (spill_cost): New static array.
12742 (used_spill_regs_local): New static variable.
12743 (order_regs_for_reload): Rewrite to lose hard_reg_n_uses and the code
12744 to compute potential_reload_regs.
12745 (find_reload_regs): Completely rewritten to use find_reg.
12746 (allocate_reload_reg): Don't test counted_for_groups or
12747 counted_for_nongroups. Lose NOERROR arg and code to give an error;
12748 all cllers changed.
12749 (choose_reload_regs): Add fallback code that uses the existing
12750 register allocation from find_reload_regs.
12751
12752 Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
12753
12754 * flow.c (create_edge_list): Cast xmalloc return value.
12755
12756 Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
12757
12758 * doprnt.c: Remove incorrect comment closure.
12759
12760 * cse.c: Fix a few minor whitespace goofs.
12761
12762 1999-12-13 Don Bowman <don@pixstream.com>
12763
12764 * mips/vxworks.h: Fix problem with comment termination.
12765 (EXTRA_SECTIONS): Add in_sbss.
12766 (EXTRA_SECTION_FUNCTIONS): Corresponding changes.
12767
12768 1999-12-12 David S. Miller <davem@redhat.com>
12769
12770 * cse.c (struct cse_reg_info): Add hash_next member,
12771 reorder rest of struct for better packing on 64-bit
12772 hosts.
12773 (cse_reg_info_tree): Kill.
12774 (REGHASH_SHIFT, REGHASH_SIZE, REGHASH_MASK, reg_hash,
12775 REGHASH_FN): New custom pow2 hash mechanism.
12776 (NBUCKETS): Kill.
12777 (HASH_SHIFT, HASH_SIZE, HASH_MASK, HASH, table): Rework to
12778 use a pow2 hash table.
12779 (get_cse_reg_info): Rework to use new REGHASH.
12780 (new_basic_block): Likewise, use HASH_SIZE, and inline
12781 free_element call.
12782 (remove_from_table): Rework to use HASH_SIZE/HASH_MASK,
12783 and inline free_element call.
12784 (lookup_as_function, insert, flush_hash_table, invalidate,
12785 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
12786 invalidate_for_call, use_related_value, find_comparison_args,
12787 fold_rtx, equiv_constant, cse_insn, invalidate_memory): Likewise.
12788 (hash_cse_reg_info, cse_reg_info_equal_p, free_element,
12789 get_element): Kill.
12790
12791 Sun Dec 12 21:31:44 1999 Jeffrey A Law (law@cygnus.com)
12792
12793 * cse.c (cse_basic_block): Free qty_table consistently.
12794
12795 1999-12-12 David S. Miller <davem@redhat.com>
12796 Jakub Jelinek <jakub@redhat.com>
12797
12798 * config/sparc/sparc.md (movtf reg/reg split): Don't generate
12799 SUBREGs by hand, gen the appropriate hard reg directly.
12800 (movtf reg/mem split): Likewise and alter_subreg on destination
12801 if necessary.
12802 (movtf mem/reg split): Similarly.
12803 (movdf_cc_sp64): Rename from hidden pattern.
12804 (movtf_cc_hq_sp64): Renamed from movtf_cc_sp64.
12805 (movtf_cc_sp64, following split): New pattern and splitter.
12806 (movdf_cc_reg_sp64): Rename from hidden pattern.
12807 (movtf_cc_reg_hq_sp64): Renamed from movtf_cc_reg_sp64, require
12808 TARGET_HARD_QUAD.
12809 (movtf_cc_reg_sp64, following split): New pattern and splitter.
12810
12811 1999-12-12 Stephen L Moshier <moshier@mediaone.net>
12812
12813 * loop.c (load_mems): Don't hoist written floating point mem
12814 if -ffloat-store.
12815
12816 1999-12-12 Mark Mitchell <mark@codesourcery.com>
12817
12818 * except.h (struct eh_queue): Add `next' pointer.
12819 (struct eh_status): Make x_ehqueue a pointer.
12820 (push_ehqueue): Declare.
12821 (pop_ehqueue): Likewise.
12822 * except.c (expand_eh_region_end): Adjust now that ehqueue is a
12823 pointer.
12824 (expand_fixup_region_end): Likewise.
12825 (expand_leftover_cleanups): Likewise.
12826 (push_ehqueue): Define.
12827 (pop_ehqueue): Likewise.
12828 (emit_cleanup_handler): Use push_ehqueue and pop_ehqueue rather
12829 than doing it inline.
12830 (expand_start_all_catch): Adjust now that ehqueue is a
12831 pointer.
12832 (mark_eh_queue): Mark all level of the queue.
12833 (mark_eh_status): Adjust now that ehqueue is a
12834 pointer.
12835 (init_eh_for_function): Allocate ehqueue.
12836 (free_eh_status): Free it.
12837 * stmt.c (expand_cleanups): Save the ehqueue around the cleanup
12838 expansion for a fixup.
12839
12840 1999-12-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12841
12842 * gthr-single.h (__gthread_active_p): Add prototype arguments.
12843
12844 * libgcc2.c (__udivmoddi4): Remove unnecessary decls.
12845 (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg,
12846 __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret,
12847 function_ptr, getpagesize, __enable_execute_stack,
12848 __enable_execute_stack, __clear_insn_cache,
12849 __enable_execute_stack, __do_global_dtors, __do_global_ctors,
12850 _cleanup, _exit, __default_terminate, __terminate_func,
12851 __terminate, __empty, __throw, new_eh_context,
12852 eh_context_initialize, eh_context_static, eh_context_specific,
12853 get_eh_context, __get_eh_context, __get_eh_info,
12854 init_reg_size_table, eh_threads_initialize,
12855 __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow,
12856 __unwinding_cleanup, throw_helper, __throw, __rethrow,
12857 __pure_virtual): Add prototype arguments.
12858 (__bb_exit_func): Cast a sizeof to long when comparing against one.
12859 Cast a signed value to unsigned long when comparing against one.
12860 (new_eh_context): Wrap in _GTHREADS macro.
12861 (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at
12862 declaration.
12863 (in_reg_window): Mark parameters with __attribute__ ((__unused__)).
12864 (throw_helper): Initialize variables `handler_p' and `pc_p'.
12865
12866 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12867
12868 * combine.c (record_promoted_value): Remove unused variable
12869 `links2'.
12870
12871 * emit-rtl.c (renumber_insns): Likewise for `old_max_uid'.
12872
12873 * global.c (record_conflicts): Likewise for `j'.
12874
12875 * genoutput.c (output_insn_data): Don't unnecessarily cast away
12876 const-ness.
12877
12878 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12879
12880 * i386-protos.h (output_387_binary_op, output_fix_trunc,
12881 output_fp_compare): Constify a char*.
12882
12883 * i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
12884 static prototypes.
12885 (override_options, ix86_comp_type_attributes, print_operand,
12886 output_387_binary_op, output_fix_trunc, output_fp_compare):
12887 Constify a char*.
12888 (ix86_sched_reorder): Mark parameter `clock_var' with
12889 ATTRIBUTE_UNUSED.
12890
12891 * i386.h (DEBUG_PRINT_REG): Constify a char*.
12892
12893 Fri Dec 10 16:12:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
12894
12895 * tree.def (EXPR_WITH_FILE_LOCATION): Temporarily add a third
12896 operand, for use in the Java front-end.
12897
12898 1999-12-10 Ben Collins <bcollins@debian.org>
12899
12900 * configure.in: Fix typo for "-64" in 64bit as check.
12901 * configure: Rebuilt.
12902
12903 1999-12-10 Jakub Jelinek <jakub@redhat.com>
12904
12905 * longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
12906 appropriate.
12907
12908 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12909
12910 * c-parse.in (string): With -Wtraditional, warn if ANSI string
12911 concatenation is utilized.
12912
12913 * invoke.texi (-Wtraditional): Document it.
12914
12915 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12916
12917 * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
12918 Cast a ptrdiff_t to long and pass it to printf with %ld.
12919
12920 1999-12-10 Geoff Keating <geoffk@cygnus.com>
12921
12922 * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
12923 68881, we have no 68881 registers at all.
12924 (HARD_REGNO_MODE_OK): It is always OK to put a MODE_FLOAT
12925 value in a 68881 register if it is available.
12926
12927 1999-12-10 Clinton Popetz <cpopetz@cygnus.com>
12928
12929 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi): New patterns
12930 for long long multiply-accumulate.
12931
12932 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
12933
12934 * loop.c (insert_loop_mem): Undo last change.
12935
12936 1999-12-10 David S. Miller <davem@redhat.com>
12937
12938 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p, fp_high_losum_p):
12939 New functions.
12940 * config/sparc/sparc-protos.h: Add them.
12941 * config/sparc/sparc.h: Add them to PREDICATE_CODES.
12942 (EXTRA_CONSTRAINT_BASE): New macro, handling Q, R, and S
12943 constraints which use those helpers.
12944 (EXTRA_CONSTRAINT): Use this new macro.
12945 * md.texi: Update sparc target constraints documentation.
12946 * config/sparc/sparc.md (clear_sf, clear_sfp, movsf_const_intreg,
12947 movsf_const_high, movsf_const_lo, movsf_insn): Delete.
12948 (movsf_insn_novis_liveg0, movsf_insn_novis_noliveg0,
12949 movsf_insn_vis, movsf_lo_sum, movsf_high): New patterns.
12950 (movsf high/lo_sum split): Rework for new patterns.
12951 (movsf expander): Allow storing fp_zero to memory if ! live_g0.
12952
12953 1999-12-09 Gavin Romig-Koch <gavin@cetus.cygnus.com>
12954
12955 * c-common.c (c_common_nodes_and_builtins):
12956 Create __builtin_ptrdiff_t and __builtin_size_t.
12957
12958 Thu Dec 9 18:05:48 1999 Jeffrey A Law (law@cygnus.com)
12959
12960 * pa/elf.h (MAX_OFILE_ALIGNMENT): Define.
12961
12962 Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12963
12964 * regclass.c (globalize_reg): Re-instate test that allows
12965 fixed registers to be declared as a variable even after functions
12966 are defined.
12967
12968 Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12969
12970 * i386.md (cpu attribute): Add "athlon".
12971 (athlon_decode): New attribute.
12972 (Athlon scheduling units definitions): New.
12973 (fcmp and shld patterns): Set athlon_decode to "vector".
12974 * i386.c (athlon_cost): New.
12975 (m_ATHLON): New.
12976 (x86_use_leave, x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
12977 x86_use_sahf): Set for Athlon.
12978 (x86_use_fiop): Unset for Athlon.
12979 (override_options): Define Athlon alignments and "athlon" name.
12980 (x86_adjust_cost): Penalize AGI and delayed latencies for Athlon.
12981 * i386.h (TARGET_ATHLON): New.
12982 (enum processor_type): Add PROCESSOR_ATHLON.
12983 (TARGET_CPU_DEFAULT_SPEC): Set to "-D__tune_athlon__"
12984 for CPU_DEFAULT==5
12985 (TARGET_CPP_CPU_SPECS): Set -D__tune_athlon__ for Athlon.
12986
12987 1999-12-09 Andreas Jaeger <aj@suse.de>
12988
12989 * loop.c (record_biv): Declare parameter as int.
12990
12991 * config/i386/i386-protos.h: Declare long_memory_operand.
12992
12993 1999-12-09 Mark Mitchell <mark@codesourcery.com>
12994
12995 * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
12996 EXPR_WITH_FILE_LOCATION.
12997
12998 Thu Dec 9 11:36:24 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12999
13000 * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
13001 in expander.
13002
13003 * flow.c (recompute_reg_usage): Use basic block info to get loop_depth.
13004
13005 * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
13006 updating code.
13007
13008 1999-12-09 Jakub Jelinek <jakub@redhat.com>
13009
13010 * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
13011 default on linux64 again.
13012 * config/sparc/t-linux64: Add mno-app-regs and non-medlow code
13013 models for multilibing.
13014 * genmultilib: Accept | as alternative separator within a set in
13015 MULTILIB_OPTIONS.
13016
13017 * config/sparc/sparc.h (PROMOTE_FOR_CALL_ONLY): Define.
13018
13019 * calls.c (precompute_arguments): Make sure initial_value contains
13020 value pseudo which CSE expects.
13021 * cse.c (struct set): New entry orig_src.
13022 (cse_insn): Set it early on entry, use it for libcall EQUIV note
13023 replacement.
13024
13025 Wed Dec 8 22:24:15 1999 Richard Henderson <rth@cygnus.com>
13026
13027 * flow.c (count_basic_blocks): Don't add (use (const_int 0)) insns.
13028
13029 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
13030
13031 * loop.c (insert_loop_mem): Don't hoist volatile mems out of loops.
13032
13033 1999-12-08 Jakub Jelinek <jakub@redhat.com>
13034
13035 * config/sparc/sparc.c (ultra_cmove_results_ready_p,
13036 ultra_fpmode_conflict_exists, ultra_flush_pipeline): Typo fix.
13037
13038 * config/sparc/sparc.h (SPARC_SETHI_P): Don't look at topmost 32 bits
13039 if TARGET_ARCH32.
13040
13041 * longlong.h: Merge in changes from glibc.
13042 Also don't clobber %g2 register in 32bit SPARC assembly, so that
13043 -mno-app-regs libgcc can be compiled.
13044 * libgcc2.c: Add defines so that the updated longlong.h
13045 can be used in libgcc2.a. Also, make sure on most architectures
13046 (at least on all which have optimized code in longlong.h defined
13047 for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
13048
13049 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13050
13051 * config/sparc/sol2-64.h: Same as sol2-sld-64.h, except that
13052 `-m EMULATION' is added to non-default LINK_ARCH_SPECs.
13053 * configure.in: Use sol2-64.h instead of sol2-sld-64.h if linker
13054 is GNU ld.
13055 * configure: Rebuilt.
13056
13057 Wed Dec 8 03:45:40 1999 Richard Henderson <rth@cygnus.com>
13058
13059 * alpha.c (secondary_reload_class): For !BWX, sub-simode
13060 outputs require a register.
13061
13062 1999-12-08 Brendan Kehoe <brendan@cygnus.com>
13063
13064 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS): Add _sf_to_usi
13065 _df_to_usi. Required by some targets, so US_SOFTWARE_GOFAST calls to
13066 functions like dptoul will be resolved.
13067 (libgcc2.a): Make sure that the object files from DPBIT are named
13068 differently (prefix `_dp') from those that would be coming from
13069 FPBIT.
13070
13071 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Jakub Jelinek <jakub@redhat.com>
13072
13073 * configure.in: When target is sparc* and tm_file contains 64,
13074 test for 64bit support in assembler. If not supported, remove
13075 sparc/t-sol2-64 from target-dependent Makefile fragments.
13076 (AS_SPARC64_FLAG): Define to the assembler flag for 64bit.
13077 (HAVE_AS_OFFSETABLE_LO10): Rework test to use these flags.
13078 (HAVE_AS_REGISTER_PSEUDO_OP): Use config.cache.
13079 * acconfig.h (AS_SPARC64_FLAG): Added.
13080 * configure, config.in: Rebuilt.
13081 * config/sparc/sol2-sld-64.h: Same as sol2.h, if without 64bit
13082 support. Use AS_SPARC64_FLAG.
13083
13084 1999-12-07 Jakub Jelinek <jakub@redhat.com>
13085
13086 * config/sparc/sparc.c (hard_32bit_mode_classes): Mark registers
13087 suitable for holding OFmode values so that gcc works with complex
13088 quad long doubles.
13089 (hard_64bit_mode_classes): Likewise.
13090
13091 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): Fix pattern
13092 so that it is actually matched.
13093 (sethi_di_medlow): Likewise.
13094
13095 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Consider TFmode 0.0L
13096 as legitimate constant if -mvis.
13097 * config/sparc/sparc.md (movtf): Likewise.
13098 (clear_sf): Use const_double_operand.
13099 (clear_sfp, clear_dfp, clear_tf, clear_tfp): New patterns.
13100
13101 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
13102 * config/sparc/sparc-protos.h (sparc_emit_float_lib_cmp): Prototype.
13103 * config/sparc/sparc.h (*_LIBCALL): Only use for _Q_*
13104 routines, _Qp_* cannot be handled like that now.
13105 (INIT_TARGET_OPTABS): Likewise.
13106 * config/sparc/sparc.md (cmptf): Accept soft float ARCH64.
13107 (seq, sne, sgt, sge, slt, sle, beq, bne, bgt, bge, blt, ble): Call
13108 sparc_emit_float_lib_cmp if ARCH64 and soft float.
13109 (extendsftf2, extenddftf2, trunctfsf2, trunctfdf2, floatsitf2,
13110 floatditf2, fix_trunctfsi2, fix_trunctfdi2, addtf3, subtf3, multf3,
13111 divtf3, sqrttf3): New expanders.
13112 (extendsftf2_hq, extenddftf2_hq, trunctfsf2_hq, trunctfdf2_hq,
13113 floatsitf2_hq, floatditf2_hq, fix_trunctfsi2_hq, fix_trunctfdi2_hq,
13114 addtf3_hq, subtf3_hq, multf3_hq, divtf3_hq, sqrttf3_hq): Rename from
13115 non-_hq patterns.
13116
13117 * configure.in (sparc64-*-linux*): Use posix threads if enabled.
13118 * configure: Rebuilt.
13119 * config/sparc/linux64.h: Default to -mcpu=ultrasparc if no
13120 -mcpu is given and we're doing 64bit compiles.
13121
13122 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
13123
13124 * loop.h (struct induction): Add multi_insn_incr.
13125 * loop.c (basic_induction_var): New multi_insn_incr argument.
13126 Set it if we search back through previous insns for the biv.
13127 (record_biv): New multi_insn_incr argument; fill in struct induction.
13128 (strength_reduce): Discard an iv with multiple bivs, any of
13129 which require multiple insns to increment.
13130
13131 1999-12-07 Martin v. Löwis <loewis@informatik.hu-berlin.de>
13132
13133 * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std
13134 documentation.
13135
13136 1999-12-06 David S. Miller <davem@redhat.com>
13137
13138 * combine.c (check_promoted_subreg): Do not conditionalize this upon
13139 PROMOTE_FUNCTION_RETURN.
13140
13141 Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
13142
13143 * regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
13144 and handle REG_UNUSED note on insn.
13145
13146 * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
13147 inner_mask instead of mask.
13148
13149 1999-12-06 Brendan Kehoe <brendan@cygnus.com>
13150
13151 * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
13152 zero if there was an error.
13153
13154 1999-12-06 Jakub Jelinek <jakub@redhat.com>
13155
13156 * config/sparc/sparc.md (return_losum_di): Fix typo in asm
13157 output string.
13158
13159 * longlong.h: Fix clobbers in SPARC asm statements.
13160
13161 * config/sparc/sparc.c (input_operand): Allow HImode and QImode
13162 valid sethi operations when TARGET_ARCH64.
13163
13164 * calls.c (save_fixed_argument_area): If save_mode is BLKmode,
13165 always use move_by_pieces to avoid infinite recursion.
13166 (restore_fixed_argument_area): Likewise.
13167
13168 * combine.c (check_promoted_subreg, record_promoted_value): New
13169 functions.
13170 (combine_instructions): Use them to retain nonzero and sign bit
13171 information after SUBREGs are eliminated by optimizations in
13172 this pass if PROMOTE_FUNCTION_RETURN.
13173
13174 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Document
13175 .register declaration. Don't use variables with __ prefixes.
13176
13177 Mon Dec 6 12:24:52 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13178
13179 * fold-const.c (optimize_bit_field_compare): Only use one mode
13180 for both RHS and LHS in non-constant case.
13181
13182 1999-12-06 Nathan Sidwell <nathan@acm.org>
13183
13184 * frame.c (start_fde_sort): Only allocate erratic array, if
13185 linear one was allocated. Return allocated flag.
13186 (fde_insert): Only insert, if there's a valid array.
13187 (fde_end_sort): Split, sort and merge if linear and erratic
13188 arrays exist, else just sort linear one.
13189 (search_fdes): New function. Linear search through original fde
13190 structure.
13191 (frame_init): Permit multiple initializations. Cope with
13192 memory shortages.
13193 (find_fde): Fallback on linear search, if failed to sort array.
13194 (__deregister_frame_info): Only free sorted array, if we
13195 allocated it.
13196
13197 1999-12-06 Jakub Jelinek <jakub@redhat.com>
13198
13199 * config/sparc/sparc.h (MUST_PASS_IN_STACK): New macro.
13200
13201 1999-12-05 Jakub Jelinek <jakub@redhat.com>
13202
13203 * config/sparc/sparc.c (sparc64_initialize_trampoline): Use gen_flushdi.
13204
13205 1999-12-05 Mark Mitchell <mark@codesourcery.com>
13206
13207 * tree.h (special_function_p): Declare.
13208 * calls.c (special_function_p): Make it global. Don't take `name'
13209 as a parameter. Fix typo in 1999-11-28 change.
13210 (expand_cal): Adjust.
13211
13212 1999-12-04 Mark Mitchell <mark@codesourcery.com>
13213
13214 * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
13215 * tree.h (EXPR_WFL_FILENAME): Define in terms of
13216 EXPR_WFL_FILENAME_NODE.
13217 (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
13218 the TREE_CHAIN.
13219 * print-tree.c (print_note): Print TREE_PRIVATE and
13220 TREE_PROTECTED.
13221
13222 * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
13223 the original die cannot be found.
13224
13225 * varray.h (varray_head_tag): Add elements_used.
13226 (VARRAY_PUSH): New macro.
13227 (VARRAY_POP): Likewise.
13228 (VARRAY_TOP): Likewise.
13229 Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
13230 types.
13231 * varray.c (varray_init): Initialize elements_used.
13232 * Makefile.in (BASIC_BLOCK_H): Add varray.h.
13233 (INTEGRATE_H): New variable.
13234 (integrate.o): Depend on INTEGRATE_H.
13235 (unroll.o): Likewise.
13236
13237 * function.h (insert_block_after_note): Declare.
13238 * function.c (insert_block_after_note): Split out from ...
13239 (retrofit_block): ... here.
13240
13241 * stmt.c (expand_fixup): Fix typo in comment.
13242
13243 Sat Dec 4 14:13:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13244
13245 * regmove.c (copy_src_to_dest): Remove loop_depth parameter.
13246 (optimize_reg_copy_1): Remove REG_N_REFS updating code.
13247 (optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
13248 (regmove_optimize, fixup_match_1): Likewise.
13249
13250 1999-12-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13251
13252 * flow.c (flow_loops_dump): Add missing argument when calling
13253 flow_loop_nested_p.
13254
13255 1999-12-04 Geoffrey Keating <geoffk@cygnus.com>
13256 Greg McGary <gkm@gnu.org>
13257
13258 * c-common.c (enum attrs): Add A_NO_LIMIT_STACK.
13259 (init_attributes): Add A_NO_LIMIT_STACK.
13260 (decl_attributes): Handle A_NO_LIMIT_STACK.
13261 * c-decl.c (duplicate_decls): Handle DECL_NO_LIMIT_STACK.
13262 * explow.c (allocate_dynamic_stack_space) [!HAVE_allocate_stack]:
13263 Handle stack bounds checking.
13264 * flags.h (flag_stack_check): Use the word 'probe' rather than
13265 'check', because the flag doesn't actually cause any checking to
13266 be done.
13267 * function.c (expand_function_start): Set
13268 current_function_limit_stack.
13269 * function.h (struct function): Add limit_stack.
13270 (current_function_limit_stack): Define.
13271 * invoke.texi (Code Gen Options): Document new options.
13272 * rtl.h: Declare stack_limit_rtx.
13273 * toplev.c (stack_limit_rtx): New variable.
13274 (decode_f_option): Handle new options -fstack-limit-register=REG,
13275 -fstack-limit-symbol=IDENT, -fno-stack-limit.
13276 (main): Add stack_limit_rtx as GC root.
13277 * tree.h (DECL_NO_LIMIT_STACK): New macro.
13278 (struct tree_decl): New member no_limit_stack.
13279
13280 * config/rs6000/rs6000.c (rs6000_allocate_stack_space): Handle
13281 stack_limit_rtx.
13282 * config/rs6000/rs6000.md (allocate_stack): Handle stack_limit_rtx.
13283 (conditional_trap+1): Get new mnemonic correct.
13284 (conditional_trap+2): New pattern for DImode traps.
13285
13286 * config/m68k/m68k.c (output_function_prologue): Handle
13287 stack_limit_rtx.
13288 * config/m68k/m68k.md (trap): New insn.
13289 (conditional_trap): New insn.
13290 * md.texi (Standard Names): Document `trap' and
13291 `conditional_trap'.
13292 * optabs.c (gen_cond_trap): Use start_sequence()/end_sequence()
13293 so a cc0 setter doesn't get emitted at some random place in the
13294 function.
13295
13296 * config/i960/i960.md (trap): New insn.
13297 (conditional_trap): New expander.
13298 (conditional_trap+1, conditional_trap+2): New insns for signed
13299 and unsigned cases.
13300 * config/i960/i960.c (i960_function_prologue): Use
13301 STARTING_FRAME_OFFSET. Handle stack_limit_rtx.
13302
13303 Thu Dec 2 21:22:45 1999 Greg McGary <gkm@gnu.org>
13304 Geoffrey Keating <geoffk@cygnus.com>
13305
13306 * flags.h (warn_padded, warn_packed): Add global var decls.
13307 * toplev.c (warn_padded, warn_packed): Add global var defns.
13308 (W_options): Add warnings `-Wpacked' and `-Wpadded'.
13309 * stor-layout.c (layout_record): Add local variable `type'
13310 to hold often-used TREE_TYPE (field). Add local variable
13311 `unpacked_align' to hold alignment that would be in force
13312 if no `packed' attribute were present. Warn if `packed' attribute
13313 is unnecessary, or even harmful. Warn when gcc inserts padding
13314 to satisfy alignment requirements of members. Use NULL_TREE
13315 when checking whether var_size is set.
13316 * invoke.texi: Document new flags.
13317
13318 1999-12-03 Nathan Sidwell <nathan@acm.org>
13319
13320 * frame.c (fde_split): Reimplement to avoid variable sized array.
13321
13322 Thu Dec 2 18:59:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13323
13324 * combine.c (try_combine): Before fixing up LOG_LINKS for the
13325 i3_subst_into_i2 case, check that GET_CODE (PATTERN (i2)) == PARALLEL.
13326
13327 1999-12-02 Gavin Romig-Koch <gavin@cygnus.com>
13328
13329 * invoke.texi: Document the mips option -mno-crt0
13330
13331 1999-12-02 Mike Karr <mkarr@mathworks.com>
13332
13333 * cccp.c (argdata): Added free_ptr member.
13334 (macroexpand): Initialize free_ptr of each argument. When an
13335 argument's buffers are freed, if the argument's free_ptr corresponds
13336 to a buffer on the input stack, then return the free_ptr to that stack
13337 frame, otherwise, free it.
13338 (macarg): If an argument begins and ends on the same input stack level,
13339 then transfer the free_ptr of that buffer to the argument in case
13340 the stack is popped during the processing of a subsequent argument.
13341
13342 1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
13343
13344 * loop.c (note_reg_stored): New function.
13345 (struct note_reg_stored_arg): New structure.
13346 (try_copy_prop): Change to be more conservative; only replace within
13347 one extended basic block and stop replacing if a store to the
13348 replacement reg is seen.
13349
13350 1999-12-02 Nick Clifton <nickc@cygnus.com>
13351
13352 * config/fp-bit.c: Initialise all fields of the NAN
13353 constants.
13354
13355 * c-lex.c (check_newline): Pass pragma_getc and pragma_ungetc
13356 to HANDLE_PRAGMA.
13357
13358 Wed Dec 1 18:16:38 1999 Jan Hubicka <hubicka@freesoft.cz>
13359
13360 * i386.md (extend?f?f2): Force the input into a register, not
13361 the output.
13362
13363 1999-12-01 Jakub Jelinek <jakub@redhat.com>
13364
13365 * config/sparc/sparc.md (movsf_const_intreg): Add constraints for
13366 regclass' sake.
13367 (movdf_const_intreg_sp32): Likewise. Prefer the memory load
13368 alternative because setting up 64bit constant is usually costly,
13369 especially when reload is in progress or completed.
13370 (movdf_const_intreg_sp64): Likewise.
13371 (movdf_const_intreg split): Fix building up constants when
13372 HOST_BITS_PER_WIDE_INT is 64 yet long is 32bit.
13373
13374 Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
13375
13376 * combine.c (if_then_else_cond): Use const_true_rtx instead of
13377 const1_rtx for return values in EQ/NE comparison against (const_int 0)
13378 case.
13379
13380 * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
13381 (asm_file_start): Emit .am33 into assembly file when compiling for
13382 the AM33.
13383 (print_operand_address): Handle POST_INC addresses.
13384 (can_use_return_insn, initial_offset): Check AM33 registers too.
13385 (expand_prologue): Check & save AM33 registers too.
13386 (expand_epilogue): Similarly.
13387 (secondary_reload_class): Handle AM33 specific secondary reloads.
13388 (output_tst): Emit efficient code for the AM33 too.
13389 * mn10300.h (CPP_SPEC, TARGET_AM33): Define.
13390 (TARGET_SWITCHES): Add -mam33 switch.
13391 (FIRST_PSEUDO_REGISTER): Handle new AM33 registers.
13392 (FIXED_REGISTERS, CALL_USED_REGISTERS): Likewise.
13393 (REG_ALLOC_ORDER, CONDITIONAL_REGISTER_USAGE): Likewise.
13394 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P): Likewise.
13395 (enum reg_class, REG_CLASS_NAMES): Likewise.
13396 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Likewise.
13397 (INDEX_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
13398 (REGNO_OK_FOR_INDEX_P, PREFERRED_RELOAD_CLASS): Likewise.
13399 (PREFERRED_OUTPUT_RELOAD_CLASS, LIMIT_RELOAD_CLASS): Likewise.
13400 (REGISTER_MOVE_COST, REGISTER_NAMES): Likewise.
13401 (HAVE_POST_INCREMENT): Define.
13402 (GO_IF_LEGITIMATE_ADDRESS): Allow POST_INC addresses for the AM33.
13403 (GO_IF_MODE_DEPENDENT_ADDRESS): POST_INC is a mode dependent address.
13404 * mn10300.md (movqi, movhi, addsi, subsi): Add AM33 variants.
13405 (mulsi, andsi, iorsi, xorsi, notsi): Likewise.
13406 (ashiftsi, lshiftrtsi, ashiftrtsi): Likewise.
13407 (zero_extend to SI from QI/HI): Likewise.
13408 (sign_extend to SI from QI/HI): Likewise.
13409 (mulsidi3, umulsidi3): New patterns for the AM33.
13410 (tstsi with zero extension from QI/HI): Add AM33 variants.
13411 (movsi, movsf, movdi, movdf): Generate efficient code for the AM33 too.
13412 (return_internal_regs, store_movm): Handle new AM33 registers.
13413 * t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Define.
13414 (LIBGCC, INSTALL_LIBGCC): Likewise.
13415 * invoke.texi: Document new flags.
13416
13417 Fri Nov 26 10:59:12 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13418
13419 * i386.md (addsi3_cc): Add "binary_operator_ok" to the condition.
13420 (addsi3_carry): Likewise.
13421 (sbbsi3_cc): Add "binary_operator_ok" to the condition.
13422 (sbbsi3_carry): Likewise.
13423 (mulsi3): Rewrite to expander, ensure that only one operand is memory.
13424 (mulhi3): Likewise.
13425 (test?i_1): Ensure that only one operand is memory.
13426 (conditional move patterns): likewise.
13427 (shift and rotate patterns): Rewrite to expander, add
13428 "binary_operator_ok" to the condition.
13429
13430 * i386.md (QImode patterns): Remove '*' before the 'r' constraints.
13431 * i386.h (procesor_costs): Add movzbl_load field.
13432 (HARD_REGNO_MODE_OK): Accept QImode on non PARTIAL_REGISTER_STALL in
13433 non-Q registers, accept DImode registers anywhere.
13434 (Q_CLASS_P): New.
13435 (MEMORY_MOVE_COST): Calculate QImode moves correctly.
13436 * i386.c (*_cost): Set value for movxbl_load field.
13437
13438 * (addsi): New add to lea splitter.
13439 (ashlsi): Likewise.
13440 (lea to add/shift peep2): New.
13441
13442 1999-12-01 Mark Salter <msalter@cygnus.com>
13443
13444 * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
13445 * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
13446 * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
13447
13448 Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13449
13450 * i386.c (ix86_expand_move): Never add clobbers to move patterns.
13451 * i386.md (movsi_xor): New.
13452 (movsi_or): New.
13453 (movsi_1, movhi_1, movqi_1): Remove.
13454 (movsi_2): Rename to movsi_1.
13455 (movhi_2): Rename to movhi_1.
13456 (movqi_2): Rename to movqi_1.
13457 (movdi_1): Remove; remove splitter.
13458 (movdi_2): Rename to movdi_1.
13459 (divmodsi4 splitter): Do not emit clobbers for move patterns.
13460 (long move peep2): Do not create QI or HI mode mov0s
13461 (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
13462
13463 * i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
13464 rewrite splitters.
13465
13466 * i386.md (neg?f2_if): Split "r" and "f" to separate alternatives.
13467 (abs?f2_if): Likewise.
13468
13469 1999-11-30 Alex Samuel <samuel@codesourcery.com>
13470
13471 * ggc.h (ggc_test_and_set_mark): New macro.
13472 (ggc_mark_rtx): Use ggc_test_and_set_mark.
13473 (ggc_mark_tree): Likewise.
13474 (ggc_mark_rtvec): Likewise.
13475 * ggc-common.c (ggc_mark_rtx_children): Reduce recursion.
13476
13477 1999-11-30 Jason Merrill <jason@casey.cygnus.com>
13478
13479 * dwarf2out.c (scope_die_for): Only handle types. Only search for
13480 containing types.
13481 (decl_scope_table): Just an array of trees now.
13482 (push_decl_scope): Simplify.
13483 (dwarf2out_init): Adjust.
13484 (local_scope_p): New fn.
13485 (gen_inlined_enumeration_type_die): Don't call scope_die_for.
13486 (gen_inlined_union_type_die, gen_inlined_structure_type_die): Likewise.
13487 (gen_typedef_die): Likewise.
13488 (gen_lexical_block_die): Don't call push/pop_decl_scope.
13489 (gen_inlined_subroutine_die): Likewise.
13490 (gen_abstract_function): Set current_function_decl temporarily.
13491 (gen_subprogram_die): Don't check DECL_ABSTRACT to set declaration.
13492 Handle block extern declarations. Don't call push/pop_decl_scope.
13493 (gen_decl_die): Fix logic for block externs.
13494
13495 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13496
13497 * calls.c (special_function_p): Remove `realloc' and add `strdup'
13498 to the list of functions which have attribute malloc by default.
13499
13500 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13501
13502 * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
13503 integer constant does not match the traditional type, limit the
13504 warnings to cases where the base of the type is ten.
13505
13506 * invoke.texi (-Wtraditional): Document it.
13507
13508 Tue Nov 30 15:18:35 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13509
13510 * combine.c (try_combine): Only pass SET or CLOBBER to SET_DEST
13511 * rs6000.md: Only access a CONST_INT with INTVAL
13512
13513 Tue Nov 30 14:21:00 1999 Richard Henderson <rth@cygnus.com>
13514
13515 * lcm.c (compute_laterin): Cast bb->aux to size_t not int.
13516 (compute_nearerout): Likewise.
13517 * ggc-page.c (ggc_page_print_statistics): Explicitly cast
13518 size_t to unsigned long for formatting.
13519
13520 1999-11-30 Jakub Jelinek <jakub@redhat.com>
13521
13522 * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
13523 Allow the user to override call-used/fixed state of %g2-5
13524 registers from the command line (with the exception of %g4 for
13525 embedded model).
13526 (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
13527 there is a higher chance of having a leaf function.
13528 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
13529 for ARCH64 which has %ccr register.
13530 * config/sparc/sparc.md (return_losum_si, return_losum_di): New
13531 patterns.
13532 * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
13533 insn accept into delay slot any insn which does not use %[ol]
13534 registers. Accept some LO_SUM and shift left by 1 for the normal
13535 restore case.
13536 (output_function_epilogue): Likewise.
13537 (epilogue_renumber): Added argument which inhibits any renumbering
13538 and just tests if the rtx does not use any %[ol] registers.
13539 (output_return): Reflect above change.
13540
13541 1999-11-30 Jakub Jelinek <jakub@redhat.com>
13542
13543 * config/sparc/sparc.c (sparc_va_arg): Fix sparc64 va_arg
13544 aggregate passing for sizes <= 16 bytes.
13545
13546 1999-11-30 Bernd Schmidt <bernds@cygnus.co.uk>
13547
13548 * cse.c (FIXED_REGNO_P): Delete tests for OVERLAPPING_REGNO_P.
13549 * global.c (global_alloc): Delete [OVERLAPPING_REGNO_P] code.
13550 * reload.c (find_dummy_reload): Likewise.
13551 (find_equiv_reg): Likewise; also for INSN_CLOBBERS_REGNO_P.
13552 * reload1.c (reload_as_needed): Likewise.
13553 * stupid.c (stupid_find_reg): Likewise.
13554 * tm.texi (Obsolete Register Macros): Delete section.
13555 * gmicro.h: Remove all traces of the two macros.
13556 * i386.h: Likewise.
13557 * m88k.h: Likewise.
13558 * mips.h: Likewise.
13559
13560 1999-11-30 Brendan Kehoe <brendan@cygnus.com>
13561
13562 * sparc.h (MASK_FASTER_STRUCTS, TARGET_FASTER_STRUCTS): Define.
13563 (TARGET_SWITCHES): Add -mfaster-structs/-mno-faster-structs flags.
13564 (ROUND_TYPE_ALIGN): Use better value if -mfaster-structs.
13565 * sparc.md (sparclite86x_branch, sparclite86x_shift): New function
13566 units for the sparclite86x chip.
13567 (flush): Revert October 14th change; add SImode specifically.
13568 (flushdi): Copy of flush, but DImode, to avoid genrecog warnings.
13569 * invoke.texi: Document it.
13570
13571 Tue Nov 30 14:58:14 1999 Nick Clifton <nickc@cygnus.com>
13572
13573 * config/mn10200/mn10200.h (PREDICATE_CODES): Add
13574 psimode_truncation_operand.
13575
13576 * config/mn10200/mn10200.c (psimode_truncation_operand): New
13577 function. Return true if the operand is either a MEM valid
13578 for a PSImode address or not a MEM at all.
13579
13580 * config/mn10200/mn10200.md (truncsipsi2): Use
13581 psimode_truncation_operand.
13582
13583 1999-11-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13584
13585 * flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
13586 (flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
13587 (flow_loop_exits_find, flow_loop_nodes_find): Likewise.
13588 (flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
13589 (flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
13590 (flow_loop_level_compute, low_loops_level_compute): Likewise.
13591 (flow_loops_find, flow_loop_outside_edge_p): Likewise.
13592 * basic-block.h: Protect from multiple inclusion.
13593 (flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
13594 (struct loops, struct loop): Define structures.
13595 * sbitmap.c (sbitmap_a_subset_b_p): New function.
13596 * sbitmap.h: Protect from multiple inclusion.
13597 (sbitmap_a_subset_b_p): Add prototype.
13598 * Makefile.in (LOOP_H): New macro.
13599 (stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
13600
13601 Tue Nov 30 01:34:47 1999 Philippe De Muyter <phdm@macqel.be>
13602
13603 * cppinit.c (CAT): The argument list of this macro may not contain
13604 spaces !
13605
13606 1999-11-29 David S. Miller <davem@redhat.com>
13607
13608 Move quantity tables and register equivalence chains into
13609 per-qty and per-register structure arrays respectively.
13610 * cse.c (qty_first_reg, qty_last_reg, qty_mode, qty_const,
13611 qty_const_insn, qty_comparison_code, qty_comparison_const,
13612 qty_comparison_qty): Delete, replace with...
13613 (qty_table): this structure table.
13614 (reg_next_eqv, reg_prev_eqv): Delete, replace with...
13615 (reg_eqv_table): this structure table.
13616 (make_new_qty): Add argument MODE. Caller updated.
13617 Update to use qty_table and reg_eqv_table.
13618 (make_regs_eqv, delete_reg_equiv, insert_regs,
13619 insert, exp_equiv_p, cse_rtx_varies_p, canon_reg,
13620 fold_rtx, equiv_constant, record_jump_cond, cse_insn,
13621 cse_process_notes, cse_main, cse_basic_block): Likewise.
13622
13623 Mon Nov 29 16:56:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13624
13625 * fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
13626 operation if C is negative.
13627 (extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
13628 (extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
13629 law for some divisions if constant is negative and change other
13630 divisions to the opposite rounding.
13631
13632 * expr.c (store_constructor_field): If bit position is not multiple
13633 of alignment of TARGET's mode, use BLKmode.
13634
13635 * expr.c (expand_expr_unaligned): Add more code from full case
13636 that is needed when OP0 is in a register.
13637
13638 Mon Nov 29 18:09:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13639
13640 * dwarfout.c (field_byte_offset): Size can be zero if there was
13641 an error.
13642
13643 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
13644
13645 * fold-const.c (split_tree): Delete unused vars ORIG_IN and TYPE.
13646 (associate_trees): Delete unused var TEM.
13647 (extract_muldiv): Delete unused var CANCEL_P.
13648
13649 * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
13650 (target_isinf, target_isnan, target_negative): Add return types to
13651 function definitions.
13652
13653 1999-11-29 Bruce Korb <autogen@linuxbox.com>
13654
13655 * fixinc/fixincl.c(process): don't skip GLIBC files any more.
13656 * fixinc/hackshell.tpl: ditto
13657 * fixinc/fixtests.c(double_slash_test): more C++ header testing
13658 * fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
13659
13660 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
13661
13662 * reload.c (push_reload): When looking for a register to put into
13663 reg_rtx, make sure all hard regs in a multi-reg register are in the
13664 right class and nonfixed.
13665
13666 * haifa-sched.c (reg_last_uses, reg_last_sets, reg_last_clobbers,
13667 pending_read_insns, pending_write_insns, pending_read_mems,
13668 pending_write_mems, pending_list_length, last_pending_memory_flush,
13669 last_function_call, sched_before_next_call): Move static variables
13670 into a structure.
13671 (bb_ prefixed versions): Replace with single array bb_deps.
13672 (struct deps): New structure.
13673 (add_insn_mem_dependence, flush_pending_lists, sched_analyze_1,
13674 sched_analyze_2, sched_analyze_insn, sched_analyze): Accept new
13675 argument of type "struct deps *"; use that instead of global
13676 variables. All callers changed.
13677 (init_rgn_data_dependencies): Delete function.
13678 (init_rtx_vector): Delete function.
13679 (init_deps): New function.
13680
13681 (free_pending_lists): Simplify, we always use the bb_deps array even
13682 if only one basic block.
13683 (compute_block_backward_dependences): Likewise.
13684 (schedule_region): Likewise.
13685
13686 (propagate_deps): New function, broken out of
13687 compute_block_backward_dependences.
13688 (compute_block_backward_dependences): Use it.
13689
13690 * alpha.md: Delete useless patterns that tried to work around
13691 register elimination problems.
13692
13693 * unroll.c (loop_iterations): Don't abort if iteration variable
13694 was made by loop.
13695
13696 From Joern Rennecke:
13697 * reload1.c (reloads_conflict): Reverse test comparing operand
13698 numbers when testing for conflict between output/outaddr reloads.
13699
13700 1999-11-29 David S. Miller <davem@redhat.com>
13701
13702 * config/sparc/sparc.c (init_cumulative_args): Fix type of third
13703 arg.
13704 * config/sparc/sparc-protos.h: Update proto, move into RTX_CODE.
13705
13706 1999-11-28 Robert Lipe <robertl@cygnus.com>
13707
13708 * i386/sco5.h (FINI_SECTION_ASM_OP_COFF): Move destructor fn
13709 table from .fini into .dtor.
13710
13711 1999-11-28 Anthony Green <green@cygnus.com>
13712
13713 * tree.h (struct tree_decl): Add malloc_flag.
13714 (DECL_IS_MALLOC): Define.
13715 * c-common.c (attrs): Add A_MALLOC attribute.
13716 (init_attributes): Add this attribute to the table.
13717 (decl_attributes): Handle malloc attribute.
13718 * calls.c (special_function_p): Check for the malloc attribute.
13719 * extend.texi (Function Attributes): Document malloc attribute.
13720
13721 Sun Nov 28 13:21:00 1999 Jeffrey A Law (law@cygnus.com)
13722
13723 * pa.md (reload shift-add patterns): Remove.
13724
13725 1999-11-28 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13726
13727 * reorg.c (dbr_schedule) Print more statistics. Corrected
13728 problem when printing info when 3 delay slots are filled.
13729
13730 1999-11-28 Jakub Jelinek <jakub@redhat.com>
13731
13732 * combine.c (setup_incoming_promotions): Pass an outgoing
13733 regno to FUNCTION_ARG_REGNO_P which it expects.
13734
13735 1999-11-28 Andreas Jaeger <aj@suse.de>
13736
13737 * mips/linux.h (CPP_PREDEFINES): Undefine before redefining.
13738
13739 Sun Nov 28 00:48:15 1999 Philippe De Muyter <phdm@macqel.be>
13740
13741 * cccp.c (do_include): Avoid initialization of automatic variable.
13742
13743 * integrate.c (mark_stores): Function definition made void, to match
13744 previous declaration.
13745 * regclass.c (dump_regclass): Ditto.
13746 * Makefile.in (WARN_CFLAGS): Macro augmented by `-Wtraditional'.
13747
13748 Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13749
13750 * expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
13751 known to be multiple of divisor.
13752
13753 * expr.c (store_constructor): Don't clobber TARGET if CLEARED.
13754
13755 * combine.c (try_combine): Add code to try to merge a set of a
13756 two-word pseudo to a constant with a setting of one of those words
13757 to a constant.
13758
13759 * fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
13760 (split_tree): Completely rework to make more general.
13761 (make_range, fold): Call negate_expr.
13762 (fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
13763 (fold, associate): Call new split_tree and associate_trees.
13764 (fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.
13765
13766 1999-11-26 Bernd Schmidt <bernds@cygnus.co.uk>
13767
13768 * loop.c (try_copy_prop): Avoid GNU C extension.
13769
13770 1999-11-25 Mark Mitchell <mark@codesourcery.com>
13771
13772 * except.c (init_eh_for_function): Still zero eh_return_context,
13773 eh_return_stack_adjust, and eh_return_handler.
13774
13775 * except.h (eh_status): Adjust documentation for x_protect_list.
13776 (begin_protect_partials): New function.
13777 * except.c (enqueue_eh_entry): Fix formatting.
13778 (get_first_handler): Add consistency check.
13779 (add_partial_entry): Adjust usage of protect_list.
13780 (emit_cleanup_handler): Save and restore ehqueue.
13781 (expand_start_all_catch): Add comment.
13782 (begin_protect_partials): New function.
13783 (end_protect_partials): Adjust usage of protect_list.
13784 (init_eh_for_function): Use xcalloc.
13785
13786 1999-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13787
13788 * c-common.c (check_format_info): Don't call a variadic function
13789 with a non-literal format string.
13790
13791 * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
13792
13793 * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
13794 pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
13795 Likewise.
13796
13797 * cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
13798 Likewise.
13799
13800 * collect2.c (collect_wait): Likewise.
13801
13802 * dbxout.c (dbxout_type): Likewise.
13803
13804 * gcc.c (do_spec_1): Likewise.
13805
13806 * genemit.c (gen_insn, gen_expand): Likewise.
13807
13808 * genrecog.c (write_switch, write_subroutine): Likewise.
13809
13810 * mips-tfile.c (catch_signal, botch): Likewise.
13811
13812 * print-rtl.c (print_rtx): Likewise.
13813
13814 * toplev.c (default_print_error_function, report_error_function,
13815 _fatal_insn): Likewise.
13816
13817 1999-11-25 Mark Mitchell <mark@codesourcery.com>
13818
13819 * tree.c (unsave_expr_now): Handle NULL_TREE as input.
13820
13821 Wed Nov 24 17:08:09 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13822
13823 * reg-stack.c (subst_stack_regs_pat): Swap operands in commutative
13824 operations when needed.
13825 * i386.md (fop_?f_comm): New.
13826 (fop_?f_1): Do not accept commutative operands.
13827
13828 1999-11-25 Andreas Jaeger <aj@suse.de>
13829
13830 * config/mips/mips.md (casesi_internal): Add missing brace.
13831
13832 1999-11-25 Jason Merrill <jason@casey.cygnus.com>
13833
13834 * dwarf2out.c (pend_type, output_pending_types_for_scope): Lose.
13835 (splice_child_die): Handle moving a child DIE from the declaration
13836 DIE of a class to its specification.
13837 (gen_struct_or_union_type_die): Use 'complete' consistently.
13838 (gen_decl_die): Generate the virtual context DIE first.
13839 Use decl_ultimate_origin instead of DECL_ABSTRACT_ORIGIN.
13840
13841 1999-11-24 Gavin Romig-Koch <gavin@cygnus.com>
13842
13843 * config/mips/mips.md (call_value_multiple_interanal1): New.
13844
13845 1999-11-24 Jason Merrill <jason@casey.cygnus.com>
13846
13847 * dwarf2out.c (free_AT, free_die): New fns.
13848 (remove_children): Call them.
13849 (output_line_info): Disable removal of duplicate notes.
13850
13851 Generate minimal debug info for types with TYPE_DECL_SUPPRESS_INFO set.
13852 * dwarf2out.c (gen_struct_or_union_type_die): TYPE_DECL_SUPPRESS_INFO
13853 means pretend the type isn't defined.
13854 Don't defer emitting types.
13855 (gen_type_die_for_member): New fn.
13856 (gen_decl_die): Call it.
13857 (splice_child_die): New fn.
13858 (gen_member_die): Call it rather than generate duplicate dies.
13859
13860 Defer emitting information for the abstract instance of an inline
13861 until we either inline it or emit an out-of-line copy.
13862 * dwarf2out.c (decl_ultimate_origin): Ignore DECL_ABSTRACT_ORIGIN
13863 from output_inline_function if DECL_ABSTRACT is also set.
13864 (block_ultimate_origin): Likewise.
13865 (gen_abstract_function): New fn.
13866 (gen_decl_die, gen_inlined_subroutine_die): Call it.
13867 (gen_subprogram_die): An abstract instance is not a declaration
13868 just because it doesn't match current_function_decl. Don't abort
13869 because DECL_DEFER_OUTPUT isn't set. Do abort if a declaration
13870 has an abstract origin.
13871 * toplev.c (rest_of_compilation): Don't emit dwarf2 info for the
13872 abstract instance here.
13873
13874 Wed Nov 24 18:39:18 1999 Andrew Haley <aph@cygnus.com>
13875
13876 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
13877 where we need to reload fpul from a system register.
13878
13879 1999-11-24 Andreas Jaeger <aj@suse.de>
13880
13881 * config/mips/linux.h (CPP_PREDEFINES): Added.
13882 (LINK_SPEC): Remove -Y since this is only needed on sparc.
13883
13884 1999-11-24 Andreas Jaeger <aj@suse.de>
13885
13886 * config/mips/linux.h (TARGET_VERSION): Added.
13887 (HANDLE_SYSV_PRAGMA): Added.
13888 (DEFAULT_VTABLE_THUNKS): Added.
13889
13890 Wed Nov 24 14:12:15 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13891
13892 * local-alloc.c (qty): New structure and static variable.
13893 (qty_phys_reg): Remove, all references changed to qty.
13894 (qty_n_refs): Likewise.
13895 (qty_min_class): Likewise.
13896 (qty_birth): Likewise.
13897 (qty_death): Likewise.
13898 (qty_size): Likewise.
13899 (qty_mode): Likewise.
13900 (qty_n_calls_crossed): Likewise.
13901 (qty_alternate_class): Likewise.
13902 (qty_changes_size): Likewise.
13903 (qty_first_reg): Likewise.
13904 (alloc_qty): Rename variable QTY to QTYNO.
13905 (finf_free_reg): Likewise.
13906 (local_alloc): Allocate qty, do not allocate the removed variables.
13907
13908 Wed Nov 24 17:26:05 1999 Geoffrey Keating <geoffk@cygnus.com>
13909
13910 * config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
13911 when -membedded-pic is passed.
13912
13913 * config/mips/mips.md (casesi): Handle 64-bit case too.
13914 (casesi_internal_di): New insn.
13915
13916 * config/mips/mips.c (embedded_pic_offset): Always make the
13917 embedded-pic subtractions relative to the name of the current
13918 function by use of the magic string "..CURRENT_FUNCTION".
13919 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.
13920
13921 1999-11-24 Geoffrey Keating <geoffk@cygnus.com>
13922
13923 * config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
13924 of (const_int 0), when what we really care about is
13925 whether it's a zero constant anyway.
13926 (div_trap_mips16): Likewise.
13927
13928 1999-11-23 Mark Mitchell <mark@codesourcery.com>
13929
13930 * loop.c (loop_optimize): Always find_loop_tree_blocks and
13931 unroll_block_trees when generating debuggable code.
13932
13933 * tree.h (unsave_expr_1): New function.
13934 (lang_unsave): New variable.
13935 (get_callee_fndecl): New function.
13936 * tree.c (unsave_expr_now_r): New function.
13937 (lang_unsave): Define.
13938 (unsave_expr_1): Likewise.
13939 (unsave_expr_now_r): Split out from unsave_expr_now.
13940 (unsave_expr_now): Call lang_unsave if it is non-NULL. Otherwise,
13941 call unsave_expr_now_r.
13942 (get_callee_fndecl): Define.
13943
13944 * Makefile.in (gencheck): Don't depend on lang_tree_files.
13945 (gencheck.o): Do depend on lang_tree_files.
13946
13947 * integrate.h (copy_decl_for_inlining): New declaration.
13948 * integrate.c (copy_and_set_decl_abstract_origin): Remove.
13949 (copy_decl_for_inlining): New function.
13950 (integrate_parm_decls): Use it.
13951 (integrate_decl_tree): Likewise.
13952
13953 1999-11-23 Gavin Romig-Koch <gavin@cygnus.com>
13954
13955 * config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
13956 the second two from the first.
13957 (CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
13958 * config/mips/mips.md (movcc,reload_incc,reload_outcc,
13959 conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
13960 ISA_HAS_FP4.
13961 * config/mips/mips.c (mips_move_1word,gen_conditional_branch,
13962 override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
13963 ISA_HAS_FP4.
13964
13965 Tue Nov 23 11:15:04 1999 Jeffrey A Law (law@cygnus.com)
13966
13967 * pa.md (call_internal_symref, call_value_internal_symref): No mode
13968 needed on the address operand.
13969 * pa.c (call_operand_address): Check for the correct mode.
13970
13971 1999-11-23 Bernd Schmidt <bernds@cygnus.co.uk>
13972
13973 * loop.c: Include "basic-block.h".
13974 (try_copy_prop, replace_loop_reg): New functions.
13975 (load_mems): Detect registers that just hold copies of the hoisted
13976 mem, and call try_copy_prop to eliminate them.
13977 * Makefile.in (loop.o): Update dependencies.
13978
13979 Tue Nov 23 01:03:29 1999 Hans-Peter Nilsson <hp@axis.com>
13980
13981 * Makefile.in (gencheck.o): Depend on gencheck.h.
13982 (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
13983 (insn-peep.o): Depend on except.h and function.h.
13984 (insn-attrtab.o): Depend on RECOG_H.
13985 (insn-output.o): Depend on toplev.h and flags.h.
13986 (gengenrtl.o): Depend on real.h.
13987 (gen-protos.o): Depend on cpplib.h and cpphash.h.
13988 Unify all dependencies to be on RECOG_H rather than recog.h.
13989
13990 Tue Nov 23 00:57:10 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13991
13992 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
13993 * configure.in: Try building a bi-arch 32/64-bit compiler on
13994 sparc-*-solaris2.7 and higher.
13995 * configure: Rebuild.
13996
13997 Mon Nov 22 23:09:44 1999 David O'Brien <obrien@FreeBSD.org>
13998
13999 * config/freebsd.h: New, FreeBSD architecture independent file.
14000 * config/i386/freebsd-elf.h: removed FreeBSD architecturally
14001 independent pieces.
14002 * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
14003 directly by i386/freebsd.h.
14004 * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
14005 independent configuration file.
14006 (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
14007 directly by i386/freebsd.h.
14008 * configure: Rebuilt.
14009
14010 * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
14011 which is in the user's namespace.
14012 * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
14013 `i386' which is not in our namespace.
14014
14015 Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
14016
14017 * invoke.texi (ARM Options): Add in -mno-alignment-traps
14018
14019 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
14020
14021 * dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
14022 (add_dwarf_attr, add_child_die): Just push onto the front.
14023 (reverse_die_lists): New fn.
14024 (add_sibling_attributes): Use it.
14025 (push_decl_scope): Reorganize.
14026 (add_name_and_src_coords_attributes): Don't set file and line for
14027 an artificial decl.
14028 (gen_subprogram_die): An artificial function doesn't need to match
14029 file and line.
14030 (gen_compile_unit_die): Return the generated die. Only add
14031 AT_comp_dir if the filename is relative.
14032 (remove_AT): Simplify loop. Also free string values.
14033 (output_die): A DIE ref can't be null.
14034 (output_value_format, value_format): Take a dw_attr_ref.
14035 (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
14036 (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
14037 AT_addr, AT_lbl): New fns.
14038 (various): Use them.
14039 (various): Constify.
14040
14041 Mon Nov 22 23:53:50 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14042
14043 * combine.c (combine_simplify_rtx): When handling a SUBREG,
14044 take SUBREG_WORD into account.
14045 (if_then_else_cond): Likewise.
14046
14047 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
14048
14049 * gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
14050 clause from BSD license, pursuant with
14051
14052 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
14053
14054 1999-11-22 Bernd Schmidt <bernds@cygnus.co.uk>
14055
14056 * loop.c (load_mems): Reformat slightly.
14057 * basic-block.h (regset_head): New typedef.
14058 (INIT_REG_SET): New macro.
14059
14060 1999-11-22 Bruce Korb <autogen@linuxbox.com
14061
14062 * fixinc/mkfisinc.sh(i?86-*-linux): disable script, run fixincl exe
14063 (mips-dec-bsd*): non-functional code
14064 (alpha*-*-linux-gnu*): redundant, duplicated by "*-*-linux-gnu*"
14065
14066 * fixinc/inclhack.def(AAB_fd_zero_glibc_*):
14067 added three replacement fixes
14068 (no_double_slash): removed comments that are not (any longer) pertinent
14069 (bad_lval): this fix currently runs against many files.
14070 The comment seems to indicate that we should select for files
14071 containing 'pragma extern_prefix'.
14072
14073 * fixinc/fixinc.x86-linux-gnu: deleted
14074 * fixinc/inclhack.sh: regen
14075 * fixinc/fixincl.x: regen
14076 * fixinc/fixincl.sh: regen
14077
14078 Fri Nov 12 14:08:40 1999 Andrew Haley <aph@cygnus.com>
14079
14080 * emit-rtl.c (gen_sequence): Only return the pattern of an insn if
14081 its code is INSN and it has no notes.
14082
14083 1999-11-22 Andrew Haley <aph@cygnus.com>
14084
14085 * varasm.c (function_defined): Remove.
14086 (make_function_rtl): Don't set function_defined.
14087 (make_decl_rtl): Remove global register warning.
14088 * regclass.c (no_global_reg_vars): New variable.
14089 (globalize_reg): Warn if function has already been defined.
14090 (regclass_init): Set no_global_reg_vars.
14091
14092 Mon Nov 22 14:42:22 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
14093
14094 * regclass.c (reg_pref): New structure and static variable
14095 (prefclass): Delete.
14096 (altclass): Delete.
14097 (all uses of prefclass and altclass): Use reg_pref instead.
14098
14099 1999-11-21 Nick Clifton <nickc@cygnus.com>
14100
14101 * invoke.texi (ARM Options): Replace -mshort-load-bytes with
14102 -malignment-traps.
14103 (arm.h): Replace -mshort-load-bytes with -malignment-traps.
14104 (arm.c): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
14105 (arm.md): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
14106
14107 Sun Nov 21 17:11:13 1999 Geoffrey Keating <geoffk@cygnus.com>
14108
14109 * varasm.c (output_constructor): Solve problem with long long
14110 bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).
14111
14112 Fri Nov 19 05:48:45 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
14113
14114 * global.c (allocno): New structure and static variable.
14115 (allocno_reg): Remove, all references replaced by allocno.
14116 (allocno_size): Likewise.
14117 (hard_reg_conflicts): Likewise.
14118 (hard_reg_preferences): Likewise.
14119 (hard_reg_copy_preferences): Likewise.
14120 (hard_reg_full_preferences): Likewise.
14121 (regs_someone_prefers): Likewise.
14122 (allocno_calls_crossed): Likewise.
14123 (allocno_n_refs): Likewise.
14124 (allocno_live_length): Likewise.
14125 (find_reg): Rename ALLOCNO to NUM.
14126
14127 * regclass.c (may_move_in_cost): Rename from may_move_cost, all
14128 references updated.
14129 (may_move_out_cost): New variable.
14130 (init_reg_sets_1): Initialize may_move_out_cost.
14131 (record_reg_classes): Use may_move_out_cost.
14132
14133 * regclass.c (dump_regclass): New function.
14134 (regclass): New parameter DUMP, call DUMP_REGCLASS.
14135 * toplev.c (rest_of_compilation): Open lreg dump file before regclass,
14136 pass rtl_dump_file to regclass.
14137 * rtl.h (regclass): Update prototype.
14138
14139 Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
14140
14141 * i386.md (neg, not and abs patterns): Revmap to use
14142 ix86_expand_unary_operator and ix86_unary_operator_ok.
14143 (add?f and sub?f expanders): Force operand 1 to register.
14144 * i386.c (ix86_expand_unary_operator): Rewrite.
14145 (ix86_unary_operator_ok): Ensure that memory operands
14146 match real opcode.
14147 (ix86_binary_operator_ok): Do not allow operand 1 to
14148 come into memory and operand 0 not.
14149 (ix86_expand_binary_operator): Ensure that
14150 src1 is not non-matching memory.
14151
14152 * i386.md (negs?2): Rewrite to expanders, new patterns and splitters
14153 to support integer registers and memory.
14154 (abss?2_integer): Likewise.
14155
14156 * i386.h (enum reg_class): Add FLOAT_INT_REGS.
14157 (REG_CLASS_NAMES): Likewise.
14158 (REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
14159 and GENERAL_REGS.
14160 * i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
14161 (movsf): Likewise; unify 4th and 5th alternative.
14162 (pushdf): Likewise.
14163 (movdf_1): Likewise; rename to movdf_integer.
14164 (pushxf): Likewise; rename to pushxf_integer; fix output template;
14165 remove redundant splitter.
14166 (movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
14167 (movdf_nointeger): New.
14168 (movxf_nointeger): New.
14169 (pushxf_nointeger): New.
14170
14171 * i386.md (extend?f?f): Split to expander and pattern, refuse two
14172 memory operands in patterns.
14173 (fop*): Refuse two memory operands.
14174
14175 * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
14176 on !TARGET_USE_CLTD CPUs.
14177
14178 Fri Nov 19 10:41:15 GMT 1999 Nathan Sidwell <nathan@acm.org>
14179
14180 * extend.texi: Document C++ restricted pointers and references.
14181
14182 1999-11-19 Bernd Schmidt <bernds@cygnus.co.uk>
14183
14184 * cse.c (addr_affects_sp): No longer conditional on AUTO_INC_DEC.
14185 (invalidate_skipped_set): Call it unconditionally.
14186 (cse_set_around_loop): Likewise.
14187
14188 Thu Nov 18 17:29:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
14189
14190 * rtl.texi (mem): Add documentation for alias-set argument
14191 to RTX `mem'.
14192
14193 Fri Nov 18 13:39:22 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
14194
14195 * i386.h (struct_processor_costs): New fields int_load, int_store,
14196 fp_move, fp_load and fp_store
14197 (REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
14198 fp->int moves
14199 (MEMORY_MOVE_COST): New macro.
14200 * i386.c (386_cost): Define new fields.
14201 (i486_cost): Likewise.
14202 (pentium_cost): Likewise.
14203 (pentiumpro_cost): Likewise.
14204 (k6_cost): Likewise.
14205
14206 Fri Nov 19 11:11:55 1999 Greg McGary <gkm@gnu.org>
14207 Geoffrey Keating <geoffk@cygnus.com>
14208
14209 * config/m68k/m68kelf.h: Suppress '/* within comment' warning.
14210
14211 * config/m68k/m68k.h (MASK_PCREL): Don't use same value as
14212 MASK_ALIGN_INT.
14213
14214 * config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
14215 (TARGET_STRICT_ALIGNMENT): New macro.
14216 (TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
14217 (STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
14218 * invoke.texi (M680x0 Options): Document -mstrict-align.
14219
14220 Thu Nov 18 11:10:03 1999 Jan Hubicka <hubicka@freesoft.cz>
14221 Richard Henderson <rth@cygnus.com>
14222
14223 * i386-protos.h (split_xf, ix86_split_movdi): Remove.
14224 (ix86_split_long_move): Declare.
14225 * i386.c (split_xf, ix86_split_movdi): Remove.
14226 (ix86_split_to_parts, ix86_split_long_move): New.
14227 * i386.md (dimode move splitters): Use ix86_split_long_move.
14228 (dfmode move splitters): Likewise.
14229 (xfmode move splitters): Likewise.
14230 (movsf_1): Allow F->r.
14231 (movdf_1, movxf_1): Allow F->ro.
14232
14233 1999-11-17 Mark Mitchell <mark@codesourcery.com>
14234
14235 * except.h (struct eh_entry): Add goto_entry_p.
14236 (eh_region_from_symbol): Remove prototype.
14237 * except.c (find_func_region_from_symbol): New function.
14238 (emit_cleanup_handler): Likewise.
14239 (eh_region_from_symbol): Make it static.
14240 (add_new_handler): Verify the argument.
14241 (find_func_region): Update comment.
14242 (expand_eh_region_end): Expand handlers here, rater than waiting
14243 until expand_leftover_cleanups or start_all_catch.
14244 (expand_leftover_cleanups): Don't expand here.
14245 (expand_start_all_catch): Or here.
14246 (expand_rethrow): Check the return value from find_func_region.
14247 * function.c (expand_function_end): Emit the catch_clauses.
14248
14249 1999-11-18 Gavin Romig-Koch <gavin@cygnus.com>
14250
14251 * integrate.c (expand_inline_function): Add necessary check for NULL.
14252
14253 1999-11-18 Nick Clifton <nickc@cygnus.com>
14254
14255 * toplev.c (main): Correctly detect an unrecognised option.
14256
14257 * cppinit.c (cpp_handle_option): Do not claim to have consumed
14258 a -f option if it has not been recognised.
14259
14260 Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
14261
14262 * basic-block.h (update_life_extent): Remove trailing comma on
14263 enumeration type list.
14264
14265 1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14266
14267 * varasm.c (output_constructor) Solved problem with long long
14268 bitfields. Corrected calculating this_time and shift. Also
14269 corrected calculating mask when BITS_PER_UNIT == 32 (c4x).
14270
14271 Wed Nov 17 23:46:14 1999 Jeffrey A Law (law@cygnus.com)
14272
14273 * flow.c (split_edge): Take looping structure into account when
14274 determining where to put the new block note.
14275
14276 Wed Nov 17 20:42:43 1999 Jeff Holcomb <jeffh@cygnus.com>
14277
14278 * Makefile.in (ggc-none.o): Provide host specific version if
14279 needed.
14280
14281 Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
14282
14283 * cse.c (delete_trivially_dead_insns): Identify no-op insns
14284 containing subregs too.
14285
14286 Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
14287
14288 * invoke.texi: Add documentation for -muninit-const-in-rodata.
14289 * config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
14290 (TARGET_UNINIT_CONST_IN_RODATA): Define.
14291 (text_section): Add switches -munint-const-in-rodata and
14292 -mno-uninit-const-in-rodata.
14293 (ASM_OUTPUT_COMMON): Remove.
14294 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
14295 const objects should be placed in read-only data. Otherwise declare
14296 them in common.
14297
14298 Wed Nov 17 16:38:32 1999 Richard Henderson <rth@cygnus.com>
14299
14300 * jump.c (jump_optimize_1): Revert last change.
14301
14302 Wed Nov 17 15:18:30 1999 Richard Henderson <rth@cygnus.com>
14303
14304 * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
14305 test if optimizing for size.
14306
14307 1999-11-17 Mark Mitchell <mark@codesourcery.com>
14308
14309 * Makefile.in (toplev.o): Depend on except.h.
14310 (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
14311
14312 Mon Nov 15 22:45:39 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
14313
14314 * i386.md (divmodsi4): Rewrite to expander.
14315 (*divmodsi4_nocltd): New.
14316 (*divmodsi4_cltd): New.
14317 (divmodsi4 splitter): Handle the case when input comes in edx.
14318 (udivmodhi4): Do not use constraints in exander.
14319 (ashrsi3_31): Conditionize by TARGET_USE_CLTD.
14320
14321 1999-11-17 Jason Merrill <jason@yorick.cygnus.com>
14322
14323 * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
14324 for the common case.
14325
14326 1999-11-16 Jakub Jelinek <jakub@redhat.com>
14327
14328 * explow.c (hard_function_value): Add outgoing argument.
14329 * expr.h (hard_function_value): Declare it.
14330 * calls.c (expand_call, emit_library_call_value): Update callers.
14331 * function.c (aggregate_value_p): Ditto.
14332 (diddle_return_value): Must look at the outgoing registers
14333 on archs with register windows.
14334
14335 Mon Nov 15 20:46:45 1999 Richard Henderson <rth@cygnus.com>
14336
14337 * alpha.c (alpha_build_va_list): Use make_lang_type and
14338 initialize TYPE_NAME for the va_list record.
14339
14340 * flow.c (calculate_global_regs_live): Zero bb->aux to begin.
14341
14342 * ggc-common.c (ggc_print_statistics): Cast size_t to unsigned long
14343 for printing.
14344 * ggc.h (struct ggc_statistics): Rearrange elements for better
14345 packing on 64-bit hosts.
14346 * lcm.c (compute_laterin): Store a size_t not an int in bb->aux.
14347 (compute_nearerout): Likewise.
14348
14349 Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
14350
14351 * config/rs6000/rs6000.c (first_reg_to_save): Save
14352 PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
14353
14354 1999-11-15 Jason Merrill <jason@casey.cygnus.com>
14355
14356 * dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
14357 notion of nesting to find the DIE for a type or function.
14358 DIEs can go in limbo even if we got a context_die.
14359 (push_decl_scope): Our context doesn't need to be in decl_scope_table.
14360 (gen_struct_or_union_type_die): Don't use TREE_PERMANENT to test
14361 for local type.
14362 (gen_decl_die): Ignore NAMESPACE_DECLs for now.
14363 (gen_type_die): Writing out the context doesn't cause member class
14364 template instantiations to be written out as well.
14365
14366 Mon Nov 15 15:33:18 1999 Richard Henderson <rth@cygnus.com>
14367
14368 * rs6000.h (ASM_OUTPUT_DEF): New.
14369 Based on proposed addition from David Edelsohn.
14370
14371 1999-11-15 Robert Lipe <RobertLipe@usa.net>
14372 Bruce Korb <autogen@linuxbox.com>
14373
14374 * fixinc/inclhack.def
14375 (AAB_svr4_replace_byteorder): added. Takes advantage of GCC features
14376 (unixware7_byteorder_fix): added. Removes conflicts for new defs
14377 in net/inet.h.
14378 (svr5_mach_defines): added. Like svr4_mach_defines, with new syntax
14379 (svr4_endian): enabled with SVR5
14380 (svr4_mkdev): simplified syntax and enabled with SVR5
14381
14382 Sun Nov 14 18:49:37 1999 David O'Brien <obrien@FreeBSD.org>
14383
14384 * configure.in: Handle libgcc2 threads support on FreeBSD platforms.
14385 * configure: Rebuilt.
14386 * config/t-freebsd-thread: New file.
14387
14388 Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
14389
14390 * i386.c (ix86_decompose_address): Verify the base is a REG
14391 before trying to examine its register number.
14392
14393 * basic-block.h: Remove all #defines and prototypes related to
14394 integer lists.
14395 (free_bb_mem, compute_preds_succs): Remove prototype.
14396 * rtl.h (free_bb_mem): Remove prototype.
14397 * flow.c (alloc_int_list_node); Remove function.
14398 (add_inst_list_node, free_int_list, add_pred_succ): Likewise.
14399 (compute_preds_succs, free_bb_mem): Likewise.
14400 * gcse.c (gcse_main): Do not call free_bb_mem anymore.
14401 * toplev.c (rest_of_compilation): Likewise.
14402 * haifa-sched.c (build_control_flow): Use flow generated edge
14403 list to build the haifa specific edge list.
14404 (find_rgns): Use new CFG data structures instead of pred/succ lists.
14405 (schedule_insns): Do not build pred/succ lists anymore. Instead
14406 build the edge table.
14407
14408 * basic-block.h (dump_bb_data): Remove declaration.
14409 * flow.c (dump_bb_data): Remove function.
14410 * sbitmap.c (sbitmap_intersect_of_predsucc): Delete function.
14411 (sbitmap_union_of_predsucc): Likewise.
14412
14413 * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
14414 argument. All callers changed.
14415 (delete_null_pointer_checks_1): No longer need to compute the
14416 pred/succ lists.
14417
14418 * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
14419 All callers changed.
14420 (pre_expr_reaches_here_p_work): Likewise.
14421 (pre_edge_insert): No longer call pre_expr_reaches_here_p.
14422 * lcm.c (compute_laterin): Fix initialization of LATER.
14423 (compute_nearerout): Similarly for NEARER.
14424
14425 Sun Nov 14 12:41:57 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14426
14427 * cse.c (set_nonvarying_address_components): Delete unused function.
14428 (refers_to_p): Likewise.
14429
14430 Fri Nov 12 20:53:22 1999 Jeffrey A Law (law@cygnus.com)
14431
14432 * function.c (diddle_return_value): Set REG_FUNCTION_VALUE_P as
14433 needed.
14434
14435 Sat Nov 13 16:20:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14436
14437 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Wrap macro
14438 definition in do while (0).
14439
14440 Fri Nov 12 16:26:25 1999 Jim Wilson <wilson@cygnus.com>
14441
14442 * stmt.c (pushcase, pushcase_range): Partially revert Oct 28 change.
14443
14444 Fri Nov 12 12:43:49 1999 Richard Henderson <rth@cygnus.com>
14445
14446 * unroll.c (unroll_loop): Make temp an unsigned HOST_WIDE_INT.
14447
14448 Fri Nov 12 15:14:19 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
14449
14450 * i960.h (CAN_DEBUG_WITHOUT_FP): Don't define it.
14451 (FRAME_POINTER_REQUIRED): Don't worry about nonlocal goto.
14452 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14453 (INITIAL_FRAME_POINTER_OFFSET): Remove it.
14454
14455 * i960.c (i960_function_prologue): Don't allocate space for g8-g11
14456 saved on the stack. Output more accurate stack frame statistics
14457 into assembler file.
14458
14459 1999-11-12 11:47 -0800 Zack Weinberg <zack@bitmover.com>
14460
14461 * genextract.c (record_insn_name): New function.
14462 (get_insn_name): No longer a stub.
14463 (main): Call record_insn_name for each insn. After each label
14464 written, print the insn name in a comment.
14465
14466 Fri Nov 12 13:45:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14467
14468 * output.h (const_section, init_section, fini_section): Add
14469 prototypes.
14470
14471 * alpha/elf.h (const_section): Delete declaration.
14472
14473 * svr4.h (const_section): Likewise.
14474
14475 Fri Nov 12 08:54:22 1999 Mark Mitchell <mark@codesourcery.com>
14476
14477 * tree.h (SAVE_EXPR_PERSISTENT_P): New macro.
14478 * tree.c (array_type_nelts): Don't handle SAVE_EXPRs specially.
14479 (unsave_expr_now): Don't unsave SAVE_EXPR_PERSISTENT_P
14480 expressions.
14481 * stor-layout.c (variable_size): Set SAVE_EXPR_PERSISTENT_P on
14482 variable-sized array bounds.
14483
14484 Fri Nov 12 08:04:45 1999 Catherine Moore <clm@cygnus.com>
14485
14486 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Use
14487 ASM_OUTPUT_LABEL.
14488
14489 Fri Nov 12 13:31:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14490
14491 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
14492 addresses the same way GO_IF_LEGITIMATE_INDEX does.
14493
14494 Fri Nov 12 12:36:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14495
14496 * cse.c (hash_arg_in_struct): Delete.
14497 (struct table_elt): Delete elt in_struct.
14498 (struct set): Delete elt src_in_struct.
14499 (merge_equiv_classes): Don't set either hash_arg_in_struct or
14500 the corresponding in_struct elts.
14501 (canon_hash): Likewise.
14502 (safe_hash): Likewise.
14503 (find_best_addr): Likewise.
14504 (record_jump_cond): Likewise.
14505 (cse_insn): Likewise.
14506
14507 Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
14508
14509 * loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.
14510
14511 * dbxout.c (dbxout_type, case INTEGER_TYPE): Handle too large
14512 unsigned types.
14513
14514 Thu Nov 11 18:54:24 1999 Jeffrey A Law (law@cygnus.com)
14515
14516 * function.c (diddle_return_value): Put back check that the DECL_RTL
14517 for the function is a register.
14518
14519 * function.c (diddle_return_value): Use hard_function_value to
14520 get an rtx suitable for use in the USE/CLOBBER insn.
14521
14522 * global.c (global_conflicts): Update comments.
14523 (record_conflicts): No need to record conflicts between pseudos here.
14524
14525 1999-11-11 Bruce Korb <autogen@linuxbox.com>
14526
14527 * fixinc/fixincl.c: Added verbose levels for status messages
14528
14529 Thu Nov 11 13:23:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14530
14531 * jump.c (jump_optimize_1): Avoid passing an rtx that is not an
14532 operand as argument to expand_and or expand_binop.
14533
14534 Thu Nov 11 02:21:16 1999 Rodney Brown <RodneyBrown@pmsc.com>
14535
14536 * xcoffout.c (xcoffout_source_file): Change ggc_add_root to
14537 gcc_add_string_root.
14538
14539 Wed Nov 10 21:24:19 1999 Jason Eckhardt <jle@cygnus.com>
14540
14541 * config/pa/pa.h (MASK_RETURN_ADDR): Change 0xfffffffc to -4.
14542
14543 Wed Nov 10 15:56:16 1999 Jeffrey A Law (law@cygnus.com)
14544
14545 * flow.c (compute_flow_dominators): Initially put all blocks on
14546 the worklist.
14547 * lcm.c (compute_antinout_edge, compute_available): Similarly.
14548 * gcse.c (compute_cprop_avinout): Remove.
14549 (compute_cprop_data): Use compute_available.
14550 (delete_null_pointer_checks_1): Use compute_available.
14551
14552 * basic-block.h (compute_available): Returns a void now.
14553 * gcse.c (one_classic_gcse_pass): Do not expect compute_available
14554 to return a value anymore.
14555 * lcm.c (compute_available, compute_antinout_edge): Revamp to use
14556 worklists. Fix boundary cases. Compute maximal solutions.
14557 (compute_laterin, compute_nearerout): Similarly.
14558
14559 * dwarf2out.c (add_AT_location_description): Allow
14560 (mem (plus (pseudo) (...)) too.
14561
14562 Wed Nov 10 10:52:42 1999 Tom Tromey <tromey@cygnus.com>
14563
14564 * gcc.c (do_spec_1): Support text between `%u' and `%O'.
14565
14566 Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
14567 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14568
14569 * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'.
14570
14571 * gansidecl.h: Likewise.
14572
14573 * rtl.c: Likewise.
14574
14575 * rtl.h: Likewise.
14576
14577 * toplev.h: Likewise.
14578
14579 * tree.c: Likewise.
14580
14581 * tree.h: Likewise.
14582
14583 * varray.c: Likewise.
14584
14585 * varray.h: Likewise.
14586
14587 Wed Nov 10 10:57:22 1999 Clinton Popetz <cpopetz@cygnus.com>
14588
14589 * gcov.c (struct arcdata): Add hits and total, remove prob.
14590 (output_branch_counts): New.
14591 (process_args): Set output_branch_counts if -c.
14592 (calculate_branch_probs): Store hits and total instead of
14593 percentage.
14594 (output_data): Emit counts if output_branch_counts is true.
14595 * gcov.texi (Invoking Gcov): Document -c switch..
14596
14597 Wed Nov 10 01:10:41 1999 Philippe De Muyter <phdm@macqel.be>
14598
14599 * genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
14600 `INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
14601
14602 Wed Nov 10 00:51:41 1999 Hans-Peter Nilsson <hp@axis.se>
14603
14604 * invoke.texi (C Dialect Options): Add missing builtins from
14605 c-common.c to list.
14606 * extend.texi (Other Builtins): Copy to this list.
14607
14608 Wed Nov 10 04:58:09 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14609
14610 * Makefile.in (recog.o): Use BASIC_BLOCK_H macro.
14611 (print-rtl.o, $(HOST_PREFIX_1)print-rtl.o): Likewise. Remove
14612 redundant bitmap.h.
14613
14614 Wed Nov 10 00:02:53 1999 Jeffrey A Law (law@cygnus.com)
14615
14616 * flow.c (compute_flow_dominators): No longer treat basic block 0
14617 or (n_basic_blocks - 1) specially. Clear the AUX field before
14618 starting computation of doms/pdoms. Fix initial state for pdoms.
14619
14620 Wed Nov 10 03:58:08 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14621
14622 * Makefile.in ($(HOST_PREFIX_1)rtl.o): Update dependencies to
14623 match rtl.o's: added ggc.h and toplev.h
14624 ($(HOST_PREFIX_1)print-rtl.o): Likewise: added system.h.
14625 ($(HOST_PREFIX_1)rtlanal.o): Likewise: added system.h.
14626 ($(HOST_PREFIX_1)obstack.o): Likewise: added $(CONFIG_H).
14627
14628 Tue Nov 9 10:30:08 1999 Tom Tromey <tromey@cygnus.com>
14629
14630 * config/i386/xm-djgpp.h (HAVE_DOS_BASED_FILE_SYSTEM): Renamed
14631 from HAVE_DOS_BASED_FILESYSTEM.
14632 * gcc.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM, not
14633 HAVE_DOS_BASED_FILESYSTEM.
14634 (main): Likewise.
14635 (split_directories): Only special-case DOS file names if
14636 HAVE_DOS_BASED_FILE_SYSTEM is defined. Use IS_DIR_SEPARATOR
14637 instead of explicit tests. Conditionalize on !VMS.
14638 (make_relative_prefix): Use IS_DIR_SEPARATOR instead of explicit
14639 tests. Conditionalize on !VMS.
14640 (process_command): Only use make_relative_prefix if !VMS.
14641 (free_split_directories): Conditionalize on !VMS.
14642 (DIR_UP): Conditionalize on !VMS.
14643
14644 Wed Jun 9 16:57:11 1999 Mumit Khan <khan@xraylith.wisc.edu>
14645
14646 * gcc.c (STANDARD_BINDIR_PREFIX): Provide default.
14647
14648 Fri Feb 5 14:22:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
14649
14650 * gcc.c (make_relative_prefix): Handle the HAVE_EXECUTABLE_SUFFIX
14651 case.
14652
14653 Mon Nov 8 14:16:57 1999 Michael Meissner <meissner@cygnus.com>
14654
14655 * invoke.texi (Environment Variables): Document relative path
14656 lookup.
14657 * gcc.c (DIR_UP): If not defined, define as "..".
14658 (standard_bindir_prefix): New static, holds target location to
14659 install binaries.
14660 (split_directories): New function to split a filename into
14661 component directories.
14662 (free_split_directories): New function, release memory allocated
14663 by split_directories.
14664 (make_relative_prefix): New function, make a relative pathname if
14665 the compiler is not in the expected location.
14666 (process_command): If GCC_EXEC_PREFIX was not specified, see if we
14667 can figure out an appropriate prefix from argv[0].
14668 * Makefile.in (DRIVER_DEFINES): Use unlibsubdir in definition of
14669 STANDARD_STARTFILE_PREFIX and TOOLDIR_BASE_PREFIX. Define
14670 STANDARD_BINDIR_PREFIX.
14671
14672 Wed Nov 10 11:47:54 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14673
14674 * config/c4x/c4x-protos.h: New file. Prototypes for functions defined
14675 in c4x.c.
14676 * config/c4x/c4x.h: Moved prototypes to c4x.h.
14677 * config/c4x/c4x.c (c4x_preferred_reload_class, c4x_limit_reload_class,
14678 c4x_secondary_memory_needed) Delete.
14679 (fp_zero_operand): Add mode argument.
14680
14681 Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
14682
14683 * reload1.c (reload_reg_free_for_value_p): Don't use a register
14684 that is in reload_reg_used.
14685
14686 Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
14687
14688 * config/arm/arm-protos.h: New file: Prototypes for functions
14689 defined in arm.c and pe.c.
14690 * config/arm/arm.h: Fix compile time warnings.
14691 * config/arm/arm.c: Fix compile time warnings.
14692 * config/arm/pe.h: Fix compile time warnings.
14693 * config/arm/aout.h: Fix compile time warnings.
14694
14695 Tue Nov 9 14:55:44 1999 Nick Clifton <nickc@cygnus.com>
14696
14697 * config/m32r/m32r-protos.h: New file: Prototypes for functions
14698 defined in m32r.c
14699
14700 * config/m32r/m32r.h: Move prototypes to m32r-protos.h
14701 Add support for subtargets.
14702 Add prototypes for new predicates.
14703 Add scheduling macros.
14704
14705 * config/m32r/m32r.c: Fix compile time warnings.
14706 (int8_operand): New predicate function.
14707 (reg_or_cmp_int16_operand): New predicate function.
14708 (extend_operand): New predicate function.
14709 (m32r_adjust_code): New scheduling function.
14710 (m32r_adjust_priorty): New scheduling function.
14711 (m32r_sched_init): New scheduling function.
14712 (m32r_sched_reorder): New scheduling function.
14713 (m32r_sched_variable_issue): New scheduling function.
14714 (direct_return): New codegen function.
14715 (m32r_not_same_reg): New rtl testsing function.
14716
14717 * config/m32r/m32r.md: Fix compile time warnings.
14718 Add support for pre decrement and post increment memory
14719 references.
14720 Add S<cc> patterns.
14721 Add fabs patterns.
14722
14723 Mon Nov 8 22:20:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14724
14725 * global.c (EXECUTE_IF_CONFLICT): Don't define.
14726 (prune_preferences): Use EXECUTE_IF_SET_IN_ALLOCNO_SET instead.
14727 (find_reg): Likewise.
14728
14729 Mon Nov 8 13:16:46 1999 Jason Eckhardt <jle@cygnus.com>
14730
14731 * config/pa/pa.md (fmpynfadd,{sgl,dbl} insns): Use %fr0 rather than 0
14732 to avoid assembler errors.
14733
14734 Mon Nov 8 15:38:41 1999 Nick Clifton <nickc@cygnus.com>
14735
14736 * config/v850/v850-protos.h: New file: Prototypes for functions
14737 defined in v850.c
14738 * config/v850/v850.h: Move prototypes to v850-protos.h
14739 * config/v850/v850.c: Move prototypes to v850-protos.h
14740 * config/v850/v850.md: Fix compile time warnings.
14741
14742 * config/fr30/fr30-protos.h: New file: Prototypes for functions
14743 defined in fr30.c
14744 * config/fr30/fr30.h: Move prototypes to fr30-protos.h
14745 * config/fr30/fr30.c: Fix compile time warnings.
14746 * config/fr30/fr30.md: Fix compile time warnings.
14747
14748 Mon Nov 8 07:25:37 1999 Mark Mitchell <mark@codesourcery.com>
14749
14750 * tree.h (get_containing_scope): Declare it.
14751 * tree.c (get_containing_scope): New fucntion.
14752 (decl_function_context): Use it.
14753 * toplev.c (rest_of_compilation): Use get_containing_scope.
14754
14755 aMon Nov 8 03:03:07 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14756
14757 * Makefile.in (rtl.o): Depend on toplev.h.
14758
14759 Sun Nov 7 20:55:14 1999 Mark Mitchell <mark@codesourcery.com>
14760
14761 * cse.c (delete_trivially_dead_insns): Replace alloca with
14762 xmalloc/xcalloc.
14763 * except.c (update_rethrow_references): Likewise.
14764 (init_eh_nesting_info): Likewise.
14765 * function.c (identify_blocks): Likewise.
14766 * gcse.c (dump_hash_table): Likewise.
14767 * graph.c (print_rtl_graph_with_bb): Likewise.
14768 * loop.c (combine_movables): Likewise.
14769 (move_movables): Likewise.
14770 (count_loop_regs_set): Likewise.
14771 (strength_reduce): Likewise.
14772 * profile.c (compute_branch_probabilities): New function, split
14773 out from ...
14774 (branch_prob): Here. Replace alloca with xmalloc/xcalloc.
14775 * regclass.c (regclass): Likewise.
14776 * regmove.c (regmove_optimize): Likewise.
14777 * toplev.c (compile_file): Likewise.
14778 (main): Don't mess with the stack rlimit.
14779
14780 Sun Nov 7 19:41:17 1999 Catherine Moore <clm@cygnus.com>
14781
14782 * config/elfos.h (ASM_DECLARE_FUNCTION_NAME): Conditionally define.
14783 (ASM_DECLARE_FUNCTION_SIZE): Conditionally define.
14784
14785 Sun Nov 7 10:23:28 1999 Mark P. Mitchell <mark@codesourcery.com>
14786
14787 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns.
14788
14789 Sun Nov 7 02:58:48 1999 Jeffrey A Law (law@cygnus.com)
14790
14791 * global.c (EXECUTE_IF_CONFLICT): Undo Robert's change.
14792 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Put curleys around CODE in
14793 macro expansion.
14794
14795 Sat Nov 6 23:48:30 1999 Robert Lipe (robertlipe@usa.net)
14796
14797 * global.c (EXECUTE_IF_CONFLICT): Correct quoting typo.
14798
14799 Sat Nov 6 17:34:39 1999 Jeffrey A Law (law@cygnus.com)
14800
14801 * gcse.c (post_dominators): Kill.
14802 (alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators.
14803 (compute_code_hoist_data): Use compute_flow_dominators. Do not
14804 pass in a pdom array since we do not need pdoms.
14805 * haifa-sched.c (schedule_insns): Similarly.
14806 * flow.c (compute_dominators): Remove dead function.
14807 (compute_flow_dominators): Do not compute doms or pdoms if the
14808 caller does not request them. Split up loop to build doms and
14809 pdoms. Use a worklist to compute doms and pdoms.
14810 * basic-block.h (compute_dominators): Remove prototype.
14811
14812 Sat Nov 6 11:38:39 1999 Richard Henderson <rth@cygnus.com>
14813
14814 * haifa-sched.c (struct haifa_insn_data, h_i_d): New.
14815 (insn_luid, insn_priority, insn_costs, insn_units): Remove.
14816 (insn_reg_weight, insn_depend, insn_dep_count): Remove.
14817 (insn_blockage, insn_ref_count, line_note, insn_tick): Remove.
14818 (cant_move, fed_by_spec_load, is_load_insn): Remove.
14819 (schedule_region): Remove unused variable.
14820 (schedule_insns): Allocate h_i_d, and not all the separate arrays.
14821
14822 Sat Nov 6 10:00:34 1999 Mark Mitchell <mark@codesourcery.com>
14823
14824 * local-alloc.c (local_alloc): Use xmalloc/xcalloc, not alloca.
14825 (update_equiv_regs): Likewise.
14826 (block_alloc): Likewise.
14827 * reg-stack.c (reg_to_stack): Likewise.
14828 (convert_regs_2): Likewise.
14829 * reload1.c (reload_as_needed): Likewise.
14830
14831 Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
14832
14833 * Makefile.in (dbxout.o): Depend on ggc.h.
14834 (dwarf2out.o): Likewise.
14835 (xcoffout.o): Likewise.
14836 * dbxout.c: Include ggc.h.
14837 (dbxout_init): Register lastfile as a root.
14838 * dwarf2out.c: Include ggc.h.
14839 (dwarf2out_line): Register lastfile as a root.
14840 * xcoffout.c: Include ggc.h.
14841 (xcoffout_source_line): Register xcoff_lastfile as a root.
14842
14843 Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
14844
14845 * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
14846
14847 Sat Nov 6 07:48:59 1999 Catherine Moore <clm@cygnus.com>
14848
14849 * config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
14850 defined.
14851 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
14852
14853 Fri Nov 5 18:33:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14854
14855 * global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
14856 (EXECUTE_IF_CONFLICT): Likewise.
14857 (ALLOCNO_LIVE_P): Avoid signed division.
14858 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
14859 (prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
14860 (record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.
14861
14862 Fri Nov 5 12:04:02 1999 Richard Henderson <rth@cygnus.com>
14863
14864 * haifa-sched.c (schedule_block): Don't crash if there's no
14865 next insn for an interblock movement.
14866 (add_branch_dependences): Don't allow clobber insns to move either.
14867
14868 Fri Nov 5 10:18:11 1999 Richard Henderson <rth@cygnus.com>
14869
14870 * i386.c (split_xf): New.
14871 * i386-protos.h: Declare it.
14872 * i386.md (movxf_1): Add general regs alternatives.
14873 (movxf_1+1): New splitter for same.
14874
14875 Fri Nov 5 12:05:52 1999 Nick Clifton <nickc@cygnus.com>
14876
14877 * function.c (purge_addressof_1): Add missing return values.
14878
14879 Fri Nov 5 10:07:25 1999 Nick Clifton <nickc@cygnus.com>
14880
14881 * function.c (is_addressof): New function. Returns true if
14882 the given piece of RTL is an ADDRESSOF.
14883 (purge_addressof_1): Make boolean. Return false if the
14884 ADDRESSOFs could not be purged.
14885 (purge_addressof): If ADDRESSOFs could not be purged from the
14886 notes attached to an insn, remove the offending note(s),
14887 unless they are attached to a libcall.
14888
14889 1999-11-05 Andreas Jaeger <aj@suse.de>
14890
14891 * genoutput.c (null_operand =): Initialize all fields.
14892
14893 * errors.h: Add extern to prototypes.
14894
14895 Fri Nov 5 01:44:09 1999 Jeffrey A Law (law@cygnus.com)
14896
14897 * configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
14898 * configure: Rebuilt.
14899
14900 Fri Nov 5 01:24:37 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14901
14902 * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
14903 (mirror_conflicts): New function.
14904 (global_alloc): Call it.
14905 (expand_preferences): Remove redundant CONFLICTP test.
14906 (find_reg, dump_conflicts): Likewise.
14907 (prune_preferences): Process conflicts one word at a time.
14908
14909 Fri Nov 5 01:05:21 1999 Richard Henderson <rth@cygnus.com>
14910
14911 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
14912 instead of an explicit loop.
14913
14914 Thu Nov 4 23:07:14 1999 Jim Wilson <wilson@cygnus.com>
14915
14916 * cse.c (cse_insn): Revert Oct 31 change. When computing src_elt,
14917 if REG_RETVAL check succeeds, then put classp in src_elt.
14918
14919 Thu Nov 4 23:48:14 1999 Jeffrey A Law (law@cygnus.com)
14920
14921 * function.c (pad_to_arg_alignment): Only update argument_pad
14922 if the argument's alignment is greater than STACK_BOUNDARY.
14923
14924 Thu Nov 4 16:44:53 1999 Richard Henderson <rth@cygnus.com>
14925
14926 * bitmap.h (BITMAP_XFREE): New.
14927 * flow.c (life_analysis): Use it.
14928 (life_analysis_1): Free blocks.
14929
14930 * combine.c (undo_commit): New.
14931 (try_combine): Use it. Don't zap undobuf.undos.
14932 (combine_instructions): Don't zap undobuf.undos; free the
14933 undobuf.frees list.
14934
14935 * local-alloc.c (local_alloc): Free qty_phys_num_sugg.
14936
14937 * stmt.c (cost_table_): New.
14938 (estimate_case_costs): Use it instead of xmalloc.
14939
14940 * toplev.c (compile_file): Reuse dumpname memory instead
14941 of strdup'ing it.
14942
14943 Thu Nov 4 16:36:44 1999 Richard Henderson <rth@cygnus.com>
14944
14945 * reg-stack.c (convert_regs_1): Initialize target_stack->top
14946 after verifying an EH edge.
14947
14948 * haifa-sched.c (init_rgn_data_dependences): Correctly
14949 size bb_pending_lists_length when zeroing.
14950
14951 Thu Nov 4 16:36:36 1999 Richard Henderson <rth@cygnus.com>
14952
14953 * function.c (diddle_return_value): New.
14954 (expand_function_end): Use it.
14955 * stmt.c (expand_null_return): Likewise.
14956 (expand_value_return): Likewise.
14957
14958 * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.
14959
14960 * reload1.c (reload): Don't remove return value clobbers.
14961
14962 Thu Nov 4 13:33:46 1999 Richard Henderson <rth@cygnus.com>
14963
14964 * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
14965
14966 Thu Nov 4 12:49:52 1999 Richard Henderson <rth@cygnus.com>
14967
14968 * cse.c (cse_main): Use xmalloc, not alloca.
14969 (cse_basic_block): Likewise.
14970 * local-alloc.c (local_alloc): Likewise.
14971
14972 Thu Nov 4 14:22:12 1999 David Billinghurst <David.Billinghurst@riotinto.com.au>
14973 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14974
14975 * rtl.c: Include toplev.h.
14976 (fatal): Remove declaration.
14977
14978 Thu Nov 4 06:39:47 1999 Jeffrey A Law (law@cygnus.com)
14979
14980 * haifa-sched.c (schedule_block): Fix thinko.
14981
14982 1999-11-03 James McKelvey <mckelvey@fafnir.com>
14983
14984 * fixinc/fixincl.c(create_file): Allow for systems that do not have
14985 S_IR* defined values
14986
14987 1999-11-03 Philippe De Muyter <phdm@macqel.be>
14988
14989 * fixlib.c (load_file_data): Do not call `realloc' with a NULL pointer;
14990 call `malloc' instead.
14991
14992 Wed Nov 3 23:05:14 1999 Mark Mitchell <mark@codesourcery.com>
14993
14994 * flags.h (flag_renumber_insns): Declare.
14995 * emit-rtl.c (renumber_insns): Check flag_renumber_insns. Print
14996 renumbering table.
14997 * rtl.h (renumber_insns): Change prototype.
14998 * toplev.c (flag_renumber_insns): Define.
14999 (rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.
15000
15001 Wed Nov 3 15:11:27 1999 David S. Miller <davem@redhat.com>
15002
15003 * config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
15004 and fpsqrtd. Use them and create fdiv function unit to more
15005 accurately represent fpu sqrt pipeline semantics on UltraSparc.
15006 * config/sparc/sparc.c: Account for fpsqrt{s,d} changes.
15007
15008 Wed Nov 3 15:11:27 1999 Matteo Frigo <athena@fftw.org>
15009
15010 * config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
15011 3 on UltraSparc.
15012 * config/sparc/sparc.c (ultra_schedule_insn): Insert launched
15013 insn into ready list, do not use just a raw swap.
15014
15015 Wed Nov 3 14:51:59 1999 Mark P. Mitchell <mark@codesourcery.com>
15016
15017 * rtl.h (renumber_insns): New function.
15018 (remove_unnecessary_notes): Likewise.
15019 * emit-rtl.c (renumber_insns): Define.
15020 (remove_unncessary_notes): Likewise.
15021 * toplev.c (rest_of_compilation): Remove dead code.
15022 Use renumber_insns and remove_unncessary_notes.
15023
15024 * gcse.c (struct null_pointer_info): New type.
15025 (get_bitmap_width): New function.
15026 (current_block): Remove.
15027 (nonnull_local): Likewise.
15028 (nonnull_killed): Likewise.
15029 (invalidate_nonnull_info): Take a null_pointer_info as input.
15030 (delete_null_pointer_checks_1): New function.
15031 (delete_null_pointer_checks): Use it.
15032
15033 * haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
15034 (split_edges): Likewise.
15035 (schedule_block): Likewise.
15036 (compute_block_backward_dependencies): Likewise.
15037 (schedule_region): Likewise.
15038 (schedule_insns): Likewise.
15039
15040 Wed Nov 3 15:40:23 1999 Catherine Moore <clm@cygnus.com>
15041
15042 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
15043 * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
15044 * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
15045 * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
15046 * jump.c (delete_unreferenced_labels): Don't delete if
15047 LABEL_ALTERNATE_NAME is set.
15048 * print-rtl.c (print_rtx): Dump alternate name.
15049 * rtl.def (CODE_LABEL): Change format to "iuuis00s".
15050 * rtl.h (LABEL_ALTERNATE_NAME): Define.
15051 * rtl.texi (LABEL_ALTERNATE_NAME): Document.
15052 * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.
15053
15054 Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15055
15056 * fix-header.c (recognized_extern, recognized_function): Constify
15057 a char*.
15058
15059 * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
15060 (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
15061 (compute_available): Remove unused variable `last'.
15062 (compute_nearerout): Remove unused variable `temp_bitmap'.
15063 (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
15064 Remove unused variable `x'.
15065
15066 * scan.h (recognized_function, recognized_extern): Constify a
15067 char*.
15068
15069 * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
15070
15071 Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15072
15073 * varasm.c (decode_rtx_const): Use XSTR to access the string
15074 of a SYMBOL_REF.
15075
15076 Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
15077
15078 * c-decl.c (duplicate_decls): Copy DECL_MODE too.
15079
15080 Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15081
15082 * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
15083
15084 Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
15085
15086 * pa.c (ireg_operand): New function.
15087 * pa.h (PREDICATE_CODES): Handle ireg_operand.
15088 * pa.md (parallel_addb, parallel_movb): Use ireg_operand.
15089 Fix out of date comment.
15090
15091 * pa.md (negdi2): Turn into expander + anonymous pattern.
15092
15093 * reload.c (find_reloads): Fix typos in recent change.
15094
15095 * dwarf2out.c: Do not include ctype.h.
15096
15097 Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15098
15099 * regclass.c (record_reg_classes): Always use may_move_cost when
15100 seeing how operand fits with various register classes.
15101
15102 Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
15103
15104 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
15105 * toplev.c: Revert Nov 1 13:22 change.
15106
15107 Tue Nov 2 14:21:37 1999 Jason Eckhardt <jle@cygnus.com>
15108
15109 * config/pa/pa.md (height reduction patterns): Add checks for
15110 overlapping operands to avoid semantic-destroying splits for
15111 height reduction patterns.
15112
15113 Tue Nov 2 15:27:31 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15114
15115 * configure.in (m68k-hp-hpux*, xm_alloca.h): The underscore should
15116 have been an hyphen, fixed.
15117 * configure: Rebuilt.
15118
15119 Tue Nov 2 17:04:36 1999 Nick Clifton <nickc@cygnus.com>
15120
15121 * config/arm/tpe.h: Add prototypes for exported functions.
15122 * config/arm/pe.c: Fix compile time warnings.
15123 * config/arm/semi.h: Fix compile time warnings.
15124 * config/arm/arm.c: Fix compile time warnings.
15125 * config/arm/arm.h: Fix compile time warnings.
15126 * config/arm/arm.md: Fix compile time warnings.
15127 * config/arm/thumb.c: Fix compile time warnings.
15128 * config/arm/thumb.h: Fix compile time warnings.
15129 * config/arm/thumb.md: Fix compile time warnings.
15130
15131 Tue Nov 2 04:10:24 1999 Jan Hubicka <hubicka@freesoft.cz>
15132
15133 * jump.c (jump_optimize_1): Swap the incscc and the conditional mode
15134 detection code
15135
15136 * unroll.c (unroll_loop): Remove LOOP notes when loop is
15137 completely unrolled.
15138
15139 Tue Nov 2 16:57:22 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15140
15141 * cse.c (simplify_plus_minus, check_fold_const): Delete declarations.
15142
15143 Tue Nov 2 09:43:00 1999 Catherine Moore <clm@cygnus.com>
15144
15145 * Makefile.in (genattrtab): Don't use (HOST_RTLANAL).
15146 * rtl.h (rtx_equal_p): Move prototype.
15147 * rtl.c (rtx_equal_function_value_matters): Move from
15148 rtlanal.c
15149 (rtx_equal_p): Likewise.
15150 * rtlanal.c (rtx_equal_function_value_matters): Delete.
15151 (rtx_equal_p): Likewise.
15152
15153 Mon Nov 1 23:21:17 1999 Jason Merrill <jason@yorick.cygnus.com>
15154
15155 * libgcc2.c (__do_global_dtors): Only do EH frame stuff if
15156 ! HAS_INIT_SECTION.
15157
15158 Mon Nov 1 23:37:38 1999 Jeffrey A Law (law@cygnus.com)
15159
15160 * gcc.1 (PA options): Remove obsolete -mshared-libs options.
15161
15162 * pa.h (ADDR_VEC_ALIGN): Define.
15163
15164 * jump.c (jump_optimize_1): Also move LOOP_VTOP and LOOP_CONT
15165 notes when presented with "if (foo) break; end_of_loop" and
15166 the break sequence gets moved out of the loop.
15167
15168 * unroll.c (unroll_loop): Allocate memory for MAP using xcalloc.
15169 Remove explicit zero initializations of entries within MAP.
15170
15171 Mon Nov 1 18:09:14 1999 Richard Henderson <rth@cygnus.com>
15172
15173 * reg-stack.c (convert_regs_1): Handle EH edges specially.
15174
15175 Mon Nov 1 15:41:01 1999 Mark P. Mitchell <mark@codesourcery.com>
15176
15177 * bitmap.h (BITMAP_XMALLOC): New macro.
15178 * flow.c (CLEAN_ALLOCA): Remove.
15179 (delete_unreachable_blocks): Use xmalloc/xcalloc instead of alloca.
15180 (life_analysis): Likewise.
15181 (update_life_info): Don't use CLEAN_ALLOCA.
15182 (life_analysis_1): Use xmalloc/xcalloc instead of alloca.
15183 (calculate_global_regs_live): Likewise.
15184 (print_rtl_with_bb): Likewise.
15185 (verify_flow_info): Likewise.
15186 * global.c (global_alloc): Likewise.
15187 (global_conflicts): Likewise.
15188 * integrate.c (save_for_inline_nocopy): Likewise.
15189 (expand_inline_function): Likewise.
15190 * jump.c (jump_optimize_1): Likewise.
15191 (duplicate_loop_exit_test): Likewise.
15192 (thread_jumps): Likewise.
15193 * loop.c (loop_optimize): Likewise.
15194 (combine_givs): Likewise.
15195 (recombine_givs): Likewise.
15196 * reorg.c (dbr_schedule): Likewise.
15197 * unroll.c (unroll_loop): Likewise.
15198
15199 * combine.c (combine_instructions): Use xmalloc instead of alloca.
15200
15201 Mon Nov 1 13:22:30 1999 Richard Henderson <rth@cygnus.com>
15202
15203 * toplev.c (rest_of_compilation): Don't optimize the CFG
15204 when rebuilding, just before dbr.
15205
15206 Mon Nov 1 14:35:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15207
15208 * output.h (assemble_end_function, assemble_destructor,
15209 assemble_constructor, assemble_gc_entry, assemble_global,
15210 assemble_label, output_constant_pool) Constify a char*.
15211
15212 * varasm.c (assemble_destructor, assemble_constructor,
15213 assemble_gc_entry, assemble_end_function, assemble_global,
15214 assemble_label, output_constant_pool): Likewise.
15215
15216 Mon Nov 1 14:22:51 1999 Nick Clifton <nickc@cygnus.com>
15217
15218 * config/arm/thumb.c (thumb_expand_prologue): Add comments
15219 explaining what is goin on in this function.
15220
15221 Mon Nov 1 08:03:15 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15222
15223 * regclass.c (record_reg_classes): In matching case, recompute
15224 costs since the direction of movement is different.
15225
15226 Sun Oct 31 21:59:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
15227
15228 * resource.c (mark_target_live_regs): For unconditional branches,
15229 the resources found at the branch target should be added to the
15230 resources found so far, not intersected.
15231
15232 Sun Oct 31 15:48:49 1999 Philippe De Muyter <phdm@macqel.be>
15233
15234 * fixinc/fixtests.c, fixinc/fixfixes.c : Keep `#' in first column for
15235 old cpp's.
15236 * fixinc/fixincl.c (fcntl.h) : Do not include this file twice.
15237 (sys/mman.h): Include this file only if #HAVE_MMAP.
15238 (run_compiles): Initialize `esac_fmt' with one old KR string, not
15239 with automatically concatenated ANSI strings.
15240
15241 Sun Oct 31 23:57:07 1999 Mark Mitchell <mark@codesourcery.com>
15242
15243 * ggc-page.c (struct page_entry): Remove save_num_free_objects.
15244 (DIV_ROUND_UP): Robustify.
15245 (ggc_recalculate_in_use_p): New function.
15246 (release_pages): Don't inline it.
15247 (ggc_alloc_obj): Don't refuse to allocate objects on pages for
15248 outer contexts.
15249 (ggc_pop_context): Use ggc_recalculate_in_use_p.
15250 (clear_marks): Always save in_use_p.
15251 (sweep_pages): Use ggc_recalculate_in_use_p.
15252 (ggc_page_print_statistics): Avoid signed/unsigned comparisons.
15253 Release pages before counting statistics.
15254
15255 Sun Oct 31 23:42:37 1999 Mark Mitchell <mark@codesourcery.com>
15256
15257 * toplev.c (rest_of_compilation): Fix thinko in this change:
15258
15259 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
15260
15261 (rest_of_compilation): If inside an inlined external function,
15262 pretend we are just being declared.
15263
15264 Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
15265
15266 * flow.c (calculate_global_regs_live): Fix thinko.
15267
15268 * integrate.c (expand_inline_function): Fix bugs in previous
15269 change from Oct 28, 1999.
15270
15271 Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
15272
15273 * stmt.c (expand_value_return): Fix typo in this change:
15274
15275 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15276 (expand_value_return): Correctly convert VAL when promoting function
15277 return; support RETURN_REG being a PARALLEL.
15278
15279 Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
15280
15281 * expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
15282
15283 Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15284
15285 * hard-reg-set.h (reg_names): Constify a char*.
15286
15287 * regclass.c (reg_names): Likewise.
15288
15289 * regs.h (reg_names): Likewise
15290
15291 * a29k/a29k.c (reg_names): Delete declaration.
15292
15293 * a29k/a29k.h (CONDITIONAL_REGISTER_USAGE): Constify a char*.
15294
15295 * arc/arc.c (arc_save_restore, arc_output_function_prologue,
15296 arc_output_function_epilogue): Likewise.
15297
15298 * elxsi/elxsi.c (reg_names): Likewise.
15299
15300 * gmicro/gmicro.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
15301
15302 * m32r/m32r.c (m32r_output_function_epilogue, emit_cond_move):
15303 Likewise.
15304
15305 * m88k/m88k.c (output_function_profiler): Likewise.
15306
15307 * sparc/sparc.c (sparc_flat_output_function_prologue,
15308 sparc_flat_output_function_epilogue): Likewise.
15309
15310 Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
15311
15312 * toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
15313 warning from -Wuninitialized and put it under -W.
15314 * function.c (uninitialized_vars_warning): Warn only when the
15315 corresponding flag is set.
15316
15317 Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
15318
15319 * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
15320 is nonzero and the single set does not have an elt, then assign
15321 it an elt.
15322
15323 * simplify-rtx.c: New file.
15324 * Makefile.in (OBJS): Add simplify-rtx.o
15325 (simplify-rtx.o): Add dependencies.
15326 * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
15327 * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
15328 (cse_gen_binary, simplify_unary_operation): Delete.
15329 (simplify_binary_operation, simplify_plus_minus): Likewise.
15330 (check_fold_consts, simplify_relation_operation): Likewise.
15331 (simplify_ternary_operation): Likewise.
15332 (delete_trivially_dead_insns): Simplify the contents of the
15333 REG_EQUAL note before trying to substitute it into the source
15334 of the reg-reg copy at the end of a libcall sequence.
15335
15336 * combine.c (combine_simplify_rtx): Renamed from simplify_rtx. All
15337 references/callers changed.
15338
15339 * mn10200.c (mn10200_va_arg): Force the return value into a
15340 register.
15341
15342 * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
15343
15344 * cccp.c (macroexpand): Avoid out of range accesses for omitted
15345 arguments.
15346
15347 Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
15348
15349 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
15350
15351 Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
15352
15353 * fold-const.c (fold): Fix thinko when optimizing comparisons
15354 against -0.0.
15355
15356 Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
15357
15358 * gcc.texi (Passes): Update front-end files to their current
15359 location.
15360
15361 Sat Oct 30 14:41:40 1999 Richard Henderson <rth@cygnus.com>
15362
15363 * alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
15364 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
15365 (PREDICATE_CODES): Add addition_operation.
15366 * alpha-protos.h (addition_operation): Declare.
15367 (secondary_reload_class): Likewise.
15368 * alpha.c (addition_operation): New.
15369 (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
15370 * alpha.md (adddi3): Turn into expander.
15371 (*lda, *adddi_2): New.
15372 (movsf, movdf patterns): Don't preference integer regs.
15373 (movsi, movdi patterns): Don't preference fp regs.
15374
15375 Sat Oct 30 14:38:22 1999 Richard Henderson <rth@cygnus.com>
15376
15377 * genrecog.c (write_switch): Check for duplicate CODE cases.
15378
15379 Sat Oct 30 14:31:48 1999 Richard Henderson <rth@cygnus.com>
15380
15381 * ggc-common.c: Update pre-function commentary.
15382 * ggc-page.c: Likewise.
15383 (poison): Remove.
15384 (poison_pages): Use memset directly.
15385 (ggc_alloc_obj): Likewise. Use a different pattern than poison_pages.
15386 (ggc_collect): Poison before sweeping.
15387 * ggc-simple.c: Update pre-function commentary.
15388 (ggc_alloc_obj): Poison non-zeroed memory.
15389
15390 Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
15391
15392 * ggc-common.c (ggc_print_statistics): Make arguments to fprintf
15393 match format string, even on 64-bit hosts.
15394 * gcc-page.c (ggc_page_print_statistics): Likewise.
15395
15396 Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
15397
15398 * config/i386/i386.c (ix86_cpu): Revert last patch.
15399 * config/i386/i386.h (ix86_cpu): Ditto.
15400
15401 Fri Oct 29 17:00:42 1999 Jim Wilson <wilson@cygnus.com>
15402
15403 * stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
15404 TYPE_SIZE, convert type of result to sizetype.
15405
15406 Fri Oct 29 14:34:17 1999 Richard Henderson <rth@cygnus.com>
15407
15408 * flow.c (count_or_remove_death_notes): Equate NULL with the
15409 universal set.
15410
15411 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
15412 * toplev.c (rest_of_compilation): Rebuild CFG immediately before
15413 dbr_schedule.
15414
15415 * i386.c (pic_label_no): Delete.
15416 (ix86_attr_length_default): Don't use single_set to peek
15417 inside a parallel.
15418
15419 * recog.c (peephole2_optimize): Allow recog_next_insn to index
15420 the first insn after bb->end.
15421 * i386.md (push mem peeps): Scratch is live after evaluation
15422 of the memory.
15423 (cmp mem peep): Similarly.
15424
15425 Fri Oct 29 11:50:11 1999 Catherine Moore <clm@cygnus.com>
15426
15427 * calls.c (emit_library_call_value): Fix declaration of alignment_pad.
15428 * function.c (pad_to_arg_alignment): Add missing braces.
15429
15430 Fri Oct 29 13:53:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15431
15432 * alpha/alpha-protos.h (literal_section): Add prototype.
15433 (alpha_need_linkage, alpha_start_function,alpha_end_function):
15434 Constify a char*.
15435
15436 * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
15437 prototype.
15438 (alpha_start_function, alpha_end_function, float_strings,
15439 alpha_need_linkage): Constify a char*
15440
15441 * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.
15442
15443 * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
15444
15445 * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
15446
15447 * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.
15448
15449 Fri Oct 29 13:49:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15450
15451 * flow.c (debug_flow_info): Add prototype.
15452
15453 * gcc.c (main): Likewise.
15454
15455 * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
15456 Likewise.
15457
15458 * reload1.c (failed_reload, set_reload_reg): Likewise.
15459
15460 * mips-tfile.c (main): Likewise.
15461 (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
15462 with ATTRIBUTE_NORETURN.
15463
15464 Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
15465
15466 * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
15467 DECL is not a memory ref.
15468
15469 Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
15470
15471 * config/i386/i386.h (ix86_cpu): Remove extern attribute.
15472 * config/i386/i386.c (ix86_cpu): Add extern attribute.
15473
15474 Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
15475
15476 * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
15477 * config/mips/elf64.h: ditto.
15478
15479 Fri Oct 29 08:03:57 1999 Catherine Moore <clm@cygnus.com>
15480
15481 * expr.c (emit_push_insn): New argument alignment_pad.
15482 Update all callers. Adjust stack pointer based on alignment pad.
15483 * function.c (pad_to_arg_alignment): New argument alignment_pad.
15484 Update all callers. Track alignment_pad if boundary > PARM_BOUNDARY.
15485 (locate_and_pad_parm): New argument alignment_pad. Update all
15486 callers.
15487 * expr.h (emit_push_insn): Update prototype.
15488 (locate_and_pad_parm): Update prototype.
15489 * calls.c (arg_data): Add new field alignment_pad.
15490 (initialize_argument_information): Initialize alignment_pad.
15491
15492 Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
15493
15494 * except.c (free_eh_nesting_info): Free the info itself.
15495 * function.c (free_after_compilation): Don't free NULL.
15496 * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
15497 (pre_edge_insert): Free inserted.
15498 * stmt.c (free_stmt_status): Don't free NULL.
15499
15500 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
15501
15502 * gcov.c (DIR_SEPARATOR): Provide default.
15503 (output_data): Add test for MS-DOS format absolute filename.
15504 (fancy_abort): Correct program name.
15505 (open_files): Open all files in binary mode.
15506 * libgcc2.c (__bb_exit_func): Likewise.
15507
15508 * profile.c (init_branch_prob): Specify binary when opening files.
15509
15510 * flags.h (flag_unwind_tables): New decl.
15511 * toplev.c (flag_unwind_table): New definition.
15512 (f_options): Add -funwind-tables.
15513 (decode_g_option): Clarify warning when unknown -g option is given.
15514 (rest_of_compilation): If inside an inlined external function,
15515 pretend we are just being declared.
15516
15517 * dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
15518 (dwarf2out_frame_finish): Likewise.
15519
15520 Fri Oct 29 07:44:26 1999 Vasco Pedro <vp@di.fct.unl.pt>
15521
15522 * fold-const.c (merge_ranges): If not in0, but in1, handle
15523 upper bounds equal like subset case.
15524
15525 Thu Oct 28 19:22:24 1999 Douglas Rupp <rupp@gnat.com>
15526
15527 * dbxout.c (dbxout_parms): Generate a second stabs line for parameters
15528 passed in a register but moved to the stack.
15529
15530 Thu Oct 28 19:12:57 1999 Sam Tardieu <tardieu@act-europe.fr>
15531
15532 * gcc.c (pass_exit_codes, greatest_status): New variables.
15533 (struct option_map): Add entry for "--pass-exit-codes".
15534 (execute): Update greatest_status if error.
15535 (display_help): Add documentation for -pass-exit-codes.
15536 (process_command): Handle -pass-exit-codes.
15537 (main): Look at pass_exit_codes and greatest_status on call to exit.
15538
15539 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15540
15541 * reload.c (find_reloads): Refine test for no input reload
15542 case to not includes reloads emitted after insn.
15543
15544 * function.c (find_temp_slots_from_address): Handle sum involving
15545 a register that points to a temp slot.
15546 (update_temp_slot_address): Make recursive call if both old and
15547 new are PLUS with a common operand.
15548 * calls.c (expand_call): Mark temp slot for result as having
15549 address taken.
15550
15551 * rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
15552
15553 * gcc.c (process_command): Add standard_exec_prefix with "GCC"
15554 component as well as "BINUTILS".
15555
15556 * integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
15557 * integrate.c (copy_rtx_and_substitute): Likewise.
15558 (expand_inline_function, integrate_parm_decls, integrate_decl_tree):
15559 All callers changed.
15560 * unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
15561
15562 * dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
15563 gdb extensions, write size of type; also be more consistent
15564 in using references when this is a subtype.
15565
15566 * pa.md (extv, extzv, insv): Use define_expand to reject constant
15567 that is out of range.
15568
15569 * loop.c (unknown_constant_address_altered): New variable.
15570 (prescan_loop): Initialize it.
15571 (note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
15572 (invariant_p, case MEM): Remove handling for volatile and readonly;
15573 check new variable if readonly.
15574 (check_dbra_loop): Chdeck unknown_constant_address_altered.
15575
15576 * cse.c (canon_hash, case MEM): Do not record if BLKmode.
15577 (addr_affects_sp_p): Removed from note_mem_written and only
15578 define #ifdef AUTO_INC_DEC.
15579
15580 * alpha.c (input_operand, case ADDRESSOF): Treat as REG.
15581
15582 * regclass.c (record_reg_classes): Properly handle register move
15583 directions.
15584
15585 * varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
15586 Don't think valid if both operands are invalid.
15587 (struct constant_descriptor): New field RTL.
15588 (mark_const_hash_entry): Mark it.
15589 (record_constant{,_rtx}): Initialize it.
15590 (output_constant_def): Allocate RTL in permanent obstack and
15591 save in table.
15592 ({record,compare}_constant_1): Modes must match for
15593 CONSTRUCTOR of ARRAY_TYPE.
15594
15595 * c-common.h (initializer_constant_valid_p): Delete decl from here.
15596 * output.h (initializer_constant_valid_p): Move decl to here.
15597 * c-common.c (initializer_constant_valid_p): Delete function from here.
15598 * varasm.c (initializer_constant_valid_p): Move function to here.
15599
15600 * tree.h (STRIP_SIGN_NOPS): New macro.
15601 * fold-const.c (optimize_minmax_comparison): New function.
15602 (invert_truthvalue, case WITH_RECORD_EXPR): New case.
15603 (fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
15604 (fold, case EQ_EXPR): Call optimize_minmax_comparison and add
15605 cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
15606 widening conversions.
15607 (fold, case LE_EXPR): Rework changing unsigned to signed comparisons
15608 to look at size of mode, not precision of type; also add missing cases.
15609 (optimize_bit_field_compare, decode_field_reference): Don't try to
15610 optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
15611
15612 * dwarf2out.c (ctype.h): Include.
15613 (dwarf2out_set_demangle_name_func): New function.
15614 (size_of_line_info): Deleted.
15615 (output_line_info): Compute size of line info table from difference
15616 of labels.
15617 (base_type_die, add_name_attribute): Call demangle function, if any.
15618 (field_byte_offset): Use bits per word for variable length fields.
15619 (gen_array_type_die): Add array name.
15620 (gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
15621 (dwarf2out_add_library_unit_info): New function.
15622
15623 * explow.c (set_stack_check_libfunc): New function.
15624 (stack_check_libfunc): New static variable.
15625 (probe_stack_range): Allow front-end to set up a libfunc to call.
15626
15627 * combine.c (simplify_comparison): When making comparison in wider
15628 mode, check for having commuted an AND and a SUBREG.
15629 (contains_muldiv): New function.
15630 (try_combine): Call it when dividing a PARALLEL.
15631 (simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
15632 (simplify_comparison, case ASHIFTRT): Recognize sign-extension of
15633 a PLUS.
15634 (record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
15635 use one of the CLOBBERs instead.
15636 (if_then_else_cond): If comparing against zero, just return thing
15637 being compared.
15638
15639 * optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
15640 Don't generate shifts and subtract if have conditional arithmetic.
15641
15642 * rtl.h (delete_barrier): New declaration.
15643 * jump.c (jump_optimize): Set up to handle conditional call.
15644 In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
15645 (delete_barrier): New function.
15646
15647 * rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
15648
15649 * recog.c (nonmemory_operand): Accept ADDRESSOF.
15650
15651 * tree.c (build_type_attribute_variant): Push to obstack of
15652 ttype around type_hash_canon call.
15653
15654 * expr.c (placeholder_list): Move decl to file scope.
15655 (expand_expr): Don't force access to volatile just because its
15656 address is taken.
15657 If ignoring reference operations, just expand the operands.
15658 (expand_expr, case COMPONENT_REF): Propagate
15659 EXPAND_CONST_ADDRESS to recursive call when expanding inner.
15660 Refine test for using bitfield operations vs pointer punning.
15661 (expand_expr, case CONVERT_EXPR): If converting to
15662 BLKmode UNION_TYPE from BLKmode, just return inner object.
15663 Use proper mode in store_field call.
15664 Properly set sizes of object to store and total size in store_field
15665 call for convert to union.
15666 (expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
15667 memory (like for ADDR_EXPR). Also, don't put constant in register if
15668 we'll want it in memory.
15669 (readonly_fields_p): New function.
15670 (expand_expr, case INDIRECT_REF): Call it if LHS.
15671 (expand_assignment): Handle a RESULT_DECL where
15672 DECL_RTL is a PARALLEL.
15673 (do_jump, case WITH_RECORD_EXPR): New case.
15674 (get_inner_reference): Always go inside a CONVERT_EXPR
15675 and NOP_EXPR if both modes are the same.
15676 (store_field): Use bitfield operations if size of bitsize is not same
15677 as size of RHS's type.
15678 Check for bitpos not a multiple of alignment in BLKmode case.
15679 Do block move in largest possible alignment.
15680 (store_constructor): Set BITSIZE to -1 for variable size and properly
15681 in case of array of BLKmode.
15682 (expand_expr_unaligned): New function.
15683 (do_compare_and_jump): Call it.
15684
15685 * mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
15686 * collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
15687 does not include 'o'.
15688
15689 * function.c (instantiate_virtual_regs_1, case SET): Handle case where
15690 both SET_DEST and SET_SRC reference a virtual register.
15691 (gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
15692
15693 * integrate.c (expand_inline_function): Handle case of setting
15694 virtual stack vars register (from built in setjmp); when parameter
15695 lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
15696 (subst_constant): Add new parm, MEMONLY.
15697 (expand_inline_function, integrate_parm_decls): Pass new parm.
15698 (integrate_decl_tree): Likewise.
15699 (copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
15700 (try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
15701 (copy_rtx_and_substitute, case SET): Add explicit calls to
15702 copy_rtx_and_substitute for both sides.
15703
15704 * stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
15705 constraints.
15706 (pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
15707 within INDEX_TYPE, instead of before.
15708 (fixup_gotos): Use f->target_rtl, not the next insn,
15709 since latter may be from a later fixup.
15710 (expand_value_return): Correctly convert VAL when promoting function
15711 return; support RETURN_REG being a PARALLEL.
15712 (expand_return): When checking for result in regs and having
15713 cleanup, consider PARALLEL in DECL_RTL as being in regs.
15714
15715 1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
15716
15717 * cpplib.h (struct cpp_buffer: fname, nominal_fname,
15718 last_nominal_fname): Mark const.
15719 (struct include_hash: name, nshort, control_macro): Mark
15720 const.
15721 (struct macrodef: symnam): Mark const.
15722 (struct if_stack: fname): Mark const.
15723 (is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
15724 (IStable): New character-syntax array which encompasses all
15725 the old is_foo arrays.
15726 (is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
15727 is_space): New macros for interrogating IStable.
15728 (check_macro_name): Kill last argument. All callers changed.
15729
15730 * cppinit.c (initialize_char_syntax): Delete.
15731 (is_idchar, is_idstart, is_hor_space, is_space,
15732 trigraph_table): Delete.
15733 (IStable): New. Initialize with clever macros to avoid
15734 information duplication.
15735 (builtin_array): Table of builtins to get rid of explicit list
15736 in initialize_builtins.
15737 (initialize_builtins): Use builtins_array.
15738 (cpp_start_read): Call init_IStable, and set IStable['$'] if
15739 opts->dollars_in_ident.
15740
15741 * cppexp.c: Change all refs to is_xyz[] arrays to use new
15742 is_xyz() macros.
15743 (cpp_parse_expr): Avoid 'format string is not constant'
15744 warning. Use ISGRAPH to identify printable chars.
15745 * cppfiles.c: Change all refs to is_xyz[] arrays to use new
15746 is_xyz() macros.
15747 (read_and_prescan): Map trigraphs to chars with open-coded
15748 if-else-if-... sequence, not a lookup table.
15749 * cpphash.c: Change all refs to is_xyz[] arrays to use new
15750 is_xyz() macros.
15751 * cpplib.c: Change all refs to is_xyz[] arrays to use new
15752 is_xyz() macros. Kill SKIP_ALL_WHITE_SPACE (unused).
15753 (check_macro_name): Remove ability to report an invalid
15754 assertion name, which is never used.
15755 (do_line): Constify a couple of char *'s.
15756 * cppmain.c (main): Call cpp_cleanup before returning.
15757
15758 Thu Oct 28 21:16:35 1999 Mark Mitchell <mark@codesourcery.com>
15759
15760 * ggc.h (struct ggc_statistics): New type.
15761 (ggc_get_size): New function.
15762 (ggc_print_statistics): Likewise.
15763 * ggc-common.c (ggc_stats): New variable.
15764 (ggc_mark_rtx_children): Keep statistics.
15765 (ggc_mark_tree_children): Likewise.
15766 (ggc_print_statistics): New function.
15767 * ggc-page.c (struct globals): Add bytes_mapped field.
15768 (alloc_anon): Update it.
15769 (release_pages): Likewise.
15770 (ggc_get_size): New function.
15771 (ggc_page_print_statistics): New function.
15772 * ggc-simple.c (ggc_get_size): New function.
15773
15774 Fri Oct 29 06:32:44 1999 Geoffrey Keating <geoffk@cygnus.com>
15775
15776 * flow.c (propagate_block): When the last reference to a label
15777 before an ADDR_VEC is deleted because the reference is a dead
15778 store, delete the ADDR_VEC.
15779
15780 Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
15781
15782 * resource.c (find_free_register): Don't use the frame pointer
15783 if frame_pointer_needed.
15784
15785 Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
15786
15787 * config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
15788 (function_arg_pass_by_reference): Check for a NULL pointer in cum.
15789
15790 * config/i960/i960.c (i960_va_start): New locals base, num.
15791 Use INDIRECT_REF instead of ARRAY_REF on valist.
15792 (i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.
15793
15794 Thu Oct 28 09:45:48 1999 Mark Mitchell <mark@codesourcery.com>
15795
15796 * gcse.c (delete_null_pointer_checks): Fix typo in previous change.
15797
15798 Thu Oct 28 03:37:50 1999 Peter Gerwinski <peter@gerwinski.de>
15799
15800 * tree.def (PLACEHOLDER_EXPR): Update comments.
15801
15802 Thu Oct 28 06:47:32 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15803
15804 * c-common.c (check_format_info): Avoid non-literal format string
15805 warnings when `first_arg_num' is zero.
15806
15807 Thu Oct 28 12:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15808
15809 * rtl.texi: Delete explicit Prev, Up and Next entries in "@node"s.
15810
15811 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
15812
15813 * arm.md (casesi_insn): Add a clobber of the condition code
15814 register.
15815
15816 Mon Oct 18 21:16:06 1999 Fred Fish <fnf@be.com>
15817
15818 * tm.texi (CC1PLUS_SPEC): Make it clear in the docs that CC1_SPEC is
15819 used by both cc1 and cc1plus.
15820
15821 Thu Oct 28 10:00:48 1999 Nick Clifton <nickc@cygnus.com>
15822
15823 * config/arm/arm.c: Initialise arm_structure_size_boundary to
15824 DEFAULT_STRUCTURE_SIZE_BOUNDARY.
15825 * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
15826 to the value 32 if it has not already been defined.
15827 * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
15828 Override definition in arm.h with a value of 8.
15829
15830 Thu Oct 28 03:12:02 1999 David Starner <dstarner98@aasaa.ofe.org>
15831
15832 * c-pragma.c (push_alignment): Don't check the return value
15833 of xmalloc.
15834
15835 Thu Oct 28 03:08:38 1999 Matteo Frigo <athena@fftw.org>
15836
15837 * sparc.h (ADJUST_COST): Fix thinko.
15838
15839 Thu Oct 28 02:44:03 1999 Glen Nakamura <glen.nakamura@usa.net>
15840
15841 * cccp.c (rescan): Fixed obp pointer handling around call to
15842 check_expand subroutine.
15843
15844 Thu Oct 28 02:15:22 1999 Jeffrey A Law (law@cygnus.com)
15845
15846 * gcse.c (delete_null_pointer_checks): Only record non-null info
15847 for pseudos when examining stores.
15848
15849 * arm.md (adddi3, adddi_sesidi_di, adddi_sesidi_di): Add
15850 splitters for these patterns. Use "#" for output templates.
15851 (addsi3_carryin_shift): New pattern.
15852
15853 Thu Oct 28 10:20:02 1999 Geoffrey Keating <geoffk@cygnus.com>
15854
15855 * config/rs6000/rs6000.md (movsf): Don't convert a SUBREG
15856 of the function return register into a plain REG until
15857 after function inlining is done.
15858
15859 Wed Oct 27 15:21:46 1999 Richard Henderson <rth@cygnus.com>
15860
15861 * jump.c (jump_optimize_1): If we did cross-jumping, and
15862 the data will matter, rebuild the CFG.
15863 * reg-stack.c (reg_to_stack): Only (re)build the CFG if
15864 not optimizing. Don't run shorten_branches.
15865 * toplev.c (rest_of_compilation): Run shorten_branches after
15866 reg_to_stack.
15867
15868 Wed Oct 27 12:33:40 1999 Mark Mitchell <mark@codesourcery.com>
15869
15870 * rtl.h (note_stores): Add additional paramter.
15871 * rtlanal.c (reg_set_p_1): Take additional paramter.
15872 (reg_set_last_1): Likewise.
15873 (reg_set_p): Adjust call to note_stores.
15874 (reg_set_last): Likewise.
15875 (note_stores): Pass data parameter to worker function.
15876 * alias.c (record_set): Take additional parameter.
15877 (init_alias_analysis): Pass it.
15878 * caller-save.c (mark_set_regs): Take additional parameter.
15879 (save_call_clobbered_regs): Pass NULL to note_stores.
15880 * combine.c (set_nonzero_bits_and_sign_copies): Take additional
15881 parameter.
15882 (record_dead_and_set_regs_1): Likewise.
15883 (reg_dead_at_p_1): Likewise.
15884 (combine_instructions): Adjust calls to note_stores.
15885 (try_combine): Likewise.
15886 (record_dead_insn): Remove.
15887 (record_dead_and_set_regs): Adjust calls to note_stores.
15888 (reg_dead_at_p): Likewise.
15889 * cse.c (invalidate_skipped_set): Take additional parameter.
15890 (cse_check_loop_start): Likewise.
15891 (cse_check_loop_start_value): Remove.
15892 (cse_set_around_loop): Adjust calls to note_stores.
15893 * flow.c (notice_stack_pointer_modification): Take additional
15894 parameter. Remove duplicate declaration.
15895 (record_volatile_insns): Adjust calls to note_stores.
15896 * gcse.c (record_set_info): Take additional parameter.
15897 (record_last_set_info): Likewise.
15898 (invalidate_nonnull_info): Likewise.
15899 (record_set_insn): Remove.
15900 (compute_sets): Adjust calls to note_stores.
15901 (last_set_insn): Remove.
15902 (compute_hash_table): Adjust calls to note_stores.
15903 (insert_insn_end_bb): Likewise.
15904 (delete_null_pointer_checks): Likewise.
15905 * global.c (mark_reg_store): Take additional parameter.
15906 (mark_reg_clobber): Likewise.
15907 (reg_becomes_live): Likewise.
15908 (global_conflicts): Adjust calls to note_stores.
15909 (build_insn_chain): Likewise.
15910 * integrate.c (note_modified_parmregs): Take additional parameter.
15911 (mark_stores): Likewise. Make it static.
15912 (save_for_inline_nocopy): Adjust calls to note_stores.
15913 (try_constants): Likewise.
15914 * integrate.h (mark_stores): Remove declaration.
15915 * jump.c (mark_modified_reg): Take additional parameter.
15916 (thread_jumps): Adjust calls to note_stores.
15917 * local-alloc.c (validate_equiv_mem_from_store): Take additional
15918 parameter.
15919 (no_equiv): Likewise.
15920 (reg_is_set): Likewise.
15921 (validate_equiv_mem): Adjust calls to note_stores.
15922 (update_equiv_regs): Likewise.
15923 (block_alloc): Likewise.
15924 * loop.c (note_set_pseudo_multiple_uses_retval): Remove.
15925 (note_addr_stored): Take additional parameter.
15926 (note_set_pseudo_multiple_uses): Likewise.
15927 (record_initial): Likewise.
15928 (prescan_loop): Adjust calls to note_stores.
15929 (strength_reduce): Likewise.
15930 (check_dbra_loop): Likewise.
15931 * regmove.c (flags_set_1): Take additional paramter.
15932 (mark_flags_life_zones): Adjust calls to note_stores.
15933 * reload1.c (mark_not_eliminable): Take additional parameter.
15934 (forget_old_reloads_1): Likewise.
15935 (reload_cse_invalidate_rtx): Likewise.
15936 (reload_cse_check_clobber): Likewise.
15937 (reload_combine_note_store): Likewise.
15938 (move2add_note_store): Likewise.
15939 (reload): Adjust calls to note_stores.
15940 (reload_as_needed): Likewise.
15941 (emit_reload_insns): Likewise.
15942 (reload_cse_regs_1): Likewise.
15943 (reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
15944 (reload_combine): Adjust calls to note_stores.
15945 * resource.c (update_live_status): Take additional paramter.
15946 (mark_target_live_regs): Adjust calls to note_stores.
15947 * stupid.c (find_clobbered_regs): Take additional parameter.
15948 (stupid_life_analysis): Adjust calls to note_stores.
15949
15950 Wed Oct 27 19:26:12 1999 Nick Clifton <nickc@cygnus.com>
15951
15952 * config/arm/coff.h (STRUCTURE_SIZE_BOUNDARY): Delete
15953 definition.
15954
15955 * config/arm/elf.h (STRUCTURE_SIZE_BOUNDARY): Delete
15956 definition.
15957
15958 * config/arm/arm.h (STRUCTURE_SIZE_BOUNDARY): Define in terms
15959 of the variable arm_structure_size_boundary.
15960
15961 Wed Oct 27 02:05:58 1999 Mark P. Mitchell <mark@codesourcery.com>
15962
15963 * alias.c (init_alias_analysis): Allocate reg_known_value and
15964 reg_known_equiv_p on the heap. Likewise for new_reg_base_value
15965 and reg_seen.
15966 (end_alias_analysis): Free reg_known_value and reg_known_equiv_p.
15967 * cse.c (cse_main): Call end_alias_analysis.
15968 * haifa-sched.c (schedule_insns): Likewise.
15969 * local-alloc. (update_equiv_regs): Likewise.
15970 * reload1.c (reload_cse_regs): Likewise.
15971
15972 Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15973
15974 * sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
15975 * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
15976 mapping from MASK_FPU.
15977
15978 Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
15979
15980 * sparc.md (call): Don't bound structure return size to 0xfff.
15981
15982 Wed Oct 27 00:56:59 1999 Richard Henderson <rth@cygnus.com>
15983
15984 * resource.c (mark_target_live_regs): Check that the target
15985 insn wasn't created after compute_bb_for_insn.
15986
15987 Tue Oct 26 23:15:03 1999 Mark Mitchell <mark@codesourcery.com>
15988
15989 * ggc-page.c (poison_pages): Don't be overzealous.
15990
15991 Tue Oct 26 23:29:18 1999 Jeffrey A Law (law@cygnus.com)
15992
15993 * alias.c: Update comments for ADDRESS.
15994 (nonlocal_reference_p): Look inside the ADDRESS to determine if
15995 it is a local memory reference.
15996
15997 * c-typeck.c (build_function_call): Check that the built-in
15998 function is of class BUILT_IN_NORMAL before trying to recongize
15999 it as BUILT_IN_ABS.
16000 * calls.c (calls_function_1): Similarly for BUILT_IN_ALLOCA.
16001 * stmt.c (expand_end_cae): Similarly for BUILT_IN_CLASSIFY_TYPE.
16002
16003 Wed Oct 27 00:14:13 1999 Robert Lipe <robertlipe@usa.net>
16004
16005 * gcse.c (expr_reaches_here_p): Use xcalloc and explit free instead
16006 of alloca.
16007 (pre_gcse): Likewise.
16008 (hoist_expr_reaches_here_p): Likewise.
16009 (hoist_code): Likewise.
16010 (pre_expr_reaches_here_p): Replace alloca with xcalloc. Move core
16011 code to ...
16012 (pre_expr_reaches_here_p_work): ... here.
16013 (expr_reaches_here_p): Replace alloca with xcalloc. Move core
16014 code to ...
16015 (expr_reaches_here_p_work): ... here.
16016
16017 Tue Oct 26 20:42:45 1999 Richard Henderson <rth@cygnus.com>
16018
16019 * resource.c (find_basic_block): Delete.
16020 (mark_target_live_regs, incr_ticks_for_insn): Use BLOCK_NUM instead.
16021 (init_resource_info): Call compute_bb_for_insn.
16022
16023 Tue Oct 26 20:21:02 1999 Richard Henderson <rth@cygnus.com>
16024
16025 * flow.c (merge_blocks_move_predecessor_nojumps): Cope
16026 with already adjacent blocks, but no fallthru.
16027 (merge_blocks_move_successor_nojumps): Simplify.
16028 (debug_flow_info): New.
16029
16030 * toplev.c (rest_of_compilation): Open jump1 dump file before
16031 jump and close after, as opposed to just using dump_rtl.
16032
16033 Wed Oct 27 03:09:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16034
16035 * reload.h (earlyclobber_operand_p): Declare.
16036 * reload.c (earlyclobber_operand_p): Don't declare. No longer static.
16037 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
16038 an earlyclobbered output conflict with RELOAD_INPUT reloads - handle
16039 case where the RELOAD_OTHER reload is new. Use earlyclobber_operand_p.
16040
16041 Tue Oct 26 18:23:38 1999 Jan Hubicka <hubicka@freesoft.cz>
16042 Richard Henderson <rth@cygnus.com>
16043
16044 * emit-rtl.c (emit_block_insn_before): New.
16045 (emit_block_insn_after): New.
16046 * basic-block.h: Declare them.
16047
16048 * bitmap.h: Protect from multiple inclusion.
16049
16050 * recog.c (scratch_operand): Handle VOIDmode correctly.
16051
16052 * rtl.h (JUMP_CROSS_JUMP_DEATH_MATTERS): New.
16053
16054 * builtins.c (expand_builtin_apply_args_1): Remove STACK_REGS hack.
16055 * function.c (assign_parms): Likewise.
16056 * global.c (global_conflicts): Clarify STACK_REGS commentary.
16057
16058 * reg-stack.c (max_uid): Remove.
16059 (blocks, block_begin, block_end, block_drops_in): Remove.
16060 (block_stack_in, block_out_reg_set, block_number): Remove.
16061 (struct block_info_def, BLOCK_INFO): New.
16062 (enum emit_where): New.
16063 (current_block): New.
16064 (BLOCK_NUM): Remove.
16065 (mark_regs_pat, record_label_references): Remove.
16066 (record_reg_life_pat, record_reg_life, find_blocks): Remove.
16067 (nan): New.
16068 (goto_block_pat, print_blocks, dump_stack_info): Remove.
16069 (reg_to_stack): Simplified test for existance of fp code. Use
16070 flow.c code. Call shorten_branches after cross-jump opt.
16071 (check_asm_stack_operands): Renamed from record_asm_reg_life.
16072 Return false if the asm doesn't use stack regs. Don't do life
16073 analysis on the asm.
16074 (emit_pop_insn): Replace function pointer arg `when' with
16075 enum `where'. Update all callers.
16076 (change_stack): Likewise. Update basic block end.
16077 (emit_swap_insn): Use current_block->head to limit reverse search
16078 for start of block. Use emit_block_insn_after.
16079 (subst_stack_regs_pat): Handle USE and CLOBBER patterns.
16080 (subst_asm_stack_regs): Use check_asm_stack_operands. Use direct
16081 structure assignment instead of bcopy.
16082 (print_stack): New.
16083 (convert_regs_entry, convert_regs_exit): New.
16084 (convert_regs_1, convert_regs_2): Split out from convert_regs.
16085 Work on basic blocks and the CFG.
16086 (convert_regs): Use them.
16087
16088 * i386.c (output_fix_trunc): Remove code for DImode input operand
16089 not at top-of-stack.
16090 * i386.c (fix_truncdfdi2, fix_truncsfdi2): Use scratch with
16091 appropriate mode.
16092 (fix_truncdi_1): Allow any mode scratch.
16093
16094 Tue Oct 26 13:30:35 1999 Richard Henderson <rth@cygnus.com>
16095
16096 * alpha.h (TARGET_MEM_FUNCTIONS): Define here.
16097 * linux.h, netbsd.h, vms.h: Not here.
16098
16099 1999-10-26 Gavin Romig-Koch <gavin@cygnus.com>
16100
16101 * config/mips/mips.h (ISA_HAS_64BIT_REGS,ISA_HAS_BRANCHLIKELY,
16102 ISA_HAS_FP4,ISA_HAS_CONDMOVE): New.
16103 (GENERATE_BRANCHLIKELY,HAVE_SQRT_P,
16104 CONDITIONAL_REGISTER_USEAGE): Use them.
16105 * config/mips/mips.c (mips_move_1word,mips_move_2words,
16106 gen_conditional_branch,override_options) : Use them.
16107 * config/mips/mips.md : Use them.
16108
16109 Tue Oct 26 13:09:23 1999 Richard Henderson <rth@cygnus.com>
16110
16111 * i386.md (zero_extendqihi2): Use SImode register name with andl.
16112
16113 Tue Oct 26 12:35:38 1999 Richard Henderson <rth@cygnus.com>
16114
16115 * integrate.c (function_cannot_inline_p): Don't allow inlining
16116 if setjmp is used.
16117
16118 Tue Oct 26 14:10:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16119
16120 * c-parse.in (cast_expr): Constify.
16121
16122 * cccp.c (special_symbol): Likewise.
16123
16124 * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
16125
16126 * dwarf2out.c (base_type_die): Likewise.
16127
16128 * global.c (allocno_compare): Likewise.
16129
16130 * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
16131
16132 * regclass.c (fix_register): Likewise.
16133
16134 * rtl.h (fix_register): Likewise.
16135
16136 * stupid.c (stupid_reg_compare): Likewise.
16137
16138 * toplev.c (decode_f_option): Likewise.
16139
16140 * tree.c (build_complex_type): Likewise.
16141
16142 Tue Oct 26 18:35:25 1999 Richard Earnshaw <rearnsha@arm.com>
16143
16144 * output.h: Don't unnecessarily conditionalize prototypes on TREE_CODE.
16145
16146 Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16147
16148 * reload.c (find_reloads): Compute mode and nregs fields of all
16149 reloads.
16150 * reload1.c (calculate_needs_all_insns): Simplify a bit.
16151 (calculate_needs): Use precomputed mode/nregs values.
16152 (allocate_reload_reg): Likewise.
16153 Break out two...
16154 (failed_reload, set_reload_reg): ... new functions.
16155 (choose_reload_regs_init): New function, mostly broken out from...
16156 (choose_reload_regs): ... here. Lose all the save_xxx nonsense.
16157 Also lose one #if 0 block.
16158
16159 Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
16160
16161 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
16162 substitution.
16163
16164 Tue Oct 26 01:27:32 1999 Mark Mitchell <mark@codesourcery.com>
16165
16166 * tree.h (BLOCK_TYPE_TAGS): Remove.
16167 (BLOCK_END_NOTE): Likewise.
16168 (BLOCK_LIVE_RANGE_FLAG): Likewise.
16169 (BLOCK_LIVE_RANGE_START): Likewise.
16170 (BLOCK_LIVE_RANGE_END): Likewise.
16171 (tree_block): Remove live_range_flag, live_range_var_flag, and
16172 type_tags. Remove end_note, live_range_start, and live_range_end.
16173 (remember_end_note): Remove prototype.
16174 * tree.c (build_block): Don't set BLOCK_TYPE_TAGS.
16175 * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call
16176 remember_end_note.
16177 * ggc-common.c (ggc_mark_tree_children): Don't mark
16178 BLOCK_TYPE_TAGS or BLOCK_END_NOTE.
16179 * integrate.c (adjust_copied_decl_tree): Remove.
16180 * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS.
16181 * stmt.c (last_block_end_note): Remove.
16182 (init_stmt): Don't add a GC root for it.
16183 (expand_fixup): Don't set it.
16184 (remember_end_note): Remove.
16185 (expand_end_bindings): Don't set last_block_end_note.
16186
16187 Tue Oct 26 00:41:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16188
16189 * reload1.c (reload_reg_free_for_value_p): Show
16190 RELOAD_FOR_OTHER_ADDRESS reloads can conflict with RELOAD_OTHER
16191 reloads.
16192
16193 Mon Oct 25 23:54:45 1999 Geoff Keating <geoffk@cygnus.com>
16194
16195 * expmed.c (extract_bit_field): Allow for the case of non-integer
16196 objects that are smaller than a word (like SFmode on a 64-bit
16197 machine).
16198
16199 * loop.c (basic_induction_var): A non-integer variable which is
16200 being set by a paradoxical subreg is probably not a biv.
16201
16202 1999-10-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16203
16204 * prefix.c (translate_name) Check for empty prefix string.
16205
16206 Mon Oct 25 23:10:45 1999 Andreas Schwab <schwab@suse.de>
16207
16208 * Makefile.in (CPP_CROSS_NAME): New variable.
16209 (install-cpp): Use it instead of CPP_INSTALL_NAME for the cross
16210 xcpp.
16211 (uninstall-cpp): Use CPP_INSTALL_NAME and CPP_CROSS_NAME for the
16212 names of the files to be uninstalled.
16213
16214 Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
16215
16216 * collect2.c (IS_DIR_SEPARATOR): Define.
16217 (prefix_from_string): Use IS_DIR_SEPARATOR and DIR_SEPARATOR.
16218
16219 * som.h (ASM_DECLARE_FUNCTION_NAME): Set PRIV_LEV for static
16220 functions too.
16221
16222 * haifa-sched.c (add_dependence): Update the true dependency
16223 cache the first time we add a true dependence to the LOG_LINKS chain.
16224
16225 Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
16226
16227 * fold-const.c (fold): Fix comment.
16228
16229 Mon Oct 25 22:49:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16230
16231 * dbxout.c (lastfile, cwd, dbxout_type_method_1,
16232 dbxout_symbol_location, dbxout_symbol_name, dbxout_init,
16233 dbxout_start_new_source_file, dbxout_source_file,
16234 dbxout_source_line, dbxout_finish, dbxout_type_fields,
16235 dbxout_type_methods, dbxout_symbol, dbxout_prepare_symbol):
16236 Constify a char*.
16237 (dbxout_types, dbxout_args, dbxout_symbol): Delete prototypes.
16238 (dbxout_symbol): Mark parameter `local' with ATTRIBUTE_UNUSED.
16239 (dbxout_block): Initialize variable `blocknum'.
16240
16241 * dbxout.h (dbxout_init, dbxout_finish,
16242 dbxout_start_new_source_file, dbxout_source_file, dbxout_types,
16243 dbxout_args, dbxout_source_line): Constify a char*.
16244
16245 * dwarfout.c (dwarf_tag_name, dwarf_attr_name,
16246 dwarf_stack_op_name, dwarf_typemod_name, dwarf_fmt_byte_name,
16247 dwarf_fund_type_name, name_attribute, stmt_list_attribute,
16248 low_pc_attribute, high_pc_attribute, body_begin_attribute,
16249 body_end_attribute, comp_dir_attribute, sf_names_attribute,
16250 src_info_attribute, mac_info_attribute, producer_attribute,
16251 lookup_filename, generate_macinfo_entry, fundamental_type_code,
16252 dwarfout_line, dwarfout_start_new_source_file, dwarfout_define,
16253 dwarfout_undef): Constify a char*.
16254 (add_incomplete_type, retry_incomplete_types): Add prototypes.
16255
16256 * dwarfout.h (dwarfout_define, dwarfout_undef,
16257 dwarfout_start_new_source_file, dwarfout_line): Constify a char*.
16258
16259 1999-10-25 Gavin Romig-Koch <gavin@cygnus.com>
16260
16261 * config/mips/mips.h (MIPS_ISA_DEFAULT): Insure it's defined.
16262 (MULTILIB_ISA_DEFAULT): New.
16263 (MULTILIB_DEFAULTS): Use it.
16264 * config/mips/mips.c (): Remove the now unnecessary definition
16265 of MIPS_ISA_DEFAULT.
16266 * config/mips/elf64.h (MULTILIB_DEFAULTS): Remove the now
16267 unnecessary definition.
16268
16269 Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
16270
16271 * arm.md (pic_load_addr): Add constraints to operand 1.
16272
16273 1999-10-25 Bruce Korb <autogen@linuxbox.com>
16274
16275 * fixinc/genfixes: Provide a means for specifying -D options to
16276 AutoGen
16277
16278 Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)
16279
16280 * arm.c (arm_override_options): Correct initialization of
16281 arm_fast_multiply, arm_arch4, arm_arch5, arm_ld_sched,
16282 arm_is_strong, and arm_is_6_or_7.
16283
16284 * loop.c (note_set_pseudo_multiple_uses_retval): New variable.
16285 (note_set_pseudo_multiple_uses): New function.
16286 (check_dbra_loop): Use not_set_pseudo_multiple_uses to determine
16287 if a pseudo set in the loop exit is used elsewhere.
16288
16289 Sun Oct 24 20:52:40 1999 Mark Mitchell <mark@codesourcery.com>
16290
16291 * i386.md (mulsi3): Tweak to work with SCO OSR5 COFF assembler.
16292
16293 Sun Oct 24 21:02:46 1999 Richard Henderson <rth@cygnus.com>
16294
16295 * i386.md (*lea_0): Collapse addsi_0, addsi_lea_[123] into
16296 a single load-address pattern.
16297
16298 Sun Oct 24 19:33:24 1999 Mark P. Mitchell <mark@codesourcery.com>
16299
16300 * haifa-sched.c (schedule_insns): Don't assign LUIDs differently
16301 depending on whether or not line-number notes are present.
16302
16303 Sun Oct 24 20:29:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16304
16305 * cccp.c (progname, file_buf, default_include, include_file,
16306 macrodef, definition, hashval, wchar_type, user_label_prefix,
16307 directive, out_fname, if_stack, safe_write, index0, get_lintcmd,
16308 expand_to_temp_buffer, is_system_include, base_name,
16309 absolute_filename, read_name_map, open_include_file,
16310 record_control_macro, check_precompiled, check_preconditions,
16311 pcfinclude, pass_thru_directive, create_definition,
16312 check_macro_name, comp_def_part, collect_expansion,
16313 check_assertion, read_token_list, assertion_install,
16314 assertion_lookup, eval_if_expression, conditional_skip,
16315 validate_else, skip_quoted_string, quote_string, macarg1,
16316 error_from_errno, install, lookup, hashf, dump_defn_1,
16317 perror_with_name, pfatal_with_name, main, trigraph_pcp,
16318 check_white_space, rescan, handle_directive, monthnames,
16319 special_symbol, do_include, remap_include_file, write_output,
16320 arglist, do_assert, do_unassert, do_line, do_error, do_once,
16321 do_ident, do_sccs, do_xifdef, skip_if_group,
16322 output_line_directive, macroexpand, macarg, change_newlines,
16323 initialize_builtins, make_definition): Constify a char*.
16324
16325 * pcp.h (stringdef): Likewise.
16326
16327 Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
16328
16329 * unroll.c (copy_loop_body): Examine SET_DEST of single_set
16330 not of pattern.
16331
16332 Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
16333 Richard Henderson <rth@cygnus.com>
16334
16335 * alias.c: Include ggc.h.
16336 (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
16337 (record_set): Verify enough room in reg_base_value.
16338 (init_alias_analysis): Allocate reg_base_value with xcalloc.
16339 Register it as a GC root.
16340 (end_alias_analysis): Free reg_base_value. Remove it as a GC root.
16341 * Makefile.in (alias.o): Depend on ggc.h.
16342
16343 * unroll.c (unroll_loop): Verify the insn before a barrier
16344 is a JUMP_INSN before checking JUMP_LABEL.
16345
16346 Sun Oct 24 15:46:44 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16347
16348 * mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
16349 * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
16350 * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
16351 * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
16352 * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
16353 * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
16354
16355 Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16356
16357 * output.h (ctors_section, dtors_section, bss_section): Prototype.
16358
16359 * alpha/alpha-interix.h (text_section): Delete prototype.
16360 * alpha/elf.h (text_section): Likewise.
16361 * arm/linux-elf.h (text_section): Likewise.
16362 * arm/linux-telf.h (text_section): Likewise.
16363 * c4x/c4x.h (text_section): Likewise.
16364 * dsp16xx/dsp16xx.h (bss_section): Likewise.
16365 * elfos.h (text_section): Likewise.
16366 * i386/aix386ng.h (text_section): Likewise.
16367 * i386/i386-interix.h (text_section): Likewise.
16368 * i386/sco5.h (text_section): Likewise.
16369 * i386/svr3gas.h (text_section): Likewise.
16370 * nextstep.h (text_section): Likewise.
16371 * psos.h (text_section): Likewise.
16372 * ptx4.h (text_section): Likewise.
16373 * svr3.h (text_section): Likewise.
16374 * svr4.h (text_section, ctors_section, dtors_section): Likewise.
16375
16376 Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16377
16378 * final.c (peephole): Delete prototype.
16379
16380 * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
16381 (pre_insert_copies): Remove unused variable `bb'.
16382
16383 * genrecog.c (debug_decision_0, debug_decision_list, main): Add
16384 prototypes.
16385
16386 * output.h (peephole): Add prototype.
16387
16388 Sun Oct 24 11:35:30 1999 Mark P. Mitchell <mark@codesourcery.com>
16389
16390 * config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
16391 -O0.
16392
16393 Sat Oct 23 21:13:00 1999 Mark Mitchell <mark@codesourcery.com>
16394
16395 * integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
16396 for inlined declarations.
16397
16398 Fri Oct 22 18:05:43 1999 Jeffrey A Law (law@cygnus.com)
16399
16400 * arm.c (logical_binary_operator): New fucntion.
16401 * arm.h (logical_binary_operator): Declare it.
16402 (PREDICATE_CODES): Handle logical_binary_operator.
16403 * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
16404 output constraints. Add appropriate splitters.
16405 (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
16406 (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
16407 (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.
16408
16409 Fri Oct 22 23:46:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16410
16411 * genoutput.c (struct operand_data): New elt eliminable.
16412 (output_operand_data): Write it.
16413 (scan_operands): Set it for MATCH_OPERAND, clear for other matchers.
16414 (compare_operands): Take it into account.
16415 * recog.h (struct insn_operand_data): New elt eliminable.
16416 * reload1.c (check_eliminable_occurrences, elimination_effects): New
16417 functions.
16418 (old_asm_operands_vec, new_asm_operands_vec): Delete.
16419 (eliminate_regs): Move code that detects changes to elimination
16420 target regs into new function elimination_effects.
16421 Delete one #if 0 block.
16422 Abort for USE, CLOBBER, ASM_OPERANDS and SET.
16423 (eliminate_regs_in_insn): Return immediately for USEs, CLOBBERs,
16424 ADDR_VECs, ADDR_DIFF_VECs and ASM_INPUTs.
16425 Only call eliminate_regs for real operands of the insn, not for parts
16426 of its structure or parts matched by things like match_operator.
16427 Use elimination_effects and check_eliminable_occurrences. Use
16428 copy_insn to duplicate the pattern when not in the final pass.
16429
16430 Fri Oct 22 09:03:44 1999 Mark Mitchell <mark@codesourcery.com>
16431
16432 * i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
16433 and fld.
16434
16435 1999-10-22 Bruce Korb <autogen@linuxbox.com>
16436
16437 * fixinc/README: document the "mach" machine matching test
16438 * fixinc/fixfixes.c: Implement the #else/#endif label fix
16439 * fixinc/fixtests.c: Implement the #else/#endif label test
16440 * fixinc/inclhack.def: utilize these tests and fixes
16441 * fixinc/inclhack.sh: regen
16442 * fixinc/fixincl.x: regen
16443 * fixinc/fixincl.sh: regen
16444
16445 Thu Oct 21 20:37:19 1999 Jeffrey A Law (law@cygnus.com)
16446
16447 * Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h. Also
16448 depend on ggc.h.
16449
16450 Thu Oct 21 20:30:19 1999 Matthias Klose <doko@debian.org>
16451
16452 * gcc.1: Document exit codes.
16453
16454 Thu Oct 21 12:49:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16455
16456 * calls.c: Include tm_p.h later, so everything we need is defined.
16457 * expr.c: Likewise.
16458 * function.c: Likewise.
16459
16460 * except.c: Include tm_p.h.
16461
16462 * sparc.c: Likewise.
16463 (dwarf2out_cfi_label): Don't prototype.
16464 (check_return_regs, epilogue_renumber,
16465 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
16466 ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
16467 ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
16468 ultra_schedule_insn): Add static prototype.
16469 (data_segment_operand, text_segment_operand): Call itself with the
16470 proper number of arguments.
16471 (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.
16472
16473 * sparc.h: Move all declarations to sparc-protos.h.
16474 (SELECT_RTX_SECTION): Pass a missing MODE argument to
16475 symbolic_operand.
16476
16477 * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.
16478
16479 * config/svr4.h (text_section, ctors_section, dtors_section): Add
16480 Prototypes.
16481 (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
16482 ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
16483 ASM_OUTPUT_ASCII): Constify a char*.
16484
16485 * sparc-protos.h: New file for sparc prototypes.
16486
16487 Thu Oct 21 12:23:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16488
16489 * function.c (record_insns, contains): Always declare and define.
16490 (record_insns): Mark with ATTRIBUTE_UNUSED.
16491
16492 Thu Oct 21 13:03:49 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
16493
16494 * config/arm/telf.h (ASM_OUTPUT_SECTION_NAME): Add %nobits option
16495 to .section when outputting a .bss section to deal with multiple
16496 .bss input sections (as happens with -fdata-sections)
16497 Also output %progbits, not @progbits so the assembler doesn't treat as
16498 a comment.
16499 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Likewise
16500
16501 * config/arm/lib1funcs.asm (_call_via_rX): Allow compilation of
16502 thumb parts even when building with non-thumb CPUs, by forcing
16503 thumb mode.
16504
16505 Wed Oct 20 22:57:58 1999 Jeffrey A Law (law@cygnus.com)
16506
16507 * sparc.md (movsf_const_intreg): If splitting, length must be > 1.
16508 (movdf_const_intreg_sp64): Similarly.
16509
16510 * local-alloc.c (update_equiv_regs): Check the correct insn
16511 for pre-existing REG_EQUIV notes.
16512
16513 Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
16514
16515 * cse.c (cse_end_of_basic_block): Don't return the end of a basic
16516 block reached by a branch if we're not going to actually process
16517 this block.
16518
16519 Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
16520
16521 * integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
16522 a local extern function declaration.
16523
16524 Wed Oct 20 13:56:01 1999 Richard Henderson <rth@cygnus.com>
16525
16526 * i386.c (ix86_expand_prologue): Properly wrap USE around
16527 reg for CALL_INSN_FUNCTION_USAGE.
16528
16529 Thu Oct 14 18:51:37 1999 Andrew Haley <aph@cygnus.com>
16530
16531 * config/mips/mips.md (movdf_internal1a): Allow floating-point
16532 move between GP_REGs.
16533
16534 Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
16535
16536 * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
16537 the mode size when finding out if an offset is legal.
16538
16539 Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
16540
16541 * basic-block.h (PROP_*): Move constants from ...
16542 * flow.c: ... here.
16543 (compute_bb_for_insn): Free the array before reallocating.
16544 (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
16545 (allocate_reg_life_data): Reset all reg variables collected by
16546 propagate_block.
16547 (get_block_head_tail): Don't convert from bb to block.
16548 (get_bb_head_tail): New. Update all callers of get_block_head_tail.
16549 (find_insn_reg_weight): Take block not bb.
16550 (schedule_block): Don't set block num for moved insns.
16551 (schedule_region): Don't update_life_info or find_insn_reg_weight.
16552 (schedule_insns): Do it here instead.
16553 * combine.c (combine_instructions): Invoke compute_bb_for_insn
16554 before update_life_info.
16555 * recog.c (split_all_insns, peephole2_optimize): Update for
16556 new arg to update_life_info.
16557 * rtlanal.c (remove_note): Cope with NULL note.
16558 * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
16559 if we did sched1.
16560
16561 Wed Oct 20 10:46:41 1999 Richard Earnshaw (rearnsha@arm.com)
16562
16563 * jump.c (jump_optimize_1): More accurately detect casesi insns.
16564
16565 * flow.c (merge_blocks_move_predecessor_nojumps): Re-order the basic
16566 block records so that merge_blocks_nomove will clean up correctly.
16567 (split_edge): Handle casesi insns.
16568
16569 * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
16570
16571 Tue Oct 19 23:43:50 1999 Jeffrey A Law (law@cygnus.com)
16572
16573 * pa.md (call, call_value): Do not emit a blockage after restoring
16574 the PIC register.
16575
16576 Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
16577
16578 * c-typeck.c (c_expand_asm_operands): Fix typo.
16579
16580 Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16581
16582 * arm.c (fpu_rhs_operand): Verify modes.
16583 (fpu_add_operand): Likewise.
16584 (di_operand): Likewise.
16585 (soft_df_operand): Likewise.
16586
16587 Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
16588
16589 * arm.c (arm_return_in_memory): APCS rules state that the elements
16590 of a structure returned in a register must be 'integer-like'.
16591
16592 1999-10-19 Bruce Korb <autogen@linuxbox.com>
16593
16594 * fixinc/Makefile.in: Change the generation rules to run `genfixes'
16595 in the source tree when the generated targets are out of date
16596 * fixinc/genfixes: Alter it to run individual fixes for make.
16597 * fixinc/README: rewrite
16598 * fixinc/inclhack.def: moved initial comments to README
16599
16600 Tue Oct 19 14:01:34 1999 Nick Clifton <nickc@cygnus.com>
16601
16602 * toplev.c (main): Do not generate an error message if an
16603 unrecognised command line switch is recognisable by another
16604 language. If extra_warnings are enabled, then generate a
16605 warning message instead.
16606
16607 Tue Oct 19 11:41:12 1999 Mumit Khan <khan@xraylith.wisc.edu>
16608
16609 * c-pragma.h (PRAGMA_INSERT_ATTRIBUTES): Delete macro.
16610 (insert_pack_attributes): Delete prototype.
16611
16612 * c-pragma.c (default_alignment): New static variable.
16613 (push_alignment): Initialize to current effective alignment.
16614 (pop_alignment): Use to set new alignment.
16615 (insert_pack_attributes): Delete function.
16616 (handle_pragma_token): Set default_alignment as well each time
16617 a #pragma pack(<n>) is encountered.
16618
16619 Tue Oct 19 02:03:00 1999 Jeffrey A Law (law@cygnus.com)
16620
16621 * reg-stack.c (stack_result): Aggregates are not returned in
16622 stack registers.
16623
16624 Tue Oct 19 01:26:48 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
16625
16626 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
16627
16628 Mon Oct 18 15:19:41 1999 Richard Henderson <rth@cygnus.com>
16629
16630 * basic-block.h (set_block_num): Declare.
16631 * flow.c (update_life_info): Don't call compute_bb_for_insn
16632 or free_basic_block_vars.
16633 * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
16634 (insn_orig_block): Remove.
16635 (INSN_BLOCK): Remove. Update all callers to use BLOCK_NUM.
16636 (schedule_block): Keep BLOCK_NUM up-to-date.
16637 (schedule_insns): Use compute_bb_for_insn.
16638 * recog.c (split_all_insns): Likewise.
16639 (peephole2_optimize): Likewise.
16640
16641 Mon Oct 18 18:50:51 1999 Andreas Schwab <schwab@suse.de>
16642
16643 * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
16644 if the pic register is used.
16645
16646 Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16647
16648 * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
16649 (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
16650 if that tests TREE_PERMANENT.
16651
16652 Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
16653
16654 * cse.c (invalidate_for_call): Do not remove memory references from
16655 the table here. It's handled elsewhere.
16656
16657 * haifa-sched.c (add_dependence): Protect references to the
16658 true dependency cache with #ifdef INSN_SCHEDULING.
16659 (remove_dependence): Similarly.
16660
16661 * mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
16662 to the cfg code that this is a return instruction.
16663 * mn10300.md (return_internal): Similarly.
16664
16665 * combine.c (get_last_value): If the last set of a register
16666 is after subst_low_cuid, then we can not use it to determine
16667 the register's last value.
16668
16669 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
16670
16671 * Makefile.in: Back out previous change.
16672
16673 Sun Oct 17 15:22:50 1999 Jeffrey A Law (law@cygnus.com)
16674
16675 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
16676
16677 * haifa-sched.c (add_dependence): Only check/update the cache
16678 if it exists.
16679 (remove_dependence): Likewise.
16680 (schedule_insns): Only create the true_dependency_cache if the
16681 average number of instructions in a basic block is very large.
16682
16683 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
16684
16685 * Makefile.in (ggc-common.o): Depend on genrtl.h.
16686 (ggc-simple.o): Likewise.
16687 (ggc-page.o): Likewise.
16688
16689 Sun Oct 17 02:09:50 1999 Andrew MacLeod <amacleod@cygnus.com>
16690
16691 * basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
16692 Prototype for exported functions.
16693 (pre_lcm, pre_rev_lcm): Remove prototypes.
16694 * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
16695 (compute_available): Move to lcm.c, and change parameter order.
16696 (one_classic_gcse_pass): Call compute_ae_kill with parameters.
16697 (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
16698 (gcse_main): No longer call compute_preds_succs. Rebuild the
16699 set table after reach pre pass.
16700 (pre_insert_map, pre_delete_map, edge_list): New.
16701 (alloc_pre_mem): Allocate edge vectors.
16702 (free_pre_mem): Delete edge vectors.
16703 (compute_pre_data): Call new edge based lcm routines.
16704 (process_insert_insn): New function.
16705 (insert_insn_end_bb): Use it.
16706 (pre_edge_insert): New function.
16707 (pre_insert_copy_insn): Formatting fixes. Update BLOCK_END as
16708 needed.
16709 (pre_insert_copies): Revamp using new edge based lcm outputs.
16710 (pre_delete): Likewise.
16711 (one_pre_gcse_pass): Insert & remove fake edges to the exit
16712 block.
16713 (compute_code_hoist_vbeinout): New new edge based routines.
16714 * lcm.c: Remove all the old LCM functions. Replace with new ones
16715 that work with the new cfg datastructures and work with edges
16716 instead of blocks.
16717
16718 Sun Oct 17 00:44:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16719
16720 * reload.h (struct reload): Add new fields "mode" and "nregs".
16721 * reload1.c: Change all occurrences of reload_mode and reload_nregs
16722 to reference the "mode" and "nregs" field within struct reload.
16723
16724 Sat Oct 16 21:50:28 1999 Jeffrey A Law (law@cygnus.com)
16725
16726 * haifa-sched.c (true_dependency_cache): New.
16727 (add_dependence): Use the true dependency cache to avoid expensive
16728 walks down the LOG_LINKS dependency list. Add entries to the
16729 cache as necessary.
16730 (remove_dependence): Remove entries from the true dependency cache
16731 as needed.
16732 (schedule_insns): Allocate and initialize and free the true
16733 dependency cache.
16734
16735 * haifa-sched.c (schedule_insns): Do not remove inter-block
16736 dependencies anymore.
16737
16738 Sat Oct 16 11:19:52 1999 Richard Henderson <rth@cygnus.com>
16739
16740 * i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
16741 * i386/t-winnt: Likewise.
16742
16743 Sat Oct 16 11:11:54 1999 Richard Henderson <rth@cygnus.com>
16744
16745 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
16746
16747 1999-10-16 Manfred Hollstein <mhollstein@cygnus.com>
16748
16749 * Makefile.in (LANGUAGES): Omit "proto".
16750 (clean): Remove stale comment about removing unprotoize.c.
16751
16752 Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16753
16754 * protoize.c (safe_read, safe_write): Avoid the gcc extension of
16755 using arithmetic on void pointers.
16756
16757 Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
16758
16759 * haifa-sched.c (compute_block_forward_dependencies): Only check
16760 for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
16761
16762 Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
16763
16764 * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
16765 (expr_equiv_p): Reject memories with different alias sets.
16766
16767 Fri Oct 15 15:17:29 1999 Greg McGary <gkm@gnu.org>
16768
16769 * flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
16770 * toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
16771 (f_options): Add "bounded-pointers" and "bounds-check" entries.
16772 * c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
16773 (lang_init): Set default for flag_bounds_check if still "unspecified".
16774
16775 Sat Oct 16 13:42:29 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16776
16777 * config/c4x/c4x.md (HF mode patterns): Add missing modes.
16778
16779 Sat Oct 16 13:37:46 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16780
16781 * config/c4x/c4x.md (movstrqi_small): Utilise parallel move
16782 instructions.
16783
16784 Sat Oct 16 13:26:47 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16785
16786 * config/c4x/c4x.md (*db_noclobber,
16787 *decrement_and_branch_until_zero_noclobber): New patterns and
16788 associated splitters.
16789
16790 Sat Oct 16 13:13:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16791
16792 * config/c4x/c4x.md (parallel instruction patterns): Rework
16793 constraints to keep reload happy.
16794
16795 Sat Oct 16 13:03:16 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16796
16797 * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
16798 *one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
16799 *andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
16800 Add new patterns and associated post-reload splitters.
16801
16802 Sat Oct 16 12:42:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16803
16804 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
16805
16806 Sat Oct 16 12:34:44 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16807
16808 * config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
16809 if appropriate.
16810 * config/c4x/c4x.md (rpts_top): New pattern and splitter.
16811
16812 Sat Oct 16 12:26:30 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16813
16814 * config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF
16815 memory mode.
16816
16817 Fri Oct 15 17:02:09 1999 Jeffrey A Law (law@cygnus.com)
16818
16819 * pa.c (move_operand): Rely on memory_address_p to determine the
16820 validity of non-indexed memory addresses.
16821 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
16822 operand in DFmode and SFmode when generating PA2.0 code.
16823
16824 Fri Oct 15 14:25:19 1999 Richard Henderson <rth@cygnus.com>
16825
16826 * print-rtl.c (print_rtx): Limit last 'u' change to LABEL_REF.
16827
16828 Fri Oct 15 13:48:45 1999 Richard Henderson <rth@cygnus.com>
16829
16830 * mips.c (function_prologue): Fix argument types.
16831 * mips.md (casesi): Use emit_jump_insn for casesi_internal.
16832 (casesi_internal): Write to the scratch register.
16833
16834 1999-10-15 11:16 -0700 Zack Weinberg <zack@bitmover.com>
16835
16836 * cppexp.c (cpp_parse_escape): Make static. Change second arg
16837 to U_CHAR **.
16838 (parse_charconst): Delete unnecessary cast when calling
16839 cpp_parse_escape.
16840 (cpplib.h): Kill prototype of cpp_parse_escape.
16841
16842 Fri Oct 15 11:02:46 1999 Richard Henderson <rth@cygnus.com>
16843
16844 Based on patch from Michael Gschwind <mikeg@watson.ibm.com>:
16845 * unroll.c (unroll_loop): Cast return value of alloca.
16846 * i370/i370.c: Include function.h and toplev.h.
16847 (i370_label_scan): Remove c++ commented abort.
16848 * i370/i370.h (HANDLE_PRAGMA): Takes three arguments.
16849 (ASM_OUTPUT_LABELREF): Fix TOUPPER/else broken 16 Sept.
16850 * i370/xm-i370.h (HOST_BITS_PER_LONGLONG): Define.
16851 * i370/xm-mvs.h, i370/xm-oe.h: Likewise.
16852
16853 Fri Oct 15 03:01:01 1999 Loren Rittle <ljrittle@acm.org>
16854
16855 * config/t-freebsd: Do not override USER_H.
16856 * ginclude/stddef.h: Generalize check for _MACHINE_ANSI_H_.
16857
16858 Fri Oct 15 02:37:28 1999 Alastair J. Houghton <ajh8@doc.ic.ac.uk>
16859 Mumit Khan <khan@xraylith.wisc.edu>
16860
16861 * c-parse.in (component_decl): Support anonymous struct/union.
16862 (%expect): Update.
16863 * c-parse.y: Regenerate.
16864 * c-parse.c: Likewise.
16865 * objc/objc-parse.y: Likewise.
16866 * objc/objc-parse.c: Likewise.
16867 * c-decl.c (finish_struct): Don't sort the fields.
16868 (field_decl_cmp): Delete unused function.
16869
16870 Fri Oct 15 01:20:52 1999 Richard Henderson <rth@cygnus.com>
16871
16872 * sparc.md (movsf_const_intreg): Revert last constraint change.
16873 (movdf_const_intreg_sp32): Likewise.
16874
16875 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
16876
16877 * cse.c: Include hashtab.h instead of splay-tree.h
16878 (struct cse_reg_info): No longer use variant union. Add new
16879 field "regno". All references changed to avoid union.
16880 (cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
16881 (free_cse_reg_info): Remove.
16882 (hash_cse_reg_info, cse_reg_info_equal_p): New functions.
16883 (get_cse_reg_info): Revamp to use expandable hash tables instead
16884 of splay trees. Initialize new fields in cse_reg_info structure.
16885 (new_basic_block): Similarly.
16886
16887 Thu Oct 14 23:51:56 1999 Richard Henderson <rth@cygnus.com>
16888
16889 * genrecog.c (message_with_line): Prototype.
16890 (validate_pattern): Pass along the set for the dest, not a flag.
16891 Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
16892 Check for PC/CC0 as sources.
16893 (nodes_identical): Check for children position match before
16894 allowing the combination.
16895
16896 * rtl.c (read_rtx): Track line number across \\\n.
16897
16898 Thu Oct 14 23:50:25 1999 Richard Henderson <rth@cygnus.com>
16899
16900 * mips.h (SPECIAL_MODE_PREDICATES): New.
16901 * mips.md (*) Use nonimmediate_operand not general_operand for outputs.
16902 (movdi+1, movsi+1): Add output reload constraint.
16903 (casesi_internal): Likewise. Fix commentary.
16904 (return_internal): Use pmode_register_operand.
16905
16906 Thu Oct 14 23:19:34 1999 Richard Henderson <rth@cygnus.com>
16907
16908 * 1750a.md (movstrqi): Add missing output reload constraint.
16909 (call_value): Likewise.
16910 * a29k.md (cpxxx patterns): Add missing match_operator mode.
16911 (jmpfdec): Add missing inout reload constraint.
16912 * elxsi.md (addsi patterns): Add missing output reload constraint.
16913 (move from sp): Use @ alternates.
16914 (call_value): No constraint on output.
16915 * fr30.md (movsi_pop): Add missing output reload constraint.
16916 (movsf_constant_store): Likewise.
16917 (splits): Remove constraints.
16918 (subsi3): Add missing mode.
16919 * i370.md (cmpstrsi+1): Add missing output reload constraint.
16920 (call_value): Likewise.
16921 * i960.md (cmpinc/cmpdec patterns): Add inout reload constraints.
16922 * m32r.h (PREDICATE_CODES): Add seth_add3_operand.
16923 * m32r.md (movsicc_internal): Add output reload constraint.
16924 (movstrsi_internal): Add inout reload constraints.
16925 * m88k.h (reg_names): Don't declare.
16926 (SPECIAL_MODE_PREDICATES): New.
16927 * m88k.md (*): Use register_operand not reg_or_0_operand
16928 on destinations.
16929 * mn10200.h (PREDICATE_CODES): New.
16930 * ns32k.md (ffs pattern): Add output reload constraint.
16931 * pdp11.md (sob pattern): Add inout reload constraint.
16932 * sh.md (splits): Remove constraints.
16933 (indirect_jump_scratch, fpu_switch): Add output reload constraint.
16934 * v850.md (pattern_is_ok_for_epilogue): Likewise.
16935 * vax.md (jgequ pattern): Add inout reload constraint.
16936
16937 Fri Oct 15 00:05:00 1999 Jeffrey A Law (law@cygnus.com)
16938
16939 * configure.in (djgpp): Revert previous patch.
16940 * configure: Rebuit.
16941 * config/i386/djgpp.h: Revert previous patch.
16942
16943 Fri Oct 15 00:00:24 1999 Loren J. Rittle <ljrittle@acm.org>
16944
16945 * fixinc/inclhack.def: Restore patch lost during last merge of
16946 "no_bogosity" branch.
16947 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
16948
16949 Thu Oct 14 23:57:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
16950
16951 * fixincludes: Add a HPUX 11 fix for inttypes.h.
16952 * fixinc/inclhack.def: Same.
16953 * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate.
16954
16955 Thu Oct 14 22:51:55 1999 Richard Henderson <rth@cygnus.com>
16956
16957 * alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Accept ADDRESSOF
16958 as the base of a PLUS.
16959
16960 Fri Oct 15 18:36:07 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16961
16962 * config/c4x/c4x.md: Define mode for remaining unspec operators.
16963 * config/c4x/c4x.c (dst_operand): Use nonimmediate_operand.
16964
16965 Thu Oct 14 22:14:23 1999 Richard Henderson <rth@cygnus.com>
16966
16967 * pa.md (post_stw+1): Use pmode_register_operand.
16968 (dcacheflush, icacheflush): Likewise.
16969
16970 * i386.md (movstricthi_1): Allow r/r.
16971
16972 Thu Oct 14 19:44:08 1999 Jan Hubicka <hubicka@freesoft.cz>
16973
16974 * fold-const.c (fold): Convert (or (not arg0) (not arg1))
16975 to (not (and (arg0) (arg1))). Similary for and.
16976
16977 * fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
16978 fallthrough to associate code.
16979 Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
16980 bits in common.
16981
16982 * combine.c (simplify_logical): Convert XOR to IOR if operands have
16983 no bits in common; remove XOR to ROTATE conversion.
16984
16985 Fri Oct 15 17:40:11 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16986
16987 * config/c4x/c4x.h (c4x_va_start, c4x_va_arg): Declare.
16988
16989 Fri Oct 15 17:27:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16990
16991 * config/c4x/c4x.c (dst_operand): New.
16992 (PREDICATE_CODES): Update.
16993 * config/c4x/c4x.h (dst_operand): Declare it.
16994 * config/c4x/c4x.md: Define mode for each unspec usage.
16995 (move patterns): Use dst_operand predicate instead of src_operand.
16996 (movqi_update, movqf_update): Delete.
16997
16998 Thu Oct 14 18:48:54 1999 Richard Henderson <rth@cygnus.com>
16999
17000 * recog.c (pmode_register_operand): New.
17001 * recog.h: Declare it.
17002 * genrecog.c (pred_codes): Likewise.
17003 (special_mode_pred_table): Likewise.
17004 (validate_pattern): Don't warn no mode for address_operand.
17005
17006 * print-rtl.c (print_rtx) [LABEL_REF]: Only do full subexpression
17007 if the operand is not insn-like.
17008
17009 Thu Oct 14 19:38:42 1999 Jeffrey A Law (law@cygnus.com)
17010 Sylvian Pion <Sylvain.Pion@sophia.inria.fr>
17011
17012 * fold-const.c (fold): Handle more simplifications allowed by IEEE.
17013
17014 Thu Oct 14 17:30:14 1999 Richard Henderson <rth@cygnus.com>
17015
17016 * sparc.md (*): Use {nonimmediate,register}_operand as appropriate
17017 instead of general_operand in a SET_DEST. Use const_double_operand
17018 instead of an explicit test against CONST_DOUBLE.
17019 (movsf_const_lo): Add missing register mode.
17020 (goto_handler_and_restore): Add auxiliary test for Pmode.
17021 (flush): Adjust to use address_operand.
17022 (return_sf_no_fpu): Add missing output constraint.
17023
17024 Thu Oct 14 17:21:26 1999 Richard Henderson <rth@cygnus.com>
17025
17026 * rs6000.md (call_value_indirect_aix32): Use wildcard match_operand
17027 for call return value.
17028 (call_value_indirect_aix64, call_value_indirect_nt): Likewise.
17029
17030 Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
17031
17032 * toplev.c (main): Only warn about options for other languages.
17033 * collect2.c (main): Pass -w to sub-gcc.
17034
17035 Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
17036
17037 * flow.c (propagate_block): Add call-clobbered registers to
17038 significant too.
17039
17040 * flow.c (propagate_block): Use free_EXPR_LIST_list instead of
17041 zapping mem_set_list.
17042 (invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
17043 (mark_set_1, mark_used_regs): Likewise.
17044
17045 Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
17046
17047 * m68k.md (zero_extendsidi2): Add missing output reload constraint.
17048
17049 Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17050
17051 * invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
17052 -Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
17053 options. Also add a new item "C-only Warning Options" to the
17054 option summary.
17055
17056 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
17057
17058 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
17059 from multiple calls.
17060
17061 Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
17062
17063 * i386.md (call value patterns): Move to the end of the file.
17064 (prologue_set_got, prologue_get_pc): Use register_operand for op 0.
17065
17066 1999-10-14 Mark Elbrecht <snowball3@bigfoot.com>
17067
17068 * configure.in (djgpp configuration): Define extra_objects..
17069 * configure: Rebuilt.
17070 * config/i386/djgpp.h (CTORS_SECTION_ASM_OP): Define.
17071 (DTORS_SECTION_ASM_OP): Define.
17072 (INIT_SECTION_ASM_OP): Define.
17073 (FINI_SECTION_ASM_OP): Define.
17074 (DATA_SECTION_ASM_OP): Define.
17075 (TEXT_SECTION_ASM_OP): Define.
17076 (EH_FRAME_SECTION_ASM_OP): Define.
17077 (LINK_COMMAND_SPEC): Remove -Tdjgpp.djl.
17078 (STARTFILE_SPEC): Add crtbegin.o.
17079 (ENDFILE_SPEC): Define and add crtend.o. Move argument -Tdjgpp.djl
17080 to here from LINK_COMMAND_SPEC.
17081 (DO_GLOBAL_CTORS_BODY): Define.
17082 (CRTSTUFF_USE_FINI_SECTION): Define
17083 (HAS_INIT_SECTION): Delete.
17084
17085 Thu Oct 14 05:08:14 1999 Andreas Schwab <schwab@suse.de>
17086
17087 * Makefile.in (all.cross): Depend on xcpp$(exeext).
17088
17089 Thu Oct 14 04:00:40 1999 Richard Henderson <rth@cygnus.com>
17090
17091 * pa.h (PREDICATE_CODES): New.
17092
17093 * genrecog.c (validate_pattern): Condense the destination
17094 non-lvalue message.
17095
17096 Thu Oct 14 03:23:08 1999 Richard Henderson <rth@cygnus.com>
17097
17098 * alpha.md (call-1): Supply missing mode for operator.
17099 (*): Add missing output reload constraints. Remove constraints
17100 from define_splits.
17101
17102 * i386.h (SPECIAL_MODE_PREDICATES): New.
17103 * i386.md (movstricthi_1): Use nonimmediate_operand for op 0.
17104 (movqi_1, movdi_1, movdi_2, some splits): Likewise.
17105 (addsi_lea_3): Add missing mode for op 3.
17106 (prologue_set_got, prologue_get_pc): Add missing modes.
17107 (*) Add missing output reload constraints.
17108
17109 Thu Oct 14 03:59:57 1999 Stephane Carrez <stcarrez@worldnet.fr>
17110
17111 * stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
17112 check for member bit-size overflow and use var_size if it occurs.
17113 (layout_record): Use bitsize_int() to define the type size in bits.
17114 Likewise for computation and assignment to DECL_FIELD_BITPOS.
17115 (layout_decl): Likewise when assigning to DECL_SIZE.
17116
17117 Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
17118
17119 * genrecog.c (validate_pattern): Typo last change. Verify
17120 that output operands have output reloads.
17121
17122 Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
17123
17124 * genrecog.c (special_mode_pred_table): New.
17125 (NUM_SPECIAL_MODE_PREDS): New.
17126 (find_operand): New.
17127 (validate_pattern): New argument `insn'. Warn for assignment to
17128 any predicate accepting non-lvalues. Conditionaly warn for
17129 match_operand without a mode. Try much harder to match source
17130 and destination modes on a set.
17131 * tm.texi (SPECIAL_MODE_PREDICATES): Document.
17132
17133 Thu Oct 14 02:54:13 1999 Jeffrey A Law (law@cygnus.com)
17134
17135 * fold-const.c (fold): Detect rotates built from BIT_XOR_EXPRs.
17136
17137 Thu Oct 14 02:18:19 1999 Marc Espie <espie@cvs.openbsd.org>
17138
17139 * combine.c (simplify_logical): Recognize xor pattern that encodes
17140 rotation.
17141
17142 Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17143
17144 * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
17145 alignment.
17146
17147 Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
17148
17149 * ggc-page.c (MAP_FAILED): Provide default.
17150
17151 Wed Oct 13 21:41:59 1999 Richard Henderson <rth@cygnus.com>
17152
17153 * sparc.c (symbolic_operand): Verify mode; don't accept CONST_DOUBLE.
17154 * sparc.h (PREDICATE_CODES): Update.
17155
17156 Wed Oct 13 21:18:17 1999 Richard Henderson <rth@cygnus.com>
17157
17158 * alpha.c (some_ni_operand): New.
17159 * alpha-protos.h: Declare it.
17160 * alpha.h (PREDICATE_CODES): Update.
17161 * alpha.md (sXaddq reload insns): Use some_ni_operand
17162 for SET_DEST instead of some_operand.
17163
17164 Wed Oct 13 21:04:45 1999 Richard Henderson <rth@cygnus.com>
17165 Jim Wilson <wilson@cygnus.com>
17166
17167 * genrecog.c (maybe_both_true_2): Don't compare modes of
17168 two DT_pred tests.
17169 (process_tree): Elide peephole2_insns. Invoke simplify_tests
17170 after find_afterward.
17171 (debug_decision_1): Dump next and afterward codes.
17172
17173 Wed Oct 13 20:35:16 1999 Richard Henderson <rth@cygnus.com>
17174
17175 * rtl.c (dump_and_abort): Remove.
17176 (fatal_with_file_and_line): New.
17177 (fatal_expected_char): New.
17178 (read_rtx_lineno, read_rtx_filename): New.
17179 (read_skip_spaces): Track line number.
17180 (read_name): Use fatal_with_file_and_line.
17181 (read_rtx): Use fatal_expected_char. Track line number.
17182 * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
17183
17184 * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
17185 if it isn't a CODE_LABEL.
17186
17187 * genattr.c (main): Set read_rtx_filename.
17188 * genattrtab.c (main): Likewise.
17189 * gencodes.c (main): Likewise.
17190 * genconfig.c (main): Likewise.
17191 * genemit.c (main): Likewise.
17192 * genextract.c (main): Likewise.
17193 * genflags.c (main): Likewise.
17194 * genopinit.c (main): Likewise.
17195 * genoutput.c (main): Likewise.
17196 * genpeep.c (main): Likewise.
17197
17198 * genrecog.c (decision_test.u.insn): Add `lineno'.
17199 (pattern_lineno, error_count): New variables.
17200 (message_with_line): New.
17201 (add_to_sequence): Break out checking code to ...
17202 (validate_pattern): ... here. Detect SET_DEST matching CONST_INT.
17203 (merge_insn): Use message_with_line.
17204 (make_insn_sequence): Use validate_pattern. Record insn lineno.
17205 (main): Set read_rtx_filename, pattern_lineno. Exit early on error.
17206
17207 Wed Oct 13 22:01:35 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17208
17209 * expr.c (store_constructor): Clear union if constructor is empty.
17210
17211 Wed Oct 13 15:19:04 1999 Jim Wilson <wilson@cygnus.com>
17212
17213 * config/rs6000/sysv4.h (CC1_SPEC): Fix errors from Jan 19 change.
17214 Add !endian checks. Change %{...} to %(...).
17215
17216 Wed Oct 13 13:30:34 1999 Richard Henderson <rth@cygnus.com>
17217
17218 * i386.md (*addsi3_cc): Renamed from addcsi3.
17219 (*addsi3_carry): Renamed from addxsi3.
17220 (*subsi3_cc): Renamed from subcsi3.
17221 (*subsi3_carry): Renamed from subxsi3.
17222 (*xorqi_cc_1): Renamed from xorcqi_1.
17223 (xorqi_cc_ext_1): Renamed from xorcqi_ext_1.
17224 * i386.c (ix86_expand_fp_compare): Update for xorqi_cc_ext_1.
17225
17226 Wed Oct 13 13:10:46 1999 Richard Henderson <rth@cygnus.com>
17227
17228 * Makefile.in (ggc-common.o): Depend on RTL_H not RTL_BASE_H.
17229 (ggc-simple.o, ggc-page.o, ggc-none.o, ggc-callbacks.o): Likewise.
17230
17231 1999-10-13 Brendan Kehoe <brendan@cygnus.com>
17232
17233 * regmove.c (optimize_reg_copy_3): Make sure P is non-nil as we
17234 climb up the chain of insns.
17235
17236 Wed Oct 13 10:20:58 1999 Richard Henderson <rth@cygnus.com>
17237
17238 * genrecog.c (write_subroutine): Careful for null trees.
17239 (process_tree): Don't elide empty functions.
17240
17241 Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
17242
17243 * Makefile.in (genrtl.o): Depend on ggc.h.
17244 * configure.in (valloc): Probe for it.
17245 (with-gc): Use ggc-page if valloc present.
17246 * ggc-common.c (ggc_mark_rtx_children): Use ggc_mark_if_gcable.
17247 (ggc_mark_rtvec_children): New from corpse of ggc_mark_rtvec.
17248 (ggc_alloc_string): Moved from ggc-page.c.
17249 * ggc-none.c (ggc_alloc_obj): New.
17250 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove.
17251 * ggc-page.c (sys/mman.h): Only include if HAVE_MMAP.
17252 (struct globals): Likewise for dev_zero_fd.
17253 (init_ggc): Likewise for it's initialization.
17254 (ggc_allocated_p): Move careful dereference from ...
17255 (ggc_lookup_page_table): ... here. Delete.
17256 (lookup_page_table_entry): Don't use ggc_lookup_page_table.
17257 (alloc_anon): Use valloc if no mmap.
17258 (release_pages): Use free if using valloc.
17259 (ggc_alloc_obj): Renamed from alloc_obj.
17260 (ggc_set_mark): Renamed from mark_obj.
17261 (ggc_mark_if_gcable): Renamed from ggc_mark_string_if_gcable.
17262 (ggc_alloc_rtx, ggc_alloc_rtvec): Delete.
17263 (ggc_alloc_tree, ggc_alloc_string, ggc_alloc): Delete.
17264 (ggc_set_mark_rtx, ggc_set_mark_rtvec): Delete.
17265 (ggc_set_mark_tree, ggc_mark_string, ggc_mark): Delete.
17266 (ggc_collect): Use fp printing instead of our own rounding.
17267 * ggc-simple.c (IS_MARKED, IGNORE_MARK): Delete.
17268 (GGC_STRING_MAGIC, GGC_STRING_MAGIC_MARK): Delete.
17269 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): Delete.
17270 (struct ggc_rtx, struct ggc_rtvec, struct ggc_tree): Delete.
17271 (struct ggc_string, struct ggc_any): Delete.
17272 (offsetof): Provide default definition.
17273 (GGC_BALANCE, GGC_ALWAYS_COLLECT, GGC_ALWAYS_VERIFY): New.
17274 (PTR_KEY): New.
17275 (struct ggc_mem): New, from corpse of ggc_any.
17276 (struct ggc_status): Delete.
17277 (ggc_chain, ggc_allocated_strings, ggc_strings_used): Delete.
17278 (n_rtxs_collected, n_vecs_collected, n_trees_collected): Delete.
17279 (n_strings_collected, n_anys_collected): Delete.
17280 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Delete.
17281 (ggc_alloc_string, ggc_alloc): Delete.
17282 (ggc_free_rtx, ggc_free_rtvec, ggc_free_tree): Delete.
17283 (ggc_free_string, ggc_free_any): Delete.
17284 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Delete.
17285 (ggc_compare_addresses, ggc_mark_string): Delete.
17286 (ggc_mark_string_if_gcable, ggc_mark): Delete.
17287 (search_data): Delete.
17288 (struct globals): New.
17289 (GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED): New.
17290 (tree_insert, tree_lookup): New.
17291 (ggc_alloc_obj, ggc_set_mark, ggc_mark_if_gcable): New.
17292 (clear_marks, sweep_objs): New.
17293 (ggc_collect): Gut. Use clear_marks, sweep_objs.
17294 (init_ggc): Set allocated_last_gc.
17295 (ggc_push_context): Gut. Use G.context.
17296 (ggc_pop_context): Likewise.
17297 (ggc_pop_context_1): New.
17298 (debug_ggc_tree): New.
17299 (debug_ggc_balance, tally_leaves): New.
17300 * ggc.h (ggc_mark_rtvec, ggc_mark_string, ggc_mark): Remove decl.
17301 (ggc_mark_string_if_gcable): Remove decl.
17302 (ggc_mark_rtx, ggc_mark_tree): Use ggc_set_mark.
17303 (ggc_mark_rtvec_children): New.
17304 (ggc_mark_rtvec, ggc_mark_string, ggc_mark): New.
17305 (ggc_mark_if_gcable): New decl.
17306 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove decl.
17307 (ggc_alloc_tree, ggc_alloc): Likewise.
17308 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Likewise.
17309 (ggc_alloc_obj): New decl.
17310 (ggc_alloc_rtx, ggc_alloc_rtvec): New macros.
17311 (ggc_alloc_tree, ggc_alloc): Likewise.
17312 (ggc_set_mark): New decl.
17313 * rtl.h (struct rtx_def): Remove gc_mark.
17314 (struct rtvec_def): Likewise.
17315 * tree.h (struct tree_common): Likewise.
17316
17317 Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
17318
17319 * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
17320 float_format and thread_file definitions.
17321 * configure: Rebuilt.
17322
17323 Wed Oct 13 09:25:03 1999 Niels Möller <nisse@lysator.liu.se>
17324
17325 * extend.texi (Function Names): Document types of function names.
17326
17327 Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17328
17329 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
17330 an earlyclobbered output conflict with RELOAD_INPUT reloads.
17331
17332 Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17333
17334 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
17335
17336 Tue Oct 12 23:19:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17337
17338 * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
17339
17340 Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org>
17341
17342 * collect2.c (main): Do prelimnary link on AIX if rflag.
17343
17344 Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
17345
17346 * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
17347 __CTOR_LIST__ in opposite order, which is the correct order for sorted
17348 constructors.
17349 (__do_global_dtors): similarly for __DTOR_LIST__.
17350
17351 Fri Oct 8 19:46:03 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17352 Diego Novillo <dnovillo@cygnus.com>
17353
17354 * config/sh/sh.h (REGISTER_MOVE_COST): Handle moves from T_REGS to
17355 FPUL_REGS.
17356
17357 Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
17358
17359 * fixincl/*: Merged "no_bogosity" branch
17360 * fixincl/fixlib.h: protect against doubly defining t_bool
17361 * fixincl/server.h: protect against doubly defining t_bool
17362
17363 Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
17364
17365 * genoutput.c: Include toplev.h.
17366
17367 Mon Oct 11 18:56:14 1999 Jim Wilson <wilson@cygnus.com>
17368
17369 * config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
17370 Undef.
17371 * configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
17372 * configure: Regenerate.
17373
17374 Mon Oct 11 16:07:49 1999 Richard Henderson <rth@cygnus.com>
17375
17376 * gcse.c (delete_null_pointer_checks): Returns void.
17377
17378 Mon Oct 11 20:31:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17379
17380 * rtl.c (copy_rtx): Don't use accessor macros to copy fields.
17381 * emit-rtl.c (copy_insn_1): Likewise.
17382
17383 Mon Oct 11 13:29:06 1999 Geoffrey Keating <geoffk@cygnus.com>
17384
17385 * config/mips/mips.c (mips_build_va_list): Correct
17386 TREE_CHAIN setting when hard-float.
17387 (mips_va_start): Use corrected setting.
17388 (mips_va_arg): Likewise. Also pass a tree to build of
17389 POSTINCREMENT_EXPR rather than a naked 'int'.
17390
17391 Sun Oct 10 18:27:27 1999 Mark Mitchell <mark@codesourcery.com>
17392
17393 * ggc.h (ggc_push_context): Fix comment.
17394 (ggc_pop_context): Likewise.
17395 (mark_string_if_gcable): Likewise.
17396 * ggc-common.c (ggc_mark_rtx_children): Use
17397 ggc_mark_string_if_gcable.
17398 * ggc-page.c (ggc_lookup_page_table): New function.
17399 (ggc_allocated_p): Likewise.
17400 (mark_obj): Fix formatting.
17401 (ggc_mark_string_if_gcable): New function.
17402 * ggc-simple.c (ggc_allocated_strings): New variable.
17403 (ggc_strings_used): Likewise.
17404 (ggc_compare_addresses): New function.
17405 (ggc_pop_context): Pop the `any' memory too.
17406 (ggc_mark_string_if_gcable): New function.
17407 (ggc_collect): Initialize and tear down ggc_allocated_strings.
17408
17409 Sun Oct 10 20:05:21 1999 David Edelsohn <edelsohn@gnu.org>
17410
17411 * rs6000.md (movstrsi_?reg): Use preferred rD/rS = r5 form.
17412 (scc patterns): Disable most SImode variants if TARGET_POWERPC64.
17413 * rs6000.c (expand_block_move): Match movstrsi_?reg register
17414 changes.
17415
17416 Sun Oct 10 16:37:01 1999 Richard Henderson <rth@cygnus.com>
17417
17418 * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
17419 (sched_reg_live_length, sched_reg_basic_block): Delete.
17420 (current_block_num, bb_live_regs, old_live_regs): Delete.
17421 (dead_notes, struct sometimes): Delete.
17422 (sched_note_set, birthing_insn_p): Delete.
17423 (adjust_priority): Gut useless reg lifetime code.
17424 (create_reg_dead_note, attach_deaths): Delete.
17425 (attach_deaths_insn, new_sometimes_live): Delete.
17426 (finish_sometimes_live): Delete.
17427 (find_pre_sched_live, find_post_sched_live): Delete.
17428 (update_reg_usage): Delete.
17429 (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
17430 (schedule_insns): Delete reg lifetime code.
17431 (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
17432 (unlink_other_notes): Adjust REG_NOTE commentary.
17433 (reemit_notes): Use REG_SAVE_NOTE.
17434 (schedule_block): Likewise.
17435 (schedule_region): Allocate bitmap of blocks in region. Use
17436 count_or_remove_death_notes. Use update_life_info.
17437
17438 * rtl.h (REG_SAVE_NOTE): New.
17439 * rtl.c (reg_note_name): Update.
17440
17441 Sun Oct 10 16:14:16 1999 Richard Henderson <rth@cygnus.com>
17442
17443 * combine.c (refresh_blocks, need_refresh): New.
17444 (combine_instructions): Allocate refresh_blocks. Invoke
17445 update_life_info if needed.
17446 (distribute_notes): Mark refresh_blocks instead of installing
17447 USE insns.
17448 * flow.c (update_life_info): Remove notes if GLOBAL_RM_NOTES.
17449 * basic_block.h (enum update_life_extent): Add GLOBAL_RM_NOTES.
17450
17451 * Makefile.in (recog.o): Depend on basic-block.h.
17452
17453 Sun Oct 10 12:03:21 1999 Richard Henderson <rth@cygnus.com>
17454
17455 * genrecog.c (add_to_sequence): Thinko last change: delete
17456 shadowing allow_const_int variable.
17457
17458 Sun Oct 10 08:40:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17459
17460 * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
17461 __GNUC__ and __GNUC_MINOR__.
17462
17463 * gansidecl.h: Likewise.
17464
17465 * rtl.c: Likewise.
17466
17467 * rtl.h: Likewise.
17468
17469 * toplev.h: Likewise.
17470
17471 * tree.c: Likewise.
17472
17473 * tree.h: Likewise.
17474
17475 * varray.c: Likewise.
17476
17477 * varray.h: Likewise.
17478
17479 Sun Oct 10 13:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17480
17481 * loop.c (find_and_verify_loops): When looking for a BARRIER, don't
17482 use one before a jump table.
17483
17484 * rtl.def (ADDRESS): Change documentation to match reality.
17485 * md.texi: Don't document it.
17486 * gmicro.md (load address pattern): Use 'p' constraint, delete use
17487 of ADDRESS rtx.
17488
17489 * emit-rtl.c (copy_insn_1): Make format_ptr a const char *.
17490
17491 Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
17492
17493 * genrecog.c (add_to_sequence): Move allow_const_int test outside
17494 known predicate block; default allow_const_int true.
17495 (debug_decision_list): New.
17496
17497 Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
17498
17499 * i386.h (CC1_SPEC): Typo -- use cc1_cpu.
17500
17501 Sat Oct 9 23:26:55 1999 Jeffrey A Law (law@cygnus.com)
17502
17503 * gcse.c (gcse_main): Avoid global optimizations if we have a
17504 large number of basic blocks and the ratio of edges to blocks
17505 is high.
17506 (delete_null_pointer_checks): Likewise.
17507
17508 Sat Oct 9 23:16:01 1999 Ken Raeburn <raeburn@mit.edu>
17509
17510 * c-common.c (check_format_info): Warn if format string isn't a
17511 string literal.
17512
17513 Sat Oct 9 23:04:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
17514
17515 * configure.in (arm*-*-*): Don't let autoconf remove brackets
17516 * configure: regenerate
17517
17518 Sat Oct 9 13:15:53 1999 Richard Henderson <rth@cygnus.com>
17519
17520 * alpha.md (extendsidi2): Turn into a splitter. Allow f/f.
17521 If TARGET_FIX, allow r/f. Remove cvtlq unspec pattern.
17522 (peepholes): Re-enable.
17523
17524 Sat Oct 9 12:18:16 1999 Richard Henderson <rth@cygnus.com>
17525
17526 * Makefile.in (flow.o): Depend on TREE_H.
17527 * basic-block.h (REG_SET_EQUAL_P): New.
17528 (XOR_REG_SET): New.
17529 (n_edges): Declare.
17530 (free_regset_vector): Remove declaration.
17531 (flow_delete_insn_chain): Declare.
17532 (enum update_life_extent): New.
17533 (update_life_info, count_or_remove_death_notes): Declare.
17534 * combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
17535 Verify register live at bb->global_live_at_start before adding USE.
17536 * flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
17537 (CLEAN_ALLOCA): New.
17538 (n_edges): New.
17539 (PROP_*): New flags.
17540 (find_basic_blocks_1): Use alloc_EXPR_LIST.
17541 (clear_edges): Zero n_edges.
17542 (make_edge): Increment n_edges.
17543 (split_edge): Don't allocate bb->local_set. Increment n_edges.
17544 (flow_delete_insn_chain): Export.
17545 (delete_block): Decrement n_edges.
17546 (merge_blocks_nomove): Likewise.
17547 (life_analysis): Give life_analysis_1 PROP flags.
17548 (verify_wide_reg_1, verify_wide_reg): New.
17549 (verify_local_live_at_start): New.
17550 (update_life_info): Rewrite to call into propogate_block.
17551 (mark_reg): New.
17552 (mark_regs_live_at_end): After reload, if epilogue as rtl,
17553 always mark stack pointer. Conditionally mark PIC register.
17554 After reload, mark call-saved registers, return regsiters.
17555 (life_analysis_1): Accept PROP flags not remove_dead_code.
17556 Call mark_regs_live_at_end before zeroing regs_ever_live.
17557 Use calculate_global_regs_live. Copy global_live_at_end before
17558 calling final propagate_block. Zero reg_next_use on exit.
17559 (calculate_global_regs_live): New.
17560 (allocate_bb_life_data): Don't allocate bb->local_set.
17561 (init_regset_vector, free_regset_vector): Remove.
17562 (propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
17563 Test flags before every operation. Warn if prologue/epilogue insn
17564 would have been deleted.
17565 (mark_set_regs, mark_set_1): Accept and use FLAGS.
17566 Use alloc_EXPR_LIST.
17567 (mark_used_regs): Accept and use FLAGS, not FINAL.
17568 Remove special handling for RETURN.
17569 (try_pre_increment): Use alloc_EXPR_LIST.
17570 (dump_flow_info): Dump n_edges.
17571 (unlink_insn_chain, split_hard_reg_notes): Remove.
17572 (maybe_add_dead_note, maybe_add_dead_note_use): Remove.
17573 (find_insn_with_note, new_insn_dead_notes): Remove.
17574 (update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
17575 (maybe_remove_dead_notes, prepend_reg_notes): Remove.
17576 (replace_insns): Remove.
17577 (count_or_remove_death_notes): New.
17578 (verify_flow_info): Abort on error after all checks.
17579 (remove_edge): Decrement n_edges.
17580 (remove_fake_edges): Tweak format.
17581 * haifa-sched.c (schedule_insns): Use split_all_insns.
17582 * output.h (update_life_info): Remove declaration.
17583 * recog.c (split_all_insns): From the corpse of split_block_insns,
17584 do the whole function block by block. Use update_life_info.
17585 (recog_last_allowed_insn): New.
17586 (recog_next_insn): Mind it.
17587 (peephole2_optimize): Set it. Walk backwards through blocks.
17588 Use update_life_info.
17589 * rtl.h (update_flow_info, replace_insns): Remove declarations.
17590 (split_all_insns): Declare.
17591 * toplev.c (rest_of_compilation): Thread prologue before flow2.
17592 Use split_all_insns.
17593
17594 * i386.md (or -1 peep2s): Disable.
17595
17596 Fri Oct 8 17:49:08 1999 Richard Henderson <rth@cygnus.com>
17597
17598 * config/mips/mips.md (movstrsi+[123]) : Combine these into
17599 a single pattern. Scrap the 'd' versions as unnecessary.
17600
17601 * config/mips/mips.md (tablejump_internal3,tablejump_mips161,
17602 tablejump_mips162,tablejump_internal4): The operands to a
17603 label_ref must be VOIDmode.
17604
17605 Fri Oct 8 16:12:42 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17606
17607 * configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
17608
17609 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
17610
17611 * mips.c (mips_va_arg) [EABI]: Return addr_rtx.
17612
17613 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
17614
17615 * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
17616 cache every function if ggc_p.
17617
17618 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17619
17620 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
17621 instead of copy_rtx. Accept sequences that contain asm statements.
17622 * emit-rtl.c (copy_insn_1, copy_insn): New functions.
17623 (copy_insn_scratch_in, copy_insn_scratch_out, copy_insn_n_scratches,
17624 orig_asm_operands_vector, copy_asm_operands_vector,
17625 orig_asm_constraints_vecotr, copy_asm_constraints_vector): New static
17626 variables.
17627 * rtl.h (copy_insn, copy_insn_1): Declare.
17628
17629 Fri Oct 8 13:08:12 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17630
17631 * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
17632
17633 * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
17634 arguments to `current_file_function_operand'.
17635
17636 * genrecog.c: Include hard-reg-set.h and resource.h in the
17637 generated output file.
17638
17639 * real.c: Include tm_p.h.
17640
17641 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17642
17643 * i386.md (prologue_allocate_stack): Add '=' constraint letter on
17644 output operand.
17645
17646 Thu Oct 7 23:06:50 1999 Richard Henderson <rth@cygnus.com>
17647
17648 * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
17649 before the fctiwz insn.
17650
17651 Thu Oct 7 22:53:00 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17652 Mark Mitchell <mark@codesourcery.com>
17653
17654 * tree.c (make_lang_type_fn): New funtion pointer.
17655 (make_lang_type): Call it.
17656 * tree.h (make_lang_type): Declare.
17657 (make_lang_type_fn): Likewise.
17658 * rs6000.c (rs6000_build_va_list): Use make_lang_type.
17659
17660 Thu Oct 7 00:36:17 1999 Diego Novillo <dnovillo@cygnus.com>
17661
17662 * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
17663 make sure that HIGH instructions are copied into BASE_REGS.
17664
17665 Thu Oct 7 17:02:34 1999 Jason Merrill <jason@yorick.cygnus.com>
17666
17667 * expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.
17668
17669 Thu Oct 7 17:01:58 1999 Greg McGary <gkm@gnu.org>
17670
17671 * c-decl.c (finish_struct): Use simpler method of
17672 removing elements of a singly-linked list.
17673
17674 Thu Oct 7 15:23:28 1999 Michael Meissner <meissner@cygnus.com>
17675
17676 * alpha.md (peephole2's): Comment out peephole2's that generate
17677 buggy code.
17678
17679 Thu Oct 7 12:00:53 1999 Richard Henderson <rth@cygnus.com>
17680
17681 * genrecog.c (add_to_sequence): Disable mode check for
17682 wildcard matches.
17683
17684 Thu Oct 7 20:14:16 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17685
17686 * ggc-simple.c (init_ggc): Set empty_string.
17687
17688 Thu Oct 7 01:13:15 1999 Richard Henderson <rth@cygnus.com>
17689
17690 * configure.in: Detect mmap. Add --with-gc=foo to select
17691 garbage collector; default to page if mmap available.
17692 * Makefile.in (GGC): Substitute.
17693
17694 Wed Oct 6 23:56:30 1999 Richard Henderson <rth@cygnus.com>
17695
17696 * c-decl.c (ggc_p): Enable.
17697
17698 Wed Oct 6 17:17:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17699
17700 * flow.c (verify_flow_info): Make it extern & unconditionally define.
17701
17702 1999-10-06 Brendan Kehoe <brendan@cygnus.com>
17703
17704 * sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
17705 string for little-endian-data.
17706
17707 Wed Oct 6 16:10:35 1999 Michael Meissner <meissner@cygnus.com>
17708
17709 * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
17710 case somebody tries to compile --enable-checking code with gcc
17711 1.34 or such.
17712
17713 Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
17714
17715 * genrecog.c (add_to_sequence): Verify operand to label_ref is
17716 VOIDmode.
17717
17718 Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
17719
17720 * genconfig.c (main): Disable HAVE_conditional_arithmetic.
17721 * jump.c (jump_optimize_1): Document why.
17722
17723 Wed Oct 6 10:41:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17724
17725 * collect2.c (scan_prog_file, scan_libraries): Prototype function
17726 pointers and casts for `int_handler' and `quit_handler'.
17727
17728 * flow.c (verify_flow_info, split_hard_reg_notes,
17729 find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
17730 remove_edge, remove_fake_successors): Add static prototypes.
17731 (verify_flow_info): Wrap with macro ENABLE_CHECKING.
17732 (mark_set_1): Initialize variable `regno'.
17733 (unlink_insn_chain): Likewise for variable `curr'.
17734 (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
17735
17736 * loop.c (strength_reduce): Initialize variable
17737 `unrolled_insn_copies'.
17738 (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
17739 prototypes. Change these functions to take const PTR parameters
17740 to avoid prototype conflict when used as the comparson argument
17741 for qsort.
17742 (check_dbra_loop): Initialize variable `comparison_val'.
17743
17744 * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
17745 (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
17746 (find_valid_class): Initialize variable `best_class'.
17747 (find_reloads): Call memcpy, not bcopy.
17748
17749 * reload1.c (gen_mode_int, dump_needs): Add prototypes.
17750 (hard_reg_use_compare): Don't needlessly cast away const.
17751 (reload_reg_class_lower): Likewise.
17752 (choose_reload_regs): Initialize variable `regno'.
17753
17754 Tue Oct 5 16:34:12 1999 Paul Burchard <burchard@pobox.com>
17755
17756 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
17757
17758 Tue Oct 5 16:14:40 1999 Michael Meissner <meissner@cygnus.com>
17759
17760 * libgcc1-test.c (toplevel): Include stddef.h to get size_t.
17761 ({,d}discard): Add forward declarations. Declare parameter as
17762 unused.
17763 (main_without_main): Explicitly declare return type to be int.
17764 (memcpy): Properly declare.
17765
17766 * libgcc2.c (toplevel): If inhibit_libc is defined and not
17767 building the trampoline support, declare malloc, free, and
17768 atexit.
17769 (__clear_cache): Mark arguments as potentially unused.
17770
17771 * frame.c (toplevel): If inhibit_libc is defined, declare
17772 malloc and free.
17773
17774 Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
17775
17776 * flow.c (make_edge): Accept an optional 2D bitmap in which
17777 to cache edge existence. Update all callers.
17778 (make_label_edge, make_eh_edge): Pass through the edge cache.
17779 (make_edges): Provide the cache.
17780
17781 Tue Oct 5 12:16:49 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17782
17783 * mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
17784 a char*.
17785 (local_mbtowc): Change the type of variable `i' from int to size_t.
17786
17787 * mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
17788 (local_mbtowc, local_mblen, literal_codeset): Constify a char*.
17789
17790 Tue Oct 5 11:34:52 1999 Michael Meissner <meissner@cygnus.com>
17791
17792 * ggc-common.c (toplevel): Reorder includes, so that ggc.h comes
17793 after other includes that define the appropriate types. Include
17794 tm_p.h for getting user prototypes.
17795 * ggc-callbacks.c (toplevel): Ditto.
17796 * ggc-none.c (toplevel): Ditto.
17797 * gcc-page.c (toplevel): Ditto.
17798 * ggc-simple.c (toplevel): Ditto.
17799
17800 Mon Oct 4 16:48:16 1999 Diego Novillo <dnovillo@cygnus.com>
17801 Jonathan Larmour <jlarmour@cygnus.co.uk>
17802
17803 * config/mips/mips.c (mips_move_2words): Split doubles if
17804 ISA >= 3, !TARGET_64BIT, and destination is not an FP register.
17805
17806 Mon Oct 4 21:47:31 1999 Richard Henderson <rth@cygnus.com>
17807
17808 * genrecog.c (struct decision_test): New.
17809 (struct decision): Remove test-related members, sort the rest by size.
17810 (IS_SPLIT): Simplify.
17811 (new_decision, new_decision_test): New.
17812 (add_to_sequence): Use them. No special handling for args of
17813 non-MATCH codes.
17814 (maybe_both_true): Renamed from not_both_true; return sense changed.
17815 (maybe_both_true_1, maybe_both_true_2): New. Broken out
17816 of maybe_both_true and adjusted for decision_test.
17817 (position_merit): Remove.
17818 (nodes_identical, nodes_identical_1): New, broken out of merge_trees.
17819 (merge_accept_insn): New, broken out of merge_trees.
17820 (merge_trees): Use them. No special case for c_test; no node
17821 splitting; use test type instead of position_merit.
17822 (factor_tests): New.
17823 (simplify_tests): New.
17824 (break_out_subroutines): Don't write code now.
17825 (find_afterward): New.
17826 (write_afterward, write_switch, write_cond): New.
17827 (write_action, is_unconditional): New.
17828 (write_node): New. Use them.
17829 (write_tree_1): Rewrite. Use the new functions above.
17830 (write_tree): Remove afterward processing.
17831 (write_subroutine): Simplify function variant emission.
17832 (write_subroutines): New.
17833 (same_codes, clear_codes): Remove.
17834 (same_modes, clear_modes): Remove.
17835 (write_header): New, broken out of main.
17836 (make_insn_sequence): Use new_decision and new_decision_test.
17837 (process_tree): New, broken out of main.
17838 (main): Adjust for merge_trees interface change.
17839 Don't #define operands in the output file.
17840 (record_insn_name): New, broken out of make_insn_sequence.
17841 (debug_decision_2, debug_decision_1, debug_decision_0): New.
17842 (debug_decision): New.
17843
17844 1999-10-04 21:58 -0700 Zack Weinberg <zack@bitmover.com>
17845
17846 * resource.c (find_free_register): Mark class_str argument const.
17847 * resource.h: Update prototype to match.
17848
17849 * i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
17850 * i386.md: Give all anonymous insns names.
17851
17852 Mon Oct 4 21:12:02 1999 Jeffrey A Law (law@cygnus.com)
17853
17854 * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
17855 blocks.
17856
17857 Mon Oct 4 21:01:39 1999 Richard Henderson <rth@cygnus.com>
17858
17859 * toplev.c (dbr_sched_time): Unconditional.
17860 (peephole2_time): New.
17861 (compile_file): Add pass numbers to all of the dump file suffixes.
17862 Dump peephole2_time. Don't dump times for non-applicable passes.
17863 (rest_of_compilation): Add pass numbers to dump file suffixes.
17864 Conditionalize calls to the scheduler.
17865 * invoke.texi: Update.
17866
17867 Mon Oct 4 20:25:13 1999 Anthony Green <green@cygnus.com>
17868
17869 * flow.c (make_edges): Fix insn iteration.
17870 (find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
17871 (find_basic_blocks_1): Fix spelling mistake.
17872
17873 Mon Oct 4 16:56:11 1999 Richard Henderson <rth@cygnus.com>
17874
17875 * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
17876 always have side-effects. Use memset not bzero.
17877 (make_node): Likewise.
17878
17879 Mon Oct 4 16:22:20 1999 Mark Mitchell <mark@codesourcery.com>
17880
17881 * stmt.c (expand_anon_union_decl): When any of the elements of the
17882 union is addressable, so is the entire union.
17883
17884 Mon Oct 4 11:38:33 1999 Richard Henderson <rth@cygnus.com>
17885
17886 * sbitmap.c (sbitmap_ones): Don't set too many bits.
17887
17888 * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
17889 * bitmap.c (bitmap_operation): Return true iff TO changed.
17890 (bitmap_equal_p): New.
17891 (bitmap_bit_p): Tidy arithmetic.
17892 (debug_bitmap_file): Likewise.
17893
17894 Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
17895
17896 * toplev.c (rest_of_compilation): Turn on cse_not_expected
17897 before cse2 instead of after.
17898
17899 Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
17900
17901 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
17902 register offsets.
17903
17904 Mon Oct 4 08:54:12 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17905
17906 * cppinit.c (is_idchar initializer): Loosen tests to accept
17907 gcc 2.>6 and >2.
17908
17909 Mon Oct 4 02:31:20 1999 Mark Mitchell <mark@codesourcery.com>
17910
17911 * mips.md: Define conditional move patterns for floating point
17912 operands and DI mode conditions.
17913
17914 Mon Oct 4 02:12:41 1999 Mark Mitchell <mark@codesourcery.com>
17915
17916 * tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
17917 always have side-effects.
17918
17919 Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com)
17920
17921 * mn10200.c (asm_file_start): Fix typo.
17922
17923 * cppinit.c (is_idchar initializer): Tighten tests for when
17924 to put the table into initialized memory.
17925
17926 * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
17927 not an array of rtunion.
17928 * gcc-page.c (ggc_alloc_rtvec): Similarly.
17929 * gcc-simple (ggc_free_rtvec): Similarly.
17930
17931 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
17932 of rtunions.
17933
17934 * mbchar.h: Add missing #endif.
17935
17936 * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
17937 (FPBIT, DPBIT): Define.
17938
17939 Sun Oct 3 12:44:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17940
17941 * print-tree.c (print_node, indent_to): Remove redundant prototypes.
17942
17943 * profile.c (instrument_arcs, output_gcov_string,
17944 tablejump_entry_p): Add static prototypes.
17945 (output_gcov_string): Constify a char*.
17946
17947 * regmove.c (replacement_quality, fixup_match_2): Add static
17948 prototypes.
17949
17950 * resource.h (reg_dead_p): Add extern prototype.
17951
17952 * rtl.c (trim_filename): Add static prototype.
17953
17954 * scan-decls.c (skip_to_closing_brace): Likewise.
17955
17956 * stmt.c (expand_decl_cleanup_no_eh): Hide definition.
17957 (expand_end_case): Initialize variable `range'.
17958 (emit_case_nodes): Remove unused prototype `rtx_fn'.
17959
17960 * varasm.c (asm_emit_uninitialised): Add static prototype.
17961 (asm_emit_uninitialised, assemble_variable): Mark parameter with
17962 ATTRIBUTE_UNUSED.
17963
17964 Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17965
17966 * cpplib.c (if_directive_nameo): Add static prototype.
17967
17968 * cse.c (cse_insn): Remove unused variable `p'.
17969
17970 * except.c (create_rethrow_ref, push_entry,
17971 receive_exception_label, new_eh_region_entry, find_func_region,
17972 clear_function_eh_region, process_nestinfo): Add static prototypes.
17973 (get_reg_for_handler): Hide definition.
17974 (process_nestinfo): Initialize variable `extra_handlers'.
17975
17976 * expr.h (expand_builtin_longjmp): Add extern prototype.
17977
17978 * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
17979
17980 * function.c (prepare_function_start): Likewise.
17981 (pop_function_context_from): Mark parameter `context' with
17982 ATTRIBUTE_UNUSED.
17983 (push_temp_slots_for_block, flush_addressof): Hide definition.
17984
17985 * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
17986 solve_program_flow_graph, calculate_branch_probs,
17987 function_summary, main, fancy_abort): Add prototypes.
17988
17989 * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
17990 (add_hash): Constify a char*.
17991
17992 * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
17993 ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
17994 ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
17995
17996 * integrate.c (expand_inline_function_eh_labelmap): Likewise.
17997
17998 * lists.c (free_list, zap_lists): Likewise.
17999
18000 Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18001
18002 * alias.c (nonlocal_reference_p): Add static prototype.
18003
18004 * bitmap.c (bitmap_element_allocate): Prototype args in function
18005 pointer cast.
18006
18007 * builtins.c (stabilize_va_list): Add static prototype.
18008 (expand_builtin_va_arg): Constify a char*.
18009
18010 * c-lex.c (getch, put_back, extend_token_buffer_to,
18011 read_line_number, token_getch, token_put_back): Add static
18012 prototypes.
18013
18014 * c-parse.gperf (hash, is_reserved_word): Likewise.
18015
18016 * cccp.c (is_dir_separator): Likewise.
18017
18018 Sat Oct 2 16:07:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18019
18020 * graph.h: New file to prototype functions exported by graph.c.
18021
18022 * Makefile.in (graph.o, toplev.o): Depend on graph.h.
18023
18024 * graph.c: Include graph.h.
18025
18026 * toplev.c: Likewise. Remove redundant prototypes.
18027
18028 Sat Oct 2 11:28:33 1999 Krister Walfridsson <cato@df.lth.se>
18029
18030 * invoke.texi: Removed duplicated description for -Q.
18031
18032 Sat Oct 2 11:16:00 1999 Jim Kingdon <http://developer.redhat.com>
18033
18034 * extend.texi: Grammar fix in __extension__ text.
18035
18036 Sat Oct 2 11:06:31 1999 Richard Henderson <rth@cygnus.com>
18037
18038 * md.texi (define_peephole2): New section.
18039
18040 Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
18041
18042 * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
18043 (mov $-1 to or peepholer): Enable for pentium when optimizing for
18044 speed.
18045
18046 Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
18047
18048 * builtins.c (expand_builtin_strlen): Fix best mode searching loop.
18049
18050 Sat Oct 2 10:53:22 1999 Jan Hubicka <hubicka@freesoft.cz>
18051
18052 * i386.md (ffs expander): Emit Pentium friendly code for
18053 TARGET_PENTIUM.
18054
18055 Sat Oct 2 02:48:21 1999 Mark P. Mitchell <mark@codesourcery.com>
18056
18057 * tree.c (build): Don't look at TREE_SIDE_EFFECTS or TREE_RAISES
18058 for non-trees.
18059 (build1): Likewise.
18060
18061 Fri Oct 1 18:01:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18062
18063 * i386elf.h (TARGET_DEFAULT): Use symbolic constants.
18064
18065 Fri Oct 1 12:42:53 1999 Andreas Schwab <schwab@suse.de>
18066
18067 * config/m68k/m68k.c (use_return_insn): Return false if the pic
18068 register is in use.
18069
18070 Fri Oct 1 10:56:06 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18071
18072 * md.texi (No Constraints): Delete section.
18073 * Makefile.in (genattrtab.o): Don't depend on "insn-config.h".
18074 * final.c (final_scan_insn): We always have register constraints.
18075 * genattrtab.c: Don't include "insn-config.h".
18076 (write_attr_case): We always have register constraints.
18077 * genconfig.c (register_constraint_flag): Delete.
18078 (walk_insn_part): Don't check whether we have register constraints.
18079 (main): Don't write out "#define REGISTER_CONSTRAINTS".
18080 * genoutput.c (have_constraints): Delete.
18081 (main): Don't set it.
18082 (output_operand_data): We always have constraints.
18083 (scan_operands): Likewise.
18084 (compare_operands): Likewise.
18085 * local-alloc.c (block_alloc): We always have constraints.
18086 (requires_inout): Always compile this function.
18087 * recog.c (extract_insn): We always have constraints.
18088 (constrain_operands, reg_fits_class_p): Always compile these
18089 functions.
18090 * recog.h (struct recog_data): Delete non-REGISTER_CONSTRAINTS
18091 fields.
18092 (struct insn_operand_data): Likewise.
18093 * regclass.c (regclass): We always have constraints.
18094 (record_reg_classes, copy_cost, record_address_regs,
18095 auto_inc_dec_reg_p): Always compile these functions.
18096 * regmove.c (regmove_optimize): We always have constraints.
18097 * reload.c (find_reloads): Likewise.
18098 * reload1.c (reload): Likewise.
18099 (reload_cse_simplify_operands): Likewise.
18100 * i860.c (output_delay_insn): Likewise.
18101
18102 Thu Sep 30 23:04:41 1999 Mark P. Mitchell <mark@codesourcery.com>
18103
18104 * iris6.h (BUILD_VA_LIST_TYPE): Define.
18105
18106 Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18107
18108 * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
18109 for the va_list record.
18110
18111 Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
18112
18113 * i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
18114 prologues.
18115
18116 Thu Sep 30 18:31:36 1999 Jan Hubicka <hubicka@freesoft.cz>
18117
18118 * alias.c: Include insn-flags.h.
18119 * Makefile.in (alias.o): Update.
18120
18121 Thu Sep 30 18:21:30 1999 Jan Hubicka <hubicka@freesoft.cz>
18122
18123 * i386.c (ix86_expand_int_movcc): Convert LEU and GTU comparisons
18124 to LTU and GEU. Handle more cases using sbb.
18125
18126 Thu Sep 30 18:18:39 1999 Jan Hubicka <hubicka@freesoft.cz>
18127
18128 * i386.md (truncatexfdf splitters): Do not use subreg.
18129 (fop XFmode patterns): Fix mode in operand testing.
18130
18131 Thu Sep 30 18:04:13 1999 Richard Henderson <rth@cygnus.com>
18132
18133 * jump.c (jump_optimize_1): Amend last change to test only the
18134 form of the operand, not the insn.
18135
18136 * jump.c (jump_optimize_1) [conditional_move]: Use general_operand
18137 not register_operand to determine when B may need preloading.
18138
18139 Thu Sep 30 17:39:16 1999 Richard Henderson <rth@cygnus.com>
18140
18141 * alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
18142 (ffsdi2, extxl, insxh, mskxh): Add missing DImode to SET_SRC.
18143 (call-value patterns): Move to end of file.
18144 (*): Remove mode from label_ref in (pc) context.
18145 (movstrqi): Use memory not general_operand for BLKmode operands.
18146 (prologue_stack_probe_loop, builtin_longjmp): Add missing mode
18147 to register_operand operands.
18148 (peep2 patterns): Convert from commented-out peephole patterns.
18149
18150 Thu Sep 30 14:39:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18151
18152 * tree.h (enum built_in_function): Rename BUILT_IN_DWARF_REG_SIZE
18153 to BUILT_IN_INIT_DWARF_REG_SIZES.
18154 * builtins.c (expand_builtins, case BUILT_IN_INIT_DWARF_REG_SIZES):
18155 Renamed from BUILT_IN_DWARF_REG_SIZE; call
18156 expand_builtin_init_dwarf_reg_sizes.
18157 * c-decl.c (init_decl_processing): Replace __builtin_dwarf_reg_size
18158 with __builtin_init_dwarf_reg_size_table.
18159 * dwarf2out.c (struct reg_size_range): Delete.
18160 (expand_builtin_init_dwarf_reg_sizes): New function.
18161 (expand_builtin_dwarf_reg_size): Delete.
18162 * except.h (expand_builtin_init_dwarf_reg_sizes): Declare.
18163 (expand_builtin_dwarf_reg_size): Don't declare.
18164 * libgcc2.c (dwarf_reg_size_table_initialized): New.
18165 (dwarf_reg_size_table): New.
18166 (init_reg_size_table): New function.
18167 (copy_reg): Use dwarf_reg_size_table.
18168 (eh_context_initialize): Make sure dwarf_reg_size_table is initialized
18169 before use.
18170
18171 Thu Sep 30 05:40:34 1999 Richard Earnshaw <rearnsha@arm.com>
18172
18173 * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
18174 Correctly build argument list to constructor and destructor functions.
18175
18176 Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
18177
18178 * c-tree.h (warn_float_equal): Declare.
18179 * c-decl.c (warn_float_equal): Define.
18180 (c_decode_option): Recognize -W[no-]float-equal.
18181 * c-typeck.c (build_binary_op): Conditionally warn
18182 about equality tests of floating point types.
18183 * toplev.c (documented_lan_options): Add -W[no-]float-equal.
18184 * invoke.texi: Add docs for -Wfloat-equal warning.
18185
18186 Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
18187
18188 * h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
18189 generating RTL directly.
18190 * mips.h (INIT_TARGET_OPTABS): Likewise.
18191 * mn10200.h (INIT_TARGET_OPTABS): Likewise.
18192
18193 * expr.h (init_mov_optab): Delete declaration
18194
18195 * h8300.c (WORD_REG_USED): Update to avoid useless register
18196 saves in interrupt functions and functions which never return.
18197
18198 * cse.c (struct set): Delete inner_dest_loc field.
18199 (cse_insn): Remove assignments to inner_dest_loc field.
18200
18201 Wed Sep 29 16:06:20 1999 Richard Henderson <rth@cygnus.com>
18202
18203 * ggc-page.c: Don't include <unistd.h> etc taken care of
18204 by "system.h". Include <sys/mman.h> afterward.
18205
18206 Wed Sep 29 16:05:18 1999 Richard Henderson <rth@cygnus.com>
18207
18208 * rs6000.c (rs6000_encode_section_info): If ggc_p, use
18209 ggc_alloc_string.
18210
18211 Tue Sep 28 16:45:40 1999 David Edelsohn <edelsohn@gnu.org>
18212
18213 * xcoffout.c (xcoffout_declare_function): Add documentation.
18214 * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
18215 TARGET_64BIT. Compare constant to -1, not bit pattern.
18216 (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
18217 (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix
18218 gen_movsi typos.
18219
18220 Tue Sep 28 16:43:14 1999 Nick Clifton <nickc@cygnus.com>
18221
18222 * dwarf2out.c (add_abstract_origin_attribute): Abort if
18223 origin_die is NULL.
18224 (gen_inlined_enumeration_type_die): Do not abort if the type has
18225 not been writeen out.
18226 (gen_inlined_structure_type_die): Do not abort if the type has
18227 not been writeen out.
18228 (gen_inlined_union_type_die): Do not abort if the type has
18229 not been writeen out.
18230 (gen_tagged_type_instantiation_die): Do not abort if the type
18231 has not been written out.
18232
18233 Tue Sep 28 14:33:47 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18234
18235 * c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
18236 call it.
18237 * reg-stack.c (straighten_stack): Copy hard reg set with
18238 COPY_HARD_REG_SET.
18239
18240 Tue Sep 28 01:11:05 1999 Richard Henderson <rth@cygnus.com>
18241
18242 * builtins.c (stabilize_va_list): Stabilize array type va_list
18243 to a pointer type, not the base record type.
18244 (expand_builtin_va_copy): Dereference the pointers explicitly;
18245 use the correct size for the copy.
18246
18247 * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
18248 (rs6000_va_arg): Likewise.
18249
18250 Mon Sep 27 23:27:21 1999 Richard Henderson <rth@cygnus.com>
18251
18252 * rtl.h (struct rtx_def): Move gc_mark to align mode field.
18253
18254 Mon Sep 27 23:20:29 1999 Mark Mitchell <mark@codesourcery.com>
18255
18256 * tree.h (struct tree_decl): Use `bclass', not `class', in name of
18257 field.
18258 (DECL_BUILT_IN_CLASS): Adjust accordingly.
18259
18260 Mon Sep 27 23:03:16 1999 Richard Henderson <rth@cygnus.com>
18261
18262 * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
18263 (init_ggc): Use it instead of a constant.
18264 (ggc_collect): Bound allocated_last_gc by it.
18265
18266 Mon Sep 27 19:06:04 1999 Jeffrey A Law (law@cygnus.com)
18267
18268 * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
18269 with va_list.
18270
18271 Mon Sep 27 19:40:17 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
18272
18273 * configure.in (mips*el-*-openbsd*): Don't duplicate default settings.
18274 (mips*-*-openbsd*): Let big endian configuration be a fragment.
18275 * configure: Regen.
18276 * config/mips/openbsd.h: New, OpenBSD little endian target.
18277 * config/mips/openbsd-be.h: New, OpenBSD big endian target fragment.
18278 * config/mips/xm-openbsd.h: New, OpenBSD host.
18279
18280 Mon Sep 27 10:28:48 1999 Andreas Schwab <schwab@suse.de>
18281
18282 * config/m68k/m68k.c (output_function_prologue,
18283 output_function_epilogue): Use
18284 current_function_uses_pic_offset_table instead of regs_ever_live
18285 to decide whether to save/restore pic register.
18286 (legitimize_pic_address): Don't modify regs_ever_live any more.
18287
18288 Sun Sep 26 10:55:36 1999 Mark Mitchell <mark@codesourcery.com>
18289
18290 * function.h (struct function): Add x_dont_save_pending_sizes_p.
18291 * stor-layout.c (variable_size): Don't add sizes to the pending
18292 sizes list if x_dont_save_pending_sizes_p is set.
18293
18294 Sun Sep 26 16:36:52 1999 Robert Lipe (robertlipe@usa.net)
18295
18296 * config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
18297 for symbolic_operand().
18298 * config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.
18299
18300 Sun Sep 26 07:37:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18301
18302 * combine.c (gen_rtx_combine): Add missing call to va_end().
18303
18304 * final.c (asm_fprintf): Likewise.
18305
18306 * genattrtab.c (attr_rtx): Likewise.
18307
18308 Sat Sep 25 13:11:07 1999 Jeffrey A Law (law@cygnus.com)
18309
18310 * cse.c: Update comments.
18311 (cse_insn): When converting a conditional/computed jump into
18312 an unconditional jump, always make sure a BARRIER immediately
18313 follows the converted jump. Do not delete unreachable code.
18314 (cse_basic_block): Do not delete unreachable code.
18315 * toplev.c (rest_of_compilation): Move call to
18316 delete_trivially_dead_insns after the conditional call to
18317 jump_optimize.
18318
18319 Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18320
18321 * collect2.c (make_temp_file): Don't prototype.
18322
18323 * gcc.c (make_temp_file): Likewise.
18324
18325 * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
18326
18327 Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com>
18328
18329 * varasm.c (asm_emit_uninitialised): New function: Generate
18330 the assembler statements necessary to declare an uninitialised
18331 variable.
18332 (ASM_EMIT_LOCAL): New macro: Emit a local, uninitialised
18333 variable.
18334 (ASM_EMIT_BSS): New macro: Emit an entry in the bss section.
18335 (ASM_EMIT_COMMON): New macro: Emit an entry in the common
18336 section.
18337 (assemble_variable): Use asm_emit_uninitialised to emit an
18338 uninitialised variable.
18339
18340 Fri Sep 24 17:10:56 1999 Nick Clifton <nickc@cygnus.com>
18341
18342 * combine.c (simplify_comparison): Cope with downshifting a 32 bit
18343 constant on a 64 bit host. Patch supplied by Geoffrey Keating
18344 <geoffk@cygnus.com>.
18345
18346 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18347
18348 * builtins.c (expand_builtin): Use MD_EXPAND_BUILTIN if defined.
18349 * c-common.h (builtin_function): Don't declare.
18350
18351 * c-decl.c (duplicate_decls): Use DECL_BUILT_IN_CLASS rather than
18352 DECL_BUILT_IN.
18353 (pushdecl): Likewise.
18354 (finish_decl): Likewise.
18355 (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of type
18356 int. All callers changed.
18357 Set the builtin's DECL_BUILT_IN_CLASS.
18358 * tree.h (enum built_in_class): New.
18359 (enum built_in_function): Delete NOT_BUILT_IN.
18360 (DECL_FUNCTION_CODE): The corresponding field in tree_decl is now
18361 in a union.
18362 (DECL_SET_FUNCTION_CODE): Likewise.
18363 (DECL_BUILT_IN_CLASS): New macro.
18364 (DECL_BUILT_IN): Use DECL_BUILT_IN_CLASS.
18365 (struct tree_decl): Split builtin function code field into a
18366 struct.
18367 (builtin_function): Declare.
18368
18369 Fri Sep 24 01:45:05 1999 Mark Mitchell <mark@codesourcery.com>
18370
18371 * optabs.c (init_traps): Fix typo in last change.
18372
18373 Fri Sep 24 01:10:11 1999 Mark Mitchell <mark@codesourcery.com>
18374
18375 * toplev.c (rest_of_decl_compilation): Update comment.
18376
18377 Fri Sep 24 11:57:06 1999 Geoffrey Keating <geoffk@cygnus.com>
18378
18379 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
18380 in .sbss if appropriate.
18381 (EXTRA_SECTION_FUNCTIONS): Add sbss.
18382 (SBSS_SECTION_ASM_OP): New macro.
18383 * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
18384 (EXTRA_SECTIONS): Add in_sbss.
18385 * config/mips/mips.h: Prototype sbss_section.
18386
18387 Thu Sep 23 18:18:55 1999 Mark Mitchell <mark@codesourcery.com>
18388
18389 * stmt.c (expand_start_bindings): Don't allow cleanup instructions
18390 to disappear.
18391
18392 Thu Sep 23 18:07:01 1999 Mark Mitchell <mark@codesourcery.com>
18393
18394 * optabs.c (init_traps): Register trap_rtx as a GC root.
18395
18396 Thu Sep 23 17:41:47 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18397
18398 * config/mips/mips.c (function_arg_pass_by_reference): Define
18399 unconditionally, since it's called unconditionally.
18400
18401 Thu Sep 23 13:40:02 1999 Jason Merrill <jason@yorick.cygnus.com>
18402
18403 * toplev.c (documented_lang_options): Add -fshort-wchar.
18404 * c-decl.c (c_decode_option): Likewise.
18405 (init_decl_processing): If -fshort-wchar, use 'short unsigned int'
18406 for wchar_t.
18407 * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
18408 * gcc.c (default_compilers): If -fshort-wchar,
18409 override __WCHAR_TYPE__.
18410 * tm.texi (C Dialect Options): Add -fshort-wchar.
18411
18412 * dwarf2out.c (output_aranges): Use DW_AT_location to find the
18413 symbol for a variable.
18414
18415 * cpplib.h (CPP_PREPROCESSED): New macro.
18416 * cpplib.c (handle_directive): Don't complain about `# NUMBER' if
18417 we're seeing this input for a second time.
18418
18419 Thu Sep 23 12:54:49 1999 Alex Samuel <samuel@codesourcery.com>
18420
18421 * emit-rtl.c (init_emit_once): Initialize modes first.
18422
18423 Sun Sep 19 01:23:23 1999 Alex Samuel <samuel@codesourcery.com>
18424
18425 * config/i386/i386.c (pic_label_name): Change to char pointer.
18426 (global_offset_table): New variable.
18427 (load_pic_register): Fill global_offset_table if it hasn't
18428 already been done. Allocate pic_label_name dynamically.
18429 * ggc.h (empty_string): New variable.
18430 * ggc-simple.c (empty_string): Likewise.
18431 (init_ggc): Allocate empty_string and add as root.
18432 * stmt.c (digit_strings): New variable.
18433 (init_stmt): Add last_block_end_note as root. Allocate and
18434 initialize digit_strings.
18435 (expand_asm_operands): Use empty_string instead of string
18436 constant. Use digit_strings instead of string constants.
18437 * profile.c (init_arc_profiler): Allocate string with
18438 ggc_alloc_string instead of xmalloc.
18439 (output_func_start_profiler): Likewise.
18440 * c-typeck.c (digest_init): Check if init is error_mark_node.
18441
18442 Thu Sep 23 12:59:14 1999 Alex Samuel <samuel@codesourcery.com>
18443 Richard Henderson <rth@cygnus.com>
18444
18445 * ggc-page.c: New file.
18446 * Makefile.in (ggc-page.o): New.
18447
18448 Thu Sep 23 13:55:21 1999 Jeffrey A Law (law@cygnus.com)
18449
18450 * invoke.texi: Document -fdelete-null-pointer-checks
18451 * toplev.c (flag_delete_null_pointer_checks): New.
18452 (f_options): Add entry for -fdelete-null-pointer-checks.
18453 (rest_of_compilation): Conditionalize null pointer check
18454 elimination on flag_delete_null_pointer_checks.
18455 (main): If -O2 or greater, enable -fdelete-null-pointer-checks
18456
18457 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
18458
18459 * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
18460 copyright notice and special exception to GPL.
18461
18462 Thu Sep 23 13:40:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18463
18464 * abi64.h (mips_function_value): Add prototype arguments.
18465
18466 * mips-protos.h: New file with mips prototypes.
18467
18468 * mips.c: Include "tm_p.h".
18469 (mktemp, lookup_name): Add prototype arguments.
18470 (extern_list, string_constant, mips_fill_delay_slot,
18471 mips_output_external, mips_output_external_libcall,
18472 mips_output_filename, mips_declare_object, function_prologue,
18473 mips_expand_prologue, function_epilogue, mips16_constant,
18474 build_mips16_function_stub, mips_output_conditional_branch):
18475 Constify a char*.
18476 (mips_va_start): Remove unused variable `u'.
18477 (mips_va_arg): Cast value to unsigned when comparing against one.
18478 (trace): Delete.
18479 (save_restore_insns, mips_expand_prologue): Add missing arg in
18480 call to `large_int'.
18481
18482 * mips.h: Move prototypes to mips-protos.h.
18483 (data_section, memory_address_p, rdata_section,
18484 readonly_data_section, simple_epilogue_p, text_section): Delete
18485 prototypes delcared elsewhere.
18486 (mips_epilogue_delay_slots, print_options): Delete unused decls.
18487 (trace): Delete.
18488 (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.
18489
18490 * mips.md: Delete extra args in call to `mips_move_2words'.
18491
18492 * xm-iris6.h (alloca): Add prototype argument.
18493
18494 * genpeep.c: Include "tm_p.h" in generated output file.
18495
18496 Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18497
18498 * basic-block.h (find_edge_index): Change parameters.
18499 * flow.c (verify_edge_list): Pass basic_block parameters to
18500 find_edge_index instead of integers.
18501
18502 Thu Sep 23 15:54:12 1999 Nick Clifton <nickc@cygnus.com>
18503
18504 * combine.c (simplify_comparison): Use an unsigned shift to adjust
18505 the constant.
18506
18507 Thu Sep 23 08:46:21 1999 Guy Harris <guy@netapp.com>
18508
18509 * gcc.1: Fix a formatting error.
18510
18511 Wed Sep 22 16:10:21 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
18512
18513 * install.texi (Configurations): Remove pyramid. Add fr30, i686,
18514 i786, mn10200, mn10300, pdp11, v850.
18515
18516 Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
18517
18518 * libgcc2.c (num_digits): Add prototype with
18519 __attribute__((const)).
18520 (__terminate): Add prototype.
18521
18522 Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
18523
18524 * builtins.c, dbxout.c, varasm.c: Include tm_p.h.
18525
18526 * alpha/alpha.c (print_operand): Fix type of `code'.
18527 (alpha_output_filename): Constify.
18528 * alpha/alpha.h: Move all function declarations ...
18529 * alpha/alpha-protos.h: ... here. New file.
18530 * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
18531 (SECTION_FUNCTION_TEMPLATE): Likewise.
18532
18533 Thu Sep 23 11:15:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18534
18535 * expmed.c (do_cmp_and_jump): Pass ccp_jump to can_compare_p.
18536 * expr.c (expand_expr): Likewise.
18537 (do_jump): Likewise.
18538 (do_store_flag): Pass ccp_store_flag to can_compare_p.
18539 * expr.h (enum optab_index): Add cbranch, cmov, cstore optabs and
18540 accessor macros.
18541 (enum can_compare_purpose): New.
18542 (can_compare_p): Adjust prototype.
18543 (prepare_cmp_insn, prepare_operand): Declare.
18544 * genopinit.c (optabs): Add cbranch_optab, cmov_optab, cstore_optab.
18545 * optabs.c (cmp_available_p): Deleted.
18546 (expand_abs): Pass ccp_jump to can_compare_p.
18547 (can_compare_p): New arg PURPOSE. Check for combined optabs.
18548 (prepare_cmp_insn): No longer static. Add arg PURPOSE.
18549 Call can_compare_p rather than cmp_available_p.
18550 (prepare_operand): No longer static.
18551 (emit_cmp_and_jump_insn): Check for and use cbranch patterns.
18552 (emit_cmp_and_jump_insns): Pass ccp_jump to prepare_cmp_insn.
18553 (expand_float): Fix a slightly broken emit_cmp_insn/emit_jump_insn
18554 sequence to use emit_cmp_and_jump_insns.
18555 (init_optabs): Initialize cbranch_optab, cmov_optab, cstore_optab.
18556
18557 Wed Sep 22 17:58:01 1999 Stan Cox <scox@cygnus.com>
18558
18559 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
18560 register offsets; let LEGITIMIZE_ADDRESS load it into a register.
18561 (LEGITIMIZE_ADDRESS): Use plus_constant to avoid
18562 (plus (reg) (const_int 0))
18563 * mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.
18564
18565 Wed Sep 22 17:55:31 1999 David Edelsohn <edelsohn@gnu.org>
18566
18567 * rs6000.c (expand_block_move): DImode loads and stores require
18568 word-aligned displacements. Increment address registers with
18569 adddi3 on 64-bit platform. Use TARGET_POWERPC64 not TARGET_64BIT.
18570
18571 Wed Sep 22 17:35:55 1999 Michael Meissner <meissner@cygnus.com>
18572
18573 * dwarf2out.c (base_type_die): Use the name __unknown__ if there
18574 is no name for the base type, rather than segfault. If we are
18575 writing out a complex integer type, use DW_ATE_lo_user.
18576
18577 * expr.c (emit_move_insn_1): If we are copying a complex that fits
18578 in one word or less (complex char, complex short, or on 64 bit
18579 systems complex float) to/from a hard register, copy it through
18580 memory instead of dying in gen_{real,imag}part. If we have a
18581 short complex type, prevent inlining since it allocates stack
18582 memory.
18583
18584 * tree.c (build_complex_type): If we are writing dwarf2 output,
18585 generate a name for complex integer types.
18586
18587 Wed Sep 22 11:34:08 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18588
18589 * basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
18590 * flow.c (remove_edge): Remove extra whitespace.
18591 (remove_fake_edges): Fix comment.
18592 (add_noreturn_fake_exit_edges): Use the correct name.
18593
18594 Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
18595
18596 * Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
18597 (mostlyclean): Depend on INTL_MOSTLYCLEAN.
18598 (clean): Depend on INTL_CLEAN.
18599 (maintainer-clean): Adjust.
18600
18601 Wed Sep 22 10:18:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18602
18603 * configure.in (AC_PREREQ): Bump to 2.13.
18604 (AC_C_STRINGIZE): Call this instead of using a custom macro.
18605
18606 * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.
18607
18608 * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.
18609
18610 * acconfig.h (HAVE_CPP_STRINGIFY): Delete.
18611
18612 * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
18613 (HAVE_STRINGIZE): Define.
18614
18615 Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
18616
18617 * c-parse.in: save and restore warn_pointer_arith on __extension__
18618 along with pedantic.
18619 (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
18620 Set the type of extension to itype rather than $<itype>1 kludge.
18621 * extend.texi (Alternate Keywords): Adjust documentation.
18622 * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
18623
18624 Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
18625
18626 * pa.c, pa.h, pa.md: Support multiple assembler dialects in
18627 most assembler templates.
18628
18629 * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
18630 FP loads and stores.
18631 (following_call): Always return zero for the PA8000.
18632 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
18633 FP loads and stores.
18634 (LEGITIMIZE_RELOAD_ADDRESS): Similarly.
18635
18636 * pa.h (BRANCH_COST): Define.
18637
18638 * pa.md (return, return_internal): Use bve for PA2.0.
18639
18640 * pa.md (fused multiply): Add variants which reduce height for the
18641 fused multiply, but which still generate 2 insns.
18642 (fnegabs): Similarly.
18643
18644 * pa.md (subsi3): Turn into an expander. Create two anonymous
18645 patterns. One for PA2.0 one for PA1.x. Use mtsarcm for PA2.0.
18646 * pa.h (EXTRA_CONSTRAINT): Handle 'S'.
18647
18648 * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
18649 for TARGET_PA_20.
18650 (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
18651 code generation.
18652 (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
18653 (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.
18654
18655 * regclass.c (init_regs): Add "top_of_stack" as a garbage
18656 collection root.
18657
18658 * flow.c (record_active_eh_regions): Terminate loop after finding
18659 the last insn in the last basic block.
18660
18661 Wed Sep 22 20:25:00 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18662
18663 * config/c4x/c4x.md: Delete parallel instruction peepholes.
18664
18665 Wed Sep 22 19:59:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18666
18667 * config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
18668
18669 Wed Sep 22 19:56:25 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18670
18671 * config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
18672 splitting to not use output template.
18673
18674 Wed Sep 22 19:50:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18675
18676 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
18677 * config/c4x/c4x.c (c4x_va_start): New function.
18678
18679 Tue Sep 21 18:40:01 1999 Jan Hubicka <hubicka@freesoft.cz>
18680
18681 * genrecog.c (not_both_true): Handle correctly cases when called for
18682 tests with different positions in the insn.
18683
18684 Tue Sep 21 18:29:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18685
18686 * machmode.h (HOST_PTR_PRINTF): Move from here ...
18687
18688 * system.h (HOST_PTR_PRINTF): ... to here.
18689
18690 * mips-tfile.c: Don't include machmode.h.
18691
18692 * Makefile.in (MACHMODE_H): New variable. Update to use it.
18693 (mips-tfile.o): Don't depend on machmode.h.
18694
18695 Tue Sep 21 18:27:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18696
18697 * haifa-sched.c (sched_analyze): Rename local variable `region' to
18698 avoid conflicts with typedef struct `region' at the top level scope.
18699
18700 Tue Sep 21 14:14:50 1999 Richard Henderson <rth@cygnus.com>
18701
18702 * basic-block.h (basic_block): Add eh_beg, eh_end.
18703 * flow.c (entry_exit_blocks): Update.
18704 (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
18705 Call new functions.
18706 (find_basic_blocks_1): Don't record eh_list at each bb. Use
18707 lists.c functions to allocate insn lists.
18708 (make_edges): Use eh_beg+eh_end, not the lists. Split out EH
18709 edge creation ...
18710 (make_eh_edge): ... here. New.
18711 (move_stray_eh_region_notes): New.
18712 (record_active_eh_regions): New.
18713 (delete_unreachable_blocks): Split out block merging ...
18714 (try_merge_blocks): ... here. New.
18715 (merge_blocks_move_predecessor_nojumps): Remove edge arg.
18716 Dump debugging data.
18717 (merge_blocks_move_successor_nojumps): Likewise.
18718 (merge_blocks): Use eh_beg+eh_end to validate block movement.
18719
18720 Tue Sep 21 11:15:03 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
18721
18722 * extend.texi (Bound member functions): Document unbound pmf
18723 conversion.
18724
18725 Tue Sep 21 14:55:11 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18726
18727 * flow.c (split_edge): Handle insertion on a fallthrough edge which
18728 has the EXIT_BLOCK as a dest.
18729
18730 Tue Sep 21 14:51:23 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18731
18732 * flow.c (remove_edge): New function to remove an edge from the
18733 flow graph.
18734 (remove_fake_successors): New function to remove fake successor edges.
18735 (remove_fake_edges): New function to remove all fake edges from the
18736 flow graph.
18737 (add_fake_exit_edges): New function to add fake edges from all blocks
18738 with no successors to the exit block.
18739 * basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
18740 prototypes for new functions.
18741
18742 Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18743
18744 * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
18745 Use Pmode to determine whether to output .dword or .word.
18746
18747 Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
18748
18749 * tree.c (built_in_filename): New variable.
18750 (BUILT_IN_FILENAME): New macro.
18751 (init_tree_codes): Allocate built_in_filename.
18752 (make_node): Use built_in_filename instead of string constant.
18753
18754 Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
18755
18756 * configure.in: Add fr30 target.
18757 * configure: Regenerate.
18758 * config/fr30: New directory.
18759 * config/fr30/crti.asm: New file.
18760 * config/fr30/fr30.c: New file.
18761 * config/fr30/crtn.asm: New file.
18762 * config/fr30/fr30.h: New file.
18763 * config/fr30/fr30.md: New file.
18764 * config/fr30/lib1funcs.asm: New file.
18765 * config/fr30/t-fr30: New file.
18766 * config/fr30/xm-fr30.h: New file.
18767
18768 Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
18769
18770 * flow.c (merge_blocks_move_successor_nojumps): Delete the
18771 BARRIER at the end of the successor, not the BARRIER before
18772 the successor.
18773
18774 * pa.c (pa_add_gc_roots): Fix thinko in last change.
18775
18776 Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
18777
18778 * stmt.c (any_pending_cleanups): Don't crash when
18779 current_function->stmt is unset.
18780
18781 Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18782
18783 * emit-rtl.c (init_emit_once): Initialize const_int_rtx before
18784 other initializations that may use it for relative offsets.
18785
18786 Mon Sep 20 21:43:25 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18787
18788 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
18789 (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
18790 * config/i386/sol2dbg.h: Removed.
18791 * config/i386/sol2gas.h: New file, to enable gas work-around.
18792 * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
18793 Don't use sol2dbg.h.
18794 * configure: Rebuilt.
18795
18796 Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
18797
18798 * invoke.texi (-fthis-is-variable): Remove documentation.
18799
18800 Mon Sep 20 12:59:16 1999 Richard Henderson <rth@cygnus.com>
18801
18802 * basic-block.h (compute_bb_for_insn): Declare.
18803 * flow.c (compute_bb_for_insn): Export. Don't accept the varray
18804 to use; set size of basic_block_for_insn directly.
18805 (find_basic_blocks): Update.
18806
18807 Mon Sep 20 15:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18808
18809 * flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
18810
18811 Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18812
18813 * crtstuff.c (ON_EXIT): Delete empty macro definition.
18814 (__do_global_ctors_aux): Call atexit(), not ON_EXIT().
18815
18816 Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
18817
18818 * c-decl.c (c_decode_option): Extend comment.
18819
18820 Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com>
18821
18822 * toplev.c (progname): Make 'const char *'
18823 (flag_print_mem): Move out of main.
18824 (version_flag): Move out of main.
18825 (filename): Move out of main.
18826 (debug_args): Remove g prefix from options.
18827 (documented_lang_options): Remove cpplib specific options.
18828 (display_help): Add g prefix to debug options.
18829 (check_lang_option): Delete this function.
18830 (decode_d_option): New function: Decode -d... option.
18831 (decode_f_option): New function: Decode -f... option.
18832 (decode_W_option): New function: Decode -W... option.
18833 (decode_g_option): New function: Decode -g... option.
18834 (independent_decode_option): New function: Decode a language
18835 independent command line option.
18836 (main): Invoke lang_decode_option and then
18837 independent_decode_option on each command line option in
18838 turn.
18839
18840 Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com)
18841
18842 Revert this change. Gavin's patch to operand_equal_p is a better fix.
18843 * fold-const.c (fold_range_test): Do not try to fold the range
18844 test if the rhs or lhs has side effects.
18845
18846 * basic-block.h (compute_flow_dominators): Declare.
18847
18848 * gcse.c (alloc_code_hoist_mem): New function.
18849 (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
18850 (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
18851 (hoist_code, one_code_hoisting_pass): Likewise.
18852 (gcse_main): If optimizing for size, then hoist expressions
18853 computed in multiple dominated basic blocks.
18854
18855 * gcse.c (invalid_nonnull_info): New function.
18856 (delete_null_pointer_checks): Likewise.
18857 * rtl.h (delete_null_pointer_checks): Declare.
18858 * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.
18859
18860 * flow.c (merge_blocks_move_predecessor_nojumps): New function.
18861 (merge-blocks_move_successor_nojumps): Likewise.
18862 (merge_blocks): Allow merging of some blocks, even if it requires
18863 physical movement of the blocks, but not if it requires new jumps.
18864
18865 * bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
18866 Callers and prototype changed.
18867 * bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
18868
18869 Mon Sep 20 06:56:32 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18870
18871 * config/sparc/sol2.h (LINK_SPEC): Avoid the duplication of
18872 -YP when both -p and -pg are present. From i386/sol2.h.
18873
18874 Mon Sep 20 10:49:05 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18875
18876 * Makefile.in (distclean): Delete tm_p.h.
18877 * configure.in: Create a new file, "tm_p.h", from a list in
18878 "tm_p_file". For ix86 systems, set up "tm_p_file" to include
18879 "i386/i386-protos.h".
18880
18881 * alias.c: Include "tm_p.h".
18882 * c-typeck.c: Likewise.
18883 * calls.c: Likewise.
18884 * cse.c: Likewise.
18885 * emit-rtl.c: Likewise.
18886 * explow.c: Likewise.
18887 * expmed.c: Likewise.
18888 * expr.c: Likewise.
18889 * final.c: Likewise.
18890 * flow.c: Likewise.
18891 * fold-const.c: Likewise.
18892 * function.c: Likewise.
18893 * gcse.c: Likewise.
18894 * global.c: Likewise.
18895 * haifa-sched.c: Likewise.
18896 * integrate.c: Likewise.
18897 * jump.c: Likewise.
18898 * local-alloc.c: Likewise.
18899 * loop.c: Likewise.
18900 * optabs.c: Likewise.
18901 * recog.c: Likewise.
18902 * reg-stack.c: Likewise.
18903 * regclass.c: Likewise.
18904 * regmove.c: Likewise.
18905 * reload.c: Likewise.
18906 * reload1.c: Likewise.
18907 * reorg.c: Likewise.
18908 * resource.c: Likewise.
18909 * stmt.c: Likewise.
18910 * stor-layout.c: Likewise.
18911 * toplev.c: Likewise.
18912 * tree.c: Likewise.
18913 * unroll.c: Likewise.
18914 * genattrtab.c (main): Make generated file include "tm_p.h".
18915 * genemit.c (main): Likewise.
18916 * genoutput.c (main): Likewise.
18917 * genrecog.c (main): Likewise.
18918
18919 * i386.h: Delete all prototypes.
18920 * i386.c: Include "tm_p.h".
18921 (ix86_attr_length_default): Call constant_call_address_operand
18922 with correct number of arguments.
18923 * i386-protos.h: New file.
18924 * i386.md (unnamed patterns): Call constant_call_address_operand
18925 with correct number of arguments.
18926 (exception_receiver): Call load_pic_register with correct number
18927 of arguments.
18928
18929 Sun Sep 19 14:18:39 1999 Richard Henderson <rth@cygnus.com>
18930
18931 * c-pragma.c (mark_align_stack): Dereference the void* properly.
18932
18933 Sun Sep 19 09:03:40 1999 Mark Mitchell <mark@codesourcery.com>
18934
18935 * rtl.h (insns_safe_to_move_p): New function.
18936 * loop.c (find_and_verify_loops): Use it.
18937 * rtlanal.c (insns_safe_to_move_p): Define it.
18938
18939 Sun Sep 19 02:54:33 1999 Richard Henderson <rth@cygnus.com>
18940
18941 * c-pragma.c: Include ggc.h.
18942 * Makefile.in (c-pragma.o): Update.
18943
18944 Sat Sep 18 16:01:18 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18945
18946 * config/i386/sol2.h (CPP_SPEC): Support -[p]threads
18947 (LIB_SPEC): Likewise.
18948 (LINK_SPEC): Do not assert -z text with -shared -mimpure-text.
18949 Reindent -YP/-p/-pg.
18950 Copied from config/sparc/sol2.h.
18951
18952 Sat Sep 18 11:52:43 1999 Richard Henderson <rth@cygnus.com>
18953
18954 * c-pragma.c (mark_align_stack): New.
18955 (init_pragma): New.
18956 * c-pragma.h (init_pragma): Declare it.
18957 * c-lex.c (init_parse): Call it.
18958
18959 Sat Sep 18 15:20:38 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18960
18961 * configure.in: Pick up thread library on Solaris/x86 just
18962 like on Solaris/sparc.
18963 * configure: Rebuilt.
18964
18965 Sat Sep 18 11:15:58 1999 Alex Samuel <samuel@codesourcery.com>
18966
18967 * rtl.h (global_rtx_index): New enum.
18968 (global_rtl): Change to array of rtx.
18969 (pc_rtx, cc0_rtx): Redefine accordingly.
18970 (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
18971 (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
18972 (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
18973 (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
18974 (const_int_rtx): Change to array of rtx.
18975 (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
18976 accordingly.
18977 * emit-rtl.c (global_rtl): Change to array of rtx.
18978 (const_int_rtx): Change to aray of rtx.
18979 (gen_rtx_CONST_INT): Redefine accordingly.
18980 (init_emit_once): Allocate and initialize global_rtl. Likewise
18981 for const_int_rtx. Add both as GC roots.
18982 * genattrtab.c (global_rtl): Update declaration.
18983
18984 1999-09-17 Ulrich Drepper <drepper@cygnus.com>
18985
18986 * Makefile (USER_H): Add iso646.h back.
18987
18988 Sat Sep 18 01:07:21 1999 Jeffrey A Law (law@cygnus.com)
18989
18990 * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
18991 zapping the LOG_LINKS of sched_before_next_call.
18992
18993 * pa.h (INSN_SETS_ARE_DELAYED): Delete.
18994 * pa.c (insn_refs_are_delayed): Renamed from
18995 insn_sets_and_refs_are_delayed.
18996
18997 Fri Sep 17 15:19:01 1999 Mark Mitchell <mark@codesourcery.com>
18998
18999 * functiion.h (struct function): Add x_whole_function_mode_p.
19000 (retrofit_block): Declare.
19001 * function.c (retrofit_block): New function.
19002 (identify_blocks): Add assertions. Allow an incomplete set of
19003 block notes if we're still generating code for the function.
19004 * integrate.c: Include loop.h.
19005 (expand_inline_function): Call find_loop_tree_blocks to map block
19006 notes to blocks when in whole-function mode. Use retrofit_block
19007 to insert new BLOCKs for the inlined function, rather than
19008 insert_block.
19009 * stmt.c (expand_fixup): Likewise. Don't use pushlevel/polevel.
19010 * Makefile.in (integrate.o): Depend on loop.h.
19011
19012 Fri Sep 17 15:11:20 1999 Mark Mitchell <mark@codesourcery.com>
19013
19014 * tree.h (warn_about_unused_variables): Declare.
19015 * stmt.c (warn_about_unused_variables): New function, split out
19016 from ...
19017 (expand_end_bindings): Here.
19018
19019 Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
19020
19021 * stmt.c (preserve_subexpressions_p): Don't crash when
19022 current_function->stmt is unset.
19023
19024 Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
19025
19026 * stmt.c (expand_start_bindings): Allow callers to pass a flag
19027 indicating that no NOTE_INSN_BLOCK_BEG note is required.
19028 (expand_start_target_temps): Use it.
19029 * except.c (expand_eh_region_start_for_decl): Likewise.
19030 * expr.c (expand_expr): Likewise.
19031
19032 Fri Sep 17 15:05:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
19033
19034 * fold-const.c (operand_equal_p): Pay attention to side effects.
19035
19036 Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com>
19037
19038 * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
19039 * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
19040
19041 * tlink.c (scan_linker_output): Look for keywords before accepting
19042 a mangled name in quotes.
19043
19044 Thu Sep 16 16:47:08 1999 Richard Henderson <rth@cygnus.com>
19045
19046 * alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
19047 * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.
19048
19049 Thu Sep 16 16:35:41 1999 Richard Henderson <rth@cygnus.com>
19050
19051 * alpha.md: Revert Thu Nov 26 change that came in through the
19052 last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
19053 Avoid earlyclobber when possible.
19054
19055 Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19056
19057 * libgcc2.c (__do_global_ctors): Call atexit with one arg.
19058
19059 * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
19060 Define HAVE_ON_EXIT.
19061
19062 Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19063
19064 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
19065 CTYPE_CONV in all ctype macros.
19066
19067 * cccp.c (initialize_char_syntax): Use uppercase ctype macro
19068 from system.h.
19069
19070 * cexp.y (initialize_random_junk): Likewise.
19071
19072 * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
19073
19074 * i370.c (handle_pragma): Likewise.
19075
19076 * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
19077
19078 * v850.c (override_options): Likewise.
19079
19080 * doprint.c (_doprnt): Likewise.
19081
19082 * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
19083 Likewise.
19084
19085 * fixinc/server.c (load_data): Likewise.
19086
19087 * fold-const.c (real_hex_to_f): Likewise.
19088
19089 * genattr.c (write_upcase, gen_attr): Likewise.
19090
19091 * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
19092 write_upcase): Likewise.
19093
19094 * genemit.c (print_code): Likewise.
19095
19096 * genopinit.c (gen_insn): Likewise.
19097
19098 * genpeep.c (print_code): Likewise.
19099
19100 * genrecog.c (print_code): Likewise.
19101
19102 * optabs.c (init_libfuncs): Likewise.
19103
19104 Thu Sep 16 14:03:32 1999 Mark Mitchell <mark@codesourcery.com>
19105
19106 * haifa-sched.c (sched_analyze): Keep the list of notes organized
19107 in pairs.
19108 (reemit_notes): Likewise.
19109
19110 Thu Sep 16 11:50:52 1999 Alex Samuel <samuel@codesourcery.com>
19111
19112 * ggc.h (ggc_root): Move to ggc-common.c.
19113 (roots): Remove.
19114 (ggc_mark_rtx, ggc_mark_tree): Change to macro.
19115 (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
19116 (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
19117 (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
19118 * ggc-common.c (ggc_root): Move from ggc.h.
19119 (roots): Declare, static.
19120 (ggc_mark_rtx, ggc_mark_tree): Renamed to...
19121 (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
19122 null or check/set mark bit.
19123 (ggc_mark_roots): New.
19124 * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
19125
19126 Thu Sep 16 11:37:32 1999 Richard Henderson <rth@cygnus.com>
19127
19128 * m32r.c: Include toplev.h.
19129 (*): Add ATTRIBUTE_UNUSED as needed to arguments.
19130 (gen_compare): Rename swap_p to must_swap to match uses.
19131 Add default abort case.
19132 (m32r_output_function_epilogue): Remove unused variables.
19133 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
19134 * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
19135 define to empty parameter list. Update all uses.
19136 (predicate decls): Use enum machine_mode not int.
19137 * m32r.md (movsi): Call abort, not fatal_insn.
19138 (zero_branch_insn, rev_zero_branch_insn): Add default abort case.
19139
19140 1999-09-14 Andrew Haley <aph@cygnus.com>
19141
19142 * config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
19143 use $0 instead of 0.
19144
19145 Thu Sep 16 10:53:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19146
19147 * reload1.c (order_regs_for_reload): Move hard_reg_n_uses
19148 computation out of loop over hard regs.
19149
19150 Wed Sep 15 21:37:06 1999 Mark Mitchell <mark@codesourcery.com>
19151
19152 * function.c (identify_blocks): Don't shadow a variable in an
19153 outer scope.
19154 * integrate.c (integrate_decl_tree): Don't use pushlevel,
19155 pushdecl, or poplevel to build up the new BLOCK tree.
19156 (expand_inline_function): Likewise.
19157 (integrate_parm_decls): Likewise.
19158
19159 Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
19160
19161 * c-typeck.c (qualify_type): Merge qualifiers from both types.
19162
19163 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
19164
19165 * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
19166 * invoke.texi: Document this change.
19167
19168 Wed Sep 15 17:56:00 1999 Richard Henderson <rth@cygnus.com>
19169
19170 * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
19171 Free the struct.
19172 (mark_emit_status): Renamed from mark_emit_state.
19173 * except.c (mark_eh_status): Renamed from mark_eh_state.
19174 Check not null before marking.
19175 (free_eh_status): New.
19176 * expr.c (mark_expr_status, free_expr_status): New.
19177 * function.c (free_machine_status): New.
19178 (free_after_parsing): New.
19179 (free_after_compilation): Move bits to free_after_parsing; call
19180 free_eh_status, free_expr_status; zero the marked members of the
19181 function state.
19182 (prepare_function_start): No can_garbage_collect.
19183 Call init_eh_for_function.
19184 (expand_dummy_function_end): Free up current_function state.
19185 (mark_function_status): Renamed from mark_function_state.
19186 (mark_function_chain): No can_garbage_collect. Call mark_expr_status.
19187 * function.h (struct function): No can_garbage_collect.
19188 (free_machine_status, free_after_parsing): Declare.
19189 (free_eh_status, free_expr_status): Declare.
19190 * ggc.h (mark_expr_status): Declare.
19191 * stmt.c (free_stmt_status): Free the struct.
19192 (mark_stmt_status): Renamed from mark_stmt_state.
19193 (init_stmt): Don't call init_eh.
19194 (init_stmt_for_function): Don't call init_eh_for_function.
19195 * toplev.c (compile_file): Call init_eh.
19196 (rest_of_compilation): Free basic block info before ggc_collect.
19197 Call free_after_parsing; conditionally call free_after_compilation.
19198 * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
19199 Check not null before marking.
19200 (free_varasm_status): Don't check DECL_DEFER_OUTPUT. Free the struct.
19201
19202 Wed Sep 15 17:53:16 1999 Richard Henderson <rth@cygnus.com>
19203
19204 * c-lex.c (yylex): Initialize warn.
19205
19206 Wed Sep 15 18:35:38 1999 Jeffrey A Law (law@cygnus.com)
19207
19208 * pa.c (emit_move_sequence): Properly set the mode of the scratch
19209 register when performing secondary reloads for the SAR register.
19210
19211 Wed Sep 15 15:51:52 1999 Mark Mitchell <mark@codesourcery.com>
19212
19213 * rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
19214 (NOTE_BLOCK): New macro.
19215 (NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
19216 * function.h (identify_blocks): Change prototype.
19217 * function.c (identify_blocks): Simplify.
19218 (reorder_blocks): Likewise.
19219 * ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
19220 NOTE_INSN_BLOCK_{BEG,END}.
19221 * haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
19222 the list of saved notes if the note isn't a
19223 NOTE_INSN_BLOCK_{BEG,END}.
19224 (move_insn1): Use NOTE_EH_HANDLER in comment, rather than
19225 NOTE_BLOCK_NUMBER.
19226 (reemit_notes): Adjust recreation of notes to reflect new saved
19227 note structure.
19228 * print-rtl.c (print_rtx): Print the address of the BLOCK when
19229 printing a block note.
19230 * stmt.c (block_vector): Remove.
19231 (find_loop_tree_blocks): Simplify.
19232 (unroll_block_trees): Likewise.
19233 * tree.h (reorder_block): Change prototype.
19234
19235 Wed Sep 15 14:39:35 1999 Jason Merrill <jason@yorick.cygnus.com>
19236
19237 * gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT.
19238 * libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
19239 (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
19240 (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl.
19241 (atexit, exit): Simplify.
19242 * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT.
19243 * config/lots: Remove defns of HAVE_ATEXIT.
19244
19245 Wed Sep 15 10:25:12 1999 Mark Mitchell <mark@codesourcery.com>
19246
19247 * calls.c (precompute_arguments): Fix typo in comment.
19248 * expr.c (preexpand_calls): Don't preexpand the cleanup in a
19249 TARGET_EXPR.
19250
19251 Wed Sep 15 09:59:59 1999 Mark Mitchell <mark@codesourcery.com>
19252
19253 * dsp16xx.c (override_options): Fix typos in GC root registration.
19254
19255 Wed Sep 15 15:23:28 1999 Philip Blundell <pb@nexus.co.uk>
19256
19257 * config/arm/linux-elf.h (MAKE_DECL_ONE_ONLY): Copy definition
19258 from config/svr4.h.
19259 (UNIQUE_SECTION_P, UNIQUE_SECTION): Likewise.
19260 (FUNCTION_PROFILER): Redefine appropriately for Linux.
19261 (CC1_SPEC): Likewise.
19262
19263 Wed Sep 15 10:09:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19264
19265 * genattr.c (main): Add extern prototype. Call return, not exit.
19266 * genattrtab.c (main): Likewise.
19267 * gencheck.c (main): Likewise.
19268 * gencodes.c (main): Likewise.
19269 * genconfig.c (main): Likewise.
19270 * genemit.c (main): Likewise.
19271 * genextract.c (main): Likewise.
19272 * genflags.c (main): Likewise.
19273 * gengenrtl.c (main): Likewise.
19274 * genopinit.c (main): Likewise.
19275 * genoutput.c (main): Likewise.
19276 * genpeep.c (main): Likewise.
19277 * genrecog.c (main): Likewise.
19278
19279 * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
19280 * genattrtab.c (get_insn_name): Likewise.
19281 * gencodes.c (get_insn_name): Likewise.
19282 * genconfig.c (get_insn_name): Likewise.
19283 * genemit.c (get_insn_name): Likewise.
19284 * genextract.c (get_insn_name): Likewise.
19285 * genflags.c (get_insn_name): Likewise.
19286 * genopinit.c (get_insn_name): Likewise.
19287 * genpeep.c (get_insn_name): Likewise.
19288
19289 * gencheck.c (usage): Add static prototype.
19290 * genextract.c (print_path): Constify a char*.
19291 * genopinit.c (optabs): Likewise.
19292 * genoutput.c (operand_data, data, output_predicate_decls,
19293 compare_operands): Likewise.
19294 * genrecog.c (write_tree): Add default case in switch.
19295
19296 Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19297
19298 * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
19299
19300 * print-rtl.c (get_insn_name): Remove prototype.
19301
19302 * toplev.h (progname): Declare const.
19303
19304 * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
19305 init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
19306 dump_sched_info, dump_local_alloc, regset_release_memory,
19307 print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
19308 error_with_file_and_line, error_with_decl, error_for_asm, error,
19309 fatal, warning_with_file_and_line, warning_with_decl, warning,
19310 pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
19311 Remove redundant prototypes.
19312
19313 (notice, check_lang_option, report_file_and_line, vnotice,
19314 mark_file_stack): Add static prototype.
19315 (set_fatal_function): Add prototype.
19316 (vnotice, report_file_and_line, set_fatal_function,
19317 check_lang_option): Constify a char*.
19318 (main): Prototype. Call return, not exit.
19319
19320 Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19321
19322 * aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
19323
19324 * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
19325
19326 * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
19327
19328 * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
19329
19330 Wed Sep 15 11:04:43 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19331
19332 * function.c (assign_parms): Delete arg SECOND_TIME. Don't test it,
19333 behave as if it's zero in all cases.
19334 (expand_function_start): Adjust call to assign_parms.
19335 * tree.h (assign_parms): Adjust prototype.
19336 * objc/objc-act.c (hack_method_prototype): Adjust call to
19337 assign_parms.
19338
19339 Tue Sep 14 21:47:06 1999 Jeffrey A Law (law@cygnus.com)
19340
19341 * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
19342 arg_pointer_rtx fixed if the argument pointer register is
19343 not fixed.
19344 (NONZERO_BASE_PLUS_P): Likewise.
19345
19346 Tue Sep 14 20:26:02 1999 Richard Henderson <rth@cygnus.com>
19347
19348 * rtl.def (match_insn, match_insn2): Remove match_insn; rename
19349 match_insn2 to match_insn.
19350 * genrecog.c (add_to_sequence): Rename MATCH_INSN2.
19351
19352 Tue Sep 14 20:10:29 1999 Richard Henderson <rth@cygnus.com>
19353
19354 * Makefile.in (USER_H): Remove va-foo.h.
19355
19356 * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
19357 va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
19358 va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
19359 va-spur.h,va-v850.h}: Remove.
19360
19361 Tue Sep 14 19:43:16 1999 Richard Henderson <rth@cygnus.com>
19362
19363 * sparc/sparc.md (eligible_for_return_delay): New attribute.
19364 (in_return_delay): Use it instead of match_insn.
19365
19366 Tue Sep 14 23:05:37 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19367
19368 * config/alpha/va_list.h (va-alpha.h): Do not include.
19369 (__gnuc_va_list): Typedef as in varargs.h.
19370
19371 Tue Sep 14 18:14:03 1999 Richard Henderson <rth@cygnus.com>
19372
19373 * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
19374 DECL_LIVE_RANGE_RTL.
19375
19376 Tue Sep 14 16:47:08 1999 Mark Mitchell <mark@codesourcery.com>
19377
19378 * except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
19379 not NOTE_BLOCK_NUMBER.
19380 (expand_eh_region_end): Likewise.
19381 (find_exception_handler_labels): Likewise.
19382 (scan_region): Likewise.
19383 (exception_optimize): Likewise.
19384 (update_rethrow_references): Likewise.
19385 (set_insn_eh_region): Likewise.
19386 * final.c (final_scan_insn): Likewise.
19387 * flow.c (make_edges): Likewise.
19388 * integrate.c (expand_inline_function): Likewise.
19389 * print-rtl.c (print_rtx): Likewise.
19390
19391 Tue Sep 14 16:30:16 1999 Richard Henderson <rth@cygnus.com>
19392
19393 * ginclude/stdarg.h, ginclude/varargs.h: Implement in
19394 terms of builtin functions and types.
19395
19396 * mips.c (mips_build_va_list): New.
19397 (mips_va_start, mips_va_arg): New.
19398 * mips.h (BUILD_VA_LIST_TYPE): New.
19399 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
19400
19401 * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
19402 (sh_build_va_list, sh_va_start, sh_va_arg): New.
19403 * sh.h (BUILD_VA_LIST_TYPE): New.
19404 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
19405
19406 Tue Sep 14 16:20:24 1999 Richard Henderson <rth@cygnus.com>
19407
19408 * recog.h (struct recog_data): Make dup_num, operand_address_p,
19409 n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
19410 (struct insn_data): Likewise with n_operands, n_dups,
19411 n_alternatives, output_format.
19412 * regclass.c (scan_one_insn): Cast n_operands to int before
19413 arithmetic inside comparison.
19414
19415 Tue Sep 14 15:13:36 1999 Richard Henderson <rth@cygnus.com>
19416
19417 * toplev.c (compile_function): Unconditionally emit nop.
19418
19419 Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19420
19421 * haifa-sched.c (actual_hazard): Move declaration of variable
19422 `this_cost' into the scope where it is used.
19423
19424 Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19425
19426 * c-pragma.c (handle_pragma_token): Wrap variables `name' and
19427 `value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
19428 HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
19429
19430 * genrecog.c (make_insn_sequence): Call memset, not bzero.
19431
19432 * jump.c (find_insert_position): Don't declare or define unless
19433 !HAVE_conditional_arithmetic.
19434 (returnjump_p_1, delete_prior_computation): Add static prototypes.
19435
19436 * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
19437
19438 * recog.c (offsettable_address_p): Prototype function pointer.
19439 (preprocess_constraints): Call memset, not bzero.
19440
19441 * tree.c (tree_node_kind_names): Constify a char*. Make static.
19442 (gcc_obstack_init): Don't declare.
19443 (fix_sizetype): Add static prototype.
19444 (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
19445 (tree_cons): Call memset, not bzero.
19446
19447 * varasm.c (remove_from_pending_weak_list): Wrap declaration and
19448 definition in macro ASM_WEAKEN_LABEL.
19449 (mark_const_hash_entry): Add static prototype.
19450
19451 Tue Sep 14 12:22:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19452
19453 * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
19454
19455 * unroll.c (find_common_reg_term, subtract_reg_term,
19456 loop_find_equiv_value): Add static prototypes.
19457 (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
19458 (copy_loop_body): Remove unreachable break statement.
19459
19460 * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
19461
19462 * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
19463
19464 Tue Sep 14 15:28:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19465
19466 Undo some changes from the gcc2 merge:
19467 * rtl.def (CONSTANT_P_RTX): Fix the comment for this rtx code.
19468 * emit-rtl.c (gen_rtx_REG): Don't test special reg rtx's for null
19469 pointers.
19470
19471 Undo this change:
19472 Sat Oct 3 07:20:28 1998 Stephen L Moshier <moshier@world.std.com>
19473 * emit-rtl.c (gen_lowpart_common): Disable optimization of
19474 initialized float-int union if the value is a NaN.
19475
19476 Tue Sep 14 04:03:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
19477
19478 * gthr-win32.h: New file.
19479
19480 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
19481 shared as a valid attribute.
19482 * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
19483 * extend.texi: Document `shared' variable attribute.
19484
19485 Tue Sep 14 04:01:46 1999 Loren Rittle <ljrittle@acm.org>
19486
19487 * configure.in: Handle --enable-threads on FreeBSD.
19488 * configure: Rebuit.
19489
19490 Tue Sep 14 03:58:44 1999 Andreas Jaeger <aj@arthur.rhein-neckar.de>
19491
19492 * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
19493 thread support.
19494 * configure: Rebuilt.
19495
19496 Tue Sep 14 03:47:23 1999 Joel Sherrill <joel@OARcorp.com>
19497 Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
19498 Rosimildo DaSilva <rdasilva@connecttel.com>
19499
19500 * configure.in (m68k-*-rtemscoff*): Added.
19501 * configure.in (mips64orion-*-rtems*): Converted to ELF.
19502 * configure.in (sparc-*-rtemsaout*): Added as alias for old
19503 sparc-rtems configuration.
19504 * configure.in (sparc-*-rtemself*): Added.
19505 * configure.in (sparc-*-rtems*): Now ELF not a.out.
19506 * config/i386/rtems.h: Added comment.
19507 * config/sparc/rtemself.h: New file.
19508
19509 * configure.in (m68k-rtemself): Added.
19510 * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
19511 and DWARF_DEBUGGING_INFO.
19512 * config/m68k/crti.s: New file.
19513 * config/m68k/crtn.s: New file.
19514 * config/m68k/t-crtstuff: New file.
19515 * config/m68k/rtemself.h: New file.
19516
19517 * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
19518 global ctor/dtor and C++ exception handling.
19519 * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
19520 for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
19521 ENDFILE_SPEC.
19522 * config/i386/t-rtems-i386: New File.
19523
19524 Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
19525
19526 * stmt.c (expand_end_case): Return right away if the case stack is
19527 empty.
19528
19529 Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
19530
19531 * Makefile.in (version.c): Remove rule incorrectly brought in from
19532 the gcc2 merge.
19533
19534 Tue Sep 14 01:42:27 1999 Marc Espie <espie@cvs.openbsd.org>
19535
19536 * Makefile.in: Prepend $(SHELL) to move-if-change calls.
19537 * msdos/top.sed: Take into account a prepended $(SHELL) to
19538 move-if-change.
19539 * winnt/config-nt.sed: Likewise. Kill bogus substitution.
19540
19541 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
19542
19543 Tue Sep 14 01:38:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
19544
19545 * regmove.c (fixup_match_1): Don't change an unchanging register.
19546 (stable_but_for_p): Renamed to:
19547 (stable_and_no_regs_but_for_p). Reject unchanging registers too.
19548 Changed all callers.
19549
19550 Tue Sep 14 01:33:15 1999 Andreas Schwab <schwab@suse.de>
19551
19552 * loop.c (strength_reduce): Don't call reg_used_between_p if the
19553 insn from BL2 is after the insn from BL.
19554
19555 Mon Sep 13 21:06:01 1999 Richard Henderson <rth@cygnus.com>
19556
19557 * recog.h (INSN_OUTPUT_FORMAT_*): New.
19558 (struct insn_data): Merge `template' and `outfun' into `output'.
19559 Add `output_format'.
19560 * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
19561 (struct data): Remove `outfun'; add `output_format'.
19562 (name_for_index): Remove declaration.
19563 (output_insn_data): Handle output formats.
19564 (process_template): Emit the bare array for @.
19565 (gen_expand, gen_split): Set output_format to NONE.
19566 * output.h (get_insn_template): Declare.
19567 * final.c (get_insn_template): New.
19568 (final_scan_insn): Use it.
19569 * toplev.c (compile_file): Likewise.
19570
19571 * c4x/c4x.c (c4x_process_after_reload): Likewise.
19572 * i860/i860.c (output_delayed_branch): Likewise.
19573 (output_delay_insn): Likewise.
19574
19575 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19576
19577 * rtl.c (obstack_alloc_rtx): Removed.
19578
19579 1999-09-13 17:03 -0700 Zack Weinberg <zack@bitmover.com>
19580
19581 * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
19582
19583 Mon Sep 13 15:21:46 1999 Richard Henderson <rth@cygnus.com>
19584
19585 * i386.c (call_insn_operand): Reject const_int.
19586 (expander_call_insn_operand): Use call_insn_operand.
19587
19588 Mon Sep 13 17:44:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19589
19590 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
19591
19592 1999-09-13 12:18 -0700 Zack Weinberg <zack@bitmover.com>
19593
19594 * config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
19595 Use DImode operation.
19596
19597 1999-09-13 12:13 -0700 Zack Weinberg <zack@bitmover.com>
19598
19599 * gcc.c: Include sys/resource.h.
19600 (report_times): New flag.
19601 (execute): If report_times is set, calculate and report the
19602 CPU time consumed by each subprocess.
19603
19604 (rus, prus): New globals.
19605 (option_map): Add --time.
19606 (display_help): Document -time.
19607 (process_command): Set report_times if -time is given.
19608 Turn off -pipe if -time is given.
19609
19610 * invoke.texi: Document new option -time.
19611
19612 * configure.in: Check for getrusage. Check if we have to
19613 prototype getrusage.
19614 * acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
19615 * configure: Regenerate.
19616 * config.in: Regenerate.
19617
19618 Mon Sep 13 12:57:06 1999 Dave Brolley <brolley@cygnus.com>
19619
19620 * cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
19621 fields.
19622
19623 Mon Sep 13 10:01:33 1999 Nick Clifton <nickc@cygnus.com>
19624
19625 * config/fp-bit.c: Define L_thenan_sf or L_thenan_df (as
19626 appropriate) if FINE_GRAINED_LIBRARIES is not defined.
19627 (nan): Return _thenan_sf or _thenan_df as appropriate.
19628 (L_thenan_sf): Define _thenan_sf.
19629 (L_thenan_df): Define _thenan_df.
19630
19631 * Makefile.in (FPBIT_FUNCS): Add _thenan_sf.
19632 (DPBIT_FUNCS): Add _thenan_df.
19633
19634 Mon Sep 13 09:38:53 1999 Andreas Schwab <schwab@suse.de>
19635
19636 * tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and
19637 TYPE_SIZE_UNIT.
19638
19639 Sun Sep 12 23:28:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19640
19641 * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.
19642
19643 * gcc.h: New file.
19644 (lang_specific_driver): Don't take a function pointer parameter.
19645 All callers changed.
19646
19647 * gcc.c: Include gcc.h.
19648 (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
19649 lang_specific_extra_outfiles, fatal): Don't declare.
19650 (multilib_defaults_raw): Constify.
19651 (read_specs): Call memset, rather than bzero.
19652 (main): Call return, not exit.
19653 (lookup_compiler): Call memcpy, not bcopy.
19654 (fatal): Make extern.
19655
19656 * cppspec.c: Include gcc.h.
19657 (lang_specific_driver): Initialize variable `quote'. Constify a
19658 char*. All calls to the function pointer parameter now
19659 explicitly call `fatal'.
19660
19661 * gccspec.c (lang_specific_driver): Include gcc.h.
19662
19663 Sun Sep 12 19:52:10 1999 Richard Earnshaw <rearnsha@arm.com>
19664
19665 * arm.c (note_invalid_constants): Use recog_data.operand_type
19666 for recog_op_type.
19667
19668 Sun Sep 12 15:53:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19669
19670 * tree.h (build_common_tree_nodes, build_common_tree_nodes_2):
19671 Declare.
19672
19673 * reload.h (reload_in, reload_out, reload_in_reg, reload_out_reg,
19674 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
19675 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
19676 reload_secondary_in_reload, reload_secondary_out_reload,
19677 reload_secondary_in_icode, reload_secondary_out_icode,
19678 reload_reg_rtx, reload_when_needed): Delete declarations.
19679 (struct reload): New structure.
19680 (rld): Declare new array.
19681 * reload.c (reload_in, reload_out, reload_in_reg, reload_out_reg,
19682 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
19683 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
19684 reload_secondary_in_reload, reload_secondary_out_reload,
19685 reload_secondary_in_icode, reload_secondary_out_icode,
19686 reload_reg_rtx, reload_when_needed): Delete definitions.
19687 (rld): New array.
19688 (whole file): Replace uses of the deleted arrays with uses of rld.
19689 * reload1.c (whole file): Replace uses of the deleted arrays with
19690 uses of rld.
19691 (choose_reload_regs): Copy in/out of save_reload_reg_rtx with
19692 explicit loops, not with bcopy.
19693
19694 Sun Sep 12 05:00:24 1999 Richard Henderson <rth@cygnus.com>
19695
19696 * recog.h (insn_template, insn_outfun, insn_n_operands, insn_n_dups,
19697 insn_n_alternatives, insn_operand_constraint, insn_operand_address_p,
19698 insn_operand_mode, insn_operand_strict_low, insn_operand_predicate,
19699 insn_name): Delete and consolidate into new structures.
19700 (insn_operand_predicate_fn): New.
19701 (insn_output_fn): New.
19702 (insn_gen_fn): New.
19703 (struct insn_operand_data): New.
19704 (struct insn_data): New.
19705 (insn_data): New.
19706 (OUT_FCN): Update for insn_data change.
19707 * builtins.c (expand_builtin_strlen): Likewise.
19708 (expand_builtin_memcmp): Likewise.
19709 * combine.c (make_extraction, simplify_comparison): Likewise.
19710 * cse.c (canon_reg, cse_insn): Likewise.
19711 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
19712 * expmed.c (store_bit_field, extract_bit_field): Likewise.
19713 (emit_store_flag): Likewise.
19714 * expr.c (convert_move, emit_block_move): Likewise.
19715 (clear_storage, emit_push_insn, expand_increment): Likewise.
19716 (do_store_flag): Likewise.
19717 * expr.h (GEN_FCN): Likewise.
19718 (insn_gen_function): Die.
19719 * final.c (final_scan_insn): Update for insn_data change.
19720 (output_asm_name): Likewise.
19721 * function.c (fixup_var_refs_1): Likewise.
19722 * loop.c (check_dbra_loop): Likewise.
19723 * optabs.c (expand_binop, expand_twoval_binop): Likewise.
19724 (expand_unop, expand_complex_abs, emit_unop_insn): Likewise.
19725 (prepare_cmp_insn, prepare_operand, emit_indirect_jump): Likewise.
19726 (emit_conditional_move, gen_add2_insn, gen_sub2_insn): Likewise.
19727 * recog.c (validate_replace_rtx_1, extract_insn): Likewise.
19728 * regmove.c (gen_add3_insn): Likewise.
19729 * reload.c (push_secondary_reload, combine_reloads): Likewise.
19730 (find_reloads, find_reloads_address_1): Likewise.
19731 (debug_reload_to_stream): Likewise.
19732 * reload1.c (emit_reload_insns, gen_reload): Likewise.
19733 * stmt.c (expand_end_case): Likewise.
19734 * toplev.c (compile_file): Likewise.
19735
19736 * c4x/c4x.c (c4x_process_after_reload): Likewise.
19737 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
19738
19739 * print-rtl.c (insn_name_ptr): Remove declaration.
19740 (get_insn_name): Declare.
19741 (print_rtx): Use it.
19742 * genoutput.c (insn_name_ptr): Remove.
19743 (next_operand_number): New.
19744 (struct operand_data): New.
19745 (null_operand, odata, odata_end): New.
19746 (struct data): Use struct operand_data.
19747 (idata, idata_end): Renamed from insn_data and end_of_insn_data.
19748 (get_insn_name): Renamed from name_for_index.
19749 (output_prologue): Define NO_MD_PROTOTYPES.
19750 (output_predicate_decls): Break out from output_epilogue.
19751 Iterate over the operands list.
19752 (output_operand_data): Break out from output_epilogue. Emit
19753 just the operands list.
19754 (output_insn_data): Break out from output_epilogue. Emit just
19755 the insn data.
19756 (output_epilogue): Remove.
19757 (output_get_insn_name): New.
19758 (constraints, op_n_alternatives, predicates, address_p): Die.
19759 (modes, strict_low, seen): Die.
19760 (scan_operands): Take new param `d' instead of writing to
19761 seven global variables.
19762 (compare_operands): New.
19763 (place_operands): New.
19764 (validate_insn_alternatives): Update for struct data change.
19765 (gen_insn): Don't zero or copy 7 global arrays. Update for
19766 scan_operands; call place_operands.
19767 (gen_peephole, gen_expand, gen_split): Likewise.
19768 (main): Update for new output routines.
19769
19770 * genattr.c (insn_name_ptr): Remove.
19771 (get_insn_name): New function.
19772 * genattrtab.c, gencodes.c, genconfig.c, genemit.c: Likewise.
19773 * genextract.c, genflags.c, genopinit.c, genpeep.c: Likewise.
19774 * genrecog.c: Likewise.
19775
19776 * alpha.md (adddi3): Make `pattern' array static.
19777
19778 Sun Sep 12 22:05:21 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19779
19780 * config/c4x/c4x.h (c4x_rpts_cycles_string,
19781 c4x_cpu_version_string): Constify char *.
19782 * config/c4x/c4x.c (c4x_rpts_cycles_string,
19783 c4x_cpu_version_string): Likewise.
19784
19785 Sat Sep 11 23:28:33 1999 Richard Henderson <rth@cygnus.com>
19786
19787 * tree.c (save_tree_status): Revert 10 Sep change.
19788 (restore_tree_status): Likewise. Call obstack_free with NULL
19789 before freeing the obstack proper.
19790
19791 Sat Sep 11 23:23:46 1999 Richard Henderson <rth@cygnus.com>
19792
19793 * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
19794
19795 * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
19796 surrounding context.
19797
19798 Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
19799
19800 * tree.c (type_hash_canon): Put all types in the hash-table, when
19801 GC'ing.
19802
19803 Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
19804
19805 * recog.h (struct recog_data, recog_data): New.
19806 (recog_foo variables): Kill.
19807 * recog.c (recog_operand, recog_operand_loc): Kill.
19808 (recog_dup_loc, recog_dup_num, recog_n_operands): Kill.
19809 (recog_n_dups, recog_n_alternatives, recog_operand_mode): Kill.
19810 (recog_constraints, recog_op_type, recog_operand_address_p): Kill.
19811 (recog_data): Define.
19812 (extract_insn): Update all recog_foo references to use recog_data.
19813 (preprocess_constraints, constrain_operands): Likewise.
19814 * final.c (final_scan_insn, cleanup_subreg_operands): Likewise.
19815 * genattrtab.c (main): Likewise.
19816 * genextract.c (main): Likewise.
19817 * genoutput.c: Likewise.
19818 * genrecog.c (write_subroutine, main): Likewise.
19819 * local-alloc.c (block_alloc): Likewise.
19820 * reg-stack.c (record_asm_reg_life, subst_asm_stack_regs): Likewise.
19821 * regclass.c (scan_one_insn, record_reg_classes): Likewise.
19822 * regmove.c (regmove_optimize, find_matches, fixup_match_1): Likewise.
19823 * reload.c (find_reloads, find_reloads_toplev): Likewise.
19824 * reload1.c (maybe_fix_stack_asms, eliminate_regs_in_insn): Likewise.
19825 (reload_cse_simplify_operands): Likewise.
19826
19827 * arc/arc.c (arc_final_prescan_insn): Likewise.
19828 * arm/arm.c (note_invalid_constants, arm_final_prescan_insn): Likewise.
19829 * h8300/h8300.c (notice_update_cc): Likewise.
19830 * i386/i386.c (ix86_attr_length_default, ix86_agi_dependant): Likewise.
19831 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
19832 * mn10200/mn10200.c (notice_update_cc): Likewise.
19833 * mn10300/mn10300.c (notice_update_cc): Likewise.
19834 * romp/romp.c (update_cc): Likewise.
19835 * sparc/sparc.c (check_pic): Likewise.
19836 * v850/v850.c (notice_update_cc): Likewise.
19837
19838 * genemit.c (main): Don't declare recog_operand.
19839
19840 Sat Sep 11 12:41:55 1999 Alex Samuel <samuel@codesourcery.com>
19841
19842 * ggc.h (rtvec_def): Forward declare.
19843 (tree_node): Likewise.
19844 (ggc_root): Define.
19845 (roots): Declare.
19846 (ggc_set_mark_rtx): Add prototype.
19847 (ggc_set_mark_rtvec): Likewise.
19848 (ggc_set_mark_tree): Likewise.
19849 * ggc-simple.c (ggc_root): Don't define.
19850 (roots): Don't declare.
19851 (ggc_mark_rtx): Remove.
19852 (ggc_mark_rtvec): Likewise.
19853 (ggc_mark_tree): Likewise.
19854 (ggc_mark_varray): Likewise.
19855 (ggc_mark_tree_hash_table_entry): Likewise.
19856 (ggc_mark_tree_hash_table): Likewise.
19857 (ggc_set_mart_rtx): New function.
19858 (ggc_set_mark_rtvec): Likewise.
19859 (ggc_set_mark_tree): Likewise.
19860 (ggc_add_root): Remove.
19861 (ggc_add_rtx_root): Likewise.
19862 (ggc_remove_tree_root): Likewise.
19863 (ggc_add_string_root): Likewise.
19864 (ggc_add_tree_varray_root): Likewise.
19865 (ggc_add_tree_hash_table_root): Likewise.
19866 (ggc_del_root): Likewise.
19867 (ggc_mark_rtx_ptr): Likewise.
19868 (ggc_mark_tree_ptr): Likewise.
19869 (ggc_mark_string_ptr): Likewise.
19870 (ggc_mark_tree_varray_ptr): Likewise.
19871 (ggc_mark_tree_hash_table_ptr): Likewise.
19872 * ggc-common.c: New file.
19873 * Makefile.in (OBJS): Add ggc-common.o.
19874 (ggc-common.o): List dependencies.
19875
19876 1999-09-10 22:37 -0700 Zack Weinberg <zack@bitmover.com>
19877
19878 * cppalloc.c (xstrdup): Use memcpy.
19879 * cpperror.c (cpp_print_containing_files): Don't use
19880 cpp_notice.
19881 * cpplib.c (conditional_skip): Set temp->lineno.
19882 (do_endif): Make error message less obscure.
19883 (if_directive_name): New function.
19884 (cpp_get_token [case EOF]): Unwind the if stack and generate
19885 error messages for each unterminated conditional in this file.
19886 (parse_string): Do not behave differently if -traditional.
19887
19888 Fri Sep 10 14:04:07 1999 Richard Henderson <rth@cygnus.com>
19889
19890 * builtins.c (expand_builtin_va_arg): Cope with an array-type
19891 va_list decomposing to pointer-type.
19892 * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
19893 (rs6000_va_arg): Likewise.
19894
19895 Fri Sep 10 13:21:21 1999 Jim Wilson <wilson@cygnus.com>
19896
19897 * except.c (start_dynamic_handler): Compute size using
19898 STACK_SAVEAREA_MODE.
19899
19900 Fri Sep 10 16:01:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19901
19902 * protoize.c: Remove various __STDC__ and POSIX hacks. Don't
19903 include directory headers. Don't define strrchr. Don't provide
19904 my_* replacement functions. Prefer PTR over `pointer_type'.
19905 Don't prototype system functions. Don't redefine getopt.
19906
19907 (shortpath, fancy_abort, notice, savestring, dupnstr, substr,
19908 safe_read, safe_write, save_pointers, restore_pointers,
19909 is_id_char, in_system_include_dir, directory_specified_p,
19910 file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
19911 find_corresponding_lparen, referenced_file_is_newer,
19912 save_def_or_dec, munge_compile_params, gen_aux_info_file,
19913 process_aux_info_file, identify_lineno, check_source,
19914 seek_to_line, forward_to_next_token_char, output_bytes,
19915 output_string, output_up_to, other_variable_style_function,
19916 find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
19917 do_processing, is_syscalls_file, rename_c_file, find_extern_def,
19918 find_static_definition, connect_defs_and_decs, add_local_decl,
19919 add_global_decls, needs_to_be_converted, visit_each_hash_node,
19920 add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
19921 edit_fn_declaration, edit_formals_lists, edit_fn_definition,
19922 scan_for_missed_items, edit_file, string_list_cons): Add static
19923 prototypes.
19924 (standard_exec_prefix, target_machine, target_version,
19925 default_syscalls_dir, string_list, string_list_cons, find_file,
19926 do_cleaning): Constify a char*.
19927 (safe_read, safe_write): Use PTR, not a char*.
19928 (is_id_char): Take an int, not a char.
19929 (main): Add prototype. Call return, not exit.
19930
19931 Fri Sep 10 16:48:26 1999 Andrew Haley <aph@cygnus.com>
19932
19933 * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
19934 when comparing types.
19935
19936 Fri Sep 10 08:43:32 1999 Richard Henderson <rth@cygnus.com>
19937
19938 * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
19939 (strength_reduce): Release the varrays from the no-bivs early exit.
19940
19941 * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
19942 the loop over the registers.
19943
19944 * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
19945 for a new obstack.
19946 (restore_tree_status): Check that instead when freeing the obstack.
19947
19948 Wed Sep 8 16:12:04 1999 Andrew Haley <aph@cygnus.com>
19949
19950 * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
19951 as pointers.
19952
19953 Fri Sep 10 11:58:55 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19954
19955 * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some
19956 operand size modifiers.
19957
19958 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19959
19960 * c-common.c (c_common_nodes_and_builtins): Don't build
19961 va_list_type_node.
19962 * c-common.h (enum c_tree_index and related accesor macros): Remove
19963 everything now declared in tree.h.
19964 * c-decl.c (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
19965 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, WCHAR_UNSIGNED, FLOAT_TYPE_SIZE,
19966 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Don't provide defaults.
19967 (error_mark_node, void_type_node, char_type_node, integer_type_node,
19968 unsigned_type_node, ptr_type_node, va_list_type_node,
19969 integer_zero_node, null_pointer_node, integer_one_node): Delete.
19970 (init_decl_processing): Call build_common_tree_nodes and
19971 build_common_tree_nodes_2 instead of building their nodes here.
19972 Don't add roots for these nodes.
19973 * stor-layout.c (size_zero_node, size_one_node): Delete.
19974 (set_sizetype): Make a new node for bitsizetype each time.
19975 * tree.c (global_trees): New variable.
19976 (init_obstacks): Add a gc root for it.
19977 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
19978 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE,
19979 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Provide defaults.
19980 (build_common_tree_nodes): New function.
19981 (fix_sizetype): New function.
19982 (build_common_tree_nodes_2): New function.
19983 * tree.h (enum tree_index): New.
19984 (global_trees): Declare.
19985 Add accessor macros for all nodes now moved to global_trees.
19986 Delete their declarations.
19987
19988 Thu Sep 9 20:15:46 1999 Richard Henderson <rth@cygnus.com>
19989
19990 * c-decl.c (finish_function): When processing a nested function,
19991 push and pop GC context around rest_of_compilation.
19992
19993 Thu Sep 9 16:42:06 1999 Richard Henderson <rth@cygnus.com>
19994
19995 * i386.c (override_options): Remove ppro, pentium2, and p2 as aliases.
19996 Default ix86_arch to PROCESSOR_I386.
19997 * i386.h (CC1_CPU_SPEC): Don't add -march=foo. Remove -mno-foo.
19998 (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): Delete.
19999 (CPP_CPU_DEFAULT_SPEC): Define to __tune_foo__.
20000 (CC1_CPU_SPEC): Make -march=foo define __foo__, and provide
20001 __tune_foo__ if no -mcpu. Make -mcpu=bar define __tune_bar__.
20002 (EXTRA_SPECS): Remove deleted specs.
20003
20004 Thu Sep 9 16:03:06 1999 Richard Henderson <rth@cygnus.com>
20005
20006 * function.c (assign_stack_local_1): Allocate from
20007 function->x_frame_offset, not frame_offset.
20008
20009 Thu Sep 9 14:36:31 1999 Mark Mitchell <mark@codesourcery.com>
20010
20011 * ggc.h (lang_cleanup_tree): Remove.
20012 * gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
20013 * ggc-callbacks.c (lang_cleanup_tree): Remove.
20014
20015 * c-decl.c (finish_struct): Use ggc_alloc to allocate
20016 TYPE_LANG_SPECIFIC when garbage collecting.
20017 (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
20018 (lang_cleanup_tree): Remove.
20019
20020 Thu Sep 9 14:23:02 1999 Jason Merrill <jason@yorick.cygnus.com>
20021
20022 * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here.
20023 * crtstuff.c: Not here.
20024 * dwarf2out.c: Or here.
20025 * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame
20026 info.
20027
20028 Thu Sep 9 09:40:58 1999 Mark Mitchell <mark@codesourcery.com>
20029
20030 * function.h (free_after_compilation): Remove decl parameter.
20031 (free_varasm_status0: Likewise.
20032 (free_emit_status): Likewise.
20033 (free_stmt_status): Likewise.
20034 (free_after_compilation): Likewise.
20035 (init_lang_status): New variable.
20036 (free_lang_status): Likewise.
20037 * emit-rtl.c (free_emit_status): Make decl parameter implicit.
20038 * function.c (init_lang_status): New variable.
20039 (free_lang_status): Likewise.
20040 (push_function_context_to): Don't set function::decl here.
20041 (free_after_copmilation): Make decl parameter implicit. Call
20042 free_lang_status if defined.
20043 (prepare_function_start): Call init_lang_status if defined.
20044 (init_function_start): Set function::decl here.
20045 * profile.c (output_func_start_profiler): Don't call pushdecl
20046 until we've actually started the function.
20047 * stmt.c (free_stmt_status): Make decl parameter implicit.
20048 * toplev.c (rest_of_compilation): Don't pass decl to
20049 free_after_compilation.
20050 * varasm.c (free_varasm_status): Likewise.
20051
20052 Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20053
20054 * except.c (call_get_eh_context): Add root when allocating static
20055 tree variable.
20056
20057 Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
20058
20059 * arm.c: Include "ggc.h".
20060 (arm_add_gc_roots): New function.
20061 (arm_override_options): Call it.
20062 (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
20063
20064 * arm.md (define_asm_attributes): Add a pool_range attribute.
20065
20066 Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
20067
20068 * extend.texi (Volatiles): New node.
20069
20070 Thu Sep 9 03:37:31 1999 Richard Henderson <rth@cygnus.com>
20071
20072 * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
20073 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
20074 (struct ggc_any): Replace `mark' with `magic_mark'.
20075 (ggc_alloc_string): Use memcpy, not bcopy.
20076 (ggc_alloc_any): Set magic_mark. Update bytes_alloced_since_gc.
20077 (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
20078 (ggc_free_any): New.
20079 (ggc_mark_string): Use IGNORE_MARK. Calc back to struct gcc_string.
20080 (ggc_mark): Use IGNORE_MARK. Abort if magic doesn't match.
20081 (ggc_collect): Re-enable collection avoidance. Use GGC_ANY_MARK.
20082 Use IS_MARKED. Use ggc_free_any.
20083
20084 1999-09-09 Scott Bambrough <scottb@netwinder.org>
20085
20086 * config/arm/linux-elf.h: define NO_IMPLICIT_EXTERN_C
20087
20088 Thu Sep 9 01:55:21 1999 Richard Henderson <rth@cygnus.com>
20089
20090 * toplev.c (main): Always init_ggc.
20091
20092 Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com>
20093
20094 * except.c (find_all_handler_type_matches): Free the list if
20095 we found no matches.
20096
20097 * combine.c (SUBST): Break out to a real function do_SUBST.
20098 (SUBST_INT): Likewise.
20099 * gcse.c (free_pre_mem): Free `temp_bitmap'.
20100 (pre_insert): Free `inserted'.
20101 * loop.c (basic_induction_var): Always set `location'.
20102
20103 * function.c (expand_function_end): Add initial_trampoline as a root.
20104 * rtl.h (init_varasm_once): Declare.
20105 * toplev.c (compile_file): Call it.
20106 * ggc-simple.c (ggc_mark_string_ptr): New.
20107 (ggc_add_string_root): New.
20108 (ggc_collect): Disable collection avoidance temporarily.
20109 * ggc.h (ggc_add_string_root): Declare.
20110 * except.c (create_rethrow_ref): Use ggc_alloc_string.
20111 * optabs.c (init_libfuncs): Likewise.
20112 * varasm.c (named_section): Use ggc_alloc_string.
20113 (make_function_rtl): Likewise.
20114 (make_decl_rtl): Likewise.
20115 (assemble_static_space): Likewise.
20116 (assemble_trampoline_template): Likewise.
20117 (output_constant_def): Likewise.
20118 (force_const_mem): Likewise.
20119 (mark_const_hash_entry): New.
20120 (mark_pool_sym_hash_table): New.
20121 (mark_varasm_state): Use it.
20122 (init_varasm_once): New.
20123
20124 * expr.h (init_one_libfunc): Declare.
20125 * optabs.c (init_one_libfunc): New.
20126 (init_optabs): Use it.
20127 * config/gofast.h: Likewise.
20128 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
20129 * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
20130
20131 Thu Sep 9 13:46:06 1999 Geoffrey Keating <geoffk@cygnus.com>
20132
20133 * Makefile.in (cppexp.o): Depend on cpphash.h.
20134 * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
20135 Include cpphash.h.
20136 * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
20137 * cpplib.c (do_define): Generalise to handle poisoned definitions,
20138 redefining poisoned identifiers, etc.
20139 (do_undef): Don't allow poisoned identifiers to be undefined.
20140 (do_pragma): Add #pragma poison.
20141 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
20142
20143 * cccp.c: Add T_POISON node type.
20144 (special_symbol): Handle `defined(xxx)' and plain `xxx' for
20145 poisoned xxx.
20146 (do_define): Generalise to handle poisoned definitions,
20147 redefining poisoned identifiers, etc.
20148 (do_undef): Don't allow poisoned identifiers to be undefined.
20149 (do_pragma): Add #pragma poison.
20150 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
20151
20152 * c-pragma.c (handle_pragma_token): Ignore #pragma poison.
20153 * c-pragma.h: Add ps_poison state. We now always have generic
20154 pragmas.
20155
20156 Wed Sep 8 20:30:42 1999 Mark Mitchell <mark@codesourcery.com>
20157
20158 * ggc.h (ggc_alloc): New function.
20159 (ggc_mark): Likewise.
20160 * ggc-simple.c (ggc_any): New structure.
20161 (ggc_status): Add anys.
20162 (n_anys_collected): New variable.
20163 (ggc_alloc): Define.
20164 (ggc_mark): Likewise.
20165 (ggc_collect): Collect the anys.
20166
20167 Wed Sep 8 20:15:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20168
20169 * c-decl.c (mark_binding_level): Make static to match prototype.
20170
20171 Wed Sep 8 16:41:27 1999 Richard Henderson <rth@cygnus.com>
20172
20173 * flow.c (new_insn_dead_notes): Don't early out for preexisting regs.
20174
20175 Wed Sep 8 16:07:52 1999 Richard Henderson <rth@cygnus.com>
20176
20177 * gengenrtl.c (CONST_DOUBLE_FORMAT): Take the size REAL_ARITHMETIC
20178 will use into account. Expand the max width to 5.
20179 * rtl.c: Likewise.
20180
20181 Wed Sep 8 16:01:14 1999 Richard Henderson <rth@cygnus.com>
20182
20183 * ggc-simple.c (ggc_free_rtx): Poison the correct amount
20184 for the rtx length.
20185
20186 Wed Sep 8 15:23:54 1999 Richard Henderson <rth@cygnus.com>
20187
20188 * alpha.md (call value patterns): Remove the result predicates.
20189
20190 Wed Sep 8 13:35:38 1999 Richard Henderson <rth@cygnus.com>
20191
20192 * Makefile.in (stmp-fixinc): Remove extraneous exit 1 from
20193 last change.
20194
20195 Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20196
20197 * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
20198 changed from extern char *, to extern PTR. Also fix typo in
20199 NEED_DECLARATION_REALLOC test.
20200
20201 * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
20202
20203 Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20204
20205 * gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
20206 ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF,
20207 ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3,
20208 ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete.
20209
20210 * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR.
20211
20212 * cccp.c (pcfinclude): Likewise.
20213
20214 * global.c (allocno_compare): Likewise.
20215
20216 * haifa-sched.c (rank_for_schedule): Likewise.
20217
20218 * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise.
20219
20220 * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise.
20221
20222 * stupid.c (stupid_reg_compare): Likewise.
20223
20224 * tree.c (_obstack_allocated_p): Likewise.
20225
20226 * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise.
20227
20228 1999-09-08 Bruce Korb autogen@linuxbox.com
20229
20230 * Makefile.in: Give the hapless gperf user a hint about
20231 why "gperf -F" fails.
20232
20233 Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
20234
20235 * lists.c: Include ggc.h.
20236 (zap_lists): New.
20237 (init_EXPR_INSN_LIST_cache): Install it.
20238
20239 * ggc-simple.c (init_ggc): Absorb the old init.
20240 (ggc_push_context): Use xcalloc.
20241 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Likewise.
20242 (ggc_collect): Add [rvts] tags to the collection stats.
20243
20244 Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
20245
20246 * cccp.c (main): Fix handling of -include and -imacros options.
20247
20248 Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
20249
20250 * cpplib.c (cpp_push_buffer): Fix order of arguments.
20251
20252 Wed Sep 8 04:44:09 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
20253
20254 * rtl.h (obstack_alloc_rtx): Removed, it's now static in
20255 genrtl.c.
20256
20257 Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
20258
20259 * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
20260 * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
20261 and SET_DEST. Update comment.
20262
20263 Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20264
20265 * config/c4x/c4x.c: Include ggc.h.
20266 (c4x_add_gc_roots): New function.
20267 (c4x_override_options): Call c4x_add_gc_roots.
20268
20269 Wed Sep 8 00:00:16 1999 Richard Henderson <rth@cygnus.com>
20270
20271 * defaults.h (TARGET_ESC): Move ...
20272 * system.h: ... here, where Linas had it in the first place. Silly me.
20273
20274 Tue Sep 7 23:46:35 1999 Linas Vepstas <linas@linas.org>
20275
20276 * c-common.c: Use ISGRAPH, ISLOWER, toupper.
20277 * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
20278 genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
20279 * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
20280 * defaults.h (TARGET_ESC): Add default.
20281
20282 Tue Sep 7 23:36:59 1999 Linas Vepstas <linas@linas.org>
20283
20284 * configure.in: add i370-*-openedition, i370-*-mvs and
20285 i370-*-linux targets
20286
20287 Tue Sep 7 23:31:53 1999 Mark Mitchell <mark@codesourcery.com>
20288
20289 * dsp16xxx.c: Include ggc.h
20290 (override_options): Mark GC roots.
20291 * mn10200.c: Include ggc.h.
20292 (asm_file_start): Mark GC roots.
20293 * tahoe.c: Include ggc.h.
20294 (extensible_operand): Mark GC roots.
20295
20296 Tue Sep 7 23:23:15 1999 Linas Vepstas <linas@linas.org>
20297
20298 * README: Add section discussing status of ELF ABI.
20299 * i370.c: Fix misc spelling mistakes.
20300 (i370_label_scan): Updated notes, exception handling.
20301 (i370_function_prolog): Simplify ELF stack handling.
20302 * i370.h: (FIXED_REGISTERS): Free up r12 for ELF.
20303 (STACK_GROWS_DOWNWARD): ELF stack grows down.
20304 (ASM_DECLARE_FUNCTION_NAME): Fix crazy malloc size.
20305 * i370.md: (movdi): Add notes.
20306 (floatsidf2): Use stack not rtca for scratch float area.
20307 (iorsi3): Correct operand constraints.
20308 * x-oe: Restore TAROUTOPTS which are used by pax.
20309
20310 Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
20311
20312 * rs6000.c: Include ggc.h.
20313 (rs6000_add_gc_roots): New function.
20314 (override_options): Call it.
20315
20316 Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
20317
20318 * alpha.h (alpha_compare): New.
20319 (alpha_compare_op0, alpha_compare_op1, alpha_compare_fp_p): Remove.
20320 * alpha.c: Likewise for the definitions.
20321 (alpha_emit_conditional_branch): Update for alpha_compare.
20322 (alpha_emit_conditional_move): Likewise.
20323 * alpha.md (cmpdf, cmpdi): Likewise.
20324 (setcc patterns): Likewise. Zero alpha_compare after use.
20325 (sne): Optimize (x != 0) into (0U < x).
20326
20327 Tue Sep 7 21:55:02 1999 Richard Henderson <rth@cygnus.com>
20328
20329 * alpha.h (alpha_eh_epilogue_sp_ofs): Remove.
20330 (struct machine_function): Declare; add eh_epilogue_sp_ofs.
20331 (INIT_EXPANDERS): Remove.
20332 * alpha.c: Include ggc.h.
20333 (alpha_eh_epilogue_sp_ofs, alpha_return_addr_rtx): Remove.
20334 (alpha_init_machine_status, alpha_mark_machine_status): New.
20335 (override_options): Install them.
20336 (struct machine_function): Moved to alpha.h.
20337 (alpha_save_machine_status, alpha_restore_machine_status): Remove.
20338 (alpha_init_expanders): Remove.
20339 (alpha_return_addr): Adjust to use current_function->machine.
20340 (alpha_ra_ever_killed): Likewise.
20341 (alpha_expand_epilogue): Likewise.
20342 * alpha.md (eh_epilogue): Likewise.
20343
20344 Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
20345 Melissa O'Neill <oneill@cs.sfu.ca>
20346 Geoffrey Keating <geoffk@cygnus.com>
20347
20348 * config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
20349 call-used registers (call-saved registers must still be contiguous
20350 and end with r31, of course).
20351
20352 Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
20353
20354 * c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.
20355 (self_promoting_type_p): Delete.
20356 (self_promoting_args_p): Move ...
20357 * c-common.c: ... here.
20358 (c_common_nodes_and_builtins): Initialize lang_type_promotes_to.
20359 (simple_type_promotes_to): New.
20360 * builtins.c (lang_type_promotes_to): New.
20361 (expand_builtin_va_arg): Use it to give diagnostic for illegal types.
20362 * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): Move ...
20363 * c-common.h: ... here.
20364 (self_promoting_args_p, simple_type_promotes_to): Declare.
20365 * c-decl.c (duplicate_decls): Use simple_type_promotes_to.
20366 (grokdeclarator): Likewise.
20367 * tree.h (lang_type_promotes_to): Declare.
20368
20369 Tue Sep 7 17:15:21 1999 Mark Mitchell <mark@codesourcery.com>
20370
20371 Add some machine-dependent GC roots.
20372 * sparc.c: Include ggc.h.
20373 (sparc_add_gc_roots): New function.
20374 (mark_ultrasparc_pipeline_state): Likewise.
20375 (override_options): Call sparc_add_gc_roots.
20376 * pa.c: Include ggc.h.
20377 (pa_add_gc_roots): New function.
20378 (mark_deferred_plabels): Likewise.
20379 (override_options): Call pa_add_gc_roots.
20380 * mips.c: Include ggc.h.
20381 (mips_add_gc_roots): New function.
20382 (override_options): Use it.
20383
20384 Tue Sep 7 11:39:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20385
20386 * cpperror.c (cpp_file_line_for_message): Constify a char*.
20387
20388 * cppexp.c (parse_number, parse_charconst, cpp_lex,
20389 cpp_parse_expr): Add static prototypes.
20390 (parse_charconst): Don't cast away const-ness.
20391 (token): Constify a char*.
20392
20393 * cppfiles.c (file_name_list, include_hash, find_include_file,
20394 finclude, initialize_input_buffer): Constify a char*.
20395 (file_cleanup, find_position): Add static prototypes.
20396
20397 * cpphash.c (macro_cleanup, macarg, timestamp, special_symbol,
20398 collect_expansion): Add static prototypes.
20399 (cpp_install, create_definition, monthnames): Constify a char*.
20400
20401 * cpphash.h (cpp_install): Likewise.
20402
20403 * cppinit.c (known_suffixes, default_include,
20404 dump_special_to_buffer, NAME, cpp_start_read, cpp_finish): Likewise.
20405 (base_name, dump_special_to_buffer, initialize_dependency_output):
20406 Add static prototypes.
20407
20408 * cpplib.c (my_strerror): Constify a char*.
20409 (null_underflow, null_cleanup, skip_comment, copy_comment,
20410 copy_rest_of_line, handle_directive, pass_thru_directive,
20411 get_directive_token, read_line_number, cpp_print_file_and_line,
20412 v_cpp_error, v_cpp_warning, v_cpp_error_with_line,
20413 v_cpp_warning_with_line, detect_if_not_defined,
20414 consider_directive_while_skipping): Add static prototypes.
20415 (pass_thru_directive, check_macro_name, cpp_expand_to_buffer,
20416 cpp_pedwarn_with_file_and_line): Constify a char*.
20417
20418 * cpplib.h (cpp_options, include_hash, progname, definition,
20419 cpp_pedwarn_with_file_and_line, cpp_expand_to_buffer,
20420 check_macro_name, cpp_pfatal_with_name, cpp_file_line_for_message,
20421 find_include_file, deps_output, include_hash): Constify a char*.
20422
20423 * cppmain.c (progname): Constify.
20424 (main): Add prototype. Use return, not exit.
20425
20426 * fix-header.c (fatal, add_symbols, lookup_std_proto, write_lbrac,
20427 recognized_macro, check_macro_names, read_scan_file, write_rbrac,
20428 inf_skip_spaces, inf_read_upto, inf_scan_ident, inf_scan_ident,
20429 check_protection): Add static prototype.
20430 (xfree): Remove.
20431 (progname, recognized_macrom, recognized_extern): Constify a char*.
20432 (main): Add prototype.
20433
20434 * gen-protos.c (progname): Constify a char*.
20435
20436 Tue Sep 7 00:47:52 1999 Mark Mitchell <mark@codesourcery.com>
20437
20438 * emit-rtl.c (free_emit_status): Take decl as a parameter.
20439 (init_emit_once): Add more GC roots.
20440 * except.c (mark_func_eh_entry): New function.
20441 (mark_eh_node): Mark false_label and rethrow_label.
20442 (init_eh): Add more GC roots.
20443 * function.c (free_after_compilation): Take decl as a paramter.
20444 Call free_stmt_status.
20445 (mark_function_state): Don't assume x_parm_reg_stack_loc is
20446 non-NULL.
20447 * function.h (free_after_compilation): Change prototype.
20448 (free_varasm_status): Likewise.
20449 (free_emit_status): Likewise.
20450 (free_stmt_status): New function.
20451 * ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
20452 Remove, replacing with ...
20453 (ggc_status): New structure.
20454 (ggc_chain): New variable.
20455 (init_gcc): Define.
20456 (ggc_push_context): New function.
20457 (ggc_pop_context): Likewise.
20458 (ggc_alloc_rtx): Adjust for use of ggc_chain.
20459 (ggc_alloc_rtvec): Likewise.
20460 (ggc_alloc_tree): Likewise.
20461 (ggc_alloc_string): Likewise.
20462 (ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
20463 (ggc_mark_tree): Give language-dependent code a chance to mark
20464 `x' nodes.
20465 (ggc_mark_tree_varray): Handle empty arrays.
20466 (ggc_collect): Adjust for use of ggc_chain. Clear
20467 bytes_alloced_since_last_gc.
20468 * ggc.h (ggc_pop_context): New function.
20469 (ggc_push_context): Likewise.
20470 * print-tree.c (print_node): Don't print obstacks when GC'ing.
20471 * stmt.c (free_stmt_status): New function.
20472 (init_stmt_for_function): Clear last_expr_value.
20473 * toplev.c (rest_of_compilation): Always call free_after_compilation.
20474 Conditionalize call to ggc_collect.
20475 (main): Call init_ggc.
20476 * tree.c (push_obstacks): Do the push, even when GC'ing.
20477 (push_obstacks_nochange): Likewise.
20478 (pop_obstacks): Liekwise.
20479 * varasm.c (free_varasm_status): Take decl as a parameter.
20480
20481 Tue Sep 7 08:15:49 1999 Gavin Romig-Koch <gavin@cygnus.com>
20482
20483 * config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
20484 (MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
20485 * config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
20486 * config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
20487
20488 Tue Sep 7 03:42:45 1999 Mark Klein (mklein@dis.com)
20489
20490 * pa/x-pa-mpeix: New file for the MPE port.
20491
20492 * pa/quadlib.asm: New file for long double support.
20493
20494 * configure.in: Add hppa1.0-*-mpeix for MPE port.
20495 * configure: Rebuilt.
20496
20497 Tue Sep 7 10:08:40 1999 Andreas Schwab <schwab@suse.de>
20498
20499 * final.c (shorten_branches): Fix last change.
20500
20501 Tue Sep 7 00:30:32 1999 Jeffrey A Law (law@cygnus.com)
20502
20503 * pa.h (ASM_OUTPUT_DOUBLE_INT): Delete.
20504
20505 Mon Sep 6 22:44:47 1999 Jeffrey A Law (law@cygnus.com)
20506
20507 * Merge from gcc2 snapshot Jan 9, 1999. See FSFChangeLog for
20508 details.
20509
20510 Mon Sep 6 22:31:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20511
20512 * c-aux-info.c (concat): Don't define.
20513
20514 * cccp.c (my_strerror): Likewise. All callers changed to use
20515 xstrerror instead.
20516 (do_include): Call xstrdup, not xmalloc/strcpy.
20517 (grow_outbuf): Don't check if xrealloc returns NULL, it can't.
20518 (xmalloc, xrealloc, xcalloc, xstrdup): Don't define.
20519
20520 * collect2.c (my_strsignal): Likewise. All callers changed to use
20521 strsignal instead.
20522 (locatelib): Call xstrdup, not xmalloc/strcpy.
20523
20524 * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc.
20525
20526 * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy.
20527
20528 * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc.
20529
20530 * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy.
20531
20532 * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero.
20533
20534 * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/...
20535
20536 * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not
20537 malloc/realloc.
20538 (find_all_handler_type_matches): Likewise. Don't check return
20539 value.
20540 (get_new_handler, init_insn_eh_region, process_nestinfo): Call
20541 xmalloc, not malloc.
20542 (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero.
20543
20544 * gcc.c (xstrerror, xmalloc, xrealloc): Don't define.
20545 (init_spec): Call xcalloc, not xmalloc/bzero.
20546 (set_spec): Call xstrdup, not save_string.
20547 (record_temp_file): Call xstrdup, not xmalloc/strcpy.
20548 (find_a_file): Call xstrdup, not xmalloc/strcpy.
20549 (process_command): Call xstrdup, not save_string.
20550 (main): Call xcalloc, not xmalloc/bzero.
20551
20552 * gcov.c (xmalloc): Don't define.
20553 (create_program_flow_graph): Call xcalloc, not xmalloc/bzero.
20554 (scan_for_source_files): Call xstrdup, not xmalloc/strcpy.
20555 (output_data): Call xcalloc, not xmalloc/bzero.
20556
20557 * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero.
20558
20559 * mips-tdump.c (xmalloc): Don't define.
20560 (print_symbol): Call xmalloc, not malloc.
20561 (read_tfile): Call xcalloc, not calloc.
20562
20563 * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc):
20564 Don't define. All callers of xfree/my_strsignal changed to use
20565 free/strsignal instead.
20566 (allocate_cluster): Call xcalloc, not calloc.
20567
20568 * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/...
20569 Fix memory leak, free allocated memory.
20570
20571 * prefix.c (translate_name): Call xstrdup, not save_string.
20572 (update_path): Likewise.
20573
20574 * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy.
20575
20576 * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2):
20577 Don't define. Callers of xfree/savestring2 changed to use
20578 free/concat instead.
20579
20580 * reload1.c (reload): Call xcalloc, not xmalloc/bzero.
20581 (init_elim_table): Likewise.
20582
20583 * resource.c (init_resource_info): Likewise.
20584
20585 * stupid.c (stupid_life_analysis): Likewise.
20586
20587 * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define.
20588 (open_dump_file): Call concat, not xmalloc/strcpy/...
20589 (clean_dump_file): Likewise.
20590 (compile_file): Call xstrdup, not xmalloc/strcpy.
20591
20592 Mon Sep 6 15:04:55 1999 Richard Henderson <rth@cygnus.com>
20593
20594 * v850.h (EXPAND_BUILTIN_VA_ARG): New.
20595 * v850.c (v850_va_arg): New.
20596
20597 Tue Sep 7 09:36:01 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20598
20599 * haifa-sched.c: Tidy comments.
20600
20601 Mon Sep 6 14:30:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20602
20603 * Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
20604 (c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
20605 $(out_object_file)): Depend on ggc.h.
20606 * c-common.c: Include "ggc.h".
20607 (combine_strings): If doing GC, use ggc_alloc_string.
20608 * c-decl.c: Include "ggc.h".
20609 (ggc_p): Define with value 0.
20610 (mark_binding_level): New function.
20611 (init_decl_processing): Add GC roots.
20612 (mark_c_function_context): New function.
20613 (lang_mark_false_label_stack): New function.
20614 (lang_mark_tree): New function.
20615 (lang_cleanup_tree): New function.
20616 * c-lang.c: Include "ggc.h".
20617 (lang_init): Call c_parse_init.
20618 * c-lex.c: Include "ggc.h".
20619 (check_linenum): If doing GC, don't copy filenames to permanent
20620 obstack.
20621 * c-parse.in: Include "ggc.h".
20622 (c_parse_init): New function.
20623 * c-tree.h (c_parse_init, mark_c_function_context): Declare.
20624 * objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
20625
20626 * except.c (mark_eh_state): Mark more state.
20627 * function.c (mark_function_state): Likewise.
20628 * ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
20629 (ggc_alloc_string) [GGC_DUMP]: Fix typo.
20630 * toplev.c (mark_file_stack): New function.
20631 (compile_file): If doing GC, use ggc_alloc_string on input filename.
20632 (main): Add root for input_file_stack.
20633
20634 * i386.c: Include "ggc.h".
20635 (ix86_mark_machine_status): New function.
20636 (override_options): Set mark_machine_status.
20637
20638 Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20639
20640 * tree.c (copy_node): Copy node contents also if doing GC.
20641
20642 Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
20643
20644 * collect2.c (scan_libraries): Fix double-thinko :-).
20645
20646 Mon Sep 6 02:42:36 1999 Jeffrey A Law (law@cygnus.com)
20647
20648 * collect2.c (scan_libraries): Fix thinko.
20649
20650 * cse.c (delete_trivially_dead_insns): Do not skip the last
20651 insn if it is a real insn.
20652
20653 Sun Sep 5 18:57:42 1999 Mark Mitchell <mark@codesourcery.com>
20654
20655 * Makefile.in (ggc-simple.o): Depend on hash.h.
20656 * ggc.h (ggc_add_tree_hash_table_root): Declare.
20657 (ggc_mark_tree_varray): Likewise.
20658 (ggc_mark_tree_hash_table): Likewise.
20659 * ggc-simple.c: Include hash.h.
20660 (ggc_mark_tree_hash_table_ptr): New function.
20661 (ggc_mark_tree_hash_table_entry): Likewise.
20662 (ggc_mark_tree_hash_table): Likewise.
20663 (ggc_add_tree_hash_table_root): Likewise.
20664 * varray.h (const_equiv_data): Use struct rtx_def *, rather than
20665 rtx, when defining fields.
20666
20667 Sun Sep 5 18:57:42 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
20668
20669 * profile.c (output_func_start_profiler): Remove apparently
20670 nonsensical call to start_sequence.
20671
20672 Sun Sep 5 17:34:33 1999 Richard Henderson <rth@cygnus.com>
20673
20674 * clipper/clipper.c (clipper_va_start): Fix typos.
20675
20676 * pyr/pyr.c (pyr_build_va_list, pyr_va_start, pyr_va_arg): New stubs.
20677 * spur/spur.c (spur_build_va_list, spur_va_start): New stubs.
20678 (spur_va_arg): New stub.
20679
20680 * configure.in: Comment out pyramid.
20681
20682 Sun Sep 5 19:11:01 1999 Michael Meissner <meissner@cygnus.com>
20683
20684 * i386.h (MASK_{DEBUG_{ADDR,ARG},INTEL_SYNTAX}): Move so these
20685 don't conflict with the bits that win32, cygwin, and dgux
20686 defines.
20687
20688 Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
20689 Bernd Schmidt <bernds@cygnus.co.uk>
20690
20691 * integrate.c (function_cannot_inline_p): Do not inline
20692 functions with forced labels.
20693
20694 Sun Sep 5 00:35:17 1999 Richard Henderson <rth@cygnus.com>
20695 Bernd Schmidt <bernds@cygnus.co.uk>
20696 Mark Mitchell <mark@codesourcery.com>
20697
20698 * Makefile.in (ggc-simple.o): Depend on varray.h.
20699 (rtl.o): Depend on ggc.h.
20700 (genattrtab.o): Depend on ggc.h.
20701 (print-tree.o): Likewise.
20702 (fold-const.o): Likewise.
20703 * emit-rtl.c (sequence_element_free_list): Remove, and all references.
20704 (make_insn_raw): Don't cache insns when GC'ing.
20705 (emit_insn_before): Likewise.
20706 (emit_insn_after): Likewise.
20707 (emit_insn): Likewise.
20708 (start_sequence): Use xmalloc to allocate the sequence_stack.
20709 (end_sequence): Add free to free it.
20710 (gen_sequence): Don't cache insns when GC'ing.
20711 (clear_emit_caches): Don't use sequence_element_free_list.
20712 (init_emit): Use xcalloc, not xmalloc+bzero.
20713 * fold-const.c (size_int_wide): Kill the cache, when GC'ing.
20714 * function.c (pop_function_context_from): Use free to free the
20715 fixup_var_refs_queue.
20716 (put_reg_into_stack): Allocate it with xmalloc.
20717 * genattrtab.c: Include ggc.h.
20718 (operate_exp): Don't use obstack_free when GC'ing.
20719 (simplify_cond): Likewise.
20720 (simplify_text_exp): Likewise.
20721 (optimize_attrs): Likewise.
20722 * gengenrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
20723 GC'ing.
20724 (gencode): Generate a #include for ggc.h.
20725 * ggc-callbacks.c (ggc_p): Define it to zero.
20726 * ggc-none.c (ggc_p): Likewise.
20727 * ggc-simple.c: Include varray.h.
20728 (ggc_mark_tree_varray): New function.
20729 (ggc_add_tree_varray_root): Likewise.
20730 (ggc_mark_tree_varray_ptr): Likewise.
20731 * ggc.h (ggc_p): Declare.
20732 (varray_head_tag): Likewise.
20733 (ggc_add_tree_varray_root): Declare.
20734 * print-tree.c (print_node): Don't check for TREE_PERMANENT
20735 inconsistencies when GC'ing.
20736 * rtl.c: Include ggc.h.
20737 (rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
20738 (rtx_alloc): Use ggc_alloc_rtx when GC'ing.
20739 (rtx_free): Don't call obstack_free when GC'ing.
20740 * toplev.c (rest_of_compilation): Call ggc_collect after every
20741 pass, if GC'ing.
20742 * tree.c (push_obstacks): Do nothing, if GC'ing.
20743 (pop_obstacks_nochange): Likewise.
20744 (pop_obstacks): Likewise.
20745 (make_node): Use ggc_alloc_tree when GC'ing.
20746 (copy_node): Likewise.
20747 (get_identifier): Use ggc_alloc_string when GC'ing.
20748 (build_string): Likewise.
20749 (make_tree_vec): Use ggc_alloc_tree when GC'ing.
20750 (tree_cons): Likewise.
20751 (build1): Likewise.
20752 (type_hash_canon): Don't call obstack_free when GC'ing.
20753
20754 Sat Sep 4 21:52:32 1999 Richard Henderson <rth@cygnus.com>
20755
20756 * haifa-sched.c (schedule_block): Use next_nonnote_insn instead
20757 of NEXT_INSN when examining speculative insns for SCHED_GROUP_P.
20758
20759 Sat Sep 4 20:40:19 1999 Richard Henderson <rth@cygnus.com>
20760 Bernd Schmidt <bernds@cygnus.co.uk>
20761 Mark Mitchell <mark@codesourcery.com>
20762
20763 * Makefile.in (stor-layout.o): Depend on ggc.h.
20764 (expr.o): Depend on ggc.h.
20765 (profile.o): Depend on ggc.h.
20766 (stor-layout.o): Depend on ggc.h.
20767 * emit-rtl.c (init_emit_once): Add gc roots.
20768 * expr.c: Include ggc.h.
20769 (emit_block_move): Add gc roots.
20770 (clear_storage): Likewise.
20771 * expr.h (init_stor_layout_once): New function.
20772 * profile.c: Include ggc.h.
20773 (init_arc_profiler): profiler_label is a root.
20774 * scan.c (make_sstring_space): Trust xrealloc to function
20775 correctly with first parameter NULL.
20776 * stor-layout.c: Include ggc.h.
20777 (set_sizetype): Add gc root.
20778 (init_stor_layout_once): New function.
20779 * toplev.c (compile_file): Call it.
20780
20781 Sat Sep 4 19:26:25 1999 Richard Henderson <rth@cygnus.com>
20782 Bernd Schmidt <bernds@cygnus.co.uk>
20783 Mark Mitchell <mark@codesourcery.com>
20784
20785 * Makefile.in (tree.o): Depend on ggc.h.
20786 (varasm.o): Likewise.
20787 (function.o): Likewise.
20788 (stmt.o): Likewise.
20789 (except.o): Likewise.
20790 (optabs.o): Likewise.
20791 (emit-rtl.o): Likewise.
20792 * emit-rtl.c: Include ggc.h.
20793 (sequence_element_free_list): Remove, and all references.
20794 (mark_sequence): New functions.
20795 (mark_emit_state): New function.
20796 * except.c: Include ggc.h.
20797 (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
20798 (mark_tree_label_node): New functions.
20799 (mark_eh_state): New function.
20800 * function.c: Include ggc.h.
20801 (mark_temp_slot, mark_function_chain): New functions.
20802 (mark_function_state): New function.
20803 (init_function_once): New function.
20804 * function.h (init_function_once): New function.
20805 * ggc-callbacks.c (lang_mark_false_label_stack): New function.
20806 * ggc.h (label_node): Declare.
20807 (eh_status, emit_status, stmt_status, varasm_status): Likewise.
20808 (lang_mark_false_label_stack): New function.
20809 (mark_temp_slot): Remove declaration.
20810 (mark_function_chain): Likewise.
20811 (mark_eh_state): Adjust prototype.
20812 (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
20813 Likewise.
20814 * optabs.c: Include ggc.h.
20815 (mark_optab): New function.
20816 (init_optabs): Add gc roots.
20817 * stmt.c: Include ggc.h.
20818 (mark_cond_nesting, mark_loop_nesting): New functions.
20819 (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
20820 (mark_stmt_state): New function.
20821 * toplev.c (compile_file): Call init_function_once.
20822 * tree.c: Include ggc.h.
20823 (type_hash): Move declaration earlier in file.
20824 (TYPE_HASH_SIZE, type_hash_table): Likewise.
20825 (init_obstacks): Add gc roots.
20826 (mark_type_hash): New function.
20827 * varasm.c: Include ggc.h.
20828 (mark_pool_constant): New function.
20829 (mark_varasm_state): New function.
20830
20831 Sat Sep 4 22:28:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20832
20833 * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
20834
20835 Sat Sep 4 18:01:45 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20836
20837 * c-decl.c (struct language_function): Renamed from struct c_function.
20838 Delete elt NEXT.
20839 (c_function_chain): Delete.
20840 (push_c_function_context): New arg F. Don't warn about nested
20841 functions here. Fill LANGUAGE elt of F. Delete code to update
20842 c_function_chain. Don't call push_function_context.
20843 (pop_c_function_context): New arg F. Restore from there instead of
20844 from c_function_chain. Don't call pop_function_context. Clear out
20845 LANGUAGE field of F when done.
20846 * c-lang.c: Include "function.h"
20847 (lang_init): Initialize save_lang_status and restore_lang_status.
20848 * c-parse.in (nested_function, nested_function_notype): Warn about
20849 nested functions. Call push_function_context/pop_function_context
20850 instead of the _c_ variants.
20851 * c-tree.h (push_c_function_context, pop_c_function_context): Update
20852 prototype.
20853 * Makefile.in (c-lang.o): Update dependencies.
20854
20855 * emit-rtl.c (init_emit): Use xmalloc to allocate regno_reg_rtx,
20856 regno_pointer_flag, regno_pointer_align.
20857 (gen_reg_rtx): Use xrealloc to enlarge them.
20858 (free_emit_status): New function.
20859 * function.c (mark_machine_status, mark_lang_status): New variables.
20860 (assign_stack_local_1): Renamed from assign_outer_stack_local. Merge
20861 in some bits from assign_stack_local. All callers changed to use new
20862 name.
20863 (assign_stack_local): Just call assign_stack_local_1.
20864 (free_after_compilation): New function.
20865 (put_reg_into_stack): Simplify to always call assign_stack_local_1.
20866 (trampoline_address): Likewise.
20867 (assign_parms): Use xcalloc/xrealloc to allocate parm_reg_stack_loc.
20868 (prepare_function_start): Explicitly clear some more variables.
20869 * function.h (struct function): New elt can_garbage_collect.
20870 (mark_machine_status, mark_lang_status): Declare variables.
20871 (free_after_compilation, free_emit_status, free_varasm_status,
20872 init_varasm_status): Declare functions.
20873 * toplev.c (rest_of_compilation): Call free_after_compilation when
20874 done with the current function.
20875 * varasm.c (free_varasm_status): New function.
20876
20877 Sat Sep 4 17:15:13 1999 Richard Henderson <rth@cygnus.com>
20878
20879 * sparc.h (EXPAND_BUILTIN_VA_START): Define.
20880 (EXPAND_BUILTIN_VA_ARG): Define.
20881 * sparc.c (sparc_va_start): New.
20882 (sparc_va_arg): New.
20883
20884 Sun Sep 5 11:11:59 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20885
20886 * config/c4x/c4x.h (DBR_OUTPUT_SEQEND): Use XVECEXP not XEXPs.
20887
20888 Sun Sep 5 10:13:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20889
20890 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
20891
20892 Sat Sep 4 13:44:01 1999 Mark Mitchell <mark@codesourcery.com>
20893
20894 * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o.
20895 (OBJS): Add $(GGC).
20896 (ggc-callbacks.o): New target.
20897 * ggc-callbacks.c: New file.
20898
20899 Sat Sep 4 22:53:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20900
20901 * expr.h: Collapse individual optab and libfunc vars to arrays.
20902 (optab_index, libfunc_index): New enumerations.
20903 (optab_table, libfunc_table): New arrays.
20904 Add accessor macros for both.
20905
20906 * optabs.c (optab_table, libfunc_table): New.
20907 Delete declarations for individual optab and libfunc vars.
20908
20909 Sat Sep 4 12:57:17 1999 Richard Henderson <rth@cygnus.com>
20910
20911 * i386/sco5.h (RETURN_POPS_ARGS): Name change ix86_return_pops_args.
20912
20913 Sat Sep 4 11:19:52 1999 Richard Henderson <rth@cygnus.com>
20914
20915 * Makefile.in (GGC, GGC_LIB): New.
20916 (HOST_RTL): Include ggc-none.o.
20917 (ggc-simple.o): New target.
20918 (ggc-none.o): Likewise.
20919 * tree.h (tree_common): Add gc_mark.
20920 * rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
20921 (struct rtvec_def): Add gc_mark.
20922 * emit-rtl.c (global_rtl): Update static initializers to contain
20923 enough initializers.
20924 * ggc.h, ggc-none.c, ggc-simple.c: New files.
20925 * toplev.c (gc_time): New variable.
20926 (all_time): New variable.
20927 (compile_file): Print gc time.
20928 (print_time): Calculate percentage of the whole.
20929
20930 Sat Sep 4 13:11:01 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20931
20932 Change obstack memory management and varasm constant pool handling so
20933 that nested functions are treated like any other functions.
20934 * function.c (init_machine_status): New variable.
20935 (push_function_context_to): Set contains_functions for the outer
20936 function. Don't call save_varasm_status.
20937 (pop_function_context_from): Don't call restore_varasm_status. Don't
20938 set current_function_contains_functions.
20939 (prepare_function_start): Call init_varasm_status rather than
20940 init_const_rtx_hash_table. Call (*init_machine_status) if the pointer
20941 is non-null.
20942 * function.h (struct function) Add field varasm. Delete fields
20943 inline_obstacks, inl_emit, const_rtx_hash_table, first_pool,
20944 last_pool, const_rtx_sym_hash_table, pool_offset, const_double_chain.
20945 (init_machine_status): Declare.
20946 (save_varasm_status, restore_varasm_status): Delete declarations.
20947 (save_tree_status, restore_tree_status): Delete last argument.
20948 * integrate.c (initialize_for_inline): Lose arg COPY. Delete copying
20949 code. All callers changed.
20950 (copy_decl_list, copy_decl_tree, copy_decl_rtls, copy_for_inline,
20951 save_constants_in_decl_trees, restore_constants, save_constants,
20952 save_for_inline_eh_labelmap, save_for_inline_copying): Delete
20953 functions.
20954 (inlining): New variable.
20955 (reg_map, label_map, insn_map, orig_asm_operands_vector,
20956 copy_asm_operands_vector, copy_asm_constraints_vector): Delete
20957 variables.
20958 (save_for_inline_nocopy): Don't save constants.
20959 Don't set inl_emit field in current_function.
20960 (expand_inline_function): Use emit field, not inl_emit, of the inlined
20961 function. Set new variable inlining before
20962 calling copy_rtx_and_substitute.
20963 (copy_rtx_and_substitute): In MEM and SYMBOL_REF cases, handle
20964 constant pool references if inlining is nonzero.
20965 Delete ADDRESS and (most of the) CONST cases.
20966 (output_inline_function): Save and restore current_function/
20967 current_function_decl. Delete restore_constants code. Don't call
20968 init_const_rtx_hash_table.
20969 * output.h (init_const_rtx_hash_table): Don't declare.
20970 * rtl.h (struct function): Declare.
20971 (get_pool_constant_for_function, get_pool_mode_for_function): Declare.
20972 * toplev.c (rest_of_compilation): Don't treat nested functions or
20973 functions containing them specially. Delete all code to deal with
20974 save_for_inline_copying.
20975 * tree.c (toplev_inline_obstacks, extra_inline_obstacks,
20976 inline_obstacks): Delete variables.
20977 (save_tree_status): Lose arg CONTEXT. All callers changed.
20978 Simply allocate a new function_maybepermanent_obstack for the new
20979 function, delete all the special cases.
20980 Don't save inline_obstacks.
20981 (restore_tree_status): Lose arg CONTEXT. All callers changed.
20982 Delete special handling for function_maybepermanent_obstack; simply
20983 free it if empty.
20984 Don't restore inline_obstacks.
20985 (permanent_allocation): Delete code that frees inline_obstacks.
20986 (print_inline_obstack_statistics): Delete function.
20987 (dump_tree_statistics): Don't call it.
20988 * varasm.c (struct varasm_status): New.
20989 (const_rtx_hash_table, const_rtx_sym_hash_table, first_pool,
20990 last_pool, pool_offset, const_double_chain): Delete global
20991 variables, replace with accessor macros.
20992 (immed_double_const): Don't walk const_double_chain outside a
20993 function, but don't treat nested functions specially anymore.
20994 (immed_real_const_1): Likewise.
20995 (clear_const_double_mem): Don't treat nested functions specially.
20996 (init_const_rtx_hash_table): Deleted, code moved to init_varasm_status.
20997 (save_varasm_status, restore_varasm_status): Delete functions.
20998 (init_varasm_status): New function.
20999 (force_const_mem): Don't treat nested functions specially.
21000 (find_pool_constant): Accept new arg F, search for constants in
21001 that function's pool rather than the current one. All callers
21002 changed.
21003 (get_pool_constant_for_function, get_pool_mode_for_function): New
21004 functions.
21005
21006 * i386.c (init_386_machine_status): New function, mostly from
21007 clear_386_stack_locals.
21008 (struct machine_functions): Rename element names to avoid name
21009 clashes.
21010 (pic_label_rtx, pic_label_name, i386_stack_locals): New accessor
21011 macros, replacing global variables.
21012 (clear_386_stack_locals, save_386_machine_status,
21013 restore_386_machine_status): Delete functions.
21014 (override_options): Initialize init_machine_status.
21015 * i386.h (INIT_EXPANDERS): Delete macro.
21016 (save_386_machine_status, restore_386_machine_status,
21017 clear_386_stack_locals): Delete declarations.
21018
21019 Sat Sep 4 16:56:28 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21020
21021 * config/c4x/c4x.md (rptb_init): Renamed from *rptb_init.
21022 (doloop_begin): Simplify pattern and use emit_jump_insn.
21023 (doloop_end): Simplify pattern, switch operand order,
21024 and use emit_jump_insn.
21025
21026 Fri Sep 3 19:02:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
21027
21028 * function.h (struct function): Add new element LANGUAGE.
21029 (save_lang_status): Declare new variable.
21030 (restore_lang_status): Likewise.
21031 * function.c (save_lang_status): Define.
21032 (restore_lang_status): Likewise.
21033 (push_function_context_to): Call language-specific save function.
21034 (pop_function_context_from): Call language-specific restore function.
21035
21036 Fri Sep 3 01:16:18 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
21037
21038 * i386.md (movsf_1): Check REG_P before use of REGNO.
21039 (movdf_1): Likewise.
21040 (movxf_1): Likewise.
21041 (extendsfdf2): Likewise.
21042 (extendsfxf2): Likewise.
21043 (extenddfxf2): Likewise.
21044
21045 Sat Sep 4 11:37:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21046
21047 * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
21048 constants into memory.
21049 (c4x_shiftable_constant): New function.
21050 * config/c4x/c4x.c (LEGITIMATE_CONSTANT_P): Allow any CONST_INT.
21051 (c4x_shiftable_constant): Declare.
21052 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant,
21053 ashlqi3_noclobber): Add new patterns and associated splitters.
21054
21055 Fri Sep 3 16:22:17 1999 Richard Henderson <rth@cygnus.com>
21056
21057 * dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
21058 * dwarf2out.c (dwarf2out_frame_init): Likewise.
21059 * final.c (shorten_branches): Likewise.
21060 * global.c (global_alloc): Likewise.
21061 * haifa-sched.c (build_control_flow): Likewise.
21062 * stmt.c (check_for_full_enumeration_handling): Likewise.
21063 (estimate_case_costs): Likewise.
21064
21065 Fri Sep 3 15:49:56 1999 Mark Mitchell <mark@codesourcery.com>
21066
21067 * rtl.h (RTL_CHECKC2): Fix typo in last change.
21068
21069 Fri Sep 3 15:13:34 1999 Richard Henderson <rth@cygnus.com>
21070
21071 * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
21072 (recompute_reg_usage): Likewise.
21073 * rtlanal.c (find_regno_fusage): Likewise.
21074
21075 * rtl.c (rtl_check_failed_code1): New function.
21076 (rtl_check_failed_code2): New.
21077 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
21078 (RTL_CHECKC1, RTL_CHECKC2): New.
21079 (XC*): New accessor macros.
21080 (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
21081 (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
21082 (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
21083 (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
21084 (TRAP_*, RANGE_INFO_*): Likewise.
21085
21086 Fri Sep 3 15:10:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21087
21088 * Makefile.in (tlink.o): Don't depend on toplev.h.
21089
21090 * collect2.c (c_file, o_file, export_file, import_file, ldout,
21091 output_file, nm_file_name, ldd_file_name, strip_file_name,
21092 c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
21093 add_prefix, prefix_from_env, prefix_from_string, do_wait,
21094 fork_execute, maybe_unlink, add_to_list,
21095 extract_init_priority, write_list, dump_list,
21096 dump_prefix_list, write_list_with_asm, write_c_file,
21097 write_c_file_stat, write_c_file_glob, scan_prog_file,
21098 scan_libraries, is_in_list, resolve_lib_name, use_import_list,
21099 ignore_library, extract_string, notice, dump_file, target_machine,
21100 collect_wait, collect_execute, libname, locatelib, aix_std_libs,
21101 read_file, print_load_command): Constify a char*.
21102 (fdopen, error, fatal, fatal_perror): Don't prototype.
21103 (my_strerror): Remove. All callers use xstrerror instead.
21104 (xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
21105 (main): Add prototype. Constify lots of char* ptrs. Change calls
21106 to xcalloc/strcpy/strcat/... to one call to concat.
21107 (main, scan_prog_file, scan_libraries): Use an intermediate
21108 `const char **' to build an argv array.
21109 (mapfile, libselect, libcompare, locatelib): Add prototypes.
21110
21111 * collect2.h (collect_execute, collect_wait, dump_file,
21112 file_exists): Constify a char*.
21113 (ldout, c_file_name, temporary_obstack, permanent_obstack,
21114 temporary_firstobj, vflag, debug): Add extern declarations.
21115 (fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
21116
21117 * tlink.c: Don't include toplev.h.
21118 (vflag, debug, ldout, c_file_name, temporary_obstack,
21119 permanent_obstack, temporary_firstobj): Don't declare.
21120 (tlink_execute, frob_extension, symbol_hash_lookup,
21121 file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
21122 recompile_files, read_repo_files, demangle_new_symbols,
21123 scan_linker_output): Constify a char*.
21124 (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
21125 do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
21126
21127 Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
21128
21129 * config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
21130 (relative) rather than jsr (absolute) subroutine call insns.
21131 * config/m68k/m68k-coff.h: Ditto.
21132
21133 Fri Sep 3 17:24:31 1999 Richard Earnshaw <rearnsha@arm.com>
21134
21135 * arm.c (note_invalid_constants): No need to ignore ASMs, we can
21136 now rework these too.
21137 (arm_reorg): If an insn can't reach the end of the current pool,
21138 ensure that we emit that pool before the insn.
21139
21140 Fri Sep 3 09:14:32 1999 Marc Espie <espie@tetto.liafa.jussieu.fr>
21141
21142 * tlink.c (scan_linker_output): Skip the initial underscore in
21143 a mangled name if appropriate.
21144
21145 Fri Sep 3 01:28:33 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21146
21147 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
21148 objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
21149 error_with_ivar, gen_declarator, create_builtin_decl,
21150 my_build_string, generate_descriptor_table, generate_ivars_list,
21151 generate_dispatch_table, check_protocols, TAG_GETCLASS,
21152 TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
21153 dump_base_name, lang_decode_option, build_encode_expr,
21154 start_class, finish_class, encode_pointer, really_start_method,
21155 gen_declaration, dump_interface, handle_class_ref, handle_impent):
21156 Constify.
21157 (objc_demangle, objc_printable_name, generate_struct_by_value_array):
21158 Add static prototypes.
21159 (build_objc_string_decl, build_selector_reference_decl,
21160 encode_bitfield, build_class_reference_decl): Remove unused
21161 parameter, all callers changed.
21162 (maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
21163 (objc_printable_name): Likewise. Change second parameter to type int.
21164 (init_objc): Use memcpy, not bcopy, to avoid casts.
21165
21166 Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
21167
21168 * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
21169 reg notes on a deleted insn.
21170 * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
21171
21172 Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
21173
21174 * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
21175
21176 Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21177
21178 * stmt.c (expand_asm_operands): Fix index into inout_mode when
21179 reading it.
21180
21181 Thu Sep 2 13:00:48 1999 Richard Henderson <rth@cygnus.com>
21182
21183 * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
21184 * tm.texi (MD_ASM_CLOBBERS): Document it.
21185
21186 Thu Sep 2 10:22:40 1999 Richard Henderson <rth@cygnus.com>
21187
21188 * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
21189 * except.c (expand_rethrow): Remove unused variable.
21190 * expr.c (do_jump_by_parts_greater_rtx): Likewise.
21191 * flow.c (replace_insns): Likewise.
21192 (create_edge_list, verify_edge_list): Likewise.
21193 * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
21194
21195 * genemit.c (gen_expand): Only emit `operands[N]' decl if there
21196 is special code to run.
21197 (main): Don't define operands to emit_operand.
21198 * genrecog.c (main): Don't emit an empty peephole2_insn function.
21199
21200 * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
21201
21202 * alpha/alpha.h (normal_memory_operand): Declare.
21203 (reg_no_subreg_operand): Declare.
21204 * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
21205
21206 Thu Sep 2 10:19:20 1999 Richard Henderson <rth@cygnus.com>
21207
21208 * c-parse.in (compstmt_primary_start): New, broken out of first
21209 part of compstmt handling in primary.
21210 (primary): Use it. Add an error clause.
21211 (compstmt_nostart): Renamed from compstmt; remove all
21212 initial invocations of compstmt_start.
21213 (compstmt): New.
21214
21215 Thu Sep 2 01:35:50 1999 Marc Espie <espie@cvs.openbsd.org>
21216
21217 * protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
21218 needed.
21219
21220 Thu Sep 2 00:43:59 1999 Finn Hakansson <finn@axis.com>
21221
21222 * combine.c (simplify_shift_const): Remove extra semicolon.
21223 * dwarf2out.c (remove_AT): Likewise.
21224 * expmed.c (expand_mult): Likewise.
21225 * gcov.c (create_program_flow_graph): Likewise.
21226 * reorg.c (mostly_true_jump): Likewise.
21227
21228 Thu Sep 2 00:06:43 1999 Jeffrey A Law (law@cygnus.com)
21229
21230 * fold-const.c (fold_range_test): Do not try to fold the range
21231 test if the rhs or lhs has side effects.
21232
21233 * combine.c (simplify_rtx): Recognize another case of a synthesized
21234 sign extension.
21235
21236 * varasm.c (mark_constant_pool): When marking indirect references,
21237 only look at SYMBOL_REFs.
21238
21239 * except.c (expand_fixup_region_end): Do not peek at
21240 INSN_UID (node->entry->outer_context) for flag_new_exceptions.
21241
21242 Thu Sep 2 13:52:53 1999 Geoffrey Keating <geoffk@cygnus.com>
21243
21244 * flags.h: New variables align_loops, align_loops_log,
21245 align_jumps, align_jumps_log, align_labels, align_labels_log,
21246 align_functions, align_functions_log.
21247 * toplev.c: Define them.
21248 (f_options): Handle -falign-* when they have no argument.
21249 (main): Add logic to set variables for -falign-functions,
21250 -falign-jumps, -falign-labels, -falign-loops.
21251 Make it -fsched-verbose=<n> and -finline-limit=<n>.
21252 (display_help): Change help to match options.
21253 * final.c (LABEL_ALIGN): Default to align_labels_log.
21254 (LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
21255 (LOOP_ALIGN): Default to align_loops_log.
21256 (LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
21257 (LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
21258 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
21259 * varasm.c (assemble_start_function): Handle align_functions.
21260
21261 * config/sparc/sparc.h: Don't declare sparc_align_*.
21262 Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
21263 (DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
21264 sparc.c.
21265 (FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
21266 it's a promise.
21267 * config/sparc/sparc.c: Delete sparc_align_loops,
21268 sparc_align_jumps, sparc_align_funcs and the corresponding string
21269 variables.
21270 (sparc_override_options): Default align_functions on ultrasparc.
21271 Delete -malign-* handling.
21272
21273 * config/mips/mips.c (override_options): On 64-bit targets,
21274 try to align code to 64-bit boundaries.
21275 (print_operand): New substitution, %~,
21276 which aligns labels to align_labels_log.
21277 * config/mips/mips.md (div_trap_normal): Use %~.
21278 (div_trap_mips16): Likewise.
21279 (abssi): Likewise.
21280 (absdi2): Likewise.
21281 (ffssi2): Likewise.
21282 (ffsdi2): Likewise.
21283 (ashldi3_internal): Likewise.
21284 (ashrdi3_internal): Likewise.
21285 (lshrdi3_internal): Likewise.
21286 (casesi_internal): Likewise.
21287
21288 Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
21289
21290 Merge new ia32 backend from the branch!
21291
21292 * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
21293 See ChangeLog.P2 on new_ia32_branch for details.
21294
21295 * rtl.h (stack_regs_mentioned_p): Delete prototype.
21296 * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
21297 * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
21298 * i386/gas.h (ASM_FILE_START): Define.
21299 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
21300 for name change of ix86_valid_decl_attribute_p.
21301 (i386_pe_valid_type_attribute_p): Similarly.
21302
21303 Wed Sep 1 18:21:23 1999 Richard Henderson <rth@cygnus.com>
21304
21305 * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
21306 to step through CC modes.
21307
21308 Wed Sep 1 20:18:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21309
21310 * regmove.c (fixup_match_1): Don't move INSN in front of P if
21311 it would end up in the shadow of a live flags regsiter.
21312
21313 Wed Sep 1 11:32:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21314
21315 * reload1.c: Fix many indentation problems.
21316 * reload.c: Likewise.
21317
21318 Tue Aug 31 22:08:03 1999 Marc Espie <espie@cvs.openbsd.org>
21319
21320 * alias.c (non_local_reference_p): Constify fmt.
21321
21322 Tue Aug 31 23:19:35 1999 Michael Meissner <meissner@cygnus.com>
21323
21324 * config/i386/xm-cygwin.h (HAVE_DOS_BASED_FILE_SYSTEM): Define.
21325
21326 Tue Aug 31 16:44:52 1999 Jeffrey A Law (law@cygnus.com)
21327
21328 * cse.c (delete_trivially_dead_insns): Do not delete stores to
21329 the internal_arg_pointer.
21330
21331 Tue Aug 31 13:35:42 1999 Richard Henderson <rth@cygnus.com>
21332
21333 Merge peephole2 from new_ia32_branch:
21334 * Makefile.in (STAGESTUFF): Add *.peephole2.
21335 (mostlyclean): Likewise.
21336 (recog.o): Depend on resource.h.
21337
21338 * final.c (peephole): Conditionalize decl on HAVE_peephole.
21339 (final_scan_insn): Likewise for the invocation of peephole.
21340 * genconfig.c (main): Look for peephole and peephole2 patterns.
21341 Emit HAVE_peephole* accordingly.
21342 * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
21343 * flags.h (flag_peephole2): Declare.
21344 * toplev.c: New pass peephole2. New flag -fpeephole2.
21345
21346 * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
21347 * gencodes.c (main): Likewise.
21348 * genextract.c (main): Likewise.
21349 * genoutput.c (main): Likewise.
21350 * genemit.c (max_operand_1): Look for the max scratch operand.
21351 (gen_rtx_scratch): New.
21352 (gen_exp): Use it, and pass on new arg subroutine_type.
21353 (gen_expand): Take max scratch into account.
21354 (gen_split): Emit peephole2 functions.
21355 (output_peephole2_scratch): New.
21356 (main): Include hard-reg-set.h and resource.h. Handle peephole2.
21357 * genrecog.c (routine_type): Add PEEPHOLE2.
21358 (IS_SPLIT): New.
21359 (make_insn_sequence): Match outer parallel for peep2. Discard
21360 top level scratches and dups.
21361 (add_to_sequence): New args insn_type and top. Update all callers.
21362 Handle toplevel peep2 matching insns.
21363 (write_subroutine): Handle peep2.
21364 (write_tree_1): Likewise.
21365 (write_tree): Likewise.
21366 (main): Likewise.
21367 (change_state): New arg afterward. Update all callers.
21368 Handle matching separate insns.
21369 * recog.c (recog_next_insn): New.
21370 (peephole2_optimize): New.
21371 * rtl.def (DEFINE_PEEPHOLE2): New.
21372 * resource.c (find_free_register): New argument last_insn. Use it
21373 to find a register available through the entire span.
21374 * resource.h (find_free_register): Update prototype.
21375
21376 Tue Aug 31 11:51:06 1999 Jim Kingdon <http://developer.redhat.com>
21377
21378 * i386.c (output_strlen_unroll): Don't write xops[7]
21379 label if it wasn't set.
21380
21381 1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
21382
21383 * cpplib.c (struct directive): Const-ify name pointer and
21384 function pointer prototype.
21385 (validate_else, do_define, do_line, do_include, do_undef,
21386 do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
21387 do_elif, do_endif, do_sccs, do_assert, do_unassert,
21388 do_warning): Const-ify second arg.
21389 (directive_table): Mark const. Reorder entries by frequency
21390 of usage, record statistics.
21391
21392 1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
21393
21394 * rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
21395 bounds- check RTL accesses if --enable-checking.
21396 (RTVEC_ELT): Bounds check if --enable-checking.
21397 (XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
21398 XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
21399 (XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
21400 GET_NUM_ELEM.
21401 (X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
21402 X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
21403
21404 (ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
21405 (NOTE_SOURCE_FILE): Use X0STR.
21406 (NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
21407 MEM_ALIAS_SET): Use X0INT.
21408 (NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
21409 JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
21410 Use X0EXP.
21411 * real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
21412 * rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
21413 (rtl_check_failed_bounds, rtl_check_failed_type1,
21414 rtl_check_failed_type2, rtvec_check_failed_bounds): New
21415 functions.
21416 (fancy_abort): Fix comment.
21417
21418 * cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
21419 (cse_insn): Decrement LABEL_NUSES for jump target before
21420 deleting jump insn.
21421 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
21422 * final.c (alter_subreg): Compute regno before changing x to
21423 REG; set REGNO(x) after changing it.
21424 * flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
21425 notes containing CONST_INTs.
21426 (delete_eh_regions): Use NOTE_EH_HANDLER.
21427 * function.c (put_reg_into_stack): Make reg a MEM before
21428 initializing it.
21429 (fixup_var_refs_insns): Save REG_NOTES (insn) in case we
21430 delete insn.
21431 (gen_mem_addressof): Make reg a MEM before initializing it.
21432 * integrate.c (copy_rtx_and_substitute): Copy '0' slots with
21433 X0WINT.
21434 * local-alloc.c (update_equiv_regs): Zap REG_NOTES before
21435 deleting an insn, not after.
21436 (block_alloc): Only look at PATTERN(insn) if we have to, and
21437 only if it's format class 'i'.
21438 * loop.c (check_dbra_loop): Check bl->biv->add_val is a
21439 CONST_INT before using its INTVAL.
21440 * print-rtl.c (print_rtx): Use X0STR.
21441 * regmove.c (fixup_match_1): Don't look at PATTERN of
21442 non-class-'i' insn chain elements.
21443 * reload.c (loc_mentioned_in_p): Take address of
21444 in->fld[1].rtx directly.
21445 * reload1.c (reload): Change reg to a MEM before initializing
21446 it.
21447 * varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
21448 have no names.
21449 * config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
21450
21451 Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
21452
21453 * config/mips/mips.c (machine_dependent_reorg): Force a
21454 barrier to output the local constant pool if a barrier hasn't
21455 been found at a natural point in the instruction stream.
21456
21457 Mon Aug 30 22:04:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21458
21459 * c-parse.in (language_string): Constify.
21460
21461 * dwarf2out.c (language_string): Remove declaration.
21462
21463 * dwarfout.c (language_string): Likewise.
21464
21465 * toplev.c (language_string, init_parse, finish_parse): Likewise.
21466
21467 * tree.h (language_string, init_parse, finish_parse): Declare.
21468
21469 * i386/sun386.h (language_string): Remove declaration.
21470
21471 * mips.h (language_string): Likewise.
21472
21473 * nextstep.h (language_string): Likewise.
21474
21475 * nextstep21.h (language_string): Likewise.
21476
21477 * rs6000.c (language_string): Likewise.
21478
21479 Mon Aug 30 20:56:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21480
21481 * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
21482 (getpwd.o): Remove target.
21483
21484 * getpwd.c: Delete file. Its in libiberty now.
21485
21486 * dbxout.c (getpwd): Don't prototype.
21487 * dwarf2out.c (getpwd): Likewise
21488 * dwarfout.c (getpwd): Likewise
21489 * final.c (getpwd): Likewise.
21490 * protoize.c (getpwd): Likewise.
21491
21492 Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21493
21494 * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
21495
21496 Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
21497
21498 * flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
21499 mark_set_resources.
21500
21501 Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
21502
21503 * fixinc/Makefile.in (subdir): New.
21504 (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
21505 (Makefile): New.
21506
21507 Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
21508
21509 * emit-rtl.c (copy_rtx_if_shared): A MEM which references
21510 virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
21511 be shared.
21512
21513 * invoke.texi: Fix typo.
21514
21515 * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
21516 changed. Handle autoincrement addressing modes.
21517
21518 * integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
21519 just like we would the virtual incoming args register when
21520 integrating.
21521
21522 Sun Aug 29 23:17:54 1999 David Edelsohn <edelsohn@gnu.org>
21523
21524 * rs6000.h (ASM_FILE_START): Specify complete filename, including
21525 path, in .file directive.
21526
21527 Sun Aug 29 05:06:43 1999 Russ Allbery <rra@stanford.edu>
21528
21529 * gcc.texi (External Bugs): Remove obsolete note about Perl on
21530 SunOS.
21531
21532 1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
21533
21534 * stdbool.h: Make the typedef name _Bool, with bool a #defined
21535 alias.
21536
21537 Sun Aug 29 09:36:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21538
21539 * tree.c (tree_code_name): Constify a char*.
21540
21541 * tree.h (tree_code_name, decl_printable_name): Likewise.
21542
21543 * function.h (struct function): Likewise.
21544
21545 * toplev.c (decl_name, decl_printable_name): Likewise.
21546
21547 * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
21548
21549 * objc/objc-act.c (decl_printable_name): Remove redundant prototype.
21550 (init_objc): Remove function pointer cast.
21551
21552 Sun Aug 29 05:01:17 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
21553
21554 * pa.md (interspace_jump): New pattern.
21555 (builtin_longjmp): New expander.
21556
21557 1999-08-29 Bernd Schmidt <bernds@cygnus.co.uk>
21558
21559 * fp-bit.c (add, sub, multiply, divide, compare, _eq_f2, _ne_f2,
21560 _gt_f2, _ge_f2, _lt_f2, _le_f2, float_to_si, float_to_usi, negate,
21561 sf_to_df, df_to_sf): Fix potential problem with alias analysis.
21562
21563 Sun Aug 29 04:30:52 1999 John Wehle (john@feith.com)
21564
21565 * jump.c (delete_prior_computation): Also check calls
21566 to constant functions. Don't bother checking for a
21567 REG_UNUSED note before adding it.
21568 (delete_computation): Handle multi-word hard registers
21569 when synthesizing missing REG_DEAD notes for a register
21570 which is both set and used by an insn.
21571
21572 1999-08-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21573
21574 * loop.c (this_loop_info): New variable.
21575 (loop_has_call, loop_has_volatile, loop_has_tablejump,
21576 loop_continue, loops_enclosed): Replace with fields in this_loop_info.
21577 All uses updated.
21578 (prescan_loop, strength_reduce): New argument loop_info. All callers
21579 updated.
21580 (scan_loop): New variable loop_info, initialise to address of
21581 this_loop_info.
21582 (prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
21583 Delete variable loop_has_multiple_exit targets and replace with
21584 field in this_loop_info.
21585 (find_and_verify_loops): Rename this_loop to this_loop_num.
21586 (strength_reduce): Delete loop_iteration_info. Replace variable
21587 loop_info with function argument of same name.
21588 (insert_bct): Rework test for loop being completely unrolled.
21589
21590 * loop.h (struct loop_info): New fields num, loops_enclosed,
21591 has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
21592 has_indirect_jump, and cont. Redefine use of unroll_number.
21593 (loop_unroll_number): Delete.
21594
21595 * unroll.c (unroll_loop): Store loop unroll count in unroll_number
21596 field of loop_info.
21597 (loop_iterations): Delete variable vtop and instead use
21598 loop_info->vtop computed in prescan_loop.
21599
21600 Sun Aug 29 03:27:23 1999 Scott Weikart <scott@igc.apc.org>
21601
21602 * fix-header.c (main): Do not pass a null pointer to strcmp.
21603
21604 Sun Aug 29 03:18:48 1999 William Bader (william@nscs.fast.net)
21605
21606 * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
21607 filenames.
21608 * configure: Rebuilt.
21609
21610 Sat Aug 28 19:36:05 1999 Jeffrey A Law (law@cygnus.com)
21611
21612 * jump.c (jump_optimize_1): Do not delete assignments to
21613 internal_arg_pointer.
21614 * cse.c (delete_trivially_dead_insns): Always consider a set of
21615 the internal_arg_pointer live.
21616
21617 Sat Aug 28 16:24:31 1999 Richard Henderson <rth@cygnus.com>
21618
21619 * flow.c (flow_delete_insn_chain): Rename from delete_insn_chain.
21620 (update_life_info) [REG_WAS_0]: Search the original insns rather
21621 than the new insns for the note. Fix typos finding note_dest.
21622 If no dest found, discard the note rather than abort.
21623 [REG_NOALIAS]: Handle as REG_NO_CONFLICT.
21624 (replace_insns): Remove the old insn list after update_life_info
21625 not before.
21626
21627 Sat Aug 28 16:20:12 1999 Richard Henderson <rth@cygnus.com>
21628
21629 * haifa-sched.c (sched_analyze): Clear LOG_LINKS before calling
21630 sched_analyze_insn.
21631 (sched_analyze_1): Let add_dependence care for not adding dups.
21632 (sched_analyze_2): Likewise.
21633 (add_branch_dependences): Likewise.
21634
21635 Sat Aug 28 15:58:16 1999 Mumit Khan <khan@xraylith.wisc.edu>
21636
21637 * i386/winnt.c (export_list): New type.
21638 (exports_head): Rename to
21639 (export_head): this.
21640 (i386_pe_record_exported_symbol): Add is_data flag.
21641 (i386_pe_asm_file_end): Emit directive for exported variables.
21642 * i386/cygwin.h (i386_pe_record_exported_symbol): Update
21643 prototype.
21644 * i386/cygwin.h (ASM_OUTPUT_COMMON): Specify symbol type.
21645 (ASM_DECLARE_OBJECT_NAME): Likewise.
21646 (ASM_DECLARE_FUNCTION_NAME): Likewise.
21647 * i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21648
21649 Fri Aug 27 15:35:24 1999 Jeffrey A Law (law@cygnus.com)
21650
21651 * cse.c (fold_rtx): Work around bug in Sun V5.0 compilers.
21652
21653 * pa.c (emit_move_sequence): Do not stop on SUBREG_WORD of an
21654 operand.
21655
21656 Fri Aug 27 14:01:19 1999 Marc Espie <espie@cvs.openbsd.org>
21657
21658 * config/openbsd.h: Define SET_ASM_OP.
21659 * tm.texi: cross-reference SET_ASM_OP in the index.
21660
21661 1999-08-27 13:27 -0700 Zack Weinberg <zack@bitmover.com>
21662
21663 * rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
21664 for a CONST_DOUBLE, at compile time. Initialize rtx_length
21665 and class_narrowest_mode at compile time. Kill init_rtl.
21666 Mark rtx_length, mode_class, mode_size, mode_unit_size,
21667 mode_wider_mode, mode_mask_array, class_narrowest_mode, and
21668 rtx_format as const. Kill all references to EXTRA_CC_MODES or
21669 EXTRA_CC_NAMES.
21670 * rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
21671 format.
21672 * rtl.h: Declare rtx_length and rtx_format as const.
21673 * machmode.def: Define CC(). Use CC() to define CCmode. If
21674 EXTRA_CC_MODES is defined, expand it here.
21675 * machmode.h: Declare mode_class, mode_size, mode_unit_size,
21676 mode_wider_mode, mode_mask_array, and class_narrowest_mode as
21677 const. Kill all references to EXTRA_CC_MODES.
21678
21679 * toplev.c: Don't prototype or call init_rtl.
21680 * optabs.c: Don't call init_mov_optab.
21681 * genemit.c: Don't generate init_mov_optab. Don't call
21682 init_rtl.
21683 * gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
21684 here.
21685 * genattr.c, genattrtab.c, gencodes.c, genconfig.c,
21686 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
21687 genrecog.c: Don't call init_rtl.
21688
21689 * arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
21690 rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES. Use CC() in
21691 definition of EXTRA_CC_MODES.
21692
21693 * md.texi: Kill ref to EXTRA_CC_NAMES.
21694 * tm.texi: Document new way to define EXTRA_CC_MODES.
21695
21696 * genrecog.c: Do not look up the name of a define_split.
21697 (Unrelated bugfix.)
21698
21699 Fri Aug 27 17:03:42 1999 Nick Clifton <nickc@cygnus.com>
21700
21701 * config/v850/v850.md: Fix typo introduced by previous delta.
21702
21703 Fri Aug 27 09:48:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21704
21705 * gcc.c (fatal): Make definition static to match prototype.
21706
21707 Fri Aug 27 10:33:35 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21708
21709 * combine.c (get_last_value): Don't look for earlier sets if the last
21710 known set is somewhere in between the insns being combined.
21711
21712 Fri Aug 27 10:03:12 BST 1999 Nathan Sidwell <nathan@acm.org>
21713
21714 * configure.in: Don't use shell ! to negate exit codes
21715 * configure: Regenerate
21716
21717 Fri Aug 27 09:36:17 1999 Andreas Schwab <schwab@suse.de>
21718
21719 * function.c (assign_stack_temp_for_type): Fix change of Mar 5 for
21720 the fact that ALIGN is measured in bits, not bytes.
21721
21722 1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
21723
21724 * errors.c: New file; defines functions error, warning, and
21725 fatal, variables have_error and progname.
21726 * errors.h: New file; prototypes and decls for stuff in errors.c.
21727
21728 * Makefile: Add rules to build errors.o and
21729 $(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
21730 genopinit, genrecog, genextract, genpeep, genattr, and
21731 genoutput with errors.o. Add errors.h to deps of genconfig.o,
21732 gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
21733 genpeep.o, genattr.o, and genoutput.o.
21734
21735 * genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
21736 genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
21737 define or prototype fatal. Set progname at beginning of main.
21738 * genoutput.c: Likewise, and don't define or prototype error
21739 either.
21740
21741 * c-typeck.c (c_expand_start_case): Return immediately if exp
21742 is an ERROR_MARK.
21743 * fold-const.c (operand_equal_p): Return immediately if arg1
21744 or arg0 are ERROR_MARKs.
21745 * stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
21746 fields of type ERROR_MARK when calculating if the record can
21747 go in a register.
21748
21749 Fri Aug 27 01:03:48 1999 Jim Kingdon <http://developer.redhat.com>
21750 with much help from Jeffrey A Law and Richard Henderson
21751
21752 * i386.md: In the 6 insns which call output_fix_trunc,
21753 earlyclobber operands[0].
21754
21755 Fri Aug 27 01:01:51 1999 Philip Blundell <pb@nexus.co.uk>
21756
21757 * jump.c (duplicate_loop_exit_test): Call reg_scan_update after
21758 creating new registers.
21759
21760 1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
21761
21762 * i386.h: Declare ix86_cpu_string, ix86_arch_string,
21763 i386_reg_alloc_order, i386_regparm_string,
21764 i386_align_loops_string, i386_align_jumps_string,
21765 i386_align_funcs_string, i386_preferred_stack_boundary_string,
21766 and i386_branch_cost_string as type "const char *".
21767 * i386.c: Define all above strings as type "const char *".
21768
21769 Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com>
21770
21771 * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE
21772 when emitting alignment padding. Emit padding byte of 0 instead of 4.
21773
21774 Thu Aug 26 18:11:20 1999 Mark Mitchell <mark@codesourcery.com>
21775
21776 * tree.c (array_type_nelts): Don't create RTL_EXPRs from
21777 SAVE_EXPRs unless the SAVE_EXPRs have already been expanded.
21778
21779 Thu Aug 26 19:33:23 1999 Jim Wilson <wilson@cygnus.com>
21780
21781 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Add default definition.
21782 (debug_dwarf): Add DWARF2_ASM_LINE_DEBUG_INFO support.
21783 (dwarf2out_line, dwarf2out_finish): Likewise.
21784 * tm.texi (DWARF2_ASM_LINE_DEBUG_INFO): Add documetation.
21785
21786 Thu Aug 26 16:10:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
21787
21788 * tree.c (lang_unsave_expr_now) : Correct return type.
21789 * tree.h (lang_unsave_expr_now) : Same.
21790
21791 Thu Aug 26 13:12:29 1999 Jeffrey A Law (law@cygnus.com)
21792
21793 * pa.c (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
21794 instead of duplicating code.
21795
21796 Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21797
21798 * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
21799
21800 1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
21801
21802 * tree.h: fancy_abort always takes three args.
21803 * resource.c: Move include of system.h before toplev.h.
21804
21805 Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
21806
21807 * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
21808 as SYMBOL_REFs.
21809
21810 1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
21811
21812 * system.h: Don't redefine abort or trim_filename.
21813 * rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
21814 or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
21815 whether or not __FUNCTION__ is available.
21816 * tree.h: Duplicate rtl.h's definition of abort, for files
21817 that don't include rtl.h. Delete all code to perform type
21818 checking with a compiler other than GCC.
21819 * varray.h: Delete all code to perform type checking with a
21820 compiler other than GCC. Make VARRAY_CHECK() always evaluate
21821 its arguments exactly once, using a statement expression.
21822 Adjust the VARRAY_<type> accessor macros to match.
21823 * toplev.h (fatal_insn, fatal_insn_not_found): Kill.
21824 (_fatal_insn, _fatal_insn_not_found): New fns, take info on
21825 caller's location. Define fatal_insn and fatal_insn_not_found
21826 as macros that use _fatal_insn and _fatal_insn_not_found.
21827 (fancy_abort, trim_filename): Kill prototypes.
21828
21829 * rtl.c (trim_filename): Move here from toplev.c.
21830 (fancy_abort): New function.
21831 (DIR_SEPARATOR): Provide default definition.
21832 * tree.c (tree_check_failed, tree_class_check_failed): Go
21833 through fancy_abort.
21834 (tree_check, tree_class_check, cst_or_constructor_check,
21835 expr_check): Delete.
21836 * varray.c (varray_check_failed): New function.
21837 * toplev.c (fatal_insn, fatal_insn_not_found): Replace with
21838 _fatal_insn and _fatal_insn_not_found. Go through
21839 fancy_abort.
21840 (trim_filename, fancy_abort): Delete.
21841
21842 * builtins.c (expand_builtin_args_info): Report ICE with abort.
21843 * except.c (start_catch_handler): Report ICE with error/abort
21844 combo.
21845 * final.c (output_operand_lossage): Likewise.
21846 * flow.c (verify_flow_info): Likewise.
21847
21848 * gcc.c: Prototype fatal.
21849 * gengenrtl.c: Undef abort after including rtl.h not system.h.
21850 * genattr.c, genattrtab.c, genemit.c, genextract.c,
21851 genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
21852 Don't define fancy_abort.
21853
21854 Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
21855
21856 * optabs.c (emit_cmp_and_jump_insns): Be more thorough in
21857 canonization.
21858
21859 Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
21860
21861 * m88k.h (VERSION_INFO2): Kill.
21862 (VERSION_STRING): Kill.
21863 (TM_RCS_ID): Kill.
21864 (VERSION_INFO1): Tidy.
21865 (TARGET_VERSION): Update.
21866 * m88k/dgux.h (VERSION_INFO2): Kill.
21867 (ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
21868 * m88k/luna.h (VERSION_INFO1): Tidy.
21869 * m88k/sysv4.h (VERSION_INFO1): Likewise.
21870 * m88k.c (out_rcs_id, tm_rcs_id): Kill.
21871 (output_file_start): Adjust for death of VERSION_STRING.
21872
21873 1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
21874
21875 * cpplib.c (detect_if_not_defined): New function.
21876 (do_if): Use it to detect potential once-only headers.
21877
21878 Wed Aug 25 14:00:18 1999 Jason Merrill <jason@yorick.cygnus.com>
21879
21880 * c-common.c (combine_strings): Always set TREE_CONSTANT.
21881
21882 Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
21883
21884 * combine.c (nonzero_bits) : Allow single-ly set registers to be
21885 anywere in the function only if they are pseudos and set before
21886 being used (not live at the start of the function).
21887 (num_sign_bit_copies) : Same.
21888 (get_last_value_validate) : Same.
21889 (get_last_value) : Same.
21890
21891 Wed Aug 25 11:13:29 1999 Richard Henderson <rth@cygnus.com>
21892
21893 * loop.c (express_from): Try harder to unify (* c N) and (* c M)
21894 where N and M are constant and N is an integer multiple of M.
21895
21896 Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21897
21898 * sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
21899 (sbitmap_intersection_of_preds, sbitmap_union_of_succs,
21900 sbitmap_union_of_preds): Add prototypes.
21901 * sbitmap.c (sbitmap_intersection_of_succs): New function to compute
21902 the intersection of successors with the new flow graph structures.
21903 (sbitmap_intersection_of_preds): New function to compute the
21904 intersection of predecessors with the new flow graph structures.
21905 (sbitmap_union_of_succs): New function to compute the union of
21906 successors with the new flow graph structures.
21907 (sbitmap_union_of_preds): New function to compute the union of
21908 predecessors with the new flow graph structures.
21909 * gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
21910 (expr_reaches_here_p): Use edge and basic_block structures instead
21911 of s_preds and s_succs.
21912 (compute_cprop_avinout): Use new sbitmap routines.
21913 (pre_expr_reaches_here_p): Use edge and basic_block structures instead
21914 of s_preds and s_succs.
21915 * flow.c (compute_flow_dominators): Compute dominators using
21916 edges and basic blocks instead of s_preds and s_succs.
21917
21918 Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21919
21920 * lists.c (unused_insn_list, unused_expr_list): New file for
21921 maintaining various types of lists. New statics for maintaining a
21922 cache of available INSN_LIST and EXPR_LIST nodes.
21923 (free_list): Static function for freeing a list of INSN/EXPR nodes.
21924 (alloc_INSN_LIST): Function to get a free INSN_LIST node.
21925 (alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
21926 (init_EXPR_INSN_LIST_cache): Initialize the cache lists.
21927 (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
21928 (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
21929 (free_EXPR_LIST_node): Free an individual EXPR_LIST node.
21930 (free_INSN_LIST_node): Free an individual INSN_LIST node.
21931 * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
21932 (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
21933 (remove_dependence, free_pending_lists): Use new global routines.
21934 (flush_pending_lists, sched_analyze_insn): Use new global routines.
21935 (sched_analyze, compute_block_backward_dependences): Use new routines.
21936 (sched_analyze_1, sched_analyze_2): Use new routines.
21937 (schedule_insns): Use new global routines.
21938 * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
21939 prototypes.
21940 (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
21941 (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
21942 prototypes.
21943 * toplev.c (rest_of_compilation): Initialize node cache.
21944 * Makefile.in (OBJS): Add lists.o to list of object files.
21945 (lists.o): Add dependancies.
21946
21947 Wed Aug 25 17:31:56 1999 Nick Clifton <nickc@cygnus.com>
21948
21949 * config/v850/v850.md: Fix compile time warning messages.
21950 * config/v850/v850.c: Fix compile time warning messages.
21951 * config/v850/v850.h: Fix compile time warning messages.
21952
21953 Wed Aug 25 09:44:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21954
21955 * genattr.c (gen_attr): Add prototype arguments for get_attr_*().
21956 Remove unused prototype for `init_lengths'.
21957
21958 Wed Aug 25 09:32:31 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21959
21960 * calls.c (emit_call_1): Mark parameter `stack_size' with
21961 ATTRIBUTE_UNUSED.
21962 (expand_call): Initialize variable `insn'.
21963 (emit_library_call): Likewise for variable `high_to_save'.
21964 (emit_library_call_value): Likewise.
21965 (store_one_arg): Likewise for variables `lower_bound' and
21966 `upper_bound'.
21967
21968 * combine.c (try_combine): Likewise for variables `i2_code_number'
21969 and `other_code_number'.
21970 (find_split_point): Likewise for variables `pos', `unsignedp' and
21971 `inner'.
21972 (simplify_if_then_else): Likewise for variables `op' and `c1'.
21973 (simplify_and_const_int): Remove unused variable `width'.
21974 (merge_outer_ops): Likewise.
21975
21976 * cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
21977 HOST_WIDE_INT' when comparing against one.
21978 (simplify_relational_operation): Likewise.
21979 (cse_insn): Initialize variables `src_eqv_volatile',
21980 `src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
21981
21982 * final.c (init_final): Constify parameter `filename'.
21983 (final_start_function): Mark parameter `optimize' with
21984 ATTRIBUTE_UNUSED.
21985 (profile_function): Likewise for parameters `first' and `optimize'.
21986 (output_source_line): Likewise for parameter `file'.
21987
21988 * integrate.c (subst_constants): Cast a value to `size_t' when
21989 comparing against one.
21990 (mark_stores): Initialize variable `mode'. Cast a value to
21991 `size_t' when comparing against one.
21992
21993 * integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
21994
21995 * loop.c (move_movables): Initialize variable `first'.
21996 (strength_reduce): Likewise for variable `increment'.
21997 (check_dbra_loop): Likewise for variable `comparison_val'. Cast a
21998 value to `size_t' when comparing against one.
21999 (load_mems): Initialize variable `end_label'.
22000
22001 * output.h (init_final): Constify parameter.
22002
22003 * reload.c (decompose): Initialize variable `base'.
22004
22005 * reload1.c (reload): Likewise for variable `is_scalar'.
22006 (spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
22007 (choose_reload_regs): Initialize variable `mode'.
22008 (emit_reload_insns): Likewise for variable `store_insn'.
22009 (reload_cse_noop_set_p): Mark parameter `insn' with
22010 ATTRIBUTE_UNUSED.
22011 (reload_combine): Initialize variable `set'.
22012
22013 * unroll.c (unroll_loop): Likewise for variable `local_label'.
22014 (copy_loop_body): Cast a value to `size_t' when comparing against
22015 one.
22016
22017 * varasm.c (assemble_variable): Initialize variable `size_tree'.
22018 (const_hash): Add an `else abort()' in an if-else-if-else sequence.
22019 (remove_from_pending_weak_list): Mark parameter `name' with
22020 ATTRIBUTE_UNUSED.
22021
22022 Wed Aug 25 11:18:39 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22023
22024 * toplev.c (rest_of_compilation): Use decl_printable_name when opening
22025 gcse dump file.
22026
22027 Wed Aug 25 10:57:12 1999 Nick Clifton <nickc@cygnus.com>
22028
22029 * config/arm/telf.h (ASM_WEAKEN_LABEL): Define.
22030 (ASM_DECLARE_FUNCTION_NAME): Define.
22031 (TYPE_ASM_OP, SIZE_ASM_OP, TYPE_OPERAND_FORMAT,
22032 ASM_DECLARE_RESULT, ASM_DECLARE_OBJECT_NAME,
22033 ASM_FINISH_DECLARE_OBJECT, ASM_DECLARE_FUNCTION_SIZE): Define if
22034 not already defined.
22035
22036 Wed Aug 25 01:36:11 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
22037
22038 * calls.c (emit_call_1): Use call_pop/call_value_pop for all values
22039 of n_popped when call/call_value are not defined.
22040
22041 Wed Aug 25 01:25:14 1999 Jeffrey A Law (law@cygnus.com)
22042
22043 * tm.texi: GNU CC -> GCC conversion.
22044 (CC1_SPEC): Indicate it is used for all language front ends.
22045
22046 Tue Aug 24 23:43:03 1999 Mark Mitchell <mark@codesourcery.com>
22047
22048 * flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
22049 NOTE_INSN_EH_REGION_END correctly.
22050
22051 Tue Aug 24 23:26:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
22052 Jeff Law <law@cygnus.com>
22053
22054 * loop.c (strength_reduce): Automatically unroll loops if the
22055 unrolled loop size is smaller than the rolled loop size.
22056
22057 * loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
22058 and delete comment that code should be rewritten.
22059
22060 Tue Aug 24 22:56:35 1999 Jeffrey A Law (law@cygnus.com)
22061
22062 * haifa-sched.c (find_rgns): Mark a block found during the DFS search
22063 as reachable.
22064
22065 * haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
22066
22067 Tue Aug 24 22:41:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
22068
22069 * fixinc/mkfixinc.sh: Don't fix uwin headers.
22070 * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
22071 (LINK_SPEC): Add -u _main when building executables.
22072 (ASM_DECLARE_FUNCTION): Update from Cygwin.
22073 (ASM_FILE_END): Use the default for ix86-pe.
22074 * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
22075
22076 Tue Aug 24 20:49:47 1999 Art Haas <ahaas@neosoft.com>
22077
22078 * final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
22079 and ASM_CLOSE_PAREN are empty strings.
22080
22081 Wed Aug 25 12:46:22 1999 Fred Fish <fnf@cygnus.com>
22082 Geoffrey Keating <geoffk@cygnus.com>
22083
22084 * Makefile.in (PREPROCESSOR_DEFINES): New macro.
22085 (protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
22086 (unprotoize.o): Ditto.
22087 (test-protoize-simple): Don't define STD_PROTO_DIR.
22088 * protoize.c: Use PARAMS rather than PROTO. Minor whitespace
22089 changes to make 'test-protoize-simple' pass.
22090 (STD_PROTO_DIR): Remove define.
22091 (STANDARD_EXEC_PREFIX): Supply default define.
22092 (standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
22093 (target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
22094 (target_version): New variable, init to DEFAULT_TARGET_VERSION.
22095 (GET_ENV_PATH_LIST): New macro.
22096 (default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
22097 (do_processing): Initialize default_syscalls_dir using new
22098 macros. Use it to initialize syscalls_absolute_filename.
22099
22100 Tue Aug 24 16:58:15 1999 Richard Henderson <rth@cygnus.com>
22101
22102 * jump.c (jump_optimize_1): Do cmov opt on any single-set; force
22103 B into a register before emit_conditional_move.
22104
22105 Tue Aug 24 15:37:03 1999 Richard Henderson <rth@cygnus.com>
22106
22107 * fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
22108 as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
22109 multiplicand out of (+ (* a b) (* c d)).
22110
22111 Tue Aug 24 11:46:10 1999 Bob Manson <manson@cygnus.com>
22112 Richard Henderson <rth@cygnus.com>
22113
22114 * haifa-sched.c (split_hard_reg_notes): Move to flow.c
22115 (new_insn_dead_notes): Likewise.
22116 (update_n_sets): Likewise.
22117 (update_flow_info): Move to flow.c, renamed to update_life_info;
22118 extend to handle multiple source insns.
22119 * flow.c: Include resource.h
22120 (unlink_insn_chain): New.
22121 (split_hard_reg_notes): New.
22122 (maybe_add_dead_note): New.
22123 (maybe_add_dead_note_use): New.
22124 (find_insn_with_note): New.
22125 (new_insn_dead_notes): New.
22126 (update_n_sets): New.
22127 (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
22128 (maybe_remove_dead_notes): New.
22129 (update_life_info): New.
22130 (prepend_reg_notes): New.
22131 (replace_insns): New.
22132 * output.h (update_life_info): Declare.
22133 * recog.c (split_block_insns): Use update_life_info.
22134 * resource.c (find_free_register): Use reg_alloc_order, don't use
22135 fixed regs, make sure the mode is supported, don't use new regs.
22136 (reg_dead_p): New.
22137 * rtl.h (replace_insns): Declare.
22138
22139 Tue Aug 24 13:48:39 1999 Nathan Sidwell <nathan@acm.org>
22140
22141 * expr.c (expand_expr): Cope with COND_EXPRs with one
22142 non-returning branch.
22143
22144 Mon Aug 23 22:28:16 1999 Mark Mitchell <mark@codesourcery.com>
22145
22146 * expr.c (store_expr): Always pass down the target, even when not
22147 doing CSE.
22148
22149 1999-08-24 Nick Clifton <nickc@cygnus.com>
22150
22151 * configure.in: Define target_cpu_default for v850 targets.
22152 * configure: Regenerate
22153
22154 * config/v850/v850.h (TARGET_CPU_generic): Define.
22155 (GO_IF_LEGITIMATE_ADDRESS): Insist that SImode and larger constant
22156 addresses are 4 byte aligned.
22157
22158 * config/v850/v850.c (print_operand): Cope with 'R' format DFmode
22159 addresses.
22160
22161 Tue Aug 24 09:32:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22162
22163 * genattr.c (function_unit_desc): Constify a char*. Add prototype.
22164 (main): Add prototypes.
22165
22166 * genattrtab.c (substitute_address, write_const_num_delay_slots,
22167 attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
22168 (write_attr_get): Emit prototypes along with function definition.
22169 (write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
22170 (write_complex_function): Emit static prototype along with
22171 function definition.
22172
22173 * genemit.c (gen_split): Emit prototypes along with function
22174 definition.
22175
22176 * genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
22177 Likewise for predicates and `insn_operand_predicate'.
22178 (process_template): Emit static prototype along with function
22179 definition.
22180
22181 * genrecog.c (make_insn_sequence): Constify a char*. Add
22182 prototypes for get_split_*().
22183 (write_subroutine): Emit prototypes along with function
22184 definition.
22185
22186 Tue Aug 24 12:35:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22187
22188 * gcse.c (find_avail_set): Follow chains of register-register copies.
22189 Use oprs_not_set_p to guarantee that the returned value can be
22190 substituted.
22191 (cprop_insn): Don't verify the return value of find_avail_set with
22192 oprs_not_set_p.
22193
22194 * gcse.c (cprop_jump): New function, broken out of cprop_insn.
22195 (cprop_cc0_jump): New function.
22196 (cprop_insn): Break out new function cprop_jump and use it.
22197 Also use cprop_cc0_jump for machines with CC0.
22198 (cprop): Don't crash if cprop_insn turned the insn into a NOTE.
22199
22200 * tree.h (current_function_calls_setjmp,
22201 current_function_calls_longjmp): Delete declarations.
22202 * dsp16xx.c: Include "function.h".
22203 * elxsi.c: Likewise.
22204 * gmicro.c: Likewise.
22205 * h8300.c: Likewise.
22206 * i370.c: Likewise.
22207 * m32r.c: Likewise.
22208 * mn10200.c: Likewise.
22209 * mn10300.c: Likewise.
22210 * ns32k.c: Likewise.
22211 * spur.c: Likewise.
22212 * v850.c: Likewise.
22213
22214 * rtl.h (rtx_equal_function_value_matters): Declare.
22215 * toplev.c (rtx_equal_function_value_matters): Don't declare.
22216 * cse.c: Likewise.
22217 * function.c: Likewise.
22218 * emit-rtl.c: Likewise.
22219
22220 Tue Aug 24 02:47:44 1999 Jeffrey A Law (law@cygnus.com)
22221
22222 * expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
22223 call.
22224
22225 1999-08-24 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22226
22227 * jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
22228 exactly.
22229
22230 Mon Aug 23 23:35:52 1999 Matthias Klose <doko@cs.tu-berlin.de>
22231
22232 * cpp.texi: Add a node documenting macro varargs (copied
22233 from extend.texi).
22234
22235 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
22236
22237 * cppspec.c: Put a null pointer at the end of the new argv.
22238
22239 Mon Aug 23 21:23:24 1999 Jeffrey A Law (law@cygnus.com)
22240
22241 * configure.in: Remove code to select/de-select the haifa
22242 scheduler. Every scheduled port gets haifa now.
22243 * configure: Rebuilt.
22244 * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
22245 * sched.c Deleted.
22246 * Makefile.in: Corresponding changes.
22247
22248 Mon Aug 23 16:04:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22249
22250 * optabs.c (prepare_cmp_insn): Turn COMPARISON arg into a pointer.
22251 All callers changed.
22252 (prepare_float_lib_cmp): Likewise.
22253 Use FLOAT_LIB_COMPARE_RETURNS_BOOL.
22254 * expr.h (emit_float_lib_cmp): Delete declaration.
22255 * tm.texi (FLOAT_LIB_COMPARE_RETURNS_BOOL): Document.
22256 * sparc.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): Define.
22257 * sparc.md (bcc and scc patterns): Don't handle TFmode comparisons
22258 specially.
22259 (cmptf): Now conditional on TARGET_HARD_QUAD.
22260
22261 Fri Aug 20 17:52:27 1999 Jim Wilson <wilson@cygnus.com>
22262
22263 * resource.c (mark_target_live_regs): Use
22264 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
22265
22266 Fri Aug 20 19:07:55 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22267
22268 * rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
22269
22270 * rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
22271
22272 * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
22273
22274 Fri Aug 20 18:53:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22275
22276 * rtl.h (rtx_format): Constify a char*.
22277
22278 * rtl.c (rtx_format): Likewise.
22279 (copy_rtx, copy_most_rtx, read_rtx): Likewise.
22280 (init_rtl): Use accessor macro, not `rtx_format'.
22281
22282 * alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
22283 char*.
22284
22285 * caller-save.c (mark_referenced_regs): Likewise.
22286
22287 * combine.c (subst, make_compound_operation, known_cond,
22288 gen_rtx_combine, update_table_tick, get_last_value_validate,
22289 use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
22290
22291 * cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
22292 refers_to_p, canon_reg, fold_rtx, cse_process_notes,
22293 count_reg_usage): Likewise.
22294
22295 * emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
22296 Likewise.
22297
22298 * final.c (leaf_renumber_regs_insn): Likewise.
22299
22300 * flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
22301 dump_edge_info, count_reg_references): Likewise.
22302
22303 * function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
22304 fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
22305 Likewise.
22306
22307 * gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
22308 oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
22309 add_label_notes): Likewise.
22310
22311 * genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
22312 clear_struct_flag, count_sub_rtxs, count_alternatives,
22313 compares_alternatives_p, contained_in_p, walk_attr_value,
22314 write_expr_attr_cache): Likewise.
22315
22316 * genconfig.c (walk_insn_part): Likewise.
22317
22318 * genemit.c (max_operand_1, gen_exp): Likewise.
22319
22320 * genextract.c (walk_rtx): Likewise.
22321
22322 * genflags.c (num_operands): Likewise.
22323
22324 * genoutput.c (scan_operands): Likewise.
22325
22326 * genpeep.c (match_rtx): Likewise.
22327
22328 * genrecog.c (add_to_sequence): Likewise.
22329
22330 * haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
22331 Likewise.
22332
22333 * integrate.c (save_constants, copy_for_inline,
22334 copy_rtx_and_substitute, subst_constants, restore_constants):
22335 Likewise.
22336
22337 * jump.c (mark_jump_label, invert_exp, redirect_exp,
22338 rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
22339
22340 * local-alloc.c (contains_replace_regs, memref_referenced_p):
22341 Likewise.
22342
22343 * loop.c (record_excess_regs, rtx_equal_for_loop_p,
22344 add_label_notes, replace_call_address, count_nonfixed_reads,
22345 invariant_p, find_single_use_in_loop, find_mem_givs,
22346 find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
22347 Likewise.
22348
22349 * print-rtl.c (reg_names, print_rtx): Likewise.
22350
22351 * recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
22352
22353 * reg-stack.c (stack_regs_mentioned_p, record_label_references,
22354 record_reg_life_pat, swap_rtx_condition, goto_block_pat,
22355 print_blocks): Likewise.
22356
22357 * regclass.c (fix_register, record_address_regs,
22358 reg_scan_mark_refs): Likewise.
22359
22360 * regmove.c (stable_but_for_p): Likewise.
22361
22362 * reload.c (loc_mentioned_in_p, operands_match_p,
22363 find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
22364 copy_replacements, refers_to_regno_for_reload_p,
22365 refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
22366 reload_when_needed_name, reg_class_names, debug_reload_to_stream):
22367 Likewise.
22368
22369 * reload1.c (eliminate_regs, scan_paradoxical_subregs,
22370 delete_address_reloads_1, count_occurrences,
22371 reload_cse_mem_conflict_p, reload_combine_note_use,
22372 add_auto_inc_notes): Likewise.
22373
22374 * resource.c (mark_referenced_resources, mark_set_resources):
22375 Likewise.
22376
22377 * rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
22378 reg_mentioned_p, regs_set_between_p, modified_between_p,
22379 modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
22380 rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
22381 may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
22382 jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
22383
22384 * sched.c (sched_analyze_2, attach_deaths): Likewise.
22385
22386 * stupid.c (stupid_mark_refs): Likewise.
22387
22388 * unroll.c (remap_split_bivs): Likewise.
22389
22390 * varasm.c (mark_constants): Likewise.
22391
22392 * a29k/a29k.c (uses_local_reg_p): Likewise.
22393
22394 * alpha/alpha.c (summarize_insn): Likewise.
22395
22396 * arm/arm.c (symbol_mentioned_p, label_mentioned_p,
22397 eliminate_lr2ip): Likewise.
22398
22399 * arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
22400
22401 * i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
22402 reg_mentioned_in_mem): Likewise.
22403
22404 * ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
22405 symbolic_reference_mentioned_p): Likewise.
22406
22407 * romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
22408
22409 * sh/sh.c (regs_used, mark_use): Likewise.
22410
22411 * vax/vax.c (vax_rtx_cost): Likewise.
22412
22413 Fri Aug 20 18:38:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22414
22415 * machmode.h (mode_name): Constify a char*.
22416
22417 * rtl.c (mode_name): Likewise.
22418
22419 * genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
22420
22421 * optabs.c (init_libfuncs): Constify a char*.
22422
22423 * print-tree.c (mode_name): Remove redundant declaration.
22424 (print_node): Use accessor macro, not `mode_name'.
22425
22426 * reload1.c (dump_needs): Constify a char*. Use accessor macro,
22427 not `mode_name'.
22428 (new_spill_reg): Constify a char*.
22429
22430 * tree.c (mode_name): Remove redundant declaration.
22431
22432 Fri Aug 20 18:31:26 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22433
22434 * rtl.c (rtx_name): Constify a char*.
22435
22436 * rtl.h (rtx_name, fix_sched_param): Likewise.
22437
22438 * gmicro/gmicro.c (rtx_name): Remove redundant declaration.
22439 (mypr): Use accessor macro, not `rtx_name'.
22440
22441 * genemit.c (print_code): Constify a char*.
22442
22443 * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
22444
22445 * genpeep.c (print_code): Constify a char*.
22446
22447 * genrecog.c (print_code): Likewise.
22448
22449 * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
22450 end_bb): Add static prototype.
22451 (draw_edge): Constify a char*.
22452 (end_bb): Remove unused parameter.
22453
22454 * haifa-sched.c (fix_sched_param, safe_concat, print_exp
22455 print_block_visualization): Constify a char*.
22456
22457 Fri Aug 20 15:02:10 1999 Mark Mitchell <mark@codesourcery.com>
22458
22459 * c-common.c (c_get_alias_set): Update comment.
22460
22461 1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
22462
22463 * linux.h (LIB_SPEC): Added.
22464
22465 Fri Aug 20 22:32:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22466
22467 * config/c4x/c4x.h (STARTFILE_SPEC): Don't def.
22468
22469 1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com>
22470
22471 * tree.c (expr_check): Fix typo in last change.
22472
22473 1999-08-19 14:44 -0700 Zack Weinberg <zack@bitmover.com>
22474
22475 * rtl.def (NOTE): Change format to "iuu0n".
22476 (ADDR_DIFF_VEC): Change format to "eEee0".
22477 (ADDRESSOF): Change format to "eit".
22478
22479 * rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
22480 (RTVEC_ELT): Change to match.
22481 (XVECEXP): Use XVEC and RTVEC_ELT.
22482 (INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
22483 ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
22484 (PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
22485 CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
22486 TRAP_CONDITION, TRAP_CODE): Use XEXP.
22487 (INTVAL): Use XWINT.
22488 (ADDRESSOF_DECL): Use XTREE.
22489 (SET_ADDRESSOF_DECL): Delete.
22490 (NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
22491 NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill. These have been
22492 ifdefed out since 2.6 at least.
22493 (gen_rtvec_vv): Delete prototype.
22494
22495 * rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
22496 not rtunion.
22497 (copy_most_rtx): Handle 't' format letter.
22498 * emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
22499 (gen_rtvec_vv): Delete function. All callers changed to use
22500 gen_rtvec_v instead.
22501 * print-rtl.c (print_rtx): Move special casing of NOTEs to
22502 the '0' format letter.
22503
22504 * function.c (gen_mem_addressof): Don't use
22505 SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
22506 instead.
22507 * integrate.c (copy_rtx_and_substitute): Likewise.
22508 Copy 't' slots with XTREE.
22509 (subst_constants): Treat 't' slots like '[swi]' slots.
22510 * cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
22511 * jump.c (rtx_equal_for_thread_p): Likewise.
22512 * rtlanal.c (rtx_equal_p): Likewise.
22513 * stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
22514 only four arguments.
22515 * gengenrtl.c (type_from_format): Provide correct types for
22516 'b' and 't' slots.
22517
22518
22519 * tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
22520 If a recent gcc is in use (always in stage2 and beyond), use
22521 statement expressions, so we don't make a function call unless
22522 the check fails. Evaluate arguments exactly once.
22523 (CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
22524 TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
22525 Delete.
22526 (CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
22527 they evaluate their arguments exactly once, irrespective of
22528 the compiler in use.
22529
22530 * tree.c [ENABLE_CHECKING]: Define whichever set of functions
22531 is used by the currently-enabled check macros. This is:
22532 (tree_check_failed, tree_class_check_failed): For gcc.
22533 (tree_check, tree_class_check, cst_or_constructor_check,
22534 expr_check): For other compilers.
22535
22536 * gencheck.c: Do not define any *_CHECK1 macros.
22537
22538 Thu Aug 19 14:42:38 1999 Mike Stump <mrs@wrs.com>
22539 Mark Mitchell <mark@codesourcery.com>
22540
22541 * c-common.c (c_get_alias_set): Fix support for poitners and
22542 references.
22543
22544 Thu Aug 19 11:51:22 EDT 1999 John Wehle (john@feith.com)
22545
22546 * alias.c: Include tree.h.
22547 (nonlocal_reference_p, mark_constant_function): New functions.
22548 * flow.c (life_analysis): Call mark_constant_function.
22549 * rtl.h (mark_constant_function): Declare it.
22550
22551 Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
22552
22553 * config/rs6000/rs6000.c (rs6000_override_options): Fix test for
22554 unrecognisable switches.
22555
22556 Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22557
22558 * loop.c (recombine_givs): Set ix field after sorting.
22559 (recombine_givs): Remove bogus index / giv lockstep looping.
22560
22561 Wed Aug 18 18:20:40 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22562
22563 * expmed.c (emit_store_flag): If UNSIGNEDP, call unsigned_condition
22564 on CODE.
22565 (emit_store_flag_force): Use do_compare_rtx_and_jump.
22566 (do_cmp_and_jump): Formatting fixes.
22567 * expr.c (do_compare_and_jump): Renamed from compare; changed to call
22568 do_compare_rtx_and_jump instead of compare_from_rtx.
22569 (do_compare_rtx_and_jump): New function; mostly copied from
22570 compare_from_rtx.
22571 (do_jump_for_compare): Delete.
22572 (expand_expr): Use do_compare_rtx_and_jump when handling MAX_EXPR and
22573 MIN_EXPR.
22574 (do_jump): Use do_compare_and_jump or do_compare_rtx_and_jump instead
22575 of compare/do_jump_for_compare pairs.
22576 (do_jump_by_parts_greater): Use do_jump_by_parts_greater_rtx.
22577 (do_jump_by_parts_greater_rtx): Use do_compare_rtx_and_jump instead of
22578 compare_from_rtx/do_jump_for_compare pairs.
22579 (do_jump_by_parts_equality): Likewise.
22580 (do_jump_by_parts_equality_rtx): Likewise.
22581 * expr.h (do_compare_rtx_and_jump): Declare.
22582 * optabs.c (prepare_cmp_insn): New function, contains most of the code
22583 that used to be in emit_cmp_insn.
22584 (cmp_available_p): New function.
22585 (prepare_operand): New function.
22586 (emit_cmp_and_jump_insn_1): New function, contains some code that used
22587 to be in emit_cmp_insn.
22588 (prepare_float_lib_cmp): Renamed from emit_float_lib_cmp; change some
22589 parameters to be pointers; don't emit final compare but modify some of
22590 the values pointed to by the args so the caller can perform the
22591 correct comparison.
22592 (expand_binop): Call emit_store_flag_force with signed forms of
22593 comparison code.
22594 (expand_abs): Use do_compare_rtx_and_jump instead of compare_from_rtx/
22595 emit_jump_insn pair.
22596 (emit_cmp_and_jump_insn): Use prepare_cmp_insn and
22597 emit_cmp_and_jump_insn_1. Call emit_queue.
22598 (emit_cmp_insn): Just call emit_cmp_and_jump_insns with zero for LABEL
22599 arg.
22600 * flow.c (tidy_fallthru_edge): If HAVE_cc0, verify insn before a
22601 jump sets cc0 before deleting it.
22602 * integrate.c (expand_inline_function): Likewise.
22603 * unroll.c (unroll_loop): Similar changes in several places.
22604 (copy_loop_body): If HAVE_cc0, verify insn before a jump sets cc0
22605 before deleting it.
22606
22607 Wed Aug 18 06:37:44 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22608
22609 * Makefile.in (insn-recog.o): Update dependencies.
22610 * genrecog.c (main): Make generated file include "function.h".
22611
22612 Sat Aug 14 00:54:57 1999 Geoffrey Keating <geoffk@cygnus.com>
22613
22614 * cse.c (cse_insn): Call never_reached_warning when a jump is
22615 changed to be unconditional.
22616 * flags.h: Declare warn_notreached.
22617 * flow.c (delete_block): Call never_reached_warning when
22618 a block is deleted.
22619 * jump.c (delete_barrier_successors): Call never_reached_warning
22620 when we delete everything after a BARRIER.
22621 (never_reached_warning): New function.
22622 * rtl.h: Declare never_reached_warning.
22623 * toplev.c (warn_notreached): New variable.
22624 (lang_independent_options): Set warn_notreached
22625 when -Wunreachable-code.
22626 (compile_file): We need line numbers for -Wunreachable-code.
22627
22628 Tue Aug 17 22:06:11 1999 Jan Hubicka <hubicka@freesoft.cz>
22629
22630 * haifa-sched.c (insn_unit): Fix typo on out of range test.
22631 * sched.c (insn_unit): Likewise.
22632
22633 Tue Aug 17 21:57:23 1999 Andreas Schwab <schwab@suse.de>
22634
22635 * combine.c (distribute_notes): Handle REG_EH_RETHROW.
22636
22637 Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22638
22639 * flow.c (create_edge_list): Use xmalloc, not malloc.
22640
22641 Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
22642
22643 * fixinc/inclhack.def (no_double_slash): Do not trash single-line
22644 C-style comments. Do not lose the character before double slash.
22645
22646 Mon Aug 16 18:08:22 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22647
22648 * basic-block.h (struct edge_list): Stucture to maintain a vector
22649 of edges.
22650 (EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
22651 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
22652 (create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
22653 New function prototypes.
22654 * flow.c (create_edge_list): Function to create an edge list.
22655 (free_edge_list): Discards memory used by an edge list.
22656 (print_edge_list): Debug output showing an edge list.
22657 (verify_edge_list): Internal consistency check for an edge list.
22658 (find_edge_index): Function to find an edge index for a pred and succ.
22659
22660 Mon Aug 16 11:56:36 1999 Mark Mitchell <mark@codesourcery.com>
22661
22662 * tree.c (type_hash_add): Use permalloc to allocate nodes in the
22663 hashtable.
22664
22665 Mon Aug 16 17:04:15 1999 Jorn Rennecke <amylaar@cygnus.co.uk>
22666
22667 * mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
22668
22669 Fri Aug 13 15:20:43 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22670
22671 * config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
22672
22673 Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
22674
22675 * toplev.c (rest_of_compilation): Allow machine dependent
22676 reorganisation pass to place information into the RTL dump
22677 file if it so wishes.
22678
22679 Sun Aug 15 12:41:21 1999 Jim Wilson <wilson@cygnus.com>
22680
22681 * explow.c (hard_function_value): Use VOIDmode instead of
22682 MAX_MACHINE_MODE.
22683 * stmt.c (expand_return): Likewise.
22684 * stor-layout.c (get_best_mode): Likewise.
22685
22686 * genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
22687 emit call instead of emit_insn call.
22688
22689 Sat Aug 14 15:04:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
22690
22691 * configure.in: Handle --disable/enable-win32-registry.
22692 * install.texi: Document --disable/enable-win32-registry.
22693 * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
22694 (WIN32_REGISTRY_KEY): New macro.
22695 * prefix.c: Use to enable/disable win32-specific code.
22696 (lookup_key): Use versioned key.
22697 * configure: Regenerate.
22698 * config.in: Likewise.
22699
22700 Fri Aug 13 17:41:55 1999 Jason Merrill <jason@yorick.cygnus.com>
22701
22702 * cpplib.c (read_line_number): New fn, split out of...
22703 (do_line): Here.
22704
22705 Fri Aug 13 14:18:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
22706
22707 tree.c (lang_unsave_expr_now) : New.
22708 (unsave_expr_now): Call lang_unsave_expr_now.
22709 tree.h (lang_unsave_expr_now) : New.
22710
22711 Fri Aug 13 00:49:46 1999 Jason Merrill <jason@yorick.cygnus.com>
22712
22713 * toplev.c (flag_new_exceptions): On by default.
22714
22715 1999-08-13 Michael Meissner <meissner@cygnus.com>
22716
22717 * Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
22718
22719 Fri Aug 13 01:29:57 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
22720
22721 * dwarfout.c (fundamental_type_code): Return FT_boolean for
22722 INTEGER_TYPE with precision==1, it's __java_boolean.
22723
22724 Thu Aug 12 23:51:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22725
22726 * global.c (prune_preferences): Move some invariants out of the
22727 inner loop.
22728
22729 Thu Aug 12 15:30:29 1999 Jesse Perry (jap@unx.dec.com)
22730
22731 * configure.in (alpha*-dec-osf*): Add osf5.
22732
22733 Sun Aug 1 22:24:03 1999 Philip Blundell <philb@gnu.org>
22734
22735 * configure.in: Rework handling of ARM GNU/Linux slightly.
22736 (arm*-*-linux-gnuoldld): New target.
22737 * configure: Regenerate.
22738 * install.texi (Configurations): Add arm-*-linux-gnu{oldld} and
22739 arm-*-elf. Mention that arm-*-linux-gnuaout is obsolete.
22740 * config/arm/linux-oldld.h: New file.
22741 * config/arm/linux-elf26.h: Don't include linux-elf.h.
22742 (TARGET_DEFAULT, SUBTARGET_LINK_SPEC, SUBTARGET_EXTRA_ASM_SPEC):
22743 Don't define.
22744 * config/arm/linux-elf.h (ASM_SPEC): Define.
22745 (TARGET_DEFAULT, SUBTARGET_EXTRA_LINK_SPEC,
22746 SUBTARGET_EXTRA_ASM_SPEC, CPP_APCS_PC_DEFAULT): Add definitions
22747 for 26-bit APCS and old linker.
22748 (CPP_PREDEFINES): Define `__arm__'; don't define `arm' or
22749 `arm_elf'.
22750 (FP_DEFAULT): Define to FP_SOFT3 for all machines.
22751 * config/arm/linux-aout.h (CPP_PREDEFINES): Define `__arm__';
22752 don't define `arm' or `arm_elf'.
22753 * config/arm/t-linux (EXTRA_MULTILIB_PARTS, MULTILIB_OPTIONS,
22754 MULTILIB_DIRNAMES): Define. Fix typo in comment.
22755
22756 Thu Aug 12 10:14:47 1999 Andreas Schwab <schwab@suse.de>
22757
22758 * rtl.texi: Fix typo.
22759
22760 Wed Aug 11 23:50:57 1999 Jason Merrill <jason@yorick.cygnus.com>
22761
22762 * invoke.texi (C++ Dialect Options): Add -fms-extensions.
22763
22764 Wed Aug 11 12:59:37 1999 Mark Mitchell <mark@codesourcery.com>
22765
22766 * extend.texi (C++ Signatures): Remove node.
22767 * invoke.texi: Remove discussion of -fhandle-signatures,
22768 signature, sigof, __signature__, and __sigof__.
22769
22770 Wed Aug 11 03:38:25 1999 Jeffrey A Law (law@cygnus.com)
22771
22772 * Makefile.in (JAVAGC): Removed.
22773
22774 Wed Aug 11 02:13:26 1999 Mumit Khan <khan@xraylith.wisc.edu>
22775
22776 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
22777
22778 1999-08-11 Mark Elbrecht <snowball3@bigfoot.com>
22779
22780 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
22781
22782 1999-08-11 Richard Earnshaw (rearnsha@arm.com)
22783
22784 * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
22785 a register that is already known to be a pointer.
22786
22787 1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
22788
22789 * fixinc/inclhack.tpl: Only install assert.h conditionally.
22790 * fixinc/inclhack.sh: Regenerated.
22791 * fixinc/fixincl.sh: Regenerated.
22792
22793 Wed Aug 11 00:34:22 1999 Joe Buck <jbuck@synopsys.com>
22794
22795 * invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
22796 Fix documentation of -ansi flag to describe its C++ behavior.
22797 Remove bogus reference to GCC 2.9.
22798
22799 Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com>
22800
22801 * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
22802 note if it is non-NULL.
22803
22804 Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22805
22806 * except.h (eh_nesting_info): Add new structure defintion.
22807 (init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
22808 (reachable_handlers, update_rethrow_references): Add function
22809 prototypes.
22810 * rtl.h (struct rtvec_def): Update comments. REG_EH_RETHROW takes
22811 a rethrow symbol instead of an integer exception region number.
22812 * flow.c (Make_edges): Use new exception nesting routines to determine
22813 which handlers are reachable from a CALL or asynchronous insn.
22814 Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
22815 goto receivers.
22816 (delete_eh_regions): Update rethrow labels, and don't delete
22817 regions which are the target of a rethrow.
22818 * except.c (struct func_eh_entry): Add rethrow_ref field, now we can
22819 avoid overloading the SYMBOL_REF_USED flag.
22820 (rethrow_symbol_map): Use new rethrow_ref field.
22821 (rethrow_used): Use new rethrow_ref field.
22822 (expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
22823 of an integer. Fix formatting.
22824 (output_exception_table_entry): Use new rethrow_ref field.
22825 (can_throw): Check for EH_REGION_NOTE before deciding
22826 whether a CALL can throw or not.
22827 (scan_region): Call rethrow_used() instead of accessing data structure.
22828 (update_rethrow_references): New function to make sure only regions
22829 which are still targets of a rethrow are flagged as such.
22830 (process_nestinfo): New static function to initialize a handler
22831 list for a specific region.
22832 (init_eh_nesting_info): New function to allocate and initialize
22833 the list of all EH handlers reachable from all regions.
22834 (reachable_handlers): New function to retrieve the list of handlers
22835 reachable from a specific region and insn.
22836 (free_eh_nesting_info): New function to dispose of a list of
22837 reachable handlers.
22838
22839 Tue Aug 10 10:39:31 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22840
22841 * flow.c (split_edge): Set JUMP_LABEL field.
22842 (commit_one_edge_insertion): Set head correctly for insert_before.
22843 When inserting insns, update insn block numbers if allocated.
22844
22845 Tue Aug 10 09:26:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22846
22847 * dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
22848 retry_incomplete_types): Add static prototype.
22849 (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
22850 dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
22851 dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
22852 dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
22853 dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
22854 Constify a char*.
22855
22856 * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
22857 dwarf2out_start_source_file, dwarf2out_line): Likewise.
22858
22859 Tue Aug 10 09:21:46 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22860
22861 * output.h (assemble_name): Constify a char*.
22862
22863 * varasm.c (UNIQUE_SECTION, assemble_start_function,
22864 assemble_variable, assemble_name): Likewise.
22865
22866 * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.
22867
22868 * arm/pe.c (arm_pe_unique_section): Likewise.
22869
22870 * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.
22871
22872 * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.
22873
22874 * i386/interix.c (i386_pe_unique_section): Likewise.
22875
22876 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
22877
22878 * i386/winnt.c (i386_pe_unique_section): Likewise.
22879
22880 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
22881
22882 * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.
22883
22884 * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.
22885
22886 * pa/pa.c (output_call): Likewise.
22887
22888 * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.
22889
22890 * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
22891
22892 * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
22893 Likewise.
22894
22895 * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
22896 Likewise.
22897
22898 * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
22899
22900 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
22901 STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.
22902
22903 * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.
22904
22905 Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22906
22907 * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
22908
22909 Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22910
22911 * tree.h (lang_identify): Constify a char*.
22912 (print_error_function): Add extern prototype. Constify a char*.
22913
22914 * c-lang.c (lang_identify): Constify a char*.
22915
22916 * objc/objc-act.c (lang_identify): Constify a char*.
22917
22918 Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22919
22920 * genpeep.c (main): Make generated file include "function.h".
22921 * arm.c (function_really_clobbers_lr): Delete INLINE_HEADER case.
22922
22923 Mon Aug 9 10:08:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22924
22925 * Makefile.in: Update dependencies.
22926 * alias.c: Include "function.h"
22927 * c-decl.c: Likewise.
22928 * caller-save.c: Likewise.
22929 * calls.c: Likewise.
22930 * combine.c: Likewise.
22931 * cse.c: Likewise.
22932 * explow.c: Likewise.
22933 * final.c: Likewise.
22934 * global.c: Likewise.
22935 * graph.c: Likewise.
22936 * local-alloc.c: Likewise.
22937 * loop.c: Likewise.
22938 * optabs.c: Likewise.
22939 * profile.c: Likewise.
22940 * recog.c: Likewise.
22941 * regclass.c: Likewise.
22942 * regmove.c: Likewise.
22943 * reload.c: Likewise.
22944 * reorg.c: Likewise.
22945 * resource.c: Likewise.
22946 * sched.c: Likewise.
22947 * stupid.c: Likewise.
22948 * config/1750a/1750a.c: Likewise.
22949 * config/a29k/a29k.c: Likewise.
22950 * config/arc/arc.c: Likewise.
22951 * config/arm/arm.c: Likewise.
22952 * config/arm/thumb.c: Likewise.
22953 * config/c4x/c4x.c: Likewise.
22954 * config/clipper/clipper.c: Likewise.
22955 * config/convex/convex.c: Likewise.
22956 * config/fx80/fx80.c: Likewise.
22957 * config/i860/i860.c: Likewise.
22958 * config/m68k/m68k.c: Likewise.
22959 * config/m88k/m88k.c: Likewise.
22960 * config/mips/mips.c: Likewise.
22961 * config/pdp11/pdp11.c: Likewise.
22962 * config/pyr/pyr.c: Likewise.
22963 * config/romp/romp.c: Likewise.
22964 * config/sh/sh.c: Likewise.
22965 * config/tahoe/tahoe.c: Likewise.
22966 * config/vax/vax.c: Likewise.
22967 * config/we32k/we32k.c: Likewise.
22968 * config/sparc/sparc.c: Include "function.h".
22969 (mem_min_alignment): Test current_function rather than
22970 regno_pointer_align.
22971 * config/pa/pa.c: Likewise.
22972 (compute_frame_size): Delete declaration of
22973 current_function_outgoing_args_size.
22974 * config/arc/arc.h (current_function_varargs): Delete declaration.
22975 * config/elxsi/elxsi.h (current_function_calls_alloca): Delete
22976 declaration.
22977 * config/i370/i370.h (current_function_outgoing_args_size): Delete
22978 declaration.
22979 * config/i386/i386.h (FINALIZE_PIC): Delete declaration of
22980 current_function_uses_pic_offset_table.
22981 * config/m68k/a-ux.h (FUNCTION_EXTRA_EPILOGUE): Delete declaration
22982 of current_function_returns_pointer.
22983 * config/m68k/altos3068.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22984 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22985 * config/m68k/m68kv4.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22986 * config/m68k/mot3300.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22987 * config/m68k/pbb.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22988 * config/m68k/tower-as.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22989 * config/m88k/m88k.c: Include "function.h"
22990 (call_used_regs, current_function_pretend_args_size,
22991 current_function_outgoing_args_size, frame_pointer_needed): Delete
22992 declarations.
22993 * config/m88k/m88k.h (current_function_pretend_args_size): Delete
22994 declaration.
22995 * config/mips/mips.h (current_function_calls_alloca): Delete
22996 declaration.
22997 * config/mn10200/mn10200.h (current_function_needs_context,
22998 rtx_equal_function_value_matters): Delete declarations.
22999 * config/ns32k/ns32k (current_function_uses_pic_offset_table,
23000 flag_pic): Delete declarations.
23001 * config/pa/pa.h (current_function_pretend_args_size,
23002 current_function_decl): Delete declarations.
23003 * config/pa/som.h (current_function_varargs): Delete declaration.
23004 * config/pdp11/pdp11.h (current_function_pretend_args_size): Delete
23005 declaration.
23006 * config/pyr/pyr.h (current_function_pretend_args_size,
23007 current_function_args_size, current_function_calls_alloca): Delete
23008 declarations.
23009 * config/sh/sh.h (current_function_varargs): Delete declaration.
23010 * config/sparc/sparc.h (current_function_outgoing_args_size,
23011 current_function_calls_alloca, current_function_decl): Delete
23012 declarations.
23013 * config/spur/spur.h (current_function_pretend_args_size,
23014 current_function_calls_alloca): Delete declarations.
23015 * config/v850/v850.c (current_function_outgoing_args_size): Delete
23016 declaration.
23017 * config/vax/vms.h (current_function_name): Delete declaration.
23018 * gcse.c: Include "function.h".
23019 (current_function_name, current_function_calls_setjmp): Delete
23020 declarations.
23021 * haifa-sched.c: Include "function.h".
23022 (forced_labels): Delete declaration.
23023 * jump.c: Likewise.
23024 * reg-stack.c: Likewise.
23025 * reload1.c: Likewise.
23026 * genemit.c (main): Make generated file include function.h.
23027 * genoutput.c (output_prologue): Likewise.
23028
23029 * builtins.c (saveregs_value, apply_args_value): Delete variables.
23030 * emit-rtl.c (reg_rtx_no, first_label_num, first_insn, last_insn,
23031 sequence_rtl_expr, cur_insn_uid, last_linenum, last_filename,
23032 regno_pointer_flag, regno_pointer_flag_length, regno_pointer_align,
23033 regno_reg_rtx, sequence_stack): Delete variables. Add accessor
23034 macros for some of them.
23035 (emit_filename, emit_lineno): Delete declarations.
23036 (gen_reg_rtx): Use memset/memcpy instead of bzero/bcopy. Access
23037 regno_pointer_* variables through current_function.
23038 (gen_inline_header_rtx): Delete function.
23039 (save_emit_status): Delete function.
23040 (set_new_last_label_num): New function.
23041 (clear_emit_caches): New function.
23042 (restore_emit_status): Just clear last_labelnum and call
23043 clear_emit_caches.
23044 (get_last_insn_anywhere): Variable sequence_stack is now accessed
23045 through macro seq_stack.
23046 (add_insn_after): Likewise.
23047 (add_insn_before): Likewise.
23048 (remove_insn): Likewise.
23049 (pop_topmost_sequence): Likewise.
23050 (in_sequence_p): Likewise.
23051 (start_sequence_for_rtl_expr): Likewise.
23052 (start_sequence): Likewise, and likewise for
23053 sequence_rtl_expr/seq_rtl_expr.
23054 (push_topmost_sequence): Likewise.
23055 (end_sequence): Likewise.
23056 (init_virtual_regs): Now takes a "struct emit_status *" argument.
23057 All callers changed. Store into that pointer instead of globals.
23058 (init_emit): Allocate emit elt of current_function.
23059 Changes for sequence_rtl_expr/sequence_stack renaming.
23060 Call clear_emit_caches instead of doing it in-line.
23061 Access regno_pointer_* variables through current_function.
23062 (init_emit_once) Don't clear sequence_stack.
23063
23064 * expr.c (pending_stack_adjust, inhibit_defer_pop, pending_chain):
23065 Delete variables.
23066 (arg_pointer_save_area): Delete declaration.
23067 (finish_expr_for_function): Renamed from init_queue; no longer static.
23068 (init_expr): Don't call init_queue.
23069 (save_expr_status, restore_expr_status): Delete functions.
23070 (expand_expr): Changes to reflect new layout of struct function.
23071 Don't access current_function_check_memory_usage when current_function
23072 is 0.
23073 * expr.h (forced_labels, save_expr_regs, saveregs_value,
23074 apply_args_value, current_function_calls_alloca, inhibit_defer_pop,
23075 current_function_outgoing_args_size, current_function_arg_offset_rtx,
23076 current_function_uses_const_pool, function_call_count,
23077 current_function_uses_pic_offset_table, nonlocal_labels,
23078 current_function_internal_arg_pointer, nonlocal_goto_stack_level,
23079 current_function_check_memory_usage, nonlocal_goto_handler_slots,
23080 pending_stack_adjust, target_temp_slot_level, temp_slot_level): Delete
23081 declarations.
23082 (finish_expr_for_function): Declare.
23083 * flags.h (current_function_has_nonlocal_label,
23084 current_function_has_nonlocal_goto, current_function_is_thunk,
23085 current_function_has_computed_jump): Delete declarations.
23086 * flow.c (forced_labels): Delete declaration.
23087 * function.c (current_function_pops_args,
23088 current_function_returns_struct, current_function_returns_pcc_struct,
23089 current_function_needs_context, current_function_calls_setjmp,
23090 current_function_calls_longjmp, current_function_has_nonlocal_label,
23091 current_function_has_nonlocal_goto, current_function_is_thunk,
23092 current_function_has_computed_jump, current_function_calls_alloca,
23093 current_function_contains_functions, current_function_returns_pointer,
23094 current_function_epilogue_delay_list, current_function_args_size,
23095 current_function_pretend_args_size, current_function_arg_offset_rtx,
23096 current_function_outgoing_args_size, current_function_varargs,
23097 current_function_stdarg, current_function_args_info, cleanup_label,
23098 current_function_name, current_function_uses_const_pool,
23099 current_function_instrument_entry_exit, current_function_return_rtx,
23100 current_function_uses_pic_offset_table, nonlocal_labels,
23101 current_function_internal_arg_pointer, current_function_cannot_inline,
23102 current_function_check_memory_usage, function_call_count,
23103 nonlocal_goto_handler_slots, nonlocal_goto_handler_labels,
23104 nonlocal_goto_stack_level, return_label, save_expr_regs,
23105 stack_slot_list, rtl_expr_chain, tail_recursion_label, temp_slots,
23106 tail_recursion_reentry, arg_pointer_save_area, frame_offset,
23107 context_display, trampoline_list, parm_birth_insn, invalid_stack_slot,
23108 last_parm_insn, max_parm_reg, parm_reg_stack_loc, sequence_rtl_expr,
23109 temp_slot_level, var_temp_slot_level, target_temp_slot_level):
23110 Delete variables.
23111 (push_function_context_to): Don't save them. Don't call
23112 save_storage_status, save_emit_status or save_expr_status.
23113 (pop_function_context_from): Don't restore them. Don't call
23114 restore_storage_status or restore_expr_status.
23115 (get_func_frame_size): New function.
23116 (get_frame_size): Use it.
23117 (assign_outer_stack_local): Reflect some member name changes in struct
23118 function.
23119 (put_reg_into_stack): Likewise.
23120 (assign_stack_temp_for_type): sequence_rtl_expr was renamed to
23121 seq_rtl_expr.
23122 (fixup_var_refs): Likewise.
23123 (fix_lexical_addr): Likewise.
23124 (trampoline_address): Likewise.
23125 (prepare_function_start): Clear field inlinable of current_function.
23126 (init_function_for_compilation): New function.
23127 (expand_dummy_function_end): New function.
23128 (expand_function_end): Call finish_expr_for_function.
23129 * function.h (struct emit_status): New; fields moved here from struct
23130 function and from global variables. Add accessor macros for some of
23131 the fields.
23132 (struct expr_status): Likewise.
23133 (REGNO_POINTER_ALIGN, REGNO_POINTER_FLAG): Moved here from regs.h.
23134 (struct function): Add fields expr and emit, inlinable, inl_emit,
23135 original_arg_vector, original_decl_initial, inl_last_parm_insn,
23136 inl_max_label_num. Add many comments.
23137 Add accessor macros for all elts of struct function that no longer
23138 have a global variable.
23139 (cleanup_label, return_label, frame_offset, tail_recursion_label,
23140 tail_recursion_reentry, arg_pointer_save_area, rtl_expr_chain,
23141 stack_slot_list): Delete declarations.
23142 (get_func_frame_size): Declare.
23143 (save_expr_status, restore_expr_status, save_emit_status,
23144 save_storage_status, restore_storage_status): Delete declarations.
23145 (init_virtual_regs): Declare.
23146 * output.h (current_function_pops_args,
23147 current_function_returns_struct, current_function_returns_pcc_struct,
23148 current_function_needs_context, current_function_calls_setjmp,
23149 current_function_calls_longjmp, current_function_calls_alloca,
23150 current_function_has_nonlocal_label, current_function_varargs,
23151 current_function_has_computed_jump, current_function_returns_pointer,
23152 current_function_contains_functions, current_function_args_size,
23153 current_function_pretend_args_size, current_function_stdarg,
23154 current_function_outgoing_args_size, current_function_args_info,
23155 current_function_name, current_function_return_rtx,
23156 current_function_epilogue_delay_list,
23157 current_function_uses_const_pool, current_function_cannot_inline):
23158 Delete declarations.
23159 * regs.h (reg_rtx_no, regno_pointer_flag, regno_pointer_flag_length,
23160 regno_reg_rtx): Delete declaration.
23161 (REGNO_POINTER_FLAG): Delete macro.
23162 * stmt.c (expand_goto): Changes to reflect that some fields in struct
23163 function were renamed.
23164 * stor-layout.c (save_storage_status, restore_storage_status): Delete
23165 functions.
23166 * toplev.c: Include "function.h".
23167 (current_function_decl): Delete declaration.
23168 (compile_file): Call init_dummy_function_start and
23169 expand_dummy_function_end around some initializations that need to
23170 emit rtl.
23171 (rest_of_compilation): Use DECL_SAVED_INSNS properly.
23172 Call init_function_for_compilation.
23173 * unroll.c: Include "function.h"
23174 (unroll_loop): Access regno_pointer_* variables through
23175 current_function.
23176
23177 * tree.h (struct tree_decl): Add elt f to saved_insns member.
23178 (DECL_SAVED_INSNS): use it.
23179 (expand_dummy_function_end): Declare.
23180 (init_function_for_compilation): Declare.
23181 * calls.c (calls_function_1): Change use of DECL_SAVED_INSNS now
23182 that it's no longer an INLINE_HEADER.
23183 (expand_call): Likewise.
23184 * integrate.c (finish_inline): Delete function.
23185 (max_parm_reg, parm_reg_stack_loc): Delete declarations.
23186 (initialize_for_inline): Delete min_labelno, max_labelno and max_reg
23187 args. Don't generate an INLINE_HEADER rtx, just return the arg
23188 vector. All callers changed.
23189 (save_for_inline_copying): Create a duplicate struct emit_status to
23190 hold the emit state for compiling the current function. Use this and
23191 the other new fields in struct function that are for integration
23192 instead of an INLINE_HEADER.
23193 Use memcpy instead of bcopy.
23194 Store the current struct function in DECL_SAVED_INSNS of fndecl.
23195 (save_for_inline_nocopy): Similar changes, except no new emit_status
23196 is needed here.
23197 (expand_inline_function): Get information from function structure,
23198 not from an inline header rtx.
23199 (output_inline_function): Lose code to extract the necessary
23200 information from an inline header; simply put back the function
23201 structure into current_function. Clear its inlinable elt.
23202 * rtl.def (INLINE_HEADER): Delete.
23203 * rtl.h: Delete all accessors for an INLINE_HEADER.
23204 (gen_inline_header_rtx): Delete declaration.
23205 (regno_reg_rtx, regno_pointer_align, nonlocal_goto_handler_labels):
23206 Delete declarations.
23207 (REGNO_POINTER_ALIGN): Delete.
23208 (clear_emit_caches): Declare.
23209 (set_new_last_label_num): Declare.
23210
23211 Mon Aug 9 01:52:24 1999 Jason Merrill <jason@yorick.cygnus.com>
23212
23213 * print-tree.c (print_node): Print base for OFFSET_TYPEs.
23214
23215 * except.c (expand_eh_region_start_for_decl): Always start a new block.
23216 * stmt.c (is_eh_region): Make sure current_function is present, too.
23217
23218 Mon Aug 9 01:15:24 1999 Jeffrey A Law (law@cygnus.com)
23219
23220 * pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
23221 for 64bit PA targets.
23222
23223 * pa.h (SELECT_SECTION): Define.
23224 * som.h (SELECT_SECTION): Delete.
23225
23226 Sun Aug 8 15:13:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23227
23228 * alias.c (init_alias_analysis): Wrap call to
23229 `prologue_epilogue_contains' within HAVE_prologue||HAVE_epilogue.
23230
23231 1999-08-07 Bruce Korb <autogen@linuxbox.com>
23232
23233 * fixinc/inclhack.def(irix_asm_apostrophe): IRIX 5.2's
23234 <sys/asm.h> contains an asm comment with an apostrophe
23235 * fixinc/inclhack.sh: regen
23236 * fixinc/fixincl.x: regen
23237
23238 Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
23239
23240 * function.c (init_function_start): Clear prologue & epilogue.
23241 (prologue_epilogue_contains): New function.
23242 * alias.c (init_alias_analysis): Use it.
23243 * rtl.h (prologue_epilogue_contains): Declare it.
23244
23245 Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
23246
23247 * jump.c (onlyjump_p): New function.
23248 * rtl.h: Declare it.
23249 * flow.c (delete_unreachable_blocks): Use onlyjump_p instead
23250 of condjump_p in calling tidy_fallthru_edge and merge_blocks.
23251
23252 Sat Aug 7 17:09:36 1999 Richard Henderson <rth@cygnus.com>
23253
23254 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_REG_SET
23255 to invert loops. Simplify block scanning.
23256
23257 Sat Aug 7 02:11:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23258
23259 * gcse.c (hash_scan_set): Treat SYMBOL_REFs like CONST_INTs.
23260 (cprop_insn): Treat SYMBOL_REFs like CONST_INTs.
23261
23262 1999-08-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
23263
23264 * config/sparc/liteelf.h: New file to support sparclite-elf target
23265 * config/sparc/t-sp86x: New file to support sparc86x targets
23266 * config/sparc/sp86x-aout.h: New file to support sparc86x-aout target
23267 * config/sparc/sp86x-elf.h: New file to support sparc86x-elf target
23268 * configure.in: Support above target triplets
23269 * configure: Regenerated
23270
23271 Sat Aug 7 01:39:27 1999 Philippe De Muyter <phdm@macqel.be>
23272
23273 * fixinc/server.c (server_setup): Do not prefix function used as
23274 parameter with `&'.
23275
23276 Sat Aug 7 00:21:20 1999 Richard Henderson <rth@cygnus.com>
23277
23278 * alpha.md (movhi and movqi patterns): Correct predicate for !BWX.
23279 Remove fp reg alternatives.
23280
23281 Sat Aug 7 00:06:54 1999 Jeffrey A Law (law@cygnus.com)
23282
23283 * Makefiin (TAROUTOPTS): Kill.
23284 (install-headers-tar): Use "xpf" for tar headerfile extraction
23285 * i370/x-oe (TAROUTOPTS): Delete.
23286 * m68k/x-apollo68 (TAROUTOPTS): Delete.
23287 * m68k/x-hp320 (TAROUTOPTS): Delete.
23288 * m68k/x-hp320g (TAROUTOPTS): Delete.
23289 * gcc.texi: Update bug reporting text.
23290
23291 1999-08-6 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23292
23293 * reg-stack.c (change_stack) Fixed problem with negative array index.
23294
23295 Fri Aug 6 23:08:44 1999 Jeffrey A Law (law@cygnus.com)
23296
23297 * extend.texi, install.texi: Fix spelling mistakes.
23298
23299 * Makefile.in (PREMADE_ATTRTAB_MD, PREMADE_ATTRTAB): Delete.
23300 (s-attrtab); No longer try to use pre-made insn-attrtab file.
23301 * mips/t-bsd: Delete references to obsolete PREMADE_ATTRTAB and
23302 PREMADE_ATTRTAB_MD.
23303 * mips/t-ecoff: Likewise.
23304 * mips/t-elf: Likewise.
23305 * mips/t-mips: Likewise.
23306 * mips/t-osfrose: Likewise.
23307 * mips/t-r3900: Likewise.
23308 * mips/t-svr3: Likewise.
23309 * mips/t-svr4: Likewise.
23310 * mips/t-ultrix: Likewise.
23311
23312 * gcc.texi: Document recommend means to provide software floating
23313 point libraries in libgcc.a
23314
23315 1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
23316
23317 * c-lex.c (yylex): We can have a number with no digits.
23318
23319 Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
23320
23321 * jump.c (delete_prior_computation): New function, broken
23322 out of delete_computation. Check for side effects with
23323 side_effects_p instead of FIND_REG_INC_NOTE. Handle
23324 multi-word hard registers.
23325 (delete_computation): Use it. Check for side effects with
23326 side_effects_p instead of FIND_REG_INC_NOTE. Synthesize a
23327 missing REG_DEAD note for a register which is both set and
23328 used by an insn.
23329
23330 Fri Aug 6 11:05:29 1999 Jeffrey A Law (law@cygnus.com)
23331
23332 * elf.h (TEXT_SPACE_P, FUNCTION_NAME_P): Delete.
23333 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT): Likewise.
23334 (ASM_FILE_START): Import _mcount with the right type.
23335 (ASM_DECLARE_FUNCTION_NAME): Define.
23336 (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
23337 * pa.c (output_function_prologue): Always emit the function's label
23338 here.
23339 * pa.h (TEXT_SPACE_P): Define.
23340 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
23341 (ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_GLOBALIZE_LABEL): Likewise.
23342 * som.h (TEXT_SPACE_P): Delete.
23343 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
23344 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT): Likewise.
23345
23346 Thu Aug 5 19:29:39 1999 Jim Wilson <wilson@cygnus.com>
23347
23348 * expr.c (emit_group_load): Allow src to be a CONCAT.
23349
23350 Thu Aug 5 22:27:15 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23351
23352 * config/sh/lib1funcs.asm (___movstrSI0): Change or r0,r0,r0 to nop.
23353 (___mulsi3): Use '!' comment character.
23354
23355 Thu Aug 5 13:34:14 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23356
23357 * reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
23358
23359 Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com)
23360
23361 * gcc.c: Update URLs and mail addresses.
23362 * gcc.texi: Likewise.
23363
23364 Thu Aug 5 01:14:13 1999 Daniel Jacobowitz <drow@false.org>
23365
23366 * rs6000.c (current_file_function_operand): Return zero for
23367 weak functions.
23368 (rs6000_encode_section_info): Do not set SYMBOL_REF_FLAG for
23369 weak symbols.
23370 * rs6000.h (ENCODE_SECTION_NIFO): Do not set SYMBOL_REF_FLAG
23371 for weak symbols.
23372
23373 Thu Aug 5 00:56:30 1999 Geoffrey Keating <geoffk@cygnus.com>
23374
23375 * rs6000.c (rs6000_stack_info): For ABI_V4/ABI_SOLARIS -fpic, always
23376 allocate space in the stack frame for the PIC register.
23377
23378 Thu Aug 5 00:20:47 1999 Jeffrey A Law (law@cygnus.com)
23379
23380 * m68k.md (xordi3, anddi3): These patterns are not available on
23381 the coldfire.
23382
23383 Wed Aug 4 23:39:20 1999 Mark Mitchell <mark@codesourcery.com>
23384
23385 * real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.
23386 (PUT_REAL): Likewise.
23387
23388 Wed Aug 4 20:45:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23389
23390 * final.c (shorten_branches): Don't add an alignment for loops
23391 that have no label inside.
23392
23393 Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23394
23395 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap
23396 prototypes in macro HAVE_cmpstrsi.
23397
23398 * cpplib.c (cpp_get_token): Remove unused label `op3'.
23399
23400 * emit-rtl.c (operand_subword): Remove unused variable
23401 `bits_per_word'.
23402
23403 * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'.
23404
23405 * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING.
23406
23407 Wed Aug 4 13:29:23 1999 Zack Weinberg <zack@bitmover.com>
23408
23409 * cpphash.c (macroexpand): Delete leading whitespace when arg
23410 is concatenated before.
23411 (unsafe_chars): Correct test for whether + and - can extend a
23412 token.
23413
23414 * cppinit.c (cpp_start_read): Do dependencies for
23415 -include/-imacros files also.
23416
23417 * cpplib.c (cpp_scan_buffer): In no-output mode, don't bother
23418 tokenizing non-directive lines.
23419 (cpp_expand_to_buffer): Temporarily disable no-output mode.
23420 * cppmain.c: In no-output mode, just call cpp_scan_buffer for
23421 the input file.
23422
23423 Wed Aug 4 12:53:44 1999 Jason Merrill <jason@yorick.cygnus.com>
23424
23425 * expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
23426
23427 * c-lex.c: Sync with C++ frontend.
23428 (linemode): New variable.
23429 (parse_float): imag, conversion_errno, and type are output only.
23430 (yylex): Adjust. Move initial '.' case into main switch.
23431 Use linemode.
23432 (handle_generic_pragma): Just deal with tokens.
23433 (readescape): Use ISXDIGIT and ISGRAPH.
23434 * c-parse.in: Add END_OF_LINE token.
23435
23436 * c-lex.c (lang_init): Generalize.
23437 (nextchar): Remove. Replace uses with UNGETC.
23438 (skip_white_space): Handle linemode here. Optimize for cpplib.
23439 (skip_white_space_on_line): Remove.
23440 (extend_token_buffer_to): New fn.
23441 (extend_token_buffer): Use it.
23442 (read_line_number, check_newline): Just deal with tokens.
23443 (token_getch, token_put_back): New fns.
23444 (yylex): Use them. More cpplib optimizations. Simplify.
23445
23446 Wed Aug 4 12:53:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
23447 Jason Merrill <jason@yorick.cygnus.com>
23448
23449 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
23450 (consume_string): Make this smart about USE_CPPLIB.
23451 (check_newline): Rewrite to be intelligent about USE_CPPLIB.
23452 (yylex): Rewrite to be intelligent about USE_CPPLIB.
23453 Also, clean up cases where we redundantly set token_buffer[0].
23454 (read_line_number): New fn.
23455 (ignore_escape_flag): New variable.
23456
23457 Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
23458
23459 * a29k/t-a29kbare: Fix some comments.
23460 (LIB2FUNCS_EXTRA): Remove fp-bit.c and dp-bit.c
23461 (FPBIT, DPBIT): Define.
23462 * a29k/t-vx29k: Likewise.
23463 * arc/t-arc: Likewise.
23464 * arm/t-arm-elf: Likewise.
23465 * arm/t-bare: Likewise.
23466 * arm/t-pe: Likewise.
23467 * arm/t-pe-thumb: Likewise.
23468 * arm/t-semi: Likewise.
23469 * arm/t-thumb: Likewise.
23470 * arm/t-thumb-elf: Likewise.
23471 * arm/t-thumb-linux: Likewise.
23472 * h8300/t-h8300: Likewise.
23473 * i960/t-i960: Likewise.
23474 * i960/t-vxworks960: Likewise.
23475 * m32r/t-m32r: Likewise.
23476 * mips/t-ecoff: Likewise.
23477 * mips/t-elf: Likewise.
23478 * mips/t-r3900: Likewise.
23479 * pa/t-pro: Likewise.
23480 * rs6000/t-aix43: Likewise.
23481 * rs6000/t-beos: Likewise.
23482 * rs6000/t-newas: Likewise.
23483 * rs6000/t-ppccomm: Likewise.
23484 * rs6000/t-rs6000: Likewise.
23485 * rs6000/t-winnt: Likewise.
23486 * rs6000/t-xnewas: Likewise.
23487 * rs6000/t-xrs6000: Likewise.
23488 * sh/t-sh: Likewise.
23489 * sparc/t-elf: Likewise.
23490 * sparc/t-sparcbare: Likewise.
23491 * sparc/t-sparclite: Likewise.
23492 * sparc/t-splet: Likewise.
23493 * v850/t-v850: Likewise.
23494 * mn10200/t-mn10200: Fix comments.
23495 * mn10300/t-mn10300: Likewise.
23496
23497 * pa.md (divsi3, udivsi3, modsi3, umodsi3 expanders): Clobber a new
23498 dummy operand. Allocate a new pseudo for the dummy operand.
23499 (divsi3, udivsi3, modis3, umodsi3 patterns): Corresponding changes.
23500
23501 * pa.md (movqi, movhi patterns): Do not expose FP regs to regclass.
23502
23503 Wed Aug 4 11:53:55 1999 Tom Tromey <tromey@cygnus.com>
23504
23505 * configure: Rebuilt.
23506 * configure.in: Removed --enable-java-gc option and JAVAGC subst.
23507
23508 Wed Aug 4 09:06:14 1999 Richard Earnshaw (rearnsha@arm.com)
23509
23510 * recog.c (preproces_constraints): Zero recog_op_alt before
23511 processing the constraints.
23512
23513 * arm.c (typedef minipool_node): Renamed from pool_node.
23514 (minipool_vector, minipool_size, minipool_vector_label): Similarly.
23515 (add_minipool_constant): New function.
23516 (dump_minipool): New function.
23517 (find_barrier): Remove special case for getting the insn size of
23518 an insn that references the constant pool.
23519 (minipool_fixup): New structure.
23520 (push_minipool_barrier): New function.
23521 (push_minipool_fix): New function.
23522 (note_invalid_constants): New function.
23523 (add_pool_constant, dump_table, fixit, broken_move): Delete.
23524 (arm_reorg): Rewrite code to fix up the constant pool into a
23525 series of mini-pools embedded in the insn stream.
23526 (arm_output_epilogue): New function, made mainly from the body
23527 of output_func_epilogue.
23528 (output_func_epilogue): Move insn generation part of epilogue code
23529 to arm_output_epilogue.
23530 * arm.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Delete.
23531 * arm.md (pool_range): New attribute.
23532 (zero_extendqidi2): Add attribute pool_range.
23533 (zero_extend_hisi_insn, load_extendqisi, extendhisi_insn,
23534 extendqihi_insn, extendqisi_insn, movdi, movsi_insn, pic_load_addr,
23535 pic_load_addr_based_insn, movhi_insn_arch4, movhi_insn_littleend,
23536 movhi_insn_bigend, loadhi_si_bigend, movsf_hard_insn, movsf_soft_insn,
23537 movdf_hard_insn, movdf_soft_insn, movxf_hard_insn): Likewise.
23538 (epilogue): New expand.
23539 (epilogue_insn): New insn. Call arm_output_epilogue.
23540
23541 * arm.c (arm_poke_function_name): Undo change of July 17. Tidy up.
23542 * arm.h (TARGET_SWITCHES): Add missing doc string for TARGET_DEFAULT.
23543
23544 Mon Aug 2 19:18:44 1999 Jason Merrill <jason@yorick.cygnus.com>
23545
23546 * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
23547
23548 1999-08-04 Mark Elbrecht <snowball3@bigfoot.com>
23549
23550 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
23551
23552 Wed Aug 4 02:15:32 1999 Richard Henderson <rth@cygnus.com>
23553
23554 * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
23555
23556 Wed Aug 4 01:48:08 1999 Jim Kingdon <http://developer.redhat.com>
23557
23558 * global.c: Fix comment.
23559
23560 Wed Aug 4 01:43:01 1999 Ian Lance Taylor <ian@zembu.com>
23561
23562 * gcc.c (access_check): New static function.
23563 (find_a_file): Use it when searching a directory list.
23564 * collect2.c (find_a_file): Don't accept directories found when
23565 searching a directory list.
23566
23567 Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
23568
23569 * tlink.c (symbol_hash_lookup): Do not prefix functions used as
23570 function parameters with `&'.
23571 (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
23572
23573 Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
23574
23575 * flow.c (delete_unreachable_blocks): Do not call merge_blocks
23576 or tidy_fallthru_edge if the last insn in the block is not
23577 an unconditional jump or a simple conditional jump.
23578
23579 Tue Aug 3 20:21:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23580
23581 * Makefile.in (c-decl.o): Depends on defaults.h.
23582
23583 Tue Aug 3 14:14:52 1999 Jeffrey A Law (law@cygnus.com)
23584
23585 * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
23586 PA1.1 and above.
23587 (CLASS_MAX_NREGS): Likewise.
23588
23589 Tue Aug 3 03:51:20 1999 Jeffrey A Law (law@cygnus.com)
23590
23591 * cse.c (cse_insn): Fix dumb thinko in last change.
23592
23593 Tue Aug 3 10:36:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23594
23595 * reload1.c (maybe_fix_stack_asms): Declare CONSTRAINTS as
23596 "const char *".
23597
23598 Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson <hp@bitrange.com>
23599
23600 * dwarf2out.c (add_location_or_const_value_attribute): Correct
23601 test for sizes of passed and declared parameter types.
23602
23603 Tue Aug 3 00:03:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23604
23605 * fixincludes: Fix the return type of bsearch, char* -> void*.
23606
23607 * fixinc/inclhack.def: Likewise.
23608
23609 Mon Aug 2 18:29:32 1999 Mark Mitchell <mark@codesourcery.com>
23610
23611 * invoke.texi (-fdump-translation-unit): New option.
23612
23613 Mon Aug 2 17:54:19 1999 Richard Henderson <rth@cygnus.com>
23614
23615 * expr.h (PROMOTE_PROTOTYPES): Move ...
23616 * defaults.h: ... to here.
23617 * c-decl.c: Include defaults.h instead of expr.h.
23618 * c-typeck.c: Include defaults.h.
23619
23620 Mon Aug 2 17:10:24 1999 Mark Mitchell <mark@codesourcery.com>
23621
23622 * toplev.h (errorcount): Declare.
23623 (warningcount): Likewise.
23624 (sorrycount): Likewise.
23625 * c-lex.c (errorcount): Don't declare.
23626 * dwarf2out.c (errorcount): Don't declare.
23627
23628 Mon Aug 2 17:02:08 1999 Jason Merrill <jason@yorick.cygnus.com>
23629
23630 * config/libgloss.h: Add a note discouraging use with ELF.
23631 * configure.in: Don't use libgloss.h for ELF targets.
23632 Always use_collect2 on a.out targets.
23633
23634 Mon Aug 2 16:27:42 1999 Jim Wilson <wilson@cygnus.com>
23635
23636 * combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
23637 (force_to_mode, case ASHIFTRT): Add shiftrt label.
23638
23639 Tue Aug 3 00:45:02 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23640
23641 * loop.c (strength_reduce): When doing biv->giv conversion, update
23642 reg note of NEXT->insn.
23643
23644 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23645
23646 * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.
23647
23648 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23649
23650 * c-decl.c (get_parm_info, store_parm_decls): Change all uses of
23651 PROMOTE_PROTOTYPES, so that it tests it as a C expression.
23652 Ensure expr.h is included.
23653 * c-typecheck.c (convert_arguments): Ditto.
23654
23655 * expr.h: Supply default for PROMOTE_PROTOTYPES (0).
23656
23657 * config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
23658 * config/convex/convex.h: Ditto.
23659 * config/dsp16xx/dsp16xx.h: Ditto.
23660 * config/fx80/fx80.h: Ditto.
23661 * config/gmicro/gmicro.h: Ditto.
23662 * config/i370/i370.h: Ditto.
23663 * config/i386/i386.h: Ditto.
23664 * config/m32r/m32r.h: Ditto.
23665 * config/m68k/m68k.h: Ditto.
23666 * config/m88k/m88k.h: Ditto.
23667 * config/mips/mips.h: Ditto.
23668 * config/pa/pa.h: Ditto.
23669 * config/pyr/pyr.h: Ditto.
23670 * config/tahoe/tahoe.h: Ditto.
23671 * config/we32k/we32k.h: Ditto.
23672
23673 * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
23674 based on arch size.
23675
23676 * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.
23677
23678 * config/i860/paragon.h: Remove PROMOTE_PROTOTYPES
23679 from comment.
23680
23681 * tm.texi: Document new usage of PROMOTE_PROTOTYPES.
23682
23683 1999-08-02 Richard Henderson <rth@cygnus.com>
23684
23685 * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
23686 for the register spill block.
23687 (m32r_va_arg): New.
23688 * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
23689 (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.
23690
23691 * m32r.h (INT8_P): Don't short-cut test with (unsigned).
23692 (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
23693 (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.
23694
23695 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23696
23697 * config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
23698 MAX_WCHAR_TYPE defined in sparc.h.
23699 * config/sparc/linuxaout.h: Likewise.
23700 * config/sparc/linux64.h: Likewise.
23701 Also default to -mvis if CPU is UltraSPARC.
23702
23703 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23704
23705 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
23706 (RTX_OK_FOR_OLO10): Likewise.
23707 (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
23708 %lo(), allow it in addresses...
23709 (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
23710 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
23711 does not make sense.
23712 * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
23713 (sparc_output_scratch_registers): New function.
23714 (output_function_prologue, sparc_flat_output_function_prologue): Use
23715 it.
23716 * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
23717 defined.
23718 * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
23719 * configure.in: Add check for .register pseudo-op support in as and
23720 check for offsetable %lo().
23721 * acconfig.h: Add templates for the above checks.
23722 * configure: Regenerate.
23723
23724 1999-08-02 Richard Henderson <rth@cygnus.com>
23725
23726 * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
23727 * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
23728 * sparc/sol2.h (TARGET_DEFAULT): Likewise.
23729
23730 Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23731
23732 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
23733 reg_biv_class.
23734
23735 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23736
23737 * config/float-sparc.h: New file.
23738 * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
23739 sparc-*-linux-gnu and sparc64-*-linux*.
23740
23741 1999-08-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23742
23743 * rs6000.c (rs6000_va_list): Type is an array.
23744 (rs6000_va_start): Don't doubly adjust for varargs.
23745 (rs6000_va_arg): Evaluate long long GPR adjustment.
23746
23747 Mon Aug 2 16:15:57 1999 David Edelsohn <edelsohn@gnu.org>
23748
23749 * rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
23750 -maix64 and -maix32.
23751 (ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
23752 LINK_SPEC): Change appropriately.
23753 * rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
23754 (u_short_cint_operand): Likewise.
23755 * rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
23756 for 64-bit hosts.
23757 * rs6000/t-aix43 (MULTILIB): Change to -m64.
23758
23759 * invoke.texi (RS/6000 Submodel): Document 64-bit processor options.
23760
23761 Mon Aug 2 16:15:57 1999 Geoff Keating <geoffk@cygnus.com>
23762
23763 * rs6000/rs6000.c (num_insns_constant_wide): Correct
23764 for type promotion.
23765 (add_operand): Get test correct for 64-bit HOST_WIDE_INT.
23766 (non_add_cint_operand): Likewise.
23767 (logical_operand): Likewise.
23768 (non_logical_cint_operand): Likewise.
23769 (print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
23770 (print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
23771 (rs6000_select_rtx_section): Suppress warning.
23772 (small_data_operand): Suppress warning.
23773 (rs6000_got_register): Suppress warning.
23774 * rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
23775 type, so `J' is generally the wrong constraint for a SImode value;
23776 use `L' instead.
23777 (andsi3_internal2): Likewise.
23778 (andsi3_internal3): Likewise.
23779 (iorsi3_internal1): Likewise.
23780 (xorsi3_internal1): Likewise.
23781 (movsi): Likewise.
23782 (movsf_softfloat): Likewise.
23783 (scc insns): Likewise.
23784 (movsi+2): Preserve sign bits of SImode constant.
23785 (floatsidf2_internal+1): Sign-extend SImode constant correctly.
23786 (movdf+1): Sign-extend properly.
23787 (movdi_32+1): Sign-extend properly.
23788 (scc insns): Sign-extend properly.
23789
23790 * md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
23791 K, L, and T.
23792
23793 1999-08-02 Richard Henderson <rth@cygnus.com>
23794
23795 * alpha.c (override_options): Move ev6 alpha_tp frobbing out of
23796 -mcpu parsing code.
23797 (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
23798 * alpha.md (all fp insns): Likewise.
23799
23800 1999-08-02 Nick Clifton <nickc@cygnus.com>
23801
23802 * config/v850/v850.h (STRICT_ALIGNMENT): Only define if not
23803 already defined.
23804
23805 Mon Aug 2 03:38:33 1999 Jeffrey A Law (law@cygnus.com)
23806
23807 * pa.c (legitimize_pic_address): Clarify comments. Do not call the
23808 pic_load_label generator directly.
23809 * pa.md (pic_load_label): Clarify comments. Remove modes on operands.
23810 No longer a named pattern.
23811
23812 Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
23813
23814 * explow.c (force_reg): Call force_operand if X does not
23815 satisfy general_operand.
23816
23817 Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
23818
23819 * fix-header.c (main): When testing for CONTINUED, use string
23820 equality, not pointer equality.
23821
23822 Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
23823
23824 * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
23825
23826 Sun Aug 1 22:46:42 1999 Jeffrey A Law (law@cygnus.com)
23827
23828 * cse.c (cse_insn): Fix loop which deletes insns after a jump
23829 that has become an unconditional jump.
23830
23831 * m68k.c (output_function_prologue): Fix typo in CPU32 case.
23832 (output_function_epilogue): Similarly.
23833
23834 Sun Aug 1 20:14:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23835
23836 * tree.h (init_dummy_function_start): Declare.
23837
23838 Sun Aug 1 12:55:31 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23839
23840 * stmt.c (emit_filename, emit_lineno, expr_stmts_for_value,
23841 last_expr_type, last_expr_value, block_start_count, block_stack,
23842 stack_block_stack, cond_stack, loop_stack, case_stack, nesting_stack,
23843 nesting_depth, goto_fixup_chain): Delete global vars; now allocated
23844 dynamically in stmt elt of struct function for each function.
23845 (struct nesting): Rename function_call_count elt to n_function_calls,
23846 target_temp_slot_level to block_target_temp_slot_level. All users
23847 changed.
23848 (struct stmt_status): New structure definition.
23849 Add many accessor macros for stmt_status elements which previously
23850 were global variables.
23851 (init_stmt_for_function): Allocate stmt elt for current_function.
23852 Reflect that block_start_count was renamed to
23853 current_block_start_count.
23854 (save_stmt_status, restore_stmt_status): Delete functions.
23855 (preserve_subexpressions_p): Don't access loop_stack when outside
23856 a function.
23857 (expand_start_bindings): Reflect that block_start_count was renamed to
23858 current_block_start_count.
23859 (expand_fixup): Likewise.
23860 (expand_decl): Don't access block_stack when outside a function.
23861 (expand_decl_cleanup): Likewise.
23862 (expand_dcc_cleanup): Likewise.
23863 (expand_dhc_cleanup): Likewise.
23864 (expand_anon_union_decl): Likewise.
23865 (set_file_and_line_for_stmt): New function.
23866 (in_control_zone_p): New function.
23867
23868 * function.h (struct function): Add new elt stmt.
23869 Delete elts block_stack, stack_block_stack, cond_stack, loop_stack,
23870 case_stack, nesting_stack, nesting_depth, block_start_count,
23871 last_expr_type, last_expr_value, expr_stmts_for_value, emit_filename,
23872 emit_lineno, goto_fixup_chain.
23873 (save_eh_status, restore_eh_status, save_stmt_status,
23874 restore_stmt_status): Delete declarations.
23875 * function.c (push_function_context_to): Don't call save_stmt_status.
23876 (pop_function_context_to): Don't call restore_stmt_status.
23877 * tree.h (in_control_zone_p): Declare.
23878 * rtl.h (set_file_and_line_for_stmt): Declare.
23879
23880 * emit-rtl.c (emit_line_note): Don't set emit_filename/emit_lineno;
23881 call set_file_and_line_for_stmt.
23882
23883 Thu Jul 31 12:34:45 1999 Joe Buck <jbuck@synopsys.com>
23884
23885 * gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
23886 Also update copyright.
23887
23888 Sat Jul 31 11:10:07 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23889
23890 * c-pragma.c: Don't include "except.h".
23891 * emit-rtl.c: Likewise.
23892 * stor-layout.c: Likewise.
23893 * tree.c: Likewise.
23894 * varasm.c: Likewise.
23895
23896 * flow.c: Include "function.h".
23897 * tree.h (init_dummy_function_start): Declare new function.
23898
23899 * except.h (struct eh_status): New structure.
23900 (struct label_node, struct eh_entry): Declare even if tree.h hasn't
23901 been included.
23902 (eh_return_stub_label, ehstack, catchstack, ehqueue,
23903 catch_clauses, false_label_stack, caught_return_label_stack,
23904 protect_list, current_function_ehc): Add accessor macros for the
23905 corresponding fields in current_function->eh; delete declarations
23906 for all items that used to be declared here.
23907 * except.c (eh_return_stub_label, ehstack, catchstack, ehqueue,
23908 catch_clauses, false_label_stack, caught_return_label_stack,
23909 protect_list, current_function_ehc): Delete variables.
23910 (init_eh_for_function): Allocate current_function->eh.
23911 (save_eh_status, restore_eh_status): Delete functions.
23912
23913 * function.h (struct function): Add fields next_global and eh.
23914 Delete all exception handling related fields.
23915 * function.c (current_function): New variable.
23916 (all_functions): New variable.
23917 (push_function_context_to): Don't allocate a struct function,
23918 use current_function instead. Call init_dummy_function_start when
23919 outside a function. Clear current_function before returning.
23920 (pop_function_context_from): Restore current_function.
23921 Don't free the restored struct function.
23922 (prepare_function_start): New function.
23923 (init_dummy_function_start): New function.
23924 (init_function_start): Break out some code into prepare_function_start
23925 and call it here.
23926
23927 * stmt.c (save_stmt_status): Don't call save_eh_status.
23928 (restore_stmt_status): Don't call restore_eh_status.
23929
23930 * Makefile.in: Update dependencies.
23931
23932 Sat Jul 31 04:10:01 1999 Jeffrey A Law (law@cygnus.com)
23933
23934 * pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
23935 of depending on a magic constant value. Update comments.
23936 (hppa_expand_prologue): Similarly.
23937
23938 * pa.md (reload_indi, reload_outdi): Allow any register for the
23939 original reload register.
23940
23941 Fri Jul 30 19:41:35 1999 Jim Wilson <wilson@cygnus.com>
23942
23943 * cccp.c (print_help): Change marcos to macros.
23944
23945 1999-07-30 Richard Henderson <rth@cygnus.com>
23946
23947 * c-typeck.c (initializer_constant_valid_p): Move ...
23948 * c-common.c (initializer_constant_valid_p): ... here. Use
23949 FOO_TYPE_P instead of tests against TREE_CODE. Allow subtraction
23950 of label addresses.
23951 * c-common.h (initializer_constant_valid_p): Declare.
23952 * c-tree.h (initializer_constant_valid_p): Remove.
23953
23954 Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
23955
23956 * config/i386/sol2-c1.asm: Align the stack.
23957 * config/i386/sol2-gc1.asm: Likewise.
23958
23959 1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
23960
23961 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
23962 -Asparclite for sparc86x.
23963 (CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
23964 sparc86x.
23965 (ASM_CPU_SPEC): Use -Asparclite for sparc86x.
23966
23967 Fri Jul 30 14:53:56 1999 Jakub Jelinek <jj@ultra.linux.cz>
23968
23969 * config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
23970 the user if using the non-default arch size in BI_ARCH configuration.
23971 * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.
23972
23973 * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
23974 Fix patterns so that they actually match.
23975 (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
23976 (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
23977 (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
23978 TARGET_HARD_MUL32.
23979 (mulsidi3): Reflect this in the expand.
23980 (smulsi3_highpart): Only on TARGET_ARCH32.
23981 (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
23982 (const_umulsidi3_sp32): Renamed from const_umulsidi3.
23983 (umulsidi3): Reflect this in the expand.
23984 (umulsi3_highpart): Only on TARGET_ARCH32.
23985 (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
23986 don't require g0 to be zero.
23987 (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
23988 ({,u}divsi3): New expands.
23989 ({,u}divsi3_sp64): New patterns.
23990 (after lshrdi3_v8plus): Four new patterns to help combiner
23991 optimizing nested mixed mode shifts.
23992
23993 * config/sparc/sparc.c (sparc_override_options): Use deprecated
23994 v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
23995 speed things up. Don't use them by default on plain v9 in 64bit
23996 mode, according to what SPAMv9 sais.
23997
23998 * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
23999 top 32 bits of %[og][0-7] in signal handlers.
24000 Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.
24001
24002 Fri Jul 30 03:00:41 1999 Jeffrey A Law (law@cygnus.com)
24003
24004 * pa.md (zvdep_imm32): Renamed from zvdep_imm.
24005 (ashlsi3): Corresponding changes.
24006
24007 * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
24008
24009 Thu Jul 29 18:37:13 1999 Jeffrey A Law (law@cygnus.com)
24010
24011 * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
24012
24013 Thu Jul 29 19:01:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24014
24015 * arm.h (Hint): Delete macro.
24016 Substitute HOST_WIDE_INT for Hint in some prototypes.
24017 * arm.c: Substitute HOST_WIDE_INT for Hint in one prototype.
24018
24019 Thu Jul 29 09:21:42 1999 Nick Clifton <nickc@cygnus.com>
24020
24021 * builtins.c (expand_builtin_setjmp): Use force_operand to
24022 make sure that the buffer address is in a suitable form to be
24023 passed to force_reg.
24024
24025 Wed Jul 28 12:50:48 1999 Geoff Keating <geoffk@cygnus.com>
24026
24027 * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
24028 them here.
24029
24030 Wed Jul 28 13:18:35 1999 Jeffrey A Law (law@cygnus.com)
24031
24032 * pa.md (indirect_jump): Remove mode from match_operand. Verify
24033 proper mode in the condition string.
24034 (icacheflush, dcacheflush): Remove modes from match_operands.
24035
24036 * pa.c (emit_move_sequence): Always convert scratch_reg to the
24037 proper mode before using it.
24038
24039 * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
24040 pair.
24041
24042 * pa.c (store_reg): Do not call add_high_const generator directly.
24043 (load_reg, set_reg_plus_d): Likewise.
24044 * pa.md (add_high_const): No longer a named pattern.
24045
24046 * pa.c (legitimize_address): Consistently use Pmode rather than
24047 SImode. Do not call gen_pic2_highpart directly anymore.
24048 * pa.md (pic2_highpart): No longer a named pattern.
24049 (pic2_lo_sum): Similarly. Reformat to make more readable.
24050
24051 * pa.md (call, call_value): Use "word_mode" instead of "SImode" as
24052 needed.
24053
24054 * README: Update.
24055
24056 Wed Jul 28 11:28:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24057
24058 * builtins.c (expand_builtin): Typo in call to expand_builtin_ffs.
24059
24060 Wed Jul 28 11:23:48 1999 Richard Henderson <rth@cygnus.com>
24061
24062 * pa.c (hppa_builtin_saveregs): Use get_varargs_alias_set
24063 and tag the spill mems.
24064 (hppa_va_start): New.
24065 (hppa_va_arg): New.
24066 * pa.h (EXPAND_BUILTIN_VA_START): New.
24067 (EXPAND_BUILTIN_VA_ARG): New.
24068
24069 Wed Jul 28 11:22:21 1999 Richard Henderson <rth@cygnus.com>
24070
24071 * mn10300.c (mn10300_builtin_saveregs): Use get_varargs_alias_set
24072 and tag the spill mems.
24073 (mn10300_va_start): New.
24074 (mn10300_va_arg): New.
24075 * mn10300.h (EXPAND_BUILTIN_VA_START): New.
24076 (EXPAND_BUILTIN_VA_ARG): New.
24077
24078 Wed Jul 28 11:20:19 1999 Richard Henderson <rth@cygnus.com>
24079
24080 * mn10200.c (mn10200_va_arg): New.
24081 * mn10200.h (EXPAND_BUILTIN_VA_ARG): New.
24082
24083 Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
24084
24085 * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
24086 rather than play with TREE_INT_CST_LOW.
24087
24088 1999-07-27 Philip Blundell <pb@nexus.co.uk>
24089
24090 * config/arm/telf.h: Include dbxelf.h.
24091 (CPP_PREDEFINES): Only define if not already defined.
24092 (ASM_IDENTIFY_GCC): Likewise.
24093 (SUBTARGET_EXTRA_SECTIONS): Likewise.
24094 (SUBTARGET_EXTRA_SECTION_FUNCTIONS): Likewise.
24095 * config/arm/thumb.h (LINK_SPEC): Only define if not already
24096 defined.
24097 (DBX_DEBUGGING_INFO): Don't define.
24098 * config/arm/linux-telf.h: New file.
24099 * config/arm/linux-tgas.h: New file.
24100 * config/arm/t-thumb-linux: New file.
24101 * config/arm/uclinux-elf.h: New file.
24102 * config/arm/uclinux-telf.h: New file.
24103 * configure.in (arm-*-uclinux, thumb-*-linux-gnu,
24104 thumb-*-uclinux): New targets.
24105 * configure: Regenerate.
24106
24107 Tue Jul 27 23:20:21 1999 Jeffrey A Law (law@cygnus.com)
24108
24109 * pa.md (post_store, pre_load): New expanders.
24110 (post_stwm, pre_ldwm): Renamed to post_stw and pre_ldw respectively.
24111 (post_ldwm, pre_stwm): Make these unnamed patterns since we never
24112 need to directly generate RTL for them.
24113 * pa.c (hppa_expand_prologue, hppa_expand_epilogue): Corresponding
24114 changes.
24115
24116 Tue Jul 27 16:05:52 1999 David Edelsohn <edelsohn@gnu.org>
24117
24118 * aix43.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add rs64a and PPC630.
24119 * rs6000.c (processor_target_table): Add powerpc64, rs64a, and PPC630.
24120 (rs6000_cpu): Choose between 32-bit and 64-bit default processors.
24121 (secndary_reload_class): Make TARGET_ELF conditional compile.
24122 (print_operand_address): Similar.
24123 (output_toc): Print all values as hex.
24124 (get_issue_rate): Rearrange and add RS64A and PPC630.
24125 * rs6000.h (processor_type): Add RS64A and PPC630.
24126 (PROCESSOR_POWERPC64): New.
24127 (PROMOTE_MODE): Use word_mode.
24128 (RTX_COSTS): Add RS64A and PPC630.
24129 * rs6000.md (scheduling information): Add lmul and ldiv
24130 representing 64-bit integer multiply and divide. Add rs64a and
24131 PPC630 information.
24132 (ashldi3): Add support for "rldic" instruction.
24133 * sysv4.h (PROCESSOR_DEFAULT): Change to PROCESSOR_750.
24134
24135 Tue Jul 27 15:31:53 1999 Vladimir Makarov <vmakarov@toad.to.cygnus.com>
24136
24137 * config/sparc/sparc.c (sparc_override_options): Enable SPARCLITE
24138 instead of V8 for sparclite86x in cpu_table.
24139
24140 Tue Jul 27 17:49:42 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24141
24142 * config/arm/coff.h (ASM_FILE_START): If generating SDB output, call
24143 output_file_directive.
24144
24145 Tue Jul 27 03:15:33 1999 Jason Merrill <jason@yorick.cygnus.com>
24146
24147 * expr.c (expand_expr, case PLUS_EXPR): Get the mode from the
24148 tree for op1, not the rtl.
24149
24150 Tue Jul 27 00:18:34 1999 Richard Henderson <rth@cygnus.com>
24151
24152 * m88k.c (m88k_builtin_saveregs): Break out the constructor code
24153 to m88k_va_start, leaving only the register spill.
24154 (m88k_build_va_list): New.
24155 (m88k_va_start): New.
24156 (m88k_va_arg): New.
24157 * m88k.h (BUILD_VA_LIST_TYPE): New.
24158 (EXPAND_BUILTIN_VA_START): New.
24159 (EXPAND_BUILTIN_VA_ARG): New.
24160
24161 Mon Jul 26 19:07:11 1999 Geoff Keating <geoffk@cygnus.com>
24162
24163 * config/rs6000/rs6000.c (rs6000_expand_builtin_saveregs):
24164 Rename from expand_builtin_saveregs.
24165 * config/rs6000/rs6000.h (EXPAND_BUILTIN_SAVEREGS): Change caller.
24166
24167 Mon Jul 26 22:52:47 1999 Richard Henderson <rth@cygnus.com>
24168
24169 * i960.c (i960_setup_incoming_varargs): Use get_varargs_alias_set
24170 for the register spill block.
24171 (i960_build_va_list): New.
24172 (i960_va_start): New.
24173 (i960_va_arg): New.
24174 * i960.h (BUILD_VA_LIST_TYPE): New.
24175 (EXPAND_BUILTIN_VA_START): New.
24176 (EXPAND_BUILTIN_VA_ARG): New.
24177 * i960.md (store_multiple): Use change_address on individul mems.
24178
24179 Mon Jul 26 22:43:12 1999 Richard Henderson <rth@cygnus.com>
24180
24181 * builtins.c (stabilize_va_list): Don't INDIRECT_REF through
24182 an ARRAY_TYPE.
24183 (std_expand_builtin_va_start): Back out one word if !stdarg_p.
24184 (expand_builtin_va_end): Evaluate arg for side effects.
24185 * c-common.c (c_common_nodes_and_builtins): Construct a
24186 va_list_arg_type_node to handle array decomposition to pointer.
24187
24188 Mon Jul 26 18:51:34 1999 Richard Henderson <rth@cygnus.com>
24189
24190 * except.c (st_dynamic_cleanup): Use force_operand on the
24191 buffer's address.
24192
24193 Mon Jul 26 16:43:26 1999 Richard Henderson <rth@cygnus.com>
24194
24195 * c4x.h (EXPAND_BUILTIN_VA_ARG): New.
24196 * c4x.c (c4x_va_arg): New.
24197
24198 Mon Jul 26 12:30:09 1999 Jason Merrill <jason@yorick.cygnus.com>
24199
24200 * cpplib.c (cpp_get_token): Don't return a CPP_POP if the buffer
24201 has manual_pop set.
24202
24203 1999-07-26 Nathan Sidwell <nathan@acm.org>
24204
24205 * eh-common.h (__eh_matcher): Prototype correctly.
24206
24207 Mon Jul 26 17:24:51 1999 Philip Blundell <pb@nexus.co.uk>
24208
24209 * config/arm/thumb.h (THUMB_FLAG_SINGLE_PIC_BASE): Define.
24210 (TARGET_SINGLE_PIC_BASE): Likewise.
24211 (GOT_PCREL, NEED_GOT_RELOC, NEED_PLT_RELOC): Provide default
24212 definitions.
24213 (TARGET_CALLEE_INTERWORKING): Fix typo in comment.
24214 (TARGET_SWITCHES): Add -m{no-}single-pic-base.
24215 (TARGET_OPTIONS): Add -mpic-register=N.
24216 (OUTPUT_INT_ADDR_CONST): New macro.
24217 (INDEX_REGISTER_RTX_P, PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC,
24218 LEGITIMATE_PIC_OPERAND_P): Likewise.
24219 (LEGITIMIZE_ADDRESS, GOT_IF_LEGITIMATE_ADDRESS): Support PIC.
24220 (ASM_OUTPUT_INT): Use OUTPUT_INT_ADDR_CONST rather than calling
24221 output_addr_const directly.
24222 (PRINT_OPERAND_PUNCT_VALID_P): Accept `|' for compatibility with
24223 ARM port.
24224 (thumb_pic_register, thumb_pic_register_string): Declare.
24225
24226 * config/arm/thumb.c (symbol_mentioned_p): New function: Imported
24227 from arm.c.
24228 (label_mentioned_p): New function: Imported from arm.c.
24229 (legitimize_pic_address): New function: Imported from arm.c.
24230 (is_pic):New function: Imported from arm.c.
24231 (thumb_finalize_pic):New function: Imported from arm.c.
24232 (add_constant): Cope with PIC constants.
24233 (fixit): Cope with PIC constants.
24234 (output_return): Do not treat the PIC register as live if
24235 TARGET_SINGLE_PIC_BASE is true.
24236 (thumb_function_prologue): Do not treat the PIC register as live if
24237 TARGET_SINGLE_PIC_BASE is true.
24238 (thumb_expand_prologue): Do not treat the PIC register as live if
24239 TARGET_SINGLE_PIC_BASE is true.
24240 (thumb_unexpand_epilogue): Do not treat the PIC register as live if
24241 TARGET_SINGLE_PIC_BASE is true.
24242 (thumb_print_operand): Accept '|'.
24243 (thumb_override_options): Process PIC options.
24244
24245 * config/arm/thumb.md (movsi): Support PIC.
24246 (call_insn): Change "i" constraint to "X".
24247 (call_value_insn): Likewise.
24248 (consttable_4, consttable_8, consttable_end): Set and clear
24249 "making_const_table" as appropriate.
24250 (pic_load_addr, pic_add_dot_plus_four): New insns.
24251
24252 * invoke.texi (Thumb Options): Fix spelling. Document new
24253 options -msingle-pic-base and -mpic-register=.
24254
24255 1999-07-26 Andrew Haley <aph@cygnus.com>
24256
24257 * config/m32r/initfini.c (__init): Use a full word immediate for
24258 __fini: this allows it to be placed in any memory region.
24259
24260 * config/m32r/t-m32r: Compile crtinit.o and crtfini.o for
24261 -mmodel=medium. This is OK for all memory models.
24262
24263 Mon Jul 26 11:58:46 1999 Nick Clifton <nickc@cygnus.com>
24264
24265 * config/arm/arm.c: Replace %R%s in asm_fprintf strings with %r.
24266 * config/arm/arm.h: Replace %R%s in asm_fprintf strings with %r.
24267
24268 Mon Jul 26 10:23:36 1999 Nick Clifton <nickc@cygnus.com>
24269
24270 * final.c (asm_fprintf): Accept ASM_FPRINTF_EXTENSIONS, if
24271 defined.
24272
24273 * tm.texi: Document ASM_FPRINTF_EXTENSIONS.
24274
24275 Sun Jul 25 23:51:59 1999 Richard Henderson <rth@cygnus.com>
24276
24277 * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
24278 (BUILD_VA_LIST_TYPE): New.
24279 (EXPAND_BUILTIN_VA_START): New.
24280 (EXPAND_BUILTIN_VA_ARG): New.
24281 * i860.c (output_delayed_branch): Disable.
24282 (output_delay_insn): Likewise.
24283 (i860_saveregs): New.
24284 (i860_build_va_list): New.
24285 (i860_va_start): New.
24286 (i860_va_arg): New.
24287 * i860.md: Disable all peepholes using output_delayed_branch.
24288 * i860/sysv4.h (I860_SVR4_VA_LIST): New.
24289
24290 Sun Jul 25 23:44:13 1999 Richard Henderson <rth@cygnus.com>
24291
24292 * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
24293 (BUILD_VA_LIST_TYPE): New.
24294 (EXPAND_BUILTIN_VA_START): New.
24295 (EXPAND_BUILTIN_VA_ARG): New.
24296 * clipper.c (clipper_builtin_saveregs): Only dump registers.
24297 Return the address of the save area.
24298 (clipper_build_va_list): New.
24299 (clipper_va_start): New.
24300 (clipper_va_arg): New.
24301
24302 Sun Jul 25 22:56:47 1999 Richard Henderson <rth@cygnus.com>
24303
24304 * arc.h (EXPAND_BUILTIN_VA_START): New.
24305 (EXPAND_BUILTIN_VA_ARG): New.
24306 * arc.c (arc_setup_incoming_varargs): Set alias set of
24307 varargs save area.
24308 (arc_va_start): New.
24309 (arc_va_arg): New.
24310
24311 Sun Jul 25 22:45:55 1999 Richard Henderson <rth@cygnus.com>
24312
24313 * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
24314 (BUILD_VA_LIST_TYPE): New.
24315 (EXPAND_BUILTIN_VA_START): New.
24316 (EXPAND_BUILTIN_VA_ARG): New.
24317 * alpha.c (alpha_builtin_saveregs): Delete.
24318 (alpha_build_va_list): New.
24319 (alpha_va_start): New.
24320 (alpha_va_arg): New.
24321
24322 Sun Jul 25 21:40:33 1999 Jeffrey A Law (law@cygnus.com)
24323
24324 * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
24325 column zero.
24326 (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
24327 (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
24328
24329 * gcc.texi: More changes related to list conversion.
24330 * invoke.texi: Likewise.
24331
24332 Sun Jul 25 18:15:39 1999 Richard Henderson <rth@cygnus.com>
24333
24334 * builtins.c (expand_builtin_saveregs): Remove static, remove exp
24335 and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
24336 (expand_builtin_next_arg): Accept ARGLIST not EXP.
24337 (stabilize_va_list): New function.
24338 (std_expand_builtin_va_start): New function.
24339 (expand_builtin_va_start): New function.
24340 (get_varargs_alias_set): New function.
24341 (std_expand_builtin_va_arg): New function.
24342 (expand_builtin_va_arg): New function.
24343 (expand_builtin_va_end): New function.
24344 (expand_builtin_va_copy): New function.
24345 (expand_builtin): Call them.
24346 * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
24347 __builtin_{varargs_start,stdarg_start,end,copy}.
24348 (build_va_arg): New function.
24349 * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
24350 (build_va_arg): Declare.
24351 * c-decl.c (ptr_type_node, va_list_type_node): New.
24352 * c-parse.gperf (__builtin_va_arg): New.
24353 * c-parse.in (VA_ARG): New token.
24354 (unary_expr): Recognize it.
24355 * expr.c (expand_expr): Expand VA_ARG_EXPR.
24356 * expr.h (std_expand_builtin_va_start): Declare.
24357 (std_expand_builtin_va_arg): Declare.
24358 (expand_builtin_va_arg): Declare.
24359 (get_varargs_alias_set): Declare.
24360 * tree.def (VA_ARG_EXPR): New.
24361 * tree.h (BUILT_IN_VARARGS_START): New.
24362 (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
24363 (ptr_type_node, va_list_type_node): Declare.
24364 * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
24365 * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
24366 * m88k.h, m88k.c: Likewise.
24367 * mn10300.h, mn10300.c: Likewise.
24368 * pa.h, pa.c: Likewise.
24369 * rs6000.h, rs6000.c: Likewise.
24370 * sh.h, sh.c: Likewise.
24371 * sparc.h, sparc.c: Likewise.
24372
24373 * emit-rtl.c (operand_subword): Copy alias set.
24374 (change_address): Likewise.
24375
24376 Sun Jul 25 15:04:37 1999 Jeffrey A Law (law@cygnus.com)
24377
24378 * pa.c (compute_frame_size): Scan all the used callee saved registers,
24379 not just the first one.
24380
24381 Fri Jul 23 14:09:58 1999 Philip Blundell <pb@nexus.co.uk>
24382
24383 * config/arm/arm.h (TARGET_SWITCHES): Add
24384 -m{no-}single-pic-base. Correct help string for -mshort-load-words.
24385 (TARGET_OPTIONS): Add -mpic-register=.
24386 (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
24387 (arm_pic_register_string): Declare.
24388 (NEED_PLT_GOT): Delete, replace with ...
24389 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
24390 (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
24391 (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
24392 * config/arm/arm.c (arm_override_options): Add new option
24393 -mpic-register=N.
24394 (arm_pic_register_string): New variable.
24395 (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
24396 (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
24397 register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
24398 (output_return_instruction): Likewise.
24399 * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
24400 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
24401 * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
24402
24403 * invoke.texi (ARM Options): Fix spelling. Remove duplicate
24404 mention of -msched-prolog. Document new options -msingle-pic-base
24405 and -mpic-register=.
24406
24407 Thu Jul 22 18:23:56 1999 Richard Henderson <rth@cygnus.com>
24408
24409 * haifa-sched.c (reemit_notes): Tidy.
24410 * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
24411 haifa's routine.
24412
24413 Thu Jul 22 18:21:04 1999 Richard Henderson <rth@cygnus.com>
24414
24415 * explow.c (trunc_int_for_mode): New function.
24416 (plus_constant_wide): Use it.
24417 * combine.c (simplify_and_const_int): Likewise.
24418 (merge_outer_ops): Likewise.
24419 (simplify_shift_const): Likewise.
24420 * cse.c (simplify_unary_operation): Likewise.
24421 (simplify_binary_operation): Likewise.
24422 * emit-rtl.c (operand_subword): Likewise.
24423 * rtl.h: Declare it.
24424
24425 Thu Jul 22 14:34:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24426
24427 * config/arm/arm.c (arm_print_operand): Fix typo in 'M' case
24428 (use NUM_REGS instead of NUM_INTS).
24429
24430 Thu Jul 22 11:25:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24431
24432 * builtins.c: New file.
24433 * expr.c (saveregs_value, apply_args_value): Delete definition,
24434 moved into builtins.c.
24435 (string_constant): No longer static.
24436 (get_pointer_alignment, c_strlen, get_memory_rtx, expand_builtin,
24437 apply_args_size, apply_result_size, result_vector,
24438 expand_builtin_apply_args, expand_builtin_apply,
24439 expand_builtin_return): Delete functions, moved into builtins.c.
24440 (INCOMING_REGNO, OUTGOING_REGNO): Delete unused macros.
24441 * expr.h (saveregs_value, apply_args_value): Declare variables.
24442 (expand_builtin, string_constant): Declare functions.
24443 * Makefile.in: Update to build builtin.o.
24444
24445 Wed Jul 21 00:46:58 1999 Mark P. Mitchell <mark@codesourcery.com>
24446
24447 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
24448 * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it.
24449 * dwarf2out.c (dwarf2out_init): Don't output a label to mark the
24450 start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is
24451 false.
24452 * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL):
24453 Define to zero.
24454
24455 1999-07-21 Michael Meissner <meissner@cygnus.com>
24456
24457 * print-rtl.c (print_rtx): Print the names of the virtual
24458 registers.
24459
24460 Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
24461
24462 * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo
24463 introduced in previous delta.
24464
24465 Wed Jul 21 14:30:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24466
24467 * c-lang.c (finish_file): Rename void_list_node to void_list_node_1
24468 to avoid name clash.
24469
24470 Wed Jul 21 08:39:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
24471
24472 * c-lex.c (yylex) : Correct the test for overflow when lexing
24473 integer literals.
24474
24475 Tue Jul 20 18:02:42 1999 Richard Henderson <rth@cygnus.com>
24476
24477 * haifa-sched.c (insn_cost): FREE implies cost 0 and vice versa.
24478 (adjust_priority): Always call ADJUST_PRIORITY.
24479 (schedule_insn): Only put insns into the ready at cost 0.
24480 (schedule_block): Remove redundant initial sort. Give clock_var
24481 and can_issue_more to MD_SCHED_REORDER. Requeue if hazard cost
24482 is not 0.
24483 * tm.texi (MD_SCHED_REORDER): Update docs.
24484
24485 * sparc.h (MD_SCHED_REORDER): Update. Set CAN_ISSUE_MORE.
24486 * sparc.c (ultra_reorder_called_this_block): Delete.
24487 (ultrasparc_sched_init): Don't set it.
24488 (ultrasparc_sched_reorder): Don't check it.
24489
24490 Tue Jul 20 17:07:54 1999 Richard Henderson <rth@cygnus.com>
24491
24492 * rs6000.h (struct rs6000_args): Add sysv_gregno.
24493 * rs6000.c (init_cumulative_args): Init sysv_gregno.
24494 (function_arg_boundary): Align DFmode.
24495 (function_arg_advance): Restructure for ABI_V4; use sysv_gregno
24496 to get fp reg and stack overflow correct.
24497 (function_arg): Likewise.
24498 (function_arg_pass_by_reference): True for TFmode for ABI_V4.
24499 (setup_incoming_varargs): Restructure for ABI_V4; use
24500 function_arg_advance to skip final named argument.
24501 (expand_builtin_saveregs): Properly unskip the last integer arg
24502 when doing varargs. Adjust overflow location calculation.
24503
24504 * ginclude/va-ppc.h (struct __va_list_tag): Make gpr and fpr
24505 explicitly unsigned.
24506 (__VA_FP_REGSAVE): Use new OFS argument instead of AP->fpr directly.
24507 (__VA_GP_REGSAVE): Similarly.
24508 (__va_longlong_p): Delete.
24509 (__va_arg_type_violation): New declaration.
24510 (va_arg): Restructure. Flag promotion errors. Align double.
24511 TFmode passed by reference.
24512
24513 * rs6000.md (movdi_32+1): Use GEN_INT after arithmetic
24514 in the HOST_BITS_PER_WIDE_INT > 32 case.
24515
24516 Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson <hp@bitrange.com>
24517
24518 * dwarf2out.c (output_abbrev_section): Terminate with a zero.
24519
24520 Tue Jul 20 12:12:27 1999 Jason Merrill <jason@yorick.cygnus.com>
24521
24522 * gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
24523 * toplev.c (documented_lang_options): Add -fpreprocessed.
24524 * cpplib.h (struct cpp_buffer): Add preprocessed.
24525 * cppinit.c (cpp_handle_option): Handle -fpreprocessed.
24526 (cpp_start_read): Don't expand macros or emit an initial #line
24527 directive if -fpreprocessed.
24528
24529 Tue Jul 20 12:12:09 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
24530
24531 * cpplib.h (struct cpp_buffer): Added manual_pop for
24532 better C++ tokenization.
24533 * cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
24534 Also, support C++ tokenization for ->*, .*, <?, and >? operators.
24535 * c-common.c (cpp_token): Make non-static.
24536
24537 Tue Jul 20 11:24:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24538
24539 * c-common.h: New file.
24540 * c-common.c (permanent_obstack): Delete unused declaration.
24541 (c_global_trees): New array.
24542 (c_common_nodes_and_builtins): New function; split off common code
24543 from init_decl_processing in both c-decl.c and cp/decl.c.
24544 * c-tree.h: Delete lots of declarations of tree nodes; replaced by
24545 c_global_trees and accessor macros defined in c-common.h.
24546 Include c-common.h.
24547 * c-decl.c: Delete definitions for tree nodes that were replaced by
24548 c_global_trees.
24549 (init_decl_processing): Build void_list_node.
24550 Call c_common_nodes_and_builtins; delete code to generate the common
24551 builtins here.
24552 * objc/objc-act.c (build_module_descriptor): Rename variable
24553 void_list_node to avoid clash with c-common.h.
24554
24555 * Makefile.in: Update dependencies.
24556 * objc/Make-lang.in: Likewise.
24557
24558 Mon Jul 19 14:22:18 1999 Mark P. Mitchell <mark@codesourcery.com>
24559
24560 * config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
24561 (UNIQUE_SECTION_P): Likewise.
24562 (UNIQUE_SECTION): Likewise.
24563
24564 1999-07-19 Linas Vepstas <linas@linas.org>
24565
24566 * config/i370/README: New file.
24567 * config/i370/linux.h: New file.
24568 * config/i370/mvs.h: New file.
24569 * config/i370/oe.h: New file.
24570 * config/i370/t-linux: New file.
24571 * config/i370/t-mvs: New file.
24572 * config/i370/t-oe: New file.
24573 * config/i370/x-oe: New file.
24574 * config/i370/xm-linux.h: New file.
24575 * config/i370/xm-mvs.h: New file.
24576 * config/i370/xm-oe.h: New file.
24577
24578 * i370.c (label_node_t): Add first_ref_page, label_addr,
24579 label_first_ref, label_last_ref members.
24580 (mvs_need_base_reload): Renamed from mvs_label_emitted.
24581 (MAX_MVS_LABEL_SIZE): Define.
24582 (MAX_LONG_LABEL_SIZE): Define.
24583 (alias_node_t, alias_anchor, alias_number): New.
24584 (mvs_function_table): Reorder for EBCDIC.
24585 (ascebc, ebcasc): Unconditionally define.
24586 (i370_branch_dest, i370_branch_length): New functions.
24587 (i370_short_branch, i370_label_scan): New functions.
24588 (mvs_get_label): Renamed from mvs_add_label. Search for
24589 an existing label before creating a new one.
24590 (mvs_add_label): New function.
24591 (mvs_get_label_page): New function.
24592 (mvs_free_label_list): Renamed from mvs_free_label. Iterate
24593 over the entire list.
24594 (mvs_check_page) [TARGET_HLASM]: Use BASR not BALR.
24595 (mvs_check_page) [TARGET_ELF_ABI]: New function.
24596 (mvs_add_alias, mvs_need_alias): New functions.
24597 (mvs_get_alias, mvs_check_alias): New functions.
24598 (handle_pragma): New function.
24599 (mvs_function_check): New function.
24600 (unsigned_jump_follows_p): Search harder.
24601 (i370_function_prolog) [TARGET_HLASM]: Handle LE370. Scan labels.
24602 (i370_function_prolog) [TARGET_ELF_ABI]: New function.
24603 * i370.h (TARGET_VERSION): Delete.
24604 (CPP_SPEC, CPP_PREDEFINES): Delete.
24605 (mvs_label_emitted): Delete.
24606 (TARGET_EBCDIC): Delete.
24607 (MAP_CHARACTER): Define only if TARGET_EBCDIC.
24608 (HANDLE_PRAGMA): Define.
24609 (HARD_REGNO_NREGS): Handle complex modes.
24610 (HARD_REGNO_MODE_OK): Likewise.
24611 (CLASS_MAX_NREGS): Likewise.
24612 (RET_REG): Likewise.
24613 (EXTRA_CONSTRAINT): Define.
24614 (RETURN_IN_MEMORY): True for DImode.
24615 (TRAMPOLINE_TEMPLATE): Use gen_rtx instead of GEN_INT.
24616 (FUNCTION_PROFILER): Delete.
24617 (COUNT_REGS): Fail if REG_P but not REG_OK_FOR_BASE_P.
24618 (NOTICE_UPDATE_CC): Correct handling of MULT, DIV, logicals and shifts.
24619 (TARGET_ESC, TARGET_BELL): Conditionally define for TARGET_EBCDIC.
24620 (TARGET_BS, TARGET_TAB, TARGET_NEWLINE): Likewise.
24621 (TARGET_VT, TARGET_FF, TARGET_CR): Likewise.
24622 (ASM_FILE_START): Add "RMODE ANY".
24623 (ASM_OUTPUT_EXTERNAL): Check for aliases.
24624 (ASM_GLOBALIZE_LABEL): Likewise.
24625 (ASM_OUTPUT_LABELREF): Likewise.
24626 (ASM_OUTPUT_COMMON): Likewise.
24627 (PRINT_OPERAND): Handle 'K', 'W', default.
24628 (PRINT_OPERAND_ADDRESS): New.
24629 (Lots of defines): Add support for TARGET_ELF_ABI.
24630 * i370.md (attr length): New. Define for all patterns.
24631 (*): Lots of tweeks to assembly output and constraints.
24632
24633 Mon Jul 19 15:09:29 1999 David Edelsohn <edelsohn@gnu.org>
24634
24635 * rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
24636 Disable patterns performing SImode comparisons with SImode values
24637 if TARGET_POWERPC64 and instruction does not sign-extend or does
24638 not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
24639 differ for signed quantities.
24640 (indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
24641 (tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
24642 (decrement_and_branch_on_count): Add 64-bit variant.
24643
24644 Mon Jul 19 09:36:27 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24645
24646 * final.c (output_asm_insn): When searching for the matching string
24647 for a given dialect, don't run past the end of the list of
24648 alternatives if there are fewer alternatives in the template than
24649 dialects.
24650
24651 1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
24652
24653 * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
24654 Removed paragraph about compression of files and size limitation,
24655 duplicated in the FAQ. Use gcc-patches for posting patches.
24656 * gcc.c (main): Updated URL with bug reporting instructions to
24657 gcc.gnu.org. Removed e-mail address.
24658 * system.h (abort): Likewise.
24659
24660 1999-07-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24661
24662 * Makefile.in (stmp-multilib-sub): Make the files extracted
24663 from $(LIBGCC1) writable.
24664
24665 Sat Jul 17 14:25:46 1999 Nick Clifton <nickc@cygnus.com>
24666
24667 * config/arm/aout.h: Reformat for improved readability.
24668
24669 * config/arm/arm.h: Reformat for improved readability.
24670 Replace uses of fprintf with asm_fprintf where appropriate.
24671 (ARM_DECLARE_FUNCTION_NAME): New macro: Perform any generic ARM
24672 function declaration assembler actions.
24673 (NUM_INTS): New macro: Convert from bytes to words.
24674 (NUM_REGS): New macro: Compute number of registers required to
24675 hold a quanitity of tyep MODE.
24676 (NUM_REGS2): New macro: Like NUM_REGS but also copes with BLKmode
24677 types.
24678 (NUM_ARG_REGS): New macro: The number of argument registers
24679 available.
24680 (ARG_REGISTER): New macro: Compute the register number of the Nth
24681 argument register.
24682 (LAST_ARG_REGNUM): New macro: The number of the last argument
24683 register.
24684 (SP_REGNUM): New macro: Register number of the stack pointer.
24685 (FP_REGNUM): New macro: Register number of the frame pointer.
24686 (FUNCTION_ARG, FUNCTION_ARG_PARTIAL_NREGS, INIT_CUMULATIVE_AGS,
24687 FUNCTION_ARG_ADVANCE, SETUP_INCOMING_VARARGS): Change
24688 CUMULATIVE_ARGS so that it counts registers not bytes.
24689
24690 * config/arm/arm.c: Rename TARGET_THUMB_INTERWORK to
24691 TARGET_INTERWORK.
24692 Replace uses of fprintf with asm_fprintf where appropriate.
24693 (output_ascii_pseudo_op): Replace with version from thumb.c
24694
24695 * config/arm/coff.h (ASM_FILE_START): Emit ASM_APP_OFF.
24696
24697 * config/arm/elf.h (CPP_PREDEFINES): Replace with
24698 SUBTARGET_CPP_SPEC.
24699 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
24700 (ASM_FILE_START): Emit ASM_APP_OFF.
24701
24702 Fri Jul 16 13:48:09 1999 Jeffrey A Law (law@cygnus.com)
24703
24704 * pa.c (compute_frame_size): Round frame according to
24705 STACK_BOUNDARY rather than a hardwired value.
24706
24707 * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
24708
24709 * configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
24710 of "1".
24711 * configure: Rebuilt.
24712
24713 * configure.in (hppa*-*-linux*): New configuration.
24714 * configure: Rebuilt.
24715 * pa.h (MAX_OFILE_ALIGNMENT): Delete.
24716 * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
24717 * pa/pa-linux.h: New file.
24718 * pa/t-linux: New file.
24719 * pa/xm-linux.h: New file.
24720
24721 * pa.c (hppa_legitimize_address): Change references from SImode to
24722 either Pmode or word_mode as appropriate.
24723 (emit_move_sequence, store_reg, load_reg): Likewise.
24724 (set_reg_plus_d, hppa_expand_prologue): Likewise.
24725 (output_mul_insn): Likewise.
24726 * pa.h (PROMOTE_MODE): Likewise.
24727 (INITIALZE_TRAMPOLINE): Likewise.
24728 (Pmode): Define to word_mode.
24729
24730 * pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
24731 value of 4. Allocate 8 bytes for each FP register save.
24732 (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
24733 value of 4.
24734 (hppa_expand_prologue): Likewise.
24735 * pa.h (PROMOTE_MODE): Likewise.
24736 (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
24737 (FUNCTION_ARG_BOUNDARY): Likewise.
24738
24739 * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
24740
24741 * pa.c (out_of_line_prologue_epilogue): Delete.
24742 (override_options): Remove -mspace related code.
24743 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
24744 (compute_frame_size): Only allocate space for register that
24745 actually need to be saved.
24746 * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
24747 (TARGET_SWITCHES): Remove -mspace, -mno-space
24748 * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
24749 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise. Remove -mspace multilib.
24750 * pa/ee.asm, pa/ee_fp.asm: Delete.
24751
24752 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
24753
24754 * config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
24755 directive in column zero.
24756
24757 Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
24758
24759 * m68k.c (output_function_prologue): Fix computation of save mask
24760 when generating PIC code.
24761
24762 Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
24763
24764 * tree.c (build_type_attribute_variant): Move current_obstack restore
24765 after build_qualified_type call.
24766
24767 1999-07-15 Mark Mitchell <mark@codesourcery.com>
24768
24769 * configure.in: Use t-iris6, even with GNU LD.
24770 * config/mips/iris6gld.h: Fix typo in linker spec.
24771 * config/mips/t-iris6gld: Remove.
24772
24773 Thu Jul 15 15:15:43 1999 David Edelsohn <edelsohn@gnu.org>
24774
24775 * rs6000.md (insv, extzv): Remove SImode dependence in named
24776 patterns. Explicitly generate DImode RTL if PowerPC64 and
24777 operand is DImode.
24778 (insvdi): Reverse start and size in instruction template.
24779
24780 1999-07-12 Joseph S. Myers <jsm28@cam.ac.uk>
24781
24782 * invoke.texi: Typo fixes.
24783
24784 Wed Jul 14 23:28:06 1999 Jeffrey A Law (law@cygnus.com)
24785
24786 * emit-rtl.c (gen_realpart): Issue an error for cases GCC can not
24787 handle at this time instead of silently generating incorrect code.
24788 (gen_imagpart): Likewise.
24789
24790 * reload.c (find_reloads): Emit a USE for a pseudo register without
24791 a hard register if we could not create an optional reload for the
24792 pseudo.
24793
24794 Wed Jul 14 23:45:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24795
24796 * c-typeck.c (output_init_element, process_init_element):
24797 When advancing constructor_unfilled_fields for a RECORD_TYPE,
24798 check for nameless bit fields.
24799
24800 Wed Jul 14 01:57:39 1999 Richard Henderson <rth@cygnus.com>
24801
24802 * regclass.c (scan_one_insn): Notice subregs that change the
24803 size of their operand.
24804 (record_reg_classes): Use that to obey CLASS_CANNOT_CHANGE_SIZE.
24805
24806 Wed Jul 14 01:41:42 1999 Jeffrey A Law (law@cygnus.com)
24807
24808 * configure.in (alpha*-*-*): Include alpha/t-ieee.
24809 * configure: Rebuilt.
24810 * alpha/t-ieee: New file.
24811
24812 Tue Jul 13 10:45:58 1999 Jeffrey A Law (law@cygnus.com)
24813
24814 * rs6000.c (find_addr_reg): Do not select r0 as an address
24815 register.
24816
24817 Tue Jul 13 00:46:18 1999 Philippe De Muyter <phdm@macqel.be>
24818
24819 * m68k/x-mot3300 (XCFLAGS): List of big files now includes `cse.o'.
24820
24821 Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
24822
24823 * rs6000.md (movsf): Do not force easy FP constants into memory.
24824
24825 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
24826 immed_double_const to ensure they are properly truncated then
24827 sign extended.
24828
24829 Mon Jul 12 10:40:01 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
24830
24831 * config/arm/thumb.c (thumb_reorg): Call replace_symbols_in_block
24832 always unless NO_DEBUG is used. Compile this code
24833 unconditionally.
24834 (replace_symbols_in_block): Compile it unconditionally.
24835
24836 Sun Jul 11 12:32:32 1999 Jeffrey A Law (law@cygnus.com)
24837
24838 * configure.in (i?86-*-elf*): New target.
24839 * configure: Rebuilt.
24840 * i386/i386elf.h, i386/t-i386elf: New files.
24841
24842 Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
24843
24844 * toplev.c (main): Don't complain about saying -gdwarf.
24845 (rest_of_compilation): Remove redundant code.
24846
24847 Fri Jul 9 19:08:55 1999 Jim Wilson <wilson@cygnus.com>
24848
24849 * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
24850
24851 Fri Jul 9 18:54:18 1999 Felix Lee <flee@cygnus.com>
24852
24853 * config/i960/i960.c (ret_label): Change asm label from "LR:" to
24854 "Li960R:", to avoid name clash.
24855
24856 Fri Jul 9 10:48:28 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24857
24858 * loop.c (check_dbra_loop): When reversing a loop, delete all
24859 REG_EQUAL notes referencing the reversed biv except those which are
24860 for a giv based on it.
24861
24862 Fri Jul 9 03:51:52 1999 Jeffrey A Law (law@cygnus.com)
24863
24864 * version.c: Drop "gcc-" prefix from version #.
24865
24866 Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
24867
24868 * dwarf2out.c (dwarf2out_line): Emit a line number comment after
24869 the label if we're being verbose.
24870
24871 Thu Jul 8 14:18:46 1999 Richard Henderson <rth@cygnus.com>
24872
24873 * m68k.c (output_function_prologue): Add pic register to mask
24874 if live and flag_pic.
24875 (output_function_epilogue): Likewise.
24876
24877 Thu Jul 8 12:55:12 1999 Jeffrey A Law (law@cygnus.com)
24878
24879 * dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Do not put assembler
24880 directives in column zero.
24881
24882 * pa/elf.h (ASM_FILE_START): Define.
24883 * pa/som.h (ASM_FILE_START): Include .level directives.
24884 * pa/hpux10.h (ASM_FILE_START): Delete.
24885 * pa/hpux11.h (ASM_FILE_START): Delete.
24886
24887 * pa/elf.h (BSS_SECTION_ASM_OP): Use .section .bss.
24888
24889 Thu Jul 8 18:03:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24890
24891 * reload1.c (choose_reload_regs): Never call remove_adress_replacements
24892 when reload_out equals reload_in.
24893
24894 Thu Jul 8 16:50:14 1999 Nick Clifton <nickc@cygnus.com>
24895
24896 * invoke.texi (Spec Files): New node: Describe the contents of
24897 spec files.
24898
24899 Thu Jul 8 10:28:25 1999 Craig Burley <craig@jcb-sc.com>
24900
24901 * invoke.texi (DEC Alpha Options): Put @end table at
24902 beginning of line, to avoid confusing texi2html.
24903
24904 Thu Jul 8 09:22:06 1999 Nick Clifton <nickc@cygnus.com>
24905
24906 * config/arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Fixed typo
24907 introduced in previous delta.
24908
24909 Wed Jul 7 02:00:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24910
24911 * reload1.c (gen_reload): When synthesizing a 3 operand add
24912 sequence, improve test for when to reload OP1 into the reload
24913 register instead of OP0.
24914
24915 Wed Jul 7 01:38:03 1999 Jim Wilson <wilson@cygnus.com>
24916
24917 * unroll.c (unroll_loop): Don't delete NOTE_INSN_DELETED_LABEL notes.
24918
24919 1999-07-07 Manfred Hollstein <mhollstein@cygnus.com>
24920
24921 * m88k/dguxbcs.h (CPP_SPEC): Add missing \ in multi-line
24922 string literal.
24923
24924 Wed Jul 7 01:16:43 1999 Richard Henderson <rth@cygnus.com>
24925
24926 * ginclude/varargs.h (__builtin_va_alist_t): New typedef.
24927 (va_dcl): Use __builtin_va_alist_t.
24928
24929 Wed Jul 7 01:14:42 1999 Jason Merrill <jason@yorick.cygnus.com>
24930
24931 * dwarf2out.c (gen_struct_or_union_type_die): Only remember types
24932 on the permanent_obstack.
24933 * dwarfout.c (output_type): Likewise.
24934
24935 Tue Jul 6 15:25:32 1999 Gavin Romig-Koch <gavin@cygnus.com>
24936
24937 * c-common.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24938 Merged from c-typeck.c and cp/typeck.c.
24939 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24940 Merged into c-common.
24941
24942 Tue Jul 6 13:06:01 1999 Dave Brolley <brolley@cygnus.com>
24943
24944 * c-lex.c (errorcount): Declare it.
24945 (finish_parse): Update errorcount when using CPPLIB.
24946
24947 1999-07-06 Bruce Korb <ddsinc09@ix.netcom.com>
24948
24949 * fixinc/inclhack.def(end_else_label): Double the backslash so
24950 sed gets a chance to see it.
24951 * fixinc/inclhack.sh: regen
24952 * fixinc/fixincl.x: regen
24953
24954 Fri Jul 2 18:49:51 1999 Nick Clifton <nickc@cygnus.com>
24955
24956 Add framework to support armv5 architecture when it becomes
24957 available:
24958
24959 * config/arm/arm.c (FL_ARCH5): New processor capability flag.
24960 (arm_arch5): New variable.
24961 (all_architectures): Add armv5 line.
24962 * config/arm/arm.h (CPP_CPU_ARCH_SPEC): Define __ARM_ARCH_5__ if
24963 -march=armv5 is specified on the command line.
24964 (arm_arch5): Export this variable.
24965 * invoke.texi: Document new string accepted by -march= switch for
24966 ARM ports.
24967
24968 * config/arm/arm.h: Replace use of constant 12 as a register
24969 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
24970 * config/arm/arm.c: Replace use of constant 12 as a register
24971 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
24972
24973 * config/arm/elf.h: Tidy up.
24974 * config/arm/coff.h: Tidy up.
24975
24976 Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
24977
24978 * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
24979 * gcc/config/mips/t-iris6gld: New file.
24980 * gcc/config/mips/iris6gld.h: Likewise.
24981
24982 Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
24983
24984 * c-decl.c (widest_integer_literal_type_node,
24985 widest_unsigned_literal_type) : New.
24986 (init_decl_processing): Handle/use the two new types.
24987 * c-common.c (type_for_size,type_for_mode) : Same.
24988 * c-lex.c (yylex) : Same.
24989 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24990 Same.
24991 * c-tree.h (widest_integer_literal_type_node,
24992 widest_unsigned_literal_type) : New.
24993
24994 Fri Jul 2 03:05:44 1999 Jeffrey A Law (law@cygnus.com)
24995
24996 * dwarfout.c (field_byte_offset): Correctly compute the object's
24997 byte offset for the first bit of a field which crosses an alignment
24998 boundary on a !BYTES_BIG_ENDIAN target.
24999
25000 Fri Jul 2 01:36:36 1999 Robert Lipe <robertlipe@usa.net>
25001
25002 * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and
25003 ntohs.
25004
25005 Fri Jul 2 00:46:47 1999 Richard Henderson <rth@cygnus.com>
25006 Jeff Law <law@cygnus.com>
25007
25008 * ginclude/varargs.h (va_dcl): Use word_mode for type of
25009 __builtin_va_list.
25010
25011 * except.c: Include intl.h.
25012 (expand_eh_return): Set current_function_cannot_inline.
25013 (save_eh_status, restore_eh_status): Twiddle eh_return_stub_label.
25014 * function.h (struct function): Add eh_return_stub_label.
25015 * flow.c (delete_unreachable_blocks): Don't merge across EH edges.
25016 * Makefile.in (except.o): Depend on intl.h.
25017
25018 Fri Jul 2 00:04:23 1999 David Edelsohn <edelsohn@gnu.org>
25019
25020 * rs6000.md (movdf_hardfloat32): Handle PRE_INC and PRE_DEC the
25021 same as offsettable in cases 1 and 2.
25022
25023 Thu Jul 1 20:54:10 1999 Richard Henderson <rth@cygnus.com>
25024
25025 * alpha.md (extqh): Define as 64-((R&7)*8) instead of 56-(((R-1)&7)*8).
25026 (extlh, extwh): Likewise.
25027
25028 Thu Jul 1 11:05:25 1999 Gavin Romig-Koch <gavin@cygnus.com>
25029
25030 * c-lex.c (yylex): Improve 'integer constant out of range' messages.
25031
25032 Wed Jun 30 16:51:41 1999 Nick Clifton <nickc@cygnus.com>
25033
25034 * configure.in: Add arm-pe and thumb-pe targets.
25035 * configure: Regenerate.
25036
25037 * thumb.c (arm_naked_function_p): New function: Determines if
25038 a function is naked (has no gcc generated prologue/epilogue).
25039 (is_called_in_ARM_mode): Return true if the func has the
25040 interfacearm attribute.
25041 (output_return): Do not generate a return for naked functions.
25042 (thumb_function_prologue): Do not generate a prologue for
25043 naked functions.
25044 (thumb_expand_prologue): Do not generate a prologue for naked
25045 functions.
25046 (thumb_expand_epilogue): Do not generate an epilogue for naked
25047 functions.
25048 (arm_valid_machine_decl_attribute): New function, copied from
25049 arm.c: Permit naked and interfacearm attributes.
25050
25051 * config/arm/pe.c: New file: Support code for arm-pe target.
25052 * config/arm/pe.h: New file: Header file for arm-pe target.
25053 * config/arm/tpe.h: New file: Header file for thumb-pe target.
25054 * config/arm/t-thumb-pe: New file: Makefile fragment for
25055 thumb-pe target.
25056
25057 1999-07-01 Mark Kettenis <kettenis@gnu.org>
25058
25059 * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
25060 -fPIC or -fpic is specified.
25061
25062 Wed Jun 30 03:31:54 1999 Jeffrey A Law (law@cygnus.com)
25063
25064 * expr.c (emit_block_move): Use copy_to_mode_reg for
25065 !TARGET_MEM_FUNCTIONS case too.
25066
25067 * configure.in (hppa*-*-*): Add som.h or elf.h to tm_file as
25068 appropriate.
25069 * configure: Rebuilt.
25070 (hppa1.1-*-pro*, hppa1.1-*-rtems*): Define target_cpu_default.
25071 * pa.h: Include dbxelf.h. Delete various dbx/stabs related
25072 definitions made redundant by dbxelf.h inclusion. Delete
25073 lots of definitions related to assembly output that are
25074 specific to the SOM object format.
25075 * pa.c (output_function_prologue): Do not emit the function's
25076 name for OBJ_ELF.
25077 * pa-pro-end.h (STARTFILE_SPEC): Undefine before redefining.
25078 * pa-pro.h: Deleted.
25079 * som.h: New file with SOM specific definitions.
25080 * elf.h: New file with ELF specific definitions.
25081
25082 * elfos.h (const_section): Output a tab before assembler directives.
25083 (ctors_section, dtors_section): Likewise.
25084 (ASM_OUTPUT_SECTION_NAME): Likewise.
25085
25086 * pa/pa1.h: Delete unused file.
25087
25088 Tue Jun 29 01:37:53 1999 Jeffrey A Law (law@cygnus.com)
25089
25090 * configure.in (hppa*-hp-hpux11*): New configuration.
25091 * configure: Rebuilt.
25092 * pa/pa-hpux11.h: New file.
25093 * pa.h (CPP_SPEC): Conditionally add -D__STDC_EXT__ to the cpp
25094 command line.
25095
25096 * mips.md (leasi, leadi): New patterns.
25097
25098 * expr.c (emit_block_move): Properly handle case where one of the
25099 block move arguments has a queued increment or decrement.
25100 (clear_storage): Similarly. Fix formatting goof.
25101
25102 1999-06-28 "David O'Brien" <obrien@NUXI.com>
25103
25104 * fixinc/inclhack.def(stdio_va_list): This patch Removes a
25105 semicolon from the BSD VA_LIST replacement expression.
25106
25107 * fixinc/inclhack.sh: regen
25108 * fixinc/fixincl.x: regen
25109
25110 * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
25111 now use the fixincl program.
25112
25113 Mon Jun 28 05:28:12 1999 Jeffrey A Law (law@cygnus.com)
25114
25115 * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
25116 case. Also make the PIC register call_used.
25117
25118 * m68k.h (FINALIZE_PIC): Delete.
25119 * m68k.c (finalize_pic): Delete.
25120
25121 Mon Jun 28 05:16:35 1999 Richard Henderson <rth@cygnus.com>
25122
25123 * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
25124 to memory.
25125
25126 Mon Jun 28 04:07:27 1999 David Edelsohn <edelsohn@gnu.org>
25127
25128 * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
25129
25130 Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
25131
25132 * jump.c (jump_optimize_1): Validate the cmov copy to a temporary.
25133
25134 Sat Jun 26 17:18:18 1999 David Edelsohn <edelsohn@gnu.org>
25135
25136 * rs6000.c (print_operand, case 'L'): Use plus_constant_for_output.
25137
25138 Fri Jun 25 11:33:24 1999 Richard Henderson <rth@cygnus.com>
25139
25140 * alpha.c (override_options): Add -mcpu=ev45 as an alias for ev4.
25141
25142 Fri Jun 25 13:41:25 1999 David Edelsohn <edelsohn@gnu.org>
25143
25144 * rs6000.c (output_toc): Always use hex values for floating-point
25145 constants. Store single-precision values in upper-half of TOC
25146 entry in 64-bit mode.
25147 * rs6000.md (floatsidf2, floatunssidf2): Add !TARGET_POWERPC64
25148 to final constraints.
25149 (fix_truncdfsi2 splitter): Change pattern matching fctiwz.
25150 (fctiwz): Improve accuracy of RTL for pattern.
25151
25152 Fri Jun 25 11:26:38 1999 Gavin Romig-Koch <gavin@cygnus.com>
25153
25154 * expr.c (expand_expr): Allow RTL_EXPR's through the
25155 MAX_INTEGER_COMPUTATION_MODE checks.
25156
25157 Fri Jun 25 06:06:37 1999 Richard Henderson <rth@cygnus.com>
25158
25159 * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
25160 such that MASK_SUPPORT_ARCH is not negative.
25161
25162 Fri Jun 25 05:35:44 1999 Jeffrey A Law (law@cygnus.com)
25163
25164 * loop.c (verify_dominator): Properly handle ADDR_VEC and
25165 ADDR_DIFF_VEC insns that appear inside loops.
25166
25167 Thu Jun 24 22:54:05 1999 David Edelsohn <edelsohn@gnu.org>
25168 Jeff Law <law@cygnus.com>
25169
25170 * rs6000.md (movdf_hardfloat32): Revert previous patch.
25171 Handle LO_SUM the same as offsettable in cases 1 and 2.
25172 * rs6000.c (find_addr_reg): Revert previous patch.
25173
25174 Thu Jun 24 22:43:12 1999 Philippe De Muyter <phdm@macqel.be>
25175
25176 * system.h (strstr): New external function declaration.
25177 * acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
25178 * configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
25179 * config.in, configure: Rebuilt.
25180
25181 1999-06-24 Tom Tromey <tromey@cygnus.com>
25182
25183 * gcc.c (main): Read user-specified specs files after computing
25184 additional startfile_prefixes.
25185
25186 Thu Jun 24 15:00:47 1999 Mark Mitchell <mark@codesourcery.com>
25187
25188 Revert these two patches:
25189
25190 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25191 * loop.c (strength_reduce): When doing biv->giv conversion, update
25192 reg note of NEXT->insn.
25193
25194 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25195 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
25196 reg_biv_class.
25197 (recombine_givs): Set ix field after sorting.
25198
25199 Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25200
25201 * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
25202 for the parts of an UNSPEC / UNSPEC_VOLATILE.
25203
25204 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
25205
25206 *fixinc/inclhack.def: Add fix development commentary
25207 (read_ret_type): reactivate and add selection clause
25208 (zzz_*): tweak output file name to match what is used in hackshell.tpl
25209 *fixinc/{fixincl.x|inclhack.sh}: regen
25210
25211 Wed Jun 23 00:48:21 1999 Jason Merrill <jason@yorick.cygnus.com>
25212
25213 * expr.c (expand_expr): STRIP_NOPS before checking against
25214 MAX_INTEGER_COMPUTATION_MODE
25215 (check_max_integer_computation_mode): Likewise.
25216
25217 Tue Jun 22 20:23:43 1999 Jim Wilson <wilson@cygnus.com>
25218
25219 * md.texi (smul@var{m}3_highpart): Add missing 's' prefix.
25220
25221 1999-06-22 Jim Wilson <wilson@cygnus.com>
25222
25223 * expr.c (store_expr): When target is a promoted subreg, return a
25224 promoted subreg as a result.
25225
25226 Tue Jun 22 17:14:58 1999 Michael Meissner <meissner@cygnus.com>
25227
25228 * dwarf2out.c (dwarf2out_frame_debug_expr): Reformat to match GNU
25229 coding standards.
25230 (dwarf2out_define): Mark unused parameters appropriately.
25231 (gen_unspecified_parameters_die): Ditto.
25232 (gen_subprogram_die): Fix signed/unsigned warnings.
25233 (gen_variable_die): Ditto.
25234
25235 1999-06-22 Bruce Korb <ddsinc09@ix.netcom.com>
25236
25237 * fixinc/inclhack.def(end_else_label): combined else_label
25238 and endif_label and fixed the sed expression.
25239 *fixinc/{fixincl.x|inclhack.sh}: regen
25240
25241 Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com)
25242
25243 * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting
25244 'x' when handling non-offsettable addresses
25245
25246 Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com)
25247
25248 * final.c (shorten_branches): Don't try to split an insn that has
25249 been deleted.
25250
25251 Mon Jun 21 12:47:39 1999 Mark Mitchell <mark@codesourcery.com>
25252
25253 * config/mips/mips.c (symbolic_expression_p): New function.
25254 (mips_select_rtx_section): Put symbolic expressions in the
25255 data section, not the read-only data section.
25256
25257 Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
25258
25259 * rs6000.md (find_addr_reg): Handle LO_SUM addresses.
25260
25261 Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
25262
25263 * collect2.c (main): Log frame table count.
25264 (GCC_OK_SYMBOL) [ECOFF]: Accept stGlobal.
25265 (scan_prog_file) [COFF]: Handle frame tables.
25266
25267 * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
25268 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
25269 * alpha/elf.h: Undef them again.
25270 * alpha/vms.h: Remove their definitions.
25271
25272 Tue Jun 22 03:17:53 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25273
25274 * sh.c (machine_dependent_reorg): When fixing up fp pcloads,
25275 remove the clobber of r0 and change the REG_UNUSED note to
25276 REG_INC.
25277
25278 1999-06-21 Jakub Jelinek <jj@ultra.linux.cz>
25279
25280 * real.c (ereal_from_double): Fix for 64-bit big endian hosts.
25281 * emit-rtl.c (gen_lowpart_common): Add case for hosts where double
25282 fits in HOST_WIDE_INT and one uses union to access a long constant
25283 as double.
25284
25285 Mon Jun 21 17:18:25 1999 Richard Henderson <rth@cygnus.com>
25286
25287 * sparc.c (sparc_override_options): Don't allow profiling for
25288 code models other than medlow.
25289 (sparc_function_profiler): New function from old FUNCTION_PROFILER
25290 macro. Use ASM_GENERATE_INTERNAL_LABEL and MCOUNT_FUNCTION.
25291 (sparc_function_block_profiler): Likewise. Use user_label_prefix.
25292 (sparc_block_profiler): Likewise.
25293 (sparc_function_block_profiler_exit): Likewise.
25294 * sparc.h (FUNCTION_PROFILER): Call new sparc.c function.
25295 (FUNCTION_BLOCK_PROFILER): Likewise.
25296 (BLOCK_PROFILER): Likewise.
25297 (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
25298 (MCOUNT_FUNCTION): New.
25299 * sparc/pbd.h (FUNCTION_PROFILER): Delete.
25300 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Delete.
25301 * sparc/sun4o3.h (FUNCTION_PROFILER): Delete.
25302 (MCOUNT_FUNCTION): New.
25303 * sparc/sysv4.h (FUNCTION_BLOCK_PROFILER): Delete.
25304 (BLOCK_PROFILER): Delete.
25305 (MCOUNT_FUNCTION): New.
25306
25307 Mon Jun 21 14:11:29 1999 David Edelsohn <edelsohn@gnu.org>
25308
25309 * rs6000.md (movdf_hardfloat32): Fix typo in case 2.
25310
25311 Mon Jun 21 12:27:17 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
25312
25313 * config/mips/elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25314 Add the macros.
25315
25316 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25317 Ditto.
25318
25319 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25320 Ditto.
25321
25322 * config/arm/telf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25323 Ditto.
25324
25325 Mon Jun 21 14:58:42 1999 Nick Clifton <nickc@cygnus.com>
25326
25327 * config/arm/arm.h: Add cpp support for ARM920 and ARM920T cpu
25328 types.
25329
25330 Mon Jun 21 06:22:21 1999 Mark Elbrecht <snowball3@bigfoot.com>
25331
25332 * i386/djgpp.h (LIB_SPEC): New.
25333 (STARTFILE_SPEC): New.
25334
25335 * i386/xm-djgpp.h (NO_SYS_SIGLIST): Deleted. Now obsolete.
25336
25337 Mon Jun 21 06:19:33 1999 Philippe De Muyter <phdm@macqel.be>
25338
25339 * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in
25340 compiler flags.
25341
25342 * system.h (WSTOPSIG): New macro.
25343
25344 Mon Jun 21 05:33:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
25345
25346 * c-pragma.c (push_alignment): Don't ignore alignments greater than
25347 4 bytes.
25348 (insert_pack_attributes): Take into account member natural
25349 alignment.
25350
25351 * i386/winnt.c (exports_head): New static variable.
25352 (i386_pe_record_exported_symbol): New function.
25353 (i386_pe_asm_file_end): Use.
25354 * i386/cygwin.h (ASM_OUTPUT_COMMON): Record the exported
25355 symbols to be emitted at end of assembly.
25356 (ASM_DECLARE_OBJECT_NAME): Likewise.
25357 (ASM_DECLARE_FUNCTION_NAME): Likewise.
25358
25359 * i386/uwin.h (CPP_SPEC): Use -idirafter instead -iprefix and
25360 -iwithprefix.
25361
25362 Mon Jun 21 04:44:31 1999 Jeffrey A Law (law@cygnus.com)
25363
25364 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Fix paren error introduced
25365 in last change.
25366
25367 Sun Jun 20 17:27:20 1999 Richard Henderson <rth@cygnus.com>
25368
25369 * haifa-sched.c (sched_analyze_1): Use free_list instead of
25370 zapping reg_last_uses directly.
25371 (sched_analyze_2, sched_analyze_insn): Likewise.
25372 (sched_analyze): Likewise. Don't clear reg_last_uses on calls.
25373
25374 Sun Jun 20 16:57:29 1999 David Edelsohn <edelsohn@gnu.org>
25375
25376 * rs6000.md (movdf_hardfloat32): Use worst case insn length
25377 attributes for cases 1 and 2.
25378
25379 Sat Jun 19 22:52:55 1999 Richard Henderson <rth@cygnus.com>
25380
25381 * haifa-sched.c (sched_analyze): Mark call-user regs as clobbered
25382 instead of set.
25383
25384 Sat Jun 19 05:40:07 1999 Philip Blundell <pb@nexus.co.uk>
25385
25386 * arm.c (arm_reload_in_hi): Invert sense of test on BYTES_BIG_ENDIAN.
25387
25388 Sat Jun 19 05:25:05 1999 Richard Earnshaw (rearnsha@arm.com)
25389
25390 * arm.h (CONDITIONAL_REGISTER_USAGE): If flag_pic, never use
25391 PIC_OFFSET_TABLE_REGNUM for general alloaction.
25392 (INITIAL_ELIMINATION_OFFSET): Count the fact that the PIC register
25393 must be stacked if it is used for PIC accesses.
25394 * arm.c (use_return_insn): Handle PIC register specially.
25395 (output_return_instruction): Likewise.
25396 (output_func_{prologue,epilogue}): Likewise.
25397 (output_expand_prologue): Likewise.
25398
25399 * arm.md (*adddf_esfdf_df): Renamed from *adddf_df_esfdf.
25400 (*strsi_predec): Renamed from *strqi_predec.
25401 (*loadsi_shiftpreinc): Renamed from *loadqi_shiftpreinc.
25402 (*loadsi_shiftpredec): Renamed from *loadqi_shiftpredec.
25403
25404 * arm.c (arm_override_options): Remove warning about PIC code
25405 not being supported.
25406
25407 Fri Jun 18 23:47:06 1999 David Edelsohn <edelsohn@gnu.org>
25408
25409 * rs6000.c (find_addr_reg): New function.
25410 * rs6000.h (find_addr_reg): Declare.
25411 (offsettable_addr_operand): Delete.
25412 * rs6000.md (movdf_hardfloat32): Handle non-offsettable loads
25413 from and stores to GPRs.
25414
25415 Fri Jun 18 15:44:18 1999 Richard Henderson <rth@cygnus.com>
25416
25417 * alpha.c (alpha_expand_block_move): Use get_insns rather than
25418 gen_sequence as argument to emit_no_conflict_block.
25419
25420 Fri Jun 18 07:02 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25421
25422 * fixinc/mkfixinc.sh: enable the fixincl program for DG/UX
25423 * fixinc/inclhack.def(dgux_int_varargs): script must end with \n
25424 *fixinc/fixincl.x: regen
25425 *fixinc/inclhack.sh: regen
25426
25427 Thu Jun 17 15:06:10 PDT 1999 Don Lindsay <dlindsay@cygnus.com>
25428
25429 * added support for -mpcrel (PC relative addressing for m68k)
25430 based on code done by Michael Tiemann <tiemann@axon.cygnus.com>.
25431 * invoke.texi (m68000 options): Add documentation for -mpcrel flag.
25432 * m68k.c (print_operand_address): Handle 32-bit PIC case.
25433 (comments for general_src_operand): Add some explanation
25434 about EXTRA_CONSTRAINTS.
25435 (OVERRIDE_OPTIONS): Enable -fPIC in combination with -mpcrel.
25436 * m68kelf.h (OVERRIDE_OPTIONS): Ditto.
25437 (LEGITIMATE_PIC_OPERAND_P): Fix typo.
25438 (LEGITIMATE_PIC_OPERAND_P): Re-derive from m68k.h case.
25439 * m68k.h (LEGITIMATE_PIC_OPERAND_P): Fix delete-o.
25440 (INDIRECTABLE_1_ADDRESS): Delete spurious '/' at end of macro.
25441 (OVERRIDE_OPTIONS): Change behavior so that -mpcrel implies -fpic
25442 if not already set.
25443 (OVERRIDE_OPTIONS): Merge in changes from m68k.h.
25444 * m68k.h (TARGET_PCREL): New target flag.
25445 (TARGET_SWITCHES): Add "pcrel" as a recognized switch.
25446 (OVERRIDE_OPTIONS): Add checks for -mpcrel.
25447 (LEGITIMATE_PIC_OPERAND_P): Don't normally accept anything that
25448 contains a SYMBOL_REF. Relax this constraint during reload, since
25449 we want to use the predicates, not reload's built-in concept of a
25450 valid memory address, to control what insns need reloading.
25451 (EXTRA_CONSTRAINT): Define constraints to accept pc-relative
25452 operands (essentially 'g', 'm', and 's' under normal circumstances).
25453 * m68k.c (print_operand): Cause printing of pc-relative addresses
25454 to include pc register.
25455 (print_operand_address): Ditto.
25456 (general_src_operand): Accept operands that are not only
25457 general_operands, but are also valid when used as a pc-relative
25458 source.
25459 (nonimmediate_src_operand): Similar, for nonimmediate_operands.
25460 (memory_src_operand): Similar, for memory_operands.
25461 (pcrel_address): New predicate to accept the special case of a
25462 pc-relative address.
25463 * m68k.md (many patterns): Rewrite common SImode, HImode, and
25464 QImode insns to accept *_src_operand instead of *_operand where
25465 pc-relative operands can fit. For example, a pc-relative operand
25466 can be used as a memory source operand for addsi3, but not as a
25467 memory destination.
25468 * hp320.h linux.h m68kv4.h (LEGITIMATE_PIC_OPERAND_P) as in m68k.h.
25469
25470 Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
25471
25472 * config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
25473 .thumb_set pseudo op to mark aliases of thumb functions.
25474
25475 Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
25476
25477 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in
25478 preference to ASM_OUTPUT_DEF, if it is defined.
25479
25480 * tm.texi: Document new, optional target macro
25481 ASM_OUTPUT_DEF_FROM_DECLS.
25482
25483 Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25484
25485 * fixincludes: ISCNTL patch
25486 * fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
25487 (dgux_int_varargs): new for DG/UX
25488 * fixinc/{fixincl.x,inclhack.sh}: Regenerated.
25489
25490 Thu Jun 17 21:34:24 1999 Jeff Law <law@cygnus.com>
25491
25492 * invoke.texi (ia32 options): Fix typo.
25493
25494 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25495
25496 * loop.c (strength_reduce): When doing biv->giv conversion, update
25497 reg note of NEXT->insn.
25498
25499 Thu Jun 17 14:25:08 1999 Jeffrey A Law (law@cygnus.com)
25500
25501 * loop.c (move_movables): Note issues with replacing REGs with
25502 SUBREGs.
25503 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Handle SUBREGs properly.
25504
25505 Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
25506
25507 * i386/freebsd-elf.h (LINK_SPEC): Fix typo.
25508
25509 * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
25510 the reference to `mcount' was not correct for the ELF on FreeBSD.
25511
25512 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25513
25514 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
25515 reg_biv_class.
25516
25517 (recombine_givs): Set ix field after sorting.
25518
25519 Thu Jun 17 02:54:30 1999 Jeffrey A Law (law@cygnus.com)
25520
25521 * emit-rtl.c (operand_subword): Tighten checks for when it is safe
25522 to safe to extract a subword out of a REG.
25523
25524 Thu Jun 17 01:45:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25525
25526 * sh.md (mulsi3): Don't add a no-op move at the end.
25527
25528 Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25529
25530 * cse.c (cse_insn): Don't put hard register source into tables for
25531 the last insn of a libcall.
25532
25533 Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25534
25535 * loop.c (strength_reduce): Insert sets of derived givs at every
25536 biv increment, even if it's the only one.
25537
25538 Wed Jun 16 10:33:02 1999 Jason Merrill <jason@yorick.cygnus.com>
25539
25540 * dwarfout.c (add_incomplete_type): New fn.
25541 (output_type): Call it.
25542 (retry_incomplete_types): New fn.
25543 (dwarfout_finish): Call it.
25544
25545 From Eric Raskin <ehr@listworks.com>:
25546 (output_type): Output types for bases.
25547
25548 Tue Jun 15 12:51:23 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
25549
25550 * mips.c (mips_output_conditional_branch): Add `break'
25551 between `default' label and `close braces'.
25552
25553 Tue Jun 15 01:55:20 1999 David O'Brien <obrien@FreeBSD.org>
25554
25555 * i386/freebsd-elf.h (LINK_SPEC): clean up the linking library
25556 specifications and make it realistic.
25557 (LIB_SPEC): Likewise.
25558
25559 Mon Jun 14 15:38:43 1999 Jim Wilson <wilson@cygnus.com>
25560
25561 * config/mips/mips.c (mips_secondary_reload_class): Check for
25562 (PLUS (SP) (REG)) and return appropriate register class.
25563 * config/mips/mips.md (reload_insi): Delete predicate for operand 1.
25564 Handle (PLUS (SP) (REG)).
25565 (tablejump): In mips16 code, use emit_insn instead of emit_jump_insn.
25566 (tablejump_mips161, tablejump_mips162): Use emit_jump_insn instead
25567 of emit_insn for tablejump.
25568
25569 Mon Jun 14 17:26:40 1999 David Edelsohn <edelsohn@gnu.org>
25570
25571 * rs6000.c (output_prolog): RS6000_CALL_GLUE must be
25572 asm_fprintf format string by itself.
25573 (output_function_profiler): Likewise.
25574
25575 Mon Jun 14 12:57:38 1999 David Mosberger <davidm@hpl.hp.com>
25576
25577 * combine.c (simplify_logical, case AND): Only call
25578 simplify_and_const_int if the mode is no wider than HOST_WIDE_INT
25579 or the constant is positive.
25580
25581 Mon Jun 14 11:43:41 1999 Nick Clifton <nickc@cygnus.com>
25582
25583 * configure.in: Fix typo in rs6000-ibm-aix4 case.
25584 * configure: Regenerate.
25585
25586 Mon Jun 14 03:55:40 1999 Jeffrey A Law (law@cygnus.com)
25587
25588 * configure.in (rs6000-ibm-aix4.3*, powerpc-ibm-aix4.3*): Do not
25589 require a sub-version #.
25590 * configure: Rebuilt.
25591
25592 1999-06-14 Robert Lipe (robertlipe@usa.net)
25593
25594 * svr4.h (DWARF2_DEBUGGING_INFO): Check for redefinition.
25595
25596 Mon Jun 14 10:30:52 BST 1999 Nathan Sidwell <nathan@acm.org>
25597
25598 * c-typeck.c (process_init_element): Detect excess elements in
25599 char array initializer.
25600
25601 1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
25602
25603 * gcc.texi: Mention gcc 2.96 instead of egcs 1.00.
25604
25605 Sat Jun 12 22:29:48 EDT 1999 Jerry Quinn <jquinn@nortelnetworks.com>
25606
25607 * invoke.texi (Option Summary): Add -fpermissive flag.
25608
25609 Sat Jun 12 03:40:42 1999 Jeffrey A Law (law@cygnus.com)
25610
25611 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Do nothing with operands
25612 that require PIC code sequences.
25613
25614 Wed Jun 9 16:29:01 1999 Nick Clifton <nickc@cygnus.com>
25615
25616 * configure.in: Add new target: thumb-elf.
25617 * configure: Regenerate.
25618 * config/arm/t-thumb-elf: New file: Makefile fragment for
25619 thumb-elf build.
25620 * config/arm/telf.h: New file: Header file for thumb-elf
25621 build.
25622
25623 Fri Jun 11 03:17:51 1999 Jeffrey A Law (law@cygnus.com)
25624
25625 * Makefile.in (libgcc2): Pass MAYBE_USE_COLLECT2 as an argument.
25626 * libgcc2.c (__CTOR_LIST, __DTOR_LIST); Do not provide
25627 initializers is some circumstances.
25628
25629 * fixinc/inclhack.def (endif_label): Add additional selector for
25630 more bogus stuff after #endif statements.
25631 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
25632
25633 Thu Jun 10 20:44:36 1999 Mumit Khan <khan@xraylith.wisc.edu>
25634
25635 * i386/cygwin.h (SET_ASM_OP): Define.
25636
25637 Thu Jun 10 20:37:57 1999 Mumit Khan <khan@xraylith.wisc.edu>
25638
25639 * reg-stack.c (stack_reg_life_analysis): Find all the RETURN insns.
25640
25641 Thu Jun 10 19:23:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25642
25643 * sh.h (TARGET_HARWARD, TARGET_HARVARD): Changed the former to the
25644 latter.
25645
25646 * sh.md (ic_invalidate_line_i): Remove second alternative.
25647
25648 Thu Jun 10 06:55 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25649
25650 *fixinc/inclhack.def(sun_auth_proto): We do not know how to
25651 test for the presence of valid prototypes. Delete bypass expr.
25652 (ioctl_fix_ctrl): Correct the selection expression.
25653 (no_double_slash): Correct quoting rules
25654 *fixinc/fixincl.x: regen
25655 *fixinc/inclhack.sh: regen
25656
25657 Thu Jun 10 15:08:15 1999 Nick Clifton <nickc@cygnus.com>
25658
25659 * config/arm/arm.c (struct all_cores): Add ARM920 and ARM920t.
25660
25661 Wed Jun 9 15:57:57 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25662
25663 * rs6000.md (movsi_got_internal_mem): Delete.
25664 * rs6000.h (CONDITIONAL_REGISTER_USAGE): Mark PIC_OFFSET_TABLE_REGNUM.
25665 (GOT_TOC_REGNUM): Delete.
25666 (PIC_OFFSET_TABLE_REGNUM): Define.
25667 (FINALIZE_PIC): Disable.
25668 * rs6000.c (rs6000_got_register): New code for fixed pic register.
25669 (rs6000_replace_regno): Delete.
25670 (rs6000_finalize_pic): Likewise.
25671 (output_prolog): Handle PIC_OFFSET_TABLE_REGNUM.
25672
25673 Wed Jun 9 19:44:26 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25674
25675 * loop.c (loop_insn_first_p): Don't compare LUIDs when P
25676 is a note; use <= for the compare; advance P while it is
25677 a NOTE.
25678
25679 Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
25680
25681 * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
25682 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
25683
25684 * varasm.c (remove_from_pending_weak_list): Verify t->name
25685 is non-NULL before passing it to strcmp.
25686
25687 Wed Jun 9 06:50 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25688
25689 *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
25690 the typed arguments are not part of a comment
25691 (ioctl_fix_ctrl): Added a purpose comment
25692 *fixinc/fixincl.x: regenerate
25693 *fixinc/inclhack.sh: regenerate
25694
25695 Wed Jun 9 22:57:02 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25696
25697 * invoke.texi: Add C4x invocation docs.
25698
25699 Wed Jun 9 22:34:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25700
25701 * config/c4x/c4x.h (TARGET_EXPOSE_LDP, LEGITIMIZE_RELOAD_ADDRESS):
25702 Define new macros.
25703 * config/c4x/c4x.c (c4x_emit_move_sequence, src_operand): Use
25704 TARGET_EXPOSE_LDP.
25705 (c4x_legitimize_reload_address): New function.
25706 * config/c4x/c4x.md: Update docs.
25707
25708 Wed Jun 9 04:14:48 1999 Jeffrey A Law (law@cygnus.com)
25709
25710 * fixincludes: Avoid removing '.'.
25711 * fixinc/fixinc.svr4: Likewise.
25712 * fixinc/fixinc.winnt: Likewise.
25713 * fixinc/inclhack.tpl: Likewise.
25714 * fixinc/fixincl.sh, fixinc/inclhack.sh: Rebuilt.
25715
25716 1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25717
25718 * fixinc/inclhack.def (sun_catmacro): Escape parens in the select
25719 pattern.
25720 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
25721
25722 Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
25723
25724 * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
25725 correctly.
25726
25727 Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
25728
25729 * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
25730 * configure: Regenerate.
25731
25732 Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
25733
25734 * optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
25735 values.
25736
25737 Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
25738
25739 * fixinc/inclhack.def (avoid_bool): Also catch
25740 "typedef [unsigned] int bool".
25741 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
25742
25743 * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
25744 * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
25745 * configure: Rebuilt.
25746
25747 Mon Jun 7 22:05:03 1999 Mark Kettenis <kettenis@gnu.org>
25748
25749 * config/i386/gnu.h: Include <gnu.h> right after <i386/linux.h>,
25750 such that we can override its definitions if necessary.
25751 (CPP_SPEC): New define. Support processor specific predefines via
25752 %(cpp_cpu).
25753 (CC1_SPEC): New define. Support processor specific compiler
25754 options via %(cc1_cpu).
25755 (STARTFILE_SPEC): New define. Use crt0.o instead of crt1.o for
25756 -static.
25757
25758 1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25759
25760 * fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
25761 between sed's -e flag, and the open-quote following it.
25762 * fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
25763
25764 Mon Jun 7 20:34:20 1999 Robert Lipe <robertlipe@usa.net>
25765 Jeffrey A Law (law@cygnus.com)
25766
25767 * varasm.c (assemble_start_function): Remove the function
25768 from the pending weak decls list when we define a function.
25769 (assemble_variable): Similarly for variables.
25770 (weak_finish): Ignore items on the list with a NULL name.
25771 (remove_from_ending_weak_list); New function to "remove" an item
25772 from the pending weak declarations list.
25773
25774 Mon Jun 7 19:27:07 1999 Jerry Quinn <jquinn@nortelnetworks.com>
25775
25776 * pa.md (fmpyfadd, fmpynfadd, fnegabs): New patterns.
25777
25778 Mon Jun 7 14:07:39 1999 Dave Brolley <brolley@cygnus.com>
25779
25780 * c-lex.c (GETC): Redefine to call getch.
25781 (UNGETC): Redefine to call put_back.
25782 (putback_buffer): New structure type.
25783 (putback): New static structure.
25784 (getch): New function.
25785 (put_back): New function.
25786 (yylex): Replace unused bytes from bad multibyte character.
25787
25788 Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
25789
25790 * cpplib.c (do_define): Cast `alloca' return value.
25791 (do_include, do_undef, do_pragma): Likewise.
25792 * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
25793 values.
25794 * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
25795 * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
25796
25797 Sun Jun 6 11:58:34 1999 Jakub Jelinek <jj@ultra.linux.cz>
25798
25799 * sparc.md (abstf2): This should be an expand.
25800 (split after abstf2_notv9): Fix mode.
25801 (abstf2_hq_v9): New pattern.
25802 (abstf2_v9): Only use when no hard quad.
25803 (absdf2_v9): Fix if target is not the same as source.
25804 (ashrsi3_extend, ashrsi3_extend2, lshrsi3_extend, lshrsi3_extend2):
25805 Add correct output constraints.
25806
25807 Sat Jun 5 17:04:16 1999 Craig Burley <craig@jcb-sc.com>
25808
25809 From Dave Love to egcs-patches on 20 May 1999 17:38:38 +0100:
25810 * invoke.texi: Clarify text vis-a-vis Intel CPUs.
25811
25812 Sat Jun 5 12:11:24 1999 Mark Mitchell <mark@codesourcery.com>
25813
25814 * mips.h (mips_output_conditional_branch): New function.
25815 (mips_adjust_insn_length): Likewise.
25816 (ASSEMBLER_SCRATCH_REGNUM): New macro.
25817 (ADJUST_INSN_LENGTH): Likewise.
25818 * mips.c (print_operand): Add `F' and `W' for floating-point
25819 comparison opcodes.
25820 (machine_dependent_reorg): Adjust MIPS16 code; instruction-lengths
25821 are now in bytes.
25822 (mips_adjust_insn_length): New function.
25823 (mips_output_conditional_branch): New function.
25824 * mips.md (length): Adjust attribute definition to handle
25825 conditional branches. Change lengths to bytes, rather than
25826 instructions throughout. Remove length attribute from
25827 instructions whose length is four bytes, and rely on the default
25828 instead.
25829 (dslot): Fix typo in comment.
25830 Reword conditional branch patterns to use
25831 mips_output_conditional_branch.
25832
25833 Fri Jun 4 13:30:27 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25834
25835 * alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
25836 (LIB_SPEC): Likewise.
25837 Link with -lprof1_r for -g/-pg.
25838
25839 1999-06-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
25840
25841 * loop.c (check_dbra_loop): Fix change of Jan 19.
25842
25843 Fri Jun 4 00:12:40 1999 Marc Espie <espie@cvs.openbsd.org>
25844
25845 * freebsd-elf.h (SWITCH_TAKES_ARG): Redefine, not define.
25846 (STARTFILE_SPEC): Define, override the svr4.h version.
25847 (ENDFILE_SPEC): Likewise.
25848
25849 Thu Jun 3 23:58:55 1999 Jeffrey A Law (law@cygnus.com)
25850
25851 * fixinc/inclhack.def (limits_ifndefs): Also apply to sys/limits.h
25852 * fixinc/fixincl.x: Regenerated.
25853 * fixinc/inclhack.sh: Regenerated.
25854
25855 Fri Jun 4 05:42:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25856
25857 * sh.c (barrier_align): Don't return early for normal branch/barrier
25858 when optimizing for SH2.
25859
25860 Thu Jun 3 22:27:50 1999 Robert Lipe <robertlipe@usa.net>
25861
25862 * i386/udk.h (LINK_SPEC): Correct linker search path for
25863 system libraries.
25864
25865 Fri Jun 4 03:20:40 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25866
25867 * sh.c (fixup_addr_diff_vecs): Emit braf reference label.
25868 (braf_label_ref_operand): Delete.
25869 * sh.h (PREDICATE_CODES): Remove braf_label_ref_operand.
25870 * sh.md (casesi_jump_2): Operand1 is now the inside of a
25871 label_ref, and has no predicate.
25872 The patten has a predicate to guard against invalid substitutions.
25873 (dummy_jump): Delete.
25874 (casesi): Update use of casesi_jump_2.
25875
25876 Thu Jun 3 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25877
25878 *fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
25879 *fixinc/fixincl.x: regenerate
25880 *fixinc/inclhack.sh: regenerate
25881
25882 Thu Jun 3 02:15:07 1999 Jason Merrill <jason@yorick.cygnus.com>
25883
25884 * dwarf2out.c (add_incomplete_type): New fn.
25885 (gen_struct_or_union_type_die): Call it.
25886 (retry_incomplete_types): New fn.
25887 (dwarf2out_finish): Call it.
25888
25889 Thu Jun 3 01:19:03 1999 Jeffrey A Law (law@cygnus.com)
25890
25891 * gcse.c (insert_insn_end_bb): Correct placement of insns when the
25892 current block starts with a CODE_LABEL and ends with a CALL and
25893 we can not find all the argument setup instructions for the CALL.
25894
25895 Wed Jun 2 15:44:15 1999 Mark Mitchell <mark@codesourcery.com>
25896
25897 Revert this change:
25898 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
25899 something is a candidate for optimize_bit_field_compare.
25900
25901 Wed Jun 2 21:53:05 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25902
25903 * sh.h (CONST_OK_FOR_I, CONST_OK_FOR_L): Cast VALUE to HOST_WIDE_INT.
25904
25905 Wed Jun 2 12:25:55 1999 Richard Henderson <rth@cygnus.com>
25906
25907 * alpha.c (override_options): Thinko in last patch.
25908
25909 * alpha/osf.h (CPP_SUBTARGET_SPEC): Define.
25910 (LIB_SPEC): Recognize -pthread.
25911
25912 Wed Jun 2 08:42:55 1999 Nick Clifton <nickc@cygnus.com>
25913
25914 * config/arm/tcoff.h (USER_LABEL_PREFIX): Synchronise with
25915 definition in config/arm/coff.h
25916 * config/arm/coff.h: Add comment about USER_LABEL_PREFIX.
25917
25918 Wed Jun 2 07:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25919
25920 * fixinc/fixincl.c(global def): Add FD_SHELL_SCRIPT to mark
25921 fixes that need "file=xxx\n" prepended before invocation
25922 (start_fixer - new): starting the fixer process is complex enough
25923 to warrent its own routine. It prepends the "file=xxx\n" stuff.
25924 (process): uses the new routine; omit usage of putenv()
25925 * fixinc/fixincl.tpl: mark shell scripts with FD_SHELL_SCRIPT
25926 * fixinc/fixincl.x: regenerate
25927
25928 Wed Jun 2 02:29:07 1999 Jeffrey A Law (law@cygnus.com)
25929
25930 * README, configure.in, gcc.1, gcc.texi: Update name (egcs -> gcc)
25931 and version #s (1.1 -> 2.96) as needed.
25932 * README.g77: Kill way out of date file in the toplevel directory.
25933
25934 Wed Jun 2 00:52:34 1999 David O'Brien <obrien@FreeBSD.org>
25935
25936 * configure.in (i[34567]86-*-freebsdelf): Don't include linux.h,
25937 i386/freebsd-elf.h no longer requires it. Instead include svr4.h.
25938 * configure: Rebuilt.
25939 * i386/freebsd-elf.h (DEFAULT_VTABLE_THUNKS): Define.
25940 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, SET_ASM_OP): Likewise.
25941 (PREFERRED_DEBUGGING_TYPE, WCHAR_UNSIGNED): Likewise.
25942 (SWITCH_TAKES_ARG): Likewise.
25943 * i386/freebsd.h: Remove FREEBSD_NATIVE support.
25944 * config/t-freebsd: Moved from config/i386/ so it can used for all
25945 FreeBSD targets.
25946
25947 Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
25948
25949 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.
25950
25951 Wed Jun 2 00:08:34 1999 Robert Lipe <robertlipe@usa.net>
25952
25953 * configure.in (i[34567]86-*-udk*): Install headers with cpio.
25954 * configure: Rebuilt.
25955
25956 Tue Jun 1 19:06:22 1999 David Edelsohn <edelsohn@gnu.org>
25957
25958 * rs6000/aix41.h (RS6000_CALL_GLUE): Define.
25959 * rs6000/aix43.h (RS6000_CALL_GLUE): Likewise.
25960 * rs6000/rs6000.c (rs6000_file_start): Use putc.
25961 (rs6000_output_load_toc_table): Same.
25962 (output_prolog, output_mi_thunk): Same.
25963 * rs6000/rs6000.h (SELECT_SECTION): Formatting.
25964 (ASM_GLOBALIZE_LABEL): Use putc.
25965
25966 Mon May 31 15:23:23 1999 Richard Henderson <rth@cygnus.com>
25967
25968 * alpha.md (reload_*_help): New patterns and splitters.
25969 (reload_*): Use them.
25970 (mov[qh]i): Likewise.
25971
25972 Mon May 31 11:48:07 1999 Mark Mitchell <mark@codesourcery.com>
25973
25974 * cccp.c (handle_directive): Handle backslash-newlines in quoted
25975 strings correctly.
25976
25977 Mon May 31 09:36:11 1999 Cort Dougan <cort@cs.nmt.edu>
25978
25979 * rs6000/linux.h (LINK_SPEC): Use emulation elf32ppclinux.
25980
25981 Mon May 31 11:40:20 EDT 1999 John Wehle (john@feith.com)
25982
25983 * flow.c (mark_regs_live_at_end, insn_dead_p,
25984 mark_set_1, mark_used_regs): Only give FRAME_POINTER_REGNUM
25985 and HARD_FRAME_POINTER_REGNUM special treatment if reload
25986 hasn't run or the frame pointer is needed.
25987 * haifa-sched.c (attach_deaths): Likewise.
25988 * sched.c (attach_deaths): Likewise.
25989
25990 Mon May 31 00:46:17 1999 Jeffrey A Law (law@cygnus.com)
25991
25992 * jump.c (jump_optimize_1): Only set CAN_REACH_END if
25993 calculate_can_reach_end returns nonzero.
25994
25995 * configure.in (native gas tests): Search for an assembler in the
25996 same manner that the installed compiler will.
25997 * configure: Rebuilt.
25998 * tm.texi (MD_EXEC_PREFIX): Note need to update configure.in too.
25999
26000 * alias.c (find_base_term): Improve handling of addresses
26001 constructed from binary operations.
26002
26003 Sun May 30 14:29:17 1999 Eric Raskin (ehr@listworks.com)
26004
26005 * dgux.h (STARTFILE_SPEC): Fix incorrectly matched curly-braces.
26006
26007 Sun May 30 14:19:13 1999 Jeffrey A Law (law@cygnus.com)
26008
26009 * function.h (cleanup_label, frame_offset): Declare.
26010 (tail_recursion_label, tail_recursion_reentry): Likewise.
26011 (arg_pointer_save_area, rtl_expr_chain): Likewise.
26012 * stmt.c (cleanup_label, frame_offset): Delete extern declarations.
26013 (tail_recursion_label, tail_recursion_reentry): Likewise.
26014 (arg_pointer_save_area, rtl_expr_chain): Likewise.
26015
26016 Sat May 29 19:08:10 1999 Philip Blundell <philb@gnu.org>
26017
26018 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already
26019 defined.
26020 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define.
26021 (MAX_OFILE_ALIGNMENT): Define.
26022
26023 Fri May 28 21:40 1999 Robert Lipe <robertlipe@usa.net>
26024
26025 * fixincl.c: Replace local include scheme with #includes of
26026 gansidecl.h and system.h.
26027 * procopen.c: Likewise.
26028 * server.c: Likewise.
26029
26030 Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
26031
26032 * i386/t-dgux (EXTRA_PARTS): Add crti.o
26033 (crti.o): Add build rule and dependencies.
26034 * fixinc/fixinc.dgux: Use modified _int_varargs.h
26035
26036 Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26037
26038 * rs6000/sysv4.h (CC1_SPEC): Add support for -profile
26039 (LIB_LINUX_SPEC): Likewise.
26040 (LIB_LINUX_SPEC): Add support for -pthread
26041 (CPP_OS_LINUX_SPEC): Likewise.
26042 (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
26043 specified.
26044
26045 Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org)
26046
26047 * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
26048 conditional move.
26049 (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
26050 (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
26051 for IEEE math and CC_FCOMI.
26052 (put_jump_code): No IEEE if CC_FCOMI is set.
26053
26054 1999-05-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
26055
26056 * fold-const.c (fold_truthop): Make the field reference unsigned
26057 when converting a single bit compare.
26058
26059 Thu May 27 02:40:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26060
26061 * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
26062
26063 Thu May 27 02:09:27 1999 Jeffrey A Law (law@cygnus.com)
26064
26065 * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
26066 * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
26067 version did.
26068
26069 * reload.c (push_reload): Do not call remove_address_replacements
26070 when presented with identical optional reloads.
26071
26072 Wed May 26 14:18:05 1999 Richard Henderson <rth@cygnus.com>
26073
26074 * alpha.h (MASK_FIX, TARGET_FIX): New.
26075 (MASK_*): Reorganize constants.
26076 (CPP_AM_FIX_SPEC): New.
26077 (TARGET_SWITCHES): Add FIX.
26078 (EXTRA_SPECS): Likewise.
26079 (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
26080 (SECONDARY_MEMORY_NEEDED): Likewise.
26081 (REGISTER_MOVE_COST): Likewise.
26082 * alpha.c (override_options): Add FIX support. Always use
26083 ALPHA_TP_PROG for ev6.
26084 * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
26085 * alpha/elf.h (ASM_FILE_START): Look at FIX too.
26086 * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.
26087
26088 Wed May 26 09:53:05 1999 Mark Mitchell <mark@codesourcery.com>
26089
26090 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
26091 something is a candidate for optimize_bit_field_compare.
26092
26093 Wed May 26 09:40:02 1999 Mark Mitchell <mark@codesourcery.com>
26094
26095 * gcc.texi (Passes): Document branch-shortening.
26096 * invoke.texi (Debugging Options): Document the fact that `-dp'
26097 outputs length information for instructions.
26098
26099 Wed May 26 08:49:31 1999 Nick Clifton <nickc@cygnus.com>
26100
26101 * flow.c: Revert previous delta.
26102
26103 Wed May 26 06:05:10 1999 Nick Clifton <nickc@cygnus.com>
26104
26105 * flow.c (insn_dead_p): Check against frame_pointer_rtx not
26106 FRAME_POINTER_REGNUM.
26107 (mark_set_1): Ditto.
26108 (mark_used_regs): Ditto.
26109
26110 Wed May 26 02:19:31 1999 Philip Blundell <pb@nexus.co.uk>
26111
26112 * arm.h (NEED_PLT_GOT): Fix mistake in last change.
26113 (GOT_PCREL): New macro. Define to 1 if not already defined.
26114 * arm/elf.h (GOT_PCREL): Define to 0.
26115 * arm.c (arm_finalize_pic): Take into account the setting of
26116 GOT_PCREL.
26117
26118 Tue May 25 14:06:06 1999 Jeffrey A Law (law@cygnus.com)
26119
26120 * output.h (STRIP_NAME_ENCODING): Provide default definition.
26121 * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
26122
26123 * flow.c (mark_set_1): Do not record BLKmode stores as dead
26124 store elimination candidates.
26125
26126 Tue May 25 08:55:57 1999 Gavin Romig-Koch <gavin@cygnus.com>
26127
26128 * config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
26129 TARGET_GAS.
26130
26131 Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
26132
26133 * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
26134 Add use of x-aix41-gld.
26135
26136 Mon May 24 16:44:09 1999 Jakub Jelinek <jj@ultra.linux.cz>
26137
26138 * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
26139 (ASM_OUTPUT_DESTRUCTOR): Define.
26140
26141 Mon May 24 14:35:24 1999 Jeffrey A Law (law@cygnus.com)
26142
26143 * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
26144 last CODE_LABEL in a loop if we have previously passed a jump
26145 to the top of the loop.
26146
26147 Mon May 24 07:56:29 1999 Nick Clifton <nickc@cygnus.com>
26148
26149 * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): Fix blunder made when
26150 applying Philip's patch.
26151
26152 Mon May 24 01:02:12 1999 Mark Mitchell <mark@codesourcery.com>
26153
26154 * stmt.c (expand_end_bindings): Ignore any elements of VARS that
26155 are not VAR_DECLs.
26156
26157 Sun May 23 20:31:16 1999 Jeffrey A Law (law@cygnus.com)
26158
26159 * loop.c (strength_reduce): Grow reg_single_usage as needed.
26160
26161 Sun May 23 10:13:20 1999 David O'Brien <obrien@FreeBSD.org>
26162
26163 * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
26164 Also remove a useless comment.
26165
26166 Sun May 23 10:05:23 1999 Jerry Quinn <jquinn@nortelnetworks.com>
26167
26168 * pa.md (negdf2,negsf2): Use fneg instead of fsub on pa 2.0.
26169
26170 Sat May 22 21:02:06 1999 David Edelsohn <edelsohn@gnu.org>
26171
26172 * collect2.c (main): Only generate import or export file and add
26173 to link arguments if non-empty. Use xmalloc not alloca.
26174 (write_{export,import}_file): Delete.
26175 (write_aix_file): New function.
26176 (locatelib): Use xmalloc not malloc.
26177 (GCC_OK_SYMBOL): Do not check type if aix64.
26178
26179 Sat May 22 09:35:51 1999 Philip Blundell <pb@nexus.co.uk>
26180
26181 Based on patch by Scott Bambrough and Pat Beirne:
26182 * config/arm/arm.c (making_const_table): New variable.
26183 * config/arm/arm.h (making_const_table): Declare.
26184 (OUTPUT_INT_ADDR_CONST): Mark symbols as position independent if
26185 appropriate.
26186 * config/arm/arm.md (consttable_4, consttable_8, consttable_end):
26187 Keep track of when we are building the constant table.
26188
26189 Sat May 22 09:34:22 1999 Philip Blundell <pb@nexus.co.uk>
26190
26191 * config/arm/arm.c (arm_override_options): Fix erroneous warning
26192 message.
26193
26194 Sat May 22 09:06:33 1999 Nick Clifton <nickc@cygnus.com>
26195
26196 * config/arm/arm.h (NEED_PLT_GOT): Only define if not already
26197 defined.
26198
26199 Sat May 22 07:17:05 1999 Nick Clifton <nickc@cygnus.com>
26200
26201 * tm.texi (FUNCTION_ARG): Correct description of a stack element
26202 in a PARALLEL.
26203
26204 Sat May 22 01:27:49 1999 Mark Mitchell <mark@codesourcery.com>
26205
26206 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
26207
26208 Fri May 21 21:19:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26209
26210 * rs6000.c (output_mi_thunk): Enable full support again.
26211
26212 Fri May 21 20:09:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26213
26214 * sh.h (BRANCH_COST): Define.
26215
26216 Thu May 20 10:00:42 1999 Stephen L Moshier <moshier@world.std.com>
26217
26218 * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
26219
26220 Thu May 20 09:58:57 1999 Jan Hubicka <hubicka@freesoft.cz>
26221
26222 * function.c (assign_stack_local): Align stack slot propertly.
26223 (assign_outer_stack_local): Likewise.
26224
26225 Thu May 20 10:38:43 1999 Mark Mitchell <mark@codesourcery.com>
26226
26227 * expr.h (lang_expand_constant): Declare.
26228 * toplev.c (lang_expand_constant): Define it.
26229 * varasm.c (output_constant): Use it.
26230
26231 Thu May 20 11:28:53 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26232
26233 * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
26234 Change function definitions to K&R style.
26235
26236 Thu May 20 08:16:39 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26237
26238 * fixinc/fixincl.c: We must not ignore SIGCLD now.
26239
26240 Thu May 20 07:06:39 1999 Alexandre Oliva <aoliva@acm.org>
26241
26242 * fixinc/Makefile.in(gnu-regex.o): add $(INCLUDES) to compile options
26243 * fixinc/fixincl.c(wait_for_pid): K&R-ify arguments
26244 (several places): omit static initialization
26245 (process): use single fd, since only the read fd is used
26246 * fixinc/gnu-regex.c: define 'const' away, if not supported
26247 * fixinc/procopen.c(several places): omit static initialization
26248 * fixinc/server.c: define 'volitile' away, if not supported
26249
26250 1999-05-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
26251
26252 * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
26253 asm_fprintf and %L to generate the label name.
26254 * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
26255 (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
26256
26257 Thu May 20 01:40:55 1999 Jeffrey A Law (law@cygnus.com)
26258
26259 * jump.c (can_reverse_comparison_p): Do not abort if the comparison
26260 insn for a conditional jump can not be found.
26261
26262 Wed May 19 23:58:58 1999 Jeffrey A Law (law@cygnus.com)
26263
26264 * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
26265 on variables in specific sections other than .sbss and .sdata.
26266
26267 Wed May 19 03:56:56 1999 Mark Mitchell <mark@codesourcery.com>
26268
26269 * stmt.c (expand_return): Call start_cleanup_deferral and
26270 end_cleanup_deferral around conditional code.
26271
26272 Wed May 19 08:40:08 1999 Bruce Korb <ddsinc09@ix.netcom.com>
26273
26274 * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
26275 filename lists. Utilizes new "krstr" AutoGen function.
26276 * fixinc/fixincl.x: Rebuilt.
26277
26278 Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz)
26279
26280 * i386.c (output_float_compare): Avoid GNU-C extensions.
26281
26282 Wed May 19 00:34:40 1999 Jeffrey A Law (law@cygnus.com)
26283
26284 * version.c: Bump to distinguish mainline tree from the
26285 gcc-2.95 branch.
26286
26287 See ChangeLog.1 for earlier changes.