]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
6131937a3c6ee42637b14b04415226a7afa9c8d1
[gcc.git] / gcc / ChangeLog
1 2000-04-12 Jeffrey A Law (law@cygnus.com)
2
3 * function.c (purge_addressof): Unshare any shared rtl created by
4 purge_addressof and its children.
5
6 2000-04-12 Mark Mitchell <mark@codesourcery.com>
7
8 * function.c (aggregate_value_p): VOID_TYPE nodes are never
9 aggregates.
10
11 2000-04-05 Andreas Jaeger <aj@suse.de>
12
13 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
14 not compiling PIC code, add flags for mabi=64.
15 (SUBTARGET_CPP_SIZE_SPEC): New.
16 (SUBTARGET_CPP_SPEC): New.
17 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
18 for MIPS/Linux and lots of code needs these defines.
19
20 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
21
22 * reorg.c (fill_slots_from_thread): Check side_effects_p when
23 trying the "opposite arithmetic" approach.
24
25 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
26
27 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
28 (struct sh_args): Add new field force_mem.
29 (INIT_CUMULATIVE_ARGS): Initialize it.
30 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
31
32 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
33
34 (expand_call): Do not reverse args in "equal from" field.
35 (emit_library_call_value_1): Emit_libcall_block for const and pure
36 function.
37
38 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
39
40 * reload1.c (reload_combine): Don't enable optimization for fixed
41 registers when encountering a BARRIER.
42
43 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
44
45 * builtins.c (expand_builtin_memcmp): Do expansion even with
46 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
47
48 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
49 stack is propertly aligned; add sanity checking for aligned
50 stack pointer.
51 (expand_library_call_value_1): Add sanity checking for aligned
52 stack pointer.
53
54 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
55
56 * calls.c (emit_library_call_value_1): Change 3rd arg to
57 locate_and_pad_parm to disregard the setting of partial.
58
59 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
60
61 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
62
63 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
64 CALL_INSN from the normal case.
65
66 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
67
68 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
69 New global variables.
70 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
71 adjustment.
72 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
73 Declare,
74 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
75 TARGET_ADD_ESP_8): New macros.
76 * i386.md: Add peep2s to convert esp adjustments to push and pop
77 instructions.
78 (pushsi_prologue, popsi_epilogue): New patterns.
79
80 2000-04-12 Jakub Jelinek <jakub@redhat.com>
81
82 * real.c (toe64): Remove stale #endif from the last change.
83
84 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
85
86 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
87 * real.c (toe64): Revert previous change.
88
89 2000-04-12 Jakub Jelinek <jakub@redhat.com>
90
91 * objc/objc-act.c: Include ggc.h.
92 (objc_tree_index, objc_global_trees): Convert most of the
93 static tree variables into a static array with previous names
94 as defines.
95 (objc_ellipsis_node): New variable.
96 (lang_init): Call objc_act_parse_init and c_parse_init.
97 Create objc_ellipsis_node.
98 (build_selector_translation_table): Use objc_ellipsis_node instead
99 of (tree)1.
100 (hack_method_prototype): Likewise.
101 (get_arg_type_list): Likewise.
102 (start_method_def): Likewise.
103 (continue_method_def): Likewise.
104 (gen_method_decl): Likewise.
105 (ggc_mark_imp_list): New function.
106 (ggc_mark_hash_table): New function.
107 (objc_act_parse_init): New function.
108 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
109 * c-parse.in (c_parse_init): For objc add roots of objc specific
110 local tree variables.
111 * objc/objc-parse.y: Rebuilt.
112 * objc/objc-parse.c: Rebuilt.
113 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
114
115 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
116
117 * cse.c (delete_trivially_dead_insns): Also delete insns
118 that copy a register to itself where the destination is
119 a strict_low_part.
120
121 2000-04-11 Richard Henderson <rth@cygnus.com>
122
123 * flow.c (struct propagate_block_info): Add new_dead, new_live.
124 (propagate_block): Initialize them. Use them in parallel instead
125 of one tmp variable, ie revert much of the 0408 and 0407 functional
126 changes, but keep the structural changes.
127 (mark_set_regs): Take new_dead from propagate_block_info instead.
128 (mark_set_1, mark_set_reg): Likewise.
129 (mark_used_regs): Likewise with new_live.
130 (mark_used_reg): Likewise. Revert 0408 change.
131
132 2000-04-11 Nick Clifton <nickc@cygnus.com>
133
134 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
135 restriction.
136 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
137
138 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
139
140 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
141 const section to output a CONSTRUCTOR based on the same conditions
142 used for VAR_DECLs.
143
144 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
145
146 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
147 * pa/pa-protos.h (output_call): Add additional argument indicating
148 if the call is a sibling/tail call.
149 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
150 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
151 (function_arg, function_arg_partial_nregs): Likewise
152 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
153 (emit_move_sequence): Zero extend certain constants as needed
154 for TARGET_64BIT.
155 (compute_zdepdi_operands, output_64bit_and): New functions.
156 (output_64bit_ior, function_arg): Likewise.
157 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
158 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
159 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
160 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
161 (output_bvb): Likewise.
162 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
163 (output_call): New argument 'sibcall'. Generate sibcall sequences
164 as needed.
165 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
166 (ouput_arg_descriptor): Do not emit argument descriptors for
167 TARGET_64BIT.
168 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
169 defined.
170 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
171 (FUNCTION_OK_FOR_SIBALL): Define.
172 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
173 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
174 (CPP_SPEC): Use new spec infrastructure.
175 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
176 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
177 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
178 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
179 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
180 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
181 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
182 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
183 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
184 (FUNCTION_ARG); Call out to C code.
185 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
186 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
187 (MIN_UNITS_PER_WORD): Likewise.
188 * pa/pa.md (cmpdi): New expander.
189 (scc patterns, movstrsi): Not available for TARGET_64BIT.
190 (64bit conditional arithmetic): New patterns.
191 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
192 (movsicc): Not available if modes on all the operands to not match.
193 (movdicc): New expander and associated patterns.
194 (64bit branches): New patterns.
195 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
196 (pre_ldd, post_std): New patterns.
197 (64bit addil, load low part): New patterns.
198 (special movsf constant): Not available for TARGET_64BIT.
199 (movsf, movdf expanders): Force constants into memory.
200 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
201 (64bit movdf/movdi patterns): New patterns.
202 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
203 for TARGET_64BIT.
204 (extendqidi2, extendhidi2, extendsidi2): Similarly.
205 (adddi3 expander): Allow "arith_operand" for second input.
206 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
207 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
208 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
209 (muldi3): New expander for TARGET_64BIT.
210 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
211 for TARGET_64BIT.
212 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
213 patterns for TARGET_64BIT.
214 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
215 patterns for TARGET_64BIT.
216 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
217 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
218 (sibcall_epilogue): New expander.
219 (casesi): Tweak for TARGET_64BIT.
220 (call expanders): Set & use the outgoing argument pointer. Use the
221 64bit call patterns as needed. Add additional arg to output_call.
222 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
223 (sibcall, sibcall_internal_symref): New expanders.
224 (sibcall_value, sibcall_value_internal_symref
225 (interspace_jump): Turn into an expander + matching patterns.
226 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
227 * pa/pa64-regs.h: Eliminate trigraph sequences.
228 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
229
230 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
231
232 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
233 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
234 cpp_token with cpp_ttype everywhere.
235 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
236 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
237 CPP_BUF_COL. Line and column numbers are unsigned int, not
238 long.
239 * cpplex.c (cpp_buf_line_and_col): Delete.
240 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
241 'long lineno' to 'unsigned int lineno'.
242 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
243
244 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
245
246 * extend.texi: ISO C99 is not a draft anymore.
247 * invoke.texi: ISO C++ is not a draft anymore.
248 * cpp.texi: __cplusplus is required by the ISO standard.
249
250 * extend.texi (-fthis-is-variable): Undocument.
251 * flags.h (warn_template_debugging): Remove declaration.
252 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
253 -Wenum-clash, -Wtemplate-debugging): Undocument.
254
255 2000-04-10 Nick Clifton <nickc@cygnus.com>
256
257 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
258 integer.
259 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
260 integer.
261 (ARM_SIGN_EXTEND): Use HOST_UINT.
262 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
263 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
264 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
265 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
266
267 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
268 (arm_gen_constant): Use HOST_UINT.
269 (arm_canonicalize_constant): Use HOST_UINT.
270 (arm_reload_in_hi): Use HOST_UINT.
271 (arm_reload_out_hi): Use HOST_UINT.
272 (output_multi_immediate): Use HOST_UINT.
273 (int_log2): Use HOST_UINT.
274 (arm_poke_function_name): Use HOST_UINT.
275 (arm_output_epilogue): Use arm_volatile_func().
276 (output_thumb_prologue): Use arm_strip_name_encoding().
277
278 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
279
280 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
281 of sequence point problems.
282
283 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
284
285 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
286 Recomment.
287 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
288
289 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
290
291 * sbitmap.h: Whitespace changes and use upper-case macro args.
292 (struct simple_bitmap_def): All sizes now unsigned.
293 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
294 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
295 (sbitmap_vector_alloc): Parms and local vars now unsigned.
296 (sbitmap_zero): Cast bzero arg to PTR.
297 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
298 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
299 loop to make structure clearer.
300 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
301 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
302 (sbitmap_a_and_b_or_c): Likewise.
303 (sbitmap_intersection_of_succs): Minor cleanups.
304 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
305 (sbitmap_union_of_preds): Likewise.
306 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
307 (debug_sbitmap): New function.
308
309 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
310 * c-typeck.c (convert_for_assignment): Likewise.
311
312 * expmed.c (init_expmed): Don't free objects we make.
313 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
314
315 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
316 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
317
318 * gcse.c (expr_hash_table_size): Now unsigned.
319 (compute_ae_gen): Local variable `i' now unsigned.
320 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
321 (compute_transout, hoist_code): Likewise.
322 (compute_local_properties): Likewise, also hash_table_size.
323 (alloc_expr_hash_table): N_INSNS now unsigned.
324 (delete_null_pointer_checks): Mark arg F as unused.
325
326 * regrename.c: Minor cleanups, including chang some variables
327 to unsigned int.
328
329 2000-04-10 Neil Booth <NeilB@earthling.net>
330
331 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
332 than GETC ().
333 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
334
335 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
336
337 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
338 __classof__, and __headof__ from the list of gnu keywords.
339 (-ansi): Remove -foperator-names from list of implied options.
340 Do not call it ANSI C++.
341 (-foperator-names): Document as -fno-operator-names.
342
343 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
344
345 * cpphash.c (timestamp): Delete.
346 (del_HASHNODE): If type is T_MCONST, free value.cpval.
347 (special_symbol): Remove unnecessary braces. Remove
348 T_VERSION. Treat T_STDC like T_CONST unless
349 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
350 when one is encountered, then convert them into T_MCONST
351 nodes.
352 * cppinit.c (builtin_array): version_string is T_MCONST.
353 __STDC__ has a "1" in its cpval. Don't have a terminator
354 entry. Clean up which entries are dumped.
355 (initialize_builtins): Only __STDC__ gets the special
356 -traditional treatment. Count the length of builtin_array.
357 Render version_string here.
358 * cpphash.h: Remove T_VERSION. Add T_MCONST.
359 * cpplib.h (struct cpp_reader): Remove timebuf.
360
361 2000-04-09 Richard Henderson <rth@cygnus.com>
362
363 * genrecog.c (pred): Update comparison_operator for the unordered
364 operators.
365
366 * config/i386/i386.c (no_comparison_operator): Disallow unordered
367 operators.
368 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
369 (uno_comparison_operator): New.
370 (put_condition_code): Handle UNORDERED/ORDERED.
371 (unsigned_comparison): Likewise.
372 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
373 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
374 (ix86_expand_fp_compare): Use them. Take scratch as argument,
375 update all callers. Handle all 8 unordered operators.
376 (ix86_expand_setcc): Lose the unordered argument, update all callers.
377 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
378 * config/i386/i386.h (PREDICATE_CODES): Update.
379 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
380 (ix86_expand_branch, ix86_expand_setcc): Update.
381 * config/i386/i386.md (sunordered, sordered): New.
382 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
383 (bunordered, bordered): New.
384 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
385 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
386 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
387
388 2000-04-09 Philip Blundell <philb@gnu.org>
389
390 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
391
392 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
393
394 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
395 fix_truncxfhi2): New patterns.
396 * i386.c (output_fix_trunc): Handle converting to HImode.
397
398 2000-04-08 Alex Samuel <samuel@codesourcery.com>
399
400 * ssa.c (convert_to_ssa): Eliminate dead code when calling
401 life_analysis.
402 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
403 (for_each_successor_phi): Change parameter to basic_block.
404 (coalesce_regs_in_successor_phi_nodes): Likewise.
405 (coalesce_regs_in_copies): Likewise.
406 (compute_coalesced_reg_partition): Use basic_block instead of index.
407 * rtl.h (convert_to_ssa): Delete.
408 (convert_from_ssa): Likewise.
409 (successor_phi_fn): Likewise.
410 (for_each_successor_phi): Likewise.
411 (in_ssa_form): Likewise.
412 * basic-block.h (convert_to_ssa): Moved from rtl.h.
413 (convert_from_ssa): Likewise.
414 (successor_phi_fn): Likewise.
415 (in_ssa_form): Likewise.
416 (for_each_successor_phi): Likewise. Change parameter to basic_block.
417 * flow.c (calculate_global_regs_live): Pass a basic_block to
418 for_each_successor_phi.
419
420 2000-04-08 Richard Henderson <rth@cygnus.com>
421
422 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
423 was modified in the current insn.
424
425 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
426
427 * arm/thumb.md: Delete.
428 * arm/thumb-protos.h: Delete.
429
430 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
431
432 Merge changes from merged-arm-thumb-backend-branch onto trunk.
433
434 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
435
436 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
437 into branch.
438
439 * arm.md (nop): Use the standard RTL expression. Don't code as a
440 define_expand.
441 (*arm_nop, *thumb_nop): Delete.
442
443 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
444 constants. Use casts instead.
445 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
446 output_multi_immediate, arm_poke_function_name): Likewise.
447 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
448 MASK_RETURN_ADDDR): Likewise.
449
450 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
451
452 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
453 into branch.
454
455 * arm.md (eh_epilogue): New function.
456 * arm.h (struct machine_function): Move to here ...
457 * arm.c: ... from here.
458 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
459 (thumb_exit): Extra parameter eh_ofs. All callers changed.
460 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
461
462 2000-03-30 Nick Clifton <nickc@cygnus.com>
463
464 * config/arm/semi.h (ASM_SPEC): Restore definition.
465 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
466
467 * config/arm/elf.h (ASM_SPEC): Restore definition.
468 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
469
470 * config/arm/arm.h (ASM_SPEC): Remove definition.
471 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
472
473 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
474
475 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
476
477 2000-03-24 Nick Clifton <nickc@cygnus.com>
478
479 Various formating tidyups, elimination of compile time
480 warnings and synchronisation with internal sources:
481
482 * config/arm/arm-protos.h (assemble_align): Add prototype.
483 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
484 (gen_comapre_reg): Rename to arm_gen_compare_reg.
485 (arm_return_addr_rtx): Rename to arm_return_addr.
486
487 * config/arm/arm.c: Include except.h.
488 Define shorter typenames for strict minipool_node and struct
489 minipool_fix.
490 (arm_return_in_memory): For WinCE return all structures <= 32 bits
491 in memory.
492 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
493 (gen_comapre_reg): Rename to arm_gen_compare_reg.
494
495 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
496 already defined.
497 (ASM_SPEC): Define if not already defined.
498 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
499
500 * config/arm/arm.md: Rename references to gen_rotated_half_load to
501 arm_gen_rotated_half_load, and references to gen_comapre_reg to
502 arm_gen_compare_reg.
503 (indirect_jump): Only accept register operands.
504 (load_indirect_jump): Keep this pattern since combine can generate
505 it.
506
507 * config/arm/coff.h: Include aout.h.
508 (MULTILIB_DEFAULTS): Only define if not already defined.
509
510 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
511 into arm.h (so that COFF ports can support thumb based aliases).
512 (ASM_SPEC): Move definition into arm.h
513
514 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
515 redundant apcs spec.
516 (ASM_SPEC): Move definition to arm.h
517
518 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
519
520 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
521 for entries in the .bss section
522
523 2000-03-23 Nick Clifton <nickc@cygnus.com>
524
525 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
526 to thumb_far_jump_used_p.
527
528 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
529 single integer parameter.
530
531 * config/arm/arm.c (struct machine_function): Add two new
532 fields, 'far_jump_used' and 'arg_pointer_live'.
533 (thumb_far_jump_used_p): Once the decision has been made that
534 far jumps might be used, always return true.
535 If being called from the initial elimination offset macro then
536 do not bother to perform the test if the arg pointer is not
537 being used.
538 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
539 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
540
541 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
542
543 * arm.c (output_return_instruction): Handle more cases where we can
544 return from a function with an ldr instruction.
545 (arm_output_epilogue): Likewise.
546
547 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
548 if we need to push a large stack frame and there are no callee-saved
549 registers.
550
551 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
552 in ARM code if the frame pointer has been eliminated.
553
554 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
555 unspec_volatile arguments to avoid duplicates.
556 (consttable_1, consttable_2): Fixes for big-endian mode.
557
558 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
559 as appropriate.
560
561 Re-write constant pool code.
562 * arm.c (minipool_node, minipool_fix): New types.
563 (minifix): Delete type.
564 (arm_add_minipool_constant): Delete.
565 (arm_compute_minipool_offsets, arm_find_barrier,
566 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
567 (get_jump_table_size): Now returns HOST_WIDE_INT.
568 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
569 functions.
570 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
571 (assign_minipool_offsets, arm_print_value): Likewise.
572 (dump_minipool): Rewrite.
573 (arm_barrier_cost): New function.
574 (create_fix_barrier): New function.
575 (push_minipool_barrier): New function.
576 (push_minipool_fix): Record additional information about the fixup
577 required.
578 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
579 check the mode of what needs fixing.
580 (arm_reorg): Rewrite.
581
582 2000-03-08 Nick Clifton <nickc@cygnus.com>
583
584 * config/arm/arm.md (indirect_jump): Force constant addresses into
585 a register.
586
587 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
588
589 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
590
591 2000-02-24 Nick Clifton <nickc@cygnus.com>
592
593 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
594 adjust is word aligned.
595 (thumb_expand_epilogue): Make sure that stack adjust is word
596 aligned.
597
598 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
599
600 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
601
602 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
603 pointer relative addresses.
604
605 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
606
607 * arm.c (find_barrier): Find the last barrier within the allowed
608 range.
609
610 2000-02-09 Nick Clifton <nickc@cygnus.com>
611
612 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
613
614 2000-02-09 Nick Clifton <nickc@cygnus.com>
615
616 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
617 ARM_FUNCTION_PROFILER.
618
619 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
620 ARM_FUNCTION_PROFILER.
621
622 * config/arm/linux-oldld.h: Imported from mainline sources.
623
624 2000-02-07 Nick Clifton <nickc@cygnus.com>
625
626 * config/arm/lib1funcs.asm: Merge in thumb functions from
627 lib1thumb.asm.
628
629 * config/arm/lib1thumb.asm: Delete.
630
631 2000-02-04 Nick Clifton <nickc@cygnus.com>
632
633 * config/arm/arm.c: Sychronised with current Red hat local
634 sources.
635 * config/arm/arm.h: Ditto.
636 * config/arm/arm-protos.h: Ditto.
637
638 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
639
640 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
641
642 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
643 byte stores.
644
645 2000-02-02 Nick Clifton <nickc@cygnus.com>
646
647 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
648
649 * config/arm/arm.md (epilogue): Fix rtl checking abort because
650 (return) was emited using an emit_insn() call.
651
652 2000-01-31 Nick Clifton <nickc@cygnus.com>
653
654 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
655 thumb stack frame.
656 (thumb_exit): Move frame pointer back into hard frame pointer
657 register if backtracing is being used.
658
659 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
660
661 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
662 into branch.
663
664 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
665
666 * config/arm/arm.md (neg_pool_offset): Provide default for new
667 attribute.
668 (arm_movsi_insn): Add neg_pool_offset attribute.
669 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
670 rtx for the insn that starts the scan and an unsigned long for its
671 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
672 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
673 instructions in *PINSERTED.
674 (struct minipool_fixup): Add MIN_ADDRESS elt.
675 (sort_fixups): Compute it.
676 (arm_reorg): Changes to support inserting pools before the insn to be
677 fixed up.
678
679 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
680
681 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
682 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
683 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
684
685 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
686
687 * config/arm/semi.h (TARGET_VERSION): Do not define if already
688 defined.
689 (TARGET_DEFAULT): Do not define if already defined.
690
691 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
692
693 * config/arm/arm.md (anddi3): Allow disjoint source operands.
694 (iordi3): Allow disjoint source operands.
695 (xordi3): Allow disjoint source operands.
696 (negdi2): Permit construction for ARM and Thumb.
697 (arm_negdi2): Renamed version of old negdi2 pattern.
698 (thumb_negdi2): New pattern: Only permit non-overlapping
699 source and destination.
700
701 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
702
703 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
704 scratch low register so that it will not be deleted.
705
706 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
707
708 * config/arm/pe.h (ARM_PE): Define.
709
710 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
711 interfacearm attribute if this is a PE toolchain.
712 (output_return_instruction): Do not emit anything if the function
713 has the naked attribute set.
714 (is_called_in_ARM_mode): If the function has the interfacearm
715 attribute then return true.
716 (thumb_expand_prologue): Do not generate a prologue for naked
717 functions.
718 (thumb_expand_epilogue): Do not generate an epilogie for a naked
719 function.
720 (output_thumb_prologue): Do not bother if the function is naked.
721 Strip PE encoding from function name before emitting.
722
723 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
724
725 * arm.md (pic_load_addr): Fix constraints.
726
727 * arm.md (casesi_insn): Fix mis-applied patch.
728
729 * arm.md ("core" function unit): Add rules for single- and
730 multi-cycle insns.
731 (All TARGET_THUMB patterns): Add "type" attribute information
732 where needed.
733 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
734 the following insn is a CALL.
735
736 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
737 pointer.
738 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
739 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
740 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
741
742 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
743
744 * config/arm/linux-gas.h: oops - this file was missed out when the
745 branch was created...
746
747 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
748
749 * thumb.c: Deleted. Move contents to ...
750 * arm.c: ... here.
751 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
752 rule for thumb.o
753 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
754 * configure: Regen.
755
756 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
757 declare a prototype for asm_output_align();
758
759 * arm.c (thumb_condition_code): Delete.
760 (arm_print_operand): Always use arm_condition_code array.
761
762 * arm.c (thumb_return_addr_rtx): Delete.
763 (arm_save_machine_status, arm_restore_machine_status): Delete.
764 (arm_init_machine_status, arm_mark_machine_status): New functions.
765 (arm_init_expanders): Update accordingly.
766 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
767 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
768 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
769
770 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
771
772 * configure.in : Fix arm-*-aout target to use new t-arm-aout
773 script.
774 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
775 targets.
776
777 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
778
779 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
780 stack backtrace structure.
781
782 * config/arm/arm-protos.h: Add prototypes for functions defined in
783 arm/pe.h.
784
785 * config/arm/arm.c (arm_override_options): Fix selection of
786 attributes of default processor.
787
788 * config/arm/coff.h: Delete needless #include.
789
790 * config/arm/pe.c: Delete unused code.
791
792 * config/arm/pe.h (CPP_DEFINES): Delete
793 (SUBTARGET_CPP_SPEC): Define.
794 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
795
796 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
797
798 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
799
800 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
801 updated.
802 (CAN_DEBUG_WITHOUT_FP): Define.
803 (FIXED_REGISTERS): Make r11 call-saved.
804 (CALL_USED_REGISTERS): Likewise.
805 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
806 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
807 frame-pointer is required.
808 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
809 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
810 if the target normally needs a stack frame in non-leaf functions.
811 (use_return_insn): Correct logic for determining when a return
812 instruction can be used.
813 (output_return_instruction): Handle the frame-pointer register as
814 a normal register when not TARGET_APCS_FRAME.
815 (arm_output_prologue): Likewise.
816 (arm_output_epilogue): Likewise.
817 (output_func_epilogue): Likewise.
818 (arm_expand_prologue): Likewise.
819 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
820
821 * arm.c (use_return_insn): No need to check floating point regs if
822 TARGET_SOFT_FLOAT.
823 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
824 the code of value stored in the minipool array.
825 (arm_add_minipool_constant): Likewise.
826
827 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
828
829 * basic-block.h (conflict_graph_enum_fn): K&R fix.
830
831 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
832
833 * tree.c (tree_expr_nonnegative_p): New function.
834
835 * tree.h (tree_expr_nonnegative_p): Declare.
836
837 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
838 elide some sign_compare warnings.
839 (build_conditional_expr): Likewise.
840
841 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
842
843 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
844
845 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
846 * i386.c (print_operand): Use the proper suffix for a 387 HImode
847 operand. Abort if a 387 operand has an unsupported size.
848
849 2000-04-08 Neil Booth <NeilB@earthling.net>
850
851 * cppexp.c (parse_charconst): Null does not end character
852 constants.
853 * cppinit.c (ISTABLE): Null character handled as whitespace.
854 * cpplex.c (null_warning): new function.
855 (skip_string): Emit warning if nulls encountered.
856 (_cpp_skip_hspace): Emit warning if nulls encountered.
857 (_cpp_lex_token): Emit warning if nulls encountered. Drop
858 them.
859 * cpp.texi: Update.
860
861 2000-04-07 Richard Henderson <rth@cygnus.com>
862
863 * flow.c (loop_depth): Remove.
864 (reg_next_use, cc0_live, mem_set_list): Replace with ...
865 (struct propagate_block_info): New.
866 (life_analysis): Don't allocate reg_next_use.
867 (propagate_block_delete_insn): Break out of propagate_block.
868 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
869 (propagate_block_delete_libcall): Likewise.
870 (propagate_block): Create a propagate_block_info struct to pass
871 to subroutines. Allocate one not two temporary regsets. Don't
872 clobber memory for const calls. Look for clobbers in
873 CALL_INSN_FUNCTION_USAGE.
874 (mark_set_regs): Recognize COND_EXEC.
875 (mark_set_reg): Break out of mark_set_1.
876 (mark_used_reg): Break out of mark_used_regs.
877 (mark_used_regs): Recognize COND_EXEC.
878 (insn_dead_p): Use propagate_block_info struct.
879 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
880 (find_auto_inc, try_pre_increment_1): Likewise.
881 (print_rtl_with_bb): Dump regs live at end too.
882 (count_reg_sets_1): Pass in loop_depth.
883 (count_reg_sets, count_reg_references): Likewise.
884 (recompute_reg_usage): Provide it.
885
886 2000-04-07 Richard Henderson <rth@cygnus.com>
887
888 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
889 not the raw files.
890
891 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
892
893 * cpplib.c (do_elif): Skip the rest of the line if we're
894 not going to bother evaluating it.
895 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
896 to avoid pointless calls to the lexer.
897
898 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
899
900 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
901
902 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
903
904 * calls.c (expand_call): emit_queue if we're trying a sibcall.
905
906 2000-04-07 Jakub Jelinek <jakub@redhat.com>
907
908 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
909
910 2000-04-06 Geoff Keating <geoffk@cygnus.com>
911
912 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
913 crtend so they can be multilibbed.
914 (STAGESTUFF): Remove s-crt and s-crtS.
915
916 2000-04-07 Richard Henderson <rth@cygnus.com>
917
918 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
919 if we discover we need a pseudo and no_new_pseudos is true.
920 * config/alpha/alpha.md (ne:DI insn): New.
921 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
922
923 2000-04-07 Richard Henderson <rth@cygnus.com>
924
925 * rtl.def (COND_EXEC): New.
926 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
927 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
928
929 * genconfig.c (have_cond_arith_flag): Remove.
930 (have_cond_exec_flag): New.
931 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
932 (main): Print HAVE_conditional_execution.
933
934 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
935 (sched_analyze_insn, print_pattern): Likewise.
936 * reload.c (find_equiv_reg): Likewise.
937 * rtlanal.c (reg_referenced_p): Likewise.
938 (note_stores, dead_or_set_regno_p): Likewise.
939 (reg_overlap_mentioned_p): Rewrite to use a switch.
940
941 * ggc.h (struct rtx_def): Forward declare.
942
943 * print-rtl.c (debug_rtx_range): New.
944 * rtl.h (debug_rtx_range): Declare.
945
946 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
947
948 * gcse.c (gcse_main): Don't rebuild the CFG here.
949 (delete_null_pointer_checks): Likewise.
950 * ssa.c (convert_to_ssa): Likewise.
951 * toplev.c (rest_of_compilation): Do it here instead. Combine
952 sequential calls to TIMEVAR. Consistently use `insns' instead of
953 `get_insns()'. Always split insns after reload when optimizing.
954
955 * basic-block.h (merge_blocks_nomove): Declare.
956 (tidy_fallthru_edge): Declare.
957 * flow.c (merge_blocks_nomove): Document as merging into previous
958 blocks. Remove cruft from between blocks; remove all edges out of A.
959 (tidy_fallthru_edge): Export.
960
961 2000-04-06 Alex Samuel <samuel@codesourcery.com>
962
963 * ssa.c (compute_conservative_reg_partition): Declare with
964 void arguments.
965 * toplev.c (clean_dump_file): Remove previously-deleted function
966 inadvertantly merged back in.
967 * conflict.c (conflict_graph_add): Use a single call to
968 htab_find_slot to look up and insert.
969
970 2000-04-06 Richard Henderson <rth@cygnus.com>
971
972 * genrecog.c (*): Rename _last_insn to last_insn.
973 (make_insn_sequence): Set the position of the peephole2 C test
974 to be at the last insn.
975
976 2000-04-06 Richard Henderson <rth@cygnus.com>
977
978 * flow.c (compute_flow_dominators): Free worklist.
979
980 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
981
982 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
983
984 2000-04-06 Alex Samuel <samuel@codesourcery.com>
985
986 * rtl.h (INSN_P): New macro.
987 (successor_phi_fn): New typedef.
988 (for_each_successor_phi): New prototype.
989 (in_ssa_form): New variable.
990 (PHI_NODE_P): Likewise.
991 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
992 phi nodes in successors.
993 (mark_used_regs): Add PHI case.
994 (set_phi_alternative_reg): New function.
995 (life_analysis): Assert that dead code elimination is not selected
996 when in SSA form.
997 * toplev.c (to_ssa_time): New variable.
998 (from_ssa_time): Likewise.
999 (compile_file): Zero to_ssa_time and from_ssa_time.
1000 Print time to convert to and from SSA.
1001 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
1002 (print_time): Compute percent fraction as integer.
1003 * ssa.c (PHI_NODE_P): Moved to rtl.h.
1004 (convert_to_ssa): Check if we're already in SSA.
1005 Don't eliminate dead code in life_analysis.
1006 Rerun flow and life analysis at bottom.
1007 (eliminate_phi): Use canonical regnos when adding nodes.
1008 (mark_reg_in_phi): New function.
1009 (mark_phi_and_copy_regs): Likewise.
1010 (convert_from_ssa): Rerun life analysis at top.
1011 Use coalesced partition.
1012 Check for removing a phi node at the end of the block.
1013 (compute_coalesced_reg_partition): New function.
1014 (coalesce_regs_in_copies): Likewise.
1015 (coalesce_reg_in_phi): Likewise.
1016 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
1017 (for_each_successor_phi): Likewise.
1018 (rename_context): New struct.
1019 (rename_block): Use a rename_context with rename_insn_1. When
1020 renaming sets of a subreg, emit a copy of the entire reg first.
1021 (rename_insn_1): Treat data as a rename_context *. Save current
1022 insn in set_data.
1023 (rename_set_data): Add field set_insn.
1024 * Makefile.in (HASHTAB_H): Move up in file.
1025 (OBSTACK_H): New macro.
1026 (collect2.o): Use OBSTACK_H in dependencies.
1027 (sdbout.o): Likewise.
1028 (emit-rtl.o): Likewise.
1029 (simplify-rtx.o): Likewise.
1030 (fix-header.o): Likewise.
1031 (OBJS): Add conflict.o.
1032 (conflict.o): New rule.
1033 * basic-block.h: Include partition.h.
1034 (conflict_graph): New typedef.
1035 (conflict_graph_enum_fn): Likewise.
1036 (conflict_graph_new): New prototype.
1037 (conflict_graph_delete): Likewise.
1038 (conflict_graph_add): Likewise.
1039 (conflict_graph_conflict_p): Likewise.
1040 (conflict_graph_enum): Likewise.
1041 (conflict_graph_merge_regs): Likewise.
1042 (conflict_graph_print): Likewise.
1043 (conflict_graph_compute): Likewise.
1044 * conflict.c: New file.
1045
1046 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
1047
1048 * tlink.c (read_repo_files): Don't look for .rpo info for
1049 linker flags.
1050
1051 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1052
1053 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
1054
1055 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1056
1057 * config/sh/lib1funcs.asm (___udivsi3_i4):
1058 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
1059 only depends on FMOVD_WORKS.
1060
1061 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1062
1063 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
1064 make double constant 8-byte aligned.
1065
1066 2000-04-06 Jakub Jelinek <jakub@redhat.com>
1067
1068 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
1069 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
1070 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
1071 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
1072 Accept storing GENERAL_REGS into offsetable memory.
1073 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
1074 building a TFmode constant other than 0.0L into GENERAL_REGS.
1075
1076 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
1077
1078 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
1079
1080 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
1081
1082 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
1083 (macro_cleanup): No need to cast pbuf->macro.
1084 (collect_expansion): Use _cpp_get_define_token. Goto done if
1085 it returns VSPACE. Remove check for trailing space after
1086 CPP_COMMENT.
1087 (_cpp_create_definition): Don't diddle flags here. Return
1088 directly on error.
1089 (unsafe_chars): Handle c1 being EOF.
1090 (push_macro_expansion): Use unsafe_chars for both accidental-paste
1091 checks. Don't push the buffer till after we're done with
1092 them.
1093 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
1094 (PEEKN, FORWARD, GETC, PEEKC): Use them.
1095 (cpp_push_buffer): Don't set new->alimit. Set new->mark
1096 appropriately.
1097 (_cpp_parse_assertion): Don't NUL terminate.
1098 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
1099 hspace before calling _cpp_parse_assertion. Remove all sets
1100 of only_seen_white. Treat '\f' as hspace. Don't do anything
1101 special with '\n' here.
1102 (maybe_macroexpand): Handle T_EMPTY hash entries without
1103 pushing a buffer at all.
1104 (cpp_get_token): Handle clearing only_seen_white here. Handle
1105 incrementing the line number here. Clear
1106 potential_control_macro as well as only_seen_white, if
1107 appropriate.
1108 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
1109 (_cpp_get_define_token): New function, basically like
1110 _cpp_get_directive_token was but doesn't eat horizontal space.
1111 Don't do anything with only_seen_white here.
1112 (_cpp_get_directive_token): Just call _cpp_get_define_token
1113 repeatedly till it returns non-hspace.
1114
1115 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
1116 (conditional_skip, skip_if_group): Return int.
1117 (DIRECTIVE_TABLE): Change origin of all conditional directives
1118 to "COND".
1119 (TRAD_DIRECT_P): New macro.
1120 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
1121 an error for a bogus directive, unless -lang-asm. Use
1122 TRAD_DIRECT_P. Loop calling handler functions till one returns
1123 zero.
1124 (get_macro_name): Don't diddle flags here.
1125 (do_define): Diddle flags here. Use _cpp_get_directive_token.
1126 Create T_EMPTY nodes for #define macro /* nothing */.
1127 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
1128 Use hp->name when calling pass_thru_directive.
1129 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
1130 Return the result of conditional_skip and/or skip_if_group.
1131 Don't call _cpp_output_line_command.
1132 (consider_directive_while_skipping): Use _cpp_get_directive_token.
1133 Issue -Wtraditional warnings as appropriate. Don't complain
1134 about unrecognized directives. If we are to stop skipping,
1135 return the number of the directive that ended the skip.
1136 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
1137 expansion and line commands while skipping. Return the result
1138 of consider_directive_while_skipping, if nonzero.
1139 (do_endif): Just set potential_control_macro here.
1140 (validate_else): Use _cpp_get_directive_token.
1141 (do_assert, do_unassert): Don't save pointers into the
1142 token_buffer across calls to the lexer. Use
1143 _cpp_get_directive_token.
1144
1145 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
1146 pointer, not an offset. Replace 'data', which was a generic
1147 pointer, with 'macro', which points to a struct hashnode.
1148 (cpp_reader): Add 'potential_control_macro' pointer.
1149 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
1150 (CPP_BUF_GET, CPP_FORWARD): Delete.
1151 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
1152 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
1153 ACTIVE_MARK_P): Update.
1154 (_cpp_get_define_token): New internal function.
1155 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
1156
1157 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
1158
1159 * configure.in: And here.
1160 * configure: Regenerate.
1161 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
1162 --enable-libstdcxx-v3 is passed at configure time.
1163 * config.h.in: Regenerate.
1164
1165 2000-04-05 Mark Mitchell <mark@codesourcery.com>
1166
1167 * final.c (final): Use xcalloc to allocate line_note_exists.
1168 * function.c (free_after_compilation): Free the temp_slots.
1169 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
1170 (combine_temp_slot): Free temp_slots when they get combined.
1171 (purge_addressof): Fix typo in comment.
1172 * stmt.c (mark_goto_fixup): Mark the fixup itself.
1173 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
1174
1175 * ggc.h: Include varray.h.
1176 (ggc_pending_trees): Declare.
1177 (ggc_mark_tree_children): Remove declaration.
1178 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
1179 * ggc-common.c (ggc_pending_trees): New variable.
1180 (ggc_mark_roots): Call ggc_mark_trees.
1181 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
1182 the ggc_pending_trees.
1183 * Makefile.in (GGC_H): New variable. Use it throughout in place
1184 of ggc.h.
1185
1186 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1187
1188 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
1189 GET_MODE_SIZE.
1190
1191 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1192
1193 * sh.c (sh_insn_length_adjustment): New function.
1194 * sh-protos.h (sh_insn_length_adjustment): Declare.
1195 * sh.h (ADJUST_INSN_LENGTH): Use it.
1196
1197 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
1198
1199 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
1200 from the insn where REG_RETVAL is added.
1201 (emit_no_conflict_block): Ditto.
1202
1203 * md.texi (Standard Names): Clarify when movX is needed.
1204
1205 * combine.c (simplify_comparison) [MINUS]: Do not replace
1206 all (op (minus A B) 0) with (op A B).
1207
1208 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
1209 J"orn Rennecke <amylaar@cygnus.co.uk>
1210
1211 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
1212 (block_lump_real): Likewise.
1213
1214 2000-04-05 Chris Demetriou <cgd@netbsd.org>
1215
1216 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
1217 remaining non-zero debugging masks.
1218
1219 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
1220
1221 * basic-block.h (verify_flow_info): Declare.
1222 (flow_loop_outside_edge_p): Declare.
1223 * flow.c (verify_flow_info): Remove declaration.
1224 (clear_log_links, flow_loop_outside_edge_p): Likewise.
1225
1226 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
1227
1228 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
1229 not C++ comments.
1230
1231 2000-04-05 Jakub Jelinek <jakub@redhat.com>
1232
1233 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
1234 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
1235 seqdi_zero_trunc+1): Allow splits only if registers are
1236 different.
1237
1238 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
1239
1240 * acconfig.h: Add HAVE_GAS_HIDDEN.
1241 * config.in: Regenerated.
1242 * configure.in: Add test for .hidden pseudo-op in gas.
1243 * configure: Regenerated.
1244 * crtstuff.c: Include auto-host.h.
1245 Emit additional .hidden pseudo-op for __dso_handle if the
1246 assembler knows about it.
1247
1248 2000-04-04 Philippe De Muyter <phdm@macqel.be>
1249
1250 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
1251 before freeing argnames.
1252 * cpplib.c (do_ifndef): Cast return value of xstrdup.
1253
1254 2000-04-05 Michael Meissner <meissner@redhat.com>
1255
1256 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
1257 Walton <jonboy@gordian.com> to make memory references with update
1258 work wtih -mregnames.
1259
1260 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1261
1262 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
1263 (regrename_optimize): Rename variables `def_uses' and
1264 `ext_basic_blocks' to avoid conflicts with similarly named
1265 typedefs in traditional C.
1266
1267 * calls.c (initialize_argument_information): Fix typo in previous
1268 change.
1269
1270 2000-04-04 Richard Henderson <rth@cygnus.com>
1271
1272 * regrename.c (consider_available): Test fixed_regs not
1273 PIC_OFFSET_TABLE_REGNUM.
1274
1275 2000-04-04 Geoff Keating <geoffk@cygnus.com>
1276
1277 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
1278 crtend.
1279 (CRTSTUFF_T_CFLAGS_S): Delete definition.
1280 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
1281 (ENDFILE_LINUX_SPEC): Always use crtend.
1282 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
1283 (powerpc-*-linux-gnu): Likewise.
1284 * configure: Regenerate.
1285
1286 * config/rs6000/eabi.h: Don't include sysv4.h.
1287 (MULTILIB_DEFAULTS): Don't define.
1288 * config/rs6000/eabiaix.h: Don't include eabi.h.
1289 * config/rs6000/eabile.h: Delete.
1290 * config/rs6000/eabilesim.h: Delete.
1291 * config/rs6000/eabisim.h: Don't include eabi.h.
1292 * config/rs6000/linux.h: Don't include sysv4.h.
1293 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
1294 (MULTILIB_DEFAULTS): Don't redefine.
1295 * config/rs6000/rtems.h: Don't include eabi.h.
1296 * config/rs6000/sol2.h: Don't include sysv4le.h.
1297 * config/rs6000/sysv4le.h: Don't include sysv4.h.
1298 * config/rs6000/t-ppc: Delete.
1299 * config/rs6000/t-ppcgas: Correct comment.
1300 * config/rs6000/t-ppcos: Correct comment. Don't build
1301 multilibs for -fPIC, rather use -fPIC -mstrict-align
1302 as default.
1303 * config/rs6000/t-ppc: Delete.
1304 * config/rs6000/vxppc.h: Don't include sysv4.h.
1305 * config/rs6000/vxppcle.h: Delete.
1306 * configure.in: Use multiple header files for p2pc ELF targets
1307 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
1308 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
1309 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
1310 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
1311 always available for these platforms.
1312
1313 2000-04-04 Richard Henderson <rth@cygnus.com>
1314
1315 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
1316
1317 2000-04-04 Stan Cox <scox@cygnus.com>
1318
1319 * Makefile.in: Add rules for regrename.o
1320 * regrename.c: New file.
1321 * rtl.h (regrename_optimize): Add prototype.
1322 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
1323 (compile_file, decode_d_option): Add support for -frename-registers.
1324 (rest_of_compilation): Call regrename_optimize.
1325 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
1326 New macros.
1327
1328 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1329
1330 * Makefile (gccbug): New target.
1331 (doc): Depend on it.
1332 * gcc.texi (Bugs): Link subnodes.
1333 (gccbug): New node.
1334 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
1335 Document severities, priorities, and classes in bug form.
1336
1337 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
1338
1339 * cpplex.c (trigraph_map, speccase): Combine into single
1340 table, chartab.
1341 (NORMAL, NONTRI): New macros.
1342 (_cpp_read_and_prescan): Change to use unified table. Use
1343 is_hspace to test for whitespace.
1344
1345 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
1346 definition that doesn't provoke the "empty body in an
1347 if-statement" warning.
1348
1349 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
1350
1351 * builtins.c (expand_builtin_strlen): Force the source to
1352 be a memory address.
1353
1354 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1355
1356 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
1357
1358 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
1359
1360 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
1361 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
1362 (ECF_IS_CONST): Rename to ECF_CONST.
1363 (special_function_p): Make static, change interface.
1364 (flags_from_decl_or_type, try_to_integrate): Break out from ...
1365 (expand_call) ... here; convert number of variables to flags.
1366 (emit_library_call_vlue_1): Likewise.
1367 (setjmp_call_p): New function.
1368 (initialize_argument_information): Accepts flags as argument;
1369 return flags.
1370 (precompute_arguments): Likewise.
1371 * tree.h (special_function_p): Remove.
1372 (setjmp_call_p): Add prototype.
1373
1374 2000-04-04 Jakub Jelinek <jakub@redhat.com>
1375
1376 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
1377 so that addresses are offsetable by up to 16 bytes.
1378 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
1379 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
1380 offsetable.
1381
1382 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
1383 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
1384 (movsf): Don't force any constant to memory if target is integer
1385 hard register.
1386 Move fp_zero_operand check below the const0_rtx check.
1387 (movtf): Likewise. Also allow fp_zero_operand for stores into
1388 memory.
1389 (movdf): Likewise. Also allow fp_zero_operand for stores into
1390 memory and into integer hard registers.
1391 (clear_df, clear_dfp, movdf_const_intreg_sp32,
1392 movdf_const_intreg_sp64): Remove.
1393 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
1394 conditions.
1395 (movdf_no_e_insn_v9_sp32): New pattern.
1396 (movdf_insn_v9only): Remove.
1397 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
1398 (movdf_insn_sp64): Remove.
1399 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
1400 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
1401 (following splits): Rewrite conditions. Add two new splits
1402 for storing 0.0 into memory and registers.
1403 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
1404 (movtf_insn_sp32): Redo constraints and conditions.
1405 (movtf_insn_vis_sp32): New pattern.
1406 (movtf_no_e_insn_sp32): Redo constraints and conditions.
1407 (movtf_insn_hq_sp64): Likewise.
1408 (movtf_insn_hq_vis_sp64): New pattern.
1409 (movtf_insn_sp64): Redo constraints and conditions.
1410 (movtf_insn_vis_sp64): New pattern.
1411 (movtf_no_e_insn_sp64): Redo constraints and conditions.
1412 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
1413 or memory.
1414 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
1415 -mvis or -m64 to take down the number of various reload patterns.
1416
1417 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
1418
1419 * pa/pa-64.h: New file.
1420 * pa/pa64-regs.h: New file.
1421 * pa/pa64-start.h: New file.
1422 * pa/t-pa64: New file.
1423 * pa/xm-pa64hpux.h: New file.
1424
1425 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1426
1427 * sparc.c (output_restore_regs): Prototype.
1428 (sparc_emit_float_lib_cmp): Constification.
1429
1430 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
1431
1432 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
1433 Prototype.
1434
1435 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
1436 (get_value_hash, hash_rtx): Likewise.
1437
1438 * ssa.c (compute_conservative_reg_partition): Prototype.
1439
1440 * tree.c (mark_hash_entry): Prototype.
1441
1442 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
1443
1444 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
1445 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
1446 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
1447
1448 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
1449 * objc/lang-specs.h: Likewise.
1450
1451 2000-04-03 Neil Booth <NeilB@earthling.net>
1452
1453 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
1454 and SYNTAX_ERROR2. Replace `' in messages with ''.
1455 (op_to_str): Make re-entrant.
1456 (_cpp_parse_expr): Implement new error macros. Use | rather
1457 than || to logically or 2 boolean integers. Simply expression
1458 checking we have a left operand iff needed.
1459
1460 2000-04-03 Nick Clifton <nickc@cygnus.com>
1461
1462 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
1463
1464 2000-04-03 Philip Blundell <philb@gnu.org>
1465
1466 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
1467
1468 2000-04-03 Felix Lee <flee@cygnus.com>
1469
1470 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
1471 (run_shell): Use it.
1472
1473 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
1474
1475 * Makefile.in (stmp-int-hdrs): Make include subdir here...
1476 (stmp-fixproto): ...rather than here.
1477
1478 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
1479
1480 * pa.c (print_operand): Compute 'base' only inside the code paths
1481 that use it.
1482
1483 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
1484
1485 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
1486 CEIL_DIV_EXPR.
1487
1488 2000-04-03 Philipp Thomas <pthomas@suse.de>
1489
1490 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
1491
1492 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
1493
1494 * Makefile.in (alias.o): Depend on $(TREE_H).
1495
1496 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
1497
1498 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
1499 processing C++.
1500 * cpplib.c (_cpp_handle_directive): Improve warnings for
1501 traditional C and indented directives.
1502
1503 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
1504 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
1505 fixinc/inclhack.def: Indent the # of #include_next one space.
1506 * cp/rtti.c: Un-indent #if and #endif.
1507
1508 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
1509 syntax error, but an error has already been printed.
1510 * cpplex.c (_cpp_parse_assertion): Give a more specific error
1511 message when called with nothing remaining on the line.
1512 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
1513 OTHER token, not an ASSERTION.
1514 * cpplib.c (do_assert): When we create a 'base' node, clear
1515 its aschain pointer.
1516
1517 2000-04-02 Neil Booth <NeilB@earthling.net>
1518
1519 * cppexp.c: New typedef op_t. struct operation and struct
1520 token updated to use it.
1521 (op_to_str): New function.
1522 (_cpp_parse_expr): Error messages modified to use op_to_str.
1523
1524 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1525
1526 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
1527 before checking MUST_PASS_IN_STACK.
1528
1529 2000-04-02 Neil Booth <NeilB@earthling.net>
1530
1531 * cppexp.c: New FINISHED dummy token. Combine operator initial
1532 flags and initial priority into a single constant. New
1533 EQUALITY macro. New operator flag SHORT_CIRCUIT.
1534 (_parse_cpp_expr): Implement new constants. Take left operand
1535 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
1536 parse indicated by reducing FINISHED token. Remove new lines
1537 from cpp_error messages.
1538
1539 2000-04-01 Mark Mitchell <mark@codesourcery.com>
1540
1541 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
1542 permanent obstack.
1543
1544 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
1545
1546 * cpplib.c: Include symcat.h. Add 'origin' field to struct
1547 directive. Add origin values to DIRECTIVE_TABLE. Generate
1548 the strings and function names on the fly. Take the #sccs
1549 entry out of the table if SCCS_DIRECTIVE is not defined.
1550 (_cpp_handle_directive): Decide if the # was at the beginning
1551 of the line here. Issue -pedantic warnings for extended
1552 directives here. Warn about K+R directives with the #
1553 indented, and C89/extended directives with the # not indented,
1554 here.
1555 (do_import, do_include_next, do_warning, do_ident, do_sccs,
1556 do_assert, do_unassert): Don't issue pedantic warning here.
1557
1558 * cpphash.h: Add CPP_WTRADITIONAL macro.
1559 * cpplib.h (struct cpp_options): Rename warn_stringify to
1560 warn_traditional; update comments.
1561 * cppinit.c (handle_option): Set warn_traditional not
1562 warn_stringify.
1563 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
1564 CPP_WTRADITIONAL (pfile).
1565 * cpplex.c (_cpp_lex_token): Don't decide if directives should
1566 be ignored in -traditional mode here.
1567
1568 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
1569 to initialize speccase[] and trigraph_map[]. Delete all
1570 references to pfile->input_speccase. Always treat '?' as a
1571 special character. Remove table-initialization code from
1572 _cpp_init_input_buffer.
1573
1574 * cpplib.h (struct cpp_reader): Remove input_speccase field.
1575 * cppinit.c (cpp_cleanup): Don't free input_speccase.
1576
1577 2000-04-01 Richard Henderson <rth@cygnus.com>
1578
1579 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
1580 (mostlyclean): Likewise.
1581
1582 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
1583 (struct dump_file_info, enum dump_file_index, dump_file): New.
1584 (open_dump_file): Take a dump_file_index not a suffix, and a decl
1585 not a string. Clean out file if we havn't yet done so. Do nothing
1586 if the dump isn't enabled.
1587 (close_dump_file): Do nothing if the dump isn't open. Dump
1588 graph data if requested.
1589 (dump_rtl, clean_dump_file): Remove.
1590 (compile_file): Don't clean the dump files. Only finalize .bp dump
1591 if flag_test_coverage or flag_branch_probabilities. Only finalize
1592 .combine dump if optimizing. Iterate over dump_file to finalize the
1593 graph dumps.
1594 (rest_of_compilation): Update for open_dump_file/close_dump_file.
1595 Convert all uses of dump_rtl.
1596 (decode_d_option): Iterate over dump_file to implement 'a' and to
1597 locate pass-specific dumps.
1598
1599 2000-04-01 Neil Booth <NeilB@earthling.net>
1600
1601 * cppexp.c: Redefine priority constants.
1602 (_cpp_parse_expr): Replace left and right priority scheme with
1603 single priority logic. Move LOGICAL to same place as COMPARE.
1604 Remove bogus check for multiple unary +/- operators.
1605
1606 2000-04-01 Neil Booth <NeilB@earthling.net>
1607
1608 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
1609 within the switch statement. Binary operations break out of
1610 the switch naturally. '(' tokens handled by forcing
1611 immediate shift. ')' handled by forcing immediate reduce to
1612 the previous '('. New error messages.
1613
1614 2000-03-31 Geoff Keating <geoffk@cygnus.com>
1615
1616 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
1617 part', it's already in use. Use %K instead. Add a return at the
1618 end of what is now %K.
1619 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
1620
1621 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
1622
1623 * builtins.c (expand_builtin_apply): Pass proper parameters to
1624 allocate_dynamic_stack_space.
1625 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
1626 update stack_pointer_delta; do not update arg_size_so_far.
1627 (compute_argument_block_size): Use stack_delta instead of
1628 stack_pointer_pending and arg_size_so_far.
1629 (expand_call): Add sanity checking for stack_pointer_delta;
1630 save and restore stack_pointer_delta for SIB, use
1631 stack_pointer_delta for alignment; do not update arg_space_so_far.
1632 (emit_library_call_value): Use stack_pointer_delta for alignment.
1633 (store_one_arg): Do not update arg_space_so_far.
1634 * explow.c (adjust_stack, anti_adjust_stack): Update
1635 stack_pointer_delta.
1636 (allocate_dynamic_stack_space): Add sanity checking for
1637 stack_pointer_delta.
1638 * expr.c (init_expr, clear_pending_stack_adjust): Clear
1639 stack_pointer_delta.
1640 (emit_push_insn): Update stack_pointer_delta.
1641 * function.h (struct expr_status): Add x_stack_pointer_delta;
1642 remove x_arg_space_so_far.
1643 (arg_space_so_far): Remove.
1644 (stack_pointer_delta): New macro.
1645
1646 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
1647
1648 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
1649 Reorder struct cpp_options and struct cpp_reader for better
1650 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
1651 takes two args. Change all 'char' flags to 'unsigned char'.
1652 Move show_column flag into struct cpp_options. Don't
1653 prototype cpp_options_init.
1654 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
1655 cppinit.c, cpplex.c, cpplib.c:
1656 Replace CPP_OPTIONS (pfile)->whatever with
1657 CPP_OPTION (pfile, whatever), and likewise for
1658 opts = CPP_OPTIONS (pfile); ... opts->whatever;
1659
1660 * cppinit.c (merge_include_chains): Take a cpp_reader *.
1661 Extract CPP_OPTION (pfile, pending) and work with that
1662 directly.
1663 (cpp_options_init): Delete.
1664 (cpp_reader_init): Turn on on-by-default options here.
1665 Allocate the pending structure here.
1666 (cl_options, enum opt_code): Define these from the same table,
1667 kept in a large macro. Add -fshow-column and -fno-show-column
1668 options.
1669
1670 * cpperror.c (v_message): If show_column is off, don't print
1671 the column number.
1672
1673 * cppmain.c: Update for new interface.
1674 * fix-header.c: Likewise.
1675
1676 2000-03-30 Geoff Keating <geoffk@cygnus.com>
1677
1678 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
1679 definition.
1680 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
1681 are passed to any invocation of AR_FOR_TARGET.
1682 (AR_CREATE_FOR_TARGET): New macro.
1683 (AR_EXTRACT_FOR_TARGET): New macro.
1684 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
1685 AR_EXTRACT_FOR_TARGET.
1686 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
1687 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
1688 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
1689 AR_EXTRACT_FOR_TARGET to sub-makes.
1690
1691 2000-03-31 Neil Booth <NeilB@earthling.net>
1692
1693 * cppexp.c: Delete SKIP_OPERAND. Correct priority
1694 PAREN_INNER_PRIO.
1695 (_cpp_parse_expr): Check for multiple unary +/- operators.
1696 Correct priorities of ':' and '?'. Treat ')' as having a
1697 value. Ensure conditional expression is not void.
1698
1699 2000-03-31 Mark Mitchell <mark@codesourcery.com>
1700
1701 * alias.c (canon_rtx): Make it global.
1702 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
1703 equality.
1704 * cse.c (struct table_elt): Add canon_exp.
1705 (insert): Clear it.
1706 (invalidate): Canonicalize expressions only once.
1707 * rtl.h (canon_rtx): Declare.
1708
1709 2000-03-30 Mark Mitchell <mark@codesourcery.com>
1710
1711 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
1712 * alias.c (reg_known_value): Add comments.
1713 (init_alias_analysis): Likewise.
1714 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
1715 address.
1716 (cse_basic_block): Fix typo in comment.
1717 * emit-rtl.c: Include hashtab.h.
1718 (const_int_htab): New variable.
1719 (const_int_htab_hash): New function.
1720 (const_int_htab_eq): Likewise.
1721 (rtx_htab_mark_1): Likewise.
1722 (rtx_htab_mark): Likewise.
1723 (gen_rtx_CONST_INT): Cache all CONST_INTs.
1724 (unshare_all_rtx): Fix formatting.
1725 (init_emit_once): Initialize const_int_htab.
1726 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
1727 address.
1728 * rtl.texi: Document the fact that all CONST_INTs with the same
1729 value are shared.
1730
1731 2000-03-30 Richard Henderson <rth@cygnus.com>
1732
1733 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
1734
1735 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
1736
1737 * configure.in: Comment out --enable-c-cpplib stanza.
1738 * configure: Regenerate.
1739
1740 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1741
1742 * expr.c (store_constructor): Properly compute displacement and
1743 alignment when offset is variable.
1744
1745 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
1746 cases of alignment in bytes.
1747
1748 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
1749
1750 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
1751 since it is used to generate c-parse.y.
1752 * objc-parse.c, objc-parse.y: Regenerated.
1753
1754 * function.c (expand_function_end): Pass alignment argument to
1755 emit_block_move in bits, not bytes.
1756
1757 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1758
1759 * expr.c (move_by_pieces_ninsns): Fix one more missing align
1760 correction.
1761
1762 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
1763
1764 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
1765 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
1766 * function.c (assign_parms): Likewise.
1767 * integrate.c (expand_inline_function): Likewise.
1768 * stmt.c (expand_decl): Likewise.
1769 (copy_rtx_and_substitute): Likewise.
1770 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
1771 (clear_by_pieces): Fix error in last change.
1772 * emit-rtl.c (init_emit): Set known registers alignment in bits.
1773 * function.h (regno_pointer_align): Now unsigned.
1774 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
1775 is in bits.
1776 * config/i386/i386.c (aligned_operand): Likewise.
1777 * config/sparc/sparc.c (mem_min_alignment): Likewise.
1778 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
1779 (unaligned_memory_operand): Likewise.
1780 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
1781 Also make alignments and sizes unsigned and some whitespace cleanup.
1782 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
1783
1784 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
1785 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
1786 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
1787 (expand_builtin_memset): Likewise, but to clear_storage.
1788 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
1789 (restore_fixed_argument_area): Likewise.
1790 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
1791 (load_register_parameters): Likewise, to emit_group_load.
1792 (expand_call): Likewise, to emit_group_store and emit_block_move.
1793 (emit_library_call_value_1): Likewise, to emit_block_move.
1794 (store_one_arg): Likewise, and to emit_push_insn.
1795 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
1796 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
1797 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
1798 (emit_block_move, emit_group_load, emit_group_store): Likewise.
1799 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
1800 (expand_assigment, store_expr, store_constructor_field): Likewise.
1801 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
1802 (store_constructor, store_field, get_inner_reference): Likewise.
1803 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
1804 (expand_expr, case COMPONENT_REF): Likewise.
1805 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
1806 and positions; reindent code.
1807 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
1808 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
1809 (assign_parms): Likewise to emit_group_store.
1810 * optabs.c (prepare_cmp_insn): Alignment is in bits.
1811 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
1812 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
1813 (expand_return): Likewise to {extract,store}_bit_field.
1814 * stor-layout.c (get_mode_alignment): Minor cleanup.
1815 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
1816 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
1817
1818 2000-03-29 Nick Clifton <nickc@cygnus.com>
1819
1820 * config/arm/arm.h: Undo effects of previous delta:
1821 (ASM_SPEC): Do not define.
1822 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
1823
1824 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
1825 typo.
1826
1827 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1828
1829 * cppinit.c (cpp_start_read): Call initialize_dependency_output
1830 only after reading in the primary source file.
1831
1832 2000-03-29 Geoff Keating <geoffk@cygnus.com>
1833
1834 * c-common.c (c_common_nodes_and_builtins): The first parameter to
1835 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
1836 or a reference to a va_list.
1837 * builtins.c (stabilize_va_list): Simplify now we don't have to
1838 work around C array address decay.
1839 * c-typeck.c (convert_for_assignment): Handle assignment to
1840 a reference parameter by taking the address of the RHS.
1841 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
1842 (va_copy): Likewise.
1843 (__va_copy): Likewise.
1844 * ginclude/varargs.h (va_start): Likewise.
1845 (__va_copy): Likewise.
1846
1847 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
1848
1849 * i386/djgpp.h: Remove extraneous "+".
1850
1851 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
1852
1853 * calls.c (expand_call): Fix typo in last change.
1854
1855 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
1856
1857 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
1858 been expanded.
1859
1860 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1861
1862 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
1863 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
1864 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
1865 * tree.c (bit_position, byte_position): Likewise.
1866 * tree.h: Declare new functions.
1867
1868 2000-03-29 Nick Clifton <nickc@cygnus.com>
1869
1870 * config/arm/arm.c: Minor formatting changes/
1871 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
1872 already defined.
1873 (ASM_SPEC): Define if not already defined.
1874
1875 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1876
1877 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
1878 _cpp_calc_hash.
1879
1880 2000-03-29 Jakub Jelinek <jakub@redhat.com>
1881
1882 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
1883 value, don't output it as unsigned.
1884
1885 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
1886
1887 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
1888
1889 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1890
1891 * c-common.c (c_common_nodes_and_builtins): Don't special case
1892 cplus_mode when declaring builtin bzero/bcmp, always avoid
1893 prototype arguments.
1894
1895 2000-03-29 Bruce Korb <bkorb@gnu.org>
1896
1897 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
1898 to a non-file
1899
1900 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
1901
1902 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
1903 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
1904 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
1905 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
1906 (save_fixed_argument_area, restore_fixed_argument_area):
1907 conditionize by #ifdef REG_PARM_STACK_SPACE only.
1908 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
1909 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
1910 (precompute_register_parameters): Avoid #ifdefs on
1911 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
1912 (stire_one_args): Likewise.
1913 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
1914 (emit_library_call_value_1): Likewise.
1915 (compute_argument_block_size): Align to STACK_BOUNDARY only for
1916 ACCUMULATE_OUTGOING_ARGS.
1917 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
1918 value.
1919 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
1920 (use_crosses_set_p): Likewise.
1921 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
1922 #define ACCUMULATE_OUTGOING_ARGS 1.
1923 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
1924 frames.
1925 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
1926 constants.
1927 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
1928 (TARGET_SWITCHES): Add push-args, no-push-args,
1929 accumulate-outgoing-args and no-accumulate-outgoing-args.
1930 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
1931 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
1932 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
1933 and PUSH_ROUNDING.
1934 (emit_push_insn): Likewise.
1935 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
1936 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
1937 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
1938 (STACK_DYNAMIC_OFFSET): Define correctly for both
1939 ACCUMULATE_OUTGOING_ARGS and normal mode.
1940 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
1941 * tm.texi (PUSH_ARGS): Document.
1942 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
1943
1944 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
1945
1946 * flags.h (flag_optimize_sibling_calls): Declare.
1947 * calls.c (expand_call): Fail sibcall when
1948 !flag_optimize_sibling_calls
1949 * invoke.texi (flag_optimize_sibling_calls): Document.
1950 * toplev.c (flag_optimize_sibling_calls): New global variable.
1951 (f_options): Add flag_optimize_sibling_calls.
1952 (rest_of_compilation): Conditionize
1953 optimize_sibling_and_tail_recursive_calls by
1954 flag_optimize_sibling_calls.
1955 (main): Set flag_optimize_sibling_calls for -O2.
1956 * stmt.c (expand_return): Conditionize tail recursion by
1957 flag_optimize_sibling_calls.
1958
1959 2000-03-29 Richard Henderson <rth@cygnus.com>
1960
1961 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
1962 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
1963
1964 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
1965
1966 * except.c (add_eh_table_entry): Mark type_info's as referenced.
1967
1968 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1969
1970 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
1971 is given.
1972 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
1973 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
1974 * config/rs6000/aix.h: then modified likewise.
1975
1976 2000-03-28 Richard Henderson <rth@cygnus.com>
1977
1978 * rtl.h: Redistribute enum reg_note documentation.
1979 Kill trailing whitespace.
1980 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
1981 Kill trailing whitespace.
1982
1983 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
1984
1985 * cppfiles.c (hash_IHASH): Just return i->hash.
1986 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
1987 htab_find_with_hash.
1988 (cpp_read_file): Likewise.
1989 (find_include_file): Likewise. Properly initialize
1990 ih->nshort. Share ih->name and ih->nshort if possible.
1991 * cpphash.c (_cpp_calc_hash): New function.
1992 (hash_HASHNODE): Just return h->hash.
1993 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
1994 htab_find_with_hash.
1995 * cpphash.h: Prototype _cpp_calc_hash.
1996 * cppinit.c (initialize_builtins): Provide a valid hash
1997 to _cpp_make_hashnode, using _cpp_calc_hash.
1998
1999 * cpphash.c (collect_expansion): # is not a special character
2000 in object-like macros. In -traditional mode, /**/ is not
2001 token paste at the beginning or end of the line.
2002 * cpplib.c (do_include, do_import, do_include_next): If
2003 parse_include fails, return immediately.
2004
2005 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
2006
2007 * config/arm/arm.md (return peepholes): Update to reflect the new
2008 call insn patterns.
2009 * config/arm/arm.c (arm_volatile_func): Also check
2010 current_function_nothrow.
2011 (output_return_instruction, output_func_prologue): Use it.
2012 (arm_output_epilogue, arm_expand_prologue): Likewise.
2013
2014 2000-03-27 Tom Tromey <tromey@cygnus.com>
2015
2016 * gcc.c (handle_braces): In {x*...} case, break out of loop if
2017 switch is found.
2018
2019 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2020
2021 * expr.c (store_constructor): SIZE now signed.
2022 For EXPR_SIZE, don't evaluate size; just needed if constant.
2023 * fold-const.c (fold): Fix a number of cases when folded tree is
2024 wrong type.
2025 * function.c (flush_addressof): Reenable.
2026 * tree.h (flush_addressof): Likewise.
2027 * toplev.c (independent_decode_option): Look at strings_processed.
2028 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
2029
2030 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
2031
2032 * sibcall.c (indentify_call_return_value): Find last call in the chain;
2033 Allow stack adjustment after function call.
2034
2035 * regmove.c (struct csa_memlist): Make mem field rtx *.
2036 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
2037 (try_apply_stack_adjustment): Replace whole MEM rtx.
2038 (combine_stack_adjustments_for_block): Update calls
2039 to record_one_stack_ref.
2040
2041 2000-03-28 Neil Booth <NeilB@earthling.net>
2042
2043 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
2044 '\\' rather than a null character, so nulls are not special. Fix
2045 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
2046 speed trigraph conversion.
2047 (_cpp_init_input_buffer): Initialize trigraph map.
2048
2049 2000-03-27 Alan Modra <alan@linuxcare.com.au>
2050
2051 * config/i386/i386.c (output_387_binary_op): Correct intel
2052 mode assembly output, and add spaces after commas in AT&T
2053 output. Correct Unixware assembler comment. Document input
2054 constraints. Comment fp operations. Reduce profligate buffer
2055 size. Remove extraneous abort. Localize temp var.
2056 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
2057 (output_fix_trunc): Add spaces after commas in assembly output.
2058
2059 2000-03-27 Richard Henderson <rth@cygnus.com>
2060
2061 * i386-protos.h (ix86_match_ccmode): Declare.
2062 * i386.c (ix86_match_ccmode): New.
2063 (ix86_expand_fp_compare): Update for pattern renames.
2064 (ix86_expand_strlensi_unroll_1): Likewise.
2065 * i386.h (EXTRA_CC_MODES): Add CCZ.
2066 (SELECT_CC_MODE): Use it for EQ/NE zero.
2067 * i386.md (cmpsi_ccz_1): New.
2068 (cmpqi_ccz_1): New.
2069 (*testsi_ccz_1): New.
2070 (testqi_ccz_1): New.
2071 (cmpsi_ccno_1): Rename from cmpsi_0.
2072 (testsi_ccno_1): Rename from testsi_1.
2073 (testqi_ccno_1): Rename from testqi_1.
2074 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
2075 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
2076 (*cmphi_0): Use ix86_match_ccmode.
2077 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
2078 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
2079 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
2080 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
2081 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
2082 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
2083 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
2084 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
2085 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
2086 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
2087 (appropriate peepholes): Likewise.
2088 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
2089 (*subsi_3, *subhi_3, *subqi_3): Remove.
2090 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
2091 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
2092 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
2093 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
2094 (x86_shift_adj_1): Use CCZ.
2095 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
2096
2097 2000-03-27 Stan Cox <scox@cygnus.com>
2098
2099 * resource.h (mark_resource_type): New.
2100 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
2101 find_free_register): Use mark_resource_type.
2102 (mark_set_resources): Change include_delayed_effects
2103 to mark_resource_type.
2104 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
2105 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
2106 Use mark_resource_type.
2107
2108 2000-03-27 Richard Henderson <rth@cygnus.com>
2109
2110 * i386.md (call_pop_0, call_value_pop_0): New.
2111 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
2112 (call_value_pop_1): Likewise.
2113 (call_0, call_value_0): New.
2114 (call_1, call_value_1): Remove constraint from unused arg.
2115
2116 2000-03-27 Nick Clifton <nickc@cygnus.com>
2117
2118 * invoke.texi (Spec Files): Document new spec % command created by
2119 Tom Tromey's recent patch.
2120
2121 2000-03-27 Jakub Jelinek <jakub@redhat.com>
2122
2123 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
2124 if not defined.
2125
2126 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2127
2128 * expr.c (expand_assignment): Fix typo in last change.
2129
2130 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
2131
2132 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2133
2134 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
2135 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
2136 and DECL_INLINE if FUNCTION_DECL.
2137 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
2138 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
2139 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
2140 (combine_parm_decls): Likewise.
2141 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
2142 * print-tree.c (print_node): Likewise.
2143 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
2144 DECL_TRANSPARENT_UNION on proper decl types.
2145 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
2146 * stor-layout.c (layout_decl): Only check DECL_PACKED and
2147 DECL_BIT_FIELD of FIELD_DECL.
2148 * tree.h (DECL_RESULT_FLD): New macro.
2149
2150 * expr.c (expand_assignment): Add code to handle variable-sized
2151 BLKmode case.
2152
2153 2000-03-26 Richard Henderson <rth@cygnus.com>
2154
2155 * calls.c (expand_call): Pass parms not original exp to
2156 optimize_tail_recursion. Mind return value instead of looking
2157 for a barrier.
2158 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
2159 call_expr. Move checks for call_expr and current_function_decl ...
2160 (expand_return): ... here.
2161
2162 2000-03-26 Tom Tromey <tromey@cygnus.com>
2163
2164 * gcc.c (handle_braces): Recognize `%{<S}' construct.
2165 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
2166 defines.
2167 (process_command): Use them.
2168 (check_live_switch): Likewise.
2169 (give_switch): Skip ignored switches.
2170
2171 2000-03-26 Jan Hubicka <jh@suse.cz>
2172
2173 * jump.c (jump_optimize_1): Fix typo in elide optimizations
2174 for minimal jump pass test.
2175
2176 2000-03-26 Mark Mitchell <mark@codesourcery.com>
2177
2178 * integrate.c (function_cannot_inline_p): Do inline functions that
2179 return `void'.
2180
2181 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2182
2183 * stor-layout.c (layout_type, set_sizetype): early_type_list is
2184 now a list of TREE_LIST entries, not types.
2185 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
2186
2187 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
2188 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
2189 int_bit_position.
2190 * config/mips/mips.c (function_arg): Likewise; also remove cast
2191 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
2192 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
2193 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
2194 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
2195 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
2196 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
2197 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
2198 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
2199 num_adjusts now unsigned.
2200 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
2201 * config/sparc/sparc.c (struct function_arg_record_value_parms):
2202 NREGS now unsigned.
2203 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
2204 as is BITPOS variable; use host_integerp and int_bit_position.
2205 (function_arg_record_value_2): Likewise.
2206 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
2207 Variable REGNO now unsigned.
2208 (function_arg_record_value): NREGS now unsigned.
2209
2210 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
2211
2212 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
2213
2214 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2215
2216 * Rework fields used to describe positions of bitfields and
2217 modify sizes to be unsigned and use HOST_WIDE_INT.
2218 * alias.c (reg_known_value_size): Now unsigned.
2219 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
2220 (really_start_incremental_init): Use bitsize_zero_node.
2221 (push_init_level, pop_init_level, output_init_element): Likewise.
2222 Use bitsize_unit_node and bitsize_one_node.
2223 (output_pending_init_elements, process_init_element): Likewise.
2224 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
2225 (make_extraction): Position and length HOST_WIDE_INT and unsigned
2226 HOST_WIDE_INT, respectively.
2227 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
2228 (num_sign_bit_copies): Returns unsigned.
2229 BITWIDTH now unsigned; rework arithmetic.
2230 Remove recursive call from arg to MAX.
2231 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
2232 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
2233 REGNO now unsigned.
2234 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
2235 (find_split_point, expand_compound_operation, make_extraction): LEN
2236 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
2237 (make_field_assignment): Likewise.
2238 (combine_simplify_rtx): Add cast.
2239 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
2240 (force_to_mode): WIDTH now unsigned; add cast.
2241 (if_then_else_cond): SIZE now unsigned.
2242 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
2243 (extended_count): Now returns unsigned.
2244 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
2245 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
2246 (simplify_comparison): MODE_WIDTH now unsigned.
2247 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
2248 (mark_used_regs_combine): Likewise; rework arithmetic.
2249 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
2250 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
2251 (record_promoted_value): REGNO now unsigned.
2252 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
2253 (get_last_value): REGNO now unsigned.
2254 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
2255 (reg_dead_regno, reg_dead_endregno): Now unsigned.
2256 (remove_death): Arg REGNO now unsigned.
2257 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
2258 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
2259 now unsigned.
2260 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
2261 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
2262 (struct cse_reg_info): REGNO now unsigned.
2263 (cached_regno): Now unsigned.
2264 (REGNO_QTY_VALID_P): Add cast.
2265 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
2266 (remove_invalid_regs): Likewise.
2267 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
2268 as are variables END and I.
2269 (get_cse_reg_info, insert): Likewise.
2270 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
2271 (canon_hash): Likewise.
2272 (insert_regs, lookup_for_remove): REGNO now unsigned.
2273 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
2274 New variable RN.
2275 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
2276 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
2277 * emit-rtl.c (subreg_realpart_p): Add cast.
2278 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
2279 (operand_subword_force): Arg I is now unsigned.
2280 * except.c (eh_regs): Variable I is now unsigned.
2281 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
2282 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
2283 length is unsigned HOST_WIDE_INT; likewise for internal variables.
2284 (store_split_bit_field, extract_fixed_bit_field): Likewise.
2285 (extract_split_bit_field, store_bit_field, extract_bit_field):
2286 Likewise.
2287 * expr.c (store_constructor_fields, store_constructor, store_field):
2288 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
2289 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
2290 (do_jump): Likewise.
2291 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
2292 MAX_SIZE is now unsigned.
2293 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
2294 (emit_group_store): Likewise.
2295 (emit_move_insn): I now unsigned.
2296 (store_constructor): Use host_integerp, tree_low_cst, and
2297 bitsize_unit_node.
2298 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
2299 Rework all calculations to use trees and new fields.
2300 * expr.h (promoted_input_arg): Regno now unsigned.
2301 (store_bit_field, extract_bit_field): Adjust types of pos and size.
2302 (mark_seen_cases): Arg is HOST_WIDE_INT.
2303 * flow.c (verify_wide_reg_1): REGNO now unsigned.
2304 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
2305 precisions and alignments are unsigned.
2306 (optimize_bit_field_compare, fold_truthop): Likewise.
2307 (int_const_binop): Adjust threshold for size_int_type_wide call.
2308 (fold_convert): Likewise.
2309 (size_int_type_wide): Make table larger and fix thinko that only
2310 had half of table used.
2311 (all_ones_mask_p, fold): Precisions are unsigned.
2312 * function.c (put_reg_info_stack): REGNO is unsigned.
2313 (instantiate_decl): Size is HOST_WIDE_INT.
2314 (instantiate_virtual_regs): I is unsigned.
2315 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
2316 (promoted_input_arg): REGNO is unsigned.
2317 * function.h (struct function): x_max_parm_reg is now unsigned.
2318 * gcse.c (max_gcse_regno): Now unsigned.
2319 (struct null_pointer_info): min_reg and max_reg now unsigned.
2320 (lookup_set, next_set): REGNO arg now unsigned.
2321 (compute_hash_table): REGNO and I now unsigned.
2322 (handle_avail_expr): regnum_for_replacing now unsigned.
2323 (cprop_insn): REGNO now unsigned.
2324 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
2325 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
2326 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
2327 * hard-reg-set.h (reg_class_size): Now unsigned.
2328 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
2329 * jump.c (mark_modified_reg): I now unsigned; add cast.
2330 (rtx_equal_for_thread_p): Add cast.
2331 * loop.c (max_reg_before_loop): Now unsigned.
2332 (struct_movable): REGNO now unsigned.
2333 (try_copy_prop): REGNO arg unsigned.
2334 (regs_match_p): XN and YN now unsigned.
2335 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
2336 (strength_reduce): Likewise; NREGS also unsigned.
2337 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
2338 * loop.h (struct iv_class): REGNO now unsigned.
2339 (max_reg_before_loop, first_increment_giv, last_increment_giv):
2340 Now unsigned.
2341 * machmode.h (mode_size, mode_unit_size): Now unsigned.
2342 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
2343 * optabs.c (expand_binop): I and NWORDS now unsigned.
2344 (expand_unop): I now unsigned.
2345 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
2346 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
2347 * real.c (significand_size): Now returns unsigned.
2348 * real.h (significand_size): Likewise.
2349 * regclass.c (reg_class_size): Now unsigned.
2350 (choose_hard_reg_mode): Both operands now unsigned.
2351 (record_reg_classes): REGNO and NR now unsigned.
2352 (reg_scan): NREGS now unsigned.
2353 (reg_scan_update): old_max_regno now unsigned.
2354 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
2355 * reload.c (find_valid_class): BEST_SIZE now unsigned.
2356 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
2357 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
2358 Likewise for variable R.
2359 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
2360 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
2361 (find_equiv_reg): Add casts.
2362 (regno_clobbered_p): Arg REGNO now unsigned.
2363 * reload.h (struct reload): NREGS now unsigned.
2364 (refers_to_regno_for_reload_p): Regno args are unsigned.
2365 (regno_clobbered_p): Likewise.
2366 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
2367 (compute_use_by_pseudos): REGNO now unsigned.
2368 (find_reg): I and J now unsigned, new variable K, and change loop
2369 variables accordingly; THIS_NREGS now unsigned.
2370 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
2371 (spill_hard_reg): REGNO arg now unsigned; add casts.
2372 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
2373 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
2374 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
2375 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
2376 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
2377 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
2378 (emit_reload_insns): REGNO now unsigned.
2379 (reload_cse_move2add): Add cast.
2380 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
2381 and rework loop.
2382 * resource.c (mark_referenced_resources, mark_set_resources): New
2383 variable R; REGNO and LAST_REGNO now unsigned.
2384 (mark_target_live_regs): J and REGNO now unsigned.
2385 * rtl.c (mode_size, mode_unit_size): Now unsigned.
2386 * rtl.h (union rtunion_def): New field rtuint.
2387 (XCUINT): New macro.
2388 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
2389 (operand_subword, operand_subword_force): Word number is unsigned.
2390 (choose_hard_reg_mode): Operands are unsigned.
2391 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
2392 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
2393 (regno_use_in, combine_instructions, remove_death): Likewise.
2394 (reg_scan, reg_scan_update): Likewise.
2395 (extended_count): Return is unsigned.
2396 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
2397 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
2398 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
2399 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
2400 (reg_reg_last_1): FIRS and LAST now unsigned.
2401 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
2402 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
2403 now unsigned.
2404 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
2405 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
2406 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
2407 (replace_regs): Arg NREGS now unsigned.
2408 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
2409 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
2410 (simplify_binary_operation): Likewise.
2411 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
2412 THIS_LAST now unsigned.
2413 (cselib_record_set): Add cast.
2414 * ssa.c (ssa_max_reg_num): Now unsigned.
2415 (rename_block): REGNO now unsigned.
2416 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
2417 sizes now unsigned.
2418 (all_cases_count): Just return -1 not -2.
2419 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
2420 Rework tests to use trees whenever possible.
2421 Use host_integerp and tree_low_cst.
2422 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
2423 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
2424 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
2425 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
2426 (smallest_mode_for_size): Likewise.
2427 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
2428 KNOWN_ALIGN is now an alignment, so simplify code.
2429 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
2430 (start_record_layout): Renamed from new_record_layout_info.
2431 Update to new fields.
2432 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
2433 New functions.
2434 (place_union_field): Renamed from layout_union_field.
2435 Update to use new fields in rli.
2436 (place_field): Renamed from layout_field.
2437 Major rewrite to use new fields in rli; pass alignment to layout_decl.
2438 (finalize_record_size): Rework to use new fields in rli and handle
2439 union.
2440 (compute_record_mode): Rework to simplify and to use new DECL fields.
2441 (finalize_type_size): Make rounding more consistent.
2442 (finish_union_layout): Deleted.
2443 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
2444 (layout_type, case RECORD_TYPE): Call new function names.
2445 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
2446 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
2447 (get_best_mode): UNIT is now unsigned; remove casts.
2448 * tree.c (bit_position): Compute from new fields.
2449 (byte_position, int_byte_position): New functions.
2450 (print_type_hash_statistics): Cast to remove warning.
2451 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
2452 (build_index_type): Likewise; make subtype of sizetype.
2453 (build_index_2_type): Pass sizetype to build_range_type.
2454 (build_common_tree_nodes): Use size_int and bitsize_int to
2455 initialize nodes; add bitsize_{zero,one,unit}_node.
2456 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
2457 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
2458 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
2459 (DECL_FIELD_BITPOS): Deleted.
2460 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
2461 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
2462 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
2463 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
2464 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
2465 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
2466 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
2467 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
2468 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
2469 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
2470 (DECL_ALIGN): Adjust to new field in union.
2471 (DECL_OFFSET_ALIGN): New field.
2472 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
2473 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
2474 (union tree_decl): Add struct for both aligns.
2475 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
2476 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
2477 (struct record_layout_info): Rework fields to have offset
2478 alignment and byte and bit position.
2479 (start_record_layout, place_field): Renamed from old names.
2480 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
2481 (byte_position, int_byte_position): Likewise.
2482 (get_inner_reference): Change types of position and length.
2483 * unroll.c (unroll_loop): New variable R; use for some loops.
2484 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
2485 (calculate_giv_inc): Arg REGNO now unsigned.
2486 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
2487 * varasm.c (assemble_variable): Clean up handling of size using
2488 host_integerp and tree_low_cst.
2489 (decode_addr_const): Use byte, not bit, position.
2490 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
2491 use tree_low_cst and int_bit_position.
2492 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
2493
2494 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
2495
2496 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
2497 (reorder_block_def): New members eff_head and eff_end.
2498 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
2499 (verify_insn_chain): New function.
2500 (skip_insns_between_block): Add code to skip deleted insns.
2501 Check for note before using.
2502 (chain_reorder_blocks): Replace calls to skip_insns_between_block
2503 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
2504 Check for note before using.
2505 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
2506 (fixup_reorder_chain): Restructure, clean up, defect removal.
2507 (reorder_basic_blocks): Remove last_insn and references to it.
2508 Moved insn chain verification code into a new function (see above).
2509 Delete defective code that sets last insn.
2510 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
2511 all blocks.
2512
2513 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2514
2515 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
2516
2517 2000-03-24 Richard Henderson <rth@cygnus.com>
2518
2519 * tree.c (lang_safe_for_unsave): Remove.
2520 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
2521 allowing for two levels of unsafeness. Remove lang hook.
2522 * tree.h: Update declarations.
2523 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
2524 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
2525 Always fail sibcalls when there are pending cleanups.
2526
2527 2000-03-24 Geoff Keating <geoffk@cygnus.com>
2528
2529 * flow.c (propagate_block): When we delete an ADDR_VEC,
2530 also delete the BARRIER following it if there is one.
2531
2532 2000-03-24 Richard Henderson <rth@cygnus.com>
2533
2534 * builtins.c (expand_builtin_bzero): Convert `length' argument
2535 to sizetype.
2536
2537 2000-03-24 Jakub Jelinek <jakub@redhat.com>
2538
2539 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
2540 comparison if regno's are equal.
2541 * calls.c (initialize_argument_informat): Add ecf_flags argument.
2542 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
2543 (expand_call): Update caller.
2544 Avoid making a sibling call if argument size of the callee is larger
2545 than argument size of the caller.
2546 Call hard_function_value with outgoing set if in sibcall pass.
2547 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
2548
2549 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
2550 Change LEAF_REGISTERS from an array initializer to actual array
2551 identifier. Move static global variable into the function.
2552 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
2553 sequences for leaf functions.
2554 * global.c (global_alloc): Likewise.
2555 * tm.texi (LEAF_REGISTERS): Update documentation.
2556
2557 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
2558 TARGET_FLAT leaf disabling hack.
2559 (LEAF_REGISTERS): Changed from an array initializer to actual array
2560 identifier to avoid duplication and remove the above hack.
2561 (FUNCTION_OK_FOR_SIBCALL): Define.
2562 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
2563 always like call attribute.
2564 (eligible_for_sibcall_delay): New attribute.
2565 (sibcall): New delay type.
2566 (sibcall, sibcall_value, sibcall_epilogue): New expands.
2567 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
2568 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
2569 * config/sparc/sparc.c (sparc_leaf_regs): New array.
2570 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
2571 New functions.
2572 (output_function_epilogue): Move part of the code into
2573 output_restore_regs.
2574 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
2575 TYPE_SIBCALL.
2576 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
2577 prototypes.
2578
2579 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
2580 until infrastructure is finished.
2581
2582 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
2583
2584 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
2585 (save_parm_insns): Not here.
2586
2587 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2588
2589 * builtins.c (expand_builtin_bzero): New function.
2590 (expand_builtin): Handle bzero.
2591
2592 * builtins.def: Add BUILT_IN_BZERO.
2593
2594 * c-common.c (c_common_nodes_and_builtins): Provide builtin
2595 prototype & function for bzero.
2596
2597 2000-03-23 Michael Meissner <meissner@redhat.com>
2598
2599 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
2600 change adding TARGET_FP to the TF floating point insns, except for
2601 trunctfsf2, which generates direct calls to truncdfsf2.
2602
2603 2000-03-23 Geoff Keating <geoffk@cygnus.com>
2604
2605 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
2606 try to protect against middle-end changes that break binary
2607 compatibility.
2608 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
2609
2610 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2611
2612 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
2613
2614 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2615
2616 * calls.c (expand_call): If TARGET is passed by reference and
2617 is readonly, write a CLOBBER.
2618
2619 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2620
2621 * builtins.c (expand_builtin): Handle bcmp.
2622
2623 * builtins.def: Add BUILT_IN_BCMP.
2624
2625 * c-common.c (c_common_nodes_and_builtins): Provide builtin
2626 prototype & function for bcmp.
2627
2628 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
2629
2630 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
2631 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
2632 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
2633
2634 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
2635
2636 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
2637 alternative when using -fp64 -gp32.
2638
2639 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
2640
2641 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
2642 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
2643 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
2644
2645 * frame.h (frame_state): Revert last change.
2646 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
2647 * libgcc2.c (throw_helper): Revert last change.
2648
2649 2000-03-22 Richard Henderson <rth@cygnus.com>
2650
2651 * stmt.c (expand_asm_operands): Don't promote the temporary.
2652
2653 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2654
2655 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
2656 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
2657 c_get_alias_set): Likewise.
2658 * c-decl.c (duplicate_decls): Likewise.
2659 * c-typeck.c (default_conversion,build_unary_op): Likewise.
2660 * calls.c (initialize_argument_information): Likewise.
2661 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
2662 Likewise.
2663 * dwarfout.c (decl_class_context,output_type): Likewise.
2664 * expr.c (get_inner_reference): Likewise.
2665 * fold-const.c (simple_operand_p,fold): Likewise.
2666 * function.c (aggregate_value_p): Likewise.
2667 * stmt.c (expand_asm_operands): Likewise.
2668 * varasm.c (named_section): Likewise.
2669
2670 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
2671
2672 Implement dwarf2 exception handling for the ARM.
2673 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
2674 (DWARF_FRAME_RETURN_COLUMN): Define.
2675 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
2676 REG_FRAME_RELATED_EXPR note.
2677 (emit_sfm): Likewise.
2678 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
2679 * dwarf2out.c (reg_save): Handle saving a register to itself.
2680 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
2681 * except.c (eh_regs): Don't use the static chain reg if it's
2682 callee-saved.
2683 * frame.h (frame_state): Add cfa_saved field.
2684 * frame.c (execute_cfa_insn): Set it.
2685 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
2686 the epilogue.
2687 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
2688 Now takes a parm.
2689 (instantiate_virtual_regs): Adjust.
2690 * tm.texi: Adjust.
2691 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
2692 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
2693 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
2694
2695 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
2696 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
2697
2698 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2699
2700 * builtins.def: New file.
2701
2702 * Makefile.in (TREE_H): Depend on builtins.def.
2703
2704 * builtins.c (built_in_names): Use builtins.def.
2705
2706 * tree.h (built_in_function): Likewise.
2707
2708 2000-03-22 Mark Mitchell <mark@codesourcery.com>
2709
2710 * tree.c (size_in_bytes): Return size_zero_node, not
2711 integer_zero_node.
2712
2713 2000-03-22 Geoff Keating <geoffk@cygnus.com>
2714
2715 * config/fp-bit.c (pack_d): Correct the case when a denormal
2716 is rounded up and stops being denormal.
2717
2718 2000-03-21 Richard Henderson <rth@cygnus.com>
2719
2720 * config/alpha/alpha.c (function_arg): Check for void_type_node
2721 before using MUST_PASS_IN_STACK.
2722
2723 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
2724
2725 * regmove.c (combine_stack_adjustments_for_block): Check that
2726 the stack pointer is a valid memory address.
2727
2728 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
2729
2730 * calls.c: re-install Mar 16 emit_library_call merge.
2731
2732 2000-03-21 Jakub Jelinek <jakub@redhat.com>
2733
2734 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
2735 we cannot be sure that if reload_completed base register will
2736 be properly aligned.
2737
2738 2000-03-21 Richard Henderson <rth@cygnus.com>
2739
2740 * flow.c (delete_block): Fix typo last change.
2741
2742 2000-03-21 Mark Mitchell <mark@codesourcery.com>
2743
2744 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
2745 not COMPLETE_TYPE_P, to check the type of the expression.
2746
2747 2000-03-21 Michael Meissner <meissner@redhat.com>
2748
2749 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
2750 all floating point insns that just tested the macro
2751 TARGET_HAS_XFLOATING_LIBS.
2752 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
2753 used to only use the gprs.
2754
2755 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
2756
2757 * tree.h (COMPLETE_TYPE_P): New macro.
2758 (COMPLETE_OR_VOID_TYPE_P): New macro.
2759 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
2760 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
2761 * c-aux-info.c (gen_type): Use them.
2762 * c-common.c (c_expand_expr_stmt): Likewise.
2763 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
2764 grokdeclarator, grokparms, finish_struct, start_function,
2765 store_parm_decls, combine_parm_decls): Likewise.
2766 * c-parse.y (cast_expr): Likewise.
2767 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
2768 c_size_in_bytes, c_alignof, build_component_ref,
2769 build_indirect_ref, build_array_ref, convert_arguments,
2770 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
2771 * calls.c (initialize_argument_information): Likewise.
2772 * convert.c (convert_to_integer): Likewise.
2773 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
2774 * dwarfout.c (location_or_const_value_attribute,
2775 output_enumeration_type_die, output_structure_type_die,
2776 output_union_type_die, output_type): Likewise.
2777 * expr.c (safe_from_p, expand_expr): Likewise.
2778 * function.c (assign_parms): Likewise.
2779 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
2780 * tree.c (build_array_type, build_function_type,
2781 build_method_type, build_offset_type, build_complex_type): Likewise.
2782 * c-parse.c, c-parse.h: Regenerated.
2783
2784 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2785
2786 * config/c4x/rtems.h: Include config/rtems.h.
2787
2788 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
2789
2790 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
2791 decl is a FUNCTION_DECL
2792
2793 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
2794
2795 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
2796 function uses output registers. Don't save RP for leaf functions.
2797 Do save RP even if no epilogue.
2798 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
2799 (CALL_USED_REGISTERS): Unmark in registers.
2800 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
2801 to near the middle.
2802
2803 2000-03-20 Geoff Keating <geoffk@cygnus.com>
2804
2805 * config/rs6000/rs6000.md (bunordered): New expander.
2806 (bordered): New expander.
2807 (buneq): New expander.
2808 (bunge): New expander.
2809 (bungt): New expander.
2810 (bunle): New expander.
2811 (bunlt): New expander.
2812 (bltgt): New expander.
2813
2814 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
2815 (ccr_bit_negated_p): New function.
2816 (print_operand): For %C, generate appropriate cror for UNEQ,
2817 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
2818
2819 2000-03-20 Andreas Jaeger <aj@suse.de>
2820
2821 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
2822 warning.
2823
2824 * tree.h (safe_for_unsave): Prototype.
2825
2826 2000-03-20 Richard Henderson <rth@cygnus.com>
2827
2828 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
2829 (combine_stack_adjustments_for_block): Don't allow sp references
2830 in the side of a set we're not fixing up.
2831 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
2832 after life_analysis.
2833
2834 2000-03-20 Richard Henderson <rth@cygnus.com>
2835
2836 * calls.c (expand_call): Don't bother generating tail call
2837 sequences if there are pending cleanups. Use
2838 expand_start_target_temps/expand_end_target_temps to elide
2839 cleanups created during sibcall expansion.
2840
2841 2000-03-20 Geoff Keating <geoffk@cygnus.com>
2842
2843 * configure.in: Set $IFS to a value if it doesn't already have one
2844 in the --enable-checking handling.
2845 * configure: Regenerate.
2846
2847 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2848
2849 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
2850 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
2851 Regenerated.
2852
2853 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
2854
2855 * jump.c (delete_noop_moves): Remove code attempting to
2856 combine stack adjustments.
2857
2858 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2859
2860 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
2861 * except.c (emit_cleanup_handler): Use them.
2862 (expand_end_all_catch): Likewise.
2863 * function.c (fixup_var_refs): Likewise.
2864 (expand_function_end): Clear catch_clauses_last.
2865 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
2866 * except.h (struct eh_status): New field x_catch_clauses_last.
2867 (catch_clauses_last): New define.
2868
2869 * Makefile.in (tree.o): Depend on HASHTAB_H.
2870 * tree.c: Include hashtab.h.
2871 (struct type_hash): Remove next field.
2872 (TYPE_HASH_SIZE): Remove.
2873 (TYPE_HASH_INITIAL_SIZE): New define.
2874 (type_hash_table): Change type to htab_t.
2875 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
2876 mark_hash_entry): New functions.
2877 (init_obstacks): Allocate type hash.
2878 (type_hash_lookup): Use htab functions.
2879 (type_hash_add, mark_type_hash): Likewise.
2880 (dump_tree_statistics): Call print_type_hash_statistics.
2881
2882 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2883
2884 * rs6000/t-aix41: New file.
2885
2886 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
2887
2888 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
2889
2890 * tm.texi (Driver): Fix typos and tweak entry for
2891 INCLUDE_DEFAULTS.
2892 Move misplaced STRUCT_FORCE_BLK entry ...
2893 (Storage Layout): ... to here.
2894 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
2895
2896 2000-03-19 Richard Henderson <rth@cygnus.com>
2897
2898 * flow.c (delete_block): Delete the addr_vec along with the block.
2899 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
2900 reference labels.
2901
2902 * fold-const.c (extract_muldiv): Apply type check for defined
2903 overflow to multiply as well as divide.
2904
2905 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
2906
2907 2000-03-18 Mark Mitchell <mark@codesourcery.com>
2908
2909 * emit-rtl.c (remove_unncessary_notes): Check that all
2910 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
2911 associated NOTE_BLOCK.
2912 * function.h (identify_blocks): Update comments.
2913 (reorder_blocks): Declare.
2914 * function.c (identify_blocks): Don't take paramters.
2915 (reorder_blocks): Don't take parameters.
2916 * loop.h (find_loop_tree_blocks): Remove.
2917 (unroll_block_trees): Likewise.
2918 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
2919 reorder_blocks instead of unroll_block_trees.h
2920 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
2921 * stmt.c (find_loop_tree_blocks): Remove.
2922 (unroll_block_trees): Likewise.
2923 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
2924 in whole-function mode.
2925 * tree.h (reorder_blocks): Remove declaration.
2926
2927 * expr.c: Include intl.h.
2928 * Makefile.in (expr.o): Depend on intl.h.
2929
2930 2000-03-18 Richard Henderson <rth@cygnus.com>
2931
2932 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
2933
2934 2000-03-18 Mark Mitchell <mark@codesourcery.com>
2935
2936 * tree.h (tree_index): Remove enumerals for integer types.
2937 (integer_type_kind): New type.
2938 (integer_types): New variable.
2939 (char_type_node): Adjust.
2940 (signed_char_type_node): Likewise.
2941 (unsigned_char_type_node): Likewise.
2942 (short_integer_type_node): Likewise.
2943 (short_unsigned_type_node): Likewise.
2944 (integer_type_node): Likewise.
2945 (unsigned_type_node): Likewise.
2946 (long_integer_type_node): Likewise.
2947 (long_unsigned_type_node): Likewise.
2948 (long_long_integer_type_node): Likewise.
2949 (long_long_unsigned_type_node): Likewise.
2950 * tree.c (integer_types): New variable.
2951 (init_obstacks): Register it as a root.
2952
2953 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
2954
2955 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
2956 NEXT_INSN. Update last insn in chain.
2957
2958 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
2959
2960 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
2961 with TYPE_DECL_SUPPRESS_DEBUG set.
2962
2963 2000-03-18 Richard Henderson <rth@cygnus.com>
2964
2965 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
2966
2967 2000-03-18 Richard Henderson <rth@cygnus.com>
2968
2969 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
2970 care for HALF_PIC_P.
2971 (expander_call_insn_operand): Remove.
2972 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
2973 * i386.h (PREDICATE_CODES): Update.
2974 * i386.md (all call expanders): Remove predicates, remove special
2975 handling for half-pic.
2976 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
2977 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
2978 (sibcall_epilogue): New.
2979
2980 2000-03-17 Richard Henderson <rth@cygnus.com>
2981
2982 * rtlanal.c (single_set): Reject if the parallel has anything
2983 except SET or USE or CLOBBER.
2984
2985 2000-03-17 Jeff Law <law@cygnus.com>
2986 Richard Henderson <rth@cygnus.com>
2987
2988 * Makefile.in (OBJS): Add sibcall.o.
2989 (sibcall.o): New.
2990 * sibcall.c: New file.
2991 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
2992 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
2993 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
2994 Emit sibcall patterns when requested. Update all callers.
2995 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
2996 elimination seems feasable.
2997 * final.c (leaf_function_p): Sibling calls don't discount being
2998 a leaf function.
2999 * flow.c (HAVE_sibcall_epilogue): Provide default.
3000 (find_basic_blocks_1): Sibling calls don't throw.
3001 (make_edges): Make edge from sibling call to EXIT.
3002 (propagate_block): Don't remove sibcall_epilogue insns.
3003 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
3004 (sibcall_epilogue): New.
3005 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
3006 (identify_blocks_1): Likewise. Break out from ...
3007 (identify_blocks): ... here.
3008 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
3009 (reorder_blocks): ... here.
3010 (init_function_for_compilation): Zap prologue/epilogue as varrays.
3011 (record_insns): Extend a varray instead of mallocing new memory.
3012 (contains): Read a varray not array of ints.
3013 (sibcall_epilogue_contains): New.
3014 (thread_prologue_and_epilogue_insns): Emit and record
3015 sibcall_epilogue patterns.
3016 (init_function_once): Allocate prologue/epilogue varrays.
3017 * genflags.c (gen_insn): Treat sibcall patterns as calls.
3018 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
3019 Broken out from ...
3020 (save_for_inline_nocopy): ... here.
3021 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
3022 Broken out from ...
3023 (expand_inline_function): ... here.
3024 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
3025 (subst_constants): Handle 'n' formats.
3026 * jump.c (jump_optimize_minimal): New.
3027 (jump_optimize_1): New arg `minimal'; update callers. Elide most
3028 optimizations if it's set.
3029 * rtl.c (copy_rtx): Do copy jump & call for insns.
3030 * rtl.h (struct rtx_def): Document use of jump and call for insns.
3031 (SIBLING_CALL_P): New.
3032 (sibcall_use_t): New.
3033 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
3034 Invoke optimize_sibling_and_tail_recursive_calls.
3035 * tree.c (lang_safe_for_unsave): New.
3036 (safe_for_unsave): New.
3037 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
3038
3039 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
3040 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
3041 (*sibcall_osf_1, *sibcall_value_osf_1): New.
3042
3043 2000-03-17 Mark Mitchell <mark@codesourcery.com>
3044
3045 * objc/objc-act.c (encode_method_prototype): Pass types, not
3046 PARM_DECLs, to int_size_in_bytes.
3047
3048 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
3049
3050 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
3051
3052 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
3053 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
3054
3055 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3056
3057 * Clean up usages of TREE_INT_CST_LOW.
3058 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
3059 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
3060 Regenerated.
3061 * c-tree.h (min_precision): Move declaration to here.
3062 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
3063 (build_unary_op, add_pending_init): Use bit_position.
3064 (pending_init_member, process_init_element): Likewise.
3065 (really_start_incremental_init, push_init_level, pop_init_level):
3066 Don't make copies of nodes or modify them in place, use consistent
3067 types when tracking positions, and use tree routines computations.
3068 (set_init_index, output_init_element): Likewise.
3069 (output_pending_init_elements, process_init_element): Likewise.
3070 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
3071 tree_low_cst and int_bit_position; also minor cleanup.
3072 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
3073 (print_cst_octal): Precision is unsigned.
3074 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
3075 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
3076 (simple_type_align_in_bits): Result is unsigned int.
3077 Use tree_int_low_cst and host_integerp.
3078 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
3079 (field_byte_offset): Result is HOST_WIDE_INT.
3080 Change types of internal variables so alignments are unsigned int,
3081 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
3082 Use host_integerp, tree_low_cst, and int_bit_position.
3083 (add_bit_offset_attribute): Likewise.
3084 (add_data_member_location_attribute): Use tree_cst_low.
3085 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
3086 (add_bit_size_attribute): Use tree_low_cst.
3087 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
3088 * dwarfout.c: Similar changes to dwarf2out.c.
3089 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
3090 * genoutput.c (n_occurences): Return -1 for null string.
3091 (strip_whitespace): Accept null string and make into function.
3092 (scan_operands): Reflect above changes.
3093 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
3094 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
3095 * ssa.c (rename_registers): Add missing cast of arg to bzero.
3096 * tree.c (int_size_in_bytes): Check for too big to represent.
3097 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
3098 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
3099 New declarations.
3100 (min_precision): Delete from here.
3101 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
3102 and int_bit_position.
3103 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
3104 (encode_method_def): Likewise.
3105 (build_ivar_list_initializer): Use int_bit_position.
3106 (generate_shared_structures): Convert size.
3107 (encode_type, encode_complete_bitfield): Use integer_zerop.
3108 (encode_bitfield): Use tree_low_cst and int_bit_position.
3109
3110 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3111
3112 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
3113
3114 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3115
3116 * call.c (special_function_p): It is only malloc if it returns
3117 Pmode.
3118
3119 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3120
3121 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
3122 (C33_FLAG, TARGET_C3X): Add macros.
3123 (TARGET_SWITCHES): Add -m33 option.
3124 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
3125
3126 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3127
3128 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
3129 (PARALLEL_PACK_FLAG): Delete.
3130 (TARGET_SWITCHES): Update.
3131 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
3132
3133 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3134
3135 * fold-const.c (fold): Fix a few cases when the returned result
3136 is not of the same type as the input.
3137
3138 2000-03-16 Nick Clifton <nickc@cygnus.com>
3139
3140 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
3141 warning.
3142
3143 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3144
3145 * libgcc2.h: Move prototypes above macros with the same name.
3146 Wrap some function prototypes in the conditional which indicates
3147 whether they are supported, i.e. "BITS_PER_UNIT == 8".
3148
3149 2000-03-16 Richard Henderson <rth@cygnus.com>
3150
3151 * calls.c: Revert last two changes.
3152
3153 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
3154
3155 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
3156 has exponent 0 is a zero.
3157
3158 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
3159 HASH may already be nonzero. Add code/mode into hash value
3160 immediately after repeat label.
3161 (cselib_lookup): Don't leave the hash table in an inconsistent
3162 state before a hash lookup operation.
3163
3164 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
3165
3166 * i386.md (all HI and QI mode non-move patterns): Conditionize
3167 by TARGET_[HQ]IMODE_MATH.
3168 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
3169 x86_promote_qi_regs): Declare.
3170 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
3171 TARGET_PROMOTE_QI_REGS): New macros.
3172 (PROMOTE_MODE): New macro.
3173 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
3174 x86_promote_qi_regs): New global variables.
3175
3176 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
3177
3178 * calls.c (emit_library_call_value_1): Break out from ...; handle
3179 VOIDmode function calls too.
3180 (emit_library_call_value): ... here.
3181 (emit_library_call): Implement by calling emit_library_call_value_1.
3182
3183 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
3184
3185 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
3186 Update arg_space_so_far on stack adjustments.
3187 (emit_library_call, emit_library_call_value): Likewise; take into
3188 account arg_space_so_far and pending_stack_adjust when calculcating
3189 the boundary.
3190
3191 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
3192
3193 * flow.c: Move all basic block reordering code into its own file.
3194 (create_basic_block): Externalize.
3195 * bb-reorder.c: New file. Copy all basic block reordering code from
3196 flow.c to this file.
3197 (reorder_basic_blocks): Fix fencepost error in for-loop.
3198 (reorder_basic_blocks): Remove braces from single statement for-loops.
3199 * basic-block.h: Add declaration for create_basic_block.
3200 * Makefile.in: Add rules for bb-reorder.o.
3201
3202 2000-03-16 Neil Booth <NeilB@earthling.net>
3203
3204 * cppinit.c (handle_option): Implement #unassert directive
3205 as -A- command line option.
3206 (print_help): Update.
3207 * cpptexi.c: Update.
3208
3209 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
3210
3211 * md.texi (Standard Names): Document `jump'.
3212
3213 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
3214
3215 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
3216 gotos.
3217
3218 2000-03-15 Geoff Keating <geoffk@cygnus.com>
3219
3220 Merge changes from newppc-branch onto trunk.
3221
3222 2000-03-15 Geoff Keating <geoffk@cygnus.com>
3223
3224 * rs6000.c (toc_hash_table): Update for new hash table functions.
3225 (toc_hash_function): Likewise.
3226 (toc_hash_eq): Likewise.
3227 (toc_hash_mark_entry): Likewise.
3228 (toc_hash_mark_table): Likewise.
3229 (output_toc): Likewise.
3230 (rs6000_add_gc_roots): Likewise.
3231
3232 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3233
3234 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
3235 (AR_FLAGS_FOR_TARGET): here. New macro.
3236
3237 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
3238
3239 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
3240 fpmem_operand) Delete.
3241 (xer_operand) New.
3242 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
3243 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
3244 (rs6000_save_machine_status, rs6000_restore_machine_status,
3245 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
3246 references to above variables.
3247 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
3248 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
3249 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
3250 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
3251 (XER_REGNO_P, XER_REGNO): New.
3252 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
3253 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
3254 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
3255 XER_REGNO_P.
3256 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
3257 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
3258 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
3259
3260 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3261
3262 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
3263 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
3264 * rs6000.h: from here.
3265
3266 * rs6000-protos.h (rs6000_select_section): Provide prototype.
3267 (rs6000_select_rtx_section): Likewise.
3268 (rs6000_encode_section_info): Likewise.
3269 (sdata_section): Likewise.
3270 (sdata2_section): Likewise.
3271 (sbss_section): Likewise.
3272 * sysv4.h (rs6000_select_section): Delete prototype.
3273 (rs6000_select_rtx_section): Likewise.
3274 (rs6000_encode_section_info): Likewise.
3275 (sdata_section): Likewise.
3276 (sdata2_section): Likewise.
3277 (sbss_section): Likewise.
3278 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
3279
3280 * sysv4.h: Delete various unnecessary #undef's and put a comment
3281 on the remaining ones.
3282 Change various comments according to coding standard.
3283
3284 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
3285
3286 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
3287 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
3288 (CR0_REGNO_P) Remove.
3289 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
3290 setup_incoming_varargs, mtcrf_operation, print_operand,
3291 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
3292 Use the above macros.
3293
3294 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
3295
3296 * config/rs6000/rs6000.md: Added a new alternative for each
3297 pattern that had a 'x' alternative but no 'y' alternative.
3298 Added a new split for each of the above patterns.
3299
3300 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3301
3302 * aix41.h (ASM_CPU_SPEC): Delete.
3303 (CPP_CPU_SPEC): Delete.
3304
3305 * aix.h (RS6000_OUTPUT_BASENAME): Define.
3306 (ASM_OUTPUT_LABEL): Define.
3307 (ASM_GLOBALIZE_LABEL): Define.
3308 (STRIP_NAME_ENCODING): Define.
3309 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
3310 (STRIP_NAME_ENCODING): Don't define.
3311 (ASM_OUTPUT_LABEL): Don't define.
3312 (ASM_GLOBALIZE_LABEL): Don't define.
3313 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
3314 names, and ASM_OUTPUT_LABEL to output labels, rather than
3315 asm_fprintf.
3316 (ASM_OUTPUT_LABEL): Define.
3317 (ASM_OUTPUT_INT): Use assemble_name.
3318 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
3319 (STRIP_NAME_ENCODING): Don't undefine first.
3320 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
3321 ELF.
3322 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
3323 specified with 'asm' even with -fleading-underscore.
3324 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
3325 (output_epilog): Likewise.
3326 (output_toc): Likewise.
3327 * tramp.asm: Handle -fleading-underscore correctly.
3328
3329 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
3330 -mminimal-toc.
3331 (nonlocal_goto_receiver): Delete.
3332 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
3333
3334 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
3335 (SET_ASM_OP): Define.
3336 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
3337
3338 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
3339 (ASM_LONG): Define.
3340
3341 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
3342 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
3343
3344 * rs6000.h: Add 'u' to more constants.
3345
3346 2000-02-18 David Edelsohn <edelsohn@gnu.org>
3347
3348 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
3349
3350 2000-02-15 David Edelsohn <edelsohn@gnu.org>
3351
3352 * rs6000.c (reg_or_u_cint_operand): New function.
3353 (logical_operand): Handle 64-bit hosts.
3354 (logical_u_operand): New function.
3355 (non_logical_cint_operand): Handle 64-bit hosts.
3356 (non_logical_u_cint_operand): New function.
3357 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
3358 (PREDICATE_CODES): Define new functions.
3359 * rs6000-protos.h: Declare new functions.
3360 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
3361 (movdi_64): Bracket code intended for 64-bit hosts. Create
3362 CONST_DOUBLE for 32-bit values.
3363 (scc insns): Generate DImode compares.
3364 (mfcr insns): Create DImode versions.
3365 (sge matchers): New patterns.
3366
3367 2000-02-15 Gabriel Paubert <paubert@iram.es>
3368
3369 * rs6000.md: Correct instructions length attributes and
3370 constraints on unsigned compare instructions.
3371 (*ne0): Disable for PowerPC64.
3372
3373 2000-02-11 Geoff Keating <geoffk@cygnus.com>
3374
3375 * rs6000.c (output_function_profiler): Use .long for a 32-bit
3376 quantity, fix profile1.C test failure under -fPIC.
3377
3378 * rs6000.c: Add 'u' to many constants to suppress warnings.
3379 (constant_pool_expr_1): Make static.
3380 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
3381 * rs6000.h: Add 'u' to many constants to suppress warnings.
3382
3383 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
3384 for the start of the TOC, instead of LCTOC..0.
3385 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
3386 of the TOC.
3387 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
3388 (load_toc_aix_di): Use LCTOC..1.
3389
3390 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
3391 * rs6000.c (rs6000_legitimize_address): New function from
3392 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
3393 symbols in the constant pool that really are TOC references.
3394 (print_operand_address): For ELF, write TOC offsets under
3395 -fPIC as subtractions in the insn.
3396 (output_toc): For ELF, define symbols in TOC as normal labels,
3397 to match RTL.
3398 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
3399 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
3400 (create_TOC_reference): Prototype only when RTX_CODE is defined.
3401 * rs6000.md (movsi): Only use create_TOC_reference on
3402 symbols in the constant pool that really are TOC references.
3403
3404 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
3405 * rs6000.c (rs6000_reorg): Delete.
3406 * rs6000-protos.h (rs6000_reorg): Delete.
3407
3408 2000-02-09 Geoff Keating <geoffk@cygnus.com>
3409
3410 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
3411
3412 * aix.h (SETUP_FRAME_ADDRESSES): Define.
3413 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
3414 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
3415 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
3416 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
3417 rs6000_aix_emit_builtin_unwind_init.
3418 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
3419 rs6000_emit_eh_toc_restore on AIX.
3420 (return_eh_si): Use r2.
3421 (return_eh_di): Use r2.
3422
3423 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
3424 since we're breaking binary compatibility anyway.
3425
3426 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
3427
3428 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
3429 constant_pool_expr_p): Declare them.
3430 (constant_pool_expr_p): Declare it.
3431 * config/rs6000/rs6000.c (toc_label_name): Define.
3432 (rs6000_override_options): Set toc_label_name.
3433 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
3434 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
3435 uses_TOC): New functions.
3436 (print_operand): Delete old '*' case.
3437 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
3438 and strip off rtl for TOC before calling output_addr_const.
3439 (rs6000_emit_load_toc_table): Use toc_label_name.
3440 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
3441 the default.
3442 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
3443 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
3444 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
3445 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
3446 into explicit TOC_REGISTER offsets.
3447 (TOC_REGISTER): New macro.
3448 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
3449 TARGET_TOC to reference TOC_REGISTER.
3450 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
3451 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
3452 uses_TOC before emitting label references.
3453
3454 2000-02-05 Geoff Keating <geoffk@cygnus.com>
3455
3456 * rs6000.md (stack_tie): Fix warning.
3457
3458 * eabi-ctors.c: Use 'asm' names for the start/end variables,
3459 to handle -fleading-underscore.
3460 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
3461 (USER_LABEL_PREFIX): New macro.
3462 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
3463 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3464 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
3465 call-linux can use the same multilibs.
3466 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
3467 and call-linux multilibs. Do multilib with -fleading-underscore.
3468 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
3469 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
3470 to call-aix.
3471
3472 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
3473 have MASK_SOFT_FLOAT set.
3474 (CPP_FLOAT_DEFAULT_SPEC): New macro.
3475 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
3476 CPP_FLOAT_DEFAULT_SPEC.
3477
3478 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
3479 * rs6000.md: Whitespace change.
3480 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
3481 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
3482
3483 2000-02-05 Geoff Keating <geoffk@cygnus.com>
3484
3485 * rs6000.md (eh_epilogue): New expander.
3486 (eh_reg_restore): New expand/split/insn combination.
3487 (return_eh_si): New insn.
3488 (return_eh_di): New insn.
3489
3490 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
3491 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
3492 * eabi-ctors.c (__do_global_ctors): Register this object's
3493 frame. Clean up. Call atexit() after the constructors.
3494 (__do_global_dtors): Deregister this object's frame. Clean up.
3495 Allow for recursive calls to exit().
3496 * rs6000.c (fixuplabelno): New variable.
3497 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
3498 TARGET_RELOCATABLE, it slows down exec() under linux.
3499 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
3500
3501 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
3502 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
3503 (ASM_OUTPUT_DWARF_DELTA2): New macro.
3504 (ASM_OUTPUT_DWARF_DELTA4): New macro.
3505 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
3506 (ASM_OUTPUT_DWARF_ADDR): New macro.
3507 (ASM_OUTPUT_DWARF_DATA4): New macro.
3508 (ASM_OUTPUT_DWARF_DATA2): New macro.
3509 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
3510 (ASM_OUTPUT_DWARF_OFFSET): New macro.
3511 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
3512
3513 2000-02-03 Geoff Keating <geoffk@cygnus.com>
3514
3515 * rs6000.c (rs6000_sr_alias_set): New variable.
3516 (rs6000_override_options): Initialise rs6000_sr_alias_set.
3517 (rs6000_emit_stack_tie): New function.
3518 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
3519 in a way that dwarf2out can understand.
3520 (rs6000_frame_related): New function.
3521 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
3522 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
3523 Use rs6000_emit_stack_tie when needed.
3524 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
3525 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
3526 * rs6000.md (stack_tie): New insn.
3527 (return_internal_si): Allow return value to be in the count
3528 register.
3529 (return_internal_di): Likewise.
3530
3531 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
3532
3533 2000-02-03 Geoff Keating <geoffk@cygnus.com>
3534
3535 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
3536
3537 2000-01-31 Geoff Keating <geoffk@cygnus.com>
3538
3539 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
3540
3541 * rs6000.md (stmw): Use the right POWER opcode.
3542 (lmw): Likewise.
3543
3544 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3545
3546 * rs6000-protos.h: New file.
3547
3548 * rs6000.c: Include tm_p.h. Fix compile time warnings.
3549
3550 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
3551 warnings.
3552
3553 * sysv4.h: Likewise.
3554
3555 2000-01-28 Geoff Keating <geoffk@cygnus.com>
3556
3557 * ../../configure.in: Delete powerpcle-*-winnt*
3558 and powerpcle-*-pe|powerpcle-*-cygwin*.
3559 * ../../configure: Regenerated.
3560 * cygwin.h: Delete.
3561 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
3562 (TARGET_WINDOWS_NT): Delete.
3563 (ABI_NT): Delete.
3564 (CALL_NT_DLLIMPORT): Delete.
3565 Delete NT-specific code.
3566 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
3567 * win-nt.h: Delete.
3568 * t-winnt: Delete.
3569 * nt-ci.asm: Delete.
3570 * nt-cn.asm: Delete.
3571 * ntstack.asm: Delete.
3572
3573 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3574
3575 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
3576 (ASM_FILE_START): Likewise.
3577 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3578 (ASM_OUTPUT_LABELREF): Likewise.
3579 (ASM_OUTPUT_SKIP): Likewise.
3580 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3581 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3582 (ASM_OUTPUT_CASE_LABEL): Likewise.
3583 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3584 (ASM_OUTPUT_ASCII): Likewise.
3585
3586 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
3587
3588 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
3589 reload_toc_labelno for non-prologue TOC reloads. Also, don't
3590 increment rs6000_pic_labelno here.
3591 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
3592 and increment rs6000_pic_labelno here.
3593
3594 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
3595
3596 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
3597 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
3598 allocation knows (reg) is dead before the insn.
3599
3600 2000-01-21 Geoff Keating <geoffk@cygnus.com>
3601
3602 * rs6000.md (movsi_to_cr): Correct typo in output template.
3603
3604 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
3605
3606 * rs6000.c (rs6000_pic_labelno): Always define.
3607 (rs6000_pic_func_labelno): Delete.
3608 (lmw_operation): Check for a zero base register,
3609 which doesn't mean what we want.
3610 (stmw_operation): New function.
3611 (print_operand): Define new 'l' modifier.
3612 (rs6000_stack_info): We must save all 64 bits of the registers
3613 if TARGET_POWERPC64.
3614 (rs6000_output_load_toc_table): Delete.
3615 (rs6000_emit_load_toc_table): New function.
3616 (rs6000_allocate_stack_space): Delete.
3617 (rs6000_emit_allocate_stack): New function.
3618 (rs6000_emit_prologue): New function.
3619 (output_prolog): Use rs6000_emit_prologue.
3620 (rs6000_emit_epilogue): Change a few variable names to be
3621 more accurate. Restore all 64 bits of the registers if
3622 TARGET_POWERPC64. Only restore the FP registers which were used
3623 if they are being saved/restored one-at-a-time.
3624 (output_mi_thunk): Delete inefficient code generation.
3625 (output_function_profiler): Don't use rs6000_output_load_toc_table.
3626 * rs6000.h: Declare rs6000_emit_load_toc_table,
3627 rs6000_allocate_stack_space, stmw_operation. Don't declare
3628 rs6000_output_load_toc_table.
3629 * rs6000.md (elf_high): Allow register 0, but discourage it
3630 heavily.
3631 (elf_low): Support loading into register 0.
3632 (load_toc_aix_si): New pattern.
3633 (load_toc_aix_di): New pattern.
3634 (load_toc_v4_pic_si): New pattern.
3635 (load_toc_v4_pic_di): New pattern.
3636 (load_toc_v4_PIC_1): New pattern.
3637 (load_toc_v4_PIC_1b): New pattern.
3638 (load_toc_v4_PIC_2): New pattern.
3639 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
3640 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
3641 (prologue): New expander.
3642 (movesi_from_cr): New pattern.
3643 (stmw): New pattern.
3644 (save_fpregs_si): New pattern.
3645 (save_fpregs_di): New pattern.
3646
3647 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3648
3649 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
3650 (movdi): Likewise.
3651 (movhi): Likewise.
3652 (movqi): Likewise.
3653
3654 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3655
3656 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
3657 at present.
3658 (movsi_got_internal): Likewise.
3659 (movsi_got_internal+1): Likewise.
3660 (set_sp): 'unspec 7' does a SImode clobber.
3661
3662 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3663
3664 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
3665 allocate a stack temporary.
3666 (floatsidf2_internal): Likewise.
3667 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
3668 with unspec.
3669 (floatunssidf2): Don't use the fpmem "register", just
3670 allocate a stack temporary.
3671 (floatunssidf2_internal): Likewise.
3672 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
3673 with unspec.
3674 (floatsidf2_loadaddr): Delete.
3675 (floatsidf2_store1): Delete.
3676 (floatsidf2_store2): Delete.
3677 (floatsidf2_load): Delete.
3678 (fix_truncdfsi2): Don't use the fpmem "register", just
3679 allocate a stack temporary.
3680 (fix_truncdfsi2_internal_si): Delete.
3681 (fix_truncdfsi2_internal_di): Delete.
3682 (fix_truncdfsi2_internal): New insn.
3683 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
3684 (fix_truncdfsi2_store): Delete.
3685 (fix_truncdfsi2_load): Delete.
3686 (fctiwz): Produce gen_fctiwz.
3687
3688 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
3689
3690 * eabi.h (INVOKE__main): Define.
3691 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
3692 specially.
3693 (rs6000_emit_prologue): Likewise.
3694 * rs6000.h (struct rs6000_stack): Don't keep track of whether
3695 this is the main program.
3696
3697 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3698
3699 * rs6000.c (rs6000_va_arg): Delete some unused variables.
3700
3701 2000-01-19 Geoff Keating <geoffk@cygnus.com>
3702
3703 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
3704 goes after the argument.
3705
3706 2000-01-12 Geoff Keating <geoffk@cygnus.com>
3707
3708 * rs6000.md: Document 'unspec' values used.
3709 (epilogue): New expander.
3710 (movesi_to_cr_one): New expander.
3711 (movesi_to_cr and following): New pattern.
3712 (lmw): New pattern.
3713 (return_internal_si): New pattern.
3714 (return_internal_di): New pattern.
3715 (return_and_restore_fpregs_si): New pattern.
3716 (return_and_restore_fpregs_di): New pattern.
3717 * rs6000.h: Declare new functions.
3718 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
3719 rather than rs6000_calls_p.
3720 (rs6000_makes_calls): Delete.
3721 (lmw_operation): New function.
3722 (mtcrf_operation): New function.
3723 (rs6000_emit_epilogue): New function.
3724 (output_epilog): Call rs6000_emit_epilogue and final if
3725 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
3726
3727 2000-01-12 Geoff Keating <geoffk@cygnus.com>
3728
3729 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
3730 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
3731 * aix.h (SUBTARGET_SWITCHES): Document switches.
3732 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
3733 sched-prolog and sched-epilog the same. Document all the
3734 switches.
3735 (TARGET_OPTIONS): No longer allow -mdebug-.
3736
3737 2000-01-12 Geoff Keating <geoffk@cygnus.com>
3738
3739 * rs6000.h (ASM_FILE_END): Move to aix.h.
3740 (EXTRA_SECTIONS): Move to aix.h.
3741 (READONLY_DATA_SECTION): Move to aix.h.
3742 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
3743 (SELECT_SECTION): Move to aix.h.
3744 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
3745 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
3746 (LINK_REGISTER_REGNUM): New definition.
3747 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
3748 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
3749 AIX and SVR4.
3750 * sysv4.h: Delete the code between the inclusion of rs6000.h
3751 and svr4.h.
3752 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
3753 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
3754 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
3755 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
3756 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
3757 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
3758 (fix_truncdfsi2_internal_di): New pattern.
3759 (fix_truncdfsi2_store): The second arg here is Pmode too.
3760 (fix_truncdfsi2_load): The second arg here is Pmode too.
3761 (tablejumpdi): Now that switch tables hold only SImode values,
3762 gcc needs to know how to add them to the pc which is DImode.
3763 * rs6000.c (rs6000_stack_info): Use symbolic name for
3764 LINK_REGISTER_REGNUM.
3765 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
3766 (output_toc): Delete unused variables s1 and s2.
3767 (output_ascii): Use fputs not fprintf on a variable string.
3768
3769 2000-01-07 David Edelsohn <edelsohn@gnu.org>
3770
3771 * rs6000.c (processor_target_table): Add power3 as alias for 630.
3772 * aix43.h: Revert Aug 2 change.
3773 (HAS_INIT_SECTION): Define, not visible yet.
3774 (LD_INIT_SWITCH): Define, not visible yet.
3775 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
3776
3777 2000-01-04 Joel Sherrill (joel@OARcorp.com>
3778
3779 * config/rs6000/rtems.h: Include config/rtems.h.
3780
3781 2000-01-04 David Edelsohn <edelsohn@gnu.org>
3782
3783 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
3784 (SLOW_UNALIGNED_ACCESS): Define.
3785 (CASE_VECTOR_MODE): Always use 32-bit offsets.
3786 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
3787 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
3788 (toc_section): Likewise and .toc pseudo-op.
3789 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
3790 64-bit mode.
3791 (TEXT_SECTION_ASM_OP): Likewise.
3792 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
3793 32-bit offsets.
3794
3795 1999-12-17 Jakub Jelinek <jakub@redhat.com>
3796
3797 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
3798 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
3799 compiling libgcc2.
3800
3801 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3802
3803 * rs6000.h: Move more stuff from here...
3804 * aix.h: to here.
3805 * sysv4.h: Cleanup accordingly.
3806 * netware.h: Likewise
3807
3808 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3809
3810 * rs6000.h: Continue cleanup.
3811 * aix.h: Likewise.
3812 * lynx.h: Likewise.
3813 * netware.h: Likewise.
3814 * sol2.h: Likewise.
3815 * sysv4.h: Likewise.
3816 * win-nt.h: Likewise.
3817
3818 * rs6000.h (TARGET_SWITCHES): Add descriptions.
3819 (TARGET_OPTIONS): Likewise.
3820
3821 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
3822 (SUBTARGET_OPTIONS): Likewise.
3823
3824 * rs6000.md: Fix compile time warnings.
3825
3826 2000-01-04 Geoff Keating <geoffk@cygnus.com>
3827
3828 vxworks patches from the Cygnus tree originally by
3829 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
3830 <vmakarov@cygnus.com>.
3831 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
3832 (ENDFILE_SPEC): Likewise.
3833 (LIB_VXWORKS_SPEC): New macro.
3834 (STARTFILE_VXWORKS_SPEC): New macro.
3835 (ENDFILE_VXWORKS_SPEC): New macro.
3836 (LINK_START_VXWORKS_SPEC): New macro.
3837 (LINK_OS_VXWORKS_SPEC): New macro.
3838 (CPP_OS_VXWORKS_SPEC): New macro.
3839 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
3840 * vxppc.h: Rewrite to use proper configuration method.
3841 * vxppcle.h: New file.
3842 * ../../configure.in: Add powerpcle-wrs-vxworks*.
3843 * ../../configure: Rebuilt.
3844
3845 2000-01-04 Geoff Keating <geoffk@cygnus.com>
3846
3847 Lots of changes to rs6000.h, sysv4.h, aix.h,
3848 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
3849 with the aim that rs6000.h is the first header
3850 included and the others override it.
3851 * aix.h: New file.
3852
3853 * x-aix41-gld: Remove.
3854 * x-aix43: Remove.
3855 * x-aix41: Remove target-specific switches, and don't specify
3856 -Wl,-bbigtoc as we don't need it any more.
3857 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
3858 Use t-aix43 for AIX 4.3 and above.
3859 * ../../configure: Regenerated.
3860
3861 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
3862 options, that don't do anything yet.
3863 (MASK_SCHED_PROLOG): New macro.
3864 (MASK_SCHED_EPILOG): New macro.
3865 (TARGET_SCHED_PROLOG): New macro.
3866 (TARGET_SCHED_EPILOG): New macro.
3867
3868 2000-01-04 Geoff Keating <geoffk@cygnus.com>
3869
3870 * rs6000.c: Correct comment, the `minimal' TOCs are actually
3871 one per translation unit, not one per function.
3872 (output_toc): Also do duplicate constant elimination
3873 for per-translation-unit TOCs.
3874
3875 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
3876 a comment explaining _exactly_ when this pattern gets used.
3877 (builtin_setjmp_receiver): New pattern for better clarity.
3878 (init_v4_pic): Move it into a section dealing with TOC registers.
3879
3880 1999-12-30 Geoff Keating <geoffk@cygnus.com>
3881
3882 * rs6000.c (toc_hash_table): New variable.
3883 (rs6000_hash_constant): New function.
3884 (toc_hash_function): New function.
3885 (toc_hash_eq): New function.
3886 (toc_hash_mark_entry): New function.
3887 (toc_hash_mark_table): New function.
3888 (output_toc): Don't output duplicate TOC entries in
3889 a single file.
3890 (rs6000_add_gc_roots): Add the hash table as a GC root.
3891 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
3892 where they clearly shouldn't be. This may need to be fixed
3893 later when there is a GNU ar for AIX.
3894 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
3895 Don't define BOOT_LDFLAGS as it is now not necessary.
3896
3897 1999-12-29 Geoff Keating <geoffk@cygnus.com>
3898
3899 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
3900 for va_list on AIX. Use unsigned_char_type_node rather than
3901 constructing our own version on svr4.
3902
3903 1999-12-17 Geoff Keating <geoffk@cygnus.com>
3904
3905 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
3906 since patently it's not.
3907
3908 1999-12-08 Geoff Keating <geoffk@cygnus.com>
3909
3910 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
3911 define_expand/define_insn pair, and handle restore of the
3912 SVR4 -fpic register.
3913
3914 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
3915
3916 * acconfig.h (HAVE_GAS_WEAK): New define.
3917 * configure.in (assembler weak support): Check for .weak support.
3918 * config.in, configure: Rebuilt.
3919 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
3920 HAVE_GAS_WEAK is defined.
3921
3922 2000-03-15 Nick Clifton <nickc@cygnus.com>
3923
3924 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
3925 asm_fprintf().
3926
3927 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
3928
3929 * cppfiles.c (open_include_file): New function.
3930 (find_include_file, cpp_read_file): Use it.
3931
3932 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
3933
3934 * cpphash.c (dump_hash_helper): Take the slot, not the element.
3935
3936 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
3937
3938 * flow.c (verify_flow_info): Check for unconditional return.
3939
3940 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
3941
3942 * config/ia64/ia64.md (restore_stack_nonlocal): New.
3943 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
3944 (__ia64_restore_stack_nonlocal): New.
3945 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
3946
3947 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3948
3949 * cpphash.c (collect_formal_parameters): Do not complain about
3950 parameter names that just start with `__VA_ARGS__'.
3951
3952 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
3953
3954 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
3955 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
3956 * i386.c (pentiumpro_cost): Set mul cost to 4.
3957 (x86_use_movx): Set for PPro.
3958
3959 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
3960
3961 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
3962 STACK_BOUNDARY for empty frames now.
3963
3964 2000-03-14 Mark Mitchell <mark@codesourcery.com>
3965
3966 * stor-layout.c (layout_union): Remove.
3967 (layout_union_field): New function, split out from layout_union.
3968 (finish_union_layout): Likewise.
3969 (layout_field): Handle unions by calling layout_union_field.
3970 (finish_record_layout): Handle unions.
3971 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
3972 QUAL_UNION_TYPE handling.
3973
3974 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
3975
3976 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
3977 end of basic block is jump_insn, not barrier; use create_basic_block
3978 instead of creating basic block by hand.
3979
3980 2000-03-14 Jason Eckhardt <jle@cygnus.com>
3981
3982 * flow.c (reorder_basic_blocks): Account for barriers when writing
3983 over NEXT_INSN (last_bb->end).
3984 (verify_flow_info): Add check for missing barriers.
3985
3986 2000-03-14 Greg McGary <gkm@gnu.org>
3987
3988 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
3989 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
3990 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
3991 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
3992 __unbounded, __unbounded__): New keywords.
3993 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
3994 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
3995 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
3996
3997 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3998
3999 * cselib.h: New file.
4000 * alias.c: Include "cselib.h".
4001 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
4002 MEMs as two new arguments.
4003 (get_addr): New static function.
4004 (find_base_term): Handle VALUEs.
4005 (memrefs_conflict_p): Likewise.
4006 (true_dependence): Call get_addr on the addresses.
4007 Call fixed_scalar_and_varying_struct_p with addresses that have been
4008 passed through get_addr and canon_rtx.
4009 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
4010 with true_dependence.
4011 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
4012 * loop.c: Include "cselib.h".
4013 (load_mems): Process extended basic block that enters the loop with
4014 cselib. Use that information to change initialization of the shadow
4015 register so that a constant equivalence is seen by later passes.
4016 * reload1.c: Include "cselib.h".
4017 (reload_cse_invalidate_regno): Delete function.
4018 (reload_cse_mem_conflict_p): Likewise.
4019 (reload_cse_invalidate_mem): Likewise.
4020 (reload_cse_invalidate_rtx): Likewise.
4021 (reload_cse_regno_equal_p): Likewise.
4022 (reload_cse_check_clobber): Likewise.
4023 (reload_cse_record_set): Likewise.
4024 (reg_values): Delete static variable.
4025 (invalidate_regno_rtx): Likewise.
4026 (reload_cse_delete_noop_set): New static function.
4027 (reload_cse_simplify): New static function, broken out of
4028 reload_cse_regs_1.
4029 (reload_cse_noop_set_p): Delete unused argument INSN.
4030 Just call rtx_equal_for_cselib_p on set source and destination.
4031 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
4032 reload_cse_delete_noop_set. Delete code to keep track of values; use
4033 cselib functions instead. Delete code to push/pop obstacks.
4034 (reload_cse_simplify_set): Use cselib to find equivalent values.
4035 Delete code to push/pop obstacks.
4036 (reload_cse_simplify_operands): Likewise.
4037 * rtl.def (VALUE): New rtx code.
4038 * rtl.h (union rtunion_def): New elt rt_cselib.
4039 (X0CSELIB, CSELIB_VAL_PTR): New macros.
4040 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
4041 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
4042 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
4043 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
4044 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
4045 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
4046 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
4047 cselib_record_set, cselib_record_sets): New static functions.
4048 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
4049 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
4050 references_value_p): New functions.
4051 (MAX_USELESS_VALUES, REG_VALUES): New macros.
4052 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
4053 n_useless_values, reg_values, callmem, cselib_obstack,
4054 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
4055 New static variables.
4056 * varray.h (union varray_data_tag): New elt te.
4057 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
4058 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
4059 dependencies.
4060
4061 2000-03-14 Nick Clifton <nickc@cygnus.com>
4062
4063 * gcc.c (do_spec_1): Catch the case where %* is used in a
4064 substitution pattern, but it has not been initialised.
4065 Issue a meaningful error message if an unrecognised operator
4066 is encountered in a spec string.
4067
4068 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
4069
4070 * function.c (prepare_function_start): Correctly initialize
4071 cfun->stack_alignment_needed.
4072
4073 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
4074
4075 * cppfiles.c (find_include_file): Don't assume nshort is a
4076 substring of name.
4077
4078 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
4079
4080 * configure.in (hppa configurations): Add pa32-regs.h to the
4081 list of tm files as appropriate.
4082 * configure: Rebuilt.
4083 * pa.c (compute_frame_size): Remove explicit knowledge about FP
4084 register numbering.
4085 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
4086 (fmpyaddoperands, fmpysuboperands): Likewise.
4087 * pa.h: Remove various definitions which depend on knowing
4088 how registers are numbered.
4089 * pa32-regs.h: New file with PA32 register numbering specific
4090 definitions.
4091
4092 2000-03-14 Richard Henderson <rth@cygnus.com>
4093
4094 * regmove.c (combine_stack_adjustments): New.
4095 (stack_memref_p, single_set_for_csa): New.
4096 (free_csa_memlist, record_one_stack_memref): New.
4097 (try_apply_stack_adjustment): New.
4098 (combine_stack_adjustments_for_block): New.
4099 * rtl.h (combine_stack_adjustments): Declare.
4100 * toplev.c (rest_of_compilation): Call it.
4101
4102 * i386.md: Revert 2000-01-16 change.
4103
4104 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4105
4106 * gccbug.in: Add web category, gcc specific classes.
4107
4108 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
4109
4110 * stor-layout.c (finalize_record_size): Fix typo.
4111
4112 2000-03-14 Stan Shebs <shebs@apple.com>
4113
4114 * c-typeck.c (c_alignof): Error on incomplete types.
4115 * extend.texi (Alignment): Document this.
4116
4117 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
4118
4119 * cppfiles.c: Include mkdeps.h.
4120 (find_include_file, read_include_file): Remove _cpp_ prefix
4121 from name, make static.
4122 (_cpp_execute_include): New function, broken out of
4123 do_include.
4124
4125 * cpplib.c: Don't include mkdeps.h.
4126 (struct directive): Remove type field. Reorder entries. The
4127 function takes only one argument.
4128 (struct if_stack): Make type field an int.
4129 (directive_table): Rename to dtable. Generate it, the
4130 prototypes of the directive handlers, and the enum for the
4131 directive numbers, from a template macro.
4132 (do_ifndef, do_include_next, do_import): New functions.
4133 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
4134 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
4135 do_ident, do_assert, do_unassert, do_sccs): Take only one
4136 argument.
4137 (do_sccs): Define always, but alter behavior based on
4138 SCCS_DIRECTIVE.
4139 (_cpp_handle_directive, consider_directive_while_skipping):
4140 Restructure for new directive table layout.
4141
4142 (pass_thru_directive): Take a directive number, not a pointer
4143 to a struct directive.
4144 (parse_include): New function, broken out of do_include.
4145 (do_include, do_import, do_include_next): Use parse_include
4146 and _cpp_execute_include.
4147 (do_elif, do_else): Test for T_ELSE specifically when checking
4148 for #elif/#else after #else.
4149 (parse_ifdef): New function, broken out of do_ifdef.
4150 (validate_else): Expect a name arg without a leading #.
4151 (if_directive_name): Delete.
4152 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
4153 directive handlers with only one argument.
4154
4155 * cpphash.h: Update prototypes.
4156 (enum node_type): Remove entries for directives.
4157 * Makefile.in: Update dependencies.
4158
4159 * cpphash.c (dump_hash_helper): Only dump nodes of type
4160 T_MACRO. Emit a newline after each definition.
4161
4162 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4163
4164 * gccbug.in: New file.
4165 * configure.in (all_outputs): Add gccbug.
4166 * Makefile.in (install-common): Install gccbug.
4167 (GCCBUG_INSTALL_NAME): New variable.
4168 * configure: Rebuilt.
4169
4170 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
4171
4172 * function.c (put_var_into_stack): Use type_for_mode to calculate
4173 part_type. Use MEM_SET_IN_STRUCT_P.
4174 * expr.c (store_field): Handle CONCAT.
4175 (store_constructor): Use fields_length.
4176 * tree.c (fields_length): New fn.
4177 * tree.h: Declare it.
4178
4179 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
4180
4181 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
4182 (cpplex.o): New target.
4183 * po/POTFILES.in: Add cpplex.c.
4184
4185 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
4186 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
4187 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
4188 skip_block_comment, skip_line_comment, skip_comment,
4189 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
4190 _cpp_parse_name, skip_string, parse_string,
4191 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
4192 _cpp_get_directive_token, find_position,
4193 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
4194 (maybe_macroexpand, _cpp_lex_token): New functions.
4195
4196 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
4197 parse_goto_mark): Delete.
4198 (_cpp_handle_eof): New function.
4199 (_cpp_handle_directive): Rename from handle_directive.
4200 (_cpp_output_line_command): Rename from output_line_command.
4201 (do_if, do_elif): Call _cpp_parse_expr directly.
4202 * cppfiles.c (_cpp_read_include_file): Don't call
4203 init_input_buffer here.
4204 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
4205 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
4206 here; pop the token_buffer and skip the rest of the line here.
4207 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
4208 here.
4209
4210 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
4211 Define here.
4212 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
4213 CPP_GOTO_MARK): New macros.
4214 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
4215 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
4216 _cpp_read_and_prescan, _cpp_init_input_buffer,
4217 _cpp_grow_token_buffer, _cpp_get_directive_token,
4218 _cpp_handle_directive, _cpp_handle_eof,
4219 _cpp_output_line_command): Prototype them here.
4220 * cpplib.h (enum cpp_token): Add CPP_MACRO.
4221 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
4222 quote_string, output_line_command): Remove.
4223
4224 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
4225
4226 * stmt.c (expand_end_case): RANGE may be signed, and when checking
4227 whether it is too large we must also verify that it isn't negative.
4228
4229 2000-03-13 Jakub Jelinek <jakub@redhat.com>
4230
4231 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
4232 (movsi_zero_liveg0): Remove.
4233 (movsf_insn_novis_liveg0): Remove.
4234 (negsi2): Remove.
4235 (negsi2_not_liveg0): Rename to negsi2.
4236 (one_cmplsi2): Remove.
4237 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
4238 (one_cmplsi2_liveg0): Remove.
4239 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
4240 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
4241 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
4242 (PREDICATE_CODES): Remove zero_operand.
4243 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
4244 TARGET_BROKEN_SAVERESTORE.
4245 (zero_operand): Remove.
4246 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
4247 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
4248 options.
4249 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4250 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
4251 TARGET_BROKEN_SAVERESTORE): Remove.
4252 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
4253 Remove.
4254 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
4255 Remove.
4256 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
4257 Remove.
4258
4259 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
4260
4261 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
4262
4263 * cpplib.c (do_pragma_implementation): Fix off-by-one error
4264 truncating a string. Don't assume tokens are nul terminated.
4265 Problem noted by Andreas Jaeger <aj@suse.de>
4266
4267 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
4268
4269 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
4270 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
4271 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
4272
4273 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
4274
4275 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
4276 STRUCTURE_SIZE_BOUNDARY.
4277
4278 2000-03-13 Mark Mitchell <mark@codesourcery.com>
4279
4280 * tree.h (record_layout_info_s): New structure.
4281 (record_layout_info): New type.
4282 (new_record_layout_info): New function.
4283 (layout_field): Likewise.
4284 (finish_record_layout): Likewise.
4285 * stor-layout.c (layout_record): Remove.
4286 (new_record_layout_info): New function.
4287 (layout_field): New function, broken out from layout_record.
4288 (finalize_record_size): Likewise.
4289 (compute_record_mode): Likewise.
4290 (finalize_type_size): New function, broken out from layout_type.
4291 (finish_record_layout): Likewise.
4292 (layout_type): Use them.
4293
4294 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
4295
4296 * cpphash.c: Don't include version.h.
4297 (special_symbol) [case T_VERSION]: Look for the string in
4298 hp->value.cpval; don't use version_string.
4299 * cppinit.c (initialize_builtins): Set hp->value.cpval for
4300 __VERSION__ to version_string.
4301 * Makefile.in (cpphash.o): Update deps.
4302
4303 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
4304
4305 Convert cpplib to use libiberty/hashtab.c.
4306
4307 * cpplib.h (struct cpp_reader): Make hashtab and
4308 all_include_files of type 'struct htab *'. Delete HASHSIZE
4309 and ALL_INCLUDE_HASHSIZE macros.
4310
4311 * cpphash.h: Update prototypes.
4312 (struct hashnode): Remove next, prev, and bucket_hdr members.
4313 Make length a size_t. Add hash member.
4314 (struct ihash): Remove next member. Add hash member. Make
4315 name a flexible array member.
4316
4317 * cppfiles.c: Include hashtab.h.
4318 (include_hash): Delete.
4319 (IHASHSIZE): New macro.
4320 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
4321 (cpp_included): Do the hash lookup here.
4322 (_cpp_find_include_file): Rewrite.
4323 (cpp_read_file): Put the "fake" hash entry into the hash
4324 table. Honor the control_macro, if it turns out we've seen
4325 the file before. Don't push the buffer here.
4326 (_cpp_read_include_file): Push the buffer here.
4327 (OMODES): New macro. Use it whenever we call open(2).
4328
4329 * cpphash.c: Include hashtab.h.
4330 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
4331 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
4332 _cpp_lookup_slot): New functions.
4333 (HASHSIZE): new macro.
4334 (hashf, _cpp_install, _cpp_delete_macro): Delete.
4335 (_cpp_lookup): Use hashtab.h routines.
4336
4337 * cppinit.c: Include hashtab.h.
4338 (cpp_reader_init): Call _cpp_init_macro_hash and
4339 _cpp_init_include_hash. Don't allocate hashtab directly.
4340 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
4341 pfile->all_include_files.
4342 (initialize_builtins): Use _cpp_make_hashnode and
4343 htab_find_slot to add hash entries.
4344 (cpp_finish): Just call _cpp_dump_macro_hash.
4345 * cpplib.c: Include hashtab.h.
4346 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
4347 create hash entries.
4348 (do_pragma_poison, do_assert): Likewise.
4349 (do_include): Don't push the buffer here. Don't increment
4350 system_include_depth unless _cpp_read_include_file succeeds.
4351 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
4352 or htab_remove_elt.
4353 (do_pragma_implementation): Use alloca to create copy.
4354
4355 * Makefile.in: Update dependencies.
4356
4357 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4358
4359 * cppinit.c (cl_directive_handler): More K&R fixing.
4360
4361 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
4362
4363 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
4364 STACK_BOUNDARY.
4365 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
4366
4367 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4368
4369 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
4370 Change from char[] to macros.
4371
4372 2000-03-12 Neil Booth <NeilB@earthling.net>
4373
4374 * cppinit.c (cpp_start_read): Update indirect function
4375 call to K&R C.
4376
4377 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
4378
4379 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
4380 entry.
4381
4382 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4383 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
4384
4385 2000-03-11 Neil Booth <NeilB@earthling.net>
4386
4387 * cppinit.c (struct pending option): Replace undef with a
4388 pointer to a directive handling routine.
4389 (struct cpp_pending): Replace separate assert_ and define_
4390 lists with one directive_ list.
4391 (new_pending_define): Rename new_pending_directive. Extra
4392 argument is the directive's handling routine.
4393 (handle_option): Update to use new_pending_directive.
4394
4395 2000-03-11 Neil Booth <NeilB@earthling.net>
4396
4397 * cppfiles.c (file_cleanup, _cpp_find_include_file,
4398 remap_filename, _cpp_read_include_file, actual_directory,
4399 hack_vms_include_specification): Replace bcopy(), index() etc
4400 calls. Add casts to some allocations. Make some variables
4401 pointers to const [unsigned] char.
4402 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
4403 collect_formal_parameters): Similarly.
4404 * cppinit.c (struct pending_option, append_include_chain,
4405 cpp_options_init, cpp_reader_init, initialize_standard_includes,
4406 cpp_start_read, new_pending_define, handle_option): Similarly.
4407 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
4408 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
4409 do_pragma_implementation, detect_if_not_defined,
4410 do_ifdef, skip_if_group, cpp_get_token, parse_string,
4411 do_assert, do_unassert): Similarly.
4412 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
4413 function prototypes.
4414 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
4415
4416 2000-03-10 Richard Henderson <rth@cygnus.com>
4417
4418 * builtins.c (expand_builtin_strlen): Revert last change.
4419 Use emit_insn_before if we're at the beginning of a sequence.
4420
4421 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
4422
4423 * builtins.c (expand_builtin_strlen): Make sure that we have something
4424 at the beginning of the sequence.
4425
4426 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
4427 deferred inlines.
4428
4429 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
4430
4431 2000-03-10 Richard Henderson <rth@cygnus.com>
4432
4433 * except.c (can_throw): Use INTVAL on a CONST_INT.
4434 (reachable_handlers): Likewise.
4435 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
4436
4437 2000-03-10 Andreas Jaeger <aj@suse.de>
4438
4439 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
4440 MD_STARTFILE_PREFIX since those are not needed on linux.
4441 (ASM_FILE_START): New, from mips/gnu.h.
4442
4443 2000-03-09 Richard Henderson <rth@cygnus.com>
4444 Alex Samuel <samuel@codesourcery.com> and others
4445
4446 * Makefile.in (ssa.o): New rule.
4447 (OBJS): Add ssa.o.
4448 (STAGESTUFF): Add *.ssa and *.ussa.
4449 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
4450 * rtl.def (PHI): New RTL expression.
4451 * rtl.h (clear_log_links): New declaration.
4452 (convert_to_ssa): Likewise.
4453 (convert_from_ssa): Likewise.
4454 * flow.c (split_edge): If the entry node falls through to the
4455 split edge's source block, split the entry edge.
4456 (clear_log_links): New function.
4457 * toplev.c (ssa_dump): New variable.
4458 (flag_ssa): Likewise.
4459 (f_options): Add "ssa".
4460 (compile_file): Create SSA dump files.
4461 (rest_of_compilation): Go to and from SSA if enabled.
4462 (decide_d_option): Handle -de for SSA dump files.
4463 * ssa.c: New file.
4464
4465 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
4466
4467 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
4468 same as VAR_DECL.
4469
4470 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
4471
4472 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
4473
4474 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
4475
4476 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
4477 (MD_STARTFILE_PREFIX_1): New macro.
4478
4479 2000-03-09 Robert Lipe <robertl@sco.com>
4480
4481 * config/ia64/ia64.c: Include system.h.
4482
4483 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
4484
4485 * except.c (nothrow_function_p): If -fno-exceptions, just return.
4486 (init_eh_nesting_info): Likewise.
4487
4488 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
4489 (TREE_NOTHROW): Rename from TREE_RAISES.
4490 * toplev.c (rest_of_compilation): Set it.
4491 * print-tree.c (print_node): Adjust.
4492 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
4493 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
4494 * calls.c (emit_call_1): Add 'nothrow' parm. Add
4495 REG_EH_REGION note as appropriate.
4496 (libfunc_nothrow): New fn.
4497 (emit_library_call, emit_library_call_value): Use it.
4498 (expand_call): Check TREE_NOTHROW.
4499
4500 * varasm.c (make_decl_rtl): Skip initial '*' when setting
4501 DECL_ASSEMBLER_NAME.
4502
4503 2000-03-09 Andreas Jaeger <aj@suse.de>
4504
4505 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
4506 (TARGET_MEM_FUNCTIONS): Define.
4507
4508 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
4509
4510 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
4511
4512 * except.c (can_throw): See through a SEQUENCE.
4513 (nothrow_function_p): New fn.
4514 * except.h: Declare it.
4515 * function.c (current_function_nothrow): New var.
4516 (prepare_function_start): Initialize it.
4517 * output.h: Declare it.
4518 * toplev.c (rest_of_compilation): Set it.
4519 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
4520
4521 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
4522
4523 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
4524 match. (cpp_compare_defs): Count the nul separator when
4525 advancing over argument names.
4526
4527 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
4528
4529 * recog.c (preprocess_constraints): Matching constraints affect
4530 same alternative/different operand, not same operand/different
4531 alternative.
4532
4533 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
4534 register and a constant specially.
4535
4536 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4537
4538 * libgcc2.h: New file.
4539 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
4540
4541 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
4542
4543 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
4544 * configure: Regenerate.
4545 * config/ia64: New.
4546
4547 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
4548
4549 * Makefile.in (LIBCPP_DEPS): New macro.
4550 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
4551 it to declare deps.
4552 * cpperror.c: Include cpphash.h.
4553 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
4554 dingleberry.
4555 (lex): Don't use CPP_WARN_UNDEF.
4556 (_cpp_parse_expr): Return an int, the truth value.
4557 * cppfiles.c: Include cpphash.h.
4558 (_cpp_merge_include_chains): Move to cppinit.c and make static.
4559 * cppinit.c (include_defaults_array): Disentangle.
4560 (cpp_cleanup): Don't free the if stack here.
4561 (cpp_finish): Pop off all buffers, not just one.
4562 * cpplib.c (eval_if_expr): Return int.
4563 (do_xifdef): Rename do_ifdef.
4564 (handle_directive): Don't use CPP_PREPROCESSED.
4565 (cpp_get_token): Don't use CPP_C89.
4566 * fix-header.c: Don't use CPP_OPTIONS.
4567
4568 * cpplib.h: Move U_CHAR, enum node_type, struct
4569 file_name_list, struct ihash, is_idchar, is_idstart,
4570 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
4571 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
4572 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
4573 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
4574 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
4575 of _cpp_simplify_pathname, _cpp_find_include_file,
4576 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
4577 Move struct if_stack to cpplib.c. Move struct cpp_pending to
4578 cppinit.c.
4579 Change all uses of U_CHAR to be unsigned char instead.
4580 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
4581
4582 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
4583
4584 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
4585 (dwarf2out_begin_prologue): Set it.
4586 (output_call_frame_info): Don't emit EH unwind info for leaves.
4587
4588 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
4589 can occur outside of an EH region.
4590 * except.c: Correct comments about rethrow behavior.
4591 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
4592
4593 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
4594
4595 * flow.c (make_edges): Always call make_eh_edge for calls.
4596
4597 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
4598
4599 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
4600 (struct cpp_buffer): Remove fname and underflow fields.
4601 (struct cpp_reader): Remove get_token field.
4602 (struct include_hash): Rename to struct ihash. Add typedef to
4603 IHASH.
4604 (struct if_stack): Remove fname field.
4605 (IF_STACK_FRAME): Rename to IF_STACK.
4606
4607 * cpperror.c (print_containing_files): Trust that there are no
4608 macro buffers below the top file buffer.
4609 * cppfiles.c: Replace all references to 'struct include_hash'
4610 with 'IHASH'. Rename initialize_input_buffer to
4611 init_input_buffer. Don't set or reference cpp_buffer->fname,
4612 use buffer->ihash->name instead.
4613 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
4614 not CPP_NULL_BUFFER.
4615 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
4616 IF_STACK_FRAME, IHASH not struct include_hash.
4617 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
4618 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
4619 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
4620 references to cpp_buffer->fname (delete entirely, or use
4621 ->ihash->name instead) and IF_STACK->fname.
4622 (cpp_push_buffer): Don't set new->underflow.
4623 (do_include): Use cpp_file_buffer.
4624
4625 * cpphash.c (collect_formal_parameters): Remove duplicate
4626 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
4627 used as a macro argument name. Don't append "..." to namebuf
4628 for varargs macros. After we're done scanning, go through
4629 namebuf and make it NUL separated, not comma separated.
4630 (_cpp_compare_defs): Remove register tag from variables.
4631 Expect defn->argnames to be NUL separated.
4632 (_cpp_dump_definition): Expect defn->argnames to be NUL
4633 separated and in forward order.
4634 * cpphash.h: Update documentation of argnames field.
4635
4636 2000-03-08 Richard Henderson <rth@cygnus.com>
4637
4638 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
4639 to fail. Don't pre-expand the source operand.
4640
4641 * i386.md (strlensi): Initialize eoschar and align before use.
4642
4643 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
4644
4645 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
4646 CONSTRUCTOR element.
4647
4648 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
4649
4650 * mips.c (mips_expand_prologue): If the last
4651 named argument is the vararg marker "va_list", treat it as
4652 an unnamed argument.
4653
4654 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
4655
4656 * dbxout.c (dbxout_parms): When correcting for promoted
4657 big-endian parameters, use the mode of the DECL_RTL rather
4658 than UNITS_PER_WORD.
4659
4660 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
4661
4662 * c-common.h (make_fname_decl): Declare.
4663 * c-common.c (make_fname_decl): Define.
4664 (declare_hidden_char_array): Remove.
4665 (declare_function_name): Use make_fname_decl.
4666 * c-decl.c (c_make_fname_decl): New function.
4667 (init_decl_processing): Set make_fname_decl.
4668
4669 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
4670
4671 * cccp.c (handle_directive): Initialize backslash_newlines_p.
4672
4673 2000-03-07 Philipp Thomas <pthomas@suse.de>
4674
4675 * po/POTFILES.in: Remove cppalloc.c from file list.
4676
4677 2000-03-07 Steve Chamberlain <sac@pobox.com>
4678
4679 * pj.c (pj_expand_prologue): current_function->args_info is
4680 now current_function_args_info.
4681
4682 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
4683 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
4684 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
4685
4686 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4687
4688 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
4689 output as hexadecimal rather than the default octal.
4690
4691 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
4692
4693 * cpphash.c (special_symbol): Fix thinko in previous commit.
4694
4695 2000-03-07 Neil Booth <NeilB@earthling.net>
4696
4697 * cppexp.c (struct operation, left_shift, right_shift,
4698 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
4699 "int"s to "unsigned int"s.
4700 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
4701 Similarly.
4702 * cpplib.h: Update for above.
4703 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
4704 returned from allocations.
4705
4706 * cppinit.c (opt_comp, parse_options): New functions.
4707 (handle_option): Use parse_option to parse a single command
4708 line option, that possibly takes an argument.
4709 (cpp_handle_options): Sort the array of command line options on
4710 first invocation (non-ASCII hosts only).
4711 (print_help): Update.
4712
4713 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
4714
4715 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
4716 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
4717
4718 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
4719 initialized.
4720 * cppinit.c (cpp_cleanup): Free imp->nshort also.
4721
4722 * cpperror.c (cpp_print_containing_files,
4723 cpp_print_file_and_line, v_cpp_message): Rename to
4724 print_containing_files, print_file_and_line, and v_message.
4725 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
4726 to _cpp_parse_expr, parse_escape, and lex.
4727 (parse_charconst): Remove broken multibyte support.
4728 * cppfiles.c (include_hash): Make static.
4729 (cpp_included): New function.
4730 (merge_include_chains, find_include_file, finclude,
4731 simplify_pathname): Rename to _cpp_merge_include_chains,
4732 _cpp_find_include_file, _cpp_read_include_file, and
4733 _cpp_simplify_pathname.
4734 * cpphash.c (cpp_lookup, free_definition, delete_macro,
4735 cpp_install, create_definition, macroexpand, compare_defs,
4736 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
4737 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
4738 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
4739 * cppinit.c (cpp_handle_option): Rename to handle_option, make
4740 static.
4741 * cpplib.c: Remove extern prototype of cpp_parse_expr.
4742
4743 * cpphash.h: Update prototypes.
4744 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
4745
4746 2000-03-07 Andrew Haley <aph@cygnus.com>
4747
4748 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
4749 PTRDIFF_TYPE should be based solely on Pmode.
4750 (SIZE_TYPE): ditto.
4751
4752 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4753
4754 * rtl.h (rtunion_def): Constify member `rtstr'.
4755 (emit_line_note_after, emit_line_note, emit_line_note_force,
4756 emit_note, decode_asm_operands): Constify.
4757
4758 * cse.c (canon_hash): Likewise.
4759
4760 * dbxout.c (dbxout_block): Likewise.
4761
4762 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
4763 v_warning_for_asm): Likewise.
4764
4765 * dwarfout.c (function_start_label): Likewise.
4766
4767 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
4768 emit_line_note_force): Likewise.
4769
4770 * final.c (last_filename, asm_insn_count, final_scan_insn,
4771 output_source_line): Likewise.
4772
4773 * function.h (struct emit_status): Likewise.
4774
4775 * gcse.c (hash_expr_1): Likewise.
4776
4777 * genattr.c (gen_attr, main): Likewise.
4778
4779 * genattrtab.c (struct function_unit, current_alternative_string,
4780 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
4781 attr_numeral, check_attr_test, check_attr_value,
4782 convert_set_attr_alternative, convert_set_attr,
4783 compute_alternative_mask, simplify_by_exploding, gen_attr,
4784 gen_unit): Likewise.
4785
4786 * genflags.c (gen_insn): Likewise.
4787
4788 * gengenrtl.c (type_from_format): Likewise.
4789
4790 * genopinit.c (gen_insn): Likewise.
4791
4792 * genoutput.c (n_occurrences, process_template, process_template):
4793 Likewise.
4794
4795 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
4796 Likewise.
4797
4798 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
4799 Likewise.
4800
4801 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
4802 ggc_set_mark, ggc_get_size): Likewise.
4803
4804 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
4805
4806 * optabs.c (init_one_libfunc): Likewise.
4807
4808 * output.h (assemble_start_function): Likewise.
4809
4810 * recog.c (decode_asm_operands): Likewise.
4811
4812 * toplev.c (rest_of_compilation): Likewise.
4813
4814 * tree.h (emit_line_note_after, emit_line_note,
4815 emit_line_note_force): Likewise.
4816
4817 * varasm.c (asm_output_bss, asm_output_aligned_bss,
4818 asm_emit_uninitialised, assemble_start_function,
4819 assemble_variable, const_hash, compare_constant_1,
4820 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
4821
4822 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
4823
4824 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
4825
4826 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
4827
4828 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
4829
4830 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
4831 arm_dllimport_name_p): Likewise.
4832
4833 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
4834 Likewise.
4835
4836 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
4837
4838 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4839
4840 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
4841 arm_mark_dllexport, arm_mark_dllimport,
4842 arm_pe_encode_section_info): Likewise.
4843
4844 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
4845 ASM_FINISH_DECLARE_OBJECT): Likewise.
4846
4847 * arm/thumb.c (thumb_function_prologue): Likewise.
4848
4849 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
4850
4851 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4852
4853 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
4854
4855 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
4856
4857 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
4858
4859 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4860
4861 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
4862 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
4863
4864 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
4865
4866 * i386/i386.c (asm_output_function_prefix): Likewise.
4867
4868 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
4869
4870 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4871
4872 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
4873
4874 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
4875 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
4876 ASM_OUTPUT_SECTION_NAME): Likewise.
4877
4878 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
4879
4880 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
4881
4882 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
4883
4884 * m32r/m32r.c (m32r_encode_section_info): Likewise.
4885
4886 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4887
4888 * mcore/mcore.c (mcore_encode_section_info): Likewise.
4889
4890 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4891
4892 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4893
4894 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4895
4896 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
4897
4898 * mips/mips.md (movdi, movsi): Likewise.
4899
4900 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4901
4902 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4903
4904 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
4905
4906 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
4907 ASM_OUTPUT_ASCII): Likewise.
4908
4909 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
4910 output_mi_thunk, output_toc): Likewise.
4911
4912 * rs6000/rs6000.md (movsi): Likewise.
4913
4914 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
4915
4916 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
4917
4918 * v850/v850.c (print_operand, print_operand_address,
4919 v850_encode_data_area): Likewise.
4920
4921 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
4922
4923 * config/mips/mips.md (zero_extendsidi2): Always force operand
4924 one to memory for mips16.
4925
4926 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4927
4928 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
4929 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
4930 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
4931 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
4932 (min_precision): Result is unsigned.
4933 (add_double, neg_double, mul_double): Low word is unsigned.
4934 (lshift_double, rshift_double, lrotate_double): Likewise.
4935 (rrotate_double, div_and_round_double): Likewise.
4936 (tree_floor_log2, compare_tree_int): New functions.
4937 (preserve_rtl_expr_temps): New declaration.
4938 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
4939 (decl_attributes): Use tree_log2 to find alignment.
4940 Check for TREE_INT_CST_HIGH for format args.
4941 (min_precision): Now unsigned.
4942 Use tree_floor_log2.
4943 (truthvalue_conversion): Delete long-disabled code.
4944 * c-decl.c (finish_struct): Clean up tests on field width.
4945 (finish_function): Use compare_tree_int.
4946 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
4947 * c-typeck.c (comptypes): Use tree_int_cst_equal.
4948 (default_conversion, digest_init): Use compare_tree_int.
4949 (build_binary_op): Use integer_all_onesp and compare_tree_int.
4950 Fix type errors in forming masks.
4951 * calls.c (initialize_argument_information): Use compare_tree_int.
4952 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
4953 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
4954 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
4955 (store_field): Use compare_tree_int.
4956 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
4957 (expand_expr, case ARRAY_REF): Use compare_tree_int.
4958 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
4959 (do_store_flag): Use compare_tree_int.
4960 * fold-const.c (encode, decode): Low part is always unsigned.
4961 (force_fit_type, add_double, neg_double, mul_double): Likewise.
4962 (lshift_double, rshift_double, lrotate_double): Likewise.
4963 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
4964 (fold_convert): Use compare_tree_int.
4965 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
4966 (invert_truthvalue, case INTEGER_CST): Likewise.
4967 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
4968 * mkdeps.c (deps_dummy_targets): Make I unsigned.
4969 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
4970 (lshift_double, rshift_double, lrotate_double, rrotate_double):
4971 Likewise.
4972 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
4973 (expand_end_case): Use compare_tree_int.
4974 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
4975 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
4976 (layout_decl): Likewise.
4977 (layout_record, layout_union): Make sizes unsigned.
4978 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
4979 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
4980 * tree.c (struct type_hash): hashcode is unsigned.
4981 (build_type_attribute_variant, type_hash_list): Likewise.
4982 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
4983 (attribute_hash_list, build_array_type, build_method_type): Likewise.
4984 (build_complex_type): Likewise.
4985 (real_value_from_int_cst): Remove unneeded casts.
4986 (integer_all_onesp): Add casts.
4987 (tree_floor_log2, compare_tree_int): New functions.
4988 (build_index_type): Use tree_int_cst_sgn.
4989 * varasm.c (assemble_variable): Use compare_tree_int.
4990
4991 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
4992
4993 * cpphash.c (collect_expansion): Also catch ## at start of macro.
4994
4995 * varasm.c (make_decl_rtl): Don't add a number to members of
4996 local classes.
4997 (make_function_rtl): Likewise.
4998
4999 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5000
5001 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
5002 patch from 2000-01-28.
5003
5004 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
5005
5006 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
5007 filled with an insn from the jump target.
5008
5009 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5010
5011 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
5012 (c4x_external_ref): Likewise.
5013 * config/c4x/c4x.c (struct name_list): Likewise.
5014
5015 1999-12-16 Ben Collins <bcollins@debian.org>
5016
5017 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
5018 argument to genmultilib.
5019 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
5020 the contents into the multilib.h header.
5021 * gcc.c: Declare multilib_exclusions for the specs file.
5022 (set_multilib_dir): Use it.
5023 (print_multilib_info): Likewise.
5024 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
5025 to pass to genmultilib.
5026
5027 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5028
5029 * builtins.c (built_in_class_names, built_in_names): Constify a
5030 char*.
5031
5032 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
5033 int.
5034 (_mcleanup): Ensure value matches format specifier in sprintf.
5035
5036 * cpphash.c (special_symbol): Don't needlessly cast away
5037 const-ness.
5038
5039 * cppinit.c (base_name): Delete unused prototype.
5040
5041 * mkdeps.c (deps_init): Make definition K&R safe.
5042
5043 * tree.h (built_in_class_names, built_in_names): Constify a
5044 char*.
5045
5046 2000-03-06 Jakub Jelinek <jakub@redhat.com>
5047
5048 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
5049 floating point instructions for epilogue delay.
5050
5051 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
5052 to gas if it supports .register pseudo.
5053
5054 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
5055 LONG_DOUBLE_TYPE_SIZE if not defined.
5056 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
5057 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
5058 * real.c: Likewise.
5059 * gengenrtl.c: Likewise.
5060 * print-rtl.c: Likewise.
5061 * rtl.c: Likewise.
5062 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
5063 MASK_LONG_DOUBLE_128.
5064 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
5065 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
5066 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
5067 (SUBTARGET_SWITCHES): Define.
5068 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
5069 with -mlong-double-128.
5070 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
5071 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
5072 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
5073 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
5074 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
5075 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
5076 with -mlong-double-128.
5077 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
5078 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
5079 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
5080 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
5081 TARGET_LONG_DOUBLE_128): Define.
5082 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
5083 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
5084 long double on TARGET_ARCH64.
5085
5086 2000-03-06 Mark Mitchell <mark@codesourcery.com>
5087
5088 * function.c (free_temps_for_rtl_expr): Don't free slots
5089 that have been pushed into a higher level.
5090
5091 Revert this patch:
5092 2000-03-05 Mark Mitchell <mark@codesourcery.com>
5093
5094 2000-03-05 Mark Mitchell <mark@codesourcery.com>
5095
5096 * basic-block.h (ALLOCA_REG_SET): Remove.
5097 (INITIALIZE_REG_SET): New macro.
5098 * flow.c (update_life_info): Use it.
5099 (calculate_global_regs_live): Likewise.
5100 (propagate_block): Likewise.
5101 * global.c (build_insn_chain): Likewise.
5102 * haifa-sched.c (schedule_region): Likewise.
5103
5104 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
5105
5106 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
5107 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
5108 (DWARF_ARANGES_PAD_SIZE): New define.
5109 (output_aranges): Use it to pad the address range header.
5110 (DWARF_ROUND): Fix for non power of 2 rounding.
5111
5112 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
5113
5114 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
5115
5116 2000-03-05 Mark Mitchell <mark@codesourcery.com>
5117
5118 * tree.def (RTL_EXPR): Update documentation.
5119 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
5120 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
5121 * function.c (preserve_rtl_expr_temp): New function.
5122 (preserve_rtl_expr_temps): Likewise.
5123 (preserve_rtl_expr_result): Use it.
5124
5125 Revert this patch:
5126 2000-03-04 Mark Mitchell <mark@codesourcery.com>
5127
5128 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
5129
5130 * regmove.c (copy_src_to_dest) Do not create src->dest move
5131 for unchanging destination.
5132
5133 2000-03-04 Mark Mitchell <mark@codesourcery.com>
5134
5135 * function.h (struct sequence_stack): Remove rtl_expr.
5136 (struct emit_staus): Likewise.
5137 (seq_rtl_expr): Remove.
5138 * tree.h (free_temps_for_rtl_expr): Don't declare.
5139 (start_sequence_for_rtl_expr): Likewise.
5140 * rtl.h (preserve_rtl_expr_result): Likewise.
5141 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
5142 (start_sequence_for_rtl_expr): Remove.
5143 (push_topmost_sequence): Don't save sequence_rtl_expr.
5144 (pop_topmost_sequence): Remove comment about not restoring it.
5145 (end_sequence): Don't set seq_rtl_expr.
5146 (init_emit): Don't initialize it.
5147 (mark_sequence_stack): Don't mark it.
5148 (mark_emit_status): Likewise.
5149 * except.c (protect_with_terminate): Use
5150 start_sequence_for_rtl_expr, not start_sequence.
5151 * expr.c (expand_expr, case RTL_EXPR): Don't call
5152 preserve_rtl_expr_result or free_temps_for_rtl_expr.
5153 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
5154 (preserve_rtl_expr_result): Remove.
5155 (free_temps_for_rtl_expr): Likewise.
5156 (pop_temp_slots): Likewise.
5157 (mark_temp_slot): Don't mark the rtl_expr.
5158 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
5159 start_sequence_for_rtl_expr.
5160
5161 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
5162
5163 * mkdeps.c, mkdeps.h: New files.
5164 * po/POTFILES.in: Add them.
5165 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
5166 (cpplib.o, cppinit.o): Depend on mkdeps.h.
5167 (mkdeps.o): New target.
5168
5169 * cppfiles.c: Delete deps_output.
5170 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
5171 OBJECT_SUFFIX, and base_name.
5172 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
5173 the include hash.
5174 (initialize_dependency_output): Use deps_init,
5175 deps_add_target, deps_calc_target, and deps_add_dep. Remove
5176 all the unnecessary string bashing.
5177 (cpp_finish): Use deps_write. Remove an unnecessary nesting
5178 level.
5179 * cpplib.c (do_include): Use deps_add_dep.
5180 * cpplib.h (struct cpp_reader): Replace deps_buffer,
5181 deps_allocated_size, deps_size, deps_column members with
5182 single pointer to a struct deps. Delete prototype of
5183 deps_output.
5184
5185 * cppinit.c: Fix thinko in previous patch.
5186
5187 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5188
5189 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
5190 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
5191 (mode_for_size_tree): New function.
5192 (layout_decl, layout_type): Call it and clean up BLKmode checks.
5193 * tree.h (mode_for_size_tree): New declaration.
5194
5195 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
5196
5197 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
5198
5199 * stmt.c (is_body_block): Move...
5200 * dwarfout.c, dwarf2out.c: ...from here.
5201 * tree.h: Declare it.
5202 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
5203 * final.c (final_start_function): Do call remove_unnecessary_notes
5204 when scheduling.
5205
5206 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
5207
5208 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
5209
5210 * cpplib.h (_dollar_ok): New macro.
5211 (is_idchar, is_idstart): Use it.
5212 (IStable): Rename to _cpp_IStable. Declare it const if
5213 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
5214 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
5215 is_space): Update for renamed IStable.
5216
5217 * cppinit.c: Delete all references to FAKE_CONST and CAT
5218 macros. Define init_IStable as empty macro if gcc >=2.7 or
5219 C99. Change TABLE() to ISTABLE and hardcode name of table.
5220 (cpp_start_read): Don't change the IStable based on
5221 dollars_in_ident.
5222
5223 * cpphash.c (unsafe_chars): Add pfile argument. All callers
5224 changed. Handle '$' for char1 correctly.
5225 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
5226
5227 * cppexp.c (tokentab2): Make const.
5228 (cpp_lex): Make toktab const.
5229 * cppinit.c (include_defaults_array): Make const.
5230 (initialize_standard_includes): Make default_include const.
5231
5232 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
5233
5234 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
5235 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
5236 (gen_decl_die): Likewise.
5237 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
5238 (output_decl): Likewise.
5239
5240 * varasm.c (make_function_rtl): If we change the name used in the
5241 rtl, update DECL_ASSEMBLER_NAME accordingly.
5242 (make_decl_rtl): Likewise.
5243
5244 * toplev.c (rest_of_compilation): Tweak formatting.
5245
5246 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
5247 remove_unnecessary_notes.
5248 (debug_ignore_block): New fn.
5249 * toplev.h: Declare it.
5250 * emit-rtl.c (remove_unncessary_notes): Call it.
5251 * dwarf2out.c (dwarf2out_ignore_block): New fn.
5252 * dwarf2out.h: Declare it.
5253 * final.c (final_start_function): Don't call remove_unnecessary_notes
5254 if we did insn scheduling.
5255
5256 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
5257
5258 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
5259 * cpplib.h: Delete SET_CPP_PEDANTIC.
5260
5261 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5262
5263 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
5264 result is a RECORD_TYPE.
5265
5266 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
5267
5268 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
5269
5270 2000-03-03 Richard Henderson <rth@cygnus.com>
5271
5272 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
5273 addition over compliments over shifts.
5274
5275 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5276
5277 * reload1.c (reload_combine_note_use): Handle return register USEs.
5278 REG case: Handle multi-hard-register hard regs.
5279
5280 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5281
5282 * md.texi: Document use of '*' in insn pattern name.
5283
5284 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
5285
5286 * calls.c (special_function_p): operator new may not be malloc-like.
5287
5288 * gcse.c (dump_hash_table): Really fix error in last change.
5289
5290 2000-03-02 Denis Chertykov <denisc@overta.ru>
5291
5292 * avr.c (print_operand): Use print_operand_address instead of
5293 output_addr_const.
5294 * avr/libgcc.S: Cleanup code.
5295
5296 2000-03-02 Richard Henderson <rth@cygnus.com>
5297
5298 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
5299
5300 2000-03-02 Mark Mitchell <mark@codesourcery.com>
5301
5302 * tree.h (TYPE_ALIGN_UNIT): New macro.
5303
5304 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
5305
5306 * i386.c: (constant_call_address_operand): Reject CONST_INT.
5307
5308 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
5309
5310 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
5311 for the buffer.
5312 (SET_CPP_PEDANTIC): New macro.
5313 * cpplib.c (do_include): Don't bother checking system_header_p.
5314 (do_warning, do_ident, do_assert, do_unassert): Likewise.
5315 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
5316
5317 * function.h (struct expr_status): Add x_arg_space_so_far.
5318 (arg_space_so_far): New macro.
5319 * expr.c (init_expr): Initialize it.
5320 * calls.c (emit_call_1): Reset it.
5321 (compute_argument_block_size, expand_call): Use it.
5322 (expand_call, store_one_arg): Increment it.
5323
5324 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5325
5326 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
5327 a UNION_TYPE.
5328
5329 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
5330
5331 * cppfiles.c (cpp_read_file): New function.
5332
5333 * cpphash.c (collect_expansion): Make sure to reset last_token
5334 to NORM when we hit a string. Handle trailing whitespace
5335 properly when the expansion is empty.
5336 (create_definition): Disable line commands while parsing the
5337 directive line.
5338 (dump_definition): If pfile->lineno == 0, output a line
5339 command ahead of the dump, and add a trailing newline.
5340
5341 * cppinit.c (append_include_chain): Add fifth argument, which
5342 indicates whether or not system headers are C++ aware.
5343 (initialize_standard_includes): New function,
5344 broken out of read_and_prescan. Pass 'cxx_aware' value from
5345 the include_defaults_array on to append_include_chain.
5346 (dump_special_to_buffer): Const-ify char array.
5347 (builtin_array): Don't dump __BASE_FILE__.
5348 (cpp_start_read): Use cpp_read_file. Reorder code for
5349 clarity. Don't output line commands here for -D/-A/-U
5350 switches. Don't call deps_output for files included with
5351 -include or -imacros.
5352
5353 * cpplib.c (do_define): Don't pay any attention to the second
5354 argument.
5355 (cpp_expand_to_buffer): Disable line commands while scanning.
5356 (output_line_command): Work in the file buffer.
5357 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
5358 Fix formatting of comments. Prototype cpp_read_file.
5359
5360 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5361
5362 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
5363 reference the language-equivalent of sizetype.
5364 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
5365 * fold-const.c (size_binop, size_diffop): Put back checks.
5366 * gcse.c (dump_hash_table): Fix minor error in last change.
5367 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
5368 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
5369 all sizetypes.
5370
5371 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
5372
5373 * calls.c (expand_call) Do not attempt to combine stack adjustments
5374 with inhibit_defer_pop set.
5375
5376 2000-03-01 Mark Mitchell <mark@codesourcery.com>
5377
5378 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
5379 the DECL_SIZE for a FIELD_DECL.
5380
5381 2000-03-01 Bruce Korb <bkorb@gnu.org>
5382
5383 * fixinc/inclhack.tpl: remove unused symlinks
5384 * fixinc/README: GCC Maintainer info
5385 * fixinc/inclhack.sh: regen
5386 * fixinc/fixincl.sh: regen
5387
5388 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
5389
5390 * cpphash.c (collect_expansion): Trim trailing white space
5391 from macro definitions, but don't go past the last insertion
5392 point.
5393
5394 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
5395
5396 * i386.md (mulqi3): New pattern.
5397
5398 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
5399
5400 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
5401 token types.
5402 (struct cpp_reader): Add parsing_if_directive and
5403 parsing_define_directive flags.
5404 (struct cpp_options): Remove output_conditionals flag.
5405 (check_macro_name): Delete prototype.
5406
5407 * cpphash.h (struct macrodef): Delete.
5408 (struct reflist): Separate from struct definition.
5409 (struct definition): Remove unused fields. Add column number.
5410 (create_definition): Returns a DEFINITION *. Takes a
5411 cpp_reader * and an int.
5412
5413 * cpphash.c (SKIP_WHITE_SPACE): Delete.
5414 (PEEKC): Copy defn from cpplib.c.
5415 (rest_extension, REST_EXTENSION_LENGTH): Delete.
5416 (struct arg): New.
5417 (struct arglist): Simplify.
5418 (collect_expansion): Rewrite. Get tokens by calling
5419 cpp_get_token. Add more error checking.
5420 (collect_formal_parameters): New function, broken out of
5421 create_definition and reworked to use get_directive_token.
5422 (create_definition): All real work is now in collect_expansion
5423 and collect_formal_parameters. do_define handles finding the
5424 macro name. Return a DEFINITION, not a MACRODEF.
5425 (macroexpand): Replace bcopy with memcpy throughout. Replace
5426 character-at-a-time copy loop with memcpy and pointer increments.
5427 (compare-defs): d1->argnames / d2->argnames might be null.
5428
5429 * cpplib.c (copy_rest_of_line): Delete function.
5430 (skip_rest_of_line): Do all the work ourselves.
5431 (skip_string): New function.
5432 (parse_string): Use skip_string.
5433 (get_macro_name): New function.
5434 (check_macro_name): Delete.
5435 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
5436 (cpp_skip_hspace): Use CPP_BUMP_LINE.
5437 (handle_directive): ICE if we're called on a macro buffer.
5438 (do_define): Determine macro name and type (funlike/objlike)
5439 here. Expunge all uses of MACRODEF.
5440 (cpp_push_buffer): Set line_base to NULL.
5441 (do_undef, read_line_number): Don't worry about getting a POP token.
5442 (eval_if_expression): Set/reset parsing_if_directive around
5443 cpp_parse_expr. Don't clear only_seen_white.
5444 (skip_if_group): Remove output_conditionals logic. Use
5445 skip_rest_of_line.
5446 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
5447 tokens under appropriate conditions.
5448 (cpp_unassert): Call do_unassert not do_assert. Oops.
5449
5450 * cppexp.c (parse_defined): New function, break out of
5451 cpp_lex.
5452 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
5453 ourselves, with cpp_defined.
5454 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
5455
5456 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
5457 * gcc.dg/strpaste-2.c: New.
5458
5459 2000-02-29 Mark Mitchell <mark@codesourcery.com>
5460
5461 * fold-const.c (size_binop): Don't asert inputs are the same and
5462 have TYPE_IS_SIZETYPE set.
5463 (size_diffop): Likewise.
5464
5465 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
5466
5467 * dwarfout.c (output_block): Output abstract blocks even if they
5468 don't have TREE_ASM_WRITTEN set.
5469
5470 * calls.c (emit_library_call): Check for null REG.
5471
5472 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
5473
5474 * c-decl.c (current_function_decl): Move to toplev.c.
5475 (init_decl_processing): Don't add current_function_decl as a ggc
5476 root here.
5477 * dbxout.c (dbxout_symbol): Change return type to int.
5478 (dbxout_symbol_location, dbxout_syms): Likewise.
5479 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
5480 any locals. Use current_function_func_begin_label if set.
5481 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
5482 * dwarf2out.c (dwarf2out_begin_prologue): Set
5483 current_function_func_begin_label.
5484 * final.c (final_start_function): Reset it.
5485 * toplev.c (current_function_decl): Define it here.
5486 (current_function_func_begin_label): New variable.
5487 (main): Add both as ggc roots.
5488 * tree.h (current_function_func_begin_label): Declare.
5489
5490 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5491
5492 * gcse.c: Cleanups throughout: mostly white-space, but also
5493 some minor rearrangement of code.
5494
5495 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
5496
5497 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
5498 returns a PARALLEL. Use emit_group_load and use_group_regs
5499 as needed.
5500 (emit_library_call_value): Similarly.
5501
5502 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
5503 * pa/quadlib.asm: Remove.
5504 * pa/quadlib.c: New file.
5505
5506 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
5507 * configure: Rebuilt.
5508
5509 2000-02-29 Philip Blundell <pb@futuretv.com>
5510
5511 * config/arm/conix-elf.h: New file.
5512 * configure.in (arm*-*-conix*): New configuration.
5513 * configure: Regenerate.
5514
5515 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
5516
5517 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
5518 don't have TREE_ASM_WRITTEN set.
5519
5520 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5521
5522 * Eliminate DECL_FIELD_SIZE.
5523 * builtins.c (built_in_class_names, built_in_names): New variables.
5524 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
5525 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
5526 DECL_SIZE, not DECL_FIELD_SIZE.
5527 * print-tree.c (print_node): Remove code that prints extra blank
5528 lines in some cases.
5529 Properly handle inline and builtin function cases.
5530 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
5531 * tree.h (built_in_class_named, built_in_names): New declarations.
5532 (union tree_decl): Rename internal unions to u1 and u2 and change
5533 some of their components.
5534 Add new field built_in_class.
5535 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
5536 Reflect above changes.
5537 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
5538 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
5539 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
5540 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
5541
5542 2000-02-28 Dmitri Makarov <dim@windriver.com>
5543
5544 * extend.texi: Document ARM's support for long/short calls.
5545
5546 * invoke.texi: Document ARM's -mlong-calls command line switch.
5547
5548 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
5549 (arm_encode_call_attribute): Add prototype.
5550 (arm_set_default_type_attribute): Add prototype.
5551 (arm_strip_name_encoding): Add prototype.
5552
5553 * config/arm/arm.c (arm_init_cumulative_args): replace
5554 initialisation og 'long_calls' field with initialisation of
5555 'call_cookie' field.
5556 (enum arm_pragma_enum): New enum.
5557 (arm_pragma_long_calls): New static variable.
5558 (arm_process_pragma): Also process "#pragma long_calls_off".
5559 (arm_valid_type_attribute_p): Accept short_call attribute.
5560 (arm_comp_type_attributes): Check long/short call attributes.
5561 (arm_encode_call_attribute): New function: Encode long_call
5562 or short_call attribute in function name.
5563 (arm_set_default_type_attributes): New function: Assign
5564 default attributes to newly defined type.
5565 (current_file_function_operand): New function: Return true if
5566 the symbol is a function which has already been compiled.
5567 (arm_is_longcall_p): New function: Return true if the
5568 indicated function should be called via a long call.
5569 (arm_get_strip_length): New function. Returns number of
5570 prefix characters to be stripped from a function's name.
5571 (arm_strip_name_encoding): New function. Strip prefix characters
5572 from a function's name.
5573
5574 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
5575 with 'call_cookie'.
5576 (SHORT_CALL_FAG_CHAR): Define.
5577 (LONG_CALL_FAG_CHAR): Define.
5578 (ENCODED_SHORT_CALL_ATTR_P): Define.
5579 (ENCODED_LONG_CALL_ATTR_P): Define.
5580 (ARM_NAME_ENCODING_LENGTHS): Define.
5581 (STRIP_NAME_ENCODING): Define.
5582 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
5583 (ARM_ENCODE_CALL_TYPE): Define.
5584 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
5585 (ARM_DECLARE_FUNCTION_SIZE): Define.
5586 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
5587
5588 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
5589 if a long call is needed.
5590 (call_value): Ditto.
5591 (call_symbol): Ditto.
5592
5593 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
5594 ARM_DECLARE_FUNCTION_SIZE.
5595
5596 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
5597 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
5598 (ARM_STRIP_NAME_ENCODING): Undefine.
5599 (STRIP_NAME_ENCODING): Undefine.
5600 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
5601 (ASM_DECLARE_FUNCTION_NAME): Ditto.
5602 (ASM_OUTPUT_COMMON): Ditto.
5603 (ASM_DECLARE_OBJECT_NAME): Ditto.
5604
5605 * config/arm/pe.c (arm_dllexport_name_p): Check for
5606 ARM_PE_FLAG_CHAR.
5607 (arm_dllimport_name_p): Ditto.
5608 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
5609 (arm_mark_dllimport): Ditto.
5610
5611 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5612
5613 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
5614
5615 2000-02-28 Mark Mitchell <mark@codesourcery.com>
5616
5617 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
5618
5619 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
5620
5621 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
5622 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
5623 NO_BUILTIN_WCHAR_TYPE is not defined.
5624 (CPP_WCHAR_TYPE): Delete.
5625 * cccp.c (main): Don't change wchar_type if cplusplus.
5626 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
5627
5628 2000-02-28 Nick Clifton <nickc@cygnus.com>
5629
5630 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
5631
5632 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
5633
5634 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
5635 (ASM_WEAKEN_LABEL): Define.
5636
5637 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
5638
5639 * expr.c (store_constructor): Do not emit USE.
5640 * rtl.h (stupid_life_analysis): Remove.
5641
5642 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5643
5644 * function.c (number_blocks): Reset next_block_index based on
5645 what debugging format is used, not what is defined.
5646
5647 * lcm.c: Minor reformatting throughout.
5648 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
5649
5650 * toplev.c (rest_of_compilation): Account for time in
5651 optimize_mode_switching.
5652
5653 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
5654 if only marking labels.
5655
5656 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
5657
5658 * calls.c (expand_call): Attempt to combine stack adjustments with
5659 pending stack adjustments.
5660
5661 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5662
5663 * loop.c (reg_in_basic_block_p): Don't abort when falling through
5664 to the end of the function.
5665
5666 2000-02-27 Mark Mitchell <mark@codesourcery.com>
5667
5668 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
5669 blocks.
5670 * final.c (next_block_index): Remove.
5671 (max_block_depth): Likewise.
5672 (pending_blocks): Likewise.
5673 (init_final): Don't initialize them.
5674 (final_start_function): Don't set next_block_index. Set up
5675 BLOCK_NUMBER.
5676 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
5677 * function.h (number_blocks): New function.
5678 * function.c (get_block_vector): New function.
5679 (identify_blocks): Use it.
5680 (reorder_blocks): Set NOTE_BLOCK.
5681 (number_blocks): New function.
5682 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
5683 * tree.h (BLOCK_NUMBER): New macro.
5684 (tree_block): Add block_num field.
5685 * dbxout.c (next_block_number): Remove.
5686 (dbxout_init): Don't set it.
5687 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
5688 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
5689 block numbers.
5690 * toplev.c (rest_of_compilation): Always call
5691 find_loop_tree_blocks. Fix indentation.
5692 * dwarf2out.c (next_block_number): Remove.
5693 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
5694 to determine block numbers.
5695 (gen_inlined_subroutine_die): Likewise.
5696 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
5697 (decls_for_scope): Don't increment next_block_number.
5698 * dwarfout.c (next_block_number): Remove.
5699 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
5700 to determine block numbers.
5701 (output_inlined_subroutine_die): Likewise.
5702 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
5703 (output_decls_for_scope): Don't increment next_block_number.
5704 * sdbout.c (next_block_number): Remove.
5705 (sdbout_block): Use BLOCK_NUMBER.
5706 (sdbout_begin_block): Simplify.
5707 * xcoffout.c (next_block_number): Remove.
5708 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
5709 (xcoffout_begin_block): Don't set next_block_number.
5710 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
5711 next_block_number.
5712
5713 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5714
5715 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
5716 (expand_builtin_strcpy): Pass correct type to size_binop.
5717 (expand_builtin_strcmp): Likewise.
5718 Clean up conditional structure.
5719 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
5720 (complete_array_type): Don't use size_binop for MAXINDEX.
5721 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
5722 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
5723 (c_alignof): Use size_one_node.
5724 (build_unary_op): Pass arg of proper type to size_binop.
5725 (really_start_incremental_init, push_init_level): Use sizetype for
5726 constructor{,_bit,_unfilled}_index.
5727 (pop_init_label, output_init_element): Likewise.
5728 (output_pending_init_elements, process_init_element): Likewise.
5729 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
5730 * expr.c (store_expr): Use size_int.
5731 (store_constructor): Use proper types for size_binop args.
5732 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
5733 (expand_expr_unaligned): Likewise.
5734 (string_contant): Return object of sizetype.
5735 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
5736 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
5737 (ARGS_SIZE_TREE): Pass proper types to size_binop.
5738 * fold-const.c (int_const_binop): Refine when size_int is called.
5739 (fold_convert): Likewise.
5740 (size_int_wide): Rework to take KIND as arg, only take low order
5741 bits, handle new sizetype_tab datatype, and chain entries in
5742 size_table.
5743 (size_int_type_wide): New function.
5744 (size_binop): Validate types of arguments.
5745 (ssize_binop): Deleted.
5746 (size_diffop): New function.
5747 (extract_muldiv): Only fold division into multiplication for sizetypes.
5748 * function.c (assign_parms): Use size_diffop and make sure
5749 VAR field is of ssizetype; also pass proper type to size_binop.
5750 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
5751 (round_down): Deleted from here.
5752 * store-layout.c (sizetype_tab): Now an array.
5753 (sizetype_set, early_root_list): New variables.
5754 (variable_size): Use size_one_node.
5755 (round_up): Pass proper type to size_binop.
5756 (round_down): Moved to here and corrected as above.
5757 (layout_record): Pass proper arg types to size_binop.
5758 (layout_type): Likewise.
5759 If sizetype_set is zero, record the type just laid out.
5760 (make_unsigned_type): Don't call set_sizetype;
5761 (make_signed_type): Likewise; also, call fixup_signed_type.
5762 (initialize_sizetypes): New function.
5763 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
5764 set name of bitsizetype to "bit_size_type".
5765 Fix up type of sizes of all types made before call.
5766 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
5767 * tree.c (fix_sizetype): Deleted.
5768 (build_common_tree_nodes): Call initialize_sizetypes.
5769 (build_common_tree_nodes_2): Don't call fix_sizetype.
5770 * tree.h (TYPE_IS_SIZETYPE): New macro.
5771 (initialize_sizetype): New declaration.
5772 (enum size_type_kind): New type.
5773 (struct sizetype_tab): Deleted.
5774 (sizetype_tab): Now array; adjust sizetype macros.
5775 (size_diffop, size_int_type_wide): New functions.
5776 (size_int_wide): Change number of args and type; access macros changed.
5777 (ssize_int, sbitsize_int): New macros.
5778 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
5779 (ROUND_TYPE_SIZE_UNIT): New macro.
5780
5781 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
5782
5783 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
5784
5785 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5786
5787 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
5788 Mark as possibly unused.
5789
5790 * cse.c (cse_insn): Delete dead code involving tablejump.
5791 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
5792
5793 * Makefile.in (libcpp.a): Start by deleting it.
5794
5795 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5796
5797 * cpplib.h (enum file_change_code): Added rename_file.
5798 * cpplib.c (do_line): If a filename is given, set file_change to
5799 rename_file.
5800 (output_line_command): If file_change is rename_file, always
5801 output a # directive with the file name.
5802
5803 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
5804
5805 2000-02-26 Mark Mitchell <mark@codesourcery.com>
5806
5807 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
5808 when copying a PARM_DECL or RESULT_DECL.
5809
5810 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5811
5812 * fix-header.c (recognized_function): Also fix prototypes for
5813 functions taking "void".
5814
5815 2000-02-26 Geoff Keating <geoffk@cygnus.com>
5816
5817 * reload1.c (do_output_reload): Check reg_reloaded_valid before
5818 looking at reg_reloaded_contents.
5819
5820 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
5821
5822 * Makefile.in (STMP_FIXINC): New toggle.
5823 (LIBGCC2_DEPS): Delete all references.
5824 (stmp-headers): Delete target. All references either deleted
5825 or changed to stmp-int-headers.
5826 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
5827 (LIBCPP_OBJS): Take out cppalloc.o.
5828 (cppalloc.o): Delete target.
5829 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
5830 (gen-protos, fix-header): Link with libiberty.a.
5831 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
5832 to empty.
5833
5834 * configure.in: Remove refs to strerror.
5835 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
5836 * system.h: Take out strerror stanza.
5837
5838 * cpperror.c (my_strerror): Delete function.
5839 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
5840 * cppmain.c (main): Call xmalloc_set_program_name first thing.
5841 * cppalloc.c: Delete file.
5842 * gen-protos.c: Don't provide xrealloc.
5843
5844 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
5845 xstrerror throughout.
5846
5847 2000-02-26 Bruce Korb <bkorb@gnu.org>
5848
5849 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
5850 match for DOS headers, too.
5851 * fixinc/inclhack.sh,fixincl.x: Regenerate.
5852
5853 2000-02-26 Geoff Keating <geoffk@cygnus.com>
5854
5855 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
5856 is right for most ELF targets.
5857 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
5858 Let the default file use %U properly.
5859 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
5860 default.
5861
5862 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
5863 numbers.
5864
5865 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5866
5867 * toplev.c (documented_lang_options): Correct spelling error.
5868 (decode_d_option, decode_f_option, main): Likewise.
5869
5870 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
5871
5872 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
5873 to tell assembler it is permitted to expand large constants.
5874
5875 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
5876
5877 * protoize.c: (AUX_INFO_SUFFIX): New macro.
5878 (aux_info_suffix): Use.
5879 (SAVE_SUFFIX): New macro.
5880 (save_suffix): Use.
5881 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
5882 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
5883 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
5884
5885 * invoke.texi (Running Protoize): Update documentation.
5886
5887 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
5888
5889 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
5890
5891 2000-02-25 John Wehle (john@feith.com)
5892
5893 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
5894
5895 2000-02-25 Anthony Green <green@cygnus.com>
5896
5897 * toplev.c (rest_of_compilation): Rebuild jump labels if
5898 combine_instructions has created a new direct jump.
5899 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
5900 when appropriate.
5901 (combine_instructions): Call try_combine with new argument.
5902 Return non-null value when new direct jump instruction is created.
5903 * rtl.h: combine_instructions returns an int.
5904
5905 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
5906
5907 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
5908 jump when changing a computed jump into a jump to a known
5909 target.
5910
5911 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
5912
5913 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
5914 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
5915
5916 * i386.md (define_expand "clrstrsi"): Fix typo.
5917
5918 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
5919
5920 * rtl.texi: Fix typo.
5921
5922 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5923
5924 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
5925 UNITS_PER_WORD. Change caller initial_elimination_offset.
5926 (rounded_frame_size): Take into account that argument pushed has
5927 changed. Fix TARGET_ALIGN_DOUBLE problem.
5928
5929 2000-02-25 Geoff Keating <geoffk@cygnus.com>
5930
5931 * haifa-sched.c (schedule_block): Explain the real reason
5932 we delete REG_SAVE_NOTEs on the first insn of a block.
5933 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
5934
5935 2000-02-24 Mark Mitchell <mark@codesourcery.com>
5936
5937 * input.h (push_srcloc): New function.
5938 (pop_srcloc): Likewise.
5939 * toplev.c (push_srcloc): Define it.
5940 (pop_srcloc): Likewise.
5941
5942 2000-02-24 Richard Henderson <rth@cygnus.com>
5943
5944 * flow.c (life_analysis): When collecting reg info, clear
5945 regs_ever_live.
5946
5947 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5948
5949 Fix bug exposed by reload.c no longer rounding the frame
5950 size to BIGGEST_ALIGNMENT:
5951 * sh.c (rounded_frame_size): New function.
5952 (sh_expand_prologue, sh_expand_epilogue): Use it.
5953 (initial_elimination_offset): Likewise.
5954
5955 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5956
5957 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
5958 * sh-protos.h (sh_need_epilogue): Declare.
5959 * sh.c (sh_need_epilogue_known): New static variable.
5960 (sh_need_epilogue): New function.
5961 (function_epilogue): Clear need_epilogue_known.
5962 * sh.md (return): Split into expander / insn pattern.
5963 Make the expander conditional on ! sh_need_epilogue ().
5964
5965 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
5966
5967 * machmode.h (get_mode_alignment): Declare.
5968 (GET_MODE_ALIGNMENT): Call it.
5969 * stor-layout.c (get_mode_alignment): New function. Make
5970 sure alignment is always power of 2.
5971
5972 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
5973
5974 * i386.h: Remove useless definition of "I386" and misleading
5975 comment above it.
5976
5977 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
5978
5979 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
5980 under which TREE_PERMANENT will be set.
5981 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
5982 build1): Use TREE_SET_PERMANENT.
5983 * print-tree.c (print_node): Don't report value of
5984 TREE_PERMANENT if ggc_p is true.
5985
5986 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
5987 decide whether to give a type a new alias set.
5988 * objc/objc-act.c (build_objc_string_object): Never copy the string.
5989 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
5990 of value of 'obstack'.
5991
5992
5993 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5994
5995 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
5996
5997 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5998
5999 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
6000 * cpplib.c (cpp_get_token): Produce them.
6001 * cppexp.c (cpp_lex): Handle them.
6002
6003 2000-02-23 Nick Clifton <nickc@cygnus.com>
6004
6005 * config/arm/arm.c (arm_comp_type_attributes): Simply and
6006 comment tests on type attributes.
6007
6008 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6009
6010 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
6011 conform to documentation.
6012 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
6013 to check for special cases.
6014 * sh-protos.h (sh_loop_align): Declare.
6015 * sh.c (sh_loop_align): Define.
6016
6017 2000-02-22 Andrew Haley <aph@cygnus.com>
6018
6019 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
6020 (SIZE_TYPE): Is 32 bits when using -mgp32.
6021 (PTRDIFF_TYPE): Ditto.
6022
6023 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6024
6025 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
6026
6027 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
6028
6029 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
6030 BIGGEST_FIELD_ALIGNMENT a constant.
6031
6032 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
6033
6034 * dwarf2out.c (output_line_info): Put the marker for the end of
6035 the line number info at the actual end.
6036 (gen_struct_or_union_type_die): Use decl_function_context
6037 to check for local classes.
6038 * dwarfout.c (output_type): Likewise.
6039
6040 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
6041
6042 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
6043 for arguments with a mode, but no type.
6044 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
6045 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
6046 * pa/long_double.h: New file.
6047 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
6048 both have 128bit wide long doubles.
6049 * configure: Rebuilt.
6050
6051 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6052
6053 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
6054
6055 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
6056 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
6057 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
6058
6059 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
6060
6061 * integrate.c (compare_blocks, find_block): Likewise.
6062
6063 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
6064
6065 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
6066
6067 * stmt.c (stmt_status, set_file_and_line_for_stmt,
6068 expand_asm_operands): Likewise.
6069
6070 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
6071
6072 * predict.c (estimate_probability): Added the pointer heuristic to
6073 the collection of static branch predictors.
6074
6075 2000-02-21 Catherine Moore <clm@cygnus.com>
6076
6077 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
6078 * invoke.texi (-mfix7000): Document.
6079
6080 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
6081
6082 * diagnostic.c (init_output_buffer): Make it possible to output at
6083 least 32 characters if we're given a too long prefix.
6084
6085 2000-02-20 Mark Mitchell <mark@codesourcery.com>
6086
6087 * varasm.c (initializer_constant_valid_p): Call
6088 lang_expand_constant to simplify the constant.
6089
6090 2000-02-20 Bruce Korb <bkorb@gnu.org>
6091
6092 * fixinc/inclhack.def(stdio_va_list):
6093 typedef needs to be disabled.
6094 * fixinc/inclhack.sh: regen
6095 * fixinc/fixincl.x: regen
6096
6097 2000-02-20 Geoff Keating <geoffk@cygnus.com>
6098
6099 * print-rtl.c (print_rtx): Don't print addresses when
6100 flag_dump_unnumbered.
6101
6102 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6103
6104 * sparc.c (sparc_output_scratch_registers): Mark parameter with
6105 ATTRIBUTE_UNUSED.
6106 (sparc_va_arg, sparc_flat_output_function_prologue,
6107 sparc_flat_output_function_epilogue): Cast value to unsigned in
6108 comparison.
6109 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
6110
6111 * sparc.md: Add default case in switch.
6112
6113 2000-02-19 Richard Henderson <rth@cygnus.com>
6114
6115 * c-typeck.c (add_pending_init): Don't abort for multiple
6116 fields at the same offset.
6117 (pending_init_member): Test the correct member.
6118
6119 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6120
6121 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
6122 instead of SImode.
6123 (start_catch_handler) : Same.
6124
6125 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
6126
6127 * Makefile.in: Have flow.o depend on $(EXPR_H)
6128
6129 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6130
6131 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
6132 * c-decl.c (duplicate_decls, finish_enum): Likewise.
6133 (finish_decl): Remove -Wlarger-than code from here.
6134 * flags.h (id_clash_len): Now int.
6135 (larger_than_size): Now HOST_WIDE_INT.
6136 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
6137 Clean up checking to see if in table.
6138 (make_bit_field_ref): Remove extra parm to bitsize_int.
6139 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
6140 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
6141 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
6142 and for computing size of decl.
6143 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
6144 Move -Wlarger-than code to here.
6145 (layout_record): Remove extra arg to bitsize_int.
6146 Set TYPE_BINFO_SIZE_UNIT.
6147 (layout_union): Remove extra arg to bitsize_int.
6148 Use proper type for size of QUAL_UNION.
6149 (layout_type): Remove extra arg to bitsize_int.
6150 * toplev.c (id_clash_len): Now int.
6151 (larger_than_size): Now HOST_WIDE_INT.
6152 (decode_W_option): Clean up id-clash and larger-than- cases.
6153 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
6154 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
6155 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
6156 (struct tree_decl): New field size_unit.
6157 (size_int_wide): No HIGH operand; NUMBER is now signed.
6158 (size_int_2): Deleted.
6159 (size_int, bitsize_int): Don't use it and rework args.
6160 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
6161
6162 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
6163
6164 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
6165
6166 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6167
6168 * invoke.texi (Warning Options): Add an explanation of why
6169 you might want the -Wfloat-equal flag.
6170
6171 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6172
6173 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
6174 * cppinit.c (new_pending_define): Add cast to avoid warning.
6175 * expmed.c (extract_bit_field): Likewise.
6176 * flow.c (enum reorder_skip_type): New type.
6177 (skip_insns_between_blcok): New it.
6178 Rework to avoid warning about possibly undefined variable.
6179 * function.c (assign_parms): Make thisparm_boundary unsigned.
6180 * genrecog.c (write_switch): Cast XWINT result to int.
6181 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
6182 * mips-tfile.c (init_file): Make two versions of FDR intializer:
6183 one for MIPS and one for Alpha.
6184 (get_tag, copy_object): Add casts to avoid warnings.
6185 * optabs.c (init_one_libfunc): Cast NAME to (char *).
6186 * reload.c (find_reloads): Make TYPE enum reload_type.
6187 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
6188 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
6189 * varasm.c (compare_constant_1): Add cast to avoid warning.
6190 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
6191 to (char *).
6192 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
6193 Cast switch operand of size to int.
6194 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
6195 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
6196 in unhandled case.
6197
6198 2000-02-18 Nick Clifton <nickc@cygnus.com>
6199
6200 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
6201 anything for an alignment of zero.
6202
6203 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
6204 anything for an alignment of zero.
6205
6206 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
6207
6208 * gcc.texi (Bug Reporting): Refer to bugs.html.
6209 (Bug Lists): Likewise.
6210 * system.h (GCCBUGURL): New preprocessor define.
6211 * rtl.c (fancy_abort): Use it.
6212 * gcc.c (main): Likewise.
6213
6214 2000-02-18 Richard Henderson <rth@cygnus.com>
6215
6216 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
6217 (life_analysis_1): Subsume into ...
6218 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
6219 Use update_life_info for the relaxation.
6220 (update_life_info): Update REG_BASIC_BLOCK for registers live on
6221 entry and regs_live_at_setjmp.
6222 (set_noop_p): Simplify.
6223 (notice_stack_pointer_modification_1): Renamed from s/_1//.
6224 (record_volatile_insns): Split into ...
6225 (delete_noop_moves): ... here,
6226 (notice_stack_pointer_modification): ... here,
6227 (insn_dead_p): ... and here.
6228 (propagate_block): Don't query INSN_VOLATILE.
6229 (mark_used_regs): Mind !PROP_REG_INFO.
6230 * toplev.c (rest_of_compilation): Call mark_constant_function here,
6231 not in life_analysis.
6232
6233 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
6234
6235 * loop.c (canonicalize_condition): New function,
6236 broken out of get_condition.
6237 (get_condition): Use it.
6238 * expr.h (canonicalize_condition): Prototype it.
6239
6240 * tree.h (tree_int_cst_msb): Declare.
6241 * tree.c (tree_int_cst_msb): New function.
6242
6243 2000-02-17 Mark Mitchell <mark@codesourcery.com>
6244
6245 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
6246 isn't set.
6247
6248 * invoke.texi (-fmessage-length=n): Document.
6249
6250 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
6251
6252 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
6253
6254 2000-02-17 Mark Mitchell <mark@codesourcery.com>
6255
6256 * function.c (thread_prologue_and_epilogue_insns): Put a line note
6257 after the prologue.
6258
6259 2000-02-17 Nick Clifton <nickc@cygnus.com>
6260
6261 * config/arm/thumb.c: Replace includes of system headers with
6262 #include "system.h".
6263
6264 2000-02-16 Richard Henderson <rth@cygnus.com>
6265
6266 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
6267 Add crtbeginS.o and crtendS.o.
6268 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
6269 (ENDFILE_SPEC): Use crtendS.o.
6270 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
6271
6272 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
6273 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
6274 shared and present.
6275 (__dso_handle): New variable.
6276 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
6277 bias to __CTOR_END__.
6278
6279 2000-02-16 Richard Henderson <rth@cygnus.com>
6280
6281 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
6282
6283 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
6284
6285 * longlong.h (__clz_tab): Declare as static to match definition.
6286
6287 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
6288 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
6289 (XREF_FILE_NAME): Define.
6290
6291 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
6292 (EH_FRAME_SECTION_ASM_OP): Define.
6293 (IDENT_ASM_OP): Define.
6294 (TEXT_SECTION_ASM_OP): Define.
6295 (CPP_SPEC): Define.
6296 (CTORS_SECTION_ASM_OP): Define.
6297 (CTOR_SECTION_FUNCTION): Use it.
6298 (DTORS_SECTION_ASM_OP): Define.
6299 (DTOR_SECTION_FUNCTION): Use it.
6300
6301 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
6302
6303 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
6304 NOTE_BASIC_BLOCK.
6305
6306 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
6307 debug_bb_n): New functions.
6308 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
6309 * basic-block.h: Prototype new functions.
6310
6311 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
6312
6313 * configure.in: Add support for avr target.
6314 * configure: Rebuilt.
6315
6316 * invoke.texi: Add AVR invocation docs.
6317 * install.texi: Add information about AVR.
6318 * md.texi: Add AVR constraint letters description.
6319 * extend.texi: Add description for AVR specific attributes.
6320
6321 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
6322
6323 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
6324
6325 2000-02-16 Nick Clifton <nickc@cygnus.com>
6326
6327 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
6328 (make_insn_raw): Move RTL check here.
6329
6330 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6331
6332 * version.c: Include gansidecl.h and version.h.
6333
6334 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
6335
6336 * configure.in (gcc_version): When setting, narrow search to
6337 lines containing `version_string'.
6338
6339 * Makefile.in (mainversion): Likewise.
6340 (GCC_H): New variable.
6341 (gcc.h): Delete target.
6342 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
6343 (version.o): Depend on version.h.
6344 (dbxout.o): Don't depend on gcc.h.
6345
6346 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
6347 Michael Meissner <meissner@cygnus.com>
6348
6349 * md.texi (Simple Constraints): Add item about whitespace.
6350 * genoutput.c (strip_whitespace): New.
6351 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
6352 strip_whitespace for constraints.
6353 Test pointer using NULL, not 0.
6354
6355 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6356
6357 * cpplib.c (do_line): Pedwarn for #line > 32767.
6358
6359 * c-lex.c (readescape): Warn about '\x', but do not reject it.
6360
6361 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
6362
6363 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
6364 to default cpp spec.
6365 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
6366 * cpp.texi: Document __GNUC_PATCHLEVEL__.
6367 * cpp.1: Likewise.
6368
6369 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
6370 default spec.
6371
6372 2000-02-15 Denis Chertykov <denisc@overta.ru>
6373
6374 * configure.in: Add support for avr target.
6375
6376 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6377
6378 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
6379 (sh_addr_diff_vec_mode): Don't declare.
6380 * sh.c (sh_addr_diff_vec_mode): Delete.
6381
6382 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6383
6384 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
6385
6386 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6387
6388 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
6389 (smulsi3_highpart_i): Name.
6390 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
6391 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
6392 (smulsi3_highpart, umulsi3_highpart): Likewise.
6393
6394 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
6395 correctly independent of endianness.
6396 (mulsidi3, umulsidi3): Now define_insn. Hide details that
6397 confuse the optimizers.
6398 (mulsidi3+1, umulsidi3+1): New define_split.
6399
6400 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
6401
6402 * config/sh/sh.md: Guard insn splits against illegal registers.
6403 * config/sh/sh.h: Correct comment about macros.
6404
6405 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6406 Andrew MacLeod <amacleod@cygnus.com>
6407
6408 * Makefile.in (lcm.o): Depend on insn-attr.h.
6409 * basic-block.h (optimize_mode_switching): Declare.
6410 * lcm.c (tm_p.h, insn-attr.h): #include.
6411 (seginfo, bb_info): New structs.
6412 (antic, transp, comp, delete, insert) : New file-scope static variables.
6413 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
6414 (reg_becomes_live, optimize_mode_switching): Likewise.
6415 * tm.texi: Add description of mode switching macros.
6416 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
6417
6418 * sh-protos.h (remove_dead_before_cse): Remove prototype.
6419 (fldi_ok, fpscr_set_from_mem): New prototypes.
6420 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
6421 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
6422 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
6423 (sh_flag_remove_dead_before_cse): Remove declaration.
6424 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
6425 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
6426 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
6427 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
6428 (barrier_align): Allow for JUMP_INSNS containing a parallel.
6429 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
6430 (fldi_ok): New function.
6431 (get_fpscr_rtx): Add fpscr_rtx as GC root.
6432 (emit_sf_insn): Only generate fpu switches when optimize < 1.
6433 (emit_df_insn): Likewise.
6434 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
6435 (sh_flag_remove_dead_before_cse): Delete.
6436 (get_free_reg, fpscr_set_from_mem): New functions.
6437 * sh.md (movdf, movsf): Remove no_new_pseudos code.
6438 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
6439
6440 2000-02-15 Loren Rittle <ljrittle@acm.org>
6441
6442 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
6443
6444 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6445
6446 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
6447 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
6448
6449 * cccp.c: Include version.h and/or don't declare `version_string'.
6450 * collect2.c: Likewise.
6451 * alpha.c: Likewise.
6452 * arm/aof.h: Likewise.
6453 * arm/coff.h: Likewise.
6454 * arm/elf.h: Likewise.
6455 * arm/pe.h: Likewise.
6456 * arm/tcoff.h: Likewise.
6457 * arm/telf.h: Likewise.
6458 * arm/tpe.h: Likewise.
6459 * arm/vxarm.h: Likewise.
6460 * convex/convex.c: Likewise.
6461 * i386/dgux.c: Likewise.
6462 * i386/sun386.h: Likewise.
6463 * m88k/m88k.c: Likewise.
6464 * mcore/mcore-pe.h: Likewise.
6465 * mips/mips.h: Likewise.
6466 * romp/romp.h: Likewise.
6467 * sh/sh.c: Likewise.
6468 * cpphash.c: Likewise.
6469 * cppinit.c: Likewise.
6470 * dwarf2out.c: Likewise.
6471 * dwarfout.c: Likewise.
6472 * gcc.c: Likewise.
6473 * gcc.h: Likewise.
6474 * mips-tfile.c: Likewise.
6475 * protoize.c: Likewise.
6476 * toplev.c: Likewise.
6477 * tree.h: Likewise.
6478
6479 * version.c (version_string): Constify a char*.
6480
6481 * version.h: New file.
6482
6483 2000-02-14 Nick Clifton <nickc@cygnus.com>
6484
6485 * configure.in: Add mcore-elf and mcore-pe targets.
6486 * configure: Regenerate.
6487
6488 * NEWS: Add note that MCore port has been contributed.
6489
6490 * invoke.texi: Document command line switches for MCore port.
6491 * install.texi: Add MCore to list of supported targets.
6492
6493 2000-02-14 Geoff Keating <geoffk@cygnus.com>
6494
6495 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
6496 then we will need to import the frame handling functions.
6497 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
6498 to import the frames themselves.
6499
6500 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
6501 Jason Eckhardt <jle@cygnus.com>
6502
6503 * basic_block.h: Added prototype for reorder_basic_blocks.
6504 * toplev.c: Changes to add -freorder-blocks and graph dump after
6505 block reordering is done.
6506 * flow.c (reorder_block_def): New structure for use during block
6507 reordering.
6508 (REORDER_BLOCK_*): New macros to access members of above structure.
6509 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
6510 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
6511 functions for block reordering.
6512
6513 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
6514
6515 * gcc.texi (Passes): Fix typo.
6516 * md.texi (Standard Names): Ditto.
6517 * tm.texi (Storage Layout): Ditto.
6518
6519 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
6520
6521 * cpplib.c (do_define): Only free the old definition if it
6522 actually had one.
6523
6524 2000-02-13 Neil Booth <NeilB@earthling.net>
6525
6526 * cppfiles.c (read_and_prescan): When emitting deferred
6527 newlines, test speccase[] again instead of checking each
6528 possible whitespace character in turn. When we encounter \r,
6529 look behind for \n first, then ahead.
6530
6531 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
6532
6533 * cse.c (cse_altered): New internal flag.
6534 (cse_insn): Set it if we changed an insn.
6535 (cse_main): Clear cse_altered before each basic block.
6536 Only garbage collect if cse_altered is true afterward.
6537
6538 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6539
6540 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
6541
6542 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
6543
6544 * combine.c (simplify_comparison): Fix typo.
6545
6546 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
6547
6548 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
6549 consistently.
6550
6551 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6552
6553 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
6554 previously inserted node instead of root node. Caller changed.
6555
6556 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6557
6558 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
6559
6560 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6561
6562 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
6563 __dereg_frame_dtor): Add prototype argument.
6564
6565 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
6566
6567 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
6568
6569 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
6570
6571 * gthr-vxworks.h (__gthread_once): Likewise.
6572
6573 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
6574
6575 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
6576
6577 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
6578 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
6579 stack pointer in functions w/o saved registers, output LEAVE more often
6580 on TARGET_USE_LEAVE machines.
6581
6582 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
6583
6584 * config/arm/arm.c (arm_init_cumulative_args); New function:
6585 Initlaise the CUMULATIE_ARGS strcuture for a function
6586 defintion.
6587 (arm_function_arg): New function: Determine where to place a
6588 function's argument. Also handles deciding the function's
6589 call cookie.
6590 (current_file_function_operand): New function: Return true if
6591 the symbol is a function which has already been compiled.
6592 (arm_is_long_call_p): New function: Return true if the
6593 indicated function should be called via a long call.
6594 (arm_valid_type_attribute_p): New function: Return true if the
6595 attribute is a valid, arm specific, attribute.
6596 (arm_comp_type_attribute): New function: Return true if the
6597 two types have compatable, arm specific, attributes.
6598
6599 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
6600 structure.
6601 (FUNCTION_ARG): Redefine to call arm_function_arg.
6602 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
6603 structure field.
6604 (INIT_CUMULATIVE_ARGS): Redefine to call
6605 arm_init_cumulative_args.
6606 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
6607 field.
6608 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
6609 field.
6610 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
6611 functions.
6612 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
6613 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
6614 (COMP_TYPE_ATTRIBUTES): Define.
6615
6616 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
6617 if a long call is needed.
6618 (call_value): Call arm_is_long_call_p to decide if a long call
6619 is needed.
6620 (call_symbol): Call arm_is_long_call_p to decide if a long call
6621 is needed.
6622
6623 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
6624
6625 2000-02-11 Denis Chertykov <denisc@overta.ru>
6626
6627 * README.AVR: New file with information about the avr ports.
6628 * config/avr: New directory with avr port files.
6629
6630 2000-02-11 Andreas Jaeger <aj@suse.de>
6631
6632 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
6633
6634 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
6635
6636 * cpphash.c: Fix formatting, update commentary.
6637 (dump_definition): Take three separate arguments instead of a
6638 MACRODEF structure argument.
6639 * cpphash.h: Update prototype of dump_definition.
6640 * cppinit.c (cpp_finish): Update call of dump_definition.
6641
6642 * cpplib.c (do_define): Always create new hash entry with
6643 T_MACRO type. Remove redundant check for redefinition of
6644 poisoned identifier. Update call of dump_definition.
6645 (do_undef): Don't call check_macro_name. Rename sym_length to
6646 len.
6647 (do_error, do_warning): Don't use copy_rest_of_line or
6648 SKIP_WHITE_SPACE.
6649 (do_warning): Don't use pedwarn for the actual warning,
6650 only the notice about its not being in the standard. (Fixes
6651 bug with #warning in system headers.)
6652 (do_ident): Stricter argument checking - accept only a single
6653 string after #ident. Also, macro-expand the line.
6654 (do_xifdef): Use cpp_defined. De-obfuscate.
6655
6656 (do_pragma): Split out specific pragma handling to separate
6657 functions. Use get_directive_token. Update commentary. Do
6658 not pass on #pragma once or #pragma poison to the front end.
6659 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
6660 do_pragma_default): New.
6661
6662 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
6663
6664 * jump.c (jump_optimize_1): The first operand in a relational
6665 can be a CONST_INT.
6666 * optabs.c (emit_conditional_move): Handle relationals which
6667 have a known true/false result.
6668
6669 2000-02-11 Geoff Keating <geoffk@cygnus.com>
6670
6671 * function.c (thread_prologue_and_epilogue_insns): Don't insert
6672 a RETURN insn into a block which already ends with a jump.
6673
6674 2000-02-11 Geoff Keating <geoffk@cygnus.com>
6675
6676 * haifa-sched.c (BUF_LEN): Increase a lot.
6677
6678 2000-02-11 Nick Clifton <nickc@cygnus.com>
6679
6680 * configure.in: Add tm_p_file specification for thumb targets.
6681 * configure: Regenerate.
6682
6683 * config/arm/thumb-protos.h: New file: Prototypes for exported
6684 functions defined in thumb.c.
6685
6686 2000-02-11 Robert Lipe <robertl@sco.com>
6687
6688 * Makefile.in (bootstrap-lean): Remove additional files.
6689 (bootstrap2-lean): Likewise.
6690 (VOL_FILES): List of files for above.
6691
6692 2000-02-11 Nathan Sidwell <nathan@acm.org>
6693
6694 * cpphash.c (special_symbol): Remove spurious argument to
6695 cpp_lookup.
6696
6697 2000-02-11 Joel Sherrill (joel@OARcorp.com>
6698
6699 * configure.in: (i*86-*-rtems*): Swapped elf and coff
6700 stanzas.
6701 * configure: Rebuilt.
6702
6703 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
6704
6705 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
6706
6707 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
6708
6709 * pa.c, pa.h: Remove trigraph sequences within comments.
6710
6711 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
6712
6713 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
6714
6715 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
6716
6717 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
6718
6719 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6720
6721 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
6722
6723 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6724
6725 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
6726 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
6727 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
6728 (ASM_FILE_END): Use c4x_file_end.
6729 * config/c4x/c4x.c (c4x_global_label): New function.
6730 (c4x_external_ref, c4x_file_end): Likewise.
6731
6732 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
6733 (c4x_external_ref, c4x_end_file): Likewise.
6734
6735 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
6736
6737 * cppexp.c: Don't include cpphash.h.
6738 (parse_charconst, cpp_lex): Use cpp_defined.
6739 (cpp_lex): Use get_directive_token throughout. Remove
6740 unnecessary cases from switch. Move assertion-handling code
6741 down to OTHER case.
6742 (cpp_parse_expr): If we see '+' or '-', check the context to
6743 determine if they are unary or binary operators. Streamline
6744 the jumps a bit. Do not call skip_rest_of_line.
6745
6746 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
6747 static. Export get_directive_token. Update commentary.
6748 (cpp_defined): New function.
6749 (do_define): Remove reference to T_PCSTRING. Call
6750 free_definition to release memory for old definition, when
6751 redefining a macro.
6752 (eval_if_expression): Set only_seen_white to 0 before calling
6753 cpp_parse_expr. Call skip_rest_of_line after it returns.
6754 (cpp_read_check_assertion): Don't preserve a pointer into the
6755 token buffer across a call to cpp_get_token.
6756
6757 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
6758 * cppfiles.c (redundant_include_p): Use cpp_defined.
6759 * cpphash.c (free_definition): New function.
6760 (delete_macro): Use it. Update commentary.
6761 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
6762 free_definition.
6763 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
6764 from enum node_type. Prototype cpp_defined and get_directive_token.
6765 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
6766
6767 * fix-header.c (check_macro_names): Use cpp_defined.
6768 (read_scan_file): Set inhibit_warnings and inhibit_errors in
6769 the options structure.
6770
6771 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6772
6773 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
6774
6775 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
6776
6777 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
6778 rather than die->die_tag.
6779
6780 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6781
6782 * combine.c (make_extraction, force_to_mode): Avoid warning on
6783 mixed-signedness conditionals.
6784 (make_field_assignment, nonzero_bits): Likewise.
6785 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
6786 (store_split_bit_field, extract_split_bit_field): Likewise.
6787 (extract_fixed_bit_field, store_bit_field,
6788 * expr.c: Change alignment to be unsigned everywhere.
6789 (move_by_pieces, store_constructor_field, store_constructor):
6790 Alignment parm is unsigned.
6791 (emit_block_move, emit_group_load, emit_group_store): Likewise.
6792 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
6793 (do_compare_rtx_and_jump): Likewise.
6794 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
6795 Compare align with GET_MODE_ALIGNMENT.
6796 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
6797 (get_inner_reference): Likewise.
6798 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
6799 (expand_assignment): Local vars for alignment now unsigned.
6800 (store_constructor, store_field, expand_expr, do_jump): Likewise.
6801 (do_compare_and_jump): Likewise.
6802 (store_field): Call new function expr_align.
6803 * expr.h (emit_block_move, emit_group_load, emit_group_store):
6804 Alignment arg now unsigned.
6805 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
6806 (do_compare_rtx_and_jump, store_bit_field): Likewise.
6807 (extract_bit_field): Likewise.
6808 * fold-const.c (add_double): Add cast to eliminate signedness warning.
6809 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
6810 (get_best_mode): Alignment arg is unsigned.
6811 * rtl.h (move_by_pieces): Likewise.
6812 * store-layout.c (maximum_field_alignment, set_alignment):
6813 Now unsigned.
6814 (layout_decl): Alignment arg is now unsigned.
6815 Remove unneeded casts.
6816 (layout_record, layout_union, layout_type): Remove unneeded casts.
6817 Local alignment variables now unsigned.
6818 (get_best_mode): Alignment arg now unsigned.
6819 * tree.c (expr_align): New function.
6820 * tree.h (expr_align): Likewise.
6821 (maximum_field_alignment, set_alignment): Now unsigned.
6822 (get_inner_reference): Alignment argument is now pointer to unsigned.
6823 * varasm.c (assemble_variable): Add cast to eliminate warning.
6824
6825 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
6826
6827 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
6828 then store directly into op0.
6829
6830 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
6831 the CALL_INSN, and emit the note immediately after it.
6832
6833 2000-02-10 Nick Clifton <nickc@cygnus.com>
6834
6835 * config/arm/thumb.md (epilogue): Include a (return) in the
6836 generated insn, and emit it using emit_jump_insn not
6837 emit_insn.
6838
6839 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
6840
6841 * function.c (assign_temp): Change zero-sized arrays to size 1.
6842 * integrate.c (expand_inline_function): Do not update
6843 stack_alignment_needed
6844 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
6845 add some sanity checking, remove optimization for function with
6846 zero frame size.
6847
6848 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6849
6850 * flow.c (mark_regs_live_at_end): Delete unused variables.
6851
6852 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
6853
6854 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
6855 in macro FRAME_GROWS_DOWNWARD.
6856
6857 * stmt.c (expand_end_bindings): Delete unused variable.
6858
6859 * unroll.c (iteration_info): Mark parameter `loop' with
6860 ATTRIBUTE_UNUSED.
6861
6862 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6863
6864 * fixinc/server.c (load_data): Return NULL if the marker line is
6865 not found.
6866 (run_shell): If load_data returns NULL, retry the command once, in
6867 a new shell.
6868
6869 * configure: Rebuilt.
6870
6871 2000-02-09 Bruce Korb <bkorb@gnu.org>
6872
6873 * gcc/fixincludes: ** DELETED **
6874 * gcc/fixcpp: ** DELETED **
6875 * gcc/fixinc-nt.sed: ** DELETED **
6876 * gcc/just-fixinc: ** DELETED **
6877 * gcc/Makefile.in: Removed out-dated commentary
6878 * gcc/configure.in: Removed fast-fixincludes disablement.
6879 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
6880
6881 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
6882 * function.c (thread_prologue_and_epilogue_insns): Uncomment
6883 last change.
6884
6885 2000-02-09 Richard Henderson <rth@cygnus.com>
6886
6887 * jump.c (delete_insn): Don't delete user labels at -O0.
6888
6889 2000-02-09 Robert Lipe <robertl@sco.com>
6890
6891 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
6892 Don't link with HOST_LIBS.
6893
6894 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
6895
6896 * configure.in: Correct --help text for --with-dwarf2.
6897 Put tm-dwarf2.h after other tm files, if it's requested.
6898 * configure: Regenerate.
6899 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
6900 defining it.
6901
6902 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
6903
6904 * cpplib.h: Provide HASHNODE typedef and forward decl of
6905 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
6906 DEFINITION, struct hashnode, struct macrodef, struct
6907 definition, scan_decls prototype, default defn of
6908 INCLUDE_LEN_FUDGE moved elsewhere.
6909
6910 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
6911 definition, and struct hashnode moved here. Remove the unused
6912 'predefined' field from struct definition. Replace the 'args'
6913 union with its sole member. All users updated (cpphash.c).
6914 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
6915 multiple include guard.
6916
6917 * cpphash.c (hashf): Make static; use better algorithm; drop
6918 HASHSIZE parameter; return an unsigned int.
6919 (cpp_lookup): Drop HASH parameter. PFILE parameter is
6920 used. Calculate HASHSIZE modulus here.
6921 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
6922 here.
6923 (create_definition): Drop PREDEFINITION parameter.
6924 * cpplib.c (do_define): Don't calculate a hash value here.
6925 Don't pass (keyword == NULL) to create_definition.
6926
6927 * scan.h: Prototype scan_decls here.
6928 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
6929 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
6930 callers of cpp_lookup and cpp_install updated.
6931
6932 * cpphash.c (macarg): Hoist all the flag diddling out of the
6933 function...
6934 (macroexpand): ... and out of the loop that calls macarg.
6935 Skip over the initial paren before macro arguments with
6936 cpp_get_non_space_token; point may be some distance before
6937 that paren. Abort if it's not there.
6938
6939 * cpplib.c (parse_clear_mark): Delete function.
6940 (parse_set_mark, parse_goto_mark): Make static.
6941 (ACTIVE_MARK_P): New macro.
6942 (skip_block_comment, skip_line_comment): Do not bump the line
6943 if ACTIVE_MARK_P is true.
6944 (cpp_pop_buffer): The buffer to be popped may not have an
6945 active mark.
6946 (cpp_get_token): When looking for the initial paren before
6947 macro arguments, only set a mark in a file buffer, Always
6948 return to that mark before proceeding to call macroexpand or
6949 return a NAME token.
6950
6951 * cpplib.h: Remove prototypes of parse_set_mark,
6952 parse_clear_mark, parse_goto_mark.
6953 (struct cpp_options): Rename 'put_out_comments' to
6954 'discard_comments' and invert its sense.
6955 * cppinit.c, cpphash.c, cpplib.c: All users of
6956 put_out_comments changed to use discard_comments, with
6957 opposite sense.
6958
6959 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
6960
6961 * function.c (thread_prologue_and_epilogue_insns): Don't delete
6962 the edge from a block that both jumps and falls through to the
6963 fallthru block.
6964
6965 2000-02-09 Scott Bambrough <scottb@netwinder.org>
6966
6967 * config/arm/arm.md (movsi): In PIC mode, make sure that a
6968 constant source address is legitimate.
6969
6970 2000-02-09 Philip Blundell <pb@futuretv.com>
6971
6972 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
6973 correctly.
6974
6975 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
6976 generating PIC.
6977 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
6978
6979 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
6980
6981 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
6982 ends with a newline and a NUL. Don't be so clever manipulating
6983 strings.
6984
6985 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
6986
6987 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
6988 not to BIGGEST_ALIGNMENT.
6989
6990 2000-02-08 Geoff Keating <geoffk@cygnus.com>
6991
6992 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
6993 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
6994 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
6995 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
6996 * frame.c (execute_cfa_insn): Handle
6997 DW_CFA_GNU_negative_offset_extended.
6998
6999 2000-02-08 Richard Henderson <rth@cygnus.com>
7000
7001 * flow.c (tidy_fallthru_edges): Split out from ...
7002 (delete_unreachable_blocks): ... here.
7003 (find_basic_blocks): Use it.
7004
7005 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7006
7007 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
7008
7009 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
7010
7011 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
7012 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
7013 (fix-header.o): Don't depend on cpphash.h.
7014
7015 * scan.c (hashstr): New function.
7016 * scan.h: Prototype it.
7017 * fix-header.c: Don't include cpphash.h. Use hashstr.
7018 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
7019 hashstr. Report hash table statistics. Add private
7020 definition of xrealloc.
7021
7022 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7023
7024 * i386.h (TARGET_SWITCHES): Fix typo in option name.
7025
7026 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
7027
7028 * function.c (thread_prologue_and_epilogue_insns): Don't replace
7029 jumps with returns unless they are jumps to the fallthru block.
7030
7031 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
7032
7033 * i386.md (addqi3_cc): Fix contraints.
7034
7035 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
7036
7037 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
7038
7039 2000-02-07 Mark Mitchell <mark@codesourcery.com>
7040
7041 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
7042 carriage return after a macro name.
7043
7044 2000-02-07 Fred Fish <fnf@be.com>
7045
7046 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
7047 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
7048
7049 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
7050
7051 * cppfiles.c (deps_output): Count spacers in deps_column.
7052
7053 2000-02-07 Neil Booth <NeilB@earthling.net>
7054
7055 * cppinit.c (initialize_dependency_output): If there is no
7056 suffix, don't try to look for known suffixes. Use strrchr.
7057 (cpp_start_read): Remove duplicate initialization.
7058
7059 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
7060
7061 * calls.c (compute_argument_block_size): New argument
7062 preferred_stack_boundary.
7063 (expand_call): update cfun->preferred_stack_boundary, update call of
7064 compute_argument_block_size
7065 (emit_library_call): Increate cfun->preferred_stack_boundary
7066 to PREFERRED_STACK_BOUNDARY
7067 (emit_library_call_value): Likewise.
7068 * explow.c (allocate_dynamic_stack_spave): Likewise.
7069 * function.c (prepare_function_start): Set
7070 cfun->preferred_stack_boundary
7071 * function.h (struct function): Add preferred_stack_boundary field.
7072 * integrate.c (expand_inline_function): Update
7073 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
7074 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
7075 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
7076
7077 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
7078
7079 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
7080 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
7081 cpp_pedwarn, cpp_pedwarn_with_line,
7082 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
7083 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
7084 v_cpp_error_with_line, v_cpp_warning_with_line,
7085 cpp_message_from_errno, cpp_perror_with_name): Delete.
7086
7087 * cpperror.c (cpp_print_containing_files): Take starting
7088 buffer as argument.
7089 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
7090 (v_cpp_message): Now called directly by all entry points.
7091 Remove -1 case.
7092 (cpp_pfatal_with_name, cpp_message): Delete.
7093 (cpp_notice_from_errno, cpp_ice): New functions.
7094 (cpp_notice): Is now for reporting error conditions, just
7095 without an associated file.
7096 (cpp_error, cpp_error_with_line): Don't do anything if
7097 opts->inhibit_errors is on.
7098 (cpp_pedwarn_with_file_and_line): Take column argument also.
7099
7100 * cpplib.h: Update prototypes of exported functions.
7101 (struct cpp_options): Add inhibit_errors.
7102
7103 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
7104 non-error messages. Include intl.h.
7105
7106 * cppinit.c, cppmain.c: Likewise. Also, use
7107 cpp_notice_from_errno instead of cpp_perror_with_name or
7108 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
7109
7110 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
7111 report internal errors.
7112
7113 * cpplib.c (do_define): Switch bcopy to memcpy.
7114 Give cpp_pedwarn_with_file_and_line a dummy column argument.
7115
7116 * cpplib.c (copy_rest_of_line): Revert previous change: don't
7117 bail out early if we hit a line comment.
7118
7119 2000-02-06 Richard Henderson <rth@cygnus.com>
7120
7121 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
7122 * basic-block.h: Declare them.
7123 * emit-rtl.h (active_insn_p): New.
7124 (next_active_insn, prev_active_insn): Use it.
7125 * rtl.h: Declare it.
7126 * function.c (emit_return_into_block): New.
7127 (thread_prologue_and_epilogue_insns): Insert return insns instead
7128 of epilogues when possible.
7129 * jump.c (jump_optimize_1): Remove code to insert a return insn
7130 on the fallthru to the exit block.
7131
7132 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
7133 and for non-empty stack frames.
7134 * i386.md (return): Expand to return-pop as needed.
7135
7136 2000-02-06 Richard Henderson <rth@cygnus.com>
7137
7138 * simplify-rtx.c (simplify_relational_operation): Canonicalize
7139 constant to op1 for testing.
7140
7141 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7142
7143 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
7144 (fixuns_truncqfqi2): Use it.
7145
7146 2000-02-06 Richard Henderson <rth@cygnus.com>
7147
7148 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
7149 as a TYPE_LEA insn.
7150
7151 * i386.md (widening and peepholes): Mask the constant instead of
7152 using gen_lowpart.
7153
7154 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
7155
7156 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
7157 input pointer before possibly branching off to the backslash
7158 code.
7159 * cpphash.c (macroexpand): Correctly delete \r escapes when
7160 stringifying parameters.
7161 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
7162 if we can; bail out early if we hit a line comment.
7163 (handle_directive): Treat '# 123' in an .S file just like
7164 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
7165 Return 1 for '# not_a_directive'.
7166 (get_directive_token): Pop macro buffers here, so that
7167 cpp_get_token can't sneakily move past a newline.
7168 Add sanity checks.
7169 (cpp_get_token): goto randomchar if handle_directive returns 0.
7170
7171 * cppalloc.c: Update copyright.
7172 * cpplib.c: Merge all the static function prototypes into one
7173 block.
7174 * cpplib.h: Remove #if 0 block.
7175
7176 * cpperror.c: Remove #ifdef EMACS block.
7177 * cppmain.c: Likewise.
7178 * cpphash.c: Remove #if 0 blocks.
7179 * cppinit.c: Remove #if 0 blocks, and the -lint option.
7180 * cpplib.c: Remove #if 0 blocks and code referencing
7181 pcp_inside_if or for_lint. Remove duplicate error message.
7182 Fix error messages for #else after #else or #elif. Reformat.
7183 Remove archaic TODO list.
7184 * cpplib.h: Remove pcp_inside_if and for_lint flags.
7185
7186 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
7187
7188 * i386/osf1elf.h: Add missing backslash to multiline string.
7189
7190 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7191
7192 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
7193
7194 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7195
7196 * Makefile.in (c-common.o): Depend on $(EXPR_H).
7197
7198 * c-common.c: Include expr.h.
7199
7200 * c-pragma.c (mark_align_stack): Add prototype.
7201
7202 * caller-save.c (add_stored_regs): Likewise.
7203
7204 * combine.c (record_promoted_value): Likewise.
7205
7206 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
7207 Likewise.
7208
7209 * cppinit.c (new_pending_define): Likewise.
7210
7211 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
7212
7213 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
7214 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
7215 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
7216 class_scope_p): Likewise.
7217
7218 * dwarf2out.h (dwarf2out_set_demangle_name_func,
7219 dwarf2out_add_library_unit_info): Likewise.
7220
7221 * ggc.h (ggc_page_print_statistics): Likewise.
7222
7223 * haifa-sched.c (propagate_deps): Likewise.
7224
7225 * reg-stack.c (next_flags_user, record_label_references): Likewise.
7226
7227 * rtl.h (set_stack_check_libfunc): Likewise.
7228
7229 * toplev.h (set_fatal_function): Likewise.
7230
7231 * toplev.c (set_fatal_function): Delete prototype.
7232
7233 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
7234
7235 2000-02-05 Geoff Keating <geoffk@cygnus.com>
7236
7237 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
7238 (FUNC_END): Likewise.
7239
7240 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7241
7242 * caller-save.c: Include tm_p.h.
7243
7244 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7245
7246 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
7247
7248 2000-02-04 Neil Booth <NeilB@earthling.net>
7249
7250 * cccp.c (main): Check 'dir' for a NULL pointer before passing
7251 it to strcmp.
7252
7253 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
7254
7255 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
7256 * genflags.c: Use the max_operand_1 logic from genemit.c to
7257 calculate how many arguments gen_insn prototypes have. Remove
7258 NO_MD_PROTOTYPES ifdefs from the generated file.
7259 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
7260 file. Cast gen_insn initializers to insn_gen_fn.
7261 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
7262 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
7263
7264 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7265
7266 * fixinc/Makefile.in (HDR): Add machname.h.
7267 (clean): Likewise.
7268
7269 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7270
7271 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
7272 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
7273 (c4x_cpu_version): Ditto.
7274 * config/c4x/c4x-protos.h: ... here.
7275
7276 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
7277
7278 * dwarf2out.c (add_abstract_origin_attribute): Don't call
7279 gen_abstract_function on our context if we're a nested function.
7280
7281 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7282
7283 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
7284 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
7285
7286 2000-02-04 Bruce Korb <bkorb@gnu.org>
7287
7288 * fixinc/genfixes(machname.h):
7289 Move the functionality from gen-machine.h into this file.
7290 UNdef MN_NAME_PAT if there are no names to change.
7291 Also, be a little kinder when AutoGen is not present.
7292
7293 * fixinc/Makefile.in(machname.h):
7294 Change the generation rule to use genfixes.
7295
7296 * fixinc/fixfixes.c(machine_name):
7297 machine_name_fix's functionality now dependent upon whether
7298 MN_NAME_PAT is defined.
7299
7300 * fixinc/fixtests.c(machine_name):
7301 ditto.
7302
7303 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
7304 of MN_NAME_PAT.
7305
7306 * fixinc/fixlib.h(mn_get_regexps):
7307 ditto
7308
7309 * fixinc/gen-machine.h: DELETED
7310
7311 2000-02-04 Jan Hubicka <jh@suse.cz>
7312 Richard Henderson <rth@cygnus.com>
7313
7314 * i386.c (SAVE_REGS_FIRST): Remove.
7315 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
7316 (ix86_compute_frame_size): Likewise.
7317 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
7318 (ix86_emit_restore_regs): Remove.
7319 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
7320 when a frame pointer is in use.
7321 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
7322 instead of pop to restore a register when profitable; emit leave
7323 when profitable.
7324 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
7325 as a TYPE_LEA insn.
7326 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
7327 * i386.md (prologue_allocate_stack): Remove.
7328 (epilogue_deallocate_stack): Remove.
7329 (pro_epilogue_adjust_stack): New.
7330
7331 2000-02-04 Richard Henderson <rth@cygnus.com>
7332
7333 * function.c (diddle_return_value): Rework to use a callback function.
7334 Use current_function_return_rtx if it's been set up.
7335 (do_clobber_return_reg, clobber_return_register): New.
7336 (do_use_return_reg, use_return_register): New.
7337 (expand_function_end): Use them.
7338 * stmt.c (expand_null_return): Likewise.
7339 * function.h: Declare them.
7340 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
7341 (mark_reg): Change arguments as appropriate for callback.
7342 * integrate.c (expand_inline_function): Revert 19 Jan change.
7343
7344 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
7345
7346 * tm.texi (Values in Registers): Fix typo: "fo" "for".
7347 (Misc): Say the scheduler, not the Haifa scheduler.
7348
7349 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
7350
7351 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
7352 when in_mem is set. Update all callers.
7353
7354 2000-02-04 Richard Henderson <rth@cygnus.com>
7355
7356 * i386/openbsd.h (INT_ASM_OP): Define.
7357
7358 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
7359
7360 * tm.texi: Fix various typos.
7361
7362 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
7363
7364 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
7365 (MD_STARTFILE_PREFIX_1): New macro.
7366
7367 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
7368
7369 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
7370 destination when needed.
7371 (strmovsi, strsetsi): New expander.
7372 (strmovsi_1, strsetsi_1): New pattern.
7373 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
7374 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
7375 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
7376 * invoke.texi (align-stringops, inline-all-stringops): Document.
7377
7378 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
7379
7380 * i386/netbsd.h (INT_ASM_OP): Define.
7381
7382 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
7383
7384 * cpplib.h (cpp_reader): Add new flag, no_directives.
7385 * cpphash.c (macarg): Set it.
7386 * cpplib.c (handle_directive): If no_directives is on and we
7387 find a directive, issue an error and discard the line.
7388
7389 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
7390
7391 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
7392 FP constants. Add ! TARGET_FPU check for FP constants.
7393
7394 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
7395
7396 * flow.c (find_basic_blocks): Don't kill label_value_list
7397 here.
7398 (cleanup_cfg): Kill it here.
7399
7400 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7401
7402 * expr.c (store_field): Ensure ALIGN is no stricter than the
7403 alignment of EXP.
7404
7405 2000-02-02 Richard Henderson <rth@cygnus.com>
7406
7407 * jump.c (delete_insn): Partially revert 19 Jan change;
7408 don't convert unused code labels to notes at -O0.
7409
7410 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7411
7412 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
7413 split_all_insns to recreate REG_LABEL notes for flow2 pass.
7414
7415 2000-02-01 Richard Henderson <rth@cygnus.com>
7416
7417 * i386.c (general_no_elim_operand): New.
7418 (nonmemory_no_elim_operand): New.
7419 (ix86_expand_move): Copy eliminable operands before a push.
7420 * i386-protos.h: Declare new functions.
7421 * i386.h (CAN_ELIMINATE): Simplify.
7422 (PREDICATE_CODES): Update.
7423 * i386.md (push insns): Don't allow eliminable register operands.
7424
7425 2000-02-01 Richard Henderson <rth@cygnus.com>
7426
7427 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
7428 replace BLKmode with DECL_RTL's mode.
7429
7430 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
7431
7432 * frame.c (find_fde): Convert for loop to do-while so compiler
7433 sees it's always executed at least once.
7434 * libgcc2.c (BBINBUFSIZE): Kill.
7435 (__bb_init_prg): Use fgets.
7436 (__bb_exit_trace_func): Don't paste strings.
7437 * unroll.c (unroll_loop): Initialize unroll_type, not
7438 unroll_number, and tweak logic to match.
7439
7440 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
7441 all failure paths.
7442 (ix86_flags_dependant): Likewise. Disentangle control flow.
7443 (ix86_sched_reorder): Break guts out to
7444 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
7445 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
7446 any possible use.
7447
7448 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
7449 use string concatenation. Don't save and restore esi.
7450
7451 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
7452 (machname.h): Remove script to separate file. Use two-step
7453 sequence so target is not created if script fails.
7454 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
7455 identifiers are defined.
7456 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
7457 an empty string, machine_name doesn't need to do anything at
7458 all.
7459 (is_cxx_header): Add more cases to regexp.
7460 * fixinc/fixlib.h: Update prototype.
7461 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
7462 mn_get_regexps.
7463 * fixinc/fixincl.c: Define NO_BOGOSITY.
7464
7465 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
7466 (hp_sysfile): Add missing comma.
7467 (math_exception): Put the wrapper ifdefs at the beginning and
7468 the end of the file.
7469 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
7470
7471 2000-02-01 Richard Henderson <rth@cygnus.com>
7472
7473 * sparc.c (fp_zero_operand): Turn into a normal predicate.
7474 Use CONST0_RTX. Update all callers.
7475 * sparc.h, sparc-protos.h: Update accordingly.
7476 * sparc.md (fp mov insns): Use fp_zero_operand directly
7477 where applicable.
7478
7479 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
7480
7481 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
7482 example.
7483
7484 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7485
7486 * Makefile.in (specs.ready): New target.
7487 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
7488
7489 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7490
7491 * fixinc.irix: Use unique filenames for writing into /tmp,
7492 * fixinc.ptx: Likewise.
7493 * fixinc.sco: Likewise.
7494 * fixinc.svr4: Likewise.
7495 * fixinc.winnt: Likewise.
7496
7497 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7498
7499 * tsystem.h: New file.
7500
7501 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
7502 s-crtS): Depend on tsystem.h.
7503
7504 * crtstuff.c: Include tsystem.h.
7505 * frame.c: Likewise.
7506 * libgcc2.c: Likewise.
7507
7508 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
7509
7510 * builtins.c (expand_builtin_memset): Expand for variable sized
7511 lengths too.
7512
7513 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
7514
7515 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
7516 on ABI.
7517
7518 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
7519
7520 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
7521
7522 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
7523
7524 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
7525
7526 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
7527 case 3->2 combining (combining with splitting) in which 2 is CC0
7528 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
7529 checked at the begining of the function with the aid of calling
7530 function 'can_combine_p'.
7531
7532 2000-01-31 Dave Brolley <brolley@redhat.com>
7533
7534 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
7535
7536 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
7537
7538 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
7539 new label.
7540
7541 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7542
7543 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
7544
7545 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
7546 PROTO -> PARAMS.
7547
7548 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
7549
7550 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
7551 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
7552 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
7553 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
7554 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
7555 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
7556 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
7557 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
7558 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
7559 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
7560
7561 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
7562 Add %(cpp_cpu) to CPP_SPEC.
7563
7564 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
7565 Add %(cc1_cpu) to CC1_SPEC.
7566
7567 2000-01-28 Ulrich Drepper <drepper@redhat.com>
7568
7569 * c-decl.c (c_decode_option): Accept optional numeric argument to
7570 -Wformat and set warn_format.
7571 * c-common.c: Don't emit warning about non-constant printf format
7572 string unless warn_format > 1.
7573
7574 2000-01-30 Richard Henderson <rth@cygnus.com>
7575
7576 * alpha.md (return_internal): Allow after reload only.
7577
7578 2000-01-30 Richard Henderson <rth@cygnus.com>
7579
7580 * i386.c (ix86_compute_frame_size): Omit padding1 if the
7581 local frame size is zero.
7582
7583 2000-01-30 Richard Henderson <rth@cygnus.com>
7584
7585 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
7586 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
7587 * alpha.md (return): Turn into an expander.
7588 (return_internal): Don't use $26.
7589 (epilogue): Emit the return insn.
7590
7591 2000-01-30 Richard Henderson <rth@cygnus.com>
7592
7593 * alpha.md (negtf2, abstf2): Fix word order thinko.
7594 (extendsftf2): New.
7595 (trunctfsf2): Avoid intermediate rounding errors.
7596
7597 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
7598
7599 * cppfiles.c (find_position): Drop 'colp' argument, return the
7600 new line base.
7601 (read_and_prescan): Adjust to match. Don't ever manipulate
7602 line or line_base except via find_position.
7603
7604 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
7605
7606 * c-parse.in: Apply Ulrich's changes from c-parse.y.
7607 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
7608 Regenerate.
7609
7610 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
7611
7612 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
7613 just print "<command line>". If 'filename' is null or an
7614 empty string, print "<stdin>" for the filename.
7615 * cpplib.c (do_define): Don't print the 'location of the
7616 previous definition' message if we're still parsing the
7617 command line.
7618 (cpp_pedwarn_with_file_and_line): Always call
7619 cpp_file_line_for_message.
7620
7621 2000-01-29 Mark Mitchell <mark@codesourcery.com>
7622
7623 * flow.c (mark_regs_live_at_end): Fix typo.
7624
7625 2000-01-28 Ulrich Drepper <drepper@redhat.com>
7626
7627 * c-common.c: Adjust variable names, comments, help strings to c99.
7628 * c-lex.c: Likewise.
7629 * c-parse.y: Likewise.
7630 * c-tree.h: Likewise.
7631 * cccp.c: Likewise.
7632 * cpplib.h: Likewise.
7633 * c-decl.c: Likewise. Recognize options with names "*99" as well.
7634 * cppinit.c: Likewise.
7635
7636 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7637
7638 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
7639 * c4x.c: Define the optab rtx values.
7640 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
7641 (c4x_emit_libcall): Use new optab rtx values.
7642 (c4x_emit_libcall3): Likewise.
7643 (c4x_emit_libcall_mulhi): Likewise.
7644 * c4x-protos.h: Add prototypes for optab rtx values and change
7645 prototypes for above c4x_emit_libcall functions.
7646
7647 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7648
7649 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
7650 syntax is used.
7651 (c4x_function_prologue): Use regnames intead of float_reg_names when
7652 TI syntax is used.
7653 (c4x_function_epilogue): Likewise.
7654 (c4x_print_operand): Likewise.
7655 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
7656 * c4x.md (set_high): Disable for TARGET_TI.
7657
7658 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7659
7660 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
7661 of framepointer + constant to ADDR_REGS class.
7662 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
7663 * c4x.c (std_or_reg_operand): New function.
7664 * c4x-protos.h (std_or_reg_operand): Prototype it.
7665
7666 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7667
7668 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
7669 object names as libgcc2.c.
7670 * libgcc.S: Use newly defined names.
7671
7672 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
7673 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
7674 function.
7675 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
7676 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
7677 (FLOW_LOOP_LAST_BLOCK): Likewise.
7678
7679 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7680
7681 * basic-block.h (struct loop): New fields 'first' and 'last'.
7682 * flow.c (flow_loops_find): Compute loop->first and loop->last.
7683 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
7684 and loop->last to check for NOTE_INSN_LOOP_END.
7685
7686 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
7687
7688 * predict.c (estimate_probability): Use the new FIRST and LAST fields
7689 of the loop descriptor rather than HEADER and LATCH. Also added
7690 missing break statements as well making some coding style modifications
7691 as suggested by Michael Hayes.
7692
7693 2000-01-28 Richard Henderson <rth@cygnus.com>
7694
7695 * flow.c (find_basic_blocks): Remove do_cleanup argument.
7696 Break out that code ...
7697 (cleanup_cfg): ... here.
7698 (commit_one_edge_insertion): Detect a return instruction being
7699 emitted to an edge. Emit a barrier following; clear fallthru.
7700 (commit_edge_insertions): Verify CFG consistency.
7701 * function.c (expand_function_start): Kill unused variable.
7702 (expand_function_end): Likewise.
7703 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
7704 to insert the epilogue.
7705
7706 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
7707 (delete_null_pointer_checks): Likewise.
7708 * output.h: Likewise.
7709 * reg-stack.c (reg_to_stack): Likewise.
7710 * toplev.c (rest_of_compilation): Likewise. Run
7711 thread_prologue_and_epilogue_insns after rebuilding the CFG.
7712
7713 2000-01-28 Richard Henderson <rth@cygnus.com>
7714
7715 * Makefile.in (flow.o): Revert 24 Jan change.
7716 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
7717 FUNCTION_VALUE result to DECL_RESULT's mode.
7718
7719 * haifa-sched.c (schedule_insns): Don't recompute reg info
7720 after reload.
7721
7722 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
7723
7724 * configure.in: Make --enable-cpplib the default.
7725 * configure: Regenerate.
7726 * gcc.dg/990119-1.c: No longer expected to fail.
7727
7728 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
7729
7730 * jump.c (jump_optimize_1): Delete an optimization that is also done
7731 by merge_blocks in flow.
7732
7733 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7734
7735 * diagnostic.c (build_message_string, output_printf,
7736 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
7737 (build_location_prefix): Fix non-literal format string.
7738
7739 2000-01-27 Richard Henderson <rth@cygnus.com>
7740
7741 * alpha.md (trunctfsf2): New.
7742
7743 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
7744
7745 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
7746
7747 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
7748
7749 * cppinit.c (cpp_handle_option): Recognize C++ comments under
7750 -std=gnu89.
7751 * cpplib.c (skip_block_comment, skip_line_comment): Split code
7752 out of...
7753 (skip_comment) ... here. Permit C++ comments in system
7754 headers always. Warn about C++ comments in user code under
7755 -std=gnu89 -pedantic.
7756 (copy_comment): Use skip_comment.
7757 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
7758 return EOF.
7759 (consider_directive_while_skipping, do_else, do_endif): Call
7760 validate_else unconditionally.
7761 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
7762 text after the conditional in a system header.
7763 * cpplib.h (struct cpp_buffer): Add flag
7764 warned_cplusplus_comments.
7765
7766 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
7767
7768 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
7769 Use unshare_all_rtl_1.
7770 (unshare_all_rtl_again): New function.
7771 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
7772
7773 * function.c (purge_addressof_1): Use unshare_all_rtl_again
7774 rather than resetting the 'used' flags ourself.
7775
7776 * toplev.c (rest_of_compilation): Add current_function_decl
7777 to the unshare_all_rtl call.
7778 * tree.h: Prototype unshare_all_rtl.
7779 * rtl.h: Prototype unshare_all_rtl_again here.
7780
7781 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
7782
7783 * genoutput.c (output_prologue): Include ggc.h in generated
7784 files.
7785 * Makefile.in (insn-output.o): Depends on ggc.h.
7786
7787 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
7788 Hans-Peter Nilsson <hp@bitrange.com>
7789
7790 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
7791 Remove redundant include of xm-ns32k.h.
7792 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
7793 Remove redundant include of xm-ns32k.h.
7794 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
7795 Remove redundant include of xm-ns32k.h.
7796 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
7797
7798 * ns32k/ns32k.h: Update comment on multiply-add instructions.
7799 (TARGET_SWITCHES): Add documentation strings.
7800 (DWARF_FRAME_REGNUM): Override default definition.
7801 (REG_CLASS_CONTENTS): Add comments.
7802 (SUBSET_P): Format to reduce line length.
7803 (SMALL_REGISTER_CLASSES): Make a run time option.
7804 (GO_IF_NONINDEXED_ADDRESS): Reformat.
7805 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
7806 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
7807 (regclass_map): fix typo in comment.
7808 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
7809 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
7810 (trace, reg_or_mem_operand): Delete, unused function.
7811 (calc_address_cost): Small offsets are cheaper than large ones.
7812 (expand_block_move): Generate more efficient code when bytes is a
7813 known at compile time.
7814 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
7815 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
7816 instead of reg_or_mem_operand.
7817
7818 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
7819 not general_operand. Similarly use "=rm" or stricter, not "=g".
7820 For input operands, use stricter constraints than "g" if not
7821 general_operand. Similarly use stricter predicate than
7822 "general_operand" when stricter constraints than "g" are present,
7823 except for matching constraints.
7824 (movstrsi): Use "memory_operand" for operands 0 and 1.
7825 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
7826 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
7827 not reg_or_mem_operand.
7828 (udivmoddisi4): Ditto.
7829 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
7830 Use nonimmediate_operand for operand 3, not register_operand.
7831 (udivmoddiqi4_internal): Use register_operand for operand 1, not
7832 reg_or_mem_operand.
7833
7834 2000-01-27 Fred Fish <fnf@be.com>
7835
7836 * gthr-posix.h: Fix typo; compatibily -> compatibility.
7837 * gthr-single.h: Likewise.
7838 * gthr-solaris.h: Likewise.
7839 * gthr-vxworks.h: Likewise.
7840 * gthr-win32.h: Likewise.
7841 * gthr.h: Likewise.
7842
7843 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
7844
7845 * cppinit.c: Add " (cpplib)" to end of string printed by
7846 -v / --version.
7847
7848 2000-01-27 Richard Henderson <rth@cygnus.com>
7849
7850 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
7851 testing for a signed comparison.
7852 (alpha_emit_floatuns): New.
7853 * alpha-protos.h: Declare it.
7854 * alpha.md (floatunsdisf2, floatunsdidf2): New.
7855 (extendsfdf2): Tidy.
7856
7857 2000-01-27 Jakub Jelinek <jakub@redhat.com>
7858
7859 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
7860 no -g option specifying debugging format, default to -gstabs+.
7861
7862 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
7863
7864 * calls.c (special_function_p): New argument fork_or_exec.
7865 (expand_call): When profile_arc_flag is set and the function
7866 is in the fork_or_exec group, call __bb_fork_func first.
7867 * libgcc2.c, _bb module (__bb_fork_func): New function.
7868 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
7869 output file.
7870 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
7871 * tree.h (special_function_p): Update prototype.
7872
7873 2000-01-26 Richard Henderson <rth@cygnus.com>
7874
7875 * alpha.c (alpha_split_tfmode_pair): New.
7876 * alpha-protos.h: Declare it.
7877 * alpha.md (abstf2, negtf2): New.
7878 (movtf insn): Add input G constraint.
7879 (movtf splitter): Use alpha_split_tfmode_pair.
7880
7881 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7882
7883 * i386/cygwin.h: PROTO -> PARAMS.
7884
7885 2000-01-26 Jakub Jelinek <jakub@redhat.com>
7886
7887 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
7888 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
7889 using _Qp_cmp/_Q_cmp and testing the return value.
7890 (print_operand): Call reverse_condition_maybe_unordered if
7891 we are handling CCFPmode or CCFPEmode.
7892 Handle ORDERED, UN* and LTGT comparisons.
7893 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
7894 if not TARGET_HARD_QUAD.
7895 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
7896 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
7897 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
7898 Adjust gen_b* calls so that they reflect return comparison of
7899 sparc_emit_float_lib_cmp.
7900
7901 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7902
7903 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
7904 incoming operands array is large enough for one more operand.
7905 (alpha_emit_xfloating_arith): Likewise.
7906
7907 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
7908
7909 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
7910 file with one line and no trailing newline.
7911 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
7912 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
7913 checking if the match is on the line.
7914 * fixinc/gnu-regex.c: Provide regerror not __regerror.
7915
7916 2000-01-25 Richard Henderson <rth@cygnus.com>
7917
7918 * sparc.c (output_cbranch): Fix accidental squashing of the
7919 fp branch pre-delay nop.
7920
7921 2000-01-25 Richard Henderson <rth@cygnus.com>
7922
7923 * tree.def (UNNE_EXPR): Remove.
7924 * c-typeck.c (build_binary_op): Don't handle it.
7925 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
7926
7927 * rtl.def (UNNE): Remove.
7928 (LTGT): Add.
7929 * jump.c (reverse_condition): Update accordingly.
7930 (swap_condition): Likewise.
7931 (comparison_dominates_p): Handle unordered comparisons.
7932 (reverse_condition_maybe_unordered): New.
7933 * rtl.h (reverse_condition_maybe_unordered): Declare.
7934
7935 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
7936 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
7937 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
7938 * sparc.md (bltgt): New.
7939
7940 2000-01-25 Nick Clifton <nickc@redhat.com>
7941
7942 * emit-rtl.c (emit_insn): Only check machine class insns for
7943 improper emission of a RETURN.
7944
7945 2000-01-25 Richard Henderson <rth@cygnus.com>
7946
7947 * Makefile.in (flow.o): Depend on $(EXPR_H).
7948 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
7949 duplicate the structure of diddle_return_value for keeping regs live.
7950
7951 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7952
7953 * loop.c (current_loop_info): Delete.
7954 (consec_sets_invariant_p): Add loop argument, update callers.
7955 (get_condition_for_loop): Likewise.
7956 (count_nonfixed_reads, update_giv_derive): Likewise.
7957 (simplify_giv_expr, general_induction_var): Likewise.
7958 (consec_sets_giv, recombine_givs): Likewise.
7959 (move_movables): Delete loop_start and loop_end arguments,
7960 add loop argument, and update callers.
7961 (find_mem_givs, check_final_value): Likewise.
7962 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
7963 (loop_invariant_p): Rename from invariant_p, add loop argument, and
7964 update callers.
7965 (basic_induction_var): Add loop argument, delete loop_level argument,
7966 and update callers.
7967 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
7968 add loop argument, and update callers.
7969 (find_splittable_regs, find_splittable_givs): Likewise.
7970 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
7971 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
7972 (biv_total_increment): Delete loop_start and loop_end arguments;
7973 update callers.
7974 (precondition_loop_p): Delete loop_start and loop_info arguments;
7975 update callers.
7976 * loop.h (get_condition_for_loop): Add loop argument.
7977 (biv_total_increment): Delete loop_start and loop_end arguments.
7978 (precondition_loop_p): Delete loop_start and loop_info arguments;
7979 add loop argument.
7980 (final_biv_value): Delete loop_start and loop_end arguments;
7981 add loop argument.
7982 (final_giv_value, back_branch_in_range_p): Likewise.
7983
7984 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
7985
7986 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
7987
7988 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
7989
7990 * Makefile.in (c-gperf.h) : Change the "See" pointer to
7991 point to the new "generated_files" doc.
7992
7993 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
7994
7995 * config/fp-bit.c (_unord_f2): Fix typo.
7996
7997 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
7998
7999 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
8000 c-typeck.c, objc/objc-act.c: Remove all references to obstack
8001 functions obsoleted by GC, such as push_obstacks_nochange,
8002 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
8003 and code which existed only to decide whether or not to call
8004 them. Remove now-unused NESTED argument from start_function;
8005 all callers changed. Do not change behavior based on ggc_p.
8006 The use of the ixp_obstack in c-iterate.c and the util_obstack
8007 in objc/objc-act.c remain; these are not obsoleted by garbage
8008 collection.
8009 * c-tree.h: Update prototype for start_function.
8010
8011 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
8012
8013 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
8014
8015 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
8016 mips16.
8017
8018 2000-01-25 Richard Henderson <rth@cygnus.com>
8019
8020 * sparc-protos.h (select_cc_mode): Declare.
8021 * sparc.c (select_cc_mode): New. Handle unordered compares.
8022 (output_cbranch): Always reverse via code change. Handle
8023 unordered compares. Factor tests and string updates.
8024 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
8025 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
8026 * sparc.md (bunordered, bordered): New.
8027 (bungt, bunlt, buneq, bunge, bunle): New.
8028
8029 2000-01-25 Richard Henderson <rth@cygnus.com>
8030
8031 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
8032 * ggc-common.c (ggc_add_rtx_varray_root): New.
8033 (ggc_mark_rtx_varray): New.
8034 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
8035 functions down below ggc_mark_foo.
8036 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
8037
8038 2000-01-25 Richard Henderson <rth@cygnus.com>
8039
8040 * alpha.c (secondary_reload_class): Don't allocate a secondary
8041 for integral mode memories into FLOAT_REGS. Rearrange the more
8042 complicated memory expression inward.
8043
8044 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
8045
8046 * inclhack.def: Fixes to play nicer with FreeBSD, and
8047 corrections to comments.
8048 (cxx_unready): Add select expression.
8049 (irix_sockaddr): Add bypass expression.
8050 (machine_ansi_h_va_list): New fix.
8051 (stdio_va_list): No need to edit _BSD_VA_LIST_.
8052 Split out addition of "#include <stdarg.h>" to...
8053 (stdio_stdarg_h): ... here.
8054 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
8055 to stdlib.h also. Do not munge _BSD_SIZE_T_.
8056 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
8057 size_t.
8058 (ultrix_ifdef): Tighten up select expression.
8059
8060 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
8061 re_ct and max_mach to avoid use of shell. Make printed names
8062 match names in inclhack.def. Use static copyright date.
8063 Don't count c_test and test expressions as requiring regex_t
8064 slots. Add some commentary.
8065 * inclhack.tpl: Do not include the 'This script contains N
8066 fixup scripts' line if PROGRAM is defined. Use static
8067 copyright date.
8068
8069 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
8070
8071 * dwarf2out.c: include "varray.h", not dyn-string.h.
8072 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
8073 (addr_const_to_string, addr_to_string): Lose.
8074 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
8075 (struct dw_val_struct): val_addr is now an rtx.
8076 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
8077 (used_rtx_varray): New varray.
8078 (dwarf2out_init): Initialize it.
8079 (save_rtx): New fn.
8080 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
8081 addr_to_string.
8082 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
8083 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
8084 * Makefile.in (dwarf2out.o): Update dependencies.
8085
8086 2000-01-24 Richard Henderson <rth@cygnus.com>
8087
8088 * i386.c (i386_dwarf_output_addr_const): New.
8089 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
8090
8091 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
8092 if defined.
8093 * dwarfout.c (output_mem_loc_descriptor): Likewise.
8094 * i386.c (i386_simplify_dwarf_addr): New.
8095 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
8096
8097 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
8098
8099 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
8100 TYPE_STUB_DECL is NULL.
8101
8102 2000-01-24 Richard Henderson <rth@cygnus.com>
8103
8104 * builtins.c (expand_tree_builtin): Move ...
8105 * c-common.c (expand_tree_builtin): ... here.
8106
8107 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8108
8109 * loop.h (LOOP_INFO): New accessor macro.
8110 * basic-block.h (struct loop): Rename field `info' to `aux'.
8111 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
8112 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
8113 * unroll.c (loop_iterations, unroll_loop): Likewise.
8114
8115 2000-01-24 Christopher Faylor <cgf@cygnus.com>
8116
8117 * config/i386/t-cygwin: Accomodate new winsup directory layout
8118 when searching for include files.
8119
8120 2000-01-24 Richard Henderson <rth@cygnus.com>
8121
8122 * rtl.def: Add unordered fp comparisions.
8123 * tree.def: Likewise.
8124 * tree.h: Add ISO C 9x unordered fp comparision builtins.
8125
8126 * builtins.c (expand_tree_builtin): New function.
8127 * c-typeck.c (build_function_call): Use it.
8128 (build_binary_op): Support unordered compares.
8129 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
8130
8131 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
8132 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
8133 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
8134 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
8135 * jump.c (reverse_condition): Don't abort for UNLE etc, but
8136 return UNKNOWN.
8137 (swap_condition): Handle unordered compares.
8138 (thread_jumps): Check can_reverse before reversing.
8139 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
8140 reversed for FP.
8141
8142 * optabs.c (can_compare_p): New argument CODE. Verify branch or
8143 setcc is present before acking for cmp_optab. Update all callers.
8144 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
8145 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
8146 * expr.c (expand_expr): Likewise. Support unordered compares.
8147 (do_jump, do_store_flag): Likewise.
8148 * expr.h (enum libfunc_index): Add unordered compares.
8149
8150 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
8151 (DPBIT_FUNCS): Add _unord_df.
8152 * config/fp-bit.c (_unord_f2): New.
8153 * fp-test.c (main): Try unordered compare builtins.
8154
8155 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
8156 * alpha.c (alpha_comparison_operator): Check mode properly.
8157 (alpha_swapped_comparison_operator): Likewise.
8158 (signed_comparison_operator): Likewise.
8159 (alpha_fp_comparison_operator): New.
8160 (alpha_emit_conditional_branch): Handle unordered compares.
8161 * alpha.h (PREDICATE_CODES): Update.
8162 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
8163 (bunordered, bordered): New.
8164
8165 2000-01-24 Richard Henderson <rth@cygnus.com>
8166
8167 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
8168 * alpha.md (movtf): New expander, insn, and splitter.
8169
8170 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
8171
8172 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
8173 dead registers.
8174
8175 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
8176
8177 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
8178 (FIXED_REGISTERS, CALL_USED_REGISTERS,
8179 REG_ALLOC_ORDER): Add frame pointer
8180 (FRAME_POINTER_REGNUM): Set to 20
8181 (HARD_FRAME_POINTER_REGNUM): New macro.
8182 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
8183 to HARD_FRAME_POINTER.
8184 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
8185 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
8186 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
8187 (HI_REGISTER_NAMES): Add "frame".
8188 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
8189 (debug_reg): Handle FRAME_POINTER_REGNUM.
8190 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
8191 GENERAL_REGS and INDEX_REGS.
8192 * i386.c (SAVED_REGS_FIRST): new macro.
8193 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
8194 (ix86_decompose_address, memory_address_length): Likewise.
8195 (regclass_map): Add frame pointer.
8196 (call_insn_operand): Handle frame_pointer_rtx.
8197 (reg_no_sp_operand): Likewise.
8198 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
8199 (print_operand, legitimize_pic_address): Fix formating.
8200 (ix86_compute_frame_size): Make static, update prototype, new
8201 parameters padding1, padding2, use ix86_nsaved_regs, use
8202 stack_alignment_needed.
8203 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
8204 to HARD_FRAME_POINTER_REGNUM conversions.
8205 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
8206 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
8207 (print_reg): Abort on FRAME_POINTER_REGNUM
8208
8209 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
8210
8211 * i386.h (PREDICATE_CODES): Add aligned_operand.
8212 * i386.c (aligned_operand): New function.
8213 (ix86_aligned_p): Kill.
8214 * i386.md (movhi_1): Emit mov for aligned operands.
8215 (promoting peep2s): Use aligned_operand.
8216
8217 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
8218
8219 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
8220 expression to allow underscores in macro names.
8221 (fix_char_macro_defines): Increment scanning pointer.
8222
8223 2000-01-23 Richard Henderson <rth@cygnus.com>
8224
8225 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
8226 * alpha/osf5.h: New file.
8227 * configure.in (alpha-*-osf5): Add it to tm_file.
8228
8229 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
8230
8231 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
8232 (alpha_emit_xfloating_cvt, function_arg): Declare.
8233 * alpha.c (alpha_emit_conditional_branch): Call
8234 alpha_emit_xfloating_compare for TFmode compares.
8235 (alpha_lookup_xfloating_lib_func): New.
8236 (alpha_compute_xfloating_mode_arg): New.
8237 (alpha_emit_xfloating_libcall): New.
8238 (alpha_emit_xfloating_arith): New.
8239 (alpha_emit_xfloating_compare): New.
8240 (alpha_emit_xfloating_cvt): New.
8241 (print_operand): Add default abort case.
8242 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
8243 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
8244 (BIGGEST_ALIGNMENT): Increase to 128 bits.
8245 (RETURN_IN_MEMORY): True for TF/TCmode.
8246 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
8247 (FUNCTION_ARG): Move to function_arg.
8248 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
8249 (ASM_OUTPUT_LONG_DOUBLE): New.
8250 (ASM_OUTPUT_DOUBLE): Always output bits.
8251 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
8252 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
8253 (extenddftf2, trunctfdf2): New.
8254
8255 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8256
8257 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
8258 * config/sparc/sol2.h: ... here.
8259
8260 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8261
8262 * basic-block.h (struct loops): New field `levels'.
8263 * flow.c (flow_loops_level_compute): Traverse all outer loops.
8264 (flow_loop_level_compute): Initialise level to 1.
8265 (flow_loops_find): Set loops->levels.
8266 (flow_loops_dump): Print loops->levels.
8267
8268 2000-01-23 Richard Henderson <rth@cygnus.com>
8269
8270 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
8271 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
8272
8273 2000-01-23 Richard Henderson <rth@cygnus.com>
8274
8275 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
8276 * i386.h (DBX_REGISTER_NUMBER): Use them.
8277 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
8278 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
8279 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
8280 * i386/sequent.h: Kill incorrect comment.
8281
8282 2000-01-23 Mark Mitchell <mark@codesourcery.com>
8283
8284 * ggc-page.c (struct page_entry): Make `context_depth' an
8285 `unsigned short'.
8286 (struct globals): Likewise.
8287
8288 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
8289
8290 * loop.c (check_dbra_loop): When checking a loop for
8291 reversability, check the source of any stores to ensure
8292 they don't depend on an initial value.
8293
8294 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8295
8296 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
8297
8298 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
8299
8300 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
8301 'pz_scan' into scope of entire function. Only affects
8302 compiles with -DDEBUG.
8303
8304 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
8305
8306 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
8307 section naming to that prior to 2000-01-07 patch.
8308 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
8309 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
8310 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
8311 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
8312 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
8313
8314 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
8315
8316 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
8317 constant.
8318
8319 2000-01-21 Jim Wilson <wilson@cygnus.com>
8320
8321 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
8322 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
8323
8324 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
8325
8326 * cpphash.c (change_newlines): Delete function.
8327 (struct argdata): Delete 'newlines' and 'use_count' fields.
8328 (macroexpand): Remove code referencing those fields.
8329
8330 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8331
8332 * loop.c (loops_info): New variable.
8333 (loop_optimize): Allocate loops->array and free it on exit.
8334 Allocate memory for loops_info and assign to each loop,
8335 replacing alloca.
8336 (find_and_verify_loops): Do not allocate loops->array.
8337
8338 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
8339
8340 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
8341
8342 2000-01-21 Jakub Jelinek <jakub@redhat.com>
8343
8344 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
8345 pseudos if expanded after first flow.
8346 (movdi_pic_label_ref): Likewise.
8347
8348 2000-01-20 Richard Henderson <rth@cygnus.com>
8349
8350 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
8351
8352 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
8353
8354 * Makefile.in (fixinc.sh): Depend on specs.
8355 * fixinc/Makefile.in: Add rule to create machname.h.
8356 (fixlib.o): Depend on machname.h.
8357 * fixinc/fixtests.c (machine_name): New test.
8358 * fixinc/fixfixes.c (machine_name): New fix.
8359 * fixinc/fixlib.c (mn_get_regexps): New helper function for
8360 the machine_name test and fix.
8361 * fixinc/fixlib.h: Prototype it.
8362 * fixinc/inclhack.def (machine_name): Use the C test and fix.
8363 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
8364
8365 * gcc.c (do_spec_1) [case P]: Take care not to create
8366 identifiers with three leading or trailing underscores.
8367
8368 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
8369 (fixincl): Don't specify libraries twice on link line.
8370 (gnu-regex.o): Remove special rule.
8371 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
8372 defined by config.h. Do not define _REGEX_RE_COMP.
8373 (regcomp): Allocate and initialize a fastmap.
8374 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
8375
8376 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
8377
8378 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
8379
8380 2000-01-19 Richard Henderson <rth@cygnus.com>
8381
8382 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
8383 arguments with BB. Update all callers. Tidy line wrapping.
8384
8385 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
8386
8387 * emit-rtl.c (try_split): Return last_insn if we split the
8388 last_insn.
8389
8390 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
8391
8392 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
8393 (ix86_initial_elimination_offset): Declare.
8394 * i386.c (ix86_nsaved_regs): Break out from ...
8395 (ix86_can_use_return_insn_p): ... here.
8396 (ix86_emit_save_regs): Break out from ...
8397 (ix86_expand_prologue): ... here.
8398 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
8399 out from ...
8400 (ix86_expand_epilogue): ... here.
8401 (ix86_compute_frame_size): Make static, add prototype.
8402 (ix86_initial_elimination_offset): Break out from ...
8403 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
8404
8405 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8406
8407 * recog.h (OUT_FCN): Delete.
8408
8409 * vax.md: Call `get_insn_template' instead of OUT_FCN.
8410
8411 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8412
8413 * cppalloc.c: PROTO -> PARAMS.
8414 * cpperror.c: Likewise.
8415 * cppfiles.c: Likewise.
8416 * cpplib.c: Likewise.
8417 * cpplib.h: Likewise.
8418
8419 * config/arm/arm-protos.h: PROTO -> PARAMS.
8420 * config/arm/arm.c: Likewise.
8421 * config/c4x/c4x.c: Likewise.
8422 * config/fr30/fr30-protos.h: Likewise.
8423 * config/nextstep.c: Likewise.
8424 * config/pa/pa.c: Likewise.
8425 * config/pj/pj.c: Likewise.
8426 * config/rs6000/rs6000.c: Likewise.
8427 * config/v850/v850-protos.h: Likewise.
8428 * config/v850/v850.c: Likewise.
8429
8430 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8431
8432 * i370-protos.h: New file.
8433
8434 * i370.c: Include tm_p.h. Fix compile time warnings.
8435
8436 * i370.h: Move prototypes to i370-protos.h. Fix compile time
8437 warnings.
8438
8439 * i370.md: Likewise.
8440
8441 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8442
8443 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
8444 (target_isinf, target_isnan, eisnan): Mark parameter with
8445 ATTRIBUTE_UNUSED.
8446 (eiisinf): Wrap in INFINITY.
8447 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
8448 (ibmtoe): Remove unused variable `rndsav'.
8449
8450 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8451
8452 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
8453 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
8454
8455 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
8456
8457 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
8458 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
8459 (fix_char_macro_defines, fix_char_macro_uses): New functions.
8460
8461 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
8462 Recognize Emacs mode markers also.
8463 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
8464 C++ comments in C++ headers. Call is_cxx_header only if
8465 necessary.
8466
8467 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
8468 bypass for ncurses.
8469 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
8470 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
8471 ... these, which use the new C fixes.
8472 (math_exception): Escape literal '+' in bypass expression.
8473
8474 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
8475 Regenerate.
8476
8477 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8478
8479 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
8480 inside the MEM.
8481
8482 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8483
8484 * loop.c (loop_optimize): Allocate loop_info structure for each loop
8485 prior to calling scan_loop.
8486
8487 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8488
8489 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
8490 (split_branches, calc_live_regs): Likewise.
8491
8492 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8493
8494 * sh.md (fpu_single, fp_mode): New attributes.
8495
8496 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8497
8498 * loop.c (current_loop_info): Renamed from loop_info_data
8499 and changed to a pointer.
8500 (loop_optimize): Allocate loop_info structure for each loop
8501 and initialise to zero.
8502 (scan_loop): Set current_loop_info.
8503
8504 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
8505 on iteration_var.
8506
8507 2000-01-19 Richard Henderson <rth@cygnus.com>
8508
8509 * stupid.c: Die die die.
8510 * Makefile.in (OBJS): Remove stupid.o.
8511 (stupid.o): Likewise.
8512
8513 * except.c (emit_eh_context): Don't emit USEs for stupid.
8514 * explow.c (probe_stack_range): Likewise.
8515 * flags.h (obey_regdecls): Remove.
8516 * flow.c (find_basic_blocks): Don't run try_merge_blocks
8517 when not optimizing.
8518 (life_analysis): Limit data collection when not optimizing.
8519 (mark_regs_live_at_end): Always mark the return value registers.
8520 (mark_used_regs): Remove dummy RETURN case.
8521 (print_rtl_with_bb): Don't consult obey_regdecls.
8522 * function.c (use_variable, use_variable_after): Remove.
8523 (assign_parms): Consult optimize not obey_regdecls.
8524 (expand_function_start): Don't emit USEs for stupid.
8525 (expand_function_end): Likewise.
8526 * global.c (build_insn_chain): Export.
8527 * integrate.c (expand_inline_function): Kill return-value USE
8528 handling code.
8529 * jump.c (jump_optimize_1): Do simple jump optimizations and
8530 dead code elimination.
8531 (calculate_can_reach_end): Remove check_deleted argument.
8532 (delete_insn): Patch out insns even when not optimizing.
8533 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
8534 * rtl.h (use_variable, use_variable_after): Remove declarations.
8535 (build_insn_chain): Declare.
8536 * stmt.c (expand_value_return): Don't emit USEs for stupid.
8537 (expand_end_bindings): Likewise.
8538 (expand_decl): Likewise. Consult optimize not obey_regdecls.
8539 * toplev.c (obey_regdecls): Remove.
8540 (rest_of_compilation): Don't set it. Kill stupid in favour of
8541 flow1, local-alloc, and reload.
8542 (main): Don't set obey_regdecls.
8543
8544 * config/nextstep.c (handle_pragma): Likewise.
8545
8546 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
8547
8548 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
8549
8550 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8551
8552 * alpha-protos.h: PROTO -> PARAMS.
8553 * alpha.c: Likewise.
8554 * elf.h: Likewise.
8555 * h8300.c: Likewise.
8556 * i386-protos.h: Likewise.
8557 * i386.c: Likewise.
8558 * m32r-protos.h: Likewise.
8559 * m32r.c: Likewise.
8560 * mips.c: Likewise.
8561 * mips.md: Likewise.
8562 * gmon-sol2.c: Likewise.
8563 * sparc.c: Likewise.
8564
8565 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8566
8567 * ns32k-protos.h: New file.
8568
8569 * ns32k.c: Fix compile time warnings.
8570
8571 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
8572 warnings.
8573
8574 * ns32k.md: Likewise.
8575
8576 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8577
8578 * vax-protos.h: New file.
8579
8580 * vax.c: Fix compile time warnings.
8581
8582 * vax.h: Move prototypes to vax-protos.h. Fix compile time
8583 warnings.
8584
8585 * vax.md: Likewise.
8586
8587 * vaxv.md: Likewise.
8588
8589 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8590
8591 * romp-protos.h: New file.
8592
8593 * romp.c: Fix compile time warnings.
8594
8595 * romp.h: Move prototypes to romp-protos.h. Fix compile time
8596 warnings.
8597
8598 * romp.md: Likewise.
8599
8600 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8601
8602 * we32k-protos.h: New file.
8603
8604 * we32k.c: Fix compile time warnings.
8605
8606 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
8607 warnings.
8608
8609 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8610
8611 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
8612
8613 * except.c (eh_regs): Likewise.
8614
8615 * final.c (output_operand): Likewise.
8616
8617 * fold-const.c (target_isinf, target_isnan): Likewise.
8618
8619 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
8620
8621 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
8622 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
8623
8624 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
8625 when optimize_size.
8626 (clrstrsi): Rewrite.
8627 (strsethi, strsetqi): New expanders.
8628 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
8629 (cmpstrsi): Emit compare insn before cmpstrsi_1
8630 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
8631 (strlensi_1): Likewise.
8632 (cmpstrsi_1): Likewise; do not output compare.
8633 (strlen expander): Do not unroll when optimizing for size.
8634 (*subsi3_carry): Rename to subsi3_carry
8635 (addqi3_cc): New pattern.
8636 * i386.h (processor_costs): Add move_ratio field.
8637 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
8638 * i386.c (*_cost): Set move_ratio.
8639 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
8640 (x86_expand_strlensi_1): Rewrite the main loop.
8641
8642 2000-01-17 Richard Henderson <rth@cygnus.com>
8643
8644 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
8645 * cse.c (find_comparison_args, fold_rtx): Likewise.
8646 * integrate.c (subst_constants): Likewise.
8647 * loop.c (get_condition): Likewise.
8648
8649 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
8650
8651 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
8652
8653 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8654
8655 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
8656 (RESTORE_WARN_FLAGS): Unpack it.
8657 Change semantic type of extension to ttype.
8658 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
8659 * c-parse.y, c-parse.c, objc/objc-parse.y,
8660 objc/objc-parse.c: Regenerate.
8661
8662 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
8663
8664 * fixinc/fixlib.c: Add copyright notice.
8665 (compile_re): New function.
8666 * fixinc/fixlib.h: Prototype compile_re.
8667
8668 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
8669 Use compile_re to compile regular expressions.
8670
8671 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
8672 where the pattern matched.
8673
8674 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
8675 use 'replace'.
8676 (ultrix_ansi_compat): Likewise.
8677 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
8678 add egrep test.
8679 (interactv_add2, interactv_add3): Delete.
8680 (x11_sprintf): Don't use filename glob.
8681 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
8682 Regenerate.
8683
8684 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8685
8686 * print-rtl.c: PROTO -> PARAMS.
8687 * real.c: Likewise.
8688 * reg-stack.c: Likewise.
8689 * resource.c: Likewise.
8690 * sdbout.h: Likewise.
8691 * simplify-rtx.c: Likewise.
8692 * stor-layout.c: Likewise.
8693 * stupid.c: Likewise.
8694 * xcoffout.c: Likewise.
8695 * xcoffout.h: Likewise.
8696
8697 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8698
8699 * toplev.c: PROTO -> PARAMS.
8700 * toplev.h: Likewise.
8701 * tree.c: Likewise.
8702 * tree.h: Likewise.
8703 * unroll.c: Likewise.
8704 * varasm.c: Likewise.
8705 * varray.c: Likewise.
8706 * varray.h: Likewise.
8707
8708 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8709
8710 * reload.c: PROTO -> PARAMS.
8711 * reload.h: Likewise.
8712 * reload1.c: Likewise.
8713 * reorg.c: Likewise.
8714 * resource.h: Likewise.
8715 * rtl.c: Likewise.
8716 * rtl.h: Likewise.
8717 * rtlanal.c: Likewise.
8718 * sbitmap.h: Likewise.
8719 * sdbout.c: Likewise.
8720 * stack.h: Likewise.
8721 * stmt.c: Likewise.
8722 * system.h: Likewise.
8723
8724 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8725
8726 * machmode.h: PROTO -> PARAMS.
8727 * mbchar.h: Likewise.
8728 * mips-tdump.c: Likewise.
8729 * mips-tfile.c: Likewise.
8730 * optabs.c: Likewise.
8731 * output.h: Likewise.
8732 * prefix.c: Likewise.
8733 * profile.c: Likewise.
8734 * protoize.c: Likewise.
8735 * real.h: Likewise.
8736 * recog.c: Likewise.
8737 * recog.h: Likewise.
8738 * regclass.c: Likewise.
8739 * regmove.c: Likewise.
8740 * regs.h: Likewise.
8741
8742 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8743
8744 * ggc-common.c: PROTO -> PARAMS.
8745 * ggc-page.c: Likewise.
8746 * ggc-simple.c: Likewise.
8747 * ggc.h: Likewise.
8748 * global.c: Likewise.
8749 * graph.c: Likewise.
8750 * gthr-win32.h: Likewise.
8751 * haifa-sched.c: Likewise.
8752 * halfpic.h: Likewise.
8753 * integrate.c: Likewise.
8754 * integrate.h: Likewise.
8755 * jump.c: Likewise.
8756 * lcm.c: Likewise.
8757 * local-alloc.c: Likewise.
8758 * loop.c: Likewise.
8759 * loop.h: Likewise.
8760
8761 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8762
8763 * genattr.c: PROTO -> PARAMS.
8764 * genattrtab.c: Likewise.
8765 * gencheck.c: Likewise.
8766 * gencodes.c: Likewise.
8767 * genconfig.c: Likewise.
8768 * genemit.c: Likewise.
8769 * genextract.c: Likewise.
8770 * genflags.c: Likewise.
8771 * gengenrtl.c: Likewise.
8772 * genopinit.c: Likewise.
8773 * genoutput.c: Likewise.
8774 * genpeep.c: Likewise.
8775 * genrecog.c: Likewise.
8776
8777 2000-01-16 Mark Mitchell <mark@codesourcery.com>
8778
8779 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
8780
8781 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8782
8783 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
8784 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
8785 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
8786 * configure, config.in: Rebuilt.
8787
8788 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
8789
8790 * config/i386/i386.md: Add peephole to merge successive stack
8791 adjusts.
8792
8793 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
8794
8795 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
8796 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
8797 when walking backwards to find all the parameter loads when
8798 the basic block ends in a call.
8799
8800 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8801
8802 * loop.c (this_loop_info): Delete.
8803 (uid_loop): Add in place of uid_loop_num. All uses updated.
8804 (loop_number_exit_count): Delete and replace with entry in loop
8805 structure. All uses updated.
8806 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
8807 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
8808 (loop_outer_loop): Likewise.
8809 (loop_invalid, loop_number_exit_labels): Likewise.
8810 (loop_used_count_register): Delete and replace with entry in
8811 loop_info structure.
8812 (find_and_verify_loops): Add loops argument.
8813 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
8814 loop_end, etc. arguments with loop structure pointer. All callers
8815 changed.
8816 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
8817 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
8818 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
8819 (insert_bct): Likewise.
8820 (basic_induction_var): New argument level.
8821 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
8822 vtop, and cont. Add used_count_register.
8823 (uid_loop): Delete declaration.
8824 (loop_number_exit_count): Likewise.
8825 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
8826 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
8827 (loop_outer_loop, loop_used_count_register): Likewise.
8828 (loop_invalid, loop_number_exit_labels): Likewise.
8829 (unroll_loop): Replace loop_start and loop_end arguments
8830 with loop structure pointer.
8831 (loop_precondition_p, loop_iterations): Likewise.
8832 Include basic-block.h.
8833 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
8834 with loop structure pointer.
8835 (loop_precondition_p, loop_iterations): Likewise.
8836 * basic-block.h (struct loop): New entries vtop, cont,
8837 cont_dominator, start, end, top, scan_start, exit_labels,
8838 exit_count.
8839 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
8840
8841 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8842
8843 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
8844
8845 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
8846
8847 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
8848
8849 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8850
8851 * pdp11-protos.h: New file.
8852
8853 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
8854 time warnings.
8855
8856 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
8857 warnings.
8858
8859 * pdp11.md: Likewise.
8860
8861 * 2bsd.h: Likewise.
8862
8863 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8864
8865 * mn10300-protos.h: New file.
8866
8867 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
8868 time warnings.
8869
8870 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
8871 warnings.
8872
8873 * mn10300.md: Likewise.
8874
8875 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8876
8877 * mn10200-protos.h: New file.
8878
8879 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
8880 time warnings.
8881
8882 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
8883 warnings.
8884
8885 * mn10200.md: Likewise.
8886
8887 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8888
8889 * h8300-protos.h: New file.
8890
8891 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
8892 time warnings.
8893
8894 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
8895 warnings.
8896
8897 * h8300.md: Likewise.
8898
8899 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8900
8901 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
8902 (asm_emit_uninitialised): Likewise.
8903
8904 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
8905
8906 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
8907 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
8908
8909 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
8910
8911 * config/mips/mips.c (override_options): Don't turn on extra
8912 alignment for mips16.
8913
8914 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
8915
8916 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
8917 eabi, and make sure queued POSTINCREMENT rtl is emitted at
8918 the right point.
8919
8920 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
8921
8922 * builtins.c (PAD_VARARGS_DOWN): Define.
8923 (std_expand_builtin_va_arg): Use the above macro.
8924 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
8925 * tm.texi (Register Arguments): Document the above macro.
8926
8927 2000-01-14 Nick Clifton <nickc@cygnus.com>
8928
8929 * emit-rtl.c (emit_insn): If checking is enabled, make sure
8930 that this function has not been used to emit a jump
8931 instruction.
8932
8933 * jump.c (return_jump_1): Cope with being passed a null rtx.
8934
8935 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8936
8937 * eh-common.h: PROTO -> PARAMS.
8938 * emit-rtl.c: Likewise.
8939 * errors.c: Likewise.
8940 * errors.h: Likewise.
8941 * except.c: Likewise.
8942 * except.h: Likewise.
8943 * explow.c: Likewise.
8944 * expmed.c: Likewise.
8945 * expr.c: Likewise.
8946 * expr.h: Likewise.
8947 * final.c: Likewise.
8948 * fix-header.c: Likewise.
8949 * flow.c: Likewise.
8950 * fold-const.c: Likewise.
8951 * function.c: Likewise.
8952 * function.h: Likewise.
8953 * gcc.c: Likewise.
8954 * gcov-io.h: Likewise.
8955 * gcov.c: Likewise.
8956 * gcse.c: Likewise.
8957
8958 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8959
8960 * sh-protos.h: New file.
8961
8962 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
8963 Add static prototypes. Fix compile time warnings.
8964
8965 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
8966 * sh.md: Likewise.
8967 * elf.h: Likewise.
8968
8969 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8970
8971 * arc-protos.h: New file.
8972
8973 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
8974 time warnings.
8975
8976 * arc.h: Move prototypes to arc-protos.h. Fix compile time
8977 warnings.
8978
8979 * arc.md: Likewise.
8980
8981 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8982
8983 * dsp16xx-protos.h: New file.
8984
8985 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
8986 time warnings.
8987
8988 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
8989 warnings.
8990
8991 * dsp16xx.md: Likewise.
8992
8993 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8994
8995 * convex-protos.h: New file.
8996
8997 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
8998 time warnings.
8999
9000 * convex.h: Move prototypes to convex-protos.h. Fix compile time
9001 warnings.
9002
9003 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9004
9005 * elxsi-protos.h: New file.
9006
9007 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
9008 time warnings.
9009
9010 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
9011 warnings.
9012
9013 * elxsi.md: Likewise.
9014
9015 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
9016
9017 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
9018 case for moving from HI/LO/HI_LO_REG. This makes the behavior
9019 match the comment for MIPS16.
9020
9021 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
9022
9023 * flow.c (split_edge): Do not call set_block_for_insn if we
9024 do not have a basic_block_for_insn structure.
9025
9026 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
9027 and destination functions are 32bit aligned within the trampoline.
9028 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
9029 (TRAMPOLINE_ALIGNMENT): Define.
9030
9031 * cse.c (cse_insn): When changing (set (pc) (reg)) to
9032 (set (pc) (label_ref)), verify the change creates a valid insn.
9033
9034 * fr30.c (call_operand): Tighten and rework to match rules for
9035 call RTL expressions.
9036 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
9037 * fr30.md (call patterns): Improve constraints.
9038
9039 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
9040
9041 * fr30.c (fr30_expand_epilogue): Revert last change.
9042 Use emit_jump_insn for the return insn.
9043
9044 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
9045 Stan Cox <scox@cygnus.com>
9046
9047 * predict.c: New file. Preliminary infrastructure work for static
9048 branch prediction and basic block reordering.
9049 * basic-block.h: Add prototype for estimate_probability.
9050 * Makefile.in: Add rules for predict.o.
9051
9052 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
9053
9054 * fixincludes (va_list): Use __not_va_list__ for the dummy.
9055 * fixinc/*: Likewise.
9056
9057 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9058
9059 * cccp.c: PROTO -> PARAMS.
9060 * cexp.y: Likewise.
9061 * collect2.c: Likewise.
9062 * combine.c: Likewise.
9063 * convert.h: Likewise.
9064 * cse.c: Likewise.
9065 * dbxout.c: Likewise.
9066 * dbxout.h: Likewise.
9067 * diagnostic.c: Likewise.
9068 * doprint.c: Likewise.
9069 * dwarf2out.c: Likewise.
9070 * dwarf2out.h: Likewise.
9071 * dwarfout.c: Likewise.
9072 * dwarfout.h: Likewise.
9073 * dyn-string.h: Likewise.
9074
9075 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9076
9077 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
9078 macro conditionals guarding use.
9079
9080 * dwarf2out.c: Include "tm_p.h".
9081
9082 * function.c (locate_and_pad_parm): Mark parameter with
9083 ATTRIBUTE_UNUSED.
9084 (expand_function_end): Likewise for variable `context'.
9085
9086 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
9087
9088 2000-01-13 Nick Clifton <nickc@cygnus.com>
9089
9090 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
9091 register to prevent compile time warnings.
9092
9093 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
9094
9095 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
9096 to avoid -Wtraditional warning.
9097
9098 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9099
9100 * 1750a-protos.h: New file.
9101
9102 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
9103 time warnings.
9104
9105 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
9106 warnings.
9107
9108 * 1750a.md: Likewise.
9109
9110 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9111
9112 * a29k-protos.h: New file.
9113
9114 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
9115 time warnings.
9116
9117 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
9118 warnings.
9119
9120 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9121
9122 * clipper-protos.h: New file.
9123
9124 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
9125 time warnings.
9126
9127 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
9128 warnings.
9129
9130 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9131
9132 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
9133
9134 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
9135
9136 * configure.in (--enable-new-gxx-abi): New option.
9137 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
9138 * Makefile.in (GXX_ABI_FLAG): New variable.
9139 * configure: Regenerate.
9140
9141 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9142
9143 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
9144 * tm.texi (FORCE_STRUCT_BLK): Document.
9145 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
9146
9147 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
9148
9149 * config/ns32k/ns32k.md: Revert Jan 9 change.
9150
9151 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
9152 to a mode-test, if the predicate is address_operand.
9153
9154 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
9155
9156 * combine.c (if_then_else_cond): Be careful about what kinds
9157 of RTL expressions are passed to operand_subword.
9158
9159 * flow.c (split_edge): If we have to insert a new jump, make
9160 sure to associate it with a basic block.
9161
9162 * flow.c (commit_one_edge_insertion): A block with one successor
9163 can end in a JUMP_INSN that is not a simplejump.
9164
9165 2000-01-12 Robert Lipe <robertl@sco.com>
9166
9167 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
9168 (BUILD_VA_LIST_TYPE): Define.
9169 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
9170 with crtstuff.c.
9171
9172 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
9173
9174 * cccp.c (do_pragma): Add cast to (char *).
9175
9176 2000-01-12 Richard Henderson <rth@cygnus.com>
9177 Fred Fish <fnf@be.com>
9178 Jason Merrill <jason@cygnus.com>
9179
9180 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
9181 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
9182 * i386/beos-elf.h, i386/beos-pe.h: New files.
9183
9184 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
9185 * cross-make (SYSTEM_HEADER_DIR): Define using
9186 CROSS_SYSTEM_HEADER_DIR.
9187
9188 * gcc.c (LIBRARY_PATH_ENV): Provide default.
9189 (process_command): Use it.
9190 (main): Likewise. Kill trailing = from env vars.
9191 (build_search_list): Put it back.
9192 * collect2.c (main): Use LIBRARY_PATH_ENV.
9193
9194 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
9195 * toplev.c: Use NEED_DECLARATION_ENVIRON.
9196
9197 * tm.texi (Frame Layout): Document SMALL_STACK.
9198 * c-common.c (c_common_nodes_and_builtins): Check it.
9199
9200 * system.h: Undef alloca after including glibc's <stdlib.h>,
9201 if USE_C_ALLOCA is defined.
9202
9203 * gcc.c (set_input): New fn.
9204 (main): After all input files are compiled, reset the input file
9205 info to the first.
9206
9207 * aclocal.m4 (rindex, index): If already defined, don't attempt
9208 to redefine.
9209
9210 * ginclude/varargs.h: (__va_list__): Define ifndef.
9211 * ginclude/stdarg.h: Likewise.
9212
9213 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
9214 instead of unsigned char.
9215
9216 * hash.h (true, false, boolean): Undef before enum.
9217
9218 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
9219 proper type of "HOST_WIDE_INT *", rather than their natural type of
9220 "unsigned HOST_WIDE_INT *".
9221
9222 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9223
9224 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
9225
9226 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
9227
9228 * regclass.c (choose_hard_reg_mode): Likewise.
9229
9230 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
9231
9232 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
9233
9234 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9235
9236 * c-common.c: PROTO -> PARAMS.
9237 * c-common.h: Likewise.
9238 * c-decl.c: Likewise.
9239 * c-iterate.c: Likewise.
9240 * c-lang.c: Likewise.
9241 * c-lex.c: Likewise.
9242 * c-lex.h: Likewise.
9243 * c-parse.in: Likewise.
9244 * c-pragma.c: Likewise.
9245 * c-pragma.h: Likewise.
9246 * c-tree.h: Likewise.
9247 * c-typeck.c: Likewise.
9248 * objc/objc-act.c: Likewise.
9249 * objc/objc-act.h: Likewise.
9250
9251 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9252
9253 * m88k-protos.h: New file.
9254
9255 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
9256 time warnings.
9257
9258 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
9259
9260 * m88k.md: Likewise.
9261
9262 * tekXD88.h: Likewise.
9263
9264 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9265
9266 * m68k-protos.h: New file.
9267
9268 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
9269 time warnings.
9270
9271 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
9272
9273 * mot3300.h: Likewise.
9274
9275 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
9276
9277 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
9278 extract_bitlst.
9279 (extract_bitlist): Declare bitlen.
9280
9281 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
9282
9283 * cccp.c: Accept and ignore -lang-fortran.
9284
9285 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
9286 qualifiers don't match at any level of pointerness.
9287
9288 2000-01-12 Robert Lipe <robertl@sco.com>
9289
9290 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
9291
9292 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
9293
9294 * reload1.c (reload_reg_unavailable): New static variable.
9295 (reload_reg_free_p): Test it.
9296 (reload_reg_free_for_value_p): Test it instead of
9297 reload_reg_used.
9298 (choose_reload_regs_init): Compute it.
9299
9300 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
9301
9302 * reorg.c (fill_slots_from_thread): Check modified_in_p
9303 before replacing.
9304
9305 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
9306
9307 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
9308 these nodes even if INTERNALS is not set.
9309
9310 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
9311
9312 * gcse.c (delete_null_pointer_checks_1): Cope when
9313 get_condition cannot determine the condition.
9314
9315 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
9316
9317 * toplev.h (set_message_length): Declare.
9318
9319 * diagnostic.c (obstack_chunk_alloc): Define macro.
9320 (obstack_chunk_free): Likewise.
9321 (struct output_buffer): New data structure.
9322 (vmessage): Remove.
9323 (output_maximum_width): New variable.
9324 (doing_line_wrapping, set_message_length, init_output_buffer,
9325 get_output_prefix, output_space_left, emit_output_prefix,
9326 output_newline, output_append, output_puts, dump_output,
9327 vbuild_message_string, build_message_string, build_location_prefix,
9328 voutput_notice, output_printf, line_wrapper_printf,
9329 vline_wrapper_message_with_location): New functions. Implement
9330 automatic line wrapping.
9331 (v_message_with_decl): Make it handle automatic line wrapping.
9332 (v_error_with_file_and_line): Likewise.
9333 (v_warning_with_file_and_line): Likewise.
9334 (announce_function): Likewise.
9335 (default_print_error_function): Likewise.
9336
9337 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
9338
9339 * cpplib.h (struct cpp_options): Change lang_asm to char.
9340 Add lang_fortran.
9341 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
9342 done in cpp_handle_option now.
9343 (initialize_builtins): Take out special case code used only by
9344 __STDC_VERSION__.
9345 (cpp_handle_option): Turn off trigraphs and trigraph warnings
9346 if -traditional. Recognize -lang-fortran and set
9347 lang_fortran, also turn off cplusplus_comments.
9348 (print_help): Document -lang-fortran.
9349 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
9350 lang_asm. Ignore all directives other than `# 123 "file"' if
9351 CPP_PREPROCESSED.
9352 (cpp_get_token): If -traditional, don't recognize directives
9353 unless the # is in column 1.
9354 (parse_string): If lang_fortran or lang_asm, silently
9355 terminate strings ('' or "") at end of line.
9356 Remove unnecessary braces.
9357
9358 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9359 Richard Henderson <rth@cygnus.com>
9360
9361 * resource.c (mark_referenced_resources): Mark a set strict_low_part
9362 as used.
9363 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
9364 strict_low_part when possible.
9365
9366 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9367
9368 * alias.c: PROTO -> PARAMS.
9369 * basic-block.h: Likewise.
9370 * bitmap.c: Likewise.
9371 * bitmap.h: Likewise.
9372 * builtins.c: Likewise.
9373 * c-aux-info.c: Likewise.
9374 * caller-save.c: Likewise.
9375 * calls.c: Likewise.
9376
9377 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9378
9379 * Makefile.in (toplev.o): Depend on regs.h.
9380
9381 * output.h (tdesc_section): Prototype.
9382
9383 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
9384
9385 * sdbout.c: Include "tm_p.h".
9386
9387 * toplev.c: Include "regs.h".
9388
9389 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
9390
9391 * unroll.c (unroll_loop): Add EH support.
9392
9393 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9394
9395 * pa-protos.h: New file.
9396
9397 * pa.c: Include recog.h and tm_p.h.
9398 (compute_zdepwi_operands, compute_movstrsi_length,
9399 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
9400 find_addr_reg, import_milli): Add static prototypes.
9401 (pa_cpu_string, pa_arch_string): Constify a char*.
9402 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
9403 (read_only_operand): Add argument `mode'.
9404 (singlemove_string, output_move_double, output_fp_move_double,
9405 output_block_move, output_and, output_ior, output_ascii,
9406 remove_useless_addtr_insns, milli_names, output_mul_insn,
9407 output_div_insn, output_mod_insn, output_arg_descriptor,
9408 output_cbranch, output_bb, output_bvb, output_dbra, ,
9409 output_millicode_call, output_call, hppa_encode_label,
9410 output_parallel_movb, output_parallel_addb): Constify a char*.
9411 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
9412 (output_parallel_addb): Remove extra arg to `constrain_operands'
9413
9414 * pa.h: Move all prototypes to pa-protos.h.
9415 (pa_cpu_string, pa_arch_string): Constify a char*.
9416 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
9417
9418 * pa.md: Call `function_label_operand' with mode argument.
9419 Likewise for `read_only_operand'.
9420 Fix nesting of parens in call to `symbolic_operand'.
9421
9422 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9423
9424 * i860-protos.h: New file.
9425
9426 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
9427 time warnings.
9428
9429 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
9430
9431 * i860.md: Likewise.
9432
9433 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
9434
9435 * i386.md (movstrsi expander): Rewrite.
9436 (movstrsi_1 insn): Deleted.
9437 (strmovhi, strmovqi expander): New expanders.
9438 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
9439 * i386.c (x86_single_stringop): New global variable.
9440 * i386.h (x86_single_stringop): Declare.
9441 (TARGET_SINGLE_STRINGOP): New macro.
9442
9443 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
9444
9445 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
9446 integer vararg POSTINCREMENT before the destination of the jump
9447 for the hard fp case.
9448 (function_arg_pass_by_reference): Pass a copy of CUM to
9449 FUNCTION_ARG.
9450
9451 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
9452 for CONSTANT_ADDRESS_P above while loop for subreg.
9453
9454 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
9455
9456 * flow.c (propagate_block): When a prologue/epilogue insn
9457 is marked dead, unconditionally clear libcall_is_dead and
9458 insn_is_dead, and only dump rtl if warnings aren't being
9459 suppressed.
9460
9461 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
9462
9463 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
9464 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
9465 (FIXED_REGISTERS): Set dirflag as fixed.
9466 (CALL_USED_REGISTERS): Set dirflag as used.
9467 (REG_ALLOC_ORDER): Set dirflag as last one.
9468 (DIRFLAG_REG): New macro.
9469 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
9470 (HI_REGISTER_NAMES): Add dirflag.
9471 (DEBUF_PRINT_REG): Handle dirflag.
9472 * i386.md (type attribute): New cld and str types.
9473 (length_opcode attribute): Set cld and str to 1.
9474 (memory attribute): Set str to unknown - it is not clear from the
9475 patterns.
9476 (pent_np function unit): Prefixed string operations takes 12 cycles
9477 minimally; cld takes 2 cycles.
9478 (ppro_uops attribute): Str is "many" and cld is "few".
9479 (ppro_p0 unit): Handle cld here.
9480 (k6_alux unit): Handle cld and str types.
9481 (k6_load unit): It is ocupied by str opcodes.
9482 (k6_store unit): It is ocupied by str opcodes.
9483 (athlon_decode): Str is vector decoded.
9484 (athlon_ieu): Handle str and cld.
9485 (cld pattern): New.
9486 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
9487 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
9488 cmpstrsi_nz_1 insn): Do not output cld instruction
9489
9490 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
9491
9492 * gcc.texi (G++ and GCC): Add Java and Chill.
9493 (Bug Critera): Don't list languages.
9494
9495 * gcc.texi (Incompatibilities): No longer claim most C compilers
9496 are K&R.
9497
9498 * gcc.texi (G++ and GCC): Update other front-ends list.
9499
9500 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
9501
9502 * i386.c (ix86_expand_setcc): Fix typo.
9503 (ix86_expand_movcc): Similarly.
9504
9505 * Band-aid until haifa's bitset implementation is nuked.
9506 * haifa-sched.c (extract_bitlst): New parameter for size of the
9507 bitset in bits. All callers changed. Avoid looking at undefined
9508 bits in the bitset.
9509 (edgeset_bitsize): New variable.
9510 (schedule_region): Initialize edgeset_bitsize.
9511
9512 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9513
9514 * Makefile.in (optabs.o): Depend on real.h
9515 (resource.o): Depend on insn-attr.h
9516
9517 * builtins.c (result_vector): Wrap prototype in macro conditions
9518 governing definition and use.
9519
9520 * c-common.c: Include tm_p.h.
9521
9522 * c-lex.c: Likewise.
9523
9524 * elfos.h: Constify a char*.
9525
9526 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
9527 (get_attr_length, shorten_branches, profile_after_prologue): Mark
9528 parameter with ATTRIBUTE_UNUSED.
9529
9530 * fold-const.c (exact_real_inverse): Wrap variable `i' in
9531 CHECK_FLOAT_VALUE.
9532
9533 * haifa-sched.c (schedule_insns): Mark parameter with
9534 ATTRIBUTE_UNUSED.
9535
9536 * optabs.c: Include real.h.
9537
9538 * real.h (ereal_atof): Add prototype arguments.
9539
9540 * resource.c: Include insn-attr.h.
9541
9542 * sdbout.c (sdbout_queue_anonymous_type,
9543 sdbout_dequeue_anonymous_types): Wrap in macro
9544 SDB_ALLOW_FORWARD_REFERENCES.
9545 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
9546 ATTRIBUTE_UNUSED.
9547
9548 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
9549
9550 * stupid.c: Include tm_p.h.
9551
9552 * tree.c (real_value_from_int_cst): Mark parameter with
9553 ATTRIBUTE_UNUSED.
9554
9555 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9556
9557 * i960-protos.h: New file.
9558
9559 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
9560 time warnings.
9561
9562 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
9563
9564 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9565
9566 * combine.c (expand_field_assignment): Do not discard SUBREGs
9567 while computing nonzero_bits.
9568
9569 2000-01-09 Nick Clifton <nickc@cygnus.com>
9570
9571 * config/arm/arm.c: Fix compile time warnings about signed vs
9572 unsigned constants.
9573 * config/arm/arm.h: Fix compile time warnings about signed vs
9574 unsigned constants.
9575
9576 2000-01-09 Philip Blundell <philb@gnu.org>
9577
9578 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
9579 than `ldm' with only one register.
9580 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
9581 only one register.
9582
9583 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
9584 clobbered.
9585
9586 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
9587
9588 * config/ns32k/ns32k.md (load or push effective address): Operand 1
9589 must have SImode.
9590
9591 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9592
9593 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
9594 assignment used as truth value.
9595
9596 * function.c (assign_temp): Mark parameter `dont_promote' with
9597 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
9598 PROMOTE_FOR_CALL_ONLY.
9599
9600 * genrecog.c (write_subroutine): Mark variable `operands' with
9601 ATTRIBUTE_UNUSED.
9602
9603 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
9604 ATTRIBUTE_UNUSED.
9605
9606 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
9607 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
9608
9609 * toplev.c (note_deferral_of_defined_inline_function): Likewise
9610 for `decl'.
9611
9612 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9613
9614 * config/c4x.h: Tidy up comments.
9615 * config/c4x.c: Likewise.
9616
9617 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
9618
9619 * fold-const.c (lshift_double, rshift_double): Handle
9620 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
9621
9622 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9623
9624 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
9625 in prepare_function_start().
9626
9627 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
9628
9629 * config/v850/v850.c (expand_epilogue): Interrupt functions no
9630 longer allocate extra stack for function calls.
9631
9632 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9633
9634 * config/c4x/c4x.md (*subqf3_set): Fix typo.
9635
9636 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9637
9638 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
9639
9640 2000-01-07 David Edelsohn <edelsohn@gnu.org>
9641
9642 * rs6000.c (processor_target_table): Add power3 as alias for 630.
9643 * aix43.h: Revert Aug 2 change.
9644 (HAS_INIT_SECTION): Define, not visible yet.
9645 (LD_INIT_SWITCH): Define, not visible yet.
9646 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
9647
9648 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
9649
9650 * collect2.c (main): Expand ld2 size further.
9651 (export_object_lst): Cast assignment to avoid warning.
9652 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
9653 (scan_prog_file, COFF): Do not collect initialization or
9654 finalization functions generated for entire shared object if
9655 init/fini support present.
9656
9657 2000-01-07 Nick Clifton <nickc@cygnus.com>
9658
9659 * config/elfos.h: Tidy up formatting of marcos. Make sure
9660 that .section directives are always prefixed by a tab.
9661
9662 * config/svr4.h: Add #include "elfos.h" and remove duplicate
9663 definitions.
9664
9665 2000-01-07 Matt Austern <austern@sgi.com>
9666
9667 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
9668 expon.
9669
9670 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
9671
9672 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
9673 crtstuff.c.
9674 (crtbegin.o, s-crtS): Likewise.
9675
9676 2000-01-06 Richard Henderson <rth@cygnus.com>
9677
9678 * alpha.md (adddi_2+1): Limit offset such that it will be
9679 loadable with a single ldah+lda pair.
9680 (adddi_2+2): Explicitly fail split if we can't make it work.
9681
9682 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
9683
9684 * protoize.c: Conditionally include unistd.h.
9685 (IS_SAME_PATH_CHAR): New macro.
9686 (IS_SAME_PATH): New macro.
9687 (CPLUS_FILE_SUFFIX): New macro.
9688 (cplus_suffix): New static variable.
9689 (is_abspath): New static function.
9690 (in_system_include_dir): Handle DOS style pathnames.
9691 (file_could_be_converted): Likewise.
9692 (file_normally_convertible): Likewise.
9693 (directory_specified_p): Likewise.
9694 (file_excluded_p): Likewise.
9695 (abspath): Likewise.
9696 (shortpath): Likewise.
9697 (referenced_file_is_newer): Likewise.
9698 (save_def_or_dec): Likewise.
9699 (do_processing): Likewise.
9700 (main): Likewise.
9701 (edit_file): Likewise. Use rename instead of link.
9702 (rename_c_file): Likewise. Don't rename syscalls file.
9703 (munge_compile_params): Define null device for DOS based systems.
9704 (process_aux_info_file): Use binary mode if appliable.
9705 (edit_file): Likewise.
9706 * invoke.texi (Running Protoize): Document C++ suffixes used.
9707
9708 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
9709 IS_DIR_SEPARATOR macros.
9710 * collect2.c: Likewise.
9711 * cppinit.c: Likewise.
9712 * dwarf2out.c: Likewise.
9713 * gcc.c: Likewise.
9714 * gcov.c: Likewise.
9715 * prefix.c: Likewise.
9716 * rtl.c: Likewise.
9717 * toplev.c: Likewise.
9718 * system.h: And move to here.
9719
9720 * prefix.c (update_path): Fix typo in variable name.
9721
9722 2000-01-06 Richard Henderson <rth@cygnus.com>
9723
9724 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
9725 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
9726 (count_reg_sets_1, count_reg_references): Likewise.
9727 (flow_loops_level_compute): Start counting actual loop depth at 1.
9728 (flow_loops_find): Likewise.
9729 * local-alloc.c (update_equiv_regs): Likewise.
9730 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
9731
9732 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
9733
9734 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
9735 FIRST_PSEUDO_REGISTER
9736 * dwarf2out.c: Don't include frame.h
9737 * dwarfout.c: Likewise
9738 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
9739 frame.h
9740
9741 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
9742
9743 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
9744 dead registers.
9745
9746 * i386.c (movsf splitter): Fix typo in my last checkin.
9747
9748 2000-01-05 Nick Clifton <nickc@cygnus.com>
9749
9750 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
9751 own definition of this macro.
9752 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
9753 flag_data_sections or UNIQUE_SECTION_P are true.
9754
9755 * tm.texi (UNIQUE_SECTION): Document that it can be called for
9756 unitialised data decls.
9757
9758 * config/i386/winnt.c (i386_pe_unique_section): Cope with
9759 being called for uninitialised data.
9760
9761 * config/i386/interix.c (i386_pe_unique_section): Cope with
9762 being called for uninitialised data.
9763
9764 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
9765 for uninitialised data.
9766
9767 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
9768 for uninitialised data.
9769
9770 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
9771 for uninitialised data.
9772
9773 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
9774 (UNIQUE_SECTION_P): Always generate a unique section if
9775 flag_data_sections is true.
9776 (UNIQUE_SECTION): Also generate unique sections for
9777 uninitialised data.
9778 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
9779 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
9780 named_section().
9781
9782 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9783
9784 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
9785 SI, or DI.
9786
9787 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9788
9789 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
9790 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
9791 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
9792 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
9793 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
9794
9795 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
9796
9797 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
9798
9799 * c-decl.c (finish_enum): Simplify code to determine minimum and
9800 maximum values of the enum, and calculate the type. Remove check
9801 for FUNCTION_DECLs in the values list, which cannot happen. Replace
9802 the DECL_INITIAL of each enumeration constant with a copy converted
9803 to the enumeration type. When updating variant types, don't bother
9804 updating the type itself.
9805
9806 * c-typeck.c (build_binary_op): Simplify conditional expressions
9807 when weeding out spurious signed-unsigned warnings. Add new
9808 spurious warning category: if the unsigned quantity is an enum
9809 and its maximum value fits in signed_type(result_type). Update
9810 commentary.
9811 (build_conditional_expr): Warn here if one alternative is signed
9812 and the other is unsigned.
9813
9814 2000-01-05 Nick Clifton <nickc@cygnus.com>
9815
9816 * config/fr30/fr30.h: Remove extraneous comments.
9817
9818 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
9819
9820 * reload1.c (choose_reload_regs): When disabling a reload, also
9821 set reload_spill_index to -1.
9822
9823 2000-01-04 Joel Sherrill (joel@OARcorp.com>
9824
9825 * configure.in (m68*-*-rtemscoff*): New target, formal name for
9826 old m68*-*-rtems*.
9827 (m68*-*-rtemself*): New target.
9828 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
9829 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
9830 (sparc*-*-rtemself*): New target.
9831 (sparc*-*-rtems*): Now elf not a.out.
9832 * config/i386/rtems.h: Include config/rtems.h.
9833 * config/i386/rtemself.h: Include config/rtems.h.
9834 * config/i960/rtems.h: Include config/rtems.h.
9835 * config/m68k/rtems.h: Include config/rtems.h.
9836 * config/m68k/rtemself.h: Include config/rtems.h.
9837 * config/mips/rtems64.h: Include config/rtems.h.
9838 * config/pa/rtems.h: Include config/rtems.h.
9839 * config/rs6000/rtems.h: Include config/rtems.h.
9840 * config/sh/rtems.h: Include config/rtems.h.
9841 * config/sh/rtemself.h: Include config/rtems.h.
9842 * config/sparc/rtems.h: Include config/rtems.h.
9843 * config/sparc/rtemself.h: Include config/rtems.h
9844
9845 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
9846
9847 * final.c (shorten_branches): Correctly compute length of
9848 asms without operands.
9849
9850 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
9851
9852 * configure.in: Add pj target.
9853 * configure: Regenerate.
9854 * config/pj: New directory.
9855 * config/pj/lib1funcs.S: New file.
9856 * config/pj/linux.h: New file.
9857 * config/pj/pj.c: New file.
9858 * config/pj/pj.md: New file.
9859 * config/pj/pjl.h: New file.
9860 * config/pj/t-pj: New file.
9861 * config/pj/xm-pj.h: New file
9862
9863 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
9864
9865 * toplev.c (rest_of_compilation): Run shorten-branches before
9866 reg-stack for now.
9867
9868 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9869
9870 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
9871 macros so that they're consistent with their names.
9872 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
9873 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
9874
9875 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9876
9877 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
9878 modified inadvertently.
9879
9880 2000-01-04 Joel Sherrill <joel@OARcorp.com>
9881
9882 * configure.in (v850*-*-rtems*): New target.
9883 * configure: Regenerate.
9884 * config/v850/rtems.h: New file.
9885
9886 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
9887
9888 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
9889 (__gthread_key_create): Likewise.
9890 (__gthread_key_dtor): Likewise.
9891 (__gthread_once): Fix logic.
9892 (__gthread_key_delete): Cast away constness.
9893
9894 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
9895 * invoke.texi: Document.
9896 * i386/mingw32.h (CPP_SPEC): Use.
9897 (LIBGCC_SPEC): Likewise.
9898 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
9899
9900 2000-01-04 David Edelsohn <edelsohn@gnu.org>
9901
9902 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
9903 (HANDLE_PRAGMA_PACK): Undefine.
9904 (SLOW_UNALIGNED_ACCESS): Define.
9905
9906 2000-01-04 David Edelsohn <edelsohn@gnu.org>
9907
9908 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
9909 to default definition.
9910 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
9911 (store_fixed_bit_field): Call macro with word_mode and alignment.
9912 (extract_bit_field): Call macro with relevant mode and alignment.
9913 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
9914 to default definition.
9915 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
9916 and alignment.
9917 (move_by_pieces_ninsns): Likewise.
9918 (clear_by_pieces): Likewise.
9919 (emit_push_insn): Likewise.
9920 (store_field): Call macro with relevant mode and alignment.
9921 (expand_expr): Likewise.
9922 (expand_expr_unaligned): Likewise.
9923
9924 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
9925 (SLOW_UNALIGNED_ACCESS): Define.
9926 (CASE_VECTOR_MODE): Always use 32-bit offsets.
9927 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
9928 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
9929 (toc_section): Likewise and .toc pseudo-op.
9930 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
9931 64-bit mode.
9932 (TEXT_SECTION_ASM_OP): Likewise.
9933 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
9934 32-bit offsets.
9935
9936 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
9937 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
9938 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
9939 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
9940 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
9941
9942 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
9943
9944 * regclass.c: Revert my Jan 4 change to loop cost computation.
9945
9946 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
9947
9948 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
9949 compilation.
9950
9951 2000-01-04 Stan Cox <scox@cygnus.com>
9952
9953 * haifa-sched.c (build_control_flow): Change unreachable simple
9954 loop test to check if current block has only one predecessor.
9955 (find_rgns): Initialize degree. Use dest as degree index, not src.
9956
9957 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9958
9959 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
9960
9961 * calls.c (expand_call): Likewise for
9962 `old_stack_arg_under_construction'.
9963
9964 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
9965
9966 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
9967 `save_constant'.
9968
9969 * gcc.c (execute): Likewise for `ut' and `st'.
9970
9971 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
9972
9973 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
9974
9975 * jump.c (jump_optimize_1): Likewise for `temp2'.
9976
9977 * local-alloc.c (block_alloc): Likewise for `r1'.
9978
9979 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
9980
9981 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
9982 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
9983
9984 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
9985 and `set2'.
9986
9987 * reload.c (find_reloads): Likewise for `goal_alternative_number'
9988 and `goal_earlyclobber'.
9989
9990 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
9991
9992 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
9993
9994 * stupid.c (stupid_life_analysis): Likewise for `chain'.
9995
9996 * unroll.c (copy_loop_body): Likewise for `copy'.
9997
9998 * varasm.c (output_constructor): Likewise for `byte'.
9999
10000 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
10001
10002 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
10003 all FP constants for constant->reg moves.
10004 (ix86_split_to_parts): Try to convert memory address into immediate
10005 when available in the constant pool.
10006 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
10007 moves.
10008 (LEGITIMATE_CONSTANT_P): Return 1.
10009 * i386.md (pushsf): New splitter to convert constant pool memory
10010 reference to immediate.
10011 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
10012 reload.
10013
10014 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
10015
10016 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
10017 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
10018 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
10019 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
10020 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
10021
10022 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
10023
10024 * ginclude/stdbool.h: Support compilation as C++.
10025
10026 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10027
10028 * fold-const.c (make_range): Don't try to reverse an unbounded range.
10029
10030 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
10031
10032 * regclass.c (regclass): Properly compute loop_cost. Adjust
10033 comments.
10034
10035 * regclass.c: Fix minor whitespace problems.
10036
10037 2000-01-03 Anthony Green <green@cygnus.com>
10038
10039 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
10040 Restore the pic register if required.
10041
10042 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
10043
10044 * c-common.c (format_char_info): Update comment.
10045 (check_format_info): Recognize 'z' modifier in the same way 'Z'
10046 was recognized. Emit warning for formats new in ISO C99 only
10047 if flag_isoc9x is not set.
10048
10049 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
10050
10051 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
10052
10053 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
10054
10055 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
10056 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
10057 (make_compound_operation): Choose cheaper alternative between
10058 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
10059
10060 * regclass.c (op_costs): Remove global variable.
10061 (record_reg_classes): New parameter "op_costs" and "reg_pref".
10062 (record_operand_costs): Break out from ...
10063 (scan_one_insn): ... here.
10064 (dump_regclass): Make dumps nicer.
10065 (regclass): Dump preferrences choosed and changes done during passes.
10066
10067 2000-01-03 Jakub Jelinek <jakub@redhat.com>
10068
10069 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
10070
10071 2000-01-03 Jakub Jelinek <jakub@redhat.com>
10072
10073 * config/sparc/sparc.c (gen_df_reg): New function.
10074 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
10075 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
10076 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
10077 movtf_cc_reg_sp64+1): Use it.
10078
10079 2000-01-02 Mark Mitchell <mark@codesourcery.com>
10080
10081 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
10082 copied LABEL_DECLs.
10083
10084 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
10085
10086 * config/i386/i386.c (ix86_expand_unary_operator): Function
10087 definition made void.
10088 (ix86_expand_binary_operator): Update outdated preceding comment.
10089 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
10090 prototype.
10091
10092 * config/i386/i386.c (override_options): Fix option-name typo.
10093
10094 2000-01-02 Mark Mitchell <mark@codesourcery.com>
10095
10096 * system.h (CEIL): Define.
10097 * builtins.c (CEIL): Remove.
10098 * expmed.c (CEIL): Likewise.
10099 * expr.c (CEIL): Likewise.
10100 * stor-layout.c (CEIL): Likewise.
10101
10102 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10103
10104 * expr.c (store_constructor_field): Fix typo introduced with last
10105 gcc2 merge.
10106
10107 2000-01-01 Mark Mitchell <mark@codesourcery.com>
10108
10109 * tree.h (BINFO_N_BASETYPES): New macro.
10110
10111 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
10112
10113 * expmed.c (emit_store_flag): Prevent losing a pending stack
10114 adjust the same way we prevent losing queued increments.
10115
10116 Fri Dec 31 19:10:31 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10117
10118 * function.c (update_temp_slot_address): Handle case where sum of
10119 temporary address plus offset in register is a valid address.
10120
10121 1999-12-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10122
10123 * genrecog.c (change_state) Corrected typo.
10124
10125 1999-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10126
10127 * system.h (bcopy, bcmp, bzero, index, rindex, atof, atol, free,
10128 getcwd, getenv, getwd, sbrk, strstr, malloc, calloc, realloc,
10129 strerror, getrlimit, setrlimit, abort): Add prototype arguments.
10130
10131 1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
10132
10133 * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE
10134 case, expand GT comparisons correctly. Fix a comment before this
10135 part of the code.
10136
10137 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
10138
10139 * dwarfout.c: Include "frame.h"
10140 * dwarf2out.c: Likewise.
10141 * Makefile.in (dwarfout.o): Depend on frame.h
10142 (dwarf2out.o): Likewise.
10143
10144 1999-12-29 "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
10145
10146 Restore i386 binary compatibility in Dwarf EH info.
10147 * config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old
10148 value of FIRST_PSEUDO_REGISTER.
10149 * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER.
10150 (struct frame_state): Use DWARF_FRAME_REGISTERS.
10151 * dwarfout.c (output_reg_number): Ditto.
10152 * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto.
10153 (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS.
10154
10155 1999-12-29 Bruce Korb <autogen@linuxbox.com>
10156
10157 * fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
10158 * fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
10159 (<hack>_RE_CT): not needed
10160 * fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
10161 rewritten to scan the file text once only
10162 "template<..." test added
10163 * fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
10164 (is_cxx_header): declaration added
10165 * fixinc/fixtests.c(is_cxx_header): removed
10166 (apply_fix_p_t): removed
10167 (double_slash_test): is_cxx_header is only called once now
10168 * fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
10169 * fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
10170 within the templates.
10171 The borken spelling of "broken" was fixed.
10172 * fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
10173 The default level depends on FIXINC_DEBUG.
10174
10175 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10176
10177 * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
10178 Otherwise provide a declaration for atexit.
10179 (init_dummy): Make sure dummy call to atexit is nevertheless
10180 called with correct number of args.
10181
10182 * frame.c: Update comments referring to other files.
10183
10184 * libgcc2.c: Likewise.
10185
10186 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10187
10188 * cse.c (free_element, get_element): Remove unused prototypes.
10189
10190 * fold-const.c (extract_muldiv): Initialize variables `op0' and
10191 `op1'.
10192
10193 * jump.c (invert_exp): Add explicit braces to avoid ambiguous
10194 `else' clauses.
10195
10196 Wed Dec 29 12:44:54 1999 Donald Lindsay <dlindsay@cygnus.com>
10197
10198 * configure.in,configure: case arm for mn10200-*-* now sets
10199 float_format=i32 so that float.h will correctly claim "double"
10200 to be 32 bits. Ran autoconf to generate configure from .in file.
10201
10202 Wed Dec 29 10:53:21 1999 Jeffrey A Law (law@cygnus.com)
10203
10204 * pa.md (conditional zero): If op1 is a register, force it into
10205 the same register as op0.
10206
10207 1999-12-28 Mark Mitchell <mark@codesourcery.com>
10208
10209 * tree.h (BINFO_BASETYPES): Improve documentation.
10210
10211 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10212
10213 * configure.in (--enable-checking): Use a more portable `for'
10214 loop syntax.
10215
10216 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10217
10218 * configure.in (AC_DECL_SYS_SIGLIST, xm-siglist.h,
10219 arm/xm-netbsd.h, NO_SYS_SIGLIST): Don't use.
10220
10221 * xm-siglist.h, arm/xm-netbsd.h, mips/xm-news.h, mips/xm-sysv4.h:
10222 Delete files.
10223
10224 * gcc.texi (NO_SYS_SIGLIST, sys_siglist, SYS_SIGLIST_DECLARED):
10225 Delete descriptions.
10226
10227 * i386/osf1elf.h, i386/xm-cygwin.h, i386/xm-mingw32.h, m68k/3b1.h,
10228 m68k/a-ux.h, m68k/dpx2.h, m68k/plexus.h, m68k/xm-hp320.h,
10229 m88k/xm-m88k.h, mips/x-sni-svr4, pa/xm-pa.h, pa/xm-pahpux.h,
10230 pa/xm-papro.h, we32k/xm-we32k.h, winnt/xm-winnt.h, xm-interix.h,
10231 xm-svr4.h: Remove all instances of sys_siglist handling.
10232
10233 1999-12-27 Jakub Jelinek <jakub@redhat.com>
10234
10235 * config/sparc/sparc.md (cmp_zero_qi,
10236 cmp_zero_extendqisi2_andcc_set, cmp_zero_qi_sp64,
10237 cmp_zero_extendqidi2_andcc_set): New patterns.
10238
10239 1999-12-28 Manfred Hollstein <mhollstein@cygnus.com>
10240
10241 * m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
10242 (LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
10243 (fpgnulib.c, xfgnulib.c): Add rules.
10244 * m68k/t-mot3300-gas: Likewise.
10245
10246 1999-12-27 Ian Lance Taylor <ian@zembu.com>
10247
10248 * configure.in: Avoid [[ by using test and changequote. Add
10249 changequote required by 1999-12-14 change.
10250 * configure: Rebuild.
10251
10252 1999-12-27 Clinton Popetz <cpopetz@cygnus.com>
10253
10254 * config/mips/mips.h: Fix typo from 12/17/99 libgcc2 fix.
10255
10256 1999-12-27 Christophe Jaillet <jaillet.christophe@caramail.com>
10257
10258 * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
10259 * flow.c (find_use_as_address): Likewise.
10260 * function.c (fixup_var_refs_1): Likewise.
10261 (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
10262 * jump.c (invert_exp, redirect_exp): Likewise.
10263 * loop.c (replace_call_address): Likewise.
10264 (count_nonfixed_reads): Likewise.
10265 * rtlanal.c (modified_between_p): Likewise.
10266 (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
10267 (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
10268 * unroll.c (remap_split_bivs): Likewise.
10269
10270 1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10271
10272 * diagnostic.c (v_message_with_decl): Use .* format specifier
10273 instead of building the format specifier width manually.
10274
10275 * system.h (strsignal): Don't check HAVE_STRSIGNAL when
10276 determining whether to provide a prototype. Remove the
10277 sys_siglist clause in the conditional.
10278
10279 1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10280
10281 * fold-const.c (operand_equal_p): Use memcmp to compare string
10282 constants.
10283 Suggested by D. J. Bernstein
10284
10285 1999-12-17 Jakub Jelinek <jakub@redhat.com>
10286
10287 * config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
10288 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
10289 compiling libgcc2.
10290 * config/mips/mips.h (TARGET_64BIT): Likewise.
10291 * config/rs6000/rs6000.h (TARGET_POWERPC64): Likewise.
10292 * libgcc2.c: Use {,U}{HW,W,DW}type and DWunion everywhere instead
10293 of {SI,DI}type and DIunion. Define these types to QI/HI modes on
10294 dsps. Give routines proper names if SI/DI modes are not used.
10295 * longlong.h: Use DWunion instead of DIunion.
10296
10297 1999-12-26 Zack Weinberg <zack@wolery.cumb.org>
10298
10299 * acconfig.h: New ENABLE flags: TREE_CHECKING, RTL_CHECKING,
10300 GC_CHECKING, GC_ALWAYS_COLLECT.
10301 * configure.in: Allow --enable-checking with an argument
10302 listing check modes to enable.
10303 * config.in, configure: Rebuilt.
10304 * ggc-page.c, ggc-simple.c: Define GGC_POISON (and
10305 GGC_ALWAYS_VERIFY for ggc-simple.c) only if
10306 ENABLE_GC_CHECKING. Define GGC_ALWAYS_COLLECT only if
10307 ENABLE_GC_ALWAYS_COLLECT.
10308 * rtl.h, rtl.c: Change ENABLE_CHECKING to ENABLE_RTL_CHECKING
10309 throughout.
10310 * tree.h, tree.c: Change ENABLE_CHECKING to
10311 ENABLE_TREE_CHECKING throughout.
10312
10313 Sun Dec 26 07:48:20 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10314
10315 * fold-const.c (fold_truthop): Properly check for FP RHS.
10316
10317 1999-12-24 Mark Mitchell <mark@codesourcery.com>
10318
10319 * toplev.h (note_deferall_of_defined_inline_function): Declare.
10320 * toplev.c (note_deferral_of_defined_inline_function): New
10321 function, split out from ...
10322 (rest_of_compilation): ... here. Use it.
10323
10324 Fri Dec 24 12:34:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10325
10326 * expr.c (store_constructor): Don't call clear_storage if size is
10327 variable.
10328
10329 1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10330
10331 * Makefile.in (toplev.o): Depend on loop.h.
10332
10333 * dwarfout.c: Include tm_p.h.
10334
10335 * emit-rtl.c (restore_emit_status): Mark parameter with
10336 ATTRIBUTE_UNUSED.
10337
10338 * final.c (final_scan_insn): Likewise.
10339
10340 * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
10341 flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
10342 flow_depth_first_order_compute, flow_loop_pre_header_find,
10343 flow_loop_tree_node_add, flow_loops_tree_build,
10344 flow_loop_level_compute, flow_loops_level_compute,
10345 flow_loop_outside_edge_p): Add prototypes.
10346 (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
10347
10348 * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
10349 Mark with ATTRIBUTE_NORETURN.
10350
10351 * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
10352
10353 * local-alloc.c (no_conflict_p): Likewise.
10354
10355 * loop.c (insert_bct): Hide definitions of variables with hidden
10356 usage.
10357 (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
10358
10359 * regclass.c (memory_move_secondary_cost): Mark variable `mem'
10360 with ATTRIBUTE_UNUSED.
10361 (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
10362 (reg_scan): Likewise.
10363
10364 * reload.c (find_reloads): Remove unused variables `changed'.
10365
10366 * reload1.c (reload_reg_class_lower): Don't unnecessarily cast
10367 away const-ness.
10368 (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
10369 Remove unused variable `insn'.
10370
10371 * toplev.c: Include loop.h.
10372 (report_file_and_line): Remove unnecessary prototype.
10373
10374 * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
10375
10376 * unroll.c (biv_total_increment): Likewise.
10377
10378 Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10379
10380 * reload1.c (emit_input_reload_insns): Restore old behaviour
10381 wrt. 'special' reloads.
10382
10383 1999-12-23 Zack Weinberg <zack@wolery.cumb.org>
10384
10385 * Makefile.in (ggc-simple.c, ggc-page.c): Don't depend on
10386 hash.h. (cse.c): Don't depend on hashtab.h.
10387
10388 * cse.c: Don't include hashtab.h.
10389 (hash_cse_reg_info, cse_reg_info_equal_p): Delete prototypes
10390 of dead functions.
10391 * ggc-simple.c: Don't include hash.h.
10392
10393 1999-12-22 Jason Merrill <jason@casey.cygnus.com>
10394
10395 * dwarf2out.c (add_abstract_origin_attribute): Call
10396 gen_abstract_function on our function context.
10397
10398 Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
10399
10400 * Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.
10401
10402 1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10403
10404 * config/c4x/c4x.c (c4x_address_cost): Add statement to default
10405 case in switch.
10406
10407 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10408
10409 * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0
10410 constraints to "a!r".
10411
10412 1999-12-21 Mark Mitchell <mark@codesourcery.com>
10413
10414 * Makefile.in (calls.o): Depend on function.h.
10415 (alias.o): Likewise.
10416
10417 1999-12-21 Bernd Schmidt <bernds@cygnus.co.uk>
10418
10419 * reload1.c (emit_reload_insns): Break out code and variables into...
10420 (input_reload_insns, other_input_address_reload_insns,
10421 other_input_reload_insns, input_address_reload_insns,
10422 inpaddr_address_reload_insns, output_reload_insns,
10423 output_address_reload_insns, outaddr_address_reload_insns,
10424 operand_reload_insns, other_operand_reload_insns,
10425 other_output_reload_insns): ... new static variables, and...
10426 (emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
10427 do_output_reload): ... new functions.
10428
10429 Tue Dec 21 07:06:36 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10430
10431 * pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
10432
10433 1999-12-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10434
10435 * md.texi: Add c4x constraints documentation.
10436
10437 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10438
10439 * config/i386/dgux.c (struct option): Rename to
10440 lang_independent_option.
10441 (struct m_options): Add description field.
10442 (output_options): Rename option type, add sep declaration, output
10443 ix86_cpu_string and ix86_arch_string only if set.
10444 (output_file_start): Rename option type.
10445
10446 Mon Dec 20 23:15:36 1999 Mike Stump <mrs@wrs.com>
10447
10448 * Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
10449 stmp-int-hdrs.
10450 (libgcc2.a): Similarly.
10451
10452 Mon Dec 20 23:06:47 1999 David Edelsohn <edelsohn@gnu.org>
10453
10454 * longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
10455 with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
10456 for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
10457
10458 Mon Dec 20 23:02:03 1999 Jeffrey A Law (law@cygnus.com)
10459
10460 * fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
10461 Remove redundant initialization of "frexpon" and "expon".
10462
10463 Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10464
10465 * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
10466
10467 * expr.c (store_constructor): New argument SIZE; pass to clear_storage.
10468 (store_constructor_field, expand_expr): Pass new arg.
10469
10470 1999-12-20 Mark Mitchell <mark@codesourcery.com>
10471
10472 * Makefile.in (explow.o): Depend on function.h.
10473
10474 * stor-layout.c (set_sizetype): Fix typo.
10475
10476 1999-12-20 Bernd Schmidt <bernds@cygnus.co.uk>
10477
10478 * function.c (cfun): Renamed from current_function. All users
10479 changed.
10480 * function.h (cfun): Rename declaration as well.
10481
10482 * reload.h (struct insn_chain): Change live_throughout and dead_or_set
10483 to be of type regset_head, not regset. All users changed by adding
10484 address operator.
10485 * reload1.c (new_insn_chain): Don't allocate regsets, just clear them.
10486
10487 1999-12-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10488
10489 * config/c4x/rtems.h: New file.
10490
10491 1999-12-19 Bernd Schmidt <bernds@cygnus.co.uk>
10492
10493 * reload1.c (spill_failure): Take class of failed reload as argument
10494 and print it. Caller changed.
10495
10496 Sun Dec 19 07:50:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10497
10498 * rs6000.h (SUBTARGET_DEFAULT): New macro.
10499 (TARGET_SWITCHES): Allow subtargets to default switches.
10500 * rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
10501
10502 1999-12-18 Mark Mitchell <mark@codesourcery.com>
10503
10504 * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
10505 in a main program.
10506
10507 Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
10508
10509 * cccp.c (main): Define __STDC_VERSION__ as necessary.
10510 * cppinit.c (cpp_handle_option): Likewise.
10511
10512 * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
10513 determine when to define.
10514
10515 Sat Dec 18 20:34:00 1999 Richard Henderson <rth@cygnus.com>
10516
10517 * alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
10518 cmove with mismatched test and data modes.
10519
10520 Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
10521
10522 * c-typeck.c (c_expand_start_case): Don't warn for long switch
10523 in system headers.
10524
10525 Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10526
10527 * alias.c: Minor reformatting.
10528 * flow.c: Likewise.
10529 * regs.h: Likewise.
10530 * stor-layout.c: Likewise.
10531 * fold-const.c: Likewise.
10532 (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
10533 (struct cb_args, const_binop_1, const_binop): Pass type of arg,
10534 not arg itself.
10535 (size_int_wide): Cache nodes even if garbage collecting.
10536 (twoval_comparison_p): Reenable SAVE_EXPR case if operand
10537 of SAVE_EXPR has no side effects.
10538 * cse.c: Move a comment.
10539 * tree.c: Minor reformatting.
10540 (int_size_in_bytes): Return -1 if constant overflows.
10541
10542 Sat Dec 18 18:30:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10543
10544 * unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
10545
10546 1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
10547
10548 * objc/objc-parse.c: Regenerate. This file must be rebuilt
10549 after any change to c-parse.in, even if objc-parse.y didn't
10550 change. Oops.
10551
10552 1999-12-18 David S. Miller <davem@redhat.com>
10553
10554 * toplev.c (rest_of_compilation): Restore BLOCK tree
10555 reconstruction and branch shortening changes lost in
10556 December 18th change.
10557
10558 Sat Dec 18 05:29:29 1999 Scott Bambrough <scottb@netwinder.org>
10559
10560 * config/arm/linux-elf.h: Change all instances of
10561 ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
10562 * config/arm/uclinux-elf.h: Likewise.
10563
10564 1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
10565
10566 * toplev.c (notice, vmessage, v_message_with_file_and_line,
10567 v_message_with_decl, file_and_line_for_asm,
10568 v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
10569 verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
10570 v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
10571 v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
10572 pfatal_with_name, fatal_io_error, need_error_newline,
10573 last_error_function, last_error_tick, announce_function,
10574 default_print_error_function, print_error_function,
10575 report_error_function, fnotice, error_with_file_and_line,
10576 error_with_decl, error_for_asm, error, set_fatal_function, fatal,
10577 _fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
10578 warning_with_decl, warning_for_asm, warning, pedwarn,
10579 pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
10580 diagnostic.c
10581 (compile_file): Use fnotice instead of notice. Adjust call.
10582
10583 * diagnostic.c: New file.
10584
10585 * Makefile.in (OBJS): Include diagnostic.o
10586 (diagnostic.o): Define dependence.
10587
10588 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10589
10590 * config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
10591 Tweak formatting.
10592
10593 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10594
10595 * config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
10596
10597 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
10598
10599 * fixtests.c (is_cxx_header): New fn, split out of
10600 double_slash_test.
10601 (else_endif_label): Allow "#endif // comment" in C++ headers,
10602 as determined by is_cxx_header.
10603 * fixfixes.c (else_endif_label_fix): Update comment.
10604 * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
10605 a tty.
10606 * genfixes: Correct double thinko in commandline parsing.
10607 * hackshell.tpl: Generate correct sh syntax for bypass
10608 entries.
10609
10610 * inclhack.def (all): Whenever an inserted preprocessor
10611 conditional is split over multiple lines, use double
10612 backslashes in this file so the fixed header will be readable.
10613
10614 (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
10615 and add bypass entry for correct version of this header.
10616 (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
10617 (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
10618
10619 (hpux8_bogus_inlines): New fix, split from...
10620 (ultrix_atof_param) ... here.
10621 (math_expression): Add bypass entry keyed to glibc comment
10622 indicating the problem has been dealt with; disable
10623 unnecessary sed operations; update commentary.
10624 (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
10625 add select and bypass entries, simplify shell operation.
10626 (math_huge_val_ifndef): Split from math_gcc_ifndefs.
10627
10628 (ip_missing_semi, rs6000_param, tinfo_cplusplus,
10629 ultrix_atof_param): Add select entry.
10630 (stdio_va_list, sunos_mather_decl): Add bypass entry.
10631 (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
10632 comments with the fixes they describe.
10633
10634 * c-parse.in (string action): Do not warn about ANSI string
10635 concatenation in system headers. Affects C parser only.
10636 * c-parse.y, c-parse.c, c-parse.h: Rebuild.
10637
10638 1999-12-16 Jakub Jelinek <jakub@redhat.com>
10639
10640 * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
10641 compiling libgcc2 the macro depends always on arch cpp defines.
10642
10643 Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
10644
10645 * loop.c (insert_loop_mem): Don't record MEMs from inside
10646 EXPR_LISTs.
10647
10648 Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
10649
10650 * regclass.c (regclass): Do not use flowgraph when not optimizing.
10651
10652 * gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
10653 notes too, create one when replacement failed, attempt to simplify
10654 resulting notes.
10655 (cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
10656 or REG_EQUIV notes.
10657
10658 1999-12-16 Mark Mitchell <mark@codesourcery.com>
10659
10660 * crtstuff.c (__dso_handle): Declare.
10661 (__cxa_finalize): Likewise.
10662 (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
10663 non-NULL.
10664
10665 * invoke.texi: Document -fuse-cxa-atexit.
10666
10667 * tree.h (ptr_type_node): Document.
10668 (const_ptr_type_node): Likewise.
10669
10670 Fri Dec 17 01:32:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10671
10672 * regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
10673 (optimize_reg_copy_2): Likewise.
10674 (optimize_reg_copy_3): Likewise.
10675 (fixup_match_2): Likewise.
10676 (regmove_optimize): Likewise.
10677 (fixup_match_1): Liekwise.
10678
10679 * i386.md (HI to SImode promoting splitters): Rewrite.
10680 (pushsf mem peep2): New.
10681 (testhi to andhi peep2): Remove.
10682 * i386.h (x86_promote_QImode): New.
10683 (TARGET_PROMOTE_QImode): New.
10684 (PREDICATE_CODES): Add promotable_binary_operator.
10685 * i386.c (x86_promote_QImode0: New.
10686 (promotable_binary_operator): New.
10687 * i386-protos.h (promotable_binary_operator): New.
10688
10689 * i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
10690 condition.
10691 (one_cmpl?i*): Pass "NOT" to unary_operator_ok.
10692
10693 1999-12-16 Mark Mitchell <mark@codesourcery.com>
10694
10695 * Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
10696 * function.c (insert_block_after_note): Remove.
10697 (retrofit_block): Likewise.
10698 (identify_blocks): Fix indentation.
10699 (reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
10700 NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
10701 * function.h (insert_block_after_note): Remove prototype.
10702 (retrofit_block): Likewise.
10703 * integrate.c (expand_inline_function): Don't call
10704 find_loop_tree_blocks. Use expand_start_bindings_and_block, not
10705 just expand_start_bindings. Use the block_map to remap old
10706 NOTE_BLOCKs to new ones.
10707 (integrate_decl_tree): Keep track of remapped blocks.
10708 * integrate.h (struct inline_remap): Add block_map.
10709 * stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
10710 NOTE_BLOCK on the notes.
10711 (expand_start_bindings): Rename to ...
10712 (expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
10713 (expand_end_bindings): Set NOTE_BLOCK.
10714 * toplev.c (rest_of_compilation): In function-at-a-time-mode,
10715 reconstruct the BLOCK tree.
10716 * tree.h (expand_start_bindings): Macroize. Call ...
10717 (expand_start_bindings_and_block): New function.
10718
10719 1999-12-16 Jakub Jelinek <jakub@redhat.com>
10720
10721 * config/sparc/sparc.c (print_operand): Cast fprintf arguments
10722 to match the format.
10723
10724 1999-12-16 David S. Miller <davem@redhat.com>
10725
10726 * expr.c (emit_move_insn_1): Only emit clobbers if one of
10727 the outputs is a SUBREG.
10728 * rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
10729 change.
10730
10731 * config/sparc/sparc.c (epilogue_renumber): Add default case
10732 to switch stmt.
10733
10734 Thu Dec 16 11:33:57 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10735
10736 * toplev.c (rest_of_compilation): Run branch shortening after
10737 reg-stack.
10738
10739 * regclass.c (loop_depth): Remove
10740 (scan_one_insn): Do not handle LOOP_NOTE insns.
10741 (regclass): Go through basic blocks and set loop_cost
10742
10743 Thu Dec 16 02:56:25 1999 Zack Weinberg <zack@bitmover.com>
10744
10745 * tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
10746
10747 Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10748
10749 * i386.md (movqi): Use "nonimmediate_operand" for output operand.
10750 (movstrictqi, movdi, movsf, movdf, movxf): Likewise.
10751 (adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
10752
10753 Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
10754
10755 * loop.c (insert_loop_mem): Ignore memory clobbers.
10756
10757 * combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
10758 to (OP A B).
10759
10760 Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com)
10761
10762 * profile.c: Remove redundant #include "output.h".
10763
10764 * h8300.md (HImode preinc peephole): Fix typo.
10765
10766 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
10767
10768 * function.c (retrofit_block): Abort if we don't find a suitable insn.
10769 (insert_block_after_note): Abort if we don't have a previous block.
10770 Remove FN parameter.
10771 * function.h: Adjust.
10772
10773 1999-12-15 Mark Mitchell <mark@codesourcery.com>
10774
10775 * builtins.c (expand_builtin_mathfn): Make sure not to expand the
10776 argument more than once.
10777
10778 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
10779
10780 * stmt.c (expand_decl): Expand upper bound of a dynamic array.
10781
10782 1999-12-15 Jakub Jelinek <jakub@redhat.com>
10783
10784 * expr.c (emit_group_load): Use dst mode if src is VOIDmode.
10785
10786 Wed Dec 15 16:11:55 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10787
10788 * function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
10789 (assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
10790 update stack_alignment_needed.
10791 (prepare_function_start): Initialize stack_alignment_needed
10792 * function.h (struct function): Add field stack_alignment_needed.
10793
10794 Wed Dec 15 14:55:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10795
10796 * caller-save.c (insert_one_insn): Returns struct insn_chain *.
10797 Handle live_throughout / dead_or_set instead of live_before /
10798 live_after.
10799 (save_call_clobbered_regs): Get register livenessinformation from
10800 chain->live_throughout.
10801 (add_stored_regs): New function.
10802 (insert_restore, insert_save): Add restored / saved registers to
10803 dead_or_set.
10804 * global.c (reg_dies): New parameter chain.
10805 (reg_becomes_live): Third parameter is regs_set now.
10806 Changed all callers.
10807 (reg_dies): New parameter chain. Changed all callers.
10808 (build_insn_chain): Set live_throughout instead of
10809 live_before / live_after.
10810 * reload.h (struct insn_chain): Replace members live_before /
10811 live_after with live_throughout / dead_or_set.
10812 * reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
10813 instead of live_before / live_after.
10814 (maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
10815 (order_regs_for_reload, find_reg, finish_spills): Likewise.
10816 (choose_reload_regs_init): Likewise.
10817 * stupid.c (current_chain, find_clobbered_regs): Delete.
10818 (stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
10819 instead of chain->live_before / chain->live_after.
10820 (mark_hard_ref): New function.
10821 (stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
10822
10823 1999-12-15 David S. Miller <davem@redhat.com>
10824
10825 * rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
10826
10827 Wed Dec 15 15:05:30 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10828
10829 * flow.c (calculate_loop_depth): Make global, remove prototype,
10830 rewrite to use new loop infrastructure.
10831 (find_basic_block): Remove calculate_loop_depth call.
10832 * toplev.c (rest_of_compilation): Call find_basic_block.
10833 * output.h (calculate_loop_depth): Declare.
10834
10835 * flow.c (dump_flow_info): Dump loop_depth.
10836 (flow_loops_nodes_find): Increase loop_depth for basic block in the
10837 body.
10838 (flow_loops_find): Initialize the loop_depth for each basic block.
10839
10840 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
10841
10842 * tree.c (decl_function_context): Handle virtual functions.
10843
10844 * tlink.c (scan_linker_output): Don't look in demangled name when
10845 looking for linker output keywords.
10846
10847 * dwarfout.c (output_type): We can defer namespace-scope classes.
10848
10849 Wed Dec 15 01:23:29 1999 Jeffrey A Law (law@cygnus.com)
10850
10851 * regclass.c (record_reg_classes): Update comment for merging
10852 register class preferences in reg->reg copies. Tighten conditions
10853 for merging register class preferences in reg->reg copies.
10854
10855 Wed Dec 15 02:19:32 1999 David Edelsohn <edelsohn@gnu.org>
10856
10857 * rs6000.md (tablejumpdi): Generate DImode LABEL_REF.
10858
10859 1999-12-14 Geoff Keating <geoffk@cygnus.com>
10860
10861 * config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
10862 (INIT_SECTION_ASM_OP): Delete.
10863 (FINI_SECTION_ASM_OP): Delete.
10864 (STARTFILE_SPEC): Define to hold just crtbegin.o.
10865
10866 1999-12-14 Jason Merrill <jason@casey.cygnus.com>
10867
10868 * dwarf2out.c (add_abstract_origin_attribute): Do call abort if
10869 the abstract origin wasn't emitted.
10870
10871 * dwarf2out.c (class_scope_p): New fn.
10872 (gen_subprogram_die): Use it.
10873 (gen_variable_die): Use it. Tweak logic.
10874 (gen_struct_or_union_type_die): Check context_die to determine
10875 if we're function-local.
10876 (dwarf2out_decl): Check DECL_BUILT_IN, not DECL_FUNCTION_CODE.
10877
10878 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
10879
10880 * loop.c (check_dbra_loop): Can't reverse a biv that has
10881 maybe_multiple set.
10882
10883 1999-12-14 Nick Clifton <nickc@cygnus.com>
10884
10885 * config/arm/arm.c: Add support for -mcpu=arm720 command line
10886 switch.
10887
10888 Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
10889
10890 * loop.c (strength_reduce): Fix sign of giv lifetime calculation
10891 for givs made from biv increments.
10892
10893 Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
10894
10895 * configure.in (alpha-osf, alpha-linux): Handle ev6[78].
10896 * alpha.c (override_options): Recognize -mcpu=ev67.
10897 * alpha.h (CPP_CPU_EV67_SPEC): New.
10898 (CPP_CPU_DEFAULT_SPEC): Examine TARGET_CPU_DEFAULT to use it.
10899 (EXTRA_SPECS): Update.
10900
10901 Tue Dec 14 08:04:28 1999 Richard Henderson <rth@cygnus.com>
10902
10903 * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
10904 appropriate for -lang-c89 and -std=*.
10905 * cppinit.c (cpp_handle_option): Likewise.
10906 (new_pending_define): New, split out from cpp_handle_option.
10907 * gcc.c (default_compilers): Don't define __STRICT_ANSI__
10908 or enable trigraphs for -ansi/-std=*.
10909
10910 * ginclude/stdarg.h (__va_copy): New.
10911 (va_copy): Don't define for C89.
10912
10913 Tue Dec 14 08:37:27 CST 1999 Clinton Popetz <cpopetz@cygnus.com>
10914
10915 * config/arm/arm.md (mulsidi3adddi, umulsidi3adddi): New patterns
10916 for long long multiply-accumulate.
10917
10918 Tue Dec 14 13:51:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10919
10920 * regclass.c (scan_one_insn): Set loop_cost to 1 when
10921 optimizing for size.
10922
10923 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
10924
10925 * reload1.c (reload): Can't avoid select_reload_regs/finish_spills
10926 if something changed. Back out that part of yesterday's changes.
10927
10928 * loop.c (loop_max_reg): New static variable.
10929 (loop_optimize): Initialize it. Eliminate one unnecessary call to
10930 max_reg_num.
10931 (scan_loop): Call reg_scan_update whenever we may have added new
10932 registers, and update loop_max_reg.
10933
10934 Tue Dec 14 12:07:29 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
10935
10936 * regclass.c (record_reg_classes): Do not do the copying preferrencing
10937 when source does not die.
10938
10939 * regclass.c (record_reg_classes): Handle INOUT operands propertly.
10940
10941 1999-12-14 Jakub Jelinek <jakub@redhat.com>
10942
10943 * config/sparc/linux64.h (TARGET_LIVE_G0,
10944 TARGET_BROKEN_SAVERESTORE): Don't support weird SPARC
10945 variants on Linux.
10946 * config/sparc/linux.h (TARGET_LIVE_G0,
10947 TARGET_BROKEN_SAVERESTORE): Likewise.
10948 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
10949 TARGET_BROKEN_SAVERESTORE): Likewise.
10950
10951 * config/sparc/sparc.h (SPARC_DEFAULT_CMODEL): Default to CM_32.
10952 (CONDITIONAL_REGISTER_USAGE): For block profiling fix %g4 on sparc64,
10953 not %g2.
10954 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Use %g4 instead of %g2
10955 as sparc64 block profiling register.
10956 * config/sparc/sparc.c (sparc_override_options): Allow block
10957 profiling with -m32.
10958 (sparc_block_profiler): Use %g4 instead of %g2 as sparc64 block
10959 profiling register.
10960 * config/sparc/linux64.h (MACHINE_STATE_*): Only provide these
10961 macros on TARGET_ARCH32. sparc.h has macros good enough for sparc64.
10962 * config/sparc/sol2.h (MACHINE_STATE_*): Likewise.
10963
10964 * config/sparc/xm-sp64.h: Avoid using __sparc_v9__ when testing
10965 for sparc64.
10966 * config/sparc/sparc.h: Likewise.
10967 * config/sparc/xm-sysv4-64.h: Likewise.
10968 * config/float-sparc.h: Likewise.
10969 * glimits.h: Likewise.
10970 * longlong.h: Likewise.
10971
10972 * config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
10973 (ASM_IDENTIFY_GCC): Remove.
10974
10975 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
10976
10977 * combine.c (combine_simplify_rtx): Don't make shared rtl.
10978 (simplify_logical): Likewise.
10979
10980 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
10981
10982 * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
10983 * cppfiles.c (INO_T_EQ): Likewise.
10984
10985 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
10986
10987 * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
10988 * i386/mingw32.h (LIB_SPEC): Likewise.
10989 (STARTFILE_SPEC): Likewise.
10990 * i386/uwin.h (LIB_SPEC): Likewise.
10991 (STARTFILE_SPEC): Likewise.
10992
10993 * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition.
10994 * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise.
10995
10996 Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
10997
10998 * combine.c (combine_simplify_rtx): Fix order of checks for
10999 (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
11000
11001 1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
11002
11003 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
11004 12/10/99 change, reapplied to merged-arm-thumb-backend-branch.
11005
11006 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
11007
11008 * hard-reg-set.h (inv_reg_alloc_order): Declare if REG_ALLOC_ORDER is
11009 defined.
11010 * regclass.c (inv_reg_alloc_order): New array.
11011 (regclass_init): If REG_ALLOC_ORDER is defined, initialize it.
11012
11013 * reload.h (struct insn_chain): Delete fields group_size, group_mode,
11014 counted_for_groups, counted_for_nongroups. Add fields rld and
11015 n_reloads.
11016 * reload.c (push_secondary_reload): Don't set nongroup field of
11017 new reloads.
11018 (push_reload): Likewise.
11019 (find_reloads): Delete code to compute nongroup fields.
11020 * reload1.c (reload_insn_firstobj): New static variable.
11021 (pseudos_counted, spilled_pseudos): Now of type regset_head. All
11022 users changed.
11023 (calculate_needs, find_tworeg_group, find_group, possible_group_p,
11024 count_possible_groups, modes_equiv_for_class_p, new_spill_reg,
11025 dump_needs, maybe_mark_pseudo_spilled, hard_reg_use_compare): Delete
11026 functions.
11027 (count_pseudo, select_reload_regs, copy_reloads, find_reg): New
11028 functions.
11029 (struct hard_reg_n_uses): Deleted.
11030 (potential_reload_regs): Deleted.
11031 (init_reload): Initialize spilled_pseudos and pseudos_counted.
11032 (reload): Don't try to allocate reload registers if we already know
11033 we have to make another pass. Call select_reload_regs. Free memory
11034 starting with reload_firstobj when starting another pass.
11035 Don't allocate spilled_pseudos.
11036 (calculate_needs_all_insns): Call copy_reloads for an insn that
11037 needs reloads; don't call calculate_needs.
11038 (spill_cost): New static array.
11039 (used_spill_regs_local): New static variable.
11040 (order_regs_for_reload): Rewrite to lose hard_reg_n_uses and the code
11041 to compute potential_reload_regs.
11042 (find_reload_regs): Completely rewritten to use find_reg.
11043 (allocate_reload_reg): Don't test counted_for_groups or
11044 counted_for_nongroups. Lose NOERROR arg and code to give an error;
11045 all cllers changed.
11046 (choose_reload_regs): Add fallback code that uses the existing
11047 register allocation from find_reload_regs.
11048
11049 Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
11050
11051 * flow.c (create_edge_list): Cast xmalloc return value.
11052
11053 Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
11054
11055 * doprnt.c: Remove incorrect comment closure.
11056
11057 * cse.c: Fix a few minor whitespace goofs.
11058
11059 1999-12-13 Don Bowman <don@pixstream.com>
11060
11061 * mips/vxworks.h: Fix problem with comment termination.
11062 (EXTRA_SECTIONS): Add in_sbss.
11063 (EXTRA_SECTION_FUNCTIONS): Corresponding changes.
11064
11065 1999-12-12 David S. Miller <davem@redhat.com>
11066
11067 * cse.c (struct cse_reg_info): Add hash_next member,
11068 reorder rest of struct for better packing on 64-bit
11069 hosts.
11070 (cse_reg_info_tree): Kill.
11071 (REGHASH_SHIFT, REGHASH_SIZE, REGHASH_MASK, reg_hash,
11072 REGHASH_FN): New custom pow2 hash mechanism.
11073 (NBUCKETS): Kill.
11074 (HASH_SHIFT, HASH_SIZE, HASH_MASK, HASH, table): Rework to
11075 use a pow2 hash table.
11076 (get_cse_reg_info): Rework to use new REGHASH.
11077 (new_basic_block): Likewise, use HASH_SIZE, and inline
11078 free_element call.
11079 (remove_from_table): Rework to use HASH_SIZE/HASH_MASK,
11080 and inline free_element call.
11081 (lookup_as_function, insert, flush_hash_table, invalidate,
11082 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
11083 invalidate_for_call, use_related_value, find_comparison_args,
11084 fold_rtx, equiv_constant, cse_insn, invalidate_memory): Likewise.
11085 (hash_cse_reg_info, cse_reg_info_equal_p, free_element,
11086 get_element): Kill.
11087
11088 Sun Dec 12 21:31:44 1999 Jeffrey A Law (law@cygnus.com)
11089
11090 * cse.c (cse_basic_block): Free qty_table consistently.
11091
11092 1999-12-12 David S. Miller <davem@redhat.com>
11093 Jakub Jelinek <jakub@redhat.com>
11094
11095 * config/sparc/sparc.md (movtf reg/reg split): Don't generate
11096 SUBREGs by hand, gen the appropriate hard reg directly.
11097 (movtf reg/mem split): Likewise and alter_subreg on destination
11098 if necessary.
11099 (movtf mem/reg split): Similarly.
11100 (movdf_cc_sp64): Rename from hidden pattern.
11101 (movtf_cc_hq_sp64): Renamed from movtf_cc_sp64.
11102 (movtf_cc_sp64, following split): New pattern and splitter.
11103 (movdf_cc_reg_sp64): Rename from hidden pattern.
11104 (movtf_cc_reg_hq_sp64): Renamed from movtf_cc_reg_sp64, require
11105 TARGET_HARD_QUAD.
11106 (movtf_cc_reg_sp64, following split): New pattern and splitter.
11107
11108 1999-12-12 Stephen L Moshier <moshier@mediaone.net>
11109
11110 * loop.c (load_mems): Don't hoist written floating point mem
11111 if -ffloat-store.
11112
11113 1999-12-12 Mark Mitchell <mark@codesourcery.com>
11114
11115 * except.h (struct eh_queue): Add `next' pointer.
11116 (struct eh_status): Make x_ehqueue a pointer.
11117 (push_ehqueue): Declare.
11118 (pop_ehqueue): Likewise.
11119 * except.c (expand_eh_region_end): Adjust now that ehqueue is a
11120 pointer.
11121 (expand_fixup_region_end): Likewise.
11122 (expand_leftover_cleanups): Likewise.
11123 (push_ehqueue): Define.
11124 (pop_ehqueue): Likewise.
11125 (emit_cleanup_handler): Use push_ehqueue and pop_ehqueue rather
11126 than doing it inline.
11127 (expand_start_all_catch): Adjust now that ehqueue is a
11128 pointer.
11129 (mark_eh_queue): Mark all level of the queue.
11130 (mark_eh_status): Adjust now that ehqueue is a
11131 pointer.
11132 (init_eh_for_function): Allocate ehqueue.
11133 (free_eh_status): Free it.
11134 * stmt.c (expand_cleanups): Save the ehqueue around the cleanup
11135 expansion for a fixup.
11136
11137 1999-12-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11138
11139 * gthr-single.h (__gthread_active_p): Add prototype arguments.
11140
11141 * libgcc2.c (__udivmoddi4): Remove unnecessary decls.
11142 (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg,
11143 __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret,
11144 function_ptr, getpagesize, __enable_execute_stack,
11145 __enable_execute_stack, __clear_insn_cache,
11146 __enable_execute_stack, __do_global_dtors, __do_global_ctors,
11147 _cleanup, _exit, __default_terminate, __terminate_func,
11148 __terminate, __empty, __throw, new_eh_context,
11149 eh_context_initialize, eh_context_static, eh_context_specific,
11150 get_eh_context, __get_eh_context, __get_eh_info,
11151 init_reg_size_table, eh_threads_initialize,
11152 __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow,
11153 __unwinding_cleanup, throw_helper, __throw, __rethrow,
11154 __pure_virtual): Add prototype arguments.
11155 (__bb_exit_func): Cast a sizeof to long when comparing against one.
11156 Cast a signed value to unsigned long when comparing against one.
11157 (new_eh_context): Wrap in _GTHREADS macro.
11158 (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at
11159 declaration.
11160 (in_reg_window): Mark parameters with __attribute__ ((__unused__)).
11161 (throw_helper): Initialize variables `handler_p' and `pc_p'.
11162
11163 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11164
11165 * combine.c (record_promoted_value): Remove unused variable
11166 `links2'.
11167
11168 * emit-rtl.c (renumber_insns): Likewise for `old_max_uid'.
11169
11170 * global.c (record_conflicts): Likewise for `j'.
11171
11172 * genoutput.c (output_insn_data): Don't unnecessarily cast away
11173 const-ness.
11174
11175 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11176
11177 * i386-protos.h (output_387_binary_op, output_fix_trunc,
11178 output_fp_compare): Constify a char*.
11179
11180 * i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
11181 static prototypes.
11182 (override_options, ix86_comp_type_attributes, print_operand,
11183 output_387_binary_op, output_fix_trunc, output_fp_compare):
11184 Constify a char*.
11185 (ix86_sched_reorder): Mark parameter `clock_var' with
11186 ATTRIBUTE_UNUSED.
11187
11188 * i386.h (DEBUG_PRINT_REG): Constify a char*.
11189
11190 Fri Dec 10 16:12:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
11191
11192 * tree.def (EXPR_WITH_FILE_LOCATION): Temporarily add a third
11193 operand, for use in the Java front-end.
11194
11195 1999-12-10 Ben Collins <bcollins@debian.org>
11196
11197 * configure.in: Fix typo for "-64" in 64bit as check.
11198 * configure: Rebuilt.
11199
11200 1999-12-10 Jakub Jelinek <jakub@redhat.com>
11201
11202 * longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
11203 appropriate.
11204
11205 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11206
11207 * c-parse.in (string): With -Wtraditional, warn if ANSI string
11208 concatenation is utilized.
11209
11210 * invoke.texi (-Wtraditional): Document it.
11211
11212 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11213
11214 * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
11215 Cast a ptrdiff_t to long and pass it to printf with %ld.
11216
11217 1999-12-10 Geoff Keating <geoffk@cygnus.com>
11218
11219 * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
11220 68881, we have no 68881 registers at all.
11221 (HARD_REGNO_MODE_OK): It is always OK to put a MODE_FLOAT
11222 value in a 68881 register if it is available.
11223
11224 1999-12-10 Clinton Popetz <cpopetz@cygnus.com>
11225
11226 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi): New patterns
11227 for long long multiply-accumulate.
11228
11229 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
11230
11231 * loop.c (insert_loop_mem): Undo last change.
11232
11233 1999-12-10 David S. Miller <davem@redhat.com>
11234
11235 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p, fp_high_losum_p):
11236 New functions.
11237 * config/sparc/sparc-protos.h: Add them.
11238 * config/sparc/sparc.h: Add them to PREDICATE_CODES.
11239 (EXTRA_CONSTRAINT_BASE): New macro, handling Q, R, and S
11240 constraints which use those helpers.
11241 (EXTRA_CONSTRAINT): Use this new macro.
11242 * md.texi: Update sparc target constraints documentation.
11243 * config/sparc/sparc.md (clear_sf, clear_sfp, movsf_const_intreg,
11244 movsf_const_high, movsf_const_lo, movsf_insn): Delete.
11245 (movsf_insn_novis_liveg0, movsf_insn_novis_noliveg0,
11246 movsf_insn_vis, movsf_lo_sum, movsf_high): New patterns.
11247 (movsf high/lo_sum split): Rework for new patterns.
11248 (movsf expander): Allow storing fp_zero to memory if ! live_g0.
11249
11250 1999-12-09 Gavin Romig-Koch <gavin@cetus.cygnus.com>
11251
11252 * c-common.c (c_common_nodes_and_builtins):
11253 Create __builtin_ptrdiff_t and __builtin_size_t.
11254
11255 Thu Dec 9 18:05:48 1999 Jeffrey A Law (law@cygnus.com)
11256
11257 * pa/elf.h (MAX_OFILE_ALIGNMENT): Define.
11258
11259 Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11260
11261 * regclass.c (globalize_reg): Re-instate test that allows
11262 fixed registers to be declared as a variable even after functions
11263 are defined.
11264
11265 Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11266
11267 * i386.md (cpu attribute): Add "athlon".
11268 (athlon_decode): New attribute.
11269 (Athlon scheduling units definitions): New.
11270 (fcmp and shld patterns): Set athlon_decode to "vector".
11271 * i386.c (athlon_cost): New.
11272 (m_ATHLON): New.
11273 (x86_use_leave, x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
11274 x86_use_sahf): Set for Athlon.
11275 (x86_use_fiop): Unset for Athlon.
11276 (override_options): Define Athlon alignments and "athlon" name.
11277 (x86_adjust_cost): Penalize AGI and delayed latencies for Athlon.
11278 * i386.h (TARGET_ATHLON): New.
11279 (enum processor_type): Add PROCESSOR_ATHLON.
11280 (TARGET_CPU_DEFAULT_SPEC): Set to "-D__tune_athlon__"
11281 for CPU_DEFAULT==5
11282 (TARGET_CPP_CPU_SPECS): Set -D__tune_athlon__ for Athlon.
11283
11284 1999-12-09 Andreas Jaeger <aj@suse.de>
11285
11286 * loop.c (record_biv): Declare parameter as int.
11287
11288 * config/i386/i386-protos.h: Declare long_memory_operand.
11289
11290 1999-12-09 Mark Mitchell <mark@codesourcery.com>
11291
11292 * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
11293 EXPR_WITH_FILE_LOCATION.
11294
11295 Thu Dec 9 11:36:24 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11296
11297 * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
11298 in expander.
11299
11300 * flow.c (recompute_reg_usage): Use basic block info to get loop_depth.
11301
11302 * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
11303 updating code.
11304
11305 1999-12-09 Jakub Jelinek <jakub@redhat.com>
11306
11307 * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
11308 default on linux64 again.
11309 * config/sparc/t-linux64: Add mno-app-regs and non-medlow code
11310 models for multilibing.
11311 * genmultilib: Accept | as alternative separator within a set in
11312 MULTILIB_OPTIONS.
11313
11314 * config/sparc/sparc.h (PROMOTE_FOR_CALL_ONLY): Define.
11315
11316 * calls.c (precompute_arguments): Make sure initial_value contains
11317 value pseudo which CSE expects.
11318 * cse.c (struct set): New entry orig_src.
11319 (cse_insn): Set it early on entry, use it for libcall EQUIV note
11320 replacement.
11321
11322 Wed Dec 8 22:24:15 1999 Richard Henderson <rth@cygnus.com>
11323
11324 * flow.c (count_basic_blocks): Don't add (use (const_int 0)) insns.
11325
11326 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
11327
11328 * loop.c (insert_loop_mem): Don't hoist volatile mems out of loops.
11329
11330 1999-12-08 Jakub Jelinek <jakub@redhat.com>
11331
11332 * config/sparc/sparc.c (ultra_cmove_results_ready_p,
11333 ultra_fpmode_conflict_exists, ultra_flush_pipeline): Typo fix.
11334
11335 * config/sparc/sparc.h (SPARC_SETHI_P): Don't look at topmost 32 bits
11336 if TARGET_ARCH32.
11337
11338 * longlong.h: Merge in changes from glibc.
11339 Also don't clobber %g2 register in 32bit SPARC assembly, so that
11340 -mno-app-regs libgcc can be compiled.
11341 * libgcc2.c: Add defines so that the updated longlong.h
11342 can be used in libgcc2.a. Also, make sure on most architectures
11343 (at least on all which have optimized code in longlong.h defined
11344 for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
11345
11346 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11347
11348 * config/sparc/sol2-64.h: Same as sol2-sld-64.h, except that
11349 `-m EMULATION' is added to non-default LINK_ARCH_SPECs.
11350 * configure.in: Use sol2-64.h instead of sol2-sld-64.h if linker
11351 is GNU ld.
11352 * configure: Rebuilt.
11353
11354 Wed Dec 8 03:45:40 1999 Richard Henderson <rth@cygnus.com>
11355
11356 * alpha.c (secondary_reload_class): For !BWX, sub-simode
11357 outputs require a register.
11358
11359 1999-12-08 Brendan Kehoe <brendan@cygnus.com>
11360
11361 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS): Add _sf_to_usi
11362 _df_to_usi. Required by some targets, so US_SOFTWARE_GOFAST calls to
11363 functions like dptoul will be resolved.
11364 (libgcc2.a): Make sure that the object files from DPBIT are named
11365 differently (prefix `_dp') from those that would be coming from
11366 FPBIT.
11367
11368 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Jakub Jelinek <jakub@redhat.com>
11369
11370 * configure.in: When target is sparc* and tm_file contains 64,
11371 test for 64bit support in assembler. If not supported, remove
11372 sparc/t-sol2-64 from target-dependent Makefile fragments.
11373 (AS_SPARC64_FLAG): Define to the assembler flag for 64bit.
11374 (HAVE_AS_OFFSETABLE_LO10): Rework test to use these flags.
11375 (HAVE_AS_REGISTER_PSEUDO_OP): Use config.cache.
11376 * acconfig.h (AS_SPARC64_FLAG): Added.
11377 * configure, config.in: Rebuilt.
11378 * config/sparc/sol2-sld-64.h: Same as sol2.h, if without 64bit
11379 support. Use AS_SPARC64_FLAG.
11380
11381 1999-12-07 Jakub Jelinek <jakub@redhat.com>
11382
11383 * config/sparc/sparc.c (hard_32bit_mode_classes): Mark registers
11384 suitable for holding OFmode values so that gcc works with complex
11385 quad long doubles.
11386 (hard_64bit_mode_classes): Likewise.
11387
11388 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): Fix pattern
11389 so that it is actually matched.
11390 (sethi_di_medlow): Likewise.
11391
11392 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Consider TFmode 0.0L
11393 as legitimate constant if -mvis.
11394 * config/sparc/sparc.md (movtf): Likewise.
11395 (clear_sf): Use const_double_operand.
11396 (clear_sfp, clear_dfp, clear_tf, clear_tfp): New patterns.
11397
11398 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
11399 * config/sparc/sparc-protos.h (sparc_emit_float_lib_cmp): Prototype.
11400 * config/sparc/sparc.h (*_LIBCALL): Only use for _Q_*
11401 routines, _Qp_* cannot be handled like that now.
11402 (INIT_TARGET_OPTABS): Likewise.
11403 * config/sparc/sparc.md (cmptf): Accept soft float ARCH64.
11404 (seq, sne, sgt, sge, slt, sle, beq, bne, bgt, bge, blt, ble): Call
11405 sparc_emit_float_lib_cmp if ARCH64 and soft float.
11406 (extendsftf2, extenddftf2, trunctfsf2, trunctfdf2, floatsitf2,
11407 floatditf2, fix_trunctfsi2, fix_trunctfdi2, addtf3, subtf3, multf3,
11408 divtf3, sqrttf3): New expanders.
11409 (extendsftf2_hq, extenddftf2_hq, trunctfsf2_hq, trunctfdf2_hq,
11410 floatsitf2_hq, floatditf2_hq, fix_trunctfsi2_hq, fix_trunctfdi2_hq,
11411 addtf3_hq, subtf3_hq, multf3_hq, divtf3_hq, sqrttf3_hq): Rename from
11412 non-_hq patterns.
11413
11414 * configure.in (sparc64-*-linux*): Use posix threads if enabled.
11415 * configure: Rebuilt.
11416 * config/sparc/linux64.h: Default to -mcpu=ultrasparc if no
11417 -mcpu is given and we're doing 64bit compiles.
11418
11419 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
11420
11421 * loop.h (struct induction): Add multi_insn_incr.
11422 * loop.c (basic_induction_var): New multi_insn_incr argument.
11423 Set it if we search back through previous insns for the biv.
11424 (record_biv): New multi_insn_incr argument; fill in struct induction.
11425 (strength_reduce): Discard an iv with multiple bivs, any of
11426 which require multiple insns to increment.
11427
11428 1999-12-07 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11429
11430 * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std
11431 documentation.
11432
11433 1999-12-06 David S. Miller <davem@redhat.com>
11434
11435 * combine.c (check_promoted_subreg): Do not conditionalize this upon
11436 PROMOTE_FUNCTION_RETURN.
11437
11438 Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
11439
11440 * regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
11441 and handle REG_UNUSED note on insn.
11442
11443 * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
11444 inner_mask instead of mask.
11445
11446 1999-12-06 Brendan Kehoe <brendan@cygnus.com>
11447
11448 * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
11449 zero if there was an error.
11450
11451 1999-12-06 Jakub Jelinek <jakub@redhat.com>
11452
11453 * config/sparc/sparc.md (return_losum_di): Fix typo in asm
11454 output string.
11455
11456 * longlong.h: Fix clobbers in SPARC asm statements.
11457
11458 * config/sparc/sparc.c (input_operand): Allow HImode and QImode
11459 valid sethi operations when TARGET_ARCH64.
11460
11461 * calls.c (save_fixed_argument_area): If save_mode is BLKmode,
11462 always use move_by_pieces to avoid infinite recursion.
11463 (restore_fixed_argument_area): Likewise.
11464
11465 * combine.c (check_promoted_subreg, record_promoted_value): New
11466 functions.
11467 (combine_instructions): Use them to retain nonzero and sign bit
11468 information after SUBREGs are eliminated by optimizations in
11469 this pass if PROMOTE_FUNCTION_RETURN.
11470
11471 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Document
11472 .register declaration. Don't use variables with __ prefixes.
11473
11474 Mon Dec 6 12:24:52 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11475
11476 * fold-const.c (optimize_bit_field_compare): Only use one mode
11477 for both RHS and LHS in non-constant case.
11478
11479 1999-12-06 Nathan Sidwell <nathan@acm.org>
11480
11481 * frame.c (start_fde_sort): Only allocate erratic array, if
11482 linear one was allocated. Return allocated flag.
11483 (fde_insert): Only insert, if there's a valid array.
11484 (fde_end_sort): Split, sort and merge if linear and erratic
11485 arrays exist, else just sort linear one.
11486 (search_fdes): New function. Linear search through original fde
11487 structure.
11488 (frame_init): Permit multiple initializations. Cope with
11489 memory shortages.
11490 (find_fde): Fallback on linear search, if failed to sort array.
11491 (__deregister_frame_info): Only free sorted array, if we
11492 allocated it.
11493
11494 1999-12-06 Jakub Jelinek <jakub@redhat.com>
11495
11496 * config/sparc/sparc.h (MUST_PASS_IN_STACK): New macro.
11497
11498 1999-12-05 Jakub Jelinek <jakub@redhat.com>
11499
11500 * config/sparc/sparc.c (sparc64_initialize_trampoline): Use gen_flushdi.
11501
11502 1999-12-05 Mark Mitchell <mark@codesourcery.com>
11503
11504 * tree.h (special_function_p): Declare.
11505 * calls.c (special_function_p): Make it global. Don't take `name'
11506 as a parameter. Fix typo in 1999-11-28 change.
11507 (expand_cal): Adjust.
11508
11509 1999-12-04 Mark Mitchell <mark@codesourcery.com>
11510
11511 * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
11512 * tree.h (EXPR_WFL_FILENAME): Define in terms of
11513 EXPR_WFL_FILENAME_NODE.
11514 (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
11515 the TREE_CHAIN.
11516 * print-tree.c (print_note): Print TREE_PRIVATE and
11517 TREE_PROTECTED.
11518
11519 * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
11520 the original die cannot be found.
11521
11522 * varray.h (varray_head_tag): Add elements_used.
11523 (VARRAY_PUSH): New macro.
11524 (VARRAY_POP): Likewise.
11525 (VARRAY_TOP): Likewise.
11526 Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
11527 types.
11528 * varray.c (varray_init): Initialize elements_used.
11529 * Makefile.in (BASIC_BLOCK_H): Add varray.h.
11530 (INTEGRATE_H): New variable.
11531 (integrate.o): Depend on INTEGRATE_H.
11532 (unroll.o): Likewise.
11533
11534 * function.h (insert_block_after_note): Declare.
11535 * function.c (insert_block_after_note): Split out from ...
11536 (retrofit_block): ... here.
11537
11538 * stmt.c (expand_fixup): Fix typo in comment.
11539
11540 Sat Dec 4 14:13:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11541
11542 * regmove.c (copy_src_to_dest): Remove loop_depth parameter.
11543 (optimize_reg_copy_1): Remove REG_N_REFS updating code.
11544 (optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
11545 (regmove_optimize, fixup_match_1): Likewise.
11546
11547 1999-12-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11548
11549 * flow.c (flow_loops_dump): Add missing argument when calling
11550 flow_loop_nested_p.
11551
11552 1999-12-04 Geoffrey Keating <geoffk@cygnus.com>
11553 Greg McGary <gkm@gnu.org>
11554
11555 * c-common.c (enum attrs): Add A_NO_LIMIT_STACK.
11556 (init_attributes): Add A_NO_LIMIT_STACK.
11557 (decl_attributes): Handle A_NO_LIMIT_STACK.
11558 * c-decl.c (duplicate_decls): Handle DECL_NO_LIMIT_STACK.
11559 * explow.c (allocate_dynamic_stack_space) [!HAVE_allocate_stack]:
11560 Handle stack bounds checking.
11561 * flags.h (flag_stack_check): Use the word 'probe' rather than
11562 'check', because the flag doesn't actually cause any checking to
11563 be done.
11564 * function.c (expand_function_start): Set
11565 current_function_limit_stack.
11566 * function.h (struct function): Add limit_stack.
11567 (current_function_limit_stack): Define.
11568 * invoke.texi (Code Gen Options): Document new options.
11569 * rtl.h: Declare stack_limit_rtx.
11570 * toplev.c (stack_limit_rtx): New variable.
11571 (decode_f_option): Handle new options -fstack-limit-register=REG,
11572 -fstack-limit-symbol=IDENT, -fno-stack-limit.
11573 (main): Add stack_limit_rtx as GC root.
11574 * tree.h (DECL_NO_LIMIT_STACK): New macro.
11575 (struct tree_decl): New member no_limit_stack.
11576
11577 * config/rs6000/rs6000.c (rs6000_allocate_stack_space): Handle
11578 stack_limit_rtx.
11579 * config/rs6000/rs6000.md (allocate_stack): Handle stack_limit_rtx.
11580 (conditional_trap+1): Get new mnemonic correct.
11581 (conditional_trap+2): New pattern for DImode traps.
11582
11583 * config/m68k/m68k.c (output_function_prologue): Handle
11584 stack_limit_rtx.
11585 * config/m68k/m68k.md (trap): New insn.
11586 (conditional_trap): New insn.
11587 * md.texi (Standard Names): Document `trap' and
11588 `conditional_trap'.
11589 * optabs.c (gen_cond_trap): Use start_sequence()/end_sequence()
11590 so a cc0 setter doesn't get emitted at some random place in the
11591 function.
11592
11593 * config/i960/i960.md (trap): New insn.
11594 (conditional_trap): New expander.
11595 (conditional_trap+1, conditional_trap+2): New insns for signed
11596 and unsigned cases.
11597 * config/i960/i960.c (i960_function_prologue): Use
11598 STARTING_FRAME_OFFSET. Handle stack_limit_rtx.
11599
11600 Thu Dec 2 21:22:45 1999 Greg McGary <gkm@gnu.org>
11601 Geoffrey Keating <geoffk@cygnus.com>
11602
11603 * flags.h (warn_padded, warn_packed): Add global var decls.
11604 * toplev.c (warn_padded, warn_packed): Add global var defns.
11605 (W_options): Add warnings `-Wpacked' and `-Wpadded'.
11606 * stor-layout.c (layout_record): Add local variable `type'
11607 to hold often-used TREE_TYPE (field). Add local variable
11608 `unpacked_align' to hold alignment that would be in force
11609 if no `packed' attribute were present. Warn if `packed' attribute
11610 is unnecessary, or even harmful. Warn when gcc inserts padding
11611 to satisfy alignment requirements of members. Use NULL_TREE
11612 when checking whether var_size is set.
11613 * invoke.texi: Document new flags.
11614
11615 1999-12-03 Nathan Sidwell <nathan@acm.org>
11616
11617 * frame.c (fde_split): Reimplement to avoid variable sized array.
11618
11619 Thu Dec 2 18:59:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11620
11621 * combine.c (try_combine): Before fixing up LOG_LINKS for the
11622 i3_subst_into_i2 case, check that GET_CODE (PATTERN (i2)) == PARALLEL.
11623
11624 1999-12-02 Gavin Romig-Koch <gavin@cygnus.com>
11625
11626 * invoke.texi: Document the mips option -mno-crt0
11627
11628 1999-12-02 Mike Karr <mkarr@mathworks.com>
11629
11630 * cccp.c (argdata): Added free_ptr member.
11631 (macroexpand): Initialize free_ptr of each argument. When an
11632 argument's buffers are freed, if the argument's free_ptr corresponds
11633 to a buffer on the input stack, then return the free_ptr to that stack
11634 frame, otherwise, free it.
11635 (macarg): If an argument begins and ends on the same input stack level,
11636 then transfer the free_ptr of that buffer to the argument in case
11637 the stack is popped during the processing of a subsequent argument.
11638
11639 1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
11640
11641 * loop.c (note_reg_stored): New function.
11642 (struct note_reg_stored_arg): New structure.
11643 (try_copy_prop): Change to be more conservative; only replace within
11644 one extended basic block and stop replacing if a store to the
11645 replacement reg is seen.
11646
11647 1999-12-02 Nick Clifton <nickc@cygnus.com>
11648
11649 * config/fp-bit.c: Initialise all fields of the NAN
11650 constants.
11651
11652 * c-lex.c (check_newline): Pass pragma_getc and pragma_ungetc
11653 to HANDLE_PRAGMA.
11654
11655 Wed Dec 1 18:16:38 1999 Jan Hubicka <hubicka@freesoft.cz>
11656
11657 * i386.md (extend?f?f2): Force the input into a register, not
11658 the output.
11659
11660 1999-12-01 Jakub Jelinek <jakub@redhat.com>
11661
11662 * config/sparc/sparc.md (movsf_const_intreg): Add constraints for
11663 regclass' sake.
11664 (movdf_const_intreg_sp32): Likewise. Prefer the memory load
11665 alternative because setting up 64bit constant is usually costly,
11666 especially when reload is in progress or completed.
11667 (movdf_const_intreg_sp64): Likewise.
11668 (movdf_const_intreg split): Fix building up constants when
11669 HOST_BITS_PER_WIDE_INT is 64 yet long is 32bit.
11670
11671 Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
11672
11673 * combine.c (if_then_else_cond): Use const_true_rtx instead of
11674 const1_rtx for return values in EQ/NE comparison against (const_int 0)
11675 case.
11676
11677 * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
11678 (asm_file_start): Emit .am33 into assembly file when compiling for
11679 the AM33.
11680 (print_operand_address): Handle POST_INC addresses.
11681 (can_use_return_insn, initial_offset): Check AM33 registers too.
11682 (expand_prologue): Check & save AM33 registers too.
11683 (expand_epilogue): Similarly.
11684 (secondary_reload_class): Handle AM33 specific secondary reloads.
11685 (output_tst): Emit efficient code for the AM33 too.
11686 * mn10300.h (CPP_SPEC, TARGET_AM33): Define.
11687 (TARGET_SWITCHES): Add -mam33 switch.
11688 (FIRST_PSEUDO_REGISTER): Handle new AM33 registers.
11689 (FIXED_REGISTERS, CALL_USED_REGISTERS): Likewise.
11690 (REG_ALLOC_ORDER, CONDITIONAL_REGISTER_USAGE): Likewise.
11691 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P): Likewise.
11692 (enum reg_class, REG_CLASS_NAMES): Likewise.
11693 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Likewise.
11694 (INDEX_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
11695 (REGNO_OK_FOR_INDEX_P, PREFERRED_RELOAD_CLASS): Likewise.
11696 (PREFERRED_OUTPUT_RELOAD_CLASS, LIMIT_RELOAD_CLASS): Likewise.
11697 (REGISTER_MOVE_COST, REGISTER_NAMES): Likewise.
11698 (HAVE_POST_INCREMENT): Define.
11699 (GO_IF_LEGITIMATE_ADDRESS): Allow POST_INC addresses for the AM33.
11700 (GO_IF_MODE_DEPENDENT_ADDRESS): POST_INC is a mode dependent address.
11701 * mn10300.md (movqi, movhi, addsi, subsi): Add AM33 variants.
11702 (mulsi, andsi, iorsi, xorsi, notsi): Likewise.
11703 (ashiftsi, lshiftrtsi, ashiftrtsi): Likewise.
11704 (zero_extend to SI from QI/HI): Likewise.
11705 (sign_extend to SI from QI/HI): Likewise.
11706 (mulsidi3, umulsidi3): New patterns for the AM33.
11707 (tstsi with zero extension from QI/HI): Add AM33 variants.
11708 (movsi, movsf, movdi, movdf): Generate efficient code for the AM33 too.
11709 (return_internal_regs, store_movm): Handle new AM33 registers.
11710 * t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Define.
11711 (LIBGCC, INSTALL_LIBGCC): Likewise.
11712 * invoke.texi: Document new flags.
11713
11714 Fri Nov 26 10:59:12 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
11715
11716 * i386.md (addsi3_cc): Add "binary_operator_ok" to the condition.
11717 (addsi3_carry): Likewise.
11718 (sbbsi3_cc): Add "binary_operator_ok" to the condition.
11719 (sbbsi3_carry): Likewise.
11720 (mulsi3): Rewrite to expander, ensure that only one operand is memory.
11721 (mulhi3): Likewise.
11722 (test?i_1): Ensure that only one operand is memory.
11723 (conditional move patterns): likewise.
11724 (shift and rotate patterns): Rewrite to expander, add
11725 "binary_operator_ok" to the condition.
11726
11727 * i386.md (QImode patterns): Remove '*' before the 'r' constraints.
11728 * i386.h (procesor_costs): Add movzbl_load field.
11729 (HARD_REGNO_MODE_OK): Accept QImode on non PARTIAL_REGISTER_STALL in
11730 non-Q registers, accept DImode registers anywhere.
11731 (Q_CLASS_P): New.
11732 (MEMORY_MOVE_COST): Calculate QImode moves correctly.
11733 * i386.c (*_cost): Set value for movxbl_load field.
11734
11735 * (addsi): New add to lea splitter.
11736 (ashlsi): Likewise.
11737 (lea to add/shift peep2): New.
11738
11739 1999-12-01 Mark Salter <msalter@cygnus.com>
11740
11741 * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
11742 * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
11743 * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
11744
11745 Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11746
11747 * i386.c (ix86_expand_move): Never add clobbers to move patterns.
11748 * i386.md (movsi_xor): New.
11749 (movsi_or): New.
11750 (movsi_1, movhi_1, movqi_1): Remove.
11751 (movsi_2): Rename to movsi_1.
11752 (movhi_2): Rename to movhi_1.
11753 (movqi_2): Rename to movqi_1.
11754 (movdi_1): Remove; remove splitter.
11755 (movdi_2): Rename to movdi_1.
11756 (divmodsi4 splitter): Do not emit clobbers for move patterns.
11757 (long move peep2): Do not create QI or HI mode mov0s
11758 (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
11759
11760 * i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
11761 rewrite splitters.
11762
11763 * i386.md (neg?f2_if): Split "r" and "f" to separate alternatives.
11764 (abs?f2_if): Likewise.
11765
11766 1999-11-30 Alex Samuel <samuel@codesourcery.com>
11767
11768 * ggc.h (ggc_test_and_set_mark): New macro.
11769 (ggc_mark_rtx): Use ggc_test_and_set_mark.
11770 (ggc_mark_tree): Likewise.
11771 (ggc_mark_rtvec): Likewise.
11772 * ggc-common.c (ggc_mark_rtx_children): Reduce recursion.
11773
11774 1999-11-30 Jason Merrill <jason@casey.cygnus.com>
11775
11776 * dwarf2out.c (scope_die_for): Only handle types. Only search for
11777 containing types.
11778 (decl_scope_table): Just an array of trees now.
11779 (push_decl_scope): Simplify.
11780 (dwarf2out_init): Adjust.
11781 (local_scope_p): New fn.
11782 (gen_inlined_enumeration_type_die): Don't call scope_die_for.
11783 (gen_inlined_union_type_die, gen_inlined_structure_type_die): Likewise.
11784 (gen_typedef_die): Likewise.
11785 (gen_lexical_block_die): Don't call push/pop_decl_scope.
11786 (gen_inlined_subroutine_die): Likewise.
11787 (gen_abstract_function): Set current_function_decl temporarily.
11788 (gen_subprogram_die): Don't check DECL_ABSTRACT to set declaration.
11789 Handle block extern declarations. Don't call push/pop_decl_scope.
11790 (gen_decl_die): Fix logic for block externs.
11791
11792 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11793
11794 * calls.c (special_function_p): Remove `realloc' and add `strdup'
11795 to the list of functions which have attribute malloc by default.
11796
11797 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11798
11799 * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
11800 integer constant does not match the traditional type, limit the
11801 warnings to cases where the base of the type is ten.
11802
11803 * invoke.texi (-Wtraditional): Document it.
11804
11805 Tue Nov 30 15:18:35 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11806
11807 * combine.c (try_combine): Only pass SET or CLOBBER to SET_DEST
11808 * rs6000.md: Only access a CONST_INT with INTVAL
11809
11810 Tue Nov 30 14:21:00 1999 Richard Henderson <rth@cygnus.com>
11811
11812 * lcm.c (compute_laterin): Cast bb->aux to size_t not int.
11813 (compute_nearerout): Likewise.
11814 * ggc-page.c (ggc_page_print_statistics): Explicitly cast
11815 size_t to unsigned long for formatting.
11816
11817 1999-11-30 Jakub Jelinek <jakub@redhat.com>
11818
11819 * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
11820 Allow the user to override call-used/fixed state of %g2-5
11821 registers from the command line (with the exception of %g4 for
11822 embedded model).
11823 (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
11824 there is a higher chance of having a leaf function.
11825 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
11826 for ARCH64 which has %ccr register.
11827 * config/sparc/sparc.md (return_losum_si, return_losum_di): New
11828 patterns.
11829 * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
11830 insn accept into delay slot any insn which does not use %[ol]
11831 registers. Accept some LO_SUM and shift left by 1 for the normal
11832 restore case.
11833 (output_function_epilogue): Likewise.
11834 (epilogue_renumber): Added argument which inhibits any renumbering
11835 and just tests if the rtx does not use any %[ol] registers.
11836 (output_return): Reflect above change.
11837
11838 1999-11-30 Jakub Jelinek <jakub@redhat.com>
11839
11840 * config/sparc/sparc.c (sparc_va_arg): Fix sparc64 va_arg
11841 aggregate passing for sizes <= 16 bytes.
11842
11843 1999-11-30 Bernd Schmidt <bernds@cygnus.co.uk>
11844
11845 * cse.c (FIXED_REGNO_P): Delete tests for OVERLAPPING_REGNO_P.
11846 * global.c (global_alloc): Delete [OVERLAPPING_REGNO_P] code.
11847 * reload.c (find_dummy_reload): Likewise.
11848 (find_equiv_reg): Likewise; also for INSN_CLOBBERS_REGNO_P.
11849 * reload1.c (reload_as_needed): Likewise.
11850 * stupid.c (stupid_find_reg): Likewise.
11851 * tm.texi (Obsolete Register Macros): Delete section.
11852 * gmicro.h: Remove all traces of the two macros.
11853 * i386.h: Likewise.
11854 * m88k.h: Likewise.
11855 * mips.h: Likewise.
11856
11857 1999-11-30 Brendan Kehoe <brendan@cygnus.com>
11858
11859 * sparc.h (MASK_FASTER_STRUCTS, TARGET_FASTER_STRUCTS): Define.
11860 (TARGET_SWITCHES): Add -mfaster-structs/-mno-faster-structs flags.
11861 (ROUND_TYPE_ALIGN): Use better value if -mfaster-structs.
11862 * sparc.md (sparclite86x_branch, sparclite86x_shift): New function
11863 units for the sparclite86x chip.
11864 (flush): Revert October 14th change; add SImode specifically.
11865 (flushdi): Copy of flush, but DImode, to avoid genrecog warnings.
11866 * invoke.texi: Document it.
11867
11868 Tue Nov 30 14:58:14 1999 Nick Clifton <nickc@cygnus.com>
11869
11870 * config/mn10200/mn10200.h (PREDICATE_CODES): Add
11871 psimode_truncation_operand.
11872
11873 * config/mn10200/mn10200.c (psimode_truncation_operand): New
11874 function. Return true if the operand is either a MEM valid
11875 for a PSImode address or not a MEM at all.
11876
11877 * config/mn10200/mn10200.md (truncsipsi2): Use
11878 psimode_truncation_operand.
11879
11880 1999-11-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11881
11882 * flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
11883 (flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
11884 (flow_loop_exits_find, flow_loop_nodes_find): Likewise.
11885 (flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
11886 (flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
11887 (flow_loop_level_compute, low_loops_level_compute): Likewise.
11888 (flow_loops_find, flow_loop_outside_edge_p): Likewise.
11889 * basic-block.h: Protect from multiple inclusion.
11890 (flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
11891 (struct loops, struct loop): Define structures.
11892 * sbitmap.c (sbitmap_a_subset_b_p): New function.
11893 * sbitmap.h: Protect from multiple inclusion.
11894 (sbitmap_a_subset_b_p): Add prototype.
11895 * Makefile.in (LOOP_H): New macro.
11896 (stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
11897
11898 Tue Nov 30 01:34:47 1999 Philippe De Muyter <phdm@macqel.be>
11899
11900 * cppinit.c (CAT): The argument list of this macro may not contain
11901 spaces !
11902
11903 1999-11-29 David S. Miller <davem@redhat.com>
11904
11905 Move quantity tables and register equivalence chains into
11906 per-qty and per-register structure arrays respectively.
11907 * cse.c (qty_first_reg, qty_last_reg, qty_mode, qty_const,
11908 qty_const_insn, qty_comparison_code, qty_comparison_const,
11909 qty_comparison_qty): Delete, replace with...
11910 (qty_table): this structure table.
11911 (reg_next_eqv, reg_prev_eqv): Delete, replace with...
11912 (reg_eqv_table): this structure table.
11913 (make_new_qty): Add argument MODE. Caller updated.
11914 Update to use qty_table and reg_eqv_table.
11915 (make_regs_eqv, delete_reg_equiv, insert_regs,
11916 insert, exp_equiv_p, cse_rtx_varies_p, canon_reg,
11917 fold_rtx, equiv_constant, record_jump_cond, cse_insn,
11918 cse_process_notes, cse_main, cse_basic_block): Likewise.
11919
11920 Mon Nov 29 16:56:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11921
11922 * fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
11923 operation if C is negative.
11924 (extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
11925 (extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
11926 law for some divisions if constant is negative and change other
11927 divisions to the opposite rounding.
11928
11929 * expr.c (store_constructor_field): If bit position is not multiple
11930 of alignment of TARGET's mode, use BLKmode.
11931
11932 * expr.c (expand_expr_unaligned): Add more code from full case
11933 that is needed when OP0 is in a register.
11934
11935 Mon Nov 29 18:09:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11936
11937 * dwarfout.c (field_byte_offset): Size can be zero if there was
11938 an error.
11939
11940 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
11941
11942 * fold-const.c (split_tree): Delete unused vars ORIG_IN and TYPE.
11943 (associate_trees): Delete unused var TEM.
11944 (extract_muldiv): Delete unused var CANCEL_P.
11945
11946 * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
11947 (target_isinf, target_isnan, target_negative): Add return types to
11948 function definitions.
11949
11950 1999-11-29 Bruce Korb <autogen@linuxbox.com>
11951
11952 * fixinc/fixincl.c(process): don't skip GLIBC files any more.
11953 * fixinc/hackshell.tpl: ditto
11954 * fixinc/fixtests.c(double_slash_test): more C++ header testing
11955 * fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
11956
11957 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
11958
11959 * reload.c (push_reload): When looking for a register to put into
11960 reg_rtx, make sure all hard regs in a multi-reg register are in the
11961 right class and nonfixed.
11962
11963 * haifa-sched.c (reg_last_uses, reg_last_sets, reg_last_clobbers,
11964 pending_read_insns, pending_write_insns, pending_read_mems,
11965 pending_write_mems, pending_list_length, last_pending_memory_flush,
11966 last_function_call, sched_before_next_call): Move static variables
11967 into a structure.
11968 (bb_ prefixed versions): Replace with single array bb_deps.
11969 (struct deps): New structure.
11970 (add_insn_mem_dependence, flush_pending_lists, sched_analyze_1,
11971 sched_analyze_2, sched_analyze_insn, sched_analyze): Accept new
11972 argument of type "struct deps *"; use that instead of global
11973 variables. All callers changed.
11974 (init_rgn_data_dependencies): Delete function.
11975 (init_rtx_vector): Delete function.
11976 (init_deps): New function.
11977
11978 (free_pending_lists): Simplify, we always use the bb_deps array even
11979 if only one basic block.
11980 (compute_block_backward_dependences): Likewise.
11981 (schedule_region): Likewise.
11982
11983 (propagate_deps): New function, broken out of
11984 compute_block_backward_dependences.
11985 (compute_block_backward_dependences): Use it.
11986
11987 * alpha.md: Delete useless patterns that tried to work around
11988 register elimination problems.
11989
11990 * unroll.c (loop_iterations): Don't abort if iteration variable
11991 was made by loop.
11992
11993 From Joern Rennecke:
11994 * reload1.c (reloads_conflict): Reverse test comparing operand
11995 numbers when testing for conflict between output/outaddr reloads.
11996
11997 1999-11-29 David S. Miller <davem@redhat.com>
11998
11999 * config/sparc/sparc.c (init_cumulative_args): Fix type of third
12000 arg.
12001 * config/sparc/sparc-protos.h: Update proto, move into RTX_CODE.
12002
12003 1999-11-28 Robert Lipe <robertl@cygnus.com>
12004
12005 * i386/sco5.h (FINI_SECTION_ASM_OP_COFF): Move destructor fn
12006 table from .fini into .dtor.
12007
12008 1999-11-28 Anthony Green <green@cygnus.com>
12009
12010 * tree.h (struct tree_decl): Add malloc_flag.
12011 (DECL_IS_MALLOC): Define.
12012 * c-common.c (attrs): Add A_MALLOC attribute.
12013 (init_attributes): Add this attribute to the table.
12014 (decl_attributes): Handle malloc attribute.
12015 * calls.c (special_function_p): Check for the malloc attribute.
12016 * extend.texi (Function Attributes): Document malloc attribute.
12017
12018 Sun Nov 28 13:21:00 1999 Jeffrey A Law (law@cygnus.com)
12019
12020 * pa.md (reload shift-add patterns): Remove.
12021
12022 1999-11-28 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12023
12024 * reorg.c (dbr_schedule) Print more statistics. Corrected
12025 problem when printing info when 3 delay slots are filled.
12026
12027 1999-11-28 Jakub Jelinek <jakub@redhat.com>
12028
12029 * combine.c (setup_incoming_promotions): Pass an outgoing
12030 regno to FUNCTION_ARG_REGNO_P which it expects.
12031
12032 1999-11-28 Andreas Jaeger <aj@suse.de>
12033
12034 * mips/linux.h (CPP_PREDEFINES): Undefine before redefining.
12035
12036 Sun Nov 28 00:48:15 1999 Philippe De Muyter <phdm@macqel.be>
12037
12038 * cccp.c (do_include): Avoid initialization of automatic variable.
12039
12040 * integrate.c (mark_stores): Function definition made void, to match
12041 previous declaration.
12042 * regclass.c (dump_regclass): Ditto.
12043 * Makefile.in (WARN_CFLAGS): Macro augmented by `-Wtraditional'.
12044
12045 Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12046
12047 * expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
12048 known to be multiple of divisor.
12049
12050 * expr.c (store_constructor): Don't clobber TARGET if CLEARED.
12051
12052 * combine.c (try_combine): Add code to try to merge a set of a
12053 two-word pseudo to a constant with a setting of one of those words
12054 to a constant.
12055
12056 * fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
12057 (split_tree): Completely rework to make more general.
12058 (make_range, fold): Call negate_expr.
12059 (fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
12060 (fold, associate): Call new split_tree and associate_trees.
12061 (fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.
12062
12063 1999-11-26 Bernd Schmidt <bernds@cygnus.co.uk>
12064
12065 * loop.c (try_copy_prop): Avoid GNU C extension.
12066
12067 1999-11-25 Mark Mitchell <mark@codesourcery.com>
12068
12069 * except.c (init_eh_for_function): Still zero eh_return_context,
12070 eh_return_stack_adjust, and eh_return_handler.
12071
12072 * except.h (eh_status): Adjust documentation for x_protect_list.
12073 (begin_protect_partials): New function.
12074 * except.c (enqueue_eh_entry): Fix formatting.
12075 (get_first_handler): Add consistency check.
12076 (add_partial_entry): Adjust usage of protect_list.
12077 (emit_cleanup_handler): Save and restore ehqueue.
12078 (expand_start_all_catch): Add comment.
12079 (begin_protect_partials): New function.
12080 (end_protect_partials): Adjust usage of protect_list.
12081 (init_eh_for_function): Use xcalloc.
12082
12083 1999-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12084
12085 * c-common.c (check_format_info): Don't call a variadic function
12086 with a non-literal format string.
12087
12088 * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
12089
12090 * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
12091 pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
12092 Likewise.
12093
12094 * cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
12095 Likewise.
12096
12097 * collect2.c (collect_wait): Likewise.
12098
12099 * dbxout.c (dbxout_type): Likewise.
12100
12101 * gcc.c (do_spec_1): Likewise.
12102
12103 * genemit.c (gen_insn, gen_expand): Likewise.
12104
12105 * genrecog.c (write_switch, write_subroutine): Likewise.
12106
12107 * mips-tfile.c (catch_signal, botch): Likewise.
12108
12109 * print-rtl.c (print_rtx): Likewise.
12110
12111 * toplev.c (default_print_error_function, report_error_function,
12112 _fatal_insn): Likewise.
12113
12114 1999-11-25 Mark Mitchell <mark@codesourcery.com>
12115
12116 * tree.c (unsave_expr_now): Handle NULL_TREE as input.
12117
12118 Wed Nov 24 17:08:09 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12119
12120 * reg-stack.c (subst_stack_regs_pat): Swap operands in commutative
12121 operations when needed.
12122 * i386.md (fop_?f_comm): New.
12123 (fop_?f_1): Do not accept commutative operands.
12124
12125 1999-11-25 Andreas Jaeger <aj@suse.de>
12126
12127 * config/mips/mips.md (casesi_internal): Add missing brace.
12128
12129 1999-11-25 Jason Merrill <jason@casey.cygnus.com>
12130
12131 * dwarf2out.c (pend_type, output_pending_types_for_scope): Lose.
12132 (splice_child_die): Handle moving a child DIE from the declaration
12133 DIE of a class to its specification.
12134 (gen_struct_or_union_type_die): Use 'complete' consistently.
12135 (gen_decl_die): Generate the virtual context DIE first.
12136 Use decl_ultimate_origin instead of DECL_ABSTRACT_ORIGIN.
12137
12138 1999-11-24 Gavin Romig-Koch <gavin@cygnus.com>
12139
12140 * config/mips/mips.md (call_value_multiple_interanal1): New.
12141
12142 1999-11-24 Jason Merrill <jason@casey.cygnus.com>
12143
12144 * dwarf2out.c (free_AT, free_die): New fns.
12145 (remove_children): Call them.
12146 (output_line_info): Disable removal of duplicate notes.
12147
12148 Generate minimal debug info for types with TYPE_DECL_SUPPRESS_INFO set.
12149 * dwarf2out.c (gen_struct_or_union_type_die): TYPE_DECL_SUPPRESS_INFO
12150 means pretend the type isn't defined.
12151 Don't defer emitting types.
12152 (gen_type_die_for_member): New fn.
12153 (gen_decl_die): Call it.
12154 (splice_child_die): New fn.
12155 (gen_member_die): Call it rather than generate duplicate dies.
12156
12157 Defer emitting information for the abstract instance of an inline
12158 until we either inline it or emit an out-of-line copy.
12159 * dwarf2out.c (decl_ultimate_origin): Ignore DECL_ABSTRACT_ORIGIN
12160 from output_inline_function if DECL_ABSTRACT is also set.
12161 (block_ultimate_origin): Likewise.
12162 (gen_abstract_function): New fn.
12163 (gen_decl_die, gen_inlined_subroutine_die): Call it.
12164 (gen_subprogram_die): An abstract instance is not a declaration
12165 just because it doesn't match current_function_decl. Don't abort
12166 because DECL_DEFER_OUTPUT isn't set. Do abort if a declaration
12167 has an abstract origin.
12168 * toplev.c (rest_of_compilation): Don't emit dwarf2 info for the
12169 abstract instance here.
12170
12171 Wed Nov 24 18:39:18 1999 Andrew Haley <aph@cygnus.com>
12172
12173 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
12174 where we need to reload fpul from a system register.
12175
12176 1999-11-24 Andreas Jaeger <aj@suse.de>
12177
12178 * config/mips/linux.h (CPP_PREDEFINES): Added.
12179 (LINK_SPEC): Remove -Y since this is only needed on sparc.
12180
12181 1999-11-24 Andreas Jaeger <aj@suse.de>
12182
12183 * config/mips/linux.h (TARGET_VERSION): Added.
12184 (HANDLE_SYSV_PRAGMA): Added.
12185 (DEFAULT_VTABLE_THUNKS): Added.
12186
12187 Wed Nov 24 14:12:15 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12188
12189 * local-alloc.c (qty): New structure and static variable.
12190 (qty_phys_reg): Remove, all references changed to qty.
12191 (qty_n_refs): Likewise.
12192 (qty_min_class): Likewise.
12193 (qty_birth): Likewise.
12194 (qty_death): Likewise.
12195 (qty_size): Likewise.
12196 (qty_mode): Likewise.
12197 (qty_n_calls_crossed): Likewise.
12198 (qty_alternate_class): Likewise.
12199 (qty_changes_size): Likewise.
12200 (qty_first_reg): Likewise.
12201 (alloc_qty): Rename variable QTY to QTYNO.
12202 (finf_free_reg): Likewise.
12203 (local_alloc): Allocate qty, do not allocate the removed variables.
12204
12205 Wed Nov 24 17:26:05 1999 Geoffrey Keating <geoffk@cygnus.com>
12206
12207 * config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
12208 when -membedded-pic is passed.
12209
12210 * config/mips/mips.md (casesi): Handle 64-bit case too.
12211 (casesi_internal_di): New insn.
12212
12213 * config/mips/mips.c (embedded_pic_offset): Always make the
12214 embedded-pic subtractions relative to the name of the current
12215 function by use of the magic string "..CURRENT_FUNCTION".
12216 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.
12217
12218 1999-11-24 Geoffrey Keating <geoffk@cygnus.com>
12219
12220 * config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
12221 of (const_int 0), when what we really care about is
12222 whether it's a zero constant anyway.
12223 (div_trap_mips16): Likewise.
12224
12225 1999-11-23 Mark Mitchell <mark@codesourcery.com>
12226
12227 * loop.c (loop_optimize): Always find_loop_tree_blocks and
12228 unroll_block_trees when generating debuggable code.
12229
12230 * tree.h (unsave_expr_1): New function.
12231 (lang_unsave): New variable.
12232 (get_callee_fndecl): New function.
12233 * tree.c (unsave_expr_now_r): New function.
12234 (lang_unsave): Define.
12235 (unsave_expr_1): Likewise.
12236 (unsave_expr_now_r): Split out from unsave_expr_now.
12237 (unsave_expr_now): Call lang_unsave if it is non-NULL. Otherwise,
12238 call unsave_expr_now_r.
12239 (get_callee_fndecl): Define.
12240
12241 * Makefile.in (gencheck): Don't depend on lang_tree_files.
12242 (gencheck.o): Do depend on lang_tree_files.
12243
12244 * integrate.h (copy_decl_for_inlining): New declaration.
12245 * integrate.c (copy_and_set_decl_abstract_origin): Remove.
12246 (copy_decl_for_inlining): New function.
12247 (integrate_parm_decls): Use it.
12248 (integrate_decl_tree): Likewise.
12249
12250 1999-11-23 Gavin Romig-Koch <gavin@cygnus.com>
12251
12252 * config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
12253 the second two from the first.
12254 (CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
12255 * config/mips/mips.md (movcc,reload_incc,reload_outcc,
12256 conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
12257 ISA_HAS_FP4.
12258 * config/mips/mips.c (mips_move_1word,gen_conditional_branch,
12259 override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
12260 ISA_HAS_FP4.
12261
12262 Tue Nov 23 11:15:04 1999 Jeffrey A Law (law@cygnus.com)
12263
12264 * pa.md (call_internal_symref, call_value_internal_symref): No mode
12265 needed on the address operand.
12266 * pa.c (call_operand_address): Check for the correct mode.
12267
12268 1999-11-23 Bernd Schmidt <bernds@cygnus.co.uk>
12269
12270 * loop.c: Include "basic-block.h".
12271 (try_copy_prop, replace_loop_reg): New functions.
12272 (load_mems): Detect registers that just hold copies of the hoisted
12273 mem, and call try_copy_prop to eliminate them.
12274 * Makefile.in (loop.o): Update dependencies.
12275
12276 Tue Nov 23 01:03:29 1999 Hans-Peter Nilsson <hp@axis.com>
12277
12278 * Makefile.in (gencheck.o): Depend on gencheck.h.
12279 (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
12280 (insn-peep.o): Depend on except.h and function.h.
12281 (insn-attrtab.o): Depend on RECOG_H.
12282 (insn-output.o): Depend on toplev.h and flags.h.
12283 (gengenrtl.o): Depend on real.h.
12284 (gen-protos.o): Depend on cpplib.h and cpphash.h.
12285 Unify all dependencies to be on RECOG_H rather than recog.h.
12286
12287 Tue Nov 23 00:57:10 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12288
12289 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
12290 * configure.in: Try building a bi-arch 32/64-bit compiler on
12291 sparc-*-solaris2.7 and higher.
12292 * configure: Rebuild.
12293
12294 Mon Nov 22 23:09:44 1999 David O'Brien <obrien@FreeBSD.org>
12295
12296 * config/freebsd.h: New, FreeBSD architecture independent file.
12297 * config/i386/freebsd-elf.h: removed FreeBSD architecturally
12298 independent pieces.
12299 * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
12300 directly by i386/freebsd.h.
12301 * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
12302 independent configuration file.
12303 (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
12304 directly by i386/freebsd.h.
12305 * configure: Rebuilt.
12306
12307 * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
12308 which is in the user's namespace.
12309 * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
12310 `i386' which is not in our namespace.
12311
12312 Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
12313
12314 * invoke.texi (ARM Options): Add in -mno-alignment-traps
12315
12316 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
12317
12318 * dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
12319 (add_dwarf_attr, add_child_die): Just push onto the front.
12320 (reverse_die_lists): New fn.
12321 (add_sibling_attributes): Use it.
12322 (push_decl_scope): Reorganize.
12323 (add_name_and_src_coords_attributes): Don't set file and line for
12324 an artificial decl.
12325 (gen_subprogram_die): An artificial function doesn't need to match
12326 file and line.
12327 (gen_compile_unit_die): Return the generated die. Only add
12328 AT_comp_dir if the filename is relative.
12329 (remove_AT): Simplify loop. Also free string values.
12330 (output_die): A DIE ref can't be null.
12331 (output_value_format, value_format): Take a dw_attr_ref.
12332 (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
12333 (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
12334 AT_addr, AT_lbl): New fns.
12335 (various): Use them.
12336 (various): Constify.
12337
12338 Mon Nov 22 23:53:50 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12339
12340 * combine.c (combine_simplify_rtx): When handling a SUBREG,
12341 take SUBREG_WORD into account.
12342 (if_then_else_cond): Likewise.
12343
12344 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
12345
12346 * gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
12347 clause from BSD license, pursuant with
12348
12349 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
12350
12351 1999-11-22 Bernd Schmidt <bernds@cygnus.co.uk>
12352
12353 * loop.c (load_mems): Reformat slightly.
12354 * basic-block.h (regset_head): New typedef.
12355 (INIT_REG_SET): New macro.
12356
12357 1999-11-22 Bruce Korb <autogen@linuxbox.com
12358
12359 * fixinc/mkfisinc.sh(i?86-*-linux): disable script, run fixincl exe
12360 (mips-dec-bsd*): non-functional code
12361 (alpha*-*-linux-gnu*): redundant, duplicated by "*-*-linux-gnu*"
12362
12363 * fixinc/inclhack.def(AAB_fd_zero_glibc_*):
12364 added three replacement fixes
12365 (no_double_slash): removed comments that are not (any longer) pertinent
12366 (bad_lval): this fix currently runs against many files.
12367 The comment seems to indicate that we should select for files
12368 containing 'pragma extern_prefix'.
12369
12370 * fixinc/fixinc.x86-linux-gnu: deleted
12371 * fixinc/inclhack.sh: regen
12372 * fixinc/fixincl.x: regen
12373 * fixinc/fixincl.sh: regen
12374
12375 Fri Nov 12 14:08:40 1999 Andrew Haley <aph@cygnus.com>
12376
12377 * emit-rtl.c (gen_sequence): Only return the pattern of an insn if
12378 its code is INSN and it has no notes.
12379
12380 1999-11-22 Andrew Haley <aph@cygnus.com>
12381
12382 * varasm.c (function_defined): Remove.
12383 (make_function_rtl): Don't set function_defined.
12384 (make_decl_rtl): Remove global register warning.
12385 * regclass.c (no_global_reg_vars): New variable.
12386 (globalize_reg): Warn if function has already been defined.
12387 (regclass_init): Set no_global_reg_vars.
12388
12389 Mon Nov 22 14:42:22 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12390
12391 * regclass.c (reg_pref): New structure and static variable
12392 (prefclass): Delete.
12393 (altclass): Delete.
12394 (all uses of prefclass and altclass): Use reg_pref instead.
12395
12396 1999-11-21 Nick Clifton <nickc@cygnus.com>
12397
12398 * invoke.texi (ARM Options): Replace -mshort-load-bytes with
12399 -malignment-traps.
12400 (arm.h): Replace -mshort-load-bytes with -malignment-traps.
12401 (arm.c): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
12402 (arm.md): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
12403
12404 Sun Nov 21 17:11:13 1999 Geoffrey Keating <geoffk@cygnus.com>
12405
12406 * varasm.c (output_constructor): Solve problem with long long
12407 bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).
12408
12409 Fri Nov 19 05:48:45 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12410
12411 * global.c (allocno): New structure and static variable.
12412 (allocno_reg): Remove, all references replaced by allocno.
12413 (allocno_size): Likewise.
12414 (hard_reg_conflicts): Likewise.
12415 (hard_reg_preferences): Likewise.
12416 (hard_reg_copy_preferences): Likewise.
12417 (hard_reg_full_preferences): Likewise.
12418 (regs_someone_prefers): Likewise.
12419 (allocno_calls_crossed): Likewise.
12420 (allocno_n_refs): Likewise.
12421 (allocno_live_length): Likewise.
12422 (find_reg): Rename ALLOCNO to NUM.
12423
12424 * regclass.c (may_move_in_cost): Rename from may_move_cost, all
12425 references updated.
12426 (may_move_out_cost): New variable.
12427 (init_reg_sets_1): Initialize may_move_out_cost.
12428 (record_reg_classes): Use may_move_out_cost.
12429
12430 * regclass.c (dump_regclass): New function.
12431 (regclass): New parameter DUMP, call DUMP_REGCLASS.
12432 * toplev.c (rest_of_compilation): Open lreg dump file before regclass,
12433 pass rtl_dump_file to regclass.
12434 * rtl.h (regclass): Update prototype.
12435
12436 Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12437
12438 * i386.md (neg, not and abs patterns): Revmap to use
12439 ix86_expand_unary_operator and ix86_unary_operator_ok.
12440 (add?f and sub?f expanders): Force operand 1 to register.
12441 * i386.c (ix86_expand_unary_operator): Rewrite.
12442 (ix86_unary_operator_ok): Ensure that memory operands
12443 match real opcode.
12444 (ix86_binary_operator_ok): Do not allow operand 1 to
12445 come into memory and operand 0 not.
12446 (ix86_expand_binary_operator): Ensure that
12447 src1 is not non-matching memory.
12448
12449 * i386.md (negs?2): Rewrite to expanders, new patterns and splitters
12450 to support integer registers and memory.
12451 (abss?2_integer): Likewise.
12452
12453 * i386.h (enum reg_class): Add FLOAT_INT_REGS.
12454 (REG_CLASS_NAMES): Likewise.
12455 (REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
12456 and GENERAL_REGS.
12457 * i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
12458 (movsf): Likewise; unify 4th and 5th alternative.
12459 (pushdf): Likewise.
12460 (movdf_1): Likewise; rename to movdf_integer.
12461 (pushxf): Likewise; rename to pushxf_integer; fix output template;
12462 remove redundant splitter.
12463 (movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
12464 (movdf_nointeger): New.
12465 (movxf_nointeger): New.
12466 (pushxf_nointeger): New.
12467
12468 * i386.md (extend?f?f): Split to expander and pattern, refuse two
12469 memory operands in patterns.
12470 (fop*): Refuse two memory operands.
12471
12472 * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
12473 on !TARGET_USE_CLTD CPUs.
12474
12475 Fri Nov 19 10:41:15 GMT 1999 Nathan Sidwell <nathan@acm.org>
12476
12477 * extend.texi: Document C++ restricted pointers and references.
12478
12479 1999-11-19 Bernd Schmidt <bernds@cygnus.co.uk>
12480
12481 * cse.c (addr_affects_sp): No longer conditional on AUTO_INC_DEC.
12482 (invalidate_skipped_set): Call it unconditionally.
12483 (cse_set_around_loop): Likewise.
12484
12485 Thu Nov 18 17:29:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
12486
12487 * rtl.texi (mem): Add documentation for alias-set argument
12488 to RTX `mem'.
12489
12490 Fri Nov 18 13:39:22 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12491
12492 * i386.h (struct_processor_costs): New fields int_load, int_store,
12493 fp_move, fp_load and fp_store
12494 (REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
12495 fp->int moves
12496 (MEMORY_MOVE_COST): New macro.
12497 * i386.c (386_cost): Define new fields.
12498 (i486_cost): Likewise.
12499 (pentium_cost): Likewise.
12500 (pentiumpro_cost): Likewise.
12501 (k6_cost): Likewise.
12502
12503 Fri Nov 19 11:11:55 1999 Greg McGary <gkm@gnu.org>
12504 Geoffrey Keating <geoffk@cygnus.com>
12505
12506 * config/m68k/m68kelf.h: Suppress '/* within comment' warning.
12507
12508 * config/m68k/m68k.h (MASK_PCREL): Don't use same value as
12509 MASK_ALIGN_INT.
12510
12511 * config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
12512 (TARGET_STRICT_ALIGNMENT): New macro.
12513 (TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
12514 (STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
12515 * invoke.texi (M680x0 Options): Document -mstrict-align.
12516
12517 Thu Nov 18 11:10:03 1999 Jan Hubicka <hubicka@freesoft.cz>
12518 Richard Henderson <rth@cygnus.com>
12519
12520 * i386-protos.h (split_xf, ix86_split_movdi): Remove.
12521 (ix86_split_long_move): Declare.
12522 * i386.c (split_xf, ix86_split_movdi): Remove.
12523 (ix86_split_to_parts, ix86_split_long_move): New.
12524 * i386.md (dimode move splitters): Use ix86_split_long_move.
12525 (dfmode move splitters): Likewise.
12526 (xfmode move splitters): Likewise.
12527 (movsf_1): Allow F->r.
12528 (movdf_1, movxf_1): Allow F->ro.
12529
12530 1999-11-17 Mark Mitchell <mark@codesourcery.com>
12531
12532 * except.h (struct eh_entry): Add goto_entry_p.
12533 (eh_region_from_symbol): Remove prototype.
12534 * except.c (find_func_region_from_symbol): New function.
12535 (emit_cleanup_handler): Likewise.
12536 (eh_region_from_symbol): Make it static.
12537 (add_new_handler): Verify the argument.
12538 (find_func_region): Update comment.
12539 (expand_eh_region_end): Expand handlers here, rater than waiting
12540 until expand_leftover_cleanups or start_all_catch.
12541 (expand_leftover_cleanups): Don't expand here.
12542 (expand_start_all_catch): Or here.
12543 (expand_rethrow): Check the return value from find_func_region.
12544 * function.c (expand_function_end): Emit the catch_clauses.
12545
12546 1999-11-18 Gavin Romig-Koch <gavin@cygnus.com>
12547
12548 * integrate.c (expand_inline_function): Add necessary check for NULL.
12549
12550 1999-11-18 Nick Clifton <nickc@cygnus.com>
12551
12552 * toplev.c (main): Correctly detect an unrecognised option.
12553
12554 * cppinit.c (cpp_handle_option): Do not claim to have consumed
12555 a -f option if it has not been recognised.
12556
12557 Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
12558
12559 * basic-block.h (update_life_extent): Remove trailing comma on
12560 enumeration type list.
12561
12562 1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12563
12564 * varasm.c (output_constructor) Solved problem with long long
12565 bitfields. Corrected calculating this_time and shift. Also
12566 corrected calculating mask when BITS_PER_UNIT == 32 (c4x).
12567
12568 Wed Nov 17 23:46:14 1999 Jeffrey A Law (law@cygnus.com)
12569
12570 * flow.c (split_edge): Take looping structure into account when
12571 determining where to put the new block note.
12572
12573 Wed Nov 17 20:42:43 1999 Jeff Holcomb <jeffh@cygnus.com>
12574
12575 * Makefile.in (ggc-none.o): Provide host specific version if
12576 needed.
12577
12578 Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
12579
12580 * cse.c (delete_trivially_dead_insns): Identify no-op insns
12581 containing subregs too.
12582
12583 Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
12584
12585 * invoke.texi: Add documentation for -muninit-const-in-rodata.
12586 * config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
12587 (TARGET_UNINIT_CONST_IN_RODATA): Define.
12588 (text_section): Add switches -munint-const-in-rodata and
12589 -mno-uninit-const-in-rodata.
12590 (ASM_OUTPUT_COMMON): Remove.
12591 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
12592 const objects should be placed in read-only data. Otherwise declare
12593 them in common.
12594
12595 Wed Nov 17 16:38:32 1999 Richard Henderson <rth@cygnus.com>
12596
12597 * jump.c (jump_optimize_1): Revert last change.
12598
12599 Wed Nov 17 15:18:30 1999 Richard Henderson <rth@cygnus.com>
12600
12601 * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
12602 test if optimizing for size.
12603
12604 1999-11-17 Mark Mitchell <mark@codesourcery.com>
12605
12606 * Makefile.in (toplev.o): Depend on except.h.
12607 (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
12608
12609 Mon Nov 15 22:45:39 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12610
12611 * i386.md (divmodsi4): Rewrite to expander.
12612 (*divmodsi4_nocltd): New.
12613 (*divmodsi4_cltd): New.
12614 (divmodsi4 splitter): Handle the case when input comes in edx.
12615 (udivmodhi4): Do not use constraints in exander.
12616 (ashrsi3_31): Conditionize by TARGET_USE_CLTD.
12617
12618 1999-11-17 Jason Merrill <jason@yorick.cygnus.com>
12619
12620 * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
12621 for the common case.
12622
12623 1999-11-16 Jakub Jelinek <jakub@redhat.com>
12624
12625 * explow.c (hard_function_value): Add outgoing argument.
12626 * expr.h (hard_function_value): Declare it.
12627 * calls.c (expand_call, emit_library_call_value): Update callers.
12628 * function.c (aggregate_value_p): Ditto.
12629 (diddle_return_value): Must look at the outgoing registers
12630 on archs with register windows.
12631
12632 Mon Nov 15 20:46:45 1999 Richard Henderson <rth@cygnus.com>
12633
12634 * alpha.c (alpha_build_va_list): Use make_lang_type and
12635 initialize TYPE_NAME for the va_list record.
12636
12637 * flow.c (calculate_global_regs_live): Zero bb->aux to begin.
12638
12639 * ggc-common.c (ggc_print_statistics): Cast size_t to unsigned long
12640 for printing.
12641 * ggc.h (struct ggc_statistics): Rearrange elements for better
12642 packing on 64-bit hosts.
12643 * lcm.c (compute_laterin): Store a size_t not an int in bb->aux.
12644 (compute_nearerout): Likewise.
12645
12646 Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
12647
12648 * config/rs6000/rs6000.c (first_reg_to_save): Save
12649 PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
12650
12651 1999-11-15 Jason Merrill <jason@casey.cygnus.com>
12652
12653 * dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
12654 notion of nesting to find the DIE for a type or function.
12655 DIEs can go in limbo even if we got a context_die.
12656 (push_decl_scope): Our context doesn't need to be in decl_scope_table.
12657 (gen_struct_or_union_type_die): Don't use TREE_PERMANENT to test
12658 for local type.
12659 (gen_decl_die): Ignore NAMESPACE_DECLs for now.
12660 (gen_type_die): Writing out the context doesn't cause member class
12661 template instantiations to be written out as well.
12662
12663 Mon Nov 15 15:33:18 1999 Richard Henderson <rth@cygnus.com>
12664
12665 * rs6000.h (ASM_OUTPUT_DEF): New.
12666 Based on proposed addition from David Edelsohn.
12667
12668 1999-11-15 Robert Lipe <RobertLipe@usa.net>
12669 Bruce Korb <autogen@linuxbox.com>
12670
12671 * fixinc/inclhack.def
12672 (AAB_svr4_replace_byteorder): added. Takes advantage of GCC features
12673 (unixware7_byteorder_fix): added. Removes conflicts for new defs
12674 in net/inet.h.
12675 (svr5_mach_defines): added. Like svr4_mach_defines, with new syntax
12676 (svr4_endian): enabled with SVR5
12677 (svr4_mkdev): simplified syntax and enabled with SVR5
12678
12679 Sun Nov 14 18:49:37 1999 David O'Brien <obrien@FreeBSD.org>
12680
12681 * configure.in: Handle libgcc2 threads support on FreeBSD platforms.
12682 * configure: Rebuilt.
12683 * config/t-freebsd-thread: New file.
12684
12685 Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
12686
12687 * i386.c (ix86_decompose_address): Verify the base is a REG
12688 before trying to examine its register number.
12689
12690 * basic-block.h: Remove all #defines and prototypes related to
12691 integer lists.
12692 (free_bb_mem, compute_preds_succs): Remove prototype.
12693 * rtl.h (free_bb_mem): Remove prototype.
12694 * flow.c (alloc_int_list_node); Remove function.
12695 (add_inst_list_node, free_int_list, add_pred_succ): Likewise.
12696 (compute_preds_succs, free_bb_mem): Likewise.
12697 * gcse.c (gcse_main): Do not call free_bb_mem anymore.
12698 * toplev.c (rest_of_compilation): Likewise.
12699 * haifa-sched.c (build_control_flow): Use flow generated edge
12700 list to build the haifa specific edge list.
12701 (find_rgns): Use new CFG data structures instead of pred/succ lists.
12702 (schedule_insns): Do not build pred/succ lists anymore. Instead
12703 build the edge table.
12704
12705 * basic-block.h (dump_bb_data): Remove declaration.
12706 * flow.c (dump_bb_data): Remove function.
12707 * sbitmap.c (sbitmap_intersect_of_predsucc): Delete function.
12708 (sbitmap_union_of_predsucc): Likewise.
12709
12710 * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
12711 argument. All callers changed.
12712 (delete_null_pointer_checks_1): No longer need to compute the
12713 pred/succ lists.
12714
12715 * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
12716 All callers changed.
12717 (pre_expr_reaches_here_p_work): Likewise.
12718 (pre_edge_insert): No longer call pre_expr_reaches_here_p.
12719 * lcm.c (compute_laterin): Fix initialization of LATER.
12720 (compute_nearerout): Similarly for NEARER.
12721
12722 Sun Nov 14 12:41:57 1999 Bernd Schmidt <bernds@cygnus.co.uk>
12723
12724 * cse.c (set_nonvarying_address_components): Delete unused function.
12725 (refers_to_p): Likewise.
12726
12727 Fri Nov 12 20:53:22 1999 Jeffrey A Law (law@cygnus.com)
12728
12729 * function.c (diddle_return_value): Set REG_FUNCTION_VALUE_P as
12730 needed.
12731
12732 Sat Nov 13 16:20:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12733
12734 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Wrap macro
12735 definition in do while (0).
12736
12737 Fri Nov 12 16:26:25 1999 Jim Wilson <wilson@cygnus.com>
12738
12739 * stmt.c (pushcase, pushcase_range): Partially revert Oct 28 change.
12740
12741 Fri Nov 12 12:43:49 1999 Richard Henderson <rth@cygnus.com>
12742
12743 * unroll.c (unroll_loop): Make temp an unsigned HOST_WIDE_INT.
12744
12745 Fri Nov 12 15:14:19 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
12746
12747 * i960.h (CAN_DEBUG_WITHOUT_FP): Don't define it.
12748 (FRAME_POINTER_REQUIRED): Don't worry about nonlocal goto.
12749 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
12750 (INITIAL_FRAME_POINTER_OFFSET): Remove it.
12751
12752 * i960.c (i960_function_prologue): Don't allocate space for g8-g11
12753 saved on the stack. Output more accurate stack frame statistics
12754 into assembler file.
12755
12756 1999-11-12 11:47 -0800 Zack Weinberg <zack@bitmover.com>
12757
12758 * genextract.c (record_insn_name): New function.
12759 (get_insn_name): No longer a stub.
12760 (main): Call record_insn_name for each insn. After each label
12761 written, print the insn name in a comment.
12762
12763 Fri Nov 12 13:45:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12764
12765 * output.h (const_section, init_section, fini_section): Add
12766 prototypes.
12767
12768 * alpha/elf.h (const_section): Delete declaration.
12769
12770 * svr4.h (const_section): Likewise.
12771
12772 Fri Nov 12 08:54:22 1999 Mark Mitchell <mark@codesourcery.com>
12773
12774 * tree.h (SAVE_EXPR_PERSISTENT_P): New macro.
12775 * tree.c (array_type_nelts): Don't handle SAVE_EXPRs specially.
12776 (unsave_expr_now): Don't unsave SAVE_EXPR_PERSISTENT_P
12777 expressions.
12778 * stor-layout.c (variable_size): Set SAVE_EXPR_PERSISTENT_P on
12779 variable-sized array bounds.
12780
12781 Fri Nov 12 08:04:45 1999 Catherine Moore <clm@cygnus.com>
12782
12783 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Use
12784 ASM_OUTPUT_LABEL.
12785
12786 Fri Nov 12 13:31:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
12787
12788 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
12789 addresses the same way GO_IF_LEGITIMATE_INDEX does.
12790
12791 Fri Nov 12 12:36:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
12792
12793 * cse.c (hash_arg_in_struct): Delete.
12794 (struct table_elt): Delete elt in_struct.
12795 (struct set): Delete elt src_in_struct.
12796 (merge_equiv_classes): Don't set either hash_arg_in_struct or
12797 the corresponding in_struct elts.
12798 (canon_hash): Likewise.
12799 (safe_hash): Likewise.
12800 (find_best_addr): Likewise.
12801 (record_jump_cond): Likewise.
12802 (cse_insn): Likewise.
12803
12804 Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
12805
12806 * loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.
12807
12808 * dbxout.c (dbxout_type, case INTEGER_TYPE): Handle too large
12809 unsigned types.
12810
12811 Thu Nov 11 18:54:24 1999 Jeffrey A Law (law@cygnus.com)
12812
12813 * function.c (diddle_return_value): Put back check that the DECL_RTL
12814 for the function is a register.
12815
12816 * function.c (diddle_return_value): Use hard_function_value to
12817 get an rtx suitable for use in the USE/CLOBBER insn.
12818
12819 * global.c (global_conflicts): Update comments.
12820 (record_conflicts): No need to record conflicts between pseudos here.
12821
12822 1999-11-11 Bruce Korb <autogen@linuxbox.com>
12823
12824 * fixinc/fixincl.c: Added verbose levels for status messages
12825
12826 Thu Nov 11 13:23:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
12827
12828 * jump.c (jump_optimize_1): Avoid passing an rtx that is not an
12829 operand as argument to expand_and or expand_binop.
12830
12831 Thu Nov 11 02:21:16 1999 Rodney Brown <RodneyBrown@pmsc.com>
12832
12833 * xcoffout.c (xcoffout_source_file): Change ggc_add_root to
12834 gcc_add_string_root.
12835
12836 Wed Nov 10 21:24:19 1999 Jason Eckhardt <jle@cygnus.com>
12837
12838 * config/pa/pa.h (MASK_RETURN_ADDR): Change 0xfffffffc to -4.
12839
12840 Wed Nov 10 15:56:16 1999 Jeffrey A Law (law@cygnus.com)
12841
12842 * flow.c (compute_flow_dominators): Initially put all blocks on
12843 the worklist.
12844 * lcm.c (compute_antinout_edge, compute_available): Similarly.
12845 * gcse.c (compute_cprop_avinout): Remove.
12846 (compute_cprop_data): Use compute_available.
12847 (delete_null_pointer_checks_1): Use compute_available.
12848
12849 * basic-block.h (compute_available): Returns a void now.
12850 * gcse.c (one_classic_gcse_pass): Do not expect compute_available
12851 to return a value anymore.
12852 * lcm.c (compute_available, compute_antinout_edge): Revamp to use
12853 worklists. Fix boundary cases. Compute maximal solutions.
12854 (compute_laterin, compute_nearerout): Similarly.
12855
12856 * dwarf2out.c (add_AT_location_description): Allow
12857 (mem (plus (pseudo) (...)) too.
12858
12859 Wed Nov 10 10:52:42 1999 Tom Tromey <tromey@cygnus.com>
12860
12861 * gcc.c (do_spec_1): Support text between `%u' and `%O'.
12862
12863 Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
12864 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12865
12866 * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'.
12867
12868 * gansidecl.h: Likewise.
12869
12870 * rtl.c: Likewise.
12871
12872 * rtl.h: Likewise.
12873
12874 * toplev.h: Likewise.
12875
12876 * tree.c: Likewise.
12877
12878 * tree.h: Likewise.
12879
12880 * varray.c: Likewise.
12881
12882 * varray.h: Likewise.
12883
12884 Wed Nov 10 10:57:22 1999 Clinton Popetz <cpopetz@cygnus.com>
12885
12886 * gcov.c (struct arcdata): Add hits and total, remove prob.
12887 (output_branch_counts): New.
12888 (process_args): Set output_branch_counts if -c.
12889 (calculate_branch_probs): Store hits and total instead of
12890 percentage.
12891 (output_data): Emit counts if output_branch_counts is true.
12892 * gcov.texi (Invoking Gcov): Document -c switch..
12893
12894 Wed Nov 10 01:10:41 1999 Philippe De Muyter <phdm@macqel.be>
12895
12896 * genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
12897 `INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
12898
12899 Wed Nov 10 00:51:41 1999 Hans-Peter Nilsson <hp@axis.se>
12900
12901 * invoke.texi (C Dialect Options): Add missing builtins from
12902 c-common.c to list.
12903 * extend.texi (Other Builtins): Copy to this list.
12904
12905 Wed Nov 10 04:58:09 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12906
12907 * Makefile.in (recog.o): Use BASIC_BLOCK_H macro.
12908 (print-rtl.o, $(HOST_PREFIX_1)print-rtl.o): Likewise. Remove
12909 redundant bitmap.h.
12910
12911 Wed Nov 10 00:02:53 1999 Jeffrey A Law (law@cygnus.com)
12912
12913 * flow.c (compute_flow_dominators): No longer treat basic block 0
12914 or (n_basic_blocks - 1) specially. Clear the AUX field before
12915 starting computation of doms/pdoms. Fix initial state for pdoms.
12916
12917 Wed Nov 10 03:58:08 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12918
12919 * Makefile.in ($(HOST_PREFIX_1)rtl.o): Update dependencies to
12920 match rtl.o's: added ggc.h and toplev.h
12921 ($(HOST_PREFIX_1)print-rtl.o): Likewise: added system.h.
12922 ($(HOST_PREFIX_1)rtlanal.o): Likewise: added system.h.
12923 ($(HOST_PREFIX_1)obstack.o): Likewise: added $(CONFIG_H).
12924
12925 Tue Nov 9 10:30:08 1999 Tom Tromey <tromey@cygnus.com>
12926
12927 * config/i386/xm-djgpp.h (HAVE_DOS_BASED_FILE_SYSTEM): Renamed
12928 from HAVE_DOS_BASED_FILESYSTEM.
12929 * gcc.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM, not
12930 HAVE_DOS_BASED_FILESYSTEM.
12931 (main): Likewise.
12932 (split_directories): Only special-case DOS file names if
12933 HAVE_DOS_BASED_FILE_SYSTEM is defined. Use IS_DIR_SEPARATOR
12934 instead of explicit tests. Conditionalize on !VMS.
12935 (make_relative_prefix): Use IS_DIR_SEPARATOR instead of explicit
12936 tests. Conditionalize on !VMS.
12937 (process_command): Only use make_relative_prefix if !VMS.
12938 (free_split_directories): Conditionalize on !VMS.
12939 (DIR_UP): Conditionalize on !VMS.
12940
12941 Wed Jun 9 16:57:11 1999 Mumit Khan <khan@xraylith.wisc.edu>
12942
12943 * gcc.c (STANDARD_BINDIR_PREFIX): Provide default.
12944
12945 Fri Feb 5 14:22:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
12946
12947 * gcc.c (make_relative_prefix): Handle the HAVE_EXECUTABLE_SUFFIX
12948 case.
12949
12950 Mon Nov 8 14:16:57 1999 Michael Meissner <meissner@cygnus.com>
12951
12952 * invoke.texi (Environment Variables): Document relative path
12953 lookup.
12954 * gcc.c (DIR_UP): If not defined, define as "..".
12955 (standard_bindir_prefix): New static, holds target location to
12956 install binaries.
12957 (split_directories): New function to split a filename into
12958 component directories.
12959 (free_split_directories): New function, release memory allocated
12960 by split_directories.
12961 (make_relative_prefix): New function, make a relative pathname if
12962 the compiler is not in the expected location.
12963 (process_command): If GCC_EXEC_PREFIX was not specified, see if we
12964 can figure out an appropriate prefix from argv[0].
12965 * Makefile.in (DRIVER_DEFINES): Use unlibsubdir in definition of
12966 STANDARD_STARTFILE_PREFIX and TOOLDIR_BASE_PREFIX. Define
12967 STANDARD_BINDIR_PREFIX.
12968
12969 Wed Nov 10 11:47:54 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12970
12971 * config/c4x/c4x-protos.h: New file. Prototypes for functions defined
12972 in c4x.c.
12973 * config/c4x/c4x.h: Moved prototypes to c4x.h.
12974 * config/c4x/c4x.c (c4x_preferred_reload_class, c4x_limit_reload_class,
12975 c4x_secondary_memory_needed) Delete.
12976 (fp_zero_operand): Add mode argument.
12977
12978 Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
12979
12980 * reload1.c (reload_reg_free_for_value_p): Don't use a register
12981 that is in reload_reg_used.
12982
12983 Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
12984
12985 * config/arm/arm-protos.h: New file: Prototypes for functions
12986 defined in arm.c and pe.c.
12987 * config/arm/arm.h: Fix compile time warnings.
12988 * config/arm/arm.c: Fix compile time warnings.
12989 * config/arm/pe.h: Fix compile time warnings.
12990 * config/arm/aout.h: Fix compile time warnings.
12991
12992 Tue Nov 9 14:55:44 1999 Nick Clifton <nickc@cygnus.com>
12993
12994 * config/m32r/m32r-protos.h: New file: Prototypes for functions
12995 defined in m32r.c
12996
12997 * config/m32r/m32r.h: Move prototypes to m32r-protos.h
12998 Add support for subtargets.
12999 Add prototypes for new predicates.
13000 Add scheduling macros.
13001
13002 * config/m32r/m32r.c: Fix compile time warnings.
13003 (int8_operand): New predicate function.
13004 (reg_or_cmp_int16_operand): New predicate function.
13005 (extend_operand): New predicate function.
13006 (m32r_adjust_code): New scheduling function.
13007 (m32r_adjust_priorty): New scheduling function.
13008 (m32r_sched_init): New scheduling function.
13009 (m32r_sched_reorder): New scheduling function.
13010 (m32r_sched_variable_issue): New scheduling function.
13011 (direct_return): New codegen function.
13012 (m32r_not_same_reg): New rtl testsing function.
13013
13014 * config/m32r/m32r.md: Fix compile time warnings.
13015 Add support for pre decrement and post increment memory
13016 references.
13017 Add S<cc> patterns.
13018 Add fabs patterns.
13019
13020 Mon Nov 8 22:20:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13021
13022 * global.c (EXECUTE_IF_CONFLICT): Don't define.
13023 (prune_preferences): Use EXECUTE_IF_SET_IN_ALLOCNO_SET instead.
13024 (find_reg): Likewise.
13025
13026 Mon Nov 8 13:16:46 1999 Jason Eckhardt <jle@cygnus.com>
13027
13028 * config/pa/pa.md (fmpynfadd,{sgl,dbl} insns): Use %fr0 rather than 0
13029 to avoid assembler errors.
13030
13031 Mon Nov 8 15:38:41 1999 Nick Clifton <nickc@cygnus.com>
13032
13033 * config/v850/v850-protos.h: New file: Prototypes for functions
13034 defined in v850.c
13035 * config/v850/v850.h: Move prototypes to v850-protos.h
13036 * config/v850/v850.c: Move prototypes to v850-protos.h
13037 * config/v850/v850.md: Fix compile time warnings.
13038
13039 * config/fr30/fr30-protos.h: New file: Prototypes for functions
13040 defined in fr30.c
13041 * config/fr30/fr30.h: Move prototypes to fr30-protos.h
13042 * config/fr30/fr30.c: Fix compile time warnings.
13043 * config/fr30/fr30.md: Fix compile time warnings.
13044
13045 Mon Nov 8 07:25:37 1999 Mark Mitchell <mark@codesourcery.com>
13046
13047 * tree.h (get_containing_scope): Declare it.
13048 * tree.c (get_containing_scope): New fucntion.
13049 (decl_function_context): Use it.
13050 * toplev.c (rest_of_compilation): Use get_containing_scope.
13051
13052 aMon Nov 8 03:03:07 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13053
13054 * Makefile.in (rtl.o): Depend on toplev.h.
13055
13056 Sun Nov 7 20:55:14 1999 Mark Mitchell <mark@codesourcery.com>
13057
13058 * cse.c (delete_trivially_dead_insns): Replace alloca with
13059 xmalloc/xcalloc.
13060 * except.c (update_rethrow_references): Likewise.
13061 (init_eh_nesting_info): Likewise.
13062 * function.c (identify_blocks): Likewise.
13063 * gcse.c (dump_hash_table): Likewise.
13064 * graph.c (print_rtl_graph_with_bb): Likewise.
13065 * loop.c (combine_movables): Likewise.
13066 (move_movables): Likewise.
13067 (count_loop_regs_set): Likewise.
13068 (strength_reduce): Likewise.
13069 * profile.c (compute_branch_probabilities): New function, split
13070 out from ...
13071 (branch_prob): Here. Replace alloca with xmalloc/xcalloc.
13072 * regclass.c (regclass): Likewise.
13073 * regmove.c (regmove_optimize): Likewise.
13074 * toplev.c (compile_file): Likewise.
13075 (main): Don't mess with the stack rlimit.
13076
13077 Sun Nov 7 19:41:17 1999 Catherine Moore <clm@cygnus.com>
13078
13079 * config/elfos.h (ASM_DECLARE_FUNCTION_NAME): Conditionally define.
13080 (ASM_DECLARE_FUNCTION_SIZE): Conditionally define.
13081
13082 Sun Nov 7 10:23:28 1999 Mark P. Mitchell <mark@codesourcery.com>
13083
13084 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns.
13085
13086 Sun Nov 7 02:58:48 1999 Jeffrey A Law (law@cygnus.com)
13087
13088 * global.c (EXECUTE_IF_CONFLICT): Undo Robert's change.
13089 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Put curleys around CODE in
13090 macro expansion.
13091
13092 Sat Nov 6 23:48:30 1999 Robert Lipe (robertlipe@usa.net)
13093
13094 * global.c (EXECUTE_IF_CONFLICT): Correct quoting typo.
13095
13096 Sat Nov 6 17:34:39 1999 Jeffrey A Law (law@cygnus.com)
13097
13098 * gcse.c (post_dominators): Kill.
13099 (alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators.
13100 (compute_code_hoist_data): Use compute_flow_dominators. Do not
13101 pass in a pdom array since we do not need pdoms.
13102 * haifa-sched.c (schedule_insns): Similarly.
13103 * flow.c (compute_dominators): Remove dead function.
13104 (compute_flow_dominators): Do not compute doms or pdoms if the
13105 caller does not request them. Split up loop to build doms and
13106 pdoms. Use a worklist to compute doms and pdoms.
13107 * basic-block.h (compute_dominators): Remove prototype.
13108
13109 Sat Nov 6 11:38:39 1999 Richard Henderson <rth@cygnus.com>
13110
13111 * haifa-sched.c (struct haifa_insn_data, h_i_d): New.
13112 (insn_luid, insn_priority, insn_costs, insn_units): Remove.
13113 (insn_reg_weight, insn_depend, insn_dep_count): Remove.
13114 (insn_blockage, insn_ref_count, line_note, insn_tick): Remove.
13115 (cant_move, fed_by_spec_load, is_load_insn): Remove.
13116 (schedule_region): Remove unused variable.
13117 (schedule_insns): Allocate h_i_d, and not all the separate arrays.
13118
13119 Sat Nov 6 10:00:34 1999 Mark Mitchell <mark@codesourcery.com>
13120
13121 * local-alloc.c (local_alloc): Use xmalloc/xcalloc, not alloca.
13122 (update_equiv_regs): Likewise.
13123 (block_alloc): Likewise.
13124 * reg-stack.c (reg_to_stack): Likewise.
13125 (convert_regs_2): Likewise.
13126 * reload1.c (reload_as_needed): Likewise.
13127
13128 Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
13129
13130 * Makefile.in (dbxout.o): Depend on ggc.h.
13131 (dwarf2out.o): Likewise.
13132 (xcoffout.o): Likewise.
13133 * dbxout.c: Include ggc.h.
13134 (dbxout_init): Register lastfile as a root.
13135 * dwarf2out.c: Include ggc.h.
13136 (dwarf2out_line): Register lastfile as a root.
13137 * xcoffout.c: Include ggc.h.
13138 (xcoffout_source_line): Register xcoff_lastfile as a root.
13139
13140 Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
13141
13142 * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
13143
13144 Sat Nov 6 07:48:59 1999 Catherine Moore <clm@cygnus.com>
13145
13146 * config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
13147 defined.
13148 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
13149
13150 Fri Nov 5 18:33:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13151
13152 * global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
13153 (EXECUTE_IF_CONFLICT): Likewise.
13154 (ALLOCNO_LIVE_P): Avoid signed division.
13155 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
13156 (prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
13157 (record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.
13158
13159 Fri Nov 5 12:04:02 1999 Richard Henderson <rth@cygnus.com>
13160
13161 * haifa-sched.c (schedule_block): Don't crash if there's no
13162 next insn for an interblock movement.
13163 (add_branch_dependences): Don't allow clobber insns to move either.
13164
13165 Fri Nov 5 10:18:11 1999 Richard Henderson <rth@cygnus.com>
13166
13167 * i386.c (split_xf): New.
13168 * i386-protos.h: Declare it.
13169 * i386.md (movxf_1): Add general regs alternatives.
13170 (movxf_1+1): New splitter for same.
13171
13172 Fri Nov 5 12:05:52 1999 Nick Clifton <nickc@cygnus.com>
13173
13174 * function.c (purge_addressof_1): Add missing return values.
13175
13176 Fri Nov 5 10:07:25 1999 Nick Clifton <nickc@cygnus.com>
13177
13178 * function.c (is_addressof): New function. Returns true if
13179 the given piece of RTL is an ADDRESSOF.
13180 (purge_addressof_1): Make boolean. Return false if the
13181 ADDRESSOFs could not be purged.
13182 (purge_addressof): If ADDRESSOFs could not be purged from the
13183 notes attached to an insn, remove the offending note(s),
13184 unless they are attached to a libcall.
13185
13186 1999-11-05 Andreas Jaeger <aj@suse.de>
13187
13188 * genoutput.c (null_operand =): Initialize all fields.
13189
13190 * errors.h: Add extern to prototypes.
13191
13192 Fri Nov 5 01:44:09 1999 Jeffrey A Law (law@cygnus.com)
13193
13194 * configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
13195 * configure: Rebuilt.
13196
13197 Fri Nov 5 01:24:37 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13198
13199 * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
13200 (mirror_conflicts): New function.
13201 (global_alloc): Call it.
13202 (expand_preferences): Remove redundant CONFLICTP test.
13203 (find_reg, dump_conflicts): Likewise.
13204 (prune_preferences): Process conflicts one word at a time.
13205
13206 Fri Nov 5 01:05:21 1999 Richard Henderson <rth@cygnus.com>
13207
13208 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
13209 instead of an explicit loop.
13210
13211 Thu Nov 4 23:07:14 1999 Jim Wilson <wilson@cygnus.com>
13212
13213 * cse.c (cse_insn): Revert Oct 31 change. When computing src_elt,
13214 if REG_RETVAL check succeeds, then put classp in src_elt.
13215
13216 Thu Nov 4 23:48:14 1999 Jeffrey A Law (law@cygnus.com)
13217
13218 * function.c (pad_to_arg_alignment): Only update argument_pad
13219 if the argument's alignment is greater than STACK_BOUNDARY.
13220
13221 Thu Nov 4 16:44:53 1999 Richard Henderson <rth@cygnus.com>
13222
13223 * bitmap.h (BITMAP_XFREE): New.
13224 * flow.c (life_analysis): Use it.
13225 (life_analysis_1): Free blocks.
13226
13227 * combine.c (undo_commit): New.
13228 (try_combine): Use it. Don't zap undobuf.undos.
13229 (combine_instructions): Don't zap undobuf.undos; free the
13230 undobuf.frees list.
13231
13232 * local-alloc.c (local_alloc): Free qty_phys_num_sugg.
13233
13234 * stmt.c (cost_table_): New.
13235 (estimate_case_costs): Use it instead of xmalloc.
13236
13237 * toplev.c (compile_file): Reuse dumpname memory instead
13238 of strdup'ing it.
13239
13240 Thu Nov 4 16:36:44 1999 Richard Henderson <rth@cygnus.com>
13241
13242 * reg-stack.c (convert_regs_1): Initialize target_stack->top
13243 after verifying an EH edge.
13244
13245 * haifa-sched.c (init_rgn_data_dependences): Correctly
13246 size bb_pending_lists_length when zeroing.
13247
13248 Thu Nov 4 16:36:36 1999 Richard Henderson <rth@cygnus.com>
13249
13250 * function.c (diddle_return_value): New.
13251 (expand_function_end): Use it.
13252 * stmt.c (expand_null_return): Likewise.
13253 (expand_value_return): Likewise.
13254
13255 * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.
13256
13257 * reload1.c (reload): Don't remove return value clobbers.
13258
13259 Thu Nov 4 13:33:46 1999 Richard Henderson <rth@cygnus.com>
13260
13261 * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
13262
13263 Thu Nov 4 12:49:52 1999 Richard Henderson <rth@cygnus.com>
13264
13265 * cse.c (cse_main): Use xmalloc, not alloca.
13266 (cse_basic_block): Likewise.
13267 * local-alloc.c (local_alloc): Likewise.
13268
13269 Thu Nov 4 14:22:12 1999 David Billinghurst <David.Billinghurst@riotinto.com.au>
13270 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13271
13272 * rtl.c: Include toplev.h.
13273 (fatal): Remove declaration.
13274
13275 Thu Nov 4 06:39:47 1999 Jeffrey A Law (law@cygnus.com)
13276
13277 * haifa-sched.c (schedule_block): Fix thinko.
13278
13279 1999-11-03 James McKelvey <mckelvey@fafnir.com>
13280
13281 * fixinc/fixincl.c(create_file): Allow for systems that do not have
13282 S_IR* defined values
13283
13284 1999-11-03 Philippe De Muyter <phdm@macqel.be>
13285
13286 * fixlib.c (load_file_data): Do not call `realloc' with a NULL pointer;
13287 call `malloc' instead.
13288
13289 Wed Nov 3 23:05:14 1999 Mark Mitchell <mark@codesourcery.com>
13290
13291 * flags.h (flag_renumber_insns): Declare.
13292 * emit-rtl.c (renumber_insns): Check flag_renumber_insns. Print
13293 renumbering table.
13294 * rtl.h (renumber_insns): Change prototype.
13295 * toplev.c (flag_renumber_insns): Define.
13296 (rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.
13297
13298 Wed Nov 3 15:11:27 1999 David S. Miller <davem@redhat.com>
13299
13300 * config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
13301 and fpsqrtd. Use them and create fdiv function unit to more
13302 accurately represent fpu sqrt pipeline semantics on UltraSparc.
13303 * config/sparc/sparc.c: Account for fpsqrt{s,d} changes.
13304
13305 Wed Nov 3 15:11:27 1999 Matteo Frigo <athena@fftw.org>
13306
13307 * config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
13308 3 on UltraSparc.
13309 * config/sparc/sparc.c (ultra_schedule_insn): Insert launched
13310 insn into ready list, do not use just a raw swap.
13311
13312 Wed Nov 3 14:51:59 1999 Mark P. Mitchell <mark@codesourcery.com>
13313
13314 * rtl.h (renumber_insns): New function.
13315 (remove_unnecessary_notes): Likewise.
13316 * emit-rtl.c (renumber_insns): Define.
13317 (remove_unncessary_notes): Likewise.
13318 * toplev.c (rest_of_compilation): Remove dead code.
13319 Use renumber_insns and remove_unncessary_notes.
13320
13321 * gcse.c (struct null_pointer_info): New type.
13322 (get_bitmap_width): New function.
13323 (current_block): Remove.
13324 (nonnull_local): Likewise.
13325 (nonnull_killed): Likewise.
13326 (invalidate_nonnull_info): Take a null_pointer_info as input.
13327 (delete_null_pointer_checks_1): New function.
13328 (delete_null_pointer_checks): Use it.
13329
13330 * haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
13331 (split_edges): Likewise.
13332 (schedule_block): Likewise.
13333 (compute_block_backward_dependencies): Likewise.
13334 (schedule_region): Likewise.
13335 (schedule_insns): Likewise.
13336
13337 Wed Nov 3 15:40:23 1999 Catherine Moore <clm@cygnus.com>
13338
13339 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
13340 * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
13341 * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
13342 * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
13343 * jump.c (delete_unreferenced_labels): Don't delete if
13344 LABEL_ALTERNATE_NAME is set.
13345 * print-rtl.c (print_rtx): Dump alternate name.
13346 * rtl.def (CODE_LABEL): Change format to "iuuis00s".
13347 * rtl.h (LABEL_ALTERNATE_NAME): Define.
13348 * rtl.texi (LABEL_ALTERNATE_NAME): Document.
13349 * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.
13350
13351 Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13352
13353 * fix-header.c (recognized_extern, recognized_function): Constify
13354 a char*.
13355
13356 * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
13357 (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
13358 (compute_available): Remove unused variable `last'.
13359 (compute_nearerout): Remove unused variable `temp_bitmap'.
13360 (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
13361 Remove unused variable `x'.
13362
13363 * scan.h (recognized_function, recognized_extern): Constify a
13364 char*.
13365
13366 * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
13367
13368 Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13369
13370 * varasm.c (decode_rtx_const): Use XSTR to access the string
13371 of a SYMBOL_REF.
13372
13373 Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
13374
13375 * c-decl.c (duplicate_decls): Copy DECL_MODE too.
13376
13377 Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13378
13379 * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
13380
13381 Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
13382
13383 * pa.c (ireg_operand): New function.
13384 * pa.h (PREDICATE_CODES): Handle ireg_operand.
13385 * pa.md (parallel_addb, parallel_movb): Use ireg_operand.
13386 Fix out of date comment.
13387
13388 * pa.md (negdi2): Turn into expander + anonymous pattern.
13389
13390 * reload.c (find_reloads): Fix typos in recent change.
13391
13392 * dwarf2out.c: Do not include ctype.h.
13393
13394 Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13395
13396 * regclass.c (record_reg_classes): Always use may_move_cost when
13397 seeing how operand fits with various register classes.
13398
13399 Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
13400
13401 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
13402 * toplev.c: Revert Nov 1 13:22 change.
13403
13404 Tue Nov 2 14:21:37 1999 Jason Eckhardt <jle@cygnus.com>
13405
13406 * config/pa/pa.md (height reduction patterns): Add checks for
13407 overlapping operands to avoid semantic-destroying splits for
13408 height reduction patterns.
13409
13410 Tue Nov 2 15:27:31 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13411
13412 * configure.in (m68k-hp-hpux*, xm_alloca.h): The underscore should
13413 have been an hyphen, fixed.
13414 * configure: Rebuilt.
13415
13416 Tue Nov 2 17:04:36 1999 Nick Clifton <nickc@cygnus.com>
13417
13418 * config/arm/tpe.h: Add prototypes for exported functions.
13419 * config/arm/pe.c: Fix compile time warnings.
13420 * config/arm/semi.h: Fix compile time warnings.
13421 * config/arm/arm.c: Fix compile time warnings.
13422 * config/arm/arm.h: Fix compile time warnings.
13423 * config/arm/arm.md: Fix compile time warnings.
13424 * config/arm/thumb.c: Fix compile time warnings.
13425 * config/arm/thumb.h: Fix compile time warnings.
13426 * config/arm/thumb.md: Fix compile time warnings.
13427
13428 Tue Nov 2 04:10:24 1999 Jan Hubicka <hubicka@freesoft.cz>
13429
13430 * jump.c (jump_optimize_1): Swap the incscc and the conditional mode
13431 detection code
13432
13433 * unroll.c (unroll_loop): Remove LOOP notes when loop is
13434 completely unrolled.
13435
13436 Tue Nov 2 16:57:22 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13437
13438 * cse.c (simplify_plus_minus, check_fold_const): Delete declarations.
13439
13440 Tue Nov 2 09:43:00 1999 Catherine Moore <clm@cygnus.com>
13441
13442 * Makefile.in (genattrtab): Don't use (HOST_RTLANAL).
13443 * rtl.h (rtx_equal_p): Move prototype.
13444 * rtl.c (rtx_equal_function_value_matters): Move from
13445 rtlanal.c
13446 (rtx_equal_p): Likewise.
13447 * rtlanal.c (rtx_equal_function_value_matters): Delete.
13448 (rtx_equal_p): Likewise.
13449
13450 Mon Nov 1 23:21:17 1999 Jason Merrill <jason@yorick.cygnus.com>
13451
13452 * libgcc2.c (__do_global_dtors): Only do EH frame stuff if
13453 ! HAS_INIT_SECTION.
13454
13455 Mon Nov 1 23:37:38 1999 Jeffrey A Law (law@cygnus.com)
13456
13457 * gcc.1 (PA options): Remove obsolete -mshared-libs options.
13458
13459 * pa.h (ADDR_VEC_ALIGN): Define.
13460
13461 * jump.c (jump_optimize_1): Also move LOOP_VTOP and LOOP_CONT
13462 notes when presented with "if (foo) break; end_of_loop" and
13463 the break sequence gets moved out of the loop.
13464
13465 * unroll.c (unroll_loop): Allocate memory for MAP using xcalloc.
13466 Remove explicit zero initializations of entries within MAP.
13467
13468 Mon Nov 1 18:09:14 1999 Richard Henderson <rth@cygnus.com>
13469
13470 * reg-stack.c (convert_regs_1): Handle EH edges specially.
13471
13472 Mon Nov 1 15:41:01 1999 Mark P. Mitchell <mark@codesourcery.com>
13473
13474 * bitmap.h (BITMAP_XMALLOC): New macro.
13475 * flow.c (CLEAN_ALLOCA): Remove.
13476 (delete_unreachable_blocks): Use xmalloc/xcalloc instead of alloca.
13477 (life_analysis): Likewise.
13478 (update_life_info): Don't use CLEAN_ALLOCA.
13479 (life_analysis_1): Use xmalloc/xcalloc instead of alloca.
13480 (calculate_global_regs_live): Likewise.
13481 (print_rtl_with_bb): Likewise.
13482 (verify_flow_info): Likewise.
13483 * global.c (global_alloc): Likewise.
13484 (global_conflicts): Likewise.
13485 * integrate.c (save_for_inline_nocopy): Likewise.
13486 (expand_inline_function): Likewise.
13487 * jump.c (jump_optimize_1): Likewise.
13488 (duplicate_loop_exit_test): Likewise.
13489 (thread_jumps): Likewise.
13490 * loop.c (loop_optimize): Likewise.
13491 (combine_givs): Likewise.
13492 (recombine_givs): Likewise.
13493 * reorg.c (dbr_schedule): Likewise.
13494 * unroll.c (unroll_loop): Likewise.
13495
13496 * combine.c (combine_instructions): Use xmalloc instead of alloca.
13497
13498 Mon Nov 1 13:22:30 1999 Richard Henderson <rth@cygnus.com>
13499
13500 * toplev.c (rest_of_compilation): Don't optimize the CFG
13501 when rebuilding, just before dbr.
13502
13503 Mon Nov 1 14:35:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13504
13505 * output.h (assemble_end_function, assemble_destructor,
13506 assemble_constructor, assemble_gc_entry, assemble_global,
13507 assemble_label, output_constant_pool) Constify a char*.
13508
13509 * varasm.c (assemble_destructor, assemble_constructor,
13510 assemble_gc_entry, assemble_end_function, assemble_global,
13511 assemble_label, output_constant_pool): Likewise.
13512
13513 Mon Nov 1 14:22:51 1999 Nick Clifton <nickc@cygnus.com>
13514
13515 * config/arm/thumb.c (thumb_expand_prologue): Add comments
13516 explaining what is goin on in this function.
13517
13518 Mon Nov 1 08:03:15 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13519
13520 * regclass.c (record_reg_classes): In matching case, recompute
13521 costs since the direction of movement is different.
13522
13523 Sun Oct 31 21:59:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
13524
13525 * resource.c (mark_target_live_regs): For unconditional branches,
13526 the resources found at the branch target should be added to the
13527 resources found so far, not intersected.
13528
13529 Sun Oct 31 15:48:49 1999 Philippe De Muyter <phdm@macqel.be>
13530
13531 * fixinc/fixtests.c, fixinc/fixfixes.c : Keep `#' in first column for
13532 old cpp's.
13533 * fixinc/fixincl.c (fcntl.h) : Do not include this file twice.
13534 (sys/mman.h): Include this file only if #HAVE_MMAP.
13535 (run_compiles): Initialize `esac_fmt' with one old KR string, not
13536 with automatically concatenated ANSI strings.
13537
13538 Sun Oct 31 23:57:07 1999 Mark Mitchell <mark@codesourcery.com>
13539
13540 * ggc-page.c (struct page_entry): Remove save_num_free_objects.
13541 (DIV_ROUND_UP): Robustify.
13542 (ggc_recalculate_in_use_p): New function.
13543 (release_pages): Don't inline it.
13544 (ggc_alloc_obj): Don't refuse to allocate objects on pages for
13545 outer contexts.
13546 (ggc_pop_context): Use ggc_recalculate_in_use_p.
13547 (clear_marks): Always save in_use_p.
13548 (sweep_pages): Use ggc_recalculate_in_use_p.
13549 (ggc_page_print_statistics): Avoid signed/unsigned comparisons.
13550 Release pages before counting statistics.
13551
13552 Sun Oct 31 23:42:37 1999 Mark Mitchell <mark@codesourcery.com>
13553
13554 * toplev.c (rest_of_compilation): Fix thinko in this change:
13555
13556 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
13557
13558 (rest_of_compilation): If inside an inlined external function,
13559 pretend we are just being declared.
13560
13561 Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
13562
13563 * flow.c (calculate_global_regs_live): Fix thinko.
13564
13565 * integrate.c (expand_inline_function): Fix bugs in previous
13566 change from Oct 28, 1999.
13567
13568 Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
13569
13570 * stmt.c (expand_value_return): Fix typo in this change:
13571
13572 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13573 (expand_value_return): Correctly convert VAL when promoting function
13574 return; support RETURN_REG being a PARALLEL.
13575
13576 Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
13577
13578 * expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
13579
13580 Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13581
13582 * hard-reg-set.h (reg_names): Constify a char*.
13583
13584 * regclass.c (reg_names): Likewise.
13585
13586 * regs.h (reg_names): Likewise
13587
13588 * a29k/a29k.c (reg_names): Delete declaration.
13589
13590 * a29k/a29k.h (CONDITIONAL_REGISTER_USAGE): Constify a char*.
13591
13592 * arc/arc.c (arc_save_restore, arc_output_function_prologue,
13593 arc_output_function_epilogue): Likewise.
13594
13595 * elxsi/elxsi.c (reg_names): Likewise.
13596
13597 * gmicro/gmicro.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
13598
13599 * m32r/m32r.c (m32r_output_function_epilogue, emit_cond_move):
13600 Likewise.
13601
13602 * m88k/m88k.c (output_function_profiler): Likewise.
13603
13604 * sparc/sparc.c (sparc_flat_output_function_prologue,
13605 sparc_flat_output_function_epilogue): Likewise.
13606
13607 Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
13608
13609 * toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
13610 warning from -Wuninitialized and put it under -W.
13611 * function.c (uninitialized_vars_warning): Warn only when the
13612 corresponding flag is set.
13613
13614 Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
13615
13616 * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
13617 is nonzero and the single set does not have an elt, then assign
13618 it an elt.
13619
13620 * simplify-rtx.c: New file.
13621 * Makefile.in (OBJS): Add simplify-rtx.o
13622 (simplify-rtx.o): Add dependencies.
13623 * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
13624 * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
13625 (cse_gen_binary, simplify_unary_operation): Delete.
13626 (simplify_binary_operation, simplify_plus_minus): Likewise.
13627 (check_fold_consts, simplify_relation_operation): Likewise.
13628 (simplify_ternary_operation): Likewise.
13629 (delete_trivially_dead_insns): Simplify the contents of the
13630 REG_EQUAL note before trying to substitute it into the source
13631 of the reg-reg copy at the end of a libcall sequence.
13632
13633 * combine.c (combine_simplify_rtx): Renamed from simplify_rtx. All
13634 references/callers changed.
13635
13636 * mn10200.c (mn10200_va_arg): Force the return value into a
13637 register.
13638
13639 * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
13640
13641 * cccp.c (macroexpand): Avoid out of range accesses for omitted
13642 arguments.
13643
13644 Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
13645
13646 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
13647
13648 Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
13649
13650 * fold-const.c (fold): Fix thinko when optimizing comparisons
13651 against -0.0.
13652
13653 Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
13654
13655 * gcc.texi (Passes): Update front-end files to their current
13656 location.
13657
13658 Sat Oct 30 14:41:40 1999 Richard Henderson <rth@cygnus.com>
13659
13660 * alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
13661 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13662 (PREDICATE_CODES): Add addition_operation.
13663 * alpha-protos.h (addition_operation): Declare.
13664 (secondary_reload_class): Likewise.
13665 * alpha.c (addition_operation): New.
13666 (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
13667 * alpha.md (adddi3): Turn into expander.
13668 (*lda, *adddi_2): New.
13669 (movsf, movdf patterns): Don't preference integer regs.
13670 (movsi, movdi patterns): Don't preference fp regs.
13671
13672 Sat Oct 30 14:38:22 1999 Richard Henderson <rth@cygnus.com>
13673
13674 * genrecog.c (write_switch): Check for duplicate CODE cases.
13675
13676 Sat Oct 30 14:31:48 1999 Richard Henderson <rth@cygnus.com>
13677
13678 * ggc-common.c: Update pre-function commentary.
13679 * ggc-page.c: Likewise.
13680 (poison): Remove.
13681 (poison_pages): Use memset directly.
13682 (ggc_alloc_obj): Likewise. Use a different pattern than poison_pages.
13683 (ggc_collect): Poison before sweeping.
13684 * ggc-simple.c: Update pre-function commentary.
13685 (ggc_alloc_obj): Poison non-zeroed memory.
13686
13687 Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
13688
13689 * ggc-common.c (ggc_print_statistics): Make arguments to fprintf
13690 match format string, even on 64-bit hosts.
13691 * gcc-page.c (ggc_page_print_statistics): Likewise.
13692
13693 Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
13694
13695 * config/i386/i386.c (ix86_cpu): Revert last patch.
13696 * config/i386/i386.h (ix86_cpu): Ditto.
13697
13698 Fri Oct 29 17:00:42 1999 Jim Wilson <wilson@cygnus.com>
13699
13700 * stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
13701 TYPE_SIZE, convert type of result to sizetype.
13702
13703 Fri Oct 29 14:34:17 1999 Richard Henderson <rth@cygnus.com>
13704
13705 * flow.c (count_or_remove_death_notes): Equate NULL with the
13706 universal set.
13707
13708 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
13709 * toplev.c (rest_of_compilation): Rebuild CFG immediately before
13710 dbr_schedule.
13711
13712 * i386.c (pic_label_no): Delete.
13713 (ix86_attr_length_default): Don't use single_set to peek
13714 inside a parallel.
13715
13716 * recog.c (peephole2_optimize): Allow recog_next_insn to index
13717 the first insn after bb->end.
13718 * i386.md (push mem peeps): Scratch is live after evaluation
13719 of the memory.
13720 (cmp mem peep): Similarly.
13721
13722 Fri Oct 29 11:50:11 1999 Catherine Moore <clm@cygnus.com>
13723
13724 * calls.c (emit_library_call_value): Fix declaration of alignment_pad.
13725 * function.c (pad_to_arg_alignment): Add missing braces.
13726
13727 Fri Oct 29 13:53:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13728
13729 * alpha/alpha-protos.h (literal_section): Add prototype.
13730 (alpha_need_linkage, alpha_start_function,alpha_end_function):
13731 Constify a char*.
13732
13733 * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
13734 prototype.
13735 (alpha_start_function, alpha_end_function, float_strings,
13736 alpha_need_linkage): Constify a char*
13737
13738 * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.
13739
13740 * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
13741
13742 * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13743
13744 * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.
13745
13746 Fri Oct 29 13:49:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13747
13748 * flow.c (debug_flow_info): Add prototype.
13749
13750 * gcc.c (main): Likewise.
13751
13752 * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
13753 Likewise.
13754
13755 * reload1.c (failed_reload, set_reload_reg): Likewise.
13756
13757 * mips-tfile.c (main): Likewise.
13758 (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
13759 with ATTRIBUTE_NORETURN.
13760
13761 Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
13762
13763 * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
13764 DECL is not a memory ref.
13765
13766 Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
13767
13768 * config/i386/i386.h (ix86_cpu): Remove extern attribute.
13769 * config/i386/i386.c (ix86_cpu): Add extern attribute.
13770
13771 Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
13772
13773 * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
13774 * config/mips/elf64.h: ditto.
13775
13776 Fri Oct 29 08:03:57 1999 Catherine Moore <clm@cygnus.com>
13777
13778 * expr.c (emit_push_insn): New argument alignment_pad.
13779 Update all callers. Adjust stack pointer based on alignment pad.
13780 * function.c (pad_to_arg_alignment): New argument alignment_pad.
13781 Update all callers. Track alignment_pad if boundary > PARM_BOUNDARY.
13782 (locate_and_pad_parm): New argument alignment_pad. Update all
13783 callers.
13784 * expr.h (emit_push_insn): Update prototype.
13785 (locate_and_pad_parm): Update prototype.
13786 * calls.c (arg_data): Add new field alignment_pad.
13787 (initialize_argument_information): Initialize alignment_pad.
13788
13789 Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
13790
13791 * except.c (free_eh_nesting_info): Free the info itself.
13792 * function.c (free_after_compilation): Don't free NULL.
13793 * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
13794 (pre_edge_insert): Free inserted.
13795 * stmt.c (free_stmt_status): Don't free NULL.
13796
13797 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
13798
13799 * gcov.c (DIR_SEPARATOR): Provide default.
13800 (output_data): Add test for MS-DOS format absolute filename.
13801 (fancy_abort): Correct program name.
13802 (open_files): Open all files in binary mode.
13803 * libgcc2.c (__bb_exit_func): Likewise.
13804
13805 * profile.c (init_branch_prob): Specify binary when opening files.
13806
13807 * flags.h (flag_unwind_tables): New decl.
13808 * toplev.c (flag_unwind_table): New definition.
13809 (f_options): Add -funwind-tables.
13810 (decode_g_option): Clarify warning when unknown -g option is given.
13811 (rest_of_compilation): If inside an inlined external function,
13812 pretend we are just being declared.
13813
13814 * dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
13815 (dwarf2out_frame_finish): Likewise.
13816
13817 Fri Oct 29 07:44:26 1999 Vasco Pedro <vp@di.fct.unl.pt>
13818
13819 * fold-const.c (merge_ranges): If not in0, but in1, handle
13820 upper bounds equal like subset case.
13821
13822 Thu Oct 28 19:22:24 1999 Douglas Rupp <rupp@gnat.com>
13823
13824 * dbxout.c (dbxout_parms): Generate a second stabs line for parameters
13825 passed in a register but moved to the stack.
13826
13827 Thu Oct 28 19:12:57 1999 Sam Tardieu <tardieu@act-europe.fr>
13828
13829 * gcc.c (pass_exit_codes, greatest_status): New variables.
13830 (struct option_map): Add entry for "--pass-exit-codes".
13831 (execute): Update greatest_status if error.
13832 (display_help): Add documentation for -pass-exit-codes.
13833 (process_command): Handle -pass-exit-codes.
13834 (main): Look at pass_exit_codes and greatest_status on call to exit.
13835
13836 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13837
13838 * reload.c (find_reloads): Refine test for no input reload
13839 case to not includes reloads emitted after insn.
13840
13841 * function.c (find_temp_slots_from_address): Handle sum involving
13842 a register that points to a temp slot.
13843 (update_temp_slot_address): Make recursive call if both old and
13844 new are PLUS with a common operand.
13845 * calls.c (expand_call): Mark temp slot for result as having
13846 address taken.
13847
13848 * rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
13849
13850 * gcc.c (process_command): Add standard_exec_prefix with "GCC"
13851 component as well as "BINUTILS".
13852
13853 * integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
13854 * integrate.c (copy_rtx_and_substitute): Likewise.
13855 (expand_inline_function, integrate_parm_decls, integrate_decl_tree):
13856 All callers changed.
13857 * unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
13858
13859 * dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
13860 gdb extensions, write size of type; also be more consistent
13861 in using references when this is a subtype.
13862
13863 * pa.md (extv, extzv, insv): Use define_expand to reject constant
13864 that is out of range.
13865
13866 * loop.c (unknown_constant_address_altered): New variable.
13867 (prescan_loop): Initialize it.
13868 (note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
13869 (invariant_p, case MEM): Remove handling for volatile and readonly;
13870 check new variable if readonly.
13871 (check_dbra_loop): Chdeck unknown_constant_address_altered.
13872
13873 * cse.c (canon_hash, case MEM): Do not record if BLKmode.
13874 (addr_affects_sp_p): Removed from note_mem_written and only
13875 define #ifdef AUTO_INC_DEC.
13876
13877 * alpha.c (input_operand, case ADDRESSOF): Treat as REG.
13878
13879 * regclass.c (record_reg_classes): Properly handle register move
13880 directions.
13881
13882 * varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
13883 Don't think valid if both operands are invalid.
13884 (struct constant_descriptor): New field RTL.
13885 (mark_const_hash_entry): Mark it.
13886 (record_constant{,_rtx}): Initialize it.
13887 (output_constant_def): Allocate RTL in permanent obstack and
13888 save in table.
13889 ({record,compare}_constant_1): Modes must match for
13890 CONSTRUCTOR of ARRAY_TYPE.
13891
13892 * c-common.h (initializer_constant_valid_p): Delete decl from here.
13893 * output.h (initializer_constant_valid_p): Move decl to here.
13894 * c-common.c (initializer_constant_valid_p): Delete function from here.
13895 * varasm.c (initializer_constant_valid_p): Move function to here.
13896
13897 * tree.h (STRIP_SIGN_NOPS): New macro.
13898 * fold-const.c (optimize_minmax_comparison): New function.
13899 (invert_truthvalue, case WITH_RECORD_EXPR): New case.
13900 (fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
13901 (fold, case EQ_EXPR): Call optimize_minmax_comparison and add
13902 cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
13903 widening conversions.
13904 (fold, case LE_EXPR): Rework changing unsigned to signed comparisons
13905 to look at size of mode, not precision of type; also add missing cases.
13906 (optimize_bit_field_compare, decode_field_reference): Don't try to
13907 optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
13908
13909 * dwarf2out.c (ctype.h): Include.
13910 (dwarf2out_set_demangle_name_func): New function.
13911 (size_of_line_info): Deleted.
13912 (output_line_info): Compute size of line info table from difference
13913 of labels.
13914 (base_type_die, add_name_attribute): Call demangle function, if any.
13915 (field_byte_offset): Use bits per word for variable length fields.
13916 (gen_array_type_die): Add array name.
13917 (gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
13918 (dwarf2out_add_library_unit_info): New function.
13919
13920 * explow.c (set_stack_check_libfunc): New function.
13921 (stack_check_libfunc): New static variable.
13922 (probe_stack_range): Allow front-end to set up a libfunc to call.
13923
13924 * combine.c (simplify_comparison): When making comparison in wider
13925 mode, check for having commuted an AND and a SUBREG.
13926 (contains_muldiv): New function.
13927 (try_combine): Call it when dividing a PARALLEL.
13928 (simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
13929 (simplify_comparison, case ASHIFTRT): Recognize sign-extension of
13930 a PLUS.
13931 (record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
13932 use one of the CLOBBERs instead.
13933 (if_then_else_cond): If comparing against zero, just return thing
13934 being compared.
13935
13936 * optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
13937 Don't generate shifts and subtract if have conditional arithmetic.
13938
13939 * rtl.h (delete_barrier): New declaration.
13940 * jump.c (jump_optimize): Set up to handle conditional call.
13941 In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
13942 (delete_barrier): New function.
13943
13944 * rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
13945
13946 * recog.c (nonmemory_operand): Accept ADDRESSOF.
13947
13948 * tree.c (build_type_attribute_variant): Push to obstack of
13949 ttype around type_hash_canon call.
13950
13951 * expr.c (placeholder_list): Move decl to file scope.
13952 (expand_expr): Don't force access to volatile just because its
13953 address is taken.
13954 If ignoring reference operations, just expand the operands.
13955 (expand_expr, case COMPONENT_REF): Propagate
13956 EXPAND_CONST_ADDRESS to recursive call when expanding inner.
13957 Refine test for using bitfield operations vs pointer punning.
13958 (expand_expr, case CONVERT_EXPR): If converting to
13959 BLKmode UNION_TYPE from BLKmode, just return inner object.
13960 Use proper mode in store_field call.
13961 Properly set sizes of object to store and total size in store_field
13962 call for convert to union.
13963 (expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
13964 memory (like for ADDR_EXPR). Also, don't put constant in register if
13965 we'll want it in memory.
13966 (readonly_fields_p): New function.
13967 (expand_expr, case INDIRECT_REF): Call it if LHS.
13968 (expand_assignment): Handle a RESULT_DECL where
13969 DECL_RTL is a PARALLEL.
13970 (do_jump, case WITH_RECORD_EXPR): New case.
13971 (get_inner_reference): Always go inside a CONVERT_EXPR
13972 and NOP_EXPR if both modes are the same.
13973 (store_field): Use bitfield operations if size of bitsize is not same
13974 as size of RHS's type.
13975 Check for bitpos not a multiple of alignment in BLKmode case.
13976 Do block move in largest possible alignment.
13977 (store_constructor): Set BITSIZE to -1 for variable size and properly
13978 in case of array of BLKmode.
13979 (expand_expr_unaligned): New function.
13980 (do_compare_and_jump): Call it.
13981
13982 * mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
13983 * collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
13984 does not include 'o'.
13985
13986 * function.c (instantiate_virtual_regs_1, case SET): Handle case where
13987 both SET_DEST and SET_SRC reference a virtual register.
13988 (gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
13989
13990 * integrate.c (expand_inline_function): Handle case of setting
13991 virtual stack vars register (from built in setjmp); when parameter
13992 lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
13993 (subst_constant): Add new parm, MEMONLY.
13994 (expand_inline_function, integrate_parm_decls): Pass new parm.
13995 (integrate_decl_tree): Likewise.
13996 (copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
13997 (try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
13998 (copy_rtx_and_substitute, case SET): Add explicit calls to
13999 copy_rtx_and_substitute for both sides.
14000
14001 * stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
14002 constraints.
14003 (pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
14004 within INDEX_TYPE, instead of before.
14005 (fixup_gotos): Use f->target_rtl, not the next insn,
14006 since latter may be from a later fixup.
14007 (expand_value_return): Correctly convert VAL when promoting function
14008 return; support RETURN_REG being a PARALLEL.
14009 (expand_return): When checking for result in regs and having
14010 cleanup, consider PARALLEL in DECL_RTL as being in regs.
14011
14012 1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
14013
14014 * cpplib.h (struct cpp_buffer: fname, nominal_fname,
14015 last_nominal_fname): Mark const.
14016 (struct include_hash: name, nshort, control_macro): Mark
14017 const.
14018 (struct macrodef: symnam): Mark const.
14019 (struct if_stack: fname): Mark const.
14020 (is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
14021 (IStable): New character-syntax array which encompasses all
14022 the old is_foo arrays.
14023 (is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
14024 is_space): New macros for interrogating IStable.
14025 (check_macro_name): Kill last argument. All callers changed.
14026
14027 * cppinit.c (initialize_char_syntax): Delete.
14028 (is_idchar, is_idstart, is_hor_space, is_space,
14029 trigraph_table): Delete.
14030 (IStable): New. Initialize with clever macros to avoid
14031 information duplication.
14032 (builtin_array): Table of builtins to get rid of explicit list
14033 in initialize_builtins.
14034 (initialize_builtins): Use builtins_array.
14035 (cpp_start_read): Call init_IStable, and set IStable['$'] if
14036 opts->dollars_in_ident.
14037
14038 * cppexp.c: Change all refs to is_xyz[] arrays to use new
14039 is_xyz() macros.
14040 (cpp_parse_expr): Avoid 'format string is not constant'
14041 warning. Use ISGRAPH to identify printable chars.
14042 * cppfiles.c: Change all refs to is_xyz[] arrays to use new
14043 is_xyz() macros.
14044 (read_and_prescan): Map trigraphs to chars with open-coded
14045 if-else-if-... sequence, not a lookup table.
14046 * cpphash.c: Change all refs to is_xyz[] arrays to use new
14047 is_xyz() macros.
14048 * cpplib.c: Change all refs to is_xyz[] arrays to use new
14049 is_xyz() macros. Kill SKIP_ALL_WHITE_SPACE (unused).
14050 (check_macro_name): Remove ability to report an invalid
14051 assertion name, which is never used.
14052 (do_line): Constify a couple of char *'s.
14053 * cppmain.c (main): Call cpp_cleanup before returning.
14054
14055 Thu Oct 28 21:16:35 1999 Mark Mitchell <mark@codesourcery.com>
14056
14057 * ggc.h (struct ggc_statistics): New type.
14058 (ggc_get_size): New function.
14059 (ggc_print_statistics): Likewise.
14060 * ggc-common.c (ggc_stats): New variable.
14061 (ggc_mark_rtx_children): Keep statistics.
14062 (ggc_mark_tree_children): Likewise.
14063 (ggc_print_statistics): New function.
14064 * ggc-page.c (struct globals): Add bytes_mapped field.
14065 (alloc_anon): Update it.
14066 (release_pages): Likewise.
14067 (ggc_get_size): New function.
14068 (ggc_page_print_statistics): New function.
14069 * ggc-simple.c (ggc_get_size): New function.
14070
14071 Fri Oct 29 06:32:44 1999 Geoffrey Keating <geoffk@cygnus.com>
14072
14073 * flow.c (propagate_block): When the last reference to a label
14074 before an ADDR_VEC is deleted because the reference is a dead
14075 store, delete the ADDR_VEC.
14076
14077 Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
14078
14079 * resource.c (find_free_register): Don't use the frame pointer
14080 if frame_pointer_needed.
14081
14082 Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
14083
14084 * config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
14085 (function_arg_pass_by_reference): Check for a NULL pointer in cum.
14086
14087 * config/i960/i960.c (i960_va_start): New locals base, num.
14088 Use INDIRECT_REF instead of ARRAY_REF on valist.
14089 (i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.
14090
14091 Thu Oct 28 09:45:48 1999 Mark Mitchell <mark@codesourcery.com>
14092
14093 * gcse.c (delete_null_pointer_checks): Fix typo in previous change.
14094
14095 Thu Oct 28 03:37:50 1999 Peter Gerwinski <peter@gerwinski.de>
14096
14097 * tree.def (PLACEHOLDER_EXPR): Update comments.
14098
14099 Thu Oct 28 06:47:32 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14100
14101 * c-common.c (check_format_info): Avoid non-literal format string
14102 warnings when `first_arg_num' is zero.
14103
14104 Thu Oct 28 12:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14105
14106 * rtl.texi: Delete explicit Prev, Up and Next entries in "@node"s.
14107
14108 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
14109
14110 * arm.md (casesi_insn): Add a clobber of the condition code
14111 register.
14112
14113 Mon Oct 18 21:16:06 1999 Fred Fish <fnf@be.com>
14114
14115 * tm.texi (CC1PLUS_SPEC): Make it clear in the docs that CC1_SPEC is
14116 used by both cc1 and cc1plus.
14117
14118 Thu Oct 28 10:00:48 1999 Nick Clifton <nickc@cygnus.com>
14119
14120 * config/arm/arm.c: Initialise arm_structure_size_boundary to
14121 DEFAULT_STRUCTURE_SIZE_BOUNDARY.
14122 * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
14123 to the value 32 if it has not already been defined.
14124 * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
14125 Override definition in arm.h with a value of 8.
14126
14127 Thu Oct 28 03:12:02 1999 David Starner <dstarner98@aasaa.ofe.org>
14128
14129 * c-pragma.c (push_alignment): Don't check the return value
14130 of xmalloc.
14131
14132 Thu Oct 28 03:08:38 1999 Matteo Frigo <athena@fftw.org>
14133
14134 * sparc.h (ADJUST_COST): Fix thinko.
14135
14136 Thu Oct 28 02:44:03 1999 Glen Nakamura <glen.nakamura@usa.net>
14137
14138 * cccp.c (rescan): Fixed obp pointer handling around call to
14139 check_expand subroutine.
14140
14141 Thu Oct 28 02:15:22 1999 Jeffrey A Law (law@cygnus.com)
14142
14143 * gcse.c (delete_null_pointer_checks): Only record non-null info
14144 for pseudos when examining stores.
14145
14146 * arm.md (adddi3, adddi_sesidi_di, adddi_sesidi_di): Add
14147 splitters for these patterns. Use "#" for output templates.
14148 (addsi3_carryin_shift): New pattern.
14149
14150 Thu Oct 28 10:20:02 1999 Geoffrey Keating <geoffk@cygnus.com>
14151
14152 * config/rs6000/rs6000.md (movsf): Don't convert a SUBREG
14153 of the function return register into a plain REG until
14154 after function inlining is done.
14155
14156 Wed Oct 27 15:21:46 1999 Richard Henderson <rth@cygnus.com>
14157
14158 * jump.c (jump_optimize_1): If we did cross-jumping, and
14159 the data will matter, rebuild the CFG.
14160 * reg-stack.c (reg_to_stack): Only (re)build the CFG if
14161 not optimizing. Don't run shorten_branches.
14162 * toplev.c (rest_of_compilation): Run shorten_branches after
14163 reg_to_stack.
14164
14165 Wed Oct 27 12:33:40 1999 Mark Mitchell <mark@codesourcery.com>
14166
14167 * rtl.h (note_stores): Add additional paramter.
14168 * rtlanal.c (reg_set_p_1): Take additional paramter.
14169 (reg_set_last_1): Likewise.
14170 (reg_set_p): Adjust call to note_stores.
14171 (reg_set_last): Likewise.
14172 (note_stores): Pass data parameter to worker function.
14173 * alias.c (record_set): Take additional parameter.
14174 (init_alias_analysis): Pass it.
14175 * caller-save.c (mark_set_regs): Take additional parameter.
14176 (save_call_clobbered_regs): Pass NULL to note_stores.
14177 * combine.c (set_nonzero_bits_and_sign_copies): Take additional
14178 parameter.
14179 (record_dead_and_set_regs_1): Likewise.
14180 (reg_dead_at_p_1): Likewise.
14181 (combine_instructions): Adjust calls to note_stores.
14182 (try_combine): Likewise.
14183 (record_dead_insn): Remove.
14184 (record_dead_and_set_regs): Adjust calls to note_stores.
14185 (reg_dead_at_p): Likewise.
14186 * cse.c (invalidate_skipped_set): Take additional parameter.
14187 (cse_check_loop_start): Likewise.
14188 (cse_check_loop_start_value): Remove.
14189 (cse_set_around_loop): Adjust calls to note_stores.
14190 * flow.c (notice_stack_pointer_modification): Take additional
14191 parameter. Remove duplicate declaration.
14192 (record_volatile_insns): Adjust calls to note_stores.
14193 * gcse.c (record_set_info): Take additional parameter.
14194 (record_last_set_info): Likewise.
14195 (invalidate_nonnull_info): Likewise.
14196 (record_set_insn): Remove.
14197 (compute_sets): Adjust calls to note_stores.
14198 (last_set_insn): Remove.
14199 (compute_hash_table): Adjust calls to note_stores.
14200 (insert_insn_end_bb): Likewise.
14201 (delete_null_pointer_checks): Likewise.
14202 * global.c (mark_reg_store): Take additional parameter.
14203 (mark_reg_clobber): Likewise.
14204 (reg_becomes_live): Likewise.
14205 (global_conflicts): Adjust calls to note_stores.
14206 (build_insn_chain): Likewise.
14207 * integrate.c (note_modified_parmregs): Take additional parameter.
14208 (mark_stores): Likewise. Make it static.
14209 (save_for_inline_nocopy): Adjust calls to note_stores.
14210 (try_constants): Likewise.
14211 * integrate.h (mark_stores): Remove declaration.
14212 * jump.c (mark_modified_reg): Take additional parameter.
14213 (thread_jumps): Adjust calls to note_stores.
14214 * local-alloc.c (validate_equiv_mem_from_store): Take additional
14215 parameter.
14216 (no_equiv): Likewise.
14217 (reg_is_set): Likewise.
14218 (validate_equiv_mem): Adjust calls to note_stores.
14219 (update_equiv_regs): Likewise.
14220 (block_alloc): Likewise.
14221 * loop.c (note_set_pseudo_multiple_uses_retval): Remove.
14222 (note_addr_stored): Take additional parameter.
14223 (note_set_pseudo_multiple_uses): Likewise.
14224 (record_initial): Likewise.
14225 (prescan_loop): Adjust calls to note_stores.
14226 (strength_reduce): Likewise.
14227 (check_dbra_loop): Likewise.
14228 * regmove.c (flags_set_1): Take additional paramter.
14229 (mark_flags_life_zones): Adjust calls to note_stores.
14230 * reload1.c (mark_not_eliminable): Take additional parameter.
14231 (forget_old_reloads_1): Likewise.
14232 (reload_cse_invalidate_rtx): Likewise.
14233 (reload_cse_check_clobber): Likewise.
14234 (reload_combine_note_store): Likewise.
14235 (move2add_note_store): Likewise.
14236 (reload): Adjust calls to note_stores.
14237 (reload_as_needed): Likewise.
14238 (emit_reload_insns): Likewise.
14239 (reload_cse_regs_1): Likewise.
14240 (reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
14241 (reload_combine): Adjust calls to note_stores.
14242 * resource.c (update_live_status): Take additional paramter.
14243 (mark_target_live_regs): Adjust calls to note_stores.
14244 * stupid.c (find_clobbered_regs): Take additional parameter.
14245 (stupid_life_analysis): Adjust calls to note_stores.
14246
14247 Wed Oct 27 19:26:12 1999 Nick Clifton <nickc@cygnus.com>
14248
14249 * config/arm/coff.h (STRUCTURE_SIZE_BOUNDARY): Delete
14250 definition.
14251
14252 * config/arm/elf.h (STRUCTURE_SIZE_BOUNDARY): Delete
14253 definition.
14254
14255 * config/arm/arm.h (STRUCTURE_SIZE_BOUNDARY): Define in terms
14256 of the variable arm_structure_size_boundary.
14257
14258 Wed Oct 27 02:05:58 1999 Mark P. Mitchell <mark@codesourcery.com>
14259
14260 * alias.c (init_alias_analysis): Allocate reg_known_value and
14261 reg_known_equiv_p on the heap. Likewise for new_reg_base_value
14262 and reg_seen.
14263 (end_alias_analysis): Free reg_known_value and reg_known_equiv_p.
14264 * cse.c (cse_main): Call end_alias_analysis.
14265 * haifa-sched.c (schedule_insns): Likewise.
14266 * local-alloc. (update_equiv_regs): Likewise.
14267 * reload1.c (reload_cse_regs): Likewise.
14268
14269 Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14270
14271 * sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
14272 * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
14273 mapping from MASK_FPU.
14274
14275 Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
14276
14277 * sparc.md (call): Don't bound structure return size to 0xfff.
14278
14279 Wed Oct 27 00:56:59 1999 Richard Henderson <rth@cygnus.com>
14280
14281 * resource.c (mark_target_live_regs): Check that the target
14282 insn wasn't created after compute_bb_for_insn.
14283
14284 Tue Oct 26 23:15:03 1999 Mark Mitchell <mark@codesourcery.com>
14285
14286 * ggc-page.c (poison_pages): Don't be overzealous.
14287
14288 Tue Oct 26 23:29:18 1999 Jeffrey A Law (law@cygnus.com)
14289
14290 * alias.c: Update comments for ADDRESS.
14291 (nonlocal_reference_p): Look inside the ADDRESS to determine if
14292 it is a local memory reference.
14293
14294 * c-typeck.c (build_function_call): Check that the built-in
14295 function is of class BUILT_IN_NORMAL before trying to recongize
14296 it as BUILT_IN_ABS.
14297 * calls.c (calls_function_1): Similarly for BUILT_IN_ALLOCA.
14298 * stmt.c (expand_end_cae): Similarly for BUILT_IN_CLASSIFY_TYPE.
14299
14300 Wed Oct 27 00:14:13 1999 Robert Lipe <robertlipe@usa.net>
14301
14302 * gcse.c (expr_reaches_here_p): Use xcalloc and explit free instead
14303 of alloca.
14304 (pre_gcse): Likewise.
14305 (hoist_expr_reaches_here_p): Likewise.
14306 (hoist_code): Likewise.
14307 (pre_expr_reaches_here_p): Replace alloca with xcalloc. Move core
14308 code to ...
14309 (pre_expr_reaches_here_p_work): ... here.
14310 (expr_reaches_here_p): Replace alloca with xcalloc. Move core
14311 code to ...
14312 (expr_reaches_here_p_work): ... here.
14313
14314 Tue Oct 26 20:42:45 1999 Richard Henderson <rth@cygnus.com>
14315
14316 * resource.c (find_basic_block): Delete.
14317 (mark_target_live_regs, incr_ticks_for_insn): Use BLOCK_NUM instead.
14318 (init_resource_info): Call compute_bb_for_insn.
14319
14320 Tue Oct 26 20:21:02 1999 Richard Henderson <rth@cygnus.com>
14321
14322 * flow.c (merge_blocks_move_predecessor_nojumps): Cope
14323 with already adjacent blocks, but no fallthru.
14324 (merge_blocks_move_successor_nojumps): Simplify.
14325 (debug_flow_info): New.
14326
14327 * toplev.c (rest_of_compilation): Open jump1 dump file before
14328 jump and close after, as opposed to just using dump_rtl.
14329
14330 Wed Oct 27 03:09:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14331
14332 * reload.h (earlyclobber_operand_p): Declare.
14333 * reload.c (earlyclobber_operand_p): Don't declare. No longer static.
14334 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
14335 an earlyclobbered output conflict with RELOAD_INPUT reloads - handle
14336 case where the RELOAD_OTHER reload is new. Use earlyclobber_operand_p.
14337
14338 Tue Oct 26 18:23:38 1999 Jan Hubicka <hubicka@freesoft.cz>
14339 Richard Henderson <rth@cygnus.com>
14340
14341 * emit-rtl.c (emit_block_insn_before): New.
14342 (emit_block_insn_after): New.
14343 * basic-block.h: Declare them.
14344
14345 * bitmap.h: Protect from multiple inclusion.
14346
14347 * recog.c (scratch_operand): Handle VOIDmode correctly.
14348
14349 * rtl.h (JUMP_CROSS_JUMP_DEATH_MATTERS): New.
14350
14351 * builtins.c (expand_builtin_apply_args_1): Remove STACK_REGS hack.
14352 * function.c (assign_parms): Likewise.
14353 * global.c (global_conflicts): Clarify STACK_REGS commentary.
14354
14355 * reg-stack.c (max_uid): Remove.
14356 (blocks, block_begin, block_end, block_drops_in): Remove.
14357 (block_stack_in, block_out_reg_set, block_number): Remove.
14358 (struct block_info_def, BLOCK_INFO): New.
14359 (enum emit_where): New.
14360 (current_block): New.
14361 (BLOCK_NUM): Remove.
14362 (mark_regs_pat, record_label_references): Remove.
14363 (record_reg_life_pat, record_reg_life, find_blocks): Remove.
14364 (nan): New.
14365 (goto_block_pat, print_blocks, dump_stack_info): Remove.
14366 (reg_to_stack): Simplified test for existance of fp code. Use
14367 flow.c code. Call shorten_branches after cross-jump opt.
14368 (check_asm_stack_operands): Renamed from record_asm_reg_life.
14369 Return false if the asm doesn't use stack regs. Don't do life
14370 analysis on the asm.
14371 (emit_pop_insn): Replace function pointer arg `when' with
14372 enum `where'. Update all callers.
14373 (change_stack): Likewise. Update basic block end.
14374 (emit_swap_insn): Use current_block->head to limit reverse search
14375 for start of block. Use emit_block_insn_after.
14376 (subst_stack_regs_pat): Handle USE and CLOBBER patterns.
14377 (subst_asm_stack_regs): Use check_asm_stack_operands. Use direct
14378 structure assignment instead of bcopy.
14379 (print_stack): New.
14380 (convert_regs_entry, convert_regs_exit): New.
14381 (convert_regs_1, convert_regs_2): Split out from convert_regs.
14382 Work on basic blocks and the CFG.
14383 (convert_regs): Use them.
14384
14385 * i386.c (output_fix_trunc): Remove code for DImode input operand
14386 not at top-of-stack.
14387 * i386.c (fix_truncdfdi2, fix_truncsfdi2): Use scratch with
14388 appropriate mode.
14389 (fix_truncdi_1): Allow any mode scratch.
14390
14391 Tue Oct 26 13:30:35 1999 Richard Henderson <rth@cygnus.com>
14392
14393 * alpha.h (TARGET_MEM_FUNCTIONS): Define here.
14394 * linux.h, netbsd.h, vms.h: Not here.
14395
14396 1999-10-26 Gavin Romig-Koch <gavin@cygnus.com>
14397
14398 * config/mips/mips.h (ISA_HAS_64BIT_REGS,ISA_HAS_BRANCHLIKELY,
14399 ISA_HAS_FP4,ISA_HAS_CONDMOVE): New.
14400 (GENERATE_BRANCHLIKELY,HAVE_SQRT_P,
14401 CONDITIONAL_REGISTER_USEAGE): Use them.
14402 * config/mips/mips.c (mips_move_1word,mips_move_2words,
14403 gen_conditional_branch,override_options) : Use them.
14404 * config/mips/mips.md : Use them.
14405
14406 Tue Oct 26 13:09:23 1999 Richard Henderson <rth@cygnus.com>
14407
14408 * i386.md (zero_extendqihi2): Use SImode register name with andl.
14409
14410 Tue Oct 26 12:35:38 1999 Richard Henderson <rth@cygnus.com>
14411
14412 * integrate.c (function_cannot_inline_p): Don't allow inlining
14413 if setjmp is used.
14414
14415 Tue Oct 26 14:10:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14416
14417 * c-parse.in (cast_expr): Constify.
14418
14419 * cccp.c (special_symbol): Likewise.
14420
14421 * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
14422
14423 * dwarf2out.c (base_type_die): Likewise.
14424
14425 * global.c (allocno_compare): Likewise.
14426
14427 * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
14428
14429 * regclass.c (fix_register): Likewise.
14430
14431 * rtl.h (fix_register): Likewise.
14432
14433 * stupid.c (stupid_reg_compare): Likewise.
14434
14435 * toplev.c (decode_f_option): Likewise.
14436
14437 * tree.c (build_complex_type): Likewise.
14438
14439 Tue Oct 26 18:35:25 1999 Richard Earnshaw <rearnsha@arm.com>
14440
14441 * output.h: Don't unnecessarily conditionalize prototypes on TREE_CODE.
14442
14443 Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14444
14445 * reload.c (find_reloads): Compute mode and nregs fields of all
14446 reloads.
14447 * reload1.c (calculate_needs_all_insns): Simplify a bit.
14448 (calculate_needs): Use precomputed mode/nregs values.
14449 (allocate_reload_reg): Likewise.
14450 Break out two...
14451 (failed_reload, set_reload_reg): ... new functions.
14452 (choose_reload_regs_init): New function, mostly broken out from...
14453 (choose_reload_regs): ... here. Lose all the save_xxx nonsense.
14454 Also lose one #if 0 block.
14455
14456 Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
14457
14458 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
14459 substitution.
14460
14461 Tue Oct 26 01:27:32 1999 Mark Mitchell <mark@codesourcery.com>
14462
14463 * tree.h (BLOCK_TYPE_TAGS): Remove.
14464 (BLOCK_END_NOTE): Likewise.
14465 (BLOCK_LIVE_RANGE_FLAG): Likewise.
14466 (BLOCK_LIVE_RANGE_START): Likewise.
14467 (BLOCK_LIVE_RANGE_END): Likewise.
14468 (tree_block): Remove live_range_flag, live_range_var_flag, and
14469 type_tags. Remove end_note, live_range_start, and live_range_end.
14470 (remember_end_note): Remove prototype.
14471 * tree.c (build_block): Don't set BLOCK_TYPE_TAGS.
14472 * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call
14473 remember_end_note.
14474 * ggc-common.c (ggc_mark_tree_children): Don't mark
14475 BLOCK_TYPE_TAGS or BLOCK_END_NOTE.
14476 * integrate.c (adjust_copied_decl_tree): Remove.
14477 * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS.
14478 * stmt.c (last_block_end_note): Remove.
14479 (init_stmt): Don't add a GC root for it.
14480 (expand_fixup): Don't set it.
14481 (remember_end_note): Remove.
14482 (expand_end_bindings): Don't set last_block_end_note.
14483
14484 Tue Oct 26 00:41:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14485
14486 * reload1.c (reload_reg_free_for_value_p): Show
14487 RELOAD_FOR_OTHER_ADDRESS reloads can conflict with RELOAD_OTHER
14488 reloads.
14489
14490 Mon Oct 25 23:54:45 1999 Geoff Keating <geoffk@cygnus.com>
14491
14492 * expmed.c (extract_bit_field): Allow for the case of non-integer
14493 objects that are smaller than a word (like SFmode on a 64-bit
14494 machine).
14495
14496 * loop.c (basic_induction_var): A non-integer variable which is
14497 being set by a paradoxical subreg is probably not a biv.
14498
14499 1999-10-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14500
14501 * prefix.c (translate_name) Check for empty prefix string.
14502
14503 Mon Oct 25 23:10:45 1999 Andreas Schwab <schwab@suse.de>
14504
14505 * Makefile.in (CPP_CROSS_NAME): New variable.
14506 (install-cpp): Use it instead of CPP_INSTALL_NAME for the cross
14507 xcpp.
14508 (uninstall-cpp): Use CPP_INSTALL_NAME and CPP_CROSS_NAME for the
14509 names of the files to be uninstalled.
14510
14511 Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
14512
14513 * collect2.c (IS_DIR_SEPARATOR): Define.
14514 (prefix_from_string): Use IS_DIR_SEPARATOR and DIR_SEPARATOR.
14515
14516 * som.h (ASM_DECLARE_FUNCTION_NAME): Set PRIV_LEV for static
14517 functions too.
14518
14519 * haifa-sched.c (add_dependence): Update the true dependency
14520 cache the first time we add a true dependence to the LOG_LINKS chain.
14521
14522 Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
14523
14524 * fold-const.c (fold): Fix comment.
14525
14526 Mon Oct 25 22:49:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14527
14528 * dbxout.c (lastfile, cwd, dbxout_type_method_1,
14529 dbxout_symbol_location, dbxout_symbol_name, dbxout_init,
14530 dbxout_start_new_source_file, dbxout_source_file,
14531 dbxout_source_line, dbxout_finish, dbxout_type_fields,
14532 dbxout_type_methods, dbxout_symbol, dbxout_prepare_symbol):
14533 Constify a char*.
14534 (dbxout_types, dbxout_args, dbxout_symbol): Delete prototypes.
14535 (dbxout_symbol): Mark parameter `local' with ATTRIBUTE_UNUSED.
14536 (dbxout_block): Initialize variable `blocknum'.
14537
14538 * dbxout.h (dbxout_init, dbxout_finish,
14539 dbxout_start_new_source_file, dbxout_source_file, dbxout_types,
14540 dbxout_args, dbxout_source_line): Constify a char*.
14541
14542 * dwarfout.c (dwarf_tag_name, dwarf_attr_name,
14543 dwarf_stack_op_name, dwarf_typemod_name, dwarf_fmt_byte_name,
14544 dwarf_fund_type_name, name_attribute, stmt_list_attribute,
14545 low_pc_attribute, high_pc_attribute, body_begin_attribute,
14546 body_end_attribute, comp_dir_attribute, sf_names_attribute,
14547 src_info_attribute, mac_info_attribute, producer_attribute,
14548 lookup_filename, generate_macinfo_entry, fundamental_type_code,
14549 dwarfout_line, dwarfout_start_new_source_file, dwarfout_define,
14550 dwarfout_undef): Constify a char*.
14551 (add_incomplete_type, retry_incomplete_types): Add prototypes.
14552
14553 * dwarfout.h (dwarfout_define, dwarfout_undef,
14554 dwarfout_start_new_source_file, dwarfout_line): Constify a char*.
14555
14556 1999-10-25 Gavin Romig-Koch <gavin@cygnus.com>
14557
14558 * config/mips/mips.h (MIPS_ISA_DEFAULT): Insure it's defined.
14559 (MULTILIB_ISA_DEFAULT): New.
14560 (MULTILIB_DEFAULTS): Use it.
14561 * config/mips/mips.c (): Remove the now unnecessary definition
14562 of MIPS_ISA_DEFAULT.
14563 * config/mips/elf64.h (MULTILIB_DEFAULTS): Remove the now
14564 unnecessary definition.
14565
14566 Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
14567
14568 * arm.md (pic_load_addr): Add constraints to operand 1.
14569
14570 1999-10-25 Bruce Korb <autogen@linuxbox.com>
14571
14572 * fixinc/genfixes: Provide a means for specifying -D options to
14573 AutoGen
14574
14575 Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)
14576
14577 * arm.c (arm_override_options): Correct initialization of
14578 arm_fast_multiply, arm_arch4, arm_arch5, arm_ld_sched,
14579 arm_is_strong, and arm_is_6_or_7.
14580
14581 * loop.c (note_set_pseudo_multiple_uses_retval): New variable.
14582 (note_set_pseudo_multiple_uses): New function.
14583 (check_dbra_loop): Use not_set_pseudo_multiple_uses to determine
14584 if a pseudo set in the loop exit is used elsewhere.
14585
14586 Sun Oct 24 20:52:40 1999 Mark Mitchell <mark@codesourcery.com>
14587
14588 * i386.md (mulsi3): Tweak to work with SCO OSR5 COFF assembler.
14589
14590 Sun Oct 24 21:02:46 1999 Richard Henderson <rth@cygnus.com>
14591
14592 * i386.md (*lea_0): Collapse addsi_0, addsi_lea_[123] into
14593 a single load-address pattern.
14594
14595 Sun Oct 24 19:33:24 1999 Mark P. Mitchell <mark@codesourcery.com>
14596
14597 * haifa-sched.c (schedule_insns): Don't assign LUIDs differently
14598 depending on whether or not line-number notes are present.
14599
14600 Sun Oct 24 20:29:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14601
14602 * cccp.c (progname, file_buf, default_include, include_file,
14603 macrodef, definition, hashval, wchar_type, user_label_prefix,
14604 directive, out_fname, if_stack, safe_write, index0, get_lintcmd,
14605 expand_to_temp_buffer, is_system_include, base_name,
14606 absolute_filename, read_name_map, open_include_file,
14607 record_control_macro, check_precompiled, check_preconditions,
14608 pcfinclude, pass_thru_directive, create_definition,
14609 check_macro_name, comp_def_part, collect_expansion,
14610 check_assertion, read_token_list, assertion_install,
14611 assertion_lookup, eval_if_expression, conditional_skip,
14612 validate_else, skip_quoted_string, quote_string, macarg1,
14613 error_from_errno, install, lookup, hashf, dump_defn_1,
14614 perror_with_name, pfatal_with_name, main, trigraph_pcp,
14615 check_white_space, rescan, handle_directive, monthnames,
14616 special_symbol, do_include, remap_include_file, write_output,
14617 arglist, do_assert, do_unassert, do_line, do_error, do_once,
14618 do_ident, do_sccs, do_xifdef, skip_if_group,
14619 output_line_directive, macroexpand, macarg, change_newlines,
14620 initialize_builtins, make_definition): Constify a char*.
14621
14622 * pcp.h (stringdef): Likewise.
14623
14624 Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
14625
14626 * unroll.c (copy_loop_body): Examine SET_DEST of single_set
14627 not of pattern.
14628
14629 Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
14630 Richard Henderson <rth@cygnus.com>
14631
14632 * alias.c: Include ggc.h.
14633 (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
14634 (record_set): Verify enough room in reg_base_value.
14635 (init_alias_analysis): Allocate reg_base_value with xcalloc.
14636 Register it as a GC root.
14637 (end_alias_analysis): Free reg_base_value. Remove it as a GC root.
14638 * Makefile.in (alias.o): Depend on ggc.h.
14639
14640 * unroll.c (unroll_loop): Verify the insn before a barrier
14641 is a JUMP_INSN before checking JUMP_LABEL.
14642
14643 Sun Oct 24 15:46:44 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14644
14645 * mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
14646 * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
14647 * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
14648 * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
14649 * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
14650 * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
14651
14652 Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14653
14654 * output.h (ctors_section, dtors_section, bss_section): Prototype.
14655
14656 * alpha/alpha-interix.h (text_section): Delete prototype.
14657 * alpha/elf.h (text_section): Likewise.
14658 * arm/linux-elf.h (text_section): Likewise.
14659 * arm/linux-telf.h (text_section): Likewise.
14660 * c4x/c4x.h (text_section): Likewise.
14661 * dsp16xx/dsp16xx.h (bss_section): Likewise.
14662 * elfos.h (text_section): Likewise.
14663 * i386/aix386ng.h (text_section): Likewise.
14664 * i386/i386-interix.h (text_section): Likewise.
14665 * i386/sco5.h (text_section): Likewise.
14666 * i386/svr3gas.h (text_section): Likewise.
14667 * nextstep.h (text_section): Likewise.
14668 * psos.h (text_section): Likewise.
14669 * ptx4.h (text_section): Likewise.
14670 * svr3.h (text_section): Likewise.
14671 * svr4.h (text_section, ctors_section, dtors_section): Likewise.
14672
14673 Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14674
14675 * final.c (peephole): Delete prototype.
14676
14677 * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
14678 (pre_insert_copies): Remove unused variable `bb'.
14679
14680 * genrecog.c (debug_decision_0, debug_decision_list, main): Add
14681 prototypes.
14682
14683 * output.h (peephole): Add prototype.
14684
14685 Sun Oct 24 11:35:30 1999 Mark P. Mitchell <mark@codesourcery.com>
14686
14687 * config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
14688 -O0.
14689
14690 Sat Oct 23 21:13:00 1999 Mark Mitchell <mark@codesourcery.com>
14691
14692 * integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
14693 for inlined declarations.
14694
14695 Fri Oct 22 18:05:43 1999 Jeffrey A Law (law@cygnus.com)
14696
14697 * arm.c (logical_binary_operator): New fucntion.
14698 * arm.h (logical_binary_operator): Declare it.
14699 (PREDICATE_CODES): Handle logical_binary_operator.
14700 * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
14701 output constraints. Add appropriate splitters.
14702 (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
14703 (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
14704 (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.
14705
14706 Fri Oct 22 23:46:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14707
14708 * genoutput.c (struct operand_data): New elt eliminable.
14709 (output_operand_data): Write it.
14710 (scan_operands): Set it for MATCH_OPERAND, clear for other matchers.
14711 (compare_operands): Take it into account.
14712 * recog.h (struct insn_operand_data): New elt eliminable.
14713 * reload1.c (check_eliminable_occurrences, elimination_effects): New
14714 functions.
14715 (old_asm_operands_vec, new_asm_operands_vec): Delete.
14716 (eliminate_regs): Move code that detects changes to elimination
14717 target regs into new function elimination_effects.
14718 Delete one #if 0 block.
14719 Abort for USE, CLOBBER, ASM_OPERANDS and SET.
14720 (eliminate_regs_in_insn): Return immediately for USEs, CLOBBERs,
14721 ADDR_VECs, ADDR_DIFF_VECs and ASM_INPUTs.
14722 Only call eliminate_regs for real operands of the insn, not for parts
14723 of its structure or parts matched by things like match_operator.
14724 Use elimination_effects and check_eliminable_occurrences. Use
14725 copy_insn to duplicate the pattern when not in the final pass.
14726
14727 Fri Oct 22 09:03:44 1999 Mark Mitchell <mark@codesourcery.com>
14728
14729 * i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
14730 and fld.
14731
14732 1999-10-22 Bruce Korb <autogen@linuxbox.com>
14733
14734 * fixinc/README: document the "mach" machine matching test
14735 * fixinc/fixfixes.c: Implement the #else/#endif label fix
14736 * fixinc/fixtests.c: Implement the #else/#endif label test
14737 * fixinc/inclhack.def: utilize these tests and fixes
14738 * fixinc/inclhack.sh: regen
14739 * fixinc/fixincl.x: regen
14740 * fixinc/fixincl.sh: regen
14741
14742 Thu Oct 21 20:37:19 1999 Jeffrey A Law (law@cygnus.com)
14743
14744 * Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h. Also
14745 depend on ggc.h.
14746
14747 Thu Oct 21 20:30:19 1999 Matthias Klose <doko@debian.org>
14748
14749 * gcc.1: Document exit codes.
14750
14751 Thu Oct 21 12:49:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14752
14753 * calls.c: Include tm_p.h later, so everything we need is defined.
14754 * expr.c: Likewise.
14755 * function.c: Likewise.
14756
14757 * except.c: Include tm_p.h.
14758
14759 * sparc.c: Likewise.
14760 (dwarf2out_cfi_label): Don't prototype.
14761 (check_return_regs, epilogue_renumber,
14762 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
14763 ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
14764 ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
14765 ultra_schedule_insn): Add static prototype.
14766 (data_segment_operand, text_segment_operand): Call itself with the
14767 proper number of arguments.
14768 (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.
14769
14770 * sparc.h: Move all declarations to sparc-protos.h.
14771 (SELECT_RTX_SECTION): Pass a missing MODE argument to
14772 symbolic_operand.
14773
14774 * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.
14775
14776 * config/svr4.h (text_section, ctors_section, dtors_section): Add
14777 Prototypes.
14778 (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
14779 ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
14780 ASM_OUTPUT_ASCII): Constify a char*.
14781
14782 * sparc-protos.h: New file for sparc prototypes.
14783
14784 Thu Oct 21 12:23:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14785
14786 * function.c (record_insns, contains): Always declare and define.
14787 (record_insns): Mark with ATTRIBUTE_UNUSED.
14788
14789 Thu Oct 21 13:03:49 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
14790
14791 * config/arm/telf.h (ASM_OUTPUT_SECTION_NAME): Add %nobits option
14792 to .section when outputting a .bss section to deal with multiple
14793 .bss input sections (as happens with -fdata-sections)
14794 Also output %progbits, not @progbits so the assembler doesn't treat as
14795 a comment.
14796 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Likewise
14797
14798 * config/arm/lib1funcs.asm (_call_via_rX): Allow compilation of
14799 thumb parts even when building with non-thumb CPUs, by forcing
14800 thumb mode.
14801
14802 Wed Oct 20 22:57:58 1999 Jeffrey A Law (law@cygnus.com)
14803
14804 * sparc.md (movsf_const_intreg): If splitting, length must be > 1.
14805 (movdf_const_intreg_sp64): Similarly.
14806
14807 * local-alloc.c (update_equiv_regs): Check the correct insn
14808 for pre-existing REG_EQUIV notes.
14809
14810 Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
14811
14812 * cse.c (cse_end_of_basic_block): Don't return the end of a basic
14813 block reached by a branch if we're not going to actually process
14814 this block.
14815
14816 Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
14817
14818 * integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
14819 a local extern function declaration.
14820
14821 Wed Oct 20 13:56:01 1999 Richard Henderson <rth@cygnus.com>
14822
14823 * i386.c (ix86_expand_prologue): Properly wrap USE around
14824 reg for CALL_INSN_FUNCTION_USAGE.
14825
14826 Thu Oct 14 18:51:37 1999 Andrew Haley <aph@cygnus.com>
14827
14828 * config/mips/mips.md (movdf_internal1a): Allow floating-point
14829 move between GP_REGs.
14830
14831 Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
14832
14833 * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
14834 the mode size when finding out if an offset is legal.
14835
14836 Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
14837
14838 * basic-block.h (PROP_*): Move constants from ...
14839 * flow.c: ... here.
14840 (compute_bb_for_insn): Free the array before reallocating.
14841 (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
14842 (allocate_reg_life_data): Reset all reg variables collected by
14843 propagate_block.
14844 (get_block_head_tail): Don't convert from bb to block.
14845 (get_bb_head_tail): New. Update all callers of get_block_head_tail.
14846 (find_insn_reg_weight): Take block not bb.
14847 (schedule_block): Don't set block num for moved insns.
14848 (schedule_region): Don't update_life_info or find_insn_reg_weight.
14849 (schedule_insns): Do it here instead.
14850 * combine.c (combine_instructions): Invoke compute_bb_for_insn
14851 before update_life_info.
14852 * recog.c (split_all_insns, peephole2_optimize): Update for
14853 new arg to update_life_info.
14854 * rtlanal.c (remove_note): Cope with NULL note.
14855 * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
14856 if we did sched1.
14857
14858 Wed Oct 20 10:46:41 1999 Richard Earnshaw (rearnsha@arm.com)
14859
14860 * jump.c (jump_optimize_1): More accurately detect casesi insns.
14861
14862 * flow.c (merge_blocks_move_predecessor_nojumps): Re-order the basic
14863 block records so that merge_blocks_nomove will clean up correctly.
14864 (split_edge): Handle casesi insns.
14865
14866 * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
14867
14868 Tue Oct 19 23:43:50 1999 Jeffrey A Law (law@cygnus.com)
14869
14870 * pa.md (call, call_value): Do not emit a blockage after restoring
14871 the PIC register.
14872
14873 Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
14874
14875 * c-typeck.c (c_expand_asm_operands): Fix typo.
14876
14877 Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14878
14879 * arm.c (fpu_rhs_operand): Verify modes.
14880 (fpu_add_operand): Likewise.
14881 (di_operand): Likewise.
14882 (soft_df_operand): Likewise.
14883
14884 Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
14885
14886 * arm.c (arm_return_in_memory): APCS rules state that the elements
14887 of a structure returned in a register must be 'integer-like'.
14888
14889 1999-10-19 Bruce Korb <autogen@linuxbox.com>
14890
14891 * fixinc/Makefile.in: Change the generation rules to run `genfixes'
14892 in the source tree when the generated targets are out of date
14893 * fixinc/genfixes: Alter it to run individual fixes for make.
14894 * fixinc/README: rewrite
14895 * fixinc/inclhack.def: moved initial comments to README
14896
14897 Tue Oct 19 14:01:34 1999 Nick Clifton <nickc@cygnus.com>
14898
14899 * toplev.c (main): Do not generate an error message if an
14900 unrecognised command line switch is recognisable by another
14901 language. If extra_warnings are enabled, then generate a
14902 warning message instead.
14903
14904 Tue Oct 19 11:41:12 1999 Mumit Khan <khan@xraylith.wisc.edu>
14905
14906 * c-pragma.h (PRAGMA_INSERT_ATTRIBUTES): Delete macro.
14907 (insert_pack_attributes): Delete prototype.
14908
14909 * c-pragma.c (default_alignment): New static variable.
14910 (push_alignment): Initialize to current effective alignment.
14911 (pop_alignment): Use to set new alignment.
14912 (insert_pack_attributes): Delete function.
14913 (handle_pragma_token): Set default_alignment as well each time
14914 a #pragma pack(<n>) is encountered.
14915
14916 Tue Oct 19 02:03:00 1999 Jeffrey A Law (law@cygnus.com)
14917
14918 * reg-stack.c (stack_result): Aggregates are not returned in
14919 stack registers.
14920
14921 Tue Oct 19 01:26:48 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
14922
14923 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
14924
14925 Mon Oct 18 15:19:41 1999 Richard Henderson <rth@cygnus.com>
14926
14927 * basic-block.h (set_block_num): Declare.
14928 * flow.c (update_life_info): Don't call compute_bb_for_insn
14929 or free_basic_block_vars.
14930 * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
14931 (insn_orig_block): Remove.
14932 (INSN_BLOCK): Remove. Update all callers to use BLOCK_NUM.
14933 (schedule_block): Keep BLOCK_NUM up-to-date.
14934 (schedule_insns): Use compute_bb_for_insn.
14935 * recog.c (split_all_insns): Likewise.
14936 (peephole2_optimize): Likewise.
14937
14938 Mon Oct 18 18:50:51 1999 Andreas Schwab <schwab@suse.de>
14939
14940 * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
14941 if the pic register is used.
14942
14943 Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14944
14945 * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
14946 (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
14947 if that tests TREE_PERMANENT.
14948
14949 Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
14950
14951 * cse.c (invalidate_for_call): Do not remove memory references from
14952 the table here. It's handled elsewhere.
14953
14954 * haifa-sched.c (add_dependence): Protect references to the
14955 true dependency cache with #ifdef INSN_SCHEDULING.
14956 (remove_dependence): Similarly.
14957
14958 * mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
14959 to the cfg code that this is a return instruction.
14960 * mn10300.md (return_internal): Similarly.
14961
14962 * combine.c (get_last_value): If the last set of a register
14963 is after subst_low_cuid, then we can not use it to determine
14964 the register's last value.
14965
14966 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
14967
14968 * Makefile.in: Back out previous change.
14969
14970 Sun Oct 17 15:22:50 1999 Jeffrey A Law (law@cygnus.com)
14971
14972 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
14973
14974 * haifa-sched.c (add_dependence): Only check/update the cache
14975 if it exists.
14976 (remove_dependence): Likewise.
14977 (schedule_insns): Only create the true_dependency_cache if the
14978 average number of instructions in a basic block is very large.
14979
14980 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
14981
14982 * Makefile.in (ggc-common.o): Depend on genrtl.h.
14983 (ggc-simple.o): Likewise.
14984 (ggc-page.o): Likewise.
14985
14986 Sun Oct 17 02:09:50 1999 Andrew MacLeod <amacleod@cygnus.com>
14987
14988 * basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
14989 Prototype for exported functions.
14990 (pre_lcm, pre_rev_lcm): Remove prototypes.
14991 * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
14992 (compute_available): Move to lcm.c, and change parameter order.
14993 (one_classic_gcse_pass): Call compute_ae_kill with parameters.
14994 (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
14995 (gcse_main): No longer call compute_preds_succs. Rebuild the
14996 set table after reach pre pass.
14997 (pre_insert_map, pre_delete_map, edge_list): New.
14998 (alloc_pre_mem): Allocate edge vectors.
14999 (free_pre_mem): Delete edge vectors.
15000 (compute_pre_data): Call new edge based lcm routines.
15001 (process_insert_insn): New function.
15002 (insert_insn_end_bb): Use it.
15003 (pre_edge_insert): New function.
15004 (pre_insert_copy_insn): Formatting fixes. Update BLOCK_END as
15005 needed.
15006 (pre_insert_copies): Revamp using new edge based lcm outputs.
15007 (pre_delete): Likewise.
15008 (one_pre_gcse_pass): Insert & remove fake edges to the exit
15009 block.
15010 (compute_code_hoist_vbeinout): New new edge based routines.
15011 * lcm.c: Remove all the old LCM functions. Replace with new ones
15012 that work with the new cfg datastructures and work with edges
15013 instead of blocks.
15014
15015 Sun Oct 17 00:44:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15016
15017 * reload.h (struct reload): Add new fields "mode" and "nregs".
15018 * reload1.c: Change all occurrences of reload_mode and reload_nregs
15019 to reference the "mode" and "nregs" field within struct reload.
15020
15021 Sat Oct 16 21:50:28 1999 Jeffrey A Law (law@cygnus.com)
15022
15023 * haifa-sched.c (true_dependency_cache): New.
15024 (add_dependence): Use the true dependency cache to avoid expensive
15025 walks down the LOG_LINKS dependency list. Add entries to the
15026 cache as necessary.
15027 (remove_dependence): Remove entries from the true dependency cache
15028 as needed.
15029 (schedule_insns): Allocate and initialize and free the true
15030 dependency cache.
15031
15032 * haifa-sched.c (schedule_insns): Do not remove inter-block
15033 dependencies anymore.
15034
15035 Sat Oct 16 11:19:52 1999 Richard Henderson <rth@cygnus.com>
15036
15037 * i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
15038 * i386/t-winnt: Likewise.
15039
15040 Sat Oct 16 11:11:54 1999 Richard Henderson <rth@cygnus.com>
15041
15042 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
15043
15044 1999-10-16 Manfred Hollstein <mhollstein@cygnus.com>
15045
15046 * Makefile.in (LANGUAGES): Omit "proto".
15047 (clean): Remove stale comment about removing unprotoize.c.
15048
15049 Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15050
15051 * protoize.c (safe_read, safe_write): Avoid the gcc extension of
15052 using arithmetic on void pointers.
15053
15054 Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
15055
15056 * haifa-sched.c (compute_block_forward_dependencies): Only check
15057 for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
15058
15059 Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
15060
15061 * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
15062 (expr_equiv_p): Reject memories with different alias sets.
15063
15064 Fri Oct 15 15:17:29 1999 Greg McGary <gkm@gnu.org>
15065
15066 * flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
15067 * toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
15068 (f_options): Add "bounded-pointers" and "bounds-check" entries.
15069 * c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
15070 (lang_init): Set default for flag_bounds_check if still "unspecified".
15071
15072 Sat Oct 16 13:42:29 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15073
15074 * config/c4x/c4x.md (HF mode patterns): Add missing modes.
15075
15076 Sat Oct 16 13:37:46 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15077
15078 * config/c4x/c4x.md (movstrqi_small): Utilise parallel move
15079 instructions.
15080
15081 Sat Oct 16 13:26:47 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15082
15083 * config/c4x/c4x.md (*db_noclobber,
15084 *decrement_and_branch_until_zero_noclobber): New patterns and
15085 associated splitters.
15086
15087 Sat Oct 16 13:13:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15088
15089 * config/c4x/c4x.md (parallel instruction patterns): Rework
15090 constraints to keep reload happy.
15091
15092 Sat Oct 16 13:03:16 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15093
15094 * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
15095 *one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
15096 *andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
15097 Add new patterns and associated post-reload splitters.
15098
15099 Sat Oct 16 12:42:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15100
15101 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
15102
15103 Sat Oct 16 12:34:44 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15104
15105 * config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
15106 if appropriate.
15107 * config/c4x/c4x.md (rpts_top): New pattern and splitter.
15108
15109 Sat Oct 16 12:26:30 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15110
15111 * config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF
15112 memory mode.
15113
15114 Fri Oct 15 17:02:09 1999 Jeffrey A Law (law@cygnus.com)
15115
15116 * pa.c (move_operand): Rely on memory_address_p to determine the
15117 validity of non-indexed memory addresses.
15118 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
15119 operand in DFmode and SFmode when generating PA2.0 code.
15120
15121 Fri Oct 15 14:25:19 1999 Richard Henderson <rth@cygnus.com>
15122
15123 * print-rtl.c (print_rtx): Limit last 'u' change to LABEL_REF.
15124
15125 Fri Oct 15 13:48:45 1999 Richard Henderson <rth@cygnus.com>
15126
15127 * mips.c (function_prologue): Fix argument types.
15128 * mips.md (casesi): Use emit_jump_insn for casesi_internal.
15129 (casesi_internal): Write to the scratch register.
15130
15131 1999-10-15 11:16 -0700 Zack Weinberg <zack@bitmover.com>
15132
15133 * cppexp.c (cpp_parse_escape): Make static. Change second arg
15134 to U_CHAR **.
15135 (parse_charconst): Delete unnecessary cast when calling
15136 cpp_parse_escape.
15137 (cpplib.h): Kill prototype of cpp_parse_escape.
15138
15139 Fri Oct 15 11:02:46 1999 Richard Henderson <rth@cygnus.com>
15140
15141 Based on patch from Michael Gschwind <mikeg@watson.ibm.com>:
15142 * unroll.c (unroll_loop): Cast return value of alloca.
15143 * i370/i370.c: Include function.h and toplev.h.
15144 (i370_label_scan): Remove c++ commented abort.
15145 * i370/i370.h (HANDLE_PRAGMA): Takes three arguments.
15146 (ASM_OUTPUT_LABELREF): Fix TOUPPER/else broken 16 Sept.
15147 * i370/xm-i370.h (HOST_BITS_PER_LONGLONG): Define.
15148 * i370/xm-mvs.h, i370/xm-oe.h: Likewise.
15149
15150 Fri Oct 15 03:01:01 1999 Loren Rittle <ljrittle@acm.org>
15151
15152 * config/t-freebsd: Do not override USER_H.
15153 * ginclude/stddef.h: Generalize check for _MACHINE_ANSI_H_.
15154
15155 Fri Oct 15 02:37:28 1999 Alastair J. Houghton <ajh8@doc.ic.ac.uk>
15156 Mumit Khan <khan@xraylith.wisc.edu>
15157
15158 * c-parse.in (component_decl): Support anonymous struct/union.
15159 (%expect): Update.
15160 * c-parse.y: Regenerate.
15161 * c-parse.c: Likewise.
15162 * objc/objc-parse.y: Likewise.
15163 * objc/objc-parse.c: Likewise.
15164 * c-decl.c (finish_struct): Don't sort the fields.
15165 (field_decl_cmp): Delete unused function.
15166
15167 Fri Oct 15 01:20:52 1999 Richard Henderson <rth@cygnus.com>
15168
15169 * sparc.md (movsf_const_intreg): Revert last constraint change.
15170 (movdf_const_intreg_sp32): Likewise.
15171
15172 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
15173
15174 * cse.c: Include hashtab.h instead of splay-tree.h
15175 (struct cse_reg_info): No longer use variant union. Add new
15176 field "regno". All references changed to avoid union.
15177 (cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
15178 (free_cse_reg_info): Remove.
15179 (hash_cse_reg_info, cse_reg_info_equal_p): New functions.
15180 (get_cse_reg_info): Revamp to use expandable hash tables instead
15181 of splay trees. Initialize new fields in cse_reg_info structure.
15182 (new_basic_block): Similarly.
15183
15184 Thu Oct 14 23:51:56 1999 Richard Henderson <rth@cygnus.com>
15185
15186 * genrecog.c (message_with_line): Prototype.
15187 (validate_pattern): Pass along the set for the dest, not a flag.
15188 Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
15189 Check for PC/CC0 as sources.
15190 (nodes_identical): Check for children position match before
15191 allowing the combination.
15192
15193 * rtl.c (read_rtx): Track line number across \\\n.
15194
15195 Thu Oct 14 23:50:25 1999 Richard Henderson <rth@cygnus.com>
15196
15197 * mips.h (SPECIAL_MODE_PREDICATES): New.
15198 * mips.md (*) Use nonimmediate_operand not general_operand for outputs.
15199 (movdi+1, movsi+1): Add output reload constraint.
15200 (casesi_internal): Likewise. Fix commentary.
15201 (return_internal): Use pmode_register_operand.
15202
15203 Thu Oct 14 23:19:34 1999 Richard Henderson <rth@cygnus.com>
15204
15205 * 1750a.md (movstrqi): Add missing output reload constraint.
15206 (call_value): Likewise.
15207 * a29k.md (cpxxx patterns): Add missing match_operator mode.
15208 (jmpfdec): Add missing inout reload constraint.
15209 * elxsi.md (addsi patterns): Add missing output reload constraint.
15210 (move from sp): Use @ alternates.
15211 (call_value): No constraint on output.
15212 * fr30.md (movsi_pop): Add missing output reload constraint.
15213 (movsf_constant_store): Likewise.
15214 (splits): Remove constraints.
15215 (subsi3): Add missing mode.
15216 * i370.md (cmpstrsi+1): Add missing output reload constraint.
15217 (call_value): Likewise.
15218 * i960.md (cmpinc/cmpdec patterns): Add inout reload constraints.
15219 * m32r.h (PREDICATE_CODES): Add seth_add3_operand.
15220 * m32r.md (movsicc_internal): Add output reload constraint.
15221 (movstrsi_internal): Add inout reload constraints.
15222 * m88k.h (reg_names): Don't declare.
15223 (SPECIAL_MODE_PREDICATES): New.
15224 * m88k.md (*): Use register_operand not reg_or_0_operand
15225 on destinations.
15226 * mn10200.h (PREDICATE_CODES): New.
15227 * ns32k.md (ffs pattern): Add output reload constraint.
15228 * pdp11.md (sob pattern): Add inout reload constraint.
15229 * sh.md (splits): Remove constraints.
15230 (indirect_jump_scratch, fpu_switch): Add output reload constraint.
15231 * v850.md (pattern_is_ok_for_epilogue): Likewise.
15232 * vax.md (jgequ pattern): Add inout reload constraint.
15233
15234 Fri Oct 15 00:05:00 1999 Jeffrey A Law (law@cygnus.com)
15235
15236 * configure.in (djgpp): Revert previous patch.
15237 * configure: Rebuit.
15238 * config/i386/djgpp.h: Revert previous patch.
15239
15240 Fri Oct 15 00:00:24 1999 Loren J. Rittle <ljrittle@acm.org>
15241
15242 * fixinc/inclhack.def: Restore patch lost during last merge of
15243 "no_bogosity" branch.
15244 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
15245
15246 Thu Oct 14 23:57:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
15247
15248 * fixincludes: Add a HPUX 11 fix for inttypes.h.
15249 * fixinc/inclhack.def: Same.
15250 * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate.
15251
15252 Thu Oct 14 22:51:55 1999 Richard Henderson <rth@cygnus.com>
15253
15254 * alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Accept ADDRESSOF
15255 as the base of a PLUS.
15256
15257 Fri Oct 15 18:36:07 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15258
15259 * config/c4x/c4x.md: Define mode for remaining unspec operators.
15260 * config/c4x/c4x.c (dst_operand): Use nonimmediate_operand.
15261
15262 Thu Oct 14 22:14:23 1999 Richard Henderson <rth@cygnus.com>
15263
15264 * pa.md (post_stw+1): Use pmode_register_operand.
15265 (dcacheflush, icacheflush): Likewise.
15266
15267 * i386.md (movstricthi_1): Allow r/r.
15268
15269 Thu Oct 14 19:44:08 1999 Jan Hubicka <hubicka@freesoft.cz>
15270
15271 * fold-const.c (fold): Convert (or (not arg0) (not arg1))
15272 to (not (and (arg0) (arg1))). Similary for and.
15273
15274 * fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
15275 fallthrough to associate code.
15276 Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
15277 bits in common.
15278
15279 * combine.c (simplify_logical): Convert XOR to IOR if operands have
15280 no bits in common; remove XOR to ROTATE conversion.
15281
15282 Fri Oct 15 17:40:11 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15283
15284 * config/c4x/c4x.h (c4x_va_start, c4x_va_arg): Declare.
15285
15286 Fri Oct 15 17:27:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15287
15288 * config/c4x/c4x.c (dst_operand): New.
15289 (PREDICATE_CODES): Update.
15290 * config/c4x/c4x.h (dst_operand): Declare it.
15291 * config/c4x/c4x.md: Define mode for each unspec usage.
15292 (move patterns): Use dst_operand predicate instead of src_operand.
15293 (movqi_update, movqf_update): Delete.
15294
15295 Thu Oct 14 18:48:54 1999 Richard Henderson <rth@cygnus.com>
15296
15297 * recog.c (pmode_register_operand): New.
15298 * recog.h: Declare it.
15299 * genrecog.c (pred_codes): Likewise.
15300 (special_mode_pred_table): Likewise.
15301 (validate_pattern): Don't warn no mode for address_operand.
15302
15303 * print-rtl.c (print_rtx) [LABEL_REF]: Only do full subexpression
15304 if the operand is not insn-like.
15305
15306 Thu Oct 14 19:38:42 1999 Jeffrey A Law (law@cygnus.com)
15307 Sylvian Pion <Sylvain.Pion@sophia.inria.fr>
15308
15309 * fold-const.c (fold): Handle more simplifications allowed by IEEE.
15310
15311 Thu Oct 14 17:30:14 1999 Richard Henderson <rth@cygnus.com>
15312
15313 * sparc.md (*): Use {nonimmediate,register}_operand as appropriate
15314 instead of general_operand in a SET_DEST. Use const_double_operand
15315 instead of an explicit test against CONST_DOUBLE.
15316 (movsf_const_lo): Add missing register mode.
15317 (goto_handler_and_restore): Add auxiliary test for Pmode.
15318 (flush): Adjust to use address_operand.
15319 (return_sf_no_fpu): Add missing output constraint.
15320
15321 Thu Oct 14 17:21:26 1999 Richard Henderson <rth@cygnus.com>
15322
15323 * rs6000.md (call_value_indirect_aix32): Use wildcard match_operand
15324 for call return value.
15325 (call_value_indirect_aix64, call_value_indirect_nt): Likewise.
15326
15327 Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
15328
15329 * toplev.c (main): Only warn about options for other languages.
15330 * collect2.c (main): Pass -w to sub-gcc.
15331
15332 Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
15333
15334 * flow.c (propagate_block): Add call-clobbered registers to
15335 significant too.
15336
15337 * flow.c (propagate_block): Use free_EXPR_LIST_list instead of
15338 zapping mem_set_list.
15339 (invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
15340 (mark_set_1, mark_used_regs): Likewise.
15341
15342 Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
15343
15344 * m68k.md (zero_extendsidi2): Add missing output reload constraint.
15345
15346 Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15347
15348 * invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
15349 -Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
15350 options. Also add a new item "C-only Warning Options" to the
15351 option summary.
15352
15353 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
15354
15355 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
15356 from multiple calls.
15357
15358 Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
15359
15360 * i386.md (call value patterns): Move to the end of the file.
15361 (prologue_set_got, prologue_get_pc): Use register_operand for op 0.
15362
15363 1999-10-14 Mark Elbrecht <snowball3@bigfoot.com>
15364
15365 * configure.in (djgpp configuration): Define extra_objects..
15366 * configure: Rebuilt.
15367 * config/i386/djgpp.h (CTORS_SECTION_ASM_OP): Define.
15368 (DTORS_SECTION_ASM_OP): Define.
15369 (INIT_SECTION_ASM_OP): Define.
15370 (FINI_SECTION_ASM_OP): Define.
15371 (DATA_SECTION_ASM_OP): Define.
15372 (TEXT_SECTION_ASM_OP): Define.
15373 (EH_FRAME_SECTION_ASM_OP): Define.
15374 (LINK_COMMAND_SPEC): Remove -Tdjgpp.djl.
15375 (STARTFILE_SPEC): Add crtbegin.o.
15376 (ENDFILE_SPEC): Define and add crtend.o. Move argument -Tdjgpp.djl
15377 to here from LINK_COMMAND_SPEC.
15378 (DO_GLOBAL_CTORS_BODY): Define.
15379 (CRTSTUFF_USE_FINI_SECTION): Define
15380 (HAS_INIT_SECTION): Delete.
15381
15382 Thu Oct 14 05:08:14 1999 Andreas Schwab <schwab@suse.de>
15383
15384 * Makefile.in (all.cross): Depend on xcpp$(exeext).
15385
15386 Thu Oct 14 04:00:40 1999 Richard Henderson <rth@cygnus.com>
15387
15388 * pa.h (PREDICATE_CODES): New.
15389
15390 * genrecog.c (validate_pattern): Condense the destination
15391 non-lvalue message.
15392
15393 Thu Oct 14 03:23:08 1999 Richard Henderson <rth@cygnus.com>
15394
15395 * alpha.md (call-1): Supply missing mode for operator.
15396 (*): Add missing output reload constraints. Remove constraints
15397 from define_splits.
15398
15399 * i386.h (SPECIAL_MODE_PREDICATES): New.
15400 * i386.md (movstricthi_1): Use nonimmediate_operand for op 0.
15401 (movqi_1, movdi_1, movdi_2, some splits): Likewise.
15402 (addsi_lea_3): Add missing mode for op 3.
15403 (prologue_set_got, prologue_get_pc): Add missing modes.
15404 (*) Add missing output reload constraints.
15405
15406 Thu Oct 14 03:59:57 1999 Stephane Carrez <stcarrez@worldnet.fr>
15407
15408 * stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
15409 check for member bit-size overflow and use var_size if it occurs.
15410 (layout_record): Use bitsize_int() to define the type size in bits.
15411 Likewise for computation and assignment to DECL_FIELD_BITPOS.
15412 (layout_decl): Likewise when assigning to DECL_SIZE.
15413
15414 Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
15415
15416 * genrecog.c (validate_pattern): Typo last change. Verify
15417 that output operands have output reloads.
15418
15419 Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
15420
15421 * genrecog.c (special_mode_pred_table): New.
15422 (NUM_SPECIAL_MODE_PREDS): New.
15423 (find_operand): New.
15424 (validate_pattern): New argument `insn'. Warn for assignment to
15425 any predicate accepting non-lvalues. Conditionaly warn for
15426 match_operand without a mode. Try much harder to match source
15427 and destination modes on a set.
15428 * tm.texi (SPECIAL_MODE_PREDICATES): Document.
15429
15430 Thu Oct 14 02:54:13 1999 Jeffrey A Law (law@cygnus.com)
15431
15432 * fold-const.c (fold): Detect rotates built from BIT_XOR_EXPRs.
15433
15434 Thu Oct 14 02:18:19 1999 Marc Espie <espie@cvs.openbsd.org>
15435
15436 * combine.c (simplify_logical): Recognize xor pattern that encodes
15437 rotation.
15438
15439 Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15440
15441 * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
15442 alignment.
15443
15444 Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
15445
15446 * ggc-page.c (MAP_FAILED): Provide default.
15447
15448 Wed Oct 13 21:41:59 1999 Richard Henderson <rth@cygnus.com>
15449
15450 * sparc.c (symbolic_operand): Verify mode; don't accept CONST_DOUBLE.
15451 * sparc.h (PREDICATE_CODES): Update.
15452
15453 Wed Oct 13 21:18:17 1999 Richard Henderson <rth@cygnus.com>
15454
15455 * alpha.c (some_ni_operand): New.
15456 * alpha-protos.h: Declare it.
15457 * alpha.h (PREDICATE_CODES): Update.
15458 * alpha.md (sXaddq reload insns): Use some_ni_operand
15459 for SET_DEST instead of some_operand.
15460
15461 Wed Oct 13 21:04:45 1999 Richard Henderson <rth@cygnus.com>
15462 Jim Wilson <wilson@cygnus.com>
15463
15464 * genrecog.c (maybe_both_true_2): Don't compare modes of
15465 two DT_pred tests.
15466 (process_tree): Elide peephole2_insns. Invoke simplify_tests
15467 after find_afterward.
15468 (debug_decision_1): Dump next and afterward codes.
15469
15470 Wed Oct 13 20:35:16 1999 Richard Henderson <rth@cygnus.com>
15471
15472 * rtl.c (dump_and_abort): Remove.
15473 (fatal_with_file_and_line): New.
15474 (fatal_expected_char): New.
15475 (read_rtx_lineno, read_rtx_filename): New.
15476 (read_skip_spaces): Track line number.
15477 (read_name): Use fatal_with_file_and_line.
15478 (read_rtx): Use fatal_expected_char. Track line number.
15479 * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
15480
15481 * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
15482 if it isn't a CODE_LABEL.
15483
15484 * genattr.c (main): Set read_rtx_filename.
15485 * genattrtab.c (main): Likewise.
15486 * gencodes.c (main): Likewise.
15487 * genconfig.c (main): Likewise.
15488 * genemit.c (main): Likewise.
15489 * genextract.c (main): Likewise.
15490 * genflags.c (main): Likewise.
15491 * genopinit.c (main): Likewise.
15492 * genoutput.c (main): Likewise.
15493 * genpeep.c (main): Likewise.
15494
15495 * genrecog.c (decision_test.u.insn): Add `lineno'.
15496 (pattern_lineno, error_count): New variables.
15497 (message_with_line): New.
15498 (add_to_sequence): Break out checking code to ...
15499 (validate_pattern): ... here. Detect SET_DEST matching CONST_INT.
15500 (merge_insn): Use message_with_line.
15501 (make_insn_sequence): Use validate_pattern. Record insn lineno.
15502 (main): Set read_rtx_filename, pattern_lineno. Exit early on error.
15503
15504 Wed Oct 13 22:01:35 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15505
15506 * expr.c (store_constructor): Clear union if constructor is empty.
15507
15508 Wed Oct 13 15:19:04 1999 Jim Wilson <wilson@cygnus.com>
15509
15510 * config/rs6000/sysv4.h (CC1_SPEC): Fix errors from Jan 19 change.
15511 Add !endian checks. Change %{...} to %(...).
15512
15513 Wed Oct 13 13:30:34 1999 Richard Henderson <rth@cygnus.com>
15514
15515 * i386.md (*addsi3_cc): Renamed from addcsi3.
15516 (*addsi3_carry): Renamed from addxsi3.
15517 (*subsi3_cc): Renamed from subcsi3.
15518 (*subsi3_carry): Renamed from subxsi3.
15519 (*xorqi_cc_1): Renamed from xorcqi_1.
15520 (xorqi_cc_ext_1): Renamed from xorcqi_ext_1.
15521 * i386.c (ix86_expand_fp_compare): Update for xorqi_cc_ext_1.
15522
15523 Wed Oct 13 13:10:46 1999 Richard Henderson <rth@cygnus.com>
15524
15525 * Makefile.in (ggc-common.o): Depend on RTL_H not RTL_BASE_H.
15526 (ggc-simple.o, ggc-page.o, ggc-none.o, ggc-callbacks.o): Likewise.
15527
15528 1999-10-13 Brendan Kehoe <brendan@cygnus.com>
15529
15530 * regmove.c (optimize_reg_copy_3): Make sure P is non-nil as we
15531 climb up the chain of insns.
15532
15533 Wed Oct 13 10:20:58 1999 Richard Henderson <rth@cygnus.com>
15534
15535 * genrecog.c (write_subroutine): Careful for null trees.
15536 (process_tree): Don't elide empty functions.
15537
15538 Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
15539
15540 * Makefile.in (genrtl.o): Depend on ggc.h.
15541 * configure.in (valloc): Probe for it.
15542 (with-gc): Use ggc-page if valloc present.
15543 * ggc-common.c (ggc_mark_rtx_children): Use ggc_mark_if_gcable.
15544 (ggc_mark_rtvec_children): New from corpse of ggc_mark_rtvec.
15545 (ggc_alloc_string): Moved from ggc-page.c.
15546 * ggc-none.c (ggc_alloc_obj): New.
15547 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove.
15548 * ggc-page.c (sys/mman.h): Only include if HAVE_MMAP.
15549 (struct globals): Likewise for dev_zero_fd.
15550 (init_ggc): Likewise for it's initialization.
15551 (ggc_allocated_p): Move careful dereference from ...
15552 (ggc_lookup_page_table): ... here. Delete.
15553 (lookup_page_table_entry): Don't use ggc_lookup_page_table.
15554 (alloc_anon): Use valloc if no mmap.
15555 (release_pages): Use free if using valloc.
15556 (ggc_alloc_obj): Renamed from alloc_obj.
15557 (ggc_set_mark): Renamed from mark_obj.
15558 (ggc_mark_if_gcable): Renamed from ggc_mark_string_if_gcable.
15559 (ggc_alloc_rtx, ggc_alloc_rtvec): Delete.
15560 (ggc_alloc_tree, ggc_alloc_string, ggc_alloc): Delete.
15561 (ggc_set_mark_rtx, ggc_set_mark_rtvec): Delete.
15562 (ggc_set_mark_tree, ggc_mark_string, ggc_mark): Delete.
15563 (ggc_collect): Use fp printing instead of our own rounding.
15564 * ggc-simple.c (IS_MARKED, IGNORE_MARK): Delete.
15565 (GGC_STRING_MAGIC, GGC_STRING_MAGIC_MARK): Delete.
15566 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): Delete.
15567 (struct ggc_rtx, struct ggc_rtvec, struct ggc_tree): Delete.
15568 (struct ggc_string, struct ggc_any): Delete.
15569 (offsetof): Provide default definition.
15570 (GGC_BALANCE, GGC_ALWAYS_COLLECT, GGC_ALWAYS_VERIFY): New.
15571 (PTR_KEY): New.
15572 (struct ggc_mem): New, from corpse of ggc_any.
15573 (struct ggc_status): Delete.
15574 (ggc_chain, ggc_allocated_strings, ggc_strings_used): Delete.
15575 (n_rtxs_collected, n_vecs_collected, n_trees_collected): Delete.
15576 (n_strings_collected, n_anys_collected): Delete.
15577 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Delete.
15578 (ggc_alloc_string, ggc_alloc): Delete.
15579 (ggc_free_rtx, ggc_free_rtvec, ggc_free_tree): Delete.
15580 (ggc_free_string, ggc_free_any): Delete.
15581 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Delete.
15582 (ggc_compare_addresses, ggc_mark_string): Delete.
15583 (ggc_mark_string_if_gcable, ggc_mark): Delete.
15584 (search_data): Delete.
15585 (struct globals): New.
15586 (GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED): New.
15587 (tree_insert, tree_lookup): New.
15588 (ggc_alloc_obj, ggc_set_mark, ggc_mark_if_gcable): New.
15589 (clear_marks, sweep_objs): New.
15590 (ggc_collect): Gut. Use clear_marks, sweep_objs.
15591 (init_ggc): Set allocated_last_gc.
15592 (ggc_push_context): Gut. Use G.context.
15593 (ggc_pop_context): Likewise.
15594 (ggc_pop_context_1): New.
15595 (debug_ggc_tree): New.
15596 (debug_ggc_balance, tally_leaves): New.
15597 * ggc.h (ggc_mark_rtvec, ggc_mark_string, ggc_mark): Remove decl.
15598 (ggc_mark_string_if_gcable): Remove decl.
15599 (ggc_mark_rtx, ggc_mark_tree): Use ggc_set_mark.
15600 (ggc_mark_rtvec_children): New.
15601 (ggc_mark_rtvec, ggc_mark_string, ggc_mark): New.
15602 (ggc_mark_if_gcable): New decl.
15603 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove decl.
15604 (ggc_alloc_tree, ggc_alloc): Likewise.
15605 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Likewise.
15606 (ggc_alloc_obj): New decl.
15607 (ggc_alloc_rtx, ggc_alloc_rtvec): New macros.
15608 (ggc_alloc_tree, ggc_alloc): Likewise.
15609 (ggc_set_mark): New decl.
15610 * rtl.h (struct rtx_def): Remove gc_mark.
15611 (struct rtvec_def): Likewise.
15612 * tree.h (struct tree_common): Likewise.
15613
15614 Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
15615
15616 * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
15617 float_format and thread_file definitions.
15618 * configure: Rebuilt.
15619
15620 Wed Oct 13 09:25:03 1999 Niels Möller <nisse@lysator.liu.se>
15621
15622 * extend.texi (Function Names): Document types of function names.
15623
15624 Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15625
15626 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
15627 an earlyclobbered output conflict with RELOAD_INPUT reloads.
15628
15629 Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15630
15631 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
15632
15633 Tue Oct 12 23:19:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15634
15635 * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
15636
15637 Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org>
15638
15639 * collect2.c (main): Do prelimnary link on AIX if rflag.
15640
15641 Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
15642
15643 * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
15644 __CTOR_LIST__ in opposite order, which is the correct order for sorted
15645 constructors.
15646 (__do_global_dtors): similarly for __DTOR_LIST__.
15647
15648 Fri Oct 8 19:46:03 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15649 Diego Novillo <dnovillo@cygnus.com>
15650
15651 * config/sh/sh.h (REGISTER_MOVE_COST): Handle moves from T_REGS to
15652 FPUL_REGS.
15653
15654 Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
15655
15656 * fixincl/*: Merged "no_bogosity" branch
15657 * fixincl/fixlib.h: protect against doubly defining t_bool
15658 * fixincl/server.h: protect against doubly defining t_bool
15659
15660 Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
15661
15662 * genoutput.c: Include toplev.h.
15663
15664 Mon Oct 11 18:56:14 1999 Jim Wilson <wilson@cygnus.com>
15665
15666 * config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
15667 Undef.
15668 * configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
15669 * configure: Regenerate.
15670
15671 Mon Oct 11 16:07:49 1999 Richard Henderson <rth@cygnus.com>
15672
15673 * gcse.c (delete_null_pointer_checks): Returns void.
15674
15675 Mon Oct 11 20:31:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15676
15677 * rtl.c (copy_rtx): Don't use accessor macros to copy fields.
15678 * emit-rtl.c (copy_insn_1): Likewise.
15679
15680 Mon Oct 11 13:29:06 1999 Geoffrey Keating <geoffk@cygnus.com>
15681
15682 * config/mips/mips.c (mips_build_va_list): Correct
15683 TREE_CHAIN setting when hard-float.
15684 (mips_va_start): Use corrected setting.
15685 (mips_va_arg): Likewise. Also pass a tree to build of
15686 POSTINCREMENT_EXPR rather than a naked 'int'.
15687
15688 Sun Oct 10 18:27:27 1999 Mark Mitchell <mark@codesourcery.com>
15689
15690 * ggc.h (ggc_push_context): Fix comment.
15691 (ggc_pop_context): Likewise.
15692 (mark_string_if_gcable): Likewise.
15693 * ggc-common.c (ggc_mark_rtx_children): Use
15694 ggc_mark_string_if_gcable.
15695 * ggc-page.c (ggc_lookup_page_table): New function.
15696 (ggc_allocated_p): Likewise.
15697 (mark_obj): Fix formatting.
15698 (ggc_mark_string_if_gcable): New function.
15699 * ggc-simple.c (ggc_allocated_strings): New variable.
15700 (ggc_strings_used): Likewise.
15701 (ggc_compare_addresses): New function.
15702 (ggc_pop_context): Pop the `any' memory too.
15703 (ggc_mark_string_if_gcable): New function.
15704 (ggc_collect): Initialize and tear down ggc_allocated_strings.
15705
15706 Sun Oct 10 20:05:21 1999 David Edelsohn <edelsohn@gnu.org>
15707
15708 * rs6000.md (movstrsi_?reg): Use preferred rD/rS = r5 form.
15709 (scc patterns): Disable most SImode variants if TARGET_POWERPC64.
15710 * rs6000.c (expand_block_move): Match movstrsi_?reg register
15711 changes.
15712
15713 Sun Oct 10 16:37:01 1999 Richard Henderson <rth@cygnus.com>
15714
15715 * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
15716 (sched_reg_live_length, sched_reg_basic_block): Delete.
15717 (current_block_num, bb_live_regs, old_live_regs): Delete.
15718 (dead_notes, struct sometimes): Delete.
15719 (sched_note_set, birthing_insn_p): Delete.
15720 (adjust_priority): Gut useless reg lifetime code.
15721 (create_reg_dead_note, attach_deaths): Delete.
15722 (attach_deaths_insn, new_sometimes_live): Delete.
15723 (finish_sometimes_live): Delete.
15724 (find_pre_sched_live, find_post_sched_live): Delete.
15725 (update_reg_usage): Delete.
15726 (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
15727 (schedule_insns): Delete reg lifetime code.
15728 (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
15729 (unlink_other_notes): Adjust REG_NOTE commentary.
15730 (reemit_notes): Use REG_SAVE_NOTE.
15731 (schedule_block): Likewise.
15732 (schedule_region): Allocate bitmap of blocks in region. Use
15733 count_or_remove_death_notes. Use update_life_info.
15734
15735 * rtl.h (REG_SAVE_NOTE): New.
15736 * rtl.c (reg_note_name): Update.
15737
15738 Sun Oct 10 16:14:16 1999 Richard Henderson <rth@cygnus.com>
15739
15740 * combine.c (refresh_blocks, need_refresh): New.
15741 (combine_instructions): Allocate refresh_blocks. Invoke
15742 update_life_info if needed.
15743 (distribute_notes): Mark refresh_blocks instead of installing
15744 USE insns.
15745 * flow.c (update_life_info): Remove notes if GLOBAL_RM_NOTES.
15746 * basic_block.h (enum update_life_extent): Add GLOBAL_RM_NOTES.
15747
15748 * Makefile.in (recog.o): Depend on basic-block.h.
15749
15750 Sun Oct 10 12:03:21 1999 Richard Henderson <rth@cygnus.com>
15751
15752 * genrecog.c (add_to_sequence): Thinko last change: delete
15753 shadowing allow_const_int variable.
15754
15755 Sun Oct 10 08:40:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15756
15757 * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
15758 __GNUC__ and __GNUC_MINOR__.
15759
15760 * gansidecl.h: Likewise.
15761
15762 * rtl.c: Likewise.
15763
15764 * rtl.h: Likewise.
15765
15766 * toplev.h: Likewise.
15767
15768 * tree.c: Likewise.
15769
15770 * tree.h: Likewise.
15771
15772 * varray.c: Likewise.
15773
15774 * varray.h: Likewise.
15775
15776 Sun Oct 10 13:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15777
15778 * loop.c (find_and_verify_loops): When looking for a BARRIER, don't
15779 use one before a jump table.
15780
15781 * rtl.def (ADDRESS): Change documentation to match reality.
15782 * md.texi: Don't document it.
15783 * gmicro.md (load address pattern): Use 'p' constraint, delete use
15784 of ADDRESS rtx.
15785
15786 * emit-rtl.c (copy_insn_1): Make format_ptr a const char *.
15787
15788 Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
15789
15790 * genrecog.c (add_to_sequence): Move allow_const_int test outside
15791 known predicate block; default allow_const_int true.
15792 (debug_decision_list): New.
15793
15794 Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
15795
15796 * i386.h (CC1_SPEC): Typo -- use cc1_cpu.
15797
15798 Sat Oct 9 23:26:55 1999 Jeffrey A Law (law@cygnus.com)
15799
15800 * gcse.c (gcse_main): Avoid global optimizations if we have a
15801 large number of basic blocks and the ratio of edges to blocks
15802 is high.
15803 (delete_null_pointer_checks): Likewise.
15804
15805 Sat Oct 9 23:16:01 1999 Ken Raeburn <raeburn@mit.edu>
15806
15807 * c-common.c (check_format_info): Warn if format string isn't a
15808 string literal.
15809
15810 Sat Oct 9 23:04:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
15811
15812 * configure.in (arm*-*-*): Don't let autoconf remove brackets
15813 * configure: regenerate
15814
15815 Sat Oct 9 13:15:53 1999 Richard Henderson <rth@cygnus.com>
15816
15817 * alpha.md (extendsidi2): Turn into a splitter. Allow f/f.
15818 If TARGET_FIX, allow r/f. Remove cvtlq unspec pattern.
15819 (peepholes): Re-enable.
15820
15821 Sat Oct 9 12:18:16 1999 Richard Henderson <rth@cygnus.com>
15822
15823 * Makefile.in (flow.o): Depend on TREE_H.
15824 * basic-block.h (REG_SET_EQUAL_P): New.
15825 (XOR_REG_SET): New.
15826 (n_edges): Declare.
15827 (free_regset_vector): Remove declaration.
15828 (flow_delete_insn_chain): Declare.
15829 (enum update_life_extent): New.
15830 (update_life_info, count_or_remove_death_notes): Declare.
15831 * combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
15832 Verify register live at bb->global_live_at_start before adding USE.
15833 * flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
15834 (CLEAN_ALLOCA): New.
15835 (n_edges): New.
15836 (PROP_*): New flags.
15837 (find_basic_blocks_1): Use alloc_EXPR_LIST.
15838 (clear_edges): Zero n_edges.
15839 (make_edge): Increment n_edges.
15840 (split_edge): Don't allocate bb->local_set. Increment n_edges.
15841 (flow_delete_insn_chain): Export.
15842 (delete_block): Decrement n_edges.
15843 (merge_blocks_nomove): Likewise.
15844 (life_analysis): Give life_analysis_1 PROP flags.
15845 (verify_wide_reg_1, verify_wide_reg): New.
15846 (verify_local_live_at_start): New.
15847 (update_life_info): Rewrite to call into propogate_block.
15848 (mark_reg): New.
15849 (mark_regs_live_at_end): After reload, if epilogue as rtl,
15850 always mark stack pointer. Conditionally mark PIC register.
15851 After reload, mark call-saved registers, return regsiters.
15852 (life_analysis_1): Accept PROP flags not remove_dead_code.
15853 Call mark_regs_live_at_end before zeroing regs_ever_live.
15854 Use calculate_global_regs_live. Copy global_live_at_end before
15855 calling final propagate_block. Zero reg_next_use on exit.
15856 (calculate_global_regs_live): New.
15857 (allocate_bb_life_data): Don't allocate bb->local_set.
15858 (init_regset_vector, free_regset_vector): Remove.
15859 (propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
15860 Test flags before every operation. Warn if prologue/epilogue insn
15861 would have been deleted.
15862 (mark_set_regs, mark_set_1): Accept and use FLAGS.
15863 Use alloc_EXPR_LIST.
15864 (mark_used_regs): Accept and use FLAGS, not FINAL.
15865 Remove special handling for RETURN.
15866 (try_pre_increment): Use alloc_EXPR_LIST.
15867 (dump_flow_info): Dump n_edges.
15868 (unlink_insn_chain, split_hard_reg_notes): Remove.
15869 (maybe_add_dead_note, maybe_add_dead_note_use): Remove.
15870 (find_insn_with_note, new_insn_dead_notes): Remove.
15871 (update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
15872 (maybe_remove_dead_notes, prepend_reg_notes): Remove.
15873 (replace_insns): Remove.
15874 (count_or_remove_death_notes): New.
15875 (verify_flow_info): Abort on error after all checks.
15876 (remove_edge): Decrement n_edges.
15877 (remove_fake_edges): Tweek format.
15878 * haifa-sched.c (schedule_insns): Use split_all_insns.
15879 * output.h (update_life_info): Remove declaration.
15880 * recog.c (split_all_insns): From the corpse of split_block_insns,
15881 do the whole function block by block. Use update_life_info.
15882 (recog_last_allowed_insn): New.
15883 (recog_next_insn): Mind it.
15884 (peephole2_optimize): Set it. Walk backwards through blocks.
15885 Use update_life_info.
15886 * rtl.h (update_flow_info, replace_insns): Remove declarations.
15887 (split_all_insns): Declare.
15888 * toplev.c (rest_of_compilation): Thread prologue before flow2.
15889 Use split_all_insns.
15890
15891 * i386.md (or -1 peep2s): Disable.
15892
15893 Fri Oct 8 17:49:08 1999 Richard Henderson <rth@cygnus.com>
15894
15895 * config/mips/mips.md (movstrsi+[123]) : Combine these into
15896 a single pattern. Scrap the 'd' versions as unnecessary.
15897
15898 * config/mips/mips.md (tablejump_internal3,tablejump_mips161,
15899 tablejump_mips162,tablejump_internal4): The operands to a
15900 label_ref must be VOIDmode.
15901
15902 Fri Oct 8 16:12:42 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15903
15904 * configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
15905
15906 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
15907
15908 * mips.c (mips_va_arg) [EABI]: Return addr_rtx.
15909
15910 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
15911
15912 * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
15913 cache every function if ggc_p.
15914
15915 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15916
15917 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
15918 instead of copy_rtx. Accept sequences that contain asm statements.
15919 * emit-rtl.c (copy_insn_1, copy_insn): New functions.
15920 (copy_insn_scratch_in, copy_insn_scratch_out, copy_insn_n_scratches,
15921 orig_asm_operands_vector, copy_asm_operands_vector,
15922 orig_asm_constraints_vecotr, copy_asm_constraints_vector): New static
15923 variables.
15924 * rtl.h (copy_insn, copy_insn_1): Declare.
15925
15926 Fri Oct 8 13:08:12 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15927
15928 * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
15929
15930 * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
15931 arguments to `current_file_function_operand'.
15932
15933 * genrecog.c: Include hard-reg-set.h and resource.h in the
15934 generated output file.
15935
15936 * real.c: Include tm_p.h.
15937
15938 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15939
15940 * i386.md (prologue_allocate_stack): Add '=' constraint letter on
15941 output operand.
15942
15943 Thu Oct 7 23:06:50 1999 Richard Henderson <rth@cygnus.com>
15944
15945 * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
15946 before the fctiwz insn.
15947
15948 Thu Oct 7 22:53:00 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15949 Mark Mitchell <mark@codesourcery.com>
15950
15951 * tree.c (make_lang_type_fn): New funtion pointer.
15952 (make_lang_type): Call it.
15953 * tree.h (make_lang_type): Declare.
15954 (make_lang_type_fn): Likewise.
15955 * rs6000.c (rs6000_build_va_list): Use make_lang_type.
15956
15957 Thu Oct 7 00:36:17 1999 Diego Novillo <dnovillo@cygnus.com>
15958
15959 * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
15960 make sure that HIGH instructions are copied into BASE_REGS.
15961
15962 Thu Oct 7 17:02:34 1999 Jason Merrill <jason@yorick.cygnus.com>
15963
15964 * expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.
15965
15966 Thu Oct 7 17:01:58 1999 Greg McGary <gkm@gnu.org>
15967
15968 * c-decl.c (finish_struct): Use simpler method of
15969 removing elements of a singly-linked list.
15970
15971 Thu Oct 7 15:23:28 1999 Michael Meissner <meissner@cygnus.com>
15972
15973 * alpha.md (peephole2's): Comment out peephole2's that generate
15974 buggy code.
15975
15976 Thu Oct 7 12:00:53 1999 Richard Henderson <rth@cygnus.com>
15977
15978 * genrecog.c (add_to_sequence): Disable mode check for
15979 wildcard matches.
15980
15981 Thu Oct 7 20:14:16 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15982
15983 * ggc-simple.c (init_ggc): Set empty_string.
15984
15985 Thu Oct 7 01:13:15 1999 Richard Henderson <rth@cygnus.com>
15986
15987 * configure.in: Detect mmap. Add --with-gc=foo to select
15988 garbage collector; default to page if mmap available.
15989 * Makefile.in (GGC): Substitute.
15990
15991 Wed Oct 6 23:56:30 1999 Richard Henderson <rth@cygnus.com>
15992
15993 * c-decl.c (ggc_p): Enable.
15994
15995 Wed Oct 6 17:17:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15996
15997 * flow.c (verify_flow_info): Make it extern & unconditionally define.
15998
15999 1999-10-06 Brendan Kehoe <brendan@cygnus.com>
16000
16001 * sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
16002 string for little-endian-data.
16003
16004 Wed Oct 6 16:10:35 1999 Michael Meissner <meissner@cygnus.com>
16005
16006 * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
16007 case somebody tries to compile --enable-checking code with gcc
16008 1.34 or such.
16009
16010 Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
16011
16012 * genrecog.c (add_to_sequence): Verify operand to label_ref is
16013 VOIDmode.
16014
16015 Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
16016
16017 * genconfig.c (main): Disable HAVE_conditional_arithmetic.
16018 * jump.c (jump_optimize_1): Document why.
16019
16020 Wed Oct 6 10:41:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16021
16022 * collect2.c (scan_prog_file, scan_libraries): Prototype function
16023 pointers and casts for `int_handler' and `quit_handler'.
16024
16025 * flow.c (verify_flow_info, split_hard_reg_notes,
16026 find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
16027 remove_edge, remove_fake_successors): Add static prototypes.
16028 (verify_flow_info): Wrap with macro ENABLE_CHECKING.
16029 (mark_set_1): Initialize variable `regno'.
16030 (unlink_insn_chain): Likewise for variable `curr'.
16031 (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
16032
16033 * loop.c (strength_reduce): Initialize variable
16034 `unrolled_insn_copies'.
16035 (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
16036 prototypes. Change these functions to take const PTR parameters
16037 to avoid prototype conflict when used as the comparson argument
16038 for qsort.
16039 (check_dbra_loop): Initialize variable `comparison_val'.
16040
16041 * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
16042 (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
16043 (find_valid_class): Initialize variable `best_class'.
16044 (find_reloads): Call memcpy, not bcopy.
16045
16046 * reload1.c (gen_mode_int, dump_needs): Add prototypes.
16047 (hard_reg_use_compare): Don't needlessly cast away const.
16048 (reload_reg_class_lower): Likewise.
16049 (choose_reload_regs): Initialize variable `regno'.
16050
16051 Tue Oct 5 16:34:12 1999 Paul Burchard <burchard@pobox.com>
16052
16053 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
16054
16055 Tue Oct 5 16:14:40 1999 Michael Meissner <meissner@cygnus.com>
16056
16057 * libgcc1-test.c (toplevel): Include stddef.h to get size_t.
16058 ({,d}discard): Add forward declarations. Declare parameter as
16059 unused.
16060 (main_without_main): Explicitly declare return type to be int.
16061 (memcpy): Properly declare.
16062
16063 * libgcc2.c (toplevel): If inhibit_libc is defined and not
16064 building the trampoline support, declare malloc, free, and
16065 atexit.
16066 (__clear_cache): Mark arguments as potentially unused.
16067
16068 * frame.c (toplevel): If inhibit_libc is defined, declare
16069 malloc and free.
16070
16071 Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
16072
16073 * flow.c (make_edge): Accept an optional 2D bitmap in which
16074 to cache edge existence. Update all callers.
16075 (make_label_edge, make_eh_edge): Pass through the edge cache.
16076 (make_edges): Provide the cache.
16077
16078 Tue Oct 5 12:16:49 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16079
16080 * mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
16081 a char*.
16082 (local_mbtowc): Change the type of variable `i' from int to size_t.
16083
16084 * mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
16085 (local_mbtowc, local_mblen, literal_codeset): Constify a char*.
16086
16087 Tue Oct 5 11:34:52 1999 Michael Meissner <meissner@cygnus.com>
16088
16089 * ggc-common.c (toplevel): Reorder includes, so that ggc.h comes
16090 after other includes that define the appropriate types. Include
16091 tm_p.h for getting user prototypes.
16092 * ggc-callbacks.c (toplevel): Ditto.
16093 * ggc-none.c (toplevel): Ditto.
16094 * gcc-page.c (toplevel): Ditto.
16095 * ggc-simple.c (toplevel): Ditto.
16096
16097 Mon Oct 4 16:48:16 1999 Diego Novillo <dnovillo@cygnus.com>
16098 Jonathan Larmour <jlarmour@cygnus.co.uk>
16099
16100 * config/mips/mips.c (mips_move_2words): Split doubles if
16101 ISA >= 3, !TARGET_64BIT, and destination is not an FP register.
16102
16103 Mon Oct 4 21:47:31 1999 Richard Henderson <rth@cygnus.com>
16104
16105 * genrecog.c (struct decision_test): New.
16106 (struct decision): Remove test-related members, sort the rest by size.
16107 (IS_SPLIT): Simplify.
16108 (new_decision, new_decision_test): New.
16109 (add_to_sequence): Use them. No special handling for args of
16110 non-MATCH codes.
16111 (maybe_both_true): Renamed from not_both_true; return sense changed.
16112 (maybe_both_true_1, maybe_both_true_2): New. Broken out
16113 of maybe_both_true and adjusted for decision_test.
16114 (position_merit): Remove.
16115 (nodes_identical, nodes_identical_1): New, broken out of merge_trees.
16116 (merge_accept_insn): New, broken out of merge_trees.
16117 (merge_trees): Use them. No special case for c_test; no node
16118 splitting; use test type instead of position_merit.
16119 (factor_tests): New.
16120 (simplify_tests): New.
16121 (break_out_subroutines): Don't write code now.
16122 (find_afterward): New.
16123 (write_afterward, write_switch, write_cond): New.
16124 (write_action, is_unconditional): New.
16125 (write_node): New. Use them.
16126 (write_tree_1): Rewrite. Use the new functions above.
16127 (write_tree): Remove afterward processing.
16128 (write_subroutine): Simplify function variant emission.
16129 (write_subroutines): New.
16130 (same_codes, clear_codes): Remove.
16131 (same_modes, clear_modes): Remove.
16132 (write_header): New, broken out of main.
16133 (make_insn_sequence): Use new_decision and new_decision_test.
16134 (process_tree): New, broken out of main.
16135 (main): Adjust for merge_trees interface change.
16136 Don't #define operands in the output file.
16137 (record_insn_name): New, broken out of make_insn_sequence.
16138 (debug_decision_2, debug_decision_1, debug_decision_0): New.
16139 (debug_decision): New.
16140
16141 1999-10-04 21:58 -0700 Zack Weinberg <zack@bitmover.com>
16142
16143 * resource.c (find_free_register): Mark class_str argument const.
16144 * resource.h: Update prototype to match.
16145
16146 * i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
16147 * i386.md: Give all anonymous insns names.
16148
16149 Mon Oct 4 21:12:02 1999 Jeffrey A Law (law@cygnus.com)
16150
16151 * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
16152 blocks.
16153
16154 Mon Oct 4 21:01:39 1999 Richard Henderson <rth@cygnus.com>
16155
16156 * toplev.c (dbr_sched_time): Unconditional.
16157 (peephole2_time): New.
16158 (compile_file): Add pass numbers to all of the dump file suffixes.
16159 Dump peephole2_time. Don't dump times for non-applicable passes.
16160 (rest_of_compilation): Add pass numbers to dump file suffixes.
16161 Conditionalize calls to the scheduler.
16162 * invoke.texi: Update.
16163
16164 Mon Oct 4 20:25:13 1999 Anthony Green <green@cygnus.com>
16165
16166 * flow.c (make_edges): Fix insn iteration.
16167 (find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
16168 (find_basic_blocks_1): Fix spelling mistake.
16169
16170 Mon Oct 4 16:56:11 1999 Richard Henderson <rth@cygnus.com>
16171
16172 * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
16173 always have side-effects. Use memset not bzero.
16174 (make_node): Likewise.
16175
16176 Mon Oct 4 16:22:20 1999 Mark Mitchell <mark@codesourcery.com>
16177
16178 * stmt.c (expand_anon_union_decl): When any of the elements of the
16179 union is addressable, so is the entire union.
16180
16181 Mon Oct 4 11:38:33 1999 Richard Henderson <rth@cygnus.com>
16182
16183 * sbitmap.c (sbitmap_ones): Don't set too many bits.
16184
16185 * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
16186 * bitmap.c (bitmap_operation): Return true iff TO changed.
16187 (bitmap_equal_p): New.
16188 (bitmap_bit_p): Tidy arithmetic.
16189 (debug_bitmap_file): Likewise.
16190
16191 Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
16192
16193 * toplev.c (rest_of_compilation): Turn on cse_not_expected
16194 before cse2 instead of after.
16195
16196 Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
16197
16198 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
16199 register offsets.
16200
16201 Mon Oct 4 08:54:12 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16202
16203 * cppinit.c (is_idchar initializer): Loosen tests to accept
16204 gcc 2.>6 and >2.
16205
16206 Mon Oct 4 02:31:20 1999 Mark Mitchell <mark@codesourcery.com>
16207
16208 * mips.md: Define conditional move patterns for floating point
16209 operands and DI mode conditions.
16210
16211 Mon Oct 4 02:12:41 1999 Mark Mitchell <mark@codesourcery.com>
16212
16213 * tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
16214 always have side-effects.
16215
16216 Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com)
16217
16218 * mn10200.c (asm_file_start): Fix typo.
16219
16220 * cppinit.c (is_idchar initializer): Tighten tests for when
16221 to put the table into initialized memory.
16222
16223 * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
16224 not an array of rtunion.
16225 * gcc-page.c (ggc_alloc_rtvec): Similarly.
16226 * gcc-simple (ggc_free_rtvec): Similarly.
16227
16228 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
16229 of rtunions.
16230
16231 * mbchar.h: Add missing #endif.
16232
16233 * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
16234 (FPBIT, DPBIT): Define.
16235
16236 Sun Oct 3 12:44:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16237
16238 * print-tree.c (print_node, indent_to): Remove redundant prototypes.
16239
16240 * profile.c (instrument_arcs, output_gcov_string,
16241 tablejump_entry_p): Add static prototypes.
16242 (output_gcov_string): Constify a char*.
16243
16244 * regmove.c (replacement_quality, fixup_match_2): Add static
16245 prototypes.
16246
16247 * resource.h (reg_dead_p): Add extern prototype.
16248
16249 * rtl.c (trim_filename): Add static prototype.
16250
16251 * scan-decls.c (skip_to_closing_brace): Likewise.
16252
16253 * stmt.c (expand_decl_cleanup_no_eh): Hide definition.
16254 (expand_end_case): Initialize variable `range'.
16255 (emit_case_nodes): Remove unused prototype `rtx_fn'.
16256
16257 * varasm.c (asm_emit_uninitialised): Add static prototype.
16258 (asm_emit_uninitialised, assemble_variable): Mark parameter with
16259 ATTRIBUTE_UNUSED.
16260
16261 Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16262
16263 * cpplib.c (if_directive_nameo): Add static prototype.
16264
16265 * cse.c (cse_insn): Remove unused variable `p'.
16266
16267 * except.c (create_rethrow_ref, push_entry,
16268 receive_exception_label, new_eh_region_entry, find_func_region,
16269 clear_function_eh_region, process_nestinfo): Add static prototypes.
16270 (get_reg_for_handler): Hide definition.
16271 (process_nestinfo): Initialize variable `extra_handlers'.
16272
16273 * expr.h (expand_builtin_longjmp): Add extern prototype.
16274
16275 * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
16276
16277 * function.c (prepare_function_start): Likewise.
16278 (pop_function_context_from): Mark parameter `context' with
16279 ATTRIBUTE_UNUSED.
16280 (push_temp_slots_for_block, flush_addressof): Hide definition.
16281
16282 * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
16283 solve_program_flow_graph, calculate_branch_probs,
16284 function_summary, main, fancy_abort): Add prototypes.
16285
16286 * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
16287 (add_hash): Constify a char*.
16288
16289 * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
16290 ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
16291 ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
16292
16293 * integrate.c (expand_inline_function_eh_labelmap): Likewise.
16294
16295 * lists.c (free_list, zap_lists): Likewise.
16296
16297 Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16298
16299 * alias.c (nonlocal_reference_p): Add static prototype.
16300
16301 * bitmap.c (bitmap_element_allocate): Prototype args in function
16302 pointer cast.
16303
16304 * builtins.c (stabilize_va_list): Add static prototype.
16305 (expand_builtin_va_arg): Constify a char*.
16306
16307 * c-lex.c (getch, put_back, extend_token_buffer_to,
16308 read_line_number, token_getch, token_put_back): Add static
16309 prototypes.
16310
16311 * c-parse.gperf (hash, is_reserved_word): Likewise.
16312
16313 * cccp.c (is_dir_separator): Likewise.
16314
16315 Sat Oct 2 16:07:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16316
16317 * graph.h: New file to prototype functions exported by graph.c.
16318
16319 * Makefile.in (graph.o, toplev.o): Depend on graph.h.
16320
16321 * graph.c: Include graph.h.
16322
16323 * toplev.c: Likewise. Remove redundant prototypes.
16324
16325 Sat Oct 2 11:28:33 1999 Krister Walfridsson <cato@df.lth.se>
16326
16327 * invoke.texi: Removed duplicated description for -Q.
16328
16329 Sat Oct 2 11:16:00 1999 Jim Kingdon <http://developer.redhat.com>
16330
16331 * extend.texi: Grammar fix in __extension__ text.
16332
16333 Sat Oct 2 11:06:31 1999 Richard Henderson <rth@cygnus.com>
16334
16335 * md.texi (define_peephole2): New section.
16336
16337 Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
16338
16339 * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
16340 (mov $-1 to or peepholer): Enable for pentium when optimizing for
16341 speed.
16342
16343 Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
16344
16345 * builtins.c (expand_builtin_strlen): Fix best mode searching loop.
16346
16347 Sat Oct 2 10:53:22 1999 Jan Hubicka <hubicka@freesoft.cz>
16348
16349 * i386.md (ffs expander): Emit Pentium friendly code for
16350 TARGET_PENTIUM.
16351
16352 Sat Oct 2 02:48:21 1999 Mark P. Mitchell <mark@codesourcery.com>
16353
16354 * tree.c (build): Don't look at TREE_SIDE_EFFECTS or TREE_RAISES
16355 for non-trees.
16356 (build1): Likewise.
16357
16358 Fri Oct 1 18:01:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16359
16360 * i386elf.h (TARGET_DEFAULT): Use symbolic constants.
16361
16362 Fri Oct 1 12:42:53 1999 Andreas Schwab <schwab@suse.de>
16363
16364 * config/m68k/m68k.c (use_return_insn): Return false if the pic
16365 register is in use.
16366
16367 Fri Oct 1 10:56:06 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16368
16369 * md.texi (No Constraints): Delete section.
16370 * Makefile.in (genattrtab.o): Don't depend on "insn-config.h".
16371 * final.c (final_scan_insn): We always have register constraints.
16372 * genattrtab.c: Don't include "insn-config.h".
16373 (write_attr_case): We always have register constraints.
16374 * genconfig.c (register_constraint_flag): Delete.
16375 (walk_insn_part): Don't check whether we have register constraints.
16376 (main): Don't write out "#define REGISTER_CONSTRAINTS".
16377 * genoutput.c (have_constraints): Delete.
16378 (main): Don't set it.
16379 (output_operand_data): We always have constraints.
16380 (scan_operands): Likewise.
16381 (compare_operands): Likewise.
16382 * local-alloc.c (block_alloc): We always have constraints.
16383 (requires_inout): Always compile this function.
16384 * recog.c (extract_insn): We always have constraints.
16385 (constrain_operands, reg_fits_class_p): Always compile these
16386 functions.
16387 * recog.h (struct recog_data): Delete non-REGISTER_CONSTRAINTS
16388 fields.
16389 (struct insn_operand_data): Likewise.
16390 * regclass.c (regclass): We always have constraints.
16391 (record_reg_classes, copy_cost, record_address_regs,
16392 auto_inc_dec_reg_p): Always compile these functions.
16393 * regmove.c (regmove_optimize): We always have constraints.
16394 * reload.c (find_reloads): Likewise.
16395 * reload1.c (reload): Likewise.
16396 (reload_cse_simplify_operands): Likewise.
16397 * i860.c (output_delay_insn): Likewise.
16398
16399 Thu Sep 30 23:04:41 1999 Mark P. Mitchell <mark@codesourcery.com>
16400
16401 * iris6.h (BUILD_VA_LIST_TYPE): Define.
16402
16403 Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16404
16405 * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
16406 for the va_list record.
16407
16408 Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
16409
16410 * i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
16411 prologues.
16412
16413 Thu Sep 30 18:31:36 1999 Jan Hubicka <hubicka@freesoft.cz>
16414
16415 * alias.c: Include insn-flags.h.
16416 * Makefile.in (alias.o): Update.
16417
16418 Thu Sep 30 18:21:30 1999 Jan Hubicka <hubicka@freesoft.cz>
16419
16420 * i386.c (ix86_expand_int_movcc): Convert LEU and GTU comparisons
16421 to LTU and GEU. Handle more cases using sbb.
16422
16423 Thu Sep 30 18:18:39 1999 Jan Hubicka <hubicka@freesoft.cz>
16424
16425 * i386.md (truncatexfdf splitters): Do not use subreg.
16426 (fop XFmode patterns): Fix mode in operand testing.
16427
16428 Thu Sep 30 18:04:13 1999 Richard Henderson <rth@cygnus.com>
16429
16430 * jump.c (jump_optimize_1): Amend last change to test only the
16431 form of the operand, not the insn.
16432
16433 * jump.c (jump_optimize_1) [conditional_move]: Use general_operand
16434 not register_operand to determine when B may need preloading.
16435
16436 Thu Sep 30 17:39:16 1999 Richard Henderson <rth@cygnus.com>
16437
16438 * alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
16439 (ffsdi2, extxl, insxh, mskxh): Add missing DImode to SET_SRC.
16440 (call-value patterns): Move to end of file.
16441 (*): Remove mode from label_ref in (pc) context.
16442 (movstrqi): Use memory not general_operand for BLKmode operands.
16443 (prologue_stack_probe_loop, builtin_longjmp): Add missing mode
16444 to register_operand operands.
16445 (peep2 patterns): Convert from commented-out peephole patterns.
16446
16447 Thu Sep 30 14:39:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16448
16449 * tree.h (enum built_in_function): Rename BUILT_IN_DWARF_REG_SIZE
16450 to BUILT_IN_INIT_DWARF_REG_SIZES.
16451 * builtins.c (expand_builtins, case BUILT_IN_INIT_DWARF_REG_SIZES):
16452 Renamed from BUILT_IN_DWARF_REG_SIZE; call
16453 expand_builtin_init_dwarf_reg_sizes.
16454 * c-decl.c (init_decl_processing): Replace __builtin_dwarf_reg_size
16455 with __builtin_init_dwarf_reg_size_table.
16456 * dwarf2out.c (struct reg_size_range): Delete.
16457 (expand_builtin_init_dwarf_reg_sizes): New function.
16458 (expand_builtin_dwarf_reg_size): Delete.
16459 * except.h (expand_builtin_init_dwarf_reg_sizes): Declare.
16460 (expand_builtin_dwarf_reg_size): Don't declare.
16461 * libgcc2.c (dwarf_reg_size_table_initialized): New.
16462 (dwarf_reg_size_table): New.
16463 (init_reg_size_table): New function.
16464 (copy_reg): Use dwarf_reg_size_table.
16465 (eh_context_initialize): Make sure dwarf_reg_size_table is initialized
16466 before use.
16467
16468 Thu Sep 30 05:40:34 1999 Richard Earnshaw <rearnsha@arm.com>
16469
16470 * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
16471 Correctly build argument list to constructor and destructor functions.
16472
16473 Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
16474
16475 * c-tree.h (warn_float_equal): Declare.
16476 * c-decl.c (warn_float_equal): Define.
16477 (c_decode_option): Recognize -W[no-]float-equal.
16478 * c-typeck.c (build_binary_op): Conditionally warn
16479 about equality tests of floating point types.
16480 * toplev.c (documented_lan_options): Add -W[no-]float-equal.
16481 * invoke.texi: Add docs for -Wfloat-equal warning.
16482
16483 Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
16484
16485 * h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
16486 generating RTL directly.
16487 * mips.h (INIT_TARGET_OPTABS): Likewise.
16488 * mn10200.h (INIT_TARGET_OPTABS): Likewise.
16489
16490 * expr.h (init_mov_optab): Delete declaration
16491
16492 * h8300.c (WORD_REG_USED): Update to avoid useless register
16493 saves in interrupt functions and functions which never return.
16494
16495 * cse.c (struct set): Delete inner_dest_loc field.
16496 (cse_insn): Remove assignments to inner_dest_loc field.
16497
16498 Wed Sep 29 16:06:20 1999 Richard Henderson <rth@cygnus.com>
16499
16500 * ggc-page.c: Don't include <unistd.h> etc taken care of
16501 by "system.h". Include <sys/mman.h> afterward.
16502
16503 Wed Sep 29 16:05:18 1999 Richard Henderson <rth@cygnus.com>
16504
16505 * rs6000.c (rs6000_encode_section_info): If ggc_p, use
16506 ggc_alloc_string.
16507
16508 Tue Sep 28 16:45:40 1999 David Edelsohn <edelsohn@gnu.org>
16509
16510 * xcoffout.c (xcoffout_declare_function): Add documentation.
16511 * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
16512 TARGET_64BIT. Compare constant to -1, not bit pattern.
16513 (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
16514 (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix
16515 gen_movsi typos.
16516
16517 Tue Sep 28 16:43:14 1999 Nick Clifton <nickc@cygnus.com>
16518
16519 * dwarf2out.c (add_abstract_origin_attribute): Abort if
16520 origin_die is NULL.
16521 (gen_inlined_enumeration_type_die): Do not abort if the type has
16522 not been writeen out.
16523 (gen_inlined_structure_type_die): Do not abort if the type has
16524 not been writeen out.
16525 (gen_inlined_union_type_die): Do not abort if the type has
16526 not been writeen out.
16527 (gen_tagged_type_instantiation_die): Do not abort if the type
16528 has not been written out.
16529
16530 Tue Sep 28 14:33:47 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16531
16532 * c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
16533 call it.
16534 * reg-stack.c (straighten_stack): Copy hard reg set with
16535 COPY_HARD_REG_SET.
16536
16537 Tue Sep 28 01:11:05 1999 Richard Henderson <rth@cygnus.com>
16538
16539 * builtins.c (stabilize_va_list): Stabilize array type va_list
16540 to a pointer type, not the base record type.
16541 (expand_builtin_va_copy): Dereference the pointers explicitly;
16542 use the correct size for the copy.
16543
16544 * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
16545 (rs6000_va_arg): Likewise.
16546
16547 Mon Sep 27 23:27:21 1999 Richard Henderson <rth@cygnus.com>
16548
16549 * rtl.h (struct rtx_def): Move gc_mark to align mode field.
16550
16551 Mon Sep 27 23:20:29 1999 Mark Mitchell <mark@codesourcery.com>
16552
16553 * tree.h (struct tree_decl): Use `bclass', not `class', in name of
16554 field.
16555 (DECL_BUILT_IN_CLASS): Adjust accordingly.
16556
16557 Mon Sep 27 23:03:16 1999 Richard Henderson <rth@cygnus.com>
16558
16559 * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
16560 (init_ggc): Use it instead of a constant.
16561 (ggc_collect): Bound allocated_last_gc by it.
16562
16563 Mon Sep 27 19:06:04 1999 Jeffrey A Law (law@cygnus.com)
16564
16565 * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
16566 with va_list.
16567
16568 Mon Sep 27 19:40:17 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
16569
16570 * configure.in (mips*el-*-openbsd*): Don't duplicate default settings.
16571 (mips*-*-openbsd*): Let big endian configuration be a fragment.
16572 * configure: Regen.
16573 * config/mips/openbsd.h: New, OpenBSD little endian target.
16574 * config/mips/openbsd-be.h: New, OpenBSD big endian target fragment.
16575 * config/mips/xm-openbsd.h: New, OpenBSD host.
16576
16577 Mon Sep 27 10:28:48 1999 Andreas Schwab <schwab@suse.de>
16578
16579 * config/m68k/m68k.c (output_function_prologue,
16580 output_function_epilogue): Use
16581 current_function_uses_pic_offset_table instead of regs_ever_live
16582 to decide whether to save/restore pic register.
16583 (legitimize_pic_address): Don't modify regs_ever_live any more.
16584
16585 Sun Sep 26 10:55:36 1999 Mark Mitchell <mark@codesourcery.com>
16586
16587 * function.h (struct function): Add x_dont_save_pending_sizes_p.
16588 * stor-layout.c (variable_size): Don't add sizes to the pending
16589 sizes list if x_dont_save_pending_sizes_p is set.
16590
16591 Sun Sep 26 16:36:52 1999 Robert Lipe (robertlipe@usa.net)
16592
16593 * config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
16594 for symbolic_operand().
16595 * config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.
16596
16597 Sun Sep 26 07:37:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16598
16599 * combine.c (gen_rtx_combine): Add missing call to va_end().
16600
16601 * final.c (asm_fprintf): Likewise.
16602
16603 * genattrtab.c (attr_rtx): Likewise.
16604
16605 Sat Sep 25 13:11:07 1999 Jeffrey A Law (law@cygnus.com)
16606
16607 * cse.c: Update comments.
16608 (cse_insn): When converting a conditional/computed jump into
16609 an unconditional jump, always make sure a BARRIER immediately
16610 follows the converted jump. Do not delete unreachable code.
16611 (cse_basic_block): Do not delete unreachable code.
16612 * toplev.c (rest_of_compilation): Move call to
16613 delete_trivially_dead_insns after the conditional call to
16614 jump_optimize.
16615
16616 Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16617
16618 * collect2.c (make_temp_file): Don't prototype.
16619
16620 * gcc.c (make_temp_file): Likewise.
16621
16622 * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
16623
16624 Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com>
16625
16626 * varasm.c (asm_emit_uninitialised): New function: Generate
16627 the assembler statements necessary to declare an uninitialised
16628 variable.
16629 (ASM_EMIT_LOCAL): New macro: Emit a local, uninitialised
16630 variable.
16631 (ASM_EMIT_BSS): New macro: Emit an entry in the bss section.
16632 (ASM_EMIT_COMMON): New macro: Emit an entry in the common
16633 section.
16634 (assemble_variable): Use asm_emit_uninitialised to emit an
16635 uninitialised variable.
16636
16637 Fri Sep 24 17:10:56 1999 Nick Clifton <nickc@cygnus.com>
16638
16639 * combine.c (simplify_comparison): Cope with downshifting a 32 bit
16640 constant on a 64 bit host. Patch supplied by Geoffrey Keating
16641 <geoffk@cygnus.com>.
16642
16643 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16644
16645 * builtins.c (expand_builtin): Use MD_EXPAND_BUILTIN if defined.
16646 * c-common.h (builtin_function): Don't declare.
16647
16648 * c-decl.c (duplicate_decls): Use DECL_BUILT_IN_CLASS rather than
16649 DECL_BUILT_IN.
16650 (pushdecl): Likewise.
16651 (finish_decl): Likewise.
16652 (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of type
16653 int. All callers changed.
16654 Set the builtin's DECL_BUILT_IN_CLASS.
16655 * tree.h (enum built_in_class): New.
16656 (enum built_in_function): Delete NOT_BUILT_IN.
16657 (DECL_FUNCTION_CODE): The corresponding field in tree_decl is now
16658 in a union.
16659 (DECL_SET_FUNCTION_CODE): Likewise.
16660 (DECL_BUILT_IN_CLASS): New macro.
16661 (DECL_BUILT_IN): Use DECL_BUILT_IN_CLASS.
16662 (struct tree_decl): Split builtin function code field into a
16663 struct.
16664 (builtin_function): Declare.
16665
16666 Fri Sep 24 01:45:05 1999 Mark Mitchell <mark@codesourcery.com>
16667
16668 * optabs.c (init_traps): Fix typo in last change.
16669
16670 Fri Sep 24 01:10:11 1999 Mark Mitchell <mark@codesourcery.com>
16671
16672 * toplev.c (rest_of_decl_compilation): Update comment.
16673
16674 Fri Sep 24 11:57:06 1999 Geoffrey Keating <geoffk@cygnus.com>
16675
16676 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
16677 in .sbss if appropriate.
16678 (EXTRA_SECTION_FUNCTIONS): Add sbss.
16679 (SBSS_SECTION_ASM_OP): New macro.
16680 * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
16681 (EXTRA_SECTIONS): Add in_sbss.
16682 * config/mips/mips.h: Prototype sbss_section.
16683
16684 Thu Sep 23 18:18:55 1999 Mark Mitchell <mark@codesourcery.com>
16685
16686 * stmt.c (expand_start_bindings): Don't allow cleanup instructions
16687 to disappear.
16688
16689 Thu Sep 23 18:07:01 1999 Mark Mitchell <mark@codesourcery.com>
16690
16691 * optabs.c (init_traps): Register trap_rtx as a GC root.
16692
16693 Thu Sep 23 17:41:47 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16694
16695 * config/mips/mips.c (function_arg_pass_by_reference): Define
16696 unconditionally, since it's called unconditionally.
16697
16698 Thu Sep 23 13:40:02 1999 Jason Merrill <jason@yorick.cygnus.com>
16699
16700 * toplev.c (documented_lang_options): Add -fshort-wchar.
16701 * c-decl.c (c_decode_option): Likewise.
16702 (init_decl_processing): If -fshort-wchar, use 'short unsigned int'
16703 for wchar_t.
16704 * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
16705 * gcc.c (default_compilers): If -fshort-wchar,
16706 override __WCHAR_TYPE__.
16707 * tm.texi (C Dialect Options): Add -fshort-wchar.
16708
16709 * dwarf2out.c (output_aranges): Use DW_AT_location to find the
16710 symbol for a variable.
16711
16712 * cpplib.h (CPP_PREPROCESSED): New macro.
16713 * cpplib.c (handle_directive): Don't complain about `# NUMBER' if
16714 we're seeing this input for a second time.
16715
16716 Thu Sep 23 12:54:49 1999 Alex Samuel <samuel@codesourcery.com>
16717
16718 * emit-rtl.c (init_emit_once): Initialize modes first.
16719
16720 Sun Sep 19 01:23:23 1999 Alex Samuel <samuel@codesourcery.com>
16721
16722 * config/i386/i386.c (pic_label_name): Change to char pointer.
16723 (global_offset_table): New variable.
16724 (load_pic_register): Fill global_offset_table if it hasn't
16725 already been done. Allocate pic_label_name dynamically.
16726 * ggc.h (empty_string): New variable.
16727 * ggc-simple.c (empty_string): Likewise.
16728 (init_ggc): Allocate empty_string and add as root.
16729 * stmt.c (digit_strings): New variable.
16730 (init_stmt): Add last_block_end_note as root. Allocate and
16731 initialize digit_strings.
16732 (expand_asm_operands): Use empty_string instead of string
16733 constant. Use digit_strings instead of string constants.
16734 * profile.c (init_arc_profiler): Allocate string with
16735 ggc_alloc_string instead of xmalloc.
16736 (output_func_start_profiler): Likewise.
16737 * c-typeck.c (digest_init): Check if init is error_mark_node.
16738
16739 Thu Sep 23 12:59:14 1999 Alex Samuel <samuel@codesourcery.com>
16740 Richard Henderson <rth@cygnus.com>
16741
16742 * ggc-page.c: New file.
16743 * Makefile.in (ggc-page.o): New.
16744
16745 Thu Sep 23 13:55:21 1999 Jeffrey A Law (law@cygnus.com)
16746
16747 * invoke.texi: Document -fdelete-null-pointer-checks
16748 * toplev.c (flag_delete_null_pointer_checks): New.
16749 (f_options): Add entry for -fdelete-null-pointer-checks.
16750 (rest_of_compilation): Conditionalize null pointer check
16751 elimination on flag_delete_null_pointer_checks.
16752 (main): If -O2 or greater, enable -fdelete-null-pointer-checks
16753
16754 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
16755
16756 * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
16757 copyright notice and special exception to GPL.
16758
16759 Thu Sep 23 13:40:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16760
16761 * abi64.h (mips_function_value): Add prototype arguments.
16762
16763 * mips-protos.h: New file with mips prototypes.
16764
16765 * mips.c: Include "tm_p.h".
16766 (mktemp, lookup_name): Add prototype arguments.
16767 (extern_list, string_constant, mips_fill_delay_slot,
16768 mips_output_external, mips_output_external_libcall,
16769 mips_output_filename, mips_declare_object, function_prologue,
16770 mips_expand_prologue, function_epilogue, mips16_constant,
16771 build_mips16_function_stub, mips_output_conditional_branch):
16772 Constify a char*.
16773 (mips_va_start): Remove unused variable `u'.
16774 (mips_va_arg): Cast value to unsigned when comparing against one.
16775 (trace): Delete.
16776 (save_restore_insns, mips_expand_prologue): Add missing arg in
16777 call to `large_int'.
16778
16779 * mips.h: Move prototypes to mips-protos.h.
16780 (data_section, memory_address_p, rdata_section,
16781 readonly_data_section, simple_epilogue_p, text_section): Delete
16782 prototypes delcared elsewhere.
16783 (mips_epilogue_delay_slots, print_options): Delete unused decls.
16784 (trace): Delete.
16785 (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.
16786
16787 * mips.md: Delete extra args in call to `mips_move_2words'.
16788
16789 * xm-iris6.h (alloca): Add prototype argument.
16790
16791 * genpeep.c: Include "tm_p.h" in generated output file.
16792
16793 Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
16794
16795 * basic-block.h (find_edge_index): Change parameters.
16796 * flow.c (verify_edge_list): Pass basic_block parameters to
16797 find_edge_index instead of integers.
16798
16799 Thu Sep 23 15:54:12 1999 Nick Clifton <nickc@cygnus.com>
16800
16801 * combine.c (simplify_comparison): Use an unsigned shift to adjust
16802 the constant.
16803
16804 Thu Sep 23 08:46:21 1999 Guy Harris <guy@netapp.com>
16805
16806 * gcc.1: Fix a formatting error.
16807
16808 Wed Sep 22 16:10:21 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
16809
16810 * install.texi (Configurations): Remove pyramid. Add fr30, i686,
16811 i786, mn10200, mn10300, pdp11, v850.
16812
16813 Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
16814
16815 * libgcc2.c (num_digits): Add prototype with
16816 __attribute__((const)).
16817 (__terminate): Add prototype.
16818
16819 Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
16820
16821 * builtins.c, dbxout.c, varasm.c: Include tm_p.h.
16822
16823 * alpha/alpha.c (print_operand): Fix type of `code'.
16824 (alpha_output_filename): Constify.
16825 * alpha/alpha.h: Move all function declarations ...
16826 * alpha/alpha-protos.h: ... here. New file.
16827 * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
16828 (SECTION_FUNCTION_TEMPLATE): Likewise.
16829
16830 Thu Sep 23 11:15:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16831
16832 * expmed.c (do_cmp_and_jump): Pass ccp_jump to can_compare_p.
16833 * expr.c (expand_expr): Likewise.
16834 (do_jump): Likewise.
16835 (do_store_flag): Pass ccp_store_flag to can_compare_p.
16836 * expr.h (enum optab_index): Add cbranch, cmov, cstore optabs and
16837 accessor macros.
16838 (enum can_compare_purpose): New.
16839 (can_compare_p): Adjust prototype.
16840 (prepare_cmp_insn, prepare_operand): Declare.
16841 * genopinit.c (optabs): Add cbranch_optab, cmov_optab, cstore_optab.
16842 * optabs.c (cmp_available_p): Deleted.
16843 (expand_abs): Pass ccp_jump to can_compare_p.
16844 (can_compare_p): New arg PURPOSE. Check for combined optabs.
16845 (prepare_cmp_insn): No longer static. Add arg PURPOSE.
16846 Call can_compare_p rather than cmp_available_p.
16847 (prepare_operand): No longer static.
16848 (emit_cmp_and_jump_insn): Check for and use cbranch patterns.
16849 (emit_cmp_and_jump_insns): Pass ccp_jump to prepare_cmp_insn.
16850 (expand_float): Fix a slightly broken emit_cmp_insn/emit_jump_insn
16851 sequence to use emit_cmp_and_jump_insns.
16852 (init_optabs): Initialize cbranch_optab, cmov_optab, cstore_optab.
16853
16854 Wed Sep 22 17:58:01 1999 Stan Cox <scox@cygnus.com>
16855
16856 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
16857 register offsets; let LEGITIMIZE_ADDRESS load it into a register.
16858 (LEGITIMIZE_ADDRESS): Use plus_constant to avoid
16859 (plus (reg) (const_int 0))
16860 * mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.
16861
16862 Wed Sep 22 17:55:31 1999 David Edelsohn <edelsohn@gnu.org>
16863
16864 * rs6000.c (expand_block_move): DImode loads and stores require
16865 word-aligned displacements. Increment address registers with
16866 adddi3 on 64-bit platform. Use TARGET_POWERPC64 not TARGET_64BIT.
16867
16868 Wed Sep 22 17:35:55 1999 Michael Meissner <meissner@cygnus.com>
16869
16870 * dwarf2out.c (base_type_die): Use the name __unknown__ if there
16871 is no name for the base type, rather than segfault. If we are
16872 writing out a complex integer type, use DW_ATE_lo_user.
16873
16874 * expr.c (emit_move_insn_1): If we are copying a complex that fits
16875 in one word or less (complex char, complex short, or on 64 bit
16876 systems complex float) to/from a hard register, copy it through
16877 memory instead of dying in gen_{real,imag}part. If we have a
16878 short complex type, prevent inlining since it allocates stack
16879 memory.
16880
16881 * tree.c (build_complex_type): If we are writing dwarf2 output,
16882 generate a name for complex integer types.
16883
16884 Wed Sep 22 11:34:08 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
16885
16886 * basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
16887 * flow.c (remove_edge): Remove extra whitespace.
16888 (remove_fake_edges): Fix comment.
16889 (add_noreturn_fake_exit_edges): Use the correct name.
16890
16891 Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
16892
16893 * Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
16894 (mostlyclean): Depend on INTL_MOSTLYCLEAN.
16895 (clean): Depend on INTL_CLEAN.
16896 (maintainer-clean): Adjust.
16897
16898 Wed Sep 22 10:18:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16899
16900 * configure.in (AC_PREREQ): Bump to 2.13.
16901 (AC_C_STRINGIZE): Call this instead of using a custom macro.
16902
16903 * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.
16904
16905 * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.
16906
16907 * acconfig.h (HAVE_CPP_STRINGIFY): Delete.
16908
16909 * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
16910 (HAVE_STRINGIZE): Define.
16911
16912 Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
16913
16914 * c-parse.in: save and restore warn_pointer_arith on __extension__
16915 along with pedantic.
16916 (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
16917 Set the type of extension to itype rather than $<itype>1 kludge.
16918 * extend.texi (Alternate Keywords): Adjust documentation.
16919 * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
16920
16921 Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
16922
16923 * pa.c, pa.h, pa.md: Support multiple assembler dialects in
16924 most assembler templates.
16925
16926 * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
16927 FP loads and stores.
16928 (following_call): Always return zero for the PA8000.
16929 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
16930 FP loads and stores.
16931 (LEGITIMIZE_RELOAD_ADDRESS): Similarly.
16932
16933 * pa.h (BRANCH_COST): Define.
16934
16935 * pa.md (return, return_internal): Use bve for PA2.0.
16936
16937 * pa.md (fused multiply): Add variants which reduce height for the
16938 fused multiply, but which still generate 2 insns.
16939 (fnegabs): Similarly.
16940
16941 * pa.md (subsi3): Turn into an expander. Create two anonymous
16942 patterns. One for PA2.0 one for PA1.x. Use mtsarcm for PA2.0.
16943 * pa.h (EXTRA_CONSTRAINT): Handle 'S'.
16944
16945 * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
16946 for TARGET_PA_20.
16947 (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
16948 code generation.
16949 (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
16950 (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.
16951
16952 * regclass.c (init_regs): Add "top_of_stack" as a garbage
16953 collection root.
16954
16955 * flow.c (record_active_eh_regions): Terminate loop after finding
16956 the last insn in the last basic block.
16957
16958 Wed Sep 22 20:25:00 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16959
16960 * config/c4x/c4x.md: Delete parallel instruction peepholes.
16961
16962 Wed Sep 22 19:59:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16963
16964 * config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
16965
16966 Wed Sep 22 19:56:25 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16967
16968 * config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
16969 splitting to not use output template.
16970
16971 Wed Sep 22 19:50:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16972
16973 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
16974 * config/c4x/c4x.c (c4x_va_start): New function.
16975
16976 Tue Sep 21 18:40:01 1999 Jan Hubicka <hubicka@freesoft.cz>
16977
16978 * genrecog.c (not_both_true): Handle correctly cases when called for
16979 tests with different positions in the insn.
16980
16981 Tue Sep 21 18:29:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16982
16983 * machmode.h (HOST_PTR_PRINTF): Move from here ...
16984
16985 * system.h (HOST_PTR_PRINTF): ... to here.
16986
16987 * mips-tfile.c: Don't include machmode.h.
16988
16989 * Makefile.in (MACHMODE_H): New variable. Update to use it.
16990 (mips-tfile.o): Don't depend on machmode.h.
16991
16992 Tue Sep 21 18:27:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16993
16994 * haifa-sched.c (sched_analyze): Rename local variable `region' to
16995 avoid conflicts with typedef struct `region' at the top level scope.
16996
16997 Tue Sep 21 14:14:50 1999 Richard Henderson <rth@cygnus.com>
16998
16999 * basic-block.h (basic_block): Add eh_beg, eh_end.
17000 * flow.c (entry_exit_blocks): Update.
17001 (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
17002 Call new functions.
17003 (find_basic_blocks_1): Don't record eh_list at each bb. Use
17004 lists.c functions to allocate insn lists.
17005 (make_edges): Use eh_beg+eh_end, not the lists. Split out EH
17006 edge creation ...
17007 (make_eh_edge): ... here. New.
17008 (move_stray_eh_region_notes): New.
17009 (record_active_eh_regions): New.
17010 (delete_unreachable_blocks): Split out block merging ...
17011 (try_merge_blocks): ... here. New.
17012 (merge_blocks_move_predecessor_nojumps): Remove edge arg.
17013 Dump debugging data.
17014 (merge_blocks_move_successor_nojumps): Likewise.
17015 (merge_blocks): Use eh_beg+eh_end to validate block movement.
17016
17017 Tue Sep 21 11:15:03 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
17018
17019 * extend.texi (Bound member functions): Document unbound pmf
17020 conversion.
17021
17022 Tue Sep 21 14:55:11 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
17023
17024 * flow.c (split_edge): Handle insertion on a fallthrough edge which
17025 has the EXIT_BLOCK as a dest.
17026
17027 Tue Sep 21 14:51:23 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
17028
17029 * flow.c (remove_edge): New function to remove an edge from the
17030 flow graph.
17031 (remove_fake_successors): New function to remove fake successor edges.
17032 (remove_fake_edges): New function to remove all fake edges from the
17033 flow graph.
17034 (add_fake_exit_edges): New function to add fake edges from all blocks
17035 with no successors to the exit block.
17036 * basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
17037 prototypes for new functions.
17038
17039 Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
17040
17041 * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
17042 Use Pmode to determine whether to output .dword or .word.
17043
17044 Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
17045
17046 * tree.c (built_in_filename): New variable.
17047 (BUILT_IN_FILENAME): New macro.
17048 (init_tree_codes): Allocate built_in_filename.
17049 (make_node): Use built_in_filename instead of string constant.
17050
17051 Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
17052
17053 * configure.in: Add fr30 target.
17054 * configure: Regenerate.
17055 * config/fr30: New directory.
17056 * config/fr30/crti.asm: New file.
17057 * config/fr30/fr30.c: New file.
17058 * config/fr30/crtn.asm: New file.
17059 * config/fr30/fr30.h: New file.
17060 * config/fr30/fr30.md: New file.
17061 * config/fr30/lib1funcs.asm: New file.
17062 * config/fr30/t-fr30: New file.
17063 * config/fr30/xm-fr30.h: New file.
17064
17065 Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
17066
17067 * flow.c (merge_blocks_move_successor_nojumps): Delete the
17068 BARRIER at the end of the successor, not the BARRIER before
17069 the successor.
17070
17071 * pa.c (pa_add_gc_roots): Fix thinko in last change.
17072
17073 Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
17074
17075 * stmt.c (any_pending_cleanups): Don't crash when
17076 current_function->stmt is unset.
17077
17078 Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17079
17080 * emit-rtl.c (init_emit_once): Initialize const_int_rtx before
17081 other initializations that may use it for relative offsets.
17082
17083 Mon Sep 20 21:43:25 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17084
17085 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
17086 (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
17087 * config/i386/sol2dbg.h: Removed.
17088 * config/i386/sol2gas.h: New file, to enable gas work-around.
17089 * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
17090 Don't use sol2dbg.h.
17091 * configure: Rebuilt.
17092
17093 Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
17094
17095 * invoke.texi (-fthis-is-variable): Remove documentation.
17096
17097 Mon Sep 20 12:59:16 1999 Richard Henderson <rth@cygnus.com>
17098
17099 * basic-block.h (compute_bb_for_insn): Declare.
17100 * flow.c (compute_bb_for_insn): Export. Don't accept the varray
17101 to use; set size of basic_block_for_insn directly.
17102 (find_basic_blocks): Update.
17103
17104 Mon Sep 20 15:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17105
17106 * flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
17107
17108 Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17109
17110 * crtstuff.c (ON_EXIT): Delete empty macro definition.
17111 (__do_global_ctors_aux): Call atexit(), not ON_EXIT().
17112
17113 Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
17114
17115 * c-decl.c (c_decode_option): Extend comment.
17116
17117 Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com>
17118
17119 * toplev.c (progname): Make 'const char *'
17120 (flag_print_mem): Move out of main.
17121 (version_flag): Move out of main.
17122 (filename): Move out of main.
17123 (debug_args): Remove g prefix from options.
17124 (documented_lang_options): Remove cpplib specific options.
17125 (display_help): Add g prefix to debug options.
17126 (check_lang_option): Delete this function.
17127 (decode_d_option): New function: Decode -d... option.
17128 (decode_f_option): New function: Decode -f... option.
17129 (decode_W_option): New function: Decode -W... option.
17130 (decode_g_option): New function: Decode -g... option.
17131 (independent_decode_option): New function: Decode a language
17132 independent command line option.
17133 (main): Invoke lang_decode_option and then
17134 independent_decode_option on each command line option in
17135 turn.
17136
17137 Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com)
17138
17139 Revert this change. Gavin's patch to operand_equal_p is a better fix.
17140 * fold-const.c (fold_range_test): Do not try to fold the range
17141 test if the rhs or lhs has side effects.
17142
17143 * basic-block.h (compute_flow_dominators): Declare.
17144
17145 * gcse.c (alloc_code_hoist_mem): New function.
17146 (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
17147 (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
17148 (hoist_code, one_code_hoisting_pass): Likewise.
17149 (gcse_main): If optimizing for size, then hoist expressions
17150 computed in multiple dominated basic blocks.
17151
17152 * gcse.c (invalid_nonnull_info): New function.
17153 (delete_null_pointer_checks): Likewise.
17154 * rtl.h (delete_null_pointer_checks): Declare.
17155 * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.
17156
17157 * flow.c (merge_blocks_move_predecessor_nojumps): New function.
17158 (merge-blocks_move_successor_nojumps): Likewise.
17159 (merge_blocks): Allow merging of some blocks, even if it requires
17160 physical movement of the blocks, but not if it requires new jumps.
17161
17162 * bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
17163 Callers and prototype changed.
17164 * bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
17165
17166 Mon Sep 20 06:56:32 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17167
17168 * config/sparc/sol2.h (LINK_SPEC): Avoid the duplication of
17169 -YP when both -p and -pg are present. From i386/sol2.h.
17170
17171 Mon Sep 20 10:49:05 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17172
17173 * Makefile.in (distclean): Delete tm_p.h.
17174 * configure.in: Create a new file, "tm_p.h", from a list in
17175 "tm_p_file". For ix86 systems, set up "tm_p_file" to include
17176 "i386/i386-protos.h".
17177
17178 * alias.c: Include "tm_p.h".
17179 * c-typeck.c: Likewise.
17180 * calls.c: Likewise.
17181 * cse.c: Likewise.
17182 * emit-rtl.c: Likewise.
17183 * explow.c: Likewise.
17184 * expmed.c: Likewise.
17185 * expr.c: Likewise.
17186 * final.c: Likewise.
17187 * flow.c: Likewise.
17188 * fold-const.c: Likewise.
17189 * function.c: Likewise.
17190 * gcse.c: Likewise.
17191 * global.c: Likewise.
17192 * haifa-sched.c: Likewise.
17193 * integrate.c: Likewise.
17194 * jump.c: Likewise.
17195 * local-alloc.c: Likewise.
17196 * loop.c: Likewise.
17197 * optabs.c: Likewise.
17198 * recog.c: Likewise.
17199 * reg-stack.c: Likewise.
17200 * regclass.c: Likewise.
17201 * regmove.c: Likewise.
17202 * reload.c: Likewise.
17203 * reload1.c: Likewise.
17204 * reorg.c: Likewise.
17205 * resource.c: Likewise.
17206 * stmt.c: Likewise.
17207 * stor-layout.c: Likewise.
17208 * toplev.c: Likewise.
17209 * tree.c: Likewise.
17210 * unroll.c: Likewise.
17211 * genattrtab.c (main): Make generated file include "tm_p.h".
17212 * genemit.c (main): Likewise.
17213 * genoutput.c (main): Likewise.
17214 * genrecog.c (main): Likewise.
17215
17216 * i386.h: Delete all prototypes.
17217 * i386.c: Include "tm_p.h".
17218 (ix86_attr_length_default): Call constant_call_address_operand
17219 with correct number of arguments.
17220 * i386-protos.h: New file.
17221 * i386.md (unnamed patterns): Call constant_call_address_operand
17222 with correct number of arguments.
17223 (exception_receiver): Call load_pic_register with correct number
17224 of arguments.
17225
17226 Sun Sep 19 14:18:39 1999 Richard Henderson <rth@cygnus.com>
17227
17228 * c-pragma.c (mark_align_stack): Dereference the void* properly.
17229
17230 Sun Sep 19 09:03:40 1999 Mark Mitchell <mark@codesourcery.com>
17231
17232 * rtl.h (insns_safe_to_move_p): New function.
17233 * loop.c (find_and_verify_loops): Use it.
17234 * rtlanal.c (insns_safe_to_move_p): Define it.
17235
17236 Sun Sep 19 02:54:33 1999 Richard Henderson <rth@cygnus.com>
17237
17238 * c-pragma.c: Include ggc.h.
17239 * Makefile.in (c-pragma.o): Update.
17240
17241 Sat Sep 18 16:01:18 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17242
17243 * config/i386/sol2.h (CPP_SPEC): Support -[p]threads
17244 (LIB_SPEC): Likewise.
17245 (LINK_SPEC): Do not assert -z text with -shared -mimpure-text.
17246 Reindent -YP/-p/-pg.
17247 Copied from config/sparc/sol2.h.
17248
17249 Sat Sep 18 11:52:43 1999 Richard Henderson <rth@cygnus.com>
17250
17251 * c-pragma.c (mark_align_stack): New.
17252 (init_pragma): New.
17253 * c-pragma.h (init_pragma): Declare it.
17254 * c-lex.c (init_parse): Call it.
17255
17256 Sat Sep 18 15:20:38 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17257
17258 * configure.in: Pick up thread library on Solaris/x86 just
17259 like on Solaris/sparc.
17260 * configure: Rebuilt.
17261
17262 Sat Sep 18 11:15:58 1999 Alex Samuel <samuel@codesourcery.com>
17263
17264 * rtl.h (global_rtx_index): New enum.
17265 (global_rtl): Change to array of rtx.
17266 (pc_rtx, cc0_rtx): Redefine accordingly.
17267 (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
17268 (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
17269 (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
17270 (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
17271 (const_int_rtx): Change to array of rtx.
17272 (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
17273 accordingly.
17274 * emit-rtl.c (global_rtl): Change to array of rtx.
17275 (const_int_rtx): Change to aray of rtx.
17276 (gen_rtx_CONST_INT): Redefine accordingly.
17277 (init_emit_once): Allocate and initialize global_rtl. Likewise
17278 for const_int_rtx. Add both as GC roots.
17279 * genattrtab.c (global_rtl): Update declaration.
17280
17281 1999-09-17 Ulrich Drepper <drepper@cygnus.com>
17282
17283 * Makefile (USER_H): Add iso646.h back.
17284
17285 Sat Sep 18 01:07:21 1999 Jeffrey A Law (law@cygnus.com)
17286
17287 * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
17288 zapping the LOG_LINKS of sched_before_next_call.
17289
17290 * pa.h (INSN_SETS_ARE_DELAYED): Delete.
17291 * pa.c (insn_refs_are_delayed): Renamed from
17292 insn_sets_and_refs_are_delayed.
17293
17294 Fri Sep 17 15:19:01 1999 Mark Mitchell <mark@codesourcery.com>
17295
17296 * functiion.h (struct function): Add x_whole_function_mode_p.
17297 (retrofit_block): Declare.
17298 * function.c (retrofit_block): New function.
17299 (identify_blocks): Add assertions. Allow an incomplete set of
17300 block notes if we're still generating code for the function.
17301 * integrate.c: Include loop.h.
17302 (expand_inline_function): Call find_loop_tree_blocks to map block
17303 notes to blocks when in whole-function mode. Use retrofit_block
17304 to insert new BLOCKs for the inlined function, rather than
17305 insert_block.
17306 * stmt.c (expand_fixup): Likewise. Don't use pushlevel/polevel.
17307 * Makefile.in (integrate.o): Depend on loop.h.
17308
17309 Fri Sep 17 15:11:20 1999 Mark Mitchell <mark@codesourcery.com>
17310
17311 * tree.h (warn_about_unused_variables): Declare.
17312 * stmt.c (warn_about_unused_variables): New function, split out
17313 from ...
17314 (expand_end_bindings): Here.
17315
17316 Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
17317
17318 * stmt.c (preserve_subexpressions_p): Don't crash when
17319 current_function->stmt is unset.
17320
17321 Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
17322
17323 * stmt.c (expand_start_bindings): Allow callers to pass a flag
17324 indicating that no NOTE_INSN_BLOCK_BEG note is required.
17325 (expand_start_target_temps): Use it.
17326 * except.c (expand_eh_region_start_for_decl): Likewise.
17327 * expr.c (expand_expr): Likewise.
17328
17329 Fri Sep 17 15:05:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
17330
17331 * fold-const.c (operand_equal_p): Pay attention to side effects.
17332
17333 Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com>
17334
17335 * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
17336 * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
17337
17338 * tlink.c (scan_linker_output): Look for keywords before accepting
17339 a mangled name in quotes.
17340
17341 Thu Sep 16 16:47:08 1999 Richard Henderson <rth@cygnus.com>
17342
17343 * alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
17344 * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.
17345
17346 Thu Sep 16 16:35:41 1999 Richard Henderson <rth@cygnus.com>
17347
17348 * alpha.md: Revert Thu Nov 26 change that came in through the
17349 last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
17350 Avoid earlyclobber when possible.
17351
17352 Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17353
17354 * libgcc2.c (__do_global_ctors): Call atexit with one arg.
17355
17356 * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
17357 Define HAVE_ON_EXIT.
17358
17359 Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17360
17361 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
17362 CTYPE_CONV in all ctype macros.
17363
17364 * cccp.c (initialize_char_syntax): Use uppercase ctype macro
17365 from system.h.
17366
17367 * cexp.y (initialize_random_junk): Likewise.
17368
17369 * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
17370
17371 * i370.c (handle_pragma): Likewise.
17372
17373 * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
17374
17375 * v850.c (override_options): Likewise.
17376
17377 * doprint.c (_doprnt): Likewise.
17378
17379 * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
17380 Likewise.
17381
17382 * fixinc/server.c (load_data): Likewise.
17383
17384 * fold-const.c (real_hex_to_f): Likewise.
17385
17386 * genattr.c (write_upcase, gen_attr): Likewise.
17387
17388 * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
17389 write_upcase): Likewise.
17390
17391 * genemit.c (print_code): Likewise.
17392
17393 * genopinit.c (gen_insn): Likewise.
17394
17395 * genpeep.c (print_code): Likewise.
17396
17397 * genrecog.c (print_code): Likewise.
17398
17399 * optabs.c (init_libfuncs): Likewise.
17400
17401 Thu Sep 16 14:03:32 1999 Mark Mitchell <mark@codesourcery.com>
17402
17403 * haifa-sched.c (sched_analyze): Keep the list of notes organized
17404 in pairs.
17405 (reemit_notes): Likewise.
17406
17407 Thu Sep 16 11:50:52 1999 Alex Samuel <samuel@codesourcery.com>
17408
17409 * ggc.h (ggc_root): Move to ggc-common.c.
17410 (roots): Remove.
17411 (ggc_mark_rtx, ggc_mark_tree): Change to macro.
17412 (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
17413 (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
17414 (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
17415 * ggc-common.c (ggc_root): Move from ggc.h.
17416 (roots): Declare, static.
17417 (ggc_mark_rtx, ggc_mark_tree): Renamed to...
17418 (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
17419 null or check/set mark bit.
17420 (ggc_mark_roots): New.
17421 * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
17422
17423 Thu Sep 16 11:37:32 1999 Richard Henderson <rth@cygnus.com>
17424
17425 * m32r.c: Include toplev.h.
17426 (*): Add ATTRIBUTE_UNUSED as needed to arguments.
17427 (gen_compare): Rename swap_p to must_swap to match uses.
17428 Add default abort case.
17429 (m32r_output_function_epilogue): Remove unused variables.
17430 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
17431 * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
17432 define to empty parameter list. Update all uses.
17433 (predicate decls): Use enum machine_mode not int.
17434 * m32r.md (movsi): Call abort, not fatal_insn.
17435 (zero_branch_insn, rev_zero_branch_insn): Add default abort case.
17436
17437 1999-09-14 Andrew Haley <aph@cygnus.com>
17438
17439 * config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
17440 use $0 instead of 0.
17441
17442 Thu Sep 16 10:53:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17443
17444 * reload1.c (order_regs_for_reload): Move hard_reg_n_uses
17445 computation out of loop over hard regs.
17446
17447 Wed Sep 15 21:37:06 1999 Mark Mitchell <mark@codesourcery.com>
17448
17449 * function.c (identify_blocks): Don't shadow a variable in an
17450 outer scope.
17451 * integrate.c (integrate_decl_tree): Don't use pushlevel,
17452 pushdecl, or poplevel to build up the new BLOCK tree.
17453 (expand_inline_function): Likewise.
17454 (integrate_parm_decls): Likewise.
17455
17456 Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
17457
17458 * c-typeck.c (qualify_type): Merge qualifiers from both types.
17459
17460 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
17461
17462 * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
17463 * invoke.texi: Document this change.
17464
17465 Wed Sep 15 17:56:00 1999 Richard Henderson <rth@cygnus.com>
17466
17467 * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
17468 Free the struct.
17469 (mark_emit_status): Renamed from mark_emit_state.
17470 * except.c (mark_eh_status): Renamed from mark_eh_state.
17471 Check not null before marking.
17472 (free_eh_status): New.
17473 * expr.c (mark_expr_status, free_expr_status): New.
17474 * function.c (free_machine_status): New.
17475 (free_after_parsing): New.
17476 (free_after_compilation): Move bits to free_after_parsing; call
17477 free_eh_status, free_expr_status; zero the marked members of the
17478 function state.
17479 (prepare_function_start): No can_garbage_collect.
17480 Call init_eh_for_function.
17481 (expand_dummy_function_end): Free up current_function state.
17482 (mark_function_status): Renamed from mark_function_state.
17483 (mark_function_chain): No can_garbage_collect. Call mark_expr_status.
17484 * function.h (struct function): No can_garbage_collect.
17485 (free_machine_status, free_after_parsing): Declare.
17486 (free_eh_status, free_expr_status): Declare.
17487 * ggc.h (mark_expr_status): Declare.
17488 * stmt.c (free_stmt_status): Free the struct.
17489 (mark_stmt_status): Renamed from mark_stmt_state.
17490 (init_stmt): Don't call init_eh.
17491 (init_stmt_for_function): Don't call init_eh_for_function.
17492 * toplev.c (compile_file): Call init_eh.
17493 (rest_of_compilation): Free basic block info before ggc_collect.
17494 Call free_after_parsing; conditionally call free_after_compilation.
17495 * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
17496 Check not null before marking.
17497 (free_varasm_status): Don't check DECL_DEFER_OUTPUT. Free the struct.
17498
17499 Wed Sep 15 17:53:16 1999 Richard Henderson <rth@cygnus.com>
17500
17501 * c-lex.c (yylex): Initialize warn.
17502
17503 Wed Sep 15 18:35:38 1999 Jeffrey A Law (law@cygnus.com)
17504
17505 * pa.c (emit_move_sequence): Properly set the mode of the scratch
17506 register when performing secondary reloads for the SAR register.
17507
17508 Wed Sep 15 15:51:52 1999 Mark Mitchell <mark@codesourcery.com>
17509
17510 * rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
17511 (NOTE_BLOCK): New macro.
17512 (NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
17513 * function.h (identify_blocks): Change prototype.
17514 * function.c (identify_blocks): Simplify.
17515 (reorder_blocks): Likewise.
17516 * ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
17517 NOTE_INSN_BLOCK_{BEG,END}.
17518 * haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
17519 the list of saved notes if the note isn't a
17520 NOTE_INSN_BLOCK_{BEG,END}.
17521 (move_insn1): Use NOTE_EH_HANDLER in comment, rather than
17522 NOTE_BLOCK_NUMBER.
17523 (reemit_notes): Adjust recreation of notes to reflect new saved
17524 note structure.
17525 * print-rtl.c (print_rtx): Print the address of the BLOCK when
17526 printing a block note.
17527 * stmt.c (block_vector): Remove.
17528 (find_loop_tree_blocks): Simplify.
17529 (unroll_block_trees): Likewise.
17530 * tree.h (reorder_block): Change prototype.
17531
17532 Wed Sep 15 14:39:35 1999 Jason Merrill <jason@yorick.cygnus.com>
17533
17534 * gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT.
17535 * libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
17536 (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
17537 (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl.
17538 (atexit, exit): Simplify.
17539 * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT.
17540 * config/lots: Remove defns of HAVE_ATEXIT.
17541
17542 Wed Sep 15 10:25:12 1999 Mark Mitchell <mark@codesourcery.com>
17543
17544 * calls.c (precompute_arguments): Fix typo in comment.
17545 * expr.c (preexpand_calls): Don't preexpand the cleanup in a
17546 TARGET_EXPR.
17547
17548 Wed Sep 15 09:59:59 1999 Mark Mitchell <mark@codesourcery.com>
17549
17550 * dsp16xx.c (override_options): Fix typos in GC root registration.
17551
17552 Wed Sep 15 15:23:28 1999 Philip Blundell <pb@nexus.co.uk>
17553
17554 * config/arm/linux-elf.h (MAKE_DECL_ONE_ONLY): Copy definition
17555 from config/svr4.h.
17556 (UNIQUE_SECTION_P, UNIQUE_SECTION): Likewise.
17557 (FUNCTION_PROFILER): Redefine appropriately for Linux.
17558 (CC1_SPEC): Likewise.
17559
17560 Wed Sep 15 10:09:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17561
17562 * genattr.c (main): Add extern prototype. Call return, not exit.
17563 * genattrtab.c (main): Likewise.
17564 * gencheck.c (main): Likewise.
17565 * gencodes.c (main): Likewise.
17566 * genconfig.c (main): Likewise.
17567 * genemit.c (main): Likewise.
17568 * genextract.c (main): Likewise.
17569 * genflags.c (main): Likewise.
17570 * gengenrtl.c (main): Likewise.
17571 * genopinit.c (main): Likewise.
17572 * genoutput.c (main): Likewise.
17573 * genpeep.c (main): Likewise.
17574 * genrecog.c (main): Likewise.
17575
17576 * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
17577 * genattrtab.c (get_insn_name): Likewise.
17578 * gencodes.c (get_insn_name): Likewise.
17579 * genconfig.c (get_insn_name): Likewise.
17580 * genemit.c (get_insn_name): Likewise.
17581 * genextract.c (get_insn_name): Likewise.
17582 * genflags.c (get_insn_name): Likewise.
17583 * genopinit.c (get_insn_name): Likewise.
17584 * genpeep.c (get_insn_name): Likewise.
17585
17586 * gencheck.c (usage): Add static prototype.
17587 * genextract.c (print_path): Constify a char*.
17588 * genopinit.c (optabs): Likewise.
17589 * genoutput.c (operand_data, data, output_predicate_decls,
17590 compare_operands): Likewise.
17591 * genrecog.c (write_tree): Add default case in switch.
17592
17593 Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17594
17595 * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
17596
17597 * print-rtl.c (get_insn_name): Remove prototype.
17598
17599 * toplev.h (progname): Declare const.
17600
17601 * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
17602 init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
17603 dump_sched_info, dump_local_alloc, regset_release_memory,
17604 print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
17605 error_with_file_and_line, error_with_decl, error_for_asm, error,
17606 fatal, warning_with_file_and_line, warning_with_decl, warning,
17607 pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
17608 Remove redundant prototypes.
17609
17610 (notice, check_lang_option, report_file_and_line, vnotice,
17611 mark_file_stack): Add static prototype.
17612 (set_fatal_function): Add prototype.
17613 (vnotice, report_file_and_line, set_fatal_function,
17614 check_lang_option): Constify a char*.
17615 (main): Prototype. Call return, not exit.
17616
17617 Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17618
17619 * aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
17620
17621 * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
17622
17623 * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
17624
17625 * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
17626
17627 Wed Sep 15 11:04:43 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17628
17629 * function.c (assign_parms): Delete arg SECOND_TIME. Don't test it,
17630 behave as if it's zero in all cases.
17631 (expand_function_start): Adjust call to assign_parms.
17632 * tree.h (assign_parms): Adjust prototype.
17633 * objc/objc-act.c (hack_method_prototype): Adjust call to
17634 assign_parms.
17635
17636 Tue Sep 14 21:47:06 1999 Jeffrey A Law (law@cygnus.com)
17637
17638 * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
17639 arg_pointer_rtx fixed if the argument pointer register is
17640 not fixed.
17641 (NONZERO_BASE_PLUS_P): Likewise.
17642
17643 Tue Sep 14 20:26:02 1999 Richard Henderson <rth@cygnus.com>
17644
17645 * rtl.def (match_insn, match_insn2): Remove match_insn; rename
17646 match_insn2 to match_insn.
17647 * genrecog.c (add_to_sequence): Rename MATCH_INSN2.
17648
17649 Tue Sep 14 20:10:29 1999 Richard Henderson <rth@cygnus.com>
17650
17651 * Makefile.in (USER_H): Remove va-foo.h.
17652
17653 * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
17654 va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
17655 va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
17656 va-spur.h,va-v850.h}: Remove.
17657
17658 Tue Sep 14 19:43:16 1999 Richard Henderson <rth@cygnus.com>
17659
17660 * sparc/sparc.md (eligible_for_return_delay): New attribute.
17661 (in_return_delay): Use it instead of match_insn.
17662
17663 Tue Sep 14 23:05:37 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17664
17665 * config/alpha/va_list.h (va-alpha.h): Do not include.
17666 (__gnuc_va_list): Typedef as in varargs.h.
17667
17668 Tue Sep 14 18:14:03 1999 Richard Henderson <rth@cygnus.com>
17669
17670 * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
17671 DECL_LIVE_RANGE_RTL.
17672
17673 Tue Sep 14 16:47:08 1999 Mark Mitchell <mark@codesourcery.com>
17674
17675 * except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
17676 not NOTE_BLOCK_NUMBER.
17677 (expand_eh_region_end): Likewise.
17678 (find_exception_handler_labels): Likewise.
17679 (scan_region): Likewise.
17680 (exception_optimize): Likewise.
17681 (update_rethrow_references): Likewise.
17682 (set_insn_eh_region): Likewise.
17683 * final.c (final_scan_insn): Likewise.
17684 * flow.c (make_edges): Likewise.
17685 * integrate.c (expand_inline_function): Likewise.
17686 * print-rtl.c (print_rtx): Likewise.
17687
17688 Tue Sep 14 16:30:16 1999 Richard Henderson <rth@cygnus.com>
17689
17690 * ginclude/stdarg.h, ginclude/varargs.h: Implement in
17691 terms of builtin functions and types.
17692
17693 * mips.c (mips_build_va_list): New.
17694 (mips_va_start, mips_va_arg): New.
17695 * mips.h (BUILD_VA_LIST_TYPE): New.
17696 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
17697
17698 * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
17699 (sh_build_va_list, sh_va_start, sh_va_arg): New.
17700 * sh.h (BUILD_VA_LIST_TYPE): New.
17701 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
17702
17703 Tue Sep 14 16:20:24 1999 Richard Henderson <rth@cygnus.com>
17704
17705 * recog.h (struct recog_data): Make dup_num, operand_address_p,
17706 n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
17707 (struct insn_data): Likewise with n_operands, n_dups,
17708 n_alternatives, output_format.
17709 * regclass.c (scan_one_insn): Cast n_operands to int before
17710 arithmetic inside comparison.
17711
17712 Tue Sep 14 15:13:36 1999 Richard Henderson <rth@cygnus.com>
17713
17714 * toplev.c (compile_function): Unconditionally emit nop.
17715
17716 Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17717
17718 * haifa-sched.c (actual_hazard): Move declaration of variable
17719 `this_cost' into the scope where it is used.
17720
17721 Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17722
17723 * c-pragma.c (handle_pragma_token): Wrap variables `name' and
17724 `value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
17725 HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
17726
17727 * genrecog.c (make_insn_sequence): Call memset, not bzero.
17728
17729 * jump.c (find_insert_position): Don't declare or define unless
17730 !HAVE_conditional_arithmetic.
17731 (returnjump_p_1, delete_prior_computation): Add static prototypes.
17732
17733 * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
17734
17735 * recog.c (offsettable_address_p): Prototype function pointer.
17736 (preprocess_constraints): Call memset, not bzero.
17737
17738 * tree.c (tree_node_kind_names): Constify a char*. Make static.
17739 (gcc_obstack_init): Don't declare.
17740 (fix_sizetype): Add static prototype.
17741 (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
17742 (tree_cons): Call memset, not bzero.
17743
17744 * varasm.c (remove_from_pending_weak_list): Wrap declaration and
17745 definition in macro ASM_WEAKEN_LABEL.
17746 (mark_const_hash_entry): Add static prototype.
17747
17748 Tue Sep 14 12:22:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17749
17750 * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
17751
17752 * unroll.c (find_common_reg_term, subtract_reg_term,
17753 loop_find_equiv_value): Add static prototypes.
17754 (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
17755 (copy_loop_body): Remove unreachable break statement.
17756
17757 * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
17758
17759 * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
17760
17761 Tue Sep 14 15:28:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17762
17763 Undo some changes from the gcc2 merge:
17764 * rtl.def (CONSTANT_P_RTX): Fix the comment for this rtx code.
17765 * emit-rtl.c (gen_rtx_REG): Don't test special reg rtx's for null
17766 pointers.
17767
17768 Undo this change:
17769 Sat Oct 3 07:20:28 1998 Stephen L Moshier <moshier@world.std.com>
17770 * emit-rtl.c (gen_lowpart_common): Disable optimization of
17771 initialized float-int union if the value is a NaN.
17772
17773 Tue Sep 14 04:03:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
17774
17775 * gthr-win32.h: New file.
17776
17777 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
17778 shared as a valid attribute.
17779 * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
17780 * extend.texi: Document `shared' variable attribute.
17781
17782 Tue Sep 14 04:01:46 1999 Loren Rittle <ljrittle@acm.org>
17783
17784 * configure.in: Handle --enable-threads on FreeBSD.
17785 * configure: Rebuit.
17786
17787 Tue Sep 14 03:58:44 1999 Andreas Jaeger <aj@arthur.rhein-neckar.de>
17788
17789 * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
17790 thread support.
17791 * configure: Rebuilt.
17792
17793 Tue Sep 14 03:47:23 1999 Joel Sherrill <joel@OARcorp.com>
17794 Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
17795 Rosimildo DaSilva <rdasilva@connecttel.com>
17796
17797 * configure.in (m68k-*-rtemscoff*): Added.
17798 * configure.in (mips64orion-*-rtems*): Converted to ELF.
17799 * configure.in (sparc-*-rtemsaout*): Added as alias for old
17800 sparc-rtems configuration.
17801 * configure.in (sparc-*-rtemself*): Added.
17802 * configure.in (sparc-*-rtems*): Now ELF not a.out.
17803 * config/i386/rtems.h: Added comment.
17804 * config/sparc/rtemself.h: New file.
17805
17806 * configure.in (m68k-rtemself): Added.
17807 * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
17808 and DWARF_DEBUGGING_INFO.
17809 * config/m68k/crti.s: New file.
17810 * config/m68k/crtn.s: New file.
17811 * config/m68k/t-crtstuff: New file.
17812 * config/m68k/rtemself.h: New file.
17813
17814 * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
17815 global ctor/dtor and C++ exception handling.
17816 * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
17817 for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
17818 ENDFILE_SPEC.
17819 * config/i386/t-rtems-i386: New File.
17820
17821 Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
17822
17823 * stmt.c (expand_end_case): Return right away if the case stack is
17824 empty.
17825
17826 Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
17827
17828 * Makefile.in (version.c): Remove rule incorrectly brought in from
17829 the gcc2 merge.
17830
17831 Tue Sep 14 01:42:27 1999 Marc Espie <espie@cvs.openbsd.org>
17832
17833 * Makefile.in: Prepend $(SHELL) to move-if-change calls.
17834 * msdos/top.sed: Take into account a prepended $(SHELL) to
17835 move-if-change.
17836 * winnt/config-nt.sed: Likewise. Kill bogus substitution.
17837
17838 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
17839
17840 Tue Sep 14 01:38:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17841
17842 * regmove.c (fixup_match_1): Don't change an unchanging register.
17843 (stable_but_for_p): Renamed to:
17844 (stable_and_no_regs_but_for_p). Reject unchanging registers too.
17845 Changed all callers.
17846
17847 Tue Sep 14 01:33:15 1999 Andreas Schwab <schwab@suse.de>
17848
17849 * loop.c (strength_reduce): Don't call reg_used_between_p if the
17850 insn from BL2 is after the insn from BL.
17851
17852 Mon Sep 13 21:06:01 1999 Richard Henderson <rth@cygnus.com>
17853
17854 * recog.h (INSN_OUTPUT_FORMAT_*): New.
17855 (struct insn_data): Merge `template' and `outfun' into `output'.
17856 Add `output_format'.
17857 * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
17858 (struct data): Remove `outfun'; add `output_format'.
17859 (name_for_index): Remove declaration.
17860 (output_insn_data): Handle output formats.
17861 (process_template): Emit the bare array for @.
17862 (gen_expand, gen_split): Set output_format to NONE.
17863 * output.h (get_insn_template): Declare.
17864 * final.c (get_insn_template): New.
17865 (final_scan_insn): Use it.
17866 * toplev.c (compile_file): Likewise.
17867
17868 * c4x/c4x.c (c4x_process_after_reload): Likewise.
17869 * i860/i860.c (output_delayed_branch): Likewise.
17870 (output_delay_insn): Likewise.
17871
17872 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17873
17874 * rtl.c (obstack_alloc_rtx): Removed.
17875
17876 1999-09-13 17:03 -0700 Zack Weinberg <zack@bitmover.com>
17877
17878 * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
17879
17880 Mon Sep 13 15:21:46 1999 Richard Henderson <rth@cygnus.com>
17881
17882 * i386.c (call_insn_operand): Reject const_int.
17883 (expander_call_insn_operand): Use call_insn_operand.
17884
17885 Mon Sep 13 17:44:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17886
17887 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
17888
17889 1999-09-13 12:18 -0700 Zack Weinberg <zack@bitmover.com>
17890
17891 * config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
17892 Use DImode operation.
17893
17894 1999-09-13 12:13 -0700 Zack Weinberg <zack@bitmover.com>
17895
17896 * gcc.c: Include sys/resource.h.
17897 (report_times): New flag.
17898 (execute): If report_times is set, calculate and report the
17899 CPU time consumed by each subprocess.
17900
17901 (rus, prus): New globals.
17902 (option_map): Add --time.
17903 (display_help): Document -time.
17904 (process_command): Set report_times if -time is given.
17905 Turn off -pipe if -time is given.
17906
17907 * invoke.texi: Document new option -time.
17908
17909 * configure.in: Check for getrusage. Check if we have to
17910 prototype getrusage.
17911 * acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
17912 * configure: Regenerate.
17913 * config.in: Regenerate.
17914
17915 Mon Sep 13 12:57:06 1999 Dave Brolley <brolley@cygnus.com>
17916
17917 * cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
17918 fields.
17919
17920 Mon Sep 13 10:01:33 1999 Nick Clifton <nickc@cygnus.com>
17921
17922 * config/fp-bit.c: Define L_thenan_sf or L_thenan_df (as
17923 appropriate) if FINE_GRAINED_LIBRARIES is not defined.
17924 (nan): Return _thenan_sf or _thenan_df as appropriate.
17925 (L_thenan_sf): Define _thenan_sf.
17926 (L_thenan_df): Define _thenan_df.
17927
17928 * Makefile.in (FPBIT_FUNCS): Add _thenan_sf.
17929 (DPBIT_FUNCS): Add _thenan_df.
17930
17931 Mon Sep 13 09:38:53 1999 Andreas Schwab <schwab@suse.de>
17932
17933 * tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and
17934 TYPE_SIZE_UNIT.
17935
17936 Sun Sep 12 23:28:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17937
17938 * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.
17939
17940 * gcc.h: New file.
17941 (lang_specific_driver): Don't take a function pointer parameter.
17942 All callers changed.
17943
17944 * gcc.c: Include gcc.h.
17945 (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
17946 lang_specific_extra_outfiles, fatal): Don't declare.
17947 (multilib_defaults_raw): Constify.
17948 (read_specs): Call memset, rather than bzero.
17949 (main): Call return, not exit.
17950 (lookup_compiler): Call memcpy, not bcopy.
17951 (fatal): Make extern.
17952
17953 * cppspec.c: Include gcc.h.
17954 (lang_specific_driver): Initialize variable `quote'. Constify a
17955 char*. All calls to the function pointer parameter now
17956 explicitly call `fatal'.
17957
17958 * gccspec.c (lang_specific_driver): Include gcc.h.
17959
17960 Sun Sep 12 19:52:10 1999 Richard Earnshaw <rearnsha@arm.com>
17961
17962 * arm.c (note_invalid_constants): Use recog_data.operand_type
17963 for recog_op_type.
17964
17965 Sun Sep 12 15:53:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17966
17967 * tree.h (build_common_tree_nodes, build_common_tree_nodes_2):
17968 Declare.
17969
17970 * reload.h (reload_in, reload_out, reload_in_reg, reload_out_reg,
17971 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
17972 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
17973 reload_secondary_in_reload, reload_secondary_out_reload,
17974 reload_secondary_in_icode, reload_secondary_out_icode,
17975 reload_reg_rtx, reload_when_needed): Delete declarations.
17976 (struct reload): New structure.
17977 (rld): Declare new array.
17978 * reload.c (reload_in, reload_out, reload_in_reg, reload_out_reg,
17979 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
17980 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
17981 reload_secondary_in_reload, reload_secondary_out_reload,
17982 reload_secondary_in_icode, reload_secondary_out_icode,
17983 reload_reg_rtx, reload_when_needed): Delete definitions.
17984 (rld): New array.
17985 (whole file): Replace uses of the deleted arrays with uses of rld.
17986 * reload1.c (whole file): Replace uses of the deleted arrays with
17987 uses of rld.
17988 (choose_reload_regs): Copy in/out of save_reload_reg_rtx with
17989 explicit loops, not with bcopy.
17990
17991 Sun Sep 12 05:00:24 1999 Richard Henderson <rth@cygnus.com>
17992
17993 * recog.h (insn_template, insn_outfun, insn_n_operands, insn_n_dups,
17994 insn_n_alternatives, insn_operand_constraint, insn_operand_address_p,
17995 insn_operand_mode, insn_operand_strict_low, insn_operand_predicate,
17996 insn_name): Delete and consolidate into new structures.
17997 (insn_operand_predicate_fn): New.
17998 (insn_output_fn): New.
17999 (insn_gen_fn): New.
18000 (struct insn_operand_data): New.
18001 (struct insn_data): New.
18002 (insn_data): New.
18003 (OUT_FCN): Update for insn_data change.
18004 * builtins.c (expand_builtin_strlen): Likewise.
18005 (expand_builtin_memcmp): Likewise.
18006 * combine.c (make_extraction, simplify_comparison): Likewise.
18007 * cse.c (canon_reg, cse_insn): Likewise.
18008 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18009 * expmed.c (store_bit_field, extract_bit_field): Likewise.
18010 (emit_store_flag): Likewise.
18011 * expr.c (convert_move, emit_block_move): Likewise.
18012 (clear_storage, emit_push_insn, expand_increment): Likewise.
18013 (do_store_flag): Likewise.
18014 * expr.h (GEN_FCN): Likewise.
18015 (insn_gen_function): Die.
18016 * final.c (final_scan_insn): Update for insn_data change.
18017 (output_asm_name): Likewise.
18018 * function.c (fixup_var_refs_1): Likewise.
18019 * loop.c (check_dbra_loop): Likewise.
18020 * optabs.c (expand_binop, expand_twoval_binop): Likewise.
18021 (expand_unop, expand_complex_abs, emit_unop_insn): Likewise.
18022 (prepare_cmp_insn, prepare_operand, emit_indirect_jump): Likewise.
18023 (emit_conditional_move, gen_add2_insn, gen_sub2_insn): Likewise.
18024 * recog.c (validate_replace_rtx_1, extract_insn): Likewise.
18025 * regmove.c (gen_add3_insn): Likewise.
18026 * reload.c (push_secondary_reload, combine_reloads): Likewise.
18027 (find_reloads, find_reloads_address_1): Likewise.
18028 (debug_reload_to_stream): Likewise.
18029 * reload1.c (emit_reload_insns, gen_reload): Likewise.
18030 * stmt.c (expand_end_case): Likewise.
18031 * toplev.c (compile_file): Likewise.
18032
18033 * c4x/c4x.c (c4x_process_after_reload): Likewise.
18034 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
18035
18036 * print-rtl.c (insn_name_ptr): Remove declaration.
18037 (get_insn_name): Declare.
18038 (print_rtx): Use it.
18039 * genoutput.c (insn_name_ptr): Remove.
18040 (next_operand_number): New.
18041 (struct operand_data): New.
18042 (null_operand, odata, odata_end): New.
18043 (struct data): Use struct operand_data.
18044 (idata, idata_end): Renamed from insn_data and end_of_insn_data.
18045 (get_insn_name): Renamed from name_for_index.
18046 (output_prologue): Define NO_MD_PROTOTYPES.
18047 (output_predicate_decls): Break out from output_epilogue.
18048 Iterate over the operands list.
18049 (output_operand_data): Break out from output_epilogue. Emit
18050 just the operands list.
18051 (output_insn_data): Break out from output_epilogue. Emit just
18052 the insn data.
18053 (output_epilogue): Remove.
18054 (output_get_insn_name): New.
18055 (constraints, op_n_alternatives, predicates, address_p): Die.
18056 (modes, strict_low, seen): Die.
18057 (scan_operands): Take new param `d' instead of writing to
18058 seven global variables.
18059 (compare_operands): New.
18060 (place_operands): New.
18061 (validate_insn_alternatives): Update for struct data change.
18062 (gen_insn): Don't zero or copy 7 global arrays. Update for
18063 scan_operands; call place_operands.
18064 (gen_peephole, gen_expand, gen_split): Likewise.
18065 (main): Update for new output routines.
18066
18067 * genattr.c (insn_name_ptr): Remove.
18068 (get_insn_name): New function.
18069 * genattrtab.c, gencodes.c, genconfig.c, genemit.c: Likewise.
18070 * genextract.c, genflags.c, genopinit.c, genpeep.c: Likewise.
18071 * genrecog.c: Likewise.
18072
18073 * alpha.md (adddi3): Make `pattern' array static.
18074
18075 Sun Sep 12 22:05:21 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18076
18077 * config/c4x/c4x.h (c4x_rpts_cycles_string,
18078 c4x_cpu_version_string): Constify char *.
18079 * config/c4x/c4x.c (c4x_rpts_cycles_string,
18080 c4x_cpu_version_string): Likewise.
18081
18082 Sat Sep 11 23:28:33 1999 Richard Henderson <rth@cygnus.com>
18083
18084 * tree.c (save_tree_status): Revert 10 Sep change.
18085 (restore_tree_status): Likewise. Call obstack_free with NULL
18086 before freeing the obstack proper.
18087
18088 Sat Sep 11 23:23:46 1999 Richard Henderson <rth@cygnus.com>
18089
18090 * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
18091
18092 * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
18093 surrounding context.
18094
18095 Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
18096
18097 * tree.c (type_hash_canon): Put all types in the hash-table, when
18098 GC'ing.
18099
18100 Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
18101
18102 * recog.h (struct recog_data, recog_data): New.
18103 (recog_foo variables): Kill.
18104 * recog.c (recog_operand, recog_operand_loc): Kill.
18105 (recog_dup_loc, recog_dup_num, recog_n_operands): Kill.
18106 (recog_n_dups, recog_n_alternatives, recog_operand_mode): Kill.
18107 (recog_constraints, recog_op_type, recog_operand_address_p): Kill.
18108 (recog_data): Define.
18109 (extract_insn): Update all recog_foo references to use recog_data.
18110 (preprocess_constraints, constrain_operands): Likewise.
18111 * final.c (final_scan_insn, cleanup_subreg_operands): Likewise.
18112 * genattrtab.c (main): Likewise.
18113 * genextract.c (main): Likewise.
18114 * genoutput.c: Likewise.
18115 * genrecog.c (write_subroutine, main): Likewise.
18116 * local-alloc.c (block_alloc): Likewise.
18117 * reg-stack.c (record_asm_reg_life, subst_asm_stack_regs): Likewise.
18118 * regclass.c (scan_one_insn, record_reg_classes): Likewise.
18119 * regmove.c (regmove_optimize, find_matches, fixup_match_1): Likewise.
18120 * reload.c (find_reloads, find_reloads_toplev): Likewise.
18121 * reload1.c (maybe_fix_stack_asms, eliminate_regs_in_insn): Likewise.
18122 (reload_cse_simplify_operands): Likewise.
18123
18124 * arc/arc.c (arc_final_prescan_insn): Likewise.
18125 * arm/arm.c (note_invalid_constants, arm_final_prescan_insn): Likewise.
18126 * h8300/h8300.c (notice_update_cc): Likewise.
18127 * i386/i386.c (ix86_attr_length_default, ix86_agi_dependant): Likewise.
18128 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
18129 * mn10200/mn10200.c (notice_update_cc): Likewise.
18130 * mn10300/mn10300.c (notice_update_cc): Likewise.
18131 * romp/romp.c (update_cc): Likewise.
18132 * sparc/sparc.c (check_pic): Likewise.
18133 * v850/v850.c (notice_update_cc): Likewise.
18134
18135 * genemit.c (main): Don't declare recog_operand.
18136
18137 Sat Sep 11 12:41:55 1999 Alex Samuel <samuel@codesourcery.com>
18138
18139 * ggc.h (rtvec_def): Forward declare.
18140 (tree_node): Likewise.
18141 (ggc_root): Define.
18142 (roots): Declare.
18143 (ggc_set_mark_rtx): Add prototype.
18144 (ggc_set_mark_rtvec): Likewise.
18145 (ggc_set_mark_tree): Likewise.
18146 * ggc-simple.c (ggc_root): Don't define.
18147 (roots): Don't declare.
18148 (ggc_mark_rtx): Remove.
18149 (ggc_mark_rtvec): Likewise.
18150 (ggc_mark_tree): Likewise.
18151 (ggc_mark_varray): Likewise.
18152 (ggc_mark_tree_hash_table_entry): Likewise.
18153 (ggc_mark_tree_hash_table): Likewise.
18154 (ggc_set_mart_rtx): New function.
18155 (ggc_set_mark_rtvec): Likewise.
18156 (ggc_set_mark_tree): Likewise.
18157 (ggc_add_root): Remove.
18158 (ggc_add_rtx_root): Likewise.
18159 (ggc_remove_tree_root): Likewise.
18160 (ggc_add_string_root): Likewise.
18161 (ggc_add_tree_varray_root): Likewise.
18162 (ggc_add_tree_hash_table_root): Likewise.
18163 (ggc_del_root): Likewise.
18164 (ggc_mark_rtx_ptr): Likewise.
18165 (ggc_mark_tree_ptr): Likewise.
18166 (ggc_mark_string_ptr): Likewise.
18167 (ggc_mark_tree_varray_ptr): Likewise.
18168 (ggc_mark_tree_hash_table_ptr): Likewise.
18169 * ggc-common.c: New file.
18170 * Makefile.in (OBJS): Add ggc-common.o.
18171 (ggc-common.o): List dependencies.
18172
18173 1999-09-10 22:37 -0700 Zack Weinberg <zack@bitmover.com>
18174
18175 * cppalloc.c (xstrdup): Use memcpy.
18176 * cpperror.c (cpp_print_containing_files): Don't use
18177 cpp_notice.
18178 * cpplib.c (conditional_skip): Set temp->lineno.
18179 (do_endif): Make error message less obscure.
18180 (if_directive_name): New function.
18181 (cpp_get_token [case EOF]): Unwind the if stack and generate
18182 error messages for each unterminated conditional in this file.
18183 (parse_string): Do not behave differently if -traditional.
18184
18185 Fri Sep 10 14:04:07 1999 Richard Henderson <rth@cygnus.com>
18186
18187 * builtins.c (expand_builtin_va_arg): Cope with an array-type
18188 va_list decomposing to pointer-type.
18189 * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
18190 (rs6000_va_arg): Likewise.
18191
18192 Fri Sep 10 13:21:21 1999 Jim Wilson <wilson@cygnus.com>
18193
18194 * except.c (start_dynamic_handler): Compute size using
18195 STACK_SAVEAREA_MODE.
18196
18197 Fri Sep 10 16:01:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18198
18199 * protoize.c: Remove various __STDC__ and POSIX hacks. Don't
18200 include directory headers. Don't define strrchr. Don't provide
18201 my_* replacement functions. Prefer PTR over `pointer_type'.
18202 Don't prototype system functions. Don't redefine getopt.
18203
18204 (shortpath, fancy_abort, notice, savestring, dupnstr, substr,
18205 safe_read, safe_write, save_pointers, restore_pointers,
18206 is_id_char, in_system_include_dir, directory_specified_p,
18207 file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
18208 find_corresponding_lparen, referenced_file_is_newer,
18209 save_def_or_dec, munge_compile_params, gen_aux_info_file,
18210 process_aux_info_file, identify_lineno, check_source,
18211 seek_to_line, forward_to_next_token_char, output_bytes,
18212 output_string, output_up_to, other_variable_style_function,
18213 find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
18214 do_processing, is_syscalls_file, rename_c_file, find_extern_def,
18215 find_static_definition, connect_defs_and_decs, add_local_decl,
18216 add_global_decls, needs_to_be_converted, visit_each_hash_node,
18217 add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
18218 edit_fn_declaration, edit_formals_lists, edit_fn_definition,
18219 scan_for_missed_items, edit_file, string_list_cons): Add static
18220 prototypes.
18221 (standard_exec_prefix, target_machine, target_version,
18222 default_syscalls_dir, string_list, string_list_cons, find_file,
18223 do_cleaning): Constify a char*.
18224 (safe_read, safe_write): Use PTR, not a char*.
18225 (is_id_char): Take an int, not a char.
18226 (main): Add prototype. Call return, not exit.
18227
18228 Fri Sep 10 16:48:26 1999 Andrew Haley <aph@cygnus.com>
18229
18230 * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
18231 when comparing types.
18232
18233 Fri Sep 10 08:43:32 1999 Richard Henderson <rth@cygnus.com>
18234
18235 * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
18236 (strength_reduce): Release the varrays from the no-bivs early exit.
18237
18238 * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
18239 the loop over the registers.
18240
18241 * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
18242 for a new obstack.
18243 (restore_tree_status): Check that instead when freeing the obstack.
18244
18245 Wed Sep 8 16:12:04 1999 Andrew Haley <aph@cygnus.com>
18246
18247 * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
18248 as pointers.
18249
18250 Fri Sep 10 11:58:55 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18251
18252 * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some
18253 operand size modifiers.
18254
18255 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18256
18257 * c-common.c (c_common_nodes_and_builtins): Don't build
18258 va_list_type_node.
18259 * c-common.h (enum c_tree_index and related accesor macros): Remove
18260 everything now declared in tree.h.
18261 * c-decl.c (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
18262 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, WCHAR_UNSIGNED, FLOAT_TYPE_SIZE,
18263 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Don't provide defaults.
18264 (error_mark_node, void_type_node, char_type_node, integer_type_node,
18265 unsigned_type_node, ptr_type_node, va_list_type_node,
18266 integer_zero_node, null_pointer_node, integer_one_node): Delete.
18267 (init_decl_processing): Call build_common_tree_nodes and
18268 build_common_tree_nodes_2 instead of building their nodes here.
18269 Don't add roots for these nodes.
18270 * stor-layout.c (size_zero_node, size_one_node): Delete.
18271 (set_sizetype): Make a new node for bitsizetype each time.
18272 * tree.c (global_trees): New variable.
18273 (init_obstacks): Add a gc root for it.
18274 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
18275 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE,
18276 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Provide defaults.
18277 (build_common_tree_nodes): New function.
18278 (fix_sizetype): New function.
18279 (build_common_tree_nodes_2): New function.
18280 * tree.h (enum tree_index): New.
18281 (global_trees): Declare.
18282 Add accessor macros for all nodes now moved to global_trees.
18283 Delete their declarations.
18284
18285 Thu Sep 9 20:15:46 1999 Richard Henderson <rth@cygnus.com>
18286
18287 * c-decl.c (finish_function): When processing a nested function,
18288 push and pop GC context around rest_of_compilation.
18289
18290 Thu Sep 9 16:42:06 1999 Richard Henderson <rth@cygnus.com>
18291
18292 * i386.c (override_options): Remove ppro, pentium2, and p2 as aliases.
18293 Default ix86_arch to PROCESSOR_I386.
18294 * i386.h (CC1_CPU_SPEC): Don't add -march=foo. Remove -mno-foo.
18295 (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): Delete.
18296 (CPP_CPU_DEFAULT_SPEC): Define to __tune_foo__.
18297 (CC1_CPU_SPEC): Make -march=foo define __foo__, and provide
18298 __tune_foo__ if no -mcpu. Make -mcpu=bar define __tune_bar__.
18299 (EXTRA_SPECS): Remove deleted specs.
18300
18301 Thu Sep 9 16:03:06 1999 Richard Henderson <rth@cygnus.com>
18302
18303 * function.c (assign_stack_local_1): Allocate from
18304 function->x_frame_offset, not frame_offset.
18305
18306 Thu Sep 9 14:36:31 1999 Mark Mitchell <mark@codesourcery.com>
18307
18308 * ggc.h (lang_cleanup_tree): Remove.
18309 * gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
18310 * ggc-callbacks.c (lang_cleanup_tree): Remove.
18311
18312 * c-decl.c (finish_struct): Use ggc_alloc to allocate
18313 TYPE_LANG_SPECIFIC when garbage collecting.
18314 (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
18315 (lang_cleanup_tree): Remove.
18316
18317 Thu Sep 9 14:23:02 1999 Jason Merrill <jason@yorick.cygnus.com>
18318
18319 * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here.
18320 * crtstuff.c: Not here.
18321 * dwarf2out.c: Or here.
18322 * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame
18323 info.
18324
18325 Thu Sep 9 09:40:58 1999 Mark Mitchell <mark@codesourcery.com>
18326
18327 * function.h (free_after_compilation): Remove decl parameter.
18328 (free_varasm_status0: Likewise.
18329 (free_emit_status): Likewise.
18330 (free_stmt_status): Likewise.
18331 (free_after_compilation): Likewise.
18332 (init_lang_status): New variable.
18333 (free_lang_status): Likewise.
18334 * emit-rtl.c (free_emit_status): Make decl parameter implicit.
18335 * function.c (init_lang_status): New variable.
18336 (free_lang_status): Likewise.
18337 (push_function_context_to): Don't set function::decl here.
18338 (free_after_copmilation): Make decl parameter implicit. Call
18339 free_lang_status if defined.
18340 (prepare_function_start): Call init_lang_status if defined.
18341 (init_function_start): Set function::decl here.
18342 * profile.c (output_func_start_profiler): Don't call pushdecl
18343 until we've actually started the function.
18344 * stmt.c (free_stmt_status): Make decl parameter implicit.
18345 * toplev.c (rest_of_compilation): Don't pass decl to
18346 free_after_compilation.
18347 * varasm.c (free_varasm_status): Likewise.
18348
18349 Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18350
18351 * except.c (call_get_eh_context): Add root when allocating static
18352 tree variable.
18353
18354 Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
18355
18356 * arm.c: Include "ggc.h".
18357 (arm_add_gc_roots): New function.
18358 (arm_override_options): Call it.
18359 (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
18360
18361 * arm.md (define_asm_attributes): Add a pool_range attribute.
18362
18363 Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
18364
18365 * extend.texi (Volatiles): New node.
18366
18367 Thu Sep 9 03:37:31 1999 Richard Henderson <rth@cygnus.com>
18368
18369 * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
18370 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
18371 (struct ggc_any): Replace `mark' with `magic_mark'.
18372 (ggc_alloc_string): Use memcpy, not bcopy.
18373 (ggc_alloc_any): Set magic_mark. Update bytes_alloced_since_gc.
18374 (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
18375 (ggc_free_any): New.
18376 (ggc_mark_string): Use IGNORE_MARK. Calc back to struct gcc_string.
18377 (ggc_mark): Use IGNORE_MARK. Abort if magic doesn't match.
18378 (ggc_collect): Re-enable collection avoidance. Use GGC_ANY_MARK.
18379 Use IS_MARKED. Use ggc_free_any.
18380
18381 1999-09-09 Scott Bambrough <scottb@netwinder.org>
18382
18383 * config/arm/linux-elf.h: define NO_IMPLICIT_EXTERN_C
18384
18385 Thu Sep 9 01:55:21 1999 Richard Henderson <rth@cygnus.com>
18386
18387 * toplev.c (main): Always init_ggc.
18388
18389 Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com>
18390
18391 * except.c (find_all_handler_type_matches): Free the list if
18392 we found no matches.
18393
18394 * combine.c (SUBST): Break out to a real function do_SUBST.
18395 (SUBST_INT): Likewise.
18396 * gcse.c (free_pre_mem): Free `temp_bitmap'.
18397 (pre_insert): Free `inserted'.
18398 * loop.c (basic_induction_var): Always set `location'.
18399
18400 * function.c (expand_function_end): Add initial_trampoline as a root.
18401 * rtl.h (init_varasm_once): Declare.
18402 * toplev.c (compile_file): Call it.
18403 * ggc-simple.c (ggc_mark_string_ptr): New.
18404 (ggc_add_string_root): New.
18405 (ggc_collect): Disable collection avoidance temporarily.
18406 * ggc.h (ggc_add_string_root): Declare.
18407 * except.c (create_rethrow_ref): Use ggc_alloc_string.
18408 * optabs.c (init_libfuncs): Likewise.
18409 * varasm.c (named_section): Use ggc_alloc_string.
18410 (make_function_rtl): Likewise.
18411 (make_decl_rtl): Likewise.
18412 (assemble_static_space): Likewise.
18413 (assemble_trampoline_template): Likewise.
18414 (output_constant_def): Likewise.
18415 (force_const_mem): Likewise.
18416 (mark_const_hash_entry): New.
18417 (mark_pool_sym_hash_table): New.
18418 (mark_varasm_state): Use it.
18419 (init_varasm_once): New.
18420
18421 * expr.h (init_one_libfunc): Declare.
18422 * optabs.c (init_one_libfunc): New.
18423 (init_optabs): Use it.
18424 * config/gofast.h: Likewise.
18425 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
18426 * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
18427
18428 Thu Sep 9 13:46:06 1999 Geoffrey Keating <geoffk@cygnus.com>
18429
18430 * Makefile.in (cppexp.o): Depend on cpphash.h.
18431 * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
18432 Include cpphash.h.
18433 * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
18434 * cpplib.c (do_define): Generalise to handle poisoned definitions,
18435 redefining poisoned identifiers, etc.
18436 (do_undef): Don't allow poisoned identifiers to be undefined.
18437 (do_pragma): Add #pragma poison.
18438 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
18439
18440 * cccp.c: Add T_POISON node type.
18441 (special_symbol): Handle `defined(xxx)' and plain `xxx' for
18442 poisoned xxx.
18443 (do_define): Generalise to handle poisoned definitions,
18444 redefining poisoned identifiers, etc.
18445 (do_undef): Don't allow poisoned identifiers to be undefined.
18446 (do_pragma): Add #pragma poison.
18447 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
18448
18449 * c-pragma.c (handle_pragma_token): Ignore #pragma poison.
18450 * c-pragma.h: Add ps_poison state. We now always have generic
18451 pragmas.
18452
18453 Wed Sep 8 20:30:42 1999 Mark Mitchell <mark@codesourcery.com>
18454
18455 * ggc.h (ggc_alloc): New function.
18456 (ggc_mark): Likewise.
18457 * ggc-simple.c (ggc_any): New structure.
18458 (ggc_status): Add anys.
18459 (n_anys_collected): New variable.
18460 (ggc_alloc): Define.
18461 (ggc_mark): Likewise.
18462 (ggc_collect): Collect the anys.
18463
18464 Wed Sep 8 20:15:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18465
18466 * c-decl.c (mark_binding_level): Make static to match prototype.
18467
18468 Wed Sep 8 16:41:27 1999 Richard Henderson <rth@cygnus.com>
18469
18470 * flow.c (new_insn_dead_notes): Don't early out for preexisting regs.
18471
18472 Wed Sep 8 16:07:52 1999 Richard Henderson <rth@cygnus.com>
18473
18474 * gengenrtl.c (CONST_DOUBLE_FORMAT): Take the size REAL_ARITHMETIC
18475 will use into account. Expand the max width to 5.
18476 * rtl.c: Likewise.
18477
18478 Wed Sep 8 16:01:14 1999 Richard Henderson <rth@cygnus.com>
18479
18480 * ggc-simple.c (ggc_free_rtx): Poison the correct amount
18481 for the rtx length.
18482
18483 Wed Sep 8 15:23:54 1999 Richard Henderson <rth@cygnus.com>
18484
18485 * alpha.md (call value patterns): Remove the result predicates.
18486
18487 Wed Sep 8 13:35:38 1999 Richard Henderson <rth@cygnus.com>
18488
18489 * Makefile.in (stmp-fixinc): Remove extraneous exit 1 from
18490 last change.
18491
18492 Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18493
18494 * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
18495 changed from extern char *, to extern PTR. Also fix typo in
18496 NEED_DECLARATION_REALLOC test.
18497
18498 * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
18499
18500 Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18501
18502 * gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
18503 ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF,
18504 ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3,
18505 ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete.
18506
18507 * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR.
18508
18509 * cccp.c (pcfinclude): Likewise.
18510
18511 * global.c (allocno_compare): Likewise.
18512
18513 * haifa-sched.c (rank_for_schedule): Likewise.
18514
18515 * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise.
18516
18517 * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise.
18518
18519 * stupid.c (stupid_reg_compare): Likewise.
18520
18521 * tree.c (_obstack_allocated_p): Likewise.
18522
18523 * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise.
18524
18525 1999-09-08 Bruce Korb autogen@linuxbox.com
18526
18527 * Makefile.in: Give the hapless gperf user a hint about
18528 why "gperf -F" fails.
18529
18530 Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
18531
18532 * lists.c: Include ggc.h.
18533 (zap_lists): New.
18534 (init_EXPR_INSN_LIST_cache): Install it.
18535
18536 * ggc-simple.c (init_ggc): Absorb the old init.
18537 (ggc_push_context): Use xcalloc.
18538 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Likewise.
18539 (ggc_collect): Add [rvts] tags to the collection stats.
18540
18541 Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
18542
18543 * cccp.c (main): Fix handling of -include and -imacros options.
18544
18545 Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
18546
18547 * cpplib.c (cpp_push_buffer): Fix order of arguments.
18548
18549 Wed Sep 8 04:44:09 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
18550
18551 * rtl.h (obstack_alloc_rtx): Removed, it's now static in
18552 genrtl.c.
18553
18554 Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
18555
18556 * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
18557 * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
18558 and SET_DEST. Update comment.
18559
18560 Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18561
18562 * config/c4x/c4x.c: Include ggc.h.
18563 (c4x_add_gc_roots): New function.
18564 (c4x_override_options): Call c4x_add_gc_roots.
18565
18566 Wed Sep 8 00:00:16 1999 Richard Henderson <rth@cygnus.com>
18567
18568 * defaults.h (TARGET_ESC): Move ...
18569 * system.h: ... here, where Linas had it in the first place. Silly me.
18570
18571 Tue Sep 7 23:46:35 1999 Linas Vepstas <linas@linas.org>
18572
18573 * c-common.c: Use ISGRAPH, ISLOWER, toupper.
18574 * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
18575 genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
18576 * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
18577 * defaults.h (TARGET_ESC): Add default.
18578
18579 Tue Sep 7 23:36:59 1999 Linas Vepstas <linas@linas.org>
18580
18581 * configure.in: add i370-*-openedition, i370-*-mvs and
18582 i370-*-linux targets
18583
18584 Tue Sep 7 23:31:53 1999 Mark Mitchell <mark@codesourcery.com>
18585
18586 * dsp16xxx.c: Include ggc.h
18587 (override_options): Mark GC roots.
18588 * mn10200.c: Include ggc.h.
18589 (asm_file_start): Mark GC roots.
18590 * tahoe.c: Include ggc.h.
18591 (extensible_operand): Mark GC roots.
18592
18593 Tue Sep 7 23:23:15 1999 Linas Vepstas <linas@linas.org>
18594
18595 * README: Add section discussing status of ELF ABI.
18596 * i370.c: Fix misc spelling mistakes.
18597 (i370_label_scan): Updated notes, exception handling.
18598 (i370_function_prolog): Simplify ELF stack handling.
18599 * i370.h: (FIXED_REGISTERS): Free up r12 for ELF.
18600 (STACK_GROWS_DOWNWARD): ELF stack grows down.
18601 (ASM_DECLARE_FUNCTION_NAME): Fix crazy malloc size.
18602 * i370.md: (movdi): Add notes.
18603 (floatsidf2): Use stack not rtca for scratch float area.
18604 (iorsi3): Correct operand constraints.
18605 * x-oe: Restore TAROUTOPTS which are used by pax.
18606
18607 Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
18608
18609 * rs6000.c: Include ggc.h.
18610 (rs6000_add_gc_roots): New function.
18611 (override_options): Call it.
18612
18613 Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
18614
18615 * alpha.h (alpha_compare): New.
18616 (alpha_compare_op0, alpha_compare_op1, alpha_compare_fp_p): Remove.
18617 * alpha.c: Likewise for the definitions.
18618 (alpha_emit_conditional_branch): Update for alpha_compare.
18619 (alpha_emit_conditional_move): Likewise.
18620 * alpha.md (cmpdf, cmpdi): Likewise.
18621 (setcc patterns): Likewise. Zero alpha_compare after use.
18622 (sne): Optimize (x != 0) into (0U < x).
18623
18624 Tue Sep 7 21:55:02 1999 Richard Henderson <rth@cygnus.com>
18625
18626 * alpha.h (alpha_eh_epilogue_sp_ofs): Remove.
18627 (struct machine_function): Declare; add eh_epilogue_sp_ofs.
18628 (INIT_EXPANDERS): Remove.
18629 * alpha.c: Include ggc.h.
18630 (alpha_eh_epilogue_sp_ofs, alpha_return_addr_rtx): Remove.
18631 (alpha_init_machine_status, alpha_mark_machine_status): New.
18632 (override_options): Install them.
18633 (struct machine_function): Moved to alpha.h.
18634 (alpha_save_machine_status, alpha_restore_machine_status): Remove.
18635 (alpha_init_expanders): Remove.
18636 (alpha_return_addr): Adjust to use current_function->machine.
18637 (alpha_ra_ever_killed): Likewise.
18638 (alpha_expand_epilogue): Likewise.
18639 * alpha.md (eh_epilogue): Likewise.
18640
18641 Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
18642 Melissa O'Neill <oneill@cs.sfu.ca>
18643 Geoffrey Keating <geoffk@cygnus.com>
18644
18645 * config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
18646 call-used registers (call-saved registers must still be contiguous
18647 and end with r31, of course).
18648
18649 Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
18650
18651 * c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.
18652 (self_promoting_type_p): Delete.
18653 (self_promoting_args_p): Move ...
18654 * c-common.c: ... here.
18655 (c_common_nodes_and_builtins): Initialize lang_type_promotes_to.
18656 (simple_type_promotes_to): New.
18657 * builtins.c (lang_type_promotes_to): New.
18658 (expand_builtin_va_arg): Use it to give diagnostic for illegal types.
18659 * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): Move ...
18660 * c-common.h: ... here.
18661 (self_promoting_args_p, simple_type_promotes_to): Declare.
18662 * c-decl.c (duplicate_decls): Use simple_type_promotes_to.
18663 (grokdeclarator): Likewise.
18664 * tree.h (lang_type_promotes_to): Declare.
18665
18666 Tue Sep 7 17:15:21 1999 Mark Mitchell <mark@codesourcery.com>
18667
18668 Add some machine-dependent GC roots.
18669 * sparc.c: Include ggc.h.
18670 (sparc_add_gc_roots): New function.
18671 (mark_ultrasparc_pipeline_state): Likewise.
18672 (override_options): Call sparc_add_gc_roots.
18673 * pa.c: Include ggc.h.
18674 (pa_add_gc_roots): New function.
18675 (mark_deferred_plabels): Likewise.
18676 (override_options): Call pa_add_gc_roots.
18677 * mips.c: Include ggc.h.
18678 (mips_add_gc_roots): New function.
18679 (override_options): Use it.
18680
18681 Tue Sep 7 11:39:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18682
18683 * cpperror.c (cpp_file_line_for_message): Constify a char*.
18684
18685 * cppexp.c (parse_number, parse_charconst, cpp_lex,
18686 cpp_parse_expr): Add static prototypes.
18687 (parse_charconst): Don't cast away const-ness.
18688 (token): Constify a char*.
18689
18690 * cppfiles.c (file_name_list, include_hash, find_include_file,
18691 finclude, initialize_input_buffer): Constify a char*.
18692 (file_cleanup, find_position): Add static prototypes.
18693
18694 * cpphash.c (macro_cleanup, macarg, timestamp, special_symbol,
18695 collect_expansion): Add static prototypes.
18696 (cpp_install, create_definition, monthnames): Constify a char*.
18697
18698 * cpphash.h (cpp_install): Likewise.
18699
18700 * cppinit.c (known_suffixes, default_include,
18701 dump_special_to_buffer, NAME, cpp_start_read, cpp_finish): Likewise.
18702 (base_name, dump_special_to_buffer, initialize_dependency_output):
18703 Add static prototypes.
18704
18705 * cpplib.c (my_strerror): Constify a char*.
18706 (null_underflow, null_cleanup, skip_comment, copy_comment,
18707 copy_rest_of_line, handle_directive, pass_thru_directive,
18708 get_directive_token, read_line_number, cpp_print_file_and_line,
18709 v_cpp_error, v_cpp_warning, v_cpp_error_with_line,
18710 v_cpp_warning_with_line, detect_if_not_defined,
18711 consider_directive_while_skipping): Add static prototypes.
18712 (pass_thru_directive, check_macro_name, cpp_expand_to_buffer,
18713 cpp_pedwarn_with_file_and_line): Constify a char*.
18714
18715 * cpplib.h (cpp_options, include_hash, progname, definition,
18716 cpp_pedwarn_with_file_and_line, cpp_expand_to_buffer,
18717 check_macro_name, cpp_pfatal_with_name, cpp_file_line_for_message,
18718 find_include_file, deps_output, include_hash): Constify a char*.
18719
18720 * cppmain.c (progname): Constify.
18721 (main): Add prototype. Use return, not exit.
18722
18723 * fix-header.c (fatal, add_symbols, lookup_std_proto, write_lbrac,
18724 recognized_macro, check_macro_names, read_scan_file, write_rbrac,
18725 inf_skip_spaces, inf_read_upto, inf_scan_ident, inf_scan_ident,
18726 check_protection): Add static prototype.
18727 (xfree): Remove.
18728 (progname, recognized_macrom, recognized_extern): Constify a char*.
18729 (main): Add prototype.
18730
18731 * gen-protos.c (progname): Constify a char*.
18732
18733 Tue Sep 7 00:47:52 1999 Mark Mitchell <mark@codesourcery.com>
18734
18735 * emit-rtl.c (free_emit_status): Take decl as a parameter.
18736 (init_emit_once): Add more GC roots.
18737 * except.c (mark_func_eh_entry): New function.
18738 (mark_eh_node): Mark false_label and rethrow_label.
18739 (init_eh): Add more GC roots.
18740 * function.c (free_after_compilation): Take decl as a paramter.
18741 Call free_stmt_status.
18742 (mark_function_state): Don't assume x_parm_reg_stack_loc is
18743 non-NULL.
18744 * function.h (free_after_compilation): Change prototype.
18745 (free_varasm_status): Likewise.
18746 (free_emit_status): Likewise.
18747 (free_stmt_status): New function.
18748 * ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
18749 Remove, replacing with ...
18750 (ggc_status): New structure.
18751 (ggc_chain): New variable.
18752 (init_gcc): Define.
18753 (ggc_push_context): New function.
18754 (ggc_pop_context): Likewise.
18755 (ggc_alloc_rtx): Adjust for use of ggc_chain.
18756 (ggc_alloc_rtvec): Likewise.
18757 (ggc_alloc_tree): Likewise.
18758 (ggc_alloc_string): Likewise.
18759 (ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
18760 (ggc_mark_tree): Give language-dependent code a chance to mark
18761 `x' nodes.
18762 (ggc_mark_tree_varray): Handle empty arrays.
18763 (ggc_collect): Adjust for use of ggc_chain. Clear
18764 bytes_alloced_since_last_gc.
18765 * ggc.h (ggc_pop_context): New function.
18766 (ggc_push_context): Likewise.
18767 * print-tree.c (print_node): Don't print obstacks when GC'ing.
18768 * stmt.c (free_stmt_status): New function.
18769 (init_stmt_for_function): Clear last_expr_value.
18770 * toplev.c (rest_of_compilation): Always call free_after_compilation.
18771 Conditionalize call to ggc_collect.
18772 (main): Call init_ggc.
18773 * tree.c (push_obstacks): Do the push, even when GC'ing.
18774 (push_obstacks_nochange): Likewise.
18775 (pop_obstacks): Liekwise.
18776 * varasm.c (free_varasm_status): Take decl as a parameter.
18777
18778 Tue Sep 7 08:15:49 1999 Gavin Romig-Koch <gavin@cygnus.com>
18779
18780 * config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
18781 (MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
18782 * config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
18783 * config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
18784
18785 Tue Sep 7 03:42:45 1999 Mark Klein (mklein@dis.com)
18786
18787 * pa/x-pa-mpeix: New file for the MPE port.
18788
18789 * pa/quadlib.asm: New file for long double support.
18790
18791 * configure.in: Add hppa1.0-*-mpeix for MPE port.
18792 * configure: Rebuilt.
18793
18794 Tue Sep 7 10:08:40 1999 Andreas Schwab <schwab@suse.de>
18795
18796 * final.c (shorten_branches): Fix last change.
18797
18798 Tue Sep 7 00:30:32 1999 Jeffrey A Law (law@cygnus.com)
18799
18800 * pa.h (ASM_OUTPUT_DOUBLE_INT): Delete.
18801
18802 Mon Sep 6 22:44:47 1999 Jeffrey A Law (law@cygnus.com)
18803
18804 * Merge from gcc2 snapshot Jan 9, 1999. See FSFChangeLog for
18805 details.
18806
18807 Mon Sep 6 22:31:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18808
18809 * c-aux-info.c (concat): Don't define.
18810
18811 * cccp.c (my_strerror): Likewise. All callers changed to use
18812 xstrerror instead.
18813 (do_include): Call xstrdup, not xmalloc/strcpy.
18814 (grow_outbuf): Don't check if xrealloc returns NULL, it can't.
18815 (xmalloc, xrealloc, xcalloc, xstrdup): Don't define.
18816
18817 * collect2.c (my_strsignal): Likewise. All callers changed to use
18818 strsignal instead.
18819 (locatelib): Call xstrdup, not xmalloc/strcpy.
18820
18821 * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc.
18822
18823 * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy.
18824
18825 * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc.
18826
18827 * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy.
18828
18829 * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero.
18830
18831 * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/...
18832
18833 * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not
18834 malloc/realloc.
18835 (find_all_handler_type_matches): Likewise. Don't check return
18836 value.
18837 (get_new_handler, init_insn_eh_region, process_nestinfo): Call
18838 xmalloc, not malloc.
18839 (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero.
18840
18841 * gcc.c (xstrerror, xmalloc, xrealloc): Don't define.
18842 (init_spec): Call xcalloc, not xmalloc/bzero.
18843 (set_spec): Call xstrdup, not save_string.
18844 (record_temp_file): Call xstrdup, not xmalloc/strcpy.
18845 (find_a_file): Call xstrdup, not xmalloc/strcpy.
18846 (process_command): Call xstrdup, not save_string.
18847 (main): Call xcalloc, not xmalloc/bzero.
18848
18849 * gcov.c (xmalloc): Don't define.
18850 (create_program_flow_graph): Call xcalloc, not xmalloc/bzero.
18851 (scan_for_source_files): Call xstrdup, not xmalloc/strcpy.
18852 (output_data): Call xcalloc, not xmalloc/bzero.
18853
18854 * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero.
18855
18856 * mips-tdump.c (xmalloc): Don't define.
18857 (print_symbol): Call xmalloc, not malloc.
18858 (read_tfile): Call xcalloc, not calloc.
18859
18860 * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc):
18861 Don't define. All callers of xfree/my_strsignal changed to use
18862 free/strsignal instead.
18863 (allocate_cluster): Call xcalloc, not calloc.
18864
18865 * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/...
18866 Fix memory leak, free allocated memory.
18867
18868 * prefix.c (translate_name): Call xstrdup, not save_string.
18869 (update_path): Likewise.
18870
18871 * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy.
18872
18873 * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2):
18874 Don't define. Callers of xfree/savestring2 changed to use
18875 free/concat instead.
18876
18877 * reload1.c (reload): Call xcalloc, not xmalloc/bzero.
18878 (init_elim_table): Likewise.
18879
18880 * resource.c (init_resource_info): Likewise.
18881
18882 * stupid.c (stupid_life_analysis): Likewise.
18883
18884 * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define.
18885 (open_dump_file): Call concat, not xmalloc/strcpy/...
18886 (clean_dump_file): Likewise.
18887 (compile_file): Call xstrdup, not xmalloc/strcpy.
18888
18889 Mon Sep 6 15:04:55 1999 Richard Henderson <rth@cygnus.com>
18890
18891 * v850.h (EXPAND_BUILTIN_VA_ARG): New.
18892 * v850.c (v850_va_arg): New.
18893
18894 Tue Sep 7 09:36:01 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18895
18896 * haifa-sched.c: Tidy comments.
18897
18898 Mon Sep 6 14:30:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18899
18900 * Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
18901 (c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
18902 $(out_object_file)): Depend on ggc.h.
18903 * c-common.c: Include "ggc.h".
18904 (combine_strings): If doing GC, use ggc_alloc_string.
18905 * c-decl.c: Include "ggc.h".
18906 (ggc_p): Define with value 0.
18907 (mark_binding_level): New function.
18908 (init_decl_processing): Add GC roots.
18909 (mark_c_function_context): New function.
18910 (lang_mark_false_label_stack): New function.
18911 (lang_mark_tree): New function.
18912 (lang_cleanup_tree): New function.
18913 * c-lang.c: Include "ggc.h".
18914 (lang_init): Call c_parse_init.
18915 * c-lex.c: Include "ggc.h".
18916 (check_linenum): If doing GC, don't copy filenames to permanent
18917 obstack.
18918 * c-parse.in: Include "ggc.h".
18919 (c_parse_init): New function.
18920 * c-tree.h (c_parse_init, mark_c_function_context): Declare.
18921 * objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
18922
18923 * except.c (mark_eh_state): Mark more state.
18924 * function.c (mark_function_state): Likewise.
18925 * ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
18926 (ggc_alloc_string) [GGC_DUMP]: Fix typo.
18927 * toplev.c (mark_file_stack): New function.
18928 (compile_file): If doing GC, use ggc_alloc_string on input filename.
18929 (main): Add root for input_file_stack.
18930
18931 * i386.c: Include "ggc.h".
18932 (ix86_mark_machine_status): New function.
18933 (override_options): Set mark_machine_status.
18934
18935 Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18936
18937 * tree.c (copy_node): Copy node contents also if doing GC.
18938
18939 Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
18940
18941 * collect2.c (scan_libraries): Fix double-thinko :-).
18942
18943 Mon Sep 6 02:42:36 1999 Jeffrey A Law (law@cygnus.com)
18944
18945 * collect2.c (scan_libraries): Fix thinko.
18946
18947 * cse.c (delete_trivially_dead_insns): Do not skip the last
18948 insn if it is a real insn.
18949
18950 Sun Sep 5 18:57:42 1999 Mark Mitchell <mark@codesourcery.com>
18951
18952 * Makefile.in (ggc-simple.o): Depend on hash.h.
18953 * ggc.h (ggc_add_tree_hash_table_root): Declare.
18954 (ggc_mark_tree_varray): Likewise.
18955 (ggc_mark_tree_hash_table): Likewise.
18956 * ggc-simple.c: Include hash.h.
18957 (ggc_mark_tree_hash_table_ptr): New function.
18958 (ggc_mark_tree_hash_table_entry): Likewise.
18959 (ggc_mark_tree_hash_table): Likewise.
18960 (ggc_add_tree_hash_table_root): Likewise.
18961 * varray.h (const_equiv_data): Use struct rtx_def *, rather than
18962 rtx, when defining fields.
18963
18964 Sun Sep 5 18:57:42 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
18965
18966 * profile.c (output_func_start_profiler): Remove apparently
18967 nonsensical call to start_sequence.
18968
18969 Sun Sep 5 17:34:33 1999 Richard Henderson <rth@cygnus.com>
18970
18971 * clipper/clipper.c (clipper_va_start): Fix typos.
18972
18973 * pyr/pyr.c (pyr_build_va_list, pyr_va_start, pyr_va_arg): New stubs.
18974 * spur/spur.c (spur_build_va_list, spur_va_start): New stubs.
18975 (spur_va_arg): New stub.
18976
18977 * configure.in: Comment out pyramid.
18978
18979 Sun Sep 5 19:11:01 1999 Michael Meissner <meissner@cygnus.com>
18980
18981 * i386.h (MASK_{DEBUG_{ADDR,ARG},INTEL_SYNTAX}): Move so these
18982 don't conflict with the bits that win32, cygwin, and dgux
18983 defines.
18984
18985 Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
18986 Bernd Schmidt <bernds@cygnus.co.uk>
18987
18988 * integrate.c (function_cannot_inline_p): Do not inline
18989 functions with forced labels.
18990
18991 Sun Sep 5 00:35:17 1999 Richard Henderson <rth@cygnus.com>
18992 Bernd Schmidt <bernds@cygnus.co.uk>
18993 Mark Mitchell <mark@codesourcery.com>
18994
18995 * Makefile.in (ggc-simple.o): Depend on varray.h.
18996 (rtl.o): Depend on ggc.h.
18997 (genattrtab.o): Depend on ggc.h.
18998 (print-tree.o): Likewise.
18999 (fold-const.o): Likewise.
19000 * emit-rtl.c (sequence_element_free_list): Remove, and all references.
19001 (make_insn_raw): Don't cache insns when GC'ing.
19002 (emit_insn_before): Likewise.
19003 (emit_insn_after): Likewise.
19004 (emit_insn): Likewise.
19005 (start_sequence): Use xmalloc to allocate the sequence_stack.
19006 (end_sequence): Add free to free it.
19007 (gen_sequence): Don't cache insns when GC'ing.
19008 (clear_emit_caches): Don't use sequence_element_free_list.
19009 (init_emit): Use xcalloc, not xmalloc+bzero.
19010 * fold-const.c (size_int_wide): Kill the cache, when GC'ing.
19011 * function.c (pop_function_context_from): Use free to free the
19012 fixup_var_refs_queue.
19013 (put_reg_into_stack): Allocate it with xmalloc.
19014 * genattrtab.c: Include ggc.h.
19015 (operate_exp): Don't use obstack_free when GC'ing.
19016 (simplify_cond): Likewise.
19017 (simplify_text_exp): Likewise.
19018 (optimize_attrs): Likewise.
19019 * gengenrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
19020 GC'ing.
19021 (gencode): Generate a #include for ggc.h.
19022 * ggc-callbacks.c (ggc_p): Define it to zero.
19023 * ggc-none.c (ggc_p): Likewise.
19024 * ggc-simple.c: Include varray.h.
19025 (ggc_mark_tree_varray): New function.
19026 (ggc_add_tree_varray_root): Likewise.
19027 (ggc_mark_tree_varray_ptr): Likewise.
19028 * ggc.h (ggc_p): Declare.
19029 (varray_head_tag): Likewise.
19030 (ggc_add_tree_varray_root): Declare.
19031 * print-tree.c (print_node): Don't check for TREE_PERMANENT
19032 inconsistencies when GC'ing.
19033 * rtl.c: Include ggc.h.
19034 (rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
19035 (rtx_alloc): Use ggc_alloc_rtx when GC'ing.
19036 (rtx_free): Don't call obstack_free when GC'ing.
19037 * toplev.c (rest_of_compilation): Call ggc_collect after every
19038 pass, if GC'ing.
19039 * tree.c (push_obstacks): Do nothing, if GC'ing.
19040 (pop_obstacks_nochange): Likewise.
19041 (pop_obstacks): Likewise.
19042 (make_node): Use ggc_alloc_tree when GC'ing.
19043 (copy_node): Likewise.
19044 (get_identifier): Use ggc_alloc_string when GC'ing.
19045 (build_string): Likewise.
19046 (make_tree_vec): Use ggc_alloc_tree when GC'ing.
19047 (tree_cons): Likewise.
19048 (build1): Likewise.
19049 (type_hash_canon): Don't call obstack_free when GC'ing.
19050
19051 Sat Sep 4 21:52:32 1999 Richard Henderson <rth@cygnus.com>
19052
19053 * haifa-sched.c (schedule_block): Use next_nonnote_insn instead
19054 of NEXT_INSN when examining speculative insns for SCHED_GROUP_P.
19055
19056 Sat Sep 4 20:40:19 1999 Richard Henderson <rth@cygnus.com>
19057 Bernd Schmidt <bernds@cygnus.co.uk>
19058 Mark Mitchell <mark@codesourcery.com>
19059
19060 * Makefile.in (stor-layout.o): Depend on ggc.h.
19061 (expr.o): Depend on ggc.h.
19062 (profile.o): Depend on ggc.h.
19063 (stor-layout.o): Depend on ggc.h.
19064 * emit-rtl.c (init_emit_once): Add gc roots.
19065 * expr.c: Include ggc.h.
19066 (emit_block_move): Add gc roots.
19067 (clear_storage): Likewise.
19068 * expr.h (init_stor_layout_once): New function.
19069 * profile.c: Include ggc.h.
19070 (init_arc_profiler): profiler_label is a root.
19071 * scan.c (make_sstring_space): Trust xrealloc to function
19072 correctly with first parameter NULL.
19073 * stor-layout.c: Include ggc.h.
19074 (set_sizetype): Add gc root.
19075 (init_stor_layout_once): New function.
19076 * toplev.c (compile_file): Call it.
19077
19078 Sat Sep 4 19:26:25 1999 Richard Henderson <rth@cygnus.com>
19079 Bernd Schmidt <bernds@cygnus.co.uk>
19080 Mark Mitchell <mark@codesourcery.com>
19081
19082 * Makefile.in (tree.o): Depend on ggc.h.
19083 (varasm.o): Likewise.
19084 (function.o): Likewise.
19085 (stmt.o): Likewise.
19086 (except.o): Likewise.
19087 (optabs.o): Likewise.
19088 (emit-rtl.o): Likewise.
19089 * emit-rtl.c: Include ggc.h.
19090 (sequence_element_free_list): Remove, and all references.
19091 (mark_sequence): New functions.
19092 (mark_emit_state): New function.
19093 * except.c: Include ggc.h.
19094 (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
19095 (mark_tree_label_node): New functions.
19096 (mark_eh_state): New function.
19097 * function.c: Include ggc.h.
19098 (mark_temp_slot, mark_function_chain): New functions.
19099 (mark_function_state): New function.
19100 (init_function_once): New function.
19101 * function.h (init_function_once): New function.
19102 * ggc-callbacks.c (lang_mark_false_label_stack): New function.
19103 * ggc.h (label_node): Declare.
19104 (eh_status, emit_status, stmt_status, varasm_status): Likewise.
19105 (lang_mark_false_label_stack): New function.
19106 (mark_temp_slot): Remove declaration.
19107 (mark_function_chain): Likewise.
19108 (mark_eh_state): Adjust prototype.
19109 (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
19110 Likewise.
19111 * optabs.c: Include ggc.h.
19112 (mark_optab): New function.
19113 (init_optabs): Add gc roots.
19114 * stmt.c: Include ggc.h.
19115 (mark_cond_nesting, mark_loop_nesting): New functions.
19116 (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
19117 (mark_stmt_state): New function.
19118 * toplev.c (compile_file): Call init_function_once.
19119 * tree.c: Include ggc.h.
19120 (type_hash): Move declaration earlier in file.
19121 (TYPE_HASH_SIZE, type_hash_table): Likewise.
19122 (init_obstacks): Add gc roots.
19123 (mark_type_hash): New function.
19124 * varasm.c: Include ggc.h.
19125 (mark_pool_constant): New function.
19126 (mark_varasm_state): New function.
19127
19128 Sat Sep 4 22:28:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19129
19130 * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
19131
19132 Sat Sep 4 18:01:45 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19133
19134 * c-decl.c (struct language_function): Renamed from struct c_function.
19135 Delete elt NEXT.
19136 (c_function_chain): Delete.
19137 (push_c_function_context): New arg F. Don't warn about nested
19138 functions here. Fill LANGUAGE elt of F. Delete code to update
19139 c_function_chain. Don't call push_function_context.
19140 (pop_c_function_context): New arg F. Restore from there instead of
19141 from c_function_chain. Don't call pop_function_context. Clear out
19142 LANGUAGE field of F when done.
19143 * c-lang.c: Include "function.h"
19144 (lang_init): Initialize save_lang_status and restore_lang_status.
19145 * c-parse.in (nested_function, nested_function_notype): Warn about
19146 nested functions. Call push_function_context/pop_function_context
19147 instead of the _c_ variants.
19148 * c-tree.h (push_c_function_context, pop_c_function_context): Update
19149 prototype.
19150 * Makefile.in (c-lang.o): Update dependencies.
19151
19152 * emit-rtl.c (init_emit): Use xmalloc to allocate regno_reg_rtx,
19153 regno_pointer_flag, regno_pointer_align.
19154 (gen_reg_rtx): Use xrealloc to enlarge them.
19155 (free_emit_status): New function.
19156 * function.c (mark_machine_status, mark_lang_status): New variables.
19157 (assign_stack_local_1): Renamed from assign_outer_stack_local. Merge
19158 in some bits from assign_stack_local. All callers changed to use new
19159 name.
19160 (assign_stack_local): Just call assign_stack_local_1.
19161 (free_after_compilation): New function.
19162 (put_reg_into_stack): Simplify to always call assign_stack_local_1.
19163 (trampoline_address): Likewise.
19164 (assign_parms): Use xcalloc/xrealloc to allocate parm_reg_stack_loc.
19165 (prepare_function_start): Explicitly clear some more variables.
19166 * function.h (struct function): New elt can_garbage_collect.
19167 (mark_machine_status, mark_lang_status): Declare variables.
19168 (free_after_compilation, free_emit_status, free_varasm_status,
19169 init_varasm_status): Declare functions.
19170 * toplev.c (rest_of_compilation): Call free_after_compilation when
19171 done with the current function.
19172 * varasm.c (free_varasm_status): New function.
19173
19174 Sat Sep 4 17:15:13 1999 Richard Henderson <rth@cygnus.com>
19175
19176 * sparc.h (EXPAND_BUILTIN_VA_START): Define.
19177 (EXPAND_BUILTIN_VA_ARG): Define.
19178 * sparc.c (sparc_va_start): New.
19179 (sparc_va_arg): New.
19180
19181 Sun Sep 5 11:11:59 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19182
19183 * config/c4x/c4x.h (DBR_OUTPUT_SEQEND): Use XVECEXP not XEXPs.
19184
19185 Sun Sep 5 10:13:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19186
19187 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
19188
19189 Sat Sep 4 13:44:01 1999 Mark Mitchell <mark@codesourcery.com>
19190
19191 * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o.
19192 (OBJS): Add $(GGC).
19193 (ggc-callbacks.o): New target.
19194 * ggc-callbacks.c: New file.
19195
19196 Sat Sep 4 22:53:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19197
19198 * expr.h: Collapse individual optab and libfunc vars to arrays.
19199 (optab_index, libfunc_index): New enumerations.
19200 (optab_table, libfunc_table): New arrays.
19201 Add accessor macros for both.
19202
19203 * optabs.c (optab_table, libfunc_table): New.
19204 Delete declarations for individual optab and libfunc vars.
19205
19206 Sat Sep 4 12:57:17 1999 Richard Henderson <rth@cygnus.com>
19207
19208 * i386/sco5.h (RETURN_POPS_ARGS): Name change ix86_return_pops_args.
19209
19210 Sat Sep 4 11:19:52 1999 Richard Henderson <rth@cygnus.com>
19211
19212 * Makefile.in (GGC, GGC_LIB): New.
19213 (HOST_RTL): Include ggc-none.o.
19214 (ggc-simple.o): New target.
19215 (ggc-none.o): Likewise.
19216 * tree.h (tree_common): Add gc_mark.
19217 * rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
19218 (struct rtvec_def): Add gc_mark.
19219 * emit-rtl.c (global_rtl): Update static initializers to contain
19220 enough initializers.
19221 * ggc.h, ggc-none.c, ggc-simple.c: New files.
19222 * toplev.c (gc_time): New variable.
19223 (all_time): New variable.
19224 (compile_file): Print gc time.
19225 (print_time): Calculate percentage of the whole.
19226
19227 Sat Sep 4 13:11:01 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19228
19229 Change obstack memory management and varasm constant pool handling so
19230 that nested functions are treated like any other functions.
19231 * function.c (init_machine_status): New variable.
19232 (push_function_context_to): Set contains_functions for the outer
19233 function. Don't call save_varasm_status.
19234 (pop_function_context_from): Don't call restore_varasm_status. Don't
19235 set current_function_contains_functions.
19236 (prepare_function_start): Call init_varasm_status rather than
19237 init_const_rtx_hash_table. Call (*init_machine_status) if the pointer
19238 is non-null.
19239 * function.h (struct function) Add field varasm. Delete fields
19240 inline_obstacks, inl_emit, const_rtx_hash_table, first_pool,
19241 last_pool, const_rtx_sym_hash_table, pool_offset, const_double_chain.
19242 (init_machine_status): Declare.
19243 (save_varasm_status, restore_varasm_status): Delete declarations.
19244 (save_tree_status, restore_tree_status): Delete last argument.
19245 * integrate.c (initialize_for_inline): Lose arg COPY. Delete copying
19246 code. All callers changed.
19247 (copy_decl_list, copy_decl_tree, copy_decl_rtls, copy_for_inline,
19248 save_constants_in_decl_trees, restore_constants, save_constants,
19249 save_for_inline_eh_labelmap, save_for_inline_copying): Delete
19250 functions.
19251 (inlining): New variable.
19252 (reg_map, label_map, insn_map, orig_asm_operands_vector,
19253 copy_asm_operands_vector, copy_asm_constraints_vector): Delete
19254 variables.
19255 (save_for_inline_nocopy): Don't save constants.
19256 Don't set inl_emit field in current_function.
19257 (expand_inline_function): Use emit field, not inl_emit, of the inlined
19258 function. Set new variable inlining before
19259 calling copy_rtx_and_substitute.
19260 (copy_rtx_and_substitute): In MEM and SYMBOL_REF cases, handle
19261 constant pool references if inlining is nonzero.
19262 Delete ADDRESS and (most of the) CONST cases.
19263 (output_inline_function): Save and restore current_function/
19264 current_function_decl. Delete restore_constants code. Don't call
19265 init_const_rtx_hash_table.
19266 * output.h (init_const_rtx_hash_table): Don't declare.
19267 * rtl.h (struct function): Declare.
19268 (get_pool_constant_for_function, get_pool_mode_for_function): Declare.
19269 * toplev.c (rest_of_compilation): Don't treat nested functions or
19270 functions containing them specially. Delete all code to deal with
19271 save_for_inline_copying.
19272 * tree.c (toplev_inline_obstacks, extra_inline_obstacks,
19273 inline_obstacks): Delete variables.
19274 (save_tree_status): Lose arg CONTEXT. All callers changed.
19275 Simply allocate a new function_maybepermanent_obstack for the new
19276 function, delete all the special cases.
19277 Don't save inline_obstacks.
19278 (restore_tree_status): Lose arg CONTEXT. All callers changed.
19279 Delete special handling for function_maybepermanent_obstack; simply
19280 free it if empty.
19281 Don't restore inline_obstacks.
19282 (permanent_allocation): Delete code that frees inline_obstacks.
19283 (print_inline_obstack_statistics): Delete function.
19284 (dump_tree_statistics): Don't call it.
19285 * varasm.c (struct varasm_status): New.
19286 (const_rtx_hash_table, const_rtx_sym_hash_table, first_pool,
19287 last_pool, pool_offset, const_double_chain): Delete global
19288 variables, replace with accessor macros.
19289 (immed_double_const): Don't walk const_double_chain outside a
19290 function, but don't treat nested functions specially anymore.
19291 (immed_real_const_1): Likewise.
19292 (clear_const_double_mem): Don't treat nested functions specially.
19293 (init_const_rtx_hash_table): Deleted, code moved to init_varasm_status.
19294 (save_varasm_status, restore_varasm_status): Delete functions.
19295 (init_varasm_status): New function.
19296 (force_const_mem): Don't treat nested functions specially.
19297 (find_pool_constant): Accept new arg F, search for constants in
19298 that function's pool rather than the current one. All callers
19299 changed.
19300 (get_pool_constant_for_function, get_pool_mode_for_function): New
19301 functions.
19302
19303 * i386.c (init_386_machine_status): New function, mostly from
19304 clear_386_stack_locals.
19305 (struct machine_functions): Rename element names to avoid name
19306 clashes.
19307 (pic_label_rtx, pic_label_name, i386_stack_locals): New accessor
19308 macros, replacing global variables.
19309 (clear_386_stack_locals, save_386_machine_status,
19310 restore_386_machine_status): Delete functions.
19311 (override_options): Initialize init_machine_status.
19312 * i386.h (INIT_EXPANDERS): Delete macro.
19313 (save_386_machine_status, restore_386_machine_status,
19314 clear_386_stack_locals): Delete declarations.
19315
19316 Sat Sep 4 16:56:28 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19317
19318 * config/c4x/c4x.md (rptb_init): Renamed from *rptb_init.
19319 (doloop_begin): Simplify pattern and use emit_jump_insn.
19320 (doloop_end): Simplify pattern, switch operand order,
19321 and use emit_jump_insn.
19322
19323 Fri Sep 3 19:02:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
19324
19325 * function.h (struct function): Add new element LANGUAGE.
19326 (save_lang_status): Declare new variable.
19327 (restore_lang_status): Likewise.
19328 * function.c (save_lang_status): Define.
19329 (restore_lang_status): Likewise.
19330 (push_function_context_to): Call language-specific save function.
19331 (pop_function_context_from): Call language-specific restore function.
19332
19333 Fri Sep 3 01:16:18 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
19334
19335 * i386.md (movsf_1): Check REG_P before use of REGNO.
19336 (movdf_1): Likewise.
19337 (movxf_1): Likewise.
19338 (extendsfdf2): Likewise.
19339 (extendsfxf2): Likewise.
19340 (extenddfxf2): Likewise.
19341
19342 Sat Sep 4 11:37:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19343
19344 * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
19345 constants into memory.
19346 (c4x_shiftable_constant): New function.
19347 * config/c4x/c4x.c (LEGITIMATE_CONSTANT_P): Allow any CONST_INT.
19348 (c4x_shiftable_constant): Declare.
19349 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant,
19350 ashlqi3_noclobber): Add new patterns and associated splitters.
19351
19352 Fri Sep 3 16:22:17 1999 Richard Henderson <rth@cygnus.com>
19353
19354 * dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
19355 * dwarf2out.c (dwarf2out_frame_init): Likewise.
19356 * final.c (shorten_branches): Likewise.
19357 * global.c (global_alloc): Likewise.
19358 * haifa-sched.c (build_control_flow): Likewise.
19359 * stmt.c (check_for_full_enumeration_handling): Likewise.
19360 (estimate_case_costs): Likewise.
19361
19362 Fri Sep 3 15:49:56 1999 Mark Mitchell <mark@codesourcery.com>
19363
19364 * rtl.h (RTL_CHECKC2): Fix typo in last change.
19365
19366 Fri Sep 3 15:13:34 1999 Richard Henderson <rth@cygnus.com>
19367
19368 * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
19369 (recompute_reg_usage): Likewise.
19370 * rtlanal.c (find_regno_fusage): Likewise.
19371
19372 * rtl.c (rtl_check_failed_code1): New function.
19373 (rtl_check_failed_code2): New.
19374 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
19375 (RTL_CHECKC1, RTL_CHECKC2): New.
19376 (XC*): New accessor macros.
19377 (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
19378 (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
19379 (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
19380 (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
19381 (TRAP_*, RANGE_INFO_*): Likewise.
19382
19383 Fri Sep 3 15:10:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19384
19385 * Makefile.in (tlink.o): Don't depend on toplev.h.
19386
19387 * collect2.c (c_file, o_file, export_file, import_file, ldout,
19388 output_file, nm_file_name, ldd_file_name, strip_file_name,
19389 c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
19390 add_prefix, prefix_from_env, prefix_from_string, do_wait,
19391 fork_execute, maybe_unlink, add_to_list,
19392 extract_init_priority, write_list, dump_list,
19393 dump_prefix_list, write_list_with_asm, write_c_file,
19394 write_c_file_stat, write_c_file_glob, scan_prog_file,
19395 scan_libraries, is_in_list, resolve_lib_name, use_import_list,
19396 ignore_library, extract_string, notice, dump_file, target_machine,
19397 collect_wait, collect_execute, libname, locatelib, aix_std_libs,
19398 read_file, print_load_command): Constify a char*.
19399 (fdopen, error, fatal, fatal_perror): Don't prototype.
19400 (my_strerror): Remove. All callers use xstrerror instead.
19401 (xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
19402 (main): Add prototype. Constify lots of char* ptrs. Change calls
19403 to xcalloc/strcpy/strcat/... to one call to concat.
19404 (main, scan_prog_file, scan_libraries): Use an intermediate
19405 `const char **' to build an argv array.
19406 (mapfile, libselect, libcompare, locatelib): Add prototypes.
19407
19408 * collect2.h (collect_execute, collect_wait, dump_file,
19409 file_exists): Constify a char*.
19410 (ldout, c_file_name, temporary_obstack, permanent_obstack,
19411 temporary_firstobj, vflag, debug): Add extern declarations.
19412 (fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
19413
19414 * tlink.c: Don't include toplev.h.
19415 (vflag, debug, ldout, c_file_name, temporary_obstack,
19416 permanent_obstack, temporary_firstobj): Don't declare.
19417 (tlink_execute, frob_extension, symbol_hash_lookup,
19418 file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
19419 recompile_files, read_repo_files, demangle_new_symbols,
19420 scan_linker_output): Constify a char*.
19421 (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
19422 do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
19423
19424 Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
19425
19426 * config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
19427 (relative) rather than jsr (absolute) subroutine call insns.
19428 * config/m68k/m68k-coff.h: Ditto.
19429
19430 Fri Sep 3 17:24:31 1999 Richard Earnshaw <rearnsha@arm.com>
19431
19432 * arm.c (note_invalid_constants): No need to ignore ASMs, we can
19433 now rework these too.
19434 (arm_reorg): If an insn can't reach the end of the current pool,
19435 ensure that we emit that pool before the insn.
19436
19437 Fri Sep 3 09:14:32 1999 Marc Espie <espie@tetto.liafa.jussieu.fr>
19438
19439 * tlink.c (scan_linker_output): Skip the initial underscore in
19440 a mangled name if appropriate.
19441
19442 Fri Sep 3 01:28:33 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19443
19444 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
19445 objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
19446 error_with_ivar, gen_declarator, create_builtin_decl,
19447 my_build_string, generate_descriptor_table, generate_ivars_list,
19448 generate_dispatch_table, check_protocols, TAG_GETCLASS,
19449 TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
19450 dump_base_name, lang_decode_option, build_encode_expr,
19451 start_class, finish_class, encode_pointer, really_start_method,
19452 gen_declaration, dump_interface, handle_class_ref, handle_impent):
19453 Constify.
19454 (objc_demangle, objc_printable_name, generate_struct_by_value_array):
19455 Add static prototypes.
19456 (build_objc_string_decl, build_selector_reference_decl,
19457 encode_bitfield, build_class_reference_decl): Remove unused
19458 parameter, all callers changed.
19459 (maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
19460 (objc_printable_name): Likewise. Change second parameter to type int.
19461 (init_objc): Use memcpy, not bcopy, to avoid casts.
19462
19463 Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
19464
19465 * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
19466 reg notes on a deleted insn.
19467 * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
19468
19469 Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
19470
19471 * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
19472
19473 Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
19474
19475 * stmt.c (expand_asm_operands): Fix index into inout_mode when
19476 reading it.
19477
19478 Thu Sep 2 13:00:48 1999 Richard Henderson <rth@cygnus.com>
19479
19480 * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
19481 * tm.texi (MD_ASM_CLOBBERS): Document it.
19482
19483 Thu Sep 2 10:22:40 1999 Richard Henderson <rth@cygnus.com>
19484
19485 * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
19486 * except.c (expand_rethrow): Remove unused variable.
19487 * expr.c (do_jump_by_parts_greater_rtx): Likewise.
19488 * flow.c (replace_insns): Likewise.
19489 (create_edge_list, verify_edge_list): Likewise.
19490 * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
19491
19492 * genemit.c (gen_expand): Only emit `operands[N]' decl if there
19493 is special code to run.
19494 (main): Don't define operands to emit_operand.
19495 * genrecog.c (main): Don't emit an empty peephole2_insn function.
19496
19497 * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
19498
19499 * alpha/alpha.h (normal_memory_operand): Declare.
19500 (reg_no_subreg_operand): Declare.
19501 * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
19502
19503 Thu Sep 2 10:19:20 1999 Richard Henderson <rth@cygnus.com>
19504
19505 * c-parse.in (compstmt_primary_start): New, broken out of first
19506 part of compstmt handling in primary.
19507 (primary): Use it. Add an error clause.
19508 (compstmt_nostart): Renamed from compstmt; remove all
19509 initial invocations of compstmt_start.
19510 (compstmt): New.
19511
19512 Thu Sep 2 01:35:50 1999 Marc Espie <espie@cvs.openbsd.org>
19513
19514 * protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
19515 needed.
19516
19517 Thu Sep 2 00:43:59 1999 Finn Hakansson <finn@axis.com>
19518
19519 * combine.c (simplify_shift_const): Remove extra semicolon.
19520 * dwarf2out.c (remove_AT): Likewise.
19521 * expmed.c (expand_mult): Likewise.
19522 * gcov.c (create_program_flow_graph): Likewise.
19523 * reorg.c (mostly_true_jump): Likewise.
19524
19525 Thu Sep 2 00:06:43 1999 Jeffrey A Law (law@cygnus.com)
19526
19527 * fold-const.c (fold_range_test): Do not try to fold the range
19528 test if the rhs or lhs has side effects.
19529
19530 * combine.c (simplify_rtx): Recognize another case of a synthesized
19531 sign extension.
19532
19533 * varasm.c (mark_constant_pool): When marking indirect references,
19534 only look at SYMBOL_REFs.
19535
19536 * except.c (expand_fixup_region_end): Do not peek at
19537 INSN_UID (node->entry->outer_context) for flag_new_exceptions.
19538
19539 Thu Sep 2 13:52:53 1999 Geoffrey Keating <geoffk@cygnus.com>
19540
19541 * flags.h: New variables align_loops, align_loops_log,
19542 align_jumps, align_jumps_log, align_labels, align_labels_log,
19543 align_functions, align_functions_log.
19544 * toplev.c: Define them.
19545 (f_options): Handle -falign-* when they have no argument.
19546 (main): Add logic to set variables for -falign-functions,
19547 -falign-jumps, -falign-labels, -falign-loops.
19548 Make it -fsched-verbose=<n> and -finline-limit=<n>.
19549 (display_help): Change help to match options.
19550 * final.c (LABEL_ALIGN): Default to align_labels_log.
19551 (LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
19552 (LOOP_ALIGN): Default to align_loops_log.
19553 (LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
19554 (LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
19555 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
19556 * varasm.c (assemble_start_function): Handle align_functions.
19557
19558 * config/sparc/sparc.h: Don't declare sparc_align_*.
19559 Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
19560 (DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
19561 sparc.c.
19562 (FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
19563 it's a promise.
19564 * config/sparc/sparc.c: Delete sparc_align_loops,
19565 sparc_align_jumps, sparc_align_funcs and the corresponding string
19566 variables.
19567 (sparc_override_options): Default align_functions on ultrasparc.
19568 Delete -malign-* handling.
19569
19570 * config/mips/mips.c (override_options): On 64-bit targets,
19571 try to align code to 64-bit boundaries.
19572 (print_operand): New substitution, %~,
19573 which aligns labels to align_labels_log.
19574 * config/mips/mips.md (div_trap_normal): Use %~.
19575 (div_trap_mips16): Likewise.
19576 (abssi): Likewise.
19577 (absdi2): Likewise.
19578 (ffssi2): Likewise.
19579 (ffsdi2): Likewise.
19580 (ashldi3_internal): Likewise.
19581 (ashrdi3_internal): Likewise.
19582 (lshrdi3_internal): Likewise.
19583 (casesi_internal): Likewise.
19584
19585 Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
19586
19587 Merge new ia32 backend from the branch!
19588
19589 * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
19590 See ChangeLog.P2 on new_ia32_branch for details.
19591
19592 * rtl.h (stack_regs_mentioned_p): Delete prototype.
19593 * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
19594 * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19595 * i386/gas.h (ASM_FILE_START): Define.
19596 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
19597 for name change of ix86_valid_decl_attribute_p.
19598 (i386_pe_valid_type_attribute_p): Similarly.
19599
19600 Wed Sep 1 18:21:23 1999 Richard Henderson <rth@cygnus.com>
19601
19602 * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
19603 to step through CC modes.
19604
19605 Wed Sep 1 20:18:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
19606
19607 * regmove.c (fixup_match_1): Don't move INSN in front of P if
19608 it would end up in the shadow of a live flags regsiter.
19609
19610 Wed Sep 1 11:32:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19611
19612 * reload1.c: Fix many indentation problems.
19613 * reload.c: Likewise.
19614
19615 Tue Aug 31 22:08:03 1999 Marc Espie <espie@cvs.openbsd.org>
19616
19617 * alias.c (non_local_reference_p): Constify fmt.
19618
19619 Tue Aug 31 23:19:35 1999 Michael Meissner <meissner@cygnus.com>
19620
19621 * config/i386/xm-cygwin.h (HAVE_DOS_BASED_FILE_SYSTEM): Define.
19622
19623 Tue Aug 31 16:44:52 1999 Jeffrey A Law (law@cygnus.com)
19624
19625 * cse.c (delete_trivially_dead_insns): Do not delete stores to
19626 the internal_arg_pointer.
19627
19628 Tue Aug 31 13:35:42 1999 Richard Henderson <rth@cygnus.com>
19629
19630 Merge peephole2 from new_ia32_branch:
19631 * Makefile.in (STAGESTUFF): Add *.peephole2.
19632 (mostlyclean): Likewise.
19633 (recog.o): Depend on resource.h.
19634
19635 * final.c (peephole): Conditionalize decl on HAVE_peephole.
19636 (final_scan_insn): Likewise for the invocation of peephole.
19637 * genconfig.c (main): Look for peephole and peephole2 patterns.
19638 Emit HAVE_peephole* accordingly.
19639 * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
19640 * flags.h (flag_peephole2): Declare.
19641 * toplev.c: New pass peephole2. New flag -fpeephole2.
19642
19643 * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
19644 * gencodes.c (main): Likewise.
19645 * genextract.c (main): Likewise.
19646 * genoutput.c (main): Likewise.
19647 * genemit.c (max_operand_1): Look for the max scratch operand.
19648 (gen_rtx_scratch): New.
19649 (gen_exp): Use it, and pass on new arg subroutine_type.
19650 (gen_expand): Take max scratch into account.
19651 (gen_split): Emit peephole2 functions.
19652 (output_peephole2_scratch): New.
19653 (main): Include hard-reg-set.h and resource.h. Handle peephole2.
19654 * genrecog.c (routine_type): Add PEEPHOLE2.
19655 (IS_SPLIT): New.
19656 (make_insn_sequence): Match outer parallel for peep2. Discard
19657 top level scratches and dups.
19658 (add_to_sequence): New args insn_type and top. Update all callers.
19659 Handle toplevel peep2 matching insns.
19660 (write_subroutine): Handle peep2.
19661 (write_tree_1): Likewise.
19662 (write_tree): Likewise.
19663 (main): Likewise.
19664 (change_state): New arg afterward. Update all callers.
19665 Handle matching separate insns.
19666 * recog.c (recog_next_insn): New.
19667 (peephole2_optimize): New.
19668 * rtl.def (DEFINE_PEEPHOLE2): New.
19669 * resource.c (find_free_register): New argument last_insn. Use it
19670 to find a register available through the entire span.
19671 * resource.h (find_free_register): Update prototype.
19672
19673 Tue Aug 31 11:51:06 1999 Jim Kingdon <http://developer.redhat.com>
19674
19675 * i386.c (output_strlen_unroll): Don't write xops[7]
19676 label if it wasn't set.
19677
19678 1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
19679
19680 * cpplib.c (struct directive): Const-ify name pointer and
19681 function pointer prototype.
19682 (validate_else, do_define, do_line, do_include, do_undef,
19683 do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
19684 do_elif, do_endif, do_sccs, do_assert, do_unassert,
19685 do_warning): Const-ify second arg.
19686 (directive_table): Mark const. Reorder entries by frequency
19687 of usage, record statistics.
19688
19689 1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
19690
19691 * rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
19692 bounds- check RTL accesses if --enable-checking.
19693 (RTVEC_ELT): Bounds check if --enable-checking.
19694 (XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
19695 XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
19696 (XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
19697 GET_NUM_ELEM.
19698 (X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
19699 X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
19700
19701 (ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
19702 (NOTE_SOURCE_FILE): Use X0STR.
19703 (NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
19704 MEM_ALIAS_SET): Use X0INT.
19705 (NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
19706 JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
19707 Use X0EXP.
19708 * real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
19709 * rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
19710 (rtl_check_failed_bounds, rtl_check_failed_type1,
19711 rtl_check_failed_type2, rtvec_check_failed_bounds): New
19712 functions.
19713 (fancy_abort): Fix comment.
19714
19715 * cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
19716 (cse_insn): Decrement LABEL_NUSES for jump target before
19717 deleting jump insn.
19718 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
19719 * final.c (alter_subreg): Compute regno before changing x to
19720 REG; set REGNO(x) after changing it.
19721 * flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
19722 notes containing CONST_INTs.
19723 (delete_eh_regions): Use NOTE_EH_HANDLER.
19724 * function.c (put_reg_into_stack): Make reg a MEM before
19725 initializing it.
19726 (fixup_var_refs_insns): Save REG_NOTES (insn) in case we
19727 delete insn.
19728 (gen_mem_addressof): Make reg a MEM before initializing it.
19729 * integrate.c (copy_rtx_and_substitute): Copy '0' slots with
19730 X0WINT.
19731 * local-alloc.c (update_equiv_regs): Zap REG_NOTES before
19732 deleting an insn, not after.
19733 (block_alloc): Only look at PATTERN(insn) if we have to, and
19734 only if it's format class 'i'.
19735 * loop.c (check_dbra_loop): Check bl->biv->add_val is a
19736 CONST_INT before using its INTVAL.
19737 * print-rtl.c (print_rtx): Use X0STR.
19738 * regmove.c (fixup_match_1): Don't look at PATTERN of
19739 non-class-'i' insn chain elements.
19740 * reload.c (loc_mentioned_in_p): Take address of
19741 in->fld[1].rtx directly.
19742 * reload1.c (reload): Change reg to a MEM before initializing
19743 it.
19744 * varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
19745 have no names.
19746 * config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
19747
19748 Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
19749
19750 * config/mips/mips.c (machine_dependent_reorg): Force a
19751 barrier to output the local constant pool if a barrier hasn't
19752 been found at a natural point in the instruction stream.
19753
19754 Mon Aug 30 22:04:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19755
19756 * c-parse.in (language_string): Constify.
19757
19758 * dwarf2out.c (language_string): Remove declaration.
19759
19760 * dwarfout.c (language_string): Likewise.
19761
19762 * toplev.c (language_string, init_parse, finish_parse): Likewise.
19763
19764 * tree.h (language_string, init_parse, finish_parse): Declare.
19765
19766 * i386/sun386.h (language_string): Remove declaration.
19767
19768 * mips.h (language_string): Likewise.
19769
19770 * nextstep.h (language_string): Likewise.
19771
19772 * nextstep21.h (language_string): Likewise.
19773
19774 * rs6000.c (language_string): Likewise.
19775
19776 Mon Aug 30 20:56:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19777
19778 * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
19779 (getpwd.o): Remove target.
19780
19781 * getpwd.c: Delete file. Its in libiberty now.
19782
19783 * dbxout.c (getpwd): Don't prototype.
19784 * dwarf2out.c (getpwd): Likewise
19785 * dwarfout.c (getpwd): Likewise
19786 * final.c (getpwd): Likewise.
19787 * protoize.c (getpwd): Likewise.
19788
19789 Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19790
19791 * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
19792
19793 Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
19794
19795 * flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
19796 mark_set_resources.
19797
19798 Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
19799
19800 * fixinc/Makefile.in (subdir): New.
19801 (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
19802 (Makefile): New.
19803
19804 Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
19805
19806 * emit-rtl.c (copy_rtx_if_shared): A MEM which references
19807 virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
19808 be shared.
19809
19810 * invoke.texi: Fix typo.
19811
19812 * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
19813 changed. Handle autoincrement addressing modes.
19814
19815 * integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
19816 just like we would the virtual incoming args register when
19817 integrating.
19818
19819 Sun Aug 29 23:17:54 1999 David Edelsohn <edelsohn@gnu.org>
19820
19821 * rs6000.h (ASM_FILE_START): Specify complete filename, including
19822 path, in .file directive.
19823
19824 Sun Aug 29 05:06:43 1999 Russ Allbery <rra@stanford.edu>
19825
19826 * gcc.texi (External Bugs): Remove obsolete note about Perl on
19827 SunOS.
19828
19829 1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
19830
19831 * stdbool.h: Make the typedef name _Bool, with bool a #defined
19832 alias.
19833
19834 Sun Aug 29 09:36:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19835
19836 * tree.c (tree_code_name): Constify a char*.
19837
19838 * tree.h (tree_code_name, decl_printable_name): Likewise.
19839
19840 * function.h (struct function): Likewise.
19841
19842 * toplev.c (decl_name, decl_printable_name): Likewise.
19843
19844 * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
19845
19846 * objc/objc-act.c (decl_printable_name): Remove redundant prototype.
19847 (init_objc): Remove function pointer cast.
19848
19849 Sun Aug 29 05:01:17 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
19850
19851 * pa.md (interspace_jump): New pattern.
19852 (builtin_longjmp): New expander.
19853
19854 1999-08-29 Bernd Schmidt <bernds@cygnus.co.uk>
19855
19856 * fp-bit.c (add, sub, multiply, divide, compare, _eq_f2, _ne_f2,
19857 _gt_f2, _ge_f2, _lt_f2, _le_f2, float_to_si, float_to_usi, negate,
19858 sf_to_df, df_to_sf): Fix potential problem with alias analysis.
19859
19860 Sun Aug 29 04:30:52 1999 John Wehle (john@feith.com)
19861
19862 * jump.c (delete_prior_computation): Also check calls
19863 to constant functions. Don't bother checking for a
19864 REG_UNUSED note before adding it.
19865 (delete_computation): Handle multi-word hard registers
19866 when synthesizing missing REG_DEAD notes for a register
19867 which is both set and used by an insn.
19868
19869 1999-08-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19870
19871 * loop.c (this_loop_info): New variable.
19872 (loop_has_call, loop_has_volatile, loop_has_tablejump,
19873 loop_continue, loops_enclosed): Replace with fields in this_loop_info.
19874 All uses updated.
19875 (prescan_loop, strength_reduce): New argument loop_info. All callers
19876 updated.
19877 (scan_loop): New variable loop_info, initialise to address of
19878 this_loop_info.
19879 (prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
19880 Delete variable loop_has_multiple_exit targets and replace with
19881 field in this_loop_info.
19882 (find_and_verify_loops): Rename this_loop to this_loop_num.
19883 (strength_reduce): Delete loop_iteration_info. Replace variable
19884 loop_info with function argument of same name.
19885 (insert_bct): Rework test for loop being completely unrolled.
19886
19887 * loop.h (struct loop_info): New fields num, loops_enclosed,
19888 has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
19889 has_indirect_jump, and cont. Redefine use of unroll_number.
19890 (loop_unroll_number): Delete.
19891
19892 * unroll.c (unroll_loop): Store loop unroll count in unroll_number
19893 field of loop_info.
19894 (loop_iterations): Delete variable vtop and instead use
19895 loop_info->vtop computed in prescan_loop.
19896
19897 Sun Aug 29 03:27:23 1999 Scott Weikart <scott@igc.apc.org>
19898
19899 * fix-header.c (main): Do not pass a null pointer to strcmp.
19900
19901 Sun Aug 29 03:18:48 1999 William Bader (william@nscs.fast.net)
19902
19903 * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
19904 filenames.
19905 * configure: Rebuilt.
19906
19907 Sat Aug 28 19:36:05 1999 Jeffrey A Law (law@cygnus.com)
19908
19909 * jump.c (jump_optimize_1): Do not delete assignments to
19910 internal_arg_pointer.
19911 * cse.c (delete_trivially_dead_insns): Always consider a set of
19912 the internal_arg_pointer live.
19913
19914 Sat Aug 28 16:24:31 1999 Richard Henderson <rth@cygnus.com>
19915
19916 * flow.c (flow_delete_insn_chain): Rename from delete_insn_chain.
19917 (update_life_info) [REG_WAS_0]: Search the original insns rather
19918 than the new insns for the note. Fix typos finding note_dest.
19919 If no dest found, discard the note rather than abort.
19920 [REG_NOALIAS]: Handle as REG_NO_CONFLICT.
19921 (replace_insns): Remove the old insn list after update_life_info
19922 not before.
19923
19924 Sat Aug 28 16:20:12 1999 Richard Henderson <rth@cygnus.com>
19925
19926 * haifa-sched.c (sched_analyze): Clear LOG_LINKS before calling
19927 sched_analyze_insn.
19928 (sched_analyze_1): Let add_dependence care for not adding dups.
19929 (sched_analyze_2): Likewise.
19930 (add_branch_dependences): Likewise.
19931
19932 Sat Aug 28 15:58:16 1999 Mumit Khan <khan@xraylith.wisc.edu>
19933
19934 * i386/winnt.c (export_list): New type.
19935 (exports_head): Rename to
19936 (export_head): this.
19937 (i386_pe_record_exported_symbol): Add is_data flag.
19938 (i386_pe_asm_file_end): Emit directive for exported variables.
19939 * i386/cygwin.h (i386_pe_record_exported_symbol): Update
19940 prototype.
19941 * i386/cygwin.h (ASM_OUTPUT_COMMON): Specify symbol type.
19942 (ASM_DECLARE_OBJECT_NAME): Likewise.
19943 (ASM_DECLARE_FUNCTION_NAME): Likewise.
19944 * i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19945
19946 Fri Aug 27 15:35:24 1999 Jeffrey A Law (law@cygnus.com)
19947
19948 * cse.c (fold_rtx): Work around bug in Sun V5.0 compilers.
19949
19950 * pa.c (emit_move_sequence): Do not stop on SUBREG_WORD of an
19951 operand.
19952
19953 Fri Aug 27 14:01:19 1999 Marc Espie <espie@cvs.openbsd.org>
19954
19955 * config/openbsd.h: Define SET_ASM_OP.
19956 * tm.texi: cross-reference SET_ASM_OP in the index.
19957
19958 1999-08-27 13:27 -0700 Zack Weinberg <zack@bitmover.com>
19959
19960 * rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
19961 for a CONST_DOUBLE, at compile time. Initialize rtx_length
19962 and class_narrowest_mode at compile time. Kill init_rtl.
19963 Mark rtx_length, mode_class, mode_size, mode_unit_size,
19964 mode_wider_mode, mode_mask_array, class_narrowest_mode, and
19965 rtx_format as const. Kill all references to EXTRA_CC_MODES or
19966 EXTRA_CC_NAMES.
19967 * rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
19968 format.
19969 * rtl.h: Declare rtx_length and rtx_format as const.
19970 * machmode.def: Define CC(). Use CC() to define CCmode. If
19971 EXTRA_CC_MODES is defined, expand it here.
19972 * machmode.h: Declare mode_class, mode_size, mode_unit_size,
19973 mode_wider_mode, mode_mask_array, and class_narrowest_mode as
19974 const. Kill all references to EXTRA_CC_MODES.
19975
19976 * toplev.c: Don't prototype or call init_rtl.
19977 * optabs.c: Don't call init_mov_optab.
19978 * genemit.c: Don't generate init_mov_optab. Don't call
19979 init_rtl.
19980 * gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
19981 here.
19982 * genattr.c, genattrtab.c, gencodes.c, genconfig.c,
19983 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
19984 genrecog.c: Don't call init_rtl.
19985
19986 * arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
19987 rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES. Use CC() in
19988 definition of EXTRA_CC_MODES.
19989
19990 * md.texi: Kill ref to EXTRA_CC_NAMES.
19991 * tm.texi: Document new way to define EXTRA_CC_MODES.
19992
19993 * genrecog.c: Do not look up the name of a define_split.
19994 (Unrelated bugfix.)
19995
19996 Fri Aug 27 17:03:42 1999 Nick Clifton <nickc@cygnus.com>
19997
19998 * config/v850/v850.md: Fix typo introduced by previous delta.
19999
20000 Fri Aug 27 09:48:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20001
20002 * gcc.c (fatal): Make definition static to match prototype.
20003
20004 Fri Aug 27 10:33:35 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20005
20006 * combine.c (get_last_value): Don't look for earlier sets if the last
20007 known set is somewhere in between the insns being combined.
20008
20009 Fri Aug 27 10:03:12 BST 1999 Nathan Sidwell <nathan@acm.org>
20010
20011 * configure.in: Don't use shell ! to negate exit codes
20012 * configure: Regenerate
20013
20014 Fri Aug 27 09:36:17 1999 Andreas Schwab <schwab@suse.de>
20015
20016 * function.c (assign_stack_temp_for_type): Fix change of Mar 5 for
20017 the fact that ALIGN is measured in bits, not bytes.
20018
20019 1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
20020
20021 * errors.c: New file; defines functions error, warning, and
20022 fatal, variables have_error and progname.
20023 * errors.h: New file; prototypes and decls for stuff in errors.c.
20024
20025 * Makefile: Add rules to build errors.o and
20026 $(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
20027 genopinit, genrecog, genextract, genpeep, genattr, and
20028 genoutput with errors.o. Add errors.h to deps of genconfig.o,
20029 gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
20030 genpeep.o, genattr.o, and genoutput.o.
20031
20032 * genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
20033 genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
20034 define or prototype fatal. Set progname at beginning of main.
20035 * genoutput.c: Likewise, and don't define or prototype error
20036 either.
20037
20038 * c-typeck.c (c_expand_start_case): Return immediately if exp
20039 is an ERROR_MARK.
20040 * fold-const.c (operand_equal_p): Return immediately if arg1
20041 or arg0 are ERROR_MARKs.
20042 * stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
20043 fields of type ERROR_MARK when calculating if the record can
20044 go in a register.
20045
20046 Fri Aug 27 01:03:48 1999 Jim Kingdon <http://developer.redhat.com>
20047 with much help from Jeffrey A Law and Richard Henderson
20048
20049 * i386.md: In the 6 insns which call output_fix_trunc,
20050 earlyclobber operands[0].
20051
20052 Fri Aug 27 01:01:51 1999 Philip Blundell <pb@nexus.co.uk>
20053
20054 * jump.c (duplicate_loop_exit_test): Call reg_scan_update after
20055 creating new registers.
20056
20057 1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
20058
20059 * i386.h: Declare ix86_cpu_string, ix86_arch_string,
20060 i386_reg_alloc_order, i386_regparm_string,
20061 i386_align_loops_string, i386_align_jumps_string,
20062 i386_align_funcs_string, i386_preferred_stack_boundary_string,
20063 and i386_branch_cost_string as type "const char *".
20064 * i386.c: Define all above strings as type "const char *".
20065
20066 Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com>
20067
20068 * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE
20069 when emitting alignment padding. Emit padding byte of 0 instead of 4.
20070
20071 Thu Aug 26 18:11:20 1999 Mark Mitchell <mark@codesourcery.com>
20072
20073 * tree.c (array_type_nelts): Don't create RTL_EXPRs from
20074 SAVE_EXPRs unless the SAVE_EXPRs have already been expanded.
20075
20076 Thu Aug 26 19:33:23 1999 Jim Wilson <wilson@cygnus.com>
20077
20078 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Add default definition.
20079 (debug_dwarf): Add DWARF2_ASM_LINE_DEBUG_INFO support.
20080 (dwarf2out_line, dwarf2out_finish): Likewise.
20081 * tm.texi (DWARF2_ASM_LINE_DEBUG_INFO): Add documetation.
20082
20083 Thu Aug 26 16:10:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
20084
20085 * tree.c (lang_unsave_expr_now) : Correct return type.
20086 * tree.h (lang_unsave_expr_now) : Same.
20087
20088 Thu Aug 26 13:12:29 1999 Jeffrey A Law (law@cygnus.com)
20089
20090 * pa.c (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
20091 instead of duplicating code.
20092
20093 Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20094
20095 * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
20096
20097 1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
20098
20099 * tree.h: fancy_abort always takes three args.
20100 * resource.c: Move include of system.h before toplev.h.
20101
20102 Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
20103
20104 * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
20105 as SYMBOL_REFs.
20106
20107 1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
20108
20109 * system.h: Don't redefine abort or trim_filename.
20110 * rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
20111 or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
20112 whether or not __FUNCTION__ is available.
20113 * tree.h: Duplicate rtl.h's definition of abort, for files
20114 that don't include rtl.h. Delete all code to perform type
20115 checking with a compiler other than GCC.
20116 * varray.h: Delete all code to perform type checking with a
20117 compiler other than GCC. Make VARRAY_CHECK() always evaluate
20118 its arguments exactly once, using a statement expression.
20119 Adjust the VARRAY_<type> accessor macros to match.
20120 * toplev.h (fatal_insn, fatal_insn_not_found): Kill.
20121 (_fatal_insn, _fatal_insn_not_found): New fns, take info on
20122 caller's location. Define fatal_insn and fatal_insn_not_found
20123 as macros that use _fatal_insn and _fatal_insn_not_found.
20124 (fancy_abort, trim_filename): Kill prototypes.
20125
20126 * rtl.c (trim_filename): Move here from toplev.c.
20127 (fancy_abort): New function.
20128 (DIR_SEPARATOR): Provide default definition.
20129 * tree.c (tree_check_failed, tree_class_check_failed): Go
20130 through fancy_abort.
20131 (tree_check, tree_class_check, cst_or_constructor_check,
20132 expr_check): Delete.
20133 * varray.c (varray_check_failed): New function.
20134 * toplev.c (fatal_insn, fatal_insn_not_found): Replace with
20135 _fatal_insn and _fatal_insn_not_found. Go through
20136 fancy_abort.
20137 (trim_filename, fancy_abort): Delete.
20138
20139 * builtins.c (expand_builtin_args_info): Report ICE with abort.
20140 * except.c (start_catch_handler): Report ICE with error/abort
20141 combo.
20142 * final.c (output_operand_lossage): Likewise.
20143 * flow.c (verify_flow_info): Likewise.
20144
20145 * gcc.c: Prototype fatal.
20146 * gengenrtl.c: Undef abort after including rtl.h not system.h.
20147 * genattr.c, genattrtab.c, genemit.c, genextract.c,
20148 genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
20149 Don't define fancy_abort.
20150
20151 Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
20152
20153 * optabs.c (emit_cmp_and_jump_insns): Be more thorough in
20154 canonization.
20155
20156 Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
20157
20158 * m88k.h (VERSION_INFO2): Kill.
20159 (VERSION_STRING): Kill.
20160 (TM_RCS_ID): Kill.
20161 (VERSION_INFO1): Tidy.
20162 (TARGET_VERSION): Update.
20163 * m88k/dgux.h (VERSION_INFO2): Kill.
20164 (ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
20165 * m88k/luna.h (VERSION_INFO1): Tidy.
20166 * m88k/sysv4.h (VERSION_INFO1): Likewise.
20167 * m88k.c (out_rcs_id, tm_rcs_id): Kill.
20168 (output_file_start): Adjust for death of VERSION_STRING.
20169
20170 1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
20171
20172 * cpplib.c (detect_if_not_defined): New function.
20173 (do_if): Use it to detect potential once-only headers.
20174
20175 Wed Aug 25 14:00:18 1999 Jason Merrill <jason@yorick.cygnus.com>
20176
20177 * c-common.c (combine_strings): Always set TREE_CONSTANT.
20178
20179 Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
20180
20181 * combine.c (nonzero_bits) : Allow single-ly set registers to be
20182 anywere in the function only if they are pseudos and set before
20183 being used (not live at the start of the function).
20184 (num_sign_bit_copies) : Same.
20185 (get_last_value_validate) : Same.
20186 (get_last_value) : Same.
20187
20188 Wed Aug 25 11:13:29 1999 Richard Henderson <rth@cygnus.com>
20189
20190 * loop.c (express_from): Try harder to unify (* c N) and (* c M)
20191 where N and M are constant and N is an integer multiple of M.
20192
20193 Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
20194
20195 * sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
20196 (sbitmap_intersection_of_preds, sbitmap_union_of_succs,
20197 sbitmap_union_of_preds): Add prototypes.
20198 * sbitmap.c (sbitmap_intersection_of_succs): New function to compute
20199 the intersection of successors with the new flow graph structures.
20200 (sbitmap_intersection_of_preds): New function to compute the
20201 intersection of predecessors with the new flow graph structures.
20202 (sbitmap_union_of_succs): New function to compute the union of
20203 successors with the new flow graph structures.
20204 (sbitmap_union_of_preds): New function to compute the union of
20205 predecessors with the new flow graph structures.
20206 * gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
20207 (expr_reaches_here_p): Use edge and basic_block structures instead
20208 of s_preds and s_succs.
20209 (compute_cprop_avinout): Use new sbitmap routines.
20210 (pre_expr_reaches_here_p): Use edge and basic_block structures instead
20211 of s_preds and s_succs.
20212 * flow.c (compute_flow_dominators): Compute dominators using
20213 edges and basic blocks instead of s_preds and s_succs.
20214
20215 Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
20216
20217 * lists.c (unused_insn_list, unused_expr_list): New file for
20218 maintaining various types of lists. New statics for maintaining a
20219 cache of available INSN_LIST and EXPR_LIST nodes.
20220 (free_list): Static function for freeing a list of INSN/EXPR nodes.
20221 (alloc_INSN_LIST): Function to get a free INSN_LIST node.
20222 (alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
20223 (init_EXPR_INSN_LIST_cache): Initialize the cache lists.
20224 (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
20225 (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
20226 (free_EXPR_LIST_node): Free an individual EXPR_LIST node.
20227 (free_INSN_LIST_node): Free an individual INSN_LIST node.
20228 * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
20229 (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
20230 (remove_dependence, free_pending_lists): Use new global routines.
20231 (flush_pending_lists, sched_analyze_insn): Use new global routines.
20232 (sched_analyze, compute_block_backward_dependences): Use new routines.
20233 (sched_analyze_1, sched_analyze_2): Use new routines.
20234 (schedule_insns): Use new global routines.
20235 * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
20236 prototypes.
20237 (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
20238 (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
20239 prototypes.
20240 * toplev.c (rest_of_compilation): Initialize node cache.
20241 * Makefile.in (OBJS): Add lists.o to list of object files.
20242 (lists.o): Add dependancies.
20243
20244 Wed Aug 25 17:31:56 1999 Nick Clifton <nickc@cygnus.com>
20245
20246 * config/v850/v850.md: Fix compile time warning messages.
20247 * config/v850/v850.c: Fix compile time warning messages.
20248 * config/v850/v850.h: Fix compile time warning messages.
20249
20250 Wed Aug 25 09:44:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20251
20252 * genattr.c (gen_attr): Add prototype arguments for get_attr_*().
20253 Remove unused prototype for `init_lengths'.
20254
20255 Wed Aug 25 09:32:31 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20256
20257 * calls.c (emit_call_1): Mark parameter `stack_size' with
20258 ATTRIBUTE_UNUSED.
20259 (expand_call): Initialize variable `insn'.
20260 (emit_library_call): Likewise for variable `high_to_save'.
20261 (emit_library_call_value): Likewise.
20262 (store_one_arg): Likewise for variables `lower_bound' and
20263 `upper_bound'.
20264
20265 * combine.c (try_combine): Likewise for variables `i2_code_number'
20266 and `other_code_number'.
20267 (find_split_point): Likewise for variables `pos', `unsignedp' and
20268 `inner'.
20269 (simplify_if_then_else): Likewise for variables `op' and `c1'.
20270 (simplify_and_const_int): Remove unused variable `width'.
20271 (merge_outer_ops): Likewise.
20272
20273 * cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
20274 HOST_WIDE_INT' when comparing against one.
20275 (simplify_relational_operation): Likewise.
20276 (cse_insn): Initialize variables `src_eqv_volatile',
20277 `src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
20278
20279 * final.c (init_final): Constify parameter `filename'.
20280 (final_start_function): Mark parameter `optimize' with
20281 ATTRIBUTE_UNUSED.
20282 (profile_function): Likewise for parameters `first' and `optimize'.
20283 (output_source_line): Likewise for parameter `file'.
20284
20285 * integrate.c (subst_constants): Cast a value to `size_t' when
20286 comparing against one.
20287 (mark_stores): Initialize variable `mode'. Cast a value to
20288 `size_t' when comparing against one.
20289
20290 * integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
20291
20292 * loop.c (move_movables): Initialize variable `first'.
20293 (strength_reduce): Likewise for variable `increment'.
20294 (check_dbra_loop): Likewise for variable `comparison_val'. Cast a
20295 value to `size_t' when comparing against one.
20296 (load_mems): Initialize variable `end_label'.
20297
20298 * output.h (init_final): Constify parameter.
20299
20300 * reload.c (decompose): Initialize variable `base'.
20301
20302 * reload1.c (reload): Likewise for variable `is_scalar'.
20303 (spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
20304 (choose_reload_regs): Initialize variable `mode'.
20305 (emit_reload_insns): Likewise for variable `store_insn'.
20306 (reload_cse_noop_set_p): Mark parameter `insn' with
20307 ATTRIBUTE_UNUSED.
20308 (reload_combine): Initialize variable `set'.
20309
20310 * unroll.c (unroll_loop): Likewise for variable `local_label'.
20311 (copy_loop_body): Cast a value to `size_t' when comparing against
20312 one.
20313
20314 * varasm.c (assemble_variable): Initialize variable `size_tree'.
20315 (const_hash): Add an `else abort()' in an if-else-if-else sequence.
20316 (remove_from_pending_weak_list): Mark parameter `name' with
20317 ATTRIBUTE_UNUSED.
20318
20319 Wed Aug 25 11:18:39 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20320
20321 * toplev.c (rest_of_compilation): Use decl_printable_name when opening
20322 gcse dump file.
20323
20324 Wed Aug 25 10:57:12 1999 Nick Clifton <nickc@cygnus.com>
20325
20326 * config/arm/telf.h (ASM_WEAKEN_LABEL): Define.
20327 (ASM_DECLARE_FUNCTION_NAME): Define.
20328 (TYPE_ASM_OP, SIZE_ASM_OP, TYPE_OPERAND_FORMAT,
20329 ASM_DECLARE_RESULT, ASM_DECLARE_OBJECT_NAME,
20330 ASM_FINISH_DECLARE_OBJECT, ASM_DECLARE_FUNCTION_SIZE): Define if
20331 not already defined.
20332
20333 Wed Aug 25 01:36:11 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
20334
20335 * calls.c (emit_call_1): Use call_pop/call_value_pop for all values
20336 of n_popped when call/call_value are not defined.
20337
20338 Wed Aug 25 01:25:14 1999 Jeffrey A Law (law@cygnus.com)
20339
20340 * tm.texi: GNU CC -> GCC conversion.
20341 (CC1_SPEC): Indicate it is used for all language front ends.
20342
20343 Tue Aug 24 23:43:03 1999 Mark Mitchell <mark@codesourcery.com>
20344
20345 * flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
20346 NOTE_INSN_EH_REGION_END correctly.
20347
20348 Tue Aug 24 23:26:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
20349 Jeff Law <law@cygnus.com>
20350
20351 * loop.c (strength_reduce): Automatically unroll loops if the
20352 unrolled loop size is smaller than the rolled loop size.
20353
20354 * loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
20355 and delete comment that code should be rewritten.
20356
20357 Tue Aug 24 22:56:35 1999 Jeffrey A Law (law@cygnus.com)
20358
20359 * haifa-sched.c (find_rgns): Mark a block found during the DFS search
20360 as reachable.
20361
20362 * haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
20363
20364 Tue Aug 24 22:41:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
20365
20366 * fixinc/mkfixinc.sh: Don't fix uwin headers.
20367 * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
20368 (LINK_SPEC): Add -u _main when building executables.
20369 (ASM_DECLARE_FUNCTION): Update from Cygwin.
20370 (ASM_FILE_END): Use the default for ix86-pe.
20371 * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
20372
20373 Tue Aug 24 20:49:47 1999 Art Haas <ahaas@neosoft.com>
20374
20375 * final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
20376 and ASM_CLOSE_PAREN are empty strings.
20377
20378 Wed Aug 25 12:46:22 1999 Fred Fish <fnf@cygnus.com>
20379 Geoffrey Keating <geoffk@cygnus.com>
20380
20381 * Makefile.in (PREPROCESSOR_DEFINES): New macro.
20382 (protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
20383 (unprotoize.o): Ditto.
20384 (test-protoize-simple): Don't define STD_PROTO_DIR.
20385 * protoize.c: Use PARAMS rather than PROTO. Minor whitespace
20386 changes to make 'test-protoize-simple' pass.
20387 (STD_PROTO_DIR): Remove define.
20388 (STANDARD_EXEC_PREFIX): Supply default define.
20389 (standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
20390 (target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
20391 (target_version): New variable, init to DEFAULT_TARGET_VERSION.
20392 (GET_ENV_PATH_LIST): New macro.
20393 (default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
20394 (do_processing): Initialize default_syscalls_dir using new
20395 macros. Use it to initialize syscalls_absolute_filename.
20396
20397 Tue Aug 24 16:58:15 1999 Richard Henderson <rth@cygnus.com>
20398
20399 * jump.c (jump_optimize_1): Do cmov opt on any single-set; force
20400 B into a register before emit_conditional_move.
20401
20402 Tue Aug 24 15:37:03 1999 Richard Henderson <rth@cygnus.com>
20403
20404 * fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
20405 as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
20406 multiplicand out of (+ (* a b) (* c d)).
20407
20408 Tue Aug 24 11:46:10 1999 Bob Manson <manson@cygnus.com>
20409 Richard Henderson <rth@cygnus.com>
20410
20411 * haifa-sched.c (split_hard_reg_notes): Move to flow.c
20412 (new_insn_dead_notes): Likewise.
20413 (update_n_sets): Likewise.
20414 (update_flow_info): Move to flow.c, renamed to update_life_info;
20415 extend to handle multiple source insns.
20416 * flow.c: Include resource.h
20417 (unlink_insn_chain): New.
20418 (split_hard_reg_notes): New.
20419 (maybe_add_dead_note): New.
20420 (maybe_add_dead_note_use): New.
20421 (find_insn_with_note): New.
20422 (new_insn_dead_notes): New.
20423 (update_n_sets): New.
20424 (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
20425 (maybe_remove_dead_notes): New.
20426 (update_life_info): New.
20427 (prepend_reg_notes): New.
20428 (replace_insns): New.
20429 * output.h (update_life_info): Declare.
20430 * recog.c (split_block_insns): Use update_life_info.
20431 * resource.c (find_free_register): Use reg_alloc_order, don't use
20432 fixed regs, make sure the mode is supported, don't use new regs.
20433 (reg_dead_p): New.
20434 * rtl.h (replace_insns): Declare.
20435
20436 Tue Aug 24 13:48:39 1999 Nathan Sidwell <nathan@acm.org>
20437
20438 * expr.c (expand_expr): Cope with COND_EXPRs with one
20439 non-returning branch.
20440
20441 Mon Aug 23 22:28:16 1999 Mark Mitchell <mark@codesourcery.com>
20442
20443 * expr.c (store_expr): Always pass down the target, even when not
20444 doing CSE.
20445
20446 1999-08-24 Nick Clifton <nickc@cygnus.com>
20447
20448 * configure.in: Define target_cpu_default for v850 targets.
20449 * configure: Regenerate
20450
20451 * config/v850/v850.h (TARGET_CPU_generic): Define.
20452 (GO_IF_LEGITIMATE_ADDRESS): Insist that SImode and larger constant
20453 addresses are 4 byte aligned.
20454
20455 * config/v850/v850.c (print_operand): Cope with 'R' format DFmode
20456 addresses.
20457
20458 Tue Aug 24 09:32:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20459
20460 * genattr.c (function_unit_desc): Constify a char*. Add prototype.
20461 (main): Add prototypes.
20462
20463 * genattrtab.c (substitute_address, write_const_num_delay_slots,
20464 attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
20465 (write_attr_get): Emit prototypes along with function definition.
20466 (write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
20467 (write_complex_function): Emit static prototype along with
20468 function definition.
20469
20470 * genemit.c (gen_split): Emit prototypes along with function
20471 definition.
20472
20473 * genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
20474 Likewise for predicates and `insn_operand_predicate'.
20475 (process_template): Emit static prototype along with function
20476 definition.
20477
20478 * genrecog.c (make_insn_sequence): Constify a char*. Add
20479 prototypes for get_split_*().
20480 (write_subroutine): Emit prototypes along with function
20481 definition.
20482
20483 Tue Aug 24 12:35:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20484
20485 * gcse.c (find_avail_set): Follow chains of register-register copies.
20486 Use oprs_not_set_p to guarantee that the returned value can be
20487 substituted.
20488 (cprop_insn): Don't verify the return value of find_avail_set with
20489 oprs_not_set_p.
20490
20491 * gcse.c (cprop_jump): New function, broken out of cprop_insn.
20492 (cprop_cc0_jump): New function.
20493 (cprop_insn): Break out new function cprop_jump and use it.
20494 Also use cprop_cc0_jump for machines with CC0.
20495 (cprop): Don't crash if cprop_insn turned the insn into a NOTE.
20496
20497 * tree.h (current_function_calls_setjmp,
20498 current_function_calls_longjmp): Delete declarations.
20499 * dsp16xx.c: Include "function.h".
20500 * elxsi.c: Likewise.
20501 * gmicro.c: Likewise.
20502 * h8300.c: Likewise.
20503 * i370.c: Likewise.
20504 * m32r.c: Likewise.
20505 * mn10200.c: Likewise.
20506 * mn10300.c: Likewise.
20507 * ns32k.c: Likewise.
20508 * spur.c: Likewise.
20509 * v850.c: Likewise.
20510
20511 * rtl.h (rtx_equal_function_value_matters): Declare.
20512 * toplev.c (rtx_equal_function_value_matters): Don't declare.
20513 * cse.c: Likewise.
20514 * function.c: Likewise.
20515 * emit-rtl.c: Likewise.
20516
20517 Tue Aug 24 02:47:44 1999 Jeffrey A Law (law@cygnus.com)
20518
20519 * expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
20520 call.
20521
20522 1999-08-24 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20523
20524 * jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
20525 exactly.
20526
20527 Mon Aug 23 23:35:52 1999 Matthias Klose <doko@cs.tu-berlin.de>
20528
20529 * cpp.texi: Add a node documenting macro varargs (copied
20530 from extend.texi).
20531
20532 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
20533
20534 * cppspec.c: Put a null pointer at the end of the new argv.
20535
20536 Mon Aug 23 21:23:24 1999 Jeffrey A Law (law@cygnus.com)
20537
20538 * configure.in: Remove code to select/de-select the haifa
20539 scheduler. Every scheduled port gets haifa now.
20540 * configure: Rebuilt.
20541 * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
20542 * sched.c Deleted.
20543 * Makefile.in: Corresponding changes.
20544
20545 Mon Aug 23 16:04:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20546
20547 * optabs.c (prepare_cmp_insn): Turn COMPARISON arg into a pointer.
20548 All callers changed.
20549 (prepare_float_lib_cmp): Likewise.
20550 Use FLOAT_LIB_COMPARE_RETURNS_BOOL.
20551 * expr.h (emit_float_lib_cmp): Delete declaration.
20552 * tm.texi (FLOAT_LIB_COMPARE_RETURNS_BOOL): Document.
20553 * sparc.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): Define.
20554 * sparc.md (bcc and scc patterns): Don't handle TFmode comparisons
20555 specially.
20556 (cmptf): Now conditional on TARGET_HARD_QUAD.
20557
20558 Fri Aug 20 17:52:27 1999 Jim Wilson <wilson@cygnus.com>
20559
20560 * resource.c (mark_target_live_regs): Use
20561 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
20562
20563 Fri Aug 20 19:07:55 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20564
20565 * rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
20566
20567 * rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
20568
20569 * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
20570
20571 Fri Aug 20 18:53:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20572
20573 * rtl.h (rtx_format): Constify a char*.
20574
20575 * rtl.c (rtx_format): Likewise.
20576 (copy_rtx, copy_most_rtx, read_rtx): Likewise.
20577 (init_rtl): Use accessor macro, not `rtx_format'.
20578
20579 * alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
20580 char*.
20581
20582 * caller-save.c (mark_referenced_regs): Likewise.
20583
20584 * combine.c (subst, make_compound_operation, known_cond,
20585 gen_rtx_combine, update_table_tick, get_last_value_validate,
20586 use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
20587
20588 * cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
20589 refers_to_p, canon_reg, fold_rtx, cse_process_notes,
20590 count_reg_usage): Likewise.
20591
20592 * emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
20593 Likewise.
20594
20595 * final.c (leaf_renumber_regs_insn): Likewise.
20596
20597 * flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
20598 dump_edge_info, count_reg_references): Likewise.
20599
20600 * function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
20601 fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
20602 Likewise.
20603
20604 * gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
20605 oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
20606 add_label_notes): Likewise.
20607
20608 * genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
20609 clear_struct_flag, count_sub_rtxs, count_alternatives,
20610 compares_alternatives_p, contained_in_p, walk_attr_value,
20611 write_expr_attr_cache): Likewise.
20612
20613 * genconfig.c (walk_insn_part): Likewise.
20614
20615 * genemit.c (max_operand_1, gen_exp): Likewise.
20616
20617 * genextract.c (walk_rtx): Likewise.
20618
20619 * genflags.c (num_operands): Likewise.
20620
20621 * genoutput.c (scan_operands): Likewise.
20622
20623 * genpeep.c (match_rtx): Likewise.
20624
20625 * genrecog.c (add_to_sequence): Likewise.
20626
20627 * haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
20628 Likewise.
20629
20630 * integrate.c (save_constants, copy_for_inline,
20631 copy_rtx_and_substitute, subst_constants, restore_constants):
20632 Likewise.
20633
20634 * jump.c (mark_jump_label, invert_exp, redirect_exp,
20635 rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
20636
20637 * local-alloc.c (contains_replace_regs, memref_referenced_p):
20638 Likewise.
20639
20640 * loop.c (record_excess_regs, rtx_equal_for_loop_p,
20641 add_label_notes, replace_call_address, count_nonfixed_reads,
20642 invariant_p, find_single_use_in_loop, find_mem_givs,
20643 find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
20644 Likewise.
20645
20646 * print-rtl.c (reg_names, print_rtx): Likewise.
20647
20648 * recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
20649
20650 * reg-stack.c (stack_regs_mentioned_p, record_label_references,
20651 record_reg_life_pat, swap_rtx_condition, goto_block_pat,
20652 print_blocks): Likewise.
20653
20654 * regclass.c (fix_register, record_address_regs,
20655 reg_scan_mark_refs): Likewise.
20656
20657 * regmove.c (stable_but_for_p): Likewise.
20658
20659 * reload.c (loc_mentioned_in_p, operands_match_p,
20660 find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
20661 copy_replacements, refers_to_regno_for_reload_p,
20662 refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
20663 reload_when_needed_name, reg_class_names, debug_reload_to_stream):
20664 Likewise.
20665
20666 * reload1.c (eliminate_regs, scan_paradoxical_subregs,
20667 delete_address_reloads_1, count_occurrences,
20668 reload_cse_mem_conflict_p, reload_combine_note_use,
20669 add_auto_inc_notes): Likewise.
20670
20671 * resource.c (mark_referenced_resources, mark_set_resources):
20672 Likewise.
20673
20674 * rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
20675 reg_mentioned_p, regs_set_between_p, modified_between_p,
20676 modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
20677 rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
20678 may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
20679 jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
20680
20681 * sched.c (sched_analyze_2, attach_deaths): Likewise.
20682
20683 * stupid.c (stupid_mark_refs): Likewise.
20684
20685 * unroll.c (remap_split_bivs): Likewise.
20686
20687 * varasm.c (mark_constants): Likewise.
20688
20689 * a29k/a29k.c (uses_local_reg_p): Likewise.
20690
20691 * alpha/alpha.c (summarize_insn): Likewise.
20692
20693 * arm/arm.c (symbol_mentioned_p, label_mentioned_p,
20694 eliminate_lr2ip): Likewise.
20695
20696 * arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
20697
20698 * i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
20699 reg_mentioned_in_mem): Likewise.
20700
20701 * ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
20702 symbolic_reference_mentioned_p): Likewise.
20703
20704 * romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
20705
20706 * sh/sh.c (regs_used, mark_use): Likewise.
20707
20708 * vax/vax.c (vax_rtx_cost): Likewise.
20709
20710 Fri Aug 20 18:38:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20711
20712 * machmode.h (mode_name): Constify a char*.
20713
20714 * rtl.c (mode_name): Likewise.
20715
20716 * genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
20717
20718 * optabs.c (init_libfuncs): Constify a char*.
20719
20720 * print-tree.c (mode_name): Remove redundant declaration.
20721 (print_node): Use accessor macro, not `mode_name'.
20722
20723 * reload1.c (dump_needs): Constify a char*. Use accessor macro,
20724 not `mode_name'.
20725 (new_spill_reg): Constify a char*.
20726
20727 * tree.c (mode_name): Remove redundant declaration.
20728
20729 Fri Aug 20 18:31:26 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20730
20731 * rtl.c (rtx_name): Constify a char*.
20732
20733 * rtl.h (rtx_name, fix_sched_param): Likewise.
20734
20735 * gmicro/gmicro.c (rtx_name): Remove redundant declaration.
20736 (mypr): Use accessor macro, not `rtx_name'.
20737
20738 * genemit.c (print_code): Constify a char*.
20739
20740 * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
20741
20742 * genpeep.c (print_code): Constify a char*.
20743
20744 * genrecog.c (print_code): Likewise.
20745
20746 * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
20747 end_bb): Add static prototype.
20748 (draw_edge): Constify a char*.
20749 (end_bb): Remove unused parameter.
20750
20751 * haifa-sched.c (fix_sched_param, safe_concat, print_exp
20752 print_block_visualization): Constify a char*.
20753
20754 Fri Aug 20 15:02:10 1999 Mark Mitchell <mark@codesourcery.com>
20755
20756 * c-common.c (c_get_alias_set): Update comment.
20757
20758 1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
20759
20760 * linux.h (LIB_SPEC): Added.
20761
20762 Fri Aug 20 22:32:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20763
20764 * config/c4x/c4x.h (STARTFILE_SPEC): Don't def.
20765
20766 1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com>
20767
20768 * tree.c (expr_check): Fix typo in last change.
20769
20770 1999-08-19 14:44 -0700 Zack Weinberg <zack@bitmover.com>
20771
20772 * rtl.def (NOTE): Change format to "iuu0n".
20773 (ADDR_DIFF_VEC): Change format to "eEee0".
20774 (ADDRESSOF): Change format to "eit".
20775
20776 * rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
20777 (RTVEC_ELT): Change to match.
20778 (XVECEXP): Use XVEC and RTVEC_ELT.
20779 (INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
20780 ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
20781 (PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
20782 CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
20783 TRAP_CONDITION, TRAP_CODE): Use XEXP.
20784 (INTVAL): Use XWINT.
20785 (ADDRESSOF_DECL): Use XTREE.
20786 (SET_ADDRESSOF_DECL): Delete.
20787 (NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
20788 NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill. These have been
20789 ifdefed out since 2.6 at least.
20790 (gen_rtvec_vv): Delete prototype.
20791
20792 * rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
20793 not rtunion.
20794 (copy_most_rtx): Handle 't' format letter.
20795 * emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
20796 (gen_rtvec_vv): Delete function. All callers changed to use
20797 gen_rtvec_v instead.
20798 * print-rtl.c (print_rtx): Move special casing of NOTEs to
20799 the '0' format letter.
20800
20801 * function.c (gen_mem_addressof): Don't use
20802 SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
20803 instead.
20804 * integrate.c (copy_rtx_and_substitute): Likewise.
20805 Copy 't' slots with XTREE.
20806 (subst_constants): Treat 't' slots like '[swi]' slots.
20807 * cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
20808 * jump.c (rtx_equal_for_thread_p): Likewise.
20809 * rtlanal.c (rtx_equal_p): Likewise.
20810 * stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
20811 only four arguments.
20812 * gengenrtl.c (type_from_format): Provide correct types for
20813 'b' and 't' slots.
20814
20815
20816 * tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
20817 If a recent gcc is in use (always in stage2 and beyond), use
20818 statement expressions, so we don't make a function call unless
20819 the check fails. Evaluate arguments exactly once.
20820 (CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
20821 TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
20822 Delete.
20823 (CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
20824 they evaluate their arguments exactly once, irrespective of
20825 the compiler in use.
20826
20827 * tree.c [ENABLE_CHECKING]: Define whichever set of functions
20828 is used by the currently-enabled check macros. This is:
20829 (tree_check_failed, tree_class_check_failed): For gcc.
20830 (tree_check, tree_class_check, cst_or_constructor_check,
20831 expr_check): For other compilers.
20832
20833 * gencheck.c: Do not define any *_CHECK1 macros.
20834
20835 Thu Aug 19 14:42:38 1999 Mike Stump <mrs@wrs.com>
20836 Mark Mitchell <mark@codesourcery.com>
20837
20838 * c-common.c (c_get_alias_set): Fix support for poitners and
20839 references.
20840
20841 Thu Aug 19 11:51:22 EDT 1999 John Wehle (john@feith.com)
20842
20843 * alias.c: Include tree.h.
20844 (nonlocal_reference_p, mark_constant_function): New functions.
20845 * flow.c (life_analysis): Call mark_constant_function.
20846 * rtl.h (mark_constant_function): Declare it.
20847
20848 Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
20849
20850 * config/rs6000/rs6000.c (rs6000_override_options): Fix test for
20851 unrecognisable switches.
20852
20853 Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20854
20855 * loop.c (recombine_givs): Set ix field after sorting.
20856 (recombine_givs): Remove bogus index / giv lockstep looping.
20857
20858 Wed Aug 18 18:20:40 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20859
20860 * expmed.c (emit_store_flag): If UNSIGNEDP, call unsigned_condition
20861 on CODE.
20862 (emit_store_flag_force): Use do_compare_rtx_and_jump.
20863 (do_cmp_and_jump): Formatting fixes.
20864 * expr.c (do_compare_and_jump): Renamed from compare; changed to call
20865 do_compare_rtx_and_jump instead of compare_from_rtx.
20866 (do_compare_rtx_and_jump): New function; mostly copied from
20867 compare_from_rtx.
20868 (do_jump_for_compare): Delete.
20869 (expand_expr): Use do_compare_rtx_and_jump when handling MAX_EXPR and
20870 MIN_EXPR.
20871 (do_jump): Use do_compare_and_jump or do_compare_rtx_and_jump instead
20872 of compare/do_jump_for_compare pairs.
20873 (do_jump_by_parts_greater): Use do_jump_by_parts_greater_rtx.
20874 (do_jump_by_parts_greater_rtx): Use do_compare_rtx_and_jump instead of
20875 compare_from_rtx/do_jump_for_compare pairs.
20876 (do_jump_by_parts_equality): Likewise.
20877 (do_jump_by_parts_equality_rtx): Likewise.
20878 * expr.h (do_compare_rtx_and_jump): Declare.
20879 * optabs.c (prepare_cmp_insn): New function, contains most of the code
20880 that used to be in emit_cmp_insn.
20881 (cmp_available_p): New function.
20882 (prepare_operand): New function.
20883 (emit_cmp_and_jump_insn_1): New function, contains some code that used
20884 to be in emit_cmp_insn.
20885 (prepare_float_lib_cmp): Renamed from emit_float_lib_cmp; change some
20886 parameters to be pointers; don't emit final compare but modify some of
20887 the values pointed to by the args so the caller can perform the
20888 correct comparison.
20889 (expand_binop): Call emit_store_flag_force with signed forms of
20890 comparison code.
20891 (expand_abs): Use do_compare_rtx_and_jump instead of compare_from_rtx/
20892 emit_jump_insn pair.
20893 (emit_cmp_and_jump_insn): Use prepare_cmp_insn and
20894 emit_cmp_and_jump_insn_1. Call emit_queue.
20895 (emit_cmp_insn): Just call emit_cmp_and_jump_insns with zero for LABEL
20896 arg.
20897 * flow.c (tidy_fallthru_edge): If HAVE_cc0, verify insn before a
20898 jump sets cc0 before deleting it.
20899 * integrate.c (expand_inline_function): Likewise.
20900 * unroll.c (unroll_loop): Similar changes in several places.
20901 (copy_loop_body): If HAVE_cc0, verify insn before a jump sets cc0
20902 before deleting it.
20903
20904 Wed Aug 18 06:37:44 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20905
20906 * Makefile.in (insn-recog.o): Update dependencies.
20907 * genrecog.c (main): Make generated file include "function.h".
20908
20909 Sat Aug 14 00:54:57 1999 Geoffrey Keating <geoffk@cygnus.com>
20910
20911 * cse.c (cse_insn): Call never_reached_warning when a jump is
20912 changed to be unconditional.
20913 * flags.h: Declare warn_notreached.
20914 * flow.c (delete_block): Call never_reached_warning when
20915 a block is deleted.
20916 * jump.c (delete_barrier_successors): Call never_reached_warning
20917 when we delete everything after a BARRIER.
20918 (never_reached_warning): New function.
20919 * rtl.h: Declare never_reached_warning.
20920 * toplev.c (warn_notreached): New variable.
20921 (lang_independent_options): Set warn_notreached
20922 when -Wunreachable-code.
20923 (compile_file): We need line numbers for -Wunreachable-code.
20924
20925 Tue Aug 17 22:06:11 1999 Jan Hubicka <hubicka@freesoft.cz>
20926
20927 * haifa-sched.c (insn_unit): Fix typo on out of range test.
20928 * sched.c (insn_unit): Likewise.
20929
20930 Tue Aug 17 21:57:23 1999 Andreas Schwab <schwab@suse.de>
20931
20932 * combine.c (distribute_notes): Handle REG_EH_RETHROW.
20933
20934 Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
20935
20936 * flow.c (create_edge_list): Use xmalloc, not malloc.
20937
20938 Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
20939
20940 * fixinc/inclhack.def (no_double_slash): Do not trash single-line
20941 C-style comments. Do not lose the character before double slash.
20942
20943 Mon Aug 16 18:08:22 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
20944
20945 * basic-block.h (struct edge_list): Stucture to maintain a vector
20946 of edges.
20947 (EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
20948 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
20949 (create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
20950 New function prototypes.
20951 * flow.c (create_edge_list): Function to create an edge list.
20952 (free_edge_list): Discards memory used by an edge list.
20953 (print_edge_list): Debug output showing an edge list.
20954 (verify_edge_list): Internal consistency check for an edge list.
20955 (find_edge_index): Function to find an edge index for a pred and succ.
20956
20957 Mon Aug 16 11:56:36 1999 Mark Mitchell <mark@codesourcery.com>
20958
20959 * tree.c (type_hash_add): Use permalloc to allocate nodes in the
20960 hashtable.
20961
20962 Mon Aug 16 17:04:15 1999 Jorn Rennecke <amylaar@cygnus.co.uk>
20963
20964 * mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
20965
20966 Fri Aug 13 15:20:43 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20967
20968 * config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
20969
20970 Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
20971
20972 * toplev.c (rest_of_compilation): Allow machine dependent
20973 reorganisation pass to place information into the RTL dump
20974 file if it so wishes.
20975
20976 Sun Aug 15 12:41:21 1999 Jim Wilson <wilson@cygnus.com>
20977
20978 * explow.c (hard_function_value): Use VOIDmode instead of
20979 MAX_MACHINE_MODE.
20980 * stmt.c (expand_return): Likewise.
20981 * stor-layout.c (get_best_mode): Likewise.
20982
20983 * genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
20984 emit call instead of emit_insn call.
20985
20986 Sat Aug 14 15:04:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
20987
20988 * configure.in: Handle --disable/enable-win32-registry.
20989 * install.texi: Document --disable/enable-win32-registry.
20990 * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
20991 (WIN32_REGISTRY_KEY): New macro.
20992 * prefix.c: Use to enable/disable win32-specific code.
20993 (lookup_key): Use versioned key.
20994 * configure: Regenerate.
20995 * config.in: Likewise.
20996
20997 Fri Aug 13 17:41:55 1999 Jason Merrill <jason@yorick.cygnus.com>
20998
20999 * cpplib.c (read_line_number): New fn, split out of...
21000 (do_line): Here.
21001
21002 Fri Aug 13 14:18:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
21003
21004 tree.c (lang_unsave_expr_now) : New.
21005 (unsave_expr_now): Call lang_unsave_expr_now.
21006 tree.h (lang_unsave_expr_now) : New.
21007
21008 Fri Aug 13 00:49:46 1999 Jason Merrill <jason@yorick.cygnus.com>
21009
21010 * toplev.c (flag_new_exceptions): On by default.
21011
21012 1999-08-13 Michael Meissner <meissner@cygnus.com>
21013
21014 * Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
21015
21016 Fri Aug 13 01:29:57 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
21017
21018 * dwarfout.c (fundamental_type_code): Return FT_boolean for
21019 INTEGER_TYPE with precision==1, it's __java_boolean.
21020
21021 Thu Aug 12 23:51:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21022
21023 * global.c (prune_preferences): Move some invariants out of the
21024 inner loop.
21025
21026 Thu Aug 12 15:30:29 1999 Jesse Perry (jap@unx.dec.com)
21027
21028 * configure.in (alpha*-dec-osf*): Add osf5.
21029
21030 Sun Aug 1 22:24:03 1999 Philip Blundell <philb@gnu.org>
21031
21032 * configure.in: Rework handling of ARM GNU/Linux slightly.
21033 (arm*-*-linux-gnuoldld): New target.
21034 * configure: Regenerate.
21035 * install.texi (Configurations): Add arm-*-linux-gnu{oldld} and
21036 arm-*-elf. Mention that arm-*-linux-gnuaout is obsolete.
21037 * config/arm/linux-oldld.h: New file.
21038 * config/arm/linux-elf26.h: Don't include linux-elf.h.
21039 (TARGET_DEFAULT, SUBTARGET_LINK_SPEC, SUBTARGET_EXTRA_ASM_SPEC):
21040 Don't define.
21041 * config/arm/linux-elf.h (ASM_SPEC): Define.
21042 (TARGET_DEFAULT, SUBTARGET_EXTRA_LINK_SPEC,
21043 SUBTARGET_EXTRA_ASM_SPEC, CPP_APCS_PC_DEFAULT): Add definitions
21044 for 26-bit APCS and old linker.
21045 (CPP_PREDEFINES): Define `__arm__'; don't define `arm' or
21046 `arm_elf'.
21047 (FP_DEFAULT): Define to FP_SOFT3 for all machines.
21048 * config/arm/linux-aout.h (CPP_PREDEFINES): Define `__arm__';
21049 don't define `arm' or `arm_elf'.
21050 * config/arm/t-linux (EXTRA_MULTILIB_PARTS, MULTILIB_OPTIONS,
21051 MULTILIB_DIRNAMES): Define. Fix typo in comment.
21052
21053 Thu Aug 12 10:14:47 1999 Andreas Schwab <schwab@suse.de>
21054
21055 * rtl.texi: Fix typo.
21056
21057 Wed Aug 11 23:50:57 1999 Jason Merrill <jason@yorick.cygnus.com>
21058
21059 * invoke.texi (C++ Dialect Options): Add -fms-extensions.
21060
21061 Wed Aug 11 12:59:37 1999 Mark Mitchell <mark@codesourcery.com>
21062
21063 * extend.texi (C++ Signatures): Remove node.
21064 * invoke.texi: Remove discussion of -fhandle-signatures,
21065 signature, sigof, __signature__, and __sigof__.
21066
21067 Wed Aug 11 03:38:25 1999 Jeffrey A Law (law@cygnus.com)
21068
21069 * Makefile.in (JAVAGC): Removed.
21070
21071 Wed Aug 11 02:13:26 1999 Mumit Khan <khan@xraylith.wisc.edu>
21072
21073 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
21074
21075 1999-08-11 Mark Elbrecht <snowball3@bigfoot.com>
21076
21077 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
21078
21079 1999-08-11 Richard Earnshaw (rearnsha@arm.com)
21080
21081 * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
21082 a register that is already known to be a pointer.
21083
21084 1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
21085
21086 * fixinc/inclhack.tpl: Only install assert.h conditionally.
21087 * fixinc/inclhack.sh: Regenerated.
21088 * fixinc/fixincl.sh: Regenerated.
21089
21090 Wed Aug 11 00:34:22 1999 Joe Buck <jbuck@synopsys.com>
21091
21092 * invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
21093 Fix documentation of -ansi flag to describe its C++ behavior.
21094 Remove bogus reference to GCC 2.9.
21095
21096 Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com>
21097
21098 * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
21099 note if it is non-NULL.
21100
21101 Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21102
21103 * except.h (eh_nesting_info): Add new structure defintion.
21104 (init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
21105 (reachable_handlers, update_rethrow_references): Add function
21106 prototypes.
21107 * rtl.h (struct rtvec_def): Update comments. REG_EH_RETHROW takes
21108 a rethrow symbol instead of an integer exception region number.
21109 * flow.c (Make_edges): Use new exception nesting routines to determine
21110 which handlers are reachable from a CALL or asynchronous insn.
21111 Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
21112 goto receivers.
21113 (delete_eh_regions): Update rethrow labels, and don't delete
21114 regions which are the target of a rethrow.
21115 * except.c (struct func_eh_entry): Add rethrow_ref field, now we can
21116 avoid overloading the SYMBOL_REF_USED flag.
21117 (rethrow_symbol_map): Use new rethrow_ref field.
21118 (rethrow_used): Use new rethrow_ref field.
21119 (expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
21120 of an integer. Fix formatting.
21121 (output_exception_table_entry): Use new rethrow_ref field.
21122 (can_throw): Check for EH_REGION_NOTE before deciding
21123 whether a CALL can throw or not.
21124 (scan_region): Call rethrow_used() instead of accessing data structure.
21125 (update_rethrow_references): New function to make sure only regions
21126 which are still targets of a rethrow are flagged as such.
21127 (process_nestinfo): New static function to initialize a handler
21128 list for a specific region.
21129 (init_eh_nesting_info): New function to allocate and initialize
21130 the list of all EH handlers reachable from all regions.
21131 (reachable_handlers): New function to retrieve the list of handlers
21132 reachable from a specific region and insn.
21133 (free_eh_nesting_info): New function to dispose of a list of
21134 reachable handlers.
21135
21136 Tue Aug 10 10:39:31 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21137
21138 * flow.c (split_edge): Set JUMP_LABEL field.
21139 (commit_one_edge_insertion): Set head correctly for insert_before.
21140 When inserting insns, update insn block numbers if allocated.
21141
21142 Tue Aug 10 09:26:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21143
21144 * dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
21145 retry_incomplete_types): Add static prototype.
21146 (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
21147 dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
21148 dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
21149 dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
21150 dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
21151 Constify a char*.
21152
21153 * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
21154 dwarf2out_start_source_file, dwarf2out_line): Likewise.
21155
21156 Tue Aug 10 09:21:46 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21157
21158 * output.h (assemble_name): Constify a char*.
21159
21160 * varasm.c (UNIQUE_SECTION, assemble_start_function,
21161 assemble_variable, assemble_name): Likewise.
21162
21163 * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.
21164
21165 * arm/pe.c (arm_pe_unique_section): Likewise.
21166
21167 * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.
21168
21169 * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.
21170
21171 * i386/interix.c (i386_pe_unique_section): Likewise.
21172
21173 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
21174
21175 * i386/winnt.c (i386_pe_unique_section): Likewise.
21176
21177 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
21178
21179 * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.
21180
21181 * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.
21182
21183 * pa/pa.c (output_call): Likewise.
21184
21185 * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.
21186
21187 * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
21188
21189 * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
21190 Likewise.
21191
21192 * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
21193 Likewise.
21194
21195 * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
21196
21197 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
21198 STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.
21199
21200 * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.
21201
21202 Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21203
21204 * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
21205
21206 Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21207
21208 * tree.h (lang_identify): Constify a char*.
21209 (print_error_function): Add extern prototype. Constify a char*.
21210
21211 * c-lang.c (lang_identify): Constify a char*.
21212
21213 * objc/objc-act.c (lang_identify): Constify a char*.
21214
21215 Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21216
21217 * genpeep.c (main): Make generated file include "function.h".
21218 * arm.c (function_really_clobbers_lr): Delete INLINE_HEADER case.
21219
21220 Mon Aug 9 10:08:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21221
21222 * Makefile.in: Update dependencies.
21223 * alias.c: Include "function.h"
21224 * c-decl.c: Likewise.
21225 * caller-save.c: Likewise.
21226 * calls.c: Likewise.
21227 * combine.c: Likewise.
21228 * cse.c: Likewise.
21229 * explow.c: Likewise.
21230 * final.c: Likewise.
21231 * global.c: Likewise.
21232 * graph.c: Likewise.
21233 * local-alloc.c: Likewise.
21234 * loop.c: Likewise.
21235 * optabs.c: Likewise.
21236 * profile.c: Likewise.
21237 * recog.c: Likewise.
21238 * regclass.c: Likewise.
21239 * regmove.c: Likewise.
21240 * reload.c: Likewise.
21241 * reorg.c: Likewise.
21242 * resource.c: Likewise.
21243 * sched.c: Likewise.
21244 * stupid.c: Likewise.
21245 * config/1750a/1750a.c: Likewise.
21246 * config/a29k/a29k.c: Likewise.
21247 * config/arc/arc.c: Likewise.
21248 * config/arm/arm.c: Likewise.
21249 * config/arm/thumb.c: Likewise.
21250 * config/c4x/c4x.c: Likewise.
21251 * config/clipper/clipper.c: Likewise.
21252 * config/convex/convex.c: Likewise.
21253 * config/fx80/fx80.c: Likewise.
21254 * config/i860/i860.c: Likewise.
21255 * config/m68k/m68k.c: Likewise.
21256 * config/m88k/m88k.c: Likewise.
21257 * config/mips/mips.c: Likewise.
21258 * config/pdp11/pdp11.c: Likewise.
21259 * config/pyr/pyr.c: Likewise.
21260 * config/romp/romp.c: Likewise.
21261 * config/sh/sh.c: Likewise.
21262 * config/tahoe/tahoe.c: Likewise.
21263 * config/vax/vax.c: Likewise.
21264 * config/we32k/we32k.c: Likewise.
21265 * config/sparc/sparc.c: Include "function.h".
21266 (mem_min_alignment): Test current_function rather than
21267 regno_pointer_align.
21268 * config/pa/pa.c: Likewise.
21269 (compute_frame_size): Delete declaration of
21270 current_function_outgoing_args_size.
21271 * config/arc/arc.h (current_function_varargs): Delete declaration.
21272 * config/elxsi/elxsi.h (current_function_calls_alloca): Delete
21273 declaration.
21274 * config/i370/i370.h (current_function_outgoing_args_size): Delete
21275 declaration.
21276 * config/i386/i386.h (FINALIZE_PIC): Delete declaration of
21277 current_function_uses_pic_offset_table.
21278 * config/m68k/a-ux.h (FUNCTION_EXTRA_EPILOGUE): Delete declaration
21279 of current_function_returns_pointer.
21280 * config/m68k/altos3068.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
21281 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
21282 * config/m68k/m68kv4.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
21283 * config/m68k/mot3300.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
21284 * config/m68k/pbb.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
21285 * config/m68k/tower-as.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
21286 * config/m88k/m88k.c: Include "function.h"
21287 (call_used_regs, current_function_pretend_args_size,
21288 current_function_outgoing_args_size, frame_pointer_needed): Delete
21289 declarations.
21290 * config/m88k/m88k.h (current_function_pretend_args_size): Delete
21291 declaration.
21292 * config/mips/mips.h (current_function_calls_alloca): Delete
21293 declaration.
21294 * config/mn10200/mn10200.h (current_function_needs_context,
21295 rtx_equal_function_value_matters): Delete declarations.
21296 * config/ns32k/ns32k (current_function_uses_pic_offset_table,
21297 flag_pic): Delete declarations.
21298 * config/pa/pa.h (current_function_pretend_args_size,
21299 current_function_decl): Delete declarations.
21300 * config/pa/som.h (current_function_varargs): Delete declaration.
21301 * config/pdp11/pdp11.h (current_function_pretend_args_size): Delete
21302 declaration.
21303 * config/pyr/pyr.h (current_function_pretend_args_size,
21304 current_function_args_size, current_function_calls_alloca): Delete
21305 declarations.
21306 * config/sh/sh.h (current_function_varargs): Delete declaration.
21307 * config/sparc/sparc.h (current_function_outgoing_args_size,
21308 current_function_calls_alloca, current_function_decl): Delete
21309 declarations.
21310 * config/spur/spur.h (current_function_pretend_args_size,
21311 current_function_calls_alloca): Delete declarations.
21312 * config/v850/v850.c (current_function_outgoing_args_size): Delete
21313 declaration.
21314 * config/vax/vms.h (current_function_name): Delete declaration.
21315 * gcse.c: Include "function.h".
21316 (current_function_name, current_function_calls_setjmp): Delete
21317 declarations.
21318 * haifa-sched.c: Include "function.h".
21319 (forced_labels): Delete declaration.
21320 * jump.c: Likewise.
21321 * reg-stack.c: Likewise.
21322 * reload1.c: Likewise.
21323 * genemit.c (main): Make generated file include function.h.
21324 * genoutput.c (output_prologue): Likewise.
21325
21326 * builtins.c (saveregs_value, apply_args_value): Delete variables.
21327 * emit-rtl.c (reg_rtx_no, first_label_num, first_insn, last_insn,
21328 sequence_rtl_expr, cur_insn_uid, last_linenum, last_filename,
21329 regno_pointer_flag, regno_pointer_flag_length, regno_pointer_align,
21330 regno_reg_rtx, sequence_stack): Delete variables. Add accessor
21331 macros for some of them.
21332 (emit_filename, emit_lineno): Delete declarations.
21333 (gen_reg_rtx): Use memset/memcpy instead of bzero/bcopy. Access
21334 regno_pointer_* variables through current_function.
21335 (gen_inline_header_rtx): Delete function.
21336 (save_emit_status): Delete function.
21337 (set_new_last_label_num): New function.
21338 (clear_emit_caches): New function.
21339 (restore_emit_status): Just clear last_labelnum and call
21340 clear_emit_caches.
21341 (get_last_insn_anywhere): Variable sequence_stack is now accessed
21342 through macro seq_stack.
21343 (add_insn_after): Likewise.
21344 (add_insn_before): Likewise.
21345 (remove_insn): Likewise.
21346 (pop_topmost_sequence): Likewise.
21347 (in_sequence_p): Likewise.
21348 (start_sequence_for_rtl_expr): Likewise.
21349 (start_sequence): Likewise, and likewise for
21350 sequence_rtl_expr/seq_rtl_expr.
21351 (push_topmost_sequence): Likewise.
21352 (end_sequence): Likewise.
21353 (init_virtual_regs): Now takes a "struct emit_status *" argument.
21354 All callers changed. Store into that pointer instead of globals.
21355 (init_emit): Allocate emit elt of current_function.
21356 Changes for sequence_rtl_expr/sequence_stack renaming.
21357 Call clear_emit_caches instead of doing it in-line.
21358 Access regno_pointer_* variables through current_function.
21359 (init_emit_once) Don't clear sequence_stack.
21360
21361 * expr.c (pending_stack_adjust, inhibit_defer_pop, pending_chain):
21362 Delete variables.
21363 (arg_pointer_save_area): Delete declaration.
21364 (finish_expr_for_function): Renamed from init_queue; no longer static.
21365 (init_expr): Don't call init_queue.
21366 (save_expr_status, restore_expr_status): Delete functions.
21367 (expand_expr): Changes to reflect new layout of struct function.
21368 Don't access current_function_check_memory_usage when current_function
21369 is 0.
21370 * expr.h (forced_labels, save_expr_regs, saveregs_value,
21371 apply_args_value, current_function_calls_alloca, inhibit_defer_pop,
21372 current_function_outgoing_args_size, current_function_arg_offset_rtx,
21373 current_function_uses_const_pool, function_call_count,
21374 current_function_uses_pic_offset_table, nonlocal_labels,
21375 current_function_internal_arg_pointer, nonlocal_goto_stack_level,
21376 current_function_check_memory_usage, nonlocal_goto_handler_slots,
21377 pending_stack_adjust, target_temp_slot_level, temp_slot_level): Delete
21378 declarations.
21379 (finish_expr_for_function): Declare.
21380 * flags.h (current_function_has_nonlocal_label,
21381 current_function_has_nonlocal_goto, current_function_is_thunk,
21382 current_function_has_computed_jump): Delete declarations.
21383 * flow.c (forced_labels): Delete declaration.
21384 * function.c (current_function_pops_args,
21385 current_function_returns_struct, current_function_returns_pcc_struct,
21386 current_function_needs_context, current_function_calls_setjmp,
21387 current_function_calls_longjmp, current_function_has_nonlocal_label,
21388 current_function_has_nonlocal_goto, current_function_is_thunk,
21389 current_function_has_computed_jump, current_function_calls_alloca,
21390 current_function_contains_functions, current_function_returns_pointer,
21391 current_function_epilogue_delay_list, current_function_args_size,
21392 current_function_pretend_args_size, current_function_arg_offset_rtx,
21393 current_function_outgoing_args_size, current_function_varargs,
21394 current_function_stdarg, current_function_args_info, cleanup_label,
21395 current_function_name, current_function_uses_const_pool,
21396 current_function_instrument_entry_exit, current_function_return_rtx,
21397 current_function_uses_pic_offset_table, nonlocal_labels,
21398 current_function_internal_arg_pointer, current_function_cannot_inline,
21399 current_function_check_memory_usage, function_call_count,
21400 nonlocal_goto_handler_slots, nonlocal_goto_handler_labels,
21401 nonlocal_goto_stack_level, return_label, save_expr_regs,
21402 stack_slot_list, rtl_expr_chain, tail_recursion_label, temp_slots,
21403 tail_recursion_reentry, arg_pointer_save_area, frame_offset,
21404 context_display, trampoline_list, parm_birth_insn, invalid_stack_slot,
21405 last_parm_insn, max_parm_reg, parm_reg_stack_loc, sequence_rtl_expr,
21406 temp_slot_level, var_temp_slot_level, target_temp_slot_level):
21407 Delete variables.
21408 (push_function_context_to): Don't save them. Don't call
21409 save_storage_status, save_emit_status or save_expr_status.
21410 (pop_function_context_from): Don't restore them. Don't call
21411 restore_storage_status or restore_expr_status.
21412 (get_func_frame_size): New function.
21413 (get_frame_size): Use it.
21414 (assign_outer_stack_local): Reflect some member name changes in struct
21415 function.
21416 (put_reg_into_stack): Likewise.
21417 (assign_stack_temp_for_type): sequence_rtl_expr was renamed to
21418 seq_rtl_expr.
21419 (fixup_var_refs): Likewise.
21420 (fix_lexical_addr): Likewise.
21421 (trampoline_address): Likewise.
21422 (prepare_function_start): Clear field inlinable of current_function.
21423 (init_function_for_compilation): New function.
21424 (expand_dummy_function_end): New function.
21425 (expand_function_end): Call finish_expr_for_function.
21426 * function.h (struct emit_status): New; fields moved here from struct
21427 function and from global variables. Add accessor macros for some of
21428 the fields.
21429 (struct expr_status): Likewise.
21430 (REGNO_POINTER_ALIGN, REGNO_POINTER_FLAG): Moved here from regs.h.
21431 (struct function): Add fields expr and emit, inlinable, inl_emit,
21432 original_arg_vector, original_decl_initial, inl_last_parm_insn,
21433 inl_max_label_num. Add many comments.
21434 Add accessor macros for all elts of struct function that no longer
21435 have a global variable.
21436 (cleanup_label, return_label, frame_offset, tail_recursion_label,
21437 tail_recursion_reentry, arg_pointer_save_area, rtl_expr_chain,
21438 stack_slot_list): Delete declarations.
21439 (get_func_frame_size): Declare.
21440 (save_expr_status, restore_expr_status, save_emit_status,
21441 save_storage_status, restore_storage_status): Delete declarations.
21442 (init_virtual_regs): Declare.
21443 * output.h (current_function_pops_args,
21444 current_function_returns_struct, current_function_returns_pcc_struct,
21445 current_function_needs_context, current_function_calls_setjmp,
21446 current_function_calls_longjmp, current_function_calls_alloca,
21447 current_function_has_nonlocal_label, current_function_varargs,
21448 current_function_has_computed_jump, current_function_returns_pointer,
21449 current_function_contains_functions, current_function_args_size,
21450 current_function_pretend_args_size, current_function_stdarg,
21451 current_function_outgoing_args_size, current_function_args_info,
21452 current_function_name, current_function_return_rtx,
21453 current_function_epilogue_delay_list,
21454 current_function_uses_const_pool, current_function_cannot_inline):
21455 Delete declarations.
21456 * regs.h (reg_rtx_no, regno_pointer_flag, regno_pointer_flag_length,
21457 regno_reg_rtx): Delete declaration.
21458 (REGNO_POINTER_FLAG): Delete macro.
21459 * stmt.c (expand_goto): Changes to reflect that some fields in struct
21460 function were renamed.
21461 * stor-layout.c (save_storage_status, restore_storage_status): Delete
21462 functions.
21463 * toplev.c: Include "function.h".
21464 (current_function_decl): Delete declaration.
21465 (compile_file): Call init_dummy_function_start and
21466 expand_dummy_function_end around some initializations that need to
21467 emit rtl.
21468 (rest_of_compilation): Use DECL_SAVED_INSNS properly.
21469 Call init_function_for_compilation.
21470 * unroll.c: Include "function.h"
21471 (unroll_loop): Access regno_pointer_* variables through
21472 current_function.
21473
21474 * tree.h (struct tree_decl): Add elt f to saved_insns member.
21475 (DECL_SAVED_INSNS): use it.
21476 (expand_dummy_function_end): Declare.
21477 (init_function_for_compilation): Declare.
21478 * calls.c (calls_function_1): Change use of DECL_SAVED_INSNS now
21479 that it's no longer an INLINE_HEADER.
21480 (expand_call): Likewise.
21481 * integrate.c (finish_inline): Delete function.
21482 (max_parm_reg, parm_reg_stack_loc): Delete declarations.
21483 (initialize_for_inline): Delete min_labelno, max_labelno and max_reg
21484 args. Don't generate an INLINE_HEADER rtx, just return the arg
21485 vector. All callers changed.
21486 (save_for_inline_copying): Create a duplicate struct emit_status to
21487 hold the emit state for compiling the current function. Use this and
21488 the other new fields in struct function that are for integration
21489 instead of an INLINE_HEADER.
21490 Use memcpy instead of bcopy.
21491 Store the current struct function in DECL_SAVED_INSNS of fndecl.
21492 (save_for_inline_nocopy): Similar changes, except no new emit_status
21493 is needed here.
21494 (expand_inline_function): Get information from function structure,
21495 not from an inline header rtx.
21496 (output_inline_function): Lose code to extract the necessary
21497 information from an inline header; simply put back the function
21498 structure into current_function. Clear its inlinable elt.
21499 * rtl.def (INLINE_HEADER): Delete.
21500 * rtl.h: Delete all accessors for an INLINE_HEADER.
21501 (gen_inline_header_rtx): Delete declaration.
21502 (regno_reg_rtx, regno_pointer_align, nonlocal_goto_handler_labels):
21503 Delete declarations.
21504 (REGNO_POINTER_ALIGN): Delete.
21505 (clear_emit_caches): Declare.
21506 (set_new_last_label_num): Declare.
21507
21508 Mon Aug 9 01:52:24 1999 Jason Merrill <jason@yorick.cygnus.com>
21509
21510 * print-tree.c (print_node): Print base for OFFSET_TYPEs.
21511
21512 * except.c (expand_eh_region_start_for_decl): Always start a new block.
21513 * stmt.c (is_eh_region): Make sure current_function is present, too.
21514
21515 Mon Aug 9 01:15:24 1999 Jeffrey A Law (law@cygnus.com)
21516
21517 * pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
21518 for 64bit PA targets.
21519
21520 * pa.h (SELECT_SECTION): Define.
21521 * som.h (SELECT_SECTION): Delete.
21522
21523 Sun Aug 8 15:13:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21524
21525 * alias.c (init_alias_analysis): Wrap call to
21526 `prologue_epilogue_contains' within HAVE_prologue||HAVE_epilogue.
21527
21528 1999-08-07 Bruce Korb <autogen@linuxbox.com>
21529
21530 * fixinc/inclhack.def(irix_asm_apostrophe): IRIX 5.2's
21531 <sys/asm.h> contains an asm comment with an apostrophe
21532 * fixinc/inclhack.sh: regen
21533 * fixinc/fixincl.x: regen
21534
21535 Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
21536
21537 * function.c (init_function_start): Clear prologue & epilogue.
21538 (prologue_epilogue_contains): New function.
21539 * alias.c (init_alias_analysis): Use it.
21540 * rtl.h (prologue_epilogue_contains): Declare it.
21541
21542 Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
21543
21544 * jump.c (onlyjump_p): New function.
21545 * rtl.h: Declare it.
21546 * flow.c (delete_unreachable_blocks): Use onlyjump_p instead
21547 of condjump_p in calling tidy_fallthru_edge and merge_blocks.
21548
21549 Sat Aug 7 17:09:36 1999 Richard Henderson <rth@cygnus.com>
21550
21551 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_REG_SET
21552 to invert loops. Simplify block scanning.
21553
21554 Sat Aug 7 02:11:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21555
21556 * gcse.c (hash_scan_set): Treat SYMBOL_REFs like CONST_INTs.
21557 (cprop_insn): Treat SYMBOL_REFs like CONST_INTs.
21558
21559 1999-08-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
21560
21561 * config/sparc/liteelf.h: New file to support sparclite-elf target
21562 * config/sparc/t-sp86x: New file to support sparc86x targets
21563 * config/sparc/sp86x-aout.h: New file to support sparc86x-aout target
21564 * config/sparc/sp86x-elf.h: New file to support sparc86x-elf target
21565 * configure.in: Support above target triplets
21566 * configure: Regenerated
21567
21568 Sat Aug 7 01:39:27 1999 Philippe De Muyter <phdm@macqel.be>
21569
21570 * fixinc/server.c (server_setup): Do not prefix function used as
21571 parameter with `&'.
21572
21573 Sat Aug 7 00:21:20 1999 Richard Henderson <rth@cygnus.com>
21574
21575 * alpha.md (movhi and movqi patterns): Correct predicate for !BWX.
21576 Remove fp reg alternatives.
21577
21578 Sat Aug 7 00:06:54 1999 Jeffrey A Law (law@cygnus.com)
21579
21580 * Makefiin (TAROUTOPTS): Kill.
21581 (install-headers-tar): Use "xpf" for tar headerfile extraction
21582 * i370/x-oe (TAROUTOPTS): Delete.
21583 * m68k/x-apollo68 (TAROUTOPTS): Delete.
21584 * m68k/x-hp320 (TAROUTOPTS): Delete.
21585 * m68k/x-hp320g (TAROUTOPTS): Delete.
21586 * gcc.texi: Update bug reporting text.
21587
21588 1999-08-6 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21589
21590 * reg-stack.c (change_stack) Fixed problem with negative array index.
21591
21592 Fri Aug 6 23:08:44 1999 Jeffrey A Law (law@cygnus.com)
21593
21594 * extend.texi, install.texi: Fix spelling mistakes.
21595
21596 * Makefile.in (PREMADE_ATTRTAB_MD, PREMADE_ATTRTAB): Delete.
21597 (s-attrtab); No longer try to use pre-made insn-attrtab file.
21598 * mips/t-bsd: Delete references to obsolete PREMADE_ATTRTAB and
21599 PREMADE_ATTRTAB_MD.
21600 * mips/t-ecoff: Likewise.
21601 * mips/t-elf: Likewise.
21602 * mips/t-mips: Likewise.
21603 * mips/t-osfrose: Likewise.
21604 * mips/t-r3900: Likewise.
21605 * mips/t-svr3: Likewise.
21606 * mips/t-svr4: Likewise.
21607 * mips/t-ultrix: Likewise.
21608
21609 * gcc.texi: Document recommend means to provide software floating
21610 point libraries in libgcc.a
21611
21612 1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
21613
21614 * c-lex.c (yylex): We can have a number with no digits.
21615
21616 Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
21617
21618 * jump.c (delete_prior_computation): New function, broken
21619 out of delete_computation. Check for side effects with
21620 side_effects_p instead of FIND_REG_INC_NOTE. Handle
21621 multi-word hard registers.
21622 (delete_computation): Use it. Check for side effects with
21623 side_effects_p instead of FIND_REG_INC_NOTE. Synthesize a
21624 missing REG_DEAD note for a register which is both set and
21625 used by an insn.
21626
21627 Fri Aug 6 11:05:29 1999 Jeffrey A Law (law@cygnus.com)
21628
21629 * elf.h (TEXT_SPACE_P, FUNCTION_NAME_P): Delete.
21630 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT): Likewise.
21631 (ASM_FILE_START): Import _mcount with the right type.
21632 (ASM_DECLARE_FUNCTION_NAME): Define.
21633 (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
21634 * pa.c (output_function_prologue): Always emit the function's label
21635 here.
21636 * pa.h (TEXT_SPACE_P): Define.
21637 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
21638 (ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_GLOBALIZE_LABEL): Likewise.
21639 * som.h (TEXT_SPACE_P): Delete.
21640 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
21641 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT): Likewise.
21642
21643 Thu Aug 5 19:29:39 1999 Jim Wilson <wilson@cygnus.com>
21644
21645 * expr.c (emit_group_load): Allow src to be a CONCAT.
21646
21647 Thu Aug 5 22:27:15 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21648
21649 * config/sh/lib1funcs.asm (___movstrSI0): Change or r0,r0,r0 to nop.
21650 (___mulsi3): Use '!' comment character.
21651
21652 Thu Aug 5 13:34:14 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21653
21654 * reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
21655
21656 Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com)
21657
21658 * gcc.c: Update URLs and mail addresses.
21659 * gcc.texi: Likewise.
21660
21661 Thu Aug 5 01:14:13 1999 Daniel Jacobowitz <drow@false.org>
21662
21663 * rs6000.c (current_file_function_operand): Return zero for
21664 weak functions.
21665 (rs6000_encode_section_info): Do not set SYMBOL_REF_FLAG for
21666 weak symbols.
21667 * rs6000.h (ENCODE_SECTION_NIFO): Do not set SYMBOL_REF_FLAG
21668 for weak symbols.
21669
21670 Thu Aug 5 00:56:30 1999 Geoffrey Keating <geoffk@cygnus.com>
21671
21672 * rs6000.c (rs6000_stack_info): For ABI_V4/ABI_SOLARIS -fpic, always
21673 allocate space in the stack frame for the PIC register.
21674
21675 Thu Aug 5 00:20:47 1999 Jeffrey A Law (law@cygnus.com)
21676
21677 * m68k.md (xordi3, anddi3): These patterns are not available on
21678 the coldfire.
21679
21680 Wed Aug 4 23:39:20 1999 Mark Mitchell <mark@codesourcery.com>
21681
21682 * real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.
21683 (PUT_REAL): Likewise.
21684
21685 Wed Aug 4 20:45:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21686
21687 * final.c (shorten_branches): Don't add an alignment for loops
21688 that have no label inside.
21689
21690 Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21691
21692 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap
21693 prototypes in macro HAVE_cmpstrsi.
21694
21695 * cpplib.c (cpp_get_token): Remove unused label `op3'.
21696
21697 * emit-rtl.c (operand_subword): Remove unused variable
21698 `bits_per_word'.
21699
21700 * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'.
21701
21702 * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING.
21703
21704 Wed Aug 4 13:29:23 1999 Zack Weinberg <zack@bitmover.com>
21705
21706 * cpphash.c (macroexpand): Delete leading whitespace when arg
21707 is concatenated before.
21708 (unsafe_chars): Correct test for whether + and - can extend a
21709 token.
21710
21711 * cppinit.c (cpp_start_read): Do dependencies for
21712 -include/-imacros files also.
21713
21714 * cpplib.c (cpp_scan_buffer): In no-output mode, don't bother
21715 tokenizing non-directive lines.
21716 (cpp_expand_to_buffer): Temporarily disable no-output mode.
21717 * cppmain.c: In no-output mode, just call cpp_scan_buffer for
21718 the input file.
21719
21720 Wed Aug 4 12:53:44 1999 Jason Merrill <jason@yorick.cygnus.com>
21721
21722 * expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
21723
21724 * c-lex.c: Sync with C++ frontend.
21725 (linemode): New variable.
21726 (parse_float): imag, conversion_errno, and type are output only.
21727 (yylex): Adjust. Move initial '.' case into main switch.
21728 Use linemode.
21729 (handle_generic_pragma): Just deal with tokens.
21730 (readescape): Use ISXDIGIT and ISGRAPH.
21731 * c-parse.in: Add END_OF_LINE token.
21732
21733 * c-lex.c (lang_init): Generalize.
21734 (nextchar): Remove. Replace uses with UNGETC.
21735 (skip_white_space): Handle linemode here. Optimize for cpplib.
21736 (skip_white_space_on_line): Remove.
21737 (extend_token_buffer_to): New fn.
21738 (extend_token_buffer): Use it.
21739 (read_line_number, check_newline): Just deal with tokens.
21740 (token_getch, token_put_back): New fns.
21741 (yylex): Use them. More cpplib optimizations. Simplify.
21742
21743 Wed Aug 4 12:53:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
21744 Jason Merrill <jason@yorick.cygnus.com>
21745
21746 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
21747 (consume_string): Make this smart about USE_CPPLIB.
21748 (check_newline): Rewrite to be intelligent about USE_CPPLIB.
21749 (yylex): Rewrite to be intelligent about USE_CPPLIB.
21750 Also, clean up cases where we redundantly set token_buffer[0].
21751 (read_line_number): New fn.
21752 (ignore_escape_flag): New variable.
21753
21754 Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
21755
21756 * a29k/t-a29kbare: Fix some comments.
21757 (LIB2FUNCS_EXTRA): Remove fp-bit.c and dp-bit.c
21758 (FPBIT, DPBIT): Define.
21759 * a29k/t-vx29k: Likewise.
21760 * arc/t-arc: Likewise.
21761 * arm/t-arm-elf: Likewise.
21762 * arm/t-bare: Likewise.
21763 * arm/t-pe: Likewise.
21764 * arm/t-pe-thumb: Likewise.
21765 * arm/t-semi: Likewise.
21766 * arm/t-thumb: Likewise.
21767 * arm/t-thumb-elf: Likewise.
21768 * arm/t-thumb-linux: Likewise.
21769 * h8300/t-h8300: Likewise.
21770 * i960/t-i960: Likewise.
21771 * i960/t-vxworks960: Likewise.
21772 * m32r/t-m32r: Likewise.
21773 * mips/t-ecoff: Likewise.
21774 * mips/t-elf: Likewise.
21775 * mips/t-r3900: Likewise.
21776 * pa/t-pro: Likewise.
21777 * rs6000/t-aix43: Likewise.
21778 * rs6000/t-beos: Likewise.
21779 * rs6000/t-newas: Likewise.
21780 * rs6000/t-ppccomm: Likewise.
21781 * rs6000/t-rs6000: Likewise.
21782 * rs6000/t-winnt: Likewise.
21783 * rs6000/t-xnewas: Likewise.
21784 * rs6000/t-xrs6000: Likewise.
21785 * sh/t-sh: Likewise.
21786 * sparc/t-elf: Likewise.
21787 * sparc/t-sparcbare: Likewise.
21788 * sparc/t-sparclite: Likewise.
21789 * sparc/t-splet: Likewise.
21790 * v850/t-v850: Likewise.
21791 * mn10200/t-mn10200: Fix comments.
21792 * mn10300/t-mn10300: Likewise.
21793
21794 * pa.md (divsi3, udivsi3, modsi3, umodsi3 expanders): Clobber a new
21795 dummy operand. Allocate a new pseudo for the dummy operand.
21796 (divsi3, udivsi3, modis3, umodsi3 patterns): Corresponding changes.
21797
21798 * pa.md (movqi, movhi patterns): Do not expose FP regs to regclass.
21799
21800 Wed Aug 4 11:53:55 1999 Tom Tromey <tromey@cygnus.com>
21801
21802 * configure: Rebuilt.
21803 * configure.in: Removed --enable-java-gc option and JAVAGC subst.
21804
21805 Wed Aug 4 09:06:14 1999 Richard Earnshaw (rearnsha@arm.com)
21806
21807 * recog.c (preproces_constraints): Zero recog_op_alt before
21808 processing the constraints.
21809
21810 * arm.c (typedef minipool_node): Renamed from pool_node.
21811 (minipool_vector, minipool_size, minipool_vector_label): Similarly.
21812 (add_minipool_constant): New function.
21813 (dump_minipool): New function.
21814 (find_barrier): Remove special case for getting the insn size of
21815 an insn that references the constant pool.
21816 (minipool_fixup): New structure.
21817 (push_minipool_barrier): New function.
21818 (push_minipool_fix): New function.
21819 (note_invalid_constants): New function.
21820 (add_pool_constant, dump_table, fixit, broken_move): Delete.
21821 (arm_reorg): Rewrite code to fix up the constant pool into a
21822 series of mini-pools embedded in the insn stream.
21823 (arm_output_epilogue): New function, made mainly from the body
21824 of output_func_epilogue.
21825 (output_func_epilogue): Move insn generation part of epilogue code
21826 to arm_output_epilogue.
21827 * arm.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Delete.
21828 * arm.md (pool_range): New attribute.
21829 (zero_extendqidi2): Add attribute pool_range.
21830 (zero_extend_hisi_insn, load_extendqisi, extendhisi_insn,
21831 extendqihi_insn, extendqisi_insn, movdi, movsi_insn, pic_load_addr,
21832 pic_load_addr_based_insn, movhi_insn_arch4, movhi_insn_littleend,
21833 movhi_insn_bigend, loadhi_si_bigend, movsf_hard_insn, movsf_soft_insn,
21834 movdf_hard_insn, movdf_soft_insn, movxf_hard_insn): Likewise.
21835 (epilogue): New expand.
21836 (epilogue_insn): New insn. Call arm_output_epilogue.
21837
21838 * arm.c (arm_poke_function_name): Undo change of July 17. Tidy up.
21839 * arm.h (TARGET_SWITCHES): Add missing doc string for TARGET_DEFAULT.
21840
21841 Mon Aug 2 19:18:44 1999 Jason Merrill <jason@yorick.cygnus.com>
21842
21843 * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21844
21845 1999-08-04 Mark Elbrecht <snowball3@bigfoot.com>
21846
21847 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
21848
21849 Wed Aug 4 02:15:32 1999 Richard Henderson <rth@cygnus.com>
21850
21851 * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
21852
21853 Wed Aug 4 01:48:08 1999 Jim Kingdon <http://developer.redhat.com>
21854
21855 * global.c: Fix comment.
21856
21857 Wed Aug 4 01:43:01 1999 Ian Lance Taylor <ian@zembu.com>
21858
21859 * gcc.c (access_check): New static function.
21860 (find_a_file): Use it when searching a directory list.
21861 * collect2.c (find_a_file): Don't accept directories found when
21862 searching a directory list.
21863
21864 Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
21865
21866 * tlink.c (symbol_hash_lookup): Do not prefix functions used as
21867 function parameters with `&'.
21868 (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
21869
21870 Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
21871
21872 * flow.c (delete_unreachable_blocks): Do not call merge_blocks
21873 or tidy_fallthru_edge if the last insn in the block is not
21874 an unconditional jump or a simple conditional jump.
21875
21876 Tue Aug 3 20:21:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21877
21878 * Makefile.in (c-decl.o): Depends on defaults.h.
21879
21880 Tue Aug 3 14:14:52 1999 Jeffrey A Law (law@cygnus.com)
21881
21882 * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
21883 PA1.1 and above.
21884 (CLASS_MAX_NREGS): Likewise.
21885
21886 Tue Aug 3 03:51:20 1999 Jeffrey A Law (law@cygnus.com)
21887
21888 * cse.c (cse_insn): Fix dumb thinko in last change.
21889
21890 Tue Aug 3 10:36:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21891
21892 * reload1.c (maybe_fix_stack_asms): Declare CONSTRAINTS as
21893 "const char *".
21894
21895 Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson <hp@bitrange.com>
21896
21897 * dwarf2out.c (add_location_or_const_value_attribute): Correct
21898 test for sizes of passed and declared parameter types.
21899
21900 Tue Aug 3 00:03:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21901
21902 * fixincludes: Fix the return type of bsearch, char* -> void*.
21903
21904 * fixinc/inclhack.def: Likewise.
21905
21906 Mon Aug 2 18:29:32 1999 Mark Mitchell <mark@codesourcery.com>
21907
21908 * invoke.texi (-fdump-translation-unit): New option.
21909
21910 Mon Aug 2 17:54:19 1999 Richard Henderson <rth@cygnus.com>
21911
21912 * expr.h (PROMOTE_PROTOTYPES): Move ...
21913 * defaults.h: ... to here.
21914 * c-decl.c: Include defaults.h instead of expr.h.
21915 * c-typeck.c: Include defaults.h.
21916
21917 Mon Aug 2 17:10:24 1999 Mark Mitchell <mark@codesourcery.com>
21918
21919 * toplev.h (errorcount): Declare.
21920 (warningcount): Likewise.
21921 (sorrycount): Likewise.
21922 * c-lex.c (errorcount): Don't declare.
21923 * dwarf2out.c (errorcount): Don't declare.
21924
21925 Mon Aug 2 17:02:08 1999 Jason Merrill <jason@yorick.cygnus.com>
21926
21927 * config/libgloss.h: Add a note discouraging use with ELF.
21928 * configure.in: Don't use libgloss.h for ELF targets.
21929 Always use_collect2 on a.out targets.
21930
21931 Mon Aug 2 16:27:42 1999 Jim Wilson <wilson@cygnus.com>
21932
21933 * combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
21934 (force_to_mode, case ASHIFTRT): Add shiftrt label.
21935
21936 Tue Aug 3 00:45:02 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21937
21938 * loop.c (strength_reduce): When doing biv->giv conversion, update
21939 reg note of NEXT->insn.
21940
21941 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
21942
21943 * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.
21944
21945 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
21946
21947 * c-decl.c (get_parm_info, store_parm_decls): Change all uses of
21948 PROMOTE_PROTOTYPES, so that it tests it as a C expression.
21949 Ensure expr.h is included.
21950 * c-typecheck.c (convert_arguments): Ditto.
21951
21952 * expr.h: Supply default for PROMOTE_PROTOTYPES (0).
21953
21954 * config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
21955 * config/convex/convex.h: Ditto.
21956 * config/dsp16xx/dsp16xx.h: Ditto.
21957 * config/fx80/fx80.h: Ditto.
21958 * config/gmicro/gmicro.h: Ditto.
21959 * config/i370/i370.h: Ditto.
21960 * config/i386/i386.h: Ditto.
21961 * config/m32r/m32r.h: Ditto.
21962 * config/m68k/m68k.h: Ditto.
21963 * config/m88k/m88k.h: Ditto.
21964 * config/mips/mips.h: Ditto.
21965 * config/pa/pa.h: Ditto.
21966 * config/pyr/pyr.h: Ditto.
21967 * config/tahoe/tahoe.h: Ditto.
21968 * config/we32k/we32k.h: Ditto.
21969
21970 * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
21971 based on arch size.
21972
21973 * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.
21974
21975 * config/i860/paragon.h: Remove PROMOTE_PROTOTYPES
21976 from comment.
21977
21978 * tm.texi: Document new usage of PROMOTE_PROTOTYPES.
21979
21980 1999-08-02 Richard Henderson <rth@cygnus.com>
21981
21982 * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
21983 for the register spill block.
21984 (m32r_va_arg): New.
21985 * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
21986 (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.
21987
21988 * m32r.h (INT8_P): Don't short-cut test with (unsigned).
21989 (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
21990 (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.
21991
21992 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
21993
21994 * config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
21995 MAX_WCHAR_TYPE defined in sparc.h.
21996 * config/sparc/linuxaout.h: Likewise.
21997 * config/sparc/linux64.h: Likewise.
21998 Also default to -mvis if CPU is UltraSPARC.
21999
22000 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
22001
22002 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
22003 (RTX_OK_FOR_OLO10): Likewise.
22004 (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
22005 %lo(), allow it in addresses...
22006 (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
22007 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
22008 does not make sense.
22009 * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
22010 (sparc_output_scratch_registers): New function.
22011 (output_function_prologue, sparc_flat_output_function_prologue): Use
22012 it.
22013 * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
22014 defined.
22015 * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
22016 * configure.in: Add check for .register pseudo-op support in as and
22017 check for offsetable %lo().
22018 * acconfig.h: Add templates for the above checks.
22019 * configure: Regenerate.
22020
22021 1999-08-02 Richard Henderson <rth@cygnus.com>
22022
22023 * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
22024 * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
22025 * sparc/sol2.h (TARGET_DEFAULT): Likewise.
22026
22027 Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22028
22029 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
22030 reg_biv_class.
22031
22032 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
22033
22034 * config/float-sparc.h: New file.
22035 * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
22036 sparc-*-linux-gnu and sparc64-*-linux*.
22037
22038 1999-08-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22039
22040 * rs6000.c (rs6000_va_list): Type is an array.
22041 (rs6000_va_start): Don't doubly adjust for varargs.
22042 (rs6000_va_arg): Evaluate long long GPR adjustment.
22043
22044 Mon Aug 2 16:15:57 1999 David Edelsohn <edelsohn@gnu.org>
22045
22046 * rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
22047 -maix64 and -maix32.
22048 (ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
22049 LINK_SPEC): Change appropriately.
22050 * rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
22051 (u_short_cint_operand): Likewise.
22052 * rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
22053 for 64-bit hosts.
22054 * rs6000/t-aix43 (MULTILIB): Change to -m64.
22055
22056 * invoke.texi (RS/6000 Submodel): Document 64-bit processor options.
22057
22058 Mon Aug 2 16:15:57 1999 Geoff Keating <geoffk@cygnus.com>
22059
22060 * rs6000/rs6000.c (num_insns_constant_wide): Correct
22061 for type promotion.
22062 (add_operand): Get test correct for 64-bit HOST_WIDE_INT.
22063 (non_add_cint_operand): Likewise.
22064 (logical_operand): Likewise.
22065 (non_logical_cint_operand): Likewise.
22066 (print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
22067 (print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
22068 (rs6000_select_rtx_section): Suppress warning.
22069 (small_data_operand): Suppress warning.
22070 (rs6000_got_register): Suppress warning.
22071 * rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
22072 type, so `J' is generally the wrong constraint for a SImode value;
22073 use `L' instead.
22074 (andsi3_internal2): Likewise.
22075 (andsi3_internal3): Likewise.
22076 (iorsi3_internal1): Likewise.
22077 (xorsi3_internal1): Likewise.
22078 (movsi): Likewise.
22079 (movsf_softfloat): Likewise.
22080 (scc insns): Likewise.
22081 (movsi+2): Preserve sign bits of SImode constant.
22082 (floatsidf2_internal+1): Sign-extend SImode constant correctly.
22083 (movdf+1): Sign-extend properly.
22084 (movdi_32+1): Sign-extend properly.
22085 (scc insns): Sign-extend properly.
22086
22087 * md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
22088 K, L, and T.
22089
22090 1999-08-02 Richard Henderson <rth@cygnus.com>
22091
22092 * alpha.c (override_options): Move ev6 alpha_tp frobbing out of
22093 -mcpu parsing code.
22094 (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
22095 * alpha.md (all fp insns): Likewise.
22096
22097 1999-08-02 Nick Clifton <nickc@cygnus.com>
22098
22099 * config/v850/v850.h (STRICT_ALIGNMENT): Only define if not
22100 already defined.
22101
22102 Mon Aug 2 03:38:33 1999 Jeffrey A Law (law@cygnus.com)
22103
22104 * pa.c (legitimize_pic_address): Clarify comments. Do not call the
22105 pic_load_label generator directly.
22106 * pa.md (pic_load_label): Clarify comments. Remove modes on operands.
22107 No longer a named pattern.
22108
22109 Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
22110
22111 * explow.c (force_reg): Call force_operand if X does not
22112 satisfy general_operand.
22113
22114 Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
22115
22116 * fix-header.c (main): When testing for CONTINUED, use string
22117 equality, not pointer equality.
22118
22119 Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
22120
22121 * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
22122
22123 Sun Aug 1 22:46:42 1999 Jeffrey A Law (law@cygnus.com)
22124
22125 * cse.c (cse_insn): Fix loop which deletes insns after a jump
22126 that has become an unconditional jump.
22127
22128 * m68k.c (output_function_prologue): Fix typo in CPU32 case.
22129 (output_function_epilogue): Similarly.
22130
22131 Sun Aug 1 20:14:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22132
22133 * tree.h (init_dummy_function_start): Declare.
22134
22135 Sun Aug 1 12:55:31 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22136
22137 * stmt.c (emit_filename, emit_lineno, expr_stmts_for_value,
22138 last_expr_type, last_expr_value, block_start_count, block_stack,
22139 stack_block_stack, cond_stack, loop_stack, case_stack, nesting_stack,
22140 nesting_depth, goto_fixup_chain): Delete global vars; now allocated
22141 dynamically in stmt elt of struct function for each function.
22142 (struct nesting): Rename function_call_count elt to n_function_calls,
22143 target_temp_slot_level to block_target_temp_slot_level. All users
22144 changed.
22145 (struct stmt_status): New structure definition.
22146 Add many accessor macros for stmt_status elements which previously
22147 were global variables.
22148 (init_stmt_for_function): Allocate stmt elt for current_function.
22149 Reflect that block_start_count was renamed to
22150 current_block_start_count.
22151 (save_stmt_status, restore_stmt_status): Delete functions.
22152 (preserve_subexpressions_p): Don't access loop_stack when outside
22153 a function.
22154 (expand_start_bindings): Reflect that block_start_count was renamed to
22155 current_block_start_count.
22156 (expand_fixup): Likewise.
22157 (expand_decl): Don't access block_stack when outside a function.
22158 (expand_decl_cleanup): Likewise.
22159 (expand_dcc_cleanup): Likewise.
22160 (expand_dhc_cleanup): Likewise.
22161 (expand_anon_union_decl): Likewise.
22162 (set_file_and_line_for_stmt): New function.
22163 (in_control_zone_p): New function.
22164
22165 * function.h (struct function): Add new elt stmt.
22166 Delete elts block_stack, stack_block_stack, cond_stack, loop_stack,
22167 case_stack, nesting_stack, nesting_depth, block_start_count,
22168 last_expr_type, last_expr_value, expr_stmts_for_value, emit_filename,
22169 emit_lineno, goto_fixup_chain.
22170 (save_eh_status, restore_eh_status, save_stmt_status,
22171 restore_stmt_status): Delete declarations.
22172 * function.c (push_function_context_to): Don't call save_stmt_status.
22173 (pop_function_context_to): Don't call restore_stmt_status.
22174 * tree.h (in_control_zone_p): Declare.
22175 * rtl.h (set_file_and_line_for_stmt): Declare.
22176
22177 * emit-rtl.c (emit_line_note): Don't set emit_filename/emit_lineno;
22178 call set_file_and_line_for_stmt.
22179
22180 Thu Jul 31 12:34:45 1999 Joe Buck <jbuck@synopsys.com>
22181
22182 * gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
22183 Also update copyright.
22184
22185 Sat Jul 31 11:10:07 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22186
22187 * c-pragma.c: Don't include "except.h".
22188 * emit-rtl.c: Likewise.
22189 * stor-layout.c: Likewise.
22190 * tree.c: Likewise.
22191 * varasm.c: Likewise.
22192
22193 * flow.c: Include "function.h".
22194 * tree.h (init_dummy_function_start): Declare new function.
22195
22196 * except.h (struct eh_status): New structure.
22197 (struct label_node, struct eh_entry): Declare even if tree.h hasn't
22198 been included.
22199 (eh_return_stub_label, ehstack, catchstack, ehqueue,
22200 catch_clauses, false_label_stack, caught_return_label_stack,
22201 protect_list, current_function_ehc): Add accessor macros for the
22202 corresponding fields in current_function->eh; delete declarations
22203 for all items that used to be declared here.
22204 * except.c (eh_return_stub_label, ehstack, catchstack, ehqueue,
22205 catch_clauses, false_label_stack, caught_return_label_stack,
22206 protect_list, current_function_ehc): Delete variables.
22207 (init_eh_for_function): Allocate current_function->eh.
22208 (save_eh_status, restore_eh_status): Delete functions.
22209
22210 * function.h (struct function): Add fields next_global and eh.
22211 Delete all exception handling related fields.
22212 * function.c (current_function): New variable.
22213 (all_functions): New variable.
22214 (push_function_context_to): Don't allocate a struct function,
22215 use current_function instead. Call init_dummy_function_start when
22216 outside a function. Clear current_function before returning.
22217 (pop_function_context_from): Restore current_function.
22218 Don't free the restored struct function.
22219 (prepare_function_start): New function.
22220 (init_dummy_function_start): New function.
22221 (init_function_start): Break out some code into prepare_function_start
22222 and call it here.
22223
22224 * stmt.c (save_stmt_status): Don't call save_eh_status.
22225 (restore_stmt_status): Don't call restore_eh_status.
22226
22227 * Makefile.in: Update dependencies.
22228
22229 Sat Jul 31 04:10:01 1999 Jeffrey A Law (law@cygnus.com)
22230
22231 * pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
22232 of depending on a magic constant value. Update comments.
22233 (hppa_expand_prologue): Similarly.
22234
22235 * pa.md (reload_indi, reload_outdi): Allow any register for the
22236 original reload register.
22237
22238 Fri Jul 30 19:41:35 1999 Jim Wilson <wilson@cygnus.com>
22239
22240 * cccp.c (print_help): Change marcos to macros.
22241
22242 1999-07-30 Richard Henderson <rth@cygnus.com>
22243
22244 * c-typeck.c (initializer_constant_valid_p): Move ...
22245 * c-common.c (initializer_constant_valid_p): ... here. Use
22246 FOO_TYPE_P instead of tests against TREE_CODE. Allow subtraction
22247 of label addresses.
22248 * c-common.h (initializer_constant_valid_p): Declare.
22249 * c-tree.h (initializer_constant_valid_p): Remove.
22250
22251 Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
22252
22253 * config/i386/sol2-c1.asm: Align the stack.
22254 * config/i386/sol2-gc1.asm: Likewise.
22255
22256 1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
22257
22258 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
22259 -Asparclite for sparc86x.
22260 (CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
22261 sparc86x.
22262 (ASM_CPU_SPEC): Use -Asparclite for sparc86x.
22263
22264 Fri Jul 30 14:53:56 1999 Jakub Jelinek <jj@ultra.linux.cz>
22265
22266 * config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
22267 the user if using the non-default arch size in BI_ARCH configuration.
22268 * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.
22269
22270 * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
22271 Fix patterns so that they actually match.
22272 (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
22273 (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
22274 (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
22275 TARGET_HARD_MUL32.
22276 (mulsidi3): Reflect this in the expand.
22277 (smulsi3_highpart): Only on TARGET_ARCH32.
22278 (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
22279 (const_umulsidi3_sp32): Renamed from const_umulsidi3.
22280 (umulsidi3): Reflect this in the expand.
22281 (umulsi3_highpart): Only on TARGET_ARCH32.
22282 (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
22283 don't require g0 to be zero.
22284 (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
22285 ({,u}divsi3): New expands.
22286 ({,u}divsi3_sp64): New patterns.
22287 (after lshrdi3_v8plus): Four new patterns to help combiner
22288 optimizing nested mixed mode shifts.
22289
22290 * config/sparc/sparc.c (sparc_override_options): Use deprecated
22291 v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
22292 speed things up. Don't use them by default on plain v9 in 64bit
22293 mode, according to what SPAMv9 sais.
22294
22295 * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
22296 top 32 bits of %[og][0-7] in signal handlers.
22297 Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.
22298
22299 Fri Jul 30 03:00:41 1999 Jeffrey A Law (law@cygnus.com)
22300
22301 * pa.md (zvdep_imm32): Renamed from zvdep_imm.
22302 (ashlsi3): Corresponding changes.
22303
22304 * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
22305
22306 Thu Jul 29 18:37:13 1999 Jeffrey A Law (law@cygnus.com)
22307
22308 * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
22309
22310 Thu Jul 29 19:01:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22311
22312 * arm.h (Hint): Delete macro.
22313 Substitute HOST_WIDE_INT for Hint in some prototypes.
22314 * arm.c: Substitute HOST_WIDE_INT for Hint in one prototype.
22315
22316 Thu Jul 29 09:21:42 1999 Nick Clifton <nickc@cygnus.com>
22317
22318 * builtins.c (expand_builtin_setjmp): Use force_operand to
22319 make sure that the buffer address is in a suitable form to be
22320 passed to force_reg.
22321
22322 Wed Jul 28 12:50:48 1999 Geoff Keating <geoffk@cygnus.com>
22323
22324 * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
22325 them here.
22326
22327 Wed Jul 28 13:18:35 1999 Jeffrey A Law (law@cygnus.com)
22328
22329 * pa.md (indirect_jump): Remove mode from match_operand. Verify
22330 proper mode in the condition string.
22331 (icacheflush, dcacheflush): Remove modes from match_operands.
22332
22333 * pa.c (emit_move_sequence): Always convert scratch_reg to the
22334 proper mode before using it.
22335
22336 * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
22337 pair.
22338
22339 * pa.c (store_reg): Do not call add_high_const generator directly.
22340 (load_reg, set_reg_plus_d): Likewise.
22341 * pa.md (add_high_const): No longer a named pattern.
22342
22343 * pa.c (legitimize_address): Consistently use Pmode rather than
22344 SImode. Do not call gen_pic2_highpart directly anymore.
22345 * pa.md (pic2_highpart): No longer a named pattern.
22346 (pic2_lo_sum): Similarly. Reformat to make more readable.
22347
22348 * pa.md (call, call_value): Use "word_mode" instead of "SImode" as
22349 needed.
22350
22351 * README: Update.
22352
22353 Wed Jul 28 11:28:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22354
22355 * builtins.c (expand_builtin): Typo in call to expand_builtin_ffs.
22356
22357 Wed Jul 28 11:23:48 1999 Richard Henderson <rth@cygnus.com>
22358
22359 * pa.c (hppa_builtin_saveregs): Use get_varargs_alias_set
22360 and tag the spill mems.
22361 (hppa_va_start): New.
22362 (hppa_va_arg): New.
22363 * pa.h (EXPAND_BUILTIN_VA_START): New.
22364 (EXPAND_BUILTIN_VA_ARG): New.
22365
22366 Wed Jul 28 11:22:21 1999 Richard Henderson <rth@cygnus.com>
22367
22368 * mn10300.c (mn10300_builtin_saveregs): Use get_varargs_alias_set
22369 and tag the spill mems.
22370 (mn10300_va_start): New.
22371 (mn10300_va_arg): New.
22372 * mn10300.h (EXPAND_BUILTIN_VA_START): New.
22373 (EXPAND_BUILTIN_VA_ARG): New.
22374
22375 Wed Jul 28 11:20:19 1999 Richard Henderson <rth@cygnus.com>
22376
22377 * mn10200.c (mn10200_va_arg): New.
22378 * mn10200.h (EXPAND_BUILTIN_VA_ARG): New.
22379
22380 Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
22381
22382 * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
22383 rather than play with TREE_INT_CST_LOW.
22384
22385 1999-07-27 Philip Blundell <pb@nexus.co.uk>
22386
22387 * config/arm/telf.h: Include dbxelf.h.
22388 (CPP_PREDEFINES): Only define if not already defined.
22389 (ASM_IDENTIFY_GCC): Likewise.
22390 (SUBTARGET_EXTRA_SECTIONS): Likewise.
22391 (SUBTARGET_EXTRA_SECTION_FUNCTIONS): Likewise.
22392 * config/arm/thumb.h (LINK_SPEC): Only define if not already
22393 defined.
22394 (DBX_DEBUGGING_INFO): Don't define.
22395 * config/arm/linux-telf.h: New file.
22396 * config/arm/linux-tgas.h: New file.
22397 * config/arm/t-thumb-linux: New file.
22398 * config/arm/uclinux-elf.h: New file.
22399 * config/arm/uclinux-telf.h: New file.
22400 * configure.in (arm-*-uclinux, thumb-*-linux-gnu,
22401 thumb-*-uclinux): New targets.
22402 * configure: Regenerate.
22403
22404 Tue Jul 27 23:20:21 1999 Jeffrey A Law (law@cygnus.com)
22405
22406 * pa.md (post_store, pre_load): New expanders.
22407 (post_stwm, pre_ldwm): Renamed to post_stw and pre_ldw respectively.
22408 (post_ldwm, pre_stwm): Make these unnamed patterns since we never
22409 need to directly generate RTL for them.
22410 * pa.c (hppa_expand_prologue, hppa_expand_epilogue): Corresponding
22411 changes.
22412
22413 Tue Jul 27 16:05:52 1999 David Edelsohn <edelsohn@gnu.org>
22414
22415 * aix43.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add rs64a and PPC630.
22416 * rs6000.c (processor_target_table): Add powerpc64, rs64a, and PPC630.
22417 (rs6000_cpu): Choose between 32-bit and 64-bit default processors.
22418 (secndary_reload_class): Make TARGET_ELF conditional compile.
22419 (print_operand_address): Similar.
22420 (output_toc): Print all values as hex.
22421 (get_issue_rate): Rearrange and add RS64A and PPC630.
22422 * rs6000.h (processor_type): Add RS64A and PPC630.
22423 (PROCESSOR_POWERPC64): New.
22424 (PROMOTE_MODE): Use word_mode.
22425 (RTX_COSTS): Add RS64A and PPC630.
22426 * rs6000.md (scheduling information): Add lmul and ldiv
22427 representing 64-bit integer multiply and divide. Add rs64a and
22428 PPC630 information.
22429 (ashldi3): Add support for "rldic" instruction.
22430 * sysv4.h (PROCESSOR_DEFAULT): Change to PROCESSOR_750.
22431
22432 Tue Jul 27 15:31:53 1999 Vladimir Makarov <vmakarov@toad.to.cygnus.com>
22433
22434 * config/sparc/sparc.c (sparc_override_options): Enable SPARCLITE
22435 instead of V8 for sparclite86x in cpu_table.
22436
22437 Tue Jul 27 17:49:42 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22438
22439 * config/arm/coff.h (ASM_FILE_START): If generating SDB output, call
22440 output_file_directive.
22441
22442 Tue Jul 27 03:15:33 1999 Jason Merrill <jason@yorick.cygnus.com>
22443
22444 * expr.c (expand_expr, case PLUS_EXPR): Get the mode from the
22445 tree for op1, not the rtl.
22446
22447 Tue Jul 27 00:18:34 1999 Richard Henderson <rth@cygnus.com>
22448
22449 * m88k.c (m88k_builtin_saveregs): Break out the constructor code
22450 to m88k_va_start, leaving only the register spill.
22451 (m88k_build_va_list): New.
22452 (m88k_va_start): New.
22453 (m88k_va_arg): New.
22454 * m88k.h (BUILD_VA_LIST_TYPE): New.
22455 (EXPAND_BUILTIN_VA_START): New.
22456 (EXPAND_BUILTIN_VA_ARG): New.
22457
22458 Mon Jul 26 19:07:11 1999 Geoff Keating <geoffk@cygnus.com>
22459
22460 * config/rs6000/rs6000.c (rs6000_expand_builtin_saveregs):
22461 Rename from expand_builtin_saveregs.
22462 * config/rs6000/rs6000.h (EXPAND_BUILTIN_SAVEREGS): Change caller.
22463
22464 Mon Jul 26 22:52:47 1999 Richard Henderson <rth@cygnus.com>
22465
22466 * i960.c (i960_setup_incoming_varargs): Use get_varargs_alias_set
22467 for the register spill block.
22468 (i960_build_va_list): New.
22469 (i960_va_start): New.
22470 (i960_va_arg): New.
22471 * i960.h (BUILD_VA_LIST_TYPE): New.
22472 (EXPAND_BUILTIN_VA_START): New.
22473 (EXPAND_BUILTIN_VA_ARG): New.
22474 * i960.md (store_multiple): Use change_address on individul mems.
22475
22476 Mon Jul 26 22:43:12 1999 Richard Henderson <rth@cygnus.com>
22477
22478 * builtins.c (stabilize_va_list): Don't INDIRECT_REF through
22479 an ARRAY_TYPE.
22480 (std_expand_builtin_va_start): Back out one word if !stdarg_p.
22481 (expand_builtin_va_end): Evaluate arg for side effects.
22482 * c-common.c (c_common_nodes_and_builtins): Construct a
22483 va_list_arg_type_node to handle array decomposition to pointer.
22484
22485 Mon Jul 26 18:51:34 1999 Richard Henderson <rth@cygnus.com>
22486
22487 * except.c (st_dynamic_cleanup): Use force_operand on the
22488 buffer's address.
22489
22490 Mon Jul 26 16:43:26 1999 Richard Henderson <rth@cygnus.com>
22491
22492 * c4x.h (EXPAND_BUILTIN_VA_ARG): New.
22493 * c4x.c (c4x_va_arg): New.
22494
22495 Mon Jul 26 12:30:09 1999 Jason Merrill <jason@yorick.cygnus.com>
22496
22497 * cpplib.c (cpp_get_token): Don't return a CPP_POP if the buffer
22498 has manual_pop set.
22499
22500 1999-07-26 Nathan Sidwell <nathan@acm.org>
22501
22502 * eh-common.h (__eh_matcher): Prototype correctly.
22503
22504 Mon Jul 26 17:24:51 1999 Philip Blundell <pb@nexus.co.uk>
22505
22506 * config/arm/thumb.h (THUMB_FLAG_SINGLE_PIC_BASE): Define.
22507 (TARGET_SINGLE_PIC_BASE): Likewise.
22508 (GOT_PCREL, NEED_GOT_RELOC, NEED_PLT_RELOC): Provide default
22509 definitions.
22510 (TARGET_CALLEE_INTERWORKING): Fix typo in comment.
22511 (TARGET_SWITCHES): Add -m{no-}single-pic-base.
22512 (TARGET_OPTIONS): Add -mpic-register=N.
22513 (OUTPUT_INT_ADDR_CONST): New macro.
22514 (INDEX_REGISTER_RTX_P, PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC,
22515 LEGITIMATE_PIC_OPERAND_P): Likewise.
22516 (LEGITIMIZE_ADDRESS, GOT_IF_LEGITIMATE_ADDRESS): Support PIC.
22517 (ASM_OUTPUT_INT): Use OUTPUT_INT_ADDR_CONST rather than calling
22518 output_addr_const directly.
22519 (PRINT_OPERAND_PUNCT_VALID_P): Accept `|' for compatibility with
22520 ARM port.
22521 (thumb_pic_register, thumb_pic_register_string): Declare.
22522
22523 * config/arm/thumb.c (symbol_mentioned_p): New function: Imported
22524 from arm.c.
22525 (label_mentioned_p): New function: Imported from arm.c.
22526 (legitimize_pic_address): New function: Imported from arm.c.
22527 (is_pic):New function: Imported from arm.c.
22528 (thumb_finalize_pic):New function: Imported from arm.c.
22529 (add_constant): Cope with PIC constants.
22530 (fixit): Cope with PIC constants.
22531 (output_return): Do not treat the PIC register as live if
22532 TARGET_SINGLE_PIC_BASE is true.
22533 (thumb_function_prologue): Do not treat the PIC register as live if
22534 TARGET_SINGLE_PIC_BASE is true.
22535 (thumb_expand_prologue): Do not treat the PIC register as live if
22536 TARGET_SINGLE_PIC_BASE is true.
22537 (thumb_unexpand_epilogue): Do not treat the PIC register as live if
22538 TARGET_SINGLE_PIC_BASE is true.
22539 (thumb_print_operand): Accept '|'.
22540 (thumb_override_options): Process PIC options.
22541
22542 * config/arm/thumb.md (movsi): Support PIC.
22543 (call_insn): Change "i" constraint to "X".
22544 (call_value_insn): Likewise.
22545 (consttable_4, consttable_8, consttable_end): Set and clear
22546 "making_const_table" as appropriate.
22547 (pic_load_addr, pic_add_dot_plus_four): New insns.
22548
22549 * invoke.texi (Thumb Options): Fix spelling. Document new
22550 options -msingle-pic-base and -mpic-register=.
22551
22552 1999-07-26 Andrew Haley <aph@cygnus.com>
22553
22554 * config/m32r/initfini.c (__init): Use a full word immediate for
22555 __fini: this allows it to be placed in any memory region.
22556
22557 * config/m32r/t-m32r: Compile crtinit.o and crtfini.o for
22558 -mmodel=medium. This is OK for all memory models.
22559
22560 Mon Jul 26 11:58:46 1999 Nick Clifton <nickc@cygnus.com>
22561
22562 * config/arm/arm.c: Replace %R%s in asm_fprintf strings with %r.
22563 * config/arm/arm.h: Replace %R%s in asm_fprintf strings with %r.
22564
22565 Mon Jul 26 10:23:36 1999 Nick Clifton <nickc@cygnus.com>
22566
22567 * final.c (asm_fprintf): Accept ASM_FPRINTF_EXTENSIONS, if
22568 defined.
22569
22570 * tm.texi: Document ASM_FPRINTF_EXTENSIONS.
22571
22572 Sun Jul 25 23:51:59 1999 Richard Henderson <rth@cygnus.com>
22573
22574 * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
22575 (BUILD_VA_LIST_TYPE): New.
22576 (EXPAND_BUILTIN_VA_START): New.
22577 (EXPAND_BUILTIN_VA_ARG): New.
22578 * i860.c (output_delayed_branch): Disable.
22579 (output_delay_insn): Likewise.
22580 (i860_saveregs): New.
22581 (i860_build_va_list): New.
22582 (i860_va_start): New.
22583 (i860_va_arg): New.
22584 * i860.md: Disable all peepholes using output_delayed_branch.
22585 * i860/sysv4.h (I860_SVR4_VA_LIST): New.
22586
22587 Sun Jul 25 23:44:13 1999 Richard Henderson <rth@cygnus.com>
22588
22589 * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
22590 (BUILD_VA_LIST_TYPE): New.
22591 (EXPAND_BUILTIN_VA_START): New.
22592 (EXPAND_BUILTIN_VA_ARG): New.
22593 * clipper.c (clipper_builtin_saveregs): Only dump registers.
22594 Return the address of the save area.
22595 (clipper_build_va_list): New.
22596 (clipper_va_start): New.
22597 (clipper_va_arg): New.
22598
22599 Sun Jul 25 22:56:47 1999 Richard Henderson <rth@cygnus.com>
22600
22601 * arc.h (EXPAND_BUILTIN_VA_START): New.
22602 (EXPAND_BUILTIN_VA_ARG): New.
22603 * arc.c (arc_setup_incoming_varargs): Set alias set of
22604 varargs save area.
22605 (arc_va_start): New.
22606 (arc_va_arg): New.
22607
22608 Sun Jul 25 22:45:55 1999 Richard Henderson <rth@cygnus.com>
22609
22610 * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
22611 (BUILD_VA_LIST_TYPE): New.
22612 (EXPAND_BUILTIN_VA_START): New.
22613 (EXPAND_BUILTIN_VA_ARG): New.
22614 * alpha.c (alpha_builtin_saveregs): Delete.
22615 (alpha_build_va_list): New.
22616 (alpha_va_start): New.
22617 (alpha_va_arg): New.
22618
22619 Sun Jul 25 21:40:33 1999 Jeffrey A Law (law@cygnus.com)
22620
22621 * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
22622 column zero.
22623 (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
22624 (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
22625
22626 * gcc.texi: More changes related to list conversion.
22627 * invoke.texi: Likewise.
22628
22629 Sun Jul 25 18:15:39 1999 Richard Henderson <rth@cygnus.com>
22630
22631 * builtins.c (expand_builtin_saveregs): Remove static, remove exp
22632 and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
22633 (expand_builtin_next_arg): Accept ARGLIST not EXP.
22634 (stabilize_va_list): New function.
22635 (std_expand_builtin_va_start): New function.
22636 (expand_builtin_va_start): New function.
22637 (get_varargs_alias_set): New function.
22638 (std_expand_builtin_va_arg): New function.
22639 (expand_builtin_va_arg): New function.
22640 (expand_builtin_va_end): New function.
22641 (expand_builtin_va_copy): New function.
22642 (expand_builtin): Call them.
22643 * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
22644 __builtin_{varargs_start,stdarg_start,end,copy}.
22645 (build_va_arg): New function.
22646 * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
22647 (build_va_arg): Declare.
22648 * c-decl.c (ptr_type_node, va_list_type_node): New.
22649 * c-parse.gperf (__builtin_va_arg): New.
22650 * c-parse.in (VA_ARG): New token.
22651 (unary_expr): Recognize it.
22652 * expr.c (expand_expr): Expand VA_ARG_EXPR.
22653 * expr.h (std_expand_builtin_va_start): Declare.
22654 (std_expand_builtin_va_arg): Declare.
22655 (expand_builtin_va_arg): Declare.
22656 (get_varargs_alias_set): Declare.
22657 * tree.def (VA_ARG_EXPR): New.
22658 * tree.h (BUILT_IN_VARARGS_START): New.
22659 (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
22660 (ptr_type_node, va_list_type_node): Declare.
22661 * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
22662 * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
22663 * m88k.h, m88k.c: Likewise.
22664 * mn10300.h, mn10300.c: Likewise.
22665 * pa.h, pa.c: Likewise.
22666 * rs6000.h, rs6000.c: Likewise.
22667 * sh.h, sh.c: Likewise.
22668 * sparc.h, sparc.c: Likewise.
22669
22670 * emit-rtl.c (operand_subword): Copy alias set.
22671 (change_address): Likewise.
22672
22673 Sun Jul 25 15:04:37 1999 Jeffrey A Law (law@cygnus.com)
22674
22675 * pa.c (compute_frame_size): Scan all the used callee saved registers,
22676 not just the first one.
22677
22678 Fri Jul 23 14:09:58 1999 Philip Blundell <pb@nexus.co.uk>
22679
22680 * config/arm/arm.h (TARGET_SWITCHES): Add
22681 -m{no-}single-pic-base. Correct help string for -mshort-load-words.
22682 (TARGET_OPTIONS): Add -mpic-register=.
22683 (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
22684 (arm_pic_register_string): Declare.
22685 (NEED_PLT_GOT): Delete, replace with ...
22686 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
22687 (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
22688 (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
22689 * config/arm/arm.c (arm_override_options): Add new option
22690 -mpic-register=N.
22691 (arm_pic_register_string): New variable.
22692 (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
22693 (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
22694 register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
22695 (output_return_instruction): Likewise.
22696 * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
22697 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
22698 * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
22699
22700 * invoke.texi (ARM Options): Fix spelling. Remove duplicate
22701 mention of -msched-prolog. Document new options -msingle-pic-base
22702 and -mpic-register=.
22703
22704 Thu Jul 22 18:23:56 1999 Richard Henderson <rth@cygnus.com>
22705
22706 * haifa-sched.c (reemit_notes): Tidy.
22707 * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
22708 haifa's routine.
22709
22710 Thu Jul 22 18:21:04 1999 Richard Henderson <rth@cygnus.com>
22711
22712 * explow.c (trunc_int_for_mode): New function.
22713 (plus_constant_wide): Use it.
22714 * combine.c (simplify_and_const_int): Likewise.
22715 (merge_outer_ops): Likewise.
22716 (simplify_shift_const): Likewise.
22717 * cse.c (simplify_unary_operation): Likewise.
22718 (simplify_binary_operation): Likewise.
22719 * emit-rtl.c (operand_subword): Likewise.
22720 * rtl.h: Declare it.
22721
22722 Thu Jul 22 14:34:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22723
22724 * config/arm/arm.c (arm_print_operand): Fix typo in 'M' case
22725 (use NUM_REGS instead of NUM_INTS).
22726
22727 Thu Jul 22 11:25:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22728
22729 * builtins.c: New file.
22730 * expr.c (saveregs_value, apply_args_value): Delete definition,
22731 moved into builtins.c.
22732 (string_constant): No longer static.
22733 (get_pointer_alignment, c_strlen, get_memory_rtx, expand_builtin,
22734 apply_args_size, apply_result_size, result_vector,
22735 expand_builtin_apply_args, expand_builtin_apply,
22736 expand_builtin_return): Delete functions, moved into builtins.c.
22737 (INCOMING_REGNO, OUTGOING_REGNO): Delete unused macros.
22738 * expr.h (saveregs_value, apply_args_value): Declare variables.
22739 (expand_builtin, string_constant): Declare functions.
22740 * Makefile.in: Update to build builtin.o.
22741
22742 Wed Jul 21 00:46:58 1999 Mark P. Mitchell <mark@codesourcery.com>
22743
22744 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
22745 * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it.
22746 * dwarf2out.c (dwarf2out_init): Don't output a label to mark the
22747 start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is
22748 false.
22749 * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL):
22750 Define to zero.
22751
22752 1999-07-21 Michael Meissner <meissner@cygnus.com>
22753
22754 * print-rtl.c (print_rtx): Print the names of the virtual
22755 registers.
22756
22757 Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
22758
22759 * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo
22760 introduced in previous delta.
22761
22762 Wed Jul 21 14:30:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22763
22764 * c-lang.c (finish_file): Rename void_list_node to void_list_node_1
22765 to avoid name clash.
22766
22767 Wed Jul 21 08:39:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
22768
22769 * c-lex.c (yylex) : Correct the test for overflow when lexing
22770 integer literals.
22771
22772 Tue Jul 20 18:02:42 1999 Richard Henderson <rth@cygnus.com>
22773
22774 * haifa-sched.c (insn_cost): FREE implies cost 0 and vice versa.
22775 (adjust_priority): Always call ADJUST_PRIORITY.
22776 (schedule_insn): Only put insns into the ready at cost 0.
22777 (schedule_block): Remove redundant initial sort. Give clock_var
22778 and can_issue_more to MD_SCHED_REORDER. Requeue if hazard cost
22779 is not 0.
22780 * tm.texi (MD_SCHED_REORDER): Update docs.
22781
22782 * sparc.h (MD_SCHED_REORDER): Update. Set CAN_ISSUE_MORE.
22783 * sparc.c (ultra_reorder_called_this_block): Delete.
22784 (ultrasparc_sched_init): Don't set it.
22785 (ultrasparc_sched_reorder): Don't check it.
22786
22787 Tue Jul 20 17:07:54 1999 Richard Henderson <rth@cygnus.com>
22788
22789 * rs6000.h (struct rs6000_args): Add sysv_gregno.
22790 * rs6000.c (init_cumulative_args): Init sysv_gregno.
22791 (function_arg_boundary): Align DFmode.
22792 (function_arg_advance): Restructure for ABI_V4; use sysv_gregno
22793 to get fp reg and stack overflow correct.
22794 (function_arg): Likewise.
22795 (function_arg_pass_by_reference): True for TFmode for ABI_V4.
22796 (setup_incoming_varargs): Restructure for ABI_V4; use
22797 function_arg_advance to skip final named argument.
22798 (expand_builtin_saveregs): Properly unskip the last integer arg
22799 when doing varargs. Adjust overflow location calculation.
22800
22801 * ginclude/va-ppc.h (struct __va_list_tag): Make gpr and fpr
22802 explicitly unsigned.
22803 (__VA_FP_REGSAVE): Use new OFS argument instead of AP->fpr directly.
22804 (__VA_GP_REGSAVE): Similarly.
22805 (__va_longlong_p): Delete.
22806 (__va_arg_type_violation): New declaration.
22807 (va_arg): Restructure. Flag promotion errors. Align double.
22808 TFmode passed by reference.
22809
22810 * rs6000.md (movdi_32+1): Use GEN_INT after arithmetic
22811 in the HOST_BITS_PER_WIDE_INT > 32 case.
22812
22813 Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson <hp@bitrange.com>
22814
22815 * dwarf2out.c (output_abbrev_section): Terminate with a zero.
22816
22817 Tue Jul 20 12:12:27 1999 Jason Merrill <jason@yorick.cygnus.com>
22818
22819 * gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
22820 * toplev.c (documented_lang_options): Add -fpreprocessed.
22821 * cpplib.h (struct cpp_buffer): Add preprocessed.
22822 * cppinit.c (cpp_handle_option): Handle -fpreprocessed.
22823 (cpp_start_read): Don't expand macros or emit an initial #line
22824 directive if -fpreprocessed.
22825
22826 Tue Jul 20 12:12:09 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
22827
22828 * cpplib.h (struct cpp_buffer): Added manual_pop for
22829 better C++ tokenization.
22830 * cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
22831 Also, support C++ tokenization for ->*, .*, <?, and >? operators.
22832 * c-common.c (cpp_token): Make non-static.
22833
22834 Tue Jul 20 11:24:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22835
22836 * c-common.h: New file.
22837 * c-common.c (permanent_obstack): Delete unused declaration.
22838 (c_global_trees): New array.
22839 (c_common_nodes_and_builtins): New function; split off common code
22840 from init_decl_processing in both c-decl.c and cp/decl.c.
22841 * c-tree.h: Delete lots of declarations of tree nodes; replaced by
22842 c_global_trees and accessor macros defined in c-common.h.
22843 Include c-common.h.
22844 * c-decl.c: Delete definitions for tree nodes that were replaced by
22845 c_global_trees.
22846 (init_decl_processing): Build void_list_node.
22847 Call c_common_nodes_and_builtins; delete code to generate the common
22848 builtins here.
22849 * objc/objc-act.c (build_module_descriptor): Rename variable
22850 void_list_node to avoid clash with c-common.h.
22851
22852 * Makefile.in: Update dependencies.
22853 * objc/Make-lang.in: Likewise.
22854
22855 Mon Jul 19 14:22:18 1999 Mark P. Mitchell <mark@codesourcery.com>
22856
22857 * config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
22858 (UNIQUE_SECTION_P): Likewise.
22859 (UNIQUE_SECTION): Likewise.
22860
22861 1999-07-19 Linas Vepstas <linas@linas.org>
22862
22863 * config/i370/README: New file.
22864 * config/i370/linux.h: New file.
22865 * config/i370/mvs.h: New file.
22866 * config/i370/oe.h: New file.
22867 * config/i370/t-linux: New file.
22868 * config/i370/t-mvs: New file.
22869 * config/i370/t-oe: New file.
22870 * config/i370/x-oe: New file.
22871 * config/i370/xm-linux.h: New file.
22872 * config/i370/xm-mvs.h: New file.
22873 * config/i370/xm-oe.h: New file.
22874
22875 * i370.c (label_node_t): Add first_ref_page, label_addr,
22876 label_first_ref, label_last_ref members.
22877 (mvs_need_base_reload): Renamed from mvs_label_emitted.
22878 (MAX_MVS_LABEL_SIZE): Define.
22879 (MAX_LONG_LABEL_SIZE): Define.
22880 (alias_node_t, alias_anchor, alias_number): New.
22881 (mvs_function_table): Reorder for EBCDIC.
22882 (ascebc, ebcasc): Unconditionally define.
22883 (i370_branch_dest, i370_branch_length): New functions.
22884 (i370_short_branch, i370_label_scan): New functions.
22885 (mvs_get_label): Renamed from mvs_add_label. Search for
22886 an existing label before creating a new one.
22887 (mvs_add_label): New function.
22888 (mvs_get_label_page): New function.
22889 (mvs_free_label_list): Renamed from mvs_free_label. Iterate
22890 over the entire list.
22891 (mvs_check_page) [TARGET_HLASM]: Use BASR not BALR.
22892 (mvs_check_page) [TARGET_ELF_ABI]: New function.
22893 (mvs_add_alias, mvs_need_alias): New functions.
22894 (mvs_get_alias, mvs_check_alias): New functions.
22895 (handle_pragma): New function.
22896 (mvs_function_check): New function.
22897 (unsigned_jump_follows_p): Search harder.
22898 (i370_function_prolog) [TARGET_HLASM]: Handle LE370. Scan labels.
22899 (i370_function_prolog) [TARGET_ELF_ABI]: New function.
22900 * i370.h (TARGET_VERSION): Delete.
22901 (CPP_SPEC, CPP_PREDEFINES): Delete.
22902 (mvs_label_emitted): Delete.
22903 (TARGET_EBCDIC): Delete.
22904 (MAP_CHARACTER): Define only if TARGET_EBCDIC.
22905 (HANDLE_PRAGMA): Define.
22906 (HARD_REGNO_NREGS): Handle complex modes.
22907 (HARD_REGNO_MODE_OK): Likewise.
22908 (CLASS_MAX_NREGS): Likewise.
22909 (RET_REG): Likewise.
22910 (EXTRA_CONSTRAINT): Define.
22911 (RETURN_IN_MEMORY): True for DImode.
22912 (TRAMPOLINE_TEMPLATE): Use gen_rtx instead of GEN_INT.
22913 (FUNCTION_PROFILER): Delete.
22914 (COUNT_REGS): Fail if REG_P but not REG_OK_FOR_BASE_P.
22915 (NOTICE_UPDATE_CC): Correct handling of MULT, DIV, logicals and shifts.
22916 (TARGET_ESC, TARGET_BELL): Conditionally define for TARGET_EBCDIC.
22917 (TARGET_BS, TARGET_TAB, TARGET_NEWLINE): Likewise.
22918 (TARGET_VT, TARGET_FF, TARGET_CR): Likewise.
22919 (ASM_FILE_START): Add "RMODE ANY".
22920 (ASM_OUTPUT_EXTERNAL): Check for aliases.
22921 (ASM_GLOBALIZE_LABEL): Likewise.
22922 (ASM_OUTPUT_LABELREF): Likewise.
22923 (ASM_OUTPUT_COMMON): Likewise.
22924 (PRINT_OPERAND): Handle 'K', 'W', default.
22925 (PRINT_OPERAND_ADDRESS): New.
22926 (Lots of defines): Add support for TARGET_ELF_ABI.
22927 * i370.md (attr length): New. Define for all patterns.
22928 (*): Lots of tweeks to assembly output and constraints.
22929
22930 Mon Jul 19 15:09:29 1999 David Edelsohn <edelsohn@gnu.org>
22931
22932 * rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
22933 Disable patterns performing SImode comparisons with SImode values
22934 if TARGET_POWERPC64 and instruction does not sign-extend or does
22935 not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
22936 differ for signed quantities.
22937 (indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
22938 (tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
22939 (decrement_and_branch_on_count): Add 64-bit variant.
22940
22941 Mon Jul 19 09:36:27 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22942
22943 * final.c (output_asm_insn): When searching for the matching string
22944 for a given dialect, don't run past the end of the list of
22945 alternatives if there are fewer alternatives in the template than
22946 dialects.
22947
22948 1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
22949
22950 * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
22951 Removed paragraph about compression of files and size limitation,
22952 duplicated in the FAQ. Use gcc-patches for posting patches.
22953 * gcc.c (main): Updated URL with bug reporting instructions to
22954 gcc.gnu.org. Removed e-mail address.
22955 * system.h (abort): Likewise.
22956
22957 1999-07-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22958
22959 * Makefile.in (stmp-multilib-sub): Make the files extracted
22960 from $(LIBGCC1) writable.
22961
22962 Sat Jul 17 14:25:46 1999 Nick Clifton <nickc@cygnus.com>
22963
22964 * config/arm/aout.h: Reformat for improved readability.
22965
22966 * config/arm/arm.h: Reformat for improved readability.
22967 Replace uses of fprintf with asm_fprintf where appropriate.
22968 (ARM_DECLARE_FUNCTION_NAME): New macro: Perform any generic ARM
22969 function declaration assembler actions.
22970 (NUM_INTS): New macro: Convert from bytes to words.
22971 (NUM_REGS): New macro: Compute number of registers required to
22972 hold a quanitity of tyep MODE.
22973 (NUM_REGS2): New macro: Like NUM_REGS but also copes with BLKmode
22974 types.
22975 (NUM_ARG_REGS): New macro: The number of argument registers
22976 available.
22977 (ARG_REGISTER): New macro: Compute the register number of the Nth
22978 argument register.
22979 (LAST_ARG_REGNUM): New macro: The number of the last argument
22980 register.
22981 (SP_REGNUM): New macro: Register number of the stack pointer.
22982 (FP_REGNUM): New macro: Register number of the frame pointer.
22983 (FUNCTION_ARG, FUNCTION_ARG_PARTIAL_NREGS, INIT_CUMULATIVE_AGS,
22984 FUNCTION_ARG_ADVANCE, SETUP_INCOMING_VARARGS): Change
22985 CUMULATIVE_ARGS so that it counts registers not bytes.
22986
22987 * config/arm/arm.c: Rename TARGET_THUMB_INTERWORK to
22988 TARGET_INTERWORK.
22989 Replace uses of fprintf with asm_fprintf where appropriate.
22990 (output_ascii_pseudo_op): Replace with version from thumb.c
22991
22992 * config/arm/coff.h (ASM_FILE_START): Emit ASM_APP_OFF.
22993
22994 * config/arm/elf.h (CPP_PREDEFINES): Replace with
22995 SUBTARGET_CPP_SPEC.
22996 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
22997 (ASM_FILE_START): Emit ASM_APP_OFF.
22998
22999 Fri Jul 16 13:48:09 1999 Jeffrey A Law (law@cygnus.com)
23000
23001 * pa.c (compute_frame_size): Round frame according to
23002 STACK_BOUNDARY rather than a hardwired value.
23003
23004 * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
23005
23006 * configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
23007 of "1".
23008 * configure: Rebuilt.
23009
23010 * configure.in (hppa*-*-linux*): New configuration.
23011 * configure: Rebuilt.
23012 * pa.h (MAX_OFILE_ALIGNMENT): Delete.
23013 * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
23014 * pa/pa-linux.h: New file.
23015 * pa/t-linux: New file.
23016 * pa/xm-linux.h: New file.
23017
23018 * pa.c (hppa_legitimize_address): Change references from SImode to
23019 either Pmode or word_mode as appropriate.
23020 (emit_move_sequence, store_reg, load_reg): Likewise.
23021 (set_reg_plus_d, hppa_expand_prologue): Likewise.
23022 (output_mul_insn): Likewise.
23023 * pa.h (PROMOTE_MODE): Likewise.
23024 (INITIALZE_TRAMPOLINE): Likewise.
23025 (Pmode): Define to word_mode.
23026
23027 * pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
23028 value of 4. Allocate 8 bytes for each FP register save.
23029 (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
23030 value of 4.
23031 (hppa_expand_prologue): Likewise.
23032 * pa.h (PROMOTE_MODE): Likewise.
23033 (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
23034 (FUNCTION_ARG_BOUNDARY): Likewise.
23035
23036 * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
23037
23038 * pa.c (out_of_line_prologue_epilogue): Delete.
23039 (override_options): Remove -mspace related code.
23040 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
23041 (compute_frame_size): Only allocate space for register that
23042 actually need to be saved.
23043 * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
23044 (TARGET_SWITCHES): Remove -mspace, -mno-space
23045 * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
23046 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise. Remove -mspace multilib.
23047 * pa/ee.asm, pa/ee_fp.asm: Delete.
23048
23049 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
23050
23051 * config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
23052 directive in column zero.
23053
23054 Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
23055
23056 * m68k.c (output_function_prologue): Fix computation of save mask
23057 when generating PIC code.
23058
23059 Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
23060
23061 * tree.c (build_type_attribute_variant): Move current_obstack restore
23062 after build_qualified_type call.
23063
23064 1999-07-15 Mark Mitchell <mark@codesourcery.com>
23065
23066 * configure.in: Use t-iris6, even with GNU LD.
23067 * config/mips/iris6gld.h: Fix typo in linker spec.
23068 * config/mips/t-iris6gld: Remove.
23069
23070 Thu Jul 15 15:15:43 1999 David Edelsohn <edelsohn@gnu.org>
23071
23072 * rs6000.md (insv, extzv): Remove SImode dependence in named
23073 patterns. Explicitly generate DImode RTL if PowerPC64 and
23074 operand is DImode.
23075 (insvdi): Reverse start and size in instruction template.
23076
23077 1999-07-12 Joseph S. Myers <jsm28@cam.ac.uk>
23078
23079 * invoke.texi: Typo fixes.
23080
23081 Wed Jul 14 23:28:06 1999 Jeffrey A Law (law@cygnus.com)
23082
23083 * emit-rtl.c (gen_realpart): Issue an error for cases GCC can not
23084 handle at this time instead of silently generating incorrect code.
23085 (gen_imagpart): Likewise.
23086
23087 * reload.c (find_reloads): Emit a USE for a pseudo register without
23088 a hard register if we could not create an optional reload for the
23089 pseudo.
23090
23091 Wed Jul 14 23:45:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23092
23093 * c-typeck.c (output_init_element, process_init_element):
23094 When advancing constructor_unfilled_fields for a RECORD_TYPE,
23095 check for nameless bit fields.
23096
23097 Wed Jul 14 01:57:39 1999 Richard Henderson <rth@cygnus.com>
23098
23099 * regclass.c (scan_one_insn): Notice subregs that change the
23100 size of their operand.
23101 (record_reg_classes): Use that to obey CLASS_CANNOT_CHANGE_SIZE.
23102
23103 Wed Jul 14 01:41:42 1999 Jeffrey A Law (law@cygnus.com)
23104
23105 * configure.in (alpha*-*-*): Include alpha/t-ieee.
23106 * configure: Rebuilt.
23107 * alpha/t-ieee: New file.
23108
23109 Tue Jul 13 10:45:58 1999 Jeffrey A Law (law@cygnus.com)
23110
23111 * rs6000.c (find_addr_reg): Do not select r0 as an address
23112 register.
23113
23114 Tue Jul 13 00:46:18 1999 Philippe De Muyter <phdm@macqel.be>
23115
23116 * m68k/x-mot3300 (XCFLAGS): List of big files now includes `cse.o'.
23117
23118 Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
23119
23120 * rs6000.md (movsf): Do not force easy FP constants into memory.
23121
23122 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
23123 immed_double_const to ensure they are properly truncated then
23124 sign extended.
23125
23126 Mon Jul 12 10:40:01 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
23127
23128 * config/arm/thumb.c (thumb_reorg): Call replace_symbols_in_block
23129 always unless NO_DEBUG is used. Compile this code
23130 unconditionally.
23131 (replace_symbols_in_block): Compile it unconditionally.
23132
23133 Sun Jul 11 12:32:32 1999 Jeffrey A Law (law@cygnus.com)
23134
23135 * configure.in (i?86-*-elf*): New target.
23136 * configure: Rebuilt.
23137 * i386/i386elf.h, i386/t-i386elf: New files.
23138
23139 Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
23140
23141 * toplev.c (main): Don't complain about saying -gdwarf.
23142 (rest_of_compilation): Remove redundant code.
23143
23144 Fri Jul 9 19:08:55 1999 Jim Wilson <wilson@cygnus.com>
23145
23146 * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
23147
23148 Fri Jul 9 18:54:18 1999 Felix Lee <flee@cygnus.com>
23149
23150 * config/i960/i960.c (ret_label): Change asm label from "LR:" to
23151 "Li960R:", to avoid name clash.
23152
23153 Fri Jul 9 10:48:28 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23154
23155 * loop.c (check_dbra_loop): When reversing a loop, delete all
23156 REG_EQUAL notes referencing the reversed biv except those which are
23157 for a giv based on it.
23158
23159 Fri Jul 9 03:51:52 1999 Jeffrey A Law (law@cygnus.com)
23160
23161 * version.c: Drop "gcc-" prefix from version #.
23162
23163 Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
23164
23165 * dwarf2out.c (dwarf2out_line): Emit a line number comment after
23166 the label if we're being verbose.
23167
23168 Thu Jul 8 14:18:46 1999 Richard Henderson <rth@cygnus.com>
23169
23170 * m68k.c (output_function_prologue): Add pic register to mask
23171 if live and flag_pic.
23172 (output_function_epilogue): Likewise.
23173
23174 Thu Jul 8 12:55:12 1999 Jeffrey A Law (law@cygnus.com)
23175
23176 * dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Do not put assembler
23177 directives in column zero.
23178
23179 * pa/elf.h (ASM_FILE_START): Define.
23180 * pa/som.h (ASM_FILE_START): Include .level directives.
23181 * pa/hpux10.h (ASM_FILE_START): Delete.
23182 * pa/hpux11.h (ASM_FILE_START): Delete.
23183
23184 * pa/elf.h (BSS_SECTION_ASM_OP): Use .section .bss.
23185
23186 Thu Jul 8 18:03:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23187
23188 * reload1.c (choose_reload_regs): Never call remove_adress_replacements
23189 when reload_out equals reload_in.
23190
23191 Thu Jul 8 16:50:14 1999 Nick Clifton <nickc@cygnus.com>
23192
23193 * invoke.texi (Spec Files): New node: Describe the contents of
23194 spec files.
23195
23196 Thu Jul 8 10:28:25 1999 Craig Burley <craig@jcb-sc.com>
23197
23198 * invoke.texi (DEC Alpha Options): Put @end table at
23199 beginning of line, to avoid confusing texi2html.
23200
23201 Thu Jul 8 09:22:06 1999 Nick Clifton <nickc@cygnus.com>
23202
23203 * config/arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Fixed typo
23204 introduced in previous delta.
23205
23206 Wed Jul 7 02:00:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23207
23208 * reload1.c (gen_reload): When synthesizing a 3 operand add
23209 sequence, improve test for when to reload OP1 into the reload
23210 register instead of OP0.
23211
23212 Wed Jul 7 01:38:03 1999 Jim Wilson <wilson@cygnus.com>
23213
23214 * unroll.c (unroll_loop): Don't delete NOTE_INSN_DELETED_LABEL notes.
23215
23216 1999-07-07 Manfred Hollstein <mhollstein@cygnus.com>
23217
23218 * m88k/dguxbcs.h (CPP_SPEC): Add missing \ in multi-line
23219 string literal.
23220
23221 Wed Jul 7 01:16:43 1999 Richard Henderson <rth@cygnus.com>
23222
23223 * ginclude/varargs.h (__builtin_va_alist_t): New typedef.
23224 (va_dcl): Use __builtin_va_alist_t.
23225
23226 Wed Jul 7 01:14:42 1999 Jason Merrill <jason@yorick.cygnus.com>
23227
23228 * dwarf2out.c (gen_struct_or_union_type_die): Only remember types
23229 on the permanent_obstack.
23230 * dwarfout.c (output_type): Likewise.
23231
23232 Tue Jul 6 15:25:32 1999 Gavin Romig-Koch <gavin@cygnus.com>
23233
23234 * c-common.c (unsigned_type,signed_type,signed_or_unsigned_type) :
23235 Merged from c-typeck.c and cp/typeck.c.
23236 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
23237 Merged into c-common.
23238
23239 Tue Jul 6 13:06:01 1999 Dave Brolley <brolley@cygnus.com>
23240
23241 * c-lex.c (errorcount): Declare it.
23242 (finish_parse): Update errorcount when using CPPLIB.
23243
23244 1999-07-06 Bruce Korb <ddsinc09@ix.netcom.com>
23245
23246 * fixinc/inclhack.def(end_else_label): Double the backslash so
23247 sed gets a chance to see it.
23248 * fixinc/inclhack.sh: regen
23249 * fixinc/fixincl.x: regen
23250
23251 Fri Jul 2 18:49:51 1999 Nick Clifton <nickc@cygnus.com>
23252
23253 Add framework to support armv5 architecture when it becomes
23254 available:
23255
23256 * config/arm/arm.c (FL_ARCH5): New processor capability flag.
23257 (arm_arch5): New variable.
23258 (all_architectures): Add armv5 line.
23259 * config/arm/arm.h (CPP_CPU_ARCH_SPEC): Define __ARM_ARCH_5__ if
23260 -march=armv5 is specified on the command line.
23261 (arm_arch5): Export this variable.
23262 * invoke.texi: Document new string accepted by -march= switch for
23263 ARM ports.
23264
23265 * config/arm/arm.h: Replace use of constant 12 as a register
23266 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
23267 * config/arm/arm.c: Replace use of constant 12 as a register
23268 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
23269
23270 * config/arm/elf.h: Tidy up.
23271 * config/arm/coff.h: Tidy up.
23272
23273 Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
23274
23275 * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
23276 * gcc/config/mips/t-iris6gld: New file.
23277 * gcc/config/mips/iris6gld.h: Likewise.
23278
23279 Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
23280
23281 * c-decl.c (widest_integer_literal_type_node,
23282 widest_unsigned_literal_type) : New.
23283 (init_decl_processing): Handle/use the two new types.
23284 * c-common.c (type_for_size,type_for_mode) : Same.
23285 * c-lex.c (yylex) : Same.
23286 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
23287 Same.
23288 * c-tree.h (widest_integer_literal_type_node,
23289 widest_unsigned_literal_type) : New.
23290
23291 Fri Jul 2 03:05:44 1999 Jeffrey A Law (law@cygnus.com)
23292
23293 * dwarfout.c (field_byte_offset): Correctly compute the object's
23294 byte offset for the first bit of a field which crosses an alignment
23295 boundary on a !BYTES_BIG_ENDIAN target.
23296
23297 Fri Jul 2 01:36:36 1999 Robert Lipe <robertlipe@usa.net>
23298
23299 * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and
23300 ntohs.
23301
23302 Fri Jul 2 00:46:47 1999 Richard Henderson <rth@cygnus.com>
23303 Jeff Law <law@cygnus.com>
23304
23305 * ginclude/varargs.h (va_dcl): Use word_mode for type of
23306 __builtin_va_list.
23307
23308 * except.c: Include intl.h.
23309 (expand_eh_return): Set current_function_cannot_inline.
23310 (save_eh_status, restore_eh_status): Twiddle eh_return_stub_label.
23311 * function.h (struct function): Add eh_return_stub_label.
23312 * flow.c (delete_unreachable_blocks): Don't merge across EH edges.
23313 * Makefile.in (except.o): Depend on intl.h.
23314
23315 Fri Jul 2 00:04:23 1999 David Edelsohn <edelsohn@gnu.org>
23316
23317 * rs6000.md (movdf_hardfloat32): Handle PRE_INC and PRE_DEC the
23318 same as offsettable in cases 1 and 2.
23319
23320 Thu Jul 1 20:54:10 1999 Richard Henderson <rth@cygnus.com>
23321
23322 * alpha.md (extqh): Define as 64-((R&7)*8) instead of 56-(((R-1)&7)*8).
23323 (extlh, extwh): Likewise.
23324
23325 Thu Jul 1 11:05:25 1999 Gavin Romig-Koch <gavin@cygnus.com>
23326
23327 * c-lex.c (yylex): Improve 'integer constant out of range' messages.
23328
23329 Wed Jun 30 16:51:41 1999 Nick Clifton <nickc@cygnus.com>
23330
23331 * configure.in: Add arm-pe and thumb-pe targets.
23332 * configure: Regenerate.
23333
23334 * thumb.c (arm_naked_function_p): New function: Determines if
23335 a function is naked (has no gcc generated prologue/epilogue).
23336 (is_called_in_ARM_mode): Return true if the func has the
23337 interfacearm attribute.
23338 (output_return): Do not generate a return for naked functions.
23339 (thumb_function_prologue): Do not generate a prologue for
23340 naked functions.
23341 (thumb_expand_prologue): Do not generate a prologue for naked
23342 functions.
23343 (thumb_expand_epilogue): Do not generate an epilogue for naked
23344 functions.
23345 (arm_valid_machine_decl_attribute): New function, copied from
23346 arm.c: Permit naked and interfacearm attributes.
23347
23348 * config/arm/pe.c: New file: Support code for arm-pe target.
23349 * config/arm/pe.h: New file: Header file for arm-pe target.
23350 * config/arm/tpe.h: New file: Header file for thumb-pe target.
23351 * config/arm/t-thumb-pe: New file: Makefile fragment for
23352 thumb-pe target.
23353
23354 1999-07-01 Mark Kettenis <kettenis@gnu.org>
23355
23356 * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
23357 -fPIC or -fpic is specified.
23358
23359 Wed Jun 30 03:31:54 1999 Jeffrey A Law (law@cygnus.com)
23360
23361 * expr.c (emit_block_move): Use copy_to_mode_reg for
23362 !TARGET_MEM_FUNCTIONS case too.
23363
23364 * configure.in (hppa*-*-*): Add som.h or elf.h to tm_file as
23365 appropriate.
23366 * configure: Rebuilt.
23367 (hppa1.1-*-pro*, hppa1.1-*-rtems*): Define target_cpu_default.
23368 * pa.h: Include dbxelf.h. Delete various dbx/stabs related
23369 definitions made redundant by dbxelf.h inclusion. Delete
23370 lots of definitions related to assembly output that are
23371 specific to the SOM object format.
23372 * pa.c (output_function_prologue): Do not emit the function's
23373 name for OBJ_ELF.
23374 * pa-pro-end.h (STARTFILE_SPEC): Undefine before redefining.
23375 * pa-pro.h: Deleted.
23376 * som.h: New file with SOM specific definitions.
23377 * elf.h: New file with ELF specific definitions.
23378
23379 * elfos.h (const_section): Output a tab before assembler directives.
23380 (ctors_section, dtors_section): Likewise.
23381 (ASM_OUTPUT_SECTION_NAME): Likewise.
23382
23383 * pa/pa1.h: Delete unused file.
23384
23385 Tue Jun 29 01:37:53 1999 Jeffrey A Law (law@cygnus.com)
23386
23387 * configure.in (hppa*-hp-hpux11*): New configuration.
23388 * configure: Rebuilt.
23389 * pa/pa-hpux11.h: New file.
23390 * pa.h (CPP_SPEC): Conditionally add -D__STDC_EXT__ to the cpp
23391 command line.
23392
23393 * mips.md (leasi, leadi): New patterns.
23394
23395 * expr.c (emit_block_move): Properly handle case where one of the
23396 block move arguments has a queued increment or decrement.
23397 (clear_storage): Similarly. Fix formatting goof.
23398
23399 1999-06-28 "David O'Brien" <obrien@NUXI.com>
23400
23401 * fixinc/inclhack.def(stdio_va_list): This patch Removes a
23402 semicolon from the BSD VA_LIST replacement expression.
23403
23404 * fixinc/inclhack.sh: regen
23405 * fixinc/fixincl.x: regen
23406
23407 * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
23408 now use the fixincl program.
23409
23410 Mon Jun 28 05:28:12 1999 Jeffrey A Law (law@cygnus.com)
23411
23412 * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
23413 case. Also make the PIC register call_used.
23414
23415 * m68k.h (FINALIZE_PIC): Delete.
23416 * m68k.c (finalize_pic): Delete.
23417
23418 Mon Jun 28 05:16:35 1999 Richard Henderson <rth@cygnus.com>
23419
23420 * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
23421 to memory.
23422
23423 Mon Jun 28 04:07:27 1999 David Edelsohn <edelsohn@gnu.org>
23424
23425 * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
23426
23427 Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
23428
23429 * jump.c (jump_optimize_1): Validate the cmov copy to a temporary.
23430
23431 Sat Jun 26 17:18:18 1999 David Edelsohn <edelsohn@gnu.org>
23432
23433 * rs6000.c (print_operand, case 'L'): Use plus_constant_for_output.
23434
23435 Fri Jun 25 11:33:24 1999 Richard Henderson <rth@cygnus.com>
23436
23437 * alpha.c (override_options): Add -mcpu=ev45 as an alias for ev4.
23438
23439 Fri Jun 25 13:41:25 1999 David Edelsohn <edelsohn@gnu.org>
23440
23441 * rs6000.c (output_toc): Always use hex values for floating-point
23442 constants. Store single-precision values in upper-half of TOC
23443 entry in 64-bit mode.
23444 * rs6000.md (floatsidf2, floatunssidf2): Add !TARGET_POWERPC64
23445 to final constraints.
23446 (fix_truncdfsi2 splitter): Change pattern matching fctiwz.
23447 (fctiwz): Improve accuracy of RTL for pattern.
23448
23449 Fri Jun 25 11:26:38 1999 Gavin Romig-Koch <gavin@cygnus.com>
23450
23451 * expr.c (expand_expr): Allow RTL_EXPR's through the
23452 MAX_INTEGER_COMPUTATION_MODE checks.
23453
23454 Fri Jun 25 06:06:37 1999 Richard Henderson <rth@cygnus.com>
23455
23456 * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
23457 such that MASK_SUPPORT_ARCH is not negative.
23458
23459 Fri Jun 25 05:35:44 1999 Jeffrey A Law (law@cygnus.com)
23460
23461 * loop.c (verify_dominator): Properly handle ADDR_VEC and
23462 ADDR_DIFF_VEC insns that appear inside loops.
23463
23464 Thu Jun 24 22:54:05 1999 David Edelsohn <edelsohn@gnu.org>
23465 Jeff Law <law@cygnus.com>
23466
23467 * rs6000.md (movdf_hardfloat32): Revert previous patch.
23468 Handle LO_SUM the same as offsettable in cases 1 and 2.
23469 * rs6000.c (find_addr_reg): Revert previous patch.
23470
23471 Thu Jun 24 22:43:12 1999 Philippe De Muyter <phdm@macqel.be>
23472
23473 * system.h (strstr): New external function declaration.
23474 * acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
23475 * configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
23476 * config.in, configure: Rebuilt.
23477
23478 1999-06-24 Tom Tromey <tromey@cygnus.com>
23479
23480 * gcc.c (main): Read user-specified specs files after computing
23481 additional startfile_prefixes.
23482
23483 Thu Jun 24 15:00:47 1999 Mark Mitchell <mark@codesourcery.com>
23484
23485 Revert these two patches:
23486
23487 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23488 * loop.c (strength_reduce): When doing biv->giv conversion, update
23489 reg note of NEXT->insn.
23490
23491 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23492 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
23493 reg_biv_class.
23494 (recombine_givs): Set ix field after sorting.
23495
23496 Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23497
23498 * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
23499 for the parts of an UNSPEC / UNSPEC_VOLATILE.
23500
23501 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
23502
23503 *fixinc/inclhack.def: Add fix development commentary
23504 (read_ret_type): reactivate and add selection clause
23505 (zzz_*): tweak output file name to match what is used in hackshell.tpl
23506 *fixinc/{fixincl.x|inclhack.sh}: regen
23507
23508 Wed Jun 23 00:48:21 1999 Jason Merrill <jason@yorick.cygnus.com>
23509
23510 * expr.c (expand_expr): STRIP_NOPS before checking against
23511 MAX_INTEGER_COMPUTATION_MODE
23512 (check_max_integer_computation_mode): Likewise.
23513
23514 Tue Jun 22 20:23:43 1999 Jim Wilson <wilson@cygnus.com>
23515
23516 * md.texi (smul@var{m}3_highpart): Add missing 's' prefix.
23517
23518 1999-06-22 Jim Wilson <wilson@cygnus.com>
23519
23520 * expr.c (store_expr): When target is a promoted subreg, return a
23521 promoted subreg as a result.
23522
23523 Tue Jun 22 17:14:58 1999 Michael Meissner <meissner@cygnus.com>
23524
23525 * dwarf2out.c (dwarf2out_frame_debug_expr): Reformat to match GNU
23526 coding standards.
23527 (dwarf2out_define): Mark unused parameters appropriately.
23528 (gen_unspecified_parameters_die): Ditto.
23529 (gen_subprogram_die): Fix signed/unsigned warnings.
23530 (gen_variable_die): Ditto.
23531
23532 1999-06-22 Bruce Korb <ddsinc09@ix.netcom.com>
23533
23534 * fixinc/inclhack.def(end_else_label): combined else_label
23535 and endif_label and fixed the sed expression.
23536 *fixinc/{fixincl.x|inclhack.sh}: regen
23537
23538 Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com)
23539
23540 * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting
23541 'x' when handling non-offsettable addresses
23542
23543 Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com)
23544
23545 * final.c (shorten_branches): Don't try to split an insn that has
23546 been deleted.
23547
23548 Mon Jun 21 12:47:39 1999 Mark Mitchell <mark@codesourcery.com>
23549
23550 * config/mips/mips.c (symbolic_expression_p): New function.
23551 (mips_select_rtx_section): Put symbolic expressions in the
23552 data section, not the read-only data section.
23553
23554 Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
23555
23556 * rs6000.md (find_addr_reg): Handle LO_SUM addresses.
23557
23558 Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
23559
23560 * collect2.c (main): Log frame table count.
23561 (GCC_OK_SYMBOL) [ECOFF]: Accept stGlobal.
23562 (scan_prog_file) [COFF]: Handle frame tables.
23563
23564 * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
23565 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
23566 * alpha/elf.h: Undef them again.
23567 * alpha/vms.h: Remove their definitions.
23568
23569 Tue Jun 22 03:17:53 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23570
23571 * sh.c (machine_dependent_reorg): When fixing up fp pcloads,
23572 remove the clobber of r0 and change the REG_UNUSED note to
23573 REG_INC.
23574
23575 1999-06-21 Jakub Jelinek <jj@ultra.linux.cz>
23576
23577 * real.c (ereal_from_double): Fix for 64-bit big endian hosts.
23578 * emit-rtl.c (gen_lowpart_common): Add case for hosts where double
23579 fits in HOST_WIDE_INT and one uses union to access a long constant
23580 as double.
23581
23582 Mon Jun 21 17:18:25 1999 Richard Henderson <rth@cygnus.com>
23583
23584 * sparc.c (sparc_override_options): Don't allow profiling for
23585 code models other than medlow.
23586 (sparc_function_profiler): New function from old FUNCTION_PROFILER
23587 macro. Use ASM_GENERATE_INTERNAL_LABEL and MCOUNT_FUNCTION.
23588 (sparc_function_block_profiler): Likewise. Use user_label_prefix.
23589 (sparc_block_profiler): Likewise.
23590 (sparc_function_block_profiler_exit): Likewise.
23591 * sparc.h (FUNCTION_PROFILER): Call new sparc.c function.
23592 (FUNCTION_BLOCK_PROFILER): Likewise.
23593 (BLOCK_PROFILER): Likewise.
23594 (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
23595 (MCOUNT_FUNCTION): New.
23596 * sparc/pbd.h (FUNCTION_PROFILER): Delete.
23597 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Delete.
23598 * sparc/sun4o3.h (FUNCTION_PROFILER): Delete.
23599 (MCOUNT_FUNCTION): New.
23600 * sparc/sysv4.h (FUNCTION_BLOCK_PROFILER): Delete.
23601 (BLOCK_PROFILER): Delete.
23602 (MCOUNT_FUNCTION): New.
23603
23604 Mon Jun 21 14:11:29 1999 David Edelsohn <edelsohn@gnu.org>
23605
23606 * rs6000.md (movdf_hardfloat32): Fix typo in case 2.
23607
23608 Mon Jun 21 12:27:17 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
23609
23610 * config/mips/elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23611 Add the macros.
23612
23613 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23614 Ditto.
23615
23616 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23617 Ditto.
23618
23619 * config/arm/telf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23620 Ditto.
23621
23622 Mon Jun 21 14:58:42 1999 Nick Clifton <nickc@cygnus.com>
23623
23624 * config/arm/arm.h: Add cpp support for ARM920 and ARM920T cpu
23625 types.
23626
23627 Mon Jun 21 06:22:21 1999 Mark Elbrecht <snowball3@bigfoot.com>
23628
23629 * i386/djgpp.h (LIB_SPEC): New.
23630 (STARTFILE_SPEC): New.
23631
23632 * i386/xm-djgpp.h (NO_SYS_SIGLIST): Deleted. Now obsolete.
23633
23634 Mon Jun 21 06:19:33 1999 Philippe De Muyter <phdm@macqel.be>
23635
23636 * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in
23637 compiler flags.
23638
23639 * system.h (WSTOPSIG): New macro.
23640
23641 Mon Jun 21 05:33:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
23642
23643 * c-pragma.c (push_alignment): Don't ignore alignments greater than
23644 4 bytes.
23645 (insert_pack_attributes): Take into account member natural
23646 alignment.
23647
23648 * i386/winnt.c (exports_head): New static variable.
23649 (i386_pe_record_exported_symbol): New function.
23650 (i386_pe_asm_file_end): Use.
23651 * i386/cygwin.h (ASM_OUTPUT_COMMON): Record the exported
23652 symbols to be emitted at end of assembly.
23653 (ASM_DECLARE_OBJECT_NAME): Likewise.
23654 (ASM_DECLARE_FUNCTION_NAME): Likewise.
23655
23656 * i386/uwin.h (CPP_SPEC): Use -idirafter instead -iprefix and
23657 -iwithprefix.
23658
23659 Mon Jun 21 04:44:31 1999 Jeffrey A Law (law@cygnus.com)
23660
23661 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Fix paren error introduced
23662 in last change.
23663
23664 Sun Jun 20 17:27:20 1999 Richard Henderson <rth@cygnus.com>
23665
23666 * haifa-sched.c (sched_analyze_1): Use free_list instead of
23667 zapping reg_last_uses directly.
23668 (sched_analyze_2, sched_analyze_insn): Likewise.
23669 (sched_analyze): Likewise. Don't clear reg_last_uses on calls.
23670
23671 Sun Jun 20 16:57:29 1999 David Edelsohn <edelsohn@gnu.org>
23672
23673 * rs6000.md (movdf_hardfloat32): Use worst case insn length
23674 attributes for cases 1 and 2.
23675
23676 Sat Jun 19 22:52:55 1999 Richard Henderson <rth@cygnus.com>
23677
23678 * haifa-sched.c (sched_analyze): Mark call-user regs as clobbered
23679 instead of set.
23680
23681 Sat Jun 19 05:40:07 1999 Philip Blundell <pb@nexus.co.uk>
23682
23683 * arm.c (arm_reload_in_hi): Invert sense of test on BYTES_BIG_ENDIAN.
23684
23685 Sat Jun 19 05:25:05 1999 Richard Earnshaw (rearnsha@arm.com)
23686
23687 * arm.h (CONDITIONAL_REGISTER_USAGE): If flag_pic, never use
23688 PIC_OFFSET_TABLE_REGNUM for general alloaction.
23689 (INITIAL_ELIMINATION_OFFSET): Count the fact that the PIC register
23690 must be stacked if it is used for PIC accesses.
23691 * arm.c (use_return_insn): Handle PIC register specially.
23692 (output_return_instruction): Likewise.
23693 (output_func_{prologue,epilogue}): Likewise.
23694 (output_expand_prologue): Likewise.
23695
23696 * arm.md (*adddf_esfdf_df): Renamed from *adddf_df_esfdf.
23697 (*strsi_predec): Renamed from *strqi_predec.
23698 (*loadsi_shiftpreinc): Renamed from *loadqi_shiftpreinc.
23699 (*loadsi_shiftpredec): Renamed from *loadqi_shiftpredec.
23700
23701 * arm.c (arm_override_options): Remove warning about PIC code
23702 not being supported.
23703
23704 Fri Jun 18 23:47:06 1999 David Edelsohn <edelsohn@gnu.org>
23705
23706 * rs6000.c (find_addr_reg): New function.
23707 * rs6000.h (find_addr_reg): Declare.
23708 (offsettable_addr_operand): Delete.
23709 * rs6000.md (movdf_hardfloat32): Handle non-offsettable loads
23710 from and stores to GPRs.
23711
23712 Fri Jun 18 15:44:18 1999 Richard Henderson <rth@cygnus.com>
23713
23714 * alpha.c (alpha_expand_block_move): Use get_insns rather than
23715 gen_sequence as argument to emit_no_conflict_block.
23716
23717 Fri Jun 18 07:02 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23718
23719 * fixinc/mkfixinc.sh: enable the fixincl program for DG/UX
23720 * fixinc/inclhack.def(dgux_int_varargs): script must end with \n
23721 *fixinc/fixincl.x: regen
23722 *fixinc/inclhack.sh: regen
23723
23724 Thu Jun 17 15:06:10 PDT 1999 Don Lindsay <dlindsay@cygnus.com>
23725
23726 * added support for -mpcrel (PC relative addressing for m68k)
23727 based on code done by Michael Tiemann <tiemann@axon.cygnus.com>.
23728 * invoke.texi (m68000 options): Add documentation for -mpcrel flag.
23729 * m68k.c (print_operand_address): Handle 32-bit PIC case.
23730 (comments for general_src_operand): Add some explanation
23731 about EXTRA_CONSTRAINTS.
23732 (OVERRIDE_OPTIONS): Enable -fPIC in combination with -mpcrel.
23733 * m68kelf.h (OVERRIDE_OPTIONS): Ditto.
23734 (LEGITIMATE_PIC_OPERAND_P): Fix typo.
23735 (LEGITIMATE_PIC_OPERAND_P): Re-derive from m68k.h case.
23736 * m68k.h (LEGITIMATE_PIC_OPERAND_P): Fix delete-o.
23737 (INDIRECTABLE_1_ADDRESS): Delete spurious '/' at end of macro.
23738 (OVERRIDE_OPTIONS): Change behavior so that -mpcrel implies -fpic
23739 if not already set.
23740 (OVERRIDE_OPTIONS): Merge in changes from m68k.h.
23741 * m68k.h (TARGET_PCREL): New target flag.
23742 (TARGET_SWITCHES): Add "pcrel" as a recognized switch.
23743 (OVERRIDE_OPTIONS): Add checks for -mpcrel.
23744 (LEGITIMATE_PIC_OPERAND_P): Don't normally accept anything that
23745 contains a SYMBOL_REF. Relax this constraint during reload, since
23746 we want to use the predicates, not reload's built-in concept of a
23747 valid memory address, to control what insns need reloading.
23748 (EXTRA_CONSTRAINT): Define constraints to accept pc-relative
23749 operands (essentially 'g', 'm', and 's' under normal circumstances).
23750 * m68k.c (print_operand): Cause printing of pc-relative addresses
23751 to include pc register.
23752 (print_operand_address): Ditto.
23753 (general_src_operand): Accept operands that are not only
23754 general_operands, but are also valid when used as a pc-relative
23755 source.
23756 (nonimmediate_src_operand): Similar, for nonimmediate_operands.
23757 (memory_src_operand): Similar, for memory_operands.
23758 (pcrel_address): New predicate to accept the special case of a
23759 pc-relative address.
23760 * m68k.md (many patterns): Rewrite common SImode, HImode, and
23761 QImode insns to accept *_src_operand instead of *_operand where
23762 pc-relative operands can fit. For example, a pc-relative operand
23763 can be used as a memory source operand for addsi3, but not as a
23764 memory destination.
23765 * hp320.h linux.h m68kv4.h (LEGITIMATE_PIC_OPERAND_P) as in m68k.h.
23766
23767 Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
23768
23769 * config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
23770 .thumb_set pseudo op to mark aliases of thumb functions.
23771
23772 Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
23773
23774 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in
23775 preference to ASM_OUTPUT_DEF, if it is defined.
23776
23777 * tm.texi: Document new, optional target macro
23778 ASM_OUTPUT_DEF_FROM_DECLS.
23779
23780 Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23781
23782 * fixincludes: ISCNTL patch
23783 * fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
23784 (dgux_int_varargs): new for DG/UX
23785 * fixinc/{fixincl.x,inclhack.sh}: Regenerated.
23786
23787 Thu Jun 17 21:34:24 1999 Jeff Law <law@cygnus.com>
23788
23789 * invoke.texi (ia32 options): Fix typo.
23790
23791 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23792
23793 * loop.c (strength_reduce): When doing biv->giv conversion, update
23794 reg note of NEXT->insn.
23795
23796 Thu Jun 17 14:25:08 1999 Jeffrey A Law (law@cygnus.com)
23797
23798 * loop.c (move_movables): Note issues with replacing REGs with
23799 SUBREGs.
23800 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Handle SUBREGs properly.
23801
23802 Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
23803
23804 * i386/freebsd-elf.h (LINK_SPEC): Fix typo.
23805
23806 * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
23807 the reference to `mcount' was not correct for the ELF on FreeBSD.
23808
23809 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23810
23811 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
23812 reg_biv_class.
23813
23814 (recombine_givs): Set ix field after sorting.
23815
23816 Thu Jun 17 02:54:30 1999 Jeffrey A Law (law@cygnus.com)
23817
23818 * emit-rtl.c (operand_subword): Tighten checks for when it is safe
23819 to safe to extract a subword out of a REG.
23820
23821 Thu Jun 17 01:45:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23822
23823 * sh.md (mulsi3): Don't add a no-op move at the end.
23824
23825 Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23826
23827 * cse.c (cse_insn): Don't put hard register source into tables for
23828 the last insn of a libcall.
23829
23830 Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23831
23832 * loop.c (strength_reduce): Insert sets of derived givs at every
23833 biv increment, even if it's the only one.
23834
23835 Wed Jun 16 10:33:02 1999 Jason Merrill <jason@yorick.cygnus.com>
23836
23837 * dwarfout.c (add_incomplete_type): New fn.
23838 (output_type): Call it.
23839 (retry_incomplete_types): New fn.
23840 (dwarfout_finish): Call it.
23841
23842 From Eric Raskin <ehr@listworks.com>:
23843 (output_type): Output types for bases.
23844
23845 Tue Jun 15 12:51:23 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
23846
23847 * mips.c (mips_output_conditional_branch): Add `break'
23848 between `default' label and `close braces'.
23849
23850 Tue Jun 15 01:55:20 1999 David O'Brien <obrien@FreeBSD.org>
23851
23852 * i386/freebsd-elf.h (LINK_SPEC): clean up the linking library
23853 specifications and make it realistic.
23854 (LIB_SPEC): Likewise.
23855
23856 Mon Jun 14 15:38:43 1999 Jim Wilson <wilson@cygnus.com>
23857
23858 * config/mips/mips.c (mips_secondary_reload_class): Check for
23859 (PLUS (SP) (REG)) and return appropriate register class.
23860 * config/mips/mips.md (reload_insi): Delete predicate for operand 1.
23861 Handle (PLUS (SP) (REG)).
23862 (tablejump): In mips16 code, use emit_insn instead of emit_jump_insn.
23863 (tablejump_mips161, tablejump_mips162): Use emit_jump_insn instead
23864 of emit_insn for tablejump.
23865
23866 Mon Jun 14 17:26:40 1999 David Edelsohn <edelsohn@gnu.org>
23867
23868 * rs6000.c (output_prolog): RS6000_CALL_GLUE must be
23869 asm_fprintf format string by itself.
23870 (output_function_profiler): Likewise.
23871
23872 Mon Jun 14 12:57:38 1999 David Mosberger <davidm@hpl.hp.com>
23873
23874 * combine.c (simplify_logical, case AND): Only call
23875 simplify_and_const_int if the mode is no wider than HOST_WIDE_INT
23876 or the constant is positive.
23877
23878 Mon Jun 14 11:43:41 1999 Nick Clifton <nickc@cygnus.com>
23879
23880 * configure.in: Fix typo in rs6000-ibm-aix4 case.
23881 * configure: Regenerate.
23882
23883 Mon Jun 14 03:55:40 1999 Jeffrey A Law (law@cygnus.com)
23884
23885 * configure.in (rs6000-ibm-aix4.3*, powerpc-ibm-aix4.3*): Do not
23886 require a sub-version #.
23887 * configure: Rebuilt.
23888
23889 1999-06-14 Robert Lipe (robertlipe@usa.net)
23890
23891 * svr4.h (DWARF2_DEBUGGING_INFO): Check for redefinition.
23892
23893 Mon Jun 14 10:30:52 BST 1999 Nathan Sidwell <nathan@acm.org>
23894
23895 * c-typeck.c (process_init_element): Detect excess elements in
23896 char array initializer.
23897
23898 1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
23899
23900 * gcc.texi: Mention gcc 2.96 instead of egcs 1.00.
23901
23902 Sat Jun 12 22:29:48 EDT 1999 Jerry Quinn <jquinn@nortelnetworks.com>
23903
23904 * invoke.texi (Option Summary): Add -fpermissive flag.
23905
23906 Sat Jun 12 03:40:42 1999 Jeffrey A Law (law@cygnus.com)
23907
23908 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Do nothing with operands
23909 that require PIC code sequences.
23910
23911 Wed Jun 9 16:29:01 1999 Nick Clifton <nickc@cygnus.com>
23912
23913 * configure.in: Add new target: thumb-elf.
23914 * configure: Regenerate.
23915 * config/arm/t-thumb-elf: New file: Makefile fragment for
23916 thumb-elf build.
23917 * config/arm/telf.h: New file: Header file for thumb-elf
23918 build.
23919
23920 Fri Jun 11 03:17:51 1999 Jeffrey A Law (law@cygnus.com)
23921
23922 * Makefile.in (libgcc2): Pass MAYBE_USE_COLLECT2 as an argument.
23923 * libgcc2.c (__CTOR_LIST, __DTOR_LIST); Do not provide
23924 initializers is some circumstances.
23925
23926 * fixinc/inclhack.def (endif_label): Add additional selector for
23927 more bogus stuff after #endif statements.
23928 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
23929
23930 Thu Jun 10 20:44:36 1999 Mumit Khan <khan@xraylith.wisc.edu>
23931
23932 * i386/cygwin.h (SET_ASM_OP): Define.
23933
23934 Thu Jun 10 20:37:57 1999 Mumit Khan <khan@xraylith.wisc.edu>
23935
23936 * reg-stack.c (stack_reg_life_analysis): Find all the RETURN insns.
23937
23938 Thu Jun 10 19:23:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23939
23940 * sh.h (TARGET_HARWARD, TARGET_HARVARD): Changed the former to the
23941 latter.
23942
23943 * sh.md (ic_invalidate_line_i): Remove second alternative.
23944
23945 Thu Jun 10 06:55 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23946
23947 *fixinc/inclhack.def(sun_auth_proto): We do not know how to
23948 test for the presence of valid prototypes. Delete bypass expr.
23949 (ioctl_fix_ctrl): Correct the selection expression.
23950 (no_double_slash): Correct quoting rules
23951 *fixinc/fixincl.x: regen
23952 *fixinc/inclhack.sh: regen
23953
23954 Thu Jun 10 15:08:15 1999 Nick Clifton <nickc@cygnus.com>
23955
23956 * config/arm/arm.c (struct all_cores): Add ARM920 and ARM920t.
23957
23958 Wed Jun 9 15:57:57 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23959
23960 * rs6000.md (movsi_got_internal_mem): Delete.
23961 * rs6000.h (CONDITIONAL_REGISTER_USAGE): Mark PIC_OFFSET_TABLE_REGNUM.
23962 (GOT_TOC_REGNUM): Delete.
23963 (PIC_OFFSET_TABLE_REGNUM): Define.
23964 (FINALIZE_PIC): Disable.
23965 * rs6000.c (rs6000_got_register): New code for fixed pic register.
23966 (rs6000_replace_regno): Delete.
23967 (rs6000_finalize_pic): Likewise.
23968 (output_prolog): Handle PIC_OFFSET_TABLE_REGNUM.
23969
23970 Wed Jun 9 19:44:26 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23971
23972 * loop.c (loop_insn_first_p): Don't compare LUIDs when P
23973 is a note; use <= for the compare; advance P while it is
23974 a NOTE.
23975
23976 Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
23977
23978 * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
23979 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
23980
23981 * varasm.c (remove_from_pending_weak_list): Verify t->name
23982 is non-NULL before passing it to strcmp.
23983
23984 Wed Jun 9 06:50 1999 Bruce Korb <ddsinc09@ix.netcom.com>
23985
23986 *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
23987 the typed arguments are not part of a comment
23988 (ioctl_fix_ctrl): Added a purpose comment
23989 *fixinc/fixincl.x: regenerate
23990 *fixinc/inclhack.sh: regenerate
23991
23992 Wed Jun 9 22:57:02 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23993
23994 * invoke.texi: Add C4x invocation docs.
23995
23996 Wed Jun 9 22:34:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23997
23998 * config/c4x/c4x.h (TARGET_EXPOSE_LDP, LEGITIMIZE_RELOAD_ADDRESS):
23999 Define new macros.
24000 * config/c4x/c4x.c (c4x_emit_move_sequence, src_operand): Use
24001 TARGET_EXPOSE_LDP.
24002 (c4x_legitimize_reload_address): New function.
24003 * config/c4x/c4x.md: Update docs.
24004
24005 Wed Jun 9 04:14:48 1999 Jeffrey A Law (law@cygnus.com)
24006
24007 * fixincludes: Avoid removing '.'.
24008 * fixinc/fixinc.svr4: Likewise.
24009 * fixinc/fixinc.winnt: Likewise.
24010 * fixinc/inclhack.tpl: Likewise.
24011 * fixinc/fixincl.sh, fixinc/inclhack.sh: Rebuilt.
24012
24013 1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24014
24015 * fixinc/inclhack.def (sun_catmacro): Escape parens in the select
24016 pattern.
24017 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
24018
24019 Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
24020
24021 * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
24022 correctly.
24023
24024 Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
24025
24026 * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
24027 * configure: Regenerate.
24028
24029 Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
24030
24031 * optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
24032 values.
24033
24034 Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
24035
24036 * fixinc/inclhack.def (avoid_bool): Also catch
24037 "typedef [unsigned] int bool".
24038 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
24039
24040 * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
24041 * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
24042 * configure: Rebuilt.
24043
24044 Mon Jun 7 22:05:03 1999 Mark Kettenis <kettenis@gnu.org>
24045
24046 * config/i386/gnu.h: Include <gnu.h> right after <i386/linux.h>,
24047 such that we can override its definitions if necessary.
24048 (CPP_SPEC): New define. Support processor specific predefines via
24049 %(cpp_cpu).
24050 (CC1_SPEC): New define. Support processor specific compiler
24051 options via %(cc1_cpu).
24052 (STARTFILE_SPEC): New define. Use crt0.o instead of crt1.o for
24053 -static.
24054
24055 1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24056
24057 * fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
24058 between sed's -e flag, and the open-quote following it.
24059 * fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
24060
24061 Mon Jun 7 20:34:20 1999 Robert Lipe <robertlipe@usa.net>
24062 Jeffrey A Law (law@cygnus.com)
24063
24064 * varasm.c (assemble_start_function): Remove the function
24065 from the pending weak decls list when we define a function.
24066 (assemble_variable): Similarly for variables.
24067 (weak_finish): Ignore items on the list with a NULL name.
24068 (remove_from_ending_weak_list); New function to "remove" an item
24069 from the pending weak declarations list.
24070
24071 Mon Jun 7 19:27:07 1999 Jerry Quinn <jquinn@nortelnetworks.com>
24072
24073 * pa.md (fmpyfadd, fmpynfadd, fnegabs): New patterns.
24074
24075 Mon Jun 7 14:07:39 1999 Dave Brolley <brolley@cygnus.com>
24076
24077 * c-lex.c (GETC): Redefine to call getch.
24078 (UNGETC): Redefine to call put_back.
24079 (putback_buffer): New structure type.
24080 (putback): New static structure.
24081 (getch): New function.
24082 (put_back): New function.
24083 (yylex): Replace unused bytes from bad multibyte character.
24084
24085 Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
24086
24087 * cpplib.c (do_define): Cast `alloca' return value.
24088 (do_include, do_undef, do_pragma): Likewise.
24089 * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
24090 values.
24091 * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
24092 * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
24093
24094 Sun Jun 6 11:58:34 1999 Jakub Jelinek <jj@ultra.linux.cz>
24095
24096 * sparc.md (abstf2): This should be an expand.
24097 (split after abstf2_notv9): Fix mode.
24098 (abstf2_hq_v9): New pattern.
24099 (abstf2_v9): Only use when no hard quad.
24100 (absdf2_v9): Fix if target is not the same as source.
24101 (ashrsi3_extend, ashrsi3_extend2, lshrsi3_extend, lshrsi3_extend2):
24102 Add correct output constraints.
24103
24104 Sat Jun 5 17:04:16 1999 Craig Burley <craig@jcb-sc.com>
24105
24106 From Dave Love to egcs-patches on 20 May 1999 17:38:38 +0100:
24107 * invoke.texi: Clarify text vis-a-vis Intel CPUs.
24108
24109 Sat Jun 5 12:11:24 1999 Mark Mitchell <mark@codesourcery.com>
24110
24111 * mips.h (mips_output_conditional_branch): New function.
24112 (mips_adjust_insn_length): Likewise.
24113 (ASSEMBLER_SCRATCH_REGNUM): New macro.
24114 (ADJUST_INSN_LENGTH): Likewise.
24115 * mips.c (print_operand): Add `F' and `W' for floating-point
24116 comparison opcodes.
24117 (machine_dependent_reorg): Adjust MIPS16 code; instruction-lengths
24118 are now in bytes.
24119 (mips_adjust_insn_length): New function.
24120 (mips_output_conditional_branch): New function.
24121 * mips.md (length): Adjust attribute definition to handle
24122 conditional branches. Change lengths to bytes, rather than
24123 instructions throughout. Remove length attribute from
24124 instructions whose length is four bytes, and rely on the default
24125 instead.
24126 (dslot): Fix typo in comment.
24127 Reword conditional branch patterns to use
24128 mips_output_conditional_branch.
24129
24130 Fri Jun 4 13:30:27 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24131
24132 * alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
24133 (LIB_SPEC): Likewise.
24134 Link with -lprof1_r for -g/-pg.
24135
24136 1999-06-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
24137
24138 * loop.c (check_dbra_loop): Fix change of Jan 19.
24139
24140 Fri Jun 4 00:12:40 1999 Marc Espie <espie@cvs.openbsd.org>
24141
24142 * freebsd-elf.h (SWITCH_TAKES_ARG): Redefine, not define.
24143 (STARTFILE_SPEC): Define, override the svr4.h version.
24144 (ENDFILE_SPEC): Likewise.
24145
24146 Thu Jun 3 23:58:55 1999 Jeffrey A Law (law@cygnus.com)
24147
24148 * fixinc/inclhack.def (limits_ifndefs): Also apply to sys/limits.h
24149 * fixinc/fixincl.x: Regenerated.
24150 * fixinc/inclhack.sh: Regenerated.
24151
24152 Fri Jun 4 05:42:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24153
24154 * sh.c (barrier_align): Don't return early for normal branch/barrier
24155 when optimizing for SH2.
24156
24157 Thu Jun 3 22:27:50 1999 Robert Lipe <robertlipe@usa.net>
24158
24159 * i386/udk.h (LINK_SPEC): Correct linker search path for
24160 system libraries.
24161
24162 Fri Jun 4 03:20:40 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24163
24164 * sh.c (fixup_addr_diff_vecs): Emit braf reference label.
24165 (braf_label_ref_operand): Delete.
24166 * sh.h (PREDICATE_CODES): Remove braf_label_ref_operand.
24167 * sh.md (casesi_jump_2): Operand1 is now the inside of a
24168 label_ref, and has no predicate.
24169 The patten has a predicate to guard against invalid substitutions.
24170 (dummy_jump): Delete.
24171 (casesi): Update use of casesi_jump_2.
24172
24173 Thu Jun 3 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24174
24175 *fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
24176 *fixinc/fixincl.x: regenerate
24177 *fixinc/inclhack.sh: regenerate
24178
24179 Thu Jun 3 02:15:07 1999 Jason Merrill <jason@yorick.cygnus.com>
24180
24181 * dwarf2out.c (add_incomplete_type): New fn.
24182 (gen_struct_or_union_type_die): Call it.
24183 (retry_incomplete_types): New fn.
24184 (dwarf2out_finish): Call it.
24185
24186 Thu Jun 3 01:19:03 1999 Jeffrey A Law (law@cygnus.com)
24187
24188 * gcse.c (insert_insn_end_bb): Correct placement of insns when the
24189 current block starts with a CODE_LABEL and ends with a CALL and
24190 we can not find all the argument setup instructions for the CALL.
24191
24192 Wed Jun 2 15:44:15 1999 Mark Mitchell <mark@codesourcery.com>
24193
24194 Revert this change:
24195 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
24196 something is a candidate for optimize_bit_field_compare.
24197
24198 Wed Jun 2 21:53:05 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24199
24200 * sh.h (CONST_OK_FOR_I, CONST_OK_FOR_L): Cast VALUE to HOST_WIDE_INT.
24201
24202 Wed Jun 2 12:25:55 1999 Richard Henderson <rth@cygnus.com>
24203
24204 * alpha.c (override_options): Thinko in last patch.
24205
24206 * alpha/osf.h (CPP_SUBTARGET_SPEC): Define.
24207 (LIB_SPEC): Recognize -pthread.
24208
24209 Wed Jun 2 08:42:55 1999 Nick Clifton <nickc@cygnus.com>
24210
24211 * config/arm/tcoff.h (USER_LABEL_PREFIX): Synchronise with
24212 definition in config/arm/coff.h
24213 * config/arm/coff.h: Add comment about USER_LABEL_PREFIX.
24214
24215 Wed Jun 2 07:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24216
24217 * fixinc/fixincl.c(global def): Add FD_SHELL_SCRIPT to mark
24218 fixes that need "file=xxx\n" prepended before invocation
24219 (start_fixer - new): starting the fixer process is complex enough
24220 to warrent its own routine. It prepends the "file=xxx\n" stuff.
24221 (process): uses the new routine; omit usage of putenv()
24222 * fixinc/fixincl.tpl: mark shell scripts with FD_SHELL_SCRIPT
24223 * fixinc/fixincl.x: regenerate
24224
24225 Wed Jun 2 02:29:07 1999 Jeffrey A Law (law@cygnus.com)
24226
24227 * README, configure.in, gcc.1, gcc.texi: Update name (egcs -> gcc)
24228 and version #s (1.1 -> 2.96) as needed.
24229 * README.g77: Kill way out of date file in the toplevel directory.
24230
24231 Wed Jun 2 00:52:34 1999 David O'Brien <obrien@FreeBSD.org>
24232
24233 * configure.in (i[34567]86-*-freebsdelf): Don't include linux.h,
24234 i386/freebsd-elf.h no longer requires it. Instead include svr4.h.
24235 * configure: Rebuilt.
24236 * i386/freebsd-elf.h (DEFAULT_VTABLE_THUNKS): Define.
24237 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, SET_ASM_OP): Likewise.
24238 (PREFERRED_DEBUGGING_TYPE, WCHAR_UNSIGNED): Likewise.
24239 (SWITCH_TAKES_ARG): Likewise.
24240 * i386/freebsd.h: Remove FREEBSD_NATIVE support.
24241 * config/t-freebsd: Moved from config/i386/ so it can used for all
24242 FreeBSD targets.
24243
24244 Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
24245
24246 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.
24247
24248 Wed Jun 2 00:08:34 1999 Robert Lipe <robertlipe@usa.net>
24249
24250 * configure.in (i[34567]86-*-udk*): Install headers with cpio.
24251 * configure: Rebuilt.
24252
24253 Tue Jun 1 19:06:22 1999 David Edelsohn <edelsohn@gnu.org>
24254
24255 * rs6000/aix41.h (RS6000_CALL_GLUE): Define.
24256 * rs6000/aix43.h (RS6000_CALL_GLUE): Likewise.
24257 * rs6000/rs6000.c (rs6000_file_start): Use putc.
24258 (rs6000_output_load_toc_table): Same.
24259 (output_prolog, output_mi_thunk): Same.
24260 * rs6000/rs6000.h (SELECT_SECTION): Formatting.
24261 (ASM_GLOBALIZE_LABEL): Use putc.
24262
24263 Mon May 31 15:23:23 1999 Richard Henderson <rth@cygnus.com>
24264
24265 * alpha.md (reload_*_help): New patterns and splitters.
24266 (reload_*): Use them.
24267 (mov[qh]i): Likewise.
24268
24269 Mon May 31 11:48:07 1999 Mark Mitchell <mark@codesourcery.com>
24270
24271 * cccp.c (handle_directive): Handle backslash-newlines in quoted
24272 strings correctly.
24273
24274 Mon May 31 09:36:11 1999 Cort Dougan <cort@cs.nmt.edu>
24275
24276 * rs6000/linux.h (LINK_SPEC): Use emulation elf32ppclinux.
24277
24278 Mon May 31 11:40:20 EDT 1999 John Wehle (john@feith.com)
24279
24280 * flow.c (mark_regs_live_at_end, insn_dead_p,
24281 mark_set_1, mark_used_regs): Only give FRAME_POINTER_REGNUM
24282 and HARD_FRAME_POINTER_REGNUM special treatment if reload
24283 hasn't run or the frame pointer is needed.
24284 * haifa-sched.c (attach_deaths): Likewise.
24285 * sched.c (attach_deaths): Likewise.
24286
24287 Mon May 31 00:46:17 1999 Jeffrey A Law (law@cygnus.com)
24288
24289 * jump.c (jump_optimize_1): Only set CAN_REACH_END if
24290 calculate_can_reach_end returns nonzero.
24291
24292 * configure.in (native gas tests): Search for an assembler in the
24293 same manner that the installed compiler will.
24294 * configure: Rebuilt.
24295 * tm.texi (MD_EXEC_PREFIX): Note need to update configure.in too.
24296
24297 * alias.c (find_base_term): Improve handling of addresses
24298 constructed from binary operations.
24299
24300 Sun May 30 14:29:17 1999 Eric Raskin (ehr@listworks.com)
24301
24302 * dgux.h (STARTFILE_SPEC): Fix incorrectly matched curly-braces.
24303
24304 Sun May 30 14:19:13 1999 Jeffrey A Law (law@cygnus.com)
24305
24306 * function.h (cleanup_label, frame_offset): Declare.
24307 (tail_recursion_label, tail_recursion_reentry): Likewise.
24308 (arg_pointer_save_area, rtl_expr_chain): Likewise.
24309 * stmt.c (cleanup_label, frame_offset): Delete extern declarations.
24310 (tail_recursion_label, tail_recursion_reentry): Likewise.
24311 (arg_pointer_save_area, rtl_expr_chain): Likewise.
24312
24313 Sat May 29 19:08:10 1999 Philip Blundell <philb@gnu.org>
24314
24315 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already
24316 defined.
24317 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define.
24318 (MAX_OFILE_ALIGNMENT): Define.
24319
24320 Fri May 28 21:40 1999 Robert Lipe <robertlipe@usa.net>
24321
24322 * fixincl.c: Replace local include scheme with #includes of
24323 gansidecl.h and system.h.
24324 * procopen.c: Likewise.
24325 * server.c: Likewise.
24326
24327 Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
24328
24329 * i386/t-dgux (EXTRA_PARTS): Add crti.o
24330 (crti.o): Add build rule and dependencies.
24331 * fixinc/fixinc.dgux: Use modified _int_varargs.h
24332
24333 Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24334
24335 * rs6000/sysv4.h (CC1_SPEC): Add support for -profile
24336 (LIB_LINUX_SPEC): Likewise.
24337 (LIB_LINUX_SPEC): Add support for -pthread
24338 (CPP_OS_LINUX_SPEC): Likewise.
24339 (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
24340 specified.
24341
24342 Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org)
24343
24344 * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
24345 conditional move.
24346 (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
24347 (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
24348 for IEEE math and CC_FCOMI.
24349 (put_jump_code): No IEEE if CC_FCOMI is set.
24350
24351 1999-05-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
24352
24353 * fold-const.c (fold_truthop): Make the field reference unsigned
24354 when converting a single bit compare.
24355
24356 Thu May 27 02:40:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24357
24358 * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
24359
24360 Thu May 27 02:09:27 1999 Jeffrey A Law (law@cygnus.com)
24361
24362 * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
24363 * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
24364 version did.
24365
24366 * reload.c (push_reload): Do not call remove_address_replacements
24367 when presented with identical optional reloads.
24368
24369 Wed May 26 14:18:05 1999 Richard Henderson <rth@cygnus.com>
24370
24371 * alpha.h (MASK_FIX, TARGET_FIX): New.
24372 (MASK_*): Reorganize constants.
24373 (CPP_AM_FIX_SPEC): New.
24374 (TARGET_SWITCHES): Add FIX.
24375 (EXTRA_SPECS): Likewise.
24376 (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
24377 (SECONDARY_MEMORY_NEEDED): Likewise.
24378 (REGISTER_MOVE_COST): Likewise.
24379 * alpha.c (override_options): Add FIX support. Always use
24380 ALPHA_TP_PROG for ev6.
24381 * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
24382 * alpha/elf.h (ASM_FILE_START): Look at FIX too.
24383 * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.
24384
24385 Wed May 26 09:53:05 1999 Mark Mitchell <mark@codesourcery.com>
24386
24387 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
24388 something is a candidate for optimize_bit_field_compare.
24389
24390 Wed May 26 09:40:02 1999 Mark Mitchell <mark@codesourcery.com>
24391
24392 * gcc.texi (Passes): Document branch-shortening.
24393 * invoke.texi (Debugging Options): Document the fact that `-dp'
24394 outputs length information for instructions.
24395
24396 Wed May 26 08:49:31 1999 Nick Clifton <nickc@cygnus.com>
24397
24398 * flow.c: Revert previous delta.
24399
24400 Wed May 26 06:05:10 1999 Nick Clifton <nickc@cygnus.com>
24401
24402 * flow.c (insn_dead_p): Check against frame_pointer_rtx not
24403 FRAME_POINTER_REGNUM.
24404 (mark_set_1): Ditto.
24405 (mark_used_regs): Ditto.
24406
24407 Wed May 26 02:19:31 1999 Philip Blundell <pb@nexus.co.uk>
24408
24409 * arm.h (NEED_PLT_GOT): Fix mistake in last change.
24410 (GOT_PCREL): New macro. Define to 1 if not already defined.
24411 * arm/elf.h (GOT_PCREL): Define to 0.
24412 * arm.c (arm_finalize_pic): Take into account the setting of
24413 GOT_PCREL.
24414
24415 Tue May 25 14:06:06 1999 Jeffrey A Law (law@cygnus.com)
24416
24417 * output.h (STRIP_NAME_ENCODING): Provide default definition.
24418 * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
24419
24420 * flow.c (mark_set_1): Do not record BLKmode stores as dead
24421 store elimination candidates.
24422
24423 Tue May 25 08:55:57 1999 Gavin Romig-Koch <gavin@cygnus.com>
24424
24425 * config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
24426 TARGET_GAS.
24427
24428 Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
24429
24430 * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
24431 Add use of x-aix41-gld.
24432
24433 Mon May 24 16:44:09 1999 Jakub Jelinek <jj@ultra.linux.cz>
24434
24435 * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
24436 (ASM_OUTPUT_DESTRUCTOR): Define.
24437
24438 Mon May 24 14:35:24 1999 Jeffrey A Law (law@cygnus.com)
24439
24440 * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
24441 last CODE_LABEL in a loop if we have previously passed a jump
24442 to the top of the loop.
24443
24444 Mon May 24 07:56:29 1999 Nick Clifton <nickc@cygnus.com>
24445
24446 * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): Fix blunder made when
24447 applying Philip's patch.
24448
24449 Mon May 24 01:02:12 1999 Mark Mitchell <mark@codesourcery.com>
24450
24451 * stmt.c (expand_end_bindings): Ignore any elements of VARS that
24452 are not VAR_DECLs.
24453
24454 Sun May 23 20:31:16 1999 Jeffrey A Law (law@cygnus.com)
24455
24456 * loop.c (strength_reduce): Grow reg_single_usage as needed.
24457
24458 Sun May 23 10:13:20 1999 David O'Brien <obrien@FreeBSD.org>
24459
24460 * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
24461 Also remove a useless comment.
24462
24463 Sun May 23 10:05:23 1999 Jerry Quinn <jquinn@nortelnetworks.com>
24464
24465 * pa.md (negdf2,negsf2): Use fneg instead of fsub on pa 2.0.
24466
24467 Sat May 22 21:02:06 1999 David Edelsohn <edelsohn@gnu.org>
24468
24469 * collect2.c (main): Only generate import or export file and add
24470 to link arguments if non-empty. Use xmalloc not alloca.
24471 (write_{export,import}_file): Delete.
24472 (write_aix_file): New function.
24473 (locatelib): Use xmalloc not malloc.
24474 (GCC_OK_SYMBOL): Do not check type if aix64.
24475
24476 Sat May 22 09:35:51 1999 Philip Blundell <pb@nexus.co.uk>
24477
24478 Based on patch by Scott Bambrough and Pat Beirne:
24479 * config/arm/arm.c (making_const_table): New variable.
24480 * config/arm/arm.h (making_const_table): Declare.
24481 (OUTPUT_INT_ADDR_CONST): Mark symbols as position independent if
24482 appropriate.
24483 * config/arm/arm.md (consttable_4, consttable_8, consttable_end):
24484 Keep track of when we are building the constant table.
24485
24486 Sat May 22 09:34:22 1999 Philip Blundell <pb@nexus.co.uk>
24487
24488 * config/arm/arm.c (arm_override_options): Fix erroneous warning
24489 message.
24490
24491 Sat May 22 09:06:33 1999 Nick Clifton <nickc@cygnus.com>
24492
24493 * config/arm/arm.h (NEED_PLT_GOT): Only define if not already
24494 defined.
24495
24496 Sat May 22 07:17:05 1999 Nick Clifton <nickc@cygnus.com>
24497
24498 * tm.texi (FUNCTION_ARG): Correct description of a stack element
24499 in a PARALLEL.
24500
24501 Sat May 22 01:27:49 1999 Mark Mitchell <mark@codesourcery.com>
24502
24503 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
24504
24505 Fri May 21 21:19:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24506
24507 * rs6000.c (output_mi_thunk): Enable full support again.
24508
24509 Fri May 21 20:09:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24510
24511 * sh.h (BRANCH_COST): Define.
24512
24513 Thu May 20 10:00:42 1999 Stephen L Moshier <moshier@world.std.com>
24514
24515 * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
24516
24517 Thu May 20 09:58:57 1999 Jan Hubicka <hubicka@freesoft.cz>
24518
24519 * function.c (assign_stack_local): Align stack slot propertly.
24520 (assign_outer_stack_local): Likewise.
24521
24522 Thu May 20 10:38:43 1999 Mark Mitchell <mark@codesourcery.com>
24523
24524 * expr.h (lang_expand_constant): Declare.
24525 * toplev.c (lang_expand_constant): Define it.
24526 * varasm.c (output_constant): Use it.
24527
24528 Thu May 20 11:28:53 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24529
24530 * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
24531 Change function definitions to K&R style.
24532
24533 Thu May 20 08:16:39 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24534
24535 * fixinc/fixincl.c: We must not ignore SIGCLD now.
24536
24537 Thu May 20 07:06:39 1999 Alexandre Oliva <aoliva@acm.org>
24538
24539 * fixinc/Makefile.in(gnu-regex.o): add $(INCLUDES) to compile options
24540 * fixinc/fixincl.c(wait_for_pid): K&R-ify arguments
24541 (several places): omit static initialization
24542 (process): use single fd, since only the read fd is used
24543 * fixinc/gnu-regex.c: define 'const' away, if not supported
24544 * fixinc/procopen.c(several places): omit static initialization
24545 * fixinc/server.c: define 'volitile' away, if not supported
24546
24547 1999-05-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
24548
24549 * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
24550 asm_fprintf and %L to generate the label name.
24551 * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
24552 (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
24553
24554 Thu May 20 01:40:55 1999 Jeffrey A Law (law@cygnus.com)
24555
24556 * jump.c (can_reverse_comparison_p): Do not abort if the comparison
24557 insn for a conditional jump can not be found.
24558
24559 Wed May 19 23:58:58 1999 Jeffrey A Law (law@cygnus.com)
24560
24561 * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
24562 on variables in specific sections other than .sbss and .sdata.
24563
24564 Wed May 19 03:56:56 1999 Mark Mitchell <mark@codesourcery.com>
24565
24566 * stmt.c (expand_return): Call start_cleanup_deferral and
24567 end_cleanup_deferral around conditional code.
24568
24569 Wed May 19 08:40:08 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24570
24571 * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
24572 filename lists. Utilizes new "krstr" AutoGen function.
24573 * fixinc/fixincl.x: Rebuilt.
24574
24575 Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz)
24576
24577 * i386.c (output_float_compare): Avoid GNU-C extensions.
24578
24579 Wed May 19 00:34:40 1999 Jeffrey A Law (law@cygnus.com)
24580
24581 * version.c: Bump to distinguish mainline tree from the
24582 gcc-2.95 branch.
24583
24584 See ChangeLog.1 for earlier changes.
24585
24586
This page took 0.953837 seconds and 4 git commands to generate.